@frontile/forms 0.17.0-alpha.9 → 0.17.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/addon-main.js +0 -33
- package/declarations/components/checkbox-group.d.ts +41 -0
- package/declarations/components/checkbox-group.d.ts.map +1 -0
- package/declarations/components/checkbox.d.ts +39 -0
- package/declarations/components/checkbox.d.ts.map +1 -0
- package/declarations/components/form-control.d.ts +47 -0
- package/declarations/components/form-control.d.ts.map +1 -0
- package/declarations/components/form-description.d.ts +19 -0
- package/declarations/components/form-description.d.ts.map +1 -0
- package/declarations/components/form-feedback.d.ts +23 -0
- package/declarations/components/form-feedback.d.ts.map +1 -0
- package/declarations/components/form.d.ts +19 -0
- package/declarations/components/form.d.ts.map +1 -0
- package/declarations/components/icons.d.ts +8 -0
- package/declarations/components/icons.d.ts.map +1 -0
- package/declarations/components/input.d.ts +140 -0
- package/declarations/components/input.d.ts.map +1 -0
- package/declarations/components/label.d.ts +41 -0
- package/declarations/components/label.d.ts.map +1 -0
- package/declarations/components/native-select.d.ts +96 -21
- package/declarations/components/native-select.d.ts.map +1 -1
- package/declarations/components/radio-group.d.ts +44 -0
- package/declarations/components/radio-group.d.ts.map +1 -0
- package/declarations/components/radio.d.ts +40 -0
- package/declarations/components/radio.d.ts.map +1 -0
- package/declarations/components/select.d.ts +240 -16
- package/declarations/components/select.d.ts.map +1 -1
- package/declarations/components/switch.d.ts +148 -0
- package/declarations/components/switch.d.ts.map +1 -0
- package/declarations/components/textarea.d.ts +68 -0
- package/declarations/components/textarea.d.ts.map +1 -0
- package/declarations/index.d.ts +13 -2
- package/declarations/index.d.ts.map +1 -1
- package/declarations/template-registry.d.ts +13 -30
- package/declarations/template-registry.d.ts.map +1 -1
- package/declarations/test-support.d.ts +3 -0
- package/declarations/test-support.d.ts.map +1 -0
- package/declarations/utils/index.d.ts +3 -0
- package/declarations/utils/index.d.ts.map +1 -0
- package/dist/_app_/components/checkbox-group.js +1 -0
- package/dist/_app_/components/checkbox.js +1 -0
- package/dist/_app_/components/form-control.js +1 -0
- package/dist/_app_/components/form-description.js +1 -0
- package/dist/_app_/components/form-feedback.js +1 -0
- package/dist/_app_/components/form.js +1 -0
- package/dist/_app_/components/icons.js +1 -0
- package/dist/_app_/components/input.js +1 -0
- package/dist/_app_/components/label.js +1 -0
- package/dist/_app_/components/radio-group.js +1 -0
- package/dist/_app_/components/radio.js +1 -0
- package/dist/_app_/components/switch.js +1 -0
- package/dist/_app_/components/textarea.js +1 -0
- package/dist/components/checkbox-group.js +29 -0
- package/dist/components/checkbox-group.js.map +1 -0
- package/dist/components/checkbox.js +44 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/form-control.js +61 -0
- package/dist/components/form-control.js.map +1 -0
- package/dist/components/form-description.js +24 -0
- package/dist/components/form-description.js.map +1 -0
- package/dist/components/form-feedback.js +36 -0
- package/dist/components/form-feedback.js.map +1 -0
- package/dist/components/form.js +43 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/icons.js +13 -0
- package/dist/components/icons.js.map +1 -0
- package/dist/components/input.js +100 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.js +23 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/native-select.js +60 -56
- package/dist/components/native-select.js.map +1 -1
- package/dist/components/radio-group.js +29 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/radio.js +43 -0
- package/dist/components/radio.js.map +1 -0
- package/dist/components/select.js +131 -78
- package/dist/components/select.js.map +1 -1
- package/dist/components/switch.js +60 -0
- package/dist/components/switch.js.map +1 -0
- package/dist/components/textarea.js +47 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/index-CeaQc-U7.js +23 -0
- package/dist/index-CeaQc-U7.js.map +1 -0
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/runtime-BPCpkOf1-YDR_IEBR.js +67 -0
- package/dist/runtime-BPCpkOf1-YDR_IEBR.js.map +1 -0
- package/dist/test-support.js +1337 -0
- package/dist/test-support.js.map +1 -0
- package/package.json +69 -72
- package/declarations/components/form-checkbox-group.d.ts +0 -50
- package/declarations/components/form-checkbox-group.d.ts.map +0 -1
- package/declarations/components/form-checkbox.d.ts +0 -49
- package/declarations/components/form-checkbox.d.ts.map +0 -1
- package/declarations/components/form-field/checkbox.d.ts +0 -19
- package/declarations/components/form-field/checkbox.d.ts.map +0 -1
- package/declarations/components/form-field/feedback.d.ts +0 -21
- package/declarations/components/form-field/feedback.d.ts.map +0 -1
- package/declarations/components/form-field/hint.d.ts +0 -17
- package/declarations/components/form-field/hint.d.ts.map +0 -1
- package/declarations/components/form-field/input.d.ts +0 -21
- package/declarations/components/form-field/input.d.ts.map +0 -1
- package/declarations/components/form-field/label.d.ts +0 -17
- package/declarations/components/form-field/label.d.ts.map +0 -1
- package/declarations/components/form-field/radio.d.ts +0 -20
- package/declarations/components/form-field/radio.d.ts.map +0 -1
- package/declarations/components/form-field/select.d.ts +0 -38
- package/declarations/components/form-field/select.d.ts.map +0 -1
- package/declarations/components/form-field/textarea.d.ts +0 -19
- package/declarations/components/form-field/textarea.d.ts.map +0 -1
- package/declarations/components/form-field.d.ts +0 -38
- package/declarations/components/form-field.d.ts.map +0 -1
- package/declarations/components/form-input.d.ts +0 -64
- package/declarations/components/form-input.d.ts.map +0 -1
- package/declarations/components/form-radio-group.d.ts +0 -48
- package/declarations/components/form-radio-group.d.ts.map +0 -1
- package/declarations/components/form-radio.d.ts +0 -54
- package/declarations/components/form-radio.d.ts.map +0 -1
- package/declarations/components/form-select.d.ts +0 -51
- package/declarations/components/form-select.d.ts.map +0 -1
- package/declarations/components/form-textarea.d.ts +0 -17
- package/declarations/components/form-textarea.d.ts.map +0 -1
- package/dist/_app_/components/form-checkbox-group.js +0 -1
- package/dist/_app_/components/form-checkbox.js +0 -1
- package/dist/_app_/components/form-field/checkbox.js +0 -1
- package/dist/_app_/components/form-field/feedback.js +0 -1
- package/dist/_app_/components/form-field/hint.js +0 -1
- package/dist/_app_/components/form-field/input.js +0 -1
- package/dist/_app_/components/form-field/label.js +0 -1
- package/dist/_app_/components/form-field/radio.js +0 -1
- package/dist/_app_/components/form-field/textarea.js +0 -1
- package/dist/_app_/components/form-field.js +0 -1
- package/dist/_app_/components/form-input.js +0 -1
- package/dist/_app_/components/form-radio-group.js +0 -1
- package/dist/_app_/components/form-radio.js +0 -1
- package/dist/_app_/components/form-select.js +0 -1
- package/dist/_app_/components/form-textarea.js +0 -1
- package/dist/components/form-checkbox-group.js +0 -77
- package/dist/components/form-checkbox-group.js.map +0 -1
- package/dist/components/form-checkbox.js +0 -59
- package/dist/components/form-checkbox.js.map +0 -1
- package/dist/components/form-field/checkbox.js +0 -38
- package/dist/components/form-field/checkbox.js.map +0 -1
- package/dist/components/form-field/feedback.js +0 -36
- package/dist/components/form-field/feedback.js.map +0 -1
- package/dist/components/form-field/hint.js +0 -24
- package/dist/components/form-field/hint.js.map +0 -1
- package/dist/components/form-field/input.js +0 -44
- package/dist/components/form-field/input.js.map +0 -1
- package/dist/components/form-field/label.js +0 -24
- package/dist/components/form-field/label.js.map +0 -1
- package/dist/components/form-field/radio.js +0 -37
- package/dist/components/form-field/radio.js.map +0 -1
- package/dist/components/form-field/textarea.js +0 -38
- package/dist/components/form-field/textarea.js.map +0 -1
- package/dist/components/form-field.js +0 -44
- package/dist/components/form-field.js.map +0 -1
- package/dist/components/form-input.js +0 -89
- package/dist/components/form-input.js.map +0 -1
- package/dist/components/form-radio-group.js +0 -77
- package/dist/components/form-radio-group.js.map +0 -1
- package/dist/components/form-radio.js +0 -63
- package/dist/components/form-radio.js.map +0 -1
- package/dist/components/form-select.js +0 -124
- package/dist/components/form-select.js.map +0 -1
- package/dist/components/form-textarea.js +0 -48
- package/dist/components/form-textarea.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"test-support.js","sources":["../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/has-ember-version.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/-internal/-owner-mixin-imports.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/-internal/build-registry.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/-target.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/-is-form-control.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/-utils.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/wait-until.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/global.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/-internal/deprecations.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/-internal/warnings.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/helper-hooks.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/-internal/debug-info-helpers.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/-internal/debug-info.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/setup-context-Cx9HkMuO.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/get-root-element.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/setup-rendering-context.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/-internal/render-settled.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/-get-element.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/-get-window-or-element.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/-tuple.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/-logging.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/fire-event.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/-get-description.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/blur.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/focus.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/click.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/double-click.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/tab.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/tap.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/trigger-event.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/trigger-key-event.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/fill-in.js","../../../node_modules/.pnpm/@ember+test-helpers@4.0.5_@babel+core@7.26.7_@glint+template@1.5.2_ember-source@6.1.0_@glimme_2bvwtzwczwe2dqxxoqchdhdgwq/node_modules/@ember/test-helpers/dist/dom/type-in.js","../src/test-support.ts"],"sourcesContent":["import { VERSION } from '@ember/version';\n\n// @ts-ignore\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*/\nfunction hasEmberVersion(major, minor) {\n const numbers = VERSION.split('-')[0]?.split('.');\n if (!numbers || !numbers[0] || !numbers[1]) {\n throw new Error('`Ember.VERSION` is not set.');\n }\n const actualMajor = parseInt(numbers[0], 10);\n const actualMinor = parseInt(numbers[1], 10);\n return actualMajor > major || actualMajor === major && actualMinor >= minor;\n}\n\nexport { hasEmberVersion as default };\n//# sourceMappingURL=has-ember-version.js.map\n","import Ember from 'ember';\n\n// These utter shenanigans allow this to work regardless of what types you are\n// importing from. The idea is: you supply multiple imports, each of which is\n// mutually exclusive with the others in terms of valid imports, then ignore the\n// imports so they type check, then \"resolve\" between them based on which one is\n// actually defined. 😭\n//\n// TODO: at the next major version (4.0), when we drop support for Ember < 5.1\n// or some later version and can therefore either depend *somewhat* more on\n// these import locations *or* can drop them entirely (depending on the path\n// taken in terms of the `Owner` stack), switch to the normal imports:\n// ```\n// import {\n// ContainerProxyMixin,\n// RegistryProxyMixin,\n// } from '@ember/-internals/runtime';\n// ```\n//\n// For now, we are stuck with this utterly horrifying hack to get the types for\n// these reliably.\n\nconst ContainerProxyMixin = Ember._ContainerProxyMixin;\nconst RegistryProxyMixin = Ember._RegistryProxyMixin;\n\nexport { ContainerProxyMixin, RegistryProxyMixin };\n//# sourceMappingURL=-owner-mixin-imports.js.map\n","import ApplicationInstance from '@ember/application/instance';\nimport Application from '@ember/application';\nimport EmberObject from '@ember/object';\nimport Ember from 'ember';\nimport { RegistryProxyMixin, ContainerProxyMixin } from './-owner-mixin-imports.js';\n\n/**\n * Adds methods that are normally only on registry to the container. This is largely to support the legacy APIs\n * that are not using `owner` (but are still using `this.container`).\n *\n * @private\n * @param {Object} container the container to modify\n */\nfunction exposeRegistryMethodsWithoutDeprecations(container) {\n const methods = ['register', 'unregister', 'resolve', 'normalize', 'typeInjection', 'injection', 'factoryInjection', 'factoryTypeInjection', 'has', 'options', 'optionsForType'];\n for (let i = 0, l = methods.length; i < l; i++) {\n const methodName = methods[i];\n if (methodName && methodName in container) {\n const knownMethod = methodName;\n container[knownMethod] = function (...args) {\n return container._registry[knownMethod](...args);\n };\n }\n }\n}\n\n// NOTE: this is the same as what `EngineInstance`/`ApplicationInstance`\n// implement, and is thus a superset of the `InternalOwner` contract from Ember\n// itself.\n\nconst Owner = EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin, {\n _emberTestHelpersMockOwner: true,\n /* eslint-disable valid-jsdoc */\n /**\n * Unregister a factory and its instance.\n *\n * Overrides `RegistryProxy#unregister` in order to clear any cached instances\n * of the unregistered factory.\n *\n * @param {string} fullName Name of the factory to unregister.\n *\n * @see {@link https://github.com/emberjs/ember.js/pull/12680}\n * @see {@link https://github.com/emberjs/ember.js/blob/v4.5.0-alpha.5/packages/%40ember/engine/instance.ts#L152-L167}\n */\n /* eslint-enable valid-jsdoc */\n unregister(fullName) {\n // SAFETY: this is always present, but only the stable type definitions from\n // Ember actually preserve it, since it is private API.\n this['__container__'].reset(fullName);\n\n // We overwrote this method from RegistryProxyMixin.\n // SAFETY: this is always present, but only the stable type definitions from\n // Ember actually preserve it, since it is private API.\n this['__registry__'].unregister(fullName);\n }\n});\n\n/**\n * @private\n * @param {Object} resolver the resolver to use with the registry\n * @returns {Object} owner, container, registry\n */\nfunction buildRegistry(resolver) {\n const namespace = new Application();\n // @ts-ignore: this is actually the correcct type, but there was a typo in\n // Ember's docs for many years which meant that there was a matching problem\n // in the types for Ember's definition of `Engine`. Once we require at least\n // Ember 5.1 (in some future breaking change), this ts-ignore can be removed.\n namespace.Resolver = {\n create() {\n return resolver;\n }\n };\n\n // @ts-ignore: this is private API.\n const fallbackRegistry = Application.buildRegistry(namespace);\n // TODO: only do this on Ember < 3.13\n // @ts-ignore: this is private API.\n fallbackRegistry.register('component-lookup:main', Ember.ComponentLookup);\n\n // @ts-ignore: this is private API.\n const registry = new Ember.Registry({\n fallback: fallbackRegistry\n });\n\n // @ts-ignore: this is private API.\n ApplicationInstance.setupRegistry(registry);\n\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 // @ts-ignore: this is private API.\n registry.normalizeFullName = fallbackRegistry.normalizeFullName;\n // @ts-ignore: this is private API.\n registry.makeToString = fallbackRegistry.makeToString;\n // @ts-ignore: this is private API.\n registry.describe = fallbackRegistry.describe;\n const owner = Owner.create({\n // @ts-ignore -- we do not have type safety for `Object.extend` so the type\n // of `Owner` here is just `EmberObject`, but we *do* constrain it to allow\n // only types from the actual class, so these fields are not accepted.\n // However, we can see that they are valid, based on the definition of\n // `Owner` above given that it fulfills the `InternalOwner` contract and\n // also extends it just as `EngineInstance` does internally.\n //\n // NOTE: we use an `ignore` directive rather than `expect-error` because in\n // *some* versions of the types, we *do* have (at least some of) this\n // safety, and maximal backwards compatibility means we have to account for\n // that.\n __registry__: registry,\n __container__: null\n });\n\n // @ts-ignore: this is private API.\n const container = registry.container({\n owner: owner\n });\n // @ts-ignore: this is private API.\n owner.__container__ = container;\n exposeRegistryMethodsWithoutDeprecations(container);\n return {\n registry,\n container,\n owner\n };\n}\n\nexport { buildRegistry as default };\n//# sourceMappingURL=build-registry.js.map\n","// eslint-disable-next-line require-jsdoc\nfunction isElement(target) {\n return target !== null && typeof target === 'object' && Reflect.get(target, 'nodeType') === Node.ELEMENT_NODE;\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction isWindow(target) {\n return target instanceof Window;\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction isDocument(target) {\n return target !== null && typeof target === 'object' && Reflect.get(target, 'nodeType') === Node.DOCUMENT_NODE;\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction isContentEditable(element) {\n return 'isContentEditable' in element && element.isContentEditable;\n}\n\nexport { isContentEditable, isDocument, isElement, isWindow };\n//# sourceMappingURL=-target.js.map\n","import { isWindow, isDocument } from './-target.js';\n\nconst 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*/\nfunction isFormControl(element) {\n return !isWindow(element) && !isDocument(element) && FORM_CONTROL_TAGS.indexOf(element.tagName) > -1 && element.type !== 'hidden';\n}\n\nexport { isFormControl as default };\n//# sourceMappingURL=-is-form-control.js.map\n","import isFormControl from './dom/-is-form-control.js';\n\n/* globals Promise */\n\nconst nextTick = cb => Promise.resolve().then(cb);\nconst futureTick = setTimeout;\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*/\nfunction runDestroyablesFor(object, property) {\n const destroyables = object[property];\n if (!destroyables) {\n return;\n }\n for (let i = 0; i < destroyables.length; i++) {\n destroyables[i]();\n }\n delete object[property];\n}\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 */\nfunction isNumeric(n) {\n return !isNaN(parseFloat(n)) && isFinite(Number(n));\n}\n\n/**\n Checks if an element is considered visible by the focus area spec.\n\n @private\n @param {Element} element the element to check\n @returns {boolean} `true` when the element is visible, `false` otherwise\n*/\nfunction isVisible(element) {\n const styles = window.getComputedStyle(element);\n return styles.display !== 'none' && styles.visibility !== 'hidden';\n}\n\n/**\n Checks if an element is disabled.\n\n @private\n @param {Element} element the element to check\n @returns {boolean} `true` when the element is disabled, `false` otherwise\n*/\nfunction isDisabled(element) {\n if (isFormControl(element)) {\n return element.disabled;\n }\n return false;\n}\n\nexport { futureTick, isDisabled, isNumeric, isVisible, nextTick, runDestroyablesFor };\n//# sourceMappingURL=-utils.js.map\n","import { futureTick } from './-utils.js';\n\nconst TIMEOUTS = [0, 1, 2, 5, 7];\nconst 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 @example\n <caption>\n Waiting until a selected element displays text:\n </caption>\n await waitUntil(function() {\n return find('.my-selector').textContent.includes('something')\n }, { timeout: 2000 })\n*/\nfunction waitUntil(callback, options = {}) {\n const timeout = 'timeout' in options ? options.timeout : 1000;\n const timeoutMessage = 'timeoutMessage' in options ? options.timeoutMessage : 'waitUntil timed out';\n\n // creating this error eagerly so it has the proper invocation stack\n const waitUntilTimedOut = new Error(timeoutMessage);\n return new Promise(function (resolve, reject) {\n let time = 0;\n\n // eslint-disable-next-line require-jsdoc\n function scheduleCheck(timeoutsIndex) {\n const knownTimeout = TIMEOUTS[timeoutsIndex];\n const interval = knownTimeout === undefined ? MAX_TIMEOUT : knownTimeout;\n futureTick(function () {\n time += interval;\n let value;\n try {\n value = callback();\n } catch (error) {\n reject(error);\n return;\n }\n if (value) {\n resolve(value);\n } else if (time < timeout) {\n scheduleCheck(timeoutsIndex + 1);\n } else {\n reject(waitUntilTimedOut);\n return;\n }\n }, interval);\n }\n scheduleCheck(0);\n });\n}\n\nexport { waitUntil as default };\n//# sourceMappingURL=wait-until.js.map\n","/* globals global */\n\nvar global$1 = (() => {\n if (typeof self !== 'undefined') {\n return self;\n } else if (typeof window !== 'undefined') {\n return window;\n // @ts-ignore -- global does not exist\n } else if (typeof global !== 'undefined') {\n // @ts-ignore -- global does not exist\n return global;\n } else {\n return Function('return this')();\n }\n})();\n\nexport { global$1 as default };\n//# sourceMappingURL=global.js.map\n","import { registerDeprecationHandler } from '@ember/debug';\nimport isPromise from './is-promise.js';\n\nconst DEPRECATIONS = new WeakMap();\n\n/**\n *\n * Provides the list of deprecation failures associated with a given base context;\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @return {Array<DeprecationFailure>} the Deprecation Failures associated with the corresponding BaseContext;\n */\nfunction getDeprecationsForContext(context) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get deprecations for an invalid test context: '${context}'`);\n }\n let deprecations = DEPRECATIONS.get(context);\n if (!Array.isArray(deprecations)) {\n deprecations = [];\n DEPRECATIONS.set(context, deprecations);\n }\n return deprecations;\n}\n\n/**\n *\n * Provides the list of deprecation failures associated with a given base\n * context which occur while a callback is executed. This callback can be\n * synchronous, or it can be an async function.\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @param {Function} [callback] The callback that when executed will have its DeprecationFailure recorded\n * @return {Array<DeprecationFailure>} The Deprecation Failures associated with the corresponding baseContext which occurred while the CallbackFunction was executed\n */\nfunction getDeprecationsDuringCallbackForContext(context, callback) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get deprecations for an invalid test context: '${context}'`);\n }\n const deprecations = getDeprecationsForContext(context);\n const previousLength = deprecations.length;\n const result = callback();\n if (isPromise(result)) {\n return Promise.resolve(result).then(() => {\n return deprecations.slice(previousLength); // only return deprecations created as a result of the callback\n });\n } else {\n return deprecations.slice(previousLength); // only return deprecations created as a result of the callback\n }\n}\n\n// This provides (when the environment supports) queryParam support for deprecations:\n// * squelch deprecations by name via: `/tests/index.html?disabledDeprecations=this-property-fallback,some-other-thing`\n// * enable a debuggger when a deprecation by a specific name is encountered via: `/tests/index.html?debugDeprecations=some-other-thing` when the\nif (typeof URLSearchParams !== 'undefined') {\n const queryParams = new URLSearchParams(document.location.search.substring(1));\n const disabledDeprecations = queryParams.get('disabledDeprecations');\n const debugDeprecations = queryParams.get('debugDeprecations');\n\n // When using `/tests/index.html?disabledDeprecations=this-property-fallback,some-other-thing`\n // those deprecations will be squelched\n if (disabledDeprecations) {\n registerDeprecationHandler((message, options, next) => {\n if (!options || !disabledDeprecations.includes(options.id)) {\n next.apply(null, [message, options]);\n }\n });\n }\n\n // When using `/tests/index.html?debugDeprecations=some-other-thing` when the\n // `some-other-thing` deprecation is triggered, this `debugger` will be hit`\n if (debugDeprecations) {\n registerDeprecationHandler((message, options, next) => {\n if (options && debugDeprecations.includes(options.id)) {\n debugger; // eslint-disable-line no-debugger\n }\n next.apply(null, [message, options]);\n });\n }\n}\n\nexport { getDeprecationsDuringCallbackForContext, getDeprecationsForContext };\n//# sourceMappingURL=deprecations.js.map\n","import { registerWarnHandler } from '@ember/debug';\nimport isPromise from './is-promise.js';\n\n// the WARNINGS data structure which is used to weakly associated warnings with\n// the test context their occurred within\nconst WARNINGS = new WeakMap();\n\n/**\n *\n * Provides the list of warnings associated with a given base context;\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @return {Array<Warning>} the warnings associated with the corresponding BaseContext;\n */\nfunction getWarningsForContext(context) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get warnings for an invalid test context: '${context}'`);\n }\n let warnings = WARNINGS.get(context);\n if (!Array.isArray(warnings)) {\n warnings = [];\n WARNINGS.set(context, warnings);\n }\n return warnings;\n}\n\n/**\n *\n * Provides the list of warnings associated with a given test context which\n * occurred only while a the provided callback is executed. This callback can be\n * synchronous, or it can be an async function.\n *\n * @private\n * @param {BaseContext} [context] the test context\n * @param {Function} [callback] The callback that when executed will have its warnings recorded\n * @return {Array<Warning>} The warnings associated with the corresponding baseContext which occurred while the CallbackFunction was executed\n */\nfunction getWarningsDuringCallbackForContext(context, callback) {\n if (!context) {\n throw new TypeError(`[@ember/test-helpers] could not get warnings for an invalid test context: '${context}'`);\n }\n const warnings = getWarningsForContext(context);\n const previousLength = warnings.length;\n const result = callback();\n if (isPromise(result)) {\n return Promise.resolve(result).then(() => {\n return warnings.slice(previousLength); // only return warnings created as a result of the callback\n });\n } else {\n return warnings.slice(previousLength); // only return warnings created as a result of the callback\n }\n}\n\n// This provides (when the environment supports) queryParam support for warnings:\n// * squelch warnings by name via: `/tests/index.html?disabledWarnings=this-property-fallback,some-other-thing`\n// * enable a debuggger when a warning by a specific name is encountered via: `/tests/index.html?debugWarnings=some-other-thing` when the\nif (typeof URLSearchParams !== 'undefined') {\n const queryParams = new URLSearchParams(document.location.search.substring(1));\n const disabledWarnings = queryParams.get('disabledWarnings');\n const debugWarnings = queryParams.get('debugWarnings');\n\n // When using `/tests/index.html?disabledWarnings=this-property-fallback,some-other-thing`\n // those warnings will be squelched\n if (disabledWarnings) {\n registerWarnHandler((message, options, next) => {\n if (!options || !disabledWarnings.includes(options.id)) {\n next.apply(null, [message, options]);\n }\n });\n }\n\n // When using `/tests/index.html?debugWarnings=some-other-thing` when the\n // `some-other-thing` warning is triggered, this `debugger` will be hit`\n if (debugWarnings) {\n registerWarnHandler((message, options, next) => {\n if (options && debugWarnings.includes(options.id)) {\n debugger; // eslint-disable-line no-debugger\n }\n next.apply(null, [message, options]);\n });\n }\n}\n\nexport { getWarningsDuringCallbackForContext, getWarningsForContext };\n//# sourceMappingURL=warnings.js.map\n","const registeredHooks = new Map();\n\n/**\n * @private\n * @param {string} helperName The name of the test helper in which to run the hook.\n * @param {string} label A label to help identify the hook.\n * @returns {string} The compound key for the helper.\n */\nfunction getHelperKey(helperName, label) {\n return `${helperName}:${label}`;\n}\n\n/**\n * Registers a function to be run during the invocation of a test helper.\n *\n * @param {string} helperName The name of the test helper in which to run the hook.\n * Test helper names include `blur`, `click`, `doubleClick`, `fillIn`,\n * `fireEvent`, `focus`, `render`, `scrollTo`, `select`, `tab`, `tap`, `triggerEvent`,\n * `triggerKeyEvent`, `typeIn`, and `visit`.\n * @param {string} label A label to help identify the hook. Built-in labels include `start`, `end`,\n * and `targetFound`, the former designating either the start or end of\n * the helper invocation.\n * @param {Function} hook The hook function to run when the test helper is invoked.\n * @returns {HookUnregister} An object containing an `unregister` function that unregisters\n * the specific hook initially registered to the helper.\n * @example\n * <caption>\n * Registering a hook for the `end` point of the `click` test helper invocation\n * </caption>\n *\n * const hook = registerHook('click', 'end', () => {\n * console.log('Running `click:end` test helper hook');\n * });\n *\n * // Unregister the hook at some later point in time\n * hook.unregister();\n */\nfunction registerHook(helperName, label, hook) {\n const helperKey = getHelperKey(helperName, label);\n let hooksForHelper = registeredHooks.get(helperKey);\n if (hooksForHelper === undefined) {\n hooksForHelper = new Set();\n registeredHooks.set(helperKey, hooksForHelper);\n }\n hooksForHelper.add(hook);\n return {\n unregister() {\n hooksForHelper.delete(hook);\n }\n };\n}\n\n/**\n * Runs all hooks registered for a specific test helper.\n *\n * @param {string} helperName The name of the test helper in which to run the hook.\n * Test helper names include `blur`, `click`, `doubleClick`, `fillIn`,\n * `fireEvent`, `focus`, `render`, `scrollTo`, `select`, `tab`, `tap`, `triggerEvent`,\n * `triggerKeyEvent`, `typeIn`, and `visit`.\n * @param {string} label A label to help identify the hook. Built-in labels include `start`, `end`,\n * and `targetFound`, the former designating either the start or end of\n * the helper invocation.\n * @param {unknown[]} args Any arguments originally passed to the test helper.\n * @returns {Promise<void>} A promise representing the serial invocation of the hooks.\n */\nfunction runHooks(helperName, label, ...args) {\n const hooks = registeredHooks.get(getHelperKey(helperName, label)) || new Set();\n const promises = [];\n hooks.forEach(hook => {\n const hookResult = hook(...args);\n promises.push(hookResult);\n });\n return Promise.all(promises).then(() => {});\n}\n\nexport { registerHook, runHooks };\n//# sourceMappingURL=helper-hooks.js.map\n","const debugInfoHelpers = new Set();\n\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 */\nfunction registerDebugInfoHelper(debugHelper) {\n debugInfoHelpers.add(debugHelper);\n}\n\nexport { debugInfoHelpers, registerDebugInfoHelper as default };\n//# sourceMappingURL=debug-info-helpers.js.map\n","import { _backburner } from '@ember/runloop';\nimport { debugInfoHelpers } from './debug-info-helpers.js';\nimport { getPendingWaiterState } from '@ember/test-waiters';\n\n// @ts-ignore: this is private API. This import will work Ember 5.1+ since it\n// \"provides\" this public API, but does not for earlier versions. As a result,\n// this type will be `any`.\nconst PENDING_AJAX_REQUESTS = 'Pending AJAX requests';\nconst PENDING_TEST_WAITERS = 'Pending test waiters';\nconst SCHEDULED_ASYNC = 'Scheduled async';\nconst SCHEDULED_AUTORUN = 'Scheduled autorun';\n\n/**\n * The base functionality which may be present on the `SettledState` interface\n * in the `settled` module (**not** the one in this module).\n */\n\n/**\n * Determines 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 */\nfunction backburnerDebugInfoAvailable() {\n return typeof _backburner.getDebugInfo === 'function';\n}\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 */\nfunction getDebugInfo() {\n return _backburner.DEBUG === true && backburnerDebugInfoAvailable() ? _backburner.getDebugInfo() : null;\n}\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 */\nclass TestDebugInfo {\n _settledState;\n _debugInfo;\n _summaryInfo = undefined;\n constructor(settledState, debugInfo = getDebugInfo()) {\n this._settledState = settledState;\n this._debugInfo = debugInfo;\n }\n get summary() {\n if (!this._summaryInfo) {\n this._summaryInfo = {\n ...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(isNotNullable).reduce((total, item) => {\n Object.values(item).forEach(queueItems => {\n // SAFETY: this cast is required for versions of Ember which do\n // not supply a correct definition of these types. It should\n // also be compatible with the version where Ember *does* supply\n // the types correctly.\n total += queueItems?.length ?? 0;\n });\n return total;\n }, 0);\n this._summaryInfo.pendingScheduledQueueItemStackTraces = this._debugInfo.instanceStack.filter(isNotNullable).reduce((stacks, deferredActionQueues) => {\n Object.values(deferredActionQueues).forEach(queueItems => {\n // SAFETY: this cast is required for versions of Ember which do\n // not supply a correct definition of these types. It should\n // also be compatible with the version where Ember *does* supply\n // the types correctly.\n queueItems?.forEach(queueItem => queueItem.stack && stacks.push(queueItem.stack));\n });\n return stacks;\n }, []);\n }\n if (this._summaryInfo.hasPendingTestWaiters) {\n this._summaryInfo.pendingTestWaiterInfo = getPendingWaiterState();\n }\n }\n return this._summaryInfo;\n }\n toConsole(_console = console) {\n const summary = this.summary;\n if (summary.hasPendingRequests) {\n _console.log(PENDING_AJAX_REQUESTS);\n }\n if (summary.hasPendingLegacyWaiters) {\n _console.log(PENDING_TEST_WAITERS);\n }\n if (summary.hasPendingTestWaiters) {\n if (!summary.hasPendingLegacyWaiters) {\n _console.log(PENDING_TEST_WAITERS);\n }\n Object.keys(summary.pendingTestWaiterInfo.waiters).forEach(waiterName => {\n const waiterDebugInfo = summary.pendingTestWaiterInfo.waiters[waiterName];\n if (Array.isArray(waiterDebugInfo)) {\n _console.group(waiterName);\n waiterDebugInfo.forEach(debugInfo => {\n _console.log(`${debugInfo.label ? debugInfo.label : 'stack'}: ${debugInfo.stack}`);\n });\n _console.groupEnd();\n } else {\n _console.log(waiterName);\n }\n });\n }\n if (summary.hasPendingTimers || summary.pendingScheduledQueueItemCount > 0) {\n _console.group(SCHEDULED_ASYNC);\n summary.pendingTimersStackTraces.forEach(timerStack => {\n _console.log(timerStack);\n });\n summary.pendingScheduledQueueItemStackTraces.forEach(scheduleQueueItemStack => {\n _console.log(scheduleQueueItemStack);\n });\n _console.groupEnd();\n }\n if (summary.hasRunLoop && summary.pendingTimersCount === 0 && summary.pendingScheduledQueueItemCount === 0) {\n _console.log(SCHEDULED_AUTORUN);\n if (summary.autorunStackTrace) {\n _console.log(summary.autorunStackTrace);\n }\n }\n debugInfoHelpers.forEach(helper => {\n helper.log();\n });\n }\n _formatCount(title, count) {\n return `${title}: ${count}`;\n }\n}\n\n// eslint-disable-next-line require-jsdoc, @typescript-eslint/no-empty-object-type\nfunction isNotNullable(value) {\n return value != null;\n}\n\nexport { TestDebugInfo, backburnerDebugInfoAvailable, getDebugInfo };\n//# sourceMappingURL=debug-info.js.map\n","import { _backburner, run } from '@ember/runloop';\nimport { set, setProperties, get, getProperties } from '@ember/object';\nimport { setOwner } from '@ember/application';\nimport buildOwner from './build-owner.js';\nimport { Test } from 'ember-testing';\nimport { pendingRequests as pendingRequests$1 } from 'ember-testing/lib/test/pending_requests';\nimport { nextTick } from './-utils.js';\nimport waitUntil from './wait-until.js';\nimport Ember from 'ember';\nimport { assert, registerDeprecationHandler, registerWarnHandler } from '@ember/debug';\nimport global from './global.js';\nimport { getResolver } from './resolver.js';\nimport { getApplication } from './application.js';\nimport getTestMetadata from './test-metadata.js';\nimport { registerDestructor, associateDestroyableChild } from '@ember/destroyable';\nimport { getDeprecationsForContext, getDeprecationsDuringCallbackForContext } from './-internal/deprecations.js';\nimport { getWarningsForContext, getWarningsDuringCallbackForContext } from './-internal/warnings.js';\nimport hasEmberVersion from './has-ember-version.js';\nimport { runHooks } from './helper-hooks.js';\nimport { hasPendingWaiters } from '@ember/test-waiters';\nimport { TestDebugInfo } from './-internal/debug-info.js';\n\nconst CAN_USE_ROUTER_EVENTS = hasEmberVersion(3, 6);\nlet routerTransitionsPending = null;\nconst ROUTER = new WeakMap();\nconst HAS_SETUP_ROUTER = new WeakMap();\n\n// eslint-disable-next-line require-jsdoc\nfunction isApplicationTestContext(context) {\n return isTestContext(context);\n}\n\n/**\n Determines if we have any pending router transitions (used to determine `settled` state)\n\n @public\n @returns {(boolean|null)} if there are pending transitions\n*/\nfunction hasPendingTransitions() {\n if (CAN_USE_ROUTER_EVENTS) {\n return routerTransitionsPending;\n }\n const context = getContext();\n\n // there is no current context, we cannot check\n if (context === undefined) {\n return null;\n }\n const router = ROUTER.get(context);\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 const routerMicrolib = router._routerMicrolib || router.router;\n if (routerMicrolib === undefined) {\n return null;\n }\n return !!routerMicrolib.activeTransition;\n}\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 */\nfunction setupRouterSettlednessTracking() {\n const context = getContext();\n if (context === undefined || !isTestContext(context)) {\n throw new Error('Cannot setupRouterSettlednessTracking outside of a test context');\n }\n\n // avoid setting up many times for the same context\n if (HAS_SETUP_ROUTER.get(context)) {\n return;\n }\n HAS_SETUP_ROUTER.set(context, true);\n const {\n owner\n } = context;\n let router;\n if (CAN_USE_ROUTER_EVENTS) {\n // SAFETY: unfortunately we cannot `assert` here at present because the\n // class is not exported, only the type, since it is not designed to be\n // sub-classed. The most we can do at present is assert that it at least\n // *exists* and assume that if it does exist, it is bound correctly.\n const routerService = owner.lookup('service:router');\n assert('router service is not set up correctly', !!routerService);\n router = routerService;\n\n // 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 router.on('routeWillChange', () => routerTransitionsPending = true);\n router.on('routeDidChange', () => routerTransitionsPending = false);\n } else {\n // SAFETY: similarly, this cast cannot be made safer because on the versions\n // where we fall into this path, this is *also* not an exported class.\n const mainRouter = owner.lookup('router:main');\n assert('router:main is not available', !!mainRouter);\n router = mainRouter;\n ROUTER.set(context, router);\n }\n\n // hook into teardown to reset local settledness state\n const ORIGINAL_WILL_DESTROY = router.willDestroy;\n router.willDestroy = function () {\n routerTransitionsPending = null;\n return ORIGINAL_WILL_DESTROY.call(this);\n };\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<void>} resolves when settled\n\n @example\n <caption>\n Visiting the route for post 1.\n </caption>\n await visit('/posts/1');\n\n @example\n <caption>\n Visiting the route for post 1 while also providing the `rootElement` app boot option.\n </caption>\n await visit('/', { rootElement: '#container' });\n*/\nfunction visit(url, options) {\n const context = getContext();\n if (!context || !isApplicationTestContext(context)) {\n throw new Error('Cannot call `visit` without having first called `setupApplicationContext`.');\n }\n const {\n owner\n } = context;\n const testMetadata = getTestMetadata(context);\n testMetadata.usedHelpers.push('visit');\n return Promise.resolve().then(() => {\n return runHooks('visit', 'start', url, options);\n }).then(() => {\n const visitResult = owner.visit(url, options);\n setupRouterSettlednessTracking();\n return visitResult;\n }).then(() => {\n if (global.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).then(() => {\n return runHooks('visit', 'end', url, options);\n });\n}\n\n/**\n @public\n @returns {string} the currently active route name\n*/\nfunction currentRouteName() {\n const context = getContext();\n if (!context || !isApplicationTestContext(context)) {\n throw new Error('Cannot call `currentRouteName` without having first called `setupApplicationContext`.');\n }\n const router = context.owner.lookup('router:main');\n const currentRouteName = router.currentRouteName;\n assert('currentRouteName should be a string', typeof currentRouteName === 'string');\n return currentRouteName;\n}\nconst HAS_CURRENT_URL_ON_ROUTER = hasEmberVersion(2, 13);\n\n/**\n @public\n @returns {string} the applications current url\n*/\nfunction currentURL() {\n const context = getContext();\n if (!context || !isApplicationTestContext(context)) {\n throw new Error('Cannot call `currentURL` without having first called `setupApplicationContext`.');\n }\n const router = context.owner.lookup('router:main');\n if (HAS_CURRENT_URL_ON_ROUTER) {\n const routerCurrentURL = router.currentURL;\n\n // SAFETY: this path is a lie for the sake of the public-facing types. The\n // framework itself sees this path, but users never do. A user who calls the\n // API without calling `visit()` will see an `UnrecognizedURLError`, rather\n // than getting back `null`.\n if (routerCurrentURL === null) {\n return routerCurrentURL;\n }\n assert(`currentUrl should be a string, but was ${typeof routerCurrentURL}`, typeof routerCurrentURL === 'string');\n return routerCurrentURL;\n } else {\n // SAFETY: this is *positively ancient* and should probably be removed at\n // some point; old routers which don't have `currentURL` *should* have a\n // `location` with `getURL()` per the docs for 2.12.\n return router.location.getURL();\n }\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<void>} resolves when the context is set up\n*/\nfunction setupApplicationContext(context) {\n const testMetadata = getTestMetadata(context);\n testMetadata.setupTypes.push('setupApplicationContext');\n return Promise.resolve();\n}\n\n// @ts-ignore: this is private API. This import will work Ember 5.1+ since it\n// \"provides\" this public API, but does not for earlier versions. As a result,\n// this type will be `any`.\nlet requests;\nconst checkWaiters = Test.checkWaiters;\n\n/**\n @private\n @returns {number} the count of pending requests\n*/\nfunction pendingRequests() {\n const localRequestsPending = requests !== undefined ? requests.length : 0;\n const internalRequestsPending = pendingRequests$1();\n return localRequestsPending + internalRequestsPending;\n}\n\n/**\n @private\n @param {Event} event (unused)\n @param {XMLHTTPRequest} xhr the XHR that has initiated a request\n*/\nfunction incrementAjaxPendingRequests(event, xhr) {\n requests.push(xhr);\n}\n\n/**\n @private\n @param {Event} event (unused)\n @param {XMLHTTPRequest} xhr the XHR that has initiated a request\n*/\nfunction 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 nextTick(() => {\n for (let i = 0; i < requests.length; i++) {\n if (xhr === requests[i]) {\n requests.splice(i, 1);\n }\n }\n });\n}\n\n/**\n Clears listeners that were previously setup for `ajaxSend` and `ajaxComplete`.\n\n @private\n*/\nfunction _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\n // We can no longer handle any remaining requests\n requests = [];\n if (typeof globalThis.jQuery === 'undefined') {\n return;\n }\n globalThis.jQuery(document).off('ajaxSend', incrementAjaxPendingRequests);\n globalThis.jQuery(document).off('ajaxComplete', decrementAjaxPendingRequests);\n}\n\n/**\n Sets up listeners for `ajaxSend` and `ajaxComplete`.\n\n @private\n*/\nfunction _setupAJAXHooks() {\n requests = [];\n if (typeof globalThis.jQuery === 'undefined') {\n return;\n }\n globalThis.jQuery(document).on('ajaxSend', incrementAjaxPendingRequests);\n globalThis.jQuery(document).on('ajaxComplete', decrementAjaxPendingRequests);\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 - `isRenderPending` - Checks if there are any pending render operations. This will be true as long\n as there are tracked values in the template that have not been rerendered yet.\n\n @public\n @returns {Object} object with properties for each of the metrics used to determine settledness\n*/\nfunction getSettledState() {\n const hasPendingTimers = _backburner.hasTimers();\n const hasRunLoop = Boolean(_backburner.currentInstance);\n const hasPendingLegacyWaiters = checkWaiters();\n const hasPendingTestWaiters = hasPendingWaiters();\n const pendingRequestCount = pendingRequests();\n const hasPendingRequests = pendingRequestCount > 0;\n // TODO: Ideally we'd have a function in Ember itself that can synchronously identify whether\n // or not there are any pending render operations, but this will have to suffice for now\n const isRenderPending = !!hasRunLoop;\n return {\n hasPendingTimers,\n hasRunLoop,\n hasPendingWaiters: hasPendingLegacyWaiters || hasPendingTestWaiters,\n hasPendingRequests,\n hasPendingTransitions: hasPendingTransitions(),\n isRenderPending,\n pendingRequestCount,\n debugInfo: new TestDebugInfo({\n hasPendingTimers,\n hasRunLoop,\n hasPendingLegacyWaiters,\n hasPendingTestWaiters,\n hasPendingRequests,\n isRenderPending\n })\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*/\nfunction isSettled() {\n const {\n hasPendingTimers,\n hasRunLoop,\n hasPendingRequests,\n hasPendingWaiters,\n hasPendingTransitions,\n isRenderPending\n } = getSettledState();\n if (hasPendingTimers || hasRunLoop || hasPendingRequests || hasPendingWaiters || hasPendingTransitions || isRenderPending) {\n return false;\n }\n return true;\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 @public\n @returns {Promise<void>} resolves when settled\n*/\nfunction settled() {\n return waitUntil(isSettled, {\n timeout: Infinity\n }).then(() => {});\n}\n\nconst cachedOnerror = new Map();\n\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 <caption>Example implementation for `ember-qunit` or `ember-mocha`</caption>\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 */\nfunction setupOnerror(onError) {\n const context = getContext();\n if (!context) {\n throw new Error('Must setup test context before calling setupOnerror');\n }\n if (!cachedOnerror.has(context)) {\n throw new Error('_cacheOriginalOnerror must be called before setupOnerror. Normally, this will happen as part of your test harness.');\n }\n if (typeof onError !== 'function') {\n onError = cachedOnerror.get(context);\n }\n Ember.onerror = onError;\n}\n\n/**\n * Resets `Ember.onerror` to the value it originally was at the start of the test run.\n * If there is no context or cached value this is a no-op.\n *\n * @public\n *\n * @example\n *\n * import { resetOnerror } from '@ember/test-helpers';\n *\n * QUnit.testDone(function() {\n * resetOnerror();\n * })\n */\nfunction resetOnerror() {\n const context = getContext();\n if (context && cachedOnerror.has(context)) {\n Ember.onerror = cachedOnerror.get(context);\n }\n}\n\n/**\n * Caches the current value of Ember.onerror. When `setupOnerror` is called without a value\n * or when `resetOnerror` is called the value will be set to what was cached here.\n *\n * @private\n * @param {BaseContext} context the text context\n */\nfunction _prepareOnerror(context) {\n if (cachedOnerror.has(context)) {\n throw new Error('_prepareOnerror should only be called once per-context');\n }\n cachedOnerror.set(context, Ember.onerror);\n}\n\n/**\n * Removes the cached value of Ember.onerror.\n *\n * @private\n * @param {BaseContext} context the text context\n */\nfunction _cleanupOnerror(context) {\n resetOnerror();\n cachedOnerror.delete(context);\n}\n\n// @ts-ignore: this is private API. This import will work Ember 5.1+ since it\n// \"provides\" this public API, but does not for earlier versions. As a result,\n// this type will be `any`.\n// This handler exists to provide the underlying data to enable the following methods:\n// * getDeprecations()\n// * getDeprecationsDuringCallback()\n// * getDeprecationsDuringCallbackForContext()\nregisterDeprecationHandler((message, options, next) => {\n const context = getContext();\n if (context === undefined) {\n next.apply(null, [message, options]);\n return;\n }\n getDeprecationsForContext(context).push({\n message,\n options\n });\n next.apply(null, [message, options]);\n});\n\n// This handler exists to provide the underlying data to enable the following methods:\n// * getWarnings()\n// * getWarningsDuringCallback()\n// * getWarningsDuringCallbackForContext()\nregisterWarnHandler((message, options, next) => {\n const context = getContext();\n if (context === undefined) {\n next.apply(null, [message, options]);\n return;\n }\n getWarningsForContext(context).push({\n message,\n options\n });\n next.apply(null, [message, options]);\n});\n\n/**\n * The public API for the test context, which test authors can depend on being\n * available.\n *\n * Note: this is *not* user-constructible; it becomes available by calling\n * `setupContext()` with a base context object.\n */\n\n// eslint-disable-next-line require-jsdoc\nfunction isTestContext(context) {\n const maybeContext = context;\n return typeof maybeContext['pauseTest'] === 'function' && typeof maybeContext['resumeTest'] === 'function';\n}\n\n/**\n @private\n @param {Object} it the global object to test\n @returns {Boolean} it exists\n*/\nfunction check(it) {\n // Math is known to exist as a global in every environment.\n return it && it.Math === Math && it;\n}\nconst globalObject = check(typeof globalThis == 'object' && globalThis) || check(typeof window === 'object' && window) || check(typeof self === 'object' && self) ||\n// @ts-ignore -- global does not exist\ncheck(typeof global === 'object' && global);\n\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*/\nfunction setContext(context) {\n globalObject.__test_context__ = context;\n}\n\n/**\n Retrieve the \"global testing context\" as stored by `setContext`.\n\n @public\n @returns {Object} the previously stored testing context\n*/\nfunction getContext() {\n return globalObject.__test_context__;\n}\n\n/**\n Clear the \"global testing context\".\n\n Generally invoked from `teardownContext`.\n\n @public\n*/\nfunction unsetContext() {\n globalObject.__test_context__ = undefined;\n}\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<void>} resolves _only_ when `resumeTest()` is invoked\n * @example <caption>Usage via ember-qunit</caption>\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 */\nfunction pauseTest() {\n const context = getContext();\n if (!context || !isTestContext(context)) {\n throw new Error('Cannot call `pauseTest` without having first called `setupTest` or `setupRenderingTest`.');\n }\n return context.pauseTest();\n}\n\n/**\n Resumes a test previously paused by `await pauseTest()`.\n\n @public\n*/\nfunction resumeTest() {\n const context = getContext();\n if (!context || !isTestContext(context)) {\n throw new Error('Cannot call `resumeTest` without having first called `setupTest` or `setupRenderingTest`.');\n }\n context.resumeTest();\n}\n\n/**\n @private\n @param {Object} context the test context being cleaned up\n*/\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction cleanup(context) {\n _teardownAJAXHooks();\n\n // SAFETY: this is intimate API *designed* for us to override.\n Ember.testing = false;\n unsetContext();\n}\n\n/**\n * Returns deprecations which have occurred so far for a the current test context\n *\n * @public\n * @returns {Array<DeprecationFailure>} An array of deprecation messages\n * @example <caption>Usage via ember-qunit</caption>\n *\n * import { getDeprecations } from '@ember/test-helpers';\n *\n * module('awesome-sauce', function(hooks) {\n * setupRenderingTest(hooks);\n *\n * test('does something awesome', function(assert) {\n const deprecations = getDeprecations() // => returns deprecations which have occurred so far in this test\n * });\n * });\n */\nfunction getDeprecations() {\n const context = getContext();\n if (!context) {\n throw new Error('[@ember/test-helpers] could not get deprecations if no test context is currently active');\n }\n return getDeprecationsForContext(context);\n}\n/**\n * Returns deprecations which have occurred so far for a the current test context\n *\n * @public\n * @param {Function} [callback] The callback that when executed will have its DeprecationFailure recorded\n * @returns {Array<DeprecationFailure> | Promise<Array<DeprecationFailure>>} An array of deprecation messages\n * @example <caption>Usage via ember-qunit</caption>\n *\n * import { getDeprecationsDuringCallback } from '@ember/test-helpers';\n *\n * module('awesome-sauce', function(hooks) {\n * setupRenderingTest(hooks);\n *\n * test('does something awesome', function(assert) {\n * const deprecations = getDeprecationsDuringCallback(() => {\n * // code that might emit some deprecations\n *\n * }); // => returns deprecations which occurred while the callback was invoked\n * });\n *\n *\n * test('does something awesome', async function(assert) {\n * const deprecations = await getDeprecationsDuringCallback(async () => {\n * // awaited code that might emit some deprecations\n * }); // => returns deprecations which occurred while the callback was invoked\n * });\n * });\n */\nfunction getDeprecationsDuringCallback(callback) {\n const context = getContext();\n if (!context) {\n throw new Error('[@ember/test-helpers] could not get deprecations if no test context is currently active');\n }\n return getDeprecationsDuringCallbackForContext(context, callback);\n}\n\n/**\n * Returns warnings which have occurred so far for a the current test context\n *\n * @public\n * @returns {Array<Warning>} An array of warnings\n * @example <caption>Usage via ember-qunit</caption>\n *\n * import { getWarnings } from '@ember/test-helpers';\n *\n * module('awesome-sauce', function(hooks) {\n * setupRenderingTest(hooks);\n *\n * test('does something awesome', function(assert) {\n const warnings = getWarnings() // => returns warnings which have occurred so far in this test\n * });\n * });\n */\nfunction getWarnings() {\n const context = getContext();\n if (!context) {\n throw new Error('[@ember/test-helpers] could not get warnings if no test context is currently active');\n }\n return getWarningsForContext(context);\n}\n/**\n * Returns warnings which have occurred so far for a the current test context\n *\n * @public\n * @param {Function} [callback] The callback that when executed will have its warnings recorded\n * @returns {Array<Warning> | Promise<Array<Warning>>} An array of warnings information\n * @example <caption>Usage via ember-qunit</caption>\n *\n * import { getWarningsDuringCallback } from '@ember/test-helpers';\n * import { warn } from '@ember/debug';\n *\n * module('awesome-sauce', function(hooks) {\n * setupRenderingTest(hooks);\n *\n * test('does something awesome', function(assert) {\n * const warnings = getWarningsDuringCallback(() => {\n * warn('some warning');\n *\n * }); // => returns warnings which occurred while the callback was invoked\n * });\n *\n * test('does something awesome', async function(assert) {\n * warn('some warning');\n *\n * const warnings = await getWarningsDuringCallback(async () => {\n * warn('some other warning');\n * }); // => returns warnings which occurred while the callback was invoked\n * });\n * });\n */\nfunction getWarningsDuringCallback(callback) {\n const context = getContext();\n if (!context) {\n throw new Error('[@ember/test-helpers] could not get warnings if no test context is currently active');\n }\n return getWarningsDuringCallbackForContext(context, callback);\n}\n\n// This WeakMap is used to track whenever a component is rendered in a test so that we can throw\n// assertions when someone uses `this.{set,setProperties}` while rendering a component.\nconst ComponentRenderMap = new WeakMap();\nconst SetUsage = new WeakMap();\n\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} base 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<Object>} resolves with the context that was setup\n*/\nfunction setupContext(base, options = {}) {\n const context = base;\n\n // SAFETY: this is intimate API *designed* for us to override.\n Ember.testing = true;\n setContext(context);\n const testMetadata = getTestMetadata(context);\n testMetadata.setupTypes.push('setupContext');\n _backburner.DEBUG = true;\n registerDestructor(context, cleanup);\n _prepareOnerror(context);\n return Promise.resolve().then(() => {\n const application = getApplication();\n if (application) {\n return application.boot().then(() => {});\n }\n return;\n }).then(() => {\n const {\n resolver\n } = options;\n\n // This handles precedence, 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 if (resolver) {\n return buildOwner(null, resolver);\n }\n return buildOwner(getApplication(), getResolver());\n }).then(owner => {\n associateDestroyableChild(context, owner);\n Object.defineProperty(context, 'owner', {\n configurable: true,\n enumerable: true,\n value: owner,\n writable: false\n });\n setOwner(context, owner);\n Object.defineProperty(context, 'set', {\n configurable: true,\n enumerable: true,\n // SAFETY: in all of these `defineProperty` calls, we can't actually guarantee any safety w.r.t. the corresponding field's type in `TestContext`\n value(key, value) {\n const ret = run(function () {\n if (ComponentRenderMap.has(context)) {\n assert('You cannot call `this.set` when passing a component to `render()` (the rendered component does not have access to the test context).');\n } else {\n let setCalls = SetUsage.get(context);\n if (setCalls === undefined) {\n setCalls = [];\n SetUsage.set(context, setCalls);\n }\n setCalls?.push(key);\n }\n return set(context, key, value);\n });\n return ret;\n },\n writable: false\n });\n Object.defineProperty(context, 'setProperties', {\n configurable: true,\n enumerable: true,\n // SAFETY: in all of these `defineProperty` calls, we can't actually guarantee any safety w.r.t. the corresponding field's type in `TestContext`\n value(hash) {\n const ret = run(function () {\n if (ComponentRenderMap.has(context)) {\n assert('You cannot call `this.setProperties` when passing a component to `render()` (the rendered component does not have access to the test context)');\n } else {\n // While neither the types nor the API documentation indicate that passing `null` or\n // `undefined` to `setProperties` is allowed, it works and *has worked* for a long\n // time, so there is considerable real-world code which relies on the fact that it\n // does in fact work. Checking and no-op-ing here handles that.\n if (hash != null) {\n let setCalls = SetUsage.get(context);\n if (SetUsage.get(context) === undefined) {\n setCalls = [];\n SetUsage.set(context, setCalls);\n }\n setCalls?.push(...Object.keys(hash));\n }\n }\n return setProperties(context, hash);\n });\n return ret;\n },\n writable: false\n });\n Object.defineProperty(context, 'get', {\n configurable: true,\n enumerable: true,\n value(key) {\n return get(context, key);\n },\n writable: false\n });\n Object.defineProperty(context, 'getProperties', {\n configurable: true,\n enumerable: true,\n // SAFETY: in all of these `defineProperty` calls, we can't actually guarantee any safety w.r.t. the corresponding field's type in `TestContext`\n value(...args) {\n return getProperties(context, args);\n },\n writable: false\n });\n let resume;\n context['resumeTest'] = function resumeTest() {\n assert('Testing has not been paused. There is nothing to resume.', !!resume);\n resume();\n global.resumeTest = resume = undefined;\n };\n context['pauseTest'] = function pauseTest() {\n console.info('Testing paused. Use `resumeTest()` to continue.'); // eslint-disable-line no-console\n\n return new Promise(resolve => {\n resume = resolve;\n global.resumeTest = resumeTest;\n });\n };\n _setupAJAXHooks();\n return context;\n });\n}\n\nexport { ComponentRenderMap as C, SetUsage as S, _cleanupOnerror as _, setupContext as a, setContext as b, getDeprecations as c, getDeprecationsDuringCallback as d, getWarnings as e, getWarningsDuringCallback as f, getContext as g, setupApplicationContext as h, isTestContext as i, currentRouteName as j, currentURL as k, isSettled as l, getSettledState as m, setupOnerror as n, resetOnerror as o, pauseTest as p, isApplicationTestContext as q, resumeTest as r, settled as s, hasPendingTransitions as t, unsetContext as u, visit as v, setupRouterSettlednessTracking as w, _teardownAJAXHooks as x, _setupAJAXHooks as y, _prepareOnerror as z };\n//# sourceMappingURL=setup-context-Cx9HkMuO.js.map\n","import { g as getContext, i as isTestContext } from '../setup-context-Cx9HkMuO.js';\nimport { isElement, isDocument } from './-target.js';\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 @example\n <caption>\n Getting the root element of the application and checking that it is equal\n to the element with id 'ember-testing'.\n </caption>\n assert.equal(getRootElement(), document.querySelector('#ember-testing'));\n*/\nfunction getRootElement() {\n const context = getContext();\n if (!context || !isTestContext(context) || !context.owner) {\n throw new Error('Must setup rendering context before attempting to interact with elements.');\n }\n const owner = context.owner;\n let rootElement;\n // 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 if (owner && owner._emberTestHelpersMockOwner === undefined) {\n rootElement = owner.rootElement;\n } else {\n rootElement = '#ember-testing';\n }\n if (rootElement instanceof Window) {\n rootElement = rootElement.document;\n }\n if (isElement(rootElement) || isDocument(rootElement)) {\n return rootElement;\n } else if (typeof rootElement === 'string') {\n const _rootElement = document.querySelector(rootElement);\n if (_rootElement) {\n return _rootElement;\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\nexport { getRootElement as default };\n//# sourceMappingURL=get-root-element.js.map\n","import { run } from '@ember/runloop';\nimport Ember from 'ember';\nimport global from './global.js';\nimport { s as settled, i as isTestContext, g as getContext, C as ComponentRenderMap, S as SetUsage } from './setup-context-Cx9HkMuO.js';\nimport getRootElement from './dom/get-root-element.js';\nimport getTestMetadata from './test-metadata.js';\nimport { assert } from '@ember/debug';\nimport { runHooks } from './helper-hooks.js';\nimport hasEmberVersion from './has-ember-version.js';\nimport isComponent from './-internal/is-component.js';\nimport { precompileTemplate } from '@ember/template-compilation';\n\nconst OUTLET_TEMPLATE = precompileTemplate(\"{{outlet}}\", {\n strictMode: false\n});\nconst EMPTY_TEMPLATE = precompileTemplate(\"\", {\n strictMode: false\n});\nconst INVOKE_PROVIDED_COMPONENT = precompileTemplate(\"<this.ProvidedComponent />\", {\n strictMode: false\n});\nconst hasCalledSetupRenderingContext = Symbol();\n// Isolates the notion of transforming a TextContext into a RenderingTestContext.\n// eslint-disable-next-line require-jsdoc\nfunction prepare(context) {\n context[hasCalledSetupRenderingContext] = true;\n return context;\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction isRenderingTestContext(context) {\n return isTestContext(context) && hasCalledSetupRenderingContext in context;\n}\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*/\nfunction lookupTemplate(owner, templateFullName) {\n const template = owner.lookup(templateFullName);\n if (typeof template === 'function') return template(owner);\n return template;\n}\n\n/**\n @private\n @param {Ember.ApplicationInstance} owner the current owner instance\n @returns {Template} a template representing {{outlet}}\n*/\nfunction lookupOutletTemplate(owner) {\n let OutletTemplate = lookupTemplate(owner, 'template:-outlet');\n if (!OutletTemplate) {\n owner.register('template:-outlet', OUTLET_TEMPLATE);\n OutletTemplate = lookupTemplate(owner, 'template:-outlet');\n }\n return OutletTemplate;\n}\nlet templateId = 0;\n/**\n Renders the provided template and appends it to the DOM.\n\n @public\n @param {Template|Component} templateFactoryOrComponent the component (or template) to render\n @param {RenderOptions} options options hash containing engine owner ({ owner: engineOwner })\n @returns {Promise<void>} resolves when settled\n\n @example\n <caption>\n Render a div element with the class 'container'.\n </caption>\n await render(hbs`<div class=\"container\"></div>`);\n*/\nfunction render(templateFactoryOrComponent, options) {\n let context = getContext();\n if (!templateFactoryOrComponent) {\n throw new Error('you must pass a template to `render()`');\n }\n return Promise.resolve().then(() => runHooks('render', 'start')).then(() => {\n if (!context || !isRenderingTestContext(context)) {\n throw new Error('Cannot call `render` without having first called `setupRenderingContext`.');\n }\n const {\n owner\n } = context;\n const testMetadata = getTestMetadata(context);\n testMetadata.usedHelpers.push('render');\n\n // SAFETY: this is all wildly unsafe, because it is all using private API.\n // At some point we should define a path forward for this kind of internal\n // API. For now, just flagging it as *NOT* being safe!\n const toplevelView = owner.lookup('-top-level-view:main');\n const OutletTemplate = lookupOutletTemplate(owner);\n const ownerToRenderFrom = options?.owner || owner;\n if (isComponent(templateFactoryOrComponent)) {\n // We use this to track when `render` is used with a component so that we can throw an\n // assertion if `this.{set,setProperty} is used in the same test\n ComponentRenderMap.set(context, true);\n const setCalls = SetUsage.get(context);\n if (setCalls !== undefined) {\n assert(`You cannot call \\`this.set\\` or \\`this.setProperties\\` when passing a component to \\`render\\`, but they were called for the following properties:\\n${setCalls.map(key => ` - ${key}`).join('\\n')}`);\n }\n context = {\n ProvidedComponent: templateFactoryOrComponent\n };\n templateFactoryOrComponent = INVOKE_PROVIDED_COMPONENT;\n }\n templateId += 1;\n const templateFullName = `template:-undertest-${templateId}`;\n ownerToRenderFrom.register(templateFullName, templateFactoryOrComponent);\n const template = lookupTemplate(ownerToRenderFrom, templateFullName);\n const outletState = {\n render: {\n owner,\n // always use the host app owner for application outlet\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: ownerToRenderFrom,\n // the actual owner to be used for any lookups\n into: undefined,\n outlet: 'main',\n name: 'index',\n controller: context,\n ViewClass: undefined,\n template,\n outlets: {}\n },\n outlets: {}\n }\n }\n };\n toplevelView.setOutletState(outletState);\n\n // Ember's rendering engine is integration with the run loop so that when a run\n // loop starts, the rendering is scheduled to be done.\n //\n // Ember should be ensuring an instance on its own here (the act of\n // setting outletState should ensureInstance, since we know we need to\n // render), but on Ember < 3.23 that is not guaranteed.\n if (!hasEmberVersion(3, 23)) {\n // SAFETY: this was correct and type checked on the Ember v3 types, but\n // since the `run` namespace does not exist in Ember v4, this no longer\n // can be type checked. When (eventually) dropping support for Ember v3,\n // and therefore for versions before 3.23, this can be removed entirely.\n run.backburner.ensureInstance();\n }\n\n // 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 return settled();\n }).then(() => runHooks('render', 'end'));\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<void>} resolves when settled\n*/\nfunction clearRender() {\n const context = getContext();\n if (!context || !isRenderingTestContext(context)) {\n throw new Error('Cannot call `clearRender` without having first called `setupRenderingContext`.');\n }\n return render(EMPTY_TEMPLATE);\n}\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 {TestContext} context the context to setup for rendering\n @returns {Promise<RenderingTestContext>} resolves with the context that was setup\n\n @example\n <caption>\n Rendering out a paragraph element containing the content 'hello', and then clearing that content via clearRender.\n </caption>\n\n await render(hbs`<p>Hello!</p>`);\n assert.equal(this.element.textContent, 'Hello!', 'has rendered content');\n await clearRender();\n assert.equal(this.element.textContent, '', 'has rendered content');\n*/\nfunction setupRenderingContext(context) {\n const testMetadata = getTestMetadata(context);\n testMetadata.setupTypes.push('setupRenderingContext');\n const renderingContext = prepare(context);\n return Promise.resolve().then(() => {\n const {\n owner\n } = renderingContext;\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 if (owner._emberTestHelpersMockOwner) {\n const dispatcher = owner.lookup('event_dispatcher:main') || Ember.EventDispatcher.create();\n dispatcher.setup({}, '#ember-testing');\n }\n const OutletView = owner.factoryFor ? owner.factoryFor('view:-outlet') : owner._lookupFactory('view:-outlet');\n const environment = owner.lookup('-environment:main');\n const template = owner.lookup('template:-outlet');\n const toplevelView = OutletView.create({\n template,\n environment\n });\n owner.register('-top-level-view:main', {\n create() {\n return toplevelView;\n }\n });\n\n // initially render a simple empty template\n return render(EMPTY_TEMPLATE).then(() => {\n run(toplevelView, 'appendTo', getRootElement());\n return settled();\n });\n }).then(() => {\n Object.defineProperty(renderingContext, '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.EmberENV._APPLICATION_TEMPLATE_WRAPPER !== false ? getRootElement().querySelector('.ember-view') : getRootElement(),\n writable: false\n });\n return renderingContext;\n });\n}\n\nexport { clearRender, setupRenderingContext as default, isRenderingTestContext, render };\n//# sourceMappingURL=setup-rendering-context.js.map\n","import { macroCondition, dependencySatisfies, importSync } from '@embroider/macros';\n\nlet renderSettled;\nif (macroCondition(dependencySatisfies('ember-source', '>=4.5.0-beta.1'))) {\n //@ts-ignore\n renderSettled = importSync('@ember/renderer').renderSettled;\n} else {\n //@ts-ignore\n renderSettled = importSync('@ember/-internals/glimmer').renderSettled;\n}\nvar renderSettled$1 = renderSettled;\n\nexport { renderSettled$1 as default };\n//# sourceMappingURL=render-settled.js.map\n","import getRootElement from './get-root-element.js';\nimport { isElement, isDocument } from './-target.js';\nimport { lookupDescriptorData, resolveDOMElement } from 'dom-element-descriptors';\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*/\nfunction getElement(target) {\n if (typeof target === 'string') {\n const rootElement = getRootElement();\n return rootElement.querySelector(target);\n } else if (isElement(target) || isDocument(target)) {\n return target;\n } else if (target instanceof Window) {\n return target.document;\n } else {\n const descriptorData = lookupDescriptorData(target);\n if (descriptorData) {\n return resolveDOMElement(descriptorData);\n } else {\n throw new Error('Must use an element, selector string, or DOM element descriptor');\n }\n }\n}\n\nexport { getElement as default };\n//# sourceMappingURL=-get-element.js.map\n","import getElement from './-get-element.js';\nimport { isWindow } from './-target.js';\n\n/**\n Used internally by the DOM interaction helpers to find either window or an element.\n\n @private\n @param {string|Element} target the window, an element or selector to retrieve\n @returns {Element|Window} the target or selector\n*/\nfunction getWindowOrElement(target) {\n if (isWindow(target)) {\n return target;\n }\n return getElement(target);\n}\n\nexport { getWindowOrElement };\n//# sourceMappingURL=-get-window-or-element.js.map\n","// eslint-disable-next-line @typescript-eslint/no-empty-object-type\n\n// eslint-disable-next-line require-jsdoc\nfunction tuple(...args) {\n return args;\n}\n\nexport { tuple as default };\n//# sourceMappingURL=-tuple.js.map\n","/**\n * Logs a debug message to the console if the `testHelperLogging` query\n * parameter is set.\n *\n * @private\n * @param {string} helperName Name of the helper\n * @param {string|Element} target The target element or selector\n */\nfunction log(helperName, target, ...args) {\n if (loggingEnabled()) {\n // eslint-disable-next-line no-console\n console.log(`${helperName}(${[elementToString(target), ...args.filter(Boolean)].join(', ')})`);\n }\n}\n\n/**\n * Returns whether the test helper logging is enabled or not via the\n * `testHelperLogging` query parameter.\n *\n * @private\n * @returns {boolean} true if enabled\n */\nfunction loggingEnabled() {\n return typeof location !== 'undefined' && location.search.indexOf('testHelperLogging') !== -1;\n}\n\n/**\n * This generates a human-readable description to a DOM element.\n *\n * @private\n * @param {*} el The element that should be described\n * @returns {string} A human-readable description\n */\nfunction elementToString(el) {\n let desc;\n if (el instanceof NodeList) {\n if (el.length === 0) {\n return 'empty NodeList';\n }\n desc = Array.prototype.slice.call(el, 0, 5).map(elementToString).join(', ');\n return el.length > 5 ? `${desc}... (+${el.length - 5} more)` : desc;\n }\n if (!(el instanceof HTMLElement || el instanceof SVGElement)) {\n return String(el);\n }\n desc = el.tagName.toLowerCase();\n if (el.id) {\n desc += `#${el.id}`;\n }\n if (el.className && !(el.className instanceof SVGAnimatedString)) {\n desc += `.${String(el.className).replace(/\\s+/g, '.')}`;\n }\n Array.prototype.forEach.call(el.attributes, function (attr) {\n if (attr.name !== 'class' && attr.name !== 'id') {\n desc += `[${attr.name}${attr.value ? `=\"${attr.value}\"]` : ']'}`;\n }\n });\n return desc;\n}\n\nexport { elementToString, log };\n//# sourceMappingURL=-logging.js.map\n","import { isDocument, isElement } from './-target.js';\nimport tuple from '../-tuple.js';\nimport { log } from './-logging.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\n\nregisterHook('fireEvent', 'start', target => {\n log('fireEvent', target);\n});\n\n// eslint-disable-next-line require-jsdoc\nconst MOUSE_EVENT_CONSTRUCTOR = (() => {\n try {\n new MouseEvent('test');\n return true;\n } catch {\n return false;\n }\n})();\nconst DEFAULT_EVENT_OPTIONS = {\n bubbles: true,\n cancelable: true\n};\nconst KEYBOARD_EVENT_TYPES = tuple('keydown', 'keypress', 'keyup');\n// eslint-disable-next-line require-jsdoc\nfunction isKeyboardEventType(eventType) {\n return KEYBOARD_EVENT_TYPES.indexOf(eventType) > -1;\n}\nconst MOUSE_EVENT_TYPES = tuple('click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover');\n// eslint-disable-next-line require-jsdoc\nfunction isMouseEventType(eventType) {\n return MOUSE_EVENT_TYPES.indexOf(eventType) > -1;\n}\nconst FILE_SELECTION_EVENT_TYPES = tuple('change');\n// eslint-disable-next-line require-jsdoc\nfunction isFileSelectionEventType(eventType) {\n return FILE_SELECTION_EVENT_TYPES.indexOf(eventType) > -1;\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction 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*/\nfunction fireEvent(element, eventType, options = {}) {\n return Promise.resolve().then(() => runHooks('fireEvent', 'start', element)).then(() => runHooks(`fireEvent:${eventType}`, 'start', element)).then(() => {\n if (!element) {\n throw new Error('Must pass an element to `fireEvent`');\n }\n let event;\n if (isKeyboardEventType(eventType)) {\n event = _buildKeyboardEvent(eventType, options);\n } else if (isMouseEventType(eventType)) {\n let rect;\n if (element instanceof Window && element.document.documentElement) {\n rect = element.document.documentElement.getBoundingClientRect();\n } else if (isDocument(element)) {\n rect = element.documentElement.getBoundingClientRect();\n } else if (isElement(element)) {\n rect = element.getBoundingClientRect();\n } else {\n return;\n }\n const x = rect.left + 1;\n const y = rect.top + 1;\n const simulatedCoordinates = {\n screenX: x + 5,\n // Those numbers don't really mean anything.\n screenY: y + 95,\n // They're just to make the screenX/Y be different of clientX/Y..\n clientX: x,\n clientY: y,\n ...options\n };\n event = buildMouseEvent(eventType, simulatedCoordinates);\n } else if (isFileSelectionEventType(eventType) && isFileSelectionInput(element)) {\n event = buildFileEvent(eventType, element, options);\n } else {\n event = buildBasicEvent(eventType, options);\n }\n element.dispatchEvent(event);\n return event;\n }).then(event => runHooks(`fireEvent:${eventType}`, 'end', element).then(() => event)).then(event => runHooks('fireEvent', 'end', element).then(() => event));\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction buildBasicEvent(type, options = {}) {\n const event = document.createEvent('Events');\n const bubbles = options.bubbles !== undefined ? options.bubbles : true;\n const cancelable = options.cancelable !== undefined ? options.cancelable : true;\n delete options.bubbles;\n delete options.cancelable;\n\n // bubbles and cancelable are readonly, so they can be\n // set when initializing event\n event.initEvent(type, bubbles, cancelable);\n for (const prop in options) {\n event[prop] = options[prop];\n }\n return event;\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction buildMouseEvent(type, options = {}) {\n let event;\n const eventOpts = {\n view: window,\n ...DEFAULT_EVENT_OPTIONS,\n ...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 {\n event = buildBasicEvent(type, options);\n }\n }\n return event;\n}\n\n// @private\n// eslint-disable-next-line require-jsdoc\nfunction _buildKeyboardEvent(type, options = {}) {\n const eventOpts = {\n ...DEFAULT_EVENT_OPTIONS,\n ...options\n };\n let event;\n let eventMethodName;\n try {\n event = new KeyboardEvent(type, eventOpts);\n\n // 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 Object.defineProperty(event, 'keyCode', {\n get() {\n return parseInt(eventOpts.keyCode);\n }\n });\n Object.defineProperty(event, 'which', {\n get() {\n return parseInt(eventOpts.which);\n }\n });\n return event;\n } catch {\n // left intentionally blank\n }\n try {\n event = document.createEvent('KeyboardEvents');\n eventMethodName = 'initKeyboardEvent';\n } catch {\n // left intentionally blank\n }\n if (!event) {\n try {\n event = document.createEvent('KeyEvents');\n eventMethodName = 'initKeyEvent';\n } catch {\n // left intentionally blank\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 return event;\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction buildFileEvent(type, element, options = {}) {\n const event = buildBasicEvent(type);\n const files = options.files;\n if (Array.isArray(options)) {\n throw new Error('Please pass an object with a files array to `triggerEvent` instead of passing the `options` param as an array to.');\n }\n if (Array.isArray(files)) {\n Object.defineProperty(files, 'item', {\n value(index) {\n return typeof index === 'number' ? this[index] : null;\n },\n configurable: true\n });\n Object.defineProperty(element, 'files', {\n value: files,\n configurable: true\n });\n const elementProto = Object.getPrototypeOf(element);\n const valueProp = Object.getOwnPropertyDescriptor(elementProto, 'value');\n Object.defineProperty(element, 'value', {\n configurable: true,\n get() {\n return valueProp.get.call(element);\n },\n set(value) {\n valueProp.set.call(element, value);\n\n // We are sure that the value is empty here.\n // For a non-empty value the original setter must raise an exception.\n Object.defineProperty(element, 'files', {\n configurable: true,\n value: []\n });\n }\n });\n }\n Object.defineProperty(event, 'target', {\n value: element\n });\n return event;\n}\n\nexport { KEYBOARD_EVENT_TYPES, _buildKeyboardEvent, fireEvent as default, isFileSelectionEventType, isFileSelectionInput, isKeyboardEventType, isMouseEventType };\n//# sourceMappingURL=fire-event.js.map\n","import { isDescriptor, lookupDescriptorData } from 'dom-element-descriptors';\n\n/**\n Used internally by the DOM interaction helpers to get a description of a\n target for debug/error messaging.\n\n @private\n @param {Target} target the target\n @returns {string} a description of the target\n*/\nfunction getDescription(target) {\n const data = isDescriptor(target) ? lookupDescriptorData(target) : null;\n if (data) {\n return data.description || '<unknown descriptor>';\n } else {\n return `${target}`;\n }\n}\n\nexport { getDescription as default };\n//# sourceMappingURL=-get-description.js.map\n","import getElement from './-get-element.js';\nimport fireEvent from './fire-event.js';\nimport { s as settled } from '../setup-context-Cx9HkMuO.js';\nimport { log } from './-logging.js';\nimport isFocusable from './-is-focusable.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\nimport getDescription from './-get-description.js';\n\nregisterHook('blur', 'start', target => {\n log('blur', target);\n});\n\n/**\n @private\n @param {Element} element the element to trigger events on\n @param {Element} relatedTarget the element that is focused after blur\n @return {Promise<Event | void>} resolves when settled\n*/\nfunction __blur__(element, relatedTarget = null) {\n if (!isFocusable(element)) {\n throw new Error(`${element} is not focusable`);\n }\n const browserIsNotFocused = document.hasFocus && !document.hasFocus();\n const needsCustomEventOptions = relatedTarget !== null;\n if (!needsCustomEventOptions) {\n // makes `document.activeElement` be `body`.\n // If the browser is focused, it also fires a blur event\n element.blur();\n }\n\n // 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 const options = {\n relatedTarget\n };\n return browserIsNotFocused || needsCustomEventOptions ? Promise.resolve().then(() => fireEvent(element, 'blur', {\n bubbles: false,\n ...options\n })).then(() => fireEvent(element, 'focusout', options)) : Promise.resolve();\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|IDOMElementDescriptor} [target=document.activeElement] the element, selector, or descriptor to unfocus\n @return {Promise<void>} resolves when settled\n\n @example\n <caption>\n Emulating blurring an input using `blur`\n </caption>\n\n blur('input');\n*/\nfunction blur(target = document.activeElement) {\n return Promise.resolve().then(() => runHooks('blur', 'start', target)).then(() => {\n const element = getElement(target);\n if (!element) {\n const description = getDescription(target);\n throw new Error(`Element not found when calling \\`blur('${description}')\\`.`);\n }\n return __blur__(element).then(() => settled());\n }).then(() => runHooks('blur', 'end', target));\n}\n\nexport { __blur__, blur as default };\n//# sourceMappingURL=blur.js.map\n","import getElement from './-get-element.js';\nimport fireEvent from './fire-event.js';\nimport { s as settled } from '../setup-context-Cx9HkMuO.js';\nimport isFocusable from './-is-focusable.js';\nimport { isDocument } from './-target.js';\nimport { log } from './-logging.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\nimport { __blur__ } from './blur.js';\nimport getDescription from './-get-description.js';\n\nregisterHook('focus', 'start', target => {\n log('focus', target);\n});\n/**\n Get the closest focusable ancestor of a given element (or the element itself\n if it's focusable)\n\n @private\n @param {Element} element the element to trigger events on\n @returns {HTMLElement|SVGElement|null} the focusable element/ancestor or null\n if there is none\n */\nfunction getClosestFocusable(element) {\n if (isDocument(element)) {\n return null;\n }\n let maybeFocusable = element;\n while (maybeFocusable && !isFocusable(maybeFocusable)) {\n maybeFocusable = maybeFocusable.parentElement;\n }\n return maybeFocusable;\n}\n\n/**\n @private\n @param {Element} element the element to trigger events on\n @return {Promise<FocusRecord | Event | void>} resolves when settled\n*/\nfunction __focus__(element) {\n return Promise.resolve().then(() => {\n const focusTarget = getClosestFocusable(element);\n const previousFocusedElement = document.activeElement && document.activeElement !== focusTarget && isFocusable(document.activeElement) ? document.activeElement : null;\n\n // fire __blur__ manually with the null relatedTarget when the target is not focusable\n // and there was a previously focused element\n return !focusTarget && previousFocusedElement ? __blur__(previousFocusedElement, null).then(() => Promise.resolve({\n focusTarget,\n previousFocusedElement\n })) : Promise.resolve({\n focusTarget,\n previousFocusedElement\n });\n }).then(({\n focusTarget,\n previousFocusedElement\n }) => {\n if (!focusTarget) {\n throw new Error('There was a previously focused element');\n }\n const browserIsNotFocused = !document?.hasFocus();\n\n // fire __blur__ manually with the correct relatedTarget when the browser is not\n // already in focus and there was a previously focused element\n return previousFocusedElement && browserIsNotFocused ? __blur__(previousFocusedElement, focusTarget).then(() => Promise.resolve({\n focusTarget\n })) : Promise.resolve({\n focusTarget\n });\n }).then(({\n focusTarget\n }) => {\n // makes `document.activeElement` be `element`. If the browser is focused, it also fires a focus event\n focusTarget.focus();\n\n // 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 const browserIsFocused = document?.hasFocus();\n return browserIsFocused ? Promise.resolve() :\n // if the browser is not focused the previous `el.focus()` didn't fire an event, so we simulate it\n Promise.resolve().then(() => fireEvent(focusTarget, 'focus', {\n bubbles: false\n })).then(() => fireEvent(focusTarget, 'focusin')).then(() => settled());\n }).catch(() => {});\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|IDOMElementDescriptor} target the element, selector, or descriptor to focus\n @return {Promise<void>} resolves when the application is settled\n\n @example\n <caption>\n Emulating focusing an input using `focus`\n </caption>\n\n focus('input');\n*/\nfunction focus(target) {\n return Promise.resolve().then(() => runHooks('focus', 'start', target)).then(() => {\n if (!target) {\n throw new Error('Must pass an element, selector, or descriptor to `focus`.');\n }\n const element = getElement(target);\n if (!element) {\n const description = getDescription(target);\n throw new Error(`Element not found when calling \\`focus('${description}')\\`.`);\n }\n if (!isFocusable(element)) {\n throw new Error(`${element} is not focusable`);\n }\n return __focus__(element).then(settled);\n }).then(() => runHooks('focus', 'end', target));\n}\n\nexport { __focus__, focus as default };\n//# sourceMappingURL=focus.js.map\n","import { getWindowOrElement } from './-get-window-or-element.js';\nimport fireEvent from './fire-event.js';\nimport { __focus__ } from './focus.js';\nimport { s as settled } from '../setup-context-Cx9HkMuO.js';\nimport isFormControl from './-is-form-control.js';\nimport { isWindow } from './-target.js';\nimport { log } from './-logging.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\nimport getDescription from './-get-description.js';\n\nconst PRIMARY_BUTTON = 1;\nconst MAIN_BUTTON_PRESSED = 0;\nregisterHook('click', 'start', target => {\n log('click', target);\n});\n\n/**\n * Represent a particular mouse button being clicked.\n * See https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons for available options.\n */\nconst DEFAULT_CLICK_OPTIONS = {\n buttons: PRIMARY_BUTTON,\n button: MAIN_BUTTON_PRESSED\n};\n\n/**\n @private\n @param {Element} element the element to click on\n @param {MouseEventInit} options the options to be merged into the mouse events\n @return {Promise<Event | void>} resolves when settled\n*/\nfunction __click__(element, options) {\n return Promise.resolve().then(() => fireEvent(element, 'mousedown', options)).then(mouseDownEvent => !isWindow(element) && !mouseDownEvent?.defaultPrevented ? __focus__(element) : Promise.resolve()).then(() => fireEvent(element, 'mouseup', options)).then(() => fireEvent(element, 'click', options));\n}\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 specify modifier keys as well.\n\n @public\n @param {string|Element|IDOMElementDescriptor} target the element, selector, or descriptor to click on\n @param {MouseEventInit} _options the options to be merged into the mouse events.\n @return {Promise<void>} resolves when settled\n\n @example\n <caption>\n Emulating clicking a button using `click`\n </caption>\n click('button');\n\n @example\n <caption>\n Emulating clicking a button and pressing the `shift` key simultaneously using `click` with `options`.\n </caption>\n\n click('button', { shiftKey: true });\n*/\nfunction click(target, _options = {}) {\n const options = {\n ...DEFAULT_CLICK_OPTIONS,\n ..._options\n };\n return Promise.resolve().then(() => runHooks('click', 'start', target, _options)).then(() => {\n if (!target) {\n throw new Error('Must pass an element, selector, or descriptor to `click`.');\n }\n const element = getWindowOrElement(target);\n if (!element) {\n const description = getDescription(target);\n throw new Error(`Element not found when calling \\`click('${description}')\\`.`);\n }\n if (isFormControl(element) && element.disabled) {\n throw new Error(`Can not \\`click\\` disabled ${element}`);\n }\n return __click__(element, options).then(settled);\n }).then(() => runHooks('click', 'end', target, _options));\n}\n\nexport { DEFAULT_CLICK_OPTIONS, __click__, click as default };\n//# sourceMappingURL=click.js.map\n","import { getWindowOrElement } from './-get-window-or-element.js';\nimport fireEvent from './fire-event.js';\nimport { __focus__ } from './focus.js';\nimport { s as settled } from '../setup-context-Cx9HkMuO.js';\nimport { DEFAULT_CLICK_OPTIONS } from './click.js';\nimport { isWindow } from './-target.js';\nimport { log } from './-logging.js';\nimport isFormControl from './-is-form-control.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\nimport getDescription from './-get-description.js';\n\nregisterHook('doubleClick', 'start', target => {\n log('doubleClick', target);\n});\n\n/**\n @private\n @param {Element} element the element to double-click on\n @param {MouseEventInit} options the options to be merged into the mouse events\n @returns {Promise<Event | void>} resolves when settled\n*/\nfunction __doubleClick__(element, options) {\n return Promise.resolve().then(() => fireEvent(element, 'mousedown', options)).then(mouseDownEvent => {\n return !isWindow(element) && !mouseDownEvent?.defaultPrevented ? __focus__(element) : Promise.resolve();\n }).then(() => fireEvent(element, 'mouseup', options)).then(() => fireEvent(element, 'click', options)).then(() => fireEvent(element, 'mousedown', options)).then(() => fireEvent(element, 'mouseup', options)).then(() => fireEvent(element, 'click', options)).then(() => fireEvent(element, 'dblclick', options));\n}\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|IDOMElementDescriptor} target the element, selector, or descriptor to double-click on\n @param {MouseEventInit} _options the options to be merged into the mouse events\n @return {Promise<void>} resolves when settled\n\n @example\n <caption>\n Emulating double clicking a button using `doubleClick`\n </caption>\n\n doubleClick('button');\n\n @example\n <caption>\n Emulating double clicking a button and pressing the `shift` key simultaneously using `click` with `options`.\n </caption>\n\n doubleClick('button', { shiftKey: true });\n*/\nfunction doubleClick(target, _options = {}) {\n const options = {\n ...DEFAULT_CLICK_OPTIONS,\n ..._options\n };\n return Promise.resolve().then(() => runHooks('doubleClick', 'start', target, _options)).then(() => {\n if (!target) {\n throw new Error('Must pass an element, selector, or descriptor to `doubleClick`.');\n }\n const element = getWindowOrElement(target);\n if (!element) {\n const description = getDescription(target);\n throw new Error(`Element not found when calling \\`doubleClick('${description}')\\`.`);\n }\n if (isFormControl(element) && element.disabled) {\n throw new Error(`Can not \\`doubleClick\\` disabled ${element}`);\n }\n return __doubleClick__(element, options).then(settled);\n }).then(() => runHooks('doubleClick', 'end', target, _options));\n}\n\nexport { __doubleClick__, doubleClick as default };\n//# sourceMappingURL=double-click.js.map\n","import getRootElement from './get-root-element.js';\nimport { s as settled } from '../setup-context-Cx9HkMuO.js';\nimport fireEvent, { _buildKeyboardEvent } from './fire-event.js';\nimport { isDocument } from './-target.js';\nimport { __blur__ } from './blur.js';\nimport { __focus__ } from './focus.js';\nimport { isVisible, isDisabled } from '../-utils.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\nimport { log } from './-logging.js';\n\nconst SUPPORTS_INERT = 'inert' in Element.prototype;\nconst FALLBACK_ELEMENTS = ['CANVAS', 'VIDEO', 'PICTURE'];\nregisterHook('tab', 'start', target => {\n log('tab', target);\n});\n\n/**\n Gets the active element of a document. IE11 may return null instead of the body as\n other user-agents does when there isn’t an active element.\n @private\n @param {Document} ownerDocument the element to check\n @returns {HTMLElement} the active element of the document\n*/\nfunction getActiveElement(ownerDocument) {\n return ownerDocument.activeElement || ownerDocument.body;\n}\n/**\n Compiles a list of nodes that can be focused. Walks the tree, discards hidden elements and a few edge cases. To calculate the right.\n @private\n @param {Element} root the root element to start traversing on\n @returns {Array} list of focusable nodes\n*/\nfunction compileFocusAreas(root = document.body) {\n const {\n ownerDocument\n } = root;\n if (!ownerDocument) {\n throw new Error('Element must be in the DOM');\n }\n const activeElement = getActiveElement(ownerDocument);\n const treeWalker = ownerDocument.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: node => {\n // Only visible nodes can be focused, with, at least, one exception; the \"area\" element.\n // reference: https://html.spec.whatwg.org/multipage/interaction.html#data-model\n if (node.tagName !== 'AREA' && isVisible(node) === false) {\n return NodeFilter.FILTER_REJECT;\n }\n\n // Reject any fallback elements. Fallback elements’s children are only rendered if the UA\n // doesn’t support the element. We make an assumption that they are always supported, we\n // could consider feature detecting every node type, or making it configurable.\n const parentNode = node.parentNode;\n if (parentNode && FALLBACK_ELEMENTS.indexOf(parentNode.tagName) !== -1) {\n return NodeFilter.FILTER_REJECT;\n }\n\n // Rejects inert containers, if the user agent supports the feature (or if a polyfill is installed.)\n if (SUPPORTS_INERT && node.inert) {\n return NodeFilter.FILTER_REJECT;\n }\n if (isDisabled(node)) {\n return NodeFilter.FILTER_REJECT;\n }\n\n // Always accept the 'activeElement' of the document, as it might fail the next check, elements with tabindex=\"-1\"\n // can be focused programmatically, we'll therefor ensure the current active element is in the list.\n if (node === activeElement) {\n return NodeFilter.FILTER_ACCEPT;\n }\n\n // UA parses the tabindex attribute and applies its default values, If the tabIndex is non negative, the UA can\n // focus it.\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n let node;\n const elements = [];\n while (node = treeWalker.nextNode()) {\n elements.push(node);\n }\n return elements;\n}\n\n/**\n Sort elements by their tab indices.\n As older browsers doesn't necessarily implement stabile sort, we'll have to\n manually compare with the index in the original array.\n @private\n @param {Array<HTMLElement>} elements to sort\n @returns {Array<HTMLElement>} list of sorted focusable nodes by their tab index\n*/\nfunction sortElementsByTabIndices(elements) {\n return elements.map((element, index) => {\n return {\n index,\n element\n };\n }).sort((a, b) => {\n if (a.element.tabIndex === b.element.tabIndex) {\n return a.index - b.index;\n } else if (a.element.tabIndex === 0 || b.element.tabIndex === 0) {\n return b.element.tabIndex - a.element.tabIndex;\n }\n return a.element.tabIndex - b.element.tabIndex;\n }).map(entity => entity.element);\n}\n\n/**\n @private\n @param {Element} root The root element or node to start traversing on.\n @param {HTMLElement} activeElement The element to find the next and previous focus areas of\n @returns {object} The next and previous focus areas of the active element\n */\nfunction findNextResponders(root, activeElement) {\n const focusAreas = compileFocusAreas(root);\n const sortedFocusAreas = sortElementsByTabIndices(focusAreas);\n const elements = activeElement.tabIndex === -1 ? focusAreas : sortedFocusAreas;\n const index = elements.indexOf(activeElement);\n if (index === -1) {\n return {\n next: sortedFocusAreas[0],\n previous: sortedFocusAreas[sortedFocusAreas.length - 1]\n };\n }\n return {\n next: elements[index + 1],\n previous: elements[index - 1]\n };\n}\n\n/**\n Emulates the user pressing the tab button.\n\n Sends a number of events intending to simulate a \"real\" user pressing tab on their\n keyboard.\n\n @public\n @param {Object} [options] optional tab behaviors\n @param {boolean} [options.backwards=false] indicates if the the user navigates backwards\n @param {boolean} [options.unRestrainTabIndex=false] indicates if tabbing should throw an error when tabindex is greater than 0\n @return {Promise<void>} resolves when settled\n\n @example\n <caption>\n Emulating pressing the `TAB` key\n </caption>\n tab();\n\n @example\n <caption>\n Emulating pressing the `SHIFT`+`TAB` key combination\n </caption>\n tab({ backwards: true });\n*/\nfunction triggerTab({\n backwards = false,\n unRestrainTabIndex = false\n} = {}) {\n return Promise.resolve().then(() => {\n return triggerResponderChange(backwards, unRestrainTabIndex);\n }).then(() => {\n return settled();\n });\n}\n\n/**\n @private\n @param {boolean} backwards when `true` it selects the previous focus area\n @param {boolean} unRestrainTabIndex when `true`, will not throw an error if tabindex > 0 is encountered\n @returns {Promise<void>} resolves when all events are fired\n */\nfunction triggerResponderChange(backwards, unRestrainTabIndex) {\n const root = getRootElement();\n let ownerDocument;\n let rootElement;\n if (isDocument(root)) {\n rootElement = root.body;\n ownerDocument = root;\n } else {\n rootElement = root;\n ownerDocument = root.ownerDocument;\n }\n const keyboardEventOptions = {\n keyCode: 9,\n which: 9,\n key: 'Tab',\n code: 'Tab',\n shiftKey: backwards\n };\n const debugData = {\n keyboardEventOptions,\n ownerDocument,\n rootElement\n };\n return Promise.resolve().then(() => runHooks('tab', 'start', debugData)).then(() => getActiveElement(ownerDocument)).then(activeElement => runHooks('tab', 'targetFound', activeElement).then(() => activeElement)).then(activeElement => {\n const event = _buildKeyboardEvent('keydown', keyboardEventOptions);\n const defaultNotPrevented = activeElement.dispatchEvent(event);\n if (defaultNotPrevented) {\n // Query the active element again, as it might change during event phase\n activeElement = getActiveElement(ownerDocument);\n const target = findNextResponders(rootElement, activeElement);\n if (target) {\n if (backwards && target.previous) {\n return __focus__(target.previous);\n } else if (!backwards && target.next) {\n return __focus__(target.next);\n } else {\n return __blur__(activeElement);\n }\n }\n }\n return Promise.resolve();\n }).then(() => {\n const activeElement = getActiveElement(ownerDocument);\n return fireEvent(activeElement, 'keyup', keyboardEventOptions).then(() => activeElement);\n }).then(activeElement => {\n if (!unRestrainTabIndex && activeElement.tabIndex > 0) {\n throw new Error(`tabindex of greater than 0 is not allowed. Found tabindex=${activeElement.tabIndex}`);\n }\n }).then(() => runHooks('tab', 'end', debugData));\n}\n\nexport { triggerTab as default };\n//# sourceMappingURL=tab.js.map\n","import getElement from './-get-element.js';\nimport fireEvent from './fire-event.js';\nimport { __click__ } from './click.js';\nimport { s as settled } from '../setup-context-Cx9HkMuO.js';\nimport { log } from './-logging.js';\nimport isFormControl from './-is-form-control.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\nimport getDescription from './-get-description.js';\n\nregisterHook('tap', 'start', target => {\n log('tap', target);\n});\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|IDOMElementDescriptor} target the element, selector, or descriptor to tap on\n @param {Object} options the options to be merged into the touch events\n @return {Promise<void>} resolves when settled\n\n @example\n <caption>\n Emulating tapping a button using `tap`\n </caption>\n\n tap('button');\n*/\nfunction tap(target, options = {}) {\n return Promise.resolve().then(() => {\n return runHooks('tap', 'start', target, options);\n }).then(() => {\n if (!target) {\n throw new Error('Must pass an element, selector, or descriptor to `tap`.');\n }\n const element = getElement(target);\n if (!element) {\n const description = getDescription(target);\n throw new Error(`Element not found when calling \\`tap('${description}')\\`.`);\n }\n if (isFormControl(element) && element.disabled) {\n throw new Error(`Can not \\`tap\\` disabled ${element}`);\n }\n return fireEvent(element, 'touchstart', options).then(touchstartEv => fireEvent(element, 'touchend', options).then(touchendEv => [touchstartEv, touchendEv])).then(([touchstartEv, touchendEv]) => !touchstartEv.defaultPrevented && !touchendEv.defaultPrevented ? __click__(element, options) : Promise.resolve()).then(settled);\n }).then(() => {\n return runHooks('tap', 'end', target, options);\n });\n}\n\nexport { tap as default };\n//# sourceMappingURL=tap.js.map\n","import { getWindowOrElement } from './-get-window-or-element.js';\nimport fireEvent from './fire-event.js';\nimport { s as settled } from '../setup-context-Cx9HkMuO.js';\nimport { log } from './-logging.js';\nimport isFormControl from './-is-form-control.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\nimport getDescription from './-get-description.js';\n\nregisterHook('triggerEvent', 'start', (target, eventType) => {\n log('triggerEvent', target, eventType);\n});\n\n/**\n * Triggers an event on the specified target.\n *\n * @public\n * @param {string|Element|IDOMElementDescriptor} target the element, selector, or descriptor 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<void>} resolves when the application is settled\n *\n * @example\n * <caption>\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 * </caption>\n *\n * triggerEvent(\n * 'input.fileUpload',\n * 'change',\n * { files: [new Blob(['Ember Rules!'])] }\n * );\n *\n *\n * @example\n * <caption>\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 * </caption>\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 */\nfunction triggerEvent(target, eventType, options) {\n return Promise.resolve().then(() => {\n return runHooks('triggerEvent', 'start', target, eventType, options);\n }).then(() => {\n if (!target) {\n throw new Error('Must pass an element, selector, or descriptor to `triggerEvent`.');\n }\n if (!eventType) {\n throw new Error(`Must provide an \\`eventType\\` to \\`triggerEvent\\``);\n }\n const element = getWindowOrElement(target);\n if (!element) {\n const description = getDescription(target);\n throw new Error(`Element not found when calling \\`triggerEvent('${description}', ...)\\`.`);\n }\n if (isFormControl(element) && element.disabled) {\n throw new Error(`Can not \\`triggerEvent\\` on disabled ${element}`);\n }\n return fireEvent(element, eventType, options).then(settled);\n }).then(() => {\n return runHooks('triggerEvent', 'end', target, eventType, options);\n });\n}\n\nexport { triggerEvent as default };\n//# sourceMappingURL=trigger-event.js.map\n","import getElement from './-get-element.js';\nimport fireEvent, { isKeyboardEventType, KEYBOARD_EVENT_TYPES } from './fire-event.js';\nimport { s as settled } from '../setup-context-Cx9HkMuO.js';\nimport { isNumeric } from '../-utils.js';\nimport { log } from './-logging.js';\nimport isFormControl from './-is-form-control.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\nimport getDescription from './-get-description.js';\n\nregisterHook('triggerKeyEvent', 'start', (target, eventType, key) => {\n log('triggerKeyEvent', target, eventType, key);\n});\nconst DEFAULT_MODIFIERS = Object.freeze({\n ctrlKey: false,\n altKey: false,\n shiftKey: false,\n metaKey: false\n});\n\n// This is not a comprehensive list, but it is better than nothing.\nconst 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: 'w',\n 88: 'x',\n 89: 'y',\n 90: 'z',\n 91: 'Meta',\n 93: 'Meta',\n // There is two keys that map to meta,\n 186: ';',\n 187: '=',\n 188: ',',\n 189: '-',\n 190: '.',\n 191: '/',\n 219: '[',\n 220: '\\\\',\n 221: ']',\n 222: \"'\"\n};\nconst keyFromKeyCodeWithShift = {\n 48: ')',\n 49: '!',\n 50: '@',\n 51: '#',\n 52: '$',\n 53: '%',\n 54: '^',\n 55: '&',\n 56: '*',\n 57: '(',\n 186: ':',\n 187: '+',\n 188: '<',\n 189: '_',\n 190: '>',\n 191: '?',\n 219: '{',\n 220: '|',\n 221: '}',\n 222: '\"'\n};\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 */\nfunction 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 return modifiers.shiftKey && keyFromKeyCodeWithShift[keycode] || keyFromKeyCode[keycode];\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 */\nfunction keyCodeFromKey(key) {\n const keys = Object.keys(keyFromKeyCode);\n const keyCode = keys.find(keyCode => keyFromKeyCode[Number(keyCode)] === key) || keys.find(keyCode => keyFromKeyCode[Number(keyCode)] === key.toLowerCase());\n return keyCode !== undefined ? parseInt(keyCode) : undefined;\n}\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 @return {Promise<Event>} resolves when settled\n */\nfunction __triggerKeyEvent__(element, eventType, key, modifiers = DEFAULT_MODIFIERS) {\n return Promise.resolve().then(() => {\n let props;\n if (typeof key === 'number') {\n props = {\n keyCode: key,\n which: key,\n key: keyFromKeyCodeAndModifiers(key, modifiers),\n ...modifiers\n };\n } else if (typeof key === 'string' && key.length !== 0) {\n const firstCharacter = key[0];\n if (!firstCharacter || 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 if (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 const keyCode = keyCodeFromKey(key);\n props = {\n keyCode,\n which: keyCode,\n key,\n ...modifiers\n };\n } else {\n throw new Error(`Must provide a \\`key\\` or \\`keyCode\\` to \\`triggerKeyEvent\\``);\n }\n return fireEvent(element, eventType, props);\n });\n}\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|IDOMElementDescriptor} target the element, selector, or descriptor 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<void>} resolves when the application is settled unless awaitSettled is false\n\n @example\n <caption>\n Emulating pressing the `ENTER` key on a button using `triggerKeyEvent`\n </caption>\n triggerKeyEvent('button', 'keydown', 'Enter');\n*/\nfunction triggerKeyEvent(target, eventType, key, modifiers = DEFAULT_MODIFIERS) {\n return Promise.resolve().then(() => {\n return runHooks('triggerKeyEvent', 'start', target, eventType, key);\n }).then(() => {\n if (!target) {\n throw new Error('Must pass an element, selector, or descriptor to `triggerKeyEvent`.');\n }\n const element = getElement(target);\n if (!element) {\n const description = getDescription(target);\n throw new Error(`Element not found when calling \\`triggerKeyEvent('${description}')\\`.`);\n }\n if (!eventType) {\n throw new Error(`Must provide an \\`eventType\\` to \\`triggerKeyEvent\\``);\n }\n if (!isKeyboardEventType(eventType)) {\n const validEventTypes = KEYBOARD_EVENT_TYPES.join(', ');\n throw new Error(`Must provide an \\`eventType\\` of ${validEventTypes} to \\`triggerKeyEvent\\` but you passed \\`${eventType}\\`.`);\n }\n if (isFormControl(element) && element.disabled) {\n throw new Error(`Can not \\`triggerKeyEvent\\` on disabled ${element}`);\n }\n return __triggerKeyEvent__(element, eventType, key, modifiers).then(settled);\n }).then(() => runHooks('triggerKeyEvent', 'end', target, eventType, key));\n}\n\nexport { __triggerKeyEvent__, triggerKeyEvent as default };\n//# sourceMappingURL=trigger-key-event.js.map\n","import getElement from './-get-element.js';\nimport isFormControl from './-is-form-control.js';\nimport guardForMaxlength from './-guard-for-maxlength.js';\nimport { __focus__ } from './focus.js';\nimport { s as settled } from '../setup-context-Cx9HkMuO.js';\nimport fireEvent from './fire-event.js';\nimport { isContentEditable } from './-target.js';\nimport { log } from './-logging.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\nimport getDescription from './-get-description.js';\n\nregisterHook('fillIn', 'start', (target, text) => {\n log('fillIn', target, text);\n});\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|IDOMElementDescriptor} target the element, selector, or descriptor to enter text into\n @param {string} text the text to fill into the target element\n @return {Promise<void>} resolves when the application is settled\n\n @example\n <caption>\n Emulating filling an input with text using `fillIn`\n </caption>\n\n fillIn('input', 'hello world');\n*/\nfunction fillIn(target, text) {\n return Promise.resolve().then(() => runHooks('fillIn', 'start', target, text)).then(() => {\n if (!target) {\n throw new Error('Must pass an element, selector, or descriptor to `fillIn`.');\n }\n const element = getElement(target);\n if (!element) {\n const description = getDescription(target);\n throw new Error(`Element not found when calling \\`fillIn('${description}')\\`.`);\n }\n if (typeof text === 'undefined' || text === null) {\n throw new Error('Must provide `text` when calling `fillIn`.');\n }\n if (isFormControl(element)) {\n if (element.disabled) {\n throw new Error(`Can not \\`fillIn\\` disabled '${getDescription(target)}'.`);\n }\n if ('readOnly' in element && element.readOnly) {\n throw new Error(`Can not \\`fillIn\\` readonly '${getDescription(target)}'.`);\n }\n guardForMaxlength(element, text, 'fillIn');\n return __focus__(element).then(() => {\n element.value = text;\n return element;\n });\n } else if (isContentEditable(element)) {\n return __focus__(element).then(() => {\n element.innerHTML = text;\n return element;\n });\n } else {\n throw new Error('`fillIn` is only usable on form controls or contenteditable elements.');\n }\n }).then(element => fireEvent(element, 'input').then(() => fireEvent(element, 'change')).then(settled)).then(() => runHooks('fillIn', 'end', target, text));\n}\n\nexport { fillIn as default };\n//# sourceMappingURL=fill-in.js.map\n","import { s as settled } from '../setup-context-Cx9HkMuO.js';\nimport getElement from './-get-element.js';\nimport isFormControl from './-is-form-control.js';\nimport { __focus__ } from './focus.js';\nimport fireEvent from './fire-event.js';\nimport guardForMaxlength from './-guard-for-maxlength.js';\nimport { isDocument, isContentEditable } from './-target.js';\nimport { __triggerKeyEvent__ } from './trigger-key-event.js';\nimport { log } from './-logging.js';\nimport { registerHook, runHooks } from '../helper-hooks.js';\nimport getDescription from './-get-description.js';\n\nregisterHook('typeIn', 'start', (target, text) => {\n log('typeIn', target, text);\n});\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|IDOMElementDescriptor} target the element, selector, or descriptor 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<void>} resolves when the application is settled\n *\n * @example\n * <caption>\n * Emulating typing in an input using `typeIn`\n * </caption>\n *\n * typeIn('input', 'hello world');\n */\nfunction typeIn(target, text, options = {}) {\n return Promise.resolve().then(() => {\n return runHooks('typeIn', 'start', target, text, options);\n }).then(() => {\n if (!target) {\n throw new Error('Must pass an element, selector, or descriptor to `typeIn`.');\n }\n const element = getElement(target);\n if (!element) {\n const description = getDescription(target);\n throw new Error(`Element not found when calling \\`typeIn('${description}')\\``);\n }\n if (isDocument(element) || !isFormControl(element) && !isContentEditable(element)) {\n throw new Error('`typeIn` is only usable on form controls or contenteditable elements.');\n }\n if (typeof text === 'undefined' || text === null) {\n throw new Error('Must provide `text` when calling `typeIn`.');\n }\n if (isFormControl(element)) {\n if (element.disabled) {\n throw new Error(`Can not \\`typeIn\\` disabled '${getDescription(target)}'.`);\n }\n if ('readOnly' in element && element.readOnly) {\n throw new Error(`Can not \\`typeIn\\` readonly '${getDescription(target)}'.`);\n }\n }\n const {\n delay = 50\n } = options;\n return __focus__(element).then(() => fillOut(element, text, delay)).then(() => fireEvent(element, 'change')).then(settled).then(() => runHooks('typeIn', 'end', target, text, options));\n });\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction 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 }, Promise.resolve());\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction keyEntry(element, character) {\n const shiftKey = character === character.toUpperCase() && character !== character.toLowerCase();\n const options = {\n shiftKey\n };\n const characterKey = character.toUpperCase();\n return function () {\n return Promise.resolve().then(() => __triggerKeyEvent__(element, 'keydown', characterKey, options)).then(() => __triggerKeyEvent__(element, 'keypress', characterKey, options)).then(() => {\n if (isFormControl(element)) {\n const newValue = element.value + character;\n guardForMaxlength(element, newValue, 'typeIn');\n element.value = newValue;\n } else {\n const newValue = element.innerHTML + character;\n element.innerHTML = newValue;\n }\n return fireEvent(element, 'input');\n }).then(() => __triggerKeyEvent__(element, 'keyup', characterKey, options));\n };\n}\n\n// eslint-disable-next-line require-jsdoc\nfunction delayedExecute(delay) {\n return new Promise(resolve => {\n setTimeout(resolve, delay);\n });\n}\n\nexport { typeIn as default };\n//# sourceMappingURL=type-in.js.map\n","import { triggerEvent } from '@ember/test-helpers';\n\nexport function selectOptionByKey(\n selectSelector: string,\n key: string\n): Promise<void> {\n return changeOption('selectOptionByKey', selectSelector, key, false);\n}\n\nexport function toggleOptionByKey(\n selectSelector: string,\n key: string\n): Promise<void> {\n return changeOption('toggleOptionByKey', selectSelector, key, true);\n}\n\nfunction changeOption(\n functionName: string,\n selectSelector: string,\n key: string,\n toggle: boolean\n): Promise<void> {\n const container = document.querySelector(selectSelector);\n\n if (!container) {\n throw new Error(\n `You called \"${functionName}('${selectSelector}', '${key}')\" but no select was found using selector \"${selectSelector}\"`\n );\n }\n\n let select: Element | null = container;\n if (container.tagName !== 'SELECT') {\n select = container.querySelector('[data-component=\"native-select\"]');\n }\n\n if (!select) {\n throw new Error(\n `You called \"${functionName}('${selectSelector}', '${key}')\" but no select was found inside of of container using selector \"${selectSelector}\"`\n );\n }\n\n const option = select.querySelector(`[data-key=\"${key}\"]`) as\n | HTMLOptionElement\n | undefined;\n if (!option) {\n throw new Error(\n `You called \"${functionName}('${selectSelector}', '${key}')\" but no option with key \"${key}\" was found`\n );\n }\n if (option.selected && toggle) {\n option.selected = false;\n } else {\n option.selected = true;\n }\n return triggerEvent(select, 'change');\n}\n"],"names":["hasEmberVersion","major","minor","numbers","VERSION","split","Error","actualMajor","parseInt","actualMinor","ContainerProxyMixin","Ember","_ContainerProxyMixin","RegistryProxyMixin","_RegistryProxyMixin","EmberObject","extend","_emberTestHelpersMockOwner","unregister","fullName","reset","isElement","target","Reflect","get","Node","ELEMENT_NODE","isWindow","Window","isDocument","DOCUMENT_NODE","FORM_CONTROL_TAGS","isFormControl","element","indexOf","tagName","type","futureTick","setTimeout","TIMEOUTS","MAX_TIMEOUT","waitUntil","callback","options","timeout","timeoutMessage","waitUntilTimedOut","Promise","resolve","reject","time","scheduleCheck","timeoutsIndex","knownTimeout","interval","undefined","value","error","global$1","self","window","global","Function","DEPRECATIONS","WeakMap","getDeprecationsForContext","context","TypeError","deprecations","Array","isArray","set","URLSearchParams","queryParams","document","location","search","substring","disabledDeprecations","debugDeprecations","registerDeprecationHandler","message","next","includes","id","apply","WARNINGS","getWarningsForContext","warnings","disabledWarnings","debugWarnings","registerWarnHandler","registeredHooks","Map","getHelperKey","helperName","label","registerHook","hook","helperKey","hooksForHelper","Set","add","delete","runHooks","args","hooks","promises","forEach","hookResult","push","all","then","debugInfoHelpers","PENDING_AJAX_REQUESTS","PENDING_TEST_WAITERS","SCHEDULED_ASYNC","SCHEDULED_AUTORUN","backburnerDebugInfoAvailable","_backburner","getDebugInfo","DEBUG","TestDebugInfo","_settledState","_debugInfo","_summaryInfo","constructor","settledState","debugInfo","summary","autorunStackTrace","autorun","stack","pendingTimersCount","timers","length","hasPendingTimers","pendingTimersStackTraces","map","timer","pendingScheduledQueueItemCount","instanceStack","filter","isNotNullable","reduce","total","item","Object","values","queueItems","pendingScheduledQueueItemStackTraces","stacks","deferredActionQueues","queueItem","hasPendingTestWaiters","pendingTestWaiterInfo","getPendingWaiterState","toConsole","_console","console","hasPendingRequests","log","hasPendingLegacyWaiters","keys","waiters","waiterName","waiterDebugInfo","group","groupEnd","timerStack","scheduleQueueItemStack","hasRunLoop","helper","_formatCount","title","count","CAN_USE_ROUTER_EVENTS","routerTransitionsPending","ROUTER","hasPendingTransitions","getContext","router","routerMicrolib","_routerMicrolib","activeTransition","getRootElement","isTestContext","owner","rootElement","_rootElement","querySelector","precompileTemplate","strictMode","macroCondition","dependencySatisfies","renderSettled","importSync","getElement","descriptorData","lookupDescriptorData","resolveDOMElement","getWindowOrElement","tuple","loggingEnabled","elementToString","Boolean","join","el","desc","NodeList","prototype","slice","call","HTMLElement","SVGElement","String","toLowerCase","className","SVGAnimatedString","replace","attributes","attr","name","MOUSE_EVENT_CONSTRUCTOR","MouseEvent","DEFAULT_EVENT_OPTIONS","bubbles","cancelable","KEYBOARD_EVENT_TYPES","isKeyboardEventType","eventType","MOUSE_EVENT_TYPES","isMouseEventType","FILE_SELECTION_EVENT_TYPES","isFileSelectionEventType","isFileSelectionInput","files","fireEvent","event","_buildKeyboardEvent","rect","documentElement","getBoundingClientRect","x","left","y","top","simulatedCoordinates","screenX","screenY","clientX","clientY","buildMouseEvent","buildFileEvent","buildBasicEvent","dispatchEvent","createEvent","initEvent","prop","eventOpts","view","initMouseEvent","detail","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","eventMethodName","KeyboardEvent","defineProperty","keyCode","which","charCode","index","configurable","elementProto","getPrototypeOf","valueProp","getOwnPropertyDescriptor","getDescription","data","isDescriptor","description","triggerEvent","disabled","settled","key","text","selectOptionByKey","selectSelector","changeOption","toggleOptionByKey","functionName","toggle","container","select","option","selected"],"mappings":";;;;;;;;;;;;;;;AAAA;;AAGA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACe,SAASA,eAAeA,CAACC,KAAa,EAAEC,KAAa,EAAW;AAC7E,EAAA,MAAMC,OAAO,GAAGC,OAAO,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAEA,KAAK,CAAC,GAAG,CAAC;AAEjD,EAAA,IAAI,CAACF,OAAO,IAAI,CAACA,OAAO,CAAC,CAAC,CAAC,IAAI,CAACA,OAAO,CAAC,CAAC,CAAC,EAAE;AAC1C,IAAA,MAAM,IAAIG,KAAK,CAAC,6BAA6B,CAAC;AAChD;EAEA,MAAMC,WAAW,GAAGC,QAAQ,CAACL,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;EAC5C,MAAMM,WAAW,GAAGD,QAAQ,CAACL,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;EAC5C,OAAOI,WAAW,GAAGN,KAAK,IAAKM,WAAW,KAAKN,KAAK,IAAIQ,WAAW,IAAIP,KAAM;AAC/E;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAmDa,MAAAQ,mBAAmB,GAAIC,KAAK,CAASC,oBAAA;AAKrC,MAAAC,kBAAkB,GAAIF,KAAK,CAASG,mBAAA;;ACvBjD;AACA;AACA;;AAEcC,WAAW,CAACC,MAAM,CAACH,kBAAkB,EAAEH,mBAAmB,EAAE;AACxEO,EAAAA,0BAA0B,EAAE,IAAI;AAEhC;AACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACE;EACAC,UAAUA,CAAcC,QAAkB,EAAE;AAC1C;AACA;AACC,IAAA,IAAI,CAAS,eAAe,CAAC,CAACC,KAAK,CAACD,QAAQ,CAAC;;AAE9C;AACA;AACA;AAC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