diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d0a45fad..8367f6c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,9 +15,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - uses: volta-cli/action@v1 - run: yarn install --frozen-lockfile - run: yarn lint:js working-directory: packages/ember-cli-code-coverage - run: yarn test + diff --git a/package.json b/package.json index f4aed1fd..604a5898 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,13 @@ "test-packages/*" ], "scripts": { + "test:new": "jest -t 'ember-exam app coverage generation'", "test": "jest --runInBand" }, "devDependencies": { "chai-files": "^1.4.0", "execa": "^4.0.3", + "glob": "8.0.3", "fixturify-project": "^4.0.2", "jest": "^26.4.2", "release-it": "^14.0.2", @@ -68,7 +70,7 @@ }, "version": "2.0.0-beta.4", "volta": { - "node": "12.22.7", + "node": "14.20.0", "yarn": "1.22.15" } } diff --git a/packages/ember-cli-code-coverage/package.json b/packages/ember-cli-code-coverage/package.json index 380e8fe0..92e64c43 100644 --- a/packages/ember-cli-code-coverage/package.json +++ b/packages/ember-cli-code-coverage/package.json @@ -36,14 +36,14 @@ "dependencies": { "@embroider/compat": "^0.47.0", "@embroider/core": "^0.47.0", - "babel-plugin-istanbul": "^6.0.0", + "babel-plugin-istanbul": "^6.1.1", "body-parser": "^1.19.0", "ember-cli-babel": "^7.26.6", "express": "^4.17.1", "fs-extra": "^9.0.0", - "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-coverage": "^3.2.0", "istanbul-lib-report": "^3.0.0", - "istanbul-reports": "^3.0.2", + "istanbul-reports": "^3.1.5", "node-dir": "^0.1.17", "walk-sync": "^2.1.0" }, diff --git a/test-packages/__snapshots__/my-app-ember-exam-test.js.snap b/test-packages/__snapshots__/my-app-ember-exam-test.js.snap new file mode 100644 index 00000000..d3186a7c --- /dev/null +++ b/test-packages/__snapshots__/my-app-ember-exam-test.js.snap @@ -0,0 +1,728 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`ember-exam app coverage generation merges coverage when tests are run in parallel 1`] = ` +Object { + "app/app.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "lines": Object { + "covered": 4, + "pct": 100, + "skipped": 0, + "total": 4, + }, + "statements": Object { + "covered": 4, + "pct": 100, + "skipped": 0, + "total": 4, + }, + }, + "app/router.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + "statements": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + }, + "app/utils/my-covered-util.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + "statements": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + }, + "app/utils/my-uncovered-util.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "statements": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + }, + "total": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + "lines": Object { + "covered": 6, + "pct": 66.67, + "skipped": 0, + "total": 9, + }, + "statements": Object { + "covered": 6, + "pct": 66.67, + "skipped": 0, + "total": 9, + }, + }, +} +`; + +exports[`ember-exam app coverage generation runs coverage when the path option is used 1`] = ` +Object { + "app/app.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "lines": Object { + "covered": 4, + "pct": 100, + "skipped": 0, + "total": 4, + }, + "statements": Object { + "covered": 4, + "pct": 100, + "skipped": 0, + "total": 4, + }, + }, + "app/router.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + "statements": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + }, + "app/utils/my-covered-util.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + "statements": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + }, + "app/utils/my-uncovered-util.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "statements": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + }, + "total": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + "lines": Object { + "covered": 6, + "pct": 66.67, + "skipped": 0, + "total": 9, + }, + "statements": Object { + "covered": 6, + "pct": 66.67, + "skipped": 0, + "total": 9, + }, + }, +} +`; + +exports[`ember-exam app coverage generation uses nested coverageFolder and parallel configuration and run merge-coverage 1`] = ` +Object { + "app/app.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "lines": Object { + "covered": 4, + "pct": 100, + "skipped": 0, + "total": 4, + }, + "statements": Object { + "covered": 4, + "pct": 100, + "skipped": 0, + "total": 4, + }, + }, + "app/router.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + "statements": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + }, + "app/utils/my-covered-util.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + "statements": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + }, + "app/utils/my-uncovered-util.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "statements": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + }, + "total": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + "lines": Object { + "covered": 6, + "pct": 66.67, + "skipped": 0, + "total": 9, + }, + "statements": Object { + "covered": 6, + "pct": 66.67, + "skipped": 0, + "total": 9, + }, + }, +} +`; + +exports[`ember-exam app coverage generation uses parallel configuration and merges coverage when merge-coverage command is issued 1`] = ` +Object { + "app/app.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "lines": Object { + "covered": 4, + "pct": 100, + "skipped": 0, + "total": 4, + }, + "statements": Object { + "covered": 4, + "pct": 100, + "skipped": 0, + "total": 4, + }, + }, + "app/router.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + "statements": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + }, + "app/utils/my-covered-util.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + "statements": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + }, + "app/utils/my-uncovered-util.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "statements": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + }, + "total": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + "lines": Object { + "covered": 6, + "pct": 66.67, + "skipped": 0, + "total": 9, + }, + "statements": Object { + "covered": 6, + "pct": 66.67, + "skipped": 0, + "total": 9, + }, + }, +} +`; + +exports[`ember-exam app coverage generation uses path and uses parallel configuration and merges coverage when merge-coverage command is issued 1`] = ` +Object { + "app/app.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "lines": Object { + "covered": 4, + "pct": 100, + "skipped": 0, + "total": 4, + }, + "statements": Object { + "covered": 4, + "pct": 100, + "skipped": 0, + "total": 4, + }, + }, + "app/router.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + "statements": Object { + "covered": 1, + "pct": 33.33, + "skipped": 0, + "total": 3, + }, + }, + "app/utils/my-covered-util.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + "lines": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + "statements": Object { + "covered": 1, + "pct": 100, + "skipped": 0, + "total": 1, + }, + }, + "app/utils/my-uncovered-util-three.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 6, + }, + "lines": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 6, + }, + "statements": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 6, + }, + }, + "app/utils/my-uncovered-util-two.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 6, + }, + "lines": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 6, + }, + "statements": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 6, + }, + }, + "app/utils/my-uncovered-util.js": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 6, + }, + "lines": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 6, + }, + "statements": Object { + "covered": 0, + "pct": 0, + "skipped": 0, + "total": 6, + }, + }, + "total": Object { + "branches": Object { + "covered": 0, + "pct": 100, + "skipped": 0, + "total": 0, + }, + "functions": Object { + "covered": 1, + "pct": 5, + "skipped": 0, + "total": 20, + }, + "lines": Object { + "covered": 6, + "pct": 23.08, + "skipped": 0, + "total": 26, + }, + "statements": Object { + "covered": 6, + "pct": 23.08, + "skipped": 0, + "total": 26, + }, + }, +} +`; diff --git a/test-packages/my-addon/package.json b/test-packages/my-addon/package.json index 97162ec8..3d975dd0 100644 --- a/test-packages/my-addon/package.json +++ b/test-packages/my-addon/package.json @@ -21,7 +21,7 @@ "test:all": "ember try:each" }, "dependencies": { - "ember-cli-babel": "^7.17.2", + "ember-cli-babel": "^7.26.11", "ember-cli-htmlbars": "^4.2.2" }, "devDependencies": { diff --git a/test-packages/my-app-ember-exam-test.js b/test-packages/my-app-ember-exam-test.js new file mode 100644 index 00000000..c0d85ea8 --- /dev/null +++ b/test-packages/my-app-ember-exam-test.js @@ -0,0 +1,110 @@ +'use strict'; + +const fs = require('fs-extra'); +const util = require('util'); +const glob = require('glob'); +const rimraf = util.promisify(require('rimraf')); +const { dir, file } = require('chai-files'); +const path = require('path'); +const execa = require('execa'); + +const BASE_PATH = path.join(__dirname, 'my-app-ember-exam'); + +describe('ember-exam app coverage generation', function () { + jest.setTimeout(10000000); + + beforeEach(async function () { + await rimraf(`${BASE_PATH}/coverage*`); + await execa('git', ['clean', '-f', 'my-app-ember-exam'], { cwd: __dirname }); + await execa('git', ['restore', 'my-app-ember-exam'], { cwd: __dirname }); + }); + + afterEach(async function () { + await rimraf(`${BASE_PATH}/coverage*`); + await execa('git', ['clean', '-f', 'my-app-ember-exam'], { cwd: __dirname }); + await execa('git', ['restore', 'my-app-ember-exam'], { cwd: __dirname }); + }); + + it('runs coverage when the path option is used', async function () { + dir(`${BASE_PATH}/coverage`).assertDoesNotExist(); + + let env = { COVERAGE: 'true' }; + await execa('ember', ['build', '--output-path=test-dist'], { cwd: BASE_PATH, env }); + await execa('ember', ['exam', '--path=test-dist'], { cwd: BASE_PATH, env }); + file(`${BASE_PATH}/coverage/lcov-report/index.html`).assertIsNotEmpty(); + file(`${BASE_PATH}/coverage/index.html`).assertIsNotEmpty(); + + let summary = fs.readJSONSync(`${BASE_PATH}/coverage/coverage-summary.json`); + expect(summary).toMatchSnapshot(); + }); + + it('merges coverage when tests are run in parallel', async function () { + dir(`${BASE_PATH}/coverage`).assertDoesNotExist(); + + let env = { COVERAGE: 'true' }; + await execa('ember', ['exam', '--split=2', '--parallel=true'], { cwd: BASE_PATH, env }); + file(`${BASE_PATH}/coverage/lcov-report/index.html`).assertIsNotEmpty(); + file(`${BASE_PATH}/coverage/index.html`).assertIsNotEmpty(); + + let summary = fs.readJSONSync(`${BASE_PATH}/coverage/coverage-summary.json`); + expect(summary).toMatchSnapshot(); + }); + + it('uses parallel configuration and merges coverage when merge-coverage command is issued', async function () { + dir(`${BASE_PATH}/coverage`).assertDoesNotExist(); + fs.copySync(`${BASE_PATH}/config/-coverage-parallel.js`, `${BASE_PATH}/config/coverage.js`); + + let env = { COVERAGE: 'true' }; + await execa('ember', ['exam', '--split=2', '--parallel=true'], { cwd: BASE_PATH, env }); + dir(`${BASE_PATH}/coverage`).assertDoesNotExist(); + + await execa('ember', ['coverage-merge'], { cwd: BASE_PATH }); + file(`${BASE_PATH}/coverage/lcov-report/index.html`).assertIsNotEmpty(); + file(`${BASE_PATH}/coverage/index.html`).assertIsNotEmpty(); + + let summary = fs.readJSONSync(`${BASE_PATH}/coverage/coverage-summary.json`); + expect(summary).toMatchSnapshot(); + }); + + it('uses path and uses parallel configuration and merges coverage when merge-coverage command is issued', async function () { + dir(`${BASE_PATH}/coverage`).assertDoesNotExist(); + fs.copySync(`${BASE_PATH}/config/-coverage-parallel.js`, `${BASE_PATH}/config/coverage.js`); + const split = 4 + + let env = { COVERAGE: 'true' }; + await execa('ember', ['build', '--output-path=test-dist'], { cwd: BASE_PATH, env }); + await execa('ember', ['exam', '--path=test-dist', `--split=${split}`, `--parallel=1`], { cwd: BASE_PATH, env }); + dir(`${BASE_PATH}/coverage`).assertDoesNotExist(); + + + expect(coverageFolders.length).toEqual(split); + + await execa('ember', ['coverage-merge'], { cwd: BASE_PATH }); + file(`${BASE_PATH}/coverage/lcov-report/index.html`).assertIsNotEmpty(); + file(`${BASE_PATH}/coverage/index.html`).assertIsNotEmpty(); + + let summary = fs.readJSONSync(`${BASE_PATH}/coverage/coverage-summary.json`); + expect(summary).toMatchSnapshot(); + }); + + it('uses nested coverageFolder and parallel configuration and run merge-coverage', async function () { + let coverageFolder = `${BASE_PATH} / coverage / abc / easy - as / 123`; + + dir(coverageFolder).assertDoesNotExist(); + fs.copySync( + `${BASE_PATH} / config / -coverage - nested - folder.js`, + `${BASE_PATH} / config / coverage.js` + ); + + let env = { COVERAGE: 'true' }; + await execa('ember', ['exam', '--split=2', '--parallel=true'], { cwd: BASE_PATH, env }); + dir(coverageFolder).assertDoesNotExist(); + + await execa('ember', ['coverage-merge'], { cwd: BASE_PATH }); + file(`${coverageFolder} / lcov - report / index.html`).assertIsNotEmpty(); + file(`${coverageFolder} / index.html`).assertIsNotEmpty(); + + let summary = fs.readJSONSync(`${coverageFolder} / coverage - summary.json`); + expect(summary).toMatchSnapshot(); + }); +}); diff --git a/test-packages/my-app-ember-exam/-error-module.js b/test-packages/my-app-ember-exam/-error-module.js new file mode 100644 index 00000000..35c29732 --- /dev/null +++ b/test-packages/my-app-ember-exam/-error-module.js @@ -0,0 +1,5 @@ +// This exists to confirm that modules that throw errors during +// eval, do not fail the build +// +// See https://github.com/kategengler/ember-cli-code-coverage/issues/63 for details. +throw new Error('Error thrown on import!'); diff --git a/test-packages/my-app-ember-exam/.editorconfig b/test-packages/my-app-ember-exam/.editorconfig new file mode 100644 index 00000000..c35a0024 --- /dev/null +++ b/test-packages/my-app-ember-exam/.editorconfig @@ -0,0 +1,19 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 2 + +[*.hbs] +insert_final_newline = false + +[*.{diff,md}] +trim_trailing_whitespace = false diff --git a/test-packages/my-app-ember-exam/.ember-cli b/test-packages/my-app-ember-exam/.ember-cli new file mode 100644 index 00000000..ee64cfed --- /dev/null +++ b/test-packages/my-app-ember-exam/.ember-cli @@ -0,0 +1,9 @@ +{ + /** + Ember CLI sends analytics information by default. The data is completely + anonymous, but there are times when you might want to disable this behavior. + + Setting `disableAnalytics` to true will prevent any data from being sent. + */ + "disableAnalytics": false +} diff --git a/test-packages/my-app-ember-exam/.eslintignore b/test-packages/my-app-ember-exam/.eslintignore new file mode 100644 index 00000000..72df3730 --- /dev/null +++ b/test-packages/my-app-ember-exam/.eslintignore @@ -0,0 +1,20 @@ +# unconventional js +/blueprints/*/files/ +/vendor/ + +# compiled output +/dist/ +/tmp/ + +# dependencies +/bower_components/ +/node_modules/ + +# misc +/coverage/ +!.* + +# ember-try +/.node_modules.ember-try/ +/bower.json.ember-try +/package.json.ember-try diff --git a/test-packages/my-app-ember-exam/.eslintrc.js b/test-packages/my-app-ember-exam/.eslintrc.js new file mode 100644 index 00000000..f3c9d4f2 --- /dev/null +++ b/test-packages/my-app-ember-exam/.eslintrc.js @@ -0,0 +1,56 @@ +'use strict'; + +module.exports = { + root: true, + parser: 'babel-eslint', + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + ecmaFeatures: { + legacyDecorators: true + } + }, + plugins: [ + 'ember' + ], + extends: [ + 'eslint:recommended', + 'plugin:ember/recommended' + ], + env: { + browser: true + }, + rules: { + 'ember/no-jquery': 'error' + }, + overrides: [ + // node files + { + files: [ + '.eslintrc.js', + '.template-lintrc.js', + 'ember-cli-build.js', + 'testem.js', + 'blueprints/*/index.js', + 'config/**/*.js', + 'lib/*/index.js', + 'server/**/*.js' + ], + parserOptions: { + sourceType: 'script' + }, + env: { + browser: false, + node: true + }, + plugins: ['node'], + rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, { + // add your custom rules and overrides for node files here + + // this can be removed once the following is fixed + // https://github.com/mysticatea/eslint-plugin-node/issues/77 + 'node/no-unpublished-require': 'off' + }) + } + ] +}; diff --git a/test-packages/my-app-ember-exam/.gitignore b/test-packages/my-app-ember-exam/.gitignore new file mode 100644 index 00000000..a6110483 --- /dev/null +++ b/test-packages/my-app-ember-exam/.gitignore @@ -0,0 +1,25 @@ +# See https://help.github.com/ignore-files/ for more about ignoring files. + +# compiled output +/dist/ +/tmp/ + +# dependencies +/bower_components/ +/node_modules/ + +# misc +/.env* +/.pnp* +/.sass-cache +/connect.lock +/coverage*/ +/libpeerconnection.log +/npm-debug.log* +/testem.log +/yarn-error.log + +# ember-try +/.node_modules.ember-try/ +/bower.json.ember-try +/package.json.ember-try diff --git a/test-packages/my-app-ember-exam/.template-lintrc.js b/test-packages/my-app-ember-exam/.template-lintrc.js new file mode 100644 index 00000000..f3873700 --- /dev/null +++ b/test-packages/my-app-ember-exam/.template-lintrc.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = { + extends: 'octane' +}; diff --git a/test-packages/my-app-ember-exam/.travis.yml b/test-packages/my-app-ember-exam/.travis.yml new file mode 100644 index 00000000..a0208ca3 --- /dev/null +++ b/test-packages/my-app-ember-exam/.travis.yml @@ -0,0 +1,27 @@ +--- +language: node_js +node_js: + - "10" + +dist: trusty + +addons: + chrome: stable + +cache: + directories: + - $HOME/.npm + +env: + global: + # See https://git.io/vdao3 for details. + - JOBS=1 + +branches: + only: + - master + +script: + - npm run lint:hbs + - npm run lint:js + - npm test diff --git a/test-packages/my-app-ember-exam/.watchmanconfig b/test-packages/my-app-ember-exam/.watchmanconfig new file mode 100644 index 00000000..e7834e3e --- /dev/null +++ b/test-packages/my-app-ember-exam/.watchmanconfig @@ -0,0 +1,3 @@ +{ + "ignore_dirs": ["tmp", "dist"] +} diff --git a/test-packages/my-app-ember-exam/README.md b/test-packages/my-app-ember-exam/README.md new file mode 100644 index 00000000..b34d3605 --- /dev/null +++ b/test-packages/my-app-ember-exam/README.md @@ -0,0 +1,57 @@ +# my-app + +This README outlines the details of collaborating on this Ember application. +A short introduction of this app could easily go here. + +## Prerequisites + +You will need the following things properly installed on your computer. + +* [Git](https://git-scm.com/) +* [Node.js](https://nodejs.org/) (with npm) +* [Ember CLI](https://ember-cli.com/) +* [Google Chrome](https://google.com/chrome/) + +## Installation + +* `git clone ` this repository +* `cd my-app` +* `npm install` + +## Running / Development + +* `ember serve` +* Visit your app at [http://localhost:4200](http://localhost:4200). +* Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests). + +### Code Generators + +Make use of the many generators for code, try `ember help generate` for more details + +### Running Tests + +* `ember test` +* `ember test --server` + +### Linting + +* `npm run lint:hbs` +* `npm run lint:js` +* `npm run lint:js -- --fix` + +### Building + +* `ember build` (development) +* `ember build --environment production` (production) + +### Deploying + +Specify what it takes to deploy your app. + +## Further Reading / Useful Links + +* [ember.js](https://emberjs.com/) +* [ember-cli](https://ember-cli.com/) +* Development Browser Extensions + * [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi) + * [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/) diff --git a/test-packages/my-app-ember-exam/app/app.js b/test-packages/my-app-ember-exam/app/app.js new file mode 100644 index 00000000..d8e2088b --- /dev/null +++ b/test-packages/my-app-ember-exam/app/app.js @@ -0,0 +1,12 @@ +import Application from '@ember/application'; +import Resolver from 'ember-resolver'; +import loadInitializers from 'ember-load-initializers'; +import config from './config/environment'; + +export default class App extends Application { + modulePrefix = config.modulePrefix; + podModulePrefix = config.podModulePrefix; + Resolver = Resolver; +} + +loadInitializers(App, config.modulePrefix); diff --git a/test-packages/my-app-ember-exam/app/index.html b/test-packages/my-app-ember-exam/app/index.html new file mode 100644 index 00000000..f9ef39ec --- /dev/null +++ b/test-packages/my-app-ember-exam/app/index.html @@ -0,0 +1,25 @@ + + + + + + MyApp + + + + {{content-for "head"}} + + + + + {{content-for "head-footer"}} + + + {{content-for "body"}} + + + + + {{content-for "body-footer"}} + + diff --git a/test-packages/my-app-ember-exam/app/router.js b/test-packages/my-app-ember-exam/app/router.js new file mode 100644 index 00000000..224ca426 --- /dev/null +++ b/test-packages/my-app-ember-exam/app/router.js @@ -0,0 +1,10 @@ +import EmberRouter from '@ember/routing/router'; +import config from './config/environment'; + +export default class Router extends EmberRouter { + location = config.locationType; + rootURL = config.rootURL; +} + +Router.map(function() { +}); diff --git a/test-packages/my-app-ember-exam/app/styles/app.css b/test-packages/my-app-ember-exam/app/styles/app.css new file mode 100644 index 00000000..e69de29b diff --git a/test-packages/my-app-ember-exam/app/templates/application.hbs b/test-packages/my-app-ember-exam/app/templates/application.hbs new file mode 100644 index 00000000..7b1b1040 --- /dev/null +++ b/test-packages/my-app-ember-exam/app/templates/application.hbs @@ -0,0 +1,5 @@ +{{!-- The following component displays Ember's default welcome message. --}} + +{{!-- Feel free to remove this! --}} + +{{outlet}} \ No newline at end of file diff --git a/test-packages/my-app-ember-exam/app/utils/my-covered-util.js b/test-packages/my-app-ember-exam/app/utils/my-covered-util.js new file mode 100644 index 00000000..50867b0d --- /dev/null +++ b/test-packages/my-app-ember-exam/app/utils/my-covered-util.js @@ -0,0 +1,3 @@ +export default function myCoveredUtil() { + return true; +} diff --git a/test-packages/my-app-ember-exam/app/utils/my-uncovered-util-three.js b/test-packages/my-app-ember-exam/app/utils/my-uncovered-util-three.js new file mode 100644 index 00000000..659e7352 --- /dev/null +++ b/test-packages/my-app-ember-exam/app/utils/my-uncovered-util-three.js @@ -0,0 +1,25 @@ +export default function myUncoveredUtil31() { + return true; +} + +export function myUncoveredUtil32() { + return true; +} + +export function myUncoveredUtil33() { + return true; +} + +export function myUncoveredUtil34() { + return true; +} + +export function myUncoveredUtil35() { + return true; +} + +export function myUncoveredUtil36() { + return true; +} + + diff --git a/test-packages/my-app-ember-exam/app/utils/my-uncovered-util-two.js b/test-packages/my-app-ember-exam/app/utils/my-uncovered-util-two.js new file mode 100644 index 00000000..9fe207b3 --- /dev/null +++ b/test-packages/my-app-ember-exam/app/utils/my-uncovered-util-two.js @@ -0,0 +1,25 @@ +export default function myUncoveredUtil21() { + return true; +} + +export function myUncoveredUtil22() { + return true; +} + +export function myUncoveredUtil23() { + return true; +} + +export function myUncoveredUtil24() { + return true; +} + +export function myUncoveredUtil25() { + return true; +} + +export function myUncoveredUtil26() { + return true; +} + + diff --git a/test-packages/my-app-ember-exam/app/utils/my-uncovered-util.js b/test-packages/my-app-ember-exam/app/utils/my-uncovered-util.js new file mode 100644 index 00000000..f54d4f6c --- /dev/null +++ b/test-packages/my-app-ember-exam/app/utils/my-uncovered-util.js @@ -0,0 +1,25 @@ +export default function myUncoveredUtil() { + return true; +} + +export function myUncoveredUtil2() { + return true; +} + +export function myUncoveredUtil3() { + return true; +} + +export function myUncoveredUtil4() { + return true; +} + +export function myUncoveredUtil5() { + return true; +} + +export function myUncoveredUtil6() { + return true; +} + + diff --git a/test-packages/my-app-ember-exam/config/-coverage-excludes.js b/test-packages/my-app-ember-exam/config/-coverage-excludes.js new file mode 100644 index 00000000..78eaa46d --- /dev/null +++ b/test-packages/my-app-ember-exam/config/-coverage-excludes.js @@ -0,0 +1,6 @@ +/* eslint-env node */ + +module.exports = { + excludes: ['**/utils/my-uncovered-util.js'], + reporters: ['lcov', 'html', 'text', 'json-summary'], +}; diff --git a/test-packages/my-app-ember-exam/config/-coverage-nested-folder.js b/test-packages/my-app-ember-exam/config/-coverage-nested-folder.js new file mode 100644 index 00000000..1cf90b1d --- /dev/null +++ b/test-packages/my-app-ember-exam/config/-coverage-nested-folder.js @@ -0,0 +1,8 @@ +/*jshint node:true*/ +'use strict'; + +module.exports = { + coverageFolder: 'coverage/abc/easy-as/123', + parallel: true, + reporters: ['lcov', 'html', 'text', 'json-summary'], +}; diff --git a/test-packages/my-app-ember-exam/config/-coverage-parallel.js b/test-packages/my-app-ember-exam/config/-coverage-parallel.js new file mode 100644 index 00000000..523be235 --- /dev/null +++ b/test-packages/my-app-ember-exam/config/-coverage-parallel.js @@ -0,0 +1,5 @@ +/* eslint-env node */ + +module.exports = { + parallel: true, +}; diff --git a/test-packages/my-app-ember-exam/config/coverage.js b/test-packages/my-app-ember-exam/config/coverage.js new file mode 100644 index 00000000..82976fdb --- /dev/null +++ b/test-packages/my-app-ember-exam/config/coverage.js @@ -0,0 +1,4 @@ +module.exports = { + reporters: ['lcov', 'html', 'text', 'json-summary'], + parallel: true, +}; diff --git a/test-packages/my-app-ember-exam/config/environment.js b/test-packages/my-app-ember-exam/config/environment.js new file mode 100644 index 00000000..e385266a --- /dev/null +++ b/test-packages/my-app-ember-exam/config/environment.js @@ -0,0 +1,51 @@ +'use strict'; + +module.exports = function (environment) { + let ENV = { + modulePrefix: 'my-app-ember-exam', + environment, + rootURL: '/', + locationType: 'auto', + EmberENV: { + FEATURES: { + // Here you can enable experimental features on an ember canary build + // e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true + }, + EXTEND_PROTOTYPES: { + // Prevent Ember Data from overriding Date.parse. + Date: false + } + }, + + APP: { + // Here you can pass flags/options to your application instance + // when it is created + } + }; + + if (environment === 'development') { + // ENV.APP.LOG_RESOLVER = true; + // ENV.APP.LOG_ACTIVE_GENERATION = true; + // ENV.APP.LOG_TRANSITIONS = true; + // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; + // ENV.APP.LOG_VIEW_LOOKUPS = true; + } + + if (environment === 'test') { + // Testem prefers this... + ENV.locationType = 'none'; + + // keep test console output quieter + ENV.APP.LOG_ACTIVE_GENERATION = false; + ENV.APP.LOG_VIEW_LOOKUPS = false; + + ENV.APP.rootElement = '#ember-testing'; + ENV.APP.autoboot = false; + } + + if (environment === 'production') { + // here you can enable a production-specific feature + } + + return ENV; +}; diff --git a/test-packages/my-app-ember-exam/config/optional-features.json b/test-packages/my-app-ember-exam/config/optional-features.json new file mode 100644 index 00000000..b26286e2 --- /dev/null +++ b/test-packages/my-app-ember-exam/config/optional-features.json @@ -0,0 +1,6 @@ +{ + "application-template-wrapper": false, + "default-async-observers": true, + "jquery-integration": false, + "template-only-glimmer-components": true +} diff --git a/test-packages/my-app-ember-exam/config/targets.js b/test-packages/my-app-ember-exam/config/targets.js new file mode 100644 index 00000000..8ffae363 --- /dev/null +++ b/test-packages/my-app-ember-exam/config/targets.js @@ -0,0 +1,18 @@ +'use strict'; + +const browsers = [ + 'last 1 Chrome versions', + 'last 1 Firefox versions', + 'last 1 Safari versions' +]; + +const isCI = !!process.env.CI; +const isProduction = process.env.EMBER_ENV === 'production'; + +if (isCI || isProduction) { + browsers.push('ie 11'); +} + +module.exports = { + browsers +}; diff --git a/test-packages/my-app-ember-exam/custom-dir-in-repo-addon.js b/test-packages/my-app-ember-exam/custom-dir-in-repo-addon.js new file mode 100644 index 00000000..dff2b464 --- /dev/null +++ b/test-packages/my-app-ember-exam/custom-dir-in-repo-addon.js @@ -0,0 +1,78 @@ +'use strict'; + +const path = require('path'); +const fs = require('fs-extra'); +const fixturify = require('fixturify'); + +class InRepoAddon { + static async generate(app, name) { + let args = ['generate', 'in-repo-addon', name]; + await app.runEmberCommand.apply(app, args); + + let addon = new InRepoAddon(app, name); + + // Move generated addon stubs from /lib to /local-lib + await fs.move( + path.join(app.path, 'lib', name, 'package.json'), + path.join(addon.path, 'package.json') + ); + + await fs.move(path.join(app.path, 'lib', name, 'index.js'), path.join(addon.path, 'index.js')); + + app.editPackageJSON(pkg => { + pkg['ember-addon'].paths = [path.join('local-lib', 'addons', addon.name)]; + }); + + addon.editPackageJSON(pkg => (pkg.dependencies = { 'ember-cli-htmlbars': '*' })); + + return addon; + } + + constructor(app, name) { + this.name = name; + this.app = app; + this.path = path.join(app.path, 'local-lib', 'addons', name); + } + + editPackageJSON(editor) { + let packageJSONPath = path.join(this.path, 'package.json'); + let pkg = fs.readJsonSync(packageJSONPath); + editor(pkg); + fs.writeJsonSync(packageJSONPath, pkg); + } + + writeFixture(fixture) { + fixturify.writeSync(this.path, fixture); + } + + nest(addon) { + this.editPackageJSON(pkg => { + pkg['ember-addon'] = pkg['ember-addon'] || {}; + pkg['ember-addon'].paths = pkg['ember-addon'].paths || []; + pkg['ember-addon'].paths.push(`../${addon.name}`); + }); + } + + async generateNestedAddon(name) { + // Generate another in-repo-addon at the app level... + let args = Array.prototype.slice.call(arguments); + args.unshift(this.app); + let addon = await InRepoAddon.generate.apply(null, args); + + // Remove the in-repo-addon from the app... + this.app.editPackageJSON(pkg => { + pkg['ember-addon'].paths = pkg['ember-addon'].paths.filter(path => path !== `lib/${name}`); + }); + + // Add the in-repo-addon to this engine. + this.editPackageJSON(pkg => { + pkg['ember-addon'] = pkg['ember-addon'] || {}; + pkg['ember-addon'].paths = pkg['ember-addon'].paths || []; + pkg['ember-addon'].paths.push(`../${name}`); + }); + + return addon; + } +} + +module.exports = InRepoAddon; diff --git a/test-packages/my-app-ember-exam/ember-cli-build.js b/test-packages/my-app-ember-exam/ember-cli-build.js new file mode 100644 index 00000000..2a14f907 --- /dev/null +++ b/test-packages/my-app-ember-exam/ember-cli-build.js @@ -0,0 +1,28 @@ +'use strict'; + +const EmberApp = require('ember-cli/lib/broccoli/ember-app'); + +module.exports = function(defaults) { + let app = new EmberApp(defaults, { + babel: { + plugins: [ + ...require('ember-cli-code-coverage').buildBabelPlugin(), + ], + }, + }); + + // Use `app.import` to add additional libraries to the generated + // output files. + // + // If you need to use different assets in different + // environments, specify an object as the first parameter. That + // object's keys should be the environment name and the values + // should be the asset to use in that environment. + // + // If the library that you are including contains AMD or ES6 + // modules that you would like to import into your application + // please specify an object with the list of modules as keys + // along with the exports of each module as its value. + + return app.toTree(); +}; diff --git a/test-packages/my-app-ember-exam/module-metadata-1662237126277.json b/test-packages/my-app-ember-exam/module-metadata-1662237126277.json new file mode 100644 index 00000000..50b0c70d --- /dev/null +++ b/test-packages/my-app-ember-exam/module-metadata-1662237126277.json @@ -0,0 +1,5 @@ +{ + "requested": "2 browser(s)", + "launched": "1 browser(s)", + "modules": [] +} diff --git a/test-packages/my-app-ember-exam/module-metadata-1662237128096.json b/test-packages/my-app-ember-exam/module-metadata-1662237128096.json new file mode 100644 index 00000000..2b9b773d --- /dev/null +++ b/test-packages/my-app-ember-exam/module-metadata-1662237128096.json @@ -0,0 +1,5 @@ +{ + "requested": "2 browser(s)", + "launched": "2 browser(s)", + "modules": [] +} diff --git a/test-packages/my-app-ember-exam/package.json b/test-packages/my-app-ember-exam/package.json new file mode 100644 index 00000000..0bac1433 --- /dev/null +++ b/test-packages/my-app-ember-exam/package.json @@ -0,0 +1,60 @@ +{ + "name": "my-app-ember-exam", + "version": "0.0.0", + "private": true, + "description": "Small description for my-app-ember-exam goes here", + "repository": "", + "license": "MIT", + "author": "", + "directories": { + "doc": "doc", + "test": "tests" + }, + "scripts": { + "build": "ember build --environment=production", + "lint:hbs": "ember-template-lint .", + "lint:js": "eslint .", + "start": "ember serve", + "test": "ember test" + }, + "devDependencies": { + "@ember/optional-features": "^1.3.0", + "@glimmer/component": "^1.0.0", + "@glimmer/tracking": "^1.0.0", + "babel-eslint": "^10.0.3", + "broccoli-asset-rev": "^3.0.0", + "ember-auto-import": "^2.4.2", + "ember-cli": "~3.16.2", + "ember-cli-app-version": "^3.2.0", + "ember-cli-babel": "^7.17.2", + "ember-cli-code-coverage": "2.0.0-beta.4", + "ember-cli-dependency-checker": "^3.2.0", + "ember-cli-eslint": "^5.1.0", + "ember-cli-htmlbars": "^4.2.2", + "ember-cli-inject-live-reload": "^2.0.2", + "ember-cli-sri": "^2.1.1", + "ember-cli-template-lint": "^1.0.0-beta.3", + "ember-cli-uglify": "^3.0.0", + "ember-data": "~3.16.0", + "ember-exam": "^8.0.0", + "ember-export-application-global": "^2.0.1", + "ember-fetch": "^7.0.0", + "ember-load-initializers": "^2.1.1", + "ember-maybe-import-regenerator": "^0.1.6", + "ember-qunit": "^4.6.0", + "ember-resolver": "^7.0.0", + "ember-source": "~3.16.0", + "ember-welcome-page": "^4.0.0", + "eslint-plugin-ember": "^7.7.2", + "eslint-plugin-node": "^11.0.0", + "loader.js": "^4.7.0", + "qunit-dom": "^1.0.0", + "webpack": "^5.74.0" + }, + "engines": { + "node": "10.* || >= 12" + }, + "ember": { + "edition": "octane" + } +} diff --git a/test-packages/my-app-ember-exam/test-dist/assets/chunk.app.37398c57637240c0ce8e.js b/test-packages/my-app-ember-exam/test-dist/assets/chunk.app.37398c57637240c0ce8e.js new file mode 100644 index 00000000..87243c15 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/chunk.app.37398c57637240c0ce8e.js @@ -0,0 +1,69 @@ +/* + * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). + * This devtool is neither made for production nor for readable output files. + * It uses "eval()" calls to create a separate source file in the browser devtools. + * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) + * or disable the default devtool with "devtool: false". + * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). + */ +var __ember_auto_import__; +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ "../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/app.js": +/*!***********************************************************************************************************************************************************************!*\ + !*** ../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/app.js ***! + \***********************************************************************************************************************************************************************/ +/***/ ((module) => { + +eval("\nmodule.exports = (function(){\n var d = _eai_d;\n var r = _eai_r;\n window.emberAutoImportDynamic = function(specifier) {\n if (arguments.length === 1) {\n return r('_eai_dyn_' + specifier);\n } else {\n return r('_eai_dynt_' + specifier)(Array.prototype.slice.call(arguments, 1))\n }\n };\n window.emberAutoImportSync = function(specifier) {\n return r('_eai_sync_' + specifier)(Array.prototype.slice.call(arguments, 1))\n };\n})();\n\n\n//# sourceURL=webpack://__ember_auto_import__/../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/app.js?"); + +/***/ }), + +/***/ "../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/l.js": +/*!*********************************************************************************************************************************************************************!*\ + !*** ../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/l.js ***! + \*********************************************************************************************************************************************************************/ +/***/ (function(module, exports) { + +eval("\nwindow._eai_r = require;\nwindow._eai_d = define;\n\n\n//# sourceURL=webpack://__ember_auto_import__/../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/l.js?"); + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined +/******/ __webpack_require__("../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/l.js"); +/******/ var __webpack_exports__ = __webpack_require__("../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/app.js"); +/******/ __ember_auto_import__ = __webpack_exports__; +/******/ +/******/ })() +; \ No newline at end of file diff --git a/test-packages/my-app-ember-exam/test-dist/assets/chunk.tests.351db78c206068b0a621.js b/test-packages/my-app-ember-exam/test-dist/assets/chunk.tests.351db78c206068b0a621.js new file mode 100644 index 00000000..a16c7453 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/chunk.tests.351db78c206068b0a621.js @@ -0,0 +1,69 @@ +/* + * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development"). + * This devtool is neither made for production nor for readable output files. + * It uses "eval()" calls to create a separate source file in the browser devtools. + * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/) + * or disable the default devtool with "devtool: false". + * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/). + */ +var __ember_auto_import__; +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ "../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/l.js": +/*!*********************************************************************************************************************************************************************!*\ + !*** ../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/l.js ***! + \*********************************************************************************************************************************************************************/ +/***/ (function(module, exports) { + +eval("\nwindow._eai_r = require;\nwindow._eai_d = define;\n\n\n//# sourceURL=webpack://__ember_auto_import__/../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/l.js?"); + +/***/ }), + +/***/ "../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/tests.js": +/*!*************************************************************************************************************************************************************************!*\ + !*** ../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/tests.js ***! + \*************************************************************************************************************************************************************************/ +/***/ ((module) => { + +eval("\nmodule.exports = (function(){\n var d = _eai_d;\n var r = _eai_r;\n window.emberAutoImportDynamic = function(specifier) {\n if (arguments.length === 1) {\n return r('_eai_dyn_' + specifier);\n } else {\n return r('_eai_dynt_' + specifier)(Array.prototype.slice.call(arguments, 1))\n }\n };\n window.emberAutoImportSync = function(specifier) {\n return r('_eai_sync_' + specifier)(Array.prototype.slice.call(arguments, 1))\n };\n})();\n\n\n//# sourceURL=webpack://__ember_auto_import__/../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/tests.js?"); + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __webpack_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ // no module.id needed +/******/ // no module.loaded needed +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__); +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ +/******/ // startup +/******/ // Load entry module and return exports +/******/ // This entry module doesn't tell about it's top-level declarations so it can't be inlined +/******/ __webpack_require__("../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/l.js"); +/******/ var __webpack_exports__ = __webpack_require__("../../../../../../private/var/folders/68/0hbrstln40s_tp_lp2fs9yk80000gp/T/broccoli-48336uDHh2mg3AWsO/cache-271-webpack_bundler_ember_auto_import_webpack/tests.js"); +/******/ __ember_auto_import__ = __webpack_exports__; +/******/ +/******/ })() +; \ No newline at end of file diff --git a/test-packages/my-app-ember-exam/test-dist/assets/my-app-ember-exam.css b/test-packages/my-app-ember-exam/test-dist/assets/my-app-ember-exam.css new file mode 100644 index 00000000..e69de29b diff --git a/test-packages/my-app-ember-exam/test-dist/assets/my-app-ember-exam.js b/test-packages/my-app-ember-exam/test-dist/assets/my-app-ember-exam.js new file mode 100644 index 00000000..31b28f19 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/my-app-ember-exam.js @@ -0,0 +1,3572 @@ +'use strict'; + + + +;define("my-app-ember-exam/adapters/-json-api", ["exports", "@ember-data/adapter/json-api"], function (_exports, _jsonApi) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _jsonApi.default; + } + }); + + function cov_2aw7w6q7nv() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/adapters/-json-api.js"; + var hash = "89983f184f3e48b5f522fbdc32086b5c514a0673"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/adapters/-json-api.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "89983f184f3e48b5f522fbdc32086b5c514a0673" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2aw7w6q7nv = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2aw7w6q7nv(); + 0; //eaimeta@70e063a35619d71f0,"@ember-data/adapter/json-api"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/app", ["exports", "ember-resolver", "ember-load-initializers", "my-app-ember-exam/config/environment"], function (_exports, _emberResolver, _emberLoadInitializers, _environment) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + function cov_uputmd56i() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/app.js"; + var hash = "45ebb730f085c4267b16f2137cd381c6c24ac6b5"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/app.js", + statementMap: { + "0": { + start: { + line: 7, + column: 17 + }, + end: { + line: 7, + column: 36 + } + }, + "1": { + start: { + line: 8, + column: 20 + }, + end: { + line: 8, + column: 42 + } + }, + "2": { + start: { + line: 9, + column: 13 + }, + end: { + line: 9, + column: 21 + } + }, + "3": { + start: { + line: 12, + column: 0 + }, + end: { + line: 12, + column: 43 + } + } + }, + fnMap: {}, + branchMap: {}, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0 + }, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "45ebb730f085c4267b16f2137cd381c6c24ac6b5" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_uputmd56i = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_uputmd56i(); + 0; //eaimeta@70e063a35619d71f0,"@ember/application",0,"ember-resolver",0,"ember-load-initializers",0,"my-app-ember-exam/config/environment"eaimeta@70e063a35619d71f + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + class App extends Ember.Application { + constructor() { + super(...arguments); + + _defineProperty(this, "modulePrefix", (cov_uputmd56i().s[0]++, _environment.default.modulePrefix)); + + _defineProperty(this, "podModulePrefix", (cov_uputmd56i().s[1]++, _environment.default.podModulePrefix)); + + _defineProperty(this, "Resolver", (cov_uputmd56i().s[2]++, _emberResolver.default)); + } + + } + + _exports.default = App; + cov_uputmd56i().s[3]++; + (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix); +}); +;define("my-app-ember-exam/component-managers/glimmer", ["exports", "@glimmer/component/-private/ember-component-manager"], function (_exports, _emberComponentManager) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _emberComponentManager.default; + } + }); + + function cov_2jd8jwac87() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/component-managers/glimmer.js"; + var hash = "b6504de1e43856444b35ddca9b3779b7ce99d939"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/component-managers/glimmer.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "b6504de1e43856444b35ddca9b3779b7ce99d939" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2jd8jwac87 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2jd8jwac87(); + 0; //eaimeta@70e063a35619d71f0,"@glimmer/component/-private/ember-component-manager"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/components/welcome-page", ["exports", "ember-welcome-page/components/welcome-page"], function (_exports, _welcomePage) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _welcomePage.default; + } + }); + + function cov_29o50ie7cr() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/components/welcome-page.js"; + var hash = "f97c6df8c297d65f9206165708cae7d2481d9977"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/components/welcome-page.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "f97c6df8c297d65f9206165708cae7d2481d9977" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_29o50ie7cr = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_29o50ie7cr(); + 0; //eaimeta@70e063a35619d71f0,"ember-welcome-page/components/welcome-page"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/data-adapter", ["exports", "@ember-data/debug"], function (_exports, _debug) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _debug.default; + } + }); + + function cov_1ky2j9r6jl() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/data-adapter.js"; + var hash = "d3aa880292c01973d3652ee0c5b9ca999d6b8bc7"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/data-adapter.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "d3aa880292c01973d3652ee0c5b9ca999d6b8bc7" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_1ky2j9r6jl = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_1ky2j9r6jl(); + 0; //eaimeta@70e063a35619d71f0,"@ember-data/debug"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/helpers/app-version", ["exports", "my-app-ember-exam/config/environment", "ember-cli-app-version/utils/regexp"], function (_exports, _environment, _regexp) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.appVersion = appVersion; + _exports.default = void 0; + + function cov_26mchx2t0q() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/app-version.js"; + var hash = "a488fcb27cb22937c90babee16989133481cbb97"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/app-version.js", + statementMap: { + "0": { + start: { + line: 6, + column: 18 + }, + end: { + line: 6, + column: 36 + } + }, + "1": { + start: { + line: 10, + column: 20 + }, + end: { + line: 10, + column: 52 + } + }, + "2": { + start: { + line: 11, + column: 16 + }, + end: { + line: 11, + column: 48 + } + }, + "3": { + start: { + line: 13, + column: 14 + }, + end: { + line: 13, + column: 18 + } + }, + "4": { + start: { + line: 15, + column: 2 + }, + end: { + line: 23, + column: 3 + } + }, + "5": { + start: { + line: 16, + column: 4 + }, + end: { + line: 18, + column: 5 + } + }, + "6": { + start: { + line: 17, + column: 6 + }, + end: { + line: 17, + column: 51 + } + }, + "7": { + start: { + line: 20, + column: 4 + }, + end: { + line: 22, + column: 5 + } + }, + "8": { + start: { + line: 21, + column: 6 + }, + end: { + line: 21, + column: 43 + } + }, + "9": { + start: { + line: 25, + column: 2 + }, + end: { + line: 27, + column: 3 + } + }, + "10": { + start: { + line: 26, + column: 4 + }, + end: { + line: 26, + column: 37 + } + }, + "11": { + start: { + line: 29, + column: 2 + }, + end: { + line: 29, + column: 36 + } + } + }, + fnMap: { + "0": { + name: "appVersion", + decl: { + start: { + line: 5, + column: 16 + }, + end: { + line: 5, + column: 26 + } + }, + loc: { + start: { + line: 5, + column: 41 + }, + end: { + line: 30, + column: 1 + } + }, + line: 5 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 5, + column: 30 + }, + end: { + line: 5, + column: 39 + } + }, + type: "default-arg", + locations: [{ + start: { + line: 5, + column: 37 + }, + end: { + line: 5, + column: 39 + } + }], + line: 5 + }, + "1": { + loc: { + start: { + line: 10, + column: 20 + }, + end: { + line: 10, + column: 52 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 10, + column: 20 + }, + end: { + line: 10, + column: 36 + } + }, { + start: { + line: 10, + column: 40 + }, + end: { + line: 10, + column: 52 + } + }], + line: 10 + }, + "2": { + loc: { + start: { + line: 11, + column: 16 + }, + end: { + line: 11, + column: 48 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 11, + column: 16 + }, + end: { + line: 11, + column: 28 + } + }, { + start: { + line: 11, + column: 32 + }, + end: { + line: 11, + column: 48 + } + }], + line: 11 + }, + "3": { + loc: { + start: { + line: 15, + column: 2 + }, + end: { + line: 23, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 15, + column: 2 + }, + end: { + line: 23, + column: 3 + } + }, { + start: { + line: 15, + column: 2 + }, + end: { + line: 23, + column: 3 + } + }], + line: 15 + }, + "4": { + loc: { + start: { + line: 16, + column: 4 + }, + end: { + line: 18, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 16, + column: 4 + }, + end: { + line: 18, + column: 5 + } + }, { + start: { + line: 16, + column: 4 + }, + end: { + line: 18, + column: 5 + } + }], + line: 16 + }, + "5": { + loc: { + start: { + line: 20, + column: 4 + }, + end: { + line: 22, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 20, + column: 4 + }, + end: { + line: 22, + column: 5 + } + }, { + start: { + line: 20, + column: 4 + }, + end: { + line: 22, + column: 5 + } + }], + line: 20 + }, + "6": { + loc: { + start: { + line: 25, + column: 2 + }, + end: { + line: 27, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 25, + column: 2 + }, + end: { + line: 27, + column: 3 + } + }, { + start: { + line: 25, + column: 2 + }, + end: { + line: 27, + column: 3 + } + }], + line: 25 + }, + "7": { + loc: { + start: { + line: 29, + column: 9 + }, + end: { + line: 29, + column: 35 + } + }, + type: "cond-expr", + locations: [{ + start: { + line: 29, + column: 17 + }, + end: { + line: 29, + column: 25 + } + }, { + start: { + line: 29, + column: 28 + }, + end: { + line: 29, + column: 35 + } + }], + line: 29 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0 + }, + f: { + "0": 0 + }, + b: { + "0": [0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0], + "7": [0, 0] + }, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "a488fcb27cb22937c90babee16989133481cbb97" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_26mchx2t0q = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_26mchx2t0q(); + 0; //eaimeta@70e063a35619d71f0,"@ember/component/helper",0,"my-app-ember-exam/config/environment",0,"ember-cli-app-version/utils/regexp"eaimeta@70e063a35619d71f + + function appVersion(_) { + let hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_26mchx2t0q().b[0][0]++, {}); + cov_26mchx2t0q().f[0]++; + const version = (cov_26mchx2t0q().s[0]++, _environment.default.APP.version); // e.g. 1.0.0-alpha.1+4jds75hf + // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility + + let versionOnly = (cov_26mchx2t0q().s[1]++, (cov_26mchx2t0q().b[1][0]++, hash.versionOnly) || (cov_26mchx2t0q().b[1][1]++, hash.hideSha)); + let shaOnly = (cov_26mchx2t0q().s[2]++, (cov_26mchx2t0q().b[2][0]++, hash.shaOnly) || (cov_26mchx2t0q().b[2][1]++, hash.hideVersion)); + let match = (cov_26mchx2t0q().s[3]++, null); + cov_26mchx2t0q().s[4]++; + + if (versionOnly) { + cov_26mchx2t0q().b[3][0]++; + cov_26mchx2t0q().s[5]++; + + if (hash.showExtended) { + cov_26mchx2t0q().b[4][0]++; + cov_26mchx2t0q().s[6]++; + match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1 + } else { + cov_26mchx2t0q().b[4][1]++; + } // Fallback to just version + + + cov_26mchx2t0q().s[7]++; + + if (!match) { + cov_26mchx2t0q().b[5][0]++; + cov_26mchx2t0q().s[8]++; + match = version.match(_regexp.versionRegExp); // 1.0.0 + } else { + cov_26mchx2t0q().b[5][1]++; + } + } else { + cov_26mchx2t0q().b[3][1]++; + } + + cov_26mchx2t0q().s[9]++; + + if (shaOnly) { + cov_26mchx2t0q().b[6][0]++; + cov_26mchx2t0q().s[10]++; + match = version.match(_regexp.shaRegExp); // 4jds75hf + } else { + cov_26mchx2t0q().b[6][1]++; + } + + cov_26mchx2t0q().s[11]++; + return match ? (cov_26mchx2t0q().b[7][0]++, match[0]) : (cov_26mchx2t0q().b[7][1]++, version); + } + + var _default = Ember.Helper.helper(appVersion); + + _exports.default = _default; +}); +;define("my-app-ember-exam/helpers/pluralize", ["exports", "ember-inflector/lib/helpers/pluralize"], function (_exports, _pluralize) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + function cov_2a8grxws55() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/pluralize.js"; + var hash = "ed68c8876bca5b3a862c8c029bd5e0fa283652a5"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/pluralize.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "ed68c8876bca5b3a862c8c029bd5e0fa283652a5" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2a8grxws55 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2a8grxws55(); + 0; //eaimeta@70e063a35619d71f0,"ember-inflector/lib/helpers/pluralize"eaimeta@70e063a35619d71f + + var _default = _pluralize.default; + _exports.default = _default; +}); +;define("my-app-ember-exam/helpers/singularize", ["exports", "ember-inflector/lib/helpers/singularize"], function (_exports, _singularize) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + function cov_gi6jzrgvn() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/singularize.js"; + var hash = "8d3d25bd2007712426b3c56bc58f164ed271d674"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/singularize.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "8d3d25bd2007712426b3c56bc58f164ed271d674" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_gi6jzrgvn = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_gi6jzrgvn(); + 0; //eaimeta@70e063a35619d71f0,"ember-inflector/lib/helpers/singularize"eaimeta@70e063a35619d71f + + var _default = _singularize.default; + _exports.default = _default; +}); +;define("my-app-ember-exam/initializers/app-version", ["exports", "ember-cli-app-version/initializer-factory", "my-app-ember-exam/config/environment"], function (_exports, _initializerFactory, _environment) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + function cov_6gms4bba7() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/app-version.js"; + var hash = "f73a50ed3d14071586c599a5fa32204f90db2f45"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/app-version.js", + statementMap: { + "0": { + start: { + line: 5, + column: 0 + }, + end: { + line: 8, + column: 1 + } + }, + "1": { + start: { + line: 6, + column: 2 + }, + end: { + line: 6, + column: 25 + } + }, + "2": { + start: { + line: 7, + column: 2 + }, + end: { + line: 7, + column: 31 + } + } + }, + fnMap: {}, + branchMap: { + "0": { + loc: { + start: { + line: 5, + column: 0 + }, + end: { + line: 8, + column: 1 + } + }, + type: "if", + locations: [{ + start: { + line: 5, + column: 0 + }, + end: { + line: 8, + column: 1 + } + }, { + start: { + line: 5, + column: 0 + }, + end: { + line: 8, + column: 1 + } + }], + line: 5 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0 + }, + f: {}, + b: { + "0": [0, 0] + }, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "f73a50ed3d14071586c599a5fa32204f90db2f45" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_6gms4bba7 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_6gms4bba7(); + 0; //eaimeta@70e063a35619d71f0,"ember-cli-app-version/initializer-factory",0,"my-app-ember-exam/config/environment"eaimeta@70e063a35619d71f + + let name, version; + cov_6gms4bba7().s[0]++; + + if (_environment.default.APP) { + cov_6gms4bba7().b[0][0]++; + cov_6gms4bba7().s[1]++; + name = _environment.default.APP.name; + cov_6gms4bba7().s[2]++; + version = _environment.default.APP.version; + } else { + cov_6gms4bba7().b[0][1]++; + } + + var _default = { + name: 'App Version', + initialize: (0, _initializerFactory.default)(name, version) + }; + _exports.default = _default; +}); +;define("my-app-ember-exam/initializers/container-debug-adapter", ["exports", "ember-resolver/resolvers/classic/container-debug-adapter"], function (_exports, _containerDebugAdapter) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + function cov_2esf39ioqg() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/container-debug-adapter.js"; + var hash = "39f9e14b5b32f393150943ca4fd4d61851799319"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/container-debug-adapter.js", + statementMap: { + "0": { + start: { + line: 7, + column: 14 + }, + end: { + line: 7, + column: 42 + } + }, + "1": { + start: { + line: 9, + column: 4 + }, + end: { + line: 9, + column: 72 + } + }, + "2": { + start: { + line: 10, + column: 4 + }, + end: { + line: 10, + column: 80 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 6, + column: 2 + }, + end: { + line: 6, + column: 3 + } + }, + loc: { + start: { + line: 6, + column: 15 + }, + end: { + line: 11, + column: 3 + } + }, + line: 6 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 7, + column: 14 + }, + end: { + line: 7, + column: 42 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 7, + column: 14 + }, + end: { + line: 7, + column: 26 + } + }, { + start: { + line: 7, + column: 30 + }, + end: { + line: 7, + column: 42 + } + }], + line: 7 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0 + }, + f: { + "0": 0 + }, + b: { + "0": [0, 0] + }, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "39f9e14b5b32f393150943ca4fd4d61851799319" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2esf39ioqg = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2esf39ioqg(); + 0; //eaimeta@70e063a35619d71f0,"ember-resolver/resolvers/classic/container-debug-adapter"eaimeta@70e063a35619d71f + + var _default = { + name: 'container-debug-adapter', + + initialize() { + cov_2esf39ioqg().f[0]++; + let app = (cov_2esf39ioqg().s[0]++, (cov_2esf39ioqg().b[0][0]++, arguments[1]) || (cov_2esf39ioqg().b[0][1]++, arguments[0])); + cov_2esf39ioqg().s[1]++; + app.register('container-debug-adapter:main', _containerDebugAdapter.default); + cov_2esf39ioqg().s[2]++; + app.inject('container-debug-adapter:main', 'namespace', 'application:main'); + } + + }; + _exports.default = _default; +}); +;define("my-app-ember-exam/initializers/ember-data-data-adapter", ["exports", "@ember-data/debug/setup"], function (_exports, _setup) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _setup.default; + } + }); + + function cov_22q58z9c3f() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/ember-data-data-adapter.js"; + var hash = "f1c6678891dcf25aa177ec56b1764c7fe3d85fc8"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/ember-data-data-adapter.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "f1c6678891dcf25aa177ec56b1764c7fe3d85fc8" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_22q58z9c3f = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_22q58z9c3f(); + 0; //eaimeta@70e063a35619d71f0,"@ember-data/debug/setup"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/initializers/ember-data", ["exports", "ember-data", "ember-data/setup-container"], function (_exports, _emberData, _setupContainer) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + function cov_8jptz9zzl() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/ember-data.js"; + var hash = "d2a447f583d8478bbfa5015a2eafe5bd840da8a6"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/ember-data.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "d2a447f583d8478bbfa5015a2eafe5bd840da8a6" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_8jptz9zzl = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_8jptz9zzl(); + 0; //eaimeta@70e063a35619d71f0,"ember-data",0,"ember-data/setup-container"eaimeta@70e063a35619d71f + + /* + This code initializes EmberData in an Ember application. + + It ensures that the `store` service is automatically injected + as the `store` property on all routes and controllers. + */ + var _default = { + name: 'ember-data', + initialize: _setupContainer.default + }; + _exports.default = _default; +}); +;define("my-app-ember-exam/initializers/export-application-global", ["exports", "my-app-ember-exam/config/environment"], function (_exports, _environment) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + _exports.initialize = initialize; + + function cov_1k9adz1pv4() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/export-application-global.js"; + var hash = "e9afa0a3895a0abe91ee4f342e9580fa15b3d0bb"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/export-application-global.js", + statementMap: { + "0": { + start: { + line: 5, + column: 20 + }, + end: { + line: 5, + column: 48 + } + }, + "1": { + start: { + line: 6, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, + "2": { + start: { + line: 8, + column: 4 + }, + end: { + line: 17, + column: 5 + } + }, + "3": { + start: { + line: 9, + column: 8 + }, + end: { + line: 9, + column: 27 + } + }, + "4": { + start: { + line: 10, + column: 11 + }, + end: { + line: 17, + column: 5 + } + }, + "5": { + start: { + line: 11, + column: 8 + }, + end: { + line: 11, + column: 26 + } + }, + "6": { + start: { + line: 12, + column: 11 + }, + end: { + line: 17, + column: 5 + } + }, + "7": { + start: { + line: 13, + column: 8 + }, + end: { + line: 13, + column: 25 + } + }, + "8": { + start: { + line: 16, + column: 7 + }, + end: { + line: 16, + column: 14 + } + }, + "9": { + start: { + line: 19, + column: 16 + }, + end: { + line: 19, + column: 46 + } + }, + "10": { + start: { + line: 22, + column: 4 + }, + end: { + line: 26, + column: 5 + } + }, + "11": { + start: { + line: 23, + column: 6 + }, + end: { + line: 23, + column: 25 + } + }, + "12": { + start: { + line: 25, + column: 6 + }, + end: { + line: 25, + column: 62 + } + }, + "13": { + start: { + line: 28, + column: 4 + }, + end: { + line: 37, + column: 5 + } + }, + "14": { + start: { + line: 29, + column: 6 + }, + end: { + line: 29, + column: 42 + } + }, + "15": { + start: { + line: 31, + column: 6 + }, + end: { + line: 36, + column: 9 + } + }, + "16": { + start: { + line: 33, + column: 10 + }, + end: { + line: 33, + column: 45 + } + }, + "17": { + start: { + line: 34, + column: 10 + }, + end: { + line: 34, + column: 39 + } + } + }, + fnMap: { + "0": { + name: "initialize", + decl: { + start: { + line: 4, + column: 16 + }, + end: { + line: 4, + column: 26 + } + }, + loc: { + start: { + line: 4, + column: 29 + }, + end: { + line: 39, + column: 1 + } + }, + line: 4 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 32, + column: 21 + }, + end: { + line: 32, + column: 22 + } + }, + loc: { + start: { + line: 32, + column: 32 + }, + end: { + line: 35, + column: 9 + } + }, + line: 32 + } + }, + branchMap: { + "0": { + loc: { + start: { + line: 5, + column: 20 + }, + end: { + line: 5, + column: 48 + } + }, + type: "binary-expr", + locations: [{ + start: { + line: 5, + column: 20 + }, + end: { + line: 5, + column: 32 + } + }, { + start: { + line: 5, + column: 36 + }, + end: { + line: 5, + column: 48 + } + }], + line: 5 + }, + "1": { + loc: { + start: { + line: 6, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, + type: "if", + locations: [{ + start: { + line: 6, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }, { + start: { + line: 6, + column: 2 + }, + end: { + line: 38, + column: 3 + } + }], + line: 6 + }, + "2": { + loc: { + start: { + line: 8, + column: 4 + }, + end: { + line: 17, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 8, + column: 4 + }, + end: { + line: 17, + column: 5 + } + }, { + start: { + line: 8, + column: 4 + }, + end: { + line: 17, + column: 5 + } + }], + line: 8 + }, + "3": { + loc: { + start: { + line: 10, + column: 11 + }, + end: { + line: 17, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 10, + column: 11 + }, + end: { + line: 17, + column: 5 + } + }, { + start: { + line: 10, + column: 11 + }, + end: { + line: 17, + column: 5 + } + }], + line: 10 + }, + "4": { + loc: { + start: { + line: 12, + column: 11 + }, + end: { + line: 17, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 12, + column: 11 + }, + end: { + line: 17, + column: 5 + } + }, { + start: { + line: 12, + column: 11 + }, + end: { + line: 17, + column: 5 + } + }], + line: 12 + }, + "5": { + loc: { + start: { + line: 22, + column: 4 + }, + end: { + line: 26, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 22, + column: 4 + }, + end: { + line: 26, + column: 5 + } + }, { + start: { + line: 22, + column: 4 + }, + end: { + line: 26, + column: 5 + } + }], + line: 22 + }, + "6": { + loc: { + start: { + line: 28, + column: 4 + }, + end: { + line: 37, + column: 5 + } + }, + type: "if", + locations: [{ + start: { + line: 28, + column: 4 + }, + end: { + line: 37, + column: 5 + } + }, { + start: { + line: 28, + column: 4 + }, + end: { + line: 37, + column: 5 + } + }], + line: 28 + } + }, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0 + }, + f: { + "0": 0, + "1": 0 + }, + b: { + "0": [0, 0], + "1": [0, 0], + "2": [0, 0], + "3": [0, 0], + "4": [0, 0], + "5": [0, 0], + "6": [0, 0] + }, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "e9afa0a3895a0abe91ee4f342e9580fa15b3d0bb" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_1k9adz1pv4 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_1k9adz1pv4(); + 0; //eaimeta@70e063a35619d71f0,"ember",0,"my-app-ember-exam/config/environment"eaimeta@70e063a35619d71f + + function initialize() { + cov_1k9adz1pv4().f[0]++; + var application = (cov_1k9adz1pv4().s[0]++, (cov_1k9adz1pv4().b[0][0]++, arguments[1]) || (cov_1k9adz1pv4().b[0][1]++, arguments[0])); + cov_1k9adz1pv4().s[1]++; + + if (_environment.default.exportApplicationGlobal !== false) { + cov_1k9adz1pv4().b[1][0]++; + var theGlobal; + cov_1k9adz1pv4().s[2]++; + + if (typeof window !== 'undefined') { + cov_1k9adz1pv4().b[2][0]++; + cov_1k9adz1pv4().s[3]++; + theGlobal = window; + } else { + cov_1k9adz1pv4().b[2][1]++; + cov_1k9adz1pv4().s[4]++; + + if (typeof global !== 'undefined') { + cov_1k9adz1pv4().b[3][0]++; + cov_1k9adz1pv4().s[5]++; + theGlobal = global; + } else { + cov_1k9adz1pv4().b[3][1]++; + cov_1k9adz1pv4().s[6]++; + + if (typeof self !== 'undefined') { + cov_1k9adz1pv4().b[4][0]++; + cov_1k9adz1pv4().s[7]++; + theGlobal = self; + } else { + cov_1k9adz1pv4().b[4][1]++; + cov_1k9adz1pv4().s[8]++; + // no reasonable global, just bail + return; + } + } + } + + var value = (cov_1k9adz1pv4().s[9]++, _environment.default.exportApplicationGlobal); + var globalName; + cov_1k9adz1pv4().s[10]++; + + if (typeof value === 'string') { + cov_1k9adz1pv4().b[5][0]++; + cov_1k9adz1pv4().s[11]++; + globalName = value; + } else { + cov_1k9adz1pv4().b[5][1]++; + cov_1k9adz1pv4().s[12]++; + globalName = Ember.String.classify(_environment.default.modulePrefix); + } + + cov_1k9adz1pv4().s[13]++; + + if (!theGlobal[globalName]) { + cov_1k9adz1pv4().b[6][0]++; + cov_1k9adz1pv4().s[14]++; + theGlobal[globalName] = application; + cov_1k9adz1pv4().s[15]++; + application.reopen({ + willDestroy: function () { + cov_1k9adz1pv4().f[1]++; + cov_1k9adz1pv4().s[16]++; + + this._super.apply(this, arguments); + + cov_1k9adz1pv4().s[17]++; + delete theGlobal[globalName]; + } + }); + } else { + cov_1k9adz1pv4().b[6][1]++; + } + } else { + cov_1k9adz1pv4().b[1][1]++; + } + } + + var _default = { + name: 'export-application-global', + initialize: initialize + }; + _exports.default = _default; +}); +;define("my-app-ember-exam/instance-initializers/ember-data", ["exports", "ember-data/initialize-store-service"], function (_exports, _initializeStoreService) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + function cov_9mfbb652v() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/instance-initializers/ember-data.js"; + var hash = "0174b6867b04c90c30803847d85f3524f2a033d3"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/instance-initializers/ember-data.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "0174b6867b04c90c30803847d85f3524f2a033d3" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_9mfbb652v = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_9mfbb652v(); + 0; //eaimeta@70e063a35619d71f0,"ember-data/initialize-store-service"eaimeta@70e063a35619d71f + + var _default = { + name: 'ember-data', + initialize: _initializeStoreService.default + }; + _exports.default = _default; +}); +;define("my-app-ember-exam/router", ["exports", "my-app-ember-exam/config/environment"], function (_exports, _environment) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + function cov_2llzky0cx7() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/router.js"; + var hash = "74272aba6088b8ee4342414fd5fcb1a7285ceac3"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/router.js", + statementMap: { + "0": { + start: { + line: 5, + column: 13 + }, + end: { + line: 5, + column: 32 + } + }, + "1": { + start: { + line: 6, + column: 12 + }, + end: { + line: 6, + column: 26 + } + }, + "2": { + start: { + line: 9, + column: 0 + }, + end: { + line: 10, + column: 3 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 9, + column: 11 + }, + end: { + line: 9, + column: 12 + } + }, + loc: { + start: { + line: 9, + column: 22 + }, + end: { + line: 10, + column: 1 + } + }, + line: 9 + } + }, + branchMap: {}, + s: { + "0": 0, + "1": 0, + "2": 0 + }, + f: { + "0": 0 + }, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "74272aba6088b8ee4342414fd5fcb1a7285ceac3" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2llzky0cx7 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2llzky0cx7(); + 0; //eaimeta@70e063a35619d71f0,"@ember/routing/router",0,"my-app-ember-exam/config/environment"eaimeta@70e063a35619d71f + + function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + + class Router extends Ember.Router { + constructor() { + super(...arguments); + + _defineProperty(this, "location", (cov_2llzky0cx7().s[0]++, _environment.default.locationType)); + + _defineProperty(this, "rootURL", (cov_2llzky0cx7().s[1]++, _environment.default.rootURL)); + } + + } + + _exports.default = Router; + cov_2llzky0cx7().s[2]++; + Router.map(function () { + cov_2llzky0cx7().f[0]++; + }); +}); +;define("my-app-ember-exam/serializers/-default", ["exports", "@ember-data/serializer/json"], function (_exports, _json) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _json.default; + } + }); + + function cov_h9wl0te8b() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-default.js"; + var hash = "bd2774eaed3093a8186f11de132c8b4c41677e5d"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-default.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "bd2774eaed3093a8186f11de132c8b4c41677e5d" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_h9wl0te8b = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_h9wl0te8b(); + 0; //eaimeta@70e063a35619d71f0,"@ember-data/serializer/json"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/serializers/-json-api", ["exports", "@ember-data/serializer/json-api"], function (_exports, _jsonApi) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _jsonApi.default; + } + }); + + function cov_1g0w51nbqn() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-json-api.js"; + var hash = "66a87759c4d9672c2b412c0303496aea6834fe7f"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-json-api.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "66a87759c4d9672c2b412c0303496aea6834fe7f" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_1g0w51nbqn = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_1g0w51nbqn(); + 0; //eaimeta@70e063a35619d71f0,"@ember-data/serializer/json-api"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/serializers/-rest", ["exports", "@ember-data/serializer/rest"], function (_exports, _rest) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _rest.default; + } + }); + + function cov_1t9yl72d94() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-rest.js"; + var hash = "4b7c928f154664311bb73197005f3734d831c57c"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-rest.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "4b7c928f154664311bb73197005f3734d831c57c" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_1t9yl72d94 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_1t9yl72d94(); + 0; //eaimeta@70e063a35619d71f0,"@ember-data/serializer/rest"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/services/store", ["exports", "ember-data/store"], function (_exports, _store) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _store.default; + } + }); + + function cov_2ajphcf3cr() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/services/store.js"; + var hash = "6b6112fdd9ca3f0847f1fd9b1da53a9ccd858e1b"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/services/store.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "6b6112fdd9ca3f0847f1fd9b1da53a9ccd858e1b" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2ajphcf3cr = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2ajphcf3cr(); + 0; //eaimeta@70e063a35619d71f0,"ember-data/store"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/templates/application", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + function cov_1epc5hoqix() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/templates/application.js"; + var hash = "e9a4f1c966a944fd42dc0c9cd62bab69f3442ab4"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/templates/application.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "e9a4f1c966a944fd42dc0c9cd62bab69f3442ab4" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_1epc5hoqix = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_1epc5hoqix(); + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + var _default = Ember.HTMLBars.template({ + "id": "78sl0Rrj", + "block": "{\"symbols\":[],\"statements\":[[5,\"welcome-page\",[],[[],[]]],[0,\"\\n\"],[0,\"\\n\"],[1,[22,\"outlet\"],false]],\"hasEval\":false}", + "meta": { + "moduleName": "my-app-ember-exam/templates/application.hbs" + } + }); + + _exports.default = _default; +}); +;define("my-app-ember-exam/transforms/boolean", ["exports", "@ember-data/serializer/-private"], function (_exports, _private) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _private.BooleanTransform; + } + }); + + function cov_2fu48cymd9() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/boolean.js"; + var hash = "56d9523bc18e0a4746baea3486962d1675f38532"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/boolean.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "56d9523bc18e0a4746baea3486962d1675f38532" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2fu48cymd9 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2fu48cymd9(); + 0; //eaimeta@70e063a35619d71f0,"@ember-data/serializer/-private"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/transforms/date", ["exports", "@ember-data/serializer/-private"], function (_exports, _private) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _private.DateTransform; + } + }); + + function cov_1yprmqizlj() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/date.js"; + var hash = "71c2316c7f0146410b025759b264e7f6d3ffbd21"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/date.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "71c2316c7f0146410b025759b264e7f6d3ffbd21" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_1yprmqizlj = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_1yprmqizlj(); + 0; //eaimeta@70e063a35619d71f0,"@ember-data/serializer/-private"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/transforms/number", ["exports", "@ember-data/serializer/-private"], function (_exports, _private) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _private.NumberTransform; + } + }); + + function cov_2430ok27r8() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/number.js"; + var hash = "4d7882ce79c1435900d3916aca6e07abd2310c3a"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/number.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "4d7882ce79c1435900d3916aca6e07abd2310c3a" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2430ok27r8 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2430ok27r8(); + 0; //eaimeta@70e063a35619d71f0,"@ember-data/serializer/-private"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/transforms/string", ["exports", "@ember-data/serializer/-private"], function (_exports, _private) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _private.StringTransform; + } + }); + + function cov_2amcisg5dk() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/string.js"; + var hash = "62836f36a2473062ae53bc12c8a114cf46394016"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/string.js", + statementMap: {}, + fnMap: {}, + branchMap: {}, + s: {}, + f: {}, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "62836f36a2473062ae53bc12c8a114cf46394016" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2amcisg5dk = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2amcisg5dk(); + 0; //eaimeta@70e063a35619d71f0,"@ember-data/serializer/-private"eaimeta@70e063a35619d71f +}); +;define("my-app-ember-exam/utils/my-covered-util", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = myCoveredUtil; + + function cov_27og3sms27() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-covered-util.js"; + var hash = "aa17cbeea9c697ea1fe73ec81e04fc8cb844ca24"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-covered-util.js", + statementMap: { + "0": { + start: { + line: 2, + column: 2 + }, + end: { + line: 2, + column: 14 + } + } + }, + fnMap: { + "0": { + name: "myCoveredUtil", + decl: { + start: { + line: 1, + column: 24 + }, + end: { + line: 1, + column: 37 + } + }, + loc: { + start: { + line: 1, + column: 40 + }, + end: { + line: 3, + column: 1 + } + }, + line: 1 + } + }, + branchMap: {}, + s: { + "0": 0 + }, + f: { + "0": 0 + }, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "aa17cbeea9c697ea1fe73ec81e04fc8cb844ca24" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_27og3sms27 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_27og3sms27(); + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + function myCoveredUtil() { + cov_27og3sms27().f[0]++; + cov_27og3sms27().s[0]++; + return true; + } +}); +;define("my-app-ember-exam/utils/my-uncovered-util-three", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = myUncoveredUtil31; + _exports.myUncoveredUtil32 = myUncoveredUtil32; + _exports.myUncoveredUtil33 = myUncoveredUtil33; + _exports.myUncoveredUtil34 = myUncoveredUtil34; + _exports.myUncoveredUtil35 = myUncoveredUtil35; + _exports.myUncoveredUtil36 = myUncoveredUtil36; + + function cov_1uz8kiz25y() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util-three.js"; + var hash = "4d323af564d1cf18c19f35f43724aac4cd98ac56"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util-three.js", + statementMap: { + "0": { + start: { + line: 2, + column: 2 + }, + end: { + line: 2, + column: 14 + } + }, + "1": { + start: { + line: 6, + column: 2 + }, + end: { + line: 6, + column: 14 + } + }, + "2": { + start: { + line: 10, + column: 2 + }, + end: { + line: 10, + column: 14 + } + }, + "3": { + start: { + line: 14, + column: 2 + }, + end: { + line: 14, + column: 14 + } + }, + "4": { + start: { + line: 18, + column: 2 + }, + end: { + line: 18, + column: 14 + } + }, + "5": { + start: { + line: 22, + column: 2 + }, + end: { + line: 22, + column: 14 + } + } + }, + fnMap: { + "0": { + name: "myUncoveredUtil31", + decl: { + start: { + line: 1, + column: 24 + }, + end: { + line: 1, + column: 41 + } + }, + loc: { + start: { + line: 1, + column: 44 + }, + end: { + line: 3, + column: 1 + } + }, + line: 1 + }, + "1": { + name: "myUncoveredUtil32", + decl: { + start: { + line: 5, + column: 16 + }, + end: { + line: 5, + column: 33 + } + }, + loc: { + start: { + line: 5, + column: 36 + }, + end: { + line: 7, + column: 1 + } + }, + line: 5 + }, + "2": { + name: "myUncoveredUtil33", + decl: { + start: { + line: 9, + column: 16 + }, + end: { + line: 9, + column: 33 + } + }, + loc: { + start: { + line: 9, + column: 36 + }, + end: { + line: 11, + column: 1 + } + }, + line: 9 + }, + "3": { + name: "myUncoveredUtil34", + decl: { + start: { + line: 13, + column: 16 + }, + end: { + line: 13, + column: 33 + } + }, + loc: { + start: { + line: 13, + column: 36 + }, + end: { + line: 15, + column: 1 + } + }, + line: 13 + }, + "4": { + name: "myUncoveredUtil35", + decl: { + start: { + line: 17, + column: 16 + }, + end: { + line: 17, + column: 33 + } + }, + loc: { + start: { + line: 17, + column: 36 + }, + end: { + line: 19, + column: 1 + } + }, + line: 17 + }, + "5": { + name: "myUncoveredUtil36", + decl: { + start: { + line: 21, + column: 16 + }, + end: { + line: 21, + column: 33 + } + }, + loc: { + start: { + line: 21, + column: 36 + }, + end: { + line: 23, + column: 1 + } + }, + line: 21 + } + }, + branchMap: {}, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "4d323af564d1cf18c19f35f43724aac4cd98ac56" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_1uz8kiz25y = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_1uz8kiz25y(); + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + function myUncoveredUtil31() { + cov_1uz8kiz25y().f[0]++; + cov_1uz8kiz25y().s[0]++; + return true; + } + + function myUncoveredUtil32() { + cov_1uz8kiz25y().f[1]++; + cov_1uz8kiz25y().s[1]++; + return true; + } + + function myUncoveredUtil33() { + cov_1uz8kiz25y().f[2]++; + cov_1uz8kiz25y().s[2]++; + return true; + } + + function myUncoveredUtil34() { + cov_1uz8kiz25y().f[3]++; + cov_1uz8kiz25y().s[3]++; + return true; + } + + function myUncoveredUtil35() { + cov_1uz8kiz25y().f[4]++; + cov_1uz8kiz25y().s[4]++; + return true; + } + + function myUncoveredUtil36() { + cov_1uz8kiz25y().f[5]++; + cov_1uz8kiz25y().s[5]++; + return true; + } +}); +;define("my-app-ember-exam/utils/my-uncovered-util-two", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = myUncoveredUtil21; + _exports.myUncoveredUtil22 = myUncoveredUtil22; + _exports.myUncoveredUtil23 = myUncoveredUtil23; + _exports.myUncoveredUtil24 = myUncoveredUtil24; + _exports.myUncoveredUtil25 = myUncoveredUtil25; + _exports.myUncoveredUtil26 = myUncoveredUtil26; + + function cov_2b97y891w9() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util-two.js"; + var hash = "5db8b53c9a3ac08100b5cdd4dd992a942d599e85"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util-two.js", + statementMap: { + "0": { + start: { + line: 2, + column: 2 + }, + end: { + line: 2, + column: 14 + } + }, + "1": { + start: { + line: 6, + column: 2 + }, + end: { + line: 6, + column: 14 + } + }, + "2": { + start: { + line: 10, + column: 2 + }, + end: { + line: 10, + column: 14 + } + }, + "3": { + start: { + line: 14, + column: 2 + }, + end: { + line: 14, + column: 14 + } + }, + "4": { + start: { + line: 18, + column: 2 + }, + end: { + line: 18, + column: 14 + } + }, + "5": { + start: { + line: 22, + column: 2 + }, + end: { + line: 22, + column: 14 + } + } + }, + fnMap: { + "0": { + name: "myUncoveredUtil21", + decl: { + start: { + line: 1, + column: 24 + }, + end: { + line: 1, + column: 41 + } + }, + loc: { + start: { + line: 1, + column: 44 + }, + end: { + line: 3, + column: 1 + } + }, + line: 1 + }, + "1": { + name: "myUncoveredUtil22", + decl: { + start: { + line: 5, + column: 16 + }, + end: { + line: 5, + column: 33 + } + }, + loc: { + start: { + line: 5, + column: 36 + }, + end: { + line: 7, + column: 1 + } + }, + line: 5 + }, + "2": { + name: "myUncoveredUtil23", + decl: { + start: { + line: 9, + column: 16 + }, + end: { + line: 9, + column: 33 + } + }, + loc: { + start: { + line: 9, + column: 36 + }, + end: { + line: 11, + column: 1 + } + }, + line: 9 + }, + "3": { + name: "myUncoveredUtil24", + decl: { + start: { + line: 13, + column: 16 + }, + end: { + line: 13, + column: 33 + } + }, + loc: { + start: { + line: 13, + column: 36 + }, + end: { + line: 15, + column: 1 + } + }, + line: 13 + }, + "4": { + name: "myUncoveredUtil25", + decl: { + start: { + line: 17, + column: 16 + }, + end: { + line: 17, + column: 33 + } + }, + loc: { + start: { + line: 17, + column: 36 + }, + end: { + line: 19, + column: 1 + } + }, + line: 17 + }, + "5": { + name: "myUncoveredUtil26", + decl: { + start: { + line: 21, + column: 16 + }, + end: { + line: 21, + column: 33 + } + }, + loc: { + start: { + line: 21, + column: 36 + }, + end: { + line: 23, + column: 1 + } + }, + line: 21 + } + }, + branchMap: {}, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "5db8b53c9a3ac08100b5cdd4dd992a942d599e85" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2b97y891w9 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2b97y891w9(); + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + function myUncoveredUtil21() { + cov_2b97y891w9().f[0]++; + cov_2b97y891w9().s[0]++; + return true; + } + + function myUncoveredUtil22() { + cov_2b97y891w9().f[1]++; + cov_2b97y891w9().s[1]++; + return true; + } + + function myUncoveredUtil23() { + cov_2b97y891w9().f[2]++; + cov_2b97y891w9().s[2]++; + return true; + } + + function myUncoveredUtil24() { + cov_2b97y891w9().f[3]++; + cov_2b97y891w9().s[3]++; + return true; + } + + function myUncoveredUtil25() { + cov_2b97y891w9().f[4]++; + cov_2b97y891w9().s[4]++; + return true; + } + + function myUncoveredUtil26() { + cov_2b97y891w9().f[5]++; + cov_2b97y891w9().s[5]++; + return true; + } +}); +;define("my-app-ember-exam/utils/my-uncovered-util", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = myUncoveredUtil; + _exports.myUncoveredUtil2 = myUncoveredUtil2; + _exports.myUncoveredUtil3 = myUncoveredUtil3; + _exports.myUncoveredUtil4 = myUncoveredUtil4; + _exports.myUncoveredUtil5 = myUncoveredUtil5; + _exports.myUncoveredUtil6 = myUncoveredUtil6; + + function cov_1xl3psv51b() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util.js"; + var hash = "d60e19840eae05b6a16670c014c6b9f269834fd9"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util.js", + statementMap: { + "0": { + start: { + line: 2, + column: 2 + }, + end: { + line: 2, + column: 14 + } + }, + "1": { + start: { + line: 6, + column: 2 + }, + end: { + line: 6, + column: 14 + } + }, + "2": { + start: { + line: 10, + column: 2 + }, + end: { + line: 10, + column: 14 + } + }, + "3": { + start: { + line: 14, + column: 2 + }, + end: { + line: 14, + column: 14 + } + }, + "4": { + start: { + line: 18, + column: 2 + }, + end: { + line: 18, + column: 14 + } + }, + "5": { + start: { + line: 22, + column: 2 + }, + end: { + line: 22, + column: 14 + } + } + }, + fnMap: { + "0": { + name: "myUncoveredUtil", + decl: { + start: { + line: 1, + column: 24 + }, + end: { + line: 1, + column: 39 + } + }, + loc: { + start: { + line: 1, + column: 42 + }, + end: { + line: 3, + column: 1 + } + }, + line: 1 + }, + "1": { + name: "myUncoveredUtil2", + decl: { + start: { + line: 5, + column: 16 + }, + end: { + line: 5, + column: 32 + } + }, + loc: { + start: { + line: 5, + column: 35 + }, + end: { + line: 7, + column: 1 + } + }, + line: 5 + }, + "2": { + name: "myUncoveredUtil3", + decl: { + start: { + line: 9, + column: 16 + }, + end: { + line: 9, + column: 32 + } + }, + loc: { + start: { + line: 9, + column: 35 + }, + end: { + line: 11, + column: 1 + } + }, + line: 9 + }, + "3": { + name: "myUncoveredUtil4", + decl: { + start: { + line: 13, + column: 16 + }, + end: { + line: 13, + column: 32 + } + }, + loc: { + start: { + line: 13, + column: 35 + }, + end: { + line: 15, + column: 1 + } + }, + line: 13 + }, + "4": { + name: "myUncoveredUtil5", + decl: { + start: { + line: 17, + column: 16 + }, + end: { + line: 17, + column: 32 + } + }, + loc: { + start: { + line: 17, + column: 35 + }, + end: { + line: 19, + column: 1 + } + }, + line: 17 + }, + "5": { + name: "myUncoveredUtil6", + decl: { + start: { + line: 21, + column: 16 + }, + end: { + line: 21, + column: 32 + } + }, + loc: { + start: { + line: 21, + column: 35 + }, + end: { + line: 23, + column: 1 + } + }, + line: 21 + } + }, + branchMap: {}, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "d60e19840eae05b6a16670c014c6b9f269834fd9" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_1xl3psv51b = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_1xl3psv51b(); + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + function myUncoveredUtil() { + cov_1xl3psv51b().f[0]++; + cov_1xl3psv51b().s[0]++; + return true; + } + + function myUncoveredUtil2() { + cov_1xl3psv51b().f[1]++; + cov_1xl3psv51b().s[1]++; + return true; + } + + function myUncoveredUtil3() { + cov_1xl3psv51b().f[2]++; + cov_1xl3psv51b().s[2]++; + return true; + } + + function myUncoveredUtil4() { + cov_1xl3psv51b().f[3]++; + cov_1xl3psv51b().s[3]++; + return true; + } + + function myUncoveredUtil5() { + cov_1xl3psv51b().f[4]++; + cov_1xl3psv51b().s[4]++; + return true; + } + + function myUncoveredUtil6() { + cov_1xl3psv51b().f[5]++; + cov_1xl3psv51b().s[5]++; + return true; + } +}); +; + +;define('my-app-ember-exam/config/environment', [], function() { + var prefix = 'my-app-ember-exam'; +try { + var metaName = prefix + '/config/environment'; + var rawConfig = document.querySelector('meta[name="' + metaName + '"]').getAttribute('content'); + var config = JSON.parse(decodeURIComponent(rawConfig)); + + var exports = { 'default': config }; + + Object.defineProperty(exports, '__esModule', { value: true }); + + return exports; +} +catch(err) { + throw new Error('Could not read config from meta tag with name "' + metaName + '".'); +} + +}); + +; + if (!runningTests) { + require("my-app-ember-exam/app")["default"].create({"name":"my-app-ember-exam","version":"0.0.0+ce1535f6"}); + } + +//# sourceMappingURL=my-app-ember-exam.map diff --git a/test-packages/my-app-ember-exam/test-dist/assets/my-app-ember-exam.map b/test-packages/my-app-ember-exam/test-dist/assets/my-app-ember-exam.map new file mode 100644 index 00000000..f3705428 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/my-app-ember-exam.map @@ -0,0 +1 @@ +{"version":3,"sources":["vendor/ember-cli/app-prefix.js","my-app-ember-exam/adapters/-json-api.js","my-app-ember-exam/app.js","my-app-ember-exam/component-managers/glimmer.js","my-app-ember-exam/components/welcome-page.js","my-app-ember-exam/data-adapter.js","my-app-ember-exam/helpers/app-version.js","my-app-ember-exam/helpers/pluralize.js","my-app-ember-exam/helpers/singularize.js","my-app-ember-exam/initializers/app-version.js","my-app-ember-exam/initializers/container-debug-adapter.js","my-app-ember-exam/initializers/ember-data-data-adapter.js","my-app-ember-exam/initializers/ember-data.js","my-app-ember-exam/initializers/export-application-global.js","my-app-ember-exam/instance-initializers/ember-data.js","my-app-ember-exam/router.js","my-app-ember-exam/serializers/-default.js","my-app-ember-exam/serializers/-json-api.js","my-app-ember-exam/serializers/-rest.js","my-app-ember-exam/services/store.js","my-app-ember-exam/templates/application.js","my-app-ember-exam/transforms/boolean.js","my-app-ember-exam/transforms/date.js","my-app-ember-exam/transforms/number.js","my-app-ember-exam/transforms/string.js","my-app-ember-exam/utils/my-covered-util.js","my-app-ember-exam/utils/my-uncovered-util-three.js","my-app-ember-exam/utils/my-uncovered-util-two.js","my-app-ember-exam/utils/my-uncovered-util.js","vendor/ember-cli/app-suffix.js","vendor/ember-cli/app-config.js","vendor/ember-cli/app-boot.js"],"sourcesContent":["'use strict';\n\n\n","define(\"my-app-ember-exam/adapters/-json-api\", [\"exports\", \"@ember-data/adapter/json-api\"], function (_exports, _jsonApi) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _jsonApi.default;\n }\n });\n\n function cov_2aw7w6q7nv() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/adapters/-json-api.js\";\n var hash = \"89983f184f3e48b5f522fbdc32086b5c514a0673\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/adapters/-json-api.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"89983f184f3e48b5f522fbdc32086b5c514a0673\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2aw7w6q7nv = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2aw7w6q7nv();\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/adapter/json-api\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/app\", [\"exports\", \"ember-resolver\", \"ember-load-initializers\", \"my-app-ember-exam/config/environment\"], function (_exports, _emberResolver, _emberLoadInitializers, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function cov_uputmd56i() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/app.js\";\n var hash = \"45ebb730f085c4267b16f2137cd381c6c24ac6b5\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/app.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 7,\n column: 17\n },\n end: {\n line: 7,\n column: 36\n }\n },\n \"1\": {\n start: {\n line: 8,\n column: 20\n },\n end: {\n line: 8,\n column: 42\n }\n },\n \"2\": {\n start: {\n line: 9,\n column: 13\n },\n end: {\n line: 9,\n column: 21\n }\n },\n \"3\": {\n start: {\n line: 12,\n column: 0\n },\n end: {\n line: 12,\n column: 43\n }\n }\n },\n fnMap: {},\n branchMap: {},\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0\n },\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"45ebb730f085c4267b16f2137cd381c6c24ac6b5\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_uputmd56i = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_uputmd56i();\n 0; //eaimeta@70e063a35619d71f0,\"@ember/application\",0,\"ember-resolver\",0,\"ember-load-initializers\",0,\"my-app-ember-exam/config/environment\"eaimeta@70e063a35619d71f\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n class App extends Ember.Application {\n constructor() {\n super(...arguments);\n\n _defineProperty(this, \"modulePrefix\", (cov_uputmd56i().s[0]++, _environment.default.modulePrefix));\n\n _defineProperty(this, \"podModulePrefix\", (cov_uputmd56i().s[1]++, _environment.default.podModulePrefix));\n\n _defineProperty(this, \"Resolver\", (cov_uputmd56i().s[2]++, _emberResolver.default));\n }\n\n }\n\n _exports.default = App;\n cov_uputmd56i().s[3]++;\n (0, _emberLoadInitializers.default)(App, _environment.default.modulePrefix);\n});","define(\"my-app-ember-exam/component-managers/glimmer\", [\"exports\", \"@glimmer/component/-private/ember-component-manager\"], function (_exports, _emberComponentManager) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _emberComponentManager.default;\n }\n });\n\n function cov_2jd8jwac87() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/component-managers/glimmer.js\";\n var hash = \"b6504de1e43856444b35ddca9b3779b7ce99d939\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/component-managers/glimmer.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"b6504de1e43856444b35ddca9b3779b7ce99d939\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2jd8jwac87 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2jd8jwac87();\n 0; //eaimeta@70e063a35619d71f0,\"@glimmer/component/-private/ember-component-manager\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/components/welcome-page\", [\"exports\", \"ember-welcome-page/components/welcome-page\"], function (_exports, _welcomePage) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _welcomePage.default;\n }\n });\n\n function cov_29o50ie7cr() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/components/welcome-page.js\";\n var hash = \"f97c6df8c297d65f9206165708cae7d2481d9977\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/components/welcome-page.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"f97c6df8c297d65f9206165708cae7d2481d9977\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_29o50ie7cr = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_29o50ie7cr();\n 0; //eaimeta@70e063a35619d71f0,\"ember-welcome-page/components/welcome-page\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/data-adapter\", [\"exports\", \"@ember-data/debug\"], function (_exports, _debug) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _debug.default;\n }\n });\n\n function cov_1ky2j9r6jl() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/data-adapter.js\";\n var hash = \"d3aa880292c01973d3652ee0c5b9ca999d6b8bc7\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/data-adapter.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"d3aa880292c01973d3652ee0c5b9ca999d6b8bc7\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_1ky2j9r6jl = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_1ky2j9r6jl();\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/debug\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/helpers/app-version\", [\"exports\", \"my-app-ember-exam/config/environment\", \"ember-cli-app-version/utils/regexp\"], function (_exports, _environment, _regexp) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.appVersion = appVersion;\n _exports.default = void 0;\n\n function cov_26mchx2t0q() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/app-version.js\";\n var hash = \"a488fcb27cb22937c90babee16989133481cbb97\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/app-version.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 6,\n column: 18\n },\n end: {\n line: 6,\n column: 36\n }\n },\n \"1\": {\n start: {\n line: 10,\n column: 20\n },\n end: {\n line: 10,\n column: 52\n }\n },\n \"2\": {\n start: {\n line: 11,\n column: 16\n },\n end: {\n line: 11,\n column: 48\n }\n },\n \"3\": {\n start: {\n line: 13,\n column: 14\n },\n end: {\n line: 13,\n column: 18\n }\n },\n \"4\": {\n start: {\n line: 15,\n column: 2\n },\n end: {\n line: 23,\n column: 3\n }\n },\n \"5\": {\n start: {\n line: 16,\n column: 4\n },\n end: {\n line: 18,\n column: 5\n }\n },\n \"6\": {\n start: {\n line: 17,\n column: 6\n },\n end: {\n line: 17,\n column: 51\n }\n },\n \"7\": {\n start: {\n line: 20,\n column: 4\n },\n end: {\n line: 22,\n column: 5\n }\n },\n \"8\": {\n start: {\n line: 21,\n column: 6\n },\n end: {\n line: 21,\n column: 43\n }\n },\n \"9\": {\n start: {\n line: 25,\n column: 2\n },\n end: {\n line: 27,\n column: 3\n }\n },\n \"10\": {\n start: {\n line: 26,\n column: 4\n },\n end: {\n line: 26,\n column: 37\n }\n },\n \"11\": {\n start: {\n line: 29,\n column: 2\n },\n end: {\n line: 29,\n column: 36\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"appVersion\",\n decl: {\n start: {\n line: 5,\n column: 16\n },\n end: {\n line: 5,\n column: 26\n }\n },\n loc: {\n start: {\n line: 5,\n column: 41\n },\n end: {\n line: 30,\n column: 1\n }\n },\n line: 5\n }\n },\n branchMap: {\n \"0\": {\n loc: {\n start: {\n line: 5,\n column: 30\n },\n end: {\n line: 5,\n column: 39\n }\n },\n type: \"default-arg\",\n locations: [{\n start: {\n line: 5,\n column: 37\n },\n end: {\n line: 5,\n column: 39\n }\n }],\n line: 5\n },\n \"1\": {\n loc: {\n start: {\n line: 10,\n column: 20\n },\n end: {\n line: 10,\n column: 52\n }\n },\n type: \"binary-expr\",\n locations: [{\n start: {\n line: 10,\n column: 20\n },\n end: {\n line: 10,\n column: 36\n }\n }, {\n start: {\n line: 10,\n column: 40\n },\n end: {\n line: 10,\n column: 52\n }\n }],\n line: 10\n },\n \"2\": {\n loc: {\n start: {\n line: 11,\n column: 16\n },\n end: {\n line: 11,\n column: 48\n }\n },\n type: \"binary-expr\",\n locations: [{\n start: {\n line: 11,\n column: 16\n },\n end: {\n line: 11,\n column: 28\n }\n }, {\n start: {\n line: 11,\n column: 32\n },\n end: {\n line: 11,\n column: 48\n }\n }],\n line: 11\n },\n \"3\": {\n loc: {\n start: {\n line: 15,\n column: 2\n },\n end: {\n line: 23,\n column: 3\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 15,\n column: 2\n },\n end: {\n line: 23,\n column: 3\n }\n }, {\n start: {\n line: 15,\n column: 2\n },\n end: {\n line: 23,\n column: 3\n }\n }],\n line: 15\n },\n \"4\": {\n loc: {\n start: {\n line: 16,\n column: 4\n },\n end: {\n line: 18,\n column: 5\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 16,\n column: 4\n },\n end: {\n line: 18,\n column: 5\n }\n }, {\n start: {\n line: 16,\n column: 4\n },\n end: {\n line: 18,\n column: 5\n }\n }],\n line: 16\n },\n \"5\": {\n loc: {\n start: {\n line: 20,\n column: 4\n },\n end: {\n line: 22,\n column: 5\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 20,\n column: 4\n },\n end: {\n line: 22,\n column: 5\n }\n }, {\n start: {\n line: 20,\n column: 4\n },\n end: {\n line: 22,\n column: 5\n }\n }],\n line: 20\n },\n \"6\": {\n loc: {\n start: {\n line: 25,\n column: 2\n },\n end: {\n line: 27,\n column: 3\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 25,\n column: 2\n },\n end: {\n line: 27,\n column: 3\n }\n }, {\n start: {\n line: 25,\n column: 2\n },\n end: {\n line: 27,\n column: 3\n }\n }],\n line: 25\n },\n \"7\": {\n loc: {\n start: {\n line: 29,\n column: 9\n },\n end: {\n line: 29,\n column: 35\n }\n },\n type: \"cond-expr\",\n locations: [{\n start: {\n line: 29,\n column: 17\n },\n end: {\n line: 29,\n column: 25\n }\n }, {\n start: {\n line: 29,\n column: 28\n },\n end: {\n line: 29,\n column: 35\n }\n }],\n line: 29\n }\n },\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0,\n \"6\": 0,\n \"7\": 0,\n \"8\": 0,\n \"9\": 0,\n \"10\": 0,\n \"11\": 0\n },\n f: {\n \"0\": 0\n },\n b: {\n \"0\": [0],\n \"1\": [0, 0],\n \"2\": [0, 0],\n \"3\": [0, 0],\n \"4\": [0, 0],\n \"5\": [0, 0],\n \"6\": [0, 0],\n \"7\": [0, 0]\n },\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"a488fcb27cb22937c90babee16989133481cbb97\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_26mchx2t0q = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_26mchx2t0q();\n 0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"my-app-ember-exam/config/environment\",0,\"ember-cli-app-version/utils/regexp\"eaimeta@70e063a35619d71f\n\n function appVersion(_) {\n let hash = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (cov_26mchx2t0q().b[0][0]++, {});\n cov_26mchx2t0q().f[0]++;\n const version = (cov_26mchx2t0q().s[0]++, _environment.default.APP.version); // e.g. 1.0.0-alpha.1+4jds75hf\n // Allow use of 'hideSha' and 'hideVersion' For backwards compatibility\n\n let versionOnly = (cov_26mchx2t0q().s[1]++, (cov_26mchx2t0q().b[1][0]++, hash.versionOnly) || (cov_26mchx2t0q().b[1][1]++, hash.hideSha));\n let shaOnly = (cov_26mchx2t0q().s[2]++, (cov_26mchx2t0q().b[2][0]++, hash.shaOnly) || (cov_26mchx2t0q().b[2][1]++, hash.hideVersion));\n let match = (cov_26mchx2t0q().s[3]++, null);\n cov_26mchx2t0q().s[4]++;\n\n if (versionOnly) {\n cov_26mchx2t0q().b[3][0]++;\n cov_26mchx2t0q().s[5]++;\n\n if (hash.showExtended) {\n cov_26mchx2t0q().b[4][0]++;\n cov_26mchx2t0q().s[6]++;\n match = version.match(_regexp.versionExtendedRegExp); // 1.0.0-alpha.1\n } else {\n cov_26mchx2t0q().b[4][1]++;\n } // Fallback to just version\n\n\n cov_26mchx2t0q().s[7]++;\n\n if (!match) {\n cov_26mchx2t0q().b[5][0]++;\n cov_26mchx2t0q().s[8]++;\n match = version.match(_regexp.versionRegExp); // 1.0.0\n } else {\n cov_26mchx2t0q().b[5][1]++;\n }\n } else {\n cov_26mchx2t0q().b[3][1]++;\n }\n\n cov_26mchx2t0q().s[9]++;\n\n if (shaOnly) {\n cov_26mchx2t0q().b[6][0]++;\n cov_26mchx2t0q().s[10]++;\n match = version.match(_regexp.shaRegExp); // 4jds75hf\n } else {\n cov_26mchx2t0q().b[6][1]++;\n }\n\n cov_26mchx2t0q().s[11]++;\n return match ? (cov_26mchx2t0q().b[7][0]++, match[0]) : (cov_26mchx2t0q().b[7][1]++, version);\n }\n\n var _default = Ember.Helper.helper(appVersion);\n\n _exports.default = _default;\n});","define(\"my-app-ember-exam/helpers/pluralize\", [\"exports\", \"ember-inflector/lib/helpers/pluralize\"], function (_exports, _pluralize) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function cov_2a8grxws55() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/pluralize.js\";\n var hash = \"ed68c8876bca5b3a862c8c029bd5e0fa283652a5\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/pluralize.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"ed68c8876bca5b3a862c8c029bd5e0fa283652a5\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2a8grxws55 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2a8grxws55();\n 0; //eaimeta@70e063a35619d71f0,\"ember-inflector/lib/helpers/pluralize\"eaimeta@70e063a35619d71f\n\n var _default = _pluralize.default;\n _exports.default = _default;\n});","define(\"my-app-ember-exam/helpers/singularize\", [\"exports\", \"ember-inflector/lib/helpers/singularize\"], function (_exports, _singularize) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function cov_gi6jzrgvn() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/singularize.js\";\n var hash = \"8d3d25bd2007712426b3c56bc58f164ed271d674\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/helpers/singularize.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"8d3d25bd2007712426b3c56bc58f164ed271d674\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_gi6jzrgvn = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_gi6jzrgvn();\n 0; //eaimeta@70e063a35619d71f0,\"ember-inflector/lib/helpers/singularize\"eaimeta@70e063a35619d71f\n\n var _default = _singularize.default;\n _exports.default = _default;\n});","define(\"my-app-ember-exam/initializers/app-version\", [\"exports\", \"ember-cli-app-version/initializer-factory\", \"my-app-ember-exam/config/environment\"], function (_exports, _initializerFactory, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function cov_6gms4bba7() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/app-version.js\";\n var hash = \"f73a50ed3d14071586c599a5fa32204f90db2f45\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/app-version.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 5,\n column: 0\n },\n end: {\n line: 8,\n column: 1\n }\n },\n \"1\": {\n start: {\n line: 6,\n column: 2\n },\n end: {\n line: 6,\n column: 25\n }\n },\n \"2\": {\n start: {\n line: 7,\n column: 2\n },\n end: {\n line: 7,\n column: 31\n }\n }\n },\n fnMap: {},\n branchMap: {\n \"0\": {\n loc: {\n start: {\n line: 5,\n column: 0\n },\n end: {\n line: 8,\n column: 1\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 5,\n column: 0\n },\n end: {\n line: 8,\n column: 1\n }\n }, {\n start: {\n line: 5,\n column: 0\n },\n end: {\n line: 8,\n column: 1\n }\n }],\n line: 5\n }\n },\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0\n },\n f: {},\n b: {\n \"0\": [0, 0]\n },\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"f73a50ed3d14071586c599a5fa32204f90db2f45\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_6gms4bba7 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_6gms4bba7();\n 0; //eaimeta@70e063a35619d71f0,\"ember-cli-app-version/initializer-factory\",0,\"my-app-ember-exam/config/environment\"eaimeta@70e063a35619d71f\n\n let name, version;\n cov_6gms4bba7().s[0]++;\n\n if (_environment.default.APP) {\n cov_6gms4bba7().b[0][0]++;\n cov_6gms4bba7().s[1]++;\n name = _environment.default.APP.name;\n cov_6gms4bba7().s[2]++;\n version = _environment.default.APP.version;\n } else {\n cov_6gms4bba7().b[0][1]++;\n }\n\n var _default = {\n name: 'App Version',\n initialize: (0, _initializerFactory.default)(name, version)\n };\n _exports.default = _default;\n});","define(\"my-app-ember-exam/initializers/container-debug-adapter\", [\"exports\", \"ember-resolver/resolvers/classic/container-debug-adapter\"], function (_exports, _containerDebugAdapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function cov_2esf39ioqg() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/container-debug-adapter.js\";\n var hash = \"39f9e14b5b32f393150943ca4fd4d61851799319\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/container-debug-adapter.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 7,\n column: 14\n },\n end: {\n line: 7,\n column: 42\n }\n },\n \"1\": {\n start: {\n line: 9,\n column: 4\n },\n end: {\n line: 9,\n column: 72\n }\n },\n \"2\": {\n start: {\n line: 10,\n column: 4\n },\n end: {\n line: 10,\n column: 80\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"(anonymous_0)\",\n decl: {\n start: {\n line: 6,\n column: 2\n },\n end: {\n line: 6,\n column: 3\n }\n },\n loc: {\n start: {\n line: 6,\n column: 15\n },\n end: {\n line: 11,\n column: 3\n }\n },\n line: 6\n }\n },\n branchMap: {\n \"0\": {\n loc: {\n start: {\n line: 7,\n column: 14\n },\n end: {\n line: 7,\n column: 42\n }\n },\n type: \"binary-expr\",\n locations: [{\n start: {\n line: 7,\n column: 14\n },\n end: {\n line: 7,\n column: 26\n }\n }, {\n start: {\n line: 7,\n column: 30\n },\n end: {\n line: 7,\n column: 42\n }\n }],\n line: 7\n }\n },\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0\n },\n f: {\n \"0\": 0\n },\n b: {\n \"0\": [0, 0]\n },\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"39f9e14b5b32f393150943ca4fd4d61851799319\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2esf39ioqg = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2esf39ioqg();\n 0; //eaimeta@70e063a35619d71f0,\"ember-resolver/resolvers/classic/container-debug-adapter\"eaimeta@70e063a35619d71f\n\n var _default = {\n name: 'container-debug-adapter',\n\n initialize() {\n cov_2esf39ioqg().f[0]++;\n let app = (cov_2esf39ioqg().s[0]++, (cov_2esf39ioqg().b[0][0]++, arguments[1]) || (cov_2esf39ioqg().b[0][1]++, arguments[0]));\n cov_2esf39ioqg().s[1]++;\n app.register('container-debug-adapter:main', _containerDebugAdapter.default);\n cov_2esf39ioqg().s[2]++;\n app.inject('container-debug-adapter:main', 'namespace', 'application:main');\n }\n\n };\n _exports.default = _default;\n});","define(\"my-app-ember-exam/initializers/ember-data-data-adapter\", [\"exports\", \"@ember-data/debug/setup\"], function (_exports, _setup) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _setup.default;\n }\n });\n\n function cov_22q58z9c3f() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/ember-data-data-adapter.js\";\n var hash = \"f1c6678891dcf25aa177ec56b1764c7fe3d85fc8\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/ember-data-data-adapter.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"f1c6678891dcf25aa177ec56b1764c7fe3d85fc8\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_22q58z9c3f = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_22q58z9c3f();\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/debug/setup\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/initializers/ember-data\", [\"exports\", \"ember-data\", \"ember-data/setup-container\"], function (_exports, _emberData, _setupContainer) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function cov_8jptz9zzl() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/ember-data.js\";\n var hash = \"d2a447f583d8478bbfa5015a2eafe5bd840da8a6\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/ember-data.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"d2a447f583d8478bbfa5015a2eafe5bd840da8a6\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_8jptz9zzl = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_8jptz9zzl();\n 0; //eaimeta@70e063a35619d71f0,\"ember-data\",0,\"ember-data/setup-container\"eaimeta@70e063a35619d71f\n\n /*\n This code initializes EmberData in an Ember application.\n \n It ensures that the `store` service is automatically injected\n as the `store` property on all routes and controllers.\n */\n var _default = {\n name: 'ember-data',\n initialize: _setupContainer.default\n };\n _exports.default = _default;\n});","define(\"my-app-ember-exam/initializers/export-application-global\", [\"exports\", \"my-app-ember-exam/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n _exports.initialize = initialize;\n\n function cov_1k9adz1pv4() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/export-application-global.js\";\n var hash = \"e9afa0a3895a0abe91ee4f342e9580fa15b3d0bb\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/initializers/export-application-global.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 5,\n column: 20\n },\n end: {\n line: 5,\n column: 48\n }\n },\n \"1\": {\n start: {\n line: 6,\n column: 2\n },\n end: {\n line: 38,\n column: 3\n }\n },\n \"2\": {\n start: {\n line: 8,\n column: 4\n },\n end: {\n line: 17,\n column: 5\n }\n },\n \"3\": {\n start: {\n line: 9,\n column: 8\n },\n end: {\n line: 9,\n column: 27\n }\n },\n \"4\": {\n start: {\n line: 10,\n column: 11\n },\n end: {\n line: 17,\n column: 5\n }\n },\n \"5\": {\n start: {\n line: 11,\n column: 8\n },\n end: {\n line: 11,\n column: 26\n }\n },\n \"6\": {\n start: {\n line: 12,\n column: 11\n },\n end: {\n line: 17,\n column: 5\n }\n },\n \"7\": {\n start: {\n line: 13,\n column: 8\n },\n end: {\n line: 13,\n column: 25\n }\n },\n \"8\": {\n start: {\n line: 16,\n column: 7\n },\n end: {\n line: 16,\n column: 14\n }\n },\n \"9\": {\n start: {\n line: 19,\n column: 16\n },\n end: {\n line: 19,\n column: 46\n }\n },\n \"10\": {\n start: {\n line: 22,\n column: 4\n },\n end: {\n line: 26,\n column: 5\n }\n },\n \"11\": {\n start: {\n line: 23,\n column: 6\n },\n end: {\n line: 23,\n column: 25\n }\n },\n \"12\": {\n start: {\n line: 25,\n column: 6\n },\n end: {\n line: 25,\n column: 62\n }\n },\n \"13\": {\n start: {\n line: 28,\n column: 4\n },\n end: {\n line: 37,\n column: 5\n }\n },\n \"14\": {\n start: {\n line: 29,\n column: 6\n },\n end: {\n line: 29,\n column: 42\n }\n },\n \"15\": {\n start: {\n line: 31,\n column: 6\n },\n end: {\n line: 36,\n column: 9\n }\n },\n \"16\": {\n start: {\n line: 33,\n column: 10\n },\n end: {\n line: 33,\n column: 45\n }\n },\n \"17\": {\n start: {\n line: 34,\n column: 10\n },\n end: {\n line: 34,\n column: 39\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"initialize\",\n decl: {\n start: {\n line: 4,\n column: 16\n },\n end: {\n line: 4,\n column: 26\n }\n },\n loc: {\n start: {\n line: 4,\n column: 29\n },\n end: {\n line: 39,\n column: 1\n }\n },\n line: 4\n },\n \"1\": {\n name: \"(anonymous_1)\",\n decl: {\n start: {\n line: 32,\n column: 21\n },\n end: {\n line: 32,\n column: 22\n }\n },\n loc: {\n start: {\n line: 32,\n column: 32\n },\n end: {\n line: 35,\n column: 9\n }\n },\n line: 32\n }\n },\n branchMap: {\n \"0\": {\n loc: {\n start: {\n line: 5,\n column: 20\n },\n end: {\n line: 5,\n column: 48\n }\n },\n type: \"binary-expr\",\n locations: [{\n start: {\n line: 5,\n column: 20\n },\n end: {\n line: 5,\n column: 32\n }\n }, {\n start: {\n line: 5,\n column: 36\n },\n end: {\n line: 5,\n column: 48\n }\n }],\n line: 5\n },\n \"1\": {\n loc: {\n start: {\n line: 6,\n column: 2\n },\n end: {\n line: 38,\n column: 3\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 6,\n column: 2\n },\n end: {\n line: 38,\n column: 3\n }\n }, {\n start: {\n line: 6,\n column: 2\n },\n end: {\n line: 38,\n column: 3\n }\n }],\n line: 6\n },\n \"2\": {\n loc: {\n start: {\n line: 8,\n column: 4\n },\n end: {\n line: 17,\n column: 5\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 8,\n column: 4\n },\n end: {\n line: 17,\n column: 5\n }\n }, {\n start: {\n line: 8,\n column: 4\n },\n end: {\n line: 17,\n column: 5\n }\n }],\n line: 8\n },\n \"3\": {\n loc: {\n start: {\n line: 10,\n column: 11\n },\n end: {\n line: 17,\n column: 5\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 10,\n column: 11\n },\n end: {\n line: 17,\n column: 5\n }\n }, {\n start: {\n line: 10,\n column: 11\n },\n end: {\n line: 17,\n column: 5\n }\n }],\n line: 10\n },\n \"4\": {\n loc: {\n start: {\n line: 12,\n column: 11\n },\n end: {\n line: 17,\n column: 5\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 12,\n column: 11\n },\n end: {\n line: 17,\n column: 5\n }\n }, {\n start: {\n line: 12,\n column: 11\n },\n end: {\n line: 17,\n column: 5\n }\n }],\n line: 12\n },\n \"5\": {\n loc: {\n start: {\n line: 22,\n column: 4\n },\n end: {\n line: 26,\n column: 5\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 22,\n column: 4\n },\n end: {\n line: 26,\n column: 5\n }\n }, {\n start: {\n line: 22,\n column: 4\n },\n end: {\n line: 26,\n column: 5\n }\n }],\n line: 22\n },\n \"6\": {\n loc: {\n start: {\n line: 28,\n column: 4\n },\n end: {\n line: 37,\n column: 5\n }\n },\n type: \"if\",\n locations: [{\n start: {\n line: 28,\n column: 4\n },\n end: {\n line: 37,\n column: 5\n }\n }, {\n start: {\n line: 28,\n column: 4\n },\n end: {\n line: 37,\n column: 5\n }\n }],\n line: 28\n }\n },\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0,\n \"6\": 0,\n \"7\": 0,\n \"8\": 0,\n \"9\": 0,\n \"10\": 0,\n \"11\": 0,\n \"12\": 0,\n \"13\": 0,\n \"14\": 0,\n \"15\": 0,\n \"16\": 0,\n \"17\": 0\n },\n f: {\n \"0\": 0,\n \"1\": 0\n },\n b: {\n \"0\": [0, 0],\n \"1\": [0, 0],\n \"2\": [0, 0],\n \"3\": [0, 0],\n \"4\": [0, 0],\n \"5\": [0, 0],\n \"6\": [0, 0]\n },\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"e9afa0a3895a0abe91ee4f342e9580fa15b3d0bb\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_1k9adz1pv4 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_1k9adz1pv4();\n 0; //eaimeta@70e063a35619d71f0,\"ember\",0,\"my-app-ember-exam/config/environment\"eaimeta@70e063a35619d71f\n\n function initialize() {\n cov_1k9adz1pv4().f[0]++;\n var application = (cov_1k9adz1pv4().s[0]++, (cov_1k9adz1pv4().b[0][0]++, arguments[1]) || (cov_1k9adz1pv4().b[0][1]++, arguments[0]));\n cov_1k9adz1pv4().s[1]++;\n\n if (_environment.default.exportApplicationGlobal !== false) {\n cov_1k9adz1pv4().b[1][0]++;\n var theGlobal;\n cov_1k9adz1pv4().s[2]++;\n\n if (typeof window !== 'undefined') {\n cov_1k9adz1pv4().b[2][0]++;\n cov_1k9adz1pv4().s[3]++;\n theGlobal = window;\n } else {\n cov_1k9adz1pv4().b[2][1]++;\n cov_1k9adz1pv4().s[4]++;\n\n if (typeof global !== 'undefined') {\n cov_1k9adz1pv4().b[3][0]++;\n cov_1k9adz1pv4().s[5]++;\n theGlobal = global;\n } else {\n cov_1k9adz1pv4().b[3][1]++;\n cov_1k9adz1pv4().s[6]++;\n\n if (typeof self !== 'undefined') {\n cov_1k9adz1pv4().b[4][0]++;\n cov_1k9adz1pv4().s[7]++;\n theGlobal = self;\n } else {\n cov_1k9adz1pv4().b[4][1]++;\n cov_1k9adz1pv4().s[8]++;\n // no reasonable global, just bail\n return;\n }\n }\n }\n\n var value = (cov_1k9adz1pv4().s[9]++, _environment.default.exportApplicationGlobal);\n var globalName;\n cov_1k9adz1pv4().s[10]++;\n\n if (typeof value === 'string') {\n cov_1k9adz1pv4().b[5][0]++;\n cov_1k9adz1pv4().s[11]++;\n globalName = value;\n } else {\n cov_1k9adz1pv4().b[5][1]++;\n cov_1k9adz1pv4().s[12]++;\n globalName = Ember.String.classify(_environment.default.modulePrefix);\n }\n\n cov_1k9adz1pv4().s[13]++;\n\n if (!theGlobal[globalName]) {\n cov_1k9adz1pv4().b[6][0]++;\n cov_1k9adz1pv4().s[14]++;\n theGlobal[globalName] = application;\n cov_1k9adz1pv4().s[15]++;\n application.reopen({\n willDestroy: function () {\n cov_1k9adz1pv4().f[1]++;\n cov_1k9adz1pv4().s[16]++;\n\n this._super.apply(this, arguments);\n\n cov_1k9adz1pv4().s[17]++;\n delete theGlobal[globalName];\n }\n });\n } else {\n cov_1k9adz1pv4().b[6][1]++;\n }\n } else {\n cov_1k9adz1pv4().b[1][1]++;\n }\n }\n\n var _default = {\n name: 'export-application-global',\n initialize: initialize\n };\n _exports.default = _default;\n});","define(\"my-app-ember-exam/instance-initializers/ember-data\", [\"exports\", \"ember-data/initialize-store-service\"], function (_exports, _initializeStoreService) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function cov_9mfbb652v() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/instance-initializers/ember-data.js\";\n var hash = \"0174b6867b04c90c30803847d85f3524f2a033d3\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/instance-initializers/ember-data.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"0174b6867b04c90c30803847d85f3524f2a033d3\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_9mfbb652v = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_9mfbb652v();\n 0; //eaimeta@70e063a35619d71f0,\"ember-data/initialize-store-service\"eaimeta@70e063a35619d71f\n\n var _default = {\n name: 'ember-data',\n initialize: _initializeStoreService.default\n };\n _exports.default = _default;\n});","define(\"my-app-ember-exam/router\", [\"exports\", \"my-app-ember-exam/config/environment\"], function (_exports, _environment) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function cov_2llzky0cx7() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/router.js\";\n var hash = \"74272aba6088b8ee4342414fd5fcb1a7285ceac3\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/router.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 5,\n column: 13\n },\n end: {\n line: 5,\n column: 32\n }\n },\n \"1\": {\n start: {\n line: 6,\n column: 12\n },\n end: {\n line: 6,\n column: 26\n }\n },\n \"2\": {\n start: {\n line: 9,\n column: 0\n },\n end: {\n line: 10,\n column: 3\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"(anonymous_0)\",\n decl: {\n start: {\n line: 9,\n column: 11\n },\n end: {\n line: 9,\n column: 12\n }\n },\n loc: {\n start: {\n line: 9,\n column: 22\n },\n end: {\n line: 10,\n column: 1\n }\n },\n line: 9\n }\n },\n branchMap: {},\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0\n },\n f: {\n \"0\": 0\n },\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"74272aba6088b8ee4342414fd5fcb1a7285ceac3\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2llzky0cx7 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2llzky0cx7();\n 0; //eaimeta@70e063a35619d71f0,\"@ember/routing/router\",0,\"my-app-ember-exam/config/environment\"eaimeta@70e063a35619d71f\n\n function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n class Router extends Ember.Router {\n constructor() {\n super(...arguments);\n\n _defineProperty(this, \"location\", (cov_2llzky0cx7().s[0]++, _environment.default.locationType));\n\n _defineProperty(this, \"rootURL\", (cov_2llzky0cx7().s[1]++, _environment.default.rootURL));\n }\n\n }\n\n _exports.default = Router;\n cov_2llzky0cx7().s[2]++;\n Router.map(function () {\n cov_2llzky0cx7().f[0]++;\n });\n});","define(\"my-app-ember-exam/serializers/-default\", [\"exports\", \"@ember-data/serializer/json\"], function (_exports, _json) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _json.default;\n }\n });\n\n function cov_h9wl0te8b() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-default.js\";\n var hash = \"bd2774eaed3093a8186f11de132c8b4c41677e5d\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-default.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"bd2774eaed3093a8186f11de132c8b4c41677e5d\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_h9wl0te8b = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_h9wl0te8b();\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/json\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/serializers/-json-api\", [\"exports\", \"@ember-data/serializer/json-api\"], function (_exports, _jsonApi) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _jsonApi.default;\n }\n });\n\n function cov_1g0w51nbqn() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-json-api.js\";\n var hash = \"66a87759c4d9672c2b412c0303496aea6834fe7f\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-json-api.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"66a87759c4d9672c2b412c0303496aea6834fe7f\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_1g0w51nbqn = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_1g0w51nbqn();\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/json-api\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/serializers/-rest\", [\"exports\", \"@ember-data/serializer/rest\"], function (_exports, _rest) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _rest.default;\n }\n });\n\n function cov_1t9yl72d94() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-rest.js\";\n var hash = \"4b7c928f154664311bb73197005f3734d831c57c\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/serializers/-rest.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"4b7c928f154664311bb73197005f3734d831c57c\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_1t9yl72d94 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_1t9yl72d94();\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/rest\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/services/store\", [\"exports\", \"ember-data/store\"], function (_exports, _store) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _store.default;\n }\n });\n\n function cov_2ajphcf3cr() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/services/store.js\";\n var hash = \"6b6112fdd9ca3f0847f1fd9b1da53a9ccd858e1b\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/services/store.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"6b6112fdd9ca3f0847f1fd9b1da53a9ccd858e1b\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2ajphcf3cr = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2ajphcf3cr();\n 0; //eaimeta@70e063a35619d71f0,\"ember-data/store\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/templates/application\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function cov_1epc5hoqix() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/templates/application.js\";\n var hash = \"e9a4f1c966a944fd42dc0c9cd62bab69f3442ab4\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/templates/application.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"e9a4f1c966a944fd42dc0c9cd62bab69f3442ab4\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_1epc5hoqix = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_1epc5hoqix();\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n var _default = Ember.HTMLBars.template({\n \"id\": \"78sl0Rrj\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[5,\\\"welcome-page\\\",[],[[],[]]],[0,\\\"\\\\n\\\"],[0,\\\"\\\\n\\\"],[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {\n \"moduleName\": \"my-app-ember-exam/templates/application.hbs\"\n }\n });\n\n _exports.default = _default;\n});","define(\"my-app-ember-exam/transforms/boolean\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _private.BooleanTransform;\n }\n });\n\n function cov_2fu48cymd9() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/boolean.js\";\n var hash = \"56d9523bc18e0a4746baea3486962d1675f38532\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/boolean.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"56d9523bc18e0a4746baea3486962d1675f38532\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2fu48cymd9 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2fu48cymd9();\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/-private\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/transforms/date\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _private.DateTransform;\n }\n });\n\n function cov_1yprmqizlj() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/date.js\";\n var hash = \"71c2316c7f0146410b025759b264e7f6d3ffbd21\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/date.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"71c2316c7f0146410b025759b264e7f6d3ffbd21\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_1yprmqizlj = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_1yprmqizlj();\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/-private\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/transforms/number\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _private.NumberTransform;\n }\n });\n\n function cov_2430ok27r8() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/number.js\";\n var hash = \"4d7882ce79c1435900d3916aca6e07abd2310c3a\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/number.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"4d7882ce79c1435900d3916aca6e07abd2310c3a\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2430ok27r8 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2430ok27r8();\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/-private\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/transforms/string\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _private.StringTransform;\n }\n });\n\n function cov_2amcisg5dk() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/string.js\";\n var hash = \"62836f36a2473062ae53bc12c8a114cf46394016\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/transforms/string.js\",\n statementMap: {},\n fnMap: {},\n branchMap: {},\n s: {},\n f: {},\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"62836f36a2473062ae53bc12c8a114cf46394016\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2amcisg5dk = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2amcisg5dk();\n 0; //eaimeta@70e063a35619d71f0,\"@ember-data/serializer/-private\"eaimeta@70e063a35619d71f\n});","define(\"my-app-ember-exam/utils/my-covered-util\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = myCoveredUtil;\n\n function cov_27og3sms27() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-covered-util.js\";\n var hash = \"aa17cbeea9c697ea1fe73ec81e04fc8cb844ca24\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-covered-util.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 2,\n column: 2\n },\n end: {\n line: 2,\n column: 14\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"myCoveredUtil\",\n decl: {\n start: {\n line: 1,\n column: 24\n },\n end: {\n line: 1,\n column: 37\n }\n },\n loc: {\n start: {\n line: 1,\n column: 40\n },\n end: {\n line: 3,\n column: 1\n }\n },\n line: 1\n }\n },\n branchMap: {},\n s: {\n \"0\": 0\n },\n f: {\n \"0\": 0\n },\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"aa17cbeea9c697ea1fe73ec81e04fc8cb844ca24\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_27og3sms27 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_27og3sms27();\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n function myCoveredUtil() {\n cov_27og3sms27().f[0]++;\n cov_27og3sms27().s[0]++;\n return true;\n }\n});","define(\"my-app-ember-exam/utils/my-uncovered-util-three\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = myUncoveredUtil31;\n _exports.myUncoveredUtil32 = myUncoveredUtil32;\n _exports.myUncoveredUtil33 = myUncoveredUtil33;\n _exports.myUncoveredUtil34 = myUncoveredUtil34;\n _exports.myUncoveredUtil35 = myUncoveredUtil35;\n _exports.myUncoveredUtil36 = myUncoveredUtil36;\n\n function cov_1uz8kiz25y() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util-three.js\";\n var hash = \"4d323af564d1cf18c19f35f43724aac4cd98ac56\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util-three.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 2,\n column: 2\n },\n end: {\n line: 2,\n column: 14\n }\n },\n \"1\": {\n start: {\n line: 6,\n column: 2\n },\n end: {\n line: 6,\n column: 14\n }\n },\n \"2\": {\n start: {\n line: 10,\n column: 2\n },\n end: {\n line: 10,\n column: 14\n }\n },\n \"3\": {\n start: {\n line: 14,\n column: 2\n },\n end: {\n line: 14,\n column: 14\n }\n },\n \"4\": {\n start: {\n line: 18,\n column: 2\n },\n end: {\n line: 18,\n column: 14\n }\n },\n \"5\": {\n start: {\n line: 22,\n column: 2\n },\n end: {\n line: 22,\n column: 14\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"myUncoveredUtil31\",\n decl: {\n start: {\n line: 1,\n column: 24\n },\n end: {\n line: 1,\n column: 41\n }\n },\n loc: {\n start: {\n line: 1,\n column: 44\n },\n end: {\n line: 3,\n column: 1\n }\n },\n line: 1\n },\n \"1\": {\n name: \"myUncoveredUtil32\",\n decl: {\n start: {\n line: 5,\n column: 16\n },\n end: {\n line: 5,\n column: 33\n }\n },\n loc: {\n start: {\n line: 5,\n column: 36\n },\n end: {\n line: 7,\n column: 1\n }\n },\n line: 5\n },\n \"2\": {\n name: \"myUncoveredUtil33\",\n decl: {\n start: {\n line: 9,\n column: 16\n },\n end: {\n line: 9,\n column: 33\n }\n },\n loc: {\n start: {\n line: 9,\n column: 36\n },\n end: {\n line: 11,\n column: 1\n }\n },\n line: 9\n },\n \"3\": {\n name: \"myUncoveredUtil34\",\n decl: {\n start: {\n line: 13,\n column: 16\n },\n end: {\n line: 13,\n column: 33\n }\n },\n loc: {\n start: {\n line: 13,\n column: 36\n },\n end: {\n line: 15,\n column: 1\n }\n },\n line: 13\n },\n \"4\": {\n name: \"myUncoveredUtil35\",\n decl: {\n start: {\n line: 17,\n column: 16\n },\n end: {\n line: 17,\n column: 33\n }\n },\n loc: {\n start: {\n line: 17,\n column: 36\n },\n end: {\n line: 19,\n column: 1\n }\n },\n line: 17\n },\n \"5\": {\n name: \"myUncoveredUtil36\",\n decl: {\n start: {\n line: 21,\n column: 16\n },\n end: {\n line: 21,\n column: 33\n }\n },\n loc: {\n start: {\n line: 21,\n column: 36\n },\n end: {\n line: 23,\n column: 1\n }\n },\n line: 21\n }\n },\n branchMap: {},\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0\n },\n f: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0\n },\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"4d323af564d1cf18c19f35f43724aac4cd98ac56\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_1uz8kiz25y = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_1uz8kiz25y();\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n function myUncoveredUtil31() {\n cov_1uz8kiz25y().f[0]++;\n cov_1uz8kiz25y().s[0]++;\n return true;\n }\n\n function myUncoveredUtil32() {\n cov_1uz8kiz25y().f[1]++;\n cov_1uz8kiz25y().s[1]++;\n return true;\n }\n\n function myUncoveredUtil33() {\n cov_1uz8kiz25y().f[2]++;\n cov_1uz8kiz25y().s[2]++;\n return true;\n }\n\n function myUncoveredUtil34() {\n cov_1uz8kiz25y().f[3]++;\n cov_1uz8kiz25y().s[3]++;\n return true;\n }\n\n function myUncoveredUtil35() {\n cov_1uz8kiz25y().f[4]++;\n cov_1uz8kiz25y().s[4]++;\n return true;\n }\n\n function myUncoveredUtil36() {\n cov_1uz8kiz25y().f[5]++;\n cov_1uz8kiz25y().s[5]++;\n return true;\n }\n});","define(\"my-app-ember-exam/utils/my-uncovered-util-two\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = myUncoveredUtil21;\n _exports.myUncoveredUtil22 = myUncoveredUtil22;\n _exports.myUncoveredUtil23 = myUncoveredUtil23;\n _exports.myUncoveredUtil24 = myUncoveredUtil24;\n _exports.myUncoveredUtil25 = myUncoveredUtil25;\n _exports.myUncoveredUtil26 = myUncoveredUtil26;\n\n function cov_2b97y891w9() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util-two.js\";\n var hash = \"5db8b53c9a3ac08100b5cdd4dd992a942d599e85\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util-two.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 2,\n column: 2\n },\n end: {\n line: 2,\n column: 14\n }\n },\n \"1\": {\n start: {\n line: 6,\n column: 2\n },\n end: {\n line: 6,\n column: 14\n }\n },\n \"2\": {\n start: {\n line: 10,\n column: 2\n },\n end: {\n line: 10,\n column: 14\n }\n },\n \"3\": {\n start: {\n line: 14,\n column: 2\n },\n end: {\n line: 14,\n column: 14\n }\n },\n \"4\": {\n start: {\n line: 18,\n column: 2\n },\n end: {\n line: 18,\n column: 14\n }\n },\n \"5\": {\n start: {\n line: 22,\n column: 2\n },\n end: {\n line: 22,\n column: 14\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"myUncoveredUtil21\",\n decl: {\n start: {\n line: 1,\n column: 24\n },\n end: {\n line: 1,\n column: 41\n }\n },\n loc: {\n start: {\n line: 1,\n column: 44\n },\n end: {\n line: 3,\n column: 1\n }\n },\n line: 1\n },\n \"1\": {\n name: \"myUncoveredUtil22\",\n decl: {\n start: {\n line: 5,\n column: 16\n },\n end: {\n line: 5,\n column: 33\n }\n },\n loc: {\n start: {\n line: 5,\n column: 36\n },\n end: {\n line: 7,\n column: 1\n }\n },\n line: 5\n },\n \"2\": {\n name: \"myUncoveredUtil23\",\n decl: {\n start: {\n line: 9,\n column: 16\n },\n end: {\n line: 9,\n column: 33\n }\n },\n loc: {\n start: {\n line: 9,\n column: 36\n },\n end: {\n line: 11,\n column: 1\n }\n },\n line: 9\n },\n \"3\": {\n name: \"myUncoveredUtil24\",\n decl: {\n start: {\n line: 13,\n column: 16\n },\n end: {\n line: 13,\n column: 33\n }\n },\n loc: {\n start: {\n line: 13,\n column: 36\n },\n end: {\n line: 15,\n column: 1\n }\n },\n line: 13\n },\n \"4\": {\n name: \"myUncoveredUtil25\",\n decl: {\n start: {\n line: 17,\n column: 16\n },\n end: {\n line: 17,\n column: 33\n }\n },\n loc: {\n start: {\n line: 17,\n column: 36\n },\n end: {\n line: 19,\n column: 1\n }\n },\n line: 17\n },\n \"5\": {\n name: \"myUncoveredUtil26\",\n decl: {\n start: {\n line: 21,\n column: 16\n },\n end: {\n line: 21,\n column: 33\n }\n },\n loc: {\n start: {\n line: 21,\n column: 36\n },\n end: {\n line: 23,\n column: 1\n }\n },\n line: 21\n }\n },\n branchMap: {},\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0\n },\n f: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0\n },\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"5db8b53c9a3ac08100b5cdd4dd992a942d599e85\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2b97y891w9 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2b97y891w9();\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n function myUncoveredUtil21() {\n cov_2b97y891w9().f[0]++;\n cov_2b97y891w9().s[0]++;\n return true;\n }\n\n function myUncoveredUtil22() {\n cov_2b97y891w9().f[1]++;\n cov_2b97y891w9().s[1]++;\n return true;\n }\n\n function myUncoveredUtil23() {\n cov_2b97y891w9().f[2]++;\n cov_2b97y891w9().s[2]++;\n return true;\n }\n\n function myUncoveredUtil24() {\n cov_2b97y891w9().f[3]++;\n cov_2b97y891w9().s[3]++;\n return true;\n }\n\n function myUncoveredUtil25() {\n cov_2b97y891w9().f[4]++;\n cov_2b97y891w9().s[4]++;\n return true;\n }\n\n function myUncoveredUtil26() {\n cov_2b97y891w9().f[5]++;\n cov_2b97y891w9().s[5]++;\n return true;\n }\n});","define(\"my-app-ember-exam/utils/my-uncovered-util\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = myUncoveredUtil;\n _exports.myUncoveredUtil2 = myUncoveredUtil2;\n _exports.myUncoveredUtil3 = myUncoveredUtil3;\n _exports.myUncoveredUtil4 = myUncoveredUtil4;\n _exports.myUncoveredUtil5 = myUncoveredUtil5;\n _exports.myUncoveredUtil6 = myUncoveredUtil6;\n\n function cov_1xl3psv51b() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util.js\";\n var hash = \"d60e19840eae05b6a16670c014c6b9f269834fd9\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/utils/my-uncovered-util.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 2,\n column: 2\n },\n end: {\n line: 2,\n column: 14\n }\n },\n \"1\": {\n start: {\n line: 6,\n column: 2\n },\n end: {\n line: 6,\n column: 14\n }\n },\n \"2\": {\n start: {\n line: 10,\n column: 2\n },\n end: {\n line: 10,\n column: 14\n }\n },\n \"3\": {\n start: {\n line: 14,\n column: 2\n },\n end: {\n line: 14,\n column: 14\n }\n },\n \"4\": {\n start: {\n line: 18,\n column: 2\n },\n end: {\n line: 18,\n column: 14\n }\n },\n \"5\": {\n start: {\n line: 22,\n column: 2\n },\n end: {\n line: 22,\n column: 14\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"myUncoveredUtil\",\n decl: {\n start: {\n line: 1,\n column: 24\n },\n end: {\n line: 1,\n column: 39\n }\n },\n loc: {\n start: {\n line: 1,\n column: 42\n },\n end: {\n line: 3,\n column: 1\n }\n },\n line: 1\n },\n \"1\": {\n name: \"myUncoveredUtil2\",\n decl: {\n start: {\n line: 5,\n column: 16\n },\n end: {\n line: 5,\n column: 32\n }\n },\n loc: {\n start: {\n line: 5,\n column: 35\n },\n end: {\n line: 7,\n column: 1\n }\n },\n line: 5\n },\n \"2\": {\n name: \"myUncoveredUtil3\",\n decl: {\n start: {\n line: 9,\n column: 16\n },\n end: {\n line: 9,\n column: 32\n }\n },\n loc: {\n start: {\n line: 9,\n column: 35\n },\n end: {\n line: 11,\n column: 1\n }\n },\n line: 9\n },\n \"3\": {\n name: \"myUncoveredUtil4\",\n decl: {\n start: {\n line: 13,\n column: 16\n },\n end: {\n line: 13,\n column: 32\n }\n },\n loc: {\n start: {\n line: 13,\n column: 35\n },\n end: {\n line: 15,\n column: 1\n }\n },\n line: 13\n },\n \"4\": {\n name: \"myUncoveredUtil5\",\n decl: {\n start: {\n line: 17,\n column: 16\n },\n end: {\n line: 17,\n column: 32\n }\n },\n loc: {\n start: {\n line: 17,\n column: 35\n },\n end: {\n line: 19,\n column: 1\n }\n },\n line: 17\n },\n \"5\": {\n name: \"myUncoveredUtil6\",\n decl: {\n start: {\n line: 21,\n column: 16\n },\n end: {\n line: 21,\n column: 32\n }\n },\n loc: {\n start: {\n line: 21,\n column: 35\n },\n end: {\n line: 23,\n column: 1\n }\n },\n line: 21\n }\n },\n branchMap: {},\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0\n },\n f: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0\n },\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"d60e19840eae05b6a16670c014c6b9f269834fd9\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_1xl3psv51b = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_1xl3psv51b();\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n function myUncoveredUtil() {\n cov_1xl3psv51b().f[0]++;\n cov_1xl3psv51b().s[0]++;\n return true;\n }\n\n function myUncoveredUtil2() {\n cov_1xl3psv51b().f[1]++;\n cov_1xl3psv51b().s[1]++;\n return true;\n }\n\n function myUncoveredUtil3() {\n cov_1xl3psv51b().f[2]++;\n cov_1xl3psv51b().s[2]++;\n return true;\n }\n\n function myUncoveredUtil4() {\n cov_1xl3psv51b().f[3]++;\n cov_1xl3psv51b().s[3]++;\n return true;\n }\n\n function myUncoveredUtil5() {\n cov_1xl3psv51b().f[4]++;\n cov_1xl3psv51b().s[4]++;\n return true;\n }\n\n function myUncoveredUtil6() {\n cov_1xl3psv51b().f[5]++;\n cov_1xl3psv51b().s[5]++;\n return true;\n }\n});","\n","define('my-app-ember-exam/config/environment', [], function() {\n var prefix = 'my-app-ember-exam';\ntry {\n var metaName = prefix + '/config/environment';\n var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n var config = JSON.parse(decodeURIComponent(rawConfig));\n\n var exports = { 'default': config };\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n return exports;\n}\ncatch(err) {\n throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","\n if (!runningTests) {\n require(\"my-app-ember-exam/app\")[\"default\"].create({\"name\":\"my-app-ember-exam\",\"version\":\"0.0.0+ce1535f6\"});\n }\n \n"],"names":[],"mappings":"AAAA;AACA;AACA;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3gBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3mBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9SA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;","file":"my-app-ember-exam.js"} \ No newline at end of file diff --git a/test-packages/my-app-ember-exam/test-dist/assets/test-support.css b/test-packages/my-app-ember-exam/test-dist/assets/test-support.css new file mode 100644 index 00000000..70fda6b5 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/test-support.css @@ -0,0 +1,485 @@ +/*! + * QUnit 2.10.0 + * https://qunitjs.com/ + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2020-05-02T22:51Z + */ + +/** Font Family and Sizes */ + + +[id^=qunit] button { + font-size: initial; + border: initial; + background-color: buttonface; +} + +#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult { + font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif; +} + +#qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; } +#qunit-tests { font-size: smaller; } + + +/** Resets */ + +#qunit-tests, #qunit-header, #qunit-banner, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter { + margin: 0; + padding: 0; +} + + +/** Header (excluding toolbar) */ + +#qunit-header { + padding: 0.5em 0 0.5em 1em; + + color: #8699A4; + background-color: #0D3349; + + font-size: 1.5em; + line-height: 1em; + font-weight: 400; + + border-radius: 5px 5px 0 0; +} + +#qunit-header a { + text-decoration: none; + color: #C2CCD1; +} + +#qunit-header a:hover, +#qunit-header a:focus { + color: #FFF; +} + +#qunit-banner { + height: 5px; +} + +#qunit-filteredTest { + padding: 0.5em 1em 0.5em 1em; + color: #366097; + background-color: #F4FF77; +} + +#qunit-userAgent { + padding: 0.5em 1em 0.5em 1em; + color: #FFF; + background-color: #2B81AF; + text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px; +} + + +/** Toolbar */ + +#qunit-testrunner-toolbar { + padding: 0.5em 1em 0.5em 1em; + color: #5E740B; + background-color: #EEE; +} + +#qunit-testrunner-toolbar .clearfix { + height: 0; + clear: both; +} + +#qunit-testrunner-toolbar label { + display: inline-block; +} + +#qunit-testrunner-toolbar input[type=checkbox], +#qunit-testrunner-toolbar input[type=radio] { + margin: 3px; + vertical-align: -2px; +} + +#qunit-testrunner-toolbar input[type=text] { + box-sizing: border-box; + height: 1.6em; +} + +#qunit-toolbar-filters { + float: right; +} + +.qunit-url-config, +.qunit-filter, +#qunit-modulefilter { + display: inline-block; + line-height: 2.1em; +} + +.qunit-filter, +#qunit-modulefilter { + position: relative; + margin-left: 1em; +} + +.qunit-url-config label { + margin-right: 0.5em; +} + +#qunit-modulefilter-search { + box-sizing: border-box; + min-width: 400px; +} + +#qunit-modulefilter-search-container:after { + position: absolute; + right: 0.3em; + content: "\25bc"; + color: black; +} + +#qunit-modulefilter-dropdown { + /* align with #qunit-modulefilter-search */ + box-sizing: border-box; + min-width: 400px; + position: absolute; + right: 0; + top: 50%; + margin-top: 0.8em; + + border: 1px solid #D3D3D3; + border-top: none; + border-radius: 0 0 .25em .25em; + color: #000; + background-color: #F5F5F5; + z-index: 99; +} + +#qunit-modulefilter-dropdown a { + color: inherit; + text-decoration: none; +} + +#qunit-modulefilter-dropdown .clickable.checked { + font-weight: bold; + color: #000; + background-color: #D2E0E6; +} + +#qunit-modulefilter-dropdown .clickable:hover { + color: #FFF; + background-color: #0D3349; +} + +#qunit-modulefilter-actions { + display: block; + overflow: auto; + + /* align with #qunit-modulefilter-dropdown-list */ + font: smaller/1.5em sans-serif; +} + +#qunit-modulefilter-dropdown #qunit-modulefilter-actions > * { + box-sizing: border-box; + max-height: 2.8em; + display: block; + padding: 0.4em; +} + +#qunit-modulefilter-dropdown #qunit-modulefilter-actions > button { + float: right; + font: inherit; +} + +#qunit-modulefilter-dropdown #qunit-modulefilter-actions > :last-child { + /* insert padding to align with checkbox margins */ + padding-left: 3px; +} + +#qunit-modulefilter-dropdown-list { + max-height: 200px; + overflow-y: auto; + margin: 0; + border-top: 2px groove threedhighlight; + padding: 0.4em 0 0; + font: smaller/1.5em sans-serif; +} + +#qunit-modulefilter-dropdown-list li { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +#qunit-modulefilter-dropdown-list .clickable { + display: block; + padding-left: 0.15em; + padding-right: 0.5em; +} + + +/** Tests: Pass/Fail */ + +#qunit-tests { + list-style-position: inside; +} + +#qunit-tests li { + padding: 0.4em 1em 0.4em 1em; + border-bottom: 1px solid #FFF; + list-style-position: inside; +} + +#qunit-tests > li { + display: none; +} + +#qunit-tests li.running, +#qunit-tests li.pass, +#qunit-tests li.fail, +#qunit-tests li.skipped, +#qunit-tests li.aborted { + display: list-item; +} + +#qunit-tests.hidepass { + position: relative; +} + +#qunit-tests.hidepass li.running, +#qunit-tests.hidepass li.pass:not(.todo) { + visibility: hidden; + position: absolute; + width: 0; + height: 0; + padding: 0; + border: 0; + margin: 0; +} + +#qunit-tests li strong { + cursor: pointer; +} + +#qunit-tests li.skipped strong { + cursor: default; +} + +#qunit-tests li a { + padding: 0.5em; + color: #C2CCD1; + text-decoration: none; +} + +#qunit-tests li p a { + padding: 0.25em; + color: #6B6464; +} +#qunit-tests li a:hover, +#qunit-tests li a:focus { + color: #000; +} + +#qunit-tests li .runtime { + float: right; + font-size: smaller; +} + +.qunit-assert-list { + margin-top: 0.5em; + padding: 0.5em; + + background-color: #FFF; + + border-radius: 5px; +} + +.qunit-source { + margin: 0.6em 0 0.3em; +} + +.qunit-collapsed { + display: none; +} + +#qunit-tests table { + border-collapse: collapse; + margin-top: 0.2em; +} + +#qunit-tests th { + text-align: right; + vertical-align: top; + padding: 0 0.5em 0 0; +} + +#qunit-tests td { + vertical-align: top; +} + +#qunit-tests pre { + margin: 0; + white-space: pre-wrap; + word-wrap: break-word; +} + +#qunit-tests del { + color: #374E0C; + background-color: #E0F2BE; + text-decoration: none; +} + +#qunit-tests ins { + color: #500; + background-color: #FFCACA; + text-decoration: none; +} + +/*** Test Counts */ + +#qunit-tests b.counts { color: #000; } +#qunit-tests b.passed { color: #5E740B; } +#qunit-tests b.failed { color: #710909; } + +#qunit-tests li li { + padding: 5px; + background-color: #FFF; + border-bottom: none; + list-style-position: inside; +} + +/*** Passing Styles */ + +#qunit-tests li li.pass { + color: #3C510C; + background-color: #FFF; + border-left: 10px solid #C6E746; +} + +#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; } +#qunit-tests .pass .test-name { color: #366097; } + +#qunit-tests .pass .test-actual, +#qunit-tests .pass .test-expected { color: #999; } + +#qunit-banner.qunit-pass { background-color: #C6E746; } + +/*** Failing Styles */ + +#qunit-tests li li.fail { + color: #710909; + background-color: #FFF; + border-left: 10px solid #EE5757; + white-space: pre; +} + +#qunit-tests > li:last-child { + border-radius: 0 0 5px 5px; +} + +#qunit-tests .fail { color: #000; background-color: #EE5757; } +#qunit-tests .fail .test-name, +#qunit-tests .fail .module-name { color: #000; } + +#qunit-tests .fail .test-actual { color: #EE5757; } +#qunit-tests .fail .test-expected { color: #008000; } + +#qunit-banner.qunit-fail { background-color: #EE5757; } + + +/*** Aborted tests */ +#qunit-tests .aborted { color: #000; background-color: orange; } +/*** Skipped tests */ + +#qunit-tests .skipped { + background-color: #EBECE9; +} + +#qunit-tests .qunit-todo-label, +#qunit-tests .qunit-skipped-label { + background-color: #F4FF77; + display: inline-block; + font-style: normal; + color: #366097; + line-height: 1.8em; + padding: 0 0.5em; + margin: -0.4em 0.4em -0.4em 0; +} + +#qunit-tests .qunit-todo-label { + background-color: #EEE; +} + +/** Result */ + +#qunit-testresult { + color: #2B81AF; + background-color: #D2E0E6; + + border-bottom: 1px solid #FFF; +} +#qunit-testresult .clearfix { + height: 0; + clear: both; +} +#qunit-testresult .module-name { + font-weight: 700; +} +#qunit-testresult-display { + padding: 0.5em 1em 0.5em 1em; + width: 85%; + float:left; +} +#qunit-testresult-controls { + padding: 0.5em 1em 0.5em 1em; + width: 10%; + float:left; +} + +/** Fixture */ + +#qunit-fixture { + position: absolute; + top: -10000px; + left: -10000px; + width: 1000px; + height: 1000px; +} + +#ember-testing-container { + position: relative; + background: white; + bottom: 0; + right: 0; + width: 640px; + height: 384px; + overflow: auto; + z-index: 98; + border: 1px solid #ccc; + margin: 0 auto; + + /* Prevent leaking position fixed elements outside the testing container */ + transform: translateZ(0); +} + +#ember-testing-container.full-screen { + width: 100%; + height: 100%; + overflow: auto; + z-index: 98; + border: none; +} + +#ember-testing { + width: 200%; + height: 200%; + transform: scale(0.5); + transform-origin: top left; +} + +.full-screen #ember-testing { + position: absolute; + width: 100%; + height: 100%; + transform: scale(1); +} diff --git a/test-packages/my-app-ember-exam/test-dist/assets/test-support.js b/test-packages/my-app-ember-exam/test-dist/assets/test-support.js new file mode 100644 index 00000000..df39ae91 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/test-support.js @@ -0,0 +1,17425 @@ + + +(function() { +/*! + * @overview Ember - JavaScript Application Framework + * @copyright Copyright 2011-2019 Tilde Inc. and contributors + * Portions Copyright 2006-2011 Strobe Inc. + * Portions Copyright 2008-2011 Apple Inc. All rights reserved. + * @license Licensed under MIT license + * See https://raw.github.com/emberjs/ember.js/master/LICENSE + * @version 3.16.8 + */ +/*globals process */ +var define, require, Ember; // Used in @ember/-internals/environment/lib/global.js + + +mainContext = this; // eslint-disable-line no-undef + +(function () { + var registry; + var seen; + + function missingModule(name, referrerName) { + if (referrerName) { + throw new Error('Could not find module ' + name + ' required by: ' + referrerName); + } else { + throw new Error('Could not find module ' + name); + } + } + + function internalRequire(_name, referrerName) { + var name = _name; + var mod = registry[name]; + + if (!mod) { + name = name + '/index'; + mod = registry[name]; + } + + var exports = seen[name]; + + if (exports !== undefined) { + return exports; + } + + exports = seen[name] = {}; + + if (!mod) { + missingModule(_name, referrerName); + } + + var deps = mod.deps; + var callback = mod.callback; + var reified = new Array(deps.length); + + for (var i = 0; i < deps.length; i++) { + if (deps[i] === 'exports') { + reified[i] = exports; + } else if (deps[i] === 'require') { + reified[i] = require; + } else { + reified[i] = internalRequire(deps[i], name); + } + } + + callback.apply(this, reified); + return exports; + } + + var isNode = typeof window === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; + + if (!isNode) { + Ember = this.Ember = this.Ember || {}; + } + + if (typeof Ember === 'undefined') { + Ember = {}; + } + + if (typeof Ember.__loader === 'undefined') { + registry = Object.create(null); + seen = Object.create(null); + + define = function (name, deps, callback) { + var value = {}; + + if (!callback) { + value.deps = []; + value.callback = deps; + } else { + value.deps = deps; + value.callback = callback; + } + + registry[name] = value; + }; + + require = function (name) { + return internalRequire(name, null); + }; // setup `require` module + + + require['default'] = require; + + require.has = function registryHas(moduleName) { + return Boolean(registry[moduleName]) || Boolean(registry[moduleName + '/index']); + }; + + require._eak_seen = registry; + Ember.__loader = { + define: define, + require: require, + registry: registry + }; + } else { + define = Ember.__loader.define; + require = Ember.__loader.require; + } +})(); +define("@ember/debug/index", ["exports", "@ember/-internals/browser-environment", "@ember/error", "@ember/debug/lib/deprecate", "@ember/debug/lib/testing", "@ember/debug/lib/warn", "@ember/debug/lib/capture-render-tree"], function (_exports, _browserEnvironment, _error, _deprecate2, _testing, _warn2, _captureRenderTree) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "registerDeprecationHandler", { + enumerable: true, + get: function () { + return _deprecate2.registerHandler; + } + }); + Object.defineProperty(_exports, "isTesting", { + enumerable: true, + get: function () { + return _testing.isTesting; + } + }); + Object.defineProperty(_exports, "setTesting", { + enumerable: true, + get: function () { + return _testing.setTesting; + } + }); + Object.defineProperty(_exports, "registerWarnHandler", { + enumerable: true, + get: function () { + return _warn2.registerHandler; + } + }); + Object.defineProperty(_exports, "captureRenderTree", { + enumerable: true, + get: function () { + return _captureRenderTree.default; + } + }); + _exports._warnIfUsingStrippedFeatureFlags = _exports.getDebugFunction = _exports.setDebugFunction = _exports.deprecateFunc = _exports.runInDebug = _exports.debugFreeze = _exports.debugSeal = _exports.deprecate = _exports.debug = _exports.warn = _exports.info = _exports.assert = void 0; + + // These are the default production build versions: + var noop = () => {}; + + var assert = noop; + _exports.assert = assert; + var info = noop; + _exports.info = info; + var warn = noop; + _exports.warn = warn; + var debug = noop; + _exports.debug = debug; + var deprecate = noop; + _exports.deprecate = deprecate; + var debugSeal = noop; + _exports.debugSeal = debugSeal; + var debugFreeze = noop; + _exports.debugFreeze = debugFreeze; + var runInDebug = noop; + _exports.runInDebug = runInDebug; + var setDebugFunction = noop; + _exports.setDebugFunction = setDebugFunction; + var getDebugFunction = noop; + _exports.getDebugFunction = getDebugFunction; + + var deprecateFunc = function () { + return arguments[arguments.length - 1]; + }; + + _exports.deprecateFunc = deprecateFunc; + + if (true + /* DEBUG */ + ) { + _exports.setDebugFunction = setDebugFunction = function (type, callback) { + switch (type) { + case 'assert': + return _exports.assert = assert = callback; + + case 'info': + return _exports.info = info = callback; + + case 'warn': + return _exports.warn = warn = callback; + + case 'debug': + return _exports.debug = debug = callback; + + case 'deprecate': + return _exports.deprecate = deprecate = callback; + + case 'debugSeal': + return _exports.debugSeal = debugSeal = callback; + + case 'debugFreeze': + return _exports.debugFreeze = debugFreeze = callback; + + case 'runInDebug': + return _exports.runInDebug = runInDebug = callback; + + case 'deprecateFunc': + return _exports.deprecateFunc = deprecateFunc = callback; + } + }; + + _exports.getDebugFunction = getDebugFunction = function (type) { + switch (type) { + case 'assert': + return assert; + + case 'info': + return info; + + case 'warn': + return warn; + + case 'debug': + return debug; + + case 'deprecate': + return deprecate; + + case 'debugSeal': + return debugSeal; + + case 'debugFreeze': + return debugFreeze; + + case 'runInDebug': + return runInDebug; + + case 'deprecateFunc': + return deprecateFunc; + } + }; + } + /** + @module @ember/debug + */ + + + if (true + /* DEBUG */ + ) { + /** + Verify that a certain expectation is met, or throw a exception otherwise. + This is useful for communicating assumptions in the code to other human + readers as well as catching bugs that accidentally violates these + expectations. + Assertions are removed from production builds, so they can be freely added + for documentation and debugging purposes without worries of incuring any + performance penalty. However, because of that, they should not be used for + checks that could reasonably fail during normal usage. Furthermore, care + should be taken to avoid accidentally relying on side-effects produced from + evaluating the condition itself, since the code will not run in production. + ```javascript + import { assert } from '@ember/debug'; + // Test for truthiness + assert('Must pass a string', typeof str === 'string'); + // Fail unconditionally + assert('This code path should never be run'); + ``` + @method assert + @static + @for @ember/debug + @param {String} description Describes the expectation. This will become the + text of the Error thrown if the assertion fails. + @param {any} condition Must be truthy for the assertion to pass. If + falsy, an exception will be thrown. + @public + @since 1.0.0 + */ + setDebugFunction('assert', function assert(desc, test) { + if (!test) { + throw new _error.default(`Assertion Failed: ${desc}`); + } + }); + /** + Display a debug notice. + Calls to this function are removed from production builds, so they can be + freely added for documentation and debugging purposes without worries of + incuring any performance penalty. + ```javascript + import { debug } from '@ember/debug'; + debug('I\'m a debug notice!'); + ``` + @method debug + @for @ember/debug + @static + @param {String} message A debug message to display. + @public + */ + + setDebugFunction('debug', function debug(message) { + /* eslint-disable no-console */ + if (console.debug) { + console.debug(`DEBUG: ${message}`); + } else { + console.log(`DEBUG: ${message}`); + } + /* eslint-ensable no-console */ + + }); + /** + Display an info notice. + Calls to this function are removed from production builds, so they can be + freely added for documentation and debugging purposes without worries of + incuring any performance penalty. + @method info + @private + */ + + setDebugFunction('info', function info() { + console.info(...arguments); + /* eslint-disable-line no-console */ + }); + /** + @module @ember/debug + @public + */ + + /** + Alias an old, deprecated method with its new counterpart. + Display a deprecation warning with the provided message and a stack trace + (Chrome and Firefox only) when the assigned method is called. + Calls to this function are removed from production builds, so they can be + freely added for documentation and debugging purposes without worries of + incuring any performance penalty. + ```javascript + import { deprecateFunc } from '@ember/debug'; + Ember.oldMethod = deprecateFunc('Please use the new, updated method', options, Ember.newMethod); + ``` + @method deprecateFunc + @static + @for @ember/debug + @param {String} message A description of the deprecation. + @param {Object} [options] The options object for `deprecate`. + @param {Function} func The new function called to replace its deprecated counterpart. + @return {Function} A new function that wraps the original function with a deprecation warning + @private + */ + + setDebugFunction('deprecateFunc', function deprecateFunc(...args) { + if (args.length === 3) { + var [message, options, func] = args; + return function (...args) { + deprecate(message, false, options); + return func.apply(this, args); + }; + } else { + var [_message, _func] = args; + return function () { + deprecate(_message); + return _func.apply(this, arguments); + }; + } + }); + /** + @module @ember/debug + @public + */ + + /** + Run a function meant for debugging. + Calls to this function are removed from production builds, so they can be + freely added for documentation and debugging purposes without worries of + incuring any performance penalty. + ```javascript + import Component from '@ember/component'; + import { runInDebug } from '@ember/debug'; + runInDebug(() => { + Component.reopen({ + didInsertElement() { + console.log("I'm happy"); + } + }); + }); + ``` + @method runInDebug + @for @ember/debug + @static + @param {Function} func The function to be executed. + @since 1.5.0 + @public + */ + + setDebugFunction('runInDebug', function runInDebug(func) { + func(); + }); + setDebugFunction('debugSeal', function debugSeal(obj) { + Object.seal(obj); + }); + setDebugFunction('debugFreeze', function debugFreeze(obj) { + // re-freezing an already frozen object introduces a significant + // performance penalty on Chrome (tested through 59). + // + // See: https://bugs.chromium.org/p/v8/issues/detail?id=6450 + if (!Object.isFrozen(obj)) { + Object.freeze(obj); + } + }); + setDebugFunction('deprecate', _deprecate2.default); + setDebugFunction('warn', _warn2.default); + } + + var _warnIfUsingStrippedFeatureFlags; + + _exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags; + + if (true + /* DEBUG */ + && !(0, _testing.isTesting)()) { + if (typeof window !== 'undefined' && (_browserEnvironment.isFirefox || _browserEnvironment.isChrome) && window.addEventListener) { + window.addEventListener('load', () => { + if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) { + var downloadURL; + + if (_browserEnvironment.isChrome) { + downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi'; + } else if (_browserEnvironment.isFirefox) { + downloadURL = 'https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/'; + } + + debug(`For more advanced debugging, install the Ember Inspector from ${downloadURL}`); + } + }, false); + } + } +}); +define("@ember/debug/lib/capture-render-tree", ["exports", "@glimmer/util"], function (_exports, _util) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = captureRenderTree; + + /** + @module @ember/debug + */ + + /** + Ember Inspector calls this function to capture the current render tree. + + In production mode, this requires turning on `ENV._DEBUG_RENDER_TREE` + before loading Ember. + + @private + @static + @method captureRenderTree + @for @ember/debug + @param app {ApplicationInstance} An `ApplicationInstance`. + @since 3.14.0 + */ + function captureRenderTree(app) { + var env = (0, _util.expect)(app.lookup('service:-glimmer-environment'), 'BUG: owner is missing service:-glimmer-environment'); + return env.debugRenderTree.capture(); + } +}); +define("@ember/debug/lib/deprecate", ["exports", "@ember/-internals/environment", "@ember/debug/index", "@ember/debug/lib/handlers"], function (_exports, _environment, _index, _handlers) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.missingOptionsUntilDeprecation = _exports.missingOptionsIdDeprecation = _exports.missingOptionsDeprecation = _exports.registerHandler = _exports.default = void 0; + + /** + @module @ember/debug + @public + */ + + /** + Allows for runtime registration of handler functions that override the default deprecation behavior. + Deprecations are invoked by calls to [@ember/debug/deprecate](/ember/release/classes/@ember%2Fdebug/methods/deprecate?anchor=deprecate). + The following example demonstrates its usage by registering a handler that throws an error if the + message contains the word "should", otherwise defers to the default handler. + + ```javascript + import { registerDeprecationHandler } from '@ember/debug'; + + registerDeprecationHandler((message, options, next) => { + if (message.indexOf('should') !== -1) { + throw new Error(`Deprecation message with should: ${message}`); + } else { + // defer to whatever handler was registered before this one + next(message, options); + } + }); + ``` + + The handler function takes the following arguments: + + + + @public + @static + @method registerDeprecationHandler + @for @ember/debug + @param handler {Function} A function to handle deprecation calls. + @since 2.1.0 + */ + var registerHandler = () => {}; + + _exports.registerHandler = registerHandler; + var missingOptionsDeprecation; + _exports.missingOptionsDeprecation = missingOptionsDeprecation; + var missingOptionsIdDeprecation; + _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation; + var missingOptionsUntilDeprecation; + _exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation; + + var deprecate = () => {}; + + if (true + /* DEBUG */ + ) { + _exports.registerHandler = registerHandler = function registerHandler(handler) { + (0, _handlers.registerHandler)('deprecate', handler); + }; + + var formatMessage = function formatMessage(_message, options) { + var message = _message; + + if (options && options.id) { + message = message + ` [deprecation id: ${options.id}]`; + } + + if (options && options.url) { + message += ` See ${options.url} for more details.`; + } + + return message; + }; + + registerHandler(function logDeprecationToConsole(message, options) { + var updatedMessage = formatMessage(message, options); + console.warn(`DEPRECATION: ${updatedMessage}`); // eslint-disable-line no-console + }); + var captureErrorForStack; + + if (new Error().stack) { + captureErrorForStack = () => new Error(); + } else { + captureErrorForStack = () => { + try { + __fail__.fail(); + } catch (e) { + return e; + } + }; + } + + registerHandler(function logDeprecationStackTrace(message, options, next) { + if (_environment.ENV.LOG_STACKTRACE_ON_DEPRECATION) { + var stackStr = ''; + var error = captureErrorForStack(); + var stack; + + if (error.stack) { + if (error['arguments']) { + // Chrome + stack = error.stack.replace(/^\s+at\s+/gm, '').replace(/^([^\(]+?)([\n$])/gm, '{anonymous}($1)$2').replace(/^Object.\s*\(([^\)]+)\)/gm, '{anonymous}($1)').split('\n'); + stack.shift(); + } else { + // Firefox + stack = error.stack.replace(/(?:\n@:0)?\s+$/m, '').replace(/^\(/gm, '{anonymous}(').split('\n'); + } + + stackStr = `\n ${stack.slice(2).join('\n ')}`; + } + + var updatedMessage = formatMessage(message, options); + console.warn(`DEPRECATION: ${updatedMessage}${stackStr}`); // eslint-disable-line no-console + } else { + next(message, options); + } + }); + registerHandler(function raiseOnDeprecation(message, options, next) { + if (_environment.ENV.RAISE_ON_DEPRECATION) { + var updatedMessage = formatMessage(message); + throw new Error(updatedMessage); + } else { + next(message, options); + } + }); + _exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `deprecate` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include `id` and `until` properties.'; + _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `deprecate` you must provide `id` in options.'; + _exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation = 'When calling `deprecate` you must provide `until` in options.'; + /** + @module @ember/debug + @public + */ + + /** + Display a deprecation warning with the provided message and a stack trace + (Chrome and Firefox only). + * In a production build, this method is defined as an empty function (NOP). + Uses of this method in Ember itself are stripped from the ember.prod.js build. + @method deprecate + @for @ember/debug + @param {String} message A description of the deprecation. + @param {Boolean} test A boolean. If falsy, the deprecation will be displayed. + @param {Object} options + @param {String} options.id A unique id for this deprecation. The id can be + used by Ember debugging tools to change the behavior (raise, log or silence) + for that specific deprecation. The id should be namespaced by dots, e.g. + "view.helper.select". + @param {string} options.until The version of Ember when this deprecation + warning will be removed. + @param {String} [options.url] An optional url to the transition guide on the + emberjs.com website. + @static + @public + @since 1.0.0 + */ + + deprecate = function deprecate(message, test, options) { + (0, _index.assert)(missingOptionsDeprecation, Boolean(options && (options.id || options.until))); + (0, _index.assert)(missingOptionsIdDeprecation, Boolean(options.id)); + (0, _index.assert)(missingOptionsUntilDeprecation, Boolean(options.until)); + (0, _handlers.invoke)('deprecate', message, test, options); + }; + } + + var _default = deprecate; + _exports.default = _default; +}); +define("@ember/debug/lib/handlers", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.invoke = _exports.registerHandler = _exports.HANDLERS = void 0; + var HANDLERS = {}; + _exports.HANDLERS = HANDLERS; + + var registerHandler = () => {}; + + _exports.registerHandler = registerHandler; + + var invoke = () => {}; + + _exports.invoke = invoke; + + if (true + /* DEBUG */ + ) { + _exports.registerHandler = registerHandler = function registerHandler(type, callback) { + var nextHandler = HANDLERS[type] || (() => {}); + + HANDLERS[type] = (message, options) => { + callback(message, options, nextHandler); + }; + }; + + _exports.invoke = invoke = function invoke(type, message, test, options) { + if (test) { + return; + } + + var handlerForType = HANDLERS[type]; + + if (handlerForType) { + handlerForType(message, options); + } + }; + } +}); +define("@ember/debug/lib/testing", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.isTesting = isTesting; + _exports.setTesting = setTesting; + var testing = false; + + function isTesting() { + return testing; + } + + function setTesting(value) { + testing = Boolean(value); + } +}); +define("@ember/debug/lib/warn", ["exports", "@ember/debug/index", "@ember/debug/lib/handlers"], function (_exports, _index, _handlers) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.missingOptionsDeprecation = _exports.missingOptionsIdDeprecation = _exports.registerHandler = _exports.default = void 0; + + var registerHandler = () => {}; + + _exports.registerHandler = registerHandler; + + var warn = () => {}; + + var missingOptionsDeprecation; + _exports.missingOptionsDeprecation = missingOptionsDeprecation; + var missingOptionsIdDeprecation; + /** + @module @ember/debug + */ + + _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation; + + if (true + /* DEBUG */ + ) { + /** + Allows for runtime registration of handler functions that override the default warning behavior. + Warnings are invoked by calls made to [@ember/debug/warn](/ember/release/classes/@ember%2Fdebug/methods/warn?anchor=warn). + The following example demonstrates its usage by registering a handler that does nothing overriding Ember's + default warning behavior. + ```javascript + import { registerWarnHandler } from '@ember/debug'; + // next is not called, so no warnings get the default behavior + registerWarnHandler(() => {}); + ``` + The handler function takes the following arguments: +
    +
  • message - The message received from the warn call.
  • +
  • options - An object passed in with the warn call containing additional information including:
  • +
      +
    • id - An id of the warning in the form of package-name.specific-warning.
    • +
    +
  • next - A function that calls into the previously registered handler.
  • +
+ @public + @static + @method registerWarnHandler + @for @ember/debug + @param handler {Function} A function to handle warnings. + @since 2.1.0 + */ + _exports.registerHandler = registerHandler = function registerHandler(handler) { + (0, _handlers.registerHandler)('warn', handler); + }; + + registerHandler(function logWarning(message) { + /* eslint-disable no-console */ + console.warn(`WARNING: ${message}`); + /* eslint-enable no-console */ + }); + _exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `warn` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include an `id` property.'; + _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `warn` you must provide `id` in options.'; + /** + Display a warning with the provided message. + * In a production build, this method is defined as an empty function (NOP). + Uses of this method in Ember itself are stripped from the ember.prod.js build. + ```javascript + import { warn } from '@ember/debug'; + import tomsterCount from './tomster-counter'; // a module in my project + // Log a warning if we have more than 3 tomsters + warn('Too many tomsters!', tomsterCount <= 3, { + id: 'ember-debug.too-many-tomsters' + }); + ``` + @method warn + @for @ember/debug + @static + @param {String} message A warning to display. + @param {Boolean} test An optional boolean. If falsy, the warning + will be displayed. + @param {Object} options An object that can be used to pass a unique + `id` for this warning. The `id` can be used by Ember debugging tools + to change the behavior (raise, log, or silence) for that specific warning. + The `id` should be namespaced by dots, e.g. "ember-debug.feature-flag-with-features-stripped" + @public + @since 1.0.0 + */ + + warn = function warn(message, test, options) { + if (arguments.length === 2 && typeof test === 'object') { + options = test; + test = false; + } + + (0, _index.assert)(missingOptionsDeprecation, Boolean(options)); + (0, _index.assert)(missingOptionsIdDeprecation, Boolean(options && options.id)); + (0, _handlers.invoke)('warn', message, test, options); + }; + } + + var _default = warn; + _exports.default = _default; +}); +define("ember-testing/index", ["exports", "ember-testing/lib/test", "ember-testing/lib/adapters/adapter", "ember-testing/lib/setup_for_testing", "ember-testing/lib/adapters/qunit", "ember-testing/lib/support", "ember-testing/lib/ext/application", "ember-testing/lib/ext/rsvp", "ember-testing/lib/helpers", "ember-testing/lib/initializers"], function (_exports, _test, _adapter, _setup_for_testing, _qunit, _support, _application, _rsvp, _helpers, _initializers) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "Test", { + enumerable: true, + get: function () { + return _test.default; + } + }); + Object.defineProperty(_exports, "Adapter", { + enumerable: true, + get: function () { + return _adapter.default; + } + }); + Object.defineProperty(_exports, "setupForTesting", { + enumerable: true, + get: function () { + return _setup_for_testing.default; + } + }); + Object.defineProperty(_exports, "QUnitAdapter", { + enumerable: true, + get: function () { + return _qunit.default; + } + }); +}); +define("ember-testing/lib/adapters/adapter", ["exports", "@ember/-internals/runtime"], function (_exports, _runtime) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + function K() { + return this; + } + /** + @module @ember/test + */ + + /** + The primary purpose of this class is to create hooks that can be implemented + by an adapter for various test frameworks. + + @class TestAdapter + @public + */ + + + var _default = _runtime.Object.extend({ + /** + This callback will be called whenever an async operation is about to start. + Override this to call your framework's methods that handle async + operations. + @public + @method asyncStart + */ + asyncStart: K, + + /** + This callback will be called whenever an async operation has completed. + @public + @method asyncEnd + */ + asyncEnd: K, + + /** + Override this method with your testing framework's false assertion. + This function is called whenever an exception occurs causing the testing + promise to fail. + QUnit example: + ```javascript + exception: function(error) { + ok(false, error); + }; + ``` + @public + @method exception + @param {String} error The exception to be raised. + */ + exception(error) { + throw error; + } + + }); + + _exports.default = _default; +}); +define("ember-testing/lib/adapters/qunit", ["exports", "@ember/-internals/utils", "ember-testing/lib/adapters/adapter"], function (_exports, _utils, _adapter) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + /* globals QUnit */ + + /** + @module ember + */ + + /** + This class implements the methods defined by TestAdapter for the + QUnit testing framework. + + @class QUnitAdapter + @namespace Ember.Test + @extends TestAdapter + @public + */ + var _default = _adapter.default.extend({ + init() { + this.doneCallbacks = []; + }, + + asyncStart() { + if (typeof QUnit.stop === 'function') { + // very old QUnit version + QUnit.stop(); + } else { + this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null); + } + }, + + asyncEnd() { + // checking for QUnit.stop here (even though we _need_ QUnit.start) because + // QUnit.start() still exists in QUnit 2.x (it just throws an error when calling + // inside a test context) + if (typeof QUnit.stop === 'function') { + QUnit.start(); + } else { + var done = this.doneCallbacks.pop(); // This can be null if asyncStart() was called outside of a test + + if (done) { + done(); + } + } + }, + + exception(error) { + QUnit.config.current.assert.ok(false, (0, _utils.inspect)(error)); + } + + }); + + _exports.default = _default; +}); +define("ember-testing/lib/events", ["exports", "@ember/runloop", "@ember/polyfills", "ember-testing/lib/helpers/-is-form-control"], function (_exports, _runloop, _polyfills, _isFormControl) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.focus = focus; + _exports.fireEvent = fireEvent; + var DEFAULT_EVENT_OPTIONS = { + canBubble: true, + cancelable: true + }; + var KEYBOARD_EVENT_TYPES = ['keydown', 'keypress', 'keyup']; + var MOUSE_EVENT_TYPES = ['click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover']; + + function focus(el) { + if (!el) { + return; + } + + if (el.isContentEditable || (0, _isFormControl.default)(el)) { + var type = el.getAttribute('type'); + + if (type !== 'checkbox' && type !== 'radio' && type !== 'hidden') { + (0, _runloop.run)(null, function () { + var browserIsNotFocused = document.hasFocus && !document.hasFocus(); // makes `document.activeElement` be `element`. If the browser is focused, it also fires a focus event + + el.focus(); // Firefox does not trigger the `focusin` event if the window + // does not have focus. If the document does not have focus then + // fire `focusin` event as well. + + if (browserIsNotFocused) { + // if the browser is not focused the previous `el.focus()` didn't fire an event, so we simulate it + fireEvent(el, 'focus', { + bubbles: false + }); + fireEvent(el, 'focusin'); + } + }); + } + } + } + + function fireEvent(element, type, options = {}) { + if (!element) { + return; + } + + var event; + + if (KEYBOARD_EVENT_TYPES.indexOf(type) > -1) { + event = buildKeyboardEvent(type, options); + } else if (MOUSE_EVENT_TYPES.indexOf(type) > -1) { + var rect = element.getBoundingClientRect(); + var x = rect.left + 1; + var y = rect.top + 1; + var simulatedCoordinates = { + screenX: x + 5, + screenY: y + 95, + clientX: x, + clientY: y + }; + event = buildMouseEvent(type, (0, _polyfills.assign)(simulatedCoordinates, options)); + } else { + event = buildBasicEvent(type, options); + } + + element.dispatchEvent(event); + } + + function buildBasicEvent(type, options = {}) { + var event = document.createEvent('Events'); // Event.bubbles is read only + + var bubbles = options.bubbles !== undefined ? options.bubbles : true; + var cancelable = options.cancelable !== undefined ? options.cancelable : true; + delete options.bubbles; + delete options.cancelable; + event.initEvent(type, bubbles, cancelable); + (0, _polyfills.assign)(event, options); + return event; + } + + function buildMouseEvent(type, options = {}) { + var event; + + try { + event = document.createEvent('MouseEvents'); + var eventOpts = (0, _polyfills.assign)({}, DEFAULT_EVENT_OPTIONS, options); + 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); + } catch (e) { + event = buildBasicEvent(type, options); + } + + return event; + } + + function buildKeyboardEvent(type, options = {}) { + var event; + + try { + event = document.createEvent('KeyEvents'); + var eventOpts = (0, _polyfills.assign)({}, DEFAULT_EVENT_OPTIONS, options); + event.initKeyEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.keyCode, eventOpts.charCode); + } catch (e) { + event = buildBasicEvent(type, options); + } + + return event; + } +}); +define("ember-testing/lib/ext/application", ["@ember/application", "ember-testing/lib/setup_for_testing", "ember-testing/lib/test/helpers", "ember-testing/lib/test/promise", "ember-testing/lib/test/run", "ember-testing/lib/test/on_inject_helpers", "ember-testing/lib/test/adapter"], function (_application, _setup_for_testing, _helpers, _promise, _run, _on_inject_helpers, _adapter) { + "use strict"; + + _application.default.reopen({ + /** + This property contains the testing helpers for the current application. These + are created once you call `injectTestHelpers` on your `Application` + instance. The included helpers are also available on the `window` object by + default, but can be used from this object on the individual application also. + @property testHelpers + @type {Object} + @default {} + @public + */ + testHelpers: {}, + + /** + This property will contain the original methods that were registered + on the `helperContainer` before `injectTestHelpers` is called. + When `removeTestHelpers` is called, these methods are restored to the + `helperContainer`. + @property originalMethods + @type {Object} + @default {} + @private + @since 1.3.0 + */ + originalMethods: {}, + + /** + This property indicates whether or not this application is currently in + testing mode. This is set when `setupForTesting` is called on the current + application. + @property testing + @type {Boolean} + @default false + @since 1.3.0 + @public + */ + testing: false, + + /** + This hook defers the readiness of the application, so that you can start + the app when your tests are ready to run. It also sets the router's + location to 'none', so that the window's location will not be modified + (preventing both accidental leaking of state between tests and interference + with your testing framework). `setupForTesting` should only be called after + setting a custom `router` class (for example `App.Router = Router.extend(`). + Example: + ``` + App.setupForTesting(); + ``` + @method setupForTesting + @public + */ + setupForTesting() { + (0, _setup_for_testing.default)(); + this.testing = true; + this.resolveRegistration('router:main').reopen({ + location: 'none' + }); + }, + + /** + This will be used as the container to inject the test helpers into. By + default the helpers are injected into `window`. + @property helperContainer + @type {Object} The object to be used for test helpers. + @default window + @since 1.2.0 + @private + */ + helperContainer: null, + + /** + This injects the test helpers into the `helperContainer` object. If an object is provided + it will be used as the helperContainer. If `helperContainer` is not set it will default + to `window`. If a function of the same name has already been defined it will be cached + (so that it can be reset if the helper is removed with `unregisterHelper` or + `removeTestHelpers`). + Any callbacks registered with `onInjectHelpers` will be called once the + helpers have been injected. + Example: + ``` + App.injectTestHelpers(); + ``` + @method injectTestHelpers + @public + */ + injectTestHelpers(helperContainer) { + if (helperContainer) { + this.helperContainer = helperContainer; + } else { + this.helperContainer = window; + } + + this.reopen({ + willDestroy() { + this._super(...arguments); + + this.removeTestHelpers(); + } + + }); + this.testHelpers = {}; + + for (var name in _helpers.helpers) { + this.originalMethods[name] = this.helperContainer[name]; + this.testHelpers[name] = this.helperContainer[name] = helper(this, name); + protoWrap(_promise.default.prototype, name, helper(this, name), _helpers.helpers[name].meta.wait); + } + + (0, _on_inject_helpers.invokeInjectHelpersCallbacks)(this); + }, + + /** + This removes all helpers that have been registered, and resets and functions + that were overridden by the helpers. + Example: + ```javascript + App.removeTestHelpers(); + ``` + @public + @method removeTestHelpers + */ + removeTestHelpers() { + if (!this.helperContainer) { + return; + } + + for (var name in _helpers.helpers) { + this.helperContainer[name] = this.originalMethods[name]; + delete _promise.default.prototype[name]; + delete this.testHelpers[name]; + delete this.originalMethods[name]; + } + } + + }); // This method is no longer needed + // But still here for backwards compatibility + // of helper chaining + + + function protoWrap(proto, name, callback, isAsync) { + proto[name] = function (...args) { + if (isAsync) { + return callback.apply(this, args); + } else { + return this.then(function () { + return callback.apply(this, args); + }); + } + }; + } + + function helper(app, name) { + var fn = _helpers.helpers[name].method; + var meta = _helpers.helpers[name].meta; + + if (!meta.wait) { + return (...args) => fn.apply(app, [app, ...args]); + } + + return (...args) => { + var lastPromise = (0, _run.default)(() => (0, _promise.resolve)((0, _promise.getLastPromise)())); // wait for last helper's promise to resolve and then + // execute. To be safe, we need to tell the adapter we're going + // asynchronous here, because fn may not be invoked before we + // return. + + (0, _adapter.asyncStart)(); + return lastPromise.then(() => fn.apply(app, [app, ...args])).finally(_adapter.asyncEnd); + }; + } +}); +define("ember-testing/lib/ext/rsvp", ["exports", "@ember/-internals/runtime", "@ember/runloop", "@ember/debug", "ember-testing/lib/test/adapter"], function (_exports, _runtime, _runloop, _debug, _adapter) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + _runtime.RSVP.configure('async', function (callback, promise) { + // if schedule will cause autorun, we need to inform adapter + if ((0, _debug.isTesting)() && !_runloop.backburner.currentInstance) { + (0, _adapter.asyncStart)(); + + _runloop.backburner.schedule('actions', () => { + (0, _adapter.asyncEnd)(); + callback(promise); + }); + } else { + _runloop.backburner.schedule('actions', () => callback(promise)); + } + }); + + var _default = _runtime.RSVP; + _exports.default = _default; +}); +define("ember-testing/lib/helpers", ["ember-testing/lib/test/helpers", "ember-testing/lib/helpers/and_then", "ember-testing/lib/helpers/click", "ember-testing/lib/helpers/current_path", "ember-testing/lib/helpers/current_route_name", "ember-testing/lib/helpers/current_url", "ember-testing/lib/helpers/fill_in", "ember-testing/lib/helpers/find", "ember-testing/lib/helpers/find_with_assert", "ember-testing/lib/helpers/key_event", "ember-testing/lib/helpers/pause_test", "ember-testing/lib/helpers/trigger_event", "ember-testing/lib/helpers/visit", "ember-testing/lib/helpers/wait"], function (_helpers, _and_then, _click, _current_path, _current_route_name, _current_url, _fill_in, _find, _find_with_assert, _key_event, _pause_test, _trigger_event, _visit, _wait) { + "use strict"; + + (0, _helpers.registerAsyncHelper)('visit', _visit.default); + (0, _helpers.registerAsyncHelper)('click', _click.default); + (0, _helpers.registerAsyncHelper)('keyEvent', _key_event.default); + (0, _helpers.registerAsyncHelper)('fillIn', _fill_in.default); + (0, _helpers.registerAsyncHelper)('wait', _wait.default); + (0, _helpers.registerAsyncHelper)('andThen', _and_then.default); + (0, _helpers.registerAsyncHelper)('pauseTest', _pause_test.pauseTest); + (0, _helpers.registerAsyncHelper)('triggerEvent', _trigger_event.default); + (0, _helpers.registerHelper)('find', _find.default); + (0, _helpers.registerHelper)('findWithAssert', _find_with_assert.default); + (0, _helpers.registerHelper)('currentRouteName', _current_route_name.default); + (0, _helpers.registerHelper)('currentPath', _current_path.default); + (0, _helpers.registerHelper)('currentURL', _current_url.default); + (0, _helpers.registerHelper)('resumeTest', _pause_test.resumeTest); +}); +define("ember-testing/lib/helpers/-is-form-control", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = isFormControl; + var FORM_CONTROL_TAGS = ['INPUT', 'BUTTON', 'SELECT', 'TEXTAREA']; + /** + @private + @param {Element} element the element to check + @returns {boolean} `true` when the element is a form control, `false` otherwise + */ + + function isFormControl(element) { + var { + tagName, + type + } = element; + + if (type === 'hidden') { + return false; + } + + return FORM_CONTROL_TAGS.indexOf(tagName) > -1; + } +}); +define("ember-testing/lib/helpers/and_then", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = andThen; + + function andThen(app, callback) { + return app.testHelpers.wait(callback(app)); + } +}); +define("ember-testing/lib/helpers/click", ["exports", "ember-testing/lib/events"], function (_exports, _events) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = click; + + /** + @module ember + */ + + /** + Clicks an element and triggers any actions triggered by the element's `click` + event. + + Example: + + ```javascript + click('.some-jQuery-selector').then(function() { + // assert something + }); + ``` + + @method click + @param {String} selector jQuery selector for finding element on the DOM + @param {Object} context A DOM Element, Document, or jQuery to use as context + @return {RSVP.Promise} + @public + */ + function click(app, selector, context) { + var $el = app.testHelpers.findWithAssert(selector, context); + var el = $el[0]; + (0, _events.fireEvent)(el, 'mousedown'); + (0, _events.focus)(el); + (0, _events.fireEvent)(el, 'mouseup'); + (0, _events.fireEvent)(el, 'click'); + return app.testHelpers.wait(); + } +}); +define("ember-testing/lib/helpers/current_path", ["exports", "@ember/-internals/metal"], function (_exports, _metal) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = currentPath; + + /** + @module ember + */ + + /** + Returns the current path. + + Example: + + ```javascript + function validateURL() { + equal(currentPath(), 'some.path.index', "correct path was transitioned into."); + } + + click('#some-link-id').then(validateURL); + ``` + + @method currentPath + @return {Object} The currently active path. + @since 1.5.0 + @public + */ + function currentPath(app) { + var routingService = app.__container__.lookup('service:-routing'); + + return (0, _metal.get)(routingService, 'currentPath'); + } +}); +define("ember-testing/lib/helpers/current_route_name", ["exports", "@ember/-internals/metal"], function (_exports, _metal) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = currentRouteName; + + /** + @module ember + */ + + /** + Returns the currently active route name. + + Example: + + ```javascript + function validateRouteName() { + equal(currentRouteName(), 'some.path', "correct route was transitioned into."); + } + visit('/some/path').then(validateRouteName) + ``` + + @method currentRouteName + @return {Object} The name of the currently active route. + @since 1.5.0 + @public + */ + function currentRouteName(app) { + var routingService = app.__container__.lookup('service:-routing'); + + return (0, _metal.get)(routingService, 'currentRouteName'); + } +}); +define("ember-testing/lib/helpers/current_url", ["exports", "@ember/-internals/metal"], function (_exports, _metal) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = currentURL; + + /** + @module ember + */ + + /** + Returns the current URL. + + Example: + + ```javascript + function validateURL() { + equal(currentURL(), '/some/path', "correct URL was transitioned into."); + } + + click('#some-link-id').then(validateURL); + ``` + + @method currentURL + @return {Object} The currently active URL. + @since 1.5.0 + @public + */ + function currentURL(app) { + var router = app.__container__.lookup('router:main'); + + return (0, _metal.get)(router, 'location').getURL(); + } +}); +define("ember-testing/lib/helpers/fill_in", ["exports", "ember-testing/lib/events", "ember-testing/lib/helpers/-is-form-control"], function (_exports, _events, _isFormControl) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = fillIn; + + /** + @module ember + */ + + /** + Fills in an input element with some text. + + Example: + + ```javascript + fillIn('#email', 'you@example.com').then(function() { + // assert something + }); + ``` + + @method fillIn + @param {String} selector jQuery selector finding an input element on the DOM + to fill text with + @param {String} text text to place inside the input element + @return {RSVP.Promise} + @public + */ + function fillIn(app, selector, contextOrText, text) { + var $el, el, context; + + if (text === undefined) { + text = contextOrText; + } else { + context = contextOrText; + } + + $el = app.testHelpers.findWithAssert(selector, context); + el = $el[0]; + (0, _events.focus)(el); + + if ((0, _isFormControl.default)(el)) { + el.value = text; + } else { + el.innerHTML = text; + } + + (0, _events.fireEvent)(el, 'input'); + (0, _events.fireEvent)(el, 'change'); + return app.testHelpers.wait(); + } +}); +define("ember-testing/lib/helpers/find", ["exports", "@ember/-internals/metal", "@ember/debug", "@ember/-internals/views"], function (_exports, _metal, _debug, _views) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = find; + + /** + @module ember + */ + + /** + Finds an element in the context of the app's container element. A simple alias + for `app.$(selector)`. + + Example: + + ```javascript + var $el = find('.my-selector'); + ``` + + With the `context` param: + + ```javascript + var $el = find('.my-selector', '.parent-element-class'); + ``` + + @method find + @param {String} selector jQuery selector for element lookup + @param {String} [context] (optional) jQuery selector that will limit the selector + argument to find only within the context's children + @return {Object} DOM element representing the results of the query + @public + */ + function find(app, selector, context) { + if (_views.jQueryDisabled) { + (true && !(false) && (0, _debug.assert)('If jQuery is disabled, please import and use helpers from @ember/test-helpers [https://github.com/emberjs/ember-test-helpers]. Note: `find` is not an available helper.')); + } + + var $el; + context = context || (0, _metal.get)(app, 'rootElement'); + $el = app.$(selector, context); + return $el; + } +}); +define("ember-testing/lib/helpers/find_with_assert", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = findWithAssert; + + /** + @module ember + */ + + /** + Like `find`, but throws an error if the element selector returns no results. + + Example: + + ```javascript + var $el = findWithAssert('.doesnt-exist'); // throws error + ``` + + With the `context` param: + + ```javascript + var $el = findWithAssert('.selector-id', '.parent-element-class'); // assert will pass + ``` + + @method findWithAssert + @param {String} selector jQuery selector string for finding an element within + the DOM + @param {String} [context] (optional) jQuery selector that will limit the + selector argument to find only within the context's children + @return {Object} jQuery object representing the results of the query + @throws {Error} throws error if object returned has a length of 0 + @public + */ + function findWithAssert(app, selector, context) { + var $el = app.testHelpers.find(selector, context); + + if ($el.length === 0) { + throw new Error('Element ' + selector + ' not found.'); + } + + return $el; + } +}); +define("ember-testing/lib/helpers/key_event", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = keyEvent; + + /** + @module ember + */ + + /** + Simulates a key event, e.g. `keypress`, `keydown`, `keyup` with the desired keyCode + Example: + ```javascript + keyEvent('.some-jQuery-selector', 'keypress', 13).then(function() { + // assert something + }); + ``` + @method keyEvent + @param {String} selector jQuery selector for finding element on the DOM + @param {String} type the type of key event, e.g. `keypress`, `keydown`, `keyup` + @param {Number} keyCode the keyCode of the simulated key event + @return {RSVP.Promise} + @since 1.5.0 + @public + */ + function keyEvent(app, selector, contextOrType, typeOrKeyCode, keyCode) { + var context, type; + + if (keyCode === undefined) { + context = null; + keyCode = typeOrKeyCode; + type = contextOrType; + } else { + context = contextOrType; + type = typeOrKeyCode; + } + + return app.testHelpers.triggerEvent(selector, context, type, { + keyCode, + which: keyCode + }); + } +}); +define("ember-testing/lib/helpers/pause_test", ["exports", "@ember/-internals/runtime", "@ember/debug"], function (_exports, _runtime, _debug) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.resumeTest = resumeTest; + _exports.pauseTest = pauseTest; + + /** + @module ember + */ + var resume; + /** + Resumes a test paused by `pauseTest`. + + @method resumeTest + @return {void} + @public + */ + + function resumeTest() { + (true && !(resume) && (0, _debug.assert)('Testing has not been paused. There is nothing to resume.', resume)); + resume(); + resume = undefined; + } + /** + Pauses the current test - this is useful for debugging while testing or for test-driving. + It allows you to inspect the state of your application at any point. + Example (The test will pause before clicking the button): + + ```javascript + visit('/') + return pauseTest(); + click('.btn'); + ``` + + You may want to turn off the timeout before pausing. + + qunit (timeout available to use as of 2.4.0): + + ``` + visit('/'); + assert.timeout(0); + return pauseTest(); + click('.btn'); + ``` + + mocha (timeout happens automatically as of ember-mocha v0.14.0): + + ``` + visit('/'); + this.timeout(0); + return pauseTest(); + click('.btn'); + ``` + + + @since 1.9.0 + @method pauseTest + @return {Object} A promise that will never resolve + @public + */ + + + function pauseTest() { + (0, _debug.info)('Testing paused. Use `resumeTest()` to continue.'); + return new _runtime.RSVP.Promise(resolve => { + resume = resolve; + }, 'TestAdapter paused promise'); + } +}); +define("ember-testing/lib/helpers/trigger_event", ["exports", "ember-testing/lib/events"], function (_exports, _events) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = triggerEvent; + + /** + @module ember + */ + + /** + Triggers the given DOM event on the element identified by the provided selector. + Example: + ```javascript + triggerEvent('#some-elem-id', 'blur'); + ``` + This is actually used internally by the `keyEvent` helper like so: + ```javascript + triggerEvent('#some-elem-id', 'keypress', { keyCode: 13 }); + ``` + @method triggerEvent + @param {String} selector jQuery selector for finding element on the DOM + @param {String} [context] jQuery selector that will limit the selector + argument to find only within the context's children + @param {String} type The event type to be triggered. + @param {Object} [options] The options to be passed to jQuery.Event. + @return {RSVP.Promise} + @since 1.5.0 + @public + */ + function triggerEvent(app, selector, contextOrType, typeOrOptions, possibleOptions) { + var arity = arguments.length; + var context, type, options; + + if (arity === 3) { + // context and options are optional, so this is + // app, selector, type + context = null; + type = contextOrType; + options = {}; + } else if (arity === 4) { + // context and options are optional, so this is + if (typeof typeOrOptions === 'object') { + // either + // app, selector, type, options + context = null; + type = contextOrType; + options = typeOrOptions; + } else { + // or + // app, selector, context, type + context = contextOrType; + type = typeOrOptions; + options = {}; + } + } else { + context = contextOrType; + type = typeOrOptions; + options = possibleOptions; + } + + var $el = app.testHelpers.findWithAssert(selector, context); + var el = $el[0]; + (0, _events.fireEvent)(el, type, options); + return app.testHelpers.wait(); + } +}); +define("ember-testing/lib/helpers/visit", ["exports", "@ember/runloop"], function (_exports, _runloop) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = visit; + + /** + Loads a route, sets up any controllers, and renders any templates associated + with the route as though a real user had triggered the route change while + using your app. + + Example: + + ```javascript + visit('posts/index').then(function() { + // assert something + }); + ``` + + @method visit + @param {String} url the name of the route + @return {RSVP.Promise} + @public + */ + function visit(app, url) { + var router = app.__container__.lookup('router:main'); + + var shouldHandleURL = false; + app.boot().then(() => { + router.location.setURL(url); + + if (shouldHandleURL) { + (0, _runloop.run)(app.__deprecatedInstance__, 'handleURL', url); + } + }); + + if (app._readinessDeferrals > 0) { + router.initialURL = url; + (0, _runloop.run)(app, 'advanceReadiness'); + delete router.initialURL; + } else { + shouldHandleURL = true; + } + + return app.testHelpers.wait(); + } +}); +define("ember-testing/lib/helpers/wait", ["exports", "ember-testing/lib/test/waiters", "@ember/-internals/runtime", "@ember/runloop", "ember-testing/lib/test/pending_requests"], function (_exports, _waiters, _runtime, _runloop, _pending_requests) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = wait; + + /** + @module ember + */ + + /** + Causes the run loop to process any pending events. This is used to ensure that + any async operations from other helpers (or your assertions) have been processed. + + This is most often used as the return value for the helper functions (see 'click', + 'fillIn','visit',etc). However, there is a method to register a test helper which + utilizes this method without the need to actually call `wait()` in your helpers. + + The `wait` helper is built into `registerAsyncHelper` by default. You will not need + to `return app.testHelpers.wait();` - the wait behavior is provided for you. + + Example: + + ```javascript + import { registerAsyncHelper } from '@ember/test'; + + registerAsyncHelper('loginUser', function(app, username, password) { + visit('secured/path/here') + .fillIn('#username', username) + .fillIn('#password', password) + .click('.submit'); + }); + ``` + + @method wait + @param {Object} value The value to be returned. + @return {RSVP.Promise} Promise that resolves to the passed value. + @public + @since 1.0.0 + */ + function wait(app, value) { + return new _runtime.RSVP.Promise(function (resolve) { + var router = app.__container__.lookup('router:main'); // Every 10ms, poll for the async thing to have finished + + + var watcher = setInterval(() => { + // 1. If the router is loading, keep polling + var routerIsLoading = router._routerMicrolib && Boolean(router._routerMicrolib.activeTransition); + + if (routerIsLoading) { + return; + } // 2. If there are pending Ajax requests, keep polling + + + if ((0, _pending_requests.pendingRequests)()) { + return; + } // 3. If there are scheduled timers or we are inside of a run loop, keep polling + + + if ((0, _runloop.hasScheduledTimers)() || (0, _runloop.getCurrentRunLoop)()) { + return; + } + + if ((0, _waiters.checkWaiters)()) { + return; + } // Stop polling + + + clearInterval(watcher); // Synchronously resolve the promise + + (0, _runloop.run)(null, resolve, value); + }, 10); + }); + } +}); +define("ember-testing/lib/initializers", ["@ember/application"], function (_application) { + "use strict"; + + var name = 'deferReadiness in `testing` mode'; + (0, _application.onLoad)('Ember.Application', function (Application) { + if (!Application.initializers[name]) { + Application.initializer({ + name: name, + + initialize(application) { + if (application.testing) { + application.deferReadiness(); + } + } + + }); + } + }); +}); +define("ember-testing/lib/setup_for_testing", ["exports", "@ember/debug", "@ember/-internals/views", "ember-testing/lib/test/adapter", "ember-testing/lib/test/pending_requests", "ember-testing/lib/adapters/adapter", "ember-testing/lib/adapters/qunit"], function (_exports, _debug, _views, _adapter, _pending_requests, _adapter2, _qunit) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = setupForTesting; + + /* global self */ + + /** + Sets Ember up for testing. This is useful to perform + basic setup steps in order to unit test. + + Use `App.setupForTesting` to perform integration tests (full + application testing). + + @method setupForTesting + @namespace Ember + @since 1.5.0 + @private + */ + function setupForTesting() { + (0, _debug.setTesting)(true); + var adapter = (0, _adapter.getAdapter)(); // if adapter is not manually set default to QUnit + + if (!adapter) { + (0, _adapter.setAdapter)(typeof self.QUnit === 'undefined' ? _adapter2.default.create() : _qunit.default.create()); + } + + if (!_views.jQueryDisabled) { + (0, _views.jQuery)(document).off('ajaxSend', _pending_requests.incrementPendingRequests); + (0, _views.jQuery)(document).off('ajaxComplete', _pending_requests.decrementPendingRequests); + (0, _pending_requests.clearPendingRequests)(); + (0, _views.jQuery)(document).on('ajaxSend', _pending_requests.incrementPendingRequests); + (0, _views.jQuery)(document).on('ajaxComplete', _pending_requests.decrementPendingRequests); + } + } +}); +define("ember-testing/lib/support", ["@ember/debug", "@ember/-internals/views", "@ember/-internals/browser-environment"], function (_debug, _views, _browserEnvironment) { + "use strict"; + + /** + @module ember + */ + var $ = _views.jQuery; + /** + This method creates a checkbox and triggers the click event to fire the + passed in handler. It is used to correct for a bug in older versions + of jQuery (e.g 1.8.3). + + @private + @method testCheckboxClick + */ + + function testCheckboxClick(handler) { + var input = document.createElement('input'); + $(input).attr('type', 'checkbox').css({ + position: 'absolute', + left: '-1000px', + top: '-1000px' + }).appendTo('body').on('click', handler).trigger('click').remove(); + } + + if (_browserEnvironment.hasDOM && !_views.jQueryDisabled) { + $(function () { + /* + Determine whether a checkbox checked using jQuery's "click" method will have + the correct value for its checked property. + If we determine that the current jQuery version exhibits this behavior, + patch it to work correctly as in the commit for the actual fix: + https://github.com/jquery/jquery/commit/1fb2f92. + */ + testCheckboxClick(function () { + if (!this.checked && !$.event.special.click) { + $.event.special.click = { + // For checkbox, fire native event so checked state will be right + trigger() { + if (this.nodeName === 'INPUT' && this.type === 'checkbox' && this.click) { + this.click(); + return false; + } + } + + }; + } + }); // Try again to verify that the patch took effect or blow up. + + testCheckboxClick(function () { + (true && (0, _debug.warn)("clicked checkboxes should be checked! the jQuery patch didn't work", this.checked, { + id: 'ember-testing.test-checkbox-click' + })); + }); + }); + } +}); +define("ember-testing/lib/test", ["exports", "ember-testing/lib/test/helpers", "ember-testing/lib/test/on_inject_helpers", "ember-testing/lib/test/promise", "ember-testing/lib/test/waiters", "ember-testing/lib/test/adapter"], function (_exports, _helpers, _on_inject_helpers, _promise, _waiters, _adapter) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + /** + @module ember + */ + + /** + This is a container for an assortment of testing related functionality: + + * Choose your default test adapter (for your framework of choice). + * Register/Unregister additional test helpers. + * Setup callbacks to be fired when the test helpers are injected into + your application. + + @class Test + @namespace Ember + @public + */ + var Test = { + /** + Hash containing all known test helpers. + @property _helpers + @private + @since 1.7.0 + */ + _helpers: _helpers.helpers, + registerHelper: _helpers.registerHelper, + registerAsyncHelper: _helpers.registerAsyncHelper, + unregisterHelper: _helpers.unregisterHelper, + onInjectHelpers: _on_inject_helpers.onInjectHelpers, + Promise: _promise.default, + promise: _promise.promise, + resolve: _promise.resolve, + registerWaiter: _waiters.registerWaiter, + unregisterWaiter: _waiters.unregisterWaiter, + checkWaiters: _waiters.checkWaiters + }; + /** + Used to allow ember-testing to communicate with a specific testing + framework. + + You can manually set it before calling `App.setupForTesting()`. + + Example: + + ```javascript + Ember.Test.adapter = MyCustomAdapter.create() + ``` + + If you do not set it, ember-testing will default to `Ember.Test.QUnitAdapter`. + + @public + @for Ember.Test + @property adapter + @type {Class} The adapter to be used. + @default Ember.Test.QUnitAdapter + */ + + Object.defineProperty(Test, 'adapter', { + get: _adapter.getAdapter, + set: _adapter.setAdapter + }); + var _default = Test; + _exports.default = _default; +}); +define("ember-testing/lib/test/adapter", ["exports", "@ember/-internals/error-handling"], function (_exports, _errorHandling) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.getAdapter = getAdapter; + _exports.setAdapter = setAdapter; + _exports.asyncStart = asyncStart; + _exports.asyncEnd = asyncEnd; + var adapter; + + function getAdapter() { + return adapter; + } + + function setAdapter(value) { + adapter = value; + + if (value && typeof value.exception === 'function') { + (0, _errorHandling.setDispatchOverride)(adapterDispatch); + } else { + (0, _errorHandling.setDispatchOverride)(null); + } + } + + function asyncStart() { + if (adapter) { + adapter.asyncStart(); + } + } + + function asyncEnd() { + if (adapter) { + adapter.asyncEnd(); + } + } + + function adapterDispatch(error) { + adapter.exception(error); + console.error(error.stack); // eslint-disable-line no-console + } +}); +define("ember-testing/lib/test/helpers", ["exports", "ember-testing/lib/test/promise"], function (_exports, _promise) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.registerHelper = registerHelper; + _exports.registerAsyncHelper = registerAsyncHelper; + _exports.unregisterHelper = unregisterHelper; + _exports.helpers = void 0; + var helpers = {}; + /** + @module @ember/test + */ + + /** + `registerHelper` is used to register a test helper that will be injected + when `App.injectTestHelpers` is called. + + The helper method will always be called with the current Application as + the first parameter. + + For example: + + ```javascript + import { registerHelper } from '@ember/test'; + import { run } from '@ember/runloop'; + + registerHelper('boot', function(app) { + run(app, app.advanceReadiness); + }); + ``` + + This helper can later be called without arguments because it will be + called with `app` as the first parameter. + + ```javascript + import Application from '@ember/application'; + + App = Application.create(); + App.injectTestHelpers(); + boot(); + ``` + + @public + @for @ember/test + @static + @method registerHelper + @param {String} name The name of the helper method to add. + @param {Function} helperMethod + @param options {Object} + */ + + _exports.helpers = helpers; + + function registerHelper(name, helperMethod) { + helpers[name] = { + method: helperMethod, + meta: { + wait: false + } + }; + } + /** + `registerAsyncHelper` is used to register an async test helper that will be injected + when `App.injectTestHelpers` is called. + + The helper method will always be called with the current Application as + the first parameter. + + For example: + + ```javascript + import { registerAsyncHelper } from '@ember/test'; + import { run } from '@ember/runloop'; + + registerAsyncHelper('boot', function(app) { + run(app, app.advanceReadiness); + }); + ``` + + The advantage of an async helper is that it will not run + until the last async helper has completed. All async helpers + after it will wait for it complete before running. + + + For example: + + ```javascript + import { registerAsyncHelper } from '@ember/test'; + + registerAsyncHelper('deletePost', function(app, postId) { + click('.delete-' + postId); + }); + + // ... in your test + visit('/post/2'); + deletePost(2); + visit('/post/3'); + deletePost(3); + ``` + + @public + @for @ember/test + @method registerAsyncHelper + @param {String} name The name of the helper method to add. + @param {Function} helperMethod + @since 1.2.0 + */ + + + function registerAsyncHelper(name, helperMethod) { + helpers[name] = { + method: helperMethod, + meta: { + wait: true + } + }; + } + /** + Remove a previously added helper method. + + Example: + + ```javascript + import { unregisterHelper } from '@ember/test'; + + unregisterHelper('wait'); + ``` + + @public + @method unregisterHelper + @static + @for @ember/test + @param {String} name The helper to remove. + */ + + + function unregisterHelper(name) { + delete helpers[name]; + delete _promise.default.prototype[name]; + } +}); +define("ember-testing/lib/test/on_inject_helpers", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.onInjectHelpers = onInjectHelpers; + _exports.invokeInjectHelpersCallbacks = invokeInjectHelpersCallbacks; + _exports.callbacks = void 0; + var callbacks = []; + /** + Used to register callbacks to be fired whenever `App.injectTestHelpers` + is called. + + The callback will receive the current application as an argument. + + Example: + + ```javascript + import $ from 'jquery'; + + Ember.Test.onInjectHelpers(function() { + $(document).ajaxSend(function() { + Test.pendingRequests++; + }); + + $(document).ajaxComplete(function() { + Test.pendingRequests--; + }); + }); + ``` + + @public + @for Ember.Test + @method onInjectHelpers + @param {Function} callback The function to be called. + */ + + _exports.callbacks = callbacks; + + function onInjectHelpers(callback) { + callbacks.push(callback); + } + + function invokeInjectHelpersCallbacks(app) { + for (var i = 0; i < callbacks.length; i++) { + callbacks[i](app); + } + } +}); +define("ember-testing/lib/test/pending_requests", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.pendingRequests = pendingRequests; + _exports.clearPendingRequests = clearPendingRequests; + _exports.incrementPendingRequests = incrementPendingRequests; + _exports.decrementPendingRequests = decrementPendingRequests; + var requests = []; + + function pendingRequests() { + return requests.length; + } + + function clearPendingRequests() { + requests.length = 0; + } + + function incrementPendingRequests(_, xhr) { + requests.push(xhr); + } + + function decrementPendingRequests(_, xhr) { + setTimeout(function () { + for (var i = 0; i < requests.length; i++) { + if (xhr === requests[i]) { + requests.splice(i, 1); + break; + } + } + }, 0); + } +}); +define("ember-testing/lib/test/promise", ["exports", "@ember/-internals/runtime", "ember-testing/lib/test/run"], function (_exports, _runtime, _run) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.promise = promise; + _exports.resolve = resolve; + _exports.getLastPromise = getLastPromise; + _exports.default = void 0; + var lastPromise; + + class TestPromise extends _runtime.RSVP.Promise { + constructor() { + super(...arguments); + lastPromise = this; + } + + then(_onFulfillment, ...args) { + var onFulfillment = typeof _onFulfillment === 'function' ? result => isolate(_onFulfillment, result) : undefined; + return super.then(onFulfillment, ...args); + } + + } + /** + This returns a thenable tailored for testing. It catches failed + `onSuccess` callbacks and invokes the `Ember.Test.adapter.exception` + callback in the last chained then. + + This method should be returned by async helpers such as `wait`. + + @public + @for Ember.Test + @method promise + @param {Function} resolver The function used to resolve the promise. + @param {String} label An optional string for identifying the promise. + */ + + + _exports.default = TestPromise; + + function promise(resolver, label) { + var fullLabel = `Ember.Test.promise: ${label || ''}`; + return new TestPromise(resolver, fullLabel); + } + /** + Replacement for `Ember.RSVP.resolve` + The only difference is this uses + an instance of `Ember.Test.Promise` + + @public + @for Ember.Test + @method resolve + @param {Mixed} The value to resolve + @since 1.2.0 + */ + + + function resolve(result, label) { + return TestPromise.resolve(result, label); + } + + function getLastPromise() { + return lastPromise; + } // This method isolates nested async methods + // so that they don't conflict with other last promises. + // + // 1. Set `Ember.Test.lastPromise` to null + // 2. Invoke method + // 3. Return the last promise created during method + + + function isolate(onFulfillment, result) { + // Reset lastPromise for nested helpers + lastPromise = null; + var value = onFulfillment(result); + var promise = lastPromise; + lastPromise = null; // If the method returned a promise + // return that promise. If not, + // return the last async helper's promise + + if (value && value instanceof TestPromise || !promise) { + return value; + } else { + return (0, _run.default)(() => resolve(promise).then(() => value)); + } + } +}); +define("ember-testing/lib/test/run", ["exports", "@ember/runloop"], function (_exports, _runloop) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = run; + + function run(fn) { + if (!(0, _runloop.getCurrentRunLoop)()) { + return (0, _runloop.run)(fn); + } else { + return fn(); + } + } +}); +define("ember-testing/lib/test/waiters", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.registerWaiter = registerWaiter; + _exports.unregisterWaiter = unregisterWaiter; + _exports.checkWaiters = checkWaiters; + + /** + @module @ember/test + */ + var contexts = []; + var callbacks = []; + /** + This allows ember-testing to play nicely with other asynchronous + events, such as an application that is waiting for a CSS3 + transition or an IndexDB transaction. The waiter runs periodically + after each async helper (i.e. `click`, `andThen`, `visit`, etc) has executed, + until the returning result is truthy. After the waiters finish, the next async helper + is executed and the process repeats. + + For example: + + ```javascript + import { registerWaiter } from '@ember/test'; + + registerWaiter(function() { + return myPendingTransactions() === 0; + }); + ``` + The `context` argument allows you to optionally specify the `this` + with which your callback will be invoked. + + For example: + + ```javascript + import { registerWaiter } from '@ember/test'; + + registerWaiter(MyDB, MyDB.hasPendingTransactions); + ``` + + @public + @for @ember/test + @static + @method registerWaiter + @param {Object} context (optional) + @param {Function} callback + @since 1.2.0 + */ + + function registerWaiter(context, callback) { + if (arguments.length === 1) { + callback = context; + context = null; + } + + if (indexOf(context, callback) > -1) { + return; + } + + contexts.push(context); + callbacks.push(callback); + } + /** + `unregisterWaiter` is used to unregister a callback that was + registered with `registerWaiter`. + + @public + @for @ember/test + @static + @method unregisterWaiter + @param {Object} context (optional) + @param {Function} callback + @since 1.2.0 + */ + + + function unregisterWaiter(context, callback) { + if (!callbacks.length) { + return; + } + + if (arguments.length === 1) { + callback = context; + context = null; + } + + var i = indexOf(context, callback); + + if (i === -1) { + return; + } + + contexts.splice(i, 1); + callbacks.splice(i, 1); + } + /** + Iterates through each registered test waiter, and invokes + its callback. If any waiter returns false, this method will return + true indicating that the waiters have not settled yet. + + This is generally used internally from the acceptance/integration test + infrastructure. + + @public + @for @ember/test + @static + @method checkWaiters + */ + + + function checkWaiters() { + if (!callbacks.length) { + return false; + } + + for (var i = 0; i < callbacks.length; i++) { + var context = contexts[i]; + var callback = callbacks[i]; + + if (!callback.call(context)) { + return true; + } + } + + return false; + } + + function indexOf(context, callback) { + for (var i = 0; i < callbacks.length; i++) { + if (callbacks[i] === callback && contexts[i] === context) { + return i; + } + } + + return -1; + } +}); + + var testing = require('ember-testing'); + Ember.Test = testing.Test; + Ember.Test.Adapter = testing.Adapter; + Ember.Test.QUnitAdapter = testing.QUnitAdapter; + Ember.setupForTesting = testing.setupForTesting; + +}()); + +(function() { + var key = '_embroider_macros_runtime_config'; + if (!window[key]) { + window[key] = []; + } + window[key].push(function(m) { + m.setGlobalConfig( + '@embroider/macros', + Object.assign({}, m.getGlobalConfig()['@embroider/macros'], { isTesting: true }) + ); + }); +})(); + +/* globals require, Ember, jQuery */ +(() => { + if (typeof jQuery !== 'undefined') { + let _Ember; + + if (typeof Ember !== 'undefined') { + _Ember = Ember; + } else { + _Ember = require('ember').default; + } + + let pendingRequests; + + if (Ember.__loader.registry['ember-testing/test/pending_requests']) { + // Ember <= 3.1 + pendingRequests = Ember.__loader.require('ember-testing/test/pending_requests'); + } else if (Ember.__loader.registry['ember-testing/lib/test/pending_requests']) { + // Ember >= 3.2 + pendingRequests = Ember.__loader.require('ember-testing/lib/test/pending_requests'); + } + + if (pendingRequests) { + // This exists to ensure that the AJAX listeners setup by Ember itself + // (which as of 2.17 are not properly torn down) get cleared and released + // when the application is destroyed. Without this, any AJAX requests + // that happen _between_ acceptance tests will always share + // `pendingRequests`. + _Ember.Application.reopen({ + willDestroy() { + jQuery(document).off('ajaxSend', pendingRequests.incrementPendingRequests); + jQuery(document).off('ajaxComplete', pendingRequests.decrementPendingRequests); + pendingRequests.clearPendingRequests(); + + this._super(...arguments); + } + + }); + } + } +})(); +/*! + * QUnit 2.10.0 + * https://qunitjs.com/ + * + * Copyright jQuery Foundation and other contributors + * Released under the MIT license + * https://jquery.org/license + * + * Date: 2020-05-02T22:51Z + */ +(function (global$1) { + 'use strict'; + + global$1 = global$1 && global$1.hasOwnProperty('default') ? global$1['default'] : global$1; + + var window$1 = global$1.window; + var self$1 = global$1.self; + var console = global$1.console; + var setTimeout$1 = global$1.setTimeout; + var clearTimeout = global$1.clearTimeout; + + var document$1 = window$1 && window$1.document; + var navigator = window$1 && window$1.navigator; + + var localSessionStorage = function () { + var x = "qunit-test-string"; + try { + global$1.sessionStorage.setItem(x, x); + global$1.sessionStorage.removeItem(x); + return global$1.sessionStorage; + } catch (e) { + return undefined; + } + }(); + + /** + * Returns a function that proxies to the given method name on the globals + * console object. The proxy will also detect if the console doesn't exist and + * will appropriately no-op. This allows support for IE9, which doesn't have a + * console if the developer tools are not open. + */ + function consoleProxy(method) { + return function () { + if (console) { + console[method].apply(console, arguments); + } + }; + } + + var Logger = { + warn: consoleProxy("warn") + }; + + var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }; + + + + + + + + + + + + var classCallCheck = function (instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } + }; + + var createClass = function () { + function defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } + } + + return function (Constructor, protoProps, staticProps) { + if (protoProps) defineProperties(Constructor.prototype, protoProps); + if (staticProps) defineProperties(Constructor, staticProps); + return Constructor; + }; + }(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + var toConsumableArray = function (arr) { + if (Array.isArray(arr)) { + for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i]; + + return arr2; + } else { + return Array.from(arr); + } + }; + + var toString = Object.prototype.toString; + var hasOwn = Object.prototype.hasOwnProperty; + var now = Date.now || function () { + return new Date().getTime(); + }; + + var hasPerformanceApi = detectPerformanceApi(); + var performance = hasPerformanceApi ? window$1.performance : undefined; + var performanceNow = hasPerformanceApi ? performance.now.bind(performance) : now; + + function detectPerformanceApi() { + return window$1 && typeof window$1.performance !== "undefined" && typeof window$1.performance.mark === "function" && typeof window$1.performance.measure === "function"; + } + + function measure(comment, startMark, endMark) { + + // `performance.measure` may fail if the mark could not be found. + // reasons a specific mark could not be found include: outside code invoking `performance.clearMarks()` + try { + performance.measure(comment, startMark, endMark); + } catch (ex) { + Logger.warn("performance.measure could not be executed because of ", ex.message); + } + } + + var defined = { + document: window$1 && window$1.document !== undefined, + setTimeout: setTimeout$1 !== undefined + }; + + // Returns a new Array with the elements that are in a but not in b + function diff(a, b) { + var i, + j, + result = a.slice(); + + for (i = 0; i < result.length; i++) { + for (j = 0; j < b.length; j++) { + if (result[i] === b[j]) { + result.splice(i, 1); + i--; + break; + } + } + } + return result; + } + + /** + * Determines whether an element exists in a given array or not. + * + * @method inArray + * @param {Any} elem + * @param {Array} array + * @return {Boolean} + */ + function inArray(elem, array) { + return array.indexOf(elem) !== -1; + } + + /** + * Makes a clone of an object using only Array or Object as base, + * and copies over the own enumerable properties. + * + * @param {Object} obj + * @return {Object} New object with only the own properties (recursively). + */ + function objectValues(obj) { + var key, + val, + vals = is("array", obj) ? [] : {}; + for (key in obj) { + if (hasOwn.call(obj, key)) { + val = obj[key]; + vals[key] = val === Object(val) ? objectValues(val) : val; + } + } + return vals; + } + + function extend(a, b, undefOnly) { + for (var prop in b) { + if (hasOwn.call(b, prop)) { + if (b[prop] === undefined) { + delete a[prop]; + } else if (!(undefOnly && typeof a[prop] !== "undefined")) { + a[prop] = b[prop]; + } + } + } + + return a; + } + + function objectType(obj) { + if (typeof obj === "undefined") { + return "undefined"; + } + + // Consider: typeof null === object + if (obj === null) { + return "null"; + } + + var match = toString.call(obj).match(/^\[object\s(.*)\]$/), + type = match && match[1]; + + switch (type) { + case "Number": + if (isNaN(obj)) { + return "nan"; + } + return "number"; + case "String": + case "Boolean": + case "Array": + case "Set": + case "Map": + case "Date": + case "RegExp": + case "Function": + case "Symbol": + return type.toLowerCase(); + default: + return typeof obj === "undefined" ? "undefined" : _typeof(obj); + } + } + + // Safe object type checking + function is(type, obj) { + return objectType(obj) === type; + } + + // Based on Java's String.hashCode, a simple but not + // rigorously collision resistant hashing function + function generateHash(module, testName) { + var str = module + "\x1C" + testName; + var hash = 0; + + for (var i = 0; i < str.length; i++) { + hash = (hash << 5) - hash + str.charCodeAt(i); + hash |= 0; + } + + // Convert the possibly negative integer hash code into an 8 character hex string, which isn't + // strictly necessary but increases user understanding that the id is a SHA-like hash + var hex = (0x100000000 + hash).toString(16); + if (hex.length < 8) { + hex = "0000000" + hex; + } + + return hex.slice(-8); + } + + // Test for equality any JavaScript type. + // Authors: Philippe Rathé , David Chan + var equiv = (function () { + + // Value pairs queued for comparison. Used for breadth-first processing order, recursion + // detection and avoiding repeated comparison (see below for details). + // Elements are { a: val, b: val }. + var pairs = []; + + var getProto = Object.getPrototypeOf || function (obj) { + return obj.__proto__; + }; + + function useStrictEquality(a, b) { + + // This only gets called if a and b are not strict equal, and is used to compare on + // the primitive values inside object wrappers. For example: + // `var i = 1;` + // `var j = new Number(1);` + // Neither a nor b can be null, as a !== b and they have the same type. + if ((typeof a === "undefined" ? "undefined" : _typeof(a)) === "object") { + a = a.valueOf(); + } + if ((typeof b === "undefined" ? "undefined" : _typeof(b)) === "object") { + b = b.valueOf(); + } + + return a === b; + } + + function compareConstructors(a, b) { + var protoA = getProto(a); + var protoB = getProto(b); + + // Comparing constructors is more strict than using `instanceof` + if (a.constructor === b.constructor) { + return true; + } + + // Ref #851 + // If the obj prototype descends from a null constructor, treat it + // as a null prototype. + if (protoA && protoA.constructor === null) { + protoA = null; + } + if (protoB && protoB.constructor === null) { + protoB = null; + } + + // Allow objects with no prototype to be equivalent to + // objects with Object as their constructor. + if (protoA === null && protoB === Object.prototype || protoB === null && protoA === Object.prototype) { + return true; + } + + return false; + } + + function getRegExpFlags(regexp) { + return "flags" in regexp ? regexp.flags : regexp.toString().match(/[gimuy]*$/)[0]; + } + + function isContainer(val) { + return ["object", "array", "map", "set"].indexOf(objectType(val)) !== -1; + } + + function breadthFirstCompareChild(a, b) { + + // If a is a container not reference-equal to b, postpone the comparison to the + // end of the pairs queue -- unless (a, b) has been seen before, in which case skip + // over the pair. + if (a === b) { + return true; + } + if (!isContainer(a)) { + return typeEquiv(a, b); + } + if (pairs.every(function (pair) { + return pair.a !== a || pair.b !== b; + })) { + + // Not yet started comparing this pair + pairs.push({ a: a, b: b }); + } + return true; + } + + var callbacks = { + "string": useStrictEquality, + "boolean": useStrictEquality, + "number": useStrictEquality, + "null": useStrictEquality, + "undefined": useStrictEquality, + "symbol": useStrictEquality, + "date": useStrictEquality, + + "nan": function nan() { + return true; + }, + + "regexp": function regexp(a, b) { + return a.source === b.source && + + // Include flags in the comparison + getRegExpFlags(a) === getRegExpFlags(b); + }, + + // abort (identical references / instance methods were skipped earlier) + "function": function _function() { + return false; + }, + + "array": function array(a, b) { + var i, len; + + len = a.length; + if (len !== b.length) { + + // Safe and faster + return false; + } + + for (i = 0; i < len; i++) { + + // Compare non-containers; queue non-reference-equal containers + if (!breadthFirstCompareChild(a[i], b[i])) { + return false; + } + } + return true; + }, + + // Define sets a and b to be equivalent if for each element aVal in a, there + // is some element bVal in b such that aVal and bVal are equivalent. Element + // repetitions are not counted, so these are equivalent: + // a = new Set( [ {}, [], [] ] ); + // b = new Set( [ {}, {}, [] ] ); + "set": function set$$1(a, b) { + var innerEq, + outerEq = true; + + if (a.size !== b.size) { + + // This optimization has certain quirks because of the lack of + // repetition counting. For instance, adding the same + // (reference-identical) element to two equivalent sets can + // make them non-equivalent. + return false; + } + + a.forEach(function (aVal) { + + // Short-circuit if the result is already known. (Using for...of + // with a break clause would be cleaner here, but it would cause + // a syntax error on older Javascript implementations even if + // Set is unused) + if (!outerEq) { + return; + } + + innerEq = false; + + b.forEach(function (bVal) { + var parentPairs; + + // Likewise, short-circuit if the result is already known + if (innerEq) { + return; + } + + // Swap out the global pairs list, as the nested call to + // innerEquiv will clobber its contents + parentPairs = pairs; + if (innerEquiv(bVal, aVal)) { + innerEq = true; + } + + // Replace the global pairs list + pairs = parentPairs; + }); + + if (!innerEq) { + outerEq = false; + } + }); + + return outerEq; + }, + + // Define maps a and b to be equivalent if for each key-value pair (aKey, aVal) + // in a, there is some key-value pair (bKey, bVal) in b such that + // [ aKey, aVal ] and [ bKey, bVal ] are equivalent. Key repetitions are not + // counted, so these are equivalent: + // a = new Map( [ [ {}, 1 ], [ {}, 1 ], [ [], 1 ] ] ); + // b = new Map( [ [ {}, 1 ], [ [], 1 ], [ [], 1 ] ] ); + "map": function map(a, b) { + var innerEq, + outerEq = true; + + if (a.size !== b.size) { + + // This optimization has certain quirks because of the lack of + // repetition counting. For instance, adding the same + // (reference-identical) key-value pair to two equivalent maps + // can make them non-equivalent. + return false; + } + + a.forEach(function (aVal, aKey) { + + // Short-circuit if the result is already known. (Using for...of + // with a break clause would be cleaner here, but it would cause + // a syntax error on older Javascript implementations even if + // Map is unused) + if (!outerEq) { + return; + } + + innerEq = false; + + b.forEach(function (bVal, bKey) { + var parentPairs; + + // Likewise, short-circuit if the result is already known + if (innerEq) { + return; + } + + // Swap out the global pairs list, as the nested call to + // innerEquiv will clobber its contents + parentPairs = pairs; + if (innerEquiv([bVal, bKey], [aVal, aKey])) { + innerEq = true; + } + + // Replace the global pairs list + pairs = parentPairs; + }); + + if (!innerEq) { + outerEq = false; + } + }); + + return outerEq; + }, + + "object": function object(a, b) { + var i, + aProperties = [], + bProperties = []; + + if (compareConstructors(a, b) === false) { + return false; + } + + // Be strict: don't ensure hasOwnProperty and go deep + for (i in a) { + + // Collect a's properties + aProperties.push(i); + + // Skip OOP methods that look the same + if (a.constructor !== Object && typeof a.constructor !== "undefined" && typeof a[i] === "function" && typeof b[i] === "function" && a[i].toString() === b[i].toString()) { + continue; + } + + // Compare non-containers; queue non-reference-equal containers + if (!breadthFirstCompareChild(a[i], b[i])) { + return false; + } + } + + for (i in b) { + + // Collect b's properties + bProperties.push(i); + } + + // Ensures identical properties name + return typeEquiv(aProperties.sort(), bProperties.sort()); + } + }; + + function typeEquiv(a, b) { + var type = objectType(a); + + // Callbacks for containers will append to the pairs queue to achieve breadth-first + // search order. The pairs queue is also used to avoid reprocessing any pair of + // containers that are reference-equal to a previously visited pair (a special case + // this being recursion detection). + // + // Because of this approach, once typeEquiv returns a false value, it should not be + // called again without clearing the pair queue else it may wrongly report a visited + // pair as being equivalent. + return objectType(b) === type && callbacks[type](a, b); + } + + function innerEquiv(a, b) { + var i, pair; + + // We're done when there's nothing more to compare + if (arguments.length < 2) { + return true; + } + + // Clear the global pair queue and add the top-level values being compared + pairs = [{ a: a, b: b }]; + + for (i = 0; i < pairs.length; i++) { + pair = pairs[i]; + + // Perform type-specific comparison on any pairs that are not strictly + // equal. For container types, that comparison will postpone comparison + // of any sub-container pair to the end of the pair queue. This gives + // breadth-first search order. It also avoids the reprocessing of + // reference-equal siblings, cousins etc, which can have a significant speed + // impact when comparing a container of small objects each of which has a + // reference to the same (singleton) large object. + if (pair.a !== pair.b && !typeEquiv(pair.a, pair.b)) { + return false; + } + } + + // ...across all consecutive argument pairs + return arguments.length === 2 || innerEquiv.apply(this, [].slice.call(arguments, 1)); + } + + return function () { + var result = innerEquiv.apply(undefined, arguments); + + // Release any retained objects + pairs.length = 0; + return result; + }; + })(); + + /** + * Config object: Maintain internal state + * Later exposed as QUnit.config + * `config` initialized at top of scope + */ + var config = { + + // The queue of tests to run + queue: [], + + // Block until document ready + blocking: true, + + // By default, run previously failed tests first + // very useful in combination with "Hide passed tests" checked + reorder: true, + + // By default, modify document.title when suite is done + altertitle: true, + + // HTML Reporter: collapse every test except the first failing test + // If false, all failing tests will be expanded + collapse: true, + + // By default, scroll to top of the page when suite is done + scrolltop: true, + + // Depth up-to which object will be dumped + maxDepth: 5, + + // When enabled, all tests must call expect() + requireExpects: false, + + // Placeholder for user-configurable form-exposed URL parameters + urlConfig: [], + + // Set of all modules. + modules: [], + + // The first unnamed module + currentModule: { + name: "", + tests: [], + childModules: [], + testsRun: 0, + unskippedTestsRun: 0, + hooks: { + before: [], + beforeEach: [], + afterEach: [], + after: [] + } + }, + + callbacks: {}, + + // The storage module to use for reordering tests + storage: localSessionStorage + }; + + // take a predefined QUnit.config and extend the defaults + var globalConfig = window$1 && window$1.QUnit && window$1.QUnit.config; + + // only extend the global config if there is no QUnit overload + if (window$1 && window$1.QUnit && !window$1.QUnit.version) { + extend(config, globalConfig); + } + + // Push a loose unnamed module to the modules collection + config.modules.push(config.currentModule); + + // Based on jsDump by Ariel Flesler + // http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html + var dump = (function () { + function quote(str) { + return "\"" + str.toString().replace(/\\/g, "\\\\").replace(/"/g, "\\\"") + "\""; + } + function literal(o) { + return o + ""; + } + function join(pre, arr, post) { + var s = dump.separator(), + base = dump.indent(), + inner = dump.indent(1); + if (arr.join) { + arr = arr.join("," + s + inner); + } + if (!arr) { + return pre + post; + } + return [pre, inner + arr, base + post].join(s); + } + function array(arr, stack) { + var i = arr.length, + ret = new Array(i); + + if (dump.maxDepth && dump.depth > dump.maxDepth) { + return "[object Array]"; + } + + this.up(); + while (i--) { + ret[i] = this.parse(arr[i], undefined, stack); + } + this.down(); + return join("[", ret, "]"); + } + + function isArray(obj) { + return ( + + //Native Arrays + toString.call(obj) === "[object Array]" || + + // NodeList objects + typeof obj.length === "number" && obj.item !== undefined && (obj.length ? obj.item(0) === obj[0] : obj.item(0) === null && obj[0] === undefined) + ); + } + + var reName = /^function (\w+)/, + dump = { + + // The objType is used mostly internally, you can fix a (custom) type in advance + parse: function parse(obj, objType, stack) { + stack = stack || []; + var res, + parser, + parserType, + objIndex = stack.indexOf(obj); + + if (objIndex !== -1) { + return "recursion(" + (objIndex - stack.length) + ")"; + } + + objType = objType || this.typeOf(obj); + parser = this.parsers[objType]; + parserType = typeof parser === "undefined" ? "undefined" : _typeof(parser); + + if (parserType === "function") { + stack.push(obj); + res = parser.call(this, obj, stack); + stack.pop(); + return res; + } + return parserType === "string" ? parser : this.parsers.error; + }, + typeOf: function typeOf(obj) { + var type; + + if (obj === null) { + type = "null"; + } else if (typeof obj === "undefined") { + type = "undefined"; + } else if (is("regexp", obj)) { + type = "regexp"; + } else if (is("date", obj)) { + type = "date"; + } else if (is("function", obj)) { + type = "function"; + } else if (obj.setInterval !== undefined && obj.document !== undefined && obj.nodeType === undefined) { + type = "window"; + } else if (obj.nodeType === 9) { + type = "document"; + } else if (obj.nodeType) { + type = "node"; + } else if (isArray(obj)) { + type = "array"; + } else if (obj.constructor === Error.prototype.constructor) { + type = "error"; + } else { + type = typeof obj === "undefined" ? "undefined" : _typeof(obj); + } + return type; + }, + + separator: function separator() { + if (this.multiline) { + return this.HTML ? "
" : "\n"; + } else { + return this.HTML ? " " : " "; + } + }, + + // Extra can be a number, shortcut for increasing-calling-decreasing + indent: function indent(extra) { + if (!this.multiline) { + return ""; + } + var chr = this.indentChar; + if (this.HTML) { + chr = chr.replace(/\t/g, " ").replace(/ /g, " "); + } + return new Array(this.depth + (extra || 0)).join(chr); + }, + up: function up(a) { + this.depth += a || 1; + }, + down: function down(a) { + this.depth -= a || 1; + }, + setParser: function setParser(name, parser) { + this.parsers[name] = parser; + }, + + // The next 3 are exposed so you can use them + quote: quote, + literal: literal, + join: join, + depth: 1, + maxDepth: config.maxDepth, + + // This is the list of parsers, to modify them, use dump.setParser + parsers: { + window: "[Window]", + document: "[Document]", + error: function error(_error) { + return "Error(\"" + _error.message + "\")"; + }, + unknown: "[Unknown]", + "null": "null", + "undefined": "undefined", + "function": function _function(fn) { + var ret = "function", + + + // Functions never have name in IE + name = "name" in fn ? fn.name : (reName.exec(fn) || [])[1]; + + if (name) { + ret += " " + name; + } + ret += "("; + + ret = [ret, dump.parse(fn, "functionArgs"), "){"].join(""); + return join(ret, dump.parse(fn, "functionCode"), "}"); + }, + array: array, + nodelist: array, + "arguments": array, + object: function object(map, stack) { + var keys, + key, + val, + i, + nonEnumerableProperties, + ret = []; + + if (dump.maxDepth && dump.depth > dump.maxDepth) { + return "[object Object]"; + } + + dump.up(); + keys = []; + for (key in map) { + keys.push(key); + } + + // Some properties are not always enumerable on Error objects. + nonEnumerableProperties = ["message", "name"]; + for (i in nonEnumerableProperties) { + key = nonEnumerableProperties[i]; + if (key in map && !inArray(key, keys)) { + keys.push(key); + } + } + keys.sort(); + for (i = 0; i < keys.length; i++) { + key = keys[i]; + val = map[key]; + ret.push(dump.parse(key, "key") + ": " + dump.parse(val, undefined, stack)); + } + dump.down(); + return join("{", ret, "}"); + }, + node: function node(_node) { + var len, + i, + val, + open = dump.HTML ? "<" : "<", + close = dump.HTML ? ">" : ">", + tag = _node.nodeName.toLowerCase(), + ret = open + tag, + attrs = _node.attributes; + + if (attrs) { + for (i = 0, len = attrs.length; i < len; i++) { + val = attrs[i].nodeValue; + + // IE6 includes all attributes in .attributes, even ones not explicitly + // set. Those have values like undefined, null, 0, false, "" or + // "inherit". + if (val && val !== "inherit") { + ret += " " + attrs[i].nodeName + "=" + dump.parse(val, "attribute"); + } + } + } + ret += close; + + // Show content of TextNode or CDATASection + if (_node.nodeType === 3 || _node.nodeType === 4) { + ret += _node.nodeValue; + } + + return ret + open + "/" + tag + close; + }, + + // Function calls it internally, it's the arguments part of the function + functionArgs: function functionArgs(fn) { + var args, + l = fn.length; + + if (!l) { + return ""; + } + + args = new Array(l); + while (l--) { + + // 97 is 'a' + args[l] = String.fromCharCode(97 + l); + } + return " " + args.join(", ") + " "; + }, + + // Object calls it internally, the key part of an item in a map + key: quote, + + // Function calls it internally, it's the content of the function + functionCode: "[code]", + + // Node calls it internally, it's a html attribute value + attribute: quote, + string: quote, + date: quote, + regexp: literal, + number: literal, + "boolean": literal, + symbol: function symbol(sym) { + return sym.toString(); + } + }, + + // If true, entities are escaped ( <, >, \t, space and \n ) + HTML: false, + + // Indentation unit + indentChar: " ", + + // If true, items in a collection, are separated by a \n, else just a space. + multiline: true + }; + + return dump; + })(); + + var SuiteReport = function () { + function SuiteReport(name, parentSuite) { + classCallCheck(this, SuiteReport); + + this.name = name; + this.fullName = parentSuite ? parentSuite.fullName.concat(name) : []; + + this.tests = []; + this.childSuites = []; + + if (parentSuite) { + parentSuite.pushChildSuite(this); + } + } + + createClass(SuiteReport, [{ + key: "start", + value: function start(recordTime) { + if (recordTime) { + this._startTime = performanceNow(); + + if (performance) { + var suiteLevel = this.fullName.length; + performance.mark("qunit_suite_" + suiteLevel + "_start"); + } + } + + return { + name: this.name, + fullName: this.fullName.slice(), + tests: this.tests.map(function (test) { + return test.start(); + }), + childSuites: this.childSuites.map(function (suite) { + return suite.start(); + }), + testCounts: { + total: this.getTestCounts().total + } + }; + } + }, { + key: "end", + value: function end(recordTime) { + if (recordTime) { + this._endTime = performanceNow(); + + if (performance) { + var suiteLevel = this.fullName.length; + performance.mark("qunit_suite_" + suiteLevel + "_end"); + + var suiteName = this.fullName.join(" – "); + + measure(suiteLevel === 0 ? "QUnit Test Run" : "QUnit Test Suite: " + suiteName, "qunit_suite_" + suiteLevel + "_start", "qunit_suite_" + suiteLevel + "_end"); + } + } + + return { + name: this.name, + fullName: this.fullName.slice(), + tests: this.tests.map(function (test) { + return test.end(); + }), + childSuites: this.childSuites.map(function (suite) { + return suite.end(); + }), + testCounts: this.getTestCounts(), + runtime: this.getRuntime(), + status: this.getStatus() + }; + } + }, { + key: "pushChildSuite", + value: function pushChildSuite(suite) { + this.childSuites.push(suite); + } + }, { + key: "pushTest", + value: function pushTest(test) { + this.tests.push(test); + } + }, { + key: "getRuntime", + value: function getRuntime() { + return this._endTime - this._startTime; + } + }, { + key: "getTestCounts", + value: function getTestCounts() { + var counts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { passed: 0, failed: 0, skipped: 0, todo: 0, total: 0 }; + + counts = this.tests.reduce(function (counts, test) { + if (test.valid) { + counts[test.getStatus()]++; + counts.total++; + } + + return counts; + }, counts); + + return this.childSuites.reduce(function (counts, suite) { + return suite.getTestCounts(counts); + }, counts); + } + }, { + key: "getStatus", + value: function getStatus() { + var _getTestCounts = this.getTestCounts(), + total = _getTestCounts.total, + failed = _getTestCounts.failed, + skipped = _getTestCounts.skipped, + todo = _getTestCounts.todo; + + if (failed) { + return "failed"; + } else { + if (skipped === total) { + return "skipped"; + } else if (todo === total) { + return "todo"; + } else { + return "passed"; + } + } + } + }]); + return SuiteReport; + }(); + + var focused = false; + + var moduleStack = []; + + function isParentModuleInQueue() { + var modulesInQueue = config.modules.map(function (module) { + return module.moduleId; + }); + return moduleStack.some(function (module) { + return modulesInQueue.includes(module.moduleId); + }); + } + + function createModule(name, testEnvironment, modifiers) { + var parentModule = moduleStack.length ? moduleStack.slice(-1)[0] : null; + var moduleName = parentModule !== null ? [parentModule.name, name].join(" > ") : name; + var parentSuite = parentModule ? parentModule.suiteReport : globalSuite; + + var skip = parentModule !== null && parentModule.skip || modifiers.skip; + var todo = parentModule !== null && parentModule.todo || modifiers.todo; + + var module = { + name: moduleName, + parentModule: parentModule, + tests: [], + moduleId: generateHash(moduleName), + testsRun: 0, + unskippedTestsRun: 0, + childModules: [], + suiteReport: new SuiteReport(name, parentSuite), + + // Pass along `skip` and `todo` properties from parent module, in case + // there is one, to childs. And use own otherwise. + // This property will be used to mark own tests and tests of child suites + // as either `skipped` or `todo`. + skip: skip, + todo: skip ? false : todo + }; + + var env = {}; + if (parentModule) { + parentModule.childModules.push(module); + extend(env, parentModule.testEnvironment); + } + extend(env, testEnvironment); + module.testEnvironment = env; + + config.modules.push(module); + return module; + } + + function processModule(name, options, executeNow) { + var modifiers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; + + if (objectType(options) === "function") { + executeNow = options; + options = undefined; + } + + var module = createModule(name, options, modifiers); + + // Move any hooks to a 'hooks' object + var testEnvironment = module.testEnvironment; + var hooks = module.hooks = {}; + + setHookFromEnvironment(hooks, testEnvironment, "before"); + setHookFromEnvironment(hooks, testEnvironment, "beforeEach"); + setHookFromEnvironment(hooks, testEnvironment, "afterEach"); + setHookFromEnvironment(hooks, testEnvironment, "after"); + + var moduleFns = { + before: setHookFunction(module, "before"), + beforeEach: setHookFunction(module, "beforeEach"), + afterEach: setHookFunction(module, "afterEach"), + after: setHookFunction(module, "after") + }; + + var currentModule = config.currentModule; + if (objectType(executeNow) === "function") { + moduleStack.push(module); + config.currentModule = module; + executeNow.call(module.testEnvironment, moduleFns); + moduleStack.pop(); + module = module.parentModule || currentModule; + } + + config.currentModule = module; + + function setHookFromEnvironment(hooks, environment, name) { + var potentialHook = environment[name]; + hooks[name] = typeof potentialHook === "function" ? [potentialHook] : []; + delete environment[name]; + } + + function setHookFunction(module, hookName) { + return function setHook(callback) { + module.hooks[hookName].push(callback); + }; + } + } + + function module$1(name, options, executeNow) { + if (focused && !isParentModuleInQueue()) { + return; + } + + processModule(name, options, executeNow); + } + + module$1.only = function () { + if (!focused) { + config.modules.length = 0; + config.queue.length = 0; + } + + processModule.apply(undefined, arguments); + + focused = true; + }; + + module$1.skip = function (name, options, executeNow) { + if (focused) { + return; + } + + processModule(name, options, executeNow, { skip: true }); + }; + + module$1.todo = function (name, options, executeNow) { + if (focused) { + return; + } + + processModule(name, options, executeNow, { todo: true }); + }; + + var LISTENERS = Object.create(null); + var SUPPORTED_EVENTS = ["runStart", "suiteStart", "testStart", "assertion", "testEnd", "suiteEnd", "runEnd"]; + + /** + * Emits an event with the specified data to all currently registered listeners. + * Callbacks will fire in the order in which they are registered (FIFO). This + * function is not exposed publicly; it is used by QUnit internals to emit + * logging events. + * + * @private + * @method emit + * @param {String} eventName + * @param {Object} data + * @return {Void} + */ + function emit(eventName, data) { + if (objectType(eventName) !== "string") { + throw new TypeError("eventName must be a string when emitting an event"); + } + + // Clone the callbacks in case one of them registers a new callback + var originalCallbacks = LISTENERS[eventName]; + var callbacks = originalCallbacks ? [].concat(toConsumableArray(originalCallbacks)) : []; + + for (var i = 0; i < callbacks.length; i++) { + callbacks[i](data); + } + } + + /** + * Registers a callback as a listener to the specified event. + * + * @public + * @method on + * @param {String} eventName + * @param {Function} callback + * @return {Void} + */ + function on(eventName, callback) { + if (objectType(eventName) !== "string") { + throw new TypeError("eventName must be a string when registering a listener"); + } else if (!inArray(eventName, SUPPORTED_EVENTS)) { + var events = SUPPORTED_EVENTS.join(", "); + throw new Error("\"" + eventName + "\" is not a valid event; must be one of: " + events + "."); + } else if (objectType(callback) !== "function") { + throw new TypeError("callback must be a function when registering a listener"); + } + + if (!LISTENERS[eventName]) { + LISTENERS[eventName] = []; + } + + // Don't register the same callback more than once + if (!inArray(callback, LISTENERS[eventName])) { + LISTENERS[eventName].push(callback); + } + } + + function objectOrFunction(x) { + var type = typeof x === 'undefined' ? 'undefined' : _typeof(x); + return x !== null && (type === 'object' || type === 'function'); + } + + function isFunction(x) { + return typeof x === 'function'; + } + + + + var _isArray = void 0; + if (Array.isArray) { + _isArray = Array.isArray; + } else { + _isArray = function _isArray(x) { + return Object.prototype.toString.call(x) === '[object Array]'; + }; + } + + var isArray = _isArray; + + var len = 0; + var vertxNext = void 0; + var customSchedulerFn = void 0; + + var asap = function asap(callback, arg) { + queue[len] = callback; + queue[len + 1] = arg; + len += 2; + if (len === 2) { + // If len is 2, that means that we need to schedule an async flush. + // If additional callbacks are queued before the queue is flushed, they + // will be processed by this flush that we are scheduling. + if (customSchedulerFn) { + customSchedulerFn(flush); + } else { + scheduleFlush(); + } + } + }; + + function setScheduler(scheduleFn) { + customSchedulerFn = scheduleFn; + } + + function setAsap(asapFn) { + asap = asapFn; + } + + var browserWindow = typeof window !== 'undefined' ? window : undefined; + var browserGlobal = browserWindow || {}; + var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver; + var isNode = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; + + // test for web worker but not in IE10 + var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined'; + + // node + function useNextTick() { + // node version 0.10.x displays a deprecation warning when nextTick is used recursively + // see https://github.com/cujojs/when/issues/410 for details + return function () { + return process.nextTick(flush); + }; + } + + // vertx + function useVertxTimer() { + if (typeof vertxNext !== 'undefined') { + return function () { + vertxNext(flush); + }; + } + + return useSetTimeout(); + } + + function useMutationObserver() { + var iterations = 0; + var observer = new BrowserMutationObserver(flush); + var node = document.createTextNode(''); + observer.observe(node, { characterData: true }); + + return function () { + node.data = iterations = ++iterations % 2; + }; + } + + // web worker + function useMessageChannel() { + var channel = new MessageChannel(); + channel.port1.onmessage = flush; + return function () { + return channel.port2.postMessage(0); + }; + } + + function useSetTimeout() { + // Store setTimeout reference so es6-promise will be unaffected by + // other code modifying setTimeout (like sinon.useFakeTimers()) + var globalSetTimeout = setTimeout; + return function () { + return globalSetTimeout(flush, 1); + }; + } + + var queue = new Array(1000); + function flush() { + for (var i = 0; i < len; i += 2) { + var callback = queue[i]; + var arg = queue[i + 1]; + + callback(arg); + + queue[i] = undefined; + queue[i + 1] = undefined; + } + + len = 0; + } + + function attemptVertx() { + try { + var vertx = Function('return this')().require('vertx'); + vertxNext = vertx.runOnLoop || vertx.runOnContext; + return useVertxTimer(); + } catch (e) { + return useSetTimeout(); + } + } + + var scheduleFlush = void 0; + // Decide what async method to use to triggering processing of queued callbacks: + if (isNode) { + scheduleFlush = useNextTick(); + } else if (BrowserMutationObserver) { + scheduleFlush = useMutationObserver(); + } else if (isWorker) { + scheduleFlush = useMessageChannel(); + } else if (browserWindow === undefined && typeof require === 'function') { + scheduleFlush = attemptVertx(); + } else { + scheduleFlush = useSetTimeout(); + } + + function then(onFulfillment, onRejection) { + var parent = this; + + var child = new this.constructor(noop); + + if (child[PROMISE_ID] === undefined) { + makePromise(child); + } + + var _state = parent._state; + + + if (_state) { + var callback = arguments[_state - 1]; + asap(function () { + return invokeCallback(_state, child, callback, parent._result); + }); + } else { + subscribe(parent, child, onFulfillment, onRejection); + } + + return child; + } + + /** + `Promise.resolve` returns a promise that will become resolved with the + passed `value`. It is shorthand for the following: + + ```javascript + let promise = new Promise(function(resolve, reject){ + resolve(1); + }); + + promise.then(function(value){ + // value === 1 + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + let promise = Promise.resolve(1); + + promise.then(function(value){ + // value === 1 + }); + ``` + + @method resolve + @static + @param {Any} value value that the returned promise will be resolved with + Useful for tooling. + @return {Promise} a promise that will become fulfilled with the given + `value` + */ + function resolve$1(object) { + /*jshint validthis:true */ + var Constructor = this; + + if (object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && object.constructor === Constructor) { + return object; + } + + var promise = new Constructor(noop); + resolve(promise, object); + return promise; + } + + var PROMISE_ID = Math.random().toString(36).substring(2); + + function noop() {} + + var PENDING = void 0; + var FULFILLED = 1; + var REJECTED = 2; + + function selfFulfillment() { + return new TypeError("You cannot resolve a promise with itself"); + } + + function cannotReturnOwn() { + return new TypeError('A promises callback cannot return that same promise.'); + } + + function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { + try { + then$$1.call(value, fulfillmentHandler, rejectionHandler); + } catch (e) { + return e; + } + } + + function handleForeignThenable(promise, thenable, then$$1) { + asap(function (promise) { + var sealed = false; + var error = tryThen(then$$1, thenable, function (value) { + if (sealed) { + return; + } + sealed = true; + if (thenable !== value) { + resolve(promise, value); + } else { + fulfill(promise, value); + } + }, function (reason) { + if (sealed) { + return; + } + sealed = true; + + reject(promise, reason); + }, 'Settle: ' + (promise._label || ' unknown promise')); + + if (!sealed && error) { + sealed = true; + reject(promise, error); + } + }, promise); + } + + function handleOwnThenable(promise, thenable) { + if (thenable._state === FULFILLED) { + fulfill(promise, thenable._result); + } else if (thenable._state === REJECTED) { + reject(promise, thenable._result); + } else { + subscribe(thenable, undefined, function (value) { + return resolve(promise, value); + }, function (reason) { + return reject(promise, reason); + }); + } + } + + function handleMaybeThenable(promise, maybeThenable, then$$1) { + if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) { + handleOwnThenable(promise, maybeThenable); + } else { + if (then$$1 === undefined) { + fulfill(promise, maybeThenable); + } else if (isFunction(then$$1)) { + handleForeignThenable(promise, maybeThenable, then$$1); + } else { + fulfill(promise, maybeThenable); + } + } + } + + function resolve(promise, value) { + if (promise === value) { + reject(promise, selfFulfillment()); + } else if (objectOrFunction(value)) { + var then$$1 = void 0; + try { + then$$1 = value.then; + } catch (error) { + reject(promise, error); + return; + } + handleMaybeThenable(promise, value, then$$1); + } else { + fulfill(promise, value); + } + } + + function publishRejection(promise) { + if (promise._onerror) { + promise._onerror(promise._result); + } + + publish(promise); + } + + function fulfill(promise, value) { + if (promise._state !== PENDING) { + return; + } + + promise._result = value; + promise._state = FULFILLED; + + if (promise._subscribers.length !== 0) { + asap(publish, promise); + } + } + + function reject(promise, reason) { + if (promise._state !== PENDING) { + return; + } + promise._state = REJECTED; + promise._result = reason; + + asap(publishRejection, promise); + } + + function subscribe(parent, child, onFulfillment, onRejection) { + var _subscribers = parent._subscribers; + var length = _subscribers.length; + + + parent._onerror = null; + + _subscribers[length] = child; + _subscribers[length + FULFILLED] = onFulfillment; + _subscribers[length + REJECTED] = onRejection; + + if (length === 0 && parent._state) { + asap(publish, parent); + } + } + + function publish(promise) { + var subscribers = promise._subscribers; + var settled = promise._state; + + if (subscribers.length === 0) { + return; + } + + var child = void 0, + callback = void 0, + detail = promise._result; + + for (var i = 0; i < subscribers.length; i += 3) { + child = subscribers[i]; + callback = subscribers[i + settled]; + + if (child) { + invokeCallback(settled, child, callback, detail); + } else { + callback(detail); + } + } + + promise._subscribers.length = 0; + } + + function invokeCallback(settled, promise, callback, detail) { + var hasCallback = isFunction(callback), + value = void 0, + error = void 0, + succeeded = true; + + if (hasCallback) { + try { + value = callback(detail); + } catch (e) { + succeeded = false; + error = e; + } + + if (promise === value) { + reject(promise, cannotReturnOwn()); + return; + } + } else { + value = detail; + } + + if (promise._state !== PENDING) { + // noop + } else if (hasCallback && succeeded) { + resolve(promise, value); + } else if (succeeded === false) { + reject(promise, error); + } else if (settled === FULFILLED) { + fulfill(promise, value); + } else if (settled === REJECTED) { + reject(promise, value); + } + } + + function initializePromise(promise, resolver) { + try { + resolver(function resolvePromise(value) { + resolve(promise, value); + }, function rejectPromise(reason) { + reject(promise, reason); + }); + } catch (e) { + reject(promise, e); + } + } + + var id = 0; + function nextId() { + return id++; + } + + function makePromise(promise) { + promise[PROMISE_ID] = id++; + promise._state = undefined; + promise._result = undefined; + promise._subscribers = []; + } + + function validationError() { + return new Error('Array Methods must be provided an Array'); + } + + var Enumerator = function () { + function Enumerator(Constructor, input) { + classCallCheck(this, Enumerator); + + this._instanceConstructor = Constructor; + this.promise = new Constructor(noop); + + if (!this.promise[PROMISE_ID]) { + makePromise(this.promise); + } + + if (isArray(input)) { + this.length = input.length; + this._remaining = input.length; + + this._result = new Array(this.length); + + if (this.length === 0) { + fulfill(this.promise, this._result); + } else { + this.length = this.length || 0; + this._enumerate(input); + if (this._remaining === 0) { + fulfill(this.promise, this._result); + } + } + } else { + reject(this.promise, validationError()); + } + } + + createClass(Enumerator, [{ + key: '_enumerate', + value: function _enumerate(input) { + for (var i = 0; this._state === PENDING && i < input.length; i++) { + this._eachEntry(input[i], i); + } + } + }, { + key: '_eachEntry', + value: function _eachEntry(entry, i) { + var c = this._instanceConstructor; + var resolve$$1 = c.resolve; + + + if (resolve$$1 === resolve$1) { + var _then = void 0; + var error = void 0; + var didError = false; + try { + _then = entry.then; + } catch (e) { + didError = true; + error = e; + } + + if (_then === then && entry._state !== PENDING) { + this._settledAt(entry._state, i, entry._result); + } else if (typeof _then !== 'function') { + this._remaining--; + this._result[i] = entry; + } else if (c === Promise$2) { + var promise = new c(noop); + if (didError) { + reject(promise, error); + } else { + handleMaybeThenable(promise, entry, _then); + } + this._willSettleAt(promise, i); + } else { + this._willSettleAt(new c(function (resolve$$1) { + return resolve$$1(entry); + }), i); + } + } else { + this._willSettleAt(resolve$$1(entry), i); + } + } + }, { + key: '_settledAt', + value: function _settledAt(state, i, value) { + var promise = this.promise; + + + if (promise._state === PENDING) { + this._remaining--; + + if (state === REJECTED) { + reject(promise, value); + } else { + this._result[i] = value; + } + } + + if (this._remaining === 0) { + fulfill(promise, this._result); + } + } + }, { + key: '_willSettleAt', + value: function _willSettleAt(promise, i) { + var enumerator = this; + + subscribe(promise, undefined, function (value) { + return enumerator._settledAt(FULFILLED, i, value); + }, function (reason) { + return enumerator._settledAt(REJECTED, i, reason); + }); + } + }]); + return Enumerator; + }(); + + /** + `Promise.all` accepts an array of promises, and returns a new promise which + is fulfilled with an array of fulfillment values for the passed promises, or + rejected with the reason of the first passed promise to be rejected. It casts all + elements of the passed iterable to promises as it runs this algorithm. + + Example: + + ```javascript + let promise1 = resolve(1); + let promise2 = resolve(2); + let promise3 = resolve(3); + let promises = [ promise1, promise2, promise3 ]; + + Promise.all(promises).then(function(array){ + // The array here would be [ 1, 2, 3 ]; + }); + ``` + + If any of the `promises` given to `all` are rejected, the first promise + that is rejected will be given as an argument to the returned promises's + rejection handler. For example: + + Example: + + ```javascript + let promise1 = resolve(1); + let promise2 = reject(new Error("2")); + let promise3 = reject(new Error("3")); + let promises = [ promise1, promise2, promise3 ]; + + Promise.all(promises).then(function(array){ + // Code here never runs because there are rejected promises! + }, function(error) { + // error.message === "2" + }); + ``` + + @method all + @static + @param {Array} entries array of promises + @param {String} label optional string for labeling the promise. + Useful for tooling. + @return {Promise} promise that is fulfilled when all `promises` have been + fulfilled, or rejected if any of them become rejected. + @static + */ + function all(entries) { + return new Enumerator(this, entries).promise; + } + + /** + `Promise.race` returns a new promise which is settled in the same way as the + first passed promise to settle. + + Example: + + ```javascript + let promise1 = new Promise(function(resolve, reject){ + setTimeout(function(){ + resolve('promise 1'); + }, 200); + }); + + let promise2 = new Promise(function(resolve, reject){ + setTimeout(function(){ + resolve('promise 2'); + }, 100); + }); + + Promise.race([promise1, promise2]).then(function(result){ + // result === 'promise 2' because it was resolved before promise1 + // was resolved. + }); + ``` + + `Promise.race` is deterministic in that only the state of the first + settled promise matters. For example, even if other promises given to the + `promises` array argument are resolved, but the first settled promise has + become rejected before the other promises became fulfilled, the returned + promise will become rejected: + + ```javascript + let promise1 = new Promise(function(resolve, reject){ + setTimeout(function(){ + resolve('promise 1'); + }, 200); + }); + + let promise2 = new Promise(function(resolve, reject){ + setTimeout(function(){ + reject(new Error('promise 2')); + }, 100); + }); + + Promise.race([promise1, promise2]).then(function(result){ + // Code here never runs + }, function(reason){ + // reason.message === 'promise 2' because promise 2 became rejected before + // promise 1 became fulfilled + }); + ``` + + An example real-world use case is implementing timeouts: + + ```javascript + Promise.race([ajax('foo.json'), timeout(5000)]) + ``` + + @method race + @static + @param {Array} promises array of promises to observe + Useful for tooling. + @return {Promise} a promise which settles in the same way as the first passed + promise to settle. + */ + function race(entries) { + /*jshint validthis:true */ + var Constructor = this; + + if (!isArray(entries)) { + return new Constructor(function (_, reject) { + return reject(new TypeError('You must pass an array to race.')); + }); + } else { + return new Constructor(function (resolve, reject) { + var length = entries.length; + for (var i = 0; i < length; i++) { + Constructor.resolve(entries[i]).then(resolve, reject); + } + }); + } + } + + /** + `Promise.reject` returns a promise rejected with the passed `reason`. + It is shorthand for the following: + + ```javascript + let promise = new Promise(function(resolve, reject){ + reject(new Error('WHOOPS')); + }); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + Instead of writing the above, your code now simply becomes the following: + + ```javascript + let promise = Promise.reject(new Error('WHOOPS')); + + promise.then(function(value){ + // Code here doesn't run because the promise is rejected! + }, function(reason){ + // reason.message === 'WHOOPS' + }); + ``` + + @method reject + @static + @param {Any} reason value that the returned promise will be rejected with. + Useful for tooling. + @return {Promise} a promise rejected with the given `reason`. + */ + function reject$1(reason) { + /*jshint validthis:true */ + var Constructor = this; + var promise = new Constructor(noop); + reject(promise, reason); + return promise; + } + + function needsResolver() { + throw new TypeError('You must pass a resolver function as the first argument to the promise constructor'); + } + + function needsNew() { + throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); + } + + /** + Promise objects represent the eventual result of an asynchronous operation. The + primary way of interacting with a promise is through its `then` method, which + registers callbacks to receive either a promise's eventual value or the reason + why the promise cannot be fulfilled. + + Terminology + ----------- + + - `promise` is an object or function with a `then` method whose behavior conforms to this specification. + - `thenable` is an object or function that defines a `then` method. + - `value` is any legal JavaScript value (including undefined, a thenable, or a promise). + - `exception` is a value that is thrown using the throw statement. + - `reason` is a value that indicates why a promise was rejected. + - `settled` the final resting state of a promise, fulfilled or rejected. + + A promise can be in one of three states: pending, fulfilled, or rejected. + + Promises that are fulfilled have a fulfillment value and are in the fulfilled + state. Promises that are rejected have a rejection reason and are in the + rejected state. A fulfillment value is never a thenable. + + Promises can also be said to *resolve* a value. If this value is also a + promise, then the original promise's settled state will match the value's + settled state. So a promise that *resolves* a promise that rejects will + itself reject, and a promise that *resolves* a promise that fulfills will + itself fulfill. + + + Basic Usage: + ------------ + + ```js + let promise = new Promise(function(resolve, reject) { + // on success + resolve(value); + + // on failure + reject(reason); + }); + + promise.then(function(value) { + // on fulfillment + }, function(reason) { + // on rejection + }); + ``` + + Advanced Usage: + --------------- + + Promises shine when abstracting away asynchronous interactions such as + `XMLHttpRequest`s. + + ```js + function getJSON(url) { + return new Promise(function(resolve, reject){ + let xhr = new XMLHttpRequest(); + + xhr.open('GET', url); + xhr.onreadystatechange = handler; + xhr.responseType = 'json'; + xhr.setRequestHeader('Accept', 'application/json'); + xhr.send(); + + function handler() { + if (this.readyState === this.DONE) { + if (this.status === 200) { + resolve(this.response); + } else { + reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']')); + } + } + }; + }); + } + + getJSON('/posts.json').then(function(json) { + // on fulfillment + }, function(reason) { + // on rejection + }); + ``` + + Unlike callbacks, promises are great composable primitives. + + ```js + Promise.all([ + getJSON('/posts'), + getJSON('/comments') + ]).then(function(values){ + values[0] // => postsJSON + values[1] // => commentsJSON + + return values; + }); + ``` + + @class Promise + @param {Function} resolver + Useful for tooling. + @constructor + */ + + var Promise$2 = function () { + function Promise(resolver) { + classCallCheck(this, Promise); + + this[PROMISE_ID] = nextId(); + this._result = this._state = undefined; + this._subscribers = []; + + if (noop !== resolver) { + typeof resolver !== 'function' && needsResolver(); + this instanceof Promise ? initializePromise(this, resolver) : needsNew(); + } + } + + /** + The primary way of interacting with a promise is through its `then` method, + which registers callbacks to receive either a promise's eventual value or the + reason why the promise cannot be fulfilled. + ```js + findUser().then(function(user){ + // user is available + }, function(reason){ + // user is unavailable, and you are given the reason why + }); + ``` + Chaining + -------- + The return value of `then` is itself a promise. This second, 'downstream' + promise is resolved with the return value of the first promise's fulfillment + or rejection handler, or rejected if the handler throws an exception. + ```js + findUser().then(function (user) { + return user.name; + }, function (reason) { + return 'default name'; + }).then(function (userName) { + // If `findUser` fulfilled, `userName` will be the user's name, otherwise it + // will be `'default name'` + }); + findUser().then(function (user) { + throw new Error('Found user, but still unhappy'); + }, function (reason) { + throw new Error('`findUser` rejected and we're unhappy'); + }).then(function (value) { + // never reached + }, function (reason) { + // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'. + // If `findUser` rejected, `reason` will be '`findUser` rejected and we're unhappy'. + }); + ``` + If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream. + ```js + findUser().then(function (user) { + throw new PedagogicalException('Upstream error'); + }).then(function (value) { + // never reached + }).then(function (value) { + // never reached + }, function (reason) { + // The `PedgagocialException` is propagated all the way down to here + }); + ``` + Assimilation + ------------ + Sometimes the value you want to propagate to a downstream promise can only be + retrieved asynchronously. This can be achieved by returning a promise in the + fulfillment or rejection handler. The downstream promise will then be pending + until the returned promise is settled. This is called *assimilation*. + ```js + findUser().then(function (user) { + return findCommentsByAuthor(user); + }).then(function (comments) { + // The user's comments are now available + }); + ``` + If the assimliated promise rejects, then the downstream promise will also reject. + ```js + findUser().then(function (user) { + return findCommentsByAuthor(user); + }).then(function (comments) { + // If `findCommentsByAuthor` fulfills, we'll have the value here + }, function (reason) { + // If `findCommentsByAuthor` rejects, we'll have the reason here + }); + ``` + Simple Example + -------------- + Synchronous Example + ```javascript + let result; + try { + result = findResult(); + // success + } catch(reason) { + // failure + } + ``` + Errback Example + ```js + findResult(function(result, err){ + if (err) { + // failure + } else { + // success + } + }); + ``` + Promise Example; + ```javascript + findResult().then(function(result){ + // success + }, function(reason){ + // failure + }); + ``` + Advanced Example + -------------- + Synchronous Example + ```javascript + let author, books; + try { + author = findAuthor(); + books = findBooksByAuthor(author); + // success + } catch(reason) { + // failure + } + ``` + Errback Example + ```js + function foundBooks(books) { + } + function failure(reason) { + } + findAuthor(function(author, err){ + if (err) { + failure(err); + // failure + } else { + try { + findBoooksByAuthor(author, function(books, err) { + if (err) { + failure(err); + } else { + try { + foundBooks(books); + } catch(reason) { + failure(reason); + } + } + }); + } catch(error) { + failure(err); + } + // success + } + }); + ``` + Promise Example; + ```javascript + findAuthor(). + then(findBooksByAuthor). + then(function(books){ + // found books + }).catch(function(reason){ + // something went wrong + }); + ``` + @method then + @param {Function} onFulfilled + @param {Function} onRejected + Useful for tooling. + @return {Promise} + */ + + /** + `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same + as the catch block of a try/catch statement. + ```js + function findAuthor(){ + throw new Error('couldn't find that author'); + } + // synchronous + try { + findAuthor(); + } catch(reason) { + // something went wrong + } + // async with promises + findAuthor().catch(function(reason){ + // something went wrong + }); + ``` + @method catch + @param {Function} onRejection + Useful for tooling. + @return {Promise} + */ + + + createClass(Promise, [{ + key: 'catch', + value: function _catch(onRejection) { + return this.then(null, onRejection); + } + + /** + `finally` will be invoked regardless of the promise's fate just as native + try/catch/finally behaves + + Synchronous example: + + ```js + findAuthor() { + if (Math.random() > 0.5) { + throw new Error(); + } + return new Author(); + } + + try { + return findAuthor(); // succeed or fail + } catch(error) { + return findOtherAuther(); + } finally { + // always runs + // doesn't affect the return value + } + ``` + + Asynchronous example: + + ```js + findAuthor().catch(function(reason){ + return findOtherAuther(); + }).finally(function(){ + // author was either found, or not + }); + ``` + + @method finally + @param {Function} callback + @return {Promise} + */ + + }, { + key: 'finally', + value: function _finally(callback) { + var promise = this; + var constructor = promise.constructor; + + if (isFunction(callback)) { + return promise.then(function (value) { + return constructor.resolve(callback()).then(function () { + return value; + }); + }, function (reason) { + return constructor.resolve(callback()).then(function () { + throw reason; + }); + }); + } + + return promise.then(callback, callback); + } + }]); + return Promise; + }(); + + Promise$2.prototype.then = then; + Promise$2.all = all; + Promise$2.race = race; + Promise$2.resolve = resolve$1; + Promise$2.reject = reject$1; + Promise$2._setScheduler = setScheduler; + Promise$2._setAsap = setAsap; + Promise$2._asap = asap; + + /*global self*/ + function polyfill() { + var local = void 0; + + if (typeof global !== 'undefined') { + local = global; + } else if (typeof self !== 'undefined') { + local = self; + } else { + try { + local = Function('return this')(); + } catch (e) { + throw new Error('polyfill failed because global object is unavailable in this environment'); + } + } + + var P = local.Promise; + + if (P) { + var promiseToString = null; + try { + promiseToString = Object.prototype.toString.call(P.resolve()); + } catch (e) { + // silently ignored + } + + if (promiseToString === '[object Promise]' && !P.cast) { + return; + } + } + + local.Promise = Promise$2; + } + + // Strange compat.. + Promise$2.polyfill = polyfill; + Promise$2.Promise = Promise$2; + + var Promise$1 = typeof Promise !== "undefined" ? Promise : Promise$2; + + // Register logging callbacks + function registerLoggingCallbacks(obj) { + var i, + l, + key, + callbackNames = ["begin", "done", "log", "testStart", "testDone", "moduleStart", "moduleDone"]; + + function registerLoggingCallback(key) { + var loggingCallback = function loggingCallback(callback) { + if (objectType(callback) !== "function") { + throw new Error("QUnit logging methods require a callback function as their first parameters."); + } + + config.callbacks[key].push(callback); + }; + + return loggingCallback; + } + + for (i = 0, l = callbackNames.length; i < l; i++) { + key = callbackNames[i]; + + // Initialize key collection of logging callback + if (objectType(config.callbacks[key]) === "undefined") { + config.callbacks[key] = []; + } + + obj[key] = registerLoggingCallback(key); + } + } + + function runLoggingCallbacks(key, args) { + var callbacks = config.callbacks[key]; + + // Handling 'log' callbacks separately. Unlike the other callbacks, + // the log callback is not controlled by the processing queue, + // but rather used by asserts. Hence to promisfy the 'log' callback + // would mean promisfying each step of a test + if (key === "log") { + callbacks.map(function (callback) { + return callback(args); + }); + return; + } + + // ensure that each callback is executed serially + return callbacks.reduce(function (promiseChain, callback) { + return promiseChain.then(function () { + return Promise$1.resolve(callback(args)); + }); + }, Promise$1.resolve([])); + } + + // Doesn't support IE9, it will return undefined on these browsers + // See also https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack + var fileName = (sourceFromStacktrace(0) || "").replace(/(:\d+)+\)?/, "").replace(/.+\//, ""); + + function extractStacktrace(e, offset) { + offset = offset === undefined ? 4 : offset; + + var stack, include, i; + + if (e && e.stack) { + stack = e.stack.split("\n"); + if (/^error$/i.test(stack[0])) { + stack.shift(); + } + if (fileName) { + include = []; + for (i = offset; i < stack.length; i++) { + if (stack[i].indexOf(fileName) !== -1) { + break; + } + include.push(stack[i]); + } + if (include.length) { + return include.join("\n"); + } + } + return stack[offset]; + } + } + + function sourceFromStacktrace(offset) { + var error = new Error(); + + // Support: Safari <=7 only, IE <=10 - 11 only + // Not all browsers generate the `stack` property for `new Error()`, see also #636 + if (!error.stack) { + try { + throw error; + } catch (err) { + error = err; + } + } + + return extractStacktrace(error, offset); + } + + var priorityCount = 0; + var unitSampler = void 0; + + // This is a queue of functions that are tasks within a single test. + // After tests are dequeued from config.queue they are expanded into + // a set of tasks in this queue. + var taskQueue = []; + + /** + * Advances the taskQueue to the next task. If the taskQueue is empty, + * process the testQueue + */ + function advance() { + advanceTaskQueue(); + + if (!taskQueue.length && !config.blocking && !config.current) { + advanceTestQueue(); + } + } + + /** + * Advances the taskQueue with an increased depth + */ + function advanceTaskQueue() { + var start = now(); + config.depth = (config.depth || 0) + 1; + + processTaskQueue(start); + + config.depth--; + } + + /** + * Process the first task on the taskQueue as a promise. + * Each task is a function returned by https://github.com/qunitjs/qunit/blob/master/src/test.js#L381 + */ + function processTaskQueue(start) { + if (taskQueue.length && !config.blocking) { + var elapsedTime = now() - start; + + if (!defined.setTimeout || config.updateRate <= 0 || elapsedTime < config.updateRate) { + var task = taskQueue.shift(); + Promise$1.resolve(task()).then(function () { + if (!taskQueue.length) { + advance(); + } else { + processTaskQueue(start); + } + }); + } else { + setTimeout$1(advance); + } + } + } + + /** + * Advance the testQueue to the next test to process. Call done() if testQueue completes. + */ + function advanceTestQueue() { + if (!config.blocking && !config.queue.length && config.depth === 0) { + done(); + return; + } + + var testTasks = config.queue.shift(); + addToTaskQueue(testTasks()); + + if (priorityCount > 0) { + priorityCount--; + } + + advance(); + } + + /** + * Enqueue the tasks for a test into the task queue. + * @param {Array} tasksArray + */ + function addToTaskQueue(tasksArray) { + taskQueue.push.apply(taskQueue, toConsumableArray(tasksArray)); + } + + /** + * Return the number of tasks remaining in the task queue to be processed. + * @return {Number} + */ + function taskQueueLength() { + return taskQueue.length; + } + + /** + * Adds a test to the TestQueue for execution. + * @param {Function} testTasksFunc + * @param {Boolean} prioritize + * @param {String} seed + */ + function addToTestQueue(testTasksFunc, prioritize, seed) { + if (prioritize) { + config.queue.splice(priorityCount++, 0, testTasksFunc); + } else if (seed) { + if (!unitSampler) { + unitSampler = unitSamplerGenerator(seed); + } + + // Insert into a random position after all prioritized items + var index = Math.floor(unitSampler() * (config.queue.length - priorityCount + 1)); + config.queue.splice(priorityCount + index, 0, testTasksFunc); + } else { + config.queue.push(testTasksFunc); + } + } + + /** + * Creates a seeded "sample" generator which is used for randomizing tests. + */ + function unitSamplerGenerator(seed) { + + // 32-bit xorshift, requires only a nonzero seed + // http://excamera.com/sphinx/article-xorshift.html + var sample = parseInt(generateHash(seed), 16) || -1; + return function () { + sample ^= sample << 13; + sample ^= sample >>> 17; + sample ^= sample << 5; + + // ECMAScript has no unsigned number type + if (sample < 0) { + sample += 0x100000000; + } + + return sample / 0x100000000; + }; + } + + /** + * This function is called when the ProcessingQueue is done processing all + * items. It handles emitting the final run events. + */ + function done() { + var storage = config.storage; + + ProcessingQueue.finished = true; + + var runtime = now() - config.started; + var passed = config.stats.all - config.stats.bad; + + if (config.stats.all === 0) { + + if (config.filter && config.filter.length) { + throw new Error("No tests matched the filter \"" + config.filter + "\"."); + } + + if (config.module && config.module.length) { + throw new Error("No tests matched the module \"" + config.module + "\"."); + } + + if (config.moduleId && config.moduleId.length) { + throw new Error("No tests matched the moduleId \"" + config.moduleId + "\"."); + } + + if (config.testId && config.testId.length) { + throw new Error("No tests matched the testId \"" + config.testId + "\"."); + } + + throw new Error("No tests were run."); + } + + emit("runEnd", globalSuite.end(true)); + runLoggingCallbacks("done", { + passed: passed, + failed: config.stats.bad, + total: config.stats.all, + runtime: runtime + }).then(function () { + + // Clear own storage items if all tests passed + if (storage && config.stats.bad === 0) { + for (var i = storage.length - 1; i >= 0; i--) { + var key = storage.key(i); + + if (key.indexOf("qunit-test-") === 0) { + storage.removeItem(key); + } + } + } + }); + } + + var ProcessingQueue = { + finished: false, + add: addToTestQueue, + advance: advance, + taskCount: taskQueueLength + }; + + var TestReport = function () { + function TestReport(name, suite, options) { + classCallCheck(this, TestReport); + + this.name = name; + this.suiteName = suite.name; + this.fullName = suite.fullName.concat(name); + this.runtime = 0; + this.assertions = []; + + this.skipped = !!options.skip; + this.todo = !!options.todo; + + this.valid = options.valid; + + this._startTime = 0; + this._endTime = 0; + + suite.pushTest(this); + } + + createClass(TestReport, [{ + key: "start", + value: function start(recordTime) { + if (recordTime) { + this._startTime = performanceNow(); + if (performance) { + performance.mark("qunit_test_start"); + } + } + + return { + name: this.name, + suiteName: this.suiteName, + fullName: this.fullName.slice() + }; + } + }, { + key: "end", + value: function end(recordTime) { + if (recordTime) { + this._endTime = performanceNow(); + if (performance) { + performance.mark("qunit_test_end"); + + var testName = this.fullName.join(" – "); + + measure("QUnit Test: " + testName, "qunit_test_start", "qunit_test_end"); + } + } + + return extend(this.start(), { + runtime: this.getRuntime(), + status: this.getStatus(), + errors: this.getFailedAssertions(), + assertions: this.getAssertions() + }); + } + }, { + key: "pushAssertion", + value: function pushAssertion(assertion) { + this.assertions.push(assertion); + } + }, { + key: "getRuntime", + value: function getRuntime() { + return this._endTime - this._startTime; + } + }, { + key: "getStatus", + value: function getStatus() { + if (this.skipped) { + return "skipped"; + } + + var testPassed = this.getFailedAssertions().length > 0 ? this.todo : !this.todo; + + if (!testPassed) { + return "failed"; + } else if (this.todo) { + return "todo"; + } else { + return "passed"; + } + } + }, { + key: "getFailedAssertions", + value: function getFailedAssertions() { + return this.assertions.filter(function (assertion) { + return !assertion.passed; + }); + } + }, { + key: "getAssertions", + value: function getAssertions() { + return this.assertions.slice(); + } + + // Remove actual and expected values from assertions. This is to prevent + // leaking memory throughout a test suite. + + }, { + key: "slimAssertions", + value: function slimAssertions() { + this.assertions = this.assertions.map(function (assertion) { + delete assertion.actual; + delete assertion.expected; + return assertion; + }); + } + }]); + return TestReport; + }(); + + var focused$1 = false; + + function Test(settings) { + var i, l; + + ++Test.count; + + this.expected = null; + this.assertions = []; + this.semaphore = 0; + this.module = config.currentModule; + this.steps = []; + this.timeout = undefined; + this.errorForStack = new Error(); + + // If a module is skipped, all its tests and the tests of the child suites + // should be treated as skipped even if they are defined as `only` or `todo`. + // As for `todo` module, all its tests will be treated as `todo` except for + // tests defined as `skip` which will be left intact. + // + // So, if a test is defined as `todo` and is inside a skipped module, we should + // then treat that test as if was defined as `skip`. + if (this.module.skip) { + settings.skip = true; + settings.todo = false; + + // Skipped tests should be left intact + } else if (this.module.todo && !settings.skip) { + settings.todo = true; + } + + extend(this, settings); + + this.testReport = new TestReport(settings.testName, this.module.suiteReport, { + todo: settings.todo, + skip: settings.skip, + valid: this.valid() + }); + + // Register unique strings + for (i = 0, l = this.module.tests; i < l.length; i++) { + if (this.module.tests[i].name === this.testName) { + this.testName += " "; + } + } + + this.testId = generateHash(this.module.name, this.testName); + + this.module.tests.push({ + name: this.testName, + testId: this.testId, + skip: !!settings.skip + }); + + if (settings.skip) { + + // Skipped tests will fully ignore any sent callback + this.callback = function () {}; + this.async = false; + this.expected = 0; + } else { + if (typeof this.callback !== "function") { + var method = this.todo ? "todo" : "test"; + + // eslint-disable-next-line max-len + throw new TypeError("You must provide a function as a test callback to QUnit." + method + "(\"" + settings.testName + "\")"); + } + + this.assert = new Assert(this); + } + } + + Test.count = 0; + + function getNotStartedModules(startModule) { + var module = startModule, + modules = []; + + while (module && module.testsRun === 0) { + modules.push(module); + module = module.parentModule; + } + + // The above push modules from the child to the parent + // return a reversed order with the top being the top most parent module + return modules.reverse(); + } + + Test.prototype = { + + // generating a stack trace can be expensive, so using a getter defers this until we need it + get stack() { + return extractStacktrace(this.errorForStack, 2); + }, + + before: function before() { + var _this = this; + + var module = this.module, + notStartedModules = getNotStartedModules(module); + + // ensure the callbacks are executed serially for each module + var callbackPromises = notStartedModules.reduce(function (promiseChain, startModule) { + return promiseChain.then(function () { + startModule.stats = { all: 0, bad: 0, started: now() }; + emit("suiteStart", startModule.suiteReport.start(true)); + return runLoggingCallbacks("moduleStart", { + name: startModule.name, + tests: startModule.tests + }); + }); + }, Promise$1.resolve([])); + + return callbackPromises.then(function () { + config.current = _this; + + _this.testEnvironment = extend({}, module.testEnvironment); + + _this.started = now(); + emit("testStart", _this.testReport.start(true)); + return runLoggingCallbacks("testStart", { + name: _this.testName, + module: module.name, + testId: _this.testId, + previousFailure: _this.previousFailure + }).then(function () { + if (!config.pollution) { + saveGlobal(); + } + }); + }); + }, + + run: function run() { + var promise; + + config.current = this; + + this.callbackStarted = now(); + + if (config.notrycatch) { + runTest(this); + return; + } + + try { + runTest(this); + } catch (e) { + this.pushFailure("Died on test #" + (this.assertions.length + 1) + " " + this.stack + ": " + (e.message || e), extractStacktrace(e, 0)); + + // Else next test will carry the responsibility + saveGlobal(); + + // Restart the tests if they're blocking + if (config.blocking) { + internalRecover(this); + } + } + + function runTest(test) { + promise = test.callback.call(test.testEnvironment, test.assert); + test.resolvePromise(promise); + + // If the test has a "lock" on it, but the timeout is 0, then we push a + // failure as the test should be synchronous. + if (test.timeout === 0 && test.semaphore !== 0) { + pushFailure("Test did not finish synchronously even though assert.timeout( 0 ) was used.", sourceFromStacktrace(2)); + } + } + }, + + after: function after() { + checkPollution(); + }, + + queueHook: function queueHook(hook, hookName, hookOwner) { + var _this2 = this; + + var callHook = function callHook() { + var promise = hook.call(_this2.testEnvironment, _this2.assert); + _this2.resolvePromise(promise, hookName); + }; + + var runHook = function runHook() { + if (hookName === "before") { + if (hookOwner.unskippedTestsRun !== 0) { + return; + } + + _this2.preserveEnvironment = true; + } + + // The 'after' hook should only execute when there are not tests left and + // when the 'after' and 'finish' tasks are the only tasks left to process + if (hookName === "after" && hookOwner.unskippedTestsRun !== numberOfUnskippedTests(hookOwner) - 1 && (config.queue.length > 0 || ProcessingQueue.taskCount() > 2)) { + return; + } + + config.current = _this2; + if (config.notrycatch) { + callHook(); + return; + } + try { + callHook(); + } catch (error) { + _this2.pushFailure(hookName + " failed on " + _this2.testName + ": " + (error.message || error), extractStacktrace(error, 0)); + } + }; + + return runHook; + }, + + + // Currently only used for module level hooks, can be used to add global level ones + hooks: function hooks(handler) { + var hooks = []; + + function processHooks(test, module) { + if (module.parentModule) { + processHooks(test, module.parentModule); + } + + if (module.hooks[handler].length) { + for (var i = 0; i < module.hooks[handler].length; i++) { + hooks.push(test.queueHook(module.hooks[handler][i], handler, module)); + } + } + } + + // Hooks are ignored on skipped tests + if (!this.skip) { + processHooks(this, this.module); + } + + return hooks; + }, + + + finish: function finish() { + config.current = this; + + // Release the test callback to ensure that anything referenced has been + // released to be garbage collected. + this.callback = undefined; + + if (this.steps.length) { + var stepsList = this.steps.join(", "); + this.pushFailure("Expected assert.verifySteps() to be called before end of test " + ("after using assert.step(). Unverified steps: " + stepsList), this.stack); + } + + if (config.requireExpects && this.expected === null) { + this.pushFailure("Expected number of assertions to be defined, but expect() was " + "not called.", this.stack); + } else if (this.expected !== null && this.expected !== this.assertions.length) { + this.pushFailure("Expected " + this.expected + " assertions, but " + this.assertions.length + " were run", this.stack); + } else if (this.expected === null && !this.assertions.length) { + this.pushFailure("Expected at least one assertion, but none were run - call " + "expect(0) to accept zero assertions.", this.stack); + } + + var i, + module = this.module, + moduleName = module.name, + testName = this.testName, + skipped = !!this.skip, + todo = !!this.todo, + bad = 0, + storage = config.storage; + + this.runtime = now() - this.started; + + config.stats.all += this.assertions.length; + module.stats.all += this.assertions.length; + + for (i = 0; i < this.assertions.length; i++) { + if (!this.assertions[i].result) { + bad++; + config.stats.bad++; + module.stats.bad++; + } + } + + notifyTestsRan(module, skipped); + + // Store result when possible + if (storage) { + if (bad) { + storage.setItem("qunit-test-" + moduleName + "-" + testName, bad); + } else { + storage.removeItem("qunit-test-" + moduleName + "-" + testName); + } + } + + // After emitting the js-reporters event we cleanup the assertion data to + // avoid leaking it. It is not used by the legacy testDone callbacks. + emit("testEnd", this.testReport.end(true)); + this.testReport.slimAssertions(); + var test = this; + + return runLoggingCallbacks("testDone", { + name: testName, + module: moduleName, + skipped: skipped, + todo: todo, + failed: bad, + passed: this.assertions.length - bad, + total: this.assertions.length, + runtime: skipped ? 0 : this.runtime, + + // HTML Reporter use + assertions: this.assertions, + testId: this.testId, + + // Source of Test + // generating stack trace is expensive, so using a getter will help defer this until we need it + get source() { + return test.stack; + } + }).then(function () { + if (module.testsRun === numberOfTests(module)) { + var completedModules = [module]; + + // Check if the parent modules, iteratively, are done. If that the case, + // we emit the `suiteEnd` event and trigger `moduleDone` callback. + var parent = module.parentModule; + while (parent && parent.testsRun === numberOfTests(parent)) { + completedModules.push(parent); + parent = parent.parentModule; + } + + return completedModules.reduce(function (promiseChain, completedModule) { + return promiseChain.then(function () { + return logSuiteEnd(completedModule); + }); + }, Promise$1.resolve([])); + } + }).then(function () { + config.current = undefined; + }); + + function logSuiteEnd(module) { + + // Reset `module.hooks` to ensure that anything referenced in these hooks + // has been released to be garbage collected. + module.hooks = {}; + + emit("suiteEnd", module.suiteReport.end(true)); + return runLoggingCallbacks("moduleDone", { + name: module.name, + tests: module.tests, + failed: module.stats.bad, + passed: module.stats.all - module.stats.bad, + total: module.stats.all, + runtime: now() - module.stats.started + }); + } + }, + + preserveTestEnvironment: function preserveTestEnvironment() { + if (this.preserveEnvironment) { + this.module.testEnvironment = this.testEnvironment; + this.testEnvironment = extend({}, this.module.testEnvironment); + } + }, + + queue: function queue() { + var test = this; + + if (!this.valid()) { + return; + } + + function runTest() { + return [function () { + return test.before(); + }].concat(toConsumableArray(test.hooks("before")), [function () { + test.preserveTestEnvironment(); + }], toConsumableArray(test.hooks("beforeEach")), [function () { + test.run(); + }], toConsumableArray(test.hooks("afterEach").reverse()), toConsumableArray(test.hooks("after").reverse()), [function () { + test.after(); + }, function () { + return test.finish(); + }]); + } + + var previousFailCount = config.storage && +config.storage.getItem("qunit-test-" + this.module.name + "-" + this.testName); + + // Prioritize previously failed tests, detected from storage + var prioritize = config.reorder && !!previousFailCount; + + this.previousFailure = !!previousFailCount; + + ProcessingQueue.add(runTest, prioritize, config.seed); + + // If the queue has already finished, we manually process the new test + if (ProcessingQueue.finished) { + ProcessingQueue.advance(); + } + }, + + + pushResult: function pushResult(resultInfo) { + if (this !== config.current) { + throw new Error("Assertion occurred after test had finished."); + } + + // Destructure of resultInfo = { result, actual, expected, message, negative } + var source, + details = { + module: this.module.name, + name: this.testName, + result: resultInfo.result, + message: resultInfo.message, + actual: resultInfo.actual, + testId: this.testId, + negative: resultInfo.negative || false, + runtime: now() - this.started, + todo: !!this.todo + }; + + if (hasOwn.call(resultInfo, "expected")) { + details.expected = resultInfo.expected; + } + + if (!resultInfo.result) { + source = resultInfo.source || sourceFromStacktrace(); + + if (source) { + details.source = source; + } + } + + this.logAssertion(details); + + this.assertions.push({ + result: !!resultInfo.result, + message: resultInfo.message + }); + }, + + pushFailure: function pushFailure(message, source, actual) { + if (!(this instanceof Test)) { + throw new Error("pushFailure() assertion outside test context, was " + sourceFromStacktrace(2)); + } + + this.pushResult({ + result: false, + message: message || "error", + actual: actual || null, + source: source + }); + }, + + /** + * Log assertion details using both the old QUnit.log interface and + * QUnit.on( "assertion" ) interface. + * + * @private + */ + logAssertion: function logAssertion(details) { + runLoggingCallbacks("log", details); + + var assertion = { + passed: details.result, + actual: details.actual, + expected: details.expected, + message: details.message, + stack: details.source, + todo: details.todo + }; + this.testReport.pushAssertion(assertion); + emit("assertion", assertion); + }, + + + resolvePromise: function resolvePromise(promise, phase) { + var then, + resume, + message, + test = this; + if (promise != null) { + then = promise.then; + if (objectType(then) === "function") { + resume = internalStop(test); + if (config.notrycatch) { + then.call(promise, function () { + resume(); + }); + } else { + then.call(promise, function () { + resume(); + }, function (error) { + message = "Promise rejected " + (!phase ? "during" : phase.replace(/Each$/, "")) + " \"" + test.testName + "\": " + (error && error.message || error); + test.pushFailure(message, extractStacktrace(error, 0)); + + // Else next test will carry the responsibility + saveGlobal(); + + // Unblock + internalRecover(test); + }); + } + } + } + }, + + valid: function valid() { + var filter = config.filter, + regexFilter = /^(!?)\/([\w\W]*)\/(i?$)/.exec(filter), + module = config.module && config.module.toLowerCase(), + fullName = this.module.name + ": " + this.testName; + + function moduleChainNameMatch(testModule) { + var testModuleName = testModule.name ? testModule.name.toLowerCase() : null; + if (testModuleName === module) { + return true; + } else if (testModule.parentModule) { + return moduleChainNameMatch(testModule.parentModule); + } else { + return false; + } + } + + function moduleChainIdMatch(testModule) { + return inArray(testModule.moduleId, config.moduleId) || testModule.parentModule && moduleChainIdMatch(testModule.parentModule); + } + + // Internally-generated tests are always valid + if (this.callback && this.callback.validTest) { + return true; + } + + if (config.moduleId && config.moduleId.length > 0 && !moduleChainIdMatch(this.module)) { + + return false; + } + + if (config.testId && config.testId.length > 0 && !inArray(this.testId, config.testId)) { + + return false; + } + + if (module && !moduleChainNameMatch(this.module)) { + return false; + } + + if (!filter) { + return true; + } + + return regexFilter ? this.regexFilter(!!regexFilter[1], regexFilter[2], regexFilter[3], fullName) : this.stringFilter(filter, fullName); + }, + + regexFilter: function regexFilter(exclude, pattern, flags, fullName) { + var regex = new RegExp(pattern, flags); + var match = regex.test(fullName); + + return match !== exclude; + }, + + stringFilter: function stringFilter(filter, fullName) { + filter = filter.toLowerCase(); + fullName = fullName.toLowerCase(); + + var include = filter.charAt(0) !== "!"; + if (!include) { + filter = filter.slice(1); + } + + // If the filter matches, we need to honour include + if (fullName.indexOf(filter) !== -1) { + return include; + } + + // Otherwise, do the opposite + return !include; + } + }; + + function pushFailure() { + if (!config.current) { + throw new Error("pushFailure() assertion outside test context, in " + sourceFromStacktrace(2)); + } + + // Gets current test obj + var currentTest = config.current; + + return currentTest.pushFailure.apply(currentTest, arguments); + } + + function saveGlobal() { + config.pollution = []; + + if (config.noglobals) { + for (var key in global$1) { + if (hasOwn.call(global$1, key)) { + + // In Opera sometimes DOM element ids show up here, ignore them + if (/^qunit-test-output/.test(key)) { + continue; + } + config.pollution.push(key); + } + } + } + } + + function checkPollution() { + var newGlobals, + deletedGlobals, + old = config.pollution; + + saveGlobal(); + + newGlobals = diff(config.pollution, old); + if (newGlobals.length > 0) { + pushFailure("Introduced global variable(s): " + newGlobals.join(", ")); + } + + deletedGlobals = diff(old, config.pollution); + if (deletedGlobals.length > 0) { + pushFailure("Deleted global variable(s): " + deletedGlobals.join(", ")); + } + } + + // Will be exposed as QUnit.test + function test(testName, callback) { + if (focused$1) { + return; + } + + var newTest = new Test({ + testName: testName, + callback: callback + }); + + newTest.queue(); + } + + function todo(testName, callback) { + if (focused$1) { + return; + } + + var newTest = new Test({ + testName: testName, + callback: callback, + todo: true + }); + + newTest.queue(); + } + + // Will be exposed as QUnit.skip + function skip(testName) { + if (focused$1) { + return; + } + + var test = new Test({ + testName: testName, + skip: true + }); + + test.queue(); + } + + // Will be exposed as QUnit.only + function only(testName, callback) { + if (!focused$1) { + config.queue.length = 0; + focused$1 = true; + } + + var newTest = new Test({ + testName: testName, + callback: callback + }); + + newTest.queue(); + } + + // Resets config.timeout with a new timeout duration. + function resetTestTimeout(timeoutDuration) { + clearTimeout(config.timeout); + config.timeout = setTimeout$1(config.timeoutHandler(timeoutDuration), timeoutDuration); + } + + // Put a hold on processing and return a function that will release it. + function internalStop(test) { + var released = false; + test.semaphore += 1; + config.blocking = true; + + // Set a recovery timeout, if so configured. + if (defined.setTimeout) { + var timeoutDuration = void 0; + + if (typeof test.timeout === "number") { + timeoutDuration = test.timeout; + } else if (typeof config.testTimeout === "number") { + timeoutDuration = config.testTimeout; + } + + if (typeof timeoutDuration === "number" && timeoutDuration > 0) { + clearTimeout(config.timeout); + config.timeoutHandler = function (timeout) { + return function () { + pushFailure("Test took longer than " + timeout + "ms; test timed out.", sourceFromStacktrace(2)); + released = true; + internalRecover(test); + }; + }; + config.timeout = setTimeout$1(config.timeoutHandler(timeoutDuration), timeoutDuration); + } + } + + return function resume() { + if (released) { + return; + } + + released = true; + test.semaphore -= 1; + internalStart(test); + }; + } + + // Forcefully release all processing holds. + function internalRecover(test) { + test.semaphore = 0; + internalStart(test); + } + + // Release a processing hold, scheduling a resumption attempt if no holds remain. + function internalStart(test) { + + // If semaphore is non-numeric, throw error + if (isNaN(test.semaphore)) { + test.semaphore = 0; + + pushFailure("Invalid value on test.semaphore", sourceFromStacktrace(2)); + return; + } + + // Don't start until equal number of stop-calls + if (test.semaphore > 0) { + return; + } + + // Throw an Error if start is called more often than stop + if (test.semaphore < 0) { + test.semaphore = 0; + + pushFailure("Tried to restart test while already started (test's semaphore was 0 already)", sourceFromStacktrace(2)); + return; + } + + // Add a slight delay to allow more assertions etc. + if (defined.setTimeout) { + if (config.timeout) { + clearTimeout(config.timeout); + } + config.timeout = setTimeout$1(function () { + if (test.semaphore > 0) { + return; + } + + if (config.timeout) { + clearTimeout(config.timeout); + } + + begin(); + }); + } else { + begin(); + } + } + + function collectTests(module) { + var tests = [].concat(module.tests); + var modules = [].concat(toConsumableArray(module.childModules)); + + // Do a breadth-first traversal of the child modules + while (modules.length) { + var nextModule = modules.shift(); + tests.push.apply(tests, nextModule.tests); + modules.push.apply(modules, toConsumableArray(nextModule.childModules)); + } + + return tests; + } + + function numberOfTests(module) { + return collectTests(module).length; + } + + function numberOfUnskippedTests(module) { + return collectTests(module).filter(function (test) { + return !test.skip; + }).length; + } + + function notifyTestsRan(module, skipped) { + module.testsRun++; + if (!skipped) { + module.unskippedTestsRun++; + } + while (module = module.parentModule) { + module.testsRun++; + if (!skipped) { + module.unskippedTestsRun++; + } + } + } + + var Assert = function () { + function Assert(testContext) { + classCallCheck(this, Assert); + + this.test = testContext; + } + + // Assert helpers + + createClass(Assert, [{ + key: "timeout", + value: function timeout(duration) { + if (typeof duration !== "number") { + throw new Error("You must pass a number as the duration to assert.timeout"); + } + + this.test.timeout = duration; + + // If a timeout has been set, clear it and reset with the new duration + if (config.timeout) { + clearTimeout(config.timeout); + + if (config.timeoutHandler && this.test.timeout > 0) { + resetTestTimeout(this.test.timeout); + } + } + } + + // Documents a "step", which is a string value, in a test as a passing assertion + + }, { + key: "step", + value: function step(message) { + var assertionMessage = message; + var result = !!message; + + this.test.steps.push(message); + + if (objectType(message) === "undefined" || message === "") { + assertionMessage = "You must provide a message to assert.step"; + } else if (objectType(message) !== "string") { + assertionMessage = "You must provide a string value to assert.step"; + result = false; + } + + this.pushResult({ + result: result, + message: assertionMessage + }); + } + + // Verifies the steps in a test match a given array of string values + + }, { + key: "verifySteps", + value: function verifySteps(steps, message) { + + // Since the steps array is just string values, we can clone with slice + var actualStepsClone = this.test.steps.slice(); + this.deepEqual(actualStepsClone, steps, message); + this.test.steps.length = 0; + } + + // Specify the number of expected assertions to guarantee that failed test + // (no assertions are run at all) don't slip through. + + }, { + key: "expect", + value: function expect(asserts) { + if (arguments.length === 1) { + this.test.expected = asserts; + } else { + return this.test.expected; + } + } + + // Put a hold on processing and return a function that will release it a maximum of once. + + }, { + key: "async", + value: function async(count) { + var test$$1 = this.test; + + var popped = false, + acceptCallCount = count; + + if (typeof acceptCallCount === "undefined") { + acceptCallCount = 1; + } + + var resume = internalStop(test$$1); + + return function done() { + if (config.current !== test$$1) { + throw Error("assert.async callback called after test finished."); + } + + if (popped) { + test$$1.pushFailure("Too many calls to the `assert.async` callback", sourceFromStacktrace(2)); + return; + } + + acceptCallCount -= 1; + if (acceptCallCount > 0) { + return; + } + + popped = true; + resume(); + }; + } + + // Exports test.push() to the user API + // Alias of pushResult. + + }, { + key: "push", + value: function push(result, actual, expected, message, negative) { + Logger.warn("assert.push is deprecated and will be removed in QUnit 3.0." + " Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."); + + var currentAssert = this instanceof Assert ? this : config.current.assert; + return currentAssert.pushResult({ + result: result, + actual: actual, + expected: expected, + message: message, + negative: negative + }); + } + }, { + key: "pushResult", + value: function pushResult(resultInfo) { + + // Destructure of resultInfo = { result, actual, expected, message, negative } + var assert = this; + var currentTest = assert instanceof Assert && assert.test || config.current; + + // Backwards compatibility fix. + // Allows the direct use of global exported assertions and QUnit.assert.* + // Although, it's use is not recommended as it can leak assertions + // to other tests from async tests, because we only get a reference to the current test, + // not exactly the test where assertion were intended to be called. + if (!currentTest) { + throw new Error("assertion outside test context, in " + sourceFromStacktrace(2)); + } + + if (!(assert instanceof Assert)) { + assert = currentTest.assert; + } + + return assert.test.pushResult(resultInfo); + } + }, { + key: "ok", + value: function ok(result, message) { + if (!message) { + message = result ? "okay" : "failed, expected argument to be truthy, was: " + dump.parse(result); + } + + this.pushResult({ + result: !!result, + actual: result, + expected: true, + message: message + }); + } + }, { + key: "notOk", + value: function notOk(result, message) { + if (!message) { + message = !result ? "okay" : "failed, expected argument to be falsy, was: " + dump.parse(result); + } + + this.pushResult({ + result: !result, + actual: result, + expected: false, + message: message + }); + } + }, { + key: "equal", + value: function equal(actual, expected, message) { + + // eslint-disable-next-line eqeqeq + var result = expected == actual; + + this.pushResult({ + result: result, + actual: actual, + expected: expected, + message: message + }); + } + }, { + key: "notEqual", + value: function notEqual(actual, expected, message) { + + // eslint-disable-next-line eqeqeq + var result = expected != actual; + + this.pushResult({ + result: result, + actual: actual, + expected: expected, + message: message, + negative: true + }); + } + }, { + key: "propEqual", + value: function propEqual(actual, expected, message) { + actual = objectValues(actual); + expected = objectValues(expected); + + this.pushResult({ + result: equiv(actual, expected), + actual: actual, + expected: expected, + message: message + }); + } + }, { + key: "notPropEqual", + value: function notPropEqual(actual, expected, message) { + actual = objectValues(actual); + expected = objectValues(expected); + + this.pushResult({ + result: !equiv(actual, expected), + actual: actual, + expected: expected, + message: message, + negative: true + }); + } + }, { + key: "deepEqual", + value: function deepEqual(actual, expected, message) { + this.pushResult({ + result: equiv(actual, expected), + actual: actual, + expected: expected, + message: message + }); + } + }, { + key: "notDeepEqual", + value: function notDeepEqual(actual, expected, message) { + this.pushResult({ + result: !equiv(actual, expected), + actual: actual, + expected: expected, + message: message, + negative: true + }); + } + }, { + key: "strictEqual", + value: function strictEqual(actual, expected, message) { + this.pushResult({ + result: expected === actual, + actual: actual, + expected: expected, + message: message + }); + } + }, { + key: "notStrictEqual", + value: function notStrictEqual(actual, expected, message) { + this.pushResult({ + result: expected !== actual, + actual: actual, + expected: expected, + message: message, + negative: true + }); + } + }, { + key: "throws", + value: function throws(block, expected, message) { + var actual = void 0, + result = false; + + var currentTest = this instanceof Assert && this.test || config.current; + + // 'expected' is optional unless doing string comparison + if (objectType(expected) === "string") { + if (message == null) { + message = expected; + expected = null; + } else { + throw new Error("throws/raises does not accept a string value for the expected argument.\n" + "Use a non-string object value (e.g. regExp) instead if it's necessary."); + } + } + + currentTest.ignoreGlobalErrors = true; + try { + block.call(currentTest.testEnvironment); + } catch (e) { + actual = e; + } + currentTest.ignoreGlobalErrors = false; + + if (actual) { + var expectedType = objectType(expected); + + // We don't want to validate thrown error + if (!expected) { + result = true; + + // Expected is a regexp + } else if (expectedType === "regexp") { + result = expected.test(errorString(actual)); + + // Log the string form of the regexp + expected = String(expected); + + // Expected is a constructor, maybe an Error constructor + } else if (expectedType === "function" && actual instanceof expected) { + result = true; + + // Expected is an Error object + } else if (expectedType === "object") { + result = actual instanceof expected.constructor && actual.name === expected.name && actual.message === expected.message; + + // Log the string form of the Error object + expected = errorString(expected); + + // Expected is a validation function which returns true if validation passed + } else if (expectedType === "function" && expected.call({}, actual) === true) { + expected = null; + result = true; + } + } + + currentTest.assert.pushResult({ + result: result, + + // undefined if it didn't throw + actual: actual && errorString(actual), + expected: expected, + message: message + }); + } + }, { + key: "rejects", + value: function rejects(promise, expected, message) { + var result = false; + + var currentTest = this instanceof Assert && this.test || config.current; + + // 'expected' is optional unless doing string comparison + if (objectType(expected) === "string") { + if (message === undefined) { + message = expected; + expected = undefined; + } else { + message = "assert.rejects does not accept a string value for the expected " + "argument.\nUse a non-string object value (e.g. validator function) instead " + "if necessary."; + + currentTest.assert.pushResult({ + result: false, + message: message + }); + + return; + } + } + + var then = promise && promise.then; + if (objectType(then) !== "function") { + var _message = "The value provided to `assert.rejects` in " + "\"" + currentTest.testName + "\" was not a promise."; + + currentTest.assert.pushResult({ + result: false, + message: _message, + actual: promise + }); + + return; + } + + var done = this.async(); + + return then.call(promise, function handleFulfillment() { + var message = "The promise returned by the `assert.rejects` callback in " + "\"" + currentTest.testName + "\" did not reject."; + + currentTest.assert.pushResult({ + result: false, + message: message, + actual: promise + }); + + done(); + }, function handleRejection(actual) { + var expectedType = objectType(expected); + + // We don't want to validate + if (expected === undefined) { + result = true; + + // Expected is a regexp + } else if (expectedType === "regexp") { + result = expected.test(errorString(actual)); + + // Log the string form of the regexp + expected = String(expected); + + // Expected is a constructor, maybe an Error constructor + } else if (expectedType === "function" && actual instanceof expected) { + result = true; + + // Expected is an Error object + } else if (expectedType === "object") { + result = actual instanceof expected.constructor && actual.name === expected.name && actual.message === expected.message; + + // Log the string form of the Error object + expected = errorString(expected); + + // Expected is a validation function which returns true if validation passed + } else { + if (expectedType === "function") { + result = expected.call({}, actual) === true; + expected = null; + + // Expected is some other invalid type + } else { + result = false; + message = "invalid expected value provided to `assert.rejects` " + "callback in \"" + currentTest.testName + "\": " + expectedType + "."; + } + } + + currentTest.assert.pushResult({ + result: result, + + // leave rejection value of undefined as-is + actual: actual && errorString(actual), + expected: expected, + message: message + }); + + done(); + }); + } + }]); + return Assert; + }(); + + // Provide an alternative to assert.throws(), for environments that consider throws a reserved word + // Known to us are: Closure Compiler, Narwhal + // eslint-disable-next-line dot-notation + + + Assert.prototype.raises = Assert.prototype["throws"]; + + /** + * Converts an error into a simple string for comparisons. + * + * @param {Error|Object} error + * @return {String} + */ + function errorString(error) { + var resultErrorString = error.toString(); + + // If the error wasn't a subclass of Error but something like + // an object literal with name and message properties... + if (resultErrorString.substring(0, 7) === "[object") { + var name = error.name ? error.name.toString() : "Error"; + var message = error.message ? error.message.toString() : ""; + + if (name && message) { + return name + ": " + message; + } else if (name) { + return name; + } else if (message) { + return message; + } else { + return "Error"; + } + } else { + return resultErrorString; + } + } + + /* global module, exports, define */ + function exportQUnit(QUnit) { + + if (defined.document) { + + // QUnit may be defined when it is preconfigured but then only QUnit and QUnit.config may be defined. + if (window$1.QUnit && window$1.QUnit.version) { + throw new Error("QUnit has already been defined."); + } + + window$1.QUnit = QUnit; + } + + // For nodejs + if (typeof module !== "undefined" && module && module.exports) { + module.exports = QUnit; + + // For consistency with CommonJS environments' exports + module.exports.QUnit = QUnit; + } + + // For CommonJS with exports, but without module.exports, like Rhino + if (typeof exports !== "undefined" && exports) { + exports.QUnit = QUnit; + } + + if (typeof define === "function" && define.amd) { + define(function () { + return QUnit; + }); + QUnit.config.autostart = false; + } + + // For Web/Service Workers + if (self$1 && self$1.WorkerGlobalScope && self$1 instanceof self$1.WorkerGlobalScope) { + self$1.QUnit = QUnit; + } + } + + // Handle an unhandled exception. By convention, returns true if further + // error handling should be suppressed and false otherwise. + // In this case, we will only suppress further error handling if the + // "ignoreGlobalErrors" configuration option is enabled. + function onError(error) { + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { + args[_key - 1] = arguments[_key]; + } + + if (config.current) { + if (config.current.ignoreGlobalErrors) { + return true; + } + pushFailure.apply(undefined, [error.message, error.stacktrace || error.fileName + ":" + error.lineNumber].concat(args)); + } else { + test("global failure", extend(function () { + pushFailure.apply(undefined, [error.message, error.stacktrace || error.fileName + ":" + error.lineNumber].concat(args)); + }, { validTest: true })); + } + + return false; + } + + // Handle an unhandled rejection + function onUnhandledRejection(reason) { + var resultInfo = { + result: false, + message: reason.message || "error", + actual: reason, + source: reason.stack || sourceFromStacktrace(3) + }; + + var currentTest = config.current; + if (currentTest) { + currentTest.assert.pushResult(resultInfo); + } else { + test("global failure", extend(function (assert) { + assert.pushResult(resultInfo); + }, { validTest: true })); + } + } + + var QUnit = {}; + var globalSuite = new SuiteReport(); + + // The initial "currentModule" represents the global (or top-level) module that + // is not explicitly defined by the user, therefore we add the "globalSuite" to + // it since each module has a suiteReport associated with it. + config.currentModule.suiteReport = globalSuite; + + var globalStartCalled = false; + var runStarted = false; + + // Figure out if we're running the tests from a server or not + QUnit.isLocal = !(defined.document && window$1.location.protocol !== "file:"); + + // Expose the current QUnit version + QUnit.version = "2.10.0"; + + extend(QUnit, { + on: on, + + module: module$1, + + test: test, + + todo: todo, + + skip: skip, + + only: only, + + start: function start(count) { + var globalStartAlreadyCalled = globalStartCalled; + + if (!config.current) { + globalStartCalled = true; + + if (runStarted) { + throw new Error("Called start() while test already started running"); + } else if (globalStartAlreadyCalled || count > 1) { + throw new Error("Called start() outside of a test context too many times"); + } else if (config.autostart) { + throw new Error("Called start() outside of a test context when " + "QUnit.config.autostart was true"); + } else if (!config.pageLoaded) { + + // The page isn't completely loaded yet, so we set autostart and then + // load if we're in Node or wait for the browser's load event. + config.autostart = true; + + // Starts from Node even if .load was not previously called. We still return + // early otherwise we'll wind up "beginning" twice. + if (!defined.document) { + QUnit.load(); + } + + return; + } + } else { + throw new Error("QUnit.start cannot be called inside a test context."); + } + + scheduleBegin(); + }, + + config: config, + + is: is, + + objectType: objectType, + + extend: extend, + + load: function load() { + config.pageLoaded = true; + + // Initialize the configuration options + extend(config, { + stats: { all: 0, bad: 0 }, + started: 0, + updateRate: 1000, + autostart: true, + filter: "" + }, true); + + if (!runStarted) { + config.blocking = false; + + if (config.autostart) { + scheduleBegin(); + } + } + }, + + stack: function stack(offset) { + offset = (offset || 0) + 2; + return sourceFromStacktrace(offset); + }, + + onError: onError, + + onUnhandledRejection: onUnhandledRejection + }); + + QUnit.pushFailure = pushFailure; + QUnit.assert = Assert.prototype; + QUnit.equiv = equiv; + QUnit.dump = dump; + + registerLoggingCallbacks(QUnit); + + function scheduleBegin() { + + runStarted = true; + + // Add a slight delay to allow definition of more modules and tests. + if (defined.setTimeout) { + setTimeout$1(function () { + begin(); + }); + } else { + begin(); + } + } + + function unblockAndAdvanceQueue() { + config.blocking = false; + ProcessingQueue.advance(); + } + + function begin() { + var i, + l, + modulesLog = []; + + // If the test run hasn't officially begun yet + if (!config.started) { + + // Record the time of the test run's beginning + config.started = now(); + + // Delete the loose unnamed module if unused. + if (config.modules[0].name === "" && config.modules[0].tests.length === 0) { + config.modules.shift(); + } + + // Avoid unnecessary information by not logging modules' test environments + for (i = 0, l = config.modules.length; i < l; i++) { + modulesLog.push({ + name: config.modules[i].name, + tests: config.modules[i].tests + }); + } + + // The test run is officially beginning now + emit("runStart", globalSuite.start(true)); + runLoggingCallbacks("begin", { + totalTests: Test.count, + modules: modulesLog + }).then(unblockAndAdvanceQueue); + } else { + unblockAndAdvanceQueue(); + } + } + + exportQUnit(QUnit); + + (function () { + + if (typeof window$1 === "undefined" || typeof document$1 === "undefined") { + return; + } + + var config = QUnit.config, + hasOwn = Object.prototype.hasOwnProperty; + + // Stores fixture HTML for resetting later + function storeFixture() { + + // Avoid overwriting user-defined values + if (hasOwn.call(config, "fixture")) { + return; + } + + var fixture = document$1.getElementById("qunit-fixture"); + if (fixture) { + config.fixture = fixture.cloneNode(true); + } + } + + QUnit.begin(storeFixture); + + // Resets the fixture DOM element if available. + function resetFixture() { + if (config.fixture == null) { + return; + } + + var fixture = document$1.getElementById("qunit-fixture"); + var resetFixtureType = _typeof(config.fixture); + if (resetFixtureType === "string") { + + // support user defined values for `config.fixture` + var newFixture = document$1.createElement("div"); + newFixture.setAttribute("id", "qunit-fixture"); + newFixture.innerHTML = config.fixture; + fixture.parentNode.replaceChild(newFixture, fixture); + } else { + var clonedFixture = config.fixture.cloneNode(true); + fixture.parentNode.replaceChild(clonedFixture, fixture); + } + } + + QUnit.testStart(resetFixture); + })(); + + (function () { + + // Only interact with URLs via window.location + var location = typeof window$1 !== "undefined" && window$1.location; + if (!location) { + return; + } + + var urlParams = getUrlParams(); + + QUnit.urlParams = urlParams; + + // Match module/test by inclusion in an array + QUnit.config.moduleId = [].concat(urlParams.moduleId || []); + QUnit.config.testId = [].concat(urlParams.testId || []); + + // Exact case-insensitive match of the module name + QUnit.config.module = urlParams.module; + + // Regular expression or case-insenstive substring match against "moduleName: testName" + QUnit.config.filter = urlParams.filter; + + // Test order randomization + if (urlParams.seed === true) { + + // Generate a random seed if the option is specified without a value + QUnit.config.seed = Math.random().toString(36).slice(2); + } else if (urlParams.seed) { + QUnit.config.seed = urlParams.seed; + } + + // Add URL-parameter-mapped config values with UI form rendering data + QUnit.config.urlConfig.push({ + id: "hidepassed", + label: "Hide passed tests", + tooltip: "Only show tests and assertions that fail. Stored as query-strings." + }, { + id: "noglobals", + label: "Check for Globals", + tooltip: "Enabling this will test if any test introduces new properties on the " + "global object (`window` in Browsers). Stored as query-strings." + }, { + id: "notrycatch", + label: "No try-catch", + tooltip: "Enabling this will run tests outside of a try-catch block. Makes debugging " + "exceptions in IE reasonable. Stored as query-strings." + }); + + QUnit.begin(function () { + var i, + option, + urlConfig = QUnit.config.urlConfig; + + for (i = 0; i < urlConfig.length; i++) { + + // Options can be either strings or objects with nonempty "id" properties + option = QUnit.config.urlConfig[i]; + if (typeof option !== "string") { + option = option.id; + } + + if (QUnit.config[option] === undefined) { + QUnit.config[option] = urlParams[option]; + } + } + }); + + function getUrlParams() { + var i, param, name, value; + var urlParams = Object.create(null); + var params = location.search.slice(1).split("&"); + var length = params.length; + + for (i = 0; i < length; i++) { + if (params[i]) { + param = params[i].split("="); + name = decodeQueryParam(param[0]); + + // Allow just a key to turn on a flag, e.g., test.html?noglobals + value = param.length === 1 || decodeQueryParam(param.slice(1).join("=")); + if (name in urlParams) { + urlParams[name] = [].concat(urlParams[name], value); + } else { + urlParams[name] = value; + } + } + } + + return urlParams; + } + + function decodeQueryParam(param) { + return decodeURIComponent(param.replace(/\+/g, "%20")); + } + })(); + + var stats = { + passedTests: 0, + failedTests: 0, + skippedTests: 0, + todoTests: 0 + }; + + // Escape text for attribute or text content. + function escapeText(s) { + if (!s) { + return ""; + } + s = s + ""; + + // Both single quotes and double quotes (for attributes) + return s.replace(/['"<>&]/g, function (s) { + switch (s) { + case "'": + return "'"; + case "\"": + return """; + case "<": + return "<"; + case ">": + return ">"; + case "&": + return "&"; + } + }); + } + + (function () { + + // Don't load the HTML Reporter on non-browser environments + if (typeof window$1 === "undefined" || !window$1.document) { + return; + } + + var config = QUnit.config, + hiddenTests = [], + document = window$1.document, + collapseNext = false, + hasOwn$$1 = Object.prototype.hasOwnProperty, + unfilteredUrl = setUrl({ filter: undefined, module: undefined, + moduleId: undefined, testId: undefined }), + modulesList = []; + + function addEvent(elem, type, fn) { + elem.addEventListener(type, fn, false); + } + + function removeEvent(elem, type, fn) { + elem.removeEventListener(type, fn, false); + } + + function addEvents(elems, type, fn) { + var i = elems.length; + while (i--) { + addEvent(elems[i], type, fn); + } + } + + function hasClass(elem, name) { + return (" " + elem.className + " ").indexOf(" " + name + " ") >= 0; + } + + function addClass(elem, name) { + if (!hasClass(elem, name)) { + elem.className += (elem.className ? " " : "") + name; + } + } + + function toggleClass(elem, name, force) { + if (force || typeof force === "undefined" && !hasClass(elem, name)) { + addClass(elem, name); + } else { + removeClass(elem, name); + } + } + + function removeClass(elem, name) { + var set = " " + elem.className + " "; + + // Class name may appear multiple times + while (set.indexOf(" " + name + " ") >= 0) { + set = set.replace(" " + name + " ", " "); + } + + // Trim for prettiness + elem.className = typeof set.trim === "function" ? set.trim() : set.replace(/^\s+|\s+$/g, ""); + } + + function id(name) { + return document.getElementById && document.getElementById(name); + } + + function abortTests() { + var abortButton = id("qunit-abort-tests-button"); + if (abortButton) { + abortButton.disabled = true; + abortButton.innerHTML = "Aborting..."; + } + QUnit.config.queue.length = 0; + return false; + } + + function interceptNavigation(ev) { + applyUrlParams(); + + if (ev && ev.preventDefault) { + ev.preventDefault(); + } + + return false; + } + + function getUrlConfigHtml() { + var i, + j, + val, + escaped, + escapedTooltip, + selection = false, + urlConfig = config.urlConfig, + urlConfigHtml = ""; + + for (i = 0; i < urlConfig.length; i++) { + + // Options can be either strings or objects with nonempty "id" properties + val = config.urlConfig[i]; + if (typeof val === "string") { + val = { + id: val, + label: val + }; + } + + escaped = escapeText(val.id); + escapedTooltip = escapeText(val.tooltip); + + if (!val.value || typeof val.value === "string") { + urlConfigHtml += ""; + } else { + urlConfigHtml += ""; + } + } + + return urlConfigHtml; + } + + // Handle "click" events on toolbar checkboxes and "change" for select menus. + // Updates the URL with the new state of `config.urlConfig` values. + function toolbarChanged() { + var updatedUrl, + value, + tests, + field = this, + params = {}; + + // Detect if field is a select menu or a checkbox + if ("selectedIndex" in field) { + value = field.options[field.selectedIndex].value || undefined; + } else { + value = field.checked ? field.defaultValue || true : undefined; + } + + params[field.name] = value; + updatedUrl = setUrl(params); + + // Check if we can apply the change without a page refresh + if ("hidepassed" === field.name && "replaceState" in window$1.history) { + QUnit.urlParams[field.name] = value; + config[field.name] = value || false; + tests = id("qunit-tests"); + if (tests) { + var length = tests.children.length; + var children = tests.children; + + if (field.checked) { + for (var i = 0; i < length; i++) { + var test$$1 = children[i]; + + if (test$$1 && test$$1.className.indexOf("pass") > -1) { + hiddenTests.push(test$$1); + } + } + + var _iteratorNormalCompletion = true; + var _didIteratorError = false; + var _iteratorError = undefined; + + try { + for (var _iterator = hiddenTests[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { + var hiddenTest = _step.value; + + tests.removeChild(hiddenTest); + } + } catch (err) { + _didIteratorError = true; + _iteratorError = err; + } finally { + try { + if (!_iteratorNormalCompletion && _iterator.return) { + _iterator.return(); + } + } finally { + if (_didIteratorError) { + throw _iteratorError; + } + } + } + } else { + while ((test$$1 = hiddenTests.pop()) != null) { + tests.appendChild(test$$1); + } + } + } + window$1.history.replaceState(null, "", updatedUrl); + } else { + window$1.location = updatedUrl; + } + } + + function setUrl(params) { + var key, + arrValue, + i, + querystring = "?", + location = window$1.location; + + params = QUnit.extend(QUnit.extend({}, QUnit.urlParams), params); + + for (key in params) { + + // Skip inherited or undefined properties + if (hasOwn$$1.call(params, key) && params[key] !== undefined) { + + // Output a parameter for each value of this key + // (but usually just one) + arrValue = [].concat(params[key]); + for (i = 0; i < arrValue.length; i++) { + querystring += encodeURIComponent(key); + if (arrValue[i] !== true) { + querystring += "=" + encodeURIComponent(arrValue[i]); + } + querystring += "&"; + } + } + } + return location.protocol + "//" + location.host + location.pathname + querystring.slice(0, -1); + } + + function applyUrlParams() { + var i, + selectedModules = [], + modulesList = id("qunit-modulefilter-dropdown-list").getElementsByTagName("input"), + filter = id("qunit-filter-input").value; + + for (i = 0; i < modulesList.length; i++) { + if (modulesList[i].checked) { + selectedModules.push(modulesList[i].value); + } + } + + window$1.location = setUrl({ + filter: filter === "" ? undefined : filter, + moduleId: selectedModules.length === 0 ? undefined : selectedModules, + + // Remove module and testId filter + module: undefined, + testId: undefined + }); + } + + function toolbarUrlConfigContainer() { + var urlConfigContainer = document.createElement("span"); + + urlConfigContainer.innerHTML = getUrlConfigHtml(); + addClass(urlConfigContainer, "qunit-url-config"); + + addEvents(urlConfigContainer.getElementsByTagName("input"), "change", toolbarChanged); + addEvents(urlConfigContainer.getElementsByTagName("select"), "change", toolbarChanged); + + return urlConfigContainer; + } + + function abortTestsButton() { + var button = document.createElement("button"); + button.id = "qunit-abort-tests-button"; + button.innerHTML = "Abort"; + addEvent(button, "click", abortTests); + return button; + } + + function toolbarLooseFilter() { + var filter = document.createElement("form"), + label = document.createElement("label"), + input = document.createElement("input"), + button = document.createElement("button"); + + addClass(filter, "qunit-filter"); + + label.innerHTML = "Filter: "; + + input.type = "text"; + input.value = config.filter || ""; + input.name = "filter"; + input.id = "qunit-filter-input"; + + button.innerHTML = "Go"; + + label.appendChild(input); + + filter.appendChild(label); + filter.appendChild(document.createTextNode(" ")); + filter.appendChild(button); + addEvent(filter, "submit", interceptNavigation); + + return filter; + } + + function moduleListHtml() { + var i, + checked, + html = ""; + + for (i = 0; i < config.modules.length; i++) { + if (config.modules[i].name !== "") { + checked = config.moduleId.indexOf(config.modules[i].moduleId) > -1; + html += "
  • "; + } + } + + return html; + } + + function toolbarModuleFilter() { + var commit, + reset, + moduleFilter = document.createElement("form"), + label = document.createElement("label"), + moduleSearch = document.createElement("input"), + dropDown = document.createElement("div"), + actions = document.createElement("span"), + applyButton = document.createElement("button"), + resetButton = document.createElement("button"), + allModulesLabel = document.createElement("label"), + allCheckbox = document.createElement("input"), + dropDownList = document.createElement("ul"), + dirty = false; + + moduleSearch.id = "qunit-modulefilter-search"; + moduleSearch.autocomplete = "off"; + addEvent(moduleSearch, "input", searchInput); + addEvent(moduleSearch, "input", searchFocus); + addEvent(moduleSearch, "focus", searchFocus); + addEvent(moduleSearch, "click", searchFocus); + + label.id = "qunit-modulefilter-search-container"; + label.innerHTML = "Module: "; + label.appendChild(moduleSearch); + + applyButton.textContent = "Apply"; + applyButton.style.display = "none"; + + resetButton.textContent = "Reset"; + resetButton.type = "reset"; + resetButton.style.display = "none"; + + allCheckbox.type = "checkbox"; + allCheckbox.checked = config.moduleId.length === 0; + + allModulesLabel.className = "clickable"; + if (config.moduleId.length) { + allModulesLabel.className = "checked"; + } + allModulesLabel.appendChild(allCheckbox); + allModulesLabel.appendChild(document.createTextNode("All modules")); + + actions.id = "qunit-modulefilter-actions"; + actions.appendChild(applyButton); + actions.appendChild(resetButton); + actions.appendChild(allModulesLabel); + commit = actions.firstChild; + reset = commit.nextSibling; + addEvent(commit, "click", applyUrlParams); + + dropDownList.id = "qunit-modulefilter-dropdown-list"; + dropDownList.innerHTML = moduleListHtml(); + + dropDown.id = "qunit-modulefilter-dropdown"; + dropDown.style.display = "none"; + dropDown.appendChild(actions); + dropDown.appendChild(dropDownList); + addEvent(dropDown, "change", selectionChange); + selectionChange(); + + moduleFilter.id = "qunit-modulefilter"; + moduleFilter.appendChild(label); + moduleFilter.appendChild(dropDown); + addEvent(moduleFilter, "submit", interceptNavigation); + addEvent(moduleFilter, "reset", function () { + + // Let the reset happen, then update styles + window$1.setTimeout(selectionChange); + }); + + // Enables show/hide for the dropdown + function searchFocus() { + if (dropDown.style.display !== "none") { + return; + } + + dropDown.style.display = "block"; + addEvent(document, "click", hideHandler); + addEvent(document, "keydown", hideHandler); + + // Hide on Escape keydown or outside-container click + function hideHandler(e) { + var inContainer = moduleFilter.contains(e.target); + + if (e.keyCode === 27 || !inContainer) { + if (e.keyCode === 27 && inContainer) { + moduleSearch.focus(); + } + dropDown.style.display = "none"; + removeEvent(document, "click", hideHandler); + removeEvent(document, "keydown", hideHandler); + moduleSearch.value = ""; + searchInput(); + } + } + } + + // Processes module search box input + function searchInput() { + var i, + item, + searchText = moduleSearch.value.toLowerCase(), + listItems = dropDownList.children; + + for (i = 0; i < listItems.length; i++) { + item = listItems[i]; + if (!searchText || item.textContent.toLowerCase().indexOf(searchText) > -1) { + item.style.display = ""; + } else { + item.style.display = "none"; + } + } + } + + // Processes selection changes + function selectionChange(evt) { + var i, + item, + checkbox = evt && evt.target || allCheckbox, + modulesList = dropDownList.getElementsByTagName("input"), + selectedNames = []; + + toggleClass(checkbox.parentNode, "checked", checkbox.checked); + + dirty = false; + if (checkbox.checked && checkbox !== allCheckbox) { + allCheckbox.checked = false; + removeClass(allCheckbox.parentNode, "checked"); + } + for (i = 0; i < modulesList.length; i++) { + item = modulesList[i]; + if (!evt) { + toggleClass(item.parentNode, "checked", item.checked); + } else if (checkbox === allCheckbox && checkbox.checked) { + item.checked = false; + removeClass(item.parentNode, "checked"); + } + dirty = dirty || item.checked !== item.defaultChecked; + if (item.checked) { + selectedNames.push(item.parentNode.textContent); + } + } + + commit.style.display = reset.style.display = dirty ? "" : "none"; + moduleSearch.placeholder = selectedNames.join(", ") || allCheckbox.parentNode.textContent; + moduleSearch.title = "Type to filter list. Current selection:\n" + (selectedNames.join("\n") || allCheckbox.parentNode.textContent); + } + + return moduleFilter; + } + + function toolbarFilters() { + var toolbarFilters = document.createElement("span"); + + toolbarFilters.id = "qunit-toolbar-filters"; + toolbarFilters.appendChild(toolbarLooseFilter()); + toolbarFilters.appendChild(toolbarModuleFilter()); + + return toolbarFilters; + } + + function appendToolbar() { + var toolbar = id("qunit-testrunner-toolbar"); + + if (toolbar) { + toolbar.appendChild(toolbarUrlConfigContainer()); + toolbar.appendChild(toolbarFilters()); + toolbar.appendChild(document.createElement("div")).className = "clearfix"; + } + } + + function appendHeader() { + var header = id("qunit-header"); + + if (header) { + header.innerHTML = "" + header.innerHTML + " "; + } + } + + function appendBanner() { + var banner = id("qunit-banner"); + + if (banner) { + banner.className = ""; + } + } + + function appendTestResults() { + var tests = id("qunit-tests"), + result = id("qunit-testresult"), + controls; + + if (result) { + result.parentNode.removeChild(result); + } + + if (tests) { + tests.innerHTML = ""; + result = document.createElement("p"); + result.id = "qunit-testresult"; + result.className = "result"; + tests.parentNode.insertBefore(result, tests); + result.innerHTML = "
    Running...
     
    " + "
    " + "
    "; + controls = id("qunit-testresult-controls"); + } + + if (controls) { + controls.appendChild(abortTestsButton()); + } + } + + function appendFilteredTest() { + var testId = QUnit.config.testId; + if (!testId || testId.length <= 0) { + return ""; + } + return "
    Rerunning selected tests: " + escapeText(testId.join(", ")) + " Run all tests
    "; + } + + function appendUserAgent() { + var userAgent = id("qunit-userAgent"); + + if (userAgent) { + userAgent.innerHTML = ""; + userAgent.appendChild(document.createTextNode("QUnit " + QUnit.version + "; " + navigator.userAgent)); + } + } + + function appendInterface() { + var qunit = id("qunit"); + + if (qunit) { + qunit.innerHTML = "

    " + escapeText(document.title) + "

    " + "

    " + "
    " + appendFilteredTest() + "

    " + "
      "; + } + + appendHeader(); + appendBanner(); + appendTestResults(); + appendUserAgent(); + appendToolbar(); + } + + function appendTest(name, testId, moduleName) { + var title, + rerunTrigger, + testBlock, + assertList, + tests = id("qunit-tests"); + + if (!tests) { + return; + } + + title = document.createElement("strong"); + title.innerHTML = getNameHtml(name, moduleName); + + rerunTrigger = document.createElement("a"); + rerunTrigger.innerHTML = "Rerun"; + rerunTrigger.href = setUrl({ testId: testId }); + + testBlock = document.createElement("li"); + testBlock.appendChild(title); + testBlock.appendChild(rerunTrigger); + testBlock.id = "qunit-test-output-" + testId; + + assertList = document.createElement("ol"); + assertList.className = "qunit-assert-list"; + + testBlock.appendChild(assertList); + + tests.appendChild(testBlock); + } + + // HTML Reporter initialization and load + QUnit.begin(function (details) { + var i, moduleObj; + + // Sort modules by name for the picker + for (i = 0; i < details.modules.length; i++) { + moduleObj = details.modules[i]; + if (moduleObj.name) { + modulesList.push(moduleObj.name); + } + } + modulesList.sort(function (a, b) { + return a.localeCompare(b); + }); + + // Initialize QUnit elements + appendInterface(); + }); + + QUnit.done(function (details) { + var banner = id("qunit-banner"), + tests = id("qunit-tests"), + abortButton = id("qunit-abort-tests-button"), + totalTests = stats.passedTests + stats.skippedTests + stats.todoTests + stats.failedTests, + html = [totalTests, " tests completed in ", details.runtime, " milliseconds, with ", stats.failedTests, " failed, ", stats.skippedTests, " skipped, and ", stats.todoTests, " todo.
      ", "", details.passed, " assertions of ", details.total, " passed, ", details.failed, " failed."].join(""), + test$$1, + assertLi, + assertList; + + // Update remaining tests to aborted + if (abortButton && abortButton.disabled) { + html = "Tests aborted after " + details.runtime + " milliseconds."; + + for (var i = 0; i < tests.children.length; i++) { + test$$1 = tests.children[i]; + if (test$$1.className === "" || test$$1.className === "running") { + test$$1.className = "aborted"; + assertList = test$$1.getElementsByTagName("ol")[0]; + assertLi = document.createElement("li"); + assertLi.className = "fail"; + assertLi.innerHTML = "Test aborted."; + assertList.appendChild(assertLi); + } + } + } + + if (banner && (!abortButton || abortButton.disabled === false)) { + banner.className = stats.failedTests ? "qunit-fail" : "qunit-pass"; + } + + if (abortButton) { + abortButton.parentNode.removeChild(abortButton); + } + + if (tests) { + id("qunit-testresult-display").innerHTML = html; + } + + if (config.altertitle && document.title) { + + // Show ✖ for good, ✔ for bad suite result in title + // use escape sequences in case file gets loaded with non-utf-8 + // charset + document.title = [stats.failedTests ? "\u2716" : "\u2714", document.title.replace(/^[\u2714\u2716] /i, "")].join(" "); + } + + // Scroll back to top to show results + if (config.scrolltop && window$1.scrollTo) { + window$1.scrollTo(0, 0); + } + }); + + function getNameHtml(name, module) { + var nameHtml = ""; + + if (module) { + nameHtml = "" + escapeText(module) + ": "; + } + + nameHtml += "" + escapeText(name) + ""; + + return nameHtml; + } + + function getProgressHtml(runtime, stats, total) { + var completed = stats.passedTests + stats.skippedTests + stats.todoTests + stats.failedTests; + + return ["
      ", completed, " / ", total, " tests completed in ", runtime, " milliseconds, with ", stats.failedTests, " failed, ", stats.skippedTests, " skipped, and ", stats.todoTests, " todo."].join(""); + } + + QUnit.testStart(function (details) { + var running, bad; + + appendTest(details.name, details.testId, details.module); + + running = id("qunit-testresult-display"); + + if (running) { + addClass(running, "running"); + + bad = QUnit.config.reorder && details.previousFailure; + + running.innerHTML = [bad ? "Rerunning previously failed test:
      " : "Running:
      ", getNameHtml(details.name, details.module), getProgressHtml(now() - config.started, stats, Test.count)].join(""); + } + }); + + function stripHtml(string) { + + // Strip tags, html entity and whitespaces + return string.replace(/<\/?[^>]+(>|$)/g, "").replace(/"/g, "").replace(/\s+/g, ""); + } + + QUnit.log(function (details) { + var assertList, + assertLi, + message, + expected, + actual, + diff$$1, + showDiff = false, + testItem = id("qunit-test-output-" + details.testId); + + if (!testItem) { + return; + } + + message = escapeText(details.message) || (details.result ? "okay" : "failed"); + message = "" + message + ""; + message += "@ " + details.runtime + " ms"; + + // The pushFailure doesn't provide details.expected + // when it calls, it's implicit to also not show expected and diff stuff + // Also, we need to check details.expected existence, as it can exist and be undefined + if (!details.result && hasOwn$$1.call(details, "expected")) { + if (details.negative) { + expected = "NOT " + QUnit.dump.parse(details.expected); + } else { + expected = QUnit.dump.parse(details.expected); + } + + actual = QUnit.dump.parse(details.actual); + message += ""; + + if (actual !== expected) { + + message += ""; + + if (typeof details.actual === "number" && typeof details.expected === "number") { + if (!isNaN(details.actual) && !isNaN(details.expected)) { + showDiff = true; + diff$$1 = details.actual - details.expected; + diff$$1 = (diff$$1 > 0 ? "+" : "") + diff$$1; + } + } else if (typeof details.actual !== "boolean" && typeof details.expected !== "boolean") { + diff$$1 = QUnit.diff(expected, actual); + + // don't show diff if there is zero overlap + showDiff = stripHtml(diff$$1).length !== stripHtml(expected).length + stripHtml(actual).length; + } + + if (showDiff) { + message += ""; + } + } else if (expected.indexOf("[object Array]") !== -1 || expected.indexOf("[object Object]") !== -1) { + message += ""; + } else { + message += ""; + } + + if (details.source) { + message += ""; + } + + message += "
      Expected:
      " + escapeText(expected) + "
      Result:
      " + escapeText(actual) + "
      Diff:
      " + diff$$1 + "
      Message: " + "Diff suppressed as the depth of object is more than current max depth (" + QUnit.config.maxDepth + ").

      Hint: Use QUnit.dump.maxDepth to " + " run with a higher max depth or " + "Rerun without max depth.

      Message: " + "Diff suppressed as the expected and actual results have an equivalent" + " serialization
      Source:
      " + escapeText(details.source) + "
      "; + + // This occurs when pushFailure is set and we have an extracted stack trace + } else if (!details.result && details.source) { + message += "" + "" + "
      Source:
      " + escapeText(details.source) + "
      "; + } + + assertList = testItem.getElementsByTagName("ol")[0]; + + assertLi = document.createElement("li"); + assertLi.className = details.result ? "pass" : "fail"; + assertLi.innerHTML = message; + assertList.appendChild(assertLi); + }); + + QUnit.testDone(function (details) { + var testTitle, + time, + testItem, + assertList, + status, + good, + bad, + testCounts, + skipped, + sourceName, + tests = id("qunit-tests"); + + if (!tests) { + return; + } + + testItem = id("qunit-test-output-" + details.testId); + + removeClass(testItem, "running"); + + if (details.failed > 0) { + status = "failed"; + } else if (details.todo) { + status = "todo"; + } else { + status = details.skipped ? "skipped" : "passed"; + } + + assertList = testItem.getElementsByTagName("ol")[0]; + + good = details.passed; + bad = details.failed; + + // This test passed if it has no unexpected failed assertions + var testPassed = details.failed > 0 ? details.todo : !details.todo; + + if (testPassed) { + + // Collapse the passing tests + addClass(assertList, "qunit-collapsed"); + } else if (config.collapse) { + if (!collapseNext) { + + // Skip collapsing the first failing test + collapseNext = true; + } else { + + // Collapse remaining tests + addClass(assertList, "qunit-collapsed"); + } + } + + // The testItem.firstChild is the test name + testTitle = testItem.firstChild; + + testCounts = bad ? "" + bad + ", " + "" + good + ", " : ""; + + testTitle.innerHTML += " (" + testCounts + details.assertions.length + ")"; + + if (details.skipped) { + stats.skippedTests++; + + testItem.className = "skipped"; + skipped = document.createElement("em"); + skipped.className = "qunit-skipped-label"; + skipped.innerHTML = "skipped"; + testItem.insertBefore(skipped, testTitle); + } else { + addEvent(testTitle, "click", function () { + toggleClass(assertList, "qunit-collapsed"); + }); + + testItem.className = testPassed ? "pass" : "fail"; + + if (details.todo) { + var todoLabel = document.createElement("em"); + todoLabel.className = "qunit-todo-label"; + todoLabel.innerHTML = "todo"; + testItem.className += " todo"; + testItem.insertBefore(todoLabel, testTitle); + } + + time = document.createElement("span"); + time.className = "runtime"; + time.innerHTML = details.runtime + " ms"; + testItem.insertBefore(time, assertList); + + if (!testPassed) { + stats.failedTests++; + } else if (details.todo) { + stats.todoTests++; + } else { + stats.passedTests++; + } + } + + // Show the source of the test when showing assertions + if (details.source) { + sourceName = document.createElement("p"); + sourceName.innerHTML = "Source: " + escapeText(details.source); + addClass(sourceName, "qunit-source"); + if (testPassed) { + addClass(sourceName, "qunit-collapsed"); + } + addEvent(testTitle, "click", function () { + toggleClass(sourceName, "qunit-collapsed"); + }); + testItem.appendChild(sourceName); + } + + if (config.hidepassed && status === "passed") { + + // use removeChild instead of remove because of support + hiddenTests.push(testItem); + + tests.removeChild(testItem); + } + }); + + // Avoid readyState issue with phantomjs + // Ref: #818 + var notPhantom = function (p) { + return !(p && p.version && p.version.major > 0); + }(window$1.phantom); + + if (notPhantom && document.readyState === "complete") { + QUnit.load(); + } else { + addEvent(window$1, "load", QUnit.load); + } + + // Wrap window.onerror. We will call the original window.onerror to see if + // the existing handler fully handles the error; if not, we will call the + // QUnit.onError function. + var originalWindowOnError = window$1.onerror; + + // Cover uncaught exceptions + // Returning true will suppress the default browser handler, + // returning false will let it run. + window$1.onerror = function (message, fileName, lineNumber, columnNumber, errorObj) { + var ret = false; + if (originalWindowOnError) { + for (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) { + args[_key - 5] = arguments[_key]; + } + + ret = originalWindowOnError.call.apply(originalWindowOnError, [this, message, fileName, lineNumber, columnNumber, errorObj].concat(args)); + } + + // Treat return value as window.onerror itself does, + // Only do our handling if not suppressed. + if (ret !== true) { + var error = { + message: message, + fileName: fileName, + lineNumber: lineNumber + }; + + // According to + // https://blog.sentry.io/2016/01/04/client-javascript-reporting-window-onerror, + // most modern browsers support an errorObj argument; use that to + // get a full stack trace if it's available. + if (errorObj && errorObj.stack) { + error.stacktrace = extractStacktrace(errorObj, 0); + } + + ret = QUnit.onError(error); + } + + return ret; + }; + + // Listen for unhandled rejections, and call QUnit.onUnhandledRejection + window$1.addEventListener("unhandledrejection", function (event) { + QUnit.onUnhandledRejection(event.reason); + }); + })(); + + /* + * This file is a modified version of google-diff-match-patch's JavaScript implementation + * (https://code.google.com/p/google-diff-match-patch/source/browse/trunk/javascript/diff_match_patch_uncompressed.js), + * modifications are licensed as more fully set forth in LICENSE.txt. + * + * The original source of google-diff-match-patch is attributable and licensed as follows: + * + * Copyright 2006 Google Inc. + * https://code.google.com/p/google-diff-match-patch/ + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * More Info: + * https://code.google.com/p/google-diff-match-patch/ + * + * Usage: QUnit.diff(expected, actual) + * + */ + QUnit.diff = function () { + function DiffMatchPatch() {} + + // DIFF FUNCTIONS + + /** + * The data structure representing a diff is an array of tuples: + * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']] + * which means: delete 'Hello', add 'Goodbye' and keep ' world.' + */ + var DIFF_DELETE = -1, + DIFF_INSERT = 1, + DIFF_EQUAL = 0; + + /** + * Find the differences between two texts. Simplifies the problem by stripping + * any common prefix or suffix off the texts before diffing. + * @param {string} text1 Old string to be diffed. + * @param {string} text2 New string to be diffed. + * @param {boolean=} optChecklines Optional speedup flag. If present and false, + * then don't run a line-level diff first to identify the changed areas. + * Defaults to true, which does a faster, slightly less optimal diff. + * @return {!Array.} Array of diff tuples. + */ + DiffMatchPatch.prototype.DiffMain = function (text1, text2, optChecklines) { + var deadline, checklines, commonlength, commonprefix, commonsuffix, diffs; + + // The diff must be complete in up to 1 second. + deadline = new Date().getTime() + 1000; + + // Check for null inputs. + if (text1 === null || text2 === null) { + throw new Error("Null input. (DiffMain)"); + } + + // Check for equality (speedup). + if (text1 === text2) { + if (text1) { + return [[DIFF_EQUAL, text1]]; + } + return []; + } + + if (typeof optChecklines === "undefined") { + optChecklines = true; + } + + checklines = optChecklines; + + // Trim off common prefix (speedup). + commonlength = this.diffCommonPrefix(text1, text2); + commonprefix = text1.substring(0, commonlength); + text1 = text1.substring(commonlength); + text2 = text2.substring(commonlength); + + // Trim off common suffix (speedup). + commonlength = this.diffCommonSuffix(text1, text2); + commonsuffix = text1.substring(text1.length - commonlength); + text1 = text1.substring(0, text1.length - commonlength); + text2 = text2.substring(0, text2.length - commonlength); + + // Compute the diff on the middle block. + diffs = this.diffCompute(text1, text2, checklines, deadline); + + // Restore the prefix and suffix. + if (commonprefix) { + diffs.unshift([DIFF_EQUAL, commonprefix]); + } + if (commonsuffix) { + diffs.push([DIFF_EQUAL, commonsuffix]); + } + this.diffCleanupMerge(diffs); + return diffs; + }; + + /** + * Reduce the number of edits by eliminating operationally trivial equalities. + * @param {!Array.} diffs Array of diff tuples. + */ + DiffMatchPatch.prototype.diffCleanupEfficiency = function (diffs) { + var changes, equalities, equalitiesLength, lastequality, pointer, preIns, preDel, postIns, postDel; + changes = false; + equalities = []; // Stack of indices where equalities are found. + equalitiesLength = 0; // Keeping our own length var is faster in JS. + /** @type {?string} */ + lastequality = null; + + // Always equal to diffs[equalities[equalitiesLength - 1]][1] + pointer = 0; // Index of current position. + + // Is there an insertion operation before the last equality. + preIns = false; + + // Is there a deletion operation before the last equality. + preDel = false; + + // Is there an insertion operation after the last equality. + postIns = false; + + // Is there a deletion operation after the last equality. + postDel = false; + while (pointer < diffs.length) { + + // Equality found. + if (diffs[pointer][0] === DIFF_EQUAL) { + if (diffs[pointer][1].length < 4 && (postIns || postDel)) { + + // Candidate found. + equalities[equalitiesLength++] = pointer; + preIns = postIns; + preDel = postDel; + lastequality = diffs[pointer][1]; + } else { + + // Not a candidate, and can never become one. + equalitiesLength = 0; + lastequality = null; + } + postIns = postDel = false; + + // An insertion or deletion. + } else { + + if (diffs[pointer][0] === DIFF_DELETE) { + postDel = true; + } else { + postIns = true; + } + + /* + * Five types to be split: + * ABXYCD + * AXCD + * ABXC + * AXCD + * ABXC + */ + if (lastequality && (preIns && preDel && postIns && postDel || lastequality.length < 2 && preIns + preDel + postIns + postDel === 3)) { + + // Duplicate record. + diffs.splice(equalities[equalitiesLength - 1], 0, [DIFF_DELETE, lastequality]); + + // Change second copy to insert. + diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT; + equalitiesLength--; // Throw away the equality we just deleted; + lastequality = null; + if (preIns && preDel) { + + // No changes made which could affect previous entry, keep going. + postIns = postDel = true; + equalitiesLength = 0; + } else { + equalitiesLength--; // Throw away the previous equality. + pointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1; + postIns = postDel = false; + } + changes = true; + } + } + pointer++; + } + + if (changes) { + this.diffCleanupMerge(diffs); + } + }; + + /** + * Convert a diff array into a pretty HTML report. + * @param {!Array.} diffs Array of diff tuples. + * @param {integer} string to be beautified. + * @return {string} HTML representation. + */ + DiffMatchPatch.prototype.diffPrettyHtml = function (diffs) { + var op, + data, + x, + html = []; + for (x = 0; x < diffs.length; x++) { + op = diffs[x][0]; // Operation (insert, delete, equal) + data = diffs[x][1]; // Text of change. + switch (op) { + case DIFF_INSERT: + html[x] = "" + escapeText(data) + ""; + break; + case DIFF_DELETE: + html[x] = "" + escapeText(data) + ""; + break; + case DIFF_EQUAL: + html[x] = "" + escapeText(data) + ""; + break; + } + } + return html.join(""); + }; + + /** + * Determine the common prefix of two strings. + * @param {string} text1 First string. + * @param {string} text2 Second string. + * @return {number} The number of characters common to the start of each + * string. + */ + DiffMatchPatch.prototype.diffCommonPrefix = function (text1, text2) { + var pointermid, pointermax, pointermin, pointerstart; + + // Quick check for common null cases. + if (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) { + return 0; + } + + // Binary search. + // Performance analysis: https://neil.fraser.name/news/2007/10/09/ + pointermin = 0; + pointermax = Math.min(text1.length, text2.length); + pointermid = pointermax; + pointerstart = 0; + while (pointermin < pointermid) { + if (text1.substring(pointerstart, pointermid) === text2.substring(pointerstart, pointermid)) { + pointermin = pointermid; + pointerstart = pointermin; + } else { + pointermax = pointermid; + } + pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin); + } + return pointermid; + }; + + /** + * Determine the common suffix of two strings. + * @param {string} text1 First string. + * @param {string} text2 Second string. + * @return {number} The number of characters common to the end of each string. + */ + DiffMatchPatch.prototype.diffCommonSuffix = function (text1, text2) { + var pointermid, pointermax, pointermin, pointerend; + + // Quick check for common null cases. + if (!text1 || !text2 || text1.charAt(text1.length - 1) !== text2.charAt(text2.length - 1)) { + return 0; + } + + // Binary search. + // Performance analysis: https://neil.fraser.name/news/2007/10/09/ + pointermin = 0; + pointermax = Math.min(text1.length, text2.length); + pointermid = pointermax; + pointerend = 0; + while (pointermin < pointermid) { + if (text1.substring(text1.length - pointermid, text1.length - pointerend) === text2.substring(text2.length - pointermid, text2.length - pointerend)) { + pointermin = pointermid; + pointerend = pointermin; + } else { + pointermax = pointermid; + } + pointermid = Math.floor((pointermax - pointermin) / 2 + pointermin); + } + return pointermid; + }; + + /** + * Find the differences between two texts. Assumes that the texts do not + * have any common prefix or suffix. + * @param {string} text1 Old string to be diffed. + * @param {string} text2 New string to be diffed. + * @param {boolean} checklines Speedup flag. If false, then don't run a + * line-level diff first to identify the changed areas. + * If true, then run a faster, slightly less optimal diff. + * @param {number} deadline Time when the diff should be complete by. + * @return {!Array.} Array of diff tuples. + * @private + */ + DiffMatchPatch.prototype.diffCompute = function (text1, text2, checklines, deadline) { + var diffs, longtext, shorttext, i, hm, text1A, text2A, text1B, text2B, midCommon, diffsA, diffsB; + + if (!text1) { + + // Just add some text (speedup). + return [[DIFF_INSERT, text2]]; + } + + if (!text2) { + + // Just delete some text (speedup). + return [[DIFF_DELETE, text1]]; + } + + longtext = text1.length > text2.length ? text1 : text2; + shorttext = text1.length > text2.length ? text2 : text1; + i = longtext.indexOf(shorttext); + if (i !== -1) { + + // Shorter text is inside the longer text (speedup). + diffs = [[DIFF_INSERT, longtext.substring(0, i)], [DIFF_EQUAL, shorttext], [DIFF_INSERT, longtext.substring(i + shorttext.length)]]; + + // Swap insertions for deletions if diff is reversed. + if (text1.length > text2.length) { + diffs[0][0] = diffs[2][0] = DIFF_DELETE; + } + return diffs; + } + + if (shorttext.length === 1) { + + // Single character string. + // After the previous speedup, the character can't be an equality. + return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]]; + } + + // Check to see if the problem can be split in two. + hm = this.diffHalfMatch(text1, text2); + if (hm) { + + // A half-match was found, sort out the return data. + text1A = hm[0]; + text1B = hm[1]; + text2A = hm[2]; + text2B = hm[3]; + midCommon = hm[4]; + + // Send both pairs off for separate processing. + diffsA = this.DiffMain(text1A, text2A, checklines, deadline); + diffsB = this.DiffMain(text1B, text2B, checklines, deadline); + + // Merge the results. + return diffsA.concat([[DIFF_EQUAL, midCommon]], diffsB); + } + + if (checklines && text1.length > 100 && text2.length > 100) { + return this.diffLineMode(text1, text2, deadline); + } + + return this.diffBisect(text1, text2, deadline); + }; + + /** + * Do the two texts share a substring which is at least half the length of the + * longer text? + * This speedup can produce non-minimal diffs. + * @param {string} text1 First string. + * @param {string} text2 Second string. + * @return {Array.} Five element Array, containing the prefix of + * text1, the suffix of text1, the prefix of text2, the suffix of + * text2 and the common middle. Or null if there was no match. + * @private + */ + DiffMatchPatch.prototype.diffHalfMatch = function (text1, text2) { + var longtext, shorttext, dmp, text1A, text2B, text2A, text1B, midCommon, hm1, hm2, hm; + + longtext = text1.length > text2.length ? text1 : text2; + shorttext = text1.length > text2.length ? text2 : text1; + if (longtext.length < 4 || shorttext.length * 2 < longtext.length) { + return null; // Pointless. + } + dmp = this; // 'this' becomes 'window' in a closure. + + /** + * Does a substring of shorttext exist within longtext such that the substring + * is at least half the length of longtext? + * Closure, but does not reference any external variables. + * @param {string} longtext Longer string. + * @param {string} shorttext Shorter string. + * @param {number} i Start index of quarter length substring within longtext. + * @return {Array.} Five element Array, containing the prefix of + * longtext, the suffix of longtext, the prefix of shorttext, the suffix + * of shorttext and the common middle. Or null if there was no match. + * @private + */ + function diffHalfMatchI(longtext, shorttext, i) { + var seed, j, bestCommon, prefixLength, suffixLength, bestLongtextA, bestLongtextB, bestShorttextA, bestShorttextB; + + // Start with a 1/4 length substring at position i as a seed. + seed = longtext.substring(i, i + Math.floor(longtext.length / 4)); + j = -1; + bestCommon = ""; + while ((j = shorttext.indexOf(seed, j + 1)) !== -1) { + prefixLength = dmp.diffCommonPrefix(longtext.substring(i), shorttext.substring(j)); + suffixLength = dmp.diffCommonSuffix(longtext.substring(0, i), shorttext.substring(0, j)); + if (bestCommon.length < suffixLength + prefixLength) { + bestCommon = shorttext.substring(j - suffixLength, j) + shorttext.substring(j, j + prefixLength); + bestLongtextA = longtext.substring(0, i - suffixLength); + bestLongtextB = longtext.substring(i + prefixLength); + bestShorttextA = shorttext.substring(0, j - suffixLength); + bestShorttextB = shorttext.substring(j + prefixLength); + } + } + if (bestCommon.length * 2 >= longtext.length) { + return [bestLongtextA, bestLongtextB, bestShorttextA, bestShorttextB, bestCommon]; + } else { + return null; + } + } + + // First check if the second quarter is the seed for a half-match. + hm1 = diffHalfMatchI(longtext, shorttext, Math.ceil(longtext.length / 4)); + + // Check again based on the third quarter. + hm2 = diffHalfMatchI(longtext, shorttext, Math.ceil(longtext.length / 2)); + if (!hm1 && !hm2) { + return null; + } else if (!hm2) { + hm = hm1; + } else if (!hm1) { + hm = hm2; + } else { + + // Both matched. Select the longest. + hm = hm1[4].length > hm2[4].length ? hm1 : hm2; + } + + // A half-match was found, sort out the return data. + if (text1.length > text2.length) { + text1A = hm[0]; + text1B = hm[1]; + text2A = hm[2]; + text2B = hm[3]; + } else { + text2A = hm[0]; + text2B = hm[1]; + text1A = hm[2]; + text1B = hm[3]; + } + midCommon = hm[4]; + return [text1A, text1B, text2A, text2B, midCommon]; + }; + + /** + * Do a quick line-level diff on both strings, then rediff the parts for + * greater accuracy. + * This speedup can produce non-minimal diffs. + * @param {string} text1 Old string to be diffed. + * @param {string} text2 New string to be diffed. + * @param {number} deadline Time when the diff should be complete by. + * @return {!Array.} Array of diff tuples. + * @private + */ + DiffMatchPatch.prototype.diffLineMode = function (text1, text2, deadline) { + var a, diffs, linearray, pointer, countInsert, countDelete, textInsert, textDelete, j; + + // Scan the text on a line-by-line basis first. + a = this.diffLinesToChars(text1, text2); + text1 = a.chars1; + text2 = a.chars2; + linearray = a.lineArray; + + diffs = this.DiffMain(text1, text2, false, deadline); + + // Convert the diff back to original text. + this.diffCharsToLines(diffs, linearray); + + // Eliminate freak matches (e.g. blank lines) + this.diffCleanupSemantic(diffs); + + // Rediff any replacement blocks, this time character-by-character. + // Add a dummy entry at the end. + diffs.push([DIFF_EQUAL, ""]); + pointer = 0; + countDelete = 0; + countInsert = 0; + textDelete = ""; + textInsert = ""; + while (pointer < diffs.length) { + switch (diffs[pointer][0]) { + case DIFF_INSERT: + countInsert++; + textInsert += diffs[pointer][1]; + break; + case DIFF_DELETE: + countDelete++; + textDelete += diffs[pointer][1]; + break; + case DIFF_EQUAL: + + // Upon reaching an equality, check for prior redundancies. + if (countDelete >= 1 && countInsert >= 1) { + + // Delete the offending records and add the merged ones. + diffs.splice(pointer - countDelete - countInsert, countDelete + countInsert); + pointer = pointer - countDelete - countInsert; + a = this.DiffMain(textDelete, textInsert, false, deadline); + for (j = a.length - 1; j >= 0; j--) { + diffs.splice(pointer, 0, a[j]); + } + pointer = pointer + a.length; + } + countInsert = 0; + countDelete = 0; + textDelete = ""; + textInsert = ""; + break; + } + pointer++; + } + diffs.pop(); // Remove the dummy entry at the end. + + return diffs; + }; + + /** + * Find the 'middle snake' of a diff, split the problem in two + * and return the recursively constructed diff. + * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations. + * @param {string} text1 Old string to be diffed. + * @param {string} text2 New string to be diffed. + * @param {number} deadline Time at which to bail if not yet complete. + * @return {!Array.} Array of diff tuples. + * @private + */ + DiffMatchPatch.prototype.diffBisect = function (text1, text2, deadline) { + var text1Length, text2Length, maxD, vOffset, vLength, v1, v2, x, delta, front, k1start, k1end, k2start, k2end, k2Offset, k1Offset, x1, x2, y1, y2, d, k1, k2; + + // Cache the text lengths to prevent multiple calls. + text1Length = text1.length; + text2Length = text2.length; + maxD = Math.ceil((text1Length + text2Length) / 2); + vOffset = maxD; + vLength = 2 * maxD; + v1 = new Array(vLength); + v2 = new Array(vLength); + + // Setting all elements to -1 is faster in Chrome & Firefox than mixing + // integers and undefined. + for (x = 0; x < vLength; x++) { + v1[x] = -1; + v2[x] = -1; + } + v1[vOffset + 1] = 0; + v2[vOffset + 1] = 0; + delta = text1Length - text2Length; + + // If the total number of characters is odd, then the front path will collide + // with the reverse path. + front = delta % 2 !== 0; + + // Offsets for start and end of k loop. + // Prevents mapping of space beyond the grid. + k1start = 0; + k1end = 0; + k2start = 0; + k2end = 0; + for (d = 0; d < maxD; d++) { + + // Bail out if deadline is reached. + if (new Date().getTime() > deadline) { + break; + } + + // Walk the front path one step. + for (k1 = -d + k1start; k1 <= d - k1end; k1 += 2) { + k1Offset = vOffset + k1; + if (k1 === -d || k1 !== d && v1[k1Offset - 1] < v1[k1Offset + 1]) { + x1 = v1[k1Offset + 1]; + } else { + x1 = v1[k1Offset - 1] + 1; + } + y1 = x1 - k1; + while (x1 < text1Length && y1 < text2Length && text1.charAt(x1) === text2.charAt(y1)) { + x1++; + y1++; + } + v1[k1Offset] = x1; + if (x1 > text1Length) { + + // Ran off the right of the graph. + k1end += 2; + } else if (y1 > text2Length) { + + // Ran off the bottom of the graph. + k1start += 2; + } else if (front) { + k2Offset = vOffset + delta - k1; + if (k2Offset >= 0 && k2Offset < vLength && v2[k2Offset] !== -1) { + + // Mirror x2 onto top-left coordinate system. + x2 = text1Length - v2[k2Offset]; + if (x1 >= x2) { + + // Overlap detected. + return this.diffBisectSplit(text1, text2, x1, y1, deadline); + } + } + } + } + + // Walk the reverse path one step. + for (k2 = -d + k2start; k2 <= d - k2end; k2 += 2) { + k2Offset = vOffset + k2; + if (k2 === -d || k2 !== d && v2[k2Offset - 1] < v2[k2Offset + 1]) { + x2 = v2[k2Offset + 1]; + } else { + x2 = v2[k2Offset - 1] + 1; + } + y2 = x2 - k2; + while (x2 < text1Length && y2 < text2Length && text1.charAt(text1Length - x2 - 1) === text2.charAt(text2Length - y2 - 1)) { + x2++; + y2++; + } + v2[k2Offset] = x2; + if (x2 > text1Length) { + + // Ran off the left of the graph. + k2end += 2; + } else if (y2 > text2Length) { + + // Ran off the top of the graph. + k2start += 2; + } else if (!front) { + k1Offset = vOffset + delta - k2; + if (k1Offset >= 0 && k1Offset < vLength && v1[k1Offset] !== -1) { + x1 = v1[k1Offset]; + y1 = vOffset + x1 - k1Offset; + + // Mirror x2 onto top-left coordinate system. + x2 = text1Length - x2; + if (x1 >= x2) { + + // Overlap detected. + return this.diffBisectSplit(text1, text2, x1, y1, deadline); + } + } + } + } + } + + // Diff took too long and hit the deadline or + // number of diffs equals number of characters, no commonality at all. + return [[DIFF_DELETE, text1], [DIFF_INSERT, text2]]; + }; + + /** + * Given the location of the 'middle snake', split the diff in two parts + * and recurse. + * @param {string} text1 Old string to be diffed. + * @param {string} text2 New string to be diffed. + * @param {number} x Index of split point in text1. + * @param {number} y Index of split point in text2. + * @param {number} deadline Time at which to bail if not yet complete. + * @return {!Array.} Array of diff tuples. + * @private + */ + DiffMatchPatch.prototype.diffBisectSplit = function (text1, text2, x, y, deadline) { + var text1a, text1b, text2a, text2b, diffs, diffsb; + text1a = text1.substring(0, x); + text2a = text2.substring(0, y); + text1b = text1.substring(x); + text2b = text2.substring(y); + + // Compute both diffs serially. + diffs = this.DiffMain(text1a, text2a, false, deadline); + diffsb = this.DiffMain(text1b, text2b, false, deadline); + + return diffs.concat(diffsb); + }; + + /** + * Reduce the number of edits by eliminating semantically trivial equalities. + * @param {!Array.} diffs Array of diff tuples. + */ + DiffMatchPatch.prototype.diffCleanupSemantic = function (diffs) { + var changes, equalities, equalitiesLength, lastequality, pointer, lengthInsertions2, lengthDeletions2, lengthInsertions1, lengthDeletions1, deletion, insertion, overlapLength1, overlapLength2; + changes = false; + equalities = []; // Stack of indices where equalities are found. + equalitiesLength = 0; // Keeping our own length var is faster in JS. + /** @type {?string} */ + lastequality = null; + + // Always equal to diffs[equalities[equalitiesLength - 1]][1] + pointer = 0; // Index of current position. + + // Number of characters that changed prior to the equality. + lengthInsertions1 = 0; + lengthDeletions1 = 0; + + // Number of characters that changed after the equality. + lengthInsertions2 = 0; + lengthDeletions2 = 0; + while (pointer < diffs.length) { + if (diffs[pointer][0] === DIFF_EQUAL) { + // Equality found. + equalities[equalitiesLength++] = pointer; + lengthInsertions1 = lengthInsertions2; + lengthDeletions1 = lengthDeletions2; + lengthInsertions2 = 0; + lengthDeletions2 = 0; + lastequality = diffs[pointer][1]; + } else { + // An insertion or deletion. + if (diffs[pointer][0] === DIFF_INSERT) { + lengthInsertions2 += diffs[pointer][1].length; + } else { + lengthDeletions2 += diffs[pointer][1].length; + } + + // Eliminate an equality that is smaller or equal to the edits on both + // sides of it. + if (lastequality && lastequality.length <= Math.max(lengthInsertions1, lengthDeletions1) && lastequality.length <= Math.max(lengthInsertions2, lengthDeletions2)) { + + // Duplicate record. + diffs.splice(equalities[equalitiesLength - 1], 0, [DIFF_DELETE, lastequality]); + + // Change second copy to insert. + diffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT; + + // Throw away the equality we just deleted. + equalitiesLength--; + + // Throw away the previous equality (it needs to be reevaluated). + equalitiesLength--; + pointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1; + + // Reset the counters. + lengthInsertions1 = 0; + lengthDeletions1 = 0; + lengthInsertions2 = 0; + lengthDeletions2 = 0; + lastequality = null; + changes = true; + } + } + pointer++; + } + + // Normalize the diff. + if (changes) { + this.diffCleanupMerge(diffs); + } + + // Find any overlaps between deletions and insertions. + // e.g: abcxxxxxxdef + // -> abcxxxdef + // e.g: xxxabcdefxxx + // -> defxxxabc + // Only extract an overlap if it is as big as the edit ahead or behind it. + pointer = 1; + while (pointer < diffs.length) { + if (diffs[pointer - 1][0] === DIFF_DELETE && diffs[pointer][0] === DIFF_INSERT) { + deletion = diffs[pointer - 1][1]; + insertion = diffs[pointer][1]; + overlapLength1 = this.diffCommonOverlap(deletion, insertion); + overlapLength2 = this.diffCommonOverlap(insertion, deletion); + if (overlapLength1 >= overlapLength2) { + if (overlapLength1 >= deletion.length / 2 || overlapLength1 >= insertion.length / 2) { + + // Overlap found. Insert an equality and trim the surrounding edits. + diffs.splice(pointer, 0, [DIFF_EQUAL, insertion.substring(0, overlapLength1)]); + diffs[pointer - 1][1] = deletion.substring(0, deletion.length - overlapLength1); + diffs[pointer + 1][1] = insertion.substring(overlapLength1); + pointer++; + } + } else { + if (overlapLength2 >= deletion.length / 2 || overlapLength2 >= insertion.length / 2) { + + // Reverse overlap found. + // Insert an equality and swap and trim the surrounding edits. + diffs.splice(pointer, 0, [DIFF_EQUAL, deletion.substring(0, overlapLength2)]); + + diffs[pointer - 1][0] = DIFF_INSERT; + diffs[pointer - 1][1] = insertion.substring(0, insertion.length - overlapLength2); + diffs[pointer + 1][0] = DIFF_DELETE; + diffs[pointer + 1][1] = deletion.substring(overlapLength2); + pointer++; + } + } + pointer++; + } + pointer++; + } + }; + + /** + * Determine if the suffix of one string is the prefix of another. + * @param {string} text1 First string. + * @param {string} text2 Second string. + * @return {number} The number of characters common to the end of the first + * string and the start of the second string. + * @private + */ + DiffMatchPatch.prototype.diffCommonOverlap = function (text1, text2) { + var text1Length, text2Length, textLength, best, length, pattern, found; + + // Cache the text lengths to prevent multiple calls. + text1Length = text1.length; + text2Length = text2.length; + + // Eliminate the null case. + if (text1Length === 0 || text2Length === 0) { + return 0; + } + + // Truncate the longer string. + if (text1Length > text2Length) { + text1 = text1.substring(text1Length - text2Length); + } else if (text1Length < text2Length) { + text2 = text2.substring(0, text1Length); + } + textLength = Math.min(text1Length, text2Length); + + // Quick check for the worst case. + if (text1 === text2) { + return textLength; + } + + // Start by looking for a single character match + // and increase length until no match is found. + // Performance analysis: https://neil.fraser.name/news/2010/11/04/ + best = 0; + length = 1; + while (true) { + pattern = text1.substring(textLength - length); + found = text2.indexOf(pattern); + if (found === -1) { + return best; + } + length += found; + if (found === 0 || text1.substring(textLength - length) === text2.substring(0, length)) { + best = length; + length++; + } + } + }; + + /** + * Split two texts into an array of strings. Reduce the texts to a string of + * hashes where each Unicode character represents one line. + * @param {string} text1 First string. + * @param {string} text2 Second string. + * @return {{chars1: string, chars2: string, lineArray: !Array.}} + * An object containing the encoded text1, the encoded text2 and + * the array of unique strings. + * The zeroth element of the array of unique strings is intentionally blank. + * @private + */ + DiffMatchPatch.prototype.diffLinesToChars = function (text1, text2) { + var lineArray, lineHash, chars1, chars2; + lineArray = []; // E.g. lineArray[4] === 'Hello\n' + lineHash = {}; // E.g. lineHash['Hello\n'] === 4 + + // '\x00' is a valid character, but various debuggers don't like it. + // So we'll insert a junk entry to avoid generating a null character. + lineArray[0] = ""; + + /** + * Split a text into an array of strings. Reduce the texts to a string of + * hashes where each Unicode character represents one line. + * Modifies linearray and linehash through being a closure. + * @param {string} text String to encode. + * @return {string} Encoded string. + * @private + */ + function diffLinesToCharsMunge(text) { + var chars, lineStart, lineEnd, lineArrayLength, line; + chars = ""; + + // Walk the text, pulling out a substring for each line. + // text.split('\n') would would temporarily double our memory footprint. + // Modifying text would create many large strings to garbage collect. + lineStart = 0; + lineEnd = -1; + + // Keeping our own length variable is faster than looking it up. + lineArrayLength = lineArray.length; + while (lineEnd < text.length - 1) { + lineEnd = text.indexOf("\n", lineStart); + if (lineEnd === -1) { + lineEnd = text.length - 1; + } + line = text.substring(lineStart, lineEnd + 1); + lineStart = lineEnd + 1; + + var lineHashExists = lineHash.hasOwnProperty ? lineHash.hasOwnProperty(line) : lineHash[line] !== undefined; + + if (lineHashExists) { + chars += String.fromCharCode(lineHash[line]); + } else { + chars += String.fromCharCode(lineArrayLength); + lineHash[line] = lineArrayLength; + lineArray[lineArrayLength++] = line; + } + } + return chars; + } + + chars1 = diffLinesToCharsMunge(text1); + chars2 = diffLinesToCharsMunge(text2); + return { + chars1: chars1, + chars2: chars2, + lineArray: lineArray + }; + }; + + /** + * Rehydrate the text in a diff from a string of line hashes to real lines of + * text. + * @param {!Array.} diffs Array of diff tuples. + * @param {!Array.} lineArray Array of unique strings. + * @private + */ + DiffMatchPatch.prototype.diffCharsToLines = function (diffs, lineArray) { + var x, chars, text, y; + for (x = 0; x < diffs.length; x++) { + chars = diffs[x][1]; + text = []; + for (y = 0; y < chars.length; y++) { + text[y] = lineArray[chars.charCodeAt(y)]; + } + diffs[x][1] = text.join(""); + } + }; + + /** + * Reorder and merge like edit sections. Merge equalities. + * Any edit section can move as long as it doesn't cross an equality. + * @param {!Array.} diffs Array of diff tuples. + */ + DiffMatchPatch.prototype.diffCleanupMerge = function (diffs) { + var pointer, countDelete, countInsert, textInsert, textDelete, commonlength, changes, diffPointer, position; + diffs.push([DIFF_EQUAL, ""]); // Add a dummy entry at the end. + pointer = 0; + countDelete = 0; + countInsert = 0; + textDelete = ""; + textInsert = ""; + + while (pointer < diffs.length) { + switch (diffs[pointer][0]) { + case DIFF_INSERT: + countInsert++; + textInsert += diffs[pointer][1]; + pointer++; + break; + case DIFF_DELETE: + countDelete++; + textDelete += diffs[pointer][1]; + pointer++; + break; + case DIFF_EQUAL: + + // Upon reaching an equality, check for prior redundancies. + if (countDelete + countInsert > 1) { + if (countDelete !== 0 && countInsert !== 0) { + + // Factor out any common prefixes. + commonlength = this.diffCommonPrefix(textInsert, textDelete); + if (commonlength !== 0) { + if (pointer - countDelete - countInsert > 0 && diffs[pointer - countDelete - countInsert - 1][0] === DIFF_EQUAL) { + diffs[pointer - countDelete - countInsert - 1][1] += textInsert.substring(0, commonlength); + } else { + diffs.splice(0, 0, [DIFF_EQUAL, textInsert.substring(0, commonlength)]); + pointer++; + } + textInsert = textInsert.substring(commonlength); + textDelete = textDelete.substring(commonlength); + } + + // Factor out any common suffixies. + commonlength = this.diffCommonSuffix(textInsert, textDelete); + if (commonlength !== 0) { + diffs[pointer][1] = textInsert.substring(textInsert.length - commonlength) + diffs[pointer][1]; + textInsert = textInsert.substring(0, textInsert.length - commonlength); + textDelete = textDelete.substring(0, textDelete.length - commonlength); + } + } + + // Delete the offending records and add the merged ones. + if (countDelete === 0) { + diffs.splice(pointer - countInsert, countDelete + countInsert, [DIFF_INSERT, textInsert]); + } else if (countInsert === 0) { + diffs.splice(pointer - countDelete, countDelete + countInsert, [DIFF_DELETE, textDelete]); + } else { + diffs.splice(pointer - countDelete - countInsert, countDelete + countInsert, [DIFF_DELETE, textDelete], [DIFF_INSERT, textInsert]); + } + pointer = pointer - countDelete - countInsert + (countDelete ? 1 : 0) + (countInsert ? 1 : 0) + 1; + } else if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) { + + // Merge this equality with the previous one. + diffs[pointer - 1][1] += diffs[pointer][1]; + diffs.splice(pointer, 1); + } else { + pointer++; + } + countInsert = 0; + countDelete = 0; + textDelete = ""; + textInsert = ""; + break; + } + } + if (diffs[diffs.length - 1][1] === "") { + diffs.pop(); // Remove the dummy entry at the end. + } + + // Second pass: look for single edits surrounded on both sides by equalities + // which can be shifted sideways to eliminate an equality. + // e.g: ABAC -> ABAC + changes = false; + pointer = 1; + + // Intentionally ignore the first and last element (don't need checking). + while (pointer < diffs.length - 1) { + if (diffs[pointer - 1][0] === DIFF_EQUAL && diffs[pointer + 1][0] === DIFF_EQUAL) { + + diffPointer = diffs[pointer][1]; + position = diffPointer.substring(diffPointer.length - diffs[pointer - 1][1].length); + + // This is a single edit surrounded by equalities. + if (position === diffs[pointer - 1][1]) { + + // Shift the edit over the previous equality. + diffs[pointer][1] = diffs[pointer - 1][1] + diffs[pointer][1].substring(0, diffs[pointer][1].length - diffs[pointer - 1][1].length); + diffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1]; + diffs.splice(pointer - 1, 1); + changes = true; + } else if (diffPointer.substring(0, diffs[pointer + 1][1].length) === diffs[pointer + 1][1]) { + + // Shift the edit over the next equality. + diffs[pointer - 1][1] += diffs[pointer + 1][1]; + diffs[pointer][1] = diffs[pointer][1].substring(diffs[pointer + 1][1].length) + diffs[pointer + 1][1]; + diffs.splice(pointer + 1, 1); + changes = true; + } + } + pointer++; + } + + // If shifts were made, the diff needs reordering and another shift sweep. + if (changes) { + this.diffCleanupMerge(diffs); + } + }; + + return function (o, n) { + var diff, output, text; + diff = new DiffMatchPatch(); + output = diff.DiffMain(o, n); + diff.diffCleanupEfficiency(output); + text = diff.diffPrettyHtml(output); + + return text; + }; + }(); + +}((function() { return this; }()))); + +/* globals QUnit */ + +(function() { + QUnit.config.autostart = false; + QUnit.config.urlConfig.push({ id: 'nocontainer', label: 'Hide container' }); + QUnit.config.urlConfig.push({ id: 'nolint', label: 'Disable Linting' }); + QUnit.config.urlConfig.push({ id: 'dockcontainer', label: 'Dock container' }); + QUnit.config.urlConfig.push({ id: 'devmode', label: 'Development mode' }); + + QUnit.config.testTimeout = QUnit.urlParams.devmode ? null : 60000; //Default Test Timeout 60 Seconds +})(); + +(function () { + 'use strict'; + + function exists(options, message) { + var expectedCount = null; + if (typeof options === 'string') { + message = options; + } + else if (options) { + expectedCount = options.count; + } + var elements = this.findElements(); + if (expectedCount === null) { + var result = elements.length > 0; + var expected = format(this.targetDescription); + var actual = result ? expected : format(this.targetDescription, 0); + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else if (typeof expectedCount === 'number') { + var result = elements.length === expectedCount; + var actual = format(this.targetDescription, elements.length); + var expected = format(this.targetDescription, expectedCount); + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else { + throw new TypeError("Unexpected Parameter: " + expectedCount); + } + } + function format(selector, num) { + if (num === undefined || num === null) { + return "Element " + selector + " exists"; + } + else if (num === 0) { + return "Element " + selector + " does not exist"; + } + else if (num === 1) { + return "Element " + selector + " exists once"; + } + else if (num === 2) { + return "Element " + selector + " exists twice"; + } + else { + return "Element " + selector + " exists " + num + " times"; + } + } + + // imported from https://github.com/nathanboktae/chai-dom + function elementToString(el) { + if (!el) + return ''; + var desc; + if (el instanceof NodeList) { + if (el.length === 0) { + return 'empty NodeList'; + } + desc = Array.prototype.slice.call(el, 0, 5).map(elementToString).join(', '); + return el.length > 5 ? desc + "... (+" + (el.length - 5) + " more)" : desc; + } + if (!(el instanceof HTMLElement || el instanceof SVGElement)) { + return String(el); + } + desc = el.tagName.toLowerCase(); + if (el.id) { + desc += "#" + el.id; + } + if (el.className && !(el.className instanceof SVGAnimatedString)) { + desc += "." + String(el.className).replace(/\s+/g, '.'); + } + Array.prototype.forEach.call(el.attributes, function (attr) { + if (attr.name !== 'class' && attr.name !== 'id') { + desc += "[" + attr.name + (attr.value ? "=\"" + attr.value + "\"]" : ']'); + } + }); + return desc; + } + + function focused(message) { + var element = this.findTargetElement(); + if (!element) + return; + var result = document.activeElement === element; + var actual = elementToString(document.activeElement); + var expected = elementToString(this.target); + if (!message) { + message = "Element " + expected + " is focused"; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + + function notFocused(message) { + var element = this.findTargetElement(); + if (!element) + return; + var result = document.activeElement !== element; + var expected = "Element " + this.targetDescription + " is not focused"; + var actual = result ? expected : "Element " + this.targetDescription + " is focused"; + if (!message) { + message = expected; + } + this.pushResult({ result: result, message: message, actual: actual, expected: expected }); + } + + function checked(message) { + var element = this.findTargetElement(); + if (!element) + return; + var isChecked = element.checked === true; + var isNotChecked = element.checked === false; + var result = isChecked; + var hasCheckedProp = isChecked || isNotChecked; + if (!hasCheckedProp) { + var ariaChecked = element.getAttribute('aria-checked'); + if (ariaChecked !== null) { + result = ariaChecked === 'true'; + } + } + var actual = result ? 'checked' : 'not checked'; + var expected = 'checked'; + if (!message) { + message = "Element " + elementToString(this.target) + " is checked"; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + + function notChecked(message) { + var element = this.findTargetElement(); + if (!element) + return; + var isChecked = element.checked === true; + var isNotChecked = element.checked === false; + var result = !isChecked; + var hasCheckedProp = isChecked || isNotChecked; + if (!hasCheckedProp) { + var ariaChecked = element.getAttribute('aria-checked'); + if (ariaChecked !== null) { + result = ariaChecked !== 'true'; + } + } + var actual = result ? 'not checked' : 'checked'; + var expected = 'not checked'; + if (!message) { + message = "Element " + elementToString(this.target) + " is not checked"; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + + function required(message) { + var element = this.findTargetElement(); + if (!element) + return; + if (!(element instanceof HTMLInputElement || + element instanceof HTMLTextAreaElement || + element instanceof HTMLSelectElement)) { + throw new TypeError("Unexpected Element Type: " + element.toString()); + } + var result = element.required === true; + var actual = result ? 'required' : 'not required'; + var expected = 'required'; + if (!message) { + message = "Element " + elementToString(this.target) + " is required"; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + + function notRequired(message) { + var element = this.findTargetElement(); + if (!element) + return; + if (!(element instanceof HTMLInputElement || + element instanceof HTMLTextAreaElement || + element instanceof HTMLSelectElement)) { + throw new TypeError("Unexpected Element Type: " + element.toString()); + } + var result = element.required === false; + var actual = !result ? 'required' : 'not required'; + var expected = 'not required'; + if (!message) { + message = "Element " + elementToString(this.target) + " is not required"; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + + // Visible logic based on jQuery's + // https://github.com/jquery/jquery/blob/4a2bcc27f9c3ee24b3effac0fbe1285d1ee23cc5/src/css/hiddenVisibleSelectors.js#L11-L13 + function visible(el) { + if (el === null) + return false; + if (el.offsetWidth === 0 || el.offsetHeight === 0) + return false; + var clientRects = el.getClientRects(); + if (clientRects.length === 0) + return false; + for (var i = 0; i < clientRects.length; i++) { + var rect = clientRects[i]; + if (rect.width !== 0 && rect.height !== 0) + return true; + } + return false; + } + + function isVisible(options, message) { + var expectedCount = null; + if (typeof options === 'string') { + message = options; + } + else if (options) { + expectedCount = options.count; + } + var elements = this.findElements().filter(visible); + if (expectedCount === null) { + var result = elements.length > 0; + var expected = format$1(this.targetDescription); + var actual = result ? expected : format$1(this.targetDescription, 0); + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else if (typeof expectedCount === 'number') { + var result = elements.length === expectedCount; + var actual = format$1(this.targetDescription, elements.length); + var expected = format$1(this.targetDescription, expectedCount); + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else { + throw new TypeError("Unexpected Parameter: " + expectedCount); + } + } + function format$1(selector, num) { + if (num === undefined || num === null) { + return "Element " + selector + " is visible"; + } + else if (num === 0) { + return "Element " + selector + " is not visible"; + } + else if (num === 1) { + return "Element " + selector + " is visible once"; + } + else if (num === 2) { + return "Element " + selector + " is visible twice"; + } + else { + return "Element " + selector + " is visible " + num + " times"; + } + } + + function isDisabled(message, options) { + if (options === void 0) { options = {}; } + var inverted = options.inverted; + var element = this.findTargetElement(); + if (!element) + return; + if (!(element instanceof HTMLInputElement || + element instanceof HTMLTextAreaElement || + element instanceof HTMLSelectElement || + element instanceof HTMLButtonElement || + element instanceof HTMLOptGroupElement || + element instanceof HTMLOptionElement || + element instanceof HTMLFieldSetElement)) { + throw new TypeError("Unexpected Element Type: " + element.toString()); + } + var result = element.disabled === !inverted; + var actual = element.disabled === false + ? "Element " + this.targetDescription + " is not disabled" + : "Element " + this.targetDescription + " is disabled"; + var expected = inverted + ? "Element " + this.targetDescription + " is not disabled" + : "Element " + this.targetDescription + " is disabled"; + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + + function matchesSelector(elements, compareSelector) { + var failures = elements.filter(function (it) { return !it.matches(compareSelector); }); + return failures.length; + } + + function collapseWhitespace(string) { + return string + .replace(/[\t\r\n]/g, ' ') + .replace(/ +/g, ' ') + .replace(/^ /, '') + .replace(/ $/, ''); + } + + /** + * This function can be used to convert a NodeList to a regular array. + * We should be using `Array.from()` for this, but IE11 doesn't support that :( + * + * @private + */ + function toArray(list) { + return Array.prototype.slice.call(list); + } + + var DOMAssertions = /** @class */ (function () { + function DOMAssertions(target, rootElement, testContext) { + this.target = target; + this.rootElement = rootElement; + this.testContext = testContext; + } + /** + * Assert an {@link HTMLElement} (or multiple) matching the `selector` exists. + * + * @param {object?} options + * @param {number?} options.count + * @param {string?} message + * + * @example + * assert.dom('#title').exists(); + * assert.dom('.choice').exists({ count: 4 }); + * + * @see {@link #doesNotExist} + */ + DOMAssertions.prototype.exists = function (options, message) { + exists.call(this, options, message); + return this; + }; + /** + * Assert an {@link HTMLElement} matching the `selector` does not exists. + * + * @param {string?} message + * + * @example + * assert.dom('.should-not-exist').doesNotExist(); + * + * @see {@link #exists} + */ + DOMAssertions.prototype.doesNotExist = function (message) { + exists.call(this, { count: 0 }, message); + return this; + }; + /** + * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the + * `selector` is currently checked. + * + * Note: This also supports `aria-checked="true/false"`. + * + * @param {string?} message + * + * @example + * assert.dom('input.active').isChecked(); + * + * @see {@link #isNotChecked} + */ + DOMAssertions.prototype.isChecked = function (message) { + checked.call(this, message); + return this; + }; + /** + * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the + * `selector` is currently unchecked. + * + * Note: This also supports `aria-checked="true/false"`. + * + * @param {string?} message + * + * @example + * assert.dom('input.active').isNotChecked(); + * + * @see {@link #isChecked} + */ + DOMAssertions.prototype.isNotChecked = function (message) { + notChecked.call(this, message); + return this; + }; + /** + * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the + * `selector` is currently focused. + * + * @param {string?} message + * + * @example + * assert.dom('input.email').isFocused(); + * + * @see {@link #isNotFocused} + */ + DOMAssertions.prototype.isFocused = function (message) { + focused.call(this, message); + return this; + }; + /** + * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the + * `selector` is not currently focused. + * + * @param {string?} message + * + * @example + * assert.dom('input[type="password"]').isNotFocused(); + * + * @see {@link #isFocused} + */ + DOMAssertions.prototype.isNotFocused = function (message) { + notFocused.call(this, message); + return this; + }; + /** + * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the + * `selector` is currently required. + * + * @param {string?} message + * + * @example + * assert.dom('input[type="text"]').isRequired(); + * + * @see {@link #isNotRequired} + */ + DOMAssertions.prototype.isRequired = function (message) { + required.call(this, message); + return this; + }; + /** + * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the + * `selector` is currently not required. + * + * @param {string?} message + * + * @example + * assert.dom('input[type="text"]').isNotRequired(); + * + * @see {@link #isRequired} + */ + DOMAssertions.prototype.isNotRequired = function (message) { + notRequired.call(this, message); + return this; + }; + /** + * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the + * `selector` exists and is visible. + * + * Visibility is determined by asserting that: + * + * - the element's offsetWidth and offsetHeight are non-zero + * - any of the element's DOMRect objects have a non-zero size + * + * Additionally, visibility in this case means that the element is visible on the page, + * but not necessarily in the viewport. + * + * @param {object?} options + * @param {number?} options.count + * @param {string?} message + * + * @example + * assert.dom('#title').isVisible(); + * assert.dom('.choice').isVisible({ count: 4 }); + * + * @see {@link #isNotVisible} + */ + DOMAssertions.prototype.isVisible = function (options, message) { + isVisible.call(this, options, message); + return this; + }; + /** + * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the + * `selector` does not exist or is not visible on the page. + * + * Visibility is determined by asserting that: + * + * - the element's offsetWidth or offsetHeight are zero + * - all of the element's DOMRect objects have a size of zero + * + * Additionally, visibility in this case means that the element is visible on the page, + * but not necessarily in the viewport. + * + * @param {string?} message + * + * @example + * assert.dom('.foo').isNotVisible(); + * + * @see {@link #isVisible} + */ + DOMAssertions.prototype.isNotVisible = function (message) { + isVisible.call(this, { count: 0 }, message); + return this; + }; + /** + * Assert that the {@link HTMLElement} has an attribute with the provided `name` + * and optionally checks if the attribute `value` matches the provided text + * or regular expression. + * + * @param {string} name + * @param {string|RegExp|object?} value + * @param {string?} message + * + * @example + * assert.dom('input.password-input').hasAttribute('type', 'password'); + * + * @see {@link #doesNotHaveAttribute} + */ + DOMAssertions.prototype.hasAttribute = function (name, value, message) { + var element = this.findTargetElement(); + if (!element) + return this; + if (arguments.length === 1) { + value = { any: true }; + } + var actualValue = element.getAttribute(name); + if (value instanceof RegExp) { + var result = value.test(actualValue); + var expected = "Element " + this.targetDescription + " has attribute \"" + name + "\" with value matching " + value; + var actual = actualValue === null + ? "Element " + this.targetDescription + " does not have attribute \"" + name + "\"" + : "Element " + this.targetDescription + " has attribute \"" + name + "\" with value " + JSON.stringify(actualValue); + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else if (value.any === true) { + var result = actualValue !== null; + var expected = "Element " + this.targetDescription + " has attribute \"" + name + "\""; + var actual = result + ? expected + : "Element " + this.targetDescription + " does not have attribute \"" + name + "\""; + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else { + var result = value === actualValue; + var expected = "Element " + this.targetDescription + " has attribute \"" + name + "\" with value " + JSON.stringify(value); + var actual = actualValue === null + ? "Element " + this.targetDescription + " does not have attribute \"" + name + "\"" + : "Element " + this.targetDescription + " has attribute \"" + name + "\" with value " + JSON.stringify(actualValue); + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + return this; + }; + /** + * Assert that the {@link HTMLElement} has no attribute with the provided `name`. + * + * **Aliases:** `hasNoAttribute`, `lacksAttribute` + * + * @param {string} name + * @param {string?} message + * + * @example + * assert.dom('input.username').hasNoAttribute('disabled'); + * + * @see {@link #hasAttribute} + */ + DOMAssertions.prototype.doesNotHaveAttribute = function (name, message) { + var element = this.findTargetElement(); + if (!element) + return; + var result = !element.hasAttribute(name); + var expected = "Element " + this.targetDescription + " does not have attribute \"" + name + "\""; + var actual = expected; + if (!result) { + var value = element.getAttribute(name); + actual = "Element " + this.targetDescription + " has attribute \"" + name + "\" with value " + JSON.stringify(value); + } + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + return this; + }; + DOMAssertions.prototype.hasNoAttribute = function (name, message) { + return this.doesNotHaveAttribute(name, message); + }; + DOMAssertions.prototype.lacksAttribute = function (name, message) { + return this.doesNotHaveAttribute(name, message); + }; + /** + * Assert that the {@link HTMLElement} has an ARIA attribute with the provided + * `name` and optionally checks if the attribute `value` matches the provided + * text or regular expression. + * + * @param {string} name + * @param {string|RegExp|object?} value + * @param {string?} message + * + * @example + * assert.dom('button').hasAria('pressed', 'true'); + * + * @see {@link #hasNoAria} + */ + DOMAssertions.prototype.hasAria = function (name, value, message) { + return this.hasAttribute("aria-" + name, value, message); + }; + /** + * Assert that the {@link HTMLElement} has no ARIA attribute with the + * provided `name`. + * + * @param {string} name + * @param {string?} message + * + * @example + * assert.dom('button').doesNotHaveAria('pressed'); + * + * @see {@link #hasAria} + */ + DOMAssertions.prototype.doesNotHaveAria = function (name, message) { + return this.doesNotHaveAttribute("aria-" + name, message); + }; + /** + * Assert that the {@link HTMLElement} has a property with the provided `name` + * and checks if the property `value` matches the provided text or regular + * expression. + * + * @param {string} name + * @param {string|RegExp} value + * @param {string?} message + * + * @example + * assert.dom('input.password-input').hasProperty('type', 'password'); + * + * @see {@link #doesNotHaveProperty} + */ + DOMAssertions.prototype.hasProperty = function (name, value, message) { + var element = this.findTargetElement(); + if (!element) + return this; + var description = this.targetDescription; + var actualValue = element[name]; + if (value instanceof RegExp) { + var result = value.test(String(actualValue)); + var expected = "Element " + description + " has property \"" + name + "\" with value matching " + value; + var actual = "Element " + description + " has property \"" + name + "\" with value " + JSON.stringify(actualValue); + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else { + var result = value === actualValue; + var expected = "Element " + description + " has property \"" + name + "\" with value " + JSON.stringify(value); + var actual = "Element " + description + " has property \"" + name + "\" with value " + JSON.stringify(actualValue); + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + return this; + }; + /** + * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the + * `selector` is disabled. + * + * @param {string?} message + * + * @example + * assert.dom('.foo').isDisabled(); + * + * @see {@link #isNotDisabled} + */ + DOMAssertions.prototype.isDisabled = function (message) { + isDisabled.call(this, message); + return this; + }; + /** + * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the + * `selector` is not disabled. + * + * **Aliases:** `isEnabled` + * + * @param {string?} message + * + * @example + * assert.dom('.foo').isNotDisabled(); + * + * @see {@link #isDisabled} + */ + DOMAssertions.prototype.isNotDisabled = function (message) { + isDisabled.call(this, message, { inverted: true }); + return this; + }; + DOMAssertions.prototype.isEnabled = function (message) { + return this.isNotDisabled(message); + }; + /** + * Assert that the {@link HTMLElement} has the `expected` CSS class using + * [`classList`](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList). + * + * `expected` can also be a regular expression, and the assertion will return + * true if any of the element's CSS classes match. + * + * @param {string|RegExp} expected + * @param {string?} message + * + * @example + * assert.dom('input[type="password"]').hasClass('secret-password-input'); + * + * @example + * assert.dom('input[type="password"]').hasClass(/.*password-input/); + * + * @see {@link #doesNotHaveClass} + */ + DOMAssertions.prototype.hasClass = function (expected, message) { + var element = this.findTargetElement(); + if (!element) + return this; + var actual = element.classList.toString(); + if (expected instanceof RegExp) { + var classNames = Array.prototype.slice.call(element.classList); + var result = classNames.some(function (className) { + return expected.test(className); + }); + if (!message) { + message = "Element " + this.targetDescription + " has CSS class matching " + expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else { + var result = element.classList.contains(expected); + if (!message) { + message = "Element " + this.targetDescription + " has CSS class \"" + expected + "\""; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + return this; + }; + /** + * Assert that the {@link HTMLElement} does not have the `expected` CSS class using + * [`classList`](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList). + * + * `expected` can also be a regular expression, and the assertion will return + * true if none of the element's CSS classes match. + * + * **Aliases:** `hasNoClass`, `lacksClass` + * + * @param {string|RegExp} expected + * @param {string?} message + * + * @example + * assert.dom('input[type="password"]').doesNotHaveClass('username-input'); + * + * @example + * assert.dom('input[type="password"]').doesNotHaveClass(/username-.*-input/); + * + * @see {@link #hasClass} + */ + DOMAssertions.prototype.doesNotHaveClass = function (expected, message) { + var element = this.findTargetElement(); + if (!element) + return this; + var actual = element.classList.toString(); + if (expected instanceof RegExp) { + var classNames = Array.prototype.slice.call(element.classList); + var result = classNames.every(function (className) { + return !expected.test(className); + }); + if (!message) { + message = "Element " + this.targetDescription + " does not have CSS class matching " + expected; + } + this.pushResult({ result: result, actual: actual, expected: "not: " + expected, message: message }); + } + else { + var result = !element.classList.contains(expected); + if (!message) { + message = "Element " + this.targetDescription + " does not have CSS class \"" + expected + "\""; + } + this.pushResult({ result: result, actual: actual, expected: "not: " + expected, message: message }); + } + return this; + }; + DOMAssertions.prototype.hasNoClass = function (expected, message) { + return this.doesNotHaveClass(expected, message); + }; + DOMAssertions.prototype.lacksClass = function (expected, message) { + return this.doesNotHaveClass(expected, message); + }; + /** + * Assert that the [HTMLElement][] has the `expected` style declarations using + * [`window.getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle). + * + * @name hasStyle + * @param {object} expected + * @param {string?} message + * + * @example + * assert.dom('.progress-bar').hasStyle({ + * opacity: 1, + * display: 'block' + * }); + * + * @see {@link #hasClass} + */ + DOMAssertions.prototype.hasStyle = function (expected, message) { + return this.hasPseudoElementStyle(null, expected, message); + }; + /** + * Assert that the pseudo element for `selector` of the [HTMLElement][] has the `expected` style declarations using + * [`window.getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle). + * + * @name hasPseudoElementStyle + * @param {string} selector + * @param {object} expected + * @param {string?} message + * + * @example + * assert.dom('.progress-bar').hasPseudoElementStyle(':after', { + * content: '";"', + * }); + * + * @see {@link #hasClass} + */ + DOMAssertions.prototype.hasPseudoElementStyle = function (selector, expected, message) { + var element = this.findTargetElement(); + if (!element) + return this; + var computedStyle = window.getComputedStyle(element, selector); + var expectedProperties = Object.keys(expected); + if (expectedProperties.length <= 0) { + throw new TypeError("Missing style expectations. There must be at least one style property in the passed in expectation object."); + } + var result = expectedProperties.every(function (property) { return computedStyle[property] === expected[property]; }); + var actual = {}; + expectedProperties.forEach(function (property) { return (actual[property] = computedStyle[property]); }); + if (!message) { + var normalizedSelector = selector ? selector.replace(/^:{0,2}/, '::') : ''; + message = "Element " + this.targetDescription + normalizedSelector + " has style \"" + JSON.stringify(expected) + "\""; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + return this; + }; + /** + * Assert that the [HTMLElement][] does not have the `expected` style declarations using + * [`window.getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle). + * + * @name doesNotHaveStyle + * @param {object} expected + * @param {string?} message + * + * @example + * assert.dom('.progress-bar').doesNotHaveStyle({ + * opacity: 1, + * display: 'block' + * }); + * + * @see {@link #hasClass} + */ + DOMAssertions.prototype.doesNotHaveStyle = function (expected, message) { + return this.doesNotHavePseudoElementStyle(null, expected, message); + }; + /** + * Assert that the pseudo element for `selector` of the [HTMLElement][] does not have the `expected` style declarations using + * [`window.getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle). + * + * @name doesNotHavePseudoElementStyle + * @param {string} selector + * @param {object} expected + * @param {string?} message + * + * @example + * assert.dom('.progress-bar').doesNotHavePseudoElementStyle(':after', { + * content: '";"', + * }); + * + * @see {@link #hasClass} + */ + DOMAssertions.prototype.doesNotHavePseudoElementStyle = function (selector, expected, message) { + var element = this.findTargetElement(); + if (!element) + return this; + var computedStyle = window.getComputedStyle(element, selector); + var expectedProperties = Object.keys(expected); + if (expectedProperties.length <= 0) { + throw new TypeError("Missing style expectations. There must be at least one style property in the passed in expectation object."); + } + var result = expectedProperties.some(function (property) { return computedStyle[property] !== expected[property]; }); + var actual = {}; + expectedProperties.forEach(function (property) { return (actual[property] = computedStyle[property]); }); + if (!message) { + var normalizedSelector = selector ? selector.replace(/^:{0,2}/, '::') : ''; + message = "Element " + this.targetDescription + normalizedSelector + " does not have style \"" + JSON.stringify(expected) + "\""; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + return this; + }; + /** + * Assert that the text of the {@link HTMLElement} or an {@link HTMLElement} + * matching the `selector` matches the `expected` text, using the + * [`textContent`](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) + * attribute and stripping/collapsing whitespace. + * + * `expected` can also be a regular expression. + * + * > Note: This assertion will collapse whitespace if the type you pass in is a string. + * > If you are testing specifically for whitespace integrity, pass your expected text + * > in as a RegEx pattern. + * + * **Aliases:** `matchesText` + * + * @param {string|RegExp} expected + * @param {string?} message + * + * @example + * //

      + * // Welcome to QUnit + * //

      + * + * assert.dom('#title').hasText('Welcome to QUnit'); + * + * @example + * assert.dom('.foo').hasText(/[12]\d{3}/); + * + * @see {@link #includesText} + */ + DOMAssertions.prototype.hasText = function (expected, message) { + var element = this.findTargetElement(); + if (!element) + return this; + if (expected instanceof RegExp) { + var result = expected.test(element.textContent); + var actual = element.textContent; + if (!message) { + message = "Element " + this.targetDescription + " has text matching " + expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else if (expected.any === true) { + var result = Boolean(element.textContent); + var expected_1 = "Element " + this.targetDescription + " has a text"; + var actual = result ? expected_1 : "Element " + this.targetDescription + " has no text"; + if (!message) { + message = expected_1; + } + this.pushResult({ result: result, actual: actual, expected: expected_1, message: message }); + } + else if (typeof expected === 'string') { + expected = collapseWhitespace(expected); + var actual = collapseWhitespace(element.textContent); + var result = actual === expected; + if (!message) { + message = "Element " + this.targetDescription + " has text \"" + expected + "\""; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else { + throw new TypeError("You must pass a string or Regular Expression to \"hasText\". You passed " + expected + "."); + } + return this; + }; + DOMAssertions.prototype.matchesText = function (expected, message) { + return this.hasText(expected, message); + }; + /** + * Assert that the `textContent` property of an {@link HTMLElement} is not empty. + * + * @param {string?} message + * + * @example + * assert.dom('button.share').hasAnyText(); + * + * @see {@link #hasText} + */ + DOMAssertions.prototype.hasAnyText = function (message) { + return this.hasText({ any: true }, message); + }; + /** + * Assert that the `textContent` property of an {@link HTMLElement} is empty. + * + * @param {string?} message + * + * @example + * assert.dom('div').hasNoText(); + * + * @see {@link #hasNoText} + */ + DOMAssertions.prototype.hasNoText = function (message) { + return this.hasText('', message); + }; + /** + * Assert that the text of the {@link HTMLElement} or an {@link HTMLElement} + * matching the `selector` contains the given `text`, using the + * [`textContent`](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) + * attribute. + * + * > Note: This assertion will collapse whitespace in `textContent` before searching. + * > If you would like to assert on a string that *should* contain line breaks, tabs, + * > more than one space in a row, or starting/ending whitespace, use the {@link #hasText} + * > selector and pass your expected text in as a RegEx pattern. + * + * **Aliases:** `containsText`, `hasTextContaining` + * + * @param {string} text + * @param {string?} message + * + * @example + * assert.dom('#title').includesText('Welcome'); + * + * @see {@link #hasText} + */ + DOMAssertions.prototype.includesText = function (text, message) { + var element = this.findTargetElement(); + if (!element) + return this; + var collapsedText = collapseWhitespace(element.textContent); + var result = collapsedText.indexOf(text) !== -1; + var actual = collapsedText; + var expected = text; + if (!message) { + message = "Element " + this.targetDescription + " has text containing \"" + text + "\""; + } + if (!result && text !== collapseWhitespace(text)) { + console.warn('The `.includesText()`, `.containsText()`, and `.hasTextContaining()` assertions collapse whitespace. The text you are checking for contains whitespace that may have made your test fail incorrectly. Try the `.hasText()` assertion passing in your expected text as a RegExp pattern. Your text:\n' + + text); + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + return this; + }; + DOMAssertions.prototype.containsText = function (expected, message) { + return this.includesText(expected, message); + }; + DOMAssertions.prototype.hasTextContaining = function (expected, message) { + return this.includesText(expected, message); + }; + /** + * Assert that the text of the {@link HTMLElement} or an {@link HTMLElement} + * matching the `selector` does not include the given `text`, using the + * [`textContent`](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent) + * attribute. + * + * **Aliases:** `doesNotContainText`, `doesNotHaveTextContaining` + * + * @param {string} text + * @param {string?} message + * + * @example + * assert.dom('#title').doesNotIncludeText('Welcome'); + */ + DOMAssertions.prototype.doesNotIncludeText = function (text, message) { + var element = this.findTargetElement(); + if (!element) + return this; + var collapsedText = collapseWhitespace(element.textContent); + var result = collapsedText.indexOf(text) === -1; + var expected = "Element " + this.targetDescription + " does not include text \"" + text + "\""; + var actual = expected; + if (!result) { + actual = "Element " + this.targetDescription + " includes text \"" + text + "\""; + } + if (!message) { + message = expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + return this; + }; + DOMAssertions.prototype.doesNotContainText = function (unexpected, message) { + return this.doesNotIncludeText(unexpected, message); + }; + DOMAssertions.prototype.doesNotHaveTextContaining = function (unexpected, message) { + return this.doesNotIncludeText(unexpected, message); + }; + /** + * Assert that the `value` property of an {@link HTMLInputElement} matches + * the `expected` text or regular expression. + * + * If no `expected` value is provided, the assertion will fail if the + * `value` is an empty string. + * + * @param {string|RegExp|object?} expected + * @param {string?} message + * + * @example + * assert.dom('input.username').hasValue('HSimpson'); + + * @see {@link #hasAnyValue} + * @see {@link #hasNoValue} + */ + DOMAssertions.prototype.hasValue = function (expected, message) { + var element = this.findTargetElement(); + if (!element) + return this; + if (arguments.length === 0) { + expected = { any: true }; + } + var value = element.value; + if (expected instanceof RegExp) { + var result = expected.test(value); + var actual = value; + if (!message) { + message = "Element " + this.targetDescription + " has value matching " + expected; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + else if (expected.any === true) { + var result = Boolean(value); + var expected_2 = "Element " + this.targetDescription + " has a value"; + var actual = result ? expected_2 : "Element " + this.targetDescription + " has no value"; + if (!message) { + message = expected_2; + } + this.pushResult({ result: result, actual: actual, expected: expected_2, message: message }); + } + else { + var actual = value; + var result = actual === expected; + if (!message) { + message = "Element " + this.targetDescription + " has value \"" + expected + "\""; + } + this.pushResult({ result: result, actual: actual, expected: expected, message: message }); + } + return this; + }; + /** + * Assert that the `value` property of an {@link HTMLInputElement} is not empty. + * + * @param {string?} message + * + * @example + * assert.dom('input.username').hasAnyValue(); + * + * @see {@link #hasValue} + * @see {@link #hasNoValue} + */ + DOMAssertions.prototype.hasAnyValue = function (message) { + return this.hasValue({ any: true }, message); + }; + /** + * Assert that the `value` property of an {@link HTMLInputElement} is empty. + * + * **Aliases:** `lacksValue` + * + * @param {string?} message + * + * @example + * assert.dom('input.username').hasNoValue(); + * + * @see {@link #hasValue} + * @see {@link #hasAnyValue} + */ + DOMAssertions.prototype.hasNoValue = function (message) { + return this.hasValue('', message); + }; + DOMAssertions.prototype.lacksValue = function (message) { + return this.hasNoValue(message); + }; + /** + * Assert that the target selector selects only Elements that are also selected by + * compareSelector. + * + * @param {string} compareSelector + * @param {string?} message + * + * @example + * assert.dom('p.red').matchesSelector('div.wrapper p:last-child') + */ + DOMAssertions.prototype.matchesSelector = function (compareSelector, message) { + var targetElements = this.target instanceof Element ? [this.target] : this.findElements(); + var targets = targetElements.length; + var matchFailures = matchesSelector(targetElements, compareSelector); + var singleElement = targets === 1; + var selectedByPart = this.target instanceof Element ? 'passed' : "selected by " + this.target; + var actual; + var expected; + if (matchFailures === 0) { + // no failures matching. + if (!message) { + message = singleElement + ? "The element " + selectedByPart + " also matches the selector " + compareSelector + "." + : targets + " elements, selected by " + this.target + ", also match the selector " + compareSelector + "."; + } + actual = expected = message; + this.pushResult({ result: true, actual: actual, expected: expected, message: message }); + } + else { + var difference = targets - matchFailures; + // there were failures when matching. + if (!message) { + message = singleElement + ? "The element " + selectedByPart + " did not also match the selector " + compareSelector + "." + : matchFailures + " out of " + targets + " elements selected by " + this.target + " did not also match the selector " + compareSelector + "."; + } + actual = singleElement ? message : difference + " elements matched " + compareSelector + "."; + expected = singleElement + ? "The element should have matched " + compareSelector + "." + : targets + " elements should have matched " + compareSelector + "."; + this.pushResult({ result: false, actual: actual, expected: expected, message: message }); + } + return this; + }; + /** + * Assert that the target selector selects only Elements that are not also selected by + * compareSelector. + * + * @param {string} compareSelector + * @param {string?} message + * + * @example + * assert.dom('input').doesNotMatchSelector('input[disabled]') + */ + DOMAssertions.prototype.doesNotMatchSelector = function (compareSelector, message) { + var targetElements = this.target instanceof Element ? [this.target] : this.findElements(); + var targets = targetElements.length; + var matchFailures = matchesSelector(targetElements, compareSelector); + var singleElement = targets === 1; + var selectedByPart = this.target instanceof Element ? 'passed' : "selected by " + this.target; + var actual; + var expected; + if (matchFailures === targets) { + // the assertion is successful because no element matched the other selector. + if (!message) { + message = singleElement + ? "The element " + selectedByPart + " did not also match the selector " + compareSelector + "." + : targets + " elements, selected by " + this.target + ", did not also match the selector " + compareSelector + "."; + } + actual = expected = message; + this.pushResult({ result: true, actual: actual, expected: expected, message: message }); + } + else { + var difference = targets - matchFailures; + // the assertion fails because at least one element matched the other selector. + if (!message) { + message = singleElement + ? "The element " + selectedByPart + " must not also match the selector " + compareSelector + "." + : difference + " elements out of " + targets + ", selected by " + this.target + ", must not also match the selector " + compareSelector + "."; + } + actual = singleElement + ? "The element " + selectedByPart + " matched " + compareSelector + "." + : matchFailures + " elements did not match " + compareSelector + "."; + expected = singleElement + ? message + : targets + " elements should not have matched " + compareSelector + "."; + this.pushResult({ result: false, actual: actual, expected: expected, message: message }); + } + return this; + }; + /** + * Assert that the tagName of the {@link HTMLElement} or an {@link HTMLElement} + * matching the `selector` matches the `expected` tagName, using the + * [`tagName`](https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName) + * property of the {@link HTMLElement}. + * + * @param {string} expected + * @param {string?} message + * + * @example + * //

      + * // Title + * //

      + * + * assert.dom('#title').hasTagName('h1'); + */ + DOMAssertions.prototype.hasTagName = function (tagName, message) { + var element = this.findTargetElement(); + var actual; + var expected; + if (!element) + return this; + if (typeof tagName !== 'string') { + throw new TypeError("You must pass a string to \"hasTagName\". You passed " + tagName + "."); + } + actual = element.tagName.toLowerCase(); + expected = tagName.toLowerCase(); + if (actual === expected) { + if (!message) { + message = "Element " + this.targetDescription + " has tagName " + expected; + } + this.pushResult({ result: true, actual: actual, expected: expected, message: message }); + } + else { + if (!message) { + message = "Element " + this.targetDescription + " does not have tagName " + expected; + } + this.pushResult({ result: false, actual: actual, expected: expected, message: message }); + } + return this; + }; + /** + * Assert that the tagName of the {@link HTMLElement} or an {@link HTMLElement} + * matching the `selector` does not match the `expected` tagName, using the + * [`tagName`](https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName) + * property of the {@link HTMLElement}. + * + * @param {string} expected + * @param {string?} message + * + * @example + * //
      + * // Title + * //
      + * + * assert.dom('section#block').doesNotHaveTagName('div'); + */ + DOMAssertions.prototype.doesNotHaveTagName = function (tagName, message) { + var element = this.findTargetElement(); + var actual; + var expected; + if (!element) + return this; + if (typeof tagName !== 'string') { + throw new TypeError("You must pass a string to \"doesNotHaveTagName\". You passed " + tagName + "."); + } + actual = element.tagName.toLowerCase(); + expected = tagName.toLowerCase(); + if (actual !== expected) { + if (!message) { + message = "Element " + this.targetDescription + " does not have tagName " + expected; + } + this.pushResult({ result: true, actual: actual, expected: expected, message: message }); + } + else { + if (!message) { + message = "Element " + this.targetDescription + " has tagName " + expected; + } + this.pushResult({ result: false, actual: actual, expected: expected, message: message }); + } + return this; + }; + /** + * @private + */ + DOMAssertions.prototype.pushResult = function (result) { + this.testContext.pushResult(result); + }; + /** + * Finds a valid HTMLElement from target, or pushes a failing assertion if a valid + * element is not found. + * @private + * @returns (HTMLElement|null) a valid HTMLElement, or null + */ + DOMAssertions.prototype.findTargetElement = function () { + var el = this.findElement(); + if (el === null) { + var message = "Element " + (this.target || '') + " should exist"; + this.pushResult({ message: message, result: false, actual: undefined, expected: undefined }); + return null; + } + return el; + }; + /** + * Finds a valid HTMLElement from target + * @private + * @returns (HTMLElement|null) a valid HTMLElement, or null + * @throws TypeError will be thrown if target is an unrecognized type + */ + DOMAssertions.prototype.findElement = function () { + if (this.target === null) { + return null; + } + else if (typeof this.target === 'string') { + return this.rootElement.querySelector(this.target); + } + else if (this.target instanceof Element) { + return this.target; + } + else { + throw new TypeError("Unexpected Parameter: " + this.target); + } + }; + /** + * Finds a collection of Element instances from target using querySelectorAll + * @private + * @returns (Element[]) an array of Element instances + * @throws TypeError will be thrown if target is an unrecognized type + */ + DOMAssertions.prototype.findElements = function () { + if (this.target === null) { + return []; + } + else if (typeof this.target === 'string') { + return toArray(this.rootElement.querySelectorAll(this.target)); + } + else if (this.target instanceof Element) { + return [this.target]; + } + else { + throw new TypeError("Unexpected Parameter: " + this.target); + } + }; + Object.defineProperty(DOMAssertions.prototype, "targetDescription", { + /** + * @private + */ + get: function () { + return elementToString(this.target); + }, + enumerable: true, + configurable: true + }); + return DOMAssertions; + }()); + + /* global QUnit */ + QUnit.assert.dom = function (target, rootElement) { + if (!isValidRootElement(rootElement)) { + throw new Error(rootElement + " is not a valid root element"); + } + rootElement = rootElement || this.dom.rootElement || document; + return new DOMAssertions(target || rootElement, rootElement, this); + }; + function isValidRootElement(element) { + return (!element || + (typeof element === 'object' && + typeof element.querySelector === 'function' && + typeof element.querySelectorAll === 'function')); + } + +}()); + +Object.defineProperty(QUnit.assert.dom, 'rootElement', { + get: function() { + return document.querySelector('#ember-testing'); + }, + enumerable: true, + configurable: true, +}); + +define("@ember/test-helpers/-internal/debug-info-helpers", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = registerDebugInfoHelper; + _exports.debugInfoHelpers = void 0; + const debugInfoHelpers = new Set(); + /** + * Registers a custom debug info helper to augment the output for test isolation validation. + * + * @public + * @param {DebugInfoHelper} debugHelper a custom debug info helper + * @example + * + * import { registerDebugInfoHelper } from '@ember/test-helpers'; + * + * registerDebugInfoHelper({ + * name: 'Date override detection', + * log() { + * if (dateIsOverridden()) { + * console.log(this.name); + * console.log('The date object has been overridden'); + * } + * } + * }) + */ + + _exports.debugInfoHelpers = debugInfoHelpers; + + function registerDebugInfoHelper(debugHelper) { + debugInfoHelpers.add(debugHelper); + } +}); +define("@ember/test-helpers/-internal/debug-info", ["exports", "@ember/test-helpers/-internal/debug-info-helpers", "ember-test-waiters"], function (_exports, _debugInfoHelpers, _emberTestWaiters) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.backburnerDebugInfoAvailable = backburnerDebugInfoAvailable; + _exports.getDebugInfo = getDebugInfo; + _exports.TestDebugInfo = void 0; + const PENDING_AJAX_REQUESTS = 'Pending AJAX requests'; + const PENDING_TEST_WAITERS = 'Pending test waiters'; + const SCHEDULED_ASYNC = 'Scheduled async'; + const SCHEDULED_AUTORUN = 'Scheduled autorun'; + /** + * Determins if the `getDebugInfo` method is available in the + * running verison of backburner. + * + * @returns {boolean} True if `getDebugInfo` is present in backburner, otherwise false. + */ + + function backburnerDebugInfoAvailable() { + return typeof Ember.run.backburner.getDebugInfo === 'function'; + } + /** + * Retrieves debug information from backburner's current deferred actions queue (runloop instance). + * If the `getDebugInfo` method isn't available, it returns `null`. + * + * @public + * @returns {MaybeDebugInfo | null} Backburner debugInfo or, if the getDebugInfo method is not present, null + */ + + + function getDebugInfo() { + return Ember.run.backburner.DEBUG === true && backburnerDebugInfoAvailable() ? Ember.run.backburner.getDebugInfo() : null; + } + /** + * Encapsulates debug information for an individual test. Aggregates information + * from: + * - info provided by getSettledState + * - hasPendingTimers + * - hasRunLoop + * - hasPendingWaiters + * - hasPendingRequests + * - info provided by backburner's getDebugInfo method (timers, schedules, and stack trace info) + * + */ + + + class TestDebugInfo { + constructor(settledState, debugInfo = getDebugInfo()) { + this._summaryInfo = undefined; + this._settledState = settledState; + this._debugInfo = debugInfo; + } + + get summary() { + if (!this._summaryInfo) { + this._summaryInfo = Ember.assign({}, this._settledState); + + if (this._debugInfo) { + this._summaryInfo.autorunStackTrace = this._debugInfo.autorun && this._debugInfo.autorun.stack; + this._summaryInfo.pendingTimersCount = this._debugInfo.timers.length; + this._summaryInfo.hasPendingTimers = this._settledState.hasPendingTimers && this._summaryInfo.pendingTimersCount > 0; + this._summaryInfo.pendingTimersStackTraces = this._debugInfo.timers.map(timer => timer.stack); + this._summaryInfo.pendingScheduledQueueItemCount = this._debugInfo.instanceStack.filter(q => q).reduce((total, item) => { + Object.keys(item).forEach(queueName => { + total += item[queueName].length; + }); + return total; + }, 0); + this._summaryInfo.pendingScheduledQueueItemStackTraces = this._debugInfo.instanceStack.filter(q => q).reduce((stacks, deferredActionQueues) => { + Object.keys(deferredActionQueues).forEach(queue => { + deferredActionQueues[queue].forEach(queueItem => queueItem.stack && stacks.push(queueItem.stack)); + }); + return stacks; + }, []); + } + + if (this._summaryInfo.hasPendingTestWaiters) { + this._summaryInfo.pendingTestWaiterInfo = (0, _emberTestWaiters.getPendingWaiterState)(); + } + } + + return this._summaryInfo; + } + + toConsole(_console = console) { + let summary = this.summary; + + if (summary.hasPendingRequests) { + _console.log(PENDING_AJAX_REQUESTS); + } + + if (summary.hasPendingLegacyWaiters) { + _console.log(PENDING_TEST_WAITERS); + } + + if (summary.hasPendingTestWaiters) { + if (!summary.hasPendingLegacyWaiters) { + _console.log(PENDING_TEST_WAITERS); + } + + Object.keys(summary.pendingTestWaiterInfo.waiters).forEach(waiterName => { + let waiterDebugInfo = summary.pendingTestWaiterInfo.waiters[waiterName]; + + if (Array.isArray(waiterDebugInfo)) { + _console.group(waiterName); + + waiterDebugInfo.forEach(debugInfo => { + _console.log(`${debugInfo.label ? debugInfo.label : 'stack'}: ${debugInfo.stack}`); + }); + + _console.groupEnd(); + } else { + _console.log(waiterName); + } + }); + } + + if (summary.hasPendingTimers || summary.pendingScheduledQueueItemCount > 0) { + _console.group(SCHEDULED_ASYNC); + + summary.pendingTimersStackTraces.forEach(timerStack => { + _console.log(timerStack); + }); + summary.pendingScheduledQueueItemStackTraces.forEach(scheduleQueueItemStack => { + _console.log(scheduleQueueItemStack); + }); + + _console.groupEnd(); + } + + if (summary.hasRunLoop && summary.pendingTimersCount === 0 && summary.pendingScheduledQueueItemCount === 0) { + _console.log(SCHEDULED_AUTORUN); + + if (summary.autorunStackTrace) { + _console.log(summary.autorunStackTrace); + } + } + + _debugInfoHelpers.debugInfoHelpers.forEach(helper => { + helper.log(); + }); + } + + _formatCount(title, count) { + return `${title}: ${count}`; + } + + } + + _exports.TestDebugInfo = TestDebugInfo; +}); +define("@ember/test-helpers/-tuple", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = tuple; + + // eslint-disable-next-line require-jsdoc + function tuple(...args) { + return args; + } +}); +define("@ember/test-helpers/-utils", ["exports", "@ember/test-helpers/has-ember-version"], function (_exports, _hasEmberVersion) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.nextTickPromise = nextTickPromise; + _exports.runDestroyablesFor = runDestroyablesFor; + _exports.isNumeric = isNumeric; + _exports.futureTick = _exports.nextTick = _exports._Promise = void 0; + + class _Promise extends Ember.RSVP.Promise {} + + _exports._Promise = _Promise; + const ORIGINAL_RSVP_ASYNC = Ember.RSVP.configure('async'); + /* + Long ago in a galaxy far far away, Ember forced RSVP.Promise to "resolve" on the Ember.run loop. + At the time, this was meant to help ease pain with folks receiving the dreaded "auto-run" assertion + during their tests, and to help ensure that promise resolution was coelesced to avoid "thrashing" + of the DOM. Unfortunately, the result of this configuration is that code like the following behaves + differently if using native `Promise` vs `RSVP.Promise`: + + ```js + console.log('first'); + Ember.run(() => Promise.resolve().then(() => console.log('second'))); + console.log('third'); + ``` + + When `Promise` is the native promise that will log `'first', 'third', 'second'`, but when `Promise` + is an `RSVP.Promise` that will log `'first', 'second', 'third'`. The fact that `RSVP.Promise`s can + be **forced** to flush synchronously is very scary! + + Now, lets talk about why we are configuring `RSVP`'s `async` below... + + --- + + The following _should_ always be guaranteed: + + ```js + await settled(); + + isSettled() === true + ``` + + Unfortunately, without the custom `RSVP` `async` configuration we cannot ensure that `isSettled()` will + be truthy. This is due to the fact that Ember has configured `RSVP` to resolve all promises in the run + loop. What that means practically is this: + + 1. all checks within `waitUntil` (used by `settled()` internally) are completed and we are "settled" + 2. `waitUntil` resolves the promise that it returned (to signify that the world is "settled") + 3. resolving the promise (since it is an `RSVP.Promise` and Ember has configured RSVP.Promise) creates + a new Ember.run loop in order to resolve + 4. the presence of that new run loop means that we are no longer "settled" + 5. `isSettled()` returns false 😭😭😭😭😭😭😭😭😭 + + This custom `RSVP.configure('async`, ...)` below provides a way to prevent the promises that are returned + from `settled` from causing this "loop" and instead "just use normal Promise semantics". + + 😩😫🙀 + */ + + Ember.RSVP.configure('async', (callback, promise) => { + if (promise instanceof _Promise) { + // @ts-ignore - avoid erroring about useless `Promise !== RSVP.Promise` comparison + // (this handles when folks have polyfilled via Promise = Ember.RSVP.Promise) + if (typeof Promise !== 'undefined' && Promise !== Ember.RSVP.Promise) { + // use real native promise semantics whenever possible + Promise.resolve().then(() => callback(promise)); + } else { + // fallback to using RSVP's natural `asap` (**not** the fake + // one configured by Ember...) + Ember.RSVP.asap(callback, promise); + } + } else { + // fall back to the normal Ember behavior + ORIGINAL_RSVP_ASYNC(callback, promise); + } + }); + const nextTick = typeof Promise === 'undefined' ? setTimeout : cb => Promise.resolve().then(cb); + _exports.nextTick = nextTick; + const futureTick = setTimeout; + /** + @private + @returns {Promise} Promise which can not be forced to be ran synchronously + */ + + _exports.futureTick = futureTick; + + function nextTickPromise() { + // Ember 3.4 removed the auto-run assertion, in 3.4+ we can (and should) avoid the "psuedo promisey" run loop configuration + // for our `nextTickPromise` implementation. This allows us to have real microtask based next tick timing... + if ((0, _hasEmberVersion.default)(3, 4)) { + return _Promise.resolve(); + } else { + // on older Ember's fallback to RSVP.Promise + a setTimeout + return new Ember.RSVP.Promise(resolve => { + nextTick(resolve); + }); + } + } + /** + Retrieves an array of destroyables from the specified property on the object + provided, iterates that array invoking each function, then deleting the + property (clearing the array). + + @private + @param {Object} object an object to search for the destroyable array within + @param {string} property the property on the object that contains the destroyable array + */ + + + function runDestroyablesFor(object, property) { + let destroyables = object[property]; + + if (!destroyables) { + return; + } + + for (let i = 0; i < destroyables.length; i++) { + destroyables[i](); + } + + delete object[property]; + } + /** + Returns whether the passed in string consists only of numeric characters. + + @private + @param {string} n input string + @returns {boolean} whether the input string consists only of numeric characters + */ + + + function isNumeric(n) { + return !isNaN(parseFloat(n)) && isFinite(Number(n)); + } +}); +define("@ember/test-helpers/application", ["exports", "@ember/test-helpers/resolver"], function (_exports, _resolver) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.setApplication = setApplication; + _exports.getApplication = getApplication; + + var __application__; + /** + Stores the provided application instance so that tests being ran will be aware of the application under test. + + - Required by `setupApplicationContext` method. + - Used by `setupContext` and `setupRenderingContext` when present. + + @public + @param {Ember.Application} application the application that will be tested + */ + + + function setApplication(application) { + __application__ = application; + + if (!(0, _resolver.getResolver)()) { + let Resolver = application.Resolver; + let resolver = Resolver.create({ + namespace: application + }); + (0, _resolver.setResolver)(resolver); + } + } + /** + Retrieve the application instance stored by `setApplication`. + + @public + @returns {Ember.Application} the previously stored application instance under test + */ + + + function getApplication() { + return __application__; + } +}); +define("@ember/test-helpers/build-owner", ["exports", "ember-test-helpers/legacy-0-6-x/build-registry"], function (_exports, _buildRegistry) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = buildOwner; + + /** + Creates an "owner" (an object that either _is_ or duck-types like an + `Ember.ApplicationInstance`) from the provided options. + + If `options.application` is present (e.g. setup by an earlier call to + `setApplication`) an `Ember.ApplicationInstance` is built via + `application.buildInstance()`. + + If `options.application` is not present, we fall back to using + `options.resolver` instead (setup via `setResolver`). This creates a mock + "owner" by using a custom created combination of `Ember.Registry`, + `Ember.Container`, `Ember._ContainerProxyMixin`, and + `Ember._RegistryProxyMixin`. + + @private + @param {Ember.Application} [application] the Ember.Application to build an instance from + @param {Ember.Resolver} [resolver] the resolver to use to back a "mock owner" + @returns {Promise} a promise resolving to the generated "owner" + */ + function buildOwner(application, resolver) { + if (application) { + return application.boot().then(app => app.buildInstance().boot()); + } + + if (!resolver) { + throw new Error('You must set up the ember-test-helpers environment with either `setResolver` or `setApplication` before running any tests.'); + } + + let { + owner + } = (0, _buildRegistry.default)(resolver); + return Ember.RSVP.Promise.resolve(owner); + } +}); +define("@ember/test-helpers/dom/-get-element", ["exports", "@ember/test-helpers/dom/get-root-element", "@ember/test-helpers/dom/-target"], function (_exports, _getRootElement, _target) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + /** + Used internally by the DOM interaction helpers to find one element. + + @private + @param {string|Element} target the element or selector to retrieve + @returns {Element} the target or selector + */ + function getElement(target) { + if (typeof target === 'string') { + let rootElement = (0, _getRootElement.default)(); + return rootElement.querySelector(target); + } else if ((0, _target.isElement)(target) || (0, _target.isDocument)(target)) { + return target; + } else if (target instanceof Window) { + return target.document; + } else { + throw new Error('Must use an element or a selector string'); + } + } + + var _default = getElement; + _exports.default = _default; +}); +define("@ember/test-helpers/dom/-get-elements", ["exports", "@ember/test-helpers/dom/get-root-element"], function (_exports, _getRootElement) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = getElements; + + /** + Used internally by the DOM interaction helpers to find multiple elements. + + @private + @param {string} target the selector to retrieve + @returns {NodeList} the matched elements + */ + function getElements(target) { + if (typeof target === 'string') { + let rootElement = (0, _getRootElement.default)(); + return rootElement.querySelectorAll(target); + } else { + throw new Error('Must use a selector string'); + } + } +}); +define("@ember/test-helpers/dom/-is-focusable", ["exports", "@ember/test-helpers/dom/-is-form-control", "@ember/test-helpers/dom/-target"], function (_exports, _isFormControl, _target) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = isFocusable; + const FOCUSABLE_TAGS = ['A']; // eslint-disable-next-line require-jsdoc + + function isFocusableElement(element) { + return FOCUSABLE_TAGS.indexOf(element.tagName) > -1; + } + /** + @private + @param {Element} element the element to check + @returns {boolean} `true` when the element is focusable, `false` otherwise + */ + + + function isFocusable(element) { + if ((0, _target.isDocument)(element)) { + return false; + } + + if ((0, _isFormControl.default)(element) || element.isContentEditable || isFocusableElement(element)) { + return true; + } + + return element.hasAttribute('tabindex'); + } +}); +define("@ember/test-helpers/dom/-is-form-control", ["exports", "@ember/test-helpers/dom/-target"], function (_exports, _target) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = isFormControl; + const FORM_CONTROL_TAGS = ['INPUT', 'BUTTON', 'SELECT', 'TEXTAREA']; + /** + @private + @param {Element} element the element to check + @returns {boolean} `true` when the element is a form control, `false` otherwise + */ + + function isFormControl(element) { + return !(0, _target.isDocument)(element) && FORM_CONTROL_TAGS.indexOf(element.tagName) > -1 && element.type !== 'hidden'; + } +}); +define("@ember/test-helpers/dom/-target", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.isElement = isElement; + _exports.isDocument = isDocument; + + // eslint-disable-next-line require-jsdoc + function isElement(target) { + return target.nodeType === Node.ELEMENT_NODE; + } // eslint-disable-next-line require-jsdoc + + + function isDocument(target) { + return target.nodeType === Node.DOCUMENT_NODE; + } +}); +define("@ember/test-helpers/dom/-to-array", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = toArray; + + /** + @private + @param {NodeList} nodelist the nodelist to convert to an array + @returns {Array} an array + */ + function toArray(nodelist) { + let array = new Array(nodelist.length); + + for (let i = 0; i < nodelist.length; i++) { + array[i] = nodelist[i]; + } + + return array; + } +}); +define("@ember/test-helpers/dom/blur", ["exports", "@ember/test-helpers/dom/-get-element", "@ember/test-helpers/dom/fire-event", "@ember/test-helpers/settled", "@ember/test-helpers/dom/-is-focusable", "@ember/test-helpers/-utils"], function (_exports, _getElement, _fireEvent, _settled, _isFocusable, _utils) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.__blur__ = __blur__; + _exports.default = blur; + + /** + @private + @param {Element} element the element to trigger events on + */ + function __blur__(element) { + let browserIsNotFocused = document.hasFocus && !document.hasFocus(); // makes `document.activeElement` be `body`. + // If the browser is focused, it also fires a blur event + + element.blur(); // Chrome/Firefox does not trigger the `blur` event if the window + // does not have focus. If the document does not have focus then + // fire `blur` event via native event. + + if (browserIsNotFocused) { + (0, _fireEvent.default)(element, 'blur', { + bubbles: false + }); + (0, _fireEvent.default)(element, 'focusout'); + } + } + /** + Unfocus the specified target. + + Sends a number of events intending to simulate a "real" user unfocusing an + element. + + The following events are triggered (in order): + + - `blur` + - `focusout` + + The exact listing of events that are triggered may change over time as needed + to continue to emulate how actual browsers handle unfocusing a given element. + + @public + @param {string|Element} [target=document.activeElement] the element or selector to unfocus + @return {Promise} resolves when settled + + @example + + Emulating blurring an input using `blur` + + + blur('input'); + */ + + + function blur(target = document.activeElement) { + return (0, _utils.nextTickPromise)().then(() => { + let element = (0, _getElement.default)(target); + + if (!element) { + throw new Error(`Element not found when calling \`blur('${target}')\`.`); + } + + if (!(0, _isFocusable.default)(element)) { + throw new Error(`${target} is not focusable`); + } + + __blur__(element); + + return (0, _settled.default)(); + }); + } +}); +define("@ember/test-helpers/dom/click", ["exports", "@ember/test-helpers/dom/-get-element", "@ember/test-helpers/dom/fire-event", "@ember/test-helpers/dom/focus", "@ember/test-helpers/settled", "@ember/test-helpers/dom/-is-focusable", "@ember/test-helpers/-utils", "@ember/test-helpers/dom/-is-form-control"], function (_exports, _getElement, _fireEvent, _focus, _settled, _isFocusable, _utils, _isFormControl) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.__click__ = __click__; + _exports.default = click; + + /** + @private + @param {Element} element the element to click on + @param {Object} options the options to be merged into the mouse events + */ + function __click__(element, options) { + (0, _fireEvent.default)(element, 'mousedown', options); + + if ((0, _isFocusable.default)(element)) { + (0, _focus.__focus__)(element); + } + + (0, _fireEvent.default)(element, 'mouseup', options); + (0, _fireEvent.default)(element, 'click', options); + } + /** + Clicks on the specified target. + + Sends a number of events intending to simulate a "real" user clicking on an + element. + + For non-focusable elements the following events are triggered (in order): + + - `mousedown` + - `mouseup` + - `click` + + For focusable (e.g. form control) elements the following events are triggered + (in order): + + - `mousedown` + - `focus` + - `focusin` + - `mouseup` + - `click` + + The exact listing of events that are triggered may change over time as needed + to continue to emulate how actual browsers handle clicking a given element. + + Use the `options` hash to change the parameters of the [MouseEvents](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent). + You can use this to specifiy modifier keys as well. + + @public + @param {string|Element} target the element or selector to click on + @param {Object} options the options to be merged into the mouse events + @return {Promise} resolves when settled + + @example + + Emulating clicking a button using `click` + + click('button'); + + @example + + Emulating clicking a button and pressing the `shift` key simultaneously using `click` with `options`. + + + click('button', { shiftKey: true }); + */ + + + function click(target, options = {}) { + return (0, _utils.nextTickPromise)().then(() => { + if (!target) { + throw new Error('Must pass an element or selector to `click`.'); + } + + let element = (0, _getElement.default)(target); + + if (!element) { + throw new Error(`Element not found when calling \`click('${target}')\`.`); + } + + let isDisabledFormControl = (0, _isFormControl.default)(element) && element.disabled; + + if (!isDisabledFormControl) { + __click__(element, options); + } + + return (0, _settled.default)(); + }); + } +}); +define("@ember/test-helpers/dom/double-click", ["exports", "@ember/test-helpers/dom/-get-element", "@ember/test-helpers/dom/fire-event", "@ember/test-helpers/dom/focus", "@ember/test-helpers/settled", "@ember/test-helpers/dom/-is-focusable", "@ember/test-helpers/-utils"], function (_exports, _getElement, _fireEvent, _focus, _settled, _isFocusable, _utils) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.__doubleClick__ = __doubleClick__; + _exports.default = doubleClick; + + /** + @private + @param {Element} element the element to double-click on + @param {Object} options the options to be merged into the mouse events + */ + function __doubleClick__(element, options) { + (0, _fireEvent.default)(element, 'mousedown', options); + + if ((0, _isFocusable.default)(element)) { + (0, _focus.__focus__)(element); + } + + (0, _fireEvent.default)(element, 'mouseup', options); + (0, _fireEvent.default)(element, 'click', options); + (0, _fireEvent.default)(element, 'mousedown', options); + (0, _fireEvent.default)(element, 'mouseup', options); + (0, _fireEvent.default)(element, 'click', options); + (0, _fireEvent.default)(element, 'dblclick', options); + } + /** + Double-clicks on the specified target. + + Sends a number of events intending to simulate a "real" user clicking on an + element. + + For non-focusable elements the following events are triggered (in order): + + - `mousedown` + - `mouseup` + - `click` + - `mousedown` + - `mouseup` + - `click` + - `dblclick` + + For focusable (e.g. form control) elements the following events are triggered + (in order): + + - `mousedown` + - `focus` + - `focusin` + - `mouseup` + - `click` + - `mousedown` + - `mouseup` + - `click` + - `dblclick` + + The exact listing of events that are triggered may change over time as needed + to continue to emulate how actual browsers handle clicking a given element. + + Use the `options` hash to change the parameters of the [MouseEvents](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent). + + @public + @param {string|Element} target the element or selector to double-click on + @param {Object} options the options to be merged into the mouse events + @return {Promise} resolves when settled + + @example + + Emulating double clicking a button using `doubleClick` + + + doubleClick('button'); + + @example + + Emulating double clicking a button and pressing the `shift` key simultaneously using `click` with `options`. + + + doubleClick('button', { shiftKey: true }); + */ + + + function doubleClick(target, options = {}) { + return (0, _utils.nextTickPromise)().then(() => { + if (!target) { + throw new Error('Must pass an element or selector to `doubleClick`.'); + } + + let element = (0, _getElement.default)(target); + + if (!element) { + throw new Error(`Element not found when calling \`doubleClick('${target}')\`.`); + } + + __doubleClick__(element, options); + + return (0, _settled.default)(); + }); + } +}); +define("@ember/test-helpers/dom/fill-in", ["exports", "@ember/test-helpers/dom/-get-element", "@ember/test-helpers/dom/-is-form-control", "@ember/test-helpers/dom/focus", "@ember/test-helpers/settled", "@ember/test-helpers/dom/fire-event", "@ember/test-helpers/-utils"], function (_exports, _getElement, _isFormControl, _focus, _settled, _fireEvent, _utils) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = fillIn; + + /** + Fill the provided text into the `value` property (or set `.innerHTML` when + the target is a content editable element) then trigger `change` and `input` + events on the specified target. + + @public + @param {string|Element} target the element or selector to enter text into + @param {string} text the text to fill into the target element + @return {Promise} resolves when the application is settled + + @example + + Emulating filling an input with text using `fillIn` + + + fillIn('input', 'hello world'); + */ + function fillIn(target, text) { + return (0, _utils.nextTickPromise)().then(() => { + if (!target) { + throw new Error('Must pass an element or selector to `fillIn`.'); + } + + let element = (0, _getElement.default)(target); + + if (!element) { + throw new Error(`Element not found when calling \`fillIn('${target}')\`.`); + } + + let isControl = (0, _isFormControl.default)(element); + + if (!isControl && !element.isContentEditable) { + throw new Error('`fillIn` is only usable on form controls or contenteditable elements.'); + } + + if (typeof text === 'undefined' || text === null) { + throw new Error('Must provide `text` when calling `fillIn`.'); + } + + (0, _focus.__focus__)(element); + + if (isControl) { + element.value = text; + } else { + element.innerHTML = text; + } + + (0, _fireEvent.default)(element, 'input'); + (0, _fireEvent.default)(element, 'change'); + return (0, _settled.default)(); + }); + } +}); +define("@ember/test-helpers/dom/find-all", ["exports", "@ember/test-helpers/dom/-get-elements", "@ember/test-helpers/dom/-to-array"], function (_exports, _getElements, _toArray) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = findAll; + + /** + Find all elements matched by the given selector. Similar to calling + `querySelectorAll()` on the test root element, but returns an array instead + of a `NodeList`. + + @public + @param {string} selector the selector to search for + @return {Array} array of matched elements + */ + function findAll(selector) { + if (!selector) { + throw new Error('Must pass a selector to `findAll`.'); + } + + if (arguments.length > 1) { + throw new Error('The `findAll` test helper only takes a single argument.'); + } + + return (0, _toArray.default)((0, _getElements.default)(selector)); + } +}); +define("@ember/test-helpers/dom/find", ["exports", "@ember/test-helpers/dom/-get-element"], function (_exports, _getElement) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = find; + + /** + Find the first element matched by the given selector. Equivalent to calling + `querySelector()` on the test root element. + + @public + @param {string} selector the selector to search for + @return {Element} matched element or null + */ + function find(selector) { + if (!selector) { + throw new Error('Must pass a selector to `find`.'); + } + + if (arguments.length > 1) { + throw new Error('The `find` test helper only takes a single argument.'); + } + + return (0, _getElement.default)(selector); + } +}); +define("@ember/test-helpers/dom/fire-event", ["exports", "@ember/test-helpers/dom/-target", "@ember/test-helpers/-tuple"], function (_exports, _target, _tuple) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.isKeyboardEventType = isKeyboardEventType; + _exports.isMouseEventType = isMouseEventType; + _exports.isFileSelectionEventType = isFileSelectionEventType; + _exports.isFileSelectionInput = isFileSelectionInput; + _exports.default = _exports.KEYBOARD_EVENT_TYPES = void 0; + + // eslint-disable-next-line require-jsdoc + const MOUSE_EVENT_CONSTRUCTOR = (() => { + try { + new MouseEvent('test'); + return true; + } catch (e) { + return false; + } + })(); + + const DEFAULT_EVENT_OPTIONS = { + bubbles: true, + cancelable: true + }; + const KEYBOARD_EVENT_TYPES = (0, _tuple.default)('keydown', 'keypress', 'keyup'); // eslint-disable-next-line require-jsdoc + + _exports.KEYBOARD_EVENT_TYPES = KEYBOARD_EVENT_TYPES; + + function isKeyboardEventType(eventType) { + return KEYBOARD_EVENT_TYPES.indexOf(eventType) > -1; + } + + const MOUSE_EVENT_TYPES = (0, _tuple.default)('click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover'); // eslint-disable-next-line require-jsdoc + + function isMouseEventType(eventType) { + return MOUSE_EVENT_TYPES.indexOf(eventType) > -1; + } + + const FILE_SELECTION_EVENT_TYPES = (0, _tuple.default)('change'); // eslint-disable-next-line require-jsdoc + + function isFileSelectionEventType(eventType) { + return FILE_SELECTION_EVENT_TYPES.indexOf(eventType) > -1; + } // eslint-disable-next-line require-jsdoc + + + function isFileSelectionInput(element) { + return element.files; + } + /** + Internal helper used to build and dispatch events throughout the other DOM helpers. + + @private + @param {Element} element the element to dispatch the event to + @param {string} eventType the type of event + @param {Object} [options] additional properties to be set on the event + @returns {Event} the event that was dispatched + */ + + + function fireEvent(element, eventType, options = {}) { + if (!element) { + throw new Error('Must pass an element to `fireEvent`'); + } + + let event; + + if (isKeyboardEventType(eventType)) { + event = buildKeyboardEvent(eventType, options); + } else if (isMouseEventType(eventType)) { + let rect; + + if (element instanceof Window && element.document.documentElement) { + rect = element.document.documentElement.getBoundingClientRect(); + } else if ((0, _target.isDocument)(element)) { + rect = element.documentElement.getBoundingClientRect(); + } else if ((0, _target.isElement)(element)) { + rect = element.getBoundingClientRect(); + } else { + return; + } + + let x = rect.left + 1; + let y = rect.top + 1; + let simulatedCoordinates = { + screenX: x + 5, + screenY: y + 95, + clientX: x, + clientY: y + }; + event = buildMouseEvent(eventType, Ember.assign(simulatedCoordinates, options)); + } else if (isFileSelectionEventType(eventType) && isFileSelectionInput(element)) { + event = buildFileEvent(eventType, element, options); + } else { + event = buildBasicEvent(eventType, options); + } + + element.dispatchEvent(event); + return event; + } + + var _default = fireEvent; // eslint-disable-next-line require-jsdoc + + _exports.default = _default; + + function buildBasicEvent(type, options = {}) { + let event = document.createEvent('Events'); + let bubbles = options.bubbles !== undefined ? options.bubbles : true; + let cancelable = options.cancelable !== undefined ? options.cancelable : true; + delete options.bubbles; + delete options.cancelable; // bubbles and cancelable are readonly, so they can be + // set when initializing event + + event.initEvent(type, bubbles, cancelable); + Ember.assign(event, options); + return event; + } // eslint-disable-next-line require-jsdoc + + + function buildMouseEvent(type, options = {}) { + let event; + let eventOpts = Ember.assign({ + view: window + }, DEFAULT_EVENT_OPTIONS, options); + + if (MOUSE_EVENT_CONSTRUCTOR) { + event = new MouseEvent(type, eventOpts); + } else { + try { + event = document.createEvent('MouseEvents'); + event.initMouseEvent(type, eventOpts.bubbles, 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); + } catch (e) { + event = buildBasicEvent(type, options); + } + } + + return event; + } // eslint-disable-next-line require-jsdoc + + + function buildKeyboardEvent(type, options = {}) { + let eventOpts = Ember.assign({}, DEFAULT_EVENT_OPTIONS, options); + let event; + let eventMethodName; + + try { + event = new KeyboardEvent(type, eventOpts); // Property definitions are required for B/C for keyboard event usage + // If this properties are not defined, when listening for key events + // keyCode/which will be 0. Also, keyCode and which now are string + // and if app compare it with === with integer key definitions, + // there will be a fail. + // + // https://w3c.github.io/uievents/#interface-keyboardevent + // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent + + Object.defineProperty(event, 'keyCode', { + get() { + return parseInt(eventOpts.keyCode); + } + + }); + Object.defineProperty(event, 'which', { + get() { + return parseInt(eventOpts.which); + } + + }); + return event; + } catch (e) {// left intentionally blank + } + + try { + event = document.createEvent('KeyboardEvents'); + eventMethodName = 'initKeyboardEvent'; + } catch (e) {// left intentionally blank + } + + if (!event) { + try { + event = document.createEvent('KeyEvents'); + eventMethodName = 'initKeyEvent'; + } catch (e) {// left intentionally blank + } + } + + if (event && eventMethodName) { + event[eventMethodName](type, eventOpts.bubbles, eventOpts.cancelable, window, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.keyCode, eventOpts.charCode); + } else { + event = buildBasicEvent(type, options); + } + + return event; + } // eslint-disable-next-line require-jsdoc + + + function buildFileEvent(type, element, options = {}) { + let event = buildBasicEvent(type); + let files; + + if (Array.isArray(options)) { + (true && !(false) && Ember.deprecate('Passing the `options` param as an array to `triggerEvent` for file inputs is deprecated. Please pass an object with a key `files` containing the array instead.', false, { + id: 'ember-test-helpers.trigger-event.options-blob-array', + until: '2.0.0' + })); + files = options; + } else { + files = options.files; + } + + if (Array.isArray(files)) { + Object.defineProperty(files, 'item', { + value(index) { + return typeof index === 'number' ? this[index] : null; + } + + }); + Object.defineProperty(element, 'files', { + value: files, + configurable: true + }); + } + + Object.defineProperty(event, 'target', { + value: element + }); + return event; + } +}); +define("@ember/test-helpers/dom/focus", ["exports", "@ember/test-helpers/dom/-get-element", "@ember/test-helpers/dom/fire-event", "@ember/test-helpers/settled", "@ember/test-helpers/dom/-is-focusable", "@ember/test-helpers/-utils"], function (_exports, _getElement, _fireEvent, _settled, _isFocusable, _utils) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.__focus__ = __focus__; + _exports.default = focus; + + /** + @private + @param {Element} element the element to trigger events on + */ + function __focus__(element) { + let browserIsNotFocused = document.hasFocus && !document.hasFocus(); // makes `document.activeElement` be `element`. If the browser is focused, it also fires a focus event + + element.focus(); // Firefox does not trigger the `focusin` event if the window + // does not have focus. If the document does not have focus then + // fire `focusin` event as well. + + if (browserIsNotFocused) { + // if the browser is not focused the previous `el.focus()` didn't fire an event, so we simulate it + (0, _fireEvent.default)(element, 'focus', { + bubbles: false + }); + (0, _fireEvent.default)(element, 'focusin'); + } + } + /** + Focus the specified target. + + Sends a number of events intending to simulate a "real" user focusing an + element. + + The following events are triggered (in order): + + - `focus` + - `focusin` + + The exact listing of events that are triggered may change over time as needed + to continue to emulate how actual browsers handle focusing a given element. + + @public + @param {string|Element} target the element or selector to focus + @return {Promise} resolves when the application is settled + + @example + + Emulating focusing an input using `focus` + + + focus('input'); + */ + + + function focus(target) { + return (0, _utils.nextTickPromise)().then(() => { + if (!target) { + throw new Error('Must pass an element or selector to `focus`.'); + } + + let element = (0, _getElement.default)(target); + + if (!element) { + throw new Error(`Element not found when calling \`focus('${target}')\`.`); + } + + if (!(0, _isFocusable.default)(element)) { + throw new Error(`${target} is not focusable`); + } + + __focus__(element); + + return (0, _settled.default)(); + }); + } +}); +define("@ember/test-helpers/dom/get-root-element", ["exports", "@ember/test-helpers/setup-context", "@ember/test-helpers/dom/-target"], function (_exports, _setupContext, _target) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = getRootElement; + + /** + Get the root element of the application under test (usually `#ember-testing`) + + @public + @returns {Element} the root element + */ + function getRootElement() { + let context = (0, _setupContext.getContext)(); + let owner = context && context.owner; + + if (!owner) { + throw new Error('Must setup rendering context before attempting to interact with elements.'); + } + + let rootElement; // When the host app uses `setApplication` (instead of `setResolver`) the owner has + // a `rootElement` set on it with the element or id to be used + + if (owner && owner._emberTestHelpersMockOwner === undefined) { + rootElement = owner.rootElement; + } else { + rootElement = '#ember-testing'; + } + + if (rootElement instanceof Window) { + rootElement = rootElement.document; + } + + if ((0, _target.isElement)(rootElement) || (0, _target.isDocument)(rootElement)) { + return rootElement; + } else if (typeof rootElement === 'string') { + let _rootElement = document.querySelector(rootElement); + + if (_rootElement) { + return _rootElement; + } + + throw new Error(`Application.rootElement (${rootElement}) not found`); + } else { + throw new Error('Application.rootElement must be an element or a selector string'); + } + } +}); +define("@ember/test-helpers/dom/tap", ["exports", "@ember/test-helpers/dom/-get-element", "@ember/test-helpers/dom/fire-event", "@ember/test-helpers/dom/click", "@ember/test-helpers/settled", "@ember/test-helpers/-utils"], function (_exports, _getElement, _fireEvent, _click, _settled, _utils) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = tap; + + /** + Taps on the specified target. + + Sends a number of events intending to simulate a "real" user tapping on an + element. + + For non-focusable elements the following events are triggered (in order): + + - `touchstart` + - `touchend` + - `mousedown` + - `mouseup` + - `click` + + For focusable (e.g. form control) elements the following events are triggered + (in order): + + - `touchstart` + - `touchend` + - `mousedown` + - `focus` + - `focusin` + - `mouseup` + - `click` + + The exact listing of events that are triggered may change over time as needed + to continue to emulate how actual browsers handle tapping on a given element. + + Use the `options` hash to change the parameters of the tap events. + + @public + @param {string|Element} target the element or selector to tap on + @param {Object} options the options to be merged into the touch events + @return {Promise} resolves when settled + + @example + + Emulating tapping a button using `tap` + + + tap('button'); + */ + function tap(target, options = {}) { + return (0, _utils.nextTickPromise)().then(() => { + if (!target) { + throw new Error('Must pass an element or selector to `tap`.'); + } + + let element = (0, _getElement.default)(target); + + if (!element) { + throw new Error(`Element not found when calling \`tap('${target}')\`.`); + } + + let touchstartEv = (0, _fireEvent.default)(element, 'touchstart', options); + let touchendEv = (0, _fireEvent.default)(element, 'touchend', options); + + if (!touchstartEv.defaultPrevented && !touchendEv.defaultPrevented) { + (0, _click.__click__)(element, options); + } + + return (0, _settled.default)(); + }); + } +}); +define("@ember/test-helpers/dom/trigger-event", ["exports", "@ember/test-helpers/dom/-get-element", "@ember/test-helpers/dom/fire-event", "@ember/test-helpers/settled", "@ember/test-helpers/-utils"], function (_exports, _getElement, _fireEvent, _settled, _utils) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = triggerEvent; + + /** + * Triggers an event on the specified target. + * + * @public + * @param {string|Element} target the element or selector to trigger the event on + * @param {string} eventType the type of event to trigger + * @param {Object} options additional properties to be set on the event + * @return {Promise} resolves when the application is settled + * + * @example + * + * Using `triggerEvent` to upload a file + * + * When using `triggerEvent` to upload a file the `eventType` must be `change` and you must pass the + * `options` param as an object with a key `files` containing an array of + * [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob). + * + * + * triggerEvent( + * 'input.fileUpload', + * 'change', + * { files: [new Blob(['Ember Rules!'])] } + * ); + * + * + * @example + * + * Using `triggerEvent` to upload a dropped file + * + * When using `triggerEvent` to handle a dropped (via drag-and-drop) file, the `eventType` must be `drop`. Assuming your `drop` event handler uses the [DataTransfer API](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer), + * you must pass the `options` param as an object with a key of `dataTransfer`. The `options.dataTransfer` object should have a `files` key, containing an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File). + * + * + * triggerEvent( + * '[data-test-drop-zone]', + * 'drop', + * { + * dataTransfer: { + * files: [new File(['Ember Rules!', 'ember-rules.txt'])] + * } + * } + * ) + */ + function triggerEvent(target, eventType, options) { + return (0, _utils.nextTickPromise)().then(() => { + if (!target) { + throw new Error('Must pass an element or selector to `triggerEvent`.'); + } + + let element = (0, _getElement.default)(target); + + if (!element) { + throw new Error(`Element not found when calling \`triggerEvent('${target}', ...)\`.`); + } + + if (!eventType) { + throw new Error(`Must provide an \`eventType\` to \`triggerEvent\``); + } + + (0, _fireEvent.default)(element, eventType, options); + return (0, _settled.default)(); + }); + } +}); +define("@ember/test-helpers/dom/trigger-key-event", ["exports", "@ember/test-helpers/dom/-get-element", "@ember/test-helpers/dom/fire-event", "@ember/test-helpers/settled", "@ember/test-helpers/-utils"], function (_exports, _getElement, _fireEvent, _settled, _utils) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.__triggerKeyEvent__ = __triggerKeyEvent__; + _exports.default = triggerKeyEvent; + const DEFAULT_MODIFIERS = Object.freeze({ + ctrlKey: false, + altKey: false, + shiftKey: false, + metaKey: false + }); // This is not a comprehensive list, but it is better than nothing. + + const keyFromKeyCode = { + 8: 'Backspace', + 9: 'Tab', + 13: 'Enter', + 16: 'Shift', + 17: 'Control', + 18: 'Alt', + 20: 'CapsLock', + 27: 'Escape', + 32: ' ', + 37: 'ArrowLeft', + 38: 'ArrowUp', + 39: 'ArrowRight', + 40: 'ArrowDown', + 48: '0', + 49: '1', + 50: '2', + 51: '3', + 52: '4', + 53: '5', + 54: '6', + 55: '7', + 56: '8', + 57: '9', + 65: 'a', + 66: 'b', + 67: 'c', + 68: 'd', + 69: 'e', + 70: 'f', + 71: 'g', + 72: 'h', + 73: 'i', + 74: 'j', + 75: 'k', + 76: 'l', + 77: 'm', + 78: 'n', + 79: 'o', + 80: 'p', + 81: 'q', + 82: 'r', + 83: 's', + 84: 't', + 85: 'u', + 86: 'v', + 87: 'v', + 88: 'x', + 89: 'y', + 90: 'z', + 91: 'Meta', + 93: 'Meta', + 187: '=', + 189: '-' + }; + /** + Calculates the value of KeyboardEvent#key given a keycode and the modifiers. + Note that this works if the key is pressed in combination with the shift key, but it cannot + detect if caps lock is enabled. + @param {number} keycode The keycode of the event. + @param {object} modifiers The modifiers of the event. + @returns {string} The key string for the event. + */ + + function keyFromKeyCodeAndModifiers(keycode, modifiers) { + if (keycode > 64 && keycode < 91) { + if (modifiers.shiftKey) { + return String.fromCharCode(keycode); + } else { + return String.fromCharCode(keycode).toLocaleLowerCase(); + } + } + + let key = keyFromKeyCode[keycode]; + + if (key) { + return key; + } + } + /** + * Infers the keycode from the given key + * @param {string} key The KeyboardEvent#key string + * @returns {number} The keycode for the given key + */ + + + function keyCodeFromKey(key) { + let keys = Object.keys(keyFromKeyCode); + let keyCode = keys.find(keyCode => keyFromKeyCode[Number(keyCode)] === key); + + if (!keyCode) { + keyCode = keys.find(keyCode => keyFromKeyCode[Number(keyCode)] === key.toLowerCase()); + } + + return keyCode !== undefined ? parseInt(keyCode) : undefined; + } + /** + @private + @param {Element | Document} element the element to trigger the key event on + @param {'keydown' | 'keyup' | 'keypress'} eventType the type of event to trigger + @param {number|string} key the `keyCode`(number) or `key`(string) of the event being triggered + @param {Object} [modifiers] the state of various modifier keys + */ + + + function __triggerKeyEvent__(element, eventType, key, modifiers = DEFAULT_MODIFIERS) { + let props; + + if (typeof key === 'number') { + props = { + keyCode: key, + which: key, + key: keyFromKeyCodeAndModifiers(key, modifiers) + }; + } else if (typeof key === 'string' && key.length !== 0) { + let firstCharacter = key[0]; + + if (firstCharacter !== firstCharacter.toUpperCase()) { + throw new Error(`Must provide a \`key\` to \`triggerKeyEvent\` that starts with an uppercase character but you passed \`${key}\`.`); + } + + if ((0, _utils.isNumeric)(key) && key.length > 1) { + throw new Error(`Must provide a numeric \`keyCode\` to \`triggerKeyEvent\` but you passed \`${key}\` as a string.`); + } + + let keyCode = keyCodeFromKey(key); + props = { + keyCode, + which: keyCode, + key + }; + } else { + throw new Error(`Must provide a \`key\` or \`keyCode\` to \`triggerKeyEvent\``); + } + + let options = Ember.assign(props, modifiers); + (0, _fireEvent.default)(element, eventType, options); + } + /** + Triggers a keyboard event of given type in the target element. + It also requires the developer to provide either a string with the [`key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values) + or the numeric [`keyCode`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode) of the pressed key. + Optionally the user can also provide a POJO with extra modifiers for the event. + + @public + @param {string|Element} target the element or selector to trigger the event on + @param {'keydown' | 'keyup' | 'keypress'} eventType the type of event to trigger + @param {number|string} key the `keyCode`(number) or `key`(string) of the event being triggered + @param {Object} [modifiers] the state of various modifier keys + @param {boolean} [modifiers.ctrlKey=false] if true the generated event will indicate the control key was pressed during the key event + @param {boolean} [modifiers.altKey=false] if true the generated event will indicate the alt key was pressed during the key event + @param {boolean} [modifiers.shiftKey=false] if true the generated event will indicate the shift key was pressed during the key event + @param {boolean} [modifiers.metaKey=false] if true the generated event will indicate the meta key was pressed during the key event + @return {Promise} resolves when the application is settled unless awaitSettled is false + + @example + + Emulating pressing the `ENTER` key on a button using `triggerKeyEvent` + + triggerKeyEvent('button', 'keydown', 'Enter'); + */ + + + function triggerKeyEvent(target, eventType, key, modifiers = DEFAULT_MODIFIERS) { + return (0, _utils.nextTickPromise)().then(() => { + if (!target) { + throw new Error('Must pass an element or selector to `triggerKeyEvent`.'); + } + + let element = (0, _getElement.default)(target); + + if (!element) { + throw new Error(`Element not found when calling \`triggerKeyEvent('${target}', ...)\`.`); + } + + if (!eventType) { + throw new Error(`Must provide an \`eventType\` to \`triggerKeyEvent\``); + } + + if (!(0, _fireEvent.isKeyboardEventType)(eventType)) { + let validEventTypes = _fireEvent.KEYBOARD_EVENT_TYPES.join(', '); + + throw new Error(`Must provide an \`eventType\` of ${validEventTypes} to \`triggerKeyEvent\` but you passed \`${eventType}\`.`); + } + + __triggerKeyEvent__(element, eventType, key, modifiers); + + return (0, _settled.default)(); + }); + } +}); +define("@ember/test-helpers/dom/type-in", ["exports", "@ember/test-helpers/-utils", "@ember/test-helpers/settled", "@ember/test-helpers/dom/-get-element", "@ember/test-helpers/dom/-is-form-control", "@ember/test-helpers/dom/focus", "@ember/test-helpers/dom/-is-focusable", "@ember/test-helpers/dom/fire-event", "@ember/test-helpers/dom/trigger-key-event"], function (_exports, _utils, _settled, _getElement, _isFormControl, _focus, _isFocusable, _fireEvent, _triggerKeyEvent) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = typeIn; + + /** + * Mimics character by character entry into the target `input` or `textarea` element. + * + * Allows for simulation of slow entry by passing an optional millisecond delay + * between key events. + + * The major difference between `typeIn` and `fillIn` is that `typeIn` triggers + * keyboard events as well as `input` and `change`. + * Typically this looks like `focus` -> `focusin` -> `keydown` -> `keypress` -> `keyup` -> `input` -> `change` + * per character of the passed text (this may vary on some browsers). + * + * @public + * @param {string|Element} target the element or selector to enter text into + * @param {string} text the test to fill the element with + * @param {Object} options {delay: x} (default 50) number of milliseconds to wait per keypress + * @return {Promise} resolves when the application is settled + * + * @example + * + * Emulating typing in an input using `typeIn` + * + * + * typeIn('hello world'); + */ + function typeIn(target, text, options = {}) { + return (0, _utils.nextTickPromise)().then(() => { + if (!target) { + throw new Error('Must pass an element or selector to `typeIn`.'); + } + + const element = (0, _getElement.default)(target); + + if (!element) { + throw new Error(`Element not found when calling \`typeIn('${target}')\``); + } + + if (!(0, _isFormControl.default)(element)) { + throw new Error('`typeIn` is only usable on form controls.'); + } + + if (typeof text === 'undefined' || text === null) { + throw new Error('Must provide `text` when calling `typeIn`.'); + } + + let { + delay = 50 + } = options; + + if ((0, _isFocusable.default)(element)) { + (0, _focus.__focus__)(element); + } + + return fillOut(element, text, delay).then(() => (0, _fireEvent.default)(element, 'change')).then(_settled.default); + }); + } // eslint-disable-next-line require-jsdoc + + + function fillOut(element, text, delay) { + const inputFunctions = text.split('').map(character => keyEntry(element, character)); + return inputFunctions.reduce((currentPromise, func) => { + return currentPromise.then(() => delayedExecute(delay)).then(func); + }, Ember.RSVP.Promise.resolve(undefined)); + } // eslint-disable-next-line require-jsdoc + + + function keyEntry(element, character) { + let shiftKey = character === character.toUpperCase() && character !== character.toLowerCase(); + let options = { + shiftKey + }; + let characterKey = character.toUpperCase(); + return function () { + return (0, _utils.nextTickPromise)().then(() => (0, _triggerKeyEvent.__triggerKeyEvent__)(element, 'keydown', characterKey, options)).then(() => (0, _triggerKeyEvent.__triggerKeyEvent__)(element, 'keypress', characterKey, options)).then(() => { + element.value = element.value + character; + (0, _fireEvent.default)(element, 'input'); + }).then(() => (0, _triggerKeyEvent.__triggerKeyEvent__)(element, 'keyup', characterKey, options)); + }; + } // eslint-disable-next-line require-jsdoc + + + function delayedExecute(delay) { + return new Ember.RSVP.Promise(resolve => { + setTimeout(resolve, delay); + }); + } +}); +define("@ember/test-helpers/dom/wait-for", ["exports", "@ember/test-helpers/wait-until", "@ember/test-helpers/dom/-get-element", "@ember/test-helpers/dom/-get-elements", "@ember/test-helpers/dom/-to-array", "@ember/test-helpers/-utils"], function (_exports, _waitUntil, _getElement, _getElements, _toArray, _utils) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = waitFor; + + /** + Used to wait for a particular selector to appear in the DOM. Due to the fact + that it does not wait for general settledness, this is quite useful for testing + interim DOM states (e.g. loading states, pending promises, etc). + + @param {string} selector the selector to wait for + @param {Object} [options] the options to be used + @param {number} [options.timeout=1000] the time to wait (in ms) for a match + @param {number} [options.count=null] the number of elements that should match the provided selector (null means one or more) + @return {Promise} resolves when the element(s) appear on the page + */ + function waitFor(selector, options = {}) { + return (0, _utils.nextTickPromise)().then(() => { + if (!selector) { + throw new Error('Must pass a selector to `waitFor`.'); + } + + let { + timeout = 1000, + count = null, + timeoutMessage + } = options; + + if (!timeoutMessage) { + timeoutMessage = `waitFor timed out waiting for selector "${selector}"`; + } + + let callback; + + if (count !== null) { + callback = () => { + let elements = (0, _getElements.default)(selector); + + if (elements.length === count) { + return (0, _toArray.default)(elements); + } + + return; + }; + } else { + callback = () => (0, _getElement.default)(selector); + } + + return (0, _waitUntil.default)(callback, { + timeout, + timeoutMessage + }); + }); + } +}); +define("@ember/test-helpers/global", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + /* globals global */ + var _default = (() => { + if (typeof self !== 'undefined') { + return self; + } else if (typeof window !== 'undefined') { + return window; + } else if (typeof global !== 'undefined') { + return global; + } else { + return Function('return this')(); + } + })(); + + _exports.default = _default; +}); +define("@ember/test-helpers/has-ember-version", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = hasEmberVersion; + + /** + Checks if the currently running Ember version is greater than or equal to the + specified major and minor version numbers. + + @private + @param {number} major the major version number to compare + @param {number} minor the minor version number to compare + @returns {boolean} true if the Ember version is >= MAJOR.MINOR specified, false otherwise + */ + function hasEmberVersion(major, minor) { + var numbers = Ember.VERSION.split('-')[0].split('.'); + var actualMajor = parseInt(numbers[0], 10); + var actualMinor = parseInt(numbers[1], 10); + return actualMajor > major || actualMajor === major && actualMinor >= minor; + } +}); +define("@ember/test-helpers/index", ["exports", "@ember/test-helpers/resolver", "@ember/test-helpers/application", "@ember/test-helpers/setup-context", "@ember/test-helpers/teardown-context", "@ember/test-helpers/setup-rendering-context", "@ember/test-helpers/teardown-rendering-context", "@ember/test-helpers/setup-application-context", "@ember/test-helpers/teardown-application-context", "@ember/test-helpers/settled", "@ember/test-helpers/wait-until", "@ember/test-helpers/validate-error-handler", "@ember/test-helpers/setup-onerror", "@ember/test-helpers/-internal/debug-info", "@ember/test-helpers/-internal/debug-info-helpers", "@ember/test-helpers/test-metadata", "@ember/test-helpers/dom/click", "@ember/test-helpers/dom/double-click", "@ember/test-helpers/dom/tap", "@ember/test-helpers/dom/focus", "@ember/test-helpers/dom/blur", "@ember/test-helpers/dom/trigger-event", "@ember/test-helpers/dom/trigger-key-event", "@ember/test-helpers/dom/fill-in", "@ember/test-helpers/dom/wait-for", "@ember/test-helpers/dom/get-root-element", "@ember/test-helpers/dom/find", "@ember/test-helpers/dom/find-all", "@ember/test-helpers/dom/type-in"], function (_exports, _resolver, _application, _setupContext, _teardownContext, _setupRenderingContext, _teardownRenderingContext, _setupApplicationContext, _teardownApplicationContext, _settled, _waitUntil, _validateErrorHandler, _setupOnerror, _debugInfo, _debugInfoHelpers, _testMetadata, _click, _doubleClick, _tap, _focus, _blur, _triggerEvent, _triggerKeyEvent, _fillIn, _waitFor, _getRootElement, _find, _findAll, _typeIn) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "setResolver", { + enumerable: true, + get: function () { + return _resolver.setResolver; + } + }); + Object.defineProperty(_exports, "getResolver", { + enumerable: true, + get: function () { + return _resolver.getResolver; + } + }); + Object.defineProperty(_exports, "getApplication", { + enumerable: true, + get: function () { + return _application.getApplication; + } + }); + Object.defineProperty(_exports, "setApplication", { + enumerable: true, + get: function () { + return _application.setApplication; + } + }); + Object.defineProperty(_exports, "setupContext", { + enumerable: true, + get: function () { + return _setupContext.default; + } + }); + Object.defineProperty(_exports, "getContext", { + enumerable: true, + get: function () { + return _setupContext.getContext; + } + }); + Object.defineProperty(_exports, "setContext", { + enumerable: true, + get: function () { + return _setupContext.setContext; + } + }); + Object.defineProperty(_exports, "unsetContext", { + enumerable: true, + get: function () { + return _setupContext.unsetContext; + } + }); + Object.defineProperty(_exports, "pauseTest", { + enumerable: true, + get: function () { + return _setupContext.pauseTest; + } + }); + Object.defineProperty(_exports, "resumeTest", { + enumerable: true, + get: function () { + return _setupContext.resumeTest; + } + }); + Object.defineProperty(_exports, "teardownContext", { + enumerable: true, + get: function () { + return _teardownContext.default; + } + }); + Object.defineProperty(_exports, "setupRenderingContext", { + enumerable: true, + get: function () { + return _setupRenderingContext.default; + } + }); + Object.defineProperty(_exports, "render", { + enumerable: true, + get: function () { + return _setupRenderingContext.render; + } + }); + Object.defineProperty(_exports, "clearRender", { + enumerable: true, + get: function () { + return _setupRenderingContext.clearRender; + } + }); + Object.defineProperty(_exports, "teardownRenderingContext", { + enumerable: true, + get: function () { + return _teardownRenderingContext.default; + } + }); + Object.defineProperty(_exports, "setupApplicationContext", { + enumerable: true, + get: function () { + return _setupApplicationContext.default; + } + }); + Object.defineProperty(_exports, "visit", { + enumerable: true, + get: function () { + return _setupApplicationContext.visit; + } + }); + Object.defineProperty(_exports, "currentRouteName", { + enumerable: true, + get: function () { + return _setupApplicationContext.currentRouteName; + } + }); + Object.defineProperty(_exports, "currentURL", { + enumerable: true, + get: function () { + return _setupApplicationContext.currentURL; + } + }); + Object.defineProperty(_exports, "teardownApplicationContext", { + enumerable: true, + get: function () { + return _teardownApplicationContext.default; + } + }); + Object.defineProperty(_exports, "settled", { + enumerable: true, + get: function () { + return _settled.default; + } + }); + Object.defineProperty(_exports, "isSettled", { + enumerable: true, + get: function () { + return _settled.isSettled; + } + }); + Object.defineProperty(_exports, "getSettledState", { + enumerable: true, + get: function () { + return _settled.getSettledState; + } + }); + Object.defineProperty(_exports, "waitUntil", { + enumerable: true, + get: function () { + return _waitUntil.default; + } + }); + Object.defineProperty(_exports, "validateErrorHandler", { + enumerable: true, + get: function () { + return _validateErrorHandler.default; + } + }); + Object.defineProperty(_exports, "setupOnerror", { + enumerable: true, + get: function () { + return _setupOnerror.default; + } + }); + Object.defineProperty(_exports, "resetOnerror", { + enumerable: true, + get: function () { + return _setupOnerror.resetOnerror; + } + }); + Object.defineProperty(_exports, "getDebugInfo", { + enumerable: true, + get: function () { + return _debugInfo.getDebugInfo; + } + }); + Object.defineProperty(_exports, "registerDebugInfoHelper", { + enumerable: true, + get: function () { + return _debugInfoHelpers.default; + } + }); + Object.defineProperty(_exports, "getTestMetadata", { + enumerable: true, + get: function () { + return _testMetadata.default; + } + }); + Object.defineProperty(_exports, "click", { + enumerable: true, + get: function () { + return _click.default; + } + }); + Object.defineProperty(_exports, "doubleClick", { + enumerable: true, + get: function () { + return _doubleClick.default; + } + }); + Object.defineProperty(_exports, "tap", { + enumerable: true, + get: function () { + return _tap.default; + } + }); + Object.defineProperty(_exports, "focus", { + enumerable: true, + get: function () { + return _focus.default; + } + }); + Object.defineProperty(_exports, "blur", { + enumerable: true, + get: function () { + return _blur.default; + } + }); + Object.defineProperty(_exports, "triggerEvent", { + enumerable: true, + get: function () { + return _triggerEvent.default; + } + }); + Object.defineProperty(_exports, "triggerKeyEvent", { + enumerable: true, + get: function () { + return _triggerKeyEvent.default; + } + }); + Object.defineProperty(_exports, "fillIn", { + enumerable: true, + get: function () { + return _fillIn.default; + } + }); + Object.defineProperty(_exports, "waitFor", { + enumerable: true, + get: function () { + return _waitFor.default; + } + }); + Object.defineProperty(_exports, "getRootElement", { + enumerable: true, + get: function () { + return _getRootElement.default; + } + }); + Object.defineProperty(_exports, "find", { + enumerable: true, + get: function () { + return _find.default; + } + }); + Object.defineProperty(_exports, "findAll", { + enumerable: true, + get: function () { + return _findAll.default; + } + }); + Object.defineProperty(_exports, "typeIn", { + enumerable: true, + get: function () { + return _typeIn.default; + } + }); +}); +define("@ember/test-helpers/resolver", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.setResolver = setResolver; + _exports.getResolver = getResolver; + + var __resolver__; + /** + Stores the provided resolver instance so that tests being ran can resolve + objects in the same way as a normal application. + + Used by `setupContext` and `setupRenderingContext` as a fallback when `setApplication` was _not_ used. + + @public + @param {Ember.Resolver} resolver the resolver to be used for testing + */ + + + function setResolver(resolver) { + __resolver__ = resolver; + } + /** + Retrieve the resolver instance stored by `setResolver`. + + @public + @returns {Ember.Resolver} the previously stored resolver + */ + + + function getResolver() { + return __resolver__; + } +}); +define("@ember/test-helpers/settled", ["exports", "@ember/test-helpers/-utils", "@ember/test-helpers/wait-until", "@ember/test-helpers/setup-application-context", "ember-test-waiters", "@ember/test-helpers/-internal/debug-info"], function (_exports, _utils, _waitUntil, _setupApplicationContext, _emberTestWaiters, _debugInfo) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports._teardownAJAXHooks = _teardownAJAXHooks; + _exports._setupAJAXHooks = _setupAJAXHooks; + _exports.getSettledState = getSettledState; + _exports.isSettled = isSettled; + _exports.default = settled; + + // Ember internally tracks AJAX requests in the same way that we do here for + // legacy style "acceptance" tests using the `ember-testing.js` asset provided + // by emberjs/ember.js itself. When `@ember/test-helpers`'s `settled` utility + // is used in a legacy acceptance test context any pending AJAX requests are + // not properly considered during the `isSettled` check below. + // + // This utilizes a local utility method present in Ember since around 2.8.0 to + // properly consider pending AJAX requests done within legacy acceptance tests. + const _internalPendingRequests = (() => { + let loader = Ember.__loader; + + if (loader.registry['ember-testing/test/pending_requests']) { + // Ember <= 3.1 + return loader.require('ember-testing/test/pending_requests').pendingRequests; + } else if (loader.registry['ember-testing/lib/test/pending_requests']) { + // Ember >= 3.2 + return loader.require('ember-testing/lib/test/pending_requests').pendingRequests; + } + + return () => 0; + })(); + + let requests; + /** + @private + @returns {number} the count of pending requests + */ + + function pendingRequests() { + let localRequestsPending = requests !== undefined ? requests.length : 0; + + let internalRequestsPending = _internalPendingRequests(); + + return localRequestsPending + internalRequestsPending; + } + /** + @private + @param {Event} event (unused) + @param {XMLHTTPRequest} xhr the XHR that has initiated a request + */ + + + function incrementAjaxPendingRequests(event, xhr) { + requests.push(xhr); + } + /** + @private + @param {Event} event (unused) + @param {XMLHTTPRequest} xhr the XHR that has initiated a request + */ + + + function decrementAjaxPendingRequests(event, xhr) { + // In most Ember versions to date (current version is 2.16) RSVP promises are + // configured to flush in the actions queue of the Ember run loop, however it + // is possible that in the future this changes to use "true" micro-task + // queues. + // + // The entire point here, is that _whenever_ promises are resolved will be + // before the next run of the JS event loop. Then in the next event loop this + // counter will decrement. In the specific case of AJAX, this means that any + // promises chained off of `$.ajax` will properly have their `.then` called + // _before_ this is decremented (and testing continues) + (0, _utils.nextTick)(() => { + for (let i = 0; i < requests.length; i++) { + if (xhr === requests[i]) { + requests.splice(i, 1); + } + } + }, 0); + } + /** + Clears listeners that were previously setup for `ajaxSend` and `ajaxComplete`. + + @private + */ + + + function _teardownAJAXHooks() { + // jQuery will not invoke `ajaxComplete` if + // 1. `transport.send` throws synchronously and + // 2. it has an `error` option which also throws synchronously + // We can no longer handle any remaining requests + requests = []; + + if (typeof jQuery === 'undefined') { + return; + } + + jQuery(document).off('ajaxSend', incrementAjaxPendingRequests); + jQuery(document).off('ajaxComplete', decrementAjaxPendingRequests); + } + /** + Sets up listeners for `ajaxSend` and `ajaxComplete`. + + @private + */ + + + function _setupAJAXHooks() { + requests = []; + + if (typeof jQuery === 'undefined') { + return; + } + + jQuery(document).on('ajaxSend', incrementAjaxPendingRequests); + jQuery(document).on('ajaxComplete', decrementAjaxPendingRequests); + } + + let _internalCheckWaiters; + + let loader = Ember.__loader; + + if (loader.registry['ember-testing/test/waiters']) { + // Ember <= 3.1 + _internalCheckWaiters = loader.require('ember-testing/test/waiters').checkWaiters; + } else if (loader.registry['ember-testing/lib/test/waiters']) { + // Ember >= 3.2 + _internalCheckWaiters = loader.require('ember-testing/lib/test/waiters').checkWaiters; + } + /** + @private + @returns {boolean} true if waiters are still pending + */ + + + function checkWaiters() { + let EmberTest = Ember.Test; + + if (_internalCheckWaiters) { + return _internalCheckWaiters(); + } else if (EmberTest.waiters) { + if (EmberTest.waiters.some(([context, callback]) => !callback.call(context))) { + return true; + } + } + + return false; + } + /** + Check various settledness metrics, and return an object with the following properties: + + - `hasRunLoop` - Checks if a run-loop has been started. If it has, this will + be `true` otherwise it will be `false`. + - `hasPendingTimers` - Checks if there are scheduled timers in the run-loop. + These pending timers are primarily registered by `Ember.run.schedule`. If + there are pending timers, this will be `true`, otherwise `false`. + - `hasPendingWaiters` - Checks if any registered test waiters are still + pending (e.g. the waiter returns `true`). If there are pending waiters, + this will be `true`, otherwise `false`. + - `hasPendingRequests` - Checks if there are pending AJAX requests (based on + `ajaxSend` / `ajaxComplete` events triggered by `jQuery.ajax`). If there + are pending requests, this will be `true`, otherwise `false`. + - `hasPendingTransitions` - Checks if there are pending route transitions. If the + router has not been instantiated / setup for the test yet this will return `null`, + if there are pending transitions, this will be `true`, otherwise `false`. + - `pendingRequestCount` - The count of pending AJAX requests. + - `debugInfo` - Debug information that's combined with info return from backburner's + getDebugInfo method. + + @public + @returns {Object} object with properties for each of the metrics used to determine settledness + */ + + + function getSettledState() { + let hasPendingTimers = Boolean(Ember.run.hasScheduledTimers()); + let hasRunLoop = Boolean(Ember.run.currentRunLoop); + let hasPendingLegacyWaiters = checkWaiters(); + let hasPendingTestWaiters = (0, _emberTestWaiters.hasPendingWaiters)(); + let pendingRequestCount = pendingRequests(); + let hasPendingRequests = pendingRequestCount > 0; + return { + hasPendingTimers, + hasRunLoop, + hasPendingWaiters: hasPendingLegacyWaiters || hasPendingTestWaiters, + hasPendingRequests, + hasPendingTransitions: (0, _setupApplicationContext.hasPendingTransitions)(), + pendingRequestCount, + debugInfo: new _debugInfo.TestDebugInfo({ + hasPendingTimers, + hasRunLoop, + hasPendingLegacyWaiters, + hasPendingTestWaiters, + hasPendingRequests + }) + }; + } + /** + Checks various settledness metrics (via `getSettledState()`) to determine if things are settled or not. + + Settled generally means that there are no pending timers, no pending waiters, + no pending AJAX requests, and no current run loop. However, new settledness + metrics may be added and used as they become available. + + @public + @returns {boolean} `true` if settled, `false` otherwise + */ + + + function isSettled() { + let { + hasPendingTimers, + hasRunLoop, + hasPendingRequests, + hasPendingWaiters, + hasPendingTransitions + } = getSettledState(); + + if (hasPendingTimers || hasRunLoop || hasPendingRequests || hasPendingWaiters || hasPendingTransitions) { + return false; + } + + return true; + } + /** + Returns a promise that resolves when in a settled state (see `isSettled` for + a definition of "settled state"). + + @public + @returns {Promise} resolves when settled + */ + + + function settled() { + return (0, _waitUntil.default)(isSettled, { + timeout: Infinity + }).then(() => {}); + } +}); +define("@ember/test-helpers/setup-application-context", ["exports", "@ember/test-helpers/-utils", "@ember/test-helpers/setup-context", "@ember/test-helpers/global", "@ember/test-helpers/has-ember-version", "@ember/test-helpers/settled", "@ember/test-helpers/test-metadata"], function (_exports, _utils, _setupContext, _global, _hasEmberVersion, _settled, _testMetadata) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.isApplicationTestContext = isApplicationTestContext; + _exports.hasPendingTransitions = hasPendingTransitions; + _exports.setupRouterSettlednessTracking = setupRouterSettlednessTracking; + _exports.visit = visit; + _exports.currentRouteName = currentRouteName; + _exports.currentURL = currentURL; + _exports.default = setupApplicationContext; + const CAN_USE_ROUTER_EVENTS = (0, _hasEmberVersion.default)(3, 6); + let routerTransitionsPending = null; + const ROUTER = new WeakMap(); + const HAS_SETUP_ROUTER = new WeakMap(); // eslint-disable-next-line require-jsdoc + + function isApplicationTestContext(context) { + return (0, _setupContext.isTestContext)(context); + } + /** + Determines if we have any pending router transtions (used to determine `settled` state) + + @public + @returns {(boolean|null)} if there are pending transitions + */ + + + function hasPendingTransitions() { + if (CAN_USE_ROUTER_EVENTS) { + return routerTransitionsPending; + } + + let context = (0, _setupContext.getContext)(); // there is no current context, we cannot check + + if (context === undefined) { + return null; + } + + let router = ROUTER.get(context); + + if (router === undefined) { + // if there is no router (e.g. no `visit` calls made yet), we cannot + // check for pending transitions but this is explicitly not an error + // condition + return null; + } + + let routerMicrolib = router._routerMicrolib || router.router; + + if (routerMicrolib === undefined) { + return null; + } + + return !!routerMicrolib.activeTransition; + } + /** + Setup the current router instance with settledness tracking. Generally speaking this + is done automatically (during a `visit('/some-url')` invocation), but under some + circumstances (e.g. a non-application test where you manually call `this.owner.setupRouter()`) + you may want to call it yourself. + + @public + */ + + + function setupRouterSettlednessTracking() { + const context = (0, _setupContext.getContext)(); + + if (context === undefined) { + throw new Error('Cannot setupRouterSettlednessTracking outside of a test context'); + } // avoid setting up many times for the same context + + + if (HAS_SETUP_ROUTER.get(context)) { + return; + } + + HAS_SETUP_ROUTER.set(context, true); + let { + owner + } = context; + let router; + + if (CAN_USE_ROUTER_EVENTS) { + router = owner.lookup('service:router'); // track pending transitions via the public routeWillChange / routeDidChange APIs + // routeWillChange can fire many times and is only useful to know when we have _started_ + // transitioning, we can then use routeDidChange to signal that the transition has settled + + router.on('routeWillChange', () => routerTransitionsPending = true); + router.on('routeDidChange', () => routerTransitionsPending = false); + } else { + router = owner.lookup('router:main'); + ROUTER.set(context, router); + } // hook into teardown to reset local settledness state + + + let ORIGINAL_WILL_DESTROY = router.willDestroy; + + router.willDestroy = function () { + routerTransitionsPending = null; + return ORIGINAL_WILL_DESTROY.apply(this, arguments); + }; + } + /** + Navigate the application to the provided URL. + + @public + @param {string} url The URL to visit (e.g. `/posts`) + @param {object} options app boot options + @returns {Promise} resolves when settled + */ + + + function visit(url, options) { + const context = (0, _setupContext.getContext)(); + + if (!context || !isApplicationTestContext(context)) { + throw new Error('Cannot call `visit` without having first called `setupApplicationContext`.'); + } + + let { + owner + } = context; + let testMetadata = (0, _testMetadata.default)(context); + testMetadata.usedHelpers.push('visit'); + return (0, _utils.nextTickPromise)().then(() => { + let visitResult = owner.visit(url, options); + setupRouterSettlednessTracking(); + return visitResult; + }).then(() => { + if (_global.default.EmberENV._APPLICATION_TEMPLATE_WRAPPER !== false) { + context.element = document.querySelector('#ember-testing > .ember-view'); + } else { + context.element = document.querySelector('#ember-testing'); + } + }).then(_settled.default); + } + /** + @public + @returns {string} the currently active route name + */ + + + function currentRouteName() { + const context = (0, _setupContext.getContext)(); + + if (!context || !isApplicationTestContext(context)) { + throw new Error('Cannot call `currentRouteName` without having first called `setupApplicationContext`.'); + } + + let router = context.owner.lookup('router:main'); + return Ember.get(router, 'currentRouteName'); + } + + const HAS_CURRENT_URL_ON_ROUTER = (0, _hasEmberVersion.default)(2, 13); + /** + @public + @returns {string} the applications current url + */ + + function currentURL() { + const context = (0, _setupContext.getContext)(); + + if (!context || !isApplicationTestContext(context)) { + throw new Error('Cannot call `currentURL` without having first called `setupApplicationContext`.'); + } + + let router = context.owner.lookup('router:main'); + + if (HAS_CURRENT_URL_ON_ROUTER) { + return Ember.get(router, 'currentURL'); + } else { + return Ember.get(router, 'location').getURL(); + } + } + /** + Used by test framework addons to setup the provided context for working with + an application (e.g. routing). + + `setupContext` must have been run on the provided context prior to calling + `setupApplicationContext`. + + Sets up the basic framework used by application tests. + + @public + @param {Object} context the context to setup + @returns {Promise} resolves with the context that was setup + */ + + + function setupApplicationContext(context) { + let testMetadata = (0, _testMetadata.default)(context); + testMetadata.setupTypes.push('setupApplicationContext'); + return (0, _utils.nextTickPromise)(); + } +}); +define("@ember/test-helpers/setup-context", ["exports", "@ember/test-helpers/build-owner", "@ember/test-helpers/settled", "@ember/test-helpers/global", "@ember/test-helpers/resolver", "@ember/test-helpers/application", "@ember/test-helpers/-utils", "@ember/test-helpers/test-metadata"], function (_exports, _buildOwner, _settled, _global, _resolver, _application, _utils, _testMetadata) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.isTestContext = isTestContext; + _exports.setContext = setContext; + _exports.getContext = getContext; + _exports.unsetContext = unsetContext; + _exports.pauseTest = pauseTest; + _exports.resumeTest = resumeTest; + _exports.default = setupContext; + _exports.CLEANUP = void 0; + + // eslint-disable-next-line require-jsdoc + function isTestContext(context) { + return typeof context.pauseTest === 'function' && typeof context.resumeTest === 'function'; + } + + let __test_context__; + /** + Stores the provided context as the "global testing context". + + Generally setup automatically by `setupContext`. + + @public + @param {Object} context the context to use + */ + + + function setContext(context) { + __test_context__ = context; + } + /** + Retrive the "global testing context" as stored by `setContext`. + + @public + @returns {Object} the previously stored testing context + */ + + + function getContext() { + return __test_context__; + } + /** + Clear the "global testing context". + + Generally invoked from `teardownContext`. + + @public + */ + + + function unsetContext() { + __test_context__ = undefined; + } + /** + * Returns a promise to be used to pauses the current test (due to being + * returned from the test itself). This is useful for debugging while testing + * or for test-driving. It allows you to inspect the state of your application + * at any point. + * + * The test framework wrapper (e.g. `ember-qunit` or `ember-mocha`) should + * ensure that when `pauseTest()` is used, any framework specific test timeouts + * are disabled. + * + * @public + * @returns {Promise} resolves _only_ when `resumeTest()` is invoked + * @example Usage via ember-qunit + * + * import { setupRenderingTest } from 'ember-qunit'; + * import { render, click, pauseTest } from '@ember/test-helpers'; + * + * + * module('awesome-sauce', function(hooks) { + * setupRenderingTest(hooks); + * + * test('does something awesome', async function(assert) { + * await render(hbs`{{awesome-sauce}}`); + * + * // added here to visualize / interact with the DOM prior + * // to the interaction below + * await pauseTest(); + * + * click('.some-selector'); + * + * assert.equal(this.element.textContent, 'this sauce is awesome!'); + * }); + * }); + */ + + + function pauseTest() { + let context = getContext(); + + if (!context || !isTestContext(context)) { + throw new Error('Cannot call `pauseTest` without having first called `setupTest` or `setupRenderingTest`.'); + } + + return context.pauseTest(); + } + /** + Resumes a test previously paused by `await pauseTest()`. + + @public + */ + + + function resumeTest() { + let context = getContext(); + + if (!context || !isTestContext(context)) { + throw new Error('Cannot call `resumeTest` without having first called `setupTest` or `setupRenderingTest`.'); + } + + context.resumeTest(); + } + + const CLEANUP = Object.create(null); + /** + Used by test framework addons to setup the provided context for testing. + + Responsible for: + + - sets the "global testing context" to the provided context (`setContext`) + - create an owner object and set it on the provided context (e.g. `this.owner`) + - setup `this.set`, `this.setProperties`, `this.get`, and `this.getProperties` to the provided context + - setting up AJAX listeners + - setting up `pauseTest` (also available as `this.pauseTest()`) and `resumeTest` helpers + + @public + @param {Object} context the context to setup + @param {Object} [options] options used to override defaults + @param {Resolver} [options.resolver] a resolver to use for customizing normal resolution + @returns {Promise} resolves with the context that was setup + */ + + _exports.CLEANUP = CLEANUP; + + function setupContext(context, options = {}) { + Ember.testing = true; + setContext(context); + let contextGuid = Ember.guidFor(context); + CLEANUP[contextGuid] = []; + let testMetadata = (0, _testMetadata.default)(context); + testMetadata.setupTypes.push('setupContext'); + Ember.run.backburner.DEBUG = true; + return (0, _utils.nextTickPromise)().then(() => { + let application = (0, _application.getApplication)(); + + if (application) { + return application.boot().then(() => {}); + } + + return; + }).then(() => { + let testElementContainer = document.getElementById('ember-testing-container'); // TODO remove "!" + + let fixtureResetValue = testElementContainer.innerHTML; // push this into the final cleanup bucket, to be ran _after_ the owner + // is destroyed and settled (e.g. flushed run loops, etc) + + CLEANUP[contextGuid].push(() => { + testElementContainer.innerHTML = fixtureResetValue; + }); + let { + resolver + } = options; // This handles precendence, specifying a specific option of + // resolver always trumps whatever is auto-detected, then we fallback to + // the suite-wide registrations + // + // At some later time this can be extended to support specifying a custom + // engine or application... + + if (resolver) { + return (0, _buildOwner.default)(null, resolver); + } + + return (0, _buildOwner.default)((0, _application.getApplication)(), (0, _resolver.getResolver)()); + }).then(owner => { + Object.defineProperty(context, 'owner', { + configurable: true, + enumerable: true, + value: owner, + writable: false + }); + Object.defineProperty(context, 'set', { + configurable: true, + enumerable: true, + + value(key, value) { + let ret = Ember.run(function () { + return Ember.set(context, key, value); + }); + return ret; + }, + + writable: false + }); + Object.defineProperty(context, 'setProperties', { + configurable: true, + enumerable: true, + + value(hash) { + let ret = Ember.run(function () { + return Ember.setProperties(context, hash); + }); + return ret; + }, + + writable: false + }); + Object.defineProperty(context, 'get', { + configurable: true, + enumerable: true, + + value(key) { + return Ember.get(context, key); + }, + + writable: false + }); + Object.defineProperty(context, 'getProperties', { + configurable: true, + enumerable: true, + + value(...args) { + return Ember.getProperties(context, args); + }, + + writable: false + }); + let resume; + + context.resumeTest = function resumeTest() { + (true && !(Boolean(resume)) && Ember.assert('Testing has not been paused. There is nothing to resume.', Boolean(resume))); + resume(); + _global.default.resumeTest = resume = undefined; + }; + + context.pauseTest = function pauseTest() { + console.info('Testing paused. Use `resumeTest()` to continue.'); // eslint-disable-line no-console + + return new Ember.RSVP.Promise(resolve => { + resume = resolve; + _global.default.resumeTest = resumeTest; + }, 'TestAdapter paused promise'); + }; + + (0, _settled._setupAJAXHooks)(); + return context; + }); + } +}); +define("@ember/test-helpers/setup-onerror", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = setupOnerror; + _exports.resetOnerror = void 0; + const ORIGINAL_EMBER_ONERROR = Ember.onerror; + /** + * Sets the `Ember.onerror` function for tests. This value is intended to be reset after + * each test to ensure correct test isolation. To reset, you should simply call `setupOnerror` + * without an `onError` argument. + * + * @public + * @param {Function} onError the onError function to be set on Ember.onerror + * + * @example Example implementation for `ember-qunit` or `ember-mocha` + * + * import { setupOnerror } from '@ember/test-helpers'; + * + * test('Ember.onerror is stubbed properly', function(assert) { + * setupOnerror(function(err) { + * assert.ok(err); + * }); + * }); + */ + + function setupOnerror(onError) { + if (typeof onError !== 'function') { + onError = ORIGINAL_EMBER_ONERROR; + } + + Ember.onerror = onError; + } + /** + * Resets `Ember.onerror` to the value it originally was at the start of the test run. + * + * @public + * + * @example + * + * import { resetOnerror } from '@ember/test-helpers'; + * + * QUnit.testDone(function() { + * resetOnerror(); + * }) + */ + + + const resetOnerror = setupOnerror; + _exports.resetOnerror = resetOnerror; +}); +define("@ember/test-helpers/setup-rendering-context", ["exports", "@ember/test-helpers/global", "@ember/test-helpers/setup-context", "@ember/test-helpers/-utils", "@ember/test-helpers/settled", "@ember/test-helpers/dom/get-root-element", "@ember/test-helpers/test-metadata"], function (_exports, _global, _setupContext, _utils, _settled, _getRootElement, _testMetadata) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.isRenderingTestContext = isRenderingTestContext; + _exports.render = render; + _exports.clearRender = clearRender; + _exports.default = setupRenderingContext; + _exports.RENDERING_CLEANUP = void 0; + const RENDERING_CLEANUP = Object.create(null); + _exports.RENDERING_CLEANUP = RENDERING_CLEANUP; + const OUTLET_TEMPLATE = Ember.HTMLBars.template({ + "id": "JzTwhLU2", + "block": "{\"symbols\":[],\"statements\":[[1,[22,\"outlet\"],false]],\"hasEval\":false}", + "meta": {} + }); + const EMPTY_TEMPLATE = Ember.HTMLBars.template({ + "id": "xOcW61lH", + "block": "{\"symbols\":[],\"statements\":[],\"hasEval\":false}", + "meta": {} + }); // eslint-disable-next-line require-jsdoc + + function isRenderingTestContext(context) { + return (0, _setupContext.isTestContext)(context) && typeof context.render === 'function' && typeof context.clearRender === 'function'; + } + /** + @private + @param {Ember.ApplicationInstance} owner the current owner instance + @param {string} templateFullName the fill template name + @returns {Template} the template representing `templateFullName` + */ + + + function lookupTemplate(owner, templateFullName) { + let template = owner.lookup(templateFullName); + if (typeof template === 'function') return template(owner); + return template; + } + /** + @private + @param {Ember.ApplicationInstance} owner the current owner instance + @returns {Template} a template representing {{outlet}} + */ + + + function lookupOutletTemplate(owner) { + let OutletTemplate = lookupTemplate(owner, 'template:-outlet'); + + if (!OutletTemplate) { + owner.register('template:-outlet', OUTLET_TEMPLATE); + OutletTemplate = lookupTemplate(owner, 'template:-outlet'); + } + + return OutletTemplate; + } + /** + @private + @param {string} [selector] the selector to search for relative to element + @returns {jQuery} a jQuery object representing the selector (or element itself if no selector) + */ + + + function jQuerySelector(selector) { + (true && !(false) && Ember.deprecate('Using this.$() in a rendering test has been deprecated, consider using this.element instead.', false, { + id: 'ember-test-helpers.rendering-context.jquery-element', + until: '2.0.0', + // @ts-ignore + url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis' + })); + let { + element + } = (0, _setupContext.getContext)(); // emulates Ember internal behavor of `this.$` in a component + // https://github.com/emberjs/ember.js/blob/v2.5.1/packages/ember-views/lib/views/states/has_element.js#L18 + + return selector ? _global.default.jQuery(selector, element) : _global.default.jQuery(element); + } + + let templateId = 0; + /** + Renders the provided template and appends it to the DOM. + + @public + @param {CompiledTemplate} template the template to render + @returns {Promise} resolves when settled + */ + + function render(template) { + let context = (0, _setupContext.getContext)(); + + if (!template) { + throw new Error('you must pass a template to `render()`'); + } + + return (0, _utils.nextTickPromise)().then(() => { + if (!context || !isRenderingTestContext(context)) { + throw new Error('Cannot call `render` without having first called `setupRenderingContext`.'); + } + + let { + owner + } = context; + let testMetadata = (0, _testMetadata.default)(context); + testMetadata.usedHelpers.push('render'); + let toplevelView = owner.lookup('-top-level-view:main'); + let OutletTemplate = lookupOutletTemplate(owner); + templateId += 1; + let templateFullName = `template:-undertest-${templateId}`; + owner.register(templateFullName, template); + let outletState = { + render: { + owner, + into: undefined, + outlet: 'main', + name: 'application', + controller: undefined, + ViewClass: undefined, + template: OutletTemplate + }, + outlets: { + main: { + render: { + owner, + into: undefined, + outlet: 'main', + name: 'index', + controller: context, + ViewClass: undefined, + template: lookupTemplate(owner, templateFullName), + outlets: {} + }, + outlets: {} + } + } + }; + toplevelView.setOutletState(outletState); // returning settled here because the actual rendering does not happen until + // the renderer detects it is dirty (which happens on backburner's end + // hook), see the following implementation details: + // + // * [view:outlet](https://github.com/emberjs/ember.js/blob/f94a4b6aef5b41b96ef2e481f35e07608df01440/packages/ember-glimmer/lib/views/outlet.js#L129-L145) manually dirties its own tag upon `setOutletState` + // * [backburner's custom end hook](https://github.com/emberjs/ember.js/blob/f94a4b6aef5b41b96ef2e481f35e07608df01440/packages/ember-glimmer/lib/renderer.js#L145-L159) detects that the current revision of the root is no longer the latest, and triggers a new rendering transaction + + return (0, _settled.default)(); + }); + } + /** + Clears any templates previously rendered. This is commonly used for + confirming behavior that is triggered by teardown (e.g. + `willDestroyElement`). + + @public + @returns {Promise} resolves when settled + */ + + + function clearRender() { + let context = (0, _setupContext.getContext)(); + + if (!context || !isRenderingTestContext(context)) { + throw new Error('Cannot call `clearRender` without having first called `setupRenderingContext`.'); + } + + return render(EMPTY_TEMPLATE); + } + /** + Used by test framework addons to setup the provided context for rendering. + + `setupContext` must have been ran on the provided context + prior to calling `setupRenderingContext`. + + Responsible for: + + - Setup the basic framework used for rendering by the + `render` helper. + - Ensuring the event dispatcher is properly setup. + - Setting `this.element` to the root element of the testing + container (things rendered via `render` will go _into_ this + element). + + @public + @param {Object} context the context to setup for rendering + @returns {Promise} resolves with the context that was setup + */ + + + function setupRenderingContext(context) { + let contextGuid = Ember.guidFor(context); + RENDERING_CLEANUP[contextGuid] = []; + let testMetadata = (0, _testMetadata.default)(context); + testMetadata.setupTypes.push('setupRenderingContext'); + return (0, _utils.nextTickPromise)().then(() => { + let { + owner + } = context; // these methods being placed on the context itself will be deprecated in + // a future version (no giant rush) to remove some confusion about which + // is the "right" way to things... + + Object.defineProperty(context, 'render', { + configurable: true, + enumerable: true, + value: render, + writable: false + }); + Object.defineProperty(context, 'clearRender', { + configurable: true, + enumerable: true, + value: clearRender, + writable: false + }); + + if (_global.default.jQuery) { + Object.defineProperty(context, '$', { + configurable: true, + enumerable: true, + value: jQuerySelector, + writable: false + }); + } // When the host app uses `setApplication` (instead of `setResolver`) the event dispatcher has + // already been setup via `applicationInstance.boot()` in `./build-owner`. If using + // `setResolver` (instead of `setApplication`) a "mock owner" is created by extending + // `Ember._ContainerProxyMixin` and `Ember._RegistryProxyMixin` in this scenario we need to + // manually start the event dispatcher. + + + if (owner._emberTestHelpersMockOwner) { + let dispatcher = owner.lookup('event_dispatcher:main') || Ember.EventDispatcher.create(); + dispatcher.setup({}, '#ember-testing'); + } + + let OutletView = owner.factoryFor ? owner.factoryFor('view:-outlet') : owner._lookupFactory('view:-outlet'); + let toplevelView = OutletView.create(); + owner.register('-top-level-view:main', { + create() { + return toplevelView; + } + + }); // initially render a simple empty template + + return render(EMPTY_TEMPLATE).then(() => { + Ember.run(toplevelView, 'appendTo', (0, _getRootElement.default)()); + return (0, _settled.default)(); + }); + }).then(() => { + Object.defineProperty(context, 'element', { + configurable: true, + enumerable: true, + // ensure the element is based on the wrapping toplevel view + // Ember still wraps the main application template with a + // normal tagged view + // + // In older Ember versions (2.4) the element itself is not stable, + // and therefore we cannot update the `this.element` until after the + // rendering is completed + value: _global.default.EmberENV._APPLICATION_TEMPLATE_WRAPPER !== false ? (0, _getRootElement.default)().querySelector('.ember-view') : (0, _getRootElement.default)(), + writable: false + }); + return context; + }); + } +}); +define("@ember/test-helpers/teardown-application-context", ["exports", "@ember/test-helpers/-utils", "@ember/test-helpers/settled"], function (_exports, _utils, _settled) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = _default; + + /** + Used by test framework addons to tear down the provided context after testing is completed. + + @public + @param {Object} context the context to setup + @param {Object} [options] options used to override defaults + @param {boolean} [options.waitForSettled=true] should the teardown wait for `settled()`ness + @returns {Promise} resolves when settled + */ + function _default(context, options) { + let waitForSettled = true; + + if (options !== undefined && 'waitForSettled' in options) { + waitForSettled = options.waitForSettled; + } + + if (waitForSettled) { + return (0, _settled.default)(); + } + + return (0, _utils.nextTickPromise)(); + } +}); +define("@ember/test-helpers/teardown-context", ["exports", "@ember/test-helpers/settled", "@ember/test-helpers/setup-context", "@ember/test-helpers/-utils"], function (_exports, _settled, _setupContext, _utils) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = teardownContext; + + /** + Used by test framework addons to tear down the provided context after testing is completed. + + Responsible for: + + - un-setting the "global testing context" (`unsetContext`) + - destroy the contexts owner object + - remove AJAX listeners + + @public + @param {Object} context the context to setup + @param {Object} [options] options used to override defaults + @param {boolean} [options.waitForSettled=true] should the teardown wait for `settled()`ness + @returns {Promise} resolves when settled + */ + function teardownContext(context, options) { + let waitForSettled = true; + + if (options !== undefined && 'waitForSettled' in options) { + waitForSettled = options.waitForSettled; + } + + return (0, _utils.nextTickPromise)().then(() => { + let { + owner + } = context; + (0, _settled._teardownAJAXHooks)(); + Ember.run(owner, 'destroy'); + Ember.testing = false; + (0, _setupContext.unsetContext)(); + + if (waitForSettled) { + return (0, _settled.default)(); + } + + return (0, _utils.nextTickPromise)(); + }).finally(() => { + let contextGuid = Ember.guidFor(context); + (0, _utils.runDestroyablesFor)(_setupContext.CLEANUP, contextGuid); + + if (waitForSettled) { + return (0, _settled.default)(); + } + + return (0, _utils.nextTickPromise)(); + }); + } +}); +define("@ember/test-helpers/teardown-rendering-context", ["exports", "@ember/test-helpers/setup-rendering-context", "@ember/test-helpers/-utils", "@ember/test-helpers/settled"], function (_exports, _setupRenderingContext, _utils, _settled) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = teardownRenderingContext; + + /** + Used by test framework addons to tear down the provided context after testing is completed. + + Responsible for: + + - resetting the `ember-testing-container` to its original state (the value + when `setupRenderingContext` was called). + + @public + @param {Object} context the context to setup + @param {Object} [options] options used to override defaults + @param {boolean} [options.waitForSettled=true] should the teardown wait for `settled()`ness + @returns {Promise} resolves when settled + */ + function teardownRenderingContext(context, options) { + let waitForSettled = true; + + if (options !== undefined && 'waitForSettled' in options) { + waitForSettled = options.waitForSettled; + } + + return (0, _utils.nextTickPromise)().then(() => { + let contextGuid = Ember.guidFor(context); + (0, _utils.runDestroyablesFor)(_setupRenderingContext.RENDERING_CLEANUP, contextGuid); + + if (waitForSettled) { + return (0, _settled.default)(); + } + + return (0, _utils.nextTickPromise)(); + }); + } +}); +define("@ember/test-helpers/test-metadata", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = getTestMetadata; + _exports.TestMetadata = void 0; + + class TestMetadata { + constructor() { + this.setupTypes = []; + this.usedHelpers = []; + } + + get isRendering() { + return this.setupTypes.indexOf('setupRenderingContext') > -1 && this.usedHelpers.indexOf('render') > -1; + } + + get isApplication() { + return this.setupTypes.indexOf('setupApplicationContext') > -1; + } + + } + + _exports.TestMetadata = TestMetadata; + const TEST_METADATA = new WeakMap(); + /** + * Gets the test metadata associated with the provided test context. Will create + * a new test metadata object if one does not exist. + * + * @param {BaseContext} context the context to use + * @returns {ITestMetadata} the test metadata for the provided context + */ + + function getTestMetadata(context) { + if (!TEST_METADATA.has(context)) { + TEST_METADATA.set(context, new TestMetadata()); + } + + return TEST_METADATA.get(context); + } +}); +define("@ember/test-helpers/validate-error-handler", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = validateErrorHandler; + const VALID = Object.freeze({ + isValid: true, + message: null + }); + const INVALID = Object.freeze({ + isValid: false, + message: 'error handler should have re-thrown the provided error' + }); + /** + * Validate the provided error handler to confirm that it properly re-throws + * errors when `Ember.testing` is true. + * + * This is intended to be used by test framework hosts (or other libraries) to + * ensure that `Ember.onerror` is properly configured. Without a check like + * this, `Ember.onerror` could _easily_ swallow all errors and make it _seem_ + * like everything is just fine (and have green tests) when in reality + * everything is on fire... + * + * @public + * @param {Function} [callback=Ember.onerror] the callback to validate + * @returns {Object} object with `isValid` and `message` + * + * @example Example implementation for `ember-qunit` + * + * import { validateErrorHandler } from '@ember/test-helpers'; + * + * test('Ember.onerror is functioning properly', function(assert) { + * let result = validateErrorHandler(); + * assert.ok(result.isValid, result.message); + * }); + */ + + function validateErrorHandler(callback = Ember.onerror) { + if (callback === undefined || callback === null) { + return VALID; + } + + let error = new Error('Error handler validation error!'); + let originalEmberTesting = Ember.testing; + Ember.testing = true; + + try { + callback(error); + } catch (e) { + if (e === error) { + return VALID; + } + } finally { + Ember.testing = originalEmberTesting; + } + + return INVALID; + } +}); +define("@ember/test-helpers/wait-until", ["exports", "@ember/test-helpers/-utils"], function (_exports, _utils) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = waitUntil; + const TIMEOUTS = [0, 1, 2, 5, 7]; + const MAX_TIMEOUT = 10; + /** + Wait for the provided callback to return a truthy value. + + This does not leverage `settled()`, and as such can be used to manage async + while _not_ settled (e.g. "loading" or "pending" states). + + @public + @param {Function} callback the callback to use for testing when waiting should stop + @param {Object} [options] options used to override defaults + @param {number} [options.timeout=1000] the maximum amount of time to wait + @param {string} [options.timeoutMessage='waitUntil timed out'] the message to use in the reject on timeout + @returns {Promise} resolves with the callback value when it returns a truthy value + */ + + function waitUntil(callback, options = {}) { + let timeout = 'timeout' in options ? options.timeout : 1000; + let timeoutMessage = 'timeoutMessage' in options ? options.timeoutMessage : 'waitUntil timed out'; // creating this error eagerly so it has the proper invocation stack + + let waitUntilTimedOut = new Error(timeoutMessage); + return new _utils._Promise(function (resolve, reject) { + let time = 0; // eslint-disable-next-line require-jsdoc + + function scheduleCheck(timeoutsIndex) { + let interval = TIMEOUTS[timeoutsIndex]; + + if (interval === undefined) { + interval = MAX_TIMEOUT; + } + + (0, _utils.futureTick)(function () { + time += interval; + let value; + + try { + value = callback(); + } catch (error) { + reject(error); + } + + if (value) { + resolve(value); + } else if (time < timeout) { + scheduleCheck(timeoutsIndex + 1); + } else { + reject(waitUntilTimedOut); + } + }, interval); + } + + scheduleCheck(0); + }); + } +}); +define("ember-cli-code-coverage/test-support/index", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.forceModulesToBeLoaded = forceModulesToBeLoaded; + _exports.sendCoverage = sendCoverage; + + let __require; + + if (typeof __webpack_require__ !== 'undefined') { + __require = __webpack_require__; // eslint-disable-line no-undef + } // This function exists to force the evaluation of modules that might not get loaded during + // the normal flow of your application and thus would not show up in the coverage report. This is needed + // because the istanbul plugin simply traverses a file and inserts counters over all lines of code + // such as: (the following is sudo code that is not exactly correct but illustrates that point) + // + // define('my-app/foo', function() { + // window.counter++; + // return 'bar'; + // }); + // + // This counter will never happen unless this module gets evaluated and if you do not "pull" on this + // module from somewhere it will be as if it doesnt exists from the code coverage point of view. This + // file will makes sure all modules (including those from webpack where Emboider will place some) get + // evaluated by actually requiring them. + // + + + function forceModulesToBeLoaded(filterFunction) { + if (!filterFunction) { + filterFunction = (type, module) => { + if (type === 'webpack') { + return !module.startsWith('../') && !module.startsWith('./node_modules/'); + } + + let excludeTestModules = /^[^/]+\/tests\//; + return !excludeTestModules.test(module); + }; + } // this should always be ran **after** the test suite is completed since + // sometimes force calling modules can have side effects and invoking them + // after the app has run can reduce problems that would arrise. + + + if (typeof __webpack_require__ !== 'undefined') { + let __modules = __require.m; + Object.keys(__modules).forEach(moduleName => { + try { + if (filterFunction('webpack', moduleName)) { + __require(moduleName); + } + } catch (error) { + console.warn(`Error occurred while evaluating '${moduleName}': ${error.message}\n${error.stack}`); + } + }); + } + + Object.keys(window.requirejs.entries).forEach(moduleName => { + try { + if (filterFunction('require', moduleName)) { + require(moduleName); // eslint-disable-line no-undef + + } + } catch (error) { + console.warn(`Error occurred while evaluating '${moduleName}': ${error.message}\n${error.stack}`); + } + }); + } + + async function sendCoverage(callback) { + let coverageData = window.__coverage__; //eslint-disable-line no-undef + + if (coverageData === undefined) { + if (callback) { + callback(); + } + + return; // do nothing if there is no coverage data + } + + let body = JSON.stringify(coverageData || {}); + let response = await fetch('/write-coverage', { + method: 'POST', + headers: { + 'Content-Type': 'application/json' + }, + body + }); + let responseData = await response.json(); + writeCoverageInfo(responseData); + + if (callback) { + callback(); + } + + return responseData; + } + + function writeCoverageInfo(data) { + if (data) { + let results = ['Lines', 'Branches', 'Functions', 'Statements'].filter(name => name.toLowerCase()).map(name => name + ' ' + data[name.toLowerCase()].pct + '%'); //eslint-disable-next-line no-undef + + let resultsText = document.createTextNode(results.join(' | ')); //eslint-disable-next-line no-undef + + let element = document.createElement('div'); + element.style = 'background-color: white; color: black; border: 2px solid black; padding: 1em;position: fixed; left: 15px; bottom: 15px'; + element.appendChild(resultsText); //eslint-disable-next-line no-undef + + document.body.appendChild(element); + } + } +}); +define('ember-cli-test-loader/test-support/index', ['exports'], function (exports) { + /* globals requirejs, require */ + "use strict"; + + Object.defineProperty(exports, "__esModule", { + value: true + }); + exports.addModuleIncludeMatcher = addModuleIncludeMatcher; + exports.addModuleExcludeMatcher = addModuleExcludeMatcher; + let moduleIncludeMatchers = []; + let moduleExcludeMatchers = []; + + function addModuleIncludeMatcher(fn) { + moduleIncludeMatchers.push(fn); + } + + function addModuleExcludeMatcher(fn) { + moduleExcludeMatchers.push(fn); + } + + function checkMatchers(matchers, moduleName) { + return matchers.some(matcher => matcher(moduleName)); + } + + class TestLoader { + static load() { + new TestLoader().loadModules(); + } + + constructor() { + this._didLogMissingUnsee = false; + } + + shouldLoadModule(moduleName) { + return moduleName.match(/[-_]test$/); + } + + listModules() { + return Object.keys(requirejs.entries); + } + + listTestModules() { + let moduleNames = this.listModules(); + let testModules = []; + let moduleName; + + for (let i = 0; i < moduleNames.length; i++) { + moduleName = moduleNames[i]; + + if (checkMatchers(moduleExcludeMatchers, moduleName)) { + continue; + } + + if (checkMatchers(moduleIncludeMatchers, moduleName) || this.shouldLoadModule(moduleName)) { + testModules.push(moduleName); + } + } + + return testModules; + } + + loadModules() { + let testModules = this.listTestModules(); + let testModule; + + for (let i = 0; i < testModules.length; i++) { + testModule = testModules[i]; + this.require(testModule); + this.unsee(testModule); + } + } + + require(moduleName) { + try { + require(moduleName); + } catch (e) { + this.moduleLoadFailure(moduleName, e); + } + } + + unsee(moduleName) { + if (typeof require.unsee === 'function') { + require.unsee(moduleName); + } else if (!this._didLogMissingUnsee) { + this._didLogMissingUnsee = true; + if (typeof console !== 'undefined') { + console.warn('unable to require.unsee, please upgrade loader.js to >= v3.3.0'); + } + } + } + + moduleLoadFailure(moduleName, error) { + console.error('Error loading: ' + moduleName, error.stack); + } + }exports.default = TestLoader; + ; +}); +define("ember-exam/test-support/-private/async-iterator", ["exports"], function (_exports) { + 'use strict'; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + const iteratorCompleteResponse = { + done: true, + value: null + }; + /** + * A class to iterate a sequencial set of asynchronous events. + * + * @class AsyncIterator + */ + + class AsyncIterator { + constructor(testem, options) { + this._testem = testem; + this._request = options.request; + this._response = options.response; + this._done = false; + this._current = null; + this._boundHandleResponse = this.handleResponse.bind(this); + this._waiting = false; // Set a timeout value from either url parameter or default timeout value, 15 s. + + this._timeout = options.timeout || 15; + this._browserId = options.browserId; + this._emberExamExitOnError = options.emberExamExitOnError; + testem.on(this._response, this._boundHandleResponse); + } + /** + * Indicates whether the response queue is done or not. + * + * @method done + * @return {bool} whether the response queue is done or not + */ + + + get done() { + return this._done; + } + /** + * @method toString + * @return {String} the stringified value of the iterator. + */ + + + toString() { + return ``; + } + /** + * Handle a response when it's waiting for a response + * + * @method handleResponse + * @param {*} response + */ + + + handleResponse(response) { + if (this._waiting === false) { + throw new Error(`${this.toString()} Was not expecting a response, but got a response`); + } else { + this._waiting = false; + } + + try { + if (response.done) { + this.dispose(); + } + + this._current.resolve(response); + } catch (e) { + this._current.reject(e); + } finally { + this._current = null; + + if (this.timer) { + clearTimeout(this.timer); + } + } + } + /** + * Dispose when an iteration is finished. + * + * @method dispose + */ + + + dispose() { + this._done = true; + + this._testem.removeEventCallbacks(this._response, this._boundHandleResponse); + } + /** + * Emit the current request. + * + * @method _makeNextRequest + */ + + + _makeNextRequest() { + this._waiting = true; + + this._testem.emit(this._request, this._browserId); + } + /** + * Set a timeout to reject a promise if it doesn't get response within the timeout threshold. + * + * @method _setTimeout + * @param {*} resolve + */ + + + _setTimeout(resolve, reject) { + clearTimeout(this.timeout); + this.timer = setTimeout(() => { + if (!this._waiting) { + return; + } + + if (this._emberExamExitOnError) { + let err = new Error(`EmberExam: Promise timed out after ${this._timeout} s while waiting for response for ${this._request}`); + reject(err); + } else { + // eslint-disable-next-line no-console + console.error(`EmberExam: Promise timed out after ${this._timeout} s while waiting for response for ${this._request}. Closing browser to exit gracefully.`); + resolve(iteratorCompleteResponse); + } + }, this._timeout * 1000); + } + /** + * Gets the next response from the request and resolve the promise. + * if it's end of the iteration resolve the promise with done being true. + * + * @method next + * @return {Promise} + */ + + + next() { + if (this._done) { + return Promise.resolve(iteratorCompleteResponse); + } + + if (this._current) { + return this._current.promise; + } + + let resolve, reject; + let promise = new Promise((_resolve, _reject) => { + resolve = _resolve; + reject = _reject; + + this._setTimeout(resolve, reject); + }); + this._current = { + resolve, + reject, + promise + }; + + this._makeNextRequest(); + + return promise; + } + + } + + _exports.default = AsyncIterator; +}); +define("ember-exam/test-support/-private/ember-exam-mocha-test-loader", ["exports", "ember-exam/test-support/-private/get-url-params", "ember-exam/test-support/-private/split-test-modules", "ember-exam/test-support/-private/filter-test-modules", "ember-mocha/test-loader"], function (_exports, _getUrlParams, _splitTestModules, _filterTestModules, _testLoader) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + 0; //eaimeta@70e063a35619d71f0,"ember-exam/test-support/-private/get-url-params",0,"ember-exam/test-support/-private/split-test-modules",0,"ember-exam/test-support/-private/filter-test-modules",0,"ember-mocha/test-loader"eaimeta@70e063a35619d71f + + /** + * EmberExamMochaTestLoader extends ember-mocha/test-loader used by `ember test`, since it + * overrides moduleLoadFailure() to log a test failure when a module fails to load + * @class EmberExamMochaTestLoader + * @extends {TestLoader} + */ + class EmberExamMochaTestLoader extends _testLoader.TestLoader { + constructor(testem, urlParams) { + super(); + this._testModules = []; + this._testem = testem; + this._urlParams = urlParams || (0, _getUrlParams.default)(); + } + + get urlParams() { + return this._urlParams; + } + /** + * Ember-cli-test-loader instantiates a new TestLoader instance and calls loadModules. + * EmberExamMochaTestLoader does not support load() in favor of loadModules(). + * + * @method load + */ + + + static load() { + throw new Error("`EmberExamMochaTestLoader` doesn't support `load()`."); + } + /** + * require() collects the full list of modules before requiring each module with + * super.require, instead of requiring and unseeing a module when each gets loaded. + * + * @method require + * @param {string} moduleName + */ + + + require(moduleName) { + this._testModules.push(moduleName); + } + /** + * Make unsee a no-op to avoid any unwanted resets + * + * @method unsee + */ + + + unsee() {} + /** + * Loads the test modules depending on the urlParam + * + * @method loadModules + */ + + + loadModules() { + const modulePath = this._urlParams.get('modulePath'); + + const filePath = this._urlParams.get('filePath'); + + let partitions = this._urlParams.get('partition'); + + let split = parseInt(this._urlParams.get('split'), 10); + split = isNaN(split) ? 1 : split; + + if (partitions === undefined) { + partitions = [1]; + } else if (!Array.isArray(partitions)) { + partitions = [partitions]; + } + + super.loadModules(); + + if (modulePath || filePath) { + this._testModules = (0, _filterTestModules.filterTestModules)(this._testModules, modulePath, filePath); + } + + this._testModules = (0, _splitTestModules.default)(this._testModules, split, partitions); + + this._testModules.forEach(moduleName => { + super.require(moduleName); + + super.unsee(moduleName); + }); + } + + } + + _exports.default = EmberExamMochaTestLoader; +}); +define("ember-exam/test-support/-private/ember-exam-qunit-test-loader", ["exports", "ember-exam/test-support/-private/get-url-params", "ember-exam/test-support/-private/split-test-modules", "ember-exam/test-support/-private/weight-test-modules", "ember-exam/test-support/-private/filter-test-modules", "ember-qunit/test-loader", "ember-exam/test-support/-private/async-iterator", "qunit"], function (_exports, _getUrlParams, _splitTestModules, _weightTestModules, _filterTestModules, _testLoader, _asyncIterator, _qunit) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + 0; //eaimeta@70e063a35619d71f0,"ember-exam/test-support/-private/get-url-params",0,"ember-exam/test-support/-private/split-test-modules",0,"ember-exam/test-support/-private/weight-test-modules",0,"ember-exam/test-support/-private/filter-test-modules",0,"ember-qunit/test-loader",0,"ember-exam/test-support/-private/async-iterator",0,"qunit"eaimeta@70e063a35619d71f + + /** + * EmberExamQUnitTestLoader allows delayed requiring of test modules to enable test load balancing + * It extends ember-qunit/test-loader used by `ember test`, since it overrides moduleLoadFailure() + * to log a test failure when a module fails to load + * @class EmberExamQUnitTestLoader + * @extends {TestLoader} + */ + class EmberExamQUnitTestLoader extends _testLoader.TestLoader { + constructor(testem, urlParams) { + let qunit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _qunit.default; + super(); + this._testModules = []; + this._testem = testem; + this._qunit = qunit; + this._urlParams = urlParams || (0, _getUrlParams.default)(); + } + + get urlParams() { + return this._urlParams; + } + /** + * ember-cli-test-loader instantiates a new TestLoader instance and calls loadModules. + * EmberExamQUnitTestLoader does not support load() in favor of loadModules(). + * + * @method load + */ + + + static load() { + throw new Error("`EmberExamQUnitTestLoader` doesn't support `load()`."); + } + /** + * require() collects the full list of modules before requiring each module with + * super.require(), instead of requiring and unseeing a module when each gets loaded. + * + * @method require + * @param {string} moduleName + */ + + + require(moduleName) { + this._testModules.push(moduleName); + } + /** + * Make unsee a no-op to avoid any unwanted resets + * + * @method unsee + */ + + + unsee() {} + /** + * Loads the test modules depending on the urlParam + * + * @method loadModules + */ + + + loadModules() { + const loadBalance = this._urlParams.get('loadBalance'); + + const browserId = this._urlParams.get('browser'); + + const modulePath = this._urlParams.get('modulePath'); + + const filePath = this._urlParams.get('filePath'); + + let partitions = this._urlParams.get('partition'); + + let split = parseInt(this._urlParams.get('split'), 10); + split = isNaN(split) ? 1 : split; + + if (partitions === undefined) { + partitions = [1]; + } else if (!Array.isArray(partitions)) { + partitions = [partitions]; + } + + super.loadModules(); + this.setupModuleMetadataHandler(); + + if (modulePath || filePath) { + this._testModules = (0, _filterTestModules.filterTestModules)(this._testModules, modulePath, filePath); + } + + if (loadBalance && this._testem) { + this.setupLoadBalanceHandlers(); + this._testModules = (0, _splitTestModules.default)((0, _weightTestModules.default)(this._testModules), split, partitions); + + this._testem.emit('testem:set-modules-queue', this._testModules, browserId); + } else { + this._testModules = (0, _splitTestModules.default)(this._testModules, split, partitions); + + this._testModules.forEach(moduleName => { + super.require(moduleName); + + super.unsee(moduleName); + }); + } + } + /** + * Allow loading one module at a time. + * + * @method loadIndividualModule + * @param {string} moduleName + */ + + + loadIndividualModule(moduleName) { + if (moduleName === undefined) { + throw new Error('Failed to load a test module. `moduleName` is undefined in `loadIndividualModule`.'); + } + + super.require(moduleName); + + super.unsee(moduleName); + } + /** + * setupModuleMetadataHandler() register QUnit callback to enable generating module metadata file. + * + * @method setupModuleMetadataHandler + */ + + + setupModuleMetadataHandler() { + this._qunit.testDone(metadata => { + if (typeof this._testem !== 'undefined' && this._testem !== null) { + // testem:test-done-metadata is sent to server to track test module details. + // metadata contains name, module, failed, passed, total, duration, skipped, and todo. + // https://api.qunitjs.com/callbacks/QUnit.testDone + this._testem.emit('testem:test-done-metadata', metadata); + } + }); + } + /** + * setupLoadBalanceHandlers() registers QUnit callbacks needed for the load-balance option. + * + * @method setupLoadBalanceHandlers + */ + + + setupLoadBalanceHandlers() { + // nextModuleAsyncIterator handles the async testem events + // it returns an element of {value: , done: boolean} + const nextModuleAsyncIterator = new _asyncIterator.default(this._testem, { + request: 'testem:next-module-request', + response: 'testem:next-module-response', + timeout: this._urlParams.get('asyncTimeout'), + browserId: this._urlParams.get('browser'), + emberExamExitOnError: this._urlParams.get('_emberExamExitOnError') + }); + + const nextModuleHandler = () => { + // if there are already tests queued up, don't request next module + // this is possible if a test file has multiple qunit modules + if (this._qunit.config.queue.length > 0) { + return; + } + + return nextModuleAsyncIterator.next().then(response => { + if (!response.done) { + const moduleName = response.value; + this.loadIndividualModule(moduleName); // if no tests were added, request the next module + + if (this._qunit.config.queue.length === 0) { + return nextModuleHandler(); + } + } + }).catch(e => { + if (typeof e === 'object' && e !== null && typeof e.message === 'string') { + e.message = `EmberExam: Failed to get next test module: ${e.message}`; + } + + throw new Error(`EmberExam: Failed to get next test module: ${e}`); + }); + }; // it registers qunit begin callback to ask for a next test moudle to execute when the test suite begins. + // By default ember-qunit adds `Ember.onerror` test to a qunit processing queue and once the test is complete it execute _qunit.moduleDone callback. + // However, when `setupEmberOnerrorValidation: false` is passed the test is disabled and _qunit.begin callback needs to request a next test module to run. + + + this._qunit.begin(() => { + return nextModuleHandler(); + }); + + this._qunit.moduleDone(() => { + return nextModuleHandler(); + }); + } + + } + + _exports.default = EmberExamQUnitTestLoader; +}); +define("ember-exam/test-support/-private/filter-test-modules", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.convertFilePathToModulePath = convertFilePathToModulePath; + _exports.filterTestModules = filterTestModules; + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + // A regular expression to help parsing a string to verify regex. + const MODULE_PATH_REGEXP = /^(!?)\/(.*)\/(i?)$/; + const TEST_PATH_REGEX = /\/tests\/(.*?)$/; + /** + * Return the matched test. + * e.g. if an input is '!/weight/' it returns an array, ['!/weight/', '!', 'weight', '']; + * + * @function getRegexFilter + * @param {*} modulePath + */ + + function getRegexFilter(modulePath) { + return MODULE_PATH_REGEXP.exec(modulePath); + } + /** + * Determine if a given module path is matched with module filter with wildcard. + * e.g. A given moduleFilter, /tests/integration/*, matches with /tests/integration/foo and /tests/integration/bar + * + * @function wildcardFilter + * @param {*} module + * @param {*} moduleFilter + */ + + + function wildcardFilter(module, moduleFilter) { + // Generate a regular expression to handle wildcard from path filter + const moduleFilterRule = ['^.*', moduleFilter.split('*').join('.*'), '$'].join(''); + return new RegExp(moduleFilterRule).test(module); + } + /** + * Return a list of test modules that contain a given module path string. + * + * @function stringFilter + * @param {Array} modules + * @param {string} moduleFilter + */ + + + function stringFilter(modules, moduleFilter) { + return modules.filter(module => module.includes(moduleFilter) || wildcardFilter(module, moduleFilter)); + } + /** + * Return a list of test modules that matches with a given regular expression. + * + * @function regexFilter + * @param {Array} modules + * @param {Array} modulePathRegexFilter + */ + + + function regexFilter(modules, modulePathRegexFilter) { + const re = new RegExp(modulePathRegexFilter[2], modulePathRegexFilter[3]); + const exclude = modulePathRegexFilter[1]; + return modules.filter(module => !exclude && re.test(module) || exclude && !re.test(module)); + } + /** + * Return a module path that's mapped by a given test file path. + * + * @function convertFilePathToModulePath + * @param {*} filePath + */ + + + function convertFilePathToModulePath(filePath) { + const filePathWithNoExtension = filePath.replace(/\.[^/.]+$/, ''); + const testFilePathMatch = TEST_PATH_REGEX.exec(filePathWithNoExtension); + + if (typeof filePath !== 'undefined' && testFilePathMatch !== null) { + return testFilePathMatch[0]; + } + + return filePathWithNoExtension; + } + /** + * Returns a list of test modules that match with the given module path filter or test file path. + * + * @function filterTestModules + * @param {Array} modules + * @param {string} modulePath + * @param {string} filePath + */ + + + function filterTestModules(modules, modulePath, filePath) { + // Generates an array with module filter value seperated by comma (,). + const moduleFilters = (filePath || modulePath).split(',').map(value => value.trim()); + const filteredTestModules = moduleFilters.reduce((result, moduleFilter) => { + const modulePath = convertFilePathToModulePath(moduleFilter); + const modulePathRegex = getRegexFilter(modulePath); + + if (modulePathRegex) { + return result.concat(regexFilter(modules, modulePathRegex).filter(module => result.indexOf(module) === -1)); + } else { + return result.concat(stringFilter(modules, modulePath).filter(module => result.indexOf(module) === -1)); + } + }, []); + + if (filteredTestModules.length === 0) { + throw new Error(`No tests matched with the filter: ${modulePath || filePath}.`); + } + + return filteredTestModules; + } +}); +define("ember-exam/test-support/-private/get-test-loader", ["exports", "@embroider/macros/es-compat", "@embroider/macros/runtime"], function (_exports, _esCompat, _runtime) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = getTestLoader; + 0; //eaimeta@70e063a35619d71f0,"@embroider/macros",0,"./ember-exam-qunit-test-loader",0,"./ember-exam-mocha-test-loader"eaimeta@70e063a35619d71f + + /** + * Returns ember-exam-qunit-test-loader or ember-exam-mocha-test-loader + * + * @export + * @function getTestLoader + * @return {Object} + */ + function getTestLoader() { + if ((0, _runtime.macroCondition)(true)) { + const EmberExamQUnitTestLoader = (0, _esCompat.default)(require("ember-exam/test-support/-private/ember-exam-qunit-test-loader")); + return EmberExamQUnitTestLoader['default']; + } else if ((0, _runtime.macroCondition)(false)) { + const EmberExamMochaTestLoader = (0, _esCompat.default)(require("ember-exam/test-support/-private/ember-exam-mocha-test-loader")); + return EmberExamMochaTestLoader['default']; + } + + throw new Error('Unable to find a suitable test loader. You should ensure that one of `ember-qunit` or `ember-mocha` are added as dependencies.'); + } +}); +define("ember-exam/test-support/-private/get-url-params", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = getUrlParams; + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + function decodeQueryParam(param) { + return decodeURIComponent(param.replace(/\+/g, '%20')); + } + /** + * Parses the url and return an object containing a param's key and value + * + * @export + * @function getUrlParams + * @return {Object} urlParams + */ + + + function getUrlParams() { + const urlParams = new Map(); + const params = location.search.slice(1).split('&'); + + for (let i = 0; i < params.length; i++) { + if (params[i]) { + const param = params[i].split('='); + const name = decodeQueryParam(param[0]); // Allow just a key to turn on a flag, e.g., test.html?noglobals + + const value = param.length === 1 || decodeQueryParam(param.slice(1).join('=')); + + if (urlParams.has(name)) { + urlParams.set(name, [].concat(urlParams.get(name), value)); + } else { + urlParams.set(name, value); + } + } + } + + return urlParams; + } +}); +define("ember-exam/test-support/-private/patch-testem-output", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.patchTestemOutput = patchTestemOutput; + _exports.updateTestName = updateTestName; + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + /* globals Testem */ + + /** + * Returns a modified test name including browser or partition information + * + * @function updateTestName + * @param {Map} urlParams + * @param {string} testName + * @return {string} testName + */ + function updateTestName(urlParams, testName) { + const split = urlParams.get('split'); + const loadBalance = urlParams.get('loadBalance'); + const partition = urlParams.get('partition') || 1; + const browser = urlParams.get('browser') || 1; + + if (split && loadBalance) { + testName = `Exam Partition ${partition} - Browser Id ${browser} - ${testName}`; + } else if (split) { + testName = `Exam Partition ${partition} - ${testName}`; + } else if (loadBalance) { + testName = `Browser Id ${browser} - ${testName}`; + } + + return testName; + } + /** + * Setup testem test-result event to update the test name when a test completes + * + * @function patchTestemOutput + * @param {Map} urlParams + */ + + + function patchTestemOutput(urlParams) { + Testem.on('test-result', test => { + test.name = updateTestName(urlParams, test.name); + }); + } +}); +define("ember-exam/test-support/-private/split-test-modules", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = splitTestModules; + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + function createGroups(num) { + const groups = new Array(num); + + for (let i = 0; i < num; i++) { + groups[i] = []; + } + + return groups; + } + + function filterIntoGroups(arr, filter, numGroups) { + const filtered = arr.filter(filter); + const groups = createGroups(numGroups); + + for (let i = 0; i < filtered.length; i++) { + groups[i % numGroups].push(filtered[i]); + } + + return groups; + } + + function isLintTest(name) { + return name.match(/\.(jshint|(es)?lint-test)$/); + } + + function isNotLintTest(name) { + return !isLintTest(name); + } + /** + * Splits the list of modules into unique subset of modules + * return the subset indexed by the partition + * + * @export + * @function splitTestModules + * @param {Array} modules + * @param {number} split + * @param {number} partitions + * @return {Array} tests + */ + + + function splitTestModules(modules, split, partitions) { + if (split < 1) { + throw new Error('You must specify a split greater than 0'); + } + + const lintTestGroups = filterIntoGroups(modules, isLintTest, split); + const otherTestGroups = filterIntoGroups(modules, isNotLintTest, split); + const tests = []; + + for (let i = 0; i < partitions.length; i++) { + const partition = parseInt(partitions[i], 10); + + if (isNaN(partition)) { + throw new Error("You must specify numbers for partition (you specified '" + partitions + "')"); + } + + if (split < partition) { + throw new Error('You must specify partitions numbered less than or equal to your split value of ' + split); + } else if (partition < 1) { + throw new Error('You must specify partitions numbered greater than 0'); + } + + const group = partition - 1; + tests.push(...lintTestGroups[group], ...otherTestGroups[group]); + } + + return tests; + } +}); +define("ember-exam/test-support/-private/weight-test-modules", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = weightTestModules; + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + const TEST_TYPE_WEIGHT = { + eslint: 1, + unit: 10, + integration: 20, + acceptance: 150 + }; + const WEIGHT_REGEX = /\/(eslint|unit|integration|acceptance)\//; + const DEFAULT_WEIGHT = 50; + /** + * Return the weight for a given module name, a file path to the module + * Ember tests consist of Acceptance, Integration, Unit, and lint tests. In general, acceptance takes + * longest time to execute, followed by integration and unit. + * The weight assigned to a module corresponds to its test type execution speed, with slowest being the highest in weight. + * If the test type is not identifiable from the modulePath, weight default to 50 (ordered after acceptance, but before integration) + * + * @function getWeight + * @param {string} modulePath File path to a module + */ + + function getWeight(modulePath) { + const [, key] = WEIGHT_REGEX.exec(modulePath) || []; + + if (typeof TEST_TYPE_WEIGHT[key] === 'number') { + return TEST_TYPE_WEIGHT[key]; + } else { + return DEFAULT_WEIGHT; + } + } + /** + * Returns the list of modules sorted by its weight + * + * @export + * @function weightTestModules + * @param {Array} modules + * @return {Array} + */ + + + function weightTestModules(modules) { + const groups = new Map(); + modules.forEach(module => { + const moduleWeight = getWeight(module); + let moduleWeightGroup = groups.get(moduleWeight); + + if (Array.isArray(moduleWeightGroup)) { + moduleWeightGroup.push(module); + } else { + moduleWeightGroup = [module]; + } + + groups.set(moduleWeight, moduleWeightGroup); + }); // return modules sorted by weight and alphabetically within its weighted groups + + return Array.from(groups.keys()).sort((a, b) => b - a).reduce((accumulatedArray, weight) => { + const sortedModuleArr = groups.get(weight).sort(); + return accumulatedArray.concat(sortedModuleArr); + }, []); + } +}); +define("ember-exam/test-support/load", ["exports", "ember-exam/test-support/-private/patch-testem-output", "ember-exam/test-support/-private/get-test-loader"], function (_exports, _patchTestemOutput, _getTestLoader) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = loadEmberExam; + 0; //eaimeta@70e063a35619d71f0,"ember-exam/test-support/-private/patch-testem-output",0,"ember-exam/test-support/-private/get-test-loader"eaimeta@70e063a35619d71f + + let loaded = false; + /** + * Setup EmberExamTestLoader to enable ember exam functionalities + * + * @function loadEmberExam + * @return {*} testLoader + */ + + function loadEmberExam() { + if (loaded) { + // eslint-disable-next-line no-console + console.warn('Attempted to load Ember Exam more than once.'); + return; + } + + loaded = true; + const EmberExamTestLoader = (0, _getTestLoader.default)(); + const testLoader = new EmberExamTestLoader(window.Testem); + + if (window.Testem) { + (0, _patchTestemOutput.patchTestemOutput)(testLoader.urlParams); + } + + return testLoader; + } +}); +define("ember-exam/test-support/start", ["exports", "@embroider/macros/es-compat", "@embroider/macros/runtime", "ember-exam/test-support/load"], function (_exports, _esCompat, _runtime, _load) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = start; + 0; //eaimeta@70e063a35619d71f0,"ember-exam/test-support/load",0,"@embroider/macros",0,"ember-qunit",0,"ember-mocha"eaimeta@70e063a35619d71f + + /** + * Equivalent to ember-qunit or ember-mocha's loadTest() except this does not create a new TestLoader instance + * + * @function loadTests + * @param {*} testLoader + */ + function loadTests(testLoader) { + if (testLoader === undefined) { + throw new Error('A testLoader instance has not been created. You must call `loadEmberExam()` before calling `loadTest()`.'); + } + + testLoader.loadModules(); + } + /** + * Ember-exam's own start function to set up EmberExamTestLoader, load tests and calls start() from + * ember-qunit or ember-mocha + * + * @function start + * @param {*} qunitOptions + */ + + + function start(qunitOptions) { + const modifiedOptions = qunitOptions || Object.create(null); + modifiedOptions.loadTests = false; + const testLoader = (0, _load.default)(); + loadTests(testLoader); + let emberTestFramework; + + if ((0, _runtime.macroCondition)(true)) { + emberTestFramework = (0, _esCompat.default)(require("ember-qunit")); + } else if ((0, _runtime.macroCondition)(false)) { + emberTestFramework = (0, _esCompat.default)(require("ember-mocha")); + } + + if (emberTestFramework.start) { + emberTestFramework.start(modifiedOptions); + } + } +}); +define("ember-qunit/adapter", ["exports", "qunit", "@ember/test-helpers/has-ember-version"], function (_exports, _qunit, _hasEmberVersion) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.nonTestDoneCallback = nonTestDoneCallback; + _exports.default = void 0; + + function unhandledRejectionAssertion(current, error) { + let message, source; + + if (typeof error === 'object' && error !== null) { + message = error.message; + source = error.stack; + } else if (typeof error === 'string') { + message = error; + source = 'unknown source'; + } else { + message = 'unhandledRejection occured, but it had no message'; + source = 'unknown source'; + } + + current.assert.pushResult({ + result: false, + actual: false, + expected: true, + message: message, + source: source + }); + } + + function nonTestDoneCallback() {} + + let Adapter = Ember.Test.Adapter.extend({ + init() { + this.doneCallbacks = []; + this.qunit = this.qunit || _qunit.default; + }, + + asyncStart() { + let currentTest = this.qunit.config.current; + let done = currentTest && currentTest.assert ? currentTest.assert.async() : nonTestDoneCallback; + this.doneCallbacks.push({ + test: currentTest, + done + }); + }, + + asyncEnd() { + let currentTest = this.qunit.config.current; + + if (this.doneCallbacks.length === 0) { + throw new Error('Adapter asyncEnd called when no async was expected. Please create an issue in ember-qunit.'); + } + + let { + test, + done + } = this.doneCallbacks.pop(); // In future, we should explore fixing this at a different level, specifically + // addressing the pairing of asyncStart/asyncEnd behavior in a more consistent way. + + if (test === currentTest) { + done(); + } + }, + + // clobber default implementation of `exception` will be added back for Ember + // < 2.17 just below... + exception: null + }); // Ember 2.17 and higher do not require the test adapter to have an `exception` + // method When `exception` is not present, the unhandled rejection is + // automatically re-thrown and will therefore hit QUnit's own global error + // handler (therefore appropriately causing test failure) + + if (!(0, _hasEmberVersion.default)(2, 17)) { + Adapter = Adapter.extend({ + exception(error) { + unhandledRejectionAssertion(_qunit.default.config.current, error); + } + + }); + } + + var _default = Adapter; + _exports.default = _default; +}); +define("ember-qunit/index", ["exports", "ember-qunit/legacy-2-x/module-for", "ember-qunit/legacy-2-x/module-for-component", "ember-qunit/legacy-2-x/module-for-model", "ember-qunit/adapter", "qunit", "ember-qunit/test-loader", "@ember/test-helpers", "ember-qunit/test-isolation-validation"], function (_exports, _moduleFor, _moduleForComponent, _moduleForModel, _adapter, _qunit, _testLoader, _testHelpers, _testIsolationValidation) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.setupTest = setupTest; + _exports.setupRenderingTest = setupRenderingTest; + _exports.setupApplicationTest = setupApplicationTest; + _exports.setupTestContainer = setupTestContainer; + _exports.startTests = startTests; + _exports.setupTestAdapter = setupTestAdapter; + _exports.setupEmberTesting = setupEmberTesting; + _exports.setupEmberOnerrorValidation = setupEmberOnerrorValidation; + _exports.setupResetOnerror = setupResetOnerror; + _exports.setupTestIsolationValidation = setupTestIsolationValidation; + _exports.start = start; + Object.defineProperty(_exports, "moduleFor", { + enumerable: true, + get: function () { + return _moduleFor.default; + } + }); + Object.defineProperty(_exports, "moduleForComponent", { + enumerable: true, + get: function () { + return _moduleForComponent.default; + } + }); + Object.defineProperty(_exports, "moduleForModel", { + enumerable: true, + get: function () { + return _moduleForModel.default; + } + }); + Object.defineProperty(_exports, "QUnitAdapter", { + enumerable: true, + get: function () { + return _adapter.default; + } + }); + Object.defineProperty(_exports, "nonTestDoneCallback", { + enumerable: true, + get: function () { + return _adapter.nonTestDoneCallback; + } + }); + Object.defineProperty(_exports, "module", { + enumerable: true, + get: function () { + return _qunit.module; + } + }); + Object.defineProperty(_exports, "test", { + enumerable: true, + get: function () { + return _qunit.test; + } + }); + Object.defineProperty(_exports, "skip", { + enumerable: true, + get: function () { + return _qunit.skip; + } + }); + Object.defineProperty(_exports, "only", { + enumerable: true, + get: function () { + return _qunit.only; + } + }); + Object.defineProperty(_exports, "todo", { + enumerable: true, + get: function () { + return _qunit.todo; + } + }); + Object.defineProperty(_exports, "loadTests", { + enumerable: true, + get: function () { + return _testLoader.loadTests; + } + }); + let waitForSettled = true; + + function setupTest(hooks, _options) { + let options = _options === undefined ? { + waitForSettled + } : Ember.assign({ + waitForSettled + }, _options); + hooks.beforeEach(function (assert) { + let testMetadata = (0, _testHelpers.getTestMetadata)(this); + testMetadata.framework = 'qunit'; + return (0, _testHelpers.setupContext)(this, options).then(() => { + let originalPauseTest = this.pauseTest; + + this.pauseTest = function QUnit_pauseTest() { + assert.timeout(-1); // prevent the test from timing out + // This is a temporary work around for + // https://github.com/emberjs/ember-qunit/issues/496 this clears the + // timeout that would fail the test when it hits the global testTimeout + // value. + + clearTimeout(_qunit.default.config.timeout); + return originalPauseTest.call(this); + }; + }); + }); + hooks.afterEach(function () { + return (0, _testHelpers.teardownContext)(this, options); + }); + } + + function setupRenderingTest(hooks, _options) { + let options = _options === undefined ? { + waitForSettled + } : Ember.assign({ + waitForSettled + }, _options); + setupTest(hooks, options); + hooks.beforeEach(function () { + return (0, _testHelpers.setupRenderingContext)(this); + }); + hooks.afterEach(function () { + return (0, _testHelpers.teardownRenderingContext)(this, options); + }); + } + + function setupApplicationTest(hooks, _options) { + let options = _options === undefined ? { + waitForSettled + } : Ember.assign({ + waitForSettled + }, _options); + setupTest(hooks, options); + hooks.beforeEach(function () { + return (0, _testHelpers.setupApplicationContext)(this); + }); + hooks.afterEach(function () { + return (0, _testHelpers.teardownApplicationContext)(this, options); + }); + } + /** + Uses current URL configuration to setup the test container. + + * If `?nocontainer` is set, the test container will be hidden. + * If `?dockcontainer` or `?devmode` are set the test container will be + absolutely positioned. + * If `?devmode` is set, the test container will be made full screen. + + @method setupTestContainer + */ + + + function setupTestContainer() { + let testContainer = document.getElementById('ember-testing-container'); + + if (!testContainer) { + return; + } + + let params = _qunit.default.urlParams; + let containerVisibility = params.nocontainer ? 'hidden' : 'visible'; + let containerPosition = params.dockcontainer || params.devmode ? 'fixed' : 'relative'; + + if (params.devmode) { + testContainer.className = ' full-screen'; + } + + testContainer.style.visibility = containerVisibility; + testContainer.style.position = containerPosition; + let qunitContainer = document.getElementById('qunit'); + + if (params.dockcontainer) { + qunitContainer.style.marginBottom = window.getComputedStyle(testContainer).height; + } + } + /** + Instruct QUnit to start the tests. + @method startTests + */ + + + function startTests() { + _qunit.default.start(); + } + /** + Sets up the `Ember.Test` adapter for usage with QUnit 2.x. + + @method setupTestAdapter + */ + + + function setupTestAdapter() { + Ember.Test.adapter = _adapter.default.create(); + } + /** + Ensures that `Ember.testing` is set to `true` before each test begins + (including `before` / `beforeEach`), and reset to `false` after each test is + completed. This is done via `QUnit.testStart` and `QUnit.testDone`. + + */ + + + function setupEmberTesting() { + _qunit.default.testStart(() => { + Ember.testing = true; + }); + + _qunit.default.testDone(() => { + Ember.testing = false; + }); + } + /** + Ensures that `Ember.onerror` (if present) is properly configured to re-throw + errors that occur while `Ember.testing` is `true`. + */ + + + function setupEmberOnerrorValidation() { + _qunit.default.module('ember-qunit: Ember.onerror validation', function () { + _qunit.default.test('Ember.onerror is functioning properly', function (assert) { + assert.expect(1); + let result = (0, _testHelpers.validateErrorHandler)(); + assert.ok(result.isValid, `Ember.onerror handler with invalid testing behavior detected. An Ember.onerror handler _must_ rethrow exceptions when \`Ember.testing\` is \`true\` or the test suite is unreliable. See https://git.io/vbine for more details.`); + }); + }); + } + + function setupResetOnerror() { + _qunit.default.testDone(_testHelpers.resetOnerror); + } + + function setupTestIsolationValidation(delay) { + waitForSettled = false; + Ember.run.backburner.DEBUG = true; + + _qunit.default.on('testStart', () => (0, _testIsolationValidation.installTestNotIsolatedHook)(delay)); + } + /** + @method start + @param {Object} [options] Options to be used for enabling/disabling behaviors + @param {Boolean} [options.loadTests] If `false` tests will not be loaded automatically. + @param {Boolean} [options.setupTestContainer] If `false` the test container will not + be setup based on `devmode`, `dockcontainer`, or `nocontainer` URL params. + @param {Boolean} [options.startTests] If `false` tests will not be automatically started + (you must run `QUnit.start()` to kick them off). + @param {Boolean} [options.setupTestAdapter] If `false` the default Ember.Test adapter will + not be updated. + @param {Boolean} [options.setupEmberTesting] `false` opts out of the + default behavior of setting `Ember.testing` to `true` before all tests and + back to `false` after each test will. + @param {Boolean} [options.setupEmberOnerrorValidation] If `false` validation + of `Ember.onerror` will be disabled. + @param {Boolean} [options.setupTestIsolationValidation] If `false` test isolation validation + will be disabled. + @param {Number} [options.testIsolationValidationDelay] When using + setupTestIsolationValidation this number represents the maximum amount of + time in milliseconds that is allowed _after_ the test is completed for all + async to have been completed. The default value is 50. + */ + + + function start(options = {}) { + if (options.loadTests !== false) { + (0, _testLoader.loadTests)(); + } + + if (options.setupTestContainer !== false) { + setupTestContainer(); + } + + if (options.setupTestAdapter !== false) { + setupTestAdapter(); + } + + if (options.setupEmberTesting !== false) { + setupEmberTesting(); + } + + if (options.setupEmberOnerrorValidation !== false) { + setupEmberOnerrorValidation(); + } + + if (typeof options.setupTestIsolationValidation !== 'undefined' && options.setupTestIsolationValidation !== false) { + setupTestIsolationValidation(options.testIsolationValidationDelay); + } + + if (options.startTests !== false) { + startTests(); + } + + setupResetOnerror(); + } +}); +define("ember-qunit/legacy-2-x/module-for-component", ["exports", "ember-qunit/legacy-2-x/qunit-module", "ember-test-helpers"], function (_exports, _qunitModule, _emberTestHelpers) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = moduleForComponent; + + function moduleForComponent(name, description, callbacks) { + (0, _qunitModule.createModule)(_emberTestHelpers.TestModuleForComponent, name, description, callbacks); + (true && !(false) && Ember.deprecate(`The usage "moduleForComponent" is deprecated. Please migrate the "${name}" module to use "setupRenderingTest".`, false, { + id: 'ember-qunit.deprecate-legacy-apis', + until: '5.0.0', + url: 'https://github.com/emberjs/ember-qunit/blob/master/docs/migration.md' + })); + } +}); +define("ember-qunit/legacy-2-x/module-for-model", ["exports", "ember-qunit/legacy-2-x/qunit-module", "ember-test-helpers"], function (_exports, _qunitModule, _emberTestHelpers) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = moduleForModel; + + function moduleForModel(name, description, callbacks) { + (true && !(false) && Ember.deprecate(`The usage "moduleForModel" is deprecated. Please migrate the "${name}" module to the new test APIs.`, false, { + id: 'ember-qunit.deprecate-legacy-apis', + until: '5.0.0', + url: 'https://github.com/emberjs/ember-qunit/blob/master/docs/migration.md' + })); + (0, _qunitModule.createModule)(_emberTestHelpers.TestModuleForModel, name, description, callbacks); + } +}); +define("ember-qunit/legacy-2-x/module-for", ["exports", "ember-qunit/legacy-2-x/qunit-module", "ember-test-helpers"], function (_exports, _qunitModule, _emberTestHelpers) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = moduleFor; + + function moduleFor(name, description, callbacks) { + (true && !(false) && Ember.deprecate(`The usage "moduleFor" is deprecated. Please migrate the "${name}" module to use "module"`, false, { + id: 'ember-qunit.deprecate-legacy-apis', + until: '5.0.0', + url: 'https://github.com/emberjs/ember-qunit/blob/master/docs/migration.md' + })); + (0, _qunitModule.createModule)(_emberTestHelpers.TestModule, name, description, callbacks); + } +}); +define("ember-qunit/legacy-2-x/qunit-module", ["exports", "qunit"], function (_exports, _qunit) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.createModule = createModule; + + function noop() {} + + function callbackFor(name, callbacks) { + if (typeof callbacks !== 'object') { + return noop; + } + + if (!callbacks) { + return noop; + } + + var callback = noop; + + if (callbacks[name]) { + callback = callbacks[name]; + delete callbacks[name]; + } + + return callback; + } + + function createModule(Constructor, name, description, callbacks) { + if (!callbacks && typeof description === 'object') { + callbacks = description; + description = name; + } + + var before = callbackFor('before', callbacks); + var beforeEach = callbackFor('beforeEach', callbacks); + var afterEach = callbackFor('afterEach', callbacks); + var after = callbackFor('after', callbacks); + var module; + var moduleName = typeof description === 'string' ? description : name; + (0, _qunit.module)(moduleName, { + before() { + // storing this in closure scope to avoid exposing these + // private internals to the test context + module = new Constructor(name, description, callbacks); + return before.apply(this, arguments); + }, + + beforeEach() { + // provide the test context to the underlying module + module.setContext(this); + return module.setup(...arguments).then(() => { + return beforeEach.apply(this, arguments); + }); + }, + + afterEach() { + let result = afterEach.apply(this, arguments); + return Ember.RSVP.resolve(result).then(() => module.teardown(...arguments)); + }, + + after() { + try { + return after.apply(this, arguments); + } finally { + after = afterEach = before = beforeEach = callbacks = module = null; + } + } + + }); + } +}); +define("ember-qunit/test-isolation-validation", ["exports", "qunit", "@ember/test-helpers"], function (_exports, _qunit, _testHelpers) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.detectIfTestNotIsolated = detectIfTestNotIsolated; + _exports.installTestNotIsolatedHook = installTestNotIsolatedHook; + + /* eslint-disable no-console */ + + /** + * Detects if a specific test isn't isolated. A test is considered + * not isolated if it: + * + * - has pending timers + * - is in a runloop + * - has pending AJAX requests + * - has pending test waiters + * + * @function detectIfTestNotIsolated + * @param {Object} testInfo + * @param {string} testInfo.module The name of the test module + * @param {string} testInfo.name The test name + */ + function detectIfTestNotIsolated(test, message = '') { + if (!(0, _testHelpers.isSettled)()) { + let { + debugInfo + } = (0, _testHelpers.getSettledState)(); + console.group(`${test.module.name}: ${test.testName}`); + debugInfo.toConsole(); + console.groupEnd(); + test.expected++; + test.assert.pushResult({ + result: false, + message: `${message} \nMore information has been printed to the console. Please use that information to help in debugging.\n\n` + }); + } + } + /** + * Installs a hook to detect if a specific test isn't isolated. + * This hook is installed by patching into the `test.finish` method, + * which allows us to be very precise as to when the detection occurs. + * + * @function installTestNotIsolatedHook + * @param {number} delay the delay delay to use when checking for isolation validation + */ + + + function installTestNotIsolatedHook(delay = 50) { + if (!(0, _testHelpers.getDebugInfo)()) { + return; + } + + let test = _qunit.default.config.current; + let finish = test.finish; + let pushFailure = test.pushFailure; + + test.pushFailure = function (message) { + if (message.indexOf('Test took longer than') === 0) { + detectIfTestNotIsolated(this, message); + } else { + return pushFailure.apply(this, arguments); + } + }; // We're hooking into `test.finish`, which utilizes internal ordering of + // when a test's hooks are invoked. We do this mainly becuase we need + // greater precision as to when to detect and subsequently report if the + // test is isolated. + // + // We looked at using: + // - `afterEach` + // - the ordering of when the `afterEach` is called is not easy to guarantee + // (ancestor `afterEach`es have to be accounted for too) + // - `QUnit.on('testEnd')` + // - is executed too late; the test is already considered done so + // we're unable to push a new assert to fail the current test + // - 'QUnit.done' + // - it detatches the failure from the actual test that failed, making it + // more confusing to the end user. + + + test.finish = function () { + let doFinish = () => finish.apply(this, arguments); + + if ((0, _testHelpers.isSettled)()) { + return doFinish(); + } else { + return (0, _testHelpers.waitUntil)(_testHelpers.isSettled, { + timeout: delay + }).catch(() => {// we consider that when waitUntil times out, you're in a state of + // test isolation violation. The nature of the error is irrelevant + // in this case, and we want to allow the error to fall through + // to the finally, where cleanup occurs. + }).finally(() => { + detectIfTestNotIsolated(this, 'Test is not isolated (async execution is extending beyond the duration of the test).'); // canceling timers here isn't perfect, but is as good as we can do + // to attempt to prevent future tests from failing due to this test's + // leakage + + Ember.run.cancelTimers(); + return doFinish(); + }); + } + }; + } +}); +define("ember-qunit/test-loader", ["exports", "qunit", "ember-cli-test-loader/test-support/index"], function (_exports, _qunit, _index) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.loadTests = loadTests; + _exports.TestLoader = void 0; + (0, _index.addModuleExcludeMatcher)(function (moduleName) { + return _qunit.default.urlParams.nolint && moduleName.match(/\.(jshint|lint-test)$/); + }); + (0, _index.addModuleIncludeMatcher)(function (moduleName) { + return moduleName.match(/\.jshint$/); + }); + let moduleLoadFailures = []; + + _qunit.default.done(function () { + let length = moduleLoadFailures.length; + + try { + if (length === 0) {// do nothing + } else if (length === 1) { + throw moduleLoadFailures[0]; + } else { + throw new Error('\n' + moduleLoadFailures.join('\n')); + } + } finally { + // ensure we release previously captured errors. + moduleLoadFailures = []; + } + }); + + class TestLoader extends _index.default { + moduleLoadFailure(moduleName, error) { + moduleLoadFailures.push(error); + + _qunit.default.module('TestLoader Failures'); + + _qunit.default.test(moduleName + ': could not be loaded', function () { + throw error; + }); + } + + } + /** + Load tests following the default patterns: + + * The module name ends with `-test` + * The module name ends with `.jshint` + + Excludes tests that match the following + patterns when `?nolint` URL param is set: + + * The module name ends with `.jshint` + * The module name ends with `-lint-test` + + @method loadTests + */ + + + _exports.TestLoader = TestLoader; + + function loadTests() { + new TestLoader().loadModules(); + } +}); +define("ember-test-helpers/has-ember-version", ["exports", "@ember/test-helpers/has-ember-version"], function (_exports, _hasEmberVersion) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + Object.defineProperty(_exports, "default", { + enumerable: true, + get: function () { + return _hasEmberVersion.default; + } + }); +}); +define("ember-test-helpers/index", ["exports", "@ember/test-helpers", "ember-test-helpers/legacy-0-6-x/test-module", "ember-test-helpers/legacy-0-6-x/test-module-for-acceptance", "ember-test-helpers/legacy-0-6-x/test-module-for-component", "ember-test-helpers/legacy-0-6-x/test-module-for-model"], function (_exports, _testHelpers, _testModule, _testModuleForAcceptance, _testModuleForComponent, _testModuleForModel) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + var _exportNames = { + TestModule: true, + TestModuleForAcceptance: true, + TestModuleForComponent: true, + TestModuleForModel: true + }; + Object.defineProperty(_exports, "TestModule", { + enumerable: true, + get: function () { + return _testModule.default; + } + }); + Object.defineProperty(_exports, "TestModuleForAcceptance", { + enumerable: true, + get: function () { + return _testModuleForAcceptance.default; + } + }); + Object.defineProperty(_exports, "TestModuleForComponent", { + enumerable: true, + get: function () { + return _testModuleForComponent.default; + } + }); + Object.defineProperty(_exports, "TestModuleForModel", { + enumerable: true, + get: function () { + return _testModuleForModel.default; + } + }); + Object.keys(_testHelpers).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + Object.defineProperty(_exports, key, { + enumerable: true, + get: function () { + return _testHelpers[key]; + } + }); + }); +}); +define("ember-test-helpers/legacy-0-6-x/-legacy-overrides", ["exports", "ember-test-helpers/has-ember-version"], function (_exports, _hasEmberVersion) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.preGlimmerSetupIntegrationForComponent = preGlimmerSetupIntegrationForComponent; + + function preGlimmerSetupIntegrationForComponent() { + var module = this; + var context = this.context; + this.actionHooks = {}; + context.dispatcher = this.container.lookup('event_dispatcher:main') || Ember.EventDispatcher.create(); + context.dispatcher.setup({}, '#ember-testing'); + context.actions = module.actionHooks; + (this.registry || this.container).register('component:-test-holder', Ember.Component.extend()); + + context.render = function (template) { + // in case `this.render` is called twice, make sure to teardown the first invocation + module.teardownComponent(); + + if (!template) { + throw new Error('in a component integration test you must pass a template to `render()`'); + } + + if (Ember.isArray(template)) { + template = template.join(''); + } + + if (typeof template === 'string') { + template = Ember.Handlebars.compile(template); + } + + module.component = module.container.lookupFactory('component:-test-holder').create({ + layout: template + }); + module.component.set('context', context); + module.component.set('controller', context); + Ember.run(function () { + module.component.appendTo('#ember-testing'); + }); + context._element = module.component.element; + }; + + context.$ = function () { + return module.component.$.apply(module.component, arguments); + }; + + context.set = function (key, value) { + var ret = Ember.run(function () { + return Ember.set(context, key, value); + }); + + if ((0, _hasEmberVersion.default)(2, 0)) { + return ret; + } + }; + + context.setProperties = function (hash) { + var ret = Ember.run(function () { + return Ember.setProperties(context, hash); + }); + + if ((0, _hasEmberVersion.default)(2, 0)) { + return ret; + } + }; + + context.get = function (key) { + return Ember.get(context, key); + }; + + context.getProperties = function () { + var args = Array.prototype.slice.call(arguments); + return Ember.getProperties(context, args); + }; + + context.on = function (actionName, handler) { + module.actionHooks[actionName] = handler; + }; + + context.send = function (actionName) { + var hook = module.actionHooks[actionName]; + + if (!hook) { + throw new Error('integration testing template received unexpected action ' + actionName); + } + + hook.apply(module, Array.prototype.slice.call(arguments, 1)); + }; + + context.clearRender = function () { + module.teardownComponent(); + }; + } +}); +define("ember-test-helpers/legacy-0-6-x/abstract-test-module", ["exports", "ember-test-helpers/legacy-0-6-x/ext/rsvp", "@ember/test-helpers/settled", "@ember/test-helpers"], function (_exports, _rsvp, _settled, _testHelpers) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + class _default { + constructor(name, options) { + this.context = undefined; + this.name = name; + this.callbacks = options || {}; + this.initSetupSteps(); + this.initTeardownSteps(); + } + + setup(assert) { + Ember.testing = true; + Ember.run.backburner.DEBUG = true; + return this.invokeSteps(this.setupSteps, this, assert).then(() => { + this.contextualizeCallbacks(); + return this.invokeSteps(this.contextualizedSetupSteps, this.context, assert); + }); + } + + teardown(assert) { + return this.invokeSteps(this.contextualizedTeardownSteps, this.context, assert).then(() => { + return this.invokeSteps(this.teardownSteps, this, assert); + }).then(() => { + this.cache = null; + this.cachedCalls = null; + }).finally(function () { + Ember.testing = false; + }); + } + + initSetupSteps() { + this.setupSteps = []; + this.contextualizedSetupSteps = []; + + if (this.callbacks.beforeSetup) { + this.setupSteps.push(this.callbacks.beforeSetup); + delete this.callbacks.beforeSetup; + } + + this.setupSteps.push(this.setupContext); + this.setupSteps.push(this.setupTestElements); + this.setupSteps.push(this.setupAJAXListeners); + this.setupSteps.push(this.setupPromiseListeners); + + if (this.callbacks.setup) { + this.contextualizedSetupSteps.push(this.callbacks.setup); + delete this.callbacks.setup; + } + } + + invokeSteps(steps, context, assert) { + steps = steps.slice(); + + function nextStep() { + var step = steps.shift(); + + if (step) { + // guard against exceptions, for example missing components referenced from needs. + return new Ember.RSVP.Promise(resolve => { + resolve(step.call(context, assert)); + }).then(nextStep); + } else { + return Ember.RSVP.resolve(); + } + } + + return nextStep(); + } + + contextualizeCallbacks() {} + + initTeardownSteps() { + this.teardownSteps = []; + this.contextualizedTeardownSteps = []; + + if (this.callbacks.teardown) { + this.contextualizedTeardownSteps.push(this.callbacks.teardown); + delete this.callbacks.teardown; + } + + this.teardownSteps.push(this.teardownContext); + this.teardownSteps.push(this.teardownTestElements); + this.teardownSteps.push(this.teardownAJAXListeners); + this.teardownSteps.push(this.teardownPromiseListeners); + + if (this.callbacks.afterTeardown) { + this.teardownSteps.push(this.callbacks.afterTeardown); + delete this.callbacks.afterTeardown; + } + } + + setupTestElements() { + let testElementContainer = document.querySelector('#ember-testing-container'); + + if (!testElementContainer) { + testElementContainer = document.createElement('div'); + testElementContainer.setAttribute('id', 'ember-testing-container'); + document.body.appendChild(testElementContainer); + } + + let testEl = document.querySelector('#ember-testing'); + + if (!testEl) { + let element = document.createElement('div'); + element.setAttribute('id', 'ember-testing'); + testElementContainer.appendChild(element); + this.fixtureResetValue = ''; + } else { + this.fixtureResetValue = testElementContainer.innerHTML; + } + } + + setupContext(options) { + let context = this.getContext(); + Ember.assign(context, { + dispatcher: null, + inject: {} + }, options); + this.setToString(); + (0, _testHelpers.setContext)(context); + this.context = context; + } + + setContext(context) { + this.context = context; + } + + getContext() { + if (this.context) { + return this.context; + } + + return this.context = (0, _testHelpers.getContext)() || {}; + } + + setToString() { + this.context.toString = () => { + if (this.subjectName) { + return `test context for: ${this.subjectName}`; + } + + if (this.name) { + return `test context for: ${this.name}`; + } + }; + } + + setupAJAXListeners() { + (0, _settled._setupAJAXHooks)(); + } + + teardownAJAXListeners() { + (0, _settled._teardownAJAXHooks)(); + } + + setupPromiseListeners() { + (0, _rsvp._setupPromiseListeners)(); + } + + teardownPromiseListeners() { + (0, _rsvp._teardownPromiseListeners)(); + } + + teardownTestElements() { + document.getElementById('ember-testing-container').innerHTML = this.fixtureResetValue; // Ember 2.0.0 removed Ember.View as public API, so only do this when + // Ember.View is present + + if (Ember.View && Ember.View.views) { + Ember.View.views = {}; + } + } + + teardownContext() { + var context = this.context; + this.context = undefined; + (0, _testHelpers.unsetContext)(); + + if (context && context.dispatcher && !context.dispatcher.isDestroyed) { + Ember.run(function () { + context.dispatcher.destroy(); + }); + } + } + + } + + _exports.default = _default; +}); +define("ember-test-helpers/legacy-0-6-x/build-registry", ["exports", "require"], function (_exports, _require) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = _default; + + function exposeRegistryMethodsWithoutDeprecations(container) { + var methods = ['register', 'unregister', 'resolve', 'normalize', 'typeInjection', 'injection', 'factoryInjection', 'factoryTypeInjection', 'has', 'options', 'optionsForType']; + + function exposeRegistryMethod(container, method) { + if (method in container) { + container[method] = function () { + return container._registry[method].apply(container._registry, arguments); + }; + } + } + + for (var i = 0, l = methods.length; i < l; i++) { + exposeRegistryMethod(container, methods[i]); + } + } + + var Owner = function () { + if (Ember._RegistryProxyMixin && Ember._ContainerProxyMixin) { + return Ember.Object.extend(Ember._RegistryProxyMixin, Ember._ContainerProxyMixin, { + _emberTestHelpersMockOwner: true + }); + } + + return Ember.Object.extend({ + _emberTestHelpersMockOwner: true + }); + }(); + + function _default(resolver) { + var fallbackRegistry, registry, container; + var namespace = Ember.Object.create({ + Resolver: { + create() { + return resolver; + } + + } + }); + + function register(name, factory) { + var thingToRegisterWith = registry || container; + + if (!(container.factoryFor ? container.factoryFor(name) : container.lookupFactory(name))) { + thingToRegisterWith.register(name, factory); + } + } + + if (Ember.Application.buildRegistry) { + fallbackRegistry = Ember.Application.buildRegistry(namespace); + fallbackRegistry.register('component-lookup:main', Ember.ComponentLookup); + registry = new Ember.Registry({ + fallback: fallbackRegistry + }); + + if (Ember.ApplicationInstance && Ember.ApplicationInstance.setupRegistry) { + Ember.ApplicationInstance.setupRegistry(registry); + } // these properties are set on the fallback registry by `buildRegistry` + // and on the primary registry within the ApplicationInstance constructor + // but we need to manually recreate them since ApplicationInstance's are not + // exposed externally + + + registry.normalizeFullName = fallbackRegistry.normalizeFullName; + registry.makeToString = fallbackRegistry.makeToString; + registry.describe = fallbackRegistry.describe; + var owner = Owner.create({ + __registry__: registry, + __container__: null + }); + container = registry.container({ + owner: owner + }); + owner.__container__ = container; + exposeRegistryMethodsWithoutDeprecations(container); + } else { + container = Ember.Application.buildContainer(namespace); + container.register('component-lookup:main', Ember.ComponentLookup); + } // Ember 1.10.0 did not properly add `view:toplevel` or `view:default` + // to the registry in Ember.Application.buildRegistry :( + // + // Ember 2.0.0 removed Ember.View as public API, so only do this when + // Ember.View is present + + + if (Ember.View) { + register('view:toplevel', Ember.View.extend()); + } // Ember 2.0.0 removed Ember._MetamorphView from the Ember global, so only + // do this when present + + + if (Ember._MetamorphView) { + register('view:default', Ember._MetamorphView); + } + + var globalContext = typeof global === 'object' && global || self; + + if (requirejs.entries['ember-data/setup-container']) { + // ember-data is a proper ember-cli addon since 2.3; if no 'import + // 'ember-data'' is present somewhere in the tests, there is also no `DS` + // available on the globalContext and hence ember-data wouldn't be setup + // correctly for the tests; that's why we import and call setupContainer + // here; also see https://github.com/emberjs/data/issues/4071 for context + var setupContainer = (0, _require.default)("ember-data/setup-container")['default']; + setupContainer(registry || container); + } else if (globalContext.DS) { + var DS = globalContext.DS; + + if (DS._setupContainer) { + DS._setupContainer(registry || container); + } else { + register('transform:boolean', DS.BooleanTransform); + register('transform:date', DS.DateTransform); + register('transform:number', DS.NumberTransform); + register('transform:string', DS.StringTransform); + register('serializer:-default', DS.JSONSerializer); + register('serializer:-rest', DS.RESTSerializer); + register('adapter:-rest', DS.RESTAdapter); + } + } + + return { + registry, + container, + owner + }; + } +}); +define("ember-test-helpers/legacy-0-6-x/ext/rsvp", ["exports", "ember-test-helpers/has-ember-version"], function (_exports, _hasEmberVersion) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports._setupPromiseListeners = _setupPromiseListeners; + _exports._teardownPromiseListeners = _teardownPromiseListeners; + let originalAsync; + /** + Configures `RSVP` to resolve promises on the run-loop's action queue. This is + done by Ember internally since Ember 1.7 and it is only needed to + provide a consistent testing experience for users of Ember < 1.7. + + @private + */ + + function _setupPromiseListeners() { + if (!(0, _hasEmberVersion.default)(1, 7)) { + originalAsync = Ember.RSVP.configure('async'); + Ember.RSVP.configure('async', function (callback, promise) { + Ember.run.backburner.schedule('actions', () => { + callback(promise); + }); + }); + } + } + /** + Resets `RSVP`'s `async` to its prior value. + + @private + */ + + + function _teardownPromiseListeners() { + if (!(0, _hasEmberVersion.default)(1, 7)) { + Ember.RSVP.configure('async', originalAsync); + } + } +}); +define("ember-test-helpers/legacy-0-6-x/test-module-for-acceptance", ["exports", "ember-test-helpers/legacy-0-6-x/abstract-test-module", "@ember/test-helpers"], function (_exports, _abstractTestModule, _testHelpers) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + class _default extends _abstractTestModule.default { + setupContext() { + super.setupContext({ + application: this.createApplication() + }); + } + + teardownContext() { + Ember.run(() => { + (0, _testHelpers.getContext)().application.destroy(); + }); + super.teardownContext(); + } + + createApplication() { + let { + Application, + config + } = this.callbacks; + let application; + Ember.run(() => { + application = Application.create(config); + application.setupForTesting(); + application.injectTestHelpers(); + }); + return application; + } + + } + + _exports.default = _default; +}); +define("ember-test-helpers/legacy-0-6-x/test-module-for-component", ["exports", "ember-test-helpers/legacy-0-6-x/test-module", "ember-test-helpers/has-ember-version", "ember-test-helpers/legacy-0-6-x/-legacy-overrides"], function (_exports, _testModule, _hasEmberVersion, _legacyOverrides) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.setupComponentIntegrationTest = setupComponentIntegrationTest; + _exports.default = void 0; + let ACTION_KEY; + + if ((0, _hasEmberVersion.default)(2, 0)) { + ACTION_KEY = 'actions'; + } else { + ACTION_KEY = '_actions'; + } + + const isPreGlimmer = !(0, _hasEmberVersion.default)(1, 13); + + class _default extends _testModule.default { + constructor(componentName, description, callbacks) { + // Allow `description` to be omitted + if (!callbacks && typeof description === 'object') { + callbacks = description; + description = null; + } else if (!callbacks) { + callbacks = {}; + } + + let integrationOption = callbacks.integration; + let hasNeeds = Array.isArray(callbacks.needs); + super('component:' + componentName, description, callbacks); + this.componentName = componentName; + + if (hasNeeds || callbacks.unit || integrationOption === false) { + this.isUnitTest = true; + } else if (integrationOption) { + this.isUnitTest = false; + } else { + (true && !(false) && Ember.deprecate('the component:' + componentName + ' test module is implicitly running in unit test mode, ' + 'which will change to integration test mode by default in an upcoming version of ' + 'ember-test-helpers. Add `unit: true` or a `needs:[]` list to explicitly opt in to unit ' + 'test mode.', false, { + id: 'ember-test-helpers.test-module-for-component.test-type', + until: '0.6.0' + })); + this.isUnitTest = true; + } + + if (!this.isUnitTest && !this.isLegacy) { + callbacks.integration = true; + } + + if (this.isUnitTest || this.isLegacy) { + this.setupSteps.push(this.setupComponentUnitTest); + } else { + this.callbacks.subject = function () { + throw new Error("component integration tests do not support `subject()`. Instead, render the component as if it were HTML: `this.render('');`. For more information, read: http://guides.emberjs.com/current/testing/testing-components/"); + }; + + this.setupSteps.push(this.setupComponentIntegrationTest); + this.teardownSteps.unshift(this.teardownComponent); + } + + if (Ember.View && Ember.View.views) { + this.setupSteps.push(this._aliasViewRegistry); + this.teardownSteps.unshift(this._resetViewRegistry); + } + } + + initIntegration(options) { + this.isLegacy = options.integration === 'legacy'; + this.isIntegration = options.integration !== 'legacy'; + } + + _aliasViewRegistry() { + this._originalGlobalViewRegistry = Ember.View.views; + var viewRegistry = this.container.lookup('-view-registry:main'); + + if (viewRegistry) { + Ember.View.views = viewRegistry; + } + } + + _resetViewRegistry() { + Ember.View.views = this._originalGlobalViewRegistry; + } + + setupComponentUnitTest() { + var _this = this; + + var resolver = this.resolver; + var context = this.context; + var layoutName = 'template:components/' + this.componentName; + var layout = resolver.resolve(layoutName); + var thingToRegisterWith = this.registry || this.container; + + if (layout) { + thingToRegisterWith.register(layoutName, layout); + thingToRegisterWith.injection(this.subjectName, 'layout', layoutName); + } + + var eventDispatcher = resolver.resolve('event_dispatcher:main'); + + if (eventDispatcher) { + thingToRegisterWith.register('event_dispatcher:main', eventDispatcher); + } + + context.dispatcher = this.container.lookup('event_dispatcher:main') || Ember.EventDispatcher.create(); + context.dispatcher.setup({}, '#ember-testing'); + context._element = null; + + this.callbacks.render = function () { + var subject; + Ember.run(function () { + subject = context.subject(); + subject.appendTo('#ember-testing'); + }); + context._element = subject.element; + + _this.teardownSteps.unshift(function () { + Ember.run(function () { + Ember.tryInvoke(subject, 'destroy'); + }); + }); + }; + + this.callbacks.append = function () { + (true && !(false) && Ember.deprecate('this.append() is deprecated. Please use this.render() or this.$() instead.', false, { + id: 'ember-test-helpers.test-module-for-component.append', + until: '0.6.0' + })); + return context.$(); + }; + + context.$ = function () { + this.render(); + var subject = this.subject(); + return subject.$.apply(subject, arguments); + }; + } + + setupComponentIntegrationTest() { + if (isPreGlimmer) { + return _legacyOverrides.preGlimmerSetupIntegrationForComponent.apply(this, arguments); + } else { + return setupComponentIntegrationTest.apply(this, arguments); + } + } + + setupContext() { + super.setupContext(); // only setup the injection if we are running against a version + // of Ember that has `-view-registry:main` (Ember >= 1.12) + + if (this.container.factoryFor ? this.container.factoryFor('-view-registry:main') : this.container.lookupFactory('-view-registry:main')) { + (this.registry || this.container).injection('component', '_viewRegistry', '-view-registry:main'); + } + + if (!this.isUnitTest && !this.isLegacy) { + this.context.factory = function () {}; + } + } + + teardownComponent() { + var component = this.component; + + if (component) { + Ember.run(component, 'destroy'); + this.component = null; + } + } + + } + + _exports.default = _default; + + function getOwnerFromModule(module) { + return Ember.getOwner && Ember.getOwner(module.container) || module.container.owner; + } + + function lookupTemplateFromModule(module, templateFullName) { + var template = module.container.lookup(templateFullName); + if (typeof template === 'function') template = template(getOwnerFromModule(module)); + return template; + } + + function setupComponentIntegrationTest() { + var module = this; + var context = this.context; + this.actionHooks = context[ACTION_KEY] = {}; + context.dispatcher = this.container.lookup('event_dispatcher:main') || Ember.EventDispatcher.create(); + context.dispatcher.setup({}, '#ember-testing'); + var hasRendered = false; + var OutletView = module.container.factoryFor ? module.container.factoryFor('view:-outlet') : module.container.lookupFactory('view:-outlet'); + var OutletTemplate = lookupTemplateFromModule(module, 'template:-outlet'); + var toplevelView = module.component = OutletView.create(); + var hasOutletTemplate = !!OutletTemplate; + var outletState = { + render: { + owner: getOwnerFromModule(module), + into: undefined, + outlet: 'main', + name: 'application', + controller: module.context, + ViewClass: undefined, + template: OutletTemplate + }, + outlets: {} + }; + var element = document.getElementById('ember-testing'); + var templateId = 0; + + if (hasOutletTemplate) { + Ember.run(() => { + toplevelView.setOutletState(outletState); + }); + } + + context.render = function (template) { + if (!template) { + throw new Error('in a component integration test you must pass a template to `render()`'); + } + + if (Ember.isArray(template)) { + template = template.join(''); + } + + if (typeof template === 'string') { + template = Ember.Handlebars.compile(template); + } + + var templateFullName = 'template:-undertest-' + ++templateId; + this.registry.register(templateFullName, template); + var stateToRender = { + owner: getOwnerFromModule(module), + into: undefined, + outlet: 'main', + name: 'index', + controller: module.context, + ViewClass: undefined, + template: lookupTemplateFromModule(module, templateFullName), + outlets: {} + }; + + if (hasOutletTemplate) { + stateToRender.name = 'index'; + outletState.outlets.main = { + render: stateToRender, + outlets: {} + }; + } else { + stateToRender.name = 'application'; + outletState = { + render: stateToRender, + outlets: {} + }; + } + + Ember.run(() => { + toplevelView.setOutletState(outletState); + }); + + if (!hasRendered) { + Ember.run(module.component, 'appendTo', '#ember-testing'); + hasRendered = true; + } + + if (EmberENV._APPLICATION_TEMPLATE_WRAPPER !== false) { + // ensure the element is based on the wrapping toplevel view + // Ember still wraps the main application template with a + // normal tagged view + context._element = element = document.querySelector('#ember-testing > .ember-view'); + } else { + context._element = element = document.querySelector('#ember-testing'); + } + }; + + context.$ = function (selector) { + // emulates Ember internal behavor of `this.$` in a component + // https://github.com/emberjs/ember.js/blob/v2.5.1/packages/ember-views/lib/views/states/has_element.js#L18 + return selector ? jQuery(selector, element) : jQuery(element); + }; + + context.set = function (key, value) { + var ret = Ember.run(function () { + return Ember.set(context, key, value); + }); + + if ((0, _hasEmberVersion.default)(2, 0)) { + return ret; + } + }; + + context.setProperties = function (hash) { + var ret = Ember.run(function () { + return Ember.setProperties(context, hash); + }); + + if ((0, _hasEmberVersion.default)(2, 0)) { + return ret; + } + }; + + context.get = function (key) { + return Ember.get(context, key); + }; + + context.getProperties = function () { + var args = Array.prototype.slice.call(arguments); + return Ember.getProperties(context, args); + }; + + context.on = function (actionName, handler) { + module.actionHooks[actionName] = handler; + }; + + context.send = function (actionName) { + var hook = module.actionHooks[actionName]; + + if (!hook) { + throw new Error('integration testing template received unexpected action ' + actionName); + } + + hook.apply(module.context, Array.prototype.slice.call(arguments, 1)); + }; + + context.clearRender = function () { + Ember.run(function () { + toplevelView.setOutletState({ + render: { + owner: module.container, + into: undefined, + outlet: 'main', + name: 'application', + controller: module.context, + ViewClass: undefined, + template: undefined + }, + outlets: {} + }); + }); + }; + } +}); +define("ember-test-helpers/legacy-0-6-x/test-module-for-model", ["exports", "require", "ember-test-helpers/legacy-0-6-x/test-module"], function (_exports, _require, _testModule) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + class _default extends _testModule.default { + constructor(modelName, description, callbacks) { + super('model:' + modelName, description, callbacks); + this.modelName = modelName; + this.setupSteps.push(this.setupModel); + } + + setupModel() { + var container = this.container; + var defaultSubject = this.defaultSubject; + var callbacks = this.callbacks; + var modelName = this.modelName; + var adapterFactory = container.factoryFor ? container.factoryFor('adapter:application') : container.lookupFactory('adapter:application'); + + if (!adapterFactory) { + if (requirejs.entries['ember-data/adapters/json-api']) { + adapterFactory = (0, _require.default)("ember-data/adapters/json-api")['default']; + } // when ember-data/adapters/json-api is provided via ember-cli shims + // using Ember Data 1.x the actual JSONAPIAdapter isn't found, but the + // above require statement returns a bizzaro object with only a `default` + // property (circular reference actually) + + + if (!adapterFactory || !adapterFactory.create) { + adapterFactory = DS.JSONAPIAdapter || DS.FixtureAdapter; + } + + var thingToRegisterWith = this.registry || this.container; + thingToRegisterWith.register('adapter:application', adapterFactory); + } + + callbacks.store = function () { + var container = this.container; + return container.lookup('service:store') || container.lookup('store:main'); + }; + + if (callbacks.subject === defaultSubject) { + callbacks.subject = function (options) { + var container = this.container; + return Ember.run(function () { + var store = container.lookup('service:store') || container.lookup('store:main'); + return store.createRecord(modelName, options); + }); + }; + } + } + + } + + _exports.default = _default; +}); +define("ember-test-helpers/legacy-0-6-x/test-module", ["exports", "ember-test-helpers/legacy-0-6-x/abstract-test-module", "@ember/test-helpers", "ember-test-helpers/legacy-0-6-x/build-registry", "@ember/test-helpers/has-ember-version"], function (_exports, _abstractTestModule, _testHelpers, _buildRegistry, _hasEmberVersion) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + + class _default extends _abstractTestModule.default { + constructor(subjectName, description, callbacks) { + // Allow `description` to be omitted, in which case it should + // default to `subjectName` + if (!callbacks && typeof description === 'object') { + callbacks = description; + description = subjectName; + } + + super(description || subjectName, callbacks); + this.subjectName = subjectName; + this.description = description || subjectName; + this.resolver = this.callbacks.resolver || (0, _testHelpers.getResolver)(); + + if (this.callbacks.integration && this.callbacks.needs) { + throw new Error("cannot declare 'integration: true' and 'needs' in the same module"); + } + + if (this.callbacks.integration) { + this.initIntegration(callbacks); + delete callbacks.integration; + } + + this.initSubject(); + this.initNeeds(); + } + + initIntegration(options) { + if (options.integration === 'legacy') { + throw new Error("`integration: 'legacy'` is only valid for component tests."); + } + + this.isIntegration = true; + } + + initSubject() { + this.callbacks.subject = this.callbacks.subject || this.defaultSubject; + } + + initNeeds() { + this.needs = [this.subjectName]; + + if (this.callbacks.needs) { + this.needs = this.needs.concat(this.callbacks.needs); + delete this.callbacks.needs; + } + } + + initSetupSteps() { + this.setupSteps = []; + this.contextualizedSetupSteps = []; + + if (this.callbacks.beforeSetup) { + this.setupSteps.push(this.callbacks.beforeSetup); + delete this.callbacks.beforeSetup; + } + + this.setupSteps.push(this.setupContainer); + this.setupSteps.push(this.setupContext); + this.setupSteps.push(this.setupTestElements); + this.setupSteps.push(this.setupAJAXListeners); + this.setupSteps.push(this.setupPromiseListeners); + + if (this.callbacks.setup) { + this.contextualizedSetupSteps.push(this.callbacks.setup); + delete this.callbacks.setup; + } + } + + initTeardownSteps() { + this.teardownSteps = []; + this.contextualizedTeardownSteps = []; + + if (this.callbacks.teardown) { + this.contextualizedTeardownSteps.push(this.callbacks.teardown); + delete this.callbacks.teardown; + } + + this.teardownSteps.push(this.teardownSubject); + this.teardownSteps.push(this.teardownContainer); + this.teardownSteps.push(this.teardownContext); + this.teardownSteps.push(this.teardownTestElements); + this.teardownSteps.push(this.teardownAJAXListeners); + this.teardownSteps.push(this.teardownPromiseListeners); + + if (this.callbacks.afterTeardown) { + this.teardownSteps.push(this.callbacks.afterTeardown); + delete this.callbacks.afterTeardown; + } + } + + setupContainer() { + if (this.isIntegration || this.isLegacy) { + this._setupIntegratedContainer(); + } else { + this._setupIsolatedContainer(); + } + } + + setupContext() { + var subjectName = this.subjectName; + var container = this.container; + + var factory = function () { + return container.factoryFor ? container.factoryFor(subjectName) : container.lookupFactory(subjectName); + }; + + super.setupContext({ + container: this.container, + registry: this.registry, + factory: factory, + + register() { + var target = this.registry || this.container; + return target.register.apply(target, arguments); + } + + }); + + if (Ember.setOwner) { + Ember.setOwner(this.context, this.container.owner); + } + + this.setupInject(); + } + + setupInject() { + var module = this; + var context = this.context; + + if (Ember.inject) { + var keys = (Object.keys || keys)(Ember.inject); + keys.forEach(function (typeName) { + context.inject[typeName] = function (name, opts) { + var alias = opts && opts.as || name; + Ember.run(function () { + Ember.set(context, alias, module.container.lookup(typeName + ':' + name)); + }); + }; + }); + } + } + + teardownSubject() { + var subject = this.cache.subject; + + if (subject) { + Ember.run(function () { + Ember.tryInvoke(subject, 'destroy'); + }); + } + } + + teardownContainer() { + var container = this.container; + Ember.run(function () { + container.destroy(); + }); + } + + defaultSubject(options, factory) { + return factory.create(options); + } // allow arbitrary named factories, like rspec let + + + contextualizeCallbacks() { + var callbacks = this.callbacks; + var context = this.context; + this.cache = this.cache || {}; + this.cachedCalls = this.cachedCalls || {}; + var keys = (Object.keys || keys)(callbacks); + var keysLength = keys.length; + + if (keysLength) { + var deprecatedContext = this._buildDeprecatedContext(this, context); + + for (var i = 0; i < keysLength; i++) { + this._contextualizeCallback(context, keys[i], deprecatedContext); + } + } + } + + _contextualizeCallback(context, key, callbackContext) { + var _this = this; + + var callbacks = this.callbacks; + var factory = context.factory; + + context[key] = function (options) { + if (_this.cachedCalls[key]) { + return _this.cache[key]; + } + + var result = callbacks[key].call(callbackContext, options, factory()); + _this.cache[key] = result; + _this.cachedCalls[key] = true; + return result; + }; + } + /* + Builds a version of the passed in context that contains deprecation warnings + for accessing properties that exist on the module. + */ + + + _buildDeprecatedContext(module, context) { + var deprecatedContext = Object.create(context); + var keysForDeprecation = Object.keys(module); + + for (var i = 0, l = keysForDeprecation.length; i < l; i++) { + this._proxyDeprecation(module, deprecatedContext, keysForDeprecation[i]); + } + + return deprecatedContext; + } + /* + Defines a key on an object to act as a proxy for deprecating the original. + */ + + + _proxyDeprecation(obj, proxy, key) { + if (typeof proxy[key] === 'undefined') { + Object.defineProperty(proxy, key, { + get() { + (true && !(false) && Ember.deprecate('Accessing the test module property "' + key + '" from a callback is deprecated.', false, { + id: 'ember-test-helpers.test-module.callback-context', + until: '0.6.0' + })); + return obj[key]; + } + + }); + } + } + + _setupContainer(isolated) { + var resolver = this.resolver; + var items = (0, _buildRegistry.default)(!isolated ? resolver : Object.create(resolver, { + resolve: { + value() {} + + } + })); + this.container = items.container; + this.registry = items.registry; + + if ((0, _hasEmberVersion.default)(1, 13)) { + var thingToRegisterWith = this.registry || this.container; + var router = resolver.resolve('router:main'); + router = router || Ember.Router.extend(); + thingToRegisterWith.register('router:main', router); + } + } + + _setupIsolatedContainer() { + var resolver = this.resolver; + + this._setupContainer(true); + + var thingToRegisterWith = this.registry || this.container; + + for (var i = this.needs.length; i > 0; i--) { + var fullName = this.needs[i - 1]; + var normalizedFullName = resolver.normalize(fullName); + thingToRegisterWith.register(fullName, resolver.resolve(normalizedFullName)); + } + + if (!this.registry) { + this.container.resolver = function () {}; + } + } + + _setupIntegratedContainer() { + this._setupContainer(); + } + + } + + _exports.default = _default; +}); +define("ember-test-helpers/wait", ["exports", "@ember/test-helpers/settled", "@ember/test-helpers"], function (_exports, _settled, _testHelpers) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = wait; + Object.defineProperty(_exports, "_setupAJAXHooks", { + enumerable: true, + get: function () { + return _settled._setupAJAXHooks; + } + }); + Object.defineProperty(_exports, "_teardownAJAXHooks", { + enumerable: true, + get: function () { + return _settled._teardownAJAXHooks; + } + }); + + /** + Returns a promise that resolves when in a settled state (see `isSettled` for + a definition of "settled state"). + + @private + @deprecated + @param {Object} [options={}] the options to be used for waiting + @param {boolean} [options.waitForTimers=true] should timers be waited upon + @param {boolean} [options.waitForAjax=true] should $.ajax requests be waited upon + @param {boolean} [options.waitForWaiters=true] should test waiters be waited upon + @returns {Promise} resolves when settled + */ + function wait(options = {}) { + if (typeof options !== 'object' || options === null) { + options = {}; + } + + return (0, _testHelpers.waitUntil)(() => { + let waitForTimers = 'waitForTimers' in options ? options.waitForTimers : true; + let waitForAJAX = 'waitForAJAX' in options ? options.waitForAJAX : true; + let waitForWaiters = 'waitForWaiters' in options ? options.waitForWaiters : true; + let { + hasPendingTimers, + hasRunLoop, + hasPendingRequests, + hasPendingWaiters + } = (0, _testHelpers.getSettledState)(); + + if (waitForTimers && (hasPendingTimers || hasRunLoop)) { + return false; + } + + if (waitForAJAX && hasPendingRequests) { + return false; + } + + if (waitForWaiters && hasPendingWaiters) { + return false; + } + + return true; + }, { + timeout: Infinity + }); + } +}); +define('qunit-dom', [], function() { + return {}; +}); + +define("qunit/index", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = _exports.todo = _exports.only = _exports.skip = _exports.test = _exports.module = void 0; + + /* globals QUnit */ + var module = QUnit.module; + _exports.module = module; + var test = QUnit.test; + _exports.test = test; + var skip = QUnit.skip; + _exports.skip = skip; + var only = QUnit.only; + _exports.only = only; + var todo = QUnit.todo; + _exports.todo = todo; + var _default = QUnit; + _exports.default = _default; +}); +runningTests = true; + +if (window.Testem) { + window.Testem.hookIntoTestFramework(); +} + + +//# sourceMappingURL=test-support.map diff --git a/test-packages/my-app-ember-exam/test-dist/assets/test-support.map b/test-packages/my-app-ember-exam/test-dist/assets/test-support.map new file mode 100644 index 00000000..dfe94160 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/test-support.map @@ -0,0 +1 @@ +{"version":3,"sources":["vendor/ember-cli/test-support-prefix.js","license.js","loader.js","@ember/debug/index.js","@ember/debug/lib/capture-render-tree.js","@ember/debug/lib/deprecate.js","@ember/debug/lib/handlers.js","@ember/debug/lib/testing.js","@ember/debug/lib/warn.js","ember-testing/index.js","ember-testing/lib/adapters/adapter.js","ember-testing/lib/adapters/qunit.js","ember-testing/lib/events.js","ember-testing/lib/ext/application.js","ember-testing/lib/ext/rsvp.js","ember-testing/lib/helpers.js","ember-testing/lib/helpers/-is-form-control.js","ember-testing/lib/helpers/and_then.js","ember-testing/lib/helpers/click.js","ember-testing/lib/helpers/current_path.js","ember-testing/lib/helpers/current_route_name.js","ember-testing/lib/helpers/current_url.js","ember-testing/lib/helpers/fill_in.js","ember-testing/lib/helpers/find.js","ember-testing/lib/helpers/find_with_assert.js","ember-testing/lib/helpers/key_event.js","ember-testing/lib/helpers/pause_test.js","ember-testing/lib/helpers/trigger_event.js","ember-testing/lib/helpers/visit.js","ember-testing/lib/helpers/wait.js","ember-testing/lib/initializers.js","ember-testing/lib/setup_for_testing.js","ember-testing/lib/support.js","ember-testing/lib/test.js","ember-testing/lib/test/adapter.js","ember-testing/lib/test/helpers.js","ember-testing/lib/test/on_inject_helpers.js","ember-testing/lib/test/pending_requests.js","ember-testing/lib/test/promise.js","ember-testing/lib/test/run.js","ember-testing/lib/test/waiters.js","vendor/embroider-macros-test-support.js","vendor/monkey-patches.js","vendor/qunit/qunit.js","vendor/ember-qunit/qunit-configuration.js","vendor/qunit-dom.js","vendor/overwrite-qunit-dom-root-element.js","addon-test-support/@ember/test-helpers/-internal/debug-info-helpers.js","addon-test-support/@ember/test-helpers/-internal/debug-info.js","addon-test-support/@ember/test-helpers/-tuple.js","addon-test-support/@ember/test-helpers/-utils.js","addon-test-support/@ember/test-helpers/application.js","addon-test-support/@ember/test-helpers/build-owner.js","addon-test-support/@ember/test-helpers/dom/-get-element.js","addon-test-support/@ember/test-helpers/dom/-get-elements.js","addon-test-support/@ember/test-helpers/dom/-is-focusable.js","addon-test-support/@ember/test-helpers/dom/-is-form-control.js","addon-test-support/@ember/test-helpers/dom/-target.js","addon-test-support/@ember/test-helpers/dom/-to-array.js","addon-test-support/@ember/test-helpers/dom/blur.js","addon-test-support/@ember/test-helpers/dom/click.js","addon-test-support/@ember/test-helpers/dom/double-click.js","addon-test-support/@ember/test-helpers/dom/fill-in.js","addon-test-support/@ember/test-helpers/dom/find-all.js","addon-test-support/@ember/test-helpers/dom/find.js","addon-test-support/@ember/test-helpers/dom/fire-event.js","addon-test-support/@ember/test-helpers/dom/focus.js","addon-test-support/@ember/test-helpers/dom/get-root-element.js","addon-test-support/@ember/test-helpers/dom/tap.js","addon-test-support/@ember/test-helpers/dom/trigger-event.js","addon-test-support/@ember/test-helpers/dom/trigger-key-event.js","addon-test-support/@ember/test-helpers/dom/type-in.js","addon-test-support/@ember/test-helpers/dom/wait-for.js","addon-test-support/@ember/test-helpers/global.js","addon-test-support/@ember/test-helpers/has-ember-version.js","addon-test-support/@ember/test-helpers/index.js","addon-test-support/@ember/test-helpers/resolver.js","addon-test-support/@ember/test-helpers/settled.js","addon-test-support/@ember/test-helpers/setup-application-context.js","addon-test-support/@ember/test-helpers/setup-context.js","addon-test-support/@ember/test-helpers/setup-onerror.js","addon-test-support/@ember/test-helpers/setup-rendering-context.js","addon-test-support/@ember/test-helpers/teardown-application-context.js","addon-test-support/@ember/test-helpers/teardown-context.js","addon-test-support/@ember/test-helpers/teardown-rendering-context.js","addon-test-support/@ember/test-helpers/test-metadata.js","addon-test-support/@ember/test-helpers/validate-error-handler.js","addon-test-support/@ember/test-helpers/wait-until.js","addon-test-support/ember-cli-code-coverage/test-support/index.js","addon-test-support/ember-cli-test-loader/test-support/index.js","addon-test-support/ember-exam/test-support/-private/async-iterator.js","addon-test-support/ember-exam/test-support/-private/ember-exam-mocha-test-loader.js","addon-test-support/ember-exam/test-support/-private/ember-exam-qunit-test-loader.js","addon-test-support/ember-exam/test-support/-private/filter-test-modules.js","addon-test-support/ember-exam/test-support/-private/get-test-loader.js","addon-test-support/ember-exam/test-support/-private/get-url-params.js","addon-test-support/ember-exam/test-support/-private/patch-testem-output.js","addon-test-support/ember-exam/test-support/-private/split-test-modules.js","addon-test-support/ember-exam/test-support/-private/weight-test-modules.js","addon-test-support/ember-exam/test-support/load.js","addon-test-support/ember-exam/test-support/start.js","addon-test-support/ember-qunit/adapter.js","addon-test-support/ember-qunit/index.js","addon-test-support/ember-qunit/legacy-2-x/module-for-component.js","addon-test-support/ember-qunit/legacy-2-x/module-for-model.js","addon-test-support/ember-qunit/legacy-2-x/module-for.js","addon-test-support/ember-qunit/legacy-2-x/qunit-module.js","addon-test-support/ember-qunit/test-isolation-validation.js","addon-test-support/ember-qunit/test-loader.js","addon-test-support/ember-test-helpers/has-ember-version.js","addon-test-support/ember-test-helpers/index.js","addon-test-support/ember-test-helpers/legacy-0-6-x/-legacy-overrides.js","addon-test-support/ember-test-helpers/legacy-0-6-x/abstract-test-module.js","addon-test-support/ember-test-helpers/legacy-0-6-x/build-registry.js","addon-test-support/ember-test-helpers/legacy-0-6-x/ext/rsvp.js","addon-test-support/ember-test-helpers/legacy-0-6-x/test-module-for-acceptance.js","addon-test-support/ember-test-helpers/legacy-0-6-x/test-module-for-component.js","addon-test-support/ember-test-helpers/legacy-0-6-x/test-module-for-model.js","addon-test-support/ember-test-helpers/legacy-0-6-x/test-module.js","addon-test-support/ember-test-helpers/wait.js","addon-test-support/qunit-dom/index.js","addon-test-support/qunit/index.js","vendor/ember-cli/test-support-suffix.js"],"sourcesContent":["\n","/*!\n * @overview Ember - JavaScript Application Framework\n * @copyright Copyright 2011-2019 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 3.16.8\n */","/*globals process */\nvar define, require, Ember; // Used in @ember/-internals/environment/lib/global.js\n\n\nmainContext = this; // eslint-disable-line no-undef\n\n(function () {\n var registry;\n var seen;\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] = require;\n } else {\n reified[i] = internalRequire(deps[i], name);\n }\n }\n\n callback.apply(this, reified);\n return exports;\n }\n\n var isNode = typeof window === 'undefined' && 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') {\n Ember = {};\n }\n\n if (typeof Ember.__loader === 'undefined') {\n registry = Object.create(null);\n seen = Object.create(null);\n\n define = 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 require = function (name) {\n return internalRequire(name, null);\n }; // setup `require` module\n\n\n require['default'] = require;\n\n require.has = function registryHas(moduleName) {\n return Boolean(registry[moduleName]) || Boolean(registry[moduleName + '/index']);\n };\n\n require._eak_seen = registry;\n Ember.__loader = {\n define: define,\n require: require,\n registry: registry\n };\n } else {\n define = Ember.__loader.define;\n require = Ember.__loader.require;\n }\n})();","define(\"@ember/debug/index\", [\"exports\", \"@ember/-internals/browser-environment\", \"@ember/error\", \"@ember/debug/lib/deprecate\", \"@ember/debug/lib/testing\", \"@ember/debug/lib/warn\", \"@ember/debug/lib/capture-render-tree\"], function (_exports, _browserEnvironment, _error, _deprecate2, _testing, _warn2, _captureRenderTree) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"registerDeprecationHandler\", {\n enumerable: true,\n get: function () {\n return _deprecate2.registerHandler;\n }\n });\n Object.defineProperty(_exports, \"isTesting\", {\n enumerable: true,\n get: function () {\n return _testing.isTesting;\n }\n });\n Object.defineProperty(_exports, \"setTesting\", {\n enumerable: true,\n get: function () {\n return _testing.setTesting;\n }\n });\n Object.defineProperty(_exports, \"registerWarnHandler\", {\n enumerable: true,\n get: function () {\n return _warn2.registerHandler;\n }\n });\n Object.defineProperty(_exports, \"captureRenderTree\", {\n enumerable: true,\n get: function () {\n return _captureRenderTree.default;\n }\n });\n _exports._warnIfUsingStrippedFeatureFlags = _exports.getDebugFunction = _exports.setDebugFunction = _exports.deprecateFunc = _exports.runInDebug = _exports.debugFreeze = _exports.debugSeal = _exports.deprecate = _exports.debug = _exports.warn = _exports.info = _exports.assert = void 0;\n\n // These are the default production build versions:\n var noop = () => {};\n\n var assert = noop;\n _exports.assert = assert;\n var info = noop;\n _exports.info = info;\n var warn = noop;\n _exports.warn = warn;\n var debug = noop;\n _exports.debug = debug;\n var deprecate = noop;\n _exports.deprecate = deprecate;\n var debugSeal = noop;\n _exports.debugSeal = debugSeal;\n var debugFreeze = noop;\n _exports.debugFreeze = debugFreeze;\n var runInDebug = noop;\n _exports.runInDebug = runInDebug;\n var setDebugFunction = noop;\n _exports.setDebugFunction = setDebugFunction;\n var getDebugFunction = noop;\n _exports.getDebugFunction = getDebugFunction;\n\n var deprecateFunc = function () {\n return arguments[arguments.length - 1];\n };\n\n _exports.deprecateFunc = deprecateFunc;\n\n if (true\n /* DEBUG */\n ) {\n _exports.setDebugFunction = setDebugFunction = function (type, callback) {\n switch (type) {\n case 'assert':\n return _exports.assert = assert = callback;\n\n case 'info':\n return _exports.info = info = callback;\n\n case 'warn':\n return _exports.warn = warn = callback;\n\n case 'debug':\n return _exports.debug = debug = callback;\n\n case 'deprecate':\n return _exports.deprecate = deprecate = callback;\n\n case 'debugSeal':\n return _exports.debugSeal = debugSeal = callback;\n\n case 'debugFreeze':\n return _exports.debugFreeze = debugFreeze = callback;\n\n case 'runInDebug':\n return _exports.runInDebug = runInDebug = callback;\n\n case 'deprecateFunc':\n return _exports.deprecateFunc = deprecateFunc = callback;\n }\n };\n\n _exports.getDebugFunction = getDebugFunction = function (type) {\n switch (type) {\n case 'assert':\n return assert;\n\n case 'info':\n return info;\n\n case 'warn':\n return warn;\n\n case 'debug':\n return debug;\n\n case 'deprecate':\n return deprecate;\n\n case 'debugSeal':\n return debugSeal;\n\n case 'debugFreeze':\n return debugFreeze;\n\n case 'runInDebug':\n return runInDebug;\n\n case 'deprecateFunc':\n return deprecateFunc;\n }\n };\n }\n /**\n @module @ember/debug\n */\n\n\n if (true\n /* DEBUG */\n ) {\n /**\n Verify that a certain expectation is met, or throw a exception otherwise.\n This is useful for communicating assumptions in the code to other human\n readers as well as catching bugs that accidentally violates these\n expectations.\n Assertions are removed from production builds, so they can be freely added\n for documentation and debugging purposes without worries of incuring any\n performance penalty. However, because of that, they should not be used for\n checks that could reasonably fail during normal usage. Furthermore, care\n should be taken to avoid accidentally relying on side-effects produced from\n evaluating the condition itself, since the code will not run in production.\n ```javascript\n import { assert } from '@ember/debug';\n // Test for truthiness\n assert('Must pass a string', typeof str === 'string');\n // Fail unconditionally\n assert('This code path should never be run');\n ```\n @method assert\n @static\n @for @ember/debug\n @param {String} description Describes the expectation. This will become the\n text of the Error thrown if the assertion fails.\n @param {any} condition 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 _error.default(`Assertion Failed: ${desc}`);\n }\n });\n /**\n Display a debug notice.\n Calls to this function are removed from production builds, so they can be\n freely added for documentation and debugging purposes without worries of\n incuring any performance penalty.\n ```javascript\n import { debug } from '@ember/debug';\n debug('I\\'m a debug notice!');\n ```\n @method debug\n @for @ember/debug\n @static\n @param {String} message A debug message to display.\n @public\n */\n\n setDebugFunction('debug', function debug(message) {\n /* eslint-disable no-console */\n if (console.debug) {\n console.debug(`DEBUG: ${message}`);\n } else {\n console.log(`DEBUG: ${message}`);\n }\n /* eslint-ensable no-console */\n\n });\n /**\n Display an info notice.\n Calls to this function are removed from production builds, so they can be\n freely added for documentation and debugging purposes without worries of\n incuring any performance penalty.\n @method info\n @private\n */\n\n setDebugFunction('info', function info() {\n console.info(...arguments);\n /* eslint-disable-line no-console */\n });\n /**\n @module @ember/debug\n @public\n */\n\n /**\n Alias an old, deprecated method with its new counterpart.\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 Calls to this function are removed from production builds, so they can be\n freely added for documentation and debugging purposes without worries of\n incuring any performance penalty.\n ```javascript\n import { deprecateFunc } from '@ember/debug';\n Ember.oldMethod = deprecateFunc('Please use the new, updated method', options, Ember.newMethod);\n ```\n @method deprecateFunc\n @static\n @for @ember/debug\n @param {String} message A description of the deprecation.\n @param {Object} [options] The options object for `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\n setDebugFunction('deprecateFunc', function deprecateFunc(...args) {\n if (args.length === 3) {\n var [message, options, func] = args;\n return function (...args) {\n deprecate(message, false, options);\n return func.apply(this, args);\n };\n } else {\n var [_message, _func] = args;\n return function () {\n deprecate(_message);\n return _func.apply(this, arguments);\n };\n }\n });\n /**\n @module @ember/debug\n @public\n */\n\n /**\n Run a function meant for debugging.\n Calls to this function are removed from production builds, so they can be\n freely added for documentation and debugging purposes without worries of\n incuring any performance penalty.\n ```javascript\n import Component from '@ember/component';\n import { runInDebug } from '@ember/debug';\n runInDebug(() => {\n Component.reopen({\n didInsertElement() {\n console.log(\"I'm happy\");\n }\n });\n });\n ```\n @method runInDebug\n @for @ember/debug\n @static\n @param {Function} func The function to be executed.\n @since 1.5.0\n @public\n */\n\n setDebugFunction('runInDebug', function runInDebug(func) {\n func();\n });\n setDebugFunction('debugSeal', function debugSeal(obj) {\n Object.seal(obj);\n });\n setDebugFunction('debugFreeze', function debugFreeze(obj) {\n // re-freezing an already frozen object introduces a significant\n // performance penalty on Chrome (tested through 59).\n //\n // See: https://bugs.chromium.org/p/v8/issues/detail?id=6450\n if (!Object.isFrozen(obj)) {\n Object.freeze(obj);\n }\n });\n setDebugFunction('deprecate', _deprecate2.default);\n setDebugFunction('warn', _warn2.default);\n }\n\n var _warnIfUsingStrippedFeatureFlags;\n\n _exports._warnIfUsingStrippedFeatureFlags = _warnIfUsingStrippedFeatureFlags;\n\n if (true\n /* DEBUG */\n && !(0, _testing.isTesting)()) {\n if (typeof window !== 'undefined' && (_browserEnvironment.isFirefox || _browserEnvironment.isChrome) && window.addEventListener) {\n window.addEventListener('load', () => {\n if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) {\n var downloadURL;\n\n if (_browserEnvironment.isChrome) {\n downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi';\n } else if (_browserEnvironment.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});","define(\"@ember/debug/lib/capture-render-tree\", [\"exports\", \"@glimmer/util\"], function (_exports, _util) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = captureRenderTree;\n\n /**\n @module @ember/debug\n */\n\n /**\n Ember Inspector calls this function to capture the current render tree.\n \n In production mode, this requires turning on `ENV._DEBUG_RENDER_TREE`\n before loading Ember.\n \n @private\n @static\n @method captureRenderTree\n @for @ember/debug\n @param app {ApplicationInstance} An `ApplicationInstance`.\n @since 3.14.0\n */\n function captureRenderTree(app) {\n var env = (0, _util.expect)(app.lookup('service:-glimmer-environment'), 'BUG: owner is missing service:-glimmer-environment');\n return env.debugRenderTree.capture();\n }\n});","define(\"@ember/debug/lib/deprecate\", [\"exports\", \"@ember/-internals/environment\", \"@ember/debug/index\", \"@ember/debug/lib/handlers\"], function (_exports, _environment, _index, _handlers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.missingOptionsUntilDeprecation = _exports.missingOptionsIdDeprecation = _exports.missingOptionsDeprecation = _exports.registerHandler = _exports.default = void 0;\n\n /**\n @module @ember/debug\n @public\n */\n\n /**\n Allows for runtime registration of handler functions that override the default deprecation behavior.\n Deprecations are invoked by calls to [@ember/debug/deprecate](/ember/release/classes/@ember%2Fdebug/methods/deprecate?anchor=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 import { registerDeprecationHandler } from '@ember/debug';\n \n 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
        \n
      • message - The message received from the deprecation call.
      • \n
      • options - An object passed in with the deprecation call containing additional information including:
      • \n
          \n
        • id - An id of the deprecation in the form of package-name.specific-deprecation.
        • \n
        • until - The Ember version number the feature and deprecation will be removed in.
        • \n
        \n
      • next - A function that calls into the previously registered handler.
      • \n
      \n \n @public\n @static\n @method registerDeprecationHandler\n @for @ember/debug\n @param handler {Function} A function to handle deprecation calls.\n @since 2.1.0\n */\n var registerHandler = () => {};\n\n _exports.registerHandler = registerHandler;\n var missingOptionsDeprecation;\n _exports.missingOptionsDeprecation = missingOptionsDeprecation;\n var missingOptionsIdDeprecation;\n _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation;\n var missingOptionsUntilDeprecation;\n _exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation;\n\n var deprecate = () => {};\n\n if (true\n /* DEBUG */\n ) {\n _exports.registerHandler = registerHandler = function registerHandler(handler) {\n (0, _handlers.registerHandler)('deprecate', handler);\n };\n\n var formatMessage = 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 console.warn(`DEPRECATION: ${updatedMessage}`); // eslint-disable-line no-console\n });\n var captureErrorForStack;\n\n if (new Error().stack) {\n captureErrorForStack = () => new Error();\n } else {\n captureErrorForStack = () => {\n try {\n __fail__.fail();\n } catch (e) {\n return e;\n }\n };\n }\n\n registerHandler(function logDeprecationStackTrace(message, options, next) {\n if (_environment.ENV.LOG_STACKTRACE_ON_DEPRECATION) {\n var stackStr = '';\n var error = captureErrorForStack();\n var stack;\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.\\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 console.warn(`DEPRECATION: ${updatedMessage}${stackStr}`); // eslint-disable-line no-console\n } else {\n next(message, options);\n }\n });\n registerHandler(function raiseOnDeprecation(message, options, next) {\n if (_environment.ENV.RAISE_ON_DEPRECATION) {\n var updatedMessage = formatMessage(message);\n throw new Error(updatedMessage);\n } else {\n next(message, options);\n }\n });\n _exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `deprecate` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include `id` and `until` properties.';\n _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `deprecate` you must provide `id` in options.';\n _exports.missingOptionsUntilDeprecation = missingOptionsUntilDeprecation = 'When calling `deprecate` you must provide `until` in options.';\n /**\n @module @ember/debug\n @public\n */\n\n /**\n Display a deprecation warning with the provided message and a stack trace\n (Chrome and Firefox only).\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 @method deprecate\n @for @ember/debug\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 @static\n @public\n @since 1.0.0\n */\n\n deprecate = function deprecate(message, test, options) {\n (0, _index.assert)(missingOptionsDeprecation, Boolean(options && (options.id || options.until)));\n (0, _index.assert)(missingOptionsIdDeprecation, Boolean(options.id));\n (0, _index.assert)(missingOptionsUntilDeprecation, Boolean(options.until));\n (0, _handlers.invoke)('deprecate', message, test, options);\n };\n }\n\n var _default = deprecate;\n _exports.default = _default;\n});","define(\"@ember/debug/lib/handlers\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.invoke = _exports.registerHandler = _exports.HANDLERS = void 0;\n var HANDLERS = {};\n _exports.HANDLERS = HANDLERS;\n\n var registerHandler = () => {};\n\n _exports.registerHandler = registerHandler;\n\n var invoke = () => {};\n\n _exports.invoke = invoke;\n\n if (true\n /* DEBUG */\n ) {\n _exports.registerHandler = registerHandler = function registerHandler(type, callback) {\n var nextHandler = HANDLERS[type] || (() => {});\n\n HANDLERS[type] = (message, options) => {\n callback(message, options, nextHandler);\n };\n };\n\n _exports.invoke = invoke = function invoke(type, message, test, options) {\n if (test) {\n return;\n }\n\n var handlerForType = HANDLERS[type];\n\n if (handlerForType) {\n handlerForType(message, options);\n }\n };\n }\n});","define(\"@ember/debug/lib/testing\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\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 = Boolean(value);\n }\n});","define(\"@ember/debug/lib/warn\", [\"exports\", \"@ember/debug/index\", \"@ember/debug/lib/handlers\"], function (_exports, _index, _handlers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.missingOptionsDeprecation = _exports.missingOptionsIdDeprecation = _exports.registerHandler = _exports.default = void 0;\n\n var registerHandler = () => {};\n\n _exports.registerHandler = registerHandler;\n\n var warn = () => {};\n\n var missingOptionsDeprecation;\n _exports.missingOptionsDeprecation = missingOptionsDeprecation;\n var missingOptionsIdDeprecation;\n /**\n @module @ember/debug\n */\n\n _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation;\n\n if (true\n /* DEBUG */\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/debug/warn](/ember/release/classes/@ember%2Fdebug/methods/warn?anchor=warn).\n The following example demonstrates its usage by registering a handler that does nothing overriding Ember's\n default warning behavior.\n ```javascript\n import { registerWarnHandler } from '@ember/debug';\n // next is not called, so no warnings get the default behavior\n registerWarnHandler(() => {});\n ```\n The handler function takes the following arguments:\n
        \n
      • message - The message received from the warn call.
      • \n
      • options - An object passed in with the warn call containing additional information including:
      • \n
          \n
        • id - An id of the warning in the form of package-name.specific-warning.
        • \n
        \n
      • next - A function that calls into the previously registered handler.
      • \n
      \n @public\n @static\n @method registerWarnHandler\n @for @ember/debug\n @param handler {Function} A function to handle warnings.\n @since 2.1.0\n */\n _exports.registerHandler = registerHandler = function registerHandler(handler) {\n (0, _handlers.registerHandler)('warn', handler);\n };\n\n registerHandler(function logWarning(message) {\n /* eslint-disable no-console */\n console.warn(`WARNING: ${message}`);\n /* eslint-enable no-console */\n });\n _exports.missingOptionsDeprecation = missingOptionsDeprecation = 'When calling `warn` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include an `id` property.';\n _exports.missingOptionsIdDeprecation = missingOptionsIdDeprecation = 'When calling `warn` you must provide `id` in options.';\n /**\n Display a warning with the provided message.\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 ```javascript\n import { warn } from '@ember/debug';\n import tomsterCount from './tomster-counter'; // a module in my project\n // Log a warning if we have more than 3 tomsters\n warn('Too many tomsters!', tomsterCount <= 3, {\n id: 'ember-debug.too-many-tomsters'\n });\n ```\n @method warn\n @for @ember/debug\n @static\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 @public\n @since 1.0.0\n */\n\n warn = function warn(message, test, options) {\n if (arguments.length === 2 && typeof test === 'object') {\n options = test;\n test = false;\n }\n\n (0, _index.assert)(missingOptionsDeprecation, Boolean(options));\n (0, _index.assert)(missingOptionsIdDeprecation, Boolean(options && options.id));\n (0, _handlers.invoke)('warn', message, test, options);\n };\n }\n\n var _default = warn;\n _exports.default = _default;\n});","define(\"ember-testing/index\", [\"exports\", \"ember-testing/lib/test\", \"ember-testing/lib/adapters/adapter\", \"ember-testing/lib/setup_for_testing\", \"ember-testing/lib/adapters/qunit\", \"ember-testing/lib/support\", \"ember-testing/lib/ext/application\", \"ember-testing/lib/ext/rsvp\", \"ember-testing/lib/helpers\", \"ember-testing/lib/initializers\"], function (_exports, _test, _adapter, _setup_for_testing, _qunit, _support, _application, _rsvp, _helpers, _initializers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"Test\", {\n enumerable: true,\n get: function () {\n return _test.default;\n }\n });\n Object.defineProperty(_exports, \"Adapter\", {\n enumerable: true,\n get: function () {\n return _adapter.default;\n }\n });\n Object.defineProperty(_exports, \"setupForTesting\", {\n enumerable: true,\n get: function () {\n return _setup_for_testing.default;\n }\n });\n Object.defineProperty(_exports, \"QUnitAdapter\", {\n enumerable: true,\n get: function () {\n return _qunit.default;\n }\n });\n});","define(\"ember-testing/lib/adapters/adapter\", [\"exports\", \"@ember/-internals/runtime\"], function (_exports, _runtime) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n function K() {\n return this;\n }\n /**\n @module @ember/test\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 TestAdapter\n @public\n */\n\n\n var _default = _runtime.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(error) {\n throw error;\n }\n\n });\n\n _exports.default = _default;\n});","define(\"ember-testing/lib/adapters/qunit\", [\"exports\", \"@ember/-internals/utils\", \"ember-testing/lib/adapters/adapter\"], function (_exports, _utils, _adapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /* globals QUnit */\n\n /**\n @module ember\n */\n\n /**\n This class implements the methods defined by TestAdapter for the\n QUnit testing framework.\n \n @class QUnitAdapter\n @namespace Ember.Test\n @extends TestAdapter\n @public\n */\n var _default = _adapter.default.extend({\n init() {\n this.doneCallbacks = [];\n },\n\n asyncStart() {\n if (typeof QUnit.stop === 'function') {\n // very old QUnit version\n QUnit.stop();\n } else {\n this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);\n }\n },\n\n asyncEnd() {\n // checking for QUnit.stop here (even though we _need_ QUnit.start) because\n // QUnit.start() still exists in QUnit 2.x (it just throws an error when calling\n // inside a test context)\n if (typeof QUnit.stop === 'function') {\n QUnit.start();\n } else {\n var done = this.doneCallbacks.pop(); // This can be null if asyncStart() was called outside of a test\n\n if (done) {\n done();\n }\n }\n },\n\n exception(error) {\n QUnit.config.current.assert.ok(false, (0, _utils.inspect)(error));\n }\n\n });\n\n _exports.default = _default;\n});","define(\"ember-testing/lib/events\", [\"exports\", \"@ember/runloop\", \"@ember/polyfills\", \"ember-testing/lib/helpers/-is-form-control\"], function (_exports, _runloop, _polyfills, _isFormControl) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.focus = focus;\n _exports.fireEvent = fireEvent;\n var DEFAULT_EVENT_OPTIONS = {\n canBubble: true,\n cancelable: true\n };\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\n if (el.isContentEditable || (0, _isFormControl.default)(el)) {\n var type = el.getAttribute('type');\n\n if (type !== 'checkbox' && type !== 'radio' && type !== 'hidden') {\n (0, _runloop.run)(null, function () {\n var browserIsNotFocused = document.hasFocus && !document.hasFocus(); // makes `document.activeElement` be `element`. If the browser is focused, it also fires a focus event\n\n el.focus(); // Firefox does not trigger the `focusin` event if the window\n // does not have focus. If the document does not have focus then\n // fire `focusin` event as well.\n\n if (browserIsNotFocused) {\n // if the browser is not focused the previous `el.focus()` didn't fire an event, so we simulate it\n fireEvent(el, 'focus', {\n bubbles: false\n });\n fireEvent(el, 'focusin');\n }\n });\n }\n }\n }\n\n function fireEvent(element, type, options = {}) {\n if (!element) {\n return;\n }\n\n var event;\n\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, (0, _polyfills.assign)(simulatedCoordinates, options));\n } else {\n event = buildBasicEvent(type, options);\n }\n\n element.dispatchEvent(event);\n }\n\n function buildBasicEvent(type, options = {}) {\n var event = document.createEvent('Events'); // Event.bubbles is read only\n\n var bubbles = options.bubbles !== undefined ? options.bubbles : true;\n var cancelable = options.cancelable !== undefined ? options.cancelable : true;\n delete options.bubbles;\n delete options.cancelable;\n event.initEvent(type, bubbles, cancelable);\n (0, _polyfills.assign)(event, options);\n return event;\n }\n\n function buildMouseEvent(type, options = {}) {\n var event;\n\n try {\n event = document.createEvent('MouseEvents');\n var eventOpts = (0, _polyfills.assign)({}, 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\n return event;\n }\n\n function buildKeyboardEvent(type, options = {}) {\n var event;\n\n try {\n event = document.createEvent('KeyEvents');\n var eventOpts = (0, _polyfills.assign)({}, 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\n return event;\n }\n});","define(\"ember-testing/lib/ext/application\", [\"@ember/application\", \"ember-testing/lib/setup_for_testing\", \"ember-testing/lib/test/helpers\", \"ember-testing/lib/test/promise\", \"ember-testing/lib/test/run\", \"ember-testing/lib/test/on_inject_helpers\", \"ember-testing/lib/test/adapter\"], function (_application, _setup_for_testing, _helpers, _promise, _run, _on_inject_helpers, _adapter) {\n \"use strict\";\n\n _application.default.reopen({\n /**\n This property contains the testing helpers for the current application. These\n are created once you call `injectTestHelpers` on your `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). `setupForTesting` should only be called after\n setting a custom `router` class (for example `App.Router = Router.extend(`).\n Example:\n ```\n App.setupForTesting();\n ```\n @method setupForTesting\n @public\n */\n setupForTesting() {\n (0, _setup_for_testing.default)();\n this.testing = true;\n this.resolveRegistration('router:main').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(helperContainer) {\n if (helperContainer) {\n this.helperContainer = helperContainer;\n } else {\n this.helperContainer = window;\n }\n\n this.reopen({\n willDestroy() {\n this._super(...arguments);\n\n this.removeTestHelpers();\n }\n\n });\n this.testHelpers = {};\n\n for (var name in _helpers.helpers) {\n this.originalMethods[name] = this.helperContainer[name];\n this.testHelpers[name] = this.helperContainer[name] = helper(this, name);\n protoWrap(_promise.default.prototype, name, helper(this, name), _helpers.helpers[name].meta.wait);\n }\n\n (0, _on_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() {\n if (!this.helperContainer) {\n return;\n }\n\n for (var name in _helpers.helpers) {\n this.helperContainer[name] = this.originalMethods[name];\n delete _promise.default.prototype[name];\n delete this.testHelpers[name];\n delete this.originalMethods[name];\n }\n }\n\n }); // This method is no longer needed\n // But still here for backwards compatibility\n // of helper chaining\n\n\n function protoWrap(proto, name, callback, isAsync) {\n proto[name] = function (...args) {\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 = _helpers.helpers[name].method;\n var meta = _helpers.helpers[name].meta;\n\n if (!meta.wait) {\n return (...args) => fn.apply(app, [app, ...args]);\n }\n\n return (...args) => {\n var lastPromise = (0, _run.default)(() => (0, _promise.resolve)((0, _promise.getLastPromise)())); // 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\n (0, _adapter.asyncStart)();\n return lastPromise.then(() => fn.apply(app, [app, ...args])).finally(_adapter.asyncEnd);\n };\n }\n});","define(\"ember-testing/lib/ext/rsvp\", [\"exports\", \"@ember/-internals/runtime\", \"@ember/runloop\", \"@ember/debug\", \"ember-testing/lib/test/adapter\"], function (_exports, _runtime, _runloop, _debug, _adapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n _runtime.RSVP.configure('async', function (callback, promise) {\n // if schedule will cause autorun, we need to inform adapter\n if ((0, _debug.isTesting)() && !_runloop.backburner.currentInstance) {\n (0, _adapter.asyncStart)();\n\n _runloop.backburner.schedule('actions', () => {\n (0, _adapter.asyncEnd)();\n callback(promise);\n });\n } else {\n _runloop.backburner.schedule('actions', () => callback(promise));\n }\n });\n\n var _default = _runtime.RSVP;\n _exports.default = _default;\n});","define(\"ember-testing/lib/helpers\", [\"ember-testing/lib/test/helpers\", \"ember-testing/lib/helpers/and_then\", \"ember-testing/lib/helpers/click\", \"ember-testing/lib/helpers/current_path\", \"ember-testing/lib/helpers/current_route_name\", \"ember-testing/lib/helpers/current_url\", \"ember-testing/lib/helpers/fill_in\", \"ember-testing/lib/helpers/find\", \"ember-testing/lib/helpers/find_with_assert\", \"ember-testing/lib/helpers/key_event\", \"ember-testing/lib/helpers/pause_test\", \"ember-testing/lib/helpers/trigger_event\", \"ember-testing/lib/helpers/visit\", \"ember-testing/lib/helpers/wait\"], function (_helpers, _and_then, _click, _current_path, _current_route_name, _current_url, _fill_in, _find, _find_with_assert, _key_event, _pause_test, _trigger_event, _visit, _wait) {\n \"use strict\";\n\n (0, _helpers.registerAsyncHelper)('visit', _visit.default);\n (0, _helpers.registerAsyncHelper)('click', _click.default);\n (0, _helpers.registerAsyncHelper)('keyEvent', _key_event.default);\n (0, _helpers.registerAsyncHelper)('fillIn', _fill_in.default);\n (0, _helpers.registerAsyncHelper)('wait', _wait.default);\n (0, _helpers.registerAsyncHelper)('andThen', _and_then.default);\n (0, _helpers.registerAsyncHelper)('pauseTest', _pause_test.pauseTest);\n (0, _helpers.registerAsyncHelper)('triggerEvent', _trigger_event.default);\n (0, _helpers.registerHelper)('find', _find.default);\n (0, _helpers.registerHelper)('findWithAssert', _find_with_assert.default);\n (0, _helpers.registerHelper)('currentRouteName', _current_route_name.default);\n (0, _helpers.registerHelper)('currentPath', _current_path.default);\n (0, _helpers.registerHelper)('currentURL', _current_url.default);\n (0, _helpers.registerHelper)('resumeTest', _pause_test.resumeTest);\n});","define(\"ember-testing/lib/helpers/-is-form-control\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = isFormControl;\n var FORM_CONTROL_TAGS = ['INPUT', 'BUTTON', 'SELECT', 'TEXTAREA'];\n /**\n @private\n @param {Element} element the element to check\n @returns {boolean} `true` when the element is a form control, `false` otherwise\n */\n\n function isFormControl(element) {\n var {\n tagName,\n type\n } = element;\n\n if (type === 'hidden') {\n return false;\n }\n\n return FORM_CONTROL_TAGS.indexOf(tagName) > -1;\n }\n});","define(\"ember-testing/lib/helpers/and_then\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = andThen;\n\n function andThen(app, callback) {\n return app.testHelpers.wait(callback(app));\n }\n});","define(\"ember-testing/lib/helpers/click\", [\"exports\", \"ember-testing/lib/events\"], function (_exports, _events) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = click;\n\n /**\n @module ember\n */\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 function click(app, selector, context) {\n var $el = app.testHelpers.findWithAssert(selector, context);\n var el = $el[0];\n (0, _events.fireEvent)(el, 'mousedown');\n (0, _events.focus)(el);\n (0, _events.fireEvent)(el, 'mouseup');\n (0, _events.fireEvent)(el, 'click');\n return app.testHelpers.wait();\n }\n});","define(\"ember-testing/lib/helpers/current_path\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = currentPath;\n\n /**\n @module ember\n */\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 function currentPath(app) {\n var routingService = app.__container__.lookup('service:-routing');\n\n return (0, _metal.get)(routingService, 'currentPath');\n }\n});","define(\"ember-testing/lib/helpers/current_route_name\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = currentRouteName;\n\n /**\n @module ember\n */\n\n /**\n Returns the currently active route name.\n \n Example:\n \n ```javascript\n function validateRouteName() {\n equal(currentRouteName(), 'some.path', \"correct route was transitioned into.\");\n }\n visit('/some/path').then(validateRouteName)\n ```\n \n @method currentRouteName\n @return {Object} The name of the currently active route.\n @since 1.5.0\n @public\n */\n function currentRouteName(app) {\n var routingService = app.__container__.lookup('service:-routing');\n\n return (0, _metal.get)(routingService, 'currentRouteName');\n }\n});","define(\"ember-testing/lib/helpers/current_url\", [\"exports\", \"@ember/-internals/metal\"], function (_exports, _metal) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = currentURL;\n\n /**\n @module ember\n */\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 function currentURL(app) {\n var router = app.__container__.lookup('router:main');\n\n return (0, _metal.get)(router, 'location').getURL();\n }\n});","define(\"ember-testing/lib/helpers/fill_in\", [\"exports\", \"ember-testing/lib/events\", \"ember-testing/lib/helpers/-is-form-control\"], function (_exports, _events, _isFormControl) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = fillIn;\n\n /**\n @module ember\n */\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 function fillIn(app, selector, contextOrText, text) {\n var $el, el, context;\n\n if (text === undefined) {\n text = contextOrText;\n } else {\n context = contextOrText;\n }\n\n $el = app.testHelpers.findWithAssert(selector, context);\n el = $el[0];\n (0, _events.focus)(el);\n\n if ((0, _isFormControl.default)(el)) {\n el.value = text;\n } else {\n el.innerHTML = text;\n }\n\n (0, _events.fireEvent)(el, 'input');\n (0, _events.fireEvent)(el, 'change');\n return app.testHelpers.wait();\n }\n});","define(\"ember-testing/lib/helpers/find\", [\"exports\", \"@ember/-internals/metal\", \"@ember/debug\", \"@ember/-internals/views\"], function (_exports, _metal, _debug, _views) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = find;\n\n /**\n @module ember\n */\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 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} DOM element representing the results of the query\n @public\n */\n function find(app, selector, context) {\n if (_views.jQueryDisabled) {\n (true && !(false) && (0, _debug.assert)('If jQuery is disabled, please import and use helpers from @ember/test-helpers [https://github.com/emberjs/ember-test-helpers]. Note: `find` is not an available helper.'));\n }\n\n var $el;\n context = context || (0, _metal.get)(app, 'rootElement');\n $el = app.$(selector, context);\n return $el;\n }\n});","define(\"ember-testing/lib/helpers/find_with_assert\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = findWithAssert;\n\n /**\n @module ember\n */\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 object returned has a length of 0\n @public\n */\n function findWithAssert(app, selector, context) {\n var $el = app.testHelpers.find(selector, context);\n\n if ($el.length === 0) {\n throw new Error('Element ' + selector + ' not found.');\n }\n\n return $el;\n }\n});","define(\"ember-testing/lib/helpers/key_event\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = keyEvent;\n\n /**\n @module ember\n */\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 function keyEvent(app, selector, contextOrType, typeOrKeyCode, keyCode) {\n var context, type;\n\n if (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, {\n keyCode,\n which: keyCode\n });\n }\n});","define(\"ember-testing/lib/helpers/pause_test\", [\"exports\", \"@ember/-internals/runtime\", \"@ember/debug\"], function (_exports, _runtime, _debug) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.resumeTest = resumeTest;\n _exports.pauseTest = pauseTest;\n\n /**\n @module ember\n */\n var resume;\n /**\n Resumes a test paused by `pauseTest`.\n \n @method resumeTest\n @return {void}\n @public\n */\n\n function resumeTest() {\n (true && !(resume) && (0, _debug.assert)('Testing has not been paused. There is nothing to resume.', resume));\n resume();\n resume = undefined;\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 \n You may want to turn off the timeout before pausing.\n \n qunit (timeout available to use as of 2.4.0):\n \n ```\n visit('/');\n assert.timeout(0);\n return pauseTest();\n click('.btn');\n ```\n \n mocha (timeout happens automatically as of ember-mocha v0.14.0):\n \n ```\n visit('/');\n this.timeout(0);\n return pauseTest();\n click('.btn');\n ```\n \n \n @since 1.9.0\n @method pauseTest\n @return {Object} A promise that will never resolve\n @public\n */\n\n\n function pauseTest() {\n (0, _debug.info)('Testing paused. Use `resumeTest()` to continue.');\n return new _runtime.RSVP.Promise(resolve => {\n resume = resolve;\n }, 'TestAdapter paused promise');\n }\n});","define(\"ember-testing/lib/helpers/trigger_event\", [\"exports\", \"ember-testing/lib/events\"], function (_exports, _events) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = triggerEvent;\n\n /**\n @module ember\n */\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 function triggerEvent(app, selector, contextOrType, typeOrOptions, possibleOptions) {\n var arity = arguments.length;\n var context, type, options;\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 (0, _events.fireEvent)(el, type, options);\n return app.testHelpers.wait();\n }\n});","define(\"ember-testing/lib/helpers/visit\", [\"exports\", \"@ember/runloop\"], function (_exports, _runloop) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\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 function visit(app, url) {\n var router = app.__container__.lookup('router:main');\n\n var shouldHandleURL = false;\n app.boot().then(() => {\n router.location.setURL(url);\n\n if (shouldHandleURL) {\n (0, _runloop.run)(app.__deprecatedInstance__, 'handleURL', url);\n }\n });\n\n if (app._readinessDeferrals > 0) {\n router.initialURL = url;\n (0, _runloop.run)(app, 'advanceReadiness');\n delete router.initialURL;\n } else {\n shouldHandleURL = true;\n }\n\n return app.testHelpers.wait();\n }\n});","define(\"ember-testing/lib/helpers/wait\", [\"exports\", \"ember-testing/lib/test/waiters\", \"@ember/-internals/runtime\", \"@ember/runloop\", \"ember-testing/lib/test/pending_requests\"], function (_exports, _waiters, _runtime, _runloop, _pending_requests) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = wait;\n\n /**\n @module ember\n */\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 import { registerAsyncHelper } from '@ember/test';\n \n 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 \n @method wait\n @param {Object} value The value to be returned.\n @return {RSVP.Promise} Promise that resolves to the passed value.\n @public\n @since 1.0.0\n */\n function wait(app, value) {\n return new _runtime.RSVP.Promise(function (resolve) {\n var router = app.__container__.lookup('router:main'); // Every 10ms, poll for the async thing to have finished\n\n\n var watcher = setInterval(() => {\n // 1. If the router is loading, keep polling\n var routerIsLoading = router._routerMicrolib && Boolean(router._routerMicrolib.activeTransition);\n\n if (routerIsLoading) {\n return;\n } // 2. If there are pending Ajax requests, keep polling\n\n\n if ((0, _pending_requests.pendingRequests)()) {\n return;\n } // 3. If there are scheduled timers or we are inside of a run loop, keep polling\n\n\n if ((0, _runloop.hasScheduledTimers)() || (0, _runloop.getCurrentRunLoop)()) {\n return;\n }\n\n if ((0, _waiters.checkWaiters)()) {\n return;\n } // Stop polling\n\n\n clearInterval(watcher); // Synchronously resolve the promise\n\n (0, _runloop.run)(null, resolve, value);\n }, 10);\n });\n }\n});","define(\"ember-testing/lib/initializers\", [\"@ember/application\"], function (_application) {\n \"use strict\";\n\n var name = 'deferReadiness in `testing` mode';\n (0, _application.onLoad)('Ember.Application', function (Application) {\n if (!Application.initializers[name]) {\n Application.initializer({\n name: name,\n\n initialize(application) {\n if (application.testing) {\n application.deferReadiness();\n }\n }\n\n });\n }\n });\n});","define(\"ember-testing/lib/setup_for_testing\", [\"exports\", \"@ember/debug\", \"@ember/-internals/views\", \"ember-testing/lib/test/adapter\", \"ember-testing/lib/test/pending_requests\", \"ember-testing/lib/adapters/adapter\", \"ember-testing/lib/adapters/qunit\"], function (_exports, _debug, _views, _adapter, _pending_requests, _adapter2, _qunit) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = setupForTesting;\n\n /* global self */\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 function setupForTesting() {\n (0, _debug.setTesting)(true);\n var adapter = (0, _adapter.getAdapter)(); // if adapter is not manually set default to QUnit\n\n if (!adapter) {\n (0, _adapter.setAdapter)(typeof self.QUnit === 'undefined' ? _adapter2.default.create() : _qunit.default.create());\n }\n\n if (!_views.jQueryDisabled) {\n (0, _views.jQuery)(document).off('ajaxSend', _pending_requests.incrementPendingRequests);\n (0, _views.jQuery)(document).off('ajaxComplete', _pending_requests.decrementPendingRequests);\n (0, _pending_requests.clearPendingRequests)();\n (0, _views.jQuery)(document).on('ajaxSend', _pending_requests.incrementPendingRequests);\n (0, _views.jQuery)(document).on('ajaxComplete', _pending_requests.decrementPendingRequests);\n }\n }\n});","define(\"ember-testing/lib/support\", [\"@ember/debug\", \"@ember/-internals/views\", \"@ember/-internals/browser-environment\"], function (_debug, _views, _browserEnvironment) {\n \"use strict\";\n\n /**\n @module ember\n */\n var $ = _views.jQuery;\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\n function testCheckboxClick(handler) {\n var input = document.createElement('input');\n $(input).attr('type', 'checkbox').css({\n position: 'absolute',\n left: '-1000px',\n top: '-1000px'\n }).appendTo('body').on('click', handler).trigger('click').remove();\n }\n\n if (_browserEnvironment.hasDOM && !_views.jQueryDisabled) {\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() {\n if (this.nodeName === 'INPUT' && this.type === 'checkbox' && this.click) {\n this.click();\n return false;\n }\n }\n\n };\n }\n }); // Try again to verify that the patch took effect or blow up.\n\n testCheckboxClick(function () {\n (true && (0, _debug.warn)(\"clicked checkboxes should be checked! the jQuery patch didn't work\", this.checked, {\n id: 'ember-testing.test-checkbox-click'\n }));\n });\n });\n }\n});","define(\"ember-testing/lib/test\", [\"exports\", \"ember-testing/lib/test/helpers\", \"ember-testing/lib/test/on_inject_helpers\", \"ember-testing/lib/test/promise\", \"ember-testing/lib/test/waiters\", \"ember-testing/lib/test/adapter\"], function (_exports, _helpers, _on_inject_helpers, _promise, _waiters, _adapter) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n @module ember\n */\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: _helpers.helpers,\n registerHelper: _helpers.registerHelper,\n registerAsyncHelper: _helpers.registerAsyncHelper,\n unregisterHelper: _helpers.unregisterHelper,\n onInjectHelpers: _on_inject_helpers.onInjectHelpers,\n Promise: _promise.default,\n promise: _promise.promise,\n resolve: _promise.resolve,\n registerWaiter: _waiters.registerWaiter,\n unregisterWaiter: _waiters.unregisterWaiter,\n checkWaiters: _waiters.checkWaiters\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\n Object.defineProperty(Test, 'adapter', {\n get: _adapter.getAdapter,\n set: _adapter.setAdapter\n });\n var _default = Test;\n _exports.default = _default;\n});","define(\"ember-testing/lib/test/adapter\", [\"exports\", \"@ember/-internals/error-handling\"], function (_exports, _errorHandling) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.getAdapter = getAdapter;\n _exports.setAdapter = setAdapter;\n _exports.asyncStart = asyncStart;\n _exports.asyncEnd = asyncEnd;\n var adapter;\n\n function getAdapter() {\n return adapter;\n }\n\n function setAdapter(value) {\n adapter = value;\n\n if (value && typeof value.exception === 'function') {\n (0, _errorHandling.setDispatchOverride)(adapterDispatch);\n } else {\n (0, _errorHandling.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 console.error(error.stack); // eslint-disable-line no-console\n }\n});","define(\"ember-testing/lib/test/helpers\", [\"exports\", \"ember-testing/lib/test/promise\"], function (_exports, _promise) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.registerHelper = registerHelper;\n _exports.registerAsyncHelper = registerAsyncHelper;\n _exports.unregisterHelper = unregisterHelper;\n _exports.helpers = void 0;\n var helpers = {};\n /**\n @module @ember/test\n */\n\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 import { registerHelper } from '@ember/test';\n import { run } from '@ember/runloop';\n \n registerHelper('boot', function(app) {\n 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 import Application from '@ember/application';\n \n App = Application.create();\n App.injectTestHelpers();\n boot();\n ```\n \n @public\n @for @ember/test\n @static\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 _exports.helpers = helpers;\n\n function registerHelper(name, helperMethod) {\n helpers[name] = {\n method: helperMethod,\n meta: {\n 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 import { registerAsyncHelper } from '@ember/test';\n import { run } from '@ember/runloop';\n \n registerAsyncHelper('boot', function(app) {\n 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 import { registerAsyncHelper } from '@ember/test';\n \n 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\n function registerAsyncHelper(name, helperMethod) {\n helpers[name] = {\n method: helperMethod,\n meta: {\n wait: true\n }\n };\n }\n /**\n Remove a previously added helper method.\n \n Example:\n \n ```javascript\n import { unregisterHelper } from '@ember/test';\n \n unregisterHelper('wait');\n ```\n \n @public\n @method unregisterHelper\n @static\n @for @ember/test\n @param {String} name The helper to remove.\n */\n\n\n function unregisterHelper(name) {\n delete helpers[name];\n delete _promise.default.prototype[name];\n }\n});","define(\"ember-testing/lib/test/on_inject_helpers\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.onInjectHelpers = onInjectHelpers;\n _exports.invokeInjectHelpersCallbacks = invokeInjectHelpersCallbacks;\n _exports.callbacks = void 0;\n var 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 import $ from 'jquery';\n \n Ember.Test.onInjectHelpers(function() {\n $(document).ajaxSend(function() {\n Test.pendingRequests++;\n });\n \n $(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 _exports.callbacks = callbacks;\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});","define(\"ember-testing/lib/test/pending_requests\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\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 setTimeout(function () {\n for (var i = 0; i < requests.length; i++) {\n if (xhr === requests[i]) {\n requests.splice(i, 1);\n break;\n }\n }\n }, 0);\n }\n});","define(\"ember-testing/lib/test/promise\", [\"exports\", \"@ember/-internals/runtime\", \"ember-testing/lib/test/run\"], function (_exports, _runtime, _run) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.promise = promise;\n _exports.resolve = resolve;\n _exports.getLastPromise = getLastPromise;\n _exports.default = void 0;\n var lastPromise;\n\n class TestPromise extends _runtime.RSVP.Promise {\n constructor() {\n super(...arguments);\n lastPromise = this;\n }\n\n then(_onFulfillment, ...args) {\n var onFulfillment = typeof _onFulfillment === 'function' ? result => isolate(_onFulfillment, result) : undefined;\n return super.then(onFulfillment, ...args);\n }\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\n _exports.default = TestPromise;\n\n function promise(resolver, label) {\n var fullLabel = `Ember.Test.promise: ${label || ''}`;\n return new TestPromise(resolver, fullLabel);\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\n function resolve(result, label) {\n return TestPromise.resolve(result, label);\n }\n\n function getLastPromise() {\n return lastPromise;\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\n\n function isolate(onFulfillment, result) {\n // Reset lastPromise for nested helpers\n lastPromise = null;\n var value = onFulfillment(result);\n var promise = lastPromise;\n lastPromise = null; // If the method returned a promise\n // return that promise. If not,\n // return the last async helper's promise\n\n if (value && value instanceof TestPromise || !promise) {\n return value;\n } else {\n return (0, _run.default)(() => resolve(promise).then(() => value));\n }\n }\n});","define(\"ember-testing/lib/test/run\", [\"exports\", \"@ember/runloop\"], function (_exports, _runloop) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = run;\n\n function run(fn) {\n if (!(0, _runloop.getCurrentRunLoop)()) {\n return (0, _runloop.run)(fn);\n } else {\n return fn();\n }\n }\n});","define(\"ember-testing/lib/test/waiters\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.registerWaiter = registerWaiter;\n _exports.unregisterWaiter = unregisterWaiter;\n _exports.checkWaiters = checkWaiters;\n\n /**\n @module @ember/test\n */\n var contexts = [];\n var callbacks = [];\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 import { registerWaiter } from '@ember/test';\n \n 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 import { registerWaiter } from '@ember/test';\n \n registerWaiter(MyDB, MyDB.hasPendingTransactions);\n ```\n \n @public\n @for @ember/test\n @static\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\n if (indexOf(context, callback) > -1) {\n return;\n }\n\n contexts.push(context);\n callbacks.push(callback);\n }\n /**\n `unregisterWaiter` is used to unregister a callback that was\n registered with `registerWaiter`.\n \n @public\n @for @ember/test\n @static\n @method unregisterWaiter\n @param {Object} context (optional)\n @param {Function} callback\n @since 1.2.0\n */\n\n\n function unregisterWaiter(context, callback) {\n if (!callbacks.length) {\n return;\n }\n\n if (arguments.length === 1) {\n callback = context;\n context = null;\n }\n\n var i = indexOf(context, callback);\n\n if (i === -1) {\n return;\n }\n\n contexts.splice(i, 1);\n callbacks.splice(i, 1);\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\n function checkWaiters() {\n if (!callbacks.length) {\n return false;\n }\n\n for (var i = 0; i < callbacks.length; i++) {\n var context = contexts[i];\n var callback = callbacks[i];\n\n if (!callback.call(context)) {\n return true;\n }\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\n return -1;\n }\n});","(function() {\n var key = '_embroider_macros_runtime_config';\n if (!window[key]) {\n window[key] = [];\n }\n window[key].push(function(m) {\n m.setGlobalConfig(\n '@embroider/macros',\n Object.assign({}, m.getGlobalConfig()['@embroider/macros'], { isTesting: true })\n );\n });\n})();\n","/* globals require, Ember, jQuery */\n(() => {\n if (typeof jQuery !== 'undefined') {\n let _Ember;\n\n if (typeof Ember !== 'undefined') {\n _Ember = Ember;\n } else {\n _Ember = require('ember').default;\n }\n\n let pendingRequests;\n\n if (Ember.__loader.registry['ember-testing/test/pending_requests']) {\n // Ember <= 3.1\n pendingRequests = Ember.__loader.require('ember-testing/test/pending_requests');\n } else if (Ember.__loader.registry['ember-testing/lib/test/pending_requests']) {\n // Ember >= 3.2\n pendingRequests = Ember.__loader.require('ember-testing/lib/test/pending_requests');\n }\n\n if (pendingRequests) {\n // This exists to ensure that the AJAX listeners setup by Ember itself\n // (which as of 2.17 are not properly torn down) get cleared and released\n // when the application is destroyed. Without this, any AJAX requests\n // that happen _between_ acceptance tests will always share\n // `pendingRequests`.\n _Ember.Application.reopen({\n willDestroy() {\n jQuery(document).off('ajaxSend', pendingRequests.incrementPendingRequests);\n jQuery(document).off('ajaxComplete', pendingRequests.decrementPendingRequests);\n pendingRequests.clearPendingRequests();\n\n this._super(...arguments);\n }\n\n });\n }\n }\n})();","/*!\n * QUnit 2.10.0\n * https://qunitjs.com/\n *\n * Copyright jQuery Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2020-05-02T22:51Z\n */\n(function (global$1) {\n 'use strict';\n\n global$1 = global$1 && global$1.hasOwnProperty('default') ? global$1['default'] : global$1;\n\n var window$1 = global$1.window;\n var self$1 = global$1.self;\n var console = global$1.console;\n var setTimeout$1 = global$1.setTimeout;\n var clearTimeout = global$1.clearTimeout;\n\n var document$1 = window$1 && window$1.document;\n var navigator = window$1 && window$1.navigator;\n\n var localSessionStorage = function () {\n \tvar x = \"qunit-test-string\";\n \ttry {\n \t\tglobal$1.sessionStorage.setItem(x, x);\n \t\tglobal$1.sessionStorage.removeItem(x);\n \t\treturn global$1.sessionStorage;\n \t} catch (e) {\n \t\treturn undefined;\n \t}\n }();\n\n /**\n * Returns a function that proxies to the given method name on the globals\n * console object. The proxy will also detect if the console doesn't exist and\n * will appropriately no-op. This allows support for IE9, which doesn't have a\n * console if the developer tools are not open.\n */\n function consoleProxy(method) {\n \treturn function () {\n \t\tif (console) {\n \t\t\tconsole[method].apply(console, arguments);\n \t\t}\n \t};\n }\n\n var Logger = {\n \twarn: consoleProxy(\"warn\")\n };\n\n var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n } : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n\n\n\n\n\n\n\n\n\n\n\n var classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n };\n\n var createClass = function () {\n function 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\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n }();\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n var toConsumableArray = function (arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n } else {\n return Array.from(arr);\n }\n };\n\n var toString = Object.prototype.toString;\n var hasOwn = Object.prototype.hasOwnProperty;\n var now = Date.now || function () {\n \treturn new Date().getTime();\n };\n\n var hasPerformanceApi = detectPerformanceApi();\n var performance = hasPerformanceApi ? window$1.performance : undefined;\n var performanceNow = hasPerformanceApi ? performance.now.bind(performance) : now;\n\n function detectPerformanceApi() {\n \treturn window$1 && typeof window$1.performance !== \"undefined\" && typeof window$1.performance.mark === \"function\" && typeof window$1.performance.measure === \"function\";\n }\n\n function measure(comment, startMark, endMark) {\n\n \t// `performance.measure` may fail if the mark could not be found.\n \t// reasons a specific mark could not be found include: outside code invoking `performance.clearMarks()`\n \ttry {\n \t\tperformance.measure(comment, startMark, endMark);\n \t} catch (ex) {\n \t\tLogger.warn(\"performance.measure could not be executed because of \", ex.message);\n \t}\n }\n\n var defined = {\n \tdocument: window$1 && window$1.document !== undefined,\n \tsetTimeout: setTimeout$1 !== undefined\n };\n\n // Returns a new Array with the elements that are in a but not in b\n function diff(a, b) {\n \tvar i,\n \t j,\n \t result = a.slice();\n\n \tfor (i = 0; i < result.length; i++) {\n \t\tfor (j = 0; j < b.length; j++) {\n \t\t\tif (result[i] === b[j]) {\n \t\t\t\tresult.splice(i, 1);\n \t\t\t\ti--;\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n \treturn result;\n }\n\n /**\n * Determines whether an element exists in a given array or not.\n *\n * @method inArray\n * @param {Any} elem\n * @param {Array} array\n * @return {Boolean}\n */\n function inArray(elem, array) {\n \treturn array.indexOf(elem) !== -1;\n }\n\n /**\n * Makes a clone of an object using only Array or Object as base,\n * and copies over the own enumerable properties.\n *\n * @param {Object} obj\n * @return {Object} New object with only the own properties (recursively).\n */\n function objectValues(obj) {\n \tvar key,\n \t val,\n \t vals = is(\"array\", obj) ? [] : {};\n \tfor (key in obj) {\n \t\tif (hasOwn.call(obj, key)) {\n \t\t\tval = obj[key];\n \t\t\tvals[key] = val === Object(val) ? objectValues(val) : val;\n \t\t}\n \t}\n \treturn vals;\n }\n\n function extend(a, b, undefOnly) {\n \tfor (var prop in b) {\n \t\tif (hasOwn.call(b, prop)) {\n \t\t\tif (b[prop] === undefined) {\n \t\t\t\tdelete a[prop];\n \t\t\t} else if (!(undefOnly && typeof a[prop] !== \"undefined\")) {\n \t\t\t\ta[prop] = b[prop];\n \t\t\t}\n \t\t}\n \t}\n\n \treturn a;\n }\n\n function objectType(obj) {\n \tif (typeof obj === \"undefined\") {\n \t\treturn \"undefined\";\n \t}\n\n \t// Consider: typeof null === object\n \tif (obj === null) {\n \t\treturn \"null\";\n \t}\n\n \tvar match = toString.call(obj).match(/^\\[object\\s(.*)\\]$/),\n \t type = match && match[1];\n\n \tswitch (type) {\n \t\tcase \"Number\":\n \t\t\tif (isNaN(obj)) {\n \t\t\t\treturn \"nan\";\n \t\t\t}\n \t\t\treturn \"number\";\n \t\tcase \"String\":\n \t\tcase \"Boolean\":\n \t\tcase \"Array\":\n \t\tcase \"Set\":\n \t\tcase \"Map\":\n \t\tcase \"Date\":\n \t\tcase \"RegExp\":\n \t\tcase \"Function\":\n \t\tcase \"Symbol\":\n \t\t\treturn type.toLowerCase();\n \t\tdefault:\n \t\t\treturn typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n \t}\n }\n\n // Safe object type checking\n function is(type, obj) {\n \treturn objectType(obj) === type;\n }\n\n // Based on Java's String.hashCode, a simple but not\n // rigorously collision resistant hashing function\n function generateHash(module, testName) {\n \tvar str = module + \"\\x1C\" + testName;\n \tvar hash = 0;\n\n \tfor (var i = 0; i < str.length; i++) {\n \t\thash = (hash << 5) - hash + str.charCodeAt(i);\n \t\thash |= 0;\n \t}\n\n \t// Convert the possibly negative integer hash code into an 8 character hex string, which isn't\n \t// strictly necessary but increases user understanding that the id is a SHA-like hash\n \tvar hex = (0x100000000 + hash).toString(16);\n \tif (hex.length < 8) {\n \t\thex = \"0000000\" + hex;\n \t}\n\n \treturn hex.slice(-8);\n }\n\n // Test for equality any JavaScript type.\n // Authors: Philippe Rathé , David Chan \n var equiv = (function () {\n\n \t// Value pairs queued for comparison. Used for breadth-first processing order, recursion\n \t// detection and avoiding repeated comparison (see below for details).\n \t// Elements are { a: val, b: val }.\n \tvar pairs = [];\n\n \tvar getProto = Object.getPrototypeOf || function (obj) {\n \t\treturn obj.__proto__;\n \t};\n\n \tfunction useStrictEquality(a, b) {\n\n \t\t// This only gets called if a and b are not strict equal, and is used to compare on\n \t\t// the primitive values inside object wrappers. For example:\n \t\t// `var i = 1;`\n \t\t// `var j = new Number(1);`\n \t\t// Neither a nor b can be null, as a !== b and they have the same type.\n \t\tif ((typeof a === \"undefined\" ? \"undefined\" : _typeof(a)) === \"object\") {\n \t\t\ta = a.valueOf();\n \t\t}\n \t\tif ((typeof b === \"undefined\" ? \"undefined\" : _typeof(b)) === \"object\") {\n \t\t\tb = b.valueOf();\n \t\t}\n\n \t\treturn a === b;\n \t}\n\n \tfunction compareConstructors(a, b) {\n \t\tvar protoA = getProto(a);\n \t\tvar protoB = getProto(b);\n\n \t\t// Comparing constructors is more strict than using `instanceof`\n \t\tif (a.constructor === b.constructor) {\n \t\t\treturn true;\n \t\t}\n\n \t\t// Ref #851\n \t\t// If the obj prototype descends from a null constructor, treat it\n \t\t// as a null prototype.\n \t\tif (protoA && protoA.constructor === null) {\n \t\t\tprotoA = null;\n \t\t}\n \t\tif (protoB && protoB.constructor === null) {\n \t\t\tprotoB = null;\n \t\t}\n\n \t\t// Allow objects with no prototype to be equivalent to\n \t\t// objects with Object as their constructor.\n \t\tif (protoA === null && protoB === Object.prototype || protoB === null && protoA === Object.prototype) {\n \t\t\treturn true;\n \t\t}\n\n \t\treturn false;\n \t}\n\n \tfunction getRegExpFlags(regexp) {\n \t\treturn \"flags\" in regexp ? regexp.flags : regexp.toString().match(/[gimuy]*$/)[0];\n \t}\n\n \tfunction isContainer(val) {\n \t\treturn [\"object\", \"array\", \"map\", \"set\"].indexOf(objectType(val)) !== -1;\n \t}\n\n \tfunction breadthFirstCompareChild(a, b) {\n\n \t\t// If a is a container not reference-equal to b, postpone the comparison to the\n \t\t// end of the pairs queue -- unless (a, b) has been seen before, in which case skip\n \t\t// over the pair.\n \t\tif (a === b) {\n \t\t\treturn true;\n \t\t}\n \t\tif (!isContainer(a)) {\n \t\t\treturn typeEquiv(a, b);\n \t\t}\n \t\tif (pairs.every(function (pair) {\n \t\t\treturn pair.a !== a || pair.b !== b;\n \t\t})) {\n\n \t\t\t// Not yet started comparing this pair\n \t\t\tpairs.push({ a: a, b: b });\n \t\t}\n \t\treturn true;\n \t}\n\n \tvar callbacks = {\n \t\t\"string\": useStrictEquality,\n \t\t\"boolean\": useStrictEquality,\n \t\t\"number\": useStrictEquality,\n \t\t\"null\": useStrictEquality,\n \t\t\"undefined\": useStrictEquality,\n \t\t\"symbol\": useStrictEquality,\n \t\t\"date\": useStrictEquality,\n\n \t\t\"nan\": function nan() {\n \t\t\treturn true;\n \t\t},\n\n \t\t\"regexp\": function regexp(a, b) {\n \t\t\treturn a.source === b.source &&\n\n \t\t\t// Include flags in the comparison\n \t\t\tgetRegExpFlags(a) === getRegExpFlags(b);\n \t\t},\n\n \t\t// abort (identical references / instance methods were skipped earlier)\n \t\t\"function\": function _function() {\n \t\t\treturn false;\n \t\t},\n\n \t\t\"array\": function array(a, b) {\n \t\t\tvar i, len;\n\n \t\t\tlen = a.length;\n \t\t\tif (len !== b.length) {\n\n \t\t\t\t// Safe and faster\n \t\t\t\treturn false;\n \t\t\t}\n\n \t\t\tfor (i = 0; i < len; i++) {\n\n \t\t\t\t// Compare non-containers; queue non-reference-equal containers\n \t\t\t\tif (!breadthFirstCompareChild(a[i], b[i])) {\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// Define sets a and b to be equivalent if for each element aVal in a, there\n \t\t// is some element bVal in b such that aVal and bVal are equivalent. Element\n \t\t// repetitions are not counted, so these are equivalent:\n \t\t// a = new Set( [ {}, [], [] ] );\n \t\t// b = new Set( [ {}, {}, [] ] );\n \t\t\"set\": function set$$1(a, b) {\n \t\t\tvar innerEq,\n \t\t\t outerEq = true;\n\n \t\t\tif (a.size !== b.size) {\n\n \t\t\t\t// This optimization has certain quirks because of the lack of\n \t\t\t\t// repetition counting. For instance, adding the same\n \t\t\t\t// (reference-identical) element to two equivalent sets can\n \t\t\t\t// make them non-equivalent.\n \t\t\t\treturn false;\n \t\t\t}\n\n \t\t\ta.forEach(function (aVal) {\n\n \t\t\t\t// Short-circuit if the result is already known. (Using for...of\n \t\t\t\t// with a break clause would be cleaner here, but it would cause\n \t\t\t\t// a syntax error on older Javascript implementations even if\n \t\t\t\t// Set is unused)\n \t\t\t\tif (!outerEq) {\n \t\t\t\t\treturn;\n \t\t\t\t}\n\n \t\t\t\tinnerEq = false;\n\n \t\t\t\tb.forEach(function (bVal) {\n \t\t\t\t\tvar parentPairs;\n\n \t\t\t\t\t// Likewise, short-circuit if the result is already known\n \t\t\t\t\tif (innerEq) {\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n\n \t\t\t\t\t// Swap out the global pairs list, as the nested call to\n \t\t\t\t\t// innerEquiv will clobber its contents\n \t\t\t\t\tparentPairs = pairs;\n \t\t\t\t\tif (innerEquiv(bVal, aVal)) {\n \t\t\t\t\t\tinnerEq = true;\n \t\t\t\t\t}\n\n \t\t\t\t\t// Replace the global pairs list\n \t\t\t\t\tpairs = parentPairs;\n \t\t\t\t});\n\n \t\t\t\tif (!innerEq) {\n \t\t\t\t\touterEq = false;\n \t\t\t\t}\n \t\t\t});\n\n \t\t\treturn outerEq;\n \t\t},\n\n \t\t// Define maps a and b to be equivalent if for each key-value pair (aKey, aVal)\n \t\t// in a, there is some key-value pair (bKey, bVal) in b such that\n \t\t// [ aKey, aVal ] and [ bKey, bVal ] are equivalent. Key repetitions are not\n \t\t// counted, so these are equivalent:\n \t\t// a = new Map( [ [ {}, 1 ], [ {}, 1 ], [ [], 1 ] ] );\n \t\t// b = new Map( [ [ {}, 1 ], [ [], 1 ], [ [], 1 ] ] );\n \t\t\"map\": function map(a, b) {\n \t\t\tvar innerEq,\n \t\t\t outerEq = true;\n\n \t\t\tif (a.size !== b.size) {\n\n \t\t\t\t// This optimization has certain quirks because of the lack of\n \t\t\t\t// repetition counting. For instance, adding the same\n \t\t\t\t// (reference-identical) key-value pair to two equivalent maps\n \t\t\t\t// can make them non-equivalent.\n \t\t\t\treturn false;\n \t\t\t}\n\n \t\t\ta.forEach(function (aVal, aKey) {\n\n \t\t\t\t// Short-circuit if the result is already known. (Using for...of\n \t\t\t\t// with a break clause would be cleaner here, but it would cause\n \t\t\t\t// a syntax error on older Javascript implementations even if\n \t\t\t\t// Map is unused)\n \t\t\t\tif (!outerEq) {\n \t\t\t\t\treturn;\n \t\t\t\t}\n\n \t\t\t\tinnerEq = false;\n\n \t\t\t\tb.forEach(function (bVal, bKey) {\n \t\t\t\t\tvar parentPairs;\n\n \t\t\t\t\t// Likewise, short-circuit if the result is already known\n \t\t\t\t\tif (innerEq) {\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n\n \t\t\t\t\t// Swap out the global pairs list, as the nested call to\n \t\t\t\t\t// innerEquiv will clobber its contents\n \t\t\t\t\tparentPairs = pairs;\n \t\t\t\t\tif (innerEquiv([bVal, bKey], [aVal, aKey])) {\n \t\t\t\t\t\tinnerEq = true;\n \t\t\t\t\t}\n\n \t\t\t\t\t// Replace the global pairs list\n \t\t\t\t\tpairs = parentPairs;\n \t\t\t\t});\n\n \t\t\t\tif (!innerEq) {\n \t\t\t\t\touterEq = false;\n \t\t\t\t}\n \t\t\t});\n\n \t\t\treturn outerEq;\n \t\t},\n\n \t\t\"object\": function object(a, b) {\n \t\t\tvar i,\n \t\t\t aProperties = [],\n \t\t\t bProperties = [];\n\n \t\t\tif (compareConstructors(a, b) === false) {\n \t\t\t\treturn false;\n \t\t\t}\n\n \t\t\t// Be strict: don't ensure hasOwnProperty and go deep\n \t\t\tfor (i in a) {\n\n \t\t\t\t// Collect a's properties\n \t\t\t\taProperties.push(i);\n\n \t\t\t\t// Skip OOP methods that look the same\n \t\t\t\tif (a.constructor !== Object && typeof a.constructor !== \"undefined\" && typeof a[i] === \"function\" && typeof b[i] === \"function\" && a[i].toString() === b[i].toString()) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n\n \t\t\t\t// Compare non-containers; queue non-reference-equal containers\n \t\t\t\tif (!breadthFirstCompareChild(a[i], b[i])) {\n \t\t\t\t\treturn false;\n \t\t\t\t}\n \t\t\t}\n\n \t\t\tfor (i in b) {\n\n \t\t\t\t// Collect b's properties\n \t\t\t\tbProperties.push(i);\n \t\t\t}\n\n \t\t\t// Ensures identical properties name\n \t\t\treturn typeEquiv(aProperties.sort(), bProperties.sort());\n \t\t}\n \t};\n\n \tfunction typeEquiv(a, b) {\n \t\tvar type = objectType(a);\n\n \t\t// Callbacks for containers will append to the pairs queue to achieve breadth-first\n \t\t// search order. The pairs queue is also used to avoid reprocessing any pair of\n \t\t// containers that are reference-equal to a previously visited pair (a special case\n \t\t// this being recursion detection).\n \t\t//\n \t\t// Because of this approach, once typeEquiv returns a false value, it should not be\n \t\t// called again without clearing the pair queue else it may wrongly report a visited\n \t\t// pair as being equivalent.\n \t\treturn objectType(b) === type && callbacks[type](a, b);\n \t}\n\n \tfunction innerEquiv(a, b) {\n \t\tvar i, pair;\n\n \t\t// We're done when there's nothing more to compare\n \t\tif (arguments.length < 2) {\n \t\t\treturn true;\n \t\t}\n\n \t\t// Clear the global pair queue and add the top-level values being compared\n \t\tpairs = [{ a: a, b: b }];\n\n \t\tfor (i = 0; i < pairs.length; i++) {\n \t\t\tpair = pairs[i];\n\n \t\t\t// Perform type-specific comparison on any pairs that are not strictly\n \t\t\t// equal. For container types, that comparison will postpone comparison\n \t\t\t// of any sub-container pair to the end of the pair queue. This gives\n \t\t\t// breadth-first search order. It also avoids the reprocessing of\n \t\t\t// reference-equal siblings, cousins etc, which can have a significant speed\n \t\t\t// impact when comparing a container of small objects each of which has a\n \t\t\t// reference to the same (singleton) large object.\n \t\t\tif (pair.a !== pair.b && !typeEquiv(pair.a, pair.b)) {\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n\n \t\t// ...across all consecutive argument pairs\n \t\treturn arguments.length === 2 || innerEquiv.apply(this, [].slice.call(arguments, 1));\n \t}\n\n \treturn function () {\n \t\tvar result = innerEquiv.apply(undefined, arguments);\n\n \t\t// Release any retained objects\n \t\tpairs.length = 0;\n \t\treturn result;\n \t};\n })();\n\n /**\n * Config object: Maintain internal state\n * Later exposed as QUnit.config\n * `config` initialized at top of scope\n */\n var config = {\n\n \t// The queue of tests to run\n \tqueue: [],\n\n \t// Block until document ready\n \tblocking: true,\n\n \t// By default, run previously failed tests first\n \t// very useful in combination with \"Hide passed tests\" checked\n \treorder: true,\n\n \t// By default, modify document.title when suite is done\n \taltertitle: true,\n\n \t// HTML Reporter: collapse every test except the first failing test\n \t// If false, all failing tests will be expanded\n \tcollapse: true,\n\n \t// By default, scroll to top of the page when suite is done\n \tscrolltop: true,\n\n \t// Depth up-to which object will be dumped\n \tmaxDepth: 5,\n\n \t// When enabled, all tests must call expect()\n \trequireExpects: false,\n\n \t// Placeholder for user-configurable form-exposed URL parameters\n \turlConfig: [],\n\n \t// Set of all modules.\n \tmodules: [],\n\n \t// The first unnamed module\n \tcurrentModule: {\n \t\tname: \"\",\n \t\ttests: [],\n \t\tchildModules: [],\n \t\ttestsRun: 0,\n \t\tunskippedTestsRun: 0,\n \t\thooks: {\n \t\t\tbefore: [],\n \t\t\tbeforeEach: [],\n \t\t\tafterEach: [],\n \t\t\tafter: []\n \t\t}\n \t},\n\n \tcallbacks: {},\n\n \t// The storage module to use for reordering tests\n \tstorage: localSessionStorage\n };\n\n // take a predefined QUnit.config and extend the defaults\n var globalConfig = window$1 && window$1.QUnit && window$1.QUnit.config;\n\n // only extend the global config if there is no QUnit overload\n if (window$1 && window$1.QUnit && !window$1.QUnit.version) {\n \textend(config, globalConfig);\n }\n\n // Push a loose unnamed module to the modules collection\n config.modules.push(config.currentModule);\n\n // Based on jsDump by Ariel Flesler\n // http://flesler.blogspot.com/2008/05/jsdump-pretty-dump-of-any-javascript.html\n var dump = (function () {\n \tfunction quote(str) {\n \t\treturn \"\\\"\" + str.toString().replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\") + \"\\\"\";\n \t}\n \tfunction literal(o) {\n \t\treturn o + \"\";\n \t}\n \tfunction join(pre, arr, post) {\n \t\tvar s = dump.separator(),\n \t\t base = dump.indent(),\n \t\t inner = dump.indent(1);\n \t\tif (arr.join) {\n \t\t\tarr = arr.join(\",\" + s + inner);\n \t\t}\n \t\tif (!arr) {\n \t\t\treturn pre + post;\n \t\t}\n \t\treturn [pre, inner + arr, base + post].join(s);\n \t}\n \tfunction array(arr, stack) {\n \t\tvar i = arr.length,\n \t\t ret = new Array(i);\n\n \t\tif (dump.maxDepth && dump.depth > dump.maxDepth) {\n \t\t\treturn \"[object Array]\";\n \t\t}\n\n \t\tthis.up();\n \t\twhile (i--) {\n \t\t\tret[i] = this.parse(arr[i], undefined, stack);\n \t\t}\n \t\tthis.down();\n \t\treturn join(\"[\", ret, \"]\");\n \t}\n\n \tfunction isArray(obj) {\n \t\treturn (\n\n \t\t\t//Native Arrays\n \t\t\ttoString.call(obj) === \"[object Array]\" ||\n\n \t\t\t// NodeList objects\n \t\t\ttypeof obj.length === \"number\" && obj.item !== undefined && (obj.length ? obj.item(0) === obj[0] : obj.item(0) === null && obj[0] === undefined)\n \t\t);\n \t}\n\n \tvar reName = /^function (\\w+)/,\n \t dump = {\n\n \t\t// The objType is used mostly internally, you can fix a (custom) type in advance\n \t\tparse: function parse(obj, objType, stack) {\n \t\t\tstack = stack || [];\n \t\t\tvar res,\n \t\t\t parser,\n \t\t\t parserType,\n \t\t\t objIndex = stack.indexOf(obj);\n\n \t\t\tif (objIndex !== -1) {\n \t\t\t\treturn \"recursion(\" + (objIndex - stack.length) + \")\";\n \t\t\t}\n\n \t\t\tobjType = objType || this.typeOf(obj);\n \t\t\tparser = this.parsers[objType];\n \t\t\tparserType = typeof parser === \"undefined\" ? \"undefined\" : _typeof(parser);\n\n \t\t\tif (parserType === \"function\") {\n \t\t\t\tstack.push(obj);\n \t\t\t\tres = parser.call(this, obj, stack);\n \t\t\t\tstack.pop();\n \t\t\t\treturn res;\n \t\t\t}\n \t\t\treturn parserType === \"string\" ? parser : this.parsers.error;\n \t\t},\n \t\ttypeOf: function typeOf(obj) {\n \t\t\tvar type;\n\n \t\t\tif (obj === null) {\n \t\t\t\ttype = \"null\";\n \t\t\t} else if (typeof obj === \"undefined\") {\n \t\t\t\ttype = \"undefined\";\n \t\t\t} else if (is(\"regexp\", obj)) {\n \t\t\t\ttype = \"regexp\";\n \t\t\t} else if (is(\"date\", obj)) {\n \t\t\t\ttype = \"date\";\n \t\t\t} else if (is(\"function\", obj)) {\n \t\t\t\ttype = \"function\";\n \t\t\t} else if (obj.setInterval !== undefined && obj.document !== undefined && obj.nodeType === undefined) {\n \t\t\t\ttype = \"window\";\n \t\t\t} else if (obj.nodeType === 9) {\n \t\t\t\ttype = \"document\";\n \t\t\t} else if (obj.nodeType) {\n \t\t\t\ttype = \"node\";\n \t\t\t} else if (isArray(obj)) {\n \t\t\t\ttype = \"array\";\n \t\t\t} else if (obj.constructor === Error.prototype.constructor) {\n \t\t\t\ttype = \"error\";\n \t\t\t} else {\n \t\t\t\ttype = typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n \t\t\t}\n \t\t\treturn type;\n \t\t},\n\n \t\tseparator: function separator() {\n \t\t\tif (this.multiline) {\n \t\t\t\treturn this.HTML ? \"
      \" : \"\\n\";\n \t\t\t} else {\n \t\t\t\treturn this.HTML ? \" \" : \" \";\n \t\t\t}\n \t\t},\n\n \t\t// Extra can be a number, shortcut for increasing-calling-decreasing\n \t\tindent: function indent(extra) {\n \t\t\tif (!this.multiline) {\n \t\t\t\treturn \"\";\n \t\t\t}\n \t\t\tvar chr = this.indentChar;\n \t\t\tif (this.HTML) {\n \t\t\t\tchr = chr.replace(/\\t/g, \" \").replace(/ /g, \" \");\n \t\t\t}\n \t\t\treturn new Array(this.depth + (extra || 0)).join(chr);\n \t\t},\n \t\tup: function up(a) {\n \t\t\tthis.depth += a || 1;\n \t\t},\n \t\tdown: function down(a) {\n \t\t\tthis.depth -= a || 1;\n \t\t},\n \t\tsetParser: function setParser(name, parser) {\n \t\t\tthis.parsers[name] = parser;\n \t\t},\n\n \t\t// The next 3 are exposed so you can use them\n \t\tquote: quote,\n \t\tliteral: literal,\n \t\tjoin: join,\n \t\tdepth: 1,\n \t\tmaxDepth: config.maxDepth,\n\n \t\t// This is the list of parsers, to modify them, use dump.setParser\n \t\tparsers: {\n \t\t\twindow: \"[Window]\",\n \t\t\tdocument: \"[Document]\",\n \t\t\terror: function error(_error) {\n \t\t\t\treturn \"Error(\\\"\" + _error.message + \"\\\")\";\n \t\t\t},\n \t\t\tunknown: \"[Unknown]\",\n \t\t\t\"null\": \"null\",\n \t\t\t\"undefined\": \"undefined\",\n \t\t\t\"function\": function _function(fn) {\n \t\t\t\tvar ret = \"function\",\n\n\n \t\t\t\t// Functions never have name in IE\n \t\t\t\tname = \"name\" in fn ? fn.name : (reName.exec(fn) || [])[1];\n\n \t\t\t\tif (name) {\n \t\t\t\t\tret += \" \" + name;\n \t\t\t\t}\n \t\t\t\tret += \"(\";\n\n \t\t\t\tret = [ret, dump.parse(fn, \"functionArgs\"), \"){\"].join(\"\");\n \t\t\t\treturn join(ret, dump.parse(fn, \"functionCode\"), \"}\");\n \t\t\t},\n \t\t\tarray: array,\n \t\t\tnodelist: array,\n \t\t\t\"arguments\": array,\n \t\t\tobject: function object(map, stack) {\n \t\t\t\tvar keys,\n \t\t\t\t key,\n \t\t\t\t val,\n \t\t\t\t i,\n \t\t\t\t nonEnumerableProperties,\n \t\t\t\t ret = [];\n\n \t\t\t\tif (dump.maxDepth && dump.depth > dump.maxDepth) {\n \t\t\t\t\treturn \"[object Object]\";\n \t\t\t\t}\n\n \t\t\t\tdump.up();\n \t\t\t\tkeys = [];\n \t\t\t\tfor (key in map) {\n \t\t\t\t\tkeys.push(key);\n \t\t\t\t}\n\n \t\t\t\t// Some properties are not always enumerable on Error objects.\n \t\t\t\tnonEnumerableProperties = [\"message\", \"name\"];\n \t\t\t\tfor (i in nonEnumerableProperties) {\n \t\t\t\t\tkey = nonEnumerableProperties[i];\n \t\t\t\t\tif (key in map && !inArray(key, keys)) {\n \t\t\t\t\t\tkeys.push(key);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tkeys.sort();\n \t\t\t\tfor (i = 0; i < keys.length; i++) {\n \t\t\t\t\tkey = keys[i];\n \t\t\t\t\tval = map[key];\n \t\t\t\t\tret.push(dump.parse(key, \"key\") + \": \" + dump.parse(val, undefined, stack));\n \t\t\t\t}\n \t\t\t\tdump.down();\n \t\t\t\treturn join(\"{\", ret, \"}\");\n \t\t\t},\n \t\t\tnode: function node(_node) {\n \t\t\t\tvar len,\n \t\t\t\t i,\n \t\t\t\t val,\n \t\t\t\t open = dump.HTML ? \"<\" : \"<\",\n \t\t\t\t close = dump.HTML ? \">\" : \">\",\n \t\t\t\t tag = _node.nodeName.toLowerCase(),\n \t\t\t\t ret = open + tag,\n \t\t\t\t attrs = _node.attributes;\n\n \t\t\t\tif (attrs) {\n \t\t\t\t\tfor (i = 0, len = attrs.length; i < len; i++) {\n \t\t\t\t\t\tval = attrs[i].nodeValue;\n\n \t\t\t\t\t\t// IE6 includes all attributes in .attributes, even ones not explicitly\n \t\t\t\t\t\t// set. Those have values like undefined, null, 0, false, \"\" or\n \t\t\t\t\t\t// \"inherit\".\n \t\t\t\t\t\tif (val && val !== \"inherit\") {\n \t\t\t\t\t\t\tret += \" \" + attrs[i].nodeName + \"=\" + dump.parse(val, \"attribute\");\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tret += close;\n\n \t\t\t\t// Show content of TextNode or CDATASection\n \t\t\t\tif (_node.nodeType === 3 || _node.nodeType === 4) {\n \t\t\t\t\tret += _node.nodeValue;\n \t\t\t\t}\n\n \t\t\t\treturn ret + open + \"/\" + tag + close;\n \t\t\t},\n\n \t\t\t// Function calls it internally, it's the arguments part of the function\n \t\t\tfunctionArgs: function functionArgs(fn) {\n \t\t\t\tvar args,\n \t\t\t\t l = fn.length;\n\n \t\t\t\tif (!l) {\n \t\t\t\t\treturn \"\";\n \t\t\t\t}\n\n \t\t\t\targs = new Array(l);\n \t\t\t\twhile (l--) {\n\n \t\t\t\t\t// 97 is 'a'\n \t\t\t\t\targs[l] = String.fromCharCode(97 + l);\n \t\t\t\t}\n \t\t\t\treturn \" \" + args.join(\", \") + \" \";\n \t\t\t},\n\n \t\t\t// Object calls it internally, the key part of an item in a map\n \t\t\tkey: quote,\n\n \t\t\t// Function calls it internally, it's the content of the function\n \t\t\tfunctionCode: \"[code]\",\n\n \t\t\t// Node calls it internally, it's a html attribute value\n \t\t\tattribute: quote,\n \t\t\tstring: quote,\n \t\t\tdate: quote,\n \t\t\tregexp: literal,\n \t\t\tnumber: literal,\n \t\t\t\"boolean\": literal,\n \t\t\tsymbol: function symbol(sym) {\n \t\t\t\treturn sym.toString();\n \t\t\t}\n \t\t},\n\n \t\t// If true, entities are escaped ( <, >, \\t, space and \\n )\n \t\tHTML: false,\n\n \t\t// Indentation unit\n \t\tindentChar: \" \",\n\n \t\t// If true, items in a collection, are separated by a \\n, else just a space.\n \t\tmultiline: true\n \t};\n\n \treturn dump;\n })();\n\n var SuiteReport = function () {\n \tfunction SuiteReport(name, parentSuite) {\n \t\tclassCallCheck(this, SuiteReport);\n\n \t\tthis.name = name;\n \t\tthis.fullName = parentSuite ? parentSuite.fullName.concat(name) : [];\n\n \t\tthis.tests = [];\n \t\tthis.childSuites = [];\n\n \t\tif (parentSuite) {\n \t\t\tparentSuite.pushChildSuite(this);\n \t\t}\n \t}\n\n \tcreateClass(SuiteReport, [{\n \t\tkey: \"start\",\n \t\tvalue: function start(recordTime) {\n \t\t\tif (recordTime) {\n \t\t\t\tthis._startTime = performanceNow();\n\n \t\t\t\tif (performance) {\n \t\t\t\t\tvar suiteLevel = this.fullName.length;\n \t\t\t\t\tperformance.mark(\"qunit_suite_\" + suiteLevel + \"_start\");\n \t\t\t\t}\n \t\t\t}\n\n \t\t\treturn {\n \t\t\t\tname: this.name,\n \t\t\t\tfullName: this.fullName.slice(),\n \t\t\t\ttests: this.tests.map(function (test) {\n \t\t\t\t\treturn test.start();\n \t\t\t\t}),\n \t\t\t\tchildSuites: this.childSuites.map(function (suite) {\n \t\t\t\t\treturn suite.start();\n \t\t\t\t}),\n \t\t\t\ttestCounts: {\n \t\t\t\t\ttotal: this.getTestCounts().total\n \t\t\t\t}\n \t\t\t};\n \t\t}\n \t}, {\n \t\tkey: \"end\",\n \t\tvalue: function end(recordTime) {\n \t\t\tif (recordTime) {\n \t\t\t\tthis._endTime = performanceNow();\n\n \t\t\t\tif (performance) {\n \t\t\t\t\tvar suiteLevel = this.fullName.length;\n \t\t\t\t\tperformance.mark(\"qunit_suite_\" + suiteLevel + \"_end\");\n\n \t\t\t\t\tvar suiteName = this.fullName.join(\" – \");\n\n \t\t\t\t\tmeasure(suiteLevel === 0 ? \"QUnit Test Run\" : \"QUnit Test Suite: \" + suiteName, \"qunit_suite_\" + suiteLevel + \"_start\", \"qunit_suite_\" + suiteLevel + \"_end\");\n \t\t\t\t}\n \t\t\t}\n\n \t\t\treturn {\n \t\t\t\tname: this.name,\n \t\t\t\tfullName: this.fullName.slice(),\n \t\t\t\ttests: this.tests.map(function (test) {\n \t\t\t\t\treturn test.end();\n \t\t\t\t}),\n \t\t\t\tchildSuites: this.childSuites.map(function (suite) {\n \t\t\t\t\treturn suite.end();\n \t\t\t\t}),\n \t\t\t\ttestCounts: this.getTestCounts(),\n \t\t\t\truntime: this.getRuntime(),\n \t\t\t\tstatus: this.getStatus()\n \t\t\t};\n \t\t}\n \t}, {\n \t\tkey: \"pushChildSuite\",\n \t\tvalue: function pushChildSuite(suite) {\n \t\t\tthis.childSuites.push(suite);\n \t\t}\n \t}, {\n \t\tkey: \"pushTest\",\n \t\tvalue: function pushTest(test) {\n \t\t\tthis.tests.push(test);\n \t\t}\n \t}, {\n \t\tkey: \"getRuntime\",\n \t\tvalue: function getRuntime() {\n \t\t\treturn this._endTime - this._startTime;\n \t\t}\n \t}, {\n \t\tkey: \"getTestCounts\",\n \t\tvalue: function getTestCounts() {\n \t\t\tvar counts = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { passed: 0, failed: 0, skipped: 0, todo: 0, total: 0 };\n\n \t\t\tcounts = this.tests.reduce(function (counts, test) {\n \t\t\t\tif (test.valid) {\n \t\t\t\t\tcounts[test.getStatus()]++;\n \t\t\t\t\tcounts.total++;\n \t\t\t\t}\n\n \t\t\t\treturn counts;\n \t\t\t}, counts);\n\n \t\t\treturn this.childSuites.reduce(function (counts, suite) {\n \t\t\t\treturn suite.getTestCounts(counts);\n \t\t\t}, counts);\n \t\t}\n \t}, {\n \t\tkey: \"getStatus\",\n \t\tvalue: function getStatus() {\n \t\t\tvar _getTestCounts = this.getTestCounts(),\n \t\t\t total = _getTestCounts.total,\n \t\t\t failed = _getTestCounts.failed,\n \t\t\t skipped = _getTestCounts.skipped,\n \t\t\t todo = _getTestCounts.todo;\n\n \t\t\tif (failed) {\n \t\t\t\treturn \"failed\";\n \t\t\t} else {\n \t\t\t\tif (skipped === total) {\n \t\t\t\t\treturn \"skipped\";\n \t\t\t\t} else if (todo === total) {\n \t\t\t\t\treturn \"todo\";\n \t\t\t\t} else {\n \t\t\t\t\treturn \"passed\";\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}]);\n \treturn SuiteReport;\n }();\n\n var focused = false;\n\n var moduleStack = [];\n\n function isParentModuleInQueue() {\n \tvar modulesInQueue = config.modules.map(function (module) {\n \t\treturn module.moduleId;\n \t});\n \treturn moduleStack.some(function (module) {\n \t\treturn modulesInQueue.includes(module.moduleId);\n \t});\n }\n\n function createModule(name, testEnvironment, modifiers) {\n \tvar parentModule = moduleStack.length ? moduleStack.slice(-1)[0] : null;\n \tvar moduleName = parentModule !== null ? [parentModule.name, name].join(\" > \") : name;\n \tvar parentSuite = parentModule ? parentModule.suiteReport : globalSuite;\n\n \tvar skip = parentModule !== null && parentModule.skip || modifiers.skip;\n \tvar todo = parentModule !== null && parentModule.todo || modifiers.todo;\n\n \tvar module = {\n \t\tname: moduleName,\n \t\tparentModule: parentModule,\n \t\ttests: [],\n \t\tmoduleId: generateHash(moduleName),\n \t\ttestsRun: 0,\n \t\tunskippedTestsRun: 0,\n \t\tchildModules: [],\n \t\tsuiteReport: new SuiteReport(name, parentSuite),\n\n \t\t// Pass along `skip` and `todo` properties from parent module, in case\n \t\t// there is one, to childs. And use own otherwise.\n \t\t// This property will be used to mark own tests and tests of child suites\n \t\t// as either `skipped` or `todo`.\n \t\tskip: skip,\n \t\ttodo: skip ? false : todo\n \t};\n\n \tvar env = {};\n \tif (parentModule) {\n \t\tparentModule.childModules.push(module);\n \t\textend(env, parentModule.testEnvironment);\n \t}\n \textend(env, testEnvironment);\n \tmodule.testEnvironment = env;\n\n \tconfig.modules.push(module);\n \treturn module;\n }\n\n function processModule(name, options, executeNow) {\n \tvar modifiers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};\n\n \tif (objectType(options) === \"function\") {\n \t\texecuteNow = options;\n \t\toptions = undefined;\n \t}\n\n \tvar module = createModule(name, options, modifiers);\n\n \t// Move any hooks to a 'hooks' object\n \tvar testEnvironment = module.testEnvironment;\n \tvar hooks = module.hooks = {};\n\n \tsetHookFromEnvironment(hooks, testEnvironment, \"before\");\n \tsetHookFromEnvironment(hooks, testEnvironment, \"beforeEach\");\n \tsetHookFromEnvironment(hooks, testEnvironment, \"afterEach\");\n \tsetHookFromEnvironment(hooks, testEnvironment, \"after\");\n\n \tvar moduleFns = {\n \t\tbefore: setHookFunction(module, \"before\"),\n \t\tbeforeEach: setHookFunction(module, \"beforeEach\"),\n \t\tafterEach: setHookFunction(module, \"afterEach\"),\n \t\tafter: setHookFunction(module, \"after\")\n \t};\n\n \tvar currentModule = config.currentModule;\n \tif (objectType(executeNow) === \"function\") {\n \t\tmoduleStack.push(module);\n \t\tconfig.currentModule = module;\n \t\texecuteNow.call(module.testEnvironment, moduleFns);\n \t\tmoduleStack.pop();\n \t\tmodule = module.parentModule || currentModule;\n \t}\n\n \tconfig.currentModule = module;\n\n \tfunction setHookFromEnvironment(hooks, environment, name) {\n \t\tvar potentialHook = environment[name];\n \t\thooks[name] = typeof potentialHook === \"function\" ? [potentialHook] : [];\n \t\tdelete environment[name];\n \t}\n\n \tfunction setHookFunction(module, hookName) {\n \t\treturn function setHook(callback) {\n \t\t\tmodule.hooks[hookName].push(callback);\n \t\t};\n \t}\n }\n\n function module$1(name, options, executeNow) {\n \tif (focused && !isParentModuleInQueue()) {\n \t\treturn;\n \t}\n\n \tprocessModule(name, options, executeNow);\n }\n\n module$1.only = function () {\n \tif (!focused) {\n \t\tconfig.modules.length = 0;\n \t\tconfig.queue.length = 0;\n \t}\n\n \tprocessModule.apply(undefined, arguments);\n\n \tfocused = true;\n };\n\n module$1.skip = function (name, options, executeNow) {\n \tif (focused) {\n \t\treturn;\n \t}\n\n \tprocessModule(name, options, executeNow, { skip: true });\n };\n\n module$1.todo = function (name, options, executeNow) {\n \tif (focused) {\n \t\treturn;\n \t}\n\n \tprocessModule(name, options, executeNow, { todo: true });\n };\n\n var LISTENERS = Object.create(null);\n var SUPPORTED_EVENTS = [\"runStart\", \"suiteStart\", \"testStart\", \"assertion\", \"testEnd\", \"suiteEnd\", \"runEnd\"];\n\n /**\n * Emits an event with the specified data to all currently registered listeners.\n * Callbacks will fire in the order in which they are registered (FIFO). This\n * function is not exposed publicly; it is used by QUnit internals to emit\n * logging events.\n *\n * @private\n * @method emit\n * @param {String} eventName\n * @param {Object} data\n * @return {Void}\n */\n function emit(eventName, data) {\n \tif (objectType(eventName) !== \"string\") {\n \t\tthrow new TypeError(\"eventName must be a string when emitting an event\");\n \t}\n\n \t// Clone the callbacks in case one of them registers a new callback\n \tvar originalCallbacks = LISTENERS[eventName];\n \tvar callbacks = originalCallbacks ? [].concat(toConsumableArray(originalCallbacks)) : [];\n\n \tfor (var i = 0; i < callbacks.length; i++) {\n \t\tcallbacks[i](data);\n \t}\n }\n\n /**\n * Registers a callback as a listener to the specified event.\n *\n * @public\n * @method on\n * @param {String} eventName\n * @param {Function} callback\n * @return {Void}\n */\n function on(eventName, callback) {\n \tif (objectType(eventName) !== \"string\") {\n \t\tthrow new TypeError(\"eventName must be a string when registering a listener\");\n \t} else if (!inArray(eventName, SUPPORTED_EVENTS)) {\n \t\tvar events = SUPPORTED_EVENTS.join(\", \");\n \t\tthrow new Error(\"\\\"\" + eventName + \"\\\" is not a valid event; must be one of: \" + events + \".\");\n \t} else if (objectType(callback) !== \"function\") {\n \t\tthrow new TypeError(\"callback must be a function when registering a listener\");\n \t}\n\n \tif (!LISTENERS[eventName]) {\n \t\tLISTENERS[eventName] = [];\n \t}\n\n \t// Don't register the same callback more than once\n \tif (!inArray(callback, LISTENERS[eventName])) {\n \t\tLISTENERS[eventName].push(callback);\n \t}\n }\n\n function objectOrFunction(x) {\n var type = typeof x === 'undefined' ? 'undefined' : _typeof(x);\n return x !== null && (type === 'object' || type === 'function');\n }\n\n function isFunction(x) {\n return typeof x === 'function';\n }\n\n\n\n var _isArray = void 0;\n if (Array.isArray) {\n _isArray = Array.isArray;\n } else {\n _isArray = function _isArray(x) {\n return Object.prototype.toString.call(x) === '[object Array]';\n };\n }\n\n var isArray = _isArray;\n\n var len = 0;\n var vertxNext = void 0;\n var customSchedulerFn = void 0;\n\n var asap = function asap(callback, arg) {\n queue[len] = callback;\n queue[len + 1] = arg;\n len += 2;\n if (len === 2) {\n // If len is 2, 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 if (customSchedulerFn) {\n customSchedulerFn(flush);\n } else {\n scheduleFlush();\n }\n }\n };\n\n function setScheduler(scheduleFn) {\n customSchedulerFn = scheduleFn;\n }\n\n function setAsap(asapFn) {\n asap = asapFn;\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 // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n // see https://github.com/cujojs/when/issues/410 for details\n return function () {\n return process.nextTick(flush);\n };\n }\n\n // vertx\n function useVertxTimer() {\n if (typeof vertxNext !== 'undefined') {\n return function () {\n vertxNext(flush);\n };\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 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 // Store setTimeout reference so es6-promise will be unaffected by\n // other code modifying setTimeout (like sinon.useFakeTimers())\n var globalSetTimeout = setTimeout;\n return function () {\n return globalSetTimeout(flush, 1);\n };\n }\n\n var queue = new Array(1000);\n function flush() {\n for (var i = 0; i < len; i += 2) {\n var callback = queue[i];\n var arg = queue[i + 1];\n\n callback(arg);\n\n queue[i] = undefined;\n queue[i + 1] = undefined;\n }\n\n len = 0;\n }\n\n function attemptVertx() {\n try {\n var vertx = Function('return this')().require('vertx');\n vertxNext = vertx.runOnLoop || vertx.runOnContext;\n return useVertxTimer();\n } catch (e) {\n return useSetTimeout();\n }\n }\n\n var scheduleFlush = void 0;\n // Decide what async method to use to triggering processing of queued callbacks:\n if (isNode) {\n scheduleFlush = useNextTick();\n } else if (BrowserMutationObserver) {\n scheduleFlush = useMutationObserver();\n } else if (isWorker) {\n scheduleFlush = useMessageChannel();\n } else if (browserWindow === undefined && typeof require === 'function') {\n scheduleFlush = attemptVertx();\n } else {\n scheduleFlush = useSetTimeout();\n }\n\n function then(onFulfillment, onRejection) {\n var parent = this;\n\n var child = new this.constructor(noop);\n\n if (child[PROMISE_ID] === undefined) {\n makePromise(child);\n }\n\n var _state = parent._state;\n\n\n if (_state) {\n var callback = arguments[_state - 1];\n asap(function () {\n return invokeCallback(_state, child, callback, parent._result);\n });\n } else {\n subscribe(parent, child, onFulfillment, onRejection);\n }\n\n return child;\n }\n\n /**\n `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 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 = Promise.resolve(1);\n\n promise.then(function(value){\n // value === 1\n });\n ```\n\n @method resolve\n @static\n @param {Any} value value that the returned promise will be resolved with\n Useful for tooling.\n @return {Promise} a promise that will become fulfilled with the given\n `value`\n */\n function resolve$1(object) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && object.constructor === Constructor) {\n return object;\n }\n\n var promise = new Constructor(noop);\n resolve(promise, object);\n return promise;\n }\n\n var PROMISE_ID = Math.random().toString(36).substring(2);\n\n function noop() {}\n\n var PENDING = void 0;\n var FULFILLED = 1;\n var REJECTED = 2;\n\n function selfFulfillment() {\n return new TypeError(\"You cannot resolve a promise with itself\");\n }\n\n function cannotReturnOwn() {\n return new TypeError('A promises callback cannot return that same promise.');\n }\n\n function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {\n try {\n then$$1.call(value, fulfillmentHandler, rejectionHandler);\n } catch (e) {\n return e;\n }\n }\n\n function handleForeignThenable(promise, thenable, then$$1) {\n asap(function (promise) {\n var sealed = false;\n var error = tryThen(then$$1, thenable, function (value) {\n if (sealed) {\n return;\n }\n sealed = true;\n if (thenable !== value) {\n resolve(promise, value);\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 reject(promise, thenable._result);\n } else {\n subscribe(thenable, undefined, function (value) {\n return resolve(promise, value);\n }, function (reason) {\n return reject(promise, reason);\n });\n }\n }\n\n function handleMaybeThenable(promise, maybeThenable, then$$1) {\n if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {\n handleOwnThenable(promise, maybeThenable);\n } else {\n if (then$$1 === undefined) {\n fulfill(promise, maybeThenable);\n } else if (isFunction(then$$1)) {\n handleForeignThenable(promise, maybeThenable, then$$1);\n } else {\n fulfill(promise, maybeThenable);\n }\n }\n }\n\n function resolve(promise, value) {\n if (promise === value) {\n reject(promise, selfFulfillment());\n } else if (objectOrFunction(value)) {\n var then$$1 = void 0;\n try {\n then$$1 = value.then;\n } catch (error) {\n reject(promise, error);\n return;\n }\n handleMaybeThenable(promise, value, then$$1);\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 asap(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\n asap(publishRejection, promise);\n }\n\n function subscribe(parent, child, onFulfillment, onRejection) {\n var _subscribers = parent._subscribers;\n var length = _subscribers.length;\n\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 asap(publish, parent);\n }\n }\n\n function publish(promise) {\n var subscribers = promise._subscribers;\n var settled = promise._state;\n\n if (subscribers.length === 0) {\n return;\n }\n\n var child = void 0,\n callback = void 0,\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 invokeCallback(settled, promise, callback, detail) {\n var hasCallback = isFunction(callback),\n value = void 0,\n error = void 0,\n succeeded = true;\n\n if (hasCallback) {\n try {\n value = callback(detail);\n } catch (e) {\n succeeded = false;\n error = e;\n }\n\n if (promise === value) {\n reject(promise, cannotReturnOwn());\n return;\n }\n } else {\n value = detail;\n }\n\n if (promise._state !== PENDING) {\n // noop\n } else if (hasCallback && succeeded) {\n resolve(promise, value);\n } else if (succeeded === false) {\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 try {\n resolver(function resolvePromise(value) {\n resolve(promise, value);\n }, function rejectPromise(reason) {\n reject(promise, reason);\n });\n } catch (e) {\n reject(promise, e);\n }\n }\n\n var id = 0;\n function nextId() {\n return id++;\n }\n\n function makePromise(promise) {\n promise[PROMISE_ID] = id++;\n promise._state = undefined;\n promise._result = undefined;\n promise._subscribers = [];\n }\n\n function validationError() {\n return new Error('Array Methods must be provided an Array');\n }\n\n var Enumerator = function () {\n function Enumerator(Constructor, input) {\n classCallCheck(this, Enumerator);\n\n this._instanceConstructor = Constructor;\n this.promise = new Constructor(noop);\n\n if (!this.promise[PROMISE_ID]) {\n makePromise(this.promise);\n }\n\n if (isArray(input)) {\n this.length = input.length;\n this._remaining = input.length;\n\n this._result = new Array(this.length);\n\n if (this.length === 0) {\n fulfill(this.promise, this._result);\n } else {\n this.length = this.length || 0;\n this._enumerate(input);\n if (this._remaining === 0) {\n fulfill(this.promise, this._result);\n }\n }\n } else {\n reject(this.promise, validationError());\n }\n }\n\n createClass(Enumerator, [{\n key: '_enumerate',\n value: function _enumerate(input) {\n for (var i = 0; this._state === PENDING && i < input.length; i++) {\n this._eachEntry(input[i], i);\n }\n }\n }, {\n key: '_eachEntry',\n value: function _eachEntry(entry, i) {\n var c = this._instanceConstructor;\n var resolve$$1 = c.resolve;\n\n\n if (resolve$$1 === resolve$1) {\n var _then = void 0;\n var error = void 0;\n var didError = false;\n try {\n _then = entry.then;\n } catch (e) {\n didError = true;\n error = e;\n }\n\n if (_then === then && entry._state !== PENDING) {\n this._settledAt(entry._state, i, entry._result);\n } else if (typeof _then !== 'function') {\n this._remaining--;\n this._result[i] = entry;\n } else if (c === Promise$2) {\n var promise = new c(noop);\n if (didError) {\n reject(promise, error);\n } else {\n handleMaybeThenable(promise, entry, _then);\n }\n this._willSettleAt(promise, i);\n } else {\n this._willSettleAt(new c(function (resolve$$1) {\n return resolve$$1(entry);\n }), i);\n }\n } else {\n this._willSettleAt(resolve$$1(entry), i);\n }\n }\n }, {\n key: '_settledAt',\n value: function _settledAt(state, i, value) {\n var promise = this.promise;\n\n\n if (promise._state === PENDING) {\n this._remaining--;\n\n if (state === REJECTED) {\n reject(promise, value);\n } else {\n this._result[i] = value;\n }\n }\n\n if (this._remaining === 0) {\n fulfill(promise, this._result);\n }\n }\n }, {\n key: '_willSettleAt',\n value: function _willSettleAt(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 return Enumerator;\n }();\n\n /**\n `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 = resolve(1);\n let promise2 = resolve(2);\n let promise3 = resolve(3);\n let promises = [ promise1, promise2, promise3 ];\n\n 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 `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 = resolve(1);\n let promise2 = reject(new Error(\"2\"));\n let promise3 = reject(new Error(\"3\"));\n let promises = [ promise1, promise2, promise3 ];\n\n 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) {\n return new Enumerator(this, entries).promise;\n }\n\n /**\n `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 Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 2');\n }, 100);\n });\n\n Promise.race([promise1, promise2]).then(function(result){\n // result === 'promise 2' because it was resolved before promise1\n // was resolved.\n });\n ```\n\n `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 Promise(function(resolve, reject){\n setTimeout(function(){\n resolve('promise 1');\n }, 200);\n });\n\n let promise2 = new Promise(function(resolve, reject){\n setTimeout(function(){\n reject(new Error('promise 2'));\n }, 100);\n });\n\n 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 Promise.race([ajax('foo.json'), timeout(5000)])\n ```\n\n @method race\n @static\n @param {Array} promises array of promises to observe\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) {\n /*jshint validthis:true */\n var Constructor = this;\n\n if (!isArray(entries)) {\n return new Constructor(function (_, reject) {\n return reject(new TypeError('You must pass an array to race.'));\n });\n } else {\n return new Constructor(function (resolve, reject) {\n var length = entries.length;\n for (var i = 0; i < length; i++) {\n Constructor.resolve(entries[i]).then(resolve, reject);\n }\n });\n }\n }\n\n /**\n `Promise.reject` returns a promise rejected with the passed `reason`.\n It is shorthand for the following:\n\n ```javascript\n let promise = new 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 = 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 {Any} reason value that the returned promise will be rejected with.\n Useful for tooling.\n @return {Promise} a promise rejected with the given `reason`.\n */\n function reject$1(reason) {\n /*jshint validthis:true */\n var Constructor = this;\n var promise = new Constructor(noop);\n reject(promise, reason);\n return promise;\n }\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 Promise\n @param {Function} resolver\n Useful for tooling.\n @constructor\n */\n\n var Promise$2 = function () {\n function Promise(resolver) {\n classCallCheck(this, Promise);\n\n this[PROMISE_ID] = nextId();\n this._result = this._state = undefined;\n this._subscribers = [];\n\n if (noop !== resolver) {\n typeof resolver !== 'function' && needsResolver();\n this instanceof Promise ? initializePromise(this, resolver) : needsNew();\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 ```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 Chaining\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 ```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 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 ```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 Assimilation\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 ```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 If the assimliated promise rejects, then the downstream promise will also reject.\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 Simple Example\n --------------\n Synchronous Example\n ```javascript\n let result;\n try {\n result = findResult();\n // success\n } catch(reason) {\n // failure\n }\n ```\n Errback Example\n ```js\n findResult(function(result, err){\n if (err) {\n // failure\n } else {\n // success\n }\n });\n ```\n Promise Example;\n ```javascript\n findResult().then(function(result){\n // success\n }, function(reason){\n // failure\n });\n ```\n Advanced Example\n --------------\n Synchronous Example\n ```javascript\n let author, books;\n try {\n author = findAuthor();\n books = findBooksByAuthor(author);\n // success\n } catch(reason) {\n // failure\n }\n ```\n Errback Example\n ```js\n function foundBooks(books) {\n }\n function failure(reason) {\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 Promise Example;\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 @method then\n @param {Function} onFulfilled\n @param {Function} onRejected\n Useful for tooling.\n @return {Promise}\n */\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 ```js\n function findAuthor(){\n throw new Error('couldn't find that author');\n }\n // synchronous\n try {\n findAuthor();\n } catch(reason) {\n // something went wrong\n }\n // async with promises\n findAuthor().catch(function(reason){\n // something went wrong\n });\n ```\n @method catch\n @param {Function} onRejection\n Useful for tooling.\n @return {Promise}\n */\n\n\n createClass(Promise, [{\n key: 'catch',\n value: function _catch(onRejection) {\n return this.then(null, onRejection);\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 findOtherAuther();\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 findOtherAuther();\n }).finally(function(){\n // author was either found, or not\n });\n ```\n \n @method finally\n @param {Function} callback\n @return {Promise}\n */\n\n }, {\n key: 'finally',\n value: function _finally(callback) {\n var promise = this;\n var constructor = promise.constructor;\n\n if (isFunction(callback)) {\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 });\n }\n\n return promise.then(callback, callback);\n }\n }]);\n return Promise;\n }();\n\n Promise$2.prototype.then = then;\n Promise$2.all = all;\n Promise$2.race = race;\n Promise$2.resolve = resolve$1;\n Promise$2.reject = reject$1;\n Promise$2._setScheduler = setScheduler;\n Promise$2._setAsap = setAsap;\n Promise$2._asap = asap;\n\n /*global self*/\n function polyfill() {\n var local = void 0;\n\n if (typeof global !== 'undefined') {\n local = global;\n } else if (typeof self !== 'undefined') {\n local = self;\n } else {\n try {\n local = Function('return this')();\n } catch (e) {\n throw new Error('polyfill failed because global object is unavailable in this environment');\n }\n }\n\n var P = local.Promise;\n\n if (P) {\n var promiseToString = null;\n try {\n promiseToString = Object.prototype.toString.call(P.resolve());\n } catch (e) {\n // silently ignored\n }\n\n if (promiseToString === '[object Promise]' && !P.cast) {\n return;\n }\n }\n\n local.Promise = Promise$2;\n }\n\n // Strange compat..\n Promise$2.polyfill = polyfill;\n Promise$2.Promise = Promise$2;\n\n var Promise$1 = typeof Promise !== \"undefined\" ? Promise : Promise$2;\n\n // Register logging callbacks\n function registerLoggingCallbacks(obj) {\n \tvar i,\n \t l,\n \t key,\n \t callbackNames = [\"begin\", \"done\", \"log\", \"testStart\", \"testDone\", \"moduleStart\", \"moduleDone\"];\n\n \tfunction registerLoggingCallback(key) {\n \t\tvar loggingCallback = function loggingCallback(callback) {\n \t\t\tif (objectType(callback) !== \"function\") {\n \t\t\t\tthrow new Error(\"QUnit logging methods require a callback function as their first parameters.\");\n \t\t\t}\n\n \t\t\tconfig.callbacks[key].push(callback);\n \t\t};\n\n \t\treturn loggingCallback;\n \t}\n\n \tfor (i = 0, l = callbackNames.length; i < l; i++) {\n \t\tkey = callbackNames[i];\n\n \t\t// Initialize key collection of logging callback\n \t\tif (objectType(config.callbacks[key]) === \"undefined\") {\n \t\t\tconfig.callbacks[key] = [];\n \t\t}\n\n \t\tobj[key] = registerLoggingCallback(key);\n \t}\n }\n\n function runLoggingCallbacks(key, args) {\n \tvar callbacks = config.callbacks[key];\n\n \t// Handling 'log' callbacks separately. Unlike the other callbacks,\n \t// the log callback is not controlled by the processing queue,\n \t// but rather used by asserts. Hence to promisfy the 'log' callback\n \t// would mean promisfying each step of a test\n \tif (key === \"log\") {\n \t\tcallbacks.map(function (callback) {\n \t\t\treturn callback(args);\n \t\t});\n \t\treturn;\n \t}\n\n \t// ensure that each callback is executed serially\n \treturn callbacks.reduce(function (promiseChain, callback) {\n \t\treturn promiseChain.then(function () {\n \t\t\treturn Promise$1.resolve(callback(args));\n \t\t});\n \t}, Promise$1.resolve([]));\n }\n\n // Doesn't support IE9, it will return undefined on these browsers\n // See also https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Error/Stack\n var fileName = (sourceFromStacktrace(0) || \"\").replace(/(:\\d+)+\\)?/, \"\").replace(/.+\\//, \"\");\n\n function extractStacktrace(e, offset) {\n \toffset = offset === undefined ? 4 : offset;\n\n \tvar stack, include, i;\n\n \tif (e && e.stack) {\n \t\tstack = e.stack.split(\"\\n\");\n \t\tif (/^error$/i.test(stack[0])) {\n \t\t\tstack.shift();\n \t\t}\n \t\tif (fileName) {\n \t\t\tinclude = [];\n \t\t\tfor (i = offset; i < stack.length; i++) {\n \t\t\t\tif (stack[i].indexOf(fileName) !== -1) {\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t\tinclude.push(stack[i]);\n \t\t\t}\n \t\t\tif (include.length) {\n \t\t\t\treturn include.join(\"\\n\");\n \t\t\t}\n \t\t}\n \t\treturn stack[offset];\n \t}\n }\n\n function sourceFromStacktrace(offset) {\n \tvar error = new Error();\n\n \t// Support: Safari <=7 only, IE <=10 - 11 only\n \t// Not all browsers generate the `stack` property for `new Error()`, see also #636\n \tif (!error.stack) {\n \t\ttry {\n \t\t\tthrow error;\n \t\t} catch (err) {\n \t\t\terror = err;\n \t\t}\n \t}\n\n \treturn extractStacktrace(error, offset);\n }\n\n var priorityCount = 0;\n var unitSampler = void 0;\n\n // This is a queue of functions that are tasks within a single test.\n // After tests are dequeued from config.queue they are expanded into\n // a set of tasks in this queue.\n var taskQueue = [];\n\n /**\n * Advances the taskQueue to the next task. If the taskQueue is empty,\n * process the testQueue\n */\n function advance() {\n \tadvanceTaskQueue();\n\n \tif (!taskQueue.length && !config.blocking && !config.current) {\n \t\tadvanceTestQueue();\n \t}\n }\n\n /**\n * Advances the taskQueue with an increased depth\n */\n function advanceTaskQueue() {\n \tvar start = now();\n \tconfig.depth = (config.depth || 0) + 1;\n\n \tprocessTaskQueue(start);\n\n \tconfig.depth--;\n }\n\n /**\n * Process the first task on the taskQueue as a promise.\n * Each task is a function returned by https://github.com/qunitjs/qunit/blob/master/src/test.js#L381\n */\n function processTaskQueue(start) {\n \tif (taskQueue.length && !config.blocking) {\n \t\tvar elapsedTime = now() - start;\n\n \t\tif (!defined.setTimeout || config.updateRate <= 0 || elapsedTime < config.updateRate) {\n \t\t\tvar task = taskQueue.shift();\n \t\t\tPromise$1.resolve(task()).then(function () {\n \t\t\t\tif (!taskQueue.length) {\n \t\t\t\t\tadvance();\n \t\t\t\t} else {\n \t\t\t\t\tprocessTaskQueue(start);\n \t\t\t\t}\n \t\t\t});\n \t\t} else {\n \t\t\tsetTimeout$1(advance);\n \t\t}\n \t}\n }\n\n /**\n * Advance the testQueue to the next test to process. Call done() if testQueue completes.\n */\n function advanceTestQueue() {\n \tif (!config.blocking && !config.queue.length && config.depth === 0) {\n \t\tdone();\n \t\treturn;\n \t}\n\n \tvar testTasks = config.queue.shift();\n \taddToTaskQueue(testTasks());\n\n \tif (priorityCount > 0) {\n \t\tpriorityCount--;\n \t}\n\n \tadvance();\n }\n\n /**\n * Enqueue the tasks for a test into the task queue.\n * @param {Array} tasksArray\n */\n function addToTaskQueue(tasksArray) {\n \ttaskQueue.push.apply(taskQueue, toConsumableArray(tasksArray));\n }\n\n /**\n * Return the number of tasks remaining in the task queue to be processed.\n * @return {Number}\n */\n function taskQueueLength() {\n \treturn taskQueue.length;\n }\n\n /**\n * Adds a test to the TestQueue for execution.\n * @param {Function} testTasksFunc\n * @param {Boolean} prioritize\n * @param {String} seed\n */\n function addToTestQueue(testTasksFunc, prioritize, seed) {\n \tif (prioritize) {\n \t\tconfig.queue.splice(priorityCount++, 0, testTasksFunc);\n \t} else if (seed) {\n \t\tif (!unitSampler) {\n \t\t\tunitSampler = unitSamplerGenerator(seed);\n \t\t}\n\n \t\t// Insert into a random position after all prioritized items\n \t\tvar index = Math.floor(unitSampler() * (config.queue.length - priorityCount + 1));\n \t\tconfig.queue.splice(priorityCount + index, 0, testTasksFunc);\n \t} else {\n \t\tconfig.queue.push(testTasksFunc);\n \t}\n }\n\n /**\n * Creates a seeded \"sample\" generator which is used for randomizing tests.\n */\n function unitSamplerGenerator(seed) {\n\n \t// 32-bit xorshift, requires only a nonzero seed\n \t// http://excamera.com/sphinx/article-xorshift.html\n \tvar sample = parseInt(generateHash(seed), 16) || -1;\n \treturn function () {\n \t\tsample ^= sample << 13;\n \t\tsample ^= sample >>> 17;\n \t\tsample ^= sample << 5;\n\n \t\t// ECMAScript has no unsigned number type\n \t\tif (sample < 0) {\n \t\t\tsample += 0x100000000;\n \t\t}\n\n \t\treturn sample / 0x100000000;\n \t};\n }\n\n /**\n * This function is called when the ProcessingQueue is done processing all\n * items. It handles emitting the final run events.\n */\n function done() {\n \tvar storage = config.storage;\n\n \tProcessingQueue.finished = true;\n\n \tvar runtime = now() - config.started;\n \tvar passed = config.stats.all - config.stats.bad;\n\n \tif (config.stats.all === 0) {\n\n \t\tif (config.filter && config.filter.length) {\n \t\t\tthrow new Error(\"No tests matched the filter \\\"\" + config.filter + \"\\\".\");\n \t\t}\n\n \t\tif (config.module && config.module.length) {\n \t\t\tthrow new Error(\"No tests matched the module \\\"\" + config.module + \"\\\".\");\n \t\t}\n\n \t\tif (config.moduleId && config.moduleId.length) {\n \t\t\tthrow new Error(\"No tests matched the moduleId \\\"\" + config.moduleId + \"\\\".\");\n \t\t}\n\n \t\tif (config.testId && config.testId.length) {\n \t\t\tthrow new Error(\"No tests matched the testId \\\"\" + config.testId + \"\\\".\");\n \t\t}\n\n \t\tthrow new Error(\"No tests were run.\");\n \t}\n\n \temit(\"runEnd\", globalSuite.end(true));\n \trunLoggingCallbacks(\"done\", {\n \t\tpassed: passed,\n \t\tfailed: config.stats.bad,\n \t\ttotal: config.stats.all,\n \t\truntime: runtime\n \t}).then(function () {\n\n \t\t// Clear own storage items if all tests passed\n \t\tif (storage && config.stats.bad === 0) {\n \t\t\tfor (var i = storage.length - 1; i >= 0; i--) {\n \t\t\t\tvar key = storage.key(i);\n\n \t\t\t\tif (key.indexOf(\"qunit-test-\") === 0) {\n \t\t\t\t\tstorage.removeItem(key);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t});\n }\n\n var ProcessingQueue = {\n \tfinished: false,\n \tadd: addToTestQueue,\n \tadvance: advance,\n \ttaskCount: taskQueueLength\n };\n\n var TestReport = function () {\n \tfunction TestReport(name, suite, options) {\n \t\tclassCallCheck(this, TestReport);\n\n \t\tthis.name = name;\n \t\tthis.suiteName = suite.name;\n \t\tthis.fullName = suite.fullName.concat(name);\n \t\tthis.runtime = 0;\n \t\tthis.assertions = [];\n\n \t\tthis.skipped = !!options.skip;\n \t\tthis.todo = !!options.todo;\n\n \t\tthis.valid = options.valid;\n\n \t\tthis._startTime = 0;\n \t\tthis._endTime = 0;\n\n \t\tsuite.pushTest(this);\n \t}\n\n \tcreateClass(TestReport, [{\n \t\tkey: \"start\",\n \t\tvalue: function start(recordTime) {\n \t\t\tif (recordTime) {\n \t\t\t\tthis._startTime = performanceNow();\n \t\t\t\tif (performance) {\n \t\t\t\t\tperformance.mark(\"qunit_test_start\");\n \t\t\t\t}\n \t\t\t}\n\n \t\t\treturn {\n \t\t\t\tname: this.name,\n \t\t\t\tsuiteName: this.suiteName,\n \t\t\t\tfullName: this.fullName.slice()\n \t\t\t};\n \t\t}\n \t}, {\n \t\tkey: \"end\",\n \t\tvalue: function end(recordTime) {\n \t\t\tif (recordTime) {\n \t\t\t\tthis._endTime = performanceNow();\n \t\t\t\tif (performance) {\n \t\t\t\t\tperformance.mark(\"qunit_test_end\");\n\n \t\t\t\t\tvar testName = this.fullName.join(\" – \");\n\n \t\t\t\t\tmeasure(\"QUnit Test: \" + testName, \"qunit_test_start\", \"qunit_test_end\");\n \t\t\t\t}\n \t\t\t}\n\n \t\t\treturn extend(this.start(), {\n \t\t\t\truntime: this.getRuntime(),\n \t\t\t\tstatus: this.getStatus(),\n \t\t\t\terrors: this.getFailedAssertions(),\n \t\t\t\tassertions: this.getAssertions()\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"pushAssertion\",\n \t\tvalue: function pushAssertion(assertion) {\n \t\t\tthis.assertions.push(assertion);\n \t\t}\n \t}, {\n \t\tkey: \"getRuntime\",\n \t\tvalue: function getRuntime() {\n \t\t\treturn this._endTime - this._startTime;\n \t\t}\n \t}, {\n \t\tkey: \"getStatus\",\n \t\tvalue: function getStatus() {\n \t\t\tif (this.skipped) {\n \t\t\t\treturn \"skipped\";\n \t\t\t}\n\n \t\t\tvar testPassed = this.getFailedAssertions().length > 0 ? this.todo : !this.todo;\n\n \t\t\tif (!testPassed) {\n \t\t\t\treturn \"failed\";\n \t\t\t} else if (this.todo) {\n \t\t\t\treturn \"todo\";\n \t\t\t} else {\n \t\t\t\treturn \"passed\";\n \t\t\t}\n \t\t}\n \t}, {\n \t\tkey: \"getFailedAssertions\",\n \t\tvalue: function getFailedAssertions() {\n \t\t\treturn this.assertions.filter(function (assertion) {\n \t\t\t\treturn !assertion.passed;\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"getAssertions\",\n \t\tvalue: function getAssertions() {\n \t\t\treturn this.assertions.slice();\n \t\t}\n\n \t\t// Remove actual and expected values from assertions. This is to prevent\n \t\t// leaking memory throughout a test suite.\n\n \t}, {\n \t\tkey: \"slimAssertions\",\n \t\tvalue: function slimAssertions() {\n \t\t\tthis.assertions = this.assertions.map(function (assertion) {\n \t\t\t\tdelete assertion.actual;\n \t\t\t\tdelete assertion.expected;\n \t\t\t\treturn assertion;\n \t\t\t});\n \t\t}\n \t}]);\n \treturn TestReport;\n }();\n\n var focused$1 = false;\n\n function Test(settings) {\n \tvar i, l;\n\n \t++Test.count;\n\n \tthis.expected = null;\n \tthis.assertions = [];\n \tthis.semaphore = 0;\n \tthis.module = config.currentModule;\n \tthis.steps = [];\n \tthis.timeout = undefined;\n \tthis.errorForStack = new Error();\n\n \t// If a module is skipped, all its tests and the tests of the child suites\n \t// should be treated as skipped even if they are defined as `only` or `todo`.\n \t// As for `todo` module, all its tests will be treated as `todo` except for\n \t// tests defined as `skip` which will be left intact.\n \t//\n \t// So, if a test is defined as `todo` and is inside a skipped module, we should\n \t// then treat that test as if was defined as `skip`.\n \tif (this.module.skip) {\n \t\tsettings.skip = true;\n \t\tsettings.todo = false;\n\n \t\t// Skipped tests should be left intact\n \t} else if (this.module.todo && !settings.skip) {\n \t\tsettings.todo = true;\n \t}\n\n \textend(this, settings);\n\n \tthis.testReport = new TestReport(settings.testName, this.module.suiteReport, {\n \t\ttodo: settings.todo,\n \t\tskip: settings.skip,\n \t\tvalid: this.valid()\n \t});\n\n \t// Register unique strings\n \tfor (i = 0, l = this.module.tests; i < l.length; i++) {\n \t\tif (this.module.tests[i].name === this.testName) {\n \t\t\tthis.testName += \" \";\n \t\t}\n \t}\n\n \tthis.testId = generateHash(this.module.name, this.testName);\n\n \tthis.module.tests.push({\n \t\tname: this.testName,\n \t\ttestId: this.testId,\n \t\tskip: !!settings.skip\n \t});\n\n \tif (settings.skip) {\n\n \t\t// Skipped tests will fully ignore any sent callback\n \t\tthis.callback = function () {};\n \t\tthis.async = false;\n \t\tthis.expected = 0;\n \t} else {\n \t\tif (typeof this.callback !== \"function\") {\n \t\t\tvar method = this.todo ? \"todo\" : \"test\";\n\n \t\t\t// eslint-disable-next-line max-len\n \t\t\tthrow new TypeError(\"You must provide a function as a test callback to QUnit.\" + method + \"(\\\"\" + settings.testName + \"\\\")\");\n \t\t}\n\n \t\tthis.assert = new Assert(this);\n \t}\n }\n\n Test.count = 0;\n\n function getNotStartedModules(startModule) {\n \tvar module = startModule,\n \t modules = [];\n\n \twhile (module && module.testsRun === 0) {\n \t\tmodules.push(module);\n \t\tmodule = module.parentModule;\n \t}\n\n \t// The above push modules from the child to the parent\n \t// return a reversed order with the top being the top most parent module\n \treturn modules.reverse();\n }\n\n Test.prototype = {\n\n \t// generating a stack trace can be expensive, so using a getter defers this until we need it\n \tget stack() {\n \t\treturn extractStacktrace(this.errorForStack, 2);\n \t},\n\n \tbefore: function before() {\n \t\tvar _this = this;\n\n \t\tvar module = this.module,\n \t\t notStartedModules = getNotStartedModules(module);\n\n \t\t// ensure the callbacks are executed serially for each module\n \t\tvar callbackPromises = notStartedModules.reduce(function (promiseChain, startModule) {\n \t\t\treturn promiseChain.then(function () {\n \t\t\t\tstartModule.stats = { all: 0, bad: 0, started: now() };\n \t\t\t\temit(\"suiteStart\", startModule.suiteReport.start(true));\n \t\t\t\treturn runLoggingCallbacks(\"moduleStart\", {\n \t\t\t\t\tname: startModule.name,\n \t\t\t\t\ttests: startModule.tests\n \t\t\t\t});\n \t\t\t});\n \t\t}, Promise$1.resolve([]));\n\n \t\treturn callbackPromises.then(function () {\n \t\t\tconfig.current = _this;\n\n \t\t\t_this.testEnvironment = extend({}, module.testEnvironment);\n\n \t\t\t_this.started = now();\n \t\t\temit(\"testStart\", _this.testReport.start(true));\n \t\t\treturn runLoggingCallbacks(\"testStart\", {\n \t\t\t\tname: _this.testName,\n \t\t\t\tmodule: module.name,\n \t\t\t\ttestId: _this.testId,\n \t\t\t\tpreviousFailure: _this.previousFailure\n \t\t\t}).then(function () {\n \t\t\t\tif (!config.pollution) {\n \t\t\t\t\tsaveGlobal();\n \t\t\t\t}\n \t\t\t});\n \t\t});\n \t},\n\n \trun: function run() {\n \t\tvar promise;\n\n \t\tconfig.current = this;\n\n \t\tthis.callbackStarted = now();\n\n \t\tif (config.notrycatch) {\n \t\t\trunTest(this);\n \t\t\treturn;\n \t\t}\n\n \t\ttry {\n \t\t\trunTest(this);\n \t\t} catch (e) {\n \t\t\tthis.pushFailure(\"Died on test #\" + (this.assertions.length + 1) + \" \" + this.stack + \": \" + (e.message || e), extractStacktrace(e, 0));\n\n \t\t\t// Else next test will carry the responsibility\n \t\t\tsaveGlobal();\n\n \t\t\t// Restart the tests if they're blocking\n \t\t\tif (config.blocking) {\n \t\t\t\tinternalRecover(this);\n \t\t\t}\n \t\t}\n\n \t\tfunction runTest(test) {\n \t\t\tpromise = test.callback.call(test.testEnvironment, test.assert);\n \t\t\ttest.resolvePromise(promise);\n\n \t\t\t// If the test has a \"lock\" on it, but the timeout is 0, then we push a\n \t\t\t// failure as the test should be synchronous.\n \t\t\tif (test.timeout === 0 && test.semaphore !== 0) {\n \t\t\t\tpushFailure(\"Test did not finish synchronously even though assert.timeout( 0 ) was used.\", sourceFromStacktrace(2));\n \t\t\t}\n \t\t}\n \t},\n\n \tafter: function after() {\n \t\tcheckPollution();\n \t},\n\n \tqueueHook: function queueHook(hook, hookName, hookOwner) {\n \t\tvar _this2 = this;\n\n \t\tvar callHook = function callHook() {\n \t\t\tvar promise = hook.call(_this2.testEnvironment, _this2.assert);\n \t\t\t_this2.resolvePromise(promise, hookName);\n \t\t};\n\n \t\tvar runHook = function runHook() {\n \t\t\tif (hookName === \"before\") {\n \t\t\t\tif (hookOwner.unskippedTestsRun !== 0) {\n \t\t\t\t\treturn;\n \t\t\t\t}\n\n \t\t\t\t_this2.preserveEnvironment = true;\n \t\t\t}\n\n \t\t\t// The 'after' hook should only execute when there are not tests left and\n \t\t\t// when the 'after' and 'finish' tasks are the only tasks left to process\n \t\t\tif (hookName === \"after\" && hookOwner.unskippedTestsRun !== numberOfUnskippedTests(hookOwner) - 1 && (config.queue.length > 0 || ProcessingQueue.taskCount() > 2)) {\n \t\t\t\treturn;\n \t\t\t}\n\n \t\t\tconfig.current = _this2;\n \t\t\tif (config.notrycatch) {\n \t\t\t\tcallHook();\n \t\t\t\treturn;\n \t\t\t}\n \t\t\ttry {\n \t\t\t\tcallHook();\n \t\t\t} catch (error) {\n \t\t\t\t_this2.pushFailure(hookName + \" failed on \" + _this2.testName + \": \" + (error.message || error), extractStacktrace(error, 0));\n \t\t\t}\n \t\t};\n\n \t\treturn runHook;\n \t},\n\n\n \t// Currently only used for module level hooks, can be used to add global level ones\n \thooks: function hooks(handler) {\n \t\tvar hooks = [];\n\n \t\tfunction processHooks(test, module) {\n \t\t\tif (module.parentModule) {\n \t\t\t\tprocessHooks(test, module.parentModule);\n \t\t\t}\n\n \t\t\tif (module.hooks[handler].length) {\n \t\t\t\tfor (var i = 0; i < module.hooks[handler].length; i++) {\n \t\t\t\t\thooks.push(test.queueHook(module.hooks[handler][i], handler, module));\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\t// Hooks are ignored on skipped tests\n \t\tif (!this.skip) {\n \t\t\tprocessHooks(this, this.module);\n \t\t}\n\n \t\treturn hooks;\n \t},\n\n\n \tfinish: function finish() {\n \t\tconfig.current = this;\n\n \t\t// Release the test callback to ensure that anything referenced has been\n \t\t// released to be garbage collected.\n \t\tthis.callback = undefined;\n\n \t\tif (this.steps.length) {\n \t\t\tvar stepsList = this.steps.join(\", \");\n \t\t\tthis.pushFailure(\"Expected assert.verifySteps() to be called before end of test \" + (\"after using assert.step(). Unverified steps: \" + stepsList), this.stack);\n \t\t}\n\n \t\tif (config.requireExpects && this.expected === null) {\n \t\t\tthis.pushFailure(\"Expected number of assertions to be defined, but expect() was \" + \"not called.\", this.stack);\n \t\t} else if (this.expected !== null && this.expected !== this.assertions.length) {\n \t\t\tthis.pushFailure(\"Expected \" + this.expected + \" assertions, but \" + this.assertions.length + \" were run\", this.stack);\n \t\t} else if (this.expected === null && !this.assertions.length) {\n \t\t\tthis.pushFailure(\"Expected at least one assertion, but none were run - call \" + \"expect(0) to accept zero assertions.\", this.stack);\n \t\t}\n\n \t\tvar i,\n \t\t module = this.module,\n \t\t moduleName = module.name,\n \t\t testName = this.testName,\n \t\t skipped = !!this.skip,\n \t\t todo = !!this.todo,\n \t\t bad = 0,\n \t\t storage = config.storage;\n\n \t\tthis.runtime = now() - this.started;\n\n \t\tconfig.stats.all += this.assertions.length;\n \t\tmodule.stats.all += this.assertions.length;\n\n \t\tfor (i = 0; i < this.assertions.length; i++) {\n \t\t\tif (!this.assertions[i].result) {\n \t\t\t\tbad++;\n \t\t\t\tconfig.stats.bad++;\n \t\t\t\tmodule.stats.bad++;\n \t\t\t}\n \t\t}\n\n \t\tnotifyTestsRan(module, skipped);\n\n \t\t// Store result when possible\n \t\tif (storage) {\n \t\t\tif (bad) {\n \t\t\t\tstorage.setItem(\"qunit-test-\" + moduleName + \"-\" + testName, bad);\n \t\t\t} else {\n \t\t\t\tstorage.removeItem(\"qunit-test-\" + moduleName + \"-\" + testName);\n \t\t\t}\n \t\t}\n\n \t\t// After emitting the js-reporters event we cleanup the assertion data to\n \t\t// avoid leaking it. It is not used by the legacy testDone callbacks.\n \t\temit(\"testEnd\", this.testReport.end(true));\n \t\tthis.testReport.slimAssertions();\n \t\tvar test = this;\n\n \t\treturn runLoggingCallbacks(\"testDone\", {\n \t\t\tname: testName,\n \t\t\tmodule: moduleName,\n \t\t\tskipped: skipped,\n \t\t\ttodo: todo,\n \t\t\tfailed: bad,\n \t\t\tpassed: this.assertions.length - bad,\n \t\t\ttotal: this.assertions.length,\n \t\t\truntime: skipped ? 0 : this.runtime,\n\n \t\t\t// HTML Reporter use\n \t\t\tassertions: this.assertions,\n \t\t\ttestId: this.testId,\n\n \t\t\t// Source of Test\n \t\t\t// generating stack trace is expensive, so using a getter will help defer this until we need it\n \t\t\tget source() {\n \t\t\t\treturn test.stack;\n \t\t\t}\n \t\t}).then(function () {\n \t\t\tif (module.testsRun === numberOfTests(module)) {\n \t\t\t\tvar completedModules = [module];\n\n \t\t\t\t// Check if the parent modules, iteratively, are done. If that the case,\n \t\t\t\t// we emit the `suiteEnd` event and trigger `moduleDone` callback.\n \t\t\t\tvar parent = module.parentModule;\n \t\t\t\twhile (parent && parent.testsRun === numberOfTests(parent)) {\n \t\t\t\t\tcompletedModules.push(parent);\n \t\t\t\t\tparent = parent.parentModule;\n \t\t\t\t}\n\n \t\t\t\treturn completedModules.reduce(function (promiseChain, completedModule) {\n \t\t\t\t\treturn promiseChain.then(function () {\n \t\t\t\t\t\treturn logSuiteEnd(completedModule);\n \t\t\t\t\t});\n \t\t\t\t}, Promise$1.resolve([]));\n \t\t\t}\n \t\t}).then(function () {\n \t\t\tconfig.current = undefined;\n \t\t});\n\n \t\tfunction logSuiteEnd(module) {\n\n \t\t\t// Reset `module.hooks` to ensure that anything referenced in these hooks\n \t\t\t// has been released to be garbage collected.\n \t\t\tmodule.hooks = {};\n\n \t\t\temit(\"suiteEnd\", module.suiteReport.end(true));\n \t\t\treturn runLoggingCallbacks(\"moduleDone\", {\n \t\t\t\tname: module.name,\n \t\t\t\ttests: module.tests,\n \t\t\t\tfailed: module.stats.bad,\n \t\t\t\tpassed: module.stats.all - module.stats.bad,\n \t\t\t\ttotal: module.stats.all,\n \t\t\t\truntime: now() - module.stats.started\n \t\t\t});\n \t\t}\n \t},\n\n \tpreserveTestEnvironment: function preserveTestEnvironment() {\n \t\tif (this.preserveEnvironment) {\n \t\t\tthis.module.testEnvironment = this.testEnvironment;\n \t\t\tthis.testEnvironment = extend({}, this.module.testEnvironment);\n \t\t}\n \t},\n\n \tqueue: function queue() {\n \t\tvar test = this;\n\n \t\tif (!this.valid()) {\n \t\t\treturn;\n \t\t}\n\n \t\tfunction runTest() {\n \t\t\treturn [function () {\n \t\t\t\treturn test.before();\n \t\t\t}].concat(toConsumableArray(test.hooks(\"before\")), [function () {\n \t\t\t\ttest.preserveTestEnvironment();\n \t\t\t}], toConsumableArray(test.hooks(\"beforeEach\")), [function () {\n \t\t\t\ttest.run();\n \t\t\t}], toConsumableArray(test.hooks(\"afterEach\").reverse()), toConsumableArray(test.hooks(\"after\").reverse()), [function () {\n \t\t\t\ttest.after();\n \t\t\t}, function () {\n \t\t\t\treturn test.finish();\n \t\t\t}]);\n \t\t}\n\n \t\tvar previousFailCount = config.storage && +config.storage.getItem(\"qunit-test-\" + this.module.name + \"-\" + this.testName);\n\n \t\t// Prioritize previously failed tests, detected from storage\n \t\tvar prioritize = config.reorder && !!previousFailCount;\n\n \t\tthis.previousFailure = !!previousFailCount;\n\n \t\tProcessingQueue.add(runTest, prioritize, config.seed);\n\n \t\t// If the queue has already finished, we manually process the new test\n \t\tif (ProcessingQueue.finished) {\n \t\t\tProcessingQueue.advance();\n \t\t}\n \t},\n\n\n \tpushResult: function pushResult(resultInfo) {\n \t\tif (this !== config.current) {\n \t\t\tthrow new Error(\"Assertion occurred after test had finished.\");\n \t\t}\n\n \t\t// Destructure of resultInfo = { result, actual, expected, message, negative }\n \t\tvar source,\n \t\t details = {\n \t\t\tmodule: this.module.name,\n \t\t\tname: this.testName,\n \t\t\tresult: resultInfo.result,\n \t\t\tmessage: resultInfo.message,\n \t\t\tactual: resultInfo.actual,\n \t\t\ttestId: this.testId,\n \t\t\tnegative: resultInfo.negative || false,\n \t\t\truntime: now() - this.started,\n \t\t\ttodo: !!this.todo\n \t\t};\n\n \t\tif (hasOwn.call(resultInfo, \"expected\")) {\n \t\t\tdetails.expected = resultInfo.expected;\n \t\t}\n\n \t\tif (!resultInfo.result) {\n \t\t\tsource = resultInfo.source || sourceFromStacktrace();\n\n \t\t\tif (source) {\n \t\t\t\tdetails.source = source;\n \t\t\t}\n \t\t}\n\n \t\tthis.logAssertion(details);\n\n \t\tthis.assertions.push({\n \t\t\tresult: !!resultInfo.result,\n \t\t\tmessage: resultInfo.message\n \t\t});\n \t},\n\n \tpushFailure: function pushFailure(message, source, actual) {\n \t\tif (!(this instanceof Test)) {\n \t\t\tthrow new Error(\"pushFailure() assertion outside test context, was \" + sourceFromStacktrace(2));\n \t\t}\n\n \t\tthis.pushResult({\n \t\t\tresult: false,\n \t\t\tmessage: message || \"error\",\n \t\t\tactual: actual || null,\n \t\t\tsource: source\n \t\t});\n \t},\n\n \t/**\n * Log assertion details using both the old QUnit.log interface and\n * QUnit.on( \"assertion\" ) interface.\n *\n * @private\n */\n \tlogAssertion: function logAssertion(details) {\n \t\trunLoggingCallbacks(\"log\", details);\n\n \t\tvar assertion = {\n \t\t\tpassed: details.result,\n \t\t\tactual: details.actual,\n \t\t\texpected: details.expected,\n \t\t\tmessage: details.message,\n \t\t\tstack: details.source,\n \t\t\ttodo: details.todo\n \t\t};\n \t\tthis.testReport.pushAssertion(assertion);\n \t\temit(\"assertion\", assertion);\n \t},\n\n\n \tresolvePromise: function resolvePromise(promise, phase) {\n \t\tvar then,\n \t\t resume,\n \t\t message,\n \t\t test = this;\n \t\tif (promise != null) {\n \t\t\tthen = promise.then;\n \t\t\tif (objectType(then) === \"function\") {\n \t\t\t\tresume = internalStop(test);\n \t\t\t\tif (config.notrycatch) {\n \t\t\t\t\tthen.call(promise, function () {\n \t\t\t\t\t\tresume();\n \t\t\t\t\t});\n \t\t\t\t} else {\n \t\t\t\t\tthen.call(promise, function () {\n \t\t\t\t\t\tresume();\n \t\t\t\t\t}, function (error) {\n \t\t\t\t\t\tmessage = \"Promise rejected \" + (!phase ? \"during\" : phase.replace(/Each$/, \"\")) + \" \\\"\" + test.testName + \"\\\": \" + (error && error.message || error);\n \t\t\t\t\t\ttest.pushFailure(message, extractStacktrace(error, 0));\n\n \t\t\t\t\t\t// Else next test will carry the responsibility\n \t\t\t\t\t\tsaveGlobal();\n\n \t\t\t\t\t\t// Unblock\n \t\t\t\t\t\tinternalRecover(test);\n \t\t\t\t\t});\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t},\n\n \tvalid: function valid() {\n \t\tvar filter = config.filter,\n \t\t regexFilter = /^(!?)\\/([\\w\\W]*)\\/(i?$)/.exec(filter),\n \t\t module = config.module && config.module.toLowerCase(),\n \t\t fullName = this.module.name + \": \" + this.testName;\n\n \t\tfunction moduleChainNameMatch(testModule) {\n \t\t\tvar testModuleName = testModule.name ? testModule.name.toLowerCase() : null;\n \t\t\tif (testModuleName === module) {\n \t\t\t\treturn true;\n \t\t\t} else if (testModule.parentModule) {\n \t\t\t\treturn moduleChainNameMatch(testModule.parentModule);\n \t\t\t} else {\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n\n \t\tfunction moduleChainIdMatch(testModule) {\n \t\t\treturn inArray(testModule.moduleId, config.moduleId) || testModule.parentModule && moduleChainIdMatch(testModule.parentModule);\n \t\t}\n\n \t\t// Internally-generated tests are always valid\n \t\tif (this.callback && this.callback.validTest) {\n \t\t\treturn true;\n \t\t}\n\n \t\tif (config.moduleId && config.moduleId.length > 0 && !moduleChainIdMatch(this.module)) {\n\n \t\t\treturn false;\n \t\t}\n\n \t\tif (config.testId && config.testId.length > 0 && !inArray(this.testId, config.testId)) {\n\n \t\t\treturn false;\n \t\t}\n\n \t\tif (module && !moduleChainNameMatch(this.module)) {\n \t\t\treturn false;\n \t\t}\n\n \t\tif (!filter) {\n \t\t\treturn true;\n \t\t}\n\n \t\treturn regexFilter ? this.regexFilter(!!regexFilter[1], regexFilter[2], regexFilter[3], fullName) : this.stringFilter(filter, fullName);\n \t},\n\n \tregexFilter: function regexFilter(exclude, pattern, flags, fullName) {\n \t\tvar regex = new RegExp(pattern, flags);\n \t\tvar match = regex.test(fullName);\n\n \t\treturn match !== exclude;\n \t},\n\n \tstringFilter: function stringFilter(filter, fullName) {\n \t\tfilter = filter.toLowerCase();\n \t\tfullName = fullName.toLowerCase();\n\n \t\tvar include = filter.charAt(0) !== \"!\";\n \t\tif (!include) {\n \t\t\tfilter = filter.slice(1);\n \t\t}\n\n \t\t// If the filter matches, we need to honour include\n \t\tif (fullName.indexOf(filter) !== -1) {\n \t\t\treturn include;\n \t\t}\n\n \t\t// Otherwise, do the opposite\n \t\treturn !include;\n \t}\n };\n\n function pushFailure() {\n \tif (!config.current) {\n \t\tthrow new Error(\"pushFailure() assertion outside test context, in \" + sourceFromStacktrace(2));\n \t}\n\n \t// Gets current test obj\n \tvar currentTest = config.current;\n\n \treturn currentTest.pushFailure.apply(currentTest, arguments);\n }\n\n function saveGlobal() {\n \tconfig.pollution = [];\n\n \tif (config.noglobals) {\n \t\tfor (var key in global$1) {\n \t\t\tif (hasOwn.call(global$1, key)) {\n\n \t\t\t\t// In Opera sometimes DOM element ids show up here, ignore them\n \t\t\t\tif (/^qunit-test-output/.test(key)) {\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tconfig.pollution.push(key);\n \t\t\t}\n \t\t}\n \t}\n }\n\n function checkPollution() {\n \tvar newGlobals,\n \t deletedGlobals,\n \t old = config.pollution;\n\n \tsaveGlobal();\n\n \tnewGlobals = diff(config.pollution, old);\n \tif (newGlobals.length > 0) {\n \t\tpushFailure(\"Introduced global variable(s): \" + newGlobals.join(\", \"));\n \t}\n\n \tdeletedGlobals = diff(old, config.pollution);\n \tif (deletedGlobals.length > 0) {\n \t\tpushFailure(\"Deleted global variable(s): \" + deletedGlobals.join(\", \"));\n \t}\n }\n\n // Will be exposed as QUnit.test\n function test(testName, callback) {\n \tif (focused$1) {\n \t\treturn;\n \t}\n\n \tvar newTest = new Test({\n \t\ttestName: testName,\n \t\tcallback: callback\n \t});\n\n \tnewTest.queue();\n }\n\n function todo(testName, callback) {\n \tif (focused$1) {\n \t\treturn;\n \t}\n\n \tvar newTest = new Test({\n \t\ttestName: testName,\n \t\tcallback: callback,\n \t\ttodo: true\n \t});\n\n \tnewTest.queue();\n }\n\n // Will be exposed as QUnit.skip\n function skip(testName) {\n \tif (focused$1) {\n \t\treturn;\n \t}\n\n \tvar test = new Test({\n \t\ttestName: testName,\n \t\tskip: true\n \t});\n\n \ttest.queue();\n }\n\n // Will be exposed as QUnit.only\n function only(testName, callback) {\n \tif (!focused$1) {\n \t\tconfig.queue.length = 0;\n \t\tfocused$1 = true;\n \t}\n\n \tvar newTest = new Test({\n \t\ttestName: testName,\n \t\tcallback: callback\n \t});\n\n \tnewTest.queue();\n }\n\n // Resets config.timeout with a new timeout duration.\n function resetTestTimeout(timeoutDuration) {\n \tclearTimeout(config.timeout);\n \tconfig.timeout = setTimeout$1(config.timeoutHandler(timeoutDuration), timeoutDuration);\n }\n\n // Put a hold on processing and return a function that will release it.\n function internalStop(test) {\n \tvar released = false;\n \ttest.semaphore += 1;\n \tconfig.blocking = true;\n\n \t// Set a recovery timeout, if so configured.\n \tif (defined.setTimeout) {\n \t\tvar timeoutDuration = void 0;\n\n \t\tif (typeof test.timeout === \"number\") {\n \t\t\ttimeoutDuration = test.timeout;\n \t\t} else if (typeof config.testTimeout === \"number\") {\n \t\t\ttimeoutDuration = config.testTimeout;\n \t\t}\n\n \t\tif (typeof timeoutDuration === \"number\" && timeoutDuration > 0) {\n \t\t\tclearTimeout(config.timeout);\n \t\t\tconfig.timeoutHandler = function (timeout) {\n \t\t\t\treturn function () {\n \t\t\t\t\tpushFailure(\"Test took longer than \" + timeout + \"ms; test timed out.\", sourceFromStacktrace(2));\n \t\t\t\t\treleased = true;\n \t\t\t\t\tinternalRecover(test);\n \t\t\t\t};\n \t\t\t};\n \t\t\tconfig.timeout = setTimeout$1(config.timeoutHandler(timeoutDuration), timeoutDuration);\n \t\t}\n \t}\n\n \treturn function resume() {\n \t\tif (released) {\n \t\t\treturn;\n \t\t}\n\n \t\treleased = true;\n \t\ttest.semaphore -= 1;\n \t\tinternalStart(test);\n \t};\n }\n\n // Forcefully release all processing holds.\n function internalRecover(test) {\n \ttest.semaphore = 0;\n \tinternalStart(test);\n }\n\n // Release a processing hold, scheduling a resumption attempt if no holds remain.\n function internalStart(test) {\n\n \t// If semaphore is non-numeric, throw error\n \tif (isNaN(test.semaphore)) {\n \t\ttest.semaphore = 0;\n\n \t\tpushFailure(\"Invalid value on test.semaphore\", sourceFromStacktrace(2));\n \t\treturn;\n \t}\n\n \t// Don't start until equal number of stop-calls\n \tif (test.semaphore > 0) {\n \t\treturn;\n \t}\n\n \t// Throw an Error if start is called more often than stop\n \tif (test.semaphore < 0) {\n \t\ttest.semaphore = 0;\n\n \t\tpushFailure(\"Tried to restart test while already started (test's semaphore was 0 already)\", sourceFromStacktrace(2));\n \t\treturn;\n \t}\n\n \t// Add a slight delay to allow more assertions etc.\n \tif (defined.setTimeout) {\n \t\tif (config.timeout) {\n \t\t\tclearTimeout(config.timeout);\n \t\t}\n \t\tconfig.timeout = setTimeout$1(function () {\n \t\t\tif (test.semaphore > 0) {\n \t\t\t\treturn;\n \t\t\t}\n\n \t\t\tif (config.timeout) {\n \t\t\t\tclearTimeout(config.timeout);\n \t\t\t}\n\n \t\t\tbegin();\n \t\t});\n \t} else {\n \t\tbegin();\n \t}\n }\n\n function collectTests(module) {\n \tvar tests = [].concat(module.tests);\n \tvar modules = [].concat(toConsumableArray(module.childModules));\n\n \t// Do a breadth-first traversal of the child modules\n \twhile (modules.length) {\n \t\tvar nextModule = modules.shift();\n \t\ttests.push.apply(tests, nextModule.tests);\n \t\tmodules.push.apply(modules, toConsumableArray(nextModule.childModules));\n \t}\n\n \treturn tests;\n }\n\n function numberOfTests(module) {\n \treturn collectTests(module).length;\n }\n\n function numberOfUnskippedTests(module) {\n \treturn collectTests(module).filter(function (test) {\n \t\treturn !test.skip;\n \t}).length;\n }\n\n function notifyTestsRan(module, skipped) {\n \tmodule.testsRun++;\n \tif (!skipped) {\n \t\tmodule.unskippedTestsRun++;\n \t}\n \twhile (module = module.parentModule) {\n \t\tmodule.testsRun++;\n \t\tif (!skipped) {\n \t\t\tmodule.unskippedTestsRun++;\n \t\t}\n \t}\n }\n\n var Assert = function () {\n \tfunction Assert(testContext) {\n \t\tclassCallCheck(this, Assert);\n\n \t\tthis.test = testContext;\n \t}\n\n \t// Assert helpers\n\n \tcreateClass(Assert, [{\n \t\tkey: \"timeout\",\n \t\tvalue: function timeout(duration) {\n \t\t\tif (typeof duration !== \"number\") {\n \t\t\t\tthrow new Error(\"You must pass a number as the duration to assert.timeout\");\n \t\t\t}\n\n \t\t\tthis.test.timeout = duration;\n\n \t\t\t// If a timeout has been set, clear it and reset with the new duration\n \t\t\tif (config.timeout) {\n \t\t\t\tclearTimeout(config.timeout);\n\n \t\t\t\tif (config.timeoutHandler && this.test.timeout > 0) {\n \t\t\t\t\tresetTestTimeout(this.test.timeout);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\t// Documents a \"step\", which is a string value, in a test as a passing assertion\n\n \t}, {\n \t\tkey: \"step\",\n \t\tvalue: function step(message) {\n \t\t\tvar assertionMessage = message;\n \t\t\tvar result = !!message;\n\n \t\t\tthis.test.steps.push(message);\n\n \t\t\tif (objectType(message) === \"undefined\" || message === \"\") {\n \t\t\t\tassertionMessage = \"You must provide a message to assert.step\";\n \t\t\t} else if (objectType(message) !== \"string\") {\n \t\t\t\tassertionMessage = \"You must provide a string value to assert.step\";\n \t\t\t\tresult = false;\n \t\t\t}\n\n \t\t\tthis.pushResult({\n \t\t\t\tresult: result,\n \t\t\t\tmessage: assertionMessage\n \t\t\t});\n \t\t}\n\n \t\t// Verifies the steps in a test match a given array of string values\n\n \t}, {\n \t\tkey: \"verifySteps\",\n \t\tvalue: function verifySteps(steps, message) {\n\n \t\t\t// Since the steps array is just string values, we can clone with slice\n \t\t\tvar actualStepsClone = this.test.steps.slice();\n \t\t\tthis.deepEqual(actualStepsClone, steps, message);\n \t\t\tthis.test.steps.length = 0;\n \t\t}\n\n \t\t// Specify the number of expected assertions to guarantee that failed test\n \t\t// (no assertions are run at all) don't slip through.\n\n \t}, {\n \t\tkey: \"expect\",\n \t\tvalue: function expect(asserts) {\n \t\t\tif (arguments.length === 1) {\n \t\t\t\tthis.test.expected = asserts;\n \t\t\t} else {\n \t\t\t\treturn this.test.expected;\n \t\t\t}\n \t\t}\n\n \t\t// Put a hold on processing and return a function that will release it a maximum of once.\n\n \t}, {\n \t\tkey: \"async\",\n \t\tvalue: function async(count) {\n \t\t\tvar test$$1 = this.test;\n\n \t\t\tvar popped = false,\n \t\t\t acceptCallCount = count;\n\n \t\t\tif (typeof acceptCallCount === \"undefined\") {\n \t\t\t\tacceptCallCount = 1;\n \t\t\t}\n\n \t\t\tvar resume = internalStop(test$$1);\n\n \t\t\treturn function done() {\n \t\t\t\tif (config.current !== test$$1) {\n \t\t\t\t\tthrow Error(\"assert.async callback called after test finished.\");\n \t\t\t\t}\n\n \t\t\t\tif (popped) {\n \t\t\t\t\ttest$$1.pushFailure(\"Too many calls to the `assert.async` callback\", sourceFromStacktrace(2));\n \t\t\t\t\treturn;\n \t\t\t\t}\n\n \t\t\t\tacceptCallCount -= 1;\n \t\t\t\tif (acceptCallCount > 0) {\n \t\t\t\t\treturn;\n \t\t\t\t}\n\n \t\t\t\tpopped = true;\n \t\t\t\tresume();\n \t\t\t};\n \t\t}\n\n \t\t// Exports test.push() to the user API\n \t\t// Alias of pushResult.\n\n \t}, {\n \t\tkey: \"push\",\n \t\tvalue: function push(result, actual, expected, message, negative) {\n \t\t\tLogger.warn(\"assert.push is deprecated and will be removed in QUnit 3.0.\" + \" Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult).\");\n\n \t\t\tvar currentAssert = this instanceof Assert ? this : config.current.assert;\n \t\t\treturn currentAssert.pushResult({\n \t\t\t\tresult: result,\n \t\t\t\tactual: actual,\n \t\t\t\texpected: expected,\n \t\t\t\tmessage: message,\n \t\t\t\tnegative: negative\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"pushResult\",\n \t\tvalue: function pushResult(resultInfo) {\n\n \t\t\t// Destructure of resultInfo = { result, actual, expected, message, negative }\n \t\t\tvar assert = this;\n \t\t\tvar currentTest = assert instanceof Assert && assert.test || config.current;\n\n \t\t\t// Backwards compatibility fix.\n \t\t\t// Allows the direct use of global exported assertions and QUnit.assert.*\n \t\t\t// Although, it's use is not recommended as it can leak assertions\n \t\t\t// to other tests from async tests, because we only get a reference to the current test,\n \t\t\t// not exactly the test where assertion were intended to be called.\n \t\t\tif (!currentTest) {\n \t\t\t\tthrow new Error(\"assertion outside test context, in \" + sourceFromStacktrace(2));\n \t\t\t}\n\n \t\t\tif (!(assert instanceof Assert)) {\n \t\t\t\tassert = currentTest.assert;\n \t\t\t}\n\n \t\t\treturn assert.test.pushResult(resultInfo);\n \t\t}\n \t}, {\n \t\tkey: \"ok\",\n \t\tvalue: function ok(result, message) {\n \t\t\tif (!message) {\n \t\t\t\tmessage = result ? \"okay\" : \"failed, expected argument to be truthy, was: \" + dump.parse(result);\n \t\t\t}\n\n \t\t\tthis.pushResult({\n \t\t\t\tresult: !!result,\n \t\t\t\tactual: result,\n \t\t\t\texpected: true,\n \t\t\t\tmessage: message\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"notOk\",\n \t\tvalue: function notOk(result, message) {\n \t\t\tif (!message) {\n \t\t\t\tmessage = !result ? \"okay\" : \"failed, expected argument to be falsy, was: \" + dump.parse(result);\n \t\t\t}\n\n \t\t\tthis.pushResult({\n \t\t\t\tresult: !result,\n \t\t\t\tactual: result,\n \t\t\t\texpected: false,\n \t\t\t\tmessage: message\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"equal\",\n \t\tvalue: function equal(actual, expected, message) {\n\n \t\t\t// eslint-disable-next-line eqeqeq\n \t\t\tvar result = expected == actual;\n\n \t\t\tthis.pushResult({\n \t\t\t\tresult: result,\n \t\t\t\tactual: actual,\n \t\t\t\texpected: expected,\n \t\t\t\tmessage: message\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"notEqual\",\n \t\tvalue: function notEqual(actual, expected, message) {\n\n \t\t\t// eslint-disable-next-line eqeqeq\n \t\t\tvar result = expected != actual;\n\n \t\t\tthis.pushResult({\n \t\t\t\tresult: result,\n \t\t\t\tactual: actual,\n \t\t\t\texpected: expected,\n \t\t\t\tmessage: message,\n \t\t\t\tnegative: true\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"propEqual\",\n \t\tvalue: function propEqual(actual, expected, message) {\n \t\t\tactual = objectValues(actual);\n \t\t\texpected = objectValues(expected);\n\n \t\t\tthis.pushResult({\n \t\t\t\tresult: equiv(actual, expected),\n \t\t\t\tactual: actual,\n \t\t\t\texpected: expected,\n \t\t\t\tmessage: message\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"notPropEqual\",\n \t\tvalue: function notPropEqual(actual, expected, message) {\n \t\t\tactual = objectValues(actual);\n \t\t\texpected = objectValues(expected);\n\n \t\t\tthis.pushResult({\n \t\t\t\tresult: !equiv(actual, expected),\n \t\t\t\tactual: actual,\n \t\t\t\texpected: expected,\n \t\t\t\tmessage: message,\n \t\t\t\tnegative: true\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"deepEqual\",\n \t\tvalue: function deepEqual(actual, expected, message) {\n \t\t\tthis.pushResult({\n \t\t\t\tresult: equiv(actual, expected),\n \t\t\t\tactual: actual,\n \t\t\t\texpected: expected,\n \t\t\t\tmessage: message\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"notDeepEqual\",\n \t\tvalue: function notDeepEqual(actual, expected, message) {\n \t\t\tthis.pushResult({\n \t\t\t\tresult: !equiv(actual, expected),\n \t\t\t\tactual: actual,\n \t\t\t\texpected: expected,\n \t\t\t\tmessage: message,\n \t\t\t\tnegative: true\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"strictEqual\",\n \t\tvalue: function strictEqual(actual, expected, message) {\n \t\t\tthis.pushResult({\n \t\t\t\tresult: expected === actual,\n \t\t\t\tactual: actual,\n \t\t\t\texpected: expected,\n \t\t\t\tmessage: message\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"notStrictEqual\",\n \t\tvalue: function notStrictEqual(actual, expected, message) {\n \t\t\tthis.pushResult({\n \t\t\t\tresult: expected !== actual,\n \t\t\t\tactual: actual,\n \t\t\t\texpected: expected,\n \t\t\t\tmessage: message,\n \t\t\t\tnegative: true\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"throws\",\n \t\tvalue: function throws(block, expected, message) {\n \t\t\tvar actual = void 0,\n \t\t\t result = false;\n\n \t\t\tvar currentTest = this instanceof Assert && this.test || config.current;\n\n \t\t\t// 'expected' is optional unless doing string comparison\n \t\t\tif (objectType(expected) === \"string\") {\n \t\t\t\tif (message == null) {\n \t\t\t\t\tmessage = expected;\n \t\t\t\t\texpected = null;\n \t\t\t\t} else {\n \t\t\t\t\tthrow new Error(\"throws/raises does not accept a string value for the expected argument.\\n\" + \"Use a non-string object value (e.g. regExp) instead if it's necessary.\");\n \t\t\t\t}\n \t\t\t}\n\n \t\t\tcurrentTest.ignoreGlobalErrors = true;\n \t\t\ttry {\n \t\t\t\tblock.call(currentTest.testEnvironment);\n \t\t\t} catch (e) {\n \t\t\t\tactual = e;\n \t\t\t}\n \t\t\tcurrentTest.ignoreGlobalErrors = false;\n\n \t\t\tif (actual) {\n \t\t\t\tvar expectedType = objectType(expected);\n\n \t\t\t\t// We don't want to validate thrown error\n \t\t\t\tif (!expected) {\n \t\t\t\t\tresult = true;\n\n \t\t\t\t\t// Expected is a regexp\n \t\t\t\t} else if (expectedType === \"regexp\") {\n \t\t\t\t\tresult = expected.test(errorString(actual));\n\n \t\t\t\t\t// Log the string form of the regexp\n \t\t\t\t\texpected = String(expected);\n\n \t\t\t\t\t// Expected is a constructor, maybe an Error constructor\n \t\t\t\t} else if (expectedType === \"function\" && actual instanceof expected) {\n \t\t\t\t\tresult = true;\n\n \t\t\t\t\t// Expected is an Error object\n \t\t\t\t} else if (expectedType === \"object\") {\n \t\t\t\t\tresult = actual instanceof expected.constructor && actual.name === expected.name && actual.message === expected.message;\n\n \t\t\t\t\t// Log the string form of the Error object\n \t\t\t\t\texpected = errorString(expected);\n\n \t\t\t\t\t// Expected is a validation function which returns true if validation passed\n \t\t\t\t} else if (expectedType === \"function\" && expected.call({}, actual) === true) {\n \t\t\t\t\texpected = null;\n \t\t\t\t\tresult = true;\n \t\t\t\t}\n \t\t\t}\n\n \t\t\tcurrentTest.assert.pushResult({\n \t\t\t\tresult: result,\n\n \t\t\t\t// undefined if it didn't throw\n \t\t\t\tactual: actual && errorString(actual),\n \t\t\t\texpected: expected,\n \t\t\t\tmessage: message\n \t\t\t});\n \t\t}\n \t}, {\n \t\tkey: \"rejects\",\n \t\tvalue: function rejects(promise, expected, message) {\n \t\t\tvar result = false;\n\n \t\t\tvar currentTest = this instanceof Assert && this.test || config.current;\n\n \t\t\t// 'expected' is optional unless doing string comparison\n \t\t\tif (objectType(expected) === \"string\") {\n \t\t\t\tif (message === undefined) {\n \t\t\t\t\tmessage = expected;\n \t\t\t\t\texpected = undefined;\n \t\t\t\t} else {\n \t\t\t\t\tmessage = \"assert.rejects does not accept a string value for the expected \" + \"argument.\\nUse a non-string object value (e.g. validator function) instead \" + \"if necessary.\";\n\n \t\t\t\t\tcurrentTest.assert.pushResult({\n \t\t\t\t\t\tresult: false,\n \t\t\t\t\t\tmessage: message\n \t\t\t\t\t});\n\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t}\n\n \t\t\tvar then = promise && promise.then;\n \t\t\tif (objectType(then) !== \"function\") {\n \t\t\t\tvar _message = \"The value provided to `assert.rejects` in \" + \"\\\"\" + currentTest.testName + \"\\\" was not a promise.\";\n\n \t\t\t\tcurrentTest.assert.pushResult({\n \t\t\t\t\tresult: false,\n \t\t\t\t\tmessage: _message,\n \t\t\t\t\tactual: promise\n \t\t\t\t});\n\n \t\t\t\treturn;\n \t\t\t}\n\n \t\t\tvar done = this.async();\n\n \t\t\treturn then.call(promise, function handleFulfillment() {\n \t\t\t\tvar message = \"The promise returned by the `assert.rejects` callback in \" + \"\\\"\" + currentTest.testName + \"\\\" did not reject.\";\n\n \t\t\t\tcurrentTest.assert.pushResult({\n \t\t\t\t\tresult: false,\n \t\t\t\t\tmessage: message,\n \t\t\t\t\tactual: promise\n \t\t\t\t});\n\n \t\t\t\tdone();\n \t\t\t}, function handleRejection(actual) {\n \t\t\t\tvar expectedType = objectType(expected);\n\n \t\t\t\t// We don't want to validate\n \t\t\t\tif (expected === undefined) {\n \t\t\t\t\tresult = true;\n\n \t\t\t\t\t// Expected is a regexp\n \t\t\t\t} else if (expectedType === \"regexp\") {\n \t\t\t\t\tresult = expected.test(errorString(actual));\n\n \t\t\t\t\t// Log the string form of the regexp\n \t\t\t\t\texpected = String(expected);\n\n \t\t\t\t\t// Expected is a constructor, maybe an Error constructor\n \t\t\t\t} else if (expectedType === \"function\" && actual instanceof expected) {\n \t\t\t\t\tresult = true;\n\n \t\t\t\t\t// Expected is an Error object\n \t\t\t\t} else if (expectedType === \"object\") {\n \t\t\t\t\tresult = actual instanceof expected.constructor && actual.name === expected.name && actual.message === expected.message;\n\n \t\t\t\t\t// Log the string form of the Error object\n \t\t\t\t\texpected = errorString(expected);\n\n \t\t\t\t\t// Expected is a validation function which returns true if validation passed\n \t\t\t\t} else {\n \t\t\t\t\tif (expectedType === \"function\") {\n \t\t\t\t\t\tresult = expected.call({}, actual) === true;\n \t\t\t\t\t\texpected = null;\n\n \t\t\t\t\t\t// Expected is some other invalid type\n \t\t\t\t\t} else {\n \t\t\t\t\t\tresult = false;\n \t\t\t\t\t\tmessage = \"invalid expected value provided to `assert.rejects` \" + \"callback in \\\"\" + currentTest.testName + \"\\\": \" + expectedType + \".\";\n \t\t\t\t\t}\n \t\t\t\t}\n\n \t\t\t\tcurrentTest.assert.pushResult({\n \t\t\t\t\tresult: result,\n\n \t\t\t\t\t// leave rejection value of undefined as-is\n \t\t\t\t\tactual: actual && errorString(actual),\n \t\t\t\t\texpected: expected,\n \t\t\t\t\tmessage: message\n \t\t\t\t});\n\n \t\t\t\tdone();\n \t\t\t});\n \t\t}\n \t}]);\n \treturn Assert;\n }();\n\n // Provide an alternative to assert.throws(), for environments that consider throws a reserved word\n // Known to us are: Closure Compiler, Narwhal\n // eslint-disable-next-line dot-notation\n\n\n Assert.prototype.raises = Assert.prototype[\"throws\"];\n\n /**\n * Converts an error into a simple string for comparisons.\n *\n * @param {Error|Object} error\n * @return {String}\n */\n function errorString(error) {\n \tvar resultErrorString = error.toString();\n\n \t// If the error wasn't a subclass of Error but something like\n \t// an object literal with name and message properties...\n \tif (resultErrorString.substring(0, 7) === \"[object\") {\n \t\tvar name = error.name ? error.name.toString() : \"Error\";\n \t\tvar message = error.message ? error.message.toString() : \"\";\n\n \t\tif (name && message) {\n \t\t\treturn name + \": \" + message;\n \t\t} else if (name) {\n \t\t\treturn name;\n \t\t} else if (message) {\n \t\t\treturn message;\n \t\t} else {\n \t\t\treturn \"Error\";\n \t\t}\n \t} else {\n \t\treturn resultErrorString;\n \t}\n }\n\n /* global module, exports, define */\n function exportQUnit(QUnit) {\n\n \tif (defined.document) {\n\n \t\t// QUnit may be defined when it is preconfigured but then only QUnit and QUnit.config may be defined.\n \t\tif (window$1.QUnit && window$1.QUnit.version) {\n \t\t\tthrow new Error(\"QUnit has already been defined.\");\n \t\t}\n\n \t\twindow$1.QUnit = QUnit;\n \t}\n\n \t// For nodejs\n \tif (typeof module !== \"undefined\" && module && module.exports) {\n \t\tmodule.exports = QUnit;\n\n \t\t// For consistency with CommonJS environments' exports\n \t\tmodule.exports.QUnit = QUnit;\n \t}\n\n \t// For CommonJS with exports, but without module.exports, like Rhino\n \tif (typeof exports !== \"undefined\" && exports) {\n \t\texports.QUnit = QUnit;\n \t}\n\n \tif (typeof define === \"function\" && define.amd) {\n \t\tdefine(function () {\n \t\t\treturn QUnit;\n \t\t});\n \t\tQUnit.config.autostart = false;\n \t}\n\n \t// For Web/Service Workers\n \tif (self$1 && self$1.WorkerGlobalScope && self$1 instanceof self$1.WorkerGlobalScope) {\n \t\tself$1.QUnit = QUnit;\n \t}\n }\n\n // Handle an unhandled exception. By convention, returns true if further\n // error handling should be suppressed and false otherwise.\n // In this case, we will only suppress further error handling if the\n // \"ignoreGlobalErrors\" configuration option is enabled.\n function onError(error) {\n \tfor (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n \t\targs[_key - 1] = arguments[_key];\n \t}\n\n \tif (config.current) {\n \t\tif (config.current.ignoreGlobalErrors) {\n \t\t\treturn true;\n \t\t}\n \t\tpushFailure.apply(undefined, [error.message, error.stacktrace || error.fileName + \":\" + error.lineNumber].concat(args));\n \t} else {\n \t\ttest(\"global failure\", extend(function () {\n \t\t\tpushFailure.apply(undefined, [error.message, error.stacktrace || error.fileName + \":\" + error.lineNumber].concat(args));\n \t\t}, { validTest: true }));\n \t}\n\n \treturn false;\n }\n\n // Handle an unhandled rejection\n function onUnhandledRejection(reason) {\n \tvar resultInfo = {\n \t\tresult: false,\n \t\tmessage: reason.message || \"error\",\n \t\tactual: reason,\n \t\tsource: reason.stack || sourceFromStacktrace(3)\n \t};\n\n \tvar currentTest = config.current;\n \tif (currentTest) {\n \t\tcurrentTest.assert.pushResult(resultInfo);\n \t} else {\n \t\ttest(\"global failure\", extend(function (assert) {\n \t\t\tassert.pushResult(resultInfo);\n \t\t}, { validTest: true }));\n \t}\n }\n\n var QUnit = {};\n var globalSuite = new SuiteReport();\n\n // The initial \"currentModule\" represents the global (or top-level) module that\n // is not explicitly defined by the user, therefore we add the \"globalSuite\" to\n // it since each module has a suiteReport associated with it.\n config.currentModule.suiteReport = globalSuite;\n\n var globalStartCalled = false;\n var runStarted = false;\n\n // Figure out if we're running the tests from a server or not\n QUnit.isLocal = !(defined.document && window$1.location.protocol !== \"file:\");\n\n // Expose the current QUnit version\n QUnit.version = \"2.10.0\";\n\n extend(QUnit, {\n \ton: on,\n\n \tmodule: module$1,\n\n \ttest: test,\n\n \ttodo: todo,\n\n \tskip: skip,\n\n \tonly: only,\n\n \tstart: function start(count) {\n \t\tvar globalStartAlreadyCalled = globalStartCalled;\n\n \t\tif (!config.current) {\n \t\t\tglobalStartCalled = true;\n\n \t\t\tif (runStarted) {\n \t\t\t\tthrow new Error(\"Called start() while test already started running\");\n \t\t\t} else if (globalStartAlreadyCalled || count > 1) {\n \t\t\t\tthrow new Error(\"Called start() outside of a test context too many times\");\n \t\t\t} else if (config.autostart) {\n \t\t\t\tthrow new Error(\"Called start() outside of a test context when \" + \"QUnit.config.autostart was true\");\n \t\t\t} else if (!config.pageLoaded) {\n\n \t\t\t\t// The page isn't completely loaded yet, so we set autostart and then\n \t\t\t\t// load if we're in Node or wait for the browser's load event.\n \t\t\t\tconfig.autostart = true;\n\n \t\t\t\t// Starts from Node even if .load was not previously called. We still return\n \t\t\t\t// early otherwise we'll wind up \"beginning\" twice.\n \t\t\t\tif (!defined.document) {\n \t\t\t\t\tQUnit.load();\n \t\t\t\t}\n\n \t\t\t\treturn;\n \t\t\t}\n \t\t} else {\n \t\t\tthrow new Error(\"QUnit.start cannot be called inside a test context.\");\n \t\t}\n\n \t\tscheduleBegin();\n \t},\n\n \tconfig: config,\n\n \tis: is,\n\n \tobjectType: objectType,\n\n \textend: extend,\n\n \tload: function load() {\n \t\tconfig.pageLoaded = true;\n\n \t\t// Initialize the configuration options\n \t\textend(config, {\n \t\t\tstats: { all: 0, bad: 0 },\n \t\t\tstarted: 0,\n \t\t\tupdateRate: 1000,\n \t\t\tautostart: true,\n \t\t\tfilter: \"\"\n \t\t}, true);\n\n \t\tif (!runStarted) {\n \t\t\tconfig.blocking = false;\n\n \t\t\tif (config.autostart) {\n \t\t\t\tscheduleBegin();\n \t\t\t}\n \t\t}\n \t},\n\n \tstack: function stack(offset) {\n \t\toffset = (offset || 0) + 2;\n \t\treturn sourceFromStacktrace(offset);\n \t},\n\n \tonError: onError,\n\n \tonUnhandledRejection: onUnhandledRejection\n });\n\n QUnit.pushFailure = pushFailure;\n QUnit.assert = Assert.prototype;\n QUnit.equiv = equiv;\n QUnit.dump = dump;\n\n registerLoggingCallbacks(QUnit);\n\n function scheduleBegin() {\n\n \trunStarted = true;\n\n \t// Add a slight delay to allow definition of more modules and tests.\n \tif (defined.setTimeout) {\n \t\tsetTimeout$1(function () {\n \t\t\tbegin();\n \t\t});\n \t} else {\n \t\tbegin();\n \t}\n }\n\n function unblockAndAdvanceQueue() {\n \tconfig.blocking = false;\n \tProcessingQueue.advance();\n }\n\n function begin() {\n \tvar i,\n \t l,\n \t modulesLog = [];\n\n \t// If the test run hasn't officially begun yet\n \tif (!config.started) {\n\n \t\t// Record the time of the test run's beginning\n \t\tconfig.started = now();\n\n \t\t// Delete the loose unnamed module if unused.\n \t\tif (config.modules[0].name === \"\" && config.modules[0].tests.length === 0) {\n \t\t\tconfig.modules.shift();\n \t\t}\n\n \t\t// Avoid unnecessary information by not logging modules' test environments\n \t\tfor (i = 0, l = config.modules.length; i < l; i++) {\n \t\t\tmodulesLog.push({\n \t\t\t\tname: config.modules[i].name,\n \t\t\t\ttests: config.modules[i].tests\n \t\t\t});\n \t\t}\n\n \t\t// The test run is officially beginning now\n \t\temit(\"runStart\", globalSuite.start(true));\n \t\trunLoggingCallbacks(\"begin\", {\n \t\t\ttotalTests: Test.count,\n \t\t\tmodules: modulesLog\n \t\t}).then(unblockAndAdvanceQueue);\n \t} else {\n \t\tunblockAndAdvanceQueue();\n \t}\n }\n\n exportQUnit(QUnit);\n\n (function () {\n\n \tif (typeof window$1 === \"undefined\" || typeof document$1 === \"undefined\") {\n \t\treturn;\n \t}\n\n \tvar config = QUnit.config,\n \t hasOwn = Object.prototype.hasOwnProperty;\n\n \t// Stores fixture HTML for resetting later\n \tfunction storeFixture() {\n\n \t\t// Avoid overwriting user-defined values\n \t\tif (hasOwn.call(config, \"fixture\")) {\n \t\t\treturn;\n \t\t}\n\n \t\tvar fixture = document$1.getElementById(\"qunit-fixture\");\n \t\tif (fixture) {\n \t\t\tconfig.fixture = fixture.cloneNode(true);\n \t\t}\n \t}\n\n \tQUnit.begin(storeFixture);\n\n \t// Resets the fixture DOM element if available.\n \tfunction resetFixture() {\n \t\tif (config.fixture == null) {\n \t\t\treturn;\n \t\t}\n\n \t\tvar fixture = document$1.getElementById(\"qunit-fixture\");\n \t\tvar resetFixtureType = _typeof(config.fixture);\n \t\tif (resetFixtureType === \"string\") {\n\n \t\t\t// support user defined values for `config.fixture`\n \t\t\tvar newFixture = document$1.createElement(\"div\");\n \t\t\tnewFixture.setAttribute(\"id\", \"qunit-fixture\");\n \t\t\tnewFixture.innerHTML = config.fixture;\n \t\t\tfixture.parentNode.replaceChild(newFixture, fixture);\n \t\t} else {\n \t\t\tvar clonedFixture = config.fixture.cloneNode(true);\n \t\t\tfixture.parentNode.replaceChild(clonedFixture, fixture);\n \t\t}\n \t}\n\n \tQUnit.testStart(resetFixture);\n })();\n\n (function () {\n\n \t// Only interact with URLs via window.location\n \tvar location = typeof window$1 !== \"undefined\" && window$1.location;\n \tif (!location) {\n \t\treturn;\n \t}\n\n \tvar urlParams = getUrlParams();\n\n \tQUnit.urlParams = urlParams;\n\n \t// Match module/test by inclusion in an array\n \tQUnit.config.moduleId = [].concat(urlParams.moduleId || []);\n \tQUnit.config.testId = [].concat(urlParams.testId || []);\n\n \t// Exact case-insensitive match of the module name\n \tQUnit.config.module = urlParams.module;\n\n \t// Regular expression or case-insenstive substring match against \"moduleName: testName\"\n \tQUnit.config.filter = urlParams.filter;\n\n \t// Test order randomization\n \tif (urlParams.seed === true) {\n\n \t\t// Generate a random seed if the option is specified without a value\n \t\tQUnit.config.seed = Math.random().toString(36).slice(2);\n \t} else if (urlParams.seed) {\n \t\tQUnit.config.seed = urlParams.seed;\n \t}\n\n \t// Add URL-parameter-mapped config values with UI form rendering data\n \tQUnit.config.urlConfig.push({\n \t\tid: \"hidepassed\",\n \t\tlabel: \"Hide passed tests\",\n \t\ttooltip: \"Only show tests and assertions that fail. Stored as query-strings.\"\n \t}, {\n \t\tid: \"noglobals\",\n \t\tlabel: \"Check for Globals\",\n \t\ttooltip: \"Enabling this will test if any test introduces new properties on the \" + \"global object (`window` in Browsers). Stored as query-strings.\"\n \t}, {\n \t\tid: \"notrycatch\",\n \t\tlabel: \"No try-catch\",\n \t\ttooltip: \"Enabling this will run tests outside of a try-catch block. Makes debugging \" + \"exceptions in IE reasonable. Stored as query-strings.\"\n \t});\n\n \tQUnit.begin(function () {\n \t\tvar i,\n \t\t option,\n \t\t urlConfig = QUnit.config.urlConfig;\n\n \t\tfor (i = 0; i < urlConfig.length; i++) {\n\n \t\t\t// Options can be either strings or objects with nonempty \"id\" properties\n \t\t\toption = QUnit.config.urlConfig[i];\n \t\t\tif (typeof option !== \"string\") {\n \t\t\t\toption = option.id;\n \t\t\t}\n\n \t\t\tif (QUnit.config[option] === undefined) {\n \t\t\t\tQUnit.config[option] = urlParams[option];\n \t\t\t}\n \t\t}\n \t});\n\n \tfunction getUrlParams() {\n \t\tvar i, param, name, value;\n \t\tvar urlParams = Object.create(null);\n \t\tvar params = location.search.slice(1).split(\"&\");\n \t\tvar length = params.length;\n\n \t\tfor (i = 0; i < length; i++) {\n \t\t\tif (params[i]) {\n \t\t\t\tparam = params[i].split(\"=\");\n \t\t\t\tname = decodeQueryParam(param[0]);\n\n \t\t\t\t// Allow just a key to turn on a flag, e.g., test.html?noglobals\n \t\t\t\tvalue = param.length === 1 || decodeQueryParam(param.slice(1).join(\"=\"));\n \t\t\t\tif (name in urlParams) {\n \t\t\t\t\turlParams[name] = [].concat(urlParams[name], value);\n \t\t\t\t} else {\n \t\t\t\t\turlParams[name] = value;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\treturn urlParams;\n \t}\n\n \tfunction decodeQueryParam(param) {\n \t\treturn decodeURIComponent(param.replace(/\\+/g, \"%20\"));\n \t}\n })();\n\n var stats = {\n \tpassedTests: 0,\n \tfailedTests: 0,\n \tskippedTests: 0,\n \ttodoTests: 0\n };\n\n // Escape text for attribute or text content.\n function escapeText(s) {\n \tif (!s) {\n \t\treturn \"\";\n \t}\n \ts = s + \"\";\n\n \t// Both single quotes and double quotes (for attributes)\n \treturn s.replace(/['\"<>&]/g, function (s) {\n \t\tswitch (s) {\n \t\t\tcase \"'\":\n \t\t\t\treturn \"'\";\n \t\t\tcase \"\\\"\":\n \t\t\t\treturn \""\";\n \t\t\tcase \"<\":\n \t\t\t\treturn \"<\";\n \t\t\tcase \">\":\n \t\t\t\treturn \">\";\n \t\t\tcase \"&\":\n \t\t\t\treturn \"&\";\n \t\t}\n \t});\n }\n\n (function () {\n\n \t// Don't load the HTML Reporter on non-browser environments\n \tif (typeof window$1 === \"undefined\" || !window$1.document) {\n \t\treturn;\n \t}\n\n \tvar config = QUnit.config,\n \t hiddenTests = [],\n \t document = window$1.document,\n \t collapseNext = false,\n \t hasOwn$$1 = Object.prototype.hasOwnProperty,\n \t unfilteredUrl = setUrl({ filter: undefined, module: undefined,\n \t\tmoduleId: undefined, testId: undefined }),\n \t modulesList = [];\n\n \tfunction addEvent(elem, type, fn) {\n \t\telem.addEventListener(type, fn, false);\n \t}\n\n \tfunction removeEvent(elem, type, fn) {\n \t\telem.removeEventListener(type, fn, false);\n \t}\n\n \tfunction addEvents(elems, type, fn) {\n \t\tvar i = elems.length;\n \t\twhile (i--) {\n \t\t\taddEvent(elems[i], type, fn);\n \t\t}\n \t}\n\n \tfunction hasClass(elem, name) {\n \t\treturn (\" \" + elem.className + \" \").indexOf(\" \" + name + \" \") >= 0;\n \t}\n\n \tfunction addClass(elem, name) {\n \t\tif (!hasClass(elem, name)) {\n \t\t\telem.className += (elem.className ? \" \" : \"\") + name;\n \t\t}\n \t}\n\n \tfunction toggleClass(elem, name, force) {\n \t\tif (force || typeof force === \"undefined\" && !hasClass(elem, name)) {\n \t\t\taddClass(elem, name);\n \t\t} else {\n \t\t\tremoveClass(elem, name);\n \t\t}\n \t}\n\n \tfunction removeClass(elem, name) {\n \t\tvar set = \" \" + elem.className + \" \";\n\n \t\t// Class name may appear multiple times\n \t\twhile (set.indexOf(\" \" + name + \" \") >= 0) {\n \t\t\tset = set.replace(\" \" + name + \" \", \" \");\n \t\t}\n\n \t\t// Trim for prettiness\n \t\telem.className = typeof set.trim === \"function\" ? set.trim() : set.replace(/^\\s+|\\s+$/g, \"\");\n \t}\n\n \tfunction id(name) {\n \t\treturn document.getElementById && document.getElementById(name);\n \t}\n\n \tfunction abortTests() {\n \t\tvar abortButton = id(\"qunit-abort-tests-button\");\n \t\tif (abortButton) {\n \t\t\tabortButton.disabled = true;\n \t\t\tabortButton.innerHTML = \"Aborting...\";\n \t\t}\n \t\tQUnit.config.queue.length = 0;\n \t\treturn false;\n \t}\n\n \tfunction interceptNavigation(ev) {\n \t\tapplyUrlParams();\n\n \t\tif (ev && ev.preventDefault) {\n \t\t\tev.preventDefault();\n \t\t}\n\n \t\treturn false;\n \t}\n\n \tfunction getUrlConfigHtml() {\n \t\tvar i,\n \t\t j,\n \t\t val,\n \t\t escaped,\n \t\t escapedTooltip,\n \t\t selection = false,\n \t\t urlConfig = config.urlConfig,\n \t\t urlConfigHtml = \"\";\n\n \t\tfor (i = 0; i < urlConfig.length; i++) {\n\n \t\t\t// Options can be either strings or objects with nonempty \"id\" properties\n \t\t\tval = config.urlConfig[i];\n \t\t\tif (typeof val === \"string\") {\n \t\t\t\tval = {\n \t\t\t\t\tid: val,\n \t\t\t\t\tlabel: val\n \t\t\t\t};\n \t\t\t}\n\n \t\t\tescaped = escapeText(val.id);\n \t\t\tescapedTooltip = escapeText(val.tooltip);\n\n \t\t\tif (!val.value || typeof val.value === \"string\") {\n \t\t\t\turlConfigHtml += \"\";\n \t\t\t} else {\n \t\t\t\turlConfigHtml += \"\";\n \t\t\t}\n \t\t}\n\n \t\treturn urlConfigHtml;\n \t}\n\n \t// Handle \"click\" events on toolbar checkboxes and \"change\" for select menus.\n \t// Updates the URL with the new state of `config.urlConfig` values.\n \tfunction toolbarChanged() {\n \t\tvar updatedUrl,\n \t\t value,\n \t\t tests,\n \t\t field = this,\n \t\t params = {};\n\n \t\t// Detect if field is a select menu or a checkbox\n \t\tif (\"selectedIndex\" in field) {\n \t\t\tvalue = field.options[field.selectedIndex].value || undefined;\n \t\t} else {\n \t\t\tvalue = field.checked ? field.defaultValue || true : undefined;\n \t\t}\n\n \t\tparams[field.name] = value;\n \t\tupdatedUrl = setUrl(params);\n\n \t\t// Check if we can apply the change without a page refresh\n \t\tif (\"hidepassed\" === field.name && \"replaceState\" in window$1.history) {\n \t\t\tQUnit.urlParams[field.name] = value;\n \t\t\tconfig[field.name] = value || false;\n \t\t\ttests = id(\"qunit-tests\");\n \t\t\tif (tests) {\n \t\t\t\tvar length = tests.children.length;\n \t\t\t\tvar children = tests.children;\n\n \t\t\t\tif (field.checked) {\n \t\t\t\t\tfor (var i = 0; i < length; i++) {\n \t\t\t\t\t\tvar test$$1 = children[i];\n\n \t\t\t\t\t\tif (test$$1 && test$$1.className.indexOf(\"pass\") > -1) {\n \t\t\t\t\t\t\thiddenTests.push(test$$1);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n\n \t\t\t\t\tvar _iteratorNormalCompletion = true;\n \t\t\t\t\tvar _didIteratorError = false;\n \t\t\t\t\tvar _iteratorError = undefined;\n\n \t\t\t\t\ttry {\n \t\t\t\t\t\tfor (var _iterator = hiddenTests[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n \t\t\t\t\t\t\tvar hiddenTest = _step.value;\n\n \t\t\t\t\t\t\ttests.removeChild(hiddenTest);\n \t\t\t\t\t\t}\n \t\t\t\t\t} catch (err) {\n \t\t\t\t\t\t_didIteratorError = true;\n \t\t\t\t\t\t_iteratorError = err;\n \t\t\t\t\t} finally {\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tif (!_iteratorNormalCompletion && _iterator.return) {\n \t\t\t\t\t\t\t\t_iterator.return();\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t} finally {\n \t\t\t\t\t\t\tif (_didIteratorError) {\n \t\t\t\t\t\t\t\tthrow _iteratorError;\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} else {\n \t\t\t\t\twhile ((test$$1 = hiddenTests.pop()) != null) {\n \t\t\t\t\t\ttests.appendChild(test$$1);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\twindow$1.history.replaceState(null, \"\", updatedUrl);\n \t\t} else {\n \t\t\twindow$1.location = updatedUrl;\n \t\t}\n \t}\n\n \tfunction setUrl(params) {\n \t\tvar key,\n \t\t arrValue,\n \t\t i,\n \t\t querystring = \"?\",\n \t\t location = window$1.location;\n\n \t\tparams = QUnit.extend(QUnit.extend({}, QUnit.urlParams), params);\n\n \t\tfor (key in params) {\n\n \t\t\t// Skip inherited or undefined properties\n \t\t\tif (hasOwn$$1.call(params, key) && params[key] !== undefined) {\n\n \t\t\t\t// Output a parameter for each value of this key\n \t\t\t\t// (but usually just one)\n \t\t\t\tarrValue = [].concat(params[key]);\n \t\t\t\tfor (i = 0; i < arrValue.length; i++) {\n \t\t\t\t\tquerystring += encodeURIComponent(key);\n \t\t\t\t\tif (arrValue[i] !== true) {\n \t\t\t\t\t\tquerystring += \"=\" + encodeURIComponent(arrValue[i]);\n \t\t\t\t\t}\n \t\t\t\t\tquerystring += \"&\";\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn location.protocol + \"//\" + location.host + location.pathname + querystring.slice(0, -1);\n \t}\n\n \tfunction applyUrlParams() {\n \t\tvar i,\n \t\t selectedModules = [],\n \t\t modulesList = id(\"qunit-modulefilter-dropdown-list\").getElementsByTagName(\"input\"),\n \t\t filter = id(\"qunit-filter-input\").value;\n\n \t\tfor (i = 0; i < modulesList.length; i++) {\n \t\t\tif (modulesList[i].checked) {\n \t\t\t\tselectedModules.push(modulesList[i].value);\n \t\t\t}\n \t\t}\n\n \t\twindow$1.location = setUrl({\n \t\t\tfilter: filter === \"\" ? undefined : filter,\n \t\t\tmoduleId: selectedModules.length === 0 ? undefined : selectedModules,\n\n \t\t\t// Remove module and testId filter\n \t\t\tmodule: undefined,\n \t\t\ttestId: undefined\n \t\t});\n \t}\n\n \tfunction toolbarUrlConfigContainer() {\n \t\tvar urlConfigContainer = document.createElement(\"span\");\n\n \t\turlConfigContainer.innerHTML = getUrlConfigHtml();\n \t\taddClass(urlConfigContainer, \"qunit-url-config\");\n\n \t\taddEvents(urlConfigContainer.getElementsByTagName(\"input\"), \"change\", toolbarChanged);\n \t\taddEvents(urlConfigContainer.getElementsByTagName(\"select\"), \"change\", toolbarChanged);\n\n \t\treturn urlConfigContainer;\n \t}\n\n \tfunction abortTestsButton() {\n \t\tvar button = document.createElement(\"button\");\n \t\tbutton.id = \"qunit-abort-tests-button\";\n \t\tbutton.innerHTML = \"Abort\";\n \t\taddEvent(button, \"click\", abortTests);\n \t\treturn button;\n \t}\n\n \tfunction toolbarLooseFilter() {\n \t\tvar filter = document.createElement(\"form\"),\n \t\t label = document.createElement(\"label\"),\n \t\t input = document.createElement(\"input\"),\n \t\t button = document.createElement(\"button\");\n\n \t\taddClass(filter, \"qunit-filter\");\n\n \t\tlabel.innerHTML = \"Filter: \";\n\n \t\tinput.type = \"text\";\n \t\tinput.value = config.filter || \"\";\n \t\tinput.name = \"filter\";\n \t\tinput.id = \"qunit-filter-input\";\n\n \t\tbutton.innerHTML = \"Go\";\n\n \t\tlabel.appendChild(input);\n\n \t\tfilter.appendChild(label);\n \t\tfilter.appendChild(document.createTextNode(\" \"));\n \t\tfilter.appendChild(button);\n \t\taddEvent(filter, \"submit\", interceptNavigation);\n\n \t\treturn filter;\n \t}\n\n \tfunction moduleListHtml() {\n \t\tvar i,\n \t\t checked,\n \t\t html = \"\";\n\n \t\tfor (i = 0; i < config.modules.length; i++) {\n \t\t\tif (config.modules[i].name !== \"\") {\n \t\t\t\tchecked = config.moduleId.indexOf(config.modules[i].moduleId) > -1;\n \t\t\t\thtml += \"
    1. \";\n \t\t\t}\n \t\t}\n\n \t\treturn html;\n \t}\n\n \tfunction toolbarModuleFilter() {\n \t\tvar commit,\n \t\t reset,\n \t\t moduleFilter = document.createElement(\"form\"),\n \t\t label = document.createElement(\"label\"),\n \t\t moduleSearch = document.createElement(\"input\"),\n \t\t dropDown = document.createElement(\"div\"),\n \t\t actions = document.createElement(\"span\"),\n \t\t applyButton = document.createElement(\"button\"),\n \t\t resetButton = document.createElement(\"button\"),\n \t\t allModulesLabel = document.createElement(\"label\"),\n \t\t allCheckbox = document.createElement(\"input\"),\n \t\t dropDownList = document.createElement(\"ul\"),\n \t\t dirty = false;\n\n \t\tmoduleSearch.id = \"qunit-modulefilter-search\";\n \t\tmoduleSearch.autocomplete = \"off\";\n \t\taddEvent(moduleSearch, \"input\", searchInput);\n \t\taddEvent(moduleSearch, \"input\", searchFocus);\n \t\taddEvent(moduleSearch, \"focus\", searchFocus);\n \t\taddEvent(moduleSearch, \"click\", searchFocus);\n\n \t\tlabel.id = \"qunit-modulefilter-search-container\";\n \t\tlabel.innerHTML = \"Module: \";\n \t\tlabel.appendChild(moduleSearch);\n\n \t\tapplyButton.textContent = \"Apply\";\n \t\tapplyButton.style.display = \"none\";\n\n \t\tresetButton.textContent = \"Reset\";\n \t\tresetButton.type = \"reset\";\n \t\tresetButton.style.display = \"none\";\n\n \t\tallCheckbox.type = \"checkbox\";\n \t\tallCheckbox.checked = config.moduleId.length === 0;\n\n \t\tallModulesLabel.className = \"clickable\";\n \t\tif (config.moduleId.length) {\n \t\t\tallModulesLabel.className = \"checked\";\n \t\t}\n \t\tallModulesLabel.appendChild(allCheckbox);\n \t\tallModulesLabel.appendChild(document.createTextNode(\"All modules\"));\n\n \t\tactions.id = \"qunit-modulefilter-actions\";\n \t\tactions.appendChild(applyButton);\n \t\tactions.appendChild(resetButton);\n \t\tactions.appendChild(allModulesLabel);\n \t\tcommit = actions.firstChild;\n \t\treset = commit.nextSibling;\n \t\taddEvent(commit, \"click\", applyUrlParams);\n\n \t\tdropDownList.id = \"qunit-modulefilter-dropdown-list\";\n \t\tdropDownList.innerHTML = moduleListHtml();\n\n \t\tdropDown.id = \"qunit-modulefilter-dropdown\";\n \t\tdropDown.style.display = \"none\";\n \t\tdropDown.appendChild(actions);\n \t\tdropDown.appendChild(dropDownList);\n \t\taddEvent(dropDown, \"change\", selectionChange);\n \t\tselectionChange();\n\n \t\tmoduleFilter.id = \"qunit-modulefilter\";\n \t\tmoduleFilter.appendChild(label);\n \t\tmoduleFilter.appendChild(dropDown);\n \t\taddEvent(moduleFilter, \"submit\", interceptNavigation);\n \t\taddEvent(moduleFilter, \"reset\", function () {\n\n \t\t\t// Let the reset happen, then update styles\n \t\t\twindow$1.setTimeout(selectionChange);\n \t\t});\n\n \t\t// Enables show/hide for the dropdown\n \t\tfunction searchFocus() {\n \t\t\tif (dropDown.style.display !== \"none\") {\n \t\t\t\treturn;\n \t\t\t}\n\n \t\t\tdropDown.style.display = \"block\";\n \t\t\taddEvent(document, \"click\", hideHandler);\n \t\t\taddEvent(document, \"keydown\", hideHandler);\n\n \t\t\t// Hide on Escape keydown or outside-container click\n \t\t\tfunction hideHandler(e) {\n \t\t\t\tvar inContainer = moduleFilter.contains(e.target);\n\n \t\t\t\tif (e.keyCode === 27 || !inContainer) {\n \t\t\t\t\tif (e.keyCode === 27 && inContainer) {\n \t\t\t\t\t\tmoduleSearch.focus();\n \t\t\t\t\t}\n \t\t\t\t\tdropDown.style.display = \"none\";\n \t\t\t\t\tremoveEvent(document, \"click\", hideHandler);\n \t\t\t\t\tremoveEvent(document, \"keydown\", hideHandler);\n \t\t\t\t\tmoduleSearch.value = \"\";\n \t\t\t\t\tsearchInput();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\t// Processes module search box input\n \t\tfunction searchInput() {\n \t\t\tvar i,\n \t\t\t item,\n \t\t\t searchText = moduleSearch.value.toLowerCase(),\n \t\t\t listItems = dropDownList.children;\n\n \t\t\tfor (i = 0; i < listItems.length; i++) {\n \t\t\t\titem = listItems[i];\n \t\t\t\tif (!searchText || item.textContent.toLowerCase().indexOf(searchText) > -1) {\n \t\t\t\t\titem.style.display = \"\";\n \t\t\t\t} else {\n \t\t\t\t\titem.style.display = \"none\";\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\t// Processes selection changes\n \t\tfunction selectionChange(evt) {\n \t\t\tvar i,\n \t\t\t item,\n \t\t\t checkbox = evt && evt.target || allCheckbox,\n \t\t\t modulesList = dropDownList.getElementsByTagName(\"input\"),\n \t\t\t selectedNames = [];\n\n \t\t\ttoggleClass(checkbox.parentNode, \"checked\", checkbox.checked);\n\n \t\t\tdirty = false;\n \t\t\tif (checkbox.checked && checkbox !== allCheckbox) {\n \t\t\t\tallCheckbox.checked = false;\n \t\t\t\tremoveClass(allCheckbox.parentNode, \"checked\");\n \t\t\t}\n \t\t\tfor (i = 0; i < modulesList.length; i++) {\n \t\t\t\titem = modulesList[i];\n \t\t\t\tif (!evt) {\n \t\t\t\t\ttoggleClass(item.parentNode, \"checked\", item.checked);\n \t\t\t\t} else if (checkbox === allCheckbox && checkbox.checked) {\n \t\t\t\t\titem.checked = false;\n \t\t\t\t\tremoveClass(item.parentNode, \"checked\");\n \t\t\t\t}\n \t\t\t\tdirty = dirty || item.checked !== item.defaultChecked;\n \t\t\t\tif (item.checked) {\n \t\t\t\t\tselectedNames.push(item.parentNode.textContent);\n \t\t\t\t}\n \t\t\t}\n\n \t\t\tcommit.style.display = reset.style.display = dirty ? \"\" : \"none\";\n \t\t\tmoduleSearch.placeholder = selectedNames.join(\", \") || allCheckbox.parentNode.textContent;\n \t\t\tmoduleSearch.title = \"Type to filter list. Current selection:\\n\" + (selectedNames.join(\"\\n\") || allCheckbox.parentNode.textContent);\n \t\t}\n\n \t\treturn moduleFilter;\n \t}\n\n \tfunction toolbarFilters() {\n \t\tvar toolbarFilters = document.createElement(\"span\");\n\n \t\ttoolbarFilters.id = \"qunit-toolbar-filters\";\n \t\ttoolbarFilters.appendChild(toolbarLooseFilter());\n \t\ttoolbarFilters.appendChild(toolbarModuleFilter());\n\n \t\treturn toolbarFilters;\n \t}\n\n \tfunction appendToolbar() {\n \t\tvar toolbar = id(\"qunit-testrunner-toolbar\");\n\n \t\tif (toolbar) {\n \t\t\ttoolbar.appendChild(toolbarUrlConfigContainer());\n \t\t\ttoolbar.appendChild(toolbarFilters());\n \t\t\ttoolbar.appendChild(document.createElement(\"div\")).className = \"clearfix\";\n \t\t}\n \t}\n\n \tfunction appendHeader() {\n \t\tvar header = id(\"qunit-header\");\n\n \t\tif (header) {\n \t\t\theader.innerHTML = \"\" + header.innerHTML + \" \";\n \t\t}\n \t}\n\n \tfunction appendBanner() {\n \t\tvar banner = id(\"qunit-banner\");\n\n \t\tif (banner) {\n \t\t\tbanner.className = \"\";\n \t\t}\n \t}\n\n \tfunction appendTestResults() {\n \t\tvar tests = id(\"qunit-tests\"),\n \t\t result = id(\"qunit-testresult\"),\n \t\t controls;\n\n \t\tif (result) {\n \t\t\tresult.parentNode.removeChild(result);\n \t\t}\n\n \t\tif (tests) {\n \t\t\ttests.innerHTML = \"\";\n \t\t\tresult = document.createElement(\"p\");\n \t\t\tresult.id = \"qunit-testresult\";\n \t\t\tresult.className = \"result\";\n \t\t\ttests.parentNode.insertBefore(result, tests);\n \t\t\tresult.innerHTML = \"
      Running...
       
      \" + \"
      \" + \"
      \";\n \t\t\tcontrols = id(\"qunit-testresult-controls\");\n \t\t}\n\n \t\tif (controls) {\n \t\t\tcontrols.appendChild(abortTestsButton());\n \t\t}\n \t}\n\n \tfunction appendFilteredTest() {\n \t\tvar testId = QUnit.config.testId;\n \t\tif (!testId || testId.length <= 0) {\n \t\t\treturn \"\";\n \t\t}\n \t\treturn \"
      Rerunning selected tests: \" + escapeText(testId.join(\", \")) + \" Run all tests
      \";\n \t}\n\n \tfunction appendUserAgent() {\n \t\tvar userAgent = id(\"qunit-userAgent\");\n\n \t\tif (userAgent) {\n \t\t\tuserAgent.innerHTML = \"\";\n \t\t\tuserAgent.appendChild(document.createTextNode(\"QUnit \" + QUnit.version + \"; \" + navigator.userAgent));\n \t\t}\n \t}\n\n \tfunction appendInterface() {\n \t\tvar qunit = id(\"qunit\");\n\n \t\tif (qunit) {\n \t\t\tqunit.innerHTML = \"

      \" + escapeText(document.title) + \"

      \" + \"

      \" + \"
      \" + appendFilteredTest() + \"

      \" + \"
        \";\n \t\t}\n\n \t\tappendHeader();\n \t\tappendBanner();\n \t\tappendTestResults();\n \t\tappendUserAgent();\n \t\tappendToolbar();\n \t}\n\n \tfunction appendTest(name, testId, moduleName) {\n \t\tvar title,\n \t\t rerunTrigger,\n \t\t testBlock,\n \t\t assertList,\n \t\t tests = id(\"qunit-tests\");\n\n \t\tif (!tests) {\n \t\t\treturn;\n \t\t}\n\n \t\ttitle = document.createElement(\"strong\");\n \t\ttitle.innerHTML = getNameHtml(name, moduleName);\n\n \t\trerunTrigger = document.createElement(\"a\");\n \t\trerunTrigger.innerHTML = \"Rerun\";\n \t\trerunTrigger.href = setUrl({ testId: testId });\n\n \t\ttestBlock = document.createElement(\"li\");\n \t\ttestBlock.appendChild(title);\n \t\ttestBlock.appendChild(rerunTrigger);\n \t\ttestBlock.id = \"qunit-test-output-\" + testId;\n\n \t\tassertList = document.createElement(\"ol\");\n \t\tassertList.className = \"qunit-assert-list\";\n\n \t\ttestBlock.appendChild(assertList);\n\n \t\ttests.appendChild(testBlock);\n \t}\n\n \t// HTML Reporter initialization and load\n \tQUnit.begin(function (details) {\n \t\tvar i, moduleObj;\n\n \t\t// Sort modules by name for the picker\n \t\tfor (i = 0; i < details.modules.length; i++) {\n \t\t\tmoduleObj = details.modules[i];\n \t\t\tif (moduleObj.name) {\n \t\t\t\tmodulesList.push(moduleObj.name);\n \t\t\t}\n \t\t}\n \t\tmodulesList.sort(function (a, b) {\n \t\t\treturn a.localeCompare(b);\n \t\t});\n\n \t\t// Initialize QUnit elements\n \t\tappendInterface();\n \t});\n\n \tQUnit.done(function (details) {\n \t\tvar banner = id(\"qunit-banner\"),\n \t\t tests = id(\"qunit-tests\"),\n \t\t abortButton = id(\"qunit-abort-tests-button\"),\n \t\t totalTests = stats.passedTests + stats.skippedTests + stats.todoTests + stats.failedTests,\n \t\t html = [totalTests, \" tests completed in \", details.runtime, \" milliseconds, with \", stats.failedTests, \" failed, \", stats.skippedTests, \" skipped, and \", stats.todoTests, \" todo.
        \", \"\", details.passed, \" assertions of \", details.total, \" passed, \", details.failed, \" failed.\"].join(\"\"),\n \t\t test$$1,\n \t\t assertLi,\n \t\t assertList;\n\n \t\t// Update remaining tests to aborted\n \t\tif (abortButton && abortButton.disabled) {\n \t\t\thtml = \"Tests aborted after \" + details.runtime + \" milliseconds.\";\n\n \t\t\tfor (var i = 0; i < tests.children.length; i++) {\n \t\t\t\ttest$$1 = tests.children[i];\n \t\t\t\tif (test$$1.className === \"\" || test$$1.className === \"running\") {\n \t\t\t\t\ttest$$1.className = \"aborted\";\n \t\t\t\t\tassertList = test$$1.getElementsByTagName(\"ol\")[0];\n \t\t\t\t\tassertLi = document.createElement(\"li\");\n \t\t\t\t\tassertLi.className = \"fail\";\n \t\t\t\t\tassertLi.innerHTML = \"Test aborted.\";\n \t\t\t\t\tassertList.appendChild(assertLi);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n\n \t\tif (banner && (!abortButton || abortButton.disabled === false)) {\n \t\t\tbanner.className = stats.failedTests ? \"qunit-fail\" : \"qunit-pass\";\n \t\t}\n\n \t\tif (abortButton) {\n \t\t\tabortButton.parentNode.removeChild(abortButton);\n \t\t}\n\n \t\tif (tests) {\n \t\t\tid(\"qunit-testresult-display\").innerHTML = html;\n \t\t}\n\n \t\tif (config.altertitle && document.title) {\n\n \t\t\t// Show ✖ for good, ✔ for bad suite result in title\n \t\t\t// use escape sequences in case file gets loaded with non-utf-8\n \t\t\t// charset\n \t\t\tdocument.title = [stats.failedTests ? \"\\u2716\" : \"\\u2714\", document.title.replace(/^[\\u2714\\u2716] /i, \"\")].join(\" \");\n \t\t}\n\n \t\t// Scroll back to top to show results\n \t\tif (config.scrolltop && window$1.scrollTo) {\n \t\t\twindow$1.scrollTo(0, 0);\n \t\t}\n \t});\n\n \tfunction getNameHtml(name, module) {\n \t\tvar nameHtml = \"\";\n\n \t\tif (module) {\n \t\t\tnameHtml = \"\" + escapeText(module) + \": \";\n \t\t}\n\n \t\tnameHtml += \"\" + escapeText(name) + \"\";\n\n \t\treturn nameHtml;\n \t}\n\n \tfunction getProgressHtml(runtime, stats, total) {\n \t\tvar completed = stats.passedTests + stats.skippedTests + stats.todoTests + stats.failedTests;\n\n \t\treturn [\"
        \", completed, \" / \", total, \" tests completed in \", runtime, \" milliseconds, with \", stats.failedTests, \" failed, \", stats.skippedTests, \" skipped, and \", stats.todoTests, \" todo.\"].join(\"\");\n \t}\n\n \tQUnit.testStart(function (details) {\n \t\tvar running, bad;\n\n \t\tappendTest(details.name, details.testId, details.module);\n\n \t\trunning = id(\"qunit-testresult-display\");\n\n \t\tif (running) {\n \t\t\taddClass(running, \"running\");\n\n \t\t\tbad = QUnit.config.reorder && details.previousFailure;\n\n \t\t\trunning.innerHTML = [bad ? \"Rerunning previously failed test:
        \" : \"Running:
        \", getNameHtml(details.name, details.module), getProgressHtml(now() - config.started, stats, Test.count)].join(\"\");\n \t\t}\n \t});\n\n \tfunction stripHtml(string) {\n\n \t\t// Strip tags, html entity and whitespaces\n \t\treturn string.replace(/<\\/?[^>]+(>|$)/g, \"\").replace(/"/g, \"\").replace(/\\s+/g, \"\");\n \t}\n\n \tQUnit.log(function (details) {\n \t\tvar assertList,\n \t\t assertLi,\n \t\t message,\n \t\t expected,\n \t\t actual,\n \t\t diff$$1,\n \t\t showDiff = false,\n \t\t testItem = id(\"qunit-test-output-\" + details.testId);\n\n \t\tif (!testItem) {\n \t\t\treturn;\n \t\t}\n\n \t\tmessage = escapeText(details.message) || (details.result ? \"okay\" : \"failed\");\n \t\tmessage = \"\" + message + \"\";\n \t\tmessage += \"@ \" + details.runtime + \" ms\";\n\n \t\t// The pushFailure doesn't provide details.expected\n \t\t// when it calls, it's implicit to also not show expected and diff stuff\n \t\t// Also, we need to check details.expected existence, as it can exist and be undefined\n \t\tif (!details.result && hasOwn$$1.call(details, \"expected\")) {\n \t\t\tif (details.negative) {\n \t\t\t\texpected = \"NOT \" + QUnit.dump.parse(details.expected);\n \t\t\t} else {\n \t\t\t\texpected = QUnit.dump.parse(details.expected);\n \t\t\t}\n\n \t\t\tactual = QUnit.dump.parse(details.actual);\n \t\t\tmessage += \"\";\n\n \t\t\tif (actual !== expected) {\n\n \t\t\t\tmessage += \"\";\n\n \t\t\t\tif (typeof details.actual === \"number\" && typeof details.expected === \"number\") {\n \t\t\t\t\tif (!isNaN(details.actual) && !isNaN(details.expected)) {\n \t\t\t\t\t\tshowDiff = true;\n \t\t\t\t\t\tdiff$$1 = details.actual - details.expected;\n \t\t\t\t\t\tdiff$$1 = (diff$$1 > 0 ? \"+\" : \"\") + diff$$1;\n \t\t\t\t\t}\n \t\t\t\t} else if (typeof details.actual !== \"boolean\" && typeof details.expected !== \"boolean\") {\n \t\t\t\t\tdiff$$1 = QUnit.diff(expected, actual);\n\n \t\t\t\t\t// don't show diff if there is zero overlap\n \t\t\t\t\tshowDiff = stripHtml(diff$$1).length !== stripHtml(expected).length + stripHtml(actual).length;\n \t\t\t\t}\n\n \t\t\t\tif (showDiff) {\n \t\t\t\t\tmessage += \"\";\n \t\t\t\t}\n \t\t\t} else if (expected.indexOf(\"[object Array]\") !== -1 || expected.indexOf(\"[object Object]\") !== -1) {\n \t\t\t\tmessage += \"\";\n \t\t\t} else {\n \t\t\t\tmessage += \"\";\n \t\t\t}\n\n \t\t\tif (details.source) {\n \t\t\t\tmessage += \"\";\n \t\t\t}\n\n \t\t\tmessage += \"
        Expected:
        \" + escapeText(expected) + \"
        Result:
        \" + escapeText(actual) + \"
        Diff:
        \" + diff$$1 + \"
        Message: \" + \"Diff suppressed as the depth of object is more than current max depth (\" + QUnit.config.maxDepth + \").

        Hint: Use QUnit.dump.maxDepth to \" + \" run with a higher max depth or \" + \"Rerun without max depth.

        Message: \" + \"Diff suppressed as the expected and actual results have an equivalent\" + \" serialization
        Source:
        \" + escapeText(details.source) + \"
        \";\n\n \t\t\t// This occurs when pushFailure is set and we have an extracted stack trace\n \t\t} else if (!details.result && details.source) {\n \t\t\tmessage += \"\" + \"\" + \"
        Source:
        \" + escapeText(details.source) + \"
        \";\n \t\t}\n\n \t\tassertList = testItem.getElementsByTagName(\"ol\")[0];\n\n \t\tassertLi = document.createElement(\"li\");\n \t\tassertLi.className = details.result ? \"pass\" : \"fail\";\n \t\tassertLi.innerHTML = message;\n \t\tassertList.appendChild(assertLi);\n \t});\n\n \tQUnit.testDone(function (details) {\n \t\tvar testTitle,\n \t\t time,\n \t\t testItem,\n \t\t assertList,\n \t\t status,\n \t\t good,\n \t\t bad,\n \t\t testCounts,\n \t\t skipped,\n \t\t sourceName,\n \t\t tests = id(\"qunit-tests\");\n\n \t\tif (!tests) {\n \t\t\treturn;\n \t\t}\n\n \t\ttestItem = id(\"qunit-test-output-\" + details.testId);\n\n \t\tremoveClass(testItem, \"running\");\n\n \t\tif (details.failed > 0) {\n \t\t\tstatus = \"failed\";\n \t\t} else if (details.todo) {\n \t\t\tstatus = \"todo\";\n \t\t} else {\n \t\t\tstatus = details.skipped ? \"skipped\" : \"passed\";\n \t\t}\n\n \t\tassertList = testItem.getElementsByTagName(\"ol\")[0];\n\n \t\tgood = details.passed;\n \t\tbad = details.failed;\n\n \t\t// This test passed if it has no unexpected failed assertions\n \t\tvar testPassed = details.failed > 0 ? details.todo : !details.todo;\n\n \t\tif (testPassed) {\n\n \t\t\t// Collapse the passing tests\n \t\t\taddClass(assertList, \"qunit-collapsed\");\n \t\t} else if (config.collapse) {\n \t\t\tif (!collapseNext) {\n\n \t\t\t\t// Skip collapsing the first failing test\n \t\t\t\tcollapseNext = true;\n \t\t\t} else {\n\n \t\t\t\t// Collapse remaining tests\n \t\t\t\taddClass(assertList, \"qunit-collapsed\");\n \t\t\t}\n \t\t}\n\n \t\t// The testItem.firstChild is the test name\n \t\ttestTitle = testItem.firstChild;\n\n \t\ttestCounts = bad ? \"\" + bad + \", \" + \"\" + good + \", \" : \"\";\n\n \t\ttestTitle.innerHTML += \" (\" + testCounts + details.assertions.length + \")\";\n\n \t\tif (details.skipped) {\n \t\t\tstats.skippedTests++;\n\n \t\t\ttestItem.className = \"skipped\";\n \t\t\tskipped = document.createElement(\"em\");\n \t\t\tskipped.className = \"qunit-skipped-label\";\n \t\t\tskipped.innerHTML = \"skipped\";\n \t\t\ttestItem.insertBefore(skipped, testTitle);\n \t\t} else {\n \t\t\taddEvent(testTitle, \"click\", function () {\n \t\t\t\ttoggleClass(assertList, \"qunit-collapsed\");\n \t\t\t});\n\n \t\t\ttestItem.className = testPassed ? \"pass\" : \"fail\";\n\n \t\t\tif (details.todo) {\n \t\t\t\tvar todoLabel = document.createElement(\"em\");\n \t\t\t\ttodoLabel.className = \"qunit-todo-label\";\n \t\t\t\ttodoLabel.innerHTML = \"todo\";\n \t\t\t\ttestItem.className += \" todo\";\n \t\t\t\ttestItem.insertBefore(todoLabel, testTitle);\n \t\t\t}\n\n \t\t\ttime = document.createElement(\"span\");\n \t\t\ttime.className = \"runtime\";\n \t\t\ttime.innerHTML = details.runtime + \" ms\";\n \t\t\ttestItem.insertBefore(time, assertList);\n\n \t\t\tif (!testPassed) {\n \t\t\t\tstats.failedTests++;\n \t\t\t} else if (details.todo) {\n \t\t\t\tstats.todoTests++;\n \t\t\t} else {\n \t\t\t\tstats.passedTests++;\n \t\t\t}\n \t\t}\n\n \t\t// Show the source of the test when showing assertions\n \t\tif (details.source) {\n \t\t\tsourceName = document.createElement(\"p\");\n \t\t\tsourceName.innerHTML = \"Source: \" + escapeText(details.source);\n \t\t\taddClass(sourceName, \"qunit-source\");\n \t\t\tif (testPassed) {\n \t\t\t\taddClass(sourceName, \"qunit-collapsed\");\n \t\t\t}\n \t\t\taddEvent(testTitle, \"click\", function () {\n \t\t\t\ttoggleClass(sourceName, \"qunit-collapsed\");\n \t\t\t});\n \t\t\ttestItem.appendChild(sourceName);\n \t\t}\n\n \t\tif (config.hidepassed && status === \"passed\") {\n\n \t\t\t// use removeChild instead of remove because of support\n \t\t\thiddenTests.push(testItem);\n\n \t\t\ttests.removeChild(testItem);\n \t\t}\n \t});\n\n \t// Avoid readyState issue with phantomjs\n \t// Ref: #818\n \tvar notPhantom = function (p) {\n \t\treturn !(p && p.version && p.version.major > 0);\n \t}(window$1.phantom);\n\n \tif (notPhantom && document.readyState === \"complete\") {\n \t\tQUnit.load();\n \t} else {\n \t\taddEvent(window$1, \"load\", QUnit.load);\n \t}\n\n \t// Wrap window.onerror. We will call the original window.onerror to see if\n \t// the existing handler fully handles the error; if not, we will call the\n \t// QUnit.onError function.\n \tvar originalWindowOnError = window$1.onerror;\n\n \t// Cover uncaught exceptions\n \t// Returning true will suppress the default browser handler,\n \t// returning false will let it run.\n \twindow$1.onerror = function (message, fileName, lineNumber, columnNumber, errorObj) {\n \t\tvar ret = false;\n \t\tif (originalWindowOnError) {\n \t\t\tfor (var _len = arguments.length, args = Array(_len > 5 ? _len - 5 : 0), _key = 5; _key < _len; _key++) {\n \t\t\t\targs[_key - 5] = arguments[_key];\n \t\t\t}\n\n \t\t\tret = originalWindowOnError.call.apply(originalWindowOnError, [this, message, fileName, lineNumber, columnNumber, errorObj].concat(args));\n \t\t}\n\n \t\t// Treat return value as window.onerror itself does,\n \t\t// Only do our handling if not suppressed.\n \t\tif (ret !== true) {\n \t\t\tvar error = {\n \t\t\t\tmessage: message,\n \t\t\t\tfileName: fileName,\n \t\t\t\tlineNumber: lineNumber\n \t\t\t};\n\n \t\t\t// According to\n \t\t\t// https://blog.sentry.io/2016/01/04/client-javascript-reporting-window-onerror,\n \t\t\t// most modern browsers support an errorObj argument; use that to\n \t\t\t// get a full stack trace if it's available.\n \t\t\tif (errorObj && errorObj.stack) {\n \t\t\t\terror.stacktrace = extractStacktrace(errorObj, 0);\n \t\t\t}\n\n \t\t\tret = QUnit.onError(error);\n \t\t}\n\n \t\treturn ret;\n \t};\n\n \t// Listen for unhandled rejections, and call QUnit.onUnhandledRejection\n \twindow$1.addEventListener(\"unhandledrejection\", function (event) {\n \t\tQUnit.onUnhandledRejection(event.reason);\n \t});\n })();\n\n /*\n * This file is a modified version of google-diff-match-patch's JavaScript implementation\n * (https://code.google.com/p/google-diff-match-patch/source/browse/trunk/javascript/diff_match_patch_uncompressed.js),\n * modifications are licensed as more fully set forth in LICENSE.txt.\n *\n * The original source of google-diff-match-patch is attributable and licensed as follows:\n *\n * Copyright 2006 Google Inc.\n * https://code.google.com/p/google-diff-match-patch/\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 * https://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 * More Info:\n * https://code.google.com/p/google-diff-match-patch/\n *\n * Usage: QUnit.diff(expected, actual)\n *\n */\n QUnit.diff = function () {\n \tfunction DiffMatchPatch() {}\n\n \t// DIFF FUNCTIONS\n\n \t/**\n * The data structure representing a diff is an array of tuples:\n * [[DIFF_DELETE, 'Hello'], [DIFF_INSERT, 'Goodbye'], [DIFF_EQUAL, ' world.']]\n * which means: delete 'Hello', add 'Goodbye' and keep ' world.'\n */\n \tvar DIFF_DELETE = -1,\n \t DIFF_INSERT = 1,\n \t DIFF_EQUAL = 0;\n\n \t/**\n * Find the differences between two texts. Simplifies the problem by stripping\n * any common prefix or suffix off the texts before diffing.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {boolean=} optChecklines Optional speedup flag. If present and false,\n * then don't run a line-level diff first to identify the changed areas.\n * Defaults to true, which does a faster, slightly less optimal diff.\n * @return {!Array.} Array of diff tuples.\n */\n \tDiffMatchPatch.prototype.DiffMain = function (text1, text2, optChecklines) {\n \t\tvar deadline, checklines, commonlength, commonprefix, commonsuffix, diffs;\n\n \t\t// The diff must be complete in up to 1 second.\n \t\tdeadline = new Date().getTime() + 1000;\n\n \t\t// Check for null inputs.\n \t\tif (text1 === null || text2 === null) {\n \t\t\tthrow new Error(\"Null input. (DiffMain)\");\n \t\t}\n\n \t\t// Check for equality (speedup).\n \t\tif (text1 === text2) {\n \t\t\tif (text1) {\n \t\t\t\treturn [[DIFF_EQUAL, text1]];\n \t\t\t}\n \t\t\treturn [];\n \t\t}\n\n \t\tif (typeof optChecklines === \"undefined\") {\n \t\t\toptChecklines = true;\n \t\t}\n\n \t\tchecklines = optChecklines;\n\n \t\t// Trim off common prefix (speedup).\n \t\tcommonlength = this.diffCommonPrefix(text1, text2);\n \t\tcommonprefix = text1.substring(0, commonlength);\n \t\ttext1 = text1.substring(commonlength);\n \t\ttext2 = text2.substring(commonlength);\n\n \t\t// Trim off common suffix (speedup).\n \t\tcommonlength = this.diffCommonSuffix(text1, text2);\n \t\tcommonsuffix = text1.substring(text1.length - commonlength);\n \t\ttext1 = text1.substring(0, text1.length - commonlength);\n \t\ttext2 = text2.substring(0, text2.length - commonlength);\n\n \t\t// Compute the diff on the middle block.\n \t\tdiffs = this.diffCompute(text1, text2, checklines, deadline);\n\n \t\t// Restore the prefix and suffix.\n \t\tif (commonprefix) {\n \t\t\tdiffs.unshift([DIFF_EQUAL, commonprefix]);\n \t\t}\n \t\tif (commonsuffix) {\n \t\t\tdiffs.push([DIFF_EQUAL, commonsuffix]);\n \t\t}\n \t\tthis.diffCleanupMerge(diffs);\n \t\treturn diffs;\n \t};\n\n \t/**\n * Reduce the number of edits by eliminating operationally trivial equalities.\n * @param {!Array.} diffs Array of diff tuples.\n */\n \tDiffMatchPatch.prototype.diffCleanupEfficiency = function (diffs) {\n \t\tvar changes, equalities, equalitiesLength, lastequality, pointer, preIns, preDel, postIns, postDel;\n \t\tchanges = false;\n \t\tequalities = []; // Stack of indices where equalities are found.\n \t\tequalitiesLength = 0; // Keeping our own length var is faster in JS.\n \t\t/** @type {?string} */\n \t\tlastequality = null;\n\n \t\t// Always equal to diffs[equalities[equalitiesLength - 1]][1]\n \t\tpointer = 0; // Index of current position.\n\n \t\t// Is there an insertion operation before the last equality.\n \t\tpreIns = false;\n\n \t\t// Is there a deletion operation before the last equality.\n \t\tpreDel = false;\n\n \t\t// Is there an insertion operation after the last equality.\n \t\tpostIns = false;\n\n \t\t// Is there a deletion operation after the last equality.\n \t\tpostDel = false;\n \t\twhile (pointer < diffs.length) {\n\n \t\t\t// Equality found.\n \t\t\tif (diffs[pointer][0] === DIFF_EQUAL) {\n \t\t\t\tif (diffs[pointer][1].length < 4 && (postIns || postDel)) {\n\n \t\t\t\t\t// Candidate found.\n \t\t\t\t\tequalities[equalitiesLength++] = pointer;\n \t\t\t\t\tpreIns = postIns;\n \t\t\t\t\tpreDel = postDel;\n \t\t\t\t\tlastequality = diffs[pointer][1];\n \t\t\t\t} else {\n\n \t\t\t\t\t// Not a candidate, and can never become one.\n \t\t\t\t\tequalitiesLength = 0;\n \t\t\t\t\tlastequality = null;\n \t\t\t\t}\n \t\t\t\tpostIns = postDel = false;\n\n \t\t\t\t// An insertion or deletion.\n \t\t\t} else {\n\n \t\t\t\tif (diffs[pointer][0] === DIFF_DELETE) {\n \t\t\t\t\tpostDel = true;\n \t\t\t\t} else {\n \t\t\t\t\tpostIns = true;\n \t\t\t\t}\n\n \t\t\t\t/*\n * Five types to be split:\n * ABXYCD\n * AXCD\n * ABXC\n * AXCD\n * ABXC\n */\n \t\t\t\tif (lastequality && (preIns && preDel && postIns && postDel || lastequality.length < 2 && preIns + preDel + postIns + postDel === 3)) {\n\n \t\t\t\t\t// Duplicate record.\n \t\t\t\t\tdiffs.splice(equalities[equalitiesLength - 1], 0, [DIFF_DELETE, lastequality]);\n\n \t\t\t\t\t// Change second copy to insert.\n \t\t\t\t\tdiffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;\n \t\t\t\t\tequalitiesLength--; // Throw away the equality we just deleted;\n \t\t\t\t\tlastequality = null;\n \t\t\t\t\tif (preIns && preDel) {\n\n \t\t\t\t\t\t// No changes made which could affect previous entry, keep going.\n \t\t\t\t\t\tpostIns = postDel = true;\n \t\t\t\t\t\tequalitiesLength = 0;\n \t\t\t\t\t} else {\n \t\t\t\t\t\tequalitiesLength--; // Throw away the previous equality.\n \t\t\t\t\t\tpointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1;\n \t\t\t\t\t\tpostIns = postDel = false;\n \t\t\t\t\t}\n \t\t\t\t\tchanges = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tpointer++;\n \t\t}\n\n \t\tif (changes) {\n \t\t\tthis.diffCleanupMerge(diffs);\n \t\t}\n \t};\n\n \t/**\n * Convert a diff array into a pretty HTML report.\n * @param {!Array.} diffs Array of diff tuples.\n * @param {integer} string to be beautified.\n * @return {string} HTML representation.\n */\n \tDiffMatchPatch.prototype.diffPrettyHtml = function (diffs) {\n \t\tvar op,\n \t\t data,\n \t\t x,\n \t\t html = [];\n \t\tfor (x = 0; x < diffs.length; x++) {\n \t\t\top = diffs[x][0]; // Operation (insert, delete, equal)\n \t\t\tdata = diffs[x][1]; // Text of change.\n \t\t\tswitch (op) {\n \t\t\t\tcase DIFF_INSERT:\n \t\t\t\t\thtml[x] = \"\" + escapeText(data) + \"\";\n \t\t\t\t\tbreak;\n \t\t\t\tcase DIFF_DELETE:\n \t\t\t\t\thtml[x] = \"\" + escapeText(data) + \"\";\n \t\t\t\t\tbreak;\n \t\t\t\tcase DIFF_EQUAL:\n \t\t\t\t\thtml[x] = \"\" + escapeText(data) + \"\";\n \t\t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\treturn html.join(\"\");\n \t};\n\n \t/**\n * Determine the common prefix of two strings.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the start of each\n * string.\n */\n \tDiffMatchPatch.prototype.diffCommonPrefix = function (text1, text2) {\n \t\tvar pointermid, pointermax, pointermin, pointerstart;\n\n \t\t// Quick check for common null cases.\n \t\tif (!text1 || !text2 || text1.charAt(0) !== text2.charAt(0)) {\n \t\t\treturn 0;\n \t\t}\n\n \t\t// Binary search.\n \t\t// Performance analysis: https://neil.fraser.name/news/2007/10/09/\n \t\tpointermin = 0;\n \t\tpointermax = Math.min(text1.length, text2.length);\n \t\tpointermid = pointermax;\n \t\tpointerstart = 0;\n \t\twhile (pointermin < pointermid) {\n \t\t\tif (text1.substring(pointerstart, pointermid) === text2.substring(pointerstart, pointermid)) {\n \t\t\t\tpointermin = pointermid;\n \t\t\t\tpointerstart = pointermin;\n \t\t\t} else {\n \t\t\t\tpointermax = pointermid;\n \t\t\t}\n \t\t\tpointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n \t\t}\n \t\treturn pointermid;\n \t};\n\n \t/**\n * Determine the common suffix of two strings.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the end of each string.\n */\n \tDiffMatchPatch.prototype.diffCommonSuffix = function (text1, text2) {\n \t\tvar pointermid, pointermax, pointermin, pointerend;\n\n \t\t// Quick check for common null cases.\n \t\tif (!text1 || !text2 || text1.charAt(text1.length - 1) !== text2.charAt(text2.length - 1)) {\n \t\t\treturn 0;\n \t\t}\n\n \t\t// Binary search.\n \t\t// Performance analysis: https://neil.fraser.name/news/2007/10/09/\n \t\tpointermin = 0;\n \t\tpointermax = Math.min(text1.length, text2.length);\n \t\tpointermid = pointermax;\n \t\tpointerend = 0;\n \t\twhile (pointermin < pointermid) {\n \t\t\tif (text1.substring(text1.length - pointermid, text1.length - pointerend) === text2.substring(text2.length - pointermid, text2.length - pointerend)) {\n \t\t\t\tpointermin = pointermid;\n \t\t\t\tpointerend = pointermin;\n \t\t\t} else {\n \t\t\t\tpointermax = pointermid;\n \t\t\t}\n \t\t\tpointermid = Math.floor((pointermax - pointermin) / 2 + pointermin);\n \t\t}\n \t\treturn pointermid;\n \t};\n\n \t/**\n * Find the differences between two texts. Assumes that the texts do not\n * have any common prefix or suffix.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {boolean} checklines Speedup flag. If false, then don't run a\n * line-level diff first to identify the changed areas.\n * If true, then run a faster, slightly less optimal diff.\n * @param {number} deadline Time when the diff should be complete by.\n * @return {!Array.} Array of diff tuples.\n * @private\n */\n \tDiffMatchPatch.prototype.diffCompute = function (text1, text2, checklines, deadline) {\n \t\tvar diffs, longtext, shorttext, i, hm, text1A, text2A, text1B, text2B, midCommon, diffsA, diffsB;\n\n \t\tif (!text1) {\n\n \t\t\t// Just add some text (speedup).\n \t\t\treturn [[DIFF_INSERT, text2]];\n \t\t}\n\n \t\tif (!text2) {\n\n \t\t\t// Just delete some text (speedup).\n \t\t\treturn [[DIFF_DELETE, text1]];\n \t\t}\n\n \t\tlongtext = text1.length > text2.length ? text1 : text2;\n \t\tshorttext = text1.length > text2.length ? text2 : text1;\n \t\ti = longtext.indexOf(shorttext);\n \t\tif (i !== -1) {\n\n \t\t\t// Shorter text is inside the longer text (speedup).\n \t\t\tdiffs = [[DIFF_INSERT, longtext.substring(0, i)], [DIFF_EQUAL, shorttext], [DIFF_INSERT, longtext.substring(i + shorttext.length)]];\n\n \t\t\t// Swap insertions for deletions if diff is reversed.\n \t\t\tif (text1.length > text2.length) {\n \t\t\t\tdiffs[0][0] = diffs[2][0] = DIFF_DELETE;\n \t\t\t}\n \t\t\treturn diffs;\n \t\t}\n\n \t\tif (shorttext.length === 1) {\n\n \t\t\t// Single character string.\n \t\t\t// After the previous speedup, the character can't be an equality.\n \t\t\treturn [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];\n \t\t}\n\n \t\t// Check to see if the problem can be split in two.\n \t\thm = this.diffHalfMatch(text1, text2);\n \t\tif (hm) {\n\n \t\t\t// A half-match was found, sort out the return data.\n \t\t\ttext1A = hm[0];\n \t\t\ttext1B = hm[1];\n \t\t\ttext2A = hm[2];\n \t\t\ttext2B = hm[3];\n \t\t\tmidCommon = hm[4];\n\n \t\t\t// Send both pairs off for separate processing.\n \t\t\tdiffsA = this.DiffMain(text1A, text2A, checklines, deadline);\n \t\t\tdiffsB = this.DiffMain(text1B, text2B, checklines, deadline);\n\n \t\t\t// Merge the results.\n \t\t\treturn diffsA.concat([[DIFF_EQUAL, midCommon]], diffsB);\n \t\t}\n\n \t\tif (checklines && text1.length > 100 && text2.length > 100) {\n \t\t\treturn this.diffLineMode(text1, text2, deadline);\n \t\t}\n\n \t\treturn this.diffBisect(text1, text2, deadline);\n \t};\n\n \t/**\n * Do the two texts share a substring which is at least half the length of the\n * longer text?\n * This speedup can produce non-minimal diffs.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {Array.} Five element Array, containing the prefix of\n * text1, the suffix of text1, the prefix of text2, the suffix of\n * text2 and the common middle. Or null if there was no match.\n * @private\n */\n \tDiffMatchPatch.prototype.diffHalfMatch = function (text1, text2) {\n \t\tvar longtext, shorttext, dmp, text1A, text2B, text2A, text1B, midCommon, hm1, hm2, hm;\n\n \t\tlongtext = text1.length > text2.length ? text1 : text2;\n \t\tshorttext = text1.length > text2.length ? text2 : text1;\n \t\tif (longtext.length < 4 || shorttext.length * 2 < longtext.length) {\n \t\t\treturn null; // Pointless.\n \t\t}\n \t\tdmp = this; // 'this' becomes 'window' in a closure.\n\n \t\t/**\n * Does a substring of shorttext exist within longtext such that the substring\n * is at least half the length of longtext?\n * Closure, but does not reference any external variables.\n * @param {string} longtext Longer string.\n * @param {string} shorttext Shorter string.\n * @param {number} i Start index of quarter length substring within longtext.\n * @return {Array.} Five element Array, containing the prefix of\n * longtext, the suffix of longtext, the prefix of shorttext, the suffix\n * of shorttext and the common middle. Or null if there was no match.\n * @private\n */\n \t\tfunction diffHalfMatchI(longtext, shorttext, i) {\n \t\t\tvar seed, j, bestCommon, prefixLength, suffixLength, bestLongtextA, bestLongtextB, bestShorttextA, bestShorttextB;\n\n \t\t\t// Start with a 1/4 length substring at position i as a seed.\n \t\t\tseed = longtext.substring(i, i + Math.floor(longtext.length / 4));\n \t\t\tj = -1;\n \t\t\tbestCommon = \"\";\n \t\t\twhile ((j = shorttext.indexOf(seed, j + 1)) !== -1) {\n \t\t\t\tprefixLength = dmp.diffCommonPrefix(longtext.substring(i), shorttext.substring(j));\n \t\t\t\tsuffixLength = dmp.diffCommonSuffix(longtext.substring(0, i), shorttext.substring(0, j));\n \t\t\t\tif (bestCommon.length < suffixLength + prefixLength) {\n \t\t\t\t\tbestCommon = shorttext.substring(j - suffixLength, j) + shorttext.substring(j, j + prefixLength);\n \t\t\t\t\tbestLongtextA = longtext.substring(0, i - suffixLength);\n \t\t\t\t\tbestLongtextB = longtext.substring(i + prefixLength);\n \t\t\t\t\tbestShorttextA = shorttext.substring(0, j - suffixLength);\n \t\t\t\t\tbestShorttextB = shorttext.substring(j + prefixLength);\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (bestCommon.length * 2 >= longtext.length) {\n \t\t\t\treturn [bestLongtextA, bestLongtextB, bestShorttextA, bestShorttextB, bestCommon];\n \t\t\t} else {\n \t\t\t\treturn null;\n \t\t\t}\n \t\t}\n\n \t\t// First check if the second quarter is the seed for a half-match.\n \t\thm1 = diffHalfMatchI(longtext, shorttext, Math.ceil(longtext.length / 4));\n\n \t\t// Check again based on the third quarter.\n \t\thm2 = diffHalfMatchI(longtext, shorttext, Math.ceil(longtext.length / 2));\n \t\tif (!hm1 && !hm2) {\n \t\t\treturn null;\n \t\t} else if (!hm2) {\n \t\t\thm = hm1;\n \t\t} else if (!hm1) {\n \t\t\thm = hm2;\n \t\t} else {\n\n \t\t\t// Both matched. Select the longest.\n \t\t\thm = hm1[4].length > hm2[4].length ? hm1 : hm2;\n \t\t}\n\n \t\t// A half-match was found, sort out the return data.\n \t\tif (text1.length > text2.length) {\n \t\t\ttext1A = hm[0];\n \t\t\ttext1B = hm[1];\n \t\t\ttext2A = hm[2];\n \t\t\ttext2B = hm[3];\n \t\t} else {\n \t\t\ttext2A = hm[0];\n \t\t\ttext2B = hm[1];\n \t\t\ttext1A = hm[2];\n \t\t\ttext1B = hm[3];\n \t\t}\n \t\tmidCommon = hm[4];\n \t\treturn [text1A, text1B, text2A, text2B, midCommon];\n \t};\n\n \t/**\n * Do a quick line-level diff on both strings, then rediff the parts for\n * greater accuracy.\n * This speedup can produce non-minimal diffs.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {number} deadline Time when the diff should be complete by.\n * @return {!Array.} Array of diff tuples.\n * @private\n */\n \tDiffMatchPatch.prototype.diffLineMode = function (text1, text2, deadline) {\n \t\tvar a, diffs, linearray, pointer, countInsert, countDelete, textInsert, textDelete, j;\n\n \t\t// Scan the text on a line-by-line basis first.\n \t\ta = this.diffLinesToChars(text1, text2);\n \t\ttext1 = a.chars1;\n \t\ttext2 = a.chars2;\n \t\tlinearray = a.lineArray;\n\n \t\tdiffs = this.DiffMain(text1, text2, false, deadline);\n\n \t\t// Convert the diff back to original text.\n \t\tthis.diffCharsToLines(diffs, linearray);\n\n \t\t// Eliminate freak matches (e.g. blank lines)\n \t\tthis.diffCleanupSemantic(diffs);\n\n \t\t// Rediff any replacement blocks, this time character-by-character.\n \t\t// Add a dummy entry at the end.\n \t\tdiffs.push([DIFF_EQUAL, \"\"]);\n \t\tpointer = 0;\n \t\tcountDelete = 0;\n \t\tcountInsert = 0;\n \t\ttextDelete = \"\";\n \t\ttextInsert = \"\";\n \t\twhile (pointer < diffs.length) {\n \t\t\tswitch (diffs[pointer][0]) {\n \t\t\t\tcase DIFF_INSERT:\n \t\t\t\t\tcountInsert++;\n \t\t\t\t\ttextInsert += diffs[pointer][1];\n \t\t\t\t\tbreak;\n \t\t\t\tcase DIFF_DELETE:\n \t\t\t\t\tcountDelete++;\n \t\t\t\t\ttextDelete += diffs[pointer][1];\n \t\t\t\t\tbreak;\n \t\t\t\tcase DIFF_EQUAL:\n\n \t\t\t\t\t// Upon reaching an equality, check for prior redundancies.\n \t\t\t\t\tif (countDelete >= 1 && countInsert >= 1) {\n\n \t\t\t\t\t\t// Delete the offending records and add the merged ones.\n \t\t\t\t\t\tdiffs.splice(pointer - countDelete - countInsert, countDelete + countInsert);\n \t\t\t\t\t\tpointer = pointer - countDelete - countInsert;\n \t\t\t\t\t\ta = this.DiffMain(textDelete, textInsert, false, deadline);\n \t\t\t\t\t\tfor (j = a.length - 1; j >= 0; j--) {\n \t\t\t\t\t\t\tdiffs.splice(pointer, 0, a[j]);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tpointer = pointer + a.length;\n \t\t\t\t\t}\n \t\t\t\t\tcountInsert = 0;\n \t\t\t\t\tcountDelete = 0;\n \t\t\t\t\ttextDelete = \"\";\n \t\t\t\t\ttextInsert = \"\";\n \t\t\t\t\tbreak;\n \t\t\t}\n \t\t\tpointer++;\n \t\t}\n \t\tdiffs.pop(); // Remove the dummy entry at the end.\n\n \t\treturn diffs;\n \t};\n\n \t/**\n * Find the 'middle snake' of a diff, split the problem in two\n * and return the recursively constructed diff.\n * See Myers 1986 paper: An O(ND) Difference Algorithm and Its Variations.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {number} deadline Time at which to bail if not yet complete.\n * @return {!Array.} Array of diff tuples.\n * @private\n */\n \tDiffMatchPatch.prototype.diffBisect = function (text1, text2, deadline) {\n \t\tvar text1Length, text2Length, maxD, vOffset, vLength, v1, v2, x, delta, front, k1start, k1end, k2start, k2end, k2Offset, k1Offset, x1, x2, y1, y2, d, k1, k2;\n\n \t\t// Cache the text lengths to prevent multiple calls.\n \t\ttext1Length = text1.length;\n \t\ttext2Length = text2.length;\n \t\tmaxD = Math.ceil((text1Length + text2Length) / 2);\n \t\tvOffset = maxD;\n \t\tvLength = 2 * maxD;\n \t\tv1 = new Array(vLength);\n \t\tv2 = new Array(vLength);\n\n \t\t// Setting all elements to -1 is faster in Chrome & Firefox than mixing\n \t\t// integers and undefined.\n \t\tfor (x = 0; x < vLength; x++) {\n \t\t\tv1[x] = -1;\n \t\t\tv2[x] = -1;\n \t\t}\n \t\tv1[vOffset + 1] = 0;\n \t\tv2[vOffset + 1] = 0;\n \t\tdelta = text1Length - text2Length;\n\n \t\t// If the total number of characters is odd, then the front path will collide\n \t\t// with the reverse path.\n \t\tfront = delta % 2 !== 0;\n\n \t\t// Offsets for start and end of k loop.\n \t\t// Prevents mapping of space beyond the grid.\n \t\tk1start = 0;\n \t\tk1end = 0;\n \t\tk2start = 0;\n \t\tk2end = 0;\n \t\tfor (d = 0; d < maxD; d++) {\n\n \t\t\t// Bail out if deadline is reached.\n \t\t\tif (new Date().getTime() > deadline) {\n \t\t\t\tbreak;\n \t\t\t}\n\n \t\t\t// Walk the front path one step.\n \t\t\tfor (k1 = -d + k1start; k1 <= d - k1end; k1 += 2) {\n \t\t\t\tk1Offset = vOffset + k1;\n \t\t\t\tif (k1 === -d || k1 !== d && v1[k1Offset - 1] < v1[k1Offset + 1]) {\n \t\t\t\t\tx1 = v1[k1Offset + 1];\n \t\t\t\t} else {\n \t\t\t\t\tx1 = v1[k1Offset - 1] + 1;\n \t\t\t\t}\n \t\t\t\ty1 = x1 - k1;\n \t\t\t\twhile (x1 < text1Length && y1 < text2Length && text1.charAt(x1) === text2.charAt(y1)) {\n \t\t\t\t\tx1++;\n \t\t\t\t\ty1++;\n \t\t\t\t}\n \t\t\t\tv1[k1Offset] = x1;\n \t\t\t\tif (x1 > text1Length) {\n\n \t\t\t\t\t// Ran off the right of the graph.\n \t\t\t\t\tk1end += 2;\n \t\t\t\t} else if (y1 > text2Length) {\n\n \t\t\t\t\t// Ran off the bottom of the graph.\n \t\t\t\t\tk1start += 2;\n \t\t\t\t} else if (front) {\n \t\t\t\t\tk2Offset = vOffset + delta - k1;\n \t\t\t\t\tif (k2Offset >= 0 && k2Offset < vLength && v2[k2Offset] !== -1) {\n\n \t\t\t\t\t\t// Mirror x2 onto top-left coordinate system.\n \t\t\t\t\t\tx2 = text1Length - v2[k2Offset];\n \t\t\t\t\t\tif (x1 >= x2) {\n\n \t\t\t\t\t\t\t// Overlap detected.\n \t\t\t\t\t\t\treturn this.diffBisectSplit(text1, text2, x1, y1, deadline);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n\n \t\t\t// Walk the reverse path one step.\n \t\t\tfor (k2 = -d + k2start; k2 <= d - k2end; k2 += 2) {\n \t\t\t\tk2Offset = vOffset + k2;\n \t\t\t\tif (k2 === -d || k2 !== d && v2[k2Offset - 1] < v2[k2Offset + 1]) {\n \t\t\t\t\tx2 = v2[k2Offset + 1];\n \t\t\t\t} else {\n \t\t\t\t\tx2 = v2[k2Offset - 1] + 1;\n \t\t\t\t}\n \t\t\t\ty2 = x2 - k2;\n \t\t\t\twhile (x2 < text1Length && y2 < text2Length && text1.charAt(text1Length - x2 - 1) === text2.charAt(text2Length - y2 - 1)) {\n \t\t\t\t\tx2++;\n \t\t\t\t\ty2++;\n \t\t\t\t}\n \t\t\t\tv2[k2Offset] = x2;\n \t\t\t\tif (x2 > text1Length) {\n\n \t\t\t\t\t// Ran off the left of the graph.\n \t\t\t\t\tk2end += 2;\n \t\t\t\t} else if (y2 > text2Length) {\n\n \t\t\t\t\t// Ran off the top of the graph.\n \t\t\t\t\tk2start += 2;\n \t\t\t\t} else if (!front) {\n \t\t\t\t\tk1Offset = vOffset + delta - k2;\n \t\t\t\t\tif (k1Offset >= 0 && k1Offset < vLength && v1[k1Offset] !== -1) {\n \t\t\t\t\t\tx1 = v1[k1Offset];\n \t\t\t\t\t\ty1 = vOffset + x1 - k1Offset;\n\n \t\t\t\t\t\t// Mirror x2 onto top-left coordinate system.\n \t\t\t\t\t\tx2 = text1Length - x2;\n \t\t\t\t\t\tif (x1 >= x2) {\n\n \t\t\t\t\t\t\t// Overlap detected.\n \t\t\t\t\t\t\treturn this.diffBisectSplit(text1, text2, x1, y1, deadline);\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// Diff took too long and hit the deadline or\n \t\t// number of diffs equals number of characters, no commonality at all.\n \t\treturn [[DIFF_DELETE, text1], [DIFF_INSERT, text2]];\n \t};\n\n \t/**\n * Given the location of the 'middle snake', split the diff in two parts\n * and recurse.\n * @param {string} text1 Old string to be diffed.\n * @param {string} text2 New string to be diffed.\n * @param {number} x Index of split point in text1.\n * @param {number} y Index of split point in text2.\n * @param {number} deadline Time at which to bail if not yet complete.\n * @return {!Array.} Array of diff tuples.\n * @private\n */\n \tDiffMatchPatch.prototype.diffBisectSplit = function (text1, text2, x, y, deadline) {\n \t\tvar text1a, text1b, text2a, text2b, diffs, diffsb;\n \t\ttext1a = text1.substring(0, x);\n \t\ttext2a = text2.substring(0, y);\n \t\ttext1b = text1.substring(x);\n \t\ttext2b = text2.substring(y);\n\n \t\t// Compute both diffs serially.\n \t\tdiffs = this.DiffMain(text1a, text2a, false, deadline);\n \t\tdiffsb = this.DiffMain(text1b, text2b, false, deadline);\n\n \t\treturn diffs.concat(diffsb);\n \t};\n\n \t/**\n * Reduce the number of edits by eliminating semantically trivial equalities.\n * @param {!Array.} diffs Array of diff tuples.\n */\n \tDiffMatchPatch.prototype.diffCleanupSemantic = function (diffs) {\n \t\tvar changes, equalities, equalitiesLength, lastequality, pointer, lengthInsertions2, lengthDeletions2, lengthInsertions1, lengthDeletions1, deletion, insertion, overlapLength1, overlapLength2;\n \t\tchanges = false;\n \t\tequalities = []; // Stack of indices where equalities are found.\n \t\tequalitiesLength = 0; // Keeping our own length var is faster in JS.\n \t\t/** @type {?string} */\n \t\tlastequality = null;\n\n \t\t// Always equal to diffs[equalities[equalitiesLength - 1]][1]\n \t\tpointer = 0; // Index of current position.\n\n \t\t// Number of characters that changed prior to the equality.\n \t\tlengthInsertions1 = 0;\n \t\tlengthDeletions1 = 0;\n\n \t\t// Number of characters that changed after the equality.\n \t\tlengthInsertions2 = 0;\n \t\tlengthDeletions2 = 0;\n \t\twhile (pointer < diffs.length) {\n \t\t\tif (diffs[pointer][0] === DIFF_EQUAL) {\n \t\t\t\t// Equality found.\n \t\t\t\tequalities[equalitiesLength++] = pointer;\n \t\t\t\tlengthInsertions1 = lengthInsertions2;\n \t\t\t\tlengthDeletions1 = lengthDeletions2;\n \t\t\t\tlengthInsertions2 = 0;\n \t\t\t\tlengthDeletions2 = 0;\n \t\t\t\tlastequality = diffs[pointer][1];\n \t\t\t} else {\n \t\t\t\t// An insertion or deletion.\n \t\t\t\tif (diffs[pointer][0] === DIFF_INSERT) {\n \t\t\t\t\tlengthInsertions2 += diffs[pointer][1].length;\n \t\t\t\t} else {\n \t\t\t\t\tlengthDeletions2 += diffs[pointer][1].length;\n \t\t\t\t}\n\n \t\t\t\t// Eliminate an equality that is smaller or equal to the edits on both\n \t\t\t\t// sides of it.\n \t\t\t\tif (lastequality && lastequality.length <= Math.max(lengthInsertions1, lengthDeletions1) && lastequality.length <= Math.max(lengthInsertions2, lengthDeletions2)) {\n\n \t\t\t\t\t// Duplicate record.\n \t\t\t\t\tdiffs.splice(equalities[equalitiesLength - 1], 0, [DIFF_DELETE, lastequality]);\n\n \t\t\t\t\t// Change second copy to insert.\n \t\t\t\t\tdiffs[equalities[equalitiesLength - 1] + 1][0] = DIFF_INSERT;\n\n \t\t\t\t\t// Throw away the equality we just deleted.\n \t\t\t\t\tequalitiesLength--;\n\n \t\t\t\t\t// Throw away the previous equality (it needs to be reevaluated).\n \t\t\t\t\tequalitiesLength--;\n \t\t\t\t\tpointer = equalitiesLength > 0 ? equalities[equalitiesLength - 1] : -1;\n\n \t\t\t\t\t// Reset the counters.\n \t\t\t\t\tlengthInsertions1 = 0;\n \t\t\t\t\tlengthDeletions1 = 0;\n \t\t\t\t\tlengthInsertions2 = 0;\n \t\t\t\t\tlengthDeletions2 = 0;\n \t\t\t\t\tlastequality = null;\n \t\t\t\t\tchanges = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tpointer++;\n \t\t}\n\n \t\t// Normalize the diff.\n \t\tif (changes) {\n \t\t\tthis.diffCleanupMerge(diffs);\n \t\t}\n\n \t\t// Find any overlaps between deletions and insertions.\n \t\t// e.g: abcxxxxxxdef\n \t\t// -> abcxxxdef\n \t\t// e.g: xxxabcdefxxx\n \t\t// -> defxxxabc\n \t\t// Only extract an overlap if it is as big as the edit ahead or behind it.\n \t\tpointer = 1;\n \t\twhile (pointer < diffs.length) {\n \t\t\tif (diffs[pointer - 1][0] === DIFF_DELETE && diffs[pointer][0] === DIFF_INSERT) {\n \t\t\t\tdeletion = diffs[pointer - 1][1];\n \t\t\t\tinsertion = diffs[pointer][1];\n \t\t\t\toverlapLength1 = this.diffCommonOverlap(deletion, insertion);\n \t\t\t\toverlapLength2 = this.diffCommonOverlap(insertion, deletion);\n \t\t\t\tif (overlapLength1 >= overlapLength2) {\n \t\t\t\t\tif (overlapLength1 >= deletion.length / 2 || overlapLength1 >= insertion.length / 2) {\n\n \t\t\t\t\t\t// Overlap found. Insert an equality and trim the surrounding edits.\n \t\t\t\t\t\tdiffs.splice(pointer, 0, [DIFF_EQUAL, insertion.substring(0, overlapLength1)]);\n \t\t\t\t\t\tdiffs[pointer - 1][1] = deletion.substring(0, deletion.length - overlapLength1);\n \t\t\t\t\t\tdiffs[pointer + 1][1] = insertion.substring(overlapLength1);\n \t\t\t\t\t\tpointer++;\n \t\t\t\t\t}\n \t\t\t\t} else {\n \t\t\t\t\tif (overlapLength2 >= deletion.length / 2 || overlapLength2 >= insertion.length / 2) {\n\n \t\t\t\t\t\t// Reverse overlap found.\n \t\t\t\t\t\t// Insert an equality and swap and trim the surrounding edits.\n \t\t\t\t\t\tdiffs.splice(pointer, 0, [DIFF_EQUAL, deletion.substring(0, overlapLength2)]);\n\n \t\t\t\t\t\tdiffs[pointer - 1][0] = DIFF_INSERT;\n \t\t\t\t\t\tdiffs[pointer - 1][1] = insertion.substring(0, insertion.length - overlapLength2);\n \t\t\t\t\t\tdiffs[pointer + 1][0] = DIFF_DELETE;\n \t\t\t\t\t\tdiffs[pointer + 1][1] = deletion.substring(overlapLength2);\n \t\t\t\t\t\tpointer++;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tpointer++;\n \t\t\t}\n \t\t\tpointer++;\n \t\t}\n \t};\n\n \t/**\n * Determine if the suffix of one string is the prefix of another.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {number} The number of characters common to the end of the first\n * string and the start of the second string.\n * @private\n */\n \tDiffMatchPatch.prototype.diffCommonOverlap = function (text1, text2) {\n \t\tvar text1Length, text2Length, textLength, best, length, pattern, found;\n\n \t\t// Cache the text lengths to prevent multiple calls.\n \t\ttext1Length = text1.length;\n \t\ttext2Length = text2.length;\n\n \t\t// Eliminate the null case.\n \t\tif (text1Length === 0 || text2Length === 0) {\n \t\t\treturn 0;\n \t\t}\n\n \t\t// Truncate the longer string.\n \t\tif (text1Length > text2Length) {\n \t\t\ttext1 = text1.substring(text1Length - text2Length);\n \t\t} else if (text1Length < text2Length) {\n \t\t\ttext2 = text2.substring(0, text1Length);\n \t\t}\n \t\ttextLength = Math.min(text1Length, text2Length);\n\n \t\t// Quick check for the worst case.\n \t\tif (text1 === text2) {\n \t\t\treturn textLength;\n \t\t}\n\n \t\t// Start by looking for a single character match\n \t\t// and increase length until no match is found.\n \t\t// Performance analysis: https://neil.fraser.name/news/2010/11/04/\n \t\tbest = 0;\n \t\tlength = 1;\n \t\twhile (true) {\n \t\t\tpattern = text1.substring(textLength - length);\n \t\t\tfound = text2.indexOf(pattern);\n \t\t\tif (found === -1) {\n \t\t\t\treturn best;\n \t\t\t}\n \t\t\tlength += found;\n \t\t\tif (found === 0 || text1.substring(textLength - length) === text2.substring(0, length)) {\n \t\t\t\tbest = length;\n \t\t\t\tlength++;\n \t\t\t}\n \t\t}\n \t};\n\n \t/**\n * Split two texts into an array of strings. Reduce the texts to a string of\n * hashes where each Unicode character represents one line.\n * @param {string} text1 First string.\n * @param {string} text2 Second string.\n * @return {{chars1: string, chars2: string, lineArray: !Array.}}\n * An object containing the encoded text1, the encoded text2 and\n * the array of unique strings.\n * The zeroth element of the array of unique strings is intentionally blank.\n * @private\n */\n \tDiffMatchPatch.prototype.diffLinesToChars = function (text1, text2) {\n \t\tvar lineArray, lineHash, chars1, chars2;\n \t\tlineArray = []; // E.g. lineArray[4] === 'Hello\\n'\n \t\tlineHash = {}; // E.g. lineHash['Hello\\n'] === 4\n\n \t\t// '\\x00' is a valid character, but various debuggers don't like it.\n \t\t// So we'll insert a junk entry to avoid generating a null character.\n \t\tlineArray[0] = \"\";\n\n \t\t/**\n * Split a text into an array of strings. Reduce the texts to a string of\n * hashes where each Unicode character represents one line.\n * Modifies linearray and linehash through being a closure.\n * @param {string} text String to encode.\n * @return {string} Encoded string.\n * @private\n */\n \t\tfunction diffLinesToCharsMunge(text) {\n \t\t\tvar chars, lineStart, lineEnd, lineArrayLength, line;\n \t\t\tchars = \"\";\n\n \t\t\t// Walk the text, pulling out a substring for each line.\n \t\t\t// text.split('\\n') would would temporarily double our memory footprint.\n \t\t\t// Modifying text would create many large strings to garbage collect.\n \t\t\tlineStart = 0;\n \t\t\tlineEnd = -1;\n\n \t\t\t// Keeping our own length variable is faster than looking it up.\n \t\t\tlineArrayLength = lineArray.length;\n \t\t\twhile (lineEnd < text.length - 1) {\n \t\t\t\tlineEnd = text.indexOf(\"\\n\", lineStart);\n \t\t\t\tif (lineEnd === -1) {\n \t\t\t\t\tlineEnd = text.length - 1;\n \t\t\t\t}\n \t\t\t\tline = text.substring(lineStart, lineEnd + 1);\n \t\t\t\tlineStart = lineEnd + 1;\n\n \t\t\t\tvar lineHashExists = lineHash.hasOwnProperty ? lineHash.hasOwnProperty(line) : lineHash[line] !== undefined;\n\n \t\t\t\tif (lineHashExists) {\n \t\t\t\t\tchars += String.fromCharCode(lineHash[line]);\n \t\t\t\t} else {\n \t\t\t\t\tchars += String.fromCharCode(lineArrayLength);\n \t\t\t\t\tlineHash[line] = lineArrayLength;\n \t\t\t\t\tlineArray[lineArrayLength++] = line;\n \t\t\t\t}\n \t\t\t}\n \t\t\treturn chars;\n \t\t}\n\n \t\tchars1 = diffLinesToCharsMunge(text1);\n \t\tchars2 = diffLinesToCharsMunge(text2);\n \t\treturn {\n \t\t\tchars1: chars1,\n \t\t\tchars2: chars2,\n \t\t\tlineArray: lineArray\n \t\t};\n \t};\n\n \t/**\n * Rehydrate the text in a diff from a string of line hashes to real lines of\n * text.\n * @param {!Array.} diffs Array of diff tuples.\n * @param {!Array.} lineArray Array of unique strings.\n * @private\n */\n \tDiffMatchPatch.prototype.diffCharsToLines = function (diffs, lineArray) {\n \t\tvar x, chars, text, y;\n \t\tfor (x = 0; x < diffs.length; x++) {\n \t\t\tchars = diffs[x][1];\n \t\t\ttext = [];\n \t\t\tfor (y = 0; y < chars.length; y++) {\n \t\t\t\ttext[y] = lineArray[chars.charCodeAt(y)];\n \t\t\t}\n \t\t\tdiffs[x][1] = text.join(\"\");\n \t\t}\n \t};\n\n \t/**\n * Reorder and merge like edit sections. Merge equalities.\n * Any edit section can move as long as it doesn't cross an equality.\n * @param {!Array.} diffs Array of diff tuples.\n */\n \tDiffMatchPatch.prototype.diffCleanupMerge = function (diffs) {\n \t\tvar pointer, countDelete, countInsert, textInsert, textDelete, commonlength, changes, diffPointer, position;\n \t\tdiffs.push([DIFF_EQUAL, \"\"]); // Add a dummy entry at the end.\n \t\tpointer = 0;\n \t\tcountDelete = 0;\n \t\tcountInsert = 0;\n \t\ttextDelete = \"\";\n \t\ttextInsert = \"\";\n\n \t\twhile (pointer < diffs.length) {\n \t\t\tswitch (diffs[pointer][0]) {\n \t\t\t\tcase DIFF_INSERT:\n \t\t\t\t\tcountInsert++;\n \t\t\t\t\ttextInsert += diffs[pointer][1];\n \t\t\t\t\tpointer++;\n \t\t\t\t\tbreak;\n \t\t\t\tcase DIFF_DELETE:\n \t\t\t\t\tcountDelete++;\n \t\t\t\t\ttextDelete += diffs[pointer][1];\n \t\t\t\t\tpointer++;\n \t\t\t\t\tbreak;\n \t\t\t\tcase DIFF_EQUAL:\n\n \t\t\t\t\t// Upon reaching an equality, check for prior redundancies.\n \t\t\t\t\tif (countDelete + countInsert > 1) {\n \t\t\t\t\t\tif (countDelete !== 0 && countInsert !== 0) {\n\n \t\t\t\t\t\t\t// Factor out any common prefixes.\n \t\t\t\t\t\t\tcommonlength = this.diffCommonPrefix(textInsert, textDelete);\n \t\t\t\t\t\t\tif (commonlength !== 0) {\n \t\t\t\t\t\t\t\tif (pointer - countDelete - countInsert > 0 && diffs[pointer - countDelete - countInsert - 1][0] === DIFF_EQUAL) {\n \t\t\t\t\t\t\t\t\tdiffs[pointer - countDelete - countInsert - 1][1] += textInsert.substring(0, commonlength);\n \t\t\t\t\t\t\t\t} else {\n \t\t\t\t\t\t\t\t\tdiffs.splice(0, 0, [DIFF_EQUAL, textInsert.substring(0, commonlength)]);\n \t\t\t\t\t\t\t\t\tpointer++;\n \t\t\t\t\t\t\t\t}\n \t\t\t\t\t\t\t\ttextInsert = textInsert.substring(commonlength);\n \t\t\t\t\t\t\t\ttextDelete = textDelete.substring(commonlength);\n \t\t\t\t\t\t\t}\n\n \t\t\t\t\t\t\t// Factor out any common suffixies.\n \t\t\t\t\t\t\tcommonlength = this.diffCommonSuffix(textInsert, textDelete);\n \t\t\t\t\t\t\tif (commonlength !== 0) {\n \t\t\t\t\t\t\t\tdiffs[pointer][1] = textInsert.substring(textInsert.length - commonlength) + diffs[pointer][1];\n \t\t\t\t\t\t\t\ttextInsert = textInsert.substring(0, textInsert.length - commonlength);\n \t\t\t\t\t\t\t\ttextDelete = textDelete.substring(0, textDelete.length - commonlength);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n\n \t\t\t\t\t\t// Delete the offending records and add the merged ones.\n \t\t\t\t\t\tif (countDelete === 0) {\n \t\t\t\t\t\t\tdiffs.splice(pointer - countInsert, countDelete + countInsert, [DIFF_INSERT, textInsert]);\n \t\t\t\t\t\t} else if (countInsert === 0) {\n \t\t\t\t\t\t\tdiffs.splice(pointer - countDelete, countDelete + countInsert, [DIFF_DELETE, textDelete]);\n \t\t\t\t\t\t} else {\n \t\t\t\t\t\t\tdiffs.splice(pointer - countDelete - countInsert, countDelete + countInsert, [DIFF_DELETE, textDelete], [DIFF_INSERT, textInsert]);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tpointer = pointer - countDelete - countInsert + (countDelete ? 1 : 0) + (countInsert ? 1 : 0) + 1;\n \t\t\t\t\t} else if (pointer !== 0 && diffs[pointer - 1][0] === DIFF_EQUAL) {\n\n \t\t\t\t\t\t// Merge this equality with the previous one.\n \t\t\t\t\t\tdiffs[pointer - 1][1] += diffs[pointer][1];\n \t\t\t\t\t\tdiffs.splice(pointer, 1);\n \t\t\t\t\t} else {\n \t\t\t\t\t\tpointer++;\n \t\t\t\t\t}\n \t\t\t\t\tcountInsert = 0;\n \t\t\t\t\tcountDelete = 0;\n \t\t\t\t\ttextDelete = \"\";\n \t\t\t\t\ttextInsert = \"\";\n \t\t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\tif (diffs[diffs.length - 1][1] === \"\") {\n \t\t\tdiffs.pop(); // Remove the dummy entry at the end.\n \t\t}\n\n \t\t// Second pass: look for single edits surrounded on both sides by equalities\n \t\t// which can be shifted sideways to eliminate an equality.\n \t\t// e.g: ABAC -> ABAC\n \t\tchanges = false;\n \t\tpointer = 1;\n\n \t\t// Intentionally ignore the first and last element (don't need checking).\n \t\twhile (pointer < diffs.length - 1) {\n \t\t\tif (diffs[pointer - 1][0] === DIFF_EQUAL && diffs[pointer + 1][0] === DIFF_EQUAL) {\n\n \t\t\t\tdiffPointer = diffs[pointer][1];\n \t\t\t\tposition = diffPointer.substring(diffPointer.length - diffs[pointer - 1][1].length);\n\n \t\t\t\t// This is a single edit surrounded by equalities.\n \t\t\t\tif (position === diffs[pointer - 1][1]) {\n\n \t\t\t\t\t// Shift the edit over the previous equality.\n \t\t\t\t\tdiffs[pointer][1] = diffs[pointer - 1][1] + diffs[pointer][1].substring(0, diffs[pointer][1].length - diffs[pointer - 1][1].length);\n \t\t\t\t\tdiffs[pointer + 1][1] = diffs[pointer - 1][1] + diffs[pointer + 1][1];\n \t\t\t\t\tdiffs.splice(pointer - 1, 1);\n \t\t\t\t\tchanges = true;\n \t\t\t\t} else if (diffPointer.substring(0, diffs[pointer + 1][1].length) === diffs[pointer + 1][1]) {\n\n \t\t\t\t\t// Shift the edit over the next equality.\n \t\t\t\t\tdiffs[pointer - 1][1] += diffs[pointer + 1][1];\n \t\t\t\t\tdiffs[pointer][1] = diffs[pointer][1].substring(diffs[pointer + 1][1].length) + diffs[pointer + 1][1];\n \t\t\t\t\tdiffs.splice(pointer + 1, 1);\n \t\t\t\t\tchanges = true;\n \t\t\t\t}\n \t\t\t}\n \t\t\tpointer++;\n \t\t}\n\n \t\t// If shifts were made, the diff needs reordering and another shift sweep.\n \t\tif (changes) {\n \t\t\tthis.diffCleanupMerge(diffs);\n \t\t}\n \t};\n\n \treturn function (o, n) {\n \t\tvar diff, output, text;\n \t\tdiff = new DiffMatchPatch();\n \t\toutput = diff.DiffMain(o, n);\n \t\tdiff.diffCleanupEfficiency(output);\n \t\ttext = diff.diffPrettyHtml(output);\n\n \t\treturn text;\n \t};\n }();\n\n}((function() { return this; }())));\n","/* globals QUnit */\n\n(function() {\n QUnit.config.autostart = false;\n QUnit.config.urlConfig.push({ id: 'nocontainer', label: 'Hide container' });\n QUnit.config.urlConfig.push({ id: 'nolint', label: 'Disable Linting' });\n QUnit.config.urlConfig.push({ id: 'dockcontainer', label: 'Dock container' });\n QUnit.config.urlConfig.push({ id: 'devmode', label: 'Development mode' });\n\n QUnit.config.testTimeout = QUnit.urlParams.devmode ? null : 60000; //Default Test Timeout 60 Seconds\n})();\n","(function () {\n 'use strict';\n\n function exists(options, message) {\r\n var expectedCount = null;\r\n if (typeof options === 'string') {\r\n message = options;\r\n }\r\n else if (options) {\r\n expectedCount = options.count;\r\n }\r\n var elements = this.findElements();\r\n if (expectedCount === null) {\r\n var result = elements.length > 0;\r\n var expected = format(this.targetDescription);\r\n var actual = result ? expected : format(this.targetDescription, 0);\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else if (typeof expectedCount === 'number') {\r\n var result = elements.length === expectedCount;\r\n var actual = format(this.targetDescription, elements.length);\r\n var expected = format(this.targetDescription, expectedCount);\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else {\r\n throw new TypeError(\"Unexpected Parameter: \" + expectedCount);\r\n }\r\n }\r\n function format(selector, num) {\r\n if (num === undefined || num === null) {\r\n return \"Element \" + selector + \" exists\";\r\n }\r\n else if (num === 0) {\r\n return \"Element \" + selector + \" does not exist\";\r\n }\r\n else if (num === 1) {\r\n return \"Element \" + selector + \" exists once\";\r\n }\r\n else if (num === 2) {\r\n return \"Element \" + selector + \" exists twice\";\r\n }\r\n else {\r\n return \"Element \" + selector + \" exists \" + num + \" times\";\r\n }\r\n }\n\n // imported from https://github.com/nathanboktae/chai-dom\r\n function elementToString(el) {\r\n if (!el)\r\n return '';\r\n var desc;\r\n if (el instanceof NodeList) {\r\n if (el.length === 0) {\r\n return 'empty NodeList';\r\n }\r\n desc = Array.prototype.slice.call(el, 0, 5).map(elementToString).join(', ');\r\n return el.length > 5 ? desc + \"... (+\" + (el.length - 5) + \" more)\" : desc;\r\n }\r\n if (!(el instanceof HTMLElement || el instanceof SVGElement)) {\r\n return String(el);\r\n }\r\n desc = el.tagName.toLowerCase();\r\n if (el.id) {\r\n desc += \"#\" + el.id;\r\n }\r\n if (el.className && !(el.className instanceof SVGAnimatedString)) {\r\n desc += \".\" + String(el.className).replace(/\\s+/g, '.');\r\n }\r\n Array.prototype.forEach.call(el.attributes, function (attr) {\r\n if (attr.name !== 'class' && attr.name !== 'id') {\r\n desc += \"[\" + attr.name + (attr.value ? \"=\\\"\" + attr.value + \"\\\"]\" : ']');\r\n }\r\n });\r\n return desc;\r\n }\n\n function focused(message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return;\r\n var result = document.activeElement === element;\r\n var actual = elementToString(document.activeElement);\r\n var expected = elementToString(this.target);\r\n if (!message) {\r\n message = \"Element \" + expected + \" is focused\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\n\n function notFocused(message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return;\r\n var result = document.activeElement !== element;\r\n var expected = \"Element \" + this.targetDescription + \" is not focused\";\r\n var actual = result ? expected : \"Element \" + this.targetDescription + \" is focused\";\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, message: message, actual: actual, expected: expected });\r\n }\n\n function checked(message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return;\r\n var isChecked = element.checked === true;\r\n var isNotChecked = element.checked === false;\r\n var result = isChecked;\r\n var hasCheckedProp = isChecked || isNotChecked;\r\n if (!hasCheckedProp) {\r\n var ariaChecked = element.getAttribute('aria-checked');\r\n if (ariaChecked !== null) {\r\n result = ariaChecked === 'true';\r\n }\r\n }\r\n var actual = result ? 'checked' : 'not checked';\r\n var expected = 'checked';\r\n if (!message) {\r\n message = \"Element \" + elementToString(this.target) + \" is checked\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\n\n function notChecked(message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return;\r\n var isChecked = element.checked === true;\r\n var isNotChecked = element.checked === false;\r\n var result = !isChecked;\r\n var hasCheckedProp = isChecked || isNotChecked;\r\n if (!hasCheckedProp) {\r\n var ariaChecked = element.getAttribute('aria-checked');\r\n if (ariaChecked !== null) {\r\n result = ariaChecked !== 'true';\r\n }\r\n }\r\n var actual = result ? 'not checked' : 'checked';\r\n var expected = 'not checked';\r\n if (!message) {\r\n message = \"Element \" + elementToString(this.target) + \" is not checked\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\n\n function required(message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return;\r\n if (!(element instanceof HTMLInputElement ||\r\n element instanceof HTMLTextAreaElement ||\r\n element instanceof HTMLSelectElement)) {\r\n throw new TypeError(\"Unexpected Element Type: \" + element.toString());\r\n }\r\n var result = element.required === true;\r\n var actual = result ? 'required' : 'not required';\r\n var expected = 'required';\r\n if (!message) {\r\n message = \"Element \" + elementToString(this.target) + \" is required\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\n\n function notRequired(message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return;\r\n if (!(element instanceof HTMLInputElement ||\r\n element instanceof HTMLTextAreaElement ||\r\n element instanceof HTMLSelectElement)) {\r\n throw new TypeError(\"Unexpected Element Type: \" + element.toString());\r\n }\r\n var result = element.required === false;\r\n var actual = !result ? 'required' : 'not required';\r\n var expected = 'not required';\r\n if (!message) {\r\n message = \"Element \" + elementToString(this.target) + \" is not required\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\n\n // Visible logic based on jQuery's\r\n // https://github.com/jquery/jquery/blob/4a2bcc27f9c3ee24b3effac0fbe1285d1ee23cc5/src/css/hiddenVisibleSelectors.js#L11-L13\r\n function visible(el) {\r\n if (el === null)\r\n return false;\r\n if (el.offsetWidth === 0 || el.offsetHeight === 0)\r\n return false;\r\n var clientRects = el.getClientRects();\r\n if (clientRects.length === 0)\r\n return false;\r\n for (var i = 0; i < clientRects.length; i++) {\r\n var rect = clientRects[i];\r\n if (rect.width !== 0 && rect.height !== 0)\r\n return true;\r\n }\r\n return false;\r\n }\n\n function isVisible(options, message) {\r\n var expectedCount = null;\r\n if (typeof options === 'string') {\r\n message = options;\r\n }\r\n else if (options) {\r\n expectedCount = options.count;\r\n }\r\n var elements = this.findElements().filter(visible);\r\n if (expectedCount === null) {\r\n var result = elements.length > 0;\r\n var expected = format$1(this.targetDescription);\r\n var actual = result ? expected : format$1(this.targetDescription, 0);\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else if (typeof expectedCount === 'number') {\r\n var result = elements.length === expectedCount;\r\n var actual = format$1(this.targetDescription, elements.length);\r\n var expected = format$1(this.targetDescription, expectedCount);\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else {\r\n throw new TypeError(\"Unexpected Parameter: \" + expectedCount);\r\n }\r\n }\r\n function format$1(selector, num) {\r\n if (num === undefined || num === null) {\r\n return \"Element \" + selector + \" is visible\";\r\n }\r\n else if (num === 0) {\r\n return \"Element \" + selector + \" is not visible\";\r\n }\r\n else if (num === 1) {\r\n return \"Element \" + selector + \" is visible once\";\r\n }\r\n else if (num === 2) {\r\n return \"Element \" + selector + \" is visible twice\";\r\n }\r\n else {\r\n return \"Element \" + selector + \" is visible \" + num + \" times\";\r\n }\r\n }\n\n function isDisabled(message, options) {\r\n if (options === void 0) { options = {}; }\r\n var inverted = options.inverted;\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return;\r\n if (!(element instanceof HTMLInputElement ||\r\n element instanceof HTMLTextAreaElement ||\r\n element instanceof HTMLSelectElement ||\r\n element instanceof HTMLButtonElement ||\r\n element instanceof HTMLOptGroupElement ||\r\n element instanceof HTMLOptionElement ||\r\n element instanceof HTMLFieldSetElement)) {\r\n throw new TypeError(\"Unexpected Element Type: \" + element.toString());\r\n }\r\n var result = element.disabled === !inverted;\r\n var actual = element.disabled === false\r\n ? \"Element \" + this.targetDescription + \" is not disabled\"\r\n : \"Element \" + this.targetDescription + \" is disabled\";\r\n var expected = inverted\r\n ? \"Element \" + this.targetDescription + \" is not disabled\"\r\n : \"Element \" + this.targetDescription + \" is disabled\";\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\n\n function matchesSelector(elements, compareSelector) {\r\n var failures = elements.filter(function (it) { return !it.matches(compareSelector); });\r\n return failures.length;\r\n }\n\n function collapseWhitespace(string) {\r\n return string\r\n .replace(/[\\t\\r\\n]/g, ' ')\r\n .replace(/ +/g, ' ')\r\n .replace(/^ /, '')\r\n .replace(/ $/, '');\r\n }\n\n /**\r\n * This function can be used to convert a NodeList to a regular array.\r\n * We should be using `Array.from()` for this, but IE11 doesn't support that :(\r\n *\r\n * @private\r\n */\r\n function toArray(list) {\r\n return Array.prototype.slice.call(list);\r\n }\n\n var DOMAssertions = /** @class */ (function () {\r\n function DOMAssertions(target, rootElement, testContext) {\r\n this.target = target;\r\n this.rootElement = rootElement;\r\n this.testContext = testContext;\r\n }\r\n /**\r\n * Assert an {@link HTMLElement} (or multiple) matching the `selector` exists.\r\n *\r\n * @param {object?} options\r\n * @param {number?} options.count\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('#title').exists();\r\n * assert.dom('.choice').exists({ count: 4 });\r\n *\r\n * @see {@link #doesNotExist}\r\n */\r\n DOMAssertions.prototype.exists = function (options, message) {\r\n exists.call(this, options, message);\r\n return this;\r\n };\r\n /**\r\n * Assert an {@link HTMLElement} matching the `selector` does not exists.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('.should-not-exist').doesNotExist();\r\n *\r\n * @see {@link #exists}\r\n */\r\n DOMAssertions.prototype.doesNotExist = function (message) {\r\n exists.call(this, { count: 0 }, message);\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the\r\n * `selector` is currently checked.\r\n *\r\n * Note: This also supports `aria-checked=\"true/false\"`.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input.active').isChecked();\r\n *\r\n * @see {@link #isNotChecked}\r\n */\r\n DOMAssertions.prototype.isChecked = function (message) {\r\n checked.call(this, message);\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the\r\n * `selector` is currently unchecked.\r\n *\r\n * Note: This also supports `aria-checked=\"true/false\"`.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input.active').isNotChecked();\r\n *\r\n * @see {@link #isChecked}\r\n */\r\n DOMAssertions.prototype.isNotChecked = function (message) {\r\n notChecked.call(this, message);\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the\r\n * `selector` is currently focused.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input.email').isFocused();\r\n *\r\n * @see {@link #isNotFocused}\r\n */\r\n DOMAssertions.prototype.isFocused = function (message) {\r\n focused.call(this, message);\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the\r\n * `selector` is not currently focused.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input[type=\"password\"]').isNotFocused();\r\n *\r\n * @see {@link #isFocused}\r\n */\r\n DOMAssertions.prototype.isNotFocused = function (message) {\r\n notFocused.call(this, message);\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the\r\n * `selector` is currently required.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input[type=\"text\"]').isRequired();\r\n *\r\n * @see {@link #isNotRequired}\r\n */\r\n DOMAssertions.prototype.isRequired = function (message) {\r\n required.call(this, message);\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the\r\n * `selector` is currently not required.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input[type=\"text\"]').isNotRequired();\r\n *\r\n * @see {@link #isRequired}\r\n */\r\n DOMAssertions.prototype.isNotRequired = function (message) {\r\n notRequired.call(this, message);\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the\r\n * `selector` exists and is visible.\r\n *\r\n * Visibility is determined by asserting that:\r\n *\r\n * - the element's offsetWidth and offsetHeight are non-zero\r\n * - any of the element's DOMRect objects have a non-zero size\r\n *\r\n * Additionally, visibility in this case means that the element is visible on the page,\r\n * but not necessarily in the viewport.\r\n *\r\n * @param {object?} options\r\n * @param {number?} options.count\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('#title').isVisible();\r\n * assert.dom('.choice').isVisible({ count: 4 });\r\n *\r\n * @see {@link #isNotVisible}\r\n */\r\n DOMAssertions.prototype.isVisible = function (options, message) {\r\n isVisible.call(this, options, message);\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the\r\n * `selector` does not exist or is not visible on the page.\r\n *\r\n * Visibility is determined by asserting that:\r\n *\r\n * - the element's offsetWidth or offsetHeight are zero\r\n * - all of the element's DOMRect objects have a size of zero\r\n *\r\n * Additionally, visibility in this case means that the element is visible on the page,\r\n * but not necessarily in the viewport.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('.foo').isNotVisible();\r\n *\r\n * @see {@link #isVisible}\r\n */\r\n DOMAssertions.prototype.isNotVisible = function (message) {\r\n isVisible.call(this, { count: 0 }, message);\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} has an attribute with the provided `name`\r\n * and optionally checks if the attribute `value` matches the provided text\r\n * or regular expression.\r\n *\r\n * @param {string} name\r\n * @param {string|RegExp|object?} value\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input.password-input').hasAttribute('type', 'password');\r\n *\r\n * @see {@link #doesNotHaveAttribute}\r\n */\r\n DOMAssertions.prototype.hasAttribute = function (name, value, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return this;\r\n if (arguments.length === 1) {\r\n value = { any: true };\r\n }\r\n var actualValue = element.getAttribute(name);\r\n if (value instanceof RegExp) {\r\n var result = value.test(actualValue);\r\n var expected = \"Element \" + this.targetDescription + \" has attribute \\\"\" + name + \"\\\" with value matching \" + value;\r\n var actual = actualValue === null\r\n ? \"Element \" + this.targetDescription + \" does not have attribute \\\"\" + name + \"\\\"\"\r\n : \"Element \" + this.targetDescription + \" has attribute \\\"\" + name + \"\\\" with value \" + JSON.stringify(actualValue);\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else if (value.any === true) {\r\n var result = actualValue !== null;\r\n var expected = \"Element \" + this.targetDescription + \" has attribute \\\"\" + name + \"\\\"\";\r\n var actual = result\r\n ? expected\r\n : \"Element \" + this.targetDescription + \" does not have attribute \\\"\" + name + \"\\\"\";\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else {\r\n var result = value === actualValue;\r\n var expected = \"Element \" + this.targetDescription + \" has attribute \\\"\" + name + \"\\\" with value \" + JSON.stringify(value);\r\n var actual = actualValue === null\r\n ? \"Element \" + this.targetDescription + \" does not have attribute \\\"\" + name + \"\\\"\"\r\n : \"Element \" + this.targetDescription + \" has attribute \\\"\" + name + \"\\\" with value \" + JSON.stringify(actualValue);\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} has no attribute with the provided `name`.\r\n *\r\n * **Aliases:** `hasNoAttribute`, `lacksAttribute`\r\n *\r\n * @param {string} name\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input.username').hasNoAttribute('disabled');\r\n *\r\n * @see {@link #hasAttribute}\r\n */\r\n DOMAssertions.prototype.doesNotHaveAttribute = function (name, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return;\r\n var result = !element.hasAttribute(name);\r\n var expected = \"Element \" + this.targetDescription + \" does not have attribute \\\"\" + name + \"\\\"\";\r\n var actual = expected;\r\n if (!result) {\r\n var value = element.getAttribute(name);\r\n actual = \"Element \" + this.targetDescription + \" has attribute \\\"\" + name + \"\\\" with value \" + JSON.stringify(value);\r\n }\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n return this;\r\n };\r\n DOMAssertions.prototype.hasNoAttribute = function (name, message) {\r\n return this.doesNotHaveAttribute(name, message);\r\n };\r\n DOMAssertions.prototype.lacksAttribute = function (name, message) {\r\n return this.doesNotHaveAttribute(name, message);\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} has an ARIA attribute with the provided\r\n * `name` and optionally checks if the attribute `value` matches the provided\r\n * text or regular expression.\r\n *\r\n * @param {string} name\r\n * @param {string|RegExp|object?} value\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('button').hasAria('pressed', 'true');\r\n *\r\n * @see {@link #hasNoAria}\r\n */\r\n DOMAssertions.prototype.hasAria = function (name, value, message) {\r\n return this.hasAttribute(\"aria-\" + name, value, message);\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} has no ARIA attribute with the\r\n * provided `name`.\r\n *\r\n * @param {string} name\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('button').doesNotHaveAria('pressed');\r\n *\r\n * @see {@link #hasAria}\r\n */\r\n DOMAssertions.prototype.doesNotHaveAria = function (name, message) {\r\n return this.doesNotHaveAttribute(\"aria-\" + name, message);\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} has a property with the provided `name`\r\n * and checks if the property `value` matches the provided text or regular\r\n * expression.\r\n *\r\n * @param {string} name\r\n * @param {string|RegExp} value\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input.password-input').hasProperty('type', 'password');\r\n *\r\n * @see {@link #doesNotHaveProperty}\r\n */\r\n DOMAssertions.prototype.hasProperty = function (name, value, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return this;\r\n var description = this.targetDescription;\r\n var actualValue = element[name];\r\n if (value instanceof RegExp) {\r\n var result = value.test(String(actualValue));\r\n var expected = \"Element \" + description + \" has property \\\"\" + name + \"\\\" with value matching \" + value;\r\n var actual = \"Element \" + description + \" has property \\\"\" + name + \"\\\" with value \" + JSON.stringify(actualValue);\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else {\r\n var result = value === actualValue;\r\n var expected = \"Element \" + description + \" has property \\\"\" + name + \"\\\" with value \" + JSON.stringify(value);\r\n var actual = \"Element \" + description + \" has property \\\"\" + name + \"\\\" with value \" + JSON.stringify(actualValue);\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the\r\n * `selector` is disabled.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('.foo').isDisabled();\r\n *\r\n * @see {@link #isNotDisabled}\r\n */\r\n DOMAssertions.prototype.isDisabled = function (message) {\r\n isDisabled.call(this, message);\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} or an {@link HTMLElement} matching the\r\n * `selector` is not disabled.\r\n *\r\n * **Aliases:** `isEnabled`\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('.foo').isNotDisabled();\r\n *\r\n * @see {@link #isDisabled}\r\n */\r\n DOMAssertions.prototype.isNotDisabled = function (message) {\r\n isDisabled.call(this, message, { inverted: true });\r\n return this;\r\n };\r\n DOMAssertions.prototype.isEnabled = function (message) {\r\n return this.isNotDisabled(message);\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} has the `expected` CSS class using\r\n * [`classList`](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList).\r\n *\r\n * `expected` can also be a regular expression, and the assertion will return\r\n * true if any of the element's CSS classes match.\r\n *\r\n * @param {string|RegExp} expected\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input[type=\"password\"]').hasClass('secret-password-input');\r\n *\r\n * @example\r\n * assert.dom('input[type=\"password\"]').hasClass(/.*password-input/);\r\n *\r\n * @see {@link #doesNotHaveClass}\r\n */\r\n DOMAssertions.prototype.hasClass = function (expected, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return this;\r\n var actual = element.classList.toString();\r\n if (expected instanceof RegExp) {\r\n var classNames = Array.prototype.slice.call(element.classList);\r\n var result = classNames.some(function (className) {\r\n return expected.test(className);\r\n });\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" has CSS class matching \" + expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else {\r\n var result = element.classList.contains(expected);\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" has CSS class \\\"\" + expected + \"\\\"\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n return this;\r\n };\r\n /**\r\n * Assert that the {@link HTMLElement} does not have the `expected` CSS class using\r\n * [`classList`](https://developer.mozilla.org/en-US/docs/Web/API/Element/classList).\r\n *\r\n * `expected` can also be a regular expression, and the assertion will return\r\n * true if none of the element's CSS classes match.\r\n *\r\n * **Aliases:** `hasNoClass`, `lacksClass`\r\n *\r\n * @param {string|RegExp} expected\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input[type=\"password\"]').doesNotHaveClass('username-input');\r\n *\r\n * @example\r\n * assert.dom('input[type=\"password\"]').doesNotHaveClass(/username-.*-input/);\r\n *\r\n * @see {@link #hasClass}\r\n */\r\n DOMAssertions.prototype.doesNotHaveClass = function (expected, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return this;\r\n var actual = element.classList.toString();\r\n if (expected instanceof RegExp) {\r\n var classNames = Array.prototype.slice.call(element.classList);\r\n var result = classNames.every(function (className) {\r\n return !expected.test(className);\r\n });\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" does not have CSS class matching \" + expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: \"not: \" + expected, message: message });\r\n }\r\n else {\r\n var result = !element.classList.contains(expected);\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" does not have CSS class \\\"\" + expected + \"\\\"\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: \"not: \" + expected, message: message });\r\n }\r\n return this;\r\n };\r\n DOMAssertions.prototype.hasNoClass = function (expected, message) {\r\n return this.doesNotHaveClass(expected, message);\r\n };\r\n DOMAssertions.prototype.lacksClass = function (expected, message) {\r\n return this.doesNotHaveClass(expected, message);\r\n };\r\n /**\r\n * Assert that the [HTMLElement][] has the `expected` style declarations using\r\n * [`window.getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle).\r\n *\r\n * @name hasStyle\r\n * @param {object} expected\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('.progress-bar').hasStyle({\r\n * opacity: 1,\r\n * display: 'block'\r\n * });\r\n *\r\n * @see {@link #hasClass}\r\n */\r\n DOMAssertions.prototype.hasStyle = function (expected, message) {\r\n return this.hasPseudoElementStyle(null, expected, message);\r\n };\r\n /**\r\n * Assert that the pseudo element for `selector` of the [HTMLElement][] has the `expected` style declarations using\r\n * [`window.getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle).\r\n *\r\n * @name hasPseudoElementStyle\r\n * @param {string} selector\r\n * @param {object} expected\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('.progress-bar').hasPseudoElementStyle(':after', {\r\n * content: '\";\"',\r\n * });\r\n *\r\n * @see {@link #hasClass}\r\n */\r\n DOMAssertions.prototype.hasPseudoElementStyle = function (selector, expected, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return this;\r\n var computedStyle = window.getComputedStyle(element, selector);\r\n var expectedProperties = Object.keys(expected);\r\n if (expectedProperties.length <= 0) {\r\n throw new TypeError(\"Missing style expectations. There must be at least one style property in the passed in expectation object.\");\r\n }\r\n var result = expectedProperties.every(function (property) { return computedStyle[property] === expected[property]; });\r\n var actual = {};\r\n expectedProperties.forEach(function (property) { return (actual[property] = computedStyle[property]); });\r\n if (!message) {\r\n var normalizedSelector = selector ? selector.replace(/^:{0,2}/, '::') : '';\r\n message = \"Element \" + this.targetDescription + normalizedSelector + \" has style \\\"\" + JSON.stringify(expected) + \"\\\"\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n return this;\r\n };\r\n /**\r\n * Assert that the [HTMLElement][] does not have the `expected` style declarations using\r\n * [`window.getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle).\r\n *\r\n * @name doesNotHaveStyle\r\n * @param {object} expected\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('.progress-bar').doesNotHaveStyle({\r\n * opacity: 1,\r\n * display: 'block'\r\n * });\r\n *\r\n * @see {@link #hasClass}\r\n */\r\n DOMAssertions.prototype.doesNotHaveStyle = function (expected, message) {\r\n return this.doesNotHavePseudoElementStyle(null, expected, message);\r\n };\r\n /**\r\n * Assert that the pseudo element for `selector` of the [HTMLElement][] does not have the `expected` style declarations using\r\n * [`window.getComputedStyle`](https://developer.mozilla.org/en-US/docs/Web/API/Window/getComputedStyle).\r\n *\r\n * @name doesNotHavePseudoElementStyle\r\n * @param {string} selector\r\n * @param {object} expected\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('.progress-bar').doesNotHavePseudoElementStyle(':after', {\r\n * content: '\";\"',\r\n * });\r\n *\r\n * @see {@link #hasClass}\r\n */\r\n DOMAssertions.prototype.doesNotHavePseudoElementStyle = function (selector, expected, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return this;\r\n var computedStyle = window.getComputedStyle(element, selector);\r\n var expectedProperties = Object.keys(expected);\r\n if (expectedProperties.length <= 0) {\r\n throw new TypeError(\"Missing style expectations. There must be at least one style property in the passed in expectation object.\");\r\n }\r\n var result = expectedProperties.some(function (property) { return computedStyle[property] !== expected[property]; });\r\n var actual = {};\r\n expectedProperties.forEach(function (property) { return (actual[property] = computedStyle[property]); });\r\n if (!message) {\r\n var normalizedSelector = selector ? selector.replace(/^:{0,2}/, '::') : '';\r\n message = \"Element \" + this.targetDescription + normalizedSelector + \" does not have style \\\"\" + JSON.stringify(expected) + \"\\\"\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n return this;\r\n };\r\n /**\r\n * Assert that the text of the {@link HTMLElement} or an {@link HTMLElement}\r\n * matching the `selector` matches the `expected` text, using the\r\n * [`textContent`](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent)\r\n * attribute and stripping/collapsing whitespace.\r\n *\r\n * `expected` can also be a regular expression.\r\n *\r\n * > Note: This assertion will collapse whitespace if the type you pass in is a string.\r\n * > If you are testing specifically for whitespace integrity, pass your expected text\r\n * > in as a RegEx pattern.\r\n *\r\n * **Aliases:** `matchesText`\r\n *\r\n * @param {string|RegExp} expected\r\n * @param {string?} message\r\n *\r\n * @example\r\n * //

        \r\n * // Welcome to QUnit\r\n * //

        \r\n *\r\n * assert.dom('#title').hasText('Welcome to QUnit');\r\n *\r\n * @example\r\n * assert.dom('.foo').hasText(/[12]\\d{3}/);\r\n *\r\n * @see {@link #includesText}\r\n */\r\n DOMAssertions.prototype.hasText = function (expected, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return this;\r\n if (expected instanceof RegExp) {\r\n var result = expected.test(element.textContent);\r\n var actual = element.textContent;\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" has text matching \" + expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else if (expected.any === true) {\r\n var result = Boolean(element.textContent);\r\n var expected_1 = \"Element \" + this.targetDescription + \" has a text\";\r\n var actual = result ? expected_1 : \"Element \" + this.targetDescription + \" has no text\";\r\n if (!message) {\r\n message = expected_1;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected_1, message: message });\r\n }\r\n else if (typeof expected === 'string') {\r\n expected = collapseWhitespace(expected);\r\n var actual = collapseWhitespace(element.textContent);\r\n var result = actual === expected;\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" has text \\\"\" + expected + \"\\\"\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else {\r\n throw new TypeError(\"You must pass a string or Regular Expression to \\\"hasText\\\". You passed \" + expected + \".\");\r\n }\r\n return this;\r\n };\r\n DOMAssertions.prototype.matchesText = function (expected, message) {\r\n return this.hasText(expected, message);\r\n };\r\n /**\r\n * Assert that the `textContent` property of an {@link HTMLElement} is not empty.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('button.share').hasAnyText();\r\n *\r\n * @see {@link #hasText}\r\n */\r\n DOMAssertions.prototype.hasAnyText = function (message) {\r\n return this.hasText({ any: true }, message);\r\n };\r\n /**\r\n * Assert that the `textContent` property of an {@link HTMLElement} is empty.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('div').hasNoText();\r\n *\r\n * @see {@link #hasNoText}\r\n */\r\n DOMAssertions.prototype.hasNoText = function (message) {\r\n return this.hasText('', message);\r\n };\r\n /**\r\n * Assert that the text of the {@link HTMLElement} or an {@link HTMLElement}\r\n * matching the `selector` contains the given `text`, using the\r\n * [`textContent`](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent)\r\n * attribute.\r\n *\r\n * > Note: This assertion will collapse whitespace in `textContent` before searching.\r\n * > If you would like to assert on a string that *should* contain line breaks, tabs,\r\n * > more than one space in a row, or starting/ending whitespace, use the {@link #hasText}\r\n * > selector and pass your expected text in as a RegEx pattern.\r\n *\r\n * **Aliases:** `containsText`, `hasTextContaining`\r\n *\r\n * @param {string} text\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('#title').includesText('Welcome');\r\n *\r\n * @see {@link #hasText}\r\n */\r\n DOMAssertions.prototype.includesText = function (text, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return this;\r\n var collapsedText = collapseWhitespace(element.textContent);\r\n var result = collapsedText.indexOf(text) !== -1;\r\n var actual = collapsedText;\r\n var expected = text;\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" has text containing \\\"\" + text + \"\\\"\";\r\n }\r\n if (!result && text !== collapseWhitespace(text)) {\r\n console.warn('The `.includesText()`, `.containsText()`, and `.hasTextContaining()` assertions collapse whitespace. The text you are checking for contains whitespace that may have made your test fail incorrectly. Try the `.hasText()` assertion passing in your expected text as a RegExp pattern. Your text:\\n' +\r\n text);\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n return this;\r\n };\r\n DOMAssertions.prototype.containsText = function (expected, message) {\r\n return this.includesText(expected, message);\r\n };\r\n DOMAssertions.prototype.hasTextContaining = function (expected, message) {\r\n return this.includesText(expected, message);\r\n };\r\n /**\r\n * Assert that the text of the {@link HTMLElement} or an {@link HTMLElement}\r\n * matching the `selector` does not include the given `text`, using the\r\n * [`textContent`](https://developer.mozilla.org/en-US/docs/Web/API/Node/textContent)\r\n * attribute.\r\n *\r\n * **Aliases:** `doesNotContainText`, `doesNotHaveTextContaining`\r\n *\r\n * @param {string} text\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('#title').doesNotIncludeText('Welcome');\r\n */\r\n DOMAssertions.prototype.doesNotIncludeText = function (text, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return this;\r\n var collapsedText = collapseWhitespace(element.textContent);\r\n var result = collapsedText.indexOf(text) === -1;\r\n var expected = \"Element \" + this.targetDescription + \" does not include text \\\"\" + text + \"\\\"\";\r\n var actual = expected;\r\n if (!result) {\r\n actual = \"Element \" + this.targetDescription + \" includes text \\\"\" + text + \"\\\"\";\r\n }\r\n if (!message) {\r\n message = expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n return this;\r\n };\r\n DOMAssertions.prototype.doesNotContainText = function (unexpected, message) {\r\n return this.doesNotIncludeText(unexpected, message);\r\n };\r\n DOMAssertions.prototype.doesNotHaveTextContaining = function (unexpected, message) {\r\n return this.doesNotIncludeText(unexpected, message);\r\n };\r\n /**\r\n * Assert that the `value` property of an {@link HTMLInputElement} matches\r\n * the `expected` text or regular expression.\r\n *\r\n * If no `expected` value is provided, the assertion will fail if the\r\n * `value` is an empty string.\r\n *\r\n * @param {string|RegExp|object?} expected\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input.username').hasValue('HSimpson');\r\n \n * @see {@link #hasAnyValue}\r\n * @see {@link #hasNoValue}\r\n */\r\n DOMAssertions.prototype.hasValue = function (expected, message) {\r\n var element = this.findTargetElement();\r\n if (!element)\r\n return this;\r\n if (arguments.length === 0) {\r\n expected = { any: true };\r\n }\r\n var value = element.value;\r\n if (expected instanceof RegExp) {\r\n var result = expected.test(value);\r\n var actual = value;\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" has value matching \" + expected;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n else if (expected.any === true) {\r\n var result = Boolean(value);\r\n var expected_2 = \"Element \" + this.targetDescription + \" has a value\";\r\n var actual = result ? expected_2 : \"Element \" + this.targetDescription + \" has no value\";\r\n if (!message) {\r\n message = expected_2;\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected_2, message: message });\r\n }\r\n else {\r\n var actual = value;\r\n var result = actual === expected;\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" has value \\\"\" + expected + \"\\\"\";\r\n }\r\n this.pushResult({ result: result, actual: actual, expected: expected, message: message });\r\n }\r\n return this;\r\n };\r\n /**\r\n * Assert that the `value` property of an {@link HTMLInputElement} is not empty.\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input.username').hasAnyValue();\r\n *\r\n * @see {@link #hasValue}\r\n * @see {@link #hasNoValue}\r\n */\r\n DOMAssertions.prototype.hasAnyValue = function (message) {\r\n return this.hasValue({ any: true }, message);\r\n };\r\n /**\r\n * Assert that the `value` property of an {@link HTMLInputElement} is empty.\r\n *\r\n * **Aliases:** `lacksValue`\r\n *\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input.username').hasNoValue();\r\n *\r\n * @see {@link #hasValue}\r\n * @see {@link #hasAnyValue}\r\n */\r\n DOMAssertions.prototype.hasNoValue = function (message) {\r\n return this.hasValue('', message);\r\n };\r\n DOMAssertions.prototype.lacksValue = function (message) {\r\n return this.hasNoValue(message);\r\n };\r\n /**\r\n * Assert that the target selector selects only Elements that are also selected by\r\n * compareSelector.\r\n *\r\n * @param {string} compareSelector\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('p.red').matchesSelector('div.wrapper p:last-child')\r\n */\r\n DOMAssertions.prototype.matchesSelector = function (compareSelector, message) {\r\n var targetElements = this.target instanceof Element ? [this.target] : this.findElements();\r\n var targets = targetElements.length;\r\n var matchFailures = matchesSelector(targetElements, compareSelector);\r\n var singleElement = targets === 1;\r\n var selectedByPart = this.target instanceof Element ? 'passed' : \"selected by \" + this.target;\r\n var actual;\r\n var expected;\r\n if (matchFailures === 0) {\r\n // no failures matching.\r\n if (!message) {\r\n message = singleElement\r\n ? \"The element \" + selectedByPart + \" also matches the selector \" + compareSelector + \".\"\r\n : targets + \" elements, selected by \" + this.target + \", also match the selector \" + compareSelector + \".\";\r\n }\r\n actual = expected = message;\r\n this.pushResult({ result: true, actual: actual, expected: expected, message: message });\r\n }\r\n else {\r\n var difference = targets - matchFailures;\r\n // there were failures when matching.\r\n if (!message) {\r\n message = singleElement\r\n ? \"The element \" + selectedByPart + \" did not also match the selector \" + compareSelector + \".\"\r\n : matchFailures + \" out of \" + targets + \" elements selected by \" + this.target + \" did not also match the selector \" + compareSelector + \".\";\r\n }\r\n actual = singleElement ? message : difference + \" elements matched \" + compareSelector + \".\";\r\n expected = singleElement\r\n ? \"The element should have matched \" + compareSelector + \".\"\r\n : targets + \" elements should have matched \" + compareSelector + \".\";\r\n this.pushResult({ result: false, actual: actual, expected: expected, message: message });\r\n }\r\n return this;\r\n };\r\n /**\r\n * Assert that the target selector selects only Elements that are not also selected by\r\n * compareSelector.\r\n *\r\n * @param {string} compareSelector\r\n * @param {string?} message\r\n *\r\n * @example\r\n * assert.dom('input').doesNotMatchSelector('input[disabled]')\r\n */\r\n DOMAssertions.prototype.doesNotMatchSelector = function (compareSelector, message) {\r\n var targetElements = this.target instanceof Element ? [this.target] : this.findElements();\r\n var targets = targetElements.length;\r\n var matchFailures = matchesSelector(targetElements, compareSelector);\r\n var singleElement = targets === 1;\r\n var selectedByPart = this.target instanceof Element ? 'passed' : \"selected by \" + this.target;\r\n var actual;\r\n var expected;\r\n if (matchFailures === targets) {\r\n // the assertion is successful because no element matched the other selector.\r\n if (!message) {\r\n message = singleElement\r\n ? \"The element \" + selectedByPart + \" did not also match the selector \" + compareSelector + \".\"\r\n : targets + \" elements, selected by \" + this.target + \", did not also match the selector \" + compareSelector + \".\";\r\n }\r\n actual = expected = message;\r\n this.pushResult({ result: true, actual: actual, expected: expected, message: message });\r\n }\r\n else {\r\n var difference = targets - matchFailures;\r\n // the assertion fails because at least one element matched the other selector.\r\n if (!message) {\r\n message = singleElement\r\n ? \"The element \" + selectedByPart + \" must not also match the selector \" + compareSelector + \".\"\r\n : difference + \" elements out of \" + targets + \", selected by \" + this.target + \", must not also match the selector \" + compareSelector + \".\";\r\n }\r\n actual = singleElement\r\n ? \"The element \" + selectedByPart + \" matched \" + compareSelector + \".\"\r\n : matchFailures + \" elements did not match \" + compareSelector + \".\";\r\n expected = singleElement\r\n ? message\r\n : targets + \" elements should not have matched \" + compareSelector + \".\";\r\n this.pushResult({ result: false, actual: actual, expected: expected, message: message });\r\n }\r\n return this;\r\n };\r\n /**\r\n * Assert that the tagName of the {@link HTMLElement} or an {@link HTMLElement}\r\n * matching the `selector` matches the `expected` tagName, using the\r\n * [`tagName`](https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName)\r\n * property of the {@link HTMLElement}.\r\n *\r\n * @param {string} expected\r\n * @param {string?} message\r\n *\r\n * @example\r\n * //

        \r\n * // Title\r\n * //

        \r\n *\r\n * assert.dom('#title').hasTagName('h1');\r\n */\r\n DOMAssertions.prototype.hasTagName = function (tagName, message) {\r\n var element = this.findTargetElement();\r\n var actual;\r\n var expected;\r\n if (!element)\r\n return this;\r\n if (typeof tagName !== 'string') {\r\n throw new TypeError(\"You must pass a string to \\\"hasTagName\\\". You passed \" + tagName + \".\");\r\n }\r\n actual = element.tagName.toLowerCase();\r\n expected = tagName.toLowerCase();\r\n if (actual === expected) {\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" has tagName \" + expected;\r\n }\r\n this.pushResult({ result: true, actual: actual, expected: expected, message: message });\r\n }\r\n else {\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" does not have tagName \" + expected;\r\n }\r\n this.pushResult({ result: false, actual: actual, expected: expected, message: message });\r\n }\r\n return this;\r\n };\r\n /**\r\n * Assert that the tagName of the {@link HTMLElement} or an {@link HTMLElement}\r\n * matching the `selector` does not match the `expected` tagName, using the\r\n * [`tagName`](https://developer.mozilla.org/en-US/docs/Web/API/Element/tagName)\r\n * property of the {@link HTMLElement}.\r\n *\r\n * @param {string} expected\r\n * @param {string?} message\r\n *\r\n * @example\r\n * //
        \r\n * // Title\r\n * //
        \r\n *\r\n * assert.dom('section#block').doesNotHaveTagName('div');\r\n */\r\n DOMAssertions.prototype.doesNotHaveTagName = function (tagName, message) {\r\n var element = this.findTargetElement();\r\n var actual;\r\n var expected;\r\n if (!element)\r\n return this;\r\n if (typeof tagName !== 'string') {\r\n throw new TypeError(\"You must pass a string to \\\"doesNotHaveTagName\\\". You passed \" + tagName + \".\");\r\n }\r\n actual = element.tagName.toLowerCase();\r\n expected = tagName.toLowerCase();\r\n if (actual !== expected) {\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" does not have tagName \" + expected;\r\n }\r\n this.pushResult({ result: true, actual: actual, expected: expected, message: message });\r\n }\r\n else {\r\n if (!message) {\r\n message = \"Element \" + this.targetDescription + \" has tagName \" + expected;\r\n }\r\n this.pushResult({ result: false, actual: actual, expected: expected, message: message });\r\n }\r\n return this;\r\n };\r\n /**\r\n * @private\r\n */\r\n DOMAssertions.prototype.pushResult = function (result) {\r\n this.testContext.pushResult(result);\r\n };\r\n /**\r\n * Finds a valid HTMLElement from target, or pushes a failing assertion if a valid\r\n * element is not found.\r\n * @private\r\n * @returns (HTMLElement|null) a valid HTMLElement, or null\r\n */\r\n DOMAssertions.prototype.findTargetElement = function () {\r\n var el = this.findElement();\r\n if (el === null) {\r\n var message = \"Element \" + (this.target || '') + \" should exist\";\r\n this.pushResult({ message: message, result: false, actual: undefined, expected: undefined });\r\n return null;\r\n }\r\n return el;\r\n };\r\n /**\r\n * Finds a valid HTMLElement from target\r\n * @private\r\n * @returns (HTMLElement|null) a valid HTMLElement, or null\r\n * @throws TypeError will be thrown if target is an unrecognized type\r\n */\r\n DOMAssertions.prototype.findElement = function () {\r\n if (this.target === null) {\r\n return null;\r\n }\r\n else if (typeof this.target === 'string') {\r\n return this.rootElement.querySelector(this.target);\r\n }\r\n else if (this.target instanceof Element) {\r\n return this.target;\r\n }\r\n else {\r\n throw new TypeError(\"Unexpected Parameter: \" + this.target);\r\n }\r\n };\r\n /**\r\n * Finds a collection of Element instances from target using querySelectorAll\r\n * @private\r\n * @returns (Element[]) an array of Element instances\r\n * @throws TypeError will be thrown if target is an unrecognized type\r\n */\r\n DOMAssertions.prototype.findElements = function () {\r\n if (this.target === null) {\r\n return [];\r\n }\r\n else if (typeof this.target === 'string') {\r\n return toArray(this.rootElement.querySelectorAll(this.target));\r\n }\r\n else if (this.target instanceof Element) {\r\n return [this.target];\r\n }\r\n else {\r\n throw new TypeError(\"Unexpected Parameter: \" + this.target);\r\n }\r\n };\r\n Object.defineProperty(DOMAssertions.prototype, \"targetDescription\", {\r\n /**\r\n * @private\r\n */\r\n get: function () {\r\n return elementToString(this.target);\r\n },\r\n enumerable: true,\r\n configurable: true\r\n });\r\n return DOMAssertions;\r\n }());\n\n /* global QUnit */\r\n QUnit.assert.dom = function (target, rootElement) {\r\n if (!isValidRootElement(rootElement)) {\r\n throw new Error(rootElement + \" is not a valid root element\");\r\n }\r\n rootElement = rootElement || this.dom.rootElement || document;\r\n return new DOMAssertions(target || rootElement, rootElement, this);\r\n };\r\n function isValidRootElement(element) {\r\n return (!element ||\r\n (typeof element === 'object' &&\r\n typeof element.querySelector === 'function' &&\r\n typeof element.querySelectorAll === 'function'));\r\n }\n\n}());\n","Object.defineProperty(QUnit.assert.dom, 'rootElement', {\n get: function() {\n return document.querySelector('#ember-testing');\n },\n enumerable: true,\n configurable: true,\n});\n","define(\"@ember/test-helpers/-internal/debug-info-helpers\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = registerDebugInfoHelper;\n _exports.debugInfoHelpers = void 0;\n const debugInfoHelpers = new Set();\n /**\n * Registers a custom debug info helper to augment the output for test isolation validation.\n *\n * @public\n * @param {DebugInfoHelper} debugHelper a custom debug info helper\n * @example\n *\n * import { registerDebugInfoHelper } from '@ember/test-helpers';\n *\n * registerDebugInfoHelper({\n * name: 'Date override detection',\n * log() {\n * if (dateIsOverridden()) {\n * console.log(this.name);\n * console.log('The date object has been overridden');\n * }\n * }\n * })\n */\n\n _exports.debugInfoHelpers = debugInfoHelpers;\n\n function registerDebugInfoHelper(debugHelper) {\n debugInfoHelpers.add(debugHelper);\n }\n});","define(\"@ember/test-helpers/-internal/debug-info\", [\"exports\", \"@ember/test-helpers/-internal/debug-info-helpers\", \"ember-test-waiters\"], function (_exports, _debugInfoHelpers, _emberTestWaiters) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.backburnerDebugInfoAvailable = backburnerDebugInfoAvailable;\n _exports.getDebugInfo = getDebugInfo;\n _exports.TestDebugInfo = void 0;\n const PENDING_AJAX_REQUESTS = 'Pending AJAX requests';\n const PENDING_TEST_WAITERS = 'Pending test waiters';\n const SCHEDULED_ASYNC = 'Scheduled async';\n const SCHEDULED_AUTORUN = 'Scheduled autorun';\n /**\n * Determins if the `getDebugInfo` method is available in the\n * running verison of backburner.\n *\n * @returns {boolean} True if `getDebugInfo` is present in backburner, otherwise false.\n */\n\n function backburnerDebugInfoAvailable() {\n return typeof Ember.run.backburner.getDebugInfo === 'function';\n }\n /**\n * Retrieves debug information from backburner's current deferred actions queue (runloop instance).\n * If the `getDebugInfo` method isn't available, it returns `null`.\n *\n * @public\n * @returns {MaybeDebugInfo | null} Backburner debugInfo or, if the getDebugInfo method is not present, null\n */\n\n\n function getDebugInfo() {\n return Ember.run.backburner.DEBUG === true && backburnerDebugInfoAvailable() ? Ember.run.backburner.getDebugInfo() : null;\n }\n /**\n * Encapsulates debug information for an individual test. Aggregates information\n * from:\n * - info provided by getSettledState\n * - hasPendingTimers\n * - hasRunLoop\n * - hasPendingWaiters\n * - hasPendingRequests\n * - info provided by backburner's getDebugInfo method (timers, schedules, and stack trace info)\n *\n */\n\n\n class TestDebugInfo {\n constructor(settledState, debugInfo = getDebugInfo()) {\n this._summaryInfo = undefined;\n this._settledState = settledState;\n this._debugInfo = debugInfo;\n }\n\n get summary() {\n if (!this._summaryInfo) {\n this._summaryInfo = Ember.assign({}, this._settledState);\n\n if (this._debugInfo) {\n this._summaryInfo.autorunStackTrace = this._debugInfo.autorun && this._debugInfo.autorun.stack;\n this._summaryInfo.pendingTimersCount = this._debugInfo.timers.length;\n this._summaryInfo.hasPendingTimers = this._settledState.hasPendingTimers && this._summaryInfo.pendingTimersCount > 0;\n this._summaryInfo.pendingTimersStackTraces = this._debugInfo.timers.map(timer => timer.stack);\n this._summaryInfo.pendingScheduledQueueItemCount = this._debugInfo.instanceStack.filter(q => q).reduce((total, item) => {\n Object.keys(item).forEach(queueName => {\n total += item[queueName].length;\n });\n return total;\n }, 0);\n this._summaryInfo.pendingScheduledQueueItemStackTraces = this._debugInfo.instanceStack.filter(q => q).reduce((stacks, deferredActionQueues) => {\n Object.keys(deferredActionQueues).forEach(queue => {\n deferredActionQueues[queue].forEach(queueItem => queueItem.stack && stacks.push(queueItem.stack));\n });\n return stacks;\n }, []);\n }\n\n if (this._summaryInfo.hasPendingTestWaiters) {\n this._summaryInfo.pendingTestWaiterInfo = (0, _emberTestWaiters.getPendingWaiterState)();\n }\n }\n\n return this._summaryInfo;\n }\n\n toConsole(_console = console) {\n let summary = this.summary;\n\n if (summary.hasPendingRequests) {\n _console.log(PENDING_AJAX_REQUESTS);\n }\n\n if (summary.hasPendingLegacyWaiters) {\n _console.log(PENDING_TEST_WAITERS);\n }\n\n if (summary.hasPendingTestWaiters) {\n if (!summary.hasPendingLegacyWaiters) {\n _console.log(PENDING_TEST_WAITERS);\n }\n\n Object.keys(summary.pendingTestWaiterInfo.waiters).forEach(waiterName => {\n let waiterDebugInfo = summary.pendingTestWaiterInfo.waiters[waiterName];\n\n if (Array.isArray(waiterDebugInfo)) {\n _console.group(waiterName);\n\n waiterDebugInfo.forEach(debugInfo => {\n _console.log(`${debugInfo.label ? debugInfo.label : 'stack'}: ${debugInfo.stack}`);\n });\n\n _console.groupEnd();\n } else {\n _console.log(waiterName);\n }\n });\n }\n\n if (summary.hasPendingTimers || summary.pendingScheduledQueueItemCount > 0) {\n _console.group(SCHEDULED_ASYNC);\n\n summary.pendingTimersStackTraces.forEach(timerStack => {\n _console.log(timerStack);\n });\n summary.pendingScheduledQueueItemStackTraces.forEach(scheduleQueueItemStack => {\n _console.log(scheduleQueueItemStack);\n });\n\n _console.groupEnd();\n }\n\n if (summary.hasRunLoop && summary.pendingTimersCount === 0 && summary.pendingScheduledQueueItemCount === 0) {\n _console.log(SCHEDULED_AUTORUN);\n\n if (summary.autorunStackTrace) {\n _console.log(summary.autorunStackTrace);\n }\n }\n\n _debugInfoHelpers.debugInfoHelpers.forEach(helper => {\n helper.log();\n });\n }\n\n _formatCount(title, count) {\n return `${title}: ${count}`;\n }\n\n }\n\n _exports.TestDebugInfo = TestDebugInfo;\n});","define(\"@ember/test-helpers/-tuple\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = tuple;\n\n // eslint-disable-next-line require-jsdoc\n function tuple(...args) {\n return args;\n }\n});","define(\"@ember/test-helpers/-utils\", [\"exports\", \"@ember/test-helpers/has-ember-version\"], function (_exports, _hasEmberVersion) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.nextTickPromise = nextTickPromise;\n _exports.runDestroyablesFor = runDestroyablesFor;\n _exports.isNumeric = isNumeric;\n _exports.futureTick = _exports.nextTick = _exports._Promise = void 0;\n\n class _Promise extends Ember.RSVP.Promise {}\n\n _exports._Promise = _Promise;\n const ORIGINAL_RSVP_ASYNC = Ember.RSVP.configure('async');\n /*\n Long ago in a galaxy far far away, Ember forced RSVP.Promise to \"resolve\" on the Ember.run loop.\n At the time, this was meant to help ease pain with folks receiving the dreaded \"auto-run\" assertion\n during their tests, and to help ensure that promise resolution was coelesced to avoid \"thrashing\"\n of the DOM. Unfortunately, the result of this configuration is that code like the following behaves\n differently if using native `Promise` vs `RSVP.Promise`:\n \n ```js\n console.log('first');\n Ember.run(() => Promise.resolve().then(() => console.log('second')));\n console.log('third');\n ```\n \n When `Promise` is the native promise that will log `'first', 'third', 'second'`, but when `Promise`\n is an `RSVP.Promise` that will log `'first', 'second', 'third'`. The fact that `RSVP.Promise`s can\n be **forced** to flush synchronously is very scary!\n \n Now, lets talk about why we are configuring `RSVP`'s `async` below...\n \n ---\n \n The following _should_ always be guaranteed:\n \n ```js\n await settled();\n \n isSettled() === true\n ```\n \n Unfortunately, without the custom `RSVP` `async` configuration we cannot ensure that `isSettled()` will\n be truthy. This is due to the fact that Ember has configured `RSVP` to resolve all promises in the run\n loop. What that means practically is this:\n \n 1. all checks within `waitUntil` (used by `settled()` internally) are completed and we are \"settled\"\n 2. `waitUntil` resolves the promise that it returned (to signify that the world is \"settled\")\n 3. resolving the promise (since it is an `RSVP.Promise` and Ember has configured RSVP.Promise) creates\n a new Ember.run loop in order to resolve\n 4. the presence of that new run loop means that we are no longer \"settled\"\n 5. `isSettled()` returns false 😭😭😭😭😭😭😭😭😭\n \n This custom `RSVP.configure('async`, ...)` below provides a way to prevent the promises that are returned\n from `settled` from causing this \"loop\" and instead \"just use normal Promise semantics\".\n \n 😩😫🙀\n */\n\n Ember.RSVP.configure('async', (callback, promise) => {\n if (promise instanceof _Promise) {\n // @ts-ignore - avoid erroring about useless `Promise !== RSVP.Promise` comparison\n // (this handles when folks have polyfilled via Promise = Ember.RSVP.Promise)\n if (typeof Promise !== 'undefined' && Promise !== Ember.RSVP.Promise) {\n // use real native promise semantics whenever possible\n Promise.resolve().then(() => callback(promise));\n } else {\n // fallback to using RSVP's natural `asap` (**not** the fake\n // one configured by Ember...)\n Ember.RSVP.asap(callback, promise);\n }\n } else {\n // fall back to the normal Ember behavior\n ORIGINAL_RSVP_ASYNC(callback, promise);\n }\n });\n const nextTick = typeof Promise === 'undefined' ? setTimeout : cb => Promise.resolve().then(cb);\n _exports.nextTick = nextTick;\n const futureTick = setTimeout;\n /**\n @private\n @returns {Promise} Promise which can not be forced to be ran synchronously\n */\n\n _exports.futureTick = futureTick;\n\n function nextTickPromise() {\n // Ember 3.4 removed the auto-run assertion, in 3.4+ we can (and should) avoid the \"psuedo promisey\" run loop configuration\n // for our `nextTickPromise` implementation. This allows us to have real microtask based next tick timing...\n if ((0, _hasEmberVersion.default)(3, 4)) {\n return _Promise.resolve();\n } else {\n // on older Ember's fallback to RSVP.Promise + a setTimeout\n return new Ember.RSVP.Promise(resolve => {\n nextTick(resolve);\n });\n }\n }\n /**\n Retrieves an array of destroyables from the specified property on the object\n provided, iterates that array invoking each function, then deleting the\n property (clearing the array).\n \n @private\n @param {Object} object an object to search for the destroyable array within\n @param {string} property the property on the object that contains the destroyable array\n */\n\n\n function runDestroyablesFor(object, property) {\n let destroyables = object[property];\n\n if (!destroyables) {\n return;\n }\n\n for (let i = 0; i < destroyables.length; i++) {\n destroyables[i]();\n }\n\n delete object[property];\n }\n /**\n Returns whether the passed in string consists only of numeric characters.\n \n @private\n @param {string} n input string\n @returns {boolean} whether the input string consists only of numeric characters\n */\n\n\n function isNumeric(n) {\n return !isNaN(parseFloat(n)) && isFinite(Number(n));\n }\n});","define(\"@ember/test-helpers/application\", [\"exports\", \"@ember/test-helpers/resolver\"], function (_exports, _resolver) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.setApplication = setApplication;\n _exports.getApplication = getApplication;\n\n var __application__;\n /**\n Stores the provided application instance so that tests being ran will be aware of the application under test.\n \n - Required by `setupApplicationContext` method.\n - Used by `setupContext` and `setupRenderingContext` when present.\n \n @public\n @param {Ember.Application} application the application that will be tested\n */\n\n\n function setApplication(application) {\n __application__ = application;\n\n if (!(0, _resolver.getResolver)()) {\n let Resolver = application.Resolver;\n let resolver = Resolver.create({\n namespace: application\n });\n (0, _resolver.setResolver)(resolver);\n }\n }\n /**\n Retrieve the application instance stored by `setApplication`.\n \n @public\n @returns {Ember.Application} the previously stored application instance under test\n */\n\n\n function getApplication() {\n return __application__;\n }\n});","define(\"@ember/test-helpers/build-owner\", [\"exports\", \"ember-test-helpers/legacy-0-6-x/build-registry\"], function (_exports, _buildRegistry) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = buildOwner;\n\n /**\n Creates an \"owner\" (an object that either _is_ or duck-types like an\n `Ember.ApplicationInstance`) from the provided options.\n \n If `options.application` is present (e.g. setup by an earlier call to\n `setApplication`) an `Ember.ApplicationInstance` is built via\n `application.buildInstance()`.\n \n If `options.application` is not present, we fall back to using\n `options.resolver` instead (setup via `setResolver`). This creates a mock\n \"owner\" by using a custom created combination of `Ember.Registry`,\n `Ember.Container`, `Ember._ContainerProxyMixin`, and\n `Ember._RegistryProxyMixin`.\n \n @private\n @param {Ember.Application} [application] the Ember.Application to build an instance from\n @param {Ember.Resolver} [resolver] the resolver to use to back a \"mock owner\"\n @returns {Promise} a promise resolving to the generated \"owner\"\n */\n function buildOwner(application, resolver) {\n if (application) {\n return application.boot().then(app => app.buildInstance().boot());\n }\n\n if (!resolver) {\n throw new Error('You must set up the ember-test-helpers environment with either `setResolver` or `setApplication` before running any tests.');\n }\n\n let {\n owner\n } = (0, _buildRegistry.default)(resolver);\n return Ember.RSVP.Promise.resolve(owner);\n }\n});","define(\"@ember/test-helpers/dom/-get-element\", [\"exports\", \"@ember/test-helpers/dom/get-root-element\", \"@ember/test-helpers/dom/-target\"], function (_exports, _getRootElement, _target) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /**\n Used internally by the DOM interaction helpers to find one element.\n \n @private\n @param {string|Element} target the element or selector to retrieve\n @returns {Element} the target or selector\n */\n function getElement(target) {\n if (typeof target === 'string') {\n let rootElement = (0, _getRootElement.default)();\n return rootElement.querySelector(target);\n } else if ((0, _target.isElement)(target) || (0, _target.isDocument)(target)) {\n return target;\n } else if (target instanceof Window) {\n return target.document;\n } else {\n throw new Error('Must use an element or a selector string');\n }\n }\n\n var _default = getElement;\n _exports.default = _default;\n});","define(\"@ember/test-helpers/dom/-get-elements\", [\"exports\", \"@ember/test-helpers/dom/get-root-element\"], function (_exports, _getRootElement) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = getElements;\n\n /**\n Used internally by the DOM interaction helpers to find multiple elements.\n \n @private\n @param {string} target the selector to retrieve\n @returns {NodeList} the matched elements\n */\n function getElements(target) {\n if (typeof target === 'string') {\n let rootElement = (0, _getRootElement.default)();\n return rootElement.querySelectorAll(target);\n } else {\n throw new Error('Must use a selector string');\n }\n }\n});","define(\"@ember/test-helpers/dom/-is-focusable\", [\"exports\", \"@ember/test-helpers/dom/-is-form-control\", \"@ember/test-helpers/dom/-target\"], function (_exports, _isFormControl, _target) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = isFocusable;\n const FOCUSABLE_TAGS = ['A']; // eslint-disable-next-line require-jsdoc\n\n function isFocusableElement(element) {\n return FOCUSABLE_TAGS.indexOf(element.tagName) > -1;\n }\n /**\n @private\n @param {Element} element the element to check\n @returns {boolean} `true` when the element is focusable, `false` otherwise\n */\n\n\n function isFocusable(element) {\n if ((0, _target.isDocument)(element)) {\n return false;\n }\n\n if ((0, _isFormControl.default)(element) || element.isContentEditable || isFocusableElement(element)) {\n return true;\n }\n\n return element.hasAttribute('tabindex');\n }\n});","define(\"@ember/test-helpers/dom/-is-form-control\", [\"exports\", \"@ember/test-helpers/dom/-target\"], function (_exports, _target) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = isFormControl;\n const FORM_CONTROL_TAGS = ['INPUT', 'BUTTON', 'SELECT', 'TEXTAREA'];\n /**\n @private\n @param {Element} element the element to check\n @returns {boolean} `true` when the element is a form control, `false` otherwise\n */\n\n function isFormControl(element) {\n return !(0, _target.isDocument)(element) && FORM_CONTROL_TAGS.indexOf(element.tagName) > -1 && element.type !== 'hidden';\n }\n});","define(\"@ember/test-helpers/dom/-target\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.isElement = isElement;\n _exports.isDocument = isDocument;\n\n // eslint-disable-next-line require-jsdoc\n function isElement(target) {\n return target.nodeType === Node.ELEMENT_NODE;\n } // eslint-disable-next-line require-jsdoc\n\n\n function isDocument(target) {\n return target.nodeType === Node.DOCUMENT_NODE;\n }\n});","define(\"@ember/test-helpers/dom/-to-array\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = toArray;\n\n /**\n @private\n @param {NodeList} nodelist the nodelist to convert to an array\n @returns {Array} an array\n */\n function toArray(nodelist) {\n let array = new Array(nodelist.length);\n\n for (let i = 0; i < nodelist.length; i++) {\n array[i] = nodelist[i];\n }\n\n return array;\n }\n});","define(\"@ember/test-helpers/dom/blur\", [\"exports\", \"@ember/test-helpers/dom/-get-element\", \"@ember/test-helpers/dom/fire-event\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/dom/-is-focusable\", \"@ember/test-helpers/-utils\"], function (_exports, _getElement, _fireEvent, _settled, _isFocusable, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.__blur__ = __blur__;\n _exports.default = blur;\n\n /**\n @private\n @param {Element} element the element to trigger events on\n */\n function __blur__(element) {\n let browserIsNotFocused = document.hasFocus && !document.hasFocus(); // makes `document.activeElement` be `body`.\n // If the browser is focused, it also fires a blur event\n\n element.blur(); // Chrome/Firefox does not trigger the `blur` event if the window\n // does not have focus. If the document does not have focus then\n // fire `blur` event via native event.\n\n if (browserIsNotFocused) {\n (0, _fireEvent.default)(element, 'blur', {\n bubbles: false\n });\n (0, _fireEvent.default)(element, 'focusout');\n }\n }\n /**\n Unfocus the specified target.\n \n Sends a number of events intending to simulate a \"real\" user unfocusing an\n element.\n \n The following events are triggered (in order):\n \n - `blur`\n - `focusout`\n \n The exact listing of events that are triggered may change over time as needed\n to continue to emulate how actual browsers handle unfocusing a given element.\n \n @public\n @param {string|Element} [target=document.activeElement] the element or selector to unfocus\n @return {Promise} resolves when settled\n \n @example\n \n Emulating blurring an input using `blur`\n \n \n blur('input');\n */\n\n\n function blur(target = document.activeElement) {\n return (0, _utils.nextTickPromise)().then(() => {\n let element = (0, _getElement.default)(target);\n\n if (!element) {\n throw new Error(`Element not found when calling \\`blur('${target}')\\`.`);\n }\n\n if (!(0, _isFocusable.default)(element)) {\n throw new Error(`${target} is not focusable`);\n }\n\n __blur__(element);\n\n return (0, _settled.default)();\n });\n }\n});","define(\"@ember/test-helpers/dom/click\", [\"exports\", \"@ember/test-helpers/dom/-get-element\", \"@ember/test-helpers/dom/fire-event\", \"@ember/test-helpers/dom/focus\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/dom/-is-focusable\", \"@ember/test-helpers/-utils\", \"@ember/test-helpers/dom/-is-form-control\"], function (_exports, _getElement, _fireEvent, _focus, _settled, _isFocusable, _utils, _isFormControl) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.__click__ = __click__;\n _exports.default = click;\n\n /**\n @private\n @param {Element} element the element to click on\n @param {Object} options the options to be merged into the mouse events\n */\n function __click__(element, options) {\n (0, _fireEvent.default)(element, 'mousedown', options);\n\n if ((0, _isFocusable.default)(element)) {\n (0, _focus.__focus__)(element);\n }\n\n (0, _fireEvent.default)(element, 'mouseup', options);\n (0, _fireEvent.default)(element, 'click', options);\n }\n /**\n Clicks on the specified target.\n \n Sends a number of events intending to simulate a \"real\" user clicking on an\n element.\n \n For non-focusable elements the following events are triggered (in order):\n \n - `mousedown`\n - `mouseup`\n - `click`\n \n For focusable (e.g. form control) elements the following events are triggered\n (in order):\n \n - `mousedown`\n - `focus`\n - `focusin`\n - `mouseup`\n - `click`\n \n The exact listing of events that are triggered may change over time as needed\n to continue to emulate how actual browsers handle clicking a given element.\n \n Use the `options` hash to change the parameters of the [MouseEvents](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent).\n You can use this to specifiy modifier keys as well.\n \n @public\n @param {string|Element} target the element or selector to click on\n @param {Object} options the options to be merged into the mouse events\n @return {Promise} resolves when settled\n \n @example\n \n Emulating clicking a button using `click`\n \n click('button');\n \n @example\n \n Emulating clicking a button and pressing the `shift` key simultaneously using `click` with `options`.\n \n \n click('button', { shiftKey: true });\n */\n\n\n function click(target, options = {}) {\n return (0, _utils.nextTickPromise)().then(() => {\n if (!target) {\n throw new Error('Must pass an element or selector to `click`.');\n }\n\n let element = (0, _getElement.default)(target);\n\n if (!element) {\n throw new Error(`Element not found when calling \\`click('${target}')\\`.`);\n }\n\n let isDisabledFormControl = (0, _isFormControl.default)(element) && element.disabled;\n\n if (!isDisabledFormControl) {\n __click__(element, options);\n }\n\n return (0, _settled.default)();\n });\n }\n});","define(\"@ember/test-helpers/dom/double-click\", [\"exports\", \"@ember/test-helpers/dom/-get-element\", \"@ember/test-helpers/dom/fire-event\", \"@ember/test-helpers/dom/focus\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/dom/-is-focusable\", \"@ember/test-helpers/-utils\"], function (_exports, _getElement, _fireEvent, _focus, _settled, _isFocusable, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.__doubleClick__ = __doubleClick__;\n _exports.default = doubleClick;\n\n /**\n @private\n @param {Element} element the element to double-click on\n @param {Object} options the options to be merged into the mouse events\n */\n function __doubleClick__(element, options) {\n (0, _fireEvent.default)(element, 'mousedown', options);\n\n if ((0, _isFocusable.default)(element)) {\n (0, _focus.__focus__)(element);\n }\n\n (0, _fireEvent.default)(element, 'mouseup', options);\n (0, _fireEvent.default)(element, 'click', options);\n (0, _fireEvent.default)(element, 'mousedown', options);\n (0, _fireEvent.default)(element, 'mouseup', options);\n (0, _fireEvent.default)(element, 'click', options);\n (0, _fireEvent.default)(element, 'dblclick', options);\n }\n /**\n Double-clicks on the specified target.\n \n Sends a number of events intending to simulate a \"real\" user clicking on an\n element.\n \n For non-focusable elements the following events are triggered (in order):\n \n - `mousedown`\n - `mouseup`\n - `click`\n - `mousedown`\n - `mouseup`\n - `click`\n - `dblclick`\n \n For focusable (e.g. form control) elements the following events are triggered\n (in order):\n \n - `mousedown`\n - `focus`\n - `focusin`\n - `mouseup`\n - `click`\n - `mousedown`\n - `mouseup`\n - `click`\n - `dblclick`\n \n The exact listing of events that are triggered may change over time as needed\n to continue to emulate how actual browsers handle clicking a given element.\n \n Use the `options` hash to change the parameters of the [MouseEvents](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/MouseEvent).\n \n @public\n @param {string|Element} target the element or selector to double-click on\n @param {Object} options the options to be merged into the mouse events\n @return {Promise} resolves when settled\n \n @example\n \n Emulating double clicking a button using `doubleClick`\n \n \n doubleClick('button');\n \n @example\n \n Emulating double clicking a button and pressing the `shift` key simultaneously using `click` with `options`.\n \n \n doubleClick('button', { shiftKey: true });\n */\n\n\n function doubleClick(target, options = {}) {\n return (0, _utils.nextTickPromise)().then(() => {\n if (!target) {\n throw new Error('Must pass an element or selector to `doubleClick`.');\n }\n\n let element = (0, _getElement.default)(target);\n\n if (!element) {\n throw new Error(`Element not found when calling \\`doubleClick('${target}')\\`.`);\n }\n\n __doubleClick__(element, options);\n\n return (0, _settled.default)();\n });\n }\n});","define(\"@ember/test-helpers/dom/fill-in\", [\"exports\", \"@ember/test-helpers/dom/-get-element\", \"@ember/test-helpers/dom/-is-form-control\", \"@ember/test-helpers/dom/focus\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/dom/fire-event\", \"@ember/test-helpers/-utils\"], function (_exports, _getElement, _isFormControl, _focus, _settled, _fireEvent, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = fillIn;\n\n /**\n Fill the provided text into the `value` property (or set `.innerHTML` when\n the target is a content editable element) then trigger `change` and `input`\n events on the specified target.\n \n @public\n @param {string|Element} target the element or selector to enter text into\n @param {string} text the text to fill into the target element\n @return {Promise} resolves when the application is settled\n \n @example\n \n Emulating filling an input with text using `fillIn`\n \n \n fillIn('input', 'hello world');\n */\n function fillIn(target, text) {\n return (0, _utils.nextTickPromise)().then(() => {\n if (!target) {\n throw new Error('Must pass an element or selector to `fillIn`.');\n }\n\n let element = (0, _getElement.default)(target);\n\n if (!element) {\n throw new Error(`Element not found when calling \\`fillIn('${target}')\\`.`);\n }\n\n let isControl = (0, _isFormControl.default)(element);\n\n if (!isControl && !element.isContentEditable) {\n throw new Error('`fillIn` is only usable on form controls or contenteditable elements.');\n }\n\n if (typeof text === 'undefined' || text === null) {\n throw new Error('Must provide `text` when calling `fillIn`.');\n }\n\n (0, _focus.__focus__)(element);\n\n if (isControl) {\n element.value = text;\n } else {\n element.innerHTML = text;\n }\n\n (0, _fireEvent.default)(element, 'input');\n (0, _fireEvent.default)(element, 'change');\n return (0, _settled.default)();\n });\n }\n});","define(\"@ember/test-helpers/dom/find-all\", [\"exports\", \"@ember/test-helpers/dom/-get-elements\", \"@ember/test-helpers/dom/-to-array\"], function (_exports, _getElements, _toArray) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = findAll;\n\n /**\n Find all elements matched by the given selector. Similar to calling\n `querySelectorAll()` on the test root element, but returns an array instead\n of a `NodeList`.\n \n @public\n @param {string} selector the selector to search for\n @return {Array} array of matched elements\n */\n function findAll(selector) {\n if (!selector) {\n throw new Error('Must pass a selector to `findAll`.');\n }\n\n if (arguments.length > 1) {\n throw new Error('The `findAll` test helper only takes a single argument.');\n }\n\n return (0, _toArray.default)((0, _getElements.default)(selector));\n }\n});","define(\"@ember/test-helpers/dom/find\", [\"exports\", \"@ember/test-helpers/dom/-get-element\"], function (_exports, _getElement) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = find;\n\n /**\n Find the first element matched by the given selector. Equivalent to calling\n `querySelector()` on the test root element.\n \n @public\n @param {string} selector the selector to search for\n @return {Element} matched element or null\n */\n function find(selector) {\n if (!selector) {\n throw new Error('Must pass a selector to `find`.');\n }\n\n if (arguments.length > 1) {\n throw new Error('The `find` test helper only takes a single argument.');\n }\n\n return (0, _getElement.default)(selector);\n }\n});","define(\"@ember/test-helpers/dom/fire-event\", [\"exports\", \"@ember/test-helpers/dom/-target\", \"@ember/test-helpers/-tuple\"], function (_exports, _target, _tuple) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.isKeyboardEventType = isKeyboardEventType;\n _exports.isMouseEventType = isMouseEventType;\n _exports.isFileSelectionEventType = isFileSelectionEventType;\n _exports.isFileSelectionInput = isFileSelectionInput;\n _exports.default = _exports.KEYBOARD_EVENT_TYPES = void 0;\n\n // eslint-disable-next-line require-jsdoc\n const MOUSE_EVENT_CONSTRUCTOR = (() => {\n try {\n new MouseEvent('test');\n return true;\n } catch (e) {\n return false;\n }\n })();\n\n const DEFAULT_EVENT_OPTIONS = {\n bubbles: true,\n cancelable: true\n };\n const KEYBOARD_EVENT_TYPES = (0, _tuple.default)('keydown', 'keypress', 'keyup'); // eslint-disable-next-line require-jsdoc\n\n _exports.KEYBOARD_EVENT_TYPES = KEYBOARD_EVENT_TYPES;\n\n function isKeyboardEventType(eventType) {\n return KEYBOARD_EVENT_TYPES.indexOf(eventType) > -1;\n }\n\n const MOUSE_EVENT_TYPES = (0, _tuple.default)('click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover'); // eslint-disable-next-line require-jsdoc\n\n function isMouseEventType(eventType) {\n return MOUSE_EVENT_TYPES.indexOf(eventType) > -1;\n }\n\n const FILE_SELECTION_EVENT_TYPES = (0, _tuple.default)('change'); // eslint-disable-next-line require-jsdoc\n\n function isFileSelectionEventType(eventType) {\n return FILE_SELECTION_EVENT_TYPES.indexOf(eventType) > -1;\n } // eslint-disable-next-line require-jsdoc\n\n\n function isFileSelectionInput(element) {\n return element.files;\n }\n /**\n Internal helper used to build and dispatch events throughout the other DOM helpers.\n \n @private\n @param {Element} element the element to dispatch the event to\n @param {string} eventType the type of event\n @param {Object} [options] additional properties to be set on the event\n @returns {Event} the event that was dispatched\n */\n\n\n function fireEvent(element, eventType, options = {}) {\n if (!element) {\n throw new Error('Must pass an element to `fireEvent`');\n }\n\n let event;\n\n if (isKeyboardEventType(eventType)) {\n event = buildKeyboardEvent(eventType, options);\n } else if (isMouseEventType(eventType)) {\n let rect;\n\n if (element instanceof Window && element.document.documentElement) {\n rect = element.document.documentElement.getBoundingClientRect();\n } else if ((0, _target.isDocument)(element)) {\n rect = element.documentElement.getBoundingClientRect();\n } else if ((0, _target.isElement)(element)) {\n rect = element.getBoundingClientRect();\n } else {\n return;\n }\n\n let x = rect.left + 1;\n let y = rect.top + 1;\n let simulatedCoordinates = {\n screenX: x + 5,\n screenY: y + 95,\n clientX: x,\n clientY: y\n };\n event = buildMouseEvent(eventType, Ember.assign(simulatedCoordinates, options));\n } else if (isFileSelectionEventType(eventType) && isFileSelectionInput(element)) {\n event = buildFileEvent(eventType, element, options);\n } else {\n event = buildBasicEvent(eventType, options);\n }\n\n element.dispatchEvent(event);\n return event;\n }\n\n var _default = fireEvent; // eslint-disable-next-line require-jsdoc\n\n _exports.default = _default;\n\n function buildBasicEvent(type, options = {}) {\n let event = document.createEvent('Events');\n let bubbles = options.bubbles !== undefined ? options.bubbles : true;\n let cancelable = options.cancelable !== undefined ? options.cancelable : true;\n delete options.bubbles;\n delete options.cancelable; // bubbles and cancelable are readonly, so they can be\n // set when initializing event\n\n event.initEvent(type, bubbles, cancelable);\n Ember.assign(event, options);\n return event;\n } // eslint-disable-next-line require-jsdoc\n\n\n function buildMouseEvent(type, options = {}) {\n let event;\n let eventOpts = Ember.assign({\n view: window\n }, DEFAULT_EVENT_OPTIONS, options);\n\n if (MOUSE_EVENT_CONSTRUCTOR) {\n event = new MouseEvent(type, eventOpts);\n } else {\n try {\n event = document.createEvent('MouseEvents');\n event.initMouseEvent(type, eventOpts.bubbles, 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 }\n\n return event;\n } // eslint-disable-next-line require-jsdoc\n\n\n function buildKeyboardEvent(type, options = {}) {\n let eventOpts = Ember.assign({}, DEFAULT_EVENT_OPTIONS, options);\n let event;\n let eventMethodName;\n\n try {\n event = new KeyboardEvent(type, eventOpts); // Property definitions are required for B/C for keyboard event usage\n // If this properties are not defined, when listening for key events\n // keyCode/which will be 0. Also, keyCode and which now are string\n // and if app compare it with === with integer key definitions,\n // there will be a fail.\n //\n // https://w3c.github.io/uievents/#interface-keyboardevent\n // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent\n\n Object.defineProperty(event, 'keyCode', {\n get() {\n return parseInt(eventOpts.keyCode);\n }\n\n });\n Object.defineProperty(event, 'which', {\n get() {\n return parseInt(eventOpts.which);\n }\n\n });\n return event;\n } catch (e) {// left intentionally blank\n }\n\n try {\n event = document.createEvent('KeyboardEvents');\n eventMethodName = 'initKeyboardEvent';\n } catch (e) {// left intentionally blank\n }\n\n if (!event) {\n try {\n event = document.createEvent('KeyEvents');\n eventMethodName = 'initKeyEvent';\n } catch (e) {// left intentionally blank\n }\n }\n\n if (event && eventMethodName) {\n event[eventMethodName](type, eventOpts.bubbles, eventOpts.cancelable, window, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.keyCode, eventOpts.charCode);\n } else {\n event = buildBasicEvent(type, options);\n }\n\n return event;\n } // eslint-disable-next-line require-jsdoc\n\n\n function buildFileEvent(type, element, options = {}) {\n let event = buildBasicEvent(type);\n let files;\n\n if (Array.isArray(options)) {\n (true && !(false) && Ember.deprecate('Passing the `options` param as an array to `triggerEvent` for file inputs is deprecated. Please pass an object with a key `files` containing the array instead.', false, {\n id: 'ember-test-helpers.trigger-event.options-blob-array',\n until: '2.0.0'\n }));\n files = options;\n } else {\n files = options.files;\n }\n\n if (Array.isArray(files)) {\n Object.defineProperty(files, 'item', {\n value(index) {\n return typeof index === 'number' ? this[index] : null;\n }\n\n });\n Object.defineProperty(element, 'files', {\n value: files,\n configurable: true\n });\n }\n\n Object.defineProperty(event, 'target', {\n value: element\n });\n return event;\n }\n});","define(\"@ember/test-helpers/dom/focus\", [\"exports\", \"@ember/test-helpers/dom/-get-element\", \"@ember/test-helpers/dom/fire-event\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/dom/-is-focusable\", \"@ember/test-helpers/-utils\"], function (_exports, _getElement, _fireEvent, _settled, _isFocusable, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.__focus__ = __focus__;\n _exports.default = focus;\n\n /**\n @private\n @param {Element} element the element to trigger events on\n */\n function __focus__(element) {\n let browserIsNotFocused = document.hasFocus && !document.hasFocus(); // makes `document.activeElement` be `element`. If the browser is focused, it also fires a focus event\n\n element.focus(); // Firefox does not trigger the `focusin` event if the window\n // does not have focus. If the document does not have focus then\n // fire `focusin` event as well.\n\n if (browserIsNotFocused) {\n // if the browser is not focused the previous `el.focus()` didn't fire an event, so we simulate it\n (0, _fireEvent.default)(element, 'focus', {\n bubbles: false\n });\n (0, _fireEvent.default)(element, 'focusin');\n }\n }\n /**\n Focus the specified target.\n \n Sends a number of events intending to simulate a \"real\" user focusing an\n element.\n \n The following events are triggered (in order):\n \n - `focus`\n - `focusin`\n \n The exact listing of events that are triggered may change over time as needed\n to continue to emulate how actual browsers handle focusing a given element.\n \n @public\n @param {string|Element} target the element or selector to focus\n @return {Promise} resolves when the application is settled\n \n @example\n \n Emulating focusing an input using `focus`\n \n \n focus('input');\n */\n\n\n function focus(target) {\n return (0, _utils.nextTickPromise)().then(() => {\n if (!target) {\n throw new Error('Must pass an element or selector to `focus`.');\n }\n\n let element = (0, _getElement.default)(target);\n\n if (!element) {\n throw new Error(`Element not found when calling \\`focus('${target}')\\`.`);\n }\n\n if (!(0, _isFocusable.default)(element)) {\n throw new Error(`${target} is not focusable`);\n }\n\n __focus__(element);\n\n return (0, _settled.default)();\n });\n }\n});","define(\"@ember/test-helpers/dom/get-root-element\", [\"exports\", \"@ember/test-helpers/setup-context\", \"@ember/test-helpers/dom/-target\"], function (_exports, _setupContext, _target) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = getRootElement;\n\n /**\n Get the root element of the application under test (usually `#ember-testing`)\n \n @public\n @returns {Element} the root element\n */\n function getRootElement() {\n let context = (0, _setupContext.getContext)();\n let owner = context && context.owner;\n\n if (!owner) {\n throw new Error('Must setup rendering context before attempting to interact with elements.');\n }\n\n let rootElement; // When the host app uses `setApplication` (instead of `setResolver`) the owner has\n // a `rootElement` set on it with the element or id to be used\n\n if (owner && owner._emberTestHelpersMockOwner === undefined) {\n rootElement = owner.rootElement;\n } else {\n rootElement = '#ember-testing';\n }\n\n if (rootElement instanceof Window) {\n rootElement = rootElement.document;\n }\n\n if ((0, _target.isElement)(rootElement) || (0, _target.isDocument)(rootElement)) {\n return rootElement;\n } else if (typeof rootElement === 'string') {\n let _rootElement = document.querySelector(rootElement);\n\n if (_rootElement) {\n return _rootElement;\n }\n\n throw new Error(`Application.rootElement (${rootElement}) not found`);\n } else {\n throw new Error('Application.rootElement must be an element or a selector string');\n }\n }\n});","define(\"@ember/test-helpers/dom/tap\", [\"exports\", \"@ember/test-helpers/dom/-get-element\", \"@ember/test-helpers/dom/fire-event\", \"@ember/test-helpers/dom/click\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/-utils\"], function (_exports, _getElement, _fireEvent, _click, _settled, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = tap;\n\n /**\n Taps on the specified target.\n \n Sends a number of events intending to simulate a \"real\" user tapping on an\n element.\n \n For non-focusable elements the following events are triggered (in order):\n \n - `touchstart`\n - `touchend`\n - `mousedown`\n - `mouseup`\n - `click`\n \n For focusable (e.g. form control) elements the following events are triggered\n (in order):\n \n - `touchstart`\n - `touchend`\n - `mousedown`\n - `focus`\n - `focusin`\n - `mouseup`\n - `click`\n \n The exact listing of events that are triggered may change over time as needed\n to continue to emulate how actual browsers handle tapping on a given element.\n \n Use the `options` hash to change the parameters of the tap events.\n \n @public\n @param {string|Element} target the element or selector to tap on\n @param {Object} options the options to be merged into the touch events\n @return {Promise} resolves when settled\n \n @example\n \n Emulating tapping a button using `tap`\n \n \n tap('button');\n */\n function tap(target, options = {}) {\n return (0, _utils.nextTickPromise)().then(() => {\n if (!target) {\n throw new Error('Must pass an element or selector to `tap`.');\n }\n\n let element = (0, _getElement.default)(target);\n\n if (!element) {\n throw new Error(`Element not found when calling \\`tap('${target}')\\`.`);\n }\n\n let touchstartEv = (0, _fireEvent.default)(element, 'touchstart', options);\n let touchendEv = (0, _fireEvent.default)(element, 'touchend', options);\n\n if (!touchstartEv.defaultPrevented && !touchendEv.defaultPrevented) {\n (0, _click.__click__)(element, options);\n }\n\n return (0, _settled.default)();\n });\n }\n});","define(\"@ember/test-helpers/dom/trigger-event\", [\"exports\", \"@ember/test-helpers/dom/-get-element\", \"@ember/test-helpers/dom/fire-event\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/-utils\"], function (_exports, _getElement, _fireEvent, _settled, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = triggerEvent;\n\n /**\n * Triggers an event on the specified target.\n *\n * @public\n * @param {string|Element} target the element or selector to trigger the event on\n * @param {string} eventType the type of event to trigger\n * @param {Object} options additional properties to be set on the event\n * @return {Promise} resolves when the application is settled\n *\n * @example\n * \n * Using `triggerEvent` to upload a file\n *\n * When using `triggerEvent` to upload a file the `eventType` must be `change` and you must pass the\n * `options` param as an object with a key `files` containing an array of\n * [Blob](https://developer.mozilla.org/en-US/docs/Web/API/Blob).\n * \n *\n * triggerEvent(\n * 'input.fileUpload',\n * 'change',\n * { files: [new Blob(['Ember Rules!'])] }\n * );\n *\n *\n * @example\n * \n * Using `triggerEvent` to upload a dropped file\n *\n * When using `triggerEvent` to handle a dropped (via drag-and-drop) file, the `eventType` must be `drop`. Assuming your `drop` event handler uses the [DataTransfer API](https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer),\n * you must pass the `options` param as an object with a key of `dataTransfer`. The `options.dataTransfer` object should have a `files` key, containing an array of [File](https://developer.mozilla.org/en-US/docs/Web/API/File).\n * \n *\n * triggerEvent(\n * '[data-test-drop-zone]',\n * 'drop',\n * {\n * dataTransfer: {\n * files: [new File(['Ember Rules!', 'ember-rules.txt'])]\n * }\n * }\n * )\n */\n function triggerEvent(target, eventType, options) {\n return (0, _utils.nextTickPromise)().then(() => {\n if (!target) {\n throw new Error('Must pass an element or selector to `triggerEvent`.');\n }\n\n let element = (0, _getElement.default)(target);\n\n if (!element) {\n throw new Error(`Element not found when calling \\`triggerEvent('${target}', ...)\\`.`);\n }\n\n if (!eventType) {\n throw new Error(`Must provide an \\`eventType\\` to \\`triggerEvent\\``);\n }\n\n (0, _fireEvent.default)(element, eventType, options);\n return (0, _settled.default)();\n });\n }\n});","define(\"@ember/test-helpers/dom/trigger-key-event\", [\"exports\", \"@ember/test-helpers/dom/-get-element\", \"@ember/test-helpers/dom/fire-event\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/-utils\"], function (_exports, _getElement, _fireEvent, _settled, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.__triggerKeyEvent__ = __triggerKeyEvent__;\n _exports.default = triggerKeyEvent;\n const DEFAULT_MODIFIERS = Object.freeze({\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false\n }); // This is not a comprehensive list, but it is better than nothing.\n\n const keyFromKeyCode = {\n 8: 'Backspace',\n 9: 'Tab',\n 13: 'Enter',\n 16: 'Shift',\n 17: 'Control',\n 18: 'Alt',\n 20: 'CapsLock',\n 27: 'Escape',\n 32: ' ',\n 37: 'ArrowLeft',\n 38: 'ArrowUp',\n 39: 'ArrowRight',\n 40: 'ArrowDown',\n 48: '0',\n 49: '1',\n 50: '2',\n 51: '3',\n 52: '4',\n 53: '5',\n 54: '6',\n 55: '7',\n 56: '8',\n 57: '9',\n 65: 'a',\n 66: 'b',\n 67: 'c',\n 68: 'd',\n 69: 'e',\n 70: 'f',\n 71: 'g',\n 72: 'h',\n 73: 'i',\n 74: 'j',\n 75: 'k',\n 76: 'l',\n 77: 'm',\n 78: 'n',\n 79: 'o',\n 80: 'p',\n 81: 'q',\n 82: 'r',\n 83: 's',\n 84: 't',\n 85: 'u',\n 86: 'v',\n 87: 'v',\n 88: 'x',\n 89: 'y',\n 90: 'z',\n 91: 'Meta',\n 93: 'Meta',\n 187: '=',\n 189: '-'\n };\n /**\n Calculates the value of KeyboardEvent#key given a keycode and the modifiers.\n Note that this works if the key is pressed in combination with the shift key, but it cannot\n detect if caps lock is enabled.\n @param {number} keycode The keycode of the event.\n @param {object} modifiers The modifiers of the event.\n @returns {string} The key string for the event.\n */\n\n function keyFromKeyCodeAndModifiers(keycode, modifiers) {\n if (keycode > 64 && keycode < 91) {\n if (modifiers.shiftKey) {\n return String.fromCharCode(keycode);\n } else {\n return String.fromCharCode(keycode).toLocaleLowerCase();\n }\n }\n\n let key = keyFromKeyCode[keycode];\n\n if (key) {\n return key;\n }\n }\n /**\n * Infers the keycode from the given key\n * @param {string} key The KeyboardEvent#key string\n * @returns {number} The keycode for the given key\n */\n\n\n function keyCodeFromKey(key) {\n let keys = Object.keys(keyFromKeyCode);\n let keyCode = keys.find(keyCode => keyFromKeyCode[Number(keyCode)] === key);\n\n if (!keyCode) {\n keyCode = keys.find(keyCode => keyFromKeyCode[Number(keyCode)] === key.toLowerCase());\n }\n\n return keyCode !== undefined ? parseInt(keyCode) : undefined;\n }\n /**\n @private\n @param {Element | Document} element the element to trigger the key event on\n @param {'keydown' | 'keyup' | 'keypress'} eventType the type of event to trigger\n @param {number|string} key the `keyCode`(number) or `key`(string) of the event being triggered\n @param {Object} [modifiers] the state of various modifier keys\n */\n\n\n function __triggerKeyEvent__(element, eventType, key, modifiers = DEFAULT_MODIFIERS) {\n let props;\n\n if (typeof key === 'number') {\n props = {\n keyCode: key,\n which: key,\n key: keyFromKeyCodeAndModifiers(key, modifiers)\n };\n } else if (typeof key === 'string' && key.length !== 0) {\n let firstCharacter = key[0];\n\n if (firstCharacter !== firstCharacter.toUpperCase()) {\n throw new Error(`Must provide a \\`key\\` to \\`triggerKeyEvent\\` that starts with an uppercase character but you passed \\`${key}\\`.`);\n }\n\n if ((0, _utils.isNumeric)(key) && key.length > 1) {\n throw new Error(`Must provide a numeric \\`keyCode\\` to \\`triggerKeyEvent\\` but you passed \\`${key}\\` as a string.`);\n }\n\n let keyCode = keyCodeFromKey(key);\n props = {\n keyCode,\n which: keyCode,\n key\n };\n } else {\n throw new Error(`Must provide a \\`key\\` or \\`keyCode\\` to \\`triggerKeyEvent\\``);\n }\n\n let options = Ember.assign(props, modifiers);\n (0, _fireEvent.default)(element, eventType, options);\n }\n /**\n Triggers a keyboard event of given type in the target element.\n It also requires the developer to provide either a string with the [`key`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values)\n or the numeric [`keyCode`](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode) of the pressed key.\n Optionally the user can also provide a POJO with extra modifiers for the event.\n \n @public\n @param {string|Element} target the element or selector to trigger the event on\n @param {'keydown' | 'keyup' | 'keypress'} eventType the type of event to trigger\n @param {number|string} key the `keyCode`(number) or `key`(string) of the event being triggered\n @param {Object} [modifiers] the state of various modifier keys\n @param {boolean} [modifiers.ctrlKey=false] if true the generated event will indicate the control key was pressed during the key event\n @param {boolean} [modifiers.altKey=false] if true the generated event will indicate the alt key was pressed during the key event\n @param {boolean} [modifiers.shiftKey=false] if true the generated event will indicate the shift key was pressed during the key event\n @param {boolean} [modifiers.metaKey=false] if true the generated event will indicate the meta key was pressed during the key event\n @return {Promise} resolves when the application is settled unless awaitSettled is false\n \n @example\n \n Emulating pressing the `ENTER` key on a button using `triggerKeyEvent`\n \n triggerKeyEvent('button', 'keydown', 'Enter');\n */\n\n\n function triggerKeyEvent(target, eventType, key, modifiers = DEFAULT_MODIFIERS) {\n return (0, _utils.nextTickPromise)().then(() => {\n if (!target) {\n throw new Error('Must pass an element or selector to `triggerKeyEvent`.');\n }\n\n let element = (0, _getElement.default)(target);\n\n if (!element) {\n throw new Error(`Element not found when calling \\`triggerKeyEvent('${target}', ...)\\`.`);\n }\n\n if (!eventType) {\n throw new Error(`Must provide an \\`eventType\\` to \\`triggerKeyEvent\\``);\n }\n\n if (!(0, _fireEvent.isKeyboardEventType)(eventType)) {\n let validEventTypes = _fireEvent.KEYBOARD_EVENT_TYPES.join(', ');\n\n throw new Error(`Must provide an \\`eventType\\` of ${validEventTypes} to \\`triggerKeyEvent\\` but you passed \\`${eventType}\\`.`);\n }\n\n __triggerKeyEvent__(element, eventType, key, modifiers);\n\n return (0, _settled.default)();\n });\n }\n});","define(\"@ember/test-helpers/dom/type-in\", [\"exports\", \"@ember/test-helpers/-utils\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/dom/-get-element\", \"@ember/test-helpers/dom/-is-form-control\", \"@ember/test-helpers/dom/focus\", \"@ember/test-helpers/dom/-is-focusable\", \"@ember/test-helpers/dom/fire-event\", \"@ember/test-helpers/dom/trigger-key-event\"], function (_exports, _utils, _settled, _getElement, _isFormControl, _focus, _isFocusable, _fireEvent, _triggerKeyEvent) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = typeIn;\n\n /**\n * Mimics character by character entry into the target `input` or `textarea` element.\n *\n * Allows for simulation of slow entry by passing an optional millisecond delay\n * between key events.\n \n * The major difference between `typeIn` and `fillIn` is that `typeIn` triggers\n * keyboard events as well as `input` and `change`.\n * Typically this looks like `focus` -> `focusin` -> `keydown` -> `keypress` -> `keyup` -> `input` -> `change`\n * per character of the passed text (this may vary on some browsers).\n *\n * @public\n * @param {string|Element} target the element or selector to enter text into\n * @param {string} text the test to fill the element with\n * @param {Object} options {delay: x} (default 50) number of milliseconds to wait per keypress\n * @return {Promise} resolves when the application is settled\n *\n * @example\n * \n * Emulating typing in an input using `typeIn`\n * \n *\n * typeIn('hello world');\n */\n function typeIn(target, text, options = {}) {\n return (0, _utils.nextTickPromise)().then(() => {\n if (!target) {\n throw new Error('Must pass an element or selector to `typeIn`.');\n }\n\n const element = (0, _getElement.default)(target);\n\n if (!element) {\n throw new Error(`Element not found when calling \\`typeIn('${target}')\\``);\n }\n\n if (!(0, _isFormControl.default)(element)) {\n throw new Error('`typeIn` is only usable on form controls.');\n }\n\n if (typeof text === 'undefined' || text === null) {\n throw new Error('Must provide `text` when calling `typeIn`.');\n }\n\n let {\n delay = 50\n } = options;\n\n if ((0, _isFocusable.default)(element)) {\n (0, _focus.__focus__)(element);\n }\n\n return fillOut(element, text, delay).then(() => (0, _fireEvent.default)(element, 'change')).then(_settled.default);\n });\n } // eslint-disable-next-line require-jsdoc\n\n\n function fillOut(element, text, delay) {\n const inputFunctions = text.split('').map(character => keyEntry(element, character));\n return inputFunctions.reduce((currentPromise, func) => {\n return currentPromise.then(() => delayedExecute(delay)).then(func);\n }, Ember.RSVP.Promise.resolve(undefined));\n } // eslint-disable-next-line require-jsdoc\n\n\n function keyEntry(element, character) {\n let shiftKey = character === character.toUpperCase() && character !== character.toLowerCase();\n let options = {\n shiftKey\n };\n let characterKey = character.toUpperCase();\n return function () {\n return (0, _utils.nextTickPromise)().then(() => (0, _triggerKeyEvent.__triggerKeyEvent__)(element, 'keydown', characterKey, options)).then(() => (0, _triggerKeyEvent.__triggerKeyEvent__)(element, 'keypress', characterKey, options)).then(() => {\n element.value = element.value + character;\n (0, _fireEvent.default)(element, 'input');\n }).then(() => (0, _triggerKeyEvent.__triggerKeyEvent__)(element, 'keyup', characterKey, options));\n };\n } // eslint-disable-next-line require-jsdoc\n\n\n function delayedExecute(delay) {\n return new Ember.RSVP.Promise(resolve => {\n setTimeout(resolve, delay);\n });\n }\n});","define(\"@ember/test-helpers/dom/wait-for\", [\"exports\", \"@ember/test-helpers/wait-until\", \"@ember/test-helpers/dom/-get-element\", \"@ember/test-helpers/dom/-get-elements\", \"@ember/test-helpers/dom/-to-array\", \"@ember/test-helpers/-utils\"], function (_exports, _waitUntil, _getElement, _getElements, _toArray, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = waitFor;\n\n /**\n Used to wait for a particular selector to appear in the DOM. Due to the fact\n that it does not wait for general settledness, this is quite useful for testing\n interim DOM states (e.g. loading states, pending promises, etc).\n \n @param {string} selector the selector to wait for\n @param {Object} [options] the options to be used\n @param {number} [options.timeout=1000] the time to wait (in ms) for a match\n @param {number} [options.count=null] the number of elements that should match the provided selector (null means one or more)\n @return {Promise} resolves when the element(s) appear on the page\n */\n function waitFor(selector, options = {}) {\n return (0, _utils.nextTickPromise)().then(() => {\n if (!selector) {\n throw new Error('Must pass a selector to `waitFor`.');\n }\n\n let {\n timeout = 1000,\n count = null,\n timeoutMessage\n } = options;\n\n if (!timeoutMessage) {\n timeoutMessage = `waitFor timed out waiting for selector \"${selector}\"`;\n }\n\n let callback;\n\n if (count !== null) {\n callback = () => {\n let elements = (0, _getElements.default)(selector);\n\n if (elements.length === count) {\n return (0, _toArray.default)(elements);\n }\n\n return;\n };\n } else {\n callback = () => (0, _getElement.default)(selector);\n }\n\n return (0, _waitUntil.default)(callback, {\n timeout,\n timeoutMessage\n });\n });\n }\n});","define(\"@ember/test-helpers/global\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n /* globals global */\n var _default = (() => {\n if (typeof self !== 'undefined') {\n return self;\n } else if (typeof window !== 'undefined') {\n return window;\n } else if (typeof global !== 'undefined') {\n return global;\n } else {\n return Function('return this')();\n }\n })();\n\n _exports.default = _default;\n});","define(\"@ember/test-helpers/has-ember-version\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = hasEmberVersion;\n\n /**\n Checks if the currently running Ember version is greater than or equal to the\n specified major and minor version numbers.\n \n @private\n @param {number} major the major version number to compare\n @param {number} minor the minor version number to compare\n @returns {boolean} true if the Ember version is >= MAJOR.MINOR specified, false otherwise\n */\n function hasEmberVersion(major, minor) {\n var numbers = Ember.VERSION.split('-')[0].split('.');\n var actualMajor = parseInt(numbers[0], 10);\n var actualMinor = parseInt(numbers[1], 10);\n return actualMajor > major || actualMajor === major && actualMinor >= minor;\n }\n});","define(\"@ember/test-helpers/index\", [\"exports\", \"@ember/test-helpers/resolver\", \"@ember/test-helpers/application\", \"@ember/test-helpers/setup-context\", \"@ember/test-helpers/teardown-context\", \"@ember/test-helpers/setup-rendering-context\", \"@ember/test-helpers/teardown-rendering-context\", \"@ember/test-helpers/setup-application-context\", \"@ember/test-helpers/teardown-application-context\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/wait-until\", \"@ember/test-helpers/validate-error-handler\", \"@ember/test-helpers/setup-onerror\", \"@ember/test-helpers/-internal/debug-info\", \"@ember/test-helpers/-internal/debug-info-helpers\", \"@ember/test-helpers/test-metadata\", \"@ember/test-helpers/dom/click\", \"@ember/test-helpers/dom/double-click\", \"@ember/test-helpers/dom/tap\", \"@ember/test-helpers/dom/focus\", \"@ember/test-helpers/dom/blur\", \"@ember/test-helpers/dom/trigger-event\", \"@ember/test-helpers/dom/trigger-key-event\", \"@ember/test-helpers/dom/fill-in\", \"@ember/test-helpers/dom/wait-for\", \"@ember/test-helpers/dom/get-root-element\", \"@ember/test-helpers/dom/find\", \"@ember/test-helpers/dom/find-all\", \"@ember/test-helpers/dom/type-in\"], function (_exports, _resolver, _application, _setupContext, _teardownContext, _setupRenderingContext, _teardownRenderingContext, _setupApplicationContext, _teardownApplicationContext, _settled, _waitUntil, _validateErrorHandler, _setupOnerror, _debugInfo, _debugInfoHelpers, _testMetadata, _click, _doubleClick, _tap, _focus, _blur, _triggerEvent, _triggerKeyEvent, _fillIn, _waitFor, _getRootElement, _find, _findAll, _typeIn) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"setResolver\", {\n enumerable: true,\n get: function () {\n return _resolver.setResolver;\n }\n });\n Object.defineProperty(_exports, \"getResolver\", {\n enumerable: true,\n get: function () {\n return _resolver.getResolver;\n }\n });\n Object.defineProperty(_exports, \"getApplication\", {\n enumerable: true,\n get: function () {\n return _application.getApplication;\n }\n });\n Object.defineProperty(_exports, \"setApplication\", {\n enumerable: true,\n get: function () {\n return _application.setApplication;\n }\n });\n Object.defineProperty(_exports, \"setupContext\", {\n enumerable: true,\n get: function () {\n return _setupContext.default;\n }\n });\n Object.defineProperty(_exports, \"getContext\", {\n enumerable: true,\n get: function () {\n return _setupContext.getContext;\n }\n });\n Object.defineProperty(_exports, \"setContext\", {\n enumerable: true,\n get: function () {\n return _setupContext.setContext;\n }\n });\n Object.defineProperty(_exports, \"unsetContext\", {\n enumerable: true,\n get: function () {\n return _setupContext.unsetContext;\n }\n });\n Object.defineProperty(_exports, \"pauseTest\", {\n enumerable: true,\n get: function () {\n return _setupContext.pauseTest;\n }\n });\n Object.defineProperty(_exports, \"resumeTest\", {\n enumerable: true,\n get: function () {\n return _setupContext.resumeTest;\n }\n });\n Object.defineProperty(_exports, \"teardownContext\", {\n enumerable: true,\n get: function () {\n return _teardownContext.default;\n }\n });\n Object.defineProperty(_exports, \"setupRenderingContext\", {\n enumerable: true,\n get: function () {\n return _setupRenderingContext.default;\n }\n });\n Object.defineProperty(_exports, \"render\", {\n enumerable: true,\n get: function () {\n return _setupRenderingContext.render;\n }\n });\n Object.defineProperty(_exports, \"clearRender\", {\n enumerable: true,\n get: function () {\n return _setupRenderingContext.clearRender;\n }\n });\n Object.defineProperty(_exports, \"teardownRenderingContext\", {\n enumerable: true,\n get: function () {\n return _teardownRenderingContext.default;\n }\n });\n Object.defineProperty(_exports, \"setupApplicationContext\", {\n enumerable: true,\n get: function () {\n return _setupApplicationContext.default;\n }\n });\n Object.defineProperty(_exports, \"visit\", {\n enumerable: true,\n get: function () {\n return _setupApplicationContext.visit;\n }\n });\n Object.defineProperty(_exports, \"currentRouteName\", {\n enumerable: true,\n get: function () {\n return _setupApplicationContext.currentRouteName;\n }\n });\n Object.defineProperty(_exports, \"currentURL\", {\n enumerable: true,\n get: function () {\n return _setupApplicationContext.currentURL;\n }\n });\n Object.defineProperty(_exports, \"teardownApplicationContext\", {\n enumerable: true,\n get: function () {\n return _teardownApplicationContext.default;\n }\n });\n Object.defineProperty(_exports, \"settled\", {\n enumerable: true,\n get: function () {\n return _settled.default;\n }\n });\n Object.defineProperty(_exports, \"isSettled\", {\n enumerable: true,\n get: function () {\n return _settled.isSettled;\n }\n });\n Object.defineProperty(_exports, \"getSettledState\", {\n enumerable: true,\n get: function () {\n return _settled.getSettledState;\n }\n });\n Object.defineProperty(_exports, \"waitUntil\", {\n enumerable: true,\n get: function () {\n return _waitUntil.default;\n }\n });\n Object.defineProperty(_exports, \"validateErrorHandler\", {\n enumerable: true,\n get: function () {\n return _validateErrorHandler.default;\n }\n });\n Object.defineProperty(_exports, \"setupOnerror\", {\n enumerable: true,\n get: function () {\n return _setupOnerror.default;\n }\n });\n Object.defineProperty(_exports, \"resetOnerror\", {\n enumerable: true,\n get: function () {\n return _setupOnerror.resetOnerror;\n }\n });\n Object.defineProperty(_exports, \"getDebugInfo\", {\n enumerable: true,\n get: function () {\n return _debugInfo.getDebugInfo;\n }\n });\n Object.defineProperty(_exports, \"registerDebugInfoHelper\", {\n enumerable: true,\n get: function () {\n return _debugInfoHelpers.default;\n }\n });\n Object.defineProperty(_exports, \"getTestMetadata\", {\n enumerable: true,\n get: function () {\n return _testMetadata.default;\n }\n });\n Object.defineProperty(_exports, \"click\", {\n enumerable: true,\n get: function () {\n return _click.default;\n }\n });\n Object.defineProperty(_exports, \"doubleClick\", {\n enumerable: true,\n get: function () {\n return _doubleClick.default;\n }\n });\n Object.defineProperty(_exports, \"tap\", {\n enumerable: true,\n get: function () {\n return _tap.default;\n }\n });\n Object.defineProperty(_exports, \"focus\", {\n enumerable: true,\n get: function () {\n return _focus.default;\n }\n });\n Object.defineProperty(_exports, \"blur\", {\n enumerable: true,\n get: function () {\n return _blur.default;\n }\n });\n Object.defineProperty(_exports, \"triggerEvent\", {\n enumerable: true,\n get: function () {\n return _triggerEvent.default;\n }\n });\n Object.defineProperty(_exports, \"triggerKeyEvent\", {\n enumerable: true,\n get: function () {\n return _triggerKeyEvent.default;\n }\n });\n Object.defineProperty(_exports, \"fillIn\", {\n enumerable: true,\n get: function () {\n return _fillIn.default;\n }\n });\n Object.defineProperty(_exports, \"waitFor\", {\n enumerable: true,\n get: function () {\n return _waitFor.default;\n }\n });\n Object.defineProperty(_exports, \"getRootElement\", {\n enumerable: true,\n get: function () {\n return _getRootElement.default;\n }\n });\n Object.defineProperty(_exports, \"find\", {\n enumerable: true,\n get: function () {\n return _find.default;\n }\n });\n Object.defineProperty(_exports, \"findAll\", {\n enumerable: true,\n get: function () {\n return _findAll.default;\n }\n });\n Object.defineProperty(_exports, \"typeIn\", {\n enumerable: true,\n get: function () {\n return _typeIn.default;\n }\n });\n});","define(\"@ember/test-helpers/resolver\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.setResolver = setResolver;\n _exports.getResolver = getResolver;\n\n var __resolver__;\n /**\n Stores the provided resolver instance so that tests being ran can resolve\n objects in the same way as a normal application.\n \n Used by `setupContext` and `setupRenderingContext` as a fallback when `setApplication` was _not_ used.\n \n @public\n @param {Ember.Resolver} resolver the resolver to be used for testing\n */\n\n\n function setResolver(resolver) {\n __resolver__ = resolver;\n }\n /**\n Retrieve the resolver instance stored by `setResolver`.\n \n @public\n @returns {Ember.Resolver} the previously stored resolver\n */\n\n\n function getResolver() {\n return __resolver__;\n }\n});","define(\"@ember/test-helpers/settled\", [\"exports\", \"@ember/test-helpers/-utils\", \"@ember/test-helpers/wait-until\", \"@ember/test-helpers/setup-application-context\", \"ember-test-waiters\", \"@ember/test-helpers/-internal/debug-info\"], function (_exports, _utils, _waitUntil, _setupApplicationContext, _emberTestWaiters, _debugInfo) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports._teardownAJAXHooks = _teardownAJAXHooks;\n _exports._setupAJAXHooks = _setupAJAXHooks;\n _exports.getSettledState = getSettledState;\n _exports.isSettled = isSettled;\n _exports.default = settled;\n\n // Ember internally tracks AJAX requests in the same way that we do here for\n // legacy style \"acceptance\" tests using the `ember-testing.js` asset provided\n // by emberjs/ember.js itself. When `@ember/test-helpers`'s `settled` utility\n // is used in a legacy acceptance test context any pending AJAX requests are\n // not properly considered during the `isSettled` check below.\n //\n // This utilizes a local utility method present in Ember since around 2.8.0 to\n // properly consider pending AJAX requests done within legacy acceptance tests.\n const _internalPendingRequests = (() => {\n let loader = Ember.__loader;\n\n if (loader.registry['ember-testing/test/pending_requests']) {\n // Ember <= 3.1\n return loader.require('ember-testing/test/pending_requests').pendingRequests;\n } else if (loader.registry['ember-testing/lib/test/pending_requests']) {\n // Ember >= 3.2\n return loader.require('ember-testing/lib/test/pending_requests').pendingRequests;\n }\n\n return () => 0;\n })();\n\n let requests;\n /**\n @private\n @returns {number} the count of pending requests\n */\n\n function pendingRequests() {\n let localRequestsPending = requests !== undefined ? requests.length : 0;\n\n let internalRequestsPending = _internalPendingRequests();\n\n return localRequestsPending + internalRequestsPending;\n }\n /**\n @private\n @param {Event} event (unused)\n @param {XMLHTTPRequest} xhr the XHR that has initiated a request\n */\n\n\n function incrementAjaxPendingRequests(event, xhr) {\n requests.push(xhr);\n }\n /**\n @private\n @param {Event} event (unused)\n @param {XMLHTTPRequest} xhr the XHR that has initiated a request\n */\n\n\n function decrementAjaxPendingRequests(event, xhr) {\n // In most Ember versions to date (current version is 2.16) RSVP promises are\n // configured to flush in the actions queue of the Ember run loop, however it\n // is possible that in the future this changes to use \"true\" micro-task\n // queues.\n //\n // The entire point here, is that _whenever_ promises are resolved will be\n // before the next run of the JS event loop. Then in the next event loop this\n // counter will decrement. In the specific case of AJAX, this means that any\n // promises chained off of `$.ajax` will properly have their `.then` called\n // _before_ this is decremented (and testing continues)\n (0, _utils.nextTick)(() => {\n for (let i = 0; i < requests.length; i++) {\n if (xhr === requests[i]) {\n requests.splice(i, 1);\n }\n }\n }, 0);\n }\n /**\n Clears listeners that were previously setup for `ajaxSend` and `ajaxComplete`.\n \n @private\n */\n\n\n function _teardownAJAXHooks() {\n // jQuery will not invoke `ajaxComplete` if\n // 1. `transport.send` throws synchronously and\n // 2. it has an `error` option which also throws synchronously\n // We can no longer handle any remaining requests\n requests = [];\n\n if (typeof jQuery === 'undefined') {\n return;\n }\n\n jQuery(document).off('ajaxSend', incrementAjaxPendingRequests);\n jQuery(document).off('ajaxComplete', decrementAjaxPendingRequests);\n }\n /**\n Sets up listeners for `ajaxSend` and `ajaxComplete`.\n \n @private\n */\n\n\n function _setupAJAXHooks() {\n requests = [];\n\n if (typeof jQuery === 'undefined') {\n return;\n }\n\n jQuery(document).on('ajaxSend', incrementAjaxPendingRequests);\n jQuery(document).on('ajaxComplete', decrementAjaxPendingRequests);\n }\n\n let _internalCheckWaiters;\n\n let loader = Ember.__loader;\n\n if (loader.registry['ember-testing/test/waiters']) {\n // Ember <= 3.1\n _internalCheckWaiters = loader.require('ember-testing/test/waiters').checkWaiters;\n } else if (loader.registry['ember-testing/lib/test/waiters']) {\n // Ember >= 3.2\n _internalCheckWaiters = loader.require('ember-testing/lib/test/waiters').checkWaiters;\n }\n /**\n @private\n @returns {boolean} true if waiters are still pending\n */\n\n\n function checkWaiters() {\n let EmberTest = Ember.Test;\n\n if (_internalCheckWaiters) {\n return _internalCheckWaiters();\n } else if (EmberTest.waiters) {\n if (EmberTest.waiters.some(([context, callback]) => !callback.call(context))) {\n return true;\n }\n }\n\n return false;\n }\n /**\n Check various settledness metrics, and return an object with the following properties:\n \n - `hasRunLoop` - Checks if a run-loop has been started. If it has, this will\n be `true` otherwise it will be `false`.\n - `hasPendingTimers` - Checks if there are scheduled timers in the run-loop.\n These pending timers are primarily registered by `Ember.run.schedule`. If\n there are pending timers, this will be `true`, otherwise `false`.\n - `hasPendingWaiters` - Checks if any registered test waiters are still\n pending (e.g. the waiter returns `true`). If there are pending waiters,\n this will be `true`, otherwise `false`.\n - `hasPendingRequests` - Checks if there are pending AJAX requests (based on\n `ajaxSend` / `ajaxComplete` events triggered by `jQuery.ajax`). If there\n are pending requests, this will be `true`, otherwise `false`.\n - `hasPendingTransitions` - Checks if there are pending route transitions. If the\n router has not been instantiated / setup for the test yet this will return `null`,\n if there are pending transitions, this will be `true`, otherwise `false`.\n - `pendingRequestCount` - The count of pending AJAX requests.\n - `debugInfo` - Debug information that's combined with info return from backburner's\n getDebugInfo method.\n \n @public\n @returns {Object} object with properties for each of the metrics used to determine settledness\n */\n\n\n function getSettledState() {\n let hasPendingTimers = Boolean(Ember.run.hasScheduledTimers());\n let hasRunLoop = Boolean(Ember.run.currentRunLoop);\n let hasPendingLegacyWaiters = checkWaiters();\n let hasPendingTestWaiters = (0, _emberTestWaiters.hasPendingWaiters)();\n let pendingRequestCount = pendingRequests();\n let hasPendingRequests = pendingRequestCount > 0;\n return {\n hasPendingTimers,\n hasRunLoop,\n hasPendingWaiters: hasPendingLegacyWaiters || hasPendingTestWaiters,\n hasPendingRequests,\n hasPendingTransitions: (0, _setupApplicationContext.hasPendingTransitions)(),\n pendingRequestCount,\n debugInfo: new _debugInfo.TestDebugInfo({\n hasPendingTimers,\n hasRunLoop,\n hasPendingLegacyWaiters,\n hasPendingTestWaiters,\n hasPendingRequests\n })\n };\n }\n /**\n Checks various settledness metrics (via `getSettledState()`) to determine if things are settled or not.\n \n Settled generally means that there are no pending timers, no pending waiters,\n no pending AJAX requests, and no current run loop. However, new settledness\n metrics may be added and used as they become available.\n \n @public\n @returns {boolean} `true` if settled, `false` otherwise\n */\n\n\n function isSettled() {\n let {\n hasPendingTimers,\n hasRunLoop,\n hasPendingRequests,\n hasPendingWaiters,\n hasPendingTransitions\n } = getSettledState();\n\n if (hasPendingTimers || hasRunLoop || hasPendingRequests || hasPendingWaiters || hasPendingTransitions) {\n return false;\n }\n\n return true;\n }\n /**\n Returns a promise that resolves when in a settled state (see `isSettled` for\n a definition of \"settled state\").\n \n @public\n @returns {Promise} resolves when settled\n */\n\n\n function settled() {\n return (0, _waitUntil.default)(isSettled, {\n timeout: Infinity\n }).then(() => {});\n }\n});","define(\"@ember/test-helpers/setup-application-context\", [\"exports\", \"@ember/test-helpers/-utils\", \"@ember/test-helpers/setup-context\", \"@ember/test-helpers/global\", \"@ember/test-helpers/has-ember-version\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/test-metadata\"], function (_exports, _utils, _setupContext, _global, _hasEmberVersion, _settled, _testMetadata) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.isApplicationTestContext = isApplicationTestContext;\n _exports.hasPendingTransitions = hasPendingTransitions;\n _exports.setupRouterSettlednessTracking = setupRouterSettlednessTracking;\n _exports.visit = visit;\n _exports.currentRouteName = currentRouteName;\n _exports.currentURL = currentURL;\n _exports.default = setupApplicationContext;\n const CAN_USE_ROUTER_EVENTS = (0, _hasEmberVersion.default)(3, 6);\n let routerTransitionsPending = null;\n const ROUTER = new WeakMap();\n const HAS_SETUP_ROUTER = new WeakMap(); // eslint-disable-next-line require-jsdoc\n\n function isApplicationTestContext(context) {\n return (0, _setupContext.isTestContext)(context);\n }\n /**\n Determines if we have any pending router transtions (used to determine `settled` state)\n \n @public\n @returns {(boolean|null)} if there are pending transitions\n */\n\n\n function hasPendingTransitions() {\n if (CAN_USE_ROUTER_EVENTS) {\n return routerTransitionsPending;\n }\n\n let context = (0, _setupContext.getContext)(); // there is no current context, we cannot check\n\n if (context === undefined) {\n return null;\n }\n\n let router = ROUTER.get(context);\n\n if (router === undefined) {\n // if there is no router (e.g. no `visit` calls made yet), we cannot\n // check for pending transitions but this is explicitly not an error\n // condition\n return null;\n }\n\n let routerMicrolib = router._routerMicrolib || router.router;\n\n if (routerMicrolib === undefined) {\n return null;\n }\n\n return !!routerMicrolib.activeTransition;\n }\n /**\n Setup the current router instance with settledness tracking. Generally speaking this\n is done automatically (during a `visit('/some-url')` invocation), but under some\n circumstances (e.g. a non-application test where you manually call `this.owner.setupRouter()`)\n you may want to call it yourself.\n \n @public\n */\n\n\n function setupRouterSettlednessTracking() {\n const context = (0, _setupContext.getContext)();\n\n if (context === undefined) {\n throw new Error('Cannot setupRouterSettlednessTracking outside of a test context');\n } // avoid setting up many times for the same context\n\n\n if (HAS_SETUP_ROUTER.get(context)) {\n return;\n }\n\n HAS_SETUP_ROUTER.set(context, true);\n let {\n owner\n } = context;\n let router;\n\n if (CAN_USE_ROUTER_EVENTS) {\n router = owner.lookup('service:router'); // track pending transitions via the public routeWillChange / routeDidChange APIs\n // routeWillChange can fire many times and is only useful to know when we have _started_\n // transitioning, we can then use routeDidChange to signal that the transition has settled\n\n router.on('routeWillChange', () => routerTransitionsPending = true);\n router.on('routeDidChange', () => routerTransitionsPending = false);\n } else {\n router = owner.lookup('router:main');\n ROUTER.set(context, router);\n } // hook into teardown to reset local settledness state\n\n\n let ORIGINAL_WILL_DESTROY = router.willDestroy;\n\n router.willDestroy = function () {\n routerTransitionsPending = null;\n return ORIGINAL_WILL_DESTROY.apply(this, arguments);\n };\n }\n /**\n Navigate the application to the provided URL.\n \n @public\n @param {string} url The URL to visit (e.g. `/posts`)\n @param {object} options app boot options\n @returns {Promise} resolves when settled\n */\n\n\n function visit(url, options) {\n const context = (0, _setupContext.getContext)();\n\n if (!context || !isApplicationTestContext(context)) {\n throw new Error('Cannot call `visit` without having first called `setupApplicationContext`.');\n }\n\n let {\n owner\n } = context;\n let testMetadata = (0, _testMetadata.default)(context);\n testMetadata.usedHelpers.push('visit');\n return (0, _utils.nextTickPromise)().then(() => {\n let visitResult = owner.visit(url, options);\n setupRouterSettlednessTracking();\n return visitResult;\n }).then(() => {\n if (_global.default.EmberENV._APPLICATION_TEMPLATE_WRAPPER !== false) {\n context.element = document.querySelector('#ember-testing > .ember-view');\n } else {\n context.element = document.querySelector('#ember-testing');\n }\n }).then(_settled.default);\n }\n /**\n @public\n @returns {string} the currently active route name\n */\n\n\n function currentRouteName() {\n const context = (0, _setupContext.getContext)();\n\n if (!context || !isApplicationTestContext(context)) {\n throw new Error('Cannot call `currentRouteName` without having first called `setupApplicationContext`.');\n }\n\n let router = context.owner.lookup('router:main');\n return Ember.get(router, 'currentRouteName');\n }\n\n const HAS_CURRENT_URL_ON_ROUTER = (0, _hasEmberVersion.default)(2, 13);\n /**\n @public\n @returns {string} the applications current url\n */\n\n function currentURL() {\n const context = (0, _setupContext.getContext)();\n\n if (!context || !isApplicationTestContext(context)) {\n throw new Error('Cannot call `currentURL` without having first called `setupApplicationContext`.');\n }\n\n let router = context.owner.lookup('router:main');\n\n if (HAS_CURRENT_URL_ON_ROUTER) {\n return Ember.get(router, 'currentURL');\n } else {\n return Ember.get(router, 'location').getURL();\n }\n }\n /**\n Used by test framework addons to setup the provided context for working with\n an application (e.g. routing).\n \n `setupContext` must have been run on the provided context prior to calling\n `setupApplicationContext`.\n \n Sets up the basic framework used by application tests.\n \n @public\n @param {Object} context the context to setup\n @returns {Promise} resolves with the context that was setup\n */\n\n\n function setupApplicationContext(context) {\n let testMetadata = (0, _testMetadata.default)(context);\n testMetadata.setupTypes.push('setupApplicationContext');\n return (0, _utils.nextTickPromise)();\n }\n});","define(\"@ember/test-helpers/setup-context\", [\"exports\", \"@ember/test-helpers/build-owner\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/global\", \"@ember/test-helpers/resolver\", \"@ember/test-helpers/application\", \"@ember/test-helpers/-utils\", \"@ember/test-helpers/test-metadata\"], function (_exports, _buildOwner, _settled, _global, _resolver, _application, _utils, _testMetadata) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.isTestContext = isTestContext;\n _exports.setContext = setContext;\n _exports.getContext = getContext;\n _exports.unsetContext = unsetContext;\n _exports.pauseTest = pauseTest;\n _exports.resumeTest = resumeTest;\n _exports.default = setupContext;\n _exports.CLEANUP = void 0;\n\n // eslint-disable-next-line require-jsdoc\n function isTestContext(context) {\n return typeof context.pauseTest === 'function' && typeof context.resumeTest === 'function';\n }\n\n let __test_context__;\n /**\n Stores the provided context as the \"global testing context\".\n \n Generally setup automatically by `setupContext`.\n \n @public\n @param {Object} context the context to use\n */\n\n\n function setContext(context) {\n __test_context__ = context;\n }\n /**\n Retrive the \"global testing context\" as stored by `setContext`.\n \n @public\n @returns {Object} the previously stored testing context\n */\n\n\n function getContext() {\n return __test_context__;\n }\n /**\n Clear the \"global testing context\".\n \n Generally invoked from `teardownContext`.\n \n @public\n */\n\n\n function unsetContext() {\n __test_context__ = undefined;\n }\n /**\n * Returns a promise to be used to pauses the current test (due to being\n * returned from the test itself). This is useful for debugging while testing\n * or for test-driving. It allows you to inspect the state of your application\n * at any point.\n *\n * The test framework wrapper (e.g. `ember-qunit` or `ember-mocha`) should\n * ensure that when `pauseTest()` is used, any framework specific test timeouts\n * are disabled.\n *\n * @public\n * @returns {Promise} resolves _only_ when `resumeTest()` is invoked\n * @example Usage via ember-qunit\n *\n * import { setupRenderingTest } from 'ember-qunit';\n * import { render, click, pauseTest } from '@ember/test-helpers';\n *\n *\n * module('awesome-sauce', function(hooks) {\n * setupRenderingTest(hooks);\n *\n * test('does something awesome', async function(assert) {\n * await render(hbs`{{awesome-sauce}}`);\n *\n * // added here to visualize / interact with the DOM prior\n * // to the interaction below\n * await pauseTest();\n *\n * click('.some-selector');\n *\n * assert.equal(this.element.textContent, 'this sauce is awesome!');\n * });\n * });\n */\n\n\n function pauseTest() {\n let context = getContext();\n\n if (!context || !isTestContext(context)) {\n throw new Error('Cannot call `pauseTest` without having first called `setupTest` or `setupRenderingTest`.');\n }\n\n return context.pauseTest();\n }\n /**\n Resumes a test previously paused by `await pauseTest()`.\n \n @public\n */\n\n\n function resumeTest() {\n let context = getContext();\n\n if (!context || !isTestContext(context)) {\n throw new Error('Cannot call `resumeTest` without having first called `setupTest` or `setupRenderingTest`.');\n }\n\n context.resumeTest();\n }\n\n const CLEANUP = Object.create(null);\n /**\n Used by test framework addons to setup the provided context for testing.\n \n Responsible for:\n \n - sets the \"global testing context\" to the provided context (`setContext`)\n - create an owner object and set it on the provided context (e.g. `this.owner`)\n - setup `this.set`, `this.setProperties`, `this.get`, and `this.getProperties` to the provided context\n - setting up AJAX listeners\n - setting up `pauseTest` (also available as `this.pauseTest()`) and `resumeTest` helpers\n \n @public\n @param {Object} context the context to setup\n @param {Object} [options] options used to override defaults\n @param {Resolver} [options.resolver] a resolver to use for customizing normal resolution\n @returns {Promise} resolves with the context that was setup\n */\n\n _exports.CLEANUP = CLEANUP;\n\n function setupContext(context, options = {}) {\n Ember.testing = true;\n setContext(context);\n let contextGuid = Ember.guidFor(context);\n CLEANUP[contextGuid] = [];\n let testMetadata = (0, _testMetadata.default)(context);\n testMetadata.setupTypes.push('setupContext');\n Ember.run.backburner.DEBUG = true;\n return (0, _utils.nextTickPromise)().then(() => {\n let application = (0, _application.getApplication)();\n\n if (application) {\n return application.boot().then(() => {});\n }\n\n return;\n }).then(() => {\n let testElementContainer = document.getElementById('ember-testing-container'); // TODO remove \"!\"\n\n let fixtureResetValue = testElementContainer.innerHTML; // push this into the final cleanup bucket, to be ran _after_ the owner\n // is destroyed and settled (e.g. flushed run loops, etc)\n\n CLEANUP[contextGuid].push(() => {\n testElementContainer.innerHTML = fixtureResetValue;\n });\n let {\n resolver\n } = options; // This handles precendence, specifying a specific option of\n // resolver always trumps whatever is auto-detected, then we fallback to\n // the suite-wide registrations\n //\n // At some later time this can be extended to support specifying a custom\n // engine or application...\n\n if (resolver) {\n return (0, _buildOwner.default)(null, resolver);\n }\n\n return (0, _buildOwner.default)((0, _application.getApplication)(), (0, _resolver.getResolver)());\n }).then(owner => {\n Object.defineProperty(context, 'owner', {\n configurable: true,\n enumerable: true,\n value: owner,\n writable: false\n });\n Object.defineProperty(context, 'set', {\n configurable: true,\n enumerable: true,\n\n value(key, value) {\n let ret = Ember.run(function () {\n return Ember.set(context, key, value);\n });\n return ret;\n },\n\n writable: false\n });\n Object.defineProperty(context, 'setProperties', {\n configurable: true,\n enumerable: true,\n\n value(hash) {\n let ret = Ember.run(function () {\n return Ember.setProperties(context, hash);\n });\n return ret;\n },\n\n writable: false\n });\n Object.defineProperty(context, 'get', {\n configurable: true,\n enumerable: true,\n\n value(key) {\n return Ember.get(context, key);\n },\n\n writable: false\n });\n Object.defineProperty(context, 'getProperties', {\n configurable: true,\n enumerable: true,\n\n value(...args) {\n return Ember.getProperties(context, args);\n },\n\n writable: false\n });\n let resume;\n\n context.resumeTest = function resumeTest() {\n (true && !(Boolean(resume)) && Ember.assert('Testing has not been paused. There is nothing to resume.', Boolean(resume)));\n resume();\n _global.default.resumeTest = resume = undefined;\n };\n\n context.pauseTest = function pauseTest() {\n console.info('Testing paused. Use `resumeTest()` to continue.'); // eslint-disable-line no-console\n\n return new Ember.RSVP.Promise(resolve => {\n resume = resolve;\n _global.default.resumeTest = resumeTest;\n }, 'TestAdapter paused promise');\n };\n\n (0, _settled._setupAJAXHooks)();\n return context;\n });\n }\n});","define(\"@ember/test-helpers/setup-onerror\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = setupOnerror;\n _exports.resetOnerror = void 0;\n const ORIGINAL_EMBER_ONERROR = Ember.onerror;\n /**\n * Sets the `Ember.onerror` function for tests. This value is intended to be reset after\n * each test to ensure correct test isolation. To reset, you should simply call `setupOnerror`\n * without an `onError` argument.\n *\n * @public\n * @param {Function} onError the onError function to be set on Ember.onerror\n *\n * @example Example implementation for `ember-qunit` or `ember-mocha`\n *\n * import { setupOnerror } from '@ember/test-helpers';\n *\n * test('Ember.onerror is stubbed properly', function(assert) {\n * setupOnerror(function(err) {\n * assert.ok(err);\n * });\n * });\n */\n\n function setupOnerror(onError) {\n if (typeof onError !== 'function') {\n onError = ORIGINAL_EMBER_ONERROR;\n }\n\n Ember.onerror = onError;\n }\n /**\n * Resets `Ember.onerror` to the value it originally was at the start of the test run.\n *\n * @public\n *\n * @example\n *\n * import { resetOnerror } from '@ember/test-helpers';\n *\n * QUnit.testDone(function() {\n * resetOnerror();\n * })\n */\n\n\n const resetOnerror = setupOnerror;\n _exports.resetOnerror = resetOnerror;\n});","define(\"@ember/test-helpers/setup-rendering-context\", [\"exports\", \"@ember/test-helpers/global\", \"@ember/test-helpers/setup-context\", \"@ember/test-helpers/-utils\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/dom/get-root-element\", \"@ember/test-helpers/test-metadata\"], function (_exports, _global, _setupContext, _utils, _settled, _getRootElement, _testMetadata) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.isRenderingTestContext = isRenderingTestContext;\n _exports.render = render;\n _exports.clearRender = clearRender;\n _exports.default = setupRenderingContext;\n _exports.RENDERING_CLEANUP = void 0;\n const RENDERING_CLEANUP = Object.create(null);\n _exports.RENDERING_CLEANUP = RENDERING_CLEANUP;\n const OUTLET_TEMPLATE = Ember.HTMLBars.template({\n \"id\": \"JzTwhLU2\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[22,\\\"outlet\\\"],false]],\\\"hasEval\\\":false}\",\n \"meta\": {}\n });\n const EMPTY_TEMPLATE = Ember.HTMLBars.template({\n \"id\": \"xOcW61lH\",\n \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false}\",\n \"meta\": {}\n }); // eslint-disable-next-line require-jsdoc\n\n function isRenderingTestContext(context) {\n return (0, _setupContext.isTestContext)(context) && typeof context.render === 'function' && typeof context.clearRender === 'function';\n }\n /**\n @private\n @param {Ember.ApplicationInstance} owner the current owner instance\n @param {string} templateFullName the fill template name\n @returns {Template} the template representing `templateFullName`\n */\n\n\n function lookupTemplate(owner, templateFullName) {\n let template = owner.lookup(templateFullName);\n if (typeof template === 'function') return template(owner);\n return template;\n }\n /**\n @private\n @param {Ember.ApplicationInstance} owner the current owner instance\n @returns {Template} a template representing {{outlet}}\n */\n\n\n function lookupOutletTemplate(owner) {\n let OutletTemplate = lookupTemplate(owner, 'template:-outlet');\n\n if (!OutletTemplate) {\n owner.register('template:-outlet', OUTLET_TEMPLATE);\n OutletTemplate = lookupTemplate(owner, 'template:-outlet');\n }\n\n return OutletTemplate;\n }\n /**\n @private\n @param {string} [selector] the selector to search for relative to element\n @returns {jQuery} a jQuery object representing the selector (or element itself if no selector)\n */\n\n\n function jQuerySelector(selector) {\n (true && !(false) && Ember.deprecate('Using this.$() in a rendering test has been deprecated, consider using this.element instead.', false, {\n id: 'ember-test-helpers.rendering-context.jquery-element',\n until: '2.0.0',\n // @ts-ignore\n url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis'\n }));\n let {\n element\n } = (0, _setupContext.getContext)(); // emulates Ember internal behavor of `this.$` in a component\n // https://github.com/emberjs/ember.js/blob/v2.5.1/packages/ember-views/lib/views/states/has_element.js#L18\n\n return selector ? _global.default.jQuery(selector, element) : _global.default.jQuery(element);\n }\n\n let templateId = 0;\n /**\n Renders the provided template and appends it to the DOM.\n \n @public\n @param {CompiledTemplate} template the template to render\n @returns {Promise} resolves when settled\n */\n\n function render(template) {\n let context = (0, _setupContext.getContext)();\n\n if (!template) {\n throw new Error('you must pass a template to `render()`');\n }\n\n return (0, _utils.nextTickPromise)().then(() => {\n if (!context || !isRenderingTestContext(context)) {\n throw new Error('Cannot call `render` without having first called `setupRenderingContext`.');\n }\n\n let {\n owner\n } = context;\n let testMetadata = (0, _testMetadata.default)(context);\n testMetadata.usedHelpers.push('render');\n let toplevelView = owner.lookup('-top-level-view:main');\n let OutletTemplate = lookupOutletTemplate(owner);\n templateId += 1;\n let templateFullName = `template:-undertest-${templateId}`;\n owner.register(templateFullName, template);\n let outletState = {\n render: {\n owner,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: undefined,\n ViewClass: undefined,\n template: OutletTemplate\n },\n outlets: {\n main: {\n render: {\n owner,\n into: undefined,\n outlet: 'main',\n name: 'index',\n controller: context,\n ViewClass: undefined,\n template: lookupTemplate(owner, templateFullName),\n outlets: {}\n },\n outlets: {}\n }\n }\n };\n toplevelView.setOutletState(outletState); // returning settled here because the actual rendering does not happen until\n // the renderer detects it is dirty (which happens on backburner's end\n // hook), see the following implementation details:\n //\n // * [view:outlet](https://github.com/emberjs/ember.js/blob/f94a4b6aef5b41b96ef2e481f35e07608df01440/packages/ember-glimmer/lib/views/outlet.js#L129-L145) manually dirties its own tag upon `setOutletState`\n // * [backburner's custom end hook](https://github.com/emberjs/ember.js/blob/f94a4b6aef5b41b96ef2e481f35e07608df01440/packages/ember-glimmer/lib/renderer.js#L145-L159) detects that the current revision of the root is no longer the latest, and triggers a new rendering transaction\n\n return (0, _settled.default)();\n });\n }\n /**\n Clears any templates previously rendered. This is commonly used for\n confirming behavior that is triggered by teardown (e.g.\n `willDestroyElement`).\n \n @public\n @returns {Promise} resolves when settled\n */\n\n\n function clearRender() {\n let context = (0, _setupContext.getContext)();\n\n if (!context || !isRenderingTestContext(context)) {\n throw new Error('Cannot call `clearRender` without having first called `setupRenderingContext`.');\n }\n\n return render(EMPTY_TEMPLATE);\n }\n /**\n Used by test framework addons to setup the provided context for rendering.\n \n `setupContext` must have been ran on the provided context\n prior to calling `setupRenderingContext`.\n \n Responsible for:\n \n - Setup the basic framework used for rendering by the\n `render` helper.\n - Ensuring the event dispatcher is properly setup.\n - Setting `this.element` to the root element of the testing\n container (things rendered via `render` will go _into_ this\n element).\n \n @public\n @param {Object} context the context to setup for rendering\n @returns {Promise} resolves with the context that was setup\n */\n\n\n function setupRenderingContext(context) {\n let contextGuid = Ember.guidFor(context);\n RENDERING_CLEANUP[contextGuid] = [];\n let testMetadata = (0, _testMetadata.default)(context);\n testMetadata.setupTypes.push('setupRenderingContext');\n return (0, _utils.nextTickPromise)().then(() => {\n let {\n owner\n } = context; // these methods being placed on the context itself will be deprecated in\n // a future version (no giant rush) to remove some confusion about which\n // is the \"right\" way to things...\n\n Object.defineProperty(context, 'render', {\n configurable: true,\n enumerable: true,\n value: render,\n writable: false\n });\n Object.defineProperty(context, 'clearRender', {\n configurable: true,\n enumerable: true,\n value: clearRender,\n writable: false\n });\n\n if (_global.default.jQuery) {\n Object.defineProperty(context, '$', {\n configurable: true,\n enumerable: true,\n value: jQuerySelector,\n writable: false\n });\n } // When the host app uses `setApplication` (instead of `setResolver`) the event dispatcher has\n // already been setup via `applicationInstance.boot()` in `./build-owner`. If using\n // `setResolver` (instead of `setApplication`) a \"mock owner\" is created by extending\n // `Ember._ContainerProxyMixin` and `Ember._RegistryProxyMixin` in this scenario we need to\n // manually start the event dispatcher.\n\n\n if (owner._emberTestHelpersMockOwner) {\n let dispatcher = owner.lookup('event_dispatcher:main') || Ember.EventDispatcher.create();\n dispatcher.setup({}, '#ember-testing');\n }\n\n let OutletView = owner.factoryFor ? owner.factoryFor('view:-outlet') : owner._lookupFactory('view:-outlet');\n let toplevelView = OutletView.create();\n owner.register('-top-level-view:main', {\n create() {\n return toplevelView;\n }\n\n }); // initially render a simple empty template\n\n return render(EMPTY_TEMPLATE).then(() => {\n Ember.run(toplevelView, 'appendTo', (0, _getRootElement.default)());\n return (0, _settled.default)();\n });\n }).then(() => {\n Object.defineProperty(context, 'element', {\n configurable: true,\n enumerable: true,\n // ensure the element is based on the wrapping toplevel view\n // Ember still wraps the main application template with a\n // normal tagged view\n //\n // In older Ember versions (2.4) the element itself is not stable,\n // and therefore we cannot update the `this.element` until after the\n // rendering is completed\n value: _global.default.EmberENV._APPLICATION_TEMPLATE_WRAPPER !== false ? (0, _getRootElement.default)().querySelector('.ember-view') : (0, _getRootElement.default)(),\n writable: false\n });\n return context;\n });\n }\n});","define(\"@ember/test-helpers/teardown-application-context\", [\"exports\", \"@ember/test-helpers/-utils\", \"@ember/test-helpers/settled\"], function (_exports, _utils, _settled) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n /**\n Used by test framework addons to tear down the provided context after testing is completed.\n \n @public\n @param {Object} context the context to setup\n @param {Object} [options] options used to override defaults\n @param {boolean} [options.waitForSettled=true] should the teardown wait for `settled()`ness\n @returns {Promise} resolves when settled\n */\n function _default(context, options) {\n let waitForSettled = true;\n\n if (options !== undefined && 'waitForSettled' in options) {\n waitForSettled = options.waitForSettled;\n }\n\n if (waitForSettled) {\n return (0, _settled.default)();\n }\n\n return (0, _utils.nextTickPromise)();\n }\n});","define(\"@ember/test-helpers/teardown-context\", [\"exports\", \"@ember/test-helpers/settled\", \"@ember/test-helpers/setup-context\", \"@ember/test-helpers/-utils\"], function (_exports, _settled, _setupContext, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = teardownContext;\n\n /**\n Used by test framework addons to tear down the provided context after testing is completed.\n \n Responsible for:\n \n - un-setting the \"global testing context\" (`unsetContext`)\n - destroy the contexts owner object\n - remove AJAX listeners\n \n @public\n @param {Object} context the context to setup\n @param {Object} [options] options used to override defaults\n @param {boolean} [options.waitForSettled=true] should the teardown wait for `settled()`ness\n @returns {Promise} resolves when settled\n */\n function teardownContext(context, options) {\n let waitForSettled = true;\n\n if (options !== undefined && 'waitForSettled' in options) {\n waitForSettled = options.waitForSettled;\n }\n\n return (0, _utils.nextTickPromise)().then(() => {\n let {\n owner\n } = context;\n (0, _settled._teardownAJAXHooks)();\n Ember.run(owner, 'destroy');\n Ember.testing = false;\n (0, _setupContext.unsetContext)();\n\n if (waitForSettled) {\n return (0, _settled.default)();\n }\n\n return (0, _utils.nextTickPromise)();\n }).finally(() => {\n let contextGuid = Ember.guidFor(context);\n (0, _utils.runDestroyablesFor)(_setupContext.CLEANUP, contextGuid);\n\n if (waitForSettled) {\n return (0, _settled.default)();\n }\n\n return (0, _utils.nextTickPromise)();\n });\n }\n});","define(\"@ember/test-helpers/teardown-rendering-context\", [\"exports\", \"@ember/test-helpers/setup-rendering-context\", \"@ember/test-helpers/-utils\", \"@ember/test-helpers/settled\"], function (_exports, _setupRenderingContext, _utils, _settled) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = teardownRenderingContext;\n\n /**\n Used by test framework addons to tear down the provided context after testing is completed.\n \n Responsible for:\n \n - resetting the `ember-testing-container` to its original state (the value\n when `setupRenderingContext` was called).\n \n @public\n @param {Object} context the context to setup\n @param {Object} [options] options used to override defaults\n @param {boolean} [options.waitForSettled=true] should the teardown wait for `settled()`ness\n @returns {Promise} resolves when settled\n */\n function teardownRenderingContext(context, options) {\n let waitForSettled = true;\n\n if (options !== undefined && 'waitForSettled' in options) {\n waitForSettled = options.waitForSettled;\n }\n\n return (0, _utils.nextTickPromise)().then(() => {\n let contextGuid = Ember.guidFor(context);\n (0, _utils.runDestroyablesFor)(_setupRenderingContext.RENDERING_CLEANUP, contextGuid);\n\n if (waitForSettled) {\n return (0, _settled.default)();\n }\n\n return (0, _utils.nextTickPromise)();\n });\n }\n});","define(\"@ember/test-helpers/test-metadata\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = getTestMetadata;\n _exports.TestMetadata = void 0;\n\n class TestMetadata {\n constructor() {\n this.setupTypes = [];\n this.usedHelpers = [];\n }\n\n get isRendering() {\n return this.setupTypes.indexOf('setupRenderingContext') > -1 && this.usedHelpers.indexOf('render') > -1;\n }\n\n get isApplication() {\n return this.setupTypes.indexOf('setupApplicationContext') > -1;\n }\n\n }\n\n _exports.TestMetadata = TestMetadata;\n const TEST_METADATA = new WeakMap();\n /**\n * Gets the test metadata associated with the provided test context. Will create\n * a new test metadata object if one does not exist.\n *\n * @param {BaseContext} context the context to use\n * @returns {ITestMetadata} the test metadata for the provided context\n */\n\n function getTestMetadata(context) {\n if (!TEST_METADATA.has(context)) {\n TEST_METADATA.set(context, new TestMetadata());\n }\n\n return TEST_METADATA.get(context);\n }\n});","define(\"@ember/test-helpers/validate-error-handler\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = validateErrorHandler;\n const VALID = Object.freeze({\n isValid: true,\n message: null\n });\n const INVALID = Object.freeze({\n isValid: false,\n message: 'error handler should have re-thrown the provided error'\n });\n /**\n * Validate the provided error handler to confirm that it properly re-throws\n * errors when `Ember.testing` is true.\n *\n * This is intended to be used by test framework hosts (or other libraries) to\n * ensure that `Ember.onerror` is properly configured. Without a check like\n * this, `Ember.onerror` could _easily_ swallow all errors and make it _seem_\n * like everything is just fine (and have green tests) when in reality\n * everything is on fire...\n *\n * @public\n * @param {Function} [callback=Ember.onerror] the callback to validate\n * @returns {Object} object with `isValid` and `message`\n *\n * @example Example implementation for `ember-qunit`\n *\n * import { validateErrorHandler } from '@ember/test-helpers';\n *\n * test('Ember.onerror is functioning properly', function(assert) {\n * let result = validateErrorHandler();\n * assert.ok(result.isValid, result.message);\n * });\n */\n\n function validateErrorHandler(callback = Ember.onerror) {\n if (callback === undefined || callback === null) {\n return VALID;\n }\n\n let error = new Error('Error handler validation error!');\n let originalEmberTesting = Ember.testing;\n Ember.testing = true;\n\n try {\n callback(error);\n } catch (e) {\n if (e === error) {\n return VALID;\n }\n } finally {\n Ember.testing = originalEmberTesting;\n }\n\n return INVALID;\n }\n});","define(\"@ember/test-helpers/wait-until\", [\"exports\", \"@ember/test-helpers/-utils\"], function (_exports, _utils) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = waitUntil;\n const TIMEOUTS = [0, 1, 2, 5, 7];\n const MAX_TIMEOUT = 10;\n /**\n Wait for the provided callback to return a truthy value.\n \n This does not leverage `settled()`, and as such can be used to manage async\n while _not_ settled (e.g. \"loading\" or \"pending\" states).\n \n @public\n @param {Function} callback the callback to use for testing when waiting should stop\n @param {Object} [options] options used to override defaults\n @param {number} [options.timeout=1000] the maximum amount of time to wait\n @param {string} [options.timeoutMessage='waitUntil timed out'] the message to use in the reject on timeout\n @returns {Promise} resolves with the callback value when it returns a truthy value\n */\n\n function waitUntil(callback, options = {}) {\n let timeout = 'timeout' in options ? options.timeout : 1000;\n let timeoutMessage = 'timeoutMessage' in options ? options.timeoutMessage : 'waitUntil timed out'; // creating this error eagerly so it has the proper invocation stack\n\n let waitUntilTimedOut = new Error(timeoutMessage);\n return new _utils._Promise(function (resolve, reject) {\n let time = 0; // eslint-disable-next-line require-jsdoc\n\n function scheduleCheck(timeoutsIndex) {\n let interval = TIMEOUTS[timeoutsIndex];\n\n if (interval === undefined) {\n interval = MAX_TIMEOUT;\n }\n\n (0, _utils.futureTick)(function () {\n time += interval;\n let value;\n\n try {\n value = callback();\n } catch (error) {\n reject(error);\n }\n\n if (value) {\n resolve(value);\n } else if (time < timeout) {\n scheduleCheck(timeoutsIndex + 1);\n } else {\n reject(waitUntilTimedOut);\n }\n }, interval);\n }\n\n scheduleCheck(0);\n });\n }\n});","define(\"ember-cli-code-coverage/test-support/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.forceModulesToBeLoaded = forceModulesToBeLoaded;\n _exports.sendCoverage = sendCoverage;\n\n let __require;\n\n if (typeof __webpack_require__ !== 'undefined') {\n __require = __webpack_require__; // eslint-disable-line no-undef\n } // This function exists to force the evaluation of modules that might not get loaded during\n // the normal flow of your application and thus would not show up in the coverage report. This is needed\n // because the istanbul plugin simply traverses a file and inserts counters over all lines of code\n // such as: (the following is sudo code that is not exactly correct but illustrates that point)\n //\n // define('my-app/foo', function() {\n // window.counter++;\n // return 'bar';\n // });\n //\n // This counter will never happen unless this module gets evaluated and if you do not \"pull\" on this\n // module from somewhere it will be as if it doesnt exists from the code coverage point of view. This\n // file will makes sure all modules (including those from webpack where Emboider will place some) get\n // evaluated by actually requiring them.\n //\n\n\n function forceModulesToBeLoaded(filterFunction) {\n if (!filterFunction) {\n filterFunction = (type, module) => {\n if (type === 'webpack') {\n return !module.startsWith('../') && !module.startsWith('./node_modules/');\n }\n\n let excludeTestModules = /^[^/]+\\/tests\\//;\n return !excludeTestModules.test(module);\n };\n } // this should always be ran **after** the test suite is completed since\n // sometimes force calling modules can have side effects and invoking them\n // after the app has run can reduce problems that would arrise.\n\n\n if (typeof __webpack_require__ !== 'undefined') {\n let __modules = __require.m;\n Object.keys(__modules).forEach(moduleName => {\n try {\n if (filterFunction('webpack', moduleName)) {\n __require(moduleName);\n }\n } catch (error) {\n console.warn(`Error occurred while evaluating '${moduleName}': ${error.message}\\n${error.stack}`);\n }\n });\n }\n\n Object.keys(window.requirejs.entries).forEach(moduleName => {\n try {\n if (filterFunction('require', moduleName)) {\n require(moduleName); // eslint-disable-line no-undef\n\n }\n } catch (error) {\n console.warn(`Error occurred while evaluating '${moduleName}': ${error.message}\\n${error.stack}`);\n }\n });\n }\n\n async function sendCoverage(callback) {\n let coverageData = window.__coverage__; //eslint-disable-line no-undef\n\n if (coverageData === undefined) {\n if (callback) {\n callback();\n }\n\n return; // do nothing if there is no coverage data\n }\n\n let body = JSON.stringify(coverageData || {});\n let response = await fetch('/write-coverage', {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json'\n },\n body\n });\n let responseData = await response.json();\n writeCoverageInfo(responseData);\n\n if (callback) {\n callback();\n }\n\n return responseData;\n }\n\n function writeCoverageInfo(data) {\n if (data) {\n let results = ['Lines', 'Branches', 'Functions', 'Statements'].filter(name => name.toLowerCase()).map(name => name + ' ' + data[name.toLowerCase()].pct + '%'); //eslint-disable-next-line no-undef\n\n let resultsText = document.createTextNode(results.join(' | ')); //eslint-disable-next-line no-undef\n\n let element = document.createElement('div');\n element.style = 'background-color: white; color: black; border: 2px solid black; padding: 1em;position: fixed; left: 15px; bottom: 15px';\n element.appendChild(resultsText); //eslint-disable-next-line no-undef\n\n document.body.appendChild(element);\n }\n }\n});","define('ember-cli-test-loader/test-support/index', ['exports'], function (exports) {\n /* globals requirejs, require */\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.addModuleIncludeMatcher = addModuleIncludeMatcher;\n exports.addModuleExcludeMatcher = addModuleExcludeMatcher;\n let moduleIncludeMatchers = [];\n let moduleExcludeMatchers = [];\n\n function addModuleIncludeMatcher(fn) {\n moduleIncludeMatchers.push(fn);\n }\n\n function addModuleExcludeMatcher(fn) {\n moduleExcludeMatchers.push(fn);\n }\n\n function checkMatchers(matchers, moduleName) {\n return matchers.some(matcher => matcher(moduleName));\n }\n\n class TestLoader {\n static load() {\n new TestLoader().loadModules();\n }\n\n constructor() {\n this._didLogMissingUnsee = false;\n }\n\n shouldLoadModule(moduleName) {\n return moduleName.match(/[-_]test$/);\n }\n\n listModules() {\n return Object.keys(requirejs.entries);\n }\n\n listTestModules() {\n let moduleNames = this.listModules();\n let testModules = [];\n let moduleName;\n\n for (let i = 0; i < moduleNames.length; i++) {\n moduleName = moduleNames[i];\n\n if (checkMatchers(moduleExcludeMatchers, moduleName)) {\n continue;\n }\n\n if (checkMatchers(moduleIncludeMatchers, moduleName) || this.shouldLoadModule(moduleName)) {\n testModules.push(moduleName);\n }\n }\n\n return testModules;\n }\n\n loadModules() {\n let testModules = this.listTestModules();\n let testModule;\n\n for (let i = 0; i < testModules.length; i++) {\n testModule = testModules[i];\n this.require(testModule);\n this.unsee(testModule);\n }\n }\n\n require(moduleName) {\n try {\n require(moduleName);\n } catch (e) {\n this.moduleLoadFailure(moduleName, e);\n }\n }\n\n unsee(moduleName) {\n if (typeof require.unsee === 'function') {\n require.unsee(moduleName);\n } else if (!this._didLogMissingUnsee) {\n this._didLogMissingUnsee = true;\n if (typeof console !== 'undefined') {\n console.warn('unable to require.unsee, please upgrade loader.js to >= v3.3.0');\n }\n }\n }\n\n moduleLoadFailure(moduleName, error) {\n console.error('Error loading: ' + moduleName, error.stack);\n }\n }exports.default = TestLoader;\n ;\n});","define(\"ember-exam/test-support/-private/async-iterator\", [\"exports\"], function (_exports) {\n 'use strict';\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n const iteratorCompleteResponse = {\n done: true,\n value: null\n };\n /**\n * A class to iterate a sequencial set of asynchronous events.\n *\n * @class AsyncIterator\n */\n\n class AsyncIterator {\n constructor(testem, options) {\n this._testem = testem;\n this._request = options.request;\n this._response = options.response;\n this._done = false;\n this._current = null;\n this._boundHandleResponse = this.handleResponse.bind(this);\n this._waiting = false; // Set a timeout value from either url parameter or default timeout value, 15 s.\n\n this._timeout = options.timeout || 15;\n this._browserId = options.browserId;\n this._emberExamExitOnError = options.emberExamExitOnError;\n testem.on(this._response, this._boundHandleResponse);\n }\n /**\n * Indicates whether the response queue is done or not.\n *\n * @method done\n * @return {bool} whether the response queue is done or not\n */\n\n\n get done() {\n return this._done;\n }\n /**\n * @method toString\n * @return {String} the stringified value of the iterator.\n */\n\n\n toString() {\n return ``;\n }\n /**\n * Handle a response when it's waiting for a response\n *\n * @method handleResponse\n * @param {*} response\n */\n\n\n handleResponse(response) {\n if (this._waiting === false) {\n throw new Error(`${this.toString()} Was not expecting a response, but got a response`);\n } else {\n this._waiting = false;\n }\n\n try {\n if (response.done) {\n this.dispose();\n }\n\n this._current.resolve(response);\n } catch (e) {\n this._current.reject(e);\n } finally {\n this._current = null;\n\n if (this.timer) {\n clearTimeout(this.timer);\n }\n }\n }\n /**\n * Dispose when an iteration is finished.\n *\n * @method dispose\n */\n\n\n dispose() {\n this._done = true;\n\n this._testem.removeEventCallbacks(this._response, this._boundHandleResponse);\n }\n /**\n * Emit the current request.\n *\n * @method _makeNextRequest\n */\n\n\n _makeNextRequest() {\n this._waiting = true;\n\n this._testem.emit(this._request, this._browserId);\n }\n /**\n * Set a timeout to reject a promise if it doesn't get response within the timeout threshold.\n *\n * @method _setTimeout\n * @param {*} resolve\n */\n\n\n _setTimeout(resolve, reject) {\n clearTimeout(this.timeout);\n this.timer = setTimeout(() => {\n if (!this._waiting) {\n return;\n }\n\n if (this._emberExamExitOnError) {\n let err = new Error(`EmberExam: Promise timed out after ${this._timeout} s while waiting for response for ${this._request}`);\n reject(err);\n } else {\n // eslint-disable-next-line no-console\n console.error(`EmberExam: Promise timed out after ${this._timeout} s while waiting for response for ${this._request}. Closing browser to exit gracefully.`);\n resolve(iteratorCompleteResponse);\n }\n }, this._timeout * 1000);\n }\n /**\n * Gets the next response from the request and resolve the promise.\n * if it's end of the iteration resolve the promise with done being true.\n *\n * @method next\n * @return {Promise}\n */\n\n\n next() {\n if (this._done) {\n return Promise.resolve(iteratorCompleteResponse);\n }\n\n if (this._current) {\n return this._current.promise;\n }\n\n let resolve, reject;\n let promise = new Promise((_resolve, _reject) => {\n resolve = _resolve;\n reject = _reject;\n\n this._setTimeout(resolve, reject);\n });\n this._current = {\n resolve,\n reject,\n promise\n };\n\n this._makeNextRequest();\n\n return promise;\n }\n\n }\n\n _exports.default = AsyncIterator;\n});","define(\"ember-exam/test-support/-private/ember-exam-mocha-test-loader\", [\"exports\", \"ember-exam/test-support/-private/get-url-params\", \"ember-exam/test-support/-private/split-test-modules\", \"ember-exam/test-support/-private/filter-test-modules\", \"ember-mocha/test-loader\"], function (_exports, _getUrlParams, _splitTestModules, _filterTestModules, _testLoader) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-exam/test-support/-private/get-url-params\",0,\"ember-exam/test-support/-private/split-test-modules\",0,\"ember-exam/test-support/-private/filter-test-modules\",0,\"ember-mocha/test-loader\"eaimeta@70e063a35619d71f\n\n /**\n * EmberExamMochaTestLoader extends ember-mocha/test-loader used by `ember test`, since it\n * overrides moduleLoadFailure() to log a test failure when a module fails to load\n * @class EmberExamMochaTestLoader\n * @extends {TestLoader}\n */\n class EmberExamMochaTestLoader extends _testLoader.TestLoader {\n constructor(testem, urlParams) {\n super();\n this._testModules = [];\n this._testem = testem;\n this._urlParams = urlParams || (0, _getUrlParams.default)();\n }\n\n get urlParams() {\n return this._urlParams;\n }\n /**\n * Ember-cli-test-loader instantiates a new TestLoader instance and calls loadModules.\n * EmberExamMochaTestLoader does not support load() in favor of loadModules().\n *\n * @method load\n */\n\n\n static load() {\n throw new Error(\"`EmberExamMochaTestLoader` doesn't support `load()`.\");\n }\n /**\n * require() collects the full list of modules before requiring each module with\n * super.require, instead of requiring and unseeing a module when each gets loaded.\n *\n * @method require\n * @param {string} moduleName\n */\n\n\n require(moduleName) {\n this._testModules.push(moduleName);\n }\n /**\n * Make unsee a no-op to avoid any unwanted resets\n *\n * @method unsee\n */\n\n\n unsee() {}\n /**\n * Loads the test modules depending on the urlParam\n *\n * @method loadModules\n */\n\n\n loadModules() {\n const modulePath = this._urlParams.get('modulePath');\n\n const filePath = this._urlParams.get('filePath');\n\n let partitions = this._urlParams.get('partition');\n\n let split = parseInt(this._urlParams.get('split'), 10);\n split = isNaN(split) ? 1 : split;\n\n if (partitions === undefined) {\n partitions = [1];\n } else if (!Array.isArray(partitions)) {\n partitions = [partitions];\n }\n\n super.loadModules();\n\n if (modulePath || filePath) {\n this._testModules = (0, _filterTestModules.filterTestModules)(this._testModules, modulePath, filePath);\n }\n\n this._testModules = (0, _splitTestModules.default)(this._testModules, split, partitions);\n\n this._testModules.forEach(moduleName => {\n super.require(moduleName);\n\n super.unsee(moduleName);\n });\n }\n\n }\n\n _exports.default = EmberExamMochaTestLoader;\n});","define(\"ember-exam/test-support/-private/ember-exam-qunit-test-loader\", [\"exports\", \"ember-exam/test-support/-private/get-url-params\", \"ember-exam/test-support/-private/split-test-modules\", \"ember-exam/test-support/-private/weight-test-modules\", \"ember-exam/test-support/-private/filter-test-modules\", \"ember-qunit/test-loader\", \"ember-exam/test-support/-private/async-iterator\", \"qunit\"], function (_exports, _getUrlParams, _splitTestModules, _weightTestModules, _filterTestModules, _testLoader, _asyncIterator, _qunit) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n 0; //eaimeta@70e063a35619d71f0,\"ember-exam/test-support/-private/get-url-params\",0,\"ember-exam/test-support/-private/split-test-modules\",0,\"ember-exam/test-support/-private/weight-test-modules\",0,\"ember-exam/test-support/-private/filter-test-modules\",0,\"ember-qunit/test-loader\",0,\"ember-exam/test-support/-private/async-iterator\",0,\"qunit\"eaimeta@70e063a35619d71f\n\n /**\n * EmberExamQUnitTestLoader allows delayed requiring of test modules to enable test load balancing\n * It extends ember-qunit/test-loader used by `ember test`, since it overrides moduleLoadFailure()\n * to log a test failure when a module fails to load\n * @class EmberExamQUnitTestLoader\n * @extends {TestLoader}\n */\n class EmberExamQUnitTestLoader extends _testLoader.TestLoader {\n constructor(testem, urlParams) {\n let qunit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _qunit.default;\n super();\n this._testModules = [];\n this._testem = testem;\n this._qunit = qunit;\n this._urlParams = urlParams || (0, _getUrlParams.default)();\n }\n\n get urlParams() {\n return this._urlParams;\n }\n /**\n * ember-cli-test-loader instantiates a new TestLoader instance and calls loadModules.\n * EmberExamQUnitTestLoader does not support load() in favor of loadModules().\n *\n * @method load\n */\n\n\n static load() {\n throw new Error(\"`EmberExamQUnitTestLoader` doesn't support `load()`.\");\n }\n /**\n * require() collects the full list of modules before requiring each module with\n * super.require(), instead of requiring and unseeing a module when each gets loaded.\n *\n * @method require\n * @param {string} moduleName\n */\n\n\n require(moduleName) {\n this._testModules.push(moduleName);\n }\n /**\n * Make unsee a no-op to avoid any unwanted resets\n *\n * @method unsee\n */\n\n\n unsee() {}\n /**\n * Loads the test modules depending on the urlParam\n *\n * @method loadModules\n */\n\n\n loadModules() {\n const loadBalance = this._urlParams.get('loadBalance');\n\n const browserId = this._urlParams.get('browser');\n\n const modulePath = this._urlParams.get('modulePath');\n\n const filePath = this._urlParams.get('filePath');\n\n let partitions = this._urlParams.get('partition');\n\n let split = parseInt(this._urlParams.get('split'), 10);\n split = isNaN(split) ? 1 : split;\n\n if (partitions === undefined) {\n partitions = [1];\n } else if (!Array.isArray(partitions)) {\n partitions = [partitions];\n }\n\n super.loadModules();\n this.setupModuleMetadataHandler();\n\n if (modulePath || filePath) {\n this._testModules = (0, _filterTestModules.filterTestModules)(this._testModules, modulePath, filePath);\n }\n\n if (loadBalance && this._testem) {\n this.setupLoadBalanceHandlers();\n this._testModules = (0, _splitTestModules.default)((0, _weightTestModules.default)(this._testModules), split, partitions);\n\n this._testem.emit('testem:set-modules-queue', this._testModules, browserId);\n } else {\n this._testModules = (0, _splitTestModules.default)(this._testModules, split, partitions);\n\n this._testModules.forEach(moduleName => {\n super.require(moduleName);\n\n super.unsee(moduleName);\n });\n }\n }\n /**\n * Allow loading one module at a time.\n *\n * @method loadIndividualModule\n * @param {string} moduleName\n */\n\n\n loadIndividualModule(moduleName) {\n if (moduleName === undefined) {\n throw new Error('Failed to load a test module. `moduleName` is undefined in `loadIndividualModule`.');\n }\n\n super.require(moduleName);\n\n super.unsee(moduleName);\n }\n /**\n * setupModuleMetadataHandler() register QUnit callback to enable generating module metadata file.\n *\n * @method setupModuleMetadataHandler\n */\n\n\n setupModuleMetadataHandler() {\n this._qunit.testDone(metadata => {\n if (typeof this._testem !== 'undefined' && this._testem !== null) {\n // testem:test-done-metadata is sent to server to track test module details.\n // metadata contains name, module, failed, passed, total, duration, skipped, and todo.\n // https://api.qunitjs.com/callbacks/QUnit.testDone\n this._testem.emit('testem:test-done-metadata', metadata);\n }\n });\n }\n /**\n * setupLoadBalanceHandlers() registers QUnit callbacks needed for the load-balance option.\n *\n * @method setupLoadBalanceHandlers\n */\n\n\n setupLoadBalanceHandlers() {\n // nextModuleAsyncIterator handles the async testem events\n // it returns an element of {value: , done: boolean}\n const nextModuleAsyncIterator = new _asyncIterator.default(this._testem, {\n request: 'testem:next-module-request',\n response: 'testem:next-module-response',\n timeout: this._urlParams.get('asyncTimeout'),\n browserId: this._urlParams.get('browser'),\n emberExamExitOnError: this._urlParams.get('_emberExamExitOnError')\n });\n\n const nextModuleHandler = () => {\n // if there are already tests queued up, don't request next module\n // this is possible if a test file has multiple qunit modules\n if (this._qunit.config.queue.length > 0) {\n return;\n }\n\n return nextModuleAsyncIterator.next().then(response => {\n if (!response.done) {\n const moduleName = response.value;\n this.loadIndividualModule(moduleName); // if no tests were added, request the next module\n\n if (this._qunit.config.queue.length === 0) {\n return nextModuleHandler();\n }\n }\n }).catch(e => {\n if (typeof e === 'object' && e !== null && typeof e.message === 'string') {\n e.message = `EmberExam: Failed to get next test module: ${e.message}`;\n }\n\n throw new Error(`EmberExam: Failed to get next test module: ${e}`);\n });\n }; // it registers qunit begin callback to ask for a next test moudle to execute when the test suite begins.\n // By default ember-qunit adds `Ember.onerror` test to a qunit processing queue and once the test is complete it execute _qunit.moduleDone callback.\n // However, when `setupEmberOnerrorValidation: false` is passed the test is disabled and _qunit.begin callback needs to request a next test module to run.\n\n\n this._qunit.begin(() => {\n return nextModuleHandler();\n });\n\n this._qunit.moduleDone(() => {\n return nextModuleHandler();\n });\n }\n\n }\n\n _exports.default = EmberExamQUnitTestLoader;\n});","define(\"ember-exam/test-support/-private/filter-test-modules\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.convertFilePathToModulePath = convertFilePathToModulePath;\n _exports.filterTestModules = filterTestModules;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n // A regular expression to help parsing a string to verify regex.\n const MODULE_PATH_REGEXP = /^(!?)\\/(.*)\\/(i?)$/;\n const TEST_PATH_REGEX = /\\/tests\\/(.*?)$/;\n /**\n * Return the matched test.\n * e.g. if an input is '!/weight/' it returns an array, ['!/weight/', '!', 'weight', ''];\n *\n * @function getRegexFilter\n * @param {*} modulePath\n */\n\n function getRegexFilter(modulePath) {\n return MODULE_PATH_REGEXP.exec(modulePath);\n }\n /**\n * Determine if a given module path is matched with module filter with wildcard.\n * e.g. A given moduleFilter, /tests/integration/*, matches with /tests/integration/foo and /tests/integration/bar\n *\n * @function wildcardFilter\n * @param {*} module\n * @param {*} moduleFilter\n */\n\n\n function wildcardFilter(module, moduleFilter) {\n // Generate a regular expression to handle wildcard from path filter\n const moduleFilterRule = ['^.*', moduleFilter.split('*').join('.*'), '$'].join('');\n return new RegExp(moduleFilterRule).test(module);\n }\n /**\n * Return a list of test modules that contain a given module path string.\n *\n * @function stringFilter\n * @param {Array} modules\n * @param {string} moduleFilter\n */\n\n\n function stringFilter(modules, moduleFilter) {\n return modules.filter(module => module.includes(moduleFilter) || wildcardFilter(module, moduleFilter));\n }\n /**\n * Return a list of test modules that matches with a given regular expression.\n *\n * @function regexFilter\n * @param {Array} modules\n * @param {Array} modulePathRegexFilter\n */\n\n\n function regexFilter(modules, modulePathRegexFilter) {\n const re = new RegExp(modulePathRegexFilter[2], modulePathRegexFilter[3]);\n const exclude = modulePathRegexFilter[1];\n return modules.filter(module => !exclude && re.test(module) || exclude && !re.test(module));\n }\n /**\n * Return a module path that's mapped by a given test file path.\n *\n * @function convertFilePathToModulePath\n * @param {*} filePath\n */\n\n\n function convertFilePathToModulePath(filePath) {\n const filePathWithNoExtension = filePath.replace(/\\.[^/.]+$/, '');\n const testFilePathMatch = TEST_PATH_REGEX.exec(filePathWithNoExtension);\n\n if (typeof filePath !== 'undefined' && testFilePathMatch !== null) {\n return testFilePathMatch[0];\n }\n\n return filePathWithNoExtension;\n }\n /**\n * Returns a list of test modules that match with the given module path filter or test file path.\n *\n * @function filterTestModules\n * @param {Array} modules\n * @param {string} modulePath\n * @param {string} filePath\n */\n\n\n function filterTestModules(modules, modulePath, filePath) {\n // Generates an array with module filter value seperated by comma (,).\n const moduleFilters = (filePath || modulePath).split(',').map(value => value.trim());\n const filteredTestModules = moduleFilters.reduce((result, moduleFilter) => {\n const modulePath = convertFilePathToModulePath(moduleFilter);\n const modulePathRegex = getRegexFilter(modulePath);\n\n if (modulePathRegex) {\n return result.concat(regexFilter(modules, modulePathRegex).filter(module => result.indexOf(module) === -1));\n } else {\n return result.concat(stringFilter(modules, modulePath).filter(module => result.indexOf(module) === -1));\n }\n }, []);\n\n if (filteredTestModules.length === 0) {\n throw new Error(`No tests matched with the filter: ${modulePath || filePath}.`);\n }\n\n return filteredTestModules;\n }\n});","define(\"ember-exam/test-support/-private/get-test-loader\", [\"exports\", \"@embroider/macros/es-compat\", \"@embroider/macros/runtime\"], function (_exports, _esCompat, _runtime) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = getTestLoader;\n 0; //eaimeta@70e063a35619d71f0,\"@embroider/macros\",0,\"./ember-exam-qunit-test-loader\",0,\"./ember-exam-mocha-test-loader\"eaimeta@70e063a35619d71f\n\n /**\n * Returns ember-exam-qunit-test-loader or ember-exam-mocha-test-loader\n *\n * @export\n * @function getTestLoader\n * @return {Object}\n */\n function getTestLoader() {\n if ((0, _runtime.macroCondition)(true)) {\n const EmberExamQUnitTestLoader = (0, _esCompat.default)(require(\"ember-exam/test-support/-private/ember-exam-qunit-test-loader\"));\n return EmberExamQUnitTestLoader['default'];\n } else if ((0, _runtime.macroCondition)(false)) {\n const EmberExamMochaTestLoader = (0, _esCompat.default)(require(\"ember-exam/test-support/-private/ember-exam-mocha-test-loader\"));\n return EmberExamMochaTestLoader['default'];\n }\n\n throw new Error('Unable to find a suitable test loader. You should ensure that one of `ember-qunit` or `ember-mocha` are added as dependencies.');\n }\n});","define(\"ember-exam/test-support/-private/get-url-params\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = getUrlParams;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n function decodeQueryParam(param) {\n return decodeURIComponent(param.replace(/\\+/g, '%20'));\n }\n /**\n * Parses the url and return an object containing a param's key and value\n *\n * @export\n * @function getUrlParams\n * @return {Object} urlParams\n */\n\n\n function getUrlParams() {\n const urlParams = new Map();\n const params = location.search.slice(1).split('&');\n\n for (let i = 0; i < params.length; i++) {\n if (params[i]) {\n const param = params[i].split('=');\n const name = decodeQueryParam(param[0]); // Allow just a key to turn on a flag, e.g., test.html?noglobals\n\n const value = param.length === 1 || decodeQueryParam(param.slice(1).join('='));\n\n if (urlParams.has(name)) {\n urlParams.set(name, [].concat(urlParams.get(name), value));\n } else {\n urlParams.set(name, value);\n }\n }\n }\n\n return urlParams;\n }\n});","define(\"ember-exam/test-support/-private/patch-testem-output\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.patchTestemOutput = patchTestemOutput;\n _exports.updateTestName = updateTestName;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n /* globals Testem */\n\n /**\n * Returns a modified test name including browser or partition information\n *\n * @function updateTestName\n * @param {Map} urlParams\n * @param {string} testName\n * @return {string} testName\n */\n function updateTestName(urlParams, testName) {\n const split = urlParams.get('split');\n const loadBalance = urlParams.get('loadBalance');\n const partition = urlParams.get('partition') || 1;\n const browser = urlParams.get('browser') || 1;\n\n if (split && loadBalance) {\n testName = `Exam Partition ${partition} - Browser Id ${browser} - ${testName}`;\n } else if (split) {\n testName = `Exam Partition ${partition} - ${testName}`;\n } else if (loadBalance) {\n testName = `Browser Id ${browser} - ${testName}`;\n }\n\n return testName;\n }\n /**\n * Setup testem test-result event to update the test name when a test completes\n *\n * @function patchTestemOutput\n * @param {Map} urlParams\n */\n\n\n function patchTestemOutput(urlParams) {\n Testem.on('test-result', test => {\n test.name = updateTestName(urlParams, test.name);\n });\n }\n});","define(\"ember-exam/test-support/-private/split-test-modules\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = splitTestModules;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n function createGroups(num) {\n const groups = new Array(num);\n\n for (let i = 0; i < num; i++) {\n groups[i] = [];\n }\n\n return groups;\n }\n\n function filterIntoGroups(arr, filter, numGroups) {\n const filtered = arr.filter(filter);\n const groups = createGroups(numGroups);\n\n for (let i = 0; i < filtered.length; i++) {\n groups[i % numGroups].push(filtered[i]);\n }\n\n return groups;\n }\n\n function isLintTest(name) {\n return name.match(/\\.(jshint|(es)?lint-test)$/);\n }\n\n function isNotLintTest(name) {\n return !isLintTest(name);\n }\n /**\n * Splits the list of modules into unique subset of modules\n * return the subset indexed by the partition\n *\n * @export\n * @function splitTestModules\n * @param {Array} modules\n * @param {number} split\n * @param {number} partitions\n * @return {Array} tests\n */\n\n\n function splitTestModules(modules, split, partitions) {\n if (split < 1) {\n throw new Error('You must specify a split greater than 0');\n }\n\n const lintTestGroups = filterIntoGroups(modules, isLintTest, split);\n const otherTestGroups = filterIntoGroups(modules, isNotLintTest, split);\n const tests = [];\n\n for (let i = 0; i < partitions.length; i++) {\n const partition = parseInt(partitions[i], 10);\n\n if (isNaN(partition)) {\n throw new Error(\"You must specify numbers for partition (you specified '\" + partitions + \"')\");\n }\n\n if (split < partition) {\n throw new Error('You must specify partitions numbered less than or equal to your split value of ' + split);\n } else if (partition < 1) {\n throw new Error('You must specify partitions numbered greater than 0');\n }\n\n const group = partition - 1;\n tests.push(...lintTestGroups[group], ...otherTestGroups[group]);\n }\n\n return tests;\n }\n});","define(\"ember-exam/test-support/-private/weight-test-modules\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = weightTestModules;\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n const TEST_TYPE_WEIGHT = {\n eslint: 1,\n unit: 10,\n integration: 20,\n acceptance: 150\n };\n const WEIGHT_REGEX = /\\/(eslint|unit|integration|acceptance)\\//;\n const DEFAULT_WEIGHT = 50;\n /**\n * Return the weight for a given module name, a file path to the module\n * Ember tests consist of Acceptance, Integration, Unit, and lint tests. In general, acceptance takes\n * longest time to execute, followed by integration and unit.\n * The weight assigned to a module corresponds to its test type execution speed, with slowest being the highest in weight.\n * If the test type is not identifiable from the modulePath, weight default to 50 (ordered after acceptance, but before integration)\n *\n * @function getWeight\n * @param {string} modulePath File path to a module\n */\n\n function getWeight(modulePath) {\n const [, key] = WEIGHT_REGEX.exec(modulePath) || [];\n\n if (typeof TEST_TYPE_WEIGHT[key] === 'number') {\n return TEST_TYPE_WEIGHT[key];\n } else {\n return DEFAULT_WEIGHT;\n }\n }\n /**\n * Returns the list of modules sorted by its weight\n *\n * @export\n * @function weightTestModules\n * @param {Array} modules\n * @return {Array}\n */\n\n\n function weightTestModules(modules) {\n const groups = new Map();\n modules.forEach(module => {\n const moduleWeight = getWeight(module);\n let moduleWeightGroup = groups.get(moduleWeight);\n\n if (Array.isArray(moduleWeightGroup)) {\n moduleWeightGroup.push(module);\n } else {\n moduleWeightGroup = [module];\n }\n\n groups.set(moduleWeight, moduleWeightGroup);\n }); // return modules sorted by weight and alphabetically within its weighted groups\n\n return Array.from(groups.keys()).sort((a, b) => b - a).reduce((accumulatedArray, weight) => {\n const sortedModuleArr = groups.get(weight).sort();\n return accumulatedArray.concat(sortedModuleArr);\n }, []);\n }\n});","define(\"ember-exam/test-support/load\", [\"exports\", \"ember-exam/test-support/-private/patch-testem-output\", \"ember-exam/test-support/-private/get-test-loader\"], function (_exports, _patchTestemOutput, _getTestLoader) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = loadEmberExam;\n 0; //eaimeta@70e063a35619d71f0,\"ember-exam/test-support/-private/patch-testem-output\",0,\"ember-exam/test-support/-private/get-test-loader\"eaimeta@70e063a35619d71f\n\n let loaded = false;\n /**\n * Setup EmberExamTestLoader to enable ember exam functionalities\n *\n * @function loadEmberExam\n * @return {*} testLoader\n */\n\n function loadEmberExam() {\n if (loaded) {\n // eslint-disable-next-line no-console\n console.warn('Attempted to load Ember Exam more than once.');\n return;\n }\n\n loaded = true;\n const EmberExamTestLoader = (0, _getTestLoader.default)();\n const testLoader = new EmberExamTestLoader(window.Testem);\n\n if (window.Testem) {\n (0, _patchTestemOutput.patchTestemOutput)(testLoader.urlParams);\n }\n\n return testLoader;\n }\n});","define(\"ember-exam/test-support/start\", [\"exports\", \"@embroider/macros/es-compat\", \"@embroider/macros/runtime\", \"ember-exam/test-support/load\"], function (_exports, _esCompat, _runtime, _load) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = start;\n 0; //eaimeta@70e063a35619d71f0,\"ember-exam/test-support/load\",0,\"@embroider/macros\",0,\"ember-qunit\",0,\"ember-mocha\"eaimeta@70e063a35619d71f\n\n /**\n * Equivalent to ember-qunit or ember-mocha's loadTest() except this does not create a new TestLoader instance\n *\n * @function loadTests\n * @param {*} testLoader\n */\n function loadTests(testLoader) {\n if (testLoader === undefined) {\n throw new Error('A testLoader instance has not been created. You must call `loadEmberExam()` before calling `loadTest()`.');\n }\n\n testLoader.loadModules();\n }\n /**\n * Ember-exam's own start function to set up EmberExamTestLoader, load tests and calls start() from\n * ember-qunit or ember-mocha\n *\n * @function start\n * @param {*} qunitOptions\n */\n\n\n function start(qunitOptions) {\n const modifiedOptions = qunitOptions || Object.create(null);\n modifiedOptions.loadTests = false;\n const testLoader = (0, _load.default)();\n loadTests(testLoader);\n let emberTestFramework;\n\n if ((0, _runtime.macroCondition)(true)) {\n emberTestFramework = (0, _esCompat.default)(require(\"ember-qunit\"));\n } else if ((0, _runtime.macroCondition)(false)) {\n emberTestFramework = (0, _esCompat.default)(require(\"ember-mocha\"));\n }\n\n if (emberTestFramework.start) {\n emberTestFramework.start(modifiedOptions);\n }\n }\n});","define(\"ember-qunit/adapter\", [\"exports\", \"qunit\", \"@ember/test-helpers/has-ember-version\"], function (_exports, _qunit, _hasEmberVersion) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.nonTestDoneCallback = nonTestDoneCallback;\n _exports.default = void 0;\n\n function unhandledRejectionAssertion(current, error) {\n let message, source;\n\n if (typeof error === 'object' && error !== null) {\n message = error.message;\n source = error.stack;\n } else if (typeof error === 'string') {\n message = error;\n source = 'unknown source';\n } else {\n message = 'unhandledRejection occured, but it had no message';\n source = 'unknown source';\n }\n\n current.assert.pushResult({\n result: false,\n actual: false,\n expected: true,\n message: message,\n source: source\n });\n }\n\n function nonTestDoneCallback() {}\n\n let Adapter = Ember.Test.Adapter.extend({\n init() {\n this.doneCallbacks = [];\n this.qunit = this.qunit || _qunit.default;\n },\n\n asyncStart() {\n let currentTest = this.qunit.config.current;\n let done = currentTest && currentTest.assert ? currentTest.assert.async() : nonTestDoneCallback;\n this.doneCallbacks.push({\n test: currentTest,\n done\n });\n },\n\n asyncEnd() {\n let currentTest = this.qunit.config.current;\n\n if (this.doneCallbacks.length === 0) {\n throw new Error('Adapter asyncEnd called when no async was expected. Please create an issue in ember-qunit.');\n }\n\n let {\n test,\n done\n } = this.doneCallbacks.pop(); // In future, we should explore fixing this at a different level, specifically\n // addressing the pairing of asyncStart/asyncEnd behavior in a more consistent way.\n\n if (test === currentTest) {\n done();\n }\n },\n\n // clobber default implementation of `exception` will be added back for Ember\n // < 2.17 just below...\n exception: null\n }); // Ember 2.17 and higher do not require the test adapter to have an `exception`\n // method When `exception` is not present, the unhandled rejection is\n // automatically re-thrown and will therefore hit QUnit's own global error\n // handler (therefore appropriately causing test failure)\n\n if (!(0, _hasEmberVersion.default)(2, 17)) {\n Adapter = Adapter.extend({\n exception(error) {\n unhandledRejectionAssertion(_qunit.default.config.current, error);\n }\n\n });\n }\n\n var _default = Adapter;\n _exports.default = _default;\n});","define(\"ember-qunit/index\", [\"exports\", \"ember-qunit/legacy-2-x/module-for\", \"ember-qunit/legacy-2-x/module-for-component\", \"ember-qunit/legacy-2-x/module-for-model\", \"ember-qunit/adapter\", \"qunit\", \"ember-qunit/test-loader\", \"@ember/test-helpers\", \"ember-qunit/test-isolation-validation\"], function (_exports, _moduleFor, _moduleForComponent, _moduleForModel, _adapter, _qunit, _testLoader, _testHelpers, _testIsolationValidation) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.setupTest = setupTest;\n _exports.setupRenderingTest = setupRenderingTest;\n _exports.setupApplicationTest = setupApplicationTest;\n _exports.setupTestContainer = setupTestContainer;\n _exports.startTests = startTests;\n _exports.setupTestAdapter = setupTestAdapter;\n _exports.setupEmberTesting = setupEmberTesting;\n _exports.setupEmberOnerrorValidation = setupEmberOnerrorValidation;\n _exports.setupResetOnerror = setupResetOnerror;\n _exports.setupTestIsolationValidation = setupTestIsolationValidation;\n _exports.start = start;\n Object.defineProperty(_exports, \"moduleFor\", {\n enumerable: true,\n get: function () {\n return _moduleFor.default;\n }\n });\n Object.defineProperty(_exports, \"moduleForComponent\", {\n enumerable: true,\n get: function () {\n return _moduleForComponent.default;\n }\n });\n Object.defineProperty(_exports, \"moduleForModel\", {\n enumerable: true,\n get: function () {\n return _moduleForModel.default;\n }\n });\n Object.defineProperty(_exports, \"QUnitAdapter\", {\n enumerable: true,\n get: function () {\n return _adapter.default;\n }\n });\n Object.defineProperty(_exports, \"nonTestDoneCallback\", {\n enumerable: true,\n get: function () {\n return _adapter.nonTestDoneCallback;\n }\n });\n Object.defineProperty(_exports, \"module\", {\n enumerable: true,\n get: function () {\n return _qunit.module;\n }\n });\n Object.defineProperty(_exports, \"test\", {\n enumerable: true,\n get: function () {\n return _qunit.test;\n }\n });\n Object.defineProperty(_exports, \"skip\", {\n enumerable: true,\n get: function () {\n return _qunit.skip;\n }\n });\n Object.defineProperty(_exports, \"only\", {\n enumerable: true,\n get: function () {\n return _qunit.only;\n }\n });\n Object.defineProperty(_exports, \"todo\", {\n enumerable: true,\n get: function () {\n return _qunit.todo;\n }\n });\n Object.defineProperty(_exports, \"loadTests\", {\n enumerable: true,\n get: function () {\n return _testLoader.loadTests;\n }\n });\n let waitForSettled = true;\n\n function setupTest(hooks, _options) {\n let options = _options === undefined ? {\n waitForSettled\n } : Ember.assign({\n waitForSettled\n }, _options);\n hooks.beforeEach(function (assert) {\n let testMetadata = (0, _testHelpers.getTestMetadata)(this);\n testMetadata.framework = 'qunit';\n return (0, _testHelpers.setupContext)(this, options).then(() => {\n let originalPauseTest = this.pauseTest;\n\n this.pauseTest = function QUnit_pauseTest() {\n assert.timeout(-1); // prevent the test from timing out\n // This is a temporary work around for\n // https://github.com/emberjs/ember-qunit/issues/496 this clears the\n // timeout that would fail the test when it hits the global testTimeout\n // value.\n\n clearTimeout(_qunit.default.config.timeout);\n return originalPauseTest.call(this);\n };\n });\n });\n hooks.afterEach(function () {\n return (0, _testHelpers.teardownContext)(this, options);\n });\n }\n\n function setupRenderingTest(hooks, _options) {\n let options = _options === undefined ? {\n waitForSettled\n } : Ember.assign({\n waitForSettled\n }, _options);\n setupTest(hooks, options);\n hooks.beforeEach(function () {\n return (0, _testHelpers.setupRenderingContext)(this);\n });\n hooks.afterEach(function () {\n return (0, _testHelpers.teardownRenderingContext)(this, options);\n });\n }\n\n function setupApplicationTest(hooks, _options) {\n let options = _options === undefined ? {\n waitForSettled\n } : Ember.assign({\n waitForSettled\n }, _options);\n setupTest(hooks, options);\n hooks.beforeEach(function () {\n return (0, _testHelpers.setupApplicationContext)(this);\n });\n hooks.afterEach(function () {\n return (0, _testHelpers.teardownApplicationContext)(this, options);\n });\n }\n /**\n Uses current URL configuration to setup the test container.\n \n * If `?nocontainer` is set, the test container will be hidden.\n * If `?dockcontainer` or `?devmode` are set the test container will be\n absolutely positioned.\n * If `?devmode` is set, the test container will be made full screen.\n \n @method setupTestContainer\n */\n\n\n function setupTestContainer() {\n let testContainer = document.getElementById('ember-testing-container');\n\n if (!testContainer) {\n return;\n }\n\n let params = _qunit.default.urlParams;\n let containerVisibility = params.nocontainer ? 'hidden' : 'visible';\n let containerPosition = params.dockcontainer || params.devmode ? 'fixed' : 'relative';\n\n if (params.devmode) {\n testContainer.className = ' full-screen';\n }\n\n testContainer.style.visibility = containerVisibility;\n testContainer.style.position = containerPosition;\n let qunitContainer = document.getElementById('qunit');\n\n if (params.dockcontainer) {\n qunitContainer.style.marginBottom = window.getComputedStyle(testContainer).height;\n }\n }\n /**\n Instruct QUnit to start the tests.\n @method startTests\n */\n\n\n function startTests() {\n _qunit.default.start();\n }\n /**\n Sets up the `Ember.Test` adapter for usage with QUnit 2.x.\n \n @method setupTestAdapter\n */\n\n\n function setupTestAdapter() {\n Ember.Test.adapter = _adapter.default.create();\n }\n /**\n Ensures that `Ember.testing` is set to `true` before each test begins\n (including `before` / `beforeEach`), and reset to `false` after each test is\n completed. This is done via `QUnit.testStart` and `QUnit.testDone`.\n \n */\n\n\n function setupEmberTesting() {\n _qunit.default.testStart(() => {\n Ember.testing = true;\n });\n\n _qunit.default.testDone(() => {\n Ember.testing = false;\n });\n }\n /**\n Ensures that `Ember.onerror` (if present) is properly configured to re-throw\n errors that occur while `Ember.testing` is `true`.\n */\n\n\n function setupEmberOnerrorValidation() {\n _qunit.default.module('ember-qunit: Ember.onerror validation', function () {\n _qunit.default.test('Ember.onerror is functioning properly', function (assert) {\n assert.expect(1);\n let result = (0, _testHelpers.validateErrorHandler)();\n assert.ok(result.isValid, `Ember.onerror handler with invalid testing behavior detected. An Ember.onerror handler _must_ rethrow exceptions when \\`Ember.testing\\` is \\`true\\` or the test suite is unreliable. See https://git.io/vbine for more details.`);\n });\n });\n }\n\n function setupResetOnerror() {\n _qunit.default.testDone(_testHelpers.resetOnerror);\n }\n\n function setupTestIsolationValidation(delay) {\n waitForSettled = false;\n Ember.run.backburner.DEBUG = true;\n\n _qunit.default.on('testStart', () => (0, _testIsolationValidation.installTestNotIsolatedHook)(delay));\n }\n /**\n @method start\n @param {Object} [options] Options to be used for enabling/disabling behaviors\n @param {Boolean} [options.loadTests] If `false` tests will not be loaded automatically.\n @param {Boolean} [options.setupTestContainer] If `false` the test container will not\n be setup based on `devmode`, `dockcontainer`, or `nocontainer` URL params.\n @param {Boolean} [options.startTests] If `false` tests will not be automatically started\n (you must run `QUnit.start()` to kick them off).\n @param {Boolean} [options.setupTestAdapter] If `false` the default Ember.Test adapter will\n not be updated.\n @param {Boolean} [options.setupEmberTesting] `false` opts out of the\n default behavior of setting `Ember.testing` to `true` before all tests and\n back to `false` after each test will.\n @param {Boolean} [options.setupEmberOnerrorValidation] If `false` validation\n of `Ember.onerror` will be disabled.\n @param {Boolean} [options.setupTestIsolationValidation] If `false` test isolation validation\n will be disabled.\n @param {Number} [options.testIsolationValidationDelay] When using\n setupTestIsolationValidation this number represents the maximum amount of\n time in milliseconds that is allowed _after_ the test is completed for all\n async to have been completed. The default value is 50.\n */\n\n\n function start(options = {}) {\n if (options.loadTests !== false) {\n (0, _testLoader.loadTests)();\n }\n\n if (options.setupTestContainer !== false) {\n setupTestContainer();\n }\n\n if (options.setupTestAdapter !== false) {\n setupTestAdapter();\n }\n\n if (options.setupEmberTesting !== false) {\n setupEmberTesting();\n }\n\n if (options.setupEmberOnerrorValidation !== false) {\n setupEmberOnerrorValidation();\n }\n\n if (typeof options.setupTestIsolationValidation !== 'undefined' && options.setupTestIsolationValidation !== false) {\n setupTestIsolationValidation(options.testIsolationValidationDelay);\n }\n\n if (options.startTests !== false) {\n startTests();\n }\n\n setupResetOnerror();\n }\n});","define(\"ember-qunit/legacy-2-x/module-for-component\", [\"exports\", \"ember-qunit/legacy-2-x/qunit-module\", \"ember-test-helpers\"], function (_exports, _qunitModule, _emberTestHelpers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = moduleForComponent;\n\n function moduleForComponent(name, description, callbacks) {\n (0, _qunitModule.createModule)(_emberTestHelpers.TestModuleForComponent, name, description, callbacks);\n (true && !(false) && Ember.deprecate(`The usage \"moduleForComponent\" is deprecated. Please migrate the \"${name}\" module to use \"setupRenderingTest\".`, false, {\n id: 'ember-qunit.deprecate-legacy-apis',\n until: '5.0.0',\n url: 'https://github.com/emberjs/ember-qunit/blob/master/docs/migration.md'\n }));\n }\n});","define(\"ember-qunit/legacy-2-x/module-for-model\", [\"exports\", \"ember-qunit/legacy-2-x/qunit-module\", \"ember-test-helpers\"], function (_exports, _qunitModule, _emberTestHelpers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = moduleForModel;\n\n function moduleForModel(name, description, callbacks) {\n (true && !(false) && Ember.deprecate(`The usage \"moduleForModel\" is deprecated. Please migrate the \"${name}\" module to the new test APIs.`, false, {\n id: 'ember-qunit.deprecate-legacy-apis',\n until: '5.0.0',\n url: 'https://github.com/emberjs/ember-qunit/blob/master/docs/migration.md'\n }));\n (0, _qunitModule.createModule)(_emberTestHelpers.TestModuleForModel, name, description, callbacks);\n }\n});","define(\"ember-qunit/legacy-2-x/module-for\", [\"exports\", \"ember-qunit/legacy-2-x/qunit-module\", \"ember-test-helpers\"], function (_exports, _qunitModule, _emberTestHelpers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = moduleFor;\n\n function moduleFor(name, description, callbacks) {\n (true && !(false) && Ember.deprecate(`The usage \"moduleFor\" is deprecated. Please migrate the \"${name}\" module to use \"module\"`, false, {\n id: 'ember-qunit.deprecate-legacy-apis',\n until: '5.0.0',\n url: 'https://github.com/emberjs/ember-qunit/blob/master/docs/migration.md'\n }));\n (0, _qunitModule.createModule)(_emberTestHelpers.TestModule, name, description, callbacks);\n }\n});","define(\"ember-qunit/legacy-2-x/qunit-module\", [\"exports\", \"qunit\"], function (_exports, _qunit) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.createModule = createModule;\n\n function noop() {}\n\n function callbackFor(name, callbacks) {\n if (typeof callbacks !== 'object') {\n return noop;\n }\n\n if (!callbacks) {\n return noop;\n }\n\n var callback = noop;\n\n if (callbacks[name]) {\n callback = callbacks[name];\n delete callbacks[name];\n }\n\n return callback;\n }\n\n function createModule(Constructor, name, description, callbacks) {\n if (!callbacks && typeof description === 'object') {\n callbacks = description;\n description = name;\n }\n\n var before = callbackFor('before', callbacks);\n var beforeEach = callbackFor('beforeEach', callbacks);\n var afterEach = callbackFor('afterEach', callbacks);\n var after = callbackFor('after', callbacks);\n var module;\n var moduleName = typeof description === 'string' ? description : name;\n (0, _qunit.module)(moduleName, {\n before() {\n // storing this in closure scope to avoid exposing these\n // private internals to the test context\n module = new Constructor(name, description, callbacks);\n return before.apply(this, arguments);\n },\n\n beforeEach() {\n // provide the test context to the underlying module\n module.setContext(this);\n return module.setup(...arguments).then(() => {\n return beforeEach.apply(this, arguments);\n });\n },\n\n afterEach() {\n let result = afterEach.apply(this, arguments);\n return Ember.RSVP.resolve(result).then(() => module.teardown(...arguments));\n },\n\n after() {\n try {\n return after.apply(this, arguments);\n } finally {\n after = afterEach = before = beforeEach = callbacks = module = null;\n }\n }\n\n });\n }\n});","define(\"ember-qunit/test-isolation-validation\", [\"exports\", \"qunit\", \"@ember/test-helpers\"], function (_exports, _qunit, _testHelpers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.detectIfTestNotIsolated = detectIfTestNotIsolated;\n _exports.installTestNotIsolatedHook = installTestNotIsolatedHook;\n\n /* eslint-disable no-console */\n\n /**\n * Detects if a specific test isn't isolated. A test is considered\n * not isolated if it:\n *\n * - has pending timers\n * - is in a runloop\n * - has pending AJAX requests\n * - has pending test waiters\n *\n * @function detectIfTestNotIsolated\n * @param {Object} testInfo\n * @param {string} testInfo.module The name of the test module\n * @param {string} testInfo.name The test name\n */\n function detectIfTestNotIsolated(test, message = '') {\n if (!(0, _testHelpers.isSettled)()) {\n let {\n debugInfo\n } = (0, _testHelpers.getSettledState)();\n console.group(`${test.module.name}: ${test.testName}`);\n debugInfo.toConsole();\n console.groupEnd();\n test.expected++;\n test.assert.pushResult({\n result: false,\n message: `${message} \\nMore information has been printed to the console. Please use that information to help in debugging.\\n\\n`\n });\n }\n }\n /**\n * Installs a hook to detect if a specific test isn't isolated.\n * This hook is installed by patching into the `test.finish` method,\n * which allows us to be very precise as to when the detection occurs.\n *\n * @function installTestNotIsolatedHook\n * @param {number} delay the delay delay to use when checking for isolation validation\n */\n\n\n function installTestNotIsolatedHook(delay = 50) {\n if (!(0, _testHelpers.getDebugInfo)()) {\n return;\n }\n\n let test = _qunit.default.config.current;\n let finish = test.finish;\n let pushFailure = test.pushFailure;\n\n test.pushFailure = function (message) {\n if (message.indexOf('Test took longer than') === 0) {\n detectIfTestNotIsolated(this, message);\n } else {\n return pushFailure.apply(this, arguments);\n }\n }; // We're hooking into `test.finish`, which utilizes internal ordering of\n // when a test's hooks are invoked. We do this mainly becuase we need\n // greater precision as to when to detect and subsequently report if the\n // test is isolated.\n //\n // We looked at using:\n // - `afterEach`\n // - the ordering of when the `afterEach` is called is not easy to guarantee\n // (ancestor `afterEach`es have to be accounted for too)\n // - `QUnit.on('testEnd')`\n // - is executed too late; the test is already considered done so\n // we're unable to push a new assert to fail the current test\n // - 'QUnit.done'\n // - it detatches the failure from the actual test that failed, making it\n // more confusing to the end user.\n\n\n test.finish = function () {\n let doFinish = () => finish.apply(this, arguments);\n\n if ((0, _testHelpers.isSettled)()) {\n return doFinish();\n } else {\n return (0, _testHelpers.waitUntil)(_testHelpers.isSettled, {\n timeout: delay\n }).catch(() => {// we consider that when waitUntil times out, you're in a state of\n // test isolation violation. The nature of the error is irrelevant\n // in this case, and we want to allow the error to fall through\n // to the finally, where cleanup occurs.\n }).finally(() => {\n detectIfTestNotIsolated(this, 'Test is not isolated (async execution is extending beyond the duration of the test).'); // canceling timers here isn't perfect, but is as good as we can do\n // to attempt to prevent future tests from failing due to this test's\n // leakage\n\n Ember.run.cancelTimers();\n return doFinish();\n });\n }\n };\n }\n});","define(\"ember-qunit/test-loader\", [\"exports\", \"qunit\", \"ember-cli-test-loader/test-support/index\"], function (_exports, _qunit, _index) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.loadTests = loadTests;\n _exports.TestLoader = void 0;\n (0, _index.addModuleExcludeMatcher)(function (moduleName) {\n return _qunit.default.urlParams.nolint && moduleName.match(/\\.(jshint|lint-test)$/);\n });\n (0, _index.addModuleIncludeMatcher)(function (moduleName) {\n return moduleName.match(/\\.jshint$/);\n });\n let moduleLoadFailures = [];\n\n _qunit.default.done(function () {\n let length = moduleLoadFailures.length;\n\n try {\n if (length === 0) {// do nothing\n } else if (length === 1) {\n throw moduleLoadFailures[0];\n } else {\n throw new Error('\\n' + moduleLoadFailures.join('\\n'));\n }\n } finally {\n // ensure we release previously captured errors.\n moduleLoadFailures = [];\n }\n });\n\n class TestLoader extends _index.default {\n moduleLoadFailure(moduleName, error) {\n moduleLoadFailures.push(error);\n\n _qunit.default.module('TestLoader Failures');\n\n _qunit.default.test(moduleName + ': could not be loaded', function () {\n throw error;\n });\n }\n\n }\n /**\n Load tests following the default patterns:\n \n * The module name ends with `-test`\n * The module name ends with `.jshint`\n \n Excludes tests that match the following\n patterns when `?nolint` URL param is set:\n \n * The module name ends with `.jshint`\n * The module name ends with `-lint-test`\n \n @method loadTests\n */\n\n\n _exports.TestLoader = TestLoader;\n\n function loadTests() {\n new TestLoader().loadModules();\n }\n});","define(\"ember-test-helpers/has-ember-version\", [\"exports\", \"@ember/test-helpers/has-ember-version\"], function (_exports, _hasEmberVersion) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n Object.defineProperty(_exports, \"default\", {\n enumerable: true,\n get: function () {\n return _hasEmberVersion.default;\n }\n });\n});","define(\"ember-test-helpers/index\", [\"exports\", \"@ember/test-helpers\", \"ember-test-helpers/legacy-0-6-x/test-module\", \"ember-test-helpers/legacy-0-6-x/test-module-for-acceptance\", \"ember-test-helpers/legacy-0-6-x/test-module-for-component\", \"ember-test-helpers/legacy-0-6-x/test-module-for-model\"], function (_exports, _testHelpers, _testModule, _testModuleForAcceptance, _testModuleForComponent, _testModuleForModel) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n var _exportNames = {\n TestModule: true,\n TestModuleForAcceptance: true,\n TestModuleForComponent: true,\n TestModuleForModel: true\n };\n Object.defineProperty(_exports, \"TestModule\", {\n enumerable: true,\n get: function () {\n return _testModule.default;\n }\n });\n Object.defineProperty(_exports, \"TestModuleForAcceptance\", {\n enumerable: true,\n get: function () {\n return _testModuleForAcceptance.default;\n }\n });\n Object.defineProperty(_exports, \"TestModuleForComponent\", {\n enumerable: true,\n get: function () {\n return _testModuleForComponent.default;\n }\n });\n Object.defineProperty(_exports, \"TestModuleForModel\", {\n enumerable: true,\n get: function () {\n return _testModuleForModel.default;\n }\n });\n Object.keys(_testHelpers).forEach(function (key) {\n if (key === \"default\" || key === \"__esModule\") return;\n if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;\n Object.defineProperty(_exports, key, {\n enumerable: true,\n get: function () {\n return _testHelpers[key];\n }\n });\n });\n});","define(\"ember-test-helpers/legacy-0-6-x/-legacy-overrides\", [\"exports\", \"ember-test-helpers/has-ember-version\"], function (_exports, _hasEmberVersion) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.preGlimmerSetupIntegrationForComponent = preGlimmerSetupIntegrationForComponent;\n\n function preGlimmerSetupIntegrationForComponent() {\n var module = this;\n var context = this.context;\n this.actionHooks = {};\n context.dispatcher = this.container.lookup('event_dispatcher:main') || Ember.EventDispatcher.create();\n context.dispatcher.setup({}, '#ember-testing');\n context.actions = module.actionHooks;\n (this.registry || this.container).register('component:-test-holder', Ember.Component.extend());\n\n context.render = function (template) {\n // in case `this.render` is called twice, make sure to teardown the first invocation\n module.teardownComponent();\n\n if (!template) {\n throw new Error('in a component integration test you must pass a template to `render()`');\n }\n\n if (Ember.isArray(template)) {\n template = template.join('');\n }\n\n if (typeof template === 'string') {\n template = Ember.Handlebars.compile(template);\n }\n\n module.component = module.container.lookupFactory('component:-test-holder').create({\n layout: template\n });\n module.component.set('context', context);\n module.component.set('controller', context);\n Ember.run(function () {\n module.component.appendTo('#ember-testing');\n });\n context._element = module.component.element;\n };\n\n context.$ = function () {\n return module.component.$.apply(module.component, arguments);\n };\n\n context.set = function (key, value) {\n var ret = Ember.run(function () {\n return Ember.set(context, key, value);\n });\n\n if ((0, _hasEmberVersion.default)(2, 0)) {\n return ret;\n }\n };\n\n context.setProperties = function (hash) {\n var ret = Ember.run(function () {\n return Ember.setProperties(context, hash);\n });\n\n if ((0, _hasEmberVersion.default)(2, 0)) {\n return ret;\n }\n };\n\n context.get = function (key) {\n return Ember.get(context, key);\n };\n\n context.getProperties = function () {\n var args = Array.prototype.slice.call(arguments);\n return Ember.getProperties(context, args);\n };\n\n context.on = function (actionName, handler) {\n module.actionHooks[actionName] = handler;\n };\n\n context.send = function (actionName) {\n var hook = module.actionHooks[actionName];\n\n if (!hook) {\n throw new Error('integration testing template received unexpected action ' + actionName);\n }\n\n hook.apply(module, Array.prototype.slice.call(arguments, 1));\n };\n\n context.clearRender = function () {\n module.teardownComponent();\n };\n }\n});","define(\"ember-test-helpers/legacy-0-6-x/abstract-test-module\", [\"exports\", \"ember-test-helpers/legacy-0-6-x/ext/rsvp\", \"@ember/test-helpers/settled\", \"@ember/test-helpers\"], function (_exports, _rsvp, _settled, _testHelpers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n class _default {\n constructor(name, options) {\n this.context = undefined;\n this.name = name;\n this.callbacks = options || {};\n this.initSetupSteps();\n this.initTeardownSteps();\n }\n\n setup(assert) {\n Ember.testing = true;\n Ember.run.backburner.DEBUG = true;\n return this.invokeSteps(this.setupSteps, this, assert).then(() => {\n this.contextualizeCallbacks();\n return this.invokeSteps(this.contextualizedSetupSteps, this.context, assert);\n });\n }\n\n teardown(assert) {\n return this.invokeSteps(this.contextualizedTeardownSteps, this.context, assert).then(() => {\n return this.invokeSteps(this.teardownSteps, this, assert);\n }).then(() => {\n this.cache = null;\n this.cachedCalls = null;\n }).finally(function () {\n Ember.testing = false;\n });\n }\n\n initSetupSteps() {\n this.setupSteps = [];\n this.contextualizedSetupSteps = [];\n\n if (this.callbacks.beforeSetup) {\n this.setupSteps.push(this.callbacks.beforeSetup);\n delete this.callbacks.beforeSetup;\n }\n\n this.setupSteps.push(this.setupContext);\n this.setupSteps.push(this.setupTestElements);\n this.setupSteps.push(this.setupAJAXListeners);\n this.setupSteps.push(this.setupPromiseListeners);\n\n if (this.callbacks.setup) {\n this.contextualizedSetupSteps.push(this.callbacks.setup);\n delete this.callbacks.setup;\n }\n }\n\n invokeSteps(steps, context, assert) {\n steps = steps.slice();\n\n function nextStep() {\n var step = steps.shift();\n\n if (step) {\n // guard against exceptions, for example missing components referenced from needs.\n return new Ember.RSVP.Promise(resolve => {\n resolve(step.call(context, assert));\n }).then(nextStep);\n } else {\n return Ember.RSVP.resolve();\n }\n }\n\n return nextStep();\n }\n\n contextualizeCallbacks() {}\n\n initTeardownSteps() {\n this.teardownSteps = [];\n this.contextualizedTeardownSteps = [];\n\n if (this.callbacks.teardown) {\n this.contextualizedTeardownSteps.push(this.callbacks.teardown);\n delete this.callbacks.teardown;\n }\n\n this.teardownSteps.push(this.teardownContext);\n this.teardownSteps.push(this.teardownTestElements);\n this.teardownSteps.push(this.teardownAJAXListeners);\n this.teardownSteps.push(this.teardownPromiseListeners);\n\n if (this.callbacks.afterTeardown) {\n this.teardownSteps.push(this.callbacks.afterTeardown);\n delete this.callbacks.afterTeardown;\n }\n }\n\n setupTestElements() {\n let testElementContainer = document.querySelector('#ember-testing-container');\n\n if (!testElementContainer) {\n testElementContainer = document.createElement('div');\n testElementContainer.setAttribute('id', 'ember-testing-container');\n document.body.appendChild(testElementContainer);\n }\n\n let testEl = document.querySelector('#ember-testing');\n\n if (!testEl) {\n let element = document.createElement('div');\n element.setAttribute('id', 'ember-testing');\n testElementContainer.appendChild(element);\n this.fixtureResetValue = '';\n } else {\n this.fixtureResetValue = testElementContainer.innerHTML;\n }\n }\n\n setupContext(options) {\n let context = this.getContext();\n Ember.assign(context, {\n dispatcher: null,\n inject: {}\n }, options);\n this.setToString();\n (0, _testHelpers.setContext)(context);\n this.context = context;\n }\n\n setContext(context) {\n this.context = context;\n }\n\n getContext() {\n if (this.context) {\n return this.context;\n }\n\n return this.context = (0, _testHelpers.getContext)() || {};\n }\n\n setToString() {\n this.context.toString = () => {\n if (this.subjectName) {\n return `test context for: ${this.subjectName}`;\n }\n\n if (this.name) {\n return `test context for: ${this.name}`;\n }\n };\n }\n\n setupAJAXListeners() {\n (0, _settled._setupAJAXHooks)();\n }\n\n teardownAJAXListeners() {\n (0, _settled._teardownAJAXHooks)();\n }\n\n setupPromiseListeners() {\n (0, _rsvp._setupPromiseListeners)();\n }\n\n teardownPromiseListeners() {\n (0, _rsvp._teardownPromiseListeners)();\n }\n\n teardownTestElements() {\n document.getElementById('ember-testing-container').innerHTML = this.fixtureResetValue; // Ember 2.0.0 removed Ember.View as public API, so only do this when\n // Ember.View is present\n\n if (Ember.View && Ember.View.views) {\n Ember.View.views = {};\n }\n }\n\n teardownContext() {\n var context = this.context;\n this.context = undefined;\n (0, _testHelpers.unsetContext)();\n\n if (context && context.dispatcher && !context.dispatcher.isDestroyed) {\n Ember.run(function () {\n context.dispatcher.destroy();\n });\n }\n }\n\n }\n\n _exports.default = _default;\n});","define(\"ember-test-helpers/legacy-0-6-x/build-registry\", [\"exports\", \"require\"], function (_exports, _require) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _default;\n\n function exposeRegistryMethodsWithoutDeprecations(container) {\n var methods = ['register', 'unregister', 'resolve', 'normalize', 'typeInjection', 'injection', 'factoryInjection', 'factoryTypeInjection', 'has', 'options', 'optionsForType'];\n\n function exposeRegistryMethod(container, method) {\n if (method in container) {\n container[method] = function () {\n return container._registry[method].apply(container._registry, arguments);\n };\n }\n }\n\n for (var i = 0, l = methods.length; i < l; i++) {\n exposeRegistryMethod(container, methods[i]);\n }\n }\n\n var Owner = function () {\n if (Ember._RegistryProxyMixin && Ember._ContainerProxyMixin) {\n return Ember.Object.extend(Ember._RegistryProxyMixin, Ember._ContainerProxyMixin, {\n _emberTestHelpersMockOwner: true\n });\n }\n\n return Ember.Object.extend({\n _emberTestHelpersMockOwner: true\n });\n }();\n\n function _default(resolver) {\n var fallbackRegistry, registry, container;\n var namespace = Ember.Object.create({\n Resolver: {\n create() {\n return resolver;\n }\n\n }\n });\n\n function register(name, factory) {\n var thingToRegisterWith = registry || container;\n\n if (!(container.factoryFor ? container.factoryFor(name) : container.lookupFactory(name))) {\n thingToRegisterWith.register(name, factory);\n }\n }\n\n if (Ember.Application.buildRegistry) {\n fallbackRegistry = Ember.Application.buildRegistry(namespace);\n fallbackRegistry.register('component-lookup:main', Ember.ComponentLookup);\n registry = new Ember.Registry({\n fallback: fallbackRegistry\n });\n\n if (Ember.ApplicationInstance && Ember.ApplicationInstance.setupRegistry) {\n Ember.ApplicationInstance.setupRegistry(registry);\n } // these properties are set on the fallback registry by `buildRegistry`\n // and on the primary registry within the ApplicationInstance constructor\n // but we need to manually recreate them since ApplicationInstance's are not\n // exposed externally\n\n\n registry.normalizeFullName = fallbackRegistry.normalizeFullName;\n registry.makeToString = fallbackRegistry.makeToString;\n registry.describe = fallbackRegistry.describe;\n var owner = Owner.create({\n __registry__: registry,\n __container__: null\n });\n container = registry.container({\n owner: owner\n });\n owner.__container__ = container;\n exposeRegistryMethodsWithoutDeprecations(container);\n } else {\n container = Ember.Application.buildContainer(namespace);\n container.register('component-lookup:main', Ember.ComponentLookup);\n } // Ember 1.10.0 did not properly add `view:toplevel` or `view:default`\n // to the registry in Ember.Application.buildRegistry :(\n //\n // Ember 2.0.0 removed Ember.View as public API, so only do this when\n // Ember.View is present\n\n\n if (Ember.View) {\n register('view:toplevel', Ember.View.extend());\n } // Ember 2.0.0 removed Ember._MetamorphView from the Ember global, so only\n // do this when present\n\n\n if (Ember._MetamorphView) {\n register('view:default', Ember._MetamorphView);\n }\n\n var globalContext = typeof global === 'object' && global || self;\n\n if (requirejs.entries['ember-data/setup-container']) {\n // ember-data is a proper ember-cli addon since 2.3; if no 'import\n // 'ember-data'' is present somewhere in the tests, there is also no `DS`\n // available on the globalContext and hence ember-data wouldn't be setup\n // correctly for the tests; that's why we import and call setupContainer\n // here; also see https://github.com/emberjs/data/issues/4071 for context\n var setupContainer = (0, _require.default)(\"ember-data/setup-container\")['default'];\n setupContainer(registry || container);\n } else if (globalContext.DS) {\n var DS = globalContext.DS;\n\n if (DS._setupContainer) {\n DS._setupContainer(registry || container);\n } else {\n register('transform:boolean', DS.BooleanTransform);\n register('transform:date', DS.DateTransform);\n register('transform:number', DS.NumberTransform);\n register('transform:string', DS.StringTransform);\n register('serializer:-default', DS.JSONSerializer);\n register('serializer:-rest', DS.RESTSerializer);\n register('adapter:-rest', DS.RESTAdapter);\n }\n }\n\n return {\n registry,\n container,\n owner\n };\n }\n});","define(\"ember-test-helpers/legacy-0-6-x/ext/rsvp\", [\"exports\", \"ember-test-helpers/has-ember-version\"], function (_exports, _hasEmberVersion) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports._setupPromiseListeners = _setupPromiseListeners;\n _exports._teardownPromiseListeners = _teardownPromiseListeners;\n let originalAsync;\n /**\n Configures `RSVP` to resolve promises on the run-loop's action queue. This is\n done by Ember internally since Ember 1.7 and it is only needed to\n provide a consistent testing experience for users of Ember < 1.7.\n \n @private\n */\n\n function _setupPromiseListeners() {\n if (!(0, _hasEmberVersion.default)(1, 7)) {\n originalAsync = Ember.RSVP.configure('async');\n Ember.RSVP.configure('async', function (callback, promise) {\n Ember.run.backburner.schedule('actions', () => {\n callback(promise);\n });\n });\n }\n }\n /**\n Resets `RSVP`'s `async` to its prior value.\n \n @private\n */\n\n\n function _teardownPromiseListeners() {\n if (!(0, _hasEmberVersion.default)(1, 7)) {\n Ember.RSVP.configure('async', originalAsync);\n }\n }\n});","define(\"ember-test-helpers/legacy-0-6-x/test-module-for-acceptance\", [\"exports\", \"ember-test-helpers/legacy-0-6-x/abstract-test-module\", \"@ember/test-helpers\"], function (_exports, _abstractTestModule, _testHelpers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n class _default extends _abstractTestModule.default {\n setupContext() {\n super.setupContext({\n application: this.createApplication()\n });\n }\n\n teardownContext() {\n Ember.run(() => {\n (0, _testHelpers.getContext)().application.destroy();\n });\n super.teardownContext();\n }\n\n createApplication() {\n let {\n Application,\n config\n } = this.callbacks;\n let application;\n Ember.run(() => {\n application = Application.create(config);\n application.setupForTesting();\n application.injectTestHelpers();\n });\n return application;\n }\n\n }\n\n _exports.default = _default;\n});","define(\"ember-test-helpers/legacy-0-6-x/test-module-for-component\", [\"exports\", \"ember-test-helpers/legacy-0-6-x/test-module\", \"ember-test-helpers/has-ember-version\", \"ember-test-helpers/legacy-0-6-x/-legacy-overrides\"], function (_exports, _testModule, _hasEmberVersion, _legacyOverrides) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.setupComponentIntegrationTest = setupComponentIntegrationTest;\n _exports.default = void 0;\n let ACTION_KEY;\n\n if ((0, _hasEmberVersion.default)(2, 0)) {\n ACTION_KEY = 'actions';\n } else {\n ACTION_KEY = '_actions';\n }\n\n const isPreGlimmer = !(0, _hasEmberVersion.default)(1, 13);\n\n class _default extends _testModule.default {\n constructor(componentName, description, callbacks) {\n // Allow `description` to be omitted\n if (!callbacks && typeof description === 'object') {\n callbacks = description;\n description = null;\n } else if (!callbacks) {\n callbacks = {};\n }\n\n let integrationOption = callbacks.integration;\n let hasNeeds = Array.isArray(callbacks.needs);\n super('component:' + componentName, description, callbacks);\n this.componentName = componentName;\n\n if (hasNeeds || callbacks.unit || integrationOption === false) {\n this.isUnitTest = true;\n } else if (integrationOption) {\n this.isUnitTest = false;\n } else {\n (true && !(false) && Ember.deprecate('the component:' + componentName + ' test module is implicitly running in unit test mode, ' + 'which will change to integration test mode by default in an upcoming version of ' + 'ember-test-helpers. Add `unit: true` or a `needs:[]` list to explicitly opt in to unit ' + 'test mode.', false, {\n id: 'ember-test-helpers.test-module-for-component.test-type',\n until: '0.6.0'\n }));\n this.isUnitTest = true;\n }\n\n if (!this.isUnitTest && !this.isLegacy) {\n callbacks.integration = true;\n }\n\n if (this.isUnitTest || this.isLegacy) {\n this.setupSteps.push(this.setupComponentUnitTest);\n } else {\n this.callbacks.subject = function () {\n throw new Error(\"component integration tests do not support `subject()`. Instead, render the component as if it were HTML: `this.render('');`. For more information, read: http://guides.emberjs.com/current/testing/testing-components/\");\n };\n\n this.setupSteps.push(this.setupComponentIntegrationTest);\n this.teardownSteps.unshift(this.teardownComponent);\n }\n\n if (Ember.View && Ember.View.views) {\n this.setupSteps.push(this._aliasViewRegistry);\n this.teardownSteps.unshift(this._resetViewRegistry);\n }\n }\n\n initIntegration(options) {\n this.isLegacy = options.integration === 'legacy';\n this.isIntegration = options.integration !== 'legacy';\n }\n\n _aliasViewRegistry() {\n this._originalGlobalViewRegistry = Ember.View.views;\n var viewRegistry = this.container.lookup('-view-registry:main');\n\n if (viewRegistry) {\n Ember.View.views = viewRegistry;\n }\n }\n\n _resetViewRegistry() {\n Ember.View.views = this._originalGlobalViewRegistry;\n }\n\n setupComponentUnitTest() {\n var _this = this;\n\n var resolver = this.resolver;\n var context = this.context;\n var layoutName = 'template:components/' + this.componentName;\n var layout = resolver.resolve(layoutName);\n var thingToRegisterWith = this.registry || this.container;\n\n if (layout) {\n thingToRegisterWith.register(layoutName, layout);\n thingToRegisterWith.injection(this.subjectName, 'layout', layoutName);\n }\n\n var eventDispatcher = resolver.resolve('event_dispatcher:main');\n\n if (eventDispatcher) {\n thingToRegisterWith.register('event_dispatcher:main', eventDispatcher);\n }\n\n context.dispatcher = this.container.lookup('event_dispatcher:main') || Ember.EventDispatcher.create();\n context.dispatcher.setup({}, '#ember-testing');\n context._element = null;\n\n this.callbacks.render = function () {\n var subject;\n Ember.run(function () {\n subject = context.subject();\n subject.appendTo('#ember-testing');\n });\n context._element = subject.element;\n\n _this.teardownSteps.unshift(function () {\n Ember.run(function () {\n Ember.tryInvoke(subject, 'destroy');\n });\n });\n };\n\n this.callbacks.append = function () {\n (true && !(false) && Ember.deprecate('this.append() is deprecated. Please use this.render() or this.$() instead.', false, {\n id: 'ember-test-helpers.test-module-for-component.append',\n until: '0.6.0'\n }));\n return context.$();\n };\n\n context.$ = function () {\n this.render();\n var subject = this.subject();\n return subject.$.apply(subject, arguments);\n };\n }\n\n setupComponentIntegrationTest() {\n if (isPreGlimmer) {\n return _legacyOverrides.preGlimmerSetupIntegrationForComponent.apply(this, arguments);\n } else {\n return setupComponentIntegrationTest.apply(this, arguments);\n }\n }\n\n setupContext() {\n super.setupContext(); // only setup the injection if we are running against a version\n // of Ember that has `-view-registry:main` (Ember >= 1.12)\n\n if (this.container.factoryFor ? this.container.factoryFor('-view-registry:main') : this.container.lookupFactory('-view-registry:main')) {\n (this.registry || this.container).injection('component', '_viewRegistry', '-view-registry:main');\n }\n\n if (!this.isUnitTest && !this.isLegacy) {\n this.context.factory = function () {};\n }\n }\n\n teardownComponent() {\n var component = this.component;\n\n if (component) {\n Ember.run(component, 'destroy');\n this.component = null;\n }\n }\n\n }\n\n _exports.default = _default;\n\n function getOwnerFromModule(module) {\n return Ember.getOwner && Ember.getOwner(module.container) || module.container.owner;\n }\n\n function lookupTemplateFromModule(module, templateFullName) {\n var template = module.container.lookup(templateFullName);\n if (typeof template === 'function') template = template(getOwnerFromModule(module));\n return template;\n }\n\n function setupComponentIntegrationTest() {\n var module = this;\n var context = this.context;\n this.actionHooks = context[ACTION_KEY] = {};\n context.dispatcher = this.container.lookup('event_dispatcher:main') || Ember.EventDispatcher.create();\n context.dispatcher.setup({}, '#ember-testing');\n var hasRendered = false;\n var OutletView = module.container.factoryFor ? module.container.factoryFor('view:-outlet') : module.container.lookupFactory('view:-outlet');\n var OutletTemplate = lookupTemplateFromModule(module, 'template:-outlet');\n var toplevelView = module.component = OutletView.create();\n var hasOutletTemplate = !!OutletTemplate;\n var outletState = {\n render: {\n owner: getOwnerFromModule(module),\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: module.context,\n ViewClass: undefined,\n template: OutletTemplate\n },\n outlets: {}\n };\n var element = document.getElementById('ember-testing');\n var templateId = 0;\n\n if (hasOutletTemplate) {\n Ember.run(() => {\n toplevelView.setOutletState(outletState);\n });\n }\n\n context.render = function (template) {\n if (!template) {\n throw new Error('in a component integration test you must pass a template to `render()`');\n }\n\n if (Ember.isArray(template)) {\n template = template.join('');\n }\n\n if (typeof template === 'string') {\n template = Ember.Handlebars.compile(template);\n }\n\n var templateFullName = 'template:-undertest-' + ++templateId;\n this.registry.register(templateFullName, template);\n var stateToRender = {\n owner: getOwnerFromModule(module),\n into: undefined,\n outlet: 'main',\n name: 'index',\n controller: module.context,\n ViewClass: undefined,\n template: lookupTemplateFromModule(module, templateFullName),\n outlets: {}\n };\n\n if (hasOutletTemplate) {\n stateToRender.name = 'index';\n outletState.outlets.main = {\n render: stateToRender,\n outlets: {}\n };\n } else {\n stateToRender.name = 'application';\n outletState = {\n render: stateToRender,\n outlets: {}\n };\n }\n\n Ember.run(() => {\n toplevelView.setOutletState(outletState);\n });\n\n if (!hasRendered) {\n Ember.run(module.component, 'appendTo', '#ember-testing');\n hasRendered = true;\n }\n\n if (EmberENV._APPLICATION_TEMPLATE_WRAPPER !== false) {\n // ensure the element is based on the wrapping toplevel view\n // Ember still wraps the main application template with a\n // normal tagged view\n context._element = element = document.querySelector('#ember-testing > .ember-view');\n } else {\n context._element = element = document.querySelector('#ember-testing');\n }\n };\n\n context.$ = function (selector) {\n // emulates Ember internal behavor of `this.$` in a component\n // https://github.com/emberjs/ember.js/blob/v2.5.1/packages/ember-views/lib/views/states/has_element.js#L18\n return selector ? jQuery(selector, element) : jQuery(element);\n };\n\n context.set = function (key, value) {\n var ret = Ember.run(function () {\n return Ember.set(context, key, value);\n });\n\n if ((0, _hasEmberVersion.default)(2, 0)) {\n return ret;\n }\n };\n\n context.setProperties = function (hash) {\n var ret = Ember.run(function () {\n return Ember.setProperties(context, hash);\n });\n\n if ((0, _hasEmberVersion.default)(2, 0)) {\n return ret;\n }\n };\n\n context.get = function (key) {\n return Ember.get(context, key);\n };\n\n context.getProperties = function () {\n var args = Array.prototype.slice.call(arguments);\n return Ember.getProperties(context, args);\n };\n\n context.on = function (actionName, handler) {\n module.actionHooks[actionName] = handler;\n };\n\n context.send = function (actionName) {\n var hook = module.actionHooks[actionName];\n\n if (!hook) {\n throw new Error('integration testing template received unexpected action ' + actionName);\n }\n\n hook.apply(module.context, Array.prototype.slice.call(arguments, 1));\n };\n\n context.clearRender = function () {\n Ember.run(function () {\n toplevelView.setOutletState({\n render: {\n owner: module.container,\n into: undefined,\n outlet: 'main',\n name: 'application',\n controller: module.context,\n ViewClass: undefined,\n template: undefined\n },\n outlets: {}\n });\n });\n };\n }\n});","define(\"ember-test-helpers/legacy-0-6-x/test-module-for-model\", [\"exports\", \"require\", \"ember-test-helpers/legacy-0-6-x/test-module\"], function (_exports, _require, _testModule) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n class _default extends _testModule.default {\n constructor(modelName, description, callbacks) {\n super('model:' + modelName, description, callbacks);\n this.modelName = modelName;\n this.setupSteps.push(this.setupModel);\n }\n\n setupModel() {\n var container = this.container;\n var defaultSubject = this.defaultSubject;\n var callbacks = this.callbacks;\n var modelName = this.modelName;\n var adapterFactory = container.factoryFor ? container.factoryFor('adapter:application') : container.lookupFactory('adapter:application');\n\n if (!adapterFactory) {\n if (requirejs.entries['ember-data/adapters/json-api']) {\n adapterFactory = (0, _require.default)(\"ember-data/adapters/json-api\")['default'];\n } // when ember-data/adapters/json-api is provided via ember-cli shims\n // using Ember Data 1.x the actual JSONAPIAdapter isn't found, but the\n // above require statement returns a bizzaro object with only a `default`\n // property (circular reference actually)\n\n\n if (!adapterFactory || !adapterFactory.create) {\n adapterFactory = DS.JSONAPIAdapter || DS.FixtureAdapter;\n }\n\n var thingToRegisterWith = this.registry || this.container;\n thingToRegisterWith.register('adapter:application', adapterFactory);\n }\n\n callbacks.store = function () {\n var container = this.container;\n return container.lookup('service:store') || container.lookup('store:main');\n };\n\n if (callbacks.subject === defaultSubject) {\n callbacks.subject = function (options) {\n var container = this.container;\n return Ember.run(function () {\n var store = container.lookup('service:store') || container.lookup('store:main');\n return store.createRecord(modelName, options);\n });\n };\n }\n }\n\n }\n\n _exports.default = _default;\n});","define(\"ember-test-helpers/legacy-0-6-x/test-module\", [\"exports\", \"ember-test-helpers/legacy-0-6-x/abstract-test-module\", \"@ember/test-helpers\", \"ember-test-helpers/legacy-0-6-x/build-registry\", \"@ember/test-helpers/has-ember-version\"], function (_exports, _abstractTestModule, _testHelpers, _buildRegistry, _hasEmberVersion) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = void 0;\n\n class _default extends _abstractTestModule.default {\n constructor(subjectName, description, callbacks) {\n // Allow `description` to be omitted, in which case it should\n // default to `subjectName`\n if (!callbacks && typeof description === 'object') {\n callbacks = description;\n description = subjectName;\n }\n\n super(description || subjectName, callbacks);\n this.subjectName = subjectName;\n this.description = description || subjectName;\n this.resolver = this.callbacks.resolver || (0, _testHelpers.getResolver)();\n\n if (this.callbacks.integration && this.callbacks.needs) {\n throw new Error(\"cannot declare 'integration: true' and 'needs' in the same module\");\n }\n\n if (this.callbacks.integration) {\n this.initIntegration(callbacks);\n delete callbacks.integration;\n }\n\n this.initSubject();\n this.initNeeds();\n }\n\n initIntegration(options) {\n if (options.integration === 'legacy') {\n throw new Error(\"`integration: 'legacy'` is only valid for component tests.\");\n }\n\n this.isIntegration = true;\n }\n\n initSubject() {\n this.callbacks.subject = this.callbacks.subject || this.defaultSubject;\n }\n\n initNeeds() {\n this.needs = [this.subjectName];\n\n if (this.callbacks.needs) {\n this.needs = this.needs.concat(this.callbacks.needs);\n delete this.callbacks.needs;\n }\n }\n\n initSetupSteps() {\n this.setupSteps = [];\n this.contextualizedSetupSteps = [];\n\n if (this.callbacks.beforeSetup) {\n this.setupSteps.push(this.callbacks.beforeSetup);\n delete this.callbacks.beforeSetup;\n }\n\n this.setupSteps.push(this.setupContainer);\n this.setupSteps.push(this.setupContext);\n this.setupSteps.push(this.setupTestElements);\n this.setupSteps.push(this.setupAJAXListeners);\n this.setupSteps.push(this.setupPromiseListeners);\n\n if (this.callbacks.setup) {\n this.contextualizedSetupSteps.push(this.callbacks.setup);\n delete this.callbacks.setup;\n }\n }\n\n initTeardownSteps() {\n this.teardownSteps = [];\n this.contextualizedTeardownSteps = [];\n\n if (this.callbacks.teardown) {\n this.contextualizedTeardownSteps.push(this.callbacks.teardown);\n delete this.callbacks.teardown;\n }\n\n this.teardownSteps.push(this.teardownSubject);\n this.teardownSteps.push(this.teardownContainer);\n this.teardownSteps.push(this.teardownContext);\n this.teardownSteps.push(this.teardownTestElements);\n this.teardownSteps.push(this.teardownAJAXListeners);\n this.teardownSteps.push(this.teardownPromiseListeners);\n\n if (this.callbacks.afterTeardown) {\n this.teardownSteps.push(this.callbacks.afterTeardown);\n delete this.callbacks.afterTeardown;\n }\n }\n\n setupContainer() {\n if (this.isIntegration || this.isLegacy) {\n this._setupIntegratedContainer();\n } else {\n this._setupIsolatedContainer();\n }\n }\n\n setupContext() {\n var subjectName = this.subjectName;\n var container = this.container;\n\n var factory = function () {\n return container.factoryFor ? container.factoryFor(subjectName) : container.lookupFactory(subjectName);\n };\n\n super.setupContext({\n container: this.container,\n registry: this.registry,\n factory: factory,\n\n register() {\n var target = this.registry || this.container;\n return target.register.apply(target, arguments);\n }\n\n });\n\n if (Ember.setOwner) {\n Ember.setOwner(this.context, this.container.owner);\n }\n\n this.setupInject();\n }\n\n setupInject() {\n var module = this;\n var context = this.context;\n\n if (Ember.inject) {\n var keys = (Object.keys || keys)(Ember.inject);\n keys.forEach(function (typeName) {\n context.inject[typeName] = function (name, opts) {\n var alias = opts && opts.as || name;\n Ember.run(function () {\n Ember.set(context, alias, module.container.lookup(typeName + ':' + name));\n });\n };\n });\n }\n }\n\n teardownSubject() {\n var subject = this.cache.subject;\n\n if (subject) {\n Ember.run(function () {\n Ember.tryInvoke(subject, 'destroy');\n });\n }\n }\n\n teardownContainer() {\n var container = this.container;\n Ember.run(function () {\n container.destroy();\n });\n }\n\n defaultSubject(options, factory) {\n return factory.create(options);\n } // allow arbitrary named factories, like rspec let\n\n\n contextualizeCallbacks() {\n var callbacks = this.callbacks;\n var context = this.context;\n this.cache = this.cache || {};\n this.cachedCalls = this.cachedCalls || {};\n var keys = (Object.keys || keys)(callbacks);\n var keysLength = keys.length;\n\n if (keysLength) {\n var deprecatedContext = this._buildDeprecatedContext(this, context);\n\n for (var i = 0; i < keysLength; i++) {\n this._contextualizeCallback(context, keys[i], deprecatedContext);\n }\n }\n }\n\n _contextualizeCallback(context, key, callbackContext) {\n var _this = this;\n\n var callbacks = this.callbacks;\n var factory = context.factory;\n\n context[key] = function (options) {\n if (_this.cachedCalls[key]) {\n return _this.cache[key];\n }\n\n var result = callbacks[key].call(callbackContext, options, factory());\n _this.cache[key] = result;\n _this.cachedCalls[key] = true;\n return result;\n };\n }\n /*\n Builds a version of the passed in context that contains deprecation warnings\n for accessing properties that exist on the module.\n */\n\n\n _buildDeprecatedContext(module, context) {\n var deprecatedContext = Object.create(context);\n var keysForDeprecation = Object.keys(module);\n\n for (var i = 0, l = keysForDeprecation.length; i < l; i++) {\n this._proxyDeprecation(module, deprecatedContext, keysForDeprecation[i]);\n }\n\n return deprecatedContext;\n }\n /*\n Defines a key on an object to act as a proxy for deprecating the original.\n */\n\n\n _proxyDeprecation(obj, proxy, key) {\n if (typeof proxy[key] === 'undefined') {\n Object.defineProperty(proxy, key, {\n get() {\n (true && !(false) && Ember.deprecate('Accessing the test module property \"' + key + '\" from a callback is deprecated.', false, {\n id: 'ember-test-helpers.test-module.callback-context',\n until: '0.6.0'\n }));\n return obj[key];\n }\n\n });\n }\n }\n\n _setupContainer(isolated) {\n var resolver = this.resolver;\n var items = (0, _buildRegistry.default)(!isolated ? resolver : Object.create(resolver, {\n resolve: {\n value() {}\n\n }\n }));\n this.container = items.container;\n this.registry = items.registry;\n\n if ((0, _hasEmberVersion.default)(1, 13)) {\n var thingToRegisterWith = this.registry || this.container;\n var router = resolver.resolve('router:main');\n router = router || Ember.Router.extend();\n thingToRegisterWith.register('router:main', router);\n }\n }\n\n _setupIsolatedContainer() {\n var resolver = this.resolver;\n\n this._setupContainer(true);\n\n var thingToRegisterWith = this.registry || this.container;\n\n for (var i = this.needs.length; i > 0; i--) {\n var fullName = this.needs[i - 1];\n var normalizedFullName = resolver.normalize(fullName);\n thingToRegisterWith.register(fullName, resolver.resolve(normalizedFullName));\n }\n\n if (!this.registry) {\n this.container.resolver = function () {};\n }\n }\n\n _setupIntegratedContainer() {\n this._setupContainer();\n }\n\n }\n\n _exports.default = _default;\n});","define(\"ember-test-helpers/wait\", [\"exports\", \"@ember/test-helpers/settled\", \"@ember/test-helpers\"], function (_exports, _settled, _testHelpers) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = wait;\n Object.defineProperty(_exports, \"_setupAJAXHooks\", {\n enumerable: true,\n get: function () {\n return _settled._setupAJAXHooks;\n }\n });\n Object.defineProperty(_exports, \"_teardownAJAXHooks\", {\n enumerable: true,\n get: function () {\n return _settled._teardownAJAXHooks;\n }\n });\n\n /**\n Returns a promise that resolves when in a settled state (see `isSettled` for\n a definition of \"settled state\").\n \n @private\n @deprecated\n @param {Object} [options={}] the options to be used for waiting\n @param {boolean} [options.waitForTimers=true] should timers be waited upon\n @param {boolean} [options.waitForAjax=true] should $.ajax requests be waited upon\n @param {boolean} [options.waitForWaiters=true] should test waiters be waited upon\n @returns {Promise} resolves when settled\n */\n function wait(options = {}) {\n if (typeof options !== 'object' || options === null) {\n options = {};\n }\n\n return (0, _testHelpers.waitUntil)(() => {\n let waitForTimers = 'waitForTimers' in options ? options.waitForTimers : true;\n let waitForAJAX = 'waitForAJAX' in options ? options.waitForAJAX : true;\n let waitForWaiters = 'waitForWaiters' in options ? options.waitForWaiters : true;\n let {\n hasPendingTimers,\n hasRunLoop,\n hasPendingRequests,\n hasPendingWaiters\n } = (0, _testHelpers.getSettledState)();\n\n if (waitForTimers && (hasPendingTimers || hasRunLoop)) {\n return false;\n }\n\n if (waitForAJAX && hasPendingRequests) {\n return false;\n }\n\n if (waitForWaiters && hasPendingWaiters) {\n return false;\n }\n\n return true;\n }, {\n timeout: Infinity\n });\n }\n});","define('qunit-dom', [], function() {\n return {};\n});\n","define(\"qunit/index\", [\"exports\"], function (_exports) {\n \"use strict\";\n\n Object.defineProperty(_exports, \"__esModule\", {\n value: true\n });\n _exports.default = _exports.todo = _exports.only = _exports.skip = _exports.test = _exports.module = void 0;\n\n /* globals QUnit */\n var module = QUnit.module;\n _exports.module = module;\n var test = QUnit.test;\n _exports.test = test;\n var skip = QUnit.skip;\n _exports.skip = skip;\n var only = QUnit.only;\n _exports.only = only;\n var todo = QUnit.todo;\n _exports.todo = todo;\n var _default = QUnit;\n _exports.default = _default;\n});","runningTests = true;\n\nif (window.Testem) {\n window.Testem.hookIntoTestFramework();\n}\n\n\n"],"names":[],"mappings":"AAAA;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpUA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;AC1IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACl/MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC93CA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtSA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChEA;AACA;AACA;;ACFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;","file":"test-support.js"} \ No newline at end of file diff --git a/test-packages/my-app-ember-exam/test-dist/assets/tests.js b/test-packages/my-app-ember-exam/test-dist/assets/tests.js new file mode 100644 index 00000000..e2c7fed9 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/tests.js @@ -0,0 +1,1045 @@ +'use strict'; + +define("my-app-ember-exam/tests/lint/app.lint-test", [], function () { + "use strict"; + + function cov_hjcp1feq2() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/app.lint-test.js"; + var hash = "94196fc28a26e9ce0f530e3dcaa21db37a8b9636"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/app.lint-test.js", + statementMap: { + "0": { + start: { + line: 1, + column: 0 + }, + end: { + line: 1, + column: 29 + } + }, + "1": { + start: { + line: 3, + column: 0 + }, + end: { + line: 6, + column: 3 + } + }, + "2": { + start: { + line: 4, + column: 2 + }, + end: { + line: 4, + column: 19 + } + }, + "3": { + start: { + line: 5, + column: 2 + }, + end: { + line: 5, + column: 51 + } + }, + "4": { + start: { + line: 8, + column: 0 + }, + end: { + line: 11, + column: 3 + } + }, + "5": { + start: { + line: 9, + column: 2 + }, + end: { + line: 9, + column: 19 + } + }, + "6": { + start: { + line: 10, + column: 2 + }, + end: { + line: 10, + column: 54 + } + }, + "7": { + start: { + line: 13, + column: 0 + }, + end: { + line: 16, + column: 3 + } + }, + "8": { + start: { + line: 14, + column: 2 + }, + end: { + line: 14, + column: 19 + } + }, + "9": { + start: { + line: 15, + column: 2 + }, + end: { + line: 15, + column: 69 + } + }, + "10": { + start: { + line: 18, + column: 0 + }, + end: { + line: 21, + column: 3 + } + }, + "11": { + start: { + line: 19, + column: 2 + }, + end: { + line: 19, + column: 19 + } + }, + "12": { + start: { + line: 20, + column: 2 + }, + end: { + line: 20, + column: 77 + } + }, + "13": { + start: { + line: 23, + column: 0 + }, + end: { + line: 26, + column: 3 + } + }, + "14": { + start: { + line: 24, + column: 2 + }, + end: { + line: 24, + column: 19 + } + }, + "15": { + start: { + line: 25, + column: 2 + }, + end: { + line: 25, + column: 75 + } + }, + "16": { + start: { + line: 28, + column: 0 + }, + end: { + line: 31, + column: 3 + } + }, + "17": { + start: { + line: 29, + column: 2 + }, + end: { + line: 29, + column: 19 + } + }, + "18": { + start: { + line: 30, + column: 2 + }, + end: { + line: 30, + column: 71 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 3, + column: 21 + }, + end: { + line: 3, + column: 22 + } + }, + loc: { + start: { + line: 3, + column: 38 + }, + end: { + line: 6, + column: 1 + } + }, + line: 3 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 8, + column: 24 + }, + end: { + line: 8, + column: 25 + } + }, + loc: { + start: { + line: 8, + column: 41 + }, + end: { + line: 11, + column: 1 + } + }, + line: 8 + }, + "2": { + name: "(anonymous_2)", + decl: { + start: { + line: 13, + column: 39 + }, + end: { + line: 13, + column: 40 + } + }, + loc: { + start: { + line: 13, + column: 56 + }, + end: { + line: 16, + column: 1 + } + }, + line: 13 + }, + "3": { + name: "(anonymous_3)", + decl: { + start: { + line: 18, + column: 47 + }, + end: { + line: 18, + column: 48 + } + }, + loc: { + start: { + line: 18, + column: 64 + }, + end: { + line: 21, + column: 1 + } + }, + line: 18 + }, + "4": { + name: "(anonymous_4)", + decl: { + start: { + line: 23, + column: 45 + }, + end: { + line: 23, + column: 46 + } + }, + loc: { + start: { + line: 23, + column: 62 + }, + end: { + line: 26, + column: 1 + } + }, + line: 23 + }, + "5": { + name: "(anonymous_5)", + decl: { + start: { + line: 28, + column: 41 + }, + end: { + line: 28, + column: 42 + } + }, + loc: { + start: { + line: 28, + column: 58 + }, + end: { + line: 31, + column: 1 + } + }, + line: 28 + } + }, + branchMap: {}, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0, + "7": 0, + "8": 0, + "9": 0, + "10": 0, + "11": 0, + "12": 0, + "13": 0, + "14": 0, + "15": 0, + "16": 0, + "17": 0, + "18": 0 + }, + f: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0 + }, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "94196fc28a26e9ce0f530e3dcaa21db37a8b9636" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_hjcp1feq2 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_hjcp1feq2(); + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + cov_hjcp1feq2().s[0]++; + QUnit.module('ESLint | app'); + cov_hjcp1feq2().s[1]++; + QUnit.test('app.js', function (assert) { + cov_hjcp1feq2().f[0]++; + cov_hjcp1feq2().s[2]++; + assert.expect(1); + cov_hjcp1feq2().s[3]++; + assert.ok(true, 'app.js should pass ESLint\n\n'); + }); + cov_hjcp1feq2().s[4]++; + QUnit.test('router.js', function (assert) { + cov_hjcp1feq2().f[1]++; + cov_hjcp1feq2().s[5]++; + assert.expect(1); + cov_hjcp1feq2().s[6]++; + assert.ok(true, 'router.js should pass ESLint\n\n'); + }); + cov_hjcp1feq2().s[7]++; + QUnit.test('utils/my-covered-util.js', function (assert) { + cov_hjcp1feq2().f[2]++; + cov_hjcp1feq2().s[8]++; + assert.expect(1); + cov_hjcp1feq2().s[9]++; + assert.ok(true, 'utils/my-covered-util.js should pass ESLint\n\n'); + }); + cov_hjcp1feq2().s[10]++; + QUnit.test('utils/my-uncovered-util-three.js', function (assert) { + cov_hjcp1feq2().f[3]++; + cov_hjcp1feq2().s[11]++; + assert.expect(1); + cov_hjcp1feq2().s[12]++; + assert.ok(true, 'utils/my-uncovered-util-three.js should pass ESLint\n\n'); + }); + cov_hjcp1feq2().s[13]++; + QUnit.test('utils/my-uncovered-util-two.js', function (assert) { + cov_hjcp1feq2().f[4]++; + cov_hjcp1feq2().s[14]++; + assert.expect(1); + cov_hjcp1feq2().s[15]++; + assert.ok(true, 'utils/my-uncovered-util-two.js should pass ESLint\n\n'); + }); + cov_hjcp1feq2().s[16]++; + QUnit.test('utils/my-uncovered-util.js', function (assert) { + cov_hjcp1feq2().f[5]++; + cov_hjcp1feq2().s[17]++; + assert.expect(1); + cov_hjcp1feq2().s[18]++; + assert.ok(true, 'utils/my-uncovered-util.js should pass ESLint\n\n'); + }); +}); +define("my-app-ember-exam/tests/lint/templates.template.lint-test", [], function () { + "use strict"; + + function cov_25652r6sdl() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/templates.template.lint-test.js"; + var hash = "2a132a1fcad998b21ee99fd86749a2da6717fcf5"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/templates.template.lint-test.js", + statementMap: { + "0": { + start: { + line: 1, + column: 0 + }, + end: { + line: 1, + column: 29 + } + }, + "1": { + start: { + line: 3, + column: 0 + }, + end: { + line: 6, + column: 3 + } + }, + "2": { + start: { + line: 4, + column: 2 + }, + end: { + line: 4, + column: 19 + } + }, + "3": { + start: { + line: 5, + column: 2 + }, + end: { + line: 5, + column: 95 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 3, + column: 58 + }, + end: { + line: 3, + column: 59 + } + }, + loc: { + start: { + line: 3, + column: 75 + }, + end: { + line: 6, + column: 1 + } + }, + line: 3 + } + }, + branchMap: {}, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0 + }, + f: { + "0": 0 + }, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "2a132a1fcad998b21ee99fd86749a2da6717fcf5" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_25652r6sdl = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_25652r6sdl(); + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + cov_25652r6sdl().s[0]++; + QUnit.module('TemplateLint'); + cov_25652r6sdl().s[1]++; + QUnit.test('my-app-ember-exam/templates/application.hbs', function (assert) { + cov_25652r6sdl().f[0]++; + cov_25652r6sdl().s[2]++; + assert.expect(1); + cov_25652r6sdl().s[3]++; + assert.ok(true, 'my-app-ember-exam/templates/application.hbs should pass TemplateLint.\n\n'); + }); +}); +define("my-app-ember-exam/tests/lint/tests.lint-test", [], function () { + "use strict"; + + function cov_ihj38gp30() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/tests.lint-test.js"; + var hash = "39fccca0b128460944f7d953584d5a7614df5b04"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/tests.lint-test.js", + statementMap: { + "0": { + start: { + line: 1, + column: 0 + }, + end: { + line: 1, + column: 31 + } + }, + "1": { + start: { + line: 3, + column: 0 + }, + end: { + line: 6, + column: 3 + } + }, + "2": { + start: { + line: 4, + column: 2 + }, + end: { + line: 4, + column: 19 + } + }, + "3": { + start: { + line: 5, + column: 2 + }, + end: { + line: 5, + column: 59 + } + }, + "4": { + start: { + line: 8, + column: 0 + }, + end: { + line: 11, + column: 3 + } + }, + "5": { + start: { + line: 9, + column: 2 + }, + end: { + line: 9, + column: 19 + } + }, + "6": { + start: { + line: 10, + column: 2 + }, + end: { + line: 10, + column: 79 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 3, + column: 29 + }, + end: { + line: 3, + column: 30 + } + }, + loc: { + start: { + line: 3, + column: 46 + }, + end: { + line: 6, + column: 1 + } + }, + line: 3 + }, + "1": { + name: "(anonymous_1)", + decl: { + start: { + line: 8, + column: 49 + }, + end: { + line: 8, + column: 50 + } + }, + loc: { + start: { + line: 8, + column: 66 + }, + end: { + line: 11, + column: 1 + } + }, + line: 8 + } + }, + branchMap: {}, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0, + "5": 0, + "6": 0 + }, + f: { + "0": 0, + "1": 0 + }, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "39fccca0b128460944f7d953584d5a7614df5b04" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_ihj38gp30 = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_ihj38gp30(); + 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f + + cov_ihj38gp30().s[0]++; + QUnit.module('ESLint | tests'); + cov_ihj38gp30().s[1]++; + QUnit.test('test-helper.js', function (assert) { + cov_ihj38gp30().f[0]++; + cov_ihj38gp30().s[2]++; + assert.expect(1); + cov_ihj38gp30().s[3]++; + assert.ok(true, 'test-helper.js should pass ESLint\n\n'); + }); + cov_ihj38gp30().s[4]++; + QUnit.test('unit/utils/my-covered-util-test.js', function (assert) { + cov_ihj38gp30().f[1]++; + cov_ihj38gp30().s[5]++; + assert.expect(1); + cov_ihj38gp30().s[6]++; + assert.ok(true, 'unit/utils/my-covered-util-test.js should pass ESLint\n\n'); + }); +}); +define("my-app-ember-exam/tests/test-helper", ["my-app-ember-exam/app", "my-app-ember-exam/config/environment", "@ember/test-helpers", "ember-qunit", "qunit", "ember-cli-code-coverage/test-support"], function (_app, _environment, _testHelpers, _emberQunit, _qunit, _testSupport) { + "use strict"; + + function cov_266fd5k72d() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/test-helper.js"; + var hash = "321724833ea8bf48b6abb82d6700656fff43d7ec"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/test-helper.js", + statementMap: { + "0": { + start: { + line: 8, + column: 0 + }, + end: { + line: 11, + column: 3 + } + }, + "1": { + start: { + line: 9, + column: 2 + }, + end: { + line: 9, + column: 27 + } + }, + "2": { + start: { + line: 10, + column: 2 + }, + end: { + line: 10, + column: 23 + } + }, + "3": { + start: { + line: 13, + column: 0 + }, + end: { + line: 13, + column: 47 + } + }, + "4": { + start: { + line: 15, + column: 0 + }, + end: { + line: 15, + column: 8 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 8, + column: 11 + }, + end: { + line: 8, + column: 12 + } + }, + loc: { + start: { + line: 8, + column: 28 + }, + end: { + line: 11, + column: 1 + } + }, + line: 8 + } + }, + branchMap: {}, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0, + "4": 0 + }, + f: { + "0": 0 + }, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "321724833ea8bf48b6abb82d6700656fff43d7ec" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_266fd5k72d = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_266fd5k72d(); + 0; //eaimeta@70e063a35619d71f0,"my-app-ember-exam/app",0,"my-app-ember-exam/config/environment",0,"@ember/test-helpers",0,"ember-qunit",0,"qunit",0,"ember-cli-code-coverage/test-support"eaimeta@70e063a35619d71f + + cov_266fd5k72d().s[0]++; + + _qunit.default.done(async function () { + cov_266fd5k72d().f[0]++; + cov_266fd5k72d().s[1]++; + (0, _testSupport.forceModulesToBeLoaded)(); + cov_266fd5k72d().s[2]++; + await (0, _testSupport.sendCoverage)(); + }); + + cov_266fd5k72d().s[3]++; + (0, _testHelpers.setApplication)(_app.default.create(_environment.default.APP)); + cov_266fd5k72d().s[4]++; + (0, _emberQunit.start)(); +}); +define("my-app-ember-exam/tests/unit/utils/my-covered-util-test", ["my-app-ember-exam/utils/my-covered-util", "qunit"], function (_myCoveredUtil, _qunit) { + "use strict"; + + function cov_2avpex2v8x() { + var path = "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/unit/utils/my-covered-util-test.js"; + var hash = "7a9fa6a1100b03edb2d7dbf3827964b206f442d0"; + var global = new Function("return this")(); + var gcv = "__coverage__"; + var coverageData = { + path: "/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/unit/utils/my-covered-util-test.js", + statementMap: { + "0": { + start: { + line: 4, + column: 0 + }, + end: { + line: 4, + column: 43 + } + }, + "1": { + start: { + line: 7, + column: 0 + }, + end: { + line: 10, + column: 3 + } + }, + "2": { + start: { + line: 8, + column: 15 + }, + end: { + line: 8, + column: 30 + } + }, + "3": { + start: { + line: 9, + column: 2 + }, + end: { + line: 9, + column: 20 + } + } + }, + fnMap: { + "0": { + name: "(anonymous_0)", + decl: { + start: { + line: 7, + column: 17 + }, + end: { + line: 7, + column: 18 + } + }, + loc: { + start: { + line: 7, + column: 35 + }, + end: { + line: 10, + column: 1 + } + }, + line: 7 + } + }, + branchMap: {}, + s: { + "0": 0, + "1": 0, + "2": 0, + "3": 0 + }, + f: { + "0": 0 + }, + b: {}, + _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9", + hash: "7a9fa6a1100b03edb2d7dbf3827964b206f442d0" + }; + var coverage = global[gcv] || (global[gcv] = {}); + + if (!coverage[path] || coverage[path].hash !== hash) { + coverage[path] = coverageData; + } + + var actualCoverage = coverage[path]; + { + // @ts-ignore + cov_2avpex2v8x = function () { + return actualCoverage; + }; + } + return actualCoverage; + } + + cov_2avpex2v8x(); + 0; //eaimeta@70e063a35619d71f0,"my-app-ember-exam/utils/my-covered-util",0,"qunit"eaimeta@70e063a35619d71f + + cov_2avpex2v8x().s[0]++; + (0, _qunit.module)('Unit | Utility | my covered util'); // Replace this with your real tests. + + cov_2avpex2v8x().s[1]++; + (0, _qunit.test)('it works', function (assert) { + cov_2avpex2v8x().f[0]++; + let result = (cov_2avpex2v8x().s[2]++, (0, _myCoveredUtil.default)()); + cov_2avpex2v8x().s[3]++; + assert.ok(result); + }); +}); +define('my-app-ember-exam/config/environment', [], function() { + var prefix = 'my-app-ember-exam'; +try { + var metaName = prefix + '/config/environment'; + var rawConfig = document.querySelector('meta[name="' + metaName + '"]').getAttribute('content'); + var config = JSON.parse(decodeURIComponent(rawConfig)); + + var exports = { 'default': config }; + + Object.defineProperty(exports, '__esModule', { value: true }); + + return exports; +} +catch(err) { + throw new Error('Could not read config from meta tag with name "' + metaName + '".'); +} + +}); + +require('my-app-ember-exam/tests/test-helper'); +EmberENV.TESTS_FILE_LOADED = true; +//# sourceMappingURL=tests.map diff --git a/test-packages/my-app-ember-exam/test-dist/assets/tests.map b/test-packages/my-app-ember-exam/test-dist/assets/tests.map new file mode 100644 index 00000000..790eec85 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/tests.map @@ -0,0 +1 @@ +{"version":3,"sources":["vendor/ember-cli/tests-prefix.js","my-app-ember-exam/tests/lint/app.lint-test.js","my-app-ember-exam/tests/lint/templates.template.lint-test.js","my-app-ember-exam/tests/lint/tests.lint-test.js","my-app-ember-exam/tests/test-helper.js","my-app-ember-exam/tests/unit/utils/my-covered-util-test.js","vendor/ember-cli/app-config.js","vendor/ember-cli/tests-suffix.js"],"sourcesContent":["'use strict';\n","define(\"my-app-ember-exam/tests/lint/app.lint-test\", [], function () {\n \"use strict\";\n\n function cov_hjcp1feq2() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/app.lint-test.js\";\n var hash = \"94196fc28a26e9ce0f530e3dcaa21db37a8b9636\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/app.lint-test.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 1,\n column: 0\n },\n end: {\n line: 1,\n column: 29\n }\n },\n \"1\": {\n start: {\n line: 3,\n column: 0\n },\n end: {\n line: 6,\n column: 3\n }\n },\n \"2\": {\n start: {\n line: 4,\n column: 2\n },\n end: {\n line: 4,\n column: 19\n }\n },\n \"3\": {\n start: {\n line: 5,\n column: 2\n },\n end: {\n line: 5,\n column: 51\n }\n },\n \"4\": {\n start: {\n line: 8,\n column: 0\n },\n end: {\n line: 11,\n column: 3\n }\n },\n \"5\": {\n start: {\n line: 9,\n column: 2\n },\n end: {\n line: 9,\n column: 19\n }\n },\n \"6\": {\n start: {\n line: 10,\n column: 2\n },\n end: {\n line: 10,\n column: 54\n }\n },\n \"7\": {\n start: {\n line: 13,\n column: 0\n },\n end: {\n line: 16,\n column: 3\n }\n },\n \"8\": {\n start: {\n line: 14,\n column: 2\n },\n end: {\n line: 14,\n column: 19\n }\n },\n \"9\": {\n start: {\n line: 15,\n column: 2\n },\n end: {\n line: 15,\n column: 69\n }\n },\n \"10\": {\n start: {\n line: 18,\n column: 0\n },\n end: {\n line: 21,\n column: 3\n }\n },\n \"11\": {\n start: {\n line: 19,\n column: 2\n },\n end: {\n line: 19,\n column: 19\n }\n },\n \"12\": {\n start: {\n line: 20,\n column: 2\n },\n end: {\n line: 20,\n column: 77\n }\n },\n \"13\": {\n start: {\n line: 23,\n column: 0\n },\n end: {\n line: 26,\n column: 3\n }\n },\n \"14\": {\n start: {\n line: 24,\n column: 2\n },\n end: {\n line: 24,\n column: 19\n }\n },\n \"15\": {\n start: {\n line: 25,\n column: 2\n },\n end: {\n line: 25,\n column: 75\n }\n },\n \"16\": {\n start: {\n line: 28,\n column: 0\n },\n end: {\n line: 31,\n column: 3\n }\n },\n \"17\": {\n start: {\n line: 29,\n column: 2\n },\n end: {\n line: 29,\n column: 19\n }\n },\n \"18\": {\n start: {\n line: 30,\n column: 2\n },\n end: {\n line: 30,\n column: 71\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"(anonymous_0)\",\n decl: {\n start: {\n line: 3,\n column: 21\n },\n end: {\n line: 3,\n column: 22\n }\n },\n loc: {\n start: {\n line: 3,\n column: 38\n },\n end: {\n line: 6,\n column: 1\n }\n },\n line: 3\n },\n \"1\": {\n name: \"(anonymous_1)\",\n decl: {\n start: {\n line: 8,\n column: 24\n },\n end: {\n line: 8,\n column: 25\n }\n },\n loc: {\n start: {\n line: 8,\n column: 41\n },\n end: {\n line: 11,\n column: 1\n }\n },\n line: 8\n },\n \"2\": {\n name: \"(anonymous_2)\",\n decl: {\n start: {\n line: 13,\n column: 39\n },\n end: {\n line: 13,\n column: 40\n }\n },\n loc: {\n start: {\n line: 13,\n column: 56\n },\n end: {\n line: 16,\n column: 1\n }\n },\n line: 13\n },\n \"3\": {\n name: \"(anonymous_3)\",\n decl: {\n start: {\n line: 18,\n column: 47\n },\n end: {\n line: 18,\n column: 48\n }\n },\n loc: {\n start: {\n line: 18,\n column: 64\n },\n end: {\n line: 21,\n column: 1\n }\n },\n line: 18\n },\n \"4\": {\n name: \"(anonymous_4)\",\n decl: {\n start: {\n line: 23,\n column: 45\n },\n end: {\n line: 23,\n column: 46\n }\n },\n loc: {\n start: {\n line: 23,\n column: 62\n },\n end: {\n line: 26,\n column: 1\n }\n },\n line: 23\n },\n \"5\": {\n name: \"(anonymous_5)\",\n decl: {\n start: {\n line: 28,\n column: 41\n },\n end: {\n line: 28,\n column: 42\n }\n },\n loc: {\n start: {\n line: 28,\n column: 58\n },\n end: {\n line: 31,\n column: 1\n }\n },\n line: 28\n }\n },\n branchMap: {},\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0,\n \"6\": 0,\n \"7\": 0,\n \"8\": 0,\n \"9\": 0,\n \"10\": 0,\n \"11\": 0,\n \"12\": 0,\n \"13\": 0,\n \"14\": 0,\n \"15\": 0,\n \"16\": 0,\n \"17\": 0,\n \"18\": 0\n },\n f: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0\n },\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"94196fc28a26e9ce0f530e3dcaa21db37a8b9636\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_hjcp1feq2 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_hjcp1feq2();\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n cov_hjcp1feq2().s[0]++;\n QUnit.module('ESLint | app');\n cov_hjcp1feq2().s[1]++;\n QUnit.test('app.js', function (assert) {\n cov_hjcp1feq2().f[0]++;\n cov_hjcp1feq2().s[2]++;\n assert.expect(1);\n cov_hjcp1feq2().s[3]++;\n assert.ok(true, 'app.js should pass ESLint\\n\\n');\n });\n cov_hjcp1feq2().s[4]++;\n QUnit.test('router.js', function (assert) {\n cov_hjcp1feq2().f[1]++;\n cov_hjcp1feq2().s[5]++;\n assert.expect(1);\n cov_hjcp1feq2().s[6]++;\n assert.ok(true, 'router.js should pass ESLint\\n\\n');\n });\n cov_hjcp1feq2().s[7]++;\n QUnit.test('utils/my-covered-util.js', function (assert) {\n cov_hjcp1feq2().f[2]++;\n cov_hjcp1feq2().s[8]++;\n assert.expect(1);\n cov_hjcp1feq2().s[9]++;\n assert.ok(true, 'utils/my-covered-util.js should pass ESLint\\n\\n');\n });\n cov_hjcp1feq2().s[10]++;\n QUnit.test('utils/my-uncovered-util-three.js', function (assert) {\n cov_hjcp1feq2().f[3]++;\n cov_hjcp1feq2().s[11]++;\n assert.expect(1);\n cov_hjcp1feq2().s[12]++;\n assert.ok(true, 'utils/my-uncovered-util-three.js should pass ESLint\\n\\n');\n });\n cov_hjcp1feq2().s[13]++;\n QUnit.test('utils/my-uncovered-util-two.js', function (assert) {\n cov_hjcp1feq2().f[4]++;\n cov_hjcp1feq2().s[14]++;\n assert.expect(1);\n cov_hjcp1feq2().s[15]++;\n assert.ok(true, 'utils/my-uncovered-util-two.js should pass ESLint\\n\\n');\n });\n cov_hjcp1feq2().s[16]++;\n QUnit.test('utils/my-uncovered-util.js', function (assert) {\n cov_hjcp1feq2().f[5]++;\n cov_hjcp1feq2().s[17]++;\n assert.expect(1);\n cov_hjcp1feq2().s[18]++;\n assert.ok(true, 'utils/my-uncovered-util.js should pass ESLint\\n\\n');\n });\n});","define(\"my-app-ember-exam/tests/lint/templates.template.lint-test\", [], function () {\n \"use strict\";\n\n function cov_25652r6sdl() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/templates.template.lint-test.js\";\n var hash = \"2a132a1fcad998b21ee99fd86749a2da6717fcf5\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/templates.template.lint-test.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 1,\n column: 0\n },\n end: {\n line: 1,\n column: 29\n }\n },\n \"1\": {\n start: {\n line: 3,\n column: 0\n },\n end: {\n line: 6,\n column: 3\n }\n },\n \"2\": {\n start: {\n line: 4,\n column: 2\n },\n end: {\n line: 4,\n column: 19\n }\n },\n \"3\": {\n start: {\n line: 5,\n column: 2\n },\n end: {\n line: 5,\n column: 95\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"(anonymous_0)\",\n decl: {\n start: {\n line: 3,\n column: 58\n },\n end: {\n line: 3,\n column: 59\n }\n },\n loc: {\n start: {\n line: 3,\n column: 75\n },\n end: {\n line: 6,\n column: 1\n }\n },\n line: 3\n }\n },\n branchMap: {},\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0\n },\n f: {\n \"0\": 0\n },\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"2a132a1fcad998b21ee99fd86749a2da6717fcf5\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_25652r6sdl = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_25652r6sdl();\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n cov_25652r6sdl().s[0]++;\n QUnit.module('TemplateLint');\n cov_25652r6sdl().s[1]++;\n QUnit.test('my-app-ember-exam/templates/application.hbs', function (assert) {\n cov_25652r6sdl().f[0]++;\n cov_25652r6sdl().s[2]++;\n assert.expect(1);\n cov_25652r6sdl().s[3]++;\n assert.ok(true, 'my-app-ember-exam/templates/application.hbs should pass TemplateLint.\\n\\n');\n });\n});","define(\"my-app-ember-exam/tests/lint/tests.lint-test\", [], function () {\n \"use strict\";\n\n function cov_ihj38gp30() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/tests.lint-test.js\";\n var hash = \"39fccca0b128460944f7d953584d5a7614df5b04\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/lint/tests.lint-test.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 1,\n column: 0\n },\n end: {\n line: 1,\n column: 31\n }\n },\n \"1\": {\n start: {\n line: 3,\n column: 0\n },\n end: {\n line: 6,\n column: 3\n }\n },\n \"2\": {\n start: {\n line: 4,\n column: 2\n },\n end: {\n line: 4,\n column: 19\n }\n },\n \"3\": {\n start: {\n line: 5,\n column: 2\n },\n end: {\n line: 5,\n column: 59\n }\n },\n \"4\": {\n start: {\n line: 8,\n column: 0\n },\n end: {\n line: 11,\n column: 3\n }\n },\n \"5\": {\n start: {\n line: 9,\n column: 2\n },\n end: {\n line: 9,\n column: 19\n }\n },\n \"6\": {\n start: {\n line: 10,\n column: 2\n },\n end: {\n line: 10,\n column: 79\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"(anonymous_0)\",\n decl: {\n start: {\n line: 3,\n column: 29\n },\n end: {\n line: 3,\n column: 30\n }\n },\n loc: {\n start: {\n line: 3,\n column: 46\n },\n end: {\n line: 6,\n column: 1\n }\n },\n line: 3\n },\n \"1\": {\n name: \"(anonymous_1)\",\n decl: {\n start: {\n line: 8,\n column: 49\n },\n end: {\n line: 8,\n column: 50\n }\n },\n loc: {\n start: {\n line: 8,\n column: 66\n },\n end: {\n line: 11,\n column: 1\n }\n },\n line: 8\n }\n },\n branchMap: {},\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0,\n \"5\": 0,\n \"6\": 0\n },\n f: {\n \"0\": 0,\n \"1\": 0\n },\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"39fccca0b128460944f7d953584d5a7614df5b04\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_ihj38gp30 = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_ihj38gp30();\n 0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n\n cov_ihj38gp30().s[0]++;\n QUnit.module('ESLint | tests');\n cov_ihj38gp30().s[1]++;\n QUnit.test('test-helper.js', function (assert) {\n cov_ihj38gp30().f[0]++;\n cov_ihj38gp30().s[2]++;\n assert.expect(1);\n cov_ihj38gp30().s[3]++;\n assert.ok(true, 'test-helper.js should pass ESLint\\n\\n');\n });\n cov_ihj38gp30().s[4]++;\n QUnit.test('unit/utils/my-covered-util-test.js', function (assert) {\n cov_ihj38gp30().f[1]++;\n cov_ihj38gp30().s[5]++;\n assert.expect(1);\n cov_ihj38gp30().s[6]++;\n assert.ok(true, 'unit/utils/my-covered-util-test.js should pass ESLint\\n\\n');\n });\n});","define(\"my-app-ember-exam/tests/test-helper\", [\"my-app-ember-exam/app\", \"my-app-ember-exam/config/environment\", \"@ember/test-helpers\", \"ember-qunit\", \"qunit\", \"ember-cli-code-coverage/test-support\"], function (_app, _environment, _testHelpers, _emberQunit, _qunit, _testSupport) {\n \"use strict\";\n\n function cov_266fd5k72d() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/test-helper.js\";\n var hash = \"321724833ea8bf48b6abb82d6700656fff43d7ec\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/test-helper.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 8,\n column: 0\n },\n end: {\n line: 11,\n column: 3\n }\n },\n \"1\": {\n start: {\n line: 9,\n column: 2\n },\n end: {\n line: 9,\n column: 27\n }\n },\n \"2\": {\n start: {\n line: 10,\n column: 2\n },\n end: {\n line: 10,\n column: 23\n }\n },\n \"3\": {\n start: {\n line: 13,\n column: 0\n },\n end: {\n line: 13,\n column: 47\n }\n },\n \"4\": {\n start: {\n line: 15,\n column: 0\n },\n end: {\n line: 15,\n column: 8\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"(anonymous_0)\",\n decl: {\n start: {\n line: 8,\n column: 11\n },\n end: {\n line: 8,\n column: 12\n }\n },\n loc: {\n start: {\n line: 8,\n column: 28\n },\n end: {\n line: 11,\n column: 1\n }\n },\n line: 8\n }\n },\n branchMap: {},\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0,\n \"4\": 0\n },\n f: {\n \"0\": 0\n },\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"321724833ea8bf48b6abb82d6700656fff43d7ec\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_266fd5k72d = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_266fd5k72d();\n 0; //eaimeta@70e063a35619d71f0,\"my-app-ember-exam/app\",0,\"my-app-ember-exam/config/environment\",0,\"@ember/test-helpers\",0,\"ember-qunit\",0,\"qunit\",0,\"ember-cli-code-coverage/test-support\"eaimeta@70e063a35619d71f\n\n cov_266fd5k72d().s[0]++;\n\n _qunit.default.done(async function () {\n cov_266fd5k72d().f[0]++;\n cov_266fd5k72d().s[1]++;\n (0, _testSupport.forceModulesToBeLoaded)();\n cov_266fd5k72d().s[2]++;\n await (0, _testSupport.sendCoverage)();\n });\n\n cov_266fd5k72d().s[3]++;\n (0, _testHelpers.setApplication)(_app.default.create(_environment.default.APP));\n cov_266fd5k72d().s[4]++;\n (0, _emberQunit.start)();\n});","define(\"my-app-ember-exam/tests/unit/utils/my-covered-util-test\", [\"my-app-ember-exam/utils/my-covered-util\", \"qunit\"], function (_myCoveredUtil, _qunit) {\n \"use strict\";\n\n function cov_2avpex2v8x() {\n var path = \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/unit/utils/my-covered-util-test.js\";\n var hash = \"7a9fa6a1100b03edb2d7dbf3827964b206f442d0\";\n var global = new Function(\"return this\")();\n var gcv = \"__coverage__\";\n var coverageData = {\n path: \"/Users/dlaird/projects/ember-cli-code-coverage/test-packages/my-app-ember-exam/my-app-ember-exam/tests/unit/utils/my-covered-util-test.js\",\n statementMap: {\n \"0\": {\n start: {\n line: 4,\n column: 0\n },\n end: {\n line: 4,\n column: 43\n }\n },\n \"1\": {\n start: {\n line: 7,\n column: 0\n },\n end: {\n line: 10,\n column: 3\n }\n },\n \"2\": {\n start: {\n line: 8,\n column: 15\n },\n end: {\n line: 8,\n column: 30\n }\n },\n \"3\": {\n start: {\n line: 9,\n column: 2\n },\n end: {\n line: 9,\n column: 20\n }\n }\n },\n fnMap: {\n \"0\": {\n name: \"(anonymous_0)\",\n decl: {\n start: {\n line: 7,\n column: 17\n },\n end: {\n line: 7,\n column: 18\n }\n },\n loc: {\n start: {\n line: 7,\n column: 35\n },\n end: {\n line: 10,\n column: 1\n }\n },\n line: 7\n }\n },\n branchMap: {},\n s: {\n \"0\": 0,\n \"1\": 0,\n \"2\": 0,\n \"3\": 0\n },\n f: {\n \"0\": 0\n },\n b: {},\n _coverageSchema: \"1a1c01bbd47fc00a2c39e90264f33305004495a9\",\n hash: \"7a9fa6a1100b03edb2d7dbf3827964b206f442d0\"\n };\n var coverage = global[gcv] || (global[gcv] = {});\n\n if (!coverage[path] || coverage[path].hash !== hash) {\n coverage[path] = coverageData;\n }\n\n var actualCoverage = coverage[path];\n {\n // @ts-ignore\n cov_2avpex2v8x = function () {\n return actualCoverage;\n };\n }\n return actualCoverage;\n }\n\n cov_2avpex2v8x();\n 0; //eaimeta@70e063a35619d71f0,\"my-app-ember-exam/utils/my-covered-util\",0,\"qunit\"eaimeta@70e063a35619d71f\n\n cov_2avpex2v8x().s[0]++;\n (0, _qunit.module)('Unit | Utility | my covered util'); // Replace this with your real tests.\n\n cov_2avpex2v8x().s[1]++;\n (0, _qunit.test)('it works', function (assert) {\n cov_2avpex2v8x().f[0]++;\n let result = (cov_2avpex2v8x().s[2]++, (0, _myCoveredUtil.default)());\n cov_2avpex2v8x().s[3]++;\n assert.ok(result);\n });\n});","define('my-app-ember-exam/config/environment', [], function() {\n var prefix = 'my-app-ember-exam';\ntry {\n var metaName = prefix + '/config/environment';\n var rawConfig = document.querySelector('meta[name=\"' + metaName + '\"]').getAttribute('content');\n var config = JSON.parse(decodeURIComponent(rawConfig));\n\n var exports = { 'default': config };\n\n Object.defineProperty(exports, '__esModule', { value: true });\n\n return exports;\n}\ncatch(err) {\n throw new Error('Could not read config from meta tag with name \"' + metaName + '\".');\n}\n\n});\n","require('my-app-ember-exam/tests/test-helper');\nEmberENV.TESTS_FILE_LOADED = true;\n"],"names":[],"mappings":"AAAA;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClcA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;","file":"tests.js"} \ No newline at end of file diff --git a/test-packages/my-app-ember-exam/test-dist/assets/vendor.css b/test-packages/my-app-ember-exam/test-dist/assets/vendor.css new file mode 100644 index 00000000..abac03bc --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/vendor.css @@ -0,0 +1,97 @@ +#ember-welcome-page-id-selector { + padding: 2em; + box-shadow: 0 0 0px 10px #FFFBF5; + font-family: "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif; + font-size: 16px; + line-height: 1.35em; + background: #FFFBF5; + color: #865931; + height: 100vh; +} +#ember-welcome-page-id-selector img { + max-width: 100%; +} +#ember-welcome-page-id-selector p { + margin: 0 0 .75em; +} +#ember-welcome-page-id-selector h2 { + color: #dd6a58; + margin-top: 1em; + font-size: 1.75em; + line-height: 1.2 +} +#ember-welcome-page-id-selector a:link, +#ember-welcome-page-id-selector a:visited { + color: #dd6a58; + text-decoration: none; +} +#ember-welcome-page-id-selector a:hover, +#ember-welcome-page-id-selector a:active { + color: #c13c27; +} +#ember-welcome-page-id-selector .tomster { + flex: 2; +} +#ember-welcome-page-id-selector .welcome { + flex: 3; +} +#ember-welcome-page-id-selector .columns { + display: flex; + max-width: 960px; + margin: 0 auto; +} +#ember-welcome-page-id-selector .welcome ol { + list-style: disc; + padding-left: 2em; + margin-bottom: .75em; +} +#ember-welcome-page-id-selector .welcome > ol > li { + padding-bottom: .5em; +} +#ember-welcome-page-id-selector .postscript { + clear: both; + text-align: center; + padding-top: 3em; + font-size: 14px; + color: #888; + font-style: italic; + line-height: 2; +} +#ember-welcome-page-id-selector .postscript code { + background-color: #F8E7CF; + border-radius: 3px; + font-family: Menlo, Courier, monospace; + font-size: 0.9em; + padding: 0.2em 0.5em; + margin: 0 0.1em; +} +@media (max-width: 700px) { + #ember-welcome-page-id-selector { + padding: 1em; + } + #ember-welcome-page-id-selector .columns { + flex-direction: column; + } + #ember-welcome-page-id-selector .welcome, + #ember-welcome-page-id-selector .tomster { + } + #ember-welcome-page-id-selector .tomster img { + width: 50%; + margin: auto; + display: block; + } + #ember-welcome-page-id-selector h2 { + text-align: center; + } +} +@media (max-width: 400px) { + #ember-welcome-page-id-selector .tomster img { + width: 60%; + } + #ember-welcome-page-id-selector .welcome, + #ember-welcome-page-id-selector .tomster { + width: 100%; + float: none; + margin: auto; + } +} diff --git a/test-packages/my-app-ember-exam/test-dist/assets/vendor.js b/test-packages/my-app-ember-exam/test-dist/assets/vendor.js new file mode 100644 index 00000000..298e7672 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/assets/vendor.js @@ -0,0 +1,91353 @@ +window.EmberENV = (function(EmberENV, extra) { + for (var key in extra) { + EmberENV[key] = extra[key]; + } + + return EmberENV; +})(window.EmberENV || {}, {"FEATURES":{},"EXTEND_PROTOTYPES":{"Date":false},"_APPLICATION_TEMPLATE_WRAPPER":false,"_DEFAULT_ASYNC_OBSERVERS":true,"_JQUERY_INTEGRATION":false,"_TEMPLATE_ONLY_GLIMMER_COMPONENTS":true}); + +var runningTests = false; + + + +;var loader, define, requireModule, require, requirejs; + +(function (global) { + 'use strict'; + + function dict() { + var obj = Object.create(null); + obj['__'] = undefined; + delete obj['__']; + return obj; + } + + // Save off the original values of these globals, so we can restore them if someone asks us to + var oldGlobals = { + loader: loader, + define: define, + requireModule: requireModule, + require: require, + requirejs: requirejs + }; + + requirejs = require = requireModule = function (id) { + var pending = []; + var mod = findModule(id, '(require)', pending); + + for (var i = pending.length - 1; i >= 0; i--) { + pending[i].exports(); + } + + return mod.module.exports; + }; + + loader = { + noConflict: function (aliases) { + var oldName, newName; + + for (oldName in aliases) { + if (aliases.hasOwnProperty(oldName)) { + if (oldGlobals.hasOwnProperty(oldName)) { + newName = aliases[oldName]; + + global[newName] = global[oldName]; + global[oldName] = oldGlobals[oldName]; + } + } + } + }, + // Option to enable or disable the generation of default exports + makeDefaultExport: true + }; + + var registry = dict(); + var seen = dict(); + + var uuid = 0; + + function unsupportedModule(length) { + throw new Error('an unsupported module was defined, expected `define(id, deps, module)` instead got: `' + length + '` arguments to define`'); + } + + var defaultDeps = ['require', 'exports', 'module']; + + function Module(id, deps, callback, alias) { + this.uuid = uuid++; + this.id = id; + this.deps = !deps.length && callback.length ? defaultDeps : deps; + this.module = { exports: {} }; + this.callback = callback; + this.hasExportsAsDep = false; + this.isAlias = alias; + this.reified = new Array(deps.length); + + /* + Each module normally passes through these states, in order: + new : initial state + pending : this module is scheduled to be executed + reifying : this module's dependencies are being executed + reified : this module's dependencies finished executing successfully + errored : this module's dependencies failed to execute + finalized : this module executed successfully + */ + this.state = 'new'; + } + + Module.prototype.makeDefaultExport = function () { + var exports = this.module.exports; + if (exports !== null && (typeof exports === 'object' || typeof exports === 'function') && exports['default'] === undefined && Object.isExtensible(exports)) { + exports['default'] = exports; + } + }; + + Module.prototype.exports = function () { + // if finalized, there is no work to do. If reifying, there is a + // circular dependency so we must return our (partial) exports. + if (this.state === 'finalized' || this.state === 'reifying') { + return this.module.exports; + } + + + if (loader.wrapModules) { + this.callback = loader.wrapModules(this.id, this.callback); + } + + this.reify(); + + var result = this.callback.apply(this, this.reified); + this.reified.length = 0; + this.state = 'finalized'; + + if (!(this.hasExportsAsDep && result === undefined)) { + this.module.exports = result; + } + if (loader.makeDefaultExport) { + this.makeDefaultExport(); + } + return this.module.exports; + }; + + Module.prototype.unsee = function () { + this.state = 'new'; + this.module = { exports: {} }; + }; + + Module.prototype.reify = function () { + if (this.state === 'reified') { + return; + } + this.state = 'reifying'; + try { + this.reified = this._reify(); + this.state = 'reified'; + } finally { + if (this.state === 'reifying') { + this.state = 'errored'; + } + } + }; + + Module.prototype._reify = function () { + var reified = this.reified.slice(); + for (var i = 0; i < reified.length; i++) { + var mod = reified[i]; + reified[i] = mod.exports ? mod.exports : mod.module.exports(); + } + return reified; + }; + + Module.prototype.findDeps = function (pending) { + if (this.state !== 'new') { + return; + } + + this.state = 'pending'; + + var deps = this.deps; + + for (var i = 0; i < deps.length; i++) { + var dep = deps[i]; + var entry = this.reified[i] = { exports: undefined, module: undefined }; + if (dep === 'exports') { + this.hasExportsAsDep = true; + entry.exports = this.module.exports; + } else if (dep === 'require') { + entry.exports = this.makeRequire(); + } else if (dep === 'module') { + entry.exports = this.module; + } else { + entry.module = findModule(resolve(dep, this.id), this.id, pending); + } + } + }; + + Module.prototype.makeRequire = function () { + var id = this.id; + var r = function (dep) { + return require(resolve(dep, id)); + }; + r['default'] = r; + r.moduleId = id; + r.has = function (dep) { + return has(resolve(dep, id)); + }; + return r; + }; + + define = function (id, deps, callback) { + var module = registry[id]; + + // If a module for this id has already been defined and is in any state + // other than `new` (meaning it has been or is currently being required), + // then we return early to avoid redefinition. + if (module && module.state !== 'new') { + return; + } + + if (arguments.length < 2) { + unsupportedModule(arguments.length); + } + + if (!Array.isArray(deps)) { + callback = deps; + deps = []; + } + + if (callback instanceof Alias) { + registry[id] = new Module(callback.id, deps, callback, true); + } else { + registry[id] = new Module(id, deps, callback, false); + } + }; + + define.exports = function (name, defaultExport) { + var module = registry[name]; + + // If a module for this name has already been defined and is in any state + // other than `new` (meaning it has been or is currently being required), + // then we return early to avoid redefinition. + if (module && module.state !== 'new') { + return; + } + + module = new Module(name, [], noop, null); + module.module.exports = defaultExport; + module.state = 'finalized'; + registry[name] = module; + + return module; + }; + + function noop() {} + // we don't support all of AMD + // define.amd = {}; + + function Alias(id) { + this.id = id; + } + + define.alias = function (id, target) { + if (arguments.length === 2) { + return define(target, new Alias(id)); + } + + return new Alias(id); + }; + + function missingModule(id, referrer) { + throw new Error('Could not find module `' + id + '` imported from `' + referrer + '`'); + } + + function findModule(id, referrer, pending) { + var mod = registry[id] || registry[id + '/index']; + + while (mod && mod.isAlias) { + mod = registry[mod.id] || registry[mod.id + '/index']; + } + + if (!mod) { + missingModule(id, referrer); + } + + if (pending && mod.state !== 'pending' && mod.state !== 'finalized') { + mod.findDeps(pending); + pending.push(mod); + } + return mod; + } + + function resolve(child, id) { + if (child.charAt(0) !== '.') { + return child; + } + + + var parts = child.split('/'); + var nameParts = id.split('/'); + var parentBase = nameParts.slice(0, -1); + + for (var i = 0, l = parts.length; i < l; i++) { + var part = parts[i]; + + if (part === '..') { + if (parentBase.length === 0) { + throw new Error('Cannot access parent module of root'); + } + parentBase.pop(); + } else if (part === '.') { + continue; + } else { + parentBase.push(part); + } + } + + return parentBase.join('/'); + } + + function has(id) { + return !!(registry[id] || registry[id + '/index']); + } + + requirejs.entries = requirejs._eak_seen = registry; + requirejs.has = has; + requirejs.unsee = function (id) { + findModule(id, '(unsee)', false).unsee(); + }; + + requirejs.clear = function () { + requirejs.entries = requirejs._eak_seen = registry = dict(); + seen = dict(); + }; + + // This code primes the JS engine for good performance by warming the + // JIT compiler for these functions. + define('foo', function () {}); + define('foo/bar', [], function () {}); + define('foo/asdf', ['module', 'exports', 'require'], function (module, exports, require) { + if (require.has('foo/bar')) { + require('foo/bar'); + } + }); + define('foo/baz', [], define.alias('foo')); + define('foo/quz', define.alias('foo')); + define.alias('foo', 'foo/qux'); + define('foo/bar', ['foo', './quz', './baz', './asdf', './bar', '../foo'], function () {}); + define('foo/main', ['foo/bar'], function () {}); + define.exports('foo/exports', {}); + + require('foo/exports'); + require('foo/main'); + require.unsee('foo/bar'); + + requirejs.clear(); + + if (typeof exports === 'object' && typeof module === 'object' && module.exports) { + module.exports = { require: require, define: define }; + } +})(this); +;(function() { +/*! + * @overview Ember - JavaScript Application Framework + * @copyright Copyright 2011-2019 Tilde Inc. and contributors + * Portions Copyright 2006-2011 Strobe Inc. + * Portions Copyright 2008-2011 Apple Inc. All rights reserved. + * @license Licensed under MIT license + * See https://raw.github.com/emberjs/ember.js/master/LICENSE + * @version 3.16.8 + */ +/*globals process */ +var define, require, Ember; // Used in @ember/-internals/environment/lib/global.js + + +mainContext = this; // eslint-disable-line no-undef + +(function () { + var registry; + var seen; + + function missingModule(name, referrerName) { + if (referrerName) { + throw new Error('Could not find module ' + name + ' required by: ' + referrerName); + } else { + throw new Error('Could not find module ' + name); + } + } + + function internalRequire(_name, referrerName) { + var name = _name; + var mod = registry[name]; + + if (!mod) { + name = name + '/index'; + mod = registry[name]; + } + + var exports = seen[name]; + + if (exports !== undefined) { + return exports; + } + + exports = seen[name] = {}; + + if (!mod) { + missingModule(_name, referrerName); + } + + var deps = mod.deps; + var callback = mod.callback; + var reified = new Array(deps.length); + + for (var i = 0; i < deps.length; i++) { + if (deps[i] === 'exports') { + reified[i] = exports; + } else if (deps[i] === 'require') { + reified[i] = require; + } else { + reified[i] = internalRequire(deps[i], name); + } + } + + callback.apply(this, reified); + return exports; + } + + var isNode = typeof window === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]'; + + if (!isNode) { + Ember = this.Ember = this.Ember || {}; + } + + if (typeof Ember === 'undefined') { + Ember = {}; + } + + if (typeof Ember.__loader === 'undefined') { + registry = Object.create(null); + seen = Object.create(null); + + define = function (name, deps, callback) { + var value = {}; + + if (!callback) { + value.deps = []; + value.callback = deps; + } else { + value.deps = deps; + value.callback = callback; + } + + registry[name] = value; + }; + + require = function (name) { + return internalRequire(name, null); + }; // setup `require` module + + + require['default'] = require; + + require.has = function registryHas(moduleName) { + return Boolean(registry[moduleName]) || Boolean(registry[moduleName + '/index']); + }; + + require._eak_seen = registry; + Ember.__loader = { + define: define, + require: require, + registry: registry + }; + } else { + define = Ember.__loader.define; + require = Ember.__loader.require; + } +})(); +define("@ember/-internals/browser-environment/index", ["exports"], function (_exports) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.hasDOM = _exports.isFirefox = _exports.isChrome = _exports.userAgent = _exports.history = _exports.location = _exports.window = void 0; + // check if window exists and actually is the global + var hasDom = typeof self === 'object' && self !== null && self.Object === Object && typeof Window !== 'undefined' && self.constructor === Window && typeof document === 'object' && document !== null && self.document === document && typeof location === 'object' && location !== null && self.location === location && typeof history === 'object' && history !== null && self.history === history && typeof navigator === 'object' && navigator !== null && self.navigator === navigator && typeof navigator.userAgent === 'string'; + _exports.hasDOM = hasDom; + var window = hasDom ? self : null; + _exports.window = window; + var location$1 = hasDom ? self.location : null; + _exports.location = location$1; + var history$1 = hasDom ? self.history : null; + _exports.history = history$1; + var userAgent = hasDom ? self.navigator.userAgent : 'Lynx (textmode)'; + _exports.userAgent = userAgent; + var isChrome = hasDom ? Boolean(window.chrome) && !window.opera : false; + _exports.isChrome = isChrome; + var isFirefox = hasDom ? typeof InstallTrigger !== 'undefined' : false; + _exports.isFirefox = isFirefox; +}); +define("@ember/-internals/console/index", ["exports", "@ember/debug", "@ember/deprecated-features"], function (_exports, _debug, _deprecatedFeatures) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.default = void 0; + // Deliver message that the function is deprecated + var DEPRECATION_MESSAGE = 'Use of Ember.Logger is deprecated. Please use `console` for logging.'; + var DEPRECATION_ID = 'ember-console.deprecate-logger'; + var DEPRECATION_URL = 'https://emberjs.com/deprecations/v3.x#toc_use-console-rather-than-ember-logger'; + /** + @module ember + */ + + /** + Inside Ember-Metal, simply uses the methods from `imports.console`. + Override this to provide more robust logging functionality. + + @class Logger + @deprecated Use 'console' instead + + @namespace Ember + @public + */ + + var DEPRECATED_LOGGER; + + if (_deprecatedFeatures.LOGGER) { + DEPRECATED_LOGGER = { + /** + Logs the arguments to the console. + You can pass as many arguments as you want and they will be joined together with a space. + ```javascript + var foo = 1; + Ember.Logger.log('log value of foo:', foo); + // "log value of foo: 1" will be printed to the console + ``` + @method log + @for Ember.Logger + @param {*} arguments + @public + */ + log() { + (true && !(false) && (0, _debug.deprecate)(DEPRECATION_MESSAGE, false, { + id: DEPRECATION_ID, + until: '4.0.0', + url: DEPRECATION_URL + })); + return console.log(...arguments); // eslint-disable-line no-console + }, + + /** + Prints the arguments to the console with a warning icon. + You can pass as many arguments as you want and they will be joined together with a space. + ```javascript + Ember.Logger.warn('Something happened!'); + // "Something happened!" will be printed to the console with a warning icon. + ``` + @method warn + @for Ember.Logger + @param {*} arguments + @public + */ + warn() { + (true && !(false) && (0, _debug.deprecate)(DEPRECATION_MESSAGE, false, { + id: DEPRECATION_ID, + until: '4.0.0', + url: DEPRECATION_URL + })); + return console.warn(...arguments); // eslint-disable-line no-console + }, + + /** + Prints the arguments to the console with an error icon, red text and a stack trace. + You can pass as many arguments as you want and they will be joined together with a space. + ```javascript + Ember.Logger.error('Danger! Danger!'); + // "Danger! Danger!" will be printed to the console in red text. + ``` + @method error + @for Ember.Logger + @param {*} arguments + @public + */ + error() { + (true && !(false) && (0, _debug.deprecate)(DEPRECATION_MESSAGE, false, { + id: DEPRECATION_ID, + until: '4.0.0', + url: DEPRECATION_URL + })); + return console.error(...arguments); // eslint-disable-line no-console + }, + + /** + Logs the arguments to the console. + You can pass as many arguments as you want and they will be joined together with a space. + ```javascript + var foo = 1; + Ember.Logger.info('log value of foo:', foo); + // "log value of foo: 1" will be printed to the console + ``` + @method info + @for Ember.Logger + @param {*} arguments + @public + */ + info() { + (true && !(false) && (0, _debug.deprecate)(DEPRECATION_MESSAGE, false, { + id: DEPRECATION_ID, + until: '4.0.0', + url: DEPRECATION_URL + })); + return console.info(...arguments); // eslint-disable-line no-console + }, + + /** + Logs the arguments to the console in blue text. + You can pass as many arguments as you want and they will be joined together with a space. + ```javascript + var foo = 1; + Ember.Logger.debug('log value of foo:', foo); + // "log value of foo: 1" will be printed to the console + ``` + @method debug + @for Ember.Logger + @param {*} arguments + @public + */ + debug() { + (true && !(false) && (0, _debug.deprecate)(DEPRECATION_MESSAGE, false, { + id: DEPRECATION_ID, + until: '4.0.0', + url: DEPRECATION_URL + })); + /* eslint-disable no-console */ + + if (console.debug) { + return console.debug(...arguments); + } + + return console.info(...arguments); + /* eslint-enable no-console */ + }, + + /** + If the value passed into `Ember.Logger.assert` is not truthy it will throw an error with a stack trace. + ```javascript + Ember.Logger.assert(true); // undefined + Ember.Logger.assert(true === false); // Throws an Assertion failed error. + Ember.Logger.assert(true === false, 'Something invalid'); // Throws an Assertion failed error with message. + ``` + @method assert + @for Ember.Logger + @param {Boolean} bool Value to test + @param {String} message Assertion message on failed + @public + */ + assert() { + (true && !(false) && (0, _debug.deprecate)(DEPRECATION_MESSAGE, false, { + id: DEPRECATION_ID, + until: '4.0.0', + url: DEPRECATION_URL + })); + return console.assert(...arguments); // eslint-disable-line no-console + } + + }; + } + + var _default = DEPRECATED_LOGGER; + _exports.default = _default; +}); +define("@ember/-internals/container/index", ["exports", "@ember/-internals/owner", "@ember/-internals/utils", "@ember/debug", "@ember/polyfills"], function (_exports, _owner, _utils, _debug, _polyfills) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.privatize = privatize; + _exports.FACTORY_FOR = _exports.Container = _exports.Registry = void 0; + var leakTracking; + var containers; + + if (true + /* DEBUG */ + ) { + // requires v8 + // chrome --js-flags="--allow-natives-syntax --expose-gc" + // node --allow-natives-syntax --expose-gc + try { + if (typeof gc === 'function') { + leakTracking = (() => { + // avoid syntax errors when --allow-natives-syntax not present + var GetWeakSetValues = new Function('weakSet', 'return %GetWeakSetValues(weakSet, 0)'); + containers = new WeakSet(); + return { + hasContainers() { + gc(); + return GetWeakSetValues(containers).length > 0; + }, + + reset() { + var values = GetWeakSetValues(containers); + + for (var i = 0; i < values.length; i++) { + containers.delete(values[i]); + } + } + + }; + })(); + } + } catch (e) {// ignore + } + } + /** + A container used to instantiate and cache objects. + + Every `Container` must be associated with a `Registry`, which is referenced + to determine the factory and options that should be used to instantiate + objects. + + The public API for `Container` is still in flux and should not be considered + stable. + + @private + @class Container + */ + + + class Container { + constructor(registry, options = {}) { + this.registry = registry; + this.owner = options.owner || null; + this.cache = (0, _utils.dictionary)(options.cache || null); + this.factoryManagerCache = (0, _utils.dictionary)(options.factoryManagerCache || null); + this.isDestroyed = false; + this.isDestroying = false; + + if (true + /* DEBUG */ + ) { + this.validationCache = (0, _utils.dictionary)(options.validationCache || null); + + if (containers !== undefined) { + containers.add(this); + } + } + } + /** + @private + @property registry + @type Registry + @since 1.11.0 + */ + + /** + @private + @property cache + @type InheritingDict + */ + + /** + @private + @property validationCache + @type InheritingDict + */ + + /** + Given a fullName return a corresponding instance. + The default behavior is for lookup to return a singleton instance. + The singleton is scoped to the container, allowing multiple containers + to all have their own locally scoped singletons. + ```javascript + let registry = new Registry(); + let container = registry.container(); + registry.register('api:twitter', Twitter); + let twitter = container.lookup('api:twitter'); + twitter instanceof Twitter; // => true + // by default the container will return singletons + let twitter2 = container.lookup('api:twitter'); + twitter2 instanceof Twitter; // => true + twitter === twitter2; //=> true + ``` + If singletons are not wanted, an optional flag can be provided at lookup. + ```javascript + let registry = new Registry(); + let container = registry.container(); + registry.register('api:twitter', Twitter); + let twitter = container.lookup('api:twitter', { singleton: false }); + let twitter2 = container.lookup('api:twitter', { singleton: false }); + twitter === twitter2; //=> false + ``` + @private + @method lookup + @param {String} fullName + @param {Object} [options] + @param {String} [options.source] The fullname of the request source (used for local lookup) + @return {any} + */ + + + lookup(fullName, options) { + if (this.isDestroyed) { + throw new Error(`Can not call \`.lookup\` after the owner has been destroyed`); + } + + (true && !(this.registry.isValidFullName(fullName)) && (0, _debug.assert)('fullName must be a proper full name', this.registry.isValidFullName(fullName))); + return lookup(this, this.registry.normalize(fullName), options); + } + /** + A depth first traversal, destroying the container, its descendant containers and all + their managed objects. + @private + @method destroy + */ + + + destroy() { + this.isDestroying = true; + destroyDestroyables(this); + } + + finalizeDestroy() { + resetCache(this); + this.isDestroyed = true; + } + /** + Clear either the entire cache or just the cache for a particular key. + @private + @method reset + @param {String} fullName optional key to reset; if missing, resets everything + */ + + + reset(fullName) { + if (this.isDestroyed) return; + + if (fullName === undefined) { + destroyDestroyables(this); + resetCache(this); + } else { + resetMember(this, this.registry.normalize(fullName)); + } + } + /** + Returns an object that can be used to provide an owner to a + manually created instance. + @private + @method ownerInjection + @returns { Object } + */ + + + ownerInjection() { + return { + [_owner.OWNER]: this.owner + }; + } + /** + Given a fullName, return the corresponding factory. The consumer of the factory + is responsible for the destruction of any factory instances, as there is no + way for the container to ensure instances are destroyed when it itself is + destroyed. + @public + @method factoryFor + @param {String} fullName + @param {Object} [options] + @param {String} [options.source] The fullname of the request source (used for local lookup) + @return {any} + */ + + + factoryFor(fullName, options = {}) { + if (this.isDestroyed) { + throw new Error(`Can not call \`.factoryFor\` after the owner has been destroyed`); + } + + var normalizedName = this.registry.normalize(fullName); + (true && !(this.registry.isValidFullName(normalizedName)) && (0, _debug.assert)('fullName must be a proper full name', this.registry.isValidFullName(normalizedName))); + (true && !(false + /* EMBER_MODULE_UNIFICATION */ + || !options.namespace) && (0, _debug.assert)('EMBER_MODULE_UNIFICATION must be enabled to pass a namespace option to factoryFor', false || !options.namespace)); + + if (options.source || options.namespace) { + normalizedName = this.registry.expandLocalLookup(fullName, options); + + if (!normalizedName) { + return; + } + } + + return factoryFor(this, normalizedName, fullName); + } + + } + + _exports.Container = Container; + + if (true + /* DEBUG */ + ) { + Container._leakTracking = leakTracking; + } + /* + * Wrap a factory manager in a proxy which will not permit properties to be + * set on the manager. + */ + + + function wrapManagerInDeprecationProxy(manager) { + if (_utils.HAS_NATIVE_PROXY) { + var validator = { + set(_obj, prop) { + throw new Error(`You attempted to set "${prop}" on a factory manager created by container#factoryFor. A factory manager is a read-only construct.`); + } + + }; // Note: + // We have to proxy access to the manager here so that private property + // access doesn't cause the above errors to occur. + + var m = manager; + var proxiedManager = { + class: m.class, + + create(props) { + return m.create(props); + } + + }; + var proxy = new Proxy(proxiedManager, validator); + FACTORY_FOR.set(proxy, manager); + } + + return manager; + } + + function isSingleton(container, fullName) { + return container.registry.getOption(fullName, 'singleton') !== false; + } + + function isInstantiatable(container, fullName) { + return container.registry.getOption(fullName, 'instantiate') !== false; + } + + function lookup(container, fullName, options = {}) { + (true && !(false + /* EMBER_MODULE_UNIFICATION */ + || !options.namespace) && (0, _debug.assert)('EMBER_MODULE_UNIFICATION must be enabled to pass a namespace option to lookup', false || !options.namespace)); + var normalizedName = fullName; + + if (options.source || options.namespace) { + normalizedName = container.registry.expandLocalLookup(fullName, options); + + if (!normalizedName) { + return; + } + } + + if (options.singleton !== false) { + var cached = container.cache[normalizedName]; + + if (cached !== undefined) { + return cached; + } + } + + return instantiateFactory(container, normalizedName, fullName, options); + } + + function factoryFor(container, normalizedName, fullName) { + var cached = container.factoryManagerCache[normalizedName]; + + if (cached !== undefined) { + return cached; + } + + var factory = container.registry.resolve(normalizedName); + + if (factory === undefined) { + return; + } + + if (true + /* DEBUG */ + && factory && typeof factory._onLookup === 'function') { + factory._onLookup(fullName); + } + + var manager = new FactoryManager(container, factory, fullName, normalizedName); + + if (true + /* DEBUG */ + ) { + manager = wrapManagerInDeprecationProxy(manager); + } + + container.factoryManagerCache[normalizedName] = manager; + return manager; + } + + function isSingletonClass(container, fullName, { + instantiate, + singleton + }) { + return singleton !== false && !instantiate && isSingleton(container, fullName) && !isInstantiatable(container, fullName); + } + + function isSingletonInstance(container, fullName, { + instantiate, + singleton + }) { + return singleton !== false && instantiate !== false && isSingleton(container, fullName) && isInstantiatable(container, fullName); + } + + function isFactoryClass(container, fullname, { + instantiate, + singleton + }) { + return instantiate === false && (singleton === false || !isSingleton(container, fullname)) && !isInstantiatable(container, fullname); + } + + function isFactoryInstance(container, fullName, { + instantiate, + singleton + }) { + return instantiate !== false && (singleton !== false || isSingleton(container, fullName)) && isInstantiatable(container, fullName); + } + + function instantiateFactory(container, normalizedName, fullName, options) { + var factoryManager = factoryFor(container, normalizedName, fullName); + + if (factoryManager === undefined) { + return; + } // SomeClass { singleton: true, instantiate: true } | { singleton: true } | { instantiate: true } | {} + // By default majority of objects fall into this case + + + if (isSingletonInstance(container, fullName, options)) { + var instance = container.cache[normalizedName] = factoryManager.create(); // if this lookup happened _during_ destruction (emits a deprecation, but + // is still possible) ensure that it gets destroyed + + if (container.isDestroying) { + if (typeof instance.destroy === 'function') { + instance.destroy(); + } + } + + return instance; + } // SomeClass { singleton: false, instantiate: true } + + + if (isFactoryInstance(container, fullName, options)) { + return factoryManager.create(); + } // SomeClass { singleton: true, instantiate: false } | { instantiate: false } | { singleton: false, instantiation: false } + + + if (isSingletonClass(container, fullName, options) || isFactoryClass(container, fullName, options)) { + return factoryManager.class; + } + + throw new Error('Could not create factory'); + } + + function processInjections(container, injections, result) { + if (true + /* DEBUG */ + ) { + container.registry.validateInjections(injections); + } + + var hash = result.injections; + + if (hash === undefined) { + hash = result.injections = {}; + } + + for (var i = 0; i < injections.length; i++) { + var { + property, + specifier, + source + } = injections[i]; + + if (source) { + hash[property] = lookup(container, specifier, { + source + }); + } else { + hash[property] = lookup(container, specifier); + } + + if (!result.isDynamic) { + result.isDynamic = !isSingleton(container, specifier); + } + } + } + + function buildInjections(container, typeInjections, injections) { + var result = { + injections: undefined, + isDynamic: false + }; + + if (typeInjections !== undefined) { + processInjections(container, typeInjections, result); + } + + if (injections !== undefined) { + processInjections(container, injections, result); + } + + return result; + } + + function injectionsFor(container, fullName) { + var registry = container.registry; + var [type] = fullName.split(':'); + var typeInjections = registry.getTypeInjections(type); + var injections = registry.getInjections(fullName); + return buildInjections(container, typeInjections, injections); + } + + function destroyDestroyables(container) { + var cache = container.cache; + var keys = Object.keys(cache); + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + var value = cache[key]; + + if (value.destroy) { + value.destroy(); + } + } + } + + function resetCache(container) { + container.cache = (0, _utils.dictionary)(null); + container.factoryManagerCache = (0, _utils.dictionary)(null); + } + + function resetMember(container, fullName) { + var member = container.cache[fullName]; + delete container.factoryManagerCache[fullName]; + + if (member) { + delete container.cache[fullName]; + + if (member.destroy) { + member.destroy(); + } + } + } + + var FACTORY_FOR = new WeakMap(); + _exports.FACTORY_FOR = FACTORY_FOR; + + class FactoryManager { + constructor(container, factory, fullName, normalizedName) { + this.container = container; + this.owner = container.owner; + this.class = factory; + this.fullName = fullName; + this.normalizedName = normalizedName; + this.madeToString = undefined; + this.injections = undefined; + FACTORY_FOR.set(this, this); + } + + toString() { + if (this.madeToString === undefined) { + this.madeToString = this.container.registry.makeToString(this.class, this.fullName); + } + + return this.madeToString; + } + + create(options) { + var { + container + } = this; + + if (container.isDestroyed) { + throw new Error(`Can not create new instances after the owner has been destroyed (you attempted to create ${this.fullName})`); + } + + var injectionsCache = this.injections; + + if (injectionsCache === undefined) { + var { + injections, + isDynamic + } = injectionsFor(this.container, this.normalizedName); + injectionsCache = injections; + + if (!isDynamic) { + this.injections = injections; + } + } + + var props = injectionsCache; + + if (options !== undefined) { + props = (0, _polyfills.assign)({}, injectionsCache, options); + } + + if (true + /* DEBUG */ + ) { + var lazyInjections; + var validationCache = this.container.validationCache; // Ensure that all lazy injections are valid at instantiation time + + if (!validationCache[this.fullName] && this.class && typeof this.class._lazyInjections === 'function') { + lazyInjections = this.class._lazyInjections(); + lazyInjections = this.container.registry.normalizeInjectionsHash(lazyInjections); + this.container.registry.validateInjections(lazyInjections); + } + + validationCache[this.fullName] = true; + } + + if (!this.class.create) { + throw new Error(`Failed to create an instance of '${this.normalizedName}'. Most likely an improperly defined class or an invalid module export.`); + } // required to allow access to things like + // the customized toString, _debugContainerKey, + // owner, etc. without a double extend and without + // modifying the objects properties + + + if (typeof this.class._initFactory === 'function') { + this.class._initFactory(this); + } else { + // in the non-EmberObject case we need to still setOwner + // this is required for supporting glimmer environment and + // template instantiation which rely heavily on + // `options[OWNER]` being passed into `create` + // TODO: clean this up, and remove in future versions + if (options === undefined || props === undefined) { + // avoid mutating `props` here since they are the cached injections + props = (0, _polyfills.assign)({}, props); + } + + (0, _owner.setOwner)(props, this.owner); + } + + var instance = this.class.create(props); + FACTORY_FOR.set(instance, this); + return instance; + } + + } + + var VALID_FULL_NAME_REGEXP = /^[^:]+:[^:]+$/; + /** + A registry used to store factory and option information keyed + by type. + + A `Registry` stores the factory and option information needed by a + `Container` to instantiate and cache objects. + + The API for `Registry` is still in flux and should not be considered stable. + + @private + @class Registry + @since 1.11.0 + */ + + class Registry { + constructor(options = {}) { + this.fallback = options.fallback || null; + this.resolver = options.resolver || null; + this.registrations = (0, _utils.dictionary)(options.registrations || null); + this._typeInjections = (0, _utils.dictionary)(null); + this._injections = (0, _utils.dictionary)(null); + this._localLookupCache = Object.create(null); + this._normalizeCache = (0, _utils.dictionary)(null); + this._resolveCache = (0, _utils.dictionary)(null); + this._failSet = new Set(); + this._options = (0, _utils.dictionary)(null); + this._typeOptions = (0, _utils.dictionary)(null); + } + /** + A backup registry for resolving registrations when no matches can be found. + @private + @property fallback + @type Registry + */ + + /** + An object that has a `resolve` method that resolves a name. + @private + @property resolver + @type Resolver + */ + + /** + @private + @property registrations + @type InheritingDict + */ + + /** + @private + @property _typeInjections + @type InheritingDict + */ + + /** + @private + @property _injections + @type InheritingDict + */ + + /** + @private + @property _normalizeCache + @type InheritingDict + */ + + /** + @private + @property _resolveCache + @type InheritingDict + */ + + /** + @private + @property _options + @type InheritingDict + */ + + /** + @private + @property _typeOptions + @type InheritingDict + */ + + /** + Creates a container based on this registry. + @private + @method container + @param {Object} options + @return {Container} created container + */ + + + container(options) { + return new Container(this, options); + } + /** + Registers a factory for later injection. + Example: + ```javascript + let registry = new Registry(); + registry.register('model:user', Person, {singleton: false }); + registry.register('fruit:favorite', Orange); + registry.register('communication:main', Email, {singleton: false}); + ``` + @private + @method register + @param {String} fullName + @param {Function} factory + @param {Object} options + */ + + + register(fullName, factory, options = {}) { + (true && !(this.isValidFullName(fullName)) && (0, _debug.assert)('fullName must be a proper full name', this.isValidFullName(fullName))); + (true && !(factory !== undefined) && (0, _debug.assert)(`Attempting to register an unknown factory: '${fullName}'`, factory !== undefined)); + var normalizedName = this.normalize(fullName); + (true && !(!this._resolveCache[normalizedName]) && (0, _debug.assert)(`Cannot re-register: '${fullName}', as it has already been resolved.`, !this._resolveCache[normalizedName])); + + this._failSet.delete(normalizedName); + + this.registrations[normalizedName] = factory; + this._options[normalizedName] = options; + } + /** + Unregister a fullName + ```javascript + let registry = new Registry(); + registry.register('model:user', User); + registry.resolve('model:user').create() instanceof User //=> true + registry.unregister('model:user') + registry.resolve('model:user') === undefined //=> true + ``` + @private + @method unregister + @param {String} fullName + */ + + + unregister(fullName) { + (true && !(this.isValidFullName(fullName)) && (0, _debug.assert)('fullName must be a proper full name', this.isValidFullName(fullName))); + var normalizedName = this.normalize(fullName); + this._localLookupCache = Object.create(null); + delete this.registrations[normalizedName]; + delete this._resolveCache[normalizedName]; + delete this._options[normalizedName]; + + this._failSet.delete(normalizedName); + } + /** + Given a fullName return the corresponding factory. + By default `resolve` will retrieve the factory from + the registry. + ```javascript + let registry = new Registry(); + registry.register('api:twitter', Twitter); + registry.resolve('api:twitter') // => Twitter + ``` + Optionally the registry can be provided with a custom resolver. + If provided, `resolve` will first provide the custom resolver + the opportunity to resolve the fullName, otherwise it will fallback + to the registry. + ```javascript + let registry = new Registry(); + registry.resolver = function(fullName) { + // lookup via the module system of choice + }; + // the twitter factory is added to the module system + registry.resolve('api:twitter') // => Twitter + ``` + @private + @method resolve + @param {String} fullName + @param {Object} [options] + @param {String} [options.source] the fullname of the request source (used for local lookups) + @return {Function} fullName's factory + */ + + + resolve(fullName, options) { + var factory = resolve(this, this.normalize(fullName), options); + + if (factory === undefined && this.fallback !== null) { + factory = this.fallback.resolve(...arguments); + } + + return factory; + } + /** + A hook that can be used to describe how the resolver will + attempt to find the factory. + For example, the default Ember `.describe` returns the full + class name (including namespace) where Ember's resolver expects + to find the `fullName`. + @private + @method describe + @param {String} fullName + @return {string} described fullName + */ + + + describe(fullName) { + if (this.resolver !== null && this.resolver.lookupDescription) { + return this.resolver.lookupDescription(fullName); + } else if (this.fallback !== null) { + return this.fallback.describe(fullName); + } else { + return fullName; + } + } + /** + A hook to enable custom fullName normalization behavior + @private + @method normalizeFullName + @param {String} fullName + @return {string} normalized fullName + */ + + + normalizeFullName(fullName) { + if (this.resolver !== null && this.resolver.normalize) { + return this.resolver.normalize(fullName); + } else if (this.fallback !== null) { + return this.fallback.normalizeFullName(fullName); + } else { + return fullName; + } + } + /** + Normalize a fullName based on the application's conventions + @private + @method normalize + @param {String} fullName + @return {string} normalized fullName + */ + + + normalize(fullName) { + return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this.normalizeFullName(fullName)); + } + /** + @method makeToString + @private + @param {any} factory + @param {string} fullName + @return {function} toString function + */ + + + makeToString(factory, fullName) { + if (this.resolver !== null && this.resolver.makeToString) { + return this.resolver.makeToString(factory, fullName); + } else if (this.fallback !== null) { + return this.fallback.makeToString(factory, fullName); + } else { + return factory.toString(); + } + } + /** + Given a fullName check if the container is aware of its factory + or singleton instance. + @private + @method has + @param {String} fullName + @param {Object} [options] + @param {String} [options.source] the fullname of the request source (used for local lookups) + @return {Boolean} + */ + + + has(fullName, options) { + if (!this.isValidFullName(fullName)) { + return false; + } + + var source = options && options.source && this.normalize(options.source); + var namespace = options && options.namespace || undefined; + return has(this, this.normalize(fullName), source, namespace); + } + /** + Allow registering options for all factories of a type. + ```javascript + let registry = new Registry(); + let container = registry.container(); + // if all of type `connection` must not be singletons + registry.optionsForType('connection', { singleton: false }); + registry.register('connection:twitter', TwitterConnection); + registry.register('connection:facebook', FacebookConnection); + let twitter = container.lookup('connection:twitter'); + let twitter2 = container.lookup('connection:twitter'); + twitter === twitter2; // => false + let facebook = container.lookup('connection:facebook'); + let facebook2 = container.lookup('connection:facebook'); + facebook === facebook2; // => false + ``` + @private + @method optionsForType + @param {String} type + @param {Object} options + */ + + + optionsForType(type, options) { + this._typeOptions[type] = options; + } + + getOptionsForType(type) { + var optionsForType = this._typeOptions[type]; + + if (optionsForType === undefined && this.fallback !== null) { + optionsForType = this.fallback.getOptionsForType(type); + } + + return optionsForType; + } + /** + @private + @method options + @param {String} fullName + @param {Object} options + */ + + + options(fullName, options) { + var normalizedName = this.normalize(fullName); + this._options[normalizedName] = options; + } + + getOptions(fullName) { + var normalizedName = this.normalize(fullName); + var options = this._options[normalizedName]; + + if (options === undefined && this.fallback !== null) { + options = this.fallback.getOptions(fullName); + } + + return options; + } + + getOption(fullName, optionName) { + var options = this._options[fullName]; + + if (options !== undefined && options[optionName] !== undefined) { + return options[optionName]; + } + + var type = fullName.split(':')[0]; + options = this._typeOptions[type]; + + if (options && options[optionName] !== undefined) { + return options[optionName]; + } else if (this.fallback !== null) { + return this.fallback.getOption(fullName, optionName); + } + + return undefined; + } + /** + Used only via `injection`. + Provides a specialized form of injection, specifically enabling + all objects of one type to be injected with a reference to another + object. + For example, provided each object of type `controller` needed a `router`. + one would do the following: + ```javascript + let registry = new Registry(); + let container = registry.container(); + registry.register('router:main', Router); + registry.register('controller:user', UserController); + registry.register('controller:post', PostController); + registry.typeInjection('controller', 'router', 'router:main'); + let user = container.lookup('controller:user'); + let post = container.lookup('controller:post'); + user.router instanceof Router; //=> true + post.router instanceof Router; //=> true + // both controllers share the same router + user.router === post.router; //=> true + ``` + @private + @method typeInjection + @param {String} type + @param {String} property + @param {String} fullName + */ + + + typeInjection(type, property, fullName) { + (true && !(this.isValidFullName(fullName)) && (0, _debug.assert)('fullName must be a proper full name', this.isValidFullName(fullName))); + var fullNameType = fullName.split(':')[0]; + (true && !(fullNameType !== type) && (0, _debug.assert)(`Cannot inject a '${fullName}' on other ${type}(s).`, fullNameType !== type)); + var injections = this._typeInjections[type] || (this._typeInjections[type] = []); + injections.push({ + property, + specifier: fullName + }); + } + /** + Defines injection rules. + These rules are used to inject dependencies onto objects when they + are instantiated. + Two forms of injections are possible: + * Injecting one fullName on another fullName + * Injecting one fullName on a type + Example: + ```javascript + let registry = new Registry(); + let container = registry.container(); + registry.register('source:main', Source); + registry.register('model:user', User); + registry.register('model:post', Post); + // injecting one fullName on another fullName + // eg. each user model gets a post model + registry.injection('model:user', 'post', 'model:post'); + // injecting one fullName on another type + registry.injection('model', 'source', 'source:main'); + let user = container.lookup('model:user'); + let post = container.lookup('model:post'); + user.source instanceof Source; //=> true + post.source instanceof Source; //=> true + user.post instanceof Post; //=> true + // and both models share the same source + user.source === post.source; //=> true + ``` + @private + @method injection + @param {String} factoryName + @param {String} property + @param {String} injectionName + */ + + + injection(fullName, property, injectionName) { + (true && !(this.isValidFullName(injectionName)) && (0, _debug.assert)(`Invalid injectionName, expected: 'type:name' got: ${injectionName}`, this.isValidFullName(injectionName))); + var normalizedInjectionName = this.normalize(injectionName); + + if (fullName.indexOf(':') === -1) { + return this.typeInjection(fullName, property, normalizedInjectionName); + } + + (true && !(this.isValidFullName(fullName)) && (0, _debug.assert)('fullName must be a proper full name', this.isValidFullName(fullName))); + var normalizedName = this.normalize(fullName); + var injections = this._injections[normalizedName] || (this._injections[normalizedName] = []); + injections.push({ + property, + specifier: normalizedInjectionName + }); + } + /** + @private + @method knownForType + @param {String} type the type to iterate over + */ + + + knownForType(type) { + var localKnown = (0, _utils.dictionary)(null); + var registeredNames = Object.keys(this.registrations); + + for (var index = 0; index < registeredNames.length; index++) { + var fullName = registeredNames[index]; + var itemType = fullName.split(':')[0]; + + if (itemType === type) { + localKnown[fullName] = true; + } + } + + var fallbackKnown, resolverKnown; + + if (this.fallback !== null) { + fallbackKnown = this.fallback.knownForType(type); + } + + if (this.resolver !== null && this.resolver.knownForType) { + resolverKnown = this.resolver.knownForType(type); + } + + return (0, _polyfills.assign)({}, fallbackKnown, localKnown, resolverKnown); + } + + isValidFullName(fullName) { + return VALID_FULL_NAME_REGEXP.test(fullName); + } + + getInjections(fullName) { + var injections = this._injections[fullName]; + + if (this.fallback !== null) { + var fallbackInjections = this.fallback.getInjections(fullName); + + if (fallbackInjections !== undefined) { + injections = injections === undefined ? fallbackInjections : injections.concat(fallbackInjections); + } + } + + return injections; + } + + getTypeInjections(type) { + var injections = this._typeInjections[type]; + + if (this.fallback !== null) { + var fallbackInjections = this.fallback.getTypeInjections(type); + + if (fallbackInjections !== undefined) { + injections = injections === undefined ? fallbackInjections : injections.concat(fallbackInjections); + } + } + + return injections; + } + /** + Given a fullName and a source fullName returns the fully resolved + fullName. Used to allow for local lookup. + ```javascript + let registry = new Registry(); + // the twitter factory is added to the module system + registry.expandLocalLookup('component:post-title', { source: 'template:post' }) // => component:post/post-title + ``` + @private + @method expandLocalLookup + @param {String} fullName + @param {Object} [options] + @param {String} [options.source] the fullname of the request source (used for local lookups) + @return {String} fullName + */ + + + expandLocalLookup(fullName, options) { + if (this.resolver !== null && this.resolver.expandLocalLookup) { + (true && !(this.isValidFullName(fullName)) && (0, _debug.assert)('fullName must be a proper full name', this.isValidFullName(fullName))); + (true && !(!options.source || this.isValidFullName(options.source)) && (0, _debug.assert)('options.source must be a proper full name', !options.source || this.isValidFullName(options.source))); + var normalizedFullName = this.normalize(fullName); + var normalizedSource = this.normalize(options.source); + return expandLocalLookup(this, normalizedFullName, normalizedSource, options.namespace); + } else if (this.fallback !== null) { + return this.fallback.expandLocalLookup(fullName, options); + } else { + return null; + } + } + + } + + _exports.Registry = Registry; + + if (true + /* DEBUG */ + ) { + var proto = Registry.prototype; + + proto.normalizeInjectionsHash = function (hash) { + var injections = []; + + for (var key in hash) { + if (hash.hasOwnProperty(key)) { + var { + specifier, + source, + namespace + } = hash[key]; + (true && !(this.isValidFullName(specifier)) && (0, _debug.assert)(`Expected a proper full name, given '${specifier}'`, this.isValidFullName(specifier))); + injections.push({ + property: key, + specifier, + source, + namespace + }); + } + } + + return injections; + }; + + proto.validateInjections = function (injections) { + if (!injections) { + return; + } + + for (var i = 0; i < injections.length; i++) { + var { + specifier, + source, + namespace + } = injections[i]; + (true && !(this.has(specifier, { + source, + namespace + })) && (0, _debug.assert)(`Attempting to inject an unknown injection: '${specifier}'`, this.has(specifier, { + source, + namespace + }))); + } + }; + } + + function expandLocalLookup(registry, normalizedName, normalizedSource, namespace) { + var cache = registry._localLookupCache; + var normalizedNameCache = cache[normalizedName]; + + if (!normalizedNameCache) { + normalizedNameCache = cache[normalizedName] = Object.create(null); + } + + var cacheKey = namespace || normalizedSource; + var cached = normalizedNameCache[cacheKey]; + + if (cached !== undefined) { + return cached; + } + + var expanded = registry.resolver.expandLocalLookup(normalizedName, normalizedSource, namespace); + return normalizedNameCache[cacheKey] = expanded; + } + + function resolve(registry, _normalizedName, options) { + var normalizedName = _normalizedName; // when `source` is provided expand normalizedName + // and source into the full normalizedName + + if (options !== undefined && (options.source || options.namespace)) { + normalizedName = registry.expandLocalLookup(_normalizedName, options); + + if (!normalizedName) { + return; + } + } + + var cached = registry._resolveCache[normalizedName]; + + if (cached !== undefined) { + return cached; + } + + if (registry._failSet.has(normalizedName)) { + return; + } + + var resolved; + + if (registry.resolver) { + resolved = registry.resolver.resolve(normalizedName); + } + + if (resolved === undefined) { + resolved = registry.registrations[normalizedName]; + } + + if (resolved === undefined) { + registry._failSet.add(normalizedName); + } else { + registry._resolveCache[normalizedName] = resolved; + } + + return resolved; + } + + function has(registry, fullName, source, namespace) { + return registry.resolve(fullName, { + source, + namespace + }) !== undefined; + } + + var privateNames = (0, _utils.dictionary)(null); + var privateSuffix = `${Math.random()}${Date.now()}`.replace('.', ''); + + function privatize([fullName]) { + var name = privateNames[fullName]; + + if (name) { + return name; + } + + var [type, rawName] = fullName.split(':'); + return privateNames[fullName] = (0, _utils.intern)(`${type}:${rawName}-${privateSuffix}`); + } + /* + Public API for the container is still in flux. + The public API, specified on the application namespace should be considered the stable API. + // @module container + @private + */ + +}); +define("@ember/-internals/environment/index", ["exports", "@ember/debug", "@ember/deprecated-features"], function (_exports, _debug, _deprecatedFeatures) { + "use strict"; + + Object.defineProperty(_exports, "__esModule", { + value: true + }); + _exports.getLookup = getLookup; + _exports.setLookup = setLookup; + _exports.getENV = getENV; + _exports.ENV = _exports.context = _exports.global = void 0; + + // from lodash to catch fake globals + function checkGlobal(value) { + return value && value.Object === Object ? value : undefined; + } // element ids can ruin global miss checks + + + function checkElementIdShadowing(value) { + return value && value.nodeType === undefined ? value : undefined; + } // export real global + + + var global$1 = checkGlobal(checkElementIdShadowing(typeof global === 'object' && global)) || checkGlobal(typeof self === 'object' && self) || checkGlobal(typeof window === 'object' && window) || typeof mainContext !== 'undefined' && mainContext || // set before strict mode in Ember loader/wrapper + new Function('return this')(); // eval outside of strict mode + + _exports.global = global$1; + + var context = function (global, Ember) { + return Ember === undefined ? { + imports: global, + exports: global, + lookup: global + } : { + // import jQuery + imports: Ember.imports || global, + // export Ember + exports: Ember.exports || global, + // search for Namespaces + lookup: Ember.lookup || global + }; + }(global$1, global$1.Ember); + + _exports.context = context; + + function getLookup() { + return context.lookup; + } + + function setLookup(value) { + context.lookup = value; + } + /** + The hash of environment variables used to control various configuration + settings. To specify your own or override default settings, add the + desired properties to a global hash named `EmberENV` (or `ENV` for + backwards compatibility with earlier versions of Ember). The `EmberENV` + hash must be created before loading Ember. + + @class EmberENV + @type Object + @public + */ + + + var ENV = { + ENABLE_OPTIONAL_FEATURES: false, + + /** + Determines whether Ember should add to `Array`, `Function`, and `String` + native object prototypes, a few extra methods in order to provide a more + friendly API. + We generally recommend leaving this option set to true however, if you need + to turn it off, you can add the configuration property + `EXTEND_PROTOTYPES` to `EmberENV` and set it to `false`. + Note, when disabled (the default configuration for Ember Addons), you will + instead have to access all methods and functions from the Ember + namespace. + @property EXTEND_PROTOTYPES + @type Boolean + @default true + @for EmberENV + @public + */ + EXTEND_PROTOTYPES: { + Array: true, + Function: true, + String: true + }, + + /** + The `LOG_STACKTRACE_ON_DEPRECATION` property, when true, tells Ember to log + a full stack trace during deprecation warnings. + @property LOG_STACKTRACE_ON_DEPRECATION + @type Boolean + @default true + @for EmberENV + @public + */ + LOG_STACKTRACE_ON_DEPRECATION: true, + + /** + The `LOG_VERSION` property, when true, tells Ember to log versions of all + dependent libraries in use. + @property LOG_VERSION + @type Boolean + @default true + @for EmberENV + @public + */ + LOG_VERSION: true, + RAISE_ON_DEPRECATION: false, + STRUCTURED_PROFILE: false, + + /** + Whether to insert a `
        ` wrapper around the + application template. See RFC #280. + This is not intended to be set directly, as the implementation may change in + the future. Use `@ember/optional-features` instead. + @property _APPLICATION_TEMPLATE_WRAPPER + @for EmberENV + @type Boolean + @default true + @private + */ + _APPLICATION_TEMPLATE_WRAPPER: true, + + /** + Whether to use Glimmer Component semantics (as opposed to the classic "Curly" + components semantics) for template-only components. See RFC #278. + This is not intended to be set directly, as the implementation may change in + the future. Use `@ember/optional-features` instead. + @property _TEMPLATE_ONLY_GLIMMER_COMPONENTS + @for EmberENV + @type Boolean + @default false + @private + */ + _TEMPLATE_ONLY_GLIMMER_COMPONENTS: false, + + /** + Whether to perform extra bookkeeping needed to make the `captureRenderTree` + API work. + This has to be set before the ember JavaScript code is evaluated. This is + usually done by setting `window.EmberENV = { _DEBUG_RENDER_TREE: true };` + or `window.ENV = { _DEBUG_RENDER_TREE: true };` before the "vendor" + ` + + + + + diff --git a/test-packages/my-app-ember-exam/test-dist/testem.js b/test-packages/my-app-ember-exam/test-dist/testem.js new file mode 100644 index 00000000..cb666df6 --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/testem.js @@ -0,0 +1,19 @@ +/* + * This is dummy file that exists for the sole purpose + * of allowing tests to run directly in the browser as + * well as by Testem. + * + * Testem is configured to run tests directly against + * the test build of index.html, which requires a + * snippet to load the testem.js file: + * + * This has to go before the qunit framework and app + * tests are loaded. + * + * Testem internally supplies this file. However, if you + * run the tests directly in the browser (localhost:8000/tests), + * this file does not exist. + * + * Hence the purpose of this fake file. This file is served + * directly from the express server to satisify the script load. + */ diff --git a/test-packages/my-app-ember-exam/test-dist/tests/index.html b/test-packages/my-app-ember-exam/test-dist/tests/index.html new file mode 100644 index 00000000..daec1a4c --- /dev/null +++ b/test-packages/my-app-ember-exam/test-dist/tests/index.html @@ -0,0 +1,39 @@ + + + + + + MyApp Tests + + + + + + + + + + + + + + + + +
        +
        + +
        +
        +
        + + + + + + + + + + + diff --git a/test-packages/my-app-ember-exam/testem.js b/test-packages/my-app-ember-exam/testem.js new file mode 100644 index 00000000..49f53fee --- /dev/null +++ b/test-packages/my-app-ember-exam/testem.js @@ -0,0 +1,27 @@ +'use strict'; + +module.exports = { + test_page: 'tests/index.html?hidepassed', + disable_watching: true, + launch_in_ci: [ + 'Chrome' + ], + launch_in_dev: [ + 'Chrome' + ], + browser_start_timeout: 120, + browser_args: { + Chrome: { + ci: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.CI ? '--no-sandbox' : null, + '--headless', + '--disable-dev-shm-usage', + '--disable-software-rasterizer', + '--mute-audio', + '--remote-debugging-port=0', + '--window-size=1440,900' + ].filter(Boolean) + } + } +}; diff --git a/test-packages/my-app-ember-exam/tests/index.html b/test-packages/my-app-ember-exam/tests/index.html new file mode 100644 index 00000000..702c961b --- /dev/null +++ b/test-packages/my-app-ember-exam/tests/index.html @@ -0,0 +1,33 @@ + + + + + + MyApp Tests + + + + {{content-for "head"}} + {{content-for "test-head"}} + + + + + + {{content-for "head-footer"}} + {{content-for "test-head-footer"}} + + + {{content-for "body"}} + {{content-for "test-body"}} + + + + + + + + {{content-for "body-footer"}} + {{content-for "test-body-footer"}} + + diff --git a/test-packages/my-app-ember-exam/tests/test-helper.js b/test-packages/my-app-ember-exam/tests/test-helper.js new file mode 100644 index 00000000..c6cd419c --- /dev/null +++ b/test-packages/my-app-ember-exam/tests/test-helper.js @@ -0,0 +1,15 @@ +import Application from '../app'; +import config from '../config/environment'; +import { setApplication } from '@ember/test-helpers'; +import { start } from 'ember-qunit'; +import QUnit from 'qunit'; +import { forceModulesToBeLoaded, sendCoverage } from 'ember-cli-code-coverage/test-support'; + +QUnit.done(async function() { + forceModulesToBeLoaded(); + await sendCoverage(); +}); + +setApplication(Application.create(config.APP)); + +start(); diff --git a/test-packages/my-app-ember-exam/tests/unit/utils/my-covered-util-test.js b/test-packages/my-app-ember-exam/tests/unit/utils/my-covered-util-test.js new file mode 100644 index 00000000..7da76d16 --- /dev/null +++ b/test-packages/my-app-ember-exam/tests/unit/utils/my-covered-util-test.js @@ -0,0 +1,10 @@ +import myCoveredUtil from 'my-app-ember-exam/utils/my-covered-util'; +import { module, test } from 'qunit'; + +module('Unit | Utility | my covered util'); + +// Replace this with your real tests. +test('it works', function (assert) { + let result = myCoveredUtil(); + assert.ok(result); +}); diff --git a/yarn.lock b/yarn.lock index 3f5ea98e..9f59a394 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,6 +2,14 @@ # yarn lockfile v1 +"@ampproject/remapping@^2.1.0": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.2.0.tgz#56c133824780de3174aed5ab6834f3026790154d" + integrity sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w== + dependencies: + "@jridgewell/gen-mapping" "^0.1.0" + "@jridgewell/trace-mapping" "^0.3.9" + "@babel/code-frame@7.12.11": version "7.12.11" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.12.11.tgz#f4ad435aa263db935b8f10f2c552d23fb716a63f" @@ -30,6 +38,13 @@ dependencies: "@babel/highlight" "^7.14.5" +"@babel/code-frame@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.18.6.tgz#3b25d38c89600baa2dcc219edfa88a74eb2c427a" + integrity sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q== + dependencies: + "@babel/highlight" "^7.18.6" + "@babel/compat-data@^7.10.0": version "7.10.0" resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.10.0.tgz#1e9129ec36bc7cc5ec202801d8af9529699b8d5e" @@ -53,6 +68,11 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.15.0.tgz#2dbaf8b85334796cafbb0f5793a90a2fc010b176" integrity sha512-0NqAC1IJE0S0+lL1SWFMxMkz1pKCNCjI4tr2Zx4LJSXxCLAdr6KyArnY+sno5m3yH9g737ygOyPABDsnXkpxiA== +"@babel/compat-data@^7.17.7", "@babel/compat-data@^7.18.8": + version "7.18.13" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.18.13.tgz#6aff7b350a1e8c3e40b029e46cbe78e24a913483" + integrity sha512-5yUzC5LqyTFp2HLmDoxGQelcdYgSpP9xsnMWBphAscOdFrHSAVbLNzWiy32sVNDqJRDiJK6klfDnAgu6PAGSHw== + "@babel/core@^7.1.0", "@babel/core@^7.11.0": version "7.11.6" resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.11.6.tgz#3a9455dc7387ff1bac45770650bc13ba04a15651" @@ -118,6 +138,27 @@ semver "^6.3.0" source-map "^0.5.0" +"@babel/core@^7.16.7": + version "7.18.13" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.18.13.tgz#9be8c44512751b05094a4d3ab05fc53a47ce00ac" + integrity sha512-ZisbOvRRusFktksHSG6pjj1CSvkPkcZq/KHD45LAkVP/oiHJkNBZWfpvlLmX8OtHDG8IuzsFlVRWo08w7Qxn0A== + dependencies: + "@ampproject/remapping" "^2.1.0" + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.18.13" + "@babel/helper-compilation-targets" "^7.18.9" + "@babel/helper-module-transforms" "^7.18.9" + "@babel/helpers" "^7.18.9" + "@babel/parser" "^7.18.13" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.18.13" + "@babel/types" "^7.18.13" + convert-source-map "^1.7.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.1" + semver "^6.3.0" + "@babel/generator@^7.10.0": version "7.10.0" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.10.0.tgz#a238837896edf35ee5fbfb074548d3256b4bc55d" @@ -146,6 +187,15 @@ jsesc "^2.5.1" source-map "^0.5.0" +"@babel/generator@^7.18.13": + version "7.18.13" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.18.13.tgz#59550cbb9ae79b8def15587bdfbaa388c4abf212" + integrity sha512-CkPg8ySSPuHTYPJYo7IRALdqyjM9HCbt/3uOBEFbzyGVP6Mn8bwFPB0jX6982JVNBlYzM1nnPkfjuXSOPtQeEQ== + dependencies: + "@babel/types" "^7.18.13" + "@jridgewell/gen-mapping" "^0.3.2" + jsesc "^2.5.1" + "@babel/helper-annotate-as-pure@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.10.4.tgz#5bf0d495a3f757ac3bda48b5bf3b3ba309c72ba3" @@ -160,6 +210,13 @@ dependencies: "@babel/types" "^7.15.4" +"@babel/helper-annotate-as-pure@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz#eaa49f6f80d5a33f9a5dd2276e6d6e451be0a6bb" + integrity sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-annotate-as-pure@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.8.3.tgz#60bc0bc657f63a0924ff9a4b4a0b24a13cf4deee" @@ -183,6 +240,14 @@ "@babel/helper-explode-assignable-expression" "^7.15.4" "@babel/types" "^7.15.4" +"@babel/helper-builder-binary-assignment-operator-visitor@^7.18.6": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz#acd4edfd7a566d1d51ea975dff38fd52906981bb" + integrity sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw== + dependencies: + "@babel/helper-explode-assignable-expression" "^7.18.6" + "@babel/types" "^7.18.9" + "@babel/helper-builder-binary-assignment-operator-visitor@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.8.3.tgz#c84097a427a061ac56a1c30ebf54b7b22d241503" @@ -223,6 +288,16 @@ browserslist "^4.16.6" semver "^6.3.0" +"@babel/helper-compilation-targets@^7.17.7", "@babel/helper-compilation-targets@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.18.9.tgz#69e64f57b524cde3e5ff6cc5a9f4a387ee5563bf" + integrity sha512-tzLCyVmqUiFlcFoAPLA/gL9TeYrF61VLNtb+hvkuVaB5SUjW7jcfrglBIX1vUIoT7CLP3bBlIMeyEsIl2eFQNg== + dependencies: + "@babel/compat-data" "^7.18.8" + "@babel/helper-validator-option" "^7.18.6" + browserslist "^4.20.2" + semver "^6.3.0" + "@babel/helper-create-class-features-plugin@^7.10.0", "@babel/helper-create-class-features-plugin@^7.5.5", "@babel/helper-create-class-features-plugin@^7.8.3": version "7.10.0" resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.10.0.tgz#3a2b7b86f6365ea4ac3837a49ec5791e65217944" @@ -259,6 +334,19 @@ "@babel/helper-replace-supers" "^7.15.4" "@babel/helper-split-export-declaration" "^7.15.4" +"@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.18.9": + version "7.18.13" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.18.13.tgz#63e771187bd06d234f95fdf8bd5f8b6429de6298" + integrity sha512-hDvXp+QYxSRL+23mpAlSGxHMDyIGChm0/AwTfTAAK5Ufe40nCsyNdaYCGuK91phn/fVu9kqayImRDkvNAgdrsA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.18.9" + "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/helper-replace-supers" "^7.18.9" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/helper-create-regexp-features-plugin@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.10.4.tgz#fdd60d88524659a0b6959c0579925e425714f3b8" @@ -276,6 +364,14 @@ "@babel/helper-annotate-as-pure" "^7.14.5" regexpu-core "^4.7.1" +"@babel/helper-create-regexp-features-plugin@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.18.6.tgz#3e35f4e04acbbf25f1b3534a657610a000543d3c" + integrity sha512-7LcpH1wnQLGrI+4v+nPp+zUvIkF9x0ddv1Hkdue10tg3gmRnLy97DXh4STiOf1qeIInyD69Qv5kKSZzKD8B/7A== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + regexpu-core "^5.1.0" + "@babel/helper-create-regexp-features-plugin@^7.8.3", "@babel/helper-create-regexp-features-plugin@^7.8.8": version "7.8.8" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.8.8.tgz#5d84180b588f560b7864efaeea89243e58312087" @@ -317,6 +413,23 @@ resolve "^1.14.2" semver "^6.1.2" +"@babel/helper-define-polyfill-provider@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.2.tgz#bd10d0aca18e8ce012755395b05a79f45eca5073" + integrity sha512-r9QJJ+uDWrd+94BSPcP6/de67ygLtvVy6cK4luE6MOuDsZIdoaPBnfSpbO/+LTifjPckbKXRuI9BB/Z2/y3iTg== + dependencies: + "@babel/helper-compilation-targets" "^7.17.7" + "@babel/helper-plugin-utils" "^7.16.7" + debug "^4.1.1" + lodash.debounce "^4.0.8" + resolve "^1.14.2" + semver "^6.1.2" + +"@babel/helper-environment-visitor@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz#0c0cee9b35d2ca190478756865bb3528422f51be" + integrity sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg== + "@babel/helper-explode-assignable-expression@^7.10.4": version "7.11.4" resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.11.4.tgz#2d8e3470252cc17aba917ede7803d4a7a276a41b" @@ -331,6 +444,13 @@ dependencies: "@babel/types" "^7.15.4" +"@babel/helper-explode-assignable-expression@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz#41f8228ef0a6f1a036b8dfdfec7ce94f9a6bc096" + integrity sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-explode-assignable-expression@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.8.3.tgz#a728dc5b4e89e30fc2dfc7d04fa28a930653f982" @@ -357,6 +477,14 @@ "@babel/template" "^7.15.4" "@babel/types" "^7.15.4" +"@babel/helper-function-name@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.18.9.tgz#940e6084a55dee867d33b4e487da2676365e86b0" + integrity sha512-fJgWlZt7nxGksJS9a0XdSaI4XvpExnNIgRP+rVefWh5U7BL8pPuir6SJUmFKRfjWQ51OtWSzwOxhaH/EBWWc0A== + dependencies: + "@babel/template" "^7.18.6" + "@babel/types" "^7.18.9" + "@babel/helper-function-name@^7.8.3", "@babel/helper-function-name@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.9.5.tgz#2b53820d35275120e1874a82e5aabe1376920a5c" @@ -401,6 +529,13 @@ dependencies: "@babel/types" "^7.15.4" +"@babel/helper-hoist-variables@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz#d4d2c8fb4baeaa5c68b99cc8245c56554f926678" + integrity sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-hoist-variables@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.8.3.tgz#1dbe9b6b55d78c9b4183fc8cdc6e30ceb83b7134" @@ -429,6 +564,13 @@ dependencies: "@babel/types" "^7.15.4" +"@babel/helper-member-expression-to-functions@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz#1531661e8375af843ad37ac692c132841e2fd815" + integrity sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg== + dependencies: + "@babel/types" "^7.18.9" + "@babel/helper-module-imports@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.10.4.tgz#4c5c54be04bd31670a7382797d75b9fa2e5b5620" @@ -443,6 +585,13 @@ dependencies: "@babel/types" "^7.15.4" +"@babel/helper-module-imports@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz#1e3ebdbbd08aad1437b428c50204db13c5a3ca6e" + integrity sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-module-imports@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz#7fe39589b39c016331b6b8c3f441e8f0b1419498" @@ -477,6 +626,20 @@ "@babel/traverse" "^7.15.4" "@babel/types" "^7.15.6" +"@babel/helper-module-transforms@^7.18.6", "@babel/helper-module-transforms@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.18.9.tgz#5a1079c005135ed627442df31a42887e80fcb712" + integrity sha512-KYNqY0ICwfv19b31XzvmI/mfcylOzbLtowkw+mfvGPAQ3kfCnMLYbED3YecL5tPd8nAYFQFAd6JHp2LxZk/J1g== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-simple-access" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/helper-validator-identifier" "^7.18.6" + "@babel/template" "^7.18.6" + "@babel/traverse" "^7.18.9" + "@babel/types" "^7.18.9" + "@babel/helper-module-transforms@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.9.0.tgz#43b34dfe15961918707d247327431388e9fe96e5" @@ -511,6 +674,13 @@ dependencies: "@babel/types" "^7.15.4" +"@babel/helper-optimise-call-expression@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz#9369aa943ee7da47edab2cb4e838acf09d290ffe" + integrity sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz#9ea293be19babc0f52ff8ca88b34c3611b208670" @@ -526,6 +696,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.14.5.tgz#5ac822ce97eec46741ab70a517971e443a70c5a9" integrity sha512-/37qQCE3K0vvZKwoK4XU/irIJQdIfCJuhU5eKnNxpFDsOkgFaUAwbv+RYw6eYgsC0E4hS7r5KqGULUogqui0fQ== +"@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.18.9.tgz#4b8aea3b069d8cb8a72cdfe28ddf5ceca695ef2f" + integrity sha512-aBXPT3bmtLryXaoJLyYPXPlSD4p1ld9aYeR+sJNOZjJJGiOpb+fKfh3NkcCu7J54nUJwCERPBExCCpyCOHnu/w== + "@babel/helper-regex@^7.10.4": version "7.10.5" resolved "https://registry.yarnpkg.com/@babel/helper-regex/-/helper-regex-7.10.5.tgz#32dfbb79899073c415557053a19bd055aae50ae0" @@ -559,6 +734,16 @@ "@babel/helper-wrap-function" "^7.15.4" "@babel/types" "^7.15.4" +"@babel/helper-remap-async-to-generator@^7.18.6", "@babel/helper-remap-async-to-generator@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz#997458a0e3357080e54e1d79ec347f8a8cd28519" + integrity sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-wrap-function" "^7.18.9" + "@babel/types" "^7.18.9" + "@babel/helper-remap-async-to-generator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.8.3.tgz#273c600d8b9bf5006142c1e35887d555c12edd86" @@ -600,6 +785,17 @@ "@babel/traverse" "^7.15.4" "@babel/types" "^7.15.4" +"@babel/helper-replace-supers@^7.18.6", "@babel/helper-replace-supers@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.18.9.tgz#1092e002feca980fbbb0bd4d51b74a65c6a500e6" + integrity sha512-dNsWibVI4lNT6HiuOIBr1oyxo40HvIVmbwPUm3XZ7wMh4k2WxrxTqZwSqw/eEmXDS9np0ey5M2bz9tBmO9c+YQ== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-member-expression-to-functions" "^7.18.9" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/traverse" "^7.18.9" + "@babel/types" "^7.18.9" + "@babel/helper-simple-access@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.10.4.tgz#0f5ccda2945277a2a7a2d3a821e15395edcf3461" @@ -615,6 +811,13 @@ dependencies: "@babel/types" "^7.15.4" +"@babel/helper-simple-access@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.18.6.tgz#d6d8f51f4ac2978068df934b569f08f29788c7ea" + integrity sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-simple-access@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.8.3.tgz#7f8109928b4dab4654076986af575231deb639ae" @@ -637,6 +840,13 @@ dependencies: "@babel/types" "^7.15.4" +"@babel/helper-skip-transparent-expression-wrappers@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.18.9.tgz#778d87b3a758d90b471e7b9918f34a9a02eb5818" + integrity sha512-imytd2gHi3cJPsybLRbmFrF7u5BIEuI2cNheyKi3/iOBC63kNn3q8Crn2xVuESli0aM4KYsyEqKyS7lFL8YVtw== + dependencies: + "@babel/types" "^7.18.9" + "@babel/helper-split-export-declaration@^7.10.4", "@babel/helper-split-export-declaration@^7.11.0": version "7.11.0" resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.11.0.tgz#f8a491244acf6a676158ac42072911ba83ad099f" @@ -651,6 +861,13 @@ dependencies: "@babel/types" "^7.15.4" +"@babel/helper-split-export-declaration@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz#7367949bc75b20c6d5a5d4a97bba2824ae8ef075" + integrity sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA== + dependencies: + "@babel/types" "^7.18.6" + "@babel/helper-split-export-declaration@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz#31a9f30070f91368a7182cf05f831781065fc7a9" @@ -658,6 +875,11 @@ dependencies: "@babel/types" "^7.8.3" +"@babel/helper-string-parser@^7.18.10": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.18.10.tgz#181f22d28ebe1b3857fa575f5c290b1aaf659b56" + integrity sha512-XtIfWmeNY3i4t7t4D2t02q50HvqHybPqW2ki1kosnvWCwuCMeo81Jf0gwr85jy/neUdg5XDdeFE/80DXiO+njw== + "@babel/helper-validator-identifier@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.10.4.tgz#a78c7a7251e01f616512d31b10adcf52ada5e0d2" @@ -668,6 +890,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.15.7.tgz#220df993bfe904a4a6b02ab4f3385a5ebf6e2389" integrity sha512-K4JvCtQqad9OY2+yTU8w+E82ywk/fe+ELNlt1G8z3bVGlZfn/hOcQQsUhGhW/N+tb3fxK800wLtKOE/aM0m72w== +"@babel/helper-validator-identifier@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.18.6.tgz#9c97e30d31b2b8c72a1d08984f2ca9b574d7a076" + integrity sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g== + "@babel/helper-validator-identifier@^7.9.0", "@babel/helper-validator-identifier@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz#90977a8e6fbf6b431a7dc31752eee233bf052d80" @@ -678,6 +905,11 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.14.5.tgz#6e72a1fff18d5dfcb878e1e62f1a021c4b72d5a3" integrity sha512-OX8D5eeX4XwcroVW45NMvoYaIuFI+GQpA2a8Gi+X/U/cDUIRsV37qQfF905F0htTRCREQIB4KqPeaveRJUl3Ow== +"@babel/helper-validator-option@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz#bf0d2b5a509b1f336099e4ff36e1a63aa5db4db8" + integrity sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw== + "@babel/helper-wrap-function@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.10.4.tgz#8a6f701eab0ff39f765b5a1cfef409990e624b87" @@ -698,6 +930,16 @@ "@babel/traverse" "^7.15.4" "@babel/types" "^7.15.4" +"@babel/helper-wrap-function@^7.18.9": + version "7.18.11" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.18.11.tgz#bff23ace436e3f6aefb61f85ffae2291c80ed1fb" + integrity sha512-oBUlbv+rjZLh2Ks9SKi4aL7eKaAXBWleHzU89mP0G6BMUlRxSckk9tSIkgDGydhgFxHuGSlBQZfnaD47oBEB7w== + dependencies: + "@babel/helper-function-name" "^7.18.9" + "@babel/template" "^7.18.10" + "@babel/traverse" "^7.18.11" + "@babel/types" "^7.18.10" + "@babel/helper-wrap-function@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.8.3.tgz#9dbdb2bb55ef14aaa01fe8c99b629bd5352d8610" @@ -735,6 +977,15 @@ "@babel/traverse" "^7.15.4" "@babel/types" "^7.15.4" +"@babel/helpers@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.18.9.tgz#4bef3b893f253a1eced04516824ede94dcfe7ff9" + integrity sha512-Jf5a+rbrLoR4eNdUmnFu8cN5eNJT6qdTdOg5IHIzq87WwyRw9PwguLFOWYgktN/60IP4fgDUawJvs7PjQIzELQ== + dependencies: + "@babel/template" "^7.18.6" + "@babel/traverse" "^7.18.9" + "@babel/types" "^7.18.9" + "@babel/highlight@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.10.4.tgz#7d1bdfd65753538fabe6c38596cdb76d9ac60143" @@ -753,6 +1004,15 @@ chalk "^2.0.0" js-tokens "^4.0.0" +"@babel/highlight@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.18.6.tgz#81158601e93e2563795adcbfbdf5d64be3f2ecdf" + integrity sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g== + dependencies: + "@babel/helper-validator-identifier" "^7.18.6" + chalk "^2.0.0" + js-tokens "^4.0.0" + "@babel/highlight@^7.8.3": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.9.0.tgz#4e9b45ccb82b79607271b2979ad82c7b68163079" @@ -777,6 +1037,18 @@ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.8.tgz#7bacdcbe71bdc3ff936d510c15dcea7cf0b99016" integrity sha512-BRYa3wcQnjS/nqI8Ac94pYYpJfojHVvVXJ97+IDCImX4Jc8W8Xv1+47enbruk+q1etOpsQNwnfFcNGw+gtPGxA== +"@babel/parser@^7.18.10", "@babel/parser@^7.18.13": + version "7.18.13" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.18.13.tgz#5b2dd21cae4a2c5145f1fbd8ca103f9313d3b7e4" + integrity sha512-dgXcIfMuQ0kgzLB2b9tRZs7TTFFaGM2AbtA4fJgUUYukzGH4jwsS7hzQHEGs67jdehpm22vkgKwvbU+aEflgwg== + +"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz#da5b8f9a580acdfbe53494dba45ea389fb09a4d2" + integrity sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.15.4.tgz#dbdeabb1e80f622d9f0b583efb2999605e0a567e" @@ -786,6 +1058,15 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.15.4" "@babel/plugin-proposal-optional-chaining" "^7.14.5" +"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz#a11af19aa373d68d561f08e0a57242350ed0ec50" + integrity sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" + "@babel/plugin-proposal-optional-chaining" "^7.18.9" + "@babel/plugin-proposal-async-generator-functions@^7.10.4": version "7.10.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.10.5.tgz#3491cabf2f7c179ab820606cec27fed15e0e8558" @@ -804,6 +1085,16 @@ "@babel/helper-remap-async-to-generator" "^7.15.4" "@babel/plugin-syntax-async-generators" "^7.8.4" +"@babel/plugin-proposal-async-generator-functions@^7.18.10": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.18.10.tgz#85ea478c98b0095c3e4102bff3b67d306ed24952" + integrity sha512-1mFuY2TOsR1hxbjCo4QL+qlIjV07p4H4EUYw2J/WCqsvFV6V9X9z9YhXbWndc/4fw+hYGlDT7egYxliMp5O6Ew== + dependencies: + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-remap-async-to-generator" "^7.18.9" + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-proposal-async-generator-functions@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.8.3.tgz#bad329c670b382589721b27540c7d288601c6e6f" @@ -837,6 +1128,14 @@ "@babel/helper-create-class-features-plugin" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-proposal-class-properties@^7.16.5", "@babel/plugin-proposal-class-properties@^7.16.7", "@babel/plugin-proposal-class-properties@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz#b110f59741895f7ec21a6fff696ec46265c446a3" + integrity sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-proposal-class-static-block@^7.15.4": version "7.15.4" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.15.4.tgz#3e7ca6128453c089e8b477a99f970c63fc1cb8d7" @@ -846,6 +1145,15 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-class-static-block" "^7.14.5" +"@babel/plugin-proposal-class-static-block@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz#8aa81d403ab72d3962fc06c26e222dacfc9b9020" + integrity sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + "@babel/plugin-proposal-decorators@^7.10.5": version "7.10.5" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.10.5.tgz#42898bba478bc4b1ae242a703a953a7ad350ffb4" @@ -864,6 +1172,17 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-decorators" "^7.14.5" +"@babel/plugin-proposal-decorators@^7.16.7": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.18.10.tgz#788650d01e518a8a722eb8b3055dd9d73ecb7a35" + integrity sha512-wdGTwWF5QtpTY/gbBtQLAiCnoxfD4qMbN87NYZle1dOZ9Os8Y6zXcKrIaOU8W+TIvFUWVGG9tUgNww3CjXRVVw== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.18.9" + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-replace-supers" "^7.18.9" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/plugin-syntax-decorators" "^7.18.6" + "@babel/plugin-proposal-decorators@^7.8.3": version "7.10.0" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.10.0.tgz#aa1c82288d9af1f2a5bc759e5dffbca8f8d01ea1" @@ -889,6 +1208,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-dynamic-import" "^7.8.3" +"@babel/plugin-proposal-dynamic-import@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz#72bcf8d408799f547d759298c3c27c7e7faa4d94" + integrity sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + "@babel/plugin-proposal-dynamic-import@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.8.3.tgz#38c4fe555744826e97e2ae930b0fb4cc07e66054" @@ -913,6 +1240,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-export-namespace-from" "^7.8.3" +"@babel/plugin-proposal-export-namespace-from@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz#5f7313ab348cdb19d590145f9247540e94761203" + integrity sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + "@babel/plugin-proposal-json-strings@^7.10.0": version "7.10.0" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.10.0.tgz#72926c31c14ff4f04916a0b17d376cdfb7fa1d84" @@ -937,6 +1272,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-json-strings" "^7.8.3" +"@babel/plugin-proposal-json-strings@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz#7e8788c1811c393aff762817e7dbf1ebd0c05f0b" + integrity sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-proposal-logical-assignment-operators@^7.11.0": version "7.11.0" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.11.0.tgz#9f80e482c03083c87125dee10026b58527ea20c8" @@ -953,6 +1296,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" +"@babel/plugin-proposal-logical-assignment-operators@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz#8148cbb350483bf6220af06fa6db3690e14b2e23" + integrity sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + "@babel/plugin-proposal-nullish-coalescing-operator@^7.10.4", "@babel/plugin-proposal-nullish-coalescing-operator@^7.4.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.10.4.tgz#02a7e961fc32e6d5b2db0649e01bf80ddee7e04a" @@ -969,6 +1320,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" +"@babel/plugin-proposal-nullish-coalescing-operator@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz#fdd940a99a740e577d6c753ab6fbb43fdb9467e1" + integrity sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-proposal-nullish-coalescing-operator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.8.3.tgz#e4572253fdeed65cddeecfdab3f928afeb2fd5d2" @@ -993,6 +1352,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-numeric-separator" "^7.10.4" +"@babel/plugin-proposal-numeric-separator@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz#899b14fbafe87f053d2c5ff05b36029c62e13c75" + integrity sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" + "@babel/plugin-proposal-numeric-separator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.8.3.tgz#5d6769409699ec9b3b68684cd8116cedff93bad8" @@ -1030,6 +1397,17 @@ "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-transform-parameters" "^7.15.4" +"@babel/plugin-proposal-object-rest-spread@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.18.9.tgz#f9434f6beb2c8cae9dfcf97d2a5941bbbf9ad4e7" + integrity sha512-kDDHQ5rflIeY5xl69CEqGEZ0KY369ehsCIEbTGb4siHG5BE9sga/T0r0OUwyZNLMmZE79E1kbsqAjwFCW4ds6Q== + dependencies: + "@babel/compat-data" "^7.18.8" + "@babel/helper-compilation-targets" "^7.18.9" + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-transform-parameters" "^7.18.8" + "@babel/plugin-proposal-optional-catch-binding@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.10.4.tgz#31c938309d24a78a49d68fdabffaa863758554dd" @@ -1046,6 +1424,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" +"@babel/plugin-proposal-optional-catch-binding@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz#f9400d0e6a3ea93ba9ef70b09e72dd6da638a2cb" + integrity sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-proposal-optional-catch-binding@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.8.3.tgz#9dee96ab1650eed88646ae9734ca167ac4a9c5c9" @@ -1080,6 +1466,15 @@ "@babel/helper-skip-transparent-expression-wrappers" "^7.14.5" "@babel/plugin-syntax-optional-chaining" "^7.8.3" +"@babel/plugin-proposal-optional-chaining@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz#e8e8fe0723f2563960e4bf5e9690933691915993" + integrity sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-proposal-private-methods@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.10.4.tgz#b160d972b8fdba5c7d111a145fc8c421fc2a6909" @@ -1096,6 +1491,14 @@ "@babel/helper-create-class-features-plugin" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-proposal-private-methods@^7.16.5", "@babel/plugin-proposal-private-methods@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz#5209de7d213457548a98436fa2882f52f4be6bea" + integrity sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-proposal-private-methods@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.8.3.tgz#01248c6c8dc292116b3b4ebd746150f4f0728bab" @@ -1114,6 +1517,16 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-private-property-in-object" "^7.14.5" +"@babel/plugin-proposal-private-property-in-object@^7.16.5", "@babel/plugin-proposal-private-property-in-object@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.18.6.tgz#a64137b232f0aca3733a67eb1a144c192389c503" + integrity sha512-9Rysx7FOctvT5ouj5JODjAFAkgGoudQuLPamZb0v1TGLpapdNaftzifU8NTWQm0IRjqoYypdrSmyWgkocDQ8Dw== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-create-class-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@babel/plugin-proposal-unicode-property-regex@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.10.4.tgz#4483cda53041ce3413b7fe2f00022665ddfaa75d" @@ -1130,6 +1543,14 @@ "@babel/helper-create-regexp-features-plugin" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-proposal-unicode-property-regex@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz#af613d2cd5e643643b65cded64207b15c85cb78e" + integrity sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-proposal-unicode-property-regex@^7.4.4", "@babel/plugin-proposal-unicode-property-regex@^7.8.3": version "7.8.8" resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.8.8.tgz#ee3a95e90cdc04fe8cd92ec3279fa017d68a0d1d" @@ -1194,6 +1615,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-syntax-decorators@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.18.6.tgz#2e45af22835d0b0f8665da2bfd4463649ce5dbc1" + integrity sha512-fqyLgjcxf/1yhyZ6A+yo1u9gJ7eleFQod2lkaUsF9DQ7sbbY3Ligym3L0+I2c0WmqNKDpoD9UTb1AKP3qRMOAQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-decorators@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.8.3.tgz#8d2c15a9f1af624b0025f961682a9d53d3001bda" @@ -1215,6 +1643,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.3" +"@babel/plugin-syntax-import-assertions@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.18.6.tgz#cd6190500a4fa2fe31990a963ffab4b63e4505e4" + integrity sha512-/DU3RXad9+bZwrgWJQKbr39gYbJpLJHezqEzRzi/BHRlJ9zsQb4CK2CA/5apllXNomwA1qHwzvHl+AdEmC5krQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-syntax-import-meta@^7.8.3": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" @@ -1341,6 +1776,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-arrow-functions@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz#19063fcf8771ec7b31d742339dac62433d0611fe" + integrity sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-arrow-functions@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.8.3.tgz#82776c2ed0cd9e1a49956daeb896024c9473b8b6" @@ -1366,6 +1808,15 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/helper-remap-async-to-generator" "^7.14.5" +"@babel/plugin-transform-async-to-generator@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz#ccda3d1ab9d5ced5265fdb13f1882d5476c71615" + integrity sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag== + dependencies: + "@babel/helper-module-imports" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-remap-async-to-generator" "^7.18.6" + "@babel/plugin-transform-async-to-generator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.8.3.tgz#4308fad0d9409d71eafb9b1a6ee35f9d64b64086" @@ -1389,6 +1840,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-block-scoped-functions@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz#9187bf4ba302635b9d70d986ad70f038726216a8" + integrity sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-block-scoped-functions@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.8.3.tgz#437eec5b799b5852072084b3ae5ef66e8349e8a3" @@ -1418,6 +1876,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-block-scoping@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.18.9.tgz#f9b7e018ac3f373c81452d6ada8bd5a18928926d" + integrity sha512-5sDIJRV1KtQVEbt/EIBwGy4T01uYIo4KRB3VUqzkhrAIOGx7AoctL9+Ux88btY0zXdDyPJ9mW+bg+v+XEkGmtw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-transform-classes@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.10.4.tgz#405136af2b3e218bc4a1926228bc917ab1a0adc7" @@ -1445,6 +1910,20 @@ "@babel/helper-split-export-declaration" "^7.15.4" globals "^11.1.0" +"@babel/plugin-transform-classes@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.18.9.tgz#90818efc5b9746879b869d5ce83eb2aa48bbc3da" + integrity sha512-EkRQxsxoytpTlKJmSPYrsOMjCILacAjtSVkd4gChEe2kXjFCun3yohhW5I7plXJhCemM0gKsaGMcO8tinvCA5g== + dependencies: + "@babel/helper-annotate-as-pure" "^7.18.6" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.18.9" + "@babel/helper-optimise-call-expression" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-replace-supers" "^7.18.9" + "@babel/helper-split-export-declaration" "^7.18.6" + globals "^11.1.0" + "@babel/plugin-transform-classes@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.9.5.tgz#800597ddb8aefc2c293ed27459c1fcc935a26c2c" @@ -1473,6 +1952,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-computed-properties@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz#2357a8224d402dad623caf6259b611e56aec746e" + integrity sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-transform-computed-properties@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.8.3.tgz#96d0d28b7f7ce4eb5b120bb2e0e943343c86f81b" @@ -1501,6 +1987,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-destructuring@^7.18.9": + version "7.18.13" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.18.13.tgz#9e03bc4a94475d62b7f4114938e6c5c33372cbf5" + integrity sha512-TodpQ29XekIsex2A+YJPj5ax2plkGa8YYY6mFjCohk/IG9IY42Rtuj1FuDeemfg2ipxIFLzPeA83SIBnlhSIow== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-transform-dotall-regex@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.10.4.tgz#469c2062105c1eb6a040eaf4fac4b488078395ee" @@ -1517,6 +2010,14 @@ "@babel/helper-create-regexp-features-plugin" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-dotall-regex@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz#b286b3e7aae6c7b861e45bed0a2fafd6b1a4fef8" + integrity sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-dotall-regex@^7.4.4", "@babel/plugin-transform-dotall-regex@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.8.3.tgz#c3c6ec5ee6125c6993c5cbca20dc8621a9ea7a6e" @@ -1539,6 +2040,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-duplicate-keys@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz#687f15ee3cdad6d85191eb2a372c4528eaa0ae0e" + integrity sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-transform-duplicate-keys@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.8.3.tgz#8d12df309aa537f272899c565ea1768e286e21f1" @@ -1562,6 +2070,14 @@ "@babel/helper-builder-binary-assignment-operator-visitor" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-exponentiation-operator@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz#421c705f4521888c65e91fdd1af951bfefd4dacd" + integrity sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw== + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-exponentiation-operator@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.8.3.tgz#581a6d7f56970e06bf51560cd64f5e947b70d7b7" @@ -1591,6 +2107,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-for-of@^7.18.8": + version "7.18.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz#6ef8a50b244eb6a0bdbad0c7c61877e4e30097c1" + integrity sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-function-name@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.10.4.tgz#6a467880e0fc9638514ba369111811ddbe2644b7" @@ -1607,6 +2130,15 @@ "@babel/helper-function-name" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-function-name@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz#cc354f8234e62968946c61a46d6365440fc764e0" + integrity sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ== + dependencies: + "@babel/helper-compilation-targets" "^7.18.9" + "@babel/helper-function-name" "^7.18.9" + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-transform-function-name@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.8.3.tgz#279373cb27322aaad67c2683e776dfc47196ed8b" @@ -1629,6 +2161,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-literals@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz#72796fdbef80e56fba3c6a699d54f0de557444bc" + integrity sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-transform-literals@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.8.3.tgz#aef239823d91994ec7b68e55193525d76dbd5dc1" @@ -1650,6 +2189,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-member-expression-literals@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz#ac9fdc1a118620ac49b7e7a5d2dc177a1bfee88e" + integrity sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-member-expression-literals@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.8.3.tgz#963fed4b620ac7cbf6029c755424029fa3a40410" @@ -1675,6 +2221,15 @@ "@babel/helper-plugin-utils" "^7.14.5" babel-plugin-dynamic-import-node "^2.3.3" +"@babel/plugin-transform-modules-amd@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.18.6.tgz#8c91f8c5115d2202f277549848874027d7172d21" + integrity sha512-Pra5aXsmTsOnjM3IajS8rTaLCy++nGM4v3YR4esk5PCsyg9z8NA5oQLwxzMUtDBd8F+UmVza3VxoAaWCbzH1rg== + dependencies: + "@babel/helper-module-transforms" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + babel-plugin-dynamic-import-node "^2.3.3" + "@babel/plugin-transform-modules-amd@^7.7.5", "@babel/plugin-transform-modules-amd@^7.9.0", "@babel/plugin-transform-modules-amd@^7.9.6": version "7.9.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.9.6.tgz#8539ec42c153d12ea3836e0e3ac30d5aae7b258e" @@ -1704,6 +2259,16 @@ "@babel/helper-simple-access" "^7.15.4" babel-plugin-dynamic-import-node "^2.3.3" +"@babel/plugin-transform-modules-commonjs@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.18.6.tgz#afd243afba166cca69892e24a8fd8c9f2ca87883" + integrity sha512-Qfv2ZOWikpvmedXQJDSbxNqy7Xr/j2Y8/KfijM0iJyKkBTmWuvCA1yeH1yDM7NJhBW/2aXxeucLj6i80/LAJ/Q== + dependencies: + "@babel/helper-module-transforms" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-simple-access" "^7.18.6" + babel-plugin-dynamic-import-node "^2.3.3" + "@babel/plugin-transform-modules-commonjs@^7.9.6": version "7.9.6" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.9.6.tgz#64b7474a4279ee588cacd1906695ca721687c277" @@ -1745,6 +2310,17 @@ "@babel/helper-validator-identifier" "^7.14.9" babel-plugin-dynamic-import-node "^2.3.3" +"@babel/plugin-transform-modules-systemjs@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.18.9.tgz#545df284a7ac6a05125e3e405e536c5853099a06" + integrity sha512-zY/VSIbbqtoRoJKo2cDTewL364jSlZGvn0LKOf9ntbfxOvjfmyrdtEEOAdswOswhZEb8UH3jDkCKHd1sPgsS0A== + dependencies: + "@babel/helper-hoist-variables" "^7.18.6" + "@babel/helper-module-transforms" "^7.18.9" + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-validator-identifier" "^7.18.6" + babel-plugin-dynamic-import-node "^2.3.3" + "@babel/plugin-transform-modules-umd@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.10.4.tgz#9a8481fe81b824654b3a0b65da3df89f3d21839e" @@ -1761,6 +2337,14 @@ "@babel/helper-module-transforms" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-modules-umd@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz#81d3832d6034b75b54e62821ba58f28ed0aab4b9" + integrity sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ== + dependencies: + "@babel/helper-module-transforms" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-modules-umd@^7.9.0": version "7.9.0" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.9.0.tgz#e909acae276fec280f9b821a5f38e1f08b480697" @@ -1783,6 +2367,14 @@ dependencies: "@babel/helper-create-regexp-features-plugin" "^7.14.5" +"@babel/plugin-transform-named-capturing-groups-regex@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.18.6.tgz#c89bfbc7cc6805d692f3a49bc5fc1b630007246d" + integrity sha512-UmEOGF8XgaIqD74bC8g7iV3RYj8lMf0Bw7NJzvnS9qQhM4mg+1WHKotUIdjxgD2RGrgFLZZPCFPFj3P/kVDYhg== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-named-capturing-groups-regex@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.8.3.tgz#a2a72bffa202ac0e2d0506afd0939c5ecbc48c6c" @@ -1804,6 +2396,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-new-target@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz#d128f376ae200477f37c4ddfcc722a8a1b3246a8" + integrity sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-new-target@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.8.3.tgz#60cc2ae66d85c95ab540eb34babb6434d4c70c43" @@ -1834,6 +2433,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/helper-replace-supers" "^7.14.5" +"@babel/plugin-transform-object-super@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz#fb3c6ccdd15939b6ff7939944b51971ddc35912c" + integrity sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/helper-replace-supers" "^7.18.6" + "@babel/plugin-transform-object-super@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.8.3.tgz#ebb6a1e7a86ffa96858bd6ac0102d65944261725" @@ -1857,6 +2464,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-parameters@^7.18.8": + version "7.18.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.18.8.tgz#ee9f1a0ce6d78af58d0956a9378ea3427cccb48a" + integrity sha512-ivfbE3X2Ss+Fj8nnXvKJS6sjRG4gzwPMsP+taZC+ZzEGjAYlvENixmt1sZ5Ca6tWls+BlKSGKPJ6OOXvXCbkFg== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-parameters@^7.9.5": version "7.9.5" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.9.5.tgz#173b265746f5e15b2afe527eeda65b73623a0795" @@ -1879,6 +2493,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-property-literals@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz#e22498903a483448e94e032e9bbb9c5ccbfc93a3" + integrity sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-property-literals@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.8.3.tgz#33194300d8539c1ed28c62ad5087ba3807b98263" @@ -1900,6 +2521,14 @@ dependencies: regenerator-transform "^0.14.2" +"@babel/plugin-transform-regenerator@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.18.6.tgz#585c66cb84d4b4bf72519a34cfce761b8676ca73" + integrity sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + regenerator-transform "^0.15.0" + "@babel/plugin-transform-regenerator@^7.8.7": version "7.8.7" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.8.7.tgz#5e46a0dca2bee1ad8285eb0527e6abc9c37672f8" @@ -1921,6 +2550,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-reserved-words@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz#b1abd8ebf8edaa5f7fe6bbb8d2133d23b6a6f76a" + integrity sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-reserved-words@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.8.3.tgz#9a0635ac4e665d29b162837dd3cc50745dfdf1f5" @@ -1974,6 +2610,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-shorthand-properties@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz#6d6df7983d67b195289be24909e3f12a8f664dc9" + integrity sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-shorthand-properties@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.8.3.tgz#28545216e023a832d4d3a1185ed492bcfeac08c8" @@ -2004,6 +2647,14 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/helper-skip-transparent-expression-wrappers" "^7.15.4" +"@babel/plugin-transform-spread@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.18.9.tgz#6ea7a6297740f381c540ac56caf75b05b74fb664" + integrity sha512-39Q814wyoOPtIB/qGopNIL9xDChOE1pNU0ZY5dO0owhiVt/5kFm4li+/bBtwc7QotG0u5EPzqhZdjMtmqBqyQA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-skip-transparent-expression-wrappers" "^7.18.9" + "@babel/plugin-transform-sticky-regex@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.10.4.tgz#8f3889ee8657581130a29d9cc91d7c73b7c4a28d" @@ -2019,6 +2670,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-sticky-regex@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz#c6706eb2b1524028e317720339583ad0f444adcc" + integrity sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q== + dependencies: + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-sticky-regex@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.8.3.tgz#be7a1290f81dae767475452199e1f76d6175b100" @@ -2042,6 +2700,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-template-literals@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz#04ec6f10acdaa81846689d63fae117dd9c243a5e" + integrity sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-transform-template-literals@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.8.3.tgz#7bfa4732b455ea6a43130adc0ba767ec0e402a80" @@ -2064,6 +2729,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-typeof-symbol@^7.18.9": + version "7.18.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz#c8cea68263e45addcd6afc9091429f80925762c0" + integrity sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-transform-typeof-symbol@^7.8.4": version "7.8.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.8.4.tgz#ede4062315ce0aaf8a657a920858f1a2f35fc412" @@ -2145,6 +2817,13 @@ dependencies: "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-unicode-escapes@^7.18.10": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz#1ecfb0eda83d09bbcb77c09970c2dd55832aa246" + integrity sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ== + dependencies: + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/plugin-transform-unicode-regex@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.10.4.tgz#e56d71f9282fac6db09c82742055576d5e6d80a8" @@ -2161,6 +2840,14 @@ "@babel/helper-create-regexp-features-plugin" "^7.14.5" "@babel/helper-plugin-utils" "^7.14.5" +"@babel/plugin-transform-unicode-regex@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz#194317225d8c201bbae103364ffe9e2cea36cdca" + integrity sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + "@babel/plugin-transform-unicode-regex@^7.8.3": version "7.8.3" resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.8.3.tgz#0cef36e3ba73e5c57273effb182f46b91a1ecaad" @@ -2416,6 +3103,87 @@ levenary "^1.1.1" semver "^5.5.0" +"@babel/preset-env@^7.16.5", "@babel/preset-env@^7.16.7": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.18.10.tgz#83b8dfe70d7eea1aae5a10635ab0a5fe60dfc0f4" + integrity sha512-wVxs1yjFdW3Z/XkNfXKoblxoHgbtUF7/l3PvvP4m02Qz9TZ6uZGxRVYjSQeR87oQmHco9zWitW5J82DJ7sCjvA== + dependencies: + "@babel/compat-data" "^7.18.8" + "@babel/helper-compilation-targets" "^7.18.9" + "@babel/helper-plugin-utils" "^7.18.9" + "@babel/helper-validator-option" "^7.18.6" + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.18.6" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.18.9" + "@babel/plugin-proposal-async-generator-functions" "^7.18.10" + "@babel/plugin-proposal-class-properties" "^7.18.6" + "@babel/plugin-proposal-class-static-block" "^7.18.6" + "@babel/plugin-proposal-dynamic-import" "^7.18.6" + "@babel/plugin-proposal-export-namespace-from" "^7.18.9" + "@babel/plugin-proposal-json-strings" "^7.18.6" + "@babel/plugin-proposal-logical-assignment-operators" "^7.18.9" + "@babel/plugin-proposal-nullish-coalescing-operator" "^7.18.6" + "@babel/plugin-proposal-numeric-separator" "^7.18.6" + "@babel/plugin-proposal-object-rest-spread" "^7.18.9" + "@babel/plugin-proposal-optional-catch-binding" "^7.18.6" + "@babel/plugin-proposal-optional-chaining" "^7.18.9" + "@babel/plugin-proposal-private-methods" "^7.18.6" + "@babel/plugin-proposal-private-property-in-object" "^7.18.6" + "@babel/plugin-proposal-unicode-property-regex" "^7.18.6" + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-syntax-class-properties" "^7.12.13" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + "@babel/plugin-syntax-import-assertions" "^7.18.6" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@babel/plugin-syntax-top-level-await" "^7.14.5" + "@babel/plugin-transform-arrow-functions" "^7.18.6" + "@babel/plugin-transform-async-to-generator" "^7.18.6" + "@babel/plugin-transform-block-scoped-functions" "^7.18.6" + "@babel/plugin-transform-block-scoping" "^7.18.9" + "@babel/plugin-transform-classes" "^7.18.9" + "@babel/plugin-transform-computed-properties" "^7.18.9" + "@babel/plugin-transform-destructuring" "^7.18.9" + "@babel/plugin-transform-dotall-regex" "^7.18.6" + "@babel/plugin-transform-duplicate-keys" "^7.18.9" + "@babel/plugin-transform-exponentiation-operator" "^7.18.6" + "@babel/plugin-transform-for-of" "^7.18.8" + "@babel/plugin-transform-function-name" "^7.18.9" + "@babel/plugin-transform-literals" "^7.18.9" + "@babel/plugin-transform-member-expression-literals" "^7.18.6" + "@babel/plugin-transform-modules-amd" "^7.18.6" + "@babel/plugin-transform-modules-commonjs" "^7.18.6" + "@babel/plugin-transform-modules-systemjs" "^7.18.9" + "@babel/plugin-transform-modules-umd" "^7.18.6" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.18.6" + "@babel/plugin-transform-new-target" "^7.18.6" + "@babel/plugin-transform-object-super" "^7.18.6" + "@babel/plugin-transform-parameters" "^7.18.8" + "@babel/plugin-transform-property-literals" "^7.18.6" + "@babel/plugin-transform-regenerator" "^7.18.6" + "@babel/plugin-transform-reserved-words" "^7.18.6" + "@babel/plugin-transform-shorthand-properties" "^7.18.6" + "@babel/plugin-transform-spread" "^7.18.9" + "@babel/plugin-transform-sticky-regex" "^7.18.6" + "@babel/plugin-transform-template-literals" "^7.18.9" + "@babel/plugin-transform-typeof-symbol" "^7.18.9" + "@babel/plugin-transform-unicode-escapes" "^7.18.10" + "@babel/plugin-transform-unicode-regex" "^7.18.6" + "@babel/preset-modules" "^0.1.5" + "@babel/types" "^7.18.10" + babel-plugin-polyfill-corejs2 "^0.3.2" + babel-plugin-polyfill-corejs3 "^0.5.3" + babel-plugin-polyfill-regenerator "^0.4.0" + core-js-compat "^3.22.1" + semver "^6.3.0" + "@babel/preset-modules@^0.1.3": version "0.1.3" resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.3.tgz#13242b53b5ef8c883c3cf7dddd55b36ce80fbc72" @@ -2438,6 +3206,17 @@ "@babel/types" "^7.4.4" esutils "^2.0.2" +"@babel/preset-modules@^0.1.5": + version "0.1.5" + resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.5.tgz#ef939d6e7f268827e1841638dc6ff95515e115d9" + integrity sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/plugin-proposal-unicode-property-regex" "^7.4.4" + "@babel/plugin-transform-dotall-regex" "^7.4.4" + "@babel/types" "^7.4.4" + esutils "^2.0.2" + "@babel/runtime@7.12.18": version "7.12.18" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.12.18.tgz#af137bd7e7d9705a412b3caaf991fe6aaa97831b" @@ -2493,6 +3272,15 @@ "@babel/parser" "^7.15.4" "@babel/types" "^7.15.4" +"@babel/template@^7.18.10", "@babel/template@^7.18.6": + version "7.18.10" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.18.10.tgz#6f9134835970d1dbf0835c0d100c9f38de0c5e71" + integrity sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/parser" "^7.18.10" + "@babel/types" "^7.18.10" + "@babel/traverse@^7.1.0", "@babel/traverse@^7.10.4", "@babel/traverse@^7.11.5": version "7.11.5" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.11.5.tgz#be777b93b518eb6d76ee2e1ea1d143daa11e61c3" @@ -2538,6 +3326,22 @@ debug "^4.1.0" globals "^11.1.0" +"@babel/traverse@^7.18.11", "@babel/traverse@^7.18.13", "@babel/traverse@^7.18.9": + version "7.18.13" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.18.13.tgz#5ab59ef51a997b3f10c4587d648b9696b6cb1a68" + integrity sha512-N6kt9X1jRMLPxxxPYWi7tgvJRH/rtoU+dbKAPDM44RFHiMH8igdsaSBgFeskhSl/kLWLDUvIh1RXCrTmg0/zvA== + dependencies: + "@babel/code-frame" "^7.18.6" + "@babel/generator" "^7.18.13" + "@babel/helper-environment-visitor" "^7.18.9" + "@babel/helper-function-name" "^7.18.9" + "@babel/helper-hoist-variables" "^7.18.6" + "@babel/helper-split-export-declaration" "^7.18.6" + "@babel/parser" "^7.18.13" + "@babel/types" "^7.18.13" + debug "^4.1.0" + globals "^11.1.0" + "@babel/types@^7.0.0", "@babel/types@^7.10.4", "@babel/types@^7.10.5", "@babel/types@^7.11.0", "@babel/types@^7.11.5", "@babel/types@^7.3.0", "@babel/types@^7.3.3", "@babel/types@^7.7.2": version "7.11.5" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.11.5.tgz#d9de577d01252d77c6800cee039ee64faf75662d" @@ -2564,6 +3368,15 @@ "@babel/helper-validator-identifier" "^7.14.9" to-fast-properties "^2.0.0" +"@babel/types@^7.18.10", "@babel/types@^7.18.13", "@babel/types@^7.18.6", "@babel/types@^7.18.9": + version "7.18.13" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.18.13.tgz#30aeb9e514f4100f7c1cb6e5ba472b30e48f519a" + integrity sha512-ePqfTihzW0W6XAU+aMw2ykilisStJfDnsejDCXRchCcMJ4O0+8DhPXf2YUbZ6wjBlsEmZwLK/sPweWtu8hcJYQ== + dependencies: + "@babel/helper-string-parser" "^7.18.10" + "@babel/helper-validator-identifier" "^7.18.6" + to-fast-properties "^2.0.0" + "@bcoe/v8-coverage@^0.2.3": version "0.2.3" resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" @@ -2973,6 +3786,20 @@ resolve "^1.20.0" semver "^7.3.2" +"@embroider/macros@^1.0.0": + version "1.8.3" + resolved "https://registry.yarnpkg.com/@embroider/macros/-/macros-1.8.3.tgz#2f0961ab8871f6ad819630208031d705b357757e" + integrity sha512-gnIOfTL/pUkoD6oI7JyWOqXlVIUgZM+CnbH10/YNtZr2K0hij9eZQMdgjOZZVgN0rKOFw9dIREqc1ygrJHRYQA== + dependencies: + "@embroider/shared-internals" "1.8.3" + assert-never "^1.2.1" + babel-import-util "^1.1.0" + ember-cli-babel "^7.26.6" + find-up "^5.0.0" + lodash "^4.17.21" + resolve "^1.20.0" + semver "^7.3.2" + "@embroider/shared-internals@0.47.0": version "0.47.0" resolved "https://registry.yarnpkg.com/@embroider/shared-internals/-/shared-internals-0.47.0.tgz#7288946560044199487ebbb7ac9f4be13c4db19b" @@ -2986,6 +3813,20 @@ semver "^7.3.5" typescript-memoize "^1.0.1" +"@embroider/shared-internals@1.8.3", "@embroider/shared-internals@^1.0.0": + version "1.8.3" + resolved "https://registry.yarnpkg.com/@embroider/shared-internals/-/shared-internals-1.8.3.tgz#52d868dc80016e9fe983552c0e516f437bf9b9f9" + integrity sha512-N5Gho6Qk8z5u+mxLCcMYAoQMbN4MmH+z2jXwQHVs859bxuZTxwF6kKtsybDAASCtd2YGxEmzcc1Ja/wM28824w== + dependencies: + babel-import-util "^1.1.0" + ember-rfc176-data "^0.3.17" + fs-extra "^9.1.0" + js-string-escape "^1.0.1" + lodash "^4.17.21" + resolve-package-path "^4.0.1" + semver "^7.3.5" + typescript-memoize "^1.0.1" + "@embroider/test-setup@^0.43.5": version "0.43.5" resolved "https://registry.yarnpkg.com/@embroider/test-setup/-/test-setup-0.43.5.tgz#79944cb50038802cc71d50aa0d5d7a0955ee6349" @@ -3457,6 +4298,54 @@ "@types/yargs" "^15.0.0" chalk "^4.0.0" +"@jridgewell/gen-mapping@^0.1.0": + version "0.1.1" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz#e5d2e450306a9491e3bd77e323e38d7aff315996" + integrity sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w== + dependencies: + "@jridgewell/set-array" "^1.0.0" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@jridgewell/gen-mapping@^0.3.0", "@jridgewell/gen-mapping@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz#c1aedc61e853f2bb9f5dfe6d4442d3b565b253b9" + integrity sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A== + dependencies: + "@jridgewell/set-array" "^1.0.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/resolve-uri@^3.0.3": + version "3.1.0" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz#2203b118c157721addfe69d47b70465463066d78" + integrity sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w== + +"@jridgewell/set-array@^1.0.0", "@jridgewell/set-array@^1.0.1": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" + integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== + +"@jridgewell/source-map@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.2.tgz#f45351aaed4527a298512ec72f81040c998580fb" + integrity sha512-m7O9o2uR8k2ObDysZYzdfhb08VuEml5oWGiosa1VdaPZ/A6QyPkAJuwN0Q1lhULOf6B7MtQmHENS743hWtCrgw== + dependencies: + "@jridgewell/gen-mapping" "^0.3.0" + "@jridgewell/trace-mapping" "^0.3.9" + +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.14" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" + integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== + +"@jridgewell/trace-mapping@^0.3.14", "@jridgewell/trace-mapping@^0.3.9": + version "0.3.15" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.15.tgz#aba35c48a38d3fd84b37e66c9c0423f9744f9774" + integrity sha512-oWZNOULl+UbhsgB51uuZzglikfIKSUBO/M9W2OfEjn7cmqoAiCgmv9lyACTUacZwBz0ITnJ2NqjU8Tx0DHL88g== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@mrmlnc/readdir-enhanced@^2.2.1": version "2.2.1" resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" @@ -3844,6 +4733,22 @@ resolved "https://registry.yarnpkg.com/@types/cors/-/cors-2.8.12.tgz#6b2c510a7ad7039e98e7b8d3d6598f4359e5c080" integrity sha512-vt+kDhq/M2ayberEtJcIN/hxXy1Pk+59g2FV/ZQceeaTyCtCucjL2Q7FXlFjtWn4n15KCr1NE2lNNFhp0lEThw== +"@types/eslint-scope@^3.7.3": + version "3.7.4" + resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.4.tgz#37fc1223f0786c39627068a12e94d6e6fc61de16" + integrity sha512-9K4zoImiZc3HlIp6AVUDE4CWYx22a+lhSZMYNpbjW04+YF0KWj4pJXnEMjdnFTiQibFFmElcsasJXDbdI/EPhA== + dependencies: + "@types/eslint" "*" + "@types/estree" "*" + +"@types/eslint@*": + version "8.4.6" + resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.4.6.tgz#7976f054c1bccfcf514bff0564c0c41df5c08207" + integrity sha512-/fqTbjxyFUaYNO7VcW5g+4npmqVACz1bB7RTHYuLj+PRjw9hrCwrUXVQFpChUS0JsyEFvMZ7U/PfmvWgxJhI9g== + dependencies: + "@types/estree" "*" + "@types/json-schema" "*" + "@types/eslint@^7.2.13": version "7.28.1" resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-7.28.1.tgz#50b07747f1f84c2ba8cd394cf0fe0ba07afce320" @@ -3857,6 +4762,11 @@ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.45.tgz#e9387572998e5ecdac221950dab3e8c3b16af884" integrity sha512-jnqIUKDUqJbDIUxm0Uj7bnlMnRm1T/eZ9N+AVMqhPgzrba2GhGG5o/jCTwmdPK709nEZsGoMzXEDUjcXHa3W0g== +"@types/estree@^0.0.51": + version "0.0.51" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.51.tgz#cfd70924a25a3fd32b218e5e420e6897e1ac4f40" + integrity sha512-CuPgU6f3eT/XgKKPqKd/gLZV1Xmvf1a2R5POBOGQa6uv82xpls89HU5zKeVoyR8XzHd1RGNOlQlvUe3CFkjWNQ== + "@types/events@*": version "3.0.0" resolved "https://registry.yarnpkg.com/@types/events/-/events-3.0.0.tgz#2862f3f58a9a7f7c3e78d79f130dd4d71c25c2a7" @@ -3940,6 +4850,11 @@ resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d" integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ== +"@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": + version "7.0.11" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.11.tgz#d421b6c527a3037f7c84433fd2c4229e016863d3" + integrity sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ== + "@types/keyv@*": version "3.1.1" resolved "https://registry.yarnpkg.com/@types/keyv/-/keyv-3.1.1.tgz#e45a45324fca9dab716ab1230ee249c9fb52cfa7" @@ -4067,6 +4982,14 @@ dependencies: "@types/yargs-parser" "*" +"@webassemblyjs/ast@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.1.tgz#2bfd767eae1a6996f432ff7e8d7fc75679c0b6a7" + integrity sha512-ukBh14qFLjxTQNTXocdyksN5QdM28S1CxHt2rdskFyL+xFV7VremuBLVbmCePj+URalXBENx/9Lm7lnhihtCSw== + dependencies: + "@webassemblyjs/helper-numbers" "1.11.1" + "@webassemblyjs/helper-wasm-bytecode" "1.11.1" + "@webassemblyjs/ast@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.7.11.tgz#b988582cafbb2b095e8b556526f30c90d057cace" @@ -4085,6 +5008,11 @@ "@webassemblyjs/helper-wasm-bytecode" "1.9.0" "@webassemblyjs/wast-parser" "1.9.0" +"@webassemblyjs/floating-point-hex-parser@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.1.tgz#f6c61a705f0fd7a6aecaa4e8198f23d9dc179e4f" + integrity sha512-iGRfyc5Bq+NnNuX8b5hwBrRjzf0ocrJPI6GWFodBFzmFnyvrQ83SHKhmilCU/8Jv67i4GJZBMhEzltxzcNagtQ== + "@webassemblyjs/floating-point-hex-parser@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.7.11.tgz#a69f0af6502eb9a3c045555b1a6129d3d3f2e313" @@ -4095,6 +5023,11 @@ resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.9.0.tgz#3c3d3b271bddfc84deb00f71344438311d52ffb4" integrity sha512-TG5qcFsS8QB4g4MhrxK5TqfdNe7Ey/7YL/xN+36rRjl/BlGE/NcBvJcqsRgCP6Z92mRE+7N50pRIi8SmKUbcQA== +"@webassemblyjs/helper-api-error@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.1.tgz#1a63192d8788e5c012800ba6a7a46c705288fd16" + integrity sha512-RlhS8CBCXfRUR/cwo2ho9bkheSXG0+NwooXcc3PAILALf2QLdFyj7KGsKRbVc95hZnhnERon4kW/D3SZpp6Tcg== + "@webassemblyjs/helper-api-error@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.7.11.tgz#c7b6bb8105f84039511a2b39ce494f193818a32a" @@ -4105,6 +5038,11 @@ resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.9.0.tgz#203f676e333b96c9da2eeab3ccef33c45928b6a2" integrity sha512-NcMLjoFMXpsASZFxJ5h2HZRcEhDkvnNFOAKneP5RbKRzaWJN36NC4jqQHKwStIhGXu5mUWlUUk7ygdtrO8lbmw== +"@webassemblyjs/helper-buffer@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.11.1.tgz#832a900eb444884cde9a7cad467f81500f5e5ab5" + integrity sha512-gwikF65aDNeeXa8JxXa2BAk+REjSyhrNC9ZwdT0f8jc4dQQeDQ7G4m0f2QCLPJiMTTO6wfDmRmj/pW0PsUvIcA== + "@webassemblyjs/helper-buffer@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.7.11.tgz#3122d48dcc6c9456ed982debe16c8f37101df39b" @@ -4151,6 +5089,20 @@ dependencies: "@webassemblyjs/ast" "1.9.0" +"@webassemblyjs/helper-numbers@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.1.tgz#64d81da219fbbba1e3bd1bfc74f6e8c4e10a62ae" + integrity sha512-vDkbxiB8zfnPdNK9Rajcey5C0w+QJugEglN0of+kmO8l7lDb77AnlKYQF7aarZuCrv+l0UvqL+68gSDr3k9LPQ== + dependencies: + "@webassemblyjs/floating-point-hex-parser" "1.11.1" + "@webassemblyjs/helper-api-error" "1.11.1" + "@xtuc/long" "4.2.2" + +"@webassemblyjs/helper-wasm-bytecode@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.1.tgz#f328241e41e7b199d0b20c18e88429c4433295e1" + integrity sha512-PvpoOGiJwXeTrSf/qfudJhwlvDQxFgelbMqtq52WWiXC6Xgg1IREdngmPN3bs4RoO83PnL/nFrxucXj1+BX62Q== + "@webassemblyjs/helper-wasm-bytecode@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.7.11.tgz#dd9a1e817f1c2eb105b4cf1013093cb9f3c9cb06" @@ -4161,6 +5113,16 @@ resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.9.0.tgz#4fed8beac9b8c14f8c58b70d124d549dd1fe5790" integrity sha512-R7FStIzyNcd7xKxCZH5lE0Bqy+hGTwS3LJjuv1ZVxd9O7eHCedSdrId/hMOd20I+v8wDXEn+bjfKDLzTepoaUw== +"@webassemblyjs/helper-wasm-section@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.11.1.tgz#21ee065a7b635f319e738f0dd73bfbda281c097a" + integrity sha512-10P9No29rYX1j7F3EVPX3JvGPQPae+AomuSTPiF9eBQeChHI6iqjMIwR9JmOJXwpnn/oVGDk7I5IlskuMwU/pg== + dependencies: + "@webassemblyjs/ast" "1.11.1" + "@webassemblyjs/helper-buffer" "1.11.1" + "@webassemblyjs/helper-wasm-bytecode" "1.11.1" + "@webassemblyjs/wasm-gen" "1.11.1" + "@webassemblyjs/helper-wasm-section@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.7.11.tgz#9c9ac41ecf9fbcfffc96f6d2675e2de33811e68a" @@ -4181,6 +5143,13 @@ "@webassemblyjs/helper-wasm-bytecode" "1.9.0" "@webassemblyjs/wasm-gen" "1.9.0" +"@webassemblyjs/ieee754@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.11.1.tgz#963929e9bbd05709e7e12243a099180812992614" + integrity sha512-hJ87QIPtAMKbFq6CGTkZYJivEwZDbQUgYd3qKSadTNOhVY7p+gfP6Sr0lLRVTaG1JjFj+r3YchoqRYxNH3M0GQ== + dependencies: + "@xtuc/ieee754" "^1.2.0" + "@webassemblyjs/ieee754@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.7.11.tgz#c95839eb63757a31880aaec7b6512d4191ac640b" @@ -4195,6 +5164,13 @@ dependencies: "@xtuc/ieee754" "^1.2.0" +"@webassemblyjs/leb128@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.11.1.tgz#ce814b45574e93d76bae1fb2644ab9cdd9527aa5" + integrity sha512-BJ2P0hNZ0u+Th1YZXJpzW6miwqQUGcIHT1G/sf72gLVD9DZ5AdYTqPNbHZh6K1M5VmKvFXwGSWZADz+qBWxeRw== + dependencies: + "@xtuc/long" "4.2.2" + "@webassemblyjs/leb128@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.7.11.tgz#d7267a1ee9c4594fd3f7e37298818ec65687db63" @@ -4209,6 +5185,11 @@ dependencies: "@xtuc/long" "4.2.2" +"@webassemblyjs/utf8@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.11.1.tgz#d1f8b764369e7c6e6bae350e854dec9a59f0a3ff" + integrity sha512-9kqcxAEdMhiwQkHpkNiorZzqpGrodQQ2IGrHHxCy+Ozng0ofyMA0lTqiLkVs1uzTRejX+/O0EOT7KxqVPuXosQ== + "@webassemblyjs/utf8@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.7.11.tgz#06d7218ea9fdc94a6793aa92208160db3d26ee82" @@ -4219,6 +5200,20 @@ resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.9.0.tgz#04d33b636f78e6a6813227e82402f7637b6229ab" integrity sha512-GZbQlWtopBTP0u7cHrEx+73yZKrQoBMpwkGEIqlacljhXCkVM1kMQge/Mf+csMJAjEdSwhOyLAS0AoR3AG5P8w== +"@webassemblyjs/wasm-edit@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.11.1.tgz#ad206ebf4bf95a058ce9880a8c092c5dec8193d6" + integrity sha512-g+RsupUC1aTHfR8CDgnsVRVZFJqdkFHpsHMfJuWQzWU3tvnLC07UqHICfP+4XyL2tnr1amvl1Sdp06TnYCmVkA== + dependencies: + "@webassemblyjs/ast" "1.11.1" + "@webassemblyjs/helper-buffer" "1.11.1" + "@webassemblyjs/helper-wasm-bytecode" "1.11.1" + "@webassemblyjs/helper-wasm-section" "1.11.1" + "@webassemblyjs/wasm-gen" "1.11.1" + "@webassemblyjs/wasm-opt" "1.11.1" + "@webassemblyjs/wasm-parser" "1.11.1" + "@webassemblyjs/wast-printer" "1.11.1" + "@webassemblyjs/wasm-edit@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.7.11.tgz#8c74ca474d4f951d01dbae9bd70814ee22a82005" @@ -4247,6 +5242,17 @@ "@webassemblyjs/wasm-parser" "1.9.0" "@webassemblyjs/wast-printer" "1.9.0" +"@webassemblyjs/wasm-gen@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.11.1.tgz#86c5ea304849759b7d88c47a32f4f039ae3c8f76" + integrity sha512-F7QqKXwwNlMmsulj6+O7r4mmtAlCWfO/0HdgOxSklZfQcDu0TpLiD1mRt/zF25Bk59FIjEuGAIyn5ei4yMfLhA== + dependencies: + "@webassemblyjs/ast" "1.11.1" + "@webassemblyjs/helper-wasm-bytecode" "1.11.1" + "@webassemblyjs/ieee754" "1.11.1" + "@webassemblyjs/leb128" "1.11.1" + "@webassemblyjs/utf8" "1.11.1" + "@webassemblyjs/wasm-gen@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.7.11.tgz#9bbba942f22375686a6fb759afcd7ac9c45da1a8" @@ -4269,6 +5275,16 @@ "@webassemblyjs/leb128" "1.9.0" "@webassemblyjs/utf8" "1.9.0" +"@webassemblyjs/wasm-opt@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.11.1.tgz#657b4c2202f4cf3b345f8a4c6461c8c2418985f2" + integrity sha512-VqnkNqnZlU5EB64pp1l7hdm3hmQw7Vgqa0KF/KCNO9sIpI6Fk6brDEiX+iCOYrvMuBWDws0NkTOxYEb85XQHHw== + dependencies: + "@webassemblyjs/ast" "1.11.1" + "@webassemblyjs/helper-buffer" "1.11.1" + "@webassemblyjs/wasm-gen" "1.11.1" + "@webassemblyjs/wasm-parser" "1.11.1" + "@webassemblyjs/wasm-opt@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.7.11.tgz#b331e8e7cef8f8e2f007d42c3a36a0580a7d6ca7" @@ -4289,6 +5305,18 @@ "@webassemblyjs/wasm-gen" "1.9.0" "@webassemblyjs/wasm-parser" "1.9.0" +"@webassemblyjs/wasm-parser@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.11.1.tgz#86ca734534f417e9bd3c67c7a1c75d8be41fb199" + integrity sha512-rrBujw+dJu32gYB7/Lup6UhdkPx9S9SnobZzRVL7VcBH9Bt9bCBLEuX/YXOOtBsOZ4NQrRykKhffRWHvigQvOA== + dependencies: + "@webassemblyjs/ast" "1.11.1" + "@webassemblyjs/helper-api-error" "1.11.1" + "@webassemblyjs/helper-wasm-bytecode" "1.11.1" + "@webassemblyjs/ieee754" "1.11.1" + "@webassemblyjs/leb128" "1.11.1" + "@webassemblyjs/utf8" "1.11.1" + "@webassemblyjs/wasm-parser@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.7.11.tgz#6e3d20fa6a3519f6b084ef9391ad58211efb0a1a" @@ -4337,6 +5365,14 @@ "@webassemblyjs/helper-fsm" "1.9.0" "@xtuc/long" "4.2.2" +"@webassemblyjs/wast-printer@1.11.1": + version "1.11.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.11.1.tgz#d0c73beda8eec5426f10ae8ef55cee5e7084c2f0" + integrity sha512-IQboUWM4eKzWW+N/jij2sRatKMh99QEelo3Eb2q0qXkvPRISAj8Qxtmw5itwqK+TTkBuUIE45AxYPToqPtL5gg== + dependencies: + "@webassemblyjs/ast" "1.11.1" + "@xtuc/long" "4.2.2" + "@webassemblyjs/wast-printer@1.7.11": version "1.7.11" resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.7.11.tgz#c4245b6de242cb50a2cc950174fdbf65c78d7813" @@ -4426,6 +5462,11 @@ acorn-globals@^6.0.0: acorn "^7.1.1" acorn-walk "^7.1.1" +acorn-import-assertions@^1.7.6: + version "1.8.0" + resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.8.0.tgz#ba2b5939ce62c238db6d93d81c9b111b29b855e9" + integrity sha512-m7VZ3jwz4eK6A4Vtt8Ew1/mNbP24u0FhdyfA7fSvnJR6LMdfOYnmuIrrJAgrYfYJ10F/otaHTtrtrtmHdMNzEw== + acorn-jsx@^5.0.0: version "5.3.1" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.1.tgz#fc8661e11b7ac1539c47dbfea2e72b3af34d267b" @@ -4481,6 +5522,11 @@ acorn@^8.2.4: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.5.0.tgz#4512ccb99b3698c752591e9bb4472e38ad43cee2" integrity sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q== +acorn@^8.5.0, acorn@^8.7.1: + version "8.8.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.0.tgz#88c0187620435c7f6015803f5539dae05a9dbea8" + integrity sha512-QOxyigPVrpZ2GXT+PFyZTl6TtOFc5egxHIP9IlQ+RbupQuX4RkT/Bee4/kQuC02Xkzg84JcT7oLYtDIQxp+v7w== + after@0.8.2: version "0.8.2" resolved "https://registry.yarnpkg.com/after/-/after-0.8.2.tgz#fedb394f9f0e02aa9768e702bda23b505fae7e1f" @@ -4527,11 +5573,30 @@ ajv-errors@^1.0.0: resolved "https://registry.yarnpkg.com/ajv-errors/-/ajv-errors-1.0.1.tgz#f35986aceb91afadec4102fbd85014950cefa64d" integrity sha512-DCRfO/4nQ+89p/RK43i8Ezd41EqdGIU4ld7nGF8OQ14oc/we5rEntLCUa7+jrn3nn83BosfwZA0wb4pon2o8iQ== +ajv-formats@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" + integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== + dependencies: + ajv "^8.0.0" + ajv-keywords@^3.1.0, ajv-keywords@^3.4.1: version "3.4.1" resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.4.1.tgz#ef916e271c64ac12171fd8384eaae6b2345854da" integrity sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ== +ajv-keywords@^3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" + integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== + +ajv-keywords@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" + integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== + dependencies: + fast-deep-equal "^3.1.3" + ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.0, ajv@^6.5.5: version "6.12.2" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.2.tgz#c629c5eced17baf314437918d2da88c99d5958cd" @@ -4542,7 +5607,7 @@ ajv@^6.1.0, ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.0, ajv@^6.5.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^6.12.4: +ajv@^6.12.4, ajv@^6.12.5: version "6.12.6" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== @@ -4562,6 +5627,16 @@ ajv@^6.9.1: json-schema-traverse "^0.4.1" uri-js "^4.2.2" +ajv@^8.0.0, ajv@^8.8.0: + version "8.11.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.11.0.tgz#977e91dd96ca669f54a11e23e378e33b884a565f" + integrity sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + ajv@^8.0.1: version "8.6.3" resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.6.3.tgz#11a66527761dc3e9a3845ea775d2d3c0414e8764" @@ -4726,6 +5801,19 @@ aproba@^1.0.3, aproba@^1.1.1: resolved "https://registry.yarnpkg.com/aproba/-/aproba-1.2.0.tgz#6802e6264efd18c790a1b0d517f0f2627bf2c94a" integrity sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw== +"aproba@^1.0.3 || ^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/aproba/-/aproba-2.0.0.tgz#52520b8ae5b569215b354efc0caa3fe1e45a8adc" + integrity sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ== + +are-we-there-yet@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz#679df222b278c64f2cdba1175cdc00b0d96164bd" + integrity sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg== + dependencies: + delegates "^1.0.0" + readable-stream "^3.6.0" + are-we-there-yet@~1.1.2: version "1.1.5" resolved "https://registry.yarnpkg.com/are-we-there-yet/-/are-we-there-yet-1.1.5.tgz#4b35c2944f062a8bfcda66410760350fe9ddfc21" @@ -5140,6 +6228,11 @@ babel-import-util@^0.2.0: resolved "https://registry.yarnpkg.com/babel-import-util/-/babel-import-util-0.2.0.tgz#b468bb679919601a3570f9e317536c54f2862e23" integrity sha512-CtWYYHU/MgK88rxMrLfkD356dApswtR/kWZ/c6JifG1m10e7tBBrs/366dFzWMAoqYmG5/JSh+94tUSpIwh+ag== +babel-import-util@^1.1.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/babel-import-util/-/babel-import-util-1.2.2.tgz#1027560e143a4a68b1758e71d4fadc661614e495" + integrity sha512-8HgkHWt5WawRFukO30TuaL9EiDUOdvyKtDwLma4uBNeUSDbOO0/hiPfavrOWxSS6J6TKXfukWHZ3wiqZhJ8ONQ== + babel-jest@^26.3.0: version "26.3.0" resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-26.3.0.tgz#10d0ca4b529ca3e7d1417855ef7d7bd6fc0c3463" @@ -5287,6 +6380,17 @@ babel-plugin-htmlbars-inline-precompile@^5.0.0: parse-static-imports "^1.1.0" string.prototype.matchall "^4.0.4" +babel-plugin-htmlbars-inline-precompile@^5.2.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/babel-plugin-htmlbars-inline-precompile/-/babel-plugin-htmlbars-inline-precompile-5.3.1.tgz#5ba272e2e4b6221522401f5f1d98a73b1de38787" + integrity sha512-QWjjFgSKtSRIcsBhJmEwS2laIdrA6na8HAlc/pEAhjHgQsah/gMiBFRZvbQTy//hWxR4BMwV7/Mya7q5H8uHeA== + dependencies: + babel-plugin-ember-modules-api-polyfill "^3.5.0" + line-column "^1.0.2" + magic-string "^0.25.7" + parse-static-imports "^1.1.0" + string.prototype.matchall "^4.0.5" + babel-plugin-istanbul@^6.0.0: version "6.0.0" resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.0.0.tgz#e159ccdc9af95e0b570c75b4573b7c34d671d765" @@ -5350,6 +6454,15 @@ babel-plugin-polyfill-corejs2@^0.2.2: "@babel/helper-define-polyfill-provider" "^0.2.2" semver "^6.1.1" +babel-plugin-polyfill-corejs2@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.2.tgz#e4c31d4c89b56f3cf85b92558954c66b54bd972d" + integrity sha512-LPnodUl3lS0/4wN3Rb+m+UK8s7lj2jcLRrjho4gLw+OJs+I4bvGXshINesY5xx/apM+biTnQ9reDI8yj+0M5+Q== + dependencies: + "@babel/compat-data" "^7.17.7" + "@babel/helper-define-polyfill-provider" "^0.3.2" + semver "^6.1.1" + babel-plugin-polyfill-corejs3@^0.2.5: version "0.2.5" resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.2.5.tgz#2779846a16a1652244ae268b1e906ada107faf92" @@ -5358,6 +6471,14 @@ babel-plugin-polyfill-corejs3@^0.2.5: "@babel/helper-define-polyfill-provider" "^0.2.2" core-js-compat "^3.16.2" +babel-plugin-polyfill-corejs3@^0.5.3: + version "0.5.3" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.5.3.tgz#d7e09c9a899079d71a8b670c6181af56ec19c5c7" + integrity sha512-zKsXDh0XjnrUEW0mxIHLfjBfnXSMr5Q/goMe/fxpQnLm07mcOZiIZHBNWCMx60HmdvjxfXcalac0tfFg0wqxyw== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.3.2" + core-js-compat "^3.21.0" + babel-plugin-polyfill-regenerator@^0.2.2: version "0.2.2" resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.2.2.tgz#b310c8d642acada348c1fa3b3e6ce0e851bee077" @@ -5365,6 +6486,13 @@ babel-plugin-polyfill-regenerator@^0.2.2: dependencies: "@babel/helper-define-polyfill-provider" "^0.2.2" +babel-plugin-polyfill-regenerator@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.0.tgz#8f51809b6d5883e07e71548d75966ff7635527fe" + integrity sha512-RW1cnryiADFeHmfLS+WW/G431p1PsW5qdRdz0SDRi7TKcUgc7Oh/uXkT7MZ/+tGsT1BkczEAmD5XjUyJ5SWDTw== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.3.2" + babel-plugin-syntax-async-functions@^6.8.0: version "6.13.0" resolved "https://registry.yarnpkg.com/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz#cad9cad1191b5ad634bf30ae0872391e0647be95" @@ -5958,6 +7086,13 @@ brace-expansion@^1.1.7: balanced-match "^1.0.0" concat-map "0.0.1" +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + braces@^2.3.1, braces@^2.3.2: version "2.3.2" resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" @@ -6894,6 +8029,16 @@ browserslist@^4.12.0, browserslist@^4.8.5: node-releases "^1.1.53" pkg-up "^2.0.0" +browserslist@^4.14.5, browserslist@^4.20.2, browserslist@^4.21.3: + version "4.21.3" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.3.tgz#5df277694eb3c48bc5c4b05af3e8b7e09c5a6d1a" + integrity sha512-898rgRXLAyRkM1GryrrBHGkqA5hlpkV5MhtZwg9QXeiyLUYs2k00Un05aX5l2/yJIOObYKOpS2JNo8nJDE7fWQ== + dependencies: + caniuse-lite "^1.0.30001370" + electron-to-chromium "^1.4.202" + node-releases "^2.0.6" + update-browserslist-db "^1.0.5" + browserslist@^4.16.6, browserslist@^4.17.3: version "4.17.3" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.17.3.tgz#2844cd6eebe14d12384b0122d217550160d2d624" @@ -7161,6 +8306,11 @@ caniuse-lite@^1.0.30001264: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001265.tgz#0613c9e6c922e422792e6fcefdf9a3afeee4f8c3" integrity sha512-YzBnspggWV5hep1m9Z6sZVLOt7vrju8xWooFAgN6BA5qvy98qPAPb7vNUzypFaoh2pb3vlfzbDO8tB57UPGbtw== +caniuse-lite@^1.0.30001370: + version "1.0.30001388" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001388.tgz#88e01f4591cbd81f9f665f3f078c66b509fbe55d" + integrity sha512-znVbq4OUjqgLxMxoNX2ZeeLR0d7lcDiE5uJ4eUiWdml1J1EkxbnQq6opT9jb9SMfJxB0XA16/ziHwni4u1I3GQ== + capture-exit@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/capture-exit/-/capture-exit-2.0.0.tgz#fb953bfaebeb781f62898239dabb426d08a509a4" @@ -7582,6 +8732,11 @@ color-name@~1.1.4: resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== +color-support@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-support/-/color-support-1.1.3.tgz#93834379a1cc9a0c61f82f52f0d04322251bd5a2" + integrity sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg== + colors@1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b" @@ -7723,7 +8878,7 @@ console-browserify@^1.1.0: resolved "https://registry.yarnpkg.com/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336" integrity sha512-ZMkYO/LkF17QvCPqM0gxw8yUzigAOZOSWSHg91FH6orS7vcEj5dVZTidN2fQ14yBSdg97RqhSNwLUXInd52OTA== -console-control-strings@^1.0.0, console-control-strings@~1.1.0: +console-control-strings@^1.0.0, console-control-strings@^1.1.0, console-control-strings@~1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/console-control-strings/-/console-control-strings-1.1.0.tgz#3d7cf4464db6446ea644bf4b39507f9851008e8e" integrity sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4= @@ -7831,6 +8986,14 @@ core-js-compat@^3.16.0, core-js-compat@^3.16.2: browserslist "^4.17.3" semver "7.0.0" +core-js-compat@^3.21.0, core-js-compat@^3.22.1: + version "3.25.0" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.25.0.tgz#489affbfbf9cb3fa56192fe2dd9ebaee985a66c5" + integrity sha512-extKQM0g8/3GjFx9US12FAgx8KJawB7RCQ5y8ipYLbmfzEzmFRWdDjIlxDx82g7ygcNG85qMVUSRyABouELdow== + dependencies: + browserslist "^4.21.3" + semver "7.0.0" + core-js-compat@^3.6.2: version "3.6.5" resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.6.5.tgz#2a51d9a4e25dfd6e690251aa81f99e3c05481f1c" @@ -7971,6 +9134,22 @@ crypto-random-string@^2.0.0: resolved "https://registry.yarnpkg.com/crypto-random-string/-/crypto-random-string-2.0.0.tgz#ef2a7a966ec11083388369baa02ebead229b30d5" integrity sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA== +css-loader@^5.2.0: + version "5.2.7" + resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-5.2.7.tgz#9b9f111edf6fb2be5dc62525644cbc9c232064ae" + integrity sha512-Q7mOvpBNBG7YrVGMxRxcBJZFL75o+cH2abNASdibkj/fffYD8qWbInZrD0S9ccI6vZclF3DsHE7njGlLtaHbhg== + dependencies: + icss-utils "^5.1.0" + loader-utils "^2.0.0" + postcss "^8.2.15" + postcss-modules-extract-imports "^3.0.0" + postcss-modules-local-by-default "^4.0.0" + postcss-modules-scope "^3.0.0" + postcss-modules-values "^4.0.0" + postcss-value-parser "^4.1.0" + schema-utils "^3.0.0" + semver "^7.3.5" + css-tree@^1.0.0-alpha.39: version "1.1.3" resolved "https://registry.yarnpkg.com/css-tree/-/css-tree-1.1.3.tgz#eb4870fb6fd7707327ec95c2ff2ab09b5e8db91d" @@ -7979,6 +9158,11 @@ css-tree@^1.0.0-alpha.39: mdn-data "2.0.14" source-map "^0.6.1" +cssesc@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" + integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== + cssom@0.3.x, cssom@^0.3.4, cssom@~0.3.6: version "0.3.8" resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" @@ -8078,6 +9262,13 @@ debug@^3.0.0, debug@^3.0.1, debug@^3.1.0, debug@^3.1.1: dependencies: ms "^2.1.1" +debug@^4.2.0, debug@^4.3.1: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + debug@~3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" @@ -8416,6 +9607,11 @@ electron-to-chromium@^1.3.857: resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.862.tgz#c1c5d4382449e2c9b0e67fe1652f4fc451d6d8c0" integrity sha512-o+FMbCD+hAUJ9S8bfz/FaqA0gE8OpCCm58KhhGogOEqiA1BLFSoVYLi+tW+S/ZavnqBn++n0XZm7HQiBVPs8Jg== +electron-to-chromium@^1.4.202: + version "1.4.241" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.241.tgz#5aa03ab94db590d8269f4518157c24b1efad34d6" + integrity sha512-e7Wsh4ilaioBZ5bMm6+F4V5c11dh56/5Jwz7Hl5Tu1J7cnB+Pqx5qIF2iC7HPpfyQMqGSvvLP5bBAIDd2gAtGw== + elliptic@^6.0.0, elliptic@^6.5.2: version "6.5.4" resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb" @@ -8519,6 +9715,42 @@ ember-auto-import@^1.5.3: walk-sync "^0.3.3" webpack "~4.28" +ember-auto-import@^2.2.3, ember-auto-import@^2.4.2: + version "2.4.2" + resolved "https://registry.yarnpkg.com/ember-auto-import/-/ember-auto-import-2.4.2.tgz#d4d3bc6885a11cf124f606f5c37169bdf76e37ae" + integrity sha512-REh+1aJWpTkvN42a/ga41OuRpUsSW7UQfPr2wPtYx56o/xoSNhVBXejy7yV9ObrkN7gogz6fs2xZwih5cOwpYg== + dependencies: + "@babel/core" "^7.16.7" + "@babel/plugin-proposal-class-properties" "^7.16.7" + "@babel/plugin-proposal-decorators" "^7.16.7" + "@babel/preset-env" "^7.16.7" + "@embroider/macros" "^1.0.0" + "@embroider/shared-internals" "^1.0.0" + babel-loader "^8.0.6" + babel-plugin-ember-modules-api-polyfill "^3.5.0" + babel-plugin-htmlbars-inline-precompile "^5.2.1" + babel-plugin-syntax-dynamic-import "^6.18.0" + broccoli-debug "^0.6.4" + broccoli-funnel "^3.0.8" + broccoli-merge-trees "^4.2.0" + broccoli-plugin "^4.0.0" + broccoli-source "^3.0.0" + css-loader "^5.2.0" + debug "^4.3.1" + fs-extra "^10.0.0" + fs-tree-diff "^2.0.0" + handlebars "^4.3.1" + js-string-escape "^1.0.1" + lodash "^4.17.19" + mini-css-extract-plugin "^2.5.2" + parse5 "^6.0.1" + resolve "^1.20.0" + resolve-package-path "^4.0.3" + semver "^7.3.4" + style-loader "^2.0.0" + typescript-memoize "^1.0.0-alpha.3" + walk-sync "^3.0.0" + ember-cli-addon-tests@^0.11.0: version "0.11.1" resolved "https://registry.yarnpkg.com/ember-cli-addon-tests/-/ember-cli-addon-tests-0.11.1.tgz#70c9164cb4126b2d17bbf9588ff34d97d4bfbad1" @@ -8604,7 +9836,7 @@ ember-cli-babel@^7.0.0, ember-cli-babel@^7.13.0, ember-cli-babel@^7.22.1, ember- rimraf "^3.0.1" semver "^5.5.0" -ember-cli-babel@^7.11.0, ember-cli-babel@^7.12.0, ember-cli-babel@^7.13.2, ember-cli-babel@^7.17.2, ember-cli-babel@^7.18.0, ember-cli-babel@^7.7.3: +ember-cli-babel@^7.11.0, ember-cli-babel@^7.12.0, ember-cli-babel@^7.13.2, ember-cli-babel@^7.18.0, ember-cli-babel@^7.7.3: version "7.20.0" resolved "https://registry.yarnpkg.com/ember-cli-babel/-/ember-cli-babel-7.20.0.tgz#aa77eadd15036a053534fc68f7933bb97c5a1e25" integrity sha512-DwV5Cbn8wlRFpG8zQXxYPRb0NRnnaj/2qVDODeUEjM/doDhoDDbTSSaEI5Pf0kIlkVIimyGB8qpGv1fkgj2IfQ== @@ -8636,6 +9868,42 @@ ember-cli-babel@^7.11.0, ember-cli-babel@^7.12.0, ember-cli-babel@^7.13.2, ember rimraf "^3.0.1" semver "^5.5.0" +ember-cli-babel@^7.17.2, ember-cli-babel@^7.21.0, ember-cli-babel@^7.26.11: + version "7.26.11" + resolved "https://registry.yarnpkg.com/ember-cli-babel/-/ember-cli-babel-7.26.11.tgz#50da0fe4dcd99aada499843940fec75076249a9f" + integrity sha512-JJYeYjiz/JTn34q7F5DSOjkkZqy8qwFOOxXfE6pe9yEJqWGu4qErKxlz8I22JoVEQ/aBUO+OcKTpmctvykM9YA== + dependencies: + "@babel/core" "^7.12.0" + "@babel/helper-compilation-targets" "^7.12.0" + "@babel/plugin-proposal-class-properties" "^7.16.5" + "@babel/plugin-proposal-decorators" "^7.13.5" + "@babel/plugin-proposal-private-methods" "^7.16.5" + "@babel/plugin-proposal-private-property-in-object" "^7.16.5" + "@babel/plugin-transform-modules-amd" "^7.13.0" + "@babel/plugin-transform-runtime" "^7.13.9" + "@babel/plugin-transform-typescript" "^7.13.0" + "@babel/polyfill" "^7.11.5" + "@babel/preset-env" "^7.16.5" + "@babel/runtime" "7.12.18" + amd-name-resolver "^1.3.1" + babel-plugin-debug-macros "^0.3.4" + babel-plugin-ember-data-packages-polyfill "^0.1.2" + babel-plugin-ember-modules-api-polyfill "^3.5.0" + babel-plugin-module-resolver "^3.2.0" + broccoli-babel-transpiler "^7.8.0" + broccoli-debug "^0.6.4" + broccoli-funnel "^2.0.2" + broccoli-source "^2.1.2" + calculate-cache-key-for-tree "^2.0.0" + clone "^2.1.2" + ember-cli-babel-plugin-helpers "^1.1.1" + ember-cli-version-checker "^4.1.0" + ensure-posix-path "^1.0.2" + fixturify-project "^1.10.0" + resolve-package-path "^3.1.0" + rimraf "^3.0.1" + semver "^5.5.0" + ember-cli-babel@^7.19.0, ember-cli-babel@^7.20.5, ember-cli-babel@^7.4.1, ember-cli-babel@^7.4.3, ember-cli-babel@^7.5.0: version "7.22.1" resolved "https://registry.yarnpkg.com/ember-cli-babel/-/ember-cli-babel-7.22.1.tgz#cad28b89cf0e184c93b863d09bc5ba4ce1d2e453" @@ -9268,6 +10536,26 @@ ember-exam@^5.0.1: semver "^7.3.2" silent-error "^1.1.1" +ember-exam@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/ember-exam/-/ember-exam-8.0.0.tgz#4b9fc1e2b00c1ef08ac31792058b1fa4dbdbcca1" + integrity sha512-XKfFC0bpSDSJWFkmrcVxOtjwoVf8sPlMDizhNZF06O/R0UyH9lMOrUT/KWcIZ1vQd4Vqbg9DpakONmOyYQGXhw== + dependencies: + "@embroider/macros" "^1.0.0" + chalk "^4.1.1" + cli-table3 "^0.6.0" + debug "^4.2.0" + ember-auto-import "^2.2.3" + ember-cli-babel "^7.21.0" + ember-cli-version-checker "^5.1.2" + execa "^4.0.3" + fs-extra "^10.0.0" + js-yaml "^4.0.0" + npmlog "^6.0.0" + rimraf "^3.0.2" + semver "^7.3.2" + silent-error "^1.1.1" + ember-export-application-global@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/ember-export-application-global/-/ember-export-application-global-2.0.1.tgz#b120a70e322ab208defc9e2daebe8d0dfc2dcd46" @@ -9712,6 +11000,14 @@ enhanced-resolve@^4.5.0: memory-fs "^0.5.0" tapable "^1.0.0" +enhanced-resolve@^5.10.0: + version "5.10.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.10.0.tgz#0dc579c3bb2a1032e357ac45b8f3a6f3ad4fb1e6" + integrity sha512-T0yTFjdpldGY8PmuXXR0PyQ1ufZpEGiHVrp7zHKB7jdR4qlmZHhONVM5AQOAWXuF/w3dnHbEQVrNptJgt7F+cQ== + dependencies: + graceful-fs "^4.2.4" + tapable "^2.2.0" + enquirer@^2.3.5: version "2.3.6" resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" @@ -9808,6 +11104,11 @@ es-abstract@^1.19.1: string.prototype.trimstart "^1.0.4" unbox-primitive "^1.0.1" +es-module-lexer@^0.9.0: + version "0.9.3" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-0.9.3.tgz#6f13db00cc38417137daf74366f535c8eb438f19" + integrity sha512-1HQ2M2sPtxwnvOvT1ZClHyQDiggdNjURWpY2we6aMKCQiUVxTmVs2UYPLIrD84sS+kMdUwfBSylbJPwNnBrnHQ== + es-to-primitive@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" @@ -9963,6 +11264,14 @@ eslint-plugin-qunit@^6.2.0: eslint-utils "^3.0.0" requireindex "^1.2.0" +eslint-scope@5.1.1, eslint-scope@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" + eslint-scope@^4.0.0, eslint-scope@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848" @@ -9971,14 +11280,6 @@ eslint-scope@^4.0.0, eslint-scope@^4.0.3: esrecurse "^4.1.0" estraverse "^4.1.1" -eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - eslint-utils@^1.3.1: version "1.4.3" resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.3.tgz#74fec7c54d0776b6f67e0251040b5806564e981f" @@ -10216,6 +11517,11 @@ events@^3.0.0: resolved "https://registry.yarnpkg.com/events/-/events-3.1.0.tgz#84279af1b34cb75aa88bf5ff291f6d0bd9b31a59" integrity sha512-Rv+u8MLHNOdMjTAFeT3nCjHn2aGlx435FP/sDHNaRhDEMwyI/aB22Kj2qIN8R0cw3z28psEQLYwxVKLsKrMgWg== +events@^3.2.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" + integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== + evp_bytestokey@^1.0.0, evp_bytestokey@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz#7fcbdb198dc71959432efe13842684e0525acb02" @@ -10958,6 +12264,15 @@ fs-extra@^0.30.0: path-is-absolute "^1.0.0" rimraf "^2.2.8" +fs-extra@^10.0.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf" + integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + fs-extra@^3.0.1: version "3.0.1" resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-3.0.1.tgz#3794f378c58b342ea7dbbb23095109c4b3b62291" @@ -11152,6 +12467,20 @@ fuse.js@^6.4.6: resolved "https://registry.yarnpkg.com/fuse.js/-/fuse.js-6.4.6.tgz#62f216c110e5aa22486aff20be7896d19a059b79" integrity sha512-/gYxR/0VpXmWSfZOIPS3rWwU8SHgsRTwWuXhyb2O6s7aRuVtHtxCkR33bNYu3wyLyNx/Wpv0vU7FZy8Vj53VNw== +gauge@^4.0.3: + version "4.0.4" + resolved "https://registry.yarnpkg.com/gauge/-/gauge-4.0.4.tgz#52ff0652f2bbf607a989793d53b751bef2328dce" + integrity sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg== + dependencies: + aproba "^1.0.3 || ^2.0.0" + color-support "^1.1.3" + console-control-strings "^1.1.0" + has-unicode "^2.0.1" + signal-exit "^3.0.7" + string-width "^4.2.3" + strip-ansi "^6.0.1" + wide-align "^1.1.5" + gauge@~2.7.3: version "2.7.4" resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" @@ -11372,6 +12701,22 @@ glob-to-regexp@^0.3.0: resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs= +glob-to-regexp@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" + integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== + +glob@8.0.3: + version "8.0.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-8.0.3.tgz#415c6eb2deed9e502c68fa44a272e6da6eeca42e" + integrity sha512-ull455NHSHI/Y1FqGaaYFaLGkNMMJbavMrEGFXG/PGrg6y7sutWHUHrz6gy6WEBH6akM1M414dWKCNs+IhKdiQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^5.0.1" + once "^1.3.0" + glob@^5.0.10: version "5.0.15" resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" @@ -11627,6 +12972,11 @@ graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.3 resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.4.tgz#2256bde14d3632958c465ebc96dc467ca07a29fb" integrity sha512-WjKPNJF79dtJAVniUlGGWHYGz2jWxT6VhN/4m1NdkbZ2nOsEF+cI1Edgql5zCRhs/VsQYRvrXctxktVXZUkixw== +graceful-fs@^4.2.9: + version "4.2.10" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.10.tgz#147d3a006da4ca3ce14728c7aefc287c367d7a6c" + integrity sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA== + "graceful-readlink@>= 1.0.0": version "1.0.1" resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" @@ -11744,7 +13094,7 @@ has-tostringtag@^1.0.0: dependencies: has-symbols "^1.0.2" -has-unicode@^2.0.0: +has-unicode@^2.0.0, has-unicode@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/has-unicode/-/has-unicode-2.0.1.tgz#e0e6fe6a28cf51138855e086d1691e771de2a8b9" integrity sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk= @@ -12075,6 +13425,11 @@ iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@~0.4.13: dependencies: safer-buffer ">= 2.1.2 < 3" +icss-utils@^5.0.0, icss-utils@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae" + integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA== + ieee754@^1.1.13: version "1.2.1" resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" @@ -13203,6 +14558,15 @@ jest-worker@^26.3.0: merge-stream "^2.0.0" supports-color "^7.0.0" +jest-worker@^27.4.5: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" + integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== + dependencies: + "@types/node" "*" + merge-stream "^2.0.0" + supports-color "^8.0.0" + jest@^26.4.2: version "26.4.2" resolved "https://registry.yarnpkg.com/jest/-/jest-26.4.2.tgz#7e8bfb348ec33f5459adeaffc1a25d5752d9d312" @@ -13258,6 +14622,13 @@ js-yaml@^3.14.0: argparse "^1.0.7" esprima "^4.0.0" +js-yaml@^4.0.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + jsbn@~0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" @@ -13394,7 +14765,7 @@ json-parse-better-errors@^1.0.1, json-parse-better-errors@^1.0.2: resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== -json-parse-even-better-errors@^2.3.0: +json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== @@ -13450,6 +14821,11 @@ json5@^2.1.2: dependencies: minimist "^1.2.5" +json5@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.1.tgz#655d50ed1e6f95ad1a3caababd2b0efda10b395c" + integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== + jsonfile@^2.1.0: version "2.4.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-2.4.0.tgz#3736a2b428b87bbda0cc83b53fa3d633a35c2ae8" @@ -13674,6 +15050,11 @@ loader-runner@^2.3.0, loader-runner@^2.4.0: resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357" integrity sha512-Jsmr89RcXGIwivFY21FcRrisYZfvLMTWx5kOLc+JTxtpBOG6xML0vzbc6SEQG2FO9/4Fc3wW4LVcB5DmGflaRw== +loader-runner@^4.2.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1" + integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg== + loader-utils@^1.1.0, loader-utils@^1.2.3, loader-utils@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-1.4.0.tgz#c579b5e34cb34b1a74edc6c1fb36bfa371d5a613" @@ -13683,6 +15064,15 @@ loader-utils@^1.1.0, loader-utils@^1.2.3, loader-utils@^1.4.0: emojis-list "^3.0.0" json5 "^1.0.1" +loader-utils@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.2.tgz#d6e3b4fb81870721ae4e0868ab11dd638368c129" + integrity sha512-TM57VeHptv569d/GKh6TAYdzKblwDNiumOdkFnejjD0XwTH87K90w3O7AiJRqdQoXygvi1VQTJTLGhJl7WqA7A== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^2.1.2" + loader.js@^4.7.0: version "4.7.0" resolved "https://registry.yarnpkg.com/loader.js/-/loader.js-4.7.0.tgz#a1a52902001c83631efde9688b8ab3799325ef1f" @@ -14321,6 +15711,11 @@ mime-db@1.50.0: resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.50.0.tgz#abd4ac94e98d3c0e185016c67ab45d5fde40c11f" integrity sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A== +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + mime-types@2.1.27, mime-types@^2.1.12, mime-types@^2.1.18, mime-types@^2.1.19, mime-types@^2.1.26, mime-types@~2.1.19: version "2.1.27" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.27.tgz#47949f98e279ea53119f5722e0f34e529bec009f" @@ -14328,6 +15723,13 @@ mime-types@2.1.27, mime-types@^2.1.12, mime-types@^2.1.18, mime-types@^2.1.19, m dependencies: mime-db "1.44.0" +mime-types@^2.1.27: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + mime-types@~2.1.24: version "2.1.33" resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.33.tgz#1fa12a904472fafd068e48d9e8401f74d3f70edb" @@ -14360,6 +15762,13 @@ mimic-response@^3.1.0: resolved "https://registry.yarnpkg.com/mimic-response/-/mimic-response-3.1.0.tgz#2d1d59af9c1b129815accc2c46a022a5ce1fa3c9" integrity sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ== +mini-css-extract-plugin@^2.5.2: + version "2.6.1" + resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-2.6.1.tgz#9a1251d15f2035c342d99a468ab9da7a0451b71e" + integrity sha512-wd+SD57/K6DiV7jIR34P+s3uckTRuQvx0tKPcvjFlrEylk6P4mQ2KSWk1hblj1Kxaqok7LogKOieygXqBczNlg== + dependencies: + schema-utils "^4.0.0" + minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" @@ -14377,6 +15786,13 @@ minimalistic-crypto-utils@^1.0.1: dependencies: brace-expansion "^1.1.7" +minimatch@^5.0.1: + version "5.1.0" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.0.tgz#1717b464f4971b144f6aabe8f2d0b8e4511e09c7" + integrity sha512-9TPBGGak4nHfGZsPBohm9AWg6NoT7QTCehS3BIJABslyZbzxfV78QM2Y6+i741OPZIafFAaiiEMh5OyIrJPgtg== + dependencies: + brace-expansion "^2.0.1" + minimist@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.2.1.tgz#827ba4e7593464e7c221e8c5bed930904ee2c455" @@ -14577,6 +15993,11 @@ nan@^2.12.1: resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01" integrity sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw== +nanoid@^3.3.4: + version "3.3.4" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" + integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== + nanomatch@^1.2.9: version "1.2.13" resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" @@ -14604,7 +16025,7 @@ negotiator@0.6.2: resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.2.tgz#feacf7ccf525a77ae9634436a64883ffeca346fb" integrity sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw== -neo-async@^2.5.0, neo-async@^2.6.0, neo-async@^2.6.1: +neo-async@^2.5.0, neo-async@^2.6.0, neo-async@^2.6.1, neo-async@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== @@ -14739,6 +16160,11 @@ node-releases@^1.1.77: resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-1.1.77.tgz#50b0cfede855dd374e7585bf228ff34e57c1c32e" integrity sha512-rB1DUFUNAN4Gn9keO2K1efO35IDK7yKHCdCaIMvFO7yUYmmZYeDjnGKle26G4rwj+LKRQpjyUUvMkPglwGCYNQ== +node-releases@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.6.tgz#8a7088c63a55e493845683ebf3c828d8c51c5503" + integrity sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg== + node-watch@0.6.1: version "0.6.1" resolved "https://registry.yarnpkg.com/node-watch/-/node-watch-0.6.1.tgz#b9874111ce9f5841b1c7596120206c7b825be0e9" @@ -14872,6 +16298,16 @@ npmlog@^4.0.0, npmlog@^4.1.2: gauge "~2.7.3" set-blocking "~2.0.0" +npmlog@^6.0.0: + version "6.0.2" + resolved "https://registry.yarnpkg.com/npmlog/-/npmlog-6.0.2.tgz#c8166017a42f2dea92d6453168dd865186a70830" + integrity sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg== + dependencies: + are-we-there-yet "^3.0.0" + console-control-strings "^1.1.0" + gauge "^4.0.3" + set-blocking "^2.0.0" + number-is-nan@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" @@ -15379,7 +16815,7 @@ parse5@5.1.1, parse5@^5.1.1: resolved "https://registry.yarnpkg.com/parse5/-/parse5-5.1.1.tgz#f68e4e5ba1852ac2cadc00f4555fff6c2abb6178" integrity sha512-ugq4DFI0Ptb+WWjAdOK16+u/nHfiIrcE+sh8kZMaM0WllQKLI9rOUq6c2b7cwPkXdzfQESqvoqK6ug7U/Yyzug== -parse5@6.0.1: +parse5@6.0.1, parse5@^6.0.1: version "6.0.1" resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== @@ -15511,6 +16947,11 @@ picocolors@^0.2.1: resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f" integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA== +picocolors@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" + integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== + picomatch@^2.0.4, picomatch@^2.0.5, picomatch@^2.2.1: version "2.2.2" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.2.2.tgz#21f333e9b6b8eaff02468f5146ea406d345f4dad" @@ -15616,6 +17057,56 @@ posix-character-classes@^0.1.0: resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" integrity sha1-AerA/jta9xoqbAL+q7jB/vfgDqs= +postcss-modules-extract-imports@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.0.0.tgz#cda1f047c0ae80c97dbe28c3e76a43b88025741d" + integrity sha512-bdHleFnP3kZ4NYDhuGlVK+CMrQ/pqUm8bx/oGL93K6gVwiclvX5x0n76fYMKuIGKzlABOy13zsvqjb0f92TEXw== + +postcss-modules-local-by-default@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.0.tgz#ebbb54fae1598eecfdf691a02b3ff3b390a5a51c" + integrity sha512-sT7ihtmGSF9yhm6ggikHdV0hlziDTX7oFoXtuVWeDd3hHObNkcHRo9V3yg7vCAY7cONyxJC/XXCmmiHHcvX7bQ== + dependencies: + icss-utils "^5.0.0" + postcss-selector-parser "^6.0.2" + postcss-value-parser "^4.1.0" + +postcss-modules-scope@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-3.0.0.tgz#9ef3151456d3bbfa120ca44898dfca6f2fa01f06" + integrity sha512-hncihwFA2yPath8oZ15PZqvWGkWf+XUfQgUGamS4LqoP1anQLOsOJw0vr7J7IwLpoY9fatA2qiGUGmuZL0Iqlg== + dependencies: + postcss-selector-parser "^6.0.4" + +postcss-modules-values@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz#d7c5e7e68c3bb3c9b27cbf48ca0bb3ffb4602c9c" + integrity sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ== + dependencies: + icss-utils "^5.0.0" + +postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4: + version "6.0.10" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz#79b61e2c0d1bfc2602d549e11d0876256f8df88d" + integrity sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w== + dependencies: + cssesc "^3.0.0" + util-deprecate "^1.0.2" + +postcss-value-parser@^4.1.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" + integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== + +postcss@^8.2.15: + version "8.4.16" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.16.tgz#33a1d675fac39941f5f445db0de4db2b6e01d43c" + integrity sha512-ipHE1XBvKzm5xI7hiHCZJCSugxvsdq2mPnsq5+UF+VHCjiBvtDrlxJfMBToWaP9D5XlgNmcFGqoHmUn0EYEaRQ== + dependencies: + nanoid "^3.3.4" + picocolors "^1.0.0" + source-map-js "^1.0.2" + prelude-ls@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" @@ -16082,6 +17573,13 @@ redeyed@~1.0.0: dependencies: esprima "~3.0.0" +regenerate-unicode-properties@^10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.0.1.tgz#7f442732aa7934a3740c779bb9b3340dccc1fb56" + integrity sha512-vn5DU6yg6h8hP/2OkQo3K7uVILvY4iu0oI4t3HFa81UPkhGJwkRwM10JEc3upjdhHjs/k8GJY1sRBhk5sr69Bw== + dependencies: + regenerate "^1.4.2" + regenerate-unicode-properties@^8.2.0: version "8.2.0" resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-8.2.0.tgz#e5de7111d655e7ba60c057dbe9ff37c87e65cdec" @@ -16143,6 +17641,13 @@ regenerator-transform@^0.14.2: "@babel/runtime" "^7.8.4" private "^0.1.8" +regenerator-transform@^0.15.0: + version "0.15.0" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.0.tgz#cbd9ead5d77fae1a48d957cf889ad0586adb6537" + integrity sha512-LsrGtPmbYg19bcPHwdtmXwbW+TqNvtY4riE3P83foeHRroMbH6/2ddFBfab3t7kbzc7v7p4wbkIecHImqt0QNg== + dependencies: + "@babel/runtime" "^7.8.4" + regex-not@^1.0.0, regex-not@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" @@ -16202,6 +17707,18 @@ regexpu-core@^4.7.1: unicode-match-property-ecmascript "^2.0.0" unicode-match-property-value-ecmascript "^2.0.0" +regexpu-core@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.1.0.tgz#2f8504c3fd0ebe11215783a41541e21c79942c6d" + integrity sha512-bb6hk+xWd2PEOkj5It46A16zFMs2mv86Iwpdu94la4S3sJ7C973h2dHpYKwIBGaWSO7cIRJ+UX0IeMaWcO4qwA== + dependencies: + regenerate "^1.4.2" + regenerate-unicode-properties "^10.0.1" + regjsgen "^0.6.0" + regjsparser "^0.8.2" + unicode-match-property-ecmascript "^2.0.0" + unicode-match-property-value-ecmascript "^2.0.0" + registry-auth-token@^3.0.1: version "3.4.0" resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.4.0.tgz#d7446815433f5d5ed6431cd5dca21048f66b397e" @@ -16241,6 +17758,11 @@ regjsgen@^0.5.1, regjsgen@^0.5.2: resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.5.2.tgz#92ff295fb1deecbf6ecdab2543d207e91aa33733" integrity sha512-OFFT3MfrH90xIW8OOSyUrk6QHD5E9JOTeGodiJeBS3J6IwlgzJMNE/1bZklWz5oTg+9dCMyEetclvCVXOPoN3A== +regjsgen@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/regjsgen/-/regjsgen-0.6.0.tgz#83414c5354afd7d6627b16af5f10f41c4e71808d" + integrity sha512-ozE883Uigtqj3bx7OhL1KNbCzGyW2NQZPl6Hs09WTvCuZD5sTI4JY58bkbQWa/Y9hxIsvJ3M8Nbf7j54IqeZbA== + regjsparser@^0.1.4: version "0.1.5" resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.1.5.tgz#7ee8f84dc6fa792d3fd0ae228d24bd949ead205c" @@ -16262,6 +17784,13 @@ regjsparser@^0.7.0: dependencies: jsesc "~0.5.0" +regjsparser@^0.8.2: + version "0.8.4" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.8.4.tgz#8a14285ffcc5de78c5b95d62bbf413b6bc132d5f" + integrity sha512-J3LABycON/VNEu3abOviqGHuB/LOtOQj8SKmfP9anY5GfAVw/SPjwzSjxGjbZXIxbGfqTHtJw58C2Li/WkStmA== + dependencies: + jsesc "~0.5.0" + release-it-lerna-changelog@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/release-it-lerna-changelog/-/release-it-lerna-changelog-2.3.0.tgz#4bcaa0934d2fa2c48b3de47fb993cb0ce061d415" @@ -16586,7 +18115,7 @@ resolve-package-path@^3.1.0: path-root "^0.1.1" resolve "^1.17.0" -resolve-package-path@^4.0.1: +resolve-package-path@^4.0.1, resolve-package-path@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/resolve-package-path/-/resolve-package-path-4.0.3.tgz#31dab6897236ea6613c72b83658d88898a9040aa" integrity sha512-SRpNAPW4kewOaNUt8VPqhJ0UMxawMwzJD8V7m1cJfdSTK9ieZwS6K7Dabsm4bmLFM96Z5Y/UznrpG5kt1im8yA== @@ -16872,6 +18401,25 @@ schema-utils@^2.6.5: ajv "^6.12.0" ajv-keywords "^3.4.1" +schema-utils@^3.0.0, schema-utils@^3.1.0, schema-utils@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.1.1.tgz#bc74c4b6b6995c1d88f76a8b77bea7219e0c8281" + integrity sha512-Y5PQxS4ITlC+EahLuXaY86TXfR7Dc5lw294alXOq86JAHCihAIZfqv8nNCWvaEJvaC51uN9hbLGeV0cFBdH+Fw== + dependencies: + "@types/json-schema" "^7.0.8" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + +schema-utils@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.0.0.tgz#60331e9e3ae78ec5d16353c467c34b3a0a1d3df7" + integrity sha512-1edyXKgh6XnJsJSQ8mKWXnN/BVaIbFMLpouRUrXgVq7WYne5kw3MW7UPhO44uRXQSIpTSXoJbmrR2X0w9kUTyg== + dependencies: + "@types/json-schema" "^7.0.9" + ajv "^8.8.0" + ajv-formats "^2.1.1" + ajv-keywords "^5.0.0" + semver-diff@^3.1.1: version "3.1.1" resolved "https://registry.yarnpkg.com/semver-diff/-/semver-diff-3.1.1.tgz#05f77ce59f325e00e2706afd67bb506ddb1ca32b" @@ -16937,6 +18485,13 @@ serialize-javascript@^4.0.0: dependencies: randombytes "^2.1.0" +serialize-javascript@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.0.tgz#efae5d88f45d7924141da8b5c3a7a7e663fefeb8" + integrity sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag== + dependencies: + randombytes "^2.1.0" + serve-static@1.14.1: version "1.14.1" resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.14.1.tgz#666e636dc4f010f7ef29970a88a674320898b2f9" @@ -17047,6 +18602,11 @@ signal-exit@^3.0.3: resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.5.tgz#9e3e8cc0c75a99472b44321033a7702e7738252f" integrity sha512-KWcOiKeQj6ZyXx7zq4YxSMgHRlod4czeBQZrPb8OKcohcqAXShm7E20kEMle9WBt26hFcAf0qLOcp5zmY7kOqQ== +signal-exit@^3.0.7: + version "3.0.7" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== + silent-error@^1.0.0, silent-error@^1.0.1, silent-error@^1.1.0, silent-error@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/silent-error/-/silent-error-1.1.1.tgz#f72af5b0d73682a2ba1778b7e32cd8aa7c2d8662" @@ -17296,6 +18856,11 @@ source-list-map@^2.0.0: resolved "https://registry.yarnpkg.com/source-list-map/-/source-list-map-2.0.1.tgz#3993bd873bfc48479cca9ea3a547835c7c154b34" integrity sha512-qnQ7gVMxGNxsiL4lEuJwe/To8UnK7fAnmbGEEH8RpLouuKbeEm0lhbQVFIrNSuB+G7tVrAlVsZgETT5nljf+Iw== +source-map-js@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c" + integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw== + source-map-resolve@^0.5.0: version "0.5.3" resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" @@ -17566,6 +19131,15 @@ string-width@^1.0.1: is-fullwidth-code-point "^2.0.0" strip-ansi "^4.0.0" +"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + string-width@^3.0.0, string-width@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" @@ -17584,15 +19158,6 @@ string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0: is-fullwidth-code-point "^3.0.0" strip-ansi "^6.0.0" -string-width@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - string.prototype.matchall@^4.0.4, string.prototype.matchall@^4.0.5: version "4.0.6" resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.6.tgz#5abb5dabc94c7b0ea2380f65ba610b3a544b15fa" @@ -17755,6 +19320,14 @@ strip-json-comments@^3.1.1: resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== +style-loader@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/style-loader/-/style-loader-2.0.0.tgz#9669602fd4690740eaaec137799a03addbbc393c" + integrity sha512-Z0gYUJmzZ6ZdRUqpg1r8GsaFKypE+3xAzuFeMuoHgjc9KZv3wMyCRjQIWEbhoFSq7+7yoHXySDJyyWQaPajeiQ== + dependencies: + loader-utils "^2.0.0" + schema-utils "^3.0.0" + styled_string@0.0.1: version "0.0.1" resolved "https://registry.yarnpkg.com/styled_string/-/styled_string-0.0.1.tgz#d22782bd81295459bc4f1df18c4bad8e94dd124a" @@ -17793,6 +19366,13 @@ supports-color@^5.1.0, supports-color@^5.3.0: dependencies: has-flag "^3.0.0" +supports-color@^8.0.0: + version "8.1.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + supports-hyperlinks@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.1.0.tgz#f663df252af5f37c5d49bbd7eeefa9e0b9e59e47" @@ -17869,6 +19449,11 @@ tapable@^1.0.0, tapable@^1.1.0, tapable@^1.1.3: resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2" integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA== +tapable@^2.1.1, tapable@^2.2.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" + integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== + tar@^6.0.0: version "6.1.11" resolved "https://registry.yarnpkg.com/tar/-/tar-6.1.11.tgz#6760a38f003afa1b2ffd0ffe9e9abbd0eab3d621" @@ -17946,6 +19531,17 @@ terser-webpack-plugin@^1.4.3: webpack-sources "^1.4.0" worker-farm "^1.7.0" +terser-webpack-plugin@^5.1.3: + version "5.3.6" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.6.tgz#5590aec31aa3c6f771ce1b1acca60639eab3195c" + integrity sha512-kfLFk+PoLUQIbLmB1+PZDMRSZS99Mp+/MHqDNmMA6tOItzRt+Npe3E+fsMs5mfcM0wCtrrdU387UnV+vnSffXQ== + dependencies: + "@jridgewell/trace-mapping" "^0.3.14" + jest-worker "^27.4.5" + schema-utils "^3.1.1" + serialize-javascript "^6.0.0" + terser "^5.14.1" + terser@^4.1.2, terser@^4.3.9: version "4.7.0" resolved "https://registry.yarnpkg.com/terser/-/terser-4.7.0.tgz#15852cf1a08e3256a80428e865a2fa893ffba006" @@ -17955,6 +19551,16 @@ terser@^4.1.2, terser@^4.3.9: source-map "~0.6.1" source-map-support "~0.5.12" +terser@^5.14.1: + version "5.15.0" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.15.0.tgz#e16967894eeba6e1091509ec83f0c60e179f2425" + integrity sha512-L1BJiXVmheAQQy+as0oF3Pwtlo4s3Wi1X2zNZ2NxOB4wx9bdS9Vk67XQENLFdLYGCK/Z2di53mTj/hBafR+dTA== + dependencies: + "@jridgewell/source-map" "^0.3.2" + acorn "^8.5.0" + commander "^2.20.0" + source-map-support "~0.5.20" + terser@^5.3.0: version "5.9.0" resolved "https://registry.yarnpkg.com/terser/-/terser-5.9.0.tgz#47d6e629a522963240f2b55fcaa3c99083d2c351" @@ -18601,6 +20207,14 @@ upath@^1.1.1: resolved "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894" integrity sha512-aZwGpamFO61g3OlfT7OQCHqhGnW43ieH9WZeP7QxN/G/jS4jfqUkZxoryvJgVPEcrl5NL/ggHsSmLMHuH64Lhg== +update-browserslist-db@^1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.7.tgz#16279639cff1d0f800b14792de43d97df2d11b7d" + integrity sha512-iN/XYesmZ2RmmWAiI4Z5rq0YqSiv0brj9Ce9CfhNE4xIW2h+MFxcgkxIzZ+ShkFPUkjU3gQ+3oypadD3RAMtrg== + dependencies: + escalade "^3.1.1" + picocolors "^1.0.0" + update-notifier@4.1.0: version "4.1.0" resolved "https://registry.yarnpkg.com/update-notifier/-/update-notifier-4.1.0.tgz#4866b98c3bc5b5473c020b1250583628f9a328f3" @@ -18940,6 +20554,14 @@ watchpack@^1.7.4: chokidar "^3.4.1" watchpack-chokidar2 "^2.0.1" +watchpack@^2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.0.tgz#fa33032374962c78113f93c7f2fb4c54c9862a5d" + integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg== + dependencies: + glob-to-regexp "^0.4.1" + graceful-fs "^4.1.2" + wcwidth@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" @@ -18970,6 +20592,11 @@ webpack-sources@^1.3.0, webpack-sources@^1.4.0, webpack-sources@^1.4.1: source-list-map "^2.0.0" source-map "~0.6.1" +webpack-sources@^3.2.3: + version "3.2.3" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" + integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== + webpack@^4.43.0: version "4.46.0" resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.46.0.tgz#bf9b4404ea20a073605e0a011d188d77cb6ad542" @@ -18999,6 +20626,36 @@ webpack@^4.43.0: watchpack "^1.7.4" webpack-sources "^1.4.1" +webpack@^5.74.0: + version "5.74.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.74.0.tgz#02a5dac19a17e0bb47093f2be67c695102a55980" + integrity sha512-A2InDwnhhGN4LYctJj6M1JEaGL7Luj6LOmyBHjcI8529cm5p6VXiTIW2sn6ffvEAKmveLzvu4jrihwXtPojlAA== + dependencies: + "@types/eslint-scope" "^3.7.3" + "@types/estree" "^0.0.51" + "@webassemblyjs/ast" "1.11.1" + "@webassemblyjs/wasm-edit" "1.11.1" + "@webassemblyjs/wasm-parser" "1.11.1" + acorn "^8.7.1" + acorn-import-assertions "^1.7.6" + browserslist "^4.14.5" + chrome-trace-event "^1.0.2" + enhanced-resolve "^5.10.0" + es-module-lexer "^0.9.0" + eslint-scope "5.1.1" + events "^3.2.0" + glob-to-regexp "^0.4.1" + graceful-fs "^4.2.9" + json-parse-even-better-errors "^2.3.1" + loader-runner "^4.2.0" + mime-types "^2.1.27" + neo-async "^2.6.2" + schema-utils "^3.1.0" + tapable "^2.1.1" + terser-webpack-plugin "^5.1.3" + watchpack "^2.4.0" + webpack-sources "^3.2.3" + webpack@~4.28: version "4.28.4" resolved "https://registry.yarnpkg.com/webpack/-/webpack-4.28.4.tgz#1ddae6c89887d7efb752adf0c3cd32b9b07eacd0" @@ -19124,6 +20781,13 @@ wide-align@^1.1.0: dependencies: string-width "^1.0.2 || 2" +wide-align@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/wide-align/-/wide-align-1.1.5.tgz#df1d4c206854369ecf3c9a4898f1b23fbd9d15d3" + integrity sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg== + dependencies: + string-width "^1.0.2 || 2 || 3 || 4" + widest-line@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/widest-line/-/widest-line-3.1.0.tgz#8292333bbf66cb45ff0de1603b136b7ae1496eca"