{"version":3,"sources":["vendor/ember-cli/vendor-prefix.js","vendor/loader/loader.js","vendor/jquery/jquery.js","license.js","loader.js","@ember/-internals/browser-environment/index.js","@ember/-internals/console/index.js","@ember/-internals/container/index.js","@ember/-internals/environment/index.js","@ember/-internals/error-handling/index.js","@ember/-internals/extension-support/index.js","@ember/-internals/extension-support/lib/container_debug_adapter.js","@ember/-internals/extension-support/lib/data_adapter.js","@ember/-internals/glimmer/index.js","@ember/-internals/meta/index.js","@ember/-internals/meta/lib/meta.js","@ember/-internals/metal/index.js","@ember/-internals/owner/index.js","@ember/-internals/routing/index.js","@ember/-internals/routing/lib/ext/controller.js","@ember/-internals/routing/lib/location/api.js","@ember/-internals/routing/lib/location/auto_location.js","@ember/-internals/routing/lib/location/hash_location.js","@ember/-internals/routing/lib/location/history_location.js","@ember/-internals/routing/lib/location/none_location.js","@ember/-internals/routing/lib/location/util.js","@ember/-internals/routing/lib/services/router.js","@ember/-internals/routing/lib/services/routing.js","@ember/-internals/routing/lib/system/cache.js","@ember/-internals/routing/lib/system/controller_for.js","@ember/-internals/routing/lib/system/dsl.js","@ember/-internals/routing/lib/system/engines.js","@ember/-internals/routing/lib/system/generate_controller.js","@ember/-internals/routing/lib/system/query_params.js","@ember/-internals/routing/lib/system/route-info.js","@ember/-internals/routing/lib/system/route.js","@ember/-internals/routing/lib/system/router.js","@ember/-internals/routing/lib/system/router_state.js","@ember/-internals/routing/lib/system/transition.js","@ember/-internals/routing/lib/utils.js","@ember/-internals/runtime/index.js","@ember/-internals/runtime/lib/compare.js","@ember/-internals/runtime/lib/copy.js","@ember/-internals/runtime/lib/ext/function.js","@ember/-internals/runtime/lib/ext/rsvp.js","@ember/-internals/runtime/lib/is-equal.js","@ember/-internals/runtime/lib/mixins/-proxy.js","@ember/-internals/runtime/lib/mixins/action_handler.js","@ember/-internals/runtime/lib/mixins/array.js","@ember/-internals/runtime/lib/mixins/comparable.js","@ember/-internals/runtime/lib/mixins/container_proxy.js","@ember/-internals/runtime/lib/mixins/copyable.js","@ember/-internals/runtime/lib/mixins/enumerable.js","@ember/-internals/runtime/lib/mixins/evented.js","@ember/-internals/runtime/lib/mixins/mutable_enumerable.js","@ember/-internals/runtime/lib/mixins/observable.js","@ember/-internals/runtime/lib/mixins/promise_proxy.js","@ember/-internals/runtime/lib/mixins/registry_proxy.js","@ember/-internals/runtime/lib/mixins/target_action_support.js","@ember/-internals/runtime/lib/system/array_proxy.js","@ember/-internals/runtime/lib/system/core_object.js","@ember/-internals/runtime/lib/system/namespace.js","@ember/-internals/runtime/lib/system/object.js","@ember/-internals/runtime/lib/system/object_proxy.js","@ember/-internals/runtime/lib/type-of.js","@ember/-internals/utils/index.js","@ember/-internals/views/index.js","@ember/-internals/views/lib/compat/attrs.js","@ember/-internals/views/lib/compat/fallback-view-registry.js","@ember/-internals/views/lib/component_lookup.js","@ember/-internals/views/lib/mixins/action_support.js","@ember/-internals/views/lib/mixins/child_views_support.js","@ember/-internals/views/lib/mixins/class_names_support.js","@ember/-internals/views/lib/mixins/text_support.js","@ember/-internals/views/lib/mixins/view_state_support.js","@ember/-internals/views/lib/mixins/view_support.js","@ember/-internals/views/lib/system/action_manager.js","@ember/-internals/views/lib/system/event_dispatcher.js","@ember/-internals/views/lib/system/jquery.js","@ember/-internals/views/lib/system/jquery_event_deprecation.js","@ember/-internals/views/lib/system/utils.js","@ember/-internals/views/lib/views/core_view.js","@ember/-internals/views/lib/views/states.js","@ember/-internals/views/lib/views/states/default.js","@ember/-internals/views/lib/views/states/destroying.js","@ember/-internals/views/lib/views/states/has_element.js","@ember/-internals/views/lib/views/states/in_dom.js","@ember/-internals/views/lib/views/states/pre_render.js","@ember/application/globals-resolver.js","@ember/application/index.js","@ember/application/instance.js","@ember/application/lib/application.js","@ember/application/lib/lazy_load.js","@ember/canary-features/index.js","@ember/component/index.js","@ember/component/template-only.js","@ember/controller/index.js","@ember/controller/lib/controller_mixin.js","@ember/debug/index.js","@ember/debug/lib/capture-render-tree.js","@ember/debug/lib/deprecate.js","@ember/debug/lib/handlers.js","@ember/debug/lib/testing.js","@ember/debug/lib/warn.js","@ember/deprecated-features/index.js","@ember/destroyable/index.js","@ember/engine/index.js","@ember/engine/instance.js","@ember/engine/lib/engine-parent.js","@ember/error/index.js","@ember/instrumentation/index.js","@ember/modifier/index.js","@ember/object/compat.js","@ember/object/computed.js","@ember/object/index.js","@ember/object/lib/computed/computed_macros.js","@ember/object/lib/computed/reduce_computed_macros.js","@ember/polyfills/index.js","@ember/polyfills/lib/assign.js","@ember/polyfills/lib/merge.js","@ember/runloop/index.js","@ember/service/index.js","@ember/string/index.js","@ember/string/lib/string_registry.js","@glimmer/encoder.js","@glimmer/env.js","@glimmer/global-context.js","@glimmer/low-level.js","@glimmer/node.js","@glimmer/opcode-compiler.js","@glimmer/program.js","@glimmer/reference.js","@glimmer/runtime.js","@glimmer/util.js","@glimmer/validator.js","@glimmer/vm.js","@glimmer/wire-format.js","@simple-dom/document.js","backburner.js","dag-map.js","ember-babel.js","ember-testing/index.js","ember-testing/lib/adapters/adapter.js","ember-testing/lib/adapters/qunit.js","ember-testing/lib/events.js","ember-testing/lib/ext/application.js","ember-testing/lib/ext/rsvp.js","ember-testing/lib/helpers.js","ember-testing/lib/helpers/-is-form-control.js","ember-testing/lib/helpers/and_then.js","ember-testing/lib/helpers/click.js","ember-testing/lib/helpers/current_path.js","ember-testing/lib/helpers/current_route_name.js","ember-testing/lib/helpers/current_url.js","ember-testing/lib/helpers/fill_in.js","ember-testing/lib/helpers/find.js","ember-testing/lib/helpers/find_with_assert.js","ember-testing/lib/helpers/key_event.js","ember-testing/lib/helpers/pause_test.js","ember-testing/lib/helpers/trigger_event.js","ember-testing/lib/helpers/visit.js","ember-testing/lib/helpers/wait.js","ember-testing/lib/initializers.js","ember-testing/lib/setup_for_testing.js","ember-testing/lib/support.js","ember-testing/lib/test.js","ember-testing/lib/test/adapter.js","ember-testing/lib/test/helpers.js","ember-testing/lib/test/on_inject_helpers.js","ember-testing/lib/test/pending_requests.js","ember-testing/lib/test/promise.js","ember-testing/lib/test/run.js","ember-testing/lib/test/waiters.js","ember/index.js","ember/version.js","node-module/index.js","route-recognizer.js","router_js.js","rsvp.js","vendor/shims/jquery.js","vendor/jquery/component.dollar.js","vendor/ember-cli-addon-versions.js","vendor/ember-cli-deprecation-workflow/deprecation-workflow.js","vendor/ember-cli-deprecation-workflow/main.js","vendor/fake-xml-http-request/fake_xml_http_request.js","route-recognizer/util.ts","route-recognizer/dsl.ts","route-recognizer/normalizer.ts","route-recognizer.ts","vendor/pretender/pretender.js","vendor/nouislider.js","vendor/shims/nouislider.js","vendor/ember-cli-shims/deprecations.js","vendor/ember-cli-shims/app-shims.js","vendor/highlight.pack.js","node_modules/bootstrap-sass/assets/javascripts/bootstrap/tab.js","node_modules/bootstrap-sass/assets/javascripts/bootstrap/dropdown.js","node_modules/bootstrap-sass/assets/javascripts/bootstrap/transition.js","node_modules/bootstrap-sass/assets/javascripts/bootstrap/alert.js","node_modules/bootstrap-sass/assets/javascripts/bootstrap/modal.js","../src/parsley/utils.js","../src/parsley/base.js","../src/parsley/defaults.js","../src/parsley/validator.js","../src/parsley/validator_registry.js","../src/parsley/ui.js","../src/parsley/form.js","../src/parsley/constraint.js","../src/parsley/field.js","../src/parsley/multiple.js","../src/parsley/factory.js","../src/parsley/main.js","../src/parsley/pubsub.js","../src/parsley/remote.js","../src/i18n/en.js","../src/vendor/inputevent.js","../src/parsley.js","vendor/velocity/velocity.js","vendor/shims/velocity.js","vendor/match-media/matchMedia.js","addon-tree-output/@ember-data/adapter/-private.js","addon-tree-output/@ember-data/adapter/error.js","addon-tree-output/@ember-data/adapter/index.js","addon-tree-output/@ember-data/adapter/json-api.js","addon-tree-output/@ember-data/adapter/rest.js","addon-tree-output/@ember-data/canary-features/default-features.js","addon-tree-output/@ember-data/canary-features/index.js","addon-tree-output/@ember-data/debug/index.js","addon-tree-output/@ember-data/debug/setup.js","addon-tree-output/@ember-data/model/-private.js","addon-tree-output/@ember-data/model/index.js","addon-tree-output/@ember-data/private-build-infra/available-packages.js","addon-tree-output/@ember-data/private-build-infra/current-deprecations.js","addon-tree-output/@ember-data/private-build-infra/deprecations.js","addon-tree-output/@ember-data/private-build-infra/index.js","addon-tree-output/@ember-data/record-data/-private.js","addon-tree-output/@ember-data/serializer/-private.js","addon-tree-output/@ember-data/serializer/index.js","addon-tree-output/@ember-data/serializer/json-api.js","addon-tree-output/@ember-data/serializer/json.js","addon-tree-output/@ember-data/serializer/rest.js","addon-tree-output/@ember-data/serializer/transform.js","addon-tree-output/@ember-data/store/-debug/index.js","addon-tree-output/@ember-data/store/-private.js","addon-tree-output/@ember-data/store/index.js","addon-tree-output/@ember/ordered-set/index.js","addon-tree-output/@ember/string/cache.js","addon-tree-output/@ember/string/helpers/loc.js","addon-tree-output/@ember/string/index.js","addon-tree-output/@embroider/macros/es-compat2.js","addon-tree-output/@embroider/macros/runtime.js","addon-tree-output/ember-async-await-helper/components/async-await.js","addon-tree-output/ember-async-await-helper/templates/components/async-await.js","addon-tree-output/ember-chrome-devtools/formatters/array.js","addon-tree-output/ember-chrome-devtools/formatters/index.js","addon-tree-output/ember-chrome-devtools/formatters/lazy.js","addon-tree-output/ember-chrome-devtools/formatters/object.js","addon-tree-output/ember-chrome-devtools/formatters/utils/jsonml.js","addon-tree-output/ember-chrome-devtools/initializers/install-devtools.js","addon-tree-output/ember-cli-fake-server/index.js","addon-tree-output/ember-cli-fake-server/lib/json-utils.js","addon-tree-output/ember-cli-fake-server/lib/logger.js","addon-tree-output/ember-cli-fake-server/lib/logging.js","addon-tree-output/ember-cli-fake-server/lib/responses.js","addon-tree-output/ember-cli-flash/components/flash-message.js","addon-tree-output/ember-cli-flash/flash/object.js","addon-tree-output/ember-cli-flash/services/flash-messages.js","addon-tree-output/ember-cli-flash/templates/components/flash-message.js","addon-tree-output/ember-cli-flash/utils/computed.js","addon-tree-output/ember-cli-flash/utils/flash-message-options.js","addon-tree-output/ember-cli-flash/utils/object-compact.js","addon-tree-output/ember-cli-flash/utils/object-only.js","addon-tree-output/ember-cli-flash/utils/object-without.js","addon-tree-output/ember-cli-nouislider/components/range-slider.js","addon-tree-output/ember-cli-nouislider/templates/components/range-slider.js","addon-tree-output/ember-data/-private.js","addon-tree-output/ember-data/adapter.js","addon-tree-output/ember-data/adapters/errors.js","addon-tree-output/ember-data/adapters/json-api.js","addon-tree-output/ember-data/adapters/rest.js","addon-tree-output/ember-data/attr.js","addon-tree-output/ember-data/index.js","addon-tree-output/ember-data/model.js","addon-tree-output/ember-data/relationships.js","addon-tree-output/ember-data/serializer.js","addon-tree-output/ember-data/serializers/embedded-records-mixin.js","addon-tree-output/ember-data/serializers/json-api.js","addon-tree-output/ember-data/serializers/json.js","addon-tree-output/ember-data/serializers/rest.js","addon-tree-output/ember-data/setup-container.js","addon-tree-output/ember-data/store.js","addon-tree-output/ember-data/transform.js","addon-tree-output/ember-data/version.js","addon-tree-output/ember-i18n/config/ar.js","addon-tree-output/ember-i18n/config/bn.js","addon-tree-output/ember-i18n/config/constants.js","addon-tree-output/ember-i18n/config/da.js","addon-tree-output/ember-i18n/config/de.js","addon-tree-output/ember-i18n/config/en.js","addon-tree-output/ember-i18n/config/es.js","addon-tree-output/ember-i18n/config/fa.js","addon-tree-output/ember-i18n/config/fr.js","addon-tree-output/ember-i18n/config/fy.js","addon-tree-output/ember-i18n/config/he.js","addon-tree-output/ember-i18n/config/hi.js","addon-tree-output/ember-i18n/config/it.js","addon-tree-output/ember-i18n/config/iw.js","addon-tree-output/ember-i18n/config/ja.js","addon-tree-output/ember-i18n/config/jv.js","addon-tree-output/ember-i18n/config/ko.js","addon-tree-output/ember-i18n/config/mr.js","addon-tree-output/ember-i18n/config/ms.js","addon-tree-output/ember-i18n/config/nl.js","addon-tree-output/ember-i18n/config/no.js","addon-tree-output/ember-i18n/config/pa.js","addon-tree-output/ember-i18n/config/pl.js","addon-tree-output/ember-i18n/config/pt.js","addon-tree-output/ember-i18n/config/ru.js","addon-tree-output/ember-i18n/config/sv.js","addon-tree-output/ember-i18n/config/ta.js","addon-tree-output/ember-i18n/config/te.js","addon-tree-output/ember-i18n/config/tr.js","addon-tree-output/ember-i18n/config/ur.js","addon-tree-output/ember-i18n/config/vi.js","addon-tree-output/ember-i18n/config/zh.js","addon-tree-output/ember-i18n/helper.js","addon-tree-output/ember-i18n/index.js","addon-tree-output/ember-i18n/initializers/ember-i18n.js","addon-tree-output/ember-i18n/instance-initializers/ember-i18n.js","addon-tree-output/ember-i18n/legacy/helper.js","addon-tree-output/ember-i18n/legacy/initializer.js","addon-tree-output/ember-i18n/legacy/stream.js","addon-tree-output/ember-i18n/services/i18n.js","addon-tree-output/ember-i18n/utils/add-translations.js","addon-tree-output/ember-i18n/utils/get-locales.js","addon-tree-output/ember-i18n/utils/i18n/compile-template.js","addon-tree-output/ember-i18n/utils/i18n/missing-message.js","addon-tree-output/ember-i18n/utils/locale.js","addon-tree-output/ember-i18n/utils/macro.js","addon-tree-output/ember-inflector/index.js","addon-tree-output/ember-inflector/lib/ext/string.js","addon-tree-output/ember-inflector/lib/helpers/pluralize.js","addon-tree-output/ember-inflector/lib/helpers/singularize.js","addon-tree-output/ember-inflector/lib/system.js","addon-tree-output/ember-inflector/lib/system/inflections.js","addon-tree-output/ember-inflector/lib/system/inflector.js","addon-tree-output/ember-inflector/lib/system/string.js","addon-tree-output/ember-inflector/lib/utils/make-helper.js","addon-tree-output/ember-load-initializers/index.js","addon-tree-output/ember-mx/breakpoints.js","addon-tree-output/ember-mx/components/mx-button-bar.js","addon-tree-output/ember-mx/components/mx-button.js","addon-tree-output/ember-mx/components/mx-card-list.js","addon-tree-output/ember-mx/components/mx-card.js","addon-tree-output/ember-mx/components/mx-checkbox-group.js","addon-tree-output/ember-mx/components/mx-checkbox-inline.js","addon-tree-output/ember-mx/components/mx-checkbox-label.js","addon-tree-output/ember-mx/components/mx-checkbox.js","addon-tree-output/ember-mx/components/mx-confirm-modal.js","addon-tree-output/ember-mx/components/mx-date-input.js","addon-tree-output/ember-mx/components/mx-email-input.js","addon-tree-output/ember-mx/components/mx-fieldset.js","addon-tree-output/ember-mx/components/mx-form.js","addon-tree-output/ember-mx/components/mx-input.js","addon-tree-output/ember-mx/components/mx-label.js","addon-tree-output/ember-mx/components/mx-link.js","addon-tree-output/ember-mx/components/mx-modal-body.js","addon-tree-output/ember-mx/components/mx-modal-footer.js","addon-tree-output/ember-mx/components/mx-modal-header.js","addon-tree-output/ember-mx/components/mx-modal.js","addon-tree-output/ember-mx/components/mx-month-year-input.js","addon-tree-output/ember-mx/components/mx-notifications.js","addon-tree-output/ember-mx/components/mx-option.js","addon-tree-output/ember-mx/components/mx-output.js","addon-tree-output/ember-mx/components/mx-page-body.js","addon-tree-output/ember-mx/components/mx-page-footer.js","addon-tree-output/ember-mx/components/mx-page-header.js","addon-tree-output/ember-mx/components/mx-page-navbar-link.js","addon-tree-output/ember-mx/components/mx-page-navbar-locale-toggle.js","addon-tree-output/ember-mx/components/mx-page-navbar-logo.js","addon-tree-output/ember-mx/components/mx-page-navbar.js","addon-tree-output/ember-mx/components/mx-page.js","addon-tree-output/ember-mx/components/mx-phone-number-input.js","addon-tree-output/ember-mx/components/mx-postal-code-input.js","addon-tree-output/ember-mx/components/mx-radio-button-group.js","addon-tree-output/ember-mx/components/mx-radio-button-inline.js","addon-tree-output/ember-mx/components/mx-radio-button-label.js","addon-tree-output/ember-mx/components/mx-radio-button.js","addon-tree-output/ember-mx/components/mx-select.js","addon-tree-output/ember-mx/components/mx-space.js","addon-tree-output/ember-mx/components/mx-spinner.js","addon-tree-output/ember-mx/components/mx-textarea.js","addon-tree-output/ember-mx/components/mx-validator.js","addon-tree-output/ember-mx/components/mx-yes-no-toggle.js","addon-tree-output/ember-mx/helpers/boolean-to-string.js","addon-tree-output/ember-mx/helpers/get-item-disabled.js","addon-tree-output/ember-mx/helpers/get-item-label.js","addon-tree-output/ember-mx/helpers/get-item-value.js","addon-tree-output/ember-mx/helpers/is-checkbox-item-checked.js","addon-tree-output/ember-mx/helpers/is-equal.js","addon-tree-output/ember-mx/helpers/is-item-autofocus.js","addon-tree-output/ember-mx/helpers/is-radio-button-item-checked.js","addon-tree-output/ember-mx/initializers/mx-enable-aria-attributes.js","addon-tree-output/ember-mx/initializers/mx-enable-data-attributes.js","addon-tree-output/ember-mx/initializers/mx-inject-services.js","addon-tree-output/ember-mx/mixins/mx-button.js","addon-tree-output/ember-mx/mixins/mx-focus.js","addon-tree-output/ember-mx/mixins/mx-group.js","addon-tree-output/ember-mx/mixins/mx-id.js","addon-tree-output/ember-mx/mixins/mx-input.js","addon-tree-output/ember-mx/mixins/mx-item-sorting.js","addon-tree-output/ember-mx/mixins/mx-parsley-field.js","addon-tree-output/ember-mx/mixins/mx-parsley-form.js","addon-tree-output/ember-mx/mixins/mx-parsley-ui.js","addon-tree-output/ember-mx/mixins/mx-parsley-utils.js","addon-tree-output/ember-mx/models/mx-model.js","addon-tree-output/ember-mx/routes/mx-application.js","addon-tree-output/ember-mx/services/mx-i18n.js","addon-tree-output/ember-mx/services/mx-notifications.js","addon-tree-output/ember-mx/templates/components/mx-button-bar.js","addon-tree-output/ember-mx/templates/components/mx-button.js","addon-tree-output/ember-mx/templates/components/mx-card-list.js","addon-tree-output/ember-mx/templates/components/mx-card.js","addon-tree-output/ember-mx/templates/components/mx-checkbox-group.js","addon-tree-output/ember-mx/templates/components/mx-checkbox-inline.js","addon-tree-output/ember-mx/templates/components/mx-checkbox-label.js","addon-tree-output/ember-mx/templates/components/mx-checkbox.js","addon-tree-output/ember-mx/templates/components/mx-confirm-modal.js","addon-tree-output/ember-mx/templates/components/mx-date-input.js","addon-tree-output/ember-mx/templates/components/mx-email-input.js","addon-tree-output/ember-mx/templates/components/mx-fieldset.js","addon-tree-output/ember-mx/templates/components/mx-form.js","addon-tree-output/ember-mx/templates/components/mx-input.js","addon-tree-output/ember-mx/templates/components/mx-label.js","addon-tree-output/ember-mx/templates/components/mx-link.js","addon-tree-output/ember-mx/templates/components/mx-modal-body.js","addon-tree-output/ember-mx/templates/components/mx-modal-footer.js","addon-tree-output/ember-mx/templates/components/mx-modal-header.js","addon-tree-output/ember-mx/templates/components/mx-modal.js","addon-tree-output/ember-mx/templates/components/mx-month-year-input.js","addon-tree-output/ember-mx/templates/components/mx-notifications.js","addon-tree-output/ember-mx/templates/components/mx-option.js","addon-tree-output/ember-mx/templates/components/mx-output.js","addon-tree-output/ember-mx/templates/components/mx-page-body.js","addon-tree-output/ember-mx/templates/components/mx-page-footer.js","addon-tree-output/ember-mx/templates/components/mx-page-header.js","addon-tree-output/ember-mx/templates/components/mx-page-navbar-link.js","addon-tree-output/ember-mx/templates/components/mx-page-navbar-locale-toggle.js","addon-tree-output/ember-mx/templates/components/mx-page-navbar-logo.js","addon-tree-output/ember-mx/templates/components/mx-page-navbar.js","addon-tree-output/ember-mx/templates/components/mx-page.js","addon-tree-output/ember-mx/templates/components/mx-phone-number-input.js","addon-tree-output/ember-mx/templates/components/mx-postal-code-input.js","addon-tree-output/ember-mx/templates/components/mx-radio-button-group.js","addon-tree-output/ember-mx/templates/components/mx-radio-button-inline.js","addon-tree-output/ember-mx/templates/components/mx-radio-button-label.js","addon-tree-output/ember-mx/templates/components/mx-radio-button.js","addon-tree-output/ember-mx/templates/components/mx-select.js","addon-tree-output/ember-mx/templates/components/mx-space.js","addon-tree-output/ember-mx/templates/components/mx-spinner.js","addon-tree-output/ember-mx/templates/components/mx-textarea.js","addon-tree-output/ember-mx/test-helpers.js","addon-tree-output/ember-resolver/features.js","addon-tree-output/ember-resolver/index.js","addon-tree-output/ember-resolver/resolver.js","addon-tree-output/ember-resolver/resolvers/classic/container-debug-adapter.js","addon-tree-output/ember-resolver/resolvers/classic/index.js","addon-tree-output/ember-resolver/utils/class-factory.js","addon-tree-output/ember-responsive/helpers/media.js","addon-tree-output/ember-responsive/initializers/responsive.js","addon-tree-output/ember-responsive/null-match-media.js","addon-tree-output/ember-responsive/services/media.js","addon-tree-output/ember-test-waiters/build-waiter.js","addon-tree-output/ember-test-waiters/index.js","addon-tree-output/ember-test-waiters/noop-test-waiter.js","addon-tree-output/ember-test-waiters/test-waiter.js","addon-tree-output/ember-test-waiters/types/index.js","addon-tree-output/ember-test-waiters/wait-for-promise.js","addon-tree-output/ember-test-waiters/waiter-manager.js","addon-tree-output/ember-truth-helpers/helpers/and.js","addon-tree-output/ember-truth-helpers/helpers/eq.js","addon-tree-output/ember-truth-helpers/helpers/equal.js","addon-tree-output/ember-truth-helpers/helpers/gt.js","addon-tree-output/ember-truth-helpers/helpers/gte.js","addon-tree-output/ember-truth-helpers/helpers/is-array.js","addon-tree-output/ember-truth-helpers/helpers/is-empty.js","addon-tree-output/ember-truth-helpers/helpers/is-equal.js","addon-tree-output/ember-truth-helpers/helpers/lt.js","addon-tree-output/ember-truth-helpers/helpers/lte.js","addon-tree-output/ember-truth-helpers/helpers/not-eq.js","addon-tree-output/ember-truth-helpers/helpers/not-equal.js","addon-tree-output/ember-truth-helpers/helpers/not.js","addon-tree-output/ember-truth-helpers/helpers/or.js","addon-tree-output/ember-truth-helpers/helpers/xor.js","addon-tree-output/ember-truth-helpers/utils/truth-convert.js","addon-tree-output/ember-useragent/helpers/user-agent.js","addon-tree-output/ember-useragent/initializers/user-agent.js","addon-tree-output/ember-useragent/instance-initializers/user-agent.js","addon-tree-output/ember-useragent/services/user-agent.js","addon-tree-output/ember-wormhole/components/ember-wormhole.js","addon-tree-output/ember-wormhole/templates/components/ember-wormhole.js","addon-tree-output/ember-wormhole/utils/dom.js","addon-tree-output/liquid-fire/action.js","addon-tree-output/liquid-fire/animate.js","addon-tree-output/liquid-fire/components/illiquid-model.js","addon-tree-output/liquid-fire/components/lf-get-outlet-state.js","addon-tree-output/liquid-fire/components/liquid-bind.js","addon-tree-output/liquid-fire/components/liquid-child.js","addon-tree-output/liquid-fire/components/liquid-container.js","addon-tree-output/liquid-fire/components/liquid-if.js","addon-tree-output/liquid-fire/components/liquid-measured.js","addon-tree-output/liquid-fire/components/liquid-outlet.js","addon-tree-output/liquid-fire/components/liquid-spacer.js","addon-tree-output/liquid-fire/components/liquid-sync.js","addon-tree-output/liquid-fire/components/liquid-unless.js","addon-tree-output/liquid-fire/components/liquid-versions.js","addon-tree-output/liquid-fire/constrainables.js","addon-tree-output/liquid-fire/constraint.js","addon-tree-output/liquid-fire/constraints.js","addon-tree-output/liquid-fire/dsl.js","addon-tree-output/liquid-fire/ember-internals.js","addon-tree-output/liquid-fire/ember-internals/get-outlet-state.js","addon-tree-output/liquid-fire/helpers/lf-lock-model.js","addon-tree-output/liquid-fire/helpers/lf-or.js","addon-tree-output/liquid-fire/index.js","addon-tree-output/liquid-fire/is-browser.js","addon-tree-output/liquid-fire/mixins/growable.js","addon-tree-output/liquid-fire/mixins/pausable.js","addon-tree-output/liquid-fire/mutation-observer.js","addon-tree-output/liquid-fire/promise.js","addon-tree-output/liquid-fire/rule.js","addon-tree-output/liquid-fire/running-transition.js","addon-tree-output/liquid-fire/tabbable.js","addon-tree-output/liquid-fire/templates/components/get-outlet-state.js","addon-tree-output/liquid-fire/templates/components/illiquid-model.js","addon-tree-output/liquid-fire/templates/components/liquid-bind.js","addon-tree-output/liquid-fire/templates/components/liquid-container.js","addon-tree-output/liquid-fire/templates/components/liquid-if.js","addon-tree-output/liquid-fire/templates/components/liquid-measured.js","addon-tree-output/liquid-fire/templates/components/liquid-outlet.js","addon-tree-output/liquid-fire/templates/components/liquid-spacer.js","addon-tree-output/liquid-fire/templates/components/liquid-sync.js","addon-tree-output/liquid-fire/templates/components/liquid-versions.js","addon-tree-output/liquid-fire/transition-map.js","addon-tree-output/liquid-fire/transitions/cross-fade.js","addon-tree-output/liquid-fire/transitions/default.js","addon-tree-output/liquid-fire/transitions/explode.js","addon-tree-output/liquid-fire/transitions/fade.js","addon-tree-output/liquid-fire/transitions/flex-grow.js","addon-tree-output/liquid-fire/transitions/fly-to.js","addon-tree-output/liquid-fire/transitions/move-over.js","addon-tree-output/liquid-fire/transitions/scale.js","addon-tree-output/liquid-fire/transitions/scroll-then.js","addon-tree-output/liquid-fire/transitions/to-down.js","addon-tree-output/liquid-fire/transitions/to-left.js","addon-tree-output/liquid-fire/transitions/to-right.js","addon-tree-output/liquid-fire/transitions/to-up.js","addon-tree-output/liquid-fire/transitions/wait.js","addon-tree-output/liquid-fire/velocity-ext.js","vendor/ember-cli/vendor-suffix.js"],"sourcesContent":["window.EmberENV = (function(EmberENV, extra) {\n  for (var key in extra) {\n    EmberENV[key] = extra[key];\n  }\n\n  return EmberENV;\n})(window.EmberENV || {}, {\"FEATURES\":{},\"EXTEND_PROTOTYPES\":{\"Date\":false,\"Array\":true},\"_APPLICATION_TEMPLATE_WRAPPER\":true,\"_DEFAULT_ASYNC_OBSERVERS\":false,\"_JQUERY_INTEGRATION\":true,\"_TEMPLATE_ONLY_GLIMMER_COMPONENTS\":false});\n\nvar runningTests = false;\n\n\n","var loader, define, requireModule, require, requirejs;\n\n(function (global) {\n  'use strict';\n\n  function dict() {\n    var obj = Object.create(null);\n    obj['__'] = undefined;\n    delete obj['__'];\n    return obj;\n  }\n\n  // Save off the original values of these globals, so we can restore them if someone asks us to\n  var oldGlobals = {\n    loader: loader,\n    define: define,\n    requireModule: requireModule,\n    require: require,\n    requirejs: requirejs\n  };\n\n  requirejs = require = requireModule = function (id) {\n    var pending = [];\n    var mod = findModule(id, '(require)', pending);\n\n    for (var i = pending.length - 1; i >= 0; i--) {\n      pending[i].exports();\n    }\n\n    return mod.module.exports;\n  };\n\n  loader = {\n    noConflict: function (aliases) {\n      var oldName, newName;\n\n      for (oldName in aliases) {\n        if (aliases.hasOwnProperty(oldName)) {\n          if (oldGlobals.hasOwnProperty(oldName)) {\n            newName = aliases[oldName];\n\n            global[newName] = global[oldName];\n            global[oldName] = oldGlobals[oldName];\n          }\n        }\n      }\n    },\n    // Option to enable or disable the generation of default exports\n    makeDefaultExport: true\n  };\n\n  var registry = dict();\n  var seen = dict();\n\n  var uuid = 0;\n\n  function unsupportedModule(length) {\n    throw new Error('an unsupported module was defined, expected `define(id, deps, module)` instead got: `' + length + '` arguments to define`');\n  }\n\n  var defaultDeps = ['require', 'exports', 'module'];\n\n  function Module(id, deps, callback, alias) {\n    this.uuid = uuid++;\n    this.id = id;\n    this.deps = !deps.length && callback.length ? defaultDeps : deps;\n    this.module = { exports: {} };\n    this.callback = callback;\n    this.hasExportsAsDep = false;\n    this.isAlias = alias;\n    this.reified = new Array(deps.length);\n\n    /*\n       Each module normally passes through these states, in order:\n         new       : initial state\n         pending   : this module is scheduled to be executed\n         reifying  : this module's dependencies are being executed\n         reified   : this module's dependencies finished executing successfully\n         errored   : this module's dependencies failed to execute\n         finalized : this module executed successfully\n     */\n    this.state = 'new';\n  }\n\n  Module.prototype.makeDefaultExport = function () {\n    var exports = this.module.exports;\n    if (exports !== null && (typeof exports === 'object' || typeof exports === 'function') && exports['default'] === undefined && Object.isExtensible(exports)) {\n      exports['default'] = exports;\n    }\n  };\n\n  Module.prototype.exports = function () {\n    // if finalized, there is no work to do. If reifying, there is a\n    // circular dependency so we must return our (partial) exports.\n    if (this.state === 'finalized' || this.state === 'reifying') {\n      return this.module.exports;\n    }\n\n\n    if (loader.wrapModules) {\n      this.callback = loader.wrapModules(this.id, this.callback);\n    }\n\n    this.reify();\n\n    var result = this.callback.apply(this, this.reified);\n    this.reified.length = 0;\n    this.state = 'finalized';\n\n    if (!(this.hasExportsAsDep && result === undefined)) {\n      this.module.exports = result;\n    }\n    if (loader.makeDefaultExport) {\n      this.makeDefaultExport();\n    }\n    return this.module.exports;\n  };\n\n  Module.prototype.unsee = function () {\n    this.state = 'new';\n    this.module = { exports: {} };\n  };\n\n  Module.prototype.reify = function () {\n    if (this.state === 'reified') {\n      return;\n    }\n    this.state = 'reifying';\n    try {\n      this.reified = this._reify();\n      this.state = 'reified';\n    } finally {\n      if (this.state === 'reifying') {\n        this.state = 'errored';\n      }\n    }\n  };\n\n  Module.prototype._reify = function () {\n    var reified = this.reified.slice();\n    for (var i = 0; i < reified.length; i++) {\n      var mod = reified[i];\n      reified[i] = mod.exports ? mod.exports : mod.module.exports();\n    }\n    return reified;\n  };\n\n  Module.prototype.findDeps = function (pending) {\n    if (this.state !== 'new') {\n      return;\n    }\n\n    this.state = 'pending';\n\n    var deps = this.deps;\n\n    for (var i = 0; i < deps.length; i++) {\n      var dep = deps[i];\n      var entry = this.reified[i] = { exports: undefined, module: undefined };\n      if (dep === 'exports') {\n        this.hasExportsAsDep = true;\n        entry.exports = this.module.exports;\n      } else if (dep === 'require') {\n        entry.exports = this.makeRequire();\n      } else if (dep === 'module') {\n        entry.exports = this.module;\n      } else {\n        entry.module = findModule(resolve(dep, this.id), this.id, pending);\n      }\n    }\n  };\n\n  Module.prototype.makeRequire = function () {\n    var id = this.id;\n    var r = function (dep) {\n      return require(resolve(dep, id));\n    };\n    r['default'] = r;\n    r.moduleId = id;\n    r.has = function (dep) {\n      return has(resolve(dep, id));\n    };\n    return r;\n  };\n\n  define = function (id, deps, callback) {\n    var module = registry[id];\n\n    // If a module for this id has already been defined and is in any state\n    // other than `new` (meaning it has been or is currently being required),\n    // then we return early to avoid redefinition.\n    if (module && module.state !== 'new') {\n      return;\n    }\n\n    if (arguments.length < 2) {\n      unsupportedModule(arguments.length);\n    }\n\n    if (!Array.isArray(deps)) {\n      callback = deps;\n      deps = [];\n    }\n\n    if (callback instanceof Alias) {\n      registry[id] = new Module(callback.id, deps, callback, true);\n    } else {\n      registry[id] = new Module(id, deps, callback, false);\n    }\n  };\n\n  define.exports = function (name, defaultExport) {\n    var module = registry[name];\n\n    // If a module for this name has already been defined and is in any state\n    // other than `new` (meaning it has been or is currently being required),\n    // then we return early to avoid redefinition.\n    if (module && module.state !== 'new') {\n      return;\n    }\n\n    module = new Module(name, [], noop, null);\n    module.module.exports = defaultExport;\n    module.state = 'finalized';\n    registry[name] = module;\n\n    return module;\n  };\n\n  function noop() {}\n  // we don't support all of AMD\n  // define.amd = {};\n\n  function Alias(id) {\n    this.id = id;\n  }\n\n  define.alias = function (id, target) {\n    if (arguments.length === 2) {\n      return define(target, new Alias(id));\n    }\n\n    return new Alias(id);\n  };\n\n  function missingModule(id, referrer) {\n    throw new Error('Could not find module `' + id + '` imported from `' + referrer + '`');\n  }\n\n  function findModule(id, referrer, pending) {\n    var mod = registry[id] || registry[id + '/index'];\n\n    while (mod && mod.isAlias) {\n      mod = registry[mod.id] || registry[mod.id + '/index'];\n    }\n\n    if (!mod) {\n      missingModule(id, referrer);\n    }\n\n    if (pending && mod.state !== 'pending' && mod.state !== 'finalized') {\n      mod.findDeps(pending);\n      pending.push(mod);\n    }\n    return mod;\n  }\n\n  function resolve(child, id) {\n    if (child.charAt(0) !== '.') {\n      return child;\n    }\n\n\n    var parts = child.split('/');\n    var nameParts = id.split('/');\n    var parentBase = nameParts.slice(0, -1);\n\n    for (var i = 0, l = parts.length; i < l; i++) {\n      var part = parts[i];\n\n      if (part === '..') {\n        if (parentBase.length === 0) {\n          throw new Error('Cannot access parent module of root');\n        }\n        parentBase.pop();\n      } else if (part === '.') {\n        continue;\n      } else {\n        parentBase.push(part);\n      }\n    }\n\n    return parentBase.join('/');\n  }\n\n  function has(id) {\n    return !!(registry[id] || registry[id + '/index']);\n  }\n\n  requirejs.entries = requirejs._eak_seen = registry;\n  requirejs.has = has;\n  requirejs.unsee = function (id) {\n    findModule(id, '(unsee)', false).unsee();\n  };\n\n  requirejs.clear = function () {\n    requirejs.entries = requirejs._eak_seen = registry = dict();\n    seen = dict();\n  };\n\n  // This code primes the JS engine for good performance by warming the\n  // JIT compiler for these functions.\n  define('foo', function () {});\n  define('foo/bar', [], function () {});\n  define('foo/asdf', ['module', 'exports', 'require'], function (module, exports, require) {\n    if (require.has('foo/bar')) {\n      require('foo/bar');\n    }\n  });\n  define('foo/baz', [], define.alias('foo'));\n  define('foo/quz', define.alias('foo'));\n  define.alias('foo', 'foo/qux');\n  define('foo/bar', ['foo', './quz', './baz', './asdf', './bar', '../foo'], function () {});\n  define('foo/main', ['foo/bar'], function () {});\n  define.exports('foo/exports', {});\n\n  require('foo/exports');\n  require('foo/main');\n  require.unsee('foo/bar');\n\n  requirejs.clear();\n\n  if (typeof exports === 'object' && typeof module === 'object' && module.exports) {\n    module.exports = { require: require, define: define };\n  }\n})(this);","/*!\n * jQuery JavaScript Library v3.7.1\n * https://jquery.com/\n *\n * Copyright OpenJS Foundation and other contributors\n * Released under the MIT license\n * https://jquery.org/license\n *\n * Date: 2023-08-28T13:37Z\n */\n( function( global, factory ) {\n\n\t\"use strict\";\n\n\tif ( typeof module === \"object\" && typeof module.exports === \"object\" ) {\n\n\t\t// For CommonJS and CommonJS-like environments where a proper `window`\n\t\t// is present, execute the factory and get jQuery.\n\t\t// For environments that do not have a `window` with a `document`\n\t\t// (such as Node.js), expose a factory as module.exports.\n\t\t// This accentuates the need for the creation of a real `window`.\n\t\t// e.g. var jQuery = require(\"jquery\")(window);\n\t\t// See ticket trac-14549 for more info.\n\t\tmodule.exports = global.document ?\n\t\t\tfactory( global, true ) :\n\t\t\tfunction( w ) {\n\t\t\t\tif ( !w.document ) {\n\t\t\t\t\tthrow new Error( \"jQuery requires a window with a document\" );\n\t\t\t\t}\n\t\t\t\treturn factory( w );\n\t\t\t};\n\t} else {\n\t\tfactory( global );\n\t}\n\n// Pass this if window is not defined yet\n} )( typeof window !== \"undefined\" ? window : this, function( window, noGlobal ) {\n\n// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1\n// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode\n// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common\n// enough that all such attempts are guarded in a try block.\n\"use strict\";\n\nvar arr = [];\n\nvar getProto = Object.getPrototypeOf;\n\nvar slice = arr.slice;\n\nvar flat = arr.flat ? function( array ) {\n\treturn arr.flat.call( array );\n} : function( array ) {\n\treturn arr.concat.apply( [], array );\n};\n\n\nvar push = arr.push;\n\nvar indexOf = arr.indexOf;\n\nvar class2type = {};\n\nvar toString = class2type.toString;\n\nvar hasOwn = class2type.hasOwnProperty;\n\nvar fnToString = hasOwn.toString;\n\nvar ObjectFunctionString = fnToString.call( Object );\n\nvar support = {};\n\nvar isFunction = function isFunction( obj ) {\n\n\t\t// Support: Chrome <=57, Firefox <=52\n\t\t// In some browsers, typeof returns \"function\" for HTML <object> elements\n\t\t// (i.e., `typeof document.createElement( \"object\" ) === \"function\"`).\n\t\t// We don't want to classify *any* DOM node as a function.\n\t\t// Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5\n\t\t// Plus for old WebKit, typeof returns \"function\" for HTML collections\n\t\t// (e.g., `typeof document.getElementsByTagName(\"div\") === \"function\"`). (gh-4756)\n\t\treturn typeof obj === \"function\" && typeof obj.nodeType !== \"number\" &&\n\t\t\ttypeof obj.item !== \"function\";\n\t};\n\n\nvar isWindow = function isWindow( obj ) {\n\t\treturn obj != null && obj === obj.window;\n\t};\n\n\nvar document = window.document;\n\n\n\n\tvar preservedScriptAttributes = {\n\t\ttype: true,\n\t\tsrc: true,\n\t\tnonce: true,\n\t\tnoModule: true\n\t};\n\n\tfunction DOMEval( code, node, doc ) {\n\t\tdoc = doc || document;\n\n\t\tvar i, val,\n\t\t\tscript = doc.createElement( \"script\" );\n\n\t\tscript.text = code;\n\t\tif ( node ) {\n\t\t\tfor ( i in preservedScriptAttributes ) {\n\n\t\t\t\t// Support: Firefox 64+, Edge 18+\n\t\t\t\t// Some browsers don't support the \"nonce\" property on scripts.\n\t\t\t\t// On the other hand, just using `getAttribute` is not enough as\n\t\t\t\t// the `nonce` attribute is reset to an empty string whenever it\n\t\t\t\t// becomes browsing-context connected.\n\t\t\t\t// See https://github.com/whatwg/html/issues/2369\n\t\t\t\t// See https://html.spec.whatwg.org/#nonce-attributes\n\t\t\t\t// The `node.getAttribute` check was added for the sake of\n\t\t\t\t// `jQuery.globalEval` so that it can fake a nonce-containing node\n\t\t\t\t// via an object.\n\t\t\t\tval = node[ i ] || node.getAttribute && node.getAttribute( i );\n\t\t\t\tif ( val ) {\n\t\t\t\t\tscript.setAttribute( i, val );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdoc.head.appendChild( script ).parentNode.removeChild( script );\n\t}\n\n\nfunction toType( obj ) {\n\tif ( obj == null ) {\n\t\treturn obj + \"\";\n\t}\n\n\t// Support: Android <=2.3 only (functionish RegExp)\n\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\n\t\tclass2type[ toString.call( obj ) ] || \"object\" :\n\t\ttypeof obj;\n}\n/* global Symbol */\n// Defining this global in .eslintrc.json would create a danger of using the global\n// unguarded in another place, it seems safer to define global only for this module\n\n\n\nvar version = \"3.7.1\",\n\n\trhtmlSuffix = /HTML$/i,\n\n\t// Define a local copy of jQuery\n\tjQuery = function( selector, context ) {\n\n\t\t// The jQuery object is actually just the init constructor 'enhanced'\n\t\t// Need init if jQuery is called (just allow error to be thrown if not included)\n\t\treturn new jQuery.fn.init( selector, context );\n\t};\n\njQuery.fn = jQuery.prototype = {\n\n\t// The current version of jQuery being used\n\tjquery: version,\n\n\tconstructor: jQuery,\n\n\t// The default length of a jQuery object is 0\n\tlength: 0,\n\n\ttoArray: function() {\n\t\treturn slice.call( this );\n\t},\n\n\t// Get the Nth element in the matched element set OR\n\t// Get the whole matched element set as a clean array\n\tget: function( num ) {\n\n\t\t// Return all the elements in a clean array\n\t\tif ( num == null ) {\n\t\t\treturn slice.call( this );\n\t\t}\n\n\t\t// Return just the one element from the set\n\t\treturn num < 0 ? this[ num + this.length ] : this[ num ];\n\t},\n\n\t// Take an array of elements and push it onto the stack\n\t// (returning the new matched element set)\n\tpushStack: function( elems ) {\n\n\t\t// Build a new jQuery matched element set\n\t\tvar ret = jQuery.merge( this.constructor(), elems );\n\n\t\t// Add the old object onto the stack (as a reference)\n\t\tret.prevObject = this;\n\n\t\t// Return the newly-formed element set\n\t\treturn ret;\n\t},\n\n\t// Execute a callback for every element in the matched set.\n\teach: function( callback ) {\n\t\treturn jQuery.each( this, callback );\n\t},\n\n\tmap: function( callback ) {\n\t\treturn this.pushStack( jQuery.map( this, function( elem, i ) {\n\t\t\treturn callback.call( elem, i, elem );\n\t\t} ) );\n\t},\n\n\tslice: function() {\n\t\treturn this.pushStack( slice.apply( this, arguments ) );\n\t},\n\n\tfirst: function() {\n\t\treturn this.eq( 0 );\n\t},\n\n\tlast: function() {\n\t\treturn this.eq( -1 );\n\t},\n\n\teven: function() {\n\t\treturn this.pushStack( jQuery.grep( this, function( _elem, i ) {\n\t\t\treturn ( i + 1 ) % 2;\n\t\t} ) );\n\t},\n\n\todd: function() {\n\t\treturn this.pushStack( jQuery.grep( this, function( _elem, i ) {\n\t\t\treturn i % 2;\n\t\t} ) );\n\t},\n\n\teq: function( i ) {\n\t\tvar len = this.length,\n\t\t\tj = +i + ( i < 0 ? len : 0 );\n\t\treturn this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );\n\t},\n\n\tend: function() {\n\t\treturn this.prevObject || this.constructor();\n\t},\n\n\t// For internal use only.\n\t// Behaves like an Array's method, not like a jQuery method.\n\tpush: push,\n\tsort: arr.sort,\n\tsplice: arr.splice\n};\n\njQuery.extend = jQuery.fn.extend = function() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[ 0 ] || {},\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif ( typeof target === \"boolean\" ) {\n\t\tdeep = target;\n\n\t\t// Skip the boolean and the target\n\t\ttarget = arguments[ i ] || {};\n\t\ti++;\n\t}\n\n\t// Handle case when target is a string or something (possible in deep copy)\n\tif ( typeof target !== \"object\" && !isFunction( target ) ) {\n\t\ttarget = {};\n\t}\n\n\t// Extend jQuery itself if only one argument is passed\n\tif ( i === length ) {\n\t\ttarget = this;\n\t\ti--;\n\t}\n\n\tfor ( ; i < length; i++ ) {\n\n\t\t// Only deal with non-null/undefined values\n\t\tif ( ( options = arguments[ i ] ) != null ) {\n\n\t\t\t// Extend the base object\n\t\t\tfor ( name in options ) {\n\t\t\t\tcopy = options[ name ];\n\n\t\t\t\t// Prevent Object.prototype pollution\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif ( name === \"__proto__\" || target === copy ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\tif ( deep && copy && ( jQuery.isPlainObject( copy ) ||\n\t\t\t\t\t( copyIsArray = Array.isArray( copy ) ) ) ) {\n\t\t\t\t\tsrc = target[ name ];\n\n\t\t\t\t\t// Ensure proper type for the source value\n\t\t\t\t\tif ( copyIsArray && !Array.isArray( src ) ) {\n\t\t\t\t\t\tclone = [];\n\t\t\t\t\t} else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {\n\t\t\t\t\t\tclone = {};\n\t\t\t\t\t} else {\n\t\t\t\t\t\tclone = src;\n\t\t\t\t\t}\n\t\t\t\t\tcopyIsArray = false;\n\n\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\ttarget[ name ] = jQuery.extend( deep, clone, copy );\n\n\t\t\t\t// Don't bring in undefined values\n\t\t\t\t} else if ( copy !== undefined ) {\n\t\t\t\t\ttarget[ name ] = copy;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\njQuery.extend( {\n\n\t// Unique for each copy of jQuery on the page\n\texpando: \"jQuery\" + ( version + Math.random() ).replace( /\\D/g, \"\" ),\n\n\t// Assume jQuery is ready without the ready module\n\tisReady: true,\n\n\terror: function( msg ) {\n\t\tthrow new Error( msg );\n\t},\n\n\tnoop: function() {},\n\n\tisPlainObject: function( obj ) {\n\t\tvar proto, Ctor;\n\n\t\t// Detect obvious negatives\n\t\t// Use toString instead of jQuery.type to catch host objects\n\t\tif ( !obj || toString.call( obj ) !== \"[object Object]\" ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tproto = getProto( obj );\n\n\t\t// Objects with no prototype (e.g., `Object.create( null )`) are plain\n\t\tif ( !proto ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t// Objects with prototype are plain iff they were constructed by a global Object function\n\t\tCtor = hasOwn.call( proto, \"constructor\" ) && proto.constructor;\n\t\treturn typeof Ctor === \"function\" && fnToString.call( Ctor ) === ObjectFunctionString;\n\t},\n\n\tisEmptyObject: function( obj ) {\n\t\tvar name;\n\n\t\tfor ( name in obj ) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t},\n\n\t// Evaluates a script in a provided context; falls back to the global one\n\t// if not specified.\n\tglobalEval: function( code, options, doc ) {\n\t\tDOMEval( code, { nonce: options && options.nonce }, doc );\n\t},\n\n\teach: function( obj, callback ) {\n\t\tvar length, i = 0;\n\n\t\tif ( isArrayLike( obj ) ) {\n\t\t\tlength = obj.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor ( i in obj ) {\n\t\t\t\tif ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn obj;\n\t},\n\n\n\t// Retrieve the text value of an array of DOM nodes\n\ttext: function( elem ) {\n\t\tvar node,\n\t\t\tret = \"\",\n\t\t\ti = 0,\n\t\t\tnodeType = elem.nodeType;\n\n\t\tif ( !nodeType ) {\n\n\t\t\t// If no nodeType, this is expected to be an array\n\t\t\twhile ( ( node = elem[ i++ ] ) ) {\n\n\t\t\t\t// Do not traverse comment nodes\n\t\t\t\tret += jQuery.text( node );\n\t\t\t}\n\t\t}\n\t\tif ( nodeType === 1 || nodeType === 11 ) {\n\t\t\treturn elem.textContent;\n\t\t}\n\t\tif ( nodeType === 9 ) {\n\t\t\treturn elem.documentElement.textContent;\n\t\t}\n\t\tif ( nodeType === 3 || nodeType === 4 ) {\n\t\t\treturn elem.nodeValue;\n\t\t}\n\n\t\t// Do not include comment or processing instruction nodes\n\n\t\treturn ret;\n\t},\n\n\t// results is for internal usage only\n\tmakeArray: function( arr, results ) {\n\t\tvar ret = results || [];\n\n\t\tif ( arr != null ) {\n\t\t\tif ( isArrayLike( Object( arr ) ) ) {\n\t\t\t\tjQuery.merge( ret,\n\t\t\t\t\ttypeof arr === \"string\" ?\n\t\t\t\t\t\t[ arr ] : arr\n\t\t\t\t);\n\t\t\t} else {\n\t\t\t\tpush.call( ret, arr );\n\t\t\t}\n\t\t}\n\n\t\treturn ret;\n\t},\n\n\tinArray: function( elem, arr, i ) {\n\t\treturn arr == null ? -1 : indexOf.call( arr, elem, i );\n\t},\n\n\tisXMLDoc: function( elem ) {\n\t\tvar namespace = elem && elem.namespaceURI,\n\t\t\tdocElem = elem && ( elem.ownerDocument || elem ).documentElement;\n\n\t\t// Assume HTML when documentElement doesn't yet exist, such as inside\n\t\t// document fragments.\n\t\treturn !rhtmlSuffix.test( namespace || docElem && docElem.nodeName || \"HTML\" );\n\t},\n\n\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t// push.apply(_, arraylike) throws on ancient WebKit\n\tmerge: function( first, second ) {\n\t\tvar len = +second.length,\n\t\t\tj = 0,\n\t\t\ti = first.length;\n\n\t\tfor ( ; j < len; j++ ) {\n\t\t\tfirst[ i++ ] = second[ j ];\n\t\t}\n\n\t\tfirst.length = i;\n\n\t\treturn first;\n\t},\n\n\tgrep: function( elems, callback, invert ) {\n\t\tvar callbackInverse,\n\t\t\tmatches = [],\n\t\t\ti = 0,\n\t\t\tlength = elems.length,\n\t\t\tcallbackExpect = !invert;\n\n\t\t// Go through the array, only saving the items\n\t\t// that pass the validator function\n\t\tfor ( ; i < length; i++ ) {\n\t\t\tcallbackInverse = !callback( elems[ i ], i );\n\t\t\tif ( callbackInverse !== callbackExpect ) {\n\t\t\t\tmatches.push( elems[ i ] );\n\t\t\t}\n\t\t}\n\n\t\treturn matches;\n\t},\n\n\t// arg is for internal usage only\n\tmap: function( elems, callback, arg ) {\n\t\tvar length, value,\n\t\t\ti = 0,\n\t\t\tret = [];\n\n\t\t// Go through the array, translating each of the items to their new values\n\t\tif ( isArrayLike( elems ) ) {\n\t\t\tlength = elems.length;\n\t\t\tfor ( ; i < length; i++ ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Go through every key on the object,\n\t\t} else {\n\t\t\tfor ( i in elems ) {\n\t\t\t\tvalue = callback( elems[ i ], i, arg );\n\n\t\t\t\tif ( value != null ) {\n\t\t\t\t\tret.push( value );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Flatten any nested arrays\n\t\treturn flat( ret );\n\t},\n\n\t// A global GUID counter for objects\n\tguid: 1,\n\n\t// jQuery.support is not used in Core but other projects attach their\n\t// properties to it so it needs to exist.\n\tsupport: support\n} );\n\nif ( typeof Symbol === \"function\" ) {\n\tjQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];\n}\n\n// Populate the class2type map\njQuery.each( \"Boolean Number String Function Array Date RegExp Object Error Symbol\".split( \" \" ),\n\tfunction( _i, name ) {\n\t\tclass2type[ \"[object \" + name + \"]\" ] = name.toLowerCase();\n\t} );\n\nfunction isArrayLike( obj ) {\n\n\t// Support: real iOS 8.2 only (not reproducible in simulator)\n\t// `in` check used to prevent JIT error (gh-2145)\n\t// hasOwn isn't used here due to false negatives\n\t// regarding Nodelist length in IE\n\tvar length = !!obj && \"length\" in obj && obj.length,\n\t\ttype = toType( obj );\n\n\tif ( isFunction( obj ) || isWindow( obj ) ) {\n\t\treturn false;\n\t}\n\n\treturn type === \"array\" || length === 0 ||\n\t\ttypeof length === \"number\" && length > 0 && ( length - 1 ) in obj;\n}\n\n\nfunction nodeName( elem, name ) {\n\n\treturn elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();\n\n}\nvar pop = arr.pop;\n\n\nvar sort = arr.sort;\n\n\nvar splice = arr.splice;\n\n\nvar whitespace = \"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\";\n\n\nvar rtrimCSS = new RegExp(\n\t\"^\" + whitespace + \"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\" + whitespace + \"+$\",\n\t\"g\"\n);\n\n\n\n\n// Note: an element does not contain itself\njQuery.contains = function( a, b ) {\n\tvar bup = b && b.parentNode;\n\n\treturn a === bup || !!( bup && bup.nodeType === 1 && (\n\n\t\t// Support: IE 9 - 11+\n\t\t// IE doesn't have `contains` on SVG.\n\t\ta.contains ?\n\t\t\ta.contains( bup ) :\n\t\t\ta.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16\n\t) );\n};\n\n\n\n\n// CSS string/identifier serialization\n// https://drafts.csswg.org/cssom/#common-serializing-idioms\nvar rcssescape = /([\\0-\\x1f\\x7f]|^-?\\d)|^-$|[^\\x80-\\uFFFF\\w-]/g;\n\nfunction fcssescape( ch, asCodePoint ) {\n\tif ( asCodePoint ) {\n\n\t\t// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER\n\t\tif ( ch === \"\\0\" ) {\n\t\t\treturn \"\\uFFFD\";\n\t\t}\n\n\t\t// Control characters and (dependent upon position) numbers get escaped as code points\n\t\treturn ch.slice( 0, -1 ) + \"\\\\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + \" \";\n\t}\n\n\t// Other potentially-special ASCII characters get backslash-escaped\n\treturn \"\\\\\" + ch;\n}\n\njQuery.escapeSelector = function( sel ) {\n\treturn ( sel + \"\" ).replace( rcssescape, fcssescape );\n};\n\n\n\n\nvar preferredDoc = document,\n\tpushNative = push;\n\n( function() {\n\nvar i,\n\tExpr,\n\toutermostContext,\n\tsortInput,\n\thasDuplicate,\n\tpush = pushNative,\n\n\t// Local document vars\n\tdocument,\n\tdocumentElement,\n\tdocumentIsHTML,\n\trbuggyQSA,\n\tmatches,\n\n\t// Instance-specific data\n\texpando = jQuery.expando,\n\tdirruns = 0,\n\tdone = 0,\n\tclassCache = createCache(),\n\ttokenCache = createCache(),\n\tcompilerCache = createCache(),\n\tnonnativeSelectorCache = createCache(),\n\tsortOrder = function( a, b ) {\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t}\n\t\treturn 0;\n\t},\n\n\tbooleans = \"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|\" +\n\t\t\"loop|multiple|open|readonly|required|scoped\",\n\n\t// Regular expressions\n\n\t// https://www.w3.org/TR/css-syntax-3/#ident-token-diagram\n\tidentifier = \"(?:\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace +\n\t\t\"?|\\\\\\\\[^\\\\r\\\\n\\\\f]|[\\\\w-]|[^\\0-\\\\x7f])+\",\n\n\t// Attribute selectors: https://www.w3.org/TR/selectors/#attribute-selectors\n\tattributes = \"\\\\[\" + whitespace + \"*(\" + identifier + \")(?:\" + whitespace +\n\n\t\t// Operator (capture 2)\n\t\t\"*([*^$|!~]?=)\" + whitespace +\n\n\t\t// \"Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]\"\n\t\t\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\" + identifier + \"))|)\" +\n\t\twhitespace + \"*\\\\]\",\n\n\tpseudos = \":(\" + identifier + \")(?:\\\\((\" +\n\n\t\t// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:\n\t\t// 1. quoted (capture 3; capture 4 or capture 5)\n\t\t\"('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|\" +\n\n\t\t// 2. simple (capture 6)\n\t\t\"((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\" + attributes + \")*)|\" +\n\n\t\t// 3. anything else (capture 2)\n\t\t\".*\" +\n\t\t\")\\\\)|)\",\n\n\t// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter\n\trwhitespace = new RegExp( whitespace + \"+\", \"g\" ),\n\n\trcomma = new RegExp( \"^\" + whitespace + \"*,\" + whitespace + \"*\" ),\n\trleadingCombinator = new RegExp( \"^\" + whitespace + \"*([>+~]|\" + whitespace + \")\" +\n\t\twhitespace + \"*\" ),\n\trdescend = new RegExp( whitespace + \"|>\" ),\n\n\trpseudo = new RegExp( pseudos ),\n\tridentifier = new RegExp( \"^\" + identifier + \"$\" ),\n\n\tmatchExpr = {\n\t\tID: new RegExp( \"^#(\" + identifier + \")\" ),\n\t\tCLASS: new RegExp( \"^\\\\.(\" + identifier + \")\" ),\n\t\tTAG: new RegExp( \"^(\" + identifier + \"|[*])\" ),\n\t\tATTR: new RegExp( \"^\" + attributes ),\n\t\tPSEUDO: new RegExp( \"^\" + pseudos ),\n\t\tCHILD: new RegExp(\n\t\t\t\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\" +\n\t\t\t\twhitespace + \"*(even|odd|(([+-]|)(\\\\d*)n|)\" + whitespace + \"*(?:([+-]|)\" +\n\t\t\t\twhitespace + \"*(\\\\d+)|))\" + whitespace + \"*\\\\)|)\", \"i\" ),\n\t\tbool: new RegExp( \"^(?:\" + booleans + \")$\", \"i\" ),\n\n\t\t// For use in libraries implementing .is()\n\t\t// We use this for POS matching in `select`\n\t\tneedsContext: new RegExp( \"^\" + whitespace +\n\t\t\t\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\" + whitespace +\n\t\t\t\"*((?:-\\\\d)?\\\\d*)\" + whitespace + \"*\\\\)|)(?=[^-]|$)\", \"i\" )\n\t},\n\n\trinputs = /^(?:input|select|textarea|button)$/i,\n\trheader = /^h\\d$/i,\n\n\t// Easily-parseable/retrievable ID or TAG or CLASS selectors\n\trquickExpr = /^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,\n\n\trsibling = /[+~]/,\n\n\t// CSS escapes\n\t// https://www.w3.org/TR/CSS21/syndata.html#escaped-characters\n\trunescape = new RegExp( \"\\\\\\\\[\\\\da-fA-F]{1,6}\" + whitespace +\n\t\t\"?|\\\\\\\\([^\\\\r\\\\n\\\\f])\", \"g\" ),\n\tfunescape = function( escape, nonHex ) {\n\t\tvar high = \"0x\" + escape.slice( 1 ) - 0x10000;\n\n\t\tif ( nonHex ) {\n\n\t\t\t// Strip the backslash prefix from a non-hex escape sequence\n\t\t\treturn nonHex;\n\t\t}\n\n\t\t// Replace a hexadecimal escape sequence with the encoded Unicode code point\n\t\t// Support: IE <=11+\n\t\t// For values outside the Basic Multilingual Plane (BMP), manually construct a\n\t\t// surrogate pair\n\t\treturn high < 0 ?\n\t\t\tString.fromCharCode( high + 0x10000 ) :\n\t\t\tString.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );\n\t},\n\n\t// Used for iframes; see `setDocument`.\n\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t// Removing the function wrapper causes a \"Permission Denied\"\n\t// error in IE/Edge.\n\tunloadHandler = function() {\n\t\tsetDocument();\n\t},\n\n\tinDisabledFieldset = addCombinator(\n\t\tfunction( elem ) {\n\t\t\treturn elem.disabled === true && nodeName( elem, \"fieldset\" );\n\t\t},\n\t\t{ dir: \"parentNode\", next: \"legend\" }\n\t);\n\n// Support: IE <=9 only\n// Accessing document.activeElement can throw unexpectedly\n// https://bugs.jquery.com/ticket/13393\nfunction safeActiveElement() {\n\ttry {\n\t\treturn document.activeElement;\n\t} catch ( err ) { }\n}\n\n// Optimize for push.apply( _, NodeList )\ntry {\n\tpush.apply(\n\t\t( arr = slice.call( preferredDoc.childNodes ) ),\n\t\tpreferredDoc.childNodes\n\t);\n\n\t// Support: Android <=4.0\n\t// Detect silently failing push.apply\n\t// eslint-disable-next-line no-unused-expressions\n\tarr[ preferredDoc.childNodes.length ].nodeType;\n} catch ( e ) {\n\tpush = {\n\t\tapply: function( target, els ) {\n\t\t\tpushNative.apply( target, slice.call( els ) );\n\t\t},\n\t\tcall: function( target ) {\n\t\t\tpushNative.apply( target, slice.call( arguments, 1 ) );\n\t\t}\n\t};\n}\n\nfunction find( selector, context, results, seed ) {\n\tvar m, i, elem, nid, match, groups, newSelector,\n\t\tnewContext = context && context.ownerDocument,\n\n\t\t// nodeType defaults to 9, since context defaults to document\n\t\tnodeType = context ? context.nodeType : 9;\n\n\tresults = results || [];\n\n\t// Return early from calls with invalid selector or context\n\tif ( typeof selector !== \"string\" || !selector ||\n\t\tnodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {\n\n\t\treturn results;\n\t}\n\n\t// Try to shortcut find operations (as opposed to filters) in HTML documents\n\tif ( !seed ) {\n\t\tsetDocument( context );\n\t\tcontext = context || document;\n\n\t\tif ( documentIsHTML ) {\n\n\t\t\t// If the selector is sufficiently simple, try using a \"get*By*\" DOM method\n\t\t\t// (excepting DocumentFragment context, where the methods don't exist)\n\t\t\tif ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) {\n\n\t\t\t\t// ID selector\n\t\t\t\tif ( ( m = match[ 1 ] ) ) {\n\n\t\t\t\t\t// Document context\n\t\t\t\t\tif ( nodeType === 9 ) {\n\t\t\t\t\t\tif ( ( elem = context.getElementById( m ) ) ) {\n\n\t\t\t\t\t\t\t// Support: IE 9 only\n\t\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\t\tif ( elem.id === m ) {\n\t\t\t\t\t\t\t\tpush.call( results, elem );\n\t\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// Element context\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t// Support: IE 9 only\n\t\t\t\t\t\t// getElementById can match elements by name instead of ID\n\t\t\t\t\t\tif ( newContext && ( elem = newContext.getElementById( m ) ) &&\n\t\t\t\t\t\t\tfind.contains( context, elem ) &&\n\t\t\t\t\t\t\telem.id === m ) {\n\n\t\t\t\t\t\t\tpush.call( results, elem );\n\t\t\t\t\t\t\treturn results;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t// Type selector\n\t\t\t\t} else if ( match[ 2 ] ) {\n\t\t\t\t\tpush.apply( results, context.getElementsByTagName( selector ) );\n\t\t\t\t\treturn results;\n\n\t\t\t\t// Class selector\n\t\t\t\t} else if ( ( m = match[ 3 ] ) && context.getElementsByClassName ) {\n\t\t\t\t\tpush.apply( results, context.getElementsByClassName( m ) );\n\t\t\t\t\treturn results;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Take advantage of querySelectorAll\n\t\t\tif ( !nonnativeSelectorCache[ selector + \" \" ] &&\n\t\t\t\t( !rbuggyQSA || !rbuggyQSA.test( selector ) ) ) {\n\n\t\t\t\tnewSelector = selector;\n\t\t\t\tnewContext = context;\n\n\t\t\t\t// qSA considers elements outside a scoping root when evaluating child or\n\t\t\t\t// descendant combinators, which is not what we want.\n\t\t\t\t// In such cases, we work around the behavior by prefixing every selector in the\n\t\t\t\t// list with an ID selector referencing the scope context.\n\t\t\t\t// The technique has to be used as well when a leading combinator is used\n\t\t\t\t// as such selectors are not recognized by querySelectorAll.\n\t\t\t\t// Thanks to Andrew Dupont for this technique.\n\t\t\t\tif ( nodeType === 1 &&\n\t\t\t\t\t( rdescend.test( selector ) || rleadingCombinator.test( selector ) ) ) {\n\n\t\t\t\t\t// Expand context for sibling selectors\n\t\t\t\t\tnewContext = rsibling.test( selector ) && testContext( context.parentNode ) ||\n\t\t\t\t\t\tcontext;\n\n\t\t\t\t\t// We can use :scope instead of the ID hack if the browser\n\t\t\t\t\t// supports it & if we're not changing the context.\n\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when\n\t\t\t\t\t// strict-comparing two documents; shallow comparisons work.\n\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\tif ( newContext != context || !support.scope ) {\n\n\t\t\t\t\t\t// Capture the context ID, setting it first if necessary\n\t\t\t\t\t\tif ( ( nid = context.getAttribute( \"id\" ) ) ) {\n\t\t\t\t\t\t\tnid = jQuery.escapeSelector( nid );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcontext.setAttribute( \"id\", ( nid = expando ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prefix every selector in the list\n\t\t\t\t\tgroups = tokenize( selector );\n\t\t\t\t\ti = groups.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tgroups[ i ] = ( nid ? \"#\" + nid : \":scope\" ) + \" \" +\n\t\t\t\t\t\t\ttoSelector( groups[ i ] );\n\t\t\t\t\t}\n\t\t\t\t\tnewSelector = groups.join( \",\" );\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tpush.apply( results,\n\t\t\t\t\t\tnewContext.querySelectorAll( newSelector )\n\t\t\t\t\t);\n\t\t\t\t\treturn results;\n\t\t\t\t} catch ( qsaError ) {\n\t\t\t\t\tnonnativeSelectorCache( selector, true );\n\t\t\t\t} finally {\n\t\t\t\t\tif ( nid === expando ) {\n\t\t\t\t\t\tcontext.removeAttribute( \"id\" );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// All others\n\treturn select( selector.replace( rtrimCSS, \"$1\" ), context, results, seed );\n}\n\n/**\n * Create key-value caches of limited size\n * @returns {function(string, object)} Returns the Object data after storing it on itself with\n *\tproperty name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)\n *\tdeleting the oldest entry\n */\nfunction createCache() {\n\tvar keys = [];\n\n\tfunction cache( key, value ) {\n\n\t\t// Use (key + \" \") to avoid collision with native prototype properties\n\t\t// (see https://github.com/jquery/sizzle/issues/157)\n\t\tif ( keys.push( key + \" \" ) > Expr.cacheLength ) {\n\n\t\t\t// Only keep the most recent entries\n\t\t\tdelete cache[ keys.shift() ];\n\t\t}\n\t\treturn ( cache[ key + \" \" ] = value );\n\t}\n\treturn cache;\n}\n\n/**\n * Mark a function for special use by jQuery selector module\n * @param {Function} fn The function to mark\n */\nfunction markFunction( fn ) {\n\tfn[ expando ] = true;\n\treturn fn;\n}\n\n/**\n * Support testing using an element\n * @param {Function} fn Passed the created element and returns a boolean result\n */\nfunction assert( fn ) {\n\tvar el = document.createElement( \"fieldset\" );\n\n\ttry {\n\t\treturn !!fn( el );\n\t} catch ( e ) {\n\t\treturn false;\n\t} finally {\n\n\t\t// Remove from its parent by default\n\t\tif ( el.parentNode ) {\n\t\t\tel.parentNode.removeChild( el );\n\t\t}\n\n\t\t// release memory in IE\n\t\tel = null;\n\t}\n}\n\n/**\n * Returns a function to use in pseudos for input types\n * @param {String} type\n */\nfunction createInputPseudo( type ) {\n\treturn function( elem ) {\n\t\treturn nodeName( elem, \"input\" ) && elem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for buttons\n * @param {String} type\n */\nfunction createButtonPseudo( type ) {\n\treturn function( elem ) {\n\t\treturn ( nodeName( elem, \"input\" ) || nodeName( elem, \"button\" ) ) &&\n\t\t\telem.type === type;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for :enabled/:disabled\n * @param {Boolean} disabled true for :disabled; false for :enabled\n */\nfunction createDisabledPseudo( disabled ) {\n\n\t// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable\n\treturn function( elem ) {\n\n\t\t// Only certain elements can match :enabled or :disabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled\n\t\t// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled\n\t\tif ( \"form\" in elem ) {\n\n\t\t\t// Check for inherited disabledness on relevant non-disabled elements:\n\t\t\t// * listed form-associated elements in a disabled fieldset\n\t\t\t//   https://html.spec.whatwg.org/multipage/forms.html#category-listed\n\t\t\t//   https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled\n\t\t\t// * option elements in a disabled optgroup\n\t\t\t//   https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled\n\t\t\t// All such elements have a \"form\" property.\n\t\t\tif ( elem.parentNode && elem.disabled === false ) {\n\n\t\t\t\t// Option elements defer to a parent optgroup if present\n\t\t\t\tif ( \"label\" in elem ) {\n\t\t\t\t\tif ( \"label\" in elem.parentNode ) {\n\t\t\t\t\t\treturn elem.parentNode.disabled === disabled;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn elem.disabled === disabled;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Support: IE 6 - 11+\n\t\t\t\t// Use the isDisabled shortcut property to check for disabled fieldset ancestors\n\t\t\t\treturn elem.isDisabled === disabled ||\n\n\t\t\t\t\t// Where there is no isDisabled, check manually\n\t\t\t\t\telem.isDisabled !== !disabled &&\n\t\t\t\t\t\tinDisabledFieldset( elem ) === disabled;\n\t\t\t}\n\n\t\t\treturn elem.disabled === disabled;\n\n\t\t// Try to winnow out elements that can't be disabled before trusting the disabled property.\n\t\t// Some victims get caught in our net (label, legend, menu, track), but it shouldn't\n\t\t// even exist on them, let alone have a boolean value.\n\t\t} else if ( \"label\" in elem ) {\n\t\t\treturn elem.disabled === disabled;\n\t\t}\n\n\t\t// Remaining elements are neither :enabled nor :disabled\n\t\treturn false;\n\t};\n}\n\n/**\n * Returns a function to use in pseudos for positionals\n * @param {Function} fn\n */\nfunction createPositionalPseudo( fn ) {\n\treturn markFunction( function( argument ) {\n\t\targument = +argument;\n\t\treturn markFunction( function( seed, matches ) {\n\t\t\tvar j,\n\t\t\t\tmatchIndexes = fn( [], seed.length, argument ),\n\t\t\t\ti = matchIndexes.length;\n\n\t\t\t// Match elements found at the specified indexes\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( seed[ ( j = matchIndexes[ i ] ) ] ) {\n\t\t\t\t\tseed[ j ] = !( matches[ j ] = seed[ j ] );\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t} );\n}\n\n/**\n * Checks a node for validity as a jQuery selector context\n * @param {Element|Object=} context\n * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value\n */\nfunction testContext( context ) {\n\treturn context && typeof context.getElementsByTagName !== \"undefined\" && context;\n}\n\n/**\n * Sets document-related variables once based on the current document\n * @param {Element|Object} [node] An element or document object to use to set the document\n * @returns {Object} Returns the current document\n */\nfunction setDocument( node ) {\n\tvar subWindow,\n\t\tdoc = node ? node.ownerDocument || node : preferredDoc;\n\n\t// Return early if doc is invalid or already selected\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) {\n\t\treturn document;\n\t}\n\n\t// Update global variables\n\tdocument = doc;\n\tdocumentElement = document.documentElement;\n\tdocumentIsHTML = !jQuery.isXMLDoc( document );\n\n\t// Support: iOS 7 only, IE 9 - 11+\n\t// Older browsers didn't support unprefixed `matches`.\n\tmatches = documentElement.matches ||\n\t\tdocumentElement.webkitMatchesSelector ||\n\t\tdocumentElement.msMatchesSelector;\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t// Accessing iframe documents after unload throws \"permission denied\" errors\n\t// (see trac-13936).\n\t// Limit the fix to IE & Edge Legacy; despite Edge 15+ implementing `matches`,\n\t// all IE 9+ and Edge Legacy versions implement `msMatchesSelector` as well.\n\tif ( documentElement.msMatchesSelector &&\n\n\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t// two documents; shallow comparisons work.\n\t\t// eslint-disable-next-line eqeqeq\n\t\tpreferredDoc != document &&\n\t\t( subWindow = document.defaultView ) && subWindow.top !== subWindow ) {\n\n\t\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t\tsubWindow.addEventListener( \"unload\", unloadHandler );\n\t}\n\n\t// Support: IE <10\n\t// Check if getElementById returns elements by name\n\t// The broken getElementById methods don't pick up programmatically-set names,\n\t// so use a roundabout getElementsByName test\n\tsupport.getById = assert( function( el ) {\n\t\tdocumentElement.appendChild( el ).id = jQuery.expando;\n\t\treturn !document.getElementsByName ||\n\t\t\t!document.getElementsByName( jQuery.expando ).length;\n\t} );\n\n\t// Support: IE 9 only\n\t// Check to see if it's possible to do matchesSelector\n\t// on a disconnected node.\n\tsupport.disconnectedMatch = assert( function( el ) {\n\t\treturn matches.call( el, \"*\" );\n\t} );\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+\n\t// IE/Edge don't support the :scope pseudo-class.\n\tsupport.scope = assert( function() {\n\t\treturn document.querySelectorAll( \":scope\" );\n\t} );\n\n\t// Support: Chrome 105 - 111 only, Safari 15.4 - 16.3 only\n\t// Make sure the `:has()` argument is parsed unforgivingly.\n\t// We include `*` in the test to detect buggy implementations that are\n\t// _selectively_ forgiving (specifically when the list includes at least\n\t// one valid selector).\n\t// Note that we treat complete lack of support for `:has()` as if it were\n\t// spec-compliant support, which is fine because use of `:has()` in such\n\t// environments will fail in the qSA path and fall back to jQuery traversal\n\t// anyway.\n\tsupport.cssHas = assert( function() {\n\t\ttry {\n\t\t\tdocument.querySelector( \":has(*,:jqfake)\" );\n\t\t\treturn false;\n\t\t} catch ( e ) {\n\t\t\treturn true;\n\t\t}\n\t} );\n\n\t// ID filter and find\n\tif ( support.getById ) {\n\t\tExpr.filter.ID = function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn elem.getAttribute( \"id\" ) === attrId;\n\t\t\t};\n\t\t};\n\t\tExpr.find.ID = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar elem = context.getElementById( id );\n\t\t\t\treturn elem ? [ elem ] : [];\n\t\t\t}\n\t\t};\n\t} else {\n\t\tExpr.filter.ID =  function( id ) {\n\t\t\tvar attrId = id.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\tvar node = typeof elem.getAttributeNode !== \"undefined\" &&\n\t\t\t\t\telem.getAttributeNode( \"id\" );\n\t\t\t\treturn node && node.value === attrId;\n\t\t\t};\n\t\t};\n\n\t\t// Support: IE 6 - 7 only\n\t\t// getElementById is not reliable as a find shortcut\n\t\tExpr.find.ID = function( id, context ) {\n\t\t\tif ( typeof context.getElementById !== \"undefined\" && documentIsHTML ) {\n\t\t\t\tvar node, i, elems,\n\t\t\t\t\telem = context.getElementById( id );\n\n\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t// Verify the id attribute\n\t\t\t\t\tnode = elem.getAttributeNode( \"id\" );\n\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t}\n\n\t\t\t\t\t// Fall back on getElementsByName\n\t\t\t\t\telems = context.getElementsByName( id );\n\t\t\t\t\ti = 0;\n\t\t\t\t\twhile ( ( elem = elems[ i++ ] ) ) {\n\t\t\t\t\t\tnode = elem.getAttributeNode( \"id\" );\n\t\t\t\t\t\tif ( node && node.value === id ) {\n\t\t\t\t\t\t\treturn [ elem ];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn [];\n\t\t\t}\n\t\t};\n\t}\n\n\t// Tag\n\tExpr.find.TAG = function( tag, context ) {\n\t\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\t\treturn context.getElementsByTagName( tag );\n\n\t\t// DocumentFragment nodes don't have gEBTN\n\t\t} else {\n\t\t\treturn context.querySelectorAll( tag );\n\t\t}\n\t};\n\n\t// Class\n\tExpr.find.CLASS = function( className, context ) {\n\t\tif ( typeof context.getElementsByClassName !== \"undefined\" && documentIsHTML ) {\n\t\t\treturn context.getElementsByClassName( className );\n\t\t}\n\t};\n\n\t/* QSA/matchesSelector\n\t---------------------------------------------------------------------- */\n\n\t// QSA and matchesSelector support\n\n\trbuggyQSA = [];\n\n\t// Build QSA regex\n\t// Regex strategy adopted from Diego Perini\n\tassert( function( el ) {\n\n\t\tvar input;\n\n\t\tdocumentElement.appendChild( el ).innerHTML =\n\t\t\t\"<a id='\" + expando + \"' href='' disabled='disabled'></a>\" +\n\t\t\t\"<select id='\" + expando + \"-\\r\\\\' disabled='disabled'>\" +\n\t\t\t\"<option selected=''></option></select>\";\n\n\t\t// Support: iOS <=7 - 8 only\n\t\t// Boolean attributes and \"value\" are not treated correctly in some XML documents\n\t\tif ( !el.querySelectorAll( \"[selected]\" ).length ) {\n\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*(?:value|\" + booleans + \")\" );\n\t\t}\n\n\t\t// Support: iOS <=7 - 8 only\n\t\tif ( !el.querySelectorAll( \"[id~=\" + expando + \"-]\" ).length ) {\n\t\t\trbuggyQSA.push( \"~=\" );\n\t\t}\n\n\t\t// Support: iOS 8 only\n\t\t// https://bugs.webkit.org/show_bug.cgi?id=136851\n\t\t// In-page `selector#id sibling-combinator selector` fails\n\t\tif ( !el.querySelectorAll( \"a#\" + expando + \"+*\" ).length ) {\n\t\t\trbuggyQSA.push( \".#.+[+~]\" );\n\t\t}\n\n\t\t// Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+\n\t\t// In some of the document kinds, these selectors wouldn't work natively.\n\t\t// This is probably OK but for backwards compatibility we want to maintain\n\t\t// handling them through jQuery traversal in jQuery 3.x.\n\t\tif ( !el.querySelectorAll( \":checked\" ).length ) {\n\t\t\trbuggyQSA.push( \":checked\" );\n\t\t}\n\n\t\t// Support: Windows 8 Native Apps\n\t\t// The type and name attributes are restricted during .innerHTML assignment\n\t\tinput = document.createElement( \"input\" );\n\t\tinput.setAttribute( \"type\", \"hidden\" );\n\t\tel.appendChild( input ).setAttribute( \"name\", \"D\" );\n\n\t\t// Support: IE 9 - 11+\n\t\t// IE's :disabled selector does not pick up the children of disabled fieldsets\n\t\t// Support: Chrome <=105+, Firefox <=104+, Safari <=15.4+\n\t\t// In some of the document kinds, these selectors wouldn't work natively.\n\t\t// This is probably OK but for backwards compatibility we want to maintain\n\t\t// handling them through jQuery traversal in jQuery 3.x.\n\t\tdocumentElement.appendChild( el ).disabled = true;\n\t\tif ( el.querySelectorAll( \":disabled\" ).length !== 2 ) {\n\t\t\trbuggyQSA.push( \":enabled\", \":disabled\" );\n\t\t}\n\n\t\t// Support: IE 11+, Edge 15 - 18+\n\t\t// IE 11/Edge don't find elements on a `[name='']` query in some cases.\n\t\t// Adding a temporary attribute to the document before the selection works\n\t\t// around the issue.\n\t\t// Interestingly, IE 10 & older don't seem to have the issue.\n\t\tinput = document.createElement( \"input\" );\n\t\tinput.setAttribute( \"name\", \"\" );\n\t\tel.appendChild( input );\n\t\tif ( !el.querySelectorAll( \"[name='']\" ).length ) {\n\t\t\trbuggyQSA.push( \"\\\\[\" + whitespace + \"*name\" + whitespace + \"*=\" +\n\t\t\t\twhitespace + \"*(?:''|\\\"\\\")\" );\n\t\t}\n\t} );\n\n\tif ( !support.cssHas ) {\n\n\t\t// Support: Chrome 105 - 110+, Safari 15.4 - 16.3+\n\t\t// Our regular `try-catch` mechanism fails to detect natively-unsupported\n\t\t// pseudo-classes inside `:has()` (such as `:has(:contains(\"Foo\"))`)\n\t\t// in browsers that parse the `:has()` argument as a forgiving selector list.\n\t\t// https://drafts.csswg.org/selectors/#relational now requires the argument\n\t\t// to be parsed unforgivingly, but browsers have not yet fully adjusted.\n\t\trbuggyQSA.push( \":has\" );\n\t}\n\n\trbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( \"|\" ) );\n\n\t/* Sorting\n\t---------------------------------------------------------------------- */\n\n\t// Document order sorting\n\tsortOrder = function( a, b ) {\n\n\t\t// Flag for duplicate removal\n\t\tif ( a === b ) {\n\t\t\thasDuplicate = true;\n\t\t\treturn 0;\n\t\t}\n\n\t\t// Sort on method existence if only one input has compareDocumentPosition\n\t\tvar compare = !a.compareDocumentPosition - !b.compareDocumentPosition;\n\t\tif ( compare ) {\n\t\t\treturn compare;\n\t\t}\n\n\t\t// Calculate position if both inputs belong to the same document\n\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t// two documents; shallow comparisons work.\n\t\t// eslint-disable-next-line eqeqeq\n\t\tcompare = ( a.ownerDocument || a ) == ( b.ownerDocument || b ) ?\n\t\t\ta.compareDocumentPosition( b ) :\n\n\t\t\t// Otherwise we know they are disconnected\n\t\t\t1;\n\n\t\t// Disconnected nodes\n\t\tif ( compare & 1 ||\n\t\t\t( !support.sortDetached && b.compareDocumentPosition( a ) === compare ) ) {\n\n\t\t\t// Choose the first element that is related to our preferred document\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\tif ( a === document || a.ownerDocument == preferredDoc &&\n\t\t\t\tfind.contains( preferredDoc, a ) ) {\n\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\tif ( b === document || b.ownerDocument == preferredDoc &&\n\t\t\t\tfind.contains( preferredDoc, b ) ) {\n\t\t\t\treturn 1;\n\t\t\t}\n\n\t\t\t// Maintain original order\n\t\t\treturn sortInput ?\n\t\t\t\t( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :\n\t\t\t\t0;\n\t\t}\n\n\t\treturn compare & 4 ? -1 : 1;\n\t};\n\n\treturn document;\n}\n\nfind.matches = function( expr, elements ) {\n\treturn find( expr, null, null, elements );\n};\n\nfind.matchesSelector = function( elem, expr ) {\n\tsetDocument( elem );\n\n\tif ( documentIsHTML &&\n\t\t!nonnativeSelectorCache[ expr + \" \" ] &&\n\t\t( !rbuggyQSA || !rbuggyQSA.test( expr ) ) ) {\n\n\t\ttry {\n\t\t\tvar ret = matches.call( elem, expr );\n\n\t\t\t// IE 9's matchesSelector returns false on disconnected nodes\n\t\t\tif ( ret || support.disconnectedMatch ||\n\n\t\t\t\t\t// As well, disconnected nodes are said to be in a document\n\t\t\t\t\t// fragment in IE 9\n\t\t\t\t\telem.document && elem.document.nodeType !== 11 ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\t\t} catch ( e ) {\n\t\t\tnonnativeSelectorCache( expr, true );\n\t\t}\n\t}\n\n\treturn find( expr, document, null, [ elem ] ).length > 0;\n};\n\nfind.contains = function( context, elem ) {\n\n\t// Set document vars if needed\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( ( context.ownerDocument || context ) != document ) {\n\t\tsetDocument( context );\n\t}\n\treturn jQuery.contains( context, elem );\n};\n\n\nfind.attr = function( elem, name ) {\n\n\t// Set document vars if needed\n\t// Support: IE 11+, Edge 17 - 18+\n\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t// two documents; shallow comparisons work.\n\t// eslint-disable-next-line eqeqeq\n\tif ( ( elem.ownerDocument || elem ) != document ) {\n\t\tsetDocument( elem );\n\t}\n\n\tvar fn = Expr.attrHandle[ name.toLowerCase() ],\n\n\t\t// Don't get fooled by Object.prototype properties (see trac-13807)\n\t\tval = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?\n\t\t\tfn( elem, name, !documentIsHTML ) :\n\t\t\tundefined;\n\n\tif ( val !== undefined ) {\n\t\treturn val;\n\t}\n\n\treturn elem.getAttribute( name );\n};\n\nfind.error = function( msg ) {\n\tthrow new Error( \"Syntax error, unrecognized expression: \" + msg );\n};\n\n/**\n * Document sorting and removing duplicates\n * @param {ArrayLike} results\n */\njQuery.uniqueSort = function( results ) {\n\tvar elem,\n\t\tduplicates = [],\n\t\tj = 0,\n\t\ti = 0;\n\n\t// Unless we *know* we can detect duplicates, assume their presence\n\t//\n\t// Support: Android <=4.0+\n\t// Testing for detecting duplicates is unpredictable so instead assume we can't\n\t// depend on duplicate detection in all browsers without a stable sort.\n\thasDuplicate = !support.sortStable;\n\tsortInput = !support.sortStable && slice.call( results, 0 );\n\tsort.call( results, sortOrder );\n\n\tif ( hasDuplicate ) {\n\t\twhile ( ( elem = results[ i++ ] ) ) {\n\t\t\tif ( elem === results[ i ] ) {\n\t\t\t\tj = duplicates.push( i );\n\t\t\t}\n\t\t}\n\t\twhile ( j-- ) {\n\t\t\tsplice.call( results, duplicates[ j ], 1 );\n\t\t}\n\t}\n\n\t// Clear input after sorting to release objects\n\t// See https://github.com/jquery/sizzle/pull/225\n\tsortInput = null;\n\n\treturn results;\n};\n\njQuery.fn.uniqueSort = function() {\n\treturn this.pushStack( jQuery.uniqueSort( slice.apply( this ) ) );\n};\n\nExpr = jQuery.expr = {\n\n\t// Can be adjusted by the user\n\tcacheLength: 50,\n\n\tcreatePseudo: markFunction,\n\n\tmatch: matchExpr,\n\n\tattrHandle: {},\n\n\tfind: {},\n\n\trelative: {\n\t\t\">\": { dir: \"parentNode\", first: true },\n\t\t\" \": { dir: \"parentNode\" },\n\t\t\"+\": { dir: \"previousSibling\", first: true },\n\t\t\"~\": { dir: \"previousSibling\" }\n\t},\n\n\tpreFilter: {\n\t\tATTR: function( match ) {\n\t\t\tmatch[ 1 ] = match[ 1 ].replace( runescape, funescape );\n\n\t\t\t// Move the given value to match[3] whether quoted or unquoted\n\t\t\tmatch[ 3 ] = ( match[ 3 ] || match[ 4 ] || match[ 5 ] || \"\" )\n\t\t\t\t.replace( runescape, funescape );\n\n\t\t\tif ( match[ 2 ] === \"~=\" ) {\n\t\t\t\tmatch[ 3 ] = \" \" + match[ 3 ] + \" \";\n\t\t\t}\n\n\t\t\treturn match.slice( 0, 4 );\n\t\t},\n\n\t\tCHILD: function( match ) {\n\n\t\t\t/* matches from matchExpr[\"CHILD\"]\n\t\t\t\t1 type (only|nth|...)\n\t\t\t\t2 what (child|of-type)\n\t\t\t\t3 argument (even|odd|\\d*|\\d*n([+-]\\d+)?|...)\n\t\t\t\t4 xn-component of xn+y argument ([+-]?\\d*n|)\n\t\t\t\t5 sign of xn-component\n\t\t\t\t6 x of xn-component\n\t\t\t\t7 sign of y-component\n\t\t\t\t8 y of y-component\n\t\t\t*/\n\t\t\tmatch[ 1 ] = match[ 1 ].toLowerCase();\n\n\t\t\tif ( match[ 1 ].slice( 0, 3 ) === \"nth\" ) {\n\n\t\t\t\t// nth-* requires argument\n\t\t\t\tif ( !match[ 3 ] ) {\n\t\t\t\t\tfind.error( match[ 0 ] );\n\t\t\t\t}\n\n\t\t\t\t// numeric x and y parameters for Expr.filter.CHILD\n\t\t\t\t// remember that false/true cast respectively to 0/1\n\t\t\t\tmatch[ 4 ] = +( match[ 4 ] ?\n\t\t\t\t\tmatch[ 5 ] + ( match[ 6 ] || 1 ) :\n\t\t\t\t\t2 * ( match[ 3 ] === \"even\" || match[ 3 ] === \"odd\" )\n\t\t\t\t);\n\t\t\t\tmatch[ 5 ] = +( ( match[ 7 ] + match[ 8 ] ) || match[ 3 ] === \"odd\" );\n\n\t\t\t// other types prohibit arguments\n\t\t\t} else if ( match[ 3 ] ) {\n\t\t\t\tfind.error( match[ 0 ] );\n\t\t\t}\n\n\t\t\treturn match;\n\t\t},\n\n\t\tPSEUDO: function( match ) {\n\t\t\tvar excess,\n\t\t\t\tunquoted = !match[ 6 ] && match[ 2 ];\n\n\t\t\tif ( matchExpr.CHILD.test( match[ 0 ] ) ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t// Accept quoted arguments as-is\n\t\t\tif ( match[ 3 ] ) {\n\t\t\t\tmatch[ 2 ] = match[ 4 ] || match[ 5 ] || \"\";\n\n\t\t\t// Strip excess characters from unquoted arguments\n\t\t\t} else if ( unquoted && rpseudo.test( unquoted ) &&\n\n\t\t\t\t// Get excess from tokenize (recursively)\n\t\t\t\t( excess = tokenize( unquoted, true ) ) &&\n\n\t\t\t\t// advance to the next closing parenthesis\n\t\t\t\t( excess = unquoted.indexOf( \")\", unquoted.length - excess ) - unquoted.length ) ) {\n\n\t\t\t\t// excess is a negative index\n\t\t\t\tmatch[ 0 ] = match[ 0 ].slice( 0, excess );\n\t\t\t\tmatch[ 2 ] = unquoted.slice( 0, excess );\n\t\t\t}\n\n\t\t\t// Return only captures needed by the pseudo filter method (type and argument)\n\t\t\treturn match.slice( 0, 3 );\n\t\t}\n\t},\n\n\tfilter: {\n\n\t\tTAG: function( nodeNameSelector ) {\n\t\t\tvar expectedNodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn nodeNameSelector === \"*\" ?\n\t\t\t\tfunction() {\n\t\t\t\t\treturn true;\n\t\t\t\t} :\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn nodeName( elem, expectedNodeName );\n\t\t\t\t};\n\t\t},\n\n\t\tCLASS: function( className ) {\n\t\t\tvar pattern = classCache[ className + \" \" ];\n\n\t\t\treturn pattern ||\n\t\t\t\t( pattern = new RegExp( \"(^|\" + whitespace + \")\" + className +\n\t\t\t\t\t\"(\" + whitespace + \"|$)\" ) ) &&\n\t\t\t\tclassCache( className, function( elem ) {\n\t\t\t\t\treturn pattern.test(\n\t\t\t\t\t\ttypeof elem.className === \"string\" && elem.className ||\n\t\t\t\t\t\t\ttypeof elem.getAttribute !== \"undefined\" &&\n\t\t\t\t\t\t\t\telem.getAttribute( \"class\" ) ||\n\t\t\t\t\t\t\t\"\"\n\t\t\t\t\t);\n\t\t\t\t} );\n\t\t},\n\n\t\tATTR: function( name, operator, check ) {\n\t\t\treturn function( elem ) {\n\t\t\t\tvar result = find.attr( elem, name );\n\n\t\t\t\tif ( result == null ) {\n\t\t\t\t\treturn operator === \"!=\";\n\t\t\t\t}\n\t\t\t\tif ( !operator ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tresult += \"\";\n\n\t\t\t\tif ( operator === \"=\" ) {\n\t\t\t\t\treturn result === check;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"!=\" ) {\n\t\t\t\t\treturn result !== check;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"^=\" ) {\n\t\t\t\t\treturn check && result.indexOf( check ) === 0;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"*=\" ) {\n\t\t\t\t\treturn check && result.indexOf( check ) > -1;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"$=\" ) {\n\t\t\t\t\treturn check && result.slice( -check.length ) === check;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"~=\" ) {\n\t\t\t\t\treturn ( \" \" + result.replace( rwhitespace, \" \" ) + \" \" )\n\t\t\t\t\t\t.indexOf( check ) > -1;\n\t\t\t\t}\n\t\t\t\tif ( operator === \"|=\" ) {\n\t\t\t\t\treturn result === check || result.slice( 0, check.length + 1 ) === check + \"-\";\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\t\t\t};\n\t\t},\n\n\t\tCHILD: function( type, what, _argument, first, last ) {\n\t\t\tvar simple = type.slice( 0, 3 ) !== \"nth\",\n\t\t\t\tforward = type.slice( -4 ) !== \"last\",\n\t\t\t\tofType = what === \"of-type\";\n\n\t\t\treturn first === 1 && last === 0 ?\n\n\t\t\t\t// Shortcut for :nth-*(n)\n\t\t\t\tfunction( elem ) {\n\t\t\t\t\treturn !!elem.parentNode;\n\t\t\t\t} :\n\n\t\t\t\tfunction( elem, _context, xml ) {\n\t\t\t\t\tvar cache, outerCache, node, nodeIndex, start,\n\t\t\t\t\t\tdir = simple !== forward ? \"nextSibling\" : \"previousSibling\",\n\t\t\t\t\t\tparent = elem.parentNode,\n\t\t\t\t\t\tname = ofType && elem.nodeName.toLowerCase(),\n\t\t\t\t\t\tuseCache = !xml && !ofType,\n\t\t\t\t\t\tdiff = false;\n\n\t\t\t\t\tif ( parent ) {\n\n\t\t\t\t\t\t// :(first|last|only)-(child|of-type)\n\t\t\t\t\t\tif ( simple ) {\n\t\t\t\t\t\t\twhile ( dir ) {\n\t\t\t\t\t\t\t\tnode = elem;\n\t\t\t\t\t\t\t\twhile ( ( node = node[ dir ] ) ) {\n\t\t\t\t\t\t\t\t\tif ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnodeName( node, name ) :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) {\n\n\t\t\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t// Reverse direction for :only-* (if we haven't yet done so)\n\t\t\t\t\t\t\t\tstart = dir = type === \"only\" && !start && \"nextSibling\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tstart = [ forward ? parent.firstChild : parent.lastChild ];\n\n\t\t\t\t\t\t// non-xml :nth-child(...) stores cache data on `parent`\n\t\t\t\t\t\tif ( forward && useCache ) {\n\n\t\t\t\t\t\t\t// Seek `elem` from a previously-cached index\n\t\t\t\t\t\t\touterCache = parent[ expando ] || ( parent[ expando ] = {} );\n\t\t\t\t\t\t\tcache = outerCache[ type ] || [];\n\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\tdiff = nodeIndex && cache[ 2 ];\n\t\t\t\t\t\t\tnode = nodeIndex && parent.childNodes[ nodeIndex ];\n\n\t\t\t\t\t\t\twhile ( ( node = ++nodeIndex && node && node[ dir ] ||\n\n\t\t\t\t\t\t\t\t// Fallback to seeking `elem` from the start\n\t\t\t\t\t\t\t\t( diff = nodeIndex = 0 ) || start.pop() ) ) {\n\n\t\t\t\t\t\t\t\t// When found, cache indexes on `parent` and break\n\t\t\t\t\t\t\t\tif ( node.nodeType === 1 && ++diff && node === elem ) {\n\t\t\t\t\t\t\t\t\touterCache[ type ] = [ dirruns, nodeIndex, diff ];\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Use previously-cached element index if available\n\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\touterCache = elem[ expando ] || ( elem[ expando ] = {} );\n\t\t\t\t\t\t\t\tcache = outerCache[ type ] || [];\n\t\t\t\t\t\t\t\tnodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];\n\t\t\t\t\t\t\t\tdiff = nodeIndex;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// xml :nth-child(...)\n\t\t\t\t\t\t\t// or :nth-last-child(...) or :nth(-last)?-of-type(...)\n\t\t\t\t\t\t\tif ( diff === false ) {\n\n\t\t\t\t\t\t\t\t// Use the same loop as above to seek `elem` from the start\n\t\t\t\t\t\t\t\twhile ( ( node = ++nodeIndex && node && node[ dir ] ||\n\t\t\t\t\t\t\t\t\t( diff = nodeIndex = 0 ) || start.pop() ) ) {\n\n\t\t\t\t\t\t\t\t\tif ( ( ofType ?\n\t\t\t\t\t\t\t\t\t\tnodeName( node, name ) :\n\t\t\t\t\t\t\t\t\t\tnode.nodeType === 1 ) &&\n\t\t\t\t\t\t\t\t\t\t++diff ) {\n\n\t\t\t\t\t\t\t\t\t\t// Cache the index of each encountered element\n\t\t\t\t\t\t\t\t\t\tif ( useCache ) {\n\t\t\t\t\t\t\t\t\t\t\touterCache = node[ expando ] ||\n\t\t\t\t\t\t\t\t\t\t\t\t( node[ expando ] = {} );\n\t\t\t\t\t\t\t\t\t\t\touterCache[ type ] = [ dirruns, diff ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tif ( node === elem ) {\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Incorporate the offset, then check against cycle size\n\t\t\t\t\t\tdiff -= last;\n\t\t\t\t\t\treturn diff === first || ( diff % first === 0 && diff / first >= 0 );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t},\n\n\t\tPSEUDO: function( pseudo, argument ) {\n\n\t\t\t// pseudo-class names are case-insensitive\n\t\t\t// https://www.w3.org/TR/selectors/#pseudo-classes\n\t\t\t// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters\n\t\t\t// Remember that setFilters inherits from pseudos\n\t\t\tvar args,\n\t\t\t\tfn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||\n\t\t\t\t\tfind.error( \"unsupported pseudo: \" + pseudo );\n\n\t\t\t// The user may use createPseudo to indicate that\n\t\t\t// arguments are needed to create the filter function\n\t\t\t// just as jQuery does\n\t\t\tif ( fn[ expando ] ) {\n\t\t\t\treturn fn( argument );\n\t\t\t}\n\n\t\t\t// But maintain support for old signatures\n\t\t\tif ( fn.length > 1 ) {\n\t\t\t\targs = [ pseudo, pseudo, \"\", argument ];\n\t\t\t\treturn Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?\n\t\t\t\t\tmarkFunction( function( seed, matches ) {\n\t\t\t\t\t\tvar idx,\n\t\t\t\t\t\t\tmatched = fn( seed, argument ),\n\t\t\t\t\t\t\ti = matched.length;\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tidx = indexOf.call( seed, matched[ i ] );\n\t\t\t\t\t\t\tseed[ idx ] = !( matches[ idx ] = matched[ i ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} ) :\n\t\t\t\t\tfunction( elem ) {\n\t\t\t\t\t\treturn fn( elem, 0, args );\n\t\t\t\t\t};\n\t\t\t}\n\n\t\t\treturn fn;\n\t\t}\n\t},\n\n\tpseudos: {\n\n\t\t// Potentially complex pseudos\n\t\tnot: markFunction( function( selector ) {\n\n\t\t\t// Trim the selector passed to compile\n\t\t\t// to avoid treating leading and trailing\n\t\t\t// spaces as combinators\n\t\t\tvar input = [],\n\t\t\t\tresults = [],\n\t\t\t\tmatcher = compile( selector.replace( rtrimCSS, \"$1\" ) );\n\n\t\t\treturn matcher[ expando ] ?\n\t\t\t\tmarkFunction( function( seed, matches, _context, xml ) {\n\t\t\t\t\tvar elem,\n\t\t\t\t\t\tunmatched = matcher( seed, null, xml, [] ),\n\t\t\t\t\t\ti = seed.length;\n\n\t\t\t\t\t// Match elements unmatched by `matcher`\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( ( elem = unmatched[ i ] ) ) {\n\t\t\t\t\t\t\tseed[ i ] = !( matches[ i ] = elem );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} ) :\n\t\t\t\tfunction( elem, _context, xml ) {\n\t\t\t\t\tinput[ 0 ] = elem;\n\t\t\t\t\tmatcher( input, null, xml, results );\n\n\t\t\t\t\t// Don't keep the element\n\t\t\t\t\t// (see https://github.com/jquery/sizzle/issues/299)\n\t\t\t\t\tinput[ 0 ] = null;\n\t\t\t\t\treturn !results.pop();\n\t\t\t\t};\n\t\t} ),\n\n\t\thas: markFunction( function( selector ) {\n\t\t\treturn function( elem ) {\n\t\t\t\treturn find( selector, elem ).length > 0;\n\t\t\t};\n\t\t} ),\n\n\t\tcontains: markFunction( function( text ) {\n\t\t\ttext = text.replace( runescape, funescape );\n\t\t\treturn function( elem ) {\n\t\t\t\treturn ( elem.textContent || jQuery.text( elem ) ).indexOf( text ) > -1;\n\t\t\t};\n\t\t} ),\n\n\t\t// \"Whether an element is represented by a :lang() selector\n\t\t// is based solely on the element's language value\n\t\t// being equal to the identifier C,\n\t\t// or beginning with the identifier C immediately followed by \"-\".\n\t\t// The matching of C against the element's language value is performed case-insensitively.\n\t\t// The identifier C does not have to be a valid language name.\"\n\t\t// https://www.w3.org/TR/selectors/#lang-pseudo\n\t\tlang: markFunction( function( lang ) {\n\n\t\t\t// lang value must be a valid identifier\n\t\t\tif ( !ridentifier.test( lang || \"\" ) ) {\n\t\t\t\tfind.error( \"unsupported lang: \" + lang );\n\t\t\t}\n\t\t\tlang = lang.replace( runescape, funescape ).toLowerCase();\n\t\t\treturn function( elem ) {\n\t\t\t\tvar elemLang;\n\t\t\t\tdo {\n\t\t\t\t\tif ( ( elemLang = documentIsHTML ?\n\t\t\t\t\t\telem.lang :\n\t\t\t\t\t\telem.getAttribute( \"xml:lang\" ) || elem.getAttribute( \"lang\" ) ) ) {\n\n\t\t\t\t\t\telemLang = elemLang.toLowerCase();\n\t\t\t\t\t\treturn elemLang === lang || elemLang.indexOf( lang + \"-\" ) === 0;\n\t\t\t\t\t}\n\t\t\t\t} while ( ( elem = elem.parentNode ) && elem.nodeType === 1 );\n\t\t\t\treturn false;\n\t\t\t};\n\t\t} ),\n\n\t\t// Miscellaneous\n\t\ttarget: function( elem ) {\n\t\t\tvar hash = window.location && window.location.hash;\n\t\t\treturn hash && hash.slice( 1 ) === elem.id;\n\t\t},\n\n\t\troot: function( elem ) {\n\t\t\treturn elem === documentElement;\n\t\t},\n\n\t\tfocus: function( elem ) {\n\t\t\treturn elem === safeActiveElement() &&\n\t\t\t\tdocument.hasFocus() &&\n\t\t\t\t!!( elem.type || elem.href || ~elem.tabIndex );\n\t\t},\n\n\t\t// Boolean properties\n\t\tenabled: createDisabledPseudo( false ),\n\t\tdisabled: createDisabledPseudo( true ),\n\n\t\tchecked: function( elem ) {\n\n\t\t\t// In CSS3, :checked should return both checked and selected elements\n\t\t\t// https://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked\n\t\t\treturn ( nodeName( elem, \"input\" ) && !!elem.checked ) ||\n\t\t\t\t( nodeName( elem, \"option\" ) && !!elem.selected );\n\t\t},\n\n\t\tselected: function( elem ) {\n\n\t\t\t// Support: IE <=11+\n\t\t\t// Accessing the selectedIndex property\n\t\t\t// forces the browser to treat the default option as\n\t\t\t// selected when in an optgroup.\n\t\t\tif ( elem.parentNode ) {\n\t\t\t\t// eslint-disable-next-line no-unused-expressions\n\t\t\t\telem.parentNode.selectedIndex;\n\t\t\t}\n\n\t\t\treturn elem.selected === true;\n\t\t},\n\n\t\t// Contents\n\t\tempty: function( elem ) {\n\n\t\t\t// https://www.w3.org/TR/selectors/#empty-pseudo\n\t\t\t// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),\n\t\t\t//   but not by others (comment: 8; processing instruction: 7; etc.)\n\t\t\t// nodeType < 6 works because attributes (2) do not appear as children\n\t\t\tfor ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {\n\t\t\t\tif ( elem.nodeType < 6 ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t},\n\n\t\tparent: function( elem ) {\n\t\t\treturn !Expr.pseudos.empty( elem );\n\t\t},\n\n\t\t// Element/input types\n\t\theader: function( elem ) {\n\t\t\treturn rheader.test( elem.nodeName );\n\t\t},\n\n\t\tinput: function( elem ) {\n\t\t\treturn rinputs.test( elem.nodeName );\n\t\t},\n\n\t\tbutton: function( elem ) {\n\t\t\treturn nodeName( elem, \"input\" ) && elem.type === \"button\" ||\n\t\t\t\tnodeName( elem, \"button\" );\n\t\t},\n\n\t\ttext: function( elem ) {\n\t\t\tvar attr;\n\t\t\treturn nodeName( elem, \"input\" ) && elem.type === \"text\" &&\n\n\t\t\t\t// Support: IE <10 only\n\t\t\t\t// New HTML5 attribute values (e.g., \"search\") appear\n\t\t\t\t// with elem.type === \"text\"\n\t\t\t\t( ( attr = elem.getAttribute( \"type\" ) ) == null ||\n\t\t\t\t\tattr.toLowerCase() === \"text\" );\n\t\t},\n\n\t\t// Position-in-collection\n\t\tfirst: createPositionalPseudo( function() {\n\t\t\treturn [ 0 ];\n\t\t} ),\n\n\t\tlast: createPositionalPseudo( function( _matchIndexes, length ) {\n\t\t\treturn [ length - 1 ];\n\t\t} ),\n\n\t\teq: createPositionalPseudo( function( _matchIndexes, length, argument ) {\n\t\t\treturn [ argument < 0 ? argument + length : argument ];\n\t\t} ),\n\n\t\teven: createPositionalPseudo( function( matchIndexes, length ) {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\todd: createPositionalPseudo( function( matchIndexes, length ) {\n\t\t\tvar i = 1;\n\t\t\tfor ( ; i < length; i += 2 ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\tlt: createPositionalPseudo( function( matchIndexes, length, argument ) {\n\t\t\tvar i;\n\n\t\t\tif ( argument < 0 ) {\n\t\t\t\ti = argument + length;\n\t\t\t} else if ( argument > length ) {\n\t\t\t\ti = length;\n\t\t\t} else {\n\t\t\t\ti = argument;\n\t\t\t}\n\n\t\t\tfor ( ; --i >= 0; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} ),\n\n\t\tgt: createPositionalPseudo( function( matchIndexes, length, argument ) {\n\t\t\tvar i = argument < 0 ? argument + length : argument;\n\t\t\tfor ( ; ++i < length; ) {\n\t\t\t\tmatchIndexes.push( i );\n\t\t\t}\n\t\t\treturn matchIndexes;\n\t\t} )\n\t}\n};\n\nExpr.pseudos.nth = Expr.pseudos.eq;\n\n// Add button/input type pseudos\nfor ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {\n\tExpr.pseudos[ i ] = createInputPseudo( i );\n}\nfor ( i in { submit: true, reset: true } ) {\n\tExpr.pseudos[ i ] = createButtonPseudo( i );\n}\n\n// Easy API for creating new setFilters\nfunction setFilters() {}\nsetFilters.prototype = Expr.filters = Expr.pseudos;\nExpr.setFilters = new setFilters();\n\nfunction tokenize( selector, parseOnly ) {\n\tvar matched, match, tokens, type,\n\t\tsoFar, groups, preFilters,\n\t\tcached = tokenCache[ selector + \" \" ];\n\n\tif ( cached ) {\n\t\treturn parseOnly ? 0 : cached.slice( 0 );\n\t}\n\n\tsoFar = selector;\n\tgroups = [];\n\tpreFilters = Expr.preFilter;\n\n\twhile ( soFar ) {\n\n\t\t// Comma and first run\n\t\tif ( !matched || ( match = rcomma.exec( soFar ) ) ) {\n\t\t\tif ( match ) {\n\n\t\t\t\t// Don't consume trailing commas as valid\n\t\t\t\tsoFar = soFar.slice( match[ 0 ].length ) || soFar;\n\t\t\t}\n\t\t\tgroups.push( ( tokens = [] ) );\n\t\t}\n\n\t\tmatched = false;\n\n\t\t// Combinators\n\t\tif ( ( match = rleadingCombinator.exec( soFar ) ) ) {\n\t\t\tmatched = match.shift();\n\t\t\ttokens.push( {\n\t\t\t\tvalue: matched,\n\n\t\t\t\t// Cast descendant combinators to space\n\t\t\t\ttype: match[ 0 ].replace( rtrimCSS, \" \" )\n\t\t\t} );\n\t\t\tsoFar = soFar.slice( matched.length );\n\t\t}\n\n\t\t// Filters\n\t\tfor ( type in Expr.filter ) {\n\t\t\tif ( ( match = matchExpr[ type ].exec( soFar ) ) && ( !preFilters[ type ] ||\n\t\t\t\t( match = preFilters[ type ]( match ) ) ) ) {\n\t\t\t\tmatched = match.shift();\n\t\t\t\ttokens.push( {\n\t\t\t\t\tvalue: matched,\n\t\t\t\t\ttype: type,\n\t\t\t\t\tmatches: match\n\t\t\t\t} );\n\t\t\t\tsoFar = soFar.slice( matched.length );\n\t\t\t}\n\t\t}\n\n\t\tif ( !matched ) {\n\t\t\tbreak;\n\t\t}\n\t}\n\n\t// Return the length of the invalid excess\n\t// if we're just parsing\n\t// Otherwise, throw an error or return tokens\n\tif ( parseOnly ) {\n\t\treturn soFar.length;\n\t}\n\n\treturn soFar ?\n\t\tfind.error( selector ) :\n\n\t\t// Cache the tokens\n\t\ttokenCache( selector, groups ).slice( 0 );\n}\n\nfunction toSelector( tokens ) {\n\tvar i = 0,\n\t\tlen = tokens.length,\n\t\tselector = \"\";\n\tfor ( ; i < len; i++ ) {\n\t\tselector += tokens[ i ].value;\n\t}\n\treturn selector;\n}\n\nfunction addCombinator( matcher, combinator, base ) {\n\tvar dir = combinator.dir,\n\t\tskip = combinator.next,\n\t\tkey = skip || dir,\n\t\tcheckNonElements = base && key === \"parentNode\",\n\t\tdoneName = done++;\n\n\treturn combinator.first ?\n\n\t\t// Check against closest ancestor/preceding element\n\t\tfunction( elem, context, xml ) {\n\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\treturn matcher( elem, context, xml );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t} :\n\n\t\t// Check against all ancestor/preceding elements\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar oldCache, outerCache,\n\t\t\t\tnewCache = [ dirruns, doneName ];\n\n\t\t\t// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching\n\t\t\tif ( xml ) {\n\t\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\tif ( matcher( elem, context, xml ) ) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\twhile ( ( elem = elem[ dir ] ) ) {\n\t\t\t\t\tif ( elem.nodeType === 1 || checkNonElements ) {\n\t\t\t\t\t\touterCache = elem[ expando ] || ( elem[ expando ] = {} );\n\n\t\t\t\t\t\tif ( skip && nodeName( elem, skip ) ) {\n\t\t\t\t\t\t\telem = elem[ dir ] || elem;\n\t\t\t\t\t\t} else if ( ( oldCache = outerCache[ key ] ) &&\n\t\t\t\t\t\t\toldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {\n\n\t\t\t\t\t\t\t// Assign to newCache so results back-propagate to previous elements\n\t\t\t\t\t\t\treturn ( newCache[ 2 ] = oldCache[ 2 ] );\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Reuse newcache so results back-propagate to previous elements\n\t\t\t\t\t\t\touterCache[ key ] = newCache;\n\n\t\t\t\t\t\t\t// A match means we're done; a fail means we have to keep checking\n\t\t\t\t\t\t\tif ( ( newCache[ 2 ] = matcher( elem, context, xml ) ) ) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n}\n\nfunction elementMatcher( matchers ) {\n\treturn matchers.length > 1 ?\n\t\tfunction( elem, context, xml ) {\n\t\t\tvar i = matchers.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( !matchers[ i ]( elem, context, xml ) ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t} :\n\t\tmatchers[ 0 ];\n}\n\nfunction multipleContexts( selector, contexts, results ) {\n\tvar i = 0,\n\t\tlen = contexts.length;\n\tfor ( ; i < len; i++ ) {\n\t\tfind( selector, contexts[ i ], results );\n\t}\n\treturn results;\n}\n\nfunction condense( unmatched, map, filter, context, xml ) {\n\tvar elem,\n\t\tnewUnmatched = [],\n\t\ti = 0,\n\t\tlen = unmatched.length,\n\t\tmapped = map != null;\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( ( elem = unmatched[ i ] ) ) {\n\t\t\tif ( !filter || filter( elem, context, xml ) ) {\n\t\t\t\tnewUnmatched.push( elem );\n\t\t\t\tif ( mapped ) {\n\t\t\t\t\tmap.push( i );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn newUnmatched;\n}\n\nfunction setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {\n\tif ( postFilter && !postFilter[ expando ] ) {\n\t\tpostFilter = setMatcher( postFilter );\n\t}\n\tif ( postFinder && !postFinder[ expando ] ) {\n\t\tpostFinder = setMatcher( postFinder, postSelector );\n\t}\n\treturn markFunction( function( seed, results, context, xml ) {\n\t\tvar temp, i, elem, matcherOut,\n\t\t\tpreMap = [],\n\t\t\tpostMap = [],\n\t\t\tpreexisting = results.length,\n\n\t\t\t// Get initial elements from seed or context\n\t\t\telems = seed ||\n\t\t\t\tmultipleContexts( selector || \"*\",\n\t\t\t\t\tcontext.nodeType ? [ context ] : context, [] ),\n\n\t\t\t// Prefilter to get matcher input, preserving a map for seed-results synchronization\n\t\t\tmatcherIn = preFilter && ( seed || !selector ) ?\n\t\t\t\tcondense( elems, preMap, preFilter, context, xml ) :\n\t\t\t\telems;\n\n\t\tif ( matcher ) {\n\n\t\t\t// If we have a postFinder, or filtered seed, or non-seed postFilter\n\t\t\t// or preexisting results,\n\t\t\tmatcherOut = postFinder || ( seed ? preFilter : preexisting || postFilter ) ?\n\n\t\t\t\t// ...intermediate processing is necessary\n\t\t\t\t[] :\n\n\t\t\t\t// ...otherwise use results directly\n\t\t\t\tresults;\n\n\t\t\t// Find primary matches\n\t\t\tmatcher( matcherIn, matcherOut, context, xml );\n\t\t} else {\n\t\t\tmatcherOut = matcherIn;\n\t\t}\n\n\t\t// Apply postFilter\n\t\tif ( postFilter ) {\n\t\t\ttemp = condense( matcherOut, postMap );\n\t\t\tpostFilter( temp, [], context, xml );\n\n\t\t\t// Un-match failing elements by moving them back to matcherIn\n\t\t\ti = temp.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tif ( ( elem = temp[ i ] ) ) {\n\t\t\t\t\tmatcherOut[ postMap[ i ] ] = !( matcherIn[ postMap[ i ] ] = elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( seed ) {\n\t\t\tif ( postFinder || preFilter ) {\n\t\t\t\tif ( postFinder ) {\n\n\t\t\t\t\t// Get the final matcherOut by condensing this intermediate into postFinder contexts\n\t\t\t\t\ttemp = [];\n\t\t\t\t\ti = matcherOut.length;\n\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\tif ( ( elem = matcherOut[ i ] ) ) {\n\n\t\t\t\t\t\t\t// Restore matcherIn since elem is not yet a final match\n\t\t\t\t\t\t\ttemp.push( ( matcherIn[ i ] = elem ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpostFinder( null, ( matcherOut = [] ), temp, xml );\n\t\t\t\t}\n\n\t\t\t\t// Move matched elements from seed to results to keep them synchronized\n\t\t\t\ti = matcherOut.length;\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\tif ( ( elem = matcherOut[ i ] ) &&\n\t\t\t\t\t\t( temp = postFinder ? indexOf.call( seed, elem ) : preMap[ i ] ) > -1 ) {\n\n\t\t\t\t\t\tseed[ temp ] = !( results[ temp ] = elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Add elements to results, through postFinder if defined\n\t\t} else {\n\t\t\tmatcherOut = condense(\n\t\t\t\tmatcherOut === results ?\n\t\t\t\t\tmatcherOut.splice( preexisting, matcherOut.length ) :\n\t\t\t\t\tmatcherOut\n\t\t\t);\n\t\t\tif ( postFinder ) {\n\t\t\t\tpostFinder( null, results, matcherOut, xml );\n\t\t\t} else {\n\t\t\t\tpush.apply( results, matcherOut );\n\t\t\t}\n\t\t}\n\t} );\n}\n\nfunction matcherFromTokens( tokens ) {\n\tvar checkContext, matcher, j,\n\t\tlen = tokens.length,\n\t\tleadingRelative = Expr.relative[ tokens[ 0 ].type ],\n\t\timplicitRelative = leadingRelative || Expr.relative[ \" \" ],\n\t\ti = leadingRelative ? 1 : 0,\n\n\t\t// The foundational matcher ensures that elements are reachable from top-level context(s)\n\t\tmatchContext = addCombinator( function( elem ) {\n\t\t\treturn elem === checkContext;\n\t\t}, implicitRelative, true ),\n\t\tmatchAnyContext = addCombinator( function( elem ) {\n\t\t\treturn indexOf.call( checkContext, elem ) > -1;\n\t\t}, implicitRelative, true ),\n\t\tmatchers = [ function( elem, context, xml ) {\n\n\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t// two documents; shallow comparisons work.\n\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\tvar ret = ( !leadingRelative && ( xml || context != outermostContext ) ) || (\n\t\t\t\t( checkContext = context ).nodeType ?\n\t\t\t\t\tmatchContext( elem, context, xml ) :\n\t\t\t\t\tmatchAnyContext( elem, context, xml ) );\n\n\t\t\t// Avoid hanging onto element\n\t\t\t// (see https://github.com/jquery/sizzle/issues/299)\n\t\t\tcheckContext = null;\n\t\t\treturn ret;\n\t\t} ];\n\n\tfor ( ; i < len; i++ ) {\n\t\tif ( ( matcher = Expr.relative[ tokens[ i ].type ] ) ) {\n\t\t\tmatchers = [ addCombinator( elementMatcher( matchers ), matcher ) ];\n\t\t} else {\n\t\t\tmatcher = Expr.filter[ tokens[ i ].type ].apply( null, tokens[ i ].matches );\n\n\t\t\t// Return special upon seeing a positional matcher\n\t\t\tif ( matcher[ expando ] ) {\n\n\t\t\t\t// Find the next relative operator (if any) for proper handling\n\t\t\t\tj = ++i;\n\t\t\t\tfor ( ; j < len; j++ ) {\n\t\t\t\t\tif ( Expr.relative[ tokens[ j ].type ] ) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn setMatcher(\n\t\t\t\t\ti > 1 && elementMatcher( matchers ),\n\t\t\t\t\ti > 1 && toSelector(\n\n\t\t\t\t\t\t// If the preceding token was a descendant combinator, insert an implicit any-element `*`\n\t\t\t\t\t\ttokens.slice( 0, i - 1 )\n\t\t\t\t\t\t\t.concat( { value: tokens[ i - 2 ].type === \" \" ? \"*\" : \"\" } )\n\t\t\t\t\t).replace( rtrimCSS, \"$1\" ),\n\t\t\t\t\tmatcher,\n\t\t\t\t\ti < j && matcherFromTokens( tokens.slice( i, j ) ),\n\t\t\t\t\tj < len && matcherFromTokens( ( tokens = tokens.slice( j ) ) ),\n\t\t\t\t\tj < len && toSelector( tokens )\n\t\t\t\t);\n\t\t\t}\n\t\t\tmatchers.push( matcher );\n\t\t}\n\t}\n\n\treturn elementMatcher( matchers );\n}\n\nfunction matcherFromGroupMatchers( elementMatchers, setMatchers ) {\n\tvar bySet = setMatchers.length > 0,\n\t\tbyElement = elementMatchers.length > 0,\n\t\tsuperMatcher = function( seed, context, xml, results, outermost ) {\n\t\t\tvar elem, j, matcher,\n\t\t\t\tmatchedCount = 0,\n\t\t\t\ti = \"0\",\n\t\t\t\tunmatched = seed && [],\n\t\t\t\tsetMatched = [],\n\t\t\t\tcontextBackup = outermostContext,\n\n\t\t\t\t// We must always have either seed elements or outermost context\n\t\t\t\telems = seed || byElement && Expr.find.TAG( \"*\", outermost ),\n\n\t\t\t\t// Use integer dirruns iff this is the outermost matcher\n\t\t\t\tdirrunsUnique = ( dirruns += contextBackup == null ? 1 : Math.random() || 0.1 ),\n\t\t\t\tlen = elems.length;\n\n\t\t\tif ( outermost ) {\n\n\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\toutermostContext = context == document || context || outermost;\n\t\t\t}\n\n\t\t\t// Add elements passing elementMatchers directly to results\n\t\t\t// Support: iOS <=7 - 9 only\n\t\t\t// Tolerate NodeList properties (IE: \"length\"; Safari: <number>) matching\n\t\t\t// elements by id. (see trac-14142)\n\t\t\tfor ( ; i !== len && ( elem = elems[ i ] ) != null; i++ ) {\n\t\t\t\tif ( byElement && elem ) {\n\t\t\t\t\tj = 0;\n\n\t\t\t\t\t// Support: IE 11+, Edge 17 - 18+\n\t\t\t\t\t// IE/Edge sometimes throw a \"Permission denied\" error when strict-comparing\n\t\t\t\t\t// two documents; shallow comparisons work.\n\t\t\t\t\t// eslint-disable-next-line eqeqeq\n\t\t\t\t\tif ( !context && elem.ownerDocument != document ) {\n\t\t\t\t\t\tsetDocument( elem );\n\t\t\t\t\t\txml = !documentIsHTML;\n\t\t\t\t\t}\n\t\t\t\t\twhile ( ( matcher = elementMatchers[ j++ ] ) ) {\n\t\t\t\t\t\tif ( matcher( elem, context || document, xml ) ) {\n\t\t\t\t\t\t\tpush.call( results, elem );\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( outermost ) {\n\t\t\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Track unmatched elements for set filters\n\t\t\t\tif ( bySet ) {\n\n\t\t\t\t\t// They will have gone through all possible matchers\n\t\t\t\t\tif ( ( elem = !matcher && elem ) ) {\n\t\t\t\t\t\tmatchedCount--;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Lengthen the array for every element, matched or not\n\t\t\t\t\tif ( seed ) {\n\t\t\t\t\t\tunmatched.push( elem );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// `i` is now the count of elements visited above, and adding it to `matchedCount`\n\t\t\t// makes the latter nonnegative.\n\t\t\tmatchedCount += i;\n\n\t\t\t// Apply set filters to unmatched elements\n\t\t\t// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`\n\t\t\t// equals `i`), unless we didn't visit _any_ elements in the above loop because we have\n\t\t\t// no element matchers and no seed.\n\t\t\t// Incrementing an initially-string \"0\" `i` allows `i` to remain a string only in that\n\t\t\t// case, which will result in a \"00\" `matchedCount` that differs from `i` but is also\n\t\t\t// numerically zero.\n\t\t\tif ( bySet && i !== matchedCount ) {\n\t\t\t\tj = 0;\n\t\t\t\twhile ( ( matcher = setMatchers[ j++ ] ) ) {\n\t\t\t\t\tmatcher( unmatched, setMatched, context, xml );\n\t\t\t\t}\n\n\t\t\t\tif ( seed ) {\n\n\t\t\t\t\t// Reintegrate element matches to eliminate the need for sorting\n\t\t\t\t\tif ( matchedCount > 0 ) {\n\t\t\t\t\t\twhile ( i-- ) {\n\t\t\t\t\t\t\tif ( !( unmatched[ i ] || setMatched[ i ] ) ) {\n\t\t\t\t\t\t\t\tsetMatched[ i ] = pop.call( results );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Discard index placeholder values to get only actual matches\n\t\t\t\t\tsetMatched = condense( setMatched );\n\t\t\t\t}\n\n\t\t\t\t// Add matches to results\n\t\t\t\tpush.apply( results, setMatched );\n\n\t\t\t\t// Seedless set matches succeeding multiple successful matchers stipulate sorting\n\t\t\t\tif ( outermost && !seed && setMatched.length > 0 &&\n\t\t\t\t\t( matchedCount + setMatchers.length ) > 1 ) {\n\n\t\t\t\t\tjQuery.uniqueSort( results );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Override manipulation of globals by nested matchers\n\t\t\tif ( outermost ) {\n\t\t\t\tdirruns = dirrunsUnique;\n\t\t\t\toutermostContext = contextBackup;\n\t\t\t}\n\n\t\t\treturn unmatched;\n\t\t};\n\n\treturn bySet ?\n\t\tmarkFunction( superMatcher ) :\n\t\tsuperMatcher;\n}\n\nfunction compile( selector, match /* Internal Use Only */ ) {\n\tvar i,\n\t\tsetMatchers = [],\n\t\telementMatchers = [],\n\t\tcached = compilerCache[ selector + \" \" ];\n\n\tif ( !cached ) {\n\n\t\t// Generate a function of recursive functions that can be used to check each element\n\t\tif ( !match ) {\n\t\t\tmatch = tokenize( selector );\n\t\t}\n\t\ti = match.length;\n\t\twhile ( i-- ) {\n\t\t\tcached = matcherFromTokens( match[ i ] );\n\t\t\tif ( cached[ expando ] ) {\n\t\t\t\tsetMatchers.push( cached );\n\t\t\t} else {\n\t\t\t\telementMatchers.push( cached );\n\t\t\t}\n\t\t}\n\n\t\t// Cache the compiled function\n\t\tcached = compilerCache( selector,\n\t\t\tmatcherFromGroupMatchers( elementMatchers, setMatchers ) );\n\n\t\t// Save selector and tokenization\n\t\tcached.selector = selector;\n\t}\n\treturn cached;\n}\n\n/**\n * A low-level selection function that works with jQuery's compiled\n *  selector functions\n * @param {String|Function} selector A selector or a pre-compiled\n *  selector function built with jQuery selector compile\n * @param {Element} context\n * @param {Array} [results]\n * @param {Array} [seed] A set of elements to match against\n */\nfunction select( selector, context, results, seed ) {\n\tvar i, tokens, token, type, find,\n\t\tcompiled = typeof selector === \"function\" && selector,\n\t\tmatch = !seed && tokenize( ( selector = compiled.selector || selector ) );\n\n\tresults = results || [];\n\n\t// Try to minimize operations if there is only one selector in the list and no seed\n\t// (the latter of which guarantees us context)\n\tif ( match.length === 1 ) {\n\n\t\t// Reduce context if the leading compound selector is an ID\n\t\ttokens = match[ 0 ] = match[ 0 ].slice( 0 );\n\t\tif ( tokens.length > 2 && ( token = tokens[ 0 ] ).type === \"ID\" &&\n\t\t\t\tcontext.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[ 1 ].type ] ) {\n\n\t\t\tcontext = ( Expr.find.ID(\n\t\t\t\ttoken.matches[ 0 ].replace( runescape, funescape ),\n\t\t\t\tcontext\n\t\t\t) || [] )[ 0 ];\n\t\t\tif ( !context ) {\n\t\t\t\treturn results;\n\n\t\t\t// Precompiled matchers will still verify ancestry, so step up a level\n\t\t\t} else if ( compiled ) {\n\t\t\t\tcontext = context.parentNode;\n\t\t\t}\n\n\t\t\tselector = selector.slice( tokens.shift().value.length );\n\t\t}\n\n\t\t// Fetch a seed set for right-to-left matching\n\t\ti = matchExpr.needsContext.test( selector ) ? 0 : tokens.length;\n\t\twhile ( i-- ) {\n\t\t\ttoken = tokens[ i ];\n\n\t\t\t// Abort if we hit a combinator\n\t\t\tif ( Expr.relative[ ( type = token.type ) ] ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( ( find = Expr.find[ type ] ) ) {\n\n\t\t\t\t// Search, expanding context for leading sibling combinators\n\t\t\t\tif ( ( seed = find(\n\t\t\t\t\ttoken.matches[ 0 ].replace( runescape, funescape ),\n\t\t\t\t\trsibling.test( tokens[ 0 ].type ) &&\n\t\t\t\t\t\ttestContext( context.parentNode ) || context\n\t\t\t\t) ) ) {\n\n\t\t\t\t\t// If seed is empty or no tokens remain, we can return early\n\t\t\t\t\ttokens.splice( i, 1 );\n\t\t\t\t\tselector = seed.length && toSelector( tokens );\n\t\t\t\t\tif ( !selector ) {\n\t\t\t\t\t\tpush.apply( results, seed );\n\t\t\t\t\t\treturn results;\n\t\t\t\t\t}\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Compile and execute a filtering function if one is not provided\n\t// Provide `match` to avoid retokenization if we modified the selector above\n\t( compiled || compile( selector, match ) )(\n\t\tseed,\n\t\tcontext,\n\t\t!documentIsHTML,\n\t\tresults,\n\t\t!context || rsibling.test( selector ) && testContext( context.parentNode ) || context\n\t);\n\treturn results;\n}\n\n// One-time assignments\n\n// Support: Android <=4.0 - 4.1+\n// Sort stability\nsupport.sortStable = expando.split( \"\" ).sort( sortOrder ).join( \"\" ) === expando;\n\n// Initialize against the default document\nsetDocument();\n\n// Support: Android <=4.0 - 4.1+\n// Detached nodes confoundingly follow *each other*\nsupport.sortDetached = assert( function( el ) {\n\n\t// Should return 1, but returns 4 (following)\n\treturn el.compareDocumentPosition( document.createElement( \"fieldset\" ) ) & 1;\n} );\n\njQuery.find = find;\n\n// Deprecated\njQuery.expr[ \":\" ] = jQuery.expr.pseudos;\njQuery.unique = jQuery.uniqueSort;\n\n// These have always been private, but they used to be documented as part of\n// Sizzle so let's maintain them for now for backwards compatibility purposes.\nfind.compile = compile;\nfind.select = select;\nfind.setDocument = setDocument;\nfind.tokenize = tokenize;\n\nfind.escape = jQuery.escapeSelector;\nfind.getText = jQuery.text;\nfind.isXML = jQuery.isXMLDoc;\nfind.selectors = jQuery.expr;\nfind.support = jQuery.support;\nfind.uniqueSort = jQuery.uniqueSort;\n\n\t/* eslint-enable */\n\n} )();\n\n\nvar dir = function( elem, dir, until ) {\n\tvar matched = [],\n\t\ttruncate = until !== undefined;\n\n\twhile ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {\n\t\tif ( elem.nodeType === 1 ) {\n\t\t\tif ( truncate && jQuery( elem ).is( until ) ) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmatched.push( elem );\n\t\t}\n\t}\n\treturn matched;\n};\n\n\nvar siblings = function( n, elem ) {\n\tvar matched = [];\n\n\tfor ( ; n; n = n.nextSibling ) {\n\t\tif ( n.nodeType === 1 && n !== elem ) {\n\t\t\tmatched.push( n );\n\t\t}\n\t}\n\n\treturn matched;\n};\n\n\nvar rneedsContext = jQuery.expr.match.needsContext;\n\nvar rsingleTag = ( /^<([a-z][^\\/\\0>:\\x20\\t\\r\\n\\f]*)[\\x20\\t\\r\\n\\f]*\\/?>(?:<\\/\\1>|)$/i );\n\n\n\n// Implement the identical functionality for filter and not\nfunction winnow( elements, qualifier, not ) {\n\tif ( isFunction( qualifier ) ) {\n\t\treturn jQuery.grep( elements, function( elem, i ) {\n\t\t\treturn !!qualifier.call( elem, i, elem ) !== not;\n\t\t} );\n\t}\n\n\t// Single element\n\tif ( qualifier.nodeType ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( elem === qualifier ) !== not;\n\t\t} );\n\t}\n\n\t// Arraylike of elements (jQuery, arguments, Array)\n\tif ( typeof qualifier !== \"string\" ) {\n\t\treturn jQuery.grep( elements, function( elem ) {\n\t\t\treturn ( indexOf.call( qualifier, elem ) > -1 ) !== not;\n\t\t} );\n\t}\n\n\t// Filtered directly for both simple and complex selectors\n\treturn jQuery.filter( qualifier, elements, not );\n}\n\njQuery.filter = function( expr, elems, not ) {\n\tvar elem = elems[ 0 ];\n\n\tif ( not ) {\n\t\texpr = \":not(\" + expr + \")\";\n\t}\n\n\tif ( elems.length === 1 && elem.nodeType === 1 ) {\n\t\treturn jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];\n\t}\n\n\treturn jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {\n\t\treturn elem.nodeType === 1;\n\t} ) );\n};\n\njQuery.fn.extend( {\n\tfind: function( selector ) {\n\t\tvar i, ret,\n\t\t\tlen = this.length,\n\t\t\tself = this;\n\n\t\tif ( typeof selector !== \"string\" ) {\n\t\t\treturn this.pushStack( jQuery( selector ).filter( function() {\n\t\t\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\t\t\tif ( jQuery.contains( self[ i ], this ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} ) );\n\t\t}\n\n\t\tret = this.pushStack( [] );\n\n\t\tfor ( i = 0; i < len; i++ ) {\n\t\t\tjQuery.find( selector, self[ i ], ret );\n\t\t}\n\n\t\treturn len > 1 ? jQuery.uniqueSort( ret ) : ret;\n\t},\n\tfilter: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], false ) );\n\t},\n\tnot: function( selector ) {\n\t\treturn this.pushStack( winnow( this, selector || [], true ) );\n\t},\n\tis: function( selector ) {\n\t\treturn !!winnow(\n\t\t\tthis,\n\n\t\t\t// If this is a positional/relative selector, check membership in the returned set\n\t\t\t// so $(\"p:first\").is(\"p:last\") won't return true for a doc with two \"p\".\n\t\t\ttypeof selector === \"string\" && rneedsContext.test( selector ) ?\n\t\t\t\tjQuery( selector ) :\n\t\t\t\tselector || [],\n\t\t\tfalse\n\t\t).length;\n\t}\n} );\n\n\n// Initialize a jQuery object\n\n\n// A central reference to the root jQuery(document)\nvar rootjQuery,\n\n\t// A simple way to check for HTML strings\n\t// Prioritize #id over <tag> to avoid XSS via location.hash (trac-9521)\n\t// Strict HTML recognition (trac-11290: must start with <)\n\t// Shortcut simple #id case for speed\n\trquickExpr = /^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]+))$/,\n\n\tinit = jQuery.fn.init = function( selector, context, root ) {\n\t\tvar match, elem;\n\n\t\t// HANDLE: $(\"\"), $(null), $(undefined), $(false)\n\t\tif ( !selector ) {\n\t\t\treturn this;\n\t\t}\n\n\t\t// Method init() accepts an alternate rootjQuery\n\t\t// so migrate can support jQuery.sub (gh-2101)\n\t\troot = root || rootjQuery;\n\n\t\t// Handle HTML strings\n\t\tif ( typeof selector === \"string\" ) {\n\t\t\tif ( selector[ 0 ] === \"<\" &&\n\t\t\t\tselector[ selector.length - 1 ] === \">\" &&\n\t\t\t\tselector.length >= 3 ) {\n\n\t\t\t\t// Assume that strings that start and end with <> are HTML and skip the regex check\n\t\t\t\tmatch = [ null, selector, null ];\n\n\t\t\t} else {\n\t\t\t\tmatch = rquickExpr.exec( selector );\n\t\t\t}\n\n\t\t\t// Match html or make sure no context is specified for #id\n\t\t\tif ( match && ( match[ 1 ] || !context ) ) {\n\n\t\t\t\t// HANDLE: $(html) -> $(array)\n\t\t\t\tif ( match[ 1 ] ) {\n\t\t\t\t\tcontext = context instanceof jQuery ? context[ 0 ] : context;\n\n\t\t\t\t\t// Option to run scripts is true for back-compat\n\t\t\t\t\t// Intentionally let the error be thrown if parseHTML is not present\n\t\t\t\t\tjQuery.merge( this, jQuery.parseHTML(\n\t\t\t\t\t\tmatch[ 1 ],\n\t\t\t\t\t\tcontext && context.nodeType ? context.ownerDocument || context : document,\n\t\t\t\t\t\ttrue\n\t\t\t\t\t) );\n\n\t\t\t\t\t// HANDLE: $(html, props)\n\t\t\t\t\tif ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {\n\t\t\t\t\t\tfor ( match in context ) {\n\n\t\t\t\t\t\t\t// Properties of context are called as methods if possible\n\t\t\t\t\t\t\tif ( isFunction( this[ match ] ) ) {\n\t\t\t\t\t\t\t\tthis[ match ]( context[ match ] );\n\n\t\t\t\t\t\t\t// ...and otherwise set as attributes\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tthis.attr( match, context[ match ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn this;\n\n\t\t\t\t// HANDLE: $(#id)\n\t\t\t\t} else {\n\t\t\t\t\telem = document.getElementById( match[ 2 ] );\n\n\t\t\t\t\tif ( elem ) {\n\n\t\t\t\t\t\t// Inject the element directly into the jQuery object\n\t\t\t\t\t\tthis[ 0 ] = elem;\n\t\t\t\t\t\tthis.length = 1;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\n\t\t\t// HANDLE: $(expr, $(...))\n\t\t\t} else if ( !context || context.jquery ) {\n\t\t\t\treturn ( context || root ).find( selector );\n\n\t\t\t// HANDLE: $(expr, context)\n\t\t\t// (which is just equivalent to: $(context).find(expr)\n\t\t\t} else {\n\t\t\t\treturn this.constructor( context ).find( selector );\n\t\t\t}\n\n\t\t// HANDLE: $(DOMElement)\n\t\t} else if ( selector.nodeType ) {\n\t\t\tthis[ 0 ] = selector;\n\t\t\tthis.length = 1;\n\t\t\treturn this;\n\n\t\t// HANDLE: $(function)\n\t\t// Shortcut for document ready\n\t\t} else if ( isFunction( selector ) ) {\n\t\t\treturn root.ready !== undefined ?\n\t\t\t\troot.ready( selector ) :\n\n\t\t\t\t// Execute immediately if ready is not present\n\t\t\t\tselector( jQuery );\n\t\t}\n\n\t\treturn jQuery.makeArray( selector, this );\n\t};\n\n// Give the init function the jQuery prototype for later instantiation\ninit.prototype = jQuery.fn;\n\n// Initialize central reference\nrootjQuery = jQuery( document );\n\n\nvar rparentsprev = /^(?:parents|prev(?:Until|All))/,\n\n\t// Methods guaranteed to produce a unique set when starting from a unique set\n\tguaranteedUnique = {\n\t\tchildren: true,\n\t\tcontents: true,\n\t\tnext: true,\n\t\tprev: true\n\t};\n\njQuery.fn.extend( {\n\thas: function( target ) {\n\t\tvar targets = jQuery( target, this ),\n\t\t\tl = targets.length;\n\n\t\treturn this.filter( function() {\n\t\t\tvar i = 0;\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tif ( jQuery.contains( this, targets[ i ] ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t},\n\n\tclosest: function( selectors, context ) {\n\t\tvar cur,\n\t\t\ti = 0,\n\t\t\tl = this.length,\n\t\t\tmatched = [],\n\t\t\ttargets = typeof selectors !== \"string\" && jQuery( selectors );\n\n\t\t// Positional selectors never match, since there's no _selection_ context\n\t\tif ( !rneedsContext.test( selectors ) ) {\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tfor ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {\n\n\t\t\t\t\t// Always skip document fragments\n\t\t\t\t\tif ( cur.nodeType < 11 && ( targets ?\n\t\t\t\t\t\ttargets.index( cur ) > -1 :\n\n\t\t\t\t\t\t// Don't pass non-elements to jQuery#find\n\t\t\t\t\t\tcur.nodeType === 1 &&\n\t\t\t\t\t\t\tjQuery.find.matchesSelector( cur, selectors ) ) ) {\n\n\t\t\t\t\t\tmatched.push( cur );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );\n\t},\n\n\t// Determine the position of an element within the set\n\tindex: function( elem ) {\n\n\t\t// No argument, return index in parent\n\t\tif ( !elem ) {\n\t\t\treturn ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;\n\t\t}\n\n\t\t// Index in selector\n\t\tif ( typeof elem === \"string\" ) {\n\t\t\treturn indexOf.call( jQuery( elem ), this[ 0 ] );\n\t\t}\n\n\t\t// Locate the position of the desired element\n\t\treturn indexOf.call( this,\n\n\t\t\t// If it receives a jQuery object, the first element is used\n\t\t\telem.jquery ? elem[ 0 ] : elem\n\t\t);\n\t},\n\n\tadd: function( selector, context ) {\n\t\treturn this.pushStack(\n\t\t\tjQuery.uniqueSort(\n\t\t\t\tjQuery.merge( this.get(), jQuery( selector, context ) )\n\t\t\t)\n\t\t);\n\t},\n\n\taddBack: function( selector ) {\n\t\treturn this.add( selector == null ?\n\t\t\tthis.prevObject : this.prevObject.filter( selector )\n\t\t);\n\t}\n} );\n\nfunction sibling( cur, dir ) {\n\twhile ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}\n\treturn cur;\n}\n\njQuery.each( {\n\tparent: function( elem ) {\n\t\tvar parent = elem.parentNode;\n\t\treturn parent && parent.nodeType !== 11 ? parent : null;\n\t},\n\tparents: function( elem ) {\n\t\treturn dir( elem, \"parentNode\" );\n\t},\n\tparentsUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"parentNode\", until );\n\t},\n\tnext: function( elem ) {\n\t\treturn sibling( elem, \"nextSibling\" );\n\t},\n\tprev: function( elem ) {\n\t\treturn sibling( elem, \"previousSibling\" );\n\t},\n\tnextAll: function( elem ) {\n\t\treturn dir( elem, \"nextSibling\" );\n\t},\n\tprevAll: function( elem ) {\n\t\treturn dir( elem, \"previousSibling\" );\n\t},\n\tnextUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"nextSibling\", until );\n\t},\n\tprevUntil: function( elem, _i, until ) {\n\t\treturn dir( elem, \"previousSibling\", until );\n\t},\n\tsiblings: function( elem ) {\n\t\treturn siblings( ( elem.parentNode || {} ).firstChild, elem );\n\t},\n\tchildren: function( elem ) {\n\t\treturn siblings( elem.firstChild );\n\t},\n\tcontents: function( elem ) {\n\t\tif ( elem.contentDocument != null &&\n\n\t\t\t// Support: IE 11+\n\t\t\t// <object> elements with no `data` attribute has an object\n\t\t\t// `contentDocument` with a `null` prototype.\n\t\t\tgetProto( elem.contentDocument ) ) {\n\n\t\t\treturn elem.contentDocument;\n\t\t}\n\n\t\t// Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only\n\t\t// Treat the template element as a regular one in browsers that\n\t\t// don't support it.\n\t\tif ( nodeName( elem, \"template\" ) ) {\n\t\t\telem = elem.content || elem;\n\t\t}\n\n\t\treturn jQuery.merge( [], elem.childNodes );\n\t}\n}, function( name, fn ) {\n\tjQuery.fn[ name ] = function( until, selector ) {\n\t\tvar matched = jQuery.map( this, fn, until );\n\n\t\tif ( name.slice( -5 ) !== \"Until\" ) {\n\t\t\tselector = until;\n\t\t}\n\n\t\tif ( selector && typeof selector === \"string\" ) {\n\t\t\tmatched = jQuery.filter( selector, matched );\n\t\t}\n\n\t\tif ( this.length > 1 ) {\n\n\t\t\t// Remove duplicates\n\t\t\tif ( !guaranteedUnique[ name ] ) {\n\t\t\t\tjQuery.uniqueSort( matched );\n\t\t\t}\n\n\t\t\t// Reverse order for parents* and prev-derivatives\n\t\t\tif ( rparentsprev.test( name ) ) {\n\t\t\t\tmatched.reverse();\n\t\t\t}\n\t\t}\n\n\t\treturn this.pushStack( matched );\n\t};\n} );\nvar rnothtmlwhite = ( /[^\\x20\\t\\r\\n\\f]+/g );\n\n\n\n// Convert String-formatted options into Object-formatted ones\nfunction createOptions( options ) {\n\tvar object = {};\n\tjQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {\n\t\tobject[ flag ] = true;\n\t} );\n\treturn object;\n}\n\n/*\n * Create a callback list using the following parameters:\n *\n *\toptions: an optional list of space-separated options that will change how\n *\t\t\tthe callback list behaves or a more traditional option object\n *\n * By default a callback list will act like an event callback list and can be\n * \"fired\" multiple times.\n *\n * Possible options:\n *\n *\tonce:\t\t\twill ensure the callback list can only be fired once (like a Deferred)\n *\n *\tmemory:\t\t\twill keep track of previous values and will call any callback added\n *\t\t\t\t\tafter the list has been fired right away with the latest \"memorized\"\n *\t\t\t\t\tvalues (like a Deferred)\n *\n *\tunique:\t\t\twill ensure a callback can only be added once (no duplicate in the list)\n *\n *\tstopOnFalse:\tinterrupt callings when a callback returns false\n *\n */\njQuery.Callbacks = function( options ) {\n\n\t// Convert options from String-formatted to Object-formatted if needed\n\t// (we check in cache first)\n\toptions = typeof options === \"string\" ?\n\t\tcreateOptions( options ) :\n\t\tjQuery.extend( {}, options );\n\n\tvar // Flag to know if list is currently firing\n\t\tfiring,\n\n\t\t// Last fire value for non-forgettable lists\n\t\tmemory,\n\n\t\t// Flag to know if list was already fired\n\t\tfired,\n\n\t\t// Flag to prevent firing\n\t\tlocked,\n\n\t\t// Actual callback list\n\t\tlist = [],\n\n\t\t// Queue of execution data for repeatable lists\n\t\tqueue = [],\n\n\t\t// Index of currently firing callback (modified by add/remove as needed)\n\t\tfiringIndex = -1,\n\n\t\t// Fire callbacks\n\t\tfire = function() {\n\n\t\t\t// Enforce single-firing\n\t\t\tlocked = locked || options.once;\n\n\t\t\t// Execute callbacks for all pending executions,\n\t\t\t// respecting firingIndex overrides and runtime changes\n\t\t\tfired = firing = true;\n\t\t\tfor ( ; queue.length; firingIndex = -1 ) {\n\t\t\t\tmemory = queue.shift();\n\t\t\t\twhile ( ++firingIndex < list.length ) {\n\n\t\t\t\t\t// Run callback and check for early termination\n\t\t\t\t\tif ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&\n\t\t\t\t\t\toptions.stopOnFalse ) {\n\n\t\t\t\t\t\t// Jump to end and forget the data so .add doesn't re-fire\n\t\t\t\t\t\tfiringIndex = list.length;\n\t\t\t\t\t\tmemory = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Forget the data if we're done with it\n\t\t\tif ( !options.memory ) {\n\t\t\t\tmemory = false;\n\t\t\t}\n\n\t\t\tfiring = false;\n\n\t\t\t// Clean up if we're done firing for good\n\t\t\tif ( locked ) {\n\n\t\t\t\t// Keep an empty list if we have data for future add calls\n\t\t\t\tif ( memory ) {\n\t\t\t\t\tlist = [];\n\n\t\t\t\t// Otherwise, this object is spent\n\t\t\t\t} else {\n\t\t\t\t\tlist = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\n\t\t// Actual Callbacks object\n\t\tself = {\n\n\t\t\t// Add a callback or a collection of callbacks to the list\n\t\t\tadd: function() {\n\t\t\t\tif ( list ) {\n\n\t\t\t\t\t// If we have memory from a past run, we should fire after adding\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfiringIndex = list.length - 1;\n\t\t\t\t\t\tqueue.push( memory );\n\t\t\t\t\t}\n\n\t\t\t\t\t( function add( args ) {\n\t\t\t\t\t\tjQuery.each( args, function( _, arg ) {\n\t\t\t\t\t\t\tif ( isFunction( arg ) ) {\n\t\t\t\t\t\t\t\tif ( !options.unique || !self.has( arg ) ) {\n\t\t\t\t\t\t\t\t\tlist.push( arg );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if ( arg && arg.length && toType( arg ) !== \"string\" ) {\n\n\t\t\t\t\t\t\t\t// Inspect recursively\n\t\t\t\t\t\t\t\tadd( arg );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} );\n\t\t\t\t\t} )( arguments );\n\n\t\t\t\t\tif ( memory && !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Remove a callback from the list\n\t\t\tremove: function() {\n\t\t\t\tjQuery.each( arguments, function( _, arg ) {\n\t\t\t\t\tvar index;\n\t\t\t\t\twhile ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {\n\t\t\t\t\t\tlist.splice( index, 1 );\n\n\t\t\t\t\t\t// Handle firing indexes\n\t\t\t\t\t\tif ( index <= firingIndex ) {\n\t\t\t\t\t\t\tfiringIndex--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Check if a given callback is in the list.\n\t\t\t// If no argument is given, return whether or not list has callbacks attached.\n\t\t\thas: function( fn ) {\n\t\t\t\treturn fn ?\n\t\t\t\t\tjQuery.inArray( fn, list ) > -1 :\n\t\t\t\t\tlist.length > 0;\n\t\t\t},\n\n\t\t\t// Remove all callbacks from the list\n\t\t\tempty: function() {\n\t\t\t\tif ( list ) {\n\t\t\t\t\tlist = [];\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Disable .fire and .add\n\t\t\t// Abort any current/pending executions\n\t\t\t// Clear all callbacks and values\n\t\t\tdisable: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tlist = memory = \"\";\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tdisabled: function() {\n\t\t\t\treturn !list;\n\t\t\t},\n\n\t\t\t// Disable .fire\n\t\t\t// Also disable .add unless we have memory (since it would have no effect)\n\t\t\t// Abort any pending executions\n\t\t\tlock: function() {\n\t\t\t\tlocked = queue = [];\n\t\t\t\tif ( !memory && !firing ) {\n\t\t\t\t\tlist = memory = \"\";\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\t\t\tlocked: function() {\n\t\t\t\treturn !!locked;\n\t\t\t},\n\n\t\t\t// Call all callbacks with the given context and arguments\n\t\t\tfireWith: function( context, args ) {\n\t\t\t\tif ( !locked ) {\n\t\t\t\t\targs = args || [];\n\t\t\t\t\targs = [ context, args.slice ? args.slice() : args ];\n\t\t\t\t\tqueue.push( args );\n\t\t\t\t\tif ( !firing ) {\n\t\t\t\t\t\tfire();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// Call all the callbacks with the given arguments\n\t\t\tfire: function() {\n\t\t\t\tself.fireWith( this, arguments );\n\t\t\t\treturn this;\n\t\t\t},\n\n\t\t\t// To know if the callbacks have already been called at least once\n\t\t\tfired: function() {\n\t\t\t\treturn !!fired;\n\t\t\t}\n\t\t};\n\n\treturn self;\n};\n\n\nfunction Identity( v ) {\n\treturn v;\n}\nfunction Thrower( ex ) {\n\tthrow ex;\n}\n\nfunction adoptValue( value, resolve, reject, noValue ) {\n\tvar method;\n\n\ttry {\n\n\t\t// Check for promise aspect first to privilege synchronous behavior\n\t\tif ( value && isFunction( ( method = value.promise ) ) ) {\n\t\t\tmethod.call( value ).done( resolve ).fail( reject );\n\n\t\t// Other thenables\n\t\t} else if ( value && isFunction( ( method = value.then ) ) ) {\n\t\t\tmethod.call( value, resolve, reject );\n\n\t\t// Other non-thenables\n\t\t} else {\n\n\t\t\t// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:\n\t\t\t// * false: [ value ].slice( 0 ) => resolve( value )\n\t\t\t// * true: [ value ].slice( 1 ) => resolve()\n\t\t\tresolve.apply( undefined, [ value ].slice( noValue ) );\n\t\t}\n\n\t// For Promises/A+, convert exceptions into rejections\n\t// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in\n\t// Deferred#then to conditionally suppress rejection.\n\t} catch ( value ) {\n\n\t\t// Support: Android 4.0 only\n\t\t// Strict mode functions invoked without .call/.apply get global-object context\n\t\treject.apply( undefined, [ value ] );\n\t}\n}\n\njQuery.extend( {\n\n\tDeferred: function( func ) {\n\t\tvar tuples = [\n\n\t\t\t\t// action, add listener, callbacks,\n\t\t\t\t// ... .then handlers, argument index, [final state]\n\t\t\t\t[ \"notify\", \"progress\", jQuery.Callbacks( \"memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"memory\" ), 2 ],\n\t\t\t\t[ \"resolve\", \"done\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 0, \"resolved\" ],\n\t\t\t\t[ \"reject\", \"fail\", jQuery.Callbacks( \"once memory\" ),\n\t\t\t\t\tjQuery.Callbacks( \"once memory\" ), 1, \"rejected\" ]\n\t\t\t],\n\t\t\tstate = \"pending\",\n\t\t\tpromise = {\n\t\t\t\tstate: function() {\n\t\t\t\t\treturn state;\n\t\t\t\t},\n\t\t\t\talways: function() {\n\t\t\t\t\tdeferred.done( arguments ).fail( arguments );\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\t\t\t\t\"catch\": function( fn ) {\n\t\t\t\t\treturn promise.then( null, fn );\n\t\t\t\t},\n\n\t\t\t\t// Keep pipe for back-compat\n\t\t\t\tpipe: function( /* fnDone, fnFail, fnProgress */ ) {\n\t\t\t\t\tvar fns = arguments;\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\t\t\t\t\t\tjQuery.each( tuples, function( _i, tuple ) {\n\n\t\t\t\t\t\t\t// Map tuples (progress, done, fail) to arguments (done, fail, progress)\n\t\t\t\t\t\t\tvar fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];\n\n\t\t\t\t\t\t\t// deferred.progress(function() { bind to newDefer or newDefer.notify })\n\t\t\t\t\t\t\t// deferred.done(function() { bind to newDefer or newDefer.resolve })\n\t\t\t\t\t\t\t// deferred.fail(function() { bind to newDefer or newDefer.reject })\n\t\t\t\t\t\t\tdeferred[ tuple[ 1 ] ]( function() {\n\t\t\t\t\t\t\t\tvar returned = fn && fn.apply( this, arguments );\n\t\t\t\t\t\t\t\tif ( returned && isFunction( returned.promise ) ) {\n\t\t\t\t\t\t\t\t\treturned.promise()\n\t\t\t\t\t\t\t\t\t\t.progress( newDefer.notify )\n\t\t\t\t\t\t\t\t\t\t.done( newDefer.resolve )\n\t\t\t\t\t\t\t\t\t\t.fail( newDefer.reject );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tnewDefer[ tuple[ 0 ] + \"With\" ](\n\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\tfn ? [ returned ] : arguments\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t} );\n\t\t\t\t\t\tfns = null;\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\t\t\t\tthen: function( onFulfilled, onRejected, onProgress ) {\n\t\t\t\t\tvar maxDepth = 0;\n\t\t\t\t\tfunction resolve( depth, deferred, handler, special ) {\n\t\t\t\t\t\treturn function() {\n\t\t\t\t\t\t\tvar that = this,\n\t\t\t\t\t\t\t\targs = arguments,\n\t\t\t\t\t\t\t\tmightThrow = function() {\n\t\t\t\t\t\t\t\t\tvar returned, then;\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.3\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-59\n\t\t\t\t\t\t\t\t\t// Ignore double-resolution attempts\n\t\t\t\t\t\t\t\t\tif ( depth < maxDepth ) {\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\treturned = handler.apply( that, args );\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.1\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-48\n\t\t\t\t\t\t\t\t\tif ( returned === deferred.promise() ) {\n\t\t\t\t\t\t\t\t\t\tthrow new TypeError( \"Thenable self-resolution\" );\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Support: Promises/A+ sections 2.3.3.1, 3.5\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-54\n\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-75\n\t\t\t\t\t\t\t\t\t// Retrieve `then` only once\n\t\t\t\t\t\t\t\t\tthen = returned &&\n\n\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.4\n\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-64\n\t\t\t\t\t\t\t\t\t\t// Only check objects and functions for thenability\n\t\t\t\t\t\t\t\t\t\t( typeof returned === \"object\" ||\n\t\t\t\t\t\t\t\t\t\t\ttypeof returned === \"function\" ) &&\n\t\t\t\t\t\t\t\t\t\treturned.then;\n\n\t\t\t\t\t\t\t\t\t// Handle a returned thenable\n\t\t\t\t\t\t\t\t\tif ( isFunction( then ) ) {\n\n\t\t\t\t\t\t\t\t\t\t// Special processors (notify) just wait for resolution\n\t\t\t\t\t\t\t\t\t\tif ( special ) {\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special )\n\t\t\t\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t\t\t\t\t\t// Normal processors (resolve) also hook into progress\n\t\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t\t// ...and disregard older resolution values\n\t\t\t\t\t\t\t\t\t\t\tmaxDepth++;\n\n\t\t\t\t\t\t\t\t\t\t\tthen.call(\n\t\t\t\t\t\t\t\t\t\t\t\treturned,\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Thrower, special ),\n\t\t\t\t\t\t\t\t\t\t\t\tresolve( maxDepth, deferred, Identity,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdeferred.notifyWith )\n\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// Handle all other returned values\n\t\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\tif ( handler !== Identity ) {\n\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\targs = [ returned ];\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t// Process the value(s)\n\t\t\t\t\t\t\t\t\t\t// Default process is resolve\n\t\t\t\t\t\t\t\t\t\t( special || deferred.resolveWith )( that, args );\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t},\n\n\t\t\t\t\t\t\t\t// Only normal processors (resolve) catch and reject exceptions\n\t\t\t\t\t\t\t\tprocess = special ?\n\t\t\t\t\t\t\t\t\tmightThrow :\n\t\t\t\t\t\t\t\t\tfunction() {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tmightThrow();\n\t\t\t\t\t\t\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t\t\t\t\t\t\tif ( jQuery.Deferred.exceptionHook ) {\n\t\t\t\t\t\t\t\t\t\t\t\tjQuery.Deferred.exceptionHook( e,\n\t\t\t\t\t\t\t\t\t\t\t\t\tprocess.error );\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.4.1\n\t\t\t\t\t\t\t\t\t\t\t// https://promisesaplus.com/#point-61\n\t\t\t\t\t\t\t\t\t\t\t// Ignore post-resolution exceptions\n\t\t\t\t\t\t\t\t\t\t\tif ( depth + 1 >= maxDepth ) {\n\n\t\t\t\t\t\t\t\t\t\t\t\t// Only substitute handlers pass on context\n\t\t\t\t\t\t\t\t\t\t\t\t// and multiple values (non-spec behavior)\n\t\t\t\t\t\t\t\t\t\t\t\tif ( handler !== Thrower ) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tthat = undefined;\n\t\t\t\t\t\t\t\t\t\t\t\t\targs = [ e ];\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tdeferred.rejectWith( that, args );\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t};\n\n\t\t\t\t\t\t\t// Support: Promises/A+ section 2.3.3.3.1\n\t\t\t\t\t\t\t// https://promisesaplus.com/#point-57\n\t\t\t\t\t\t\t// Re-resolve promises immediately to dodge false rejection from\n\t\t\t\t\t\t\t// subsequent errors\n\t\t\t\t\t\t\tif ( depth ) {\n\t\t\t\t\t\t\t\tprocess();\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t// Call an optional hook to record the error, in case of exception\n\t\t\t\t\t\t\t\t// since it's otherwise lost when execution goes async\n\t\t\t\t\t\t\t\tif ( jQuery.Deferred.getErrorHook ) {\n\t\t\t\t\t\t\t\t\tprocess.error = jQuery.Deferred.getErrorHook();\n\n\t\t\t\t\t\t\t\t// The deprecated alias of the above. While the name suggests\n\t\t\t\t\t\t\t\t// returning the stack, not an error instance, jQuery just passes\n\t\t\t\t\t\t\t\t// it directly to `console.warn` so both will work; an instance\n\t\t\t\t\t\t\t\t// just better cooperates with source maps.\n\t\t\t\t\t\t\t\t} else if ( jQuery.Deferred.getStackHook ) {\n\t\t\t\t\t\t\t\t\tprocess.error = jQuery.Deferred.getStackHook();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\twindow.setTimeout( process );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\n\t\t\t\t\treturn jQuery.Deferred( function( newDefer ) {\n\n\t\t\t\t\t\t// progress_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 0 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onProgress ) ?\n\t\t\t\t\t\t\t\t\tonProgress :\n\t\t\t\t\t\t\t\t\tIdentity,\n\t\t\t\t\t\t\t\tnewDefer.notifyWith\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// fulfilled_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 1 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onFulfilled ) ?\n\t\t\t\t\t\t\t\t\tonFulfilled :\n\t\t\t\t\t\t\t\t\tIdentity\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\t// rejected_handlers.add( ... )\n\t\t\t\t\t\ttuples[ 2 ][ 3 ].add(\n\t\t\t\t\t\t\tresolve(\n\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\tnewDefer,\n\t\t\t\t\t\t\t\tisFunction( onRejected ) ?\n\t\t\t\t\t\t\t\t\tonRejected :\n\t\t\t\t\t\t\t\t\tThrower\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t} ).promise();\n\t\t\t\t},\n\n\t\t\t\t// Get a promise for this deferred\n\t\t\t\t// If obj is provided, the promise aspect is added to the object\n\t\t\t\tpromise: function( obj ) {\n\t\t\t\t\treturn obj != null ? jQuery.extend( obj, promise ) : promise;\n\t\t\t\t}\n\t\t\t},\n\t\t\tdeferred = {};\n\n\t\t// Add list-specific methods\n\t\tjQuery.each( tuples, function( i, tuple ) {\n\t\t\tvar list = tuple[ 2 ],\n\t\t\t\tstateString = tuple[ 5 ];\n\n\t\t\t// promise.progress = list.add\n\t\t\t// promise.done = list.add\n\t\t\t// promise.fail = list.add\n\t\t\tpromise[ tuple[ 1 ] ] = list.add;\n\n\t\t\t// Handle state\n\t\t\tif ( stateString ) {\n\t\t\t\tlist.add(\n\t\t\t\t\tfunction() {\n\n\t\t\t\t\t\t// state = \"resolved\" (i.e., fulfilled)\n\t\t\t\t\t\t// state = \"rejected\"\n\t\t\t\t\t\tstate = stateString;\n\t\t\t\t\t},\n\n\t\t\t\t\t// rejected_callbacks.disable\n\t\t\t\t\t// fulfilled_callbacks.disable\n\t\t\t\t\ttuples[ 3 - i ][ 2 ].disable,\n\n\t\t\t\t\t// rejected_handlers.disable\n\t\t\t\t\t// fulfilled_handlers.disable\n\t\t\t\t\ttuples[ 3 - i ][ 3 ].disable,\n\n\t\t\t\t\t// progress_callbacks.lock\n\t\t\t\t\ttuples[ 0 ][ 2 ].lock,\n\n\t\t\t\t\t// progress_handlers.lock\n\t\t\t\t\ttuples[ 0 ][ 3 ].lock\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// progress_handlers.fire\n\t\t\t// fulfilled_handlers.fire\n\t\t\t// rejected_handlers.fire\n\t\t\tlist.add( tuple[ 3 ].fire );\n\n\t\t\t// deferred.notify = function() { deferred.notifyWith(...) }\n\t\t\t// deferred.resolve = function() { deferred.resolveWith(...) }\n\t\t\t// deferred.reject = function() { deferred.rejectWith(...) }\n\t\t\tdeferred[ tuple[ 0 ] ] = function() {\n\t\t\t\tdeferred[ tuple[ 0 ] + \"With\" ]( this === deferred ? undefined : this, arguments );\n\t\t\t\treturn this;\n\t\t\t};\n\n\t\t\t// deferred.notifyWith = list.fireWith\n\t\t\t// deferred.resolveWith = list.fireWith\n\t\t\t// deferred.rejectWith = list.fireWith\n\t\t\tdeferred[ tuple[ 0 ] + \"With\" ] = list.fireWith;\n\t\t} );\n\n\t\t// Make the deferred a promise\n\t\tpromise.promise( deferred );\n\n\t\t// Call given func if any\n\t\tif ( func ) {\n\t\t\tfunc.call( deferred, deferred );\n\t\t}\n\n\t\t// All done!\n\t\treturn deferred;\n\t},\n\n\t// Deferred helper\n\twhen: function( singleValue ) {\n\t\tvar\n\n\t\t\t// count of uncompleted subordinates\n\t\t\tremaining = arguments.length,\n\n\t\t\t// count of unprocessed arguments\n\t\t\ti = remaining,\n\n\t\t\t// subordinate fulfillment data\n\t\t\tresolveContexts = Array( i ),\n\t\t\tresolveValues = slice.call( arguments ),\n\n\t\t\t// the primary Deferred\n\t\t\tprimary = jQuery.Deferred(),\n\n\t\t\t// subordinate callback factory\n\t\t\tupdateFunc = function( i ) {\n\t\t\t\treturn function( value ) {\n\t\t\t\t\tresolveContexts[ i ] = this;\n\t\t\t\t\tresolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;\n\t\t\t\t\tif ( !( --remaining ) ) {\n\t\t\t\t\t\tprimary.resolveWith( resolveContexts, resolveValues );\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t};\n\n\t\t// Single- and empty arguments are adopted like Promise.resolve\n\t\tif ( remaining <= 1 ) {\n\t\t\tadoptValue( singleValue, primary.done( updateFunc( i ) ).resolve, primary.reject,\n\t\t\t\t!remaining );\n\n\t\t\t// Use .then() to unwrap secondary thenables (cf. gh-3000)\n\t\t\tif ( primary.state() === \"pending\" ||\n\t\t\t\tisFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {\n\n\t\t\t\treturn primary.then();\n\t\t\t}\n\t\t}\n\n\t\t// Multiple arguments are aggregated like Promise.all array elements\n\t\twhile ( i-- ) {\n\t\t\tadoptValue( resolveValues[ i ], updateFunc( i ), primary.reject );\n\t\t}\n\n\t\treturn primary.promise();\n\t}\n} );\n\n\n// These usually indicate a programmer mistake during development,\n// warn about them ASAP rather than swallowing them by default.\nvar rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;\n\n// If `jQuery.Deferred.getErrorHook` is defined, `asyncError` is an error\n// captured before the async barrier to get the original error cause\n// which may otherwise be hidden.\njQuery.Deferred.exceptionHook = function( error, asyncError ) {\n\n\t// Support: IE 8 - 9 only\n\t// Console exists when dev tools are open, which can happen at any time\n\tif ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {\n\t\twindow.console.warn( \"jQuery.Deferred exception: \" + error.message,\n\t\t\terror.stack, asyncError );\n\t}\n};\n\n\n\n\njQuery.readyException = function( error ) {\n\twindow.setTimeout( function() {\n\t\tthrow error;\n\t} );\n};\n\n\n\n\n// The deferred used on DOM ready\nvar readyList = jQuery.Deferred();\n\njQuery.fn.ready = function( fn ) {\n\n\treadyList\n\t\t.then( fn )\n\n\t\t// Wrap jQuery.readyException in a function so that the lookup\n\t\t// happens at the time of error handling instead of callback\n\t\t// registration.\n\t\t.catch( function( error ) {\n\t\t\tjQuery.readyException( error );\n\t\t} );\n\n\treturn this;\n};\n\njQuery.extend( {\n\n\t// Is the DOM ready to be used? Set to true once it occurs.\n\tisReady: false,\n\n\t// A counter to track how many items to wait for before\n\t// the ready event fires. See trac-6781\n\treadyWait: 1,\n\n\t// Handle when the DOM is ready\n\tready: function( wait ) {\n\n\t\t// Abort if there are pending holds or we're already ready\n\t\tif ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Remember that the DOM is ready\n\t\tjQuery.isReady = true;\n\n\t\t// If a normal DOM Ready event fired, decrement, and wait if need be\n\t\tif ( wait !== true && --jQuery.readyWait > 0 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// If there are functions bound, to execute\n\t\treadyList.resolveWith( document, [ jQuery ] );\n\t}\n} );\n\njQuery.ready.then = readyList.then;\n\n// The ready event handler and self cleanup method\nfunction completed() {\n\tdocument.removeEventListener( \"DOMContentLoaded\", completed );\n\twindow.removeEventListener( \"load\", completed );\n\tjQuery.ready();\n}\n\n// Catch cases where $(document).ready() is called\n// after the browser event has already occurred.\n// Support: IE <=9 - 10 only\n// Older IE sometimes signals \"interactive\" too soon\nif ( document.readyState === \"complete\" ||\n\t( document.readyState !== \"loading\" && !document.documentElement.doScroll ) ) {\n\n\t// Handle it asynchronously to allow scripts the opportunity to delay ready\n\twindow.setTimeout( jQuery.ready );\n\n} else {\n\n\t// Use the handy event callback\n\tdocument.addEventListener( \"DOMContentLoaded\", completed );\n\n\t// A fallback to window.onload, that will always work\n\twindow.addEventListener( \"load\", completed );\n}\n\n\n\n\n// Multifunctional method to get and set values of a collection\n// The value/s can optionally be executed if it's a function\nvar access = function( elems, fn, key, value, chainable, emptyGet, raw ) {\n\tvar i = 0,\n\t\tlen = elems.length,\n\t\tbulk = key == null;\n\n\t// Sets many values\n\tif ( toType( key ) === \"object\" ) {\n\t\tchainable = true;\n\t\tfor ( i in key ) {\n\t\t\taccess( elems, fn, i, key[ i ], true, emptyGet, raw );\n\t\t}\n\n\t// Sets one value\n\t} else if ( value !== undefined ) {\n\t\tchainable = true;\n\n\t\tif ( !isFunction( value ) ) {\n\t\t\traw = true;\n\t\t}\n\n\t\tif ( bulk ) {\n\n\t\t\t// Bulk operations run against the entire set\n\t\t\tif ( raw ) {\n\t\t\t\tfn.call( elems, value );\n\t\t\t\tfn = null;\n\n\t\t\t// ...except when executing function values\n\t\t\t} else {\n\t\t\t\tbulk = fn;\n\t\t\t\tfn = function( elem, _key, value ) {\n\t\t\t\t\treturn bulk.call( jQuery( elem ), value );\n\t\t\t\t};\n\t\t\t}\n\t\t}\n\n\t\tif ( fn ) {\n\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\tfn(\n\t\t\t\t\telems[ i ], key, raw ?\n\t\t\t\t\t\tvalue :\n\t\t\t\t\t\tvalue.call( elems[ i ], i, fn( elems[ i ], key ) )\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( chainable ) {\n\t\treturn elems;\n\t}\n\n\t// Gets\n\tif ( bulk ) {\n\t\treturn fn.call( elems );\n\t}\n\n\treturn len ? fn( elems[ 0 ], key ) : emptyGet;\n};\n\n\n// Matches dashed string for camelizing\nvar rmsPrefix = /^-ms-/,\n\trdashAlpha = /-([a-z])/g;\n\n// Used by camelCase as callback to replace()\nfunction fcamelCase( _all, letter ) {\n\treturn letter.toUpperCase();\n}\n\n// Convert dashed to camelCase; used by the css and data modules\n// Support: IE <=9 - 11, Edge 12 - 15\n// Microsoft forgot to hump their vendor prefix (trac-9572)\nfunction camelCase( string ) {\n\treturn string.replace( rmsPrefix, \"ms-\" ).replace( rdashAlpha, fcamelCase );\n}\nvar acceptData = function( owner ) {\n\n\t// Accepts only:\n\t//  - Node\n\t//    - Node.ELEMENT_NODE\n\t//    - Node.DOCUMENT_NODE\n\t//  - Object\n\t//    - Any\n\treturn owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );\n};\n\n\n\n\nfunction Data() {\n\tthis.expando = jQuery.expando + Data.uid++;\n}\n\nData.uid = 1;\n\nData.prototype = {\n\n\tcache: function( owner ) {\n\n\t\t// Check if the owner object already has a cache\n\t\tvar value = owner[ this.expando ];\n\n\t\t// If not, create one\n\t\tif ( !value ) {\n\t\t\tvalue = {};\n\n\t\t\t// We can accept data for non-element nodes in modern browsers,\n\t\t\t// but we should not, see trac-8335.\n\t\t\t// Always return an empty object.\n\t\t\tif ( acceptData( owner ) ) {\n\n\t\t\t\t// If it is a node unlikely to be stringify-ed or looped over\n\t\t\t\t// use plain assignment\n\t\t\t\tif ( owner.nodeType ) {\n\t\t\t\t\towner[ this.expando ] = value;\n\n\t\t\t\t// Otherwise secure it in a non-enumerable property\n\t\t\t\t// configurable must be true to allow the property to be\n\t\t\t\t// deleted when data is removed\n\t\t\t\t} else {\n\t\t\t\t\tObject.defineProperty( owner, this.expando, {\n\t\t\t\t\t\tvalue: value,\n\t\t\t\t\t\tconfigurable: true\n\t\t\t\t\t} );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn value;\n\t},\n\tset: function( owner, data, value ) {\n\t\tvar prop,\n\t\t\tcache = this.cache( owner );\n\n\t\t// Handle: [ owner, key, value ] args\n\t\t// Always use camelCase key (gh-2257)\n\t\tif ( typeof data === \"string\" ) {\n\t\t\tcache[ camelCase( data ) ] = value;\n\n\t\t// Handle: [ owner, { properties } ] args\n\t\t} else {\n\n\t\t\t// Copy the properties one-by-one to the cache object\n\t\t\tfor ( prop in data ) {\n\t\t\t\tcache[ camelCase( prop ) ] = data[ prop ];\n\t\t\t}\n\t\t}\n\t\treturn cache;\n\t},\n\tget: function( owner, key ) {\n\t\treturn key === undefined ?\n\t\t\tthis.cache( owner ) :\n\n\t\t\t// Always use camelCase key (gh-2257)\n\t\t\towner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];\n\t},\n\taccess: function( owner, key, value ) {\n\n\t\t// In cases where either:\n\t\t//\n\t\t//   1. No key was specified\n\t\t//   2. A string key was specified, but no value provided\n\t\t//\n\t\t// Take the \"read\" path and allow the get method to determine\n\t\t// which value to return, respectively either:\n\t\t//\n\t\t//   1. The entire cache object\n\t\t//   2. The data stored at the key\n\t\t//\n\t\tif ( key === undefined ||\n\t\t\t\t( ( key && typeof key === \"string\" ) && value === undefined ) ) {\n\n\t\t\treturn this.get( owner, key );\n\t\t}\n\n\t\t// When the key is not a string, or both a key and value\n\t\t// are specified, set or extend (existing objects) with either:\n\t\t//\n\t\t//   1. An object of properties\n\t\t//   2. A key and value\n\t\t//\n\t\tthis.set( owner, key, value );\n\n\t\t// Since the \"set\" path can have two possible entry points\n\t\t// return the expected data based on which path was taken[*]\n\t\treturn value !== undefined ? value : key;\n\t},\n\tremove: function( owner, key ) {\n\t\tvar i,\n\t\t\tcache = owner[ this.expando ];\n\n\t\tif ( cache === undefined ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( key !== undefined ) {\n\n\t\t\t// Support array or space separated string of keys\n\t\t\tif ( Array.isArray( key ) ) {\n\n\t\t\t\t// If key is an array of keys...\n\t\t\t\t// We always set camelCase keys, so remove that.\n\t\t\t\tkey = key.map( camelCase );\n\t\t\t} else {\n\t\t\t\tkey = camelCase( key );\n\n\t\t\t\t// If a key with the spaces exists, use it.\n\t\t\t\t// Otherwise, create an array by matching non-whitespace\n\t\t\t\tkey = key in cache ?\n\t\t\t\t\t[ key ] :\n\t\t\t\t\t( key.match( rnothtmlwhite ) || [] );\n\t\t\t}\n\n\t\t\ti = key.length;\n\n\t\t\twhile ( i-- ) {\n\t\t\t\tdelete cache[ key[ i ] ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove the expando if there's no more data\n\t\tif ( key === undefined || jQuery.isEmptyObject( cache ) ) {\n\n\t\t\t// Support: Chrome <=35 - 45\n\t\t\t// Webkit & Blink performance suffers when deleting properties\n\t\t\t// from DOM nodes, so set to undefined instead\n\t\t\t// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)\n\t\t\tif ( owner.nodeType ) {\n\t\t\t\towner[ this.expando ] = undefined;\n\t\t\t} else {\n\t\t\t\tdelete owner[ this.expando ];\n\t\t\t}\n\t\t}\n\t},\n\thasData: function( owner ) {\n\t\tvar cache = owner[ this.expando ];\n\t\treturn cache !== undefined && !jQuery.isEmptyObject( cache );\n\t}\n};\nvar dataPriv = new Data();\n\nvar dataUser = new Data();\n\n\n\n//\tImplementation Summary\n//\n//\t1. Enforce API surface and semantic compatibility with 1.9.x branch\n//\t2. Improve the module's maintainability by reducing the storage\n//\t\tpaths to a single mechanism.\n//\t3. Use the same single mechanism to support \"private\" and \"user\" data.\n//\t4. _Never_ expose \"private\" data to user code (TODO: Drop _data, _removeData)\n//\t5. Avoid exposing implementation details on user objects (eg. expando properties)\n//\t6. Provide a clear path for implementation upgrade to WeakMap in 2014\n\nvar rbrace = /^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,\n\trmultiDash = /[A-Z]/g;\n\nfunction getData( data ) {\n\tif ( data === \"true\" ) {\n\t\treturn true;\n\t}\n\n\tif ( data === \"false\" ) {\n\t\treturn false;\n\t}\n\n\tif ( data === \"null\" ) {\n\t\treturn null;\n\t}\n\n\t// Only convert to a number if it doesn't change the string\n\tif ( data === +data + \"\" ) {\n\t\treturn +data;\n\t}\n\n\tif ( rbrace.test( data ) ) {\n\t\treturn JSON.parse( data );\n\t}\n\n\treturn data;\n}\n\nfunction dataAttr( elem, key, data ) {\n\tvar name;\n\n\t// If nothing was found internally, try to fetch any\n\t// data from the HTML5 data-* attribute\n\tif ( data === undefined && elem.nodeType === 1 ) {\n\t\tname = \"data-\" + key.replace( rmultiDash, \"-$&\" ).toLowerCase();\n\t\tdata = elem.getAttribute( name );\n\n\t\tif ( typeof data === \"string\" ) {\n\t\t\ttry {\n\t\t\t\tdata = getData( data );\n\t\t\t} catch ( e ) {}\n\n\t\t\t// Make sure we set the data so it isn't changed later\n\t\t\tdataUser.set( elem, key, data );\n\t\t} else {\n\t\t\tdata = undefined;\n\t\t}\n\t}\n\treturn data;\n}\n\njQuery.extend( {\n\thasData: function( elem ) {\n\t\treturn dataUser.hasData( elem ) || dataPriv.hasData( elem );\n\t},\n\n\tdata: function( elem, name, data ) {\n\t\treturn dataUser.access( elem, name, data );\n\t},\n\n\tremoveData: function( elem, name ) {\n\t\tdataUser.remove( elem, name );\n\t},\n\n\t// TODO: Now that all calls to _data and _removeData have been replaced\n\t// with direct calls to dataPriv methods, these can be deprecated.\n\t_data: function( elem, name, data ) {\n\t\treturn dataPriv.access( elem, name, data );\n\t},\n\n\t_removeData: function( elem, name ) {\n\t\tdataPriv.remove( elem, name );\n\t}\n} );\n\njQuery.fn.extend( {\n\tdata: function( key, value ) {\n\t\tvar i, name, data,\n\t\t\telem = this[ 0 ],\n\t\t\tattrs = elem && elem.attributes;\n\n\t\t// Gets all values\n\t\tif ( key === undefined ) {\n\t\t\tif ( this.length ) {\n\t\t\t\tdata = dataUser.get( elem );\n\n\t\t\t\tif ( elem.nodeType === 1 && !dataPriv.get( elem, \"hasDataAttrs\" ) ) {\n\t\t\t\t\ti = attrs.length;\n\t\t\t\t\twhile ( i-- ) {\n\n\t\t\t\t\t\t// Support: IE 11 only\n\t\t\t\t\t\t// The attrs elements can be null (trac-14894)\n\t\t\t\t\t\tif ( attrs[ i ] ) {\n\t\t\t\t\t\t\tname = attrs[ i ].name;\n\t\t\t\t\t\t\tif ( name.indexOf( \"data-\" ) === 0 ) {\n\t\t\t\t\t\t\t\tname = camelCase( name.slice( 5 ) );\n\t\t\t\t\t\t\t\tdataAttr( elem, name, data[ name ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tdataPriv.set( elem, \"hasDataAttrs\", true );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn data;\n\t\t}\n\n\t\t// Sets multiple values\n\t\tif ( typeof key === \"object\" ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tdataUser.set( this, key );\n\t\t\t} );\n\t\t}\n\n\t\treturn access( this, function( value ) {\n\t\t\tvar data;\n\n\t\t\t// The calling jQuery object (element matches) is not empty\n\t\t\t// (and therefore has an element appears at this[ 0 ]) and the\n\t\t\t// `value` parameter was not undefined. An empty jQuery object\n\t\t\t// will result in `undefined` for elem = this[ 0 ] which will\n\t\t\t// throw an exception if an attempt to read a data cache is made.\n\t\t\tif ( elem && value === undefined ) {\n\n\t\t\t\t// Attempt to get data from the cache\n\t\t\t\t// The key will always be camelCased in Data\n\t\t\t\tdata = dataUser.get( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// Attempt to \"discover\" the data in\n\t\t\t\t// HTML5 custom data-* attrs\n\t\t\t\tdata = dataAttr( elem, key );\n\t\t\t\tif ( data !== undefined ) {\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\n\t\t\t\t// We tried really hard, but the data doesn't exist.\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Set the data...\n\t\t\tthis.each( function() {\n\n\t\t\t\t// We always store the camelCased key\n\t\t\t\tdataUser.set( this, key, value );\n\t\t\t} );\n\t\t}, null, value, arguments.length > 1, null, true );\n\t},\n\n\tremoveData: function( key ) {\n\t\treturn this.each( function() {\n\t\t\tdataUser.remove( this, key );\n\t\t} );\n\t}\n} );\n\n\njQuery.extend( {\n\tqueue: function( elem, type, data ) {\n\t\tvar queue;\n\n\t\tif ( elem ) {\n\t\t\ttype = ( type || \"fx\" ) + \"queue\";\n\t\t\tqueue = dataPriv.get( elem, type );\n\n\t\t\t// Speed up dequeue by getting out quickly if this is just a lookup\n\t\t\tif ( data ) {\n\t\t\t\tif ( !queue || Array.isArray( data ) ) {\n\t\t\t\t\tqueue = dataPriv.access( elem, type, jQuery.makeArray( data ) );\n\t\t\t\t} else {\n\t\t\t\t\tqueue.push( data );\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn queue || [];\n\t\t}\n\t},\n\n\tdequeue: function( elem, type ) {\n\t\ttype = type || \"fx\";\n\n\t\tvar queue = jQuery.queue( elem, type ),\n\t\t\tstartLength = queue.length,\n\t\t\tfn = queue.shift(),\n\t\t\thooks = jQuery._queueHooks( elem, type ),\n\t\t\tnext = function() {\n\t\t\t\tjQuery.dequeue( elem, type );\n\t\t\t};\n\n\t\t// If the fx queue is dequeued, always remove the progress sentinel\n\t\tif ( fn === \"inprogress\" ) {\n\t\t\tfn = queue.shift();\n\t\t\tstartLength--;\n\t\t}\n\n\t\tif ( fn ) {\n\n\t\t\t// Add a progress sentinel to prevent the fx queue from being\n\t\t\t// automatically dequeued\n\t\t\tif ( type === \"fx\" ) {\n\t\t\t\tqueue.unshift( \"inprogress\" );\n\t\t\t}\n\n\t\t\t// Clear up the last queue stop function\n\t\t\tdelete hooks.stop;\n\t\t\tfn.call( elem, next, hooks );\n\t\t}\n\n\t\tif ( !startLength && hooks ) {\n\t\t\thooks.empty.fire();\n\t\t}\n\t},\n\n\t// Not public - generate a queueHooks object, or return the current one\n\t_queueHooks: function( elem, type ) {\n\t\tvar key = type + \"queueHooks\";\n\t\treturn dataPriv.get( elem, key ) || dataPriv.access( elem, key, {\n\t\t\tempty: jQuery.Callbacks( \"once memory\" ).add( function() {\n\t\t\t\tdataPriv.remove( elem, [ type + \"queue\", key ] );\n\t\t\t} )\n\t\t} );\n\t}\n} );\n\njQuery.fn.extend( {\n\tqueue: function( type, data ) {\n\t\tvar setter = 2;\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tdata = type;\n\t\t\ttype = \"fx\";\n\t\t\tsetter--;\n\t\t}\n\n\t\tif ( arguments.length < setter ) {\n\t\t\treturn jQuery.queue( this[ 0 ], type );\n\t\t}\n\n\t\treturn data === undefined ?\n\t\t\tthis :\n\t\t\tthis.each( function() {\n\t\t\t\tvar queue = jQuery.queue( this, type, data );\n\n\t\t\t\t// Ensure a hooks for this queue\n\t\t\t\tjQuery._queueHooks( this, type );\n\n\t\t\t\tif ( type === \"fx\" && queue[ 0 ] !== \"inprogress\" ) {\n\t\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t\t}\n\t\t\t} );\n\t},\n\tdequeue: function( type ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.dequeue( this, type );\n\t\t} );\n\t},\n\tclearQueue: function( type ) {\n\t\treturn this.queue( type || \"fx\", [] );\n\t},\n\n\t// Get a promise resolved when queues of a certain type\n\t// are emptied (fx is the type by default)\n\tpromise: function( type, obj ) {\n\t\tvar tmp,\n\t\t\tcount = 1,\n\t\t\tdefer = jQuery.Deferred(),\n\t\t\telements = this,\n\t\t\ti = this.length,\n\t\t\tresolve = function() {\n\t\t\t\tif ( !( --count ) ) {\n\t\t\t\t\tdefer.resolveWith( elements, [ elements ] );\n\t\t\t\t}\n\t\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tobj = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\ttype = type || \"fx\";\n\n\t\twhile ( i-- ) {\n\t\t\ttmp = dataPriv.get( elements[ i ], type + \"queueHooks\" );\n\t\t\tif ( tmp && tmp.empty ) {\n\t\t\t\tcount++;\n\t\t\t\ttmp.empty.add( resolve );\n\t\t\t}\n\t\t}\n\t\tresolve();\n\t\treturn defer.promise( obj );\n\t}\n} );\nvar pnum = ( /[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/ ).source;\n\nvar rcssNum = new RegExp( \"^(?:([+-])=|)(\" + pnum + \")([a-z%]*)$\", \"i\" );\n\n\nvar cssExpand = [ \"Top\", \"Right\", \"Bottom\", \"Left\" ];\n\nvar documentElement = document.documentElement;\n\n\n\n\tvar isAttached = function( elem ) {\n\t\t\treturn jQuery.contains( elem.ownerDocument, elem );\n\t\t},\n\t\tcomposed = { composed: true };\n\n\t// Support: IE 9 - 11+, Edge 12 - 18+, iOS 10.0 - 10.2 only\n\t// Check attachment across shadow DOM boundaries when possible (gh-3504)\n\t// Support: iOS 10.0-10.2 only\n\t// Early iOS 10 versions support `attachShadow` but not `getRootNode`,\n\t// leading to errors. We need to check for `getRootNode`.\n\tif ( documentElement.getRootNode ) {\n\t\tisAttached = function( elem ) {\n\t\t\treturn jQuery.contains( elem.ownerDocument, elem ) ||\n\t\t\t\telem.getRootNode( composed ) === elem.ownerDocument;\n\t\t};\n\t}\nvar isHiddenWithinTree = function( elem, el ) {\n\n\t\t// isHiddenWithinTree might be called from jQuery#filter function;\n\t\t// in that case, element will be second argument\n\t\telem = el || elem;\n\n\t\t// Inline style trumps all\n\t\treturn elem.style.display === \"none\" ||\n\t\t\telem.style.display === \"\" &&\n\n\t\t\t// Otherwise, check computed style\n\t\t\t// Support: Firefox <=43 - 45\n\t\t\t// Disconnected elements can have computed display: none, so first confirm that elem is\n\t\t\t// in the document.\n\t\t\tisAttached( elem ) &&\n\n\t\t\tjQuery.css( elem, \"display\" ) === \"none\";\n\t};\n\n\n\nfunction adjustCSS( elem, prop, valueParts, tween ) {\n\tvar adjusted, scale,\n\t\tmaxIterations = 20,\n\t\tcurrentValue = tween ?\n\t\t\tfunction() {\n\t\t\t\treturn tween.cur();\n\t\t\t} :\n\t\t\tfunction() {\n\t\t\t\treturn jQuery.css( elem, prop, \"\" );\n\t\t\t},\n\t\tinitial = currentValue(),\n\t\tunit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" ),\n\n\t\t// Starting value computation is required for potential unit mismatches\n\t\tinitialInUnit = elem.nodeType &&\n\t\t\t( jQuery.cssNumber[ prop ] || unit !== \"px\" && +initial ) &&\n\t\t\trcssNum.exec( jQuery.css( elem, prop ) );\n\n\tif ( initialInUnit && initialInUnit[ 3 ] !== unit ) {\n\n\t\t// Support: Firefox <=54\n\t\t// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)\n\t\tinitial = initial / 2;\n\n\t\t// Trust units reported by jQuery.css\n\t\tunit = unit || initialInUnit[ 3 ];\n\n\t\t// Iteratively approximate from a nonzero starting point\n\t\tinitialInUnit = +initial || 1;\n\n\t\twhile ( maxIterations-- ) {\n\n\t\t\t// Evaluate and update our best guess (doubling guesses that zero out).\n\t\t\t// Finish if the scale equals or crosses 1 (making the old*new product non-positive).\n\t\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\t\t\tif ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {\n\t\t\t\tmaxIterations = 0;\n\t\t\t}\n\t\t\tinitialInUnit = initialInUnit / scale;\n\n\t\t}\n\n\t\tinitialInUnit = initialInUnit * 2;\n\t\tjQuery.style( elem, prop, initialInUnit + unit );\n\n\t\t// Make sure we update the tween properties later on\n\t\tvalueParts = valueParts || [];\n\t}\n\n\tif ( valueParts ) {\n\t\tinitialInUnit = +initialInUnit || +initial || 0;\n\n\t\t// Apply relative offset (+=/-=) if specified\n\t\tadjusted = valueParts[ 1 ] ?\n\t\t\tinitialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :\n\t\t\t+valueParts[ 2 ];\n\t\tif ( tween ) {\n\t\t\ttween.unit = unit;\n\t\t\ttween.start = initialInUnit;\n\t\t\ttween.end = adjusted;\n\t\t}\n\t}\n\treturn adjusted;\n}\n\n\nvar defaultDisplayMap = {};\n\nfunction getDefaultDisplay( elem ) {\n\tvar temp,\n\t\tdoc = elem.ownerDocument,\n\t\tnodeName = elem.nodeName,\n\t\tdisplay = defaultDisplayMap[ nodeName ];\n\n\tif ( display ) {\n\t\treturn display;\n\t}\n\n\ttemp = doc.body.appendChild( doc.createElement( nodeName ) );\n\tdisplay = jQuery.css( temp, \"display\" );\n\n\ttemp.parentNode.removeChild( temp );\n\n\tif ( display === \"none\" ) {\n\t\tdisplay = \"block\";\n\t}\n\tdefaultDisplayMap[ nodeName ] = display;\n\n\treturn display;\n}\n\nfunction showHide( elements, show ) {\n\tvar display, elem,\n\t\tvalues = [],\n\t\tindex = 0,\n\t\tlength = elements.length;\n\n\t// Determine new display value for elements that need to change\n\tfor ( ; index < length; index++ ) {\n\t\telem = elements[ index ];\n\t\tif ( !elem.style ) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tdisplay = elem.style.display;\n\t\tif ( show ) {\n\n\t\t\t// Since we force visibility upon cascade-hidden elements, an immediate (and slow)\n\t\t\t// check is required in this first loop unless we have a nonempty display value (either\n\t\t\t// inline or about-to-be-restored)\n\t\t\tif ( display === \"none\" ) {\n\t\t\t\tvalues[ index ] = dataPriv.get( elem, \"display\" ) || null;\n\t\t\t\tif ( !values[ index ] ) {\n\t\t\t\t\telem.style.display = \"\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( elem.style.display === \"\" && isHiddenWithinTree( elem ) ) {\n\t\t\t\tvalues[ index ] = getDefaultDisplay( elem );\n\t\t\t}\n\t\t} else {\n\t\t\tif ( display !== \"none\" ) {\n\t\t\t\tvalues[ index ] = \"none\";\n\n\t\t\t\t// Remember what we're overwriting\n\t\t\t\tdataPriv.set( elem, \"display\", display );\n\t\t\t}\n\t\t}\n\t}\n\n\t// Set the display of the elements in a second loop to avoid constant reflow\n\tfor ( index = 0; index < length; index++ ) {\n\t\tif ( values[ index ] != null ) {\n\t\t\telements[ index ].style.display = values[ index ];\n\t\t}\n\t}\n\n\treturn elements;\n}\n\njQuery.fn.extend( {\n\tshow: function() {\n\t\treturn showHide( this, true );\n\t},\n\thide: function() {\n\t\treturn showHide( this );\n\t},\n\ttoggle: function( state ) {\n\t\tif ( typeof state === \"boolean\" ) {\n\t\t\treturn state ? this.show() : this.hide();\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tif ( isHiddenWithinTree( this ) ) {\n\t\t\t\tjQuery( this ).show();\n\t\t\t} else {\n\t\t\t\tjQuery( this ).hide();\n\t\t\t}\n\t\t} );\n\t}\n} );\nvar rcheckableType = ( /^(?:checkbox|radio)$/i );\n\nvar rtagName = ( /<([a-z][^\\/\\0>\\x20\\t\\r\\n\\f]*)/i );\n\nvar rscriptType = ( /^$|^module$|\\/(?:java|ecma)script/i );\n\n\n\n( function() {\n\tvar fragment = document.createDocumentFragment(),\n\t\tdiv = fragment.appendChild( document.createElement( \"div\" ) ),\n\t\tinput = document.createElement( \"input\" );\n\n\t// Support: Android 4.0 - 4.3 only\n\t// Check state lost if the name is set (trac-11217)\n\t// Support: Windows Web Apps (WWA)\n\t// `name` and `type` must use .setAttribute for WWA (trac-14901)\n\tinput.setAttribute( \"type\", \"radio\" );\n\tinput.setAttribute( \"checked\", \"checked\" );\n\tinput.setAttribute( \"name\", \"t\" );\n\n\tdiv.appendChild( input );\n\n\t// Support: Android <=4.1 only\n\t// Older WebKit doesn't clone checked state correctly in fragments\n\tsupport.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;\n\n\t// Support: IE <=11 only\n\t// Make sure textarea (and checkbox) defaultValue is properly cloned\n\tdiv.innerHTML = \"<textarea>x</textarea>\";\n\tsupport.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;\n\n\t// Support: IE <=9 only\n\t// IE <=9 replaces <option> tags with their contents when inserted outside of\n\t// the select element.\n\tdiv.innerHTML = \"<option></option>\";\n\tsupport.option = !!div.lastChild;\n} )();\n\n\n// We have to close these tags to support XHTML (trac-13200)\nvar wrapMap = {\n\n\t// XHTML parsers do not magically insert elements in the\n\t// same way that tag soup parsers do. So we cannot shorten\n\t// this by omitting <tbody> or other required elements.\n\tthead: [ 1, \"<table>\", \"</table>\" ],\n\tcol: [ 2, \"<table><colgroup>\", \"</colgroup></table>\" ],\n\ttr: [ 2, \"<table><tbody>\", \"</tbody></table>\" ],\n\ttd: [ 3, \"<table><tbody><tr>\", \"</tr></tbody></table>\" ],\n\n\t_default: [ 0, \"\", \"\" ]\n};\n\nwrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;\nwrapMap.th = wrapMap.td;\n\n// Support: IE <=9 only\nif ( !support.option ) {\n\twrapMap.optgroup = wrapMap.option = [ 1, \"<select multiple='multiple'>\", \"</select>\" ];\n}\n\n\nfunction getAll( context, tag ) {\n\n\t// Support: IE <=9 - 11 only\n\t// Use typeof to avoid zero-argument method invocation on host objects (trac-15151)\n\tvar ret;\n\n\tif ( typeof context.getElementsByTagName !== \"undefined\" ) {\n\t\tret = context.getElementsByTagName( tag || \"*\" );\n\n\t} else if ( typeof context.querySelectorAll !== \"undefined\" ) {\n\t\tret = context.querySelectorAll( tag || \"*\" );\n\n\t} else {\n\t\tret = [];\n\t}\n\n\tif ( tag === undefined || tag && nodeName( context, tag ) ) {\n\t\treturn jQuery.merge( [ context ], ret );\n\t}\n\n\treturn ret;\n}\n\n\n// Mark scripts as having already been evaluated\nfunction setGlobalEval( elems, refElements ) {\n\tvar i = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\tdataPriv.set(\n\t\t\telems[ i ],\n\t\t\t\"globalEval\",\n\t\t\t!refElements || dataPriv.get( refElements[ i ], \"globalEval\" )\n\t\t);\n\t}\n}\n\n\nvar rhtml = /<|&#?\\w+;/;\n\nfunction buildFragment( elems, context, scripts, selection, ignored ) {\n\tvar elem, tmp, tag, wrap, attached, j,\n\t\tfragment = context.createDocumentFragment(),\n\t\tnodes = [],\n\t\ti = 0,\n\t\tl = elems.length;\n\n\tfor ( ; i < l; i++ ) {\n\t\telem = elems[ i ];\n\n\t\tif ( elem || elem === 0 ) {\n\n\t\t\t// Add nodes directly\n\t\t\tif ( toType( elem ) === \"object\" ) {\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );\n\n\t\t\t// Convert non-html into a text node\n\t\t\t} else if ( !rhtml.test( elem ) ) {\n\t\t\t\tnodes.push( context.createTextNode( elem ) );\n\n\t\t\t// Convert html into DOM nodes\n\t\t\t} else {\n\t\t\t\ttmp = tmp || fragment.appendChild( context.createElement( \"div\" ) );\n\n\t\t\t\t// Deserialize a standard representation\n\t\t\t\ttag = ( rtagName.exec( elem ) || [ \"\", \"\" ] )[ 1 ].toLowerCase();\n\t\t\t\twrap = wrapMap[ tag ] || wrapMap._default;\n\t\t\t\ttmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];\n\n\t\t\t\t// Descend through wrappers to the right content\n\t\t\t\tj = wrap[ 0 ];\n\t\t\t\twhile ( j-- ) {\n\t\t\t\t\ttmp = tmp.lastChild;\n\t\t\t\t}\n\n\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\tjQuery.merge( nodes, tmp.childNodes );\n\n\t\t\t\t// Remember the top-level container\n\t\t\t\ttmp = fragment.firstChild;\n\n\t\t\t\t// Ensure the created nodes are orphaned (trac-12392)\n\t\t\t\ttmp.textContent = \"\";\n\t\t\t}\n\t\t}\n\t}\n\n\t// Remove wrapper from fragment\n\tfragment.textContent = \"\";\n\n\ti = 0;\n\twhile ( ( elem = nodes[ i++ ] ) ) {\n\n\t\t// Skip elements already in the context collection (trac-4087)\n\t\tif ( selection && jQuery.inArray( elem, selection ) > -1 ) {\n\t\t\tif ( ignored ) {\n\t\t\t\tignored.push( elem );\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\n\t\tattached = isAttached( elem );\n\n\t\t// Append to fragment\n\t\ttmp = getAll( fragment.appendChild( elem ), \"script\" );\n\n\t\t// Preserve script evaluation history\n\t\tif ( attached ) {\n\t\t\tsetGlobalEval( tmp );\n\t\t}\n\n\t\t// Capture executables\n\t\tif ( scripts ) {\n\t\t\tj = 0;\n\t\t\twhile ( ( elem = tmp[ j++ ] ) ) {\n\t\t\t\tif ( rscriptType.test( elem.type || \"\" ) ) {\n\t\t\t\t\tscripts.push( elem );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn fragment;\n}\n\n\nvar rtypenamespace = /^([^.]*)(?:\\.(.+)|)/;\n\nfunction returnTrue() {\n\treturn true;\n}\n\nfunction returnFalse() {\n\treturn false;\n}\n\nfunction on( elem, types, selector, data, fn, one ) {\n\tvar origFn, type;\n\n\t// Types can be a map of types/handlers\n\tif ( typeof types === \"object\" ) {\n\n\t\t// ( types-Object, selector, data )\n\t\tif ( typeof selector !== \"string\" ) {\n\n\t\t\t// ( types-Object, data )\n\t\t\tdata = data || selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tfor ( type in types ) {\n\t\t\ton( elem, type, selector, data, types[ type ], one );\n\t\t}\n\t\treturn elem;\n\t}\n\n\tif ( data == null && fn == null ) {\n\n\t\t// ( types, fn )\n\t\tfn = selector;\n\t\tdata = selector = undefined;\n\t} else if ( fn == null ) {\n\t\tif ( typeof selector === \"string\" ) {\n\n\t\t\t// ( types, selector, fn )\n\t\t\tfn = data;\n\t\t\tdata = undefined;\n\t\t} else {\n\n\t\t\t// ( types, data, fn )\n\t\t\tfn = data;\n\t\t\tdata = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t}\n\tif ( fn === false ) {\n\t\tfn = returnFalse;\n\t} else if ( !fn ) {\n\t\treturn elem;\n\t}\n\n\tif ( one === 1 ) {\n\t\torigFn = fn;\n\t\tfn = function( event ) {\n\n\t\t\t// Can use an empty set, since event contains the info\n\t\t\tjQuery().off( event );\n\t\t\treturn origFn.apply( this, arguments );\n\t\t};\n\n\t\t// Use same guid so caller can remove using origFn\n\t\tfn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );\n\t}\n\treturn elem.each( function() {\n\t\tjQuery.event.add( this, types, fn, data, selector );\n\t} );\n}\n\n/*\n * Helper functions for managing events -- not part of the public interface.\n * Props to Dean Edwards' addEvent library for many of the ideas.\n */\njQuery.event = {\n\n\tglobal: {},\n\n\tadd: function( elem, types, handler, data, selector ) {\n\n\t\tvar handleObjIn, eventHandle, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.get( elem );\n\n\t\t// Only attach events to objects that accept data\n\t\tif ( !acceptData( elem ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Caller can pass in an object of custom data in lieu of the handler\n\t\tif ( handler.handler ) {\n\t\t\thandleObjIn = handler;\n\t\t\thandler = handleObjIn.handler;\n\t\t\tselector = handleObjIn.selector;\n\t\t}\n\n\t\t// Ensure that invalid selectors throw exceptions at attach time\n\t\t// Evaluate against documentElement in case elem is a non-element node (e.g., document)\n\t\tif ( selector ) {\n\t\t\tjQuery.find.matchesSelector( documentElement, selector );\n\t\t}\n\n\t\t// Make sure that the handler has a unique ID, used to find/remove it later\n\t\tif ( !handler.guid ) {\n\t\t\thandler.guid = jQuery.guid++;\n\t\t}\n\n\t\t// Init the element's event structure and main handler, if this is the first\n\t\tif ( !( events = elemData.events ) ) {\n\t\t\tevents = elemData.events = Object.create( null );\n\t\t}\n\t\tif ( !( eventHandle = elemData.handle ) ) {\n\t\t\teventHandle = elemData.handle = function( e ) {\n\n\t\t\t\t// Discard the second event of a jQuery.event.trigger() and\n\t\t\t\t// when an event is called after a page has unloaded\n\t\t\t\treturn typeof jQuery !== \"undefined\" && jQuery.event.triggered !== e.type ?\n\t\t\t\t\tjQuery.event.dispatch.apply( elem, arguments ) : undefined;\n\t\t\t};\n\t\t}\n\n\t\t// Handle multiple events separated by a space\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// There *must* be a type, no attaching namespace-only handlers\n\t\t\tif ( !type ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If event changes its type, use the special event handlers for the changed type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// If selector defined, determine special event api type, otherwise given type\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\n\t\t\t// Update special based on newly reset type\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\n\t\t\t// handleObj is passed to all event handlers\n\t\t\thandleObj = jQuery.extend( {\n\t\t\t\ttype: type,\n\t\t\t\torigType: origType,\n\t\t\t\tdata: data,\n\t\t\t\thandler: handler,\n\t\t\t\tguid: handler.guid,\n\t\t\t\tselector: selector,\n\t\t\t\tneedsContext: selector && jQuery.expr.match.needsContext.test( selector ),\n\t\t\t\tnamespace: namespaces.join( \".\" )\n\t\t\t}, handleObjIn );\n\n\t\t\t// Init the event handler queue if we're the first\n\t\t\tif ( !( handlers = events[ type ] ) ) {\n\t\t\t\thandlers = events[ type ] = [];\n\t\t\t\thandlers.delegateCount = 0;\n\n\t\t\t\t// Only use addEventListener if the special events handler returns false\n\t\t\t\tif ( !special.setup ||\n\t\t\t\t\tspecial.setup.call( elem, data, namespaces, eventHandle ) === false ) {\n\n\t\t\t\t\tif ( elem.addEventListener ) {\n\t\t\t\t\t\telem.addEventListener( type, eventHandle );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( special.add ) {\n\t\t\t\tspecial.add.call( elem, handleObj );\n\n\t\t\t\tif ( !handleObj.handler.guid ) {\n\t\t\t\t\thandleObj.handler.guid = handler.guid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Add to the element's handler list, delegates in front\n\t\t\tif ( selector ) {\n\t\t\t\thandlers.splice( handlers.delegateCount++, 0, handleObj );\n\t\t\t} else {\n\t\t\t\thandlers.push( handleObj );\n\t\t\t}\n\n\t\t\t// Keep track of which events have ever been used, for event optimization\n\t\t\tjQuery.event.global[ type ] = true;\n\t\t}\n\n\t},\n\n\t// Detach an event or set of events from an element\n\tremove: function( elem, types, handler, selector, mappedTypes ) {\n\n\t\tvar j, origCount, tmp,\n\t\t\tevents, t, handleObj,\n\t\t\tspecial, handlers, type, namespaces, origType,\n\t\t\telemData = dataPriv.hasData( elem ) && dataPriv.get( elem );\n\n\t\tif ( !elemData || !( events = elemData.events ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Once for each type.namespace in types; type may be omitted\n\t\ttypes = ( types || \"\" ).match( rnothtmlwhite ) || [ \"\" ];\n\t\tt = types.length;\n\t\twhile ( t-- ) {\n\t\t\ttmp = rtypenamespace.exec( types[ t ] ) || [];\n\t\t\ttype = origType = tmp[ 1 ];\n\t\t\tnamespaces = ( tmp[ 2 ] || \"\" ).split( \".\" ).sort();\n\n\t\t\t// Unbind all events (on this namespace, if provided) for the element\n\t\t\tif ( !type ) {\n\t\t\t\tfor ( type in events ) {\n\t\t\t\t\tjQuery.event.remove( elem, type + types[ t ], handler, selector, true );\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tspecial = jQuery.event.special[ type ] || {};\n\t\t\ttype = ( selector ? special.delegateType : special.bindType ) || type;\n\t\t\thandlers = events[ type ] || [];\n\t\t\ttmp = tmp[ 2 ] &&\n\t\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" );\n\n\t\t\t// Remove matching events\n\t\t\torigCount = j = handlers.length;\n\t\t\twhile ( j-- ) {\n\t\t\t\thandleObj = handlers[ j ];\n\n\t\t\t\tif ( ( mappedTypes || origType === handleObj.origType ) &&\n\t\t\t\t\t( !handler || handler.guid === handleObj.guid ) &&\n\t\t\t\t\t( !tmp || tmp.test( handleObj.namespace ) ) &&\n\t\t\t\t\t( !selector || selector === handleObj.selector ||\n\t\t\t\t\t\tselector === \"**\" && handleObj.selector ) ) {\n\t\t\t\t\thandlers.splice( j, 1 );\n\n\t\t\t\t\tif ( handleObj.selector ) {\n\t\t\t\t\t\thandlers.delegateCount--;\n\t\t\t\t\t}\n\t\t\t\t\tif ( special.remove ) {\n\t\t\t\t\t\tspecial.remove.call( elem, handleObj );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Remove generic event handler if we removed something and no more handlers exist\n\t\t\t// (avoids potential for endless recursion during removal of special event handlers)\n\t\t\tif ( origCount && !handlers.length ) {\n\t\t\t\tif ( !special.teardown ||\n\t\t\t\t\tspecial.teardown.call( elem, namespaces, elemData.handle ) === false ) {\n\n\t\t\t\t\tjQuery.removeEvent( elem, type, elemData.handle );\n\t\t\t\t}\n\n\t\t\t\tdelete events[ type ];\n\t\t\t}\n\t\t}\n\n\t\t// Remove data and the expando if it's no longer used\n\t\tif ( jQuery.isEmptyObject( events ) ) {\n\t\t\tdataPriv.remove( elem, \"handle events\" );\n\t\t}\n\t},\n\n\tdispatch: function( nativeEvent ) {\n\n\t\tvar i, j, ret, matched, handleObj, handlerQueue,\n\t\t\targs = new Array( arguments.length ),\n\n\t\t\t// Make a writable jQuery.Event from the native event object\n\t\t\tevent = jQuery.event.fix( nativeEvent ),\n\n\t\t\thandlers = (\n\t\t\t\tdataPriv.get( this, \"events\" ) || Object.create( null )\n\t\t\t)[ event.type ] || [],\n\t\t\tspecial = jQuery.event.special[ event.type ] || {};\n\n\t\t// Use the fix-ed jQuery.Event rather than the (read-only) native event\n\t\targs[ 0 ] = event;\n\n\t\tfor ( i = 1; i < arguments.length; i++ ) {\n\t\t\targs[ i ] = arguments[ i ];\n\t\t}\n\n\t\tevent.delegateTarget = this;\n\n\t\t// Call the preDispatch hook for the mapped type, and let it bail if desired\n\t\tif ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine handlers\n\t\thandlerQueue = jQuery.event.handlers.call( this, event, handlers );\n\n\t\t// Run delegates first; they may want to stop propagation beneath us\n\t\ti = 0;\n\t\twhile ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {\n\t\t\tevent.currentTarget = matched.elem;\n\n\t\t\tj = 0;\n\t\t\twhile ( ( handleObj = matched.handlers[ j++ ] ) &&\n\t\t\t\t!event.isImmediatePropagationStopped() ) {\n\n\t\t\t\t// If the event is namespaced, then each handler is only invoked if it is\n\t\t\t\t// specially universal or its namespaces are a superset of the event's.\n\t\t\t\tif ( !event.rnamespace || handleObj.namespace === false ||\n\t\t\t\t\tevent.rnamespace.test( handleObj.namespace ) ) {\n\n\t\t\t\t\tevent.handleObj = handleObj;\n\t\t\t\t\tevent.data = handleObj.data;\n\n\t\t\t\t\tret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||\n\t\t\t\t\t\thandleObj.handler ).apply( matched.elem, args );\n\n\t\t\t\t\tif ( ret !== undefined ) {\n\t\t\t\t\t\tif ( ( event.result = ret ) === false ) {\n\t\t\t\t\t\t\tevent.preventDefault();\n\t\t\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Call the postDispatch hook for the mapped type\n\t\tif ( special.postDispatch ) {\n\t\t\tspecial.postDispatch.call( this, event );\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\thandlers: function( event, handlers ) {\n\t\tvar i, handleObj, sel, matchedHandlers, matchedSelectors,\n\t\t\thandlerQueue = [],\n\t\t\tdelegateCount = handlers.delegateCount,\n\t\t\tcur = event.target;\n\n\t\t// Find delegate handlers\n\t\tif ( delegateCount &&\n\n\t\t\t// Support: IE <=9\n\t\t\t// Black-hole SVG <use> instance trees (trac-13180)\n\t\t\tcur.nodeType &&\n\n\t\t\t// Support: Firefox <=42\n\t\t\t// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)\n\t\t\t// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click\n\t\t\t// Support: IE 11 only\n\t\t\t// ...but not arrow key \"clicks\" of radio inputs, which can have `button` -1 (gh-2343)\n\t\t\t!( event.type === \"click\" && event.button >= 1 ) ) {\n\n\t\t\tfor ( ; cur !== this; cur = cur.parentNode || this ) {\n\n\t\t\t\t// Don't check non-elements (trac-13208)\n\t\t\t\t// Don't process clicks on disabled elements (trac-6911, trac-8165, trac-11382, trac-11764)\n\t\t\t\tif ( cur.nodeType === 1 && !( event.type === \"click\" && cur.disabled === true ) ) {\n\t\t\t\t\tmatchedHandlers = [];\n\t\t\t\t\tmatchedSelectors = {};\n\t\t\t\t\tfor ( i = 0; i < delegateCount; i++ ) {\n\t\t\t\t\t\thandleObj = handlers[ i ];\n\n\t\t\t\t\t\t// Don't conflict with Object.prototype properties (trac-13203)\n\t\t\t\t\t\tsel = handleObj.selector + \" \";\n\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] === undefined ) {\n\t\t\t\t\t\t\tmatchedSelectors[ sel ] = handleObj.needsContext ?\n\t\t\t\t\t\t\t\tjQuery( sel, this ).index( cur ) > -1 :\n\t\t\t\t\t\t\t\tjQuery.find( sel, this, null, [ cur ] ).length;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( matchedSelectors[ sel ] ) {\n\t\t\t\t\t\t\tmatchedHandlers.push( handleObj );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ( matchedHandlers.length ) {\n\t\t\t\t\t\thandlerQueue.push( { elem: cur, handlers: matchedHandlers } );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Add the remaining (directly-bound) handlers\n\t\tcur = this;\n\t\tif ( delegateCount < handlers.length ) {\n\t\t\thandlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );\n\t\t}\n\n\t\treturn handlerQueue;\n\t},\n\n\taddProp: function( name, hook ) {\n\t\tObject.defineProperty( jQuery.Event.prototype, name, {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: true,\n\n\t\t\tget: isFunction( hook ) ?\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\treturn hook( this.originalEvent );\n\t\t\t\t\t}\n\t\t\t\t} :\n\t\t\t\tfunction() {\n\t\t\t\t\tif ( this.originalEvent ) {\n\t\t\t\t\t\treturn this.originalEvent[ name ];\n\t\t\t\t\t}\n\t\t\t\t},\n\n\t\t\tset: function( value ) {\n\t\t\t\tObject.defineProperty( this, name, {\n\t\t\t\t\tenumerable: true,\n\t\t\t\t\tconfigurable: true,\n\t\t\t\t\twritable: true,\n\t\t\t\t\tvalue: value\n\t\t\t\t} );\n\t\t\t}\n\t\t} );\n\t},\n\n\tfix: function( originalEvent ) {\n\t\treturn originalEvent[ jQuery.expando ] ?\n\t\t\toriginalEvent :\n\t\t\tnew jQuery.Event( originalEvent );\n\t},\n\n\tspecial: {\n\t\tload: {\n\n\t\t\t// Prevent triggered image.load events from bubbling to window.load\n\t\t\tnoBubble: true\n\t\t},\n\t\tclick: {\n\n\t\t\t// Utilize native event to ensure correct state for checkable inputs\n\t\t\tsetup: function( data ) {\n\n\t\t\t\t// For mutual compressibility with _default, replace `this` access with a local var.\n\t\t\t\t// `|| data` is dead code meant only to preserve the variable through minification.\n\t\t\t\tvar el = this || data;\n\n\t\t\t\t// Claim the first handler\n\t\t\t\tif ( rcheckableType.test( el.type ) &&\n\t\t\t\t\tel.click && nodeName( el, \"input\" ) ) {\n\n\t\t\t\t\t// dataPriv.set( el, \"click\", ... )\n\t\t\t\t\tleverageNative( el, \"click\", true );\n\t\t\t\t}\n\n\t\t\t\t// Return false to allow normal processing in the caller\n\t\t\t\treturn false;\n\t\t\t},\n\t\t\ttrigger: function( data ) {\n\n\t\t\t\t// For mutual compressibility with _default, replace `this` access with a local var.\n\t\t\t\t// `|| data` is dead code meant only to preserve the variable through minification.\n\t\t\t\tvar el = this || data;\n\n\t\t\t\t// Force setup before triggering a click\n\t\t\t\tif ( rcheckableType.test( el.type ) &&\n\t\t\t\t\tel.click && nodeName( el, \"input\" ) ) {\n\n\t\t\t\t\tleverageNative( el, \"click\" );\n\t\t\t\t}\n\n\t\t\t\t// Return non-false to allow normal event-path propagation\n\t\t\t\treturn true;\n\t\t\t},\n\n\t\t\t// For cross-browser consistency, suppress native .click() on links\n\t\t\t// Also prevent it if we're currently inside a leveraged native-event stack\n\t\t\t_default: function( event ) {\n\t\t\t\tvar target = event.target;\n\t\t\t\treturn rcheckableType.test( target.type ) &&\n\t\t\t\t\ttarget.click && nodeName( target, \"input\" ) &&\n\t\t\t\t\tdataPriv.get( target, \"click\" ) ||\n\t\t\t\t\tnodeName( target, \"a\" );\n\t\t\t}\n\t\t},\n\n\t\tbeforeunload: {\n\t\t\tpostDispatch: function( event ) {\n\n\t\t\t\t// Support: Firefox 20+\n\t\t\t\t// Firefox doesn't alert if the returnValue field is not set.\n\t\t\t\tif ( event.result !== undefined && event.originalEvent ) {\n\t\t\t\t\tevent.originalEvent.returnValue = event.result;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Ensure the presence of an event listener that handles manually-triggered\n// synthetic events by interrupting progress until reinvoked in response to\n// *native* events that it fires directly, ensuring that state changes have\n// already occurred before other listeners are invoked.\nfunction leverageNative( el, type, isSetup ) {\n\n\t// Missing `isSetup` indicates a trigger call, which must force setup through jQuery.event.add\n\tif ( !isSetup ) {\n\t\tif ( dataPriv.get( el, type ) === undefined ) {\n\t\t\tjQuery.event.add( el, type, returnTrue );\n\t\t}\n\t\treturn;\n\t}\n\n\t// Register the controller as a special universal handler for all event namespaces\n\tdataPriv.set( el, type, false );\n\tjQuery.event.add( el, type, {\n\t\tnamespace: false,\n\t\thandler: function( event ) {\n\t\t\tvar result,\n\t\t\t\tsaved = dataPriv.get( this, type );\n\n\t\t\tif ( ( event.isTrigger & 1 ) && this[ type ] ) {\n\n\t\t\t\t// Interrupt processing of the outer synthetic .trigger()ed event\n\t\t\t\tif ( !saved ) {\n\n\t\t\t\t\t// Store arguments for use when handling the inner native event\n\t\t\t\t\t// There will always be at least one argument (an event object), so this array\n\t\t\t\t\t// will not be confused with a leftover capture object.\n\t\t\t\t\tsaved = slice.call( arguments );\n\t\t\t\t\tdataPriv.set( this, type, saved );\n\n\t\t\t\t\t// Trigger the native event and capture its result\n\t\t\t\t\tthis[ type ]();\n\t\t\t\t\tresult = dataPriv.get( this, type );\n\t\t\t\t\tdataPriv.set( this, type, false );\n\n\t\t\t\t\tif ( saved !== result ) {\n\n\t\t\t\t\t\t// Cancel the outer synthetic event\n\t\t\t\t\t\tevent.stopImmediatePropagation();\n\t\t\t\t\t\tevent.preventDefault();\n\n\t\t\t\t\t\treturn result;\n\t\t\t\t\t}\n\n\t\t\t\t// If this is an inner synthetic event for an event with a bubbling surrogate\n\t\t\t\t// (focus or blur), assume that the surrogate already propagated from triggering\n\t\t\t\t// the native event and prevent that from happening again here.\n\t\t\t\t// This technically gets the ordering wrong w.r.t. to `.trigger()` (in which the\n\t\t\t\t// bubbling surrogate propagates *after* the non-bubbling base), but that seems\n\t\t\t\t// less bad than duplication.\n\t\t\t\t} else if ( ( jQuery.event.special[ type ] || {} ).delegateType ) {\n\t\t\t\t\tevent.stopPropagation();\n\t\t\t\t}\n\n\t\t\t// If this is a native event triggered above, everything is now in order\n\t\t\t// Fire an inner synthetic event with the original arguments\n\t\t\t} else if ( saved ) {\n\n\t\t\t\t// ...and capture the result\n\t\t\t\tdataPriv.set( this, type, jQuery.event.trigger(\n\t\t\t\t\tsaved[ 0 ],\n\t\t\t\t\tsaved.slice( 1 ),\n\t\t\t\t\tthis\n\t\t\t\t) );\n\n\t\t\t\t// Abort handling of the native event by all jQuery handlers while allowing\n\t\t\t\t// native handlers on the same element to run. On target, this is achieved\n\t\t\t\t// by stopping immediate propagation just on the jQuery event. However,\n\t\t\t\t// the native event is re-wrapped by a jQuery one on each level of the\n\t\t\t\t// propagation so the only way to stop it for jQuery is to stop it for\n\t\t\t\t// everyone via native `stopPropagation()`. This is not a problem for\n\t\t\t\t// focus/blur which don't bubble, but it does also stop click on checkboxes\n\t\t\t\t// and radios. We accept this limitation.\n\t\t\t\tevent.stopPropagation();\n\t\t\t\tevent.isImmediatePropagationStopped = returnTrue;\n\t\t\t}\n\t\t}\n\t} );\n}\n\njQuery.removeEvent = function( elem, type, handle ) {\n\n\t// This \"if\" is needed for plain objects\n\tif ( elem.removeEventListener ) {\n\t\telem.removeEventListener( type, handle );\n\t}\n};\n\njQuery.Event = function( src, props ) {\n\n\t// Allow instantiation without the 'new' keyword\n\tif ( !( this instanceof jQuery.Event ) ) {\n\t\treturn new jQuery.Event( src, props );\n\t}\n\n\t// Event object\n\tif ( src && src.type ) {\n\t\tthis.originalEvent = src;\n\t\tthis.type = src.type;\n\n\t\t// Events bubbling up the document may have been marked as prevented\n\t\t// by a handler lower down the tree; reflect the correct value.\n\t\tthis.isDefaultPrevented = src.defaultPrevented ||\n\t\t\t\tsrc.defaultPrevented === undefined &&\n\n\t\t\t\t// Support: Android <=2.3 only\n\t\t\t\tsrc.returnValue === false ?\n\t\t\treturnTrue :\n\t\t\treturnFalse;\n\n\t\t// Create target properties\n\t\t// Support: Safari <=6 - 7 only\n\t\t// Target should not be a text node (trac-504, trac-13143)\n\t\tthis.target = ( src.target && src.target.nodeType === 3 ) ?\n\t\t\tsrc.target.parentNode :\n\t\t\tsrc.target;\n\n\t\tthis.currentTarget = src.currentTarget;\n\t\tthis.relatedTarget = src.relatedTarget;\n\n\t// Event type\n\t} else {\n\t\tthis.type = src;\n\t}\n\n\t// Put explicitly provided properties onto the event object\n\tif ( props ) {\n\t\tjQuery.extend( this, props );\n\t}\n\n\t// Create a timestamp if incoming event doesn't have one\n\tthis.timeStamp = src && src.timeStamp || Date.now();\n\n\t// Mark it as fixed\n\tthis[ jQuery.expando ] = true;\n};\n\n// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding\n// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html\njQuery.Event.prototype = {\n\tconstructor: jQuery.Event,\n\tisDefaultPrevented: returnFalse,\n\tisPropagationStopped: returnFalse,\n\tisImmediatePropagationStopped: returnFalse,\n\tisSimulated: false,\n\n\tpreventDefault: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isDefaultPrevented = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.preventDefault();\n\t\t}\n\t},\n\tstopPropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isPropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopPropagation();\n\t\t}\n\t},\n\tstopImmediatePropagation: function() {\n\t\tvar e = this.originalEvent;\n\n\t\tthis.isImmediatePropagationStopped = returnTrue;\n\n\t\tif ( e && !this.isSimulated ) {\n\t\t\te.stopImmediatePropagation();\n\t\t}\n\n\t\tthis.stopPropagation();\n\t}\n};\n\n// Includes all common event props including KeyEvent and MouseEvent specific props\njQuery.each( {\n\taltKey: true,\n\tbubbles: true,\n\tcancelable: true,\n\tchangedTouches: true,\n\tctrlKey: true,\n\tdetail: true,\n\teventPhase: true,\n\tmetaKey: true,\n\tpageX: true,\n\tpageY: true,\n\tshiftKey: true,\n\tview: true,\n\t\"char\": true,\n\tcode: true,\n\tcharCode: true,\n\tkey: true,\n\tkeyCode: true,\n\tbutton: true,\n\tbuttons: true,\n\tclientX: true,\n\tclientY: true,\n\toffsetX: true,\n\toffsetY: true,\n\tpointerId: true,\n\tpointerType: true,\n\tscreenX: true,\n\tscreenY: true,\n\ttargetTouches: true,\n\ttoElement: true,\n\ttouches: true,\n\twhich: true\n}, jQuery.event.addProp );\n\njQuery.each( { focus: \"focusin\", blur: \"focusout\" }, function( type, delegateType ) {\n\n\tfunction focusMappedHandler( nativeEvent ) {\n\t\tif ( document.documentMode ) {\n\n\t\t\t// Support: IE 11+\n\t\t\t// Attach a single focusin/focusout handler on the document while someone wants\n\t\t\t// focus/blur. This is because the former are synchronous in IE while the latter\n\t\t\t// are async. In other browsers, all those handlers are invoked synchronously.\n\n\t\t\t// `handle` from private data would already wrap the event, but we need\n\t\t\t// to change the `type` here.\n\t\t\tvar handle = dataPriv.get( this, \"handle\" ),\n\t\t\t\tevent = jQuery.event.fix( nativeEvent );\n\t\t\tevent.type = nativeEvent.type === \"focusin\" ? \"focus\" : \"blur\";\n\t\t\tevent.isSimulated = true;\n\n\t\t\t// First, handle focusin/focusout\n\t\t\thandle( nativeEvent );\n\n\t\t\t// ...then, handle focus/blur\n\t\t\t//\n\t\t\t// focus/blur don't bubble while focusin/focusout do; simulate the former by only\n\t\t\t// invoking the handler at the lower level.\n\t\t\tif ( event.target === event.currentTarget ) {\n\n\t\t\t\t// The setup part calls `leverageNative`, which, in turn, calls\n\t\t\t\t// `jQuery.event.add`, so event handle will already have been set\n\t\t\t\t// by this point.\n\t\t\t\thandle( event );\n\t\t\t}\n\t\t} else {\n\n\t\t\t// For non-IE browsers, attach a single capturing handler on the document\n\t\t\t// while someone wants focusin/focusout.\n\t\t\tjQuery.event.simulate( delegateType, nativeEvent.target,\n\t\t\t\tjQuery.event.fix( nativeEvent ) );\n\t\t}\n\t}\n\n\tjQuery.event.special[ type ] = {\n\n\t\t// Utilize native event if possible so blur/focus sequence is correct\n\t\tsetup: function() {\n\n\t\t\tvar attaches;\n\n\t\t\t// Claim the first handler\n\t\t\t// dataPriv.set( this, \"focus\", ... )\n\t\t\t// dataPriv.set( this, \"blur\", ... )\n\t\t\tleverageNative( this, type, true );\n\n\t\t\tif ( document.documentMode ) {\n\n\t\t\t\t// Support: IE 9 - 11+\n\t\t\t\t// We use the same native handler for focusin & focus (and focusout & blur)\n\t\t\t\t// so we need to coordinate setup & teardown parts between those events.\n\t\t\t\t// Use `delegateType` as the key as `type` is already used by `leverageNative`.\n\t\t\t\tattaches = dataPriv.get( this, delegateType );\n\t\t\t\tif ( !attaches ) {\n\t\t\t\t\tthis.addEventListener( delegateType, focusMappedHandler );\n\t\t\t\t}\n\t\t\t\tdataPriv.set( this, delegateType, ( attaches || 0 ) + 1 );\n\t\t\t} else {\n\n\t\t\t\t// Return false to allow normal processing in the caller\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\t\ttrigger: function() {\n\n\t\t\t// Force setup before trigger\n\t\t\tleverageNative( this, type );\n\n\t\t\t// Return non-false to allow normal event-path propagation\n\t\t\treturn true;\n\t\t},\n\n\t\tteardown: function() {\n\t\t\tvar attaches;\n\n\t\t\tif ( document.documentMode ) {\n\t\t\t\tattaches = dataPriv.get( this, delegateType ) - 1;\n\t\t\t\tif ( !attaches ) {\n\t\t\t\t\tthis.removeEventListener( delegateType, focusMappedHandler );\n\t\t\t\t\tdataPriv.remove( this, delegateType );\n\t\t\t\t} else {\n\t\t\t\t\tdataPriv.set( this, delegateType, attaches );\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t// Return false to indicate standard teardown should be applied\n\t\t\t\treturn false;\n\t\t\t}\n\t\t},\n\n\t\t// Suppress native focus or blur if we're currently inside\n\t\t// a leveraged native-event stack\n\t\t_default: function( event ) {\n\t\t\treturn dataPriv.get( event.target, type );\n\t\t},\n\n\t\tdelegateType: delegateType\n\t};\n\n\t// Support: Firefox <=44\n\t// Firefox doesn't have focus(in | out) events\n\t// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787\n\t//\n\t// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1\n\t// focus(in | out) events fire after focus & blur events,\n\t// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order\n\t// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857\n\t//\n\t// Support: IE 9 - 11+\n\t// To preserve relative focusin/focus & focusout/blur event order guaranteed on the 3.x branch,\n\t// attach a single handler for both events in IE.\n\tjQuery.event.special[ delegateType ] = {\n\t\tsetup: function() {\n\n\t\t\t// Handle: regular nodes (via `this.ownerDocument`), window\n\t\t\t// (via `this.document`) & document (via `this`).\n\t\t\tvar doc = this.ownerDocument || this.document || this,\n\t\t\t\tdataHolder = document.documentMode ? this : doc,\n\t\t\t\tattaches = dataPriv.get( dataHolder, delegateType );\n\n\t\t\t// Support: IE 9 - 11+\n\t\t\t// We use the same native handler for focusin & focus (and focusout & blur)\n\t\t\t// so we need to coordinate setup & teardown parts between those events.\n\t\t\t// Use `delegateType` as the key as `type` is already used by `leverageNative`.\n\t\t\tif ( !attaches ) {\n\t\t\t\tif ( document.documentMode ) {\n\t\t\t\t\tthis.addEventListener( delegateType, focusMappedHandler );\n\t\t\t\t} else {\n\t\t\t\t\tdoc.addEventListener( type, focusMappedHandler, true );\n\t\t\t\t}\n\t\t\t}\n\t\t\tdataPriv.set( dataHolder, delegateType, ( attaches || 0 ) + 1 );\n\t\t},\n\t\tteardown: function() {\n\t\t\tvar doc = this.ownerDocument || this.document || this,\n\t\t\t\tdataHolder = document.documentMode ? this : doc,\n\t\t\t\tattaches = dataPriv.get( dataHolder, delegateType ) - 1;\n\n\t\t\tif ( !attaches ) {\n\t\t\t\tif ( document.documentMode ) {\n\t\t\t\t\tthis.removeEventListener( delegateType, focusMappedHandler );\n\t\t\t\t} else {\n\t\t\t\t\tdoc.removeEventListener( type, focusMappedHandler, true );\n\t\t\t\t}\n\t\t\t\tdataPriv.remove( dataHolder, delegateType );\n\t\t\t} else {\n\t\t\t\tdataPriv.set( dataHolder, delegateType, attaches );\n\t\t\t}\n\t\t}\n\t};\n} );\n\n// Create mouseenter/leave events using mouseover/out and event-time checks\n// so that event delegation works in jQuery.\n// Do the same for pointerenter/pointerleave and pointerover/pointerout\n//\n// Support: Safari 7 only\n// Safari sends mouseenter too often; see:\n// https://bugs.chromium.org/p/chromium/issues/detail?id=470258\n// for the description of the bug (it existed in older Chrome versions as well).\njQuery.each( {\n\tmouseenter: \"mouseover\",\n\tmouseleave: \"mouseout\",\n\tpointerenter: \"pointerover\",\n\tpointerleave: \"pointerout\"\n}, function( orig, fix ) {\n\tjQuery.event.special[ orig ] = {\n\t\tdelegateType: fix,\n\t\tbindType: fix,\n\n\t\thandle: function( event ) {\n\t\t\tvar ret,\n\t\t\t\ttarget = this,\n\t\t\t\trelated = event.relatedTarget,\n\t\t\t\thandleObj = event.handleObj;\n\n\t\t\t// For mouseenter/leave call the handler if related is outside the target.\n\t\t\t// NB: No relatedTarget if the mouse left/entered the browser window\n\t\t\tif ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {\n\t\t\t\tevent.type = handleObj.origType;\n\t\t\t\tret = handleObj.handler.apply( this, arguments );\n\t\t\t\tevent.type = fix;\n\t\t\t}\n\t\t\treturn ret;\n\t\t}\n\t};\n} );\n\njQuery.fn.extend( {\n\n\ton: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn );\n\t},\n\tone: function( types, selector, data, fn ) {\n\t\treturn on( this, types, selector, data, fn, 1 );\n\t},\n\toff: function( types, selector, fn ) {\n\t\tvar handleObj, type;\n\t\tif ( types && types.preventDefault && types.handleObj ) {\n\n\t\t\t// ( event )  dispatched jQuery.Event\n\t\t\thandleObj = types.handleObj;\n\t\t\tjQuery( types.delegateTarget ).off(\n\t\t\t\thandleObj.namespace ?\n\t\t\t\t\thandleObj.origType + \".\" + handleObj.namespace :\n\t\t\t\t\thandleObj.origType,\n\t\t\t\thandleObj.selector,\n\t\t\t\thandleObj.handler\n\t\t\t);\n\t\t\treturn this;\n\t\t}\n\t\tif ( typeof types === \"object\" ) {\n\n\t\t\t// ( types-object [, selector] )\n\t\t\tfor ( type in types ) {\n\t\t\t\tthis.off( type, selector, types[ type ] );\n\t\t\t}\n\t\t\treturn this;\n\t\t}\n\t\tif ( selector === false || typeof selector === \"function\" ) {\n\n\t\t\t// ( types [, fn] )\n\t\t\tfn = selector;\n\t\t\tselector = undefined;\n\t\t}\n\t\tif ( fn === false ) {\n\t\t\tfn = returnFalse;\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.remove( this, types, fn, selector );\n\t\t} );\n\t}\n} );\n\n\nvar\n\n\t// Support: IE <=10 - 11, Edge 12 - 13 only\n\t// In IE/Edge using regex groups here causes severe slowdowns.\n\t// See https://connect.microsoft.com/IE/feedback/details/1736512/\n\trnoInnerhtml = /<script|<style|<link/i,\n\n\t// checked=\"checked\" or checked\n\trchecked = /checked\\s*(?:[^=]|=\\s*.checked.)/i,\n\n\trcleanScript = /^\\s*<!\\[CDATA\\[|\\]\\]>\\s*$/g;\n\n// Prefer a tbody over its parent table for containing new rows\nfunction manipulationTarget( elem, content ) {\n\tif ( nodeName( elem, \"table\" ) &&\n\t\tnodeName( content.nodeType !== 11 ? content : content.firstChild, \"tr\" ) ) {\n\n\t\treturn jQuery( elem ).children( \"tbody\" )[ 0 ] || elem;\n\t}\n\n\treturn elem;\n}\n\n// Replace/restore the type attribute of script elements for safe DOM manipulation\nfunction disableScript( elem ) {\n\telem.type = ( elem.getAttribute( \"type\" ) !== null ) + \"/\" + elem.type;\n\treturn elem;\n}\nfunction restoreScript( elem ) {\n\tif ( ( elem.type || \"\" ).slice( 0, 5 ) === \"true/\" ) {\n\t\telem.type = elem.type.slice( 5 );\n\t} else {\n\t\telem.removeAttribute( \"type\" );\n\t}\n\n\treturn elem;\n}\n\nfunction cloneCopyEvent( src, dest ) {\n\tvar i, l, type, pdataOld, udataOld, udataCur, events;\n\n\tif ( dest.nodeType !== 1 ) {\n\t\treturn;\n\t}\n\n\t// 1. Copy private data: events, handlers, etc.\n\tif ( dataPriv.hasData( src ) ) {\n\t\tpdataOld = dataPriv.get( src );\n\t\tevents = pdataOld.events;\n\n\t\tif ( events ) {\n\t\t\tdataPriv.remove( dest, \"handle events\" );\n\n\t\t\tfor ( type in events ) {\n\t\t\t\tfor ( i = 0, l = events[ type ].length; i < l; i++ ) {\n\t\t\t\t\tjQuery.event.add( dest, type, events[ type ][ i ] );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// 2. Copy user data\n\tif ( dataUser.hasData( src ) ) {\n\t\tudataOld = dataUser.access( src );\n\t\tudataCur = jQuery.extend( {}, udataOld );\n\n\t\tdataUser.set( dest, udataCur );\n\t}\n}\n\n// Fix IE bugs, see support tests\nfunction fixInput( src, dest ) {\n\tvar nodeName = dest.nodeName.toLowerCase();\n\n\t// Fails to persist the checked state of a cloned checkbox or radio button.\n\tif ( nodeName === \"input\" && rcheckableType.test( src.type ) ) {\n\t\tdest.checked = src.checked;\n\n\t// Fails to return the selected option to the default selected state when cloning options\n\t} else if ( nodeName === \"input\" || nodeName === \"textarea\" ) {\n\t\tdest.defaultValue = src.defaultValue;\n\t}\n}\n\nfunction domManip( collection, args, callback, ignored ) {\n\n\t// Flatten any nested arrays\n\targs = flat( args );\n\n\tvar fragment, first, scripts, hasScripts, node, doc,\n\t\ti = 0,\n\t\tl = collection.length,\n\t\tiNoClone = l - 1,\n\t\tvalue = args[ 0 ],\n\t\tvalueIsFunction = isFunction( value );\n\n\t// We can't cloneNode fragments that contain checked, in WebKit\n\tif ( valueIsFunction ||\n\t\t\t( l > 1 && typeof value === \"string\" &&\n\t\t\t\t!support.checkClone && rchecked.test( value ) ) ) {\n\t\treturn collection.each( function( index ) {\n\t\t\tvar self = collection.eq( index );\n\t\t\tif ( valueIsFunction ) {\n\t\t\t\targs[ 0 ] = value.call( this, index, self.html() );\n\t\t\t}\n\t\t\tdomManip( self, args, callback, ignored );\n\t\t} );\n\t}\n\n\tif ( l ) {\n\t\tfragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );\n\t\tfirst = fragment.firstChild;\n\n\t\tif ( fragment.childNodes.length === 1 ) {\n\t\t\tfragment = first;\n\t\t}\n\n\t\t// Require either new content or an interest in ignored elements to invoke the callback\n\t\tif ( first || ignored ) {\n\t\t\tscripts = jQuery.map( getAll( fragment, \"script\" ), disableScript );\n\t\t\thasScripts = scripts.length;\n\n\t\t\t// Use the original fragment for the last item\n\t\t\t// instead of the first because it can end up\n\t\t\t// being emptied incorrectly in certain situations (trac-8070).\n\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\tnode = fragment;\n\n\t\t\t\tif ( i !== iNoClone ) {\n\t\t\t\t\tnode = jQuery.clone( node, true, true );\n\n\t\t\t\t\t// Keep references to cloned scripts for later restoration\n\t\t\t\t\tif ( hasScripts ) {\n\n\t\t\t\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t\t\t\t// push.apply(_, arraylike) throws on ancient WebKit\n\t\t\t\t\t\tjQuery.merge( scripts, getAll( node, \"script\" ) );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tcallback.call( collection[ i ], node, i );\n\t\t\t}\n\n\t\t\tif ( hasScripts ) {\n\t\t\t\tdoc = scripts[ scripts.length - 1 ].ownerDocument;\n\n\t\t\t\t// Re-enable scripts\n\t\t\t\tjQuery.map( scripts, restoreScript );\n\n\t\t\t\t// Evaluate executable scripts on first document insertion\n\t\t\t\tfor ( i = 0; i < hasScripts; i++ ) {\n\t\t\t\t\tnode = scripts[ i ];\n\t\t\t\t\tif ( rscriptType.test( node.type || \"\" ) &&\n\t\t\t\t\t\t!dataPriv.access( node, \"globalEval\" ) &&\n\t\t\t\t\t\tjQuery.contains( doc, node ) ) {\n\n\t\t\t\t\t\tif ( node.src && ( node.type || \"\" ).toLowerCase()  !== \"module\" ) {\n\n\t\t\t\t\t\t\t// Optional AJAX dependency, but won't run scripts if not present\n\t\t\t\t\t\t\tif ( jQuery._evalUrl && !node.noModule ) {\n\t\t\t\t\t\t\t\tjQuery._evalUrl( node.src, {\n\t\t\t\t\t\t\t\t\tnonce: node.nonce || node.getAttribute( \"nonce\" )\n\t\t\t\t\t\t\t\t}, doc );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Unwrap a CDATA section containing script contents. This shouldn't be\n\t\t\t\t\t\t\t// needed as in XML documents they're already not visible when\n\t\t\t\t\t\t\t// inspecting element contents and in HTML documents they have no\n\t\t\t\t\t\t\t// meaning but we're preserving that logic for backwards compatibility.\n\t\t\t\t\t\t\t// This will be removed completely in 4.0. See gh-4904.\n\t\t\t\t\t\t\tDOMEval( node.textContent.replace( rcleanScript, \"\" ), node, doc );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn collection;\n}\n\nfunction remove( elem, selector, keepData ) {\n\tvar node,\n\t\tnodes = selector ? jQuery.filter( selector, elem ) : elem,\n\t\ti = 0;\n\n\tfor ( ; ( node = nodes[ i ] ) != null; i++ ) {\n\t\tif ( !keepData && node.nodeType === 1 ) {\n\t\t\tjQuery.cleanData( getAll( node ) );\n\t\t}\n\n\t\tif ( node.parentNode ) {\n\t\t\tif ( keepData && isAttached( node ) ) {\n\t\t\t\tsetGlobalEval( getAll( node, \"script\" ) );\n\t\t\t}\n\t\t\tnode.parentNode.removeChild( node );\n\t\t}\n\t}\n\n\treturn elem;\n}\n\njQuery.extend( {\n\thtmlPrefilter: function( html ) {\n\t\treturn html;\n\t},\n\n\tclone: function( elem, dataAndEvents, deepDataAndEvents ) {\n\t\tvar i, l, srcElements, destElements,\n\t\t\tclone = elem.cloneNode( true ),\n\t\t\tinPage = isAttached( elem );\n\n\t\t// Fix IE cloning issues\n\t\tif ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&\n\t\t\t\t!jQuery.isXMLDoc( elem ) ) {\n\n\t\t\t// We eschew jQuery#find here for performance reasons:\n\t\t\t// https://jsperf.com/getall-vs-sizzle/2\n\t\t\tdestElements = getAll( clone );\n\t\t\tsrcElements = getAll( elem );\n\n\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\n\t\t\t\tfixInput( srcElements[ i ], destElements[ i ] );\n\t\t\t}\n\t\t}\n\n\t\t// Copy the events from the original to the clone\n\t\tif ( dataAndEvents ) {\n\t\t\tif ( deepDataAndEvents ) {\n\t\t\t\tsrcElements = srcElements || getAll( elem );\n\t\t\t\tdestElements = destElements || getAll( clone );\n\n\t\t\t\tfor ( i = 0, l = srcElements.length; i < l; i++ ) {\n\t\t\t\t\tcloneCopyEvent( srcElements[ i ], destElements[ i ] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcloneCopyEvent( elem, clone );\n\t\t\t}\n\t\t}\n\n\t\t// Preserve script evaluation history\n\t\tdestElements = getAll( clone, \"script\" );\n\t\tif ( destElements.length > 0 ) {\n\t\t\tsetGlobalEval( destElements, !inPage && getAll( elem, \"script\" ) );\n\t\t}\n\n\t\t// Return the cloned set\n\t\treturn clone;\n\t},\n\n\tcleanData: function( elems ) {\n\t\tvar data, elem, type,\n\t\t\tspecial = jQuery.event.special,\n\t\t\ti = 0;\n\n\t\tfor ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {\n\t\t\tif ( acceptData( elem ) ) {\n\t\t\t\tif ( ( data = elem[ dataPriv.expando ] ) ) {\n\t\t\t\t\tif ( data.events ) {\n\t\t\t\t\t\tfor ( type in data.events ) {\n\t\t\t\t\t\t\tif ( special[ type ] ) {\n\t\t\t\t\t\t\t\tjQuery.event.remove( elem, type );\n\n\t\t\t\t\t\t\t// This is a shortcut to avoid jQuery.event.remove's overhead\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tjQuery.removeEvent( elem, type, data.handle );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Support: Chrome <=35 - 45+\n\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\n\t\t\t\t\telem[ dataPriv.expando ] = undefined;\n\t\t\t\t}\n\t\t\t\tif ( elem[ dataUser.expando ] ) {\n\n\t\t\t\t\t// Support: Chrome <=35 - 45+\n\t\t\t\t\t// Assign undefined instead of using delete, see Data#remove\n\t\t\t\t\telem[ dataUser.expando ] = undefined;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n} );\n\njQuery.fn.extend( {\n\tdetach: function( selector ) {\n\t\treturn remove( this, selector, true );\n\t},\n\n\tremove: function( selector ) {\n\t\treturn remove( this, selector );\n\t},\n\n\ttext: function( value ) {\n\t\treturn access( this, function( value ) {\n\t\t\treturn value === undefined ?\n\t\t\t\tjQuery.text( this ) :\n\t\t\t\tthis.empty().each( function() {\n\t\t\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\t\t\tthis.textContent = value;\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t}, null, value, arguments.length );\n\t},\n\n\tappend: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\tvar target = manipulationTarget( this, elem );\n\t\t\t\ttarget.appendChild( elem );\n\t\t\t}\n\t\t} );\n\t},\n\n\tprepend: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {\n\t\t\t\tvar target = manipulationTarget( this, elem );\n\t\t\t\ttarget.insertBefore( elem, target.firstChild );\n\t\t\t}\n\t\t} );\n\t},\n\n\tbefore: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.parentNode ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this );\n\t\t\t}\n\t\t} );\n\t},\n\n\tafter: function() {\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tif ( this.parentNode ) {\n\t\t\t\tthis.parentNode.insertBefore( elem, this.nextSibling );\n\t\t\t}\n\t\t} );\n\t},\n\n\tempty: function() {\n\t\tvar elem,\n\t\t\ti = 0;\n\n\t\tfor ( ; ( elem = this[ i ] ) != null; i++ ) {\n\t\t\tif ( elem.nodeType === 1 ) {\n\n\t\t\t\t// Prevent memory leaks\n\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\n\t\t\t\t// Remove any remaining nodes\n\t\t\t\telem.textContent = \"\";\n\t\t\t}\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tclone: function( dataAndEvents, deepDataAndEvents ) {\n\t\tdataAndEvents = dataAndEvents == null ? false : dataAndEvents;\n\t\tdeepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;\n\n\t\treturn this.map( function() {\n\t\t\treturn jQuery.clone( this, dataAndEvents, deepDataAndEvents );\n\t\t} );\n\t},\n\n\thtml: function( value ) {\n\t\treturn access( this, function( value ) {\n\t\t\tvar elem = this[ 0 ] || {},\n\t\t\t\ti = 0,\n\t\t\t\tl = this.length;\n\n\t\t\tif ( value === undefined && elem.nodeType === 1 ) {\n\t\t\t\treturn elem.innerHTML;\n\t\t\t}\n\n\t\t\t// See if we can take a shortcut and just use innerHTML\n\t\t\tif ( typeof value === \"string\" && !rnoInnerhtml.test( value ) &&\n\t\t\t\t!wrapMap[ ( rtagName.exec( value ) || [ \"\", \"\" ] )[ 1 ].toLowerCase() ] ) {\n\n\t\t\t\tvalue = jQuery.htmlPrefilter( value );\n\n\t\t\t\ttry {\n\t\t\t\t\tfor ( ; i < l; i++ ) {\n\t\t\t\t\t\telem = this[ i ] || {};\n\n\t\t\t\t\t\t// Remove element nodes and prevent memory leaks\n\t\t\t\t\t\tif ( elem.nodeType === 1 ) {\n\t\t\t\t\t\t\tjQuery.cleanData( getAll( elem, false ) );\n\t\t\t\t\t\t\telem.innerHTML = value;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\telem = 0;\n\n\t\t\t\t// If using innerHTML throws an exception, use the fallback method\n\t\t\t\t} catch ( e ) {}\n\t\t\t}\n\n\t\t\tif ( elem ) {\n\t\t\t\tthis.empty().append( value );\n\t\t\t}\n\t\t}, null, value, arguments.length );\n\t},\n\n\treplaceWith: function() {\n\t\tvar ignored = [];\n\n\t\t// Make the changes, replacing each non-ignored context element with the new content\n\t\treturn domManip( this, arguments, function( elem ) {\n\t\t\tvar parent = this.parentNode;\n\n\t\t\tif ( jQuery.inArray( this, ignored ) < 0 ) {\n\t\t\t\tjQuery.cleanData( getAll( this ) );\n\t\t\t\tif ( parent ) {\n\t\t\t\t\tparent.replaceChild( elem, this );\n\t\t\t\t}\n\t\t\t}\n\n\t\t// Force callback invocation\n\t\t}, ignored );\n\t}\n} );\n\njQuery.each( {\n\tappendTo: \"append\",\n\tprependTo: \"prepend\",\n\tinsertBefore: \"before\",\n\tinsertAfter: \"after\",\n\treplaceAll: \"replaceWith\"\n}, function( name, original ) {\n\tjQuery.fn[ name ] = function( selector ) {\n\t\tvar elems,\n\t\t\tret = [],\n\t\t\tinsert = jQuery( selector ),\n\t\t\tlast = insert.length - 1,\n\t\t\ti = 0;\n\n\t\tfor ( ; i <= last; i++ ) {\n\t\t\telems = i === last ? this : this.clone( true );\n\t\t\tjQuery( insert[ i ] )[ original ]( elems );\n\n\t\t\t// Support: Android <=4.0 only, PhantomJS 1 only\n\t\t\t// .get() because push.apply(_, arraylike) throws on ancient WebKit\n\t\t\tpush.apply( ret, elems.get() );\n\t\t}\n\n\t\treturn this.pushStack( ret );\n\t};\n} );\nvar rnumnonpx = new RegExp( \"^(\" + pnum + \")(?!px)[a-z%]+$\", \"i\" );\n\nvar rcustomProp = /^--/;\n\n\nvar getStyles = function( elem ) {\n\n\t\t// Support: IE <=11 only, Firefox <=30 (trac-15098, trac-14150)\n\t\t// IE throws on elements created in popups\n\t\t// FF meanwhile throws on frame elements through \"defaultView.getComputedStyle\"\n\t\tvar view = elem.ownerDocument.defaultView;\n\n\t\tif ( !view || !view.opener ) {\n\t\t\tview = window;\n\t\t}\n\n\t\treturn view.getComputedStyle( elem );\n\t};\n\nvar swap = function( elem, options, callback ) {\n\tvar ret, name,\n\t\told = {};\n\n\t// Remember the old values, and insert the new ones\n\tfor ( name in options ) {\n\t\told[ name ] = elem.style[ name ];\n\t\telem.style[ name ] = options[ name ];\n\t}\n\n\tret = callback.call( elem );\n\n\t// Revert the old values\n\tfor ( name in options ) {\n\t\telem.style[ name ] = old[ name ];\n\t}\n\n\treturn ret;\n};\n\n\nvar rboxStyle = new RegExp( cssExpand.join( \"|\" ), \"i\" );\n\n\n\n( function() {\n\n\t// Executing both pixelPosition & boxSizingReliable tests require only one layout\n\t// so they're executed at the same time to save the second computation.\n\tfunction computeStyleTests() {\n\n\t\t// This is a singleton, we need to execute it only once\n\t\tif ( !div ) {\n\t\t\treturn;\n\t\t}\n\n\t\tcontainer.style.cssText = \"position:absolute;left:-11111px;width:60px;\" +\n\t\t\t\"margin-top:1px;padding:0;border:0\";\n\t\tdiv.style.cssText =\n\t\t\t\"position:relative;display:block;box-sizing:border-box;overflow:scroll;\" +\n\t\t\t\"margin:auto;border:1px;padding:1px;\" +\n\t\t\t\"width:60%;top:1%\";\n\t\tdocumentElement.appendChild( container ).appendChild( div );\n\n\t\tvar divStyle = window.getComputedStyle( div );\n\t\tpixelPositionVal = divStyle.top !== \"1%\";\n\n\t\t// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44\n\t\treliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;\n\n\t\t// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3\n\t\t// Some styles come back with percentage values, even though they shouldn't\n\t\tdiv.style.right = \"60%\";\n\t\tpixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;\n\n\t\t// Support: IE 9 - 11 only\n\t\t// Detect misreporting of content dimensions for box-sizing:border-box elements\n\t\tboxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;\n\n\t\t// Support: IE 9 only\n\t\t// Detect overflow:scroll screwiness (gh-3699)\n\t\t// Support: Chrome <=64\n\t\t// Don't get tricked when zoom affects offsetWidth (gh-4029)\n\t\tdiv.style.position = \"absolute\";\n\t\tscrollboxSizeVal = roundPixelMeasures( div.offsetWidth / 3 ) === 12;\n\n\t\tdocumentElement.removeChild( container );\n\n\t\t// Nullify the div so it wouldn't be stored in the memory and\n\t\t// it will also be a sign that checks already performed\n\t\tdiv = null;\n\t}\n\n\tfunction roundPixelMeasures( measure ) {\n\t\treturn Math.round( parseFloat( measure ) );\n\t}\n\n\tvar pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,\n\t\treliableTrDimensionsVal, reliableMarginLeftVal,\n\t\tcontainer = document.createElement( \"div\" ),\n\t\tdiv = document.createElement( \"div\" );\n\n\t// Finish early in limited (non-browser) environments\n\tif ( !div.style ) {\n\t\treturn;\n\t}\n\n\t// Support: IE <=9 - 11 only\n\t// Style of cloned element affects source element cloned (trac-8908)\n\tdiv.style.backgroundClip = \"content-box\";\n\tdiv.cloneNode( true ).style.backgroundClip = \"\";\n\tsupport.clearCloneStyle = div.style.backgroundClip === \"content-box\";\n\n\tjQuery.extend( support, {\n\t\tboxSizingReliable: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn boxSizingReliableVal;\n\t\t},\n\t\tpixelBoxStyles: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn pixelBoxStylesVal;\n\t\t},\n\t\tpixelPosition: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn pixelPositionVal;\n\t\t},\n\t\treliableMarginLeft: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn reliableMarginLeftVal;\n\t\t},\n\t\tscrollboxSize: function() {\n\t\t\tcomputeStyleTests();\n\t\t\treturn scrollboxSizeVal;\n\t\t},\n\n\t\t// Support: IE 9 - 11+, Edge 15 - 18+\n\t\t// IE/Edge misreport `getComputedStyle` of table rows with width/height\n\t\t// set in CSS while `offset*` properties report correct values.\n\t\t// Behavior in IE 9 is more subtle than in newer versions & it passes\n\t\t// some versions of this test; make sure not to make it pass there!\n\t\t//\n\t\t// Support: Firefox 70+\n\t\t// Only Firefox includes border widths\n\t\t// in computed dimensions. (gh-4529)\n\t\treliableTrDimensions: function() {\n\t\t\tvar table, tr, trChild, trStyle;\n\t\t\tif ( reliableTrDimensionsVal == null ) {\n\t\t\t\ttable = document.createElement( \"table\" );\n\t\t\t\ttr = document.createElement( \"tr\" );\n\t\t\t\ttrChild = document.createElement( \"div\" );\n\n\t\t\t\ttable.style.cssText = \"position:absolute;left:-11111px;border-collapse:separate\";\n\t\t\t\ttr.style.cssText = \"box-sizing:content-box;border:1px solid\";\n\n\t\t\t\t// Support: Chrome 86+\n\t\t\t\t// Height set through cssText does not get applied.\n\t\t\t\t// Computed height then comes back as 0.\n\t\t\t\ttr.style.height = \"1px\";\n\t\t\t\ttrChild.style.height = \"9px\";\n\n\t\t\t\t// Support: Android 8 Chrome 86+\n\t\t\t\t// In our bodyBackground.html iframe,\n\t\t\t\t// display for all div elements is set to \"inline\",\n\t\t\t\t// which causes a problem only in Android 8 Chrome 86.\n\t\t\t\t// Ensuring the div is `display: block`\n\t\t\t\t// gets around this issue.\n\t\t\t\ttrChild.style.display = \"block\";\n\n\t\t\t\tdocumentElement\n\t\t\t\t\t.appendChild( table )\n\t\t\t\t\t.appendChild( tr )\n\t\t\t\t\t.appendChild( trChild );\n\n\t\t\t\ttrStyle = window.getComputedStyle( tr );\n\t\t\t\treliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) +\n\t\t\t\t\tparseInt( trStyle.borderTopWidth, 10 ) +\n\t\t\t\t\tparseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight;\n\n\t\t\t\tdocumentElement.removeChild( table );\n\t\t\t}\n\t\t\treturn reliableTrDimensionsVal;\n\t\t}\n\t} );\n} )();\n\n\nfunction curCSS( elem, name, computed ) {\n\tvar width, minWidth, maxWidth, ret,\n\t\tisCustomProp = rcustomProp.test( name ),\n\n\t\t// Support: Firefox 51+\n\t\t// Retrieving style before computed somehow\n\t\t// fixes an issue with getting wrong values\n\t\t// on detached elements\n\t\tstyle = elem.style;\n\n\tcomputed = computed || getStyles( elem );\n\n\t// getPropertyValue is needed for:\n\t//   .css('filter') (IE 9 only, trac-12537)\n\t//   .css('--customProperty) (gh-3144)\n\tif ( computed ) {\n\n\t\t// Support: IE <=9 - 11+\n\t\t// IE only supports `\"float\"` in `getPropertyValue`; in computed styles\n\t\t// it's only available as `\"cssFloat\"`. We no longer modify properties\n\t\t// sent to `.css()` apart from camelCasing, so we need to check both.\n\t\t// Normally, this would create difference in behavior: if\n\t\t// `getPropertyValue` returns an empty string, the value returned\n\t\t// by `.css()` would be `undefined`. This is usually the case for\n\t\t// disconnected elements. However, in IE even disconnected elements\n\t\t// with no styles return `\"none\"` for `getPropertyValue( \"float\" )`\n\t\tret = computed.getPropertyValue( name ) || computed[ name ];\n\n\t\tif ( isCustomProp && ret ) {\n\n\t\t\t// Support: Firefox 105+, Chrome <=105+\n\t\t\t// Spec requires trimming whitespace for custom properties (gh-4926).\n\t\t\t// Firefox only trims leading whitespace. Chrome just collapses\n\t\t\t// both leading & trailing whitespace to a single space.\n\t\t\t//\n\t\t\t// Fall back to `undefined` if empty string returned.\n\t\t\t// This collapses a missing definition with property defined\n\t\t\t// and set to an empty string but there's no standard API\n\t\t\t// allowing us to differentiate them without a performance penalty\n\t\t\t// and returning `undefined` aligns with older jQuery.\n\t\t\t//\n\t\t\t// rtrimCSS treats U+000D CARRIAGE RETURN and U+000C FORM FEED\n\t\t\t// as whitespace while CSS does not, but this is not a problem\n\t\t\t// because CSS preprocessing replaces them with U+000A LINE FEED\n\t\t\t// (which *is* CSS whitespace)\n\t\t\t// https://www.w3.org/TR/css-syntax-3/#input-preprocessing\n\t\t\tret = ret.replace( rtrimCSS, \"$1\" ) || undefined;\n\t\t}\n\n\t\tif ( ret === \"\" && !isAttached( elem ) ) {\n\t\t\tret = jQuery.style( elem, name );\n\t\t}\n\n\t\t// A tribute to the \"awesome hack by Dean Edwards\"\n\t\t// Android Browser returns percentage for some values,\n\t\t// but width seems to be reliably pixels.\n\t\t// This is against the CSSOM draft spec:\n\t\t// https://drafts.csswg.org/cssom/#resolved-values\n\t\tif ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {\n\n\t\t\t// Remember the original values\n\t\t\twidth = style.width;\n\t\t\tminWidth = style.minWidth;\n\t\t\tmaxWidth = style.maxWidth;\n\n\t\t\t// Put in the new values to get a computed value out\n\t\t\tstyle.minWidth = style.maxWidth = style.width = ret;\n\t\t\tret = computed.width;\n\n\t\t\t// Revert the changed values\n\t\t\tstyle.width = width;\n\t\t\tstyle.minWidth = minWidth;\n\t\t\tstyle.maxWidth = maxWidth;\n\t\t}\n\t}\n\n\treturn ret !== undefined ?\n\n\t\t// Support: IE <=9 - 11 only\n\t\t// IE returns zIndex value as an integer.\n\t\tret + \"\" :\n\t\tret;\n}\n\n\nfunction addGetHookIf( conditionFn, hookFn ) {\n\n\t// Define the hook, we'll check on the first run if it's really needed.\n\treturn {\n\t\tget: function() {\n\t\t\tif ( conditionFn() ) {\n\n\t\t\t\t// Hook not needed (or it's not possible to use it due\n\t\t\t\t// to missing dependency), remove it.\n\t\t\t\tdelete this.get;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Hook needed; redefine it so that the support test is not executed again.\n\t\t\treturn ( this.get = hookFn ).apply( this, arguments );\n\t\t}\n\t};\n}\n\n\nvar cssPrefixes = [ \"Webkit\", \"Moz\", \"ms\" ],\n\temptyStyle = document.createElement( \"div\" ).style,\n\tvendorProps = {};\n\n// Return a vendor-prefixed property or undefined\nfunction vendorPropName( name ) {\n\n\t// Check for vendor prefixed names\n\tvar capName = name[ 0 ].toUpperCase() + name.slice( 1 ),\n\t\ti = cssPrefixes.length;\n\n\twhile ( i-- ) {\n\t\tname = cssPrefixes[ i ] + capName;\n\t\tif ( name in emptyStyle ) {\n\t\t\treturn name;\n\t\t}\n\t}\n}\n\n// Return a potentially-mapped jQuery.cssProps or vendor prefixed property\nfunction finalPropName( name ) {\n\tvar final = jQuery.cssProps[ name ] || vendorProps[ name ];\n\n\tif ( final ) {\n\t\treturn final;\n\t}\n\tif ( name in emptyStyle ) {\n\t\treturn name;\n\t}\n\treturn vendorProps[ name ] = vendorPropName( name ) || name;\n}\n\n\nvar\n\n\t// Swappable if display is none or starts with table\n\t// except \"table\", \"table-cell\", or \"table-caption\"\n\t// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display\n\trdisplayswap = /^(none|table(?!-c[ea]).+)/,\n\tcssShow = { position: \"absolute\", visibility: \"hidden\", display: \"block\" },\n\tcssNormalTransform = {\n\t\tletterSpacing: \"0\",\n\t\tfontWeight: \"400\"\n\t};\n\nfunction setPositiveNumber( _elem, value, subtract ) {\n\n\t// Any relative (+/-) values have already been\n\t// normalized at this point\n\tvar matches = rcssNum.exec( value );\n\treturn matches ?\n\n\t\t// Guard against undefined \"subtract\", e.g., when used as in cssHooks\n\t\tMath.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || \"px\" ) :\n\t\tvalue;\n}\n\nfunction boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {\n\tvar i = dimension === \"width\" ? 1 : 0,\n\t\textra = 0,\n\t\tdelta = 0,\n\t\tmarginDelta = 0;\n\n\t// Adjustment may not be necessary\n\tif ( box === ( isBorderBox ? \"border\" : \"content\" ) ) {\n\t\treturn 0;\n\t}\n\n\tfor ( ; i < 4; i += 2 ) {\n\n\t\t// Both box models exclude margin\n\t\t// Count margin delta separately to only add it after scroll gutter adjustment.\n\t\t// This is needed to make negative margins work with `outerHeight( true )` (gh-3982).\n\t\tif ( box === \"margin\" ) {\n\t\t\tmarginDelta += jQuery.css( elem, box + cssExpand[ i ], true, styles );\n\t\t}\n\n\t\t// If we get here with a content-box, we're seeking \"padding\" or \"border\" or \"margin\"\n\t\tif ( !isBorderBox ) {\n\n\t\t\t// Add padding\n\t\t\tdelta += jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\n\t\t\t// For \"border\" or \"margin\", add border\n\t\t\tif ( box !== \"padding\" ) {\n\t\t\t\tdelta += jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\n\t\t\t// But still keep track of it otherwise\n\t\t\t} else {\n\t\t\t\textra += jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t}\n\n\t\t// If we get here with a border-box (content + padding + border), we're seeking \"content\" or\n\t\t// \"padding\" or \"margin\"\n\t\t} else {\n\n\t\t\t// For \"content\", subtract padding\n\t\t\tif ( box === \"content\" ) {\n\t\t\t\tdelta -= jQuery.css( elem, \"padding\" + cssExpand[ i ], true, styles );\n\t\t\t}\n\n\t\t\t// For \"content\" or \"padding\", subtract border\n\t\t\tif ( box !== \"margin\" ) {\n\t\t\t\tdelta -= jQuery.css( elem, \"border\" + cssExpand[ i ] + \"Width\", true, styles );\n\t\t\t}\n\t\t}\n\t}\n\n\t// Account for positive content-box scroll gutter when requested by providing computedVal\n\tif ( !isBorderBox && computedVal >= 0 ) {\n\n\t\t// offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border\n\t\t// Assuming integer scroll gutter, subtract the rest and round down\n\t\tdelta += Math.max( 0, Math.ceil(\n\t\t\telem[ \"offset\" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -\n\t\t\tcomputedVal -\n\t\t\tdelta -\n\t\t\textra -\n\t\t\t0.5\n\n\t\t// If offsetWidth/offsetHeight is unknown, then we can't determine content-box scroll gutter\n\t\t// Use an explicit zero to avoid NaN (gh-3964)\n\t\t) ) || 0;\n\t}\n\n\treturn delta + marginDelta;\n}\n\nfunction getWidthOrHeight( elem, dimension, extra ) {\n\n\t// Start with computed style\n\tvar styles = getStyles( elem ),\n\n\t\t// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-4322).\n\t\t// Fake content-box until we know it's needed to know the true value.\n\t\tboxSizingNeeded = !support.boxSizingReliable() || extra,\n\t\tisBorderBox = boxSizingNeeded &&\n\t\t\tjQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\",\n\t\tvalueIsBorderBox = isBorderBox,\n\n\t\tval = curCSS( elem, dimension, styles ),\n\t\toffsetProp = \"offset\" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 );\n\n\t// Support: Firefox <=54\n\t// Return a confounding non-pixel value or feign ignorance, as appropriate.\n\tif ( rnumnonpx.test( val ) ) {\n\t\tif ( !extra ) {\n\t\t\treturn val;\n\t\t}\n\t\tval = \"auto\";\n\t}\n\n\n\t// Support: IE 9 - 11 only\n\t// Use offsetWidth/offsetHeight for when box sizing is unreliable.\n\t// In those cases, the computed value can be trusted to be border-box.\n\tif ( ( !support.boxSizingReliable() && isBorderBox ||\n\n\t\t// Support: IE 10 - 11+, Edge 15 - 18+\n\t\t// IE/Edge misreport `getComputedStyle` of table rows with width/height\n\t\t// set in CSS while `offset*` properties report correct values.\n\t\t// Interestingly, in some cases IE 9 doesn't suffer from this issue.\n\t\t!support.reliableTrDimensions() && nodeName( elem, \"tr\" ) ||\n\n\t\t// Fall back to offsetWidth/offsetHeight when value is \"auto\"\n\t\t// This happens for inline elements with no explicit setting (gh-3571)\n\t\tval === \"auto\" ||\n\n\t\t// Support: Android <=4.1 - 4.3 only\n\t\t// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)\n\t\t!parseFloat( val ) && jQuery.css( elem, \"display\", false, styles ) === \"inline\" ) &&\n\n\t\t// Make sure the element is visible & connected\n\t\telem.getClientRects().length ) {\n\n\t\tisBorderBox = jQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\";\n\n\t\t// Where available, offsetWidth/offsetHeight approximate border box dimensions.\n\t\t// Where not available (e.g., SVG), assume unreliable box-sizing and interpret the\n\t\t// retrieved value as a content box dimension.\n\t\tvalueIsBorderBox = offsetProp in elem;\n\t\tif ( valueIsBorderBox ) {\n\t\t\tval = elem[ offsetProp ];\n\t\t}\n\t}\n\n\t// Normalize \"\" and auto\n\tval = parseFloat( val ) || 0;\n\n\t// Adjust for the element's box model\n\treturn ( val +\n\t\tboxModelAdjustment(\n\t\t\telem,\n\t\t\tdimension,\n\t\t\textra || ( isBorderBox ? \"border\" : \"content\" ),\n\t\t\tvalueIsBorderBox,\n\t\t\tstyles,\n\n\t\t\t// Provide the current computed size to request scroll gutter calculation (gh-3589)\n\t\t\tval\n\t\t)\n\t) + \"px\";\n}\n\njQuery.extend( {\n\n\t// Add in style property hooks for overriding the default\n\t// behavior of getting and setting a style property\n\tcssHooks: {\n\t\topacity: {\n\t\t\tget: function( elem, computed ) {\n\t\t\t\tif ( computed ) {\n\n\t\t\t\t\t// We should always get a number back from opacity\n\t\t\t\t\tvar ret = curCSS( elem, \"opacity\" );\n\t\t\t\t\treturn ret === \"\" ? \"1\" : ret;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\t// Don't automatically add \"px\" to these possibly-unitless properties\n\tcssNumber: {\n\t\tanimationIterationCount: true,\n\t\taspectRatio: true,\n\t\tborderImageSlice: true,\n\t\tcolumnCount: true,\n\t\tflexGrow: true,\n\t\tflexShrink: true,\n\t\tfontWeight: true,\n\t\tgridArea: true,\n\t\tgridColumn: true,\n\t\tgridColumnEnd: true,\n\t\tgridColumnStart: true,\n\t\tgridRow: true,\n\t\tgridRowEnd: true,\n\t\tgridRowStart: true,\n\t\tlineHeight: true,\n\t\topacity: true,\n\t\torder: true,\n\t\torphans: true,\n\t\tscale: true,\n\t\twidows: true,\n\t\tzIndex: true,\n\t\tzoom: true,\n\n\t\t// SVG-related\n\t\tfillOpacity: true,\n\t\tfloodOpacity: true,\n\t\tstopOpacity: true,\n\t\tstrokeMiterlimit: true,\n\t\tstrokeOpacity: true\n\t},\n\n\t// Add in properties whose names you wish to fix before\n\t// setting or getting the value\n\tcssProps: {},\n\n\t// Get and set the style property on a DOM Node\n\tstyle: function( elem, name, value, extra ) {\n\n\t\t// Don't set styles on text and comment nodes\n\t\tif ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Make sure that we're working with the right name\n\t\tvar ret, type, hooks,\n\t\t\torigName = camelCase( name ),\n\t\t\tisCustomProp = rcustomProp.test( name ),\n\t\t\tstyle = elem.style;\n\n\t\t// Make sure that we're working with the right name. We don't\n\t\t// want to query the value if it is a CSS custom property\n\t\t// since they are user-defined.\n\t\tif ( !isCustomProp ) {\n\t\t\tname = finalPropName( origName );\n\t\t}\n\n\t\t// Gets hook for the prefixed version, then unprefixed version\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// Check if we're setting a value\n\t\tif ( value !== undefined ) {\n\t\t\ttype = typeof value;\n\n\t\t\t// Convert \"+=\" or \"-=\" to relative numbers (trac-7345)\n\t\t\tif ( type === \"string\" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {\n\t\t\t\tvalue = adjustCSS( elem, name, ret );\n\n\t\t\t\t// Fixes bug trac-9237\n\t\t\t\ttype = \"number\";\n\t\t\t}\n\n\t\t\t// Make sure that null and NaN values aren't set (trac-7116)\n\t\t\tif ( value == null || value !== value ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// If a number was passed in, add the unit (except for certain CSS properties)\n\t\t\t// The isCustomProp check can be removed in jQuery 4.0 when we only auto-append\n\t\t\t// \"px\" to a few hardcoded values.\n\t\t\tif ( type === \"number\" && !isCustomProp ) {\n\t\t\t\tvalue += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? \"\" : \"px\" );\n\t\t\t}\n\n\t\t\t// background-* props affect original clone's values\n\t\t\tif ( !support.clearCloneStyle && value === \"\" && name.indexOf( \"background\" ) === 0 ) {\n\t\t\t\tstyle[ name ] = \"inherit\";\n\t\t\t}\n\n\t\t\t// If a hook was provided, use that value, otherwise just set the specified value\n\t\t\tif ( !hooks || !( \"set\" in hooks ) ||\n\t\t\t\t( value = hooks.set( elem, value, extra ) ) !== undefined ) {\n\n\t\t\t\tif ( isCustomProp ) {\n\t\t\t\t\tstyle.setProperty( name, value );\n\t\t\t\t} else {\n\t\t\t\t\tstyle[ name ] = value;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} else {\n\n\t\t\t// If a hook was provided get the non-computed value from there\n\t\t\tif ( hooks && \"get\" in hooks &&\n\t\t\t\t( ret = hooks.get( elem, false, extra ) ) !== undefined ) {\n\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\t// Otherwise just get the value from the style object\n\t\t\treturn style[ name ];\n\t\t}\n\t},\n\n\tcss: function( elem, name, extra, styles ) {\n\t\tvar val, num, hooks,\n\t\t\torigName = camelCase( name ),\n\t\t\tisCustomProp = rcustomProp.test( name );\n\n\t\t// Make sure that we're working with the right name. We don't\n\t\t// want to modify the value if it is a CSS custom property\n\t\t// since they are user-defined.\n\t\tif ( !isCustomProp ) {\n\t\t\tname = finalPropName( origName );\n\t\t}\n\n\t\t// Try prefixed name followed by the unprefixed name\n\t\thooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];\n\n\t\t// If a hook was provided get the computed value from there\n\t\tif ( hooks && \"get\" in hooks ) {\n\t\t\tval = hooks.get( elem, true, extra );\n\t\t}\n\n\t\t// Otherwise, if a way to get the computed value exists, use that\n\t\tif ( val === undefined ) {\n\t\t\tval = curCSS( elem, name, styles );\n\t\t}\n\n\t\t// Convert \"normal\" to computed value\n\t\tif ( val === \"normal\" && name in cssNormalTransform ) {\n\t\t\tval = cssNormalTransform[ name ];\n\t\t}\n\n\t\t// Make numeric if forced or a qualifier was provided and val looks numeric\n\t\tif ( extra === \"\" || extra ) {\n\t\t\tnum = parseFloat( val );\n\t\t\treturn extra === true || isFinite( num ) ? num || 0 : val;\n\t\t}\n\n\t\treturn val;\n\t}\n} );\n\njQuery.each( [ \"height\", \"width\" ], function( _i, dimension ) {\n\tjQuery.cssHooks[ dimension ] = {\n\t\tget: function( elem, computed, extra ) {\n\t\t\tif ( computed ) {\n\n\t\t\t\t// Certain elements can have dimension info if we invisibly show them\n\t\t\t\t// but it must have a current display style that would benefit\n\t\t\t\treturn rdisplayswap.test( jQuery.css( elem, \"display\" ) ) &&\n\n\t\t\t\t\t// Support: Safari 8+\n\t\t\t\t\t// Table columns in Safari have non-zero offsetWidth & zero\n\t\t\t\t\t// getBoundingClientRect().width unless display is changed.\n\t\t\t\t\t// Support: IE <=11 only\n\t\t\t\t\t// Running getBoundingClientRect on a disconnected node\n\t\t\t\t\t// in IE throws an error.\n\t\t\t\t\t( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?\n\t\t\t\t\tswap( elem, cssShow, function() {\n\t\t\t\t\t\treturn getWidthOrHeight( elem, dimension, extra );\n\t\t\t\t\t} ) :\n\t\t\t\t\tgetWidthOrHeight( elem, dimension, extra );\n\t\t\t}\n\t\t},\n\n\t\tset: function( elem, value, extra ) {\n\t\t\tvar matches,\n\t\t\t\tstyles = getStyles( elem ),\n\n\t\t\t\t// Only read styles.position if the test has a chance to fail\n\t\t\t\t// to avoid forcing a reflow.\n\t\t\t\tscrollboxSizeBuggy = !support.scrollboxSize() &&\n\t\t\t\t\tstyles.position === \"absolute\",\n\n\t\t\t\t// To avoid forcing a reflow, only fetch boxSizing if we need it (gh-3991)\n\t\t\t\tboxSizingNeeded = scrollboxSizeBuggy || extra,\n\t\t\t\tisBorderBox = boxSizingNeeded &&\n\t\t\t\t\tjQuery.css( elem, \"boxSizing\", false, styles ) === \"border-box\",\n\t\t\t\tsubtract = extra ?\n\t\t\t\t\tboxModelAdjustment(\n\t\t\t\t\t\telem,\n\t\t\t\t\t\tdimension,\n\t\t\t\t\t\textra,\n\t\t\t\t\t\tisBorderBox,\n\t\t\t\t\t\tstyles\n\t\t\t\t\t) :\n\t\t\t\t\t0;\n\n\t\t\t// Account for unreliable border-box dimensions by comparing offset* to computed and\n\t\t\t// faking a content-box to get border and padding (gh-3699)\n\t\t\tif ( isBorderBox && scrollboxSizeBuggy ) {\n\t\t\t\tsubtract -= Math.ceil(\n\t\t\t\t\telem[ \"offset\" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -\n\t\t\t\t\tparseFloat( styles[ dimension ] ) -\n\t\t\t\t\tboxModelAdjustment( elem, dimension, \"border\", false, styles ) -\n\t\t\t\t\t0.5\n\t\t\t\t);\n\t\t\t}\n\n\t\t\t// Convert to pixels if value adjustment is needed\n\t\t\tif ( subtract && ( matches = rcssNum.exec( value ) ) &&\n\t\t\t\t( matches[ 3 ] || \"px\" ) !== \"px\" ) {\n\n\t\t\t\telem.style[ dimension ] = value;\n\t\t\t\tvalue = jQuery.css( elem, dimension );\n\t\t\t}\n\n\t\t\treturn setPositiveNumber( elem, value, subtract );\n\t\t}\n\t};\n} );\n\njQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,\n\tfunction( elem, computed ) {\n\t\tif ( computed ) {\n\t\t\treturn ( parseFloat( curCSS( elem, \"marginLeft\" ) ) ||\n\t\t\t\telem.getBoundingClientRect().left -\n\t\t\t\t\tswap( elem, { marginLeft: 0 }, function() {\n\t\t\t\t\t\treturn elem.getBoundingClientRect().left;\n\t\t\t\t\t} )\n\t\t\t) + \"px\";\n\t\t}\n\t}\n);\n\n// These hooks are used by animate to expand properties\njQuery.each( {\n\tmargin: \"\",\n\tpadding: \"\",\n\tborder: \"Width\"\n}, function( prefix, suffix ) {\n\tjQuery.cssHooks[ prefix + suffix ] = {\n\t\texpand: function( value ) {\n\t\t\tvar i = 0,\n\t\t\t\texpanded = {},\n\n\t\t\t\t// Assumes a single number if not a string\n\t\t\t\tparts = typeof value === \"string\" ? value.split( \" \" ) : [ value ];\n\n\t\t\tfor ( ; i < 4; i++ ) {\n\t\t\t\texpanded[ prefix + cssExpand[ i ] + suffix ] =\n\t\t\t\t\tparts[ i ] || parts[ i - 2 ] || parts[ 0 ];\n\t\t\t}\n\n\t\t\treturn expanded;\n\t\t}\n\t};\n\n\tif ( prefix !== \"margin\" ) {\n\t\tjQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;\n\t}\n} );\n\njQuery.fn.extend( {\n\tcss: function( name, value ) {\n\t\treturn access( this, function( elem, name, value ) {\n\t\t\tvar styles, len,\n\t\t\t\tmap = {},\n\t\t\t\ti = 0;\n\n\t\t\tif ( Array.isArray( name ) ) {\n\t\t\t\tstyles = getStyles( elem );\n\t\t\t\tlen = name.length;\n\n\t\t\t\tfor ( ; i < len; i++ ) {\n\t\t\t\t\tmap[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );\n\t\t\t\t}\n\n\t\t\t\treturn map;\n\t\t\t}\n\n\t\t\treturn value !== undefined ?\n\t\t\t\tjQuery.style( elem, name, value ) :\n\t\t\t\tjQuery.css( elem, name );\n\t\t}, name, value, arguments.length > 1 );\n\t}\n} );\n\n\nfunction Tween( elem, options, prop, end, easing ) {\n\treturn new Tween.prototype.init( elem, options, prop, end, easing );\n}\njQuery.Tween = Tween;\n\nTween.prototype = {\n\tconstructor: Tween,\n\tinit: function( elem, options, prop, end, easing, unit ) {\n\t\tthis.elem = elem;\n\t\tthis.prop = prop;\n\t\tthis.easing = easing || jQuery.easing._default;\n\t\tthis.options = options;\n\t\tthis.start = this.now = this.cur();\n\t\tthis.end = end;\n\t\tthis.unit = unit || ( jQuery.cssNumber[ prop ] ? \"\" : \"px\" );\n\t},\n\tcur: function() {\n\t\tvar hooks = Tween.propHooks[ this.prop ];\n\n\t\treturn hooks && hooks.get ?\n\t\t\thooks.get( this ) :\n\t\t\tTween.propHooks._default.get( this );\n\t},\n\trun: function( percent ) {\n\t\tvar eased,\n\t\t\thooks = Tween.propHooks[ this.prop ];\n\n\t\tif ( this.options.duration ) {\n\t\t\tthis.pos = eased = jQuery.easing[ this.easing ](\n\t\t\t\tpercent, this.options.duration * percent, 0, 1, this.options.duration\n\t\t\t);\n\t\t} else {\n\t\t\tthis.pos = eased = percent;\n\t\t}\n\t\tthis.now = ( this.end - this.start ) * eased + this.start;\n\n\t\tif ( this.options.step ) {\n\t\t\tthis.options.step.call( this.elem, this.now, this );\n\t\t}\n\n\t\tif ( hooks && hooks.set ) {\n\t\t\thooks.set( this );\n\t\t} else {\n\t\t\tTween.propHooks._default.set( this );\n\t\t}\n\t\treturn this;\n\t}\n};\n\nTween.prototype.init.prototype = Tween.prototype;\n\nTween.propHooks = {\n\t_default: {\n\t\tget: function( tween ) {\n\t\t\tvar result;\n\n\t\t\t// Use a property on the element directly when it is not a DOM element,\n\t\t\t// or when there is no matching style property that exists.\n\t\t\tif ( tween.elem.nodeType !== 1 ||\n\t\t\t\ttween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {\n\t\t\t\treturn tween.elem[ tween.prop ];\n\t\t\t}\n\n\t\t\t// Passing an empty string as a 3rd parameter to .css will automatically\n\t\t\t// attempt a parseFloat and fallback to a string if the parse fails.\n\t\t\t// Simple values such as \"10px\" are parsed to Float;\n\t\t\t// complex values such as \"rotate(1rad)\" are returned as-is.\n\t\t\tresult = jQuery.css( tween.elem, tween.prop, \"\" );\n\n\t\t\t// Empty strings, null, undefined and \"auto\" are converted to 0.\n\t\t\treturn !result || result === \"auto\" ? 0 : result;\n\t\t},\n\t\tset: function( tween ) {\n\n\t\t\t// Use step hook for back compat.\n\t\t\t// Use cssHook if its there.\n\t\t\t// Use .style if available and use plain properties where available.\n\t\t\tif ( jQuery.fx.step[ tween.prop ] ) {\n\t\t\t\tjQuery.fx.step[ tween.prop ]( tween );\n\t\t\t} else if ( tween.elem.nodeType === 1 && (\n\t\t\t\tjQuery.cssHooks[ tween.prop ] ||\n\t\t\t\t\ttween.elem.style[ finalPropName( tween.prop ) ] != null ) ) {\n\t\t\t\tjQuery.style( tween.elem, tween.prop, tween.now + tween.unit );\n\t\t\t} else {\n\t\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t\t}\n\t\t}\n\t}\n};\n\n// Support: IE <=9 only\n// Panic based approach to setting things on disconnected nodes\nTween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {\n\tset: function( tween ) {\n\t\tif ( tween.elem.nodeType && tween.elem.parentNode ) {\n\t\t\ttween.elem[ tween.prop ] = tween.now;\n\t\t}\n\t}\n};\n\njQuery.easing = {\n\tlinear: function( p ) {\n\t\treturn p;\n\t},\n\tswing: function( p ) {\n\t\treturn 0.5 - Math.cos( p * Math.PI ) / 2;\n\t},\n\t_default: \"swing\"\n};\n\njQuery.fx = Tween.prototype.init;\n\n// Back compat <1.8 extension point\njQuery.fx.step = {};\n\n\n\n\nvar\n\tfxNow, inProgress,\n\trfxtypes = /^(?:toggle|show|hide)$/,\n\trrun = /queueHooks$/;\n\nfunction schedule() {\n\tif ( inProgress ) {\n\t\tif ( document.hidden === false && window.requestAnimationFrame ) {\n\t\t\twindow.requestAnimationFrame( schedule );\n\t\t} else {\n\t\t\twindow.setTimeout( schedule, jQuery.fx.interval );\n\t\t}\n\n\t\tjQuery.fx.tick();\n\t}\n}\n\n// Animations created synchronously will run synchronously\nfunction createFxNow() {\n\twindow.setTimeout( function() {\n\t\tfxNow = undefined;\n\t} );\n\treturn ( fxNow = Date.now() );\n}\n\n// Generate parameters to create a standard animation\nfunction genFx( type, includeWidth ) {\n\tvar which,\n\t\ti = 0,\n\t\tattrs = { height: type };\n\n\t// If we include width, step value is 1 to do all cssExpand values,\n\t// otherwise step value is 2 to skip over Left and Right\n\tincludeWidth = includeWidth ? 1 : 0;\n\tfor ( ; i < 4; i += 2 - includeWidth ) {\n\t\twhich = cssExpand[ i ];\n\t\tattrs[ \"margin\" + which ] = attrs[ \"padding\" + which ] = type;\n\t}\n\n\tif ( includeWidth ) {\n\t\tattrs.opacity = attrs.width = type;\n\t}\n\n\treturn attrs;\n}\n\nfunction createTween( value, prop, animation ) {\n\tvar tween,\n\t\tcollection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ \"*\" ] ),\n\t\tindex = 0,\n\t\tlength = collection.length;\n\tfor ( ; index < length; index++ ) {\n\t\tif ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {\n\n\t\t\t// We're done with this property\n\t\t\treturn tween;\n\t\t}\n\t}\n}\n\nfunction defaultPrefilter( elem, props, opts ) {\n\tvar prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,\n\t\tisBox = \"width\" in props || \"height\" in props,\n\t\tanim = this,\n\t\torig = {},\n\t\tstyle = elem.style,\n\t\thidden = elem.nodeType && isHiddenWithinTree( elem ),\n\t\tdataShow = dataPriv.get( elem, \"fxshow\" );\n\n\t// Queue-skipping animations hijack the fx hooks\n\tif ( !opts.queue ) {\n\t\thooks = jQuery._queueHooks( elem, \"fx\" );\n\t\tif ( hooks.unqueued == null ) {\n\t\t\thooks.unqueued = 0;\n\t\t\toldfire = hooks.empty.fire;\n\t\t\thooks.empty.fire = function() {\n\t\t\t\tif ( !hooks.unqueued ) {\n\t\t\t\t\toldfire();\n\t\t\t\t}\n\t\t\t};\n\t\t}\n\t\thooks.unqueued++;\n\n\t\tanim.always( function() {\n\n\t\t\t// Ensure the complete handler is called before this completes\n\t\t\tanim.always( function() {\n\t\t\t\thooks.unqueued--;\n\t\t\t\tif ( !jQuery.queue( elem, \"fx\" ).length ) {\n\t\t\t\t\thooks.empty.fire();\n\t\t\t\t}\n\t\t\t} );\n\t\t} );\n\t}\n\n\t// Detect show/hide animations\n\tfor ( prop in props ) {\n\t\tvalue = props[ prop ];\n\t\tif ( rfxtypes.test( value ) ) {\n\t\t\tdelete props[ prop ];\n\t\t\ttoggle = toggle || value === \"toggle\";\n\t\t\tif ( value === ( hidden ? \"hide\" : \"show\" ) ) {\n\n\t\t\t\t// Pretend to be hidden if this is a \"show\" and\n\t\t\t\t// there is still data from a stopped show/hide\n\t\t\t\tif ( value === \"show\" && dataShow && dataShow[ prop ] !== undefined ) {\n\t\t\t\t\thidden = true;\n\n\t\t\t\t// Ignore all other no-op show/hide data\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\torig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );\n\t\t}\n\t}\n\n\t// Bail out if this is a no-op like .hide().hide()\n\tpropTween = !jQuery.isEmptyObject( props );\n\tif ( !propTween && jQuery.isEmptyObject( orig ) ) {\n\t\treturn;\n\t}\n\n\t// Restrict \"overflow\" and \"display\" styles during box animations\n\tif ( isBox && elem.nodeType === 1 ) {\n\n\t\t// Support: IE <=9 - 11, Edge 12 - 15\n\t\t// Record all 3 overflow attributes because IE does not infer the shorthand\n\t\t// from identically-valued overflowX and overflowY and Edge just mirrors\n\t\t// the overflowX value there.\n\t\topts.overflow = [ style.overflow, style.overflowX, style.overflowY ];\n\n\t\t// Identify a display type, preferring old show/hide data over the CSS cascade\n\t\trestoreDisplay = dataShow && dataShow.display;\n\t\tif ( restoreDisplay == null ) {\n\t\t\trestoreDisplay = dataPriv.get( elem, \"display\" );\n\t\t}\n\t\tdisplay = jQuery.css( elem, \"display\" );\n\t\tif ( display === \"none\" ) {\n\t\t\tif ( restoreDisplay ) {\n\t\t\t\tdisplay = restoreDisplay;\n\t\t\t} else {\n\n\t\t\t\t// Get nonempty value(s) by temporarily forcing visibility\n\t\t\t\tshowHide( [ elem ], true );\n\t\t\t\trestoreDisplay = elem.style.display || restoreDisplay;\n\t\t\t\tdisplay = jQuery.css( elem, \"display\" );\n\t\t\t\tshowHide( [ elem ] );\n\t\t\t}\n\t\t}\n\n\t\t// Animate inline elements as inline-block\n\t\tif ( display === \"inline\" || display === \"inline-block\" && restoreDisplay != null ) {\n\t\t\tif ( jQuery.css( elem, \"float\" ) === \"none\" ) {\n\n\t\t\t\t// Restore the original display value at the end of pure show/hide animations\n\t\t\t\tif ( !propTween ) {\n\t\t\t\t\tanim.done( function() {\n\t\t\t\t\t\tstyle.display = restoreDisplay;\n\t\t\t\t\t} );\n\t\t\t\t\tif ( restoreDisplay == null ) {\n\t\t\t\t\t\tdisplay = style.display;\n\t\t\t\t\t\trestoreDisplay = display === \"none\" ? \"\" : display;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tstyle.display = \"inline-block\";\n\t\t\t}\n\t\t}\n\t}\n\n\tif ( opts.overflow ) {\n\t\tstyle.overflow = \"hidden\";\n\t\tanim.always( function() {\n\t\t\tstyle.overflow = opts.overflow[ 0 ];\n\t\t\tstyle.overflowX = opts.overflow[ 1 ];\n\t\t\tstyle.overflowY = opts.overflow[ 2 ];\n\t\t} );\n\t}\n\n\t// Implement show/hide animations\n\tpropTween = false;\n\tfor ( prop in orig ) {\n\n\t\t// General show/hide setup for this element animation\n\t\tif ( !propTween ) {\n\t\t\tif ( dataShow ) {\n\t\t\t\tif ( \"hidden\" in dataShow ) {\n\t\t\t\t\thidden = dataShow.hidden;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tdataShow = dataPriv.access( elem, \"fxshow\", { display: restoreDisplay } );\n\t\t\t}\n\n\t\t\t// Store hidden/visible for toggle so `.stop().toggle()` \"reverses\"\n\t\t\tif ( toggle ) {\n\t\t\t\tdataShow.hidden = !hidden;\n\t\t\t}\n\n\t\t\t// Show elements before animating them\n\t\t\tif ( hidden ) {\n\t\t\t\tshowHide( [ elem ], true );\n\t\t\t}\n\n\t\t\t/* eslint-disable no-loop-func */\n\n\t\t\tanim.done( function() {\n\n\t\t\t\t/* eslint-enable no-loop-func */\n\n\t\t\t\t// The final step of a \"hide\" animation is actually hiding the element\n\t\t\t\tif ( !hidden ) {\n\t\t\t\t\tshowHide( [ elem ] );\n\t\t\t\t}\n\t\t\t\tdataPriv.remove( elem, \"fxshow\" );\n\t\t\t\tfor ( prop in orig ) {\n\t\t\t\t\tjQuery.style( elem, prop, orig[ prop ] );\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\n\t\t// Per-property setup\n\t\tpropTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );\n\t\tif ( !( prop in dataShow ) ) {\n\t\t\tdataShow[ prop ] = propTween.start;\n\t\t\tif ( hidden ) {\n\t\t\t\tpropTween.end = propTween.start;\n\t\t\t\tpropTween.start = 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\nfunction propFilter( props, specialEasing ) {\n\tvar index, name, easing, value, hooks;\n\n\t// camelCase, specialEasing and expand cssHook pass\n\tfor ( index in props ) {\n\t\tname = camelCase( index );\n\t\teasing = specialEasing[ name ];\n\t\tvalue = props[ index ];\n\t\tif ( Array.isArray( value ) ) {\n\t\t\teasing = value[ 1 ];\n\t\t\tvalue = props[ index ] = value[ 0 ];\n\t\t}\n\n\t\tif ( index !== name ) {\n\t\t\tprops[ name ] = value;\n\t\t\tdelete props[ index ];\n\t\t}\n\n\t\thooks = jQuery.cssHooks[ name ];\n\t\tif ( hooks && \"expand\" in hooks ) {\n\t\t\tvalue = hooks.expand( value );\n\t\t\tdelete props[ name ];\n\n\t\t\t// Not quite $.extend, this won't overwrite existing keys.\n\t\t\t// Reusing 'index' because we have the correct \"name\"\n\t\t\tfor ( index in value ) {\n\t\t\t\tif ( !( index in props ) ) {\n\t\t\t\t\tprops[ index ] = value[ index ];\n\t\t\t\t\tspecialEasing[ index ] = easing;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tspecialEasing[ name ] = easing;\n\t\t}\n\t}\n}\n\nfunction Animation( elem, properties, options ) {\n\tvar result,\n\t\tstopped,\n\t\tindex = 0,\n\t\tlength = Animation.prefilters.length,\n\t\tdeferred = jQuery.Deferred().always( function() {\n\n\t\t\t// Don't match elem in the :animated selector\n\t\t\tdelete tick.elem;\n\t\t} ),\n\t\ttick = function() {\n\t\t\tif ( stopped ) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tvar currentTime = fxNow || createFxNow(),\n\t\t\t\tremaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),\n\n\t\t\t\t// Support: Android 2.3 only\n\t\t\t\t// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (trac-12497)\n\t\t\t\ttemp = remaining / animation.duration || 0,\n\t\t\t\tpercent = 1 - temp,\n\t\t\t\tindex = 0,\n\t\t\t\tlength = animation.tweens.length;\n\n\t\t\tfor ( ; index < length; index++ ) {\n\t\t\t\tanimation.tweens[ index ].run( percent );\n\t\t\t}\n\n\t\t\tdeferred.notifyWith( elem, [ animation, percent, remaining ] );\n\n\t\t\t// If there's more to do, yield\n\t\t\tif ( percent < 1 && length ) {\n\t\t\t\treturn remaining;\n\t\t\t}\n\n\t\t\t// If this was an empty animation, synthesize a final progress notification\n\t\t\tif ( !length ) {\n\t\t\t\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\n\t\t\t}\n\n\t\t\t// Resolve the animation and report its conclusion\n\t\t\tdeferred.resolveWith( elem, [ animation ] );\n\t\t\treturn false;\n\t\t},\n\t\tanimation = deferred.promise( {\n\t\t\telem: elem,\n\t\t\tprops: jQuery.extend( {}, properties ),\n\t\t\topts: jQuery.extend( true, {\n\t\t\t\tspecialEasing: {},\n\t\t\t\teasing: jQuery.easing._default\n\t\t\t}, options ),\n\t\t\toriginalProperties: properties,\n\t\t\toriginalOptions: options,\n\t\t\tstartTime: fxNow || createFxNow(),\n\t\t\tduration: options.duration,\n\t\t\ttweens: [],\n\t\t\tcreateTween: function( prop, end ) {\n\t\t\t\tvar tween = jQuery.Tween( elem, animation.opts, prop, end,\n\t\t\t\t\tanimation.opts.specialEasing[ prop ] || animation.opts.easing );\n\t\t\t\tanimation.tweens.push( tween );\n\t\t\t\treturn tween;\n\t\t\t},\n\t\t\tstop: function( gotoEnd ) {\n\t\t\t\tvar index = 0,\n\n\t\t\t\t\t// If we are going to the end, we want to run all the tweens\n\t\t\t\t\t// otherwise we skip this part\n\t\t\t\t\tlength = gotoEnd ? animation.tweens.length : 0;\n\t\t\t\tif ( stopped ) {\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t\tstopped = true;\n\t\t\t\tfor ( ; index < length; index++ ) {\n\t\t\t\t\tanimation.tweens[ index ].run( 1 );\n\t\t\t\t}\n\n\t\t\t\t// Resolve when we played the last frame; otherwise, reject\n\t\t\t\tif ( gotoEnd ) {\n\t\t\t\t\tdeferred.notifyWith( elem, [ animation, 1, 0 ] );\n\t\t\t\t\tdeferred.resolveWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t} else {\n\t\t\t\t\tdeferred.rejectWith( elem, [ animation, gotoEnd ] );\n\t\t\t\t}\n\t\t\t\treturn this;\n\t\t\t}\n\t\t} ),\n\t\tprops = animation.props;\n\n\tpropFilter( props, animation.opts.specialEasing );\n\n\tfor ( ; index < length; index++ ) {\n\t\tresult = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );\n\t\tif ( result ) {\n\t\t\tif ( isFunction( result.stop ) ) {\n\t\t\t\tjQuery._queueHooks( animation.elem, animation.opts.queue ).stop =\n\t\t\t\t\tresult.stop.bind( result );\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t}\n\n\tjQuery.map( props, createTween, animation );\n\n\tif ( isFunction( animation.opts.start ) ) {\n\t\tanimation.opts.start.call( elem, animation );\n\t}\n\n\t// Attach callbacks from options\n\tanimation\n\t\t.progress( animation.opts.progress )\n\t\t.done( animation.opts.done, animation.opts.complete )\n\t\t.fail( animation.opts.fail )\n\t\t.always( animation.opts.always );\n\n\tjQuery.fx.timer(\n\t\tjQuery.extend( tick, {\n\t\t\telem: elem,\n\t\t\tanim: animation,\n\t\t\tqueue: animation.opts.queue\n\t\t} )\n\t);\n\n\treturn animation;\n}\n\njQuery.Animation = jQuery.extend( Animation, {\n\n\ttweeners: {\n\t\t\"*\": [ function( prop, value ) {\n\t\t\tvar tween = this.createTween( prop, value );\n\t\t\tadjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );\n\t\t\treturn tween;\n\t\t} ]\n\t},\n\n\ttweener: function( props, callback ) {\n\t\tif ( isFunction( props ) ) {\n\t\t\tcallback = props;\n\t\t\tprops = [ \"*\" ];\n\t\t} else {\n\t\t\tprops = props.match( rnothtmlwhite );\n\t\t}\n\n\t\tvar prop,\n\t\t\tindex = 0,\n\t\t\tlength = props.length;\n\n\t\tfor ( ; index < length; index++ ) {\n\t\t\tprop = props[ index ];\n\t\t\tAnimation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];\n\t\t\tAnimation.tweeners[ prop ].unshift( callback );\n\t\t}\n\t},\n\n\tprefilters: [ defaultPrefilter ],\n\n\tprefilter: function( callback, prepend ) {\n\t\tif ( prepend ) {\n\t\t\tAnimation.prefilters.unshift( callback );\n\t\t} else {\n\t\t\tAnimation.prefilters.push( callback );\n\t\t}\n\t}\n} );\n\njQuery.speed = function( speed, easing, fn ) {\n\tvar opt = speed && typeof speed === \"object\" ? jQuery.extend( {}, speed ) : {\n\t\tcomplete: fn || !fn && easing ||\n\t\t\tisFunction( speed ) && speed,\n\t\tduration: speed,\n\t\teasing: fn && easing || easing && !isFunction( easing ) && easing\n\t};\n\n\t// Go to the end state if fx are off\n\tif ( jQuery.fx.off ) {\n\t\topt.duration = 0;\n\n\t} else {\n\t\tif ( typeof opt.duration !== \"number\" ) {\n\t\t\tif ( opt.duration in jQuery.fx.speeds ) {\n\t\t\t\topt.duration = jQuery.fx.speeds[ opt.duration ];\n\n\t\t\t} else {\n\t\t\t\topt.duration = jQuery.fx.speeds._default;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Normalize opt.queue - true/undefined/null -> \"fx\"\n\tif ( opt.queue == null || opt.queue === true ) {\n\t\topt.queue = \"fx\";\n\t}\n\n\t// Queueing\n\topt.old = opt.complete;\n\n\topt.complete = function() {\n\t\tif ( isFunction( opt.old ) ) {\n\t\t\topt.old.call( this );\n\t\t}\n\n\t\tif ( opt.queue ) {\n\t\t\tjQuery.dequeue( this, opt.queue );\n\t\t}\n\t};\n\n\treturn opt;\n};\n\njQuery.fn.extend( {\n\tfadeTo: function( speed, to, easing, callback ) {\n\n\t\t// Show any hidden elements after setting opacity to 0\n\t\treturn this.filter( isHiddenWithinTree ).css( \"opacity\", 0 ).show()\n\n\t\t\t// Animate to the value specified\n\t\t\t.end().animate( { opacity: to }, speed, easing, callback );\n\t},\n\tanimate: function( prop, speed, easing, callback ) {\n\t\tvar empty = jQuery.isEmptyObject( prop ),\n\t\t\toptall = jQuery.speed( speed, easing, callback ),\n\t\t\tdoAnimation = function() {\n\n\t\t\t\t// Operate on a copy of prop so per-property easing won't be lost\n\t\t\t\tvar anim = Animation( this, jQuery.extend( {}, prop ), optall );\n\n\t\t\t\t// Empty animations, or finishing resolves immediately\n\t\t\t\tif ( empty || dataPriv.get( this, \"finish\" ) ) {\n\t\t\t\t\tanim.stop( true );\n\t\t\t\t}\n\t\t\t};\n\n\t\tdoAnimation.finish = doAnimation;\n\n\t\treturn empty || optall.queue === false ?\n\t\t\tthis.each( doAnimation ) :\n\t\t\tthis.queue( optall.queue, doAnimation );\n\t},\n\tstop: function( type, clearQueue, gotoEnd ) {\n\t\tvar stopQueue = function( hooks ) {\n\t\t\tvar stop = hooks.stop;\n\t\t\tdelete hooks.stop;\n\t\t\tstop( gotoEnd );\n\t\t};\n\n\t\tif ( typeof type !== \"string\" ) {\n\t\t\tgotoEnd = clearQueue;\n\t\t\tclearQueue = type;\n\t\t\ttype = undefined;\n\t\t}\n\t\tif ( clearQueue ) {\n\t\t\tthis.queue( type || \"fx\", [] );\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tvar dequeue = true,\n\t\t\t\tindex = type != null && type + \"queueHooks\",\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tdata = dataPriv.get( this );\n\n\t\t\tif ( index ) {\n\t\t\t\tif ( data[ index ] && data[ index ].stop ) {\n\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor ( index in data ) {\n\t\t\t\t\tif ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {\n\t\t\t\t\t\tstopQueue( data[ index ] );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this &&\n\t\t\t\t\t( type == null || timers[ index ].queue === type ) ) {\n\n\t\t\t\t\ttimers[ index ].anim.stop( gotoEnd );\n\t\t\t\t\tdequeue = false;\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Start the next in the queue if the last step wasn't forced.\n\t\t\t// Timers currently will call their complete callbacks, which\n\t\t\t// will dequeue but only if they were gotoEnd.\n\t\t\tif ( dequeue || !gotoEnd ) {\n\t\t\t\tjQuery.dequeue( this, type );\n\t\t\t}\n\t\t} );\n\t},\n\tfinish: function( type ) {\n\t\tif ( type !== false ) {\n\t\t\ttype = type || \"fx\";\n\t\t}\n\t\treturn this.each( function() {\n\t\t\tvar index,\n\t\t\t\tdata = dataPriv.get( this ),\n\t\t\t\tqueue = data[ type + \"queue\" ],\n\t\t\t\thooks = data[ type + \"queueHooks\" ],\n\t\t\t\ttimers = jQuery.timers,\n\t\t\t\tlength = queue ? queue.length : 0;\n\n\t\t\t// Enable finishing flag on private data\n\t\t\tdata.finish = true;\n\n\t\t\t// Empty the queue first\n\t\t\tjQuery.queue( this, type, [] );\n\n\t\t\tif ( hooks && hooks.stop ) {\n\t\t\t\thooks.stop.call( this, true );\n\t\t\t}\n\n\t\t\t// Look for any active animations, and finish them\n\t\t\tfor ( index = timers.length; index--; ) {\n\t\t\t\tif ( timers[ index ].elem === this && timers[ index ].queue === type ) {\n\t\t\t\t\ttimers[ index ].anim.stop( true );\n\t\t\t\t\ttimers.splice( index, 1 );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Look for any animations in the old queue and finish them\n\t\t\tfor ( index = 0; index < length; index++ ) {\n\t\t\t\tif ( queue[ index ] && queue[ index ].finish ) {\n\t\t\t\t\tqueue[ index ].finish.call( this );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Turn off finishing flag\n\t\t\tdelete data.finish;\n\t\t} );\n\t}\n} );\n\njQuery.each( [ \"toggle\", \"show\", \"hide\" ], function( _i, name ) {\n\tvar cssFn = jQuery.fn[ name ];\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn speed == null || typeof speed === \"boolean\" ?\n\t\t\tcssFn.apply( this, arguments ) :\n\t\t\tthis.animate( genFx( name, true ), speed, easing, callback );\n\t};\n} );\n\n// Generate shortcuts for custom animations\njQuery.each( {\n\tslideDown: genFx( \"show\" ),\n\tslideUp: genFx( \"hide\" ),\n\tslideToggle: genFx( \"toggle\" ),\n\tfadeIn: { opacity: \"show\" },\n\tfadeOut: { opacity: \"hide\" },\n\tfadeToggle: { opacity: \"toggle\" }\n}, function( name, props ) {\n\tjQuery.fn[ name ] = function( speed, easing, callback ) {\n\t\treturn this.animate( props, speed, easing, callback );\n\t};\n} );\n\njQuery.timers = [];\njQuery.fx.tick = function() {\n\tvar timer,\n\t\ti = 0,\n\t\ttimers = jQuery.timers;\n\n\tfxNow = Date.now();\n\n\tfor ( ; i < timers.length; i++ ) {\n\t\ttimer = timers[ i ];\n\n\t\t// Run the timer and safely remove it when done (allowing for external removal)\n\t\tif ( !timer() && timers[ i ] === timer ) {\n\t\t\ttimers.splice( i--, 1 );\n\t\t}\n\t}\n\n\tif ( !timers.length ) {\n\t\tjQuery.fx.stop();\n\t}\n\tfxNow = undefined;\n};\n\njQuery.fx.timer = function( timer ) {\n\tjQuery.timers.push( timer );\n\tjQuery.fx.start();\n};\n\njQuery.fx.interval = 13;\njQuery.fx.start = function() {\n\tif ( inProgress ) {\n\t\treturn;\n\t}\n\n\tinProgress = true;\n\tschedule();\n};\n\njQuery.fx.stop = function() {\n\tinProgress = null;\n};\n\njQuery.fx.speeds = {\n\tslow: 600,\n\tfast: 200,\n\n\t// Default speed\n\t_default: 400\n};\n\n\n// Based off of the plugin by Clint Helfers, with permission.\njQuery.fn.delay = function( time, type ) {\n\ttime = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;\n\ttype = type || \"fx\";\n\n\treturn this.queue( type, function( next, hooks ) {\n\t\tvar timeout = window.setTimeout( next, time );\n\t\thooks.stop = function() {\n\t\t\twindow.clearTimeout( timeout );\n\t\t};\n\t} );\n};\n\n\n( function() {\n\tvar input = document.createElement( \"input\" ),\n\t\tselect = document.createElement( \"select\" ),\n\t\topt = select.appendChild( document.createElement( \"option\" ) );\n\n\tinput.type = \"checkbox\";\n\n\t// Support: Android <=4.3 only\n\t// Default value for a checkbox should be \"on\"\n\tsupport.checkOn = input.value !== \"\";\n\n\t// Support: IE <=11 only\n\t// Must access selectedIndex to make default options select\n\tsupport.optSelected = opt.selected;\n\n\t// Support: IE <=11 only\n\t// An input loses its value after becoming a radio\n\tinput = document.createElement( \"input\" );\n\tinput.value = \"t\";\n\tinput.type = \"radio\";\n\tsupport.radioValue = input.value === \"t\";\n} )();\n\n\nvar boolHook,\n\tattrHandle = jQuery.expr.attrHandle;\n\njQuery.fn.extend( {\n\tattr: function( name, value ) {\n\t\treturn access( this, jQuery.attr, name, value, arguments.length > 1 );\n\t},\n\n\tremoveAttr: function( name ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.removeAttr( this, name );\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tattr: function( elem, name, value ) {\n\t\tvar ret, hooks,\n\t\t\tnType = elem.nodeType;\n\n\t\t// Don't get/set attributes on text, comment and attribute nodes\n\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Fallback to prop when attributes are not supported\n\t\tif ( typeof elem.getAttribute === \"undefined\" ) {\n\t\t\treturn jQuery.prop( elem, name, value );\n\t\t}\n\n\t\t// Attribute hooks are determined by the lowercase version\n\t\t// Grab necessary hook if one is defined\n\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\n\t\t\thooks = jQuery.attrHooks[ name.toLowerCase() ] ||\n\t\t\t\t( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\t\t\tif ( value === null ) {\n\t\t\t\tjQuery.removeAttr( elem, name );\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( hooks && \"set\" in hooks &&\n\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\telem.setAttribute( name, value + \"\" );\n\t\t\treturn value;\n\t\t}\n\n\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\n\t\t\treturn ret;\n\t\t}\n\n\t\tret = jQuery.find.attr( elem, name );\n\n\t\t// Non-existent attributes return null, we normalize to undefined\n\t\treturn ret == null ? undefined : ret;\n\t},\n\n\tattrHooks: {\n\t\ttype: {\n\t\t\tset: function( elem, value ) {\n\t\t\t\tif ( !support.radioValue && value === \"radio\" &&\n\t\t\t\t\tnodeName( elem, \"input\" ) ) {\n\t\t\t\t\tvar val = elem.value;\n\t\t\t\t\telem.setAttribute( \"type\", value );\n\t\t\t\t\tif ( val ) {\n\t\t\t\t\t\telem.value = val;\n\t\t\t\t\t}\n\t\t\t\t\treturn value;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t},\n\n\tremoveAttr: function( elem, value ) {\n\t\tvar name,\n\t\t\ti = 0,\n\n\t\t\t// Attribute names can contain non-HTML whitespace characters\n\t\t\t// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2\n\t\t\tattrNames = value && value.match( rnothtmlwhite );\n\n\t\tif ( attrNames && elem.nodeType === 1 ) {\n\t\t\twhile ( ( name = attrNames[ i++ ] ) ) {\n\t\t\t\telem.removeAttribute( name );\n\t\t\t}\n\t\t}\n\t}\n} );\n\n// Hooks for boolean attributes\nboolHook = {\n\tset: function( elem, value, name ) {\n\t\tif ( value === false ) {\n\n\t\t\t// Remove boolean attributes when set to false\n\t\t\tjQuery.removeAttr( elem, name );\n\t\t} else {\n\t\t\telem.setAttribute( name, name );\n\t\t}\n\t\treturn name;\n\t}\n};\n\njQuery.each( jQuery.expr.match.bool.source.match( /\\w+/g ), function( _i, name ) {\n\tvar getter = attrHandle[ name ] || jQuery.find.attr;\n\n\tattrHandle[ name ] = function( elem, name, isXML ) {\n\t\tvar ret, handle,\n\t\t\tlowercaseName = name.toLowerCase();\n\n\t\tif ( !isXML ) {\n\n\t\t\t// Avoid an infinite loop by temporarily removing this function from the getter\n\t\t\thandle = attrHandle[ lowercaseName ];\n\t\t\tattrHandle[ lowercaseName ] = ret;\n\t\t\tret = getter( elem, name, isXML ) != null ?\n\t\t\t\tlowercaseName :\n\t\t\t\tnull;\n\t\t\tattrHandle[ lowercaseName ] = handle;\n\t\t}\n\t\treturn ret;\n\t};\n} );\n\n\n\n\nvar rfocusable = /^(?:input|select|textarea|button)$/i,\n\trclickable = /^(?:a|area)$/i;\n\njQuery.fn.extend( {\n\tprop: function( name, value ) {\n\t\treturn access( this, jQuery.prop, name, value, arguments.length > 1 );\n\t},\n\n\tremoveProp: function( name ) {\n\t\treturn this.each( function() {\n\t\t\tdelete this[ jQuery.propFix[ name ] || name ];\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tprop: function( elem, name, value ) {\n\t\tvar ret, hooks,\n\t\t\tnType = elem.nodeType;\n\n\t\t// Don't get/set properties on text, comment and attribute nodes\n\t\tif ( nType === 3 || nType === 8 || nType === 2 ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {\n\n\t\t\t// Fix name and attach hooks\n\t\t\tname = jQuery.propFix[ name ] || name;\n\t\t\thooks = jQuery.propHooks[ name ];\n\t\t}\n\n\t\tif ( value !== undefined ) {\n\t\t\tif ( hooks && \"set\" in hooks &&\n\t\t\t\t( ret = hooks.set( elem, value, name ) ) !== undefined ) {\n\t\t\t\treturn ret;\n\t\t\t}\n\n\t\t\treturn ( elem[ name ] = value );\n\t\t}\n\n\t\tif ( hooks && \"get\" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {\n\t\t\treturn ret;\n\t\t}\n\n\t\treturn elem[ name ];\n\t},\n\n\tpropHooks: {\n\t\ttabIndex: {\n\t\t\tget: function( elem ) {\n\n\t\t\t\t// Support: IE <=9 - 11 only\n\t\t\t\t// elem.tabIndex doesn't always return the\n\t\t\t\t// correct value when it hasn't been explicitly set\n\t\t\t\t// Use proper attribute retrieval (trac-12072)\n\t\t\t\tvar tabindex = jQuery.find.attr( elem, \"tabindex\" );\n\n\t\t\t\tif ( tabindex ) {\n\t\t\t\t\treturn parseInt( tabindex, 10 );\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\trfocusable.test( elem.nodeName ) ||\n\t\t\t\t\trclickable.test( elem.nodeName ) &&\n\t\t\t\t\telem.href\n\t\t\t\t) {\n\t\t\t\t\treturn 0;\n\t\t\t\t}\n\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t}\n\t},\n\n\tpropFix: {\n\t\t\"for\": \"htmlFor\",\n\t\t\"class\": \"className\"\n\t}\n} );\n\n// Support: IE <=11 only\n// Accessing the selectedIndex property\n// forces the browser to respect setting selected\n// on the option\n// The getter ensures a default option is selected\n// when in an optgroup\n// eslint rule \"no-unused-expressions\" is disabled for this code\n// since it considers such accessions noop\nif ( !support.optSelected ) {\n\tjQuery.propHooks.selected = {\n\t\tget: function( elem ) {\n\n\t\t\t/* eslint no-unused-expressions: \"off\" */\n\n\t\t\tvar parent = elem.parentNode;\n\t\t\tif ( parent && parent.parentNode ) {\n\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t}\n\t\t\treturn null;\n\t\t},\n\t\tset: function( elem ) {\n\n\t\t\t/* eslint no-unused-expressions: \"off\" */\n\n\t\t\tvar parent = elem.parentNode;\n\t\t\tif ( parent ) {\n\t\t\t\tparent.selectedIndex;\n\n\t\t\t\tif ( parent.parentNode ) {\n\t\t\t\t\tparent.parentNode.selectedIndex;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\njQuery.each( [\n\t\"tabIndex\",\n\t\"readOnly\",\n\t\"maxLength\",\n\t\"cellSpacing\",\n\t\"cellPadding\",\n\t\"rowSpan\",\n\t\"colSpan\",\n\t\"useMap\",\n\t\"frameBorder\",\n\t\"contentEditable\"\n], function() {\n\tjQuery.propFix[ this.toLowerCase() ] = this;\n} );\n\n\n\n\n\t// Strip and collapse whitespace according to HTML spec\n\t// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace\n\tfunction stripAndCollapse( value ) {\n\t\tvar tokens = value.match( rnothtmlwhite ) || [];\n\t\treturn tokens.join( \" \" );\n\t}\n\n\nfunction getClass( elem ) {\n\treturn elem.getAttribute && elem.getAttribute( \"class\" ) || \"\";\n}\n\nfunction classesToArray( value ) {\n\tif ( Array.isArray( value ) ) {\n\t\treturn value;\n\t}\n\tif ( typeof value === \"string\" ) {\n\t\treturn value.match( rnothtmlwhite ) || [];\n\t}\n\treturn [];\n}\n\njQuery.fn.extend( {\n\taddClass: function( value ) {\n\t\tvar classNames, cur, curValue, className, i, finalValue;\n\n\t\tif ( isFunction( value ) ) {\n\t\t\treturn this.each( function( j ) {\n\t\t\t\tjQuery( this ).addClass( value.call( this, j, getClass( this ) ) );\n\t\t\t} );\n\t\t}\n\n\t\tclassNames = classesToArray( value );\n\n\t\tif ( classNames.length ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tcurValue = getClass( this );\n\t\t\t\tcur = this.nodeType === 1 && ( \" \" + stripAndCollapse( curValue ) + \" \" );\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tfor ( i = 0; i < classNames.length; i++ ) {\n\t\t\t\t\t\tclassName = classNames[ i ];\n\t\t\t\t\t\tif ( cur.indexOf( \" \" + className + \" \" ) < 0 ) {\n\t\t\t\t\t\t\tcur += className + \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\n\t\t\t\t\tfinalValue = stripAndCollapse( cur );\n\t\t\t\t\tif ( curValue !== finalValue ) {\n\t\t\t\t\t\tthis.setAttribute( \"class\", finalValue );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\tremoveClass: function( value ) {\n\t\tvar classNames, cur, curValue, className, i, finalValue;\n\n\t\tif ( isFunction( value ) ) {\n\t\t\treturn this.each( function( j ) {\n\t\t\t\tjQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );\n\t\t\t} );\n\t\t}\n\n\t\tif ( !arguments.length ) {\n\t\t\treturn this.attr( \"class\", \"\" );\n\t\t}\n\n\t\tclassNames = classesToArray( value );\n\n\t\tif ( classNames.length ) {\n\t\t\treturn this.each( function() {\n\t\t\t\tcurValue = getClass( this );\n\n\t\t\t\t// This expression is here for better compressibility (see addClass)\n\t\t\t\tcur = this.nodeType === 1 && ( \" \" + stripAndCollapse( curValue ) + \" \" );\n\n\t\t\t\tif ( cur ) {\n\t\t\t\t\tfor ( i = 0; i < classNames.length; i++ ) {\n\t\t\t\t\t\tclassName = classNames[ i ];\n\n\t\t\t\t\t\t// Remove *all* instances\n\t\t\t\t\t\twhile ( cur.indexOf( \" \" + className + \" \" ) > -1 ) {\n\t\t\t\t\t\t\tcur = cur.replace( \" \" + className + \" \", \" \" );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// Only assign if different to avoid unneeded rendering.\n\t\t\t\t\tfinalValue = stripAndCollapse( cur );\n\t\t\t\t\tif ( curValue !== finalValue ) {\n\t\t\t\t\t\tthis.setAttribute( \"class\", finalValue );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\ttoggleClass: function( value, stateVal ) {\n\t\tvar classNames, className, i, self,\n\t\t\ttype = typeof value,\n\t\t\tisValidValue = type === \"string\" || Array.isArray( value );\n\n\t\tif ( isFunction( value ) ) {\n\t\t\treturn this.each( function( i ) {\n\t\t\t\tjQuery( this ).toggleClass(\n\t\t\t\t\tvalue.call( this, i, getClass( this ), stateVal ),\n\t\t\t\t\tstateVal\n\t\t\t\t);\n\t\t\t} );\n\t\t}\n\n\t\tif ( typeof stateVal === \"boolean\" && isValidValue ) {\n\t\t\treturn stateVal ? this.addClass( value ) : this.removeClass( value );\n\t\t}\n\n\t\tclassNames = classesToArray( value );\n\n\t\treturn this.each( function() {\n\t\t\tif ( isValidValue ) {\n\n\t\t\t\t// Toggle individual class names\n\t\t\t\tself = jQuery( this );\n\n\t\t\t\tfor ( i = 0; i < classNames.length; i++ ) {\n\t\t\t\t\tclassName = classNames[ i ];\n\n\t\t\t\t\t// Check each className given, space separated list\n\t\t\t\t\tif ( self.hasClass( className ) ) {\n\t\t\t\t\t\tself.removeClass( className );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself.addClass( className );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t// Toggle whole class name\n\t\t\t} else if ( value === undefined || type === \"boolean\" ) {\n\t\t\t\tclassName = getClass( this );\n\t\t\t\tif ( className ) {\n\n\t\t\t\t\t// Store className if set\n\t\t\t\t\tdataPriv.set( this, \"__className__\", className );\n\t\t\t\t}\n\n\t\t\t\t// If the element has a class name or if we're passed `false`,\n\t\t\t\t// then remove the whole classname (if there was one, the above saved it).\n\t\t\t\t// Otherwise bring back whatever was previously saved (if anything),\n\t\t\t\t// falling back to the empty string if nothing was stored.\n\t\t\t\tif ( this.setAttribute ) {\n\t\t\t\t\tthis.setAttribute( \"class\",\n\t\t\t\t\t\tclassName || value === false ?\n\t\t\t\t\t\t\t\"\" :\n\t\t\t\t\t\t\tdataPriv.get( this, \"__className__\" ) || \"\"\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t},\n\n\thasClass: function( selector ) {\n\t\tvar className, elem,\n\t\t\ti = 0;\n\n\t\tclassName = \" \" + selector + \" \";\n\t\twhile ( ( elem = this[ i++ ] ) ) {\n\t\t\tif ( elem.nodeType === 1 &&\n\t\t\t\t( \" \" + stripAndCollapse( getClass( elem ) ) + \" \" ).indexOf( className ) > -1 ) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n} );\n\n\n\n\nvar rreturn = /\\r/g;\n\njQuery.fn.extend( {\n\tval: function( value ) {\n\t\tvar hooks, ret, valueIsFunction,\n\t\t\telem = this[ 0 ];\n\n\t\tif ( !arguments.length ) {\n\t\t\tif ( elem ) {\n\t\t\t\thooks = jQuery.valHooks[ elem.type ] ||\n\t\t\t\t\tjQuery.valHooks[ elem.nodeName.toLowerCase() ];\n\n\t\t\t\tif ( hooks &&\n\t\t\t\t\t\"get\" in hooks &&\n\t\t\t\t\t( ret = hooks.get( elem, \"value\" ) ) !== undefined\n\t\t\t\t) {\n\t\t\t\t\treturn ret;\n\t\t\t\t}\n\n\t\t\t\tret = elem.value;\n\n\t\t\t\t// Handle most common string cases\n\t\t\t\tif ( typeof ret === \"string\" ) {\n\t\t\t\t\treturn ret.replace( rreturn, \"\" );\n\t\t\t\t}\n\n\t\t\t\t// Handle cases where value is null/undef or number\n\t\t\t\treturn ret == null ? \"\" : ret;\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tvalueIsFunction = isFunction( value );\n\n\t\treturn this.each( function( i ) {\n\t\t\tvar val;\n\n\t\t\tif ( this.nodeType !== 1 ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif ( valueIsFunction ) {\n\t\t\t\tval = value.call( this, i, jQuery( this ).val() );\n\t\t\t} else {\n\t\t\t\tval = value;\n\t\t\t}\n\n\t\t\t// Treat null/undefined as \"\"; convert numbers to string\n\t\t\tif ( val == null ) {\n\t\t\t\tval = \"\";\n\n\t\t\t} else if ( typeof val === \"number\" ) {\n\t\t\t\tval += \"\";\n\n\t\t\t} else if ( Array.isArray( val ) ) {\n\t\t\t\tval = jQuery.map( val, function( value ) {\n\t\t\t\t\treturn value == null ? \"\" : value + \"\";\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\thooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];\n\n\t\t\t// If set returns undefined, fall back to normal setting\n\t\t\tif ( !hooks || !( \"set\" in hooks ) || hooks.set( this, val, \"value\" ) === undefined ) {\n\t\t\t\tthis.value = val;\n\t\t\t}\n\t\t} );\n\t}\n} );\n\njQuery.extend( {\n\tvalHooks: {\n\t\toption: {\n\t\t\tget: function( elem ) {\n\n\t\t\t\tvar val = jQuery.find.attr( elem, \"value\" );\n\t\t\t\treturn val != null ?\n\t\t\t\t\tval :\n\n\t\t\t\t\t// Support: IE <=10 - 11 only\n\t\t\t\t\t// option.text throws exceptions (trac-14686, trac-14858)\n\t\t\t\t\t// Strip and collapse whitespace\n\t\t\t\t\t// https://html.spec.whatwg.org/#strip-and-collapse-whitespace\n\t\t\t\t\tstripAndCollapse( jQuery.text( elem ) );\n\t\t\t}\n\t\t},\n\t\tselect: {\n\t\t\tget: function( elem ) {\n\t\t\t\tvar value, option, i,\n\t\t\t\t\toptions = elem.options,\n\t\t\t\t\tindex = elem.selectedIndex,\n\t\t\t\t\tone = elem.type === \"select-one\",\n\t\t\t\t\tvalues = one ? null : [],\n\t\t\t\t\tmax = one ? index + 1 : options.length;\n\n\t\t\t\tif ( index < 0 ) {\n\t\t\t\t\ti = max;\n\n\t\t\t\t} else {\n\t\t\t\t\ti = one ? index : 0;\n\t\t\t\t}\n\n\t\t\t\t// Loop through all the selected options\n\t\t\t\tfor ( ; i < max; i++ ) {\n\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t// IE8-9 doesn't update selected after form reset (trac-2551)\n\t\t\t\t\tif ( ( option.selected || i === index ) &&\n\n\t\t\t\t\t\t\t// Don't return options that are disabled or in a disabled optgroup\n\t\t\t\t\t\t\t!option.disabled &&\n\t\t\t\t\t\t\t( !option.parentNode.disabled ||\n\t\t\t\t\t\t\t\t!nodeName( option.parentNode, \"optgroup\" ) ) ) {\n\n\t\t\t\t\t\t// Get the specific value for the option\n\t\t\t\t\t\tvalue = jQuery( option ).val();\n\n\t\t\t\t\t\t// We don't need an array for one selects\n\t\t\t\t\t\tif ( one ) {\n\t\t\t\t\t\t\treturn value;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Multi-Selects return an array\n\t\t\t\t\t\tvalues.push( value );\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn values;\n\t\t\t},\n\n\t\t\tset: function( elem, value ) {\n\t\t\t\tvar optionSet, option,\n\t\t\t\t\toptions = elem.options,\n\t\t\t\t\tvalues = jQuery.makeArray( value ),\n\t\t\t\t\ti = options.length;\n\n\t\t\t\twhile ( i-- ) {\n\t\t\t\t\toption = options[ i ];\n\n\t\t\t\t\t/* eslint-disable no-cond-assign */\n\n\t\t\t\t\tif ( option.selected =\n\t\t\t\t\t\tjQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1\n\t\t\t\t\t) {\n\t\t\t\t\t\toptionSet = true;\n\t\t\t\t\t}\n\n\t\t\t\t\t/* eslint-enable no-cond-assign */\n\t\t\t\t}\n\n\t\t\t\t// Force browsers to behave consistently when non-matching value is set\n\t\t\t\tif ( !optionSet ) {\n\t\t\t\t\telem.selectedIndex = -1;\n\t\t\t\t}\n\t\t\t\treturn values;\n\t\t\t}\n\t\t}\n\t}\n} );\n\n// Radios and checkboxes getter/setter\njQuery.each( [ \"radio\", \"checkbox\" ], function() {\n\tjQuery.valHooks[ this ] = {\n\t\tset: function( elem, value ) {\n\t\t\tif ( Array.isArray( value ) ) {\n\t\t\t\treturn ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );\n\t\t\t}\n\t\t}\n\t};\n\tif ( !support.checkOn ) {\n\t\tjQuery.valHooks[ this ].get = function( elem ) {\n\t\t\treturn elem.getAttribute( \"value\" ) === null ? \"on\" : elem.value;\n\t\t};\n\t}\n} );\n\n\n\n\n// Return jQuery for attributes-only inclusion\nvar location = window.location;\n\nvar nonce = { guid: Date.now() };\n\nvar rquery = ( /\\?/ );\n\n\n\n// Cross-browser xml parsing\njQuery.parseXML = function( data ) {\n\tvar xml, parserErrorElem;\n\tif ( !data || typeof data !== \"string\" ) {\n\t\treturn null;\n\t}\n\n\t// Support: IE 9 - 11 only\n\t// IE throws on parseFromString with invalid input.\n\ttry {\n\t\txml = ( new window.DOMParser() ).parseFromString( data, \"text/xml\" );\n\t} catch ( e ) {}\n\n\tparserErrorElem = xml && xml.getElementsByTagName( \"parsererror\" )[ 0 ];\n\tif ( !xml || parserErrorElem ) {\n\t\tjQuery.error( \"Invalid XML: \" + (\n\t\t\tparserErrorElem ?\n\t\t\t\tjQuery.map( parserErrorElem.childNodes, function( el ) {\n\t\t\t\t\treturn el.textContent;\n\t\t\t\t} ).join( \"\\n\" ) :\n\t\t\t\tdata\n\t\t) );\n\t}\n\treturn xml;\n};\n\n\nvar rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,\n\tstopPropagationCallback = function( e ) {\n\t\te.stopPropagation();\n\t};\n\njQuery.extend( jQuery.event, {\n\n\ttrigger: function( event, data, elem, onlyHandlers ) {\n\n\t\tvar i, cur, tmp, bubbleType, ontype, handle, special, lastElement,\n\t\t\teventPath = [ elem || document ],\n\t\t\ttype = hasOwn.call( event, \"type\" ) ? event.type : event,\n\t\t\tnamespaces = hasOwn.call( event, \"namespace\" ) ? event.namespace.split( \".\" ) : [];\n\n\t\tcur = lastElement = tmp = elem = elem || document;\n\n\t\t// Don't do events on text and comment nodes\n\t\tif ( elem.nodeType === 3 || elem.nodeType === 8 ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// focus/blur morphs to focusin/out; ensure we're not firing them right now\n\t\tif ( rfocusMorph.test( type + jQuery.event.triggered ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( type.indexOf( \".\" ) > -1 ) {\n\n\t\t\t// Namespaced trigger; create a regexp to match event type in handle()\n\t\t\tnamespaces = type.split( \".\" );\n\t\t\ttype = namespaces.shift();\n\t\t\tnamespaces.sort();\n\t\t}\n\t\tontype = type.indexOf( \":\" ) < 0 && \"on\" + type;\n\n\t\t// Caller can pass in a jQuery.Event object, Object, or just an event type string\n\t\tevent = event[ jQuery.expando ] ?\n\t\t\tevent :\n\t\t\tnew jQuery.Event( type, typeof event === \"object\" && event );\n\n\t\t// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)\n\t\tevent.isTrigger = onlyHandlers ? 2 : 3;\n\t\tevent.namespace = namespaces.join( \".\" );\n\t\tevent.rnamespace = event.namespace ?\n\t\t\tnew RegExp( \"(^|\\\\.)\" + namespaces.join( \"\\\\.(?:.*\\\\.|)\" ) + \"(\\\\.|$)\" ) :\n\t\t\tnull;\n\n\t\t// Clean up the event in case it is being reused\n\t\tevent.result = undefined;\n\t\tif ( !event.target ) {\n\t\t\tevent.target = elem;\n\t\t}\n\n\t\t// Clone any incoming data and prepend the event, creating the handler arg list\n\t\tdata = data == null ?\n\t\t\t[ event ] :\n\t\t\tjQuery.makeArray( data, [ event ] );\n\n\t\t// Allow special events to draw outside the lines\n\t\tspecial = jQuery.event.special[ type ] || {};\n\t\tif ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Determine event propagation path in advance, per W3C events spec (trac-9951)\n\t\t// Bubble up to document, then to window; watch for a global ownerDocument var (trac-9724)\n\t\tif ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {\n\n\t\t\tbubbleType = special.delegateType || type;\n\t\t\tif ( !rfocusMorph.test( bubbleType + type ) ) {\n\t\t\t\tcur = cur.parentNode;\n\t\t\t}\n\t\t\tfor ( ; cur; cur = cur.parentNode ) {\n\t\t\t\teventPath.push( cur );\n\t\t\t\ttmp = cur;\n\t\t\t}\n\n\t\t\t// Only add window if we got to document (e.g., not plain obj or detached DOM)\n\t\t\tif ( tmp === ( elem.ownerDocument || document ) ) {\n\t\t\t\teventPath.push( tmp.defaultView || tmp.parentWindow || window );\n\t\t\t}\n\t\t}\n\n\t\t// Fire handlers on the event path\n\t\ti = 0;\n\t\twhile ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {\n\t\t\tlastElement = cur;\n\t\t\tevent.type = i > 1 ?\n\t\t\t\tbubbleType :\n\t\t\t\tspecial.bindType || type;\n\n\t\t\t// jQuery handler\n\t\t\thandle = ( dataPriv.get( cur, \"events\" ) || Object.create( null ) )[ event.type ] &&\n\t\t\t\tdataPriv.get( cur, \"handle\" );\n\t\t\tif ( handle ) {\n\t\t\t\thandle.apply( cur, data );\n\t\t\t}\n\n\t\t\t// Native handler\n\t\t\thandle = ontype && cur[ ontype ];\n\t\t\tif ( handle && handle.apply && acceptData( cur ) ) {\n\t\t\t\tevent.result = handle.apply( cur, data );\n\t\t\t\tif ( event.result === false ) {\n\t\t\t\t\tevent.preventDefault();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tevent.type = type;\n\n\t\t// If nobody prevented the default action, do it now\n\t\tif ( !onlyHandlers && !event.isDefaultPrevented() ) {\n\n\t\t\tif ( ( !special._default ||\n\t\t\t\tspecial._default.apply( eventPath.pop(), data ) === false ) &&\n\t\t\t\tacceptData( elem ) ) {\n\n\t\t\t\t// Call a native DOM method on the target with the same name as the event.\n\t\t\t\t// Don't do default actions on window, that's where global variables be (trac-6170)\n\t\t\t\tif ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {\n\n\t\t\t\t\t// Don't re-trigger an onFOO event when we call its FOO() method\n\t\t\t\t\ttmp = elem[ ontype ];\n\n\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\telem[ ontype ] = null;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Prevent re-triggering of the same event, since we already bubbled it above\n\t\t\t\t\tjQuery.event.triggered = type;\n\n\t\t\t\t\tif ( event.isPropagationStopped() ) {\n\t\t\t\t\t\tlastElement.addEventListener( type, stopPropagationCallback );\n\t\t\t\t\t}\n\n\t\t\t\t\telem[ type ]();\n\n\t\t\t\t\tif ( event.isPropagationStopped() ) {\n\t\t\t\t\t\tlastElement.removeEventListener( type, stopPropagationCallback );\n\t\t\t\t\t}\n\n\t\t\t\t\tjQuery.event.triggered = undefined;\n\n\t\t\t\t\tif ( tmp ) {\n\t\t\t\t\t\telem[ ontype ] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn event.result;\n\t},\n\n\t// Piggyback on a donor event to simulate a different one\n\t// Used only for `focus(in | out)` events\n\tsimulate: function( type, elem, event ) {\n\t\tvar e = jQuery.extend(\n\t\t\tnew jQuery.Event(),\n\t\t\tevent,\n\t\t\t{\n\t\t\t\ttype: type,\n\t\t\t\tisSimulated: true\n\t\t\t}\n\t\t);\n\n\t\tjQuery.event.trigger( e, null, elem );\n\t}\n\n} );\n\njQuery.fn.extend( {\n\n\ttrigger: function( type, data ) {\n\t\treturn this.each( function() {\n\t\t\tjQuery.event.trigger( type, data, this );\n\t\t} );\n\t},\n\ttriggerHandler: function( type, data ) {\n\t\tvar elem = this[ 0 ];\n\t\tif ( elem ) {\n\t\t\treturn jQuery.event.trigger( type, data, elem, true );\n\t\t}\n\t}\n} );\n\n\nvar\n\trbracket = /\\[\\]$/,\n\trCRLF = /\\r?\\n/g,\n\trsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,\n\trsubmittable = /^(?:input|select|textarea|keygen)/i;\n\nfunction buildParams( prefix, obj, traditional, add ) {\n\tvar name;\n\n\tif ( Array.isArray( obj ) ) {\n\n\t\t// Serialize array item.\n\t\tjQuery.each( obj, function( i, v ) {\n\t\t\tif ( traditional || rbracket.test( prefix ) ) {\n\n\t\t\t\t// Treat each array item as a scalar.\n\t\t\t\tadd( prefix, v );\n\n\t\t\t} else {\n\n\t\t\t\t// Item is non-scalar (array or object), encode its numeric index.\n\t\t\t\tbuildParams(\n\t\t\t\t\tprefix + \"[\" + ( typeof v === \"object\" && v != null ? i : \"\" ) + \"]\",\n\t\t\t\t\tv,\n\t\t\t\t\ttraditional,\n\t\t\t\t\tadd\n\t\t\t\t);\n\t\t\t}\n\t\t} );\n\n\t} else if ( !traditional && toType( obj ) === \"object\" ) {\n\n\t\t// Serialize object item.\n\t\tfor ( name in obj ) {\n\t\t\tbuildParams( prefix + \"[\" + name + \"]\", obj[ name ], traditional, add );\n\t\t}\n\n\t} else {\n\n\t\t// Serialize scalar item.\n\t\tadd( prefix, obj );\n\t}\n}\n\n// Serialize an array of form elements or a set of\n// key/values into a query string\njQuery.param = function( a, traditional ) {\n\tvar prefix,\n\t\ts = [],\n\t\tadd = function( key, valueOrFunction ) {\n\n\t\t\t// If value is a function, invoke it and use its return value\n\t\t\tvar value = isFunction( valueOrFunction ) ?\n\t\t\t\tvalueOrFunction() :\n\t\t\t\tvalueOrFunction;\n\n\t\t\ts[ s.length ] = encodeURIComponent( key ) + \"=\" +\n\t\t\t\tencodeURIComponent( value == null ? \"\" : value );\n\t\t};\n\n\tif ( a == null ) {\n\t\treturn \"\";\n\t}\n\n\t// If an array was passed in, assume that it is an array of form elements.\n\tif ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {\n\n\t\t// Serialize the form elements\n\t\tjQuery.each( a, function() {\n\t\t\tadd( this.name, this.value );\n\t\t} );\n\n\t} else {\n\n\t\t// If traditional, encode the \"old\" way (the way 1.3.2 or older\n\t\t// did it), otherwise encode params recursively.\n\t\tfor ( prefix in a ) {\n\t\t\tbuildParams( prefix, a[ prefix ], traditional, add );\n\t\t}\n\t}\n\n\t// Return the resulting serialization\n\treturn s.join( \"&\" );\n};\n\njQuery.fn.extend( {\n\tserialize: function() {\n\t\treturn jQuery.param( this.serializeArray() );\n\t},\n\tserializeArray: function() {\n\t\treturn this.map( function() {\n\n\t\t\t// Can add propHook for \"elements\" to filter or add form elements\n\t\t\tvar elements = jQuery.prop( this, \"elements\" );\n\t\t\treturn elements ? jQuery.makeArray( elements ) : this;\n\t\t} ).filter( function() {\n\t\t\tvar type = this.type;\n\n\t\t\t// Use .is( \":disabled\" ) so that fieldset[disabled] works\n\t\t\treturn this.name && !jQuery( this ).is( \":disabled\" ) &&\n\t\t\t\trsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&\n\t\t\t\t( this.checked || !rcheckableType.test( type ) );\n\t\t} ).map( function( _i, elem ) {\n\t\t\tvar val = jQuery( this ).val();\n\n\t\t\tif ( val == null ) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tif ( Array.isArray( val ) ) {\n\t\t\t\treturn jQuery.map( val, function( val ) {\n\t\t\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t\t\t} );\n\t\t\t}\n\n\t\t\treturn { name: elem.name, value: val.replace( rCRLF, \"\\r\\n\" ) };\n\t\t} ).get();\n\t}\n} );\n\n\nvar\n\tr20 = /%20/g,\n\trhash = /#.*$/,\n\trantiCache = /([?&])_=[^&]*/,\n\trheaders = /^(.*?):[ \\t]*([^\\r\\n]*)$/mg,\n\n\t// trac-7653, trac-8125, trac-8152: local protocol detection\n\trlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,\n\trnoContent = /^(?:GET|HEAD)$/,\n\trprotocol = /^\\/\\//,\n\n\t/* Prefilters\n\t * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)\n\t * 2) These are called:\n\t *    - BEFORE asking for a transport\n\t *    - AFTER param serialization (s.data is a string if s.processData is true)\n\t * 3) key is the dataType\n\t * 4) the catchall symbol \"*\" can be used\n\t * 5) execution will start with transport dataType and THEN continue down to \"*\" if needed\n\t */\n\tprefilters = {},\n\n\t/* Transports bindings\n\t * 1) key is the dataType\n\t * 2) the catchall symbol \"*\" can be used\n\t * 3) selection will start with transport dataType and THEN go to \"*\" if needed\n\t */\n\ttransports = {},\n\n\t// Avoid comment-prolog char sequence (trac-10098); must appease lint and evade compression\n\tallTypes = \"*/\".concat( \"*\" ),\n\n\t// Anchor tag for parsing the document origin\n\toriginAnchor = document.createElement( \"a\" );\n\noriginAnchor.href = location.href;\n\n// Base \"constructor\" for jQuery.ajaxPrefilter and jQuery.ajaxTransport\nfunction addToPrefiltersOrTransports( structure ) {\n\n\t// dataTypeExpression is optional and defaults to \"*\"\n\treturn function( dataTypeExpression, func ) {\n\n\t\tif ( typeof dataTypeExpression !== \"string\" ) {\n\t\t\tfunc = dataTypeExpression;\n\t\t\tdataTypeExpression = \"*\";\n\t\t}\n\n\t\tvar dataType,\n\t\t\ti = 0,\n\t\t\tdataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];\n\n\t\tif ( isFunction( func ) ) {\n\n\t\t\t// For each dataType in the dataTypeExpression\n\t\t\twhile ( ( dataType = dataTypes[ i++ ] ) ) {\n\n\t\t\t\t// Prepend if requested\n\t\t\t\tif ( dataType[ 0 ] === \"+\" ) {\n\t\t\t\t\tdataType = dataType.slice( 1 ) || \"*\";\n\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );\n\n\t\t\t\t// Otherwise append\n\t\t\t\t} else {\n\t\t\t\t\t( structure[ dataType ] = structure[ dataType ] || [] ).push( func );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t};\n}\n\n// Base inspection function for prefilters and transports\nfunction inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {\n\n\tvar inspected = {},\n\t\tseekingTransport = ( structure === transports );\n\n\tfunction inspect( dataType ) {\n\t\tvar selected;\n\t\tinspected[ dataType ] = true;\n\t\tjQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {\n\t\t\tvar dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );\n\t\t\tif ( typeof dataTypeOrTransport === \"string\" &&\n\t\t\t\t!seekingTransport && !inspected[ dataTypeOrTransport ] ) {\n\n\t\t\t\toptions.dataTypes.unshift( dataTypeOrTransport );\n\t\t\t\tinspect( dataTypeOrTransport );\n\t\t\t\treturn false;\n\t\t\t} else if ( seekingTransport ) {\n\t\t\t\treturn !( selected = dataTypeOrTransport );\n\t\t\t}\n\t\t} );\n\t\treturn selected;\n\t}\n\n\treturn inspect( options.dataTypes[ 0 ] ) || !inspected[ \"*\" ] && inspect( \"*\" );\n}\n\n// A special extend for ajax options\n// that takes \"flat\" options (not to be deep extended)\n// Fixes trac-9887\nfunction ajaxExtend( target, src ) {\n\tvar key, deep,\n\t\tflatOptions = jQuery.ajaxSettings.flatOptions || {};\n\n\tfor ( key in src ) {\n\t\tif ( src[ key ] !== undefined ) {\n\t\t\t( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];\n\t\t}\n\t}\n\tif ( deep ) {\n\t\tjQuery.extend( true, target, deep );\n\t}\n\n\treturn target;\n}\n\n/* Handles responses to an ajax request:\n * - finds the right dataType (mediates between content-type and expected dataType)\n * - returns the corresponding response\n */\nfunction ajaxHandleResponses( s, jqXHR, responses ) {\n\n\tvar ct, type, finalDataType, firstDataType,\n\t\tcontents = s.contents,\n\t\tdataTypes = s.dataTypes;\n\n\t// Remove auto dataType and get content-type in the process\n\twhile ( dataTypes[ 0 ] === \"*\" ) {\n\t\tdataTypes.shift();\n\t\tif ( ct === undefined ) {\n\t\t\tct = s.mimeType || jqXHR.getResponseHeader( \"Content-Type\" );\n\t\t}\n\t}\n\n\t// Check if we're dealing with a known content-type\n\tif ( ct ) {\n\t\tfor ( type in contents ) {\n\t\t\tif ( contents[ type ] && contents[ type ].test( ct ) ) {\n\t\t\t\tdataTypes.unshift( type );\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Check to see if we have a response for the expected dataType\n\tif ( dataTypes[ 0 ] in responses ) {\n\t\tfinalDataType = dataTypes[ 0 ];\n\t} else {\n\n\t\t// Try convertible dataTypes\n\t\tfor ( type in responses ) {\n\t\t\tif ( !dataTypes[ 0 ] || s.converters[ type + \" \" + dataTypes[ 0 ] ] ) {\n\t\t\t\tfinalDataType = type;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ( !firstDataType ) {\n\t\t\t\tfirstDataType = type;\n\t\t\t}\n\t\t}\n\n\t\t// Or just use first one\n\t\tfinalDataType = finalDataType || firstDataType;\n\t}\n\n\t// If we found a dataType\n\t// We add the dataType to the list if needed\n\t// and return the corresponding response\n\tif ( finalDataType ) {\n\t\tif ( finalDataType !== dataTypes[ 0 ] ) {\n\t\t\tdataTypes.unshift( finalDataType );\n\t\t}\n\t\treturn responses[ finalDataType ];\n\t}\n}\n\n/* Chain conversions given the request and the original response\n * Also sets the responseXXX fields on the jqXHR instance\n */\nfunction ajaxConvert( s, response, jqXHR, isSuccess ) {\n\tvar conv2, current, conv, tmp, prev,\n\t\tconverters = {},\n\n\t\t// Work with a copy of dataTypes in case we need to modify it for conversion\n\t\tdataTypes = s.dataTypes.slice();\n\n\t// Create converters map with lowercased keys\n\tif ( dataTypes[ 1 ] ) {\n\t\tfor ( conv in s.converters ) {\n\t\t\tconverters[ conv.toLowerCase() ] = s.converters[ conv ];\n\t\t}\n\t}\n\n\tcurrent = dataTypes.shift();\n\n\t// Convert to each sequential dataType\n\twhile ( current ) {\n\n\t\tif ( s.responseFields[ current ] ) {\n\t\t\tjqXHR[ s.responseFields[ current ] ] = response;\n\t\t}\n\n\t\t// Apply the dataFilter if provided\n\t\tif ( !prev && isSuccess && s.dataFilter ) {\n\t\t\tresponse = s.dataFilter( response, s.dataType );\n\t\t}\n\n\t\tprev = current;\n\t\tcurrent = dataTypes.shift();\n\n\t\tif ( current ) {\n\n\t\t\t// There's only work to do if current dataType is non-auto\n\t\t\tif ( current === \"*\" ) {\n\n\t\t\t\tcurrent = prev;\n\n\t\t\t// Convert response if prev dataType is non-auto and differs from current\n\t\t\t} else if ( prev !== \"*\" && prev !== current ) {\n\n\t\t\t\t// Seek a direct converter\n\t\t\t\tconv = converters[ prev + \" \" + current ] || converters[ \"* \" + current ];\n\n\t\t\t\t// If none found, seek a pair\n\t\t\t\tif ( !conv ) {\n\t\t\t\t\tfor ( conv2 in converters ) {\n\n\t\t\t\t\t\t// If conv2 outputs current\n\t\t\t\t\t\ttmp = conv2.split( \" \" );\n\t\t\t\t\t\tif ( tmp[ 1 ] === current ) {\n\n\t\t\t\t\t\t\t// If prev can be converted to accepted input\n\t\t\t\t\t\t\tconv = converters[ prev + \" \" + tmp[ 0 ] ] ||\n\t\t\t\t\t\t\t\tconverters[ \"* \" + tmp[ 0 ] ];\n\t\t\t\t\t\t\tif ( conv ) {\n\n\t\t\t\t\t\t\t\t// Condense equivalence converters\n\t\t\t\t\t\t\t\tif ( conv === true ) {\n\t\t\t\t\t\t\t\t\tconv = converters[ conv2 ];\n\n\t\t\t\t\t\t\t\t// Otherwise, insert the intermediate dataType\n\t\t\t\t\t\t\t\t} else if ( converters[ conv2 ] !== true ) {\n\t\t\t\t\t\t\t\t\tcurrent = tmp[ 0 ];\n\t\t\t\t\t\t\t\t\tdataTypes.unshift( tmp[ 1 ] );\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Apply converter (if not an equivalence)\n\t\t\t\tif ( conv !== true ) {\n\n\t\t\t\t\t// Unless errors are allowed to bubble, catch and return them\n\t\t\t\t\tif ( conv && s.throws ) {\n\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tresponse = conv( response );\n\t\t\t\t\t\t} catch ( e ) {\n\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\tstate: \"parsererror\",\n\t\t\t\t\t\t\t\terror: conv ? e : \"No conversion from \" + prev + \" to \" + current\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn { state: \"success\", data: response };\n}\n\njQuery.extend( {\n\n\t// Counter for holding the number of active queries\n\tactive: 0,\n\n\t// Last-Modified header cache for next request\n\tlastModified: {},\n\tetag: {},\n\n\tajaxSettings: {\n\t\turl: location.href,\n\t\ttype: \"GET\",\n\t\tisLocal: rlocalProtocol.test( location.protocol ),\n\t\tglobal: true,\n\t\tprocessData: true,\n\t\tasync: true,\n\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\n\n\t\t/*\n\t\ttimeout: 0,\n\t\tdata: null,\n\t\tdataType: null,\n\t\tusername: null,\n\t\tpassword: null,\n\t\tcache: null,\n\t\tthrows: false,\n\t\ttraditional: false,\n\t\theaders: {},\n\t\t*/\n\n\t\taccepts: {\n\t\t\t\"*\": allTypes,\n\t\t\ttext: \"text/plain\",\n\t\t\thtml: \"text/html\",\n\t\t\txml: \"application/xml, text/xml\",\n\t\t\tjson: \"application/json, text/javascript\"\n\t\t},\n\n\t\tcontents: {\n\t\t\txml: /\\bxml\\b/,\n\t\t\thtml: /\\bhtml/,\n\t\t\tjson: /\\bjson\\b/\n\t\t},\n\n\t\tresponseFields: {\n\t\t\txml: \"responseXML\",\n\t\t\ttext: \"responseText\",\n\t\t\tjson: \"responseJSON\"\n\t\t},\n\n\t\t// Data converters\n\t\t// Keys separate source (or catchall \"*\") and destination types with a single space\n\t\tconverters: {\n\n\t\t\t// Convert anything to text\n\t\t\t\"* text\": String,\n\n\t\t\t// Text to html (true = no transformation)\n\t\t\t\"text html\": true,\n\n\t\t\t// Evaluate text as a json expression\n\t\t\t\"text json\": JSON.parse,\n\n\t\t\t// Parse text as xml\n\t\t\t\"text xml\": jQuery.parseXML\n\t\t},\n\n\t\t// For options that shouldn't be deep extended:\n\t\t// you can add your own custom options here if\n\t\t// and when you create one that shouldn't be\n\t\t// deep extended (see ajaxExtend)\n\t\tflatOptions: {\n\t\t\turl: true,\n\t\t\tcontext: true\n\t\t}\n\t},\n\n\t// Creates a full fledged settings object into target\n\t// with both ajaxSettings and settings fields.\n\t// If target is omitted, writes into ajaxSettings.\n\tajaxSetup: function( target, settings ) {\n\t\treturn settings ?\n\n\t\t\t// Building a settings object\n\t\t\tajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :\n\n\t\t\t// Extending ajaxSettings\n\t\t\tajaxExtend( jQuery.ajaxSettings, target );\n\t},\n\n\tajaxPrefilter: addToPrefiltersOrTransports( prefilters ),\n\tajaxTransport: addToPrefiltersOrTransports( transports ),\n\n\t// Main method\n\tajax: function( url, options ) {\n\n\t\t// If url is an object, simulate pre-1.5 signature\n\t\tif ( typeof url === \"object\" ) {\n\t\t\toptions = url;\n\t\t\turl = undefined;\n\t\t}\n\n\t\t// Force options to be an object\n\t\toptions = options || {};\n\n\t\tvar transport,\n\n\t\t\t// URL without anti-cache param\n\t\t\tcacheURL,\n\n\t\t\t// Response headers\n\t\t\tresponseHeadersString,\n\t\t\tresponseHeaders,\n\n\t\t\t// timeout handle\n\t\t\ttimeoutTimer,\n\n\t\t\t// Url cleanup var\n\t\t\turlAnchor,\n\n\t\t\t// Request state (becomes false upon send and true upon completion)\n\t\t\tcompleted,\n\n\t\t\t// To know if global events are to be dispatched\n\t\t\tfireGlobals,\n\n\t\t\t// Loop variable\n\t\t\ti,\n\n\t\t\t// uncached part of the url\n\t\t\tuncached,\n\n\t\t\t// Create the final options object\n\t\t\ts = jQuery.ajaxSetup( {}, options ),\n\n\t\t\t// Callbacks context\n\t\t\tcallbackContext = s.context || s,\n\n\t\t\t// Context for global events is callbackContext if it is a DOM node or jQuery collection\n\t\t\tglobalEventContext = s.context &&\n\t\t\t\t( callbackContext.nodeType || callbackContext.jquery ) ?\n\t\t\t\tjQuery( callbackContext ) :\n\t\t\t\tjQuery.event,\n\n\t\t\t// Deferreds\n\t\t\tdeferred = jQuery.Deferred(),\n\t\t\tcompleteDeferred = jQuery.Callbacks( \"once memory\" ),\n\n\t\t\t// Status-dependent callbacks\n\t\t\tstatusCode = s.statusCode || {},\n\n\t\t\t// Headers (they are sent all at once)\n\t\t\trequestHeaders = {},\n\t\t\trequestHeadersNames = {},\n\n\t\t\t// Default abort message\n\t\t\tstrAbort = \"canceled\",\n\n\t\t\t// Fake xhr\n\t\t\tjqXHR = {\n\t\t\t\treadyState: 0,\n\n\t\t\t\t// Builds headers hashtable if needed\n\t\t\t\tgetResponseHeader: function( key ) {\n\t\t\t\t\tvar match;\n\t\t\t\t\tif ( completed ) {\n\t\t\t\t\t\tif ( !responseHeaders ) {\n\t\t\t\t\t\t\tresponseHeaders = {};\n\t\t\t\t\t\t\twhile ( ( match = rheaders.exec( responseHeadersString ) ) ) {\n\t\t\t\t\t\t\t\tresponseHeaders[ match[ 1 ].toLowerCase() + \" \" ] =\n\t\t\t\t\t\t\t\t\t( responseHeaders[ match[ 1 ].toLowerCase() + \" \" ] || [] )\n\t\t\t\t\t\t\t\t\t\t.concat( match[ 2 ] );\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmatch = responseHeaders[ key.toLowerCase() + \" \" ];\n\t\t\t\t\t}\n\t\t\t\t\treturn match == null ? null : match.join( \", \" );\n\t\t\t\t},\n\n\t\t\t\t// Raw string\n\t\t\t\tgetAllResponseHeaders: function() {\n\t\t\t\t\treturn completed ? responseHeadersString : null;\n\t\t\t\t},\n\n\t\t\t\t// Caches the header\n\t\t\t\tsetRequestHeader: function( name, value ) {\n\t\t\t\t\tif ( completed == null ) {\n\t\t\t\t\t\tname = requestHeadersNames[ name.toLowerCase() ] =\n\t\t\t\t\t\t\trequestHeadersNames[ name.toLowerCase() ] || name;\n\t\t\t\t\t\trequestHeaders[ name ] = value;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Overrides response content-type header\n\t\t\t\toverrideMimeType: function( type ) {\n\t\t\t\t\tif ( completed == null ) {\n\t\t\t\t\t\ts.mimeType = type;\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Status-dependent callbacks\n\t\t\t\tstatusCode: function( map ) {\n\t\t\t\t\tvar code;\n\t\t\t\t\tif ( map ) {\n\t\t\t\t\t\tif ( completed ) {\n\n\t\t\t\t\t\t\t// Execute the appropriate callbacks\n\t\t\t\t\t\t\tjqXHR.always( map[ jqXHR.status ] );\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t// Lazy-add the new callbacks in a way that preserves old ones\n\t\t\t\t\t\t\tfor ( code in map ) {\n\t\t\t\t\t\t\t\tstatusCode[ code ] = [ statusCode[ code ], map[ code ] ];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn this;\n\t\t\t\t},\n\n\t\t\t\t// Cancel the request\n\t\t\t\tabort: function( statusText ) {\n\t\t\t\t\tvar finalText = statusText || strAbort;\n\t\t\t\t\tif ( transport ) {\n\t\t\t\t\t\ttransport.abort( finalText );\n\t\t\t\t\t}\n\t\t\t\t\tdone( 0, finalText );\n\t\t\t\t\treturn this;\n\t\t\t\t}\n\t\t\t};\n\n\t\t// Attach deferreds\n\t\tdeferred.promise( jqXHR );\n\n\t\t// Add protocol if not provided (prefilters might expect it)\n\t\t// Handle falsy url in the settings object (trac-10093: consistency with old signature)\n\t\t// We also use the url parameter if available\n\t\ts.url = ( ( url || s.url || location.href ) + \"\" )\n\t\t\t.replace( rprotocol, location.protocol + \"//\" );\n\n\t\t// Alias method option to type as per ticket trac-12004\n\t\ts.type = options.method || options.type || s.method || s.type;\n\n\t\t// Extract dataTypes list\n\t\ts.dataTypes = ( s.dataType || \"*\" ).toLowerCase().match( rnothtmlwhite ) || [ \"\" ];\n\n\t\t// A cross-domain request is in order when the origin doesn't match the current origin.\n\t\tif ( s.crossDomain == null ) {\n\t\t\turlAnchor = document.createElement( \"a\" );\n\n\t\t\t// Support: IE <=8 - 11, Edge 12 - 15\n\t\t\t// IE throws exception on accessing the href property if url is malformed,\n\t\t\t// e.g. http://example.com:80x/\n\t\t\ttry {\n\t\t\t\turlAnchor.href = s.url;\n\n\t\t\t\t// Support: IE <=8 - 11 only\n\t\t\t\t// Anchor's host property isn't correctly set when s.url is relative\n\t\t\t\turlAnchor.href = urlAnchor.href;\n\t\t\t\ts.crossDomain = originAnchor.protocol + \"//\" + originAnchor.host !==\n\t\t\t\t\turlAnchor.protocol + \"//\" + urlAnchor.host;\n\t\t\t} catch ( e ) {\n\n\t\t\t\t// If there is an error parsing the URL, assume it is crossDomain,\n\t\t\t\t// it can be rejected by the transport if it is invalid\n\t\t\t\ts.crossDomain = true;\n\t\t\t}\n\t\t}\n\n\t\t// Convert data if not already a string\n\t\tif ( s.data && s.processData && typeof s.data !== \"string\" ) {\n\t\t\ts.data = jQuery.param( s.data, s.traditional );\n\t\t}\n\n\t\t// Apply prefilters\n\t\tinspectPrefiltersOrTransports( prefilters, s, options, jqXHR );\n\n\t\t// If request was aborted inside a prefilter, stop there\n\t\tif ( completed ) {\n\t\t\treturn jqXHR;\n\t\t}\n\n\t\t// We can fire global events as of now if asked to\n\t\t// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (trac-15118)\n\t\tfireGlobals = jQuery.event && s.global;\n\n\t\t// Watch for a new set of requests\n\t\tif ( fireGlobals && jQuery.active++ === 0 ) {\n\t\t\tjQuery.event.trigger( \"ajaxStart\" );\n\t\t}\n\n\t\t// Uppercase the type\n\t\ts.type = s.type.toUpperCase();\n\n\t\t// Determine if request has content\n\t\ts.hasContent = !rnoContent.test( s.type );\n\n\t\t// Save the URL in case we're toying with the If-Modified-Since\n\t\t// and/or If-None-Match header later on\n\t\t// Remove hash to simplify url manipulation\n\t\tcacheURL = s.url.replace( rhash, \"\" );\n\n\t\t// More options handling for requests with no content\n\t\tif ( !s.hasContent ) {\n\n\t\t\t// Remember the hash so we can put it back\n\t\t\tuncached = s.url.slice( cacheURL.length );\n\n\t\t\t// If data is available and should be processed, append data to url\n\t\t\tif ( s.data && ( s.processData || typeof s.data === \"string\" ) ) {\n\t\t\t\tcacheURL += ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + s.data;\n\n\t\t\t\t// trac-9682: remove data so that it's not used in an eventual retry\n\t\t\t\tdelete s.data;\n\t\t\t}\n\n\t\t\t// Add or update anti-cache param if needed\n\t\t\tif ( s.cache === false ) {\n\t\t\t\tcacheURL = cacheURL.replace( rantiCache, \"$1\" );\n\t\t\t\tuncached = ( rquery.test( cacheURL ) ? \"&\" : \"?\" ) + \"_=\" + ( nonce.guid++ ) +\n\t\t\t\t\tuncached;\n\t\t\t}\n\n\t\t\t// Put hash and anti-cache on the URL that will be requested (gh-1732)\n\t\t\ts.url = cacheURL + uncached;\n\n\t\t// Change '%20' to '+' if this is encoded form body content (gh-2658)\n\t\t} else if ( s.data && s.processData &&\n\t\t\t( s.contentType || \"\" ).indexOf( \"application/x-www-form-urlencoded\" ) === 0 ) {\n\t\t\ts.data = s.data.replace( r20, \"+\" );\n\t\t}\n\n\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\tif ( s.ifModified ) {\n\t\t\tif ( jQuery.lastModified[ cacheURL ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-Modified-Since\", jQuery.lastModified[ cacheURL ] );\n\t\t\t}\n\t\t\tif ( jQuery.etag[ cacheURL ] ) {\n\t\t\t\tjqXHR.setRequestHeader( \"If-None-Match\", jQuery.etag[ cacheURL ] );\n\t\t\t}\n\t\t}\n\n\t\t// Set the correct header, if data is being sent\n\t\tif ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {\n\t\t\tjqXHR.setRequestHeader( \"Content-Type\", s.contentType );\n\t\t}\n\n\t\t// Set the Accepts header for the server, depending on the dataType\n\t\tjqXHR.setRequestHeader(\n\t\t\t\"Accept\",\n\t\t\ts.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?\n\t\t\t\ts.accepts[ s.dataTypes[ 0 ] ] +\n\t\t\t\t\t( s.dataTypes[ 0 ] !== \"*\" ? \", \" + allTypes + \"; q=0.01\" : \"\" ) :\n\t\t\t\ts.accepts[ \"*\" ]\n\t\t);\n\n\t\t// Check for headers option\n\t\tfor ( i in s.headers ) {\n\t\t\tjqXHR.setRequestHeader( i, s.headers[ i ] );\n\t\t}\n\n\t\t// Allow custom headers/mimetypes and early abort\n\t\tif ( s.beforeSend &&\n\t\t\t( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {\n\n\t\t\t// Abort if not done already and return\n\t\t\treturn jqXHR.abort();\n\t\t}\n\n\t\t// Aborting is no longer a cancellation\n\t\tstrAbort = \"abort\";\n\n\t\t// Install callbacks on deferreds\n\t\tcompleteDeferred.add( s.complete );\n\t\tjqXHR.done( s.success );\n\t\tjqXHR.fail( s.error );\n\n\t\t// Get transport\n\t\ttransport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );\n\n\t\t// If no transport, we auto-abort\n\t\tif ( !transport ) {\n\t\t\tdone( -1, \"No Transport\" );\n\t\t} else {\n\t\t\tjqXHR.readyState = 1;\n\n\t\t\t// Send global event\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxSend\", [ jqXHR, s ] );\n\t\t\t}\n\n\t\t\t// If request was aborted inside ajaxSend, stop there\n\t\t\tif ( completed ) {\n\t\t\t\treturn jqXHR;\n\t\t\t}\n\n\t\t\t// Timeout\n\t\t\tif ( s.async && s.timeout > 0 ) {\n\t\t\t\ttimeoutTimer = window.setTimeout( function() {\n\t\t\t\t\tjqXHR.abort( \"timeout\" );\n\t\t\t\t}, s.timeout );\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tcompleted = false;\n\t\t\t\ttransport.send( requestHeaders, done );\n\t\t\t} catch ( e ) {\n\n\t\t\t\t// Rethrow post-completion exceptions\n\t\t\t\tif ( completed ) {\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\n\t\t\t\t// Propagate others as results\n\t\t\t\tdone( -1, e );\n\t\t\t}\n\t\t}\n\n\t\t// Callback for when everything is done\n\t\tfunction done( status, nativeStatusText, responses, headers ) {\n\t\t\tvar isSuccess, success, error, response, modified,\n\t\t\t\tstatusText = nativeStatusText;\n\n\t\t\t// Ignore repeat invocations\n\t\t\tif ( completed ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tcompleted = true;\n\n\t\t\t// Clear timeout if it exists\n\t\t\tif ( timeoutTimer ) {\n\t\t\t\twindow.clearTimeout( timeoutTimer );\n\t\t\t}\n\n\t\t\t// Dereference transport for early garbage collection\n\t\t\t// (no matter how long the jqXHR object will be used)\n\t\t\ttransport = undefined;\n\n\t\t\t// Cache response headers\n\t\t\tresponseHeadersString = headers || \"\";\n\n\t\t\t// Set readyState\n\t\t\tjqXHR.readyState = status > 0 ? 4 : 0;\n\n\t\t\t// Determine if successful\n\t\t\tisSuccess = status >= 200 && status < 300 || status === 304;\n\n\t\t\t// Get response data\n\t\t\tif ( responses ) {\n\t\t\t\tresponse = ajaxHandleResponses( s, jqXHR, responses );\n\t\t\t}\n\n\t\t\t// Use a noop converter for missing script but not if jsonp\n\t\t\tif ( !isSuccess &&\n\t\t\t\tjQuery.inArray( \"script\", s.dataTypes ) > -1 &&\n\t\t\t\tjQuery.inArray( \"json\", s.dataTypes ) < 0 ) {\n\t\t\t\ts.converters[ \"text script\" ] = function() {};\n\t\t\t}\n\n\t\t\t// Convert no matter what (that way responseXXX fields are always set)\n\t\t\tresponse = ajaxConvert( s, response, jqXHR, isSuccess );\n\n\t\t\t// If successful, handle type chaining\n\t\t\tif ( isSuccess ) {\n\n\t\t\t\t// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.\n\t\t\t\tif ( s.ifModified ) {\n\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"Last-Modified\" );\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.lastModified[ cacheURL ] = modified;\n\t\t\t\t\t}\n\t\t\t\t\tmodified = jqXHR.getResponseHeader( \"etag\" );\n\t\t\t\t\tif ( modified ) {\n\t\t\t\t\t\tjQuery.etag[ cacheURL ] = modified;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// if no content\n\t\t\t\tif ( status === 204 || s.type === \"HEAD\" ) {\n\t\t\t\t\tstatusText = \"nocontent\";\n\n\t\t\t\t// if not modified\n\t\t\t\t} else if ( status === 304 ) {\n\t\t\t\t\tstatusText = \"notmodified\";\n\n\t\t\t\t// If we have data, let's convert it\n\t\t\t\t} else {\n\t\t\t\t\tstatusText = response.state;\n\t\t\t\t\tsuccess = response.data;\n\t\t\t\t\terror = response.error;\n\t\t\t\t\tisSuccess = !error;\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\t// Extract error from statusText and normalize for non-aborts\n\t\t\t\terror = statusText;\n\t\t\t\tif ( status || !statusText ) {\n\t\t\t\t\tstatusText = \"error\";\n\t\t\t\t\tif ( status < 0 ) {\n\t\t\t\t\t\tstatus = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Set data for the fake xhr object\n\t\t\tjqXHR.status = status;\n\t\t\tjqXHR.statusText = ( nativeStatusText || statusText ) + \"\";\n\n\t\t\t// Success/Error\n\t\t\tif ( isSuccess ) {\n\t\t\t\tdeferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );\n\t\t\t} else {\n\t\t\t\tdeferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );\n\t\t\t}\n\n\t\t\t// Status-dependent callbacks\n\t\t\tjqXHR.statusCode( statusCode );\n\t\t\tstatusCode = undefined;\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( isSuccess ? \"ajaxSuccess\" : \"ajaxError\",\n\t\t\t\t\t[ jqXHR, s, isSuccess ? success : error ] );\n\t\t\t}\n\n\t\t\t// Complete\n\t\t\tcompleteDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );\n\n\t\t\tif ( fireGlobals ) {\n\t\t\t\tglobalEventContext.trigger( \"ajaxComplete\", [ jqXHR, s ] );\n\n\t\t\t\t// Handle the global AJAX counter\n\t\t\t\tif ( !( --jQuery.active ) ) {\n\t\t\t\t\tjQuery.event.trigger( \"ajaxStop\" );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn jqXHR;\n\t},\n\n\tgetJSON: function( url, data, callback ) {\n\t\treturn jQuery.get( url, data, callback, \"json\" );\n\t},\n\n\tgetScript: function( url, callback ) {\n\t\treturn jQuery.get( url, undefined, callback, \"script\" );\n\t}\n} );\n\njQuery.each( [ \"get\", \"post\" ], function( _i, method ) {\n\tjQuery[ method ] = function( url, data, callback, type ) {\n\n\t\t// Shift arguments if data argument was omitted\n\t\tif ( isFunction( data ) ) {\n\t\t\ttype = type || callback;\n\t\t\tcallback = data;\n\t\t\tdata = undefined;\n\t\t}\n\n\t\t// The url can be an options object (which then must have .url)\n\t\treturn jQuery.ajax( jQuery.extend( {\n\t\t\turl: url,\n\t\t\ttype: method,\n\t\t\tdataType: type,\n\t\t\tdata: data,\n\t\t\tsuccess: callback\n\t\t}, jQuery.isPlainObject( url ) && url ) );\n\t};\n} );\n\njQuery.ajaxPrefilter( function( s ) {\n\tvar i;\n\tfor ( i in s.headers ) {\n\t\tif ( i.toLowerCase() === \"content-type\" ) {\n\t\t\ts.contentType = s.headers[ i ] || \"\";\n\t\t}\n\t}\n} );\n\n\njQuery._evalUrl = function( url, options, doc ) {\n\treturn jQuery.ajax( {\n\t\turl: url,\n\n\t\t// Make this explicit, since user can override this through ajaxSetup (trac-11264)\n\t\ttype: \"GET\",\n\t\tdataType: \"script\",\n\t\tcache: true,\n\t\tasync: false,\n\t\tglobal: false,\n\n\t\t// Only evaluate the response if it is successful (gh-4126)\n\t\t// dataFilter is not invoked for failure responses, so using it instead\n\t\t// of the default converter is kludgy but it works.\n\t\tconverters: {\n\t\t\t\"text script\": function() {}\n\t\t},\n\t\tdataFilter: function( response ) {\n\t\t\tjQuery.globalEval( response, options, doc );\n\t\t}\n\t} );\n};\n\n\njQuery.fn.extend( {\n\twrapAll: function( html ) {\n\t\tvar wrap;\n\n\t\tif ( this[ 0 ] ) {\n\t\t\tif ( isFunction( html ) ) {\n\t\t\t\thtml = html.call( this[ 0 ] );\n\t\t\t}\n\n\t\t\t// The elements to wrap the target around\n\t\t\twrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );\n\n\t\t\tif ( this[ 0 ].parentNode ) {\n\t\t\t\twrap.insertBefore( this[ 0 ] );\n\t\t\t}\n\n\t\t\twrap.map( function() {\n\t\t\t\tvar elem = this;\n\n\t\t\t\twhile ( elem.firstElementChild ) {\n\t\t\t\t\telem = elem.firstElementChild;\n\t\t\t\t}\n\n\t\t\t\treturn elem;\n\t\t\t} ).append( this );\n\t\t}\n\n\t\treturn this;\n\t},\n\n\twrapInner: function( html ) {\n\t\tif ( isFunction( html ) ) {\n\t\t\treturn this.each( function( i ) {\n\t\t\t\tjQuery( this ).wrapInner( html.call( this, i ) );\n\t\t\t} );\n\t\t}\n\n\t\treturn this.each( function() {\n\t\t\tvar self = jQuery( this ),\n\t\t\t\tcontents = self.contents();\n\n\t\t\tif ( contents.length ) {\n\t\t\t\tcontents.wrapAll( html );\n\n\t\t\t} else {\n\t\t\t\tself.append( html );\n\t\t\t}\n\t\t} );\n\t},\n\n\twrap: function( html ) {\n\t\tvar htmlIsFunction = isFunction( html );\n\n\t\treturn this.each( function( i ) {\n\t\t\tjQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html );\n\t\t} );\n\t},\n\n\tunwrap: function( selector ) {\n\t\tthis.parent( selector ).not( \"body\" ).each( function() {\n\t\t\tjQuery( this ).replaceWith( this.childNodes );\n\t\t} );\n\t\treturn this;\n\t}\n} );\n\n\njQuery.expr.pseudos.hidden = function( elem ) {\n\treturn !jQuery.expr.pseudos.visible( elem );\n};\njQuery.expr.pseudos.visible = function( elem ) {\n\treturn !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );\n};\n\n\n\n\njQuery.ajaxSettings.xhr = function() {\n\ttry {\n\t\treturn new window.XMLHttpRequest();\n\t} catch ( e ) {}\n};\n\nvar xhrSuccessStatus = {\n\n\t\t// File protocol always yields status code 0, assume 200\n\t\t0: 200,\n\n\t\t// Support: IE <=9 only\n\t\t// trac-1450: sometimes IE returns 1223 when it should be 204\n\t\t1223: 204\n\t},\n\txhrSupported = jQuery.ajaxSettings.xhr();\n\nsupport.cors = !!xhrSupported && ( \"withCredentials\" in xhrSupported );\nsupport.ajax = xhrSupported = !!xhrSupported;\n\njQuery.ajaxTransport( function( options ) {\n\tvar callback, errorCallback;\n\n\t// Cross domain only allowed if supported through XMLHttpRequest\n\tif ( support.cors || xhrSupported && !options.crossDomain ) {\n\t\treturn {\n\t\t\tsend: function( headers, complete ) {\n\t\t\t\tvar i,\n\t\t\t\t\txhr = options.xhr();\n\n\t\t\t\txhr.open(\n\t\t\t\t\toptions.type,\n\t\t\t\t\toptions.url,\n\t\t\t\t\toptions.async,\n\t\t\t\t\toptions.username,\n\t\t\t\t\toptions.password\n\t\t\t\t);\n\n\t\t\t\t// Apply custom fields if provided\n\t\t\t\tif ( options.xhrFields ) {\n\t\t\t\t\tfor ( i in options.xhrFields ) {\n\t\t\t\t\t\txhr[ i ] = options.xhrFields[ i ];\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Override mime type if needed\n\t\t\t\tif ( options.mimeType && xhr.overrideMimeType ) {\n\t\t\t\t\txhr.overrideMimeType( options.mimeType );\n\t\t\t\t}\n\n\t\t\t\t// X-Requested-With header\n\t\t\t\t// For cross-domain requests, seeing as conditions for a preflight are\n\t\t\t\t// akin to a jigsaw puzzle, we simply never set it to be sure.\n\t\t\t\t// (it can always be set on a per-request basis or even using ajaxSetup)\n\t\t\t\t// For same-domain requests, won't change header if already provided.\n\t\t\t\tif ( !options.crossDomain && !headers[ \"X-Requested-With\" ] ) {\n\t\t\t\t\theaders[ \"X-Requested-With\" ] = \"XMLHttpRequest\";\n\t\t\t\t}\n\n\t\t\t\t// Set headers\n\t\t\t\tfor ( i in headers ) {\n\t\t\t\t\txhr.setRequestHeader( i, headers[ i ] );\n\t\t\t\t}\n\n\t\t\t\t// Callback\n\t\t\t\tcallback = function( type ) {\n\t\t\t\t\treturn function() {\n\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\tcallback = errorCallback = xhr.onload =\n\t\t\t\t\t\t\t\txhr.onerror = xhr.onabort = xhr.ontimeout =\n\t\t\t\t\t\t\t\t\txhr.onreadystatechange = null;\n\n\t\t\t\t\t\t\tif ( type === \"abort\" ) {\n\t\t\t\t\t\t\t\txhr.abort();\n\t\t\t\t\t\t\t} else if ( type === \"error\" ) {\n\n\t\t\t\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t\t\t\t// On a manual native abort, IE9 throws\n\t\t\t\t\t\t\t\t// errors on any property access that is not readyState\n\t\t\t\t\t\t\t\tif ( typeof xhr.status !== \"number\" ) {\n\t\t\t\t\t\t\t\t\tcomplete( 0, \"error\" );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tcomplete(\n\n\t\t\t\t\t\t\t\t\t\t// File: protocol always yields status 0; see trac-8605, trac-14207\n\t\t\t\t\t\t\t\t\t\txhr.status,\n\t\t\t\t\t\t\t\t\t\txhr.statusText\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tcomplete(\n\t\t\t\t\t\t\t\t\txhrSuccessStatus[ xhr.status ] || xhr.status,\n\t\t\t\t\t\t\t\t\txhr.statusText,\n\n\t\t\t\t\t\t\t\t\t// Support: IE <=9 only\n\t\t\t\t\t\t\t\t\t// IE9 has no XHR2 but throws on binary (trac-11426)\n\t\t\t\t\t\t\t\t\t// For XHR2 non-text, let the caller handle it (gh-2498)\n\t\t\t\t\t\t\t\t\t( xhr.responseType || \"text\" ) !== \"text\"  ||\n\t\t\t\t\t\t\t\t\ttypeof xhr.responseText !== \"string\" ?\n\t\t\t\t\t\t\t\t\t\t{ binary: xhr.response } :\n\t\t\t\t\t\t\t\t\t\t{ text: xhr.responseText },\n\t\t\t\t\t\t\t\t\txhr.getAllResponseHeaders()\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t};\n\n\t\t\t\t// Listen to events\n\t\t\t\txhr.onload = callback();\n\t\t\t\terrorCallback = xhr.onerror = xhr.ontimeout = callback( \"error\" );\n\n\t\t\t\t// Support: IE 9 only\n\t\t\t\t// Use onreadystatechange to replace onabort\n\t\t\t\t// to handle uncaught aborts\n\t\t\t\tif ( xhr.onabort !== undefined ) {\n\t\t\t\t\txhr.onabort = errorCallback;\n\t\t\t\t} else {\n\t\t\t\t\txhr.onreadystatechange = function() {\n\n\t\t\t\t\t\t// Check readyState before timeout as it changes\n\t\t\t\t\t\tif ( xhr.readyState === 4 ) {\n\n\t\t\t\t\t\t\t// Allow onerror to be called first,\n\t\t\t\t\t\t\t// but that will not handle a native abort\n\t\t\t\t\t\t\t// Also, save errorCallback to a variable\n\t\t\t\t\t\t\t// as xhr.onerror cannot be accessed\n\t\t\t\t\t\t\twindow.setTimeout( function() {\n\t\t\t\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\t\t\t\terrorCallback();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} );\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// Create the abort callback\n\t\t\t\tcallback = callback( \"abort\" );\n\n\t\t\t\ttry {\n\n\t\t\t\t\t// Do send the request (this may raise an exception)\n\t\t\t\t\txhr.send( options.hasContent && options.data || null );\n\t\t\t\t} catch ( e ) {\n\n\t\t\t\t\t// trac-14683: Only rethrow if this hasn't been notified as an error yet\n\t\t\t\t\tif ( callback ) {\n\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\n\t\t\tabort: function() {\n\t\t\t\tif ( callback ) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n} );\n\n\n\n\n// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)\njQuery.ajaxPrefilter( function( s ) {\n\tif ( s.crossDomain ) {\n\t\ts.contents.script = false;\n\t}\n} );\n\n// Install script dataType\njQuery.ajaxSetup( {\n\taccepts: {\n\t\tscript: \"text/javascript, application/javascript, \" +\n\t\t\t\"application/ecmascript, application/x-ecmascript\"\n\t},\n\tcontents: {\n\t\tscript: /\\b(?:java|ecma)script\\b/\n\t},\n\tconverters: {\n\t\t\"text script\": function( text ) {\n\t\t\tjQuery.globalEval( text );\n\t\t\treturn text;\n\t\t}\n\t}\n} );\n\n// Handle cache's special case and crossDomain\njQuery.ajaxPrefilter( \"script\", function( s ) {\n\tif ( s.cache === undefined ) {\n\t\ts.cache = false;\n\t}\n\tif ( s.crossDomain ) {\n\t\ts.type = \"GET\";\n\t}\n} );\n\n// Bind script tag hack transport\njQuery.ajaxTransport( \"script\", function( s ) {\n\n\t// This transport only deals with cross domain or forced-by-attrs requests\n\tif ( s.crossDomain || s.scriptAttrs ) {\n\t\tvar script, callback;\n\t\treturn {\n\t\t\tsend: function( _, complete ) {\n\t\t\t\tscript = jQuery( \"<script>\" )\n\t\t\t\t\t.attr( s.scriptAttrs || {} )\n\t\t\t\t\t.prop( { charset: s.scriptCharset, src: s.url } )\n\t\t\t\t\t.on( \"load error\", callback = function( evt ) {\n\t\t\t\t\t\tscript.remove();\n\t\t\t\t\t\tcallback = null;\n\t\t\t\t\t\tif ( evt ) {\n\t\t\t\t\t\t\tcomplete( evt.type === \"error\" ? 404 : 200, evt.type );\n\t\t\t\t\t\t}\n\t\t\t\t\t} );\n\n\t\t\t\t// Use native DOM manipulation to avoid our domManip AJAX trickery\n\t\t\t\tdocument.head.appendChild( script[ 0 ] );\n\t\t\t},\n\t\t\tabort: function() {\n\t\t\t\tif ( callback ) {\n\t\t\t\t\tcallback();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}\n} );\n\n\n\n\nvar oldCallbacks = [],\n\trjsonp = /(=)\\?(?=&|$)|\\?\\?/;\n\n// Default jsonp settings\njQuery.ajaxSetup( {\n\tjsonp: \"callback\",\n\tjsonpCallback: function() {\n\t\tvar callback = oldCallbacks.pop() || ( jQuery.expando + \"_\" + ( nonce.guid++ ) );\n\t\tthis[ callback ] = true;\n\t\treturn callback;\n\t}\n} );\n\n// Detect, normalize options and install callbacks for jsonp requests\njQuery.ajaxPrefilter( \"json jsonp\", function( s, originalSettings, jqXHR ) {\n\n\tvar callbackName, overwritten, responseContainer,\n\t\tjsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?\n\t\t\t\"url\" :\n\t\t\ttypeof s.data === \"string\" &&\n\t\t\t\t( s.contentType || \"\" )\n\t\t\t\t\t.indexOf( \"application/x-www-form-urlencoded\" ) === 0 &&\n\t\t\t\trjsonp.test( s.data ) && \"data\"\n\t\t);\n\n\t// Handle iff the expected data type is \"jsonp\" or we have a parameter to set\n\tif ( jsonProp || s.dataTypes[ 0 ] === \"jsonp\" ) {\n\n\t\t// Get callback name, remembering preexisting value associated with it\n\t\tcallbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ?\n\t\t\ts.jsonpCallback() :\n\t\t\ts.jsonpCallback;\n\n\t\t// Insert callback into url or form data\n\t\tif ( jsonProp ) {\n\t\t\ts[ jsonProp ] = s[ jsonProp ].replace( rjsonp, \"$1\" + callbackName );\n\t\t} else if ( s.jsonp !== false ) {\n\t\t\ts.url += ( rquery.test( s.url ) ? \"&\" : \"?\" ) + s.jsonp + \"=\" + callbackName;\n\t\t}\n\n\t\t// Use data converter to retrieve json after script execution\n\t\ts.converters[ \"script json\" ] = function() {\n\t\t\tif ( !responseContainer ) {\n\t\t\t\tjQuery.error( callbackName + \" was not called\" );\n\t\t\t}\n\t\t\treturn responseContainer[ 0 ];\n\t\t};\n\n\t\t// Force json dataType\n\t\ts.dataTypes[ 0 ] = \"json\";\n\n\t\t// Install callback\n\t\toverwritten = window[ callbackName ];\n\t\twindow[ callbackName ] = function() {\n\t\t\tresponseContainer = arguments;\n\t\t};\n\n\t\t// Clean-up function (fires after converters)\n\t\tjqXHR.always( function() {\n\n\t\t\t// If previous value didn't exist - remove it\n\t\t\tif ( overwritten === undefined ) {\n\t\t\t\tjQuery( window ).removeProp( callbackName );\n\n\t\t\t// Otherwise restore preexisting value\n\t\t\t} else {\n\t\t\t\twindow[ callbackName ] = overwritten;\n\t\t\t}\n\n\t\t\t// Save back as free\n\t\t\tif ( s[ callbackName ] ) {\n\n\t\t\t\t// Make sure that re-using the options doesn't screw things around\n\t\t\t\ts.jsonpCallback = originalSettings.jsonpCallback;\n\n\t\t\t\t// Save the callback name for future use\n\t\t\t\toldCallbacks.push( callbackName );\n\t\t\t}\n\n\t\t\t// Call if it was a function and we have a response\n\t\t\tif ( responseContainer && isFunction( overwritten ) ) {\n\t\t\t\toverwritten( responseContainer[ 0 ] );\n\t\t\t}\n\n\t\t\tresponseContainer = overwritten = undefined;\n\t\t} );\n\n\t\t// Delegate to script\n\t\treturn \"script\";\n\t}\n} );\n\n\n\n\n// Support: Safari 8 only\n// In Safari 8 documents created via document.implementation.createHTMLDocument\n// collapse sibling forms: the second one becomes a child of the first one.\n// Because of that, this security measure has to be disabled in Safari 8.\n// https://bugs.webkit.org/show_bug.cgi?id=137337\nsupport.createHTMLDocument = ( function() {\n\tvar body = document.implementation.createHTMLDocument( \"\" ).body;\n\tbody.innerHTML = \"<form></form><form></form>\";\n\treturn body.childNodes.length === 2;\n} )();\n\n\n// Argument \"data\" should be string of html\n// context (optional): If specified, the fragment will be created in this context,\n// defaults to document\n// keepScripts (optional): If true, will include scripts passed in the html string\njQuery.parseHTML = function( data, context, keepScripts ) {\n\tif ( typeof data !== \"string\" ) {\n\t\treturn [];\n\t}\n\tif ( typeof context === \"boolean\" ) {\n\t\tkeepScripts = context;\n\t\tcontext = false;\n\t}\n\n\tvar base, parsed, scripts;\n\n\tif ( !context ) {\n\n\t\t// Stop scripts or inline event handlers from being executed immediately\n\t\t// by using document.implementation\n\t\tif ( support.createHTMLDocument ) {\n\t\t\tcontext = document.implementation.createHTMLDocument( \"\" );\n\n\t\t\t// Set the base href for the created document\n\t\t\t// so any parsed elements with URLs\n\t\t\t// are based on the document's URL (gh-2965)\n\t\t\tbase = context.createElement( \"base\" );\n\t\t\tbase.href = document.location.href;\n\t\t\tcontext.head.appendChild( base );\n\t\t} else {\n\t\t\tcontext = document;\n\t\t}\n\t}\n\n\tparsed = rsingleTag.exec( data );\n\tscripts = !keepScripts && [];\n\n\t// Single tag\n\tif ( parsed ) {\n\t\treturn [ context.createElement( parsed[ 1 ] ) ];\n\t}\n\n\tparsed = buildFragment( [ data ], context, scripts );\n\n\tif ( scripts && scripts.length ) {\n\t\tjQuery( scripts ).remove();\n\t}\n\n\treturn jQuery.merge( [], parsed.childNodes );\n};\n\n\n/**\n * Load a url into a page\n */\njQuery.fn.load = function( url, params, callback ) {\n\tvar selector, type, response,\n\t\tself = this,\n\t\toff = url.indexOf( \" \" );\n\n\tif ( off > -1 ) {\n\t\tselector = stripAndCollapse( url.slice( off ) );\n\t\turl = url.slice( 0, off );\n\t}\n\n\t// If it's a function\n\tif ( isFunction( params ) ) {\n\n\t\t// We assume that it's the callback\n\t\tcallback = params;\n\t\tparams = undefined;\n\n\t// Otherwise, build a param string\n\t} else if ( params && typeof params === \"object\" ) {\n\t\ttype = \"POST\";\n\t}\n\n\t// If we have elements to modify, make the request\n\tif ( self.length > 0 ) {\n\t\tjQuery.ajax( {\n\t\t\turl: url,\n\n\t\t\t// If \"type\" variable is undefined, then \"GET\" method will be used.\n\t\t\t// Make value of this field explicit since\n\t\t\t// user can override it through ajaxSetup method\n\t\t\ttype: type || \"GET\",\n\t\t\tdataType: \"html\",\n\t\t\tdata: params\n\t\t} ).done( function( responseText ) {\n\n\t\t\t// Save response for use in complete callback\n\t\t\tresponse = arguments;\n\n\t\t\tself.html( selector ?\n\n\t\t\t\t// If a selector was specified, locate the right elements in a dummy div\n\t\t\t\t// Exclude scripts to avoid IE 'Permission Denied' errors\n\t\t\t\tjQuery( \"<div>\" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :\n\n\t\t\t\t// Otherwise use the full result\n\t\t\t\tresponseText );\n\n\t\t// If the request succeeds, this function gets \"data\", \"status\", \"jqXHR\"\n\t\t// but they are ignored because response was set above.\n\t\t// If it fails, this function gets \"jqXHR\", \"status\", \"error\"\n\t\t} ).always( callback && function( jqXHR, status ) {\n\t\t\tself.each( function() {\n\t\t\t\tcallback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );\n\t\t\t} );\n\t\t} );\n\t}\n\n\treturn this;\n};\n\n\n\n\njQuery.expr.pseudos.animated = function( elem ) {\n\treturn jQuery.grep( jQuery.timers, function( fn ) {\n\t\treturn elem === fn.elem;\n\t} ).length;\n};\n\n\n\n\njQuery.offset = {\n\tsetOffset: function( elem, options, i ) {\n\t\tvar curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,\n\t\t\tposition = jQuery.css( elem, \"position\" ),\n\t\t\tcurElem = jQuery( elem ),\n\t\t\tprops = {};\n\n\t\t// Set position first, in-case top/left are set even on static elem\n\t\tif ( position === \"static\" ) {\n\t\t\telem.style.position = \"relative\";\n\t\t}\n\n\t\tcurOffset = curElem.offset();\n\t\tcurCSSTop = jQuery.css( elem, \"top\" );\n\t\tcurCSSLeft = jQuery.css( elem, \"left\" );\n\t\tcalculatePosition = ( position === \"absolute\" || position === \"fixed\" ) &&\n\t\t\t( curCSSTop + curCSSLeft ).indexOf( \"auto\" ) > -1;\n\n\t\t// Need to be able to calculate position if either\n\t\t// top or left is auto and position is either absolute or fixed\n\t\tif ( calculatePosition ) {\n\t\t\tcurPosition = curElem.position();\n\t\t\tcurTop = curPosition.top;\n\t\t\tcurLeft = curPosition.left;\n\n\t\t} else {\n\t\t\tcurTop = parseFloat( curCSSTop ) || 0;\n\t\t\tcurLeft = parseFloat( curCSSLeft ) || 0;\n\t\t}\n\n\t\tif ( isFunction( options ) ) {\n\n\t\t\t// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)\n\t\t\toptions = options.call( elem, i, jQuery.extend( {}, curOffset ) );\n\t\t}\n\n\t\tif ( options.top != null ) {\n\t\t\tprops.top = ( options.top - curOffset.top ) + curTop;\n\t\t}\n\t\tif ( options.left != null ) {\n\t\t\tprops.left = ( options.left - curOffset.left ) + curLeft;\n\t\t}\n\n\t\tif ( \"using\" in options ) {\n\t\t\toptions.using.call( elem, props );\n\n\t\t} else {\n\t\t\tcurElem.css( props );\n\t\t}\n\t}\n};\n\njQuery.fn.extend( {\n\n\t// offset() relates an element's border box to the document origin\n\toffset: function( options ) {\n\n\t\t// Preserve chaining for setter\n\t\tif ( arguments.length ) {\n\t\t\treturn options === undefined ?\n\t\t\t\tthis :\n\t\t\t\tthis.each( function( i ) {\n\t\t\t\t\tjQuery.offset.setOffset( this, options, i );\n\t\t\t\t} );\n\t\t}\n\n\t\tvar rect, win,\n\t\t\telem = this[ 0 ];\n\n\t\tif ( !elem ) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Return zeros for disconnected and hidden (display: none) elements (gh-2310)\n\t\t// Support: IE <=11 only\n\t\t// Running getBoundingClientRect on a\n\t\t// disconnected node in IE throws an error\n\t\tif ( !elem.getClientRects().length ) {\n\t\t\treturn { top: 0, left: 0 };\n\t\t}\n\n\t\t// Get document-relative position by adding viewport scroll to viewport-relative gBCR\n\t\trect = elem.getBoundingClientRect();\n\t\twin = elem.ownerDocument.defaultView;\n\t\treturn {\n\t\t\ttop: rect.top + win.pageYOffset,\n\t\t\tleft: rect.left + win.pageXOffset\n\t\t};\n\t},\n\n\t// position() relates an element's margin box to its offset parent's padding box\n\t// This corresponds to the behavior of CSS absolute positioning\n\tposition: function() {\n\t\tif ( !this[ 0 ] ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar offsetParent, offset, doc,\n\t\t\telem = this[ 0 ],\n\t\t\tparentOffset = { top: 0, left: 0 };\n\n\t\t// position:fixed elements are offset from the viewport, which itself always has zero offset\n\t\tif ( jQuery.css( elem, \"position\" ) === \"fixed\" ) {\n\n\t\t\t// Assume position:fixed implies availability of getBoundingClientRect\n\t\t\toffset = elem.getBoundingClientRect();\n\n\t\t} else {\n\t\t\toffset = this.offset();\n\n\t\t\t// Account for the *real* offset parent, which can be the document or its root element\n\t\t\t// when a statically positioned element is identified\n\t\t\tdoc = elem.ownerDocument;\n\t\t\toffsetParent = elem.offsetParent || doc.documentElement;\n\t\t\twhile ( offsetParent &&\n\t\t\t\t( offsetParent === doc.body || offsetParent === doc.documentElement ) &&\n\t\t\t\tjQuery.css( offsetParent, \"position\" ) === \"static\" ) {\n\n\t\t\t\toffsetParent = offsetParent.parentNode;\n\t\t\t}\n\t\t\tif ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {\n\n\t\t\t\t// Incorporate borders into its offset, since they are outside its content origin\n\t\t\t\tparentOffset = jQuery( offsetParent ).offset();\n\t\t\t\tparentOffset.top += jQuery.css( offsetParent, \"borderTopWidth\", true );\n\t\t\t\tparentOffset.left += jQuery.css( offsetParent, \"borderLeftWidth\", true );\n\t\t\t}\n\t\t}\n\n\t\t// Subtract parent offsets and element margins\n\t\treturn {\n\t\t\ttop: offset.top - parentOffset.top - jQuery.css( elem, \"marginTop\", true ),\n\t\t\tleft: offset.left - parentOffset.left - jQuery.css( elem, \"marginLeft\", true )\n\t\t};\n\t},\n\n\t// This method will return documentElement in the following cases:\n\t// 1) For the element inside the iframe without offsetParent, this method will return\n\t//    documentElement of the parent window\n\t// 2) For the hidden or detached element\n\t// 3) For body or html element, i.e. in case of the html node - it will return itself\n\t//\n\t// but those exceptions were never presented as a real life use-cases\n\t// and might be considered as more preferable results.\n\t//\n\t// This logic, however, is not guaranteed and can change at any point in the future\n\toffsetParent: function() {\n\t\treturn this.map( function() {\n\t\t\tvar offsetParent = this.offsetParent;\n\n\t\t\twhile ( offsetParent && jQuery.css( offsetParent, \"position\" ) === \"static\" ) {\n\t\t\t\toffsetParent = offsetParent.offsetParent;\n\t\t\t}\n\n\t\t\treturn offsetParent || documentElement;\n\t\t} );\n\t}\n} );\n\n// Create scrollLeft and scrollTop methods\njQuery.each( { scrollLeft: \"pageXOffset\", scrollTop: \"pageYOffset\" }, function( method, prop ) {\n\tvar top = \"pageYOffset\" === prop;\n\n\tjQuery.fn[ method ] = function( val ) {\n\t\treturn access( this, function( elem, method, val ) {\n\n\t\t\t// Coalesce documents and windows\n\t\t\tvar win;\n\t\t\tif ( isWindow( elem ) ) {\n\t\t\t\twin = elem;\n\t\t\t} else if ( elem.nodeType === 9 ) {\n\t\t\t\twin = elem.defaultView;\n\t\t\t}\n\n\t\t\tif ( val === undefined ) {\n\t\t\t\treturn win ? win[ prop ] : elem[ method ];\n\t\t\t}\n\n\t\t\tif ( win ) {\n\t\t\t\twin.scrollTo(\n\t\t\t\t\t!top ? val : win.pageXOffset,\n\t\t\t\t\ttop ? val : win.pageYOffset\n\t\t\t\t);\n\n\t\t\t} else {\n\t\t\t\telem[ method ] = val;\n\t\t\t}\n\t\t}, method, val, arguments.length );\n\t};\n} );\n\n// Support: Safari <=7 - 9.1, Chrome <=37 - 49\n// Add the top/left cssHooks using jQuery.fn.position\n// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084\n// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347\n// getComputedStyle returns percent when specified for top/left/bottom/right;\n// rather than make the css module depend on the offset module, just check for it here\njQuery.each( [ \"top\", \"left\" ], function( _i, prop ) {\n\tjQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,\n\t\tfunction( elem, computed ) {\n\t\t\tif ( computed ) {\n\t\t\t\tcomputed = curCSS( elem, prop );\n\n\t\t\t\t// If curCSS returns percentage, fallback to offset\n\t\t\t\treturn rnumnonpx.test( computed ) ?\n\t\t\t\t\tjQuery( elem ).position()[ prop ] + \"px\" :\n\t\t\t\t\tcomputed;\n\t\t\t}\n\t\t}\n\t);\n} );\n\n\n// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods\njQuery.each( { Height: \"height\", Width: \"width\" }, function( name, type ) {\n\tjQuery.each( {\n\t\tpadding: \"inner\" + name,\n\t\tcontent: type,\n\t\t\"\": \"outer\" + name\n\t}, function( defaultExtra, funcName ) {\n\n\t\t// Margin is only for outerHeight, outerWidth\n\t\tjQuery.fn[ funcName ] = function( margin, value ) {\n\t\t\tvar chainable = arguments.length && ( defaultExtra || typeof margin !== \"boolean\" ),\n\t\t\t\textra = defaultExtra || ( margin === true || value === true ? \"margin\" : \"border\" );\n\n\t\t\treturn access( this, function( elem, type, value ) {\n\t\t\t\tvar doc;\n\n\t\t\t\tif ( isWindow( elem ) ) {\n\n\t\t\t\t\t// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)\n\t\t\t\t\treturn funcName.indexOf( \"outer\" ) === 0 ?\n\t\t\t\t\t\telem[ \"inner\" + name ] :\n\t\t\t\t\t\telem.document.documentElement[ \"client\" + name ];\n\t\t\t\t}\n\n\t\t\t\t// Get document width or height\n\t\t\t\tif ( elem.nodeType === 9 ) {\n\t\t\t\t\tdoc = elem.documentElement;\n\n\t\t\t\t\t// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],\n\t\t\t\t\t// whichever is greatest\n\t\t\t\t\treturn Math.max(\n\t\t\t\t\t\telem.body[ \"scroll\" + name ], doc[ \"scroll\" + name ],\n\t\t\t\t\t\telem.body[ \"offset\" + name ], doc[ \"offset\" + name ],\n\t\t\t\t\t\tdoc[ \"client\" + name ]\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\treturn value === undefined ?\n\n\t\t\t\t\t// Get width or height on the element, requesting but not forcing parseFloat\n\t\t\t\t\tjQuery.css( elem, type, extra ) :\n\n\t\t\t\t\t// Set width or height on the element\n\t\t\t\t\tjQuery.style( elem, type, value, extra );\n\t\t\t}, type, chainable ? margin : undefined, chainable );\n\t\t};\n\t} );\n} );\n\n\njQuery.each( [\n\t\"ajaxStart\",\n\t\"ajaxStop\",\n\t\"ajaxComplete\",\n\t\"ajaxError\",\n\t\"ajaxSuccess\",\n\t\"ajaxSend\"\n], function( _i, type ) {\n\tjQuery.fn[ type ] = function( fn ) {\n\t\treturn this.on( type, fn );\n\t};\n} );\n\n\n\n\njQuery.fn.extend( {\n\n\tbind: function( types, data, fn ) {\n\t\treturn this.on( types, null, data, fn );\n\t},\n\tunbind: function( types, fn ) {\n\t\treturn this.off( types, null, fn );\n\t},\n\n\tdelegate: function( selector, types, data, fn ) {\n\t\treturn this.on( types, selector, data, fn );\n\t},\n\tundelegate: function( selector, types, fn ) {\n\n\t\t// ( namespace ) or ( selector, types [, fn] )\n\t\treturn arguments.length === 1 ?\n\t\t\tthis.off( selector, \"**\" ) :\n\t\t\tthis.off( types, selector || \"**\", fn );\n\t},\n\n\thover: function( fnOver, fnOut ) {\n\t\treturn this\n\t\t\t.on( \"mouseenter\", fnOver )\n\t\t\t.on( \"mouseleave\", fnOut || fnOver );\n\t}\n} );\n\njQuery.each(\n\t( \"blur focus focusin focusout resize scroll click dblclick \" +\n\t\"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave \" +\n\t\"change select submit keydown keypress keyup contextmenu\" ).split( \" \" ),\n\tfunction( _i, name ) {\n\n\t\t// Handle event binding\n\t\tjQuery.fn[ name ] = function( data, fn ) {\n\t\t\treturn arguments.length > 0 ?\n\t\t\t\tthis.on( name, null, data, fn ) :\n\t\t\t\tthis.trigger( name );\n\t\t};\n\t}\n);\n\n\n\n\n// Support: Android <=4.0 only\n// Make sure we trim BOM and NBSP\n// Require that the \"whitespace run\" starts from a non-whitespace\n// to avoid O(N^2) behavior when the engine would try matching \"\\s+$\" at each space position.\nvar rtrim = /^[\\s\\uFEFF\\xA0]+|([^\\s\\uFEFF\\xA0])[\\s\\uFEFF\\xA0]+$/g;\n\n// Bind a function to a context, optionally partially applying any\n// arguments.\n// jQuery.proxy is deprecated to promote standards (specifically Function#bind)\n// However, it is not slated for removal any time soon\njQuery.proxy = function( fn, context ) {\n\tvar tmp, args, proxy;\n\n\tif ( typeof context === \"string\" ) {\n\t\ttmp = fn[ context ];\n\t\tcontext = fn;\n\t\tfn = tmp;\n\t}\n\n\t// Quick check to determine if target is callable, in the spec\n\t// this throws a TypeError, but we will just return undefined.\n\tif ( !isFunction( fn ) ) {\n\t\treturn undefined;\n\t}\n\n\t// Simulated bind\n\targs = slice.call( arguments, 2 );\n\tproxy = function() {\n\t\treturn fn.apply( context || this, args.concat( slice.call( arguments ) ) );\n\t};\n\n\t// Set the guid of unique handler to the same of original handler, so it can be removed\n\tproxy.guid = fn.guid = fn.guid || jQuery.guid++;\n\n\treturn proxy;\n};\n\njQuery.holdReady = function( hold ) {\n\tif ( hold ) {\n\t\tjQuery.readyWait++;\n\t} else {\n\t\tjQuery.ready( true );\n\t}\n};\njQuery.isArray = Array.isArray;\njQuery.parseJSON = JSON.parse;\njQuery.nodeName = nodeName;\njQuery.isFunction = isFunction;\njQuery.isWindow = isWindow;\njQuery.camelCase = camelCase;\njQuery.type = toType;\n\njQuery.now = Date.now;\n\njQuery.isNumeric = function( obj ) {\n\n\t// As of jQuery 3.0, isNumeric is limited to\n\t// strings and numbers (primitives or objects)\n\t// that can be coerced to finite numbers (gh-2662)\n\tvar type = jQuery.type( obj );\n\treturn ( type === \"number\" || type === \"string\" ) &&\n\n\t\t// parseFloat NaNs numeric-cast false positives (\"\")\n\t\t// ...but misinterprets leading-number strings, particularly hex literals (\"0x...\")\n\t\t// subtraction forces infinities to NaN\n\t\t!isNaN( obj - parseFloat( obj ) );\n};\n\njQuery.trim = function( text ) {\n\treturn text == null ?\n\t\t\"\" :\n\t\t( text + \"\" ).replace( rtrim, \"$1\" );\n};\n\n\n\n// Register as a named AMD module, since jQuery can be concatenated with other\n// files that may use define, but not via a proper concatenation script that\n// understands anonymous AMD modules. A named AMD is safest and most robust\n// way to register. Lowercase jquery is used because AMD module names are\n// derived from file names, and jQuery is normally delivered in a lowercase\n// file name. Do this after creating the global so that if an AMD module wants\n// to call noConflict to hide this version of jQuery, it will work.\n\n// Note that for maximum portability, libraries that are not jQuery should\n// declare themselves as anonymous modules, and avoid setting a global if an\n// AMD loader is present. jQuery is a special case. For more information, see\n// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon\n\nif ( typeof define === \"function\" && define.amd ) {\n\tdefine( \"jquery\", [], function() {\n\t\treturn jQuery;\n\t} );\n}\n\n\n\n\nvar\n\n\t// Map over jQuery in case of overwrite\n\t_jQuery = window.jQuery,\n\n\t// Map over the $ in case of overwrite\n\t_$ = window.$;\n\njQuery.noConflict = function( deep ) {\n\tif ( window.$ === jQuery ) {\n\t\twindow.$ = _$;\n\t}\n\n\tif ( deep && window.jQuery === jQuery ) {\n\t\twindow.jQuery = _jQuery;\n\t}\n\n\treturn jQuery;\n};\n\n// Expose jQuery and $ identifiers, even in AMD\n// (trac-7102#comment:10, https://github.com/jquery/jquery/pull/557)\n// and CommonJS for browser emulators (trac-13566)\nif ( typeof noGlobal === \"undefined\" ) {\n\twindow.jQuery = window.$ = jQuery;\n}\n\n\n\n\nreturn jQuery;\n} );\n","/*!\n * @overview  Ember - JavaScript Application Framework\n * @copyright Copyright 2011-2020 Tilde Inc. and contributors\n *            Portions Copyright 2006-2011 Strobe Inc.\n *            Portions Copyright 2008-2011 Apple Inc. All rights reserved.\n * @license   Licensed under MIT license\n *            See https://raw.github.com/emberjs/ember.js/master/LICENSE\n * @version   3.24.7\n */\n","/*globals process */\nlet define, require, Ember;\n\n// Used in @ember/-internals/environment/lib/global.js\nmainContext = this; // eslint-disable-line no-undef\n\n(function () {\n  let registry;\n  let seen;\n\n  function missingModule(name, referrerName) {\n    if (referrerName) {\n      throw new Error('Could not find module ' + name + ' required by: ' + referrerName);\n    } else {\n      throw new Error('Could not find module ' + name);\n    }\n  }\n\n  function internalRequire(_name, referrerName) {\n    let name = _name;\n    let mod = registry[name];\n\n    if (!mod) {\n      name = name + '/index';\n      mod = registry[name];\n    }\n\n    let exports = seen[name];\n\n    if (exports !== undefined) {\n      return exports;\n    }\n\n    exports = seen[name] = {};\n\n    if (!mod) {\n      missingModule(_name, referrerName);\n    }\n\n    let deps = mod.deps;\n    let callback = mod.callback;\n    let reified = new Array(deps.length);\n\n    for (let i = 0; i < deps.length; i++) {\n      if (deps[i] === 'exports') {\n        reified[i] = exports;\n      } else if (deps[i] === 'require') {\n        reified[i] = require;\n      } else {\n        reified[i] = internalRequire(deps[i], name);\n      }\n    }\n\n    callback.apply(this, reified);\n\n    return exports;\n  }\n\n  let isNode =\n    typeof window === 'undefined' &&\n    typeof process !== 'undefined' &&\n    {}.toString.call(process) === '[object process]';\n\n  if (!isNode) {\n    Ember = this.Ember = this.Ember || {};\n  }\n\n  if (typeof Ember === 'undefined') {\n    Ember = {};\n  }\n\n  if (typeof Ember.__loader === 'undefined') {\n    registry = Object.create(null);\n    seen = Object.create(null);\n\n    define = function (name, deps, callback) {\n      let value = {};\n\n      if (!callback) {\n        value.deps = [];\n        value.callback = deps;\n      } else {\n        value.deps = deps;\n        value.callback = callback;\n      }\n\n      registry[name] = value;\n    };\n\n    require = function (name) {\n      return internalRequire(name, null);\n    };\n\n    // setup `require` module\n    require['default'] = require;\n\n    require.has = function registryHas(moduleName) {\n      return Boolean(registry[moduleName]) || Boolean(registry[moduleName + '/index']);\n    };\n\n    require._eak_seen = registry;\n\n    Ember.__loader = {\n      define: define,\n      require: require,\n      registry: registry,\n    };\n  } else {\n    define = Ember.__loader.define;\n    require = Ember.__loader.require;\n  }\n})();\n","// check if window exists and actually is the global\nvar hasDom = typeof self === 'object' && self !== null && self.Object === Object && typeof Window !== 'undefined' && self.constructor === Window && typeof document === 'object' && document !== null && self.document === document && typeof location === 'object' && location !== null && self.location === location && typeof history === 'object' && history !== null && self.history === history && typeof navigator === 'object' && navigator !== null && self.navigator === navigator && typeof navigator.userAgent === 'string';\n\nconst window = hasDom ? self : null;\nconst location$1 = hasDom ? self.location : null;\nconst history$1 = hasDom ? self.history : null;\nconst userAgent = hasDom ? self.navigator.userAgent : 'Lynx (textmode)';\nconst isChrome = hasDom ? Boolean(window.chrome) && !window.opera : false;\nconst isFirefox = hasDom ? typeof InstallTrigger !== 'undefined' : false;\n\nexport { window, location$1 as location, history$1 as history, userAgent, isChrome, isFirefox, hasDom as hasDOM };\n","import { deprecate } from '@ember/debug';\nimport { LOGGER } from '@ember/deprecated-features'; // Deliver message that the function is deprecated\n\nconst DEPRECATION_MESSAGE = 'Use of Ember.Logger is deprecated. Please use `console` for logging.';\nconst DEPRECATION_ID = 'ember-console.deprecate-logger';\nconst DEPRECATION_URL = 'https://emberjs.com/deprecations/v3.x#toc_use-console-rather-than-ember-logger';\n/**\n   @module ember\n*/\n\n/**\n  Inside Ember-Metal, simply uses the methods from `imports.console`.\n  Override this to provide more robust logging functionality.\n\n  @class Logger\n  @deprecated Use 'console' instead\n\n  @namespace Ember\n  @public\n*/\n\nlet DEPRECATED_LOGGER;\n\nif (LOGGER) {\n  DEPRECATED_LOGGER = {\n    /**\n    Logs the arguments to the console.\n    You can pass as many arguments as you want and they will be joined together with a space.\n     ```javascript\n    var foo = 1;\n    Ember.Logger.log('log value of foo:', foo);\n    // \"log value of foo: 1\" will be printed to the console\n    ```\n    @method log\n    @for Ember.Logger\n    @param {*} arguments\n    @public\n    */\n    log() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL\n      });\n      return console.log(...arguments); // eslint-disable-line no-console\n    },\n\n    /**\n    Prints the arguments to the console with a warning icon.\n    You can pass as many arguments as you want and they will be joined together with a space.\n     ```javascript\n    Ember.Logger.warn('Something happened!');\n    // \"Something happened!\" will be printed to the console with a warning icon.\n    ```\n    @method warn\n    @for Ember.Logger\n    @param {*} arguments\n    @public\n    */\n    warn() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL\n      });\n      return console.warn(...arguments); // eslint-disable-line no-console\n    },\n\n    /**\n    Prints the arguments to the console with an error icon, red text and a stack trace.\n    You can pass as many arguments as you want and they will be joined together with a space.\n     ```javascript\n    Ember.Logger.error('Danger! Danger!');\n    // \"Danger! Danger!\" will be printed to the console in red text.\n    ```\n    @method error\n    @for Ember.Logger\n    @param {*} arguments\n    @public\n    */\n    error() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL\n      });\n      return console.error(...arguments); // eslint-disable-line no-console\n    },\n\n    /**\n    Logs the arguments to the console.\n    You can pass as many arguments as you want and they will be joined together with a space.\n     ```javascript\n    var foo = 1;\n    Ember.Logger.info('log value of foo:', foo);\n    // \"log value of foo: 1\" will be printed to the console\n    ```\n    @method info\n    @for Ember.Logger\n    @param {*} arguments\n    @public\n    */\n    info() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL\n      });\n      return console.info(...arguments); // eslint-disable-line no-console\n    },\n\n    /**\n    Logs the arguments to the console in blue text.\n    You can pass as many arguments as you want and they will be joined together with a space.\n     ```javascript\n    var foo = 1;\n    Ember.Logger.debug('log value of foo:', foo);\n    // \"log value of foo: 1\" will be printed to the console\n    ```\n    @method debug\n    @for Ember.Logger\n    @param {*} arguments\n    @public\n    */\n    debug() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL\n      });\n      /* eslint-disable no-console */\n\n      if (console.debug) {\n        return console.debug(...arguments);\n      }\n\n      return console.info(...arguments);\n      /* eslint-enable no-console */\n    },\n\n    /**\n    If the value passed into `Ember.Logger.assert` is not truthy it will throw an error with a stack trace.\n     ```javascript\n    Ember.Logger.assert(true); // undefined\n    Ember.Logger.assert(true === false); // Throws an Assertion failed error.\n    Ember.Logger.assert(true === false, 'Something invalid'); // Throws an Assertion failed error with message.\n    ```\n    @method assert\n    @for Ember.Logger\n    @param {Boolean} bool Value to test\n    @param {String} message Assertion message on failed\n    @public\n    */\n    assert() {\n      deprecate(DEPRECATION_MESSAGE, false, {\n        id: DEPRECATION_ID,\n        until: '4.0.0',\n        url: DEPRECATION_URL\n      });\n      return console.assert(...arguments); // eslint-disable-line no-console\n    }\n\n  };\n}\n\nexport default DEPRECATED_LOGGER;","import { setOwner } from '@ember/-internals/owner';\nimport { dictionary, HAS_NATIVE_PROXY, symbol, intern } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { assign } from '@ember/polyfills';\nimport { DEBUG } from '@glimmer/env';\n\nlet leakTracking;\nlet containers;\n\nif (DEBUG) {\n  // requires v8\n  // chrome --js-flags=\"--allow-natives-syntax --expose-gc\"\n  // node --allow-natives-syntax --expose-gc\n  try {\n    if (typeof gc === 'function') {\n      leakTracking = (() => {\n        // avoid syntax errors when --allow-natives-syntax not present\n        let GetWeakSetValues = new Function('weakSet', 'return %GetWeakSetValues(weakSet, 0)');\n        containers = new WeakSet();\n        return {\n          hasContainers() {\n            gc();\n            return GetWeakSetValues(containers).length > 0;\n          },\n\n          reset() {\n            let values = GetWeakSetValues(containers);\n\n            for (let i = 0; i < values.length; i++) {\n              containers.delete(values[i]);\n            }\n          }\n\n        };\n      })();\n    }\n  } catch (e) {// ignore\n  }\n}\n/**\n A container used to instantiate and cache objects.\n\n Every `Container` must be associated with a `Registry`, which is referenced\n to determine the factory and options that should be used to instantiate\n objects.\n\n The public API for `Container` is still in flux and should not be considered\n stable.\n\n @private\n @class Container\n */\n\n\nclass Container {\n  constructor(registry, options = {}) {\n    this.registry = registry;\n    this.owner = options.owner || null;\n    this.cache = dictionary(options.cache || null);\n    this.factoryManagerCache = dictionary(options.factoryManagerCache || null);\n    this.isDestroyed = false;\n    this.isDestroying = false;\n\n    if (DEBUG) {\n      this.validationCache = dictionary(options.validationCache || null);\n\n      if (containers !== undefined) {\n        containers.add(this);\n      }\n    }\n  }\n  /**\n   @private\n   @property registry\n   @type Registry\n   @since 1.11.0\n   */\n\n  /**\n   @private\n   @property cache\n   @type InheritingDict\n   */\n\n  /**\n   @private\n   @property validationCache\n   @type InheritingDict\n   */\n\n  /**\n   Given a fullName return a corresponding instance.\n    The default behavior is for lookup to return a singleton instance.\n   The singleton is scoped to the container, allowing multiple containers\n   to all have their own locally scoped singletons.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter');\n    twitter instanceof Twitter; // => true\n    // by default the container will return singletons\n   let twitter2 = container.lookup('api:twitter');\n   twitter2 instanceof Twitter; // => true\n    twitter === twitter2; //=> true\n   ```\n    If singletons are not wanted, an optional flag can be provided at lookup.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter', { singleton: false });\n   let twitter2 = container.lookup('api:twitter', { singleton: false });\n    twitter === twitter2; //=> false\n   ```\n    @private\n   @method lookup\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] The fullname of the request source (used for local lookup)\n   @return {any}\n   */\n\n\n  lookup(fullName, options) {\n    if (this.isDestroyed) {\n      throw new Error(`Can not call \\`.lookup\\` after the owner has been destroyed`);\n    }\n\n    assert('fullName must be a proper full name', this.registry.isValidFullName(fullName));\n    return lookup(this, this.registry.normalize(fullName), options);\n  }\n  /**\n   A depth first traversal, destroying the container, its descendant containers and all\n   their managed objects.\n    @private\n   @method destroy\n   */\n\n\n  destroy() {\n    this.isDestroying = true;\n    destroyDestroyables(this);\n  }\n\n  finalizeDestroy() {\n    resetCache(this);\n    this.isDestroyed = true;\n  }\n  /**\n   Clear either the entire cache or just the cache for a particular key.\n      @private\n   @method reset\n   @param {String} fullName optional key to reset; if missing, resets everything\n  */\n\n\n  reset(fullName) {\n    if (this.isDestroyed) return;\n\n    if (fullName === undefined) {\n      destroyDestroyables(this);\n      resetCache(this);\n    } else {\n      resetMember(this, this.registry.normalize(fullName));\n    }\n  }\n  /**\n   Returns an object that can be used to provide an owner to a\n   manually created instance.\n    @private\n   @method ownerInjection\n   @returns { Object }\n  */\n\n\n  ownerInjection() {\n    let injection = {};\n    setOwner(injection, this.owner);\n    return injection;\n  }\n  /**\n   Given a fullName, return the corresponding factory. The consumer of the factory\n   is responsible for the destruction of any factory instances, as there is no\n   way for the container to ensure instances are destroyed when it itself is\n   destroyed.\n    @public\n   @method factoryFor\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] The fullname of the request source (used for local lookup)\n   @return {any}\n   */\n\n\n  factoryFor(fullName) {\n    if (this.isDestroyed) {\n      throw new Error(`Can not call \\`.factoryFor\\` after the owner has been destroyed`);\n    }\n\n    let normalizedName = this.registry.normalize(fullName);\n    assert('fullName must be a proper full name', this.registry.isValidFullName(normalizedName));\n    return factoryFor(this, normalizedName, fullName);\n  }\n\n}\n\nif (DEBUG) {\n  Container._leakTracking = leakTracking;\n}\n/*\n * Wrap a factory manager in a proxy which will not permit properties to be\n * set on the manager.\n */\n\n\nfunction wrapManagerInDeprecationProxy(manager) {\n  if (HAS_NATIVE_PROXY) {\n    let validator = {\n      set(_obj, prop) {\n        throw new Error(`You attempted to set \"${prop}\" on a factory manager created by container#factoryFor. A factory manager is a read-only construct.`);\n      }\n\n    }; // Note:\n    // We have to proxy access to the manager here so that private property\n    // access doesn't cause the above errors to occur.\n\n    let m = manager;\n    let proxiedManager = {\n      class: m.class,\n\n      create(props) {\n        return m.create(props);\n      }\n\n    };\n    return new Proxy(proxiedManager, validator);\n  }\n\n  return manager;\n}\n\nfunction isSingleton(container, fullName) {\n  return container.registry.getOption(fullName, 'singleton') !== false;\n}\n\nfunction isInstantiatable(container, fullName) {\n  return container.registry.getOption(fullName, 'instantiate') !== false;\n}\n\nfunction lookup(container, fullName, options = {}) {\n  let normalizedName = fullName;\n\n  if (options.singleton !== false) {\n    let cached = container.cache[normalizedName];\n\n    if (cached !== undefined) {\n      return cached;\n    }\n  }\n\n  return instantiateFactory(container, normalizedName, fullName, options);\n}\n\nfunction factoryFor(container, normalizedName, fullName) {\n  let cached = container.factoryManagerCache[normalizedName];\n\n  if (cached !== undefined) {\n    return cached;\n  }\n\n  let factory = container.registry.resolve(normalizedName);\n\n  if (factory === undefined) {\n    return;\n  }\n\n  if (DEBUG && factory && typeof factory._onLookup === 'function') {\n    factory._onLookup(fullName);\n  }\n\n  let manager = new FactoryManager(container, factory, fullName, normalizedName);\n\n  if (DEBUG) {\n    manager = wrapManagerInDeprecationProxy(manager);\n  }\n\n  container.factoryManagerCache[normalizedName] = manager;\n  return manager;\n}\n\nfunction isSingletonClass(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return singleton !== false && !instantiate && isSingleton(container, fullName) && !isInstantiatable(container, fullName);\n}\n\nfunction isSingletonInstance(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return singleton !== false && instantiate !== false && isSingleton(container, fullName) && isInstantiatable(container, fullName);\n}\n\nfunction isFactoryClass(container, fullname, {\n  instantiate,\n  singleton\n}) {\n  return instantiate === false && (singleton === false || !isSingleton(container, fullname)) && !isInstantiatable(container, fullname);\n}\n\nfunction isFactoryInstance(container, fullName, {\n  instantiate,\n  singleton\n}) {\n  return instantiate !== false && (singleton !== false || isSingleton(container, fullName)) && isInstantiatable(container, fullName);\n}\n\nfunction instantiateFactory(container, normalizedName, fullName, options) {\n  let factoryManager = factoryFor(container, normalizedName, fullName);\n\n  if (factoryManager === undefined) {\n    return;\n  } // SomeClass { singleton: true, instantiate: true } | { singleton: true } | { instantiate: true } | {}\n  // By default majority of objects fall into this case\n\n\n  if (isSingletonInstance(container, fullName, options)) {\n    let instance = container.cache[normalizedName] = factoryManager.create(); // if this lookup happened _during_ destruction (emits a deprecation, but\n    // is still possible) ensure that it gets destroyed\n\n    if (container.isDestroying) {\n      if (typeof instance.destroy === 'function') {\n        instance.destroy();\n      }\n    }\n\n    return instance;\n  } // SomeClass { singleton: false, instantiate: true }\n\n\n  if (isFactoryInstance(container, fullName, options)) {\n    return factoryManager.create();\n  } // SomeClass { singleton: true, instantiate: false } | { instantiate: false } | { singleton: false, instantiation: false }\n\n\n  if (isSingletonClass(container, fullName, options) || isFactoryClass(container, fullName, options)) {\n    return factoryManager.class;\n  }\n\n  throw new Error('Could not create factory');\n}\n\nfunction processInjections(container, injections, result) {\n  if (DEBUG) {\n    container.registry.validateInjections(injections);\n  }\n\n  let hash = result.injections;\n\n  for (let i = 0; i < injections.length; i++) {\n    let {\n      property,\n      specifier\n    } = injections[i];\n    hash[property] = lookup(container, specifier);\n\n    if (!result.isDynamic) {\n      result.isDynamic = !isSingleton(container, specifier);\n    }\n  }\n}\n\nfunction buildInjections(container, typeInjections, injections) {\n  let injectionsHash = {};\n  setOwner(injectionsHash, container.owner);\n  let result = {\n    injections: injectionsHash,\n    isDynamic: false\n  };\n\n  if (typeInjections !== undefined) {\n    processInjections(container, typeInjections, result);\n  }\n\n  if (injections !== undefined) {\n    processInjections(container, injections, result);\n  }\n\n  return result;\n}\n\nfunction injectionsFor(container, fullName) {\n  let registry = container.registry;\n  let [type] = fullName.split(':');\n  let typeInjections = registry.getTypeInjections(type);\n  let injections = registry.getInjections(fullName);\n  return buildInjections(container, typeInjections, injections);\n}\n\nfunction destroyDestroyables(container) {\n  let cache = container.cache;\n  let keys = Object.keys(cache);\n\n  for (let i = 0; i < keys.length; i++) {\n    let key = keys[i];\n    let value = cache[key];\n\n    if (value.destroy) {\n      value.destroy();\n    }\n  }\n}\n\nfunction resetCache(container) {\n  container.cache = dictionary(null);\n  container.factoryManagerCache = dictionary(null);\n}\n\nfunction resetMember(container, fullName) {\n  let member = container.cache[fullName];\n  delete container.factoryManagerCache[fullName];\n\n  if (member) {\n    delete container.cache[fullName];\n\n    if (member.destroy) {\n      member.destroy();\n    }\n  }\n}\n\nconst INIT_FACTORY = symbol('INIT_FACTORY');\nfunction getFactoryFor(obj) {\n  return obj[INIT_FACTORY];\n}\nfunction setFactoryFor(obj, factory) {\n  obj[INIT_FACTORY] = factory;\n}\n\nclass FactoryManager {\n  constructor(container, factory, fullName, normalizedName) {\n    this.container = container;\n    this.owner = container.owner;\n    this.class = factory;\n    this.fullName = fullName;\n    this.normalizedName = normalizedName;\n    this.madeToString = undefined;\n    this.injections = undefined;\n    setFactoryFor(this, this);\n  }\n\n  toString() {\n    if (this.madeToString === undefined) {\n      this.madeToString = this.container.registry.makeToString(this.class, this.fullName);\n    }\n\n    return this.madeToString;\n  }\n\n  create(options) {\n    let {\n      container\n    } = this;\n\n    if (container.isDestroyed) {\n      throw new Error(`Can not create new instances after the owner has been destroyed (you attempted to create ${this.fullName})`);\n    }\n\n    let props = this.injections;\n\n    if (props === undefined) {\n      let {\n        injections,\n        isDynamic\n      } = injectionsFor(this.container, this.normalizedName);\n      setFactoryFor(injections, this);\n      props = injections;\n\n      if (!isDynamic) {\n        this.injections = injections;\n      }\n    }\n\n    if (options !== undefined) {\n      props = assign({}, props, options);\n    }\n\n    if (DEBUG) {\n      let lazyInjections;\n      let validationCache = this.container.validationCache; // Ensure that all lazy injections are valid at instantiation time\n\n      if (!validationCache[this.fullName] && this.class && typeof this.class._lazyInjections === 'function') {\n        lazyInjections = this.class._lazyInjections();\n        lazyInjections = this.container.registry.normalizeInjectionsHash(lazyInjections);\n        this.container.registry.validateInjections(lazyInjections);\n      }\n\n      validationCache[this.fullName] = true;\n      assert(`Failed to create an instance of '${this.normalizedName}'. Most likely an improperly defined class or an invalid module export.`, typeof this.class.create === 'function');\n    }\n\n    return this.class.create(props);\n  }\n\n}\n\nconst VALID_FULL_NAME_REGEXP = /^[^:]+:[^:]+$/;\n/**\n A registry used to store factory and option information keyed\n by type.\n\n A `Registry` stores the factory and option information needed by a\n `Container` to instantiate and cache objects.\n\n The API for `Registry` is still in flux and should not be considered stable.\n\n @private\n @class Registry\n @since 1.11.0\n*/\n\nclass Registry {\n  constructor(options = {}) {\n    this.fallback = options.fallback || null;\n    this.resolver = options.resolver || null;\n    this.registrations = dictionary(options.registrations || null);\n    this._typeInjections = dictionary(null);\n    this._injections = dictionary(null);\n    this._localLookupCache = Object.create(null);\n    this._normalizeCache = dictionary(null);\n    this._resolveCache = dictionary(null);\n    this._failSet = new Set();\n    this._options = dictionary(null);\n    this._typeOptions = dictionary(null);\n  }\n  /**\n   A backup registry for resolving registrations when no matches can be found.\n      @private\n   @property fallback\n   @type Registry\n   */\n\n  /**\n   An object that has a `resolve` method that resolves a name.\n      @private\n   @property resolver\n   @type Resolver\n   */\n\n  /**\n   @private\n   @property registrations\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _typeInjections\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _injections\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _normalizeCache\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _resolveCache\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _options\n   @type InheritingDict\n   */\n\n  /**\n   @private\n      @property _typeOptions\n   @type InheritingDict\n   */\n\n  /**\n   Creates a container based on this registry.\n      @private\n   @method container\n   @param {Object} options\n   @return {Container} created container\n   */\n\n\n  container(options) {\n    return new Container(this, options);\n  }\n  /**\n   Registers a factory for later injection.\n      Example:\n      ```javascript\n   let registry = new Registry();\n      registry.register('model:user', Person, {singleton: false });\n   registry.register('fruit:favorite', Orange);\n   registry.register('communication:main', Email, {singleton: false});\n   ```\n      @private\n   @method register\n   @param {String} fullName\n   @param {Function} factory\n   @param {Object} options\n   */\n\n\n  register(fullName, factory, options = {}) {\n    assert('fullName must be a proper full name', this.isValidFullName(fullName));\n    assert(`Attempting to register an unknown factory: '${fullName}'`, factory !== undefined);\n    let normalizedName = this.normalize(fullName);\n    assert(`Cannot re-register: '${fullName}', as it has already been resolved.`, !this._resolveCache[normalizedName]);\n\n    this._failSet.delete(normalizedName);\n\n    this.registrations[normalizedName] = factory;\n    this._options[normalizedName] = options;\n  }\n  /**\n   Unregister a fullName\n      ```javascript\n   let registry = new Registry();\n   registry.register('model:user', User);\n      registry.resolve('model:user').create() instanceof User //=> true\n      registry.unregister('model:user')\n   registry.resolve('model:user') === undefined //=> true\n   ```\n      @private\n   @method unregister\n   @param {String} fullName\n   */\n\n\n  unregister(fullName) {\n    assert('fullName must be a proper full name', this.isValidFullName(fullName));\n    let normalizedName = this.normalize(fullName);\n    this._localLookupCache = Object.create(null);\n    delete this.registrations[normalizedName];\n    delete this._resolveCache[normalizedName];\n    delete this._options[normalizedName];\n\n    this._failSet.delete(normalizedName);\n  }\n  /**\n   Given a fullName return the corresponding factory.\n      By default `resolve` will retrieve the factory from\n   the registry.\n      ```javascript\n   let registry = new Registry();\n   registry.register('api:twitter', Twitter);\n      registry.resolve('api:twitter') // => Twitter\n   ```\n      Optionally the registry can be provided with a custom resolver.\n   If provided, `resolve` will first provide the custom resolver\n   the opportunity to resolve the fullName, otherwise it will fallback\n   to the registry.\n      ```javascript\n   let registry = new Registry();\n   registry.resolver = function(fullName) {\n      // lookup via the module system of choice\n    };\n      // the twitter factory is added to the module system\n   registry.resolve('api:twitter') // => Twitter\n   ```\n      @private\n   @method resolve\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] the fullname of the request source (used for local lookups)\n   @return {Function} fullName's factory\n   */\n\n\n  resolve(fullName) {\n    let factory = resolve(this, this.normalize(fullName));\n\n    if (factory === undefined && this.fallback !== null) {\n      factory = this.fallback.resolve(...arguments);\n    }\n\n    return factory;\n  }\n  /**\n   A hook that can be used to describe how the resolver will\n   attempt to find the factory.\n      For example, the default Ember `.describe` returns the full\n   class name (including namespace) where Ember's resolver expects\n   to find the `fullName`.\n      @private\n   @method describe\n   @param {String} fullName\n   @return {string} described fullName\n   */\n\n\n  describe(fullName) {\n    if (this.resolver !== null && this.resolver.lookupDescription) {\n      return this.resolver.lookupDescription(fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.describe(fullName);\n    } else {\n      return fullName;\n    }\n  }\n  /**\n   A hook to enable custom fullName normalization behavior\n      @private\n   @method normalizeFullName\n   @param {String} fullName\n   @return {string} normalized fullName\n   */\n\n\n  normalizeFullName(fullName) {\n    if (this.resolver !== null && this.resolver.normalize) {\n      return this.resolver.normalize(fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.normalizeFullName(fullName);\n    } else {\n      return fullName;\n    }\n  }\n  /**\n   Normalize a fullName based on the application's conventions\n      @private\n   @method normalize\n   @param {String} fullName\n   @return {string} normalized fullName\n   */\n\n\n  normalize(fullName) {\n    return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this.normalizeFullName(fullName));\n  }\n  /**\n   @method makeToString\n      @private\n   @param {any} factory\n   @param {string} fullName\n   @return {function} toString function\n   */\n\n\n  makeToString(factory, fullName) {\n    if (this.resolver !== null && this.resolver.makeToString) {\n      return this.resolver.makeToString(factory, fullName);\n    } else if (this.fallback !== null) {\n      return this.fallback.makeToString(factory, fullName);\n    } else {\n      return factory.toString();\n    }\n  }\n  /**\n   Given a fullName check if the container is aware of its factory\n   or singleton instance.\n      @private\n   @method has\n   @param {String} fullName\n   @param {Object} [options]\n   @param {String} [options.source] the fullname of the request source (used for local lookups)\n   @return {Boolean}\n   */\n\n\n  has(fullName) {\n    if (!this.isValidFullName(fullName)) {\n      return false;\n    }\n\n    return has(this, this.normalize(fullName));\n  }\n  /**\n   Allow registering options for all factories of a type.\n      ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n      // if all of type `connection` must not be singletons\n   registry.optionsForType('connection', { singleton: false });\n      registry.register('connection:twitter', TwitterConnection);\n   registry.register('connection:facebook', FacebookConnection);\n      let twitter = container.lookup('connection:twitter');\n   let twitter2 = container.lookup('connection:twitter');\n      twitter === twitter2; // => false\n      let facebook = container.lookup('connection:facebook');\n   let facebook2 = container.lookup('connection:facebook');\n      facebook === facebook2; // => false\n   ```\n      @private\n   @method optionsForType\n   @param {String} type\n   @param {Object} options\n   */\n\n\n  optionsForType(type, options) {\n    this._typeOptions[type] = options;\n  }\n\n  getOptionsForType(type) {\n    let optionsForType = this._typeOptions[type];\n\n    if (optionsForType === undefined && this.fallback !== null) {\n      optionsForType = this.fallback.getOptionsForType(type);\n    }\n\n    return optionsForType;\n  }\n  /**\n   @private\n   @method options\n   @param {String} fullName\n   @param {Object} options\n   */\n\n\n  options(fullName, options) {\n    let normalizedName = this.normalize(fullName);\n    this._options[normalizedName] = options;\n  }\n\n  getOptions(fullName) {\n    let normalizedName = this.normalize(fullName);\n    let options = this._options[normalizedName];\n\n    if (options === undefined && this.fallback !== null) {\n      options = this.fallback.getOptions(fullName);\n    }\n\n    return options;\n  }\n\n  getOption(fullName, optionName) {\n    let options = this._options[fullName];\n\n    if (options !== undefined && options[optionName] !== undefined) {\n      return options[optionName];\n    }\n\n    let type = fullName.split(':')[0];\n    options = this._typeOptions[type];\n\n    if (options && options[optionName] !== undefined) {\n      return options[optionName];\n    } else if (this.fallback !== null) {\n      return this.fallback.getOption(fullName, optionName);\n    }\n\n    return undefined;\n  }\n  /**\n   Used only via `injection`.\n      Provides a specialized form of injection, specifically enabling\n   all objects of one type to be injected with a reference to another\n   object.\n      For example, provided each object of type `controller` needed a `router`.\n   one would do the following:\n      ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n      registry.register('router:main', Router);\n   registry.register('controller:user', UserController);\n   registry.register('controller:post', PostController);\n      registry.typeInjection('controller', 'router', 'router:main');\n      let user = container.lookup('controller:user');\n   let post = container.lookup('controller:post');\n      user.router instanceof Router; //=> true\n   post.router instanceof Router; //=> true\n      // both controllers share the same router\n   user.router === post.router; //=> true\n   ```\n      @private\n   @method typeInjection\n   @param {String} type\n   @param {String} property\n   @param {String} fullName\n   */\n\n\n  typeInjection(type, property, fullName) {\n    assert('fullName must be a proper full name', this.isValidFullName(fullName));\n    let fullNameType = fullName.split(':')[0];\n    assert(`Cannot inject a '${fullName}' on other ${type}(s).`, fullNameType !== type);\n    let injections = this._typeInjections[type] || (this._typeInjections[type] = []);\n    injections.push({\n      property,\n      specifier: fullName\n    });\n  }\n  /**\n   Defines injection rules.\n      These rules are used to inject dependencies onto objects when they\n   are instantiated.\n      Two forms of injections are possible:\n      * Injecting one fullName on another fullName\n   * Injecting one fullName on a type\n      Example:\n      ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n      registry.register('source:main', Source);\n   registry.register('model:user', User);\n   registry.register('model:post', Post);\n      // injecting one fullName on another fullName\n   // eg. each user model gets a post model\n   registry.injection('model:user', 'post', 'model:post');\n      // injecting one fullName on another type\n   registry.injection('model', 'source', 'source:main');\n      let user = container.lookup('model:user');\n   let post = container.lookup('model:post');\n      user.source instanceof Source; //=> true\n   post.source instanceof Source; //=> true\n      user.post instanceof Post; //=> true\n      // and both models share the same source\n   user.source === post.source; //=> true\n   ```\n      @private\n   @method injection\n   @param {String} factoryName\n   @param {String} property\n   @param {String} injectionName\n   */\n\n\n  injection(fullName, property, injectionName) {\n    assert(`Invalid injectionName, expected: 'type:name' got: ${injectionName}`, this.isValidFullName(injectionName));\n    let normalizedInjectionName = this.normalize(injectionName);\n\n    if (fullName.indexOf(':') === -1) {\n      return this.typeInjection(fullName, property, normalizedInjectionName);\n    }\n\n    assert('fullName must be a proper full name', this.isValidFullName(fullName));\n    let normalizedName = this.normalize(fullName);\n    let injections = this._injections[normalizedName] || (this._injections[normalizedName] = []);\n    injections.push({\n      property,\n      specifier: normalizedInjectionName\n    });\n  }\n  /**\n   @private\n   @method knownForType\n   @param {String} type the type to iterate over\n  */\n\n\n  knownForType(type) {\n    let localKnown = dictionary(null);\n    let registeredNames = Object.keys(this.registrations);\n\n    for (let index = 0; index < registeredNames.length; index++) {\n      let fullName = registeredNames[index];\n      let itemType = fullName.split(':')[0];\n\n      if (itemType === type) {\n        localKnown[fullName] = true;\n      }\n    }\n\n    let fallbackKnown, resolverKnown;\n\n    if (this.fallback !== null) {\n      fallbackKnown = this.fallback.knownForType(type);\n    }\n\n    if (this.resolver !== null && this.resolver.knownForType) {\n      resolverKnown = this.resolver.knownForType(type);\n    }\n\n    return assign({}, fallbackKnown, localKnown, resolverKnown);\n  }\n\n  isValidFullName(fullName) {\n    return VALID_FULL_NAME_REGEXP.test(fullName);\n  }\n\n  getInjections(fullName) {\n    let injections = this._injections[fullName];\n\n    if (this.fallback !== null) {\n      let fallbackInjections = this.fallback.getInjections(fullName);\n\n      if (fallbackInjections !== undefined) {\n        injections = injections === undefined ? fallbackInjections : injections.concat(fallbackInjections);\n      }\n    }\n\n    return injections;\n  }\n\n  getTypeInjections(type) {\n    let injections = this._typeInjections[type];\n\n    if (this.fallback !== null) {\n      let fallbackInjections = this.fallback.getTypeInjections(type);\n\n      if (fallbackInjections !== undefined) {\n        injections = injections === undefined ? fallbackInjections : injections.concat(fallbackInjections);\n      }\n    }\n\n    return injections;\n  }\n\n}\n\nif (DEBUG) {\n  const proto = Registry.prototype;\n\n  proto.normalizeInjectionsHash = function (hash) {\n    let injections = [];\n\n    for (let key in hash) {\n      if (Object.prototype.hasOwnProperty.call(hash, key)) {\n        let {\n          specifier\n        } = hash[key];\n        assert(`Expected a proper full name, given '${specifier}'`, this.isValidFullName(specifier));\n        injections.push({\n          property: key,\n          specifier\n        });\n      }\n    }\n\n    return injections;\n  };\n\n  proto.validateInjections = function (injections) {\n    if (!injections) {\n      return;\n    }\n\n    for (let i = 0; i < injections.length; i++) {\n      let {\n        specifier\n      } = injections[i];\n      assert(`Attempting to inject an unknown injection: '${specifier}'`, this.has(specifier));\n    }\n  };\n}\n\nfunction resolve(registry, _normalizedName) {\n  let normalizedName = _normalizedName;\n  let cached = registry._resolveCache[normalizedName];\n\n  if (cached !== undefined) {\n    return cached;\n  }\n\n  if (registry._failSet.has(normalizedName)) {\n    return;\n  }\n\n  let resolved;\n\n  if (registry.resolver) {\n    resolved = registry.resolver.resolve(normalizedName);\n  }\n\n  if (resolved === undefined) {\n    resolved = registry.registrations[normalizedName];\n  }\n\n  if (resolved === undefined) {\n    registry._failSet.add(normalizedName);\n  } else {\n    registry._resolveCache[normalizedName] = resolved;\n  }\n\n  return resolved;\n}\n\nfunction has(registry, fullName) {\n  return registry.resolve(fullName) !== undefined;\n}\n\nconst privateNames = dictionary(null);\nconst privateSuffix = `${Math.random()}${Date.now()}`.replace('.', '');\nfunction privatize([fullName]) {\n  let name = privateNames[fullName];\n\n  if (name) {\n    return name;\n  }\n\n  let [type, rawName] = fullName.split(':');\n  return privateNames[fullName] = intern(`${type}:${rawName}-${privateSuffix}`);\n}\n\n/*\nPublic API for the container is still in flux.\nThe public API, specified on the application namespace should be considered the stable API.\n// @module container\n  @private\n*/\n\nexport { Registry, privatize, Container, getFactoryFor, setFactoryFor, INIT_FACTORY };\n","import { FUNCTION_PROTOTYPE_EXTENSIONS } from '@ember/deprecated-features';\nimport { DEBUG } from '@glimmer/env';\n\n// from lodash to catch fake globals\nfunction checkGlobal(value) {\n  return value && value.Object === Object ? value : undefined;\n} // element ids can ruin global miss checks\n\n\nfunction checkElementIdShadowing(value) {\n  return value && value.nodeType === undefined ? value : undefined;\n} // export real global\n\n\nvar global$1 = checkGlobal(checkElementIdShadowing(typeof global === 'object' && global)) || checkGlobal(typeof self === 'object' && self) || checkGlobal(typeof window === 'object' && window) || typeof mainContext !== 'undefined' && mainContext || // set before strict mode in Ember loader/wrapper\nnew Function('return this')(); // eval outside of strict mode\n\nconst context = function (global, Ember) {\n  return Ember === undefined ? {\n    imports: global,\n    exports: global,\n    lookup: global\n  } : {\n    // import jQuery\n    imports: Ember.imports || global,\n    // export Ember\n    exports: Ember.exports || global,\n    // search for Namespaces\n    lookup: Ember.lookup || global\n  };\n}(global$1, global$1.Ember);\nfunction getLookup() {\n  return context.lookup;\n}\nfunction setLookup(value) {\n  context.lookup = value;\n}\n\n/**\n  The hash of environment variables used to control various configuration\n  settings. To specify your own or override default settings, add the\n  desired properties to a global hash named `EmberENV` (or `ENV` for\n  backwards compatibility with earlier versions of Ember). The `EmberENV`\n  hash must be created before loading Ember.\n\n  @class EmberENV\n  @type Object\n  @public\n*/\n\nconst ENV = {\n  ENABLE_OPTIONAL_FEATURES: false,\n\n  /**\n    Determines whether Ember should add to `Array`, `Function`, and `String`\n    native object prototypes, a few extra methods in order to provide a more\n    friendly API.\n       We generally recommend leaving this option set to true however, if you need\n    to turn it off, you can add the configuration property\n    `EXTEND_PROTOTYPES` to `EmberENV` and set it to `false`.\n       Note, when disabled (the default configuration for Ember Addons), you will\n    instead have to access all methods and functions from the Ember\n    namespace.\n       @property EXTEND_PROTOTYPES\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  EXTEND_PROTOTYPES: {\n    Array: true,\n    Function: true,\n    String: true\n  },\n\n  /**\n    The `LOG_STACKTRACE_ON_DEPRECATION` property, when true, tells Ember to log\n    a full stack trace during deprecation warnings.\n       @property LOG_STACKTRACE_ON_DEPRECATION\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  LOG_STACKTRACE_ON_DEPRECATION: true,\n\n  /**\n    The `LOG_VERSION` property, when true, tells Ember to log versions of all\n    dependent libraries in use.\n       @property LOG_VERSION\n    @type Boolean\n    @default true\n    @for EmberENV\n    @public\n  */\n  LOG_VERSION: true,\n  RAISE_ON_DEPRECATION: false,\n  STRUCTURED_PROFILE: false,\n\n  /**\n    Whether to insert a `<div class=\"ember-view\" />` wrapper around the\n    application template. See RFC #280.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _APPLICATION_TEMPLATE_WRAPPER\n    @for EmberENV\n    @type Boolean\n    @default true\n    @private\n  */\n  _APPLICATION_TEMPLATE_WRAPPER: true,\n\n  /**\n    Whether to use Glimmer Component semantics (as opposed to the classic \"Curly\"\n    components semantics) for template-only components. See RFC #278.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _TEMPLATE_ONLY_GLIMMER_COMPONENTS\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _TEMPLATE_ONLY_GLIMMER_COMPONENTS: false,\n\n  /**\n    Whether to perform extra bookkeeping needed to make the `captureRenderTree`\n    API work.\n       This has to be set before the ember JavaScript code is evaluated. This is\n    usually done by setting `window.EmberENV = { _DEBUG_RENDER_TREE: true };`\n    before the \"vendor\" `<script>` tag in `index.html`.\n       Setting the flag after Ember is already loaded will not work correctly. It\n    may appear to work somewhat, but fundamentally broken.\n       This is not intended to be set directly. Ember Inspector will enable the\n    flag on behalf of the user as needed.\n       This flag is always on in development mode.\n       The flag is off by default in production mode, due to the cost associated\n    with the the bookkeeping work.\n       The expected flow is that Ember Inspector will ask the user to refresh the\n    page after enabling the feature. It could also offer a feature where the\n    user add some domains to the \"always on\" list. In either case, Ember\n    Inspector will inject the code on the page to set the flag if needed.\n       @property _DEBUG_RENDER_TREE\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _DEBUG_RENDER_TREE: DEBUG,\n\n  /**\n    Whether the app is using jQuery. See RFC #294.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _JQUERY_INTEGRATION\n    @for EmberENV\n    @type Boolean\n    @default true\n    @private\n  */\n  _JQUERY_INTEGRATION: true,\n\n  /**\n    Whether the app defaults to using async observers.\n       This is not intended to be set directly, as the implementation may change in\n    the future. Use `@ember/optional-features` instead.\n       @property _DEFAULT_ASYNC_OBSERVERS\n    @for EmberENV\n    @type Boolean\n    @default false\n    @private\n  */\n  _DEFAULT_ASYNC_OBSERVERS: false,\n\n  /**\n    Controls the maximum number of scheduled rerenders without \"settling\". In general,\n    applications should not need to modify this environment variable, but please\n    open an issue so that we can determine if a better default value is needed.\n       @property _RERENDER_LOOP_LIMIT\n    @for EmberENV\n    @type number\n    @default 1000\n    @private\n   */\n  _RERENDER_LOOP_LIMIT: 1000,\n  EMBER_LOAD_HOOKS: {},\n  FEATURES: {}\n};\n\n(EmberENV => {\n  if (typeof EmberENV !== 'object' || EmberENV === null) return;\n\n  for (let flag in EmberENV) {\n    if (!Object.prototype.hasOwnProperty.call(EmberENV, flag) || flag === 'EXTEND_PROTOTYPES' || flag === 'EMBER_LOAD_HOOKS') continue;\n    let defaultValue = ENV[flag];\n\n    if (defaultValue === true) {\n      ENV[flag] = EmberENV[flag] !== false;\n    } else if (defaultValue === false) {\n      ENV[flag] = EmberENV[flag] === true;\n    }\n  }\n\n  let {\n    EXTEND_PROTOTYPES\n  } = EmberENV;\n\n  if (EXTEND_PROTOTYPES !== undefined) {\n    if (typeof EXTEND_PROTOTYPES === 'object' && EXTEND_PROTOTYPES !== null) {\n      ENV.EXTEND_PROTOTYPES.String = EXTEND_PROTOTYPES.String !== false;\n\n      if (FUNCTION_PROTOTYPE_EXTENSIONS) {\n        ENV.EXTEND_PROTOTYPES.Function = EXTEND_PROTOTYPES.Function !== false;\n      }\n\n      ENV.EXTEND_PROTOTYPES.Array = EXTEND_PROTOTYPES.Array !== false;\n    } else {\n      let isEnabled = EXTEND_PROTOTYPES !== false;\n      ENV.EXTEND_PROTOTYPES.String = isEnabled;\n\n      if (FUNCTION_PROTOTYPE_EXTENSIONS) {\n        ENV.EXTEND_PROTOTYPES.Function = isEnabled;\n      }\n\n      ENV.EXTEND_PROTOTYPES.Array = isEnabled;\n    }\n  } // TODO this does not seem to be used by anything,\n  //      can we remove it? do we need to deprecate it?\n\n\n  let {\n    EMBER_LOAD_HOOKS\n  } = EmberENV;\n\n  if (typeof EMBER_LOAD_HOOKS === 'object' && EMBER_LOAD_HOOKS !== null) {\n    for (let hookName in EMBER_LOAD_HOOKS) {\n      if (!Object.prototype.hasOwnProperty.call(EMBER_LOAD_HOOKS, hookName)) continue;\n      let hooks = EMBER_LOAD_HOOKS[hookName];\n\n      if (Array.isArray(hooks)) {\n        ENV.EMBER_LOAD_HOOKS[hookName] = hooks.filter(hook => typeof hook === 'function');\n      }\n    }\n  }\n\n  let {\n    FEATURES\n  } = EmberENV;\n\n  if (typeof FEATURES === 'object' && FEATURES !== null) {\n    for (let feature in FEATURES) {\n      if (!Object.prototype.hasOwnProperty.call(FEATURES, feature)) continue;\n      ENV.FEATURES[feature] = FEATURES[feature] === true;\n    }\n  }\n\n  if (DEBUG) {\n    ENV._DEBUG_RENDER_TREE = true;\n  }\n})(global$1.EmberENV);\n\nfunction getENV() {\n  return ENV;\n}\n\nexport { global$1 as global, context, getLookup, setLookup, ENV, getENV };\n","let onerror;\nexport const onErrorTarget = {\n  get onerror() {\n    return onerror;\n  }\n\n}; // Ember.onerror getter\n\nexport function getOnerror() {\n  return onerror;\n} // Ember.onerror setter\n\nexport function setOnerror(handler) {\n  onerror = handler;\n}\nlet dispatchOverride; // allows testing adapter to override dispatch\n\nexport function getDispatchOverride() {\n  return dispatchOverride;\n}\nexport function setDispatchOverride(handler) {\n  dispatchOverride = handler;\n}","export { default as DataAdapter } from './lib/data_adapter';\nexport { default as ContainerDebugAdapter } from './lib/container_debug_adapter';","import { classify, dasherize } from '@ember/string';\nimport { A as emberA, typeOf, Namespace, Object as EmberObject } from '@ember/-internals/runtime';\n/**\n@module @ember/debug\n*/\n\n/**\n  The `ContainerDebugAdapter` helps the container and resolver interface\n  with tools that debug Ember such as the\n  [Ember Inspector](https://github.com/emberjs/ember-inspector)\n  for Chrome and Firefox.\n\n  This class can be extended by a custom resolver implementer\n  to override some of the methods with library-specific code.\n\n  The methods likely to be overridden are:\n\n  * `canCatalogEntriesByType`\n  * `catalogEntriesByType`\n\n  The adapter will need to be registered\n  in the application's container as `container-debug-adapter:main`.\n\n  Example:\n\n  ```javascript\n  Application.initializer({\n    name: \"containerDebugAdapter\",\n\n    initialize(application) {\n      application.register('container-debug-adapter:main', require('app/container-debug-adapter'));\n    }\n  });\n  ```\n\n  @class ContainerDebugAdapter\n  @extends EmberObject\n  @since 1.5.0\n  @public\n*/\n\nexport default EmberObject.extend({\n  /**\n    The resolver instance of the application\n    being debugged. This property will be injected\n    on creation.\n     @property resolver\n    @default null\n    @public\n  */\n  resolver: null,\n\n  /**\n    Returns true if it is possible to catalog a list of available\n    classes in the resolver for a given type.\n     @method canCatalogEntriesByType\n    @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n    @return {boolean} whether a list is available for this type.\n    @public\n  */\n  canCatalogEntriesByType(type) {\n    if (type === 'model' || type === 'template') {\n      return false;\n    }\n\n    return true;\n  },\n\n  /**\n    Returns the available classes a given type.\n     @method catalogEntriesByType\n    @param {String} type The type. e.g. \"model\", \"controller\", \"route\".\n    @return {Array} An array of strings.\n    @public\n  */\n  catalogEntriesByType(type) {\n    let namespaces = emberA(Namespace.NAMESPACES);\n    let types = emberA();\n    let typeSuffixRegex = new RegExp(`${classify(type)}$`);\n    namespaces.forEach(namespace => {\n      for (let key in namespace) {\n        if (!Object.prototype.hasOwnProperty.call(namespace, key)) {\n          continue;\n        }\n\n        if (typeSuffixRegex.test(key)) {\n          let klass = namespace[key];\n\n          if (typeOf(klass) === 'class') {\n            types.push(dasherize(key.replace(typeSuffixRegex, '')));\n          }\n        }\n      }\n    });\n    return types;\n  }\n\n});","import { getOwner } from '@ember/-internals/owner';\nimport { scheduleOnce } from '@ember/runloop';\nimport { get, objectAt, addArrayObserver, removeArrayObserver } from '@ember/-internals/metal';\nimport { dasherize } from '@ember/string';\nimport { Namespace, Object as EmberObject, A as emberA } from '@ember/-internals/runtime';\n/**\n@module @ember/debug\n*/\n\n/**\n  The `DataAdapter` helps a data persistence library\n  interface with tools that debug Ember such\n  as the [Ember Inspector](https://github.com/emberjs/ember-inspector)\n  for Chrome and Firefox.\n\n  This class will be extended by a persistence library\n  which will override some of the methods with\n  library-specific code.\n\n  The methods likely to be overridden are:\n\n  * `getFilters`\n  * `detect`\n  * `columnsForType`\n  * `getRecords`\n  * `getRecordColumnValues`\n  * `getRecordKeywords`\n  * `getRecordFilterValues`\n  * `getRecordColor`\n  * `observeRecord`\n\n  The adapter will need to be registered\n  in the application's container as `dataAdapter:main`.\n\n  Example:\n\n  ```javascript\n  Application.initializer({\n    name: \"data-adapter\",\n\n    initialize: function(application) {\n      application.register('data-adapter:main', DS.DataAdapter);\n    }\n  });\n  ```\n\n  @class DataAdapter\n  @extends EmberObject\n  @public\n*/\n\nexport default EmberObject.extend({\n  init() {\n    this._super(...arguments);\n\n    this.releaseMethods = emberA();\n  },\n\n  /**\n    The container-debug-adapter which is used\n    to list all models.\n     @property containerDebugAdapter\n    @default undefined\n    @since 1.5.0\n    @public\n  **/\n  containerDebugAdapter: undefined,\n\n  /**\n    The number of attributes to send\n    as columns. (Enough to make the record\n    identifiable).\n     @private\n    @property attributeLimit\n    @default 3\n    @since 1.3.0\n  */\n  attributeLimit: 3,\n\n  /**\n     Ember Data > v1.0.0-beta.18\n     requires string model names to be passed\n     around instead of the actual factories.\n      This is a stamp for the Ember Inspector\n     to differentiate between the versions\n     to be able to support older versions too.\n      @public\n     @property acceptsModelName\n   */\n  acceptsModelName: true,\n\n  /**\n    Stores all methods that clear observers.\n    These methods will be called on destruction.\n     @private\n    @property releaseMethods\n    @since 1.3.0\n  */\n  releaseMethods: emberA(),\n\n  /**\n    Specifies how records can be filtered.\n    Records returned will need to have a `filterValues`\n    property with a key for every name in the returned array.\n     @public\n    @method getFilters\n    @return {Array} List of objects defining filters.\n     The object should have a `name` and `desc` property.\n  */\n  getFilters() {\n    return emberA();\n  },\n\n  /**\n    Fetch the model types and observe them for changes.\n     @public\n    @method watchModelTypes\n     @param {Function} typesAdded Callback to call to add types.\n    Takes an array of objects containing wrapped types (returned from `wrapModelType`).\n     @param {Function} typesUpdated Callback to call when a type has changed.\n    Takes an array of objects containing wrapped types.\n     @return {Function} Method to call to remove all observers\n  */\n  watchModelTypes(typesAdded, typesUpdated) {\n    let modelTypes = this.getModelTypes();\n    let releaseMethods = emberA();\n    let typesToSend;\n    typesToSend = modelTypes.map(type => {\n      let klass = type.klass;\n      let wrapped = this.wrapModelType(klass, type.name);\n      releaseMethods.push(this.observeModelType(type.name, typesUpdated));\n      return wrapped;\n    });\n    typesAdded(typesToSend);\n\n    let release = () => {\n      releaseMethods.forEach(fn => fn());\n      this.releaseMethods.removeObject(release);\n    };\n\n    this.releaseMethods.pushObject(release);\n    return release;\n  },\n\n  _nameToClass(type) {\n    if (typeof type === 'string') {\n      let owner = getOwner(this);\n      let Factory = owner.factoryFor(`model:${type}`);\n      type = Factory && Factory.class;\n    }\n\n    return type;\n  },\n\n  /**\n    Fetch the records of a given type and observe them for changes.\n     @public\n    @method watchRecords\n     @param {String} modelName The model name.\n     @param {Function} recordsAdded Callback to call to add records.\n    Takes an array of objects containing wrapped records.\n    The object should have the following properties:\n      columnValues: {Object} The key and value of a table cell.\n      object: {Object} The actual record object.\n     @param {Function} recordsUpdated Callback to call when a record has changed.\n    Takes an array of objects containing wrapped records.\n     @param {Function} recordsRemoved Callback to call when a record has removed.\n    Takes the following parameters:\n      index: The array index where the records were removed.\n      count: The number of records removed.\n     @return {Function} Method to call to remove all observers.\n  */\n  watchRecords(modelName, recordsAdded, recordsUpdated, recordsRemoved) {\n    let releaseMethods = emberA();\n\n    let klass = this._nameToClass(modelName);\n\n    let records = this.getRecords(klass, modelName);\n    let release;\n\n    function recordUpdated(updatedRecord) {\n      recordsUpdated([updatedRecord]);\n    }\n\n    let recordsToSend = records.map(record => {\n      releaseMethods.push(this.observeRecord(record, recordUpdated));\n      return this.wrapRecord(record);\n    });\n\n    let contentDidChange = (array, idx, removedCount, addedCount) => {\n      for (let i = idx; i < idx + addedCount; i++) {\n        let record = objectAt(array, i);\n        let wrapped = this.wrapRecord(record);\n        releaseMethods.push(this.observeRecord(record, recordUpdated));\n        recordsAdded([wrapped]);\n      }\n\n      if (removedCount) {\n        recordsRemoved(idx, removedCount);\n      }\n    };\n\n    let observer = {\n      didChange: contentDidChange,\n\n      willChange() {\n        return this;\n      }\n\n    };\n    addArrayObserver(records, this, observer);\n\n    release = () => {\n      releaseMethods.forEach(fn => fn());\n      removeArrayObserver(records, this, observer);\n      this.releaseMethods.removeObject(release);\n    };\n\n    recordsAdded(recordsToSend);\n    this.releaseMethods.pushObject(release);\n    return release;\n  },\n\n  /**\n    Clear all observers before destruction\n    @private\n    @method willDestroy\n  */\n  willDestroy() {\n    this._super(...arguments);\n\n    this.releaseMethods.forEach(fn => fn());\n  },\n\n  /**\n    Detect whether a class is a model.\n     Test that against the model class\n    of your persistence library.\n     @public\n    @method detect\n    @return boolean Whether the class is a model class or not.\n  */\n  detect() {\n    return false;\n  },\n\n  /**\n    Get the columns for a given model type.\n     @public\n    @method columnsForType\n    @return {Array} An array of columns of the following format:\n     name: {String} The name of the column.\n     desc: {String} Humanized description (what would show in a table column name).\n  */\n  columnsForType() {\n    return emberA();\n  },\n\n  /**\n    Adds observers to a model type class.\n     @private\n    @method observeModelType\n    @param {String} modelName The model type name.\n    @param {Function} typesUpdated Called when a type is modified.\n    @return {Function} The function to call to remove observers.\n  */\n  observeModelType(modelName, typesUpdated) {\n    let klass = this._nameToClass(modelName);\n\n    let records = this.getRecords(klass, modelName);\n\n    function onChange() {\n      typesUpdated([this.wrapModelType(klass, modelName)]);\n    }\n\n    let observer = {\n      didChange(array, idx, removedCount, addedCount) {\n        // Only re-fetch records if the record count changed\n        // (which is all we care about as far as model types are concerned).\n        if (removedCount > 0 || addedCount > 0) {\n          scheduleOnce('actions', this, onChange);\n        }\n      },\n\n      willChange() {\n        return this;\n      }\n\n    };\n    addArrayObserver(records, this, observer);\n\n    let release = () => removeArrayObserver(records, this, observer);\n\n    return release;\n  },\n\n  /**\n    Wraps a given model type and observes changes to it.\n     @private\n    @method wrapModelType\n    @param {Class} klass A model class.\n    @param {String} modelName Name of the class.\n    @return {Object} Contains the wrapped type and the function to remove observers\n    Format:\n      type: {Object} The wrapped type.\n        The wrapped type has the following format:\n          name: {String} The name of the type.\n          count: {Integer} The number of records available.\n          columns: {Columns} An array of columns to describe the record.\n          object: {Class} The actual Model type class.\n      release: {Function} The function to remove observers.\n  */\n  wrapModelType(klass, name) {\n    let records = this.getRecords(klass, name);\n    let typeToSend;\n    typeToSend = {\n      name,\n      count: get(records, 'length'),\n      columns: this.columnsForType(klass),\n      object: klass\n    };\n    return typeToSend;\n  },\n\n  /**\n    Fetches all models defined in the application.\n     @private\n    @method getModelTypes\n    @return {Array} Array of model types.\n  */\n  getModelTypes() {\n    let containerDebugAdapter = this.get('containerDebugAdapter');\n    let types;\n\n    if (containerDebugAdapter.canCatalogEntriesByType('model')) {\n      types = containerDebugAdapter.catalogEntriesByType('model');\n    } else {\n      types = this._getObjectsOnNamespaces();\n    } // New adapters return strings instead of classes.\n\n\n    types = emberA(types).map(name => {\n      return {\n        klass: this._nameToClass(name),\n        name\n      };\n    });\n    types = emberA(types).filter(type => this.detect(type.klass));\n    return emberA(types);\n  },\n\n  /**\n    Loops over all namespaces and all objects\n    attached to them.\n     @private\n    @method _getObjectsOnNamespaces\n    @return {Array} Array of model type strings.\n  */\n  _getObjectsOnNamespaces() {\n    let namespaces = emberA(Namespace.NAMESPACES);\n    let types = emberA();\n    namespaces.forEach(namespace => {\n      for (let key in namespace) {\n        if (!Object.prototype.hasOwnProperty.call(namespace, key)) {\n          continue;\n        } // Even though we will filter again in `getModelTypes`,\n        // we should not call `lookupFactory` on non-models\n\n\n        if (!this.detect(namespace[key])) {\n          continue;\n        }\n\n        let name = dasherize(key);\n        types.push(name);\n      }\n    });\n    return types;\n  },\n\n  /**\n    Fetches all loaded records for a given type.\n     @public\n    @method getRecords\n    @return {Array} An array of records.\n     This array will be observed for changes,\n     so it should update when new records are added/removed.\n  */\n  getRecords() {\n    return emberA();\n  },\n\n  /**\n    Wraps a record and observers changes to it.\n     @private\n    @method wrapRecord\n    @param {Object} record The record instance.\n    @return {Object} The wrapped record. Format:\n    columnValues: {Array}\n    searchKeywords: {Array}\n  */\n  wrapRecord(record) {\n    let recordToSend = {\n      object: record\n    };\n    recordToSend.columnValues = this.getRecordColumnValues(record);\n    recordToSend.searchKeywords = this.getRecordKeywords(record);\n    recordToSend.filterValues = this.getRecordFilterValues(record);\n    recordToSend.color = this.getRecordColor(record);\n    return recordToSend;\n  },\n\n  /**\n    Gets the values for each column.\n     @public\n    @method getRecordColumnValues\n    @return {Object} Keys should match column names defined\n    by the model type.\n  */\n  getRecordColumnValues() {\n    return {};\n  },\n\n  /**\n    Returns keywords to match when searching records.\n     @public\n    @method getRecordKeywords\n    @return {Array} Relevant keywords for search.\n  */\n  getRecordKeywords() {\n    return emberA();\n  },\n\n  /**\n    Returns the values of filters defined by `getFilters`.\n     @public\n    @method getRecordFilterValues\n    @param {Object} record The record instance.\n    @return {Object} The filter values.\n  */\n  getRecordFilterValues() {\n    return {};\n  },\n\n  /**\n    Each record can have a color that represents its state.\n     @public\n    @method getRecordColor\n    @param {Object} record The record instance\n    @return {String} The records color.\n      Possible options: black, red, blue, green.\n  */\n  getRecordColor() {\n    return null;\n  },\n\n  /**\n    Observes all relevant properties and re-sends the wrapped record\n    when a change occurs.\n     @public\n    @method observerRecord\n    @return {Function} The function to call to remove all observers.\n  */\n  observeRecord() {\n    return function () {};\n  }\n\n});","import { templateFactory, PartialDefinitionImpl, EMPTY_BLOCKS, NONE, staticComponent, UNHANDLED, syntaxCompilationContext } from '@glimmer/opcode-compiler';\nexport { templateFactory as template, templateCacheCounters } from '@glimmer/opcode-compiler';\nimport { get, PROPERTY_DID_CHANGE, set, computed, alias, CUSTOM_TAG_FOR, tagForObject, objectAt, tagForProperty, _getProp } from '@ember/-internals/metal';\nimport { getOwner, setOwner } from '@ember/-internals/owner';\nimport { TargetActionSupport, FrameworkObject, _contentFor, isArray } from '@ember/-internals/runtime';\nimport { enumerableSymbol, symbol, HAS_NATIVE_PROXY, getDebugName, guidFor, isProxy, HAS_NATIVE_SYMBOL, isEmberArray, isObject, uuid } from '@ember/-internals/utils';\nimport { ActionSupport, ChildViewsSupport, ClassNamesSupport, CoreView, getViewElement, ViewMixin, ViewStateSupport, TextSupport, isSimpleClick, clearElementView, clearViewElement, MUTABLE_CELL, addChildView, setElementView, setViewElement, constructStyleDeprecationMessage, ActionManager, getViewId } from '@ember/-internals/views';\nimport { assert, deprecate, warn, debugFreeze } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { isUpdatableRef, updateRef, valueForRef, createComputeRef, UNDEFINED_REFERENCE, createConstRef, childRefFor, childRefFromParts, createPrimitiveRef, createUnboundRef, isInvokableRef, isConstRef, NULL_REFERENCE, createInvokableRef, createReadOnlyRef, createDebugAliasRef } from '@glimmer/reference';\nimport { normalizeProperty, associateDestroyableChild, buildCapabilities, EMPTY_ARGS, EMPTY_NAMED, EMPTY_POSITIONAL, getHelperManager, isDestroyed, isDestroying, isInternalHelper, setHelperManager, BaseInternalComponentManager, registerDestructor, reifyPositional, reifyNamed, reifyArgs, createCapturedArgs, curry, getComponentManager, getComponentTemplate, getDynamicVar, getModifierManager, isInternalComponentManager, isInternalModifierManager, clientBuilder, destroy, DOMChanges, DOMTreeConstruction, inTransaction, renderMain, runtimeContext, setComponentManager, rehydrationBuilder } from '@glimmer/runtime';\nexport { setComponentTemplate, getComponentTemplate, DOMChanges, DOMTreeConstruction, isSerializationFirstNode } from '@glimmer/runtime';\nimport { createTag, dirtyTag, track, createCache, getValue, consumeTag, deprecateMutationsInTrackingTransaction, beginUntrackFrame, endUntrackFrame, valueForTag, logTrackingStack, beginTrackFrame, endTrackFrame, validateTag, CONSTANT_TAG, isTracking, tagFor, setTrackingTransactionEnv, createUpdatableTag, untrack, CURRENT_TAG } from '@glimmer/validator';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { getEngineParent } from '@ember/engine';\nimport { flaggedInstrument, _instrumentStart } from '@ember/instrumentation';\nimport { inject } from '@ember/service';\nimport { join, backburner, schedule, getCurrentRunLoop } from '@ember/runloop';\nimport { _WeakSet, unwrapTemplate, EMPTY_ARRAY, dict, unwrapHandle } from '@glimmer/util';\nimport { ENV } from '@ember/-internals/environment';\nimport { assign } from '@ember/polyfills';\nimport { EMBER_COMPONENT_IS_VISIBLE, PARTIALS, COMPONENT_MANAGER_STRING_LOOKUP } from '@ember/deprecated-features';\nimport { dasherize, loc } from '@ember/string';\nimport { privatize, getFactoryFor } from '@ember/-internals/container';\nimport { NodeDOMTreeConstruction, serializeBuilder } from '@glimmer/node';\nexport { NodeDOMTreeConstruction } from '@glimmer/node';\nimport setGlobalContext, { toBool } from '@glimmer/global-context';\nimport { QueryParams, generateControllerFactory } from '@ember/-internals/routing';\nimport { isTemplateOnlyComponent } from '@ember/component/template-only';\nimport EmberError from '@ember/error';\nimport { artifacts } from '@glimmer/program';\nimport RSVP from 'rsvp';\n\nvar RootTemplate = templateFactory({\n  \"id\": \"gxklthW0\",\n  \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[30,[36,0],[[32,0]],null]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"component\\\"]}\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/root.hbs\"\n});\n\nconst ARGS = enumerableSymbol('ARGS');\nconst HAS_BLOCK = enumerableSymbol('HAS_BLOCK');\nconst DIRTY_TAG = symbol('DIRTY_TAG');\nconst IS_DISPATCHING_ATTRS = symbol('IS_DISPATCHING_ATTRS');\nconst BOUNDS = symbol('BOUNDS');\n/**\n@module @ember/component\n*/\n\n/**\n  A component is an isolated piece of UI, represented by a template and an\n  optional class. When a component has a class, its template's `this` value\n  is an instance of the component class.\n\n  ## Template-only Components\n\n  The simplest way to create a component is to create a template file in\n  `app/templates/components`. For example, if you name a template\n  `app/templates/components/person-profile.hbs`:\n\n  ```app/templates/components/person-profile.hbs\n  <h1>{{@person.name}}</h1>\n  <img src={{@person.avatar}}>\n  <p class='signature'>{{@person.signature}}</p>\n  ```\n\n  You will be able to use `<PersonProfile />` to invoke this component elsewhere\n  in your application:\n\n  ```app/templates/application.hbs\n  <PersonProfile @person={{this.currentUser}} />\n  ```\n\n  Note that component names are capitalized here in order to distinguish them\n  from regular HTML elements, but they are dasherized in the file system.\n\n  While the angle bracket invocation form is generally preferred, it is also\n  possible to invoke the same component with the `{{person-profile}}` syntax:\n\n  ```app/templates/application.hbs\n  {{person-profile person=this.currentUser}}\n  ```\n\n  Note that with this syntax, you use dashes in the component name and\n  arguments are passed without the `@` sign.\n\n  In both cases, Ember will render the content of the component template we\n  created above. The end result will be something like this:\n\n  ```html\n  <h1>Tomster</h1>\n  <img src=\"https://emberjs.com/tomster.jpg\">\n  <p class='signature'>Out of office this week</p>\n  ```\n\n  ## File System Nesting\n\n  Components can be nested inside sub-folders for logical groupping. For\n  example, if we placed our template in\n  `app/templates/components/person/short-profile.hbs`, we can invoke it as\n  `<Person::ShortProfile />`:\n\n  ```app/templates/application.hbs\n  <Person::ShortProfile @person={{this.currentUser}} />\n  ```\n\n  Or equivalently, `{{person/short-profile}}`:\n\n  ```app/templates/application.hbs\n  {{person/short-profile person=this.currentUser}}\n  ```\n\n  ## Yielding Contents\n\n  You can use `yield` inside a template to include the **contents** of any block\n  attached to the component. The block will be executed in its original context:\n\n  ```handlebars\n  <PersonProfile @person={{this.currentUser}}>\n    <p>Admin mode</p>\n    {{! Executed in the current context. }}\n  </PersonProfile>\n  ```\n\n  or\n\n  ```handlebars\n  {{#person-profile person=this.currentUser}}\n    <p>Admin mode</p>\n    {{! Executed in the current context. }}\n  {{/person-profile}}\n  ```\n\n  ```app/templates/components/person-profile.hbs\n  <h1>{{@person.name}}</h1>\n  {{yield}}\n  ```\n\n  ## Customizing Components With JavaScript\n\n  If you want to customize the component in order to handle events, transform\n  arguments or maintain internal state, you implement a subclass of `Component`.\n\n  One example is to add computed properties to your component:\n\n  ```app/components/person-profile.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    displayName: computed('person.title', 'person.firstName', 'person.lastName', function() {\n      let { title, firstName, lastName } = this;\n\n      if (title) {\n        return `${title} ${lastName}`;\n      } else {\n        return `${firstName} ${lastName}`;\n      }\n    })\n  });\n  ```\n\n  And then use it in the component's template:\n\n  ```app/templates/components/person-profile.hbs\n  <h1>{{this.displayName}}</h1>\n  {{yield}}\n  ```\n\n  ## Customizing a Component's HTML Element in JavaScript\n\n  ### HTML Tag\n\n  The default HTML tag name used for a component's HTML representation is `div`.\n  This can be customized by setting the `tagName` property.\n\n  Consider the following component class:\n\n  ```app/components/emphasized-paragraph.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'em'\n  });\n  ```\n\n  When invoked, this component would produce output that looks something like\n  this:\n\n  ```html\n  <em id=\"ember1\" class=\"ember-view\"></em>\n  ```\n\n  ### HTML `class` Attribute\n\n  The HTML `class` attribute of a component's tag can be set by providing a\n  `classNames` property that is set to an array of strings:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    classNames: ['my-class', 'my-other-class']\n  });\n  ```\n\n  Invoking this component will produce output that looks like this:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view my-class my-other-class\"></div>\n  ```\n\n  `class` attribute values can also be set by providing a `classNameBindings`\n  property set to an array of properties names for the component. The return\n  value of these properties will be added as part of the value for the\n  components's `class` attribute. These properties can be computed properties:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n  import { computed } from '@ember/object';\n\n  export default Component.extend({\n    classNames: ['my-class', 'my-other-class'],\n    classNameBindings: ['propertyA', 'propertyB'],\n\n    propertyA: 'from-a',\n    propertyB: computed(function() {\n      if (someLogic) { return 'from-b'; }\n    })\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view my-class my-other-class from-a from-b\"></div>\n  ```\n\n  Note that `classNames` and `classNameBindings` is in addition to the `class`\n  attribute passed with the angle bracket invocation syntax. Therefore, if this\n  component was invoked like so:\n\n  ```handlebars\n  <MyWidget class=\"from-invocation\" />\n  ```\n\n  The resulting HTML will look similar to this:\n\n  ```html\n  <div id=\"ember1\" class=\"from-invocation ember-view my-class my-other-class from-a from-b\"></div>\n  ```\n\n  If the value of a class name binding returns a boolean the property name\n  itself will be used as the class name if the property is true. The class name\n  will not be added if the value is `false` or `undefined`.\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    classNameBindings: ['hovered'],\n\n    hovered: true\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view hovered\"></div>\n  ```\n\n  ### Custom Class Names for Boolean Values\n\n  When using boolean class name bindings you can supply a string value other\n  than the property name for use as the `class` HTML attribute by appending the\n  preferred value after a \":\" character when defining the binding:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    classNameBindings: ['awesome:so-very-cool'],\n\n    awesome: true\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view so-very-cool\"></div>\n  ```\n\n  Boolean value class name bindings whose property names are in a\n  camelCase-style format will be converted to a dasherized format:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    classNameBindings: ['isUrgent'],\n\n    isUrgent: true\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view is-urgent\"></div>\n  ```\n\n  Class name bindings can also refer to object values that are found by\n  traversing a path relative to the component itself:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n  import EmberObject from '@ember/object';\n\n  export default Component.extend({\n    classNameBindings: ['messages.empty'],\n\n    messages: EmberObject.create({\n      empty: true\n    })\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view empty\"></div>\n  ```\n\n  If you want to add a class name for a property which evaluates to true and\n  and a different class name if it evaluates to false, you can pass a binding\n  like this:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    classNameBindings: ['isEnabled:enabled:disabled'],\n    isEnabled: true\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view enabled\"></div>\n  ```\n\n  When isEnabled is `false`, the resulting HTML representation looks like this:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view disabled\"></div>\n  ```\n\n  This syntax offers the convenience to add a class if a property is `false`:\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  // Applies no class when isEnabled is true and class 'disabled' when isEnabled is false\n  export default Component.extend({\n    classNameBindings: ['isEnabled::disabled'],\n    isEnabled: true\n  });\n  ```\n\n  Invoking this component when the `isEnabled` property is true will produce\n  HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view\"></div>\n  ```\n\n  Invoking it when the `isEnabled` property on the component is `false` will\n  produce HTML that looks like:\n\n  ```html\n  <div id=\"ember1\" class=\"ember-view disabled\"></div>\n  ```\n\n  Updates to the value of a class name binding will result in automatic update\n  of the  HTML `class` attribute in the component's rendered HTML\n  representation. If the value becomes `false` or `undefined` the class name\n  will be removed.\n\n  Both `classNames` and `classNameBindings` are concatenated properties. See\n  [EmberObject](/ember/release/classes/EmberObject) documentation for more\n  information about concatenated properties.\n\n  ### Other HTML Attributes\n\n  The HTML attribute section of a component's tag can be set by providing an\n  `attributeBindings` property set to an array of property names on the component.\n  The return value of these properties will be used as the value of the component's\n  HTML associated attribute:\n\n  ```app/components/my-anchor.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'a',\n    attributeBindings: ['href'],\n\n    href: 'http://google.com'\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n  ```\n\n  One property can be mapped on to another by placing a \":\" between\n  the source property and the destination property:\n\n  ```app/components/my-anchor.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'a',\n    attributeBindings: ['url:href'],\n\n    url: 'http://google.com'\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <a id=\"ember1\" class=\"ember-view\" href=\"http://google.com\"></a>\n  ```\n\n  HTML attributes passed with angle bracket invocations will take precedence\n  over those specified in `attributeBindings`. Therefore, if this component was\n  invoked like so:\n\n  ```handlebars\n  <MyAnchor href=\"http://bing.com\" @url=\"http://google.com\" />\n  ```\n\n  The resulting HTML will looks like this:\n\n  ```html\n  <a id=\"ember1\" class=\"ember-view\" href=\"http://bing.com\"></a>\n  ```\n\n  Note that the `href` attribute is ultimately set to `http://bing.com`,\n  despite it having attribute binidng to the `url` property, which was\n  set to `http://google.com`.\n\n  Namespaced attributes (e.g. `xlink:href`) are supported, but have to be\n  mapped, since `:` is not a valid character for properties in Javascript:\n\n  ```app/components/my-use.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'use',\n    attributeBindings: ['xlinkHref:xlink:href'],\n\n    xlinkHref: '#triangle'\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <use xlink:href=\"#triangle\"></use>\n  ```\n\n  If the value of a property monitored by `attributeBindings` is a boolean, the\n  attribute will be present or absent depending on the value:\n\n  ```app/components/my-text-input.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'input',\n    attributeBindings: ['disabled'],\n\n    disabled: false\n  });\n  ```\n\n  Invoking this component will produce HTML that looks like:\n\n  ```html\n  <input id=\"ember1\" class=\"ember-view\" />\n  ```\n\n  `attributeBindings` can refer to computed properties:\n\n  ```app/components/my-text-input.js\n  import Component from '@ember/component';\n  import { computed } from '@ember/object';\n\n  export default Component.extend({\n    tagName: 'input',\n    attributeBindings: ['disabled'],\n\n    disabled: computed(function() {\n      if (someLogic) {\n        return true;\n      } else {\n        return false;\n      }\n    })\n  });\n  ```\n\n  To prevent setting an attribute altogether, use `null` or `undefined` as the\n  value of the property used in `attributeBindings`:\n\n  ```app/components/my-text-input.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    tagName: 'form',\n    attributeBindings: ['novalidate'],\n    novalidate: null\n  });\n  ```\n\n  Updates to the property of an attribute binding will result in automatic\n  update of the  HTML attribute in the component's HTML output.\n\n  `attributeBindings` is a concatenated property. See\n  [EmberObject](/ember/release/classes/EmberObject) documentation for more\n  information about concatenated properties.\n\n  ## Layouts\n\n  The `layout` property can be used to dynamically specify a template associated\n  with a component class, instead of relying on Ember to link together a\n  component class and a template based on file names.\n\n  In general, applications should not use this feature, but it's commonly used\n  in addons for historical reasons.\n\n  The `layout` property should be set to the default export of a template\n  module, which is the name of a template file without the `.hbs` extension.\n\n  ```app/templates/components/person-profile.hbs\n  <h1>Person's Title</h1>\n  <div class='details'>{{yield}}</div>\n  ```\n\n  ```app/components/person-profile.js\n    import Component from '@ember/component';\n    import layout from '../templates/components/person-profile';\n\n    export default Component.extend({\n      layout\n    });\n  ```\n\n  If you invoke the component:\n\n  ```handlebars\n  <PersonProfile>\n    <h2>Chief Basket Weaver</h2>\n    <h3>Fisherman Industries</h3>\n  </PersonProfile>\n  ```\n\n  or\n\n  ```handlebars\n  {{#person-profile}}\n    <h2>Chief Basket Weaver</h2>\n    <h3>Fisherman Industries</h3>\n  {{/person-profile}}\n  ```\n\n  It will result in the following HTML output:\n\n  ```html\n  <h1>Person's Title</h1>\n    <div class=\"details\">\n    <h2>Chief Basket Weaver</h2>\n    <h3>Fisherman Industries</h3>\n  </div>\n  ```\n\n  ## Handling Browser Events\n\n  Components can respond to user-initiated events in one of three ways: passing\n  actions with angle bracket invocation, adding event handler methods to the\n  component's class, or adding actions to the component's template.\n\n  ### Passing Actions With Angle Bracket Invocation\n\n  For one-off events specific to particular instance of a component, it is possible\n  to pass actions to the component's element using angle bracket invocation syntax.\n\n  ```handlebars\n  <MyWidget {{action 'firstWidgetClicked'}} />\n\n  <MyWidget {{action 'secondWidgetClicked'}} />\n  ```\n\n  In this case, when the first component is clicked on, Ember will invoke the\n  `firstWidgetClicked` action. When the second component is clicked on, Ember\n  will invoke the `secondWidgetClicked` action instead.\n\n  Besides `{{action}}`, it is also possible to pass any arbitrary element modifiers\n  using the angle bracket invocation syntax.\n\n  ### Event Handler Methods\n\n  Components can also respond to user-initiated events by implementing a method\n  that matches the event name. This approach is appropriate when the same event\n  should be handled by all instances of the same component.\n\n  An event object will be passed as the argument to the event handler method.\n\n  ```app/components/my-widget.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    click(event) {\n      // `event.target` is either the component's element or one of its children\n      let tag = event.target.tagName.toLowerCase();\n      console.log('clicked on a `<${tag}>` HTML element!');\n    }\n  });\n  ```\n\n  In this example, whenever the user clicked anywhere inside the component, it\n  will log a message to the console.\n\n  It is possible to handle event types other than `click` by implementing the\n  following event handler methods. In addition, custom events can be registered\n  by using `Application.customEvents`.\n\n  Touch events:\n\n  * `touchStart`\n  * `touchMove`\n  * `touchEnd`\n  * `touchCancel`\n\n  Keyboard events:\n\n  * `keyDown`\n  * `keyUp`\n  * `keyPress`\n\n  Mouse events:\n\n  * `mouseDown`\n  * `mouseUp`\n  * `contextMenu`\n  * `click`\n  * `doubleClick`\n  * `focusIn`\n  * `focusOut`\n\n  Form events:\n\n  * `submit`\n  * `change`\n  * `focusIn`\n  * `focusOut`\n  * `input`\n\n  Drag and drop events:\n\n  * `dragStart`\n  * `drag`\n  * `dragEnter`\n  * `dragLeave`\n  * `dragOver`\n  * `dragEnd`\n  * `drop`\n\n  ### `{{action}}` Helper\n\n  Instead of handling all events of a particular type anywhere inside the\n  component's element, you may instead want to limit it to a particular\n  element in the component's template. In this case, it would be more\n  convenient to implement an action instead.\n\n  For example, you could implement the action `hello` for the `person-profile`\n  component:\n\n  ```app/components/person-profile.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    actions: {\n      hello(name) {\n        console.log(\"Hello\", name);\n      }\n    }\n  });\n  ```\n\n  And then use it in the component's template:\n\n  ```app/templates/components/person-profile.hbs\n  <h1>{{@person.name}}</h1>\n\n  <button {{action 'hello' @person.name}}>\n    Say Hello to {{@person.name}}\n  </button>\n  ```\n\n  When the user clicks the button, Ember will invoke the `hello` action,\n  passing in the current value of `@person.name` as an argument.\n\n  See [Ember.Templates.helpers.action](/ember/release/classes/Ember.Templates.helpers/methods/action?anchor=action).\n\n  @class Component\n  @extends Ember.CoreView\n  @uses Ember.TargetActionSupport\n  @uses Ember.ClassNamesSupport\n  @uses Ember.ActionSupport\n  @uses Ember.ViewMixin\n  @uses Ember.ViewStateSupport\n  @public\n*/\n\nconst Component = CoreView.extend(ChildViewsSupport, ViewStateSupport, ClassNamesSupport, TargetActionSupport, ActionSupport, ViewMixin, {\n  isComponent: true,\n\n  init() {\n    this._super(...arguments);\n\n    this[IS_DISPATCHING_ATTRS] = false;\n    this[DIRTY_TAG] = createTag();\n    this[BOUNDS] = null;\n\n    if (DEBUG && this.renderer._destinedForDOM && this.tagName === '') {\n      let eventNames = [];\n      let eventDispatcher = getOwner(this).lookup('event_dispatcher:main');\n      let events = eventDispatcher && eventDispatcher._finalEvents || {}; // tslint:disable-next-line:forin\n\n      for (let key in events) {\n        let methodName = events[key];\n\n        if (typeof this[methodName] === 'function') {\n          eventNames.push(methodName);\n        }\n      } // If in a tagless component, assert that no event handlers are defined\n\n\n      assert( // tslint:disable-next-line:max-line-length\n      `You can not define \\`${eventNames}\\` function(s) to handle DOM event in the \\`${this}\\` tagless component since it doesn't have any DOM element.`, !eventNames.length);\n    }\n\n    deprecate(`${this}: Using \\`mouseEnter\\` event handler methods in components has been deprecated.`, this.mouseEnter === undefined, {\n      id: 'ember-views.event-dispatcher.mouseenter-leave-move',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_component-mouseenter-leave-move',\n      for: 'ember-source',\n      since: {\n        enabled: '3.13.0-beta.1'\n      }\n    });\n    deprecate(`${this}: Using \\`mouseLeave\\` event handler methods in components has been deprecated.`, this.mouseLeave === undefined, {\n      id: 'ember-views.event-dispatcher.mouseenter-leave-move',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_component-mouseenter-leave-move',\n      for: 'ember-source',\n      since: {\n        enabled: '3.13.0-beta.1'\n      }\n    });\n    deprecate(`${this}: Using \\`mouseMove\\` event handler methods in components has been deprecated.`, this.mouseMove === undefined, {\n      id: 'ember-views.event-dispatcher.mouseenter-leave-move',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_component-mouseenter-leave-move',\n      for: 'ember-source',\n      since: {\n        enabled: '3.13.0-beta.1'\n      }\n    });\n  },\n\n  rerender() {\n    dirtyTag(this[DIRTY_TAG]);\n\n    this._super();\n  },\n\n  [PROPERTY_DID_CHANGE](key, value) {\n    if (this[IS_DISPATCHING_ATTRS]) {\n      return;\n    }\n\n    let args = this[ARGS];\n    let reference = args !== undefined ? args[key] : undefined;\n\n    if (reference !== undefined && isUpdatableRef(reference)) {\n      updateRef(reference, arguments.length === 2 ? value : get(this, key));\n    }\n  },\n\n  getAttr(key) {\n    // TODO Intimate API should be deprecated\n    return this.get(key);\n  },\n\n  /**\n    Normally, Ember's component model is \"write-only\". The component takes a\n    bunch of attributes that it got passed in, and uses them to render its\n    template.\n     One nice thing about this model is that if you try to set a value to the\n    same thing as last time, Ember (through HTMLBars) will avoid doing any\n    work on the DOM.\n     This is not just a performance optimization. If an attribute has not\n    changed, it is important not to clobber the element's \"hidden state\".\n    For example, if you set an input's `value` to the same value as before,\n    it will clobber selection state and cursor position. In other words,\n    setting an attribute is not **always** idempotent.\n     This method provides a way to read an element's attribute and also\n    update the last value Ember knows about at the same time. This makes\n    setting an attribute idempotent.\n     In particular, what this means is that if you get an `<input>` element's\n    `value` attribute and then re-render the template with the same value,\n    it will avoid clobbering the cursor and selection position.\n    Since most attribute sets are idempotent in the browser, you typically\n    can get away with reading attributes using jQuery, but the most reliable\n    way to do so is through this method.\n    @method readDOMAttr\n     @param {String} name the name of the attribute\n    @return String\n    @public\n   */\n  readDOMAttr(name) {\n    // TODO revisit this\n    let _element = getViewElement(this);\n\n    assert(`Cannot call \\`readDOMAttr\\` on ${this} which does not have an element`, _element !== null);\n    let element = _element;\n    let isSVG = element.namespaceURI === \"http://www.w3.org/2000/svg\"\n    /* SVG */\n    ;\n    let {\n      type,\n      normalized\n    } = normalizeProperty(element, name);\n\n    if (isSVG || type === 'attr') {\n      return element.getAttribute(normalized);\n    }\n\n    return element[normalized];\n  },\n\n  /**\n   The WAI-ARIA role of the control represented by this view. For example, a\n   button may have a role of type 'button', or a pane may have a role of\n   type 'alertdialog'. This property is used by assistive software to help\n   visually challenged users navigate rich web applications.\n    The full list of valid WAI-ARIA roles is available at:\n   [https://www.w3.org/TR/wai-aria/#roles_categorization](https://www.w3.org/TR/wai-aria/#roles_categorization)\n    @property ariaRole\n   @type String\n   @default null\n   @public\n   */\n\n  /**\n   Enables components to take a list of parameters as arguments.\n   For example, a component that takes two parameters with the names\n   `name` and `age`:\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    let MyComponent = Component.extend();\n    MyComponent.reopenClass({\n     positionalParams: ['name', 'age']\n   });\n    export default MyComponent;\n   ```\n    It can then be invoked like this:\n    ```hbs\n   {{my-component \"John\" 38}}\n   ```\n    The parameters can be referred to just like named parameters:\n    ```hbs\n   Name: {{name}}, Age: {{age}}.\n   ```\n    Using a string instead of an array allows for an arbitrary number of\n   parameters:\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    let MyComponent = Component.extend();\n    MyComponent.reopenClass({\n     positionalParams: 'names'\n   });\n    export default MyComponent;\n   ```\n    It can then be invoked like this:\n    ```hbs\n   {{my-component \"John\" \"Michael\" \"Scott\"}}\n   ```\n   The parameters can then be referred to by enumerating over the list:\n    ```hbs\n   {{#each names as |name|}}{{name}}{{/each}}\n   ```\n    @static\n   @public\n   @property positionalParams\n   @since 1.13.0\n   */\n\n  /**\n   Called when the attributes passed into the component have been updated.\n   Called both during the initial render of a container and during a rerender.\n   Can be used in place of an observer; code placed here will be executed\n   every time any attribute updates.\n   @method didReceiveAttrs\n   @public\n   @since 1.13.0\n   */\n  didReceiveAttrs() {},\n\n  /**\n   Called when the attributes passed into the component have been updated.\n   Called both during the initial render of a container and during a rerender.\n   Can be used in place of an observer; code placed here will be executed\n   every time any attribute updates.\n   @event didReceiveAttrs\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called after a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @method didRender\n   @public\n   @since 1.13.0\n   */\n  didRender() {},\n\n  /**\n   Called after a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @event didRender\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called before a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @method willRender\n   @public\n   @since 1.13.0\n   */\n  willRender() {},\n\n  /**\n   Called before a component has been rendered, both on initial render and\n   in subsequent rerenders.\n   @event willRender\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the attributes passed into the component have been changed.\n   Called only during a rerender, not during an initial render.\n   @method didUpdateAttrs\n   @public\n   @since 1.13.0\n   */\n  didUpdateAttrs() {},\n\n  /**\n   Called when the attributes passed into the component have been changed.\n   Called only during a rerender, not during an initial render.\n   @event didUpdateAttrs\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the component is about to update and rerender itself.\n   Called only during a rerender, not during an initial render.\n   @method willUpdate\n   @public\n   @since 1.13.0\n   */\n  willUpdate() {},\n\n  /**\n   Called when the component is about to update and rerender itself.\n   Called only during a rerender, not during an initial render.\n   @event willUpdate\n   @public\n   @since 1.13.0\n   */\n\n  /**\n   Called when the component has updated and rerendered itself.\n   Called only during a rerender, not during an initial render.\n   @method didUpdate\n   @public\n   @since 1.13.0\n   */\n  didUpdate() {}\n\n});\n\nComponent.toString = () => '@ember/component';\n\nComponent.reopenClass({\n  isComponentFactory: true,\n  positionalParams: []\n});\n\nvar layout = templateFactory({\n  \"id\": \"3IKjaxWN\",\n  \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/empty.hbs\"\n});\n\n/**\n@module @ember/component\n*/\n\n/**\n  The internal class used to create text inputs when the `{{input}}`\n  helper is used with `type` of `checkbox`.\n\n  See [Ember.Templates.helpers.input](/ember/release/classes/Ember.Templates.helpers/methods/input?anchor=input)  for usage details.\n\n  ## Direct manipulation of `checked`\n\n  The `checked` attribute of an `Checkbox` object should always be set\n  through the Ember object or by interacting with its rendered element\n  representation via the mouse, keyboard, or touch. Updating the value of the\n  checkbox via jQuery will result in the checked value of the object and its\n  element losing synchronization.\n\n  ## Layout and LayoutName properties\n\n  Because HTML `input` elements are self closing `layout` and `layoutName`\n  properties will not be applied.\n\n  @class Checkbox\n  @extends Component\n  @public\n*/\n\nconst Checkbox = Component.extend({\n  layout,\n\n  /**\n    By default, this component will add the `ember-checkbox` class to the component's element.\n       @property classNames\n    @type Array | String\n    @default ['ember-checkbox']\n    @public\n   */\n  classNames: ['ember-checkbox'],\n  tagName: 'input',\n\n  /**\n    By default this component will forward a number of arguments to attributes on the the\n    component's element:\n       * indeterminate\n    * disabled\n    * tabindex\n    * name\n    * autofocus\n    * required\n    * form\n       When invoked with curly braces, this is the exhaustive list of HTML attributes you can\n    customize (i.e. `{{input type=\"checkbox\" disabled=true}}`).\n       When invoked with angle bracket invocation, this list is irrelevant, because you can use HTML\n    attribute syntax to customize the element (i.e.\n    `<Input @type=\"checkbox\" disabled data-custom=\"custom value\" />`). However, `@type` and\n    `@checked` must be passed as named arguments, not attributes.\n       @property attributeBindings\n    @type Array | String\n    @default ['type', 'checked', 'indeterminate', 'disabled', 'tabindex', 'name', 'autofocus', 'required', 'form']\n    @public\n  */\n  attributeBindings: ['type', 'checked', 'indeterminate', 'disabled', 'tabindex', 'name', 'autofocus', 'required', 'form'],\n\n  /**\n    Sets the `type` attribute of the `Checkbox`'s element\n       @property disabled\n    @default false\n    @private\n   */\n  type: 'checkbox',\n\n  /**\n    Sets the `disabled` attribute of the `Checkbox`'s element\n       @property disabled\n    @default false\n    @public\n   */\n  disabled: false,\n\n  /**\n    Corresponds to the `indeterminate` property of the `Checkbox`'s element\n       @property disabled\n    @default false\n    @public\n   */\n  indeterminate: false,\n\n  /**\n    Whenever the checkbox is inserted into the DOM, perform initialization steps, which include\n    setting the indeterminate property if needed.\n       If this method is overridden, `super` must be called.\n       @method\n    @public\n   */\n  didInsertElement() {\n    this._super(...arguments);\n\n    this.element.indeterminate = Boolean(this.indeterminate);\n  },\n\n  /**\n    Whenever the `change` event is fired on the checkbox, update its `checked` property to reflect\n    whether the checkbox is checked.\n       If this method is overridden, `super` must be called.\n       @method\n    @public\n   */\n  change() {\n    set(this, 'checked', this.element.checked);\n  }\n\n});\n\nif (DEBUG) {\n  const UNSET = {};\n  Checkbox.reopen({\n    value: UNSET,\n\n    didReceiveAttrs() {\n      this._super();\n\n      assert(\"`<Input @type='checkbox' @value={{...}} />` is not supported; \" + \"please use `<Input @type='checkbox' @checked={{...}} />` instead.\", !(this.type === 'checkbox' && this.value !== UNSET));\n    }\n\n  });\n}\n\nCheckbox.toString = () => '@ember/component/checkbox';\n\n/**\n@module @ember/component\n*/\nconst inputTypes = hasDOM ? Object.create(null) : null;\n\nfunction canSetTypeOfInput(type) {\n  // if running in outside of a browser always return\n  // the original type\n  if (!hasDOM) {\n    return Boolean(type);\n  }\n\n  if (type in inputTypes) {\n    return inputTypes[type];\n  }\n\n  let inputTypeTestElement = document.createElement('input');\n\n  try {\n    inputTypeTestElement.type = type;\n  } catch (e) {// ignored\n  }\n\n  return inputTypes[type] = inputTypeTestElement.type === type;\n}\n/**\n  The internal class used to create text inputs when the `Input` component is used with `type` of `text`.\n\n  See [Ember.Templates.components.Input](/ember/release/classes/Ember.Templates.components/methods/Input?anchor=Input) for usage details.\n\n  ## Layout and LayoutName properties\n\n  Because HTML `input` elements are self closing `layout` and `layoutName`\n  properties will not be applied.\n\n  @class TextField\n  @extends Component\n  @uses Ember.TextSupport\n  @public\n*/\n\n\nconst TextField = Component.extend(TextSupport, {\n  layout,\n\n  /**\n    By default, this component will add the `ember-text-field` class to the component's element.\n       @property classNames\n    @type Array | String\n    @default ['ember-text-field']\n    @public\n   */\n  classNames: ['ember-text-field'],\n  tagName: 'input',\n\n  /**\n    By default this component will forward a number of arguments to attributes on the the\n    component's element:\n       * accept\n    * autocomplete\n    * autosave\n    * dir\n    * formaction\n    * formenctype\n    * formmethod\n    * formnovalidate\n    * formtarget\n    * height\n    * inputmode\n    * lang\n    * list\n    * type\n    * max\n    * min\n    * multiple\n    * name\n    * pattern\n    * size\n    * step\n    * value\n    * width\n       When invoked with `{{input type=\"text\"}}`, you can only customize these attributes. When invoked\n    with `<Input @type=\"text\" />`, you can just use HTML attributes directly.\n       @property attributeBindings\n    @type Array | String\n    @default ['accept', 'autocomplete', 'autosave', 'dir', 'formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget', 'height', 'inputmode', 'lang', 'list', 'type', 'max', 'min', 'multiple', 'name', 'pattern', 'size', 'step', 'value', 'width']\n    @public\n  */\n  attributeBindings: ['accept', 'autocomplete', 'autosave', 'dir', 'formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget', 'height', 'inputmode', 'lang', 'list', 'type', 'max', 'min', 'multiple', 'name', 'pattern', 'size', 'step', 'value', 'width'],\n\n  /**\n    As the user inputs text, this property is updated to reflect the `value` property of the HTML\n    element.\n       @property value\n    @type String\n    @default \"\"\n    @public\n  */\n  value: '',\n\n  /**\n    The `type` attribute of the input element.\n       @property type\n    @type String\n    @default \"text\"\n    @public\n  */\n  type: computed({\n    get() {\n      return 'text';\n    },\n\n    set(_key, value) {\n      let type = 'text';\n\n      if (canSetTypeOfInput(value)) {\n        type = value;\n      }\n\n      return type;\n    }\n\n  }),\n\n  /**\n    The `size` of the text field in characters.\n       @property size\n    @type String\n    @default null\n    @public\n  */\n  size: null,\n\n  /**\n    The `pattern` attribute of input element.\n       @property pattern\n    @type String\n    @default null\n    @public\n  */\n  pattern: null,\n\n  /**\n    The `min` attribute of input element used with `type=\"number\"` or `type=\"range\"`.\n       @property min\n    @type String\n    @default null\n    @since 1.4.0\n    @public\n  */\n  min: null,\n\n  /**\n    The `max` attribute of input element used with `type=\"number\"` or `type=\"range\"`.\n       @property max\n    @type String\n    @default null\n    @since 1.4.0\n    @public\n  */\n  max: null\n});\n\nTextField.toString = () => '@ember/component/text-field';\n\n/**\n@module @ember/component\n*/\n/**\n  The `Textarea` component inserts a new instance of `<textarea>` tag into the template.\n\n  The `@value` argument provides the content of the `<textarea>`.\n\n  This template:\n\n  ```handlebars\n  <Textarea @value=\"A bunch of text\" />\n  ```\n\n  Would result in the following HTML:\n\n  ```html\n  <textarea class=\"ember-text-area\">\n    A bunch of text\n  </textarea>\n  ```\n\n  The `@value` argument is two-way bound. If the user types text into the textarea, the `@value`\n  argument is updated. If the `@value` argument is updated, the text in the textarea is updated.\n\n  In the following example, the `writtenWords` property on the component will be updated as the user\n  types 'Lots of text' into the text area of their browser's window.\n\n  ```app/components/word-editor.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class WordEditorComponent extends Component {\n    @tracked writtenWords = \"Lots of text that IS bound\";\n  }\n  ```\n\n  ```handlebars\n  <Textarea @value={{writtenWords}} />\n  ```\n\n  Would result in the following HTML:\n\n  ```html\n  <textarea class=\"ember-text-area\">\n    Lots of text that IS bound\n  </textarea>\n  ```\n\n  If you wanted a one way binding, you could use the `<textarea>` element directly, and use the\n  `value` DOM property and the `input` event.\n\n  ### Actions\n\n  The `Textarea` component takes a number of arguments with callbacks that are invoked in\n  response to user events.\n\n  * `enter`\n  * `insert-newline`\n  * `escape-press`\n  * `focus-in`\n  * `focus-out`\n  * `key-press`\n\n  These callbacks are passed to `Textarea` like this:\n\n  ```handlebars\n  <Textarea @value={{this.searchWord}} @enter={{this.query}} />\n  ```\n\n  ## Classic Invocation Syntax\n\n  The `Textarea` component can also be invoked using curly braces, just like any other Ember\n  component.\n\n  For example, this is an invocation using angle-bracket notation:\n\n  ```handlebars\n  <Textarea @value={{this.searchWord}} @enter={{this.query}} />\n  ```\n\n  You could accomplish the same thing using classic invocation:\n\n  ```handlebars\n  {{textarea value=this.searchWord enter=this.query}}\n  ```\n\n  The main difference is that angle-bracket invocation supports any HTML attribute using HTML\n  attribute syntax, because attributes and arguments have different syntax when using angle-bracket\n  invocation. Curly brace invocation, on the other hand, only has a single syntax for arguments,\n  and components must manually map attributes onto component arguments.\n\n  When using classic invocation with `{{textarea}}`, only the following attributes are mapped onto\n  arguments:\n\n  * rows\n  * cols\n  * name\n  * selectionEnd\n  * selectionStart\n  * autocomplete\n  * wrap\n  * lang\n  * dir\n  * value\n\n  ## Classic `layout` and `layoutName` properties\n\n  Because HTML `textarea` elements do not contain inner HTML the `layout` and\n  `layoutName` properties will not be applied.\n\n  @method Textarea\n  @for Ember.Templates.components\n  @see {TextArea}\n  @public\n*/\n\n/**\n  See Ember.Templates.components.Textarea.\n\n  @method textarea\n  @for Ember.Templates.helpers\n  @see {Ember.Templates.components.textarea}\n  @public\n*/\n\n/**\n  The internal representation used for `Textarea` invocations.\n\n  @class TextArea\n  @extends Component\n  @see {Ember.Templates.components.Textarea}\n  @uses Ember.TextSupport\n  @public\n*/\n\nconst TextArea = Component.extend(TextSupport, {\n  classNames: ['ember-text-area'],\n  layout,\n  tagName: 'textarea',\n  attributeBindings: ['rows', 'cols', 'name', 'selectionEnd', 'selectionStart', 'autocomplete', 'wrap', 'lang', 'dir', 'value'],\n  rows: null,\n  cols: null\n});\n\nTextArea.toString = () => '@ember/component/text-area';\n\nvar layout$1 = templateFactory({\n  \"id\": \"ddnfgiDJ\",\n  \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[18,1,null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[32,0,[\\\"linkTitle\\\"]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\"]}\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/link-to.hbs\"\n});\n\n/**\n@module ember\n*/\n/**\n  The `LinkTo` component renders a link to the supplied `routeName` passing an optionally\n  supplied model to the route as its `model` context of the route. The block for `LinkTo`\n  becomes the contents of the rendered element:\n\n  ```handlebars\n  <LinkTo @route='photoGallery'>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  This will result in:\n\n  ```html\n  <a href=\"/hamster-photos\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  ### Disabling the `LinkTo` component\n\n  The `LinkTo` component can be disabled by using the `disabled` argument. A disabled link\n  doesn't result in a transition when activated, and adds the `disabled` class to the `<a>`\n  element.\n\n  (The class name to apply to the element can be overridden by using the `disabledClass`\n  argument)\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @disabled={{true}}>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  ### Handling `href`\n\n  `<LinkTo>` will use your application's Router to fill the element's `href` property with a URL\n  that matches the path to the supplied `routeName`.\n\n  ### Handling current route\n\n  The `LinkTo` component will apply a CSS class name of 'active' when the application's current\n  route matches the supplied routeName. For example, if the application's current route is\n  'photoGallery.recent', then the following invocation of `LinkTo`:\n\n  ```handlebars\n  <LinkTo @route='photoGallery.recent'>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  will result in\n\n  ```html\n  <a href=\"/hamster-photos/this-week\" class=\"active\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  The CSS class used for active classes can be customized by passing an `activeClass` argument:\n\n  ```handlebars\n  <LinkTo @route='photoGallery.recent' @activeClass=\"current-url\">\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/this-week\" class=\"current-url\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  ### Keeping a link active for other routes\n\n  If you need a link to be 'active' even when it doesn't match the current route, you can use the\n  `current-when` argument.\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @current-when='photos'>\n    Photo Gallery\n  </LinkTo>\n  ```\n\n  This may be helpful for keeping links active for:\n\n  * non-nested routes that are logically related\n  * some secondary menu approaches\n  * 'top navigation' with 'sub navigation' scenarios\n\n  A link will be active if `current-when` is `true` or the current\n  route is the route this link would transition to.\n\n  To match multiple routes 'space-separate' the routes:\n\n  ```handlebars\n  <LinkTo @route='gallery' @current-when='photos drawings paintings'>\n    Art Gallery\n  </LinkTo>\n  ```\n\n  ### Supplying a model\n\n  An optional `model` argument can be used for routes whose\n  paths contain dynamic segments. This argument will become\n  the model context of the linked route:\n\n  ```javascript\n  Router.map(function() {\n    this.route(\"photoGallery\", {path: \"hamster-photos/:photo_id\"});\n  });\n  ```\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @model={{this.aPhoto}}>\n    {{aPhoto.title}}\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/42\">\n    Tomster\n  </a>\n  ```\n\n  ### Supplying multiple models\n\n  For deep-linking to route paths that contain multiple\n  dynamic segments, the `models` argument can be used.\n\n  As the router transitions through the route path, each\n  supplied model argument will become the context for the\n  route with the dynamic segments:\n\n  ```javascript\n  Router.map(function() {\n    this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" }, function() {\n      this.route(\"comment\", {path: \"comments/:comment_id\"});\n    });\n  });\n  ```\n\n  This argument will become the model context of the linked route:\n\n  ```handlebars\n  <LinkTo @route='photoGallery.comment' @models={{array this.aPhoto this.comment}}>\n    {{comment.body}}\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/42/comments/718\">\n    A+++ would snuggle again.\n  </a>\n  ```\n\n  ### Supplying an explicit dynamic segment value\n\n  If you don't have a model object available to pass to `LinkTo`,\n  an optional string or integer argument can be passed for routes whose\n  paths contain dynamic segments. This argument will become the value\n  of the dynamic segment:\n\n  ```javascript\n  Router.map(function() {\n    this.route(\"photoGallery\", { path: \"hamster-photos/:photo_id\" });\n  });\n  ```\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @model={{aPhotoId}}>\n    {{this.aPhoto.title}}\n  </LinkTo>\n  ```\n\n  ```html\n  <a href=\"/hamster-photos/42\">\n    Tomster\n  </a>\n  ```\n\n  When transitioning into the linked route, the `model` hook will\n  be triggered with parameters including this passed identifier.\n\n  ### Allowing Default Action\n\n  By default the `<LinkTo>` component prevents the default browser action by calling\n  `preventDefault()` to avoid reloading the browser page.\n\n  If you need to trigger a full browser reload pass `@preventDefault={{false}}`:\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @model={{this.aPhotoId}} @preventDefault={{false}}>\n    {{this.aPhotoId.title}}\n  </LinkTo>\n  ```\n\n  ### Supplying a `tagName`\n\n  By default `<LinkTo>` renders an `<a>` element. This can be overridden for a single use of\n  `<LinkTo>` by supplying a `tagName` argument:\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @tagName='li'>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  This produces:\n\n  ```html\n  <li>\n    Great Hamster Photos\n  </li>\n  ```\n\n  In general, this is not recommended. Instead, you can use the `transition-to` helper together\n  with a click event handler on the HTML tag of your choosing.\n\n  ### Supplying query parameters\n\n  If you need to add optional key-value pairs that appear to the right of the ? in a URL,\n  you can use the `query` argument.\n\n  ```handlebars\n  <LinkTo @route='photoGallery' @query={{hash page=1 per_page=20}}>\n    Great Hamster Photos\n  </LinkTo>\n  ```\n\n  This will result in:\n\n  ```html\n  <a href=\"/hamster-photos?page=1&per_page=20\">\n    Great Hamster Photos\n  </a>\n  ```\n\n  @for Ember.Templates.components\n  @method LinkTo\n  @see {LinkComponent}\n  @public\n*/\n\n/**\n  @module @ember/routing\n*/\n\n/**\n  See [Ember.Templates.components.LinkTo](/ember/release/classes/Ember.Templates.components/methods/input?anchor=LinkTo).\n\n  @for Ember.Templates.helpers\n  @method link-to\n  @see {Ember.Templates.components.LinkTo}\n  @public\n**/\n\n/**\n  `LinkComponent` is the internal component invoked with `<LinkTo>` or `{{link-to}}`.\n\n  @class LinkComponent\n  @extends Component\n  @see {Ember.Templates.components.LinkTo}\n  @public\n**/\n\nconst UNDEFINED = Object.freeze({\n  toString() {\n    return 'UNDEFINED';\n  }\n\n});\nconst EMPTY_QUERY_PARAMS = Object.freeze({});\nconst LinkComponent = Component.extend({\n  layout: layout$1,\n  tagName: 'a',\n\n  /**\n    @property route\n    @public\n  */\n  route: UNDEFINED,\n\n  /**\n    @property model\n    @public\n  */\n  model: UNDEFINED,\n\n  /**\n    @property models\n    @public\n  */\n  models: UNDEFINED,\n\n  /**\n    @property query\n    @public\n  */\n  query: UNDEFINED,\n\n  /**\n    Used to determine when this `LinkComponent` is active.\n       @property current-when\n    @public\n  */\n  'current-when': null,\n\n  /**\n    Sets the `title` attribute of the `LinkComponent`'s HTML element.\n       @property title\n    @default null\n    @public\n  **/\n  title: null,\n\n  /**\n    Sets the `rel` attribute of the `LinkComponent`'s HTML element.\n       @property rel\n    @default null\n    @public\n  **/\n  rel: null,\n\n  /**\n    Sets the `tabindex` attribute of the `LinkComponent`'s HTML element.\n       @property tabindex\n    @default null\n    @public\n  **/\n  tabindex: null,\n\n  /**\n    Sets the `target` attribute of the `LinkComponent`'s HTML element.\n       @since 1.8.0\n    @property target\n    @default null\n    @public\n  **/\n  target: null,\n\n  /**\n    The CSS class to apply to `LinkComponent`'s element when its `active`\n    property is `true`.\n       @property activeClass\n    @type String\n    @default active\n    @public\n  **/\n  activeClass: 'active',\n\n  /**\n    The CSS class to apply to `LinkComponent`'s element when its `loading`\n    property is `true`.\n       @property loadingClass\n    @type String\n    @default loading\n    @private\n  **/\n  loadingClass: 'loading',\n\n  /**\n    The CSS class to apply to a `LinkComponent`'s element when its `disabled`\n    property is `true`.\n       @property disabledClass\n    @type String\n    @default disabled\n    @private\n  **/\n  disabledClass: 'disabled',\n\n  /**\n    Determines whether the `LinkComponent` will trigger routing via\n    the `replaceWith` routing strategy.\n       @property replace\n    @type Boolean\n    @default false\n    @public\n  **/\n  replace: false,\n\n  /**\n    By default this component will forward `href`, `title`, `rel`, `tabindex`, and `target`\n    arguments to attributes on the component's element. When invoked with `{{link-to}}`, you can\n    only customize these attributes. When invoked with `<LinkTo>`, you can just use HTML\n    attributes directly.\n       @property attributeBindings\n    @type Array | String\n    @default ['title', 'rel', 'tabindex', 'target']\n    @public\n  */\n  attributeBindings: ['href', 'title', 'rel', 'tabindex', 'target'],\n\n  /**\n    By default this component will set classes on its element when any of the following arguments\n    are truthy:\n       * active\n    * loading\n    * disabled\n       When these arguments are truthy, a class with the same name will be set on the element. When\n    falsy, the associated class will not be on the element.\n       @property classNameBindings\n    @type Array\n    @default ['active', 'loading', 'disabled', 'ember-transitioning-in', 'ember-transitioning-out']\n    @public\n  */\n  classNameBindings: ['active', 'loading', 'disabled', 'transitioningIn', 'transitioningOut'],\n\n  /**\n    By default this component responds to the `click` event. When the component element is an\n    `<a>` element, activating the link in another way, such as using the keyboard, triggers the\n    click event.\n       @property eventName\n    @type String\n    @default click\n    @private\n  */\n  eventName: 'click',\n\n  // this is doc'ed here so it shows up in the events\n  // section of the API documentation, which is where\n  // people will likely go looking for it.\n\n  /**\n    Triggers the `LinkComponent`'s routing behavior. If\n    `eventName` is changed to a value other than `click`\n    the routing behavior will trigger on that custom event\n    instead.\n       @event click\n    @private\n  */\n\n  /**\n    An overridable method called when `LinkComponent` objects are instantiated.\n       Example:\n       ```app/components/my-link.js\n    import LinkComponent from '@ember/routing/link-component';\n       export default LinkComponent.extend({\n      init() {\n        this._super(...arguments);\n        console.log('Event is ' + this.get('eventName'));\n      }\n    });\n    ```\n       NOTE: If you do override `init` for a framework class like `Component`,\n    be sure to call `this._super(...arguments)` in your\n    `init` declaration! If you don't, Ember may not have an opportunity to\n    do important setup work, and you'll see strange behavior in your\n    application.\n       @method init\n    @private\n  */\n  init() {\n    this._super(...arguments);\n\n    this.assertLinkToOrigin(); // Map desired event name to invoke function\n\n    let {\n      eventName\n    } = this;\n    this.on(eventName, this, this._invoke);\n  },\n\n  _routing: inject('-routing'),\n  _currentRoute: alias('_routing.currentRouteName'),\n  _currentRouterState: alias('_routing.currentState'),\n  _targetRouterState: alias('_routing.targetState'),\n  _isEngine: computed(function () {\n    return getEngineParent(getOwner(this)) !== undefined;\n  }),\n  _engineMountPoint: computed(function () {\n    return getOwner(this).mountPoint;\n  }),\n  _route: computed('route', '_currentRouterState', function computeLinkToComponentRoute() {\n    let {\n      route\n    } = this;\n    return route === UNDEFINED ? this._currentRoute : this._namespaceRoute(route);\n  }),\n  _models: computed('model', 'models', function computeLinkToComponentModels() {\n    let {\n      model,\n      models\n    } = this;\n    assert('You cannot provide both the `@model` and `@models` arguments to the <LinkTo> component.', model === UNDEFINED || models === UNDEFINED);\n\n    if (model !== UNDEFINED) {\n      return [model];\n    } else if (models !== UNDEFINED) {\n      assert('The `@models` argument must be an array.', Array.isArray(models));\n      return models;\n    } else {\n      return [];\n    }\n  }),\n  _query: computed('query', function computeLinkToComponentQuery() {\n    let {\n      query\n    } = this;\n\n    if (query === UNDEFINED) {\n      return EMPTY_QUERY_PARAMS;\n    } else {\n      return Object.assign({}, query);\n    }\n  }),\n\n  /**\n    Accessed as a classname binding to apply the component's `disabledClass`\n    CSS `class` to the element when the link is disabled.\n       When `true`, interactions with the element will not trigger route changes.\n    @property disabled\n    @private\n  */\n  disabled: computed({\n    get(_key) {\n      // always returns false for `get` because (due to the `set` just below)\n      // the cached return value from the set will prevent this getter from _ever_\n      // being called after a set has occurred\n      return false;\n    },\n\n    set(_key, value) {\n      this._isDisabled = value;\n      return value ? this.disabledClass : false;\n    }\n\n  }),\n\n  /**\n    Accessed as a classname binding to apply the component's `activeClass`\n    CSS `class` to the element when the link is active.\n       This component is considered active when its `currentWhen` property is `true`\n    or the application's current route is the route this component would trigger\n    transitions into.\n       The `currentWhen` property can match against multiple routes by separating\n    route names using the ` ` (space) character.\n       @property active\n    @private\n  */\n  active: computed('activeClass', '_active', function computeLinkToComponentActiveClass() {\n    return this._active ? this.activeClass : false;\n  }),\n  _active: computed('_currentRouterState', '_route', '_models', '_query', 'loading', 'current-when', function computeLinkToComponentActive() {\n    let {\n      _currentRouterState: state\n    } = this;\n\n    if (state) {\n      return this._isActive(state);\n    } else {\n      return false;\n    }\n  }),\n  willBeActive: computed('_currentRouterState', '_targetRouterState', '_route', '_models', '_query', 'loading', 'current-when', function computeLinkToComponentWillBeActive() {\n    let {\n      _currentRouterState: current,\n      _targetRouterState: target\n    } = this;\n\n    if (current === target) {\n      return;\n    }\n\n    return this._isActive(target);\n  }),\n\n  assertLinkToOrigin() {\n    assert('You attempted to use the <LinkTo> component within a routeless engine, this is not supported. ' + 'If you are using the ember-engines addon, use the <LinkToExternal> component instead. ' + 'See https://ember-engines.com/docs/links for more info.', !this._isEngine || this._engineMountPoint !== undefined);\n  },\n\n  _isActive(routerState) {\n    if (this.loading) {\n      return false;\n    }\n\n    let currentWhen = this['current-when'];\n\n    if (typeof currentWhen === 'boolean') {\n      return currentWhen;\n    }\n\n    let {\n      _models: models,\n      _routing: routing\n    } = this;\n\n    if (typeof currentWhen === 'string') {\n      return currentWhen.split(' ').some(route => routing.isActiveForRoute(models, undefined, this._namespaceRoute(route), routerState));\n    } else {\n      return routing.isActiveForRoute(models, this._query, this._route, routerState);\n    }\n  },\n\n  transitioningIn: computed('_active', 'willBeActive', function computeLinkToComponentTransitioningIn() {\n    if (this.willBeActive === true && !this._active) {\n      return 'ember-transitioning-in';\n    } else {\n      return false;\n    }\n  }),\n  transitioningOut: computed('_active', 'willBeActive', function computeLinkToComponentTransitioningOut() {\n    if (this.willBeActive === false && this._active) {\n      return 'ember-transitioning-out';\n    } else {\n      return false;\n    }\n  }),\n\n  _namespaceRoute(route) {\n    let {\n      _engineMountPoint: mountPoint\n    } = this;\n\n    if (mountPoint === undefined) {\n      return route;\n    } else if (route === 'application') {\n      return mountPoint;\n    } else {\n      return `${mountPoint}.${route}`;\n    }\n  },\n\n  /**\n    Event handler that invokes the link, activating the associated route.\n       @method _invoke\n    @param {Event} event\n    @private\n  */\n  _invoke(event) {\n    if (!isSimpleClick(event)) {\n      return true;\n    }\n\n    let {\n      bubbles,\n      preventDefault\n    } = this;\n    let target = this.element.target;\n    let isSelf = !target || target === '_self';\n\n    if (preventDefault !== false && isSelf) {\n      event.preventDefault();\n    }\n\n    if (bubbles === false) {\n      event.stopPropagation();\n    }\n\n    if (this._isDisabled) {\n      return false;\n    }\n\n    if (this.loading) {\n      // tslint:disable-next-line:max-line-length\n      warn('This link is in an inactive loading state because at least one of its models ' + 'currently has a null/undefined value, or the provided route name is invalid.', false, {\n        id: 'ember-glimmer.link-to.inactive-loading-state'\n      });\n      return false;\n    }\n\n    if (!isSelf) {\n      return false;\n    }\n\n    let {\n      _route: routeName,\n      _models: models,\n      _query: queryParams,\n      replace: shouldReplace\n    } = this;\n    let payload = {\n      queryParams,\n      routeName\n    };\n    flaggedInstrument('interaction.link-to', payload, this._generateTransition(payload, routeName, models, queryParams, shouldReplace));\n    return false;\n  },\n\n  _generateTransition(payload, qualifiedRouteName, models, queryParams, shouldReplace) {\n    let {\n      _routing: routing\n    } = this;\n    return () => {\n      payload.transition = routing.transitionTo(qualifiedRouteName, models, queryParams, shouldReplace);\n    };\n  },\n\n  /**\n    Sets the element's `href` attribute to the url for\n    the `LinkComponent`'s targeted route.\n       If the `LinkComponent`'s `tagName` is changed to a value other\n    than `a`, this property will be ignored.\n       @property href\n    @private\n  */\n  href: computed('_currentRouterState', '_route', '_models', '_query', 'tagName', 'loading', 'loadingHref', function computeLinkToComponentHref() {\n    if (this.tagName !== 'a') {\n      return;\n    }\n\n    if (this.loading) {\n      return this.loadingHref;\n    }\n\n    let {\n      _route: route,\n      _models: models,\n      _query: query,\n      _routing: routing\n    } = this;\n\n    if (DEBUG) {\n      /*\n       * Unfortunately, to get decent error messages, we need to do this.\n       * In some future state we should be able to use a \"feature flag\"\n       * which allows us to strip this without needing to call it twice.\n       *\n       * if (isDebugBuild()) {\n       *   // Do the useful debug thing, probably including try/catch.\n       * } else {\n       *   // Do the performant thing.\n       * }\n       */\n      try {\n        return routing.generateURL(route, models, query);\n      } catch (e) {\n        // tslint:disable-next-line:max-line-length\n        assert(`You attempted to generate a link for the \"${this.route}\" route, but did not ` + `pass the models required for generating its dynamic segments. ` + e.message);\n      }\n    } else {\n      return routing.generateURL(route, models, query);\n    }\n  }),\n  loading: computed('_route', '_modelsAreLoaded', 'loadingClass', function computeLinkToComponentLoading() {\n    let {\n      _route: route,\n      _modelsAreLoaded: loaded\n    } = this;\n\n    if (!loaded || route === null || route === undefined) {\n      return this.loadingClass;\n    }\n  }),\n  _modelsAreLoaded: computed('_models', function computeLinkToComponentModelsAreLoaded() {\n    let {\n      _models: models\n    } = this;\n\n    for (let i = 0; i < models.length; i++) {\n      let model = models[i];\n\n      if (model === null || model === undefined) {\n        return false;\n      }\n    }\n\n    return true;\n  }),\n\n  /**\n    The default href value to use while a link-to is loading.\n    Only applies when tagName is 'a'\n       @property loadingHref\n    @type String\n    @default #\n    @private\n  */\n  loadingHref: '#',\n\n  didReceiveAttrs() {\n    let {\n      disabledWhen\n    } = this;\n\n    if (disabledWhen !== undefined) {\n      this.set('disabled', disabledWhen);\n    }\n\n    let {\n      params\n    } = this;\n\n    if (!params || params.length === 0) {\n      assert('You must provide at least one of the `@route`, `@model`, `@models` or `@query` argument to `<LinkTo>`.', !(this.route === UNDEFINED && this.model === UNDEFINED && this.models === UNDEFINED && this.query === UNDEFINED));\n      let {\n        _models: models\n      } = this;\n\n      if (models.length > 0) {\n        let lastModel = models[models.length - 1];\n\n        if (typeof lastModel === 'object' && lastModel !== null && lastModel.isQueryParams) {\n          this.query = lastModel.values;\n          models.pop();\n        }\n      }\n\n      return;\n    }\n\n    params = params.slice(); // Process the positional arguments, in order.\n    // 1. Inline link title comes first, if present.\n\n    if (!this[HAS_BLOCK]) {\n      this.set('linkTitle', params.shift());\n    } // 2. The last argument is possibly the `query` object.\n\n\n    let queryParams = params[params.length - 1];\n\n    if (queryParams && queryParams.isQueryParams) {\n      this.set('query', params.pop().values);\n    } else {\n      this.set('query', UNDEFINED);\n    } // 3. If there is a `route`, it is now at index 0.\n\n\n    if (params.length === 0) {\n      this.set('route', UNDEFINED);\n    } else {\n      this.set('route', params.shift());\n    } // 4. Any remaining indices (if any) are `models`.\n\n\n    this.set('model', UNDEFINED);\n    this.set('models', params);\n  }\n\n});\n\nLinkComponent.toString = () => '@ember/routing/link-component';\n\nLinkComponent.reopenClass({\n  positionalParams: 'params'\n});\n\nfunction convertToInt(prop) {\n  if (typeof prop === 'symbol') return null;\n  const num = Number(prop);\n  if (isNaN(num)) return null;\n  return num % 1 === 0 ? num : null;\n}\n\nfunction tagForNamedArg(namedArgs, key) {\n  return track(() => {\n    if (key in namedArgs) {\n      valueForRef(namedArgs[key]);\n    }\n  });\n}\n\nfunction tagForPositionalArg(positionalArgs, key) {\n  return track(() => {\n    if (key === '[]') {\n      // consume all of the tags in the positional array\n      positionalArgs.forEach(valueForRef);\n    }\n\n    const parsed = convertToInt(key);\n\n    if (parsed !== null && parsed < positionalArgs.length) {\n      // consume the tag of the referenced index\n      valueForRef(positionalArgs[parsed]);\n    }\n  });\n}\n\nlet argsProxyFor;\n\nif (HAS_NATIVE_PROXY) {\n  argsProxyFor = (capturedArgs, type) => {\n    const {\n      named,\n      positional\n    } = capturedArgs;\n\n    let getNamedTag = key => tagForNamedArg(named, key);\n\n    let getPositionalTag = key => tagForPositionalArg(positional, key);\n\n    const namedHandler = {\n      get(_target, prop) {\n        const ref = named[prop];\n\n        if (ref !== undefined) {\n          return valueForRef(ref);\n        } else if (prop === CUSTOM_TAG_FOR) {\n          return getNamedTag;\n        }\n      },\n\n      has(_target, prop) {\n        return prop in named;\n      },\n\n      ownKeys(_target) {\n        return Object.keys(named);\n      },\n\n      isExtensible() {\n        return false;\n      },\n\n      getOwnPropertyDescriptor(_target, prop) {\n        assert('args proxies do not have real property descriptors, so you should never need to call getOwnPropertyDescriptor yourself. This code exists for enumerability, such as in for-in loops and Object.keys()', prop in named);\n        return {\n          enumerable: true,\n          configurable: true\n        };\n      }\n\n    };\n    const positionalHandler = {\n      get(target, prop) {\n        if (prop === 'length') {\n          return positional.length;\n        }\n\n        const parsed = convertToInt(prop);\n\n        if (parsed !== null && parsed < positional.length) {\n          return valueForRef(positional[parsed]);\n        }\n\n        if (prop === CUSTOM_TAG_FOR) {\n          return getPositionalTag;\n        }\n\n        return target[prop];\n      },\n\n      isExtensible() {\n        return false;\n      },\n\n      has(_target, prop) {\n        const parsed = convertToInt(prop);\n        return parsed !== null && parsed < positional.length;\n      }\n\n    };\n    const namedTarget = Object.create(null);\n    const positionalTarget = [];\n\n    if (DEBUG) {\n      const setHandler = function (_target, prop) {\n        throw new Error(`You attempted to set ${String(prop)} on the arguments of a component, helper, or modifier. Arguments are immutable and cannot be updated directly, they always represent the values that is passed down. If you want to set default values, you should use a getter and local tracked state instead.`);\n      };\n\n      const forInDebugHandler = () => {\n        throw new Error(`Object.keys() was called on the positional arguments array for a ${type}, which is not supported. This function is a low-level function that should not need to be called for positional argument arrays. You may be attempting to iterate over the array using for...in instead of for...of.`);\n      };\n\n      namedHandler.set = setHandler;\n      positionalHandler.set = setHandler;\n      positionalHandler.ownKeys = forInDebugHandler;\n    }\n\n    return {\n      named: new Proxy(namedTarget, namedHandler),\n      positional: new Proxy(positionalTarget, positionalHandler)\n    };\n  };\n} else {\n  argsProxyFor = (capturedArgs, _type) => {\n    const {\n      named,\n      positional\n    } = capturedArgs;\n\n    let getNamedTag = key => tagForNamedArg(named, key);\n\n    let getPositionalTag = key => tagForPositionalArg(positional, key);\n\n    let namedProxy = {};\n    Object.defineProperty(namedProxy, CUSTOM_TAG_FOR, {\n      configurable: false,\n      enumerable: false,\n      value: getNamedTag\n    });\n    Object.keys(named).forEach(name => {\n      Object.defineProperty(namedProxy, name, {\n        enumerable: true,\n        configurable: true,\n\n        get() {\n          return valueForRef(named[name]);\n        }\n\n      });\n    });\n    let positionalProxy = [];\n    Object.defineProperty(positionalProxy, CUSTOM_TAG_FOR, {\n      configurable: false,\n      enumerable: false,\n      value: getPositionalTag\n    });\n    positional.forEach((ref, index) => {\n      Object.defineProperty(positionalProxy, index, {\n        enumerable: true,\n        configurable: true,\n\n        get() {\n          return valueForRef(ref);\n        }\n\n      });\n    });\n\n    if (DEBUG) {\n      // Prevent mutations in development mode. This will not prevent the\n      // proxy from updating, but will prevent assigning new values or pushing\n      // for instance.\n      Object.freeze(namedProxy);\n      Object.freeze(positionalProxy);\n    }\n\n    return {\n      named: namedProxy,\n      positional: positionalProxy\n    };\n  };\n}\n\n/**\n@module @ember/helper\n*/\n\n/**\n  `capabilities` returns a capabilities configuration which can be used to modify\n  the behavior of the manager. Manager capabilities _must_ be provided using the\n  `capabilities` function, as the underlying implementation can change over time.\n\n  The first argument to capabilities is a version string, which is the version of\n  Ember that the capabilities were defined in. Ember can add new versions at any\n  time, and these may have entirely different behaviors, but it will not remove\n  old versions until the next major version.\n\n  ```js\n  capabilities('3.23');\n  ```\n\n  The second argument is an object of capabilities and boolean values indicating\n  whether they are enabled or disabled.\n\n  ```js\n  capabilities('3.23', {\n    hasValue: true,\n    hasDestructor: true,\n  });\n  ```\n\n  If no value is specified, then the default value will be used.\n\n  ### `3.23` capabilities\n\n  #### `hasDestroyable`\n\n  - Default value: false\n\n  Determines if the helper has a destroyable to include in the destructor\n  hierarchy. If enabled, the `getDestroyable` hook will be called, and its result\n  will be associated with the destroyable parent block.\n\n  #### `hasValue`\n\n  - Default value: false\n\n  Determines if the helper has a value which can be used externally. The helper's\n  `getValue` hook will be run whenever the value of the helper is accessed if this\n  capability is enabled.\n\n  @method capabilities\n  @for @ember/helper\n  @static\n  @param {String} managerApiVersion The version of capabilities that are being used\n  @param options The capabilities values\n  @return {Capabilities} The capabilities object instance\n  @public\n*/\n\nfunction helperCapabilities(managerAPI, options = {}) {\n  assert('Invalid helper manager compatibility specified', managerAPI === '3.23');\n  assert('You must pass either the `hasValue` OR the `hasScheduledEffect` capability when defining a helper manager. Passing neither, or both, is not permitted.', (options.hasValue || options.hasScheduledEffect) && !(options.hasValue && options.hasScheduledEffect));\n  assert('The `hasScheduledEffect` capability has not yet been implemented for helper managers. Please pass `hasValue` instead', !options.hasScheduledEffect);\n  return buildCapabilities({\n    hasValue: Boolean(options.hasValue),\n    hasDestroyable: Boolean(options.hasDestroyable),\n    hasScheduledEffect: Boolean(options.hasScheduledEffect)\n  });\n}\n/**\n  Sets the helper manager for an object or function.\n\n  ```js\n  setHelperManager((owner) => new ClassHelperManager(owner), Helper)\n  ```\n\n  When a value is used as a helper in a template, the helper manager is looked up\n  on the object by walking up its prototype chain and finding the first helper\n  manager. This manager then receives the value and can create and manage an\n  instance of a helper from it. This provides a layer of indirection that allows\n  users to design high-level helper APIs, without Ember needing to worry about the\n  details. High-level APIs can be experimented with and iterated on while the\n  core of Ember helpers remains stable, and new APIs can be introduced gradually\n  over time to existing code bases.\n\n  `setHelperManager` receives two arguments:\n\n  1. A factory function, which receives the `owner` and returns an instance of a\n    helper manager.\n  2. A helper definition, which is the object or function to associate the factory function with.\n\n  The first time the object is looked up, the factory function will be called to\n  create the helper manager. It will be cached, and in subsequent lookups the\n  cached helper manager will be used instead.\n\n  Only one helper manager is guaranteed to exist per `owner` and per usage of\n  `setHelperManager`, so many helpers will end up using the same instance of the\n  helper manager. As such, you should only store state that is related to the\n  manager itself. If you want to store state specific to a particular helper\n  definition, you should assign a unique helper manager to that helper. In\n  general, most managers should either be stateless, or only have the `owner` they\n  were created with as state.\n\n  Helper managers must fulfill the following interface (This example uses\n  [TypeScript interfaces](https://www.typescriptlang.org/docs/handbook/interfaces.html)\n  for precision, you do not need to write helper managers using TypeScript):\n\n  ```ts\n  interface HelperManager<HelperStateBucket> {\n    capabilities: HelperCapabilities;\n\n    createHelper(definition: HelperDefinition, args: TemplateArgs): HelperStateBucket;\n\n    getValue?(bucket: HelperStateBucket): unknown;\n\n    runEffect?(bucket: HelperStateBucket): void;\n\n    getDestroyable?(bucket: HelperStateBucket): object;\n  }\n  ```\n\n  The capabilities property _must_ be provided using the `capabilities()` function\n  imported from the same module as `setHelperManager`:\n\n  ```js\n  import { capabilities } from '@ember/helper';\n\n  class MyHelperManager {\n    capabilities = capabilities('3.21.0', { hasValue: true });\n\n    // ...snip...\n  }\n  ```\n\n  Below is a description of each of the methods on the interface and their\n  functions.\n\n  #### `createHelper`\n\n  `createHelper` is a required hook on the HelperManager interface. The hook is\n  passed the definition of the helper that is currently being created, and is\n  expected to return a _state bucket_. This state bucket is what represents the\n  current state of the helper, and will be passed to the other lifecycle hooks at\n  appropriate times. It is not necessarily related to the definition of the\n  helper itself - for instance, you could return an object _containing_ an\n  instance of the helper:\n\n  ```js\n  class MyManager {\n    createHelper(Definition, args) {\n      return {\n        instance: new Definition(args);\n      };\n    }\n  }\n  ```\n\n  This allows the manager to store metadata that it doesn't want to expose to the\n  user.\n\n  This hook is _not_ autotracked - changes to tracked values used within this hook\n  will _not_ result in a call to any of the other lifecycle hooks. This is because\n  it is unclear what should happen if it invalidates, and rather than make a\n  decision at this point, the initial API is aiming to allow as much expressivity\n  as possible. This could change in the future with changes to capabilities and\n  their behaviors.\n\n  If users do want to autotrack some values used during construction, they can\n  either create the instance of the helper in `runEffect` or `getValue`, or they\n  can use the `cache` API to autotrack the `createHelper` hook themselves. This\n  provides maximum flexibility and expressiveness to manager authors.\n\n  This hook has the following timing semantics:\n\n  **Always**\n  - called as discovered during DOM construction\n  - called in definition order in the template\n\n  #### `getValue`\n\n  `getValue` is an optional hook that should return the value of the helper. This\n  is the value that is returned from the helper and passed into the template.\n\n  This hook is called when the value is requested from the helper (e.g. when the\n  template is rendering and the helper value is needed). The hook is autotracked,\n  and will rerun whenever any tracked values used inside of it are updated.\n  Otherwise it does not rerun.\n\n  > Note: This means that arguments which are not _consumed_ within the hook will\n  > not trigger updates.\n\n  This hook is only called for helpers with the `hasValue` capability enabled.\n  This hook has the following timing semantics:\n\n  **Always**\n  - called the first time the helper value is requested\n  - called after autotracked state has changed\n\n  **Never**\n  - called if the `hasValue` capability is disabled\n\n  #### `runEffect`\n\n  `runEffect` is an optional hook that should run the effect that the helper is\n  applying, setting it up or updating it.\n\n  This hook is scheduled to be called some time after render and prior to paint.\n  There is not a guaranteed, 1-to-1 relationship between a render pass and this\n  hook firing. For instance, multiple render passes could occur, and the hook may\n  only trigger once. It may also never trigger if it was dirtied in one render\n  pass and then destroyed in the next.\n\n  The hook is autotracked, and will rerun whenever any tracked values used inside\n  of it are updated. Otherwise it does not rerun.\n\n  The hook is also run during a time period where state mutations are _disabled_\n  in Ember. Any tracked state mutation will throw an error during this time,\n  including changes to tracked properties, changes made using `Ember.set`, updates\n  to computed properties, etc. This is meant to prevent infinite rerenders and\n  other antipatterns.\n\n  This hook is only called for helpers with the `hasScheduledEffect` capability\n  enabled. This hook is also not called in SSR currently, though this could be\n  added as a capability in the future. It has the following timing semantics:\n\n  **Always**\n  - called after the helper was first created, if the helper has not been\n    destroyed since creation\n  - called after autotracked state has changed, if the helper has not been\n    destroyed during render\n\n  **Never**\n  - called if the `hasScheduledEffect` capability is disabled\n  - called in SSR\n\n  #### `getDestroyable`\n\n  `getDestroyable` is an optional hook that users can use to register a\n  destroyable object for the helper. This destroyable will be registered to the\n  containing block or template parent, and will be destroyed when it is destroyed.\n  See the [Destroyables RFC](https://github.com/emberjs/rfcs/blob/master/text/0580-destroyables.md)\n  for more details.\n\n  `getDestroyable` is only called if the `hasDestroyable` capability is enabled.\n\n  This hook has the following timing semantics:\n\n  **Always**\n  - called immediately after the `createHelper` hook is called\n\n  **Never**\n  - called if the `hasDestroyable` capability is disabled\n\n  @method setHelperManager\n  @for @ember/helper\n  @static\n  @param {Function} factory A factory function which receives an optional owner, and returns a helper manager\n  @param {object} definition The definition to associate the manager factory with\n  @return {object} The definition passed into setHelperManager\n  @public\n*/\n\nfunction hasValue(manager) {\n  return manager.capabilities.hasValue;\n}\n\nfunction hasDestroyable(manager) {\n  return manager.capabilities.hasDestroyable;\n}\n\nlet ARGS_CACHES = DEBUG ? new WeakMap() : undefined;\n\nfunction getArgs(proxy) {\n  return getValue(DEBUG ? ARGS_CACHES.get(proxy) : proxy.argsCache);\n}\n\nclass SimpleArgsProxy {\n  constructor(context, computeArgs = () => EMPTY_ARGS) {\n    let argsCache = createCache(() => computeArgs(context));\n\n    if (DEBUG) {\n      ARGS_CACHES.set(this, argsCache);\n      Object.freeze(this);\n    } else {\n      this.argsCache = argsCache;\n    }\n  }\n\n  get named() {\n    return getArgs(this).named || EMPTY_NAMED;\n  }\n\n  get positional() {\n    return getArgs(this).positional || EMPTY_POSITIONAL;\n  }\n\n}\n/**\n  The `invokeHelper` function can be used to create a helper instance in\n  JavaScript.\n\n  ```js\n  // app/components/data-loader.js\n  import Component from '@glimmer/component';\n  import Helper from '@ember/component/helper';\n  import { invokeHelper } from '@ember/helper';\n\n  class PlusOne extends Helper {\n    compute([num]) {\n      return number + 1;\n    }\n  }\n\n  export default class PlusOne extends Component {\n    plusOne = invokeHelper(this, RemoteData, () => {\n      return {\n        positional: [this.args.number],\n      };\n    });\n  }\n  ```\n  ```hbs\n  {{this.plusOne.value}}\n  ```\n\n  It receives three arguments:\n\n  * `context`: The parent context of the helper. When the parent is torn down and\n    removed, the helper will be as well.\n  * `definition`: The definition of the helper.\n  * `computeArgs`: An optional function that produces the arguments to the helper.\n    The function receives the parent context as an argument, and must return an\n    object with a `positional` property that is an array and/or a `named`\n    property that is an object.\n\n  And it returns a Cache instance that contains the most recent value of the\n  helper. You can access the helper using `getValue()` like any other cache. The\n  cache is also destroyable, and using the `destroy()` function on it will cause\n  the helper to be torn down.\n\n  Note that using `getValue()` on helpers that have scheduled effects will not\n  trigger the effect early. Effects will continue to run at their scheduled time.\n\n  @method invokeHelper\n  @for @ember/helper\n  @static\n  @param {object} context The parent context of the helper\n  @param {object} definition The helper definition\n  @param {Function} computeArgs An optional function that produces args\n  @returns\n  @public\n*/\n\n\nfunction invokeHelper(context, definition, computeArgs) {\n  assert(`Expected a context object to be passed as the first parameter to invokeHelper, got ${context}`, context !== null && typeof context === 'object');\n  const owner = getOwner(context);\n  const manager = getHelperManager(owner, definition); // TODO: figure out why assert isn't using the TS assert thing\n\n  assert(`Expected a helper definition to be passed as the second parameter to invokeHelper, but no helper manager was found. The definition value that was passed was \\`${getDebugName(definition)}\\`. Did you use setHelperManager to associate a helper manager with this value?`, manager);\n  assert('Invoke helper does not support internal helpers yet', !isInternalHelper(manager));\n  let args = new SimpleArgsProxy(context, computeArgs);\n  let bucket = manager.createHelper(definition, args);\n  let cache;\n\n  if (hasValue(manager)) {\n    cache = createCache(() => {\n      assert(`You attempted to get the value of a helper after the helper was destroyed, which is not allowed`, !isDestroying(cache) && !isDestroyed(cache));\n      return manager.getValue(bucket);\n    });\n    associateDestroyableChild(context, cache);\n  } else {\n    throw new Error('TODO: unreachable, to be implemented with hasScheduledEffect');\n  }\n\n  if (hasDestroyable(manager)) {\n    let destroyable = manager.getDestroyable(bucket);\n    associateDestroyableChild(cache, destroyable);\n  }\n\n  return cache;\n}\nfunction customHelper(manager, definition) {\n  return (vmArgs, vm) => {\n    const args = argsProxyFor(vmArgs.capture(), 'helper');\n    const bucket = manager.createHelper(definition, args);\n\n    if (hasDestroyable(manager)) {\n      vm.associateDestroyable(manager.getDestroyable(bucket));\n    }\n\n    if (hasValue(manager)) {\n      return createComputeRef(() => manager.getValue(bucket), null, DEBUG && manager.getDebugName && manager.getDebugName(definition));\n    } else {\n      return UNDEFINED_REFERENCE;\n    }\n  };\n}\n\n/**\n@module @ember/component\n*/\nconst RECOMPUTE_TAG = symbol('RECOMPUTE_TAG');\nconst CLASSIC_HELPER_MANAGERS = new _WeakSet();\nfunction isClassicHelperManager(obj) {\n  return CLASSIC_HELPER_MANAGERS.has(obj);\n}\n/**\n  Ember Helpers are functions that can compute values, and are used in templates.\n  For example, this code calls a helper named `format-currency`:\n\n  ```app/templates/application.hbs\n  <Cost @cents={{230}} />\n  ```\n\n  ```app/components/cost.hbs\n  <div>{{format-currency @cents currency=\"$\"}}</div>\n  ```\n\n  Additionally a helper can be called as a nested helper.\n  In this example, we show the formatted currency value if the `showMoney`\n  named argument is truthy.\n\n  ```handlebars\n  {{if @showMoney (format-currency @cents currency=\"$\")}}\n  ```\n\n  Helpers defined using a class must provide a `compute` function. For example:\n\n  ```app/helpers/format-currency.js\n  import Helper from '@ember/component/helper';\n\n  export default class extends Helper {\n    compute([cents], { currency }) {\n      return `${currency}${cents * 0.01}`;\n    }\n  }\n  ```\n\n  Each time the input to a helper changes, the `compute` function will be\n  called again.\n\n  As instances, these helpers also have access to the container and will accept\n  injected dependencies.\n\n  Additionally, class helpers can call `recompute` to force a new computation.\n\n  @class Helper\n  @public\n  @since 1.13.0\n*/\n\nlet Helper = FrameworkObject.extend({\n  init() {\n    this._super(...arguments);\n\n    this[RECOMPUTE_TAG] = createTag();\n  },\n\n  /**\n    On a class-based helper, it may be useful to force a recomputation of that\n    helpers value. This is akin to `rerender` on a component.\n       For example, this component will rerender when the `currentUser` on a\n    session service changes:\n       ```app/helpers/current-user-email.js\n    import Helper from '@ember/component/helper'\n    import { inject as service } from '@ember/service'\n    import { observer } from '@ember/object'\n       export default Helper.extend({\n      session: service(),\n         onNewUser: observer('session.currentUser', function() {\n        this.recompute();\n      }),\n         compute() {\n        return this.get('session.currentUser.email');\n      }\n    });\n    ```\n       @method recompute\n    @public\n    @since 1.13.0\n  */\n  recompute() {\n    join(() => dirtyTag(this[RECOMPUTE_TAG]));\n  }\n\n});\nHelper.isHelperFactory = true;\n\nclass ClassicHelperManager {\n  constructor(owner) {\n    this.capabilities = helperCapabilities('3.23', {\n      hasValue: true,\n      hasDestroyable: true\n    });\n    CLASSIC_HELPER_MANAGERS.add(this);\n    let ownerInjection = {};\n    setOwner(ownerInjection, owner);\n    this.ownerInjection = ownerInjection;\n  }\n\n  createHelper(definition, args) {\n    let instance = definition.class === undefined ? definition.create(this.ownerInjection) : definition.create();\n    return {\n      instance,\n      args\n    };\n  }\n\n  getDestroyable({\n    instance\n  }) {\n    return instance;\n  }\n\n  getValue({\n    instance,\n    args\n  }) {\n    let ret;\n    let {\n      positional,\n      named\n    } = args;\n\n    if (DEBUG) {\n      deprecateMutationsInTrackingTransaction(() => {\n        ret = instance.compute(positional, named);\n      });\n    } else {\n      ret = instance.compute(positional, named);\n    }\n\n    consumeTag(instance[RECOMPUTE_TAG]);\n    return ret;\n  }\n\n  getDebugName(definition) {\n    return getDebugName(definition.class['prototype']);\n  }\n\n}\n\nsetHelperManager(owner => new ClassicHelperManager(owner), Helper); ///////////\n\nclass Wrapper {\n  constructor(compute) {\n    this.compute = compute;\n    this.isHelperFactory = true;\n  }\n\n  create() {\n    // needs new instance or will leak containers\n    return {\n      compute: this.compute\n    };\n  }\n\n}\n\nclass SimpleClassicHelperManager {\n  constructor() {\n    this.capabilities = helperCapabilities('3.23', {\n      hasValue: true\n    });\n  }\n\n  createHelper(definition, args) {\n    let {\n      compute\n    } = definition;\n\n    if (DEBUG) {\n      return () => {\n        let ret;\n        deprecateMutationsInTrackingTransaction(() => {\n          ret = compute.call(null, args.positional, args.named);\n        });\n        return ret;\n      };\n    }\n\n    return () => compute.call(null, args.positional, args.named);\n  }\n\n  getValue(fn) {\n    return fn();\n  }\n\n  getDebugName(definition) {\n    return getDebugName(definition.compute);\n  }\n\n}\n\nconst SIMPLE_CLASSIC_HELPER_MANAGER = new SimpleClassicHelperManager();\nsetHelperManager(() => SIMPLE_CLASSIC_HELPER_MANAGER, Wrapper.prototype);\n/**\n  In many cases it is not necessary to use the full `Helper` class.\n  The `helper` method create pure-function helpers without instances.\n  For example:\n\n  ```app/helpers/format-currency.js\n  import { helper } from '@ember/component/helper';\n\n  export default helper(function([cents], {currency}) {\n    return `${currency}${cents * 0.01}`;\n  });\n  ```\n\n  @static\n  @param {Function} helper The helper function\n  @method helper\n  @for @ember/component/helper\n  @public\n  @since 1.13.0\n*/\n\nfunction helper(helperFn) {\n  return new Wrapper(helperFn);\n}\n\n/**\n@module @ember/template\n*/\nclass SafeString {\n  constructor(string) {\n    this.string = string;\n  }\n\n  toString() {\n    return `${this.string}`;\n  }\n\n  toHTML() {\n    return this.toString();\n  }\n\n}\nconst escape = {\n  '&': '&amp;',\n  '<': '&lt;',\n  '>': '&gt;',\n  '\"': '&quot;',\n  \"'\": '&#x27;',\n  '`': '&#x60;',\n  '=': '&#x3D;'\n};\nconst possible = /[&<>\"'`=]/;\nconst badChars = /[&<>\"'`=]/g;\n\nfunction escapeChar(chr) {\n  return escape[chr];\n}\n\nfunction escapeExpression(string) {\n  if (typeof string !== 'string') {\n    // don't escape SafeStrings, since they're already safe\n    if (string && string.toHTML) {\n      return string.toHTML();\n    } else if (string === null || string === undefined) {\n      return '';\n    } else if (!string) {\n      return String(string);\n    } // Force a string conversion as this will be done by the append regardless and\n    // the regex test will do this transparently behind the scenes, causing issues if\n    // an object's to string has escaped characters in it.\n\n\n    string = String(string);\n  }\n\n  if (!possible.test(string)) {\n    return string;\n  }\n\n  return string.replace(badChars, escapeChar);\n}\n/**\n  Mark a string as safe for unescaped output with Ember templates. If you\n  return HTML from a helper, use this function to\n  ensure Ember's rendering layer does not escape the HTML.\n\n  ```javascript\n  import { htmlSafe } from '@ember/template';\n\n  htmlSafe('<div>someString</div>')\n  ```\n\n  @method htmlSafe\n  @for @ember/template\n  @static\n  @return {SafeString} A string that will not be HTML escaped by Handlebars.\n  @public\n*/\n\nfunction htmlSafe(str) {\n  if (str === null || str === undefined) {\n    str = '';\n  } else if (typeof str !== 'string') {\n    str = String(str);\n  }\n\n  return new SafeString(str);\n}\n/**\n  Detects if a string was decorated using `htmlSafe`.\n\n  ```javascript\n  import { htmlSafe, isHTMLSafe } from '@ember/template';\n\n  var plainString = 'plain string',\n      safeString = htmlSafe('<div>someValue</div>');\n\n  isHTMLSafe(plainString); // false\n  isHTMLSafe(safeString);  // true\n  ```\n\n  @method isHTMLSafe\n  @for @ember/template\n  @static\n  @return {Boolean} `true` if the string was decorated with `htmlSafe`, `false` otherwise.\n  @public\n*/\n\nfunction isHTMLSafe(str) {\n  return str !== null && typeof str === 'object' && typeof str.toHTML === 'function';\n}\n\nfunction isStaticComponentManager(_manager, capabilities) {\n  return !capabilities.dynamicLayout;\n}\n\nclass CompileTimeResolverImpl {\n  constructor(resolver) {\n    this.resolver = resolver;\n  }\n\n  lookupHelper(name, owner) {\n    return this.resolver.lookupHelper(name, owner);\n  }\n\n  lookupModifier(name, owner) {\n    return this.resolver.lookupModifier(name, owner);\n  }\n\n  lookupComponent(name, owner) {\n    let definitionHandle = this.resolver.lookupComponentHandle(name, owner);\n\n    if (definitionHandle === null) {\n      return null;\n    }\n\n    const {\n      manager,\n      state\n    } = this.resolver.resolve(definitionHandle);\n    const capabilities = manager.getCapabilities(state);\n\n    if (!isStaticComponentManager(manager, capabilities)) {\n      return {\n        handle: definitionHandle,\n        capabilities,\n        compilable: null\n      };\n    }\n\n    let template = unwrapTemplate(manager.getStaticLayout(state));\n    let layout = capabilities.wrapped ? template.asWrappedLayout() : template.asLayout();\n    return {\n      handle: definitionHandle,\n      capabilities,\n      compilable: layout\n    };\n  }\n\n  lookupPartial(name, owner) {\n    return this.resolver.lookupPartial(name, owner);\n  }\n\n  resolve() {\n    return null;\n  }\n\n}\n\nfunction instrumentationPayload(def) {\n  return {\n    object: `${def.name}:${def.outlet}`\n  };\n}\n\nconst CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: true,\n  updateHook: false,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false\n};\n\nclass OutletComponentManager extends BaseInternalComponentManager {\n  create(env, definition, _args, dynamicScope) {\n    let parentStateRef = dynamicScope.get('outletState');\n    let currentStateRef = definition.ref;\n    dynamicScope.set('outletState', currentStateRef);\n    let state = {\n      self: createConstRef(definition.controller, 'this'),\n      finalize: _instrumentStart('render.outlet', instrumentationPayload, definition)\n    };\n\n    if (env.debugRenderTree !== undefined) {\n      state.outlet = {\n        name: definition.outlet\n      };\n      let parentState = valueForRef(parentStateRef);\n      let parentOwner = parentState && parentState.render && parentState.render.owner;\n      let currentOwner = valueForRef(currentStateRef).render.owner;\n\n      if (parentOwner && parentOwner !== currentOwner) {\n        let engine = currentOwner;\n        assert('invalid engine: missing mountPoint', typeof currentOwner.mountPoint === 'string');\n        assert('invalid engine: missing routable', currentOwner.routable === true);\n        let mountPoint = engine.mountPoint;\n        state.engine = engine;\n        state.engineBucket = {\n          mountPoint\n        };\n      }\n    }\n\n    return state;\n  }\n\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n\n  getDebugCustomRenderTree(definition, state, args) {\n    let nodes = [];\n\n    if (state.outlet) {\n      nodes.push({\n        bucket: state.outlet,\n        type: 'outlet',\n        name: state.outlet.name,\n        args: EMPTY_ARGS,\n        instance: undefined,\n        template: undefined\n      });\n    }\n\n    if (state.engineBucket) {\n      nodes.push({\n        bucket: state.engineBucket,\n        type: 'engine',\n        name: state.engineBucket.mountPoint,\n        args: EMPTY_ARGS,\n        instance: state.engine,\n        template: undefined\n      });\n    }\n\n    nodes.push({\n      bucket: state,\n      type: 'route-template',\n      name: definition.name,\n      args: args,\n      instance: definition.controller,\n      template: definition.template\n    });\n    return nodes;\n  }\n\n  getStaticLayout({\n    template\n  }) {\n    // The router has already resolved the template\n    return template;\n  }\n\n  getCapabilities() {\n    return CAPABILITIES;\n  }\n\n  getSelf({\n    self\n  }) {\n    return self;\n  }\n\n  didRenderLayout(state) {\n    state.finalize();\n  }\n\n  getDestroyable() {\n    return null;\n  }\n\n}\n\nconst OUTLET_MANAGER = new OutletComponentManager();\nclass OutletComponentDefinition {\n  constructor(state, manager = OUTLET_MANAGER) {\n    this.state = state;\n    this.manager = manager;\n  }\n\n}\nfunction createRootOutlet(outletView) {\n  if (ENV._APPLICATION_TEMPLATE_WRAPPER) {\n    const WRAPPED_CAPABILITIES = assign({}, CAPABILITIES, {\n      dynamicTag: true,\n      elementHook: true,\n      wrapped: true\n    });\n    const WrappedOutletComponentManager = class extends OutletComponentManager {\n      getTagName() {\n        return 'div';\n      }\n\n      getStaticLayout({\n        template\n      }) {\n        // The router has already resolved the template\n        return template;\n      }\n\n      getCapabilities() {\n        return WRAPPED_CAPABILITIES;\n      }\n\n      didCreateElement(component, element) {\n        // to add GUID id and class\n        element.setAttribute('class', 'ember-view');\n        element.setAttribute('id', guidFor(component));\n      }\n\n    };\n    const WRAPPED_OUTLET_MANAGER = new WrappedOutletComponentManager();\n    return new OutletComponentDefinition(outletView.state, WRAPPED_OUTLET_MANAGER);\n  } else {\n    return new OutletComponentDefinition(outletView.state);\n  }\n}\n\nfunction NOOP() {}\n/**\n  @module ember\n*/\n\n/**\n  Represents the internal state of the component.\n\n  @class ComponentStateBucket\n  @private\n*/\n\n\nclass ComponentStateBucket {\n  constructor(environment, component, args, argsTag, finalizer, hasWrappedElement) {\n    this.environment = environment;\n    this.component = component;\n    this.args = args;\n    this.argsTag = argsTag;\n    this.finalizer = finalizer;\n    this.hasWrappedElement = hasWrappedElement;\n    this.classRef = null;\n    this.classRef = null;\n    this.argsRevision = args === null ? 0 : valueForTag(argsTag);\n    this.rootRef = createConstRef(component, 'this');\n    registerDestructor(this, () => this.willDestroy(), true);\n    registerDestructor(this, () => this.component.destroy());\n  }\n\n  willDestroy() {\n    let {\n      component,\n      environment\n    } = this;\n\n    if (environment.isInteractive) {\n      beginUntrackFrame();\n      component.trigger('willDestroyElement');\n      component.trigger('willClearRender');\n      endUntrackFrame();\n      let element = getViewElement(component);\n\n      if (element) {\n        clearElementView(element);\n        clearViewElement(component);\n      }\n    }\n\n    component.renderer.unregister(component);\n  }\n\n  finalize() {\n    let {\n      finalizer\n    } = this;\n    finalizer();\n    this.finalizer = NOOP;\n  }\n\n}\n\nfunction isTemplateFactory(template) {\n  return typeof template === 'function';\n}\n\nfunction referenceForParts(rootRef, parts) {\n  let isAttrs = parts[0] === 'attrs'; // TODO deprecate this\n\n  if (isAttrs) {\n    parts.shift();\n\n    if (parts.length === 1) {\n      return childRefFor(rootRef, parts[0]);\n    }\n  }\n\n  return childRefFromParts(rootRef, parts);\n}\n\nfunction parseAttributeBinding(microsyntax) {\n  let colonIndex = microsyntax.indexOf(':');\n\n  if (colonIndex === -1) {\n    assert('You cannot use class as an attributeBinding, use classNameBindings instead.', microsyntax !== 'class');\n    return [microsyntax, microsyntax, true];\n  } else {\n    let prop = microsyntax.substring(0, colonIndex);\n    let attribute = microsyntax.substring(colonIndex + 1);\n    assert('You cannot use class as an attributeBinding, use classNameBindings instead.', attribute !== 'class');\n    return [prop, attribute, false];\n  }\n}\nfunction installAttributeBinding(component, rootRef, parsed, operations) {\n  let [prop, attribute, isSimple] = parsed;\n\n  if (attribute === 'id') {\n    let elementId = get(component, prop);\n\n    if (elementId === undefined || elementId === null) {\n      elementId = component.elementId;\n    }\n\n    elementId = createPrimitiveRef(elementId);\n    operations.setAttribute('id', elementId, true, null);\n    return;\n  }\n\n  let isPath = prop.indexOf('.') > -1;\n  let reference = isPath ? referenceForParts(rootRef, prop.split('.')) : childRefFor(rootRef, prop);\n  assert(`Illegal attributeBinding: '${prop}' is not a valid attribute name.`, !(isSimple && isPath));\n\n  if (EMBER_COMPONENT_IS_VISIBLE && attribute === 'style' && createStyleBindingRef !== undefined) {\n    reference = createStyleBindingRef(reference, childRefFor(rootRef, 'isVisible'));\n  }\n\n  operations.setAttribute(attribute, reference, false, null);\n}\nconst DISPLAY_NONE = 'display: none;';\nconst SAFE_DISPLAY_NONE = htmlSafe(DISPLAY_NONE);\nlet createStyleBindingRef;\nlet installIsVisibleBinding;\n\nif (EMBER_COMPONENT_IS_VISIBLE) {\n  createStyleBindingRef = (inner, isVisibleRef) => {\n    return createComputeRef(() => {\n      let value = valueForRef(inner);\n      let isVisible = valueForRef(isVisibleRef);\n\n      if (DEBUG && isVisible !== undefined) {\n        deprecate(`The \\`isVisible\\` property on classic component classes is deprecated. Was accessed:\\n\\n${logTrackingStack()}`, false, {\n          id: 'ember-component.is-visible',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_ember-component-is-visible',\n          for: 'ember-source',\n          since: {\n            enabled: '3.15.0-beta.1'\n          }\n        });\n      }\n\n      if (isVisible !== false) {\n        return value;\n      } else if (!value) {\n        return SAFE_DISPLAY_NONE;\n      } else {\n        let style = value + ' ' + DISPLAY_NONE;\n        return isHTMLSafe(value) ? htmlSafe(style) : style;\n      }\n    });\n  };\n\n  installIsVisibleBinding = (rootRef, operations) => {\n    operations.setAttribute('style', createStyleBindingRef(UNDEFINED_REFERENCE, childRefFor(rootRef, 'isVisible')), false, null);\n  };\n}\n\nfunction createClassNameBindingRef(rootRef, microsyntax, operations) {\n  let [prop, truthy, falsy] = microsyntax.split(':');\n  let isStatic = prop === '';\n\n  if (isStatic) {\n    operations.setAttribute('class', createPrimitiveRef(truthy), true, null);\n  } else {\n    let isPath = prop.indexOf('.') > -1;\n    let parts = isPath ? prop.split('.') : [];\n    let value = isPath ? referenceForParts(rootRef, parts) : childRefFor(rootRef, prop);\n    let ref;\n\n    if (truthy === undefined) {\n      ref = createSimpleClassNameBindingRef(value, isPath ? parts[parts.length - 1] : prop);\n    } else {\n      ref = createColonClassNameBindingRef(value, truthy, falsy);\n    }\n\n    operations.setAttribute('class', ref, false, null);\n  }\n}\nfunction createSimpleClassNameBindingRef(inner, path) {\n  let dasherizedPath;\n  return createComputeRef(() => {\n    let value = valueForRef(inner);\n\n    if (value === true) {\n      assert('You must pass a path when binding a to a class name using classNameBindings', path !== undefined);\n      return dasherizedPath || (dasherizedPath = dasherize(path));\n    } else if (value || value === 0) {\n      return String(value);\n    } else {\n      return null;\n    }\n  });\n}\nfunction createColonClassNameBindingRef(inner, truthy, falsy) {\n  return createComputeRef(() => {\n    return valueForRef(inner) ? truthy : falsy;\n  });\n}\n\n/**\n@module ember\n*/\nconst ACTIONS = new _WeakSet();\nconst INVOKE = symbol('INVOKE');\n/**\n  The `{{action}}` helper provides a way to pass triggers for behavior (usually\n  just a function) between components, and into components from controllers.\n\n  ### Passing functions with the action helper\n\n  There are three contexts an action helper can be used in. The first two\n  contexts to discuss are attribute context, and Handlebars value context.\n\n  ```handlebars\n  {{! An example of attribute context }}\n  <div onclick={{action \"save\"}}></div>\n  {{! Examples of Handlebars value context }}\n  {{input on-input=(action \"save\")}}\n  {{yield (action \"refreshData\") andAnotherParam}}\n  ```\n\n  In these contexts,\n  the helper is called a \"closure action\" helper. Its behavior is simple:\n  If passed a function name, read that function off the `actions` property\n  of the current context. Once that function is read, or immediately if a function was\n  passed, create a closure over that function and any arguments.\n  The resulting value of an action helper used this way is simply a function.\n\n  For example, in the attribute context:\n\n  ```handlebars\n  {{! An example of attribute context }}\n  <div onclick={{action \"save\"}}></div>\n  ```\n\n  The resulting template render logic would be:\n\n  ```js\n  var div = document.createElement('div');\n  var actionFunction = (function(context){\n    return function() {\n      return context.actions.save.apply(context, arguments);\n    };\n  })(context);\n  div.onclick = actionFunction;\n  ```\n\n  Thus when the div is clicked, the action on that context is called.\n  Because the `actionFunction` is just a function, closure actions can be\n  passed between components and still execute in the correct context.\n\n  Here is an example action handler on a component:\n\n  ```app/components/my-component.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class extends Component {\n    @action\n    save() {\n      this.model.save();\n    }\n  }\n  ```\n\n  Actions are always looked up on the `actions` property of the current context.\n  This avoids collisions in the naming of common actions, such as `destroy`.\n  Two options can be passed to the `action` helper when it is used in this way.\n\n  * `target=someProperty` will look to `someProperty` instead of the current\n    context for the `actions` hash. This can be useful when targeting a\n    service for actions.\n  * `value=\"target.value\"` will read the path `target.value` off the first\n    argument to the action when it is called and rewrite the first argument\n    to be that value. This is useful when attaching actions to event listeners.\n\n  ### Invoking an action\n\n  Closure actions curry both their scope and any arguments. When invoked, any\n  additional arguments are added to the already curried list.\n  Actions should be invoked using the [sendAction](/ember/release/classes/Component/methods/sendAction?anchor=sendAction)\n  method. The first argument to `sendAction` is the action to be called, and\n  additional arguments are passed to the action function. This has interesting\n  properties combined with currying of arguments. For example:\n\n  ```app/components/update-name.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class extends Component {\n    @action\n    setName(model, name) {\n      model.set('name', name);\n    }\n  }\n  ```\n\n  ```app/components/update-name.hbs\n  {{input on-input=(action (action 'setName' @model) value=\"target.value\")}}\n  ```\n\n  The first argument (`@model`) was curried over, and the run-time argument (`event`)\n  becomes a second argument. Action calls can be nested this way because each simply\n  returns a function. Any function can be passed to the `{{action}}` helper, including\n  other actions.\n\n  Actions invoked with `sendAction` have the same currying behavior as demonstrated\n  with `on-input` above. For example:\n\n  ```app/components/my-input.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class extends Component {\n    @action\n    setName(model, name) {\n      model.set('name', name);\n    }\n  }\n  ```\n\n  ```handlebars\n  <MyInput @submit={{action 'setName' @model}} />\n  ```\n\n  or\n\n  ```handlebars\n  {{my-input submit=(action 'setName' @model)}}\n  ```\n\n  ```app/components/my-component.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    click() {\n      // Note that model is not passed, it was curried in the template\n      this.sendAction('submit', 'bob');\n    }\n  });\n  ```\n\n  ### Attaching actions to DOM elements\n\n  The third context of the `{{action}}` helper can be called \"element space\".\n  For example:\n\n  ```handlebars\n  {{! An example of element space }}\n  <div {{action \"save\"}}></div>\n  ```\n\n  Used this way, the `{{action}}` helper provides a useful shortcut for\n  registering an HTML element in a template for a single DOM event and\n  forwarding that interaction to the template's context (controller or component).\n  If the context of a template is a controller, actions used this way will\n  bubble to routes when the controller does not implement the specified action.\n  Once an action hits a route, it will bubble through the route hierarchy.\n\n  ### Event Propagation\n\n  `{{action}}` helpers called in element space can control event bubbling. Note\n  that the closure style actions cannot.\n\n  Events triggered through the action helper will automatically have\n  `.preventDefault()` called on them. You do not need to do so in your event\n  handlers. If you need to allow event propagation (to handle file inputs for\n  example) you can supply the `preventDefault=false` option to the `{{action}}` helper:\n\n  ```handlebars\n  <div {{action \"sayHello\" preventDefault=false}}>\n    <input type=\"file\" />\n    <input type=\"checkbox\" />\n  </div>\n  ```\n\n  To disable bubbling, pass `bubbles=false` to the helper:\n\n  ```handlebars\n  <button {{action 'edit' post bubbles=false}}>Edit</button>\n  ```\n\n  To disable bubbling with closure style actions you must create your own\n  wrapper helper that makes use of `event.stopPropagation()`:\n\n  ```handlebars\n  <div onclick={{disable-bubbling (action \"sayHello\")}}>Hello</div>\n  ```\n\n  ```app/helpers/disable-bubbling.js\n  import { helper } from '@ember/component/helper';\n\n  export function disableBubbling([action]) {\n    return function(event) {\n      event.stopPropagation();\n      return action(event);\n    };\n  }\n  export default helper(disableBubbling);\n  ```\n\n  If you need the default handler to trigger you should either register your\n  own event handler, or use event methods on your view class. See\n  [\"Responding to Browser Events\"](/ember/release/classes/Component)\n  in the documentation for `Component` for more information.\n\n  ### Specifying DOM event type\n\n  `{{action}}` helpers called in element space can specify an event type.\n  By default the `{{action}}` helper registers for DOM `click` events. You can\n  supply an `on` option to the helper to specify a different DOM event name:\n\n  ```handlebars\n  <div {{action \"anActionName\" on=\"doubleClick\"}}>\n    click me\n  </div>\n  ```\n\n  See [\"Event Names\"](/ember/release/classes/Component) for a list of\n  acceptable DOM event names.\n\n  ### Specifying whitelisted modifier keys\n\n  `{{action}}` helpers called in element space can specify modifier keys.\n  By default the `{{action}}` helper will ignore click events with pressed modifier\n  keys. You can supply an `allowedKeys` option to specify which keys should not be ignored.\n\n  ```handlebars\n  <div {{action \"anActionName\" allowedKeys=\"alt\"}}>\n    click me\n  </div>\n  ```\n\n  This way the action will fire when clicking with the alt key pressed down.\n  Alternatively, supply \"any\" to the `allowedKeys` option to accept any combination of modifier keys.\n\n  ```handlebars\n  <div {{action \"anActionName\" allowedKeys=\"any\"}}>\n    click me with any key pressed\n  </div>\n  ```\n\n  ### Specifying a Target\n\n  A `target` option can be provided to the helper to change\n  which object will receive the method call. This option must be a path\n  to an object, accessible in the current context:\n\n  ```app/templates/application.hbs\n  <div {{action \"anActionName\" target=someService}}>\n    click me\n  </div>\n  ```\n\n  ```app/controllers/application.js\n  import Controller from '@ember/controller';\n  import { inject as service } from '@ember/service';\n\n  export default class extends Controller {\n    @service someService;\n  }\n  ```\n\n  @method action\n  @for Ember.Templates.helpers\n  @public\n*/\n\nfunction action (args) {\n  let {\n    named,\n    positional\n  } = args;\n  let capturedArgs = positional.capture(); // The first two argument slots are reserved.\n  // pos[0] is the context (or `this`)\n  // pos[1] is the action name or function\n  // Anything else is an action argument.\n\n  let [context, action, ...restArgs] = capturedArgs;\n  let debugKey = action.debugLabel;\n  let target = named.has('target') ? named.get('target') : context;\n  let processArgs = makeArgsProcessor(named.has('value') && named.get('value'), restArgs);\n  let fn;\n\n  if (isInvokableRef(action)) {\n    fn = makeClosureAction(action, action, invokeRef, processArgs, debugKey);\n  } else {\n    fn = makeDynamicClosureAction(valueForRef(context), target, action, processArgs, debugKey);\n  }\n\n  ACTIONS.add(fn);\n  return createUnboundRef(fn, '(result of an `action` helper)');\n}\n\nfunction NOOP$1(args) {\n  return args;\n}\n\nfunction makeArgsProcessor(valuePathRef, actionArgsRef) {\n  let mergeArgs;\n\n  if (actionArgsRef.length > 0) {\n    mergeArgs = args => {\n      return actionArgsRef.map(valueForRef).concat(args);\n    };\n  }\n\n  let readValue;\n\n  if (valuePathRef) {\n    readValue = args => {\n      let valuePath = valueForRef(valuePathRef);\n\n      if (valuePath && args.length > 0) {\n        args[0] = get(args[0], valuePath);\n      }\n\n      return args;\n    };\n  }\n\n  if (mergeArgs && readValue) {\n    return args => {\n      return readValue(mergeArgs(args));\n    };\n  } else {\n    return mergeArgs || readValue || NOOP$1;\n  }\n}\n\nfunction makeDynamicClosureAction(context, targetRef, actionRef, processArgs, debugKey) {\n  // We don't allow undefined/null values, so this creates a throw-away action to trigger the assertions\n  if (DEBUG) {\n    makeClosureAction(context, valueForRef(targetRef), valueForRef(actionRef), processArgs, debugKey);\n  }\n\n  return (...args) => {\n    return makeClosureAction(context, valueForRef(targetRef), valueForRef(actionRef), processArgs, debugKey)(...args);\n  };\n}\n\nfunction makeClosureAction(context, target, action, processArgs, debugKey) {\n  let self;\n  let fn;\n  assert(`Action passed is null or undefined in (action) from ${target}.`, action !== undefined && action !== null);\n\n  if (typeof action[INVOKE] === 'function') {\n    deprecate(`Usage of the private INVOKE API to make an object callable via action or fn is no longer supported. Please update to pass in a callback function instead. Received: ${String(action)}`, false, {\n      until: '3.25.0',\n      id: 'actions.custom-invoke-invokable',\n      for: 'ember-source',\n      since: {\n        enabled: '3.23.0-beta.1'\n      }\n    });\n    self = action;\n    fn = action[INVOKE];\n  } else {\n    let typeofAction = typeof action;\n\n    if (typeofAction === 'string') {\n      self = target;\n      fn = target.actions && target.actions[action];\n      assert(`An action named '${action}' was not found in ${target}`, Boolean(fn));\n    } else if (typeofAction === 'function') {\n      self = context;\n      fn = action;\n    } else {\n      // tslint:disable-next-line:max-line-length\n      assert(`An action could not be made for \\`${debugKey || action}\\` in ${target}. Please confirm that you are using either a quoted action name (i.e. \\`(action '${debugKey || 'myAction'}')\\`) or a function available in ${target}.`, false);\n    }\n  }\n\n  return (...args) => {\n    let payload = {\n      target: self,\n      args,\n      label: '@glimmer/closure-action'\n    };\n    return flaggedInstrument('interaction.ember-action', payload, () => {\n      return join(self, fn, ...processArgs(args));\n    });\n  };\n} // The code above:\n// 1. Finds an action function, usually on the `actions` hash\n// 2. Calls it with the target as the correct `this` context\n// Previously, `UPDATE_REFERENCED_VALUE` was a method on the reference itself,\n// so this made a bit more sense. Now, it isn't, and so we need to create a\n// function that can have `this` bound to it when called. This allows us to use\n// the same codepath to call `updateRef` on the reference.\n\n\nfunction invokeRef(value) {\n  updateRef(this, value);\n}\n\n// inputs needed by CurlyComponents (attrs and props, with mutable\n// cells, etc).\n\nfunction processComponentArgs(namedArgs) {\n  let attrs = Object.create(null);\n  let props = Object.create(null);\n  props[ARGS] = namedArgs;\n\n  for (let name in namedArgs) {\n    let ref = namedArgs[name];\n    let value = valueForRef(ref);\n    let isAction = typeof value === 'function' && ACTIONS.has(value);\n\n    if (isUpdatableRef(ref) && !isAction) {\n      attrs[name] = new MutableCell(ref, value);\n    } else {\n      attrs[name] = value;\n    }\n\n    props[name] = value;\n  }\n\n  props.attrs = attrs;\n  return props;\n}\nconst REF = symbol('REF');\n\nclass MutableCell {\n  constructor(ref, value) {\n    this[MUTABLE_CELL] = true;\n    this[REF] = ref;\n    this.value = value;\n  }\n\n  update(val) {\n    updateRef(this[REF], val);\n  }\n\n}\n\nvar __rest = undefined && undefined.__rest || function (s, e) {\n  var t = {};\n\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nconst EMBER_VIEW_REF = createPrimitiveRef('ember-view');\n\nfunction aliasIdToElementId(args, props) {\n  if (args.named.has('id')) {\n    // tslint:disable-next-line:max-line-length\n    assert(`You cannot invoke a component with both 'id' and 'elementId' at the same time.`, !args.named.has('elementId'));\n    props.elementId = props.id;\n  }\n} // We must traverse the attributeBindings in reverse keeping track of\n// what has already been applied. This is essentially refining the concatenated\n// properties applying right to left.\n\n\nfunction applyAttributeBindings(attributeBindings, component, rootRef, operations) {\n  let seen = [];\n  let i = attributeBindings.length - 1;\n\n  while (i !== -1) {\n    let binding = attributeBindings[i];\n    let parsed = parseAttributeBinding(binding);\n    let attribute = parsed[1];\n\n    if (seen.indexOf(attribute) === -1) {\n      seen.push(attribute);\n      installAttributeBinding(component, rootRef, parsed, operations);\n    }\n\n    i--;\n  }\n\n  if (seen.indexOf('id') === -1) {\n    let id = component.elementId ? component.elementId : guidFor(component);\n    operations.setAttribute('id', createPrimitiveRef(id), false, null);\n  }\n\n  if (EMBER_COMPONENT_IS_VISIBLE && installIsVisibleBinding !== undefined && seen.indexOf('style') === -1) {\n    installIsVisibleBinding(rootRef, operations);\n  }\n}\n\nconst DEFAULT_LAYOUT = privatize`template:components/-default`;\nconst EMPTY_POSITIONAL_ARGS = [];\ndebugFreeze(EMPTY_POSITIONAL_ARGS);\nclass CurlyComponentManager extends BaseInternalComponentManager {\n  templateFor(component) {\n    let {\n      layout,\n      layoutName\n    } = component;\n    let owner = getOwner(component);\n    let factory;\n\n    if (layout === undefined) {\n      if (layoutName !== undefined) {\n        let _factory = owner.lookup(`template:${layoutName}`);\n\n        assert(`Layout \\`${layoutName}\\` not found!`, _factory !== undefined);\n        factory = _factory;\n      } else {\n        factory = owner.lookup(DEFAULT_LAYOUT);\n      }\n    } else if (isTemplateFactory(layout)) {\n      factory = layout;\n    } else {\n      // we were provided an instance already\n      return layout;\n    }\n\n    return factory(owner);\n  }\n\n  getDynamicLayout(bucket) {\n    return this.templateFor(bucket.component);\n  }\n\n  getTagName(state) {\n    let {\n      component,\n      hasWrappedElement\n    } = state;\n\n    if (!hasWrappedElement) {\n      return null;\n    }\n\n    return component && component.tagName || 'div';\n  }\n\n  getCapabilities(state) {\n    return state.capabilities;\n  }\n\n  prepareArgs(state, args) {\n    if (args.named.has('__ARGS__')) {\n      let _a = args.named.capture(),\n          {\n        __ARGS__\n      } = _a,\n          rest = __rest(_a, [\"__ARGS__\"]);\n\n      let prepared = {\n        positional: EMPTY_POSITIONAL_ARGS,\n        named: Object.assign(Object.assign({}, rest), valueForRef(__ARGS__))\n      };\n      return prepared;\n    }\n\n    const {\n      positionalParams\n    } = state.ComponentClass.class; // early exits\n\n    if (positionalParams === undefined || positionalParams === null || args.positional.length === 0) {\n      return null;\n    }\n\n    let named;\n\n    if (typeof positionalParams === 'string') {\n      assert(`You cannot specify positional parameters and the hash argument \\`${positionalParams}\\`.`, !args.named.has(positionalParams));\n      let captured = args.positional.capture();\n      named = {\n        [positionalParams]: createComputeRef(() => reifyPositional(captured))\n      };\n      assign(named, args.named.capture());\n    } else if (Array.isArray(positionalParams) && positionalParams.length > 0) {\n      const count = Math.min(positionalParams.length, args.positional.length);\n      named = {};\n      assign(named, args.named.capture());\n\n      for (let i = 0; i < count; i++) {\n        // As of TS 3.7, tsc is giving us the following error on this line without the type annotation\n        //\n        //   TS7022: 'name' implicitly has type 'any' because it does not have a type annotation and is\n        //   referenced directly or indirectly in its own initializer.\n        //\n        // This is almost certainly a TypeScript bug, feel free to try and remove the annotation after\n        // upgrading if it is not needed anymore.\n        const name = positionalParams[i];\n        assert(`You cannot specify both a positional param (at position ${i}) and the hash argument \\`${name}\\`.`, !args.named.has(name));\n        named[name] = args.positional.at(i);\n      }\n    } else {\n      return null;\n    }\n\n    return {\n      positional: EMPTY_ARRAY,\n      named\n    };\n  }\n  /*\n   * This hook is responsible for actually instantiating the component instance.\n   * It also is where we perform additional bookkeeping to support legacy\n   * features like exposed by view mixins like ChildViewSupport, ActionSupport,\n   * etc.\n   */\n\n\n  create(environment, state, args, dynamicScope, callerSelfRef, hasBlock) {\n    // Get the nearest concrete component instance from the scope. \"Virtual\"\n    // components will be skipped.\n    let parentView = dynamicScope.view; // Get the Ember.Component subclass to instantiate for this component.\n\n    let factory = state.ComponentClass; // Capture the arguments, which tells Glimmer to give us our own, stable\n    // copy of the Arguments object that is safe to hold on to between renders.\n\n    let capturedArgs = args.named.capture();\n    beginTrackFrame();\n    let props = processComponentArgs(capturedArgs);\n    let argsTag = endTrackFrame(); // Alias `id` argument to `elementId` property on the component instance.\n\n    aliasIdToElementId(args, props); // Set component instance's parentView property to point to nearest concrete\n    // component.\n\n    props.parentView = parentView; // Set whether this component was invoked with a block\n    // (`{{#my-component}}{{/my-component}}`) or without one\n    // (`{{my-component}}`).\n\n    props[HAS_BLOCK] = hasBlock; // Save the current `this` context of the template as the component's\n    // `_target`, so bubbled actions are routed to the right place.\n\n    props._target = valueForRef(callerSelfRef); // static layout asserts CurriedDefinition\n\n    if (state.template) {\n      props.layout = state.template;\n    } // caller:\n    // <FaIcon @name=\"bug\" />\n    //\n    // callee:\n    // <i class=\"fa-{{@name}}\"></i>\n    // Now that we've built up all of the properties to set on the component instance,\n    // actually create it.\n\n\n    beginUntrackFrame();\n    let component = factory.create(props);\n\n    let finalizer = _instrumentStart('render.component', initialRenderInstrumentDetails, component); // We become the new parentView for downstream components, so save our\n    // component off on the dynamic scope.\n\n\n    dynamicScope.view = component; // Unless we're the root component, we need to add ourselves to our parent\n    // component's childViews array.\n\n    if (parentView !== null && parentView !== undefined) {\n      addChildView(parentView, component);\n    }\n\n    component.trigger('didReceiveAttrs');\n    let hasWrappedElement = component.tagName !== ''; // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n\n    if (!hasWrappedElement) {\n      if (environment.isInteractive) {\n        component.trigger('willRender');\n      }\n\n      component._transitionTo('hasElement');\n\n      if (environment.isInteractive) {\n        component.trigger('willInsertElement');\n      }\n    } // Track additional lifecycle metadata about this component in a state bucket.\n    // Essentially we're saving off all the state we'll need in the future.\n\n\n    let bucket = new ComponentStateBucket(environment, component, capturedArgs, argsTag, finalizer, hasWrappedElement);\n\n    if (args.named.has('class')) {\n      bucket.classRef = args.named.get('class');\n    }\n\n    if (DEBUG) {\n      processComponentInitializationAssertions(component, props);\n    }\n\n    if (environment.isInteractive && hasWrappedElement) {\n      component.trigger('willRender');\n    }\n\n    endUntrackFrame(); // consume every argument so we always run again\n\n    consumeTag(bucket.argsTag);\n    consumeTag(component[DIRTY_TAG]);\n    return bucket;\n  }\n\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n\n  getSelf({\n    rootRef\n  }) {\n    return rootRef;\n  }\n\n  didCreateElement({\n    component,\n    classRef,\n    environment,\n    rootRef\n  }, element, operations) {\n    setViewElement(component, element);\n    setElementView(element, component);\n    let {\n      attributeBindings,\n      classNames,\n      classNameBindings\n    } = component;\n\n    if (attributeBindings && attributeBindings.length) {\n      applyAttributeBindings(attributeBindings, component, rootRef, operations);\n    } else {\n      let id = component.elementId ? component.elementId : guidFor(component);\n      operations.setAttribute('id', createPrimitiveRef(id), false, null);\n\n      if (EMBER_COMPONENT_IS_VISIBLE) {\n        installIsVisibleBinding(rootRef, operations);\n      }\n    }\n\n    if (classRef) {\n      const ref = createSimpleClassNameBindingRef(classRef);\n      operations.setAttribute('class', ref, false, null);\n    }\n\n    if (classNames && classNames.length) {\n      classNames.forEach(name => {\n        operations.setAttribute('class', createPrimitiveRef(name), false, null);\n      });\n    }\n\n    if (classNameBindings && classNameBindings.length) {\n      classNameBindings.forEach(binding => {\n        createClassNameBindingRef(rootRef, binding, operations);\n      });\n    }\n\n    operations.setAttribute('class', EMBER_VIEW_REF, false, null);\n\n    if ('ariaRole' in component) {\n      operations.setAttribute('role', childRefFor(rootRef, 'ariaRole'), false, null);\n    }\n\n    component._transitionTo('hasElement');\n\n    if (environment.isInteractive) {\n      beginUntrackFrame();\n      component.trigger('willInsertElement');\n      endUntrackFrame();\n    }\n  }\n\n  didRenderLayout(bucket, bounds) {\n    bucket.component[BOUNDS] = bounds;\n    bucket.finalize();\n  }\n\n  didCreate({\n    component,\n    environment\n  }) {\n    if (environment.isInteractive) {\n      component._transitionTo('inDOM');\n\n      component.trigger('didInsertElement');\n      component.trigger('didRender');\n    }\n  }\n\n  update(bucket) {\n    let {\n      component,\n      args,\n      argsTag,\n      argsRevision,\n      environment\n    } = bucket;\n    bucket.finalizer = _instrumentStart('render.component', rerenderInstrumentDetails, component);\n    beginUntrackFrame();\n\n    if (args !== null && !validateTag(argsTag, argsRevision)) {\n      beginTrackFrame();\n      let props = processComponentArgs(args);\n      argsTag = bucket.argsTag = endTrackFrame();\n      bucket.argsRevision = valueForTag(argsTag);\n      component[IS_DISPATCHING_ATTRS] = true;\n      component.setProperties(props);\n      component[IS_DISPATCHING_ATTRS] = false;\n      component.trigger('didUpdateAttrs');\n      component.trigger('didReceiveAttrs');\n    }\n\n    if (environment.isInteractive) {\n      component.trigger('willUpdate');\n      component.trigger('willRender');\n    }\n\n    endUntrackFrame();\n    consumeTag(argsTag);\n    consumeTag(component[DIRTY_TAG]);\n  }\n\n  didUpdateLayout(bucket) {\n    bucket.finalize();\n  }\n\n  didUpdate({\n    component,\n    environment\n  }) {\n    if (environment.isInteractive) {\n      component.trigger('didUpdate');\n      component.trigger('didRender');\n    }\n  }\n\n  getDestroyable(bucket) {\n    return bucket;\n  }\n\n}\nfunction processComponentInitializationAssertions(component, props) {\n  assert(`classNameBindings must be non-empty strings: ${component}`, (() => {\n    let {\n      classNameBindings\n    } = component;\n\n    for (let i = 0; i < classNameBindings.length; i++) {\n      let binding = classNameBindings[i];\n\n      if (typeof binding !== 'string' || binding.length === 0) {\n        return false;\n      }\n    }\n\n    return true;\n  })());\n  assert(`classNameBindings must not have spaces in them: ${component}`, (() => {\n    let {\n      classNameBindings\n    } = component;\n\n    for (let i = 0; i < classNameBindings.length; i++) {\n      let binding = classNameBindings[i];\n\n      if (binding.split(' ').length > 1) {\n        return false;\n      }\n    }\n\n    return true;\n  })());\n  assert(`You cannot use \\`classNameBindings\\` on a tag-less component: ${component}`, component.tagName !== '' || !component.classNameBindings || component.classNameBindings.length === 0);\n  assert(`You cannot use \\`elementId\\` on a tag-less component: ${component}`, component.tagName !== '' || props.id === component.elementId || !component.elementId && component.elementId !== '');\n  assert(`You cannot use \\`attributeBindings\\` on a tag-less component: ${component}`, component.tagName !== '' || !component.attributeBindings || component.attributeBindings.length === 0);\n}\nfunction initialRenderInstrumentDetails(component) {\n  return component.instrumentDetails({\n    initialRender: true\n  });\n}\nfunction rerenderInstrumentDetails(component) {\n  return component.instrumentDetails({\n    initialRender: false\n  });\n}\nconst CURLY_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: true,\n  createArgs: true,\n  attributeHook: true,\n  elementHook: true,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: true,\n  willDestroy: true\n};\nconst CURLY_COMPONENT_MANAGER = new CurlyComponentManager();\nclass CurlyComponentDefinition {\n  constructor(name, ComponentClass, template, args) {\n    this.name = name;\n    this.ComponentClass = ComponentClass;\n    this.template = template;\n    this.args = args;\n    this.manager = CURLY_COMPONENT_MANAGER;\n    this.state = {\n      name,\n      ComponentClass,\n      template,\n      capabilities: CURLY_CAPABILITIES\n    };\n  }\n\n}\n\nclass RootComponentManager extends CurlyComponentManager {\n  constructor(component) {\n    super();\n    this.component = component;\n  }\n\n  getStaticLayout() {\n    return this.templateFor(this.component);\n  }\n\n  create(environment, _state, _args, dynamicScope) {\n    let component = this.component;\n\n    let finalizer = _instrumentStart('render.component', initialRenderInstrumentDetails, component);\n\n    dynamicScope.view = component;\n    let hasWrappedElement = component.tagName !== ''; // We usually do this in the `didCreateElement`, but that hook doesn't fire for tagless components\n\n    if (!hasWrappedElement) {\n      if (environment.isInteractive) {\n        component.trigger('willRender');\n      }\n\n      component._transitionTo('hasElement');\n\n      if (environment.isInteractive) {\n        component.trigger('willInsertElement');\n      }\n    }\n\n    if (DEBUG) {\n      processComponentInitializationAssertions(component, {});\n    }\n\n    let bucket = new ComponentStateBucket(environment, component, null, CONSTANT_TAG, finalizer, hasWrappedElement);\n    consumeTag(component[DIRTY_TAG]);\n    return bucket;\n  }\n\n} // ROOT is the top-level template it has nothing but one yield.\n// it is supposed to have a dummy element\n\n\nconst ROOT_CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: true,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: true,\n  elementHook: true,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: true,\n  willDestroy: false\n};\nclass RootComponentDefinition {\n  constructor(component) {\n    this.component = component;\n    let manager = new RootComponentManager(component);\n    this.manager = manager;\n    let factory = getFactoryFor(component);\n    this.state = {\n      name: factory.fullName.slice(10),\n      capabilities: ROOT_CAPABILITIES,\n      ComponentClass: factory\n    };\n  }\n\n}\n\n/**\n@module ember\n*/\n/**\n  The `{{#each}}` helper loops over elements in a collection. It is an extension\n  of the base Handlebars `{{#each}}` helper.\n\n  The default behavior of `{{#each}}` is to yield its inner block once for every\n  item in an array passing the item as the first block parameter.\n\n  Assuming the `@developers` argument contains this array:\n\n  ```javascript\n  [{ name: 'Yehuda' },{ name: 'Tom' }, { name: 'Paul' }];\n  ```\n\n  ```handlebars\n  <ul>\n    {{#each @developers as |person|}}\n      <li>Hello, {{person.name}}!</li>\n    {{/each}}\n  </ul>\n  ```\n\n  The same rules apply to arrays of primitives.\n\n  ```javascript\n  ['Yehuda', 'Tom', 'Paul']\n  ```\n\n  ```handlebars\n  <ul>\n    {{#each @developerNames as |name|}}\n      <li>Hello, {{name}}!</li>\n    {{/each}}\n  </ul>\n  ```\n\n  During iteration, the index of each item in the array is provided as a second block\n  parameter.\n\n  ```handlebars\n  <ul>\n    {{#each @developers as |person index|}}\n      <li>Hello, {{person.name}}! You're number {{index}} in line</li>\n    {{/each}}\n  </ul>\n  ```\n\n  ### Specifying Keys\n\n  In order to improve rendering speed, Ember will try to reuse the DOM elements\n  where possible. Specifically, if the same item is present in the array both\n  before and after the change, its DOM output will be reused.\n\n  The `key` option is used to tell Ember how to determine if the items in the\n  array being iterated over with `{{#each}}` has changed between renders. By\n  default the item's object identity is used.\n\n  This is usually sufficient, so in most cases, the `key` option is simply not\n  needed. However, in some rare cases, the objects' identities may change even\n  though they represent the same underlying data.\n\n  For example:\n\n  ```javascript\n  people.map(person => {\n    return { ...person, type: 'developer' };\n  });\n  ```\n\n  In this case, each time the `people` array is `map`-ed over, it will produce\n  an new array with completely different objects between renders. In these cases,\n  you can help Ember determine how these objects related to each other with the\n  `key` option:\n\n  ```handlebars\n  <ul>\n    {{#each @developers key=\"name\" as |person|}}\n      <li>Hello, {{person.name}}!</li>\n    {{/each}}\n  </ul>\n  ```\n\n  By doing so, Ember will use the value of the property specified (`person.name`\n  in the example) to find a \"match\" from the previous render. That is, if Ember\n  has previously seen an object from the `@developers` array with a matching\n  name, its DOM elements will be re-used.\n\n  There are two special values for `key`:\n\n    * `@index` - The index of the item in the array.\n    * `@identity` - The item in the array itself.\n\n  ### {{else}} condition\n\n  `{{#each}}` can have a matching `{{else}}`. The contents of this block will render\n  if the collection is empty.\n\n  ```handlebars\n  <ul>\n    {{#each @developers as |person|}}\n      <li>{{person.name}} is available!</li>\n    {{else}}\n      <li>Sorry, nobody is available for this task.</li>\n    {{/each}}\n  </ul>\n  ```\n\n  @method each\n  @for Ember.Templates.helpers\n  @public\n */\n\n/**\n  The `{{each-in}}` helper loops over properties on an object.\n\n  For example, given this component definition:\n\n  ```app/components/developer-details.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class extends Component {\n    @tracked developer = {\n      \"name\": \"Shelly Sails\",\n      \"age\": 42\n    };\n  }\n  ```\n\n  This template would display all properties on the `developer`\n  object in a list:\n\n  ```app/components/developer-details.hbs\n  <ul>\n    {{#each-in this.developer as |key value|}}\n      <li>{{key}}: {{value}}</li>\n    {{/each-in}}\n  </ul>\n  ```\n\n  Outputting their name and age.\n\n  @method each-in\n  @for Ember.Templates.helpers\n  @public\n  @since 2.1.0\n*/\n\nclass EachInWrapper {\n  constructor(inner) {\n    this.inner = inner;\n  }\n\n}\nfunction eachIn (args) {\n  let inner = args.positional.at(0);\n  return createComputeRef(() => {\n    let iterable = valueForRef(inner);\n    consumeTag(tagForObject(iterable));\n\n    if (isProxy(iterable)) {\n      // this is because the each-in doesn't actually get(proxy, 'key') but bypasses it\n      // and the proxy's tag is lazy updated on access\n      iterable = _contentFor(iterable);\n    }\n\n    return new EachInWrapper(iterable);\n  });\n}\n\nfunction toIterator(iterable) {\n  if (iterable instanceof EachInWrapper) {\n    return toEachInIterator(iterable.inner);\n  } else {\n    return toEachIterator(iterable);\n  }\n}\n\nfunction toEachInIterator(iterable) {\n  if (!isIndexable(iterable)) {\n    return null;\n  }\n\n  if (Array.isArray(iterable) || isEmberArray(iterable)) {\n    return ObjectIterator.fromIndexable(iterable);\n  } else if (HAS_NATIVE_SYMBOL && isNativeIterable(iterable)) {\n    return MapLikeNativeIterator.from(iterable);\n  } else if (hasForEach(iterable)) {\n    return ObjectIterator.fromForEachable(iterable);\n  } else {\n    return ObjectIterator.fromIndexable(iterable);\n  }\n}\n\nfunction toEachIterator(iterable) {\n  if (!isObject(iterable)) {\n    return null;\n  }\n\n  if (Array.isArray(iterable)) {\n    return ArrayIterator.from(iterable);\n  } else if (isEmberArray(iterable)) {\n    return EmberArrayIterator.from(iterable);\n  } else if (HAS_NATIVE_SYMBOL && isNativeIterable(iterable)) {\n    return ArrayLikeNativeIterator.from(iterable);\n  } else if (hasForEach(iterable)) {\n    return ArrayIterator.fromForEachable(iterable);\n  } else {\n    return null;\n  }\n}\n\nclass BoundedIterator {\n  constructor(length) {\n    this.length = length;\n    this.position = 0;\n  }\n\n  isEmpty() {\n    return false;\n  }\n\n  memoFor(position) {\n    return position;\n  }\n\n  next() {\n    let {\n      length,\n      position\n    } = this;\n\n    if (position >= length) {\n      return null;\n    }\n\n    let value = this.valueFor(position);\n    let memo = this.memoFor(position);\n    this.position++;\n    return {\n      value,\n      memo\n    };\n  }\n\n}\n\nclass ArrayIterator extends BoundedIterator {\n  constructor(array) {\n    super(array.length);\n    this.array = array;\n  }\n\n  static from(iterable) {\n    return iterable.length > 0 ? new this(iterable) : null;\n  }\n\n  static fromForEachable(object) {\n    let array = [];\n    object.forEach(item => array.push(item));\n    return this.from(array);\n  }\n\n  valueFor(position) {\n    return this.array[position];\n  }\n\n}\n\nclass EmberArrayIterator extends BoundedIterator {\n  constructor(array) {\n    super(array.length);\n    this.array = array;\n  }\n\n  static from(iterable) {\n    return iterable.length > 0 ? new this(iterable) : null;\n  }\n\n  valueFor(position) {\n    return objectAt(this.array, position);\n  }\n\n}\n\nclass ObjectIterator extends BoundedIterator {\n  constructor(keys, values) {\n    super(values.length);\n    this.keys = keys;\n    this.values = values;\n  }\n\n  static fromIndexable(obj) {\n    let keys = Object.keys(obj);\n    let {\n      length\n    } = keys;\n\n    if (length === 0) {\n      return null;\n    } else {\n      let values = [];\n\n      for (let i = 0; i < length; i++) {\n        let value;\n        let key = keys[i];\n        value = obj[key]; // Add the tag of the returned value if it is an array, since arrays\n        // should always cause updates if they are consumed and then changed\n\n        if (isTracking()) {\n          consumeTag(tagFor(obj, key));\n\n          if (Array.isArray(value)) {\n            consumeTag(tagFor(value, '[]'));\n          }\n        }\n\n        values.push(value);\n      }\n\n      return new this(keys, values);\n    }\n  }\n\n  static fromForEachable(obj) {\n    let keys = [];\n    let values = [];\n    let length = 0;\n    let isMapLike = false; // Not using an arrow function here so we can get an accurate `arguments`\n\n    obj.forEach(function (value, key) {\n      isMapLike = isMapLike || arguments.length >= 2;\n\n      if (isMapLike) {\n        keys.push(key);\n      }\n\n      values.push(value);\n      length++;\n    });\n\n    if (length === 0) {\n      return null;\n    } else if (isMapLike) {\n      return new this(keys, values);\n    } else {\n      return new ArrayIterator(values);\n    }\n  }\n\n  valueFor(position) {\n    return this.values[position];\n  }\n\n  memoFor(position) {\n    return this.keys[position];\n  }\n\n}\n\nclass NativeIterator {\n  constructor(iterable, result) {\n    this.iterable = iterable;\n    this.result = result;\n    this.position = 0;\n  }\n\n  static from(iterable) {\n    let iterator = iterable[Symbol.iterator]();\n    let result = iterator.next();\n    let {\n      done\n    } = result;\n\n    if (done) {\n      return null;\n    } else {\n      return new this(iterator, result);\n    }\n  }\n\n  isEmpty() {\n    return false;\n  }\n\n  next() {\n    let {\n      iterable,\n      result,\n      position\n    } = this;\n\n    if (result.done) {\n      return null;\n    }\n\n    let value = this.valueFor(result, position);\n    let memo = this.memoFor(result, position);\n    this.position++;\n    this.result = iterable.next();\n    return {\n      value,\n      memo\n    };\n  }\n\n}\n\nclass ArrayLikeNativeIterator extends NativeIterator {\n  valueFor(result) {\n    return result.value;\n  }\n\n  memoFor(_result, position) {\n    return position;\n  }\n\n}\n\nclass MapLikeNativeIterator extends NativeIterator {\n  valueFor(result) {\n    return result.value[1];\n  }\n\n  memoFor(result) {\n    return result.value[0];\n  }\n\n}\n\nfunction hasForEach(value) {\n  return typeof value['forEach'] === 'function';\n}\n\nfunction isNativeIterable(value) {\n  return typeof value[Symbol.iterator] === 'function';\n}\n\nfunction isIndexable(value) {\n  return value !== null && (typeof value === 'object' || typeof value === 'function');\n}\n\nfunction toBool$1(predicate) {\n  if (isProxy(predicate)) {\n    consumeTag(tagForProperty(predicate, 'content'));\n    return Boolean(get(predicate, 'isTruthy'));\n  } else if (isArray(predicate)) {\n    consumeTag(tagForProperty(predicate, '[]'));\n    return predicate.length !== 0;\n  } else {\n    return Boolean(predicate);\n  }\n}\n\n// Setup global context\n\nsetGlobalContext({\n  scheduleRevalidate() {\n    backburner.ensureInstance();\n  },\n\n  toBool: toBool$1,\n  toIterator,\n  getProp: _getProp,\n  setProp: set,\n  getPath: get,\n\n  scheduleDestroy(destroyable, destructor) {\n    schedule('actions', null, destructor, destroyable);\n  },\n\n  scheduleDestroyed(finalizeDestructor) {\n    schedule('destroy', null, finalizeDestructor);\n  },\n\n  warnIfStyleNotTrusted(value) {\n    warn(constructStyleDeprecationMessage(value), (() => {\n      if (value === null || value === undefined || isHTMLSafe(value)) {\n        return true;\n      }\n\n      return false;\n    })(), {\n      id: 'ember-htmlbars.style-xss-warning'\n    });\n  }\n\n});\n\nif (DEBUG) {\n  setTrackingTransactionEnv({\n    assert(message) {\n      assert(message, false);\n    },\n\n    deprecate(message) {\n      deprecate(message, false, {\n        id: 'autotracking.mutation-after-consumption',\n        until: '4.0.0',\n        for: 'ember-source',\n        since: {\n          enabled: '3.21.0'\n        }\n      });\n    },\n\n    debugMessage(obj, keyName) {\n      let dirtyString = keyName ? `\\`${keyName}\\` on \\`${getDebugName(obj)}\\`` : `\\`${getDebugName(obj)}\\``;\n      return `You attempted to update ${dirtyString}, but it had already been used previously in the same computation.  Attempting to update a value after using it in a computation can cause logical errors, infinite revalidation bugs, and performance issues, and is not supported.`;\n    }\n\n  });\n} ///////////\n// Define environment delegate\n\n\nclass EmberEnvironmentDelegate {\n  constructor(owner, isInteractive) {\n    this.owner = owner;\n    this.isInteractive = isInteractive;\n    this.enableDebugTooling = ENV._DEBUG_RENDER_TREE;\n  }\n\n  onTransactionCommit() {}\n\n}\n\nconst CAPABILITIES$1 = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false\n};\nfunction capabilities(managerAPI, options = {}) {\n  assert('Invalid component manager compatibility specified', managerAPI === '3.4' || managerAPI === '3.13');\n  let updateHook = true;\n\n  if (managerAPI === '3.13') {\n    updateHook = Boolean(options.updateHook);\n  }\n\n  return buildCapabilities({\n    asyncLifeCycleCallbacks: Boolean(options.asyncLifecycleCallbacks),\n    destructor: Boolean(options.destructor),\n    updateHook\n  });\n}\nfunction hasAsyncLifeCycleCallbacks(delegate) {\n  return delegate.capabilities.asyncLifeCycleCallbacks;\n}\nfunction hasUpdateHook(delegate) {\n  return delegate.capabilities.updateHook;\n}\nfunction hasAsyncUpdateHook(delegate) {\n  return hasAsyncLifeCycleCallbacks(delegate) && hasUpdateHook(delegate);\n}\nfunction hasDestructors(delegate) {\n  return delegate.capabilities.destructor;\n}\n/**\n  The CustomComponentManager allows addons to provide custom component\n  implementations that integrate seamlessly into Ember. This is accomplished\n  through a delegate, registered with the custom component manager, which\n  implements a set of hooks that determine component behavior.\n\n  To create a custom component manager, instantiate a new CustomComponentManager\n  class and pass the delegate as the first argument:\n\n  ```js\n  let manager = new CustomComponentManager({\n    // ...delegate implementation...\n  });\n  ```\n\n  ## Delegate Hooks\n\n  Throughout the lifecycle of a component, the component manager will invoke\n  delegate hooks that are responsible for surfacing those lifecycle changes to\n  the end developer.\n\n  * `create()` - invoked when a new instance of a component should be created\n  * `update()` - invoked when the arguments passed to a component change\n  * `getContext()` - returns the object that should be\n*/\n\nclass CustomComponentManager extends BaseInternalComponentManager {\n  create(env, definition, vmArgs) {\n    let {\n      delegate\n    } = definition;\n    let args = argsProxyFor(vmArgs.capture(), 'component');\n    let component;\n\n    if (DEBUG && deprecateMutationsInTrackingTransaction !== undefined) {\n      deprecateMutationsInTrackingTransaction(() => {\n        component = delegate.createComponent(definition.ComponentClass.class, args);\n      });\n    } else {\n      component = delegate.createComponent(definition.ComponentClass.class, args);\n    }\n\n    let bucket = new CustomComponentState(delegate, component, args, env);\n    return bucket;\n  }\n\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n\n  update(bucket) {\n    if (hasUpdateHook(bucket.delegate)) {\n      let {\n        delegate,\n        component,\n        args\n      } = bucket;\n      delegate.updateComponent(component, args);\n    }\n  }\n\n  didCreate({\n    delegate,\n    component\n  }) {\n    if (hasAsyncLifeCycleCallbacks(delegate)) {\n      delegate.didCreateComponent(component);\n    }\n  }\n\n  didUpdate({\n    delegate,\n    component\n  }) {\n    if (hasAsyncUpdateHook(delegate)) {\n      delegate.didUpdateComponent(component);\n    }\n  }\n\n  didRenderLayout() {}\n\n  didUpdateLayout() {}\n\n  getSelf({\n    delegate,\n    component\n  }) {\n    return createConstRef(delegate.getContext(component), 'this');\n  }\n\n  getDestroyable(bucket) {\n    return bucket;\n  }\n\n  getCapabilities() {\n    return CAPABILITIES$1;\n  }\n\n  getStaticLayout(state) {\n    return state.template;\n  }\n\n}\nconst CUSTOM_COMPONENT_MANAGER = new CustomComponentManager();\n/**\n * Stores internal state about a component instance after it's been created.\n */\n\nclass CustomComponentState {\n  constructor(delegate, component, args, env) {\n    this.delegate = delegate;\n    this.component = component;\n    this.args = args;\n    this.env = env;\n\n    if (hasDestructors(delegate)) {\n      registerDestructor(this, () => delegate.destroyComponent(component));\n    }\n  }\n\n}\nclass CustomManagerDefinition {\n  constructor(name, ComponentClass, delegate, template) {\n    this.name = name;\n    this.ComponentClass = ComponentClass;\n    this.delegate = delegate;\n    this.template = template;\n    this.manager = CUSTOM_COMPONENT_MANAGER;\n    this.state = {\n      name,\n      ComponentClass,\n      template,\n      delegate\n    };\n  }\n\n}\n\nconst CAPABILITIES$2 = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: true,\n  dynamicScope: false,\n  updateHook: false,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false\n};\nclass InternalComponentDefinition {\n  constructor(manager, ComponentClass, layout) {\n    this.manager = manager;\n    this.state = {\n      ComponentClass,\n      layout\n    };\n  }\n\n}\nclass InternalManager extends BaseInternalComponentManager {\n  constructor(owner, name) {\n    super();\n    this.owner = owner;\n    this.name = name;\n  }\n\n  static for(name) {\n    return owner => new InternalManager(owner, name);\n  }\n\n  getCapabilities() {\n    return CAPABILITIES$2;\n  }\n\n  create(env, {\n    ComponentClass\n  }, args, _dynamicScope, caller) {\n    assert('caller must be const', isConstRef(caller));\n    assert(`The ${this.name} component does not take any positional arguments`, args.positional.length === 0);\n    let instance = new ComponentClass(this.owner, args.named.capture(), valueForRef(caller));\n    let state = {\n      env,\n      instance\n    };\n    return state;\n  }\n\n  getDebugName() {\n    return this.name;\n  }\n\n  getSelf({\n    instance\n  }) {\n    return createConstRef(instance, 'this');\n  }\n\n  getDestroyable(state) {\n    return state.instance;\n  }\n\n  getStaticLayout({\n    layout: template\n  }) {\n    return template;\n  }\n\n}\n\nconst CAPABILITIES$3 = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: false,\n  dynamicScope: false,\n  updateHook: false,\n  createInstance: false,\n  wrapped: false,\n  willDestroy: false\n};\nclass TemplateOnlyComponentManager {\n  getStaticLayout({\n    template\n  }) {\n    return template;\n  }\n\n  getCapabilities() {\n    return CAPABILITIES$3;\n  }\n\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n\n  getSelf() {\n    return NULL_REFERENCE;\n  }\n\n  getDestroyable() {\n    return null;\n  }\n\n}\nconst MANAGER = new TemplateOnlyComponentManager();\nclass TemplateOnlyComponentDefinition {\n  constructor(name, template) {\n    this.name = name;\n    this.template = template;\n    this.manager = MANAGER;\n  }\n\n  get state() {\n    return this;\n  }\n\n}\n\nlet helper$1;\n\nif (DEBUG) {\n  helper$1 = args => {\n    let inner = args.positional.at(0);\n    let messageRef = args.positional.at(1);\n    return createComputeRef(() => {\n      let value = valueForRef(inner);\n      assert(valueForRef(messageRef), typeof value !== 'string');\n      return value;\n    });\n  };\n} else {\n  helper$1 = args => args.positional.at(0);\n}\n\nvar componentAssertionHelper = helper$1;\n\nlet helper$2;\n\nif (DEBUG) {\n  helper$2 = args => {\n    let inner = args.positional.at(0);\n    return createComputeRef(() => {\n      let value = valueForRef(inner);\n      assert('You cannot pass a null or undefined destination element to in-element', value !== null && value !== undefined);\n      return value;\n    });\n  };\n} else {\n  helper$2 = args => args.positional.at(0);\n}\n\nvar inElementNullCheckHelper = helper$2;\n\nfunction normalizeClassHelper (args) {\n  let positional = args.positional.capture();\n  return createComputeRef(() => {\n    let classNameParts = valueForRef(positional[0]).split('.');\n    let className = classNameParts[classNameParts.length - 1];\n    let value = valueForRef(positional[1]);\n\n    if (value === true) {\n      return dasherize(className);\n    } else if (!value && value !== 0) {\n      return '';\n    } else {\n      return String(value);\n    }\n  });\n}\n\n/**\n@module ember\n*/\n/**\n  This reference is used to get the `[]` tag of iterables, so we can trigger\n  updates to `{{each}}` when it changes. It is put into place by a template\n  transform at build time, similar to the (-each-in) helper\n*/\n\nfunction trackArray(args) {\n  let inner = args.positional.at(0);\n  return createComputeRef(() => {\n    let iterable = valueForRef(inner);\n\n    if (isObject(iterable)) {\n      consumeTag(tagForProperty(iterable, '[]'));\n    }\n\n    return iterable;\n  });\n}\n\n/**\n@module ember\n*/\n\n/**\n   Use the `{{array}}` helper to create an array to pass as an option to your\n   components.\n\n   ```handlebars\n   <MyComponent @people={{array\n     'Tom Dale'\n     'Yehuda Katz'\n     this.myOtherPerson}}\n   />\n   ```\n    or\n   ```handlebars\n   {{my-component people=(array\n     'Tom Dale'\n     'Yehuda Katz'\n     this.myOtherPerson)\n   }}\n   ```\n\n   Would result in an object such as:\n\n   ```js\n   ['Tom Dale', 'Yehuda Katz', this.get('myOtherPerson')]\n   ```\n\n   Where the 3rd item in the array is bound to updates of the `myOtherPerson` property.\n\n   @method array\n   @for Ember.Templates.helpers\n   @param {Array} options\n   @return {Array} Array\n   @since 3.8.0\n   @public\n */\n\nfunction array (args) {\n  let captured = args.positional.capture();\n  return createComputeRef(() => reifyPositional(captured), null, 'array');\n}\n\nconst isEmpty = value => {\n  return value === null || value === undefined || typeof value.toString !== 'function';\n};\n\nconst normalizeTextValue = value => {\n  if (isEmpty(value)) {\n    return '';\n  }\n\n  return String(value);\n};\n/**\n@module ember\n*/\n\n/**\n  Concatenates the given arguments into a string.\n\n  Example:\n\n  ```handlebars\n  {{some-component name=(concat firstName \" \" lastName)}}\n\n  {{! would pass name=\"<first name value> <last name value>\" to the component}}\n  ```\n\n  or for angle bracket invocation, you actually don't need concat at all.\n\n  ```handlebars\n  <SomeComponent @name=\"{{firstName}} {{lastName}}\" />\n  ```\n\n  @public\n  @method concat\n  @for Ember.Templates.helpers\n  @since 1.13.0\n*/\n\n\nfunction concat (args) {\n  let captured = args.positional.capture();\n  return createComputeRef(() => reifyPositional(captured).map(normalizeTextValue).join(''), null, 'concat');\n}\n\nfunction buildUntouchableThis(source) {\n  let context = null;\n\n  if (DEBUG && HAS_NATIVE_PROXY) {\n    let assertOnProperty = property => {\n      assert(`You accessed \\`this.${String(property)}\\` from a function passed to the ${source}, but the function itself was not bound to a valid \\`this\\` context. Consider updating to usage of \\`@action\\`.`);\n    };\n\n    context = new Proxy({}, {\n      get(_target, property) {\n        assertOnProperty(property);\n      },\n\n      set(_target, property) {\n        assertOnProperty(property);\n        return false;\n      },\n\n      has(_target, property) {\n        assertOnProperty(property);\n        return false;\n      }\n\n    });\n  }\n\n  return context;\n}\n\nconst context = buildUntouchableThis('`fn` helper');\n/**\n@module ember\n*/\n\n/**\n  The `fn` helper allows you to ensure a function that you are passing off\n  to another component, helper, or modifier has access to arguments that are\n  available in the template.\n\n  For example, if you have an `each` helper looping over a number of items, you\n  may need to pass a function that expects to receive the item as an argument\n  to a component invoked within the loop. Here's how you could use the `fn`\n  helper to pass both the function and its arguments together:\n\n    ```app/templates/components/items-listing.hbs\n  {{#each @items as |item|}}\n    <DisplayItem @item=item @select={{fn this.handleSelected item}} />\n  {{/each}}\n  ```\n\n  ```app/components/items-list.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class ItemsList extends Component {\n    @action\n    handleSelected(item) {\n      // ...snip...\n    }\n  }\n  ```\n\n  In this case the `display-item` component will receive a normal function\n  that it can invoke. When it invokes the function, the `handleSelected`\n  function will receive the `item` and any arguments passed, thanks to the\n  `fn` helper.\n\n  Let's take look at what that means in a couple circumstances:\n\n  - When invoked as `this.args.select()` the `handleSelected` function will\n    receive the `item` from the loop as its first and only argument.\n  - When invoked as `this.args.select('foo')` the `handleSelected` function\n    will receive the `item` from the loop as its first argument and the\n    string `'foo'` as its second argument.\n\n  In the example above, we used `@action` to ensure that `handleSelected` is\n  properly bound to the `items-list`, but let's explore what happens if we\n  left out `@action`:\n\n  ```app/components/items-list.js\n  import Component from '@glimmer/component';\n\n  export default class ItemsList extends Component {\n    handleSelected(item) {\n      // ...snip...\n    }\n  }\n  ```\n\n  In this example, when `handleSelected` is invoked inside the `display-item`\n  component, it will **not** have access to the component instance. In other\n  words, it will have no `this` context, so please make sure your functions\n  are bound (via `@action` or other means) before passing into `fn`!\n\n  See also [partial application](https://en.wikipedia.org/wiki/Partial_application).\n\n  @method fn\n  @for Ember.Templates.helpers\n  @public\n  @since 3.11.0\n*/\n\nfunction fn (args) {\n  let positional = args.positional.capture();\n  let callbackRef = positional[0];\n  if (DEBUG) assertCallbackIsFn(callbackRef);\n  return createComputeRef(() => {\n    return (...invocationArgs) => {\n      let [fn, ...args] = reifyPositional(positional);\n      if (DEBUG) assertCallbackIsFn(callbackRef);\n\n      if (isInvokableRef(callbackRef)) {\n        let value = args.length > 0 ? args[0] : invocationArgs[0];\n        return updateRef(callbackRef, value);\n      } else {\n        return fn.call(context, ...args, ...invocationArgs);\n      }\n    };\n  }, null, 'fn');\n}\n\nfunction assertCallbackIsFn(callbackRef) {\n  assert(`You must pass a function as the \\`fn\\` helpers first argument, you passed ${callbackRef ? valueForRef(callbackRef) : callbackRef}. While rendering:\\n\\n${callbackRef === null || callbackRef === void 0 ? void 0 : callbackRef.debugLabel}`, callbackRef && (isInvokableRef(callbackRef) || typeof valueForRef(callbackRef) === 'function'));\n}\n\n/**\n@module ember\n*/\n\n/**\n  Dynamically look up a property on an object. The second argument to `{{get}}`\n  should have a string value, although it can be bound.\n\n  For example, these two usages are equivalent:\n\n  ```app/components/developer-detail.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class extends Component {\n    @tracked developer = {\n      name: \"Sandi Metz\",\n      language: \"Ruby\"\n    }\n  }\n  ```\n\n  ```handlebars\n  {{this.developer.name}}\n  {{get this.developer \"name\"}}\n  ```\n\n  If there were several facts about a person, the `{{get}}` helper can dynamically\n  pick one:\n\n  ```app/templates/application.hbs\n  <DeveloperDetail @factName=\"language\" />\n  ```\n\n  ```handlebars\n  {{get this.developer @factName}}\n  ```\n\n  For a more complex example, this template would allow the user to switch\n  between showing the user's height and weight with a click:\n\n  ```app/components/developer-detail.js\n  import Component from '@glimmer/component';\n  import { tracked } from '@glimmer/tracking';\n\n  export default class extends Component {\n    @tracked developer = {\n      name: \"Sandi Metz\",\n      language: \"Ruby\"\n    }\n\n    @tracked currentFact = 'name'\n\n    @action\n    showFact(fact) {\n      this.currentFact = fact;\n    }\n  }\n  ```\n\n  ```app/components/developer-detail.js\n  {{get this.developer this.currentFact}}\n\n  <button {{on 'click' (fn this.showFact \"name\")}}>Show name</button>\n  <button {{on 'click' (fn this.showFact \"language\")}}>Show language</button>\n  ```\n\n  The `{{get}}` helper can also respect mutable values itself. For example:\n\n  ```app/components/developer-detail.js\n  <Input @value={{mut (get this.person this.currentFact)}} />\n\n  <button {{on 'click' (fn this.showFact \"name\")}}>Show name</button>\n  <button {{on 'click' (fn this.showFact \"language\")}}>Show language</button>\n  ```\n\n  Would allow the user to swap what fact is being displayed, and also edit\n  that fact via a two-way mutable binding.\n\n  @public\n  @method get\n  @for Ember.Templates.helpers\n  @since 2.1.0\n */\n\nfunction get$1 (args) {\n  let sourceRef = args.positional.at(0);\n  let pathRef = args.positional.at(1);\n\n  if (isConstRef(pathRef)) {\n    // Since the path is constant, we can create a normal chain of property\n    // references. The source reference will update like normal, and all of the\n    // child references will update accordingly.\n    let path = valueForRef(pathRef);\n\n    if (path === undefined || path === null || path === '') {\n      return NULL_REFERENCE;\n    } else if (typeof path === 'string' && path.indexOf('.') > -1) {\n      return childRefFromParts(sourceRef, path.split('.'));\n    } else {\n      return childRefFor(sourceRef, String(path));\n    }\n  } else {\n    return createComputeRef(() => {\n      let source = valueForRef(sourceRef);\n\n      if (isObject(source)) {\n        return get(source, String(valueForRef(pathRef)));\n      }\n    }, value => {\n      let source = valueForRef(sourceRef);\n\n      if (isObject(source)) {\n        return set(source, String(valueForRef(pathRef)), value);\n      }\n    }, 'get');\n  }\n}\n\n/**\n@module ember\n*/\n\n/**\n   Use the `{{hash}}` helper to create a hash to pass as an option to your\n   components. This is specially useful for contextual components where you can\n   just yield a hash:\n\n   ```handlebars\n   {{yield (hash\n      name='Sarah'\n      title=office\n   )}}\n   ```\n\n   Would result in an object such as:\n\n   ```js\n   { name: 'Sarah', title: this.get('office') }\n   ```\n\n   Where the `title` is bound to updates of the `office` property.\n\n   Note that the hash is an empty object with no prototype chain, therefore\n   common methods like `toString` are not available in the resulting hash.\n   If you need to use such a method, you can use the `call` or `apply`\n   approach:\n\n   ```js\n   function toString(obj) {\n     return Object.prototype.toString.apply(obj);\n   }\n   ```\n\n   @method hash\n   @for Ember.Templates.helpers\n   @param {Object} options\n   @return {Object} Hash\n   @since 2.3.0\n   @public\n */\n\nfunction hash (args) {\n  let positional = args.named.capture();\n  return createComputeRef(() => reifyNamed(positional), null, 'hash');\n}\n\n/**\n@module ember\n*/\n/**\n  The `if` helper allows you to conditionally render one of two branches,\n  depending on the \"truthiness\" of a property.\n  For example the following values are all falsey: `false`, `undefined`, `null`, `\"\"`, `0`, `NaN` or an empty array.\n\n  This helper has two forms, block and inline.\n\n  ## Block form\n\n  You can use the block form of `if` to conditionally render a section of the template.\n\n  To use it, pass the conditional value to the `if` helper,\n  using the block form to wrap the section of template you want to conditionally render.\n  Like so:\n\n  ```app/templates/application.hbs\n  <Weather />\n  ```\n\n  ```app/components/weather.hbs\n  {{! will not render because greeting is undefined}}\n  {{#if @isRaining}}\n    Yes, grab an umbrella!\n  {{/if}}\n  ```\n\n  You can also define what to show if the property is falsey by using\n  the `else` helper.\n\n  ```app/components/weather.hbs\n  {{#if @isRaining}}\n    Yes, grab an umbrella!\n  {{else}}\n    No, it's lovely outside!\n  {{/if}}\n  ```\n\n  You are also able to combine `else` and `if` helpers to create more complex\n  conditional logic.\n\n  For the following template:\n\n   ```app/components/weather.hbs\n  {{#if @isRaining}}\n    Yes, grab an umbrella!\n  {{else if @isCold}}\n    Grab a coat, it's chilly!\n  {{else}}\n    No, it's lovely outside!\n  {{/if}}\n  ```\n\n  If you call it by saying `isCold` is true:\n\n  ```app/templates/application.hbs\n  <Weather @isCold={{true}} />\n  ```\n\n  Then `Grab a coat, it's chilly!` will be rendered.\n\n  ## Inline form\n\n  The inline `if` helper conditionally renders a single property or string.\n\n  In this form, the `if` helper receives three arguments, the conditional value,\n  the value to render when truthy, and the value to render when falsey.\n\n  For example, if `useLongGreeting` is truthy, the following:\n\n  ```app/templates/application.hbs\n  <Greeting @useLongGreeting={{true}} />\n  ```\n\n  ```app/components/greeting.hbs\n  {{if @useLongGreeting \"Hello\" \"Hi\"}} Alex\n  ```\n\n  Will render:\n\n  ```html\n  Hello Alex\n  ```\n\n  One detail to keep in mind is that both branches of the `if` helper will be evaluated,\n  so if you have `{{if condition \"foo\" (expensive-operation \"bar\")`,\n  `expensive-operation` will always calculate.\n\n  @method if\n  @for Ember.Templates.helpers\n  @public\n*/\n\nfunction inlineIf(args) {\n  let positional = args.positional.capture();\n  return createComputeRef(() => {\n    assert('The inline form of the `if` helper expects two or three arguments, e.g. `{{if trialExpired \"Expired\" expiryDate}}`.', positional.length === 3 || positional.length === 2);\n    let [condition, truthyValue, falsyValue] = positional;\n\n    if (toBool(valueForRef(condition)) === true) {\n      return valueForRef(truthyValue);\n    } else {\n      return falsyValue !== undefined ? valueForRef(falsyValue) : undefined;\n    }\n  }, null, 'if');\n}\n/**\n  The `unless` helper is the inverse of the `if` helper. It displays if a value\n  is falsey (\"not true\" or \"is false\"). Example values that will display with\n  `unless`: `false`, `undefined`, `null`, `\"\"`, `0`, `NaN` or an empty array.\n\n  ## Inline form\n\n  The inline `unless` helper conditionally renders a single property or string.\n  This helper acts like a ternary operator. If the first property is falsy,\n  the second argument will be displayed, otherwise, the third argument will be\n  displayed\n\n  For example, if you pass a falsey `useLongGreeting` to the `Greeting` component:\n\n  ```app/templates/application.hbs\n  <Greeting @useLongGreeting={{false}} />\n  ```\n\n  ```app/components/greeting.hbs\n  {{unless @useLongGreeting \"Hi\" \"Hello\"}} Ben\n  ```\n\n  Then it will display:\n\n  ```html\n  Hi Ben\n  ```\n\n  ## Block form\n\n  Like the `if` helper, the `unless` helper also has a block form.\n\n  The following will not render anything:\n\n  ```app/templates/application.hbs\n  <Greeting />\n  ```\n\n  ```app/components/greeting.hbs\n  {{#unless @greeting}}\n    No greeting was found. Why not set one?\n  {{/unless}}\n  ```\n\n  You can also use an `else` helper with the `unless` block. The\n  `else` will display if the value is truthy.\n\n  If you have the following component:\n\n  ```app/components/logged-in.hbs\n  {{#unless @userData}}\n    Please login.\n  {{else}}\n    Welcome back!\n  {{/unless}}\n  ```\n\n  Calling it with a truthy `userData`:\n\n  ```app/templates/application.hbs\n  <LoggedIn @userData={{hash username=\"Zoey\"}} />\n  ```\n\n  Will render:\n\n  ```html\n  Welcome back!\n  ```\n\n  and calling it with a falsey `userData`:\n\n  ```app/templates/application.hbs\n  <LoggedIn @userData={{false}} />\n  ```\n\n  Will render:\n\n  ```html\n  Please login.\n  ```\n\n  @method unless\n  @for Ember.Templates.helpers\n  @public\n*/\n\nfunction inlineUnless(args) {\n  let positional = args.positional.capture();\n  return createComputeRef(() => {\n    assert('The inline form of the `unless` helper expects two or three arguments, e.g. `{{unless isFirstLogin \"Welcome back!\"}}`.', positional.length === 3 || positional.length === 2);\n    let [condition, falsyValue, truthyValue] = positional;\n\n    if (toBool(valueForRef(condition)) === true) {\n      return truthyValue !== undefined ? valueForRef(truthyValue) : undefined;\n    } else {\n      return valueForRef(falsyValue);\n    }\n  }, null, 'unless');\n}\n\n/**\n@module ember\n*/\n\n/**\n  `log` allows you to output the value of variables in the current rendering\n  context. `log` also accepts primitive types such as strings or numbers.\n\n  ```handlebars\n  {{log \"myVariable:\" myVariable }}\n  ```\n\n  @method log\n  @for Ember.Templates.helpers\n  @param {Array} params\n  @public\n*/\n\nfunction log (args) {\n  let positional = args.positional.capture();\n  return createComputeRef(() => {\n    /* eslint-disable no-console */\n    console.log(...reifyPositional(positional));\n    /* eslint-enable no-console */\n  });\n}\n\n/**\n@module ember\n*/\n/**\n  The `mut` helper lets you __clearly specify__ that a child `Component` can update the\n  (mutable) value passed to it, which will __change the value of the parent component__.\n\n  To specify that a parameter is mutable, when invoking the child `Component`:\n\n  ```handlebars\n  <MyChild @childClickCount={{fn (mut totalClicks)}} />\n  ```\n\n   or\n\n  ```handlebars\n  {{my-child childClickCount=(mut totalClicks)}}\n  ```\n\n  The child `Component` can then modify the parent's value just by modifying its own\n  property:\n\n  ```javascript\n  // my-child.js\n  export default Component.extend({\n    click() {\n      this.incrementProperty('childClickCount');\n    }\n  });\n  ```\n\n  Note that for curly components (`{{my-component}}`) the bindings are already mutable,\n  making the `mut` unnecessary.\n\n  Additionally, the `mut` helper can be combined with the `fn` helper to\n  mutate a value. For example:\n\n  ```handlebars\n  <MyChild @childClickCount={{this.totalClicks}} @click-count-change={{fn (mut totalClicks))}} />\n  ```\n\n  or\n\n  ```handlebars\n  {{my-child childClickCount=totalClicks click-count-change=(fn (mut totalClicks))}}\n  ```\n\n  The child `Component` would invoke the function with the new click value:\n\n  ```javascript\n  // my-child.js\n  export default Component.extend({\n    click() {\n      this.get('click-count-change')(this.get('childClickCount') + 1);\n    }\n  });\n  ```\n\n  The `mut` helper changes the `totalClicks` value to what was provided as the `fn` argument.\n\n  The `mut` helper, when used with `fn`, will return a function that\n  sets the value passed to `mut` to its first argument. As an example, we can create a\n  button that increments a value passing the value directly to the `fn`:\n\n  ```handlebars\n  {{! inc helper is not provided by Ember }}\n  <button onclick={{fn (mut count) (inc count)}}>\n    Increment count\n  </button>\n  ```\n\n  @method mut\n  @param {Object} [attr] the \"two-way\" attribute that can be modified.\n  @for Ember.Templates.helpers\n  @public\n*/\n\nfunction mut (args) {\n  let ref = args.positional.at(0); // TODO: Improve this error message. This covers at least two distinct\n  // cases:\n  //\n  // 1. (mut \"not a path\") – passing a literal, result from a helper\n  //    invocation, etc\n  //\n  // 2. (mut receivedValue) – passing a value received from the caller\n  //    that was originally derived from a literal, result from a helper\n  //    invocation, etc\n  //\n  // This message is alright for the first case, but could be quite\n  // confusing for the second case.\n\n  assert('You can only pass a path to mut', isUpdatableRef(ref));\n  return createInvokableRef(ref);\n}\n\n/**\n@module ember\n*/\n/**\n  This is a helper to be used in conjunction with the link-to helper.\n  It will supply url query parameters to the target route.\n\n  @example In this example we are setting the `direction` query param to the value `\"asc\"`\n\n  ```app/templates/application.hbs\n  <LinkTo\n    @route=\"posts\"\n    {{query-params direction=\"asc\"}}\n  >\n    Sort\n  </LinkTo>\n  ```\n\n  @method query-params\n  @for Ember.Templates.helpers\n  @param {Object} hash takes a hash of query parameters\n  @return {Object} A `QueryParams` object for `{{link-to}}`\n  @public\n*/\n\nfunction queryParams (args) {\n  let {\n    positional,\n    named\n  } = args.capture();\n  return createComputeRef(() => {\n    assert(\"The `query-params` helper only accepts hash parameters, e.g. (query-params queryParamPropertyName='foo') as opposed to just (query-params 'foo')\", positional.length === 0);\n    return new QueryParams(assign({}, reifyNamed(named)));\n  });\n}\n\n/**\n  The `readonly` helper let's you specify that a binding is one-way only,\n  instead of two-way.\n  When you pass a `readonly` binding from an outer context (e.g. parent component),\n  to to an inner context (e.g. child component), you are saying that changing that\n  property in the inner context does not change the value in the outer context.\n\n  To specify that a binding is read-only, when invoking the child `Component`:\n\n  ```app/components/my-parent.js\n  export default Component.extend({\n    totalClicks: 3\n  });\n  ```\n\n  ```app/templates/components/my-parent.hbs\n  {{log totalClicks}} // -> 3\n  <MyChild @childClickCount={{readonly totalClicks}} />\n  ```\n  ```\n  {{my-child childClickCount=(readonly totalClicks)}}\n  ```\n\n  Now, when you update `childClickCount`:\n\n  ```app/components/my-child.js\n  export default Component.extend({\n    click() {\n      this.incrementProperty('childClickCount');\n    }\n  });\n  ```\n\n  The value updates in the child component, but not the parent component:\n\n  ```app/templates/components/my-child.hbs\n  {{log childClickCount}} //-> 4\n  ```\n\n  ```app/templates/components/my-parent.hbs\n  {{log totalClicks}} //-> 3\n  <MyChild @childClickCount={{readonly totalClicks}} />\n  ```\n  or\n  ```app/templates/components/my-parent.hbs\n  {{log totalClicks}} //-> 3\n  {{my-child childClickCount=(readonly totalClicks)}}\n  ```\n\n  ### Objects and Arrays\n\n  When passing a property that is a complex object (e.g. object, array) instead of a primitive object (e.g. number, string),\n  only the reference to the object is protected using the readonly helper.\n  This means that you can change properties of the object both on the parent component, as well as the child component.\n  The `readonly` binding behaves similar to the `const` keyword in JavaScript.\n\n  Let's look at an example:\n\n  First let's set up the parent component:\n\n  ```app/components/my-parent.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    clicks: null,\n\n    init() {\n      this._super(...arguments);\n      this.set('clicks', { total: 3 });\n    }\n  });\n  ```\n\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 3\n  <MyChild @childClicks={{readonly clicks}} />\n  ```\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 3\n  {{my-child childClicks=(readonly clicks)}}\n  ```\n\n  Now, if you update the `total` property of `childClicks`:\n\n  ```app/components/my-child.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    click() {\n      this.get('clicks').incrementProperty('total');\n    }\n  });\n  ```\n\n  You will see the following happen:\n\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 4\n  <MyChild @childClicks={{readonly clicks}} />\n  ```\n  or\n  ```app/templates/components/my-parent.hbs\n  {{log clicks.total}} //-> 4\n  {{my-child childClicks=(readonly clicks)}}\n  ```\n\n  ```app/templates/components/my-child.hbs\n  {{log childClicks.total}} //-> 4\n  ```\n\n  @method readonly\n  @param {Object} [attr] the read-only attribute.\n  @for Ember.Templates.helpers\n  @private\n*/\n\nfunction readonly (args) {\n  return createReadOnlyRef(args.positional.at(0));\n}\n\n/**\n@module ember\n*/\n/**\n  The `{{unbound}}` helper disconnects the one-way binding of a property,\n  essentially freezing its value at the moment of rendering. For example,\n  in this example the display of the variable `name` will not change even\n  if it is set with a new value:\n\n  ```handlebars\n  {{unbound this.name}}\n  ```\n\n  Like any helper, the `unbound` helper can accept a nested helper expression.\n  This allows for custom helpers to be rendered unbound:\n\n  ```handlebars\n  {{unbound (some-custom-helper)}}\n  {{unbound (capitalize this.name)}}\n  {{! You can use any helper, including unbound, in a nested expression }}\n  {{capitalize (unbound this.name)}}\n  ```\n\n  The `unbound` helper only accepts a single argument, and it return an\n  unbound value.\n\n  @method unbound\n  @for Ember.Templates.helpers\n  @public\n*/\n\nfunction unbound (args) {\n  assert('unbound helper cannot be called with multiple params or hash params', args.positional.length === 1 && args.named.length === 0);\n  return createUnboundRef(valueForRef(args.positional.at(0)), '(resurt of an `unbound` helper)');\n}\n\nconst MODIFIERS = ['alt', 'shift', 'meta', 'ctrl'];\nconst POINTER_EVENT_TYPE_REGEX = /^click|mouse|touch/;\n\nfunction isAllowedEvent(event, allowedKeys) {\n  if (allowedKeys === null || allowedKeys === undefined) {\n    if (POINTER_EVENT_TYPE_REGEX.test(event.type)) {\n      return isSimpleClick(event);\n    } else {\n      allowedKeys = '';\n    }\n  }\n\n  if (allowedKeys.indexOf('any') >= 0) {\n    return true;\n  }\n\n  for (let i = 0; i < MODIFIERS.length; i++) {\n    if (event[MODIFIERS[i] + 'Key'] && allowedKeys.indexOf(MODIFIERS[i]) === -1) {\n      return false;\n    }\n  }\n\n  return true;\n}\n\nlet ActionHelper = {\n  // registeredActions is re-exported for compatibility with older plugins\n  // that were using this undocumented API.\n  registeredActions: ActionManager.registeredActions,\n\n  registerAction(actionState) {\n    let {\n      actionId\n    } = actionState;\n    ActionManager.registeredActions[actionId] = actionState;\n    return actionId;\n  },\n\n  unregisterAction(actionState) {\n    let {\n      actionId\n    } = actionState;\n    delete ActionManager.registeredActions[actionId];\n  }\n\n};\nclass ActionState {\n  constructor(element, actionId, actionArgs, namedArgs, positionalArgs, dom) {\n    this.tag = createUpdatableTag();\n    this.element = element;\n    this.actionId = actionId;\n    this.actionArgs = actionArgs;\n    this.namedArgs = namedArgs;\n    this.positional = positionalArgs;\n    this.dom = dom;\n    this.eventName = this.getEventName();\n    registerDestructor(this, () => ActionHelper.unregisterAction(this));\n  }\n\n  getEventName() {\n    let {\n      on\n    } = this.namedArgs;\n    return on !== undefined ? valueForRef(on) : 'click';\n  }\n\n  getActionArgs() {\n    let result = new Array(this.actionArgs.length);\n\n    for (let i = 0; i < this.actionArgs.length; i++) {\n      result[i] = valueForRef(this.actionArgs[i]);\n    }\n\n    return result;\n  }\n\n  getTarget() {\n    let {\n      implicitTarget,\n      namedArgs\n    } = this;\n    let {\n      target\n    } = namedArgs;\n    return target !== undefined ? valueForRef(target) : valueForRef(implicitTarget);\n  }\n\n  handler(event) {\n    let {\n      actionName,\n      namedArgs\n    } = this;\n    let {\n      bubbles,\n      preventDefault,\n      allowedKeys\n    } = namedArgs;\n    let bubblesVal = bubbles !== undefined ? valueForRef(bubbles) : undefined;\n    let preventDefaultVal = preventDefault !== undefined ? valueForRef(preventDefault) : undefined;\n    let allowedKeysVal = allowedKeys !== undefined ? valueForRef(allowedKeys) : undefined;\n    let target = this.getTarget();\n    let shouldBubble = bubblesVal !== false;\n\n    if (!isAllowedEvent(event, allowedKeysVal)) {\n      return true;\n    }\n\n    if (preventDefaultVal !== false) {\n      event.preventDefault();\n    }\n\n    if (!shouldBubble) {\n      event.stopPropagation();\n    }\n\n    join(() => {\n      let args = this.getActionArgs();\n      let payload = {\n        args,\n        target,\n        name: null\n      };\n\n      if (typeof actionName[INVOKE] === 'function') {\n        deprecate(`Usage of the private INVOKE API to make an object callable via action or fn is no longer supported. Please update to pass in a callback function instead. Received: ${String(actionName)}`, false, {\n          until: '3.25.0',\n          id: 'actions.custom-invoke-invokable',\n          for: 'ember-source',\n          since: {\n            enabled: '3.23.0-beta.1'\n          }\n        });\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          actionName[INVOKE].apply(actionName, args);\n        });\n        return;\n      }\n\n      if (isInvokableRef(actionName)) {\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          updateRef(actionName, args[0]);\n        });\n        return;\n      }\n\n      if (typeof actionName === 'function') {\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          actionName.apply(target, args);\n        });\n        return;\n      }\n\n      payload.name = actionName;\n\n      if (target.send) {\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          target.send.apply(target, [actionName, ...args]);\n        });\n      } else {\n        assert(`The action '${actionName}' did not exist on ${target}`, typeof target[actionName] === 'function');\n        flaggedInstrument('interaction.ember-action', payload, () => {\n          target[actionName].apply(target, args);\n        });\n      }\n    });\n    return shouldBubble;\n  }\n\n} // implements ModifierManager<Action>\n\nclass ActionModifierManager {\n  create(element, _state, args, _dynamicScope, dom) {\n    let {\n      named,\n      positional\n    } = args.capture();\n    let actionArgs = []; // The first two arguments are (1) `this` and (2) the action name.\n    // Everything else is a param.\n\n    for (let i = 2; i < positional.length; i++) {\n      actionArgs.push(positional[i]);\n    }\n\n    let actionId = uuid();\n    let actionState = new ActionState(element, actionId, actionArgs, named, positional, dom);\n    deprecate(`Using the \\`{{action}}\\` modifier with \\`${actionState.eventName}\\` events has been deprecated.`, actionState.eventName !== 'mouseEnter' && actionState.eventName !== 'mouseLeave' && actionState.eventName !== 'mouseMove', {\n      id: 'ember-views.event-dispatcher.mouseenter-leave-move',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_action-mouseenter-leave-move',\n      for: 'ember-source',\n      since: {\n        enabled: '3.13.0-beta.1'\n      }\n    });\n    return actionState;\n  }\n\n  getDebugName() {\n    return 'action';\n  }\n\n  install(actionState) {\n    let {\n      dom,\n      element,\n      actionId,\n      positional\n    } = actionState;\n    let actionName;\n    let actionNameRef;\n    let implicitTarget;\n\n    if (positional.length > 1) {\n      implicitTarget = positional[0];\n      actionNameRef = positional[1];\n\n      if (isInvokableRef(actionNameRef)) {\n        actionName = actionNameRef;\n      } else {\n        actionName = valueForRef(actionNameRef);\n\n        if (DEBUG) {\n          let actionPath = actionNameRef.debugLabel;\n          let actionPathParts = actionPath.split('.');\n          let actionLabel = actionPathParts[actionPathParts.length - 1];\n          assert('You specified a quoteless path, `' + actionPath + '`, to the ' + '{{action}} helper which did not resolve to an action name (a ' + 'string). Perhaps you meant to use a quoted actionName? (e.g. ' + '{{action \"' + actionLabel + '\"}}).', typeof actionName === 'string' || typeof actionName === 'function');\n        }\n      }\n    }\n\n    actionState.actionName = actionName;\n    actionState.implicitTarget = implicitTarget;\n    ActionHelper.registerAction(actionState);\n    dom.setAttribute(element, 'data-ember-action', '');\n    dom.setAttribute(element, `data-ember-action-${actionId}`, String(actionId));\n  }\n\n  update(actionState) {\n    let {\n      positional\n    } = actionState;\n    let actionNameRef = positional[1];\n\n    if (!isInvokableRef(actionNameRef)) {\n      actionState.actionName = valueForRef(actionNameRef);\n    }\n\n    actionState.eventName = actionState.getEventName();\n  }\n\n  getTag(actionState) {\n    return actionState.tag;\n  }\n\n  getDestroyable(actionState) {\n    return actionState;\n  }\n\n}\n\nfunction capabilities$1(managerAPI, optionalFeatures = {}) {\n  assert('Invalid modifier manager compatibility specified', managerAPI === '3.13' || managerAPI === '3.22');\n  return buildCapabilities({\n    disableAutoTracking: Boolean(optionalFeatures.disableAutoTracking),\n    useArgsProxy: managerAPI === '3.13' ? false : true,\n    passFactoryToCreate: managerAPI === '3.13'\n  });\n}\nclass CustomModifierDefinition {\n  constructor(name, ModifierClass, delegate, isInteractive) {\n    this.name = name;\n    this.ModifierClass = ModifierClass;\n    this.delegate = delegate;\n    this.state = {\n      ModifierClass,\n      name,\n      delegate\n    };\n    this.manager = isInteractive ? CUSTOM_INTERACTIVE_MODIFIER_MANAGER : CUSTOM_NON_INTERACTIVE_MODIFIER_MANAGER;\n  }\n\n}\n/**\n  The CustomModifierManager allows addons to provide custom modifier\n  implementations that integrate seamlessly into Ember. This is accomplished\n  through a delegate, registered with the custom modifier manager, which\n  implements a set of hooks that determine modifier behavior.\n  To create a custom modifier manager, instantiate a new CustomModifierManager\n  class and pass the delegate as the first argument:\n\n  ```js\n  let manager = new CustomModifierManager({\n    // ...delegate implementation...\n  });\n  ```\n\n  ## Delegate Hooks\n\n  Throughout the lifecycle of a modifier, the modifier manager will invoke\n  delegate hooks that are responsible for surfacing those lifecycle changes to\n  the end developer.\n  * `createModifier()` - invoked when a new instance of a modifier should be created\n  * `installModifier()` - invoked when the modifier is installed on the element\n  * `updateModifier()` - invoked when the arguments passed to a modifier change\n  * `destroyModifier()` - invoked when the modifier is about to be destroyed\n*/\n\nclass InteractiveCustomModifierManager {\n  create(element, definition, vmArgs) {\n    let {\n      delegate,\n      ModifierClass\n    } = definition;\n    let capturedArgs = vmArgs.capture();\n    let {\n      useArgsProxy,\n      passFactoryToCreate\n    } = delegate.capabilities;\n    let args = useArgsProxy ? argsProxyFor(capturedArgs, 'modifier') : reifyArgs(capturedArgs);\n    let instance;\n\n    if (DEBUG && deprecateMutationsInTrackingTransaction !== undefined) {\n      deprecateMutationsInTrackingTransaction(() => {\n        instance = delegate.createModifier(passFactoryToCreate ? ModifierClass : ModifierClass.class, args);\n      });\n    } else {\n      instance = delegate.createModifier(passFactoryToCreate ? ModifierClass : ModifierClass.class, args);\n    }\n\n    let tag = createUpdatableTag();\n    let state;\n\n    if (useArgsProxy) {\n      state = {\n        tag,\n        element,\n        delegate,\n        args,\n        modifier: instance\n      };\n    } else {\n      state = {\n        tag,\n        element,\n        delegate,\n        modifier: instance,\n\n        get args() {\n          return reifyArgs(capturedArgs);\n        }\n\n      };\n    }\n\n    if (DEBUG) {\n      state.debugName = definition.name;\n    }\n\n    registerDestructor(state, () => delegate.destroyModifier(instance, state.args));\n    return state;\n  }\n\n  getDebugName({\n    debugName\n  }) {\n    return debugName;\n  }\n\n  getTag({\n    tag\n  }) {\n    return tag;\n  }\n\n  install(state) {\n    let {\n      element,\n      args,\n      delegate,\n      modifier\n    } = state;\n    let {\n      capabilities\n    } = delegate;\n\n    if (capabilities.disableAutoTracking === true) {\n      untrack(() => delegate.installModifier(modifier, element, args));\n    } else {\n      delegate.installModifier(modifier, element, args);\n    }\n  }\n\n  update(state) {\n    let {\n      args,\n      delegate,\n      modifier\n    } = state;\n    let {\n      capabilities\n    } = delegate;\n\n    if (capabilities.disableAutoTracking === true) {\n      untrack(() => delegate.updateModifier(modifier, args));\n    } else {\n      delegate.updateModifier(modifier, args);\n    }\n  }\n\n  getDestroyable(state) {\n    return state;\n  }\n\n}\n\nclass NonInteractiveCustomModifierManager {\n  create() {\n    return null;\n  }\n\n  getDebugName() {\n    return '';\n  }\n\n  getTag() {\n    return null;\n  }\n\n  install() {}\n\n  update() {}\n\n  getDestroyable() {\n    return null;\n  }\n\n}\n\nconst CUSTOM_INTERACTIVE_MODIFIER_MANAGER = new InteractiveCustomModifierManager();\nconst CUSTOM_NON_INTERACTIVE_MODIFIER_MANAGER = new NonInteractiveCustomModifierManager();\n\nconst untouchableContext = buildUntouchableThis('`on` modifier');\n/**\n@module ember\n*/\n\n/*\n  Internet Explorer 11 does not support `once` and also does not support\n  passing `eventOptions`. In some situations it then throws a weird script\n  error, like:\n\n  ```\n  Could not complete the operation due to error 80020101\n  ```\n\n  This flag determines, whether `{ once: true }` and thus also event options in\n  general are supported.\n*/\n\nconst SUPPORTS_EVENT_OPTIONS = (() => {\n  try {\n    const div = document.createElement('div');\n    let counter = 0;\n    div.addEventListener('click', () => counter++, {\n      once: true\n    });\n    let event;\n\n    if (typeof Event === 'function') {\n      event = new Event('click');\n    } else {\n      event = document.createEvent('Event');\n      event.initEvent('click', true, true);\n    }\n\n    div.dispatchEvent(event);\n    div.dispatchEvent(event);\n    return counter === 1;\n  } catch (error) {\n    return false;\n  }\n})();\n\nclass OnModifierState {\n  constructor(owner, element, args) {\n    this.tag = createUpdatableTag();\n    this.shouldUpdate = true;\n    this.owner = owner;\n    this.element = element;\n    this.args = args;\n  }\n\n  updateFromArgs() {\n    let {\n      args\n    } = this;\n    let {\n      once,\n      passive,\n      capture\n    } = reifyNamed(args.named);\n\n    if (once !== this.once) {\n      this.once = once;\n      this.shouldUpdate = true;\n    }\n\n    if (passive !== this.passive) {\n      this.passive = passive;\n      this.shouldUpdate = true;\n    }\n\n    if (capture !== this.capture) {\n      this.capture = capture;\n      this.shouldUpdate = true;\n    }\n\n    let options;\n\n    if (once || passive || capture) {\n      options = this.options = {\n        once,\n        passive,\n        capture\n      };\n    } else {\n      this.options = undefined;\n    }\n\n    assert('You must pass a valid DOM event name as the first argument to the `on` modifier', args.positional[0] !== undefined && typeof valueForRef(args.positional[0]) === 'string');\n    let eventName = valueForRef(args.positional[0]);\n\n    if (eventName !== this.eventName) {\n      this.eventName = eventName;\n      this.shouldUpdate = true;\n    }\n\n    let userProvidedCallbackReference = args.positional[1];\n\n    if (DEBUG) {\n      assert(`You must pass a function as the second argument to the \\`on\\` modifier.`, args.positional[1] !== undefined);\n      let value = valueForRef(userProvidedCallbackReference);\n      assert(`You must pass a function as the second argument to the \\`on\\` modifier, you passed ${value === null ? 'null' : typeof value}. While rendering:\\n\\n${userProvidedCallbackReference.debugLabel}`, typeof value === 'function');\n    }\n\n    let userProvidedCallback = valueForRef(userProvidedCallbackReference);\n\n    if (userProvidedCallback !== this.userProvidedCallback) {\n      this.userProvidedCallback = userProvidedCallback;\n      this.shouldUpdate = true;\n    }\n\n    assert(`You can only pass two positional arguments (event name and callback) to the \\`on\\` modifier, but you provided ${args.positional.length}. Consider using the \\`fn\\` helper to provide additional arguments to the \\`on\\` callback.`, args.positional.length === 2);\n    let needsCustomCallback = SUPPORTS_EVENT_OPTIONS === false && once ||\n    /* needs manual once implementation */\n    DEBUG && passive;\n    /* needs passive enforcement */\n\n    if (this.shouldUpdate) {\n      if (needsCustomCallback) {\n        let callback = this.callback = function (event) {\n          if (DEBUG && passive) {\n            event.preventDefault = () => {\n              assert(`You marked this listener as 'passive', meaning that you must not call 'event.preventDefault()': \\n\\n${userProvidedCallback}`);\n            };\n          }\n\n          if (!SUPPORTS_EVENT_OPTIONS && once) {\n            removeEventListener(this, eventName, callback, options);\n          }\n\n          return userProvidedCallback.call(untouchableContext, event);\n        };\n      } else if (DEBUG) {\n        // prevent the callback from being bound to the element\n        this.callback = userProvidedCallback.bind(untouchableContext);\n      } else {\n        this.callback = userProvidedCallback;\n      }\n    }\n  }\n\n}\nlet adds = 0;\nlet removes = 0;\n\nfunction removeEventListener(element, eventName, callback, options) {\n  removes++;\n\n  if (SUPPORTS_EVENT_OPTIONS) {\n    // when options are supported, use them across the board\n    element.removeEventListener(eventName, callback, options);\n  } else if (options !== undefined && options.capture) {\n    // used only in the following case:\n    //\n    // `{ once: true | false, passive: true | false, capture: true }\n    //\n    // `once` is handled via a custom callback that removes after first\n    // invocation so we only care about capture here as a boolean\n    element.removeEventListener(eventName, callback, true);\n  } else {\n    // used only in the following cases:\n    //\n    // * where there is no options\n    // * `{ once: true | false, passive: true | false, capture: false }\n    element.removeEventListener(eventName, callback);\n  }\n}\n\nfunction addEventListener(element, eventName, callback, options) {\n  adds++;\n\n  if (SUPPORTS_EVENT_OPTIONS) {\n    // when options are supported, use them across the board\n    element.addEventListener(eventName, callback, options);\n  } else if (options !== undefined && options.capture) {\n    // used only in the following case:\n    //\n    // `{ once: true | false, passive: true | false, capture: true }\n    //\n    // `once` is handled via a custom callback that removes after first\n    // invocation so we only care about capture here as a boolean\n    element.addEventListener(eventName, callback, true);\n  } else {\n    // used only in the following cases:\n    //\n    // * where there is no options\n    // * `{ once: true | false, passive: true | false, capture: false }\n    element.addEventListener(eventName, callback);\n  }\n}\n/**\n  The `{{on}}` modifier lets you easily add event listeners (it uses\n  [EventTarget.addEventListener](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener)\n  internally).\n\n  For example, if you'd like to run a function on your component when a `<button>`\n  in the components template is clicked you might do something like:\n\n  ```app/components/like-post.hbs\n  <button {{on 'click' this.saveLike}}>Like this post!</button>\n  ```\n\n  ```app/components/like-post.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n\n  export default class LikePostComponent extends Component {\n    @action\n    saveLike() {\n      // someone likes your post!\n      // better send a request off to your server...\n    }\n  }\n  ```\n\n  ### Arguments\n\n  `{{on}}` accepts two positional arguments, and a few named arguments.\n\n  The positional arguments are:\n\n  - `event` -- the name to use when calling `addEventListener`\n  - `callback` -- the function to be passed to `addEventListener`\n\n  The named arguments are:\n\n  - capture -- a `true` value indicates that events of this type will be dispatched\n    to the registered listener before being dispatched to any EventTarget beneath it\n    in the DOM tree.\n  - once -- indicates that the listener should be invoked at most once after being\n    added. If true, the listener would be automatically removed when invoked.\n  - passive -- if `true`, indicates that the function specified by listener will never\n    call preventDefault(). If a passive listener does call preventDefault(), the user\n    agent will do nothing other than generate a console warning. See\n    [Improving scrolling performance with passive listeners](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Improving_scrolling_performance_with_passive_listeners)\n    to learn more.\n\n  The callback function passed to `{{on}}` will receive any arguments that are passed\n  to the event handler. Most commonly this would be the `event` itself.\n\n  If you would like to pass additional arguments to the function you should use\n  the `{{fn}}` helper.\n\n  For example, in our example case above if you'd like to pass in the post that\n  was being liked when the button is clicked you could do something like:\n\n  ```app/components/like-post.hbs\n  <button {{on 'click' (fn this.saveLike @post)}}>Like this post!</button>\n  ```\n\n  In this case, the `saveLike` function will receive two arguments: the click event\n  and the value of `@post`.\n\n  ### Function Context\n\n  In the example above, we used `@action` to ensure that `likePost` is\n  properly bound to the `items-list`, but let's explore what happens if we\n  left out `@action`:\n\n  ```app/components/like-post.js\n  import Component from '@glimmer/component';\n\n  export default class LikePostComponent extends Component {\n    saveLike() {\n      // ...snip...\n    }\n  }\n  ```\n\n  In this example, when the button is clicked `saveLike` will be invoked,\n  it will **not** have access to the component instance. In other\n  words, it will have no `this` context, so please make sure your functions\n  are bound (via `@action` or other means) before passing into `on`!\n\n  @method on\n  @for Ember.Templates.helpers\n  @public\n  @since 3.11.0\n*/\n\n\nclass OnModifierManager {\n  constructor(owner, isInteractive) {\n    this.SUPPORTS_EVENT_OPTIONS = SUPPORTS_EVENT_OPTIONS;\n    this.isInteractive = isInteractive;\n    this.owner = owner;\n  }\n\n  getDebugName() {\n    return 'on';\n  }\n\n  get counters() {\n    return {\n      adds,\n      removes\n    };\n  }\n\n  create(element, _state, args) {\n    if (!this.isInteractive) {\n      return null;\n    }\n\n    const capturedArgs = args.capture();\n    return new OnModifierState(this.owner, element, capturedArgs);\n  }\n\n  getTag(state) {\n    if (state === null) {\n      return null;\n    }\n\n    return state.tag;\n  }\n\n  install(state) {\n    if (state === null) {\n      return;\n    }\n\n    state.updateFromArgs();\n    let {\n      element,\n      eventName,\n      callback,\n      options\n    } = state;\n    addEventListener(element, eventName, callback, options);\n    registerDestructor(state, () => removeEventListener(element, eventName, callback, options));\n    state.shouldUpdate = false;\n  }\n\n  update(state) {\n    if (state === null) {\n      return;\n    } // stash prior state for el.removeEventListener\n\n\n    let {\n      element,\n      eventName,\n      callback,\n      options\n    } = state;\n    state.updateFromArgs();\n\n    if (!state.shouldUpdate) {\n      return;\n    } // use prior state values for removal\n\n\n    removeEventListener(element, eventName, callback, options); // read updated values from the state object\n\n    addEventListener(state.element, state.eventName, state.callback, state.options);\n    state.shouldUpdate = false;\n  }\n\n  getDestroyable(state) {\n    return state;\n  }\n\n}\n\nconst CAPABILITIES$4 = {\n  dynamicLayout: true,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  createCaller: true,\n  dynamicScope: true,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false\n};\n\nclass MountManager extends BaseInternalComponentManager {\n  getDynamicLayout(state) {\n    let templateFactory$$1 = state.engine.lookup('template:application');\n    return templateFactory$$1(state.engine);\n  }\n\n  getCapabilities() {\n    return CAPABILITIES$4;\n  }\n\n  create(env, {\n    name\n  }, args) {\n    // TODO\n    // mount is a runtime helper, this shouldn't use dynamic layout\n    // we should resolve the engine app template in the helper\n    // it also should use the owner that looked up the mount helper.\n    let engine = env.owner.buildChildEngineInstance(name);\n    engine.boot();\n    let applicationFactory = engine.factoryFor(`controller:application`);\n    let controllerFactory = applicationFactory || generateControllerFactory(engine, 'application');\n    let controller;\n    let self;\n    let bucket;\n    let modelRef;\n\n    if (args.named.has('model')) {\n      modelRef = args.named.get('model');\n    }\n\n    if (modelRef === undefined) {\n      controller = controllerFactory.create();\n      self = createConstRef(controller, 'this');\n      bucket = {\n        engine,\n        controller,\n        self,\n        modelRef\n      };\n    } else {\n      let model = valueForRef(modelRef);\n      controller = controllerFactory.create({\n        model\n      });\n      self = createConstRef(controller, 'this');\n      bucket = {\n        engine,\n        controller,\n        self,\n        modelRef\n      };\n    }\n\n    if (env.debugRenderTree) {\n      associateDestroyableChild(engine, controller);\n    }\n\n    return bucket;\n  }\n\n  getDebugName({\n    name\n  }) {\n    return name;\n  }\n\n  getDebugCustomRenderTree(definition, state, args, template) {\n    return [{\n      bucket: state.engine,\n      instance: state.engine,\n      type: 'engine',\n      name: definition.name,\n      args\n    }, {\n      bucket: state.controller,\n      instance: state.controller,\n      type: 'route-template',\n      name: 'application',\n      args,\n      template\n    }];\n  }\n\n  getSelf({\n    self\n  }) {\n    return self;\n  }\n\n  getDestroyable(bucket) {\n    return bucket.engine;\n  }\n\n  didRenderLayout() {}\n\n  update(bucket) {\n    let {\n      controller,\n      modelRef\n    } = bucket;\n\n    if (modelRef !== undefined) {\n      controller.set('model', valueForRef(modelRef));\n    }\n  }\n\n  didUpdateLayout() {}\n\n}\n\nconst MOUNT_MANAGER = new MountManager();\nclass MountDefinition {\n  constructor(name) {\n    this.manager = MOUNT_MANAGER;\n    this.state = {\n      name\n    };\n  }\n\n}\n\n/**\n  The `{{mount}}` helper lets you embed a routeless engine in a template.\n  Mounting an engine will cause an instance to be booted and its `application`\n  template to be rendered.\n\n  For example, the following template mounts the `ember-chat` engine:\n\n  ```handlebars\n  {{! application.hbs }}\n  {{mount \"ember-chat\"}}\n  ```\n\n  Additionally, you can also pass in a `model` argument that will be\n  set as the engines model. This can be an existing object:\n\n  ```\n  <div>\n    {{mount 'admin' model=userSettings}}\n  </div>\n  ```\n\n  Or an inline `hash`, and you can even pass components:\n\n  ```\n  <div>\n    <h1>Application template!</h1>\n    {{mount 'admin' model=(hash\n        title='Secret Admin'\n        signInButton=(component 'sign-in-button')\n    )}}\n  </div>\n  ```\n\n  @method mount\n  @param {String} name Name of the engine to mount.\n  @param {Object} [model] Object that will be set as\n                          the model of the engine.\n  @for Ember.Templates.helpers\n  @public\n*/\n\nfunction mountHelper(args, vm) {\n  let env = vm.env;\n  let nameRef = args.positional.at(0);\n  let captured = null;\n  assert('You can only pass a single positional argument to the {{mount}} helper, e.g. {{mount \"chat-engine\"}}.', args.positional.length === 1);\n\n  if (DEBUG && args.named) {\n    let keys = args.named.names;\n    let extra = keys.filter(k => k !== 'model');\n    assert('You can only pass a `model` argument to the {{mount}} helper, ' + 'e.g. {{mount \"profile-engine\" model=this.profile}}. ' + `You passed ${extra.join(',')}.`, extra.length === 0);\n  } // TODO: the functionality to create a proper CapturedArgument should be\n  // exported by glimmer, or that it should provide an overload for `curry`\n  // that takes `PreparedArguments`\n\n\n  if (args.named.has('model')) {\n    assert('[BUG] this should already be checked by the macro', args.named.length === 1);\n    let named = args.named.capture();\n    captured = createCapturedArgs(named, EMPTY_POSITIONAL);\n  }\n\n  let lastName, lastDef;\n  return createComputeRef(() => {\n    let name = valueForRef(nameRef);\n\n    if (typeof name === 'string') {\n      if (lastName === name) {\n        return lastDef;\n      }\n\n      assert(`You used \\`{{mount '${name}'}}\\`, but the engine '${name}' can not be found.`, env.owner.hasRegistration(`engine:${name}`));\n\n      if (!env.owner.hasRegistration(`engine:${name}`)) {\n        return null;\n      }\n\n      lastName = name;\n      lastDef = curry(new MountDefinition(name), captured);\n      return lastDef;\n    } else {\n      assert(`Invalid engine name '${name}' specified, engine name must be either a string, null or undefined.`, name === null || name === undefined);\n      lastDef = null;\n      lastName = null;\n      return null;\n    }\n  });\n}\n\n/**\n  The `{{outlet}}` helper lets you specify where a child route will render in\n  your template. An important use of the `{{outlet}}` helper is in your\n  application's `application.hbs` file:\n\n  ```app/templates/application.hbs\n  <MyHeader />\n\n  <div class=\"my-dynamic-content\">\n    <!-- this content will change based on the current route, which depends on the current URL -->\n    {{outlet}}\n  </div>\n\n  <MyFooter />\n  ```\n\n  You may also specify a name for the `{{outlet}}`, which is useful when using more than one\n  `{{outlet}}` in a template:\n\n  ```app/templates/application.hbs\n  {{outlet \"menu\"}}\n  {{outlet \"sidebar\"}}\n  {{outlet \"main\"}}\n  ```\n\n  Your routes can then render into a specific one of these `outlet`s by specifying the `outlet`\n  attribute in your `renderTemplate` function:\n\n  ```app/routes/menu.js\n  import Route from '@ember/routing/route';\n\n  export default class MenuRoute extends Route {\n    renderTemplate() {\n      this.render({ outlet: 'menu' });\n    }\n  }\n  ```\n\n  See the [routing guide](https://guides.emberjs.com/release/routing/rendering-a-template/) for more\n  information on how your `route` interacts with the `{{outlet}}` helper.\n  Note: Your content __will not render__ if there isn't an `{{outlet}}` for it.\n\n  @method outlet\n  @param {String} [name]\n  @for Ember.Templates.helpers\n  @public\n*/\n\nfunction outletHelper(args, vm) {\n  let scope = vm.dynamicScope();\n  let nameRef;\n\n  if (args.positional.length === 0) {\n    nameRef = createPrimitiveRef('main');\n  } else {\n    nameRef = args.positional.at(0);\n  }\n\n  let outletRef = createComputeRef(() => {\n    let state = valueForRef(scope.get('outletState'));\n    let outlets = state !== undefined ? state.outlets : undefined;\n    return outlets !== undefined ? outlets[valueForRef(nameRef)] : undefined;\n  });\n  let lastState = null;\n  let definition = null;\n  return createComputeRef(() => {\n    let state = stateFor(outletRef);\n\n    if (!validate(state, lastState)) {\n      lastState = state;\n\n      if (state !== null) {\n        let named = dict();\n        named.model = childRefFromParts(outletRef, ['render', 'model']);\n\n        if (DEBUG) {\n          named.model = createDebugAliasRef('@model', named.model);\n        }\n\n        let args = createCapturedArgs(named, EMPTY_POSITIONAL);\n        definition = curry(new OutletComponentDefinition(state), args);\n      } else {\n        definition = null;\n      }\n    }\n\n    return definition;\n  });\n}\n\nfunction stateFor(ref) {\n  let outlet = valueForRef(ref);\n  if (outlet === undefined) return null;\n  let render = outlet.render;\n  if (render === undefined) return null;\n  let template = render.template;\n  if (template === undefined) return null; // this guard can be removed once @ember/test-helpers@1.6.0 has \"aged out\"\n  // and is no longer considered supported\n\n  if (isTemplateFactory(template)) {\n    template = template(render.owner);\n  }\n\n  return {\n    ref,\n    name: render.name,\n    outlet: render.outlet,\n    template,\n    controller: render.controller,\n    model: render.model\n  };\n}\n\nfunction validate(state, lastState) {\n  if (state === null) {\n    return lastState === null;\n  }\n\n  if (lastState === null) {\n    return false;\n  }\n\n  return state.template === lastState.template && state.controller === lastState.controller;\n}\n\nfunction instrumentationPayload$1(name) {\n  return {\n    object: `component:${name}`\n  };\n}\n\nfunction componentFor(name, owner, options) {\n  let fullName = `component:${name}`;\n  return owner.factoryFor(fullName, options) || null;\n}\n\nfunction layoutFor(name, owner, options) {\n  let templateFullName = `template:components/${name}`;\n  return owner.lookup(templateFullName, options) || null;\n}\n\nfunction lookupComponentPair(owner, name, options) {\n  let component = componentFor(name, owner, options);\n\n  if (component !== null && component.class !== undefined) {\n    let layout = getComponentTemplate(component.class);\n\n    if (layout !== undefined) {\n      return {\n        component,\n        layout\n      };\n    }\n  }\n\n  let layout = layoutFor(name, owner, options);\n\n  if (component === null && layout === null) {\n    return null;\n  } else {\n    return {\n      component,\n      layout\n    };\n  }\n}\n\nlet lookupPartial;\nlet templateFor;\nlet parseUnderscoredName;\n\nif (PARTIALS) {\n  lookupPartial = function (templateName, owner) {\n    deprecate(`The use of \\`{{partial}}\\` is deprecated, please refactor the \"${templateName}\" partial to a component`, false, {\n      id: 'ember-views.partial',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_ember-views-partial',\n      for: 'ember-source',\n      since: {\n        enabled: '3.15.0-beta.1'\n      }\n    });\n\n    if (templateName === null) {\n      return;\n    }\n\n    let template = templateFor(owner, parseUnderscoredName(templateName), templateName);\n    assert(`Unable to find partial with name \"${templateName}\"`, Boolean(template));\n    return template;\n  };\n\n  templateFor = function (owner, underscored, name) {\n    if (PARTIALS) {\n      if (!name) {\n        return;\n      }\n\n      assert(`templateNames are not allowed to contain periods: ${name}`, name.indexOf('.') === -1);\n\n      if (!owner) {\n        throw new EmberError('Container was not found when looking up a views template. ' + 'This is most likely due to manually instantiating an Ember.View. ' + 'See: http://git.io/EKPpnA');\n      }\n\n      return owner.lookup(`template:${underscored}`) || owner.lookup(`template:${name}`);\n    }\n  };\n\n  parseUnderscoredName = function (templateName) {\n    let nameParts = templateName.split('/');\n    let lastPart = nameParts[nameParts.length - 1];\n    nameParts[nameParts.length - 1] = `_${lastPart}`;\n    return nameParts.join('/');\n  };\n}\n\nconst BUILTINS_HELPERS = {\n  if: inlineIf,\n  action,\n  array,\n  concat,\n  fn,\n  get: get$1,\n  hash,\n  log,\n  mut,\n  'query-params': queryParams,\n  readonly,\n  unbound,\n  unless: inlineUnless,\n  '-hash': hash,\n  '-each-in': eachIn,\n  '-normalize-class': normalizeClassHelper,\n  '-track-array': trackArray,\n  '-get-dynamic-var': getDynamicVar,\n  '-mount': mountHelper,\n  '-outlet': outletHelper,\n  '-assert-implicit-component-helper-argument': componentAssertionHelper,\n  '-in-el-null': inElementNullCheckHelper\n};\nclass RuntimeResolverImpl {\n  constructor(owner, isInteractive) {\n    this.handles = [undefined];\n    this.objToHandle = new WeakMap();\n    this.builtInHelpers = BUILTINS_HELPERS;\n    this.componentDefinitionCache = new Map();\n    this.componentDefinitionCount = 0;\n    this.helperDefinitionCount = 0;\n    this.isInteractive = isInteractive;\n    this.builtInModifiers = {\n      action: {\n        manager: new ActionModifierManager(),\n        state: null\n      },\n      on: {\n        manager: new OnModifierManager(owner, isInteractive),\n        state: null\n      }\n    };\n  }\n  /***  IRuntimeResolver ***/\n\n  /**\n   * public componentDefHandleCount = 0;\n   * Called while executing Append Op.PushDynamicComponentManager if string\n   */\n\n\n  lookupComponent(name, owner) {\n    let handle = this.lookupComponentHandle(name, owner);\n\n    if (handle === null) {\n      assert(`Could not find component named \"${name}\" (no component or template with that name was found)`);\n      return null;\n    }\n\n    return this.resolve(handle);\n  }\n\n  lookupComponentHandle(name, owner) {\n    let nextHandle = this.handles.length;\n    let handle = this.handle(this._lookupComponentDefinition(name, owner));\n    assert('Could not find component `<TextArea />` (did you mean `<Textarea />`?)', !(name === 'text-area' && handle === null));\n\n    if (nextHandle === handle) {\n      this.componentDefinitionCount++;\n    }\n\n    return handle;\n  }\n  /**\n   * Called by RuntimeConstants to lookup unresolved handles.\n   */\n\n\n  resolve(handle) {\n    return this.handles[handle];\n  } // End IRuntimeResolver\n\n  /**\n   * Called by CompileTimeLookup compiling Unknown or Helper OpCode\n   */\n\n\n  lookupHelper(name, owner) {\n    let nextHandle = this.handles.length;\n\n    let helper$$1 = this._lookupHelper(name, owner);\n\n    if (helper$$1 !== null) {\n      let handle = this.handle(helper$$1);\n\n      if (nextHandle === handle) {\n        this.helperDefinitionCount++;\n      }\n\n      return handle;\n    }\n\n    return null;\n  }\n  /**\n   * Called by CompileTimeLookup compiling the\n   */\n\n\n  lookupModifier(name, owner) {\n    return this.handle(this._lookupModifier(name, owner));\n  }\n  /**\n   * Called by CompileTimeLookup to lookup partial\n   */\n\n\n  lookupPartial(name, owner) {\n    if (PARTIALS) {\n      let partial = this._lookupPartial(name, owner);\n\n      return this.handle(partial);\n    } else {\n      return null;\n    }\n  } // TODO: This isn't necessary in all embedding environments, we should likely\n  // make it optional within Glimmer-VM\n\n\n  compilable() {} // end CompileTimeLookup\n  // needed for lazy compile time lookup\n\n\n  handle(obj) {\n    if (obj === undefined || obj === null) {\n      return null;\n    }\n\n    let handle = this.objToHandle.get(obj);\n\n    if (handle === undefined) {\n      handle = this.handles.push(obj) - 1;\n      this.objToHandle.set(obj, handle);\n    }\n\n    return handle;\n  }\n\n  _lookupHelper(_name, owner) {\n    assert(`You attempted to overwrite the built-in helper \"${_name}\" which is not allowed. Please rename the helper.`, !(this.builtInHelpers[_name] && owner.hasRegistration(`helper:${_name}`)));\n    const helper$$1 = this.builtInHelpers[_name];\n\n    if (helper$$1 !== undefined) {\n      return helper$$1;\n    }\n\n    let name = _name;\n    const factory = owner.factoryFor(`helper:${name}`) || owner.factoryFor(`helper:${name}`);\n\n    if (factory === undefined || factory.class === undefined) {\n      return null;\n    }\n\n    const manager = getHelperManager(owner, factory.class);\n\n    if (manager === undefined) {\n      return null;\n    }\n\n    assert('helper managers have not been enabled yet, you must use classic helpers', true\n    /* EMBER_GLIMMER_HELPER_MANAGER */\n    || isClassicHelperManager(manager) || manager === SIMPLE_CLASSIC_HELPER_MANAGER);\n    assert(`internal helpers are not supported via \\`getHelperManager\\` yet, found an internal manager for ${name}`, !isInternalHelper(manager)); // For classic class based helpers, we need to pass the factoryFor result itself rather\n    // than the raw value (`factoryFor(...).class`). This is because injections are already\n    // bound in the factoryFor result, including type-based injections\n\n    return customHelper(manager, isClassicHelperManager(manager) ? factory : factory.class);\n  }\n\n  _lookupPartial(name, owner) {\n    let templateFactory$$1 = lookupPartial(name, owner);\n    let template = templateFactory$$1(owner);\n    return new PartialDefinitionImpl(name, template);\n  }\n\n  _lookupModifier(name, owner) {\n    let builtin = this.builtInModifiers[name];\n\n    if (builtin === undefined) {\n      let modifier = owner.factoryFor(`modifier:${name}`);\n\n      if (modifier !== undefined) {\n        let manager = getModifierManager(owner, modifier.class);\n        assert(`Expected a modifier manager to exist, but did not find one for ${name}`, manager);\n        assert(`Internal modifier managers are not supported via \\`getModifierManager\\` yet, found an internal manager for ${name}`, !isInternalModifierManager(manager));\n        return new CustomModifierDefinition(name, modifier, manager, this.isInteractive);\n      }\n    }\n\n    return builtin;\n  }\n\n  _lookupComponentDefinition(_name, owner) {\n    let name = _name;\n    let pair = lookupComponentPair(owner, name);\n\n    if (pair === null) {\n      return null;\n    }\n\n    let layout;\n    let key;\n\n    if (pair.component === null) {\n      key = layout = pair.layout(owner);\n    } else {\n      key = pair.component;\n    }\n\n    let cachedComponentDefinition = this.componentDefinitionCache.get(key);\n\n    if (cachedComponentDefinition !== undefined) {\n      return cachedComponentDefinition;\n    }\n\n    if (layout === undefined && pair.layout !== null) {\n      layout = pair.layout(owner);\n    }\n\n    let finalizer = _instrumentStart('render.getComponentDefinition', instrumentationPayload$1, name);\n\n    let definition = null;\n\n    if (pair.component === null) {\n      if (ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS) {\n        definition = new TemplateOnlyComponentDefinition(name, layout);\n      }\n    } else if (isTemplateOnlyComponent(pair.component.class)) {\n      definition = new TemplateOnlyComponentDefinition(name, layout);\n    }\n\n    if (pair.component !== null) {\n      assert(`missing component class ${name}`, pair.component.class !== undefined);\n      let ComponentClass = pair.component.class;\n      let manager = getComponentManager(owner, ComponentClass);\n\n      if (manager !== undefined) {\n        if (isInternalComponentManager(manager)) {\n          assert(`missing layout for internal component ${name}`, pair.layout !== null);\n          definition = new InternalComponentDefinition(manager, ComponentClass, layout);\n        } else {\n          definition = new CustomManagerDefinition(name, pair.component, manager, layout !== undefined ? layout : owner.lookup(privatize`template:components/-default`)(owner));\n        }\n      }\n    }\n\n    if (definition === null) {\n      definition = new CurlyComponentDefinition(name, pair.component || owner.factoryFor(privatize`component:-default`), layout);\n    }\n\n    finalizer();\n    this.componentDefinitionCache.set(key, definition);\n    return definition;\n  }\n\n}\n\nfunction hashToArgs(hash) {\n  if (hash === null) return null;\n  let names = hash[0].map(key => `@${key}`);\n  return [names, hash[1]];\n}\n\nconst experimentalMacros = []; // This is a private API to allow for experimental macros\n// to be created in user space. Registering a macro should\n// should be done in an initializer.\n\nfunction registerMacros(macro) {\n  experimentalMacros.push(macro);\n}\n\nfunction refineInlineSyntax(name, params, hash, context) {\n  let component = context.resolver.lookupComponent(name, context.meta.owner);\n\n  if (component !== null) {\n    return staticComponent(component, [params === null ? [] : params, hashToArgs(hash), EMPTY_BLOCKS]);\n  }\n\n  return UNHANDLED;\n}\n\nfunction refineBlockSyntax(name, params, hash, blocks, context) {\n  let handle = context.resolver.lookupComponent(name, context.meta.owner);\n\n  if (handle !== null) {\n    return staticComponent(handle, [params, hashToArgs(hash), blocks]);\n  }\n\n  assert(`A component or helper named \"${name}\" could not be found`, context.meta.owner.hasRegistration(`helper:${name}`));\n  assert(`Helpers may not be used in the block form, for example {{#${name}}}{{/${name}}}. Please use a component, or alternatively use the helper in combination with a built-in Ember helper, for example {{#if (${name})}}{{/if}}.`, !(() => {\n    const resolver = context.resolver['resolver'];\n    const owner = context.meta.owner;\n\n    if (name === 'component' || resolver['builtInHelpers'][name]) {\n      return true;\n    }\n\n    return owner.hasRegistration(`helper:${name}`);\n  })());\n  return NONE;\n}\n\nfunction populateMacros(macros) {\n  let {\n    inlines,\n    blocks\n  } = macros;\n  inlines.addMissing(refineInlineSyntax);\n  blocks.addMissing(refineBlockSyntax);\n\n  for (let i = 0; i < experimentalMacros.length; i++) {\n    let macro = experimentalMacros[i];\n    macro(blocks, inlines);\n  }\n\n  return {\n    blocks,\n    inlines\n  };\n}\n\nclass DynamicScope {\n  constructor(view, outletState) {\n    this.view = view;\n    this.outletState = outletState;\n  }\n\n  child() {\n    return new DynamicScope(this.view, this.outletState);\n  }\n\n  get(key) {\n    // tslint:disable-next-line:max-line-length\n    assert(`Using \\`-get-dynamic-scope\\` is only supported for \\`outletState\\` (you used \\`${key}\\`).`, key === 'outletState');\n    return this.outletState;\n  }\n\n  set(key, value) {\n    // tslint:disable-next-line:max-line-length\n    assert(`Using \\`-with-dynamic-scope\\` is only supported for \\`outletState\\` (you used \\`${key}\\`).`, key === 'outletState');\n    this.outletState = value;\n    return value;\n  }\n\n} // This wrapper logic prevents us from rerendering in case of a hard failure\n// during render. This prevents infinite revalidation type loops from occuring,\n// and ensures that errors are not swallowed by subsequent follow on failures.\n\nfunction errorLoopTransaction(fn) {\n  if (DEBUG) {\n    return () => {\n      let didError = true;\n\n      try {\n        fn();\n        didError = false;\n      } finally {\n        if (didError) {\n          // Noop the function so that we won't keep calling it and causing\n          // infinite looping failures;\n          fn = () => {\n            console.warn('Attempted to rerender, but the Ember application has had an unrecoverable error occur during render. You should reload the application after fixing the cause of the error.');\n          };\n        }\n      }\n    };\n  } else {\n    return fn;\n  }\n}\n\nclass RootState {\n  constructor(root, runtime, context, template, self, parentElement, dynamicScope, builder) {\n    this.root = root;\n    this.runtime = runtime;\n    assert(`You cannot render \\`${valueForRef(self)}\\` without a template.`, template !== undefined);\n    this.id = getViewId(root);\n    this.result = undefined;\n    this.destroyed = false;\n    this.render = errorLoopTransaction(() => {\n      let layout = unwrapTemplate(template).asLayout();\n      let handle = layout.compile(context);\n      let iterator = renderMain(runtime, context, self, builder(runtime.env, {\n        element: parentElement,\n        nextSibling: null\n      }), unwrapHandle(handle), dynamicScope);\n      let result = this.result = iterator.sync(); // override .render function after initial render\n\n      this.render = errorLoopTransaction(() => result.rerender({\n        alwaysRevalidate: false\n      }));\n    });\n  }\n\n  isFor(possibleRoot) {\n    return this.root === possibleRoot;\n  }\n\n  destroy() {\n    let {\n      result,\n      runtime: {\n        env\n      }\n    } = this;\n    this.destroyed = true;\n    this.runtime = undefined;\n    this.root = null;\n    this.result = undefined;\n    this.render = undefined;\n\n    if (result !== undefined) {\n      /*\n       Handles these scenarios:\n              * When roots are removed during standard rendering process, a transaction exists already\n         `.begin()` / `.commit()` are not needed.\n       * When roots are being destroyed manually (`component.append(); component.destroy() case), no\n         transaction exists already.\n       * When roots are being destroyed during `Renderer#destroy`, no transaction exists\n              */\n      inTransaction(env, () => destroy(result));\n    }\n  }\n\n}\n\nconst renderers = [];\nfunction _resetRenderers() {\n  renderers.length = 0;\n}\n\nfunction register(renderer) {\n  assert('Cannot register the same renderer twice', renderers.indexOf(renderer) === -1);\n  renderers.push(renderer);\n}\n\nfunction deregister(renderer) {\n  let index = renderers.indexOf(renderer);\n  assert('Cannot deregister unknown unregistered renderer', index !== -1);\n  renderers.splice(index, 1);\n}\n\nfunction loopBegin() {\n  for (let i = 0; i < renderers.length; i++) {\n    renderers[i]._scheduleRevalidate();\n  }\n}\n\nfunction K() {\n  /* noop */\n}\n\nlet renderSettledDeferred = null;\n/*\n  Returns a promise which will resolve when rendering has settled. Settled in\n  this context is defined as when all of the tags in use are \"current\" (e.g.\n  `renderers.every(r => r._isValid())`). When this is checked at the _end_ of\n  the run loop, this essentially guarantees that all rendering is completed.\n\n  @method renderSettled\n  @returns {Promise<void>} a promise which fulfills when rendering has settled\n*/\n\nfunction renderSettled() {\n  if (renderSettledDeferred === null) {\n    renderSettledDeferred = RSVP.defer(); // if there is no current runloop, the promise created above will not have\n    // a chance to resolve (because its resolved in backburner's \"end\" event)\n\n    if (!getCurrentRunLoop()) {\n      // ensure a runloop has been kicked off\n      backburner.schedule('actions', null, K);\n    }\n  }\n\n  return renderSettledDeferred.promise;\n}\n\nfunction resolveRenderPromise() {\n  if (renderSettledDeferred !== null) {\n    let resolve = renderSettledDeferred.resolve;\n    renderSettledDeferred = null;\n    backburner.join(null, resolve);\n  }\n}\n\nlet loops = 0;\n\nfunction loopEnd() {\n  for (let i = 0; i < renderers.length; i++) {\n    if (!renderers[i]._isValid()) {\n      if (loops > ENV._RERENDER_LOOP_LIMIT) {\n        loops = 0; // TODO: do something better\n\n        renderers[i].destroy();\n        throw new Error('infinite rendering invalidation detected');\n      }\n\n      loops++;\n      return backburner.join(null, K);\n    }\n  }\n\n  loops = 0;\n  resolveRenderPromise();\n}\n\nbackburner.on('begin', loopBegin);\nbackburner.on('end', loopEnd);\nclass Renderer {\n  constructor(owner, document, env, rootTemplate, viewRegistry, destinedForDOM = false, builder = clientBuilder) {\n    this._inRenderTransaction = false;\n    this._lastRevision = -1;\n    this._destroyed = false;\n    this._rootTemplate = rootTemplate(owner);\n    this._viewRegistry = viewRegistry;\n    this._destinedForDOM = destinedForDOM;\n    this._roots = [];\n    this._removedRoots = [];\n    this._builder = builder; // resolver is exposed for tests\n\n    let runtimeResolver = this._runtimeResolver = new RuntimeResolverImpl(owner, env.isInteractive);\n    let compileTimeResolver = new CompileTimeResolverImpl(runtimeResolver);\n    let sharedArtifacts = artifacts();\n    let context = this._context = syntaxCompilationContext(sharedArtifacts, compileTimeResolver);\n    populateMacros(context.macros);\n    let runtimeEnvironmentDelegate = new EmberEnvironmentDelegate(owner, env.isInteractive);\n    this._runtime = runtimeContext({\n      appendOperations: env.hasDOM ? new DOMTreeConstruction(document) : new NodeDOMTreeConstruction(document),\n      updateOperations: new DOMChanges(document)\n    }, runtimeEnvironmentDelegate, sharedArtifacts, runtimeResolver);\n  }\n\n  get debugRenderTree() {\n    let {\n      debugRenderTree\n    } = this._runtime.env;\n    assert('Attempted to access the DebugRenderTree, but it did not exist. Is the Ember Inspector open?', debugRenderTree);\n    return debugRenderTree;\n  } // renderer HOOKS\n\n\n  appendOutletView(view, target) {\n    let definition = createRootOutlet(view);\n\n    this._appendDefinition(view, curry(definition), target);\n  }\n\n  appendTo(view, target) {\n    let definition = new RootComponentDefinition(view);\n\n    this._appendDefinition(view, curry(definition), target);\n  }\n\n  _appendDefinition(root, definition, target) {\n    let self = createConstRef(definition, 'this');\n    let dynamicScope = new DynamicScope(null, UNDEFINED_REFERENCE);\n    let rootState = new RootState(root, this._runtime, this._context, this._rootTemplate, self, target, dynamicScope, this._builder);\n\n    this._renderRoot(rootState);\n  }\n\n  rerender() {\n    this._scheduleRevalidate();\n  }\n\n  register(view) {\n    let id = getViewId(view);\n    assert('Attempted to register a view with an id already in use: ' + id, !this._viewRegistry[id]);\n    this._viewRegistry[id] = view;\n  }\n\n  unregister(view) {\n    delete this._viewRegistry[getViewId(view)];\n  }\n\n  remove(view) {\n    view._transitionTo('destroying');\n\n    this.cleanupRootFor(view);\n\n    if (this._destinedForDOM) {\n      view.trigger('didDestroyElement');\n    }\n  }\n\n  cleanupRootFor(view) {\n    // no need to cleanup roots if we have already been destroyed\n    if (this._destroyed) {\n      return;\n    }\n\n    let roots = this._roots; // traverse in reverse so we can remove items\n    // without mucking up the index\n\n    let i = this._roots.length;\n\n    while (i--) {\n      let root = roots[i];\n\n      if (root.isFor(view)) {\n        root.destroy();\n        roots.splice(i, 1);\n      }\n    }\n  }\n\n  destroy() {\n    if (this._destroyed) {\n      return;\n    }\n\n    this._destroyed = true;\n\n    this._clearAllRoots();\n  }\n\n  getBounds(view) {\n    let bounds = view[BOUNDS];\n    assert('object passed to getBounds must have the BOUNDS symbol as a property', Boolean(bounds));\n    let parentElement = bounds.parentElement();\n    let firstNode = bounds.firstNode();\n    let lastNode = bounds.lastNode();\n    return {\n      parentElement,\n      firstNode,\n      lastNode\n    };\n  }\n\n  createElement(tagName) {\n    return this._runtime.env.getAppendOperations().createElement(tagName);\n  }\n\n  _renderRoot(root) {\n    let {\n      _roots: roots\n    } = this;\n    roots.push(root);\n\n    if (roots.length === 1) {\n      register(this);\n    }\n\n    this._renderRootsTransaction();\n  }\n\n  _renderRoots() {\n    let {\n      _roots: roots,\n      _runtime: runtime,\n      _removedRoots: removedRoots\n    } = this;\n    let initialRootsLength;\n\n    do {\n      initialRootsLength = roots.length;\n      inTransaction(runtime.env, () => {\n        // ensure that for the first iteration of the loop\n        // each root is processed\n        for (let i = 0; i < roots.length; i++) {\n          let root = roots[i];\n\n          if (root.destroyed) {\n            // add to the list of roots to be removed\n            // they will be removed from `this._roots` later\n            removedRoots.push(root); // skip over roots that have been marked as destroyed\n\n            continue;\n          } // when processing non-initial reflush loops,\n          // do not process more roots than needed\n\n\n          if (i >= initialRootsLength) {\n            continue;\n          }\n\n          root.render();\n        }\n\n        this._lastRevision = valueForTag(CURRENT_TAG);\n      });\n    } while (roots.length > initialRootsLength); // remove any roots that were destroyed during this transaction\n\n\n    while (removedRoots.length) {\n      let root = removedRoots.pop();\n      let rootIndex = roots.indexOf(root);\n      roots.splice(rootIndex, 1);\n    }\n\n    if (this._roots.length === 0) {\n      deregister(this);\n    }\n  }\n\n  _renderRootsTransaction() {\n    if (this._inRenderTransaction) {\n      // currently rendering roots, a new root was added and will\n      // be processed by the existing _renderRoots invocation\n      return;\n    } // used to prevent calling _renderRoots again (see above)\n    // while we are actively rendering roots\n\n\n    this._inRenderTransaction = true;\n    let completedWithoutError = false;\n\n    try {\n      this._renderRoots();\n\n      completedWithoutError = true;\n    } finally {\n      if (!completedWithoutError) {\n        this._lastRevision = valueForTag(CURRENT_TAG);\n      }\n\n      this._inRenderTransaction = false;\n    }\n  }\n\n  _clearAllRoots() {\n    let roots = this._roots;\n\n    for (let i = 0; i < roots.length; i++) {\n      let root = roots[i];\n      root.destroy();\n    }\n\n    this._removedRoots.length = 0;\n    this._roots = []; // if roots were present before destroying\n    // deregister this renderer instance\n\n    if (roots.length) {\n      deregister(this);\n    }\n  }\n\n  _scheduleRevalidate() {\n    backburner.scheduleOnce('render', this, this._revalidate);\n  }\n\n  _isValid() {\n    return this._destroyed || this._roots.length === 0 || validateTag(CURRENT_TAG, this._lastRevision);\n  }\n\n  _revalidate() {\n    if (this._isValid()) {\n      return;\n    }\n\n    this._renderRootsTransaction();\n  }\n\n}\nclass InertRenderer extends Renderer {\n  static create(props) {\n    let {\n      document,\n      env,\n      rootTemplate,\n      _viewRegistry,\n      builder\n    } = props;\n    return new this(getOwner(props), document, env, rootTemplate, _viewRegistry, false, builder);\n  }\n\n  getElement(_view) {\n    throw new Error('Accessing `this.element` is not allowed in non-interactive environments (such as FastBoot).');\n  }\n\n}\nclass InteractiveRenderer extends Renderer {\n  static create(props) {\n    let {\n      document,\n      env,\n      rootTemplate,\n      _viewRegistry,\n      builder\n    } = props;\n    return new this(getOwner(props), document, env, rootTemplate, _viewRegistry, true, builder);\n  }\n\n  getElement(view) {\n    return getViewElement(view);\n  }\n\n}\n\nlet TEMPLATES = {};\nfunction setTemplates(templates) {\n  TEMPLATES = templates;\n}\nfunction getTemplates() {\n  return TEMPLATES;\n}\nfunction getTemplate(name) {\n  if (Object.prototype.hasOwnProperty.call(TEMPLATES, name)) {\n    return TEMPLATES[name];\n  }\n}\nfunction hasTemplate(name) {\n  return Object.prototype.hasOwnProperty.call(TEMPLATES, name);\n}\nfunction setTemplate(name, template) {\n  return TEMPLATES[name] = template;\n}\n\nclass InternalComponent {\n  constructor(owner, args, caller) {\n    this.owner = owner;\n    this.args = args;\n    this.caller = caller;\n    setOwner(this, owner);\n  } // Factory interface\n\n\n  static create() {\n    throw assert('Use constructor instead of create');\n  }\n\n  static get class() {\n    return this;\n  }\n\n  static get fullName() {\n    return this.name;\n  }\n\n  static get normalizedName() {\n    return this.name;\n  }\n\n  arg(key) {\n    let ref = this.args[key];\n    return ref ? valueForRef(ref) : undefined;\n  }\n\n  toString() {\n    return `<${this.constructor.toString()}:${guidFor(this)}>`;\n  }\n\n}\n\n/**\n@module @ember/component\n*/\n/**\n  See [Ember.Templates.components.Input](/ember/release/classes/Ember.Templates.components/methods/Input?anchor=Input).\n\n  @method input\n  @for Ember.Templates.helpers\n  @param {Hash} options\n  @public\n  */\n\n/**\n  The `Input` component lets you create an HTML `<input>` element.\n\n  ```handlebars\n  <Input @value=\"987\" />\n  ```\n\n  creates an `<input>` element with `type=\"text\"` and value set to 987.\n\n  ### Text field\n\n  If no `type` argument is specified, a default of type 'text' is used.\n\n  ```handlebars\n  Search:\n  <Input @value={{this.searchWord}} />\n  ```\n\n  In this example, the initial value in the `<input>` will be set to the value of\n  `this.searchWord`. If the user changes the text, the value of `this.searchWord` will also be\n  updated.\n\n  ### Actions\n\n  The `Input` component takes a number of arguments with callbacks that are invoked in response to\n  user events.\n\n  * `enter`\n  * `insert-newline`\n  * `escape-press`\n  * `focus-in`\n  * `focus-out`\n  * `key-down`\n  * `key-press`\n  * `key-up`\n\n  These callbacks are passed to `Input` like this:\n\n  ```handlebars\n  <Input @value={{this.searchWord}} @enter={{this.query}} />\n  ```\n\n  ### `<input>` HTML Attributes to Avoid\n\n  In most cases, if you want to pass an attribute to the underlying HTML `<input>` element, you\n  can pass the attribute directly, just like any other Ember component.\n\n  ```handlebars\n  <Input @type=\"text\" size=\"10\" />\n  ```\n\n  In this example, the `size` attribute will be applied to the underlying `<input>` element in the\n  outputted HTML.\n\n  However, there are a few attributes where you **must** use the `@` version.\n\n  * `@type`: This argument is used to control which Ember component is used under the hood\n  * `@value`: The `@value` argument installs a two-way binding onto the element. If you wanted a\n    one-way binding, use `<input>` with the `value` property and the `input` event instead.\n  * `@checked` (for checkboxes): like `@value`, the `@checked` argument installs a two-way binding\n    onto the element. If you wanted a one-way binding, use `<input type=\"checkbox\">` with\n    `checked` and the `input` event instead.\n\n  ### Extending `TextField`\n\n  Internally, `<Input @type=\"text\" />` creates an instance of `TextField`, passing arguments from\n  the helper to `TextField`'s `create` method. Subclassing `TextField` is supported but not\n  recommended.\n\n  See [TextField](/ember/release/classes/TextField)\n\n  ### Checkbox\n\n  To create an `<input type=\"checkbox\">`:\n\n  ```handlebars\n  Emberize Everything:\n  <Input @type=\"checkbox\" @checked={{this.isEmberized}} name=\"isEmberized\" />\n  ```\n\n  This will bind the checked state of this checkbox to the value of `isEmberized` -- if either one\n  changes, it will be reflected in the other.\n\n  ### Extending `Checkbox`\n\n  Internally, `<Input @type=\"checkbox\" />` creates an instance of `Checkbox`. Subclassing\n  `TextField` is supported but not recommended.\n\n  See [Checkbox](/ember/release/classes/Checkbox)\n\n  @method Input\n  @for Ember.Templates.components\n  @see {TextField}\n  @see {Checkbox}\n  @param {Hash} options\n  @public\n*/\n\nclass Input extends InternalComponent {\n  get isCheckbox() {\n    return this.arg('type') === 'checkbox';\n  }\n\n}\nsetComponentManager(InternalManager.for('input'), Input);\n\nInput.toString = () => '@ember/component/input';\n\n/**\n@module ember\n*/\n/**\n  Calls [String.loc](/ember/release/classes/String/methods/loc?anchor=loc) with the\n  provided string. This is a convenient way to localize text within a template.\n  For example:\n\n  ```javascript\n  Ember.STRINGS = {\n    '_welcome_': 'Bonjour'\n  };\n  ```\n\n  ```handlebars\n  <div class='message'>\n    {{loc '_welcome_'}}\n  </div>\n  ```\n\n  ```html\n  <div class='message'>\n    Bonjour\n  </div>\n  ```\n\n  See [String.loc](/ember/release/classes/String/methods/loc?anchor=loc) for how to\n  set up localized string references.\n\n  @method loc\n  @for Ember.Templates.helpers\n  @param {String} str The string to format.\n  @see {String#loc}\n  @public\n  @deprecated\n*/\n\nvar loc$1 = helper(function (params) {\n  return loc.apply(null, params\n  /* let the other side handle errors */\n  );\n});\n\nvar ComponentTemplate = templateFactory({\n  \"id\": \"q4vmP/CB\",\n  \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/component.hbs\"\n});\n\nvar InputTemplate = templateFactory({\n  \"id\": \"6ZtVRptz\",\n  \"block\": \"{\\\"symbols\\\":[\\\"Checkbox\\\",\\\"TextField\\\",\\\"&attrs\\\"],\\\"statements\\\":[[6,[37,2],[[30,[36,1],[\\\"-checkbox\\\"],null],[30,[36,1],[\\\"-text-field\\\"],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"isCheckbox\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[8,[32,1],[[17,3]],[[\\\"@target\\\",\\\"@__ARGS__\\\"],[[32,0,[\\\"caller\\\"]],[32,0,[\\\"args\\\"]]]],null]],\\\"parameters\\\":[]},{\\\"statements\\\":[[8,[32,2],[[17,3]],[[\\\"@target\\\",\\\"@__ARGS__\\\"],[[32,0,[\\\"caller\\\"]],[32,0,[\\\"args\\\"]]]],null]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1,2]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"component\\\",\\\"let\\\"]}\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/input.hbs\"\n});\n\nvar OutletTemplate = templateFactory({\n  \"id\": \"xnYqOkvA\",\n  \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[30,[36,1],[[30,[36,0],null,null]],null]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-outlet\\\",\\\"component\\\"]}\",\n  \"moduleName\": \"packages/@ember/-internals/glimmer/lib/templates/outlet.hbs\"\n});\n\nconst TOP_LEVEL_NAME = '-top-level';\nconst TOP_LEVEL_OUTLET = 'main';\nclass OutletView {\n  constructor(_environment, renderer, owner, template) {\n    this._environment = _environment;\n    this.renderer = renderer;\n    this.owner = owner;\n    this.template = template;\n    let outletStateTag = createTag();\n    let outletState = {\n      outlets: {\n        main: undefined\n      },\n      render: {\n        owner: owner,\n        into: undefined,\n        outlet: TOP_LEVEL_OUTLET,\n        name: TOP_LEVEL_NAME,\n        controller: undefined,\n        model: undefined,\n        template\n      }\n    };\n    let ref = this.ref = createComputeRef(() => {\n      consumeTag(outletStateTag);\n      return outletState;\n    }, state => {\n      dirtyTag(outletStateTag);\n      outletState.outlets.main = state;\n    });\n    this.state = {\n      ref,\n      name: TOP_LEVEL_NAME,\n      outlet: TOP_LEVEL_OUTLET,\n      template,\n      controller: undefined,\n      model: undefined\n    };\n  }\n\n  static extend(injections) {\n    return class extends OutletView {\n      static create(options) {\n        if (options) {\n          return super.create(assign({}, injections, options));\n        } else {\n          return super.create(injections);\n        }\n      }\n\n    };\n  }\n\n  static reopenClass(injections) {\n    assign(this, injections);\n  }\n\n  static create(options) {\n    let {\n      _environment,\n      renderer,\n      template: templateFactory$$1\n    } = options;\n    let owner = getOwner(options);\n    let template = templateFactory$$1(owner);\n    return new OutletView(_environment, renderer, owner, template);\n  }\n\n  appendTo(selector) {\n    let target;\n\n    if (this._environment.hasDOM) {\n      target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n    } else {\n      target = selector;\n    }\n\n    schedule('render', this.renderer, 'appendOutletView', this, target);\n  }\n\n  rerender() {\n    /**/\n  }\n\n  setOutletState(state) {\n    updateRef(this.ref, state);\n  }\n\n  destroy() {\n    /**/\n  }\n\n}\n\nfunction setupApplicationRegistry(registry) {\n  registry.injection('renderer', 'env', '-environment:main'); // because we are using injections we can't use instantiate false\n  // we need to use bind() to copy the function so factory for\n  // association won't leak\n\n  registry.register('service:-dom-builder', {\n    create({\n      bootOptions\n    }) {\n      let {\n        _renderMode\n      } = bootOptions;\n\n      switch (_renderMode) {\n        case 'serialize':\n          return serializeBuilder.bind(null);\n\n        case 'rehydrate':\n          return rehydrationBuilder.bind(null);\n\n        default:\n          return clientBuilder.bind(null);\n      }\n    }\n\n  });\n  registry.injection('service:-dom-builder', 'bootOptions', '-environment:main');\n  registry.injection('renderer', 'builder', 'service:-dom-builder');\n  registry.register(privatize`template:-root`, RootTemplate);\n  registry.injection('renderer', 'rootTemplate', privatize`template:-root`);\n  registry.register('renderer:-dom', InteractiveRenderer);\n  registry.register('renderer:-inert', InertRenderer);\n  registry.injection('renderer', 'document', 'service:-document');\n}\nfunction setupEngineRegistry(registry) {\n  registry.optionsForType('template', {\n    instantiate: false\n  });\n  registry.register('view:-outlet', OutletView);\n  registry.register('template:-outlet', OutletTemplate);\n  registry.injection('view:-outlet', 'template', 'template:-outlet');\n  registry.register(privatize`template:components/-default`, ComponentTemplate);\n  registry.optionsForType('helper', {\n    instantiate: false\n  });\n  registry.register('helper:loc', loc$1);\n  registry.register('component:-text-field', TextField);\n  registry.register('component:-checkbox', Checkbox);\n  registry.register('component:link-to', LinkComponent);\n  registry.register('component:input', Input);\n  registry.register('template:components/input', InputTemplate);\n  registry.register('component:textarea', TextArea);\n\n  if (!ENV._TEMPLATE_ONLY_GLIMMER_COMPONENTS) {\n    registry.register(privatize`component:-default`, Component);\n  }\n}\n\nfunction setComponentManager$1(stringOrFunction, obj) {\n  let factory;\n\n  if (COMPONENT_MANAGER_STRING_LOOKUP && typeof stringOrFunction === 'string') {\n    deprecate('Passing the name of the component manager to \"setupComponentManager\" is deprecated. Please pass a function that produces an instance of the manager.', false, {\n      id: 'deprecate-string-based-component-manager',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x/#toc_component-manager-string-lookup',\n      for: 'ember-source',\n      since: {\n        enabled: '3.8.0'\n      }\n    });\n\n    factory = function (owner) {\n      return owner.lookup(`component-manager:${stringOrFunction}`);\n    };\n  } else {\n    factory = stringOrFunction;\n  }\n\n  return setComponentManager(factory, obj);\n}\n\n/**\n  [Glimmer](https://github.com/tildeio/glimmer) is a templating engine used by Ember.js that is compatible with a subset of the [Handlebars](http://handlebarsjs.com/) syntax.\n\n  ### Showing a property\n\n  Templates manage the flow of an application's UI, and display state (through\n  the DOM) to a user. For example, given a component with the property \"name\",\n  that component's template can use the name in several ways:\n\n  ```app/components/person-profile.js\n  import Component from '@ember/component';\n\n  export default Component.extend({\n    name: 'Jill'\n  });\n  ```\n\n  ```app/components/person-profile.hbs\n  {{this.name}}\n  <div>{{this.name}}</div>\n  <span data-name={{this.name}}></span>\n  ```\n\n  Any time the \"name\" property on the component changes, the DOM will be\n  updated.\n\n  Properties can be chained as well:\n\n  ```handlebars\n  {{@aUserModel.name}}\n  <div>{{@listOfUsers.firstObject.name}}</div>\n  ```\n\n  ### Using Ember helpers\n\n  When content is passed in mustaches `{{}}`, Ember will first try to find a helper\n  or component with that name. For example, the `if` helper:\n\n  ```app/components/person-profile.hbs\n  {{if this.name \"I have a name\" \"I have no name\"}}\n  <span data-has-name={{if this.name true}}></span>\n  ```\n\n  The returned value is placed where the `{{}}` is called. The above style is\n  called \"inline\". A second style of helper usage is called \"block\". For example:\n\n  ```handlebars\n  {{#if this.name}}\n    I have a name\n  {{else}}\n    I have no name\n  {{/if}}\n  ```\n\n  The block form of helpers allows you to control how the UI is created based\n  on the values of properties.\n  A third form of helper is called \"nested\". For example here the concat\n  helper will add \" Doe\" to a displayed name if the person has no last name:\n\n  ```handlebars\n  <span data-name={{concat this.firstName (\n    if this.lastName (concat \" \" this.lastName) \"Doe\"\n  )}}></span>\n  ```\n\n  Ember's built-in helpers are described under the [Ember.Templates.helpers](/ember/release/classes/Ember.Templates.helpers)\n  namespace. Documentation on creating custom helpers can be found under\n  [helper](/ember/release/functions/@ember%2Fcomponent%2Fhelper/helper) (or\n  under [Helper](/ember/release/classes/Helper) if a helper requires access to\n  dependency injection).\n\n  ### Invoking a Component\n\n  Ember components represent state to the UI of an application. Further\n  reading on components can be found under [Component](/ember/release/classes/Component).\n\n  @module @ember/component\n  @main @ember/component\n  @public\n */\n\nexport { RootTemplate, Checkbox, TextField, TextArea, LinkComponent, Component, Helper, helper, SafeString, escapeExpression, htmlSafe, isHTMLSafe, Renderer, InertRenderer, InteractiveRenderer, _resetRenderers, renderSettled, getTemplate, setTemplate, hasTemplate, getTemplates, setTemplates, setupEngineRegistry, setupApplicationRegistry, registerMacros as _registerMacros, experimentalMacros as _experimentalMacros, INVOKE, OutletView, setComponentManager$1 as setComponentManager, capabilities, capabilities$1 as modifierCapabilities, helperCapabilities, invokeHelper };\n","export { counters, Meta, meta, peekMeta, setMeta, UNDEFINED } from './lib/meta';","import { symbol, toString } from '@ember/-internals/utils';\nimport { assert, deprecate } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { isDestroyed, isDestroying } from '@glimmer/runtime';\nconst objectPrototype = Object.prototype;\nlet counters;\n\nif (DEBUG) {\n  counters = {\n    peekCalls: 0,\n    peekPrototypeWalks: 0,\n    setCalls: 0,\n    deleteCalls: 0,\n    metaCalls: 0,\n    metaInstantiated: 0,\n    matchingListenersCalls: 0,\n    observerEventsCalls: 0,\n    addToListenersCalls: 0,\n    removeFromListenersCalls: 0,\n    removeAllListenersCalls: 0,\n    listenersInherited: 0,\n    listenersFlattened: 0,\n    parentListenersUsed: 0,\n    flattenedListenersCalls: 0,\n    reopensAfterFlatten: 0,\n    readableLazyChainsCalls: 0,\n    writableLazyChainsCalls: 0\n  };\n}\n/**\n@module ember\n*/\n\n\nexport const UNDEFINED = symbol('undefined');\nlet currentListenerVersion = 1;\nexport class Meta {\n  // DEBUG\n  constructor(obj) {\n    this._listenersVersion = 1;\n    this._inheritedEnd = -1;\n    this._flattenedVersion = 0;\n\n    if (DEBUG) {\n      counters.metaInstantiated++;\n    }\n\n    this._parent = undefined;\n    this._descriptors = undefined;\n    this._mixins = undefined;\n    this._lazyChains = undefined;\n    this._values = undefined;\n    this._revisions = undefined; // initial value for all flags right now is false\n    // see FLAGS const for detailed list of flags used\n\n    this._isInit = false; // used only internally\n\n    this.source = obj;\n    this.proto = obj.constructor === undefined ? undefined : obj.constructor.prototype;\n    this._listeners = undefined;\n  }\n\n  get parent() {\n    let parent = this._parent;\n\n    if (parent === undefined) {\n      let proto = getPrototypeOf(this.source);\n      this._parent = parent = proto === null || proto === objectPrototype ? null : meta(proto);\n    }\n\n    return parent;\n  } // These methods are here to prevent errors in legacy compat with some addons\n  // that used them as intimate API\n\n\n  setSourceDestroying() {\n    deprecate('setSourceDestroying is deprecated, use the destroy() API to destroy the object directly instead', false, {\n      id: 'meta-destruction-apis',\n      until: '3.25.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.21.0'\n      }\n    });\n  }\n\n  setSourceDestroyed() {\n    deprecate('setSourceDestroyed is deprecated, use the destroy() API to destroy the object directly instead', false, {\n      id: 'meta-destruction-apis',\n      until: '3.25.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.21.0'\n      }\n    });\n  }\n\n  isSourceDestroying() {\n    deprecate('isSourceDestroying is deprecated, use the isDestroying() API to check the object destruction state directly instead', false, {\n      id: 'meta-destruction-apis',\n      until: '3.25.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.21.0'\n      }\n    });\n    return isDestroying(this.source);\n  }\n\n  isSourceDestroyed() {\n    deprecate('isSourceDestroyed is deprecated, use the isDestroyed() API to check the object destruction state directly instead', false, {\n      id: 'meta-destruction-apis',\n      until: '3.25.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.21.0'\n      }\n    });\n    return isDestroyed(this.source);\n  }\n\n  setInitializing() {\n    this._isInit = true;\n  }\n\n  unsetInitializing() {\n    this._isInit = false;\n  }\n\n  isInitializing() {\n    return this._isInit;\n  }\n\n  isPrototypeMeta(obj) {\n    return this.proto === this.source && this.source === obj;\n  }\n\n  _getOrCreateOwnMap(key) {\n    return this[key] || (this[key] = Object.create(null));\n  }\n\n  _getOrCreateOwnSet(key) {\n    return this[key] || (this[key] = new Set());\n  }\n\n  _findInheritedMap(key, subkey) {\n    let pointer = this;\n\n    while (pointer !== null) {\n      let map = pointer[key];\n\n      if (map !== undefined) {\n        let value = map.get(subkey);\n\n        if (value !== undefined) {\n          return value;\n        }\n      }\n\n      pointer = pointer.parent;\n    }\n  }\n\n  _hasInInheritedSet(key, value) {\n    let pointer = this;\n\n    while (pointer !== null) {\n      let set = pointer[key];\n\n      if (set !== undefined && set.has(value)) {\n        return true;\n      }\n\n      pointer = pointer.parent;\n    }\n\n    return false;\n  }\n\n  valueFor(key) {\n    let values = this._values;\n    return values !== undefined ? values[key] : undefined;\n  }\n\n  setValueFor(key, value) {\n    let values = this._getOrCreateOwnMap('_values');\n\n    values[key] = value;\n  }\n\n  revisionFor(key) {\n    let revisions = this._revisions;\n    return revisions !== undefined ? revisions[key] : undefined;\n  }\n\n  setRevisionFor(key, revision) {\n    let revisions = this._getOrCreateOwnMap('_revisions');\n\n    revisions[key] = revision;\n  }\n\n  writableLazyChainsFor(key) {\n    if (DEBUG) {\n      counters.writableLazyChainsCalls++;\n    }\n\n    let lazyChains = this._getOrCreateOwnMap('_lazyChains');\n\n    let chains = lazyChains[key];\n\n    if (chains === undefined) {\n      chains = lazyChains[key] = [];\n    }\n\n    return chains;\n  }\n\n  readableLazyChainsFor(key) {\n    if (DEBUG) {\n      counters.readableLazyChainsCalls++;\n    }\n\n    let lazyChains = this._lazyChains;\n\n    if (lazyChains !== undefined) {\n      return lazyChains[key];\n    }\n\n    return undefined;\n  }\n\n  addMixin(mixin) {\n    assert(isDestroyed(this.source) ? `Cannot add mixins of \\`${toString(mixin)}\\` on \\`${toString(this.source)}\\` call addMixin after it has been destroyed.` : '', !isDestroyed(this.source));\n\n    let set = this._getOrCreateOwnSet('_mixins');\n\n    set.add(mixin);\n  }\n\n  hasMixin(mixin) {\n    return this._hasInInheritedSet('_mixins', mixin);\n  }\n\n  forEachMixins(fn) {\n    let pointer = this;\n    let seen;\n\n    while (pointer !== null) {\n      let set = pointer._mixins;\n\n      if (set !== undefined) {\n        seen = seen === undefined ? new Set() : seen; // TODO cleanup typing here\n\n        set.forEach(mixin => {\n          if (!seen.has(mixin)) {\n            seen.add(mixin);\n            fn(mixin);\n          }\n        });\n      }\n\n      pointer = pointer.parent;\n    }\n  }\n\n  writeDescriptors(subkey, value) {\n    assert(isDestroyed(this.source) ? `Cannot update descriptors for \\`${subkey}\\` on \\`${toString(this.source)}\\` after it has been destroyed.` : '', !isDestroyed(this.source));\n    let map = this._descriptors || (this._descriptors = new Map());\n    map.set(subkey, value);\n  }\n\n  peekDescriptors(subkey) {\n    let possibleDesc = this._findInheritedMap('_descriptors', subkey);\n\n    return possibleDesc === UNDEFINED ? undefined : possibleDesc;\n  }\n\n  removeDescriptors(subkey) {\n    this.writeDescriptors(subkey, UNDEFINED);\n  }\n\n  forEachDescriptors(fn) {\n    let pointer = this;\n    let seen;\n\n    while (pointer !== null) {\n      let map = pointer._descriptors;\n\n      if (map !== undefined) {\n        seen = seen === undefined ? new Set() : seen;\n        map.forEach((value, key) => {\n          if (!seen.has(key)) {\n            seen.add(key);\n\n            if (value !== UNDEFINED) {\n              fn(key, value);\n            }\n          }\n        });\n      }\n\n      pointer = pointer.parent;\n    }\n  }\n\n  addToListeners(eventName, target, method, once, sync) {\n    if (DEBUG) {\n      counters.addToListenersCalls++;\n    }\n\n    this.pushListener(eventName, target, method, once ? 1\n    /* ONCE */\n    : 0\n    /* ADD */\n    , sync);\n  }\n\n  removeFromListeners(eventName, target, method) {\n    if (DEBUG) {\n      counters.removeFromListenersCalls++;\n    }\n\n    this.pushListener(eventName, target, method, 2\n    /* REMOVE */\n    );\n  }\n\n  pushListener(event, target, method, kind, sync = false) {\n    let listeners = this.writableListeners();\n    let i = indexOfListener(listeners, event, target, method); // remove if found listener was inherited\n\n    if (i !== -1 && i < this._inheritedEnd) {\n      listeners.splice(i, 1);\n      this._inheritedEnd--;\n      i = -1;\n    } // if not found, push. Note that we must always push if a listener is not\n    // found, even in the case of a function listener remove, because we may be\n    // attempting to add or remove listeners _before_ flattening has occurred.\n\n\n    if (i === -1) {\n      assert('You cannot add function listeners to prototypes. Convert the listener to a string listener, or add it to the instance instead.', !(this.isPrototypeMeta(this.source) && typeof method === 'function'));\n      assert('You attempted to remove a function listener which did not exist on the instance, which means you may have attempted to remove it before it was added.', !(!this.isPrototypeMeta(this.source) && typeof method === 'function' && kind === 2\n      /* REMOVE */\n      ));\n      listeners.push({\n        event,\n        target,\n        method,\n        kind,\n        sync\n      });\n    } else {\n      let listener = listeners[i]; // If the listener is our own listener and we are trying to remove it, we\n      // want to splice it out entirely so we don't hold onto a reference.\n\n      if (kind === 2\n      /* REMOVE */\n      && listener.kind !== 2\n      /* REMOVE */\n      ) {\n          listeners.splice(i, 1);\n        } else {\n        assert(`You attempted to add an observer for the same method on '${event.split(':')[0]}' twice to ${target} as both sync and async. Observers must be either sync or async, they cannot be both. This is likely a mistake, you should either remove the code that added the observer a second time, or update it to always be sync or async. The method was ${method}.`, !(listener.kind === 0\n        /* ADD */\n        && kind === 0\n        /* ADD */\n        && listener.sync !== sync)); // update own listener\n\n        listener.kind = kind;\n        listener.sync = sync;\n      }\n    }\n  }\n\n  writableListeners() {\n    // Check if we need to invalidate and reflatten. We need to do this if we\n    // have already flattened (flattened version is the current version) and\n    // we are either writing to a prototype meta OR we have never inherited, and\n    // may have cached the parent's listeners.\n    if (this._flattenedVersion === currentListenerVersion && (this.source === this.proto || this._inheritedEnd === -1)) {\n      if (DEBUG) {\n        counters.reopensAfterFlatten++;\n      }\n\n      currentListenerVersion++;\n    } // Inherited end has not been set, then we have never created our own\n    // listeners, but may have cached the parent's\n\n\n    if (this._inheritedEnd === -1) {\n      this._inheritedEnd = 0;\n      this._listeners = [];\n    }\n\n    return this._listeners;\n  }\n  /**\n    Flattening is based on a global revision counter. If the revision has\n    bumped it means that somewhere in a class inheritance chain something has\n    changed, so we need to reflatten everything. This can only happen if:\n       1. A meta has been flattened (listener has been called)\n    2. The meta is a prototype meta with children who have inherited its\n       listeners\n    3. A new listener is subsequently added to the meta (e.g. via `.reopen()`)\n       This is a very rare occurrence, so while the counter is global it shouldn't\n    be updated very often in practice.\n  */\n\n\n  flattenedListeners() {\n    if (DEBUG) {\n      counters.flattenedListenersCalls++;\n    }\n\n    if (this._flattenedVersion < currentListenerVersion) {\n      if (DEBUG) {\n        counters.listenersFlattened++;\n      }\n\n      let parent = this.parent;\n\n      if (parent !== null) {\n        // compute\n        let parentListeners = parent.flattenedListeners();\n\n        if (parentListeners !== undefined) {\n          if (this._listeners === undefined) {\n            // If this instance doesn't have any of its own listeners (writableListeners\n            // has never been called) then we don't need to do any flattening, return\n            // the parent's listeners instead.\n            if (DEBUG) {\n              counters.parentListenersUsed++;\n            }\n\n            this._listeners = parentListeners;\n          } else {\n            let listeners = this._listeners;\n\n            if (this._inheritedEnd > 0) {\n              listeners.splice(0, this._inheritedEnd);\n              this._inheritedEnd = 0;\n            }\n\n            for (let i = 0; i < parentListeners.length; i++) {\n              let listener = parentListeners[i];\n              let index = indexOfListener(listeners, listener.event, listener.target, listener.method);\n\n              if (index === -1) {\n                if (DEBUG) {\n                  counters.listenersInherited++;\n                }\n\n                listeners.unshift(listener);\n                this._inheritedEnd++;\n              }\n            }\n          }\n        }\n      }\n\n      this._flattenedVersion = currentListenerVersion;\n    }\n\n    return this._listeners;\n  }\n\n  matchingListeners(eventName) {\n    let listeners = this.flattenedListeners();\n    let result;\n\n    if (DEBUG) {\n      counters.matchingListenersCalls++;\n    }\n\n    if (listeners !== undefined) {\n      for (let index = 0; index < listeners.length; index++) {\n        let listener = listeners[index]; // REMOVE listeners are placeholders that tell us not to\n        // inherit, so they never match. Only ADD and ONCE can match.\n\n        if (listener.event === eventName && (listener.kind === 0\n        /* ADD */\n        || listener.kind === 1\n        /* ONCE */\n        )) {\n          if (result === undefined) {\n            // we create this array only after we've found a listener that\n            // matches to avoid allocations when no matches are found.\n            result = [];\n          }\n\n          result.push(listener.target, listener.method, listener.kind === 1\n          /* ONCE */\n          );\n        }\n      }\n    }\n\n    return result;\n  }\n\n  observerEvents() {\n    let listeners = this.flattenedListeners();\n    let result;\n\n    if (DEBUG) {\n      counters.observerEventsCalls++;\n    }\n\n    if (listeners !== undefined) {\n      for (let index = 0; index < listeners.length; index++) {\n        let listener = listeners[index]; // REMOVE listeners are placeholders that tell us not to\n        // inherit, so they never match. Only ADD and ONCE can match.\n\n        if ((listener.kind === 0\n        /* ADD */\n        || listener.kind === 1\n        /* ONCE */\n        ) && listener.event.indexOf(':change') !== -1) {\n          if (result === undefined) {\n            // we create this array only after we've found a listener that\n            // matches to avoid allocations when no matches are found.\n            result = [];\n          }\n\n          result.push(listener);\n        }\n      }\n    }\n\n    return result;\n  }\n\n}\nconst getPrototypeOf = Object.getPrototypeOf;\nconst metaStore = new WeakMap();\nexport function setMeta(obj, meta) {\n  assert('Cannot call `setMeta` on null', obj !== null);\n  assert('Cannot call `setMeta` on undefined', obj !== undefined);\n  assert(`Cannot call \\`setMeta\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n\n  if (DEBUG) {\n    counters.setCalls++;\n  }\n\n  metaStore.set(obj, meta);\n}\nexport function peekMeta(obj) {\n  assert('Cannot call `peekMeta` on null', obj !== null);\n  assert('Cannot call `peekMeta` on undefined', obj !== undefined);\n  assert(`Cannot call \\`peekMeta\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n\n  if (DEBUG) {\n    counters.peekCalls++;\n  }\n\n  let meta = metaStore.get(obj);\n\n  if (meta !== undefined) {\n    return meta;\n  }\n\n  let pointer = getPrototypeOf(obj);\n\n  while (pointer !== null) {\n    if (DEBUG) {\n      counters.peekPrototypeWalks++;\n    }\n\n    meta = metaStore.get(pointer);\n\n    if (meta !== undefined) {\n      if (meta.proto !== pointer) {\n        // The meta was a prototype meta which was not marked as initializing.\n        // This can happen when a prototype chain was created manually via\n        // Object.create() and the source object does not have a constructor.\n        meta.proto = pointer;\n      }\n\n      return meta;\n    }\n\n    pointer = getPrototypeOf(pointer);\n  }\n\n  return null;\n}\n/**\n  Retrieves the meta hash for an object. If `writable` is true ensures the\n  hash is writable for this object as well.\n\n  The meta object contains information about computed property descriptors as\n  well as any watched properties and other information. You generally will\n  not access this information directly but instead work with higher level\n  methods that manipulate this hash indirectly.\n\n  @method meta\n  @for Ember\n  @private\n\n  @param {Object} obj The object to retrieve meta for\n  @param {Boolean} [writable=true] Pass `false` if you do not intend to modify\n    the meta hash, allowing the method to avoid making an unnecessary copy.\n  @return {Object} the meta hash for an object\n*/\n\nexport const meta = function meta(obj) {\n  assert('Cannot call `meta` on null', obj !== null);\n  assert('Cannot call `meta` on undefined', obj !== undefined);\n  assert(`Cannot call \\`meta\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n\n  if (DEBUG) {\n    counters.metaCalls++;\n  }\n\n  let maybeMeta = peekMeta(obj); // remove this code, in-favor of explicit parent\n\n  if (maybeMeta !== null && maybeMeta.source === obj) {\n    return maybeMeta;\n  }\n\n  let newMeta = new Meta(obj);\n  setMeta(obj, newMeta);\n  return newMeta;\n};\n\nif (DEBUG) {\n  meta._counters = counters;\n}\n\nexport { counters };\n\nfunction indexOfListener(listeners, event, target, method) {\n  for (let i = listeners.length - 1; i >= 0; i--) {\n    let listener = listeners[i];\n\n    if (listener.event === event && listener.target === target && listener.method === method) {\n      return i;\n    }\n  }\n\n  return -1;\n}","import { meta, peekMeta } from '@ember/-internals/meta';\nimport { setListeners, enumerableSymbol, isObject, setupMandatorySetter, symbol, toString, setWithMandatorySetter, Cache, HAS_NATIVE_PROXY, isEmberArray, setProxy, lookupDescriptor, inspect, getName, setName, guidFor, makeArray, observerListenerMetaFor, ROOT, setObservers, wrap } from '@ember/-internals/utils';\nimport { assert, deprecate, warn, debug } from '@ember/debug';\nimport { ENV, context } from '@ember/-internals/environment';\nimport { schedule } from '@ember/runloop';\nimport { registerDestructor, isDestroyed } from '@glimmer/runtime';\nimport { CURRENT_TAG, tagMetaFor, validateTag, valueForTag, CONSTANT_TAG, dirtyTagFor, tagFor, combine, createUpdatableTag, updateTag, consumeTag, deprecateMutationsInTrackingTransaction, isTracking, track, ALLOW_CYCLES, untrack, trackedData } from '@glimmer/validator';\nexport { createCache, getValue, isConst } from '@glimmer/validator';\nimport { DEBUG } from '@glimmer/env';\nimport { _WeakSet } from '@glimmer/util';\nimport EmberError from '@ember/error';\nimport VERSION from 'ember/version';\nimport { ALIAS_METHOD } from '@ember/deprecated-features';\nimport { assign } from '@ember/polyfills';\nimport { getOwner } from '@ember/-internals/owner';\n\n/**\n@module @ember/object\n*/\n/*\n  The event system uses a series of nested hashes to store listeners on an\n  object. When a listener is registered, or when an event arrives, these\n  hashes are consulted to determine which target and action pair to invoke.\n\n  The hashes are stored in the object's meta hash, and look like this:\n\n      // Object's meta hash\n      {\n        listeners: {       // variable name: `listenerSet`\n          \"foo:change\": [ // variable name: `actions`\n            target, method, once\n          ]\n        }\n      }\n\n*/\n\n/**\n  Add an event listener\n\n  @method addListener\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Object|Function} target A target object or a function\n  @param {Function|String} method A function or the name of a function to be called on `target`\n  @param {Boolean} once A flag whether a function should only be called once\n  @public\n*/\n\nfunction addListener(obj, eventName, target, method, once, sync = true) {\n  assert('You must pass at least an object and event name to addListener', Boolean(obj) && Boolean(eventName));\n\n  if (!method && 'function' === typeof target) {\n    method = target;\n    target = null;\n  }\n\n  meta(obj).addToListeners(eventName, target, method, once === true, sync);\n}\n/**\n  Remove an event listener\n\n  Arguments should match those passed to `addListener`.\n\n  @method removeListener\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Object|Function} target A target object or a function\n  @param {Function|String} method A function or the name of a function to be called on `target`\n  @public\n*/\n\nfunction removeListener(obj, eventName, targetOrFunction, functionOrName) {\n  assert('You must pass at least an object, event name, and method or target and method/method name to removeListener', Boolean(obj) && Boolean(eventName) && (typeof targetOrFunction === 'function' || typeof targetOrFunction === 'object' && Boolean(functionOrName)));\n  let target, method;\n\n  if (typeof targetOrFunction === 'object') {\n    target = targetOrFunction;\n    method = functionOrName;\n  } else {\n    target = null;\n    method = targetOrFunction;\n  }\n\n  let m = meta(obj);\n  m.removeFromListeners(eventName, target, method);\n}\n/**\n  Send an event. The execution of suspended listeners\n  is skipped, and once listeners are removed. A listener without\n  a target is executed on the passed object. If an array of actions\n  is not passed, the actions stored on the passed object are invoked.\n\n  @method sendEvent\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @param {Array} params Optional parameters for each listener.\n  @return {Boolean} if the event was delivered to one or more actions\n  @public\n*/\n\nfunction sendEvent(obj, eventName, params, actions, _meta) {\n  if (actions === undefined) {\n    let meta$$1 = _meta === undefined ? peekMeta(obj) : _meta;\n    actions = meta$$1 !== null ? meta$$1.matchingListeners(eventName) : undefined;\n  }\n\n  if (actions === undefined || actions.length === 0) {\n    return false;\n  }\n\n  for (let i = actions.length - 3; i >= 0; i -= 3) {\n    // looping in reverse for once listeners\n    let target = actions[i];\n    let method = actions[i + 1];\n    let once = actions[i + 2];\n\n    if (!method) {\n      continue;\n    }\n\n    if (once) {\n      removeListener(obj, eventName, target, method);\n    }\n\n    if (!target) {\n      target = obj;\n    }\n\n    let type = typeof method;\n\n    if (type === 'string' || type === 'symbol') {\n      method = target[method];\n    }\n\n    method.apply(target, params);\n  }\n\n  return true;\n}\n/**\n  @private\n  @method hasListeners\n  @static\n  @for @ember/object/events\n  @param obj\n  @param {String} eventName\n  @return {Boolean} if `obj` has listeners for event `eventName`\n*/\n\nfunction hasListeners(obj, eventName) {\n  let meta$$1 = peekMeta(obj);\n\n  if (meta$$1 === null) {\n    return false;\n  }\n\n  let matched = meta$$1.matchingListeners(eventName);\n  return matched !== undefined && matched.length > 0;\n}\n/**\n  Define a property as a function that should be executed when\n  a specified event or events are triggered.\n\n  ``` javascript\n  import EmberObject from '@ember/object';\n  import { on } from '@ember/object/evented';\n  import { sendEvent } from '@ember/object/events';\n\n  let Job = EmberObject.extend({\n    logCompleted: on('completed', function() {\n      console.log('Job completed!');\n    })\n  });\n\n  let job = Job.create();\n\n  sendEvent(job, 'completed'); // Logs 'Job completed!'\n ```\n\n  @method on\n  @static\n  @for @ember/object/evented\n  @param {String} eventNames*\n  @param {Function} func\n  @return {Function} the listener function, passed as last argument to on(...)\n  @public\n*/\n\nfunction on(...args) {\n  let func = args.pop();\n  let events = args;\n  assert('on expects function as last argument', typeof func === 'function');\n  assert('on called without valid event names', events.length > 0 && events.every(p => typeof p === 'string' && p.length > 0));\n  setListeners(func, events);\n  return func;\n}\n\nconst AFTER_OBSERVERS = ':change';\nfunction changeEvent(keyName) {\n  return keyName + AFTER_OBSERVERS;\n}\n\nconst SYNC_DEFAULT = !ENV._DEFAULT_ASYNC_OBSERVERS;\nconst SYNC_OBSERVERS = new Map();\nconst ASYNC_OBSERVERS = new Map();\n/**\n@module @ember/object\n*/\n\n/**\n  @method addObserver\n  @static\n  @for @ember/object/observers\n  @param obj\n  @param {String} path\n  @param {Object|Function} target\n  @param {Function|String} [method]\n  @public\n*/\n\nfunction addObserver(obj, path, target, method, sync = SYNC_DEFAULT) {\n  let eventName = changeEvent(path);\n  addListener(obj, eventName, target, method, false, sync);\n  let meta$$1 = peekMeta(obj);\n\n  if (meta$$1 === null || !(meta$$1.isPrototypeMeta(obj) || meta$$1.isInitializing())) {\n    activateObserver(obj, eventName, sync);\n  }\n}\n/**\n  @method removeObserver\n  @static\n  @for @ember/object/observers\n  @param obj\n  @param {String} path\n  @param {Object|Function} target\n  @param {Function|String} [method]\n  @public\n*/\n\nfunction removeObserver(obj, path, target, method, sync = SYNC_DEFAULT) {\n  let eventName = changeEvent(path);\n  let meta$$1 = peekMeta(obj);\n\n  if (meta$$1 === null || !(meta$$1.isPrototypeMeta(obj) || meta$$1.isInitializing())) {\n    deactivateObserver(obj, eventName, sync);\n  }\n\n  removeListener(obj, eventName, target, method);\n}\n\nfunction getOrCreateActiveObserversFor(target, sync) {\n  let observerMap = sync === true ? SYNC_OBSERVERS : ASYNC_OBSERVERS;\n\n  if (!observerMap.has(target)) {\n    observerMap.set(target, new Map());\n    registerDestructor(target, () => destroyObservers(target), true);\n  }\n\n  return observerMap.get(target);\n}\n\nfunction activateObserver(target, eventName, sync = false) {\n  let activeObservers = getOrCreateActiveObserversFor(target, sync);\n\n  if (activeObservers.has(eventName)) {\n    activeObservers.get(eventName).count++;\n  } else {\n    let [path] = eventName.split(':');\n    let tag = getChainTagsForKey(target, path, tagMetaFor(target), peekMeta(target));\n    activeObservers.set(eventName, {\n      count: 1,\n      path,\n      tag,\n      lastRevision: valueForTag(tag),\n      suspended: false\n    });\n  }\n}\nlet DEACTIVATE_SUSPENDED = false;\nlet SCHEDULED_DEACTIVATE = [];\nfunction deactivateObserver(target, eventName, sync = false) {\n  if (DEACTIVATE_SUSPENDED === true) {\n    SCHEDULED_DEACTIVATE.push([target, eventName, sync]);\n    return;\n  }\n\n  let observerMap = sync === true ? SYNC_OBSERVERS : ASYNC_OBSERVERS;\n  let activeObservers = observerMap.get(target);\n\n  if (activeObservers !== undefined) {\n    let observer = activeObservers.get(eventName);\n    observer.count--;\n\n    if (observer.count === 0) {\n      activeObservers.delete(eventName);\n\n      if (activeObservers.size === 0) {\n        observerMap.delete(target);\n      }\n    }\n  }\n}\nfunction suspendedObserverDeactivation() {\n  DEACTIVATE_SUSPENDED = true;\n}\nfunction resumeObserverDeactivation() {\n  DEACTIVATE_SUSPENDED = false;\n\n  for (let [target, eventName, sync] of SCHEDULED_DEACTIVATE) {\n    deactivateObserver(target, eventName, sync);\n  }\n\n  SCHEDULED_DEACTIVATE = [];\n}\n/**\n * Primarily used for cases where we are redefining a class, e.g. mixins/reopen\n * being applied later. Revalidates all the observers, resetting their tags.\n *\n * @private\n * @param target\n */\n\nfunction revalidateObservers(target) {\n  if (ASYNC_OBSERVERS.has(target)) {\n    ASYNC_OBSERVERS.get(target).forEach(observer => {\n      observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n      observer.lastRevision = valueForTag(observer.tag);\n    });\n  }\n\n  if (SYNC_OBSERVERS.has(target)) {\n    SYNC_OBSERVERS.get(target).forEach(observer => {\n      observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n      observer.lastRevision = valueForTag(observer.tag);\n    });\n  }\n}\nlet lastKnownRevision = 0;\nfunction flushAsyncObservers(shouldSchedule = true) {\n  let currentRevision = valueForTag(CURRENT_TAG);\n\n  if (lastKnownRevision === currentRevision) {\n    return;\n  }\n\n  lastKnownRevision = currentRevision;\n  ASYNC_OBSERVERS.forEach((activeObservers, target) => {\n    let meta$$1 = peekMeta(target);\n    activeObservers.forEach((observer, eventName) => {\n      if (!validateTag(observer.tag, observer.lastRevision)) {\n        let sendObserver = () => {\n          try {\n            sendEvent(target, eventName, [target, observer.path], undefined, meta$$1);\n          } finally {\n            observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n            observer.lastRevision = valueForTag(observer.tag);\n          }\n        };\n\n        if (shouldSchedule) {\n          schedule('actions', sendObserver);\n        } else {\n          sendObserver();\n        }\n      }\n    });\n  });\n}\nfunction flushSyncObservers() {\n  // When flushing synchronous observers, we know that something has changed (we\n  // only do this during a notifyPropertyChange), so there's no reason to check\n  // a global revision.\n  SYNC_OBSERVERS.forEach((activeObservers, target) => {\n    let meta$$1 = peekMeta(target);\n    activeObservers.forEach((observer, eventName) => {\n      if (!observer.suspended && !validateTag(observer.tag, observer.lastRevision)) {\n        try {\n          observer.suspended = true;\n          sendEvent(target, eventName, [target, observer.path], undefined, meta$$1);\n        } finally {\n          observer.tag = getChainTagsForKey(target, observer.path, tagMetaFor(target), peekMeta(target));\n          observer.lastRevision = valueForTag(observer.tag);\n          observer.suspended = false;\n        }\n      }\n    });\n  });\n}\nfunction setObserverSuspended(target, property, suspended) {\n  let activeObservers = SYNC_OBSERVERS.get(target);\n\n  if (!activeObservers) {\n    return;\n  }\n\n  let observer = activeObservers.get(changeEvent(property));\n\n  if (observer) {\n    observer.suspended = suspended;\n  }\n}\nfunction destroyObservers(target) {\n  if (SYNC_OBSERVERS.size > 0) SYNC_OBSERVERS.delete(target);\n  if (ASYNC_OBSERVERS.size > 0) ASYNC_OBSERVERS.delete(target);\n}\n\nconst CUSTOM_TAG_FOR = enumerableSymbol('CUSTOM_TAG_FOR'); // This is exported for `@tracked`, but should otherwise be avoided. Use `tagForObject`.\n\nconst SELF_TAG = symbol('SELF_TAG');\nfunction tagForProperty(obj, propertyKey, addMandatorySetter = false, meta$$1) {\n  if (typeof obj[CUSTOM_TAG_FOR] === 'function') {\n    return obj[CUSTOM_TAG_FOR](propertyKey, addMandatorySetter);\n  }\n\n  let tag = tagFor(obj, propertyKey, meta$$1);\n\n  if (DEBUG && addMandatorySetter) {\n    setupMandatorySetter(tag, obj, propertyKey);\n  }\n\n  return tag;\n}\nfunction tagForObject(obj) {\n  if (isObject(obj)) {\n    if (DEBUG) {\n      assert(isDestroyed(obj) ? `Cannot create a new tag for \\`${toString(obj)}\\` after it has been destroyed.` : '', !isDestroyed(obj));\n    }\n\n    return tagFor(obj, SELF_TAG);\n  }\n\n  return CONSTANT_TAG;\n}\nfunction markObjectAsDirty(obj, propertyKey) {\n  dirtyTagFor(obj, propertyKey);\n  dirtyTagFor(obj, SELF_TAG);\n}\n\n/**\n @module ember\n @private\n */\n\nconst PROPERTY_DID_CHANGE = enumerableSymbol('PROPERTY_DID_CHANGE');\nlet deferred = 0;\n/**\n  This function is called just after an object property has changed.\n  It will notify any observers and clear caches among other things.\n\n  Normally you will not need to call this method directly but if for some\n  reason you can't directly watch a property you can invoke this method\n  manually.\n\n  @method notifyPropertyChange\n  @for @ember/object\n  @param {Object} obj The object with the property that will change\n  @param {String} keyName The property key (or path) that will change.\n  @param {Meta} [_meta] The objects meta.\n  @param {unknown} [value] The new value to set for the property\n  @return {void}\n  @since 3.1.0\n  @public\n*/\n\nfunction notifyPropertyChange(obj, keyName, _meta, value) {\n  let meta$$1 = _meta === undefined ? peekMeta(obj) : _meta;\n\n  if (meta$$1 !== null && (meta$$1.isInitializing() || meta$$1.isPrototypeMeta(obj))) {\n    return;\n  }\n\n  markObjectAsDirty(obj, keyName);\n\n  if (deferred <= 0) {\n    flushSyncObservers();\n  }\n\n  if (PROPERTY_DID_CHANGE in obj) {\n    // we need to check the arguments length here; there's a check in `PROPERTY_DID_CHANGE`\n    // that checks its arguments length, so we have to explicitly not call this with `value`\n    // if it is not passed to `notifyPropertyChange`\n    if (arguments.length === 4) {\n      obj[PROPERTY_DID_CHANGE](keyName, value);\n    } else {\n      obj[PROPERTY_DID_CHANGE](keyName);\n    }\n  }\n}\n/**\n  @method beginPropertyChanges\n  @chainable\n  @private\n*/\n\n\nfunction beginPropertyChanges() {\n  deferred++;\n  suspendedObserverDeactivation();\n}\n/**\n  @method endPropertyChanges\n  @private\n*/\n\n\nfunction endPropertyChanges() {\n  deferred--;\n\n  if (deferred <= 0) {\n    flushSyncObservers();\n    resumeObserverDeactivation();\n  }\n}\n/**\n  Make a series of property changes together in an\n  exception-safe way.\n\n  ```javascript\n  Ember.changeProperties(function() {\n    obj1.set('foo', mayBlowUpWhenSet);\n    obj2.set('bar', baz);\n  });\n  ```\n\n  @method changeProperties\n  @param {Function} callback\n  @private\n*/\n\n\nfunction changeProperties(callback) {\n  beginPropertyChanges();\n\n  try {\n    callback();\n  } finally {\n    endPropertyChanges();\n  }\n}\n\nfunction arrayContentWillChange(array, startIdx, removeAmt, addAmt) {\n  // if no args are passed assume everything changes\n  if (startIdx === undefined) {\n    startIdx = 0;\n    removeAmt = addAmt = -1;\n  } else {\n    if (removeAmt === undefined) {\n      removeAmt = -1;\n    }\n\n    if (addAmt === undefined) {\n      addAmt = -1;\n    }\n  }\n\n  sendEvent(array, '@array:before', [array, startIdx, removeAmt, addAmt]);\n  return array;\n}\nfunction arrayContentDidChange(array, startIdx, removeAmt, addAmt, notify = true) {\n  // if no args are passed assume everything changes\n  if (startIdx === undefined) {\n    startIdx = 0;\n    removeAmt = addAmt = -1;\n  } else {\n    if (removeAmt === undefined) {\n      removeAmt = -1;\n    }\n\n    if (addAmt === undefined) {\n      addAmt = -1;\n    }\n  }\n\n  let meta$$1 = peekMeta(array);\n\n  if (notify) {\n    if (addAmt < 0 || removeAmt < 0 || addAmt - removeAmt !== 0) {\n      notifyPropertyChange(array, 'length', meta$$1);\n    }\n\n    notifyPropertyChange(array, '[]', meta$$1);\n  }\n\n  sendEvent(array, '@array:change', [array, startIdx, removeAmt, addAmt]);\n\n  if (meta$$1 !== null) {\n    let length = array.length;\n    let addedAmount = addAmt === -1 ? 0 : addAmt;\n    let removedAmount = removeAmt === -1 ? 0 : removeAmt;\n    let delta = addedAmount - removedAmount;\n    let previousLength = length - delta;\n    let normalStartIdx = startIdx < 0 ? previousLength + startIdx : startIdx;\n\n    if (meta$$1.revisionFor('firstObject') !== undefined && normalStartIdx === 0) {\n      notifyPropertyChange(array, 'firstObject', meta$$1);\n    }\n\n    if (meta$$1.revisionFor('lastObject') !== undefined) {\n      let previousLastIndex = previousLength - 1;\n      let lastAffectedIndex = normalStartIdx + removedAmount;\n\n      if (previousLastIndex < lastAffectedIndex) {\n        notifyPropertyChange(array, 'lastObject', meta$$1);\n      }\n    }\n  }\n\n  return array;\n}\n\nconst EMPTY_ARRAY = Object.freeze([]);\nfunction objectAt(array, index) {\n  if (Array.isArray(array)) {\n    return array[index];\n  } else {\n    return array.objectAt(index);\n  }\n}\nfunction replace(array, start, deleteCount, items = EMPTY_ARRAY) {\n  if (Array.isArray(array)) {\n    replaceInNativeArray(array, start, deleteCount, items);\n  } else {\n    array.replace(start, deleteCount, items);\n  }\n}\nconst CHUNK_SIZE = 60000; // To avoid overflowing the stack, we splice up to CHUNK_SIZE items at a time.\n// See https://code.google.com/p/chromium/issues/detail?id=56588 for more details.\n\nfunction replaceInNativeArray(array, start, deleteCount, items) {\n  arrayContentWillChange(array, start, deleteCount, items.length);\n\n  if (items.length <= CHUNK_SIZE) {\n    array.splice(start, deleteCount, ...items);\n  } else {\n    array.splice(start, deleteCount);\n\n    for (let i = 0; i < items.length; i += CHUNK_SIZE) {\n      let chunk = items.slice(i, i + CHUNK_SIZE);\n      array.splice(start + i, 0, ...chunk);\n    }\n  }\n\n  arrayContentDidChange(array, start, deleteCount, items.length);\n}\n\nfunction arrayObserversHelper(obj, target, opts, operation, notify) {\n  let willChange = opts && opts.willChange || 'arrayWillChange';\n  let didChange = opts && opts.didChange || 'arrayDidChange';\n  let hasObservers = obj.hasArrayObservers;\n  operation(obj, '@array:before', target, willChange);\n  operation(obj, '@array:change', target, didChange);\n\n  if (hasObservers === notify) {\n    notifyPropertyChange(obj, 'hasArrayObservers');\n  }\n\n  return obj;\n}\n\nfunction addArrayObserver(array, target, opts) {\n  return arrayObserversHelper(array, target, opts, addListener, false);\n}\nfunction removeArrayObserver(array, target, opts) {\n  return arrayObserversHelper(array, target, opts, removeListener, true);\n}\n\nconst CHAIN_PASS_THROUGH = new _WeakSet();\nfunction finishLazyChains(meta$$1, key, value) {\n  let lazyTags = meta$$1.readableLazyChainsFor(key);\n\n  if (lazyTags === undefined) {\n    return;\n  }\n\n  if (isObject(value)) {\n    for (let i = 0; i < lazyTags.length; i++) {\n      let [tag, deps] = lazyTags[i];\n      updateTag(tag, getChainTagsForKey(value, deps, tagMetaFor(value), peekMeta(value)));\n    }\n  }\n\n  lazyTags.length = 0;\n}\nfunction getChainTagsForKeys(obj, keys, tagMeta, meta$$1) {\n  let tags = [];\n\n  for (let i = 0; i < keys.length; i++) {\n    getChainTags(tags, obj, keys[i], tagMeta, meta$$1);\n  }\n\n  return combine(tags);\n}\nfunction getChainTagsForKey(obj, key, tagMeta, meta$$1) {\n  return combine(getChainTags([], obj, key, tagMeta, meta$$1));\n}\n\nfunction getChainTags(chainTags, obj, path, tagMeta, meta$$1) {\n  let current = obj;\n  let currentTagMeta = tagMeta;\n  let currentMeta = meta$$1;\n  let pathLength = path.length;\n  let segmentEnd = -1; // prevent closures\n\n  let segment, descriptor; // eslint-disable-next-line no-constant-condition\n\n  while (true) {\n    let lastSegmentEnd = segmentEnd + 1;\n    segmentEnd = path.indexOf('.', lastSegmentEnd);\n\n    if (segmentEnd === -1) {\n      segmentEnd = pathLength;\n    }\n\n    segment = path.slice(lastSegmentEnd, segmentEnd); // If the segment is an @each, we can process it and then break\n\n    if (segment === '@each' && segmentEnd !== pathLength) {\n      lastSegmentEnd = segmentEnd + 1;\n      segmentEnd = path.indexOf('.', lastSegmentEnd); // There should be exactly one segment after an `@each` (i.e. `@each.foo`, not `@each.foo.bar`)\n\n      deprecate(`When using @each in a dependent-key or an observer, ` + `you can only chain one property level deep after ` + `the @each. That is, \\`${path.slice(0, segmentEnd)}\\` ` + `is allowed but \\`${path}\\` (which is what you passed) ` + `is not.\\n\\n` + `This was never supported. Currently, the extra segments ` + `are silently ignored, i.e. \\`${path}\\` behaves exactly ` + `the same as \\`${path.slice(0, segmentEnd)}\\`. ` + `In the future, this will throw an error.\\n\\n` + `If the current behavior is acceptable for your use case, ` + `please remove the extraneous segments by changing your ` + `key to \\`${path.slice(0, segmentEnd)}\\`. ` + `Otherwise, please create an intermediary computed property ` + `or switch to using tracked properties.`, segmentEnd === -1, {\n        until: '3.17.0',\n        id: 'ember-metal.computed-deep-each',\n        for: 'ember-source',\n        since: {\n          enabled: '3.13.0-beta.3'\n        }\n      });\n      let arrLength = current.length;\n\n      if (typeof arrLength !== 'number' || // TODO: should the second test be `isEmberArray` instead?\n      !(Array.isArray(current) || 'objectAt' in current)) {\n        // If the current object isn't an array, there's nothing else to do,\n        // we don't watch individual properties. Break out of the loop.\n        break;\n      } else if (arrLength === 0) {\n        // Fast path for empty arrays\n        chainTags.push(tagForProperty(current, '[]'));\n        break;\n      }\n\n      if (segmentEnd === -1) {\n        segment = path.slice(lastSegmentEnd);\n      } else {\n        // Deprecated, remove once we turn the deprecation into an assertion\n        segment = path.slice(lastSegmentEnd, segmentEnd);\n      } // Push the tags for each item's property\n\n\n      for (let i = 0; i < arrLength; i++) {\n        let item = objectAt(current, i);\n\n        if (item) {\n          assert(`When using @each to observe the array \\`${current.toString()}\\`, the items in the array must be objects`, typeof item === 'object');\n          chainTags.push(tagForProperty(item, segment, true));\n          currentMeta = peekMeta(item);\n          descriptor = currentMeta !== null ? currentMeta.peekDescriptors(segment) : undefined; // If the key is an alias, we need to bootstrap it\n\n          if (descriptor !== undefined && typeof descriptor.altKey === 'string') {\n            // tslint:disable-next-line: no-unused-expression\n            item[segment];\n          }\n        }\n      } // Push the tag for the array length itself\n\n\n      chainTags.push(tagForProperty(current, '[]', true, currentTagMeta));\n      break;\n    }\n\n    let propertyTag = tagForProperty(current, segment, true, currentTagMeta);\n    descriptor = currentMeta !== null ? currentMeta.peekDescriptors(segment) : undefined;\n    chainTags.push(propertyTag); // If we're at the end of the path, processing the last segment, and it's\n    // not an alias, we should _not_ get the last value, since we already have\n    // its tag. There's no reason to access it and do more work.\n\n    if (segmentEnd === pathLength) {\n      // If the key was an alias, we should always get the next value in order to\n      // bootstrap the alias. This is because aliases, unlike other CPs, should\n      // always be in sync with the aliased value.\n      if (CHAIN_PASS_THROUGH.has(descriptor)) {\n        // tslint:disable-next-line: no-unused-expression\n        current[segment];\n      }\n\n      break;\n    }\n\n    if (descriptor === undefined) {\n      // If the descriptor is undefined, then its a normal property, so we should\n      // lookup the value to chain off of like normal.\n      if (!(segment in current) && typeof current.unknownProperty === 'function') {\n        current = current.unknownProperty(segment);\n      } else {\n        current = current[segment];\n      }\n    } else if (CHAIN_PASS_THROUGH.has(descriptor)) {\n      current = current[segment];\n    } else {\n      // If the descriptor is defined, then its a normal CP (not an alias, which\n      // would have been handled earlier). We get the last revision to check if\n      // the CP is still valid, and if so we use the cached value. If not, then\n      // we create a lazy chain lookup, and the next time the CP is calculated,\n      // it will update that lazy chain.\n      let instanceMeta = currentMeta.source === current ? currentMeta : meta(current);\n      let lastRevision = instanceMeta.revisionFor(segment);\n\n      if (lastRevision !== undefined && validateTag(propertyTag, lastRevision)) {\n        current = instanceMeta.valueFor(segment);\n      } else {\n        // use metaFor here to ensure we have the meta for the instance\n        let lazyChains = instanceMeta.writableLazyChainsFor(segment);\n        let rest = path.substr(segmentEnd + 1);\n        let placeholderTag = createUpdatableTag();\n        lazyChains.push([placeholderTag, rest]);\n        chainTags.push(placeholderTag);\n        break;\n      }\n    }\n\n    if (!isObject(current)) {\n      // we've hit the end of the chain for now, break out\n      break;\n    }\n\n    currentTagMeta = tagMetaFor(current);\n    currentMeta = peekMeta(current);\n  }\n\n  return chainTags;\n}\n\nfunction isElementDescriptor(args) {\n  let [maybeTarget, maybeKey, maybeDesc] = args;\n  return (// Ensure we have the right number of args\n    args.length === 3 && ( // Make sure the target is a class or object (prototype)\n    typeof maybeTarget === 'function' || typeof maybeTarget === 'object' && maybeTarget !== null) && // Make sure the key is a string\n    typeof maybeKey === 'string' && ( // Make sure the descriptor is the right shape\n    typeof maybeDesc === 'object' && maybeDesc !== null || maybeDesc === undefined)\n  );\n}\nfunction nativeDescDecorator(propertyDesc) {\n  let decorator = function () {\n    return propertyDesc;\n  };\n\n  setClassicDecorator(decorator);\n  return decorator;\n}\n/**\n  Objects of this type can implement an interface to respond to requests to\n  get and set. The default implementation handles simple properties.\n\n  @class Descriptor\n  @private\n*/\n\nclass ComputedDescriptor {\n  constructor() {\n    this.enumerable = true;\n    this.configurable = true;\n    this._dependentKeys = undefined;\n    this._meta = undefined;\n  }\n\n  setup(_obj, keyName, _propertyDesc, meta$$1) {\n    meta$$1.writeDescriptors(keyName, this);\n  }\n\n  teardown(_obj, keyName, meta$$1) {\n    meta$$1.removeDescriptors(keyName);\n  }\n\n}\nlet COMPUTED_GETTERS;\n\nif (DEBUG) {\n  COMPUTED_GETTERS = new _WeakSet();\n}\n\nfunction DESCRIPTOR_GETTER_FUNCTION(name, descriptor) {\n  function getter() {\n    return descriptor.get(this, name);\n  }\n\n  if (DEBUG) {\n    COMPUTED_GETTERS.add(getter);\n  }\n\n  return getter;\n}\n\nfunction DESCRIPTOR_SETTER_FUNCTION(name, descriptor) {\n  let set = function CPSETTER_FUNCTION(value) {\n    return descriptor.set(this, name, value);\n  };\n\n  COMPUTED_SETTERS.add(set);\n  return set;\n}\n\nconst COMPUTED_SETTERS = new _WeakSet();\nfunction makeComputedDecorator(desc, DecoratorClass) {\n  let decorator = function COMPUTED_DECORATOR(target, key, propertyDesc, maybeMeta, isClassicDecorator) {\n    assert(`Only one computed property decorator can be applied to a class field or accessor, but '${key}' was decorated twice. You may have added the decorator to both a getter and setter, which is unnecessary.`, isClassicDecorator || !propertyDesc || !propertyDesc.get || !COMPUTED_GETTERS.has(propertyDesc.get));\n    let meta$$1 = arguments.length === 3 ? meta(target) : maybeMeta;\n    desc.setup(target, key, propertyDesc, meta$$1);\n    let computedDesc = {\n      enumerable: desc.enumerable,\n      configurable: desc.configurable,\n      get: DESCRIPTOR_GETTER_FUNCTION(key, desc),\n      set: DESCRIPTOR_SETTER_FUNCTION(key, desc)\n    };\n    return computedDesc;\n  };\n\n  setClassicDecorator(decorator, desc);\n  Object.setPrototypeOf(decorator, DecoratorClass.prototype);\n  return decorator;\n} /////////////\n\nconst DECORATOR_DESCRIPTOR_MAP = new WeakMap();\n/**\n  Returns the CP descriptor associated with `obj` and `keyName`, if any.\n\n  @method descriptorForProperty\n  @param {Object} obj the object to check\n  @param {String} keyName the key to check\n  @return {Descriptor}\n  @private\n*/\n\nfunction descriptorForProperty(obj, keyName, _meta) {\n  assert('Cannot call `descriptorForProperty` on null', obj !== null);\n  assert('Cannot call `descriptorForProperty` on undefined', obj !== undefined);\n  assert(`Cannot call \\`descriptorForProperty\\` on ${typeof obj}`, typeof obj === 'object' || typeof obj === 'function');\n  let meta$$1 = _meta === undefined ? peekMeta(obj) : _meta;\n\n  if (meta$$1 !== null) {\n    return meta$$1.peekDescriptors(keyName);\n  }\n}\nfunction descriptorForDecorator(dec) {\n  return DECORATOR_DESCRIPTOR_MAP.get(dec);\n}\n/**\n  Check whether a value is a decorator\n\n  @method isClassicDecorator\n  @param {any} possibleDesc the value to check\n  @return {boolean}\n  @private\n*/\n\nfunction isClassicDecorator(dec) {\n  return typeof dec === 'function' && DECORATOR_DESCRIPTOR_MAP.has(dec);\n}\n/**\n  Set a value as a decorator\n\n  @method setClassicDecorator\n  @param {function} decorator the value to mark as a decorator\n  @private\n*/\n\nfunction setClassicDecorator(dec, value = true) {\n  DECORATOR_DESCRIPTOR_MAP.set(dec, value);\n}\n\n/**\n@module @ember/object\n*/\n\nconst END_WITH_EACH_REGEX = /\\.@each$/;\n/**\n  Expands `pattern`, invoking `callback` for each expansion.\n\n  The only pattern supported is brace-expansion, anything else will be passed\n  once to `callback` directly.\n\n  Example\n\n  ```js\n  import { expandProperties } from '@ember/object/computed';\n\n  function echo(arg){ console.log(arg); }\n\n  expandProperties('foo.bar', echo);              //=> 'foo.bar'\n  expandProperties('{foo,bar}', echo);            //=> 'foo', 'bar'\n  expandProperties('foo.{bar,baz}', echo);        //=> 'foo.bar', 'foo.baz'\n  expandProperties('{foo,bar}.baz', echo);        //=> 'foo.baz', 'bar.baz'\n  expandProperties('foo.{bar,baz}.[]', echo)      //=> 'foo.bar.[]', 'foo.baz.[]'\n  expandProperties('{foo,bar}.{spam,eggs}', echo) //=> 'foo.spam', 'foo.eggs', 'bar.spam', 'bar.eggs'\n  expandProperties('{foo}.bar.{baz}')             //=> 'foo.bar.baz'\n  ```\n\n  @method expandProperties\n  @static\n  @for @ember/object/computed\n  @public\n  @param {String} pattern The property pattern to expand.\n  @param {Function} callback The callback to invoke.  It is invoked once per\n  expansion, and is passed the expansion.\n*/\n\nfunction expandProperties(pattern, callback) {\n  assert(`A computed property key must be a string, you passed ${typeof pattern} ${pattern}`, typeof pattern === 'string');\n  assert('Brace expanded properties cannot contain spaces, e.g. \"user.{firstName, lastName}\" should be \"user.{firstName,lastName}\"', pattern.indexOf(' ') === -1); // regex to look for double open, double close, or unclosed braces\n\n  assert(`Brace expanded properties have to be balanced and cannot be nested, pattern: ${pattern}`, pattern.match(/\\{[^}{]*\\{|\\}[^}{]*\\}|\\{[^}]*$/g) === null);\n  let start = pattern.indexOf('{');\n\n  if (start < 0) {\n    callback(pattern.replace(END_WITH_EACH_REGEX, '.[]'));\n  } else {\n    dive('', pattern, start, callback);\n  }\n}\n\nfunction dive(prefix, pattern, start, callback) {\n  let end = pattern.indexOf('}'),\n      i = 0,\n      newStart,\n      arrayLength;\n  let tempArr = pattern.substring(start + 1, end).split(',');\n  let after = pattern.substring(end + 1);\n  prefix = prefix + pattern.substring(0, start);\n  arrayLength = tempArr.length;\n\n  while (i < arrayLength) {\n    newStart = after.indexOf('{');\n\n    if (newStart < 0) {\n      callback((prefix + tempArr[i++] + after).replace(END_WITH_EACH_REGEX, '.[]'));\n    } else {\n      dive(prefix + tempArr[i++], after, newStart, callback);\n    }\n  }\n}\n\n/**\n@module @ember/object\n*/\n/**\n  NOTE: This is a low-level method used by other parts of the API. You almost\n  never want to call this method directly. Instead you should use\n  `mixin()` to define new properties.\n\n  Defines a property on an object. This method works much like the ES5\n  `Object.defineProperty()` method except that it can also accept computed\n  properties and other special descriptors.\n\n  Normally this method takes only three parameters. However if you pass an\n  instance of `Descriptor` as the third param then you can pass an\n  optional value as the fourth parameter. This is often more efficient than\n  creating new descriptor hashes for each property.\n\n  ## Examples\n\n  ```javascript\n  import { defineProperty, computed } from '@ember/object';\n\n  // ES5 compatible mode\n  defineProperty(contact, 'firstName', {\n    writable: true,\n    configurable: false,\n    enumerable: true,\n    value: 'Charles'\n  });\n\n  // define a simple property\n  defineProperty(contact, 'lastName', undefined, 'Jolley');\n\n  // define a computed property\n  defineProperty(contact, 'fullName', computed('firstName', 'lastName', function() {\n    return this.firstName+' '+this.lastName;\n  }));\n  ```\n\n  @public\n  @method defineProperty\n  @static\n  @for @ember/object\n  @param {Object} obj the object to define this property on. This may be a prototype.\n  @param {String} keyName the name of the property\n  @param {Descriptor} [desc] an instance of `Descriptor` (typically a\n    computed property) or an ES5 descriptor.\n    You must provide this or `data` but not both.\n  @param {*} [data] something other than a descriptor, that will\n    become the explicit value of this property.\n*/\n\nfunction defineProperty(obj, keyName, desc, data, _meta) {\n  let meta$$1 = _meta === undefined ? meta(obj) : _meta;\n  let previousDesc = descriptorForProperty(obj, keyName, meta$$1);\n  let wasDescriptor = previousDesc !== undefined;\n\n  if (wasDescriptor) {\n    previousDesc.teardown(obj, keyName, meta$$1);\n  }\n\n  if (isClassicDecorator(desc)) {\n    defineDecorator(obj, keyName, desc, meta$$1);\n  } else if (desc === null || desc === undefined) {\n    defineValue(obj, keyName, data, wasDescriptor, true);\n  } else {\n    // fallback to ES5\n    Object.defineProperty(obj, keyName, desc);\n  } // if key is being watched, override chains that\n  // were initialized with the prototype\n\n\n  if (!meta$$1.isPrototypeMeta(obj)) {\n    revalidateObservers(obj);\n  }\n}\nfunction defineDecorator(obj, keyName, desc, meta$$1) {\n  let propertyDesc;\n\n  if (DEBUG) {\n    propertyDesc = desc(obj, keyName, undefined, meta$$1, true);\n  } else {\n    propertyDesc = desc(obj, keyName, undefined, meta$$1);\n  }\n\n  Object.defineProperty(obj, keyName, propertyDesc); // pass the decorator function forward for backwards compat\n\n  return desc;\n}\nfunction defineValue(obj, keyName, value, wasDescriptor, enumerable = true) {\n  if (wasDescriptor === true || enumerable === false) {\n    Object.defineProperty(obj, keyName, {\n      configurable: true,\n      enumerable,\n      writable: true,\n      value\n    });\n  } else {\n    if (DEBUG) {\n      setWithMandatorySetter(obj, keyName, value);\n    } else {\n      obj[keyName] = value;\n    }\n  }\n\n  return value;\n}\n\nconst firstDotIndexCache = new Cache(1000, key => key.indexOf('.'));\nfunction isPath(path) {\n  return typeof path === 'string' && firstDotIndexCache.get(path) !== -1;\n}\n\n/**\n@module @ember/object\n*/\nconst PROXY_CONTENT = symbol('PROXY_CONTENT');\nlet getPossibleMandatoryProxyValue;\n\nif (DEBUG && HAS_NATIVE_PROXY) {\n  getPossibleMandatoryProxyValue = function getPossibleMandatoryProxyValue(obj, keyName) {\n    let content = obj[PROXY_CONTENT];\n\n    if (content === undefined) {\n      return obj[keyName];\n    } else {\n      /* global Reflect */\n      return Reflect.get(content, keyName, obj);\n    }\n  };\n} // ..........................................................\n// GET AND SET\n//\n// If we are on a platform that supports accessors we can use those.\n// Otherwise simulate accessors by looking up the property directly on the\n// object.\n\n/**\n  Gets the value of a property on an object. If the property is computed,\n  the function will be invoked. If the property is not defined but the\n  object implements the `unknownProperty` method then that will be invoked.\n\n  ```javascript\n  import { get } from '@ember/object';\n  get(obj, \"name\");\n  ```\n\n  If you plan to run on IE8 and older browsers then you should use this\n  method anytime you want to retrieve a property on an object that you don't\n  know for sure is private. (Properties beginning with an underscore '_'\n  are considered private.)\n\n  On all newer browsers, you only need to use this method to retrieve\n  properties if the property might not be defined on the object and you want\n  to respect the `unknownProperty` handler. Otherwise you can ignore this\n  method.\n\n  Note that if the object itself is `undefined`, this method will throw\n  an error.\n\n  @method get\n  @for @ember/object\n  @static\n  @param {Object} obj The object to retrieve from.\n  @param {String} keyName The property key to retrieve\n  @return {Object} the property value or `null`.\n  @public\n*/\n\n\nfunction get(obj, keyName) {\n  assert(`Get must be called with two arguments; an object and a property key`, arguments.length === 2);\n  assert(`Cannot call get with '${keyName}' on an undefined object.`, obj !== undefined && obj !== null);\n  assert(`The key provided to get must be a string or number, you passed ${keyName}`, typeof keyName === 'string' || typeof keyName === 'number' && !isNaN(keyName));\n  assert(`'this' in paths is not supported`, typeof keyName !== 'string' || keyName.lastIndexOf('this.', 0) !== 0);\n  return isPath(keyName) ? _getPath(obj, keyName) : _getProp(obj, keyName);\n}\nfunction _getProp(obj, keyName) {\n  let type = typeof obj;\n  let isObject$$1 = type === 'object';\n  let isFunction = type === 'function';\n  let isObjectLike = isObject$$1 || isFunction;\n  let value;\n\n  if (isObjectLike) {\n    if (DEBUG && HAS_NATIVE_PROXY) {\n      value = getPossibleMandatoryProxyValue(obj, keyName);\n    } else {\n      value = obj[keyName];\n    }\n\n    if (value === undefined && isObject$$1 && !(keyName in obj) && typeof obj.unknownProperty === 'function') {\n      if (DEBUG) {\n        deprecateMutationsInTrackingTransaction(() => {\n          value = obj.unknownProperty(keyName);\n        });\n      } else {\n        value = obj.unknownProperty(keyName);\n      }\n    }\n\n    if (isTracking()) {\n      consumeTag(tagFor(obj, keyName));\n\n      if (Array.isArray(value) || isEmberArray(value)) {\n        // Add the tag of the returned value if it is an array, since arrays\n        // should always cause updates if they are consumed and then changed\n        consumeTag(tagFor(value, '[]'));\n      }\n    }\n  } else {\n    value = obj[keyName];\n  }\n\n  return value;\n}\nfunction _getPath(root, path, forSet) {\n  let obj = root;\n  let parts = typeof path === 'string' ? path.split('.') : path;\n\n  for (let i = 0; i < parts.length; i++) {\n    if (obj === undefined || obj === null || obj.isDestroyed) {\n      return undefined;\n    }\n\n    let part = parts[i];\n\n    if (forSet && (part === '__proto__' || part === 'constructor')) {\n      return;\n    }\n\n    obj = _getProp(obj, part);\n  }\n\n  return obj;\n}\n/**\n  Retrieves the value of a property from an Object, or a default value in the\n  case that the property returns `undefined`.\n\n  ```javascript\n  import { getWithDefault } from '@ember/object';\n  getWithDefault(person, 'lastName', 'Doe');\n  ```\n\n  @method getWithDefault\n  @for @ember/object\n  @static\n  @param {Object} obj The object to retrieve from.\n  @param {String} keyName The name of the property to retrieve\n  @param {Object} defaultValue The value to return if the property value is undefined\n  @return {Object} The property value or the defaultValue.\n  @public\n  @deprecated\n*/\n\nfunction getWithDefault(root, key, defaultValue) {\n  deprecate('Using getWithDefault has been deprecated. Instead, consider using Ember get and explicitly checking for undefined.', false, {\n    id: 'ember-metal.get-with-default',\n    until: '4.0.0',\n    url: 'https://deprecations.emberjs.com/v3.x#toc_ember-metal-get-with-default',\n    for: 'ember-source',\n    since: {\n      enabled: '3.21.0'\n    }\n  });\n  let value = get(root, key);\n\n  if (value === undefined) {\n    return defaultValue;\n  }\n\n  return value;\n}\n\n_getProp('foo', 'a');\n\n_getProp('foo', 1);\n\n_getProp({}, 'a');\n\n_getProp({}, 1);\n\n_getProp({\n  unkonwnProperty() {}\n\n}, 'a');\n\n_getProp({\n  unkonwnProperty() {}\n\n}, 1);\n\nget({}, 'foo');\nget({}, 'foo.bar');\nlet fakeProxy = {};\nsetProxy(fakeProxy);\ntrack(() => _getProp({}, 'a'));\ntrack(() => _getProp({}, 1));\ntrack(() => _getProp({\n  a: []\n}, 'a'));\ntrack(() => _getProp({\n  a: fakeProxy\n}, 'a'));\n\n/**\n @module @ember/object\n*/\n\n/**\n  Sets the value of a property on an object, respecting computed properties\n  and notifying observers and other listeners of the change.\n  If the specified property is not defined on the object and the object\n  implements the `setUnknownProperty` method, then instead of setting the\n  value of the property on the object, its `setUnknownProperty` handler\n  will be invoked with the two parameters `keyName` and `value`.\n\n  ```javascript\n  import { set } from '@ember/object';\n  set(obj, \"name\", value);\n  ```\n\n  @method set\n  @static\n  @for @ember/object\n  @param {Object} obj The object to modify.\n  @param {String} keyName The property key to set\n  @param {Object} value The value to set\n  @return {Object} the passed value.\n  @public\n*/\n\nfunction set(obj, keyName, value, tolerant) {\n  assert(`Set must be called with three or four arguments; an object, a property key, a value and tolerant true/false`, arguments.length === 3 || arguments.length === 4);\n  assert(`Cannot call set with '${keyName}' on an undefined object.`, obj && typeof obj === 'object' || typeof obj === 'function');\n  assert(`The key provided to set must be a string or number, you passed ${keyName}`, typeof keyName === 'string' || typeof keyName === 'number' && !isNaN(keyName));\n  assert(`'this' in paths is not supported`, typeof keyName !== 'string' || keyName.lastIndexOf('this.', 0) !== 0);\n\n  if (obj.isDestroyed) {\n    assert(`calling set on destroyed object: ${toString(obj)}.${keyName} = ${toString(value)}`, tolerant);\n    return value;\n  }\n\n  if (isPath(keyName)) {\n    return setPath(obj, keyName, value, tolerant);\n  }\n\n  let descriptor = lookupDescriptor(obj, keyName);\n\n  if (descriptor !== null && COMPUTED_SETTERS.has(descriptor.set)) {\n    obj[keyName] = value;\n    return value;\n  }\n\n  let currentValue;\n\n  if (DEBUG && HAS_NATIVE_PROXY) {\n    currentValue = getPossibleMandatoryProxyValue(obj, keyName);\n  } else {\n    currentValue = obj[keyName];\n  }\n\n  if (currentValue === undefined && 'object' === typeof obj && !(keyName in obj) && typeof obj.setUnknownProperty === 'function') {\n    /* unknown property */\n    obj.setUnknownProperty(keyName, value);\n  } else {\n    if (DEBUG) {\n      setWithMandatorySetter(obj, keyName, value);\n    } else {\n      obj[keyName] = value;\n    }\n\n    if (currentValue !== value) {\n      notifyPropertyChange(obj, keyName);\n    }\n  }\n\n  return value;\n}\n\nfunction setPath(root, path, value, tolerant) {\n  let parts = path.split('.');\n  let keyName = parts.pop();\n  assert('Property set failed: You passed an empty path', keyName.trim().length > 0);\n  let newRoot = _getPath(root, parts, true);\n\n  if (newRoot !== null && newRoot !== undefined) {\n    return set(newRoot, keyName, value);\n  } else if (!tolerant) {\n    throw new EmberError(`Property set failed: object in path \"${parts.join('.')}\" could not be found.`);\n  }\n}\n/**\n  Error-tolerant form of `set`. Will not blow up if any part of the\n  chain is `undefined`, `null`, or destroyed.\n\n  This is primarily used when syncing bindings, which may try to update after\n  an object has been destroyed.\n\n  ```javascript\n  import { trySet } from '@ember/object';\n\n  let obj = { name: \"Zoey\" };\n  trySet(obj, \"contacts.twitter\", \"@emberjs\");\n  ```\n\n  @method trySet\n  @static\n  @for @ember/object\n  @param {Object} root The object to modify.\n  @param {String} path The property path to set\n  @param {Object} value The value to set\n  @public\n*/\n\n\nfunction trySet(root, path, value) {\n  return set(root, path, value, true);\n}\n\n/**\n@module @ember/object\n*/\n\nconst DEEP_EACH_REGEX = /\\.@each\\.[^.]+\\./;\n\nfunction noop() {}\n/**\n  `@computed` is a decorator that turns a JavaScript getter and setter into a\n  computed property, which is a _cached, trackable value_. By default the getter\n  will only be called once and the result will be cached. You can specify\n  various properties that your computed property depends on. This will force the\n  cached result to be cleared if the dependencies are modified, and lazily recomputed the next time something asks for it.\n\n  In the following example we decorate a getter - `fullName` -  by calling\n  `computed` with the property dependencies (`firstName` and `lastName`) as\n  arguments. The `fullName` getter will be called once (regardless of how many\n  times it is accessed) as long as its dependencies do not change. Once\n  `firstName` or `lastName` are updated any future calls to `fullName` will\n  incorporate the new values, and any watchers of the value such as templates\n  will be updated:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName')\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  });\n\n  let tom = new Person('Tom', 'Dale');\n\n  tom.fullName; // 'Tom Dale'\n  ```\n\n  You can also provide a setter, which will be used when updating the computed\n  property. Ember's `set` function must be used to update the property\n  since it will also notify observers of the property:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName')\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n\n    set fullName(value) {\n      let [firstName, lastName] = value.split(' ');\n\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n  });\n\n  let person = new Person();\n\n  set(person, 'fullName', 'Peter Wagenet');\n  person.firstName; // 'Peter'\n  person.lastName;  // 'Wagenet'\n  ```\n\n  You can also pass a getter function or object with `get` and `set` functions\n  as the last argument to the computed decorator. This allows you to define\n  computed property _macros_:\n\n  ```js\n  import { computed } from '@ember/object';\n\n  function join(...keys) {\n    return computed(...keys, function() {\n      return keys.map(key => this[key]).join(' ');\n    });\n  }\n\n  class Person {\n    @join('firstName', 'lastName')\n    fullName;\n  }\n  ```\n\n  Note that when defined this way, getters and setters receive the _key_ of the\n  property they are decorating as the first argument. Setters receive the value\n  they are setting to as the second argument instead. Additionally, setters must\n  _return_ the value that should be cached:\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  function fullNameMacro(firstNameKey, lastNameKey) {\n    return computed(firstNameKey, lastNameKey, {\n      get() {\n        return `${this[firstNameKey]} ${this[lastNameKey]}`;\n      }\n\n      set(key, value) {\n        let [firstName, lastName] = value.split(' ');\n\n        set(this, firstNameKey, firstName);\n        set(this, lastNameKey, lastName);\n\n        return value;\n      }\n    });\n  }\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @fullNameMacro('firstName', 'lastName') fullName;\n  });\n\n  let person = new Person();\n\n  set(person, 'fullName', 'Peter Wagenet');\n  person.firstName; // 'Peter'\n  person.lastName;  // 'Wagenet'\n  ```\n\n  Computed properties can also be used in classic classes. To do this, we\n  provide the getter and setter as the last argument like we would for a macro,\n  and we assign it to a property on the class definition. This is an _anonymous_\n  computed macro:\n\n  ```javascript\n  import EmberObject, { computed, set } from '@ember/object';\n\n  let Person = EmberObject.extend({\n    // these will be supplied by `create`\n    firstName: null,\n    lastName: null,\n\n    fullName: computed('firstName', 'lastName', {\n      get() {\n        return `${this.firstName} ${this.lastName}`;\n      }\n\n      set(key, value) {\n        let [firstName, lastName] = value.split(' ');\n\n        set(this, 'firstName', firstName);\n        set(this, 'lastName', lastName);\n\n        return value;\n      }\n    })\n  });\n\n  let tom = Person.create({\n    firstName: 'Tom',\n    lastName: 'Dale'\n  });\n\n  tom.get('fullName') // 'Tom Dale'\n  ```\n\n  You can overwrite computed property without setters with a normal property (no\n  longer computed) that won't change if dependencies change. You can also mark\n  computed property as `.readOnly()` and block all attempts to set it.\n\n  ```javascript\n  import { computed, set } from '@ember/object';\n\n  class Person {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @computed('firstName', 'lastName').readOnly()\n    get fullName() {\n      return `${this.firstName} ${this.lastName}`;\n    }\n  });\n\n  let person = new Person();\n  person.set('fullName', 'Peter Wagenet'); // Uncaught Error: Cannot set read-only property \"fullName\" on object: <(...):emberXXX>\n  ```\n\n  Additional resources:\n  - [Decorators RFC](https://github.com/emberjs/rfcs/blob/master/text/0408-decorators.md)\n  - [New CP syntax RFC](https://github.com/emberjs/rfcs/blob/master/text/0011-improved-cp-syntax.md)\n  - [New computed syntax explained in \"Ember 1.12 released\" ](https://emberjs.com/blog/2015/05/13/ember-1-12-released.html#toc_new-computed-syntax)\n\n  @class ComputedProperty\n  @public\n*/\n\n\nclass ComputedProperty extends ComputedDescriptor {\n  constructor(args) {\n    super();\n    this._volatile = false;\n    this._readOnly = false;\n    this._hasConfig = false;\n    this._getter = undefined;\n    this._setter = undefined;\n    let maybeConfig = args[args.length - 1];\n\n    if (typeof maybeConfig === 'function' || maybeConfig !== null && typeof maybeConfig === 'object') {\n      this._hasConfig = true;\n      let config = args.pop();\n\n      if (typeof config === 'function') {\n        assert(`You attempted to pass a computed property instance to computed(). Computed property instances are decorator functions, and cannot be passed to computed() because they cannot be turned into decorators twice`, !isClassicDecorator(config));\n        this._getter = config;\n      } else {\n        const objectConfig = config;\n        assert('computed expects a function or an object as last argument.', typeof objectConfig === 'object' && !Array.isArray(objectConfig));\n        assert('Config object passed to computed can only contain `get` and `set` keys.', Object.keys(objectConfig).every(key => key === 'get' || key === 'set'));\n        assert('Computed properties must receive a getter or a setter, you passed none.', Boolean(objectConfig.get) || Boolean(objectConfig.set));\n        this._getter = objectConfig.get || noop;\n        this._setter = objectConfig.set;\n      }\n    }\n\n    if (args.length > 0) {\n      this._property(...args);\n    }\n  }\n\n  setup(obj, keyName, propertyDesc, meta$$1) {\n    super.setup(obj, keyName, propertyDesc, meta$$1);\n    assert(`@computed can only be used on accessors or fields, attempted to use it with ${keyName} but that was a method. Try converting it to a getter (e.g. \\`get ${keyName}() {}\\`)`, !(propertyDesc && typeof propertyDesc.value === 'function'));\n    assert(`@computed can only be used on empty fields. ${keyName} has an initial value (e.g. \\`${keyName} = someValue\\`)`, !propertyDesc || !propertyDesc.initializer);\n    assert(`Attempted to apply a computed property that already has a getter/setter to a ${keyName}, but it is a method or an accessor. If you passed @computed a function or getter/setter (e.g. \\`@computed({ get() { ... } })\\`), then it must be applied to a field`, !(this._hasConfig && propertyDesc && (typeof propertyDesc.get === 'function' || typeof propertyDesc.set === 'function')));\n\n    if (this._hasConfig === false) {\n      assert(`Attempted to use @computed on ${keyName}, but it did not have a getter or a setter. You must either pass a get a function or getter/setter to @computed directly (e.g. \\`@computed({ get() { ... } })\\`) or apply @computed directly to a getter/setter`, propertyDesc && (typeof propertyDesc.get === 'function' || typeof propertyDesc.set === 'function'));\n      let {\n        get,\n        set: set$$1\n      } = propertyDesc;\n\n      if (get !== undefined) {\n        this._getter = get;\n      }\n\n      if (set$$1 !== undefined) {\n        this._setter = function setterWrapper(_key, value) {\n          let ret = set$$1.call(this, value);\n\n          if (get !== undefined) {\n            return typeof ret === 'undefined' ? get.call(this) : ret;\n          }\n\n          return ret;\n        };\n      }\n    }\n  }\n\n  _property(...passedArgs) {\n    let args = [];\n\n    function addArg(property) {\n      warn(`Dependent keys containing @each only work one level deep. ` + `You used the key \"${property}\" which is invalid. ` + `Please create an intermediary computed property.`, DEEP_EACH_REGEX.test(property) === false, {\n        id: 'ember-metal.computed-deep-each'\n      });\n      args.push(property);\n    }\n\n    for (let i = 0; i < passedArgs.length; i++) {\n      expandProperties(passedArgs[i], addArg);\n    }\n\n    this._dependentKeys = args;\n  }\n\n  get(obj, keyName) {\n    if (this._volatile) {\n      return this._getter.call(obj, keyName);\n    }\n\n    let meta$$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta);\n    let ret;\n    let revision = meta$$1.revisionFor(keyName);\n\n    if (revision !== undefined && validateTag(propertyTag, revision)) {\n      ret = meta$$1.valueFor(keyName);\n    } else {\n      // For backwards compatibility, we only throw if the CP has any dependencies. CPs without dependencies\n      // should be allowed, even after the object has been destroyed, which is why we check _dependentKeys.\n      assert(`Attempted to access the computed ${obj}.${keyName} on a destroyed object, which is not allowed`, this._dependentKeys === undefined || !isDestroyed(obj));\n      let {\n        _getter,\n        _dependentKeys\n      } = this; // Create a tracker that absorbs any trackable actions inside the CP\n\n      untrack(() => {\n        ret = _getter.call(obj, keyName);\n      });\n\n      if (_dependentKeys !== undefined) {\n        updateTag(propertyTag, getChainTagsForKeys(obj, _dependentKeys, tagMeta, meta$$1));\n\n        if (DEBUG) {\n          ALLOW_CYCLES.set(propertyTag, true);\n        }\n      }\n\n      meta$$1.setValueFor(keyName, ret);\n      meta$$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$$1, keyName, ret);\n    }\n\n    consumeTag(propertyTag); // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n\n    if (Array.isArray(ret)) {\n      consumeTag(tagFor(ret, '[]'));\n    }\n\n    return ret;\n  }\n\n  set(obj, keyName, value) {\n    if (this._readOnly) {\n      this._throwReadOnlyError(obj, keyName);\n    }\n\n    if (!this._setter) {\n      return this.clobberSet(obj, keyName, value);\n    }\n\n    if (this._volatile) {\n      return this.volatileSet(obj, keyName, value);\n    }\n\n    let meta$$1 = meta(obj); // ensure two way binding works when the component has defined a computed\n    // property with both a setter and dependent keys, in that scenario without\n    // the sync observer added below the caller's value will never be updated\n    //\n    // See GH#18147 / GH#19028 for details.\n\n    if ( // ensure that we only run this once, while the component is being instantiated\n    meta$$1.isInitializing() && this._dependentKeys !== undefined && this._dependentKeys.length > 0 && // These two properties are set on Ember.Component\n    typeof obj[PROPERTY_DID_CHANGE] === 'function' && obj.isComponent) {\n      addObserver(obj, keyName, () => {\n        obj[PROPERTY_DID_CHANGE](keyName);\n      }, undefined, true);\n    }\n\n    let ret;\n\n    try {\n      beginPropertyChanges();\n      ret = this._set(obj, keyName, value, meta$$1);\n      finishLazyChains(meta$$1, keyName, ret);\n      let tagMeta = tagMetaFor(obj);\n      let propertyTag = tagFor(obj, keyName, tagMeta);\n      let {\n        _dependentKeys\n      } = this;\n\n      if (_dependentKeys !== undefined) {\n        updateTag(propertyTag, getChainTagsForKeys(obj, _dependentKeys, tagMeta, meta$$1));\n\n        if (DEBUG) {\n          ALLOW_CYCLES.set(propertyTag, true);\n        }\n      }\n\n      meta$$1.setRevisionFor(keyName, valueForTag(propertyTag));\n    } finally {\n      endPropertyChanges();\n    }\n\n    return ret;\n  }\n\n  _throwReadOnlyError(obj, keyName) {\n    throw new EmberError(`Cannot set read-only property \"${keyName}\" on object: ${inspect(obj)}`);\n  }\n\n  clobberSet(obj, keyName, value) {\n    deprecate(`The ${toString(obj)}#${keyName} computed property was just overridden. This removes the computed property and replaces it with a plain value, and has been deprecated. If you want this behavior, consider defining a setter which does it manually.`, false, {\n      id: 'computed-property.override',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_computed-property-override',\n      for: 'ember-source',\n      since: {\n        enabled: '3.9.0-beta.1'\n      }\n    });\n    let cachedValue = meta(obj).valueFor(keyName);\n    defineProperty(obj, keyName, null, cachedValue);\n    set(obj, keyName, value);\n    return value;\n  }\n\n  volatileSet(obj, keyName, value) {\n    return this._setter.call(obj, keyName, value);\n  }\n\n  _set(obj, keyName, value, meta$$1) {\n    let hadCachedValue = meta$$1.revisionFor(keyName) !== undefined;\n    let cachedValue = meta$$1.valueFor(keyName);\n    let ret;\n    let {\n      _setter\n    } = this;\n    setObserverSuspended(obj, keyName, true);\n\n    try {\n      ret = _setter.call(obj, keyName, value, cachedValue);\n    } finally {\n      setObserverSuspended(obj, keyName, false);\n    } // allows setter to return the same value that is cached already\n\n\n    if (hadCachedValue && cachedValue === ret) {\n      return ret;\n    }\n\n    meta$$1.setValueFor(keyName, ret);\n    notifyPropertyChange(obj, keyName, meta$$1, value);\n    return ret;\n  }\n  /* called before property is overridden */\n\n\n  teardown(obj, keyName, meta$$1) {\n    if (!this._volatile) {\n      if (meta$$1.revisionFor(keyName) !== undefined) {\n        meta$$1.setRevisionFor(keyName, undefined);\n        meta$$1.setValueFor(keyName, undefined);\n      }\n    }\n\n    super.teardown(obj, keyName, meta$$1);\n  }\n\n}\n\nclass AutoComputedProperty extends ComputedProperty {\n  get(obj, keyName) {\n    if (this._volatile) {\n      return this._getter.call(obj, keyName);\n    }\n\n    let meta$$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta);\n    let ret;\n    let revision = meta$$1.revisionFor(keyName);\n\n    if (revision !== undefined && validateTag(propertyTag, revision)) {\n      ret = meta$$1.valueFor(keyName);\n    } else {\n      assert(`Attempted to access the computed ${obj}.${keyName} on a destroyed object, which is not allowed`, !isDestroyed(obj));\n      let {\n        _getter\n      } = this; // Create a tracker that absorbs any trackable actions inside the CP\n\n      let tag = track(() => {\n        ret = _getter.call(obj, keyName);\n      });\n      updateTag(propertyTag, tag);\n      meta$$1.setValueFor(keyName, ret);\n      meta$$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$$1, keyName, ret);\n    }\n\n    consumeTag(propertyTag); // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n\n    if (Array.isArray(ret)) {\n      consumeTag(tagFor(ret, '[]', tagMeta));\n    }\n\n    return ret;\n  }\n\n} // TODO: This class can be svelted once `meta` has been deprecated\n\n\nclass ComputedDecoratorImpl extends Function {\n  /**\n    Call on a computed property to set it into read-only mode. When in this\n    mode the computed property will throw an error when set.\n       Example:\n       ```javascript\n    import { computed, set } from '@ember/object';\n       class Person {\n      @computed().readOnly()\n      get guid() {\n        return 'guid-guid-guid';\n      }\n    }\n       let person = new Person();\n    set(person, 'guid', 'new-guid'); // will throw an exception\n    ```\n       Classic Class Example:\n       ```javascript\n    import EmberObject, { computed } from '@ember/object';\n       let Person = EmberObject.extend({\n      guid: computed(function() {\n        return 'guid-guid-guid';\n      }).readOnly()\n    });\n       let person = Person.create();\n    person.set('guid', 'new-guid'); // will throw an exception\n    ```\n       @method readOnly\n    @return {ComputedProperty} this\n    @chainable\n    @public\n  */\n  readOnly() {\n    let desc = descriptorForDecorator(this);\n    assert('Computed properties that define a setter using the new syntax cannot be read-only', !(desc._setter && desc._setter !== desc._getter));\n    desc._readOnly = true;\n    return this;\n  }\n  /**\n    Call on a computed property to set it into non-cached mode. When in this\n    mode the computed property will not automatically cache the return value.\n    It also does not automatically fire any change events. You must manually notify\n    any changes if you want to observe this property.\n       Dependency keys have no effect on volatile properties as they are for cache\n    invalidation and notification when cached value is invalidated.\n       Example:\n       ```javascript\n    import { computed } from '@ember/object';\n       class CallCounter {\n      _calledCount = 0;\n         @computed().volatile()\n      get calledCount() {\n        return this._calledCount++;\n      }\n    }\n    ```\n       Classic Class Example:\n       ```javascript\n    import EmberObject, { computed } from '@ember/object';\n       let CallCounter = EmberObject.extend({\n      _calledCount: 0,\n         value: computed(function() {\n        return this._calledCount++;\n      }).volatile()\n    });\n    ```\n    @method volatile\n    @deprecated\n    @return {ComputedProperty} this\n    @chainable\n    @public\n  */\n\n\n  volatile() {\n    deprecate('Setting a computed property as volatile has been deprecated. Instead, consider using a native getter with native class syntax.', false, {\n      id: 'computed-property.volatile',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_computed-property-volatile',\n      for: 'ember-source',\n      since: {\n        enabled: '3.9.0-beta.1'\n      }\n    });\n    descriptorForDecorator(this)._volatile = true;\n    return this;\n  }\n  /**\n    Sets the dependent keys on this computed property. Pass any number of\n    arguments containing key paths that this computed property depends on.\n       Example:\n       ```javascript\n    import EmberObject, { computed } from '@ember/object';\n       class President {\n      constructor(firstName, lastName) {\n        set(this, 'firstName', firstName);\n        set(this, 'lastName', lastName);\n      }\n         // Tell Ember that this computed property depends on firstName\n      // and lastName\n      @computed().property('firstName', 'lastName')\n      get fullName() {\n        return `${this.firstName} ${this.lastName}`;\n      }\n    }\n       let president = new President('Barack', 'Obama');\n       president.fullName; // 'Barack Obama'\n    ```\n       Classic Class Example:\n       ```javascript\n    import EmberObject, { computed } from '@ember/object';\n       let President = EmberObject.extend({\n      fullName: computed(function() {\n        return this.get('firstName') + ' ' + this.get('lastName');\n           // Tell Ember that this computed property depends on firstName\n        // and lastName\n      }).property('firstName', 'lastName')\n    });\n       let president = President.create({\n      firstName: 'Barack',\n      lastName: 'Obama'\n    });\n       president.get('fullName'); // 'Barack Obama'\n    ```\n       @method property\n    @deprecated\n    @param {String} path* zero or more property paths\n    @return {ComputedProperty} this\n    @chainable\n    @public\n  */\n\n\n  property(...keys) {\n    deprecate('Setting dependency keys using the `.property()` modifier has been deprecated. Pass the dependency keys directly to computed as arguments instead. If you are using `.property()` on a computed property macro, consider refactoring your macro to receive additional dependent keys in its initial declaration.', false, {\n      id: 'computed-property.property',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_computed-property-property',\n      for: 'ember-source',\n      since: {\n        enabled: '3.9.0-beta.1'\n      }\n    });\n\n    descriptorForDecorator(this)._property(...keys);\n\n    return this;\n  }\n  /**\n    In some cases, you may want to annotate computed properties with additional\n    metadata about how they function or what values they operate on. For example,\n    computed property functions may close over variables that are then no longer\n    available for introspection. You can pass a hash of these values to a\n    computed property.\n       Example:\n       ```javascript\n    import { computed } from '@ember/object';\n    import Person from 'my-app/utils/person';\n       class Store {\n      @computed().meta({ type: Person })\n      get person() {\n        let personId = this.personId;\n        return Person.create({ id: personId });\n      }\n    }\n    ```\n       Classic Class Example:\n       ```javascript\n    import { computed } from '@ember/object';\n    import Person from 'my-app/utils/person';\n       const Store = EmberObject.extend({\n      person: computed(function() {\n        let personId = this.get('personId');\n        return Person.create({ id: personId });\n      }).meta({ type: Person })\n    });\n    ```\n       The hash that you pass to the `meta()` function will be saved on the\n    computed property descriptor under the `_meta` key. Ember runtime\n    exposes a public API for retrieving these values from classes,\n    via the `metaForProperty()` function.\n       @method meta\n    @param {Object} meta\n    @chainable\n    @public\n  */\n\n\n  meta(meta$$1) {\n    let prop = descriptorForDecorator(this);\n\n    if (arguments.length === 0) {\n      return prop._meta || {};\n    } else {\n      prop._meta = meta$$1;\n      return this;\n    }\n  } // TODO: Remove this when we can provide alternatives in the ecosystem to\n  // addons such as ember-macro-helpers that use it.\n\n\n  get _getter() {\n    return descriptorForDecorator(this)._getter;\n  } // TODO: Refactor this, this is an internal API only\n\n\n  set enumerable(value) {\n    descriptorForDecorator(this).enumerable = value;\n  }\n\n}\n\nfunction computed(...args) {\n  assert(`@computed can only be used directly as a native decorator. If you're using tracked in classic classes, add parenthesis to call it like a function: computed()`, !(isElementDescriptor(args.slice(0, 3)) && args.length === 5 && args[4] === true));\n\n  if (isElementDescriptor(args)) {\n    let decorator = makeComputedDecorator(new ComputedProperty([]), ComputedDecoratorImpl);\n    return decorator(args[0], args[1], args[2]);\n  }\n\n  return makeComputedDecorator(new ComputedProperty(args), ComputedDecoratorImpl);\n}\nfunction autoComputed(...config) {\n  return makeComputedDecorator(new AutoComputedProperty(config), ComputedDecoratorImpl);\n}\n/**\n  Allows checking if a given property on an object is a computed property. For the most part,\n  this doesn't matter (you would normally just access the property directly and use its value),\n  but for some tooling specific scenarios (e.g. the ember-inspector) it is important to\n  differentiate if a property is a computed property or a \"normal\" property.\n\n  This will work on either a class's prototype or an instance itself.\n\n  @static\n  @method isComputed\n  @for @ember/debug\n  @private\n */\n\nfunction isComputed(obj, key) {\n  return Boolean(descriptorForProperty(obj, key));\n}\nconst _globalsComputed = computed.bind(null);\n\nfunction getCachedValueFor(obj, key) {\n  let meta$$1 = peekMeta(obj);\n\n  if (meta$$1) {\n    return meta$$1.valueFor(key);\n  }\n}\n\nfunction alias(altKey) {\n  assert('You attempted to use @alias as a decorator directly, but it requires a `altKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return makeComputedDecorator(new AliasedProperty(altKey), AliasDecoratorImpl);\n} // TODO: This class can be svelted once `meta` has been deprecated\n\nclass AliasDecoratorImpl extends Function {\n  readOnly() {\n    descriptorForDecorator(this).readOnly();\n    return this;\n  }\n\n  oneWay() {\n    descriptorForDecorator(this).oneWay();\n    return this;\n  }\n\n  meta(meta$$1) {\n    let prop = descriptorForDecorator(this);\n\n    if (arguments.length === 0) {\n      return prop._meta || {};\n    } else {\n      prop._meta = meta$$1;\n    }\n  }\n\n}\n\nclass AliasedProperty extends ComputedDescriptor {\n  constructor(altKey) {\n    super();\n    this.altKey = altKey;\n  }\n\n  setup(obj, keyName, propertyDesc, meta$$1) {\n    assert(`Setting alias '${keyName}' on self`, this.altKey !== keyName);\n    super.setup(obj, keyName, propertyDesc, meta$$1);\n    CHAIN_PASS_THROUGH.add(this);\n  }\n\n  get(obj, keyName) {\n    let ret;\n    let meta$$1 = meta(obj);\n    let tagMeta = tagMetaFor(obj);\n    let propertyTag = tagFor(obj, keyName, tagMeta); // We don't use the tag since CPs are not automatic, we just want to avoid\n    // anything tracking while we get the altKey\n\n    untrack(() => {\n      ret = get(obj, this.altKey);\n    });\n    let lastRevision = meta$$1.revisionFor(keyName);\n\n    if (lastRevision === undefined || !validateTag(propertyTag, lastRevision)) {\n      updateTag(propertyTag, getChainTagsForKey(obj, this.altKey, tagMeta, meta$$1));\n      meta$$1.setRevisionFor(keyName, valueForTag(propertyTag));\n      finishLazyChains(meta$$1, keyName, ret);\n    }\n\n    consumeTag(propertyTag);\n    return ret;\n  }\n\n  set(obj, _keyName, value) {\n    return set(obj, this.altKey, value);\n  }\n\n  readOnly() {\n    this.set = AliasedProperty_readOnlySet;\n  }\n\n  oneWay() {\n    this.set = AliasedProperty_oneWaySet;\n  }\n\n}\n\nfunction AliasedProperty_readOnlySet(obj, keyName) {\n  // eslint-disable-line no-unused-vars\n  throw new EmberError(`Cannot set read-only property '${keyName}' on object: ${inspect(obj)}`);\n}\n\nfunction AliasedProperty_oneWaySet(obj, keyName, value) {\n  defineProperty(obj, keyName, null);\n  return set(obj, keyName, value);\n}\n\n/**\n@module ember\n*/\n/**\n  Used internally to allow changing properties in a backwards compatible way, and print a helpful\n  deprecation warning.\n\n  @method deprecateProperty\n  @param {Object} object The object to add the deprecated property to.\n  @param {String} deprecatedKey The property to add (and print deprecation warnings upon accessing).\n  @param {String} newKey The property that will be aliased.\n  @private\n  @since 1.7.0\n*/\n\nfunction deprecateProperty(object, deprecatedKey, newKey, options) {\n  function _deprecate() {\n    deprecate(`Usage of \\`${deprecatedKey}\\` is deprecated, use \\`${newKey}\\` instead.`, false, options);\n  }\n\n  Object.defineProperty(object, deprecatedKey, {\n    configurable: true,\n    enumerable: false,\n\n    set(value) {\n      _deprecate();\n\n      set(this, newKey, value);\n    },\n\n    get() {\n      _deprecate();\n\n      return get(this, newKey);\n    }\n\n  });\n}\n\nconst EACH_PROXIES = new WeakMap();\nfunction eachProxyArrayWillChange(array, idx, removedCnt, addedCnt) {\n  let eachProxy = EACH_PROXIES.get(array);\n\n  if (eachProxy !== undefined) {\n    eachProxy.arrayWillChange(array, idx, removedCnt, addedCnt);\n  }\n}\nfunction eachProxyArrayDidChange(array, idx, removedCnt, addedCnt) {\n  let eachProxy = EACH_PROXIES.get(array);\n\n  if (eachProxy !== undefined) {\n    eachProxy.arrayDidChange(array, idx, removedCnt, addedCnt);\n  }\n}\n\n/**\n @module @ember/utils\n*/\n\n/**\n  Returns true if the passed value is null or undefined. This avoids errors\n  from JSLint complaining about use of ==, which can be technically\n  confusing.\n\n  ```javascript\n  isNone();              // true\n  isNone(null);          // true\n  isNone(undefined);     // true\n  isNone('');            // false\n  isNone([]);            // false\n  isNone(function() {}); // false\n  ```\n\n  @method isNone\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @public\n*/\nfunction isNone(obj) {\n  return obj === null || obj === undefined;\n}\n\n/**\n @module @ember/utils\n*/\n\n/**\n  Verifies that a value is `null` or `undefined`, an empty string, or an empty\n  array.\n\n  Constrains the rules on `isNone` by returning true for empty strings and\n  empty arrays.\n\n  If the value is an object with a `size` property of type number, it is used\n  to check emptiness.\n\n  ```javascript\n  isEmpty();                 // true\n  isEmpty(null);             // true\n  isEmpty(undefined);        // true\n  isEmpty('');               // true\n  isEmpty([]);               // true\n  isEmpty({ size: 0});       // true\n  isEmpty({});               // false\n  isEmpty('Adam Hawkins');   // false\n  isEmpty([0,1,2]);          // false\n  isEmpty('\\n\\t');           // false\n  isEmpty('  ');             // false\n  isEmpty({ size: 1 })       // false\n  isEmpty({ size: () => 0 }) // false\n  ```\n\n  @method isEmpty\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @public\n*/\n\nfunction isEmpty(obj) {\n  let none = obj === null || obj === undefined;\n\n  if (none) {\n    return none;\n  }\n\n  if (typeof obj.size === 'number') {\n    return !obj.size;\n  }\n\n  let objectType = typeof obj;\n\n  if (objectType === 'object') {\n    let size = get(obj, 'size');\n\n    if (typeof size === 'number') {\n      return !size;\n    }\n  }\n\n  if (typeof obj.length === 'number' && objectType !== 'function') {\n    return !obj.length;\n  }\n\n  if (objectType === 'object') {\n    let length = get(obj, 'length');\n\n    if (typeof length === 'number') {\n      return !length;\n    }\n  }\n\n  return false;\n}\n\n/**\n @module @ember/utils\n*/\n\n/**\n  A value is blank if it is empty or a whitespace string.\n\n  ```javascript\n  import { isBlank } from '@ember/utils';\n\n  isBlank();                // true\n  isBlank(null);            // true\n  isBlank(undefined);       // true\n  isBlank('');              // true\n  isBlank([]);              // true\n  isBlank('\\n\\t');          // true\n  isBlank('  ');            // true\n  isBlank({});              // false\n  isBlank('\\n\\t Hello');    // false\n  isBlank('Hello world');   // false\n  isBlank([1,2,3]);         // false\n  ```\n\n  @method isBlank\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @since 1.5.0\n  @public\n*/\n\nfunction isBlank(obj) {\n  return isEmpty(obj) || typeof obj === 'string' && /\\S/.test(obj) === false;\n}\n\n/**\n @module @ember/utils\n*/\n\n/**\n  A value is present if it not `isBlank`.\n\n  ```javascript\n  isPresent();                // false\n  isPresent(null);            // false\n  isPresent(undefined);       // false\n  isPresent('');              // false\n  isPresent('  ');            // false\n  isPresent('\\n\\t');          // false\n  isPresent([]);              // false\n  isPresent({ length: 0 });   // false\n  isPresent(false);           // true\n  isPresent(true);            // true\n  isPresent('string');        // true\n  isPresent(0);               // true\n  isPresent(function() {});   // true\n  isPresent({});              // true\n  isPresent('\\n\\t Hello');    // true\n  isPresent([1, 2, 3]);       // true\n  ```\n\n  @method isPresent\n  @static\n  @for @ember/utils\n  @param {Object} obj Value to test\n  @return {Boolean}\n  @since 1.8.0\n  @public\n*/\n\nfunction isPresent(obj) {\n  return !isBlank(obj);\n}\n\n/**\n @module ember\n*/\n\n/**\n  Helper class that allows you to register your library with Ember.\n\n  Singleton created at `Ember.libraries`.\n\n  @class Libraries\n  @constructor\n  @private\n*/\n\nclass Libraries {\n  constructor() {\n    this._registry = [];\n    this._coreLibIndex = 0;\n  }\n\n  _getLibraryByName(name) {\n    let libs = this._registry;\n    let count = libs.length;\n\n    for (let i = 0; i < count; i++) {\n      if (libs[i].name === name) {\n        return libs[i];\n      }\n    }\n\n    return undefined;\n  }\n\n  register(name, version, isCoreLibrary) {\n    let index = this._registry.length;\n\n    if (!this._getLibraryByName(name)) {\n      if (isCoreLibrary) {\n        index = this._coreLibIndex++;\n      }\n\n      this._registry.splice(index, 0, {\n        name,\n        version\n      });\n    } else {\n      warn(`Library \"${name}\" is already registered with Ember.`, false, {\n        id: 'ember-metal.libraries-register'\n      });\n    }\n  }\n\n  registerCoreLibrary(name, version) {\n    this.register(name, version, true);\n  }\n\n  deRegister(name) {\n    let lib = this._getLibraryByName(name);\n\n    let index;\n\n    if (lib) {\n      index = this._registry.indexOf(lib);\n\n      this._registry.splice(index, 1);\n    }\n  }\n\n}\n\nif (DEBUG) {\n  Libraries.prototype.logVersions = function () {\n    let libs = this._registry;\n    let nameLengths = libs.map(item => get(item, 'name.length'));\n    let maxNameLength = Math.max.apply(null, nameLengths);\n    debug('-------------------------------');\n\n    for (let i = 0; i < libs.length; i++) {\n      let lib = libs[i];\n      let spaces = new Array(maxNameLength - lib.name.length + 1).join(' ');\n      debug([lib.name, spaces, ' : ', lib.version].join(''));\n    }\n\n    debug('-------------------------------');\n  };\n}\n\nconst LIBRARIES = new Libraries();\nLIBRARIES.registerCoreLibrary('Ember', VERSION);\n\n/**\n @module @ember/object\n*/\n\n/**\n  To get multiple properties at once, call `getProperties`\n  with an object followed by a list of strings or an array:\n\n  ```javascript\n  import { getProperties } from '@ember/object';\n\n  getProperties(record, 'firstName', 'lastName', 'zipCode');\n  // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n  ```\n\n  is equivalent to:\n\n  ```javascript\n  import { getProperties } from '@ember/object';\n\n  getProperties(record, ['firstName', 'lastName', 'zipCode']);\n  // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n  ```\n\n  @method getProperties\n  @static\n  @for @ember/object\n  @param {Object} obj\n  @param {String...|Array} list of keys to get\n  @return {Object}\n  @public\n*/\n\nfunction getProperties(obj, keys) {\n  let ret = {};\n  let propertyNames = arguments;\n  let i = 1;\n\n  if (arguments.length === 2 && Array.isArray(keys)) {\n    i = 0;\n    propertyNames = arguments[1];\n  }\n\n  for (; i < propertyNames.length; i++) {\n    ret[propertyNames[i]] = get(obj, propertyNames[i]);\n  }\n\n  return ret;\n}\n\n/**\n @module @ember/object\n*/\n\n/**\n  Set a list of properties on an object. These properties are set inside\n  a single `beginPropertyChanges` and `endPropertyChanges` batch, so\n  observers will be buffered.\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  let anObject = EmberObject.create();\n\n  anObject.setProperties({\n    firstName: 'Stanley',\n    lastName: 'Stuart',\n    age: 21\n  });\n  ```\n\n  @method setProperties\n  @static\n  @for @ember/object\n  @param obj\n  @param {Object} properties\n  @return properties\n  @public\n*/\n\nfunction setProperties(obj, properties) {\n  if (properties === null || typeof properties !== 'object') {\n    return properties;\n  }\n\n  changeProperties(() => {\n    let props = Object.keys(properties);\n    let propertyName;\n\n    for (let i = 0; i < props.length; i++) {\n      propertyName = props[i];\n      set(obj, propertyName, properties[propertyName]);\n    }\n  });\n  return properties;\n}\n\n// move into its own package\n// it is needed by Mixin for classToString\n// maybe move it into environment\n\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\nlet searchDisabled = false;\nconst flags = {\n  _set: 0,\n  _unprocessedNamespaces: false,\n\n  get unprocessedNamespaces() {\n    return this._unprocessedNamespaces;\n  },\n\n  set unprocessedNamespaces(v) {\n    this._set++;\n    this._unprocessedNamespaces = v;\n  }\n\n};\nlet unprocessedMixins = false;\nconst NAMESPACES = [];\nconst NAMESPACES_BY_ID = Object.create(null);\nfunction addNamespace(namespace) {\n  flags.unprocessedNamespaces = true;\n  NAMESPACES.push(namespace);\n}\nfunction removeNamespace(namespace) {\n  let name = getName(namespace);\n  delete NAMESPACES_BY_ID[name];\n  NAMESPACES.splice(NAMESPACES.indexOf(namespace), 1);\n\n  if (name in context.lookup && namespace === context.lookup[name]) {\n    context.lookup[name] = undefined;\n  }\n}\nfunction findNamespaces() {\n  if (!flags.unprocessedNamespaces) {\n    return;\n  }\n\n  let lookup = context.lookup;\n  let keys = Object.keys(lookup);\n\n  for (let i = 0; i < keys.length; i++) {\n    let key = keys[i]; // Only process entities that start with uppercase A-Z\n\n    if (!isUppercase(key.charCodeAt(0))) {\n      continue;\n    }\n\n    let obj = tryIsNamespace(lookup, key);\n\n    if (obj) {\n      setName(obj, key);\n    }\n  }\n}\nfunction findNamespace(name) {\n  if (!searchDisabled) {\n    processAllNamespaces();\n  }\n\n  return NAMESPACES_BY_ID[name];\n}\nfunction processNamespace(namespace) {\n  _processNamespace([namespace.toString()], namespace, new Set());\n}\nfunction processAllNamespaces() {\n  let unprocessedNamespaces = flags.unprocessedNamespaces;\n\n  if (unprocessedNamespaces) {\n    findNamespaces();\n    flags.unprocessedNamespaces = false;\n  }\n\n  if (unprocessedNamespaces || unprocessedMixins) {\n    let namespaces = NAMESPACES;\n\n    for (let i = 0; i < namespaces.length; i++) {\n      processNamespace(namespaces[i]);\n    }\n\n    unprocessedMixins = false;\n  }\n}\nfunction classToString() {\n  let name = getName(this);\n\n  if (name !== void 0) {\n    return name;\n  }\n\n  name = calculateToString(this);\n  setName(this, name);\n  return name;\n}\nfunction isSearchDisabled() {\n  return searchDisabled;\n}\nfunction setSearchDisabled(flag) {\n  searchDisabled = Boolean(flag);\n}\nfunction setUnprocessedMixins() {\n  unprocessedMixins = true;\n}\n\nfunction _processNamespace(paths, root, seen) {\n  let idx = paths.length;\n  let id = paths.join('.');\n  NAMESPACES_BY_ID[id] = root;\n  setName(root, id); // Loop over all of the keys in the namespace, looking for classes\n\n  for (let key in root) {\n    if (!hasOwnProperty.call(root, key)) {\n      continue;\n    }\n\n    let obj = root[key]; // If we are processing the `Ember` namespace, for example, the\n    // `paths` will start with `[\"Ember\"]`. Every iteration through\n    // the loop will update the **second** element of this list with\n    // the key, so processing `Ember.View` will make the Array\n    // `['Ember', 'View']`.\n\n    paths[idx] = key; // If we have found an unprocessed class\n\n    if (obj && obj.toString === classToString && getName(obj) === void 0) {\n      // Replace the class' `toString` with the dot-separated path\n      setName(obj, paths.join('.')); // Support nested namespaces\n    } else if (obj && obj.isNamespace) {\n      // Skip aliased namespaces\n      if (seen.has(obj)) {\n        continue;\n      }\n\n      seen.add(obj); // Process the child namespace\n\n      _processNamespace(paths, obj, seen);\n    }\n  }\n\n  paths.length = idx; // cut out last item\n}\n\nfunction isUppercase(code) {\n  return code >= 65 && code <= 90 // A\n  ; // Z\n}\n\nfunction tryIsNamespace(lookup, prop) {\n  try {\n    let obj = lookup[prop];\n    return (obj !== null && typeof obj === 'object' || typeof obj === 'function') && obj.isNamespace && obj;\n  } catch (e) {// continue\n  }\n}\n\nfunction calculateToString(target) {\n  let str;\n\n  if (!searchDisabled) {\n    processAllNamespaces();\n    str = getName(target);\n\n    if (str !== void 0) {\n      return str;\n    }\n\n    let superclass = target;\n\n    do {\n      superclass = Object.getPrototypeOf(superclass);\n\n      if (superclass === Function.prototype || superclass === Object.prototype) {\n        break;\n      }\n\n      str = getName(target);\n\n      if (str !== void 0) {\n        str = `(subclass of ${str})`;\n        break;\n      }\n    } while (str === void 0);\n  }\n\n  return str || '(unknown)';\n}\n\n/**\n@module @ember/object\n*/\nconst a_concat = Array.prototype.concat;\nconst {\n  isArray\n} = Array;\n\nfunction extractAccessors(properties) {\n  if (properties !== undefined) {\n    let keys = Object.keys(properties);\n\n    for (let i = 0; i < keys.length; i++) {\n      let key = keys[i];\n      let desc = Object.getOwnPropertyDescriptor(properties, key);\n\n      if (desc.get !== undefined || desc.set !== undefined) {\n        Object.defineProperty(properties, key, {\n          value: nativeDescDecorator(desc)\n        });\n      }\n    }\n  }\n\n  return properties;\n}\n\nfunction concatenatedMixinProperties(concatProp, props, values, base) {\n  // reset before adding each new mixin to pickup concats from previous\n  let concats = values[concatProp] || base[concatProp];\n\n  if (props[concatProp]) {\n    concats = concats ? a_concat.call(concats, props[concatProp]) : props[concatProp];\n  }\n\n  return concats;\n}\n\nfunction giveDecoratorSuper(key, decorator, property, descs) {\n  if (property === true) {\n    return decorator;\n  }\n\n  let originalGetter = property._getter;\n\n  if (originalGetter === undefined) {\n    return decorator;\n  }\n\n  let superDesc = descs[key]; // Check to see if the super property is a decorator first, if so load its descriptor\n\n  let superProperty = typeof superDesc === 'function' ? descriptorForDecorator(superDesc) : superDesc;\n\n  if (superProperty === undefined || superProperty === true) {\n    return decorator;\n  }\n\n  let superGetter = superProperty._getter;\n\n  if (superGetter === undefined) {\n    return decorator;\n  }\n\n  let get = wrap(originalGetter, superGetter);\n  let set;\n  let originalSetter = property._setter;\n  let superSetter = superProperty._setter;\n\n  if (superSetter !== undefined) {\n    if (originalSetter !== undefined) {\n      set = wrap(originalSetter, superSetter);\n    } else {\n      // If the super property has a setter, we default to using it no matter what.\n      // This is clearly very broken and weird, but it's what was here so we have\n      // to keep it until the next major at least.\n      //\n      // TODO: Add a deprecation here.\n      set = superSetter;\n    }\n  } else {\n    set = originalSetter;\n  } // only create a new CP if we must\n\n\n  if (get !== originalGetter || set !== originalSetter) {\n    // Since multiple mixins may inherit from the same parent, we need\n    // to clone the computed property so that other mixins do not receive\n    // the wrapped version.\n    let dependentKeys = property._dependentKeys || [];\n    let newProperty = new ComputedProperty([...dependentKeys, {\n      get,\n      set\n    }]);\n    newProperty._readOnly = property._readOnly;\n    newProperty._volatile = property._volatile;\n    newProperty._meta = property._meta;\n    newProperty.enumerable = property.enumerable;\n    return makeComputedDecorator(newProperty, ComputedProperty);\n  }\n\n  return decorator;\n}\n\nfunction giveMethodSuper(key, method, values, descs) {\n  // Methods overwrite computed properties, and do not call super to them.\n  if (descs[key] !== undefined) {\n    return method;\n  } // Find the original method in a parent mixin\n\n\n  let superMethod = values[key]; // Only wrap the new method if the original method was a function\n\n  if (typeof superMethod === 'function') {\n    return wrap(method, superMethod);\n  }\n\n  return method;\n}\n\nfunction applyConcatenatedProperties(key, value, values) {\n  let baseValue = values[key];\n  let ret = makeArray(baseValue).concat(makeArray(value));\n\n  if (DEBUG) {\n    // it is possible to use concatenatedProperties with strings (which cannot be frozen)\n    // only freeze objects...\n    if (typeof ret === 'object' && ret !== null) {\n      // prevent mutating `concatenatedProperties` array after it is applied\n      Object.freeze(ret);\n    }\n  }\n\n  return ret;\n}\n\nfunction applyMergedProperties(key, value, values) {\n  let baseValue = values[key];\n  assert(`You passed in \\`${JSON.stringify(value)}\\` as the value for \\`${key}\\` but \\`${key}\\` cannot be an Array`, !isArray(value));\n\n  if (!baseValue) {\n    return value;\n  }\n\n  let newBase = assign({}, baseValue);\n  let hasFunction = false;\n  let props = Object.keys(value);\n\n  for (let i = 0; i < props.length; i++) {\n    let prop = props[i];\n    let propValue = value[prop];\n\n    if (typeof propValue === 'function') {\n      hasFunction = true;\n      newBase[prop] = giveMethodSuper(prop, propValue, baseValue, {});\n    } else {\n      newBase[prop] = propValue;\n    }\n  }\n\n  if (hasFunction) {\n    newBase._super = ROOT;\n  }\n\n  return newBase;\n}\n\nfunction mergeMixins(mixins, meta$$1, descs, values, base, keys, keysWithSuper) {\n  let currentMixin;\n\n  for (let i = 0; i < mixins.length; i++) {\n    currentMixin = mixins[i];\n    assert(`Expected hash or Mixin instance, got ${Object.prototype.toString.call(currentMixin)}`, typeof currentMixin === 'object' && currentMixin !== null && Object.prototype.toString.call(currentMixin) !== '[object Array]');\n\n    if (MIXINS.has(currentMixin)) {\n      if (meta$$1.hasMixin(currentMixin)) {\n        continue;\n      }\n\n      meta$$1.addMixin(currentMixin);\n      let {\n        properties,\n        mixins\n      } = currentMixin;\n\n      if (properties !== undefined) {\n        mergeProps(meta$$1, properties, descs, values, base, keys, keysWithSuper);\n      } else if (mixins !== undefined) {\n        mergeMixins(mixins, meta$$1, descs, values, base, keys, keysWithSuper);\n\n        if (currentMixin._without !== undefined) {\n          currentMixin._without.forEach(keyName => {\n            // deleting the key means we won't process the value\n            let index = keys.indexOf(keyName);\n\n            if (index !== -1) {\n              keys.splice(index, 1);\n            }\n          });\n        }\n      }\n    } else {\n      mergeProps(meta$$1, currentMixin, descs, values, base, keys, keysWithSuper);\n    }\n  }\n}\n\nfunction mergeProps(meta$$1, props, descs, values, base, keys, keysWithSuper) {\n  let concats = concatenatedMixinProperties('concatenatedProperties', props, values, base);\n  let mergings = concatenatedMixinProperties('mergedProperties', props, values, base);\n  let propKeys = Object.keys(props);\n\n  for (let i = 0; i < propKeys.length; i++) {\n    let key = propKeys[i];\n    let value = props[key];\n    if (value === undefined) continue;\n\n    if (keys.indexOf(key) === -1) {\n      keys.push(key);\n      let desc = meta$$1.peekDescriptors(key);\n\n      if (desc === undefined) {\n        // The superclass did not have a CP, which means it may have\n        // observers or listeners on that property.\n        let prev = values[key] = base[key];\n\n        if (typeof prev === 'function') {\n          updateObserversAndListeners(base, key, prev, false);\n        }\n      } else {\n        descs[key] = desc; // The super desc will be overwritten on descs, so save off the fact that\n        // there was a super so we know to Object.defineProperty when writing\n        // the value\n\n        keysWithSuper.push(key);\n        desc.teardown(base, key, meta$$1);\n      }\n    }\n\n    let isFunction = typeof value === 'function';\n\n    if (isFunction) {\n      let desc = descriptorForDecorator(value);\n\n      if (desc !== undefined) {\n        // Wrap descriptor function to implement _super() if needed\n        descs[key] = giveDecoratorSuper(key, value, desc, descs);\n        values[key] = undefined;\n        continue;\n      }\n    }\n\n    if (concats && concats.indexOf(key) >= 0 || key === 'concatenatedProperties' || key === 'mergedProperties') {\n      value = applyConcatenatedProperties(key, value, values);\n    } else if (mergings && mergings.indexOf(key) > -1) {\n      value = applyMergedProperties(key, value, values);\n    } else if (isFunction) {\n      value = giveMethodSuper(key, value, values, descs);\n    }\n\n    values[key] = value;\n    descs[key] = undefined;\n  }\n}\n\nlet followMethodAlias;\n\nif (ALIAS_METHOD) {\n  followMethodAlias = function (obj, alias, descs, values) {\n    let altKey = alias.methodName;\n    let possibleDesc;\n    let desc = descs[altKey];\n    let value = values[altKey];\n\n    if (desc !== undefined || value !== undefined) {// do nothing\n    } else if ((possibleDesc = descriptorForProperty(obj, altKey)) !== undefined) {\n      desc = possibleDesc;\n      value = undefined;\n    } else {\n      desc = undefined;\n      value = obj[altKey];\n    }\n\n    return {\n      desc,\n      value\n    };\n  };\n}\n\nfunction updateObserversAndListeners(obj, key, fn, add) {\n  let meta$$1 = observerListenerMetaFor(fn);\n  if (meta$$1 === undefined) return;\n  let {\n    observers,\n    listeners\n  } = meta$$1;\n\n  if (observers !== undefined) {\n    let updateObserver = add ? addObserver : removeObserver;\n\n    for (let i = 0; i < observers.paths.length; i++) {\n      updateObserver(obj, observers.paths[i], null, key, observers.sync);\n    }\n  }\n\n  if (listeners !== undefined) {\n    let updateListener = add ? addListener : removeListener;\n\n    for (let i = 0; i < listeners.length; i++) {\n      updateListener(obj, listeners[i], null, key);\n    }\n  }\n}\n\nfunction applyMixin(obj, mixins, _hideKeys = false) {\n  let descs = Object.create(null);\n  let values = Object.create(null);\n  let meta$$1 = meta(obj);\n  let keys = [];\n  let keysWithSuper = [];\n  obj._super = ROOT; // Go through all mixins and hashes passed in, and:\n  //\n  // * Handle concatenated properties\n  // * Handle merged properties\n  // * Set up _super wrapping if necessary\n  // * Set up computed property descriptors\n  // * Copying `toString` in broken browsers\n\n  mergeMixins(mixins, meta$$1, descs, values, obj, keys, keysWithSuper);\n\n  for (let i = 0; i < keys.length; i++) {\n    let key = keys[i];\n    let value = values[key];\n    let desc = descs[key];\n\n    if (ALIAS_METHOD) {\n      while (value !== undefined && isAlias(value)) {\n        let followed = followMethodAlias(obj, value, descs, values);\n        desc = followed.desc;\n        value = followed.value;\n      }\n    }\n\n    if (value !== undefined) {\n      if (typeof value === 'function') {\n        updateObserversAndListeners(obj, key, value, true);\n      }\n\n      defineValue(obj, key, value, keysWithSuper.indexOf(key) !== -1, !_hideKeys);\n    } else if (desc !== undefined) {\n      defineDecorator(obj, key, desc, meta$$1);\n    }\n  }\n\n  if (!meta$$1.isPrototypeMeta(obj)) {\n    revalidateObservers(obj);\n  }\n\n  return obj;\n}\n/**\n  @method mixin\n  @param obj\n  @param mixins*\n  @return obj\n  @private\n*/\n\nfunction mixin(obj, ...args) {\n  applyMixin(obj, args);\n  return obj;\n}\nconst MIXINS = new _WeakSet();\n/**\n  The `Mixin` class allows you to create mixins, whose properties can be\n  added to other classes. For instance,\n\n  ```javascript\n  import Mixin from '@ember/object/mixin';\n\n  const EditableMixin = Mixin.create({\n    edit() {\n      console.log('starting to edit');\n      this.set('isEditing', true);\n    },\n    isEditing: false\n  });\n  ```\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import EditableMixin from '../mixins/editable';\n\n  // Mix mixins into classes by passing them as the first arguments to\n  // `.extend.`\n  const Comment = EmberObject.extend(EditableMixin, {\n    post: null\n  });\n\n  let comment = Comment.create({\n    post: somePost\n  });\n\n  comment.edit(); // outputs 'starting to edit'\n  ```\n\n  Note that Mixins are created with `Mixin.create`, not\n  `Mixin.extend`.\n\n  Note that mixins extend a constructor's prototype so arrays and object literals\n  defined as properties will be shared amongst objects that implement the mixin.\n  If you want to define a property in a mixin that is not shared, you can define\n  it either as a computed property or have it be created on initialization of the object.\n\n  ```javascript\n  // filters array will be shared amongst any object implementing mixin\n  import Mixin from '@ember/object/mixin';\n  import { A } from '@ember/array';\n\n  const FilterableMixin = Mixin.create({\n    filters: A()\n  });\n  ```\n\n  ```javascript\n  import Mixin from '@ember/object/mixin';\n  import { A } from '@ember/array';\n  import { computed } from '@ember/object';\n\n  // filters will be a separate array for every object implementing the mixin\n  const FilterableMixin = Mixin.create({\n    filters: computed(function() {\n      return A();\n    })\n  });\n  ```\n\n  ```javascript\n  import Mixin from '@ember/object/mixin';\n  import { A } from '@ember/array';\n\n  // filters will be created as a separate array during the object's initialization\n  const Filterable = Mixin.create({\n    filters: null,\n\n    init() {\n      this._super(...arguments);\n      this.set(\"filters\", A());\n    }\n  });\n  ```\n\n  @class Mixin\n  @public\n*/\n\nclass Mixin {\n  constructor(mixins, properties) {\n    MIXINS.add(this);\n    this.properties = extractAccessors(properties);\n    this.mixins = buildMixinsArray(mixins);\n    this.ownerConstructor = undefined;\n    this._without = undefined;\n\n    if (DEBUG) {\n      /*\n        In debug builds, we seal mixins to help avoid performance pitfalls.\n               In IE11 there is a quirk that prevents sealed objects from being added\n        to a WeakMap. Unfortunately, the mixin system currently relies on\n        weak maps in `guidFor`, so we need to prime the guid cache weak map.\n      */\n      guidFor(this);\n      Object.seal(this);\n    }\n  }\n  /**\n    @method create\n    @for @ember/object/mixin\n    @static\n    @param arguments*\n    @public\n  */\n\n\n  static create(...args) {\n    setUnprocessedMixins();\n    let M = this;\n    return new M(args, undefined);\n  } // returns the mixins currently applied to the specified object\n  // TODO: Make `mixin`\n\n\n  static mixins(obj) {\n    let meta$$1 = peekMeta(obj);\n    let ret = [];\n\n    if (meta$$1 === null) {\n      return ret;\n    }\n\n    meta$$1.forEachMixins(currentMixin => {\n      // skip primitive mixins since these are always anonymous\n      if (!currentMixin.properties) {\n        ret.push(currentMixin);\n      }\n    });\n    return ret;\n  }\n  /**\n    @method reopen\n    @param arguments*\n    @private\n  */\n\n\n  reopen(...args) {\n    if (args.length === 0) {\n      return;\n    }\n\n    if (this.properties) {\n      let currentMixin = new Mixin(undefined, this.properties);\n      this.properties = undefined;\n      this.mixins = [currentMixin];\n    } else if (!this.mixins) {\n      this.mixins = [];\n    }\n\n    this.mixins = this.mixins.concat(buildMixinsArray(args));\n    return this;\n  }\n  /**\n    @method apply\n    @param obj\n    @return applied object\n    @private\n  */\n\n\n  apply(obj, _hideKeys = false) {\n    // Ember.NativeArray is a normal Ember.Mixin that we mix into `Array.prototype` when prototype extensions are enabled\n    // mutating a native object prototype like this should _not_ result in enumerable properties being added (or we have significant\n    // issues with things like deep equality checks from test frameworks, or things like jQuery.extend(true, [], [])).\n    //\n    // _hideKeys disables enumerablity when applying the mixin. This is a hack, and we should stop mutating the array prototype by default 😫\n    return applyMixin(obj, [this], _hideKeys);\n  }\n\n  applyPartial(obj) {\n    return applyMixin(obj, [this]);\n  }\n  /**\n    @method detect\n    @param obj\n    @return {Boolean}\n    @private\n  */\n\n\n  detect(obj) {\n    if (typeof obj !== 'object' || obj === null) {\n      return false;\n    }\n\n    if (MIXINS.has(obj)) {\n      return _detect(obj, this);\n    }\n\n    let meta$$1 = peekMeta(obj);\n\n    if (meta$$1 === null) {\n      return false;\n    }\n\n    return meta$$1.hasMixin(this);\n  }\n\n  without(...args) {\n    let ret = new Mixin([this]);\n    ret._without = args;\n    return ret;\n  }\n\n  keys() {\n    return _keys(this);\n  }\n\n  toString() {\n    return '(unknown mixin)';\n  }\n\n}\n\nfunction buildMixinsArray(mixins) {\n  let length = mixins && mixins.length || 0;\n  let m = undefined;\n\n  if (length > 0) {\n    m = new Array(length);\n\n    for (let i = 0; i < length; i++) {\n      let x = mixins[i];\n      assert(`Expected hash or Mixin instance, got ${Object.prototype.toString.call(x)}`, typeof x === 'object' && x !== null && Object.prototype.toString.call(x) !== '[object Array]');\n\n      if (MIXINS.has(x)) {\n        m[i] = x;\n      } else {\n        m[i] = new Mixin(undefined, x);\n      }\n    }\n  }\n\n  return m;\n}\n\nMixin.prototype.toString = classToString;\n\nif (DEBUG) {\n  Object.seal(Mixin.prototype);\n}\n\nfunction _detect(curMixin, targetMixin, seen = new Set()) {\n  if (seen.has(curMixin)) {\n    return false;\n  }\n\n  seen.add(curMixin);\n\n  if (curMixin === targetMixin) {\n    return true;\n  }\n\n  let mixins = curMixin.mixins;\n\n  if (mixins) {\n    return mixins.some(mixin => _detect(mixin, targetMixin, seen));\n  }\n\n  return false;\n}\n\nfunction _keys(mixin, ret = new Set(), seen = new Set()) {\n  if (seen.has(mixin)) {\n    return;\n  }\n\n  seen.add(mixin);\n\n  if (mixin.properties) {\n    let props = Object.keys(mixin.properties);\n\n    for (let i = 0; i < props.length; i++) {\n      ret.add(props[i]);\n    }\n  } else if (mixin.mixins) {\n    mixin.mixins.forEach(x => _keys(x, ret, seen));\n  }\n\n  return ret;\n}\n\nlet AliasImpl;\nlet isAlias;\n\nif (ALIAS_METHOD) {\n  const ALIASES = new _WeakSet();\n\n  isAlias = alias => {\n    return ALIASES.has(alias);\n  };\n\n  AliasImpl = class AliasImpl {\n    constructor(methodName) {\n      this.methodName = methodName;\n      ALIASES.add(this);\n    }\n\n  };\n}\n/**\n  Makes a method available via an additional name.\n\n  ```app/utils/person.js\n  import EmberObject, {\n    aliasMethod\n  } from '@ember/object';\n\n  export default EmberObject.extend({\n    name() {\n      return 'Tomhuda Katzdale';\n    },\n    moniker: aliasMethod('name')\n  });\n  ```\n\n  ```javascript\n  let goodGuy = Person.create();\n\n  goodGuy.name();    // 'Tomhuda Katzdale'\n  goodGuy.moniker(); // 'Tomhuda Katzdale'\n  ```\n\n  @method aliasMethod\n  @static\n  @deprecated Use a shared utility method instead\n  @for @ember/object\n  @param {String} methodName name of the method to alias\n  @public\n*/\n\n\nlet aliasMethod;\n\nif (ALIAS_METHOD) {\n  aliasMethod = function aliasMethod(methodName) {\n    deprecate(`You attempted to alias '${methodName}, but aliasMethod has been deprecated. Consider extracting the method into a shared utility function.`, false, {\n      id: 'object.alias-method',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_object-alias-method',\n      for: 'ember-source',\n      since: {\n        enabled: '3.9.0'\n      }\n    });\n    return new AliasImpl(methodName);\n  };\n}\n\nfunction observer(...args) {\n  let funcOrDef = args.pop();\n  assert('observer must be provided a function or an observer definition', typeof funcOrDef === 'function' || typeof funcOrDef === 'object' && funcOrDef !== null);\n  let func, dependentKeys, sync;\n\n  if (typeof funcOrDef === 'function') {\n    func = funcOrDef;\n    dependentKeys = args;\n    sync = !ENV._DEFAULT_ASYNC_OBSERVERS;\n  } else {\n    func = funcOrDef.fn;\n    dependentKeys = funcOrDef.dependentKeys;\n    sync = funcOrDef.sync;\n  }\n\n  assert('observer called without a function', typeof func === 'function');\n  assert('observer called without valid path', Array.isArray(dependentKeys) && dependentKeys.length > 0 && dependentKeys.every(p => typeof p === 'string' && Boolean(p.length)));\n  assert('observer called without sync', typeof sync === 'boolean');\n  let paths = [];\n\n  for (let i = 0; i < dependentKeys.length; ++i) {\n    expandProperties(dependentKeys[i], path => paths.push(path));\n  }\n\n  setObservers(func, {\n    paths,\n    sync\n  });\n  return func;\n}\n\nlet DEBUG_INJECTION_FUNCTIONS;\n\nif (DEBUG) {\n  DEBUG_INJECTION_FUNCTIONS = new WeakMap();\n}\n\nfunction inject(type, ...args) {\n  assert('a string type must be provided to inject', typeof type === 'string');\n  let calledAsDecorator = isElementDescriptor(args);\n  let name = calledAsDecorator ? undefined : args[0];\n\n  let getInjection = function (propertyName) {\n    let owner = getOwner(this) || this.container; // fallback to `container` for backwards compat\n\n    assert(`Attempting to lookup an injected property on an object without a container, ensure that the object was instantiated via a container.`, Boolean(owner));\n    return owner.lookup(`${type}:${name || propertyName}`);\n  };\n\n  if (DEBUG) {\n    DEBUG_INJECTION_FUNCTIONS.set(getInjection, {\n      type,\n      name\n    });\n  }\n\n  let decorator = computed({\n    get: getInjection,\n\n    set(keyName, value) {\n      defineProperty(this, keyName, null, value);\n    }\n\n  });\n\n  if (calledAsDecorator) {\n    return decorator(args[0], args[1], args[2]);\n  } else {\n    return decorator;\n  }\n}\n\nfunction tracked(...args) {\n  assert(`@tracked can only be used directly as a native decorator. If you're using tracked in classic classes, add parenthesis to call it like a function: tracked()`, !(isElementDescriptor(args.slice(0, 3)) && args.length === 5 && args[4] === true));\n\n  if (!isElementDescriptor(args)) {\n    let propertyDesc = args[0];\n    assert(`tracked() may only receive an options object containing 'value' or 'initializer', received ${propertyDesc}`, args.length === 0 || typeof propertyDesc === 'object' && propertyDesc !== null);\n\n    if (DEBUG && propertyDesc) {\n      let keys = Object.keys(propertyDesc);\n      assert(`The options object passed to tracked() may only contain a 'value' or 'initializer' property, not both. Received: [${keys}]`, keys.length <= 1 && (keys[0] === undefined || keys[0] === 'value' || keys[0] === 'initializer'));\n      assert(`The initializer passed to tracked must be a function. Received ${propertyDesc.initializer}`, !('initializer' in propertyDesc) || typeof propertyDesc.initializer === 'function');\n    }\n\n    let initializer = propertyDesc ? propertyDesc.initializer : undefined;\n    let value = propertyDesc ? propertyDesc.value : undefined;\n\n    let decorator = function (target, key, _desc, _meta, isClassicDecorator$$1) {\n      assert(`You attempted to set a default value for ${key} with the @tracked({ value: 'default' }) syntax. You can only use this syntax with classic classes. For native classes, you can use class initializers: @tracked field = 'default';`, isClassicDecorator$$1);\n      let fieldDesc = {\n        initializer: initializer || (() => value)\n      };\n      return descriptorForField([target, key, fieldDesc]);\n    };\n\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n\n  return descriptorForField(args);\n}\n\nif (DEBUG) {\n  // Normally this isn't a classic decorator, but we want to throw a helpful\n  // error in development so we need it to treat it like one\n  setClassicDecorator(tracked);\n}\n\nfunction descriptorForField([target, key, desc]) {\n  assert(`You attempted to use @tracked on ${key}, but that element is not a class field. @tracked is only usable on class fields. Native getters and setters will autotrack add any tracked fields they encounter, so there is no need mark getters and setters with @tracked.`, !desc || !desc.value && !desc.get && !desc.set);\n  let {\n    getter,\n    setter\n  } = trackedData(key, desc ? desc.initializer : undefined);\n\n  function get() {\n    let value = getter(this); // Add the tag of the returned value if it is an array, since arrays\n    // should always cause updates if they are consumed and then changed\n\n    if (Array.isArray(value) || isEmberArray(value)) {\n      consumeTag(tagFor(value, '[]'));\n    }\n\n    return value;\n  }\n\n  function set(newValue) {\n    setter(this, newValue);\n    dirtyTagFor(this, SELF_TAG);\n  }\n\n  let newDesc = {\n    enumerable: true,\n    configurable: true,\n    isTracked: true,\n    get,\n    set\n  };\n  COMPUTED_SETTERS.add(set);\n  meta(target).writeDescriptors(key, new TrackedDescriptor(get, set));\n  return newDesc;\n}\n\nclass TrackedDescriptor {\n  constructor(_get, _set) {\n    this._get = _get;\n    this._set = _set;\n    CHAIN_PASS_THROUGH.add(this);\n  }\n\n  get(obj) {\n    return this._get.call(obj);\n  }\n\n  set(obj, _key, value) {\n    this._set.call(obj, value);\n  }\n\n}\n\n/**\n  Ember uses caching based on trackable values to avoid updating large portions\n  of the application. This caching is exposed via a cache primitive that can be\n  used to cache a specific computation, so that it will not update and will\n  return the cached value until a tracked value used in its computation has\n  updated.\n\n  @module @glimmer/tracking/primitives/cache\n  @public\n*/\n\n/**\n  Receives a function, and returns a wrapped version of it that memoizes based on\n  _autotracking_. The function will only rerun whenever any tracked values used\n  within it have changed. Otherwise, it will return the previous value.\n\n  ```js\n  import { tracked } from '@glimmer/tracking';\n  import { createCache, getValue } from '@glimmer/tracking/primitives/cache';\n\n  class State {\n    @tracked value;\n  }\n\n  let state = new State();\n  let computeCount = 0;\n\n  let counter = createCache(() => {\n    // consume the state. Now, `counter` will\n    // only rerun if `state.value` changes.\n    state.value;\n\n    return ++computeCount;\n  });\n\n  getValue(counter); // 1\n\n  // returns the same value because no tracked state has changed\n  getValue(counter); // 1\n\n  state.value = 'foo';\n\n  // reruns because a tracked value used in the function has changed,\n  // incermenting the counter\n  getValue(counter); // 2\n  ```\n\n  @method createCache\n  @static\n  @for @glimmer/tracking/primitives/cache\n  @public\n*/\n\n/**\n  Gets the value of a cache created with `createCache`.\n\n  ```js\n  import { tracked } from '@glimmer/tracking';\n  import { createCache, getValue } from '@glimmer/tracking/primitives/cache';\n\n  let computeCount = 0;\n\n  let counter = createCache(() => {\n    return ++computeCount;\n  });\n\n  getValue(counter); // 1\n  ```\n\n  @method getValue\n  @static\n  @for @glimmer/tracking/primitives/cache\n  @public\n*/\n\n/**\n  Can be used to check if a memoized function is _constant_. If no tracked state\n  was used while running a memoized function, it will never rerun, because nothing\n  can invalidate its result. `isConst` can be used to determine if a memoized\n  function is constant or not, in order to optimize code surrounding that\n  function.\n\n  ```js\n  import { tracked } from '@glimmer/tracking';\n  import { createCache, getValue, isConst } from '@glimmer/tracking/primitives/cache';\n\n  class State {\n    @tracked value;\n  }\n\n  let state = new State();\n  let computeCount = 0;\n\n  let counter = createCache(() => {\n    // consume the state\n    state.value;\n\n    return computeCount++;\n  });\n\n  let constCounter = createCache(() => {\n    return computeCount++;\n  });\n\n  getValue(counter);\n  getValue(constCounter);\n\n  isConst(counter); // false\n  isConst(constCounter); // true\n  ```\n\n  If called on a cache that hasn't been accessed yet, it will throw an\n  error. This is because there's no way to know if the function will be constant\n  or not yet, and so this helps prevent missing an optimization opportunity on\n  accident.\n\n  @method isConst\n  @static\n  @for @glimmer/tracking/primitives/cache\n  @public\n*/\n\nexport { computed, autoComputed, isComputed, _globalsComputed, ComputedProperty, getCachedValueFor, alias, deprecateProperty, PROXY_CONTENT, _getPath, get, getWithDefault, _getProp, set, trySet, objectAt, replace, replaceInNativeArray, addArrayObserver, removeArrayObserver, arrayContentWillChange, arrayContentDidChange, eachProxyArrayWillChange, eachProxyArrayDidChange, addListener, hasListeners, on, removeListener, sendEvent, isNone, isEmpty, isBlank, isPresent, beginPropertyChanges, changeProperties, endPropertyChanges, notifyPropertyChange, PROPERTY_DID_CHANGE, defineProperty, isElementDescriptor, nativeDescDecorator, descriptorForDecorator, descriptorForProperty, isClassicDecorator, setClassicDecorator, LIBRARIES as libraries, Libraries, getProperties, setProperties, expandProperties, ASYNC_OBSERVERS, SYNC_OBSERVERS, addObserver, activateObserver, removeObserver, flushAsyncObservers, Mixin, aliasMethod, mixin, observer, applyMixin, inject, DEBUG_INJECTION_FUNCTIONS, tagForProperty, tagForObject, markObjectAsDirty, CUSTOM_TAG_FOR, tracked, NAMESPACES, NAMESPACES_BY_ID, addNamespace, classToString, findNamespace, findNamespaces, processNamespace, processAllNamespaces, removeNamespace, isSearchDisabled as isNamespaceSearchDisabled, setSearchDisabled as setNamespaceSearchDisabled };\n","import { getOwner as glimmerGetOwner, setOwner as glimmerSetOwner } from '@glimmer/runtime';\nimport { enumerableSymbol } from '@ember/-internals/utils';\nimport { deprecate } from '@ember/debug';\nexport const LEGACY_OWNER = enumerableSymbol('LEGACY_OWNER');\n/**\n  Framework objects in an Ember application (components, services, routes, etc.)\n  are created via a factory and dependency injection system. Each of these\n  objects is the responsibility of an \"owner\", which handled its\n  instantiation and manages its lifetime.\n\n  `getOwner` fetches the owner object responsible for an instance. This can\n  be used to lookup or resolve other class instances, or register new factories\n  into the owner.\n\n  For example, this component dynamically looks up a service based on the\n  `audioType` passed as an argument:\n\n  ```app/components/play-audio.js\n  import Component from '@glimmer/component';\n  import { action } from '@ember/object';\n  import { getOwner } from '@ember/application';\n\n  // Usage:\n  //\n  //   <PlayAudio @audioType={{@model.audioType}} @audioFile={{@model.file}}/>\n  //\n  export default class extends Component {\n    get audioService() {\n      let owner = getOwner(this);\n      return owner.lookup(`service:${this.args.audioType}`);\n    }\n\n    @action\n    onPlay() {\n      let player = this.audioService;\n      player.play(this.args.audioFile);\n    }\n  }\n  ```\n\n  @method getOwner\n  @static\n  @for @ember/application\n  @param {Object} object An object with an owner.\n  @return {Object} An owner object.\n  @since 2.3.0\n  @public\n*/\n\nexport function getOwner(object) {\n  let owner = glimmerGetOwner(object);\n\n  if (owner === undefined) {\n    owner = object[LEGACY_OWNER];\n    deprecate(`You accessed the owner using \\`getOwner\\` on an object, but it was not set on that object with \\`setOwner\\`. You must use \\`setOwner\\` to set the owner on all objects. You cannot use Object.assign().`, owner === undefined, {\n      id: 'owner.legacy-owner-injection',\n      until: '3.25.0',\n      for: 'ember-source',\n      since: {\n        enabled: '3.22.0'\n      }\n    });\n  }\n\n  return owner;\n}\n/**\n  `setOwner` forces a new owner on a given object instance. This is primarily\n  useful in some testing cases.\n\n  @method setOwner\n  @static\n  @for @ember/application\n  @param {Object} object An object instance.\n  @param {Object} object The new owner object of the object instance.\n  @since 2.3.0\n  @public\n*/\n\nexport function setOwner(object, owner) {\n  glimmerSetOwner(object, owner);\n  object[LEGACY_OWNER] = owner;\n}","// ES6TODO: Cleanup modules with side-effects below\nimport './lib/ext/controller';\nexport { default as Location } from './lib/location/api';\nexport { default as NoneLocation } from './lib/location/none_location';\nexport { default as HashLocation } from './lib/location/hash_location';\nexport { default as HistoryLocation } from './lib/location/history_location';\nexport { default as AutoLocation } from './lib/location/auto_location';\nexport { default as generateController, generateControllerFactory } from './lib/system/generate_controller';\nexport { default as controllerFor } from './lib/system/controller_for';\nexport { default as RouterDSL } from './lib/system/dsl';\nexport { default as Router } from './lib/system/router';\nexport { default as Route } from './lib/system/route';\nexport { default as QueryParams } from './lib/system/query_params';\nexport { default as RoutingService } from './lib/services/routing';\nexport { default as RouterService } from './lib/services/router';\nexport { default as BucketCache } from './lib/system/cache';","import { get } from '@ember/-internals/metal';\nimport ControllerMixin from '@ember/controller/lib/controller_mixin';\nimport { prefixRouteNameArg } from '../utils';\n/**\n@module ember\n*/\n\nControllerMixin.reopen({\n  concatenatedProperties: ['queryParams'],\n\n  /**\n    Defines which query parameters the controller accepts.\n    If you give the names `['category','page']` it will bind\n    the values of these query parameters to the variables\n    `this.category` and `this.page`.\n    By default, Ember coerces query parameter values using `toggleProperty`.\n    This behavior may lead to unexpected results.\n    Available queryParam types: `boolean`, `number`, `array`.\n    If query param type not specified, it will be `string`.\n    To explicitly configure a query parameter property so it coerces as expected, you must define a type property:\n       ```javascript\n      queryParams: [{\n        category: {\n          type: 'boolean'\n        }\n      }]\n    ```\n       @for Ember.ControllerMixin\n    @property queryParams\n    @public\n  */\n  queryParams: null,\n\n  /**\n   This property is updated to various different callback functions depending on\n   the current \"state\" of the backing route. It is used by\n   `Controller.prototype._qpChanged`.\n      The methods backing each state can be found in the `Route.prototype._qp` computed\n   property return value (the `.states` property). The current values are listed here for\n   the sanity of future travelers:\n      * `inactive` - This state is used when this controller instance is not part of the active\n     route hierarchy. Set in `Route.prototype._reset` (a `router.js` microlib hook) and\n     `Route.prototype.actions.finalizeQueryParamChange`.\n   * `active` - This state is used when this controller instance is part of the active\n     route hierarchy. Set in `Route.prototype.actions.finalizeQueryParamChange`.\n   * `allowOverrides` - This state is used in `Route.prototype.setup` (`route.js` microlib hook).\n       @method _qpDelegate\n    @private\n  */\n  _qpDelegate: null,\n\n  /**\n   During `Route#setup` observers are created to invoke this method\n   when any of the query params declared in `Controller#queryParams` property\n   are changed.\n      When invoked this method uses the currently active query param update delegate\n   (see `Controller.prototype._qpDelegate` for details) and invokes it with\n   the QP key/value being changed.\n       @method _qpChanged\n    @private\n  */\n  _qpChanged(controller, _prop) {\n    let dotIndex = _prop.indexOf('.[]');\n\n    let prop = dotIndex === -1 ? _prop : _prop.slice(0, dotIndex);\n    let delegate = controller._qpDelegate;\n    let value = get(controller, prop);\n    delegate(prop, value);\n  },\n\n  /**\n    Transition the application into another route. The route may\n    be either a single route or route path:\n       ```javascript\n    aController.transitionToRoute('blogPosts');\n    aController.transitionToRoute('blogPosts.recentEntries');\n    ```\n       Optionally supply a model for the route in question. The model\n    will be serialized into the URL using the `serialize` hook of\n    the route:\n       ```javascript\n    aController.transitionToRoute('blogPost', aPost);\n    ```\n       If a literal is passed (such as a number or a string), it will\n    be treated as an identifier instead. In this case, the `model`\n    hook of the route will be triggered:\n       ```javascript\n    aController.transitionToRoute('blogPost', 1);\n    ```\n       Multiple models will be applied last to first recursively up the\n    route tree.\n       ```app/router.js\n    Router.map(function() {\n      this.route('blogPost', { path: ':blogPostId' }, function() {\n        this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n      });\n    });\n    ```\n       ```javascript\n    aController.transitionToRoute('blogComment', aPost, aComment);\n    aController.transitionToRoute('blogComment', 1, 13);\n    ```\n       It is also possible to pass a URL (a string that starts with a\n    `/`).\n       ```javascript\n    aController.transitionToRoute('/');\n    aController.transitionToRoute('/blog/post/1/comment/13');\n    aController.transitionToRoute('/blog/posts?sort=title');\n    ```\n       An options hash with a `queryParams` property may be provided as\n    the final argument to add query parameters to the destination URL.\n       ```javascript\n    aController.transitionToRoute('blogPost', 1, {\n      queryParams: { showComments: 'true' }\n    });\n       // if you just want to transition the query parameters without changing the route\n    aController.transitionToRoute({ queryParams: { sort: 'date' } });\n    ```\n       See also [replaceRoute](/ember/release/classes/Ember.ControllerMixin/methods/replaceRoute?anchor=replaceRoute).\n       @param {String} name the name of the route or a URL\n    @param {...Object} models the model(s) or identifier(s) to be used\n      while transitioning to the route.\n    @param {Object} [options] optional hash with a queryParams property\n      containing a mapping of query parameters\n    @for Ember.ControllerMixin\n    @method transitionToRoute\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @public\n  */\n  transitionToRoute(...args) {\n    // target may be either another controller or a router\n    let target = get(this, 'target');\n    let method = target.transitionToRoute || target.transitionTo;\n    return method.apply(target, prefixRouteNameArg(this, args));\n  },\n\n  /**\n    Transition into another route while replacing the current URL, if possible.\n    This will replace the current history entry instead of adding a new one.\n    Beside that, it is identical to `transitionToRoute` in all other respects.\n       ```javascript\n    aController.replaceRoute('blogPosts');\n    aController.replaceRoute('blogPosts.recentEntries');\n    ```\n       Optionally supply a model for the route in question. The model\n    will be serialized into the URL using the `serialize` hook of\n    the route:\n       ```javascript\n    aController.replaceRoute('blogPost', aPost);\n    ```\n       If a literal is passed (such as a number or a string), it will\n    be treated as an identifier instead. In this case, the `model`\n    hook of the route will be triggered:\n       ```javascript\n    aController.replaceRoute('blogPost', 1);\n    ```\n       Multiple models will be applied last to first recursively up the\n    route tree.\n       ```app/router.js\n    Router.map(function() {\n      this.route('blogPost', { path: ':blogPostId' }, function() {\n        this.route('blogComment', { path: ':blogCommentId', resetNamespace: true });\n      });\n    });\n    ```\n       ```\n    aController.replaceRoute('blogComment', aPost, aComment);\n    aController.replaceRoute('blogComment', 1, 13);\n    ```\n       It is also possible to pass a URL (a string that starts with a\n    `/`).\n       ```javascript\n    aController.replaceRoute('/');\n    aController.replaceRoute('/blog/post/1/comment/13');\n    ```\n       @param {String} name the name of the route or a URL\n    @param {...Object} models the model(s) or identifier(s) to be used\n    while transitioning to the route.\n    @for Ember.ControllerMixin\n    @method replaceRoute\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @public\n  */\n  replaceRoute(...args) {\n    // target may be either another controller or a router\n    let target = get(this, 'target');\n    let method = target.replaceRoute || target.replaceWith;\n    return method.apply(target, prefixRouteNameArg(this, args));\n  }\n\n});\nexport default ControllerMixin;","import { assert } from '@ember/debug';\n/**\n@module @ember/routing\n*/\n\n/**\n  Location returns an instance of the correct implementation of\n  the `location` API.\n\n  ## Implementations\n\n  You can pass an implementation name (`hash`, `history`, `none`, `auto`) to force a\n  particular implementation to be used in your application.\n\n  See [HashLocation](/ember/release/classes/HashLocation).\n  See [HistoryLocation](/ember/release/classes/HistoryLocation).\n  See [NoneLocation](/ember/release/classes/NoneLocation).\n  See [AutoLocation](/ember/release/classes/AutoLocation).\n\n  ## Location API\n\n  Each location implementation must provide the following methods:\n\n  * implementation: returns the string name used to reference the implementation.\n  * getURL: returns the current URL.\n  * setURL(path): sets the current URL.\n  * replaceURL(path): replace the current URL (optional).\n  * onUpdateURL(callback): triggers the callback when the URL changes.\n  * formatURL(url): formats `url` to be placed into `href` attribute.\n  * detect() (optional): instructs the location to do any feature detection\n      necessary. If the location needs to redirect to a different URL, it\n      can cancel routing by setting the `cancelRouterSetup` property on itself\n      to `false`.\n\n  Calling setURL or replaceURL will not trigger onUpdateURL callbacks.\n\n  ## Custom implementation\n\n  Ember scans `app/locations/*` for extending the Location API.\n\n  Example:\n\n  ```javascript\n  import HistoryLocation from '@ember/routing/history-location';\n\n  export default class MyHistory {\n    implementation: 'my-custom-history',\n    constructor() {\n      this._history = HistoryLocation.create(...arguments);\n    }\n    create() {\n      return new this(...arguments);\n    }\n    pushState(path) {\n       this._history.pushState(path);\n    }\n  }\n  ```\n\n  @class Location\n  @private\n*/\n\nexport default {\n  /**\n   This is deprecated in favor of using the container to lookup the location\n   implementation as desired.\n      For example:\n      ```javascript\n   // Given a location registered as follows:\n   container.register('location:history-test', HistoryTestLocation);\n      // You could create a new instance via:\n   container.lookup('location:history-test');\n   ```\n       @method create\n    @param {Object} options\n    @return {Object} an instance of an implementation of the `location` API\n    @deprecated Use the container to lookup the location implementation that you\n    need.\n    @private\n  */\n  create(options) {\n    let implementation = options && options.implementation;\n    assert(\"Location.create: you must specify a 'implementation' option\", Boolean(implementation));\n    let implementationClass = this.implementations[implementation];\n    assert(`Location.create: ${implementation} is not a valid implementation`, Boolean(implementationClass));\n    return implementationClass.create(...arguments);\n  },\n\n  implementations: {}\n};","import { history, location, userAgent, window } from '@ember/-internals/browser-environment';\nimport { set } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { assert } from '@ember/debug';\nimport { getFullPath, getHash, getPath, getQuery, replacePath, supportsHashChange, supportsHistory } from './util';\n/**\n@module @ember/routing\n*/\n\n/**\n  AutoLocation will select the best location option based off browser\n  support with the priority order: history, hash, none.\n\n  Clean pushState paths accessed by hashchange-only browsers will be redirected\n  to the hash-equivalent and vice versa so future transitions are consistent.\n\n  Keep in mind that since some of your users will use `HistoryLocation`, your\n  server must serve the Ember app at all the routes you define.\n\n  Browsers that support the `history` API will use `HistoryLocation`, those that\n  do not, but still support the `hashchange` event will use `HashLocation`, and\n  in the rare case neither is supported will use `NoneLocation`.\n\n  Example:\n\n  ```app/router.js\n  Router.map(function() {\n    this.route('posts', function() {\n      this.route('new');\n    });\n  });\n\n  Router.reopen({\n    location: 'auto'\n  });\n  ```\n\n  This will result in a posts.new url of `/posts/new` for modern browsers that\n  support the `history` api or `/#/posts/new` for older ones, like Internet\n  Explorer 9 and below.\n\n  When a user visits a link to your application, they will be automatically\n  upgraded or downgraded to the appropriate `Location` class, with the URL\n  transformed accordingly, if needed.\n\n  Keep in mind that since some of your users will use `HistoryLocation`, your\n  server must serve the Ember app at all the routes you define.\n\n  @class AutoLocation\n  @static\n  @protected\n*/\n\nexport default class AutoLocation extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this.implementation = 'auto';\n  }\n  /**\n   Called by the router to instruct the location to do any feature detection\n   necessary. In the case of AutoLocation, we detect whether to use history\n   or hash concrete implementations.\n      @private\n  */\n\n\n  detect() {\n    let rootURL = this.rootURL;\n    assert('rootURL must end with a trailing forward slash e.g. \"/app/\"', rootURL.charAt(rootURL.length - 1) === '/');\n    let implementation = detectImplementation({\n      location: this.location,\n      history: this.history,\n      userAgent: this.userAgent,\n      rootURL,\n      documentMode: this.documentMode,\n      global: this.global\n    });\n\n    if (implementation === false) {\n      set(this, 'cancelRouterSetup', true);\n      implementation = 'none';\n    }\n\n    let concrete = getOwner(this).lookup(`location:${implementation}`);\n    assert(`Could not find location '${implementation}'.`, concrete !== undefined);\n    set(concrete, 'rootURL', rootURL);\n    set(this, 'concreteImplementation', concrete);\n  }\n\n  willDestroy() {\n    let {\n      concreteImplementation\n    } = this;\n\n    if (concreteImplementation) {\n      concreteImplementation.destroy();\n    }\n  }\n\n}\nAutoLocation.reopen({\n  /**\n    @private\n       Will be pre-pended to path upon state change.\n       @since 1.5.1\n    @property rootURL\n    @default '/'\n  */\n  rootURL: '/',\n  initState: delegateToConcreteImplementation('initState'),\n  getURL: delegateToConcreteImplementation('getURL'),\n  setURL: delegateToConcreteImplementation('setURL'),\n  replaceURL: delegateToConcreteImplementation('replaceURL'),\n  onUpdateURL: delegateToConcreteImplementation('onUpdateURL'),\n  formatURL: delegateToConcreteImplementation('formatURL'),\n\n  /**\n    @private\n       The browser's `location` object. This is typically equivalent to\n    `window.location`, but may be overridden for testing.\n       @property location\n    @default environment.location\n  */\n  location: location,\n\n  /**\n    @private\n       The browser's `history` object. This is typically equivalent to\n    `window.history`, but may be overridden for testing.\n       @since 1.5.1\n    @property history\n    @default environment.history\n  */\n  history: history,\n\n  /**\n   @private\n      The user agent's global variable. In browsers, this will be `window`.\n      @since 1.11\n   @property global\n   @default window\n  */\n  global: window,\n\n  /**\n    @private\n       The browser's `userAgent`. This is typically equivalent to\n    `navigator.userAgent`, but may be overridden for testing.\n       @since 1.5.1\n    @property userAgent\n    @default environment.history\n  */\n  userAgent: userAgent,\n\n  /**\n    @private\n       This property is used by the router to know whether to cancel the routing\n    setup process, which is needed while we redirect the browser.\n       @since 1.5.1\n    @property cancelRouterSetup\n    @default false\n  */\n  cancelRouterSetup: false\n});\n\nfunction delegateToConcreteImplementation(methodName) {\n  return function (...args) {\n    var _a;\n\n    let {\n      concreteImplementation\n    } = this;\n    assert(\"AutoLocation's detect() method should be called before calling any other hooks.\", Boolean(concreteImplementation));\n    return (_a = concreteImplementation[methodName]) === null || _a === void 0 ? void 0 : _a.call(concreteImplementation, ...args);\n  };\n}\n\nfunction detectImplementation(options) {\n  let {\n    location,\n    userAgent,\n    history,\n    documentMode,\n    global,\n    rootURL\n  } = options;\n  let implementation = 'none';\n  let cancelRouterSetup = false;\n  let currentPath = getFullPath(location);\n\n  if (supportsHistory(userAgent, history)) {\n    let historyPath = getHistoryPath(rootURL, location); // If the browser supports history and we have a history path, we can use\n    // the history location with no redirects.\n\n    if (currentPath === historyPath) {\n      implementation = 'history';\n    } else if (currentPath.substr(0, 2) === '/#') {\n      history.replaceState({\n        path: historyPath\n      }, '', historyPath);\n      implementation = 'history';\n    } else {\n      cancelRouterSetup = true;\n      replacePath(location, historyPath);\n    }\n  } else if (supportsHashChange(documentMode, global)) {\n    let hashPath = getHashPath(rootURL, location); // Be sure we're using a hashed path, otherwise let's switch over it to so\n    // we start off clean and consistent. We'll count an index path with no\n    // hash as \"good enough\" as well.\n\n    if (currentPath === hashPath || currentPath === '/' && hashPath === '/#/') {\n      implementation = 'hash';\n    } else {\n      // Our URL isn't in the expected hash-supported format, so we want to\n      // cancel the router setup and replace the URL to start off clean\n      cancelRouterSetup = true;\n      replacePath(location, hashPath);\n    }\n  }\n\n  if (cancelRouterSetup) {\n    return false;\n  }\n\n  return implementation;\n}\n/**\n  @private\n\n  Returns the current path as it should appear for HistoryLocation supported\n  browsers. This may very well differ from the real current path (e.g. if it\n  starts off as a hashed URL)\n*/\n\n\nexport function getHistoryPath(rootURL, location) {\n  let path = getPath(location);\n  let hash = getHash(location);\n  let query = getQuery(location);\n  let rootURLIndex = path.indexOf(rootURL);\n  let routeHash, hashParts;\n  assert(`Path ${path} does not start with the provided rootURL ${rootURL}`, rootURLIndex === 0); // By convention, Ember.js routes using HashLocation are required to start\n  // with `#/`. Anything else should NOT be considered a route and should\n  // be passed straight through, without transformation.\n\n  if (hash.substr(0, 2) === '#/') {\n    // There could be extra hash segments after the route\n    hashParts = hash.substr(1).split('#'); // The first one is always the route url\n\n    routeHash = hashParts.shift(); // If the path already has a trailing slash, remove the one\n    // from the hashed route so we don't double up.\n\n    if (path.charAt(path.length - 1) === '/') {\n      routeHash = routeHash.substr(1);\n    } // This is the \"expected\" final order\n\n\n    path += routeHash + query;\n\n    if (hashParts.length) {\n      path += `#${hashParts.join('#')}`;\n    }\n  } else {\n    path += query + hash;\n  }\n\n  return path;\n}\n/**\n  @private\n\n  Returns the current path as it should appear for HashLocation supported\n  browsers. This may very well differ from the real current path.\n\n  @method _getHashPath\n*/\n\nexport function getHashPath(rootURL, location) {\n  let path = rootURL;\n  let historyPath = getHistoryPath(rootURL, location);\n  let routePath = historyPath.substr(rootURL.length);\n\n  if (routePath !== '') {\n    if (routePath[0] !== '/') {\n      routePath = `/${routePath}`;\n    }\n\n    path += `#${routePath}`;\n  }\n\n  return path;\n}","import { set } from '@ember/-internals/metal';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { bind } from '@ember/runloop';\nimport { getHash } from './util';\n/**\n@module @ember/routing\n*/\n\n/**\n  `HashLocation` implements the location API using the browser's\n  hash. At present, it relies on a `hashchange` event existing in the\n  browser.\n\n  Using `HashLocation` results in URLs with a `#` (hash sign) separating the\n  server side URL portion of the URL from the portion that is used by Ember.\n\n  Example:\n\n  ```app/router.js\n  Router.map(function() {\n    this.route('posts', function() {\n      this.route('new');\n    });\n  });\n\n  Router.reopen({\n    location: 'hash'\n  });\n  ```\n\n  This will result in a posts.new url of `/#/posts/new`.\n\n  @class HashLocation\n  @extends EmberObject\n  @protected\n*/\n\nexport default class HashLocation extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this.implementation = 'hash';\n  }\n\n  init() {\n    set(this, 'location', this._location || window.location);\n    this._hashchangeHandler = undefined;\n  }\n  /**\n    @private\n       Returns normalized location.hash\n       @since 1.5.1\n    @method getHash\n  */\n\n\n  getHash() {\n    return getHash(this.location);\n  }\n  /**\n    Returns the normalized URL, constructed from `location.hash`.\n       e.g. `#/foo` => `/foo` as well as `#/foo#bar` => `/foo#bar`.\n       By convention, hashed paths must begin with a forward slash, otherwise they\n    are not treated as a path so we can distinguish intent.\n       @private\n    @method getURL\n  */\n\n\n  getURL() {\n    let originalPath = this.getHash().substr(1);\n    let outPath = originalPath;\n\n    if (outPath[0] !== '/') {\n      outPath = '/'; // Only add the # if the path isn't empty.\n      // We do NOT want `/#` since the ampersand\n      // is only included (conventionally) when\n      // the location.hash has a value\n\n      if (originalPath) {\n        outPath += `#${originalPath}`;\n      }\n    }\n\n    return outPath;\n  }\n  /**\n    Set the `location.hash` and remembers what was set. This prevents\n    `onUpdateURL` callbacks from triggering when the hash was set by\n    `HashLocation`.\n       @private\n    @method setURL\n    @param path {String}\n  */\n\n\n  setURL(path) {\n    this.location.hash = path;\n    set(this, 'lastSetURL', path);\n  }\n  /**\n    Uses location.replace to update the url without a page reload\n    or history modification.\n       @private\n    @method replaceURL\n    @param path {String}\n  */\n\n\n  replaceURL(path) {\n    this.location.replace(`#${path}`);\n    set(this, 'lastSetURL', path);\n  }\n  /**\n    Register a callback to be invoked when the hash changes. These\n    callbacks will execute when the user presses the back or forward\n    button, but not after `setURL` is invoked.\n       @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n\n\n  onUpdateURL(callback) {\n    this._removeEventListener();\n\n    this._hashchangeHandler = bind(this, function () {\n      let path = this.getURL();\n\n      if (this.lastSetURL === path) {\n        return;\n      }\n\n      set(this, 'lastSetURL', null);\n      callback(path);\n    });\n    window.addEventListener('hashchange', this._hashchangeHandler);\n  }\n  /**\n    Given a URL, formats it to be placed into the page as part\n    of an element's `href` attribute.\n       This is used, for example, when using the {{action}} helper\n    to generate a URL based on an event.\n       @private\n    @method formatURL\n    @param url {String}\n  */\n\n\n  formatURL(url) {\n    return `#${url}`;\n  }\n  /**\n    Cleans up the HashLocation event listener.\n       @private\n    @method willDestroy\n  */\n\n\n  willDestroy() {\n    this._removeEventListener();\n  }\n\n  _removeEventListener() {\n    if (this._hashchangeHandler) {\n      window.removeEventListener('hashchange', this._hashchangeHandler);\n    }\n  }\n\n}","import { set } from '@ember/-internals/metal';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { getHash } from './util';\n/**\n@module @ember/routing\n*/\n\nlet popstateFired = false;\n\nfunction _uuid() {\n  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n    let r, v;\n    r = Math.random() * 16 | 0;\n    v = c === 'x' ? r : r & 3 | 8;\n    return v.toString(16);\n  });\n}\n/**\n  HistoryLocation implements the location API using the browser's\n  history.pushState API.\n\n  Using `HistoryLocation` results in URLs that are indistinguishable from a\n  standard URL. This relies upon the browser's `history` API.\n\n  Example:\n\n  ```app/router.js\n  Router.map(function() {\n    this.route('posts', function() {\n      this.route('new');\n    });\n  });\n\n  Router.reopen({\n    location: 'history'\n  });\n  ```\n\n  This will result in a posts.new url of `/posts/new`.\n\n  Keep in mind that your server must serve the Ember app at all the routes you\n  define.\n\n  Using `HistoryLocation` will also result in location states being recorded by\n  the browser `history` API with the following schema:\n\n  ```\n  window.history.state -> { path: '/', uuid: '3552e730-b4a6-46bd-b8bf-d8c3c1a97e0a' }\n  ```\n\n  This allows each in-app location state to be tracked uniquely across history\n  state changes via the `uuid` field.\n\n  @class HistoryLocation\n  @extends EmberObject\n  @protected\n*/\n\n\nexport default class HistoryLocation extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this.implementation = 'history';\n    /**\n      Will be pre-pended to path upon state change\n             @property rootURL\n      @default '/'\n      @private\n    */\n\n    this.rootURL = '/';\n  }\n  /**\n    @private\n       Returns normalized location.hash\n       @method getHash\n  */\n\n\n  getHash() {\n    return getHash(this.location);\n  }\n\n  init() {\n    this._super(...arguments);\n\n    let base = document.querySelector('base');\n    let baseURL = '';\n\n    if (base !== null && base.hasAttribute('href')) {\n      baseURL = base.getAttribute('href');\n    }\n\n    set(this, 'baseURL', baseURL);\n    set(this, 'location', this.location || window.location);\n    this._popstateHandler = undefined;\n  }\n  /**\n    Used to set state on first call to setURL\n       @private\n    @method initState\n  */\n\n\n  initState() {\n    let history = this.history || window.history;\n    set(this, 'history', history);\n    let {\n      state\n    } = history;\n    let path = this.formatURL(this.getURL());\n\n    if (state && state.path === path) {\n      // preserve existing state\n      // used for webkit workaround, since there will be no initial popstate event\n      this._previousURL = this.getURL();\n    } else {\n      this.replaceState(path);\n    }\n  }\n  /**\n    Returns the current `location.pathname` without `rootURL` or `baseURL`\n       @private\n    @method getURL\n    @return url {String}\n  */\n\n\n  getURL() {\n    let {\n      location,\n      rootURL,\n      baseURL\n    } = this;\n    let path = location.pathname; // remove trailing slashes if they exists\n\n    rootURL = rootURL.replace(/\\/$/, '');\n    baseURL = baseURL.replace(/\\/$/, ''); // remove baseURL and rootURL from start of path\n\n    let url = path.replace(new RegExp(`^${baseURL}(?=/|$)`), '').replace(new RegExp(`^${rootURL}(?=/|$)`), '').replace(/\\/\\//g, '/'); // remove extra slashes\n\n    let search = location.search || '';\n    url += search + this.getHash();\n    return url;\n  }\n  /**\n    Uses `history.pushState` to update the url without a page reload.\n       @private\n    @method setURL\n    @param path {String}\n  */\n\n\n  setURL(path) {\n    let {\n      state\n    } = this.history;\n    path = this.formatURL(path);\n\n    if (!state || state.path !== path) {\n      this.pushState(path);\n    }\n  }\n  /**\n    Uses `history.replaceState` to update the url without a page reload\n    or history modification.\n       @private\n    @method replaceURL\n    @param path {String}\n  */\n\n\n  replaceURL(path) {\n    let {\n      state\n    } = this.history;\n    path = this.formatURL(path);\n\n    if (!state || state.path !== path) {\n      this.replaceState(path);\n    }\n  }\n  /**\n   Pushes a new state.\n      @private\n   @method pushState\n   @param path {String}\n  */\n\n\n  pushState(path) {\n    let state = {\n      path,\n      uuid: _uuid()\n    };\n    this.history.pushState(state, null, path); // used for webkit workaround\n\n    this._previousURL = this.getURL();\n  }\n  /**\n   Replaces the current state.\n      @private\n   @method replaceState\n   @param path {String}\n  */\n\n\n  replaceState(path) {\n    let state = {\n      path,\n      uuid: _uuid()\n    };\n    this.history.replaceState(state, null, path); // used for webkit workaround\n\n    this._previousURL = this.getURL();\n  }\n  /**\n    Register a callback to be invoked whenever the browser\n    history changes, including using forward and back buttons.\n       @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n\n\n  onUpdateURL(callback) {\n    this._removeEventListener();\n\n    this._popstateHandler = () => {\n      // Ignore initial page load popstate event in Chrome\n      if (!popstateFired) {\n        popstateFired = true;\n\n        if (this.getURL() === this._previousURL) {\n          return;\n        }\n      }\n\n      callback(this.getURL());\n    };\n\n    window.addEventListener('popstate', this._popstateHandler);\n  }\n  /**\n    Used when using `{{action}}` helper.  The url is always appended to the rootURL.\n       @private\n    @method formatURL\n    @param url {String}\n    @return formatted url {String}\n  */\n\n\n  formatURL(url) {\n    let {\n      rootURL,\n      baseURL\n    } = this;\n\n    if (url !== '') {\n      // remove trailing slashes if they exists\n      rootURL = rootURL.replace(/\\/$/, '');\n      baseURL = baseURL.replace(/\\/$/, '');\n    } else if (baseURL[0] === '/' && rootURL[0] === '/') {\n      // if baseURL and rootURL both start with a slash\n      // ... remove trailing slash from baseURL if it exists\n      baseURL = baseURL.replace(/\\/$/, '');\n    }\n\n    return baseURL + rootURL + url;\n  }\n  /**\n    Cleans up the HistoryLocation event listener.\n       @private\n    @method willDestroy\n  */\n\n\n  willDestroy() {\n    this._removeEventListener();\n  }\n\n  _removeEventListener() {\n    if (this._popstateHandler) {\n      window.removeEventListener('popstate', this._popstateHandler);\n    }\n  }\n\n}","import { set } from '@ember/-internals/metal';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { assert } from '@ember/debug';\n/**\n@module @ember/routing\n*/\n\n/**\n  NoneLocation does not interact with the browser. It is useful for\n  testing, or when you need to manage state with your Router, but temporarily\n  don't want it to muck with the URL (for example when you embed your\n  application in a larger page).\n\n  Using `NoneLocation` causes Ember to not store the applications URL state\n  in the actual URL. This is generally used for testing purposes, and is one\n  of the changes made when calling `App.setupForTesting()`.\n\n  @class NoneLocation\n  @extends EmberObject\n  @protected\n*/\n\nexport default class NoneLocation extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this.implementation = 'none';\n  }\n\n  detect() {\n    let {\n      rootURL\n    } = this;\n    assert('rootURL must end with a trailing forward slash e.g. \"/app/\"', rootURL.charAt(rootURL.length - 1) === '/');\n  }\n  /**\n    Returns the current path without `rootURL`.\n       @private\n    @method getURL\n    @return {String} path\n  */\n\n\n  getURL() {\n    let {\n      path,\n      rootURL\n    } = this; // remove trailing slashes if they exists\n\n    rootURL = rootURL.replace(/\\/$/, ''); // remove rootURL from url\n\n    return path.replace(new RegExp(`^${rootURL}(?=/|$)`), '');\n  }\n  /**\n    Set the path and remembers what was set. Using this method\n    to change the path will not invoke the `updateURL` callback.\n       @private\n    @method setURL\n    @param path {String}\n  */\n\n\n  setURL(path) {\n    set(this, 'path', path);\n  }\n  /**\n    Register a callback to be invoked when the path changes. These\n    callbacks will execute when the user presses the back or forward\n    button, but not after `setURL` is invoked.\n       @private\n    @method onUpdateURL\n    @param callback {Function}\n  */\n\n\n  onUpdateURL(callback) {\n    this.updateCallback = callback;\n  }\n  /**\n    Sets the path and calls the `updateURL` callback.\n       @private\n    @method handleURL\n    @param url {String}\n  */\n\n\n  handleURL(url) {\n    set(this, 'path', url);\n    this.updateCallback(url);\n  }\n  /**\n    Given a URL, formats it to be placed into the page as part\n    of an element's `href` attribute.\n       This is used, for example, when using the {{action}} helper\n    to generate a URL based on an event.\n       @private\n    @method formatURL\n    @param url {String}\n    @return {String} url\n  */\n\n\n  formatURL(url) {\n    let {\n      rootURL\n    } = this;\n\n    if (url !== '') {\n      // remove trailing slashes if they exists\n      rootURL = rootURL.replace(/\\/$/, '');\n    }\n\n    return rootURL + url;\n  }\n\n}\nNoneLocation.reopen({\n  path: '',\n\n  /**\n    Will be pre-pended to path.\n       @private\n    @property rootURL\n    @default '/'\n  */\n  rootURL: '/'\n});","/**\n  @private\n\n  Returns the current `location.pathname`, normalized for IE inconsistencies.\n*/\nexport function getPath(location) {\n  let pathname = location.pathname; // Various versions of IE/Opera don't always return a leading slash\n\n  if (pathname[0] !== '/') {\n    pathname = `/${pathname}`;\n  }\n\n  return pathname;\n}\n/**\n  @private\n\n  Returns the current `location.search`.\n*/\n\nexport function getQuery(location) {\n  return location.search;\n}\n/**\n  @private\n\n  Returns the hash or empty string\n*/\n\nexport function getHash(location) {\n  if (location.hash !== undefined) {\n    return location.hash.substr(0);\n  }\n\n  return '';\n}\nexport function getFullPath(location) {\n  return getPath(location) + getQuery(location) + getHash(location);\n}\nexport function getOrigin(location) {\n  let origin = location.origin; // Older browsers, especially IE, don't have origin\n\n  if (!origin) {\n    origin = `${location.protocol}//${location.hostname}`;\n\n    if (location.port) {\n      origin += `:${location.port}`;\n    }\n  }\n\n  return origin;\n}\n/*\n  `documentMode` only exist in Internet Explorer, and it's tested because IE8 running in\n  IE7 compatibility mode claims to support `onhashchange` but actually does not.\n\n  `global` is an object that may have an `onhashchange` property.\n\n  @private\n  @function supportsHashChange\n*/\n\nexport function supportsHashChange(documentMode, global) {\n  return global && 'onhashchange' in global && (documentMode === undefined || documentMode > 7);\n}\n/*\n  `userAgent` is a user agent string. We use user agent testing here, because\n  the stock Android browser is known to have buggy versions of the History API,\n  in some Android versions.\n\n  @private\n  @function supportsHistory\n*/\n\nexport function supportsHistory(userAgent, history) {\n  // Boosted from Modernizr: https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js\n  // The stock browser on Android 2.2 & 2.3, and 4.0.x returns positive on history support\n  // Unfortunately support is really buggy and there is no clean way to detect\n  // these bugs, so we fall back to a user agent sniff :(\n  // We only want Android 2 and 4.0, stock browser, and not Chrome which identifies\n  // itself as 'Mobile Safari' as well, nor Windows Phone.\n  if ((userAgent.indexOf('Android 2.') !== -1 || userAgent.indexOf('Android 4.0') !== -1) && userAgent.indexOf('Mobile Safari') !== -1 && userAgent.indexOf('Chrome') === -1 && userAgent.indexOf('Windows Phone') === -1) {\n    return false;\n  }\n\n  return Boolean(history && 'pushState' in history);\n}\n/**\n  Replaces the current location, making sure we explicitly include the origin\n  to prevent redirecting to a different origin.\n\n  @private\n*/\n\nexport function replacePath(location, path) {\n  location.replace(getOrigin(location) + path);\n}","import { getOwner } from '@ember/-internals/owner';\nimport { Evented } from '@ember/-internals/runtime';\nimport { symbol } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { readOnly } from '@ember/object/computed';\nimport { assign } from '@ember/polyfills';\nimport Service from '@ember/service';\nimport { DEBUG } from '@glimmer/env';\nimport { consumeTag, tagFor } from '@glimmer/validator';\nimport { extractRouteArgs, resemblesURL, shallowEqual } from '../utils';\nconst ROUTER = symbol('ROUTER');\nlet freezeRouteInfo;\n\nif (DEBUG) {\n  freezeRouteInfo = transition => {\n    if (transition.from !== null && !Object.isFrozen(transition.from)) {\n      Object.freeze(transition.from);\n    }\n\n    if (transition.to !== null && !Object.isFrozen(transition.to)) {\n      Object.freeze(transition.to);\n    }\n  };\n}\n\nfunction cleanURL(url, rootURL) {\n  if (rootURL === '/') {\n    return url;\n  }\n\n  return url.substr(rootURL.length, url.length);\n}\n/**\n   The Router service is the public API that provides access to the router.\n\n   The immediate benefit of the Router service is that you can inject it into components,\n   giving them a friendly way to initiate transitions and ask questions about the current\n   global router state.\n\n   In this example, the Router service is injected into a component to initiate a transition\n   to a dedicated route:\n\n   ```app/components/example.js\n   import Component from '@glimmer/component';\n   import { action } from '@ember/object';\n   import { inject as service } from '@ember/service';\n\n   export default class ExampleComponent extends Component {\n     @service router;\n\n     @action\n     next() {\n       this.router.transitionTo('other.route');\n     }\n   }\n   ```\n\n   Like any service, it can also be injected into helpers, routes, etc.\n\n   @public\n   @extends Service\n   @class RouterService\n */\n\n\nexport default class RouterService extends Service {\n  get _router() {\n    let router = this[ROUTER];\n\n    if (router !== undefined) {\n      return router;\n    }\n\n    const owner = getOwner(this);\n    router = owner.lookup('router:main');\n    router.setupRouter();\n    return this[ROUTER] = router;\n  }\n\n  constructor(owner) {\n    super(owner);\n    const router = owner.lookup('router:main');\n    router.on('routeWillChange', transition => {\n      if (DEBUG) {\n        freezeRouteInfo(transition);\n      }\n\n      this.trigger('routeWillChange', transition);\n    });\n    router.on('routeDidChange', transition => {\n      if (DEBUG) {\n        freezeRouteInfo(transition);\n      }\n\n      this.trigger('routeDidChange', transition);\n    });\n  }\n\n  willDestroy() {\n    super.willDestroy(...arguments);\n    this[ROUTER] = null;\n  }\n  /**\n     Transition the application into another route. The route may\n     be either a single route or route path:\n        See [transitionTo](/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.\n        Calling `transitionTo` from the Router service will cause default query parameter values to be included in the URL.\n     This behavior is different from calling `transitionTo` on a route or `transitionToRoute` on a controller.\n     See the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n        In the following example we use the Router service to navigate to a route with a\n     specific model from a Component in the first action, and in the second we trigger\n     a query-params only transition.\n        ```app/components/example.js\n     import Component from '@glimmer/component';\n     import { action } from '@ember/object';\n     import { inject as service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n          @action\n       goToComments(post) {\n         this.router.transitionTo('comments', post);\n       }\n          @action\n       fetchMoreComments(latestComment) {\n         this.router.transitionTo({\n           queryParams: { commentsAfter: latestComment }\n         });\n       }\n     }\n     ```\n        @method transitionTo\n     @param {String} [routeNameOrUrl] the name of the route or a URL\n     @param {...Object} [models] the model(s) or identifier(s) to be used while\n       transitioning to the route.\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters. May be supplied as the only\n      parameter to trigger a query-parameter-only transition.\n     @return {Transition} the transition object associated with this\n       attempted transition\n     @public\n   */\n\n\n  transitionTo(...args) {\n    if (resemblesURL(args[0])) {\n      // NOTE: this `args[0] as string` cast is safe and TS correctly infers it\n      // in 3.6+, so it can be removed when TS is upgraded.\n      return this._router._doURLTransition('transitionTo', args[0]);\n    }\n\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n\n    let transition = this._router._doTransition(routeName, models, queryParams, true);\n\n    transition['_keepDefaultQueryParamValues'] = true;\n    return transition;\n  }\n  /**\n     Similar to `transitionTo`, but instead of adding the destination to the browser's URL history,\n     it replaces the entry for the current route.\n     When the user clicks the \"back\" button in the browser, there will be fewer steps.\n     This is most commonly used to manage redirects in a way that does not cause confusing additions\n     to the user's browsing history.\n        See [replaceWith](/ember/release/classes/Route/methods/replaceWith?anchor=replaceWith) for more info.\n        Calling `replaceWith` from the Router service will cause default query parameter values to be included in the URL.\n     This behavior is different from calling `replaceWith` on a route.\n     See the [Router Service RFC](https://github.com/emberjs/rfcs/blob/master/text/0095-router-service.md#query-parameter-semantics) for more info.\n        Usage example:\n        ```app/routes/application.js\n     import Route from '@ember/routing/route';\n        export default class extends Route {\n       beforeModel() {\n         if (!authorized()){\n           this.replaceWith('unauthorized');\n         }\n       }\n     });\n     ```\n        @method replaceWith\n     @param {String} routeNameOrUrl the name of the route or a URL of the desired destination\n     @param {...Object} models the model(s) or identifier(s) to be used while\n       transitioning to the route i.e. an object of params to pass to the destination route\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters\n     @return {Transition} the transition object associated with this\n       attempted transition\n     @public\n   */\n\n\n  replaceWith()\n  /* routeNameOrUrl, ...models, options */\n  {\n    return this.transitionTo(...arguments).method('replace');\n  }\n  /**\n    Generate a URL based on the supplied route name and optionally a model. The\n    URL is returned as a string that can be used for any purpose.\n       In this example, the URL for the `author.books` route for a given author\n    is copied to the clipboard.\n       ```app/templates/application.hbs\n    <CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n    ```\n       ```app/components/copy-link.js\n    import Component from '@glimmer/component';\n    import { inject as service } from '@ember/service';\n    import { action } from '@ember/object';\n       export default class CopyLinkComponent extends Component {\n      @service router;\n      @service clipboard;\n         @action\n      copyBooksURL() {\n        if (this.author) {\n          const url = this.router.urlFor('author.books', this.args.author);\n          this.clipboard.set(url);\n          // Clipboard now has /author/tomster/books\n        }\n      }\n    }\n    ```\n       Just like with `transitionTo` and `replaceWith`, `urlFor` can also handle\n    query parameters.\n       ```app/templates/application.hbs\n    <CopyLink @author={{hash id=\"tomster\" name=\"Tomster\"}} />\n    ```\n       ```app/components/copy-link.js\n    import Component from '@glimmer/component';\n    import { inject as service } from '@ember/service';\n    import { action } from '@ember/object';\n       export default class CopyLinkComponent extends Component {\n      @service router;\n      @service clipboard;\n         @action\n      copyOnlyEmberBooksURL() {\n        if (this.author) {\n          const url = this.router.urlFor('author.books', this.author, {\n            queryParams: { filter: 'emberjs' }\n          });\n          this.clipboard.set(url);\n          // Clipboard now has /author/tomster/books?filter=emberjs\n        }\n      }\n    }\n    ```\n        @method urlFor\n     @param {String} routeName the name of the route\n     @param {...Object} models the model(s) or identifier(s) to be used while\n       transitioning to the route.\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters\n     @return {String} the string representing the generated URL\n     @public\n   */\n\n\n  urlFor(routeName, ...args) {\n    return this._router.generate(routeName, ...args);\n  }\n  /**\n     Returns `true` if `routeName/models/queryParams` is the active route, where `models` and `queryParams` are optional.\n     See [model](api/ember/release/classes/Route/methods/model?anchor=model) and\n     [queryParams](/api/ember/3.7/classes/Route/properties/queryParams?anchor=queryParams) for more information about these arguments.\n        In the following example, `isActive` will return `true` if the current route is `/posts`.\n        ```app/components/posts.js\n     import Component from '@glimmer/component';\n     import { inject as service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n          displayComments() {\n         return this.router.isActive('posts');\n       }\n     });\n     ```\n        The next example includes a dynamic segment, and will return `true` if the current route is `/posts/1`,\n     assuming the post has an id of 1:\n        ```app/components/posts.js\n     import Component from '@glimmer/component';\n     import { inject as service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n          displayComments(post) {\n         return this.router.isActive('posts', post.id);\n       }\n     });\n     ```\n        Where `post.id` is the id of a specific post, which is represented in the route as /posts/[post.id].\n     If `post.id` is equal to 1, then isActive will return true if the current route is /posts/1, and false if the route is anything else.\n        @method isActive\n     @param {String} routeName the name of the route\n     @param {...Object} models the model(s) or identifier(s) to be used when determining the active route.\n     @param {Object} [options] optional hash with a queryParams property\n       containing a mapping of query parameters\n     @return {boolean} true if the provided routeName/models/queryParams are active\n     @public\n   */\n\n\n  isActive(...args) {\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n    let routerMicrolib = this._router._routerMicrolib; // When using isActive() in a getter, we want to entagle with the auto-tracking system\n    // for example,\n    // in\n    // get isBarActive() {\n    //   return isActive('foo.bar');\n    // }\n    //\n    // you'd expect isBarActive to be dirtied when the route changes.\n    //\n    // https://github.com/emberjs/ember.js/issues/19004\n\n    consumeTag(tagFor(this._router, 'currentURL')); // UNSAFE: casting `routeName as string` here encodes the existing\n    // assumption but may be wrong: `extractRouteArgs` correctly returns it as\n    // `string | undefined`. There may be bugs if `isActiveIntent` does\n    // not correctly account for `undefined` values for `routeName`. Spoilers:\n    // it *does not* account for this being `undefined`.\n\n    if (!routerMicrolib.isActiveIntent(routeName, models)) {\n      return false;\n    }\n\n    let hasQueryParams = Object.keys(queryParams).length > 0;\n\n    if (hasQueryParams) {\n      queryParams = assign({}, queryParams);\n\n      this._router._prepareQueryParams( // UNSAFE: casting `routeName as string` here encodes the existing\n      // assumption but may be wrong: `extractRouteArgs` correctly returns it\n      // as `string | undefined`. There may be bugs if `_prepareQueryParams`\n      // does not correctly account for `undefined` values for `routeName`.\n      //  Spoilers: under the hood this currently uses router.js APIs which\n      // *do not* account for this being `undefined`.\n      routeName, models, // UNSAFE: downstream consumers treat this as `QueryParam`, which the\n      // type system here *correctly* reports as incorrect, because it may be\n      // just an empty object.\n      queryParams, true\n      /* fromRouterService */\n      );\n\n      return shallowEqual(queryParams, routerMicrolib.state.queryParams);\n    }\n\n    return true;\n  }\n  /**\n     Takes a string URL and returns a `RouteInfo` for the leafmost route represented\n     by the URL. Returns `null` if the URL is not recognized. This method expects to\n     receive the actual URL as seen by the browser including the app's `rootURL`.\n        See [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n        In the following example `recognize` is used to verify if a path belongs to our\n     application before transitioning to it.\n        ```\n     import Component from '@ember/component';\n     import { inject as service } from '@ember/service';\n        export default class extends Component {\n       @service router;\n       path = '/';\n          click() {\n         if (this.router.recognize(this.path)) {\n           this.router.transitionTo(this.path);\n         }\n       }\n     }\n     ```\n         @method recognize\n      @param {String} url\n      @public\n    */\n\n\n  recognize(url) {\n    assert(`You must pass a url that begins with the application's rootURL \"${this.rootURL}\"`, url.indexOf(this.rootURL) === 0);\n    let internalURL = cleanURL(url, this.rootURL);\n    return this._router._routerMicrolib.recognize(internalURL);\n  }\n  /**\n    Takes a string URL and returns a promise that resolves to a\n    `RouteInfoWithAttributes` for the leafmost route represented by the URL.\n    The promise rejects if the URL is not recognized or an unhandled exception\n    is encountered. This method expects to receive the actual URL as seen by\n    the browser including the app's `rootURL`.\n         @method recognizeAndLoad\n      @param {String} url\n      @public\n   */\n\n\n  recognizeAndLoad(url) {\n    assert(`You must pass a url that begins with the application's rootURL \"${this.rootURL}\"`, url.indexOf(this.rootURL) === 0);\n    let internalURL = cleanURL(url, this.rootURL);\n    return this._router._routerMicrolib.recognizeAndLoad(internalURL);\n  }\n\n}\nRouterService.reopen(Evented, {\n  /**\n     Name of the current route.\n        This property represents the logical name of the route,\n     which is comma separated.\n     For the following router:\n        ```app/router.js\n     Router.map(function() {\n       this.route('about');\n       this.route('blog', function () {\n         this.route('post', { path: ':post_id' });\n       });\n     });\n     ```\n        It will return:\n        * `index` when you visit `/`\n     * `about` when you visit `/about`\n     * `blog.index` when you visit `/blog`\n     * `blog.post` when you visit `/blog/some-post-id`\n        @property currentRouteName\n     @type String\n     @public\n   */\n  currentRouteName: readOnly('_router.currentRouteName'),\n\n  /**\n     Current URL for the application.\n       This property represents the URL path for this route.\n    For the following router:\n        ```app/router.js\n     Router.map(function() {\n       this.route('about');\n       this.route('blog', function () {\n         this.route('post', { path: ':post_id' });\n       });\n     });\n     ```\n        It will return:\n        * `/` when you visit `/`\n     * `/about` when you visit `/about`\n     * `/blog` when you visit `/blog`\n     * `/blog/some-post-id` when you visit `/blog/some-post-id`\n        @property currentURL\n     @type String\n     @public\n   */\n  currentURL: readOnly('_router.currentURL'),\n\n  /**\n    The `location` property returns what implementation of the `location` API\n    your application is using, which determines what type of URL is being used.\n       See [Location](/ember/release/classes/Location) for more information.\n       To force a particular `location` API implementation to be used in your\n    application you can set a location type on your `config/environment`.\n    For example, to set the `history` type:\n       ```config/environment.js\n    'use strict';\n       module.exports = function(environment) {\n      let ENV = {\n        modulePrefix: 'router-service',\n        environment,\n        rootURL: '/',\n        locationType: 'history',\n        ...\n      }\n    }\n    ```\n       The following location types are available by default:\n    `auto`, `hash`, `history`, `none`.\n       See [HashLocation](/ember/release/classes/HashLocation).\n    See [HistoryLocation](/ember/release/classes/HistoryLocation).\n    See [NoneLocation](/ember/release/classes/NoneLocation).\n    See [AutoLocation](/ember/release/classes/AutoLocation).\n       @property location\n    @default 'hash'\n    @see {Location}\n    @public\n  */\n  location: readOnly('_router.location'),\n\n  /**\n    The `rootURL` property represents the URL of the root of\n    the application, '/' by default.\n    This prefix is assumed on all routes defined on this app.\n       If you change the `rootURL` in your environment configuration\n    like so:\n       ```config/environment.js\n    'use strict';\n       module.exports = function(environment) {\n      let ENV = {\n        modulePrefix: 'router-service',\n        environment,\n        rootURL: '/my-root',\n      …\n      }\n    ]\n    ```\n       This property will return `/my-root`.\n       @property rootURL\n    @default '/'\n    @public\n  */\n  rootURL: readOnly('_router.rootURL'),\n\n  /**\n    The `currentRoute` property contains metadata about the current leaf route.\n    It returns a `RouteInfo` object that has information like the route name,\n    params, query params and more.\n       See [RouteInfo](/ember/release/classes/RouteInfo) for more info.\n       This property is guaranteed to change whenever a route transition\n    happens (even when that transition only changes parameters\n    and doesn't change the active route).\n       Usage example:\n    ```app/components/header.js\n      import Component from '@glimmer/component';\n      import { inject as service } from '@ember/service';\n      import { notEmpty } from '@ember/object/computed';\n         export default class extends Component {\n        @service router;\n           @notEmpty('router.currentRoute.child') isChildRoute;\n      });\n    ```\n        @property currentRoute\n     @type RouteInfo\n     @public\n   */\n  currentRoute: readOnly('_router.currentRoute')\n});","/**\n@module ember\n*/\nimport { getOwner } from '@ember/-internals/owner';\nimport { symbol } from '@ember/-internals/utils';\nimport { readOnly } from '@ember/object/computed';\nimport { assign } from '@ember/polyfills';\nimport Service from '@ember/service';\nconst ROUTER = symbol('ROUTER');\n/**\n  The Routing service is used by LinkComponent, and provides facilities for\n  the component/view layer to interact with the router.\n\n  This is a private service for internal usage only. For public usage,\n  refer to the `Router` service.\n\n  @private\n  @class RoutingService\n*/\n\nexport default class RoutingService extends Service {\n  get router() {\n    let router = this[ROUTER];\n\n    if (router !== undefined) {\n      return router;\n    }\n\n    const owner = getOwner(this);\n    router = owner.lookup('router:main');\n    router.setupRouter();\n    return this[ROUTER] = router;\n  }\n\n  hasRoute(routeName) {\n    return this.router.hasRoute(routeName);\n  }\n\n  transitionTo(routeName, models, queryParams, shouldReplace) {\n    let transition = this.router._doTransition(routeName, models, queryParams);\n\n    if (shouldReplace) {\n      transition.method('replace');\n    }\n\n    return transition;\n  }\n\n  normalizeQueryParams(routeName, models, queryParams) {\n    this.router._prepareQueryParams(routeName, models, queryParams);\n  }\n\n  _generateURL(routeName, models, queryParams) {\n    let visibleQueryParams = {};\n\n    if (queryParams) {\n      assign(visibleQueryParams, queryParams);\n      this.normalizeQueryParams(routeName, models, visibleQueryParams);\n    }\n\n    return this.router.generate(routeName, ...models, {\n      queryParams: visibleQueryParams\n    });\n  }\n\n  generateURL(routeName, models, queryParams) {\n    if (this.router._initialTransitionStarted) {\n      return this._generateURL(routeName, models, queryParams);\n    } else {\n      // Swallow error when transition has not started.\n      // When rendering in tests without visit(), we cannot infer the route context which <LinkTo/> needs be aware of\n      try {\n        return this._generateURL(routeName, models, queryParams);\n      } catch (_e) {\n        return;\n      }\n    }\n  }\n\n  isActiveForRoute(contexts, queryParams, routeName, routerState) {\n    let handlers = this.router._routerMicrolib.recognizer.handlersFor(routeName);\n\n    let leafName = handlers[handlers.length - 1].handler;\n    let maximumContexts = numberOfContextsAcceptedByHandler(routeName, handlers); // NOTE: any ugliness in the calculation of activeness is largely\n    // due to the fact that we support automatic normalizing of\n    // `resource` -> `resource.index`, even though there might be\n    // dynamic segments / query params defined on `resource.index`\n    // which complicates (and makes somewhat ambiguous) the calculation\n    // of activeness for links that link to `resource` instead of\n    // directly to `resource.index`.\n    // if we don't have enough contexts revert back to full route name\n    // this is because the leaf route will use one of the contexts\n\n    if (contexts.length > maximumContexts) {\n      routeName = leafName;\n    }\n\n    return routerState.isActiveIntent(routeName, contexts, queryParams);\n  }\n\n}\nRoutingService.reopen({\n  targetState: readOnly('router.targetState'),\n  currentState: readOnly('router.currentState'),\n  currentRouteName: readOnly('router.currentRouteName'),\n  currentPath: readOnly('router.currentPath')\n});\n\nfunction numberOfContextsAcceptedByHandler(handlerName, handlerInfos) {\n  let req = 0;\n\n  for (let i = 0; i < handlerInfos.length; i++) {\n    req += handlerInfos[i].names.length;\n\n    if (handlerInfos[i].handler === handlerName) {\n      break;\n    }\n  }\n\n  return req;\n}","/**\n  A two-tiered cache with support for fallback values when doing lookups.\n  Uses \"buckets\" and then \"keys\" to cache values.\n\n  @private\n  @class BucketCache\n*/\nexport default class BucketCache {\n  constructor() {\n    this.cache = new Map();\n  }\n\n  has(bucketKey) {\n    return this.cache.has(bucketKey);\n  }\n\n  stash(bucketKey, key, value) {\n    let bucket = this.cache.get(bucketKey);\n\n    if (bucket === undefined) {\n      bucket = new Map();\n      this.cache.set(bucketKey, bucket);\n    }\n\n    bucket.set(key, value);\n  }\n\n  lookup(bucketKey, prop, defaultValue) {\n    if (!this.has(bucketKey)) {\n      return defaultValue;\n    }\n\n    let bucket = this.cache.get(bucketKey);\n\n    if (bucket.has(prop)) {\n      return bucket.get(prop);\n    } else {\n      return defaultValue;\n    }\n  }\n\n}","/**\n@module ember\n*/\n\n/**\n  Finds a controller instance.\n\n  @for Ember\n  @method controllerFor\n  @private\n*/\nexport default function controllerFor(container, controllerName, lookupOptions) {\n  return container.lookup(`controller:${controllerName}`, lookupOptions);\n}","import { assert } from '@ember/debug';\nimport { assign } from '@ember/polyfills';\nlet uuid = 0;\n\nfunction isCallback(value) {\n  return typeof value === 'function';\n}\n\nfunction isOptions(value) {\n  return value !== null && typeof value === 'object';\n}\n\nexport default class DSLImpl {\n  constructor(name = null, options) {\n    this.explicitIndex = false;\n    this.parent = name;\n    this.enableLoadingSubstates = Boolean(options && options.enableLoadingSubstates);\n    this.matches = [];\n    this.options = options;\n  }\n\n  route(name, _options, _callback) {\n    let options;\n    let callback = null;\n    let dummyErrorRoute = `/_unused_dummy_error_path_route_${name}/:error`;\n\n    if (isCallback(_options)) {\n      assert('Unexpected arguments', arguments.length === 2);\n      options = {};\n      callback = _options;\n    } else if (isCallback(_callback)) {\n      assert('Unexpected arguments', arguments.length === 3);\n      assert('Unexpected arguments', isOptions(_options));\n      options = _options;\n      callback = _callback;\n    } else {\n      options = _options || {};\n    }\n\n    assert(`'${name}' cannot be used as a route name.`, (() => {\n      if (options.overrideNameAssertion === true) {\n        return true;\n      }\n\n      return ['basic', 'application'].indexOf(name) === -1;\n    })());\n    assert(`'${name}' is not a valid route name. It cannot contain a ':'. You may want to use the 'path' option instead.`, name.indexOf(':') === -1);\n\n    if (this.enableLoadingSubstates) {\n      createRoute(this, `${name}_loading`, {\n        resetNamespace: options.resetNamespace\n      });\n      createRoute(this, `${name}_error`, {\n        resetNamespace: options.resetNamespace,\n        path: dummyErrorRoute\n      });\n    }\n\n    if (callback) {\n      let fullName = getFullName(this, name, options.resetNamespace);\n      let dsl = new DSLImpl(fullName, this.options);\n      createRoute(dsl, 'loading');\n      createRoute(dsl, 'error', {\n        path: dummyErrorRoute\n      });\n      callback.call(dsl);\n      createRoute(this, name, options, dsl.generate());\n    } else {\n      createRoute(this, name, options);\n    }\n  }\n\n  push(url, name, callback, serialize) {\n    let parts = name.split('.');\n\n    if (this.options.engineInfo) {\n      let localFullName = name.slice(this.options.engineInfo.fullName.length + 1);\n      let routeInfo = assign({\n        localFullName\n      }, this.options.engineInfo);\n\n      if (serialize) {\n        routeInfo.serializeMethod = serialize;\n      }\n\n      this.options.addRouteForEngine(name, routeInfo);\n    } else if (serialize) {\n      throw new Error(`Defining a route serializer on route '${name}' outside an Engine is not allowed.`);\n    }\n\n    if (url === '' || url === '/' || parts[parts.length - 1] === 'index') {\n      this.explicitIndex = true;\n    }\n\n    this.matches.push(url, name, callback);\n  }\n\n  generate() {\n    let dslMatches = this.matches;\n\n    if (!this.explicitIndex) {\n      this.route('index', {\n        path: '/'\n      });\n    }\n\n    return match => {\n      for (let i = 0; i < dslMatches.length; i += 3) {\n        match(dslMatches[i]).to(dslMatches[i + 1], dslMatches[i + 2]);\n      }\n    };\n  }\n\n  mount(_name, options = {}) {\n    let engineRouteMap = this.options.resolveRouteMap(_name);\n    let name = _name;\n\n    if (options.as) {\n      name = options.as;\n    }\n\n    let fullName = getFullName(this, name, options.resetNamespace);\n    let engineInfo = {\n      name: _name,\n      instanceId: uuid++,\n      mountPoint: fullName,\n      fullName\n    };\n    let path = options.path;\n\n    if (typeof path !== 'string') {\n      path = `/${name}`;\n    }\n\n    let callback;\n    let dummyErrorRoute = `/_unused_dummy_error_path_route_${name}/:error`;\n\n    if (engineRouteMap) {\n      let shouldResetEngineInfo = false;\n      let oldEngineInfo = this.options.engineInfo;\n\n      if (oldEngineInfo) {\n        shouldResetEngineInfo = true;\n        this.options.engineInfo = engineInfo;\n      }\n\n      let optionsForChild = assign({\n        engineInfo\n      }, this.options);\n      let childDSL = new DSLImpl(fullName, optionsForChild);\n      createRoute(childDSL, 'loading');\n      createRoute(childDSL, 'error', {\n        path: dummyErrorRoute\n      });\n      engineRouteMap.class.call(childDSL);\n      callback = childDSL.generate();\n\n      if (shouldResetEngineInfo) {\n        this.options.engineInfo = oldEngineInfo;\n      }\n    }\n\n    let localFullName = 'application';\n    let routeInfo = assign({\n      localFullName\n    }, engineInfo);\n\n    if (this.enableLoadingSubstates) {\n      // These values are important to register the loading routes under their\n      // proper names for the Router and within the Engine's registry.\n      let substateName = `${name}_loading`;\n      let localFullName = `application_loading`;\n      let routeInfo = assign({\n        localFullName\n      }, engineInfo);\n      createRoute(this, substateName, {\n        resetNamespace: options.resetNamespace\n      });\n      this.options.addRouteForEngine(substateName, routeInfo);\n      substateName = `${name}_error`;\n      localFullName = `application_error`;\n      routeInfo = assign({\n        localFullName\n      }, engineInfo);\n      createRoute(this, substateName, {\n        resetNamespace: options.resetNamespace,\n        path: dummyErrorRoute\n      });\n      this.options.addRouteForEngine(substateName, routeInfo);\n    }\n\n    this.options.addRouteForEngine(fullName, routeInfo);\n    this.push(path, fullName, callback);\n  }\n\n}\n\nfunction canNest(dsl) {\n  return dsl.parent !== 'application';\n}\n\nfunction getFullName(dsl, name, resetNamespace) {\n  if (canNest(dsl) && resetNamespace !== true) {\n    return `${dsl.parent}.${name}`;\n  } else {\n    return name;\n  }\n}\n\nfunction createRoute(dsl, name, options = {}, callback) {\n  let fullName = getFullName(dsl, name, options.resetNamespace);\n\n  if (typeof options.path !== 'string') {\n    options.path = `/${name}`;\n  }\n\n  dsl.push(options.path, fullName, callback, options.serialize);\n}","export {};","import { get } from '@ember/-internals/metal';\nimport { info } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\n/**\n@module ember\n*/\n\n/**\n  Generates a controller factory\n\n  @for Ember\n  @method generateControllerFactory\n  @private\n*/\n\nexport function generateControllerFactory(owner, controllerName) {\n  let Factory = owner.factoryFor('controller:basic').class;\n  Factory = Factory.extend({\n    toString() {\n      return `(generated ${controllerName} controller)`;\n    }\n\n  });\n  let fullName = `controller:${controllerName}`;\n  owner.register(fullName, Factory);\n  return owner.factoryFor(fullName);\n}\n/**\n  Generates and instantiates a controller extending from `controller:basic`\n  if present, or `Controller` if not.\n\n  @for Ember\n  @method generateController\n  @private\n  @since 1.3.0\n*/\n\nexport default function generateController(owner, controllerName) {\n  generateControllerFactory(owner, controllerName);\n  let fullName = `controller:${controllerName}`;\n  let instance = owner.lookup(fullName);\n\n  if (DEBUG) {\n    if (get(instance, 'namespace.LOG_ACTIVE_GENERATION')) {\n      info(`generated -> ${fullName}`, {\n        fullName\n      });\n    }\n  }\n\n  return instance;\n}","export default class QueryParams {\n  constructor(values = null) {\n    this.isQueryParams = true;\n    this.values = values;\n  }\n\n}","\"use strict\";\n/**\n  A `RouteInfoWithAttributes` is an object that contains\n  metadata, including the resolved value from the routes\n  `model` hook. Like `RouteInfo`, a `RouteInfoWithAttributes`\n  represents a specific route within a Transition.\n  It is read-only and internally immutable. It is also not\n  observable, because a Transition instance is never\n  changed after creation.\n\n  @class RouteInfoWithAttributes\n  @public\n*/\n\n/**\n  The dot-separated, fully-qualified name of the\n  route, like \"people.index\".\n  @property {String} name\n  @public\n*/\n\n/**\n  The final segment of the fully-qualified name of\n  the route, like \"index\"\n  @property {String} localName\n  @public\n*/\n\n/**\n  The values of the route's parameters. These are the\n  same params that are received as arguments to the\n  route's model hook. Contains only the parameters\n  valid for this route, if any (params for parent or\n  child routes are not merged).\n  @property {Object} params\n  @public\n*/\n\n/**\n  The ordered list of the names of the params\n  required for this route. It will contain the same\n  strings as `Object.keys(params)`, but here the order\n  is significant. This allows users to correctly pass\n  params into routes programmatically.\n  @property {Array} paramNames\n  @public\n*/\n\n/**\n  The values of any queryParams on this route.\n  @property {Object} queryParams\n  @public\n*/\n\n/**\n  This is the resolved return value from the\n  route's model hook.\n  @property {Object|Array|String} attributes\n  @public\n*/\n\n/**\n  Will contain the result `Route#buildRouteInfoMetadata`\n  for the corresponding Route.\n  @property {Any} metadata\n  @public\n*/\n\n/**\n  A reference to the parent route's RouteInfo.\n  This can be used to traverse upward to the topmost\n  `RouteInfo`.\n  @property {RouteInfo|null} parent\n  @public\n*/\n\n/**\n  A reference to the child route's RouteInfo.\n  This can be used to traverse downward to the\n  leafmost `RouteInfo`.\n  @property {RouteInfo|null} child\n  @public\n*/\n\n/**\n  Allows you to traverse through the linked list\n  of `RouteInfo`s from the topmost to leafmost.\n  Returns the first `RouteInfo` in the linked list\n  for which the callback returns true.\n\n    This method is similar to the `find()` method\n    defined in ECMAScript 2015.\n\n    The callback method you provide should have the\n    following signature (all parameters are optional):\n\n    ```javascript\n    function(item, index, array);\n    ```\n\n    - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n\n    It should return the `true` to include the item in\n    the results, `false` otherwise.\n\n    Note that in addition to a callback, you can also\n    pass an optional target object that will be set as\n    `this` on the context.\n\n  @method find\n  @param {Function} callback the callback to execute\n  @param {Object} [target*] optional target to use\n  @returns {Object} Found item or undefined\n  @public\n*/\n\n/**\n  A RouteInfo is an object that contains metadata\n  about a specific route within a Transition. It is\n  read-only and internally immutable. It is also not\n  observable, because a Transition instance is never\n  changed after creation.\n\n  @class RouteInfo\n  @public\n*/\n\n/**\n  The dot-separated, fully-qualified name of the\n  route, like \"people.index\".\n  @property {String} name\n  @public\n*/\n\n/**\n  The final segment of the fully-qualified name of\n  the route, like \"index\"\n  @property {String} localName\n  @public\n*/\n\n/**\n  The values of the route's parameters. These are the\n  same params that are received as arguments to the\n  route's `model` hook. Contains only the parameters\n  valid for this route, if any (params for parent or\n  child routes are not merged).\n  @property {Object} params\n  @public\n*/\n\n/**\n  The ordered list of the names of the params\n  required for this route. It will contain the same\n  strings as Object.keys(params), but here the order\n  is significant. This allows users to correctly pass\n  params into routes programmatically.\n  @property {Array} paramNames\n  @public\n*/\n\n/**\n  The values of any queryParams on this route.\n  @property {Object} queryParams\n  @public\n*/\n\n/**\n  Will contain the result `Route#buildRouteInfoMetadata`\n  for the corresponding Route.\n  @property {Any} metadata\n  @public\n*/\n\n/**\n  A reference to the parent route's `RouteInfo`.\n  This can be used to traverse upward to the topmost\n  `RouteInfo`.\n  @property {RouteInfo|null} parent\n  @public\n*/\n\n/**\n  A reference to the child route's `RouteInfo`.\n  This can be used to traverse downward to the\n  leafmost `RouteInfo`.\n  @property {RouteInfo|null} child\n  @public\n*/\n\n/**\n  Allows you to traverse through the linked list\n  of `RouteInfo`s from the topmost to leafmost.\n  Returns the first `RouteInfo` in the linked list\n  for which the callback returns true.\n\n    This method is similar to the `find()` method\n    defined in ECMAScript 2015.\n\n    The callback method you provide should have the\n    following signature (all parameters are optional):\n\n    ```javascript\n    function(item, index, array);\n    ```\n\n    - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n\n    It should return the `true` to include the item in\n    the results, `false` otherwise.\n\n    Note that in addition to a callback, you can also\n    pass an optional target object that will be set as\n    `this` on the context.\n\n  @method find\n  @param {Function} callback the callback to execute\n  @param {Object} [target*] optional target to use\n  @returns {Object} Found item or undefined\n  @public\n*/","import { addObserver, computed, defineProperty, descriptorForProperty, flushAsyncObservers, get, getProperties, isEmpty, set, setProperties } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport { A as emberA, ActionHandler, Evented, Object as EmberObject, typeOf } from '@ember/-internals/runtime';\nimport { lookupDescriptor } from '@ember/-internals/utils';\nimport { assert, deprecate, info, isTesting } from '@ember/debug';\nimport { ROUTER_EVENTS } from '@ember/deprecated-features';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport { assign } from '@ember/polyfills';\nimport { once } from '@ember/runloop';\nimport { classify } from '@ember/string';\nimport { DEBUG } from '@glimmer/env';\nimport { PARAMS_SYMBOL, STATE_SYMBOL } from 'router_js';\nimport { calculateCacheKey, normalizeControllerQueryParams, prefixRouteNameArg, stashParamNames } from '../utils';\nimport generateController from './generate_controller';\nexport const ROUTE_CONNECTIONS = new WeakMap();\nexport function defaultSerialize(model, params) {\n  if (params.length < 1 || !model) {\n    return;\n  }\n\n  let object = {};\n\n  if (params.length === 1) {\n    let [name] = params;\n\n    if (name in model) {\n      object[name] = get(model, name);\n    } else if (/_id$/.test(name)) {\n      object[name] = get(model, 'id');\n    }\n  } else {\n    object = getProperties(model, params);\n  }\n\n  return object;\n}\nexport function hasDefaultSerialize(route) {\n  return route.serialize === defaultSerialize;\n}\n/**\n@module @ember/routing\n*/\n\n/**\n  The `Route` class is used to define individual routes. Refer to\n  the [routing guide](https://guides.emberjs.com/release/routing/) for documentation.\n\n  @class Route\n  @extends EmberObject\n  @uses ActionHandler\n  @uses Evented\n  @since 1.0.0\n  @public\n*/\n\nclass Route extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this.context = {};\n  }\n  /**\n    The name of the route, dot-delimited.\n       For example, a route found at `app/routes/posts/post.js` will have\n    a `routeName` of `posts.post`.\n       @property routeName\n    @for Route\n    @type String\n    @since 1.0.0\n    @public\n  */\n\n  /**\n    The name of the route, dot-delimited, including the engine prefix\n    if applicable.\n       For example, a route found at `addon/routes/posts/post.js` within an\n    engine named `admin` will have a `fullRouteName` of `admin.posts.post`.\n       @property fullRouteName\n    @for Route\n    @type String\n    @since 2.10.0\n    @public\n  */\n\n  /**\n    Sets the name for this route, including a fully resolved name for routes\n    inside engines.\n       @private\n    @method _setRouteName\n    @param {String} name\n  */\n\n\n  _setRouteName(name) {\n    this.routeName = name;\n    this.fullRouteName = getEngineRouteName(getOwner(this), name);\n  }\n  /**\n    @private\n       @method _stashNames\n  */\n\n\n  _stashNames(routeInfo, dynamicParent) {\n    if (this._names) {\n      return;\n    }\n\n    let names = this._names = routeInfo['_names'];\n\n    if (!names.length) {\n      routeInfo = dynamicParent;\n      names = routeInfo && routeInfo['_names'] || [];\n    }\n\n    let qps = get(this, '_qp.qps');\n    let namePaths = new Array(names.length);\n\n    for (let a = 0; a < names.length; ++a) {\n      namePaths[a] = `${routeInfo.name}.${names[a]}`;\n    }\n\n    for (let i = 0; i < qps.length; ++i) {\n      let qp = qps[i];\n\n      if (qp.scope === 'model') {\n        qp.parts = namePaths;\n      }\n    }\n  }\n  /**\n    @private\n       @property _activeQPChanged\n  */\n\n\n  _activeQPChanged(qp, value) {\n    this._router._activeQPChanged(qp.scopedPropertyName, value);\n  }\n  /**\n    @private\n    @method _updatingQPChanged\n  */\n\n\n  _updatingQPChanged(qp) {\n    this._router._updatingQPChanged(qp.urlKey);\n  }\n  /**\n    Returns a hash containing the parameters of an ancestor route.\n       You may notice that `this.paramsFor` sometimes works when referring to a\n    child route, but this behavior should not be relied upon as only ancestor\n    routes are certain to be loaded in time.\n       Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('member', { path: ':name' }, function() {\n        this.route('interest', { path: ':interest' });\n      });\n    });\n    ```\n       ```app/routes/member.js\n    import Route from '@ember/routing/route';\n       export default class MemberRoute extends Route {\n      queryParams = {\n        memberQp: { refreshModel: true }\n      }\n    }\n    ```\n       ```app/routes/member/interest.js\n    import Route from '@ember/routing/route';\n       export default class MemberInterestRoute extends Route {\n      queryParams = {\n        interestQp: { refreshModel: true }\n      }\n         model() {\n        return this.paramsFor('member');\n      }\n    }\n    ```\n       If we visit `/turing/maths?memberQp=member&interestQp=interest` the model for\n    the `member.interest` route is a hash with:\n       * `name`: `turing`\n    * `memberQp`: `member`\n       @method paramsFor\n    @param {String} name\n    @return {Object} hash containing the parameters of the route `name`\n    @since 1.4.0\n    @public\n  */\n\n\n  paramsFor(name) {\n    let route = getOwner(this).lookup(`route:${name}`);\n\n    if (route === undefined) {\n      return {};\n    }\n\n    let transition = this._router._routerMicrolib.activeTransition;\n    let state = transition ? transition[STATE_SYMBOL] : this._router._routerMicrolib.state;\n    let fullName = route.fullRouteName;\n    let params = assign({}, state.params[fullName]);\n    let queryParams = getQueryParamsFor(route, state);\n    return Object.keys(queryParams).reduce((params, key) => {\n      assert(`The route '${this.routeName}' has both a dynamic segment and query param with name '${key}'. Please rename one to avoid collisions.`, !params[key]);\n      params[key] = queryParams[key];\n      return params;\n    }, params);\n  }\n  /**\n    Serializes the query parameter key\n       @method serializeQueryParamKey\n    @param {String} controllerPropertyName\n    @private\n  */\n\n\n  serializeQueryParamKey(controllerPropertyName) {\n    return controllerPropertyName;\n  }\n  /**\n    Serializes value of the query parameter based on defaultValueType\n       @method serializeQueryParam\n    @param {Object} value\n    @param {String} urlKey\n    @param {String} defaultValueType\n    @private\n  */\n\n\n  serializeQueryParam(value, _urlKey, defaultValueType) {\n    // urlKey isn't used here, but anyone overriding\n    // can use it to provide serialization specific\n    // to a certain query param.\n    return this._router._serializeQueryParam(value, defaultValueType);\n  }\n  /**\n    Deserializes value of the query parameter based on defaultValueType\n       @method deserializeQueryParam\n    @param {Object} value\n    @param {String} urlKey\n    @param {String} defaultValueType\n    @private\n  */\n\n\n  deserializeQueryParam(value, _urlKey, defaultValueType) {\n    // urlKey isn't used here, but anyone overriding\n    // can use it to provide deserialization specific\n    // to a certain query param.\n    return this._router._deserializeQueryParam(value, defaultValueType);\n  }\n  /**\n    @private\n       @property _optionsForQueryParam\n  */\n\n\n  _optionsForQueryParam(qp) {\n    return get(this, `queryParams.${qp.urlKey}`) || get(this, `queryParams.${qp.prop}`) || {};\n  }\n  /**\n    A hook you can use to reset controller values either when the model\n    changes or the route is exiting.\n       ```app/routes/articles.js\n    import Route from '@ember/routing/route';\n       export default class ArticlesRoute extends Route {\n      resetController(controller, isExiting, transition) {\n        if (isExiting && transition.targetName !== 'error') {\n          controller.set('page', 1);\n        }\n      }\n    }\n    ```\n       @method resetController\n    @param {Controller} controller instance\n    @param {Boolean} isExiting\n    @param {Object} transition\n    @since 1.7.0\n    @public\n  */\n\n\n  resetController(_controller, _isExiting, _transition) {\n    return this;\n  }\n  /**\n    @private\n       @method exit\n  */\n\n\n  exit(transition) {\n    this.deactivate(transition);\n    this.trigger('deactivate', transition);\n    this.teardownViews();\n  }\n  /**\n    @private\n       @method _internalReset\n    @since 3.6.0\n  */\n\n\n  _internalReset(isExiting, transition) {\n    let controller = this.controller;\n    controller['_qpDelegate'] = get(this, '_qp.states.inactive');\n    this.resetController(controller, isExiting, transition);\n  }\n  /**\n    @private\n       @method enter\n  */\n\n\n  enter(transition) {\n    ROUTE_CONNECTIONS.set(this, []);\n    this.activate(transition);\n    this.trigger('activate', transition);\n  }\n  /**\n    The `willTransition` action is fired at the beginning of any\n    attempted transition with a `Transition` object as the sole\n    argument. This action can be used for aborting, redirecting,\n    or decorating the transition from the currently active routes.\n       A good example is preventing navigation when a form is\n    half-filled out:\n       ```app/routes/contact-form.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ContactFormRoute extends Route {\n      @action\n      willTransition(transition) {\n        if (this.controller.get('userHasEnteredData')) {\n          this.controller.displayNavigationConfirm();\n          transition.abort();\n        }\n      }\n    }\n    ```\n       You can also redirect elsewhere by calling\n    `this.transitionTo('elsewhere')` from within `willTransition`.\n    Note that `willTransition` will not be fired for the\n    redirecting `transitionTo`, since `willTransition` doesn't\n    fire when there is already a transition underway. If you want\n    subsequent `willTransition` actions to fire for the redirecting\n    transition, you must first explicitly call\n    `transition.abort()`.\n       To allow the `willTransition` event to continue bubbling to the parent\n    route, use `return true;`. When the `willTransition` method has a\n    return value of `true` then the parent route's `willTransition` method\n    will be fired, enabling \"bubbling\" behavior for the event.\n       @event willTransition\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n\n  /**\n    The `didTransition` action is fired after a transition has\n    successfully been completed. This occurs after the normal model\n    hooks (`beforeModel`, `model`, `afterModel`, `setupController`)\n    have resolved. The `didTransition` action has no arguments,\n    however, it can be useful for tracking page views or resetting\n    state on the controller.\n       ```app/routes/login.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class LoginRoute extends Route {\n      @action\n      didTransition() {\n        this.controller.get('errors.base').clear();\n        return true; // Bubble the didTransition event\n      }\n    }\n    ```\n       @event didTransition\n    @since 1.2.0\n    @public\n  */\n\n  /**\n    The `loading` action is fired on the route when a route's `model`\n    hook returns a promise that is not already resolved. The current\n    `Transition` object is the first parameter and the route that\n    triggered the loading event is the second parameter.\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ApplicationRoute extends Route {\n      @action\n      loading(transition, route) {\n        let controller = this.controllerFor('foo');\n        controller.set('currentlyLoading', true);\n           transition.finally(function() {\n          controller.set('currentlyLoading', false);\n        });\n      }\n    }\n    ```\n       @event loading\n    @param {Transition} transition\n    @param {Route} route The route that triggered the loading event\n    @since 1.2.0\n    @public\n  */\n\n  /**\n    When attempting to transition into a route, any of the hooks\n    may return a promise that rejects, at which point an `error`\n    action will be fired on the partially-entered routes, allowing\n    for per-route error handling logic, or shared error handling\n    logic defined on a parent route.\n       Here is an example of an error handler that will be invoked\n    for rejected promises from the various hooks on the route,\n    as well as any unhandled errors from child routes:\n       ```app/routes/admin.js\n    import { reject } from 'rsvp';\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class AdminRoute extends Route {\n      beforeModel() {\n        return reject('bad things!');\n      }\n         @action\n      error(error, transition) {\n        // Assuming we got here due to the error in `beforeModel`,\n        // we can expect that error === \"bad things!\",\n        // but a promise model rejecting would also\n        // call this hook, as would any errors encountered\n        // in `afterModel`.\n           // The `error` hook is also provided the failed\n        // `transition`, which can be stored and later\n        // `.retry()`d if desired.\n           this.transitionTo('login');\n      }\n    }\n    ```\n       `error` actions that bubble up all the way to `ApplicationRoute`\n    will fire a default error handler that logs the error. You can\n    specify your own global default error handler by overriding the\n    `error` handler on `ApplicationRoute`:\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ApplicationRoute extends Route {\n      @action\n      error(error, transition) {\n        this.controllerFor('banner').displayError(error.message);\n      }\n    }\n    ```\n    @event error\n    @param {Error} error\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n\n  /**\n    This event is triggered when the router enters the route. It is\n    not executed when the model for the route changes.\n       ```app/routes/application.js\n    import { on } from '@ember/object/evented';\n    import Route from '@ember/routing/route';\n       export default Route.extend({\n      collectAnalytics: on('activate', function(){\n        collectAnalytics();\n      })\n    });\n    ```\n       @event activate\n    @since 1.9.0\n    @public\n  */\n\n  /**\n    This event is triggered when the router completely exits this\n    route. It is not executed when the model for the route changes.\n       ```app/routes/index.js\n    import { on } from '@ember/object/evented';\n    import Route from '@ember/routing/route';\n       export default Route.extend({\n      trackPageLeaveAnalytics: on('deactivate', function(){\n        trackPageLeaveAnalytics();\n      })\n    });\n    ```\n       @event deactivate\n    @since 1.9.0\n    @public\n  */\n\n  /**\n    This hook is executed when the router completely exits this route. It is\n    not executed when the model for the route changes.\n       @method deactivate\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n\n\n  deactivate(_transition) {}\n  /**\n    This hook is executed when the router enters the route. It is not executed\n    when the model for the route changes.\n       @method activate\n    @param {Transition} transition\n    @since 1.0.0\n    @public\n  */\n\n\n  activate(_transition) {}\n  /**\n    Transition the application into another route. The route may\n    be either a single route or route path:\n       ```javascript\n    this.transitionTo('blogPosts');\n    this.transitionTo('blogPosts.recentEntries');\n    ```\n       Optionally supply a model for the route in question. The model\n    will be serialized into the URL using the `serialize` hook of\n    the route:\n       ```javascript\n    this.transitionTo('blogPost', aPost);\n    ```\n       If a literal is passed (such as a number or a string), it will\n    be treated as an identifier instead. In this case, the `model`\n    hook of the route will be triggered:\n       ```javascript\n    this.transitionTo('blogPost', 1);\n    ```\n       Multiple models will be applied last to first recursively up the\n    route tree.\n       ```app/routes.js\n    // ...\n       Router.map(function() {\n      this.route('blogPost', { path:':blogPostId' }, function() {\n        this.route('blogComment', { path: ':blogCommentId' });\n      });\n    });\n       export default Router;\n    ```\n       ```javascript\n    this.transitionTo('blogComment', aPost, aComment);\n    this.transitionTo('blogComment', 1, 13);\n    ```\n       It is also possible to pass a URL (a string that starts with a\n    `/`).\n       ```javascript\n    this.transitionTo('/');\n    this.transitionTo('/blog/post/1/comment/13');\n    this.transitionTo('/blog/posts?sort=title');\n    ```\n       An options hash with a `queryParams` property may be provided as\n    the final argument to add query parameters to the destination URL.\n       ```javascript\n    this.transitionTo('blogPost', 1, {\n      queryParams: { showComments: 'true' }\n    });\n       // if you just want to transition the query parameters without changing the route\n    this.transitionTo({ queryParams: { sort: 'date' } });\n    ```\n       See also [replaceWith](#method_replaceWith).\n       Simple Transition Example\n       ```app/routes.js\n    // ...\n       Router.map(function() {\n      this.route('index');\n      this.route('secret');\n      this.route('fourOhFour', { path: '*:' });\n    });\n       export default Router;\n    ```\n       ```app/routes/index.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class IndexRoute extends Route {\n      @action\n      moveToSecret(context) {\n        if (authorized()) {\n          this.transitionTo('secret', context);\n        } else {\n          this.transitionTo('fourOhFour');\n        }\n      }\n    }\n    ```\n       Transition to a nested route\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('articles', { path: '/articles' }, function() {\n        this.route('new');\n      });\n    });\n       export default Router;\n    ```\n       ```app/routes/index.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class IndexRoute extends Route {\n      @action\n      transitionToNewArticle() {\n        this.transitionTo('articles.new');\n      }\n    }\n    ```\n       Multiple Models Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('index');\n         this.route('breakfast', { path: ':breakfastId' }, function() {\n        this.route('cereal', { path: ':cerealId' });\n      });\n    });\n       export default Router;\n    ```\n       ```app/routes/index.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class IndexRoute extends Route {\n      @action\n      moveToChocolateCereal() {\n        let cereal = { cerealId: 'ChocolateYumminess' };\n        let breakfast = { breakfastId: 'CerealAndMilk' };\n           this.transitionTo('breakfast.cereal', breakfast, cereal);\n      }\n    }\n    ```\n       Nested Route with Query String Example\n       ```app/routes.js\n    // ...\n       Router.map(function() {\n      this.route('fruits', function() {\n        this.route('apples');\n      });\n    });\n       export default Router;\n    ```\n       ```app/routes/index.js\n    import Route from '@ember/routing/route';\n       export default class IndexRoute extends Route {\n      @action\n      transitionToApples() {\n        this.transitionTo('fruits.apples', { queryParams: { color: 'red' } });\n      }\n    }\n    ```\n       @method transitionTo\n    @param {String} [name] the name of the route or a URL.\n    @param {...Object} [models] the model(s) or identifier(s) to be used while\n      transitioning to the route.\n    @param {Object} [options] optional hash with a queryParams property\n      containing a mapping of query parameters. May be supplied as the only\n      parameter to trigger a query-parameter-only transition.\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @since 1.0.0\n    @public\n  */\n\n\n  transitionTo(...args) {\n    // eslint-disable-line no-unused-vars\n    return this._router.transitionTo(...prefixRouteNameArg(this, args));\n  }\n  /**\n    Perform a synchronous transition into another route without attempting\n    to resolve promises, update the URL, or abort any currently active\n    asynchronous transitions (i.e. regular transitions caused by\n    `transitionTo` or URL changes).\n       This method is handy for performing intermediate transitions on the\n    way to a final destination route, and is called internally by the\n    default implementations of the `error` and `loading` handlers.\n       @method intermediateTransitionTo\n    @param {String} name the name of the route\n    @param {...Object} models the model(s) to be used while transitioning\n    to the route.\n    @since 1.2.0\n    @public\n   */\n\n\n  intermediateTransitionTo(...args) {\n    let [name, ...preparedArgs] = prefixRouteNameArg(this, args);\n\n    this._router.intermediateTransitionTo(name, ...preparedArgs);\n  }\n  /**\n    Refresh the model on this route and any child routes, firing the\n    `beforeModel`, `model`, and `afterModel` hooks in a similar fashion\n    to how routes are entered when transitioning in from other route.\n    The current route params (e.g. `article_id`) will be passed in\n    to the respective model hooks, and if a different model is returned,\n    `setupController` and associated route hooks will re-fire as well.\n       An example usage of this method is re-querying the server for the\n    latest information using the same parameters as when the route\n    was first entered.\n       Note that this will cause `model` hooks to fire even on routes\n    that were provided a model object when the route was initially\n    entered.\n       @method refresh\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @since 1.4.0\n    @public\n   */\n\n\n  refresh() {\n    return this._router._routerMicrolib.refresh(this);\n  }\n  /**\n    Transition into another route while replacing the current URL, if possible.\n    This will replace the current history entry instead of adding a new one.\n    Beside that, it is identical to `transitionTo` in all other respects. See\n    'transitionTo' for additional information regarding multiple models.\n       Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('index');\n      this.route('secret');\n    });\n       export default Router;\n    ```\n       ```app/routes/secret.js\n    import Route from '@ember/routing/route';\n       export default class SecretRoute Route {\n      afterModel() {\n        if (!authorized()){\n          this.replaceWith('index');\n        }\n      }\n    }\n    ```\n       @method replaceWith\n    @param {String} name the name of the route or a URL\n    @param {...Object} models the model(s) or identifier(s) to be used while\n      transitioning to the route.\n    @param {Object} [options] optional hash with a queryParams property\n      containing a mapping of query parameters\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @since 1.0.0\n    @public\n  */\n\n\n  replaceWith(...args) {\n    return this._router.replaceWith(...prefixRouteNameArg(this, args));\n  }\n  /**\n    This hook is the entry point for router.js\n       @private\n    @method setup\n  */\n\n\n  setup(context, transition) {\n    let controllerName = this.controllerName || this.routeName;\n    let definedController = this.controllerFor(controllerName, true);\n    let controller;\n\n    if (definedController) {\n      controller = definedController;\n    } else {\n      controller = this.generateController(controllerName);\n    } // Assign the route's controller so that it can more easily be\n    // referenced in action handlers. Side effects. Side effects everywhere.\n\n\n    if (!this.controller) {\n      let qp = get(this, '_qp');\n      let propNames = qp !== undefined ? get(qp, 'propertyNames') : [];\n      addQueryParamsObservers(controller, propNames);\n      this.controller = controller;\n    }\n\n    let queryParams = get(this, '_qp');\n    let states = queryParams.states;\n    controller._qpDelegate = states.allowOverrides;\n\n    if (transition) {\n      // Update the model dep values used to calculate cache keys.\n      stashParamNames(this._router, transition[STATE_SYMBOL].routeInfos);\n      let cache = this._bucketCache;\n      let params = transition[PARAMS_SYMBOL];\n      let allParams = queryParams.propertyNames;\n      allParams.forEach(prop => {\n        let aQp = queryParams.map[prop];\n        aQp.values = params;\n        let cacheKey = calculateCacheKey(aQp.route.fullRouteName, aQp.parts, aQp.values);\n        let value = cache.lookup(cacheKey, prop, aQp.undecoratedDefaultValue);\n        set(controller, prop, value);\n      });\n      let qpValues = getQueryParamsFor(this, transition[STATE_SYMBOL]);\n      setProperties(controller, qpValues);\n    }\n\n    this.setupController(controller, context, transition);\n\n    if (this._environment.options.shouldRender) {\n      this.renderTemplate(controller, context);\n    } // Setup can cause changes to QPs which need to be propogated immediately in\n    // some situations. Eventually, we should work on making these async somehow.\n\n\n    flushAsyncObservers(false);\n  }\n  /*\n    Called when a query parameter for this route changes, regardless of whether the route\n    is currently part of the active route hierarchy. This will update the query parameter's\n    value in the cache so if this route becomes active, the cache value has been updated.\n  */\n\n\n  _qpChanged(prop, value, qp) {\n    if (!qp) {\n      return;\n    } // Update model-dep cache\n\n\n    let cache = this._bucketCache;\n    let cacheKey = calculateCacheKey(qp.route.fullRouteName, qp.parts, qp.values);\n    cache.stash(cacheKey, prop, value);\n  }\n  /**\n    This hook is the first of the route entry validation hooks\n    called when an attempt is made to transition into a route\n    or one of its children. It is called before `model` and\n    `afterModel`, and is appropriate for cases when:\n       1) A decision can be made to redirect elsewhere without\n       needing to resolve the model first.\n    2) Any async operations need to occur first before the\n       model is attempted to be resolved.\n       This hook is provided the current `transition` attempt\n    as a parameter, which can be used to `.abort()` the transition,\n    save it for a later `.retry()`, or retrieve values set\n    on it from a previous hook. You can also just call\n    `this.transitionTo` to another route to implicitly\n    abort the `transition`.\n       You can return a promise from this hook to pause the\n    transition until the promise resolves (or rejects). This could\n    be useful, for instance, for retrieving async code from\n    the server that is required to enter a route.\n       @method beforeModel\n    @param {Transition} transition\n    @return {any | Promise<any>} if the value returned from this hook is\n      a promise, the transition will pause until the transition\n      resolves. Otherwise, non-promise return values are not\n      utilized in any way.\n    @since 1.0.0\n    @public\n  */\n\n\n  beforeModel() {}\n  /**\n    This hook is called after this route's model has resolved.\n    It follows identical async/promise semantics to `beforeModel`\n    but is provided the route's resolved model in addition to\n    the `transition`, and is therefore suited to performing\n    logic that can only take place after the model has already\n    resolved.\n       ```app/routes/posts.js\n    import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n      afterModel(posts, transition) {\n        if (posts.get('length') === 1) {\n          this.transitionTo('post.show', posts.get('firstObject'));\n        }\n      }\n    }\n    ```\n       Refer to documentation for `beforeModel` for a description\n    of transition-pausing semantics when a promise is returned\n    from this hook.\n       @method afterModel\n    @param {Object} resolvedModel the value returned from `model`,\n      or its resolved value if it was a promise\n    @param {Transition} transition\n    @return {any | Promise<any>} if the value returned from this hook is\n      a promise, the transition will pause until the transition\n      resolves. Otherwise, non-promise return values are not\n      utilized in any way.\n    @since 1.0.0\n    @public\n   */\n\n\n  afterModel() {}\n  /**\n    A hook you can implement to optionally redirect to another route.\n       Calling `this.transitionTo` from inside of the `redirect` hook will\n    abort the current transition (into the route that has implemented `redirect`).\n       `redirect` and `afterModel` behave very similarly and are\n    called almost at the same time, but they have an important\n    distinction when calling `this.transitionTo` to a child route\n    of the current route. From `afterModel`, this new transition\n    invalidates the current transition, causing `beforeModel`,\n    `model`, and `afterModel` hooks to be called again. But the\n    same transition started from `redirect` does _not_ invalidate\n    the current transition. In other words, by the time the `redirect`\n    hook has been called, both the resolved model and the attempted\n    entry into this route are considered fully validated.\n       @method redirect\n    @param {Object} model the model for this route\n    @param {Transition} transition the transition object associated with the current transition\n    @since 1.0.0\n    @public\n  */\n\n\n  redirect() {}\n  /**\n    Called when the context is changed by router.js.\n       @private\n    @method contextDidChange\n  */\n\n\n  contextDidChange() {\n    this.currentModel = this.context;\n  }\n  /**\n    A hook you can implement to convert the URL into the model for\n    this route.\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' });\n    });\n       export default Router;\n    ```\n       The model for the `post` route is `store.findRecord('post', params.post_id)`.\n       By default, if your route has a dynamic segment ending in `_id`:\n       * The model class is determined from the segment (`post_id`'s\n      class is `App.Post`)\n    * The find method is called on the model class with the value of\n      the dynamic segment.\n       Note that for routes with dynamic segments, this hook is not always\n    executed. If the route is entered through a transition (e.g. when\n    using the `link-to` Handlebars helper or the `transitionTo` method\n    of routes), and a model context is already provided this hook\n    is not called.\n       A model context does not include a primitive string or number,\n    which does cause the model hook to be called.\n       Routes without dynamic segments will always execute the model hook.\n       ```javascript\n    // no dynamic segment, model hook always called\n    this.transitionTo('posts');\n       // model passed in, so model hook not called\n    thePost = store.findRecord('post', 1);\n    this.transitionTo('post', thePost);\n       // integer passed in, model hook is called\n    this.transitionTo('post', 1);\n       // model id passed in, model hook is called\n    // useful for forcing the hook to execute\n    thePost = store.findRecord('post', 1);\n    this.transitionTo('post', thePost.id);\n    ```\n       This hook follows the asynchronous/promise semantics\n    described in the documentation for `beforeModel`. In particular,\n    if a promise returned from `model` fails, the error will be\n    handled by the `error` hook on `Route`.\n       Example\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      model(params) {\n        return this.store.findRecord('post', params.post_id);\n      }\n    }\n    ```\n       @method model\n    @param {Object} params the parameters extracted from the URL\n    @param {Transition} transition\n    @return {any | Promise<any>} the model for this route. If\n      a promise is returned, the transition will pause until\n      the promise resolves, and the resolved value of the promise\n      will be used as the model for this route.\n    @since 1.0.0\n    @public\n  */\n\n\n  model(params, transition) {\n    let name, sawParams, value;\n    let queryParams = get(this, '_qp.map');\n\n    for (let prop in params) {\n      if (prop === 'queryParams' || queryParams && prop in queryParams) {\n        continue;\n      }\n\n      let match = prop.match(/^(.*)_id$/);\n\n      if (match !== null) {\n        name = match[1];\n        value = params[prop];\n      }\n\n      sawParams = true;\n    }\n\n    if (!name) {\n      if (sawParams) {\n        return Object.assign({}, params);\n      } else {\n        if (transition.resolveIndex < 1) {\n          return;\n        }\n\n        return transition[STATE_SYMBOL].routeInfos[transition.resolveIndex - 1].context;\n      }\n    }\n\n    return this.findModel(name, value);\n  }\n  /**\n    @private\n    @method deserialize\n    @param {Object} params the parameters extracted from the URL\n    @param {Transition} transition\n    @return {any | Promise<any>} the model for this route.\n       Router.js hook.\n   */\n\n\n  deserialize(_params, transition) {\n    return this.model(this._paramsFor(this.routeName, _params), transition);\n  }\n  /**\n       @method findModel\n    @param {String} type the model type\n    @param {Object} value the value passed to find\n    @private\n  */\n\n\n  findModel(...args) {\n    return get(this, 'store').find(...args);\n  }\n  /**\n    A hook you can use to setup the controller for the current route.\n       This method is called with the controller for the current route and the\n    model supplied by the `model` hook.\n       By default, the `setupController` hook sets the `model` property of\n    the controller to the specified `model` when it is not `undefined`.\n       If you implement the `setupController` hook in your Route, it will\n    prevent this default behavior. If you want to preserve that behavior\n    when implementing your `setupController` function, make sure to call\n    `super`:\n       ```app/routes/photos.js\n    import Route from '@ember/routing/route';\n       export default class PhotosRoute extends Route {\n      model() {\n        return this.store.findAll('photo');\n      }\n         setupController(controller, model) {\n        super.setupController(controller, model);\n           this.controllerFor('application').set('showingPhotos', true);\n      }\n    }\n    ```\n       The provided controller will be one resolved based on the name\n    of this route.\n       If no explicit controller is defined, Ember will automatically create one.\n       As an example, consider the router:\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' });\n    });\n       export default Router;\n    ```\n       If you have defined a file for the post controller,\n    the framework will use it.\n    If it is not defined, a basic `Controller` instance would be used.\n       @example Behavior of a basic Controller\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      setupController(controller, model) {\n        controller.set('model', model);\n      }\n    });\n    ```\n       @method setupController\n    @param {Controller} controller instance\n    @param {Object} model\n    @param {Object} transition\n    @since 1.0.0\n    @public\n  */\n\n\n  setupController(controller, context, _transition) {\n    // eslint-disable-line no-unused-vars\n    if (controller && context !== undefined) {\n      set(controller, 'model', context);\n    }\n  }\n  /**\n    Returns the controller of the current route, or a parent (or any ancestor)\n    route in a route hierarchy.\n       The controller instance must already have been created, either through entering the\n    associated route or using `generateController`.\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      setupController(controller, post) {\n        super.setupController(controller, post);\n           this.controllerFor('posts').set('currentPost', post);\n      }\n    }\n    ```\n       @method controllerFor\n    @param {String} name the name of the route or controller\n    @return {Controller}\n    @since 1.0.0\n    @public\n  */\n\n\n  controllerFor(name, _skipAssert) {\n    let owner = getOwner(this);\n    let route = owner.lookup(`route:${name}`);\n\n    if (route && route.controllerName) {\n      name = route.controllerName;\n    }\n\n    let controller = owner.lookup(`controller:${name}`); // NOTE: We're specifically checking that skipAssert is true, because according\n    //   to the old API the second parameter was model. We do not want people who\n    //   passed a model to skip the assertion.\n\n    assert(`The controller named '${name}' could not be found. Make sure that this route exists and has already been entered at least once. If you are accessing a controller not associated with a route, make sure the controller class is explicitly defined.`, controller !== undefined || _skipAssert === true);\n    return controller;\n  }\n  /**\n    Generates a controller for a route.\n       Example\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class Post extends Route {\n      setupController(controller, post) {\n        super.setupController(controller, post);\n           this.generateController('posts');\n      }\n    }\n    ```\n       @method generateController\n    @param {String} name the name of the controller\n    @private\n  */\n\n\n  generateController(name) {\n    let owner = getOwner(this);\n    return generateController(owner, name);\n  }\n  /**\n    Returns the resolved model of a parent (or any ancestor) route\n    in a route hierarchy.  During a transition, all routes\n    must resolve a model object, and if a route\n    needs access to a parent route's model in order to\n    resolve a model (or just reuse the model from a parent),\n    it can call `this.modelFor(theNameOfParentRoute)` to\n    retrieve it. If the ancestor route's model was a promise,\n    its resolved result is returned.\n       Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' }, function() {\n        this.route('comments');\n      });\n    });\n       export default Router;\n    ```\n       ```app/routes/post/comments.js\n    import Route from '@ember/routing/route';\n       export default class PostCommentsRoute extends Route {\n      model() {\n        let post = this.modelFor('post');\n           return post.comments;\n      }\n    }\n    ```\n       @method modelFor\n    @param {String} name the name of the route\n    @return {Object} the model object\n    @since 1.0.0\n    @public\n  */\n\n\n  modelFor(_name) {\n    let name;\n    let owner = getOwner(this);\n    let transition = this._router && this._router._routerMicrolib ? this._router._routerMicrolib.activeTransition : undefined; // Only change the route name when there is an active transition.\n    // Otherwise, use the passed in route name.\n\n    if (owner.routable && transition !== undefined) {\n      name = getEngineRouteName(owner, _name);\n    } else {\n      name = _name;\n    }\n\n    let route = owner.lookup(`route:${name}`); // If we are mid-transition, we want to try and look up\n    // resolved parent contexts on the current transitionEvent.\n\n    if (transition !== undefined && transition !== null) {\n      let modelLookupName = route && route.routeName || name;\n\n      if (Object.prototype.hasOwnProperty.call(transition.resolvedModels, modelLookupName)) {\n        return transition.resolvedModels[modelLookupName];\n      }\n    }\n\n    return route && route.currentModel;\n  }\n  /**\n    A hook you can use to render the template for the current route.\n       This method is called with the controller for the current route and the\n    model supplied by the `model` hook. By default, it renders the route's\n    template, configured with the controller for the route.\n       This method can be overridden to set up and render additional or\n    alternative templates.\n       ```app/routes/posts.js\n    import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n      renderTemplate(controller, model) {\n        let favController = this.controllerFor('favoritePost');\n           // Render the `favoritePost` template into\n        // the outlet `posts`, and display the `favoritePost`\n        // controller.\n        this.render('favoritePost', {\n          outlet: 'posts',\n          controller: favController\n        });\n      }\n    }\n    ```\n       @method renderTemplate\n    @param {Object} controller the route's controller\n    @param {Object} model the route's model\n    @since 1.0.0\n    @public\n  */\n\n\n  renderTemplate(_controller, _model) {\n    // eslint-disable-line no-unused-vars\n    this.render();\n  }\n  /**\n    `render` is used to render a template into a region of another template\n    (indicated by an `{{outlet}}`). `render` is used both during the entry\n    phase of routing (via the `renderTemplate` hook) and later in response to\n    user interaction.\n       For example, given the following minimal router and templates:\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('photos');\n    });\n       export default Router;\n    ```\n       ```handlebars\n    <!-- application.hbs -->\n    <div class='something-in-the-app-hbs'>\n      {{outlet \"anOutletName\"}}\n    </div>\n    ```\n       ```handlebars\n    <!-- photos.hbs -->\n    <h1>Photos</h1>\n    ```\n       You can render `photos.hbs` into the `\"anOutletName\"` outlet of\n    `application.hbs` by calling `render`:\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      renderTemplate() {\n        this.render('photos', {\n          into: 'application',\n          outlet: 'anOutletName'\n        })\n      }\n    }\n    ```\n       `render` additionally allows you to supply which `controller` and\n    `model` objects should be loaded and associated with the rendered template.\n       ```app/routes/posts.js\n    import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n      renderTemplate(controller, model) {\n        this.render('posts', {    // the template to render, referenced by name\n          into: 'application',    // the template to render into, referenced by name\n          outlet: 'anOutletName', // the outlet inside `options.into` to render into.\n          controller: 'someControllerName', // the controller to use for this template, referenced by name\n          model: model            // the model to set on `options.controller`.\n        })\n      }\n    }\n    ```\n       The string values provided for the template name, and controller\n    will eventually pass through to the resolver for lookup. See\n    Resolver for how these are mapped to JavaScript objects in your\n    application. The template to render into needs to be related to  either the\n    current route or one of its ancestors.\n       Not all options need to be passed to `render`. Default values will be used\n    based on the name of the route specified in the router or the Route's\n    `controllerName` and `templateName` properties.\n       For example:\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('index');\n      this.route('post', { path: '/posts/:post_id' });\n    });\n       export default Router;\n    ```\n       ```app/routes/post.js\n    import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n      renderTemplate() {\n        this.render(); // all defaults apply\n      }\n    }\n    ```\n       The name of the route, defined by the router, is `post`.\n       The following equivalent default options will be applied when\n    the Route calls `render`:\n       ```javascript\n    this.render('post', {  // the template name associated with 'post' Route\n      into: 'application', // the parent route to 'post' Route\n      outlet: 'main',      // {{outlet}} and {{outlet 'main'}} are synonymous,\n      controller: 'post',  // the controller associated with the 'post' Route\n    })\n    ```\n       By default the controller's `model` will be the route's model, so it does not\n    need to be passed unless you wish to change which model is being used.\n       @method render\n    @param {String} name the name of the template to render\n    @param {Object} [options] the options\n    @param {String} [options.into] the template to render into,\n                    referenced by name. Defaults to the parent template\n    @param {String} [options.outlet] the outlet inside `options.into` to render into.\n                    Defaults to 'main'\n    @param {String|Object} [options.controller] the controller to use for this template,\n                    referenced by name or as a controller instance. Defaults to the Route's paired controller\n    @param {Object} [options.model] the model object to set on `options.controller`.\n                    Defaults to the return value of the Route's model hook\n    @since 1.0.0\n    @public\n  */\n\n\n  render(name, options) {\n    let renderOptions = buildRenderOptions(this, name, options);\n    ROUTE_CONNECTIONS.get(this).push(renderOptions);\n    once(this._router, '_setOutlets');\n  }\n  /**\n    Disconnects a view that has been rendered into an outlet.\n       You may pass any or all of the following options to `disconnectOutlet`:\n       * `outlet`: the name of the outlet to clear (default: 'main')\n    * `parentView`: the name of the view containing the outlet to clear\n       (default: the view rendered by the parent route)\n       Example:\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ApplicationRoute extends Route {\n      @action\n      showModal(evt) {\n        this.render(evt.modalName, {\n          outlet: 'modal',\n          into: 'application'\n        });\n      }\n         @action\n      hideModal() {\n        this.disconnectOutlet({\n          outlet: 'modal',\n          parentView: 'application'\n        });\n      }\n    }\n    ```\n       Alternatively, you can pass the `outlet` name directly as a string.\n       Example:\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ApplicationRoute extends Route {\n      @action\n      showModal(evt) {\n        // ...\n      }\n         @action\n      hideModal(evt) {\n        this.disconnectOutlet('modal');\n      }\n    }\n    ```\n       @method disconnectOutlet\n    @param {Object|String} options the options hash or outlet name\n    @since 1.0.0\n    @public\n  */\n\n\n  disconnectOutlet(options) {\n    let outletName;\n    let parentView;\n\n    if (options) {\n      if (typeof options === 'string') {\n        outletName = options;\n      } else {\n        outletName = options.outlet;\n        parentView = options.parentView ? options.parentView.replace(/\\//g, '.') : undefined;\n        assert('You passed undefined as the outlet name.', !('outlet' in options && options.outlet === undefined));\n      }\n    }\n\n    outletName = outletName || 'main';\n\n    this._disconnectOutlet(outletName, parentView);\n\n    let routeInfos = this._router._routerMicrolib.currentRouteInfos;\n\n    for (let i = 0; i < routeInfos.length; i++) {\n      // This non-local state munging is sadly necessary to maintain\n      // backward compatibility with our existing semantics, which allow\n      // any route to disconnectOutlet things originally rendered by any\n      // other route. This should all get cut in 2.0.\n      routeInfos[i].route._disconnectOutlet(outletName, parentView);\n    }\n  }\n\n  _disconnectOutlet(outletName, parentView) {\n    let parent = parentRoute(this);\n\n    if (parent && parentView === parent.routeName) {\n      parentView = undefined;\n    }\n\n    let connections = ROUTE_CONNECTIONS.get(this);\n\n    for (let i = 0; i < connections.length; i++) {\n      let connection = connections[i];\n\n      if (connection.outlet === outletName && connection.into === parentView) {\n        // This neuters the disconnected outlet such that it doesn't\n        // render anything, but it leaves an entry in the outlet\n        // hierarchy so that any existing other renders that target it\n        // don't suddenly blow up. They will still stick themselves\n        // into its outlets, which won't render anywhere. All of this\n        // statefulness should get the machete in 2.0.\n        connections[i] = {\n          owner: connection.owner,\n          into: connection.into,\n          outlet: connection.outlet,\n          name: connection.name,\n          controller: undefined,\n          template: undefined,\n          model: undefined\n        };\n        once(this._router, '_setOutlets');\n      }\n    }\n  }\n\n  willDestroy() {\n    this.teardownViews();\n  }\n  /**\n    @private\n       @method teardownViews\n  */\n\n\n  teardownViews() {\n    let connections = ROUTE_CONNECTIONS.get(this);\n\n    if (connections !== undefined && connections.length > 0) {\n      ROUTE_CONNECTIONS.set(this, []);\n      once(this._router, '_setOutlets');\n    }\n  }\n  /**\n    Allows you to produce custom metadata for the route.\n    The return value of this method will be attached to\n    its corresponding RouteInfoWithAttributes object.\n       Example\n       ```app/routes/posts/index.js\n    import Route from '@ember/routing/route';\n       export default class PostsIndexRoute extends Route {\n      buildRouteInfoMetadata() {\n        return { title: 'Posts Page' }\n      }\n    }\n    ```\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { inject as service } from '@ember/service';\n       export default class ApplicationRoute extends Route {\n      @service router\n         constructor() {\n        super(...arguments);\n           this.router.on('routeDidChange', transition => {\n          document.title = transition.to.metadata.title;\n          // would update document's title to \"Posts Page\"\n        });\n      }\n    }\n    ```\n    @method buildRouteInfoMetadata\n    @return any\n    @since 3.10.0\n    @public\n   */\n\n\n  buildRouteInfoMetadata() {}\n\n}\n\nRoute.reopenClass({\n  isRouteFactory: true\n});\n\nfunction parentRoute(route) {\n  let routeInfo = routeInfoFor(route, route._router._routerMicrolib.state.routeInfos, -1);\n  return routeInfo && routeInfo.route;\n}\n\nfunction routeInfoFor(route, routeInfos, offset = 0) {\n  if (!routeInfos) {\n    return;\n  }\n\n  let current;\n\n  for (let i = 0; i < routeInfos.length; i++) {\n    current = routeInfos[i].route;\n\n    if (current === route) {\n      return routeInfos[i + offset];\n    }\n  }\n\n  return;\n}\n\nfunction buildRenderOptions(route, nameOrOptions, options) {\n  let isDefaultRender = !nameOrOptions && !options;\n\n  let _name;\n\n  if (!isDefaultRender) {\n    if (typeof nameOrOptions === 'object' && !options) {\n      _name = route.templateName || route.routeName;\n      options = nameOrOptions;\n    } else {\n      assert('The name in the given arguments is undefined or empty string', !isEmpty(nameOrOptions));\n      _name = nameOrOptions;\n    }\n  }\n\n  assert('You passed undefined as the outlet name.', isDefaultRender || !(options && 'outlet' in options && options.outlet === undefined));\n  let owner = getOwner(route);\n  let name, templateName, into, outlet, model;\n  let controller = undefined;\n\n  if (options) {\n    into = options.into && options.into.replace(/\\//g, '.');\n    outlet = options.outlet;\n    controller = options.controller;\n    model = options.model;\n  }\n\n  outlet = outlet || 'main';\n\n  if (isDefaultRender) {\n    name = route.routeName;\n    templateName = route.templateName || name;\n  } else {\n    name = _name.replace(/\\//g, '.');\n    templateName = name;\n  }\n\n  if (controller === undefined) {\n    if (isDefaultRender) {\n      controller = route.controllerName || owner.lookup(`controller:${name}`);\n    } else {\n      controller = owner.lookup(`controller:${name}`) || route.controllerName || route.routeName;\n    }\n  }\n\n  if (typeof controller === 'string') {\n    let controllerName = controller;\n    controller = owner.lookup(`controller:${controllerName}`);\n    assert(`You passed \\`controller: '${controllerName}'\\` into the \\`render\\` method, but no such controller could be found.`, isDefaultRender || controller !== undefined);\n  }\n\n  if (model === undefined) {\n    model = route.currentModel;\n  } else {\n    controller.set('model', model);\n  }\n\n  let template = owner.lookup(`template:${templateName}`);\n  assert(`Could not find \"${templateName}\" template, view, or component.`, isDefaultRender || template !== undefined);\n  let parent;\n\n  if (into && (parent = parentRoute(route)) && into === parent.routeName) {\n    into = undefined;\n  }\n\n  let renderOptions = {\n    owner,\n    into,\n    outlet,\n    name,\n    controller,\n    model,\n    template: template !== undefined ? template(owner) : route._topLevelViewTemplate(owner)\n  };\n\n  if (DEBUG) {\n    let LOG_VIEW_LOOKUPS = get(route._router, 'namespace.LOG_VIEW_LOOKUPS');\n\n    if (LOG_VIEW_LOOKUPS && !template) {\n      info(`Could not find \"${name}\" template. Nothing will be rendered`, {\n        fullName: `template:${name}`\n      });\n    }\n  }\n\n  return renderOptions;\n}\n\nexport function getFullQueryParams(router, state) {\n  if (state['fullQueryParams']) {\n    return state['fullQueryParams'];\n  }\n\n  state['fullQueryParams'] = {};\n  assign(state['fullQueryParams'], state.queryParams);\n\n  router._deserializeQueryParams(state.routeInfos, state['fullQueryParams']);\n\n  return state['fullQueryParams'];\n}\n\nfunction getQueryParamsFor(route, state) {\n  state['queryParamsFor'] = state['queryParamsFor'] || {};\n  let name = route.fullRouteName;\n\n  if (state['queryParamsFor'][name]) {\n    return state['queryParamsFor'][name];\n  }\n\n  let fullQueryParams = getFullQueryParams(route._router, state);\n  let params = state['queryParamsFor'][name] = {}; // Copy over all the query params for this route/controller into params hash.\n\n  let qps = get(route, '_qp.qps');\n\n  for (let i = 0; i < qps.length; ++i) {\n    // Put deserialized qp on params hash.\n    let qp = qps[i];\n    let qpValueWasPassedIn = (qp.prop in fullQueryParams);\n    params[qp.prop] = qpValueWasPassedIn ? fullQueryParams[qp.prop] : copyDefaultValue(qp.defaultValue);\n  }\n\n  return params;\n}\n\nfunction copyDefaultValue(value) {\n  if (Array.isArray(value)) {\n    return emberA(value.slice());\n  }\n\n  return value;\n}\n/*\n  Merges all query parameters from a controller with those from\n  a route, returning a new object and avoiding any mutations to\n  the existing objects.\n*/\n\n\nfunction mergeEachQueryParams(controllerQP, routeQP) {\n  let qps = {};\n  let keysAlreadyMergedOrSkippable = {\n    defaultValue: true,\n    type: true,\n    scope: true,\n    as: true\n  }; // first loop over all controller qps, merging them with any matching route qps\n  // into a new empty object to avoid mutating.\n\n  for (let cqpName in controllerQP) {\n    if (!Object.prototype.hasOwnProperty.call(controllerQP, cqpName)) {\n      continue;\n    }\n\n    let newControllerParameterConfiguration = {};\n    assign(newControllerParameterConfiguration, controllerQP[cqpName], routeQP[cqpName]);\n    qps[cqpName] = newControllerParameterConfiguration; // allows us to skip this QP when we check route QPs.\n\n    keysAlreadyMergedOrSkippable[cqpName] = true;\n  } // loop over all route qps, skipping those that were merged in the first pass\n  // because they also appear in controller qps\n\n\n  for (let rqpName in routeQP) {\n    if (!Object.prototype.hasOwnProperty.call(routeQP, rqpName) || keysAlreadyMergedOrSkippable[rqpName]) {\n      continue;\n    }\n\n    let newRouteParameterConfiguration = {};\n    assign(newRouteParameterConfiguration, routeQP[rqpName], controllerQP[rqpName]);\n    qps[rqpName] = newRouteParameterConfiguration;\n  }\n\n  return qps;\n}\n\nfunction addQueryParamsObservers(controller, propNames) {\n  propNames.forEach(prop => {\n    if (descriptorForProperty(controller, prop) === undefined) {\n      let desc = lookupDescriptor(controller, prop);\n\n      if (desc !== null && (typeof desc.get === 'function' || typeof desc.set === 'function')) {\n        defineProperty(controller, prop, dependentKeyCompat({\n          get: desc.get,\n          set: desc.set\n        }));\n      }\n    }\n\n    addObserver(controller, `${prop}.[]`, controller, controller._qpChanged, false);\n  });\n}\n\nfunction getEngineRouteName(engine, routeName) {\n  if (engine.routable) {\n    let prefix = engine.mountPoint;\n\n    if (routeName === 'application') {\n      return prefix;\n    } else {\n      return `${prefix}.${routeName}`;\n    }\n  }\n\n  return routeName;\n}\n/**\n    A hook you can implement to convert the route's model into parameters\n    for the URL.\n\n    ```app/router.js\n    // ...\n\n    Router.map(function() {\n      this.route('post', { path: '/posts/:post_id' });\n    });\n\n    ```\n\n    ```app/routes/post.js\n    import Route from '@ember/routing/route';\n\n    export default class PostRoute extends Route {\n      model({ post_id }) {\n        // the server returns `{ id: 12 }`\n        return fetch(`/posts/${post_id}`;\n      }\n\n      serialize(model) {\n        // this will make the URL `/posts/12`\n        return { post_id: model.id };\n      }\n    }\n    ```\n\n    The default `serialize` method will insert the model's `id` into the\n    route's dynamic segment (in this case, `:post_id`) if the segment contains '_id'.\n    If the route has multiple dynamic segments or does not contain '_id', `serialize`\n    will return `getProperties(model, params)`\n\n    This method is called when `transitionTo` is called with a context\n    in order to populate the URL.\n\n    @method serialize\n    @param {Object} model the routes model\n    @param {Array} params an Array of parameter names for the current\n      route (in the example, `['post_id']`.\n    @return {Object} the serialized parameters\n    @since 1.0.0\n    @public\n  */\n\n\nRoute.prototype.serialize = defaultSerialize;\nRoute.reopen(ActionHandler, Evented, {\n  mergedProperties: ['queryParams'],\n\n  /**\n    Configuration hash for this route's queryParams. The possible\n    configuration options and their defaults are as follows\n    (assuming a query param whose controller property is `page`):\n       ```javascript\n    queryParams: {\n      page: {\n        // By default, controller query param properties don't\n        // cause a full transition when they are changed, but\n        // rather only cause the URL to update. Setting\n        // `refreshModel` to true will cause an \"in-place\"\n        // transition to occur, whereby the model hooks for\n        // this route (and any child routes) will re-fire, allowing\n        // you to reload models (e.g., from the server) using the\n        // updated query param values.\n        refreshModel: false,\n           // By default, changes to controller query param properties\n        // cause the URL to update via `pushState`, which means an\n        // item will be added to the browser's history, allowing\n        // you to use the back button to restore the app to the\n        // previous state before the query param property was changed.\n        // Setting `replace` to true will use `replaceState` (or its\n        // hash location equivalent), which causes no browser history\n        // item to be added. This options name and default value are\n        // the same as the `link-to` helper's `replace` option.\n        replace: false,\n           // By default, the query param URL key is the same name as\n        // the controller property name. Use `as` to specify a\n        // different URL key.\n        as: 'page'\n      }\n    }\n    ```\n       @property queryParams\n    @for Route\n    @type Object\n    @since 1.6.0\n    @public\n  */\n  queryParams: {},\n\n  /**\n    The name of the template to use by default when rendering this routes\n    template.\n       ```app/routes/posts/list.js\n    import Route from '@ember/routing/route';\n       export default class extends Route {\n      templateName = 'posts/list'\n    });\n    ```\n       ```app/routes/posts/index.js\n    import PostsList from '../posts/list';\n       export default class extends PostsList {};\n    ```\n       ```app/routes/posts/archived.js\n    import PostsList from '../posts/list';\n       export default class extends PostsList {};\n    ```\n       @property templateName\n    @type String\n    @default null\n    @since 1.4.0\n    @public\n  */\n  templateName: null,\n\n  /**\n    @private\n       @property _names\n  */\n  _names: null,\n\n  /**\n    The name of the controller to associate with this route.\n       By default, Ember will lookup a route's controller that matches the name\n    of the route (i.e. `posts.new`). However,\n    if you would like to define a specific controller to use, you can do so\n    using this property.\n       This is useful in many ways, as the controller specified will be:\n       * passed to the `setupController` method.\n    * used as the controller for the template being rendered by the route.\n    * returned from a call to `controllerFor` for the route.\n       @property controllerName\n    @type String\n    @default null\n    @since 1.4.0\n    @public\n  */\n  controllerName: null,\n\n  /**\n    Store property provides a hook for data persistence libraries to inject themselves.\n       By default, this store property provides the exact same functionality previously\n    in the model hook.\n       Currently, the required interface is:\n       `store.find(modelName, findArguments)`\n       @property store\n    @type {Object}\n    @private\n  */\n  store: computed({\n    get() {\n      let owner = getOwner(this);\n      let routeName = this.routeName;\n      let namespace = get(this, '_router.namespace');\n      return {\n        find(name, value) {\n          let modelClass = owner.factoryFor(`model:${name}`);\n          assert(`You used the dynamic segment ${name}_id in your route ${routeName}, but ${namespace}.${classify(name)} did not exist and you did not override your route's \\`model\\` hook.`, Boolean(modelClass));\n\n          if (!modelClass) {\n            return;\n          }\n\n          modelClass = modelClass.class;\n          assert(`${classify(name)} has no method \\`find\\`.`, typeof modelClass.find === 'function');\n          return modelClass.find(value);\n        }\n\n      };\n    },\n\n    set(key, value) {\n      defineProperty(this, key, null, value);\n    }\n\n  }),\n\n  /**\n      @private\n         @property _qp\n    */\n  _qp: computed(function () {\n    let combinedQueryParameterConfiguration;\n    let controllerName = this.controllerName || this.routeName;\n    let owner = getOwner(this);\n    let controller = owner.lookup(`controller:${controllerName}`);\n    let queryParameterConfiguraton = get(this, 'queryParams');\n    let hasRouterDefinedQueryParams = Object.keys(queryParameterConfiguraton).length > 0;\n\n    if (controller) {\n      // the developer has authored a controller class in their application for\n      // this route find its query params and normalize their object shape them\n      // merge in the query params for the route. As a mergedProperty,\n      // Route#queryParams is always at least `{}`\n      let controllerDefinedQueryParameterConfiguration = get(controller, 'queryParams') || {};\n      let normalizedControllerQueryParameterConfiguration = normalizeControllerQueryParams(controllerDefinedQueryParameterConfiguration);\n      combinedQueryParameterConfiguration = mergeEachQueryParams(normalizedControllerQueryParameterConfiguration, queryParameterConfiguraton);\n    } else if (hasRouterDefinedQueryParams) {\n      // the developer has not defined a controller but *has* supplied route query params.\n      // Generate a class for them so we can later insert default values\n      controller = generateController(owner, controllerName);\n      combinedQueryParameterConfiguration = queryParameterConfiguraton;\n    }\n\n    let qps = [];\n    let map = {};\n    let propertyNames = [];\n\n    for (let propName in combinedQueryParameterConfiguration) {\n      if (!Object.prototype.hasOwnProperty.call(combinedQueryParameterConfiguration, propName)) {\n        continue;\n      } // to support the dubious feature of using unknownProperty\n      // on queryParams configuration\n\n\n      if (propName === 'unknownProperty' || propName === '_super') {\n        // possible todo: issue deprecation warning?\n        continue;\n      }\n\n      let desc = combinedQueryParameterConfiguration[propName];\n      let scope = desc.scope || 'model';\n      let parts;\n\n      if (scope === 'controller') {\n        parts = [];\n      }\n\n      let urlKey = desc.as || this.serializeQueryParamKey(propName);\n      let defaultValue = get(controller, propName);\n      defaultValue = copyDefaultValue(defaultValue);\n      let type = desc.type || typeOf(defaultValue);\n      let defaultValueSerialized = this.serializeQueryParam(defaultValue, urlKey, type);\n      let scopedPropertyName = `${controllerName}:${propName}`;\n      let qp = {\n        undecoratedDefaultValue: get(controller, propName),\n        defaultValue,\n        serializedDefaultValue: defaultValueSerialized,\n        serializedValue: defaultValueSerialized,\n        type,\n        urlKey,\n        prop: propName,\n        scopedPropertyName,\n        controllerName,\n        route: this,\n        parts,\n        values: null,\n        scope\n      };\n      map[propName] = map[urlKey] = map[scopedPropertyName] = qp;\n      qps.push(qp);\n      propertyNames.push(propName);\n    }\n\n    return {\n      qps,\n      map,\n      propertyNames,\n      states: {\n        /*\n          Called when a query parameter changes in the URL, this route cares\n          about that query parameter, but the route is not currently\n          in the active route hierarchy.\n        */\n        inactive: (prop, value) => {\n          let qp = map[prop];\n\n          this._qpChanged(prop, value, qp);\n        },\n\n        /*\n          Called when a query parameter changes in the URL, this route cares\n          about that query parameter, and the route is currently\n          in the active route hierarchy.\n        */\n        active: (prop, value) => {\n          let qp = map[prop];\n\n          this._qpChanged(prop, value, qp);\n\n          return this._activeQPChanged(qp, value);\n        },\n\n        /*\n          Called when a value of a query parameter this route handles changes in a controller\n          and the route is currently in the active route hierarchy.\n        */\n        allowOverrides: (prop, value) => {\n          let qp = map[prop];\n\n          this._qpChanged(prop, value, qp);\n\n          return this._updatingQPChanged(qp);\n        }\n      }\n    };\n  }),\n\n  /**\n    Sends an action to the router, which will delegate it to the currently\n    active route hierarchy per the bubbling rules explained under `actions`.\n       Example\n       ```app/router.js\n    // ...\n       Router.map(function() {\n      this.route('index');\n    });\n       export default Router;\n    ```\n       ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class ApplicationRoute extends Route {\n      @action\n      track(arg) {\n        console.log(arg, 'was clicked');\n      }\n    }\n    ```\n       ```app/routes/index.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class IndexRoute extends Route {\n      @action\n      trackIfDebug(arg) {\n        if (debug) {\n          this.send('track', arg);\n        }\n      }\n    }\n    ```\n       @method send\n    @param {String} name the name of the action to trigger\n    @param {...*} args\n    @since 1.0.0\n    @public\n  */\n  send(...args) {\n    assert(`Attempted to call .send() with the action '${args[0]}' on the destroyed route '${this.routeName}'.`, !this.isDestroying && !this.isDestroyed);\n\n    if (this._router && this._router._routerMicrolib || !isTesting()) {\n      this._router.send(...args);\n    } else {\n      let name = args.shift();\n      let action = this.actions[name];\n\n      if (action) {\n        return action.apply(this, args);\n      }\n    }\n  },\n\n  /**\n    The controller associated with this route.\n       Example\n       ```app/routes/form.js\n    import Route from '@ember/routing/route';\n    import { action } from '@ember/object';\n       export default class FormRoute extends Route {\n      @action\n      willTransition(transition) {\n        if (this.controller.get('userHasEnteredData') &&\n            !confirm('Are you sure you want to abandon progress?')) {\n          transition.abort();\n        } else {\n          // Bubble the `willTransition` action so that\n          // parent routes can decide whether or not to abort.\n          return true;\n        }\n      }\n    }\n    ```\n       @property controller\n    @type Controller\n    @since 1.6.0\n    @public\n  */\n  actions: {\n    /**\n    This action is called when one or more query params have changed. Bubbles.\n         @method queryParamsDidChange\n    @param changed {Object} Keys are names of query params that have changed.\n    @param totalPresent {Object} Keys are names of query params that are currently set.\n    @param removed {Object} Keys are names of query params that have been removed.\n    @returns {boolean}\n    @private\n    */\n    queryParamsDidChange(changed, _totalPresent, removed) {\n      let qpMap = get(this, '_qp').map;\n      let totalChanged = Object.keys(changed).concat(Object.keys(removed));\n\n      for (let i = 0; i < totalChanged.length; ++i) {\n        let qp = qpMap[totalChanged[i]];\n\n        if (qp && get(this._optionsForQueryParam(qp), 'refreshModel') && this._router.currentState) {\n          this.refresh();\n          break;\n        }\n      }\n\n      return true;\n    },\n\n    finalizeQueryParamChange(params, finalParams, transition) {\n      if (this.fullRouteName !== 'application') {\n        return true;\n      } // Transition object is absent for intermediate transitions.\n\n\n      if (!transition) {\n        return;\n      }\n\n      let routeInfos = transition[STATE_SYMBOL].routeInfos;\n      let router = this._router;\n\n      let qpMeta = router._queryParamsFor(routeInfos);\n\n      let changes = router._qpUpdates;\n      let qpUpdated = false;\n      let replaceUrl;\n      stashParamNames(router, routeInfos);\n\n      for (let i = 0; i < qpMeta.qps.length; ++i) {\n        let qp = qpMeta.qps[i];\n        let route = qp.route;\n        let controller = route.controller;\n        let presentKey = qp.urlKey in params && qp.urlKey; // Do a reverse lookup to see if the changed query\n        // param URL key corresponds to a QP property on\n        // this controller.\n\n        let value, svalue;\n\n        if (changes.has(qp.urlKey)) {\n          // Value updated in/before setupController\n          value = get(controller, qp.prop);\n          svalue = route.serializeQueryParam(value, qp.urlKey, qp.type);\n        } else {\n          if (presentKey) {\n            svalue = params[presentKey];\n\n            if (svalue !== undefined) {\n              value = route.deserializeQueryParam(svalue, qp.urlKey, qp.type);\n            }\n          } else {\n            // No QP provided; use default value.\n            svalue = qp.serializedDefaultValue;\n            value = copyDefaultValue(qp.defaultValue);\n          }\n        }\n\n        controller._qpDelegate = get(route, '_qp.states.inactive');\n        let thisQueryParamChanged = svalue !== qp.serializedValue;\n\n        if (thisQueryParamChanged) {\n          if (transition.queryParamsOnly && replaceUrl !== false) {\n            let options = route._optionsForQueryParam(qp);\n\n            let replaceConfigValue = get(options, 'replace');\n\n            if (replaceConfigValue) {\n              replaceUrl = true;\n            } else if (replaceConfigValue === false) {\n              // Explicit pushState wins over any other replaceStates.\n              replaceUrl = false;\n            }\n          }\n\n          set(controller, qp.prop, value);\n          qpUpdated = true;\n        } // Stash current serialized value of controller.\n\n\n        qp.serializedValue = svalue;\n        let thisQueryParamHasDefaultValue = qp.serializedDefaultValue === svalue;\n\n        if (!thisQueryParamHasDefaultValue || transition._keepDefaultQueryParamValues) {\n          finalParams.push({\n            value: svalue,\n            visible: true,\n            key: presentKey || qp.urlKey\n          });\n        }\n      } // Some QPs have been updated, and those changes need to be propogated\n      // immediately. Eventually, we should work on making this async somehow.\n\n\n      if (qpUpdated === true) {\n        flushAsyncObservers(false);\n      }\n\n      if (replaceUrl) {\n        transition.method('replace');\n      }\n\n      qpMeta.qps.forEach(qp => {\n        let routeQpMeta = get(qp.route, '_qp');\n        let finalizedController = qp.route.controller;\n        finalizedController['_qpDelegate'] = get(routeQpMeta, 'states.active');\n      });\n\n      router._qpUpdates.clear();\n\n      return;\n    }\n\n  }\n});\nexport let ROUTER_EVENT_DEPRECATIONS;\n\nif (ROUTER_EVENTS) {\n  ROUTER_EVENT_DEPRECATIONS = {\n    on(name) {\n      this._super(...arguments);\n\n      let hasDidTransition = name === 'didTransition';\n      let hasWillTransition = name === 'willTransition';\n\n      if (hasDidTransition) {\n        deprecate('You attempted to listen to the \"didTransition\" event which is deprecated. Please inject the router service and listen to the \"routeDidChange\" event.', false, {\n          id: 'deprecate-router-events',\n          until: '4.0.0',\n          url: 'https://emberjs.com/deprecations/v3.x#toc_deprecate-router-events',\n          for: 'ember-source',\n          since: {\n            enabled: '3.11.0'\n          }\n        });\n      }\n\n      if (hasWillTransition) {\n        deprecate('You attempted to listen to the \"willTransition\" event which is deprecated. Please inject the router service and listen to the \"routeWillChange\" event.', false, {\n          id: 'deprecate-router-events',\n          until: '4.0.0',\n          url: 'https://emberjs.com/deprecations/v3.x#toc_deprecate-router-events',\n          for: 'ember-source',\n          since: {\n            enabled: '3.11.0'\n          }\n        });\n      }\n    }\n\n  };\n  Route.reopen(ROUTER_EVENT_DEPRECATIONS, {\n    _paramsFor(routeName, params) {\n      let transition = this._router._routerMicrolib.activeTransition;\n\n      if (transition !== undefined) {\n        return this.paramsFor(routeName);\n      }\n\n      return params;\n    }\n\n  });\n}\n\nexport default Route;","import { computed, get, notifyPropertyChange, set } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport { A as emberA, Evented, Object as EmberObject, typeOf } from '@ember/-internals/runtime';\nimport { assert, deprecate, info } from '@ember/debug';\nimport { APP_CTRL_ROUTER_PROPS, ROUTER_EVENTS } from '@ember/deprecated-features';\nimport EmberError from '@ember/error';\nimport { assign } from '@ember/polyfills';\nimport { cancel, once, run, scheduleOnce } from '@ember/runloop';\nimport { DEBUG } from '@glimmer/env';\nimport EmberLocation from '../location/api';\nimport { calculateCacheKey, extractRouteArgs, getActiveTargetName, resemblesURL } from '../utils';\nimport DSL from './dsl';\nimport { defaultSerialize, getFullQueryParams, hasDefaultSerialize, ROUTE_CONNECTIONS, ROUTER_EVENT_DEPRECATIONS } from './route';\nimport RouterState from './router_state';\nimport Router, { logAbort, STATE_SYMBOL } from 'router_js';\n\nfunction defaultDidTransition(infos) {\n  updatePaths(this);\n\n  this._cancelSlowTransitionTimer();\n\n  this.notifyPropertyChange('url');\n  this.set('currentState', this.targetState); // Put this in the runloop so url will be accurate. Seems\n  // less surprising than didTransition being out of sync.\n\n  once(this, this.trigger, 'didTransition');\n\n  if (DEBUG) {\n    if (get(this, 'namespace').LOG_TRANSITIONS) {\n      // eslint-disable-next-line no-console\n      console.log(`Transitioned into '${EmberRouter._routePath(infos)}'`);\n    }\n  }\n}\n\nfunction defaultWillTransition(oldInfos, newInfos, transition) {\n  once(this, this.trigger, 'willTransition', transition);\n\n  if (DEBUG) {\n    if (get(this, 'namespace').LOG_TRANSITIONS) {\n      // eslint-disable-next-line no-console\n      console.log(`Preparing to transition from '${EmberRouter._routePath(oldInfos)}' to '${EmberRouter._routePath(newInfos)}'`);\n    }\n  }\n}\n\nfunction K() {\n  return this;\n}\n\nconst {\n  slice\n} = Array.prototype;\n/**\n  The `EmberRouter` class manages the application state and URLs. Refer to\n  the [routing guide](https://guides.emberjs.com/release/routing/) for documentation.\n\n  @class EmberRouter\n  @extends EmberObject\n  @uses Evented\n  @public\n*/\n\nclass EmberRouter extends EmberObject {\n  constructor() {\n    super(...arguments);\n    this._didSetupRouter = false;\n    this._initialTransitionStarted = false;\n    this.currentURL = null;\n    this.currentRouteName = null;\n    this.currentPath = null;\n    this.currentRoute = null;\n    this._qpCache = Object.create(null);\n    this._qpUpdates = new Set();\n    this._queuedQPChanges = {};\n    this._toplevelView = null;\n    this._handledErrors = new Set();\n    this._engineInstances = Object.create(null);\n    this._engineInfoByRoute = Object.create(null);\n    this.currentState = null;\n    this.targetState = null;\n\n    this._resetQueuedQueryParameterChanges();\n  }\n\n  _initRouterJs() {\n    let location = get(this, 'location');\n    let router = this;\n    let owner = getOwner(this);\n    let seen = Object.create(null);\n\n    class PrivateRouter extends Router {\n      getRoute(name) {\n        let routeName = name;\n        let routeOwner = owner;\n        let engineInfo = router._engineInfoByRoute[routeName];\n\n        if (engineInfo) {\n          let engineInstance = router._getEngineInstance(engineInfo);\n\n          routeOwner = engineInstance;\n          routeName = engineInfo.localFullName;\n        }\n\n        let fullRouteName = `route:${routeName}`;\n        let route = routeOwner.lookup(fullRouteName);\n\n        if (seen[name]) {\n          return route;\n        }\n\n        seen[name] = true;\n\n        if (!route) {\n          let DefaultRoute = routeOwner.factoryFor('route:basic').class;\n          routeOwner.register(fullRouteName, DefaultRoute.extend());\n          route = routeOwner.lookup(fullRouteName);\n\n          if (DEBUG) {\n            if (get(router, 'namespace.LOG_ACTIVE_GENERATION')) {\n              info(`generated -> ${fullRouteName}`, {\n                fullName: fullRouteName\n              });\n            }\n          }\n        }\n\n        route._setRouteName(routeName);\n\n        if (engineInfo && !hasDefaultSerialize(route)) {\n          throw new Error('Defining a custom serialize method on an Engine route is not supported.');\n        }\n\n        return route;\n      }\n\n      getSerializer(name) {\n        let engineInfo = router._engineInfoByRoute[name]; // If this is not an Engine route, we fall back to the handler for serialization\n\n        if (!engineInfo) {\n          return;\n        }\n\n        return engineInfo.serializeMethod || defaultSerialize;\n      }\n\n      updateURL(path) {\n        once(() => {\n          location.setURL(path);\n          set(router, 'currentURL', path);\n        });\n      }\n\n      didTransition(infos) {\n        if (ROUTER_EVENTS) {\n          if (router.didTransition !== defaultDidTransition) {\n            deprecate('You attempted to override the \"didTransition\" method which is deprecated. Please inject the router service and listen to the \"routeDidChange\" event.', false, {\n              id: 'deprecate-router-events',\n              until: '4.0.0',\n              url: 'https://emberjs.com/deprecations/v3.x#toc_deprecate-router-events',\n              for: 'ember-source',\n              since: {\n                enabled: '3.11.0'\n              }\n            });\n          }\n        }\n\n        router.didTransition(infos);\n      }\n\n      willTransition(oldInfos, newInfos, transition) {\n        if (ROUTER_EVENTS) {\n          if (router.willTransition !== defaultWillTransition) {\n            deprecate('You attempted to override the \"willTransition\" method which is deprecated. Please inject the router service and listen to the \"routeWillChange\" event.', false, {\n              id: 'deprecate-router-events',\n              until: '4.0.0',\n              url: 'https://emberjs.com/deprecations/v3.x#toc_deprecate-router-events',\n              for: 'ember-source',\n              since: {\n                enabled: '3.11.0'\n              }\n            });\n          }\n        }\n\n        router.willTransition(oldInfos, newInfos, transition);\n      }\n\n      triggerEvent(routeInfos, ignoreFailure, name, args) {\n        return triggerEvent.bind(router)(routeInfos, ignoreFailure, name, args);\n      }\n\n      routeWillChange(transition) {\n        router.trigger('routeWillChange', transition); // in case of intermediate transition we update the current route\n        // to make router.currentRoute.name consistent with router.currentRouteName\n        // see https://github.com/emberjs/ember.js/issues/19449\n\n        if (transition.isIntermediate) {\n          router.set('currentRoute', transition.to);\n        }\n      }\n\n      routeDidChange(transition) {\n        router.set('currentRoute', transition.to);\n        once(() => {\n          router.trigger('routeDidChange', transition);\n        });\n      }\n\n      transitionDidError(error, transition) {\n        if (error.wasAborted || transition.isAborted) {\n          // If the error was a transition erorr or the transition aborted\n          // log the abort.\n          return logAbort(transition);\n        } else {\n          // Otherwise trigger the \"error\" event to attempt an intermediate\n          // transition into an error substate\n          transition.trigger(false, 'error', error.error, transition, error.route);\n\n          if (router._isErrorHandled(error.error)) {\n            // If we handled the error with a substate just roll the state back on\n            // the transition and send the \"routeDidChange\" event for landing on\n            // the error substate and return the error.\n            transition.rollback();\n            this.routeDidChange(transition);\n            return error.error;\n          } else {\n            // If it was not handled, abort the transition completely and return\n            // the error.\n            transition.abort();\n            return error.error;\n          }\n        }\n      }\n\n      replaceURL(url) {\n        if (location.replaceURL) {\n          let doReplaceURL = () => {\n            location.replaceURL(url);\n            set(router, 'currentURL', url);\n          };\n\n          once(doReplaceURL);\n        } else {\n          this.updateURL(url);\n        }\n      }\n\n    }\n\n    let routerMicrolib = this._routerMicrolib = new PrivateRouter();\n    let dslCallbacks = this.constructor.dslCallbacks || [K];\n\n    let dsl = this._buildDSL();\n\n    dsl.route('application', {\n      path: '/',\n      resetNamespace: true,\n      overrideNameAssertion: true\n    }, function () {\n      for (let i = 0; i < dslCallbacks.length; i++) {\n        dslCallbacks[i].call(this);\n      }\n    });\n\n    if (DEBUG) {\n      if (get(this, 'namespace.LOG_TRANSITIONS_INTERNAL')) {\n        routerMicrolib.log = console.log.bind(console); // eslint-disable-line no-console\n      }\n    }\n\n    routerMicrolib.map(dsl.generate());\n  }\n\n  _buildDSL() {\n    let enableLoadingSubstates = this._hasModuleBasedResolver();\n\n    let router = this;\n    let owner = getOwner(this);\n    let options = {\n      enableLoadingSubstates,\n\n      resolveRouteMap(name) {\n        return owner.factoryFor(`route-map:${name}`);\n      },\n\n      addRouteForEngine(name, engineInfo) {\n        if (!router._engineInfoByRoute[name]) {\n          router._engineInfoByRoute[name] = engineInfo;\n        }\n      }\n\n    };\n    return new DSL(null, options);\n  }\n  /*\n    Resets all pending query parameter changes.\n    Called after transitioning to a new route\n    based on query parameter changes.\n  */\n\n\n  _resetQueuedQueryParameterChanges() {\n    this._queuedQPChanges = {};\n  }\n\n  _hasModuleBasedResolver() {\n    let owner = getOwner(this);\n\n    if (!owner) {\n      return false;\n    }\n\n    let resolver = get(owner, 'application.__registry__.resolver.moduleBasedResolver');\n    return Boolean(resolver);\n  }\n  /**\n    Initializes the current router instance and sets up the change handling\n    event listeners used by the instances `location` implementation.\n       A property named `initialURL` will be used to determine the initial URL.\n    If no value is found `/` will be used.\n       @method startRouting\n    @private\n  */\n\n\n  startRouting() {\n    if (this.setupRouter()) {\n      let initialURL = get(this, 'initialURL');\n\n      if (initialURL === undefined) {\n        initialURL = get(this, 'location').getURL();\n      }\n\n      let initialTransition = this.handleURL(initialURL);\n\n      if (initialTransition && initialTransition.error) {\n        throw initialTransition.error;\n      }\n    }\n  }\n\n  setupRouter() {\n    if (this._didSetupRouter) {\n      return false;\n    }\n\n    this._didSetupRouter = true;\n\n    this._setupLocation();\n\n    let location = get(this, 'location'); // Allow the Location class to cancel the router setup while it refreshes\n    // the page\n\n    if (get(location, 'cancelRouterSetup')) {\n      return false;\n    }\n\n    this._initRouterJs();\n\n    location.onUpdateURL(url => {\n      this.handleURL(url);\n    });\n    return true;\n  }\n\n  _setOutlets() {\n    // This is triggered async during Route#willDestroy.\n    // If the router is also being destroyed we do not want to\n    // to create another this._toplevelView (and leak the renderer)\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    let routeInfos = this._routerMicrolib.currentRouteInfos;\n\n    if (!routeInfos) {\n      return;\n    }\n\n    let defaultParentState;\n    let liveRoutes = null;\n\n    for (let i = 0; i < routeInfos.length; i++) {\n      let route = routeInfos[i].route;\n      let connections = ROUTE_CONNECTIONS.get(route);\n      let ownState;\n\n      if (connections.length === 0) {\n        ownState = representEmptyRoute(liveRoutes, defaultParentState, route);\n      } else {\n        for (let j = 0; j < connections.length; j++) {\n          let appended = appendLiveRoute(liveRoutes, defaultParentState, connections[j]);\n          liveRoutes = appended.liveRoutes;\n          let {\n            name,\n            outlet\n          } = appended.ownState.render;\n\n          if (name === route.routeName || outlet === 'main') {\n            ownState = appended.ownState;\n          }\n        }\n      }\n\n      defaultParentState = ownState;\n    } // when a transitionTo happens after the validation phase\n    // during the initial transition _setOutlets is called\n    // when no routes are active. However, it will get called\n    // again with the correct values during the next turn of\n    // the runloop\n\n\n    if (!liveRoutes) {\n      return;\n    }\n\n    if (!this._toplevelView) {\n      let owner = getOwner(this);\n      let OutletView = owner.factoryFor('view:-outlet');\n      this._toplevelView = OutletView.create();\n\n      this._toplevelView.setOutletState(liveRoutes);\n\n      let instance = owner.lookup('-application-instance:main');\n\n      if (instance) {\n        instance.didCreateRootView(this._toplevelView);\n      }\n    } else {\n      this._toplevelView.setOutletState(liveRoutes);\n    }\n  }\n\n  handleURL(url) {\n    // Until we have an ember-idiomatic way of accessing #hashes, we need to\n    // remove it because router.js doesn't know how to handle it.\n    let _url = url.split(/#(.+)?/)[0];\n    return this._doURLTransition('handleURL', _url);\n  }\n\n  _doURLTransition(routerJsMethod, url) {\n    this._initialTransitionStarted = true;\n\n    let transition = this._routerMicrolib[routerJsMethod](url || '/');\n\n    didBeginTransition(transition, this);\n    return transition;\n  }\n  /**\n    Transition the application into another route. The route may\n    be either a single route or route path:\n       See [transitionTo](/ember/release/classes/Route/methods/transitionTo?anchor=transitionTo) for more info.\n       @method transitionTo\n    @param {String} name the name of the route or a URL\n    @param {...Object} models the model(s) or identifier(s) to be used while\n      transitioning to the route.\n    @param {Object} [options] optional hash with a queryParams property\n      containing a mapping of query parameters\n    @return {Transition} the transition object associated with this\n      attempted transition\n    @public\n  */\n\n\n  transitionTo(...args) {\n    if (resemblesURL(args[0])) {\n      assert(`A transition was attempted from '${this.currentRouteName}' to '${args[0]}' but the application instance has already been destroyed.`, !this.isDestroying && !this.isDestroyed);\n      return this._doURLTransition('transitionTo', args[0]);\n    }\n\n    let {\n      routeName,\n      models,\n      queryParams\n    } = extractRouteArgs(args);\n    assert(`A transition was attempted from '${this.currentRouteName}' to '${routeName}' but the application instance has already been destroyed.`, !this.isDestroying && !this.isDestroyed);\n    return this._doTransition(routeName, models, queryParams);\n  }\n\n  intermediateTransitionTo(name, ...args) {\n    this._routerMicrolib.intermediateTransitionTo(name, ...args);\n\n    updatePaths(this);\n\n    if (DEBUG) {\n      let infos = this._routerMicrolib.currentRouteInfos;\n\n      if (get(this, 'namespace').LOG_TRANSITIONS) {\n        // eslint-disable-next-line no-console\n        console.log(`Intermediate-transitioned into '${EmberRouter._routePath(infos)}'`);\n      }\n    }\n  }\n\n  replaceWith(...args) {\n    return this.transitionTo(...args).method('replace');\n  }\n\n  generate(name, ...args) {\n    let url = this._routerMicrolib.generate(name, ...args);\n\n    return this.location.formatURL(url);\n  }\n  /**\n    Determines if the supplied route is currently active.\n       @method isActive\n    @param routeName\n    @return {Boolean}\n    @private\n  */\n\n\n  isActive(routeName) {\n    return this._routerMicrolib.isActive(routeName);\n  }\n  /**\n    An alternative form of `isActive` that doesn't require\n    manual concatenation of the arguments into a single\n    array.\n       @method isActiveIntent\n    @param routeName\n    @param models\n    @param queryParams\n    @return {Boolean}\n    @private\n    @since 1.7.0\n  */\n\n\n  isActiveIntent(routeName, models, queryParams) {\n    return this.currentState.isActiveIntent(routeName, models, queryParams);\n  }\n\n  send(name, ...args) {\n    /*name, context*/\n    this._routerMicrolib.trigger(name, ...args);\n  }\n  /**\n    Does this router instance have the given route.\n       @method hasRoute\n    @return {Boolean}\n    @private\n  */\n\n\n  hasRoute(route) {\n    return this._routerMicrolib.hasRoute(route);\n  }\n  /**\n    Resets the state of the router by clearing the current route\n    handlers and deactivating them.\n       @private\n    @method reset\n   */\n\n\n  reset() {\n    this._didSetupRouter = false;\n    this._initialTransitionStarted = false;\n\n    if (this._routerMicrolib) {\n      this._routerMicrolib.reset();\n    }\n  }\n\n  willDestroy() {\n    if (this._toplevelView) {\n      this._toplevelView.destroy();\n\n      this._toplevelView = null;\n    }\n\n    super.willDestroy();\n    this.reset();\n    let instances = this._engineInstances;\n\n    for (let name in instances) {\n      for (let id in instances[name]) {\n        run(instances[name][id], 'destroy');\n      }\n    }\n  }\n  /*\n    Called when an active route's query parameter has changed.\n    These changes are batched into a runloop run and trigger\n    a single transition.\n  */\n\n\n  _activeQPChanged(queryParameterName, newValue) {\n    this._queuedQPChanges[queryParameterName] = newValue;\n    once(this, this._fireQueryParamTransition);\n  }\n\n  _updatingQPChanged(queryParameterName) {\n    this._qpUpdates.add(queryParameterName);\n  }\n  /*\n    Triggers a transition to a route based on query parameter changes.\n    This is called once per runloop, to batch changes.\n       e.g.\n       if these methods are called in succession:\n    this._activeQPChanged('foo', '10');\n      // results in _queuedQPChanges = { foo: '10' }\n    this._activeQPChanged('bar', false);\n      // results in _queuedQPChanges = { foo: '10', bar: false }\n       _queuedQPChanges will represent both of these changes\n    and the transition using `transitionTo` will be triggered\n    once.\n  */\n\n\n  _fireQueryParamTransition() {\n    this.transitionTo({\n      queryParams: this._queuedQPChanges\n    });\n\n    this._resetQueuedQueryParameterChanges();\n  }\n\n  _setupLocation() {\n    let location = this.location;\n    let rootURL = this.rootURL;\n    let owner = getOwner(this);\n\n    if ('string' === typeof location && owner) {\n      let resolvedLocation = owner.lookup(`location:${location}`);\n\n      if (resolvedLocation !== undefined) {\n        location = set(this, 'location', resolvedLocation);\n      } else {\n        // Allow for deprecated registration of custom location API's\n        let options = {\n          implementation: location\n        };\n        location = set(this, 'location', EmberLocation.create(options));\n      }\n    }\n\n    if (location !== null && typeof location === 'object') {\n      if (rootURL) {\n        set(location, 'rootURL', rootURL);\n      } // Allow the location to do any feature detection, such as AutoLocation\n      // detecting history support. This gives it a chance to set its\n      // `cancelRouterSetup` property which aborts routing.\n\n\n      if (typeof location.detect === 'function') {\n        location.detect();\n      } // ensure that initState is called AFTER the rootURL is set on\n      // the location instance\n\n\n      if (typeof location.initState === 'function') {\n        location.initState();\n      }\n    }\n  }\n  /**\n    Serializes the given query params according to their QP meta information.\n       @private\n    @method _serializeQueryParams\n    @param {Arrray<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n\n\n  _serializeQueryParams(routeInfos, queryParams) {\n    forEachQueryParam(this, routeInfos, queryParams, (key, value, qp) => {\n      if (qp) {\n        delete queryParams[key];\n        queryParams[qp.urlKey] = qp.route.serializeQueryParam(value, qp.urlKey, qp.type);\n      } else if (value === undefined) {\n        return; // We don't serialize undefined values\n      } else {\n        queryParams[key] = this._serializeQueryParam(value, typeOf(value));\n      }\n    });\n  }\n  /**\n    Serializes the value of a query parameter based on a type\n       @private\n    @method _serializeQueryParam\n    @param {Object} value\n    @param {String} type\n  */\n\n\n  _serializeQueryParam(value, type) {\n    if (value === null || value === undefined) {\n      return value;\n    } else if (type === 'array') {\n      return JSON.stringify(value);\n    }\n\n    return `${value}`;\n  }\n  /**\n    Deserializes the given query params according to their QP meta information.\n       @private\n    @method _deserializeQueryParams\n    @param {Array<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n\n\n  _deserializeQueryParams(routeInfos, queryParams) {\n    forEachQueryParam(this, routeInfos, queryParams, (key, value, qp) => {\n      // If we don't have QP meta info for a given key, then we do nothing\n      // because all values will be treated as strings\n      if (qp) {\n        delete queryParams[key];\n        queryParams[qp.prop] = qp.route.deserializeQueryParam(value, qp.urlKey, qp.type);\n      }\n    });\n  }\n  /**\n    Deserializes the value of a query parameter based on a default type\n       @private\n    @method _deserializeQueryParam\n    @param {Object} value\n    @param {String} defaultType\n  */\n\n\n  _deserializeQueryParam(value, defaultType) {\n    if (value === null || value === undefined) {\n      return value;\n    } else if (defaultType === 'boolean') {\n      return value === 'true';\n    } else if (defaultType === 'number') {\n      return Number(value).valueOf();\n    } else if (defaultType === 'array') {\n      return emberA(JSON.parse(value));\n    }\n\n    return value;\n  }\n  /**\n    Removes (prunes) any query params with default values from the given QP\n    object. Default values are determined from the QP meta information per key.\n       @private\n    @method _pruneDefaultQueryParamValues\n    @param {Array<RouteInfo>} routeInfos\n    @param {Object} queryParams\n    @return {Void}\n  */\n\n\n  _pruneDefaultQueryParamValues(routeInfos, queryParams) {\n    let qps = this._queryParamsFor(routeInfos);\n\n    for (let key in queryParams) {\n      let qp = qps.map[key];\n\n      if (qp && qp.serializedDefaultValue === queryParams[key]) {\n        delete queryParams[key];\n      }\n    }\n  }\n\n  _doTransition(_targetRouteName, models, _queryParams, _keepDefaultQueryParamValues) {\n    let targetRouteName = _targetRouteName || getActiveTargetName(this._routerMicrolib);\n\n    assert(`The route ${targetRouteName} was not found`, Boolean(targetRouteName) && this._routerMicrolib.hasRoute(targetRouteName));\n    this._initialTransitionStarted = true;\n    let queryParams = {};\n\n    this._processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams);\n\n    assign(queryParams, _queryParams);\n\n    this._prepareQueryParams(targetRouteName, models, queryParams, Boolean(_keepDefaultQueryParamValues));\n\n    let transition = this._routerMicrolib.transitionTo(targetRouteName, ...models, {\n      queryParams\n    });\n\n    didBeginTransition(transition, this);\n    return transition;\n  }\n\n  _processActiveTransitionQueryParams(targetRouteName, models, queryParams, _queryParams) {\n    // merge in any queryParams from the active transition which could include\n    // queryParams from the url on initial load.\n    if (!this._routerMicrolib.activeTransition) {\n      return;\n    }\n\n    let unchangedQPs = {};\n    let qpUpdates = this._qpUpdates;\n    let params = getFullQueryParams(this, this._routerMicrolib.activeTransition[STATE_SYMBOL]);\n\n    for (let key in params) {\n      if (!qpUpdates.has(key)) {\n        unchangedQPs[key] = params[key];\n      }\n    } // We need to fully scope queryParams so that we can create one object\n    // that represents both passed-in queryParams and ones that aren't changed\n    // from the active transition.\n\n\n    this._fullyScopeQueryParams(targetRouteName, models, _queryParams);\n\n    this._fullyScopeQueryParams(targetRouteName, models, unchangedQPs);\n\n    assign(queryParams, unchangedQPs);\n  }\n  /**\n    Prepares the query params for a URL or Transition. Restores any undefined QP\n    keys/values, serializes all values, and then prunes any default values.\n       @private\n    @method _prepareQueryParams\n    @param {String} targetRouteName\n    @param {Array<Object>} models\n    @param {Object} queryParams\n    @param {boolean} keepDefaultQueryParamValues\n    @return {Void}\n  */\n\n\n  _prepareQueryParams(targetRouteName, models, queryParams, _fromRouterService) {\n    let state = calculatePostTransitionState(this, targetRouteName, models);\n\n    this._hydrateUnsuppliedQueryParams(state, queryParams, Boolean(_fromRouterService));\n\n    this._serializeQueryParams(state.routeInfos, queryParams);\n\n    if (!_fromRouterService) {\n      this._pruneDefaultQueryParamValues(state.routeInfos, queryParams);\n    }\n  }\n  /**\n    Returns the meta information for the query params of a given route. This\n    will be overridden to allow support for lazy routes.\n       @private\n    @method _getQPMeta\n    @param {RouteInfo} routeInfo\n    @return {Object}\n  */\n\n\n  _getQPMeta(routeInfo) {\n    let route = routeInfo.route;\n    return route && get(route, '_qp');\n  }\n  /**\n    Returns a merged query params meta object for a given set of routeInfos.\n    Useful for knowing what query params are available for a given route hierarchy.\n       @private\n    @method _queryParamsFor\n    @param {Array<RouteInfo>} routeInfos\n    @return {Object}\n   */\n\n\n  _queryParamsFor(routeInfos) {\n    let routeInfoLength = routeInfos.length;\n    let leafRouteName = routeInfos[routeInfoLength - 1].name;\n    let cached = this._qpCache[leafRouteName];\n\n    if (cached !== undefined) {\n      return cached;\n    }\n\n    let shouldCache = true;\n    let map = {};\n    let qps = [];\n    let qpsByUrlKey = DEBUG ? {} : null;\n    let qpMeta;\n    let qp;\n    let urlKey;\n    let qpOther;\n\n    for (let i = 0; i < routeInfoLength; ++i) {\n      qpMeta = this._getQPMeta(routeInfos[i]);\n\n      if (!qpMeta) {\n        shouldCache = false;\n        continue;\n      } // Loop over each QP to make sure we don't have any collisions by urlKey\n\n\n      for (let i = 0; i < qpMeta.qps.length; i++) {\n        qp = qpMeta.qps[i];\n\n        if (DEBUG) {\n          urlKey = qp.urlKey;\n          qpOther = qpsByUrlKey[urlKey];\n\n          if (qpOther && qpOther.controllerName !== qp.controllerName) {\n            assert(`You're not allowed to have more than one controller property map to the same query param key, but both \\`${qpOther.scopedPropertyName}\\` and \\`${qp.scopedPropertyName}\\` map to \\`${urlKey}\\`. You can fix this by mapping one of the controller properties to a different query param key via the \\`as\\` config option, e.g. \\`${qpOther.prop}: { as: 'other-${qpOther.prop}' }\\``, false);\n          }\n\n          qpsByUrlKey[urlKey] = qp;\n        }\n\n        qps.push(qp);\n      }\n\n      assign(map, qpMeta.map);\n    }\n\n    let finalQPMeta = {\n      qps,\n      map\n    };\n\n    if (shouldCache) {\n      this._qpCache[leafRouteName] = finalQPMeta;\n    }\n\n    return finalQPMeta;\n  }\n  /**\n    Maps all query param keys to their fully scoped property name of the form\n    `controllerName:propName`.\n       @private\n    @method _fullyScopeQueryParams\n    @param {String} leafRouteName\n    @param {Array<Object>} contexts\n    @param {Object} queryParams\n    @return {Void}\n  */\n\n\n  _fullyScopeQueryParams(leafRouteName, contexts, queryParams) {\n    let state = calculatePostTransitionState(this, leafRouteName, contexts);\n    let routeInfos = state.routeInfos;\n    let qpMeta;\n\n    for (let i = 0, len = routeInfos.length; i < len; ++i) {\n      qpMeta = this._getQPMeta(routeInfos[i]);\n\n      if (!qpMeta) {\n        continue;\n      }\n\n      let qp;\n      let presentProp;\n\n      for (let j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) {\n        qp = qpMeta.qps[j];\n        presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n\n        if (presentProp) {\n          if (presentProp !== qp.scopedPropertyName) {\n            queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n            delete queryParams[presentProp];\n          }\n        }\n      }\n    }\n  }\n  /**\n    Hydrates (adds/restores) any query params that have pre-existing values into\n    the given queryParams hash. This is what allows query params to be \"sticky\"\n    and restore their last known values for their scope.\n       @private\n    @method _hydrateUnsuppliedQueryParams\n    @param {TransitionState} state\n    @param {Object} queryParams\n    @return {Void}\n  */\n\n\n  _hydrateUnsuppliedQueryParams(state, queryParams, _fromRouterService) {\n    let routeInfos = state.routeInfos;\n    let appCache = this._bucketCache;\n    let qpMeta;\n    let qp;\n    let presentProp;\n\n    for (let i = 0; i < routeInfos.length; ++i) {\n      qpMeta = this._getQPMeta(routeInfos[i]);\n\n      if (!qpMeta) {\n        continue;\n      }\n\n      for (let j = 0, qpLen = qpMeta.qps.length; j < qpLen; ++j) {\n        qp = qpMeta.qps[j];\n        presentProp = qp.prop in queryParams && qp.prop || qp.scopedPropertyName in queryParams && qp.scopedPropertyName || qp.urlKey in queryParams && qp.urlKey;\n        assert(`You passed the \\`${presentProp}\\` query parameter during a transition into ${qp.route.routeName}, please update to ${qp.urlKey}`, function () {\n          if (qp.urlKey === presentProp || qp.scopedPropertyName === presentProp) {\n            return true;\n          }\n\n          if (_fromRouterService && presentProp !== false && qp.urlKey !== qp.prop) {\n            // assumptions (mainly from current transitionTo_test):\n            // - this is only supposed to be run when there is an alias to a query param and the alias is used to set the param\n            // - when there is no alias: qp.urlKey == qp.prop\n            return false;\n          }\n\n          return true;\n        }());\n\n        if (presentProp) {\n          if (presentProp !== qp.scopedPropertyName) {\n            queryParams[qp.scopedPropertyName] = queryParams[presentProp];\n            delete queryParams[presentProp];\n          }\n        } else {\n          let cacheKey = calculateCacheKey(qp.route.fullRouteName, qp.parts, state.params);\n          queryParams[qp.scopedPropertyName] = appCache.lookup(cacheKey, qp.prop, qp.defaultValue);\n        }\n      }\n    }\n  }\n\n  _scheduleLoadingEvent(transition, originRoute) {\n    this._cancelSlowTransitionTimer();\n\n    this._slowTransitionTimer = scheduleOnce('routerTransitions', this, '_handleSlowTransition', transition, originRoute);\n  }\n\n  _handleSlowTransition(transition, originRoute) {\n    if (!this._routerMicrolib.activeTransition) {\n      // Don't fire an event if we've since moved on from\n      // the transition that put us in a loading state.\n      return;\n    }\n\n    let targetState = new RouterState(this, this._routerMicrolib, this._routerMicrolib.activeTransition[STATE_SYMBOL]);\n    this.set('targetState', targetState);\n    transition.trigger(true, 'loading', transition, originRoute);\n  }\n\n  _cancelSlowTransitionTimer() {\n    if (this._slowTransitionTimer) {\n      cancel(this._slowTransitionTimer);\n    }\n\n    this._slowTransitionTimer = null;\n  } // These three helper functions are used to ensure errors aren't\n  // re-raised if they're handled in a route's error action.\n\n\n  _markErrorAsHandled(error) {\n    this._handledErrors.add(error);\n  }\n\n  _isErrorHandled(error) {\n    return this._handledErrors.has(error);\n  }\n\n  _clearHandledError(error) {\n    this._handledErrors.delete(error);\n  }\n\n  _getEngineInstance({\n    name,\n    instanceId,\n    mountPoint\n  }) {\n    let engineInstances = this._engineInstances;\n\n    if (!engineInstances[name]) {\n      engineInstances[name] = Object.create(null);\n    }\n\n    let engineInstance = engineInstances[name][instanceId];\n\n    if (!engineInstance) {\n      let owner = getOwner(this);\n      assert(`You attempted to mount the engine '${name}' in your router map, but the engine can not be found.`, owner.hasRegistration(`engine:${name}`));\n      engineInstance = owner.buildChildEngineInstance(name, {\n        routable: true,\n        mountPoint\n      });\n      engineInstance.boot();\n      engineInstances[name][instanceId] = engineInstance;\n    }\n\n    return engineInstance;\n  }\n\n}\n/*\n  Helper function for iterating over routes in a set of routeInfos that are\n  at or above the given origin route. Example: if `originRoute` === 'foo.bar'\n  and the routeInfos given were for 'foo.bar.baz', then the given callback\n  will be invoked with the routes for 'foo.bar', 'foo', and 'application'\n  individually.\n\n  If the callback returns anything other than `true`, then iteration will stop.\n\n  @private\n  @param {Route} originRoute\n  @param {Array<RouteInfo>} routeInfos\n  @param {Function} callback\n  @return {Void}\n */\n\n\nfunction forEachRouteAbove(routeInfos, callback) {\n  for (let i = routeInfos.length - 1; i >= 0; --i) {\n    let routeInfo = routeInfos[i];\n    let route = routeInfo.route; // routeInfo.handler being `undefined` generally means either:\n    //\n    // 1. an error occurred during creation of the route in question\n    // 2. the route is across an async boundary (e.g. within an engine)\n    //\n    // In both of these cases, we cannot invoke the callback on that specific\n    // route, because it just doesn't exist...\n\n    if (route === undefined) {\n      continue;\n    }\n\n    if (callback(route, routeInfo) !== true) {\n      return;\n    }\n  }\n} // These get invoked when an action bubbles above ApplicationRoute\n// and are not meant to be overridable.\n\n\nlet defaultActionHandlers = {\n  willResolveModel(_routeInfos, transition, originRoute) {\n    this._scheduleLoadingEvent(transition, originRoute);\n  },\n\n  // Attempt to find an appropriate error route or substate to enter.\n  error(routeInfos, error, transition) {\n    let router = this;\n    let routeInfoWithError = routeInfos[routeInfos.length - 1];\n    forEachRouteAbove(routeInfos, (route, routeInfo) => {\n      // We don't check the leaf most routeInfo since that would\n      // technically be below where we're at in the route hierarchy.\n      if (routeInfo !== routeInfoWithError) {\n        // Check for the existence of an 'error' route.\n        let errorRouteName = findRouteStateName(route, 'error');\n\n        if (errorRouteName) {\n          router._markErrorAsHandled(error);\n\n          router.intermediateTransitionTo(errorRouteName, error);\n          return false;\n        }\n      } // Check for an 'error' substate route\n\n\n      let errorSubstateName = findRouteSubstateName(route, 'error');\n\n      if (errorSubstateName) {\n        router._markErrorAsHandled(error);\n\n        router.intermediateTransitionTo(errorSubstateName, error);\n        return false;\n      }\n\n      return true;\n    });\n    logError(error, `Error while processing route: ${transition.targetName}`);\n  },\n\n  // Attempt to find an appropriate loading route or substate to enter.\n  loading(routeInfos, transition) {\n    let router = this;\n    let routeInfoWithSlowLoading = routeInfos[routeInfos.length - 1];\n    forEachRouteAbove(routeInfos, (route, routeInfo) => {\n      // We don't check the leaf most routeInfos since that would\n      // technically be below where we're at in the route hierarchy.\n      if (routeInfo !== routeInfoWithSlowLoading) {\n        // Check for the existence of a 'loading' route.\n        let loadingRouteName = findRouteStateName(route, 'loading');\n\n        if (loadingRouteName) {\n          router.intermediateTransitionTo(loadingRouteName);\n          return false;\n        }\n      } // Check for loading substate\n\n\n      let loadingSubstateName = findRouteSubstateName(route, 'loading');\n\n      if (loadingSubstateName) {\n        router.intermediateTransitionTo(loadingSubstateName);\n        return false;\n      } // Don't bubble above pivot route.\n\n\n      return transition.pivotHandler !== route;\n    });\n  }\n\n};\n\nfunction logError(_error, initialMessage) {\n  let errorArgs = [];\n  let error;\n\n  if (_error && typeof _error === 'object' && typeof _error.errorThrown === 'object') {\n    error = _error.errorThrown;\n  } else {\n    error = _error;\n  }\n\n  if (initialMessage) {\n    errorArgs.push(initialMessage);\n  }\n\n  if (error) {\n    if (error.message) {\n      errorArgs.push(error.message);\n    }\n\n    if (error.stack) {\n      errorArgs.push(error.stack);\n    }\n\n    if (typeof error === 'string') {\n      errorArgs.push(error);\n    }\n  }\n\n  console.error(...errorArgs); //eslint-disable-line no-console\n}\n/**\n  Finds the name of the substate route if it exists for the given route. A\n  substate route is of the form `route_state`, such as `foo_loading`.\n\n  @private\n  @param {Route} route\n  @param {String} state\n  @return {String}\n*/\n\n\nfunction findRouteSubstateName(route, state) {\n  let owner = getOwner(route);\n  let {\n    routeName,\n    fullRouteName,\n    _router: router\n  } = route;\n  let substateName = `${routeName}_${state}`;\n  let substateNameFull = `${fullRouteName}_${state}`;\n  return routeHasBeenDefined(owner, router, substateName, substateNameFull) ? substateNameFull : '';\n}\n/**\n  Finds the name of the state route if it exists for the given route. A state\n  route is of the form `route.state`, such as `foo.loading`. Properly Handles\n  `application` named routes.\n\n  @private\n  @param {Route} route\n  @param {String} state\n  @return {String}\n*/\n\n\nfunction findRouteStateName(route, state) {\n  let owner = getOwner(route);\n  let {\n    routeName,\n    fullRouteName,\n    _router: router\n  } = route;\n  let stateName = routeName === 'application' ? state : `${routeName}.${state}`;\n  let stateNameFull = fullRouteName === 'application' ? state : `${fullRouteName}.${state}`;\n  return routeHasBeenDefined(owner, router, stateName, stateNameFull) ? stateNameFull : '';\n}\n/**\n  Determines whether or not a route has been defined by checking that the route\n  is in the Router's map and the owner has a registration for that route.\n\n  @private\n  @param {Owner} owner\n  @param {Router} router\n  @param {String} localName\n  @param {String} fullName\n  @return {Boolean}\n*/\n\n\nfunction routeHasBeenDefined(owner, router, localName, fullName) {\n  let routerHasRoute = router.hasRoute(fullName);\n  let ownerHasRoute = owner.hasRegistration(`template:${localName}`) || owner.hasRegistration(`route:${localName}`);\n  return routerHasRoute && ownerHasRoute;\n}\n\nexport function triggerEvent(routeInfos, ignoreFailure, name, args) {\n  if (!routeInfos) {\n    if (ignoreFailure) {\n      return;\n    }\n\n    throw new EmberError(`Can't trigger action '${name}' because your app hasn't finished transitioning into its first route. To trigger an action on destination routes during a transition, you can call \\`.send()\\` on the \\`Transition\\` object passed to the \\`model/beforeModel/afterModel\\` hooks.`);\n  }\n\n  let eventWasHandled = false;\n  let routeInfo, handler, actionHandler;\n\n  for (let i = routeInfos.length - 1; i >= 0; i--) {\n    routeInfo = routeInfos[i];\n    handler = routeInfo.route;\n    actionHandler = handler && handler.actions && handler.actions[name];\n\n    if (actionHandler) {\n      if (actionHandler.apply(handler, args) === true) {\n        eventWasHandled = true;\n      } else {\n        // Should only hit here if a non-bubbling error action is triggered on a route.\n        if (name === 'error') {\n          handler._router._markErrorAsHandled(args[0]);\n        }\n\n        return;\n      }\n    }\n  }\n\n  let defaultHandler = defaultActionHandlers[name];\n\n  if (defaultHandler) {\n    defaultHandler.apply(this, [routeInfos, ...args]);\n    return;\n  }\n\n  if (!eventWasHandled && !ignoreFailure) {\n    throw new EmberError(`Nothing handled the action '${name}'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.`);\n  }\n}\n\nfunction calculatePostTransitionState(emberRouter, leafRouteName, contexts) {\n  let state = emberRouter._routerMicrolib.applyIntent(leafRouteName, contexts);\n\n  let {\n    routeInfos,\n    params\n  } = state;\n\n  for (let i = 0; i < routeInfos.length; ++i) {\n    let routeInfo = routeInfos[i]; // If the routeInfo is not resolved, we serialize the context into params\n\n    if (!routeInfo.isResolved) {\n      params[routeInfo.name] = routeInfo.serialize(routeInfo.context);\n    } else {\n      params[routeInfo.name] = routeInfo.params;\n    }\n  }\n\n  return state;\n}\n\nfunction updatePaths(router) {\n  let infos = router._routerMicrolib.currentRouteInfos;\n\n  if (infos.length === 0) {\n    return;\n  }\n\n  let path = EmberRouter._routePath(infos);\n\n  let currentRouteName = infos[infos.length - 1].name;\n  let currentURL = router.get('location').getURL();\n  set(router, 'currentPath', path);\n  set(router, 'currentRouteName', currentRouteName);\n  set(router, 'currentURL', currentURL);\n  let appController = getOwner(router).lookup('controller:application');\n\n  if (!appController) {\n    // appController might not exist when top-level loading/error\n    // substates have been entered since ApplicationRoute hasn't\n    // actually been entered at that point.\n    return;\n  }\n\n  if (APP_CTRL_ROUTER_PROPS) {\n    if (!('currentPath' in appController)) {\n      Object.defineProperty(appController, 'currentPath', {\n        get() {\n          deprecate('Accessing `currentPath` on `controller:application` is deprecated, use the `currentPath` property on `service:router` instead.', false, {\n            id: 'application-controller.router-properties',\n            until: '4.0.0',\n            url: 'https://emberjs.com/deprecations/v3.x#toc_application-controller-router-properties',\n            for: 'ember-source',\n            since: {\n              enabled: '3.10.0-beta.1'\n            }\n          });\n          return get(router, 'currentPath');\n        }\n\n      });\n    }\n\n    notifyPropertyChange(appController, 'currentPath');\n\n    if (!('currentRouteName' in appController)) {\n      Object.defineProperty(appController, 'currentRouteName', {\n        get() {\n          deprecate('Accessing `currentRouteName` on `controller:application` is deprecated, use the `currentRouteName` property on `service:router` instead.', false, {\n            id: 'application-controller.router-properties',\n            until: '4.0.0',\n            url: 'https://emberjs.com/deprecations/v3.x#toc_application-controller-router-properties',\n            for: 'ember-source',\n            since: {\n              enabled: '3.10.0-beta.1'\n            }\n          });\n          return get(router, 'currentRouteName');\n        }\n\n      });\n    }\n\n    notifyPropertyChange(appController, 'currentRouteName');\n  }\n}\n\nEmberRouter.reopenClass({\n  /**\n    The `Router.map` function allows you to define mappings from URLs to routes\n    in your application. These mappings are defined within the\n    supplied callback function using `this.route`.\n       The first parameter is the name of the route which is used by default as the\n    path name as well.\n       The second parameter is the optional options hash. Available options are:\n         * `path`: allows you to provide your own path as well as mark dynamic\n        segments.\n      * `resetNamespace`: false by default; when nesting routes, ember will\n        combine the route names to form the fully-qualified route name, which is\n        used with `{{link-to}}` or manually transitioning to routes. Setting\n        `resetNamespace: true` will cause the route not to inherit from its\n        parent route's names. This is handy for preventing extremely long route names.\n        Keep in mind that the actual URL path behavior is still retained.\n       The third parameter is a function, which can be used to nest routes.\n    Nested routes, by default, will have the parent route tree's route name and\n    path prepended to it's own.\n       ```app/router.js\n    Router.map(function(){\n      this.route('post', { path: '/post/:post_id' }, function() {\n        this.route('edit');\n        this.route('comments', { resetNamespace: true }, function() {\n          this.route('new');\n        });\n      });\n    });\n    ```\n       @method map\n    @param callback\n    @public\n  */\n  map(callback) {\n    if (!this.dslCallbacks) {\n      this.dslCallbacks = [];\n      this.reopenClass({\n        dslCallbacks: this.dslCallbacks\n      });\n    }\n\n    this.dslCallbacks.push(callback);\n    return this;\n  },\n\n  _routePath(routeInfos) {\n    let path = []; // We have to handle coalescing resource names that\n    // are prefixed with their parent's names, e.g.\n    // ['foo', 'foo.bar.baz'] => 'foo.bar.baz', not 'foo.foo.bar.baz'\n\n    function intersectionMatches(a1, a2) {\n      for (let i = 0; i < a1.length; ++i) {\n        if (a1[i] !== a2[i]) {\n          return false;\n        }\n      }\n\n      return true;\n    }\n\n    let name, nameParts, oldNameParts;\n\n    for (let i = 1; i < routeInfos.length; i++) {\n      name = routeInfos[i].name;\n      nameParts = name.split('.');\n      oldNameParts = slice.call(path);\n\n      while (oldNameParts.length) {\n        if (intersectionMatches(oldNameParts, nameParts)) {\n          break;\n        }\n\n        oldNameParts.shift();\n      }\n\n      path.push(...nameParts.slice(oldNameParts.length));\n    }\n\n    return path.join('.');\n  }\n\n});\n\nfunction didBeginTransition(transition, router) {\n  let routerState = new RouterState(router, router._routerMicrolib, transition[STATE_SYMBOL]);\n\n  if (!router.currentState) {\n    router.set('currentState', routerState);\n  }\n\n  router.set('targetState', routerState);\n  transition.promise = transition.catch(error => {\n    if (router._isErrorHandled(error)) {\n      router._clearHandledError(error);\n    } else {\n      throw error;\n    }\n  }, 'Transition Error');\n}\n\nfunction forEachQueryParam(router, routeInfos, queryParams, callback) {\n  let qpCache = router._queryParamsFor(routeInfos);\n\n  for (let key in queryParams) {\n    if (!Object.prototype.hasOwnProperty.call(queryParams, key)) {\n      continue;\n    }\n\n    let value = queryParams[key];\n    let qp = qpCache.map[key];\n    callback(key, value, qp);\n  }\n}\n\nfunction findLiveRoute(liveRoutes, name) {\n  if (!liveRoutes) {\n    return;\n  }\n\n  let stack = [liveRoutes];\n\n  while (stack.length > 0) {\n    let test = stack.shift();\n\n    if (test.render.name === name) {\n      return test;\n    }\n\n    let outlets = test.outlets;\n\n    for (let outletName in outlets) {\n      stack.push(outlets[outletName]);\n    }\n  }\n\n  return;\n}\n\nfunction appendLiveRoute(liveRoutes, defaultParentState, renderOptions) {\n  let ownState = {\n    render: renderOptions,\n    outlets: Object.create(null),\n    wasUsed: false\n  };\n  let target;\n\n  if (renderOptions.into) {\n    target = findLiveRoute(liveRoutes, renderOptions.into);\n  } else {\n    target = defaultParentState;\n  }\n\n  if (target) {\n    set(target.outlets, renderOptions.outlet, ownState);\n  } else {\n    liveRoutes = ownState;\n  }\n\n  return {\n    liveRoutes,\n    ownState\n  };\n}\n\nfunction representEmptyRoute(liveRoutes, defaultParentState, {\n  routeName\n}) {\n  // the route didn't render anything\n  let alreadyAppended = findLiveRoute(liveRoutes, routeName);\n\n  if (alreadyAppended) {\n    // But some other route has already rendered our default\n    // template, so that becomes the default target for any\n    // children we may have.\n    return alreadyAppended;\n  } else {\n    // Create an entry to represent our default template name,\n    // just so other routes can target it and inherit its place\n    // in the outlet hierarchy.\n    defaultParentState.outlets.main = {\n      render: {\n        name: routeName,\n        outlet: 'main'\n      },\n      outlets: {}\n    };\n    return defaultParentState;\n  }\n}\n\nEmberRouter.reopen(Evented, {\n  /**\n    Handles updating the paths and notifying any listeners of the URL\n    change.\n       Triggers the router level `didTransition` hook.\n       For example, to notify google analytics when the route changes,\n    you could use this hook.  (Note: requires also including GA scripts, etc.)\n       ```javascript\n    import config from './config/environment';\n    import EmberRouter from '@ember/routing/router';\n    import { inject as service } from '@ember/service';\n       let Router = EmberRouter.extend({\n      location: config.locationType,\n         router: service(),\n         didTransition: function() {\n        this._super(...arguments);\n           ga('send', 'pageview', {\n          page: this.router.currentURL,\n          title: this.router.currentRouteName,\n        });\n      }\n    });\n    ```\n       @method didTransition\n    @public\n    @since 1.2.0\n  */\n  didTransition: defaultDidTransition,\n\n  /**\n    Handles notifying any listeners of an impending URL\n    change.\n       Triggers the router level `willTransition` hook.\n       @method willTransition\n    @public\n    @since 1.11.0\n  */\n  willTransition: defaultWillTransition,\n\n  /**\n   Represents the URL of the root of the application, often '/'. This prefix is\n   assumed on all routes defined on this router.\n      @property rootURL\n   @default '/'\n   @public\n  */\n  rootURL: '/',\n\n  /**\n   The `location` property determines the type of URL's that your\n   application will use.\n      The following location types are currently available:\n      * `history` - use the browser's history API to make the URLs look just like any standard URL\n   * `hash` - use `#` to separate the server part of the URL from the Ember part: `/blog/#/posts/new`\n   * `none` - do not store the Ember URL in the actual browser URL (mainly used for testing)\n   * `auto` - use the best option based on browser capabilities: `history` if possible, then `hash` if possible, otherwise `none`\n      This value is defaulted to `auto` by the `locationType` setting of `/config/environment.js`\n      @property location\n   @default 'hash'\n   @see {Location}\n   @public\n  */\n  location: 'hash',\n\n  /**\n   Represents the current URL.\n      @property url\n   @type {String}\n   @private\n  */\n  url: computed(function () {\n    let location = get(this, 'location');\n\n    if (typeof location === 'string') {\n      return undefined;\n    }\n\n    return location.getURL();\n  })\n});\n\nif (ROUTER_EVENTS) {\n  EmberRouter.reopen(ROUTER_EVENT_DEPRECATIONS);\n}\n\nexport default EmberRouter;","import { assign } from '@ember/polyfills';\nimport { shallowEqual } from '../utils';\nexport default class RouterState {\n  constructor(emberRouter, router, routerJsState) {\n    this.emberRouter = emberRouter;\n    this.router = router;\n    this.routerJsState = routerJsState;\n  }\n\n  isActiveIntent(routeName, models, queryParams) {\n    let state = this.routerJsState;\n\n    if (!this.router.isActiveIntent(routeName, models, undefined, state)) {\n      return false;\n    }\n\n    if (queryParams !== undefined && Object.keys(queryParams).length > 0) {\n      let visibleQueryParams = assign({}, queryParams);\n\n      this.emberRouter._prepareQueryParams(routeName, models, visibleQueryParams);\n\n      return shallowEqual(visibleQueryParams, state.queryParams);\n    }\n\n    return true;\n  }\n\n}","\"use strict\";\n/**\n  A Transition is a thennable (a promise-like object) that represents\n  an attempt to transition to another route. It can be aborted, either\n  explicitly via `abort` or by attempting another transition while a\n  previous one is still underway. An aborted transition can also\n  be `retry()`d later.\n\n  @class Transition\n  @public\n*/\n\n/**\n  The Transition's internal promise. Calling `.then` on this property\n  is that same as calling `.then` on the Transition object itself, but\n  this property is exposed for when you want to pass around a\n  Transition's promise, but not the Transition object itself, since\n  Transition object can be externally `abort`ed, while the promise\n  cannot.\n\n  @property promise\n  @type {Object}\n  @public\n  */\n\n/**\n  Custom state can be stored on a Transition's `data` object.\n  This can be useful for decorating a Transition within an earlier\n  hook and shared with a later hook. Properties set on `data` will\n  be copied to new transitions generated by calling `retry` on this\n  transition.\n\n  @property data\n  @type {Object}\n  @public\n*/\n\n/**\n  A standard promise hook that resolves if the transition\n  succeeds and rejects if it fails/redirects/aborts.\n\n  Forwards to the internal `promise` property which you can\n  use in situations where you want to pass around a thennable,\n  but not the Transition itself.\n\n  @method then\n  @param {Function} onFulfilled\n  @param {Function} onRejected\n  @param {String} label optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n  @public\n*/\n\n/**\n\n  Forwards to the internal `promise` property which you can\n  use in situations where you want to pass around a thennable,\n  but not the Transition itself.\n\n  @method catch\n  @param {Function} onRejection\n  @param {String} label optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n  @public\n*/\n\n/**\n\n  Forwards to the internal `promise` property which you can\n  use in situations where you want to pass around a thennable,\n  but not the Transition itself.\n\n  @method finally\n  @param {Function} callback\n  @param {String} label optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n  @public\n*/\n\n/**\n  Aborts the Transition. Note you can also implicitly abort a transition\n  by initiating another transition while a previous one is underway.\n\n  @method abort\n  @return {Transition} this transition\n  @public\n*/\n\n/**\n\n  Retries a previously-aborted transition (making sure to abort the\n  transition if it's still active). Returns a new transition that\n  represents the new attempt to transition.\n\n  @method retry\n  @return {Transition} new transition\n  @public\n  */\n\n/**\n\n  Sets the URL-changing method to be employed at the end of a\n  successful transition. By default, a new Transition will just\n  use `updateURL`, but passing 'replace' to this method will\n  cause the URL to update using 'replaceWith' instead. Omitting\n  a parameter will disable the URL change, allowing for transitions\n  that don't update the URL at completion (this is also used for\n  handleURL, since the URL has already changed before the\n  transition took place).\n\n  @method method\n  @param {String} method the type of URL-changing method to use\n    at the end of a transition. Accepted values are 'replace',\n    falsy values, or any other non-falsy value (which is\n    interpreted as an updateURL transition).\n\n  @return {Transition} this transition\n  @public\n*/\n\n/**\n\n  Fires an event on the current list of resolved/resolving\n  handlers within this transition. Useful for firing events\n  on route hierarchies that haven't fully been entered yet.\n\n  Note: This method is also aliased as `send`\n\n  @method trigger\n  @param {Boolean} [ignoreFailure=false] a boolean specifying whether unhandled events throw an error\n  @param {String} name the name of the event to fire\n  @public\n*/\n\n/**\n * This property is a `RouteInfo` object that represents\n * where the router is transitioning to. It's important\n * to note that a `RouteInfo` is a linked list and this\n * property represents the leafmost route.\n * @property {null|RouteInfo|RouteInfoWithAttributes} to\n * @public\n */\n\n/**\n * This property is a `RouteInfo` object that represents\n * where transition originated from. It's important\n * to note that a `RouteInfo` is a linked list and this\n * property represents the head node of the list.\n * In the case of an initial render, `from` will be set to\n * `null`.\n * @property {null|RouteInfoWithAttributes} from\n * @public\n */\n\n/**\n  Transitions are aborted and their promises rejected\n  when redirects occur; this method returns a promise\n  that will follow any redirects that occur and fulfill\n  with the value fulfilled by any redirecting transitions\n  that occur.\n\n  @method followRedirects\n  @return {Promise} a promise that fulfills with the same\n    value that the final redirecting transition fulfills with\n  @public\n*/\n\n/**\n  In non-production builds, this function will return the stack that this Transition was\n  created within. In production builds, this function will not be present.\n\n  @method debugCreationStack\n  @return string\n*/\n\n/**\n  In non-production builds, this function will return the stack that this Transition was\n  aborted within (or `undefined` if the Transition has not been aborted yet). In production\n  builds, this function will not be present.\n\n  @method debugAbortStack\n  @return string\n*/\n\n/**\n  In non-production builds, this property references the Transition that _this_ Transition\n  was derived from or `undefined` if this transition did not derive from another. In\n  production builds, this property will not be present.\n\n  @property debugPreviousTransition\n  @type {Transition | undefined}\n*/","import { get } from '@ember/-internals/metal';\nimport { getOwner } from '@ember/-internals/owner';\nimport EmberError from '@ember/error';\nimport { assign } from '@ember/polyfills';\nimport { STATE_SYMBOL } from 'router_js';\nconst ALL_PERIODS_REGEX = /\\./g;\nexport function extractRouteArgs(args) {\n  args = args.slice();\n  let possibleQueryParams = args[args.length - 1];\n  let queryParams;\n\n  if (possibleQueryParams && Object.prototype.hasOwnProperty.call(possibleQueryParams, 'queryParams')) {\n    // SAFETY: this cast is safe because we have just checked whether\n    // `possibleQueryParams` -- defined as the last item in args -- both exists\n    // and has the property `queryParams`. If either of these invariants change,\n    // ***this is unsafe and should be changed***.\n    queryParams = args.pop().queryParams;\n  } else {\n    queryParams = {};\n  } // UNSAFE: these are simply assumed as the existing behavior of the system.\n  // However, this could break if upstream refactors change it, and the types\n  // here would not be able to tell us; we would lie to everything downstream.\n\n\n  let routeName = args.shift();\n  let models = args;\n  return {\n    routeName,\n    models,\n    queryParams\n  };\n}\nexport function getActiveTargetName(router) {\n  let routeInfos = router.activeTransition ? router.activeTransition[STATE_SYMBOL].routeInfos : router.state.routeInfos;\n  return routeInfos[routeInfos.length - 1].name;\n}\nexport function stashParamNames(router, routeInfos) {\n  if (routeInfos['_namesStashed']) {\n    return;\n  } // This helper exists because router.js/route-recognizer.js awkwardly\n  // keeps separate a routeInfo's list of parameter names depending\n  // on whether a URL transition or named transition is happening.\n  // Hopefully we can remove this in the future.\n\n\n  let targetRouteName = routeInfos[routeInfos.length - 1].name;\n\n  let recogHandlers = router._routerMicrolib.recognizer.handlersFor(targetRouteName);\n\n  let dynamicParent;\n\n  for (let i = 0; i < routeInfos.length; ++i) {\n    let routeInfo = routeInfos[i];\n    let names = recogHandlers[i].names;\n\n    if (names.length) {\n      dynamicParent = routeInfo;\n    }\n\n    routeInfo['_names'] = names;\n    let route = routeInfo.route;\n\n    route._stashNames(routeInfo, dynamicParent);\n  }\n\n  routeInfos['_namesStashed'] = true;\n}\n\nfunction _calculateCacheValuePrefix(prefix, part) {\n  // calculates the dot separated sections from prefix that are also\n  // at the start of part - which gives us the route name\n  // given : prefix = site.article.comments, part = site.article.id\n  //      - returns: site.article (use get(values[site.article], 'id') to get the dynamic part - used below)\n  // given : prefix = site.article, part = site.article.id\n  //      - returns: site.article. (use get(values[site.article], 'id') to get the dynamic part - used below)\n  let prefixParts = prefix.split('.');\n  let currPrefix = '';\n\n  for (let i = 0; i < prefixParts.length; i++) {\n    let currPart = prefixParts.slice(0, i + 1).join('.');\n\n    if (part.indexOf(currPart) !== 0) {\n      break;\n    }\n\n    currPrefix = currPart;\n  }\n\n  return currPrefix;\n}\n/*\n  Stolen from Controller\n*/\n\n\nexport function calculateCacheKey(prefix, parts = [], values) {\n  let suffixes = '';\n\n  for (let i = 0; i < parts.length; ++i) {\n    let part = parts[i];\n\n    let cacheValuePrefix = _calculateCacheValuePrefix(prefix, part);\n\n    let value;\n\n    if (values) {\n      if (cacheValuePrefix && cacheValuePrefix in values) {\n        let partRemovedPrefix = part.indexOf(cacheValuePrefix) === 0 ? part.substr(cacheValuePrefix.length + 1) : part;\n        value = get(values[cacheValuePrefix], partRemovedPrefix);\n      } else {\n        value = get(values, part);\n      }\n    }\n\n    suffixes += `::${part}:${value}`;\n  }\n\n  return prefix + suffixes.replace(ALL_PERIODS_REGEX, '-');\n}\n/*\n  Controller-defined query parameters can come in three shapes:\n\n  Array\n    queryParams: ['foo', 'bar']\n  Array of simple objects where value is an alias\n    queryParams: [\n      {\n        'foo': 'rename_foo_to_this'\n      },\n      {\n        'bar': 'call_bar_this_instead'\n      }\n    ]\n  Array of fully defined objects\n    queryParams: [\n      {\n        'foo': {\n          as: 'rename_foo_to_this'\n        },\n      }\n      {\n        'bar': {\n          as: 'call_bar_this_instead',\n          scope: 'controller'\n        }\n      }\n    ]\n\n  This helper normalizes all three possible styles into the\n  'Array of fully defined objects' style.\n*/\n\nexport function normalizeControllerQueryParams(queryParams) {\n  let qpMap = {};\n\n  for (let i = 0; i < queryParams.length; ++i) {\n    accumulateQueryParamDescriptors(queryParams[i], qpMap);\n  }\n\n  return qpMap;\n}\n\nfunction accumulateQueryParamDescriptors(_desc, accum) {\n  let desc = _desc;\n  let tmp;\n\n  if (typeof desc === 'string') {\n    tmp = {};\n    tmp[desc] = {\n      as: null\n    };\n    desc = tmp;\n  }\n\n  for (let key in desc) {\n    if (!Object.prototype.hasOwnProperty.call(desc, key)) {\n      return;\n    }\n\n    let singleDesc = desc[key];\n\n    if (typeof singleDesc === 'string') {\n      singleDesc = {\n        as: singleDesc\n      };\n    }\n\n    tmp = accum[key] || {\n      as: null,\n      scope: 'model'\n    };\n    assign(tmp, singleDesc);\n    accum[key] = tmp;\n  }\n}\n/*\n  Check if a routeName resembles a url instead\n\n  @private\n*/\n\n\nexport function resemblesURL(str) {\n  return typeof str === 'string' && (str === '' || str[0] === '/');\n}\n/*\n  Returns an arguments array where the route name arg is prefixed based on the mount point\n\n  @private\n*/\n\nexport function prefixRouteNameArg(route, args) {\n  let routeName = args[0];\n  let owner = getOwner(route);\n  let prefix = owner.mountPoint; // only alter the routeName if it's actually referencing a route.\n\n  if (owner.routable && typeof routeName === 'string') {\n    if (resemblesURL(routeName)) {\n      throw new EmberError('Programmatic transitions by URL cannot be used within an Engine. Please use the route name instead.');\n    } else {\n      routeName = `${prefix}.${routeName}`;\n      args[0] = routeName;\n    }\n  }\n\n  return args;\n}\nexport function shallowEqual(a, b) {\n  let k;\n  let aCount = 0;\n  let bCount = 0;\n\n  for (k in a) {\n    if (Object.prototype.hasOwnProperty.call(a, k)) {\n      if (a[k] !== b[k]) {\n        return false;\n      }\n\n      aCount++;\n    }\n  }\n\n  for (k in b) {\n    if (Object.prototype.hasOwnProperty.call(b, k)) {\n      bCount++;\n    }\n  }\n\n  return aCount === bCount;\n}","export { default as Object, FrameworkObject } from './lib/system/object';\nexport { default as RegistryProxyMixin } from './lib/mixins/registry_proxy';\nexport { default as ContainerProxyMixin } from './lib/mixins/container_proxy';\nexport { default as copy } from './lib/copy';\nexport { default as compare } from './lib/compare';\nexport { default as isEqual } from './lib/is-equal';\nexport { default as Array, NativeArray, A, MutableArray, removeAt, uniqBy, isArray } from './lib/mixins/array';\nexport { default as Comparable } from './lib/mixins/comparable';\nexport { default as Namespace } from './lib/system/namespace';\nexport { default as ArrayProxy } from './lib/system/array_proxy';\nexport { default as ObjectProxy } from './lib/system/object_proxy';\nexport { default as CoreObject } from './lib/system/core_object';\nexport { default as ActionHandler } from './lib/mixins/action_handler';\nexport { default as Copyable } from './lib/mixins/copyable';\nexport { default as Enumerable } from './lib/mixins/enumerable';\nexport { default as _ProxyMixin, contentFor as _contentFor } from './lib/mixins/-proxy';\nexport { default as Observable } from './lib/mixins/observable';\nexport { default as MutableEnumerable } from './lib/mixins/mutable_enumerable';\nexport { default as TargetActionSupport } from './lib/mixins/target_action_support';\nexport { default as Evented } from './lib/mixins/evented';\nexport { default as PromiseProxyMixin } from './lib/mixins/promise_proxy';\nexport { default as RSVP, onerrorDefault } from './lib/ext/rsvp'; // just for side effect of extending Ember.RSVP\n\nexport { typeOf } from './lib/type-of';\nimport './lib/ext/function'; // just for side effect of extending Function.prototype","import { typeOf } from './type-of';\nimport Comparable from './mixins/comparable';\nconst TYPE_ORDER = {\n  undefined: 0,\n  null: 1,\n  boolean: 2,\n  number: 3,\n  string: 4,\n  array: 5,\n  object: 6,\n  instance: 7,\n  function: 8,\n  class: 9,\n  date: 10\n}; //\n// the spaceship operator\n//\n//                      `. ___\n//                     __,' __`.                _..----....____\n//         __...--.'``;.   ,.   ;``--..__     .'    ,-._    _.-'\n//   _..-''-------'   `'   `'   `'     O ``-''._   (,;') _,'\n// ,'________________                          \\`-._`-','\n//  `._              ```````````------...___   '-.._'-:\n//     ```--.._      ,.                     ````--...__\\-.\n//             `.--. `-` \"INFINITY IS LESS     ____    |  |`\n//               `. `.   THAN BEYOND\"        ,'`````.  ;  ;`\n//                 `._`.        __________   `.      \\'__/`\n//                    `-:._____/______/___/____`.     \\  `\n//                                |       `._    `.    \\\n//                                `._________`-.   `.   `.___\n//                                              SSt  `------'`\n\nfunction spaceship(a, b) {\n  let diff = a - b;\n  return (diff > 0) - (diff < 0);\n}\n/**\n @module @ember/utils\n*/\n\n/**\n Compares two javascript values and returns:\n\n  - -1 if the first is smaller than the second,\n  - 0 if both are equal,\n  - 1 if the first is greater than the second.\n\n  ```javascript\n  import { compare } from '@ember/utils';\n\n  compare('hello', 'hello');  // 0\n  compare('abc', 'dfg');      // -1\n  compare(2, 1);              // 1\n  ```\n\n If the types of the two objects are different precedence occurs in the\n following order, with types earlier in the list considered `<` types\n later in the list:\n\n  - undefined\n  - null\n  - boolean\n  - number\n  - string\n  - array\n  - object\n  - instance\n  - function\n  - class\n  - date\n\n  ```javascript\n  import { compare } from '@ember/utils';\n\n  compare('hello', 50);       // 1\n  compare(50, 'hello');       // -1\n  ```\n\n @method compare\n @for @ember/utils\n @static\n @param {Object} v First value to compare\n @param {Object} w Second value to compare\n @return {Number} -1 if v < w, 0 if v = w and 1 if v > w.\n @public\n*/\n\n\nexport default function compare(v, w) {\n  if (v === w) {\n    return 0;\n  }\n\n  let type1 = typeOf(v);\n  let type2 = typeOf(w);\n\n  if (type1 === 'instance' && Comparable.detect(v) && v.constructor.compare) {\n    return v.constructor.compare(v, w);\n  }\n\n  if (type2 === 'instance' && Comparable.detect(w) && w.constructor.compare) {\n    return w.constructor.compare(w, v) * -1;\n  }\n\n  let res = spaceship(TYPE_ORDER[type1], TYPE_ORDER[type2]);\n\n  if (res !== 0) {\n    return res;\n  } // types are equal - so we have to check values now\n\n\n  switch (type1) {\n    case 'boolean':\n    case 'number':\n      return spaceship(v, w);\n\n    case 'string':\n      return spaceship(v.localeCompare(w), 0);\n\n    case 'array':\n      {\n        let vLen = v.length;\n        let wLen = w.length;\n        let len = Math.min(vLen, wLen);\n\n        for (let i = 0; i < len; i++) {\n          let r = compare(v[i], w[i]);\n\n          if (r !== 0) {\n            return r;\n          }\n        } // all elements are equal now\n        // shorter array should be ordered first\n\n\n        return spaceship(vLen, wLen);\n      }\n\n    case 'instance':\n      if (Comparable.detect(v)) {\n        return v.compare(v, w);\n      }\n\n      return 0;\n\n    case 'date':\n      return spaceship(v.getTime(), w.getTime());\n\n    default:\n      return 0;\n  }\n}","import { assert, deprecate } from '@ember/debug';\nimport EmberObject from './system/object';\nimport Copyable from './mixins/copyable';\n/**\n @module @ember/object\n*/\n\nfunction _copy(obj, deep, seen, copies) {\n  // primitive data types are immutable, just return them.\n  if (typeof obj !== 'object' || obj === null) {\n    return obj;\n  }\n\n  let ret, loc; // avoid cyclical loops\n\n  if (deep && (loc = seen.indexOf(obj)) >= 0) {\n    return copies[loc];\n  }\n\n  if (deep) {\n    seen.push(obj);\n  } // IMPORTANT: this specific test will detect a native array only. Any other\n  // object will need to implement Copyable.\n\n\n  if (Array.isArray(obj)) {\n    ret = obj.slice();\n\n    if (deep) {\n      copies.push(ret);\n      loc = ret.length;\n\n      while (--loc >= 0) {\n        ret[loc] = _copy(ret[loc], deep, seen, copies);\n      }\n    }\n  } else if (Copyable.detect(obj)) {\n    ret = obj.copy(deep, seen, copies);\n\n    if (deep) {\n      copies.push(ret);\n    }\n  } else if (obj instanceof Date) {\n    ret = new Date(obj.getTime());\n\n    if (deep) {\n      copies.push(ret);\n    }\n  } else {\n    assert('Cannot clone an EmberObject that does not implement Copyable', !(obj instanceof EmberObject) || Copyable.detect(obj));\n    ret = {};\n\n    if (deep) {\n      copies.push(ret);\n    }\n\n    let key;\n\n    for (key in obj) {\n      // support Null prototype\n      if (!Object.prototype.hasOwnProperty.call(obj, key)) {\n        continue;\n      } // Prevents browsers that don't respect non-enumerability from\n      // copying internal Ember properties\n\n\n      if (key.substring(0, 2) === '__') {\n        continue;\n      }\n\n      ret[key] = deep ? _copy(obj[key], deep, seen, copies) : obj[key];\n    }\n  }\n\n  return ret;\n}\n/**\n  Creates a shallow copy of the passed object. A deep copy of the object is\n  returned if the optional `deep` argument is `true`.\n\n  If the passed object implements the `Copyable` interface, then this\n  function will delegate to the object's `copy()` method and return the\n  result. See `Copyable` for further details.\n\n  For primitive values (which are immutable in JavaScript), the passed object\n  is simply returned.\n\n  @method copy\n  @deprecated Use 'ember-copy' addon instead\n  @static\n  @for @ember/object/internals\n  @param {Object} obj The object to clone\n  @param {Boolean} [deep=false] If true, a deep copy of the object is made.\n  @return {Object} The copied object\n  @public\n*/\n\n\nexport default function copy(obj, deep) {\n  deprecate('Use ember-copy addon instead of copy method and Copyable mixin.', false, {\n    id: 'ember-runtime.deprecate-copy-copyable',\n    until: '4.0.0',\n    url: 'https://emberjs.com/deprecations/v3.x/#toc_ember-runtime-deprecate-copy-copyable'\n  }); // fast paths\n\n  if ('object' !== typeof obj || obj === null) {\n    return obj; // can't copy primitives\n  }\n\n  if (!Array.isArray(obj) && Copyable.detect(obj)) {\n    return obj.copy(deep);\n  }\n\n  return _copy(obj, deep, deep ? [] : null, deep ? [] : null);\n}","/**\n@module ember\n*/\nimport { ENV } from '@ember/-internals/environment';\nimport { on, computed, observer } from '@ember/-internals/metal';\nimport { deprecate } from '@ember/debug';\nimport { FUNCTION_PROTOTYPE_EXTENSIONS } from '@ember/deprecated-features';\n\nif (FUNCTION_PROTOTYPE_EXTENSIONS && ENV.EXTEND_PROTOTYPES.Function) {\n  Object.defineProperties(Function.prototype, {\n    /**\n      The `property` extension of Javascript's Function prototype is available\n      when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n      `true`, which is the default.\n       Computed properties allow you to treat a function like a property:\n       ```app/utils/president.js\n      import EmberObject from '@ember/object';\n       export default EmberObject.extend({\n        firstName: '',\n        lastName:  '',\n         fullName: function() {\n          return this.get('firstName') + ' ' + this.get('lastName');\n        }.property() // Call this flag to mark the function as a property\n      });\n      ```\n       ```javascript\n      let president = President.create({\n        firstName: 'Barack',\n        lastName: 'Obama'\n      });\n       president.get('fullName'); // 'Barack Obama'\n      ```\n       Treating a function like a property is useful because they can work with\n      bindings, just like any other property.\n       Many computed properties have dependencies on other properties. For\n      example, in the above example, the `fullName` property depends on\n      `firstName` and `lastName` to determine its value. You can tell Ember\n      about these dependencies like this:\n       ```app/utils/president.js\n      import EmberObject from '@ember/object';\n       export default EmberObject.extend({\n        firstName: '',\n        lastName:  '',\n         fullName: function() {\n          return this.get('firstName') + ' ' + this.get('lastName');\n           // Tell Ember.js that this computed property depends on firstName\n          // and lastName\n        }.property('firstName', 'lastName')\n      });\n      ```\n       Make sure you list these dependencies so Ember knows when to update\n      bindings that connect to a computed property. Changing a dependency\n      will not immediately trigger an update of the computed property, but\n      will instead clear the cache so that it is updated when the next `get`\n      is called on the property.\n       See [ComputedProperty](/ember/release/classes/ComputedProperty), [@ember/object/computed](/ember/release/classes/@ember%2Fobject%2Fcomputed).\n       @method property\n      @for Function\n      @public\n    */\n    property: {\n      configurable: true,\n      enumerable: false,\n      writable: true,\n      value: function () {\n        deprecate(`Function prototype extensions have been deprecated, please migrate from function(){}.property('bar') to computed('bar', function() {}).`, false, {\n          id: 'function-prototype-extensions.property',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-property'\n        });\n        return computed(...arguments, this);\n      }\n    },\n\n    /**\n      The `observes` extension of Javascript's Function prototype is available\n      when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n      true, which is the default.\n       You can observe property changes simply by adding the `observes`\n      call to the end of your method declarations in classes that you write.\n      For example:\n       ```javascript\n      import EmberObject from '@ember/object';\n       EmberObject.extend({\n        valueObserver: function() {\n          // Executes whenever the \"value\" property changes\n        }.observes('value')\n      });\n      ```\n       In the future this method may become asynchronous.\n       See `observer`.\n       @method observes\n      @for Function\n      @public\n    */\n    observes: {\n      configurable: true,\n      enumerable: false,\n      writable: true,\n      value: function () {\n        deprecate(`Function prototype extensions have been deprecated, please migrate from function(){}.observes('foo') to observer('foo', function() {}).`, false, {\n          id: 'function-prototype-extensions.observes',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-observes'\n        });\n        return observer(...arguments, this);\n      }\n    },\n\n    /**\n      The `on` extension of Javascript's Function prototype is available\n      when `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Function` is\n      true, which is the default.\n       You can listen for events simply by adding the `on` call to the end of\n      your method declarations in classes or mixins that you write. For example:\n       ```javascript\n      import Mixin from '@ember/mixin';\n       Mixin.create({\n        doSomethingWithElement: function() {\n          // Executes whenever the \"didInsertElement\" event fires\n        }.on('didInsertElement')\n      });\n      ```\n       See `@ember/object/evented/on`.\n       @method on\n      @for Function\n      @public\n    */\n    on: {\n      configurable: true,\n      enumerable: false,\n      writable: true,\n      value: function () {\n        deprecate(`Function prototype extensions have been deprecated, please migrate from function(){}.on('foo') to on('foo', function() {}).`, false, {\n          id: 'function-prototype-extensions.on',\n          until: '4.0.0',\n          url: 'https://deprecations.emberjs.com/v3.x#toc_function-prototype-extensions-on'\n        });\n        return on(...arguments, this);\n      }\n    }\n  });\n}","import * as RSVP from 'rsvp';\nimport { backburner, _rsvpErrorQueue } from '@ember/runloop';\nimport { getDispatchOverride } from '@ember/-internals/error-handling';\nimport { assert } from '@ember/debug';\nRSVP.configure('async', (callback, promise) => {\n  backburner.schedule('actions', null, callback, promise);\n});\nRSVP.configure('after', cb => {\n  backburner.schedule(_rsvpErrorQueue, null, cb);\n});\nRSVP.on('error', onerrorDefault);\nexport function onerrorDefault(reason) {\n  let error = errorFor(reason);\n\n  if (error) {\n    let overrideDispatch = getDispatchOverride();\n\n    if (overrideDispatch) {\n      overrideDispatch(error);\n    } else {\n      throw error;\n    }\n  }\n}\n\nfunction errorFor(reason) {\n  if (!reason) return;\n\n  if (reason.errorThrown) {\n    return unwrapErrorThrown(reason);\n  }\n\n  if (reason.name === 'UnrecognizedURLError') {\n    assert(`The URL '${reason.message}' did not match any routes in your application`, false);\n    return;\n  }\n\n  if (reason.name === 'TransitionAborted') {\n    return;\n  }\n\n  return reason;\n}\n\nfunction unwrapErrorThrown(reason) {\n  let error = reason.errorThrown;\n\n  if (typeof error === 'string') {\n    error = new Error(error);\n  }\n\n  Object.defineProperty(error, '__reason_with_error_thrown__', {\n    value: reason,\n    enumerable: false\n  });\n  return error;\n}\n\nexport default RSVP;","/**\n @module @ember/utils\n*/\n\n/**\n  Compares two objects, returning true if they are equal.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n\n  isEqual('hello', 'hello');                   // true\n  isEqual(1, 2);                               // false\n  ```\n\n  `isEqual` is a more specific comparison than a triple equal comparison.\n  It will call the `isEqual` instance method on the objects being\n  compared, allowing finer control over when objects should be considered\n  equal to each other.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n  import EmberObject from '@ember/object';\n\n  let Person = EmberObject.extend({\n    isEqual(other) { return this.ssn == other.ssn; }\n  });\n\n  let personA = Person.create({name: 'Muhammad Ali', ssn: '123-45-6789'});\n  let personB = Person.create({name: 'Cassius Clay', ssn: '123-45-6789'});\n\n  isEqual(personA, personB); // true\n  ```\n\n  Due to the expense of array comparisons, collections will never be equal to\n  each other even if each of their items are equal to each other.\n\n  ```javascript\n  import { isEqual } from '@ember/utils';\n\n  isEqual([4, 2], [4, 2]);                     // false\n  ```\n\n  @method isEqual\n  @for @ember/utils\n  @static\n  @param {Object} a first object to compare\n  @param {Object} b second object to compare\n  @return {Boolean}\n  @public\n*/\nexport default function isEqual(a, b) {\n  if (a && typeof a.isEqual === 'function') {\n    return a.isEqual(b);\n  }\n\n  if (a instanceof Date && b instanceof Date) {\n    return a.getTime() === b.getTime();\n  }\n\n  return a === b;\n}","/**\n@module ember\n*/\nimport { meta } from '@ember/-internals/meta';\nimport { get, set, defineProperty, Mixin, tagForObject, computed, CUSTOM_TAG_FOR, tagForProperty } from '@ember/-internals/metal';\nimport { setProxy, setupMandatorySetter, isObject } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { combine, updateTag, tagFor, tagMetaFor } from '@glimmer/validator';\nexport function contentFor(proxy) {\n  let content = get(proxy, 'content');\n  updateTag(tagForObject(proxy), tagForObject(content));\n  return content;\n}\n/**\n  `Ember.ProxyMixin` forwards all properties not defined by the proxy itself\n  to a proxied `content` object.  See ObjectProxy for more details.\n\n  @class ProxyMixin\n  @namespace Ember\n  @private\n*/\n\nexport default Mixin.create({\n  /**\n    The object whose properties will be forwarded.\n     @property content\n    @type {unknown}\n    @default null\n    @public\n  */\n  content: null,\n\n  init() {\n    this._super(...arguments);\n\n    setProxy(this);\n    tagForObject(this);\n  },\n\n  willDestroy() {\n    this.set('content', null);\n\n    this._super(...arguments);\n  },\n\n  isTruthy: computed('content', function () {\n    return Boolean(get(this, 'content'));\n  }),\n\n  [CUSTOM_TAG_FOR](key, addMandatorySetter) {\n    let meta = tagMetaFor(this);\n    let tag = tagFor(this, key, meta);\n\n    if (DEBUG) {\n      // TODO: Replace this with something more first class for tracking tags in DEBUG\n      tag._propertyKey = key;\n    }\n\n    if (key in this) {\n      if (DEBUG && addMandatorySetter) {\n        setupMandatorySetter(tag, this, key);\n      }\n\n      return tag;\n    } else {\n      let tags = [tag, tagFor(this, 'content', meta)];\n      let content = contentFor(this);\n\n      if (isObject(content)) {\n        tags.push(tagForProperty(content, key, addMandatorySetter));\n      }\n\n      return combine(tags);\n    }\n  },\n\n  unknownProperty(key) {\n    let content = contentFor(this);\n\n    if (content) {\n      return get(content, key);\n    }\n  },\n\n  setUnknownProperty(key, value) {\n    let m = meta(this);\n\n    if (m.isInitializing() || m.isPrototypeMeta(this)) {\n      // if marked as prototype or object is initializing then just\n      // defineProperty rather than delegate\n      defineProperty(this, key, null, value);\n      return value;\n    }\n\n    let content = contentFor(this);\n    assert(`Cannot delegate set('${key}', ${value}) to the 'content' property of object proxy ${this}: its 'content' is undefined.`, content);\n    return set(content, key, value);\n  }\n\n});","/**\n@module ember\n*/\nimport { Mixin, get } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\n/**\n  `Ember.ActionHandler` is available on some familiar classes including\n  `Route`, `Component`, and `Controller`.\n  (Internally the mixin is used by `Ember.CoreView`, `Ember.ControllerMixin`,\n  and `Route` and available to the above classes through\n  inheritance.)\n\n  @class ActionHandler\n  @namespace Ember\n  @private\n*/\n\nconst ActionHandler = Mixin.create({\n  mergedProperties: ['actions'],\n\n  /**\n    The collection of functions, keyed by name, available on this\n    `ActionHandler` as action targets.\n     These functions will be invoked when a matching `{{action}}` is triggered\n    from within a template and the application's current route is this route.\n     Actions can also be invoked from other parts of your application\n    via `ActionHandler#send`.\n     The `actions` hash will inherit action handlers from\n    the `actions` hash defined on extended parent classes\n    or mixins rather than just replace the entire hash, e.g.:\n     ```app/mixins/can-display-banner.js\n    import Mixin from '@ember/mixin';\n     export default Mixin.create({\n      actions: {\n        displayBanner(msg) {\n          // ...\n        }\n      }\n    });\n    ```\n     ```app/routes/welcome.js\n    import Route from '@ember/routing/route';\n    import CanDisplayBanner from '../mixins/can-display-banner';\n     export default Route.extend(CanDisplayBanner, {\n      actions: {\n        playMusic() {\n          // ...\n        }\n      }\n    });\n     // `WelcomeRoute`, when active, will be able to respond\n    // to both actions, since the actions hash is merged rather\n    // then replaced when extending mixins / parent classes.\n    this.send('displayBanner');\n    this.send('playMusic');\n    ```\n     Within a Controller, Route or Component's action handler,\n    the value of the `this` context is the Controller, Route or\n    Component object:\n     ```app/routes/song.js\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      actions: {\n        myAction() {\n          this.controllerFor(\"song\");\n          this.transitionTo(\"other.route\");\n          ...\n        }\n      }\n    });\n    ```\n     It is also possible to call `this._super(...arguments)` from within an\n    action handler if it overrides a handler defined on a parent\n    class or mixin:\n     Take for example the following routes:\n     ```app/mixins/debug-route.js\n    import Mixin from '@ember/mixin';\n     export default Mixin.create({\n      actions: {\n        debugRouteInformation() {\n          console.debug(\"It's a-me, console.debug!\");\n        }\n      }\n    });\n    ```\n     ```app/routes/annoying-debug.js\n    import Route from '@ember/routing/route';\n    import DebugRoute from '../mixins/debug-route';\n     export default Route.extend(DebugRoute, {\n      actions: {\n        debugRouteInformation() {\n          // also call the debugRouteInformation of mixed in DebugRoute\n          this._super(...arguments);\n           // show additional annoyance\n          window.alert(...);\n        }\n      }\n    });\n    ```\n     ## Bubbling\n     By default, an action will stop bubbling once a handler defined\n    on the `actions` hash handles it. To continue bubbling the action,\n    you must return `true` from the handler:\n     ```app/router.js\n    Router.map(function() {\n      this.route(\"album\", function() {\n        this.route(\"song\");\n      });\n    });\n    ```\n     ```app/routes/album.js\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      actions: {\n        startPlaying: function() {\n        }\n      }\n    });\n    ```\n     ```app/routes/album-song.js\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      actions: {\n        startPlaying() {\n          // ...\n           if (actionShouldAlsoBeTriggeredOnParentRoute) {\n            return true;\n          }\n        }\n      }\n    });\n    ```\n     @property actions\n    @type Object\n    @default null\n    @public\n  */\n\n  /**\n    Triggers a named action on the `ActionHandler`. Any parameters\n    supplied after the `actionName` string will be passed as arguments\n    to the action target function.\n     If the `ActionHandler` has its `target` property set, actions may\n    bubble to the `target`. Bubbling happens when an `actionName` can\n    not be found in the `ActionHandler`'s `actions` hash or if the\n    action target function returns `true`.\n     Example\n     ```app/routes/welcome.js\n    import Route from '@ember/routing/route';\n     export default Route.extend({\n      actions: {\n        playTheme() {\n          this.send('playMusic', 'theme.mp3');\n        },\n        playMusic(track) {\n          // ...\n        }\n      }\n    });\n    ```\n     @method send\n    @param {String} actionName The action to trigger\n    @param {*} context a context to send with the action\n    @public\n  */\n  send(actionName, ...args) {\n    assert(`Attempted to call .send() with the action '${actionName}' on the destroyed object '${this}'.`, !this.isDestroying && !this.isDestroyed);\n\n    if (this.actions && this.actions[actionName]) {\n      let shouldBubble = this.actions[actionName].apply(this, args) === true;\n\n      if (!shouldBubble) {\n        return;\n      }\n    }\n\n    let target = get(this, 'target');\n\n    if (target) {\n      assert(`The \\`target\\` for ${this} (${target}) does not have a \\`send\\` method`, typeof target.send === 'function');\n      target.send(...arguments);\n    }\n  }\n\n});\nexport default ActionHandler;","/**\n@module @ember/array\n*/\nimport { DEBUG } from '@glimmer/env';\nimport { PROXY_CONTENT } from '@ember/-internals/metal';\nimport { setEmberArray, HAS_NATIVE_PROXY } from '@ember/-internals/utils';\nimport { get, set, objectAt, replaceInNativeArray, replace, computed, Mixin, hasListeners, beginPropertyChanges, endPropertyChanges, addArrayObserver, removeArrayObserver, arrayContentWillChange, arrayContentDidChange, nativeDescDecorator as descriptor } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nimport Enumerable from './enumerable';\nimport compare from '../compare';\nimport { ENV } from '@ember/-internals/environment';\nimport Observable from '../mixins/observable';\nimport MutableEnumerable from './mutable_enumerable';\nimport { typeOf } from '../type-of';\nconst EMPTY_ARRAY = Object.freeze([]);\n\nconst identityFunction = item => item;\n\nexport function uniqBy(array, key = identityFunction) {\n  assert(`first argument passed to \\`uniqBy\\` should be array`, isArray(array));\n  let ret = A();\n  let seen = new Set();\n  let getter = typeof key === 'function' ? key : item => get(item, key);\n  array.forEach(item => {\n    let val = getter(item);\n\n    if (!seen.has(val)) {\n      seen.add(val);\n      ret.push(item);\n    }\n  });\n  return ret;\n}\n\nfunction iter(key, value) {\n  let valueProvided = arguments.length === 2;\n  return valueProvided ? item => value === get(item, key) : item => Boolean(get(item, key));\n}\n\nfunction findIndex(array, predicate, startAt) {\n  let len = array.length;\n\n  for (let index = startAt; index < len; index++) {\n    let item = objectAt(array, index);\n\n    if (predicate(item, index, array)) {\n      return index;\n    }\n  }\n\n  return -1;\n}\n\nfunction find(array, callback, target) {\n  let predicate = callback.bind(target);\n  let index = findIndex(array, predicate, 0);\n  return index === -1 ? undefined : objectAt(array, index);\n}\n\nfunction any(array, callback, target) {\n  let predicate = callback.bind(target);\n  return findIndex(array, predicate, 0) !== -1;\n}\n\nfunction every(array, callback, target) {\n  let cb = callback.bind(target);\n\n  let predicate = (item, index, array) => !cb(item, index, array);\n\n  return findIndex(array, predicate, 0) === -1;\n}\n\nfunction indexOf(array, val, startAt = 0, withNaNCheck) {\n  let len = array.length;\n\n  if (startAt < 0) {\n    startAt += len;\n  } // SameValueZero comparison (NaN !== NaN)\n\n\n  let predicate = withNaNCheck && val !== val ? item => item !== item : item => item === val;\n  return findIndex(array, predicate, startAt);\n}\n\nexport function removeAt(array, index, len = 1) {\n  assert(`\\`removeAt\\` index provided is out of range`, index > -1 && index < array.length);\n  replace(array, index, len, EMPTY_ARRAY);\n  return array;\n}\n\nfunction insertAt(array, index, item) {\n  assert(`\\`insertAt\\` index provided is out of range`, index > -1 && index <= array.length);\n  replace(array, index, 0, [item]);\n  return item;\n}\n/**\n  Returns true if the passed object is an array or Array-like.\n\n  Objects are considered Array-like if any of the following are true:\n\n    - the object is a native Array\n    - the object has an objectAt property\n    - the object is an Object, and has a length property\n\n  Unlike `typeOf` this method returns true even if the passed object is\n  not formally an array but appears to be array-like (i.e. implements `Array`)\n\n  ```javascript\n  import { isArray } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  isArray();                                      // false\n  isArray([]);                                    // true\n  isArray(ArrayProxy.create({ content: [] }));    // true\n  ```\n\n  @method isArray\n  @static\n  @for @ember/array\n  @param {Object} obj The object to test\n  @return {Boolean} true if the passed object is an array or Array-like\n  @public\n*/\n\n\nexport function isArray(_obj) {\n  let obj = _obj;\n\n  if (DEBUG && HAS_NATIVE_PROXY && typeof _obj === 'object' && _obj !== null) {\n    let possibleProxyContent = _obj[PROXY_CONTENT];\n\n    if (possibleProxyContent !== undefined) {\n      obj = possibleProxyContent;\n    }\n  }\n\n  if (!obj || obj.setInterval) {\n    return false;\n  }\n\n  if (Array.isArray(obj) || ArrayMixin.detect(obj)) {\n    return true;\n  }\n\n  let type = typeOf(obj);\n\n  if ('array' === type) {\n    return true;\n  }\n\n  let length = obj.length;\n\n  if (typeof length === 'number' && length === length && 'object' === type) {\n    return true;\n  }\n\n  return false;\n}\n/*\n  This allows us to define computed properties that are not enumerable.\n  The primary reason this is important is that when `NativeArray` is\n  applied to `Array.prototype` we need to ensure that we do not add _any_\n  new enumerable properties.\n*/\n\nfunction nonEnumerableComputed() {\n  let property = computed(...arguments);\n  property.enumerable = false;\n  return property;\n}\n\nfunction mapBy(key) {\n  return this.map(next => get(next, key));\n} // ..........................................................\n// ARRAY\n//\n\n/**\n  This mixin implements Observer-friendly Array-like behavior. It is not a\n  concrete implementation, but it can be used up by other classes that want\n  to appear like arrays.\n\n  For example, ArrayProxy is a concrete class that can be instantiated to\n  implement array-like behavior. This class uses the Array Mixin by way of\n  the MutableArray mixin, which allows observable changes to be made to the\n  underlying array.\n\n  This mixin defines methods specifically for collections that provide\n  index-ordered access to their contents. When you are designing code that\n  needs to accept any kind of Array-like object, you should use these methods\n  instead of Array primitives because these will properly notify observers of\n  changes to the array.\n\n  Although these methods are efficient, they do add a layer of indirection to\n  your application so it is a good idea to use them only when you need the\n  flexibility of using both true JavaScript arrays and \"virtual\" arrays such\n  as controllers and collections.\n\n  You can use the methods defined in this module to access and modify array\n  contents in an observable-friendly way. You can also be notified whenever\n  the membership of an array changes by using `.observes('myArray.[]')`.\n\n  To support `EmberArray` in your own class, you must override two\n  primitives to use it: `length()` and `objectAt()`.\n\n  @class EmberArray\n  @uses Enumerable\n  @since Ember 0.9.0\n  @public\n*/\n\n\nconst ArrayMixin = Mixin.create(Enumerable, {\n  init() {\n    this._super(...arguments);\n\n    setEmberArray(this);\n  },\n\n  /**\n    __Required.__ You must implement this method to apply this mixin.\n     Your array must support the `length` property. Your replace methods should\n    set this property whenever it changes.\n     @property {Number} length\n    @public\n  */\n\n  /**\n    Returns the object at the given `index`. If the given `index` is negative\n    or is greater or equal than the array length, returns `undefined`.\n     This is one of the primitives you must implement to support `EmberArray`.\n    If your object supports retrieving the value of an array item using `get()`\n    (i.e. `myArray.get(0)`), then you do not need to implement this method\n    yourself.\n     ```javascript\n    let arr = ['a', 'b', 'c', 'd'];\n     arr.objectAt(0);   // 'a'\n    arr.objectAt(3);   // 'd'\n    arr.objectAt(-1);  // undefined\n    arr.objectAt(4);   // undefined\n    arr.objectAt(5);   // undefined\n    ```\n     @method objectAt\n    @param {Number} idx The index of the item to return.\n    @return {*} item at index or undefined\n    @public\n  */\n\n  /**\n    This returns the objects at the specified indexes, using `objectAt`.\n     ```javascript\n    let arr = ['a', 'b', 'c', 'd'];\n     arr.objectsAt([0, 1, 2]);  // ['a', 'b', 'c']\n    arr.objectsAt([2, 3, 4]);  // ['c', 'd', undefined]\n    ```\n     @method objectsAt\n    @param {Array} indexes An array of indexes of items to return.\n    @return {Array}\n    @public\n   */\n  objectsAt(indexes) {\n    return indexes.map(idx => objectAt(this, idx));\n  },\n\n  /**\n    This is the handler for the special array content property. If you get\n    this property, it will return this. If you set this property to a new\n    array, it will replace the current content.\n     ```javascript\n    let peopleToMoon = ['Armstrong', 'Aldrin'];\n     peopleToMoon.get('[]'); // ['Armstrong', 'Aldrin']\n     peopleToMoon.set('[]', ['Collins']); // ['Collins']\n    peopleToMoon.get('[]'); // ['Collins']\n    ```\n     @property []\n    @return this\n    @public\n  */\n  '[]': nonEnumerableComputed({\n    get() {\n      return this;\n    },\n\n    set(key, value) {\n      this.replace(0, this.length, value);\n      return this;\n    }\n\n  }),\n\n  /**\n    The first object in the array, or `undefined` if the array is empty.\n     ```javascript\n    let vowels = ['a', 'e', 'i', 'o', 'u'];\n    vowels.firstObject; // 'a'\n     vowels.shiftObject();\n    vowels.firstObject; // 'e'\n     vowels.reverseObjects();\n    vowels.firstObject; // 'u'\n     vowels.clear();\n    vowels.firstObject; // undefined\n    ```\n     @property firstObject\n    @return {Object | undefined} The first object in the array\n    @public\n  */\n  firstObject: nonEnumerableComputed(function () {\n    return objectAt(this, 0);\n  }).readOnly(),\n\n  /**\n    The last object in the array, or `undefined` if the array is empty.\n     @property lastObject\n    @return {Object | undefined} The last object in the array\n    @public\n  */\n  lastObject: nonEnumerableComputed(function () {\n    return objectAt(this, this.length - 1);\n  }).readOnly(),\n\n  // Add any extra methods to EmberArray that are native to the built-in Array.\n\n  /**\n    Returns a new array that is a slice of the receiver. This implementation\n    uses the observable array methods to retrieve the objects for the new\n    slice.\n     ```javascript\n    let arr = ['red', 'green', 'blue'];\n     arr.slice(0);       // ['red', 'green', 'blue']\n    arr.slice(0, 2);    // ['red', 'green']\n    arr.slice(1, 100);  // ['green', 'blue']\n    ```\n     @method slice\n    @param {Number} beginIndex (Optional) index to begin slicing from.\n    @param {Number} endIndex (Optional) index to end the slice at (but not included).\n    @return {Array} New array with specified slice\n    @public\n  */\n  slice(beginIndex = 0, endIndex) {\n    let ret = A();\n    let length = this.length;\n\n    if (beginIndex < 0) {\n      beginIndex = length + beginIndex;\n    }\n\n    if (endIndex === undefined || endIndex > length) {\n      endIndex = length;\n    } else if (endIndex < 0) {\n      endIndex = length + endIndex;\n    }\n\n    while (beginIndex < endIndex) {\n      ret[ret.length] = objectAt(this, beginIndex++);\n    }\n\n    return ret;\n  },\n\n  /**\n    Used to determine the passed object's first occurrence in the array.\n    Returns the index if found, -1 if no match is found.\n     The optional `startAt` argument can be used to pass a starting\n    index to search from, effectively slicing the searchable portion\n    of the array. If it's negative it will add the array length to\n    the startAt value passed in as the index to search from. If less\n    than or equal to `-1 * array.length` the entire array is searched.\n     ```javascript\n    let arr = ['a', 'b', 'c', 'd', 'a'];\n     arr.indexOf('a');       //  0\n    arr.indexOf('z');       // -1\n    arr.indexOf('a', 2);    //  4\n    arr.indexOf('a', -1);   //  4, equivalent to indexOf('a', 4)\n    arr.indexOf('a', -100); //  0, searches entire array\n    arr.indexOf('b', 3);    // -1\n    arr.indexOf('a', 100);  // -1\n     let people = [{ name: 'Zoey' }, { name: 'Bob' }]\n    let newPerson = { name: 'Tom' };\n    people = [newPerson, ...people, newPerson];\n     people.indexOf(newPerson);     //  0\n    people.indexOf(newPerson, 1);  //  3\n    people.indexOf(newPerson, -4); //  0\n    people.indexOf(newPerson, 10); // -1\n    ```\n     @method indexOf\n    @param {Object} object the item to search for\n    @param {Number} startAt optional starting location to search, default 0\n    @return {Number} index or -1 if not found\n    @public\n  */\n  indexOf(object, startAt) {\n    return indexOf(this, object, startAt, false);\n  },\n\n  /**\n    Returns the index of the given `object`'s last occurrence.\n     - If no `startAt` argument is given, the search starts from\n    the last position.\n    - If it's greater than or equal to the length of the array,\n    the search starts from the last position.\n    - If it's negative, it is taken as the offset from the end\n    of the array i.e. `startAt + array.length`.\n    - If it's any other positive number, will search backwards\n    from that index of the array.\n     Returns -1 if no match is found.\n     ```javascript\n    let arr = ['a', 'b', 'c', 'd', 'a'];\n     arr.lastIndexOf('a');       //  4\n    arr.lastIndexOf('z');       // -1\n    arr.lastIndexOf('a', 2);    //  0\n    arr.lastIndexOf('a', -1);   //  4\n    arr.lastIndexOf('a', -3);   //  0\n    arr.lastIndexOf('b', 3);    //  1\n    arr.lastIndexOf('a', 100);  //  4\n    ```\n     @method lastIndexOf\n    @param {Object} object the item to search for\n    @param {Number} startAt optional starting location to search from\n    backwards, defaults to `(array.length - 1)`\n    @return {Number} The last index of the `object` in the array or -1\n    if not found\n    @public\n  */\n  lastIndexOf(object, startAt) {\n    let len = this.length;\n\n    if (startAt === undefined || startAt >= len) {\n      startAt = len - 1;\n    }\n\n    if (startAt < 0) {\n      startAt += len;\n    }\n\n    for (let idx = startAt; idx >= 0; idx--) {\n      if (objectAt(this, idx) === object) {\n        return idx;\n      }\n    }\n\n    return -1;\n  },\n\n  // ..........................................................\n  // ARRAY OBSERVERS\n  //\n\n  /**\n    Adds an array observer to the receiving array. The array observer object\n    normally must implement two methods:\n     * `willChange(observedObj, start, removeCount, addCount)` - This method will be\n      called just before the array is modified.\n    * `didChange(observedObj, start, removeCount, addCount)` - This method will be\n      called just after the array is modified.\n     Both callbacks will be passed the observed object, starting index of the\n    change as well as a count of the items to be removed and added. You can use\n    these callbacks to optionally inspect the array during the change, clear\n    caches, or do any other bookkeeping necessary.\n     In addition to passing a target, you can also include an options hash\n    which you can use to override the method names that will be invoked on the\n    target.\n     @method addArrayObserver\n    @param {Object} target The observer object.\n    @param {Object} opts Optional hash of configuration options including\n      `willChange` and `didChange` option.\n    @return {EmberArray} receiver\n    @public\n    @example\n        import Service from '@ember/service';\n         export default Service.extend({\n          data: Ember.A(),\n           init() {\n            this._super(...arguments);\n             this.data.addArrayObserver(this, {\n              willChange: 'dataWillChange',\n              didChange: 'dataDidChange'\n            });\n          },\n           dataWillChange(array, start, removeCount, addCount) {\n            console.log('array will change', array, start, removeCount, addCount);\n          },\n           dataDidChange(array, start, removeCount, addCount) {\n            console.log('array did change', array, start, removeCount, addCount);\n          }\n        });\n  */\n  addArrayObserver(target, opts) {\n    return addArrayObserver(this, target, opts);\n  },\n\n  /**\n    Removes an array observer from the object if the observer is current\n    registered. Calling this method multiple times with the same object will\n    have no effect.\n     @method removeArrayObserver\n    @param {Object} target The object observing the array.\n    @param {Object} opts Optional hash of configuration options including\n      `willChange` and `didChange` option.\n    @return {EmberArray} receiver\n    @public\n  */\n  removeArrayObserver(target, opts) {\n    return removeArrayObserver(this, target, opts);\n  },\n\n  /**\n    Becomes true whenever the array currently has observers watching changes\n    on the array.\n     ```javascript\n    let arr = [1, 2, 3, 4, 5];\n    arr.hasArrayObservers; // false\n     arr.addArrayObserver(this, {\n      willChange() {\n        console.log('willChange');\n      }\n    });\n    arr.hasArrayObservers; // true\n    ```\n     @property {Boolean} hasArrayObservers\n    @public\n  */\n  hasArrayObservers: descriptor({\n    configurable: true,\n    enumerable: false,\n\n    get() {\n      return hasListeners(this, '@array:change') || hasListeners(this, '@array:before');\n    }\n\n  }),\n\n  /**\n    If you are implementing an object that supports `EmberArray`, call this\n    method just before the array content changes to notify any observers and\n    invalidate any related properties. Pass the starting index of the change\n    as well as a delta of the amounts to change.\n     ```app/components/show-post.js\n    import Component from '@ember/component';\n    import EmberObject from '@ember/object';\n     const Post = EmberObject.extend({\n      body: '',\n      save() {}\n    })\n     export default Component.extend({\n      attemptsToModify: 0,\n      successfulModifications: 0,\n      posts: null,\n       init() {\n        this._super(...arguments);\n         this.posts = [1, 2, 3].map(i => Post.create({ body: i }));\n        this.posts.addArrayObserver(this, {\n          willChange() {\n            this.incrementProperty('attemptsToModify');\n          },\n          didChange() {\n            this.incrementProperty('successfulModifications');\n          }\n        });\n      },\n       actions: {\n        editPost(post, newContent) {\n          let oldContent = post.body,\n              postIndex = this.posts.indexOf(post);\n           this.posts.arrayContentWillChange(postIndex, 0, 0); // attemptsToModify = 1\n          post.set('body', newContent);\n           post.save()\n            .then(response => {\n              this.posts.arrayContentDidChange(postIndex, 0, 0); // successfulModifications = 1\n            })\n            .catch(error => {\n              post.set('body', oldContent);\n            })\n        }\n      }\n    });\n    ```\n     @method arrayContentWillChange\n    @param {Number} startIdx The starting index in the array that will change.\n    @param {Number} removeAmt The number of items that will be removed. If you\n      pass `null` assumes 0\n    @param {Number} addAmt The number of items that will be added. If you\n      pass `null` assumes 0.\n    @return {EmberArray} receiver\n    @public\n  */\n  arrayContentWillChange(startIdx, removeAmt, addAmt) {\n    return arrayContentWillChange(this, startIdx, removeAmt, addAmt);\n  },\n\n  /**\n    If you are implementing an object that supports `EmberArray`, call this\n    method just after the array content changes to notify any observers and\n    invalidate any related properties. Pass the starting index of the change\n    as well as a delta of the amounts to change.\n     ```javascript\n    let arr = [1, 2, 3, 4, 5];\n     arr.copyWithin(-2); // [1, 2, 3, 1, 2]\n    // arr.lastObject = 5\n    arr.arrayContentDidChange(3, 2, 2);\n    // arr.lastObject = 2\n    ```\n     @method arrayContentDidChange\n    @param {Number} startIdx The starting index in the array that did change.\n    @param {Number} removeAmt The number of items that were removed. If you\n      pass `null` assumes 0\n    @param {Number} addAmt The number of items that were added. If you\n      pass `null` assumes 0.\n    @return {EmberArray} receiver\n    @public\n  */\n  arrayContentDidChange(startIdx, removeAmt, addAmt) {\n    return arrayContentDidChange(this, startIdx, removeAmt, addAmt);\n  },\n\n  /**\n    Iterates through the array, calling the passed function on each\n    item. This method corresponds to the `forEach()` method defined in\n    JavaScript 1.6.\n     The callback method you provide should have the following signature (all\n    parameters are optional):\n     ```javascript\n    function(item, index, array);\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as `this` on the context. This is a good way\n    to give your iterator function access to the current object.\n     Example Usage:\n     ```javascript\n    let foods = [\n      { name: 'apple', eaten: false },\n      { name: 'banana', eaten: false },\n      { name: 'carrot', eaten: false }\n    ];\n     foods.forEach((food) => food.eaten = true);\n     let output = '';\n    foods.forEach((item, index, array) =>\n      output += `${index + 1}/${array.length} ${item.name}\\n`;\n    );\n    console.log(output);\n    // 1/3 apple\n    // 2/3 banana\n    // 3/3 carrot\n    ```\n     @method forEach\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Object} receiver\n    @public\n  */\n  forEach(callback, target = null) {\n    assert('`forEach` expects a function as first argument.', typeof callback === 'function');\n    let length = this.length;\n\n    for (let index = 0; index < length; index++) {\n      let item = this.objectAt(index);\n      callback.call(target, item, index, this);\n    }\n\n    return this;\n  },\n\n  /**\n    Alias for `mapBy`.\n     Returns the value of the named\n    property on all items in the enumeration.\n     ```javascript\n    let people = [{name: 'Joe'}, {name: 'Matt'}];\n     people.getEach('name');\n    // ['Joe', 'Matt'];\n     people.getEach('nonexistentProperty');\n    // [undefined, undefined];\n    ```\n     @method getEach\n    @param {String} key name of the property\n    @return {Array} The mapped array.\n    @public\n  */\n  getEach: mapBy,\n\n  /**\n    Sets the value on the named property for each member. This is more\n    ergonomic than using other methods defined on this helper. If the object\n    implements Observable, the value will be changed to `set(),` otherwise\n    it will be set directly. `null` objects are skipped.\n     ```javascript\n    let people = [{name: 'Joe'}, {name: 'Matt'}];\n     people.setEach('zipCode', '10011');\n    // [{name: 'Joe', zipCode: '10011'}, {name: 'Matt', zipCode: '10011'}];\n    ```\n     @method setEach\n    @param {String} key The key to set\n    @param {Object} value The object to set\n    @return {Object} receiver\n    @public\n  */\n  setEach(key, value) {\n    return this.forEach(item => set(item, key, value));\n  },\n\n  /**\n    Maps all of the items in the enumeration to another value, returning\n    a new array. This method corresponds to `map()` defined in JavaScript 1.6.\n     The callback method you provide should have the following signature (all\n    parameters are optional):\n     ```javascript\n    function(item, index, array);\n    let arr = [1, 2, 3, 4, 5, 6];\n     arr.map(element => element * element);\n    // [1, 4, 9, 16, 25, 36];\n     arr.map((element, index) => element + index);\n    // [1, 3, 5, 7, 9, 11];\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     It should return the mapped value.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as `this` on the context. This is a good way\n    to give your iterator function access to the current object.\n     @method map\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Array} The mapped array.\n    @public\n  */\n  map(callback, target = null) {\n    assert('`map` expects a function as first argument.', typeof callback === 'function');\n    let ret = A();\n    this.forEach((x, idx, i) => ret[idx] = callback.call(target, x, idx, i));\n    return ret;\n  },\n\n  /**\n    Similar to map, this specialized function returns the value of the named\n    property on all items in the enumeration.\n     ```javascript\n    let people = [{name: 'Joe'}, {name: 'Matt'}];\n     people.mapBy('name');\n    // ['Joe', 'Matt'];\n     people.mapBy('unknownProperty');\n    // [undefined, undefined];\n    ```\n     @method mapBy\n    @param {String} key name of the property\n    @return {Array} The mapped array.\n    @public\n  */\n  mapBy,\n\n  /**\n    Returns a new array with all of the items in the enumeration that the provided\n    callback function returns true for. This method corresponds to [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter).\n     The callback method should have the following signature:\n     ```javascript\n    function(item, index, array);\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     All parameters are optional. The function should return `true` to include the item\n    in the results, and `false` otherwise.\n     Example:\n     ```javascript\n    function isAdult(person) {\n      return person.age > 18;\n    };\n     let people = Ember.A([{ name: 'John', age: 14 }, { name: 'Joan', age: 45 }]);\n     people.filter(isAdult); // returns [{ name: 'Joan', age: 45 }];\n    ```\n     Note that in addition to a callback, you can pass an optional target object\n    that will be set as `this` on the context. This is a good way to give your\n    iterator function access to the current object. For example:\n     ```javascript\n    function isAdultAndEngineer(person) {\n      return person.age > 18 && this.engineering;\n    }\n     class AdultsCollection {\n      engineering = false;\n       constructor(opts = {}) {\n        super(...arguments);\n         this.engineering = opts.engineering;\n        this.people = Ember.A([{ name: 'John', age: 14 }, { name: 'Joan', age: 45 }]);\n      }\n    }\n     let collection = new AdultsCollection({ engineering: true });\n    collection.people.filter(isAdultAndEngineer, { target: collection });\n    ```\n     @method filter\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Array} A filtered array.\n    @public\n  */\n  filter(callback, target = null) {\n    assert('`filter` expects a function as first argument.', typeof callback === 'function');\n    let ret = A();\n    this.forEach((x, idx, i) => {\n      if (callback.call(target, x, idx, i)) {\n        ret.push(x);\n      }\n    });\n    return ret;\n  },\n\n  /**\n    Returns an array with all of the items in the enumeration where the passed\n    function returns false. This method is the inverse of filter().\n     The callback method you provide should have the following signature (all\n    parameters are optional):\n     ```javascript\n    function(item, index, array);\n    ```\n     - *item* is the current item in the iteration.\n    - *index* is the current index in the iteration\n    - *array* is the array itself.\n     It should return a falsey value to include the item in the results.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as \"this\" on the context. This is a good way\n    to give your iterator function access to the current object.\n     Example Usage:\n     ```javascript\n    const food = [\n      { food: 'apple', isFruit: true },\n      { food: 'bread', isFruit: false },\n      { food: 'banana', isFruit: true }\n    ];\n    const nonFruits = food.reject(function(thing) {\n      return thing.isFruit;\n    }); // [{food: 'bread', isFruit: false}]\n    ```\n     @method reject\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Array} A rejected array.\n    @public\n  */\n  reject(callback, target = null) {\n    assert('`reject` expects a function as first argument.', typeof callback === 'function');\n    return this.filter(function () {\n      return !callback.apply(target, arguments);\n    });\n  },\n\n  /**\n    Filters the array by the property and an optional value. If a value is given, it returns\n    the items that have said value for the property. If not, it returns all the items that\n    have a truthy value for the property.\n     Example Usage:\n     ```javascript\n    let things = Ember.A([{ food: 'apple', isFruit: true }, { food: 'beans', isFruit: false }]);\n     things.filterBy('food', 'beans'); // [{ food: 'beans', isFruit: false }]\n    things.filterBy('isFruit'); // [{ food: 'apple', isFruit: true }]\n    ```\n     @method filterBy\n    @param {String} key the property to test\n    @param {*} [value] optional value to test against.\n    @return {Array} filtered array\n    @public\n  */\n  filterBy() {\n    return this.filter(iter(...arguments));\n  },\n\n  /**\n    Returns an array with the items that do not have truthy values for the provided key.\n    You can pass an optional second argument with a target value to reject for the key.\n    Otherwise this will reject objects where the provided property evaluates to false.\n     Example Usage:\n     ```javascript\n      let food = [\n        { name: \"apple\", isFruit: true },\n        { name: \"carrot\", isFruit: false },\n        { name: \"bread\", isFruit: false },\n      ];\n      food.rejectBy('isFruit'); // [{ name: \"carrot\", isFruit: false }, { name: \"bread\", isFruit: false }]\n      food.rejectBy('name', 'carrot'); // [{ name: \"apple\", isFruit: true }}, { name: \"bread\", isFruit: false }]\n    ```\n     @method rejectBy\n    @param {String} key the property to test\n    @param {*} [value] optional value to test against.\n    @return {Array} rejected array\n    @public\n  */\n  rejectBy() {\n    return this.reject(iter(...arguments));\n  },\n\n  /**\n    Returns the first item in the array for which the callback returns true.\n    This method is similar to the `find()` method defined in ECMAScript 2015.\n     The callback method you provide should have the following signature (all\n    parameters are optional):\n     ```javascript\n    function(item, index, array);\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     It should return the `true` to include the item in the results, `false`\n    otherwise.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as `this` on the context. This is a good way\n    to give your iterator function access to the current object.\n     Example Usage:\n     ```javascript\n    let users = [\n      { id: 1, name: 'Yehuda' },\n      { id: 2, name: 'Tom' },\n      { id: 3, name: 'Melanie' },\n      { id: 4, name: 'Leah' }\n    ];\n     users.find((user) => user.name == 'Tom'); // [{ id: 2, name: 'Tom' }]\n    users.find(({ id }) => id == 3); // [{ id: 3, name: 'Melanie' }]\n    ```\n     @method find\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Object} Found item or `undefined`.\n    @public\n  */\n  find(callback, target = null) {\n    assert('`find` expects a function as first argument.', typeof callback === 'function');\n    return find(this, callback, target);\n  },\n\n  /**\n    Returns the first item with a property matching the passed value. You\n    can pass an optional second argument with the target value. Otherwise\n    this will match any property that evaluates to `true`.\n     This method works much like the more generic `find()` method.\n     Usage Example:\n     ```javascript\n    let users = [\n      { id: 1, name: 'Yehuda', isTom: false },\n      { id: 2, name: 'Tom', isTom: true },\n      { id: 3, name: 'Melanie', isTom: false },\n      { id: 4, name: 'Leah', isTom: false }\n    ];\n     users.findBy('id', 4); // { id: 4, name: 'Leah', isTom: false }\n    users.findBy('name', 'Melanie'); // { id: 3, name: 'Melanie', isTom: false }\n    users.findBy('isTom'); // { id: 2, name: 'Tom', isTom: true }\n    ```\n     @method findBy\n    @param {String} key the property to test\n    @param {String} [value] optional value to test against.\n    @return {Object} found item or `undefined`\n    @public\n  */\n  findBy() {\n    return find(this, iter(...arguments));\n  },\n\n  /**\n    Returns `true` if the passed function returns true for every item in the\n    enumeration. This corresponds with the `Array.prototype.every()` method defined in ES5.\n     The callback method should have the following signature:\n     ```javascript\n    function(item, index, array);\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     All params are optional. The method should return `true` or `false`.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as `this` on the context. This is a good way\n    to give your iterator function access to the current object.\n     Usage example:\n     ```javascript\n    function isAdult(person) {\n      return person.age > 18;\n    };\n     const people = Ember.A([{ name: 'John', age: 24 }, { name: 'Joan', age: 45 }]);\n    const areAllAdults = people.every(isAdult);\n    ```\n     @method every\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Boolean}\n    @public\n  */\n  every(callback, target = null) {\n    assert('`every` expects a function as first argument.', typeof callback === 'function');\n    return every(this, callback, target);\n  },\n\n  /**\n    Returns `true` if the passed property resolves to the value of the second\n    argument for all items in the array. This method is often simpler/faster\n    than using a callback.\n     Note that like the native `Array.every`, `isEvery` will return true when called\n    on any empty array.\n    ```javascript\n    class Language {\n      constructor(name, isProgrammingLanguage) {\n        this.name = name;\n        this.programmingLanguage = isProgrammingLanguage;\n      }\n    }\n     const compiledLanguages = [\n      new Language('Java', true),\n      new Language('Go', true),\n      new Language('Rust', true)\n    ]\n     const languagesKnownByMe = [\n      new Language('Javascript', true),\n      new Language('English', false),\n      new Language('Ruby', true)\n    ]\n     compiledLanguages.isEvery('programmingLanguage'); // true\n    languagesKnownByMe.isEvery('programmingLanguage'); // false\n    ```\n     @method isEvery\n    @param {String} key the property to test\n    @param {String} [value] optional value to test against. Defaults to `true`\n    @return {Boolean}\n    @since 1.3.0\n    @public\n  */\n  isEvery() {\n    return every(this, iter(...arguments));\n  },\n\n  /**\n    The any() method executes the callback function once for each element\n    present in the array until it finds the one where callback returns a truthy\n    value (i.e. `true`). If such an element is found, any() immediately returns\n    true. Otherwise, any() returns false.\n     ```javascript\n    function(item, index, array);\n    ```\n     - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array object itself.\n     Note that in addition to a callback, you can also pass an optional target\n    object that will be set as `this` on the context. It can be a good way\n    to give your iterator function access to an object in cases where an ES6\n    arrow function would not be appropriate.\n     Usage Example:\n     ```javascript\n    let includesManager = people.any(this.findPersonInManagersList, this);\n     let includesStockHolder = people.any(person => {\n      return this.findPersonInStockHoldersList(person)\n    });\n     if (includesManager || includesStockHolder) {\n      Paychecks.addBiggerBonus();\n    }\n    ```\n     @method any\n    @param {Function} callback The callback to execute\n    @param {Object} [target] The target object to use\n    @return {Boolean} `true` if the passed function returns `true` for any item\n    @public\n  */\n  any(callback, target = null) {\n    assert('`any` expects a function as first argument.', typeof callback === 'function');\n    return any(this, callback, target);\n  },\n\n  /**\n    Returns `true` if the passed property resolves to the value of the second\n    argument for any item in the array. This method is often simpler/faster\n    than using a callback.\n     Example usage:\n     ```javascript\n    const food = [\n      { food: 'apple', isFruit: true },\n      { food: 'bread', isFruit: false },\n      { food: 'banana', isFruit: true }\n    ];\n     food.isAny('isFruit'); // true\n    ```\n     @method isAny\n    @param {String} key the property to test\n    @param {String} [value] optional value to test against. Defaults to `true`\n    @return {Boolean}\n    @since 1.3.0\n    @public\n  */\n  isAny() {\n    return any(this, iter(...arguments));\n  },\n\n  /**\n    This will combine the values of the array into a single value. It\n    is a useful way to collect a summary value from an array. This\n    corresponds to the `reduce()` method defined in JavaScript 1.8.\n     The callback method you provide should have the following signature (all\n    parameters are optional):\n     ```javascript\n    function(previousValue, item, index, array);\n    ```\n     - `previousValue` is the value returned by the last call to the iterator.\n    - `item` is the current item in the iteration.\n    - `index` is the current index in the iteration.\n    - `array` is the array itself.\n     Return the new cumulative value.\n     In addition to the callback you can also pass an `initialValue`. An error\n    will be raised if you do not pass an initial value and the enumerator is\n    empty.\n     Note that unlike the other methods, this method does not allow you to\n    pass a target object to set as this for the callback. It's part of the\n    spec. Sorry.\n     Example Usage:\n     ```javascript\n      let numbers = [1, 2, 3, 4, 5];\n       numbers.reduce(function(summation, current) {\n        return summation + current;\n      }); // 15 (1 + 2 + 3 + 4 + 5)\n       numbers.reduce(function(summation, current) {\n        return summation + current;\n      }, -15); // 0 (-15 + 1 + 2 + 3 + 4 + 5)\n        let binaryValues = [true, false, false];\n       binaryValues.reduce(function(truthValue, current) {\n        return truthValue && current;\n      }); // false (true && false && false)\n    ```\n     @method reduce\n    @param {Function} callback The callback to execute\n    @param {Object} initialValue Initial value for the reduce\n    @return {Object} The reduced value.\n    @public\n  */\n  reduce(callback, initialValue) {\n    assert('`reduce` expects a function as first argument.', typeof callback === 'function');\n    let ret = initialValue;\n    this.forEach(function (item, i) {\n      ret = callback(ret, item, i, this);\n    }, this);\n    return ret;\n  },\n\n  /**\n    Invokes the named method on every object in the receiver that\n    implements it. This method corresponds to the implementation in\n    Prototype 1.6.\n     ```javascript\n    class Person {\n      name = null;\n       constructor(name) {\n        this.name = name;\n      }\n       greet(prefix='Hello') {\n        return `${prefix} ${this.name}`;\n      }\n    }\n     let people = [new Person('Joe'), new Person('Matt')];\n     people.invoke('greet'); // ['Hello Joe', 'Hello Matt']\n    people.invoke('greet', 'Bonjour'); // ['Bonjour Joe', 'Bonjour Matt']\n    ```\n     @method invoke\n    @param {String} methodName the name of the method\n    @param {Object...} args optional arguments to pass as well.\n    @return {Array} return values from calling invoke.\n    @public\n  */\n  invoke(methodName, ...args) {\n    let ret = A();\n    this.forEach(item => ret.push(item[methodName]?.(...args)));\n    return ret;\n  },\n\n  /**\n    Simply converts the object into a genuine array. The order is not\n    guaranteed. Corresponds to the method implemented by Prototype.\n     @method toArray\n    @return {Array} the object as an array.\n    @public\n  */\n  toArray() {\n    return this.map(item => item);\n  },\n\n  /**\n    Returns a copy of the array with all `null` and `undefined` elements removed.\n     ```javascript\n    let arr = ['a', null, 'c', undefined];\n    arr.compact();  // ['a', 'c']\n    ```\n     @method compact\n    @return {Array} the array without null and undefined elements.\n    @public\n  */\n  compact() {\n    return this.filter(value => value != null);\n  },\n\n  /**\n    Used to determine if the array contains the passed object.\n    Returns `true` if found, `false` otherwise.\n     The optional `startAt` argument can be used to pass a starting\n    index to search from, effectively slicing the searchable portion\n    of the array. If it's negative it will add the array length to\n    the startAt value passed in as the index to search from. If less\n    than or equal to `-1 * array.length` the entire array is searched.\n     This method has the same behavior of JavaScript's [Array.includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes).\n     ```javascript\n    [1, 2, 3].includes(2);     // true\n    [1, 2, 3].includes(4);     // false\n    [1, 2, 3].includes(3, 2);  // true\n    [1, 2, 3].includes(3, 3);  // false\n    [1, 2, 3].includes(3, -1); // true\n    [1, 2, 3].includes(1, -1); // false\n    [1, 2, 3].includes(1, -4); // true\n    [1, 2, NaN].includes(NaN); // true\n    ```\n     @method includes\n    @param {Object} object The object to search for.\n    @param {Number} startAt optional starting location to search, default 0\n    @return {Boolean} `true` if object is found in the array.\n    @public\n  */\n  includes(object, startAt) {\n    return indexOf(this, object, startAt, true) !== -1;\n  },\n\n  /**\n    Sorts the array by the keys specified in the argument.\n     You may provide multiple arguments to sort by multiple properties.\n     ```javascript\n   let colors = [\n     { name: 'red', weight: 500 },\n     { name: 'green', weight: 600 },\n     { name: 'blue', weight: 500 }\n    ];\n    colors.sortBy('name');\n   // [{name: 'blue', weight: 500}, {name: 'green', weight: 600}, {name: 'red', weight: 500}]\n    colors.sortBy('weight', 'name');\n   // [{name: 'blue', weight: 500}, {name: 'red', weight: 500}, {name: 'green', weight: 600}]\n   ```\n     @method sortBy\n    @param {String} property name(s) to sort on\n    @return {Array} The sorted array.\n    @since 1.2.0\n    @public\n  */\n  sortBy() {\n    let sortKeys = arguments;\n    return this.toArray().sort((a, b) => {\n      for (let i = 0; i < sortKeys.length; i++) {\n        let key = sortKeys[i];\n        let propA = get(a, key);\n        let propB = get(b, key); // return 1 or -1 else continue to the next sortKey\n\n        let compareValue = compare(propA, propB);\n\n        if (compareValue) {\n          return compareValue;\n        }\n      }\n\n      return 0;\n    });\n  },\n\n  /**\n    Returns a new array that contains only unique values. The default\n    implementation returns an array regardless of the receiver type.\n     ```javascript\n    let arr = ['a', 'a', 'b', 'b'];\n    arr.uniq();  // ['a', 'b']\n    ```\n     This only works on primitive data types, e.g. Strings, Numbers, etc.\n     @method uniq\n    @return {EmberArray}\n    @public\n  */\n  uniq() {\n    return uniqBy(this);\n  },\n\n  /**\n    Returns a new array that contains only items containing a unique property value.\n    The default implementation returns an array regardless of the receiver type.\n     ```javascript\n    let arr = [{ value: 'a' }, { value: 'a' }, { value: 'b' }, { value: 'b' }];\n    arr.uniqBy('value');  // [{ value: 'a' }, { value: 'b' }]\n     let arr = [2.2, 2.1, 3.2, 3.3];\n    arr.uniqBy(Math.floor);  // [2.2, 3.2];\n    ```\n     @method uniqBy\n    @param {String,Function} key\n    @return {EmberArray}\n    @public\n  */\n  uniqBy(key) {\n    return uniqBy(this, key);\n  },\n\n  /**\n    Returns a new array that excludes the passed value. The default\n    implementation returns an array regardless of the receiver type.\n    If the receiver does not contain the value it returns the original array.\n     ```javascript\n    let arr = ['a', 'b', 'a', 'c'];\n    arr.without('a');  // ['b', 'c']\n    ```\n     @method without\n    @param {Object} value\n    @return {EmberArray}\n    @public\n  */\n  without(value) {\n    if (!this.includes(value)) {\n      return this; // nothing to do\n    } // SameValueZero comparison (NaN !== NaN)\n\n\n    let predicate = value === value ? item => item !== value : item => item === item;\n    return this.filter(predicate);\n  }\n\n});\n/**\n  This mixin defines the API for modifying array-like objects. These methods\n  can be applied only to a collection that keeps its items in an ordered set.\n  It builds upon the Array mixin and adds methods to modify the array.\n  One concrete implementations of this class include ArrayProxy.\n\n  It is important to use the methods in this class to modify arrays so that\n  changes are observable. This allows the binding system in Ember to function\n  correctly.\n\n\n  Note that an Array can change even if it does not implement this mixin.\n  For example, one might implement a SparseArray that cannot be directly\n  modified, but if its underlying enumerable changes, it will change also.\n\n  @class MutableArray\n  @uses EmberArray\n  @uses MutableEnumerable\n  @public\n*/\n\nconst MutableArray = Mixin.create(ArrayMixin, MutableEnumerable, {\n  /**\n    __Required.__ You must implement this method to apply this mixin.\n     This is one of the primitives you must implement to support `Array`.\n    You should replace amt objects started at idx with the objects in the\n    passed array. You should also call `this.arrayContentDidChange()`\n     Note that this method is expected to validate the type(s) of objects that it expects.\n     @method replace\n    @param {Number} idx Starting index in the array to replace. If\n      idx >= length, then append to the end of the array.\n    @param {Number} amt Number of elements that should be removed from\n      the array, starting at *idx*.\n    @param {EmberArray} objects An array of zero or more objects that should be\n      inserted into the array at *idx*\n    @public\n  */\n\n  /**\n    Remove all elements from the array. This is useful if you\n    want to reuse an existing array without having to recreate it.\n     ```javascript\n    let colors = ['red', 'green', 'blue'];\n     colors.length;  // 3\n    colors.clear(); // []\n    colors.length;  // 0\n    ```\n     @method clear\n    @return {Array} An empty Array.\n    @public\n  */\n  clear() {\n    let len = this.length;\n\n    if (len === 0) {\n      return this;\n    }\n\n    this.replace(0, len, EMPTY_ARRAY);\n    return this;\n  },\n\n  /**\n    This will use the primitive `replace()` method to insert an object at the\n    specified index.\n     ```javascript\n    let colors = ['red', 'green', 'blue'];\n     colors.insertAt(2, 'yellow');  // ['red', 'green', 'yellow', 'blue']\n    colors.insertAt(5, 'orange');  // Error: Index out of range\n    ```\n     @method insertAt\n    @param {Number} idx index of insert the object at.\n    @param {Object} object object to insert\n    @return {EmberArray} receiver\n    @public\n  */\n  insertAt(idx, object) {\n    insertAt(this, idx, object);\n    return this;\n  },\n\n  /**\n    Remove an object at the specified index using the `replace()` primitive\n    method. You can pass either a single index, or a start and a length.\n     If you pass a start and length that is beyond the\n    length this method will throw an assertion.\n     ```javascript\n    let colors = ['red', 'green', 'blue', 'yellow', 'orange'];\n     colors.removeAt(0);     // ['green', 'blue', 'yellow', 'orange']\n    colors.removeAt(2, 2);  // ['green', 'blue']\n    colors.removeAt(4, 2);  // Error: Index out of range\n    ```\n     @method removeAt\n    @param {Number} start index, start of range\n    @param {Number} len length of passing range\n    @return {EmberArray} receiver\n    @public\n  */\n  removeAt(start, len) {\n    return removeAt(this, start, len);\n  },\n\n  /**\n    Push the object onto the end of the array. Works just like `push()` but it\n    is KVO-compliant.\n     ```javascript\n    let colors = ['red', 'green'];\n     colors.pushObject('black');     // ['red', 'green', 'black']\n    colors.pushObject(['yellow']);  // ['red', 'green', ['yellow']]\n    ```\n     @method pushObject\n    @param {*} obj object to push\n    @return object same object passed as a param\n    @public\n  */\n  pushObject(obj) {\n    return insertAt(this, this.length, obj);\n  },\n\n  /**\n    Add the objects in the passed array to the end of the array. Defers\n    notifying observers of the change until all objects are added.\n     ```javascript\n    let colors = ['red'];\n     colors.pushObjects(['yellow', 'orange']);  // ['red', 'yellow', 'orange']\n    ```\n     @method pushObjects\n    @param {EmberArray} objects the objects to add\n    @return {EmberArray} receiver\n    @public\n  */\n  pushObjects(objects) {\n    this.replace(this.length, 0, objects);\n    return this;\n  },\n\n  /**\n    Pop object from array or nil if none are left. Works just like `pop()` but\n    it is KVO-compliant.\n     ```javascript\n    let colors = ['red', 'green', 'blue'];\n     colors.popObject();   // 'blue'\n    console.log(colors);  // ['red', 'green']\n    ```\n     @method popObject\n    @return object\n    @public\n  */\n  popObject() {\n    let len = this.length;\n\n    if (len === 0) {\n      return null;\n    }\n\n    let ret = objectAt(this, len - 1);\n    this.removeAt(len - 1, 1);\n    return ret;\n  },\n\n  /**\n    Shift an object from start of array or nil if none are left. Works just\n    like `shift()` but it is KVO-compliant.\n     ```javascript\n    let colors = ['red', 'green', 'blue'];\n     colors.shiftObject();  // 'red'\n    console.log(colors);   // ['green', 'blue']\n    ```\n     @method shiftObject\n    @return object\n    @public\n  */\n  shiftObject() {\n    if (this.length === 0) {\n      return null;\n    }\n\n    let ret = objectAt(this, 0);\n    this.removeAt(0);\n    return ret;\n  },\n\n  /**\n    Unshift an object to start of array. Works just like `unshift()` but it is\n    KVO-compliant.\n     ```javascript\n    let colors = ['red'];\n     colors.unshiftObject('yellow');    // ['yellow', 'red']\n    colors.unshiftObject(['black']);   // [['black'], 'yellow', 'red']\n    ```\n     @method unshiftObject\n    @param {*} obj object to unshift\n    @return object same object passed as a param\n    @public\n  */\n  unshiftObject(obj) {\n    return insertAt(this, 0, obj);\n  },\n\n  /**\n    Adds the named objects to the beginning of the array. Defers notifying\n    observers until all objects have been added.\n     ```javascript\n    let colors = ['red'];\n     colors.unshiftObjects(['black', 'white']);   // ['black', 'white', 'red']\n    colors.unshiftObjects('yellow'); // Type Error: 'undefined' is not a function\n    ```\n     @method unshiftObjects\n    @param {Enumberable} objects the objects to add\n    @return {EmberArray} receiver\n    @public\n  */\n  unshiftObjects(objects) {\n    this.replace(0, 0, objects);\n    return this;\n  },\n\n  /**\n    Reverse objects in the array. Works just like `reverse()` but it is\n    KVO-compliant.\n     @method reverseObjects\n    @return {EmberArray} receiver\n     @public\n  */\n  reverseObjects() {\n    let len = this.length;\n\n    if (len === 0) {\n      return this;\n    }\n\n    let objects = this.toArray().reverse();\n    this.replace(0, len, objects);\n    return this;\n  },\n\n  /**\n    Replace all the receiver's content with content of the argument.\n    If argument is an empty array receiver will be cleared.\n     ```javascript\n    let colors = ['red', 'green', 'blue'];\n     colors.setObjects(['black', 'white']);  // ['black', 'white']\n    colors.setObjects([]);                  // []\n    ```\n     @method setObjects\n    @param {EmberArray} objects array whose content will be used for replacing\n        the content of the receiver\n    @return {EmberArray} receiver with the new content\n    @public\n  */\n  setObjects(objects) {\n    if (objects.length === 0) {\n      return this.clear();\n    }\n\n    let len = this.length;\n    this.replace(0, len, objects);\n    return this;\n  },\n\n  /**\n    Remove all occurrences of an object in the array.\n     ```javascript\n    let cities = ['Chicago', 'Berlin', 'Lima', 'Chicago'];\n     cities.removeObject('Chicago');  // ['Berlin', 'Lima']\n    cities.removeObject('Lima');     // ['Berlin']\n    cities.removeObject('Tokyo')     // ['Berlin']\n    ```\n     @method removeObject\n    @param {*} obj object to remove\n    @return {EmberArray} receiver\n    @public\n  */\n  removeObject(obj) {\n    let loc = this.length || 0;\n\n    while (--loc >= 0) {\n      let curObject = objectAt(this, loc);\n\n      if (curObject === obj) {\n        this.removeAt(loc);\n      }\n    }\n\n    return this;\n  },\n\n  /**\n    Removes each object in the passed array from the receiver.\n     @method removeObjects\n    @param {EmberArray} objects the objects to remove\n    @return {EmberArray} receiver\n    @public\n  */\n  removeObjects(objects) {\n    beginPropertyChanges();\n\n    for (let i = objects.length - 1; i >= 0; i--) {\n      this.removeObject(objects[i]);\n    }\n\n    endPropertyChanges();\n    return this;\n  },\n\n  /**\n    Push the object onto the end of the array if it is not already\n    present in the array.\n     ```javascript\n    let cities = ['Chicago', 'Berlin'];\n     cities.addObject('Lima');    // ['Chicago', 'Berlin', 'Lima']\n    cities.addObject('Berlin');  // ['Chicago', 'Berlin', 'Lima']\n    ```\n     @method addObject\n    @param {*} obj object to add, if not already present\n    @return {EmberArray} receiver\n    @public\n  */\n  addObject(obj) {\n    let included = this.includes(obj);\n\n    if (!included) {\n      this.pushObject(obj);\n    }\n\n    return this;\n  },\n\n  /**\n    Adds each object in the passed array to the receiver.\n     @method addObjects\n    @param {EmberArray} objects the objects to add.\n    @return {EmberArray} receiver\n    @public\n  */\n  addObjects(objects) {\n    beginPropertyChanges();\n    objects.forEach(obj => this.addObject(obj));\n    endPropertyChanges();\n    return this;\n  }\n\n});\n/**\n  Creates an `Ember.NativeArray` from an Array-like object.\n  Does not modify the original object's contents. `A()` is not needed if\n  `EmberENV.EXTEND_PROTOTYPES` is `true` (the default value). However,\n  it is recommended that you use `A()` when creating addons for\n  ember or when you can not guarantee that `EmberENV.EXTEND_PROTOTYPES`\n  will be `true`.\n\n  Example\n\n  ```app/components/my-component.js\n  import Component from '@ember/component';\n  import { A } from '@ember/array';\n\n  export default Component.extend({\n    tagName: 'ul',\n    classNames: ['pagination'],\n\n    init() {\n      this._super(...arguments);\n\n      if (!this.get('content')) {\n        this.set('content', A());\n        this.set('otherContent', A([1,2,3]));\n      }\n    }\n  });\n  ```\n\n  @method A\n  @static\n  @for @ember/array\n  @return {Ember.NativeArray}\n  @public\n*/\n// Add Ember.Array to Array.prototype. Remove methods with native\n// implementations and supply some more optimized versions of generic methods\n// because they are so common.\n\n/**\n@module ember\n*/\n\n/**\n  The NativeArray mixin contains the properties needed to make the native\n  Array support MutableArray and all of its dependent APIs. Unless you\n  have `EmberENV.EXTEND_PROTOTYPES` or `EmberENV.EXTEND_PROTOTYPES.Array` set to\n  false, this will be applied automatically. Otherwise you can apply the mixin\n  at anytime by calling `Ember.NativeArray.apply(Array.prototype)`.\n\n  @class Ember.NativeArray\n  @uses MutableArray\n  @uses Observable\n  @public\n*/\n\nlet NativeArray = Mixin.create(MutableArray, Observable, {\n  objectAt(idx) {\n    return this[idx];\n  },\n\n  // primitive for array support.\n  replace(start, deleteCount, items = EMPTY_ARRAY) {\n    assert('The third argument to replace needs to be an array.', Array.isArray(items));\n    replaceInNativeArray(this, start, deleteCount, items);\n    return this;\n  }\n\n}); // Remove any methods implemented natively so we don't override them\n\nconst ignore = ['length'];\nNativeArray.keys().forEach(methodName => {\n  if (Array.prototype[methodName]) {\n    ignore.push(methodName);\n  }\n});\nNativeArray = NativeArray.without(...ignore);\nlet A;\n\nif (ENV.EXTEND_PROTOTYPES.Array) {\n  NativeArray.apply(Array.prototype, true);\n\n  A = function (arr) {\n    assert('You cannot create an Ember Array with `new A()`, please update to calling A as a function: `A()`', !(this instanceof A));\n    return arr || [];\n  };\n} else {\n  A = function (arr) {\n    assert('You cannot create an Ember Array with `new A()`, please update to calling A as a function: `A()`', !(this instanceof A));\n\n    if (!arr) {\n      arr = [];\n    }\n\n    return ArrayMixin.detect(arr) ? arr : NativeArray.apply(arr);\n  };\n}\n\nexport { A, NativeArray, MutableArray };\nexport default ArrayMixin;","import { Mixin } from '@ember/-internals/metal';\n/**\n@module ember\n*/\n\n/**\n  Implements some standard methods for comparing objects. Add this mixin to\n  any class you create that can compare its instances.\n\n  You should implement the `compare()` method.\n\n  @class Comparable\n  @namespace Ember\n  @since Ember 0.9\n  @private\n*/\n\nexport default Mixin.create({\n  /**\n    __Required.__ You must implement this method to apply this mixin.\n     Override to return the result of the comparison of the two parameters. The\n    compare method should return:\n     - `-1` if `a < b`\n    - `0` if `a == b`\n    - `1` if `a > b`\n     Default implementation raises an exception.\n     @method compare\n    @param a {Object} the first object to compare\n    @param b {Object} the second object to compare\n    @return {Number} the result of the comparison\n    @private\n  */\n  compare: null\n});","import { schedule, join } from '@ember/runloop';\n/**\n@module ember\n*/\n\nimport { Mixin } from '@ember/-internals/metal';\n/**\n  ContainerProxyMixin is used to provide public access to specific\n  container functionality.\n\n  @class ContainerProxyMixin\n  @private\n*/\n\nlet containerProxyMixin = {\n  /**\n   The container stores state.\n    @private\n   @property {Ember.Container} __container__\n   */\n  __container__: null,\n\n  /**\n   Returns an object that can be used to provide an owner to a\n   manually created instance.\n    Example:\n    ```\n   import { getOwner } from '@ember/application';\n    let owner = getOwner(this);\n    User.create(\n     owner.ownerInjection(),\n     { username: 'rwjblue' }\n   )\n   ```\n    @public\n   @method ownerInjection\n   @since 2.3.0\n   @return {Object}\n  */\n  ownerInjection() {\n    return this.__container__.ownerInjection();\n  },\n\n  /**\n   Given a fullName return a corresponding instance.\n    The default behavior is for lookup to return a singleton instance.\n   The singleton is scoped to the container, allowing multiple containers\n   to all have their own locally scoped singletons.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter');\n    twitter instanceof Twitter; // => true\n    // by default the container will return singletons\n   let twitter2 = container.lookup('api:twitter');\n   twitter2 instanceof Twitter; // => true\n    twitter === twitter2; //=> true\n   ```\n    If singletons are not wanted an optional flag can be provided at lookup.\n    ```javascript\n   let registry = new Registry();\n   let container = registry.container();\n    registry.register('api:twitter', Twitter);\n    let twitter = container.lookup('api:twitter', { singleton: false });\n   let twitter2 = container.lookup('api:twitter', { singleton: false });\n    twitter === twitter2; //=> false\n   ```\n    @public\n   @method lookup\n   @param {String} fullName\n   @param {Object} options\n   @return {any}\n   */\n  lookup(fullName, options) {\n    return this.__container__.lookup(fullName, options);\n  },\n\n  destroy() {\n    let container = this.__container__;\n\n    if (container) {\n      join(() => {\n        container.destroy();\n        schedule('destroy', container, 'finalizeDestroy');\n      });\n    }\n\n    this._super();\n  },\n\n  /**\n  Given a fullName return a factory manager.\n   This method returns a manager which can be used for introspection of the\n  factory's class or for the creation of factory instances with initial\n  properties. The manager is an object with the following properties:\n   * `class` - The registered or resolved class.\n  * `create` - A function that will create an instance of the class with\n    any dependencies injected.\n   For example:\n   ```javascript\n  import { getOwner } from '@ember/application';\n   let owner = getOwner(otherInstance);\n  // the owner is commonly the `applicationInstance`, and can be accessed via\n  // an instance initializer.\n   let factory = owner.factoryFor('service:bespoke');\n   factory.class;\n  // The registered or resolved class. For example when used with an Ember-CLI\n  // app, this would be the default export from `app/services/bespoke.js`.\n   let instance = factory.create({\n    someProperty: 'an initial property value'\n  });\n  // Create an instance with any injections and the passed options as\n  // initial properties.\n  ```\n   Any instances created via the factory's `.create()` method *must* be destroyed\n  manually by the caller of `.create()`. Typically, this is done during the creating\n  objects own `destroy` or `willDestroy` methods.\n   @public\n  @method factoryFor\n  @param {String} fullName\n  @param {Object} options\n  @return {FactoryManager}\n  */\n  factoryFor(fullName, options = {}) {\n    return this.__container__.factoryFor(fullName, options);\n  }\n\n};\nexport default Mixin.create(containerProxyMixin);","/**\n@module ember\n*/\nimport { Mixin } from '@ember/-internals/metal';\n/**\n  Implements some standard methods for copying an object. Add this mixin to\n  any object you create that can create a copy of itself. This mixin is\n  added automatically to the built-in array.\n\n  You should generally implement the `copy()` method to return a copy of the\n  receiver.\n\n  @class Copyable\n  @namespace Ember\n  @since Ember 0.9\n  @deprecated Use 'ember-copy' addon instead\n  @private\n*/\n\nexport default Mixin.create({\n  /**\n    __Required.__ You must implement this method to apply this mixin.\n     Override to return a copy of the receiver. Default implementation raises\n    an exception.\n     @method copy\n    @param {Boolean} deep if `true`, a deep copy of the object should be made\n    @return {Object} copy of receiver\n    @private\n  */\n  copy: null\n});","import { Mixin } from '@ember/-internals/metal';\n/**\n@module @ember/enumerable\n@private\n*/\n\n/**\n  The methods in this mixin have been moved to [MutableArray](/ember/release/classes/MutableArray). This mixin has\n  been intentionally preserved to avoid breaking Enumerable.detect checks\n  until the community migrates away from them.\n\n  @class Enumerable\n  @private\n*/\n\nexport default Mixin.create();","import { Mixin, addListener, removeListener, hasListeners, sendEvent } from '@ember/-internals/metal';\n/**\n@module @ember/object\n*/\n\n/**\n  This mixin allows for Ember objects to subscribe to and emit events.\n\n  ```app/utils/person.js\n  import EmberObject from '@ember/object';\n  import Evented from '@ember/object/evented';\n\n  export default EmberObject.extend(Evented, {\n    greet() {\n      // ...\n      this.trigger('greet');\n    }\n  });\n  ```\n\n  ```javascript\n  var person = Person.create();\n\n  person.on('greet', function() {\n    console.log('Our person has greeted');\n  });\n\n  person.greet();\n\n  // outputs: 'Our person has greeted'\n  ```\n\n  You can also chain multiple event subscriptions:\n\n  ```javascript\n  person.on('greet', function() {\n    console.log('Our person has greeted');\n  }).one('greet', function() {\n    console.log('Offer one-time special');\n  }).off('event', this, forgetThis);\n  ```\n\n  @class Evented\n  @public\n */\n\nexport default Mixin.create({\n  /**\n    Subscribes to a named event with given function.\n     ```javascript\n    person.on('didLoad', function() {\n      // fired once the person has loaded\n    });\n    ```\n     An optional target can be passed in as the 2nd argument that will\n    be set as the \"this\" for the callback. This is a good way to give your\n    function access to the object triggering the event. When the target\n    parameter is used the callback method becomes the third argument.\n     @method on\n    @param {String} name The name of the event\n    @param {Object} [target] The \"this\" binding for the callback\n    @param {Function|String} method A function or the name of a function to be called on `target`\n    @return this\n    @public\n  */\n  on(name, target, method) {\n    addListener(this, name, target, method);\n    return this;\n  },\n\n  /**\n    Subscribes a function to a named event and then cancels the subscription\n    after the first time the event is triggered. It is good to use ``one`` when\n    you only care about the first time an event has taken place.\n     This function takes an optional 2nd argument that will become the \"this\"\n    value for the callback. When the target parameter is used the callback method\n    becomes the third argument.\n     @method one\n    @param {String} name The name of the event\n    @param {Object} [target] The \"this\" binding for the callback\n    @param {Function|String} method A function or the name of a function to be called on `target`\n    @return this\n    @public\n  */\n  one(name, target, method) {\n    addListener(this, name, target, method, true);\n    return this;\n  },\n\n  /**\n    Triggers a named event for the object. Any additional arguments\n    will be passed as parameters to the functions that are subscribed to the\n    event.\n     ```javascript\n    person.on('didEat', function(food) {\n      console.log('person ate some ' + food);\n    });\n     person.trigger('didEat', 'broccoli');\n     // outputs: person ate some broccoli\n    ```\n    @method trigger\n    @param {String} name The name of the event\n    @param {Object...} args Optional arguments to pass on\n    @public\n  */\n  trigger(name, ...args) {\n    sendEvent(this, name, args);\n  },\n\n  /**\n    Cancels subscription for given name, target, and method.\n     @method off\n    @param {String} name The name of the event\n    @param {Object} target The target of the subscription\n    @param {Function|String} method The function or the name of a function of the subscription\n    @return this\n    @public\n  */\n  off(name, target, method) {\n    removeListener(this, name, target, method);\n    return this;\n  },\n\n  /**\n    Checks to see if object has any subscriptions for named event.\n     @method has\n    @param {String} name The name of the event\n    @return {Boolean} does the object have a subscription for event\n    @public\n   */\n  has(name) {\n    return hasListeners(this, name);\n  }\n\n});","import Enumerable from './enumerable';\nimport { Mixin } from '@ember/-internals/metal';\n/**\n@module ember\n*/\n\n/**\n  The methods in this mixin have been moved to MutableArray. This mixin has\n  been intentionally preserved to avoid breaking MutableEnumerable.detect\n  checks until the community migrates away from them.\n\n  @class MutableEnumerable\n  @namespace Ember\n  @uses Enumerable\n  @private\n*/\n\nexport default Mixin.create(Enumerable);","/**\n@module @ember/object\n*/\nimport { peekMeta } from '@ember/-internals/meta';\nimport { get, getWithDefault, set, getProperties, setProperties, Mixin, hasListeners, beginPropertyChanges, notifyPropertyChange, endPropertyChanges, addObserver, removeObserver } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\n/**\n  ## Overview\n\n  This mixin provides properties and property observing functionality, core\n  features of the Ember object model.\n\n  Properties and observers allow one object to observe changes to a\n  property on another object. This is one of the fundamental ways that\n  models, controllers and views communicate with each other in an Ember\n  application.\n\n  Any object that has this mixin applied can be used in observer\n  operations. That includes `EmberObject` and most objects you will\n  interact with as you write your Ember application.\n\n  Note that you will not generally apply this mixin to classes yourself,\n  but you will use the features provided by this module frequently, so it\n  is important to understand how to use it.\n\n  ## Using `get()` and `set()`\n\n  Because of Ember's support for bindings and observers, you will always\n  access properties using the get method, and set properties using the\n  set method. This allows the observing objects to be notified and\n  computed properties to be handled properly.\n\n  More documentation about `get` and `set` are below.\n\n  ## Observing Property Changes\n\n  You typically observe property changes simply by using the `observer`\n  function in classes that you write.\n\n  For example:\n\n  ```javascript\n  import { observer } from '@ember/object';\n  import EmberObject from '@ember/object';\n\n  EmberObject.extend({\n    valueObserver: observer('value', function(sender, key, value, rev) {\n      // Executes whenever the \"value\" property changes\n      // See the addObserver method for more information about the callback arguments\n    })\n  });\n  ```\n\n  Although this is the most common way to add an observer, this capability\n  is actually built into the `EmberObject` class on top of two methods\n  defined in this mixin: `addObserver` and `removeObserver`. You can use\n  these two methods to add and remove observers yourself if you need to\n  do so at runtime.\n\n  To add an observer for a property, call:\n\n  ```javascript\n  object.addObserver('propertyKey', targetObject, targetAction)\n  ```\n\n  This will call the `targetAction` method on the `targetObject` whenever\n  the value of the `propertyKey` changes.\n\n  Note that if `propertyKey` is a computed property, the observer will be\n  called when any of the property dependencies are changed, even if the\n  resulting value of the computed property is unchanged. This is necessary\n  because computed properties are not computed until `get` is called.\n\n  @class Observable\n  @public\n*/\n\nexport default Mixin.create({\n  /**\n    Retrieves the value of a property from the object.\n     This method is usually similar to using `object[keyName]` or `object.keyName`,\n    however it supports both computed properties and the unknownProperty\n    handler.\n     Because `get` unifies the syntax for accessing all these kinds\n    of properties, it can make many refactorings easier, such as replacing a\n    simple property with a computed property, or vice versa.\n     ### Computed Properties\n     Computed properties are methods defined with the `property` modifier\n    declared at the end, such as:\n     ```javascript\n    import { computed } from '@ember/object';\n     fullName: computed('firstName', 'lastName', function() {\n      return this.get('firstName') + ' ' + this.get('lastName');\n    })\n    ```\n     When you call `get` on a computed property, the function will be\n    called and the return value will be returned instead of the function\n    itself.\n     ### Unknown Properties\n     Likewise, if you try to call `get` on a property whose value is\n    `undefined`, the `unknownProperty()` method will be called on the object.\n    If this method returns any value other than `undefined`, it will be returned\n    instead. This allows you to implement \"virtual\" properties that are\n    not defined upfront.\n     @method get\n    @param {String} keyName The property to retrieve\n    @return {Object} The property value or undefined.\n    @public\n  */\n  get(keyName) {\n    return get(this, keyName);\n  },\n\n  /**\n    To get the values of multiple properties at once, call `getProperties`\n    with a list of strings or an array:\n     ```javascript\n    record.getProperties('firstName', 'lastName', 'zipCode');\n    // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n    ```\n     is equivalent to:\n     ```javascript\n    record.getProperties(['firstName', 'lastName', 'zipCode']);\n    // { firstName: 'John', lastName: 'Doe', zipCode: '10011' }\n    ```\n     @method getProperties\n    @param {String...|Array} list of keys to get\n    @return {Object}\n    @public\n  */\n  getProperties(...args) {\n    return getProperties(...[this].concat(args));\n  },\n\n  /**\n    Sets the provided key or path to the value.\n     ```javascript\n    record.set(\"key\", value);\n    ```\n     This method is generally very similar to calling `object[\"key\"] = value` or\n    `object.key = value`, except that it provides support for computed\n    properties, the `setUnknownProperty()` method and property observers.\n     ### Computed Properties\n     If you try to set a value on a key that has a computed property handler\n    defined (see the `get()` method for an example), then `set()` will call\n    that method, passing both the value and key instead of simply changing\n    the value itself. This is useful for those times when you need to\n    implement a property that is composed of one or more member\n    properties.\n     ### Unknown Properties\n     If you try to set a value on a key that is undefined in the target\n    object, then the `setUnknownProperty()` handler will be called instead. This\n    gives you an opportunity to implement complex \"virtual\" properties that\n    are not predefined on the object. If `setUnknownProperty()` returns\n    undefined, then `set()` will simply set the value on the object.\n     ### Property Observers\n     In addition to changing the property, `set()` will also register a property\n    change with the object. Unless you have placed this call inside of a\n    `beginPropertyChanges()` and `endPropertyChanges(),` any \"local\" observers\n    (i.e. observer methods declared on the same object), will be called\n    immediately. Any \"remote\" observers (i.e. observer methods declared on\n    another object) will be placed in a queue and called at a later time in a\n    coalesced manner.\n     @method set\n    @param {String} keyName The property to set\n    @param {Object} value The value to set or `null`.\n    @return {Object} The passed value\n    @public\n  */\n  set(keyName, value) {\n    return set(this, keyName, value);\n  },\n\n  /**\n    Sets a list of properties at once. These properties are set inside\n    a single `beginPropertyChanges` and `endPropertyChanges` batch, so\n    observers will be buffered.\n     ```javascript\n    record.setProperties({ firstName: 'Charles', lastName: 'Jolley' });\n    ```\n     @method setProperties\n    @param {Object} hash the hash of keys and values to set\n    @return {Object} The passed in hash\n    @public\n  */\n  setProperties(hash) {\n    return setProperties(this, hash);\n  },\n\n  /**\n    Begins a grouping of property changes.\n     You can use this method to group property changes so that notifications\n    will not be sent until the changes are finished. If you plan to make a\n    large number of changes to an object at one time, you should call this\n    method at the beginning of the changes to begin deferring change\n    notifications. When you are done making changes, call\n    `endPropertyChanges()` to deliver the deferred change notifications and end\n    deferring.\n     @method beginPropertyChanges\n    @return {Observable}\n    @private\n  */\n  beginPropertyChanges() {\n    beginPropertyChanges();\n    return this;\n  },\n\n  /**\n    Ends a grouping of property changes.\n     You can use this method to group property changes so that notifications\n    will not be sent until the changes are finished. If you plan to make a\n    large number of changes to an object at one time, you should call\n    `beginPropertyChanges()` at the beginning of the changes to defer change\n    notifications. When you are done making changes, call this method to\n    deliver the deferred change notifications and end deferring.\n     @method endPropertyChanges\n    @return {Observable}\n    @private\n  */\n  endPropertyChanges() {\n    endPropertyChanges();\n    return this;\n  },\n\n  /**\n    Notify the observer system that a property has just changed.\n     Sometimes you need to change a value directly or indirectly without\n    actually calling `get()` or `set()` on it. In this case, you can use this\n    method instead. Calling this method will notify all observers that the\n    property has potentially changed value.\n     @method notifyPropertyChange\n    @param {String} keyName The property key to be notified about.\n    @return {Observable}\n    @public\n  */\n  notifyPropertyChange(keyName) {\n    notifyPropertyChange(this, keyName);\n    return this;\n  },\n\n  /**\n    Adds an observer on a property.\n     This is the core method used to register an observer for a property.\n     Once you call this method, any time the key's value is set, your observer\n    will be notified. Note that the observers are triggered any time the\n    value is set, regardless of whether it has actually changed. Your\n    observer should be prepared to handle that.\n     There are two common invocation patterns for `.addObserver()`:\n     - Passing two arguments:\n      - the name of the property to observe (as a string)\n      - the function to invoke (an actual function)\n    - Passing three arguments:\n      - the name of the property to observe (as a string)\n      - the target object (will be used to look up and invoke a\n        function on)\n      - the name of the function to invoke on the target object\n        (as a string).\n     ```app/components/my-component.js\n    import Component from '@ember/component';\n     export default Component.extend({\n      init() {\n        this._super(...arguments);\n         // the following are equivalent:\n         // using three arguments\n        this.addObserver('foo', this, 'fooDidChange');\n         // using two arguments\n        this.addObserver('foo', (...args) => {\n          this.fooDidChange(...args);\n        });\n      },\n       fooDidChange() {\n        // your custom logic code\n      }\n    });\n    ```\n     ### Observer Methods\n     Observer methods have the following signature:\n     ```app/components/my-component.js\n    import Component from '@ember/component';\n     export default Component.extend({\n      init() {\n        this._super(...arguments);\n        this.addObserver('foo', this, 'fooDidChange');\n      },\n       fooDidChange(sender, key, value, rev) {\n        // your code\n      }\n    });\n    ```\n     The `sender` is the object that changed. The `key` is the property that\n    changes. The `value` property is currently reserved and unused. The `rev`\n    is the last property revision of the object when it changed, which you can\n    use to detect if the key value has really changed or not.\n     Usually you will not need the value or revision parameters at\n    the end. In this case, it is common to write observer methods that take\n    only a sender and key value as parameters or, if you aren't interested in\n    any of these values, to write an observer that has no parameters at all.\n     @method addObserver\n    @param {String} key The key to observe\n    @param {Object} target The target object to invoke\n    @param {String|Function} method The method to invoke\n    @param {Boolean} sync Whether the observer is sync or not\n    @return {Observable}\n    @public\n  */\n  addObserver(key, target, method, sync) {\n    addObserver(this, key, target, method, sync);\n    return this;\n  },\n\n  /**\n    Remove an observer you have previously registered on this object. Pass\n    the same key, target, and method you passed to `addObserver()` and your\n    target will no longer receive notifications.\n     @method removeObserver\n    @param {String} key The key to observe\n    @param {Object} target The target object to invoke\n    @param {String|Function} method The method to invoke\n    @param {Boolean} sync Whether the observer is async or not\n    @return {Observable}\n    @public\n  */\n  removeObserver(key, target, method, sync) {\n    removeObserver(this, key, target, method, sync);\n    return this;\n  },\n\n  /**\n    Returns `true` if the object currently has observers registered for a\n    particular key. You can use this method to potentially defer performing\n    an expensive action until someone begins observing a particular property\n    on the object.\n     @method hasObserverFor\n    @param {String} key Key to check\n    @return {Boolean}\n    @private\n  */\n  hasObserverFor(key) {\n    return hasListeners(this, `${key}:change`);\n  },\n\n  /**\n    Retrieves the value of a property, or a default value in the case that the\n    property returns `undefined`.\n     ```javascript\n    person.getWithDefault('lastName', 'Doe');\n    ```\n     @method getWithDefault\n    @param {String} keyName The name of the property to retrieve\n    @param {Object} defaultValue The value to return if the property value is undefined\n    @return {Object} The property value or the defaultValue.\n    @public\n    @deprecated\n  */\n  getWithDefault(keyName, defaultValue) {\n    return getWithDefault(this, keyName, defaultValue);\n  },\n\n  /**\n    Set the value of a property to the current value plus some amount.\n     ```javascript\n    person.incrementProperty('age');\n    team.incrementProperty('score', 2);\n    ```\n     @method incrementProperty\n    @param {String} keyName The name of the property to increment\n    @param {Number} increment The amount to increment by. Defaults to 1\n    @return {Number} The new property value\n    @public\n  */\n  incrementProperty(keyName, increment = 1) {\n    assert('Must pass a numeric value to incrementProperty', !isNaN(parseFloat(increment)) && isFinite(increment));\n    return set(this, keyName, (parseFloat(get(this, keyName)) || 0) + increment);\n  },\n\n  /**\n    Set the value of a property to the current value minus some amount.\n     ```javascript\n    player.decrementProperty('lives');\n    orc.decrementProperty('health', 5);\n    ```\n     @method decrementProperty\n    @param {String} keyName The name of the property to decrement\n    @param {Number} decrement The amount to decrement by. Defaults to 1\n    @return {Number} The new property value\n    @public\n  */\n  decrementProperty(keyName, decrement = 1) {\n    assert('Must pass a numeric value to decrementProperty', !isNaN(parseFloat(decrement)) && isFinite(decrement));\n    return set(this, keyName, (get(this, keyName) || 0) - decrement);\n  },\n\n  /**\n    Set the value of a boolean property to the opposite of its\n    current value.\n     ```javascript\n    starship.toggleProperty('warpDriveEngaged');\n    ```\n     @method toggleProperty\n    @param {String} keyName The name of the property to toggle\n    @return {Boolean} The new property value\n    @public\n  */\n  toggleProperty(keyName) {\n    return set(this, keyName, !get(this, keyName));\n  },\n\n  /**\n    Returns the cached value of a computed property, if it exists.\n    This allows you to inspect the value of a computed property\n    without accidentally invoking it if it is intended to be\n    generated lazily.\n     @method cacheFor\n    @param {String} keyName\n    @return {Object} The cached value of the computed property, if any\n    @public\n  */\n  cacheFor(keyName) {\n    let meta = peekMeta(this);\n\n    if (meta !== null) {\n      return meta.valueFor(keyName);\n    }\n  }\n\n});","import { get, setProperties, computed, Mixin } from '@ember/-internals/metal';\nimport EmberError from '@ember/error';\n/**\n  @module @ember/object\n*/\n\nfunction tap(proxy, promise) {\n  setProperties(proxy, {\n    isFulfilled: false,\n    isRejected: false\n  });\n  return promise.then(value => {\n    if (!proxy.isDestroyed && !proxy.isDestroying) {\n      setProperties(proxy, {\n        content: value,\n        isFulfilled: true\n      });\n    }\n\n    return value;\n  }, reason => {\n    if (!proxy.isDestroyed && !proxy.isDestroying) {\n      setProperties(proxy, {\n        reason,\n        isRejected: true\n      });\n    }\n\n    throw reason;\n  }, 'Ember: PromiseProxy');\n}\n/**\n  A low level mixin making ObjectProxy promise-aware.\n\n  ```javascript\n  import { resolve } from 'rsvp';\n  import $ from 'jquery';\n  import ObjectProxy from '@ember/object/proxy';\n  import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n\n  let ObjectPromiseProxy = ObjectProxy.extend(PromiseProxyMixin);\n\n  let proxy = ObjectPromiseProxy.create({\n    promise: resolve($.getJSON('/some/remote/data.json'))\n  });\n\n  proxy.then(function(json){\n     // the json\n  }, function(reason) {\n     // the reason why you have no json\n  });\n  ```\n\n  the proxy has bindable attributes which\n  track the promises life cycle\n\n  ```javascript\n  proxy.get('isPending')   //=> true\n  proxy.get('isSettled')  //=> false\n  proxy.get('isRejected')  //=> false\n  proxy.get('isFulfilled') //=> false\n  ```\n\n  When the $.getJSON completes, and the promise is fulfilled\n  with json, the life cycle attributes will update accordingly.\n  Note that $.getJSON doesn't return an ECMA specified promise,\n  it is useful to wrap this with an `RSVP.resolve` so that it behaves\n  as a spec compliant promise.\n\n  ```javascript\n  proxy.get('isPending')   //=> false\n  proxy.get('isSettled')   //=> true\n  proxy.get('isRejected')  //=> false\n  proxy.get('isFulfilled') //=> true\n  ```\n\n  As the proxy is an ObjectProxy, and the json now its content,\n  all the json properties will be available directly from the proxy.\n\n  ```javascript\n  // Assuming the following json:\n  {\n    firstName: 'Stefan',\n    lastName: 'Penner'\n  }\n\n  // both properties will accessible on the proxy\n  proxy.get('firstName') //=> 'Stefan'\n  proxy.get('lastName')  //=> 'Penner'\n  ```\n\n  @class PromiseProxyMixin\n  @public\n*/\n\n\nexport default Mixin.create({\n  /**\n    If the proxied promise is rejected this will contain the reason\n    provided.\n     @property reason\n    @default null\n    @public\n  */\n  reason: null,\n\n  /**\n    Once the proxied promise has settled this will become `false`.\n     @property isPending\n    @default true\n    @public\n  */\n  isPending: computed('isSettled', function () {\n    return !get(this, 'isSettled');\n  }).readOnly(),\n\n  /**\n    Once the proxied promise has settled this will become `true`.\n     @property isSettled\n    @default false\n    @public\n  */\n  isSettled: computed('isRejected', 'isFulfilled', function () {\n    return get(this, 'isRejected') || get(this, 'isFulfilled');\n  }).readOnly(),\n\n  /**\n    Will become `true` if the proxied promise is rejected.\n     @property isRejected\n    @default false\n    @public\n  */\n  isRejected: false,\n\n  /**\n    Will become `true` if the proxied promise is fulfilled.\n     @property isFulfilled\n    @default false\n    @public\n  */\n  isFulfilled: false,\n\n  /**\n    The promise whose fulfillment value is being proxied by this object.\n     This property must be specified upon creation, and should not be\n    changed once created.\n     Example:\n     ```javascript\n    import ObjectProxy from '@ember/object/proxy';\n    import PromiseProxyMixin from '@ember/object/promise-proxy-mixin';\n     ObjectProxy.extend(PromiseProxyMixin).create({\n      promise: <thenable>\n    });\n    ```\n     @property promise\n    @public\n  */\n  promise: computed({\n    get() {\n      throw new EmberError(\"PromiseProxy's promise must be set\");\n    },\n\n    set(key, promise) {\n      return tap(this, promise);\n    }\n\n  }),\n\n  /**\n    An alias to the proxied promise's `then`.\n     See RSVP.Promise.then.\n     @method then\n    @param {Function} callback\n    @return {RSVP.Promise}\n    @public\n  */\n  then: promiseAlias('then'),\n\n  /**\n    An alias to the proxied promise's `catch`.\n     See RSVP.Promise.catch.\n     @method catch\n    @param {Function} callback\n    @return {RSVP.Promise}\n    @since 1.3.0\n    @public\n  */\n  catch: promiseAlias('catch'),\n\n  /**\n    An alias to the proxied promise's `finally`.\n     See RSVP.Promise.finally.\n     @method finally\n    @param {Function} callback\n    @return {RSVP.Promise}\n    @since 1.3.0\n    @public\n  */\n  finally: promiseAlias('finally')\n});\n\nfunction promiseAlias(name) {\n  return function () {\n    let promise = get(this, 'promise');\n    return promise[name](...arguments);\n  };\n}","/**\n@module ember\n*/\nimport { assert } from '@ember/debug';\nimport { Mixin } from '@ember/-internals/metal';\n/**\n  RegistryProxyMixin is used to provide public access to specific\n  registry functionality.\n\n  @class RegistryProxyMixin\n  @private\n*/\n\nexport default Mixin.create({\n  __registry__: null,\n\n  /**\n   Given a fullName return the corresponding factory.\n    @public\n   @method resolveRegistration\n   @param {String} fullName\n   @return {Function} fullName's factory\n   */\n  resolveRegistration(fullName, options) {\n    assert('fullName must be a proper full name', this.__registry__.isValidFullName(fullName));\n    return this.__registry__.resolve(fullName, options);\n  },\n\n  /**\n    Registers a factory that can be used for dependency injection (with\n    `inject`) or for service lookup. Each factory is registered with\n    a full name including two parts: `type:name`.\n     A simple example:\n     ```javascript\n    import Application from '@ember/application';\n    import EmberObject from '@ember/object';\n     let App = Application.create();\n     App.Orange = EmberObject.extend();\n    App.register('fruit:favorite', App.Orange);\n    ```\n     Ember will resolve factories from the `App` namespace automatically.\n    For example `App.CarsController` will be discovered and returned if\n    an application requests `controller:cars`.\n     An example of registering a controller with a non-standard name:\n     ```javascript\n    import Application from '@ember/application';\n    import Controller from '@ember/controller';\n     let App = Application.create();\n    let Session = Controller.extend();\n     App.register('controller:session', Session);\n     // The Session controller can now be treated like a normal controller,\n    // despite its non-standard name.\n    App.ApplicationController = Controller.extend({\n      needs: ['session']\n    });\n    ```\n     Registered factories are **instantiated** by having `create`\n    called on them. Additionally they are **singletons**, each time\n    they are looked up they return the same instance.\n     Some examples modifying that default behavior:\n     ```javascript\n    import Application from '@ember/application';\n    import EmberObject from '@ember/object';\n     let App = Application.create();\n     App.Person = EmberObject.extend();\n    App.Orange = EmberObject.extend();\n    App.Email = EmberObject.extend();\n    App.session = EmberObject.create();\n     App.register('model:user', App.Person, { singleton: false });\n    App.register('fruit:favorite', App.Orange);\n    App.register('communication:main', App.Email, { singleton: false });\n    App.register('session', App.session, { instantiate: false });\n    ```\n     @method register\n    @param  fullName {String} type:name (e.g., 'model:user')\n    @param  factory {any} (e.g., App.Person)\n    @param  options {Object} (optional) disable instantiation or singleton usage\n    @public\n   */\n  register: registryAlias('register'),\n\n  /**\n   Unregister a factory.\n    ```javascript\n   import Application from '@ember/application';\n   import EmberObject from '@ember/object';\n    let App = Application.create();\n   let User = EmberObject.extend();\n   App.register('model:user', User);\n    App.resolveRegistration('model:user').create() instanceof User //=> true\n    App.unregister('model:user')\n   App.resolveRegistration('model:user') === undefined //=> true\n   ```\n    @public\n   @method unregister\n   @param {String} fullName\n   */\n  unregister: registryAlias('unregister'),\n\n  /**\n   Check if a factory is registered.\n    @public\n   @method hasRegistration\n   @param {String} fullName\n   @return {Boolean}\n   */\n  hasRegistration: registryAlias('has'),\n\n  /**\n   Return a specific registered option for a particular factory.\n    @public\n   @method registeredOption\n   @param  {String} fullName\n   @param  {String} optionName\n   @return {Object} options\n   */\n  registeredOption: registryAlias('getOption'),\n\n  /**\n   Register options for a particular factory.\n    @public\n   @method registerOptions\n   @param {String} fullName\n   @param {Object} options\n   */\n  registerOptions: registryAlias('options'),\n\n  /**\n   Return registered options for a particular factory.\n    @public\n   @method registeredOptions\n   @param  {String} fullName\n   @return {Object} options\n   */\n  registeredOptions: registryAlias('getOptions'),\n\n  /**\n   Allow registering options for all factories of a type.\n    ```javascript\n   import Application from '@ember/application';\n    let App = Application.create();\n   let appInstance = App.buildInstance();\n    // if all of type `connection` must not be singletons\n   appInstance.registerOptionsForType('connection', { singleton: false });\n    appInstance.register('connection:twitter', TwitterConnection);\n   appInstance.register('connection:facebook', FacebookConnection);\n    let twitter = appInstance.lookup('connection:twitter');\n   let twitter2 = appInstance.lookup('connection:twitter');\n    twitter === twitter2; // => false\n    let facebook = appInstance.lookup('connection:facebook');\n   let facebook2 = appInstance.lookup('connection:facebook');\n    facebook === facebook2; // => false\n   ```\n    @public\n   @method registerOptionsForType\n   @param {String} type\n   @param {Object} options\n   */\n  registerOptionsForType: registryAlias('optionsForType'),\n\n  /**\n   Return the registered options for all factories of a type.\n    @public\n   @method registeredOptionsForType\n   @param {String} type\n   @return {Object} options\n   */\n  registeredOptionsForType: registryAlias('getOptionsForType'),\n\n  /**\n    Define a dependency injection onto a specific factory or all factories\n    of a type.\n     When Ember instantiates a controller, view, or other framework component\n    it can attach a dependency to that component. This is often used to\n    provide services to a set of framework components.\n     An example of providing a session object to all controllers:\n     ```javascript\n    import { alias } from '@ember/object/computed';\n    import Application from '@ember/application';\n    import Controller from '@ember/controller';\n    import EmberObject from '@ember/object';\n     let App = Application.create();\n    let Session = EmberObject.extend({ isAuthenticated: false });\n     // A factory must be registered before it can be injected\n    App.register('session:main', Session);\n     // Inject 'session:main' onto all factories of the type 'controller'\n    // with the name 'session'\n    App.inject('controller', 'session', 'session:main');\n     App.IndexController = Controller.extend({\n      isLoggedIn: alias('session.isAuthenticated')\n    });\n    ```\n     Injections can also be performed on specific factories.\n     ```javascript\n    App.inject(<full_name or type>, <property name>, <full_name>)\n    App.inject('route', 'source', 'source:main')\n    App.inject('route:application', 'email', 'model:email')\n    ```\n     It is important to note that injections can only be performed on\n    classes that are instantiated by Ember itself. Instantiating a class\n    directly (via `create` or `new`) bypasses the dependency injection\n    system.\n     @public\n    @method inject\n    @param  factoryNameOrType {String}\n    @param  property {String}\n    @param  injectionName {String}\n  **/\n  inject: registryAlias('injection')\n});\n\nfunction registryAlias(name) {\n  return function () {\n    return this.__registry__[name](...arguments);\n  };\n}","/**\n@module ember\n*/\nimport { context } from '@ember/-internals/environment';\nimport { get, Mixin, computed } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\n/**\n`Ember.TargetActionSupport` is a mixin that can be included in a class\nto add a `triggerAction` method with semantics similar to the Handlebars\n`{{action}}` helper. In normal Ember usage, the `{{action}}` helper is\nusually the best choice. This mixin is most often useful when you are\ndoing more complex event handling in Components.\n\n@class TargetActionSupport\n@namespace Ember\n@extends Mixin\n@private\n*/\n\nexport default Mixin.create({\n  target: null,\n  action: null,\n  actionContext: null,\n  actionContextObject: computed('actionContext', function () {\n    let actionContext = get(this, 'actionContext');\n\n    if (typeof actionContext === 'string') {\n      let value = get(this, actionContext);\n\n      if (value === undefined) {\n        value = get(context.lookup, actionContext);\n      }\n\n      return value;\n    } else {\n      return actionContext;\n    }\n  }),\n\n  /**\n  Send an `action` with an `actionContext` to a `target`. The action, actionContext\n  and target will be retrieved from properties of the object. For example:\n   ```javascript\n  import { alias } from '@ember/object/computed';\n   App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n    target: alias('controller'),\n    action: 'save',\n    actionContext: alias('context'),\n    click() {\n      this.triggerAction(); // Sends the `save` action, along with the current context\n                            // to the current controller\n    }\n  });\n  ```\n   The `target`, `action`, and `actionContext` can be provided as properties of\n  an optional object argument to `triggerAction` as well.\n   ```javascript\n  App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n    click() {\n      this.triggerAction({\n        action: 'save',\n        target: this.get('controller'),\n        actionContext: this.get('context')\n      }); // Sends the `save` action, along with the current context\n          // to the current controller\n    }\n  });\n  ```\n   The `actionContext` defaults to the object you are mixing `TargetActionSupport` into.\n  But `target` and `action` must be specified either as properties or with the argument\n  to `triggerAction`, or a combination:\n   ```javascript\n  import { alias } from '@ember/object/computed';\n   App.SaveButtonView = Ember.View.extend(Ember.TargetActionSupport, {\n    target: alias('controller'),\n    click() {\n      this.triggerAction({\n        action: 'save'\n      }); // Sends the `save` action, along with a reference to `this`,\n          // to the current controller\n    }\n  });\n  ```\n   @method triggerAction\n  @param opts {Object} (optional, with the optional keys action, target and/or actionContext)\n  @return {Boolean} true if the action was sent successfully and did not return false\n  @private\n  */\n  triggerAction(opts = {}) {\n    let {\n      action,\n      target,\n      actionContext\n    } = opts;\n    action = action || get(this, 'action');\n    target = target || getTarget(this);\n\n    if (actionContext === undefined) {\n      actionContext = get(this, 'actionContextObject') || this;\n    }\n\n    if (target && action) {\n      let ret;\n\n      if (target.send) {\n        ret = target.send(...[action].concat(actionContext));\n      } else {\n        assert(`The action '${action}' did not exist on ${target}`, typeof target[action] === 'function');\n        ret = target[action](...[].concat(actionContext));\n      }\n\n      if (ret !== false) {\n        return true;\n      }\n    }\n\n    return false;\n  }\n\n});\n\nfunction getTarget(instance) {\n  let target = get(instance, 'target');\n\n  if (target) {\n    if (typeof target === 'string') {\n      let value = get(instance, target);\n\n      if (value === undefined) {\n        value = get(context.lookup, target);\n      }\n\n      return value;\n    } else {\n      return target;\n    }\n  }\n\n  if (instance._target) {\n    return instance._target;\n  }\n\n  return null;\n}","/**\n@module @ember/array\n*/\nimport { get, objectAt, alias, PROPERTY_DID_CHANGE, addArrayObserver, removeArrayObserver, replace, CUSTOM_TAG_FOR, arrayContentDidChange, tagForProperty } from '@ember/-internals/metal';\nimport { isObject } from '@ember/-internals/utils';\nimport EmberObject from './object';\nimport { isArray, MutableArray } from '../mixins/array';\nimport { assert } from '@ember/debug';\nimport { combine, consumeTag, validateTag, valueForTag, tagFor } from '@glimmer/validator';\nconst ARRAY_OBSERVER_MAPPING = {\n  willChange: '_arrangedContentArrayWillChange',\n  didChange: '_arrangedContentArrayDidChange'\n};\n/**\n  An ArrayProxy wraps any other object that implements `Array` and/or\n  `MutableArray,` forwarding all requests. This makes it very useful for\n  a number of binding use cases or other cases where being able to swap\n  out the underlying array is useful.\n\n  A simple example of usage:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  let pets = ['dog', 'cat', 'fish'];\n  let ap = ArrayProxy.create({ content: A(pets) });\n\n  ap.get('firstObject');                        // 'dog'\n  ap.set('content', ['amoeba', 'paramecium']);\n  ap.get('firstObject');                        // 'amoeba'\n  ```\n\n  This class can also be useful as a layer to transform the contents of\n  an array, as they are accessed. This can be done by overriding\n  `objectAtContent`:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  let pets = ['dog', 'cat', 'fish'];\n  let ap = ArrayProxy.create({\n      content: A(pets),\n      objectAtContent: function(idx) {\n          return this.get('content').objectAt(idx).toUpperCase();\n      }\n  });\n\n  ap.get('firstObject'); // . 'DOG'\n  ```\n\n  When overriding this class, it is important to place the call to\n  `_super` *after* setting `content` so the internal observers have\n  a chance to fire properly:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import ArrayProxy from '@ember/array/proxy';\n\n  export default ArrayProxy.extend({\n    init() {\n      this.set('content', A(['dog', 'cat', 'fish']));\n      this._super(...arguments);\n    }\n  });\n  ```\n\n  @class ArrayProxy\n  @extends EmberObject\n  @uses MutableArray\n  @public\n*/\n\nexport default class ArrayProxy extends EmberObject {\n  init() {\n    super.init(...arguments);\n    /*\n      `this._objectsDirtyIndex` determines which indexes in the `this._objects`\n      cache are dirty.\n       If `this._objectsDirtyIndex === -1` then no indexes are dirty.\n      Otherwise, an index `i` is dirty if `i >= this._objectsDirtyIndex`.\n       Calling `objectAt` with a dirty index will cause the `this._objects`\n      cache to be recomputed.\n    */\n\n    this._objectsDirtyIndex = 0;\n    this._objects = null;\n    this._lengthDirty = true;\n    this._length = 0;\n    this._arrangedContent = null;\n    this._arrangedContentIsUpdating = false;\n    this._arrangedContentTag = null;\n    this._arrangedContentRevision = null;\n    this._lengthTag = null;\n    this._arrTag = null;\n  }\n\n  [PROPERTY_DID_CHANGE]() {\n    this._revalidate();\n  }\n\n  [CUSTOM_TAG_FOR](key) {\n    if (key === '[]') {\n      this._revalidate();\n\n      return this._arrTag;\n    } else if (key === 'length') {\n      this._revalidate();\n\n      return this._lengthTag;\n    }\n\n    return tagFor(this, key);\n  }\n\n  willDestroy() {\n    this._removeArrangedContentArrayObserver();\n  }\n  /**\n    The content array. Must be an object that implements `Array` and/or\n    `MutableArray.`\n     @property content\n    @type EmberArray\n    @public\n  */\n\n  /**\n    Should actually retrieve the object at the specified index from the\n    content. You can override this method in subclasses to transform the\n    content item to something new.\n     This method will only be called if content is non-`null`.\n     @method objectAtContent\n    @param {Number} idx The index to retrieve.\n    @return {Object} the value or undefined if none found\n    @public\n  */\n\n\n  objectAtContent(idx) {\n    return objectAt(get(this, 'arrangedContent'), idx);\n  } // See additional docs for `replace` from `MutableArray`:\n  // https://api.emberjs.com/ember/release/classes/MutableArray/methods/replace?anchor=replace\n\n\n  replace(idx, amt, objects) {\n    assert('Mutating an arranged ArrayProxy is not allowed', get(this, 'arrangedContent') === get(this, 'content'));\n    this.replaceContent(idx, amt, objects);\n  }\n  /**\n    Should actually replace the specified objects on the content array.\n    You can override this method in subclasses to transform the content item\n    into something new.\n     This method will only be called if content is non-`null`.\n     @method replaceContent\n    @param {Number} idx The starting index\n    @param {Number} amt The number of items to remove from the content.\n    @param {EmberArray} objects Optional array of objects to insert or null if no\n      objects.\n    @return {void}\n    @public\n  */\n\n\n  replaceContent(idx, amt, objects) {\n    get(this, 'content').replace(idx, amt, objects);\n  } // Overriding objectAt is not supported.\n\n\n  objectAt(idx) {\n    this._revalidate();\n\n    if (this._objects === null) {\n      this._objects = [];\n    }\n\n    if (this._objectsDirtyIndex !== -1 && idx >= this._objectsDirtyIndex) {\n      let arrangedContent = get(this, 'arrangedContent');\n\n      if (arrangedContent) {\n        let length = this._objects.length = get(arrangedContent, 'length');\n\n        for (let i = this._objectsDirtyIndex; i < length; i++) {\n          this._objects[i] = this.objectAtContent(i);\n        }\n      } else {\n        this._objects.length = 0;\n      }\n\n      this._objectsDirtyIndex = -1;\n    }\n\n    return this._objects[idx];\n  } // Overriding length is not supported.\n\n\n  get length() {\n    this._revalidate();\n\n    if (this._lengthDirty) {\n      let arrangedContent = get(this, 'arrangedContent');\n      this._length = arrangedContent ? get(arrangedContent, 'length') : 0;\n      this._lengthDirty = false;\n    }\n\n    consumeTag(this._lengthTag);\n    return this._length;\n  }\n\n  set length(value) {\n    let length = this.length;\n    let removedCount = length - value;\n    let added;\n\n    if (removedCount === 0) {\n      return;\n    } else if (removedCount < 0) {\n      added = new Array(-removedCount);\n      removedCount = 0;\n    }\n\n    let content = get(this, 'content');\n\n    if (content) {\n      replace(content, value, removedCount, added);\n\n      this._invalidate();\n    }\n  }\n\n  _updateArrangedContentArray(arrangedContent) {\n    let oldLength = this._objects === null ? 0 : this._objects.length;\n    let newLength = arrangedContent ? get(arrangedContent, 'length') : 0;\n\n    this._removeArrangedContentArrayObserver();\n\n    this.arrayContentWillChange(0, oldLength, newLength);\n\n    this._invalidate();\n\n    this.arrayContentDidChange(0, oldLength, newLength);\n\n    this._addArrangedContentArrayObserver(arrangedContent);\n  }\n\n  _addArrangedContentArrayObserver(arrangedContent) {\n    if (arrangedContent && !arrangedContent.isDestroyed) {\n      assert(\"Can't set ArrayProxy's content to itself\", arrangedContent !== this);\n      assert(`ArrayProxy expects an Array or ArrayProxy, but you passed ${typeof arrangedContent}`, isArray(arrangedContent) || arrangedContent.isDestroyed);\n      addArrayObserver(arrangedContent, this, ARRAY_OBSERVER_MAPPING);\n      this._arrangedContent = arrangedContent;\n    }\n  }\n\n  _removeArrangedContentArrayObserver() {\n    if (this._arrangedContent) {\n      removeArrayObserver(this._arrangedContent, this, ARRAY_OBSERVER_MAPPING);\n    }\n  }\n\n  _arrangedContentArrayWillChange() {}\n\n  _arrangedContentArrayDidChange(proxy, idx, removedCnt, addedCnt) {\n    this.arrayContentWillChange(idx, removedCnt, addedCnt);\n    let dirtyIndex = idx;\n\n    if (dirtyIndex < 0) {\n      let length = get(this._arrangedContent, 'length');\n      dirtyIndex += length + removedCnt - addedCnt;\n    }\n\n    if (this._objectsDirtyIndex === -1 || this._objectsDirtyIndex > dirtyIndex) {\n      this._objectsDirtyIndex = dirtyIndex;\n    }\n\n    this._lengthDirty = true;\n    this.arrayContentDidChange(idx, removedCnt, addedCnt);\n  }\n\n  _invalidate() {\n    this._objectsDirtyIndex = 0;\n    this._lengthDirty = true;\n  }\n\n  _revalidate() {\n    if (this._arrangedContentIsUpdating === true) return;\n\n    if (this._arrangedContentTag === null || !validateTag(this._arrangedContentTag, this._arrangedContentRevision)) {\n      let arrangedContent = this.get('arrangedContent');\n\n      if (this._arrangedContentTag === null) {\n        // This is the first time the proxy has been setup, only add the observer\n        // don't trigger any events\n        this._addArrangedContentArrayObserver(arrangedContent);\n      } else {\n        this._arrangedContentIsUpdating = true;\n\n        this._updateArrangedContentArray(arrangedContent);\n\n        this._arrangedContentIsUpdating = false;\n      }\n\n      let arrangedContentTag = this._arrangedContentTag = tagFor(this, 'arrangedContent');\n      this._arrangedContentRevision = valueForTag(this._arrangedContentTag);\n\n      if (isObject(arrangedContent)) {\n        this._lengthTag = combine([arrangedContentTag, tagForProperty(arrangedContent, 'length')]);\n        this._arrTag = combine([arrangedContentTag, tagForProperty(arrangedContent, '[]')]);\n      } else {\n        this._lengthTag = this._arrTag = arrangedContentTag;\n      }\n    }\n  }\n\n}\nArrayProxy.reopen(MutableArray, {\n  /**\n    The array that the proxy pretends to be. In the default `ArrayProxy`\n    implementation, this and `content` are the same. Subclasses of `ArrayProxy`\n    can override this property to provide things like sorting and filtering.\n     @property arrangedContent\n    @public\n  */\n  arrangedContent: alias('content'),\n\n  // Array proxies don't need to notify when they change since their `[]` tag is\n  // already dependent on the `[]` tag of `arrangedContent`\n  arrayContentDidChange(startIdx, removeAmt, addAmt) {\n    return arrayContentDidChange(this, startIdx, removeAmt, addAmt, false);\n  }\n\n});","/**\n  @module @ember/object\n*/\nimport { getFactoryFor, setFactoryFor, INIT_FACTORY } from '@ember/-internals/container';\nimport { getOwner, LEGACY_OWNER } from '@ember/-internals/owner';\nimport { assign } from '@ember/polyfills';\nimport { guidFor, getName, setName, makeArray, HAS_NATIVE_PROXY, HAS_NATIVE_SYMBOL, isInternalSymbol } from '@ember/-internals/utils';\nimport { meta } from '@ember/-internals/meta';\nimport { PROXY_CONTENT, sendEvent, Mixin, activateObserver, applyMixin, defineProperty, descriptorForProperty, classToString, isClassicDecorator, DEBUG_INJECTION_FUNCTIONS } from '@ember/-internals/metal';\nimport ActionHandler from '../mixins/action_handler';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { _WeakSet as WeakSet } from '@glimmer/util';\nimport { destroy, isDestroying, isDestroyed, registerDestructor, OWNER } from '@glimmer/runtime';\nconst reopen = Mixin.prototype.reopen;\nconst wasApplied = new WeakSet();\nconst prototypeMixinMap = new WeakMap();\nconst initCalled = DEBUG ? new WeakSet() : undefined; // only used in debug builds to enable the proxy trap\n\nconst destroyCalled = new Set();\n\nfunction ensureDestroyCalled(instance) {\n  if (!destroyCalled.has(instance)) {\n    instance.destroy();\n  }\n}\n\nfunction initialize(obj, properties) {\n  let m = meta(obj);\n\n  if (properties !== undefined) {\n    assert('EmberObject.create only accepts objects.', typeof properties === 'object' && properties !== null);\n    assert('EmberObject.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof Mixin));\n    let concatenatedProperties = obj.concatenatedProperties;\n    let mergedProperties = obj.mergedProperties;\n    let hasConcatenatedProps = concatenatedProperties !== undefined && concatenatedProperties.length > 0;\n    let hasMergedProps = mergedProperties !== undefined && mergedProperties.length > 0;\n    let keyNames = Object.keys(properties);\n\n    for (let i = 0; i < keyNames.length; i++) {\n      let keyName = keyNames[i];\n      let value = properties[keyName];\n      assert('EmberObject.create no longer supports defining computed ' + 'properties. Define computed properties using extend() or reopen() ' + 'before calling create().', !isClassicDecorator(value));\n      assert('EmberObject.create no longer supports defining methods that call _super.', !(typeof value === 'function' && value.toString().indexOf('._super') !== -1));\n      assert('`actions` must be provided at extend time, not at create time, ' + 'when Ember.ActionHandler is used (i.e. views, controllers & routes).', !(keyName === 'actions' && ActionHandler.detect(obj)));\n      let possibleDesc = descriptorForProperty(obj, keyName, m);\n      let isDescriptor = possibleDesc !== undefined;\n\n      if (!isDescriptor) {\n        if (hasConcatenatedProps && concatenatedProperties.indexOf(keyName) > -1) {\n          let baseValue = obj[keyName];\n\n          if (baseValue) {\n            value = makeArray(baseValue).concat(value);\n          } else {\n            value = makeArray(value);\n          }\n        }\n\n        if (hasMergedProps && mergedProperties.indexOf(keyName) > -1) {\n          let baseValue = obj[keyName];\n          value = assign({}, baseValue, value);\n        }\n      }\n\n      if (isDescriptor) {\n        possibleDesc.set(obj, keyName, value);\n      } else if (typeof obj.setUnknownProperty === 'function' && !(keyName in obj)) {\n        obj.setUnknownProperty(keyName, value);\n      } else {\n        if (DEBUG) {\n          defineProperty(obj, keyName, null, value, m); // setup mandatory setter\n        } else {\n          obj[keyName] = value;\n        }\n      }\n    }\n  } // using DEBUG here to avoid the extraneous variable when not needed\n\n\n  if (DEBUG) {\n    initCalled.add(obj);\n  }\n\n  obj.init(properties);\n  m.unsetInitializing();\n  let observerEvents = m.observerEvents();\n\n  if (observerEvents !== undefined) {\n    for (let i = 0; i < observerEvents.length; i++) {\n      activateObserver(obj, observerEvents[i].event, observerEvents[i].sync);\n    }\n  }\n\n  sendEvent(obj, 'init', undefined, undefined, undefined, m);\n}\n/**\n  `CoreObject` is the base class for all Ember constructs. It establishes a\n  class system based on Ember's Mixin system, and provides the basis for the\n  Ember Object Model. `CoreObject` should generally not be used directly,\n  instead you should use `EmberObject`.\n\n  ## Usage\n\n  You can define a class by extending from `CoreObject` using the `extend`\n  method:\n\n  ```js\n  const Person = CoreObject.extend({\n    name: 'Tomster',\n  });\n  ```\n\n  For detailed usage, see the [Object Model](https://guides.emberjs.com/release/object-model/)\n  section of the guides.\n\n  ## Usage with Native Classes\n\n  Native JavaScript `class` syntax can be used to extend from any `CoreObject`\n  based class:\n\n  ```js\n  class Person extends CoreObject {\n    init() {\n      super.init(...arguments);\n      this.name = 'Tomster';\n    }\n  }\n  ```\n\n  Some notes about `class` usage:\n\n  * `new` syntax is not currently supported with classes that extend from\n    `EmberObject` or `CoreObject`. You must continue to use the `create` method\n    when making new instances of classes, even if they are defined using native\n    class syntax. If you want to use `new` syntax, consider creating classes\n    which do _not_ extend from `EmberObject` or `CoreObject`. Ember features,\n    such as computed properties and decorators, will still work with base-less\n    classes.\n  * Instead of using `this._super()`, you must use standard `super` syntax in\n    native classes. See the [MDN docs on classes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Super_class_calls_with_super)\n    for more details.\n  * Native classes support using [constructors](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes#Constructor)\n    to set up newly-created instances. Ember uses these to, among other things,\n    support features that need to retrieve other entities by name, like Service\n    injection and `getOwner`. To ensure your custom instance setup logic takes\n    place after this important work is done, avoid using the `constructor` in\n    favor of `init`.\n  * Properties passed to `create` will be available on the instance by the time\n    `init` runs, so any code that requires these values should work at that\n    time.\n  * Using native classes, and switching back to the old Ember Object model is\n    fully supported.\n\n  @class CoreObject\n  @public\n*/\n\n\nclass CoreObject {\n  constructor(owner) {\n    // setOwner has to set both OWNER and LEGACY_OWNER for backwards compatibility, and\n    // LEGACY_OWNER is enumerable, so setting it would add an enumerable property to the object,\n    // so we just set `OWNER` directly here.\n    this[OWNER] = owner; // prepare prototype...\n\n    this.constructor.proto();\n    let self = this;\n\n    if (DEBUG && HAS_NATIVE_PROXY && typeof self.unknownProperty === 'function') {\n      let messageFor = (obj, property) => {\n        return `You attempted to access the \\`${String(property)}\\` property (of ${obj}).\\n` + `Since Ember 3.1, this is usually fine as you no longer need to use \\`.get()\\`\\n` + `to access computed properties. However, in this case, the object in question\\n` + `is a special kind of Ember object (a proxy). Therefore, it is still necessary\\n` + `to use \\`.get('${String(property)}')\\` in this case.\\n\\n` + `If you encountered this error because of third-party code that you don't control,\\n` + `there is more information at https://github.com/emberjs/ember.js/issues/16148, and\\n` + `you can help us improve this error message by telling us more about what happened in\\n` + `this situation.`;\n      };\n      /* globals Proxy Reflect */\n\n\n      self = new Proxy(this, {\n        get(target, property, receiver) {\n          if (property === PROXY_CONTENT) {\n            return target;\n          } else if ( // init called will be set on the proxy, not the target, so get with the receiver\n          !initCalled.has(receiver) || typeof property === 'symbol' || isInternalSymbol(property) || property === 'toJSON' || property === 'toString' || property === 'toStringExtension' || property === 'didDefineProperty' || property === 'willWatchProperty' || property === 'didUnwatchProperty' || property === 'didAddListener' || property === 'didRemoveListener' || property === 'isDescriptor' || property === '_onLookup' || property in target) {\n            return Reflect.get(target, property, receiver);\n          }\n\n          let value = target.unknownProperty.call(receiver, property);\n\n          if (typeof value !== 'function') {\n            assert(messageFor(receiver, property), value === undefined || value === null);\n          }\n        }\n\n      });\n    }\n\n    registerDestructor(self, ensureDestroyCalled, true);\n    registerDestructor(self, () => self.willDestroy()); // disable chains\n\n    let m = meta(self);\n    m.setInitializing(); // only return when in debug builds and `self` is the proxy created above\n\n    if (DEBUG && self !== this) {\n      return self;\n    }\n  } // Empty setter for absorbing setting the LEGACY_OWNER, which should _not_\n  // become an enumerable property, and should not be used in general.\n\n\n  set [LEGACY_OWNER](value) {}\n\n  reopen(...args) {\n    applyMixin(this, args);\n    return this;\n  }\n  /**\n    An overridable method called when objects are instantiated. By default,\n    does nothing unless it is overridden during class definition.\n     Example:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      init() {\n        alert(`Name is ${this.get('name')}`);\n      }\n    });\n     let steve = Person.create({\n      name: 'Steve'\n    });\n     // alerts 'Name is Steve'.\n    ```\n     NOTE: If you do override `init` for a framework class like `Component`\n    from `@ember/component`, be sure to call `this._super(...arguments)`\n    in your `init` declaration!\n    If you don't, Ember may not have an opportunity to\n    do important setup work, and you'll see strange behavior in your\n    application.\n     @method init\n    @public\n  */\n\n\n  init() {}\n  /**\n    Defines the properties that will be concatenated from the superclass\n    (instead of overridden).\n     By default, when you extend an Ember class a property defined in\n    the subclass overrides a property with the same name that is defined\n    in the superclass. However, there are some cases where it is preferable\n    to build up a property's value by combining the superclass' property\n    value with the subclass' value. An example of this in use within Ember\n    is the `classNames` property of `Component` from `@ember/component`.\n     Here is some sample code showing the difference between a concatenated\n    property and a normal one:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Bar = EmberObject.extend({\n      // Configure which properties to concatenate\n      concatenatedProperties: ['concatenatedProperty'],\n       someNonConcatenatedProperty: ['bar'],\n      concatenatedProperty: ['bar']\n    });\n     const FooBar = Bar.extend({\n      someNonConcatenatedProperty: ['foo'],\n      concatenatedProperty: ['foo']\n    });\n     let fooBar = FooBar.create();\n    fooBar.get('someNonConcatenatedProperty'); // ['foo']\n    fooBar.get('concatenatedProperty'); // ['bar', 'foo']\n    ```\n     This behavior extends to object creation as well. Continuing the\n    above example:\n     ```javascript\n    let fooBar = FooBar.create({\n      someNonConcatenatedProperty: ['baz'],\n      concatenatedProperty: ['baz']\n    })\n    fooBar.get('someNonConcatenatedProperty'); // ['baz']\n    fooBar.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n    ```\n     Adding a single property that is not an array will just add it in the array:\n     ```javascript\n    let fooBar = FooBar.create({\n      concatenatedProperty: 'baz'\n    })\n    view.get('concatenatedProperty'); // ['bar', 'foo', 'baz']\n    ```\n     Using the `concatenatedProperties` property, we can tell Ember to mix the\n    content of the properties.\n     In `Component` the `classNames`, `classNameBindings` and\n    `attributeBindings` properties are concatenated.\n     This feature is available for you to use throughout the Ember object model,\n    although typical app developers are likely to use it infrequently. Since\n    it changes expectations about behavior of properties, you should properly\n    document its usage in each individual concatenated property (to not\n    mislead your users to think they can override the property in a subclass).\n     @property concatenatedProperties\n    @type Array\n    @default null\n    @public\n  */\n\n  /**\n    Defines the properties that will be merged from the superclass\n    (instead of overridden).\n     By default, when you extend an Ember class a property defined in\n    the subclass overrides a property with the same name that is defined\n    in the superclass. However, there are some cases where it is preferable\n    to build up a property's value by merging the superclass property value\n    with the subclass property's value. An example of this in use within Ember\n    is the `queryParams` property of routes.\n     Here is some sample code showing the difference between a merged\n    property and a normal one:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Bar = EmberObject.extend({\n      // Configure which properties are to be merged\n      mergedProperties: ['mergedProperty'],\n       someNonMergedProperty: {\n        nonMerged: 'superclass value of nonMerged'\n      },\n      mergedProperty: {\n        page: { replace: false },\n        limit: { replace: true }\n      }\n    });\n     const FooBar = Bar.extend({\n      someNonMergedProperty: {\n        completelyNonMerged: 'subclass value of nonMerged'\n      },\n      mergedProperty: {\n        limit: { replace: false }\n      }\n    });\n     let fooBar = FooBar.create();\n     fooBar.get('someNonMergedProperty');\n    // => { completelyNonMerged: 'subclass value of nonMerged' }\n    //\n    // Note the entire object, including the nonMerged property of\n    // the superclass object, has been replaced\n     fooBar.get('mergedProperty');\n    // => {\n    //   page: {replace: false},\n    //   limit: {replace: false}\n    // }\n    //\n    // Note the page remains from the superclass, and the\n    // `limit` property's value of `false` has been merged from\n    // the subclass.\n    ```\n     This behavior is not available during object `create` calls. It is only\n    available at `extend` time.\n     In `Route` the `queryParams` property is merged.\n     This feature is available for you to use throughout the Ember object model,\n    although typical app developers are likely to use it infrequently. Since\n    it changes expectations about behavior of properties, you should properly\n    document its usage in each individual merged property (to not\n    mislead your users to think they can override the property in a subclass).\n     @property mergedProperties\n    @type Array\n    @default null\n    @public\n  */\n\n  /**\n    Destroyed object property flag.\n     if this property is `true` the observers and bindings were already\n    removed by the effect of calling the `destroy()` method.\n     @property isDestroyed\n    @default false\n    @public\n  */\n\n\n  get isDestroyed() {\n    return isDestroyed(this);\n  }\n\n  set isDestroyed(value) {\n    assert(`You cannot set \\`${this}.isDestroyed\\` directly, please use \\`.destroy()\\`.`, false);\n  }\n  /**\n    Destruction scheduled flag. The `destroy()` method has been called.\n     The object stays intact until the end of the run loop at which point\n    the `isDestroyed` flag is set.\n     @property isDestroying\n    @default false\n    @public\n  */\n\n\n  get isDestroying() {\n    return isDestroying(this);\n  }\n\n  set isDestroying(value) {\n    assert(`You cannot set \\`${this}.isDestroying\\` directly, please use \\`.destroy()\\`.`, false);\n  }\n  /**\n    Destroys an object by setting the `isDestroyed` flag and removing its\n    metadata, which effectively destroys observers and bindings.\n     If you try to set a property on a destroyed object, an exception will be\n    raised.\n     Note that destruction is scheduled for the end of the run loop and does not\n    happen immediately.  It will set an isDestroying flag immediately.\n     @method destroy\n    @return {EmberObject} receiver\n    @public\n  */\n\n\n  destroy() {\n    // Used to ensure that manually calling `.destroy()` does not immediately call destroy again\n    destroyCalled.add(this);\n\n    try {\n      destroy(this);\n    } finally {\n      destroyCalled.delete(this);\n    }\n\n    return this;\n  }\n  /**\n    Override to implement teardown.\n     @method willDestroy\n    @public\n  */\n\n\n  willDestroy() {}\n  /**\n    Returns a string representation which attempts to provide more information\n    than Javascript's `toString` typically does, in a generic way for all Ember\n    objects.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend();\n    person = Person.create();\n    person.toString(); //=> \"<Person:ember1024>\"\n    ```\n     If the object's class is not defined on an Ember namespace, it will\n    indicate it is a subclass of the registered superclass:\n     ```javascript\n    const Student = Person.extend();\n    let student = Student.create();\n    student.toString(); //=> \"<(subclass of Person):ember1025>\"\n    ```\n     If the method `toStringExtension` is defined, its return value will be\n    included in the output.\n     ```javascript\n    const Teacher = Person.extend({\n      toStringExtension() {\n        return this.get('fullName');\n      }\n    });\n    teacher = Teacher.create();\n    teacher.toString(); //=> \"<Teacher:ember1026:Tom Dale>\"\n    ```\n     @method toString\n    @return {String} string representation\n    @public\n  */\n\n\n  toString() {\n    let hasToStringExtension = typeof this.toStringExtension === 'function';\n    let extension = hasToStringExtension ? `:${this.toStringExtension()}` : '';\n    let ret = `<${getName(this) || getFactoryFor(this) || this.constructor.toString()}:${guidFor(this)}${extension}>`;\n    return ret;\n  }\n  /**\n    Creates a new subclass.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      say(thing) {\n        alert(thing);\n       }\n    });\n    ```\n     This defines a new subclass of EmberObject: `Person`. It contains one method: `say()`.\n     You can also create a subclass from any existing class by calling its `extend()` method.\n    For example, you might want to create a subclass of Ember's built-in `Component` class:\n     ```javascript\n    import Component from '@ember/component';\n     const PersonComponent = Component.extend({\n      tagName: 'li',\n      classNameBindings: ['isAdministrator']\n    });\n    ```\n     When defining a subclass, you can override methods but still access the\n    implementation of your parent class by calling the special `_super()` method:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      say(thing) {\n        let name = this.get('name');\n        alert(`${name} says: ${thing}`);\n      }\n    });\n     const Soldier = Person.extend({\n      say(thing) {\n        this._super(`${thing}, sir!`);\n      },\n      march(numberOfHours) {\n        alert(`${this.get('name')} marches for ${numberOfHours} hours.`);\n      }\n    });\n     let yehuda = Soldier.create({\n      name: 'Yehuda Katz'\n    });\n     yehuda.say('Yes');  // alerts \"Yehuda Katz says: Yes, sir!\"\n    ```\n     The `create()` on line #17 creates an *instance* of the `Soldier` class.\n    The `extend()` on line #8 creates a *subclass* of `Person`. Any instance\n    of the `Person` class will *not* have the `march()` method.\n     You can also pass `Mixin` classes to add additional properties to the subclass.\n     ```javascript\n    import EmberObject from '@ember/object';\n    import Mixin from '@ember/object/mixin';\n     const Person = EmberObject.extend({\n      say(thing) {\n        alert(`${this.get('name')} says: ${thing}`);\n      }\n    });\n     const SingingMixin = Mixin.create({\n      sing(thing) {\n        alert(`${this.get('name')} sings: la la la ${thing}`);\n      }\n    });\n     const BroadwayStar = Person.extend(SingingMixin, {\n      dance() {\n        alert(`${this.get('name')} dances: tap tap tap tap `);\n      }\n    });\n    ```\n     The `BroadwayStar` class contains three methods: `say()`, `sing()`, and `dance()`.\n     @method extend\n    @static\n    @for @ember/object\n    @param {Mixin} [mixins]* One or more Mixin classes\n    @param {Object} [arguments]* Object containing values to use within the new class\n    @public\n  */\n\n\n  static extend() {\n    let Class = class extends this {};\n    reopen.apply(Class.PrototypeMixin, arguments);\n    return Class;\n  }\n  /**\n    Creates an instance of a class. Accepts either no arguments, or an object\n    containing values to initialize the newly instantiated object with.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      helloWorld() {\n        alert(`Hi, my name is ${this.get('name')}`);\n      }\n    });\n     let tom = Person.create({\n      name: 'Tom Dale'\n    });\n     tom.helloWorld(); // alerts \"Hi, my name is Tom Dale\".\n    ```\n     `create` will call the `init` function if defined during\n    `AnyObject.extend`\n     If no arguments are passed to `create`, it will not set values to the new\n    instance during initialization:\n     ```javascript\n    let noName = Person.create();\n    noName.helloWorld(); // alerts undefined\n    ```\n     NOTE: For performance reasons, you cannot declare methods or computed\n    properties during `create`. You should instead declare methods and computed\n    properties when using `extend`.\n     @method create\n    @for @ember/object\n    @static\n    @param [arguments]*\n    @public\n  */\n\n\n  static create(props, extra) {\n    let instance;\n\n    if (props !== undefined) {\n      instance = new this(getOwner(props));\n      setFactoryFor(instance, getFactoryFor(props));\n    } else {\n      instance = new this();\n    }\n\n    if (extra === undefined) {\n      initialize(instance, props);\n    } else {\n      initialize(instance, flattenProps.apply(this, arguments));\n    }\n\n    return instance;\n  }\n  /**\n    Augments a constructor's prototype with additional\n    properties and functions:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const MyObject = EmberObject.extend({\n      name: 'an object'\n    });\n     o = MyObject.create();\n    o.get('name'); // 'an object'\n     MyObject.reopen({\n      say(msg) {\n        console.log(msg);\n      }\n    });\n     o2 = MyObject.create();\n    o2.say('hello'); // logs \"hello\"\n     o.say('goodbye'); // logs \"goodbye\"\n    ```\n     To add functions and properties to the constructor itself,\n    see `reopenClass`\n     @method reopen\n    @for @ember/object\n    @static\n    @public\n  */\n\n\n  static reopen() {\n    this.willReopen();\n    reopen.apply(this.PrototypeMixin, arguments);\n    return this;\n  }\n\n  static willReopen() {\n    let p = this.prototype;\n\n    if (wasApplied.has(p)) {\n      wasApplied.delete(p); // If the base mixin already exists and was applied, create a new mixin to\n      // make sure that it gets properly applied. Reusing the same mixin after\n      // the first `proto` call will cause it to get skipped.\n\n      if (prototypeMixinMap.has(this)) {\n        prototypeMixinMap.set(this, Mixin.create(this.PrototypeMixin));\n      }\n    }\n  }\n  /**\n    Augments a constructor's own properties and functions:\n     ```javascript\n    import EmberObject from '@ember/object';\n     const MyObject = EmberObject.extend({\n      name: 'an object'\n    });\n     MyObject.reopenClass({\n      canBuild: false\n    });\n     MyObject.canBuild; // false\n    o = MyObject.create();\n    ```\n     In other words, this creates static properties and functions for the class.\n    These are only available on the class and not on any instance of that class.\n     ```javascript\n    import EmberObject from '@ember/object';\n     const Person = EmberObject.extend({\n      name: '',\n      sayHello() {\n        alert(`Hello. My name is ${this.get('name')}`);\n      }\n    });\n     Person.reopenClass({\n      species: 'Homo sapiens',\n       createPerson(name) {\n        return Person.create({ name });\n      }\n    });\n     let tom = Person.create({\n      name: 'Tom Dale'\n    });\n    let yehuda = Person.createPerson('Yehuda Katz');\n     tom.sayHello(); // \"Hello. My name is Tom Dale\"\n    yehuda.sayHello(); // \"Hello. My name is Yehuda Katz\"\n    alert(Person.species); // \"Homo sapiens\"\n    ```\n     Note that `species` and `createPerson` are *not* valid on the `tom` and `yehuda`\n    variables. They are only valid on `Person`.\n     To add functions and properties to instances of\n    a constructor by extending the constructor's prototype\n    see `reopen`\n     @method reopenClass\n    @for @ember/object\n    @static\n    @public\n  */\n\n\n  static reopenClass() {\n    applyMixin(this, arguments);\n    return this;\n  }\n\n  static detect(obj) {\n    if ('function' !== typeof obj) {\n      return false;\n    }\n\n    while (obj) {\n      if (obj === this) {\n        return true;\n      }\n\n      obj = obj.superclass;\n    }\n\n    return false;\n  }\n\n  static detectInstance(obj) {\n    return obj instanceof this;\n  }\n  /**\n    In some cases, you may want to annotate computed properties with additional\n    metadata about how they function or what values they operate on. For\n    example, computed property functions may close over variables that are then\n    no longer available for introspection.\n     You can pass a hash of these values to a computed property like this:\n     ```javascript\n    import { computed } from '@ember/object';\n     person: computed(function() {\n      let personId = this.get('personId');\n      return Person.create({ id: personId });\n    }).meta({ type: Person })\n    ```\n     Once you've done this, you can retrieve the values saved to the computed\n    property from your class like this:\n     ```javascript\n    MyClass.metaForProperty('person');\n    ```\n     This will return the original hash that was passed to `meta()`.\n     @static\n    @method metaForProperty\n    @param key {String} property name\n    @private\n  */\n\n\n  static metaForProperty(key) {\n    let proto = this.proto(); // ensure prototype is initialized\n\n    let possibleDesc = descriptorForProperty(proto, key);\n    assert(`metaForProperty() could not find a computed property with key '${key}'.`, possibleDesc !== undefined);\n    return possibleDesc._meta || {};\n  }\n  /**\n    Iterate over each computed property for the class, passing its name\n    and any associated metadata (see `metaForProperty`) to the callback.\n     @static\n    @method eachComputedProperty\n    @param {Function} callback\n    @param {Object} binding\n    @private\n  */\n\n\n  static eachComputedProperty(callback, binding = this) {\n    this.proto(); // ensure prototype is initialized\n\n    let empty = {};\n    meta(this.prototype).forEachDescriptors((name, descriptor) => {\n      if (descriptor.enumerable) {\n        let meta = descriptor._meta || empty;\n        callback.call(binding, name, meta);\n      }\n    });\n  }\n\n  static get PrototypeMixin() {\n    let prototypeMixin = prototypeMixinMap.get(this);\n\n    if (prototypeMixin === undefined) {\n      prototypeMixin = Mixin.create();\n      prototypeMixin.ownerConstructor = this;\n      prototypeMixinMap.set(this, prototypeMixin);\n    }\n\n    return prototypeMixin;\n  }\n\n  static get superclass() {\n    let c = Object.getPrototypeOf(this);\n    return c !== Function.prototype ? c : undefined;\n  }\n\n  static proto() {\n    let p = this.prototype;\n\n    if (!wasApplied.has(p)) {\n      wasApplied.add(p);\n      let parent = this.superclass;\n\n      if (parent) {\n        parent.proto();\n      } // If the prototype mixin exists, apply it. In the case of native classes,\n      // it will not exist (unless the class has been reopened).\n\n\n      if (prototypeMixinMap.has(this)) {\n        this.PrototypeMixin.apply(p);\n      }\n    }\n\n    return p;\n  }\n\n}\n\nCoreObject.toString = classToString;\nsetName(CoreObject, 'Ember.CoreObject');\nCoreObject.isClass = true;\nCoreObject.isMethod = false;\n\nfunction flattenProps(...props) {\n  let {\n    concatenatedProperties,\n    mergedProperties\n  } = this;\n  let hasConcatenatedProps = concatenatedProperties !== undefined && concatenatedProperties.length > 0;\n  let hasMergedProps = mergedProperties !== undefined && mergedProperties.length > 0;\n  let initProperties = {};\n\n  for (let i = 0; i < props.length; i++) {\n    let properties = props[i];\n    assert('EmberObject.create no longer supports mixing in other ' + 'definitions, use .extend & .create separately instead.', !(properties instanceof Mixin));\n    let keyNames = Object.keys(properties);\n\n    for (let j = 0, k = keyNames.length; j < k; j++) {\n      let keyName = keyNames[j];\n      let value = properties[keyName];\n\n      if (hasConcatenatedProps && concatenatedProperties.indexOf(keyName) > -1) {\n        let baseValue = initProperties[keyName];\n\n        if (baseValue) {\n          value = makeArray(baseValue).concat(value);\n        } else {\n          value = makeArray(value);\n        }\n      }\n\n      if (hasMergedProps && mergedProperties.indexOf(keyName) > -1) {\n        let baseValue = initProperties[keyName];\n        value = assign({}, baseValue, value);\n      }\n\n      initProperties[keyName] = value;\n    }\n  }\n\n  return initProperties;\n}\n\nif (DEBUG) {\n  /**\n    Provides lookup-time type validation for injected properties.\n     @private\n    @method _onLookup\n  */\n  CoreObject._onLookup = function injectedPropertyAssertion(debugContainerKey) {\n    let [type] = debugContainerKey.split(':');\n    let proto = this.proto();\n\n    for (let key in proto) {\n      let desc = descriptorForProperty(proto, key);\n\n      if (desc && DEBUG_INJECTION_FUNCTIONS.has(desc._getter)) {\n        assert(`Defining \\`${key}\\` as an injected controller property on a non-controller (\\`${debugContainerKey}\\`) is not allowed.`, type === 'controller' || DEBUG_INJECTION_FUNCTIONS.get(desc._getter).type !== 'controller');\n      }\n    }\n  };\n  /**\n    Returns a hash of property names and container names that injected\n    properties will lookup on the container lazily.\n     @method _lazyInjections\n    @return {Object} Hash of all lazy injected property keys to container names\n    @private\n  */\n\n\n  CoreObject._lazyInjections = function () {\n    let injections = {};\n    let proto = this.proto();\n    let key;\n    let desc;\n\n    for (key in proto) {\n      desc = descriptorForProperty(proto, key);\n\n      if (desc && DEBUG_INJECTION_FUNCTIONS.has(desc._getter)) {\n        let {\n          namespace,\n          source,\n          type,\n          name\n        } = DEBUG_INJECTION_FUNCTIONS.get(desc._getter);\n        injections[key] = {\n          namespace,\n          source,\n          specifier: `${type}:${name || key}`\n        };\n      }\n    }\n\n    return injections;\n  };\n}\n\nif (!HAS_NATIVE_SYMBOL) {\n  // Allows OWNER and INIT_FACTORY to be non-enumerable in IE11\n  let instanceOwner = new WeakMap();\n  let instanceFactory = new WeakMap();\n  Object.defineProperty(CoreObject.prototype, OWNER, {\n    get() {\n      return instanceOwner.get(this);\n    },\n\n    set(value) {\n      instanceOwner.set(this, value);\n    }\n\n  });\n  Object.defineProperty(CoreObject.prototype, INIT_FACTORY, {\n    get() {\n      return instanceFactory.get(this);\n    },\n\n    set(value) {\n      instanceFactory.set(this, value);\n    }\n\n  });\n}\n\nexport default CoreObject;","/**\n@module ember\n*/\nimport { NAMESPACES, NAMESPACES_BY_ID, addNamespace, findNamespace, findNamespaces, get, processNamespace, processAllNamespaces, removeNamespace } from '@ember/-internals/metal'; // Preloaded into namespaces\n\nimport { getName, guidFor, setName } from '@ember/-internals/utils';\nimport EmberObject from './object';\n/**\n  A Namespace is an object usually used to contain other objects or methods\n  such as an application or framework. Create a namespace anytime you want\n  to define one of these new containers.\n\n  # Example Usage\n\n  ```javascript\n  MyFramework = Ember.Namespace.create({\n    VERSION: '1.0.0'\n  });\n  ```\n\n  @class Namespace\n  @namespace Ember\n  @extends EmberObject\n  @public\n*/\n\nexport default class Namespace extends EmberObject {\n  init() {\n    addNamespace(this);\n  }\n\n  toString() {\n    let name = get(this, 'name') || get(this, 'modulePrefix');\n\n    if (name) {\n      return name;\n    }\n\n    findNamespaces();\n    name = getName(this);\n\n    if (name === undefined) {\n      name = guidFor(this);\n      setName(this, name);\n    }\n\n    return name;\n  }\n\n  nameClasses() {\n    processNamespace(this);\n  }\n\n  destroy() {\n    removeNamespace(this);\n    super.destroy();\n  }\n\n}\nNamespace.prototype.isNamespace = true;\nNamespace.NAMESPACES = NAMESPACES;\nNamespace.NAMESPACES_BY_ID = NAMESPACES_BY_ID;\nNamespace.processAll = processAllNamespaces;\nNamespace.byName = findNamespace;","/**\n@module @ember/object\n*/\nimport { getFactoryFor } from '@ember/-internals/container';\nimport { symbol, setName } from '@ember/-internals/utils';\nimport { addListener } from '@ember/-internals/metal';\nimport CoreObject from './core_object';\nimport Observable from '../mixins/observable';\nimport { assert } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\n/**\n  `EmberObject` is the main base class for all Ember objects. It is a subclass\n  of `CoreObject` with the `Observable` mixin applied. For details,\n  see the documentation for each of these.\n\n  @class EmberObject\n  @extends CoreObject\n  @uses Observable\n  @public\n*/\n\nexport default class EmberObject extends CoreObject {\n  get _debugContainerKey() {\n    let factory = getFactoryFor(this);\n    return factory !== undefined && factory.fullName;\n  }\n\n}\nsetName(EmberObject, 'Ember.Object');\nObservable.apply(EmberObject.prototype);\nexport let FrameworkObject;\nFrameworkObject = class FrameworkObject extends CoreObject {\n  get _debugContainerKey() {\n    let factory = getFactoryFor(this);\n    return factory !== undefined && factory.fullName;\n  }\n\n};\nObservable.apply(FrameworkObject.prototype);\n\nif (DEBUG) {\n  let INIT_WAS_CALLED = symbol('INIT_WAS_CALLED');\n  let ASSERT_INIT_WAS_CALLED = symbol('ASSERT_INIT_WAS_CALLED');\n  FrameworkObject = class DebugFrameworkObject extends EmberObject {\n    init() {\n      super.init(...arguments);\n      this[INIT_WAS_CALLED] = true;\n    }\n\n    [ASSERT_INIT_WAS_CALLED]() {\n      assert(`You must call \\`super.init(...arguments);\\` or \\`this._super(...arguments)\\` when overriding \\`init\\` on a framework object. Please update ${this} to call \\`super.init(...arguments);\\` from \\`init\\` when using native classes or \\`this._super(...arguments)\\` when using \\`EmberObject.extend()\\`.`, this[INIT_WAS_CALLED]);\n    }\n\n  };\n  addListener(FrameworkObject.prototype, 'init', null, ASSERT_INIT_WAS_CALLED);\n}","import FrameworkObject from './object';\nimport _ProxyMixin from '../mixins/-proxy';\n/**\n  `ObjectProxy` forwards all properties not defined by the proxy itself\n  to a proxied `content` object.\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import ObjectProxy from '@ember/object/proxy';\n\n  let exampleObject = EmberObject.create({\n    name: 'Foo'\n  });\n\n  let exampleProxy = ObjectProxy.create({\n    content: exampleObject\n  });\n\n  // Access and change existing properties\n  exampleProxy.get('name');          // 'Foo'\n  exampleProxy.set('name', 'Bar');\n  exampleObject.get('name');         // 'Bar'\n\n  // Create new 'description' property on `exampleObject`\n  exampleProxy.set('description', 'Foo is a whizboo baz');\n  exampleObject.get('description');  // 'Foo is a whizboo baz'\n  ```\n\n  While `content` is unset, setting a property to be delegated will throw an\n  Error.\n\n  ```javascript\n  import ObjectProxy from '@ember/object/proxy';\n\n  let exampleProxy = ObjectProxy.create({\n    content: null,\n    flag: null\n  });\n  exampleProxy.set('flag', true);\n  exampleProxy.get('flag');         // true\n  exampleProxy.get('foo');          // undefined\n  exampleProxy.set('foo', 'data');  // throws Error\n  ```\n\n  Delegated properties can be bound to and will change when content is updated.\n\n  Computed properties on the proxy itself can depend on delegated properties.\n\n  ```javascript\n  import { computed } from '@ember/object';\n  import ObjectProxy from '@ember/object/proxy';\n\n  ProxyWithComputedProperty = ObjectProxy.extend({\n    fullName: computed('firstName', 'lastName', function() {\n      var firstName = this.get('firstName'),\n          lastName = this.get('lastName');\n      if (firstName && lastName) {\n        return firstName + ' ' + lastName;\n      }\n      return firstName || lastName;\n    })\n  });\n\n  let exampleProxy = ProxyWithComputedProperty.create();\n\n  exampleProxy.get('fullName');  // undefined\n  exampleProxy.set('content', {\n    firstName: 'Tom', lastName: 'Dale'\n  }); // triggers property change for fullName on proxy\n\n  exampleProxy.get('fullName');  // 'Tom Dale'\n  ```\n\n  @class ObjectProxy\n  @extends EmberObject\n  @uses Ember.ProxyMixin\n  @public\n*/\n\nexport default class ObjectProxy extends FrameworkObject {}\nObjectProxy.PrototypeMixin.reopen(_ProxyMixin);","import CoreObject from './system/core_object'; // ........................................\n// TYPING & ARRAY MESSAGING\n//\n\nconst TYPE_MAP = {\n  '[object Boolean]': 'boolean',\n  '[object Number]': 'number',\n  '[object String]': 'string',\n  '[object Function]': 'function',\n  '[object AsyncFunction]': 'function',\n  '[object Array]': 'array',\n  '[object Date]': 'date',\n  '[object RegExp]': 'regexp',\n  '[object Object]': 'object',\n  '[object FileList]': 'filelist'\n};\nconst {\n  toString\n} = Object.prototype;\n/**\n @module @ember/utils\n*/\n\n/**\n  Returns a consistent type for the passed object.\n\n  Use this instead of the built-in `typeof` to get the type of an item.\n  It will return the same result across all browsers and includes a bit\n  more detail. Here is what will be returned:\n\n      | Return Value  | Meaning                                              |\n      |---------------|------------------------------------------------------|\n      | 'string'      | String primitive or String object.                   |\n      | 'number'      | Number primitive or Number object.                   |\n      | 'boolean'     | Boolean primitive or Boolean object.                 |\n      | 'null'        | Null value                                           |\n      | 'undefined'   | Undefined value                                      |\n      | 'function'    | A function                                           |\n      | 'array'       | An instance of Array                                 |\n      | 'regexp'      | An instance of RegExp                                |\n      | 'date'        | An instance of Date                                  |\n      | 'filelist'    | An instance of FileList                              |\n      | 'class'       | An Ember class (created using EmberObject.extend())  |\n      | 'instance'    | An Ember object instance                             |\n      | 'error'       | An instance of the Error object                      |\n      | 'object'      | A JavaScript object not inheriting from EmberObject  |\n\n  Examples:\n\n  ```javascript\n  import { A } from '@ember/array';\n  import { typeOf } from '@ember/utils';\n  import EmberObject from '@ember/object';\n\n  typeOf();                       // 'undefined'\n  typeOf(null);                   // 'null'\n  typeOf(undefined);              // 'undefined'\n  typeOf('michael');              // 'string'\n  typeOf(new String('michael'));  // 'string'\n  typeOf(101);                    // 'number'\n  typeOf(new Number(101));        // 'number'\n  typeOf(true);                   // 'boolean'\n  typeOf(new Boolean(true));      // 'boolean'\n  typeOf(A);                      // 'function'\n  typeOf(A());                    // 'array'\n  typeOf([1, 2, 90]);             // 'array'\n  typeOf(/abc/);                  // 'regexp'\n  typeOf(new Date());             // 'date'\n  typeOf(event.target.files);     // 'filelist'\n  typeOf(EmberObject.extend());   // 'class'\n  typeOf(EmberObject.create());   // 'instance'\n  typeOf(new Error('teamocil'));  // 'error'\n\n  // 'normal' JavaScript object\n  typeOf({ a: 'b' });             // 'object'\n  ```\n\n  @method typeOf\n  @for @ember/utils\n  @param {Object} item the item to check\n  @return {String} the type\n  @public\n  @static\n*/\n\nexport function typeOf(item) {\n  if (item === null) {\n    return 'null';\n  }\n\n  if (item === undefined) {\n    return 'undefined';\n  }\n\n  let ret = TYPE_MAP[toString.call(item)] || 'object';\n\n  if (ret === 'function') {\n    if (CoreObject.detect(item)) {\n      ret = 'class';\n    }\n  } else if (ret === 'object') {\n    if (item instanceof Error) {\n      ret = 'error';\n    } else if (item instanceof CoreObject) {\n      ret = 'instance';\n    } else if (item instanceof Date) {\n      ret = 'date';\n    }\n  }\n\n  return ret;\n}","import { DEBUG } from '@glimmer/env';\nimport { _WeakSet } from '@glimmer/util';\nimport { deprecate, assert } from '@ember/debug';\n\n/**\n  Strongly hint runtimes to intern the provided string.\n\n  When do I need to use this function?\n\n  For the most part, never. Pre-mature optimization is bad, and often the\n  runtime does exactly what you need it to, and more often the trade-off isn't\n  worth it.\n\n  Why?\n\n  Runtimes store strings in at least 2 different representations:\n  Ropes and Symbols (interned strings). The Rope provides a memory efficient\n  data-structure for strings created from concatenation or some other string\n  manipulation like splitting.\n\n  Unfortunately checking equality of different ropes can be quite costly as\n  runtimes must resort to clever string comparison algorithms. These\n  algorithms typically cost in proportion to the length of the string.\n  Luckily, this is where the Symbols (interned strings) shine. As Symbols are\n  unique by their string content, equality checks can be done by pointer\n  comparison.\n\n  How do I know if my string is a rope or symbol?\n\n  Typically (warning general sweeping statement, but truthy in runtimes at\n  present) static strings created as part of the JS source are interned.\n  Strings often used for comparisons can be interned at runtime if some\n  criteria are met.  One of these criteria can be the size of the entire rope.\n  For example, in chrome 38 a rope longer then 12 characters will not\n  intern, nor will segments of that rope.\n\n  Some numbers: http://jsperf.com/eval-vs-keys/8\n\n  Known Trick™\n\n  @private\n  @return {String} interned version of the provided string\n*/\nfunction intern(str) {\n  let obj = {};\n  obj[str] = 1;\n\n  for (let key in obj) {\n    if (key === str) {\n      return key;\n    }\n  }\n\n  return str;\n}\n\n/**\n  Returns whether Type(value) is Object.\n\n  Useful for checking whether a value is a valid WeakMap key.\n\n  Refs: https://tc39.github.io/ecma262/#sec-typeof-operator-runtime-semantics-evaluation\n        https://tc39.github.io/ecma262/#sec-weakmap.prototype.set\n\n  @private\n  @function isObject\n*/\nfunction isObject(value) {\n  return value !== null && (typeof value === 'object' || typeof value === 'function');\n}\n\n/**\n @module @ember/object\n*/\n\n/**\n Previously we used `Ember.$.uuid`, however `$.uuid` has been removed from\n jQuery master. We'll just bootstrap our own uuid now.\n\n @private\n @return {Number} the uuid\n */\n\nlet _uuid = 0;\n/**\n Generates a universally unique identifier. This method\n is used internally by Ember for assisting with\n the generation of GUID's and other unique identifiers.\n\n @public\n @return {Number} [description]\n */\n\nfunction uuid() {\n  return ++_uuid;\n}\n/**\n Prefix used for guids through out Ember.\n @private\n @property GUID_PREFIX\n @for Ember\n @type String\n @final\n */\n\nconst GUID_PREFIX = 'ember'; // Used for guid generation...\n\nconst OBJECT_GUIDS = new WeakMap();\nconst NON_OBJECT_GUIDS = new Map();\n/**\n  A unique key used to assign guids and other private metadata to objects.\n  If you inspect an object in your browser debugger you will often see these.\n  They can be safely ignored.\n\n  On browsers that support it, these properties are added with enumeration\n  disabled so they won't show up when you iterate over your properties.\n\n  @private\n  @property GUID_KEY\n  @for Ember\n  @type String\n  @final\n*/\n\nconst GUID_KEY = intern(`__ember${Date.now()}`);\n/**\n  Generates a new guid, optionally saving the guid to the object that you\n  pass in. You will rarely need to use this method. Instead you should\n  call `guidFor(obj)`, which return an existing guid if available.\n\n  @private\n  @method generateGuid\n  @static\n  @for @ember/object/internals\n  @param {Object} [obj] Object the guid will be used for. If passed in, the guid will\n    be saved on the object and reused whenever you pass the same object\n    again.\n\n    If no object is passed, just generate a new guid.\n  @param {String} [prefix] Prefix to place in front of the guid. Useful when you want to\n    separate the guid into separate namespaces.\n  @return {String} the guid\n*/\n\nfunction generateGuid(obj, prefix = GUID_PREFIX) {\n  let guid = prefix + uuid();\n\n  if (isObject(obj)) {\n    OBJECT_GUIDS.set(obj, guid);\n  }\n\n  return guid;\n}\n/**\n  Returns a unique id for the object. If the object does not yet have a guid,\n  one will be assigned to it. You can call this on any object,\n  `EmberObject`-based or not.\n\n  You can also use this method on DOM Element objects.\n\n  @public\n  @static\n  @method guidFor\n  @for @ember/object/internals\n  @param {Object} obj any object, string, number, Element, or primitive\n  @return {String} the unique guid for this instance.\n*/\n\nfunction guidFor(value) {\n  let guid;\n\n  if (isObject(value)) {\n    guid = OBJECT_GUIDS.get(value);\n\n    if (guid === undefined) {\n      guid = GUID_PREFIX + uuid();\n      OBJECT_GUIDS.set(value, guid);\n    }\n  } else {\n    guid = NON_OBJECT_GUIDS.get(value);\n\n    if (guid === undefined) {\n      let type = typeof value;\n\n      if (type === 'string') {\n        guid = 'st' + uuid();\n      } else if (type === 'number') {\n        guid = 'nu' + uuid();\n      } else if (type === 'symbol') {\n        guid = 'sy' + uuid();\n      } else {\n        guid = '(' + value + ')';\n      }\n\n      NON_OBJECT_GUIDS.set(value, guid);\n    }\n  }\n\n  return guid;\n}\n\nconst HAS_NATIVE_SYMBOL = function () {\n  if (typeof Symbol !== 'function') {\n    return false;\n  }\n\n  return typeof Symbol() === 'symbol';\n}();\n\nconst GENERATED_SYMBOLS = [];\nfunction isInternalSymbol(possibleSymbol) {\n  return GENERATED_SYMBOLS.indexOf(possibleSymbol) !== -1;\n} // Some legacy symbols still need to be enumerable for a variety of reasons.\n// This code exists for that, and as a fallback in IE11. In general, prefer\n// `symbol` below when creating a new symbol.\n\nfunction enumerableSymbol(debugName) {\n  // TODO: Investigate using platform symbols, but we do not\n  // want to require non-enumerability for this API, which\n  // would introduce a large cost.\n  let id = GUID_KEY + Math.floor(Math.random() * Date.now());\n  let symbol = intern(`__${debugName}${id}__`);\n\n  if (DEBUG) {\n    GENERATED_SYMBOLS.push(symbol);\n  }\n\n  return symbol;\n}\nconst symbol = HAS_NATIVE_SYMBOL ? Symbol : enumerableSymbol;\n\n// the delete is meant to hint at runtimes that this object should remain in\n// dictionary mode. This is clearly a runtime specific hack, but currently it\n// appears worthwhile in some usecases. Please note, these deletes do increase\n// the cost of creation dramatically over a plain Object.create. And as this\n// only makes sense for long-lived dictionaries that aren't instantiated often.\nfunction makeDictionary(parent) {\n  let dict = Object.create(parent);\n  dict['_dict'] = null;\n  delete dict['_dict'];\n  return dict;\n}\n\nlet getDebugName;\n\nif (DEBUG) {\n  let getFunctionName = fn => {\n    let functionName = fn.name;\n\n    if (functionName === undefined) {\n      let match = Function.prototype.toString.call(fn).match(/function (\\w+)\\s*\\(/);\n      functionName = match && match[1] || '';\n    }\n\n    return functionName.replace(/^bound /, '');\n  };\n\n  let getObjectName = obj => {\n    let name;\n    let className;\n\n    if (obj.constructor && obj.constructor !== Object) {\n      className = getFunctionName(obj.constructor);\n    }\n\n    if ('toString' in obj && obj.toString !== Object.prototype.toString && obj.toString !== Function.prototype.toString) {\n      name = obj.toString();\n    } // If the class has a decent looking name, and the `toString` is one of the\n    // default Ember toStrings, replace the constructor portion of the toString\n    // with the class name. We check the length of the class name to prevent doing\n    // this when the value is minified.\n\n\n    if (name && name.match(/<.*:ember\\d+>/) && className && className[0] !== '_' && className.length > 2 && className !== 'Class') {\n      return name.replace(/<.*:/, `<${className}:`);\n    }\n\n    return name || className;\n  };\n\n  let getPrimitiveName = value => {\n    return String(value);\n  };\n\n  getDebugName = value => {\n    if (typeof value === 'function') {\n      return getFunctionName(value) || `(unknown function)`;\n    } else if (typeof value === 'object' && value !== null) {\n      return getObjectName(value) || `(unknown object)`;\n    } else {\n      return getPrimitiveName(value);\n    }\n  };\n}\n\nvar getDebugName$1 = getDebugName;\n\nconst HAS_SUPER_PATTERN = /\\.(_super|call\\(this|apply\\(this)/;\nconst fnToString = Function.prototype.toString;\nconst checkHasSuper = (() => {\n  let sourceAvailable = fnToString.call(function () {\n    return this;\n  }).indexOf('return this') > -1;\n\n  if (sourceAvailable) {\n    return function checkHasSuper(func) {\n      return HAS_SUPER_PATTERN.test(fnToString.call(func));\n    };\n  }\n\n  return function checkHasSuper() {\n    return true;\n  };\n})();\nconst HAS_SUPER_MAP = new WeakMap();\nconst ROOT = Object.freeze(function () {});\nHAS_SUPER_MAP.set(ROOT, false);\n\nfunction hasSuper(func) {\n  let hasSuper = HAS_SUPER_MAP.get(func);\n\n  if (hasSuper === undefined) {\n    hasSuper = checkHasSuper(func);\n    HAS_SUPER_MAP.set(func, hasSuper);\n  }\n\n  return hasSuper;\n}\n\nclass ObserverListenerMeta {\n  constructor() {\n    this.listeners = undefined;\n    this.observers = undefined;\n  }\n\n}\n\nconst OBSERVERS_LISTENERS_MAP = new WeakMap();\n\nfunction createObserverListenerMetaFor(fn) {\n  let meta = OBSERVERS_LISTENERS_MAP.get(fn);\n\n  if (meta === undefined) {\n    meta = new ObserverListenerMeta();\n    OBSERVERS_LISTENERS_MAP.set(fn, meta);\n  }\n\n  return meta;\n}\n\nfunction observerListenerMetaFor(fn) {\n  return OBSERVERS_LISTENERS_MAP.get(fn);\n}\nfunction setObservers(func, observers) {\n  let meta = createObserverListenerMetaFor(func);\n  meta.observers = observers;\n}\nfunction setListeners(func, listeners) {\n  let meta = createObserverListenerMetaFor(func);\n  meta.listeners = listeners;\n}\nconst IS_WRAPPED_FUNCTION_SET = new _WeakSet();\n/**\n  Wraps the passed function so that `this._super` will point to the superFunc\n  when the function is invoked. This is the primitive we use to implement\n  calls to super.\n\n  @private\n  @method wrap\n  @for Ember\n  @param {Function} func The function to call\n  @param {Function} superFunc The super function.\n  @return {Function} wrapped function.\n*/\n\nfunction wrap(func, superFunc) {\n  if (!hasSuper(func)) {\n    return func;\n  } // ensure an unwrapped super that calls _super is wrapped with a terminal _super\n\n\n  if (!IS_WRAPPED_FUNCTION_SET.has(superFunc) && hasSuper(superFunc)) {\n    return _wrap(func, _wrap(superFunc, ROOT));\n  }\n\n  return _wrap(func, superFunc);\n}\n\nfunction _wrap(func, superFunc) {\n  function superWrapper() {\n    let orig = this._super;\n    this._super = superFunc;\n    let ret = func.apply(this, arguments);\n    this._super = orig;\n    return ret;\n  }\n\n  IS_WRAPPED_FUNCTION_SET.add(superWrapper);\n  let meta = OBSERVERS_LISTENERS_MAP.get(func);\n\n  if (meta !== undefined) {\n    OBSERVERS_LISTENERS_MAP.set(superWrapper, meta);\n  }\n\n  return superWrapper;\n}\n\nconst {\n  toString: objectToString\n} = Object.prototype;\nconst {\n  toString: functionToString\n} = Function.prototype;\nconst {\n  isArray\n} = Array;\nconst {\n  keys: objectKeys\n} = Object;\nconst {\n  stringify\n} = JSON;\nconst LIST_LIMIT = 100;\nconst DEPTH_LIMIT = 4;\nconst SAFE_KEY = /^[\\w$]+$/;\n/**\n @module @ember/debug\n*/\n\n/**\n  Convenience method to inspect an object. This method will attempt to\n  convert the object into a useful string description.\n\n  It is a pretty simple implementation. If you want something more robust,\n  use something like JSDump: https://github.com/NV/jsDump\n\n  @method inspect\n  @static\n  @param {Object} obj The object you want to inspect.\n  @return {String} A description of the object\n  @since 1.4.0\n  @private\n*/\n\nfunction inspect(obj) {\n  // detect Node util.inspect call inspect(depth: number, opts: object)\n  if (typeof obj === 'number' && arguments.length === 2) {\n    return this;\n  }\n\n  return inspectValue(obj, 0);\n}\n\nfunction inspectValue(value, depth, seen) {\n  let valueIsArray = false;\n\n  switch (typeof value) {\n    case 'undefined':\n      return 'undefined';\n\n    case 'object':\n      if (value === null) return 'null';\n\n      if (isArray(value)) {\n        valueIsArray = true;\n        break;\n      } // is toString Object.prototype.toString or undefined then traverse\n\n\n      if (value.toString === objectToString || value.toString === undefined) {\n        break;\n      } // custom toString\n\n\n      return value.toString();\n\n    case 'function':\n      return value.toString === functionToString ? value.name ? `[Function:${value.name}]` : `[Function]` : value.toString();\n\n    case 'string':\n      return stringify(value);\n\n    case 'symbol':\n    case 'boolean':\n    case 'number':\n    default:\n      return value.toString();\n  }\n\n  if (seen === undefined) {\n    seen = new _WeakSet();\n  } else {\n    if (seen.has(value)) return `[Circular]`;\n  }\n\n  seen.add(value);\n  return valueIsArray ? inspectArray(value, depth + 1, seen) : inspectObject(value, depth + 1, seen);\n}\n\nfunction inspectKey(key) {\n  return SAFE_KEY.test(key) ? key : stringify(key);\n}\n\nfunction inspectObject(obj, depth, seen) {\n  if (depth > DEPTH_LIMIT) {\n    return '[Object]';\n  }\n\n  let s = '{';\n  let keys = objectKeys(obj);\n\n  for (let i = 0; i < keys.length; i++) {\n    s += i === 0 ? ' ' : ', ';\n\n    if (i >= LIST_LIMIT) {\n      s += `... ${keys.length - LIST_LIMIT} more keys`;\n      break;\n    }\n\n    let key = keys[i];\n    s += inspectKey(key) + ': ' + inspectValue(obj[key], depth, seen);\n  }\n\n  s += ' }';\n  return s;\n}\n\nfunction inspectArray(arr, depth, seen) {\n  if (depth > DEPTH_LIMIT) {\n    return '[Array]';\n  }\n\n  let s = '[';\n\n  for (let i = 0; i < arr.length; i++) {\n    s += i === 0 ? ' ' : ', ';\n\n    if (i >= LIST_LIMIT) {\n      s += `... ${arr.length - LIST_LIMIT} more items`;\n      break;\n    }\n\n    s += inspectValue(arr[i], depth, seen);\n  }\n\n  s += ' ]';\n  return s;\n}\n\nfunction lookupDescriptor(obj, keyName) {\n  let current = obj;\n\n  do {\n    let descriptor = Object.getOwnPropertyDescriptor(current, keyName);\n\n    if (descriptor !== undefined) {\n      return descriptor;\n    }\n\n    current = Object.getPrototypeOf(current);\n  } while (current !== null);\n\n  return null;\n}\n\n/**\n  Checks to see if the `methodName` exists on the `obj`.\n\n  ```javascript\n  let foo = { bar: function() { return 'bar'; }, baz: null };\n\n  Ember.canInvoke(foo, 'bar'); // true\n  Ember.canInvoke(foo, 'baz'); // false\n  Ember.canInvoke(foo, 'bat'); // false\n  ```\n\n  @method canInvoke\n  @for Ember\n  @param {Object} obj The object to check for the method\n  @param {String} methodName The method name to check for\n  @return {Boolean}\n  @private\n*/\n\nfunction canInvoke(obj, methodName) {\n  return obj !== null && obj !== undefined && typeof obj[methodName] === 'function';\n}\n/**\n  @module @ember/utils\n*/\n\n/**\n  Checks to see if the `methodName` exists on the `obj`,\n  and if it does, invokes it with the arguments passed.\n\n  ```javascript\n  import { tryInvoke } from '@ember/utils';\n\n  let d = new Date('03/15/2013');\n\n  tryInvoke(d, 'getTime');              // 1363320000000\n  tryInvoke(d, 'setFullYear', [2014]);  // 1394856000000\n  tryInvoke(d, 'noSuchMethod', [2014]); // undefined\n  ```\n\n  @method tryInvoke\n  @for @ember/utils\n  @static\n  @param {Object} obj The object to check for the method\n  @param {String} methodName The method name to check for\n  @param {Array} [args] The arguments to pass to the method\n  @return {*} the return value of the invoked method or undefined if it cannot be invoked\n  @public\n  @deprecated Use Javascript's optional chaining instead.\n*/\n\nfunction tryInvoke(obj, methodName, args) {\n  deprecate(`Use of tryInvoke is deprecated. Instead, consider using JavaScript's optional chaining.`, false, {\n    id: 'ember-utils.try-invoke',\n    until: '4.0.0',\n    for: 'ember-source',\n    since: {\n      available: '3.24.0'\n    },\n    url: 'https://deprecations.emberjs.com/v3.x#toc_ember-utils-try-invoke'\n  });\n\n  if (canInvoke(obj, methodName)) {\n    let method = obj[methodName];\n    return method.apply(obj, args);\n  }\n}\n\nconst {\n  isArray: isArray$1\n} = Array;\n\nfunction makeArray(obj) {\n  if (obj === null || obj === undefined) {\n    return [];\n  }\n\n  return isArray$1(obj) ? obj : [obj];\n}\n\nconst NAMES = new WeakMap();\nfunction setName(obj, name) {\n  if (isObject(obj)) NAMES.set(obj, name);\n}\nfunction getName(obj) {\n  return NAMES.get(obj);\n}\n\nconst objectToString$1 = Object.prototype.toString;\n\nfunction isNone(obj) {\n  return obj === null || obj === undefined;\n}\n/*\n A `toString` util function that supports objects without a `toString`\n method, e.g. an object created with `Object.create(null)`.\n*/\n\n\nfunction toString(obj) {\n  if (typeof obj === 'string') {\n    return obj;\n  }\n\n  if (null === obj) return 'null';\n  if (undefined === obj) return 'undefined';\n\n  if (Array.isArray(obj)) {\n    // Reimplement Array.prototype.join according to spec (22.1.3.13)\n    // Changing ToString(element) with this safe version of ToString.\n    let r = '';\n\n    for (let k = 0; k < obj.length; k++) {\n      if (k > 0) {\n        r += ',';\n      }\n\n      if (!isNone(obj[k])) {\n        r += toString(obj[k]);\n      }\n    }\n\n    return r;\n  }\n\n  if (typeof obj.toString === 'function') {\n    return obj.toString();\n  }\n\n  return objectToString$1.call(obj);\n}\n\nconst HAS_NATIVE_PROXY = typeof Proxy === 'function';\n\nconst PROXIES = new _WeakSet();\nfunction isProxy(value) {\n  if (isObject(value)) {\n    return PROXIES.has(value);\n  }\n\n  return false;\n}\nfunction setProxy(object) {\n  if (isObject(object)) {\n    PROXIES.add(object);\n  }\n}\n\nclass Cache {\n  constructor(limit, func, store) {\n    this.limit = limit;\n    this.func = func;\n    this.store = store;\n    this.size = 0;\n    this.misses = 0;\n    this.hits = 0;\n    this.store = store || new Map();\n  }\n\n  get(key) {\n    if (this.store.has(key)) {\n      this.hits++;\n      return this.store.get(key);\n    } else {\n      this.misses++;\n      return this.set(key, this.func(key));\n    }\n  }\n\n  set(key, value) {\n    if (this.limit > this.size) {\n      this.size++;\n      this.store.set(key, value);\n    }\n\n    return value;\n  }\n\n  purge() {\n    this.store.clear();\n    this.size = 0;\n    this.hits = 0;\n    this.misses = 0;\n  }\n\n}\n\nconst EMBER_ARRAYS = new _WeakSet();\nfunction setEmberArray(obj) {\n  EMBER_ARRAYS.add(obj);\n}\nfunction isEmberArray(obj) {\n  return EMBER_ARRAYS.has(obj);\n}\n\nlet setupMandatorySetter;\nlet teardownMandatorySetter;\nlet setWithMandatorySetter;\n\nfunction isElementKey(key) {\n  return typeof key === 'number' ? isPositiveInt(key) : isStringInt(key);\n}\n\nfunction isStringInt(str) {\n  let num = parseInt(str, 10);\n  return isPositiveInt(num) && str === String(num);\n}\n\nfunction isPositiveInt(num) {\n  return num >= 0 && num % 1 === 0;\n}\n\nif (DEBUG) {\n  let SEEN_TAGS = new _WeakSet();\n  let MANDATORY_SETTERS = new WeakMap();\n\n  let propertyIsEnumerable = function (obj, key) {\n    return Object.prototype.propertyIsEnumerable.call(obj, key);\n  };\n\n  setupMandatorySetter = function (tag, obj, keyName) {\n    if (SEEN_TAGS.has(tag)) {\n      return;\n    }\n\n    SEEN_TAGS.add(tag);\n\n    if (Array.isArray(obj) && isElementKey(keyName)) {\n      return;\n    }\n\n    let desc = lookupDescriptor(obj, keyName) || {};\n\n    if (desc.get || desc.set) {\n      // if it has a getter or setter, we can't install the mandatory setter.\n      // native setters are allowed, we have to assume that they will resolve\n      // to tracked properties.\n      return;\n    }\n\n    if (desc && (!desc.configurable || !desc.writable)) {\n      // if it isn't writable anyways, so we shouldn't provide the setter.\n      // if it isn't configurable, we can't overwrite it anyways.\n      return;\n    }\n\n    let setters = MANDATORY_SETTERS.get(obj);\n\n    if (setters === undefined) {\n      setters = {};\n      MANDATORY_SETTERS.set(obj, setters);\n    }\n\n    desc.hadOwnProperty = Object.hasOwnProperty.call(obj, keyName);\n    setters[keyName] = desc;\n    Object.defineProperty(obj, keyName, {\n      configurable: true,\n      enumerable: propertyIsEnumerable(obj, keyName),\n\n      get() {\n        if (desc.get) {\n          return desc.get.call(this);\n        } else {\n          return desc.value;\n        }\n      },\n\n      set(value) {\n        assert(`You attempted to update ${this}.${String(keyName)} to \"${String(value)}\", but it is being tracked by a tracking context, such as a template, computed property, or observer. In order to make sure the context updates properly, you must invalidate the property when updating it. You can mark the property as \\`@tracked\\`, or use \\`@ember/object#set\\` to do this.`);\n      }\n\n    });\n  };\n\n  teardownMandatorySetter = function (obj, keyName) {\n    let setters = MANDATORY_SETTERS.get(obj);\n\n    if (setters !== undefined && setters[keyName] !== undefined) {\n      Object.defineProperty(obj, keyName, setters[keyName]);\n      setters[keyName] = undefined;\n    }\n  };\n\n  setWithMandatorySetter = function (obj, keyName, value) {\n    let setters = MANDATORY_SETTERS.get(obj);\n\n    if (setters !== undefined && setters[keyName] !== undefined) {\n      let setter = setters[keyName];\n\n      if (setter.set) {\n        setter.set.call(obj, value);\n      } else {\n        setter.value = value; // If the object didn't have own property before, it would have changed\n        // the enumerability after setting the value the first time.\n\n        if (!setter.hadOwnProperty) {\n          let desc = lookupDescriptor(obj, keyName);\n          desc.enumerable = true;\n          Object.defineProperty(obj, keyName, desc);\n        }\n      }\n    } else {\n      obj[keyName] = value;\n    }\n  };\n}\n\n/*\n This package will be eagerly parsed and should have no dependencies on external\n packages.\n\n It is intended to be used to share utility methods that will be needed\n by every Ember application (and is **not** a dumping ground of useful utilities).\n\n Utility methods that are needed in < 80% of cases should be placed\n elsewhere (so they can be lazily evaluated / parsed).\n*/\n\nexport { symbol, enumerableSymbol, isInternalSymbol, makeDictionary as dictionary, getDebugName$1 as getDebugName, uuid, GUID_KEY, generateGuid, guidFor, intern, checkHasSuper, ROOT, wrap, observerListenerMetaFor, setObservers, setListeners, inspect, lookupDescriptor, canInvoke, tryInvoke, makeArray, getName, setName, toString, isObject, HAS_NATIVE_SYMBOL, HAS_NATIVE_PROXY, isProxy, setProxy, Cache, setEmberArray, isEmberArray, setupMandatorySetter, teardownMandatorySetter, setWithMandatorySetter };\n","export { jQuery, jQueryDisabled } from './lib/system/jquery';\nexport { addChildView, isSimpleClick, getViewBounds, getViewClientRects, getViewBoundingClientRect, getRootViews, getChildViews, getViewId, getElementView, getViewElement, setElementView, setViewElement, clearElementView, clearViewElement, constructStyleDeprecationMessage } from './lib/system/utils';\nexport { default as EventDispatcher } from './lib/system/event_dispatcher';\nexport { default as ComponentLookup } from './lib/component_lookup';\nexport { default as TextSupport } from './lib/mixins/text_support';\nexport { default as CoreView } from './lib/views/core_view';\nexport { default as ClassNamesSupport } from './lib/mixins/class_names_support';\nexport { default as ChildViewsSupport } from './lib/mixins/child_views_support';\nexport { default as ViewStateSupport } from './lib/mixins/view_state_support';\nexport { default as ViewMixin } from './lib/mixins/view_support';\nexport { default as ActionSupport } from './lib/mixins/action_support';\nexport { MUTABLE_CELL } from './lib/compat/attrs';\nexport { default as ActionManager } from './lib/system/action_manager';","import { symbol } from '@ember/-internals/utils';\nexport let MUTABLE_CELL = symbol('MUTABLE_CELL');","import { dictionary } from '@ember/-internals/utils';\nexport default dictionary(null);","import { Object as EmberObject } from '@ember/-internals/runtime';\nexport default EmberObject.extend({\n  componentFor(name, owner, options) {\n    let fullName = `component:${name}`;\n    return owner.factoryFor(fullName, options);\n  },\n\n  layoutFor(name, owner, options) {\n    let templateFullName = `template:components/${name}`;\n    return owner.lookup(templateFullName, options);\n  }\n\n});","/**\n @module ember\n*/\nimport { inspect } from '@ember/-internals/utils';\nimport { Mixin, get } from '@ember/-internals/metal';\nimport { assert, deprecate } from '@ember/debug';\nimport { MUTABLE_CELL } from '../compat/attrs';\nimport { SEND_ACTION } from '@ember/deprecated-features';\nconst mixinObj = {\n  send(actionName, ...args) {\n    assert(`Attempted to call .send() with the action '${actionName}' on the destroyed object '${this}'.`, !this.isDestroying && !this.isDestroyed);\n    let action = this.actions && this.actions[actionName];\n\n    if (action) {\n      let shouldBubble = action.apply(this, args) === true;\n\n      if (!shouldBubble) {\n        return;\n      }\n    }\n\n    let target = get(this, 'target');\n\n    if (target) {\n      assert(`The \\`target\\` for ${this} (${target}) does not have a \\`send\\` method`, typeof target.send === 'function');\n      target.send(...arguments);\n    } else {\n      assert(`${inspect(this)} had no action handler for: ${actionName}`, action);\n    }\n  }\n\n};\n\nif (SEND_ACTION) {\n  /**\n    Calls an action passed to a component.\n     For example a component for playing or pausing music may translate click events\n    into action notifications of \"play\" or \"stop\" depending on some internal state\n    of the component:\n     ```app/components/play-button.js\n    import Component from '@ember/component';\n     export default Component.extend({\n      click() {\n        if (this.get('isPlaying')) {\n          this.sendAction('play');\n        } else {\n          this.sendAction('stop');\n        }\n      }\n    });\n    ```\n     The actions \"play\" and \"stop\" must be passed to this `play-button` component:\n     ```handlebars\n    {{! app/templates/application.hbs }}\n    {{play-button play=(action \"musicStarted\") stop=(action \"musicStopped\")}}\n    ```\n     When the component receives a browser `click` event it translate this\n    interaction into application-specific semantics (\"play\" or \"stop\") and\n    calls the specified action.\n     ```app/controller/application.js\n    import Controller from '@ember/controller';\n     export default Controller.extend({\n      actions: {\n        musicStarted() {\n          // called when the play button is clicked\n          // and the music started playing\n        },\n        musicStopped() {\n          // called when the play button is clicked\n          // and the music stopped playing\n        }\n      }\n    });\n    ```\n     If no action is passed to `sendAction` a default name of \"action\"\n    is assumed.\n     ```app/components/next-button.js\n    import Component from '@ember/component';\n     export default Component.extend({\n      click() {\n        this.sendAction();\n      }\n    });\n    ```\n     ```handlebars\n    {{! app/templates/application.hbs }}\n    {{next-button action=(action \"playNextSongInAlbum\")}}\n    ```\n     ```app/controllers/application.js\n    import Controller from '@ember/controller';\n     export default Controller.extend({\n      actions: {\n        playNextSongInAlbum() {\n          ...\n        }\n      }\n    });\n    ```\n     @method sendAction\n    @param [action] {String} the action to call\n    @param [params] {*} arguments for the action\n    @public\n    @deprecated\n  */\n  let sendAction = function sendAction(action, ...contexts) {\n    assert(`Attempted to call .sendAction() with the action '${action}' on the destroyed object '${this}'.`, !this.isDestroying && !this.isDestroyed);\n    deprecate(`You called ${inspect(this)}.sendAction(${typeof action === 'string' ? `\"${action}\"` : ''}) but Component#sendAction is deprecated. Please use closure actions instead.`, false, {\n      id: 'ember-component.send-action',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action'\n    });\n    let actionName; // Send the default action\n\n    if (action === undefined) {\n      action = 'action';\n    }\n\n    actionName = get(this, `attrs.${action}`) || get(this, action);\n    actionName = validateAction(this, actionName); // If no action name for that action could be found, just abort.\n\n    if (actionName === undefined) {\n      return;\n    }\n\n    if (typeof actionName === 'function') {\n      actionName(...contexts);\n    } else {\n      this.triggerAction({\n        action: actionName,\n        actionContext: contexts\n      });\n    }\n  };\n\n  let validateAction = function validateAction(component, actionName) {\n    if (actionName && actionName[MUTABLE_CELL]) {\n      actionName = actionName.value;\n    }\n\n    assert(`The default action was triggered on the component ${component.toString()}, but the action name (${actionName}) was not a string.`, actionName === null || actionName === undefined || typeof actionName === 'string' || typeof actionName === 'function');\n    return actionName;\n  };\n\n  mixinObj.sendAction = sendAction;\n}\n/**\n @class ActionSupport\n @namespace Ember\n @private\n*/\n\n\nexport default Mixin.create(mixinObj);","/**\n@module ember\n*/\nimport { Mixin, nativeDescDecorator } from '@ember/-internals/metal';\nimport { getChildViews, addChildView } from '../system/utils';\nexport default Mixin.create({\n  /**\n    Array of child views. You should never edit this array directly.\n     @property childViews\n    @type Array\n    @default []\n    @private\n  */\n  childViews: nativeDescDecorator({\n    configurable: false,\n    enumerable: false,\n\n    get() {\n      return getChildViews(this);\n    }\n\n  }),\n\n  appendChild(view) {\n    addChildView(this, view);\n  }\n\n});","/**\n@module ember\n*/\nimport { descriptorForProperty, Mixin } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nconst EMPTY_ARRAY = Object.freeze([]);\n/**\n  @class ClassNamesSupport\n  @namespace Ember\n  @private\n*/\n\nexport default Mixin.create({\n  concatenatedProperties: ['classNames', 'classNameBindings'],\n\n  init() {\n    this._super(...arguments);\n\n    assert(`Only arrays are allowed for 'classNameBindings'`, descriptorForProperty(this, 'classNameBindings') === undefined && Array.isArray(this.classNameBindings));\n    assert(`Only arrays of static class strings are allowed for 'classNames'. For dynamic classes, use 'classNameBindings'.`, descriptorForProperty(this, 'classNames') === undefined && Array.isArray(this.classNames));\n  },\n\n  /**\n    Standard CSS class names to apply to the view's outer element. This\n    property automatically inherits any class names defined by the view's\n    superclasses as well.\n     @property classNames\n    @type Array\n    @default ['ember-view']\n    @public\n  */\n  classNames: EMPTY_ARRAY,\n\n  /**\n    A list of properties of the view to apply as class names. If the property\n    is a string value, the value of that string will be applied as a class\n    name.\n     ```javascript\n    // Applies the 'high' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['priority'],\n      priority: 'high'\n    });\n    ```\n     If the value of the property is a Boolean, the name of that property is\n    added as a dasherized class name.\n     ```javascript\n    // Applies the 'is-urgent' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isUrgent'],\n      isUrgent: true\n    });\n    ```\n     If you would prefer to use a custom value instead of the dasherized\n    property name, you can pass a binding like this:\n     ```javascript\n    // Applies the 'urgent' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isUrgent:urgent'],\n      isUrgent: true\n    });\n    ```\n     If you would like to specify a class that should only be added when the\n    property is false, you can declare a binding like this:\n     ```javascript\n    // Applies the 'disabled' class to the view element\n    import Component from '@ember/component';\n    Component.extend({\n      classNameBindings: ['isEnabled::disabled'],\n      isEnabled: false\n    });\n    ```\n     This list of properties is inherited from the component's superclasses as well.\n     @property classNameBindings\n    @type Array\n    @default []\n    @public\n  */\n  classNameBindings: EMPTY_ARRAY\n});","/**\n@module ember\n*/\nimport { get, set, Mixin } from '@ember/-internals/metal';\nimport { TargetActionSupport } from '@ember/-internals/runtime';\nimport { deprecate } from '@ember/debug';\nimport { SEND_ACTION } from '@ember/deprecated-features';\nimport { MUTABLE_CELL } from '@ember/-internals/views';\nconst KEY_EVENTS = {\n  Enter: 'insertNewline',\n  Escape: 'cancel'\n};\n/**\n  `TextSupport` is a shared mixin used by both `TextField` and\n  `TextArea`. `TextSupport` adds a number of methods that allow you to\n  specify a controller action to invoke when a certain event is fired on your\n  text field or textarea. The specified controller action would get the current\n  value of the field passed in as the only argument unless the value of\n  the field is empty. In that case, the instance of the field itself is passed\n  in as the only argument.\n\n  Let's use the pressing of the escape key as an example. If you wanted to\n  invoke a controller action when a user presses the escape key while on your\n  field, you would use the `escape-press` attribute on your field like so:\n\n  ```handlebars\n    {{! application.hbs}}\n\n    {{input escape-press='alertUser'}}\n  ```\n\n  ```javascript\n      import Application from '@ember/application';\n      import Controller from '@ember/controller';\n      App = Application.create();\n\n      App.ApplicationController = Controller.extend({\n        actions: {\n          alertUser: function ( currentValue ) {\n            alert( 'escape pressed, current value: ' + currentValue );\n          }\n        }\n      });\n  ```\n\n  The following chart is a visual representation of what takes place when the\n  escape key is pressed in this scenario:\n\n  ```\n  The Template\n  +---------------------------+\n  |                           |\n  | escape-press='alertUser'  |\n  |                           |          TextSupport Mixin\n  +----+----------------------+          +-------------------------------+\n       |                                 | cancel method                 |\n       |      escape button pressed      |                               |\n       +-------------------------------> | checks for the `escape-press` |\n                                         | attribute and pulls out the   |\n       +-------------------------------+ | `alertUser` value             |\n       |     action name 'alertUser'     +-------------------------------+\n       |     sent to controller\n       v\n  Controller\n  +------------------------------------------ +\n  |                                           |\n  |  actions: {                               |\n  |     alertUser: function( currentValue ){  |\n  |       alert( 'the esc key was pressed!' ) |\n  |     }                                     |\n  |  }                                        |\n  |                                           |\n  +-------------------------------------------+\n  ```\n\n  Here are the events that we currently support along with the name of the\n  attribute you would need to use on your field. To reiterate, you would use the\n  attribute name like so:\n\n  ```handlebars\n    {{input attribute-name='controllerAction'}}\n  ```\n\n  ```\n  +--------------------+----------------+\n  |                    |                |\n  | event              | attribute name |\n  +--------------------+----------------+\n  | new line inserted  | insert-newline |\n  |                    |                |\n  | enter key pressed  | enter          |\n  |                    |                |\n  | cancel key pressed | escape-press   |\n  |                    |                |\n  | focusin            | focus-in       |\n  |                    |                |\n  | focusout           | focus-out      |\n  |                    |                |\n  | keypress           | key-press      |\n  |                    |                |\n  | keyup              | key-up         |\n  |                    |                |\n  | keydown            | key-down       |\n  +--------------------+----------------+\n  ```\n\n  @class TextSupport\n  @namespace Ember\n  @uses Ember.TargetActionSupport\n  @extends Mixin\n  @private\n*/\n\nexport default Mixin.create(TargetActionSupport, {\n  value: '',\n  attributeBindings: ['autocapitalize', 'autocorrect', 'autofocus', 'disabled', 'form', 'maxlength', 'minlength', 'placeholder', 'readonly', 'required', 'selectionDirection', 'spellcheck', 'tabindex', 'title'],\n  placeholder: null,\n  disabled: false,\n  maxlength: null,\n\n  init() {\n    this._super(...arguments);\n\n    this.on('paste', this, this._elementValueDidChange);\n    this.on('cut', this, this._elementValueDidChange);\n    this.on('input', this, this._elementValueDidChange);\n  },\n\n  /**\n    Whether the `keyUp` event that triggers an `action` to be sent continues\n    propagating to other views.\n     By default, when the user presses the return key on their keyboard and\n    the text field has an `action` set, the action will be sent to the view's\n    controller and the key event will stop propagating.\n     If you would like parent views to receive the `keyUp` event even after an\n    action has been dispatched, set `bubbles` to true.\n     @property bubbles\n    @type Boolean\n    @default false\n    @private\n  */\n  bubbles: false,\n\n  interpretKeyEvents(event) {\n    let method = KEY_EVENTS[event.key];\n\n    this._elementValueDidChange();\n\n    if (method) {\n      return this[method](event);\n    }\n  },\n\n  _elementValueDidChange() {\n    set(this, 'value', this.element.value);\n  },\n\n  change(event) {\n    this._elementValueDidChange(event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when either the `enter`\n    key is pressed or, in the case of the field being a textarea, when a newline\n    is inserted. To use this method, give your field an `insert-newline`\n    attribute. The value of that attribute should be the name of the action\n    in your controller that you wish to invoke.\n     For an example on how to use the `insert-newline` attribute, please\n    reference the example near the top of this file.\n     @method insertNewline\n    @param {Event} event\n    @private\n  */\n  insertNewline(event) {\n    sendAction('enter', this, event);\n    sendAction('insert-newline', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when the escape button\n    is pressed. To use this method, give your field an `escape-press`\n    attribute. The value of that attribute should be the name of the action\n    in your controller that you wish to invoke.\n     For an example on how to use the `escape-press` attribute, please reference\n    the example near the top of this file.\n     @method cancel\n    @param {Event} event\n    @private\n  */\n  cancel(event) {\n    sendAction('escape-press', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when a field receives\n    focus. To use this method, give your field a `focus-in` attribute. The value\n    of that attribute should be the name of the action in your controller\n    that you wish to invoke.\n     For an example on how to use the `focus-in` attribute, please reference the\n    example near the top of this file.\n     @method focusIn\n    @param {Event} event\n    @private\n  */\n  focusIn(event) {\n    sendAction('focus-in', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when a field loses\n    focus. To use this method, give your field a `focus-out` attribute. The value\n    of that attribute should be the name of the action in your controller\n    that you wish to invoke.\n     For an example on how to use the `focus-out` attribute, please reference the\n    example near the top of this file.\n     @method focusOut\n    @param {Event} event\n    @private\n  */\n  focusOut(event) {\n    this._elementValueDidChange(event);\n\n    sendAction('focus-out', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when a key is pressed.\n    To use this method, give your field a `key-press` attribute. The value of\n    that attribute should be the name of the action in your controller you\n    that wish to invoke.\n     For an example on how to use the `key-press` attribute, please reference the\n    example near the top of this file.\n     @method keyPress\n    @param {Event} event\n    @private\n  */\n  keyPress(event) {\n    sendAction('key-press', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when a key-up event is\n    fired. To use this method, give your field a `key-up` attribute. The value\n    of that attribute should be the name of the action in your controller\n    that you wish to invoke.\n     For an example on how to use the `key-up` attribute, please reference the\n    example near the top of this file.\n     @method keyUp\n    @param {Event} event\n    @private\n  */\n  keyUp(event) {\n    this.interpretKeyEvents(event);\n    sendAction('key-up', this, event);\n  },\n\n  /**\n    Allows you to specify a controller action to invoke when a key-down event is\n    fired. To use this method, give your field a `key-down` attribute. The value\n    of that attribute should be the name of the action in your controller that\n    you wish to invoke.\n     For an example on how to use the `key-down` attribute, please reference the\n    example near the top of this file.\n     @method keyDown\n    @param {Event} event\n    @private\n  */\n  keyDown(event) {\n    sendAction('key-down', this, event);\n  }\n\n}); // In principle, this shouldn't be necessary, but the legacy\n// sendAction semantics for TextField are different from\n// the component semantics so this method normalizes them.\n\nfunction sendAction(eventName, view, event) {\n  let action = get(view, `attrs.${eventName}`);\n\n  if (action !== null && typeof action === 'object' && action[MUTABLE_CELL] === true) {\n    action = action.value;\n  }\n\n  if (action === undefined) {\n    action = get(view, eventName);\n  }\n\n  let value = get(view, 'value');\n\n  if (SEND_ACTION && typeof action === 'string') {\n    let message = `Passing actions to components as strings (like \\`<Input @${eventName}=\"${action}\" />\\`) is deprecated. Please use closure actions instead (\\`<Input @${eventName}={{action \"${action}\"}} />\\`).`;\n    deprecate(message, false, {\n      id: 'ember-component.send-action',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_ember-component-send-action'\n    });\n    view.triggerAction({\n      action: action,\n      actionContext: [value, event]\n    });\n  } else if (typeof action === 'function') {\n    action(value, event);\n  }\n\n  if (action && !get(view, 'bubbles')) {\n    event.stopPropagation();\n  }\n}","/**\n@module ember\n*/\nimport { Mixin } from '@ember/-internals/metal';\nexport default Mixin.create({\n  _transitionTo(state) {\n    let priorState = this._currentState;\n    let currentState = this._currentState = this._states[state];\n    this._state = state;\n\n    if (priorState && priorState.exit) {\n      priorState.exit(this);\n    }\n\n    if (currentState.enter) {\n      currentState.enter(this);\n    }\n  }\n\n});","import { guidFor } from '@ember/-internals/utils';\nimport { descriptorForProperty, Mixin, nativeDescDecorator } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { matches } from '../system/utils';\nimport { jQuery, jQueryDisabled } from '../system/jquery';\nimport { deprecate } from '@ember/debug';\nimport { JQUERY_INTEGRATION } from '@ember/deprecated-features';\n\nfunction K() {\n  return this;\n}\n\nlet mixin = {\n  /**\n   A list of properties of the view to apply as attributes. If the property\n   is a string value, the value of that string will be applied as the value\n   for an attribute of the property's name.\n    The following example creates a tag like `<div priority=\"high\" />`.\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      attributeBindings: ['priority'],\n      priority: 'high'\n    });\n   ```\n    If the value of the property is a Boolean, the attribute is treated as\n   an HTML Boolean attribute. It will be present if the property is `true`\n   and omitted if the property is `false`.\n    The following example creates markup like `<div visible />`.\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      attributeBindings: ['visible'],\n      visible: true\n    });\n   ```\n    If you would prefer to use a custom value instead of the property name,\n   you can create the same markup as the last example with a binding like\n   this:\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      attributeBindings: ['isVisible:visible'],\n      isVisible: true\n    });\n   ```\n    This list of attributes is inherited from the component's superclasses,\n   as well.\n    @property attributeBindings\n   @type Array\n   @default []\n   @public\n   */\n  concatenatedProperties: ['attributeBindings'],\n\n  // ..........................................................\n  // TEMPLATE SUPPORT\n  //\n\n  /**\n   Return the nearest ancestor that is an instance of the provided\n   class or mixin.\n    @method nearestOfType\n   @param {Class,Mixin} klass Subclass of Ember.View (or Ember.View itself),\n   or an instance of Mixin.\n   @return Ember.View\n   @deprecated use `yield` and contextual components for composition instead.\n   @private\n   */\n  nearestOfType(klass) {\n    let view = this.parentView;\n    let isOfType = klass instanceof Mixin ? view => klass.detect(view) : view => klass.detect(view.constructor);\n\n    while (view) {\n      if (isOfType(view)) {\n        return view;\n      }\n\n      view = view.parentView;\n    }\n  },\n\n  /**\n   Return the nearest ancestor that has a given property.\n    @method nearestWithProperty\n   @param {String} property A property name\n   @return Ember.View\n   @deprecated use `yield` and contextual components for composition instead.\n   @private\n   */\n  nearestWithProperty(property) {\n    let view = this.parentView;\n\n    while (view) {\n      if (property in view) {\n        return view;\n      }\n\n      view = view.parentView;\n    }\n  },\n\n  /**\n   Renders the view again. This will work regardless of whether the\n   view is already in the DOM or not. If the view is in the DOM, the\n   rendering process will be deferred to give bindings a chance\n   to synchronize.\n    If children were added during the rendering process using `appendChild`,\n   `rerender` will remove them, because they will be added again\n   if needed by the next `render`.\n    In general, if the display of your view changes, you should modify\n   the DOM element directly instead of manually calling `rerender`, which can\n   be slow.\n    @method rerender\n   @public\n   */\n  rerender() {\n    return this._currentState.rerender(this);\n  },\n\n  // ..........................................................\n  // ELEMENT SUPPORT\n  //\n\n  /**\n   Returns the current DOM element for the view.\n     @property element\n    @type DOMElement\n    @public\n  */\n  element: nativeDescDecorator({\n    configurable: false,\n    enumerable: false,\n\n    get() {\n      return this.renderer.getElement(this);\n    }\n\n  }),\n\n  /**\n   Appends the view's element to the specified parent element.\n    Note that this method just schedules the view to be appended; the DOM\n   element will not be appended to the given element until all bindings have\n   finished synchronizing.\n    This is not typically a function that you will need to call directly when\n   building your application. If you do need to use `appendTo`, be sure that\n   the target element you are providing is associated with an `Application`\n   and does not have an ancestor element that is associated with an Ember view.\n    @method appendTo\n   @param {String|DOMElement|jQuery} A selector, element, HTML string, or jQuery object\n   @return {Ember.View} receiver\n   @private\n   */\n  appendTo(selector) {\n    let target;\n\n    if (hasDOM) {\n      target = typeof selector === 'string' ? document.querySelector(selector) : selector;\n      assert(`You tried to append to (${selector}) but that isn't in the DOM`, target);\n      assert('You cannot append to an existing Ember.View.', !matches(target, '.ember-view'));\n      assert('You cannot append to an existing Ember.View.', (() => {\n        let node = target.parentNode;\n\n        while (node) {\n          if (node.nodeType !== 9 && matches(node, '.ember-view')) {\n            return false;\n          }\n\n          node = node.parentNode;\n        }\n\n        return true;\n      })());\n    } else {\n      target = selector;\n      assert(`You tried to append to a selector string (${selector}) in an environment without jQuery`, typeof target !== 'string');\n      assert(`You tried to append to a non-Element (${selector}) in an environment without jQuery`, typeof selector.appendChild === 'function');\n    }\n\n    this.renderer.appendTo(this, target);\n    return this;\n  },\n\n  /**\n   Appends the view's element to the document body. If the view does\n   not have an HTML representation yet\n   the element will be generated automatically.\n    If your application uses the `rootElement` property, you must append\n   the view within that element. Rendering views outside of the `rootElement`\n   is not supported.\n    Note that this method just schedules the view to be appended; the DOM\n   element will not be appended to the document body until all bindings have\n   finished synchronizing.\n    @method append\n   @return {Ember.View} receiver\n   @private\n   */\n  append() {\n    return this.appendTo(document.body);\n  },\n\n  /**\n   The HTML `id` of the view's element in the DOM. You can provide this\n   value yourself but it must be unique (just as in HTML):\n    ```handlebars\n   {{my-component elementId=\"a-really-cool-id\"}}\n   ```\n    If not manually set a default value will be provided by the framework.\n    Once rendered an element's `elementId` is considered immutable and you\n   should never change it. If you need to compute a dynamic value for the\n   `elementId`, you should do this when the component or element is being\n   instantiated:\n    ```app/components/my-component.js\n   import Component from '@ember/component';\n    export default Component.extend({\n      init() {\n        this._super(...arguments);\n        let index = this.get('index');\n        this.set('elementId', 'component-id' + index);\n      }\n    });\n   ```\n    @property elementId\n   @type String\n   @public\n   */\n  elementId: null,\n\n  /**\n   Called when a view is going to insert an element into the DOM.\n    @event willInsertElement\n   @public\n   */\n  willInsertElement: K,\n\n  /**\n   Called when the element of the view has been inserted into the DOM.\n   Override this function to do any set up that requires an element\n   in the document body.\n    When a view has children, didInsertElement will be called on the\n   child view(s) first and on itself afterwards.\n    @event didInsertElement\n   @public\n   */\n  didInsertElement: K,\n\n  /**\n   Called when the view is about to rerender, but before anything has\n   been torn down. This is a good opportunity to tear down any manual\n   observers you have installed based on the DOM state\n    @event willClearRender\n   @public\n   */\n  willClearRender: K,\n\n  /**\n   You must call `destroy` on a view to destroy the view (and all of its\n   child views). This will remove the view from any parent node, then make\n   sure that the DOM element managed by the view can be released by the\n   memory manager.\n    @method destroy\n   @private\n   */\n  destroy() {\n    this._super(...arguments);\n\n    this._currentState.destroy(this);\n  },\n\n  /**\n   Called when the element of the view is going to be destroyed. Override\n   this function to do any teardown that requires an element, like removing\n   event listeners.\n    Please note: any property changes made during this event will have no\n   effect on object observers.\n    @event willDestroyElement\n   @public\n   */\n  willDestroyElement: K,\n\n  /**\n   Called after the element of the view is destroyed.\n    @event willDestroyElement\n   @public\n   */\n  didDestroyElement: K,\n\n  /**\n   Called when the parentView property has changed.\n    @event parentViewDidChange\n   @private\n   */\n  parentViewDidChange: K,\n  // ..........................................................\n  // STANDARD RENDER PROPERTIES\n  //\n\n  /**\n   Tag name for the view's outer element. The tag name is only used when an\n   element is first created. If you change the `tagName` for an element, you\n   must destroy and recreate the view element.\n    By default, the render buffer will use a `<div>` tag for views.\n    If the tagName is `''`, the view will be tagless, with no outer element.\n   Component properties that depend on the presence of an outer element, such\n   as `classNameBindings` and `attributeBindings`, do not work with tagless\n   components. Tagless components cannot implement methods to handle events,\n   and have no associated jQuery object to return with `$()`.\n    @property tagName\n   @type String\n   @default null\n   @public\n   */\n  // We leave this null by default so we can tell the difference between\n  // the default case and a user-specified tag.\n  tagName: null,\n\n  // .......................................................\n  // CORE DISPLAY METHODS\n  //\n\n  /**\n   Setup a view, but do not finish waking it up.\n    * configure `childViews`\n   * register the view with the global views hash, which is used for event\n   dispatch\n    @method init\n   @private\n   */\n  init() {\n    this._super(...arguments); // tslint:disable-next-line:max-line-length\n\n\n    assert(`You cannot use a computed property for the component's \\`elementId\\` (${this}).`, descriptorForProperty(this, 'elementId') === undefined); // tslint:disable-next-line:max-line-length\n\n    assert(`You cannot use a computed property for the component's \\`tagName\\` (${this}).`, descriptorForProperty(this, 'tagName') === undefined);\n\n    if (!this.elementId && this.tagName !== '') {\n      this.elementId = guidFor(this);\n    }\n\n    assert('Using a custom `.render` function is no longer supported.', !this.render);\n  },\n\n  // .......................................................\n  // EVENT HANDLING\n  //\n\n  /**\n   Handle events from `EventDispatcher`\n    @method handleEvent\n   @param eventName {String}\n   @param evt {Event}\n   @private\n   */\n  handleEvent(eventName, evt) {\n    return this._currentState.handleEvent(this, eventName, evt);\n  }\n\n};\n\nif (JQUERY_INTEGRATION) {\n  /**\n   Returns a jQuery object for this view's element. If you pass in a selector\n   string, this method will return a jQuery object, using the current element\n   as its buffer.\n    For example, calling `view.$('li')` will return a jQuery object containing\n   all of the `li` elements inside the DOM element of this view.\n    @method $\n   @param {String} [selector] a jQuery-compatible selector string\n   @return {jQuery} the jQuery object for the DOM node\n   @public\n   @deprecated\n   */\n  mixin.$ = function $(sel) {\n    assert(\"You cannot access this.$() on a component with `tagName: ''` specified.\", this.tagName !== '');\n    assert('You cannot access this.$() with `jQuery` disabled.', !jQueryDisabled);\n    deprecate('Using this.$() in a component has been deprecated, consider using this.element', false, {\n      id: 'ember-views.curly-components.jquery-element',\n      until: '4.0.0',\n      url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis'\n    });\n\n    if (this.element) {\n      return sel ? jQuery(sel, this.element) : jQuery(this.element);\n    }\n  };\n}\n/**\n @class ViewMixin\n @namespace Ember\n @private\n*/\n\n\nexport default Mixin.create(mixin);","/**\n@module ember\n*/\nexport default function ActionManager() {}\n/**\n  Global action id hash.\n\n  @private\n  @property registeredActions\n  @type Object\n*/\n\nActionManager.registeredActions = {};","import { getOwner } from '@ember/-internals/owner';\nimport { assign } from '@ember/polyfills';\nimport { assert } from '@ember/debug';\nimport { get, set } from '@ember/-internals/metal';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { getElementView } from '@ember/-internals/views';\nimport { jQuery, jQueryDisabled } from './jquery';\nimport ActionManager from './action_manager';\nimport addJQueryEventDeprecation from './jquery_event_deprecation';\nimport { contains } from './utils';\nimport { JQUERY_INTEGRATION, MOUSE_ENTER_LEAVE_MOVE_EVENTS } from '@ember/deprecated-features';\n/**\n@module ember\n*/\n\nconst ROOT_ELEMENT_CLASS = 'ember-application';\nconst ROOT_ELEMENT_SELECTOR = `.${ROOT_ELEMENT_CLASS}`;\nconst EVENT_MAP = {\n  mouseenter: 'mouseover',\n  mouseleave: 'mouseout'\n};\n/**\n  `Ember.EventDispatcher` handles delegating browser events to their\n  corresponding `Ember.Views.` For example, when you click on a view,\n  `Ember.EventDispatcher` ensures that that view's `mouseDown` method gets\n  called.\n\n  @class EventDispatcher\n  @namespace Ember\n  @private\n  @extends Ember.Object\n*/\n\nexport default EmberObject.extend({\n  /**\n    The set of events names (and associated handler function names) to be setup\n    and dispatched by the `EventDispatcher`. Modifications to this list can be done\n    at setup time, generally via the `Application.customEvents` hash.\n     To add new events to be listened to:\n     ```javascript\n    import Application from '@ember/application';\n     let App = Application.create({\n      customEvents: {\n        paste: 'paste'\n      }\n    });\n    ```\n     To prevent default events from being listened to:\n     ```javascript\n    import Application from '@ember/application';\n     let App = Application.create({\n      customEvents: {\n        mouseenter: null,\n        mouseleave: null\n      }\n    });\n    ```\n    @property events\n    @type Object\n    @private\n  */\n  events: assign({\n    touchstart: 'touchStart',\n    touchmove: 'touchMove',\n    touchend: 'touchEnd',\n    touchcancel: 'touchCancel',\n    keydown: 'keyDown',\n    keyup: 'keyUp',\n    keypress: 'keyPress',\n    mousedown: 'mouseDown',\n    mouseup: 'mouseUp',\n    contextmenu: 'contextMenu',\n    click: 'click',\n    dblclick: 'doubleClick',\n    focusin: 'focusIn',\n    focusout: 'focusOut',\n    submit: 'submit',\n    input: 'input',\n    change: 'change',\n    dragstart: 'dragStart',\n    drag: 'drag',\n    dragenter: 'dragEnter',\n    dragleave: 'dragLeave',\n    dragover: 'dragOver',\n    drop: 'drop',\n    dragend: 'dragEnd'\n  }, MOUSE_ENTER_LEAVE_MOVE_EVENTS ? {\n    mouseenter: 'mouseEnter',\n    mouseleave: 'mouseLeave',\n    mousemove: 'mouseMove'\n  } : {}),\n\n  /**\n    The root DOM element to which event listeners should be attached. Event\n    listeners will be attached to the document unless this is overridden.\n     Can be specified as a DOMElement or a selector string.\n     The default body is a string since this may be evaluated before document.body\n    exists in the DOM.\n     @private\n    @property rootElement\n    @type DOMElement\n    @default 'body'\n  */\n  rootElement: 'body',\n\n  init() {\n    this._super();\n\n    assert('EventDispatcher should never be instantiated in fastboot mode. Please report this as an Ember bug.', (() => {\n      let owner = getOwner(this);\n      let environment = owner.lookup('-environment:main');\n      return environment.isInteractive;\n    })());\n    this._eventHandlers = Object.create(null);\n  },\n\n  /**\n    Sets up event listeners for standard browser events.\n     This will be called after the browser sends a `DOMContentReady` event. By\n    default, it will set up all of the listeners on the document body. If you\n    would like to register the listeners on a different element, set the event\n    dispatcher's `root` property.\n     @private\n    @method setup\n    @param addedEvents {Object}\n  */\n  setup(addedEvents, _rootElement) {\n    let events = this._finalEvents = assign({}, get(this, 'events'), addedEvents);\n\n    if (_rootElement !== undefined && _rootElement !== null) {\n      set(this, 'rootElement', _rootElement);\n    }\n\n    let rootElementSelector = get(this, 'rootElement');\n    let rootElement;\n\n    if (!JQUERY_INTEGRATION || jQueryDisabled) {\n      if (typeof rootElementSelector !== 'string') {\n        rootElement = rootElementSelector;\n      } else {\n        rootElement = document.querySelector(rootElementSelector);\n      }\n\n      assert(`You cannot use the same root element (${get(this, 'rootElement') || rootElement.tagName}) multiple times in an Ember.Application`, !rootElement.classList.contains(ROOT_ELEMENT_CLASS));\n      assert('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', (() => {\n        let target = rootElement.parentNode;\n\n        do {\n          if (target.classList.contains(ROOT_ELEMENT_CLASS)) {\n            return false;\n          }\n\n          target = target.parentNode;\n        } while (target && target.nodeType === 1);\n\n        return true;\n      })());\n      assert('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.querySelector(ROOT_ELEMENT_SELECTOR));\n      rootElement.classList.add(ROOT_ELEMENT_CLASS);\n      assert(`Unable to add '${ROOT_ELEMENT_CLASS}' class to root element (${get(this, 'rootElement') || rootElement.tagName}). Make sure you set rootElement to the body or an element in the body.`, rootElement.classList.contains(ROOT_ELEMENT_CLASS));\n    } else {\n      rootElement = jQuery(rootElementSelector);\n      assert(`You cannot use the same root element (${rootElement.selector || rootElement[0].tagName}) multiple times in an Ember.Application`, !rootElement.is(ROOT_ELEMENT_SELECTOR));\n      assert('You cannot make a new Ember.Application using a root element that is a descendent of an existing Ember.Application', !rootElement.closest(ROOT_ELEMENT_SELECTOR).length);\n      assert('You cannot make a new Ember.Application using a root element that is an ancestor of an existing Ember.Application', !rootElement.find(ROOT_ELEMENT_SELECTOR).length);\n      rootElement.addClass(ROOT_ELEMENT_CLASS);\n\n      if (!rootElement.is(ROOT_ELEMENT_SELECTOR)) {\n        throw new TypeError(`Unable to add '${ROOT_ELEMENT_CLASS}' class to root element (${rootElement.selector || rootElement[0].tagName}). Make sure you set rootElement to the body or an element in the body.`);\n      }\n    }\n\n    for (let event in events) {\n      if (Object.prototype.hasOwnProperty.call(events, event)) {\n        this.setupHandler(rootElement, event, events[event]);\n      }\n    }\n  },\n\n  /**\n    Registers an event listener on the rootElement. If the given event is\n    triggered, the provided event handler will be triggered on the target view.\n     If the target view does not implement the event handler, or if the handler\n    returns `false`, the parent view will be called. The event will continue to\n    bubble to each successive parent view until it reaches the top.\n     @private\n    @method setupHandler\n    @param {Element} rootElement\n    @param {String} event the browser-originated event to listen to\n    @param {String} eventName the name of the method to call on the view\n  */\n  setupHandler(rootElement, event, eventName) {\n    if (eventName === null) {\n      return;\n    }\n\n    if (!JQUERY_INTEGRATION || jQueryDisabled) {\n      let viewHandler = (target, event) => {\n        let view = getElementView(target);\n        let result = true;\n\n        if (view) {\n          result = view.handleEvent(eventName, event);\n        }\n\n        return result;\n      };\n\n      let actionHandler = (target, event) => {\n        let actionId = target.getAttribute('data-ember-action');\n        let actions = ActionManager.registeredActions[actionId]; // In Glimmer2 this attribute is set to an empty string and an additional\n        // attribute it set for each action on a given element. In this case, the\n        // attributes need to be read so that a proper set of action handlers can\n        // be coalesced.\n\n        if (actionId === '') {\n          let attributes = target.attributes;\n          let attributeCount = attributes.length;\n          actions = [];\n\n          for (let i = 0; i < attributeCount; i++) {\n            let attr = attributes.item(i);\n            let attrName = attr.name;\n\n            if (attrName.indexOf('data-ember-action-') === 0) {\n              actions = actions.concat(ActionManager.registeredActions[attr.value]);\n            }\n          }\n        } // We have to check for actions here since in some cases, jQuery will trigger\n        // an event on `removeChild` (i.e. focusout) after we've already torn down the\n        // action handlers for the view.\n\n\n        if (!actions) {\n          return;\n        }\n\n        let result = true;\n\n        for (let index = 0; index < actions.length; index++) {\n          let action = actions[index];\n\n          if (action && action.eventName === eventName) {\n            // return false if any of the action handlers returns false\n            result = action.handler(event) && result;\n          }\n        }\n\n        return result;\n      }; // Special handling of events that don't bubble (event delegation does not work).\n      // Mimics the way this is handled in jQuery,\n      // see https://github.com/jquery/jquery/blob/899c56f6ada26821e8af12d9f35fa039100e838e/src/event.js#L666-L700\n\n\n      if (MOUSE_ENTER_LEAVE_MOVE_EVENTS && EVENT_MAP[event] !== undefined) {\n        let mappedEventType = EVENT_MAP[event];\n        let origEventType = event;\n\n        let createFakeEvent = (eventType, event) => {\n          let fakeEvent = document.createEvent('MouseEvent');\n          fakeEvent.initMouseEvent(eventType, false, false, event.view, event.detail, event.screenX, event.screenY, event.clientX, event.clientY, event.ctrlKey, event.altKey, event.shiftKey, event.metaKey, event.button, event.relatedTarget); // fake event.target as we don't dispatch the event\n\n          Object.defineProperty(fakeEvent, 'target', {\n            value: event.target,\n            enumerable: true\n          });\n          return fakeEvent;\n        };\n\n        let handleMappedEvent = this._eventHandlers[mappedEventType] = event => {\n          let target = event.target;\n          let related = event.relatedTarget;\n\n          while (target && target.nodeType === 1 && (related === null || related !== target && !contains(target, related))) {\n            // mouseEnter/Leave don't bubble, so there is no logic to prevent it as with other events\n            if (getElementView(target)) {\n              viewHandler(target, createFakeEvent(origEventType, event));\n            } else if (target.hasAttribute('data-ember-action')) {\n              actionHandler(target, createFakeEvent(origEventType, event));\n            } // separate mouseEnter/Leave events are dispatched for each listening element\n            // until the element (related) has been reached that the pointing device exited from/to\n\n\n            target = target.parentNode;\n          }\n        };\n\n        rootElement.addEventListener(mappedEventType, handleMappedEvent);\n      } else {\n        let handleEvent = this._eventHandlers[event] = event => {\n          let target = event.target;\n\n          do {\n            if (getElementView(target)) {\n              if (viewHandler(target, event) === false) {\n                event.preventDefault();\n                event.stopPropagation();\n                break;\n              } else if (event.cancelBubble === true) {\n                break;\n              }\n            } else if (typeof target.hasAttribute === 'function' && target.hasAttribute('data-ember-action')) {\n              if (actionHandler(target, event) === false) {\n                break;\n              }\n            }\n\n            target = target.parentNode;\n          } while (target && target.nodeType === 1);\n        };\n\n        rootElement.addEventListener(event, handleEvent);\n      }\n    } else {\n      rootElement.on(`${event}.ember`, '.ember-view', function (evt) {\n        let view = getElementView(this);\n        let result = true;\n\n        if (view) {\n          result = view.handleEvent(eventName, addJQueryEventDeprecation(evt));\n        }\n\n        return result;\n      });\n      rootElement.on(`${event}.ember`, '[data-ember-action]', evt => {\n        let attributes = evt.currentTarget.attributes;\n        let handledActions = [];\n        evt = addJQueryEventDeprecation(evt);\n\n        for (let i = 0; i < attributes.length; i++) {\n          let attr = attributes.item(i);\n          let attrName = attr.name;\n\n          if (attrName.lastIndexOf('data-ember-action-', 0) !== -1) {\n            let action = ActionManager.registeredActions[attr.value]; // We have to check for action here since in some cases, jQuery will trigger\n            // an event on `removeChild` (i.e. focusout) after we've already torn down the\n            // action handlers for the view.\n\n            if (action && action.eventName === eventName && handledActions.indexOf(action) === -1) {\n              action.handler(evt); // Action handlers can mutate state which in turn creates new attributes on the element.\n              // This effect could cause the `data-ember-action` attribute to shift down and be invoked twice.\n              // To avoid this, we keep track of which actions have been handled.\n\n              handledActions.push(action);\n            }\n          }\n        }\n      });\n    }\n  },\n\n  destroy() {\n    let rootElementSelector = get(this, 'rootElement');\n    let rootElement;\n\n    if (rootElementSelector.nodeType) {\n      rootElement = rootElementSelector;\n    } else {\n      rootElement = document.querySelector(rootElementSelector);\n    }\n\n    if (!rootElement) {\n      return;\n    }\n\n    if (!JQUERY_INTEGRATION || jQueryDisabled) {\n      for (let event in this._eventHandlers) {\n        rootElement.removeEventListener(event, this._eventHandlers[event]);\n      }\n    } else {\n      jQuery(rootElementSelector).off('.ember', '**');\n    }\n\n    rootElement.classList.remove(ROOT_ELEMENT_CLASS);\n    return this._super(...arguments);\n  },\n\n  toString() {\n    return '(EventDispatcher)';\n  }\n\n});","import { context } from '@ember/-internals/environment';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { ENV } from '@ember/-internals/environment';\nimport { JQUERY_INTEGRATION } from '@ember/deprecated-features';\nexport let jQuery;\nexport let jQueryDisabled = !JQUERY_INTEGRATION || ENV._JQUERY_INTEGRATION === false;\n\nif (JQUERY_INTEGRATION && hasDOM) {\n  jQuery = context.imports.jQuery;\n\n  if (!jQueryDisabled && jQuery) {\n    if (jQuery.event.addProp) {\n      jQuery.event.addProp('dataTransfer');\n    } else {\n      // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#dndevents\n      ['dragstart', 'drag', 'dragenter', 'dragleave', 'dragover', 'drop', 'dragend'].forEach(eventName => {\n        jQuery.event.fixHooks[eventName] = {\n          props: ['dataTransfer']\n        };\n      });\n    }\n  } else {\n    jQuery = undefined;\n    jQueryDisabled = true;\n  }\n}","/* global Proxy */\nimport { deprecate } from '@ember/debug';\nimport { global } from '@ember/-internals/environment';\nimport { HAS_NATIVE_PROXY } from '@ember/-internals/utils';\nimport { DEBUG } from '@glimmer/env';\nimport { JQUERY_INTEGRATION } from '@ember/deprecated-features';\nexport default function addJQueryEventDeprecation(jqEvent) {\n  if (DEBUG && JQUERY_INTEGRATION && HAS_NATIVE_PROXY) {\n    let boundFunctions = new Map(); // wrap the jQuery event in a Proxy to add the deprecation message for originalEvent, according to RFC#294\n    // we need a native Proxy here, so we can make sure that the internal use of originalEvent in jQuery itself does\n    // not trigger a deprecation\n\n    return new Proxy(jqEvent, {\n      get(target, name) {\n        switch (name) {\n          case 'originalEvent':\n            deprecate('Accessing jQuery.Event specific properties is deprecated. Either use the ember-jquery-legacy addon to normalize events to native events, or explicitly opt into jQuery integration using @ember/optional-features.', (EmberENV => {\n              // this deprecation is intentionally checking `global.EmberENV` so\n              // that we can ensure we _only_ deprecate in the case where jQuery\n              // integration is enabled implicitly (e.g. \"defaulted\" to enabled)\n              // as opposed to when the user explicitly opts in to using jQuery\n              if (typeof EmberENV !== 'object' || EmberENV === null) return false;\n              return EmberENV._JQUERY_INTEGRATION === true;\n            })(global.EmberENV), {\n              id: 'ember-views.event-dispatcher.jquery-event',\n              until: '4.0.0',\n              url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-event'\n            });\n            return target[name];\n          // provide an escape hatch for ember-jquery-legacy to access originalEvent without a deprecation\n\n          case '__originalEvent':\n            return target.originalEvent;\n\n          default:\n            if (typeof target[name] === 'function') {\n              // cache functions for reuse\n              if (!boundFunctions.has(name)) {\n                // for jQuery.Event methods call them with `target` as the `this` context, so they will access\n                // `originalEvent` from the original jQuery event, not our proxy, thus not trigger the deprecation\n                boundFunctions.set(name, target[name].bind(target));\n              }\n\n              return boundFunctions.get(name);\n            } // same for jQuery's getter functions for simple properties\n\n\n            return target[name];\n        }\n      }\n\n    });\n  }\n\n  return jqEvent;\n}","import { getOwner } from '@ember/-internals/owner';\n/* globals Element */\n\nimport { guidFor } from '@ember/-internals/utils';\nimport { assert } from '@ember/debug';\n/**\n@module ember\n*/\n\nexport function isSimpleClick(event) {\n  let modifier = event.shiftKey || event.metaKey || event.altKey || event.ctrlKey;\n  let secondaryClick = event.which > 1; // IE9 may return undefined\n\n  return !modifier && !secondaryClick;\n}\nexport function constructStyleDeprecationMessage(affectedStyle) {\n  return '' + 'Binding style attributes may introduce cross-site scripting vulnerabilities; ' + 'please ensure that values being bound are properly escaped. For more information, ' + 'including how to disable this warning, see ' + 'https://emberjs.com/deprecations/v1.x/#toc_binding-style-attributes. ' + 'Style affected: \"' + affectedStyle + '\"';\n}\n/**\n  @private\n  @method getRootViews\n  @param {Object} owner\n*/\n\nexport function getRootViews(owner) {\n  let registry = owner.lookup('-view-registry:main');\n  let rootViews = [];\n  Object.keys(registry).forEach(id => {\n    let view = registry[id];\n\n    if (view.parentView === null) {\n      rootViews.push(view);\n    }\n  });\n  return rootViews;\n}\n/**\n  @private\n  @method getViewId\n  @param {Ember.View} view\n */\n\nexport function getViewId(view) {\n  if (view.tagName !== '' && view.elementId) {\n    return view.elementId;\n  } else {\n    return guidFor(view);\n  }\n}\nconst ELEMENT_VIEW = new WeakMap();\nconst VIEW_ELEMENT = new WeakMap();\nexport function getElementView(element) {\n  return ELEMENT_VIEW.get(element) || null;\n}\n/**\n  @private\n  @method getViewElement\n  @param {Ember.View} view\n */\n\nexport function getViewElement(view) {\n  return VIEW_ELEMENT.get(view) || null;\n}\nexport function setElementView(element, view) {\n  ELEMENT_VIEW.set(element, view);\n}\nexport function setViewElement(view, element) {\n  VIEW_ELEMENT.set(view, element);\n} // These are not needed for GC, but for correctness. We want to be able to\n// null-out these links while the objects are still live. Specifically, in\n// this case, we want to prevent access to the element (and vice verse) during\n// destruction.\n\nexport function clearElementView(element) {\n  ELEMENT_VIEW.delete(element);\n}\nexport function clearViewElement(view) {\n  VIEW_ELEMENT.delete(view);\n}\nconst CHILD_VIEW_IDS = new WeakMap();\n/**\n  @private\n  @method getChildViews\n  @param {Ember.View} view\n*/\n\nexport function getChildViews(view) {\n  let owner = getOwner(view);\n  let registry = owner.lookup('-view-registry:main');\n  return collectChildViews(view, registry);\n}\nexport function initChildViews(view) {\n  let childViews = new Set();\n  CHILD_VIEW_IDS.set(view, childViews);\n  return childViews;\n}\nexport function addChildView(parent, child) {\n  let childViews = CHILD_VIEW_IDS.get(parent);\n\n  if (childViews === undefined) {\n    childViews = initChildViews(parent);\n  }\n\n  childViews.add(getViewId(child));\n}\nexport function collectChildViews(view, registry) {\n  let views = [];\n  let childViews = CHILD_VIEW_IDS.get(view);\n\n  if (childViews !== undefined) {\n    childViews.forEach(id => {\n      let view = registry[id];\n\n      if (view && !view.isDestroying && !view.isDestroyed) {\n        views.push(view);\n      }\n    });\n  }\n\n  return views;\n}\n/**\n  @private\n  @method getViewBounds\n  @param {Ember.View} view\n*/\n\nexport function getViewBounds(view) {\n  return view.renderer.getBounds(view);\n}\n/**\n  @private\n  @method getViewRange\n  @param {Ember.View} view\n*/\n\nexport function getViewRange(view) {\n  let bounds = getViewBounds(view);\n  let range = document.createRange();\n  range.setStartBefore(bounds.firstNode);\n  range.setEndAfter(bounds.lastNode);\n  return range;\n}\n/**\n  `getViewClientRects` provides information about the position of the border\n  box edges of a view relative to the viewport.\n\n  It is only intended to be used by development tools like the Ember Inspector\n  and may not work on older browsers.\n\n  @private\n  @method getViewClientRects\n  @param {Ember.View} view\n*/\n\nexport function getViewClientRects(view) {\n  let range = getViewRange(view);\n  return range.getClientRects();\n}\n/**\n  `getViewBoundingClientRect` provides information about the position of the\n  bounding border box edges of a view relative to the viewport.\n\n  It is only intended to be used by development tools like the Ember Inspector\n  and may not work on older browsers.\n\n  @private\n  @method getViewBoundingClientRect\n  @param {Ember.View} view\n*/\n\nexport function getViewBoundingClientRect(view) {\n  let range = getViewRange(view);\n  return range.getBoundingClientRect();\n}\n/**\n  Determines if the element matches the specified selector.\n\n  @private\n  @method matches\n  @param {DOMElement} el\n  @param {String} selector\n*/\n\nexport const elMatches = typeof Element !== 'undefined' ? Element.prototype.matches || Element.prototype['matchesSelector'] || Element.prototype['mozMatchesSelector'] || Element.prototype['msMatchesSelector'] || Element.prototype['oMatchesSelector'] || Element.prototype['webkitMatchesSelector'] : undefined;\nexport function matches(el, selector) {\n  assert('cannot call `matches` in fastboot mode', elMatches !== undefined);\n  return elMatches.call(el, selector);\n}\nexport function contains(a, b) {\n  if (a.contains !== undefined) {\n    return a.contains(b);\n  }\n\n  let current = b.parentNode;\n\n  while (current && (current = current.parentNode)) {\n    if (current === a) {\n      return true;\n    }\n  }\n\n  return false;\n}","import { ActionHandler, Evented, FrameworkObject } from '@ember/-internals/runtime';\nimport states from './states';\n/**\n  `Ember.CoreView` is an abstract class that exists to give view-like behavior\n  to both Ember's main view class `Component` and other classes that don't need\n  the full functionality of `Component`.\n\n  Unless you have specific needs for `CoreView`, you will use `Component`\n  in your applications.\n\n  @class CoreView\n  @namespace Ember\n  @extends EmberObject\n  @deprecated Use `Component` instead.\n  @uses Evented\n  @uses Ember.ActionHandler\n  @private\n*/\n\nconst CoreView = FrameworkObject.extend(Evented, ActionHandler, {\n  isView: true,\n  _states: states,\n\n  init() {\n    this._super(...arguments);\n\n    this._state = 'preRender';\n    this._currentState = this._states.preRender;\n\n    if (!this.renderer) {\n      throw new Error(`Cannot instantiate a component without a renderer. Please ensure that you are creating ${this} with a proper container/registry.`);\n    }\n  },\n\n  /**\n    If the view is currently inserted into the DOM of a parent view, this\n    property will point to the parent of the view.\n     @property parentView\n    @type Ember.View\n    @default null\n    @private\n  */\n  parentView: null,\n\n  instrumentDetails(hash) {\n    hash.object = this.toString();\n    hash.containerKey = this._debugContainerKey;\n    hash.view = this;\n    return hash;\n  },\n\n  /**\n    Override the default event firing from `Evented` to\n    also call methods with the given name.\n     @method trigger\n    @param name {String}\n    @private\n  */\n  trigger(name, ...args) {\n    this._super(...arguments);\n\n    let method = this[name];\n\n    if (typeof method === 'function') {\n      return method.apply(this, args);\n    }\n  },\n\n  has(name) {\n    return typeof this[name] === 'function' || this._super(name);\n  }\n\n});\nCoreView.reopenClass({\n  isViewFactory: true\n});\nexport default CoreView;","import preRender from './states/pre_render';\nimport hasElement from './states/has_element';\nimport inDOM from './states/in_dom';\nimport destroying from './states/destroying';\n/*\n  Describe how the specified actions should behave in the various\n  states that a view can exist in. Possible states:\n\n  * preRender: when a view is first instantiated, and after its\n    element was destroyed, it is in the preRender state\n  * hasElement: the DOM representation of the view is created,\n    and is ready to be inserted\n  * inDOM: once a view has been inserted into the DOM it is in\n    the inDOM state. A view spends the vast majority of its\n    existence in this state.\n  * destroyed: once a view has been destroyed (using the destroy\n    method), it is in this state. No further actions can be invoked\n    on a destroyed view.\n*/\n\nconst states = Object.freeze({\n  preRender,\n  inDOM,\n  hasElement,\n  destroying\n});\nexport default states;","import EmberError from '@ember/error';\nconst _default = {\n  // appendChild is only legal while rendering the buffer.\n  appendChild() {\n    throw new EmberError(\"You can't use appendChild outside of the rendering process\");\n  },\n\n  // Handle events from `Ember.EventDispatcher`\n  handleEvent() {\n    return true; // continue event propagation\n  },\n\n  rerender() {},\n\n  destroy() {}\n\n};\nexport default Object.freeze(_default);","import { assign } from '@ember/polyfills';\nimport EmberError from '@ember/error';\nimport _default from './default';\nconst destroying = assign({}, _default, {\n  appendChild() {\n    throw new EmberError(\"You can't call appendChild on a view being destroyed\");\n  },\n\n  rerender() {\n    throw new EmberError(\"You can't call rerender on a view being destroyed\");\n  }\n\n});\nexport default Object.freeze(destroying);","import { assign } from '@ember/polyfills';\nimport _default from './default';\nimport { join } from '@ember/runloop';\nimport { flaggedInstrument } from '@ember/instrumentation';\nconst hasElement = assign({}, _default, {\n  rerender(view) {\n    view.renderer.rerender(view);\n  },\n\n  destroy(view) {\n    view.renderer.remove(view);\n  },\n\n  // Handle events from `Ember.EventDispatcher`\n  handleEvent(view, eventName, event) {\n    if (view.has(eventName)) {\n      // Handler should be able to re-dispatch events, so we don't\n      // preventDefault or stopPropagation.\n      return flaggedInstrument(`interaction.${eventName}`, {\n        event,\n        view\n      }, () => {\n        return join(view, view.trigger, eventName, event);\n      });\n    } else {\n      return true; // continue event propagation\n    }\n  }\n\n});\nexport default Object.freeze(hasElement);","import { teardownMandatorySetter } from '@ember/-internals/utils';\nimport { assign } from '@ember/polyfills';\nimport EmberError from '@ember/error';\nimport { DEBUG } from '@glimmer/env';\nimport hasElement from './has_element';\nconst inDOM = assign({}, hasElement, {\n  enter(view) {\n    // Register the view for event handling. This hash is used by\n    // Ember.EventDispatcher to dispatch incoming events.\n    view.renderer.register(view);\n\n    if (DEBUG) {\n      let elementId = view.elementId;\n      teardownMandatorySetter(view, 'elementId');\n      Object.defineProperty(view, 'elementId', {\n        configurable: true,\n        enumerable: true,\n\n        get() {\n          return elementId;\n        },\n\n        set(value) {\n          if (value !== elementId) {\n            throw new EmberError(\"Changing a view's elementId after creation is not allowed\");\n          }\n        }\n\n      });\n    }\n  }\n\n});\nexport default Object.freeze(inDOM);","import _default from './default';\nimport { assign } from '@ember/polyfills';\nconst preRender = assign({}, _default);\nexport default Object.freeze(preRender);","/**\n@module @ember/application\n*/\nimport { dictionary } from '@ember/-internals/utils';\nimport { get, findNamespace } from '@ember/-internals/metal';\nimport { assert, info, deprecate } from '@ember/debug';\nimport { capitalize, classify, dasherize, decamelize } from '@ember/string';\nimport { Object as EmberObject } from '@ember/-internals/runtime';\nimport { getTemplate } from '@ember/-internals/glimmer';\nimport { DEBUG } from '@glimmer/env';\nimport { GLOBALS_RESOLVER } from '@ember/deprecated-features';\n/**\n  The DefaultResolver defines the default lookup rules to resolve\n  container lookups before consulting the container for registered\n  items:\n\n  * templates are looked up on `Ember.TEMPLATES`\n  * other names are looked up on the application after converting\n    the name. For example, `controller:post` looks up\n    `App.PostController` by default.\n  * there are some nuances (see examples below)\n\n  ### How Resolving Works\n\n  The container calls this object's `resolve` method with the\n  `fullName` argument.\n\n  It first parses the fullName into an object using `parseName`.\n\n  Then it checks for the presence of a type-specific instance\n  method of the form `resolve[Type]` and calls it if it exists.\n  For example if it was resolving 'template:post', it would call\n  the `resolveTemplate` method.\n\n  Its last resort is to call the `resolveOther` method.\n\n  The methods of this object are designed to be easy to override\n  in a subclass. For example, you could enhance how a template\n  is resolved like so:\n\n  ```app/app.js\n  import Application from '@ember/application';\n  import GlobalsResolver from '@ember/application/globals-resolver';\n\n  App = Application.create({\n    Resolver: GlobalsResolver.extend({\n      resolveTemplate(parsedName) {\n        let resolvedTemplate = this._super(parsedName);\n        if (resolvedTemplate) { return resolvedTemplate; }\n\n        return Ember.TEMPLATES['not_found'];\n      }\n    })\n  });\n  ```\n\n  Some examples of how names are resolved:\n\n  ```text\n  'template:post'           //=> Ember.TEMPLATES['post']\n  'template:posts/byline'   //=> Ember.TEMPLATES['posts/byline']\n  'template:posts.byline'   //=> Ember.TEMPLATES['posts/byline']\n  'template:blogPost'       //=> Ember.TEMPLATES['blog-post']\n  'controller:post'         //=> App.PostController\n  'controller:posts.index'  //=> App.PostsIndexController\n  'controller:blog/post'    //=> Blog.PostController\n  'controller:basic'        //=> Controller\n  'route:post'              //=> App.PostRoute\n  'route:posts.index'       //=> App.PostsIndexRoute\n  'route:blog/post'         //=> Blog.PostRoute\n  'route:basic'             //=> Route\n  'foo:post'                //=> App.PostFoo\n  'model:post'              //=> App.Post\n  ```\n\n  @class GlobalsResolver\n  @extends EmberObject\n  @public\n  @deprecated\n*/\n\nlet DefaultResolver;\n\nif (GLOBALS_RESOLVER) {\n  DefaultResolver = class DefaultResolver extends EmberObject {\n    static create(props) {\n      // DO NOT REMOVE even though this doesn't do anything\n      // This is required for a FireFox 60+ JIT bug with our tests.\n      // without it, create(props) in our tests would lose props on a deopt.\n      return super.create(props);\n    }\n    /**\n      This will be set to the Application instance when it is\n      created.\n       @property namespace\n      @public\n      @deprecated\n    */\n\n\n    init() {\n      deprecate('Using the globals resolver is deprecated. Use the ember-resolver package instead. See https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver', false, {\n        until: '4.0.0',\n        id: 'globals-resolver',\n        url: 'https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver'\n      });\n      this._parseNameCache = dictionary(null);\n    }\n\n    normalize(fullName) {\n      let [type, name] = fullName.split(':');\n      assert('Tried to normalize a container name without a colon (:) in it. ' + 'You probably tried to lookup a name that did not contain a type, ' + 'a colon, and a name. A proper lookup name would be `view:post`.', fullName.split(':').length === 2);\n\n      if (type !== 'template') {\n        let result = name.replace(/(\\.|_|-)./g, m => m.charAt(1).toUpperCase());\n        return `${type}:${result}`;\n      } else {\n        return fullName;\n      }\n    }\n    /**\n      This method is called via the container's resolver method.\n      It parses the provided `fullName` and then looks up and\n      returns the appropriate template or class.\n       @method resolve\n      @param {String} fullName the lookup string\n      @return {Object} the resolved factory\n      @public\n    */\n\n\n    resolve(fullName) {\n      let parsedName = this.parseName(fullName);\n      let resolveMethodName = parsedName.resolveMethodName;\n      let resolved;\n\n      if (this[resolveMethodName]) {\n        resolved = this[resolveMethodName](parsedName);\n      }\n\n      resolved = resolved || this.resolveOther(parsedName);\n\n      if (DEBUG) {\n        if (parsedName.root && parsedName.root.LOG_RESOLVER) {\n          this._logLookup(resolved, parsedName);\n        }\n\n        if (resolved) {\n          let VALIDATED_TYPES = {\n            route: ['isRouteFactory', 'Ember.Route'],\n            component: ['isComponentFactory', 'Ember.Component'],\n            view: ['isViewFactory', 'Ember.View'],\n            service: ['isServiceFactory', 'Ember.Service']\n          };\n          let validationAttributes = VALIDATED_TYPES[parsedName.type];\n\n          if (validationAttributes) {\n            let [factoryFlag, expectedType] = validationAttributes;\n            assert(`Expected ${parsedName.fullName} to resolve to an ${expectedType} but ` + `instead it was ${resolved}.`, Boolean(resolved[factoryFlag]));\n          }\n        }\n      }\n\n      return resolved;\n    }\n    /**\n      Convert the string name of the form 'type:name' to\n      a Javascript object with the parsed aspects of the name\n      broken out.\n       @param {String} fullName the lookup string\n      @method parseName\n      @protected\n    */\n\n\n    parseName(fullName) {\n      return this._parseNameCache[fullName] || (this._parseNameCache[fullName] = this._parseName(fullName));\n    }\n\n    _parseName(fullName) {\n      let [type, fullNameWithoutType] = fullName.split(':');\n      let name = fullNameWithoutType;\n      let namespace = get(this, 'namespace');\n      let root = namespace;\n      let lastSlashIndex = name.lastIndexOf('/');\n      let dirname = lastSlashIndex !== -1 ? name.slice(0, lastSlashIndex) : null;\n\n      if (type !== 'template' && lastSlashIndex !== -1) {\n        let parts = name.split('/');\n        name = parts[parts.length - 1];\n        let namespaceName = capitalize(parts.slice(0, -1).join('.'));\n        root = findNamespace(namespaceName);\n        assert(`You are looking for a ${name} ${type} in the ${namespaceName} namespace, but the namespace could not be found`, root);\n      }\n\n      let resolveMethodName = fullNameWithoutType === 'main' ? 'Main' : classify(type);\n\n      if (!(name && type)) {\n        throw new TypeError(`Invalid fullName: \\`${fullName}\\`, must be of the form \\`type:name\\` `);\n      }\n\n      return {\n        fullName,\n        type,\n        fullNameWithoutType,\n        dirname,\n        name,\n        root,\n        resolveMethodName: `resolve${resolveMethodName}`\n      };\n    }\n    /**\n      Returns a human-readable description for a fullName. Used by the\n      Application namespace in assertions to describe the\n      precise name of the class that Ember is looking for, rather than\n      container keys.\n       @param {String} fullName the lookup string\n      @method lookupDescription\n      @protected\n    */\n\n\n    lookupDescription(fullName) {\n      let parsedName = this.parseName(fullName);\n      let description;\n\n      if (parsedName.type === 'template') {\n        return `template at ${parsedName.fullNameWithoutType.replace(/\\./g, '/')}`;\n      }\n\n      description = `${parsedName.root}.${classify(parsedName.name).replace(/\\./g, '')}`;\n\n      if (parsedName.type !== 'model') {\n        description += classify(parsedName.type);\n      }\n\n      return description;\n    }\n\n    makeToString(factory) {\n      return factory.toString();\n    }\n    /**\n      Given a parseName object (output from `parseName`), apply\n      the conventions expected by `Router`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method useRouterNaming\n      @protected\n    */\n\n\n    useRouterNaming(parsedName) {\n      if (parsedName.name === 'basic') {\n        parsedName.name = '';\n      } else {\n        parsedName.name = parsedName.name.replace(/\\./g, '_');\n      }\n    }\n    /**\n      Look up the template in Ember.TEMPLATES\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveTemplate\n      @protected\n    */\n\n\n    resolveTemplate(parsedName) {\n      let templateName = parsedName.fullNameWithoutType.replace(/\\./g, '/');\n      return getTemplate(templateName) || getTemplate(decamelize(templateName));\n    }\n    /**\n      Lookup the view using `resolveOther`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveView\n      @protected\n    */\n\n\n    resolveView(parsedName) {\n      this.useRouterNaming(parsedName);\n      return this.resolveOther(parsedName);\n    }\n    /**\n      Lookup the controller using `resolveOther`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveController\n      @protected\n    */\n\n\n    resolveController(parsedName) {\n      this.useRouterNaming(parsedName);\n      return this.resolveOther(parsedName);\n    }\n    /**\n      Lookup the route using `resolveOther`\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveRoute\n      @protected\n    */\n\n\n    resolveRoute(parsedName) {\n      this.useRouterNaming(parsedName);\n      return this.resolveOther(parsedName);\n    }\n    /**\n      Lookup the model on the Application namespace\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveModel\n      @protected\n    */\n\n\n    resolveModel(parsedName) {\n      let className = classify(parsedName.name);\n      let factory = get(parsedName.root, className);\n      return factory;\n    }\n    /**\n      Look up the specified object (from parsedName) on the appropriate\n      namespace (usually on the Application)\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveHelper\n      @protected\n    */\n\n\n    resolveHelper(parsedName) {\n      return this.resolveOther(parsedName);\n    }\n    /**\n      Look up the specified object (from parsedName) on the appropriate\n      namespace (usually on the Application)\n       @param {Object} parsedName a parseName object with the parsed\n        fullName lookup string\n      @method resolveOther\n      @protected\n    */\n\n\n    resolveOther(parsedName) {\n      let className = classify(parsedName.name) + classify(parsedName.type);\n      let factory = get(parsedName.root, className);\n      return factory;\n    }\n\n    resolveMain(parsedName) {\n      let className = classify(parsedName.type);\n      return get(parsedName.root, className);\n    }\n    /**\n      Used to iterate all items of a given type.\n       @method knownForType\n      @param {String} type the type to search for\n      @private\n    */\n\n\n    knownForType(type) {\n      let namespace = get(this, 'namespace');\n      let suffix = classify(type);\n      let typeRegexp = new RegExp(`${suffix}$`);\n      let known = dictionary(null);\n      let knownKeys = Object.keys(namespace);\n\n      for (let index = 0; index < knownKeys.length; index++) {\n        let name = knownKeys[index];\n\n        if (typeRegexp.test(name)) {\n          let containerName = this.translateToContainerFullname(type, name);\n          known[containerName] = true;\n        }\n      }\n\n      return known;\n    }\n    /**\n      Converts provided name from the backing namespace into a container lookup name.\n       Examples:\n       * App.FooBarHelper -> helper:foo-bar\n      * App.THelper -> helper:t\n       @method translateToContainerFullname\n      @param {String} type\n      @param {String} name\n      @private\n    */\n\n\n    translateToContainerFullname(type, name) {\n      let suffix = classify(type);\n      let namePrefix = name.slice(0, suffix.length * -1);\n      let dasherizedName = dasherize(namePrefix);\n      return `${type}:${dasherizedName}`;\n    }\n\n  };\n\n  if (DEBUG) {\n    /**\n        @method _logLookup\n        @param {Boolean} found\n        @param {Object} parsedName\n        @private\n      */\n    DefaultResolver.prototype._logLookup = function (found, parsedName) {\n      let symbol = found ? '[✓]' : '[ ]';\n      let padding;\n\n      if (parsedName.fullName.length > 60) {\n        padding = '.';\n      } else {\n        padding = new Array(60 - parsedName.fullName.length).join('.');\n      }\n\n      info(symbol, parsedName.fullName, padding, this.lookupDescription(parsedName.fullName));\n    };\n  }\n}\n\nexport default DefaultResolver;","export { getOwner, setOwner } from '@ember/-internals/owner';\nexport { onLoad, runLoadHooks, _loaded } from './lib/lazy_load';\nexport { default } from './lib/application';","/**\n@module @ember/application\n*/\nimport { assign } from '@ember/polyfills';\nimport { get, set, computed } from '@ember/-internals/metal';\nimport * as environment from '@ember/-internals/browser-environment';\nimport { jQuery } from '@ember/-internals/views';\nimport EngineInstance from '@ember/engine/instance';\nimport { renderSettled } from '@ember/-internals/glimmer';\n/**\n  The `ApplicationInstance` encapsulates all of the stateful aspects of a\n  running `Application`.\n\n  At a high-level, we break application boot into two distinct phases:\n\n  * Definition time, where all of the classes, templates, and other\n    dependencies are loaded (typically in the browser).\n  * Run time, where we begin executing the application once everything\n    has loaded.\n\n  Definition time can be expensive and only needs to happen once since it is\n  an idempotent operation. For example, between test runs and FastBoot\n  requests, the application stays the same. It is only the state that we want\n  to reset.\n\n  That state is what the `ApplicationInstance` manages: it is responsible for\n  creating the container that contains all application state, and disposing of\n  it once the particular test run or FastBoot request has finished.\n\n  @public\n  @class ApplicationInstance\n  @extends EngineInstance\n*/\n\nconst ApplicationInstance = EngineInstance.extend({\n  /**\n    The `Application` for which this is an instance.\n     @property {Application} application\n    @private\n  */\n  application: null,\n\n  /**\n    The DOM events for which the event dispatcher should listen.\n     By default, the application's `Ember.EventDispatcher` listens\n    for a set of standard DOM events, such as `mousedown` and\n    `keyup`, and delegates them to your application's `Ember.View`\n    instances.\n     @private\n    @property {Object} customEvents\n  */\n  customEvents: null,\n\n  /**\n    The root DOM element of the Application as an element or a\n    [jQuery-compatible selector\n    string](http://api.jquery.com/category/selectors/).\n     @private\n    @property {String|DOMElement} rootElement\n  */\n  rootElement: null,\n\n  init() {\n    this._super(...arguments);\n\n    this.application._watchInstance(this); // Register this instance in the per-instance registry.\n    //\n    // Why do we need to register the instance in the first place?\n    // Because we need a good way for the root route (a.k.a ApplicationRoute)\n    // to notify us when it has created the root-most view. That view is then\n    // appended to the rootElement, in the case of apps, to the fixture harness\n    // in tests, or rendered to a string in the case of FastBoot.\n\n\n    this.register('-application-instance:main', this, {\n      instantiate: false\n    });\n  },\n\n  /**\n    Overrides the base `EngineInstance._bootSync` method with concerns relevant\n    to booting application (instead of engine) instances.\n     This method should only contain synchronous boot concerns. Asynchronous\n    boot concerns should eventually be moved to the `boot` method, which\n    returns a promise.\n     Until all boot code has been made asynchronous, we need to continue to\n    expose this method for use *internally* in places where we need to boot an\n    instance synchronously.\n     @private\n  */\n  _bootSync(options) {\n    if (this._booted) {\n      return this;\n    }\n\n    options = new BootOptions(options);\n    this.setupRegistry(options);\n\n    if (options.rootElement) {\n      this.rootElement = options.rootElement;\n    } else {\n      this.rootElement = this.application.rootElement;\n    }\n\n    if (options.location) {\n      set(this.router, 'location', options.location);\n    }\n\n    this.application.runInstanceInitializers(this);\n\n    if (options.isInteractive) {\n      this.setupEventDispatcher();\n    }\n\n    this._booted = true;\n    return this;\n  },\n\n  setupRegistry(options) {\n    this.constructor.setupRegistry(this.__registry__, options);\n  },\n\n  router: computed(function () {\n    return this.lookup('router:main');\n  }).readOnly(),\n\n  /**\n    This hook is called by the root-most Route (a.k.a. the ApplicationRoute)\n    when it has finished creating the root View. By default, we simply take the\n    view and append it to the `rootElement` specified on the Application.\n     In cases like FastBoot and testing, we can override this hook and implement\n    custom behavior, such as serializing to a string and sending over an HTTP\n    socket rather than appending to DOM.\n     @param view {Ember.View} the root-most view\n    @deprecated\n    @private\n  */\n  didCreateRootView(view) {\n    view.appendTo(this.rootElement);\n  },\n\n  /**\n    Tells the router to start routing. The router will ask the location for the\n    current URL of the page to determine the initial URL to start routing to.\n    To start the app at a specific URL, call `handleURL` instead.\n     @private\n  */\n  startRouting() {\n    this.router.startRouting();\n  },\n\n  /**\n    Sets up the router, initializing the child router and configuring the\n    location before routing begins.\n     Because setup should only occur once, multiple calls to `setupRouter`\n    beyond the first call have no effect.\n     This is commonly used in order to confirm things that rely on the router\n    are functioning properly from tests that are primarily rendering related.\n     For example, from within [ember-qunit](https://github.com/emberjs/ember-qunit)'s\n    `setupRenderingTest` calling `this.owner.setupRouter()` would allow that\n    rendering test to confirm that any `<LinkTo></LinkTo>`'s that are rendered\n    have the correct URL.\n     @public\n  */\n  setupRouter() {\n    this.router.setupRouter();\n  },\n\n  /**\n    Directs the router to route to a particular URL. This is useful in tests,\n    for example, to tell the app to start at a particular URL.\n     @param url {String} the URL the router should route to\n    @private\n  */\n  handleURL(url) {\n    this.setupRouter();\n    return this.router.handleURL(url);\n  },\n\n  /**\n    @private\n  */\n  setupEventDispatcher() {\n    let dispatcher = this.lookup('event_dispatcher:main');\n    let applicationCustomEvents = get(this.application, 'customEvents');\n    let instanceCustomEvents = get(this, 'customEvents');\n    let customEvents = assign({}, applicationCustomEvents, instanceCustomEvents);\n    dispatcher.setup(customEvents, this.rootElement);\n    return dispatcher;\n  },\n\n  /**\n    Returns the current URL of the app instance. This is useful when your\n    app does not update the browsers URL bar (i.e. it uses the `'none'`\n    location adapter).\n     @public\n    @return {String} the current URL\n  */\n  getURL() {\n    return this.router.url;\n  },\n\n  // `instance.visit(url)` should eventually replace `instance.handleURL()`;\n  // the test helpers can probably be switched to use this implementation too\n\n  /**\n    Navigate the instance to a particular URL. This is useful in tests, for\n    example, or to tell the app to start at a particular URL. This method\n    returns a promise that resolves with the app instance when the transition\n    is complete, or rejects if the transion was aborted due to an error.\n     @public\n    @param url {String} the destination URL\n    @return {Promise<ApplicationInstance>}\n  */\n  visit(url) {\n    this.setupRouter();\n\n    let bootOptions = this.__container__.lookup('-environment:main');\n\n    let router = this.router;\n\n    let handleTransitionResolve = () => {\n      if (!bootOptions.options.shouldRender) {\n        // No rendering is needed, and routing has completed, simply return.\n        return this;\n      } else {\n        // Ensure that the visit promise resolves when all rendering has completed\n        return renderSettled().then(() => this);\n      }\n    };\n\n    let handleTransitionReject = error => {\n      if (error.error) {\n        throw error.error;\n      } else if (error.name === 'TransitionAborted' && router._routerMicrolib.activeTransition) {\n        return router._routerMicrolib.activeTransition.then(handleTransitionResolve, handleTransitionReject);\n      } else if (error.name === 'TransitionAborted') {\n        throw new Error(error.message);\n      } else {\n        throw error;\n      }\n    };\n\n    let location = get(router, 'location'); // Keeps the location adapter's internal URL in-sync\n\n    location.setURL(url); // getURL returns the set url with the rootURL stripped off\n\n    return router.handleURL(location.getURL()).then(handleTransitionResolve, handleTransitionReject);\n  },\n\n  willDestroy() {\n    this._super(...arguments);\n\n    this.application._unwatchInstance(this);\n  }\n\n});\nApplicationInstance.reopenClass({\n  /**\n   @private\n   @method setupRegistry\n   @param {Registry} registry\n   @param {BootOptions} options\n  */\n  setupRegistry(registry, options = {}) {\n    if (!options.toEnvironment) {\n      options = new BootOptions(options);\n    }\n\n    registry.register('-environment:main', options.toEnvironment(), {\n      instantiate: false\n    });\n    registry.register('service:-document', options.document, {\n      instantiate: false\n    });\n\n    this._super(registry, options);\n  }\n\n});\n/**\n  A list of boot-time configuration options for customizing the behavior of\n  an `ApplicationInstance`.\n\n  This is an interface class that exists purely to document the available\n  options; you do not need to construct it manually. Simply pass a regular\n  JavaScript object containing the desired options into methods that require\n  one of these options object:\n\n  ```javascript\n  MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n  ```\n\n  Not all combinations of the supported options are valid. See the documentation\n  on `Application#visit` for the supported configurations.\n\n  Internal, experimental or otherwise unstable flags are marked as private.\n\n  @class BootOptions\n  @namespace ApplicationInstance\n  @public\n*/\n\nclass BootOptions {\n  constructor(options = {}) {\n    /**\n      Provide a specific instance of jQuery. This is useful in conjunction with\n      the `document` option, as it allows you to use a copy of `jQuery` that is\n      appropriately bound to the foreign `document` (e.g. a jsdom).\n       This is highly experimental and support very incomplete at the moment.\n       @property jQuery\n      @type Object\n      @default auto-detected\n      @private\n    */\n    this.jQuery = jQuery; // This default is overridable below\n\n    /**\n      Interactive mode: whether we need to set up event delegation and invoke\n      lifecycle callbacks on Components.\n       @property isInteractive\n      @type boolean\n      @default auto-detected\n      @private\n    */\n\n    this.isInteractive = environment.hasDOM; // This default is overridable below\n\n    /**\n      @property _renderMode\n      @type string\n      @default false\n      @private\n    */\n\n    this._renderMode = options._renderMode;\n    /**\n      Run in a full browser environment.\n       When this flag is set to `false`, it will disable most browser-specific\n      and interactive features. Specifically:\n       * It does not use `jQuery` to append the root view; the `rootElement`\n        (either specified as a subsequent option or on the application itself)\n        must already be an `Element` in the given `document` (as opposed to a\n        string selector).\n       * It does not set up an `EventDispatcher`.\n       * It does not run any `Component` lifecycle hooks (such as `didInsertElement`).\n       * It sets the `location` option to `\"none\"`. (If you would like to use\n        the location adapter specified in the app's router instead, you can also\n        specify `{ location: null }` to specifically opt-out.)\n       @property isBrowser\n      @type boolean\n      @default auto-detected\n      @public\n    */\n\n    if (options.isBrowser !== undefined) {\n      this.isBrowser = Boolean(options.isBrowser);\n    } else {\n      this.isBrowser = environment.hasDOM;\n    }\n\n    if (!this.isBrowser) {\n      this.jQuery = null;\n      this.isInteractive = false;\n      this.location = 'none';\n    }\n    /**\n      Disable rendering completely.\n       When this flag is set to `false`, it will disable the entire rendering\n      pipeline. Essentially, this puts the app into \"routing-only\" mode. No\n      templates will be rendered, and no Components will be created.\n       @property shouldRender\n      @type boolean\n      @default true\n      @public\n    */\n\n\n    if (options.shouldRender !== undefined) {\n      this.shouldRender = Boolean(options.shouldRender);\n    } else {\n      this.shouldRender = true;\n    }\n\n    if (!this.shouldRender) {\n      this.jQuery = null;\n      this.isInteractive = false;\n    }\n    /**\n      If present, render into the given `Document` object instead of the\n      global `window.document` object.\n       In practice, this is only useful in non-browser environment or in\n      non-interactive mode, because Ember's `jQuery` dependency is\n      implicitly bound to the current document, causing event delegation\n      to not work properly when the app is rendered into a foreign\n      document object (such as an iframe's `contentDocument`).\n       In non-browser mode, this could be a \"`Document`-like\" object as\n      Ember only interact with a small subset of the DOM API in non-\n      interactive mode. While the exact requirements have not yet been\n      formalized, the `SimpleDOM` library's implementation is known to\n      work.\n       @property document\n      @type Document\n      @default the global `document` object\n      @public\n    */\n\n\n    if (options.document) {\n      this.document = options.document;\n    } else {\n      this.document = typeof document !== 'undefined' ? document : null;\n    }\n    /**\n      If present, overrides the application's `rootElement` property on\n      the instance. This is useful for testing environment, where you\n      might want to append the root view to a fixture area.\n       In non-browser mode, because Ember does not have access to jQuery,\n      this options must be specified as a DOM `Element` object instead of\n      a selector string.\n       See the documentation on `Application`'s `rootElement` for\n      details.\n       @property rootElement\n      @type String|Element\n      @default null\n      @public\n     */\n\n\n    if (options.rootElement) {\n      this.rootElement = options.rootElement;\n    } // Set these options last to give the user a chance to override the\n    // defaults from the \"combo\" options like `isBrowser` (although in\n    // practice, the resulting combination is probably invalid)\n\n    /**\n      If present, overrides the router's `location` property with this\n      value. This is useful for environments where trying to modify the\n      URL would be inappropriate.\n       @property location\n      @type string\n      @default null\n      @public\n    */\n\n\n    if (options.location !== undefined) {\n      this.location = options.location;\n    }\n\n    if (options.jQuery !== undefined) {\n      this.jQuery = options.jQuery;\n    }\n\n    if (options.isInteractive !== undefined) {\n      this.isInteractive = Boolean(options.isInteractive);\n    }\n  }\n\n  toEnvironment() {\n    // Do we really want to assign all of this!?\n    let env = assign({}, environment); // For compatibility with existing code\n\n    env.hasDOM = this.isBrowser;\n    env.isInteractive = this.isInteractive;\n    env._renderMode = this._renderMode;\n    env.options = this;\n    return env;\n  }\n\n}\n\nexport default ApplicationInstance;","/**\n@module @ember/application\n*/\nimport { dictionary } from '@ember/-internals/utils';\nimport { ENV } from '@ember/-internals/environment';\nimport { hasDOM } from '@ember/-internals/browser-environment';\nimport { assert, isTesting } from '@ember/debug';\nimport { DEBUG } from '@glimmer/env';\nimport { join, once, run, schedule } from '@ember/runloop';\nimport { libraries, processAllNamespaces, setNamespaceSearchDisabled } from '@ember/-internals/metal';\nimport { _loaded, runLoadHooks } from './lazy_load';\nimport { RSVP } from '@ember/-internals/runtime';\nimport { EventDispatcher, jQuery, jQueryDisabled } from '@ember/-internals/views';\nimport { Route, Router, HashLocation, HistoryLocation, AutoLocation, NoneLocation, BucketCache } from '@ember/-internals/routing';\nimport ApplicationInstance from '../instance';\nimport Engine from '@ember/engine';\nimport { privatize as P } from '@ember/-internals/container';\nimport { setupApplicationRegistry } from '@ember/-internals/glimmer';\nimport { RouterService } from '@ember/-internals/routing';\nimport { JQUERY_INTEGRATION } from '@ember/deprecated-features';\nlet librariesRegistered = false;\n/**\n  An instance of `Application` is the starting point for every Ember\n  application. It instantiates, initializes and coordinates the\n  objects that make up your app.\n\n  Each Ember app has one and only one `Application` object. Although\n  Ember CLI creates this object implicitly, the `Application` class\n  is defined in the `app/app.js`. You can define a `ready` method on the\n  `Application` class, which will be run by Ember when the application is\n  initialized.\n\n  ```app/app.js\n  const App = Application.extend({\n    ready() {\n      // your code here\n    }\n  })\n  ```\n\n  Because `Application` ultimately inherits from `Ember.Namespace`, any classes\n  you create will have useful string representations when calling `toString()`.\n  See the `Ember.Namespace` documentation for more information.\n\n  While you can think of your `Application` as a container that holds the\n  other classes in your application, there are several other responsibilities\n  going on under-the-hood that you may want to understand. It is also important\n  to understand that an `Application` is different from an `ApplicationInstance`.\n  Refer to the Guides to understand the difference between these.\n\n  ### Event Delegation\n\n  Ember uses a technique called _event delegation_. This allows the framework\n  to set up a global, shared event listener instead of requiring each view to\n  do it manually. For example, instead of each view registering its own\n  `mousedown` listener on its associated element, Ember sets up a `mousedown`\n  listener on the `body`.\n\n  If a `mousedown` event occurs, Ember will look at the target of the event and\n  start walking up the DOM node tree, finding corresponding views and invoking\n  their `mouseDown` method as it goes.\n\n  `Application` has a number of default events that it listens for, as\n  well as a mapping from lowercase events to camel-cased view method names. For\n  example, the `keypress` event causes the `keyPress` method on the view to be\n  called, the `dblclick` event causes `doubleClick` to be called, and so on.\n\n  If there is a bubbling browser event that Ember does not listen for by\n  default, you can specify custom events and their corresponding view method\n  names by setting the application's `customEvents` property:\n\n  ```app/app.js\n  import Application from '@ember/application';\n\n  let App = Application.extend({\n    customEvents: {\n      // add support for the paste event\n      paste: 'paste'\n    }\n  });\n  ```\n\n  To prevent Ember from setting up a listener for a default event,\n  specify the event name with a `null` value in the `customEvents`\n  property:\n\n  ```app/app.js\n  import Application from '@ember/application';\n\n  let App = Application.extend({\n    customEvents: {\n      // prevent listeners for mouseenter/mouseleave events\n      mouseenter: null,\n      mouseleave: null\n    }\n  });\n  ```\n\n  By default, the application sets up these event listeners on the document\n  body. However, in cases where you are embedding an Ember application inside\n  an existing page, you may want it to set up the listeners on an element\n  inside the body.\n\n  For example, if only events inside a DOM element with the ID of `ember-app`\n  should be delegated, set your application's `rootElement` property:\n\n  ```app/app.js\n  import Application from '@ember/application';\n\n  let App = Application.extend({\n    rootElement: '#ember-app'\n  });\n  ```\n\n  The `rootElement` can be either a DOM element or a jQuery-compatible selector\n  string. Note that *views appended to the DOM outside the root element will\n  not receive events.* If you specify a custom root element, make sure you only\n  append views inside it!\n\n  To learn more about the events Ember components use, see\n\n  [components/handling-events](https://guides.emberjs.com/release/components/handling-events/#toc_event-names).\n\n  ### Initializers\n\n  To add behavior to the Application's boot process, you can define initializers in\n  the `app/initializers` directory, or with `ember generate initializer` using Ember CLI.\n  These files should export a named `initialize` function which will receive the created `application`\n  object as its first argument.\n\n  ```javascript\n  export function initialize(application) {\n    // application.inject('route', 'foo', 'service:foo');\n  }\n  ```\n\n  Application initializers can be used for a variety of reasons including:\n\n  - setting up external libraries\n  - injecting dependencies\n  - setting up event listeners in embedded apps\n  - deferring the boot process using the `deferReadiness` and `advanceReadiness` APIs.\n\n  ### Routing\n\n  In addition to creating your application's router, `Application` is\n  also responsible for telling the router when to start routing. Transitions\n  between routes can be logged with the `LOG_TRANSITIONS` flag, and more\n  detailed intra-transition logging can be logged with\n  the `LOG_TRANSITIONS_INTERNAL` flag:\n\n  ```javascript\n  import Application from '@ember/application';\n\n  let App = Application.create({\n    LOG_TRANSITIONS: true, // basic logging of successful transitions\n    LOG_TRANSITIONS_INTERNAL: true // detailed logging of all routing steps\n  });\n  ```\n\n  By default, the router will begin trying to translate the current URL into\n  application state once the browser emits the `DOMContentReady` event. If you\n  need to defer routing, you can call the application's `deferReadiness()`\n  method. Once routing can begin, call the `advanceReadiness()` method.\n\n  If there is any setup required before routing begins, you can implement a\n  `ready()` method on your app that will be invoked immediately before routing\n  begins.\n\n  @class Application\n  @extends Engine\n  @uses RegistryProxyMixin\n  @public\n*/\n\nconst Application = Engine.extend({\n  /**\n    The root DOM element of the Application. This can be specified as an\n    element or a\n    [jQuery-compatible selector string](http://api.jquery.com/category/selectors/).\n     This is the element that will be passed to the Application's,\n    `eventDispatcher`, which sets up the listeners for event delegation. Every\n    view in your application should be a child of the element you specify here.\n     @property rootElement\n    @type DOMElement\n    @default 'body'\n    @public\n  */\n  rootElement: 'body',\n\n  /**\n     @property _document\n    @type Document | null\n    @default 'window.document'\n    @private\n  */\n  _document: hasDOM ? window.document : null,\n\n  /**\n    The `Ember.EventDispatcher` responsible for delegating events to this\n    application's views.\n     The event dispatcher is created by the application at initialization time\n    and sets up event listeners on the DOM element described by the\n    application's `rootElement` property.\n     See the documentation for `Ember.EventDispatcher` for more information.\n     @property eventDispatcher\n    @type Ember.EventDispatcher\n    @default null\n    @public\n  */\n  eventDispatcher: null,\n\n  /**\n    The DOM events for which the event dispatcher should listen.\n     By default, the application's `Ember.EventDispatcher` listens\n    for a set of standard DOM events, such as `mousedown` and\n    `keyup`, and delegates them to your application's `Ember.View`\n    instances.\n     If you would like additional bubbling events to be delegated to your\n    views, set your `Application`'s `customEvents` property\n    to a hash containing the DOM event name as the key and the\n    corresponding view method name as the value. Setting an event to\n    a value of `null` will prevent a default event listener from being\n    added for that event.\n     To add new events to be listened to:\n     ```app/app.js\n    import Application from '@ember/application';\n     let App = Application.extend({\n      customEvents: {\n        // add support for the paste event\n        paste: 'paste'\n      }\n    });\n    ```\n     To prevent default events from being listened to:\n     ```app/app.js\n    import Application from '@ember/application';\n     let App = Application.extend({\n      customEvents: {\n        // remove support for mouseenter / mouseleave events\n        mouseenter: null,\n        mouseleave: null\n      }\n    });\n    ```\n    @property customEvents\n    @type Object\n    @default null\n    @public\n  */\n  customEvents: null,\n\n  /**\n    Whether the application should automatically start routing and render\n    templates to the `rootElement` on DOM ready. While default by true,\n    other environments such as FastBoot or a testing harness can set this\n    property to `false` and control the precise timing and behavior of the boot\n    process.\n     @property autoboot\n    @type Boolean\n    @default true\n    @private\n  */\n  autoboot: true,\n\n  /**\n    Whether the application should be configured for the legacy \"globals mode\".\n    Under this mode, the Application object serves as a global namespace for all\n    classes.\n     ```javascript\n    import Application from '@ember/application';\n    import Component from '@ember/component';\n     let App = Application.create({\n      ...\n    });\n     App.Router.reopen({\n      location: 'none'\n    });\n     App.Router.map({\n      ...\n    });\n     App.MyComponent = Component.extend({\n      ...\n    });\n    ```\n     This flag also exposes other internal APIs that assumes the existence of\n    a special \"default instance\", like `App.__container__.lookup(...)`.\n     This option is currently not configurable, its value is derived from\n    the `autoboot` flag – disabling `autoboot` also implies opting-out of\n    globals mode support, although they are ultimately orthogonal concerns.\n     Some of the global modes features are already deprecated in 1.x. The\n    existence of this flag is to untangle the globals mode code paths from\n    the autoboot code paths, so that these legacy features can be reviewed\n    for deprecation/removal separately.\n     Forcing the (autoboot=true, _globalsMode=false) here and running the tests\n    would reveal all the places where we are still relying on these legacy\n    behavior internally (mostly just tests).\n     @property _globalsMode\n    @type Boolean\n    @default true\n    @private\n  */\n  _globalsMode: true,\n\n  /**\n    An array of application instances created by `buildInstance()`. Used\n    internally to ensure that all instances get destroyed.\n     @property _applicationInstances\n    @type Array\n    @default null\n    @private\n  */\n  _applicationInstances: null,\n\n  init() {\n    // eslint-disable-line no-unused-vars\n    this._super(...arguments);\n\n    if (!this.$) {\n      this.$ = jQuery;\n    }\n\n    registerLibraries();\n\n    if (DEBUG) {\n      if (ENV.LOG_VERSION) {\n        // we only need to see this once per Application#init\n        ENV.LOG_VERSION = false;\n        libraries.logVersions();\n      }\n    } // Start off the number of deferrals at 1. This will be decremented by\n    // the Application's own `boot` method.\n\n\n    this._readinessDeferrals = 1;\n    this._booted = false;\n    this._applicationInstances = new Set();\n    this.autoboot = this._globalsMode = Boolean(this.autoboot);\n\n    if (this._globalsMode) {\n      this._prepareForGlobalsMode();\n    }\n\n    if (this.autoboot) {\n      this.waitForDOMReady();\n    }\n  },\n\n  /**\n    Create an ApplicationInstance for this application.\n     @public\n    @method buildInstance\n    @return {ApplicationInstance} the application instance\n  */\n  buildInstance(options = {}) {\n    assert('You cannot build new instances of this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot build new instances of this application since it is being destroyed', !this.isDestroying);\n    options.base = this;\n    options.application = this;\n    return ApplicationInstance.create(options);\n  },\n\n  /**\n    Start tracking an ApplicationInstance for this application.\n    Used when the ApplicationInstance is created.\n     @private\n    @method _watchInstance\n  */\n  _watchInstance(instance) {\n    this._applicationInstances.add(instance);\n  },\n\n  /**\n    Stop tracking an ApplicationInstance for this application.\n    Used when the ApplicationInstance is about to be destroyed.\n     @private\n    @method _unwatchInstance\n  */\n  _unwatchInstance(instance) {\n    return this._applicationInstances.delete(instance);\n  },\n\n  /**\n    Enable the legacy globals mode by allowing this application to act\n    as a global namespace. See the docs on the `_globalsMode` property\n    for details.\n     Most of these features are already deprecated in 1.x, so we can\n    stop using them internally and try to remove them.\n     @private\n    @method _prepareForGlobalsMode\n  */\n  _prepareForGlobalsMode() {\n    // Create subclass of Router for this Application instance.\n    // This is to ensure that someone reopening `App.Router` does not\n    // tamper with the default `Router`.\n    this.Router = (this.Router || Router).extend();\n\n    this._buildDeprecatedInstance();\n  },\n\n  /*\n    Build the deprecated instance for legacy globals mode support.\n    Called when creating and resetting the application.\n     This is orthogonal to autoboot: the deprecated instance needs to\n    be created at Application construction (not boot) time to expose\n    App.__container__. If autoboot sees that this instance exists,\n    it will continue booting it to avoid doing unncessary work (as\n    opposed to building a new instance at boot time), but they are\n    otherwise unrelated.\n     @private\n    @method _buildDeprecatedInstance\n  */\n  _buildDeprecatedInstance() {\n    // Build a default instance\n    let instance = this.buildInstance(); // Legacy support for App.__container__ and other global methods\n    // on App that rely on a single, default instance.\n\n    this.__deprecatedInstance__ = instance;\n    this.__container__ = instance.__container__;\n  },\n\n  /**\n    Automatically kick-off the boot process for the application once the\n    DOM has become ready.\n     The initialization itself is scheduled on the actions queue which\n    ensures that code-loading finishes before booting.\n     If you are asynchronously loading code, you should call `deferReadiness()`\n    to defer booting, and then call `advanceReadiness()` once all of your code\n    has finished loading.\n     @private\n    @method waitForDOMReady\n  */\n  waitForDOMReady() {\n    if (this._document === null || this._document.readyState !== 'loading') {\n      schedule('actions', this, 'domReady');\n    } else {\n      let callback = () => {\n        this._document.removeEventListener('DOMContentLoaded', callback);\n\n        run(this, 'domReady');\n      };\n\n      this._document.addEventListener('DOMContentLoaded', callback);\n    }\n  },\n\n  /**\n    This is the autoboot flow:\n     1. Boot the app by calling `this.boot()`\n    2. Create an instance (or use the `__deprecatedInstance__` in globals mode)\n    3. Boot the instance by calling `instance.boot()`\n    4. Invoke the `App.ready()` callback\n    5. Kick-off routing on the instance\n     Ideally, this is all we would need to do:\n     ```javascript\n    _autoBoot() {\n      this.boot().then(() => {\n        let instance = (this._globalsMode) ? this.__deprecatedInstance__ : this.buildInstance();\n        return instance.boot();\n      }).then((instance) => {\n        App.ready();\n        instance.startRouting();\n      });\n    }\n    ```\n     Unfortunately, we cannot actually write this because we need to participate\n    in the \"synchronous\" boot process. While the code above would work fine on\n    the initial boot (i.e. DOM ready), when `App.reset()` is called, we need to\n    boot a new instance synchronously (see the documentation on `_bootSync()`\n    for details).\n     Because of this restriction, the actual logic of this method is located\n    inside `didBecomeReady()`.\n     @private\n    @method domReady\n  */\n  domReady() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    this._bootSync(); // Continues to `didBecomeReady`\n\n  },\n\n  /**\n    Use this to defer readiness until some condition is true.\n     Example:\n     ```javascript\n    import Application from '@ember/application';\n     let App = Application.create();\n     App.deferReadiness();\n     // $ is a reference to the jQuery object/function\n    import $ from 'jquery;\n     $.getJSON('/auth-token', function(token) {\n      App.token = token;\n      App.advanceReadiness();\n    });\n    ```\n     This allows you to perform asynchronous setup logic and defer\n    booting your application until the setup has finished.\n     However, if the setup requires a loading UI, it might be better\n    to use the router for this purpose.\n     @method deferReadiness\n    @public\n  */\n  deferReadiness() {\n    assert('You must call deferReadiness on an instance of Application', this instanceof Application);\n    assert('You cannot defer readiness since application has already destroyed', !this.isDestroyed);\n    assert('You cannot defer readiness since the application is being destroyed', !this.isDestroying);\n    assert('You cannot defer readiness since the `ready()` hook has already been called', this._readinessDeferrals > 0);\n    this._readinessDeferrals++;\n  },\n\n  /**\n    Call `advanceReadiness` after any asynchronous setup logic has completed.\n    Each call to `deferReadiness` must be matched by a call to `advanceReadiness`\n    or the application will never become ready and routing will not begin.\n     @method advanceReadiness\n    @see {Application#deferReadiness}\n    @public\n  */\n  advanceReadiness() {\n    assert('You must call advanceReadiness on an instance of Application', this instanceof Application);\n    assert('You cannot advance readiness since application has already destroyed', !this.isDestroyed);\n    assert('You cannot advance readiness since the application is being destroyed', !this.isDestroying);\n    assert('You cannot advance readiness since the `ready()` hook has already been called', this._readinessDeferrals > 0);\n    this._readinessDeferrals--;\n\n    if (this._readinessDeferrals === 0) {\n      once(this, this.didBecomeReady);\n    }\n  },\n\n  /**\n    Initialize the application and return a promise that resolves with the `Application`\n    object when the boot process is complete.\n     Run any application initializers and run the application load hook. These hooks may\n    choose to defer readiness. For example, an authentication hook might want to defer\n    readiness until the auth token has been retrieved.\n     By default, this method is called automatically on \"DOM ready\"; however, if autoboot\n    is disabled, this is automatically called when the first application instance is\n    created via `visit`.\n     @public\n    @method boot\n    @return {Promise<Application,Error>}\n  */\n  boot() {\n    assert('You cannot boot this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot boot this application since it is being destroyed', !this.isDestroying);\n\n    if (this._bootPromise) {\n      return this._bootPromise;\n    }\n\n    try {\n      this._bootSync();\n    } catch (_) {// Ignore the error: in the asynchronous boot path, the error is already reflected\n      // in the promise rejection\n    }\n\n    return this._bootPromise;\n  },\n\n  /**\n    Unfortunately, a lot of existing code assumes the booting process is\n    \"synchronous\". Specifically, a lot of tests assumes the last call to\n    `app.advanceReadiness()` or `app.reset()` will result in the app being\n    fully-booted when the current runloop completes.\n     We would like new code (like the `visit` API) to stop making this assumption,\n    so we created the asynchronous version above that returns a promise. But until\n    we have migrated all the code, we would have to expose this method for use\n    *internally* in places where we need to boot an app \"synchronously\".\n     @private\n  */\n  _bootSync() {\n    if (this._booted || this.isDestroying || this.isDestroyed) {\n      return;\n    } // Even though this returns synchronously, we still need to make sure the\n    // boot promise exists for book-keeping purposes: if anything went wrong in\n    // the boot process, we need to store the error as a rejection on the boot\n    // promise so that a future caller of `boot()` can tell what failed.\n\n\n    let defer = this._bootResolver = RSVP.defer();\n    this._bootPromise = defer.promise;\n\n    try {\n      this.runInitializers();\n      runLoadHooks('application', this);\n      this.advanceReadiness(); // Continues to `didBecomeReady`\n    } catch (error) {\n      // For the asynchronous boot path\n      defer.reject(error); // For the synchronous boot path\n\n      throw error;\n    }\n  },\n\n  /**\n    Reset the application. This is typically used only in tests. It cleans up\n    the application in the following order:\n     1. Deactivate existing routes\n    2. Destroy all objects in the container\n    3. Create a new application container\n    4. Re-route to the existing url\n     Typical Example:\n     ```javascript\n    import Application from '@ember/application';\n    let App;\n     run(function() {\n      App = Application.create();\n    });\n     module('acceptance test', {\n      setup: function() {\n        App.reset();\n      }\n    });\n     test('first test', function() {\n      // App is freshly reset\n    });\n     test('second test', function() {\n      // App is again freshly reset\n    });\n    ```\n     Advanced Example:\n     Occasionally you may want to prevent the app from initializing during\n    setup. This could enable extra configuration, or enable asserting prior\n    to the app becoming ready.\n     ```javascript\n    import Application from '@ember/application';\n    let App;\n     run(function() {\n      App = Application.create();\n    });\n     module('acceptance test', {\n      setup: function() {\n        run(function() {\n          App.reset();\n          App.deferReadiness();\n        });\n      }\n    });\n     test('first test', function() {\n      ok(true, 'something before app is initialized');\n       run(function() {\n        App.advanceReadiness();\n      });\n       ok(true, 'something after app is initialized');\n    });\n    ```\n     @method reset\n    @public\n  */\n  reset() {\n    assert('You cannot reset this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot reset this application since it is being destroyed', !this.isDestroying);\n    assert(`Calling reset() on instances of \\`Application\\` is not\n            supported when globals mode is disabled; call \\`visit()\\` to\n            create new \\`ApplicationInstance\\`s and dispose them\n            via their \\`destroy()\\` method instead.`, this._globalsMode && this.autoboot);\n    let instance = this.__deprecatedInstance__;\n    this._readinessDeferrals = 1;\n    this._bootPromise = null;\n    this._bootResolver = null;\n    this._booted = false;\n\n    function handleReset() {\n      run(instance, 'destroy');\n\n      this._buildDeprecatedInstance();\n\n      schedule('actions', this, '_bootSync');\n    }\n\n    join(this, handleReset);\n  },\n\n  /**\n    @private\n    @method didBecomeReady\n  */\n  didBecomeReady() {\n    if (this.isDestroying || this.isDestroyed) {\n      return;\n    }\n\n    try {\n      // TODO: Is this still needed for _globalsMode = false?\n      if (!isTesting()) {\n        // Eagerly name all classes that are already loaded\n        processAllNamespaces();\n        setNamespaceSearchDisabled(true);\n      } // See documentation on `_autoboot()` for details\n\n\n      if (this.autoboot) {\n        let instance;\n\n        if (this._globalsMode) {\n          // If we already have the __deprecatedInstance__ lying around, boot it to\n          // avoid unnecessary work\n          instance = this.__deprecatedInstance__;\n        } else {\n          // Otherwise, build an instance and boot it. This is currently unreachable,\n          // because we forced _globalsMode to === autoboot; but having this branch\n          // allows us to locally toggle that flag for weeding out legacy globals mode\n          // dependencies independently\n          instance = this.buildInstance();\n        }\n\n        instance._bootSync(); // TODO: App.ready() is not called when autoboot is disabled, is this correct?\n\n\n        this.ready();\n        instance.startRouting();\n      } // For the asynchronous boot path\n\n\n      this._bootResolver.resolve(this); // For the synchronous boot path\n\n\n      this._booted = true;\n    } catch (error) {\n      // For the asynchronous boot path\n      this._bootResolver.reject(error); // For the synchronous boot path\n\n\n      throw error;\n    }\n  },\n\n  /**\n    Called when the Application has become ready, immediately before routing\n    begins. The call will be delayed until the DOM has become ready.\n     @event ready\n    @public\n  */\n  ready() {\n    return this;\n  },\n\n  // This method must be moved to the application instance object\n  willDestroy() {\n    this._super(...arguments);\n\n    setNamespaceSearchDisabled(false);\n\n    if (_loaded.application === this) {\n      _loaded.application = undefined;\n    }\n\n    if (this._applicationInstances.size) {\n      this._applicationInstances.forEach(i => i.destroy());\n\n      this._applicationInstances.clear();\n    }\n  },\n\n  /**\n    Boot a new instance of `ApplicationInstance` for the current\n    application and navigate it to the given `url`. Returns a `Promise` that\n    resolves with the instance when the initial routing and rendering is\n    complete, or rejects with any error that occurred during the boot process.\n     When `autoboot` is disabled, calling `visit` would first cause the\n    application to boot, which runs the application initializers.\n     This method also takes a hash of boot-time configuration options for\n    customizing the instance's behavior. See the documentation on\n    `ApplicationInstance.BootOptions` for details.\n     `ApplicationInstance.BootOptions` is an interface class that exists\n    purely to document the available options; you do not need to construct it\n    manually. Simply pass a regular JavaScript object containing of the\n    desired options:\n     ```javascript\n    MyApp.visit(\"/\", { location: \"none\", rootElement: \"#container\" });\n    ```\n     ### Supported Scenarios\n     While the `BootOptions` class exposes a large number of knobs, not all\n    combinations of them are valid; certain incompatible combinations might\n    result in unexpected behavior.\n     For example, booting the instance in the full browser environment\n    while specifying a foreign `document` object (e.g. `{ isBrowser: true,\n    document: iframe.contentDocument }`) does not work correctly today,\n    largely due to Ember's jQuery dependency.\n     Currently, there are three officially supported scenarios/configurations.\n    Usages outside of these scenarios are not guaranteed to work, but please\n    feel free to file bug reports documenting your experience and any issues\n    you encountered to help expand support.\n     #### Browser Applications (Manual Boot)\n     The setup is largely similar to how Ember works out-of-the-box. Normally,\n    Ember will boot a default instance for your Application on \"DOM ready\".\n    However, you can customize this behavior by disabling `autoboot`.\n     For example, this allows you to render a miniture demo of your application\n    into a specific area on your marketing website:\n     ```javascript\n    import MyApp from 'my-app';\n     $(function() {\n      let App = MyApp.create({ autoboot: false });\n       let options = {\n        // Override the router's location adapter to prevent it from updating\n        // the URL in the address bar\n        location: 'none',\n         // Override the default `rootElement` on the app to render into a\n        // specific `div` on the page\n        rootElement: '#demo'\n      };\n       // Start the app at the special demo URL\n      App.visit('/demo', options);\n    });\n    ```\n     Or perhaps you might want to boot two instances of your app on the same\n    page for a split-screen multiplayer experience:\n     ```javascript\n    import MyApp from 'my-app';\n     $(function() {\n      let App = MyApp.create({ autoboot: false });\n       let sessionId = MyApp.generateSessionID();\n       let player1 = App.visit(`/matches/join?name=Player+1&session=${sessionId}`, { rootElement: '#left', location: 'none' });\n      let player2 = App.visit(`/matches/join?name=Player+2&session=${sessionId}`, { rootElement: '#right', location: 'none' });\n       Promise.all([player1, player2]).then(() => {\n        // Both apps have completed the initial render\n        $('#loading').fadeOut();\n      });\n    });\n    ```\n     Do note that each app instance maintains their own registry/container, so\n    they will run in complete isolation by default.\n     #### Server-Side Rendering (also known as FastBoot)\n     This setup allows you to run your Ember app in a server environment using\n    Node.js and render its content into static HTML for SEO purposes.\n     ```javascript\n    const HTMLSerializer = new SimpleDOM.HTMLSerializer(SimpleDOM.voidMap);\n     function renderURL(url) {\n      let dom = new SimpleDOM.Document();\n      let rootElement = dom.body;\n      let options = { isBrowser: false, document: dom, rootElement: rootElement };\n       return MyApp.visit(options).then(instance => {\n        try {\n          return HTMLSerializer.serialize(rootElement.firstChild);\n        } finally {\n          instance.destroy();\n        }\n      });\n    }\n    ```\n     In this scenario, because Ember does not have access to a global `document`\n    object in the Node.js environment, you must provide one explicitly. In practice,\n    in the non-browser environment, the stand-in `document` object only needs to\n    implement a limited subset of the full DOM API. The `SimpleDOM` library is known\n    to work.\n     Since there is no access to jQuery in the non-browser environment, you must also\n    specify a DOM `Element` object in the same `document` for the `rootElement` option\n    (as opposed to a selector string like `\"body\"`).\n     See the documentation on the `isBrowser`, `document` and `rootElement` properties\n    on `ApplicationInstance.BootOptions` for details.\n     #### Server-Side Resource Discovery\n     This setup allows you to run the routing layer of your Ember app in a server\n    environment using Node.js and completely disable rendering. This allows you\n    to simulate and discover the resources (i.e. AJAX requests) needed to fulfill\n    a given request and eagerly \"push\" these resources to the client.\n     ```app/initializers/network-service.js\n    import BrowserNetworkService from 'app/services/network/browser';\n    import NodeNetworkService from 'app/services/network/node';\n     // Inject a (hypothetical) service for abstracting all AJAX calls and use\n    // the appropriate implementation on the client/server. This also allows the\n    // server to log all the AJAX calls made during a particular request and use\n    // that for resource-discovery purpose.\n     export function initialize(application) {\n      if (window) { // browser\n        application.register('service:network', BrowserNetworkService);\n      } else { // node\n        application.register('service:network', NodeNetworkService);\n      }\n       application.inject('route', 'network', 'service:network');\n    };\n     export default {\n      name: 'network-service',\n      initialize: initialize\n    };\n    ```\n     ```app/routes/post.js\n    import Route from '@ember/routing/route';\n     // An example of how the (hypothetical) service is used in routes.\n     export default Route.extend({\n      model(params) {\n        return this.network.fetch(`/api/posts/${params.post_id}.json`);\n      },\n       afterModel(post) {\n        if (post.isExternalContent) {\n          return this.network.fetch(`/api/external/?url=${post.externalURL}`);\n        } else {\n          return post;\n        }\n      }\n    });\n    ```\n     ```javascript\n    // Finally, put all the pieces together\n     function discoverResourcesFor(url) {\n      return MyApp.visit(url, { isBrowser: false, shouldRender: false }).then(instance => {\n        let networkService = instance.lookup('service:network');\n        return networkService.requests; // => { \"/api/posts/123.json\": \"...\" }\n      });\n    }\n    ```\n     @public\n    @method visit\n    @param url {String} The initial URL to navigate to\n    @param options {ApplicationInstance.BootOptions}\n    @return {Promise<ApplicationInstance, Error>}\n  */\n  visit(url, options) {\n    assert('You cannot visit this application since it has already been destroyed', !this.isDestroyed);\n    assert('You cannot visit this application since it is being destroyed', !this.isDestroying);\n    return this.boot().then(() => {\n      let instance = this.buildInstance();\n      return instance.boot(options).then(() => instance.visit(url)).catch(error => {\n        run(instance, 'destroy');\n        throw error;\n      });\n    });\n  }\n\n});\nApplication.reopenClass({\n  /**\n    This creates a registry with the default Ember naming conventions.\n     It also configures the registry:\n     * registered views are created every time they are looked up (they are\n      not singletons)\n    * registered templates are not factories; the registered value is\n      returned directly.\n    * the router receives the application as its `namespace` property\n    * all controllers receive the router as their `target` and `controllers`\n      properties\n    * all controllers receive the application as their `namespace` property\n    * the application view receives the application controller as its\n      `controller` property\n    * the application view receives the application template as its\n      `defaultTemplate` property\n     @method buildRegistry\n    @static\n    @param {Application} namespace the application for which to\n      build the registry\n    @return {Ember.Registry} the built registry\n    @private\n  */\n  buildRegistry() {\n    // eslint-disable-line no-unused-vars\n    let registry = this._super(...arguments);\n\n    commonSetupRegistry(registry);\n    setupApplicationRegistry(registry);\n    return registry;\n  }\n\n});\n\nfunction commonSetupRegistry(registry) {\n  registry.register('router:main', Router);\n  registry.register('-view-registry:main', {\n    create() {\n      return dictionary(null);\n    }\n\n  });\n  registry.register('route:basic', Route);\n  registry.register('event_dispatcher:main', EventDispatcher);\n  registry.injection('router:main', 'namespace', 'application:main');\n  registry.register('location:auto', AutoLocation);\n  registry.register('location:hash', HashLocation);\n  registry.register('location:history', HistoryLocation);\n  registry.register('location:none', NoneLocation);\n  registry.register(P`-bucket-cache:main`, {\n    create() {\n      return new BucketCache();\n    }\n\n  });\n  registry.register('service:router', RouterService);\n}\n\nfunction registerLibraries() {\n  if (!librariesRegistered) {\n    librariesRegistered = true;\n\n    if (JQUERY_INTEGRATION && hasDOM && !jQueryDisabled) {\n      libraries.registerCoreLibrary('jQuery', jQuery().jquery);\n    }\n  }\n}\n\nexport default Application;","/*globals CustomEvent */\nimport { ENV } from '@ember/-internals/environment';\nimport { window } from '@ember/-internals/browser-environment';\n/**\n  @module @ember/application\n*/\n\nconst loadHooks = ENV.EMBER_LOAD_HOOKS || {};\nconst loaded = {};\nexport let _loaded = loaded;\n/**\n  Detects when a specific package of Ember (e.g. 'Application')\n  has fully loaded and is available for extension.\n\n  The provided `callback` will be called with the `name` passed\n  resolved from a string into the object:\n\n  ``` javascript\n  import { onLoad } from '@ember/application';\n\n  onLoad('Ember.Application' function(hbars) {\n    hbars.registerHelper(...);\n  });\n  ```\n\n  @method onLoad\n  @static\n  @for @ember/application\n  @param name {String} name of hook\n  @param callback {Function} callback to be called\n  @private\n*/\n\nexport function onLoad(name, callback) {\n  let object = loaded[name];\n  loadHooks[name] = loadHooks[name] || [];\n  loadHooks[name].push(callback);\n\n  if (object) {\n    callback(object);\n  }\n}\n/**\n  Called when an Ember.js package (e.g Application) has finished\n  loading. Triggers any callbacks registered for this event.\n\n  @method runLoadHooks\n  @static\n  @for @ember/application\n  @param name {String} name of hook\n  @param object {Object} object to pass to callbacks\n  @private\n*/\n\nexport function runLoadHooks(name, object) {\n  loaded[name] = object;\n\n  if (window && typeof CustomEvent === 'function') {\n    let event = new CustomEvent(name, {\n      detail: object,\n      name\n    });\n    window.dispatchEvent(event);\n  }\n\n  if (loadHooks[name]) {\n    loadHooks[name].forEach(callback => callback(object));\n  }\n}","import { ENV } from '@ember/-internals/environment';\nimport { assign } from '@ember/polyfills';\n/**\n  Set `EmberENV.FEATURES` in your application's `config/environment.js` file\n  to enable canary features in your application.\n\n  See the [feature flag guide](https://guides.emberjs.com/release/configuring-ember/feature-flags/)\n  for more details.\n\n  @module @ember/canary-features\n  @public\n*/\n\nexport const DEFAULT_FEATURES = {\n  EMBER_LIBRARIES_ISREGISTERED: false,\n  EMBER_IMPROVED_INSTRUMENTATION: false,\n  EMBER_NAMED_BLOCKS: false,\n  EMBER_GLIMMER_HELPER_MANAGER: true,\n  EMBER_GLIMMER_INVOKE_HELPER: true,\n  EMBER_MODERNIZED_BUILT_IN_COMPONENTS: false\n};\n/**\n  The hash of enabled Canary features. Add to this, any canary features\n  before creating your application.\n\n  @class FEATURES\n  @static\n  @since 1.1.0\n  @public\n*/\n\nexport const FEATURES = assign(DEFAULT_FEATURES, ENV.FEATURES);\n/**\n  Determine whether the specified `feature` is enabled. Used by Ember's\n  build tools to exclude experimental features from beta/stable builds.\n\n  You can define the following configuration options:\n\n  * `EmberENV.ENABLE_OPTIONAL_FEATURES` - enable any features that have not been explicitly\n    enabled/disabled.\n\n  @method isEnabled\n  @param {String} feature The feature to check\n  @return {Boolean}\n  @since 1.1.0\n  @public\n*/\n\nexport function isEnabled(feature) {\n  let value = FEATURES[feature];\n\n  if (value === true || value === false) {\n    return value;\n  } else if (ENV.ENABLE_OPTIONAL_FEATURES) {\n    return true;\n  } else {\n    return false;\n  }\n}\n\nfunction featureValue(value) {\n  if (ENV.ENABLE_OPTIONAL_FEATURES && value === null) {\n    return true;\n  }\n\n  return value;\n}\n\nexport const EMBER_LIBRARIES_ISREGISTERED = featureValue(FEATURES.EMBER_LIBRARIES_ISREGISTERED);\nexport const EMBER_IMPROVED_INSTRUMENTATION = featureValue(FEATURES.EMBER_IMPROVED_INSTRUMENTATION);\nexport const EMBER_NAMED_BLOCKS = featureValue(FEATURES.EMBER_NAMED_BLOCKS);\nexport const EMBER_GLIMMER_HELPER_MANAGER = featureValue(FEATURES.EMBER_GLIMMER_HELPER_MANAGER);\nexport const EMBER_GLIMMER_INVOKE_HELPER = featureValue(FEATURES.EMBER_GLIMMER_INVOKE_HELPER);\nexport const EMBER_MODERNIZED_BUILT_IN_COMPONENTS = featureValue(FEATURES.EMBER_MODERNIZED_BUILT_IN_COMPONENTS);","export { Component } from '@ember/-internals/glimmer';","// This is only exported for types, don't use this class directly\nexport class TemplateOnlyComponent {\n  constructor(moduleName = '@ember/component/template-only') {\n    this.moduleName = moduleName;\n  }\n\n  toString() {\n    return this.moduleName;\n  }\n\n}\n/**\n  @module @ember/component/template-only\n  @public\n*/\n\n/**\n  This utility function is used to declare a given component has no backing class. When the rendering engine detects this it\n  is able to perform a number of optimizations. Templates that are associated with `templateOnly()` will be rendered _as is_\n  without adding a wrapping `<div>` (or any of the other element customization behaviors of [@ember/component](/ember/release/classes/Component)).\n  Specifically, this means that the template will be rendered as \"outer HTML\".\n\n  In general, this method will be used by build time tooling and would not be directly written in an application. However,\n  at times it may be useful to use directly to leverage the \"outer HTML\" semantics mentioned above. For example, if an addon would like\n  to use these semantics for its templates but cannot be certain it will only be consumed by applications that have enabled the\n  `template-only-glimmer-components` optional feature.\n\n  @example\n\n  ```js\n  import templateOnly from '@ember/component/template-only';\n\n  export default templateOnly();\n  ```\n\n  @public\n  @method templateOnly\n  @param {String} moduleName the module name that the template only component represents, this will be used for debugging purposes\n  @category EMBER_GLIMMER_SET_COMPONENT_TEMPLATE\n*/\n\nexport default function templateOnlyComponent(moduleName) {\n  return new TemplateOnlyComponent(moduleName);\n}\nexport function isTemplateOnlyComponent(component) {\n  return component instanceof TemplateOnlyComponent;\n}","import { FrameworkObject } from '@ember/-internals/runtime';\nimport { inject as metalInject } from '@ember/-internals/metal';\nimport ControllerMixin from './lib/controller_mixin';\n/**\n@module @ember/controller\n*/\n\n/**\n  @class Controller\n  @extends EmberObject\n  @uses Ember.ControllerMixin\n  @public\n*/\n\nconst Controller = FrameworkObject.extend(ControllerMixin);\n/**\n  Creates a property that lazily looks up another controller in the container.\n  Can only be used when defining another controller.\n\n  Example:\n\n  ```app/controllers/post.js\n  import Controller, {\n    inject as controller\n  } from '@ember/controller';\n\n  export default class PostController extends Controller {\n    @controller posts;\n  }\n  ```\n\n  Classic Class Example:\n\n  ```app/controllers/post.js\n  import Controller, {\n    inject as controller\n  } from '@ember/controller';\n\n  export default Controller.extend({\n    posts: controller()\n  });\n  ```\n\n  This example will create a `posts` property on the `post` controller that\n  looks up the `posts` controller in the container, making it easy to reference\n  other controllers.\n\n  @method inject\n  @static\n  @for @ember/controller\n  @since 1.10.0\n  @param {String} name (optional) name of the controller to inject, defaults to\n         the property's name\n  @return {ComputedDecorator} injection decorator instance\n  @public\n*/\n\nexport function inject() {\n  return metalInject('controller', ...arguments);\n}\nexport default Controller;","import { Mixin, computed } from '@ember/-internals/metal';\nimport { ActionHandler } from '@ember/-internals/runtime';\nimport { symbol } from '@ember/-internals/utils';\nconst MODEL = symbol('MODEL');\n/**\n@module ember\n*/\n\n/**\n  @class ControllerMixin\n  @namespace Ember\n  @uses Ember.ActionHandler\n  @private\n*/\n\nexport default Mixin.create(ActionHandler, {\n  /* ducktype as a controller */\n  isController: true,\n\n  /**\n    The object to which actions from the view should be sent.\n     For example, when a Handlebars template uses the `{{action}}` helper,\n    it will attempt to send the action to the view's controller's `target`.\n     By default, the value of the target property is set to the router, and\n    is injected when a controller is instantiated. This injection is applied\n    as part of the application's initialization process. In most cases the\n    `target` property will automatically be set to the logical consumer of\n    actions for the controller.\n     @property target\n    @default null\n    @public\n  */\n  target: null,\n  store: null,\n\n  /**\n    The controller's current model. When retrieving or modifying a controller's\n    model, this property should be used instead of the `content` property.\n     @property model\n    @public\n  */\n  model: computed({\n    get() {\n      return this[MODEL];\n    },\n\n    set(key, value) {\n      return this[MODEL] = value;\n    }\n\n  })\n});","import { isChrome, isFirefox } from '@ember/-internals/browser-environment';\nimport EmberError from '@ember/error';\nimport { DEBUG } from '@glimmer/env';\nimport _deprecate from './lib/deprecate';\nimport { isTesting } from './lib/testing';\nimport _warn from './lib/warn';\nexport { registerHandler as registerWarnHandler } from './lib/warn';\nexport { registerHandler as registerDeprecationHandler } from './lib/deprecate';\nexport { isTesting, setTesting } from './lib/testing';\nexport { default as captureRenderTree } from './lib/capture-render-tree'; // These are the default production build versions:\n\nconst noop = () => {};\n\nlet assert = noop;\nlet info = noop;\nlet warn = noop;\nlet debug = noop;\nlet deprecate = noop;\nlet debugSeal = noop;\nlet debugFreeze = noop;\nlet runInDebug = noop;\nlet setDebugFunction = noop;\nlet getDebugFunction = noop;\n\nlet deprecateFunc = function () {\n  return arguments[arguments.length - 1];\n};\n\nif (DEBUG) {\n  setDebugFunction = function (type, callback) {\n    switch (type) {\n      case 'assert':\n        return assert = callback;\n\n      case 'info':\n        return info = callback;\n\n      case 'warn':\n        return warn = callback;\n\n      case 'debug':\n        return debug = callback;\n\n      case 'deprecate':\n        return deprecate = callback;\n\n      case 'debugSeal':\n        return debugSeal = callback;\n\n      case 'debugFreeze':\n        return debugFreeze = callback;\n\n      case 'runInDebug':\n        return runInDebug = callback;\n\n      case 'deprecateFunc':\n        return deprecateFunc = callback;\n    }\n  };\n\n  getDebugFunction = function (type) {\n    switch (type) {\n      case 'assert':\n        return assert;\n\n      case 'info':\n        return info;\n\n      case 'warn':\n        return warn;\n\n      case 'debug':\n        return debug;\n\n      case 'deprecate':\n        return deprecate;\n\n      case 'debugSeal':\n        return debugSeal;\n\n      case 'debugFreeze':\n        return debugFreeze;\n\n      case 'runInDebug':\n        return runInDebug;\n\n      case 'deprecateFunc':\n        return deprecateFunc;\n    }\n  };\n}\n/**\n@module @ember/debug\n*/\n\n\nif (DEBUG) {\n  /**\n    Verify that a certain expectation is met, or throw a exception otherwise.\n       This is useful for communicating assumptions in the code to other human\n    readers as well as catching bugs that accidentally violates these\n    expectations.\n       Assertions are removed from production builds, so they can be freely added\n    for documentation and debugging purposes without worries of incuring any\n    performance penalty. However, because of that, they should not be used for\n    checks that could reasonably fail during normal usage. Furthermore, care\n    should be taken to avoid accidentally relying on side-effects produced from\n    evaluating the condition itself, since the code will not run in production.\n       ```javascript\n    import { assert } from '@ember/debug';\n       // Test for truthiness\n    assert('Must pass a string', typeof str === 'string');\n       // Fail unconditionally\n    assert('This code path should never be run');\n    ```\n       @method assert\n    @static\n    @for @ember/debug\n    @param {String} description Describes the expectation. This will become the\n      text of the Error thrown if the assertion fails.\n    @param {any} condition Must be truthy for the assertion to pass. If\n      falsy, an exception will be thrown.\n    @public\n    @since 1.0.0\n  */\n  setDebugFunction('assert', function assert(desc, test) {\n    if (!test) {\n      throw new EmberError(`Assertion Failed: ${desc}`);\n    }\n  });\n  /**\n    Display a debug notice.\n       Calls to this function are not invoked in production builds.\n       ```javascript\n    import { debug } from '@ember/debug';\n       debug('I\\'m a debug notice!');\n    ```\n       @method debug\n    @for @ember/debug\n    @static\n    @param {String} message A debug message to display.\n    @public\n  */\n\n  setDebugFunction('debug', function debug(message) {\n    /* eslint-disable no-console */\n    if (console.debug) {\n      console.debug(`DEBUG: ${message}`);\n    } else {\n      console.log(`DEBUG: ${message}`);\n    }\n    /* eslint-ensable no-console */\n\n  });\n  /**\n    Display an info notice.\n       Calls to this function are removed from production builds, so they can be\n    freely added for documentation and debugging purposes without worries of\n    incuring any performance penalty.\n       @method info\n    @private\n  */\n\n  setDebugFunction('info', function info() {\n    console.info(...arguments);\n    /* eslint-disable-line no-console */\n  });\n  /**\n   @module @ember/debug\n   @public\n  */\n\n  /**\n    Alias an old, deprecated method with its new counterpart.\n       Display a deprecation warning with the provided message and a stack trace\n    (Chrome and Firefox only) when the assigned method is called.\n       Calls to this function are removed from production builds, so they can be\n    freely added for documentation and debugging purposes without worries of\n    incuring any performance penalty.\n       ```javascript\n    import { deprecateFunc } from '@ember/debug';\n       Ember.oldMethod = deprecateFunc('Please use the new, updated method', options, Ember.newMethod);\n    ```\n       @method deprecateFunc\n    @static\n    @for @ember/debug\n    @param {String} message A description of the deprecation.\n    @param {Object} [options] The options object for `deprecate`.\n    @param {Function} func The new function called to replace its deprecated counterpart.\n    @return {Function} A new function that wraps the original function with a deprecation warning\n    @private\n  */\n\n  setDebugFunction('deprecateFunc', function deprecateFunc(...args) {\n    if (args.length === 3) {\n      let [message, options, func] = args;\n      return function (...args) {\n        deprecate(message, false, options);\n        return func.apply(this, args);\n      };\n    } else {\n      let [message, func] = args;\n      return function () {\n        deprecate(message);\n        return func.apply(this, arguments);\n      };\n    }\n  });\n  /**\n   @module @ember/debug\n   @public\n  */\n\n  /**\n    Run a function meant for debugging.\n       Calls to this function are removed from production builds, so they can be\n    freely added for documentation and debugging purposes without worries of\n    incuring any performance penalty.\n       ```javascript\n    import Component from '@ember/component';\n    import { runInDebug } from '@ember/debug';\n       runInDebug(() => {\n      Component.reopen({\n        didInsertElement() {\n          console.log(\"I'm happy\");\n        }\n      });\n    });\n    ```\n       @method runInDebug\n    @for @ember/debug\n    @static\n    @param {Function} func The function to be executed.\n    @since 1.5.0\n    @public\n  */\n\n  setDebugFunction('runInDebug', function runInDebug(func) {\n    func();\n  });\n  setDebugFunction('debugSeal', function debugSeal(obj) {\n    Object.seal(obj);\n  });\n  setDebugFunction('debugFreeze', function debugFreeze(obj) {\n    // re-freezing an already frozen object introduces a significant\n    // performance penalty on Chrome (tested through 59).\n    //\n    // See: https://bugs.chromium.org/p/v8/issues/detail?id=6450\n    if (!Object.isFrozen(obj)) {\n      Object.freeze(obj);\n    }\n  });\n  setDebugFunction('deprecate', _deprecate);\n  setDebugFunction('warn', _warn);\n}\n\nlet _warnIfUsingStrippedFeatureFlags;\n\nif (DEBUG && !isTesting()) {\n  if (typeof window !== 'undefined' && (isFirefox || isChrome) && window.addEventListener) {\n    window.addEventListener('load', () => {\n      if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) {\n        let downloadURL;\n\n        if (isChrome) {\n          downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi';\n        } else if (isFirefox) {\n          downloadURL = 'https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/';\n        }\n\n        debug(`For more advanced debugging, install the Ember Inspector from ${downloadURL}`);\n      }\n    }, false);\n  }\n}\n\nexport { assert, info, warn, debug, deprecate, debugSeal, debugFreeze, runInDebug, deprecateFunc, setDebugFunction, getDebugFunction, _warnIfUsingStrippedFeatureFlags };","import { expect } from '@glimmer/util';\n/**\n  @module @ember/debug\n*/\n\n/**\n  Ember Inspector calls this function to capture the current render tree.\n\n  In production mode, this requires turning on `ENV._DEBUG_RENDER_TREE`\n  before loading Ember.\n\n  @private\n  @static\n  @method captureRenderTree\n  @for @ember/debug\n  @param app {ApplicationInstance} An `ApplicationInstance`.\n  @since 3.14.0\n*/\n\nexport default function captureRenderTree(app) {\n  let env = expect(app.lookup('-environment:main'), 'BUG: owner is missing -environment:main');\n  let rendererType = env.isInteractive ? 'renderer:-dom' : 'renderer:-inert';\n  let renderer = expect(app.lookup(rendererType), `BUG: owner is missing ${rendererType}`);\n  return renderer.debugRenderTree.capture();\n}","import { ENV } from '@ember/-internals/environment';\nimport { DEBUG } from '@glimmer/env';\nimport { assert } from '../index';\nimport { invoke, registerHandler as genericRegisterHandler } from './handlers';\n/**\n @module @ember/debug\n @public\n*/\n\n/**\n  Allows for runtime registration of handler functions that override the default deprecation behavior.\n  Deprecations are invoked by calls to [@ember/debug/deprecate](/ember/release/classes/@ember%2Fdebug/methods/deprecate?anchor=deprecate).\n  The following example demonstrates its usage by registering a handler that throws an error if the\n  message contains the word \"should\", otherwise defers to the default handler.\n\n  ```javascript\n  import { registerDeprecationHandler } from '@ember/debug';\n\n  registerDeprecationHandler((message, options, next) => {\n    if (message.indexOf('should') !== -1) {\n      throw new Error(`Deprecation message with should: ${message}`);\n    } else {\n      // defer to whatever handler was registered before this one\n      next(message, options);\n    }\n  });\n  ```\n\n  The handler function takes the following arguments:\n\n  <ul>\n    <li> <code>message</code> - The message received from the deprecation call.</li>\n    <li> <code>options</code> - An object passed in with the deprecation call containing additional information including:</li>\n      <ul>\n        <li> <code>id</code> - An id of the deprecation in the form of <code>package-name.specific-deprecation</code>.</li>\n        <li> <code>until</code> - The Ember version number the feature and deprecation will be removed in.</li>\n      </ul>\n    <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n  </ul>\n\n  @public\n  @static\n  @method registerDeprecationHandler\n  @for @ember/debug\n  @param handler {Function} A function to handle deprecation calls.\n  @since 2.1.0\n*/\n\nlet registerHandler = () => {};\n\nlet missingOptionsDeprecation;\nlet missingOptionsIdDeprecation;\nlet missingOptionsUntilDeprecation;\n\nlet missingOptionsForDeprecation = () => '';\n\nlet missingOptionsSinceDeprecation = () => '';\n\nlet deprecate = () => {};\n\nlet FOR_MISSING_DEPRECATIONS = new Set();\nlet SINCE_MISSING_DEPRECATIONS = new Set();\n\nif (DEBUG) {\n  registerHandler = function registerHandler(handler) {\n    genericRegisterHandler('deprecate', handler);\n  };\n\n  let formatMessage = function formatMessage(_message, options) {\n    let message = _message;\n\n    if (options && options.id) {\n      message = message + ` [deprecation id: ${options.id}]`;\n    }\n\n    if (options && options.url) {\n      message += ` See ${options.url} for more details.`;\n    }\n\n    return message;\n  };\n\n  registerHandler(function logDeprecationToConsole(message, options) {\n    let updatedMessage = formatMessage(message, options);\n    console.warn(`DEPRECATION: ${updatedMessage}`); // eslint-disable-line no-console\n  });\n  let captureErrorForStack;\n\n  if (new Error().stack) {\n    captureErrorForStack = () => new Error();\n  } else {\n    captureErrorForStack = () => {\n      try {\n        __fail__.fail();\n      } catch (e) {\n        return e;\n      }\n    };\n  }\n\n  registerHandler(function logDeprecationStackTrace(message, options, next) {\n    if (ENV.LOG_STACKTRACE_ON_DEPRECATION) {\n      let stackStr = '';\n      let error = captureErrorForStack();\n      let stack;\n\n      if (error.stack) {\n        if (error['arguments']) {\n          // Chrome\n          stack = error.stack.replace(/^\\s+at\\s+/gm, '').replace(/^([^(]+?)([\\n$])/gm, '{anonymous}($1)$2').replace(/^Object.<anonymous>\\s*\\(([^)]+)\\)/gm, '{anonymous}($1)').split('\\n');\n          stack.shift();\n        } else {\n          // Firefox\n          stack = error.stack.replace(/(?:\\n@:0)?\\s+$/m, '').replace(/^\\(/gm, '{anonymous}(').split('\\n');\n        }\n\n        stackStr = `\\n    ${stack.slice(2).join('\\n    ')}`;\n      }\n\n      let updatedMessage = formatMessage(message, options);\n      console.warn(`DEPRECATION: ${updatedMessage}${stackStr}`); // eslint-disable-line no-console\n    } else {\n      next(message, options);\n    }\n  });\n  registerHandler(function raiseOnDeprecation(message, options, next) {\n    if (ENV.RAISE_ON_DEPRECATION) {\n      let updatedMessage = formatMessage(message);\n      throw new Error(updatedMessage);\n    } else {\n      next(message, options);\n    }\n  });\n  missingOptionsDeprecation = 'When calling `deprecate` you ' + 'must provide an `options` hash as the third parameter.  ' + '`options` should include `id` and `until` properties.';\n  missingOptionsIdDeprecation = 'When calling `deprecate` you must provide `id` in options.';\n  missingOptionsUntilDeprecation = 'When calling `deprecate` you must provide `until` in options.';\n\n  missingOptionsForDeprecation = id => {\n    return `When calling \\`deprecate\\` you must provide \\`for\\` in options. Missing options.for in \"${id}\" deprecation`;\n  };\n\n  missingOptionsSinceDeprecation = id => {\n    return `When calling \\`deprecate\\` you must provide \\`since\\` in options. Missing options.since in \"${id}\" deprecation`;\n  };\n  /**\n   @module @ember/debug\n   @public\n   */\n\n  /**\n    Display a deprecation warning with the provided message and a stack trace\n    (Chrome and Firefox only).\n       * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n       @method deprecate\n    @for @ember/debug\n    @param {String} message A description of the deprecation.\n    @param {Boolean} test A boolean. If falsy, the deprecation will be displayed.\n    @param {Object} options\n    @param {String} options.id A unique id for this deprecation. The id can be\n      used by Ember debugging tools to change the behavior (raise, log or silence)\n      for that specific deprecation. The id should be namespaced by dots, e.g.\n      \"view.helper.select\".\n    @param {string} options.until The version of Ember when this deprecation\n      warning will be removed.\n    @param {String} options.for A namespace for the deprecation, usually the package name\n    @param {Object} options.since Describes when the deprecation became available and enabled.\n    @param {String} [options.url] An optional url to the transition guide on the\n          emberjs.com website.\n    @static\n    @public\n    @since 1.0.0\n  */\n\n\n  deprecate = function deprecate(message, test, options) {\n    assert(missingOptionsDeprecation, Boolean(options && (options.id || options.until)));\n    assert(missingOptionsIdDeprecation, Boolean(options.id));\n    assert(missingOptionsUntilDeprecation, Boolean(options.until));\n\n    if (!options.for && !FOR_MISSING_DEPRECATIONS.has(options.id)) {\n      FOR_MISSING_DEPRECATIONS.add(options.id);\n      deprecate(missingOptionsForDeprecation(options.id), Boolean(options.for), {\n        id: 'ember-source.deprecation-without-for',\n        until: '4.0.0',\n        for: 'ember-source',\n        since: {\n          available: '3.24.0'\n        }\n      });\n    }\n\n    if (!options.since && !SINCE_MISSING_DEPRECATIONS.has(options.id)) {\n      SINCE_MISSING_DEPRECATIONS.add(options.id);\n      deprecate(missingOptionsSinceDeprecation(options.id), Boolean(options.since), {\n        id: 'ember-source.deprecation-without-since',\n        until: '4.0.0',\n        for: 'ember-source',\n        since: {\n          available: '3.24.0'\n        }\n      });\n    }\n\n    invoke('deprecate', message, test, options);\n  };\n}\n\nexport default deprecate;\nexport { registerHandler, missingOptionsDeprecation, missingOptionsIdDeprecation, missingOptionsUntilDeprecation, missingOptionsForDeprecation, missingOptionsSinceDeprecation, FOR_MISSING_DEPRECATIONS, SINCE_MISSING_DEPRECATIONS };","import { DEBUG } from '@glimmer/env';\nexport let HANDLERS = {};\n\nlet registerHandler = () => {};\n\nlet invoke = () => {};\n\nif (DEBUG) {\n  registerHandler = function registerHandler(type, callback) {\n    let nextHandler = HANDLERS[type] || (() => {});\n\n    HANDLERS[type] = (message, options) => {\n      callback(message, options, nextHandler);\n    };\n  };\n\n  invoke = function invoke(type, message, test, options) {\n    if (test) {\n      return;\n    }\n\n    let handlerForType = HANDLERS[type];\n\n    if (handlerForType) {\n      handlerForType(message, options);\n    }\n  };\n}\n\nexport { registerHandler, invoke };","let testing = false;\nexport function isTesting() {\n  return testing;\n}\nexport function setTesting(value) {\n  testing = Boolean(value);\n}","import { DEBUG } from '@glimmer/env';\nimport { assert } from '../index';\nimport { invoke, registerHandler as genericRegisterHandler } from './handlers';\n\nlet registerHandler = () => {};\n\nlet warn = () => {};\n\nlet missingOptionsDeprecation;\nlet missingOptionsIdDeprecation;\n/**\n@module @ember/debug\n*/\n\nif (DEBUG) {\n  /**\n    Allows for runtime registration of handler functions that override the default warning behavior.\n    Warnings are invoked by calls made to [@ember/debug/warn](/ember/release/classes/@ember%2Fdebug/methods/warn?anchor=warn).\n    The following example demonstrates its usage by registering a handler that does nothing overriding Ember's\n    default warning behavior.\n       ```javascript\n    import { registerWarnHandler } from '@ember/debug';\n       // next is not called, so no warnings get the default behavior\n    registerWarnHandler(() => {});\n    ```\n       The handler function takes the following arguments:\n       <ul>\n      <li> <code>message</code> - The message received from the warn call. </li>\n      <li> <code>options</code> - An object passed in with the warn call containing additional information including:</li>\n        <ul>\n          <li> <code>id</code> - An id of the warning in the form of <code>package-name.specific-warning</code>.</li>\n        </ul>\n      <li> <code>next</code> - A function that calls into the previously registered handler.</li>\n    </ul>\n       @public\n    @static\n    @method registerWarnHandler\n    @for @ember/debug\n    @param handler {Function} A function to handle warnings.\n    @since 2.1.0\n  */\n  registerHandler = function registerHandler(handler) {\n    genericRegisterHandler('warn', handler);\n  };\n\n  registerHandler(function logWarning(message) {\n    /* eslint-disable no-console */\n    console.warn(`WARNING: ${message}`);\n    /* eslint-enable no-console */\n  });\n  missingOptionsDeprecation = 'When calling `warn` you ' + 'must provide an `options` hash as the third parameter.  ' + '`options` should include an `id` property.';\n  missingOptionsIdDeprecation = 'When calling `warn` you must provide `id` in options.';\n  /**\n    Display a warning with the provided message.\n       * In a production build, this method is defined as an empty function (NOP).\n    Uses of this method in Ember itself are stripped from the ember.prod.js build.\n       ```javascript\n    import { warn } from '@ember/debug';\n    import tomsterCount from './tomster-counter'; // a module in my project\n       // Log a warning if we have more than 3 tomsters\n    warn('Too many tomsters!', tomsterCount <= 3, {\n      id: 'ember-debug.too-many-tomsters'\n    });\n    ```\n       @method warn\n    @for @ember/debug\n    @static\n    @param {String} message A warning to display.\n    @param {Boolean} test An optional boolean. If falsy, the warning\n      will be displayed.\n    @param {Object} options An object that can be used to pass a unique\n      `id` for this warning.  The `id` can be used by Ember debugging tools\n      to change the behavior (raise, log, or silence) for that specific warning.\n      The `id` should be namespaced by dots, e.g. \"ember-debug.feature-flag-with-features-stripped\"\n    @public\n    @since 1.0.0\n  */\n\n  warn = function warn(message, test, options) {\n    if (arguments.length === 2 && typeof test === 'object') {\n      options = test;\n      test = false;\n    }\n\n    assert(missingOptionsDeprecation, Boolean(options));\n    assert(missingOptionsIdDeprecation, Boolean(options && options.id));\n    invoke('warn', message, test, options);\n  };\n}\n\nexport default warn;\nexport { registerHandler, missingOptionsIdDeprecation, missingOptionsDeprecation };","/* eslint-disable no-implicit-coercion */\n// These versions should be the version that the deprecation was _introduced_,\n// not the version that the feature will be removed.\nexport const SEND_ACTION = !!'3.4.0';\nexport const EMBER_EXTEND_PROTOTYPES = !!'3.2.0-beta.5';\nexport const LOGGER = !!'3.2.0-beta.1';\nexport const MERGE = !!'3.6.0-beta.1';\nexport const ROUTER_EVENTS = !!'4.0.0';\nexport const COMPONENT_MANAGER_STRING_LOOKUP = !!'3.8.0';\nexport const JQUERY_INTEGRATION = !!'3.9.0';\nexport const ALIAS_METHOD = !!'3.9.0';\nexport const APP_CTRL_ROUTER_PROPS = !!'3.10.0-beta.1';\nexport const FUNCTION_PROTOTYPE_EXTENSIONS = !!'3.11.0-beta.1';\nexport const MOUSE_ENTER_LEAVE_MOVE_EVENTS = !!'3.13.0-beta.1';\nexport const EMBER_COMPONENT_IS_VISIBLE = !!'3.15.0-beta.1';\nexport const PARTIALS = !!'3.15.0-beta.1';\nexport const GLOBALS_RESOLVER = !!'3.16.0-beta.1';","export { assertDestroyablesDestroyed, associateDestroyableChild, destroy, enableDestroyableTracking, isDestroying, isDestroyed } from '@glimmer/runtime';\nimport { registerDestructor as _registerDestructor, unregisterDestructor as _unregisterDestructor } from '@glimmer/runtime';\n/**\n  Ember manages the lifecycles and lifetimes of many built in constructs, such\n  as components, and does so in a hierarchical way - when a parent component is\n  destroyed, all of its children are destroyed as well.\n\n  This destroyables API exposes the basic building blocks for destruction:\n\n  * registering a function to be ran when an object is destroyyed\n  * checking if an object is in a destroying state\n  * associate an object as a child of another so that the child object will be destroyed\n    when the associated parent object is destroyed.\n\n  @module @ember/destroyable\n  @public\n*/\n\n/**\n  This function is used to associate a destroyable object with a parent. When the parent\n  is destroyed, all registered children will also be destroyed.\n\n  ```js\n  class CustomSelect extends Component {\n    constructor() {\n      // obj is now a child of the component. When the component is destroyed,\n      // obj will also be destroyed, and have all of its destructors triggered.\n      this.obj = associateDestroyableChild(this, {});\n    }\n  }\n  ```\n\n  Returns the associated child for convenience.\n\n  @method associateDestroyableChild\n  @for @ember/destroyable\n  @param {Object|Function} parent the destroyable to entangle the child destroyables lifetime with\n  @param {Object|Function} child the destroyable to be entangled with the parents lifetime\n  @param {Function} destructor the destructor to run when the destroyable object is destroyed\n  @returns {Object|Function} the child argument\n  @static\n  @public\n*/\n\n/**\n Receives a destroyable, and returns true if the destroyable has begun destroying. Otherwise returns\n false.\n\n  ```js\n  let obj = {};\n  isDestroying(obj); // false\n  destroy(obj);\n  isDestroying(obj); // true\n  // ...sometime later, after scheduled destruction\n  isDestroyed(obj); // true\n  isDestroying(obj); // true\n  ```\n\n  @method isDestroying\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to check\n  @returns {Boolean}\n  @static\n  @public\n*/\n\n/**\n  Receives a destroyable, and returns true if the destroyable has finished destroying. Otherwise\n  returns false.\n\n  ```js\n  let obj = {};\n\n  isDestroyed(obj); // false\n  destroy(obj);\n\n  // ...sometime later, after scheduled destruction\n\n  isDestroyed(obj); // true\n  ```\n\n  @method isDestroyed\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to check\n  @returns {Boolean}\n  @static\n  @public\n*/\n\n/**\n  Initiates the destruction of a destroyable object. It runs all associated destructors, and then\n  destroys all children recursively.\n\n  ```js\n  let obj = {};\n\n  registerDestructor(obj, () => console.log('destroyed!'));\n\n  destroy(obj); // this will schedule the destructor to be called\n\n  // ...some time later, during scheduled destruction\n\n  // destroyed!\n  ```\n\n  Destruction via `destroy()` follows these steps:\n\n  1, Mark the destroyable such that `isDestroying(destroyable)` returns `true`\n  2, Call `destroy()` on each of the destroyable's associated children\n  3, Schedule calling the destroyable's destructors\n  4, Schedule setting destroyable such that `isDestroyed(destroyable)` returns `true`\n\n  This results in the entire tree of destroyables being first marked as destroying,\n  then having all of their destructors called, and finally all being marked as isDestroyed.\n  There won't be any in between states where some items are marked as `isDestroying` while\n  destroying, while others are not.\n\n  @method destroy\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the object to destroy\n  @static\n  @public\n*/\n\n/**\n  This function asserts that all objects which have associated destructors or associated children\n  have been destroyed at the time it is called. It is meant to be a low level hook that testing\n  frameworks can use to hook into and validate that all destroyables have in fact been destroyed.\n\n  This function requires that `enableDestroyableTracking` was called previously, and is only\n  available in non-production builds.\n\n  @method assertDestroyablesDestroyed\n  @for @ember/destroyable\n  @static\n  @public\n*/\n\n/**\n  This function instructs the destroyable system to keep track of all destroyables (their\n  children, destructors, etc). This enables a future usage of `assertDestroyablesDestroyed`\n  to be used to ensure that all destroyable tasks (registered destructors and associated children)\n  have completed when `assertDestroyablesDestroyed` is called.\n\n  @method enableDestroyableTracking\n  @for @ember/destroyable\n  @static\n  @public\n*/\n\n/**\n  Receives a destroyable object and a destructor function, and associates the\n  function with it. When the destroyable is destroyed with destroy, or when its\n  parent is destroyed, the destructor function will be called.\n\n  ```js\n  import { registerDestructor } from '@ember/destroyable';\n\n  class Modal extends Component {\n    @service resize;\n\n    constructor() {\n      this.resize.register(this, this.layout);\n\n      registerDestructor(this, () => this.resize.unregister(this));\n    }\n  }\n  ```\n\n  Multiple destructors can be associated with a given destroyable, and they can be\n  associated over time, allowing libraries to dynamically add destructors as needed.\n  `registerDestructor` also returns the associated destructor function, for convenience.\n\n  The destructor function is passed a single argument, which is the destroyable itself.\n  This allows the function to be reused multiple times for many destroyables, rather\n  than creating a closure function per destroyable.\n\n  ```js\n  import { registerDestructor } from '@ember/destroyable';\n\n  function unregisterResize(instance) {\n    instance.resize.unregister(instance);\n  }\n\n  class Modal extends Component {\n    @service resize;\n\n    constructor() {\n      this.resize.register(this, this.layout);\n\n      registerDestructor(this, unregisterResize);\n    }\n  }\n  ```\n\n  @method registerDestructor\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the destroyable to register the destructor function with\n  @param {Function} destructor the destructor to run when the destroyable object is destroyed\n  @static\n  @public\n*/\n\nexport function registerDestructor(destroyable, destructor) {\n  return _registerDestructor(destroyable, destructor);\n}\n/**\n  Receives a destroyable and a destructor function, and de-associates the destructor\n  from the destroyable.\n\n  ```js\n  import { registerDestructor, unregisterDestructor } from '@ember/destroyable';\n\n  class Modal extends Component {\n    @service modals;\n\n    constructor() {\n      this.modals.add(this);\n\n      this.modalDestructor = registerDestructor(this, () => this.modals.remove(this));\n    }\n\n    @action pinModal() {\n      unregisterDestructor(this, this.modalDestructor);\n    }\n  }\n  ```\n\n  @method unregisterDestructor\n  @for @ember/destroyable\n  @param {Object|Function} destroyable the destroyable to unregister the destructor function from\n  @param {Function} destructor the destructor to remove from the destroyable\n  @static\n  @public\n*/\n\nexport function unregisterDestructor(destroyable, destructor) {\n  return _unregisterDestructor(destroyable, destructor);\n}","export { getEngineParent, setEngineParent } from './lib/engine-parent';\nimport { canInvoke } from '@ember/-internals/utils';\nimport Controller from '@ember/controller';\nimport { Namespace, RegistryProxyMixin } from '@ember/-internals/runtime';\nimport { Registry, privatize as P } from '@ember/-internals/container';\nimport DAG from 'dag-map';\nimport { assert } from '@ember/debug';\nimport { get, set } from '@ember/-internals/metal';\nimport DefaultResolver from '@ember/application/globals-resolver';\nimport EngineInstance from '@ember/engine/instance';\nimport { RoutingService } from '@ember/-internals/routing';\nimport { ContainerDebugAdapter } from '@ember/-internals/extension-support';\nimport { ComponentLookup } from '@ember/-internals/views';\nimport { setupEngineRegistry } from '@ember/-internals/glimmer';\n\nfunction props(obj) {\n  let properties = [];\n\n  for (let key in obj) {\n    properties.push(key);\n  }\n\n  return properties;\n}\n/**\n@module @ember/engine\n*/\n\n/**\n  The `Engine` class contains core functionality for both applications and\n  engines.\n\n  Each engine manages a registry that's used for dependency injection and\n  exposed through `RegistryProxy`.\n\n  Engines also manage initializers and instance initializers.\n\n  Engines can spawn `EngineInstance` instances via `buildInstance()`.\n\n  @class Engine\n  @extends Ember.Namespace\n  @uses RegistryProxy\n  @public\n*/\n\n\nconst Engine = Namespace.extend(RegistryProxyMixin, {\n  init() {\n    this._super(...arguments);\n\n    this.buildRegistry();\n  },\n\n  /**\n    A private flag indicating whether an engine's initializers have run yet.\n     @private\n    @property _initializersRan\n  */\n  _initializersRan: false,\n\n  /**\n    Ensure that initializers are run once, and only once, per engine.\n     @private\n    @method ensureInitializers\n  */\n  ensureInitializers() {\n    if (!this._initializersRan) {\n      this.runInitializers();\n      this._initializersRan = true;\n    }\n  },\n\n  /**\n    Create an EngineInstance for this engine.\n     @public\n    @method buildInstance\n    @return {EngineInstance} the engine instance\n  */\n  buildInstance(options = {}) {\n    this.ensureInitializers();\n    options.base = this;\n    return EngineInstance.create(options);\n  },\n\n  /**\n    Build and configure the registry for the current engine.\n     @private\n    @method buildRegistry\n    @return {Ember.Registry} the configured registry\n  */\n  buildRegistry() {\n    let registry = this.__registry__ = this.constructor.buildRegistry(this);\n    return registry;\n  },\n\n  /**\n    @private\n    @method initializer\n  */\n  initializer(options) {\n    this.constructor.initializer(options);\n  },\n\n  /**\n    @private\n    @method instanceInitializer\n  */\n  instanceInitializer(options) {\n    this.constructor.instanceInitializer(options);\n  },\n\n  /**\n    @private\n    @method runInitializers\n  */\n  runInitializers() {\n    this._runInitializer('initializers', (name, initializer) => {\n      assert(`No application initializer named '${name}'`, Boolean(initializer));\n      initializer.initialize(this);\n    });\n  },\n\n  /**\n    @private\n    @since 1.12.0\n    @method runInstanceInitializers\n  */\n  runInstanceInitializers(instance) {\n    this._runInitializer('instanceInitializers', (name, initializer) => {\n      assert(`No instance initializer named '${name}'`, Boolean(initializer));\n      initializer.initialize(instance);\n    });\n  },\n\n  _runInitializer(bucketName, cb) {\n    let initializersByName = get(this.constructor, bucketName);\n    let initializers = props(initializersByName);\n    let graph = new DAG();\n    let initializer;\n\n    for (let i = 0; i < initializers.length; i++) {\n      initializer = initializersByName[initializers[i]];\n      graph.add(initializer.name, initializer, initializer.before, initializer.after);\n    }\n\n    graph.topsort(cb);\n  }\n\n});\nEngine.reopenClass({\n  initializers: Object.create(null),\n  instanceInitializers: Object.create(null),\n\n  /**\n    The goal of initializers should be to register dependencies and injections.\n    This phase runs once. Because these initializers may load code, they are\n    allowed to defer application readiness and advance it. If you need to access\n    the container or store you should use an InstanceInitializer that will be run\n    after all initializers and therefore after all code is loaded and the app is\n    ready.\n     Initializer receives an object which has the following attributes:\n    `name`, `before`, `after`, `initialize`. The only required attribute is\n    `initialize`, all others are optional.\n     * `name` allows you to specify under which name the initializer is registered.\n    This must be a unique name, as trying to register two initializers with the\n    same name will result in an error.\n     ```app/initializer/named-initializer.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Running namedInitializer!');\n    }\n     export default {\n      name: 'named-initializer',\n      initialize\n    };\n    ```\n     * `before` and `after` are used to ensure that this initializer is ran prior\n    or after the one identified by the value. This value can be a single string\n    or an array of strings, referencing the `name` of other initializers.\n     An example of ordering initializers, we create an initializer named `first`:\n     ```app/initializer/first.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('First initializer!');\n    }\n     export default {\n      name: 'first',\n      initialize\n    };\n    ```\n     ```bash\n    // DEBUG: First initializer!\n    ```\n     We add another initializer named `second`, specifying that it should run\n    after the initializer named `first`:\n     ```app/initializer/second.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Second initializer!');\n    }\n     export default {\n      name: 'second',\n      after: 'first',\n      initialize\n    };\n    ```\n     ```\n    // DEBUG: First initializer!\n    // DEBUG: Second initializer!\n    ```\n     Afterwards we add a further initializer named `pre`, this time specifying\n    that it should run before the initializer named `first`:\n     ```app/initializer/pre.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Pre initializer!');\n    }\n     export default {\n      name: 'pre',\n      before: 'first',\n      initialize\n    };\n    ```\n     ```bash\n    // DEBUG: Pre initializer!\n    // DEBUG: First initializer!\n    // DEBUG: Second initializer!\n    ```\n     Finally we add an initializer named `post`, specifying it should run after\n    both the `first` and the `second` initializers:\n     ```app/initializer/post.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Post initializer!');\n    }\n     export default {\n      name: 'post',\n      after: ['first', 'second'],\n      initialize\n    };\n    ```\n     ```bash\n    // DEBUG: Pre initializer!\n    // DEBUG: First initializer!\n    // DEBUG: Second initializer!\n    // DEBUG: Post initializer!\n    ```\n     * `initialize` is a callback function that receives one argument,\n      `application`, on which you can operate.\n     Example of using `application` to register an adapter:\n     ```app/initializer/api-adapter.js\n    import ApiAdapter from '../utils/api-adapter';\n     export function initialize(application) {\n      application.register('api-adapter:main', ApiAdapter);\n    }\n     export default {\n      name: 'post',\n      after: ['first', 'second'],\n      initialize\n    };\n    ```\n     @method initializer\n    @param initializer {Object}\n    @public\n  */\n  initializer: buildInitializerMethod('initializers', 'initializer'),\n\n  /**\n    Instance initializers run after all initializers have run. Because\n    instance initializers run after the app is fully set up. We have access\n    to the store, container, and other items. However, these initializers run\n    after code has loaded and are not allowed to defer readiness.\n     Instance initializer receives an object which has the following attributes:\n    `name`, `before`, `after`, `initialize`. The only required attribute is\n    `initialize`, all others are optional.\n     * `name` allows you to specify under which name the instanceInitializer is\n    registered. This must be a unique name, as trying to register two\n    instanceInitializer with the same name will result in an error.\n     ```app/initializer/named-instance-initializer.js\n    import { debug } from '@ember/debug';\n     export function initialize() {\n      debug('Running named-instance-initializer!');\n    }\n     export default {\n      name: 'named-instance-initializer',\n      initialize\n    };\n    ```\n     * `before` and `after` are used to ensure that this initializer is ran prior\n    or after the one identified by the value. This value can be a single string\n    or an array of strings, referencing the `name` of other initializers.\n     * See Application.initializer for discussion on the usage of before\n    and after.\n     Example instanceInitializer to preload data into the store.\n     ```app/initializer/preload-data.js\n    import $ from 'jquery';\n     export function initialize(application) {\n        var userConfig, userConfigEncoded, store;\n        // We have a HTML escaped JSON representation of the user's basic\n        // configuration generated server side and stored in the DOM of the main\n        // index.html file. This allows the app to have access to a set of data\n        // without making any additional remote calls. Good for basic data that is\n        // needed for immediate rendering of the page. Keep in mind, this data,\n        // like all local models and data can be manipulated by the user, so it\n        // should not be relied upon for security or authorization.\n         // Grab the encoded data from the meta tag\n        userConfigEncoded = $('head meta[name=app-user-config]').attr('content');\n         // Unescape the text, then parse the resulting JSON into a real object\n        userConfig = JSON.parse(unescape(userConfigEncoded));\n         // Lookup the store\n        store = application.lookup('service:store');\n         // Push the encoded JSON into the store\n        store.pushPayload(userConfig);\n    }\n     export default {\n      name: 'named-instance-initializer',\n      initialize\n    };\n    ```\n     @method instanceInitializer\n    @param instanceInitializer\n    @public\n  */\n  instanceInitializer: buildInitializerMethod('instanceInitializers', 'instance initializer'),\n\n  /**\n    This creates a registry with the default Ember naming conventions.\n     It also configures the registry:\n     * registered views are created every time they are looked up (they are\n      not singletons)\n    * registered templates are not factories; the registered value is\n      returned directly.\n    * the router receives the application as its `namespace` property\n    * all controllers receive the router as their `target` and `controllers`\n      properties\n    * all controllers receive the application as their `namespace` property\n    * the application view receives the application controller as its\n      `controller` property\n    * the application view receives the application template as its\n      `defaultTemplate` property\n     @method buildRegistry\n    @static\n    @param {Application} namespace the application for which to\n      build the registry\n    @return {Ember.Registry} the built registry\n    @private\n  */\n  buildRegistry(namespace) {\n    let registry = new Registry({\n      resolver: resolverFor(namespace)\n    });\n    registry.set = set;\n    registry.register('application:main', namespace, {\n      instantiate: false\n    });\n    commonSetupRegistry(registry);\n    setupEngineRegistry(registry);\n    return registry;\n  },\n\n  /**\n    Set this to provide an alternate class to `DefaultResolver`\n     @deprecated Use 'Resolver' instead\n    @property resolver\n    @public\n  */\n  resolver: null,\n\n  /**\n    Set this to provide an alternate class to `DefaultResolver`\n     @property resolver\n    @public\n  */\n  Resolver: null\n});\n/**\n  This function defines the default lookup rules for container lookups:\n\n  * templates are looked up on `Ember.TEMPLATES`\n  * other names are looked up on the application after classifying the name.\n    For example, `controller:post` looks up `App.PostController` by default.\n  * if the default lookup fails, look for registered classes on the container\n\n  This allows the application to register default injections in the container\n  that could be overridden by the normal naming convention.\n\n  @private\n  @method resolverFor\n  @param {Ember.Namespace} namespace the namespace to look for classes\n  @return {*} the resolved value for a given lookup\n*/\n\nfunction resolverFor(namespace) {\n  let ResolverClass = get(namespace, 'Resolver') || DefaultResolver;\n  let props = {\n    namespace\n  };\n  return ResolverClass.create(props);\n}\n\nfunction buildInitializerMethod(bucketName, humanName) {\n  return function (initializer) {\n    // If this is the first initializer being added to a subclass, we are going to reopen the class\n    // to make sure we have a new `initializers` object, which extends from the parent class' using\n    // prototypal inheritance. Without this, attempting to add initializers to the subclass would\n    // pollute the parent class as well as other subclasses.\n    if (this.superclass[bucketName] !== undefined && this.superclass[bucketName] === this[bucketName]) {\n      let attrs = {};\n      attrs[bucketName] = Object.create(this[bucketName]);\n      this.reopenClass(attrs);\n    }\n\n    assert(`The ${humanName} '${initializer.name}' has already been registered`, !this[bucketName][initializer.name]);\n    assert(`An ${humanName} cannot be registered without an initialize function`, canInvoke(initializer, 'initialize'));\n    assert(`An ${humanName} cannot be registered without a name property`, initializer.name !== undefined);\n    this[bucketName][initializer.name] = initializer;\n  };\n}\n\nfunction commonSetupRegistry(registry) {\n  registry.optionsForType('component', {\n    singleton: false\n  });\n  registry.optionsForType('view', {\n    singleton: false\n  });\n  registry.register('controller:basic', Controller, {\n    instantiate: false\n  });\n  registry.injection('renderer', '_viewRegistry', '-view-registry:main');\n  registry.injection('route', '_topLevelViewTemplate', 'template:-outlet');\n  registry.injection('view:-outlet', 'namespace', 'application:main');\n  registry.injection('controller', 'target', 'router:main');\n  registry.injection('controller', 'namespace', 'application:main');\n  registry.injection('router', '_bucketCache', P`-bucket-cache:main`);\n  registry.injection('route', '_bucketCache', P`-bucket-cache:main`);\n  registry.injection('route', '_router', 'router:main'); // Register the routing service...\n\n  registry.register('service:-routing', RoutingService); // DEBUGGING\n\n  registry.register('resolver-for-debugging:main', registry.resolver, {\n    instantiate: false\n  });\n  registry.injection('container-debug-adapter:main', 'resolver', 'resolver-for-debugging:main');\n  registry.injection('data-adapter:main', 'containerDebugAdapter', 'container-debug-adapter:main'); // Custom resolver authors may want to register their own ContainerDebugAdapter with this key\n\n  registry.register('container-debug-adapter:main', ContainerDebugAdapter);\n  registry.register('component-lookup:main', ComponentLookup);\n}\n\nexport default Engine;","/**\n@module @ember/engine\n*/\nimport { Object as EmberObject, ContainerProxyMixin, RegistryProxyMixin, RSVP } from '@ember/-internals/runtime';\nimport { assert } from '@ember/debug';\nimport EmberError from '@ember/error';\nimport { Registry, privatize as P } from '@ember/-internals/container';\nimport { guidFor } from '@ember/-internals/utils';\nimport { getEngineParent, setEngineParent } from './lib/engine-parent';\n/**\n  The `EngineInstance` encapsulates all of the stateful aspects of a\n  running `Engine`.\n\n  @public\n  @class EngineInstance\n  @extends EmberObject\n  @uses RegistryProxyMixin\n  @uses ContainerProxyMixin\n*/\n\nconst EngineInstance = EmberObject.extend(RegistryProxyMixin, ContainerProxyMixin, {\n  /**\n    The base `Engine` for which this is an instance.\n     @property {Engine} engine\n    @private\n  */\n  base: null,\n\n  init() {\n    this._super(...arguments); // Ensure the guid gets setup for this instance\n\n\n    guidFor(this);\n    let base = this.base;\n\n    if (!base) {\n      base = this.application;\n      this.base = base;\n    } // Create a per-instance registry that will use the application's registry\n    // as a fallback for resolving registrations.\n\n\n    let registry = this.__registry__ = new Registry({\n      fallback: base.__registry__\n    }); // Create a per-instance container from the instance's registry\n\n    this.__container__ = registry.container({\n      owner: this\n    });\n    this._booted = false;\n  },\n\n  /**\n    Initialize the `EngineInstance` and return a promise that resolves\n    with the instance itself when the boot process is complete.\n     The primary task here is to run any registered instance initializers.\n     See the documentation on `BootOptions` for the options it takes.\n     @public\n    @method boot\n    @param options {Object}\n    @return {Promise<EngineInstance,Error>}\n  */\n  boot(options) {\n    if (this._bootPromise) {\n      return this._bootPromise;\n    }\n\n    this._bootPromise = new RSVP.Promise(resolve => resolve(this._bootSync(options)));\n    return this._bootPromise;\n  },\n\n  /**\n    Unfortunately, a lot of existing code assumes booting an instance is\n    synchronous – specifically, a lot of tests assume the last call to\n    `app.advanceReadiness()` or `app.reset()` will result in a new instance\n    being fully-booted when the current runloop completes.\n     We would like new code (like the `visit` API) to stop making this\n    assumption, so we created the asynchronous version above that returns a\n    promise. But until we have migrated all the code, we would have to expose\n    this method for use *internally* in places where we need to boot an instance\n    synchronously.\n     @private\n  */\n  _bootSync(options) {\n    if (this._booted) {\n      return this;\n    }\n\n    assert(\"An engine instance's parent must be set via `setEngineParent(engine, parent)` prior to calling `engine.boot()`.\", getEngineParent(this));\n    this.cloneParentDependencies();\n    this.setupRegistry(options);\n    this.base.runInstanceInitializers(this);\n    this._booted = true;\n    return this;\n  },\n\n  setupRegistry(options = this.__container__.lookup('-environment:main')) {\n    this.constructor.setupRegistry(this.__registry__, options);\n  },\n\n  /**\n   Unregister a factory.\n    Overrides `RegistryProxy#unregister` in order to clear any cached instances\n   of the unregistered factory.\n    @public\n   @method unregister\n   @param {String} fullName\n   */\n  unregister(fullName) {\n    this.__container__.reset(fullName);\n\n    this._super(...arguments);\n  },\n\n  /**\n    Build a new `EngineInstance` that's a child of this instance.\n     Engines must be registered by name with their parent engine\n    (or application).\n     @private\n    @method buildChildEngineInstance\n    @param name {String} the registered name of the engine.\n    @param options {Object} options provided to the engine instance.\n    @return {EngineInstance,Error}\n  */\n  buildChildEngineInstance(name, options = {}) {\n    let Engine = this.lookup(`engine:${name}`);\n\n    if (!Engine) {\n      throw new EmberError(`You attempted to mount the engine '${name}', but it is not registered with its parent.`);\n    }\n\n    let engineInstance = Engine.buildInstance(options);\n    setEngineParent(engineInstance, this);\n    return engineInstance;\n  },\n\n  /**\n    Clone dependencies shared between an engine instance and its parent.\n     @private\n    @method cloneParentDependencies\n  */\n  cloneParentDependencies() {\n    let parent = getEngineParent(this);\n    let registrations = ['route:basic', 'service:-routing'];\n    registrations.forEach(key => this.register(key, parent.resolveRegistration(key)));\n    let env = parent.lookup('-environment:main');\n    this.register('-environment:main', env, {\n      instantiate: false\n    });\n    let singletons = ['router:main', P`-bucket-cache:main`, '-view-registry:main', `renderer:-${env.isInteractive ? 'dom' : 'inert'}`, 'service:-document'];\n\n    if (env.isInteractive) {\n      singletons.push('event_dispatcher:main');\n    }\n\n    singletons.forEach(key => this.register(key, parent.lookup(key), {\n      instantiate: false\n    }));\n    this.inject('view', '_environment', '-environment:main');\n    this.inject('route', '_environment', '-environment:main');\n  }\n\n});\nEngineInstance.reopenClass({\n  /**\n   @private\n   @method setupRegistry\n   @param {Registry} registry\n   @param {BootOptions} options\n   */\n  setupRegistry(registry, options) {\n    // when no options/environment is present, do nothing\n    if (!options) {\n      return;\n    }\n\n    registry.injection('view', '_environment', '-environment:main');\n    registry.injection('route', '_environment', '-environment:main');\n\n    if (options.isInteractive) {\n      registry.injection('view', 'renderer', 'renderer:-dom');\n      registry.injection('component', 'renderer', 'renderer:-dom');\n    } else {\n      registry.injection('view', 'renderer', 'renderer:-inert');\n      registry.injection('component', 'renderer', 'renderer:-inert');\n    }\n  }\n\n});\nexport default EngineInstance;","/**\n@module @ember/engine\n*/\nimport { symbol } from '@ember/-internals/utils';\nconst ENGINE_PARENT = symbol('ENGINE_PARENT');\n/**\n  `getEngineParent` retrieves an engine instance's parent instance.\n\n  @method getEngineParent\n  @param {EngineInstance} engine An engine instance.\n  @return {EngineInstance} The parent engine instance.\n  @for @ember/engine\n  @static\n  @private\n*/\n\nexport function getEngineParent(engine) {\n  return engine[ENGINE_PARENT];\n}\n/**\n  `setEngineParent` sets an engine instance's parent instance.\n\n  @method setEngineParent\n  @param {EngineInstance} engine An engine instance.\n  @param {EngineInstance} parent The parent engine instance.\n  @private\n*/\n\nexport function setEngineParent(engine, parent) {\n  engine[ENGINE_PARENT] = parent;\n}","/**\n @module @ember/error\n*/\n\n/**\n  The JavaScript Error object used by Ember.assert.\n\n  @class Error\n  @namespace Ember\n  @extends Error\n  @constructor\n  @public\n*/\nexport default Error;","/* eslint no-console:off */\n\n/* global console */\nimport { ENV } from '@ember/-internals/environment';\n\n/**\n@module @ember/instrumentation\n@private\n*/\n\n/**\n  The purpose of the Ember Instrumentation module is\n  to provide efficient, general-purpose instrumentation\n  for Ember.\n\n  Subscribe to a listener by using `subscribe`:\n\n  ```javascript\n  import { subscribe } from '@ember/instrumentation';\n\n  subscribe(\"render\", {\n    before(name, timestamp, payload) {\n\n    },\n\n    after(name, timestamp, payload) {\n\n    }\n  });\n  ```\n\n  If you return a value from the `before` callback, that same\n  value will be passed as a fourth parameter to the `after`\n  callback.\n\n  Instrument a block of code by using `instrument`:\n\n  ```javascript\n  import { instrument } from '@ember/instrumentation';\n\n  instrument(\"render.handlebars\", payload, function() {\n    // rendering logic\n  }, binding);\n  ```\n\n  Event names passed to `instrument` are namespaced\n  by periods, from more general to more specific. Subscribers\n  can listen for events by whatever level of granularity they\n  are interested in.\n\n  In the above example, the event is `render.handlebars`,\n  and the subscriber listened for all events beginning with\n  `render`. It would receive callbacks for events named\n  `render`, `render.handlebars`, `render.container`, or\n  even `render.handlebars.layout`.\n\n  @class Instrumentation\n  @static\n  @private\n*/\nexport let subscribers = [];\nlet cache = {};\n\nfunction populateListeners(name) {\n  let listeners = [];\n  let subscriber;\n\n  for (let i = 0; i < subscribers.length; i++) {\n    subscriber = subscribers[i];\n\n    if (subscriber.regex.test(name)) {\n      listeners.push(subscriber.object);\n    }\n  }\n\n  cache[name] = listeners;\n  return listeners;\n}\n\nconst time = (() => {\n  let perf = 'undefined' !== typeof window ? window.performance || {} : {};\n  let fn = perf.now || perf.mozNow || perf.webkitNow || perf.msNow || perf.oNow;\n  return fn ? fn.bind(perf) : Date.now;\n})();\n\nfunction isCallback(value) {\n  return typeof value === 'function';\n}\n\nexport function instrument(name, p1, p2, p3) {\n  let _payload;\n\n  let callback;\n  let binding;\n\n  if (arguments.length <= 3 && isCallback(p1)) {\n    callback = p1;\n    binding = p2;\n  } else {\n    _payload = p1;\n    callback = p2;\n    binding = p3;\n  } // fast path\n\n\n  if (subscribers.length === 0) {\n    return callback.call(binding);\n  } // avoid allocating the payload in fast path\n\n\n  let payload = _payload || {};\n\n  let finalizer = _instrumentStart(name, () => payload);\n\n  if (finalizer === NOOP) {\n    return callback.call(binding);\n  } else {\n    return withFinalizer(callback, finalizer, payload, binding);\n  }\n}\nlet flaggedInstrument;\n\nif (false\n/* EMBER_IMPROVED_INSTRUMENTATION */\n) {\n  flaggedInstrument = instrument;\n} else {\n  flaggedInstrument = function instrument(_name, _payload, callback) {\n    return callback();\n  };\n}\n\nexport { flaggedInstrument };\n\nfunction withFinalizer(callback, finalizer, payload, binding) {\n  try {\n    return callback.call(binding);\n  } catch (e) {\n    payload.exception = e;\n    throw e;\n  } finally {\n    finalizer();\n  }\n}\n\nfunction NOOP() {}\n\nexport function _instrumentStart(name, payloadFunc, payloadArg) {\n  if (subscribers.length === 0) {\n    return NOOP;\n  }\n\n  let listeners = cache[name];\n\n  if (!listeners) {\n    listeners = populateListeners(name);\n  }\n\n  if (listeners.length === 0) {\n    return NOOP;\n  }\n\n  let payload = payloadFunc(payloadArg);\n  let STRUCTURED_PROFILE = ENV.STRUCTURED_PROFILE;\n  let timeName;\n\n  if (STRUCTURED_PROFILE) {\n    timeName = `${name}: ${payload.object}`;\n    console.time(timeName);\n  }\n\n  let beforeValues = [];\n  let timestamp = time();\n\n  for (let i = 0; i < listeners.length; i++) {\n    let listener = listeners[i];\n    beforeValues.push(listener.before(name, timestamp, payload));\n  }\n\n  return function _instrumentEnd() {\n    let timestamp = time();\n\n    for (let i = 0; i < listeners.length; i++) {\n      let listener = listeners[i];\n\n      if (typeof listener.after === 'function') {\n        listener.after(name, timestamp, payload, beforeValues[i]);\n      }\n    }\n\n    if (STRUCTURED_PROFILE) {\n      console.timeEnd(timeName);\n    }\n  };\n}\n/**\n  Subscribes to a particular event or instrumented block of code.\n\n  @method subscribe\n  @for @ember/instrumentation\n  @static\n\n  @param {String} [pattern] Namespaced event name.\n  @param {Object} [object] Before and After hooks.\n\n  @return {Subscriber}\n  @private\n*/\n\nexport function subscribe(pattern, object) {\n  let paths = pattern.split('.');\n  let path;\n  let regexes = [];\n\n  for (let i = 0; i < paths.length; i++) {\n    path = paths[i];\n\n    if (path === '*') {\n      regexes.push('[^\\\\.]*');\n    } else {\n      regexes.push(path);\n    }\n  }\n\n  let regex = regexes.join('\\\\.');\n  regex = `${regex}(\\\\..*)?`;\n  let subscriber = {\n    pattern,\n    regex: new RegExp(`^${regex}$`),\n    object\n  };\n  subscribers.push(subscriber);\n  cache = {};\n  return subscriber;\n}\n/**\n  Unsubscribes from a particular event or instrumented block of code.\n\n  @method unsubscribe\n  @for @ember/instrumentation\n  @static\n\n  @param {Object} [subscriber]\n  @private\n*/\n\nexport function unsubscribe(subscriber) {\n  let index = 0;\n\n  for (let i = 0; i < subscribers.length; i++) {\n    if (subscribers[i] === subscriber) {\n      index = i;\n    }\n  }\n\n  subscribers.splice(index, 1);\n  cache = {};\n}\n/**\n  Resets `Instrumentation` by flushing list of subscribers.\n\n  @method reset\n  @for @ember/instrumentation\n  @static\n  @private\n*/\n\nexport function reset() {\n  subscribers.length = 0;\n  cache = {};\n}","export { setModifierManager } from '@glimmer/runtime';\nexport { modifierCapabilities as capabilties } from '@ember/-internals/glimmer';","import { descriptorForProperty, isElementDescriptor, setClassicDecorator } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nimport { consumeTag, tagFor, track, updateTag } from '@glimmer/validator';\n\nlet wrapGetterSetter = function (target, key, desc) {\n  let {\n    get: originalGet\n  } = desc;\n  assert('You attempted to use @dependentKeyCompat on a property that already has been decorated with either @computed or @tracked. @dependentKeyCompat is only necessary for native getters that are not decorated with @computed.', descriptorForProperty(target, key) === undefined);\n\n  if (originalGet !== undefined) {\n    desc.get = function () {\n      let propertyTag = tagFor(this, key);\n      let ret;\n      let tag = track(() => {\n        ret = originalGet.call(this);\n      });\n      updateTag(propertyTag, tag);\n      consumeTag(tag);\n      return ret;\n    };\n  }\n\n  return desc;\n};\n\nexport function dependentKeyCompat(target, key, desc) {\n  if (!isElementDescriptor([target, key, desc])) {\n    desc = target;\n\n    let decorator = function (target, key, _desc, _meta, isClassicDecorator) {\n      assert('The @dependentKeyCompat decorator may only be passed a method when used in classic classes. You should decorate getters/setters directly in native classes', isClassicDecorator);\n      assert('The dependentKeyCompat() decorator must be passed a getter or setter when used in classic classes', desc !== null && typeof desc === 'object' && (typeof desc.get === 'function' || typeof desc.set === 'function'));\n      return wrapGetterSetter(target, key, desc);\n    };\n\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n\n  assert('The @dependentKeyCompat decorator must be applied to getters/setters when used in native classes', desc !== null && typeof desc.get === 'function' || typeof desc.set === 'function');\n  return wrapGetterSetter(target, key, desc);\n}\nsetClassicDecorator(dependentKeyCompat);","export { empty, notEmpty, none, not, bool, match, equal, gt, gte, lt, lte, oneWay, readOnly, deprecatingAlias, and, or } from './lib/computed/computed_macros';\nexport { sum, min, max, map, sort, setDiff, mapBy, filter, filterBy, uniq, uniqBy, union, intersect, collect } from './lib/computed/reduce_computed_macros';","import { assert } from '@ember/debug';\nimport { assign } from '@ember/polyfills';\nimport { isElementDescriptor, setClassicDecorator } from '@ember/-internals/metal';\n/**\n  Decorator that turns the target function into an Action which can be accessed\n  directly by reference.\n\n  ```js\n  import Component from '@ember/component';\n  import { action, set } from '@ember/object';\n\n  export default class Tooltip extends Component {\n    @action\n    toggleShowing() {\n      set(this, 'isShowing', !this.isShowing);\n    }\n  }\n  ```\n  ```hbs\n  <!-- template.hbs -->\n  <button {{action this.toggleShowing}}>Show tooltip</button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  Decorated actions also interop with the string style template actions:\n\n  ```hbs\n  <!-- template.hbs -->\n  <button {{action \"toggleShowing\"}}>Show tooltip</button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  It also binds the function directly to the instance, so it can be used in any\n  context and will correctly refer to the class it came from:\n\n  ```hbs\n  <!-- template.hbs -->\n  <button\n    {{did-insert this.toggleShowing}}\n    {{on \"click\" this.toggleShowing}}\n  >\n    Show tooltip\n  </button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  This can also be used in JavaScript code directly:\n\n  ```js\n  import Component from '@ember/component';\n  import { action, set } from '@ember/object';\n\n  export default class Tooltip extends Component {\n    constructor() {\n      super(...arguments);\n\n      // this.toggleShowing is still bound correctly when added to\n      // the event listener\n      document.addEventListener('click', this.toggleShowing);\n    }\n\n    @action\n    toggleShowing() {\n      set(this, 'isShowing', !this.isShowing);\n    }\n  }\n  ```\n\n  This is considered best practice, since it means that methods will be bound\n  correctly no matter where they are used. By contrast, the `{{action}}` helper\n  and modifier can also be used to bind context, but it will be required for\n  every usage of the method:\n\n  ```hbs\n  <!-- template.hbs -->\n  <button\n    {{did-insert (action this.toggleShowing)}}\n    {{on \"click\" (action this.toggleShowing)}}\n  >\n    Show tooltip\n  </button>\n\n  {{#if isShowing}}\n    <div class=\"tooltip\">\n      I'm a tooltip!\n    </div>\n  {{/if}}\n  ```\n\n  They also do not have equivalents in JavaScript directly, so they cannot be\n  used for other situations where binding would be useful.\n\n  @public\n  @method action\n  @for @ember/object\n  @static\n  @param {Function|undefined} callback The function to turn into an action,\n                                       when used in classic classes\n  @return {PropertyDecorator} property decorator instance\n*/\n\nconst BINDINGS_MAP = new WeakMap();\n\nfunction setupAction(target, key, actionFn) {\n  if (target.constructor !== undefined && typeof target.constructor.proto === 'function') {\n    target.constructor.proto();\n  }\n\n  if (!Object.prototype.hasOwnProperty.call(target, 'actions')) {\n    let parentActions = target.actions; // we need to assign because of the way mixins copy actions down when inheriting\n\n    target.actions = parentActions ? assign({}, parentActions) : {};\n  }\n\n  target.actions[key] = actionFn;\n  return {\n    get() {\n      let bindings = BINDINGS_MAP.get(this);\n\n      if (bindings === undefined) {\n        bindings = new Map();\n        BINDINGS_MAP.set(this, bindings);\n      }\n\n      let fn = bindings.get(actionFn);\n\n      if (fn === undefined) {\n        fn = actionFn.bind(this);\n        bindings.set(actionFn, fn);\n      }\n\n      return fn;\n    }\n\n  };\n}\n\nexport function action(target, key, desc) {\n  let actionFn;\n\n  if (!isElementDescriptor([target, key, desc])) {\n    actionFn = target;\n\n    let decorator = function (target, key, desc, meta, isClassicDecorator) {\n      assert('The @action decorator may only be passed a method when used in classic classes. You should decorate methods directly in native classes', isClassicDecorator);\n      assert('The action() decorator must be passed a method when used in classic classes', typeof actionFn === 'function');\n      return setupAction(target, key, actionFn);\n    };\n\n    setClassicDecorator(decorator);\n    return decorator;\n  }\n\n  actionFn = desc.value;\n  assert('The @action decorator must be applied to methods when used in native classes', typeof actionFn === 'function');\n  return setupAction(target, key, actionFn);\n}\nsetClassicDecorator(action);","import { get, set, computed, isElementDescriptor, isEmpty, isNone, alias, expandProperties } from '@ember/-internals/metal';\nimport { assert, deprecate } from '@ember/debug';\n/**\n@module @ember/object\n*/\n\nfunction expandPropertiesToArray(predicateName, properties) {\n  let expandedProperties = [];\n\n  function extractProperty(entry) {\n    expandedProperties.push(entry);\n  }\n\n  for (let i = 0; i < properties.length; i++) {\n    let property = properties[i];\n    assert(`Dependent keys passed to computed.${predicateName}() can't have spaces.`, property.indexOf(' ') < 0);\n    expandProperties(property, extractProperty);\n  }\n\n  return expandedProperties;\n}\n\nfunction generateComputedWithPredicate(name, predicate) {\n  return (...properties) => {\n    assert(`You attempted to use @${name} as a decorator directly, but it requires at least one dependent key parameter`, !isElementDescriptor(properties));\n    let dependentKeys = expandPropertiesToArray(name, properties);\n    let computedFunc = computed(...dependentKeys, function () {\n      let lastIdx = dependentKeys.length - 1;\n\n      for (let i = 0; i < lastIdx; i++) {\n        let value = get(this, dependentKeys[i]);\n\n        if (!predicate(value)) {\n          return value;\n        }\n      }\n\n      return get(this, dependentKeys[lastIdx]);\n    });\n    return computedFunc;\n  };\n}\n/**\n  A computed property macro that returns true if the value of the dependent\n  property is null, an empty string, empty array, or empty function.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { empty } from '@ember/object/computed';\n\n  class ToDoList {\n    constructor(todos) {\n      set(this, 'todos', todos);\n    }\n\n    @empty('todos') isDone;\n  }\n\n  let todoList = new ToDoList(\n    ['Unit Test', 'Documentation', 'Release']\n  );\n\n  todoList.isDone; // false\n  set(todoList, 'todos', []);\n  todoList.isDone; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { empty } from '@ember/object/computed';\n\n  let ToDoList = EmberObject.extend({\n    isDone: empty('todos')\n  });\n\n  let todoList = ToDoList.create({\n    todos: ['Unit Test', 'Documentation', 'Release']\n  });\n\n  todoList.isDone; // false\n  set(todoList, 'todos', []);\n  todoList.isDone; // true\n  ```\n\n  @since 1.6.0\n  @method empty\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns true if the value\n  of the dependent property is null, an empty string, empty array, or empty\n  function and false if the underlying value is not empty.\n\n  @public\n*/\n\n\nexport function empty(dependentKey) {\n  assert('You attempted to use @empty as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(`${dependentKey}.length`, function () {\n    return isEmpty(get(this, dependentKey));\n  });\n}\n/**\n  A computed property that returns true if the value of the dependent property\n  is NOT null, an empty string, empty array, or empty function.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { notEmpty } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(backpack) {\n      set(this, 'backpack', backpack);\n    }\n\n    @notEmpty('backpack') hasStuff\n  }\n\n  let hamster = new Hamster(\n    ['Food', 'Sleeping Bag', 'Tent']\n  );\n\n  hamster.hasStuff; // true\n  set(hamster, 'backpack', []);\n  hamster.hasStuff; // false\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { notEmpty } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    hasStuff: notEmpty('backpack')\n  });\n\n  let hamster = Hamster.create({\n    backpack: ['Food', 'Sleeping Bag', 'Tent']\n  });\n\n  hamster.hasStuff; // true\n  set(hamster, 'backpack', []);\n  hamster.hasStuff; // false\n  ```\n\n  @method notEmpty\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns true if original\n  value for property is not empty.\n  @public\n*/\n\nexport function notEmpty(dependentKey) {\n  assert('You attempted to use @notEmpty as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(`${dependentKey}.length`, function () {\n    return !isEmpty(get(this, dependentKey));\n  });\n}\n/**\n  A computed property that returns true if the value of the dependent property\n  is null or undefined. This avoids errors from JSLint complaining about use of\n  ==, which can be technically confusing.\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { none } from '@ember/object/computed';\n\n  class Hamster {\n    @none('food') isHungry;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.isHungry; // true\n\n  set(hamster, 'food', 'Banana');\n  hamster.isHungry; // false\n\n  set(hamster, 'food', null);\n  hamster.isHungry; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { none } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    isHungry: none('food')\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.isHungry; // true\n\n  set(hamster, 'food', 'Banana');\n  hamster.isHungry; // false\n\n  set(hamster, 'food', null);\n  hamster.isHungry; // true\n  ```\n\n  @method none\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns true if original\n  value for property is null or undefined.\n  @public\n*/\n\nexport function none(dependentKey) {\n  assert('You attempted to use @none as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return isNone(get(this, dependentKey));\n  });\n}\n/**\n  A computed property that returns the inverse boolean value of the original\n  value for the dependent property.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { not } from '@ember/object/computed';\n\n  class User {\n    loggedIn = false;\n\n    @not('loggedIn') isAnonymous;\n  }\n\n  let user = new User();\n\n  user.isAnonymous; // true\n  set(user, 'loggedIn', true);\n  user.isAnonymous; // false\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { not } from '@ember/object/computed';\n\n  let User = EmberObject.extend({\n    loggedIn: false,\n\n    isAnonymous: not('loggedIn')\n  });\n\n  let user = User.create();\n\n  user.isAnonymous; // true\n  set(user, 'loggedIn', true);\n  user.isAnonymous; // false\n  ```\n\n  @method not\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which returns inverse of the\n  original value for property\n  @public\n*/\n\nexport function not(dependentKey) {\n  assert('You attempted to use @not as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return !get(this, dependentKey);\n  });\n}\n/**\n  A computed property that converts the provided dependent property into a\n  boolean value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { bool } from '@ember/object/computed';\n\n\n  class Hamster {\n    @bool('numBananas') hasBananas\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 0);\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 1);\n  hamster.hasBananas; // true\n\n  set(hamster, 'numBananas', null);\n  hamster.hasBananas; // false\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { bool } from '@ember/object/computed';\n\n\n  let Hamster = EmberObject.extend({\n    hasBananas: bool('numBananas')\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 0);\n  hamster.hasBananas; // false\n\n  set(hamster, 'numBananas', 1);\n  hamster.hasBananas; // true\n\n  set(hamster, 'numBananas', null);\n  hamster.hasBananas; // false\n  ```\n\n  @method bool\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which converts to boolean the\n  original value for property\n  @public\n*/\n\nexport function bool(dependentKey) {\n  assert('You attempted to use @bool as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return Boolean(get(this, dependentKey));\n  });\n}\n/**\n  A computed property which matches the original value for the dependent\n  property against a given RegExp, returning `true` if the value matches the\n  RegExp and `false` if it does not.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { match } from '@ember/object/computed';\n\n  class User {\n    @match('email', /^.+@.+\\..+$/) hasValidEmail;\n  }\n\n  let user = new User();\n\n  user.hasValidEmail; // false\n\n  set(user, 'email', '');\n  user.hasValidEmail; // false\n\n  set(user, 'email', 'ember_hamster@example.com');\n  user.hasValidEmail; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { match } from '@ember/object/computed';\n\n  let User = EmberObject.extend({\n    hasValidEmail: match('email', /^.+@.+\\..+$/)\n  });\n\n  let user = User.create();\n\n  user.hasValidEmail; // false\n\n  set(user, 'email', '');\n  user.hasValidEmail; // false\n\n  set(user, 'email', 'ember_hamster@example.com');\n  user.hasValidEmail; // true\n  ```\n\n  @method match\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {RegExp} regexp\n  @return {ComputedProperty} computed property which match the original value\n  for property against a given RegExp\n  @public\n*/\n\nexport function match(dependentKey, regexp) {\n  assert('You attempted to use @match as a decorator directly, but it requires `dependentKey` and `regexp` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    let value = get(this, dependentKey);\n    return regexp.test(value);\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  equal to the given value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { equal } from '@ember/object/computed';\n\n  class Hamster {\n    @equal('percentCarrotsEaten', 100) satisfied;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.satisfied; // false\n\n  set(hamster, 'percentCarrotsEaten', 100);\n  hamster.satisfied; // true\n\n  set(hamster, 'percentCarrotsEaten', 50);\n  hamster.satisfied; // false\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { equal } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    satisfied: equal('percentCarrotsEaten', 100)\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.satisfied; // false\n\n  set(hamster, 'percentCarrotsEaten', 100);\n  hamster.satisfied; // true\n\n  set(hamster, 'percentCarrotsEaten', 50);\n  hamster.satisfied; // false\n  ```\n\n  @method equal\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {String|Number|Object} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is equal to the given value.\n  @public\n*/\n\nexport function equal(dependentKey, value) {\n  assert('You attempted to use @equal as a decorator directly, but it requires `dependentKey` and `value` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) === value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  greater than the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { gt } from '@ember/object/computed';\n\n  class Hamster {\n    @gt('numBananas', 10) hasTooManyBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 11);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { gt } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    hasTooManyBananas: gt('numBananas', 10)\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 11);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  @method gt\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is greater than given value.\n  @public\n*/\n\nexport function gt(dependentKey, value) {\n  assert('You attempted to use @gt as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) > value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  greater than or equal to the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { gte } from '@ember/object/computed';\n\n  class Hamster {\n    @gte('numBananas', 10) hasTooManyBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 10);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { gte } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    hasTooManyBananas: gte('numBananas', 10)\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.hasTooManyBananas; // false\n\n  set(hamster, 'numBananas', 10);\n  hamster.hasTooManyBananas; // true\n  ```\n\n  @method gte\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is greater or equal then given value.\n  @public\n*/\n\nexport function gte(dependentKey, value) {\n  assert('You attempted to use @gte as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) >= value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  less than the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { lt } from '@ember/object/computed';\n\n  class Hamster {\n    @lt('numBananas', 3) needsMoreBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 2);\n  hamster.needsMoreBananas; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { lt } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    needsMoreBananas: lt('numBananas', 3)\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 2);\n  hamster.needsMoreBananas; // true\n  ```\n\n  @method lt\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is less then given value.\n  @public\n*/\n\nexport function lt(dependentKey, value) {\n  assert('You attempted to use @lt as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) < value;\n  });\n}\n/**\n  A computed property that returns true if the provided dependent property is\n  less than or equal to the provided value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { lte } from '@ember/object/computed';\n\n  class Hamster {\n    @lte('numBananas', 3) needsMoreBananas;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 5);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // true\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { lte } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    needsMoreBananas: lte('numBananas', 3)\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.needsMoreBananas; // true\n\n  set(hamster, 'numBananas', 5);\n  hamster.needsMoreBananas; // false\n\n  set(hamster, 'numBananas', 3);\n  hamster.needsMoreBananas; // true\n  ```\n\n  @method lte\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Number} value\n  @return {ComputedProperty} computed property which returns true if the\n  original value for property is less or equal than given value.\n  @public\n*/\n\nexport function lte(dependentKey, value) {\n  assert('You attempted to use @lte as a decorator directly, but it requires `dependentKey` and `value` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, function () {\n    return get(this, dependentKey) <= value;\n  });\n}\n/**\n  A computed property that performs a logical `and` on the original values for\n  the provided dependent properties.\n\n  You may pass in more than two properties and even use property brace\n  expansion.  The computed property will return the first falsy value or last\n  truthy value just like JavaScript's `&&` operator.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { and } from '@ember/object/computed';\n\n  class Hamster {\n    @and('hasTent', 'hasBackpack') readyForCamp;\n    @and('hasWalkingStick', 'hasBackpack') readyForHike;\n  }\n\n  let tomster = new Hamster();\n\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasTent', true);\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasBackpack', true);\n  tomster.readyForCamp; // true\n\n  set(tomster, 'hasBackpack', 'Yes');\n  tomster.readyForCamp; // 'Yes'\n\n  set(tomster, 'hasWalkingStick', null);\n  tomster.readyForHike; // null\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { and } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    readyForCamp: and('hasTent', 'hasBackpack'),\n    readyForHike: and('hasWalkingStick', 'hasBackpack')\n  });\n\n  let tomster = Hamster.create();\n\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasTent', true);\n  tomster.readyForCamp; // false\n\n  set(tomster, 'hasBackpack', true);\n  tomster.readyForCamp; // true\n\n  set(tomster, 'hasBackpack', 'Yes');\n  tomster.readyForCamp; // 'Yes'\n\n  set(tomster, 'hasWalkingStick', null);\n  tomster.readyForHike; // null\n  ```\n\n  @method and\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey*\n  @return {ComputedProperty} computed property which performs a logical `and` on\n  the values of all the original values for properties.\n  @public\n*/\n\nexport const and = generateComputedWithPredicate('and', value => value);\n/**\n  A computed property which performs a logical `or` on the original values for\n  the provided dependent properties.\n\n  You may pass in more than two properties and even use property brace\n  expansion.  The computed property will return the first truthy value or last\n  falsy value just like JavaScript's `||` operator.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { or } from '@ember/object/computed';\n\n  class Hamster {\n    @or('hasJacket', 'hasUmbrella') readyForRain;\n    @or('hasSunscreen', 'hasUmbrella') readyForBeach;\n  }\n\n  let tomster = new Hamster();\n\n  tomster.readyForRain; // undefined\n\n  set(tomster, 'hasUmbrella', true);\n  tomster.readyForRain; // true\n\n  set(tomster, 'hasJacket', 'Yes');\n  tomster.readyForRain; // 'Yes'\n\n  set(tomster, 'hasSunscreen', 'Check');\n  tomster.readyForBeach; // 'Check'\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { or } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    readyForRain: or('hasJacket', 'hasUmbrella'),\n    readyForBeach: or('hasSunscreen', 'hasUmbrella')\n  });\n\n  let tomster = Hamster.create();\n\n  tomster.readyForRain; // undefined\n\n  set(tomster, 'hasUmbrella', true);\n  tomster.readyForRain; // true\n\n  set(tomster, 'hasJacket', 'Yes');\n  tomster.readyForRain; // 'Yes'\n\n  set(tomster, 'hasSunscreen', 'Check');\n  tomster.readyForBeach; // 'Check'\n  ```\n\n  @method or\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey*\n  @return {ComputedProperty} computed property which performs a logical `or` on\n  the values of all the original values for properties.\n  @public\n*/\n\nexport const or = generateComputedWithPredicate('or', value => !value);\n/**\n  Creates a new property that is an alias for another property on an object.\n  Calls to `get` or `set` this property behave as though they were called on the\n  original property.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { alias } from '@ember/object/computed';\n\n  class Person {\n    name = 'Alex Matchneer';\n\n    @alias('name') nomen;\n  }\n\n  let alex = new Person();\n\n  alex.nomen; // 'Alex Matchneer'\n  alex.name;  // 'Alex Matchneer'\n\n  set(alex, 'nomen', '@machty');\n  alex.name;  // '@machty'\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { alias } from '@ember/object/computed';\n\n  let Person = EmberObject.extend({\n    name: 'Alex Matchneer',\n\n    nomen: alias('name')\n  });\n\n  let alex = Person.create();\n\n  alex.nomen; // 'Alex Matchneer'\n  alex.name;  // 'Alex Matchneer'\n\n  set(alex, 'nomen', '@machty');\n  alex.name;  // '@machty'\n  ```\n\n  @method alias\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates an alias to the\n  original value for property.\n  @public\n*/\n\n/**\n  Where `computed.alias` aliases `get` and `set`, and allows for bidirectional\n  data flow, `computed.oneWay` only provides an aliased `get`. The `set` will\n  not mutate the upstream property, rather causes the current property to become\n  the value set. This causes the downstream property to permanently diverge from\n  the upstream property.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { oneWay }from '@ember/object/computed';\n\n  class User {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @oneWay('firstName') nickName;\n  }\n\n  let teddy = new User('Teddy', 'Zeenny');\n\n  teddy.nickName; // 'Teddy'\n\n  set(teddy, 'nickName', 'TeddyBear');\n  teddy.firstName; // 'Teddy'\n  teddy.nickName; // 'TeddyBear'\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { oneWay } from '@ember/object/computed';\n\n  let User = EmberObject.extend({\n    firstName: null,\n    lastName: null,\n\n    nickName: oneWay('firstName')\n  });\n\n  let teddy = User.create({\n    firstName: 'Teddy',\n    lastName: 'Zeenny'\n  });\n\n  teddy.nickName; // 'Teddy'\n\n  set(teddy, 'nickName', 'TeddyBear'); // 'TeddyBear'\n  teddy.firstName; // 'Teddy'\n  teddy.nickName; // 'TeddyBear'\n  ```\n\n  @method oneWay\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates a one way computed\n  property to the original value for property.\n  @public\n*/\n\nexport function oneWay(dependentKey) {\n  assert('You attempted to use @oneWay as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return alias(dependentKey).oneWay();\n}\n/**\n  This is a more semantically meaningful alias of `computed.oneWay`, whose name\n  is somewhat ambiguous as to which direction the data flows.\n\n  @method reads\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates a one way computed\n    property to the original value for property.\n  @public\n */\n\n/**\n  Where `computed.oneWay` provides oneWay bindings, `computed.readOnly` provides\n  a readOnly one way binding. Very often when using `computed.oneWay` one does\n  not also want changes to propagate back up, as they will replace the value.\n\n  This prevents the reverse flow, and also throws an exception when it occurs.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { readOnly } from '@ember/object/computed';\n\n  class User {\n    constructor(firstName, lastName) {\n      set(this, 'firstName', firstName);\n      set(this, 'lastName', lastName);\n    }\n\n    @readOnly('firstName') nickName;\n  });\n\n  let teddy = new User('Teddy', 'Zeenny');\n\n  teddy.nickName; // 'Teddy'\n\n  set(teddy, 'nickName', 'TeddyBear'); // throws Exception\n  // throw new EmberError('Cannot Set: nickName on: <User:ember27288>' );`\n\n  teddy.firstName; // 'Teddy'\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { readOnly } from '@ember/object/computed';\n\n  let User = EmberObject.extend({\n    firstName: null,\n    lastName: null,\n\n    nickName: readOnly('firstName')\n  });\n\n  let teddy = User.create({\n    firstName: 'Teddy',\n    lastName:  'Zeenny'\n  });\n\n  teddy.nickName; // 'Teddy'\n\n  set(teddy, 'nickName', 'TeddyBear'); // throws Exception\n  // throw new EmberError('Cannot Set: nickName on: <User:ember27288>' );`\n\n  teddy.firstName; // 'Teddy'\n  ```\n\n  @method readOnly\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @return {ComputedProperty} computed property which creates a one way computed\n  property to the original value for property.\n  @since 1.5.0\n  @public\n*/\n\nexport function readOnly(dependentKey) {\n  assert('You attempted to use @readOnly as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return alias(dependentKey).readOnly();\n}\n/**\n  Creates a new property that is an alias for another property on an object.\n  Calls to `get` or `set` this property behave as though they were called on the\n  original property, but also print a deprecation warning.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { deprecatingAlias } from '@ember/object/computed';\n\n  class Hamster {\n    @deprecatingAlias('cavendishCount', {\n      id: 'hamster.deprecate-banana',\n      until: '3.0.0'\n    })\n    bananaCount;\n  }\n\n  let hamster = new Hamster();\n\n  set(hamster, 'bananaCount', 5); // Prints a deprecation warning.\n  hamster.cavendishCount; // 5\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { deprecatingAlias } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    bananaCount: deprecatingAlias('cavendishCount', {\n      id: 'hamster.deprecate-banana',\n      until: '3.0.0'\n    })\n  });\n\n  let hamster = Hamster.create();\n\n  set(hamster, 'bananaCount', 5); // Prints a deprecation warning.\n  hamster.cavendishCount; // 5\n  ```\n\n  @method deprecatingAlias\n  @static\n  @for @ember/object/computed\n  @param {String} dependentKey\n  @param {Object} options Options for `deprecate`.\n  @return {ComputedProperty} computed property which creates an alias with a\n  deprecation to the original value for property.\n  @since 1.7.0\n  @public\n*/\n\nexport function deprecatingAlias(dependentKey, options) {\n  assert('You attempted to use @deprecatingAlias as a decorator directly, but it requires `dependentKey` and `options` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return computed(dependentKey, {\n    get(key) {\n      deprecate(`Usage of \\`${key}\\` is deprecated, use \\`${dependentKey}\\` instead.`, false, options);\n      return get(this, dependentKey);\n    },\n\n    set(key, value) {\n      deprecate(`Usage of \\`${key}\\` is deprecated, use \\`${dependentKey}\\` instead.`, false, options);\n      set(this, dependentKey, value);\n      return value;\n    }\n\n  });\n}","/**\n@module @ember/object\n*/\nimport { DEBUG } from '@glimmer/env';\nimport { assert } from '@ember/debug';\nimport { computed, autoComputed, get, isElementDescriptor } from '@ember/-internals/metal';\nimport { compare, isArray, A as emberA, uniqBy as uniqByArray } from '@ember/-internals/runtime';\n\nfunction reduceMacro(dependentKey, callback, initialValue, name) {\n  assert(`Dependent key passed to \\`computed.${name}\\` shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  return computed(`${dependentKey}.[]`, function () {\n    let arr = get(this, dependentKey);\n\n    if (arr === null || typeof arr !== 'object') {\n      return initialValue;\n    }\n\n    return arr.reduce(callback, initialValue, this);\n  }).readOnly();\n}\n\nfunction arrayMacro(dependentKey, additionalDependentKeys, callback) {\n  // This is a bit ugly\n  let propertyName;\n\n  if (/@each/.test(dependentKey)) {\n    propertyName = dependentKey.replace(/\\.@each.*$/, '');\n  } else {\n    propertyName = dependentKey;\n    dependentKey += '.[]';\n  }\n\n  return computed(dependentKey, ...additionalDependentKeys, function () {\n    let value = get(this, propertyName);\n\n    if (isArray(value)) {\n      return emberA(callback.call(this, value));\n    } else {\n      return emberA();\n    }\n  }).readOnly();\n}\n\nfunction multiArrayMacro(_dependentKeys, callback, name) {\n  assert(`Dependent keys passed to \\`computed.${name}\\` shouldn't contain brace expanding pattern.`, _dependentKeys.every(dependentKey => !/[[\\]{}]/g.test(dependentKey)));\n\n  let dependentKeys = _dependentKeys.map(key => `${key}.[]`);\n\n  return computed(...dependentKeys, function () {\n    return emberA(callback.call(this, _dependentKeys));\n  }).readOnly();\n}\n/**\n  A computed property that returns the sum of the values in the dependent array.\n\n  Example:\n\n  ```javascript\n  import { sum } from '@ember/object/computed';\n\n  class Invoice {\n    lineItems = [1.00, 2.50, 9.99];\n\n    @sum('lineItems') total;\n  }\n\n  let invoice = new Invoice();\n\n  invoice.total; // 13.49\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { sum } from '@ember/object/computed';\n\n  let Invoice = EmberObject.extend({\n    lineItems: [1.00, 2.50, 9.99],\n\n    total: sum('lineItems')\n  })\n\n  let invoice = Invoice.create();\n\n  invoice.total; // 13.49\n  ```\n\n  @method sum\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @return {ComputedProperty} computes the sum of all values in the\n  dependentKey's array\n  @since 1.4.0\n  @public\n*/\n\n\nexport function sum(dependentKey) {\n  assert('You attempted to use @sum as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return reduceMacro(dependentKey, (sum, item) => sum + item, 0, 'sum');\n}\n/**\n  A computed property that calculates the maximum value in the dependent array.\n  This will return `-Infinity` when the dependent array is empty.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy, max } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n    @max('childAges') maxChildAge;\n  }\n\n  let lordByron = new Person();\n\n  lordByron.maxChildAge; // -Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.maxChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.maxChildAge; // 8\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { mapBy, max } from '@ember/object/computed';\n\n  let Person = EmberObject.extend({\n    childAges: mapBy('children', 'age'),\n    maxChildAge: max('childAges')\n  });\n\n  let lordByron = Person.create({ children: [] });\n\n  lordByron.maxChildAge; // -Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.maxChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.maxChildAge; // 8\n  ```\n\n  If the types of the arguments are not numbers, they will be converted to\n  numbers and the type of the return value will always be `Number`. For example,\n  the max of a list of Date objects will be the highest timestamp as a `Number`.\n  This behavior is consistent with `Math.max`.\n\n  @method max\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @return {ComputedProperty} computes the largest value in the dependentKey's\n  array\n  @public\n*/\n\nexport function max(dependentKey) {\n  assert('You attempted to use @max as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return reduceMacro(dependentKey, (max, item) => Math.max(max, item), -Infinity, 'max');\n}\n/**\n  A computed property that calculates the minimum value in the dependent array.\n  This will return `Infinity` when the dependent array is empty.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy, min } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n    @min('childAges') minChildAge;\n  }\n\n  let lordByron = Person.create({ children: [] });\n\n  lordByron.minChildAge; // Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.minChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.minChildAge; // 5\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { mapBy, min } from '@ember/object/computed';\n\n  let Person = EmberObject.extend({\n    childAges: mapBy('children', 'age'),\n    minChildAge: min('childAges')\n  });\n\n  let lordByron = Person.create({ children: [] });\n\n  lordByron.minChildAge; // Infinity\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.minChildAge; // 7\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.minChildAge; // 5\n  ```\n\n  If the types of the arguments are not numbers, they will be converted to\n  numbers and the type of the return value will always be `Number`. For example,\n  the min of a list of Date objects will be the lowest timestamp as a `Number`.\n  This behavior is consistent with `Math.min`.\n\n  @method min\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @return {ComputedProperty} computes the smallest value in the dependentKey's array\n  @public\n*/\n\nexport function min(dependentKey) {\n  assert('You attempted to use @min as a decorator directly, but it requires a `dependentKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return reduceMacro(dependentKey, (min, item) => Math.min(min, item), Infinity, 'min');\n}\n/**\n  Returns an array mapped via the callback\n\n  The callback method you provide should have the following signature:\n  - `item` is the current item in the iteration.\n  - `index` is the integer index of the current item in the iteration.\n\n  ```javascript\n  function mapCallback(item, index);\n  ```\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { map } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @map('chores', function(chore, index) {\n      return `${chore.toUpperCase()}!`;\n    })\n    excitingChores;\n  });\n\n  let hamster = new Hamster(['clean', 'write more unit tests']);\n\n  hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { map } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    excitingChores: map('chores', function(chore, index) {\n      return `${chore.toUpperCase()}!`;\n    })\n  });\n\n  let hamster = Hamster.create({\n    chores: ['clean', 'write more unit tests']\n  });\n\n  hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n  ```\n\n  You can optionally pass an array of additional dependent keys as the second\n  parameter to the macro, if your map function relies on any external values:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { map } from '@ember/object/computed';\n\n  class Hamster {\n    shouldUpperCase = false;\n\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @map('chores', ['shouldUpperCase'], function(chore, index) {\n      if (this.shouldUpperCase) {\n        return `${chore.toUpperCase()}!`;\n      } else {\n        return `${chore}!`;\n      }\n    })\n    excitingChores;\n  }\n\n  let hamster = new Hamster(['clean', 'write more unit tests']);\n\n  hamster.excitingChores; // ['clean!', 'write more unit tests!']\n\n  set(hamster, 'shouldUpperCase', true);\n  hamster.excitingChores; // ['CLEAN!', 'WRITE MORE UNIT TESTS!']\n  ```\n\n  @method map\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {Array} [additionalDependentKeys] optional array of additional\n  dependent keys\n  @param {Function} callback\n  @return {ComputedProperty} an array mapped via the callback\n  @public\n*/\n\nexport function map(dependentKey, additionalDependentKeys, callback) {\n  assert('You attempted to use @map as a decorator directly, but it requires atleast `dependentKey` and `callback` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n\n  if (callback === undefined && typeof additionalDependentKeys === 'function') {\n    callback = additionalDependentKeys;\n    additionalDependentKeys = [];\n  }\n\n  assert('The final parameter provided to map must be a callback function', typeof callback === 'function');\n  assert('The second parameter provided to map must either be the callback or an array of additional dependent keys', Array.isArray(additionalDependentKeys));\n  return arrayMacro(dependentKey, additionalDependentKeys, function (value) {\n    return value.map(callback, this);\n  });\n}\n/**\n  Returns an array mapped to the specified key.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { mapBy } from '@ember/object/computed';\n\n  class Person {\n    children = [];\n\n    @mapBy('children', 'age') childAges;\n  }\n\n  let lordByron = new Person();\n\n  lordByron.childAges; // []\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.childAges; // [7]\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.childAges; // [7, 5, 8]\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { mapBy } from '@ember/object/computed';\n\n  let Person = EmberObject.extend({\n    childAges: mapBy('children', 'age')\n  });\n\n  let lordByron = Person.create({ children: [] });\n\n  lordByron.childAges; // []\n\n  set(lordByron, 'children', [\n    {\n      name: 'Augusta Ada Byron',\n      age: 7\n    }\n  ]);\n  lordByron.childAges; // [7]\n\n  set(lordByron, 'children', [\n    ...lordByron.children,\n    {\n      name: 'Allegra Byron',\n      age: 5\n    }, {\n      name: 'Elizabeth Medora Leigh',\n      age: 8\n    }\n  ]);\n  lordByron.childAges; // [7, 5, 8]\n  ```\n\n  @method mapBy\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {String} propertyKey\n  @return {ComputedProperty} an array mapped to the specified key\n  @public\n*/\n\nexport function mapBy(dependentKey, propertyKey) {\n  assert('You attempted to use @mapBy as a decorator directly, but it requires `dependentKey` and `propertyKey` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert('`computed.mapBy` expects a property string for its second argument, ' + 'perhaps you meant to use \"map\"', typeof propertyKey === 'string');\n  assert(`Dependent key passed to \\`computed.mapBy\\` shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  return map(`${dependentKey}.@each.${propertyKey}`, item => get(item, propertyKey));\n}\n/**\n  Filters the array by the callback.\n\n  The callback method you provide should have the following signature:\n  - `item` is the current item in the iteration.\n  - `index` is the integer index of the current item in the iteration.\n  - `array` is the dependant array itself.\n\n  ```javascript\n  function filterCallback(item, index, array);\n  ```\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { filter } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @filter('chores', function(chore, index, array) {\n      return !chore.done;\n    })\n    remainingChores;\n  }\n\n  let hamster = Hamster.create([\n    { name: 'cook', done: true },\n    { name: 'clean', done: true },\n    { name: 'write more unit tests', done: false }\n  ]);\n\n  hamster.remainingChores; // [{name: 'write more unit tests', done: false}]\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { filter } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    remainingChores: filter('chores', function(chore, index, array) {\n      return !chore.done;\n    })\n  });\n\n  let hamster = Hamster.create({\n    chores: [\n      { name: 'cook', done: true },\n      { name: 'clean', done: true },\n      { name: 'write more unit tests', done: false }\n    ]\n  });\n\n  hamster.remainingChores; // [{name: 'write more unit tests', done: false}]\n  ```\n\n  You can also use `@each.property` in your dependent key, the callback will\n  still use the underlying array:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { filter } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @filter('chores.@each.done', function(chore, index, array) {\n      return !chore.done;\n    })\n    remainingChores;\n  }\n\n  let hamster = new Hamster([\n    { name: 'cook', done: true },\n    { name: 'clean', done: true },\n    { name: 'write more unit tests', done: false }\n  ]);\n  hamster.remainingChores; // [{name: 'write more unit tests', done: false}]\n\n  set(hamster.chores[2], 'done', true);\n  hamster.remainingChores; // []\n  ```\n\n  Finally, you can optionally pass an array of additional dependent keys as the\n  second parameter to the macro, if your filter function relies on any external\n  values:\n\n  ```javascript\n  import { filter } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    doneKey = 'finished';\n\n    @filter('chores', ['doneKey'], function(chore, index, array) {\n      return !chore[this.doneKey];\n    })\n    remainingChores;\n  }\n\n  let hamster = new Hamster([\n    { name: 'cook', finished: true },\n    { name: 'clean', finished: true },\n    { name: 'write more unit tests', finished: false }\n  ]);\n\n  hamster.remainingChores; // [{name: 'write more unit tests', finished: false}]\n  ```\n\n  @method filter\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {Array} [additionalDependentKeys] optional array of additional dependent keys\n  @param {Function} callback\n  @return {ComputedProperty} the filtered array\n  @public\n*/\n\nexport function filter(dependentKey, additionalDependentKeys, callback) {\n  assert('You attempted to use @filter as a decorator directly, but it requires atleast `dependentKey` and `callback` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n\n  if (callback === undefined && typeof additionalDependentKeys === 'function') {\n    callback = additionalDependentKeys;\n    additionalDependentKeys = [];\n  }\n\n  assert('The final parameter provided to filter must be a callback function', typeof callback === 'function');\n  assert('The second parameter provided to filter must either be the callback or an array of additional dependent keys', Array.isArray(additionalDependentKeys));\n  return arrayMacro(dependentKey, additionalDependentKeys, function (value) {\n    return value.filter(callback, this);\n  });\n}\n/**\n  Filters the array by the property and value.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { filterBy } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(chores) {\n      set(this, 'chores', chores);\n    }\n\n    @filterBy('chores', 'done', false) remainingChores;\n  }\n\n  let hamster = new Hamster([\n    { name: 'cook', done: true },\n    { name: 'clean', done: true },\n    { name: 'write more unit tests', done: false }\n  ]);\n\n  hamster.remainingChores; // [{ name: 'write more unit tests', done: false }]\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { filterBy } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    remainingChores: filterBy('chores', 'done', false)\n  });\n\n  let hamster = Hamster.create({\n    chores: [\n      { name: 'cook', done: true },\n      { name: 'clean', done: true },\n      { name: 'write more unit tests', done: false }\n    ]\n  });\n\n  hamster.remainingChores; // [{ name: 'write more unit tests', done: false }]\n  ```\n\n  @method filterBy\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {String} propertyKey\n  @param {*} value\n  @return {ComputedProperty} the filtered array\n  @public\n*/\n\nexport function filterBy(dependentKey, propertyKey, value) {\n  assert('You attempted to use @filterBy as a decorator directly, but it requires atleast `dependentKey` and `propertyKey` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert(`Dependent key passed to \\`computed.filterBy\\` shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  let callback;\n\n  if (arguments.length === 2) {\n    callback = item => get(item, propertyKey);\n  } else {\n    callback = item => get(item, propertyKey) === value;\n  }\n\n  return filter(`${dependentKey}.@each.${propertyKey}`, callback);\n}\n/**\n  A computed property which returns a new array with all the unique elements\n  from one or more dependent arrays.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { uniq } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits) {\n      set(this, 'fruits', fruits);\n    }\n\n    @uniq('fruits') uniqueFruits;\n  }\n\n  let hamster = new Hamster([\n    'banana',\n    'grape',\n    'kale',\n    'banana'\n  ]);\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { uniq } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    uniqueFruits: uniq('fruits')\n  });\n\n  let hamster = Hamster.create({\n    fruits: [\n      'banana',\n      'grape',\n      'kale',\n      'banana'\n    ]\n  });\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale']\n  ```\n\n  @method uniq\n  @for @ember/object/computed\n  @static\n  @param {String} propertyKey*\n  @return {ComputedProperty} computes a new array with all the\n  unique elements from the dependent array\n  @public\n*/\n\nexport function uniq(...args) {\n  assert('You attempted to use @uniq/@union as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return multiArrayMacro(args, function (dependentKeys) {\n    let uniq = emberA();\n    let seen = new Set();\n    dependentKeys.forEach(dependentKey => {\n      let value = get(this, dependentKey);\n\n      if (isArray(value)) {\n        value.forEach(item => {\n          if (!seen.has(item)) {\n            seen.add(item);\n            uniq.push(item);\n          }\n        });\n      }\n    });\n    return uniq;\n  }, 'uniq');\n}\n/**\n  A computed property which returns a new array with all the unique elements\n  from an array, with uniqueness determined by specific key.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { uniqBy } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits) {\n      set(this, 'fruits', fruits);\n    }\n\n    @uniqBy('fruits', 'id') uniqueFruits;\n  }\n\n  let hamster = new Hamster([\n    { id: 1, 'banana' },\n    { id: 2, 'grape' },\n    { id: 3, 'peach' },\n    { id: 1, 'banana' }\n  ]);\n\n  hamster.uniqueFruits; // [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' }]\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { uniqBy } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    uniqueFruits: uniqBy('fruits', 'id')\n  });\n\n  let hamster = Hamster.create({\n    fruits: [\n      { id: 1, 'banana' },\n      { id: 2, 'grape' },\n      { id: 3, 'peach' },\n      { id: 1, 'banana' }\n    ]\n  });\n\n  hamster.uniqueFruits; // [ { id: 1, 'banana' }, { id: 2, 'grape' }, { id: 3, 'peach' }]\n  ```\n\n  @method uniqBy\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey\n  @param {String} propertyKey\n  @return {ComputedProperty} computes a new array with all the\n  unique elements from the dependent array\n  @public\n*/\n\nexport function uniqBy(dependentKey, propertyKey) {\n  assert('You attempted to use @uniqBy as a decorator directly, but it requires `dependentKey` and `propertyKey` parameters', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert(`Dependent key passed to \\`computed.uniqBy\\` shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(dependentKey));\n  return computed(`${dependentKey}.[]`, function () {\n    let list = get(this, dependentKey);\n    return isArray(list) ? uniqByArray(list, propertyKey) : emberA();\n  }).readOnly();\n}\n/**\n  A computed property which returns a new array with all the unique elements\n  from one or more dependent arrays.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { union } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(fruits, vegetables) {\n      set(this, 'fruits', fruits);\n      set(this, 'vegetables', vegetables);\n    }\n\n    @union('fruits', 'vegetables') uniqueFruits;\n  });\n\n  let hamster = new, Hamster(\n    [\n      'banana',\n      'grape',\n      'kale',\n      'banana',\n      'tomato'\n    ],\n    [\n      'tomato',\n      'carrot',\n      'lettuce'\n    ]\n  );\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale', 'tomato', 'carrot', 'lettuce']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { union } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    uniqueFruits: union('fruits', 'vegetables')\n  });\n\n  let hamster = Hamster.create({\n    fruits: [\n      'banana',\n      'grape',\n      'kale',\n      'banana',\n      'tomato'\n    ],\n    vegetables: [\n      'tomato',\n      'carrot',\n      'lettuce'\n    ]\n  });\n\n  hamster.uniqueFruits; // ['banana', 'grape', 'kale', 'tomato', 'carrot', 'lettuce']\n  ```\n\n  @method union\n  @for @ember/object/computed\n  @static\n  @param {String} propertyKey*\n  @return {ComputedProperty} computes a new array with all the unique elements\n  from one or more dependent arrays.\n  @public\n*/\n\nexport let union = uniq;\n/**\n  A computed property which returns a new array with all the elements\n  two or more dependent arrays have in common.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { intersect } from '@ember/object/computed';\n\n  class FriendGroups {\n    constructor(adaFriends, charlesFriends) {\n      set(this, 'adaFriends', adaFriends);\n      set(this, 'charlesFriends', charlesFriends);\n    }\n\n    @intersect('adaFriends', 'charlesFriends') friendsInCommon;\n  }\n\n  let groups = new FriendGroups(\n    ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'],\n    ['William King', 'Mary Somerville', 'Ada Lovelace', 'George Peacock']\n  );\n\n  groups.friendsInCommon; // ['William King', 'Mary Somerville']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { intersect } from '@ember/object/computed';\n\n  let FriendGroups = EmberObject.extend({\n    friendsInCommon: intersect('adaFriends', 'charlesFriends')\n  });\n\n  let groups = FriendGroups.create({\n    adaFriends: ['Charles Babbage', 'John Hobhouse', 'William King', 'Mary Somerville'],\n    charlesFriends: ['William King', 'Mary Somerville', 'Ada Lovelace', 'George Peacock']\n  });\n\n  groups.friendsInCommon; // ['William King', 'Mary Somerville']\n  ```\n\n  @method intersect\n  @for @ember/object/computed\n  @static\n  @param {String} propertyKey*\n  @return {ComputedProperty} computes a new array with all the duplicated\n  elements from the dependent arrays\n  @public\n*/\n\nexport function intersect(...args) {\n  assert('You attempted to use @intersect as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return multiArrayMacro(args, function (dependentKeys) {\n    let arrays = dependentKeys.map(dependentKey => {\n      let array = get(this, dependentKey);\n      return isArray(array) ? array : [];\n    });\n    let results = arrays.pop().filter(candidate => {\n      for (let i = 0; i < arrays.length; i++) {\n        let found = false;\n        let array = arrays[i];\n\n        for (let j = 0; j < array.length; j++) {\n          if (array[j] === candidate) {\n            found = true;\n            break;\n          }\n        }\n\n        if (found === false) {\n          return false;\n        }\n      }\n\n      return true;\n    });\n    return emberA(results);\n  }, 'intersect');\n}\n/**\n  A computed property which returns a new array with all the properties from the\n  first dependent array that are not in the second dependent array.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { setDiff } from '@ember/object/computed';\n\n  class Hamster {\n    constructor(likes, fruits) {\n      set(this, 'likes', likes);\n      set(this, 'fruits', fruits);\n    }\n\n    @setDiff('likes', 'fruits') wants;\n  }\n\n  let hamster = new Hamster(\n    [\n      'banana',\n      'grape',\n      'kale'\n    ],\n    [\n      'grape',\n      'kale',\n    ]\n  );\n\n  hamster.wants; // ['banana']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { setDiff } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    wants: setDiff('likes', 'fruits')\n  });\n\n  let hamster = Hamster.create({\n    likes: [\n      'banana',\n      'grape',\n      'kale'\n    ],\n    fruits: [\n      'grape',\n      'kale',\n    ]\n  });\n\n  hamster.wants; // ['banana']\n  ```\n\n  @method setDiff\n  @for @ember/object/computed\n  @static\n  @param {String} setAProperty\n  @param {String} setBProperty\n  @return {ComputedProperty} computes a new array with all the items from the\n  first dependent array that are not in the second dependent array\n  @public\n*/\n\nexport function setDiff(setAProperty, setBProperty) {\n  assert('You attempted to use @setDiff as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  assert('`computed.setDiff` requires exactly two dependent arrays.', arguments.length === 2);\n  assert(`Dependent keys passed to \\`computed.setDiff\\` shouldn't contain brace expanding pattern.`, !/[[\\]{}]/g.test(setAProperty) && !/[[\\]{}]/g.test(setBProperty));\n  return computed(`${setAProperty}.[]`, `${setBProperty}.[]`, function () {\n    let setA = get(this, setAProperty);\n    let setB = get(this, setBProperty);\n\n    if (!isArray(setA)) {\n      return emberA();\n    }\n\n    if (!isArray(setB)) {\n      return emberA(setA);\n    }\n\n    return setA.filter(x => setB.indexOf(x) === -1);\n  }).readOnly();\n}\n/**\n  A computed property that returns the array of values for the provided\n  dependent properties.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { collect } from '@ember/object/computed';\n\n  class Hamster {\n    @collect('hat', 'shirt') clothes;\n  }\n\n  let hamster = new Hamster();\n\n  hamster.clothes; // [null, null]\n\n  set(hamster, 'hat', 'Camp Hat');\n  set(hamster, 'shirt', 'Camp Shirt');\n  hamster.clothes; // ['Camp Hat', 'Camp Shirt']\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject, { set } from '@ember/object';\n  import { collect } from '@ember/object/computed';\n\n  let Hamster = EmberObject.extend({\n    clothes: collect('hat', 'shirt')\n  });\n\n  let hamster = Hamster.create();\n\n  hamster.clothes; // [null, null]\n\n  set(hamster, 'hat', 'Camp Hat');\n  set(hamster, 'shirt', 'Camp Shirt');\n  hamster.clothes; // ['Camp Hat', 'Camp Shirt']\n  ```\n\n  @method collect\n  @for @ember/object/computed\n  @static\n  @param {String} dependentKey*\n  @return {ComputedProperty} computed property which maps values of all passed\n  in properties to an array.\n  @public\n*/\n\nexport function collect(...dependentKeys) {\n  assert('You attempted to use @collect as a decorator directly, but it requires atleast one dependent key parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n  return multiArrayMacro(dependentKeys, function () {\n    let res = dependentKeys.map(key => {\n      let val = get(this, key);\n      return val === undefined ? null : val;\n    });\n    return emberA(res);\n  }, 'collect');\n}\n/**\n  A computed property which returns a new array with all the properties from the\n  first dependent array sorted based on a property or sort function. The sort\n  macro can be used in two different ways:\n\n  1. By providing a sort callback function\n  2. By providing an array of keys to sort the array\n\n  In the first form, the callback method you provide should have the following\n  signature:\n\n  ```javascript\n  function sortCallback(itemA, itemB);\n  ```\n\n  - `itemA` the first item to compare.\n  - `itemB` the second item to compare.\n\n  This function should return negative number (e.g. `-1`) when `itemA` should\n  come before `itemB`. It should return positive number (e.g. `1`) when `itemA`\n  should come after `itemB`. If the `itemA` and `itemB` are equal this function\n  should return `0`.\n\n  Therefore, if this function is comparing some numeric values, simple `itemA -\n  itemB` or `itemA.get( 'foo' ) - itemB.get( 'foo' )` can be used instead of\n  series of `if`.\n\n  Example:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { sort } from '@ember/object/computed';\n\n  class ToDoList {\n    constructor(todos) {\n      set(this, 'todos', todos);\n    }\n\n    // using a custom sort function\n    @sort('todos', function(a, b){\n      if (a.priority > b.priority) {\n        return 1;\n      } else if (a.priority < b.priority) {\n        return -1;\n      }\n\n      return 0;\n    })\n    priorityTodos;\n  }\n\n  let todoList = new ToDoList([\n    { name: 'Unit Test', priority: 2 },\n    { name: 'Documentation', priority: 3 },\n    { name: 'Release', priority: 1 }\n  ]);\n\n  todoList.priorityTodos; // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }]\n  ```\n\n  Classic Class Example:\n\n  ```javascript\n  import EmberObject from '@ember/object';\n  import { sort } from '@ember/object/computed';\n\n  let ToDoList = EmberObject.extend({\n    // using a custom sort function\n    priorityTodos: sort('todos', function(a, b){\n      if (a.priority > b.priority) {\n        return 1;\n      } else if (a.priority < b.priority) {\n        return -1;\n      }\n\n      return 0;\n    })\n  });\n\n  let todoList = ToDoList.create({\n    todos: [\n      { name: 'Unit Test', priority: 2 },\n      { name: 'Documentation', priority: 3 },\n      { name: 'Release', priority: 1 }\n    ]\n  });\n\n  todoList.priorityTodos; // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }]\n  ```\n\n  You can also optionally pass an array of additional dependent keys as the\n  second parameter, if your sort function is dependent on additional values that\n  could changes:\n\n  ```js\n  import EmberObject, { set } from '@ember/object';\n  import { sort } from '@ember/object/computed';\n\n  class ToDoList {\n    sortKey = 'priority';\n\n    constructor(todos) {\n      set(this, 'todos', todos);\n    }\n\n    // using a custom sort function\n    @sort('todos', ['sortKey'], function(a, b){\n      if (a[this.sortKey] > b[this.sortKey]) {\n        return 1;\n      } else if (a[this.sortKey] < b[this.sortKey]) {\n        return -1;\n      }\n\n      return 0;\n    })\n    sortedTodos;\n  });\n\n  let todoList = new ToDoList([\n    { name: 'Unit Test', priority: 2 },\n    { name: 'Documentation', priority: 3 },\n    { name: 'Release', priority: 1 }\n  ]);\n\n  todoList.priorityTodos; // [{ name:'Release', priority:1 }, { name:'Unit Test', priority:2 }, { name:'Documentation', priority:3 }]\n  ```\n\n  In the second form, you should provide the key of the array of sort values as\n  the second parameter:\n\n  ```javascript\n  import { set } from '@ember/object';\n  import { sort } from '@ember/object/computed';\n\n  class ToDoList {\n    constructor(todos) {\n      set(this, 'todos', todos);\n    }\n\n    // using standard ascending sort\n    todosSorting = ['name'];\n    @sort('todos', 'todosSorting') sortedTodos;\n\n    // using descending sort\n    todosSortingDesc = ['name:desc'];\n    @sort('todos', 'todosSortingDesc') sortedTodosDesc;\n  }\n\n  let todoList = new ToDoList([\n    { name: 'Unit Test', priority: 2 },\n    { name: 'Documentation', priority: 3 },\n    { name: 'Release', priority: 1 }\n  ]);\n\n  todoList.sortedTodos; // [{ name:'Documentation', priority:3 }, { name:'Release', priority:1 }, { name:'Unit Test', priority:2 }]\n  todoList.sortedTodosDesc; // [{ name:'Unit Test', priority:2 }, { name:'Release', priority:1 }, { name:'Documentation', priority:3 }]\n  ```\n\n  @method sort\n  @for @ember/object/computed\n  @static\n  @param {String} itemsKey\n  @param {String|Function|Array} sortDefinitionOrDependentKeys The key of the sort definition (an array of sort properties),\n  the sort function, or an array of additional dependent keys\n  @param {Function?} sortDefinition the sort function (when used with additional dependent keys)\n  @return {ComputedProperty} computes a new sorted array based on the sort\n  property array or callback function\n  @public\n*/\n\nexport function sort(itemsKey, additionalDependentKeys, sortDefinition) {\n  assert('You attempted to use @sort as a decorator directly, but it requires atleast an `itemsKey` parameter', !isElementDescriptor(Array.prototype.slice.call(arguments)));\n\n  if (DEBUG) {\n    let argumentsValid = false;\n\n    if (arguments.length === 2) {\n      argumentsValid = typeof itemsKey === 'string' && (typeof additionalDependentKeys === 'string' || typeof additionalDependentKeys === 'function');\n    }\n\n    if (arguments.length === 3) {\n      argumentsValid = typeof itemsKey === 'string' && Array.isArray(additionalDependentKeys) && typeof sortDefinition === 'function';\n    }\n\n    assert('`computed.sort` can either be used with an array of sort properties or with a sort function. If used with an array of sort properties, it must receive exactly two arguments: the key of the array to sort, and the key of the array of sort properties. If used with a sort function, it may receive up to three arguments: the key of the array to sort, an optional additional array of dependent keys for the computed property, and the sort function.', argumentsValid);\n  }\n\n  if (sortDefinition === undefined && !Array.isArray(additionalDependentKeys)) {\n    sortDefinition = additionalDependentKeys;\n    additionalDependentKeys = [];\n  }\n\n  if (typeof sortDefinition === 'function') {\n    return customSort(itemsKey, additionalDependentKeys, sortDefinition);\n  } else {\n    return propertySort(itemsKey, sortDefinition);\n  }\n}\n\nfunction customSort(itemsKey, additionalDependentKeys, comparator) {\n  return arrayMacro(itemsKey, additionalDependentKeys, function (value) {\n    return value.slice().sort((x, y) => comparator.call(this, x, y));\n  });\n} // This one needs to dynamically set up and tear down observers on the itemsKey\n// depending on the sortProperties\n\n\nfunction propertySort(itemsKey, sortPropertiesKey) {\n  let cp = autoComputed(function (key) {\n    let sortProperties = get(this, sortPropertiesKey);\n    assert(`The sort definition for '${key}' on ${this} must be a function or an array of strings`, isArray(sortProperties) && sortProperties.every(s => typeof s === 'string'));\n    let itemsKeyIsAtThis = itemsKey === '@this';\n    let normalizedSortProperties = normalizeSortProperties(sortProperties);\n    let items = itemsKeyIsAtThis ? this : get(this, itemsKey);\n\n    if (!isArray(items)) {\n      return emberA();\n    }\n\n    if (normalizedSortProperties.length === 0) {\n      return emberA(items.slice());\n    } else {\n      return sortByNormalizedSortProperties(items, normalizedSortProperties);\n    }\n  }).readOnly();\n  return cp;\n}\n\nfunction normalizeSortProperties(sortProperties) {\n  return sortProperties.map(p => {\n    let [prop, direction] = p.split(':');\n    direction = direction || 'asc';\n    return [prop, direction];\n  });\n}\n\nfunction sortByNormalizedSortProperties(items, normalizedSortProperties) {\n  return emberA(items.slice().sort((itemA, itemB) => {\n    for (let i = 0; i < normalizedSortProperties.length; i++) {\n      let [prop, direction] = normalizedSortProperties[i];\n      let result = compare(get(itemA, prop), get(itemB, prop));\n\n      if (result !== 0) {\n        return direction === 'desc' ? -1 * result : result;\n      }\n    }\n\n    return 0;\n  }));\n}","import { MERGE } from '@ember/deprecated-features';\nimport { default as deprecatedMerge } from './lib/merge';\nlet merge = MERGE ? deprecatedMerge : undefined; // Export `assignPolyfill` for testing\n\nexport { default as assign, assign as assignPolyfill } from './lib/assign';\nexport { merge };","/**\n @module @ember/polyfills\n*/\n\n/**\n  Copy properties from a source object to a target object. Source arguments remain unchanged.\n\n  ```javascript\n  import { assign } from '@ember/polyfills';\n\n  var a = { first: 'Yehuda' };\n  var b = { last: 'Katz' };\n  var c = { company: 'Other Company' };\n  var d = { company: 'Tilde Inc.' };\n  assign(a, b, c, d); // a === { first: 'Yehuda', last: 'Katz', company: 'Tilde Inc.' };\n  ```\n\n  @method assign\n  @for @ember/polyfills\n  @param {Object} target The object to assign into\n  @param {Object} ...args The objects to copy properties from\n  @return {Object}\n  @public\n  @static\n*/\nexport function assign(target) {\n  for (let i = 1; i < arguments.length; i++) {\n    let arg = arguments[i];\n\n    if (!arg) {\n      continue;\n    }\n\n    let updates = Object.keys(arg);\n\n    for (let i = 0; i < updates.length; i++) {\n      let prop = updates[i];\n      target[prop] = arg[prop];\n    }\n  }\n\n  return target;\n} // Note: We use the bracket notation so\n//       that the babel plugin does not\n//       transform it.\n// https://www.npmjs.com/package/babel-plugin-transform-object-assign\n\nconst {\n  assign: _assign\n} = Object;\nexport default _assign || assign;","import { deprecate } from '@ember/debug';\n/**\n  Merge the contents of two objects together into the first object.\n\n  ```javascript\n  import { merge } from '@ember/polyfills';\n\n  merge({ first: 'Tom' }, { last: 'Dale' }); // { first: 'Tom', last: 'Dale' }\n  var a = { first: 'Yehuda' };\n  var b = { last: 'Katz' };\n  merge(a, b); // a == { first: 'Yehuda', last: 'Katz' }, b == { last: 'Katz' }\n  ```\n\n  @method merge\n  @static\n  @for @ember/polyfills\n  @param {Object} original The object to merge into\n  @param {Object} updates The object to copy properties from\n  @return {Object}\n  @deprecated\n  @public\n*/\n\nfunction merge(original, updates) {\n  deprecate('Use of `merge` has been deprecated. Please use `assign` instead.', false, {\n    id: 'ember-polyfills.deprecate-merge',\n    until: '4.0.0',\n    url: 'https://emberjs.com/deprecations/v3.x/#toc_ember-polyfills-deprecate-merge',\n    for: 'ember-source',\n    since: {\n      enabled: '3.6.0-beta.1'\n    }\n  });\n\n  if (updates === null || typeof updates !== 'object') {\n    return original;\n  }\n\n  let props = Object.keys(updates);\n  let prop;\n\n  for (let i = 0; i < props.length; i++) {\n    prop = props[i];\n    original[prop] = updates[prop];\n  }\n\n  return original;\n}\n\nexport default merge;","import { assert } from '@ember/debug';\nimport { onErrorTarget } from '@ember/-internals/error-handling';\nimport { flushAsyncObservers } from '@ember/-internals/metal';\nimport Backburner from 'backburner';\nlet currentRunLoop = null;\nexport function getCurrentRunLoop() {\n  return currentRunLoop;\n}\n\nfunction onBegin(current) {\n  currentRunLoop = current;\n}\n\nfunction onEnd(current, next) {\n  currentRunLoop = next;\n  flushAsyncObservers();\n}\n\nfunction flush(queueName, next) {\n  if (queueName === 'render' || queueName === _rsvpErrorQueue) {\n    flushAsyncObservers();\n  }\n\n  next();\n}\n\nexport const _rsvpErrorQueue = `${Math.random()}${Date.now()}`.replace('.', '');\n/**\n  Array of named queues. This array determines the order in which queues\n  are flushed at the end of the RunLoop. You can define your own queues by\n  simply adding the queue name to this array. Normally you should not need\n  to inspect or modify this property.\n\n  @property queues\n  @type Array\n  @default ['actions', 'destroy']\n  @private\n*/\n\nexport const queues = ['actions', // used in router transitions to prevent unnecessary loading state entry\n// if all context promises resolve on the 'actions' queue first\n'routerTransitions', 'render', 'afterRender', 'destroy', // used to re-throw unhandled RSVP rejection errors specifically in this\n// position to avoid breaking anything rendered in the other sections\n_rsvpErrorQueue];\nexport const backburner = new Backburner(queues, {\n  defaultQueue: 'actions',\n  onBegin,\n  onEnd,\n  onErrorTarget,\n  onErrorMethod: 'onerror',\n  flush\n});\n/**\n @module @ember/runloop\n*/\n// ..........................................................\n// run - this is ideally the only public API the dev sees\n//\n\n/**\n  Runs the passed target and method inside of a RunLoop, ensuring any\n  deferred actions including bindings and views updates are flushed at the\n  end.\n\n  Normally you should not need to invoke this method yourself. However if\n  you are implementing raw event handlers when interfacing with other\n  libraries or plugins, you should probably wrap all of your code inside this\n  call.\n\n  ```javascript\n  import { run } from '@ember/runloop';\n\n  run(function() {\n    // code to be executed within a RunLoop\n  });\n  ```\n  @method run\n  @for @ember/runloop\n  @static\n  @param {Object} [target] target of method to call\n  @param {Function|String} method Method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Any additional arguments you wish to pass to the method.\n  @return {Object} return value from invoking the passed function.\n  @public\n*/\n\nexport function run() {\n  return backburner.run(...arguments);\n} // used for the Ember.run global only\n\nexport const _globalsRun = run.bind(null);\n/**\n  If no run-loop is present, it creates a new one. If a run loop is\n  present it will queue itself to run on the existing run-loops action\n  queue.\n\n  Please note: This is not for normal usage, and should be used sparingly.\n\n  If invoked when not within a run loop:\n\n  ```javascript\n  import { join } from '@ember/runloop';\n\n  join(function() {\n    // creates a new run-loop\n  });\n  ```\n\n  Alternatively, if called within an existing run loop:\n\n  ```javascript\n  import { run, join } from '@ember/runloop';\n\n  run(function() {\n    // creates a new run-loop\n\n    join(function() {\n      // joins with the existing run-loop, and queues for invocation on\n      // the existing run-loops action queue.\n    });\n  });\n  ```\n\n  @method join\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to call\n  @param {Function|String} method Method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Any additional arguments you wish to pass to the method.\n  @return {Object} Return value from invoking the passed function. Please note,\n  when called within an existing loop, no return value is possible.\n  @public\n*/\n\nexport function join() {\n  return backburner.join(...arguments);\n}\n/**\n  Allows you to specify which context to call the specified function in while\n  adding the execution of that function to the Ember run loop. This ability\n  makes this method a great way to asynchronously integrate third-party libraries\n  into your Ember application.\n\n  `bind` takes two main arguments, the desired context and the function to\n  invoke in that context. Any additional arguments will be supplied as arguments\n  to the function that is passed in.\n\n  Let's use the creation of a TinyMCE component as an example. Currently,\n  TinyMCE provides a setup configuration option we can use to do some processing\n  after the TinyMCE instance is initialized but before it is actually rendered.\n  We can use that setup option to do some additional setup for our component.\n  The component itself could look something like the following:\n\n  ```app/components/rich-text-editor.js\n  import Component from '@ember/component';\n  import { on } from '@ember/object/evented';\n  import { bind } from '@ember/runloop';\n\n  export default Component.extend({\n    initializeTinyMCE: on('didInsertElement', function() {\n      tinymce.init({\n        selector: '#' + this.$().prop('id'),\n        setup: bind(this, this.setupEditor)\n      });\n    }),\n\n    didInsertElement() {\n      tinymce.init({\n        selector: '#' + this.$().prop('id'),\n        setup: bind(this, this.setupEditor)\n      });\n    }\n\n    setupEditor(editor) {\n      this.set('editor', editor);\n\n      editor.on('change', function() {\n        console.log('content changed!');\n      });\n    }\n  });\n  ```\n\n  In this example, we use `bind` to bind the setupEditor method to the\n  context of the RichTextEditor component and to have the invocation of that\n  method be safely handled and executed by the Ember run loop.\n\n  @method bind\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to call\n  @param {Function|String} method Method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Any additional arguments you wish to pass to the method.\n  @return {Function} returns a new function that will always have a particular context\n  @since 1.4.0\n  @public\n*/\n\nexport const bind = (...curried) => {\n  assert('could not find a suitable method to bind', function (methodOrTarget, methodOrArg) {\n    // Applies the same logic as backburner parseArgs for detecting if a method\n    // is actually being passed.\n    let length = arguments.length;\n\n    if (length === 0) {\n      return false;\n    } else if (length === 1) {\n      return typeof methodOrTarget === 'function';\n    } else {\n      let type = typeof methodOrArg;\n      return type === 'function' || // second argument is a function\n      methodOrTarget !== null && type === 'string' && methodOrArg in methodOrTarget || // second argument is the name of a method in first argument\n      typeof methodOrTarget === 'function' //first argument is a function\n      ;\n    }\n  }(...curried));\n  return (...args) => join(...curried.concat(args));\n};\n/**\n  Begins a new RunLoop. Any deferred actions invoked after the begin will\n  be buffered until you invoke a matching call to `end()`. This is\n  a lower-level way to use a RunLoop instead of using `run()`.\n\n  ```javascript\n  import { begin, end } from '@ember/runloop';\n\n  begin();\n  // code to be executed within a RunLoop\n  end();\n  ```\n\n  @method begin\n  @static\n  @for @ember/runloop\n  @return {void}\n  @public\n*/\n\nexport function begin() {\n  backburner.begin();\n}\n/**\n  Ends a RunLoop. This must be called sometime after you call\n  `begin()` to flush any deferred actions. This is a lower-level way\n  to use a RunLoop instead of using `run()`.\n\n  ```javascript\n  import { begin, end } from '@ember/runloop';\n\n  begin();\n  // code to be executed within a RunLoop\n  end();\n  ```\n\n  @method end\n  @static\n  @for @ember/runloop\n  @return {void}\n  @public\n*/\n\nexport function end() {\n  backburner.end();\n}\n/**\n  Adds the passed target/method and any optional arguments to the named\n  queue to be executed at the end of the RunLoop. If you have not already\n  started a RunLoop when calling this method one will be started for you\n  automatically.\n\n  At the end of a RunLoop, any methods scheduled in this way will be invoked.\n  Methods will be invoked in an order matching the named queues defined in\n  the `queues` property.\n\n  ```javascript\n  import { schedule } from '@ember/runloop';\n\n  schedule('afterRender', this, function() {\n    // this will be executed in the 'afterRender' queue\n    console.log('scheduled on afterRender queue');\n  });\n\n  schedule('actions', this, function() {\n    // this will be executed in the 'actions' queue\n    console.log('scheduled on actions queue');\n  });\n\n  // Note the functions will be run in order based on the run queues order.\n  // Output would be:\n  //   scheduled on actions queue\n  //   scheduled on afterRender queue\n  ```\n\n  @method schedule\n  @static\n  @for @ember/runloop\n  @param {String} queue The name of the queue to schedule against. Default queues is 'actions'\n  @param {Object} [target] target object to use as the context when invoking a method.\n  @param {String|Function} method The method to invoke. If you pass a string it\n    will be resolved on the target object at the time the scheduled item is\n    invoked allowing you to change the target function.\n  @param {Object} [arguments*] Optional arguments to be passed to the queued method.\n  @return {*} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function schedule()\n/* queue, target, method */\n{\n  return backburner.schedule(...arguments);\n} // Used by global test teardown\n\nexport function hasScheduledTimers() {\n  return backburner.hasTimers();\n} // Used by global test teardown\n\nexport function cancelTimers() {\n  backburner.cancelTimers();\n}\n/**\n  Invokes the passed target/method and optional arguments after a specified\n  period of time. The last parameter of this method must always be a number\n  of milliseconds.\n\n  You should use this method whenever you need to run some action after a\n  period of time instead of using `setTimeout()`. This method will ensure that\n  items that expire during the same script execution cycle all execute\n  together, which is often more efficient than using a real setTimeout.\n\n  ```javascript\n  import { later } from '@ember/runloop';\n\n  later(myContext, function() {\n    // code here will execute within a RunLoop in about 500ms with this == myContext\n  }, 500);\n  ```\n\n  @method later\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @param {Number} wait Number of milliseconds to wait.\n  @return {*} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function later()\n/*target, method*/\n{\n  return backburner.later(...arguments);\n}\n/**\n Schedule a function to run one time during the current RunLoop. This is equivalent\n  to calling `scheduleOnce` with the \"actions\" queue.\n\n  @method once\n  @static\n  @for @ember/runloop\n  @param {Object} [target] The target of the method to invoke.\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @return {Object} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function once(...args) {\n  args.unshift('actions');\n  return backburner.scheduleOnce(...args);\n}\n/**\n  Schedules a function to run one time in a given queue of the current RunLoop.\n  Calling this method with the same queue/target/method combination will have\n  no effect (past the initial call).\n\n  Note that although you can pass optional arguments these will not be\n  considered when looking for duplicates. New arguments will replace previous\n  calls.\n\n  ```javascript\n  import { run, scheduleOnce } from '@ember/runloop';\n\n  function sayHi() {\n    console.log('hi');\n  }\n\n  run(function() {\n    scheduleOnce('afterRender', myContext, sayHi);\n    scheduleOnce('afterRender', myContext, sayHi);\n    // sayHi will only be executed once, in the afterRender queue of the RunLoop\n  });\n  ```\n\n  Also note that for `scheduleOnce` to prevent additional calls, you need to\n  pass the same function instance. The following case works as expected:\n\n  ```javascript\n  function log() {\n    console.log('Logging only once');\n  }\n\n  function scheduleIt() {\n    scheduleOnce('actions', myContext, log);\n  }\n\n  scheduleIt();\n  scheduleIt();\n  ```\n\n  But this other case will schedule the function multiple times:\n\n  ```javascript\n  import { scheduleOnce } from '@ember/runloop';\n\n  function scheduleIt() {\n    scheduleOnce('actions', myContext, function() {\n      console.log('Closure');\n    });\n  }\n\n  scheduleIt();\n  scheduleIt();\n\n  // \"Closure\" will print twice, even though we're using `scheduleOnce`,\n  // because the function we pass to it won't match the\n  // previously scheduled operation.\n  ```\n\n  Available queues, and their order, can be found at `queues`\n\n  @method scheduleOnce\n  @static\n  @for @ember/runloop\n  @param {String} [queue] The name of the queue to schedule against. Default queues is 'actions'.\n  @param {Object} [target] The target of the method to invoke.\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @return {Object} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function scheduleOnce()\n/* queue, target, method*/\n{\n  return backburner.scheduleOnce(...arguments);\n}\n/**\n  Schedules an item to run from within a separate run loop, after\n  control has been returned to the system. This is equivalent to calling\n  `later` with a wait time of 1ms.\n\n  ```javascript\n  import { next } from '@ember/runloop';\n\n  next(myContext, function() {\n    // code to be executed in the next run loop,\n    // which will be scheduled after the current one\n  });\n  ```\n\n  Multiple operations scheduled with `next` will coalesce\n  into the same later run loop, along with any other operations\n  scheduled by `later` that expire right around the same\n  time that `next` operations will fire.\n\n  Note that there are often alternatives to using `next`.\n  For instance, if you'd like to schedule an operation to happen\n  after all DOM element operations have completed within the current\n  run loop, you can make use of the `afterRender` run loop queue (added\n  by the `ember-views` package, along with the preceding `render` queue\n  where all the DOM element operations happen).\n\n  Example:\n\n  ```app/components/my-component.js\n  import Component from '@ember/component';\n  import { scheduleOnce } from '@ember/runloop';\n\n  export Component.extend({\n    didInsertElement() {\n      this._super(...arguments);\n      scheduleOnce('afterRender', this, 'processChildElements');\n    },\n\n    processChildElements() {\n      // ... do something with component's child component\n      // elements after they've finished rendering, which\n      // can't be done within this component's\n      // `didInsertElement` hook because that gets run\n      // before the child elements have been added to the DOM.\n    }\n  });\n  ```\n\n  One benefit of the above approach compared to using `next` is\n  that you will be able to perform DOM/CSS operations before unprocessed\n  elements are rendered to the screen, which may prevent flickering or\n  other artifacts caused by delaying processing until after rendering.\n\n  The other major benefit to the above approach is that `next`\n  introduces an element of non-determinism, which can make things much\n  harder to test, due to its reliance on `setTimeout`; it's much harder\n  to guarantee the order of scheduled operations when they are scheduled\n  outside of the current run loop, i.e. with `next`.\n\n  @method next\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    If you pass a string it will be resolved on the\n    target at the time the method is invoked.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @return {Object} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function next(...args) {\n  args.push(1);\n  return backburner.later(...args);\n}\n/**\n  Cancels a scheduled item. Must be a value returned by `later()`,\n  `once()`, `scheduleOnce()`, `next()`, `debounce()`, or\n  `throttle()`.\n\n  ```javascript\n  import {\n    next,\n    cancel,\n    later,\n    scheduleOnce,\n    once,\n    throttle,\n    debounce\n  } from '@ember/runloop';\n\n  let runNext = next(myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runNext);\n\n  let runLater = later(myContext, function() {\n    // will not be executed\n  }, 500);\n\n  cancel(runLater);\n\n  let runScheduleOnce = scheduleOnce('afterRender', myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runScheduleOnce);\n\n  let runOnce = once(myContext, function() {\n    // will not be executed\n  });\n\n  cancel(runOnce);\n\n  let throttle = throttle(myContext, function() {\n    // will not be executed\n  }, 1, false);\n\n  cancel(throttle);\n\n  let debounce = debounce(myContext, function() {\n    // will not be executed\n  }, 1);\n\n  cancel(debounce);\n\n  let debounceImmediate = debounce(myContext, function() {\n    // will be executed since we passed in true (immediate)\n  }, 100, true);\n\n  // the 100ms delay until this method can be called again will be canceled\n  cancel(debounceImmediate);\n  ```\n\n  @method cancel\n  @static\n  @for @ember/runloop\n  @param {Object} timer Timer object to cancel\n  @return {Boolean} true if canceled or false/undefined if it wasn't found\n  @public\n*/\n\nexport function cancel(timer) {\n  return backburner.cancel(timer);\n}\n/**\n  Delay calling the target method until the debounce period has elapsed\n  with no additional debounce calls. If `debounce` is called again before\n  the specified time has elapsed, the timer is reset and the entire period\n  must pass again before the target method is called.\n\n  This method should be used when an event may be called multiple times\n  but the action should only be called once when the event is done firing.\n  A common example is for scroll events where you only want updates to\n  happen once scrolling has ceased.\n\n  ```javascript\n  import { debounce } from '@ember/runloop';\n\n  function whoRan() {\n    console.log(this.name + ' ran.');\n  }\n\n  let myContext = { name: 'debounce' };\n\n  debounce(myContext, whoRan, 150);\n\n  // less than 150ms passes\n  debounce(myContext, whoRan, 150);\n\n  // 150ms passes\n  // whoRan is invoked with context myContext\n  // console logs 'debounce ran.' one time.\n  ```\n\n  Immediate allows you to run the function immediately, but debounce\n  other calls for this function until the wait time has elapsed. If\n  `debounce` is called again before the specified time has elapsed,\n  the timer is reset and the entire period must pass again before\n  the method can be called again.\n\n  ```javascript\n  import { debounce } from '@ember/runloop';\n\n  function whoRan() {\n    console.log(this.name + ' ran.');\n  }\n\n  let myContext = { name: 'debounce' };\n\n  debounce(myContext, whoRan, 150, true);\n\n  // console logs 'debounce ran.' one time immediately.\n  // 100ms passes\n  debounce(myContext, whoRan, 150, true);\n\n  // 150ms passes and nothing else is logged to the console and\n  // the debouncee is no longer being watched\n  debounce(myContext, whoRan, 150, true);\n\n  // console logs 'debounce ran.' one time immediately.\n  // 150ms passes and nothing else is logged to the console and\n  // the debouncee is no longer being watched\n  ```\n\n  @method debounce\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @param {Number} wait Number of milliseconds to wait.\n  @param {Boolean} immediate Trigger the function on the leading instead\n    of the trailing edge of the wait interval. Defaults to false.\n  @return {Array} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function debounce() {\n  return backburner.debounce(...arguments);\n}\n/**\n  Ensure that the target method is never called more frequently than\n  the specified spacing period. The target method is called immediately.\n\n  ```javascript\n  import { throttle } from '@ember/runloop';\n\n  function whoRan() {\n    console.log(this.name + ' ran.');\n  }\n\n  let myContext = { name: 'throttle' };\n\n  throttle(myContext, whoRan, 150);\n  // whoRan is invoked with context myContext\n  // console logs 'throttle ran.'\n\n  // 50ms passes\n  throttle(myContext, whoRan, 150);\n\n  // 50ms passes\n  throttle(myContext, whoRan, 150);\n\n  // 150ms passes\n  throttle(myContext, whoRan, 150);\n  // whoRan is invoked with context myContext\n  // console logs 'throttle ran.'\n  ```\n\n  @method throttle\n  @static\n  @for @ember/runloop\n  @param {Object} [target] target of method to invoke\n  @param {Function|String} method The method to invoke.\n    May be a function or a string. If you pass a string\n    then it will be looked up on the passed target.\n  @param {Object} [args*] Optional arguments to pass to the timeout.\n  @param {Number} spacing Number of milliseconds to space out requests.\n  @param {Boolean} immediate Trigger the function on the leading instead\n    of the trailing edge of the wait interval. Defaults to true.\n  @return {Array} Timer information for use in canceling, see `cancel`.\n  @public\n*/\n\nexport function throttle() {\n  return backburner.throttle(...arguments);\n}","import { FrameworkObject } from '@ember/-internals/runtime';\nimport { inject as metalInject } from '@ember/-internals/metal';\n/**\n @module @ember/service\n @public\n */\n\n/**\n  Creates a property that lazily looks up a service in the container. There are\n  no restrictions as to what objects a service can be injected into.\n\n  Example:\n\n  ```app/routes/application.js\n  import Route from '@ember/routing/route';\n  import { inject as service } from '@ember/service';\n\n  export default class ApplicationRoute extends Route {\n    @service('auth') authManager;\n\n    model() {\n      return this.authManager.findCurrentUser();\n    }\n  }\n  ```\n\n  Classic Class Example:\n\n  ```app/routes/application.js\n  import Route from '@ember/routing/route';\n  import { inject as service } from '@ember/service';\n\n  export default Route.extend({\n    authManager: service('auth'),\n\n    model() {\n      return this.get('authManager').findCurrentUser();\n    }\n  });\n  ```\n\n  This example will create an `authManager` property on the application route\n  that looks up the `auth` service in the container, making it easily accessible\n  in the `model` hook.\n\n  @method inject\n  @static\n  @since 1.10.0\n  @for @ember/service\n  @param {String} name (optional) name of the service to inject, defaults to\n         the property's name\n  @return {ComputedDecorator} injection decorator instance\n  @public\n*/\n\nexport function inject() {\n  return metalInject('service', ...arguments);\n}\n/**\n  @class Service\n  @extends EmberObject\n  @since 1.10.0\n  @public\n*/\n\nconst Service = FrameworkObject.extend();\nService.reopenClass({\n  isServiceFactory: true\n});\nexport default Service;","/**\n@module @ember/string\n*/\nexport { getStrings as _getStrings, setStrings as _setStrings } from './lib/string_registry';\nimport { ENV } from '@ember/-internals/environment';\nimport { Cache } from '@ember/-internals/utils';\nimport { deprecate } from '@ember/debug';\nimport { getString } from './lib/string_registry';\nconst STRING_DASHERIZE_REGEXP = /[ _]/g;\nconst STRING_DASHERIZE_CACHE = new Cache(1000, key => decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'));\nconst STRING_CAMELIZE_REGEXP_1 = /(-|_|\\.|\\s)+(.)?/g;\nconst STRING_CAMELIZE_REGEXP_2 = /(^|\\/)([A-Z])/g;\nconst CAMELIZE_CACHE = new Cache(1000, key => key.replace(STRING_CAMELIZE_REGEXP_1, (_match, _separator, chr) => chr ? chr.toUpperCase() : '').replace(STRING_CAMELIZE_REGEXP_2, (match\n/*, separator, chr */\n) => match.toLowerCase()));\nconst STRING_CLASSIFY_REGEXP_1 = /^(-|_)+(.)?/;\nconst STRING_CLASSIFY_REGEXP_2 = /(.)(-|_|\\.|\\s)+(.)?/g;\nconst STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\nconst CLASSIFY_CACHE = new Cache(1000, str => {\n  let replace1 = (_match, _separator, chr) => chr ? `_${chr.toUpperCase()}` : '';\n\n  let replace2 = (_match, initialChar, _separator, chr) => initialChar + (chr ? chr.toUpperCase() : '');\n\n  let parts = str.split('/');\n\n  for (let i = 0; i < parts.length; i++) {\n    parts[i] = parts[i].replace(STRING_CLASSIFY_REGEXP_1, replace1).replace(STRING_CLASSIFY_REGEXP_2, replace2);\n  }\n\n  return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3, (match\n  /*, separator, chr */\n  ) => match.toUpperCase());\n});\nconst STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\nconst STRING_UNDERSCORE_REGEXP_2 = /-|\\s+/g;\nconst UNDERSCORE_CACHE = new Cache(1000, str => str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase());\nconst STRING_CAPITALIZE_REGEXP = /(^|\\/)([a-z\\u00C0-\\u024F])/g;\nconst CAPITALIZE_CACHE = new Cache(1000, str => str.replace(STRING_CAPITALIZE_REGEXP, (match\n/*, separator, chr */\n) => match.toUpperCase()));\nconst STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\nconst DECAMELIZE_CACHE = new Cache(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase());\n/**\n  Defines string helper methods including string formatting and localization.\n  Unless `EmberENV.EXTEND_PROTOTYPES.String` is `false` these methods will also be\n  added to the `String.prototype` as well.\n\n  @class String\n  @public\n*/\n\nfunction _fmt(str, formats) {\n  // first, replace any ORDERED replacements.\n  let idx = 0; // the current index for non-numerical replacements\n\n  return str.replace(/%@([0-9]+)?/g, (_s, argIndex) => {\n    let i = argIndex ? parseInt(argIndex, 10) - 1 : idx++;\n    let r = i < formats.length ? formats[i] : undefined;\n    return typeof r === 'string' ? r : r === null ? '(null)' : r === undefined ? '' : String(r);\n  });\n}\n/**\n  Formats the passed string, but first looks up the string in the localized\n  strings hash. This is a convenient way to localize text.\n\n  Note that it is traditional but not required to prefix localized string\n  keys with an underscore or other character so you can easily identify\n  localized strings.\n\n  ```javascript\n  import { loc } from '@ember/string';\n\n  Ember.STRINGS = {\n    '_Hello World': 'Bonjour le monde',\n    '_Hello %@ %@': 'Bonjour %@ %@'\n  };\n\n  loc(\"_Hello World\");  // 'Bonjour le monde';\n  loc(\"_Hello %@ %@\", [\"John\", \"Smith\"]);  // \"Bonjour John Smith\";\n  ```\n\n  @method loc\n  @param {String} str The string to format\n  @param {Array} formats Optional array of parameters to interpolate into string.\n  @return {String} formatted string\n  @public\n  @deprecated\n*/\n\n\nexport function loc(str, formats) {\n  deprecate('loc is deprecated, please use a dedicated localization solution like ember-intl. More alternatives listed at https://emberobserver.com/categories/internationalization.', false, {\n    id: 'ember-string.loc',\n    until: '4.0.0',\n    for: 'ember-source',\n    url: 'https://deprecations.emberjs.com/v3.x#toc_ember-string-loc',\n    since: {\n      available: '3.24'\n    }\n  });\n\n  if (!Array.isArray(formats) || arguments.length > 2) {\n    formats = Array.prototype.slice.call(arguments, 1);\n  }\n\n  str = getString(str) || str;\n  return _fmt(str, formats);\n}\n/**\n  Splits a string into separate units separated by spaces, eliminating any\n  empty strings in the process. This is a convenience method for split that\n  is mostly useful when applied to the `String.prototype`.\n\n  ```javascript\n  import { w } from '@ember/string';\n\n  w(\"alpha beta gamma\").forEach(function(key) {\n    console.log(key);\n  });\n\n  // > alpha\n  // > beta\n  // > gamma\n  ```\n\n  @method w\n  @param {String} str The string to split\n  @return {Array} array containing the split strings\n  @public\n*/\n\nexport function w(str) {\n  return str.split(/\\s+/);\n}\n/**\n  Converts a camelized string into all lower case separated by underscores.\n\n  ```javascript\n  import { decamelize } from '@ember/string';\n\n  decamelize('innerHTML');          // 'inner_html'\n  decamelize('action_name');        // 'action_name'\n  decamelize('css-class-name');     // 'css-class-name'\n  decamelize('my favorite items');  // 'my favorite items'\n  ```\n\n  @method decamelize\n  @param {String} str The string to decamelize.\n  @return {String} the decamelized string.\n  @public\n*/\n\nexport function decamelize(str) {\n  return DECAMELIZE_CACHE.get(str);\n}\n/**\n  Replaces underscores, spaces, or camelCase with dashes.\n\n  ```javascript\n  import { dasherize } from '@ember/string';\n\n  dasherize('innerHTML');                // 'inner-html'\n  dasherize('action_name');              // 'action-name'\n  dasherize('css-class-name');           // 'css-class-name'\n  dasherize('my favorite items');        // 'my-favorite-items'\n  dasherize('privateDocs/ownerInvoice';  // 'private-docs/owner-invoice'\n  ```\n\n  @method dasherize\n  @param {String} str The string to dasherize.\n  @return {String} the dasherized string.\n  @public\n*/\n\nexport function dasherize(str) {\n  return STRING_DASHERIZE_CACHE.get(str);\n}\n/**\n  Returns the lowerCamelCase form of a string.\n\n  ```javascript\n  import { camelize } from '@ember/string';\n\n  camelize('innerHTML');                   // 'innerHTML'\n  camelize('action_name');                 // 'actionName'\n  camelize('css-class-name');              // 'cssClassName'\n  camelize('my favorite items');           // 'myFavoriteItems'\n  camelize('My Favorite Items');           // 'myFavoriteItems'\n  camelize('private-docs/owner-invoice');  // 'privateDocs/ownerInvoice'\n  ```\n\n  @method camelize\n  @param {String} str The string to camelize.\n  @return {String} the camelized string.\n  @public\n*/\n\nexport function camelize(str) {\n  return CAMELIZE_CACHE.get(str);\n}\n/**\n  Returns the UpperCamelCase form of a string.\n\n  ```javascript\n  import { classify } from '@ember/string';\n\n  classify('innerHTML');                   // 'InnerHTML'\n  classify('action_name');                 // 'ActionName'\n  classify('css-class-name');              // 'CssClassName'\n  classify('my favorite items');           // 'MyFavoriteItems'\n  classify('private-docs/owner-invoice');  // 'PrivateDocs/OwnerInvoice'\n  ```\n\n  @method classify\n  @param {String} str the string to classify\n  @return {String} the classified string\n  @public\n*/\n\nexport function classify(str) {\n  return CLASSIFY_CACHE.get(str);\n}\n/**\n  More general than decamelize. Returns the lower\\_case\\_and\\_underscored\n  form of a string.\n\n  ```javascript\n  import { underscore } from '@ember/string';\n\n  underscore('innerHTML');                 // 'inner_html'\n  underscore('action_name');               // 'action_name'\n  underscore('css-class-name');            // 'css_class_name'\n  underscore('my favorite items');         // 'my_favorite_items'\n  underscore('privateDocs/ownerInvoice');  // 'private_docs/owner_invoice'\n  ```\n\n  @method underscore\n  @param {String} str The string to underscore.\n  @return {String} the underscored string.\n  @public\n*/\n\nexport function underscore(str) {\n  return UNDERSCORE_CACHE.get(str);\n}\n/**\n  Returns the Capitalized form of a string\n\n  ```javascript\n  import { capitalize } from '@ember/string';\n\n  capitalize('innerHTML')                 // 'InnerHTML'\n  capitalize('action_name')               // 'Action_name'\n  capitalize('css-class-name')            // 'Css-class-name'\n  capitalize('my favorite items')         // 'My favorite items'\n  capitalize('privateDocs/ownerInvoice'); // 'PrivateDocs/ownerInvoice'\n  ```\n\n  @method capitalize\n  @param {String} str The string to capitalize.\n  @return {String} The capitalized string.\n  @public\n*/\n\nexport function capitalize(str) {\n  return CAPITALIZE_CACHE.get(str);\n}\n\nif (ENV.EXTEND_PROTOTYPES.String) {\n  let deprecateEmberStringPrototypeExtension = function (name, fn, message = `String prototype extensions are deprecated. Please import ${name} from '@ember/string' instead.`) {\n    return function () {\n      deprecate(message, false, {\n        id: 'ember-string.prototype-extensions',\n        for: 'ember-source',\n        since: {\n          available: '3.24'\n        },\n        until: '4.0.0',\n        url: 'https://deprecations.emberjs.com/v3.x/#toc_ember-string-prototype_extensions'\n      });\n      return fn(this, ...arguments);\n    };\n  };\n\n  Object.defineProperties(String.prototype, {\n    /**\n      See [String.w](/ember/release/classes/String/methods/w?anchor=w).\n           @method w\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    w: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('w', w)\n    },\n\n    /**\n      See [String.loc](/ember/release/classes/String/methods/loc?anchor=loc).\n           @method loc\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    loc: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n\n      value(...args) {\n        return loc(this, args);\n      }\n\n    },\n\n    /**\n      See [String.camelize](/ember/release/classes/String/methods/camelize?anchor=camelize).\n           @method camelize\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    camelize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('camelize', camelize)\n    },\n\n    /**\n      See [String.decamelize](/ember/release/classes/String/methods/decamelize?anchor=decamelize).\n           @method decamelize\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    decamelize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('decamelize', decamelize)\n    },\n\n    /**\n      See [String.dasherize](/ember/release/classes/String/methods/dasherize?anchor=dasherize).\n           @method dasherize\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    dasherize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('dasherize', dasherize)\n    },\n\n    /**\n      See [String.underscore](/ember/release/classes/String/methods/underscore?anchor=underscore).\n           @method underscore\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    underscore: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('underscore', underscore)\n    },\n\n    /**\n      See [String.classify](/ember/release/classes/String/methods/classify?anchor=classify).\n           @method classify\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    classify: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('classify', classify)\n    },\n\n    /**\n      See [String.capitalize](/ember/release/classes/String/methods/capitalize?anchor=capitalize).\n           @method capitalize\n      @for @ember/string\n      @static\n      @private\n      @deprecated\n    */\n    capitalize: {\n      configurable: true,\n      enumerable: false,\n      writeable: true,\n      value: deprecateEmberStringPrototypeExtension('capitalize', capitalize)\n    }\n  });\n}","// STATE within a module is frowned upon, this exists\n// to support Ember.STRINGS but shield ember internals from this legacy global\n// API.\nlet STRINGS = {};\nexport function setStrings(strings) {\n  STRINGS = strings;\n}\nexport function getStrings() {\n  return STRINGS;\n}\nexport function getString(name) {\n  return STRINGS[name];\n}","class InstructionEncoderImpl {\n  constructor(buffer) {\n    this.buffer = buffer;\n    this.size = 0;\n  }\n\n  encode(type, machine) {\n    if (type > 255\n    /* TYPE_SIZE */\n    ) {\n        throw new Error(`Opcode type over 8-bits. Got ${type}.`);\n      }\n\n    let first = type | machine | arguments.length - 2 << 8\n    /* ARG_SHIFT */\n    ;\n    this.buffer.push(first);\n\n    for (let i = 2; i < arguments.length; i++) {\n      let op = arguments[i];\n\n      if (typeof op === 'number' && op > 2147483647\n      /* MAX_SIZE */\n      ) {\n          throw new Error(`Operand over 32-bits. Got ${op}.`);\n        }\n\n      this.buffer.push(op);\n    }\n\n    this.size = this.buffer.length;\n  }\n\n  patch(position, target) {\n    if (this.buffer[position + 1] === -1) {\n      this.buffer[position + 1] = target;\n    } else {\n      throw new Error('Trying to patch operand in populated slot instead of a reserved slot.');\n    }\n  }\n\n}\n\nexport { InstructionEncoderImpl };","const DEBUG = false;\nconst CI = false;\nexport { DEBUG, CI };","import { DEBUG } from '@glimmer/env';\n/**\n * This package contains global context functions for Glimmer. These functions\n * are set by the embedding environment and must be set before initial render.\n *\n * These functions should meet the following criteria:\n *\n * - Must be provided by the embedder, due to having framework specific\n *   behaviors (e.g. interop with classic Ember behaviors that should not be\n *   upstreamed) or to being out of scope for the VM (e.g. scheduling a\n *   revalidation)\n * - Never differ between render roots\n * - Never change over time\n *\n */\n\n/**\n * Schedules a VM revalidation.\n *\n * Note: this has a default value so that tags can warm themselves when first loaded.\n */\n\nlet scheduleRevalidate = () => {};\n/**\n * Schedules a destructor to run\n *\n * @param destroyable The destroyable being destroyed\n * @param destructor The destructor being scheduled\n */\n\n\nlet scheduleDestroy;\n/**\n * Finalizes destruction\n *\n * @param finalizer finalizer function\n */\n\nlet scheduleDestroyed;\n/**\n * Hook to provide iterators for `{{each}}` loops\n *\n * @param value The value to create an iterator for\n */\n\nlet toIterator;\n/**\n * Hook to specify truthiness within Glimmer templates\n *\n * @param value The value to convert to a boolean\n */\n\nlet toBool;\n/**\n * Hook for specifying how Glimmer should access properties in cases where it\n * needs to. For instance, accessing an object's values in templates.\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\n\nlet getProp;\n/**\n * Hook for specifying how Glimmer should update props in cases where it needs\n * to. For instance, when updating a template reference (e.g. 2-way-binding)\n *\n * @param obj The object provided to get a value from\n * @param prop The prop to set the value at\n * @param value The value to set the value to\n */\n\nlet setProp;\n/**\n * Hook for specifying how Glimmer should access paths in cases where it needs\n * to. For instance, the `key` value of `{{each}}` loops.\n *\n * @param obj The object provided to get a value from\n * @param path The path to get the value from\n */\n\nlet getPath;\n/**\n * Hook to warn if a style binding string or value was not marked as trusted\n * (e.g. HTMLSafe)\n */\n\nlet warnIfStyleNotTrusted;\nlet globalContextWasSet = false;\n\nfunction setGlobalContext(context) {\n  if (DEBUG) {\n    if (globalContextWasSet) {\n      throw new Error('Attempted to set the global context twice. This should only be set once.');\n    }\n\n    globalContextWasSet = true;\n  }\n\n  scheduleRevalidate = context.scheduleRevalidate;\n  scheduleDestroy = context.scheduleDestroy;\n  scheduleDestroyed = context.scheduleDestroyed;\n  toIterator = context.toIterator;\n  toBool = context.toBool;\n  getProp = context.getProp;\n  setProp = context.setProp;\n  getPath = context.getPath;\n  warnIfStyleNotTrusted = context.warnIfStyleNotTrusted;\n}\n\nlet assertGlobalContextWasSet;\nlet testOverrideGlobalContext;\n\nif (DEBUG) {\n  assertGlobalContextWasSet = () => {\n    if (globalContextWasSet === false) {\n      throw new Error('The global context for Glimmer VM was not set. You must set these global context functions to let Glimmer VM know how to accomplish certain operations. You can do this by importing `setGlobalContext` from `@glimmer/global-context`');\n    }\n  };\n\n  testOverrideGlobalContext = context => {\n    let originalGlobalContext = globalContextWasSet ? {\n      scheduleRevalidate,\n      scheduleDestroy,\n      scheduleDestroyed,\n      toIterator,\n      toBool,\n      getProp,\n      setProp,\n      getPath,\n      warnIfStyleNotTrusted\n    } : null;\n\n    if (context === null) {\n      globalContextWasSet = false;\n    } else {\n      globalContextWasSet = true;\n    }\n\n    scheduleRevalidate = (context === null || context === void 0 ? void 0 : context.scheduleRevalidate) || scheduleRevalidate;\n    scheduleDestroy = (context === null || context === void 0 ? void 0 : context.scheduleDestroy) || scheduleDestroy;\n    scheduleDestroyed = (context === null || context === void 0 ? void 0 : context.scheduleDestroyed) || scheduleDestroyed;\n    toIterator = (context === null || context === void 0 ? void 0 : context.toIterator) || toIterator;\n    toBool = (context === null || context === void 0 ? void 0 : context.toBool) || toBool;\n    getProp = (context === null || context === void 0 ? void 0 : context.getProp) || getProp;\n    setProp = (context === null || context === void 0 ? void 0 : context.setProp) || setProp;\n    getPath = (context === null || context === void 0 ? void 0 : context.getPath) || getPath;\n    warnIfStyleNotTrusted = (context === null || context === void 0 ? void 0 : context.warnIfStyleNotTrusted) || warnIfStyleNotTrusted;\n    return originalGlobalContext;\n  };\n}\n\nexport default setGlobalContext;\nexport { scheduleRevalidate, scheduleDestroy, scheduleDestroyed, toIterator, toBool, getProp, setProp, getPath, warnIfStyleNotTrusted, assertGlobalContextWasSet, testOverrideGlobalContext };","class Storage {\n  constructor() {\n    this.array = [];\n    this.next = 0;\n  }\n\n  add(element) {\n    let {\n      next: slot,\n      array\n    } = this;\n\n    if (slot === array.length) {\n      this.next++;\n    } else {\n      let prev = array[slot];\n      this.next = prev;\n    }\n\n    this.array[slot] = element;\n    return slot;\n  }\n\n  deref(pointer) {\n    return this.array[pointer];\n  }\n\n  drop(pointer) {\n    this.array[pointer] = this.next;\n    this.next = pointer;\n  }\n\n}\n\nclass Stack {\n  constructor(vec = []) {\n    this.vec = vec;\n  }\n\n  clone() {\n    return new Stack(this.vec.slice());\n  }\n\n  sliceFrom(start) {\n    return new Stack(this.vec.slice(start));\n  }\n\n  slice(start, end) {\n    return new Stack(this.vec.slice(start, end));\n  }\n\n  copy(from, to) {\n    this.vec[to] = this.vec[from];\n  } // TODO: how to model u64 argument?\n\n\n  writeRaw(pos, value) {\n    // TODO: Grow?\n    this.vec[pos] = value;\n  } // TODO: partially decoded enum?\n\n\n  getRaw(pos) {\n    return this.vec[pos];\n  }\n\n  reset() {\n    this.vec.length = 0;\n  }\n\n  len() {\n    return this.vec.length;\n  }\n\n}\n\nexport { Storage, Stack };","import { ConcreteBounds, DOMTreeConstruction, NewElementBuilder } from '@glimmer/runtime';\nimport createHTMLDocument from '@simple-dom/document';\n\nclass NodeDOMTreeConstruction extends DOMTreeConstruction {\n  constructor(doc) {\n    super(doc || createHTMLDocument());\n  } // override to prevent usage of `this.document` until after the constructor\n\n\n  setupUselessElement() {}\n\n  insertHTMLBefore(parent, reference, html) {\n    let raw = this.document.createRawHTMLSection(html);\n    parent.insertBefore(raw, reference);\n    return new ConcreteBounds(parent, raw, raw);\n  } // override to avoid SVG detection/work when in node (this is not needed in SSR)\n\n\n  createElement(tag) {\n    return this.document.createElement(tag);\n  } // override to avoid namespace shenanigans when in node (this is not needed in SSR)\n\n\n  setAttribute(element, name, value) {\n    element.setAttribute(name, value);\n  }\n\n}\n\nconst TEXT_NODE = 3;\nconst NEEDS_EXTRA_CLOSE = new WeakMap();\n\nfunction currentNode(cursor) {\n  let {\n    element,\n    nextSibling\n  } = cursor;\n\n  if (nextSibling === null) {\n    return element.lastChild;\n  } else {\n    return nextSibling.previousSibling;\n  }\n}\n\nclass SerializeBuilder extends NewElementBuilder {\n  constructor() {\n    super(...arguments);\n    this.serializeBlockDepth = 0;\n  }\n\n  __openBlock() {\n    let {\n      tagName\n    } = this.element;\n\n    if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      let depth = this.serializeBlockDepth++;\n\n      this.__appendComment(`%+b:${depth}%`);\n    }\n\n    super.__openBlock();\n  }\n\n  __closeBlock() {\n    let {\n      tagName\n    } = this.element;\n\n    super.__closeBlock();\n\n    if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      let depth = --this.serializeBlockDepth;\n\n      this.__appendComment(`%-b:${depth}%`);\n    }\n  }\n\n  __appendHTML(html) {\n    let {\n      tagName\n    } = this.element;\n\n    if (tagName === 'TITLE' || tagName === 'SCRIPT' || tagName === 'STYLE') {\n      return super.__appendHTML(html);\n    } // Do we need to run the html tokenizer here?\n\n\n    let first = this.__appendComment('%glmr%');\n\n    if (tagName === 'TABLE') {\n      let openIndex = html.indexOf('<');\n\n      if (openIndex > -1) {\n        let tr = html.slice(openIndex + 1, openIndex + 3);\n\n        if (tr === 'tr') {\n          html = `<tbody>${html}</tbody>`;\n        }\n      }\n    }\n\n    if (html === '') {\n      this.__appendComment('% %');\n    } else {\n      super.__appendHTML(html);\n    }\n\n    let last = this.__appendComment('%glmr%');\n\n    return new ConcreteBounds(this.element, first, last);\n  }\n\n  __appendText(string) {\n    let {\n      tagName\n    } = this.element;\n    let current = currentNode(this);\n\n    if (tagName === 'TITLE' || tagName === 'SCRIPT' || tagName === 'STYLE') {\n      return super.__appendText(string);\n    } else if (string === '') {\n      return this.__appendComment('% %');\n    } else if (current && current.nodeType === TEXT_NODE) {\n      this.__appendComment('%|%');\n    }\n\n    return super.__appendText(string);\n  }\n\n  closeElement() {\n    if (NEEDS_EXTRA_CLOSE.has(this.element)) {\n      NEEDS_EXTRA_CLOSE.delete(this.element);\n      super.closeElement();\n    }\n\n    return super.closeElement();\n  }\n\n  openElement(tag) {\n    if (tag === 'tr') {\n      if (this.element.tagName !== 'TBODY' && this.element.tagName !== 'THEAD' && this.element.tagName !== 'TFOOT') {\n        this.openElement('tbody'); // This prevents the closeBlock comment from being re-parented\n        // under the auto inserted tbody. Rehydration builder needs to\n        // account for the insertion since it is injected here and not\n        // really in the template.\n\n        NEEDS_EXTRA_CLOSE.set(this.constructing, true);\n        this.flushElement(null);\n      }\n    }\n\n    return super.openElement(tag);\n  }\n\n  pushRemoteElement(element, cursorId, insertBefore = null) {\n    let {\n      dom\n    } = this;\n    let script = dom.createElement('script');\n    script.setAttribute('glmr', cursorId);\n    dom.insertBefore(element, script, insertBefore);\n    return super.pushRemoteElement(element, cursorId, insertBefore);\n  }\n\n}\n\nfunction serializeBuilder(env, cursor) {\n  return SerializeBuilder.forInitialRender(env, cursor);\n}\n\nexport { NodeDOMTreeConstruction, serializeBuilder };","import { $v0, $fp, $sp, isMachineOp, $s0, $s1 } from '@glimmer/vm';\nimport { isSmallInt, exhausted, EMPTY_ARRAY, assertNever, dict, assign, Stack, encodeImmediate, unreachable, encodeHandle, unwrapTemplate } from '@glimmer/util';\nimport { patchStdlibs } from '@glimmer/program';\nimport { InstructionEncoderImpl } from '@glimmer/encoder';\n\nfunction arr(value) {\n  return {\n    type: 'array',\n    value\n  };\n}\n\nfunction strArray(value) {\n  return {\n    type: 'string-array',\n    value\n  };\n}\n\nfunction serializable(value) {\n  return {\n    type: 'serializable',\n    value\n  };\n}\n\nfunction other(value) {\n  return {\n    type: 'other',\n    value\n  };\n}\n\nfunction label(value) {\n  return {\n    type: 'label',\n    value\n  };\n}\n\nfunction immediate(value) {\n  return {\n    type: 'immediate',\n    value\n  };\n}\n\nfunction prim(value) {\n  return {\n    type: 'primitive',\n    value\n  };\n}\n\nconst DEFAULT_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: true,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  dynamicScope: true,\n  createCaller: false,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false\n};\nconst MINIMAL_CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  dynamicScope: false,\n  createCaller: false,\n  updateHook: false,\n  createInstance: false,\n  wrapped: false,\n  willDestroy: false\n};\n\nfunction resolveLayoutForTag(tag, {\n  resolver,\n  meta: {\n    owner\n  }\n}) {\n  let component = resolver.lookupComponent(tag, owner);\n  if (component === null) return component;\n  let {\n    handle,\n    compilable,\n    capabilities\n  } = component;\n  return {\n    handle,\n    compilable,\n    capabilities: capabilities || MINIMAL_CAPABILITIES\n  };\n}\n/**\n * Push a reference onto the stack corresponding to a statically known primitive\n * @param value A JavaScript primitive (undefined, null, boolean, number or string)\n */\n\n\nfunction PushPrimitiveReference(value) {\n  return [PushPrimitive(value), op(30\n  /* PrimitiveReference */\n  )];\n}\n/**\n * Push an encoded representation of a JavaScript primitive on the stack\n *\n * @param value A JavaScript primitive (undefined, null, boolean, number or string)\n */\n\n\nfunction PushPrimitive(primitive) {\n  let p = typeof primitive === 'number' && isSmallInt(primitive) ? immediate(primitive) : prim(primitive);\n  return op(29\n  /* Primitive */\n  , p);\n}\n/**\n * Invoke a foreign function (a \"helper\") based on a statically known handle\n *\n * @param compile.handle A handle\n * @param compile.params An optional list of expressions to compile\n * @param compile.hash An optional list of named arguments (name + expression) to compile\n */\n\n\nfunction Call({\n  handle,\n  params,\n  hash\n}) {\n  return [op(0\n  /* PushFrame */\n  ), op('SimpleArgs', {\n    params,\n    hash,\n    atNames: false\n  }), op(16\n  /* Helper */\n  , handle), op(1\n  /* PopFrame */\n  ), op(35\n  /* Fetch */\n  , $v0)];\n}\n/**\n * Evaluate statements in the context of new dynamic scope entries. Move entries from the\n * stack into named entries in the dynamic scope, then evaluate the statements, then pop\n * the dynamic scope\n *\n * @param names a list of dynamic scope names\n * @param block a function that returns a list of statements to evaluate\n */\n\n\nfunction DynamicScope(names, block) {\n  return [op(58\n  /* PushDynamicScope */\n  ), op(57\n  /* BindDynamicScope */\n  , strArray(names)), block(), op(59\n  /* PopDynamicScope */\n  )];\n}\n/**\n * Yield to a block located at a particular symbol location.\n *\n * @param to the symbol containing the block to yield to\n * @param params optional block parameters to yield to the block\n */\n\n\nfunction YieldBlock(to, params) {\n  return [op('SimpleArgs', {\n    params,\n    hash: null,\n    atNames: true\n  }), op(23\n  /* GetBlock */\n  , to), op(24\n  /* SpreadBlock */\n  ), op('Option', op(60\n  /* CompileBlock */\n  )), op(63\n  /* InvokeYield */\n  ), op(39\n  /* PopScope */\n  ), op(1\n  /* PopFrame */\n  )];\n}\n/**\n * Push an (optional) yieldable block onto the stack. The yieldable block must be known\n * statically at compile time.\n *\n * @param block An optional Compilable block\n */\n\n\nfunction PushYieldableBlock(block) {\n  return [PushSymbolTable(block && block.symbolTable), op(61\n  /* PushBlockScope */\n  ), PushCompilable(block)];\n}\n/**\n * Invoke a block that is known statically at compile time.\n *\n * @param block a Compilable block\n */\n\n\nfunction InvokeStaticBlock(block) {\n  return [op(0\n  /* PushFrame */\n  ), PushCompilable(block), op(60\n  /* CompileBlock */\n  ), op(2\n  /* InvokeVirtual */\n  ), op(1\n  /* PopFrame */\n  )];\n}\n/**\n * Invoke a static block, preserving some number of stack entries for use in\n * updating.\n *\n * @param block A compilable block\n * @param callerCount A number of stack entries to preserve\n */\n\n\nfunction InvokeStaticBlockWithStack(block, callerCount) {\n  let {\n    parameters\n  } = block.symbolTable;\n  let calleeCount = parameters.length;\n  let count = Math.min(callerCount, calleeCount);\n\n  if (count === 0) {\n    return InvokeStaticBlock(block);\n  }\n\n  let out = [];\n  out.push(op(0\n  /* PushFrame */\n  ));\n\n  if (count) {\n    out.push(op(38\n    /* ChildScope */\n    ));\n\n    for (let i = 0; i < count; i++) {\n      out.push(op(32\n      /* Dup */\n      , $fp, callerCount - i));\n      out.push(op(19\n      /* SetVariable */\n      , parameters[i]));\n    }\n  }\n\n  out.push(PushCompilable(block));\n  out.push(op(60\n  /* CompileBlock */\n  ));\n  out.push(op(2\n  /* InvokeVirtual */\n  ));\n\n  if (count) {\n    out.push(op(39\n    /* PopScope */\n    ));\n  }\n\n  out.push(op(1\n  /* PopFrame */\n  ));\n  return out;\n}\n\nfunction PushSymbolTable(table) {\n  if (table) {\n    return op(62\n    /* PushSymbolTable */\n    , serializable(table));\n  } else {\n    return PushPrimitive(null);\n  }\n}\n\nfunction PushCompilable(block) {\n  if (block === null) {\n    return PushPrimitive(null);\n  } else {\n    return op(28\n    /* Constant */\n    , other(block));\n  }\n}\n\nfunction ContentTypeSwitchCases(callback) {\n  // Setup the switch DSL\n  let clauses = [];\n  let count = 0;\n\n  function when(match, callback) {\n    clauses.push({\n      match,\n      callback,\n      label: `CLAUSE${count++}`\n    });\n  } // Call the callback\n\n\n  callback(when); // Emit the opcodes for the switch\n\n  let out = [op(68\n  /* Enter */\n  , 1), op(75\n  /* ContentType */\n  ), op('StartLabels')]; // First, emit the jump opcodes. We don't need a jump for the last\n  // opcode, since it bleeds directly into its clause.\n\n  for (let clause of clauses.slice(0, -1)) {\n    out.push(op(66\n    /* JumpEq */\n    , label(clause.label), clause.match));\n  } // Enumerate the clauses in reverse order. Earlier matches will\n  // require fewer checks.\n\n\n  for (let i = clauses.length - 1; i >= 0; i--) {\n    let clause = clauses[i];\n    out.push(op('Label', clause.label), op(33\n    /* Pop */\n    , 1), clause.callback()); // The first match is special: it is placed directly before the END\n    // label, so no additional jump is needed at the end of it.\n\n    if (i !== 0) {\n      out.push(op(4\n      /* Jump */\n      , label('END')));\n    }\n  }\n\n  out.push(op('Label', 'END'), op('StopLabels'), op(69\n  /* Exit */\n  ));\n  return out;\n}\n/**\n * A convenience for pushing some arguments on the stack and\n * running some code if the code needs to be re-executed during\n * updating execution if some of the arguments have changed.\n *\n * # Initial Execution\n *\n * The `args` function should push zero or more arguments onto\n * the stack and return the number of arguments pushed.\n *\n * The `body` function provides the instructions to execute both\n * during initial execution and during updating execution.\n *\n * Internally, this function starts by pushing a new frame, so\n * that the body can return and sets the return point ($ra) to\n * the ENDINITIAL label.\n *\n * It then executes the `args` function, which adds instructions\n * responsible for pushing the arguments for the block to the\n * stack. These arguments will be restored to the stack before\n * updating execution.\n *\n * Next, it adds the Enter opcode, which marks the current position\n * in the DOM, and remembers the current $pc (the next instruction)\n * as the first instruction to execute during updating execution.\n *\n * Next, it runs `body`, which adds the opcodes that should\n * execute both during initial execution and during updating execution.\n * If the `body` wishes to finish early, it should Jump to the\n * `FINALLY` label.\n *\n * Next, it adds the FINALLY label, followed by:\n *\n * - the Exit opcode, which finalizes the marked DOM started by the\n *   Enter opcode.\n * - the Return opcode, which returns to the current return point\n *   ($ra).\n *\n * Finally, it adds the ENDINITIAL label followed by the PopFrame\n * instruction, which restores $fp, $sp and $ra.\n *\n * # Updating Execution\n *\n * Updating execution for this `replayable` occurs if the `body` added an\n * assertion, via one of the `JumpIf`, `JumpUnless` or `AssertSame` opcodes.\n *\n * If, during updating executon, the assertion fails, the initial VM is\n * restored, and the stored arguments are pushed onto the stack. The DOM\n * between the starting and ending markers is cleared, and the VM's cursor\n * is set to the area just cleared.\n *\n * The return point ($ra) is set to -1, the exit instruction.\n *\n * Finally, the $pc is set to to the instruction saved off by the\n * Enter opcode during initial execution, and execution proceeds as\n * usual.\n *\n * The only difference is that when a `Return` instruction is\n * encountered, the program jumps to -1 rather than the END label,\n * and the PopFrame opcode is not needed.\n */\n\n\nfunction Replayable({\n  args,\n  body\n}) {\n  // Push the arguments onto the stack. The args() function\n  // tells us how many stack elements to retain for re-execution\n  // when updating.\n  let {\n    count,\n    actions\n  } = args(); // Start a new label frame, to give END and RETURN\n  // a unique meaning.\n\n  return [op('StartLabels'), op(0\n  /* PushFrame */\n  ), // If the body invokes a block, its return will return to\n  // END. Otherwise, the return in RETURN will return to END.\n  op(6\n  /* ReturnTo */\n  , label('ENDINITIAL')), actions, // Start a new updating closure, remembering `count` elements\n  // from the stack. Everything after this point, and before END,\n  // will execute both initially and to update the block.\n  //\n  // The enter and exit opcodes also track the area of the DOM\n  // associated with this block. If an assertion inside the block\n  // fails (for example, the test value changes from true to false\n  // in an #if), the DOM is cleared and the program is re-executed,\n  // restoring `count` elements to the stack and executing the\n  // instructions between the enter and exit.\n  op(68\n  /* Enter */\n  , count), // Evaluate the body of the block. The body of the block may\n  // return, which will jump execution to END during initial\n  // execution, and exit the updating routine.\n  body(), // All execution paths in the body should run the FINALLY once\n  // they are done. It is executed both during initial execution\n  // and during updating execution.\n  op('Label', 'FINALLY'), // Finalize the DOM.\n  op(69\n  /* Exit */\n  ), // In initial execution, this is a noop: it returns to the\n  // immediately following opcode. In updating execution, this\n  // exits the updating routine.\n  op(5\n  /* Return */\n  ), // Cleanup code for the block. Runs on initial execution\n  // but not on updating.\n  op('Label', 'ENDINITIAL'), op(1\n  /* PopFrame */\n  ), op('StopLabels')];\n}\n/**\n * A specialized version of the `replayable` convenience that allows the\n * caller to provide different code based upon whether the item at\n * the top of the stack is true or false.\n *\n * As in `replayable`, the `ifTrue` and `ifFalse` code can invoke `return`.\n *\n * During the initial execution, a `return` will continue execution\n * in the cleanup code, which finalizes the current DOM block and pops\n * the current frame.\n *\n * During the updating execution, a `return` will exit the updating\n * routine, as it can reuse the DOM block and is always only a single\n * frame deep.\n */\n\n\nfunction ReplayableIf({\n  args,\n  ifTrue,\n  ifFalse\n}) {\n  return Replayable({\n    args,\n    body: () => {\n      let out = [// If the conditional is false, jump to the ELSE label.\n      op(65\n      /* JumpUnless */\n      , label('ELSE')), // Otherwise, execute the code associated with the true branch.\n      ifTrue(), // We're done, so return. In the initial execution, this runs\n      // the cleanup code. In the updating VM, it exits the updating\n      // routine.\n      op(4\n      /* Jump */\n      , label('FINALLY')), op('Label', 'ELSE')]; // If the conditional is false, and code associatied ith the\n      // false branch was provided, execute it. If there was no code\n      // associated with the false branch, jumping to the else statement\n      // has no other behavior.\n\n      if (ifFalse) {\n        out.push(ifFalse());\n      }\n\n      return out;\n    }\n  });\n}\n\nfunction pushBuilderOp(context, op) {\n  let {\n    encoder\n  } = context;\n\n  switch (op.op) {\n    case \"Option\"\n    /* Option */\n    :\n      return concat(context, option$1(op));\n\n    case \"Label\"\n    /* Label */\n    :\n      return encoder.label(op.op1);\n\n    case \"StartLabels\"\n    /* StartLabels */\n    :\n      return encoder.startLabels();\n\n    case \"StopLabels\"\n    /* StopLabels */\n    :\n      return encoder.stopLabels();\n\n    default:\n      return exhausted(op);\n  }\n}\n\nfunction option$1(op) {\n  let value = op.op1;\n  return value === null ? NONE : value;\n}\n\nfunction pushCompileOp(context, action) {\n  concatStatements(context, compileOp(context, action));\n}\n\nfunction compileOp(context, action) {\n  switch (action.op) {\n    case \"CompileBlock\"\n    /* CompileBlock */\n    :\n      return CompileBlockOp(context, action);\n\n    case \"CompileInline\"\n    /* CompileInline */\n    :\n      return CompileInlineOp(context, action);\n\n    case \"DynamicComponent\"\n    /* DynamicComponent */\n    :\n      return DynamicComponent(context, action);\n\n    case \"IfResolvedComponent\"\n    /* IfResolvedComponent */\n    :\n      return IfResolvedComponent(context, action);\n\n    default:\n      return exhausted(action);\n  }\n}\n\nfunction CompileBlockOp(context, op) {\n  return compileBlock(op.op1, context);\n}\n\nfunction CompileInlineOp(context, op) {\n  let {\n    inline,\n    ifUnhandled\n  } = op.op1;\n  let returned = compileInline(inline, context);\n\n  if (isHandled(returned)) {\n    return returned;\n  } else {\n    return ifUnhandled(inline);\n  }\n}\n\nfunction DynamicComponent(context, action) {\n  let {\n    definition,\n    attrs,\n    params,\n    args,\n    blocks,\n    atNames,\n    curried\n  } = action.op1;\n  let attrsBlock = attrs && attrs.length > 0 ? compilableBlock(attrs, context.meta) : null;\n  let compiled = Array.isArray(blocks) || blocks === null ? namedBlocks(blocks, context.meta) : blocks;\n  return InvokeDynamicComponent(context.meta, {\n    definition,\n    attrs: attrsBlock,\n    params,\n    hash: args,\n    atNames,\n    blocks: compiled,\n    curried\n  });\n}\n\nfunction IfResolvedComponent(context, action) {\n  let {\n    name,\n    attrs,\n    blocks,\n    staticTemplate,\n    dynamicTemplate,\n    orElse\n  } = action.op1;\n  let component = resolveLayoutForTag(name, {\n    resolver: context.syntax.program.resolver,\n    meta: context.meta\n  });\n  let {\n    meta\n  } = context;\n\n  if (component !== null) {\n    let {\n      handle,\n      capabilities,\n      compilable: compilable$$1\n    } = component;\n    let attrsBlock = compilableBlock(attrs, meta);\n    let compilableBlocks = namedBlocks(blocks, meta);\n\n    if (compilable$$1 !== null) {\n      return staticTemplate(handle, capabilities, compilable$$1, {\n        attrs: attrsBlock,\n        blocks: compilableBlocks\n      });\n    } else {\n      return dynamicTemplate(handle, capabilities, {\n        attrs: attrsBlock,\n        blocks: compilableBlocks\n      });\n    }\n  } else if (orElse) {\n    return orElse();\n  } else {\n    throw new Error(`Compile Error: Cannot find component ${name}`);\n  }\n}\n\nfunction pushOp(encoder, constants, op) {\n  if (op.op3 !== undefined) {\n    encoder.push(constants, op.op, op.op1, op.op2, op.op3);\n  } else if (op.op2 !== undefined) {\n    encoder.push(constants, op.op, op.op1, op.op2);\n  } else if (op.op1 !== undefined) {\n    encoder.push(constants, op.op, op.op1);\n  } else {\n    encoder.push(constants, op.op);\n  }\n}\n\nclass Compilers {\n  constructor() {\n    this.names = {};\n    this.funcs = [];\n  }\n\n  add(name, func) {\n    this.names[name] = this.funcs.push(func) - 1;\n  }\n\n  compile(sexp, meta) {\n    let name = sexp[0];\n    let index = this.names[name];\n    let func = this.funcs[index];\n    return func(sexp, meta);\n  }\n\n}\n\nconst EXPRESSIONS = new Compilers();\nEXPRESSIONS.add(31\n/* Concat */\n, ([, parts]) => {\n  let out = [];\n\n  for (let part of parts) {\n    out.push(op('Expr', part));\n  }\n\n  out.push(op(27\n  /* Concat */\n  , parts.length));\n  return out;\n});\nEXPRESSIONS.add(30\n/* Call */\n, ([, name, params, hash], meta) => {\n  // TODO: triage this in the WF compiler\n  let start = 0;\n  let offset = 0;\n\n  if (isComponent(name, meta)) {\n    if (!params || params.length === 0) {\n      return op('Error', {\n        problem: 'component helper requires at least one argument',\n        start: start,\n        end: start + offset\n      });\n    }\n\n    let [definition, ...restArgs] = params;\n    return curryComponent({\n      definition,\n      params: restArgs,\n      hash,\n      atNames: false\n    }, meta.owner);\n  }\n\n  let nameOrError = expectString(name, meta, 'Expected call head to be a string');\n\n  if (typeof nameOrError !== 'string') {\n    return nameOrError;\n  }\n\n  return op('IfResolved', {\n    kind: \"Helper\"\n    /* Helper */\n    ,\n    name: nameOrError,\n    andThen: handle => Call({\n      handle,\n      params,\n      hash\n    }),\n    span: {\n      start,\n      end: start + offset\n    }\n  });\n});\n\nfunction isGetContextualFree(opcode) {\n  return opcode[0] >= 34\n  /* GetContextualFreeStart */\n  ;\n}\n\nfunction isComponent(expr, meta) {\n  if (!Array.isArray(expr)) {\n    return false;\n  }\n\n  if (isGetContextualFree(expr)) {\n    let head = expr[1];\n\n    if (meta.upvars && meta.upvars[head] === 'component') {\n      return true;\n    } else {\n      return false;\n    }\n  }\n\n  return false;\n}\n\nEXPRESSIONS.add(32\n/* GetSymbol */\n, ([, sym, path]) => withPath(op(21\n/* GetVariable */\n, sym), path));\nEXPRESSIONS.add(33\n/* GetFree */\n, ([, sym, path]) => withPath(op('ResolveFree', sym), path));\nEXPRESSIONS.add(34\n/* GetFreeInAppendSingleId */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 0\n  /* AppendSingleId */\n\n}), path));\nEXPRESSIONS.add(35\n/* GetFreeInExpression */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 1\n  /* Expression */\n\n}), path));\nEXPRESSIONS.add(36\n/* GetFreeInCallHead */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 2\n  /* CallHead */\n\n}), path));\nEXPRESSIONS.add(37\n/* GetFreeInBlockHead */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 3\n  /* BlockHead */\n\n}), path));\nEXPRESSIONS.add(38\n/* GetFreeInModifierHead */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 4\n  /* ModifierHead */\n\n}), path));\nEXPRESSIONS.add(39\n/* GetFreeInComponentHead */\n, ([, sym, path]) => withPath(op('ResolveContextualFree', {\n  freeVar: sym,\n  context: 5\n  /* ComponentHead */\n\n}), path));\n\nfunction withPath(expr, path) {\n  if (path === undefined || path.length === 0) return expr;\n  if (!Array.isArray(expr)) expr = [expr];\n\n  for (let i = 0; i < path.length; i++) {\n    expr.push(op(22\n    /* GetProperty */\n    , path[i]));\n  }\n\n  return expr;\n}\n\nEXPRESSIONS.add(29\n/* Undefined */\n, () => PushPrimitiveReference(undefined));\nEXPRESSIONS.add(27\n/* HasBlock */\n, ([, block]) => {\n  return [op('Expr', block), op(25\n  /* HasBlock */\n  )];\n});\nEXPRESSIONS.add(28\n/* HasBlockParams */\n, ([, block]) => [op('Expr', block), op(24\n/* SpreadBlock */\n), op(60\n/* CompileBlock */\n), op(26\n/* HasBlockParams */\n)]);\n\nfunction pushResolutionOp(encoder, context, operation, constants) {\n  switch (operation.op) {\n    case \"SimpleArgs\"\n    /* SimpleArgs */\n    :\n      concatExpressions(encoder, context, compileSimpleArgs(operation.op1.params, operation.op1.hash, operation.op1.atNames), constants);\n      break;\n\n    case \"Expr\"\n    /* Expr */\n    :\n      concatExpressions(encoder, context, expr(operation.op1, context.meta), constants);\n      break;\n\n    case \"IfResolved\"\n    /* IfResolved */\n    :\n      {\n        concatExpressions(encoder, context, ifResolved(context, operation), constants);\n        break;\n      }\n\n    case \"ResolveFree\"\n    /* ResolveFree */\n    :\n      {\n        throw new Error('Unimplemented HighLevelResolutionOpcode.ResolveFree');\n      }\n\n    case \"ResolveContextualFree\"\n    /* ResolveContextualFree */\n    :\n      {\n        let {\n          freeVar,\n          context: expressionContext\n        } = operation.op1;\n\n        if (context.meta.asPartial) {\n          let name = context.meta.upvars[freeVar];\n          concatExpressions(encoder, context, [op(102\n          /* ResolveMaybeLocal */\n          , name)], constants);\n          break;\n        }\n\n        switch (expressionContext) {\n          case 1\n          /* Expression */\n          :\n            {\n              // in classic mode, this is always a this-fallback\n              let name = context.meta.upvars[freeVar];\n              concatExpressions(encoder, context, [op(21\n              /* GetVariable */\n              , 0), op(22\n              /* GetProperty */\n              , name)], constants);\n              break;\n            }\n\n          case 0\n          /* AppendSingleId */\n          :\n            {\n              let resolver = context.syntax.program.resolver;\n              let name = context.meta.upvars[freeVar];\n              let resolvedHelper = resolver.lookupHelper(name, context.meta.owner);\n              let expressions;\n\n              if (resolvedHelper) {\n                expressions = Call({\n                  handle: resolvedHelper,\n                  params: null,\n                  hash: null\n                });\n              } else {\n                // in classic mode, this is always a this-fallback\n                expressions = [op(21\n                /* GetVariable */\n                , 0), op(22\n                /* GetProperty */\n                , name)];\n              }\n\n              concatExpressions(encoder, context, expressions, constants);\n              break;\n            }\n\n          default:\n            throw new Error(`unimplemented: Can't evaluate expression in context ${expressionContext}`);\n        }\n\n        break;\n      }\n\n    default:\n      return exhausted(operation);\n  }\n}\n\nfunction expr(expression$$1, meta$$1) {\n  if (Array.isArray(expression$$1)) {\n    return EXPRESSIONS.compile(expression$$1, meta$$1);\n  } else {\n    return [PushPrimitive(expression$$1), op(30\n    /* PrimitiveReference */\n    )];\n  }\n}\n\nfunction compileSimpleArgs(params, hash, atNames) {\n  let out = [];\n  let {\n    count,\n    actions\n  } = CompilePositional(params);\n  out.push(actions);\n  let flags = count << 4;\n  if (atNames) flags |= 0b1000;\n  let names = EMPTY_ARRAY;\n\n  if (hash) {\n    names = hash[0];\n    let val = hash[1];\n\n    for (let i = 0; i < val.length; i++) {\n      out.push(op('Expr', val[i]));\n    }\n  }\n\n  out.push(op(82\n  /* PushArgs */\n  , strArray(names), strArray(EMPTY_ARRAY), flags));\n  return out;\n}\n\nfunction ifResolved(context, {\n  op1\n}) {\n  let {\n    kind,\n    name,\n    andThen,\n    orElse,\n    span\n  } = op1;\n  let resolved = resolve(context.syntax.program.resolver, kind, name, context.meta.owner);\n\n  if (resolved !== null) {\n    return andThen(resolved);\n  } else if (orElse) {\n    return orElse();\n  } else {\n    return error(`Unexpected ${kind} ${name}`, span.start, span.end);\n  }\n}\n\nfunction resolve(resolver, kind, name, owner) {\n  switch (kind) {\n    case \"Modifier\"\n    /* Modifier */\n    :\n      return resolver.lookupModifier(name, owner);\n\n    case \"Helper\"\n    /* Helper */\n    :\n      return resolver.lookupHelper(name, owner);\n\n    case \"ComponentDefinition\"\n    /* ComponentDefinition */\n    :\n      {\n        let component = resolver.lookupComponent(name, owner);\n        return component && component.handle;\n      }\n  }\n}\n\nconst NONE = {\n  'no-action': true\n};\nconst UNHANDLED = {\n  'not-handled': true\n};\n\nfunction isNoAction(actions) {\n  return actions && !!actions['no-action'];\n}\n\nfunction isHandled(actions) {\n  return !actions || !actions['not-handled'];\n}\n\nfunction concat(context, action) {\n  if (isNoAction(action)) {\n    return;\n  } else if (Array.isArray(action)) {\n    for (let item of action) {\n      concat(context, item);\n    }\n  } else if (action.type === 'Simple') {\n    pushBuilderOp(context, action);\n  } else {\n    pushOp(context.encoder, context.syntax.program.constants, action);\n  }\n}\n\nfunction concatExpressions(encoder, context, action, constants) {\n  if (isNoAction(action)) {\n    return;\n  } else if (Array.isArray(action)) {\n    for (let item of action) {\n      concatExpressions(encoder, context, item, constants);\n    }\n  } else if (action.type === 'Number') {\n    pushOp(encoder, constants, action);\n  } else if (action.type === 'Resolution') {\n    pushResolutionOp(encoder, context, action, constants);\n  } else if (action.type === 'Simple') {\n    pushBuilderOp(context, action);\n  } else if (action.type === 'Error') {\n    encoder.error({\n      problem: action.op1.problem,\n      span: {\n        start: action.op1.start,\n        end: action.op1.end\n      }\n    });\n  } else {\n    throw assertNever(action, 'unexpected action kind');\n  }\n}\n\nfunction concatStatements(context, action) {\n  if (isNoAction(action)) {\n    return;\n  } else if (Array.isArray(action)) {\n    for (let item of action) {\n      concatStatements(context, item);\n    }\n  } else if (action.type === 'Number') {\n    pushOp(context.encoder, context.syntax.program.constants, action);\n  } else {\n    if (action.type === 'Compile') {\n      pushCompileOp(context, action);\n    } else if (action.type === 'Resolution') {\n      pushResolutionOp(context.encoder, context, action, context.syntax.program.constants);\n    } else if (action.type === 'Simple') {\n      pushBuilderOp(context, action);\n    } else if (action.type === 'Error') {} else {\n      throw assertNever(action, `unexpected action type`);\n    }\n  }\n}\n\nfunction populateBuiltins(blocks, inlines) {\n  blocks.add('if', (params, _hash, blocks) => {\n    if (!params || params.length !== 1) {\n      throw new Error(`SYNTAX ERROR: #if requires a single argument`);\n    }\n\n    return ReplayableIf({\n      args() {\n        return {\n          count: 1,\n          actions: [op('Expr', params[0]), op(70\n          /* ToBoolean */\n          )]\n        };\n      },\n\n      ifTrue() {\n        return InvokeStaticBlock(blocks.get('default'));\n      },\n\n      ifFalse() {\n        if (blocks.has('else')) {\n          return InvokeStaticBlock(blocks.get('else'));\n        } else {\n          return NONE;\n        }\n      }\n\n    });\n  });\n  blocks.add('unless', (params, _hash, blocks) => {\n    if (!params || params.length !== 1) {\n      throw new Error(`SYNTAX ERROR: #unless requires a single argument`);\n    }\n\n    return ReplayableIf({\n      args() {\n        return {\n          count: 1,\n          actions: [op('Expr', params[0]), op(70\n          /* ToBoolean */\n          )]\n        };\n      },\n\n      ifTrue() {\n        if (blocks.has('else')) {\n          return InvokeStaticBlock(blocks.get('else'));\n        } else {\n          return NONE;\n        }\n      },\n\n      ifFalse() {\n        return InvokeStaticBlock(blocks.get('default'));\n      }\n\n    });\n  });\n  blocks.add('with', (params, _hash, blocks) => {\n    if (!params || params.length !== 1) {\n      throw new Error(`SYNTAX ERROR: #with requires a single argument`);\n    }\n\n    return ReplayableIf({\n      args() {\n        return {\n          count: 2,\n          actions: [op('Expr', params[0]), op(32\n          /* Dup */\n          , $sp, 0), op(70\n          /* ToBoolean */\n          )]\n        };\n      },\n\n      ifTrue() {\n        return InvokeStaticBlockWithStack(blocks.get('default'), 1);\n      },\n\n      ifFalse() {\n        if (blocks.has('else')) {\n          return InvokeStaticBlock(blocks.get('else'));\n        } else {\n          return NONE;\n        }\n      }\n\n    });\n  });\n  blocks.add('let', (params, _hash, blocks) => {\n    if (!params) {\n      return error('let requires arguments', 0, 0);\n    }\n\n    let {\n      count,\n      actions\n    } = CompilePositional(params);\n    return [actions, InvokeStaticBlockWithStack(blocks.get('default'), count)];\n  });\n  blocks.add('each', (params, hash, blocks) => {\n    return Replayable({\n      args() {\n        let actions;\n\n        if (hash && hash[0][0] === 'key') {\n          actions = [op('Expr', hash[1][0])];\n        } else {\n          actions = [PushPrimitiveReference(null)];\n        }\n\n        actions.push(op('Expr', params[0]));\n        return {\n          count: 2,\n          actions\n        };\n      },\n\n      body() {\n        let out = [op(71\n        /* EnterList */\n        , label('BODY'), label('ELSE')), op(0\n        /* PushFrame */\n        ), op(32\n        /* Dup */\n        , $fp, 1), op(6\n        /* ReturnTo */\n        , label('ITER')), op('Label', 'ITER'), op(73\n        /* Iterate */\n        , label('BREAK')), op('Label', 'BODY'), InvokeStaticBlockWithStack(blocks.get('default'), 2), op(33\n        /* Pop */\n        , 2), op(4\n        /* Jump */\n        , label('FINALLY')), op('Label', 'BREAK'), op(1\n        /* PopFrame */\n        ), op(72\n        /* ExitList */\n        ), op(4\n        /* Jump */\n        , label('FINALLY')), op('Label', 'ELSE')];\n\n        if (blocks.has('else')) {\n          out.push(InvokeStaticBlock(blocks.get('else')));\n        }\n\n        return out;\n      }\n\n    });\n  });\n  blocks.add('in-element', (params, hash, blocks) => {\n    if (!params || params.length !== 1) {\n      throw new Error(`SYNTAX ERROR: #in-element requires a single argument`);\n    }\n\n    return ReplayableIf({\n      args() {\n        let [keys, values] = hash;\n        let actions = [];\n\n        for (let i = 0; i < keys.length; i++) {\n          let key = keys[i];\n\n          if (key === 'guid' || key === 'insertBefore') {\n            actions.push(op('Expr', values[i]));\n          } else {\n            throw new Error(`SYNTAX ERROR: #in-element does not take a \\`${keys[0]}\\` option`);\n          }\n        }\n\n        actions.push(op('Expr', params[0]), op(32\n        /* Dup */\n        , $sp, 0));\n        return {\n          count: 4,\n          actions\n        };\n      },\n\n      ifTrue() {\n        return [op(49\n        /* PushRemoteElement */\n        ), InvokeStaticBlock(blocks.get('default')), op(55\n        /* PopRemoteElement */\n        )];\n      }\n\n    });\n  });\n  blocks.add('-with-dynamic-vars', (_params, hash, blocks) => {\n    if (hash) {\n      let [names, expressions] = hash;\n      let {\n        actions\n      } = CompilePositional(expressions);\n      return [actions, DynamicScope(names, () => {\n        return InvokeStaticBlock(blocks.get('default'));\n      })];\n    } else {\n      return InvokeStaticBlock(blocks.get('default'));\n    }\n  });\n  blocks.add('component', (_params, hash, blocks, context) => {\n    let tag = _params[0];\n\n    if (typeof tag === 'string') {\n      let returned = StaticComponentHelper(context, _params[0], hash, blocks.get('default'));\n      if (isHandled(returned)) return returned;\n    }\n\n    let [definition, ...params] = _params;\n    return op('DynamicComponent', {\n      definition,\n      attrs: null,\n      params,\n      args: hash,\n      atNames: false,\n      blocks,\n      curried: false\n    });\n  });\n  inlines.add('component', (_name, _params, hash, context) => {\n    let tag = _params && _params[0];\n\n    if (typeof tag === 'string') {\n      let returned = StaticComponentHelper(context, tag, hash, null);\n      if (returned !== UNHANDLED) return returned;\n    }\n\n    let [definition, ...params] = _params;\n    return InvokeDynamicComponent(context.meta, {\n      definition,\n      attrs: null,\n      params,\n      hash,\n      atNames: false,\n      blocks: EMPTY_BLOCKS,\n      curried: false\n    });\n  });\n  return {\n    blocks,\n    inlines\n  };\n}\n\nclass MacrosImpl {\n  constructor() {\n    let {\n      blocks,\n      inlines\n    } = populateBuiltins(new Blocks(), new Inlines());\n    this.blocks = blocks;\n    this.inlines = inlines;\n  }\n\n}\n\nclass Blocks {\n  constructor() {\n    this.names = dict();\n    this.funcs = [];\n  }\n\n  add(name, func) {\n    this.funcs.push(func);\n    this.names[name] = this.funcs.length - 1;\n  }\n\n  addMissing(func) {\n    this.missing = func;\n  }\n\n  compile(name, params, hash, blocks, context) {\n    let index = this.names[name];\n    let macroContext = {\n      resolver: context.syntax.program.resolver,\n      meta: context.meta\n    };\n\n    if (index === undefined) {\n      let func = this.missing;\n      let handled = func(name, params, hash, blocks, macroContext);\n      return handled;\n    } else {\n      let func = this.funcs[index];\n      return func(params, hash, blocks, macroContext);\n    }\n  }\n\n}\n\nclass Inlines {\n  constructor() {\n    this.names = dict();\n    this.funcs = [];\n  }\n\n  add(name, func) {\n    this.funcs.push(func);\n    this.names[name] = this.funcs.length - 1;\n  }\n\n  addMissing(func) {\n    this.missing = func;\n  }\n\n  compile(sexp, context) {\n    let [, value] = sexp; // TODO: Fix this so that expression macros can return\n    // things like components, so that {{component foo}}\n    // is the same as {{(component foo)}}\n\n    if (!Array.isArray(value)) return UNHANDLED;\n    let name;\n    let params;\n    let hash;\n\n    if (value[0] === 30\n    /* Call */\n    ) {\n        let nameOrError = expectString(value[1], context.meta, 'Expected head of call to be a string');\n\n        if (typeof nameOrError !== 'string') {\n          return nameOrError;\n        }\n\n        name = nameOrError;\n        params = value[2];\n        hash = value[3];\n      } else if (isGet(value)) {\n      let pathName = simplePathName(value, context.meta);\n\n      if (pathName === null) {\n        return UNHANDLED;\n      }\n\n      name = pathName;\n      params = null;\n      hash = null;\n    } else {\n      return UNHANDLED;\n    }\n\n    let index = this.names[name];\n    let macroContext = {\n      resolver: context.syntax.program.resolver,\n      meta: context.meta\n    };\n\n    if (index === undefined && this.missing) {\n      let func = this.missing;\n      return func(name, params, hash, macroContext);\n    } else if (index !== undefined) {\n      let func = this.funcs[index];\n      return func(name, params, hash, macroContext);\n    } else {\n      return UNHANDLED;\n    }\n  }\n\n}\n\nfunction syntaxCompilationContext(artifacts, resolver, macros = new MacrosImpl()) {\n  return {\n    program: new CompileTimeCompilationContextImpl(artifacts, resolver),\n    macros\n  };\n}\n\nfunction templateCompilationContext(syntax, meta) {\n  let encoder = new EncoderImpl();\n  return {\n    syntax,\n    encoder,\n    meta\n  };\n}\n\nconst STATEMENTS = new Compilers();\nconst INFLATE_ATTR_TABLE = ['class', 'id', 'value', 'name', 'type', 'style', 'href'];\nconst INFLATE_TAG_TABLE = ['div', 'span', 'p', 'a'];\n\nfunction inflateTagName(tagName) {\n  return typeof tagName === 'string' ? tagName : INFLATE_TAG_TABLE[tagName];\n}\n\nfunction inflateAttrName(attrName) {\n  return typeof attrName === 'string' ? attrName : INFLATE_ATTR_TABLE[attrName];\n}\n\nSTATEMENTS.add(3\n/* Comment */\n, sexp => op(41\n/* Comment */\n, sexp[1]));\nSTATEMENTS.add(13\n/* CloseElement */\n, () => op(54\n/* CloseElement */\n));\nSTATEMENTS.add(12\n/* FlushElement */\n, () => op(53\n/* FlushElement */\n));\nSTATEMENTS.add(4\n/* Modifier */\n, (sexp, meta) => {\n  let [, name, params, hash] = sexp;\n  let stringName = expectString(name, meta, 'Expected modifier head to be a string');\n\n  if (typeof stringName !== 'string') {\n    return stringName;\n  }\n\n  return op('IfResolved', {\n    kind: \"Modifier\"\n    /* Modifier */\n    ,\n    name: stringName,\n    andThen: handle => [op(0\n    /* PushFrame */\n    ), op('SimpleArgs', {\n      params,\n      hash,\n      atNames: false\n    }), op(56\n    /* Modifier */\n    , handle), op(1\n    /* PopFrame */\n    )],\n    span: {\n      start: 0,\n      end: 0\n    }\n  });\n});\nSTATEMENTS.add(14\n/* StaticAttr */\n, ([, name, value, namespace]) => op(50\n/* StaticAttr */\n, inflateAttrName(name), value, namespace !== null && namespace !== void 0 ? namespace : null));\nSTATEMENTS.add(24\n/* StaticComponentAttr */\n, ([, name, value, namespace]) => op(105\n/* StaticComponentAttr */\n, inflateAttrName(name), value, namespace !== null && namespace !== void 0 ? namespace : null));\nSTATEMENTS.add(15\n/* DynamicAttr */\n, ([, name, value, namespace]) => [op('Expr', value), op(51\n/* DynamicAttr */\n, inflateAttrName(name), false, namespace !== null && namespace !== void 0 ? namespace : null)]);\nSTATEMENTS.add(22\n/* TrustingDynamicAttr */\n, ([, name, value, namespace]) => [op('Expr', value), op(51\n/* DynamicAttr */\n, inflateAttrName(name), true, namespace !== null && namespace !== void 0 ? namespace : null)]);\nSTATEMENTS.add(16\n/* ComponentAttr */\n, ([, name, value, namespace]) => [op('Expr', value), op(52\n/* ComponentAttr */\n, inflateAttrName(name), false, namespace !== null && namespace !== void 0 ? namespace : null)]);\nSTATEMENTS.add(23\n/* TrustingComponentAttr */\n, ([, name, value, namespace]) => [op('Expr', value), op(52\n/* ComponentAttr */\n, inflateAttrName(name), true, namespace !== null && namespace !== void 0 ? namespace : null)]);\nSTATEMENTS.add(10\n/* OpenElement */\n, ([, tag]) => {\n  return op(47\n  /* OpenElement */\n  , inflateTagName(tag));\n});\nSTATEMENTS.add(11\n/* OpenElementWithSplat */\n, ([, tag]) => {\n  return [op(89\n  /* PutComponentOperations */\n  ), op(47\n  /* OpenElement */\n  , inflateTagName(tag))];\n});\nSTATEMENTS.add(8\n/* Component */\n, ([, tag, attrs, args, blocks]) => {\n  if (typeof tag === 'string') {\n    return op('IfResolvedComponent', {\n      name: tag,\n      attrs,\n      blocks,\n      staticTemplate: (layoutHandle, capabilities, template, {\n        blocks,\n        attrs\n      }) => {\n        return [op(77\n        /* PushComponentDefinition */\n        , layoutHandle), InvokeStaticComponent({\n          capabilities,\n          layout: template,\n          attrs,\n          params: null,\n          hash: args,\n          blocks\n        })];\n      },\n      dynamicTemplate: (layoutHandle, capabilities, {\n        attrs,\n        blocks\n      }) => {\n        return [op(77\n        /* PushComponentDefinition */\n        , layoutHandle), InvokeComponent({\n          capabilities,\n          attrs,\n          params: null,\n          hash: args,\n          atNames: true,\n          blocks\n        })];\n      }\n    });\n  } else {\n    return op('DynamicComponent', {\n      definition: tag,\n      attrs,\n      params: null,\n      args,\n      blocks,\n      atNames: true,\n      curried: true\n    });\n  }\n});\nSTATEMENTS.add(19\n/* Partial */\n, ([, name, evalInfo], meta) => ReplayableIf({\n  args() {\n    return {\n      count: 2,\n      actions: [op('Expr', name), op(32\n      /* Dup */\n      , $sp, 0)]\n    };\n  },\n\n  ifTrue() {\n    return [op(101\n    /* InvokePartial */\n    , other(meta.owner), strArray(meta.evalSymbols), arr(evalInfo)), op(39\n    /* PopScope */\n    ), op(1\n    /* PopFrame */\n    )];\n  }\n\n}));\nSTATEMENTS.add(18\n/* Yield */\n, ([, to, params]) => YieldBlock(to, params));\nSTATEMENTS.add(17\n/* AttrSplat */\n, ([, to]) => YieldBlock(to, EMPTY_ARRAY));\nSTATEMENTS.add(26\n/* Debugger */\n, ([, evalInfo], meta) => op(103\n/* Debugger */\n, strArray(meta.evalSymbols), arr(evalInfo)));\nSTATEMENTS.add(1\n/* Append */\n, sexp => {\n  let [, value] = sexp;\n  return op('CompileInline', {\n    inline: sexp,\n    ifUnhandled: () => [op(0\n    /* PushFrame */\n    ), op(\"Expr\"\n    /* Expr */\n    , value), op(3\n    /* InvokeStatic */\n    , {\n      type: 'stdlib',\n      value: 'cautious-append'\n    }), op(1\n    /* PopFrame */\n    )]\n  });\n});\nSTATEMENTS.add(2\n/* TrustingAppend */\n, sexp => {\n  let [, value] = sexp;\n\n  if (typeof value === 'string') {\n    return op(40\n    /* Text */\n    , value);\n  } // macro was ignoring trusting flag doesn't seem like {{{}}} should\n  // even be passed to macros, there is no {{{component}}}\n\n\n  return [op(0\n  /* PushFrame */\n  ), op(\"Expr\"\n  /* Expr */\n  , value), op(3\n  /* InvokeStatic */\n  , {\n    type: 'stdlib',\n    value: 'trusting-append'\n  }), op(1\n  /* PopFrame */\n  )];\n});\nSTATEMENTS.add(6\n/* Block */\n, sexp => {\n  return op('CompileBlock', sexp);\n});\nconst PLACEHOLDER_HANDLE = -1;\n\nclass CompilableTemplateImpl {\n  constructor(statements, meta$$1, // Part of CompilableTemplate\n  symbolTable) {\n    this.statements = statements;\n    this.meta = meta$$1;\n    this.symbolTable = symbolTable;\n    this.compiled = null;\n  } // Part of CompilableTemplate\n\n\n  compile(context) {\n    return maybeCompile(this, context);\n  }\n\n}\n\nfunction compilable(layout) {\n  let block = layout.block;\n  return new CompilableTemplateImpl(block.statements, meta(layout), {\n    symbols: block.symbols,\n    hasEval: block.hasEval\n  });\n}\n\nfunction maybeCompile(compilable, context) {\n  if (compilable.compiled !== null) return compilable.compiled;\n  compilable.compiled = PLACEHOLDER_HANDLE;\n  let {\n    statements,\n    meta: meta$$1\n  } = compilable;\n  let result = compileStatements(statements, meta$$1, context);\n  patchStdlibs(context.program);\n  compilable.compiled = result;\n  return result;\n}\n\nfunction compileStatements(statements, meta$$1, syntaxContext) {\n  let sCompiler = STATEMENTS;\n  let context = templateCompilationContext(syntaxContext, meta$$1);\n\n  for (let i = 0; i < statements.length; i++) {\n    concatStatements(context, sCompiler.compile(statements[i], context.meta));\n  }\n\n  let handle = context.encoder.commit(syntaxContext.program.heap, meta$$1.size);\n  return handle;\n}\n\nfunction compilableBlock(overloadBlock, containing) {\n  let block = Array.isArray(overloadBlock) ? {\n    statements: overloadBlock,\n    parameters: EMPTY_ARRAY\n  } : overloadBlock;\n  return new CompilableTemplateImpl(block.statements, containing, {\n    parameters: block.parameters\n  });\n}\n\nclass NamedBlocksImpl {\n  constructor(blocks) {\n    this.blocks = blocks;\n    this.names = blocks ? Object.keys(blocks) : [];\n  }\n\n  get(name) {\n    if (!this.blocks) return null;\n    return this.blocks[name] || null;\n  }\n\n  has(name) {\n    let {\n      blocks\n    } = this;\n    return blocks !== null && name in blocks;\n  }\n\n  with(name, block) {\n    let {\n      blocks\n    } = this;\n\n    if (blocks) {\n      return new NamedBlocksImpl(assign({}, blocks, {\n        [name]: block\n      }));\n    } else {\n      return new NamedBlocksImpl({\n        [name]: block\n      });\n    }\n  }\n\n  get hasAny() {\n    return this.blocks !== null;\n  }\n\n}\n\nconst EMPTY_BLOCKS = new NamedBlocksImpl(null);\n\nfunction namedBlocks(blocks, meta) {\n  if (blocks === null) {\n    return EMPTY_BLOCKS;\n  }\n\n  let out = dict();\n  let [keys, values] = blocks;\n\n  for (let i = 0; i < keys.length; i++) {\n    out[keys[i]] = compilableBlock(values[i], meta);\n  }\n\n  return new NamedBlocksImpl(out);\n}\n\nfunction expectString(expr, meta, desc) {\n  if (!meta.upvars) {\n    return error(`${desc}, but there were no free variables in the template`, 0, 0);\n  }\n\n  if (!Array.isArray(expr)) {\n    throw new Error(`${desc}, got ${JSON.stringify(expr)}`);\n  }\n\n  if (isGet(expr)) {\n    let name = simplePathName(expr, meta);\n    if (name !== null) return name;\n  }\n\n  throw new Error(`${desc}, got ${JSON.stringify(expr)}`);\n}\n\nfunction simplePathName(opcode, meta) {\n  if (opcode.length === 3 && opcode[2].length > 0) {\n    return null;\n  }\n\n  if (isGetFree(opcode)) {\n    return meta.upvars[opcode[1]];\n  }\n\n  return null;\n}\n\nfunction isGet(opcode) {\n  return opcode.length >= 2 && opcode[0] >= 32\n  /* GetSymbol */\n  ;\n}\n\nfunction isGetFree(opcode) {\n  return opcode[0] >= 33\n  /* GetFree */\n  ;\n}\n\nfunction compileInline(sexp, context) {\n  return context.syntax.macros.inlines.compile(sexp, context);\n}\n\nfunction compileBlock(block, context) {\n  let [, name, params, hash, named] = block;\n  let blocks = namedBlocks(named, context.meta);\n  let nameOrError = expectString(name, context.meta, 'Expected block head to be a string');\n\n  if (typeof nameOrError !== 'string') {\n    return nameOrError;\n  }\n\n  return context.syntax.macros.blocks.compile(nameOrError, params || [], hash, blocks, context);\n}\n\nfunction commit(heap, scopeSize, buffer) {\n  let handle = heap.malloc();\n\n  for (let i = 0; i < buffer.length; i++) {\n    let value = buffer[i];\n\n    if (typeof value === 'function') {\n      heap.pushPlaceholder(value);\n    } else if (typeof value === 'object') {\n      heap.pushStdlib(value);\n    } else {\n      heap.push(value);\n    }\n  }\n\n  heap.finishMalloc(handle, scopeSize);\n  return handle;\n}\n\nlet debugCompiler;\n\nclass LabelsImpl {\n  constructor() {\n    this.labels = dict();\n    this.targets = [];\n  }\n\n  label(name, index) {\n    this.labels[name] = index;\n  }\n\n  target(at, target) {\n    this.targets.push({\n      at,\n      target\n    });\n  }\n\n  patch(encoder) {\n    let {\n      targets,\n      labels\n    } = this;\n\n    for (let i = 0; i < targets.length; i++) {\n      let {\n        at,\n        target\n      } = targets[i];\n      let address = labels[target] - at;\n      encoder.patch(at, address);\n    }\n  }\n\n}\n\nfunction error(problem, start, end) {\n  return op('Error', {\n    problem,\n    start,\n    end\n  });\n}\n\nfunction op(name, op1, op2, op3) {\n  if (typeof name === 'number') {\n    if (op3 !== undefined) {\n      return {\n        type: 'Number',\n        op: name,\n        op1,\n        op2,\n        op3\n      };\n    } else if (op2 !== undefined) {\n      return {\n        type: 'Number',\n        op: name,\n        op1,\n        op2\n      };\n    } else if (op1 !== undefined) {\n      return {\n        type: 'Number',\n        op: name,\n        op1: op1\n      };\n    } else {\n      return {\n        type: 'Number',\n        op: name\n      };\n    }\n  } else {\n    let type;\n\n    if (isCompileOpcode(name)) {\n      type = 'Compile';\n    } else if (isResolutionOpcode(name)) {\n      type = 'Resolution';\n    } else if (isSimpleOpcode(name)) {\n      type = 'Simple';\n    } else if (isErrorOpcode(name)) {\n      type = 'Error';\n    } else {\n      throw new Error(`Exhausted ${name}`);\n    }\n\n    if (op1 === undefined) {\n      return {\n        type,\n        op: name,\n        op1: undefined\n      };\n    } else {\n      return {\n        type,\n        op: name,\n        op1\n      };\n    }\n  }\n}\n\nclass EncoderImpl {\n  constructor() {\n    this.labelsStack = new Stack();\n    this.encoder = new InstructionEncoderImpl([]);\n    this.errors = [];\n  }\n\n  error(error) {\n    this.encoder.encode(29\n    /* Primitive */\n    , 0);\n    this.errors.push(error);\n  }\n\n  commit(heap, size) {\n    this.encoder.encode(5\n    /* Return */\n    , 1024\n    /* MACHINE_MASK */\n    );\n    let handle = commit(heap, size, this.encoder.buffer);\n\n    if (this.errors.length) {\n      return {\n        errors: this.errors,\n        handle\n      };\n    } else {\n      return handle;\n    }\n  }\n\n  push(constants, name, ...args) {\n    if (isMachineOp(name)) {\n      let operands = args.map((operand, i) => this.operand(constants, operand, i));\n      return this.encoder.encode(name, 1024\n      /* MACHINE_MASK */\n      , ...operands);\n    } else {\n      let operands = args.map((operand, i) => this.operand(constants, operand, i));\n      return this.encoder.encode(name, 0, ...operands);\n    }\n  }\n\n  operand(constants, operand, index) {\n    if (operand && typeof operand === 'object' && operand.type === 'label') {\n      this.currentLabels.target(this.encoder.size + index, operand.value);\n      return -1;\n    }\n\n    return constant(constants, operand);\n  }\n\n  get currentLabels() {\n    return this.labelsStack.current;\n  }\n\n  label(name) {\n    this.currentLabels.label(name, this.encoder.size);\n  }\n\n  startLabels() {\n    this.labelsStack.push(new LabelsImpl());\n  }\n\n  stopLabels() {\n    let label = this.labelsStack.pop();\n    label.patch(this.encoder);\n  }\n\n}\n\nfunction constant(constants, operand) {\n  if (typeof operand === 'number' || typeof operand === 'function') {\n    return operand;\n  }\n\n  if (typeof operand === 'boolean') {\n    return operand === true ? 1 : 0;\n  }\n\n  if (typeof operand === 'string') {\n    return constants.value(operand);\n  }\n\n  if (operand === null) {\n    return 0;\n  }\n\n  switch (operand.type) {\n    case 'string-array':\n      return constants.array(operand.value);\n\n    case 'serializable':\n      return constants.serializable(operand.value);\n\n    case 'stdlib':\n      return operand;\n\n    case 'immediate':\n      return encodeImmediate(operand.value);\n\n    case 'primitive':\n    case 'array':\n    case 'other':\n      return encodeHandle(constants.value(operand.value));\n\n    case 'lookup':\n      throw unreachable('lookup not reachable');\n\n    default:\n      return exhausted(operand);\n  }\n}\n\nfunction isSimpleOpcode(op) {\n  return op === 'Label' || op === 'Option' || op === 'StartLabels' || op === 'StopLabels';\n}\n\nfunction isCompileOpcode(op) {\n  return op === 'CompileInline' || op === 'CompileBlock' || op === 'IfResolvedComponent' || op === 'DynamicComponent';\n}\n\nfunction isResolutionOpcode(op) {\n  return op === 'IfResolved' || op === 'Expr' || op === 'SimpleArgs' || op === 'ResolveFree' || op === 'ResolveContextualFree';\n}\n\nfunction isErrorOpcode(op) {\n  return op === 'Error';\n}\n/**\n * Compile arguments, pushing an Arguments object onto the stack.\n *\n * @param args.params\n * @param args.hash\n * @param args.blocks\n * @param args.atNames\n */\n\n\nfunction CompileArgs({\n  params,\n  hash,\n  blocks,\n  atNames\n}) {\n  let out = [];\n  let blockNames = blocks.names;\n\n  for (let i = 0; i < blockNames.length; i++) {\n    out.push(PushYieldableBlock(blocks.get(blockNames[i])));\n  }\n\n  let {\n    count,\n    actions\n  } = CompilePositional(params);\n  out.push(actions);\n  let flags = count << 4;\n  if (atNames) flags |= 0b1000;\n\n  if (blocks) {\n    flags |= 0b111;\n  }\n\n  let names = EMPTY_ARRAY;\n\n  if (hash) {\n    names = hash[0];\n    let val = hash[1];\n\n    for (let i = 0; i < val.length; i++) {\n      out.push(op('Expr', val[i]));\n    }\n  }\n\n  out.push(op(82\n  /* PushArgs */\n  , strArray(names), strArray(blockNames), flags));\n  return out;\n}\n/**\n * Compile an optional list of positional arguments, which pushes each argument\n * onto the stack and returns the number of parameters compiled\n *\n * @param params an optional list of positional arguments\n */\n\n\nfunction CompilePositional(params) {\n  if (!params) return {\n    count: 0,\n    actions: NONE\n  };\n  let actions = [];\n\n  for (let i = 0; i < params.length; i++) {\n    actions.push(op('Expr', params[i]));\n  }\n\n  return {\n    count: params.length,\n    actions\n  };\n}\n\nfunction meta(layout) {\n  return {\n    asPartial: layout.asPartial || false,\n    evalSymbols: evalSymbols(layout),\n    upvars: layout.block.upvars,\n    moduleName: layout.moduleName,\n    owner: layout.owner,\n    size: layout.block.symbols.length\n  };\n}\n\nfunction evalSymbols(layout) {\n  let {\n    block\n  } = layout;\n  return block.hasEval ? block.symbols : null;\n}\n\nconst ATTRS_BLOCK = '&attrs';\n\nfunction StaticComponentHelper(context, tag, hash, template) {\n  let component = resolveLayoutForTag(tag, context);\n\n  if (component !== null) {\n    let {\n      compilable: compilable$$1,\n      handle,\n      capabilities\n    } = component;\n\n    if (compilable$$1) {\n      if (hash) {\n        for (let i = 0; i < hash[0].length; i = i + 1) {\n          hash[0][i] = `@${hash[0][i]}`;\n        }\n      }\n\n      let out = [op(77\n      /* PushComponentDefinition */\n      , handle)];\n      out.push(InvokeStaticComponent({\n        capabilities,\n        layout: compilable$$1,\n        attrs: null,\n        params: null,\n        hash,\n        blocks: new NamedBlocksImpl({\n          default: template\n        })\n      }));\n      return out;\n    }\n  }\n\n  return UNHANDLED;\n}\n\nfunction InvokeStaticComponent({\n  capabilities,\n  layout,\n  attrs,\n  params,\n  hash,\n  blocks\n}) {\n  let {\n    symbolTable\n  } = layout;\n  let bailOut = symbolTable.hasEval || capabilities.prepareArgs;\n\n  if (bailOut) {\n    return InvokeComponent({\n      capabilities,\n      attrs,\n      params,\n      hash,\n      atNames: true,\n      blocks,\n      layout\n    });\n  }\n\n  let out = [op(35\n  /* Fetch */\n  , $s0), op(32\n  /* Dup */\n  , $sp, 1), op(34\n  /* Load */\n  , $s0), op(0\n  /* PushFrame */\n  )]; // Setup arguments\n\n  let {\n    symbols\n  } = symbolTable; // As we push values onto the stack, we store the symbols associated  with them\n  // so that we can set them on the scope later on with SetVariable and SetBlock\n\n  let blockSymbols = [];\n  let argSymbols = [];\n  let argNames = []; // First we push the blocks onto the stack\n\n  let blockNames = blocks.names; // Starting with the attrs block, if it exists and is referenced in the component\n\n  if (attrs !== null) {\n    let symbol = symbols.indexOf(ATTRS_BLOCK);\n\n    if (symbol !== -1) {\n      out.push(PushYieldableBlock(attrs));\n      blockSymbols.push(symbol);\n    }\n  } // Followed by the other blocks, if they exist and are referenced in the component.\n  // Also store the index of the associated symbol.\n\n\n  for (let i = 0; i < blockNames.length; i++) {\n    let name = blockNames[i];\n    let symbol = symbols.indexOf(`&${name}`);\n\n    if (symbol !== -1) {\n      out.push(PushYieldableBlock(blocks.get(name)));\n      blockSymbols.push(symbol);\n    }\n  } // Next up we have arguments. If the component has the `createArgs` capability,\n  // then it wants access to the arguments in JavaScript. We can't know whether\n  // or not an argument is used, so we have to give access to all of them.\n\n\n  if (capabilities.createArgs) {\n    // First we push positional arguments\n    let {\n      count,\n      actions\n    } = CompilePositional(params);\n    out.push(actions); // setup the flags with the count of positionals, and to indicate that atNames\n    // are used\n\n    let flags = count << 4;\n    flags |= 0b1000;\n    let names = EMPTY_ARRAY; // Next, if named args exist, push them all. If they have an associated symbol\n    // in the invoked component (e.g. they are used within its template), we push\n    // that symbol. If not, we still push the expression as it may be used, and\n    // we store the symbol as -1 (this is used later).\n\n    if (hash !== null) {\n      names = hash[0];\n      let val = hash[1];\n\n      for (let i = 0; i < val.length; i++) {\n        let symbol = symbols.indexOf(names[i]);\n        out.push(op('Expr', val[i]));\n        argSymbols.push(symbol);\n      }\n    } // Finally, push the VM arguments themselves. These args won't need access\n    // to blocks (they aren't accessible from userland anyways), so we push an\n    // empty array instead of the actual block names.\n\n\n    out.push(op(82\n    /* PushArgs */\n    , strArray(names), strArray(EMPTY_ARRAY), flags)); // And push an extra pop operation to remove the args before we begin setting\n    // variables on the local context\n\n    argSymbols.push(-1);\n  } else if (hash !== null) {\n    // If the component does not have the `createArgs` capability, then the only\n    // expressions we need to push onto the stack are those that are actually\n    // referenced in the template of the invoked component (e.g. have symbols).\n    let names = hash[0];\n    let val = hash[1];\n\n    for (let i = 0; i < val.length; i++) {\n      let name = names[i];\n      let symbol = symbols.indexOf(name);\n\n      if (symbol !== -1) {\n        out.push(op('Expr', val[i]));\n        argSymbols.push(symbol);\n        argNames.push(name);\n      }\n    }\n  }\n\n  out.push(op(97\n  /* BeginComponentTransaction */\n  , $s0));\n\n  if (capabilities.dynamicScope) {\n    out.push(op(58\n    /* PushDynamicScope */\n    ));\n  }\n\n  if (capabilities.createInstance) {\n    out.push(op(87\n    /* CreateComponent */\n    , blocks.has('default') | 0, $s0));\n  }\n\n  out.push(op(88\n  /* RegisterComponentDestructor */\n  , $s0));\n\n  if (capabilities.createArgs) {\n    out.push(op(90\n    /* GetComponentSelf */\n    , $s0));\n  } else {\n    out.push(op(90\n    /* GetComponentSelf */\n    , $s0, other(argNames)));\n  }\n\n  out.push( // Setup the new root scope for the component\n  op(36\n  /* RootScope */\n  , symbols.length + 1, Object.keys(blocks).length > 0 ? 1 : 0), // Pop the self reference off the stack and set it to the symbol for `this`\n  // in the new scope. This is why all subsequent symbols are increased by one.\n  op(19\n  /* SetVariable */\n  , 0)); // Going in reverse, now we pop the args/blocks off the stack, starting with\n  // arguments, and assign them to their symbols in the new scope.\n\n  for (let i = argSymbols.length - 1; i >= 0; i--) {\n    let symbol = argSymbols[i];\n\n    if (symbol === -1) {\n      // The expression was not bound to a local symbol, it was only pushed to be\n      // used with VM args in the javascript side\n      out.push(op(33\n      /* Pop */\n      , 1));\n    } else {\n      out.push(op(19\n      /* SetVariable */\n      , symbol + 1));\n    }\n  } // if any positional params exist, pop them off the stack as well\n\n\n  if (params !== null) {\n    out.push(op(33\n    /* Pop */\n    , params.length));\n  } // Finish up by popping off and assigning blocks\n\n\n  for (let i = blockSymbols.length - 1; i >= 0; i--) {\n    let symbol = blockSymbols[i];\n    out.push(op(20\n    /* SetBlock */\n    , symbol + 1));\n  }\n\n  out.push([op(28\n  /* Constant */\n  , other(layout)), op(60\n  /* CompileBlock */\n  ), op(2\n  /* InvokeVirtual */\n  )]);\n  out.push(op(100\n  /* DidRenderLayout */\n  , $s0));\n  out.push(op(1\n  /* PopFrame */\n  ), op(39\n  /* PopScope */\n  ));\n\n  if (capabilities.dynamicScope) {\n    out.push(op(59\n    /* PopDynamicScope */\n    ));\n  }\n\n  out.push(op(98\n  /* CommitComponentTransaction */\n  ), op(34\n  /* Load */\n  , $s0));\n  return out;\n}\n\nfunction InvokeDynamicComponent(meta$$1, {\n  definition,\n  attrs,\n  params,\n  hash,\n  atNames,\n  blocks,\n  curried\n}) {\n  return Replayable({\n    args: () => {\n      return {\n        count: 2,\n        actions: [op('Expr', definition), op(32\n        /* Dup */\n        , $sp, 0)]\n      };\n    },\n    body: () => {\n      return [op(65\n      /* JumpUnless */\n      , label('ELSE')), curried ? op(81\n      /* ResolveCurriedComponent */\n      ) : op(80\n      /* ResolveDynamicComponent */\n      , other(meta$$1.owner)), op(78\n      /* PushDynamicComponentInstance */\n      ), InvokeComponent({\n        capabilities: true,\n        attrs,\n        params,\n        hash,\n        atNames,\n        blocks\n      }), op('Label', 'ELSE')];\n    }\n  });\n}\n\nfunction WrappedComponent(layout, attrsBlockNumber) {\n  return [op('StartLabels'), WithSavedRegister($s1, () => [op(91\n  /* GetComponentTagName */\n  , $s0), op(30\n  /* PrimitiveReference */\n  ), op(32\n  /* Dup */\n  , $sp, 0)]), op(65\n  /* JumpUnless */\n  , label('BODY')), op(35\n  /* Fetch */\n  , $s1), op(89\n  /* PutComponentOperations */\n  ), op(48\n  /* OpenDynamicElement */\n  ), op(99\n  /* DidCreateElement */\n  , $s0), YieldBlock(attrsBlockNumber, EMPTY_ARRAY), op(53\n  /* FlushElement */\n  ), op('Label', 'BODY'), InvokeStaticBlock(blockForLayout(layout)), op(35\n  /* Fetch */\n  , $s1), op(65\n  /* JumpUnless */\n  , label('END')), op(54\n  /* CloseElement */\n  ), op('Label', 'END'), op(34\n  /* Load */\n  , $s1), op('StopLabels')];\n}\n\nfunction StaticComponent(component, args) {\n  let [params, hash, blocks] = args;\n  if (component === null) return NONE;\n  let {\n    compilable: compilable$$1,\n    capabilities,\n    handle\n  } = component;\n\n  if (compilable$$1) {\n    return [op(77\n    /* PushComponentDefinition */\n    , handle), InvokeStaticComponent({\n      capabilities: capabilities || MINIMAL_CAPABILITIES,\n      layout: compilable$$1,\n      attrs: null,\n      params,\n      hash,\n      blocks\n    })];\n  } else {\n    return [op(77\n    /* PushComponentDefinition */\n    , handle), InvokeComponent({\n      capabilities: capabilities || MINIMAL_CAPABILITIES,\n      attrs: null,\n      params,\n      hash,\n      atNames: true,\n      blocks\n    })];\n  }\n}\n\nfunction InvokeComponent({\n  capabilities,\n  attrs,\n  params,\n  hash,\n  atNames,\n  blocks: namedBlocks$$1,\n  layout\n}) {\n  let bindableBlocks = !!namedBlocks$$1;\n  let bindableAtNames = capabilities === true || capabilities.prepareArgs || !!(hash && hash[0].length !== 0);\n  let blocks = namedBlocks$$1.with('attrs', attrs);\n  return [op(35\n  /* Fetch */\n  , $s0), op(32\n  /* Dup */\n  , $sp, 1), op(34\n  /* Load */\n  , $s0), op(0\n  /* PushFrame */\n  ), CompileArgs({\n    params,\n    hash,\n    blocks,\n    atNames\n  }), op(85\n  /* PrepareArgs */\n  , $s0), invokePreparedComponent(blocks.has('default'), bindableBlocks, bindableAtNames, () => {\n    let out;\n\n    if (layout) {\n      out = [PushSymbolTable(layout.symbolTable), PushCompilable(layout), op(60\n      /* CompileBlock */\n      )];\n    } else {\n      out = [op(92\n      /* GetComponentLayout */\n      , $s0)];\n    }\n\n    out.push(op(95\n    /* PopulateLayout */\n    , $s0));\n    return out;\n  }), op(34\n  /* Load */\n  , $s0)];\n}\n\nfunction invokePreparedComponent(hasBlock, bindableBlocks, bindableAtNames, populateLayout = null) {\n  let out = [op(97\n  /* BeginComponentTransaction */\n  , $s0), op(58\n  /* PushDynamicScope */\n  ), op(87\n  /* CreateComponent */\n  , hasBlock | 0, $s0)]; // this has to run after createComponent to allow\n  // for late-bound layouts, but a caller is free\n  // to populate the layout earlier if it wants to\n  // and do nothing here.\n\n  if (populateLayout) {\n    out.push(populateLayout());\n  }\n\n  out.push(op(88\n  /* RegisterComponentDestructor */\n  , $s0), op(90\n  /* GetComponentSelf */\n  , $s0), op(37\n  /* VirtualRootScope */\n  , $s0), op(19\n  /* SetVariable */\n  , 0), op(94\n  /* SetupForEval */\n  , $s0), bindableAtNames ? op(17\n  /* SetNamedVariables */\n  , $s0) : NONE, bindableBlocks ? op(18\n  /* SetBlocks */\n  , $s0) : NONE, op(33\n  /* Pop */\n  , 1), op(96\n  /* InvokeComponentLayout */\n  , $s0), op(100\n  /* DidRenderLayout */\n  , $s0), op(1\n  /* PopFrame */\n  ), op(39\n  /* PopScope */\n  ), op(59\n  /* PopDynamicScope */\n  ), op(98\n  /* CommitComponentTransaction */\n  ));\n  return out;\n}\n\nfunction InvokeBareComponent() {\n  return [op(35\n  /* Fetch */\n  , $s0), op(32\n  /* Dup */\n  , $sp, 1), op(34\n  /* Load */\n  , $s0), op(0\n  /* PushFrame */\n  ), op(83\n  /* PushEmptyArgs */\n  ), op(85\n  /* PrepareArgs */\n  , $s0), invokePreparedComponent(false, false, true, () => [op(92\n  /* GetComponentLayout */\n  , $s0), op(95\n  /* PopulateLayout */\n  , $s0)]), op(34\n  /* Load */\n  , $s0)];\n}\n\nfunction curryComponent({\n  definition,\n  params,\n  hash,\n  atNames\n}, owner) {\n  return [op(0\n  /* PushFrame */\n  ), op('SimpleArgs', {\n    params,\n    hash,\n    atNames\n  }), op(86\n  /* CaptureArgs */\n  ), op('Expr', definition), op(76\n  /* CurryComponent */\n  , other(owner)), op(1\n  /* PopFrame */\n  ), op(35\n  /* Fetch */\n  , $v0)];\n}\n\nfunction blockForLayout(layout) {\n  return compilableBlock(layout.block.statements, meta(layout));\n}\n\nfunction WithSavedRegister(register, block) {\n  return [op(35\n  /* Fetch */\n  , register), block(), op(34\n  /* Load */\n  , register)];\n}\n\nclass StdLib {\n  constructor(main, trustingGuardedAppend, cautiousGuardedAppend) {\n    this.main = main;\n    this.trustingGuardedAppend = trustingGuardedAppend;\n    this.cautiousGuardedAppend = cautiousGuardedAppend;\n  }\n\n  get 'trusting-append'() {\n    return this.trustingGuardedAppend;\n  }\n\n  get 'cautious-append'() {\n    return this.cautiousGuardedAppend;\n  }\n\n  getAppend(trusting) {\n    return trusting ? this.trustingGuardedAppend : this.cautiousGuardedAppend;\n  }\n\n}\n\nfunction main() {\n  return [op(74\n  /* Main */\n  , $s0), invokePreparedComponent(false, false, true)];\n}\n/**\n * Append content to the DOM. This standard function triages content and does the\n * right thing based upon whether it's a string, safe string, component, fragment\n * or node.\n *\n * @param trusting whether to interpolate a string as raw HTML (corresponds to\n * triple curlies)\n */\n\n\nfunction StdAppend(trusting) {\n  return [ContentTypeSwitchCases(when => {\n    when(1\n    /* String */\n    , () => {\n      if (trusting) {\n        return [op(67\n        /* AssertSame */\n        ), op(42\n        /* AppendHTML */\n        )];\n      } else {\n        return op(46\n        /* AppendText */\n        );\n      }\n    });\n    when(0\n    /* Component */\n    , () => [op(79\n    /* PushCurriedComponent */\n    ), op(78\n    /* PushDynamicComponentInstance */\n    ), InvokeBareComponent()]);\n    when(3\n    /* SafeString */\n    , () => [op(67\n    /* AssertSame */\n    ), op(43\n    /* AppendSafeHTML */\n    )]);\n    when(4\n    /* Fragment */\n    , () => [op(67\n    /* AssertSame */\n    ), op(44\n    /* AppendDocumentFragment */\n    )]);\n    when(5\n    /* Node */\n    , () => [op(67\n    /* AssertSame */\n    ), op(45\n    /* AppendNode */\n    )]);\n  })];\n}\n\nfunction compileStd(context) {\n  let mainHandle = build(context, main);\n  let trustingGuardedAppend = build(context, () => StdAppend(true));\n  let cautiousGuardedAppend = build(context, () => StdAppend(false));\n  return new StdLib(mainHandle, trustingGuardedAppend, cautiousGuardedAppend);\n}\n\nconst STDLIB_META = {\n  asPartial: false,\n  evalSymbols: null,\n  upvars: null,\n  moduleName: 'stdlib',\n  // TODO: ??\n  owner: null,\n  size: 0\n};\n\nfunction build(program, callback) {\n  let encoder = new EncoderImpl();\n  let macros = new MacrosImpl();\n  let stdContext = {\n    encoder,\n    meta: STDLIB_META,\n    syntax: {\n      macros,\n      program\n    }\n  };\n  concat(stdContext, callback());\n  let result = encoder.commit(program.heap, 0);\n\n  if (typeof result !== 'number') {\n    // This shouldn't be possible\n    throw new Error(`Unexpected errors compiling std`);\n  } else {\n    return result;\n  }\n}\n\nclass CompileTimeCompilationContextImpl {\n  constructor({\n    constants,\n    heap\n  }, resolver) {\n    this.resolver = resolver;\n    this.constants = constants;\n    this.heap = heap;\n    this.stdlib = compileStd(this);\n  }\n\n}\n\nclass PartialDefinitionImpl {\n  constructor(name, // for debugging\n  template) {\n    this.name = name;\n    this.template = template;\n  }\n\n  getPartial(context) {\n    let partial = unwrapTemplate(this.template).asPartial();\n    let handle = partial.compile(context);\n    return {\n      symbolTable: partial.symbolTable,\n      handle\n    };\n  }\n\n}\n\nclass WrappedBuilder {\n  constructor(layout) {\n    this.layout = layout;\n    this.compiled = null;\n    let {\n      block\n    } = layout;\n    let symbols = block.symbols.slice(); // ensure ATTRS_BLOCK is always included (only once) in the list of symbols\n\n    let attrsBlockIndex = symbols.indexOf(ATTRS_BLOCK);\n\n    if (attrsBlockIndex === -1) {\n      this.attrsBlockNumber = symbols.push(ATTRS_BLOCK);\n    } else {\n      this.attrsBlockNumber = attrsBlockIndex + 1;\n    }\n\n    this.symbolTable = {\n      hasEval: block.hasEval,\n      symbols\n    };\n  }\n\n  compile(syntax) {\n    if (this.compiled !== null) return this.compiled;\n    let m = meta(this.layout);\n    let context = templateCompilationContext(syntax, m);\n    let actions = WrappedComponent(this.layout, this.attrsBlockNumber);\n    concatStatements(context, actions);\n    let handle = context.encoder.commit(context.syntax.program.heap, m.size);\n\n    if (typeof handle !== 'number') {\n      return handle;\n    }\n\n    this.compiled = handle;\n    patchStdlibs(context.syntax.program);\n    return handle;\n  }\n\n}\n\nlet clientId = 0;\nlet templateCacheCounters = {\n  cacheHit: 0,\n  cacheMiss: 0\n};\n/**\n * Wraps a template js in a template module to change it into a factory\n * that handles lazy parsing the template and to create per env singletons\n * of the template.\n */\n\nfunction templateFactory({\n  id: templateId,\n  moduleName,\n  block\n}) {\n  // TODO(template-refactors): This should be removed in the near future, as it\n  // appears that id is unused. It is currently kept for backwards compat reasons.\n  let id = templateId || `client-${clientId++}`; // TODO: This caches JSON serialized output once in case a template is\n  // compiled by multiple owners, but we haven't verified if this is actually\n  // helpful. We should benchmark this in the future.\n\n  let parsedBlock;\n  let ownerlessTemplate = null;\n  let templateCache = new WeakMap();\n\n  let factory = owner => {\n    if (parsedBlock === undefined) {\n      parsedBlock = JSON.parse(block);\n    }\n\n    if (owner === undefined) {\n      if (ownerlessTemplate === null) {\n        templateCacheCounters.cacheMiss++;\n        ownerlessTemplate = new TemplateImpl({\n          id,\n          block: parsedBlock,\n          moduleName,\n          owner: null\n        });\n      } else {\n        templateCacheCounters.cacheHit++;\n      }\n\n      return ownerlessTemplate;\n    }\n\n    let result = templateCache.get(owner);\n\n    if (result === undefined) {\n      templateCacheCounters.cacheMiss++;\n      result = new TemplateImpl({\n        id,\n        block: parsedBlock,\n        moduleName,\n        owner\n      });\n      templateCache.set(owner, result);\n    } else {\n      templateCacheCounters.cacheHit++;\n    }\n\n    return result;\n  };\n\n  factory.__id = id;\n  factory.__meta = {\n    moduleName\n  };\n  return factory;\n}\n\nclass TemplateImpl {\n  constructor(parsedLayout) {\n    this.parsedLayout = parsedLayout;\n    this.result = 'ok';\n    this.layout = null;\n    this.partial = null;\n    this.wrappedLayout = null;\n  }\n\n  get moduleName() {\n    return this.parsedLayout.moduleName;\n  }\n\n  get id() {\n    return this.parsedLayout.id;\n  } // TODO(template-refactors): This should be removed in the near future, it is\n  // only being exposed for backwards compatibility\n\n\n  get referrer() {\n    return {\n      moduleName: this.parsedLayout.moduleName,\n      owner: this.parsedLayout.owner\n    };\n  }\n\n  asLayout() {\n    if (this.layout) return this.layout;\n    return this.layout = compilable(assign({}, this.parsedLayout, {\n      asPartial: false\n    }));\n  }\n\n  asPartial() {\n    if (this.partial) return this.partial;\n    return this.layout = compilable(assign({}, this.parsedLayout, {\n      asPartial: true\n    }));\n  }\n\n  asWrappedLayout() {\n    if (this.wrappedLayout) return this.wrappedLayout;\n    return this.wrappedLayout = new WrappedBuilder(assign({}, this.parsedLayout, {\n      asPartial: false\n    }));\n  }\n\n}\n\nexport { MacrosImpl, UNHANDLED, NONE, debugCompiler, compileStatements, compilable, StaticComponent as staticComponent, InvokeStaticBlockWithStack as invokeStaticBlockWithStack, InvokeStaticBlock as invokeStaticBlock, compileStd, meta, StdLib, PartialDefinitionImpl, templateFactory, templateCacheCounters, WrappedBuilder, EMPTY_BLOCKS, resolveLayoutForTag, CompileTimeCompilationContextImpl, syntaxCompilationContext, templateCompilationContext, DEFAULT_CAPABILITIES, MINIMAL_CAPABILITIES };","import { constants } from '@glimmer/util';\nconst WELL_KNOWN_EMPTY_ARRAY = Object.freeze([]);\nconst STARTER_CONSTANTS = constants(WELL_KNOWN_EMPTY_ARRAY);\nconst WELL_KNOWN_EMPTY_ARRAY_POSITION = STARTER_CONSTANTS.indexOf(WELL_KNOWN_EMPTY_ARRAY);\n\nclass CompileTimeConstantImpl {\n  constructor() {\n    // `0` means NULL\n    this.values = STARTER_CONSTANTS.slice();\n    this.indexMap = new Map(this.values.map((value, index) => [value, index]));\n  }\n\n  value(value) {\n    let indexMap = this.indexMap;\n    let index = indexMap.get(value);\n\n    if (index === undefined) {\n      index = this.values.push(value) - 1;\n      indexMap.set(value, index);\n    }\n\n    return index;\n  }\n\n  array(values) {\n    if (values.length === 0) {\n      return WELL_KNOWN_EMPTY_ARRAY_POSITION;\n    }\n\n    let handles = new Array(values.length);\n\n    for (let i = 0; i < values.length; i++) {\n      handles[i] = this.value(values[i]);\n    }\n\n    return this.value(handles);\n  }\n\n  serializable(value) {\n    let str = JSON.stringify(value);\n    return this.value(str);\n  }\n\n  toPool() {\n    return this.values;\n  }\n\n}\n\nclass RuntimeConstantsImpl {\n  constructor(pool) {\n    this.values = pool;\n  }\n\n  getValue(handle) {\n    return this.values[handle];\n  }\n\n  getArray(value) {\n    let handles = this.getValue(value);\n    let reified = new Array(handles.length);\n\n    for (let i = 0; i < handles.length; i++) {\n      let n = handles[i];\n      reified[i] = this.getValue(n);\n    }\n\n    return reified;\n  }\n\n  getSerializable(s) {\n    return JSON.parse(this.values[s]);\n  }\n\n}\n\nclass ConstantsImpl extends CompileTimeConstantImpl {\n  constructor() {\n    super(...arguments);\n    this.reifiedArrs = {\n      [WELL_KNOWN_EMPTY_ARRAY_POSITION]: WELL_KNOWN_EMPTY_ARRAY\n    };\n  }\n\n  getValue(index) {\n    return this.values[index];\n  }\n\n  getArray(index) {\n    let reifiedArrs = this.reifiedArrs;\n    let reified = reifiedArrs[index];\n\n    if (reified === undefined) {\n      let names = this.getValue(index);\n      reified = new Array(names.length);\n\n      for (let i = 0; i < names.length; i++) {\n        reified[i] = this.getValue(names[i]);\n      }\n\n      reifiedArrs[index] = reified;\n    }\n\n    return reified;\n  }\n\n  getSerializable(s) {\n    return JSON.parse(this.getValue(s));\n  }\n\n}\n\nclass RuntimeOpImpl {\n  constructor(heap) {\n    this.heap = heap;\n    this.offset = 0;\n  }\n\n  get size() {\n    let rawType = this.heap.getbyaddr(this.offset);\n    return ((rawType & 768\n    /* OPERAND_LEN_MASK */\n    ) >> 8\n    /* ARG_SHIFT */\n    ) + 1;\n  }\n\n  get isMachine() {\n    let rawType = this.heap.getbyaddr(this.offset);\n    return rawType & 1024\n    /* MACHINE_MASK */\n    ? 1 : 0;\n  }\n\n  get type() {\n    return this.heap.getbyaddr(this.offset) & 255\n    /* TYPE_MASK */\n    ;\n  }\n\n  get op1() {\n    return this.heap.getbyaddr(this.offset + 1);\n  }\n\n  get op2() {\n    return this.heap.getbyaddr(this.offset + 2);\n  }\n\n  get op3() {\n    return this.heap.getbyaddr(this.offset + 3);\n  }\n\n}\n\nfunction encodeTableInfo(scopeSize, state) {\n  return state | scopeSize << 2;\n}\n\nfunction changeState(info, newState) {\n  return info | newState << 30;\n}\n\nconst PAGE_SIZE = 0x100000;\n\nclass RuntimeHeapImpl {\n  constructor(serializedHeap) {\n    let {\n      buffer,\n      table\n    } = serializedHeap;\n    this.heap = new Int32Array(buffer);\n    this.table = table;\n  } // It is illegal to close over this address, as compaction\n  // may move it. However, it is legal to use this address\n  // multiple times between compactions.\n\n\n  getaddr(handle) {\n    return this.table[handle];\n  }\n\n  getbyaddr(address) {\n    return this.heap[address];\n  }\n\n  sizeof(handle) {\n    return sizeof(this.table, handle);\n  }\n\n  scopesizeof(handle) {\n    return scopesizeof(this.table, handle);\n  }\n\n}\n\nfunction hydrateHeap(serializedHeap) {\n  return new RuntimeHeapImpl(serializedHeap);\n}\n/**\n * The Heap is responsible for dynamically allocating\n * memory in which we read/write the VM's instructions\n * from/to. When we malloc we pass out a VMHandle, which\n * is used as an indirect way of accessing the memory during\n * execution of the VM. Internally we track the different\n * regions of the memory in an int array known as the table.\n *\n * The table 32-bit aligned and has the following layout:\n *\n * | ... | hp (u32) |       info (u32)   | size (u32) |\n * | ... |  Handle  | Scope Size | State | Size       |\n * | ... | 32bits   | 30bits     | 2bits | 32bit      |\n *\n * With this information we effectively have the ability to\n * control when we want to free memory. That being said you\n * can not free during execution as raw address are only\n * valid during the execution. This means you cannot close\n * over them as you will have a bad memory access exception.\n */\n\n\nclass HeapImpl {\n  constructor() {\n    this.placeholders = [];\n    this.stdlibs = [];\n    this.offset = 0;\n    this.handle = 0;\n    this.capacity = PAGE_SIZE;\n    this.heap = new Int32Array(PAGE_SIZE);\n    this.table = [];\n  }\n\n  push(item) {\n    this.sizeCheck();\n    this.heap[this.offset++] = item;\n  }\n\n  sizeCheck() {\n    if (this.capacity === 0) {\n      let heap = slice(this.heap, 0, this.offset);\n      this.heap = new Int32Array(heap.length + PAGE_SIZE);\n      this.heap.set(heap, 0);\n      this.capacity = PAGE_SIZE;\n    }\n\n    this.capacity--;\n  }\n\n  getbyaddr(address) {\n    return this.heap[address];\n  }\n\n  setbyaddr(address, value) {\n    this.heap[address] = value;\n  }\n\n  malloc() {\n    // push offset, info, size\n    this.table.push(this.offset, 0, 0);\n    let handle = this.handle;\n    this.handle += 3\n    /* ENTRY_SIZE */\n    ;\n    return handle;\n  }\n\n  finishMalloc(handle, scopeSize) {\n    this.table[handle + 1\n    /* INFO_OFFSET */\n    ] = encodeTableInfo(scopeSize, 0\n    /* Allocated */\n    );\n  }\n\n  size() {\n    return this.offset;\n  } // It is illegal to close over this address, as compaction\n  // may move it. However, it is legal to use this address\n  // multiple times between compactions.\n\n\n  getaddr(handle) {\n    return this.table[handle];\n  }\n\n  gethandle(address) {\n    this.table.push(address, encodeTableInfo(0, 3\n    /* Pointer */\n    ), 0);\n    let handle = this.handle;\n    this.handle += 3\n    /* ENTRY_SIZE */\n    ;\n    return handle;\n  }\n\n  sizeof(handle) {\n    return sizeof(this.table, handle);\n  }\n\n  scopesizeof(handle) {\n    return scopesizeof(this.table, handle);\n  }\n\n  free(handle) {\n    let info = this.table[handle + 1\n    /* INFO_OFFSET */\n    ];\n    this.table[handle + 1\n    /* INFO_OFFSET */\n    ] = changeState(info, 1\n    /* Freed */\n    );\n  }\n  /**\n   * The heap uses the [Mark-Compact Algorithm](https://en.wikipedia.org/wiki/Mark-compact_algorithm) to shift\n   * reachable memory to the bottom of the heap and freeable\n   * memory to the top of the heap. When we have shifted all\n   * the reachable memory to the top of the heap, we move the\n   * offset to the next free position.\n   */\n\n\n  compact() {\n    let compactedSize = 0;\n    let {\n      table,\n      table: {\n        length\n      },\n      heap\n    } = this;\n\n    for (let i = 0; i < length; i += 3\n    /* ENTRY_SIZE */\n    ) {\n      let offset = table[i];\n      let info = table[i + 1\n      /* INFO_OFFSET */\n      ]; // @ts-ignore (this whole function is currently unused)\n\n      let size = info & Size.SIZE_MASK;\n      let state = info & 3\n      /* STATE_MASK */\n      >> 30;\n\n      if (state === 2\n      /* Purged */\n      ) {\n          continue;\n        } else if (state === 1\n      /* Freed */\n      ) {\n          // transition to \"already freed\" aka \"purged\"\n          // a good improvement would be to reuse\n          // these slots\n          table[i + 1\n          /* INFO_OFFSET */\n          ] = changeState(info, 2\n          /* Purged */\n          );\n          compactedSize += size;\n        } else if (state === 0\n      /* Allocated */\n      ) {\n          for (let j = offset; j <= i + size; j++) {\n            heap[j - compactedSize] = heap[j];\n          }\n\n          table[i] = offset - compactedSize;\n        } else if (state === 3\n      /* Pointer */\n      ) {\n          table[i] = offset - compactedSize;\n        }\n    }\n\n    this.offset = this.offset - compactedSize;\n  }\n\n  pushPlaceholder(valueFunc) {\n    this.sizeCheck();\n    let address = this.offset++;\n    this.heap[address] = 2147483647\n    /* MAX_SIZE */\n    ;\n    this.placeholders.push([address, valueFunc]);\n  }\n\n  pushStdlib(operand) {\n    this.sizeCheck();\n    let address = this.offset++;\n    this.heap[address] = 2147483647\n    /* MAX_SIZE */\n    ;\n    this.stdlibs.push([address, operand]);\n  }\n\n  patchPlaceholders() {\n    let {\n      placeholders\n    } = this;\n\n    for (let i = 0; i < placeholders.length; i++) {\n      let [address, getValue] = placeholders[i];\n      this.setbyaddr(address, getValue());\n    }\n  }\n\n  patchStdlibs(stdlib) {\n    let {\n      stdlibs\n    } = this;\n\n    for (let i = 0; i < stdlibs.length; i++) {\n      let [address, {\n        value\n      }] = stdlibs[i];\n      this.setbyaddr(address, stdlib[value]);\n    }\n\n    this.stdlibs = [];\n  }\n\n  capture(stdlib, offset = this.offset) {\n    this.patchPlaceholders();\n    this.patchStdlibs(stdlib); // Only called in eager mode\n\n    let buffer = slice(this.heap, 0, offset).buffer;\n    return {\n      handle: this.handle,\n      table: this.table,\n      buffer: buffer\n    };\n  }\n\n}\n\nclass RuntimeProgramImpl {\n  constructor(constants$$1, heap) {\n    this.constants = constants$$1;\n    this.heap = heap;\n    this._opcode = new RuntimeOpImpl(this.heap);\n  }\n\n  opcode(offset) {\n    this._opcode.offset = offset;\n    return this._opcode;\n  }\n\n}\n\nfunction slice(arr, start, end) {\n  if (arr.slice !== undefined) {\n    return arr.slice(start, end);\n  }\n\n  let ret = new Int32Array(end);\n\n  for (; start < end; start++) {\n    ret[start] = arr[start];\n  }\n\n  return ret;\n}\n\nfunction sizeof(table, handle) {\n  {\n    return -1;\n  }\n}\n\nfunction scopesizeof(table, handle) {\n  let info = table[handle + 1\n  /* INFO_OFFSET */\n  ];\n  return info >> 2;\n}\n\nfunction patchStdlibs(program) {\n  program.heap.patchStdlibs(program.stdlib);\n}\n\nfunction artifacts() {\n  return {\n    constants: new ConstantsImpl(),\n    heap: new HeapImpl()\n  };\n}\n\nexport { CompileTimeConstantImpl, RuntimeConstantsImpl, ConstantsImpl, RuntimeHeapImpl, hydrateHeap, HeapImpl, RuntimeProgramImpl, RuntimeOpImpl, patchStdlibs, artifacts };","import { getProp, setProp, getPath, toIterator } from '@glimmer/global-context';\nimport { symbol, isDict, EMPTY_ARRAY, isObject } from '@glimmer/util';\nimport { CONSTANT_TAG, validateTag, consumeTag, INITIAL, valueForTag, track, createTag, dirtyTag } from '@glimmer/validator';\nimport { DEBUG } from '@glimmer/env';\nconst REFERENCE = symbol('REFERENCE');\n\nclass ReferenceImpl {\n  constructor(type) {\n    this.tag = null;\n    this.lastRevision = INITIAL;\n    this.children = null;\n    this.compute = null;\n    this.update = null;\n    this[REFERENCE] = type;\n  }\n\n}\n\nfunction createPrimitiveRef(value) {\n  let ref = new ReferenceImpl(2\n  /* Unbound */\n  );\n  ref.tag = CONSTANT_TAG;\n  ref.lastValue = value;\n\n  if (DEBUG) {\n    ref.debugLabel = String(value);\n  }\n\n  return ref;\n}\n\nconst UNDEFINED_REFERENCE = createPrimitiveRef(undefined);\nconst NULL_REFERENCE = createPrimitiveRef(null);\nconst TRUE_REFERENCE = createPrimitiveRef(true);\nconst FALSE_REFERENCE = createPrimitiveRef(false);\n\nfunction createConstRef(value, debugLabel) {\n  let ref = new ReferenceImpl(0\n  /* Constant */\n  );\n  ref.lastValue = value;\n  ref.tag = CONSTANT_TAG;\n\n  if (DEBUG) {\n    ref.debugLabel = debugLabel;\n  }\n\n  return ref;\n}\n\nfunction createUnboundRef(value, debugLabel) {\n  let ref = new ReferenceImpl(2\n  /* Unbound */\n  );\n  ref.lastValue = value;\n  ref.tag = CONSTANT_TAG;\n\n  if (DEBUG) {\n    ref.debugLabel = debugLabel;\n  }\n\n  return ref;\n}\n\nfunction createComputeRef(compute, update = null, debugLabel = 'unknown') {\n  let ref = new ReferenceImpl(1\n  /* Compute */\n  );\n  ref.compute = compute;\n  ref.update = update;\n\n  if (DEBUG) {\n    ref.debugLabel = `(result of a \\`${debugLabel}\\` helper)`;\n  }\n\n  return ref;\n}\n\nfunction createReadOnlyRef(ref) {\n  if (!isUpdatableRef(ref)) return ref;\n  return createComputeRef(() => valueForRef(ref), null, ref.debugLabel);\n}\n\nfunction isInvokableRef(ref) {\n  return ref[REFERENCE] === 3\n  /* Invokable */\n  ;\n}\n\nfunction createInvokableRef(inner) {\n  let ref = createComputeRef(() => valueForRef(inner), value => updateRef(inner, value));\n  ref.debugLabel = inner.debugLabel;\n  ref[REFERENCE] = 3\n  /* Invokable */\n  ;\n  return ref;\n}\n\nfunction isConstRef(_ref) {\n  let ref = _ref;\n  return ref.tag === CONSTANT_TAG;\n}\n\nfunction isUpdatableRef(_ref) {\n  let ref = _ref;\n  return ref.update !== null;\n}\n\nfunction valueForRef(_ref) {\n  let ref = _ref;\n  let {\n    tag\n  } = ref;\n\n  if (tag === CONSTANT_TAG) {\n    return ref.lastValue;\n  }\n\n  let {\n    lastRevision\n  } = ref;\n  let lastValue;\n\n  if (tag === null || !validateTag(tag, lastRevision)) {\n    let {\n      compute\n    } = ref;\n    tag = ref.tag = track(() => {\n      lastValue = ref.lastValue = compute();\n    }, DEBUG && ref.debugLabel);\n    ref.lastRevision = valueForTag(tag);\n  } else {\n    lastValue = ref.lastValue;\n  }\n\n  consumeTag(tag);\n  return lastValue;\n}\n\nfunction updateRef(_ref, value) {\n  let ref = _ref;\n  let update = ref.update;\n  update(value);\n}\n\nfunction childRefFor(_parentRef, path) {\n  let parentRef = _parentRef;\n  let type = parentRef[REFERENCE];\n  let children = parentRef.children;\n  let child;\n\n  if (children === null) {\n    children = parentRef.children = new Map();\n  } else {\n    child = children.get(path);\n\n    if (child !== undefined) {\n      return child;\n    }\n  }\n\n  if (type === 2\n  /* Unbound */\n  ) {\n      let parent = valueForRef(parentRef);\n\n      if (isDict(parent)) {\n        child = createUnboundRef(parent[path], DEBUG && `${parentRef.debugLabel}.${path}`);\n      } else {\n        child = UNDEFINED_REFERENCE;\n      }\n    } else {\n    child = createComputeRef(() => {\n      let parent = valueForRef(parentRef);\n\n      if (isDict(parent)) {\n        return getProp(parent, path);\n      }\n    }, val => {\n      let parent = valueForRef(parentRef);\n\n      if (isDict(parent)) {\n        return setProp(parent, path, val);\n      }\n    });\n\n    if (DEBUG) {\n      child.debugLabel = `${parentRef.debugLabel}.${path}`;\n    }\n  }\n\n  children.set(path, child);\n  return child;\n}\n\nfunction childRefFromParts(root, parts) {\n  let reference = root;\n\n  for (let i = 0; i < parts.length; i++) {\n    reference = childRefFor(reference, parts[i]);\n  }\n\n  return reference;\n}\n\nlet createDebugAliasRef;\n\nif (DEBUG) {\n  createDebugAliasRef = (debugLabel, inner) => {\n    let update = isUpdatableRef(inner) ? value => updateRef(inner, value) : null;\n    let ref = createComputeRef(() => valueForRef(inner), update);\n    ref[REFERENCE] = inner[REFERENCE];\n    ref.debugLabel = debugLabel;\n    return ref;\n  };\n}\n\nconst NULL_IDENTITY = {};\n\nconst KEY = (_, index) => index;\n\nconst INDEX = (_, index) => String(index);\n\nconst IDENTITY = item => {\n  if (item === null) {\n    // Returning null as an identity will cause failures since the iterator\n    // can't tell that it's actually supposed to be null\n    return NULL_IDENTITY;\n  }\n\n  return item;\n};\n\nfunction keyForPath(path) {\n  if (DEBUG && path[0] === '@') {\n    throw new Error(`invalid keypath: '${path}', valid keys: @index, @identity, or a path`);\n  }\n\n  return uniqueKeyFor(item => getPath(item, path));\n}\n\nfunction makeKeyFor(key) {\n  switch (key) {\n    case '@key':\n      return uniqueKeyFor(KEY);\n\n    case '@index':\n      return uniqueKeyFor(INDEX);\n\n    case '@identity':\n      return uniqueKeyFor(IDENTITY);\n\n    default:\n      return keyForPath(key);\n  }\n}\n\nclass WeakMapWithPrimitives {\n  get weakMap() {\n    if (this._weakMap === undefined) {\n      this._weakMap = new WeakMap();\n    }\n\n    return this._weakMap;\n  }\n\n  get primitiveMap() {\n    if (this._primitiveMap === undefined) {\n      this._primitiveMap = new Map();\n    }\n\n    return this._primitiveMap;\n  }\n\n  set(key, value) {\n    if (isObject(key) || typeof key === 'function') {\n      this.weakMap.set(key, value);\n    } else {\n      this.primitiveMap.set(key, value);\n    }\n  }\n\n  get(key) {\n    if (isObject(key) || typeof key === 'function') {\n      return this.weakMap.get(key);\n    } else {\n      return this.primitiveMap.get(key);\n    }\n  }\n\n}\n\nconst IDENTITIES = new WeakMapWithPrimitives();\n\nfunction identityForNthOccurence(value, count) {\n  let identities = IDENTITIES.get(value);\n\n  if (identities === undefined) {\n    identities = [];\n    IDENTITIES.set(value, identities);\n  }\n\n  let identity = identities[count];\n\n  if (identity === undefined) {\n    identity = {\n      value,\n      count\n    };\n    identities[count] = identity;\n  }\n\n  return identity;\n}\n/**\n * When iterating over a list, it's possible that an item with the same unique\n * key could be encountered twice:\n *\n * ```js\n * let arr = ['same', 'different', 'same', 'same'];\n * ```\n *\n * In general, we want to treat these items as _unique within the list_. To do\n * this, we track the occurences of every item as we iterate the list, and when\n * an item occurs more than once, we generate a new unique key just for that\n * item, and that occurence within the list. The next time we iterate the list,\n * and encounter an item for the nth time, we can get the _same_ key, and let\n * Glimmer know that it should reuse the DOM for the previous nth occurence.\n */\n\n\nfunction uniqueKeyFor(keyFor) {\n  let seen = new WeakMapWithPrimitives();\n  return (value, memo) => {\n    let key = keyFor(value, memo);\n    let count = seen.get(key) || 0;\n    seen.set(key, count + 1);\n\n    if (count === 0) {\n      return key;\n    }\n\n    return identityForNthOccurence(key, count);\n  };\n}\n\nfunction createIteratorRef(listRef, key) {\n  return createComputeRef(() => {\n    let iterable = valueForRef(listRef);\n    let keyFor = makeKeyFor(key);\n\n    if (Array.isArray(iterable)) {\n      return new ArrayIterator(iterable, keyFor);\n    }\n\n    let maybeIterator = toIterator(iterable);\n\n    if (maybeIterator === null) {\n      return new ArrayIterator(EMPTY_ARRAY, () => null);\n    }\n\n    return new IteratorWrapper(maybeIterator, keyFor);\n  });\n}\n\nfunction createIteratorItemRef(_value) {\n  let value = _value;\n  let tag = createTag();\n  return createComputeRef(() => {\n    consumeTag(tag);\n    return value;\n  }, newValue => {\n    if (value !== newValue) {\n      value = newValue;\n      dirtyTag(tag);\n    }\n  });\n}\n\nclass IteratorWrapper {\n  constructor(inner, keyFor) {\n    this.inner = inner;\n    this.keyFor = keyFor;\n  }\n\n  isEmpty() {\n    return this.inner.isEmpty();\n  }\n\n  next() {\n    let nextValue = this.inner.next();\n\n    if (nextValue !== null) {\n      nextValue.key = this.keyFor(nextValue.value, nextValue.memo);\n    }\n\n    return nextValue;\n  }\n\n}\n\nclass ArrayIterator {\n  constructor(iterator, keyFor) {\n    this.iterator = iterator;\n    this.keyFor = keyFor;\n    this.pos = 0;\n\n    if (iterator.length === 0) {\n      this.current = {\n        kind: 'empty'\n      };\n    } else {\n      this.current = {\n        kind: 'first',\n        value: iterator[this.pos]\n      };\n    }\n  }\n\n  isEmpty() {\n    return this.current.kind === 'empty';\n  }\n\n  next() {\n    let value;\n    let current = this.current;\n\n    if (current.kind === 'first') {\n      this.current = {\n        kind: 'progress'\n      };\n      value = current.value;\n    } else if (this.pos >= this.iterator.length - 1) {\n      return null;\n    } else {\n      value = this.iterator[++this.pos];\n    }\n\n    let {\n      keyFor\n    } = this;\n    let key = keyFor(value, this.pos);\n    let memo = this.pos;\n    return {\n      key,\n      value,\n      memo\n    };\n  }\n\n}\n\nexport { REFERENCE, createPrimitiveRef, createConstRef, createUnboundRef, createComputeRef, createDebugAliasRef, createReadOnlyRef, createInvokableRef, isInvokableRef, isConstRef, isUpdatableRef, valueForRef, updateRef, childRefFor, childRefFromParts, UNDEFINED_REFERENCE, NULL_REFERENCE, TRUE_REFERENCE, FALSE_REFERENCE, createIteratorRef, createIteratorItemRef };","import { symbol, debugToString, Stack, assign, initializeGuid, fillNulls, _WeakSet, dict, EMPTY_ARRAY, decodeHandle, isNonPrimitiveHandle, unreachable, unwrapTemplate, isErrHandle, unwrapHandle, clearElement, isSmallInt, encodeImmediate, encodeHandle, constants, decodeImmediate, isHandle } from '@glimmer/util';\nimport { warnIfStyleNotTrusted, scheduleDestroy, scheduleDestroyed, toBool, assertGlobalContextWasSet } from '@glimmer/global-context';\nimport { DEBUG } from '@glimmer/env';\nimport { UNDEFINED_REFERENCE, valueForRef, createComputeRef, childRefFor, TRUE_REFERENCE, FALSE_REFERENCE, createDebugAliasRef, isConstRef, createPrimitiveRef, NULL_REFERENCE, createIteratorRef, updateRef, createIteratorItemRef } from '@glimmer/reference';\nimport { $pc, $sp, $ra, $fp, $v0, $t0, $t1, $s0, $s1, isLowLevelRegister } from '@glimmer/vm';\nimport { CONSTANT_TAG, valueForTag, validateTag, INITIAL, beginTrackFrame, endTrackFrame, consumeTag, track, updateTag, resetTracking, runInTrackingTransaction } from '@glimmer/validator';\nimport { RuntimeProgramImpl } from '@glimmer/program';\nimport { Stack as Stack$1 } from '@glimmer/low-level'; // the VM in other classes, but are not intended to be a part of\n// Glimmer's API.\n\nconst INNER_VM = symbol('INNER_VM');\nconst DESTROYABLE_STACK = symbol('DESTROYABLE_STACK');\nconst STACKS = symbol('STACKS');\nconst REGISTERS = symbol('REGISTERS');\nconst HEAP = symbol('HEAP');\nconst CONSTANTS = symbol('CONSTANTS');\nconst ARGS = symbol('ARGS');\nconst PC = symbol('PC');\n\nclass CursorImpl {\n  constructor(element, nextSibling) {\n    this.element = element;\n    this.nextSibling = nextSibling;\n  }\n\n}\n\nclass ConcreteBounds {\n  constructor(parentNode, first, last) {\n    this.parentNode = parentNode;\n    this.first = first;\n    this.last = last;\n  }\n\n  parentElement() {\n    return this.parentNode;\n  }\n\n  firstNode() {\n    return this.first;\n  }\n\n  lastNode() {\n    return this.last;\n  }\n\n}\n\nclass SingleNodeBounds {\n  constructor(parentNode, node) {\n    this.parentNode = parentNode;\n    this.node = node;\n  }\n\n  parentElement() {\n    return this.parentNode;\n  }\n\n  firstNode() {\n    return this.node;\n  }\n\n  lastNode() {\n    return this.node;\n  }\n\n}\n\nfunction move(bounds, reference) {\n  let parent = bounds.parentElement();\n  let first = bounds.firstNode();\n  let last = bounds.lastNode();\n  let current = first;\n\n  while (true) {\n    let next = current.nextSibling;\n    parent.insertBefore(current, reference);\n\n    if (current === last) {\n      return next;\n    }\n\n    current = next;\n  }\n}\n\nfunction clear(bounds) {\n  let parent = bounds.parentElement();\n  let first = bounds.firstNode();\n  let last = bounds.lastNode();\n  let current = first;\n\n  while (true) {\n    let next = current.nextSibling;\n    parent.removeChild(current);\n\n    if (current === last) {\n      return next;\n    }\n\n    current = next;\n  }\n}\n\nfunction normalizeStringValue(value) {\n  if (isEmpty(value)) {\n    return '';\n  }\n\n  return String(value);\n}\n\nfunction shouldCoerce(value) {\n  return isString(value) || isEmpty(value) || typeof value === 'boolean' || typeof value === 'number';\n}\n\nfunction isEmpty(value) {\n  return value === null || value === undefined || typeof value.toString !== 'function';\n}\n\nfunction isSafeString(value) {\n  return typeof value === 'object' && value !== null && typeof value.toHTML === 'function';\n}\n\nfunction isNode(value) {\n  return typeof value === 'object' && value !== null && typeof value.nodeType === 'number';\n}\n\nfunction isFragment(value) {\n  return isNode(value) && value.nodeType === 11;\n}\n\nfunction isString(value) {\n  return typeof value === 'string';\n}\n/*\n * @method normalizeProperty\n * @param element {HTMLElement}\n * @param slotName {String}\n * @returns {Object} { name, type }\n */\n\n\nfunction normalizeProperty(element, slotName) {\n  let type, normalized;\n\n  if (slotName in element) {\n    normalized = slotName;\n    type = 'prop';\n  } else {\n    let lower = slotName.toLowerCase();\n\n    if (lower in element) {\n      type = 'prop';\n      normalized = lower;\n    } else {\n      type = 'attr';\n      normalized = slotName;\n    }\n  }\n\n  if (type === 'prop' && (normalized.toLowerCase() === 'style' || preferAttr(element.tagName, normalized))) {\n    type = 'attr';\n  }\n\n  return {\n    normalized,\n    type\n  };\n} // * browser bug\n// * strange spec outlier\n\n\nconst ATTR_OVERRIDES = {\n  INPUT: {\n    form: true,\n    // Chrome 46.0.2464.0: 'autocorrect' in document.createElement('input') === false\n    // Safari 8.0.7: 'autocorrect' in document.createElement('input') === false\n    // Mobile Safari (iOS 8.4 simulator): 'autocorrect' in document.createElement('input') === true\n    autocorrect: true,\n    // Chrome 54.0.2840.98: 'list' in document.createElement('input') === true\n    // Safari 9.1.3: 'list' in document.createElement('input') === false\n    list: true\n  },\n  // element.form is actually a legitimate readOnly property, that is to be\n  // mutated, but must be mutated by setAttribute...\n  SELECT: {\n    form: true\n  },\n  OPTION: {\n    form: true\n  },\n  TEXTAREA: {\n    form: true\n  },\n  LABEL: {\n    form: true\n  },\n  FIELDSET: {\n    form: true\n  },\n  LEGEND: {\n    form: true\n  },\n  OBJECT: {\n    form: true\n  },\n  OUTPUT: {\n    form: true\n  },\n  BUTTON: {\n    form: true\n  }\n};\n\nfunction preferAttr(tagName, propName) {\n  let tag = ATTR_OVERRIDES[tagName.toUpperCase()];\n  return tag && tag[propName.toLowerCase()] || false;\n}\n\nconst badProtocols = ['javascript:', 'vbscript:'];\nconst badTags = ['A', 'BODY', 'LINK', 'IMG', 'IFRAME', 'BASE', 'FORM'];\nconst badTagsForDataURI = ['EMBED'];\nconst badAttributes = ['href', 'src', 'background', 'action'];\nconst badAttributesForDataURI = ['src'];\n\nfunction has(array, item) {\n  return array.indexOf(item) !== -1;\n}\n\nfunction checkURI(tagName, attribute) {\n  return (tagName === null || has(badTags, tagName)) && has(badAttributes, attribute);\n}\n\nfunction checkDataURI(tagName, attribute) {\n  if (tagName === null) return false;\n  return has(badTagsForDataURI, tagName) && has(badAttributesForDataURI, attribute);\n}\n\nfunction requiresSanitization(tagName, attribute) {\n  return checkURI(tagName, attribute) || checkDataURI(tagName, attribute);\n}\n\nlet protocolForUrl;\n\nif (typeof URL === 'object' && URL !== null && // this is super annoying, TS thinks that URL **must** be a function so `URL.parse` check\n// thinks it is `never` without this `as unknown as any`\ntypeof URL.parse === 'function') {\n  // In Ember-land the `fastboot` package sets the `URL` global to `require('url')`\n  // ultimately, this should be changed (so that we can either rely on the natural `URL` global\n  // that exists) but for now we have to detect the specifc `FastBoot` case first\n  //\n  // a future version of `fastboot` will detect if this legacy URL setup is required (by\n  // inspecting Ember version) and if new enough, it will avoid shadowing the `URL` global\n  // constructor with `require('url')`.\n  let nodeURL = URL;\n\n  protocolForUrl = url => {\n    let protocol = null;\n\n    if (typeof url === 'string') {\n      protocol = nodeURL.parse(url).protocol;\n    }\n\n    return protocol === null ? ':' : protocol;\n  };\n} else if (typeof URL === 'function') {\n  protocolForUrl = _url => {\n    try {\n      let url = new URL(_url);\n      return url.protocol;\n    } catch (error) {\n      // any non-fully qualified url string will trigger an error (because there is no\n      // baseURI that we can provide; in that case we **know** that the protocol is\n      // \"safe\" because it isn't specifically one of the `badProtocols` listed above\n      // (and those protocols can never be the default baseURI)\n      return ':';\n    }\n  };\n} else {\n  // fallback for IE11 support\n  let parsingNode = document.createElement('a');\n\n  protocolForUrl = url => {\n    parsingNode.href = url;\n    return parsingNode.protocol;\n  };\n}\n\nfunction sanitizeAttributeValue(element, attribute, value) {\n  let tagName = null;\n\n  if (value === null || value === undefined) {\n    return value;\n  }\n\n  if (isSafeString(value)) {\n    return value.toHTML();\n  }\n\n  if (!element) {\n    tagName = null;\n  } else {\n    tagName = element.tagName.toUpperCase();\n  }\n\n  let str = normalizeStringValue(value);\n\n  if (checkURI(tagName, attribute)) {\n    let protocol = protocolForUrl(str);\n\n    if (has(badProtocols, protocol)) {\n      return `unsafe:${str}`;\n    }\n  }\n\n  if (checkDataURI(tagName, attribute)) {\n    return `unsafe:${str}`;\n  }\n\n  return str;\n}\n\nfunction dynamicAttribute(element, attr, namespace, isTrusting = false) {\n  let {\n    tagName,\n    namespaceURI\n  } = element;\n  let attribute = {\n    element,\n    name: attr,\n    namespace\n  };\n\n  if (DEBUG && attr === 'style' && !isTrusting) {\n    return new DebugStyleAttributeManager(attribute);\n  }\n\n  if (namespaceURI === \"http://www.w3.org/2000/svg\"\n  /* SVG */\n  ) {\n      return buildDynamicAttribute(tagName, attr, attribute);\n    }\n\n  let {\n    type,\n    normalized\n  } = normalizeProperty(element, attr);\n\n  if (type === 'attr') {\n    return buildDynamicAttribute(tagName, normalized, attribute);\n  } else {\n    return buildDynamicProperty(tagName, normalized, attribute);\n  }\n}\n\nfunction buildDynamicAttribute(tagName, name, attribute) {\n  if (requiresSanitization(tagName, name)) {\n    return new SafeDynamicAttribute(attribute);\n  } else {\n    return new SimpleDynamicAttribute(attribute);\n  }\n}\n\nfunction buildDynamicProperty(tagName, name, attribute) {\n  if (requiresSanitization(tagName, name)) {\n    return new SafeDynamicProperty(name, attribute);\n  }\n\n  if (isUserInputValue(tagName, name)) {\n    return new InputValueDynamicAttribute(name, attribute);\n  }\n\n  if (isOptionSelected(tagName, name)) {\n    return new OptionSelectedDynamicAttribute(name, attribute);\n  }\n\n  return new DefaultDynamicProperty(name, attribute);\n}\n\nclass DynamicAttribute {\n  constructor(attribute) {\n    this.attribute = attribute;\n  }\n\n}\n\nclass SimpleDynamicAttribute extends DynamicAttribute {\n  set(dom, value, _env) {\n    let normalizedValue = normalizeValue(value);\n\n    if (normalizedValue !== null) {\n      let {\n        name,\n        namespace\n      } = this.attribute;\n\n      dom.__setAttribute(name, normalizedValue, namespace);\n    }\n  }\n\n  update(value, _env) {\n    let normalizedValue = normalizeValue(value);\n    let {\n      element,\n      name\n    } = this.attribute;\n\n    if (normalizedValue === null) {\n      element.removeAttribute(name);\n    } else {\n      element.setAttribute(name, normalizedValue);\n    }\n  }\n\n}\n\nclass DefaultDynamicProperty extends DynamicAttribute {\n  constructor(normalizedName, attribute) {\n    super(attribute);\n    this.normalizedName = normalizedName;\n  }\n\n  set(dom, value, _env) {\n    if (value !== null && value !== undefined) {\n      this.value = value;\n\n      dom.__setProperty(this.normalizedName, value);\n    }\n  }\n\n  update(value, _env) {\n    let {\n      element\n    } = this.attribute;\n\n    if (this.value !== value) {\n      element[this.normalizedName] = this.value = value;\n\n      if (value === null || value === undefined) {\n        this.removeAttribute();\n      }\n    }\n  }\n\n  removeAttribute() {\n    // TODO this sucks but to preserve properties first and to meet current\n    // semantics we must do this.\n    let {\n      element,\n      namespace\n    } = this.attribute;\n\n    if (namespace) {\n      element.removeAttributeNS(namespace, this.normalizedName);\n    } else {\n      element.removeAttribute(this.normalizedName);\n    }\n  }\n\n}\n\nclass SafeDynamicProperty extends DefaultDynamicProperty {\n  set(dom, value, env) {\n    let {\n      element,\n      name\n    } = this.attribute;\n    let sanitized = sanitizeAttributeValue(element, name, value);\n    super.set(dom, sanitized, env);\n  }\n\n  update(value, env) {\n    let {\n      element,\n      name\n    } = this.attribute;\n    let sanitized = sanitizeAttributeValue(element, name, value);\n    super.update(sanitized, env);\n  }\n\n}\n\nclass SafeDynamicAttribute extends SimpleDynamicAttribute {\n  set(dom, value, env) {\n    let {\n      element,\n      name\n    } = this.attribute;\n    let sanitized = sanitizeAttributeValue(element, name, value);\n    super.set(dom, sanitized, env);\n  }\n\n  update(value, env) {\n    let {\n      element,\n      name\n    } = this.attribute;\n    let sanitized = sanitizeAttributeValue(element, name, value);\n    super.update(sanitized, env);\n  }\n\n}\n\nclass InputValueDynamicAttribute extends DefaultDynamicProperty {\n  set(dom, value) {\n    dom.__setProperty('value', normalizeStringValue(value));\n  }\n\n  update(value) {\n    let input = this.attribute.element;\n    let currentValue = input.value;\n    let normalizedValue = normalizeStringValue(value);\n\n    if (currentValue !== normalizedValue) {\n      input.value = normalizedValue;\n    }\n  }\n\n}\n\nclass OptionSelectedDynamicAttribute extends DefaultDynamicProperty {\n  set(dom, value) {\n    if (value !== null && value !== undefined && value !== false) {\n      dom.__setProperty('selected', true);\n    }\n  }\n\n  update(value) {\n    let option = this.attribute.element;\n\n    if (value) {\n      option.selected = true;\n    } else {\n      option.selected = false;\n    }\n  }\n\n}\n\nfunction isOptionSelected(tagName, attribute) {\n  return tagName === 'OPTION' && attribute === 'selected';\n}\n\nfunction isUserInputValue(tagName, attribute) {\n  return (tagName === 'INPUT' || tagName === 'TEXTAREA') && attribute === 'value';\n}\n\nfunction normalizeValue(value) {\n  if (value === false || value === undefined || value === null || typeof value.toString === 'undefined') {\n    return null;\n  }\n\n  if (value === true) {\n    return '';\n  } // onclick function etc in SSR\n\n\n  if (typeof value === 'function') {\n    return null;\n  }\n\n  return String(value);\n}\n\nlet DebugStyleAttributeManager;\n\nif (DEBUG) {\n  DebugStyleAttributeManager = class extends SimpleDynamicAttribute {\n    set(dom, value, env) {\n      warnIfStyleNotTrusted(value);\n      super.set(dom, value, env);\n    }\n\n    update(value, env) {\n      warnIfStyleNotTrusted(value);\n      super.update(value, env);\n    }\n\n  };\n}\n\nlet DESTROYABLE_META = new WeakMap();\n\nfunction push(collection, newItem) {\n  if (collection === null) {\n    return newItem;\n  } else if (Array.isArray(collection)) {\n    collection.push(newItem);\n    return collection;\n  } else {\n    return [collection, newItem];\n  }\n}\n\nfunction iterate(collection, fn) {\n  if (Array.isArray(collection)) {\n    for (let i = 0; i < collection.length; i++) {\n      fn(collection[i]);\n    }\n  } else if (collection !== null) {\n    fn(collection);\n  }\n}\n\nfunction remove(collection, item, message) {\n  if (DEBUG) {\n    let collectionIsItem = collection === item;\n    let collectionContainsItem = Array.isArray(collection) && collection.indexOf(item) !== -1;\n\n    if (!collectionIsItem && !collectionContainsItem) {\n      throw new Error(String(message));\n    }\n  }\n\n  if (Array.isArray(collection) && collection.length > 1) {\n    let index = collection.indexOf(item);\n    collection.splice(index, 1);\n    return collection;\n  } else {\n    return null;\n  }\n}\n\nfunction getDestroyableMeta(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n\n  if (meta === undefined) {\n    meta = {\n      parents: null,\n      children: null,\n      eagerDestructors: null,\n      destructors: null,\n      state: 0\n      /* Live */\n\n    };\n\n    if (DEBUG) {\n      meta.source = destroyable;\n    }\n\n    DESTROYABLE_META.set(destroyable, meta);\n  }\n\n  return meta;\n}\n\nfunction associateDestroyableChild(parent, child) {\n  if (DEBUG && isDestroying(parent)) {\n    throw new Error('Attempted to associate a destroyable child with an object that is already destroying or destroyed');\n  }\n\n  let parentMeta = getDestroyableMeta(parent);\n  let childMeta = getDestroyableMeta(child);\n  parentMeta.children = push(parentMeta.children, child);\n  childMeta.parents = push(childMeta.parents, parent);\n  return child;\n}\n\nfunction registerDestructor(destroyable, destructor, eager = false) {\n  if (DEBUG && isDestroying(destroyable)) {\n    throw new Error('Attempted to register a destructor with an object that is already destroying or destroyed');\n  }\n\n  let meta = getDestroyableMeta(destroyable);\n  let destructorsKey = eager === true ? 'eagerDestructors' : 'destructors';\n  meta[destructorsKey] = push(meta[destructorsKey], destructor);\n  return destructor;\n}\n\nfunction unregisterDestructor(destroyable, destructor, eager = false) {\n  if (DEBUG && isDestroying(destroyable)) {\n    throw new Error('Attempted to unregister a destructor with an object that is already destroying or destroyed');\n  }\n\n  let meta = getDestroyableMeta(destroyable);\n  let destructorsKey = eager === true ? 'eagerDestructors' : 'destructors';\n  meta[destructorsKey] = remove(meta[destructorsKey], destructor, DEBUG && 'attempted to remove a destructor that was not registered with the destroyable');\n} ////////////\n\n\nfunction destroy(destroyable) {\n  let meta = getDestroyableMeta(destroyable);\n  if (meta.state >= 1\n  /* Destroying */\n  ) return;\n  let {\n    parents,\n    children,\n    eagerDestructors,\n    destructors\n  } = meta;\n  meta.state = 1\n  /* Destroying */\n  ;\n  iterate(children, destroy);\n  iterate(eagerDestructors, destructor => destructor(destroyable));\n  iterate(destructors, destructor => scheduleDestroy(destroyable, destructor));\n  scheduleDestroyed(() => {\n    iterate(parents, parent => removeChildFromParent(destroyable, parent));\n    meta.state = 2\n    /* Destroyed */\n    ;\n  });\n}\n\nfunction removeChildFromParent(child, parent) {\n  let parentMeta = getDestroyableMeta(parent);\n\n  if (parentMeta.state === 0\n  /* Live */\n  ) {\n      parentMeta.children = remove(parentMeta.children, child, DEBUG && \"attempted to remove child from parent, but the parent's children did not contain the child. This is likely a bug with destructors.\");\n    }\n}\n\nfunction destroyChildren(destroyable) {\n  let {\n    children\n  } = getDestroyableMeta(destroyable);\n  iterate(children, destroy);\n}\n\nfunction isDestroying(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n  return meta === undefined ? false : meta.state >= 1\n  /* Destroying */\n  ;\n}\n\nfunction isDestroyed(destroyable) {\n  let meta = DESTROYABLE_META.get(destroyable);\n  return meta === undefined ? false : meta.state >= 2\n  /* Destroyed */\n  ;\n} ////////////\n\n\nlet enableDestroyableTracking;\nlet assertDestroyablesDestroyed;\n\nif (DEBUG) {\n  let isTesting = false;\n\n  enableDestroyableTracking = () => {\n    if (isTesting) {\n      throw new Error('Attempted to start destroyable testing, but you did not end the previous destroyable test. Did you forget to call `assertDestroyablesDestroyed()`');\n    }\n\n    isTesting = true;\n    DESTROYABLE_META = new Map();\n  };\n\n  assertDestroyablesDestroyed = () => {\n    if (!isTesting) {\n      throw new Error('Attempted to assert destroyables destroyed, but you did not start a destroyable test. Did you forget to call `enableDestroyableTracking()`');\n    }\n\n    isTesting = false;\n    let map = DESTROYABLE_META;\n    DESTROYABLE_META = new WeakMap();\n    let undestroyed = [];\n    map.forEach(meta => {\n      if (meta.state !== 2\n      /* Destroyed */\n      ) {\n          undestroyed.push(meta.source);\n        }\n    });\n\n    if (undestroyed.length > 0) {\n      let objectsToString = undestroyed.map(debugToString).join('\\n    ');\n      let error = new Error(`Some destroyables were not destroyed during this test:\\n    ${objectsToString}`);\n      error.destroyables = undestroyed;\n      throw error;\n    }\n  };\n}\n\nvar _a;\n\nclass First {\n  constructor(node) {\n    this.node = node;\n  }\n\n  firstNode() {\n    return this.node;\n  }\n\n}\n\nclass Last {\n  constructor(node) {\n    this.node = node;\n  }\n\n  lastNode() {\n    return this.node;\n  }\n\n}\n\nconst CURSOR_STACK = symbol('CURSOR_STACK');\n\nclass NewElementBuilder {\n  constructor(env, parentNode, nextSibling) {\n    this.constructing = null;\n    this.operations = null;\n    this[_a] = new Stack();\n    this.modifierStack = new Stack();\n    this.blockStack = new Stack();\n    this.pushElement(parentNode, nextSibling);\n    this.env = env;\n    this.dom = env.getAppendOperations();\n    this.updateOperations = env.getDOM();\n  }\n\n  static forInitialRender(env, cursor) {\n    return new this(env, cursor.element, cursor.nextSibling).initialize();\n  }\n\n  static resume(env, block) {\n    let parentNode = block.parentElement();\n    let nextSibling = block.reset(env);\n    let stack = new this(env, parentNode, nextSibling).initialize();\n    stack.pushLiveBlock(block);\n    return stack;\n  }\n\n  initialize() {\n    this.pushSimpleBlock();\n    return this;\n  }\n\n  debugBlocks() {\n    return this.blockStack.toArray();\n  }\n\n  get element() {\n    return this[CURSOR_STACK].current.element;\n  }\n\n  get nextSibling() {\n    return this[CURSOR_STACK].current.nextSibling;\n  }\n\n  get hasBlocks() {\n    return this.blockStack.size > 0;\n  }\n\n  block() {\n    return this.blockStack.current;\n  }\n\n  popElement() {\n    this[CURSOR_STACK].pop();\n    this[CURSOR_STACK].current;\n  }\n\n  pushSimpleBlock() {\n    return this.pushLiveBlock(new SimpleLiveBlock(this.element));\n  }\n\n  pushUpdatableBlock() {\n    return this.pushLiveBlock(new UpdatableBlockImpl(this.element));\n  }\n\n  pushBlockList(list) {\n    return this.pushLiveBlock(new LiveBlockList(this.element, list));\n  }\n\n  pushLiveBlock(block, isRemote = false) {\n    let current = this.blockStack.current;\n\n    if (current !== null) {\n      if (!isRemote) {\n        current.didAppendBounds(block);\n      }\n    }\n\n    this.__openBlock();\n\n    this.blockStack.push(block);\n    return block;\n  }\n\n  popBlock() {\n    this.block().finalize(this);\n\n    this.__closeBlock();\n\n    return this.blockStack.pop();\n  }\n\n  __openBlock() {}\n\n  __closeBlock() {} // todo return seems unused\n\n\n  openElement(tag) {\n    let element = this.__openElement(tag);\n\n    this.constructing = element;\n    return element;\n  }\n\n  __openElement(tag) {\n    return this.dom.createElement(tag, this.element);\n  }\n\n  flushElement(modifiers) {\n    let parent = this.element;\n    let element = this.constructing;\n\n    this.__flushElement(parent, element);\n\n    this.constructing = null;\n    this.operations = null;\n    this.pushModifiers(modifiers);\n    this.pushElement(element, null);\n    this.didOpenElement(element);\n  }\n\n  __flushElement(parent, constructing) {\n    this.dom.insertBefore(parent, constructing, this.nextSibling);\n  }\n\n  closeElement() {\n    this.willCloseElement();\n    this.popElement();\n    return this.popModifiers();\n  }\n\n  pushRemoteElement(element, guid, insertBefore) {\n    return this.__pushRemoteElement(element, guid, insertBefore);\n  }\n\n  __pushRemoteElement(element, _guid, insertBefore) {\n    this.pushElement(element, insertBefore);\n\n    if (insertBefore === undefined) {\n      while (element.lastChild) {\n        element.removeChild(element.lastChild);\n      }\n    }\n\n    let block = new RemoteLiveBlock(element);\n    return this.pushLiveBlock(block, true);\n  }\n\n  popRemoteElement() {\n    this.popBlock();\n    this.popElement();\n  }\n\n  pushElement(element, nextSibling = null) {\n    this[CURSOR_STACK].push(new CursorImpl(element, nextSibling));\n  }\n\n  pushModifiers(modifiers) {\n    this.modifierStack.push(modifiers);\n  }\n\n  popModifiers() {\n    return this.modifierStack.pop();\n  }\n\n  didAppendBounds(bounds) {\n    this.block().didAppendBounds(bounds);\n    return bounds;\n  }\n\n  didAppendNode(node) {\n    this.block().didAppendNode(node);\n    return node;\n  }\n\n  didOpenElement(element) {\n    this.block().openElement(element);\n    return element;\n  }\n\n  willCloseElement() {\n    this.block().closeElement();\n  }\n\n  appendText(string) {\n    return this.didAppendNode(this.__appendText(string));\n  }\n\n  __appendText(text) {\n    let {\n      dom,\n      element,\n      nextSibling\n    } = this;\n    let node = dom.createTextNode(text);\n    dom.insertBefore(element, node, nextSibling);\n    return node;\n  }\n\n  __appendNode(node) {\n    this.dom.insertBefore(this.element, node, this.nextSibling);\n    return node;\n  }\n\n  __appendFragment(fragment) {\n    let first = fragment.firstChild;\n\n    if (first) {\n      let ret = new ConcreteBounds(this.element, first, fragment.lastChild);\n      this.dom.insertBefore(this.element, fragment, this.nextSibling);\n      return ret;\n    } else {\n      return new SingleNodeBounds(this.element, this.__appendComment(''));\n    }\n  }\n\n  __appendHTML(html) {\n    return this.dom.insertHTMLBefore(this.element, this.nextSibling, html);\n  }\n\n  appendDynamicHTML(value) {\n    let bounds = this.trustedContent(value);\n    this.didAppendBounds(bounds);\n  }\n\n  appendDynamicText(value) {\n    let node = this.untrustedContent(value);\n    this.didAppendNode(node);\n    return node;\n  }\n\n  appendDynamicFragment(value) {\n    let bounds = this.__appendFragment(value);\n\n    this.didAppendBounds(bounds);\n  }\n\n  appendDynamicNode(value) {\n    let node = this.__appendNode(value);\n\n    let bounds = new SingleNodeBounds(this.element, node);\n    this.didAppendBounds(bounds);\n  }\n\n  trustedContent(value) {\n    return this.__appendHTML(value);\n  }\n\n  untrustedContent(value) {\n    return this.__appendText(value);\n  }\n\n  appendComment(string) {\n    return this.didAppendNode(this.__appendComment(string));\n  }\n\n  __appendComment(string) {\n    let {\n      dom,\n      element,\n      nextSibling\n    } = this;\n    let node = dom.createComment(string);\n    dom.insertBefore(element, node, nextSibling);\n    return node;\n  }\n\n  __setAttribute(name, value, namespace) {\n    this.dom.setAttribute(this.constructing, name, value, namespace);\n  }\n\n  __setProperty(name, value) {\n    this.constructing[name] = value;\n  }\n\n  setStaticAttribute(name, value, namespace) {\n    this.__setAttribute(name, value, namespace);\n  }\n\n  setDynamicAttribute(name, value, trusting, namespace) {\n    let element = this.constructing;\n    let attribute = dynamicAttribute(element, name, namespace, trusting);\n    attribute.set(this, value, this.env);\n    return attribute;\n  }\n\n}\n\n_a = CURSOR_STACK;\n\nclass SimpleLiveBlock {\n  constructor(parent) {\n    this.parent = parent;\n    this.first = null;\n    this.last = null;\n    this.nesting = 0;\n  }\n\n  parentElement() {\n    return this.parent;\n  }\n\n  firstNode() {\n    let first = this.first;\n    return first.firstNode();\n  }\n\n  lastNode() {\n    let last = this.last;\n    return last.lastNode();\n  }\n\n  openElement(element) {\n    this.didAppendNode(element);\n    this.nesting++;\n  }\n\n  closeElement() {\n    this.nesting--;\n  }\n\n  didAppendNode(node) {\n    if (this.nesting !== 0) return;\n\n    if (!this.first) {\n      this.first = new First(node);\n    }\n\n    this.last = new Last(node);\n  }\n\n  didAppendBounds(bounds) {\n    if (this.nesting !== 0) return;\n\n    if (!this.first) {\n      this.first = bounds;\n    }\n\n    this.last = bounds;\n  }\n\n  finalize(stack) {\n    if (this.first === null) {\n      stack.appendComment('');\n    }\n  }\n\n}\n\nclass RemoteLiveBlock extends SimpleLiveBlock {\n  constructor(parent) {\n    super(parent);\n    registerDestructor(this, () => {\n      // In general, you only need to clear the root of a hierarchy, and should never\n      // need to clear any child nodes. This is an important constraint that gives us\n      // a strong guarantee that clearing a subtree is a single DOM operation.\n      //\n      // Because remote blocks are not normally physically nested inside of the tree\n      // that they are logically nested inside, we manually clear remote blocks when\n      // a logical parent is cleared.\n      //\n      // HOWEVER, it is currently possible for a remote block to be physically nested\n      // inside of the block it is logically contained inside of. This happens when\n      // the remote block is appended to the end of the application's entire element.\n      //\n      // The problem with that scenario is that Glimmer believes that it owns more of\n      // the DOM than it actually does. The code is attempting to write past the end\n      // of the Glimmer-managed root, but Glimmer isn't aware of that.\n      //\n      // The correct solution to that problem is for Glimmer to be aware of the end\n      // of the bounds that it owns, and once we make that change, this check could\n      // be removed.\n      //\n      // For now, a more targeted fix is to check whether the node was already removed\n      // and avoid clearing the node if it was. In most cases this shouldn't happen,\n      // so this might hide bugs where the code clears nested nodes unnecessarily,\n      // so we should eventually try to do the correct fix.\n      if (this.parentElement() === this.firstNode().parentNode) {\n        clear(this);\n      }\n    });\n  }\n\n}\n\nclass UpdatableBlockImpl extends SimpleLiveBlock {\n  reset() {\n    destroy(this);\n    let nextSibling = clear(this);\n    this.first = null;\n    this.last = null;\n    this.nesting = 0;\n    return nextSibling;\n  }\n\n} // FIXME: All the noops in here indicate a modelling problem\n\n\nclass LiveBlockList {\n  constructor(parent, boundList) {\n    this.parent = parent;\n    this.boundList = boundList;\n    this.parent = parent;\n    this.boundList = boundList;\n  }\n\n  parentElement() {\n    return this.parent;\n  }\n\n  firstNode() {\n    let head = this.boundList[0];\n    return head.firstNode();\n  }\n\n  lastNode() {\n    let boundList = this.boundList;\n    let tail = boundList[boundList.length - 1];\n    return tail.lastNode();\n  }\n\n  openElement(_element) {}\n\n  closeElement() {}\n\n  didAppendNode(_node) {}\n\n  didAppendBounds(_bounds) {}\n\n  finalize(_stack) {}\n\n}\n\nfunction clientBuilder(env, cursor) {\n  return NewElementBuilder.forInitialRender(env, cursor);\n}\n\nclass DynamicScopeImpl {\n  constructor(bucket) {\n    if (bucket) {\n      this.bucket = assign({}, bucket);\n    } else {\n      this.bucket = {};\n    }\n  }\n\n  get(key) {\n    return this.bucket[key];\n  }\n\n  set(key, reference) {\n    return this.bucket[key] = reference;\n  }\n\n  child() {\n    return new DynamicScopeImpl(this.bucket);\n  }\n\n}\n\nclass PartialScopeImpl {\n  constructor( // the 0th slot is `self`\n  slots, callerScope, // named arguments and blocks passed to a layout that uses eval\n  evalScope, // locals in scope when the partial was invoked\n  partialMap) {\n    this.slots = slots;\n    this.callerScope = callerScope;\n    this.evalScope = evalScope;\n    this.partialMap = partialMap;\n  }\n\n  static root(self, size = 0) {\n    let refs = new Array(size + 1);\n\n    for (let i = 0; i <= size; i++) {\n      refs[i] = UNDEFINED_REFERENCE;\n    }\n\n    return new PartialScopeImpl(refs, null, null, null).init({\n      self\n    });\n  }\n\n  static sized(size = 0) {\n    let refs = new Array(size + 1);\n\n    for (let i = 0; i <= size; i++) {\n      refs[i] = UNDEFINED_REFERENCE;\n    }\n\n    return new PartialScopeImpl(refs, null, null, null);\n  }\n\n  init({\n    self\n  }) {\n    this.slots[0] = self;\n    return this;\n  }\n\n  getSelf() {\n    return this.get(0);\n  }\n\n  getSymbol(symbol$$1) {\n    return this.get(symbol$$1);\n  }\n\n  getBlock(symbol$$1) {\n    let block = this.get(symbol$$1);\n    return block === UNDEFINED_REFERENCE ? null : block;\n  }\n\n  getEvalScope() {\n    return this.evalScope;\n  }\n\n  getPartialMap() {\n    return this.partialMap;\n  }\n\n  bind(symbol$$1, value) {\n    this.set(symbol$$1, value);\n  }\n\n  bindSelf(self) {\n    this.set(0, self);\n  }\n\n  bindSymbol(symbol$$1, value) {\n    this.set(symbol$$1, value);\n  }\n\n  bindBlock(symbol$$1, value) {\n    this.set(symbol$$1, value);\n  }\n\n  bindEvalScope(map) {\n    this.evalScope = map;\n  }\n\n  bindPartialMap(map) {\n    this.partialMap = map;\n  }\n\n  bindCallerScope(scope) {\n    this.callerScope = scope;\n  }\n\n  getCallerScope() {\n    return this.callerScope;\n  }\n\n  child() {\n    return new PartialScopeImpl(this.slots.slice(), this.callerScope, this.evalScope, this.partialMap);\n  }\n\n  get(index) {\n    if (index >= this.slots.length) {\n      throw new RangeError(`BUG: cannot get $${index} from scope; length=${this.slots.length}`);\n    }\n\n    return this.slots[index];\n  }\n\n  set(index, value) {\n    if (index >= this.slots.length) {\n      throw new RangeError(`BUG: cannot get $${index} from scope; length=${this.slots.length}`);\n    }\n\n    this.slots[index] = value;\n  }\n\n}\n\nclass AppendOpcodes {\n  constructor() {\n    this.evaluateOpcode = fillNulls(104\n    /* Size */\n    ).slice();\n  }\n\n  add(name, evaluate, kind = 'syscall') {\n    this.evaluateOpcode[name] = {\n      syscall: kind !== 'machine',\n      evaluate\n    };\n  }\n\n  debugBefore(vm, opcode) {\n    let params = undefined;\n    let opName = undefined;\n    let sp;\n    return {\n      sp: sp,\n      pc: vm.fetchValue($pc),\n      name: opName,\n      params,\n      type: opcode.type,\n      isMachine: opcode.isMachine,\n      size: opcode.size,\n      state: undefined\n    };\n  }\n\n  debugAfter(vm, pre) {}\n\n  evaluate(vm, opcode, type) {\n    let operation = this.evaluateOpcode[type];\n\n    if (operation.syscall) {\n      operation.evaluate(vm, opcode);\n    } else {\n      operation.evaluate(vm[INNER_VM], opcode);\n    }\n  }\n\n}\n\nconst APPEND_OPCODES = new AppendOpcodes();\n\nclass AbstractOpcode {\n  constructor() {\n    initializeGuid(this);\n  }\n\n}\n\nclass UpdatingOpcode extends AbstractOpcode {}\n\nfunction createConcatRef(partsRefs) {\n  return createComputeRef(() => {\n    let parts = new Array();\n\n    for (let i = 0; i < partsRefs.length; i++) {\n      let value = valueForRef(partsRefs[i]);\n\n      if (value !== null && value !== undefined) {\n        parts[i] = castToString(value);\n      }\n    }\n\n    if (parts.length > 0) {\n      return parts.join('');\n    }\n\n    return null;\n  });\n}\n\nfunction castToString(value) {\n  if (typeof value.toString !== 'function') {\n    return '';\n  }\n\n  return String(value);\n}\n\nAPPEND_OPCODES.add(16\n/* Helper */\n, (vm, {\n  op1: handle\n}) => {\n  let stack = vm.stack;\n  let helper = vm.runtime.resolver.resolve(handle);\n  let args = stack.popJs();\n  let value = helper(args, vm);\n  vm.loadValue($v0, value);\n});\nAPPEND_OPCODES.add(21\n/* GetVariable */\n, (vm, {\n  op1: symbol$$1\n}) => {\n  let expr = vm.referenceForSymbol(symbol$$1);\n  vm.stack.pushJs(expr);\n});\nAPPEND_OPCODES.add(19\n/* SetVariable */\n, (vm, {\n  op1: symbol$$1\n}) => {\n  let expr = vm.stack.pop();\n  vm.scope().bindSymbol(symbol$$1, expr);\n});\nAPPEND_OPCODES.add(20\n/* SetBlock */\n, (vm, {\n  op1: symbol$$1\n}) => {\n  let handle = vm.stack.popJs();\n  let scope = vm.stack.popJs();\n  let table = vm.stack.popJs();\n  vm.scope().bindBlock(symbol$$1, [handle, scope, table]);\n});\nAPPEND_OPCODES.add(102\n/* ResolveMaybeLocal */\n, (vm, {\n  op1: _name\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let locals = vm.scope().getPartialMap();\n  let ref = locals[name];\n\n  if (ref === undefined) {\n    ref = childRefFor(vm.getSelf(), name);\n  }\n\n  vm.stack.pushJs(ref);\n});\nAPPEND_OPCODES.add(36\n/* RootScope */\n, (vm, {\n  op1: symbols\n}) => {\n  vm.pushRootScope(symbols);\n});\nAPPEND_OPCODES.add(22\n/* GetProperty */\n, (vm, {\n  op1: _key\n}) => {\n  let key = vm[CONSTANTS].getValue(_key);\n  let expr = vm.stack.popJs();\n  vm.stack.pushJs(childRefFor(expr, key));\n});\nAPPEND_OPCODES.add(23\n/* GetBlock */\n, (vm, {\n  op1: _block\n}) => {\n  let {\n    stack\n  } = vm;\n  let block = vm.scope().getBlock(_block);\n\n  if (block === null) {\n    stack.pushNull();\n  } else {\n    stack.pushJs(block);\n  }\n});\nAPPEND_OPCODES.add(24\n/* SpreadBlock */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let block = stack.popJs();\n\n  if (block && !isUndefinedReference(block)) {\n    let [handleOrCompilable, scope, table] = block;\n    stack.pushJs(table);\n    stack.pushJs(scope);\n\n    if (typeof handleOrCompilable === 'number') {\n      stack.pushSmallInt(handleOrCompilable);\n    } else {\n      stack.pushJs(handleOrCompilable);\n    }\n  } else {\n    stack.pushNull();\n    stack.pushNull();\n    stack.pushNull();\n  }\n});\n\nfunction isUndefinedReference(input) {\n  return input === UNDEFINED_REFERENCE;\n}\n\nAPPEND_OPCODES.add(25\n/* HasBlock */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let block = stack.pop();\n\n  if (block && !isUndefinedReference(block)) {\n    stack.pushJs(TRUE_REFERENCE);\n  } else {\n    stack.pushJs(FALSE_REFERENCE);\n  }\n});\nAPPEND_OPCODES.add(26\n/* HasBlockParams */\n, vm => {\n  // FIXME(mmun): should only need to push the symbol table\n  let block = vm.stack.pop();\n  let scope = vm.stack.popJs();\n  let table = vm.stack.popJs();\n  let hasBlockParams = table && table.parameters.length;\n  vm.stack.pushJs(hasBlockParams ? TRUE_REFERENCE : FALSE_REFERENCE);\n});\nAPPEND_OPCODES.add(27\n/* Concat */\n, (vm, {\n  op1: count\n}) => {\n  let out = new Array(count);\n\n  for (let i = count; i > 0; i--) {\n    let offset = i - 1;\n    out[offset] = vm.stack.pop();\n  }\n\n  vm.stack.pushJs(createConcatRef(out));\n});\n/**\n * Converts a ComponentCapabilities object into a 32-bit integer representation.\n */\n\nfunction capabilityFlagsFrom(capabilities) {\n  return 0 | (capabilities.dynamicLayout ? 1\n  /* DynamicLayout */\n  : 0) | (capabilities.dynamicTag ? 2\n  /* DynamicTag */\n  : 0) | (capabilities.prepareArgs ? 4\n  /* PrepareArgs */\n  : 0) | (capabilities.createArgs ? 8\n  /* CreateArgs */\n  : 0) | (capabilities.attributeHook ? 16\n  /* AttributeHook */\n  : 0) | (capabilities.elementHook ? 32\n  /* ElementHook */\n  : 0) | (capabilities.dynamicScope ? 64\n  /* DynamicScope */\n  : 0) | (capabilities.createCaller ? 128\n  /* CreateCaller */\n  : 0) | (capabilities.updateHook ? 256\n  /* UpdateHook */\n  : 0) | (capabilities.createInstance ? 512\n  /* CreateInstance */\n  : 0) | (capabilities.wrapped ? 1024\n  /* Wrapped */\n  : 0) | (capabilities.willDestroy ? 2048\n  /* WillDestroy */\n  : 0);\n}\n\nfunction managerHasCapability(_manager, capabilities, capability) {\n  return !!(capabilities & capability);\n}\n\nfunction hasCapability(capabilities, capability) {\n  return !!(capabilities & capability);\n}\n\nconst INNER = symbol('INNER');\nconst ARGS$1 = symbol('ARGS');\nconst CURRIED_COMPONENT_DEFINITIONS = new _WeakSet();\n\nfunction isCurriedComponentDefinition(definition) {\n  return CURRIED_COMPONENT_DEFINITIONS.has(definition);\n}\n\nclass CurriedComponentDefinition {\n  /** @internal */\n  constructor(inner, args) {\n    CURRIED_COMPONENT_DEFINITIONS.add(this);\n    this[INNER] = inner;\n    this[ARGS$1] = args;\n  }\n\n}\n\nfunction offset(definition) {\n  let inner = definition[INNER];\n  let args = definition[ARGS$1];\n  let length = args ? args.positional.length : 0;\n  return isCurriedComponentDefinition(inner) ? length + offset(inner) : length;\n}\n\nfunction unwrapCurriedComponentDefinition(_definition, args) {\n  let definition = _definition;\n  args.realloc(offset(definition));\n\n  while (true) {\n    let {\n      [ARGS$1]: curriedArgs,\n      [INNER]: inner\n    } = definition;\n\n    if (curriedArgs) {\n      args.positional.prepend(curriedArgs.positional);\n      args.named.merge(curriedArgs.named);\n    }\n\n    if (!isCurriedComponentDefinition(inner)) {\n      return inner;\n    }\n\n    definition = inner;\n  }\n}\n\nfunction resolveCurriedComponentDefinition(instance, definition, args) {\n  let unwrappedDefinition = instance.definition = unwrapCurriedComponentDefinition(definition, args);\n  let {\n    manager,\n    state\n  } = unwrappedDefinition;\n  instance.manager = manager;\n  instance.capabilities = capabilityFlagsFrom(manager.getCapabilities(state));\n  return unwrappedDefinition;\n}\n\nfunction curry(spec, args = null) {\n  return new CurriedComponentDefinition(spec, args);\n}\n\nfunction resolveComponent(resolver, name, owner) {\n  let definition = resolver.lookupComponent(name, owner);\n  return definition;\n}\n/** @internal */\n\n\nfunction hasStaticLayout(capabilities, _manager) {\n  return !hasCapability(capabilities, 1\n  /* DynamicLayout */\n  );\n}\n\nfunction hasCustomDebugRenderTreeLifecycle(manager) {\n  return 'getDebugCustomRenderTree' in manager;\n}\n\nconst DEFAULT_CAPABILITIES = {\n  dynamicLayout: true,\n  dynamicTag: true,\n  prepareArgs: true,\n  createArgs: true,\n  attributeHook: false,\n  elementHook: false,\n  dynamicScope: true,\n  createCaller: false,\n  updateHook: true,\n  createInstance: true,\n  wrapped: false,\n  willDestroy: false\n};\nconst MINIMAL_CAPABILITIES = {\n  dynamicLayout: false,\n  dynamicTag: false,\n  prepareArgs: false,\n  createArgs: false,\n  attributeHook: false,\n  elementHook: false,\n  dynamicScope: false,\n  createCaller: false,\n  updateHook: false,\n  createInstance: false,\n  wrapped: false,\n  willDestroy: false\n};\n\nfunction createClassListRef(list) {\n  return createComputeRef(() => {\n    let ret = [];\n\n    for (let i = 0; i < list.length; i++) {\n      let ref = list[i];\n      let value = normalizeStringValue(typeof ref === 'string' ? ref : valueForRef(list[i]));\n      if (value) ret.push(value);\n    }\n\n    return ret.length === 0 ? null : ret.join(' ');\n  });\n}\n\nfunction createCurryComponentRef(inner, resolver, owner, args) {\n  let lastValue, lastDefinition;\n  return createComputeRef(() => {\n    let value = valueForRef(inner);\n\n    if (value === lastValue) {\n      return lastDefinition;\n    }\n\n    let definition = null;\n\n    if (isCurriedComponentDefinition(value)) {\n      definition = value;\n    } else if (typeof value === 'string' && value) {\n      definition = resolveComponent(resolver, value, owner);\n    }\n\n    definition = curry$1(definition, args);\n    lastValue = value;\n    lastDefinition = definition;\n    return definition;\n  });\n}\n\nfunction curry$1(definition, args) {\n  if (!args && isCurriedComponentDefinition(definition)) {\n    return definition;\n  } else if (!definition) {\n    return null;\n  } else {\n    return new CurriedComponentDefinition(definition, args);\n  }\n}\n/*\n  The calling convention is:\n\n  * 0-N block arguments at the bottom\n  * 0-N positional arguments next (left-to-right)\n  * 0-N named arguments next\n*/\n\n\nclass VMArgumentsImpl {\n  constructor() {\n    this.stack = null;\n    this.positional = new PositionalArgumentsImpl();\n    this.named = new NamedArgumentsImpl();\n    this.blocks = new BlockArgumentsImpl();\n  }\n\n  empty(stack) {\n    let base = stack[REGISTERS][$sp] + 1;\n    this.named.empty(stack, base);\n    this.positional.empty(stack, base);\n    this.blocks.empty(stack, base);\n    return this;\n  }\n\n  setup(stack, names, blockNames, positionalCount, atNames) {\n    this.stack = stack;\n    /*\n           | ... | blocks      | positional  | named |\n           | ... | b0    b1    | p0 p1 p2 p3 | n0 n1 |\n     index | ... | 4/5/6 7/8/9 | 10 11 12 13 | 14 15 |\n                   ^             ^             ^  ^\n                 bbase         pbase       nbase  sp\n    */\n\n    let named = this.named;\n    let namedCount = names.length;\n    let namedBase = stack[REGISTERS][$sp] - namedCount + 1;\n    named.setup(stack, namedBase, namedCount, names, atNames);\n    let positional = this.positional;\n    let positionalBase = namedBase - positionalCount;\n    positional.setup(stack, positionalBase, positionalCount);\n    let blocks = this.blocks;\n    let blocksCount = blockNames.length;\n    let blocksBase = positionalBase - blocksCount * 3;\n    blocks.setup(stack, blocksBase, blocksCount, blockNames);\n  }\n\n  get base() {\n    return this.blocks.base;\n  }\n\n  get length() {\n    return this.positional.length + this.named.length + this.blocks.length * 3;\n  }\n\n  at(pos) {\n    return this.positional.at(pos);\n  }\n\n  realloc(offset) {\n    let {\n      stack\n    } = this;\n\n    if (offset > 0 && stack !== null) {\n      let {\n        positional,\n        named\n      } = this;\n      let newBase = positional.base + offset;\n      let length = positional.length + named.length;\n\n      for (let i = length - 1; i >= 0; i--) {\n        stack.copy(i + positional.base, i + newBase);\n      }\n\n      positional.base += offset;\n      named.base += offset;\n      stack[REGISTERS][$sp] += offset;\n    }\n  }\n\n  capture() {\n    let positional = this.positional.length === 0 ? EMPTY_POSITIONAL : this.positional.capture();\n    let named = this.named.length === 0 ? EMPTY_NAMED : this.named.capture();\n    return {\n      named,\n      positional\n    };\n  }\n\n  clear() {\n    let {\n      stack,\n      length\n    } = this;\n    if (length > 0 && stack !== null) stack.pop(length);\n  }\n\n}\n\nclass PositionalArgumentsImpl {\n  constructor() {\n    this.base = 0;\n    this.length = 0;\n    this.stack = null;\n    this._references = null;\n  }\n\n  empty(stack, base) {\n    this.stack = stack;\n    this.base = base;\n    this.length = 0;\n    this._references = EMPTY_ARRAY;\n  }\n\n  setup(stack, base, length) {\n    this.stack = stack;\n    this.base = base;\n    this.length = length;\n\n    if (length === 0) {\n      this._references = EMPTY_ARRAY;\n    } else {\n      this._references = null;\n    }\n  }\n\n  at(position) {\n    let {\n      base,\n      length,\n      stack\n    } = this;\n\n    if (position < 0 || position >= length) {\n      return UNDEFINED_REFERENCE;\n    }\n\n    return stack.get(position, base);\n  }\n\n  capture() {\n    return this.references;\n  }\n\n  prepend(other) {\n    let additions = other.length;\n\n    if (additions > 0) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      this.base = base = base - additions;\n      this.length = length + additions;\n\n      for (let i = 0; i < additions; i++) {\n        stack.set(other[i], i, base);\n      }\n\n      this._references = null;\n    }\n  }\n\n  get references() {\n    let references = this._references;\n\n    if (!references) {\n      let {\n        stack,\n        base,\n        length\n      } = this;\n      references = this._references = stack.slice(base, base + length);\n    }\n\n    return references;\n  }\n\n}\n\nclass NamedArgumentsImpl {\n  constructor() {\n    this.base = 0;\n    this.length = 0;\n    this._references = null;\n    this._names = EMPTY_ARRAY;\n    this._atNames = EMPTY_ARRAY;\n  }\n\n  empty(stack, base) {\n    this.stack = stack;\n    this.base = base;\n    this.length = 0;\n    this._references = EMPTY_ARRAY;\n    this._names = EMPTY_ARRAY;\n    this._atNames = EMPTY_ARRAY;\n  }\n\n  setup(stack, base, length, names, atNames) {\n    this.stack = stack;\n    this.base = base;\n    this.length = length;\n\n    if (length === 0) {\n      this._references = EMPTY_ARRAY;\n      this._names = EMPTY_ARRAY;\n      this._atNames = EMPTY_ARRAY;\n    } else {\n      this._references = null;\n\n      if (atNames) {\n        this._names = null;\n        this._atNames = names;\n      } else {\n        this._names = names;\n        this._atNames = null;\n      }\n    }\n  }\n\n  get names() {\n    let names = this._names;\n\n    if (!names) {\n      names = this._names = this._atNames.map(this.toSyntheticName);\n    }\n\n    return names;\n  }\n\n  get atNames() {\n    let atNames = this._atNames;\n\n    if (!atNames) {\n      atNames = this._atNames = this._names.map(this.toAtName);\n    }\n\n    return atNames;\n  }\n\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n\n  get(name, atNames = false) {\n    let {\n      base,\n      stack\n    } = this;\n    let names = atNames ? this.atNames : this.names;\n    let idx = names.indexOf(name);\n\n    if (idx === -1) {\n      return UNDEFINED_REFERENCE;\n    }\n\n    let ref = stack.get(idx, base);\n\n    if (DEBUG) {\n      return createDebugAliasRef(atNames ? name : `@${name}`, ref);\n    } else {\n      return ref;\n    }\n  }\n\n  capture() {\n    let {\n      names,\n      references\n    } = this;\n    let map = dict();\n\n    for (let i = 0; i < names.length; i++) {\n      let name = names[i];\n\n      if (DEBUG) {\n        map[name] = createDebugAliasRef(`@${name}`, references[i]);\n      } else {\n        map[name] = references[i];\n      }\n    }\n\n    return map;\n  }\n\n  merge(other) {\n    let keys = Object.keys(other);\n\n    if (keys.length > 0) {\n      let {\n        names,\n        length,\n        stack\n      } = this;\n      let newNames = names.slice();\n\n      for (let i = 0; i < keys.length; i++) {\n        let name = keys[i];\n        let idx = newNames.indexOf(name);\n\n        if (idx === -1) {\n          length = newNames.push(name);\n          stack.pushJs(other[name]);\n        }\n      }\n\n      this.length = length;\n      this._references = null;\n      this._names = newNames;\n      this._atNames = null;\n    }\n  }\n\n  get references() {\n    let references = this._references;\n\n    if (!references) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      references = this._references = stack.slice(base, base + length);\n    }\n\n    return references;\n  }\n\n  toSyntheticName(name) {\n    return name.slice(1);\n  }\n\n  toAtName(name) {\n    return `@${name}`;\n  }\n\n}\n\nfunction toSymbolName(name) {\n  return `&${name}`;\n}\n\nclass BlockArgumentsImpl {\n  constructor() {\n    this.internalValues = null;\n    this._symbolNames = null;\n    this.internalTag = null;\n    this.names = EMPTY_ARRAY;\n    this.length = 0;\n    this.base = 0;\n  }\n\n  empty(stack, base) {\n    this.stack = stack;\n    this.names = EMPTY_ARRAY;\n    this.base = base;\n    this.length = 0;\n    this._symbolNames = null;\n    this.internalTag = CONSTANT_TAG;\n    this.internalValues = EMPTY_ARRAY;\n  }\n\n  setup(stack, base, length, names) {\n    this.stack = stack;\n    this.names = names;\n    this.base = base;\n    this.length = length;\n    this._symbolNames = null;\n\n    if (length === 0) {\n      this.internalTag = CONSTANT_TAG;\n      this.internalValues = EMPTY_ARRAY;\n    } else {\n      this.internalTag = null;\n      this.internalValues = null;\n    }\n  }\n\n  get values() {\n    let values = this.internalValues;\n\n    if (!values) {\n      let {\n        base,\n        length,\n        stack\n      } = this;\n      values = this.internalValues = stack.slice(base, base + length * 3);\n    }\n\n    return values;\n  }\n\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n\n  get(name) {\n    let idx = this.names.indexOf(name);\n\n    if (idx === -1) {\n      return null;\n    }\n\n    let {\n      base,\n      stack\n    } = this;\n    let table = stack.get(idx * 3, base);\n    let scope = stack.get(idx * 3 + 1, base);\n    let handle = stack.get(idx * 3 + 2, base);\n    return handle === null ? null : [handle, scope, table];\n  }\n\n  capture() {\n    return new CapturedBlockArgumentsImpl(this.names, this.values);\n  }\n\n  get symbolNames() {\n    let symbolNames = this._symbolNames;\n\n    if (symbolNames === null) {\n      symbolNames = this._symbolNames = this.names.map(toSymbolName);\n    }\n\n    return symbolNames;\n  }\n\n}\n\nclass CapturedBlockArgumentsImpl {\n  constructor(names, values) {\n    this.names = names;\n    this.values = values;\n    this.length = names.length;\n  }\n\n  has(name) {\n    return this.names.indexOf(name) !== -1;\n  }\n\n  get(name) {\n    let idx = this.names.indexOf(name);\n    if (idx === -1) return null;\n    return [this.values[idx * 3 + 2], this.values[idx * 3 + 1], this.values[idx * 3]];\n  }\n\n}\n\nfunction createCapturedArgs(named, positional) {\n  return {\n    named,\n    positional\n  };\n}\n\nfunction reifyNamed(named) {\n  let reified = dict();\n\n  for (let key in named) {\n    reified[key] = valueForRef(named[key]);\n  }\n\n  return reified;\n}\n\nfunction reifyPositional(positional) {\n  return positional.map(valueForRef);\n}\n\nfunction reifyArgs(args) {\n  return {\n    named: reifyNamed(args.named),\n    positional: reifyPositional(args.positional)\n  };\n}\n\nconst EMPTY_NAMED = Object.freeze(Object.create(null));\nconst EMPTY_POSITIONAL = EMPTY_ARRAY;\nconst EMPTY_ARGS = createCapturedArgs(EMPTY_NAMED, EMPTY_POSITIONAL);\nAPPEND_OPCODES.add(38\n/* ChildScope */\n, vm => vm.pushChildScope());\nAPPEND_OPCODES.add(39\n/* PopScope */\n, vm => vm.popScope());\nAPPEND_OPCODES.add(58\n/* PushDynamicScope */\n, vm => vm.pushDynamicScope());\nAPPEND_OPCODES.add(59\n/* PopDynamicScope */\n, vm => vm.popDynamicScope());\nAPPEND_OPCODES.add(28\n/* Constant */\n, (vm, {\n  op1: other\n}) => {\n  vm.stack.pushJs(vm[CONSTANTS].getValue(decodeHandle(other)));\n});\nAPPEND_OPCODES.add(29\n/* Primitive */\n, (vm, {\n  op1: primitive\n}) => {\n  let stack = vm.stack;\n\n  if (isNonPrimitiveHandle(primitive)) {\n    // it is a handle which does not already exist on the stack\n    let value = vm[CONSTANTS].getValue(decodeHandle(primitive));\n    stack.pushJs(value);\n  } else {\n    // is already an encoded immediate or primitive handle\n    stack.pushRaw(primitive);\n  }\n});\nAPPEND_OPCODES.add(30\n/* PrimitiveReference */\n, vm => {\n  let stack = vm.stack;\n  let value = stack.pop();\n  let ref;\n\n  if (value === undefined) {\n    ref = UNDEFINED_REFERENCE;\n  } else if (value === null) {\n    ref = NULL_REFERENCE;\n  } else if (value === true) {\n    ref = TRUE_REFERENCE;\n  } else if (value === false) {\n    ref = FALSE_REFERENCE;\n  } else {\n    ref = createPrimitiveRef(value);\n  }\n\n  stack.pushJs(ref);\n});\nAPPEND_OPCODES.add(32\n/* Dup */\n, (vm, {\n  op1: register,\n  op2: offset\n}) => {\n  let position = vm.fetchValue(register) - offset;\n  vm.stack.dup(position);\n});\nAPPEND_OPCODES.add(33\n/* Pop */\n, (vm, {\n  op1: count\n}) => {\n  vm.stack.pop(count);\n});\nAPPEND_OPCODES.add(34\n/* Load */\n, (vm, {\n  op1: register\n}) => {\n  vm.load(register);\n});\nAPPEND_OPCODES.add(35\n/* Fetch */\n, (vm, {\n  op1: register\n}) => {\n  vm.fetch(register);\n});\nAPPEND_OPCODES.add(57\n/* BindDynamicScope */\n, (vm, {\n  op1: _names\n}) => {\n  let names = vm[CONSTANTS].getArray(_names);\n  vm.bindDynamicScope(names);\n});\nAPPEND_OPCODES.add(68\n/* Enter */\n, (vm, {\n  op1: args\n}) => {\n  vm.enter(args);\n});\nAPPEND_OPCODES.add(69\n/* Exit */\n, vm => {\n  vm.exit();\n});\nAPPEND_OPCODES.add(62\n/* PushSymbolTable */\n, (vm, {\n  op1: _table\n}) => {\n  let stack = vm.stack;\n  stack.pushJs(vm[CONSTANTS].getSerializable(_table));\n});\nAPPEND_OPCODES.add(61\n/* PushBlockScope */\n, vm => {\n  let stack = vm.stack;\n  stack.pushJs(vm.scope());\n});\nAPPEND_OPCODES.add(60\n/* CompileBlock */\n, vm => {\n  let stack = vm.stack;\n  let block = stack.pop();\n\n  if (block) {\n    stack.pushSmallInt(vm.compile(block));\n  } else {\n    stack.pushNull();\n  }\n});\nAPPEND_OPCODES.add(63\n/* InvokeYield */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let handle = stack.pop();\n  let scope = stack.popJs();\n  let table = stack.popJs();\n  let args = stack.pop();\n\n  if (table === null) {\n    // To balance the pop{Frame,Scope}\n    vm.pushFrame();\n    vm.pushScope(scope); // Could be null but it doesnt matter as it is immediatelly popped.\n\n    return;\n  }\n\n  let invokingScope = scope; // If necessary, create a child scope\n\n  {\n    let locals = table.parameters;\n    let localsCount = locals.length;\n\n    if (localsCount > 0) {\n      invokingScope = invokingScope.child();\n\n      for (let i = 0; i < localsCount; i++) {\n        invokingScope.bindSymbol(locals[i], args.at(i));\n      }\n    }\n  }\n  vm.pushFrame();\n  vm.pushScope(invokingScope);\n  vm.call(handle);\n});\nAPPEND_OPCODES.add(64\n/* JumpIf */\n, (vm, {\n  op1: target\n}) => {\n  let reference = vm.stack.popJs();\n  let value = Boolean(valueForRef(reference));\n\n  if (isConstRef(reference)) {\n    if (value === true) {\n      vm.goto(target);\n    }\n  } else {\n    if (value === true) {\n      vm.goto(target);\n    }\n\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(65\n/* JumpUnless */\n, (vm, {\n  op1: target\n}) => {\n  let reference = vm.stack.popJs();\n  let value = Boolean(valueForRef(reference));\n\n  if (isConstRef(reference)) {\n    if (value === false) {\n      vm.goto(target);\n    }\n  } else {\n    if (value === false) {\n      vm.goto(target);\n    }\n\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(66\n/* JumpEq */\n, (vm, {\n  op1: target,\n  op2: comparison\n}) => {\n  let other = vm.stack.peekSmallInt();\n\n  if (other === comparison) {\n    vm.goto(target);\n  }\n});\nAPPEND_OPCODES.add(67\n/* AssertSame */\n, vm => {\n  let reference = vm.stack.peekJs();\n\n  if (isConstRef(reference) === false) {\n    vm.updateWith(new Assert(reference));\n  }\n});\nAPPEND_OPCODES.add(70\n/* ToBoolean */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let valueRef = stack.popJs();\n  stack.pushJs(createComputeRef(() => toBool(valueForRef(valueRef))));\n});\n\nclass Assert extends UpdatingOpcode {\n  constructor(ref) {\n    super();\n    this.ref = ref;\n    this.type = 'assert';\n    this.last = valueForRef(ref);\n  }\n\n  evaluate(vm) {\n    let {\n      last,\n      ref\n    } = this;\n    let current = valueForRef(ref);\n\n    if (last !== current) {\n      vm.throw();\n    }\n  }\n\n}\n\nclass AssertFilter extends UpdatingOpcode {\n  constructor(ref, filter) {\n    super();\n    this.ref = ref;\n    this.filter = filter;\n    this.type = 'assert-filter';\n    this.last = filter(valueForRef(ref));\n  }\n\n  evaluate(vm) {\n    let {\n      last,\n      ref,\n      filter\n    } = this;\n    let current = filter(valueForRef(ref));\n\n    if (last !== current) {\n      vm.throw();\n    }\n  }\n\n}\n\nclass JumpIfNotModifiedOpcode extends UpdatingOpcode {\n  constructor() {\n    super(...arguments);\n    this.type = 'jump-if-not-modified';\n    this.tag = CONSTANT_TAG;\n    this.lastRevision = INITIAL;\n  }\n\n  finalize(tag, target) {\n    this.target = target;\n    this.didModify(tag);\n  }\n\n  evaluate(vm) {\n    let {\n      tag,\n      target,\n      lastRevision\n    } = this;\n\n    if (!vm.alwaysRevalidate && validateTag(tag, lastRevision)) {\n      consumeTag(tag);\n      vm.goto(target);\n    }\n  }\n\n  didModify(tag) {\n    this.tag = tag;\n    this.lastRevision = valueForTag(this.tag);\n    consumeTag(tag);\n  }\n\n}\n\nclass BeginTrackFrameOpcode extends UpdatingOpcode {\n  constructor(debugLabel) {\n    super();\n    this.debugLabel = debugLabel;\n    this.type = 'begin-track-frame';\n  }\n\n  evaluate() {\n    beginTrackFrame(this.debugLabel);\n  }\n\n}\n\nclass EndTrackFrameOpcode extends UpdatingOpcode {\n  constructor(target) {\n    super();\n    this.target = target;\n    this.type = 'end-track-frame';\n  }\n\n  evaluate() {\n    let tag = endTrackFrame();\n    this.target.didModify(tag);\n  }\n\n}\n\nAPPEND_OPCODES.add(40\n/* Text */\n, (vm, {\n  op1: text\n}) => {\n  vm.elements().appendText(vm[CONSTANTS].getValue(text));\n});\nAPPEND_OPCODES.add(41\n/* Comment */\n, (vm, {\n  op1: text\n}) => {\n  vm.elements().appendComment(vm[CONSTANTS].getValue(text));\n});\nAPPEND_OPCODES.add(47\n/* OpenElement */\n, (vm, {\n  op1: tag\n}) => {\n  vm.elements().openElement(vm[CONSTANTS].getValue(tag));\n});\nAPPEND_OPCODES.add(48\n/* OpenDynamicElement */\n, vm => {\n  let tagName = valueForRef(vm.stack.popJs());\n  vm.elements().openElement(tagName);\n});\nAPPEND_OPCODES.add(49\n/* PushRemoteElement */\n, vm => {\n  let elementRef = vm.stack.popJs();\n  let insertBeforeRef = vm.stack.popJs();\n  let guidRef = vm.stack.popJs();\n  let element = valueForRef(elementRef);\n  let insertBefore = valueForRef(insertBeforeRef);\n  let guid = valueForRef(guidRef);\n\n  if (!isConstRef(elementRef)) {\n    vm.updateWith(new Assert(elementRef));\n  }\n\n  if (insertBefore !== undefined && !isConstRef(insertBeforeRef)) {\n    vm.updateWith(new Assert(insertBeforeRef));\n  }\n\n  let block = vm.elements().pushRemoteElement(element, guid, insertBefore);\n  if (block) vm.associateDestroyable(block);\n});\nAPPEND_OPCODES.add(55\n/* PopRemoteElement */\n, vm => {\n  vm.elements().popRemoteElement();\n});\nAPPEND_OPCODES.add(53\n/* FlushElement */\n, vm => {\n  let operations = vm.fetchValue($t0);\n  let modifiers = null;\n\n  if (operations) {\n    modifiers = operations.flush(vm);\n    vm.loadValue($t0, null);\n  }\n\n  vm.elements().flushElement(modifiers);\n});\nAPPEND_OPCODES.add(54\n/* CloseElement */\n, vm => {\n  let modifiers = vm.elements().closeElement();\n\n  if (modifiers) {\n    modifiers.forEach(([manager, modifier]) => {\n      vm.env.scheduleInstallModifier(modifier, manager);\n      let d = manager.getDestroyable(modifier);\n\n      if (d) {\n        vm.associateDestroyable(d);\n      }\n    });\n  }\n});\nAPPEND_OPCODES.add(56\n/* Modifier */\n, (vm, {\n  op1: handle\n}) => {\n  let {\n    manager,\n    state\n  } = vm.runtime.resolver.resolve(handle);\n  let stack = vm.stack;\n  let args = stack.popJs();\n  let {\n    constructing,\n    updateOperations\n  } = vm.elements();\n  let dynamicScope = vm.dynamicScope();\n  let modifier = manager.create(constructing, state, args, dynamicScope, updateOperations);\n  let operations = vm.fetchValue($t0);\n  operations.addModifier(manager, modifier);\n  let tag = manager.getTag(modifier);\n\n  if (tag !== null) {\n    consumeTag(tag);\n    vm.updateWith(new UpdateModifierOpcode(tag, manager, modifier));\n  }\n});\n\nclass UpdateModifierOpcode extends UpdatingOpcode {\n  constructor(tag, manager, modifier) {\n    super();\n    this.tag = tag;\n    this.manager = manager;\n    this.modifier = modifier;\n    this.type = 'update-modifier';\n    this.lastUpdated = valueForTag(tag);\n  }\n\n  evaluate(vm) {\n    let {\n      manager,\n      modifier,\n      tag,\n      lastUpdated\n    } = this;\n    consumeTag(tag);\n\n    if (!validateTag(tag, lastUpdated)) {\n      vm.env.scheduleUpdateModifier(modifier, manager);\n      this.lastUpdated = valueForTag(tag);\n    }\n  }\n\n}\n\nAPPEND_OPCODES.add(50\n/* StaticAttr */\n, (vm, {\n  op1: _name,\n  op2: _value,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let value = vm[CONSTANTS].getValue(_value);\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  vm.elements().setStaticAttribute(name, value, namespace);\n});\nAPPEND_OPCODES.add(51\n/* DynamicAttr */\n, (vm, {\n  op1: _name,\n  op2: trusting,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let reference = vm.stack.popJs();\n  let value = valueForRef(reference);\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  let attribute = vm.elements().setDynamicAttribute(name, value, !!trusting, namespace);\n\n  if (!isConstRef(reference)) {\n    vm.updateWith(new UpdateDynamicAttributeOpcode(reference, attribute, vm.env));\n  }\n});\n\nclass UpdateDynamicAttributeOpcode extends UpdatingOpcode {\n  constructor(reference, attribute, env) {\n    super();\n    this.type = 'patch-element';\n    let initialized = false;\n    this.updateRef = createComputeRef(() => {\n      let value = valueForRef(reference);\n\n      if (initialized === true) {\n        attribute.update(value, env);\n      } else {\n        initialized = true;\n      }\n    });\n    valueForRef(this.updateRef);\n  }\n\n  evaluate() {\n    valueForRef(this.updateRef);\n  }\n\n}\n/**\n * The VM creates a new ComponentInstance data structure for every component\n * invocation it encounters.\n *\n * Similar to how a ComponentDefinition contains state about all components of a\n * particular type, a ComponentInstance contains state specific to a particular\n * instance of a component type. It also contains a pointer back to its\n * component type's ComponentDefinition.\n */\n\n\nconst COMPONENT_INSTANCE = symbol('COMPONENT_INSTANCE');\nAPPEND_OPCODES.add(76\n/* CurryComponent */\n, (vm, {\n  op1: _owner\n}) => {\n  let stack = vm.stack;\n  let definition = stack.popJs();\n  let capturedArgs = stack.popJs();\n  let owner = vm[CONSTANTS].getValue(decodeHandle(_owner));\n  let resolver = vm.runtime.resolver;\n  vm.loadValue($v0, createCurryComponentRef(definition, resolver, owner, capturedArgs));\n});\nAPPEND_OPCODES.add(77\n/* PushComponentDefinition */\n, (vm, {\n  op1: handle\n}) => {\n  let definition = vm.runtime.resolver.resolve(handle);\n  let {\n    manager\n  } = definition;\n  let capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n  let instance = {\n    [COMPONENT_INSTANCE]: true,\n    definition,\n    manager,\n    capabilities,\n    state: null,\n    handle: null,\n    table: null,\n    lookup: null\n  };\n  vm.stack.pushJs(instance);\n});\nAPPEND_OPCODES.add(80\n/* ResolveDynamicComponent */\n, (vm, {\n  op1: _owner\n}) => {\n  let stack = vm.stack;\n  let component = valueForRef(stack.popJs());\n  let owner = vm[CONSTANTS].getValue(_owner);\n  vm.loadValue($t1, null); // Clear the temp register\n\n  let definition;\n\n  if (typeof component === 'string') {\n    let resolvedDefinition = resolveComponent(vm.runtime.resolver, component, owner);\n    definition = resolvedDefinition;\n  } else {\n    definition = component;\n  }\n\n  stack.pushJs(definition);\n});\nAPPEND_OPCODES.add(81\n/* ResolveCurriedComponent */\n, vm => {\n  let stack = vm.stack;\n  let ref = stack.popJs();\n  let value = valueForRef(ref);\n\n  if (DEBUG && !isCurriedComponentDefinition(value)) {\n    throw new Error(`Expected a curried component definition, but received ${value}. You may have accidentally done <${ref.debugLabel}>, where \"${ref.debugLabel}\" was a string instead of a curried component definition. You must use the {{component}} helper to create a component definition when invoking dynamically.`);\n  }\n\n  let definition = value;\n  vm.loadValue($t1, null); // Clear the temp register\n\n  stack.pushJs(definition);\n});\nAPPEND_OPCODES.add(78\n/* PushDynamicComponentInstance */\n, vm => {\n  let {\n    stack\n  } = vm;\n  let definition = stack.pop();\n  let capabilities, manager;\n\n  if (isCurriedComponentDefinition(definition)) {\n    manager = capabilities = null;\n  } else {\n    manager = definition.manager;\n    capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n  }\n\n  stack.pushJs({\n    definition,\n    capabilities,\n    manager,\n    state: null,\n    handle: null,\n    table: null\n  });\n});\nAPPEND_OPCODES.add(79\n/* PushCurriedComponent */\n, vm => {\n  let stack = vm.stack;\n  let component = valueForRef(stack.popJs());\n  let definition;\n\n  if (isCurriedComponentDefinition(component)) {\n    definition = component;\n  } else {\n    throw unreachable();\n  }\n\n  stack.pushJs(definition);\n});\nAPPEND_OPCODES.add(82\n/* PushArgs */\n, (vm, {\n  op1: _names,\n  op2: _blockNames,\n  op3: flags\n}) => {\n  let stack = vm.stack;\n  let names = vm[CONSTANTS].getArray(_names);\n  let positionalCount = flags >> 4;\n  let atNames = flags & 0b1000;\n  let blockNames = flags & 0b0111 ? vm[CONSTANTS].getArray(_blockNames) : EMPTY_ARRAY;\n  vm[ARGS].setup(stack, names, blockNames, positionalCount, !!atNames);\n  stack.pushJs(vm[ARGS]);\n});\nAPPEND_OPCODES.add(83\n/* PushEmptyArgs */\n, vm => {\n  let {\n    stack\n  } = vm;\n  stack.pushJs(vm[ARGS].empty(stack));\n});\nAPPEND_OPCODES.add(86\n/* CaptureArgs */\n, vm => {\n  let stack = vm.stack;\n  let args = stack.popJs();\n  let capturedArgs = args.capture();\n  stack.pushJs(capturedArgs);\n});\nAPPEND_OPCODES.add(85\n/* PrepareArgs */\n, (vm, {\n  op1: _state\n}) => {\n  let stack = vm.stack;\n  let instance = vm.fetchValue(_state);\n  let args = stack.popJs();\n  let {\n    definition\n  } = instance;\n\n  if (isCurriedComponentDefinition(definition)) {\n    definition = resolveCurriedComponentDefinition(instance, definition, args);\n  }\n\n  let {\n    manager,\n    state\n  } = definition;\n  let capabilities = instance.capabilities;\n\n  if (!managerHasCapability(manager, capabilities, 4\n  /* PrepareArgs */\n  )) {\n    stack.pushJs(args);\n    return;\n  }\n\n  let blocks = args.blocks.values;\n  let blockNames = args.blocks.names;\n  let preparedArgs = manager.prepareArgs(state, args);\n\n  if (preparedArgs) {\n    args.clear();\n\n    for (let i = 0; i < blocks.length; i++) {\n      let block = blocks[i];\n\n      if (typeof block === 'number') {\n        stack.pushSmallInt(block);\n      } else {\n        stack.pushJs(block);\n      }\n    }\n\n    let {\n      positional,\n      named\n    } = preparedArgs;\n    let positionalCount = positional.length;\n\n    for (let i = 0; i < positionalCount; i++) {\n      stack.pushJs(positional[i]);\n    }\n\n    let names = Object.keys(named);\n\n    for (let i = 0; i < names.length; i++) {\n      stack.pushJs(named[names[i]]);\n    }\n\n    args.setup(stack, names, blockNames, positionalCount, false);\n  }\n\n  stack.pushJs(args);\n});\nAPPEND_OPCODES.add(87\n/* CreateComponent */\n, (vm, {\n  op1: flags,\n  op2: _state\n}) => {\n  let instance = vm.fetchValue(_state);\n  let {\n    definition,\n    manager\n  } = instance;\n  let capabilities = instance.capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n\n  if (!managerHasCapability(manager, capabilities, 512\n  /* CreateInstance */\n  )) {\n    // TODO: Closure and Main components are always invoked dynamically, so this\n    // opcode may run even if this capability is not enabled. In the future we\n    // should handle this in a better way.\n    return;\n  }\n\n  let dynamicScope = null;\n\n  if (managerHasCapability(manager, capabilities, 64\n  /* DynamicScope */\n  )) {\n    dynamicScope = vm.dynamicScope();\n  }\n\n  let hasDefaultBlock = flags & 1;\n  let args = null;\n\n  if (managerHasCapability(manager, capabilities, 8\n  /* CreateArgs */\n  )) {\n    args = vm.stack.peekJs();\n  }\n\n  let self = null;\n\n  if (managerHasCapability(manager, capabilities, 128\n  /* CreateCaller */\n  )) {\n    self = vm.getSelf();\n  }\n\n  let state = manager.create(vm.env, definition.state, args, dynamicScope, self, !!hasDefaultBlock); // We want to reuse the `state` POJO here, because we know that the opcodes\n  // only transition at exactly one place.\n\n  instance.state = state;\n\n  if (managerHasCapability(manager, capabilities, 256\n  /* UpdateHook */\n  )) {\n    vm.updateWith(new UpdateComponentOpcode(state, manager, dynamicScope));\n  }\n});\nAPPEND_OPCODES.add(88\n/* RegisterComponentDestructor */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    manager,\n    state,\n    capabilities\n  } = vm.fetchValue(_state);\n  let d = manager.getDestroyable(state);\n\n  if (DEBUG && !hasCapability(capabilities, 2048\n  /* WillDestroy */\n  ) && d !== null && typeof 'willDestroy' in d) {\n    throw new Error('BUG: Destructor has willDestroy, but the willDestroy capability was not enabled for this component. Pre-destruction hooks must be explicitly opted into');\n  }\n\n  if (d) vm.associateDestroyable(d);\n});\nAPPEND_OPCODES.add(97\n/* BeginComponentTransaction */\n, (vm, {\n  op1: _state\n}) => {\n  let name;\n\n  if (DEBUG) {\n    let {\n      definition,\n      manager\n    } = vm.fetchValue(_state);\n    name = manager.getDebugName(definition.state);\n  }\n\n  vm.beginCacheGroup(name);\n  vm.elements().pushSimpleBlock();\n});\nAPPEND_OPCODES.add(89\n/* PutComponentOperations */\n, vm => {\n  vm.loadValue($t0, new ComponentElementOperations());\n});\nAPPEND_OPCODES.add(52\n/* ComponentAttr */\n, (vm, {\n  op1: _name,\n  op2: trusting,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let reference = vm.stack.popJs();\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  vm.fetchValue($t0).setAttribute(name, reference, !!trusting, namespace);\n});\nAPPEND_OPCODES.add(105\n/* StaticComponentAttr */\n, (vm, {\n  op1: _name,\n  op2: _value,\n  op3: _namespace\n}) => {\n  let name = vm[CONSTANTS].getValue(_name);\n  let value = vm[CONSTANTS].getValue(_value);\n  let namespace = _namespace ? vm[CONSTANTS].getValue(_namespace) : null;\n  vm.fetchValue($t0).setStaticAttribute(name, value, namespace);\n});\n\nclass ComponentElementOperations {\n  constructor() {\n    this.attributes = dict();\n    this.classes = [];\n    this.modifiers = [];\n  }\n\n  setAttribute(name, value, trusting, namespace) {\n    let deferred = {\n      value,\n      namespace,\n      trusting\n    };\n\n    if (name === 'class') {\n      this.classes.push(value);\n    }\n\n    this.attributes[name] = deferred;\n  }\n\n  setStaticAttribute(name, value, namespace) {\n    let deferred = {\n      value,\n      namespace\n    };\n\n    if (name === 'class') {\n      this.classes.push(value);\n    }\n\n    this.attributes[name] = deferred;\n  }\n\n  addModifier(manager, state) {\n    this.modifiers.push([manager, state]);\n  }\n\n  flush(vm) {\n    let type;\n    let attributes = this.attributes;\n\n    for (let name in this.attributes) {\n      if (name === 'type') {\n        type = attributes[name];\n        continue;\n      }\n\n      let attr = this.attributes[name];\n\n      if (name === 'class') {\n        setDeferredAttr(vm, 'class', mergeClasses(this.classes), attr.namespace, attr.trusting);\n      } else {\n        setDeferredAttr(vm, name, attr.value, attr.namespace, attr.trusting);\n      }\n    }\n\n    if (type !== undefined) {\n      setDeferredAttr(vm, 'type', type.value, type.namespace, type.trusting);\n    }\n\n    return this.modifiers;\n  }\n\n}\n\nfunction mergeClasses(classes) {\n  if (classes.length === 0) {\n    return '';\n  }\n\n  if (classes.length === 1) {\n    return classes[0];\n  }\n\n  if (allStringClasses(classes)) {\n    return classes.join(' ');\n  }\n\n  return createClassListRef(classes);\n}\n\nfunction allStringClasses(classes) {\n  for (let i = 0; i < classes.length; i++) {\n    if (typeof classes[i] !== 'string') {\n      return false;\n    }\n  }\n\n  return true;\n}\n\nfunction setDeferredAttr(vm, name, value, namespace, trusting = false) {\n  if (typeof value === 'string') {\n    vm.elements().setStaticAttribute(name, value, namespace);\n  } else {\n    let attribute = vm.elements().setDynamicAttribute(name, valueForRef(value), trusting, namespace);\n\n    if (!isConstRef(value)) {\n      vm.updateWith(new UpdateDynamicAttributeOpcode(value, attribute, vm.env));\n    }\n  }\n}\n\nAPPEND_OPCODES.add(99\n/* DidCreateElement */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    definition,\n    state\n  } = vm.fetchValue(_state);\n  let {\n    manager\n  } = definition;\n  let operations = vm.fetchValue($t0);\n  manager.didCreateElement(state, vm.elements().constructing, operations);\n});\nAPPEND_OPCODES.add(90\n/* GetComponentSelf */\n, (vm, {\n  op1: _state,\n  op2: _names\n}) => {\n  let instance = vm.fetchValue(_state);\n  let {\n    definition,\n    state\n  } = instance;\n  let {\n    manager\n  } = definition;\n  let selfRef = manager.getSelf(state);\n\n  if (vm.env.debugRenderTree !== undefined) {\n    let instance = vm.fetchValue(_state);\n    let {\n      definition,\n      manager\n    } = instance;\n    let args;\n\n    if (vm.stack.peek() === vm[ARGS]) {\n      args = vm[ARGS].capture();\n    } else {\n      let names = vm[CONSTANTS].getValue(_names);\n      vm[ARGS].setup(vm.stack, names, [], 0, true);\n      args = vm[ARGS].capture();\n    }\n\n    let template = hasStaticLayout(instance.capabilities, manager) ? manager.getStaticLayout(definition.state) : manager.getDynamicLayout(state, vm.runtime.resolver); // For tearing down the debugRenderTree\n\n    vm.associateDestroyable(instance);\n\n    if (hasCustomDebugRenderTreeLifecycle(manager)) {\n      let nodes = manager.getDebugCustomRenderTree(instance.definition.state, instance.state, args, template);\n      nodes.forEach(node => {\n        let {\n          bucket\n        } = node;\n        vm.env.debugRenderTree.create(bucket, node);\n        registerDestructor(instance, () => {\n          var _a;\n\n          (_a = vm.env.debugRenderTree) === null || _a === void 0 ? void 0 : _a.willDestroy(bucket);\n        });\n        vm.updateWith(new DebugRenderTreeUpdateOpcode(bucket));\n      });\n    } else {\n      let name = manager.getDebugName(definition.state);\n      vm.env.debugRenderTree.create(instance, {\n        type: 'component',\n        name,\n        args,\n        template,\n        instance: valueForRef(selfRef)\n      });\n      vm.associateDestroyable(instance);\n      registerDestructor(instance, () => {\n        var _a;\n\n        (_a = vm.env.debugRenderTree) === null || _a === void 0 ? void 0 : _a.willDestroy(instance);\n      });\n      vm.updateWith(new DebugRenderTreeUpdateOpcode(instance));\n    }\n  }\n\n  vm.stack.pushJs(selfRef);\n});\nAPPEND_OPCODES.add(91\n/* GetComponentTagName */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    definition,\n    state\n  } = vm.fetchValue(_state);\n  let {\n    manager\n  } = definition;\n  let tagName = manager.getTagName(state); // User provided value from JS, so we don't bother to encode\n\n  vm.stack.pushJs(tagName);\n}); // Dynamic Invocation Only\n\nAPPEND_OPCODES.add(92\n/* GetComponentLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let instance = vm.fetchValue(_state);\n  let manager = instance.manager;\n  let {\n    definition\n  } = instance;\n  let {\n    stack\n  } = vm;\n  let {\n    capabilities\n  } = instance;\n  let template;\n\n  if (hasStaticLayout(capabilities, manager)) {\n    template = manager.getStaticLayout(definition.state);\n  } else {\n    template = manager.getDynamicLayout(instance.state, vm.runtime.resolver);\n  }\n\n  let layout;\n\n  if (hasCapability(capabilities, 1024\n  /* Wrapped */\n  )) {\n    layout = unwrapTemplate(template).asWrappedLayout();\n  } else {\n    layout = unwrapTemplate(template).asLayout();\n  }\n\n  let handle = layout.compile(vm.context);\n  stack.pushJs(layout.symbolTable);\n\n  if (DEBUG && isErrHandle(handle)) {\n    stack.pushJs(handle);\n  } else {\n    stack.pushSmallInt(handle);\n  }\n});\nAPPEND_OPCODES.add(74\n/* Main */\n, (vm, {\n  op1: register\n}) => {\n  let definition = vm.stack.popJs();\n  let invocation = vm.stack.popJs();\n  let {\n    manager\n  } = definition;\n  let capabilities = capabilityFlagsFrom(manager.getCapabilities(definition.state));\n  let state = {\n    [COMPONENT_INSTANCE]: true,\n    definition,\n    manager,\n    capabilities,\n    state: null,\n    handle: invocation.handle,\n    table: invocation.symbolTable,\n    lookup: null\n  };\n  vm.loadValue(register, state);\n});\nAPPEND_OPCODES.add(95\n/* PopulateLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    stack\n  } = vm; // In DEBUG handles could be ErrHandle objects\n\n  let handle = DEBUG ? stack.pop() : stack.popSmallInt();\n  let table = stack.popJs();\n  let state = vm.fetchValue(_state);\n  state.handle = handle;\n  state.table = table;\n});\nAPPEND_OPCODES.add(37\n/* VirtualRootScope */\n, (vm, {\n  op1: _state\n}) => {\n  let {\n    symbols\n  } = vm.fetchValue(_state).table;\n  vm.pushRootScope(symbols.length + 1);\n});\nAPPEND_OPCODES.add(94\n/* SetupForEval */\n, (vm, {\n  op1: _state\n}) => {\n  let state = vm.fetchValue(_state);\n\n  if (state.table.hasEval) {\n    let lookup = state.lookup = dict();\n    vm.scope().bindEvalScope(lookup);\n  }\n});\nAPPEND_OPCODES.add(17\n/* SetNamedVariables */\n, (vm, {\n  op1: _state\n}) => {\n  let state = vm.fetchValue(_state);\n  let scope = vm.scope();\n  let args = vm.stack.peekJs();\n  let callerNames = args.named.atNames;\n\n  for (let i = callerNames.length - 1; i >= 0; i--) {\n    let atName = callerNames[i];\n    let symbol$$1 = state.table.symbols.indexOf(callerNames[i]);\n    let value = args.named.get(atName, true);\n    if (symbol$$1 !== -1) scope.bindSymbol(symbol$$1 + 1, value);\n    if (state.lookup) state.lookup[atName] = value;\n  }\n});\n\nfunction bindBlock(symbolName, blockName, state, blocks, vm) {\n  let symbol$$1 = state.table.symbols.indexOf(symbolName);\n  let block = blocks.get(blockName);\n  if (symbol$$1 !== -1) vm.scope().bindBlock(symbol$$1 + 1, block);\n  if (state.lookup) state.lookup[symbolName] = block;\n}\n\nAPPEND_OPCODES.add(18\n/* SetBlocks */\n, (vm, {\n  op1: _state\n}) => {\n  let state = vm.fetchValue(_state);\n  let {\n    blocks\n  } = vm.stack.peekJs();\n\n  for (let i = 0; i < blocks.names.length; i++) {\n    bindBlock(blocks.symbolNames[i], blocks.names[i], state, blocks, vm);\n  }\n}); // Dynamic Invocation Only\n\nAPPEND_OPCODES.add(96\n/* InvokeComponentLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let state = vm.fetchValue(_state);\n  vm.call(state.handle);\n});\nAPPEND_OPCODES.add(100\n/* DidRenderLayout */\n, (vm, {\n  op1: _state\n}) => {\n  let instance = vm.fetchValue(_state);\n  let {\n    manager,\n    state,\n    capabilities\n  } = instance;\n  let bounds = vm.elements().popBlock();\n\n  if (vm.env.debugRenderTree !== undefined) {\n    if (hasCustomDebugRenderTreeLifecycle(manager)) {\n      let nodes = manager.getDebugCustomRenderTree(instance.definition.state, state, EMPTY_ARGS);\n      nodes.reverse().forEach(node => {\n        let {\n          bucket\n        } = node;\n        vm.env.debugRenderTree.didRender(bucket, bounds);\n        vm.updateWith(new DebugRenderTreeDidRenderOpcode(bucket, bounds));\n      });\n    } else {\n      vm.env.debugRenderTree.didRender(instance, bounds);\n      vm.updateWith(new DebugRenderTreeDidRenderOpcode(instance, bounds));\n    }\n  }\n\n  if (managerHasCapability(manager, capabilities, 512\n  /* CreateInstance */\n  )) {\n    let mgr = manager;\n    mgr.didRenderLayout(state, bounds);\n    vm.env.didCreate(state, manager);\n    vm.updateWith(new DidUpdateLayoutOpcode(manager, state, bounds));\n  }\n});\nAPPEND_OPCODES.add(98\n/* CommitComponentTransaction */\n, vm => {\n  vm.commitCacheGroup();\n});\n\nclass UpdateComponentOpcode extends UpdatingOpcode {\n  constructor(component, manager, dynamicScope) {\n    super();\n    this.component = component;\n    this.manager = manager;\n    this.dynamicScope = dynamicScope;\n    this.type = 'update-component';\n  }\n\n  evaluate(_vm) {\n    let {\n      component,\n      manager,\n      dynamicScope\n    } = this;\n    manager.update(component, dynamicScope);\n  }\n\n}\n\nclass DidUpdateLayoutOpcode extends UpdatingOpcode {\n  constructor(manager, component, bounds) {\n    super();\n    this.manager = manager;\n    this.component = component;\n    this.bounds = bounds;\n    this.type = 'did-update-layout';\n  }\n\n  evaluate(vm) {\n    let {\n      manager,\n      component,\n      bounds\n    } = this;\n    manager.didUpdateLayout(component, bounds);\n    vm.env.didUpdate(component, manager);\n  }\n\n}\n\nclass DebugRenderTreeUpdateOpcode extends UpdatingOpcode {\n  constructor(bucket) {\n    super();\n    this.bucket = bucket;\n    this.type = 'debug-render-tree-update';\n  }\n\n  evaluate(vm) {\n    var _a;\n\n    (_a = vm.env.debugRenderTree) === null || _a === void 0 ? void 0 : _a.update(this.bucket);\n  }\n\n}\n\nclass DebugRenderTreeDidRenderOpcode extends UpdatingOpcode {\n  constructor(bucket, bounds) {\n    super();\n    this.bucket = bucket;\n    this.bounds = bounds;\n    this.type = 'debug-render-tree-did-render';\n  }\n\n  evaluate(vm) {\n    var _a;\n\n    (_a = vm.env.debugRenderTree) === null || _a === void 0 ? void 0 : _a.didRender(this.bucket, this.bounds);\n  }\n\n}\n\nclass DynamicTextContent extends UpdatingOpcode {\n  constructor(node, reference, lastValue) {\n    super();\n    this.node = node;\n    this.reference = reference;\n    this.lastValue = lastValue;\n    this.type = 'dynamic-text';\n  }\n\n  evaluate() {\n    let value = valueForRef(this.reference);\n    let {\n      lastValue\n    } = this;\n    if (value === lastValue) return;\n    let normalized;\n\n    if (isEmpty(value)) {\n      normalized = '';\n    } else if (isString(value)) {\n      normalized = value;\n    } else {\n      normalized = String(value);\n    }\n\n    if (normalized !== lastValue) {\n      let textNode = this.node;\n      textNode.nodeValue = this.lastValue = normalized;\n    }\n  }\n\n}\n\nfunction toContentType(value) {\n  if (shouldCoerce(value)) {\n    return 1\n    /* String */\n    ;\n  } else if (isCurriedComponentDefinition(value)) {\n    return 0\n    /* Component */\n    ;\n  } else if (isSafeString(value)) {\n    return 3\n    /* SafeString */\n    ;\n  } else if (isFragment(value)) {\n    return 4\n    /* Fragment */\n    ;\n  } else if (isNode(value)) {\n    return 5\n    /* Node */\n    ;\n  } else {\n      return 1\n      /* String */\n      ;\n    }\n}\n\nAPPEND_OPCODES.add(75\n/* ContentType */\n, vm => {\n  let reference = vm.stack.peek();\n  vm.stack.pushSmallInt(toContentType(valueForRef(reference)));\n\n  if (!isConstRef(reference)) {\n    vm.updateWith(new AssertFilter(reference, toContentType));\n  }\n});\nAPPEND_OPCODES.add(42\n/* AppendHTML */\n, vm => {\n  let reference = vm.stack.popJs();\n  let rawValue = valueForRef(reference);\n  let value = isEmpty(rawValue) ? '' : String(rawValue);\n  vm.elements().appendDynamicHTML(value);\n});\nAPPEND_OPCODES.add(43\n/* AppendSafeHTML */\n, vm => {\n  let reference = vm.stack.popJs();\n  let rawValue = valueForRef(reference).toHTML();\n  let value = isEmpty(rawValue) ? '' : rawValue;\n  vm.elements().appendDynamicHTML(value);\n});\nAPPEND_OPCODES.add(46\n/* AppendText */\n, vm => {\n  let reference = vm.stack.popJs();\n  let rawValue = valueForRef(reference);\n  let value = isEmpty(rawValue) ? '' : String(rawValue);\n  let node = vm.elements().appendDynamicText(value);\n\n  if (!isConstRef(reference)) {\n    vm.updateWith(new DynamicTextContent(node, reference, value));\n  }\n});\nAPPEND_OPCODES.add(44\n/* AppendDocumentFragment */\n, vm => {\n  let reference = vm.stack.popJs();\n  let value = valueForRef(reference);\n  vm.elements().appendDynamicFragment(value);\n});\nAPPEND_OPCODES.add(45\n/* AppendNode */\n, vm => {\n  let reference = vm.stack.popJs();\n  let value = valueForRef(reference);\n  vm.elements().appendDynamicNode(value);\n});\n\nfunction debugCallback(context, get) {\n  console.info('Use `context`, and `get(<path>)` to debug this template.'); // for example...\n  // eslint-disable-next-line no-unused-expressions\n\n  context === get('this'); // eslint-disable-next-line no-debugger\n\n  debugger;\n}\n\nlet callback = debugCallback; // For testing purposes\n\nfunction setDebuggerCallback(cb) {\n  callback = cb;\n}\n\nfunction resetDebuggerCallback() {\n  callback = debugCallback;\n}\n\nclass ScopeInspector {\n  constructor(scope, symbols, evalInfo) {\n    this.scope = scope;\n    this.locals = dict();\n\n    for (let i = 0; i < evalInfo.length; i++) {\n      let slot = evalInfo[i];\n      let name = symbols[slot - 1];\n      let ref = scope.getSymbol(slot);\n      this.locals[name] = ref;\n    }\n  }\n\n  get(path) {\n    let {\n      scope,\n      locals\n    } = this;\n    let parts = path.split('.');\n    let [head, ...tail] = path.split('.');\n    let evalScope = scope.getEvalScope();\n    let ref;\n\n    if (head === 'this') {\n      ref = scope.getSelf();\n    } else if (locals[head]) {\n      ref = locals[head];\n    } else if (head.indexOf('@') === 0 && evalScope[head]) {\n      ref = evalScope[head];\n    } else {\n      ref = this.scope.getSelf();\n      tail = parts;\n    }\n\n    return tail.reduce((r, part) => childRefFor(r, part), ref);\n  }\n\n}\n\nAPPEND_OPCODES.add(103\n/* Debugger */\n, (vm, {\n  op1: _symbols,\n  op2: _evalInfo\n}) => {\n  let symbols = vm[CONSTANTS].getArray(_symbols);\n  let evalInfo = vm[CONSTANTS].getValue(decodeHandle(_evalInfo));\n  let inspector = new ScopeInspector(vm.scope(), symbols, evalInfo);\n  callback(valueForRef(vm.getSelf()), path => valueForRef(inspector.get(path)));\n});\nAPPEND_OPCODES.add(101\n/* InvokePartial */\n, (vm, {\n  op1: _owner,\n  op2: _symbols,\n  op3: _evalInfo\n}) => {\n  let {\n    [CONSTANTS]: constants$$1,\n    stack\n  } = vm;\n  let name = valueForRef(stack.pop());\n  let owner = constants$$1.getValue(decodeHandle(_owner));\n  let outerSymbols = constants$$1.getArray(_symbols);\n  let evalInfo = constants$$1.getValue(decodeHandle(_evalInfo));\n  let handle = vm.runtime.resolver.lookupPartial(name, owner);\n  let definition = vm.runtime.resolver.resolve(handle);\n  let {\n    symbolTable,\n    handle: vmHandle\n  } = definition.getPartial(vm.context);\n  {\n    let partialSymbols = symbolTable.symbols;\n    let outerScope = vm.scope();\n    let partialScope = vm.pushRootScope(partialSymbols.length);\n    let evalScope = outerScope.getEvalScope();\n    partialScope.bindEvalScope(evalScope);\n    partialScope.bindSelf(outerScope.getSelf());\n    let locals = Object.create(outerScope.getPartialMap());\n\n    for (let i = 0; i < evalInfo.length; i++) {\n      let slot = evalInfo[i];\n      let name = outerSymbols[slot - 1];\n      let ref = outerScope.getSymbol(slot);\n      locals[name] = ref;\n    }\n\n    if (evalScope) {\n      for (let i = 0; i < partialSymbols.length; i++) {\n        let name = partialSymbols[i];\n        let symbol$$1 = i + 1;\n        let value = evalScope[name];\n        if (value !== undefined) partialScope.bind(symbol$$1, value);\n      }\n    }\n\n    partialScope.bindPartialMap(locals);\n    vm.pushFrame(); // sp += 2\n\n    vm.call(unwrapHandle(vmHandle));\n  }\n});\nAPPEND_OPCODES.add(71\n/* EnterList */\n, (vm, {\n  op1: relativeStart,\n  op2: elseTarget\n}) => {\n  let stack = vm.stack;\n  let listRef = stack.popJs();\n  let keyRef = stack.popJs();\n  let keyValue = valueForRef(keyRef);\n  let key = keyValue === null ? '@identity' : String(keyValue);\n  let iteratorRef = createIteratorRef(listRef, key);\n  let iterator = valueForRef(iteratorRef);\n  vm.updateWith(new AssertFilter(iteratorRef, iterator => iterator.isEmpty()));\n\n  if (iterator.isEmpty() === true) {\n    // TODO: Fix this offset, should be accurate\n    vm.goto(elseTarget + 1);\n  } else {\n    vm.enterList(iteratorRef, relativeStart);\n    vm.stack.pushJs(iterator);\n  }\n});\nAPPEND_OPCODES.add(72\n/* ExitList */\n, vm => {\n  vm.exitList();\n});\nAPPEND_OPCODES.add(73\n/* Iterate */\n, (vm, {\n  op1: breaks\n}) => {\n  let stack = vm.stack;\n  let iterator = stack.peekJs();\n  let item = iterator.next();\n\n  if (item !== null) {\n    vm.registerItem(vm.enterItem(item));\n  } else {\n    vm.goto(breaks);\n  }\n});\n\nclass SimpleComponentManager {\n  getCapabilities(_state) {\n    return MINIMAL_CAPABILITIES;\n  }\n\n  getDebugName() {\n    return '';\n  }\n\n  prepareArgs(_state, _args) {\n    throw new Error(`Unimplemented prepareArgs in SimpleComponentManager`);\n  }\n\n  create(_env, _state, _args, _dynamicScope, _caller, _hasDefaultBlock) {\n    throw new Error(`Unimplemented create in SimpleComponentManager`);\n  }\n\n  getSelf(_state) {\n    return UNDEFINED_REFERENCE;\n  }\n\n  didRenderLayout(_state, _bounds) {\n    throw new Error(`Unimplemented didRenderLayout in SimpleComponentManager`);\n  }\n\n  didCreate(_state) {\n    throw new Error(`Unimplemented didCreate in SimpleComponentManager`);\n  }\n\n  update(_state, _dynamicScope) {\n    throw new Error(`Unimplemented update in SimpleComponentManager`);\n  }\n\n  didUpdateLayout(_state, _bounds) {\n    throw new Error(`Unimplemented didUpdateLayout in SimpleComponentManager`);\n  }\n\n  didUpdate(_state) {\n    throw new Error(`Unimplemented didUpdate in SimpleComponentManager`);\n  }\n\n  getDestroyable(_state) {\n    return null;\n  }\n\n}\n\nconst TEMPLATE_ONLY_COMPONENT = {\n  state: null,\n  manager: new SimpleComponentManager()\n}; // http://www.w3.org/TR/html/syntax.html#html-integration-point\n\nconst SVG_INTEGRATION_POINTS = {\n  foreignObject: 1,\n  desc: 1,\n  title: 1\n}; // http://www.w3.org/TR/html/syntax.html#adjust-svg-attributes\n// TODO: Adjust SVG attributes\n// http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\n// TODO: Adjust SVG elements\n// http://www.w3.org/TR/html/syntax.html#parsing-main-inforeign\n\nconst BLACKLIST_TABLE = Object.create(null);\n\nclass DOMOperations {\n  constructor(document) {\n    this.document = document;\n    this.setupUselessElement();\n  } // split into seperate method so that NodeDOMTreeConstruction\n  // can override it.\n\n\n  setupUselessElement() {\n    this.uselessElement = this.document.createElement('div');\n  }\n\n  createElement(tag, context) {\n    let isElementInSVGNamespace, isHTMLIntegrationPoint;\n\n    if (context) {\n      isElementInSVGNamespace = context.namespaceURI === \"http://www.w3.org/2000/svg\"\n      /* SVG */\n      || tag === 'svg';\n      isHTMLIntegrationPoint = !!SVG_INTEGRATION_POINTS[context.tagName];\n    } else {\n      isElementInSVGNamespace = tag === 'svg';\n      isHTMLIntegrationPoint = false;\n    }\n\n    if (isElementInSVGNamespace && !isHTMLIntegrationPoint) {\n      // FIXME: This does not properly handle <font> with color, face, or\n      // size attributes, which is also disallowed by the spec. We should fix\n      // this.\n      if (BLACKLIST_TABLE[tag]) {\n        throw new Error(`Cannot create a ${tag} inside an SVG context`);\n      }\n\n      return this.document.createElementNS(\"http://www.w3.org/2000/svg\"\n      /* SVG */\n      , tag);\n    } else {\n      return this.document.createElement(tag);\n    }\n  }\n\n  insertBefore(parent, node, reference) {\n    parent.insertBefore(node, reference);\n  }\n\n  insertHTMLBefore(parent, nextSibling, html) {\n    if (html === '') {\n      let comment = this.createComment('');\n      parent.insertBefore(comment, nextSibling);\n      return new ConcreteBounds(parent, comment, comment);\n    }\n\n    let prev = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n    let last;\n\n    if (nextSibling === null) {\n      parent.insertAdjacentHTML(\"beforeend\"\n      /* beforeend */\n      , html);\n      last = parent.lastChild;\n    } else if (nextSibling instanceof HTMLElement) {\n      nextSibling.insertAdjacentHTML('beforebegin', html);\n      last = nextSibling.previousSibling;\n    } else {\n      // Non-element nodes do not support insertAdjacentHTML, so add an\n      // element and call it on that element. Then remove the element.\n      //\n      // This also protects Edge, IE and Firefox w/o the inspector open\n      // from merging adjacent text nodes. See ./compat/text-node-merging-fix.ts\n      let {\n        uselessElement\n      } = this;\n      parent.insertBefore(uselessElement, nextSibling);\n      uselessElement.insertAdjacentHTML(\"beforebegin\"\n      /* beforebegin */\n      , html);\n      last = uselessElement.previousSibling;\n      parent.removeChild(uselessElement);\n    }\n\n    let first = prev ? prev.nextSibling : parent.firstChild;\n    return new ConcreteBounds(parent, first, last);\n  }\n\n  createTextNode(text) {\n    return this.document.createTextNode(text);\n  }\n\n  createComment(data) {\n    return this.document.createComment(data);\n  }\n\n}\n\nfunction moveNodesBefore(source, target, nextSibling) {\n  let first = source.firstChild;\n  let last = first;\n  let current = first;\n\n  while (current) {\n    let next = current.nextSibling;\n    target.insertBefore(current, nextSibling);\n    last = current;\n    current = next;\n  }\n\n  return new ConcreteBounds(target, first, last);\n}\n\nconst SVG_NAMESPACE = \"http://www.w3.org/2000/svg\"\n/* SVG */\n; // Patch:    insertAdjacentHTML on SVG Fix\n// Browsers: Safari, IE, Edge, Firefox ~33-34\n// Reason:   insertAdjacentHTML does not exist on SVG elements in Safari. It is\n//           present but throws an exception on IE and Edge. Old versions of\n//           Firefox create nodes in the incorrect namespace.\n// Fix:      Since IE and Edge silently fail to create SVG nodes using\n//           innerHTML, and because Firefox may create nodes in the incorrect\n//           namespace using innerHTML on SVG elements, an HTML-string wrapping\n//           approach is used. A pre/post SVG tag is added to the string, then\n//           that whole string is added to a div. The created nodes are plucked\n//           out and applied to the target location on DOM.\n\nfunction applySVGInnerHTMLFix(document, DOMClass, svgNamespace) {\n  if (!document) return DOMClass;\n\n  if (!shouldApplyFix(document, svgNamespace)) {\n    return DOMClass;\n  }\n\n  let div = document.createElement('div');\n  return class DOMChangesWithSVGInnerHTMLFix extends DOMClass {\n    insertHTMLBefore(parent, nextSibling, html) {\n      if (html === '') {\n        return super.insertHTMLBefore(parent, nextSibling, html);\n      }\n\n      if (parent.namespaceURI !== svgNamespace) {\n        return super.insertHTMLBefore(parent, nextSibling, html);\n      }\n\n      return fixSVG(parent, div, html, nextSibling);\n    }\n\n  };\n}\n\nfunction fixSVG(parent, div, html, reference) {\n  let source; // This is important, because decendants of the <foreignObject> integration\n  // point are parsed in the HTML namespace\n\n  if (parent.tagName.toUpperCase() === 'FOREIGNOBJECT') {\n    // IE, Edge: also do not correctly support using `innerHTML` on SVG\n    // namespaced elements. So here a wrapper is used.\n    let wrappedHtml = '<svg><foreignObject>' + html + '</foreignObject></svg>';\n    clearElement(div);\n    div.insertAdjacentHTML(\"afterbegin\"\n    /* afterbegin */\n    , wrappedHtml);\n    source = div.firstChild.firstChild;\n  } else {\n    // IE, Edge: also do not correctly support using `innerHTML` on SVG\n    // namespaced elements. So here a wrapper is used.\n    let wrappedHtml = '<svg>' + html + '</svg>';\n    clearElement(div);\n    div.insertAdjacentHTML(\"afterbegin\"\n    /* afterbegin */\n    , wrappedHtml);\n    source = div.firstChild;\n  }\n\n  return moveNodesBefore(source, parent, reference);\n}\n\nfunction shouldApplyFix(document, svgNamespace) {\n  let svg = document.createElementNS(svgNamespace, 'svg');\n\n  try {\n    svg.insertAdjacentHTML(\"beforeend\"\n    /* beforeend */\n    , '<circle></circle>');\n  } catch (e) {// IE, Edge: Will throw, insertAdjacentHTML is unsupported on SVG\n    // Safari: Will throw, insertAdjacentHTML is not present on SVG\n  } finally {\n    // FF: Old versions will create a node in the wrong namespace\n    if (svg.childNodes.length === 1 && svg.firstChild.namespaceURI === SVG_NAMESPACE) {\n      // The test worked as expected, no fix required\n      return false;\n    }\n\n    return true;\n  }\n} // Patch:    Adjacent text node merging fix\n// Browsers: IE, Edge, Firefox w/o inspector open\n// Reason:   These browsers will merge adjacent text nodes. For exmaple given\n//           <div>Hello</div> with div.insertAdjacentHTML(' world') browsers\n//           with proper behavior will populate div.childNodes with two items.\n//           These browsers will populate it with one merged node instead.\n// Fix:      Add these nodes to a wrapper element, then iterate the childNodes\n//           of that wrapper and move the nodes to their target location. Note\n//           that potential SVG bugs will have been handled before this fix.\n//           Note that this fix must only apply to the previous text node, as\n//           the base implementation of `insertHTMLBefore` already handles\n//           following text nodes correctly.\n\n\nfunction applyTextNodeMergingFix(document, DOMClass) {\n  if (!document) return DOMClass;\n\n  if (!shouldApplyFix$1(document)) {\n    return DOMClass;\n  }\n\n  return class DOMChangesWithTextNodeMergingFix extends DOMClass {\n    constructor(document) {\n      super(document);\n      this.uselessComment = document.createComment('');\n    }\n\n    insertHTMLBefore(parent, nextSibling, html) {\n      if (html === '') {\n        return super.insertHTMLBefore(parent, nextSibling, html);\n      }\n\n      let didSetUselessComment = false;\n      let nextPrevious = nextSibling ? nextSibling.previousSibling : parent.lastChild;\n\n      if (nextPrevious && nextPrevious instanceof Text) {\n        didSetUselessComment = true;\n        parent.insertBefore(this.uselessComment, nextSibling);\n      }\n\n      let bounds = super.insertHTMLBefore(parent, nextSibling, html);\n\n      if (didSetUselessComment) {\n        parent.removeChild(this.uselessComment);\n      }\n\n      return bounds;\n    }\n\n  };\n}\n\nfunction shouldApplyFix$1(document) {\n  let mergingTextDiv = document.createElement('div');\n  mergingTextDiv.appendChild(document.createTextNode('first'));\n  mergingTextDiv.insertAdjacentHTML(\"beforeend\"\n  /* beforeend */\n  , 'second');\n\n  if (mergingTextDiv.childNodes.length === 2) {\n    // It worked as expected, no fix required\n    return false;\n  }\n\n  return true;\n}\n\n['b', 'big', 'blockquote', 'body', 'br', 'center', 'code', 'dd', 'div', 'dl', 'dt', 'em', 'embed', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'i', 'img', 'li', 'listing', 'main', 'meta', 'nobr', 'ol', 'p', 'pre', 'ruby', 's', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'table', 'tt', 'u', 'ul', 'var'].forEach(tag => BLACKLIST_TABLE[tag] = 1);\nconst WHITESPACE = /[\\t-\\r \\xA0\\u1680\\u180E\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000\\uFEFF]/;\nlet doc = typeof document === 'undefined' ? null : document;\n\nfunction isWhitespace(string) {\n  return WHITESPACE.test(string);\n}\n\nvar DOM;\n\n(function (DOM) {\n  class TreeConstruction extends DOMOperations {\n    createElementNS(namespace, tag) {\n      return this.document.createElementNS(namespace, tag);\n    }\n\n    setAttribute(element, name, value, namespace = null) {\n      if (namespace) {\n        element.setAttributeNS(namespace, name, value);\n      } else {\n        element.setAttribute(name, value);\n      }\n    }\n\n  }\n\n  DOM.TreeConstruction = TreeConstruction;\n  let appliedTreeContruction = TreeConstruction;\n  appliedTreeContruction = applyTextNodeMergingFix(doc, appliedTreeContruction);\n  appliedTreeContruction = applySVGInnerHTMLFix(doc, appliedTreeContruction, \"http://www.w3.org/2000/svg\"\n  /* SVG */\n  );\n  DOM.DOMTreeConstruction = appliedTreeContruction;\n})(DOM || (DOM = {}));\n\nclass DOMChangesImpl extends DOMOperations {\n  constructor(document) {\n    super(document);\n    this.document = document;\n    this.namespace = null;\n  }\n\n  setAttribute(element, name, value) {\n    element.setAttribute(name, value);\n  }\n\n  removeAttribute(element, name) {\n    element.removeAttribute(name);\n  }\n\n  insertAfter(element, node, reference) {\n    this.insertBefore(element, node, reference.nextSibling);\n  }\n\n}\n\nlet helper = DOMChangesImpl;\nhelper = applyTextNodeMergingFix(doc, helper);\nhelper = applySVGInnerHTMLFix(doc, helper, \"http://www.w3.org/2000/svg\"\n/* SVG */\n);\nvar helper$1 = helper;\nconst DOMTreeConstruction = DOM.DOMTreeConstruction;\nlet GUID = 0;\n\nclass Ref {\n  constructor(value) {\n    this.id = GUID++;\n    this.value = value;\n  }\n\n  get() {\n    return this.value;\n  }\n\n  release() {\n    if (DEBUG && this.value === null) {\n      throw new Error('BUG: double release?');\n    }\n\n    this.value = null;\n  }\n\n  toString() {\n    let label = `Ref ${this.id}`;\n\n    if (this.value === null) {\n      return `${label} (released)`;\n    } else {\n      try {\n        return `${label}: ${this.value}`;\n      } catch (_a) {\n        return label;\n      }\n    }\n  }\n\n}\n\nclass DebugRenderTreeImpl {\n  constructor() {\n    this.stack = new Stack();\n    this.refs = new WeakMap();\n    this.roots = new Set();\n    this.nodes = new WeakMap();\n  }\n\n  begin() {\n    this.reset();\n  }\n\n  create(state, node) {\n    let internalNode = assign({}, node, {\n      bounds: null,\n      refs: new Set()\n    });\n    this.nodes.set(state, internalNode);\n    this.appendChild(internalNode, state);\n    this.enter(state);\n  }\n\n  update(state) {\n    this.enter(state);\n  }\n\n  didRender(state, bounds) {\n    if (DEBUG && this.stack.current !== state) {\n      throw new Error(`BUG: expecting ${this.stack.current}, got ${state}`);\n    }\n\n    this.nodeFor(state).bounds = bounds;\n    this.exit();\n  }\n\n  willDestroy(state) {\n    this.refs.get(state).release();\n  }\n\n  commit() {\n    this.reset();\n  }\n\n  capture() {\n    return this.captureRefs(this.roots);\n  }\n\n  reset() {\n    if (this.stack.size !== 0) {\n      // We probably encountered an error during the rendering loop. This will\n      // likely trigger undefined behavior and memory leaks as the error left\n      // things in an inconsistent state. It is recommended that the user\n      // refresh the page.\n      // TODO: We could warn here? But this happens all the time in our tests?\n      // Clean up the root reference to prevent errors from happening if we\n      // attempt to capture the render tree (Ember Inspector may do this)\n      let root = this.stack.toArray()[0];\n      let ref = this.refs.get(root);\n\n      if (ref !== undefined) {\n        this.roots.delete(ref);\n      }\n\n      while (!this.stack.isEmpty()) {\n        this.stack.pop();\n      }\n    }\n  }\n\n  enter(state) {\n    this.stack.push(state);\n  }\n\n  exit() {\n    if (DEBUG && this.stack.size === 0) {\n      throw new Error('BUG: unbalanced pop');\n    }\n\n    this.stack.pop();\n  }\n\n  nodeFor(state) {\n    return this.nodes.get(state);\n  }\n\n  appendChild(node, state) {\n    if (DEBUG && this.refs.has(state)) {\n      throw new Error('BUG: child already appended');\n    }\n\n    let parent = this.stack.current;\n    let ref = new Ref(state);\n    this.refs.set(state, ref);\n\n    if (parent) {\n      let parentNode = this.nodeFor(parent);\n      parentNode.refs.add(ref);\n      node.parent = parentNode;\n    } else {\n      this.roots.add(ref);\n    }\n  }\n\n  captureRefs(refs) {\n    let captured = [];\n    refs.forEach(ref => {\n      let state = ref.get();\n\n      if (state) {\n        captured.push(this.captureNode(`render-node:${ref.id}`, state));\n      } else {\n        refs.delete(ref);\n      }\n    });\n    return captured;\n  }\n\n  captureNode(id, state) {\n    let node = this.nodeFor(state);\n    let {\n      type,\n      name,\n      args,\n      instance,\n      refs\n    } = node;\n    let template = this.captureTemplate(node);\n    let bounds = this.captureBounds(node);\n    let children = this.captureRefs(refs);\n    return {\n      id,\n      type,\n      name,\n      args: reifyArgs(args),\n      instance,\n      template,\n      bounds,\n      children\n    };\n  }\n\n  captureTemplate({\n    template\n  }) {\n    return template && unwrapTemplate(template).moduleName || null;\n  }\n\n  captureBounds(node) {\n    let bounds = node.bounds;\n    let parentElement = bounds.parentElement();\n    let firstNode = bounds.firstNode();\n    let lastNode = bounds.lastNode();\n    return {\n      parentElement,\n      firstNode,\n      lastNode\n    };\n  }\n\n}\n\nvar _a$1;\n\nconst TRANSACTION = symbol('TRANSACTION');\n\nclass TransactionImpl {\n  constructor() {\n    this.scheduledInstallManagers = [];\n    this.scheduledInstallModifiers = [];\n    this.scheduledUpdateModifierManagers = [];\n    this.scheduledUpdateModifiers = [];\n    this.createdComponents = [];\n    this.createdManagers = [];\n    this.updatedComponents = [];\n    this.updatedManagers = [];\n  }\n\n  didCreate(component, manager) {\n    this.createdComponents.push(component);\n    this.createdManagers.push(manager);\n  }\n\n  didUpdate(component, manager) {\n    this.updatedComponents.push(component);\n    this.updatedManagers.push(manager);\n  }\n\n  scheduleInstallModifier(modifier, manager) {\n    this.scheduledInstallModifiers.push(modifier);\n    this.scheduledInstallManagers.push(manager);\n  }\n\n  scheduleUpdateModifier(modifier, manager) {\n    this.scheduledUpdateModifiers.push(modifier);\n    this.scheduledUpdateModifierManagers.push(manager);\n  }\n\n  commit() {\n    let {\n      createdComponents,\n      createdManagers\n    } = this;\n\n    for (let i = 0; i < createdComponents.length; i++) {\n      let component = createdComponents[i];\n      let manager = createdManagers[i];\n      manager.didCreate(component);\n    }\n\n    let {\n      updatedComponents,\n      updatedManagers\n    } = this;\n\n    for (let i = 0; i < updatedComponents.length; i++) {\n      let component = updatedComponents[i];\n      let manager = updatedManagers[i];\n      manager.didUpdate(component);\n    }\n\n    let {\n      scheduledInstallManagers,\n      scheduledInstallModifiers\n    } = this;\n    let manager, modifier;\n\n    for (let i = 0; i < scheduledInstallManagers.length; i++) {\n      modifier = scheduledInstallModifiers[i];\n      manager = scheduledInstallManagers[i];\n      let modifierTag = manager.getTag(modifier);\n\n      if (modifierTag !== null) {\n        let tag = track( // eslint-disable-next-line no-loop-func\n        () => manager.install(modifier), DEBUG && `- While rendering:\\n  (instance of a \\`${manager.getDebugName(modifier)}\\` modifier)`);\n        updateTag(modifierTag, tag);\n      } else {\n        manager.install(modifier);\n      }\n    }\n\n    let {\n      scheduledUpdateModifierManagers,\n      scheduledUpdateModifiers\n    } = this;\n\n    for (let i = 0; i < scheduledUpdateModifierManagers.length; i++) {\n      modifier = scheduledUpdateModifiers[i];\n      manager = scheduledUpdateModifierManagers[i];\n      let modifierTag = manager.getTag(modifier);\n\n      if (modifierTag !== null) {\n        let tag = track( // eslint-disable-next-line no-loop-func\n        () => manager.update(modifier), DEBUG && `While rendering an instance of a \\`${debugToString(modifier)}\\` modifier`);\n        updateTag(modifierTag, tag);\n      } else {\n        manager.update(modifier);\n      }\n    }\n  }\n\n}\n\nclass EnvironmentImpl {\n  constructor(options, delegate) {\n    this.delegate = delegate;\n    this[_a$1] = null; // Delegate methods and values\n\n    this.isInteractive = this.delegate.isInteractive;\n    this.owner = this.delegate.owner;\n    this.debugRenderTree = this.delegate.enableDebugTooling ? new DebugRenderTreeImpl() : undefined;\n\n    if (options.appendOperations) {\n      this.appendOperations = options.appendOperations;\n      this.updateOperations = options.updateOperations;\n    } else if (options.document) {\n      this.appendOperations = new DOMTreeConstruction(options.document);\n      this.updateOperations = new DOMChangesImpl(options.document);\n    } else if (DEBUG) {\n      throw new Error('you must pass document or appendOperations to a new runtime');\n    }\n  }\n\n  getAppendOperations() {\n    return this.appendOperations;\n  }\n\n  getDOM() {\n    return this.updateOperations;\n  }\n\n  begin() {\n    var _b;\n\n    (_b = this.debugRenderTree) === null || _b === void 0 ? void 0 : _b.begin();\n    this[TRANSACTION] = new TransactionImpl();\n  }\n\n  get transaction() {\n    return this[TRANSACTION];\n  }\n\n  didCreate(component, manager) {\n    this.transaction.didCreate(component, manager);\n  }\n\n  didUpdate(component, manager) {\n    this.transaction.didUpdate(component, manager);\n  }\n\n  scheduleInstallModifier(modifier, manager) {\n    if (this.isInteractive) {\n      this.transaction.scheduleInstallModifier(modifier, manager);\n    }\n  }\n\n  scheduleUpdateModifier(modifier, manager) {\n    if (this.isInteractive) {\n      this.transaction.scheduleUpdateModifier(modifier, manager);\n    }\n  }\n\n  commit() {\n    var _b;\n\n    let transaction = this.transaction;\n    this[TRANSACTION] = null;\n    transaction.commit();\n    (_b = this.debugRenderTree) === null || _b === void 0 ? void 0 : _b.commit();\n    this.delegate.onTransactionCommit();\n  }\n\n}\n\n_a$1 = TRANSACTION;\n\nfunction runtimeContext(options, delegate, artifacts, resolver) {\n  return {\n    env: new EnvironmentImpl(options, delegate),\n    program: new RuntimeProgramImpl(artifacts.constants, artifacts.heap),\n    resolver: resolver\n  };\n}\n\nfunction inTransaction(env, cb) {\n  if (!env[TRANSACTION]) {\n    env.begin();\n\n    try {\n      cb();\n    } finally {\n      env.commit();\n    }\n  } else {\n    cb();\n  }\n}\n\nfunction getDynamicVar(args, vm) {\n  let scope = vm.dynamicScope();\n  let nameRef = args.positional.at(0);\n  return createComputeRef(() => {\n    let name = String(valueForRef(nameRef));\n    return valueForRef(scope.get(name));\n  });\n}\n\nfunction initializeRegistersWithSP(sp) {\n  return [0, -1, sp, 0];\n}\n\nclass LowLevelVM {\n  constructor(stack, heap, program, externs, registers) {\n    this.stack = stack;\n    this.heap = heap;\n    this.program = program;\n    this.externs = externs;\n    this.registers = registers;\n    this.currentOpSize = 0;\n  }\n\n  fetchRegister(register) {\n    return this.registers[register];\n  }\n\n  loadRegister(register, value) {\n    this.registers[register] = value;\n  }\n\n  setPc(pc) {\n    this.registers[$pc] = pc;\n  } // Start a new frame and save $ra and $fp on the stack\n\n\n  pushFrame() {\n    this.stack.pushSmallInt(this.registers[$ra]);\n    this.stack.pushSmallInt(this.registers[$fp]);\n    this.registers[$fp] = this.registers[$sp] - 1;\n  } // Restore $ra, $sp and $fp\n\n\n  popFrame() {\n    this.registers[$sp] = this.registers[$fp] - 1;\n    this.registers[$ra] = this.stack.get(0);\n    this.registers[$fp] = this.stack.get(1);\n  }\n\n  pushSmallFrame() {\n    this.stack.pushSmallInt(this.registers[$ra]);\n  }\n\n  popSmallFrame() {\n    this.registers[$ra] = this.stack.popSmallInt();\n  } // Jump to an address in `program`\n\n\n  goto(offset) {\n    this.setPc(this.target(offset));\n  }\n\n  target(offset) {\n    return this.registers[$pc] + offset - this.currentOpSize;\n  } // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n\n\n  call(handle) {\n    this.registers[$ra] = this.registers[$pc];\n    this.setPc(this.heap.getaddr(handle));\n  } // Put a specific `program` address in $ra\n\n\n  returnTo(offset) {\n    this.registers[$ra] = this.target(offset);\n  } // Return to the `program` address stored in $ra\n\n\n  return() {\n    this.setPc(this.registers[$ra]);\n  }\n\n  nextStatement() {\n    let {\n      registers,\n      program\n    } = this;\n    let pc = registers[$pc];\n\n    if (pc === -1) {\n      return null;\n    } // We have to save off the current operations size so that\n    // when we do a jump we can calculate the correct offset\n    // to where we are going. We can't simply ask for the size\n    // in a jump because we have have already incremented the\n    // program counter to the next instruction prior to executing.\n\n\n    let opcode = program.opcode(pc);\n    let operationSize = this.currentOpSize = opcode.size;\n    this.registers[$pc] += operationSize;\n    return opcode;\n  }\n\n  evaluateOuter(opcode, vm) {\n    {\n      this.evaluateInner(opcode, vm);\n    }\n  }\n\n  evaluateInner(opcode, vm) {\n    if (opcode.isMachine) {\n      this.evaluateMachine(opcode);\n    } else {\n      this.evaluateSyscall(opcode, vm);\n    }\n  }\n\n  evaluateMachine(opcode) {\n    switch (opcode.type) {\n      case 0\n      /* PushFrame */\n      :\n        return this.pushFrame();\n\n      case 1\n      /* PopFrame */\n      :\n        return this.popFrame();\n\n      case 3\n      /* InvokeStatic */\n      :\n        return this.call(opcode.op1);\n\n      case 2\n      /* InvokeVirtual */\n      :\n        return this.call(this.stack.popSmallInt());\n\n      case 4\n      /* Jump */\n      :\n        return this.goto(opcode.op1);\n\n      case 5\n      /* Return */\n      :\n        return this.return();\n\n      case 6\n      /* ReturnTo */\n      :\n        return this.returnTo(opcode.op1);\n    }\n  }\n\n  evaluateSyscall(opcode, vm) {\n    APPEND_OPCODES.evaluate(vm, opcode, opcode.type);\n  }\n\n}\n\nclass UpdatingVM {\n  constructor(env, {\n    alwaysRevalidate = false\n  }) {\n    this.frameStack = new Stack();\n    this.env = env;\n    this.dom = env.getDOM();\n    this.alwaysRevalidate = alwaysRevalidate;\n  }\n\n  execute(opcodes, handler) {\n    if (DEBUG) {\n      let hasErrored = true;\n\n      try {\n        runInTrackingTransaction(() => this._execute(opcodes, handler), '- While rendering:'); // using a boolean here to avoid breaking ergonomics of \"pause on uncaught exceptions\"\n        // which would happen with a `catch` + `throw`\n\n        hasErrored = false;\n      } finally {\n        if (hasErrored) {\n          console.error(`\\n\\nError occurred:\\n\\n${resetTracking()}\\n\\n`);\n        }\n      }\n    } else {\n      this._execute(opcodes, handler);\n    }\n  }\n\n  _execute(opcodes, handler) {\n    let {\n      frameStack\n    } = this;\n    this.try(opcodes, handler);\n\n    while (true) {\n      if (frameStack.isEmpty()) break;\n      let opcode = this.frame.nextStatement();\n\n      if (opcode === undefined) {\n        frameStack.pop();\n        continue;\n      }\n\n      opcode.evaluate(this);\n    }\n  }\n\n  get frame() {\n    return this.frameStack.current;\n  }\n\n  goto(index) {\n    this.frame.goto(index);\n  }\n\n  try(ops, handler) {\n    this.frameStack.push(new UpdatingVMFrame(ops, handler));\n  }\n\n  throw() {\n    this.frame.handleException();\n    this.frameStack.pop();\n  }\n\n}\n\nclass ResumableVMStateImpl {\n  constructor(state, resumeCallback) {\n    this.state = state;\n    this.resumeCallback = resumeCallback;\n  }\n\n  resume(runtime, builder) {\n    return this.resumeCallback(runtime, this.state, builder);\n  }\n\n}\n\nclass BlockOpcode extends UpdatingOpcode {\n  constructor(state, runtime, bounds, children) {\n    super();\n    this.state = state;\n    this.runtime = runtime;\n    this.type = 'block';\n    this.children = children;\n    this.bounds = bounds;\n  }\n\n  parentElement() {\n    return this.bounds.parentElement();\n  }\n\n  firstNode() {\n    return this.bounds.firstNode();\n  }\n\n  lastNode() {\n    return this.bounds.lastNode();\n  }\n\n  evaluate(vm) {\n    vm.try(this.children, null);\n  }\n\n}\n\nclass TryOpcode extends BlockOpcode {\n  constructor() {\n    super(...arguments);\n    this.type = 'try';\n  }\n\n  evaluate(vm) {\n    vm.try(this.children, this);\n  }\n\n  handleException() {\n    let {\n      state,\n      bounds,\n      runtime\n    } = this;\n    destroyChildren(this);\n    let elementStack = NewElementBuilder.resume(runtime.env, bounds);\n    let vm = state.resume(runtime, elementStack);\n    let updating = [];\n    let children = this.children = [];\n    let result = vm.execute(vm => {\n      vm.pushUpdating(updating);\n      vm.updateWith(this);\n      vm.pushUpdating(children);\n    });\n    associateDestroyableChild(this, result.drop);\n  }\n\n}\n\nclass ListItemOpcode extends TryOpcode {\n  constructor(state, runtime, bounds, key, memo, value) {\n    super(state, runtime, bounds, []);\n    this.key = key;\n    this.memo = memo;\n    this.value = value;\n    this.retained = false;\n    this.index = -1;\n  }\n\n  updateReferences(item) {\n    this.retained = true;\n    updateRef(this.value, item.value);\n    updateRef(this.memo, item.memo);\n  }\n\n  shouldRemove() {\n    return !this.retained;\n  }\n\n  reset() {\n    this.retained = false;\n  }\n\n}\n\nclass ListBlockOpcode extends BlockOpcode {\n  constructor(state, runtime, bounds, children, iterableRef) {\n    super(state, runtime, bounds, children);\n    this.iterableRef = iterableRef;\n    this.type = 'list-block';\n    this.opcodeMap = new Map();\n    this.marker = null;\n    this.lastIterator = valueForRef(iterableRef);\n  }\n\n  initializeChild(opcode) {\n    opcode.index = this.children.length - 1;\n    this.opcodeMap.set(opcode.key, opcode);\n  }\n\n  evaluate(vm) {\n    let iterator = valueForRef(this.iterableRef);\n\n    if (this.lastIterator !== iterator) {\n      let {\n        bounds\n      } = this;\n      let {\n        dom\n      } = vm;\n      let marker = this.marker = dom.createComment('');\n      dom.insertAfter(bounds.parentElement(), marker, bounds.lastNode());\n      this.sync(iterator);\n      this.parentElement().removeChild(marker);\n      this.marker = null;\n      this.lastIterator = iterator;\n    } // Run now-updated updating opcodes\n\n\n    super.evaluate(vm);\n  }\n\n  sync(iterator) {\n    let {\n      opcodeMap: itemMap,\n      children\n    } = this;\n    let currentOpcodeIndex = 0;\n    let seenIndex = 0;\n    this.children = this.bounds.boundList = [];\n\n    while (true) {\n      let item = iterator.next();\n      if (item === null) break;\n      let opcode = children[currentOpcodeIndex];\n      let {\n        key\n      } = item; // Items that have already been found and moved will already be retained,\n      // we can continue until we find the next unretained item\n\n      while (opcode !== undefined && opcode.retained === true) {\n        opcode = children[++currentOpcodeIndex];\n      }\n\n      if (opcode !== undefined && opcode.key === key) {\n        this.retainItem(opcode, item);\n        currentOpcodeIndex++;\n      } else if (itemMap.has(key)) {\n        let itemOpcode = itemMap.get(key); // The item opcode was seen already, so we should move it.\n\n        if (itemOpcode.index < seenIndex) {\n          this.moveItem(itemOpcode, item, opcode);\n        } else {\n          // Update the seen index, we are going to be moving this item around\n          // so any other items that come before it will likely need to move as\n          // well.\n          seenIndex = itemOpcode.index;\n          let seenUnretained = false; // iterate through all of the opcodes between the current position and\n          // the position of the item's opcode, and determine if they are all\n          // retained.\n\n          for (let i = currentOpcodeIndex + 1; i < seenIndex; i++) {\n            if (children[i].retained === false) {\n              seenUnretained = true;\n              break;\n            }\n          } // If we have seen only retained opcodes between this and the matching\n          // opcode, it means that all the opcodes in between have been moved\n          // already, and we can safely retain this item's opcode.\n\n\n          if (seenUnretained === false) {\n            this.retainItem(itemOpcode, item);\n            currentOpcodeIndex = seenIndex + 1;\n          } else {\n            this.moveItem(itemOpcode, item, opcode);\n            currentOpcodeIndex++;\n          }\n        }\n      } else {\n        this.insertItem(item, opcode);\n      }\n    }\n\n    for (let i = 0; i < children.length; i++) {\n      let opcode = children[i];\n\n      if (opcode.retained === false) {\n        this.deleteItem(opcode);\n      } else {\n        opcode.reset();\n      }\n    }\n  }\n\n  retainItem(opcode, item) {\n    let {\n      children\n    } = this;\n    updateRef(opcode.memo, item.memo);\n    updateRef(opcode.value, item.value);\n    opcode.retained = true;\n    opcode.index = children.length;\n    children.push(opcode);\n  }\n\n  insertItem(item, before) {\n    let {\n      opcodeMap,\n      bounds,\n      state,\n      runtime,\n      children\n    } = this;\n    let {\n      key\n    } = item;\n    let nextSibling = before === undefined ? this.marker : before.firstNode();\n    let elementStack = NewElementBuilder.forInitialRender(runtime.env, {\n      element: bounds.parentElement(),\n      nextSibling\n    });\n    let vm = state.resume(runtime, elementStack);\n    vm.execute(vm => {\n      vm.pushUpdating();\n      let opcode = vm.enterItem(item);\n      opcode.index = children.length;\n      children.push(opcode);\n      opcodeMap.set(key, opcode);\n      associateDestroyableChild(this, opcode);\n    });\n  }\n\n  moveItem(opcode, item, before) {\n    let {\n      children\n    } = this;\n    updateRef(opcode.memo, item.memo);\n    updateRef(opcode.value, item.value);\n    opcode.retained = true;\n    let currentSibling, nextSibling;\n\n    if (before === undefined) {\n      move(opcode, this.marker);\n    } else {\n      currentSibling = opcode.lastNode().nextSibling;\n      nextSibling = before.firstNode(); // Items are moved throughout the algorithm, so there are cases where the\n      // the items already happen to be siblings (e.g. an item in between was\n      // moved before this move happened). Check to see if they are siblings\n      // first before doing the move.\n\n      if (currentSibling !== nextSibling) {\n        move(opcode, nextSibling);\n      }\n    }\n\n    opcode.index = children.length;\n    children.push(opcode);\n  }\n\n  deleteItem(opcode) {\n    destroy(opcode);\n    clear(opcode);\n    this.opcodeMap.delete(opcode.key);\n  }\n\n}\n\nclass UpdatingVMFrame {\n  constructor(ops, exceptionHandler) {\n    this.ops = ops;\n    this.exceptionHandler = exceptionHandler;\n    this.current = 0;\n  }\n\n  goto(index) {\n    this.current = index;\n  }\n\n  nextStatement() {\n    return this.ops[this.current++];\n  }\n\n  handleException() {\n    if (this.exceptionHandler) {\n      this.exceptionHandler.handleException();\n    }\n  }\n\n}\n\nclass RenderResultImpl {\n  constructor(env, updating, bounds, drop) {\n    this.env = env;\n    this.updating = updating;\n    this.bounds = bounds;\n    this.drop = drop;\n    associateDestroyableChild(this, drop);\n    registerDestructor(this, () => clear(this.bounds));\n  }\n\n  rerender({\n    alwaysRevalidate = false\n  } = {\n    alwaysRevalidate: false\n  }) {\n    let {\n      env,\n      updating\n    } = this;\n    let vm = new UpdatingVM(env, {\n      alwaysRevalidate\n    });\n    vm.execute(updating, this);\n  }\n\n  parentElement() {\n    return this.bounds.parentElement();\n  }\n\n  firstNode() {\n    return this.bounds.firstNode();\n  }\n\n  lastNode() {\n    return this.bounds.lastNode();\n  }\n\n  handleException() {\n    throw 'this should never happen';\n  }\n\n}\n\nclass InnerStack {\n  constructor(inner = new Stack$1(), js) {\n    this.inner = inner;\n    this.js = constants();\n\n    if (js !== undefined) {\n      this.js = this.js.concat(js);\n    }\n  }\n\n  slice(start, end) {\n    let out = [];\n\n    if (start === -1) {\n      return out;\n    }\n\n    for (let i = start; i < end; i++) {\n      out.push(this.get(i));\n    }\n\n    return out;\n  }\n\n  copy(from, to) {\n    this.inner.copy(from, to);\n  }\n\n  writeJs(pos, value) {\n    let idx = this.js.length;\n    this.js.push(value);\n    this.inner.writeRaw(pos, encodeHandle(idx));\n  }\n\n  writeSmallInt(pos, value) {\n    this.inner.writeRaw(pos, encodeImmediate(value));\n  }\n\n  writeTrue(pos) {\n    this.inner.writeRaw(pos, 1\n    /* ENCODED_TRUE_HANDLE */\n    );\n  }\n\n  writeFalse(pos) {\n    this.inner.writeRaw(pos, 0\n    /* ENCODED_FALSE_HANDLE */\n    );\n  }\n\n  writeNull(pos) {\n    this.inner.writeRaw(pos, 2\n    /* ENCODED_NULL_HANDLE */\n    );\n  }\n\n  writeUndefined(pos) {\n    this.inner.writeRaw(pos, 3\n    /* ENCODED_UNDEFINED_HANDLE */\n    );\n  }\n\n  writeRaw(pos, value) {\n    this.inner.writeRaw(pos, value);\n  }\n\n  getJs(pos) {\n    let value = this.inner.getRaw(pos);\n    return this.js[decodeHandle(value)];\n  }\n\n  getSmallInt(pos) {\n    let value = this.inner.getRaw(pos);\n    return decodeImmediate(value);\n  }\n\n  get(pos) {\n    let value = this.inner.getRaw(pos) | 0;\n\n    if (isHandle(value)) {\n      return this.js[decodeHandle(value)];\n    } else {\n      return decodeImmediate(value);\n    }\n  }\n\n  reset() {\n    this.inner.reset();\n    this.js.length = 0;\n  }\n\n  get length() {\n    return this.inner.len();\n  }\n\n}\n\nclass EvaluationStackImpl {\n  // fp -> sp\n  constructor(stack, registers) {\n    this.stack = stack;\n    this[REGISTERS] = registers;\n  }\n\n  static restore(snapshot) {\n    let stack = new InnerStack();\n\n    for (let i = 0; i < snapshot.length; i++) {\n      let value = snapshot[i];\n\n      if (typeof value === 'number' && isSmallInt(value)) {\n        stack.writeRaw(i, encodeImmediate(value));\n      } else if (value === true) {\n        stack.writeTrue(i);\n      } else if (value === false) {\n        stack.writeFalse(i);\n      } else if (value === null) {\n        stack.writeNull(i);\n      } else if (value === undefined) {\n        stack.writeUndefined(i);\n      } else {\n        stack.writeJs(i, value);\n      }\n    }\n\n    return new this(stack, initializeRegistersWithSP(snapshot.length - 1));\n  }\n\n  pushJs(value) {\n    this.stack.writeJs(++this[REGISTERS][$sp], value);\n  }\n\n  pushSmallInt(value) {\n    this.stack.writeSmallInt(++this[REGISTERS][$sp], value);\n  }\n\n  pushTrue() {\n    this.stack.writeTrue(++this[REGISTERS][$sp]);\n  }\n\n  pushFalse() {\n    this.stack.writeFalse(++this[REGISTERS][$sp]);\n  }\n\n  pushNull() {\n    this.stack.writeNull(++this[REGISTERS][$sp]);\n  }\n\n  pushUndefined() {\n    this.stack.writeUndefined(++this[REGISTERS][$sp]);\n  }\n\n  pushRaw(value) {\n    this.stack.writeRaw(++this[REGISTERS][$sp], value);\n  }\n\n  dup(position = this[REGISTERS][$sp]) {\n    this.stack.copy(position, ++this[REGISTERS][$sp]);\n  }\n\n  copy(from, to) {\n    this.stack.copy(from, to);\n  }\n\n  popJs(n = 1) {\n    let top = this.stack.getJs(this[REGISTERS][$sp]);\n    this[REGISTERS][$sp] -= n;\n    return top;\n  }\n\n  popSmallInt(n = 1) {\n    let top = this.stack.getSmallInt(this[REGISTERS][$sp]);\n    this[REGISTERS][$sp] -= n;\n    return top;\n  }\n\n  pop(n = 1) {\n    let top = this.stack.get(this[REGISTERS][$sp]);\n    this[REGISTERS][$sp] -= n;\n    return top;\n  }\n\n  peekJs(offset = 0) {\n    return this.stack.getJs(this[REGISTERS][$sp] - offset);\n  }\n\n  peekSmallInt(offset = 0) {\n    return this.stack.getSmallInt(this[REGISTERS][$sp] - offset);\n  }\n\n  peek(offset = 0) {\n    return this.stack.get(this[REGISTERS][$sp] - offset);\n  }\n\n  get(offset, base = this[REGISTERS][$fp]) {\n    return this.stack.get(base + offset);\n  }\n\n  set(value, offset, base = this[REGISTERS][$fp]) {\n    this.stack.writeJs(base + offset, value);\n  }\n\n  slice(start, end) {\n    return this.stack.slice(start, end);\n  }\n\n  capture(items) {\n    let end = this[REGISTERS][$sp] + 1;\n    let start = end - items;\n    return this.stack.slice(start, end);\n  }\n\n  reset() {\n    this.stack.reset();\n  }\n\n  toArray() {\n    console.log(this[REGISTERS]);\n    return this.stack.slice(this[REGISTERS][$fp], this[REGISTERS][$sp] + 1);\n  }\n\n}\n\nvar _a$2, _b;\n\nclass Stacks {\n  constructor() {\n    this.scope = new Stack();\n    this.dynamicScope = new Stack();\n    this.updating = new Stack();\n    this.cache = new Stack();\n    this.list = new Stack();\n  }\n\n}\n\nclass VM {\n  /**\n   * End of migrated.\n   */\n  constructor(runtime, {\n    pc,\n    scope,\n    dynamicScope,\n    stack\n  }, elementStack, context) {\n    this.runtime = runtime;\n    this.elementStack = elementStack;\n    this.context = context;\n    this[_a$2] = new Stacks();\n    this[_b] = new Stack();\n    this.s0 = null;\n    this.s1 = null;\n    this.t0 = null;\n    this.t1 = null;\n    this.v0 = null;\n    this.resume = initVM(this.context);\n\n    if (DEBUG) {\n      assertGlobalContextWasSet();\n    }\n\n    let evalStack = EvaluationStackImpl.restore(stack);\n    evalStack[REGISTERS][$pc] = pc;\n    evalStack[REGISTERS][$sp] = stack.length - 1;\n    evalStack[REGISTERS][$fp] = -1;\n    this[HEAP] = this.program.heap;\n    this[CONSTANTS] = this.program.constants;\n    this.elementStack = elementStack;\n    this[STACKS].scope.push(scope);\n    this[STACKS].dynamicScope.push(dynamicScope);\n    this[ARGS] = new VMArgumentsImpl();\n    this[INNER_VM] = new LowLevelVM(evalStack, this[HEAP], runtime.program, {\n      debugBefore: opcode => {\n        return APPEND_OPCODES.debugBefore(this, opcode);\n      },\n      debugAfter: state => {\n        APPEND_OPCODES.debugAfter(this, state);\n      }\n    }, evalStack[REGISTERS]);\n    this.destructor = {};\n    this[DESTROYABLE_STACK].push(this.destructor);\n  }\n\n  get stack() {\n    return this[INNER_VM].stack;\n  }\n  /* Registers */\n\n\n  get pc() {\n    return this[INNER_VM].fetchRegister($pc);\n  } // Fetch a value from a register onto the stack\n\n\n  fetch(register) {\n    let value = this.fetchValue(register);\n    this.stack.pushJs(value);\n  } // Load a value from the stack into a register\n\n\n  load(register) {\n    let value = this.stack.pop();\n    this.loadValue(register, value);\n  }\n\n  fetchValue(register) {\n    if (isLowLevelRegister(register)) {\n      return this[INNER_VM].fetchRegister(register);\n    }\n\n    switch (register) {\n      case $s0:\n        return this.s0;\n\n      case $s1:\n        return this.s1;\n\n      case $t0:\n        return this.t0;\n\n      case $t1:\n        return this.t1;\n\n      case $v0:\n        return this.v0;\n    }\n  } // Load a value into a register\n\n\n  loadValue(register, value) {\n    if (isLowLevelRegister(register)) {\n      this[INNER_VM].loadRegister(register, value);\n    }\n\n    switch (register) {\n      case $s0:\n        this.s0 = value;\n        break;\n\n      case $s1:\n        this.s1 = value;\n        break;\n\n      case $t0:\n        this.t0 = value;\n        break;\n\n      case $t1:\n        this.t1 = value;\n        break;\n\n      case $v0:\n        this.v0 = value;\n        break;\n    }\n  }\n  /**\n   * Migrated to Inner\n   */\n  // Start a new frame and save $ra and $fp on the stack\n\n\n  pushFrame() {\n    this[INNER_VM].pushFrame();\n  } // Restore $ra, $sp and $fp\n\n\n  popFrame() {\n    this[INNER_VM].popFrame();\n  } // Jump to an address in `program`\n\n\n  goto(offset) {\n    this[INNER_VM].goto(offset);\n  } // Save $pc into $ra, then jump to a new address in `program` (jal in MIPS)\n\n\n  call(handle) {\n    this[INNER_VM].call(handle);\n  } // Put a specific `program` address in $ra\n\n\n  returnTo(offset) {\n    this[INNER_VM].returnTo(offset);\n  } // Return to the `program` address stored in $ra\n\n\n  return() {\n    this[INNER_VM].return();\n  }\n\n  static initial(runtime, context, {\n    handle,\n    self,\n    dynamicScope,\n    treeBuilder\n  }) {\n    let scopeSize = runtime.program.heap.scopesizeof(handle);\n    let scope = PartialScopeImpl.root(self, scopeSize);\n    let state = vmState(runtime.program.heap.getaddr(handle), scope, dynamicScope);\n    let vm = initVM(context)(runtime, state, treeBuilder);\n    vm.pushUpdating();\n    return vm;\n  }\n\n  static empty(runtime, {\n    handle,\n    treeBuilder,\n    dynamicScope\n  }, context) {\n    let vm = initVM(context)(runtime, vmState(runtime.program.heap.getaddr(handle), PartialScopeImpl.root(UNDEFINED_REFERENCE, 0), dynamicScope), treeBuilder);\n    vm.pushUpdating();\n    return vm;\n  }\n\n  compile(block) {\n    let handle = unwrapHandle(block.compile(this.context));\n    return handle;\n  }\n\n  get program() {\n    return this.runtime.program;\n  }\n\n  get env() {\n    return this.runtime.env;\n  }\n\n  captureState(args, pc = this[INNER_VM].fetchRegister($pc)) {\n    return {\n      pc,\n      dynamicScope: this.dynamicScope(),\n      scope: this.scope(),\n      stack: this.stack.capture(args)\n    };\n  }\n\n  capture(args, pc = this[INNER_VM].fetchRegister($pc)) {\n    return new ResumableVMStateImpl(this.captureState(args, pc), this.resume);\n  }\n\n  beginCacheGroup(name) {\n    let opcodes = this.updating();\n    let guard = new JumpIfNotModifiedOpcode();\n    opcodes.push(guard);\n    opcodes.push(new BeginTrackFrameOpcode(name));\n    this[STACKS].cache.push(guard);\n    beginTrackFrame(name);\n  }\n\n  commitCacheGroup() {\n    let opcodes = this.updating();\n    let guard = this[STACKS].cache.pop();\n    let tag = endTrackFrame();\n    opcodes.push(new EndTrackFrameOpcode(guard));\n    guard.finalize(tag, opcodes.length);\n  }\n\n  enter(args) {\n    let updating = [];\n    let state = this.capture(args);\n    let block = this.elements().pushUpdatableBlock();\n    let tryOpcode = new TryOpcode(state, this.runtime, block, updating);\n    this.didEnter(tryOpcode);\n  }\n\n  enterItem({\n    key,\n    value,\n    memo\n  }) {\n    let {\n      stack\n    } = this;\n    let valueRef = createIteratorItemRef(value);\n    let memoRef = createIteratorItemRef(memo);\n    stack.pushJs(valueRef);\n    stack.pushJs(memoRef);\n    let state = this.capture(2);\n    let block = this.elements().pushUpdatableBlock();\n    let opcode = new ListItemOpcode(state, this.runtime, block, key, memoRef, valueRef);\n    this.didEnter(opcode);\n    return opcode;\n  }\n\n  registerItem(opcode) {\n    this.listBlock().initializeChild(opcode);\n  }\n\n  enterList(iterableRef, offset) {\n    let updating = [];\n    let addr = this[INNER_VM].target(offset);\n    let state = this.capture(0, addr);\n    let list = this.elements().pushBlockList(updating);\n    let opcode = new ListBlockOpcode(state, this.runtime, list, updating, iterableRef);\n    this[STACKS].list.push(opcode);\n    this.didEnter(opcode);\n  }\n\n  didEnter(opcode) {\n    this.associateDestroyable(opcode);\n    this[DESTROYABLE_STACK].push(opcode);\n    this.updateWith(opcode);\n    this.pushUpdating(opcode.children);\n  }\n\n  exit() {\n    this[DESTROYABLE_STACK].pop();\n    this.elements().popBlock();\n    this.popUpdating();\n  }\n\n  exitList() {\n    this.exit();\n    this[STACKS].list.pop();\n  }\n\n  pushUpdating(list = []) {\n    this[STACKS].updating.push(list);\n  }\n\n  popUpdating() {\n    return this[STACKS].updating.pop();\n  }\n\n  updateWith(opcode) {\n    this.updating().push(opcode);\n  }\n\n  listBlock() {\n    return this[STACKS].list.current;\n  }\n\n  associateDestroyable(child) {\n    let parent = this[DESTROYABLE_STACK].current;\n    associateDestroyableChild(parent, child);\n  }\n\n  tryUpdating() {\n    return this[STACKS].updating.current;\n  }\n\n  updating() {\n    return this[STACKS].updating.current;\n  }\n\n  elements() {\n    return this.elementStack;\n  }\n\n  scope() {\n    return this[STACKS].scope.current;\n  }\n\n  dynamicScope() {\n    return this[STACKS].dynamicScope.current;\n  }\n\n  pushChildScope() {\n    this[STACKS].scope.push(this.scope().child());\n  }\n\n  pushDynamicScope() {\n    let child = this.dynamicScope().child();\n    this[STACKS].dynamicScope.push(child);\n    return child;\n  }\n\n  pushRootScope(size) {\n    let scope = PartialScopeImpl.sized(size);\n    this[STACKS].scope.push(scope);\n    return scope;\n  }\n\n  pushScope(scope) {\n    this[STACKS].scope.push(scope);\n  }\n\n  popScope() {\n    this[STACKS].scope.pop();\n  }\n\n  popDynamicScope() {\n    this[STACKS].dynamicScope.pop();\n  } /// SCOPE HELPERS\n\n\n  getSelf() {\n    return this.scope().getSelf();\n  }\n\n  referenceForSymbol(symbol$$1) {\n    return this.scope().getSymbol(symbol$$1);\n  } /// EXECUTION\n\n\n  execute(initialize) {\n    if (DEBUG) {\n      let hasErrored = true;\n\n      try {\n        let value = this._execute(initialize); // using a boolean here to avoid breaking ergonomics of \"pause on uncaught exceptions\"\n        // which would happen with a `catch` + `throw`\n\n\n        hasErrored = false;\n        return value;\n      } finally {\n        if (hasErrored) {\n          // If any existing blocks are open, due to an error or something like\n          // that, we need to close them all and clean things up properly.\n          let elements = this.elements();\n\n          while (elements.hasBlocks) {\n            elements.popBlock();\n          }\n\n          console.error(`\\n\\nError occurred:\\n\\n${resetTracking()}\\n\\n`);\n        }\n      }\n    } else {\n      return this._execute(initialize);\n    }\n  }\n\n  _execute(initialize) {\n    if (initialize) initialize(this);\n    let result;\n\n    while (true) {\n      result = this.next();\n      if (result.done) break;\n    }\n\n    return result.value;\n  }\n\n  next() {\n    let {\n      env,\n      elementStack\n    } = this;\n    let opcode = this[INNER_VM].nextStatement();\n    let result;\n\n    if (opcode !== null) {\n      this[INNER_VM].evaluateOuter(opcode, this);\n      result = {\n        done: false,\n        value: null\n      };\n    } else {\n      // Unload the stack\n      this.stack.reset();\n      result = {\n        done: true,\n        value: new RenderResultImpl(env, this.popUpdating(), elementStack.popBlock(), this.destructor)\n      };\n    }\n\n    return result;\n  }\n\n  bindDynamicScope(names) {\n    let scope = this.dynamicScope();\n\n    for (let i = names.length - 1; i >= 0; i--) {\n      let name = names[i];\n      scope.set(name, this.stack.popJs());\n    }\n  }\n\n}\n\n_a$2 = STACKS, _b = DESTROYABLE_STACK;\n\nfunction vmState(pc, scope = PartialScopeImpl.root(UNDEFINED_REFERENCE, 0), dynamicScope) {\n  return {\n    pc,\n    scope,\n    dynamicScope,\n    stack: []\n  };\n}\n\nfunction initVM(context) {\n  return (runtime, state, builder) => new VM(runtime, state, builder, context);\n}\n\nclass TemplateIteratorImpl {\n  constructor(vm) {\n    this.vm = vm;\n  }\n\n  next() {\n    return this.vm.next();\n  }\n\n  sync() {\n    if (DEBUG) {\n      return runInTrackingTransaction(() => this.vm.execute(), '- While rendering:');\n    } else {\n      return this.vm.execute();\n    }\n  }\n\n}\n\nfunction renderSync(env, iterator) {\n  let result;\n  inTransaction(env, () => result = iterator.sync());\n  return result;\n}\n\nfunction renderMain(runtime, context, self, treeBuilder, handle, dynamicScope = new DynamicScopeImpl()) {\n  let vm = VM.initial(runtime, context, {\n    self,\n    dynamicScope,\n    treeBuilder,\n    handle\n  });\n  return new TemplateIteratorImpl(vm);\n}\n\nfunction renderInvocation(vm, invocation, definition, args) {\n  // Get a list of tuples of argument names and references, like\n  // [['title', reference], ['name', reference]]\n  const argList = Object.keys(args).map(key => [key, args[key]]);\n  const blockNames = ['main', 'else', 'attrs']; // Prefix argument names with `@` symbol\n\n  const argNames = argList.map(([name]) => `@${name}`);\n  vm.pushFrame(); // Push blocks on to the stack, three stack values per block\n\n  for (let i = 0; i < 3 * blockNames.length; i++) {\n    vm.stack.pushNull();\n  }\n\n  vm.stack.pushNull(); // For each argument, push its backing reference on to the stack\n\n  argList.forEach(([, reference]) => {\n    vm.stack.pushJs(reference);\n  }); // Configure VM based on blocks and args just pushed on to the stack.\n\n  vm[ARGS].setup(vm.stack, argNames, blockNames, 0, true); // Needed for the Op.Main opcode: arguments, component invocation object, and\n  // component definition.\n\n  vm.stack.pushJs(vm[ARGS]);\n  vm.stack.pushJs(invocation);\n  vm.stack.pushJs(definition);\n  return new TemplateIteratorImpl(vm);\n}\n\nfunction renderComponent(runtime, treeBuilder, context, definition, layout, args = {}, dynamicScope = new DynamicScopeImpl()) {\n  const handle = unwrapHandle(layout.compile(context));\n  const invocation = {\n    handle,\n    symbolTable: layout.symbolTable\n  };\n  let vm = VM.empty(runtime, {\n    treeBuilder,\n    handle: context.program.stdlib.main,\n    dynamicScope\n  }, context);\n  return renderInvocation(vm, invocation, definition, args);\n}\n\nconst SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';\n\nfunction isSerializationFirstNode(node) {\n  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n}\n\nclass RehydratingCursor extends CursorImpl {\n  constructor(element, nextSibling, startingBlockDepth) {\n    super(element, nextSibling);\n    this.startingBlockDepth = startingBlockDepth;\n    this.candidate = null;\n    this.injectedOmittedNode = false;\n    this.openBlockDepth = startingBlockDepth - 1;\n  }\n\n}\n\nclass RehydrateBuilder extends NewElementBuilder {\n  constructor(env, parentNode, nextSibling) {\n    super(env, parentNode, nextSibling);\n    this.unmatchedAttributes = null;\n    this.blockDepth = 0;\n    if (nextSibling) throw new Error('Rehydration with nextSibling not supported');\n    let node = this.currentCursor.element.firstChild;\n\n    while (node !== null) {\n      if (isOpenBlock(node)) {\n        break;\n      }\n\n      node = node.nextSibling;\n    }\n\n    this.candidate = node;\n    const startingBlockOffset = getBlockDepth(node);\n\n    if (startingBlockOffset !== 0) {\n      // We are rehydrating from a partial tree and not the root component\n      // We need to add an extra block before the first block to rehydrate correctly\n      // The extra block is needed since the renderComponent API creates a synthetic component invocation which generates the extra block\n      const newBlockDepth = startingBlockOffset - 1;\n      const newCandidate = this.dom.createComment(`%+b:${newBlockDepth}%`);\n      node.parentNode.insertBefore(newCandidate, this.candidate);\n      let closingNode = node.nextSibling;\n\n      while (closingNode !== null) {\n        if (isCloseBlock(closingNode) && getBlockDepth(closingNode) === startingBlockOffset) {\n          break;\n        }\n\n        closingNode = closingNode.nextSibling;\n      }\n\n      const newClosingBlock = this.dom.createComment(`%-b:${newBlockDepth}%`);\n      node.parentNode.insertBefore(newClosingBlock, closingNode.nextSibling);\n      this.candidate = newCandidate;\n      this.startingBlockOffset = newBlockDepth;\n    } else {\n      this.startingBlockOffset = 0;\n    }\n  }\n\n  get currentCursor() {\n    return this[CURSOR_STACK].current;\n  }\n\n  get candidate() {\n    if (this.currentCursor) {\n      return this.currentCursor.candidate;\n    }\n\n    return null;\n  }\n\n  set candidate(node) {\n    let currentCursor = this.currentCursor;\n    currentCursor.candidate = node;\n  }\n\n  disableRehydration(nextSibling) {\n    let currentCursor = this.currentCursor; // rehydration will be disabled until we either:\n    // * hit popElement (and return to using the parent elements cursor)\n    // * hit closeBlock and the next sibling is a close block comment\n    //   matching the expected openBlockDepth\n\n    currentCursor.candidate = null;\n    currentCursor.nextSibling = nextSibling;\n  }\n\n  enableRehydration(candidate) {\n    let currentCursor = this.currentCursor;\n    currentCursor.candidate = candidate;\n    currentCursor.nextSibling = null;\n  }\n\n  pushElement(element, nextSibling = null) {\n    let cursor = new RehydratingCursor(element, nextSibling, this.blockDepth || 0);\n    /**\n     * <div>   <---------------  currentCursor.element\n     *   <!--%+b:1%--> <-------  would have been removed during openBlock\n     *   <div> <---------------  currentCursor.candidate -> cursor.element\n     *     <!--%+b:2%--> <-----  currentCursor.candidate.firstChild -> cursor.candidate\n     *     Foo\n     *     <!--%-b:2%-->\n     *   </div>\n     *   <!--%-b:1%-->  <------  becomes currentCursor.candidate\n     */\n\n    if (this.candidate !== null) {\n      cursor.candidate = element.firstChild;\n      this.candidate = element.nextSibling;\n    }\n\n    this[CURSOR_STACK].push(cursor);\n  } // clears until the end of the current container\n  // either the current open block or higher\n\n\n  clearMismatch(candidate) {\n    let current = candidate;\n    let currentCursor = this.currentCursor;\n\n    if (currentCursor !== null) {\n      let openBlockDepth = currentCursor.openBlockDepth;\n\n      if (openBlockDepth >= currentCursor.startingBlockDepth) {\n        while (current) {\n          if (isCloseBlock(current)) {\n            let closeBlockDepth = getBlockDepthWithOffset(current, this.startingBlockOffset);\n\n            if (openBlockDepth >= closeBlockDepth) {\n              break;\n            }\n          }\n\n          current = this.remove(current);\n        }\n      } else {\n        while (current !== null) {\n          current = this.remove(current);\n        }\n      } // current cursor parentNode should be openCandidate if element\n      // or openCandidate.parentNode if comment\n\n\n      this.disableRehydration(current);\n    }\n  }\n\n  __openBlock() {\n    let {\n      currentCursor\n    } = this;\n    if (currentCursor === null) return;\n    let blockDepth = this.blockDepth;\n    this.blockDepth++;\n    let {\n      candidate\n    } = currentCursor;\n    if (candidate === null) return;\n    let {\n      tagName\n    } = currentCursor.element;\n\n    if (isOpenBlock(candidate) && getBlockDepthWithOffset(candidate, this.startingBlockOffset) === blockDepth) {\n      this.candidate = this.remove(candidate);\n      currentCursor.openBlockDepth = blockDepth;\n    } else if (tagName !== 'TITLE' && tagName !== 'SCRIPT' && tagName !== 'STYLE') {\n      this.clearMismatch(candidate);\n    }\n  }\n\n  __closeBlock() {\n    let {\n      currentCursor\n    } = this;\n    if (currentCursor === null) return; // openBlock is the last rehydrated open block\n\n    let openBlockDepth = currentCursor.openBlockDepth; // this currently is the expected next open block depth\n\n    this.blockDepth--;\n    let {\n      candidate\n    } = currentCursor;\n    let isRehydrating = false;\n\n    if (candidate !== null) {\n      isRehydrating = true; //assert(\n      //  openBlockDepth === this.blockDepth,\n      //  'when rehydrating, openBlockDepth should match this.blockDepth here'\n      //);\n\n      if (isCloseBlock(candidate) && getBlockDepthWithOffset(candidate, this.startingBlockOffset) === openBlockDepth) {\n        let nextSibling = this.remove(candidate);\n        this.candidate = nextSibling;\n        currentCursor.openBlockDepth--;\n      } else {\n        // close the block and clear mismatch in parent container\n        // we will be either at the end of the element\n        // or at the end of our containing block\n        this.clearMismatch(candidate);\n        isRehydrating = false;\n      }\n    }\n\n    if (isRehydrating === false) {\n      // check if nextSibling matches our expected close block\n      // if so, we remove the close block comment and\n      // restore rehydration after clearMismatch disabled\n      let nextSibling = currentCursor.nextSibling;\n\n      if (nextSibling !== null && isCloseBlock(nextSibling) && getBlockDepthWithOffset(nextSibling, this.startingBlockOffset) === this.blockDepth) {\n        // restore rehydration state\n        let candidate = this.remove(nextSibling);\n        this.enableRehydration(candidate);\n        currentCursor.openBlockDepth--;\n      }\n    }\n  }\n\n  __appendNode(node) {\n    let {\n      candidate\n    } = this; // This code path is only used when inserting precisely one node. It needs more\n    // comparison logic, but we can probably lean on the cases where this code path\n    // is actually used.\n\n    if (candidate) {\n      return candidate;\n    } else {\n      return super.__appendNode(node);\n    }\n  }\n\n  __appendHTML(html) {\n    let candidateBounds = this.markerBounds();\n\n    if (candidateBounds) {\n      let first = candidateBounds.firstNode();\n      let last = candidateBounds.lastNode();\n      let newBounds = new ConcreteBounds(this.element, first.nextSibling, last.previousSibling);\n      let possibleEmptyMarker = this.remove(first);\n      this.remove(last);\n\n      if (possibleEmptyMarker !== null && isEmpty$1(possibleEmptyMarker)) {\n        this.candidate = this.remove(possibleEmptyMarker);\n\n        if (this.candidate !== null) {\n          this.clearMismatch(this.candidate);\n        }\n      }\n\n      return newBounds;\n    } else {\n      return super.__appendHTML(html);\n    }\n  }\n\n  remove(node) {\n    let element = node.parentNode;\n    let next = node.nextSibling;\n    element.removeChild(node);\n    return next;\n  }\n\n  markerBounds() {\n    let _candidate = this.candidate;\n\n    if (_candidate && isMarker(_candidate)) {\n      let first = _candidate;\n      let last = first.nextSibling;\n\n      while (last && !isMarker(last)) {\n        last = last.nextSibling;\n      }\n\n      return new ConcreteBounds(this.element, first, last);\n    } else {\n      return null;\n    }\n  }\n\n  __appendText(string) {\n    let {\n      candidate\n    } = this;\n\n    if (candidate) {\n      if (isTextNode(candidate)) {\n        if (candidate.nodeValue !== string) {\n          candidate.nodeValue = string;\n        }\n\n        this.candidate = candidate.nextSibling;\n        return candidate;\n      } else if (isSeparator(candidate)) {\n        this.candidate = this.remove(candidate);\n        return this.__appendText(string);\n      } else if (isEmpty$1(candidate) && string === '') {\n        this.candidate = this.remove(candidate);\n        return this.__appendText(string);\n      } else {\n        this.clearMismatch(candidate);\n        return super.__appendText(string);\n      }\n    } else {\n      return super.__appendText(string);\n    }\n  }\n\n  __appendComment(string) {\n    let _candidate = this.candidate;\n\n    if (_candidate && isComment(_candidate)) {\n      if (_candidate.nodeValue !== string) {\n        _candidate.nodeValue = string;\n      }\n\n      this.candidate = _candidate.nextSibling;\n      return _candidate;\n    } else if (_candidate) {\n      this.clearMismatch(_candidate);\n    }\n\n    return super.__appendComment(string);\n  }\n\n  __openElement(tag) {\n    let _candidate = this.candidate;\n\n    if (_candidate && isElement(_candidate) && isSameNodeType(_candidate, tag)) {\n      this.unmatchedAttributes = [].slice.call(_candidate.attributes);\n      return _candidate;\n    } else if (_candidate) {\n      if (isElement(_candidate) && _candidate.tagName === 'TBODY') {\n        this.pushElement(_candidate, null);\n        this.currentCursor.injectedOmittedNode = true;\n        return this.__openElement(tag);\n      }\n\n      this.clearMismatch(_candidate);\n    }\n\n    return super.__openElement(tag);\n  }\n\n  __setAttribute(name, value, namespace) {\n    let unmatched = this.unmatchedAttributes;\n\n    if (unmatched) {\n      let attr = findByName(unmatched, name);\n\n      if (attr) {\n        if (attr.value !== value) {\n          attr.value = value;\n        }\n\n        unmatched.splice(unmatched.indexOf(attr), 1);\n        return;\n      }\n    }\n\n    return super.__setAttribute(name, value, namespace);\n  }\n\n  __setProperty(name, value) {\n    let unmatched = this.unmatchedAttributes;\n\n    if (unmatched) {\n      let attr = findByName(unmatched, name);\n\n      if (attr) {\n        if (attr.value !== value) {\n          attr.value = value;\n        }\n\n        unmatched.splice(unmatched.indexOf(attr), 1);\n        return;\n      }\n    }\n\n    return super.__setProperty(name, value);\n  }\n\n  __flushElement(parent, constructing) {\n    let {\n      unmatchedAttributes: unmatched\n    } = this;\n\n    if (unmatched) {\n      for (let i = 0; i < unmatched.length; i++) {\n        this.constructing.removeAttribute(unmatched[i].name);\n      }\n\n      this.unmatchedAttributes = null;\n    } else {\n      super.__flushElement(parent, constructing);\n    }\n  }\n\n  willCloseElement() {\n    let {\n      candidate,\n      currentCursor\n    } = this;\n\n    if (candidate !== null) {\n      this.clearMismatch(candidate);\n    }\n\n    if (currentCursor && currentCursor.injectedOmittedNode) {\n      this.popElement();\n    }\n\n    super.willCloseElement();\n  }\n\n  getMarker(element, guid) {\n    let marker = element.querySelector(`script[glmr=\"${guid}\"]`);\n\n    if (marker) {\n      return marker;\n    }\n\n    return null;\n  }\n\n  __pushRemoteElement(element, cursorId, insertBefore) {\n    let marker = this.getMarker(element, cursorId);\n\n    if (insertBefore === undefined) {\n      while (element.firstChild !== null && element.firstChild !== marker) {\n        this.remove(element.firstChild);\n      }\n\n      insertBefore = null;\n    }\n\n    let cursor = new RehydratingCursor(element, null, this.blockDepth);\n    this[CURSOR_STACK].push(cursor);\n\n    if (marker === null) {\n      this.disableRehydration(insertBefore);\n    } else {\n      this.candidate = this.remove(marker);\n    }\n\n    let block = new RemoteLiveBlock(element);\n    return this.pushLiveBlock(block, true);\n  }\n\n  didAppendBounds(bounds) {\n    super.didAppendBounds(bounds);\n\n    if (this.candidate) {\n      let last = bounds.lastNode();\n      this.candidate = last && last.nextSibling;\n    }\n\n    return bounds;\n  }\n\n}\n\nfunction isTextNode(node) {\n  return node.nodeType === 3;\n}\n\nfunction isComment(node) {\n  return node.nodeType === 8;\n}\n\nfunction isOpenBlock(node) {\n  return node.nodeType === 8\n  /* COMMENT_NODE */\n  && node.nodeValue.lastIndexOf('%+b:', 0) === 0;\n}\n\nfunction isCloseBlock(node) {\n  return node.nodeType === 8\n  /* COMMENT_NODE */\n  && node.nodeValue.lastIndexOf('%-b:', 0) === 0;\n}\n\nfunction getBlockDepth(node) {\n  return parseInt(node.nodeValue.slice(4), 10);\n}\n\nfunction getBlockDepthWithOffset(node, offset) {\n  return getBlockDepth(node) - offset;\n}\n\nfunction isElement(node) {\n  return node.nodeType === 1;\n}\n\nfunction isMarker(node) {\n  return node.nodeType === 8 && node.nodeValue === '%glmr%';\n}\n\nfunction isSeparator(node) {\n  return node.nodeType === 8 && node.nodeValue === '%|%';\n}\n\nfunction isEmpty$1(node) {\n  return node.nodeType === 8 && node.nodeValue === '% %';\n}\n\nfunction isSameNodeType(candidate, tag) {\n  if (candidate.namespaceURI === \"http://www.w3.org/2000/svg\"\n  /* SVG */\n  ) {\n      return candidate.tagName === tag;\n    }\n\n  return candidate.tagName === tag.toUpperCase();\n}\n\nfunction findByName(array, name) {\n  for (let i = 0; i < array.length; i++) {\n    let attr = array[i];\n    if (attr.name === name) return attr;\n  }\n\n  return undefined;\n}\n\nfunction rehydrationBuilder(env, cursor) {\n  return RehydrateBuilder.forInitialRender(env, cursor);\n}\n\nconst TEMPLATES = new WeakMap();\nconst getPrototypeOf = Object.getPrototypeOf;\n\nfunction setComponentTemplate(factory, obj) {\n  if (DEBUG && !(obj !== null && (typeof obj === 'object' || typeof obj === 'function'))) {\n    throw new Error(`Cannot call \\`setComponentTemplate\\` on \\`${debugToString(obj)}\\``);\n  }\n\n  if (DEBUG && TEMPLATES.has(obj)) {\n    throw new Error(`Cannot call \\`setComponentTemplate\\` multiple times on the same class (\\`${debugToString(obj)}\\`)`);\n  }\n\n  TEMPLATES.set(obj, factory);\n  return obj;\n}\n\nfunction getComponentTemplate(obj) {\n  let pointer = obj;\n\n  while (pointer !== null) {\n    let template = TEMPLATES.get(pointer);\n\n    if (template !== undefined) {\n      return template;\n    }\n\n    pointer = getPrototypeOf(pointer);\n  }\n\n  return undefined;\n} // This is only exported for types, don't use this class directly\n\n\nclass TemplateOnlyComponent {\n  constructor(moduleName = '@glimmer/component/template-only') {\n    this.moduleName = moduleName;\n  }\n\n  toString() {\n    return this.moduleName;\n  }\n\n}\n/**\n  This utility function is used to declare a given component has no backing class. When the rendering engine detects this it\n  is able to perform a number of optimizations. Templates that are associated with `templateOnly()` will be rendered _as is_\n  without adding a wrapping `<div>` (or any of the other element customization behaviors of [@ember/component](/ember/release/classes/Component)).\n  Specifically, this means that the template will be rendered as \"outer HTML\".\n\n  In general, this method will be used by build time tooling and would not be directly written in an application. However,\n  at times it may be useful to use directly to leverage the \"outer HTML\" semantics mentioned above. For example, if an addon would like\n  to use these semantics for its templates but cannot be certain it will only be consumed by applications that have enabled the\n  `template-only-glimmer-components` optional feature.\n\n  @example\n\n  ```js\n  import { templateOnlyComponent } from '@glimmer/runtime';\n\n  export default templateOnlyComponent();\n  ```\n\n  @public\n  @method templateOnly\n  @param {String} moduleName the module name that the template only component represents, this will be used for debugging purposes\n  @category EMBER_GLIMMER_SET_COMPONENT_TEMPLATE\n*/\n\n\nfunction templateOnlyComponent(moduleName) {\n  return new TemplateOnlyComponent(moduleName);\n}\n\nfunction isTemplateOnlyComponent(component) {\n  return component instanceof TemplateOnlyComponent;\n}\n\nconst OWNER = symbol('OWNER');\n/**\n  Framework objects in a Glimmer application may receive an owner object.\n  Glimmer is unopinionated about this owner, but will forward it through its\n  internal resolution system, and through its managers if it is provided.\n*/\n\nfunction getOwner(object) {\n  return object[OWNER];\n}\n/**\n  `setOwner` set's an object's owner\n*/\n\n\nfunction setOwner(object, owner) {\n  object[OWNER] = owner;\n}\n\nconst INTERNAL_MANAGERS = new _WeakSet();\n\nfunction isInternalComponentManager(manager) {\n  return INTERNAL_MANAGERS.has(manager);\n}\n\nfunction isInternalModifierManager(manager) {\n  return INTERNAL_MANAGERS.has(manager);\n}\n\nfunction isInternalHelper(manager) {\n  return typeof manager === 'function';\n}\n\nclass BaseInternalComponentManager {\n  constructor() {\n    INTERNAL_MANAGERS.add(this);\n  }\n\n  didCreateElement(_component, _element, _operations) {// noop\n  }\n\n  didRenderLayout(_component, _bounds) {// noop\n  }\n\n  didCreate(_bucket) {// noop\n  }\n\n  update(_bucket, _dynamicScope) {// noop\n  }\n\n  didUpdateLayout(_bucket, _bounds) {// noop\n  }\n\n  didUpdate(_bucket) {// noop\n  }\n\n}\n\nclass BaseInternalModifierManager {\n  constructor() {\n    INTERNAL_MANAGERS.add(this);\n  }\n\n}\n\nconst COMPONENT_MANAGERS = new WeakMap();\nconst FROM_CAPABILITIES = DEBUG ? new _WeakSet() : undefined;\nconst MODIFIER_MANAGERS = new WeakMap();\nconst HELPER_MANAGERS = new WeakMap();\nconst OWNER_MANAGER_INSTANCES = new WeakMap();\nconst UNDEFINED_MANAGER_INSTANCES = new WeakMap(); ///////////\n\nconst getPrototypeOf$1 = Object.getPrototypeOf;\n\nfunction setManager(map, factory, obj) {\n  if (DEBUG && (typeof obj !== 'object' || obj === null) && typeof obj !== 'function') {\n    throw new Error(`Attempted to set a manager on a non-object value. Managers can only be associated with objects or functions. Value was ${debugToString(obj)}`);\n  }\n\n  if (DEBUG && map.has(obj)) {\n    throw new Error(`Attempted to set the same type of manager multiple times on a value. You can only associate one manager of each type with a given value. Value was ${debugToString(obj)}`);\n  }\n\n  map.set(obj, factory);\n  return obj;\n}\n\nfunction getManager(map, obj) {\n  let pointer = obj;\n\n  while (pointer !== undefined && pointer !== null) {\n    const manager = map.get(pointer);\n\n    if (manager !== undefined) {\n      return manager;\n    }\n\n    pointer = getPrototypeOf$1(pointer);\n  }\n\n  return undefined;\n}\n\nfunction getManagerInstanceForOwner(owner, factory) {\n  let managers;\n\n  if (owner === undefined) {\n    managers = UNDEFINED_MANAGER_INSTANCES;\n  } else {\n    managers = OWNER_MANAGER_INSTANCES.get(owner);\n\n    if (managers === undefined) {\n      managers = new Map();\n      OWNER_MANAGER_INSTANCES.set(owner, managers);\n    }\n  }\n\n  let instance = managers.get(factory);\n\n  if (instance === undefined) {\n    instance = factory(owner);\n    managers.set(factory, instance);\n  } // We know for sure that it's the correct type at this point, but TS can't know\n\n\n  return instance;\n} ///////////\n\n\nfunction setModifierManager(factory, definition) {\n  return setManager(MODIFIER_MANAGERS, factory, definition);\n}\n\nfunction getModifierManager(owner, definition) {\n  const factory = getManager(MODIFIER_MANAGERS, definition);\n\n  if (factory !== undefined) {\n    let manager = getManagerInstanceForOwner(owner, factory);\n\n    if (DEBUG && !isInternalModifierManager(manager) && !FROM_CAPABILITIES.has(manager.capabilities)) {\n      // TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\n      throw new Error(`Custom modifier managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.13' | '3.22')\\` (imported via \\`import { capabilities } from '@ember/modifier';\\`). Received: \\`${JSON.stringify(manager.capabilities)}\\` for: \\`${manager}\\``);\n    }\n\n    return manager;\n  }\n\n  return undefined;\n}\n\nfunction setHelperManager(factory, definition) {\n  return setManager(HELPER_MANAGERS, factory, definition);\n}\n\nfunction getHelperManager(owner, definition) {\n  const factory = getManager(HELPER_MANAGERS, definition);\n\n  if (factory !== undefined) {\n    let manager = getManagerInstanceForOwner(owner, factory);\n\n    if (DEBUG && !isInternalHelper(manager) && !FROM_CAPABILITIES.has(manager.capabilities)) {\n      // TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\n      throw new Error(`Custom helper managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.23')\\` (imported via \\`import { capabilities } from '@ember/helper';\\`). Received: \\`${JSON.stringify(manager.capabilities)}\\` for: \\`${manager}\\``);\n    }\n\n    return manager;\n  }\n\n  return undefined;\n}\n\nfunction setComponentManager(factory, obj) {\n  return setManager(COMPONENT_MANAGERS, factory, obj);\n}\n\nfunction getComponentManager(owner, definition) {\n  const factory = getManager(COMPONENT_MANAGERS, definition);\n\n  if (factory !== undefined) {\n    let manager = getManagerInstanceForOwner(owner, factory);\n\n    if (DEBUG && !isInternalComponentManager(manager) && !FROM_CAPABILITIES.has(manager.capabilities)) {\n      // TODO: This error message should make sense in both Ember and Glimmer https://github.com/glimmerjs/glimmer-vm/issues/1200\n      throw new Error(`Custom component managers must have a \\`capabilities\\` property that is the result of calling the \\`capabilities('3.4' | '3.13')\\` (imported via \\`import { capabilities } from '@ember/component';\\`). Received: \\`${JSON.stringify(manager.capabilities)}\\` for: \\`${manager}\\``);\n    }\n\n    return manager;\n  }\n\n  return undefined;\n}\n\nfunction buildCapabilities(capabilities) {\n  if (DEBUG) {\n    FROM_CAPABILITIES.add(capabilities);\n    Object.freeze(capabilities);\n  }\n\n  return capabilities;\n}\n\nexport { clear, ConcreteBounds, CursorImpl, capabilityFlagsFrom, hasCapability, resetDebuggerCallback, setDebuggerCallback, CurriedComponentDefinition, curry, isCurriedComponentDefinition, DEFAULT_CAPABILITIES, MINIMAL_CAPABILITIES, helper$1 as DOMChanges, DOMChangesImpl as IDOMChanges, DOMTreeConstruction, isWhitespace, normalizeProperty, DynamicScopeImpl, PartialScopeImpl, runtimeContext, EnvironmentImpl, inTransaction, getDynamicVar, renderComponent, renderMain, renderSync, UpdatingVM, VM as LowLevelVM, EMPTY_ARGS, EMPTY_NAMED, EMPTY_POSITIONAL, createCapturedArgs, reifyArgs, reifyNamed, reifyPositional, DynamicAttribute, dynamicAttribute, SimpleDynamicAttribute, clientBuilder, NewElementBuilder, UpdatableBlockImpl, RemoteLiveBlock, isSerializationFirstNode, RehydrateBuilder, rehydrationBuilder, SERIALIZATION_FIRST_NODE_STRING, destroy, registerDestructor, unregisterDestructor, associateDestroyableChild, isDestroying, isDestroyed, enableDestroyableTracking, assertDestroyablesDestroyed, destroyChildren as _destroyChildren, getComponentTemplate, setComponentTemplate, templateOnlyComponent, isTemplateOnlyComponent, TemplateOnlyComponent, getOwner, setOwner, OWNER, getComponentManager, setComponentManager, getHelperManager, setHelperManager, getModifierManager, setModifierManager, buildCapabilities, BaseInternalComponentManager, BaseInternalModifierManager, isInternalComponentManager, isInternalModifierManager, isInternalHelper, SimpleComponentManager, TEMPLATE_ONLY_COMPONENT };","import { DEBUG } from '@glimmer/env';\nconst EMPTY_ARRAY = Object.freeze([]); // import Logger from './logger';\n// let alreadyWarned = false;\n\nfunction debugAssert(test, msg) {\n  // if (!alreadyWarned) {\n  //   alreadyWarned = true;\n  //   Logger.warn(\"Don't leave debug assertions on in public builds\");\n  // }\n  if (!test) {\n    throw new Error(msg || 'assertion failure');\n  }\n}\n\nfunction deprecate(desc) {\n  console.warn(`DEPRECATION: ${desc}`);\n}\n\nlet GUID = 0;\n\nfunction initializeGuid(object) {\n  return object._guid = ++GUID;\n}\n\nfunction ensureGuid(object) {\n  return object._guid || initializeGuid(object);\n}\n\nfunction dict() {\n  return Object.create(null);\n}\n\nfunction isDict(u) {\n  return u !== null && u !== undefined;\n}\n\nfunction isObject(u) {\n  return typeof u === 'object' && u !== null;\n}\n\nclass DictSet {\n  constructor() {\n    this.dict = dict();\n  }\n\n  add(obj) {\n    if (typeof obj === 'string') this.dict[obj] = obj;else this.dict[ensureGuid(obj)] = obj;\n    return this;\n  }\n\n  delete(obj) {\n    if (typeof obj === 'string') delete this.dict[obj];else if (obj._guid) delete this.dict[obj._guid];\n  }\n\n}\n\nclass StackImpl {\n  constructor() {\n    this.stack = [];\n    this.current = null;\n  }\n\n  get size() {\n    return this.stack.length;\n  }\n\n  push(item) {\n    this.current = item;\n    this.stack.push(item);\n  }\n\n  pop() {\n    let item = this.stack.pop();\n    let len = this.stack.length;\n    this.current = len === 0 ? null : this.stack[len - 1];\n    return item === undefined ? null : item;\n  }\n\n  nth(from) {\n    let len = this.stack.length;\n    return len < from ? null : this.stack[len - from];\n  }\n\n  isEmpty() {\n    return this.stack.length === 0;\n  }\n\n  toArray() {\n    return this.stack;\n  }\n\n}\n\nfunction clearElement(parent) {\n  let current = parent.firstChild;\n\n  while (current) {\n    let next = current.nextSibling;\n    parent.removeChild(current);\n    current = next;\n  }\n}\n\nconst SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';\n\nfunction isSerializationFirstNode(node) {\n  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;\n}\n\nconst {\n  keys: objKeys\n} = Object;\n\nfunction assign(obj) {\n  for (let i = 1; i < arguments.length; i++) {\n    let assignment = arguments[i];\n    if (assignment === null || typeof assignment !== 'object') continue;\n    let keys = objKeys(assignment);\n\n    for (let j = 0; j < keys.length; j++) {\n      let key = keys[j];\n      obj[key] = assignment[key];\n    }\n  }\n\n  return obj;\n}\n\nfunction fillNulls(count) {\n  let arr = new Array(count);\n\n  for (let i = 0; i < count; i++) {\n    arr[i] = null;\n  }\n\n  return arr;\n}\n\nfunction values(obj) {\n  const vals = [];\n\n  for (const key in obj) {\n    vals.push(obj[key]);\n  }\n\n  return vals;\n}\n\nconst HAS_NATIVE_SYMBOL = function () {\n  if (typeof Symbol !== 'function') {\n    return false;\n  } // eslint-disable-next-line symbol-description\n\n\n  return typeof Symbol() === 'symbol';\n}();\n\nfunction keys(obj) {\n  return Object.keys(obj);\n}\n\nfunction unwrap(val) {\n  if (val === null || val === undefined) throw new Error(`Expected value to be present`);\n  return val;\n}\n\nfunction expect(val, message) {\n  if (val === null || val === undefined) throw new Error(message);\n  return val;\n}\n\nfunction unreachable(message = 'unreachable') {\n  return new Error(message);\n}\n\nfunction exhausted(value) {\n  throw new Error(`Exhausted ${value}`);\n}\n\nconst tuple = (...args) => args;\n\nconst symbol = HAS_NATIVE_SYMBOL ? Symbol : key => `__${key}${Math.floor(Math.random() * Date.now())}__`;\n\nfunction strip(strings, ...args) {\n  let out = '';\n\n  for (let i = 0; i < strings.length; i++) {\n    let string = strings[i];\n    let dynamic = args[i] !== undefined ? String(args[i]) : '';\n    out += `${string}${dynamic}`;\n  }\n\n  let lines = out.split('\\n');\n\n  while (lines.length && lines[0].match(/^\\s*$/)) {\n    lines.shift();\n  }\n\n  while (lines.length && lines[lines.length - 1].match(/^\\s*$/)) {\n    lines.pop();\n  }\n\n  let min = Infinity;\n\n  for (let line of lines) {\n    let leading = line.match(/^\\s*/)[0].length;\n    min = Math.min(min, leading);\n  }\n\n  let stripped = [];\n\n  for (let line of lines) {\n    stripped.push(line.slice(min));\n  }\n\n  return stripped.join('\\n');\n}\n\nfunction isHandle(value) {\n  return value >= 0;\n}\n\nfunction isNonPrimitiveHandle(value) {\n  return value > 3\n  /* ENCODED_UNDEFINED_HANDLE */\n  ;\n}\n\nfunction constants(...values) {\n  return [false, true, null, undefined, ...values];\n}\n\nfunction isSmallInt(value) {\n  return value % 1 === 0 && value <= 536870911\n  /* MAX_INT */\n  && value >= -536870912\n  /* MIN_INT */\n  ;\n}\n\nfunction encodeNegative(num) {\n  return num & -536870913\n  /* SIGN_BIT */\n  ;\n}\n\nfunction decodeNegative(num) {\n  return num | ~-536870913\n  /* SIGN_BIT */\n  ;\n}\n\nfunction encodePositive(num) {\n  return ~num;\n}\n\nfunction decodePositive(num) {\n  return ~num;\n}\n\nfunction encodeHandle(num) {\n  return num;\n}\n\nfunction decodeHandle(num) {\n  return num;\n}\n\nfunction encodeImmediate(num) {\n  num |= 0;\n  return num < 0 ? encodeNegative(num) : encodePositive(num);\n}\n\nfunction decodeImmediate(num) {\n  num |= 0;\n  return num > -536870913\n  /* SIGN_BIT */\n  ? decodePositive(num) : decodeNegative(num);\n} // Warm\n\n\n[1, -1].forEach(x => decodeImmediate(encodeImmediate(x)));\n\nfunction unwrapHandle(handle) {\n  if (typeof handle === 'number') {\n    return handle;\n  } else {\n    let error = handle.errors[0];\n    throw new Error(`Compile Error: ${error.problem} @ ${error.span.start}..${error.span.end}`);\n  }\n}\n\nfunction unwrapTemplate(template) {\n  if (template.result === 'error') {\n    throw new Error(`Compile Error: ${template.problem} @ ${template.span.start}..${template.span.end}`);\n  }\n\n  return template;\n}\n\nfunction extractHandle(handle) {\n  if (typeof handle === 'number') {\n    return handle;\n  } else {\n    return handle.handle;\n  }\n}\n\nfunction isOkHandle(handle) {\n  return typeof handle === 'number';\n}\n\nfunction isErrHandle(handle) {\n  return typeof handle === 'number';\n}\n\nvar weakSet = typeof WeakSet === 'function' ? WeakSet : class WeakSetPolyFill {\n  constructor() {\n    this._map = new WeakMap();\n  }\n\n  add(val) {\n    this._map.set(val, true);\n\n    return this;\n  }\n\n  delete(val) {\n    return this._map.delete(val);\n  }\n\n  has(val) {\n    return this._map.has(val);\n  }\n\n};\n\nfunction castToSimple(node) {\n  if (isDocument(node)) {\n    return node;\n  } else if (isElement(node)) {\n    return node;\n  } else {\n    return node;\n  }\n}\n\nfunction castToBrowser(node, sugaryCheck) {\n  if (node === null || node === undefined) {\n    return null;\n  }\n\n  if (typeof document === undefined) {\n    throw new Error('Attempted to cast to a browser node in a non-browser context');\n  }\n\n  if (isDocument(node)) {\n    return node;\n  }\n\n  if (node.ownerDocument !== document) {\n    throw new Error('Attempted to cast to a browser node with a node that was not created from this document');\n  }\n\n  return checkNode(node, sugaryCheck);\n}\n\nfunction checkError(from, check) {\n  return new Error(`cannot cast a ${from} into ${check}`);\n}\n\nfunction isDocument(node) {\n  return node.nodeType === 9\n  /* DOCUMENT_NODE */\n  ;\n}\n\nfunction isElement(node) {\n  return node.nodeType === 1\n  /* ELEMENT_NODE */\n  ;\n}\n\nfunction checkNode(node, check) {\n  let isMatch = false;\n\n  if (node !== null) {\n    if (typeof check === 'string') {\n      isMatch = stringCheckNode(node, check);\n    } else if (Array.isArray(check)) {\n      isMatch = check.some(c => stringCheckNode(node, c));\n    } else {\n      throw unreachable();\n    }\n  }\n\n  if (isMatch) {\n    return node;\n  } else {\n    throw checkError(`SimpleElement(${node})`, check);\n  }\n}\n\nfunction stringCheckNode(node, check) {\n  switch (check) {\n    case 'NODE':\n      return true;\n\n    case 'HTML':\n      return node instanceof HTMLElement;\n\n    case 'SVG':\n      return node instanceof SVGElement;\n\n    case 'ELEMENT':\n      return node instanceof Element;\n\n    default:\n      if (check.toUpperCase() === check) {\n        throw new Error(`BUG: this code is missing handling for a generic node type`);\n      }\n\n      return node instanceof Element && node.tagName.toLowerCase() === check;\n  }\n}\n\nlet debugToString;\n\nif (DEBUG) {\n  let getFunctionName = fn => {\n    let functionName = fn.name;\n\n    if (functionName === undefined) {\n      let match = Function.prototype.toString.call(fn).match(/function (\\w+)\\s*\\(/);\n      functionName = match && match[1] || '';\n    }\n\n    return functionName.replace(/^bound /, '');\n  };\n\n  let getObjectName = obj => {\n    let name;\n    let className;\n\n    if (obj.constructor && obj.constructor !== Object) {\n      className = getFunctionName(obj.constructor);\n    }\n\n    if ('toString' in obj && obj.toString !== Object.prototype.toString && obj.toString !== Function.prototype.toString) {\n      name = obj.toString();\n    } // If the class has a decent looking name, and the `toString` is one of the\n    // default Ember toStrings, replace the constructor portion of the toString\n    // with the class name. We check the length of the class name to prevent doing\n    // this when the value is minified.\n\n\n    if (name && name.match(/<.*:ember\\d+>/) && className && className[0] !== '_' && className.length > 2 && className !== 'Class') {\n      return name.replace(/<.*:/, `<${className}:`);\n    }\n\n    return name || className;\n  };\n\n  let getPrimitiveName = value => {\n    return String(value);\n  };\n\n  debugToString = value => {\n    if (typeof value === 'function') {\n      return getFunctionName(value) || `(unknown function)`;\n    } else if (typeof value === 'object' && value !== null) {\n      return getObjectName(value) || `(unknown object)`;\n    } else {\n      return getPrimitiveName(value);\n    }\n  };\n}\n\nvar debugToString$1 = debugToString;\nlet beginTestSteps;\nlet endTestSteps;\nlet verifySteps;\nlet logStep;\n\nfunction assertNever(value, desc = 'unexpected unreachable branch') {\n  console.log('unreachable', value);\n  console.trace(`${desc} :: ${JSON.stringify(value)} (${value})`);\n}\n\nexport { assertNever, EMPTY_ARRAY, debugAssert as assert, deprecate, dict, DictSet, isDict, isObject, StackImpl as Stack, ensureGuid, initializeGuid, isSerializationFirstNode, SERIALIZATION_FIRST_NODE_STRING, assign, fillNulls, values, weakSet as _WeakSet, castToSimple, castToBrowser, checkNode, debugToString$1 as debugToString, beginTestSteps, endTestSteps, logStep, verifySteps, clearElement, HAS_NATIVE_SYMBOL, keys, unwrap, expect, unreachable, exhausted, tuple, symbol, strip, isHandle, isNonPrimitiveHandle, constants, isSmallInt, encodeNegative, decodeNegative, encodePositive, decodePositive, encodeHandle, decodeHandle, encodeImmediate, decodeImmediate, unwrapHandle, unwrapTemplate, extractHandle, isOkHandle, isErrHandle };","import { DEBUG } from '@glimmer/env';\nimport { scheduleRevalidate } from '@glimmer/global-context'; // eslint-disable-next-line @typescript-eslint/ban-types\n\nfunction indexable(input) {\n  return input;\n} // This is a duplicate utility from @glimmer/util because `@glimmer/validator`\n// should not depend on any other @glimmer packages, in order to avoid pulling\n// in types and prevent regressions in `@glimmer/tracking` (which has public types).\n\n\nconst symbol = typeof Symbol !== 'undefined' ? Symbol : // eslint-disable-next-line @typescript-eslint/no-explicit-any\nkey => `__${key}${Math.floor(Math.random() * Date.now())}__`; // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\nconst symbolFor = typeof Symbol !== 'undefined' ? Symbol.for : key => `__GLIMMER_VALIDATOR_SYMBOL_FOR_${key}`;\n\nfunction getGlobal() {\n  // eslint-disable-next-line node/no-unsupported-features/es-builtins\n  if (typeof globalThis !== 'undefined') return indexable(globalThis);\n  if (typeof self !== 'undefined') return indexable(self);\n  if (typeof window !== 'undefined') return indexable(window);\n  if (typeof global !== 'undefined') return indexable(global);\n  throw new Error('unable to locate global object');\n}\n\nfunction unwrap(val) {\n  if (val === null || val === undefined) throw new Error(`Expected value to be present`);\n  return val;\n}\n\nlet beginTrackingTransaction;\nlet endTrackingTransaction;\nlet runInTrackingTransaction;\nlet deprecateMutationsInTrackingTransaction;\nlet resetTrackingTransaction;\nlet setTrackingTransactionEnv;\nlet assertTagNotConsumed;\nlet markTagAsConsumed;\nlet logTrackingStack;\n\nif (DEBUG) {\n  let CONSUMED_TAGS = null;\n  let TRANSACTION_STACK = []; /////////\n\n  let TRANSACTION_ENV = {\n    assert(message) {\n      throw new Error(message);\n    },\n\n    deprecate(message) {\n      console.warn(message);\n    },\n\n    debugMessage(obj, keyName) {\n      let objName;\n\n      if (typeof obj === 'function') {\n        objName = obj.name;\n      } else if (typeof obj === 'object' && obj !== null) {\n        let className = obj.constructor && obj.constructor.name || '(unknown class)';\n        objName = `(an instance of ${className})`;\n      } else if (obj === undefined) {\n        objName = '(an unknown tag)';\n      } else {\n        objName = String(obj);\n      }\n\n      let dirtyString = keyName ? `\\`${keyName}\\` on \\`${objName}\\`` : `\\`${objName}\\``;\n      return `You attempted to update ${dirtyString}, but it had already been used previously in the same computation.  Attempting to update a value after using it in a computation can cause logical errors, infinite revalidation bugs, and performance issues, and is not supported.`;\n    }\n\n  };\n\n  setTrackingTransactionEnv = env => Object.assign(TRANSACTION_ENV, env);\n\n  beginTrackingTransaction = (_debugLabel, deprecate = false) => {\n    CONSUMED_TAGS = CONSUMED_TAGS || new WeakMap();\n    let debugLabel = _debugLabel || undefined;\n    let parent = TRANSACTION_STACK[TRANSACTION_STACK.length - 1] || null;\n    TRANSACTION_STACK.push({\n      parent,\n      debugLabel,\n      deprecate\n    });\n  };\n\n  endTrackingTransaction = () => {\n    if (TRANSACTION_STACK.length === 0) {\n      throw new Error('attempted to close a tracking transaction, but one was not open');\n    }\n\n    TRANSACTION_STACK.pop();\n\n    if (TRANSACTION_STACK.length === 0) {\n      CONSUMED_TAGS = null;\n    }\n  };\n\n  resetTrackingTransaction = () => {\n    let stack = '';\n\n    if (TRANSACTION_STACK.length > 0) {\n      stack = logTrackingStack(TRANSACTION_STACK[TRANSACTION_STACK.length - 1]);\n    }\n\n    TRANSACTION_STACK = [];\n    CONSUMED_TAGS = null;\n    return stack;\n  };\n  /**\n   * Creates a global autotracking transaction. This will prevent any backflow\n   * in any `track` calls within the transaction, even if they are not\n   * externally consumed.\n   *\n   * `runInAutotrackingTransaction` can be called within itself, and it will add\n   * onto the existing transaction if one exists.\n   *\n   * TODO: Only throw an error if the `track` is consumed.\n   */\n\n\n  runInTrackingTransaction = (fn, debugLabel) => {\n    beginTrackingTransaction(debugLabel);\n    let didError = true;\n\n    try {\n      let value = fn();\n      didError = false;\n      return value;\n    } finally {\n      if (didError !== true) {\n        endTrackingTransaction();\n      }\n    }\n  };\n  /**\n   * Switches to deprecating within an autotracking transaction, if one exists.\n   * If `runInAutotrackingTransaction` is called within the callback of this\n   * method, it switches back to throwing an error, allowing zebra-striping of\n   * the types of errors that are thrown.\n   *\n   * Does not start an autotracking transaction.\n   *\n   * NOTE: For Ember usage only, in general you should assert that these\n   * invariants are true.\n   */\n\n\n  deprecateMutationsInTrackingTransaction = (fn, debugLabel) => {\n    beginTrackingTransaction(debugLabel, true);\n\n    try {\n      fn();\n    } finally {\n      endTrackingTransaction();\n    }\n  };\n\n  let nthIndex = (str, pattern, n, startingPos = -1) => {\n    let i = startingPos;\n\n    while (n-- > 0 && i++ < str.length) {\n      i = str.indexOf(pattern, i);\n      if (i < 0) break;\n    }\n\n    return i;\n  };\n\n  let makeTrackingErrorMessage = (transaction, obj, keyName) => {\n    let message = [TRANSACTION_ENV.debugMessage(obj, keyName && String(keyName))];\n    message.push(`\\`${String(keyName)}\\` was first used:`);\n    message.push(logTrackingStack(transaction));\n    message.push(`Stack trace for the update:`);\n    return message.join('\\n\\n');\n  };\n\n  logTrackingStack = transaction => {\n    let trackingStack = [];\n    let current = transaction || TRANSACTION_STACK[TRANSACTION_STACK.length - 1];\n    if (current === undefined) return '';\n\n    while (current) {\n      if (current.debugLabel) {\n        trackingStack.unshift(current.debugLabel);\n      }\n\n      current = current.parent;\n    } // TODO: Use String.prototype.repeat here once we can drop support for IE11\n\n\n    return trackingStack.map((label, index) => Array(2 * index + 1).join(' ') + label).join('\\n');\n  };\n\n  markTagAsConsumed = _tag => {\n    if (!CONSUMED_TAGS || CONSUMED_TAGS.has(_tag)) return;\n    CONSUMED_TAGS.set(_tag, TRANSACTION_STACK[TRANSACTION_STACK.length - 1]); // We need to mark the tag and all of its subtags as consumed, so we need to\n    // cast it and access its internals. In the future this shouldn't be necessary,\n    // this is only for computed properties.\n\n    let tag = _tag;\n\n    if (tag.subtag) {\n      markTagAsConsumed(tag.subtag);\n    }\n\n    if (tag.subtags) {\n      tag.subtags.forEach(tag => markTagAsConsumed(tag));\n    }\n  };\n\n  assertTagNotConsumed = (tag, obj, keyName) => {\n    if (CONSUMED_TAGS === null) return;\n    let transaction = CONSUMED_TAGS.get(tag);\n    if (!transaction) return;\n    let currentTransaction = TRANSACTION_STACK[TRANSACTION_STACK.length - 1];\n\n    if (currentTransaction.deprecate) {\n      TRANSACTION_ENV.deprecate(makeTrackingErrorMessage(transaction, obj, keyName));\n    } else {\n      // This hack makes the assertion message nicer, we can cut off the first\n      // few lines of the stack trace and let users know where the actual error\n      // occurred.\n      try {\n        TRANSACTION_ENV.assert(makeTrackingErrorMessage(transaction, obj, keyName));\n      } catch (e) {\n        if (e.stack) {\n          let updateStackBegin = e.stack.indexOf('Stack trace for the update:');\n\n          if (updateStackBegin !== -1) {\n            let start = nthIndex(e.stack, '\\n', 1, updateStackBegin);\n            let end = nthIndex(e.stack, '\\n', 4, updateStackBegin);\n            e.stack = e.stack.substr(0, start) + e.stack.substr(end);\n          }\n        }\n\n        throw e;\n      }\n    }\n  };\n}\n\nconst CONSTANT = 0;\nconst INITIAL = 1;\nconst VOLATILE = NaN;\nlet $REVISION = INITIAL;\n\nfunction bump() {\n  $REVISION++;\n} //////////\n\n\nconst COMPUTE = symbol('TAG_COMPUTE'); //////////\n\n/**\n * `value` receives a tag and returns an opaque Revision based on that tag. This\n * snapshot can then later be passed to `validate` with the same tag to\n * determine if the tag has changed at all since the time that `value` was\n * called.\n *\n * @param tag\n */\n\nfunction valueForTag(tag) {\n  return tag[COMPUTE]();\n}\n/**\n * `validate` receives a tag and a snapshot from a previous call to `value` with\n * the same tag, and determines if the tag is still valid compared to the\n * snapshot. If the tag's state has changed at all since then, `validate` will\n * return false, otherwise it will return true. This is used to determine if a\n * calculation related to the tags should be rerun.\n *\n * @param tag\n * @param snapshot\n */\n\n\nfunction validateTag(tag, snapshot) {\n  return snapshot >= tag[COMPUTE]();\n}\n\nconst TYPE = symbol('TAG_TYPE'); // this is basically a const\n// eslint-disable-next-line @typescript-eslint/naming-convention\n\nlet ALLOW_CYCLES;\n\nif (DEBUG) {\n  ALLOW_CYCLES = new WeakMap();\n}\n\nfunction allowsCycles(tag) {\n  if (ALLOW_CYCLES === undefined) {\n    return true;\n  } else {\n    return ALLOW_CYCLES.has(tag);\n  }\n}\n\nclass MonomorphicTagImpl {\n  constructor(type) {\n    this.revision = INITIAL;\n    this.lastChecked = INITIAL;\n    this.lastValue = INITIAL;\n    this.isUpdating = false;\n    this.subtag = null;\n    this.subtagBufferCache = null;\n    this[TYPE] = type;\n  }\n\n  static combine(tags) {\n    switch (tags.length) {\n      case 0:\n        return CONSTANT_TAG;\n\n      case 1:\n        return tags[0];\n\n      default:\n        let tag = new MonomorphicTagImpl(2\n        /* Combinator */\n        );\n        tag.subtag = tags;\n        return tag;\n    }\n  }\n\n  [COMPUTE]() {\n    let {\n      lastChecked\n    } = this;\n\n    if (this.isUpdating === true) {\n      if (DEBUG && !allowsCycles(this)) {\n        throw new Error('Cycles in tags are not allowed');\n      }\n\n      this.lastChecked = ++$REVISION;\n    } else if (lastChecked !== $REVISION) {\n      this.isUpdating = true;\n      this.lastChecked = $REVISION;\n\n      try {\n        let {\n          subtag,\n          revision\n        } = this;\n\n        if (subtag !== null) {\n          if (Array.isArray(subtag)) {\n            for (let i = 0; i < subtag.length; i++) {\n              let value = subtag[i][COMPUTE]();\n              revision = Math.max(value, revision);\n            }\n          } else {\n            let subtagValue = subtag[COMPUTE]();\n\n            if (subtagValue === this.subtagBufferCache) {\n              revision = Math.max(revision, this.lastValue);\n            } else {\n              // Clear the temporary buffer cache\n              this.subtagBufferCache = null;\n              revision = Math.max(revision, subtagValue);\n            }\n          }\n        }\n\n        this.lastValue = revision;\n      } finally {\n        this.isUpdating = false;\n      }\n    }\n\n    return this.lastValue;\n  }\n\n  static updateTag(_tag, _subtag) {\n    if (DEBUG && _tag[TYPE] !== 1\n    /* Updatable */\n    ) {\n        throw new Error('Attempted to update a tag that was not updatable');\n      } // TODO: TS 3.7 should allow us to do this via assertion\n\n\n    let tag = _tag;\n    let subtag = _subtag;\n\n    if (subtag === CONSTANT_TAG) {\n      tag.subtag = null;\n    } else {\n      // There are two different possibilities when updating a subtag:\n      //\n      // 1. subtag[COMPUTE]() <= tag[COMPUTE]();\n      // 2. subtag[COMPUTE]() > tag[COMPUTE]();\n      //\n      // The first possibility is completely fine within our caching model, but\n      // the second possibility presents a problem. If the parent tag has\n      // already been read, then it's value is cached and will not update to\n      // reflect the subtag's greater value. Next time the cache is busted, the\n      // subtag's value _will_ be read, and it's value will be _greater_ than\n      // the saved snapshot of the parent, causing the resulting calculation to\n      // be rerun erroneously.\n      //\n      // In order to prevent this, when we first update to a new subtag we store\n      // its computed value, and then check against that computed value on\n      // subsequent updates. If its value hasn't changed, then we return the\n      // parent's previous value. Once the subtag changes for the first time,\n      // we clear the cache and everything is finally in sync with the parent.\n      tag.subtagBufferCache = subtag[COMPUTE]();\n      tag.subtag = subtag;\n    }\n  }\n\n  static dirtyTag(tag, disableConsumptionAssertion) {\n    if (DEBUG && !(tag[TYPE] === 1\n    /* Updatable */\n    || tag[TYPE] === 0\n    /* Dirtyable */\n    )) {\n      throw new Error('Attempted to dirty a tag that was not dirtyable');\n    }\n\n    if (DEBUG && disableConsumptionAssertion !== true) {\n      // Usually by this point, we've already asserted with better error information,\n      // but this is our last line of defense.\n      unwrap(assertTagNotConsumed)(tag);\n    }\n\n    tag.revision = ++$REVISION;\n    scheduleRevalidate();\n  }\n\n}\n\nconst DIRTY_TAG = MonomorphicTagImpl.dirtyTag;\nconst UPDATE_TAG = MonomorphicTagImpl.updateTag; //////////\n\nfunction createTag() {\n  return new MonomorphicTagImpl(0\n  /* Dirtyable */\n  );\n}\n\nfunction createUpdatableTag() {\n  return new MonomorphicTagImpl(1\n  /* Updatable */\n  );\n} //////////\n\n\nconst CONSTANT_TAG = new MonomorphicTagImpl(3\n/* Constant */\n);\n\nfunction isConstTag(tag) {\n  return tag === CONSTANT_TAG;\n} //////////\n\n\nclass VolatileTag {\n  [COMPUTE]() {\n    return VOLATILE;\n  }\n\n}\n\nconst VOLATILE_TAG = new VolatileTag(); //////////\n\nclass CurrentTag {\n  [COMPUTE]() {\n    return $REVISION;\n  }\n\n}\n\nconst CURRENT_TAG = new CurrentTag(); //////////\n\nconst combine = MonomorphicTagImpl.combine; // Warm\n\nlet tag1 = createUpdatableTag();\nlet tag2 = createUpdatableTag();\nlet tag3 = createUpdatableTag();\nvalueForTag(tag1);\nDIRTY_TAG(tag1);\nvalueForTag(tag1);\nUPDATE_TAG(tag1, combine([tag2, tag3]));\nvalueForTag(tag1);\nDIRTY_TAG(tag2);\nvalueForTag(tag1);\nDIRTY_TAG(tag3);\nvalueForTag(tag1);\nUPDATE_TAG(tag1, tag3);\nvalueForTag(tag1);\nDIRTY_TAG(tag3);\nvalueForTag(tag1);\n\nfunction isObjectLike(u) {\n  return typeof u === 'object' && u !== null || typeof u === 'function';\n}\n\nconst TRACKED_TAGS = new WeakMap();\n\nfunction dirtyTagFor(obj, key, meta) {\n  if (DEBUG && !isObjectLike(obj)) {\n    throw new Error(`BUG: Can't update a tag for a primitive`);\n  }\n\n  let tags = meta === undefined ? TRACKED_TAGS.get(obj) : meta; // No tags have been setup for this object yet, return\n\n  if (tags === undefined) return; // Dirty the tag for the specific property if it exists\n\n  let propertyTag = tags.get(key);\n\n  if (propertyTag !== undefined) {\n    if (DEBUG) {\n      unwrap(assertTagNotConsumed)(propertyTag, obj, key);\n    }\n\n    DIRTY_TAG(propertyTag, true);\n  }\n}\n\nfunction tagMetaFor(obj) {\n  let tags = TRACKED_TAGS.get(obj);\n\n  if (tags === undefined) {\n    tags = new Map();\n    TRACKED_TAGS.set(obj, tags);\n  }\n\n  return tags;\n}\n\nfunction tagFor(obj, key, meta) {\n  let tags = meta === undefined ? tagMetaFor(obj) : meta;\n  let tag = tags.get(key);\n\n  if (tag === undefined) {\n    tag = createUpdatableTag();\n    tags.set(key, tag);\n  }\n\n  return tag;\n}\n/**\n * An object that that tracks @tracked properties that were consumed.\n */\n\n\nclass Tracker {\n  constructor() {\n    this.tags = new Set();\n    this.last = null;\n  }\n\n  add(tag) {\n    if (tag === CONSTANT_TAG) return;\n    this.tags.add(tag);\n\n    if (DEBUG) {\n      unwrap(markTagAsConsumed)(tag);\n    }\n\n    this.last = tag;\n  }\n\n  combine() {\n    let {\n      tags\n    } = this;\n\n    if (tags.size === 0) {\n      return CONSTANT_TAG;\n    } else if (tags.size === 1) {\n      return this.last;\n    } else {\n      let tagsArr = [];\n      tags.forEach(tag => tagsArr.push(tag));\n      return combine(tagsArr);\n    }\n  }\n\n}\n/**\n * Whenever a tracked computed property is entered, the current tracker is\n * saved off and a new tracker is replaced.\n *\n * Any tracked properties consumed are added to the current tracker.\n *\n * When a tracked computed property is exited, the tracker's tags are\n * combined and added to the parent tracker.\n *\n * The consequence is that each tracked computed property has a tag\n * that corresponds to the tracked properties consumed inside of\n * itself, including child tracked computed properties.\n */\n\n\nlet CURRENT_TRACKER = null;\nconst OPEN_TRACK_FRAMES = [];\n\nfunction beginTrackFrame(debuggingContext) {\n  OPEN_TRACK_FRAMES.push(CURRENT_TRACKER);\n  CURRENT_TRACKER = new Tracker();\n\n  if (DEBUG) {\n    unwrap(beginTrackingTransaction)(debuggingContext);\n  }\n}\n\nfunction endTrackFrame() {\n  let current = CURRENT_TRACKER;\n\n  if (DEBUG) {\n    if (OPEN_TRACK_FRAMES.length === 0) {\n      throw new Error('attempted to close a tracking frame, but one was not open');\n    }\n\n    unwrap(endTrackingTransaction)();\n  }\n\n  CURRENT_TRACKER = OPEN_TRACK_FRAMES.pop() || null;\n  return unwrap(current).combine();\n}\n\nfunction beginUntrackFrame() {\n  OPEN_TRACK_FRAMES.push(CURRENT_TRACKER);\n  CURRENT_TRACKER = null;\n}\n\nfunction endUntrackFrame() {\n  if (DEBUG && OPEN_TRACK_FRAMES.length === 0) {\n    throw new Error('attempted to close a tracking frame, but one was not open');\n  }\n\n  CURRENT_TRACKER = OPEN_TRACK_FRAMES.pop() || null;\n} // This function is only for handling errors and resetting to a valid state\n\n\nfunction resetTracking() {\n  while (OPEN_TRACK_FRAMES.length > 0) {\n    OPEN_TRACK_FRAMES.pop();\n  }\n\n  CURRENT_TRACKER = null;\n\n  if (DEBUG) {\n    return unwrap(resetTrackingTransaction)();\n  }\n}\n\nfunction isTracking() {\n  return CURRENT_TRACKER !== null;\n}\n\nfunction consumeTag(tag) {\n  if (CURRENT_TRACKER !== null) {\n    CURRENT_TRACKER.add(tag);\n  }\n} //////////\n\n\nconst FN = symbol('FN');\nconst LAST_VALUE = symbol('LAST_VALUE');\nconst TAG = symbol('TAG');\nconst SNAPSHOT = symbol('SNAPSHOT');\nconst DEBUG_LABEL = symbol('DEBUG_LABEL');\n\nfunction createCache(fn, debuggingLabel) {\n  if (DEBUG && !(typeof fn === 'function')) {\n    throw new Error(`createCache() must be passed a function as its first parameter. Called with: ${String(fn)}`);\n  }\n\n  let cache = {\n    [FN]: fn,\n    [LAST_VALUE]: undefined,\n    [TAG]: undefined,\n    [SNAPSHOT]: -1\n  };\n\n  if (DEBUG) {\n    cache[DEBUG_LABEL] = debuggingLabel;\n  }\n\n  return cache;\n}\n\nfunction getValue(cache) {\n  assertCache(cache, 'getValue');\n  let fn = cache[FN];\n  let tag = cache[TAG];\n  let snapshot = cache[SNAPSHOT];\n\n  if (tag === undefined || !validateTag(tag, snapshot)) {\n    beginTrackFrame();\n\n    try {\n      cache[LAST_VALUE] = fn();\n    } finally {\n      tag = endTrackFrame();\n      cache[TAG] = tag;\n      cache[SNAPSHOT] = valueForTag(tag);\n      consumeTag(tag);\n    }\n  } else {\n    consumeTag(tag);\n  }\n\n  return cache[LAST_VALUE];\n}\n\nfunction isConst(cache) {\n  assertCache(cache, 'isConst');\n  let tag = cache[TAG];\n  assertTag(tag, cache);\n  return isConstTag(tag);\n}\n\nfunction assertCache(value, fnName) {\n  if (DEBUG && !(typeof value === 'object' && value !== null && FN in value)) {\n    throw new Error(`${fnName}() can only be used on an instance of a cache created with createCache(). Called with: ${String(value)}`);\n  }\n} // replace this with `expect` when we can\n\n\nfunction assertTag(tag, cache) {\n  if (DEBUG && tag === undefined) {\n    throw new Error(`isConst() can only be used on a cache once getValue() has been called at least once. Called with cache function:\\n\\n${String(cache[FN])}`);\n  }\n} //////////\n// Legacy tracking APIs\n// track() shouldn't be necessary at all in the VM once the autotracking\n// refactors are merged, and we should generally be moving away from it. It may\n// be necessary in Ember for a while longer, but I think we'll be able to drop\n// it in favor of cache sooner rather than later.\n\n\nfunction track(callback, debugLabel) {\n  beginTrackFrame(debugLabel);\n  let tag;\n\n  try {\n    callback();\n  } finally {\n    tag = endTrackFrame();\n  }\n\n  return tag;\n} // untrack() is currently mainly used to handle places that were previously not\n// tracked, and that tracking now would cause backtracking rerender assertions.\n// I think once we move everyone forward onto modern APIs, we'll probably be\n// able to remove it, but I'm not sure yet.\n\n\nfunction untrack(callback) {\n  beginUntrackFrame();\n\n  try {\n    return callback();\n  } finally {\n    endUntrackFrame();\n  }\n}\n\nfunction trackedData(key, initializer) {\n  let values = new WeakMap();\n  let hasInitializer = typeof initializer === 'function';\n\n  function getter(self) {\n    consumeTag(tagFor(self, key));\n    let value; // If the field has never been initialized, we should initialize it\n\n    if (hasInitializer && !values.has(self)) {\n      value = initializer.call(self);\n      values.set(self, value);\n    } else {\n      value = values.get(self);\n    }\n\n    return value;\n  }\n\n  function setter(self, value) {\n    dirtyTagFor(self, key);\n    values.set(self, value);\n  }\n\n  return {\n    getter,\n    setter\n  };\n}\n\nconst GLIMMER_VALIDATOR_REGISTRATION = symbolFor('GLIMMER_VALIDATOR_REGISTRATION');\nconst globalObj = getGlobal();\n\nif (globalObj[GLIMMER_VALIDATOR_REGISTRATION] === true) {\n  throw new Error('The `@glimmer/validator` library has been included twice in this application. It could be different versions of the package, or the same version included twice by mistake. `@glimmer/validator` depends on having a single copy of the package in use at any time in an application, even if they are the same version. You must dedupe your build to remove the duplicate packages in order to prevent this error.');\n}\n\nglobalObj[GLIMMER_VALIDATOR_REGISTRATION] = true;\nexport { ALLOW_CYCLES, bump, combine, COMPUTE, CONSTANT_TAG, CONSTANT, createTag, createUpdatableTag, CurrentTag, CURRENT_TAG, DIRTY_TAG as dirtyTag, INITIAL, isConstTag, UPDATE_TAG as updateTag, validateTag, valueForTag, VolatileTag, VOLATILE_TAG, VOLATILE, dirtyTagFor, tagFor, tagMetaFor, beginTrackFrame, endTrackFrame, beginUntrackFrame, endUntrackFrame, resetTracking, consumeTag, isTracking, track, untrack, createCache, isConst, getValue, trackedData, logTrackingStack, setTrackingTransactionEnv, runInTrackingTransaction, beginTrackingTransaction, endTrackingTransaction, deprecateMutationsInTrackingTransaction };","/* This file is generated by build/debug.js */\nfunction isMachineOp(value) {\n  return value >= 0 && value <= 15;\n}\n\nfunction isOp(value) {\n  return value >= 16;\n}\n/**\n * Registers\n *\n * For the most part, these follows MIPS naming conventions, however the\n * register numbers are different.\n */\n// $0 or $pc (program counter): pointer into `program` for the next insturction; -1 means exit\n\n\nconst $pc = 0; // $1 or $ra (return address): pointer into `program` for the return\n\nconst $ra = 1; // $2 or $fp (frame pointer): pointer into the `evalStack` for the base of the stack\n\nconst $fp = 2; // $3 or $sp (stack pointer): pointer into the `evalStack` for the top of the stack\n\nconst $sp = 3; // $4-$5 or $s0-$s1 (saved): callee saved general-purpose registers\n\nconst $s0 = 4;\nconst $s1 = 5; // $6-$7 or $t0-$t1 (temporaries): caller saved general-purpose registers\n\nconst $t0 = 6;\nconst $t1 = 7; // $8 or $v0 (return value)\n\nconst $v0 = 8;\n\nfunction isLowLevelRegister(register) {\n  return register <= $sp;\n}\n\nvar SavedRegister;\n\n(function (SavedRegister) {\n  SavedRegister[SavedRegister[\"s0\"] = 4] = \"s0\";\n  SavedRegister[SavedRegister[\"s1\"] = 5] = \"s1\";\n})(SavedRegister || (SavedRegister = {}));\n\nvar TemporaryRegister;\n\n(function (TemporaryRegister) {\n  TemporaryRegister[TemporaryRegister[\"t0\"] = 6] = \"t0\";\n  TemporaryRegister[TemporaryRegister[\"t1\"] = 7] = \"t1\";\n})(TemporaryRegister || (TemporaryRegister = {}));\n\nexport { isMachineOp, isOp, SavedRegister, TemporaryRegister, isLowLevelRegister, $pc, $fp, $ra, $sp, $s0, $s1, $t0, $t1, $v0 };","function is(variant) {\n  return function (value) {\n    return Array.isArray(value) && value[0] === variant;\n  };\n} // Statements\n\n\nconst isFlushElement = is(12\n/* FlushElement */\n);\n\nfunction isAttribute(val) {\n  return val[0] === 14\n  /* StaticAttr */\n  || val[0] === 15\n  /* DynamicAttr */\n  || val[0] === 22\n  /* TrustingDynamicAttr */\n  || val[0] === 16\n  /* ComponentAttr */\n  || val[0] === 24\n  /* StaticComponentAttr */\n  || val[0] === 23\n  /* TrustingComponentAttr */\n  || val[0] === 17\n  /* AttrSplat */\n  || val[0] === 4\n  /* Modifier */\n  ;\n}\n\nfunction isArgument(val) {\n  return val[0] === 21\n  /* StaticArg */\n  || val[0] === 20\n  /* DynamicArg */\n  ;\n}\n\nfunction isHelper(expr) {\n  return Array.isArray(expr) && expr[0] === 30\n  /* Call */\n  ;\n} // Expressions\n\n\nconst isGet = is(32\n/* GetSymbol */\n);\nexport { is, isFlushElement, isAttribute, isArgument, isHelper, isGet };","const EMPTY_ATTRS = [];\n\nfunction indexOfAttribute(attributes, namespaceURI, localName) {\n  for (let i = 0; i < attributes.length; i++) {\n    const attr = attributes[i];\n\n    if (attr.namespaceURI === namespaceURI && attr.localName === localName) {\n      return i;\n    }\n  }\n\n  return -1;\n}\n\nfunction adjustAttrName(namespaceURI, localName) {\n  return namespaceURI === \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  ? localName.toLowerCase() : localName;\n}\n\nfunction getAttribute(attributes, namespaceURI, localName) {\n  const index = indexOfAttribute(attributes, namespaceURI, localName);\n  return index === -1 ? null : attributes[index].value;\n}\n\nfunction removeAttribute(attributes, namespaceURI, localName) {\n  const index = indexOfAttribute(attributes, namespaceURI, localName);\n\n  if (index !== -1) {\n    attributes.splice(index, 1);\n  }\n} // https://dom.spec.whatwg.org/#dom-element-setattributens\n\n\nfunction setAttribute(element, namespaceURI, prefix, localName, value) {\n  if (typeof value !== 'string') {\n    value = '' + value;\n  }\n\n  let {\n    attributes\n  } = element;\n\n  if (attributes === EMPTY_ATTRS) {\n    attributes = element.attributes = [];\n  } else {\n    const index = indexOfAttribute(attributes, namespaceURI, localName);\n\n    if (index !== -1) {\n      attributes[index].value = value;\n      return;\n    }\n  }\n\n  attributes.push({\n    localName,\n    name: prefix === null ? localName : prefix + ':' + localName,\n    namespaceURI,\n    prefix,\n    specified: true,\n    value\n  });\n}\n\nclass ChildNodes {\n  constructor(node) {\n    this.node = node;\n    this.stale = true;\n    this._length = 0;\n  }\n\n  get length() {\n    if (this.stale) {\n      this.stale = false;\n      let len = 0;\n      let child = this.node.firstChild;\n\n      for (; child !== null; len++) {\n        this[len] = child;\n        child = child.nextSibling;\n      }\n\n      const oldLen = this._length;\n      this._length = len;\n\n      for (; len < oldLen; len++) {\n        delete this[len];\n      }\n    }\n\n    return this._length;\n  }\n\n  item(index) {\n    return index < this.length ? this[index] : null;\n  }\n\n}\n\nfunction cloneNode(node, deep) {\n  const clone = nodeFrom(node);\n\n  if (deep) {\n    let child = node.firstChild;\n    let nextChild = child;\n\n    while (child !== null) {\n      nextChild = child.nextSibling;\n      clone.appendChild(child.cloneNode(true));\n      child = nextChild;\n    }\n  }\n\n  return clone;\n}\n\nfunction nodeFrom(node) {\n  let namespaceURI;\n\n  if (node.nodeType === 1\n  /* ELEMENT_NODE */\n  ) {\n      namespaceURI = node.namespaceURI;\n    }\n\n  const clone = new SimpleNodeImpl(node.ownerDocument, node.nodeType, node.nodeName, node.nodeValue, namespaceURI);\n\n  if (node.nodeType === 1\n  /* ELEMENT_NODE */\n  ) {\n      clone.attributes = copyAttrs(node.attributes);\n    }\n\n  return clone;\n}\n\nfunction copyAttrs(attrs) {\n  if (attrs === EMPTY_ATTRS) {\n    return EMPTY_ATTRS;\n  }\n\n  const copy = [];\n\n  for (let i = 0; i < attrs.length; i++) {\n    const attr = attrs[i];\n    copy.push({\n      localName: attr.localName,\n      name: attr.name,\n      namespaceURI: attr.namespaceURI,\n      prefix: attr.prefix,\n      specified: true,\n      value: attr.value\n    });\n  }\n\n  return copy;\n}\n\nfunction insertBefore(parentNode, newChild, refChild) {\n  invalidate(parentNode);\n  insertBetween(parentNode, newChild, refChild === null ? parentNode.lastChild : refChild.previousSibling, refChild);\n}\n\nfunction removeChild(parentNode, oldChild) {\n  invalidate(parentNode);\n  removeBetween(parentNode, oldChild, oldChild.previousSibling, oldChild.nextSibling);\n}\n\nfunction invalidate(parentNode) {\n  const childNodes = parentNode._childNodes;\n\n  if (childNodes !== undefined) {\n    childNodes.stale = true;\n  }\n}\n\nfunction insertBetween(parentNode, newChild, previousSibling, nextSibling) {\n  if (newChild.nodeType === 11\n  /* DOCUMENT_FRAGMENT_NODE */\n  ) {\n      insertFragment(newChild, parentNode, previousSibling, nextSibling);\n      return;\n    }\n\n  if (newChild.parentNode !== null) {\n    removeChild(newChild.parentNode, newChild);\n  }\n\n  newChild.parentNode = parentNode;\n  newChild.previousSibling = previousSibling;\n  newChild.nextSibling = nextSibling;\n\n  if (previousSibling === null) {\n    parentNode.firstChild = newChild;\n  } else {\n    previousSibling.nextSibling = newChild;\n  }\n\n  if (nextSibling === null) {\n    parentNode.lastChild = newChild;\n  } else {\n    nextSibling.previousSibling = newChild;\n  }\n}\n\nfunction removeBetween(parentNode, oldChild, previousSibling, nextSibling) {\n  oldChild.parentNode = null;\n  oldChild.previousSibling = null;\n  oldChild.nextSibling = null;\n\n  if (previousSibling === null) {\n    parentNode.firstChild = nextSibling;\n  } else {\n    previousSibling.nextSibling = nextSibling;\n  }\n\n  if (nextSibling === null) {\n    parentNode.lastChild = previousSibling;\n  } else {\n    nextSibling.previousSibling = previousSibling;\n  }\n}\n\nfunction insertFragment(fragment, parentNode, previousSibling, nextSibling) {\n  const firstChild = fragment.firstChild;\n\n  if (firstChild === null) {\n    return;\n  }\n\n  fragment.firstChild = null;\n  fragment.lastChild = null;\n  let lastChild = firstChild;\n  let newChild = firstChild;\n  firstChild.previousSibling = previousSibling;\n\n  if (previousSibling === null) {\n    parentNode.firstChild = firstChild;\n  } else {\n    previousSibling.nextSibling = firstChild;\n  }\n\n  while (newChild !== null) {\n    newChild.parentNode = parentNode;\n    lastChild = newChild;\n    newChild = newChild.nextSibling;\n  }\n\n  lastChild.nextSibling = nextSibling;\n\n  if (nextSibling === null) {\n    parentNode.lastChild = lastChild;\n  } else {\n    nextSibling.previousSibling = lastChild;\n  }\n}\n\nfunction parseQualifiedName(qualifiedName) {\n  let localName = qualifiedName;\n  let prefix = null;\n  const i = qualifiedName.indexOf(':');\n\n  if (i !== -1) {\n    prefix = qualifiedName.slice(0, i);\n    localName = qualifiedName.slice(i + 1);\n  }\n\n  return [prefix, localName];\n}\n\nclass SimpleNodeImpl {\n  constructor(ownerDocument, nodeType, nodeName, nodeValue, namespaceURI) {\n    this.ownerDocument = ownerDocument;\n    this.nodeType = nodeType;\n    this.nodeName = nodeName;\n    this.nodeValue = nodeValue;\n    this.namespaceURI = namespaceURI;\n    this.parentNode = null;\n    this.previousSibling = null;\n    this.nextSibling = null;\n    this.firstChild = null;\n    this.lastChild = null;\n    this.attributes = EMPTY_ATTRS;\n    /**\n     * @internal\n     */\n\n    this._childNodes = undefined;\n  }\n\n  get tagName() {\n    return this.nodeName;\n  }\n\n  get childNodes() {\n    let children = this._childNodes;\n\n    if (children === undefined) {\n      children = this._childNodes = new ChildNodes(this);\n    }\n\n    return children;\n  }\n\n  cloneNode(deep) {\n    return cloneNode(this, deep === true);\n  }\n\n  appendChild(newChild) {\n    insertBefore(this, newChild, null);\n    return newChild;\n  }\n\n  insertBefore(newChild, refChild) {\n    insertBefore(this, newChild, refChild);\n    return newChild;\n  }\n\n  removeChild(oldChild) {\n    removeChild(this, oldChild);\n    return oldChild;\n  }\n\n  insertAdjacentHTML(position, html) {\n    const raw = new SimpleNodeImpl(this.ownerDocument, -1\n    /* RAW_NODE */\n    , '#raw', html, void 0);\n    let parentNode;\n    let nextSibling;\n\n    switch (position) {\n      case 'beforebegin':\n        parentNode = this.parentNode;\n        nextSibling = this;\n        break;\n\n      case 'afterbegin':\n        parentNode = this;\n        nextSibling = this.firstChild;\n        break;\n\n      case 'beforeend':\n        parentNode = this;\n        nextSibling = null;\n        break;\n\n      case 'afterend':\n        parentNode = this.parentNode;\n        nextSibling = this.nextSibling;\n        break;\n\n      default:\n        throw new Error('invalid position');\n    }\n\n    if (parentNode === null) {\n      throw new Error(`${position} requires a parentNode`);\n    }\n\n    insertBefore(parentNode, raw, nextSibling);\n  }\n\n  getAttribute(name) {\n    const localName = adjustAttrName(this.namespaceURI, name);\n    return getAttribute(this.attributes, null, localName);\n  }\n\n  getAttributeNS(namespaceURI, localName) {\n    return getAttribute(this.attributes, namespaceURI, localName);\n  }\n\n  setAttribute(name, value) {\n    const localName = adjustAttrName(this.namespaceURI, name);\n    setAttribute(this, null, null, localName, value);\n  }\n\n  setAttributeNS(namespaceURI, qualifiedName, value) {\n    const [prefix, localName] = parseQualifiedName(qualifiedName);\n    setAttribute(this, namespaceURI, prefix, localName, value);\n  }\n\n  removeAttribute(name) {\n    const localName = adjustAttrName(this.namespaceURI, name);\n    removeAttribute(this.attributes, null, localName);\n  }\n\n  removeAttributeNS(namespaceURI, localName) {\n    removeAttribute(this.attributes, namespaceURI, localName);\n  }\n\n  get doctype() {\n    return this.firstChild;\n  }\n\n  get documentElement() {\n    return this.lastChild;\n  }\n\n  get head() {\n    return this.documentElement.firstChild;\n  }\n\n  get body() {\n    return this.documentElement.lastChild;\n  }\n\n  createElement(name) {\n    return new SimpleNodeImpl(this, 1\n    /* ELEMENT_NODE */\n    , name.toUpperCase(), null, \"http://www.w3.org/1999/xhtml\"\n    /* HTML */\n    );\n  }\n\n  createElementNS(namespace, qualifiedName) {\n    // Node name is case-preserving in XML contexts, but returns canonical uppercase form in HTML contexts\n    // https://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core.html#ID-104682815\n    const nodeName = namespace === \"http://www.w3.org/1999/xhtml\"\n    /* HTML */\n    ? qualifiedName.toUpperCase() : qualifiedName; // we don't care to parse the qualified name because we only support HTML documents\n    // which don't support prefixed elements\n\n    return new SimpleNodeImpl(this, 1\n    /* ELEMENT_NODE */\n    , nodeName, null, namespace);\n  }\n\n  createTextNode(text) {\n    return new SimpleNodeImpl(this, 3\n    /* TEXT_NODE */\n    , '#text', text, void 0);\n  }\n\n  createComment(text) {\n    return new SimpleNodeImpl(this, 8\n    /* COMMENT_NODE */\n    , '#comment', text, void 0);\n  }\n  /**\n   * Backwards compat\n   * @deprecated\n   */\n\n\n  createRawHTMLSection(text) {\n    return new SimpleNodeImpl(this, -1\n    /* RAW_NODE */\n    , '#raw', text, void 0);\n  }\n\n  createDocumentFragment() {\n    return new SimpleNodeImpl(this, 11\n    /* DOCUMENT_FRAGMENT_NODE */\n    , '#document-fragment', null, void 0);\n  }\n\n}\n\nfunction createHTMLDocument() {\n  // dom.d.ts types ownerDocument as Document but for a document ownerDocument is null\n  const document = new SimpleNodeImpl(null, 9\n  /* DOCUMENT_NODE */\n  , '#document', null, \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  );\n  const doctype = new SimpleNodeImpl(document, 10\n  /* DOCUMENT_TYPE_NODE */\n  , 'html', null, \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  );\n  const html = new SimpleNodeImpl(document, 1\n  /* ELEMENT_NODE */\n  , 'HTML', null, \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  );\n  const head = new SimpleNodeImpl(document, 1\n  /* ELEMENT_NODE */\n  , 'HEAD', null, \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  );\n  const body = new SimpleNodeImpl(document, 1\n  /* ELEMENT_NODE */\n  , 'BODY', null, \"http://www.w3.org/1999/xhtml\"\n  /* HTML */\n  );\n  html.appendChild(head);\n  html.appendChild(body);\n  document.appendChild(doctype);\n  document.appendChild(html);\n  return document;\n}\n\nexport default createHTMLDocument;","const SET_TIMEOUT = setTimeout;\nconst NOOP = () => { };\nfunction buildNext(flush) {\n    // Using \"promises first\" here to:\n    //\n    // 1) Ensure more consistent experience on browsers that\n    //    have differently queued microtasks (separate queues for\n    //    MutationObserver vs Promises).\n    // 2) Ensure better debugging experiences (it shows up in Chrome\n    //    call stack as \"Promise.then (async)\") which is more consistent\n    //    with user expectations\n    //\n    // When Promise is unavailable use MutationObserver (mostly so that we\n    // still get microtasks on IE11), and when neither MutationObserver and\n    // Promise are present use a plain old setTimeout.\n    if (typeof Promise === 'function') {\n        const autorunPromise = Promise.resolve();\n        return () => autorunPromise.then(flush);\n    }\n    else if (typeof MutationObserver === 'function') {\n        let iterations = 0;\n        let observer = new MutationObserver(flush);\n        let node = document.createTextNode('');\n        observer.observe(node, { characterData: true });\n        return () => {\n            iterations = ++iterations % 2;\n            node.data = '' + iterations;\n            return iterations;\n        };\n    }\n    else {\n        return () => SET_TIMEOUT(flush, 0);\n    }\n}\nfunction buildPlatform(flush) {\n    let clearNext = NOOP;\n    return {\n        setTimeout(fn, ms) {\n            return setTimeout(fn, ms);\n        },\n        clearTimeout(timerId) {\n            return clearTimeout(timerId);\n        },\n        now() {\n            return Date.now();\n        },\n        next: buildNext(flush),\n        clearNext,\n    };\n}\n\nconst NUMBER = /\\d+/;\nconst TIMERS_OFFSET = 6;\nfunction isCoercableNumber(suspect) {\n    let type = typeof suspect;\n    return type === 'number' && suspect === suspect || type === 'string' && NUMBER.test(suspect);\n}\nfunction getOnError(options) {\n    return options.onError || (options.onErrorTarget && options.onErrorTarget[options.onErrorMethod]);\n}\nfunction findItem(target, method, collection) {\n    let index = -1;\n    for (let i = 0, l = collection.length; i < l; i += 4) {\n        if (collection[i] === target && collection[i + 1] === method) {\n            index = i;\n            break;\n        }\n    }\n    return index;\n}\nfunction findTimerItem(target, method, collection) {\n    let index = -1;\n    for (let i = 2, l = collection.length; i < l; i += 6) {\n        if (collection[i] === target && collection[i + 1] === method) {\n            index = i - 2;\n            break;\n        }\n    }\n    return index;\n}\nfunction getQueueItems(items, queueItemLength, queueItemPositionOffset = 0) {\n    let queueItems = [];\n    for (let i = 0; i < items.length; i += queueItemLength) {\n        let maybeError = items[i + 3 /* stack */ + queueItemPositionOffset];\n        let queueItem = {\n            target: items[i + 0 /* target */ + queueItemPositionOffset],\n            method: items[i + 1 /* method */ + queueItemPositionOffset],\n            args: items[i + 2 /* args */ + queueItemPositionOffset],\n            stack: maybeError !== undefined && 'stack' in maybeError ? maybeError.stack : ''\n        };\n        queueItems.push(queueItem);\n    }\n    return queueItems;\n}\n\nfunction binarySearch(time, timers) {\n    let start = 0;\n    let end = timers.length - TIMERS_OFFSET;\n    let middle;\n    let l;\n    while (start < end) {\n        // since timers is an array of pairs 'l' will always\n        // be an integer\n        l = (end - start) / TIMERS_OFFSET;\n        // compensate for the index in case even number\n        // of pairs inside timers\n        middle = start + l - (l % TIMERS_OFFSET);\n        if (time >= timers[middle]) {\n            start = middle + TIMERS_OFFSET;\n        }\n        else {\n            end = middle;\n        }\n    }\n    return (time >= timers[start]) ? start + TIMERS_OFFSET : start;\n}\n\nconst QUEUE_ITEM_LENGTH = 4;\nclass Queue {\n    constructor(name, options = {}, globalOptions = {}) {\n        this._queueBeingFlushed = [];\n        this.targetQueues = new Map();\n        this.index = 0;\n        this._queue = [];\n        this.name = name;\n        this.options = options;\n        this.globalOptions = globalOptions;\n    }\n    stackFor(index) {\n        if (index < this._queue.length) {\n            let entry = this._queue[index * 3 + QUEUE_ITEM_LENGTH];\n            if (entry) {\n                return entry.stack;\n            }\n            else {\n                return null;\n            }\n        }\n    }\n    flush(sync) {\n        let { before, after } = this.options;\n        let target;\n        let method;\n        let args;\n        let errorRecordedForStack;\n        this.targetQueues.clear();\n        if (this._queueBeingFlushed.length === 0) {\n            this._queueBeingFlushed = this._queue;\n            this._queue = [];\n        }\n        if (before !== undefined) {\n            before();\n        }\n        let invoke;\n        let queueItems = this._queueBeingFlushed;\n        if (queueItems.length > 0) {\n            let onError = getOnError(this.globalOptions);\n            invoke = onError ? this.invokeWithOnError : this.invoke;\n            for (let i = this.index; i < queueItems.length; i += QUEUE_ITEM_LENGTH) {\n                this.index += QUEUE_ITEM_LENGTH;\n                method = queueItems[i + 1];\n                // method could have been nullified / canceled during flush\n                if (method !== null) {\n                    //\n                    //    ** Attention intrepid developer **\n                    //\n                    //    To find out the stack of this task when it was scheduled onto\n                    //    the run loop, add the following to your app.js:\n                    //\n                    //    Ember.run.backburner.DEBUG = true; // NOTE: This slows your app, don't leave it on in production.\n                    //\n                    //    Once that is in place, when you are at a breakpoint and navigate\n                    //    here in the stack explorer, you can look at `errorRecordedForStack.stack`,\n                    //    which will be the captured stack when this job was scheduled.\n                    //\n                    //    One possible long-term solution is the following Chrome issue:\n                    //       https://bugs.chromium.org/p/chromium/issues/detail?id=332624\n                    //\n                    target = queueItems[i];\n                    args = queueItems[i + 2];\n                    errorRecordedForStack = queueItems[i + 3]; // Debugging assistance\n                    invoke(target, method, args, onError, errorRecordedForStack);\n                }\n                if (this.index !== this._queueBeingFlushed.length &&\n                    this.globalOptions.mustYield && this.globalOptions.mustYield()) {\n                    return 1 /* Pause */;\n                }\n            }\n        }\n        if (after !== undefined) {\n            after();\n        }\n        this._queueBeingFlushed.length = 0;\n        this.index = 0;\n        if (sync !== false && this._queue.length > 0) {\n            // check if new items have been added\n            this.flush(true);\n        }\n    }\n    hasWork() {\n        return this._queueBeingFlushed.length > 0 || this._queue.length > 0;\n    }\n    cancel({ target, method }) {\n        let queue = this._queue;\n        let targetQueueMap = this.targetQueues.get(target);\n        if (targetQueueMap !== undefined) {\n            targetQueueMap.delete(method);\n        }\n        let index = findItem(target, method, queue);\n        if (index > -1) {\n            queue.splice(index, QUEUE_ITEM_LENGTH);\n            return true;\n        }\n        // if not found in current queue\n        // could be in the queue that is being flushed\n        queue = this._queueBeingFlushed;\n        index = findItem(target, method, queue);\n        if (index > -1) {\n            queue[index + 1] = null;\n            return true;\n        }\n        return false;\n    }\n    push(target, method, args, stack) {\n        this._queue.push(target, method, args, stack);\n        return {\n            queue: this,\n            target,\n            method\n        };\n    }\n    pushUnique(target, method, args, stack) {\n        let localQueueMap = this.targetQueues.get(target);\n        if (localQueueMap === undefined) {\n            localQueueMap = new Map();\n            this.targetQueues.set(target, localQueueMap);\n        }\n        let index = localQueueMap.get(method);\n        if (index === undefined) {\n            let queueIndex = this._queue.push(target, method, args, stack) - QUEUE_ITEM_LENGTH;\n            localQueueMap.set(method, queueIndex);\n        }\n        else {\n            let queue = this._queue;\n            queue[index + 2] = args; // replace args\n            queue[index + 3] = stack; // replace stack\n        }\n        return {\n            queue: this,\n            target,\n            method\n        };\n    }\n    _getDebugInfo(debugEnabled) {\n        if (debugEnabled) {\n            let debugInfo = getQueueItems(this._queue, QUEUE_ITEM_LENGTH);\n            return debugInfo;\n        }\n        return undefined;\n    }\n    invoke(target, method, args /*, onError, errorRecordedForStack */) {\n        if (args === undefined) {\n            method.call(target);\n        }\n        else {\n            method.apply(target, args);\n        }\n    }\n    invokeWithOnError(target, method, args, onError, errorRecordedForStack) {\n        try {\n            if (args === undefined) {\n                method.call(target);\n            }\n            else {\n                method.apply(target, args);\n            }\n        }\n        catch (error) {\n            onError(error, errorRecordedForStack);\n        }\n    }\n}\n\nclass DeferredActionQueues {\n    constructor(queueNames = [], options) {\n        this.queues = {};\n        this.queueNameIndex = 0;\n        this.queueNames = queueNames;\n        queueNames.reduce(function (queues, queueName) {\n            queues[queueName] = new Queue(queueName, options[queueName], options);\n            return queues;\n        }, this.queues);\n    }\n    /**\n     * @method schedule\n     * @param {String} queueName\n     * @param {Any} target\n     * @param {Any} method\n     * @param {Any} args\n     * @param {Boolean} onceFlag\n     * @param {Any} stack\n     * @return queue\n     */\n    schedule(queueName, target, method, args, onceFlag, stack) {\n        let queues = this.queues;\n        let queue = queues[queueName];\n        if (queue === undefined) {\n            throw new Error(`You attempted to schedule an action in a queue (${queueName}) that doesn\\'t exist`);\n        }\n        if (method === undefined || method === null) {\n            throw new Error(`You attempted to schedule an action in a queue (${queueName}) for a method that doesn\\'t exist`);\n        }\n        this.queueNameIndex = 0;\n        if (onceFlag) {\n            return queue.pushUnique(target, method, args, stack);\n        }\n        else {\n            return queue.push(target, method, args, stack);\n        }\n    }\n    /**\n     * DeferredActionQueues.flush() calls Queue.flush()\n     *\n     * @method flush\n     * @param {Boolean} fromAutorun\n     */\n    flush(fromAutorun = false) {\n        let queue;\n        let queueName;\n        let numberOfQueues = this.queueNames.length;\n        while (this.queueNameIndex < numberOfQueues) {\n            queueName = this.queueNames[this.queueNameIndex];\n            queue = this.queues[queueName];\n            if (queue.hasWork() === false) {\n                this.queueNameIndex++;\n                if (fromAutorun && this.queueNameIndex < numberOfQueues) {\n                    return 1 /* Pause */;\n                }\n            }\n            else {\n                if (queue.flush(false /* async */) === 1 /* Pause */) {\n                    return 1 /* Pause */;\n                }\n            }\n        }\n    }\n    /**\n     * Returns debug information for the current queues.\n     *\n     * @method _getDebugInfo\n     * @param {Boolean} debugEnabled\n     * @returns {IDebugInfo | undefined}\n     */\n    _getDebugInfo(debugEnabled) {\n        if (debugEnabled) {\n            let debugInfo = {};\n            let queue;\n            let queueName;\n            let numberOfQueues = this.queueNames.length;\n            let i = 0;\n            while (i < numberOfQueues) {\n                queueName = this.queueNames[i];\n                queue = this.queues[queueName];\n                debugInfo[queueName] = queue._getDebugInfo(debugEnabled);\n                i++;\n            }\n            return debugInfo;\n        }\n        return;\n    }\n}\n\nfunction iteratorDrain (fn) {\n    let iterator = fn();\n    let result = iterator.next();\n    while (result.done === false) {\n        result.value();\n        result = iterator.next();\n    }\n}\n\nconst noop = function () { };\nconst DISABLE_SCHEDULE = Object.freeze([]);\nfunction parseArgs() {\n    let length = arguments.length;\n    let args;\n    let method;\n    let target;\n    if (length === 0) {\n    }\n    else if (length === 1) {\n        target = null;\n        method = arguments[0];\n    }\n    else {\n        let argsIndex = 2;\n        let methodOrTarget = arguments[0];\n        let methodOrArgs = arguments[1];\n        let type = typeof methodOrArgs;\n        if (type === 'function') {\n            target = methodOrTarget;\n            method = methodOrArgs;\n        }\n        else if (methodOrTarget !== null && type === 'string' && methodOrArgs in methodOrTarget) {\n            target = methodOrTarget;\n            method = target[methodOrArgs];\n        }\n        else if (typeof methodOrTarget === 'function') {\n            argsIndex = 1;\n            target = null;\n            method = methodOrTarget;\n        }\n        if (length > argsIndex) {\n            let len = length - argsIndex;\n            args = new Array(len);\n            for (let i = 0; i < len; i++) {\n                args[i] = arguments[i + argsIndex];\n            }\n        }\n    }\n    return [target, method, args];\n}\nfunction parseTimerArgs() {\n    let [target, method, args] = parseArgs(...arguments);\n    let wait = 0;\n    let length = args !== undefined ? args.length : 0;\n    if (length > 0) {\n        let last = args[length - 1];\n        if (isCoercableNumber(last)) {\n            wait = parseInt(args.pop(), 10);\n        }\n    }\n    return [target, method, args, wait];\n}\nfunction parseDebounceArgs() {\n    let target;\n    let method;\n    let isImmediate;\n    let args;\n    let wait;\n    if (arguments.length === 2) {\n        method = arguments[0];\n        wait = arguments[1];\n        target = null;\n    }\n    else {\n        [target, method, args] = parseArgs(...arguments);\n        if (args === undefined) {\n            wait = 0;\n        }\n        else {\n            wait = args.pop();\n            if (!isCoercableNumber(wait)) {\n                isImmediate = wait === true;\n                wait = args.pop();\n            }\n        }\n    }\n    wait = parseInt(wait, 10);\n    return [target, method, args, wait, isImmediate];\n}\nlet UUID = 0;\nlet beginCount = 0;\nlet endCount = 0;\nlet beginEventCount = 0;\nlet endEventCount = 0;\nlet runCount = 0;\nlet joinCount = 0;\nlet deferCount = 0;\nlet scheduleCount = 0;\nlet scheduleIterableCount = 0;\nlet deferOnceCount = 0;\nlet scheduleOnceCount = 0;\nlet setTimeoutCount = 0;\nlet laterCount = 0;\nlet throttleCount = 0;\nlet debounceCount = 0;\nlet cancelTimersCount = 0;\nlet cancelCount = 0;\nlet autorunsCreatedCount = 0;\nlet autorunsCompletedCount = 0;\nlet deferredActionQueuesCreatedCount = 0;\nlet nestedDeferredActionQueuesCreated = 0;\nclass Backburner {\n    constructor(queueNames, options) {\n        this.DEBUG = false;\n        this.currentInstance = null;\n        this.instanceStack = [];\n        this._eventCallbacks = {\n            end: [],\n            begin: []\n        };\n        this._timerTimeoutId = null;\n        this._timers = [];\n        this._autorun = false;\n        this._autorunStack = null;\n        this.queueNames = queueNames;\n        this.options = options || {};\n        if (typeof this.options.defaultQueue === 'string') {\n            this._defaultQueue = this.options.defaultQueue;\n        }\n        else {\n            this._defaultQueue = this.queueNames[0];\n        }\n        this._onBegin = this.options.onBegin || noop;\n        this._onEnd = this.options.onEnd || noop;\n        this._boundRunExpiredTimers = this._runExpiredTimers.bind(this);\n        this._boundAutorunEnd = () => {\n            autorunsCompletedCount++;\n            // if the autorun was already flushed, do nothing\n            if (this._autorun === false) {\n                return;\n            }\n            this._autorun = false;\n            this._autorunStack = null;\n            this._end(true /* fromAutorun */);\n        };\n        let builder = this.options._buildPlatform || buildPlatform;\n        this._platform = builder(this._boundAutorunEnd);\n    }\n    get counters() {\n        return {\n            begin: beginCount,\n            end: endCount,\n            events: {\n                begin: beginEventCount,\n                end: endEventCount,\n            },\n            autoruns: {\n                created: autorunsCreatedCount,\n                completed: autorunsCompletedCount,\n            },\n            run: runCount,\n            join: joinCount,\n            defer: deferCount,\n            schedule: scheduleCount,\n            scheduleIterable: scheduleIterableCount,\n            deferOnce: deferOnceCount,\n            scheduleOnce: scheduleOnceCount,\n            setTimeout: setTimeoutCount,\n            later: laterCount,\n            throttle: throttleCount,\n            debounce: debounceCount,\n            cancelTimers: cancelTimersCount,\n            cancel: cancelCount,\n            loops: {\n                total: deferredActionQueuesCreatedCount,\n                nested: nestedDeferredActionQueuesCreated,\n            },\n        };\n    }\n    get defaultQueue() {\n        return this._defaultQueue;\n    }\n    /*\n      @method begin\n      @return instantiated class DeferredActionQueues\n    */\n    begin() {\n        beginCount++;\n        let options = this.options;\n        let previousInstance = this.currentInstance;\n        let current;\n        if (this._autorun !== false) {\n            current = previousInstance;\n            this._cancelAutorun();\n        }\n        else {\n            if (previousInstance !== null) {\n                nestedDeferredActionQueuesCreated++;\n                this.instanceStack.push(previousInstance);\n            }\n            deferredActionQueuesCreatedCount++;\n            current = this.currentInstance = new DeferredActionQueues(this.queueNames, options);\n            beginEventCount++;\n            this._trigger('begin', current, previousInstance);\n        }\n        this._onBegin(current, previousInstance);\n        return current;\n    }\n    end() {\n        endCount++;\n        this._end(false);\n    }\n    on(eventName, callback) {\n        if (typeof callback !== 'function') {\n            throw new TypeError(`Callback must be a function`);\n        }\n        let callbacks = this._eventCallbacks[eventName];\n        if (callbacks !== undefined) {\n            callbacks.push(callback);\n        }\n        else {\n            throw new TypeError(`Cannot on() event ${eventName} because it does not exist`);\n        }\n    }\n    off(eventName, callback) {\n        let callbacks = this._eventCallbacks[eventName];\n        if (!eventName || callbacks === undefined) {\n            throw new TypeError(`Cannot off() event ${eventName} because it does not exist`);\n        }\n        let callbackFound = false;\n        if (callback) {\n            for (let i = 0; i < callbacks.length; i++) {\n                if (callbacks[i] === callback) {\n                    callbackFound = true;\n                    callbacks.splice(i, 1);\n                    i--;\n                }\n            }\n        }\n        if (!callbackFound) {\n            throw new TypeError(`Cannot off() callback that does not exist`);\n        }\n    }\n    run() {\n        runCount++;\n        let [target, method, args] = parseArgs(...arguments);\n        return this._run(target, method, args);\n    }\n    join() {\n        joinCount++;\n        let [target, method, args] = parseArgs(...arguments);\n        return this._join(target, method, args);\n    }\n    /**\n     * @deprecated please use schedule instead.\n     */\n    defer(queueName, target, method, ...args) {\n        deferCount++;\n        return this.schedule(queueName, target, method, ...args);\n    }\n    schedule(queueName, ..._args) {\n        scheduleCount++;\n        let [target, method, args] = parseArgs(..._args);\n        let stack = this.DEBUG ? new Error() : undefined;\n        return this._ensureInstance().schedule(queueName, target, method, args, false, stack);\n    }\n    /*\n      Defer the passed iterable of functions to run inside the specified queue.\n  \n      @method scheduleIterable\n      @param {String} queueName\n      @param {Iterable} an iterable of functions to execute\n      @return method result\n    */\n    scheduleIterable(queueName, iterable) {\n        scheduleIterableCount++;\n        let stack = this.DEBUG ? new Error() : undefined;\n        return this._ensureInstance().schedule(queueName, null, iteratorDrain, [iterable], false, stack);\n    }\n    /**\n     * @deprecated please use scheduleOnce instead.\n     */\n    deferOnce(queueName, target, method, ...args) {\n        deferOnceCount++;\n        return this.scheduleOnce(queueName, target, method, ...args);\n    }\n    scheduleOnce(queueName, ..._args) {\n        scheduleOnceCount++;\n        let [target, method, args] = parseArgs(..._args);\n        let stack = this.DEBUG ? new Error() : undefined;\n        return this._ensureInstance().schedule(queueName, target, method, args, true, stack);\n    }\n    setTimeout() {\n        setTimeoutCount++;\n        return this.later(...arguments);\n    }\n    later() {\n        laterCount++;\n        let [target, method, args, wait] = parseTimerArgs(...arguments);\n        return this._later(target, method, args, wait);\n    }\n    throttle() {\n        throttleCount++;\n        let [target, method, args, wait, isImmediate = true] = parseDebounceArgs(...arguments);\n        let index = findTimerItem(target, method, this._timers);\n        let timerId;\n        if (index === -1) {\n            timerId = this._later(target, method, isImmediate ? DISABLE_SCHEDULE : args, wait);\n            if (isImmediate) {\n                this._join(target, method, args);\n            }\n        }\n        else {\n            timerId = this._timers[index + 1];\n            let argIndex = index + 4;\n            if (this._timers[argIndex] !== DISABLE_SCHEDULE) {\n                this._timers[argIndex] = args;\n            }\n        }\n        return timerId;\n    }\n    debounce() {\n        debounceCount++;\n        let [target, method, args, wait, isImmediate = false] = parseDebounceArgs(...arguments);\n        let _timers = this._timers;\n        let index = findTimerItem(target, method, _timers);\n        let timerId;\n        if (index === -1) {\n            timerId = this._later(target, method, isImmediate ? DISABLE_SCHEDULE : args, wait);\n            if (isImmediate) {\n                this._join(target, method, args);\n            }\n        }\n        else {\n            let executeAt = this._platform.now() + wait;\n            let argIndex = index + 4;\n            if (_timers[argIndex] === DISABLE_SCHEDULE) {\n                args = DISABLE_SCHEDULE;\n            }\n            timerId = _timers[index + 1];\n            let i = binarySearch(executeAt, _timers);\n            if ((index + TIMERS_OFFSET) === i) {\n                _timers[index] = executeAt;\n                _timers[argIndex] = args;\n            }\n            else {\n                let stack = this._timers[index + 5];\n                this._timers.splice(i, 0, executeAt, timerId, target, method, args, stack);\n                this._timers.splice(index, TIMERS_OFFSET);\n            }\n            if (index === 0) {\n                this._reinstallTimerTimeout();\n            }\n        }\n        return timerId;\n    }\n    cancelTimers() {\n        cancelTimersCount++;\n        this._clearTimerTimeout();\n        this._timers = [];\n        this._cancelAutorun();\n    }\n    hasTimers() {\n        return this._timers.length > 0 || this._autorun;\n    }\n    cancel(timer) {\n        cancelCount++;\n        if (timer === null || timer === undefined) {\n            return false;\n        }\n        let timerType = typeof timer;\n        if (timerType === 'number') { // we're cancelling a setTimeout or throttle or debounce\n            return this._cancelLaterTimer(timer);\n        }\n        else if (timerType === 'object' && timer.queue && timer.method) { // we're cancelling a deferOnce\n            return timer.queue.cancel(timer);\n        }\n        return false;\n    }\n    ensureInstance() {\n        this._ensureInstance();\n    }\n    /**\n     * Returns debug information related to the current instance of Backburner\n     *\n     * @method getDebugInfo\n     * @returns {Object | undefined} Will return and Object containing debug information if\n     * the DEBUG flag is set to true on the current instance of Backburner, else undefined.\n     */\n    getDebugInfo() {\n        if (this.DEBUG) {\n            return {\n                autorun: this._autorunStack,\n                counters: this.counters,\n                timers: getQueueItems(this._timers, TIMERS_OFFSET, 2),\n                instanceStack: [this.currentInstance, ...this.instanceStack]\n                    .map((deferredActionQueue) => deferredActionQueue && deferredActionQueue._getDebugInfo(this.DEBUG))\n            };\n        }\n        return undefined;\n    }\n    _end(fromAutorun) {\n        let currentInstance = this.currentInstance;\n        let nextInstance = null;\n        if (currentInstance === null) {\n            throw new Error(`end called without begin`);\n        }\n        // Prevent double-finally bug in Safari 6.0.2 and iOS 6\n        // This bug appears to be resolved in Safari 6.0.5 and iOS 7\n        let finallyAlreadyCalled = false;\n        let result;\n        try {\n            result = currentInstance.flush(fromAutorun);\n        }\n        finally {\n            if (!finallyAlreadyCalled) {\n                finallyAlreadyCalled = true;\n                if (result === 1 /* Pause */) {\n                    const plannedNextQueue = this.queueNames[currentInstance.queueNameIndex];\n                    this._scheduleAutorun(plannedNextQueue);\n                }\n                else {\n                    this.currentInstance = null;\n                    if (this.instanceStack.length > 0) {\n                        nextInstance = this.instanceStack.pop();\n                        this.currentInstance = nextInstance;\n                    }\n                    this._trigger('end', currentInstance, nextInstance);\n                    this._onEnd(currentInstance, nextInstance);\n                }\n            }\n        }\n    }\n    _join(target, method, args) {\n        if (this.currentInstance === null) {\n            return this._run(target, method, args);\n        }\n        if (target === undefined && args === undefined) {\n            return method();\n        }\n        else {\n            return method.apply(target, args);\n        }\n    }\n    _run(target, method, args) {\n        let onError = getOnError(this.options);\n        this.begin();\n        if (onError) {\n            try {\n                return method.apply(target, args);\n            }\n            catch (error) {\n                onError(error);\n            }\n            finally {\n                this.end();\n            }\n        }\n        else {\n            try {\n                return method.apply(target, args);\n            }\n            finally {\n                this.end();\n            }\n        }\n    }\n    _cancelAutorun() {\n        if (this._autorun) {\n            this._platform.clearNext();\n            this._autorun = false;\n            this._autorunStack = null;\n        }\n    }\n    _later(target, method, args, wait) {\n        let stack = this.DEBUG ? new Error() : undefined;\n        let executeAt = this._platform.now() + wait;\n        let id = UUID++;\n        if (this._timers.length === 0) {\n            this._timers.push(executeAt, id, target, method, args, stack);\n            this._installTimerTimeout();\n        }\n        else {\n            // find position to insert\n            let i = binarySearch(executeAt, this._timers);\n            this._timers.splice(i, 0, executeAt, id, target, method, args, stack);\n            // always reinstall since it could be out of sync\n            this._reinstallTimerTimeout();\n        }\n        return id;\n    }\n    _cancelLaterTimer(timer) {\n        for (let i = 1; i < this._timers.length; i += TIMERS_OFFSET) {\n            if (this._timers[i] === timer) {\n                this._timers.splice(i - 1, TIMERS_OFFSET);\n                if (i === 1) {\n                    this._reinstallTimerTimeout();\n                }\n                return true;\n            }\n        }\n        return false;\n    }\n    /**\n     Trigger an event. Supports up to two arguments. Designed around\n     triggering transition events from one run loop instance to the\n     next, which requires an argument for the  instance and then\n     an argument for the next instance.\n  \n     @private\n     @method _trigger\n     @param {String} eventName\n     @param {any} arg1\n     @param {any} arg2\n     */\n    _trigger(eventName, arg1, arg2) {\n        let callbacks = this._eventCallbacks[eventName];\n        if (callbacks !== undefined) {\n            for (let i = 0; i < callbacks.length; i++) {\n                callbacks[i](arg1, arg2);\n            }\n        }\n    }\n    _runExpiredTimers() {\n        this._timerTimeoutId = null;\n        if (this._timers.length > 0) {\n            this.begin();\n            this._scheduleExpiredTimers();\n            this.end();\n        }\n    }\n    _scheduleExpiredTimers() {\n        let timers = this._timers;\n        let i = 0;\n        let l = timers.length;\n        let defaultQueue = this._defaultQueue;\n        let n = this._platform.now();\n        for (; i < l; i += TIMERS_OFFSET) {\n            let executeAt = timers[i];\n            if (executeAt > n) {\n                break;\n            }\n            let args = timers[i + 4];\n            if (args !== DISABLE_SCHEDULE) {\n                let target = timers[i + 2];\n                let method = timers[i + 3];\n                let stack = timers[i + 5];\n                this.currentInstance.schedule(defaultQueue, target, method, args, false, stack);\n            }\n        }\n        timers.splice(0, i);\n        this._installTimerTimeout();\n    }\n    _reinstallTimerTimeout() {\n        this._clearTimerTimeout();\n        this._installTimerTimeout();\n    }\n    _clearTimerTimeout() {\n        if (this._timerTimeoutId === null) {\n            return;\n        }\n        this._platform.clearTimeout(this._timerTimeoutId);\n        this._timerTimeoutId = null;\n    }\n    _installTimerTimeout() {\n        if (this._timers.length === 0) {\n            return;\n        }\n        let minExpiresAt = this._timers[0];\n        let n = this._platform.now();\n        let wait = Math.max(0, minExpiresAt - n);\n        this._timerTimeoutId = this._platform.setTimeout(this._boundRunExpiredTimers, wait);\n    }\n    _ensureInstance() {\n        let currentInstance = this.currentInstance;\n        if (currentInstance === null) {\n            this._autorunStack = this.DEBUG ? new Error() : undefined;\n            currentInstance = this.begin();\n            this._scheduleAutorun(this.queueNames[0]);\n        }\n        return currentInstance;\n    }\n    _scheduleAutorun(plannedNextQueue) {\n        autorunsCreatedCount++;\n        const next = this._platform.next;\n        const flush = this.options.flush;\n        if (flush) {\n            flush(plannedNextQueue, next);\n        }\n        else {\n            next();\n        }\n        this._autorun = true;\n    }\n}\nBackburner.Queue = Queue;\nBackburner.buildPlatform = buildPlatform;\nBackburner.buildNext = buildNext;\n\nexport default Backburner;\nexport { buildPlatform };\n//# sourceMappingURL=backburner.js.map","/**\n * A topologically ordered map of key/value pairs with a simple API for adding constraints.\n *\n * Edges can forward reference keys that have not been added yet (the forward reference will\n * map the key to undefined).\n */\nvar DAG = (function () {\n    function DAG() {\n        this._vertices = new Vertices();\n    }\n    /**\n     * Adds a key/value pair with dependencies on other key/value pairs.\n     *\n     * @public\n     * @param key    The key of the vertex to be added.\n     * @param value  The value of that vertex.\n     * @param before A key or array of keys of the vertices that must\n     *               be visited before this vertex.\n     * @param after  An string or array of strings with the keys of the\n     *               vertices that must be after this vertex is visited.\n     */\n    DAG.prototype.add = function (key, value, before, after) {\n        if (!key)\n            throw new Error('argument `key` is required');\n        var vertices = this._vertices;\n        var v = vertices.add(key);\n        v.val = value;\n        if (before) {\n            if (typeof before === \"string\") {\n                vertices.addEdge(v, vertices.add(before));\n            }\n            else {\n                for (var i = 0; i < before.length; i++) {\n                    vertices.addEdge(v, vertices.add(before[i]));\n                }\n            }\n        }\n        if (after) {\n            if (typeof after === \"string\") {\n                vertices.addEdge(vertices.add(after), v);\n            }\n            else {\n                for (var i = 0; i < after.length; i++) {\n                    vertices.addEdge(vertices.add(after[i]), v);\n                }\n            }\n        }\n    };\n    /**\n     * @deprecated please use add.\n     */\n    DAG.prototype.addEdges = function (key, value, before, after) {\n        this.add(key, value, before, after);\n    };\n    /**\n     * Visits key/value pairs in topological order.\n     *\n     * @public\n     * @param callback The function to be invoked with each key/value.\n     */\n    DAG.prototype.each = function (callback) {\n        this._vertices.walk(callback);\n    };\n    /**\n     * @deprecated please use each.\n     */\n    DAG.prototype.topsort = function (callback) {\n        this.each(callback);\n    };\n    return DAG;\n}());\nexport default DAG;\n/** @private */\nvar Vertices = (function () {\n    function Vertices() {\n        this.length = 0;\n        this.stack = new IntStack();\n        this.path = new IntStack();\n        this.result = new IntStack();\n    }\n    Vertices.prototype.add = function (key) {\n        if (!key)\n            throw new Error(\"missing key\");\n        var l = this.length | 0;\n        var vertex;\n        for (var i = 0; i < l; i++) {\n            vertex = this[i];\n            if (vertex.key === key)\n                return vertex;\n        }\n        this.length = l + 1;\n        return this[l] = {\n            idx: l,\n            key: key,\n            val: undefined,\n            out: false,\n            flag: false,\n            length: 0\n        };\n    };\n    Vertices.prototype.addEdge = function (v, w) {\n        this.check(v, w.key);\n        var l = w.length | 0;\n        for (var i = 0; i < l; i++) {\n            if (w[i] === v.idx)\n                return;\n        }\n        w.length = l + 1;\n        w[l] = v.idx;\n        v.out = true;\n    };\n    Vertices.prototype.walk = function (cb) {\n        this.reset();\n        for (var i = 0; i < this.length; i++) {\n            var vertex = this[i];\n            if (vertex.out)\n                continue;\n            this.visit(vertex, \"\");\n        }\n        this.each(this.result, cb);\n    };\n    Vertices.prototype.check = function (v, w) {\n        if (v.key === w) {\n            throw new Error(\"cycle detected: \" + w + \" <- \" + w);\n        }\n        // quick check\n        if (v.length === 0)\n            return;\n        // shallow check\n        for (var i = 0; i < v.length; i++) {\n            var key = this[v[i]].key;\n            if (key === w) {\n                throw new Error(\"cycle detected: \" + w + \" <- \" + v.key + \" <- \" + w);\n            }\n        }\n        // deep check\n        this.reset();\n        this.visit(v, w);\n        if (this.path.length > 0) {\n            var msg_1 = \"cycle detected: \" + w;\n            this.each(this.path, function (key) {\n                msg_1 += \" <- \" + key;\n            });\n            throw new Error(msg_1);\n        }\n    };\n    Vertices.prototype.reset = function () {\n        this.stack.length = 0;\n        this.path.length = 0;\n        this.result.length = 0;\n        for (var i = 0, l = this.length; i < l; i++) {\n            this[i].flag = false;\n        }\n    };\n    Vertices.prototype.visit = function (start, search) {\n        var _a = this, stack = _a.stack, path = _a.path, result = _a.result;\n        stack.push(start.idx);\n        while (stack.length) {\n            var index = stack.pop() | 0;\n            if (index >= 0) {\n                // enter\n                var vertex = this[index];\n                if (vertex.flag)\n                    continue;\n                vertex.flag = true;\n                path.push(index);\n                if (search === vertex.key)\n                    break;\n                // push exit\n                stack.push(~index);\n                this.pushIncoming(vertex);\n            }\n            else {\n                // exit\n                path.pop();\n                result.push(~index);\n            }\n        }\n    };\n    Vertices.prototype.pushIncoming = function (incomming) {\n        var stack = this.stack;\n        for (var i = incomming.length - 1; i >= 0; i--) {\n            var index = incomming[i];\n            if (!this[index].flag) {\n                stack.push(index);\n            }\n        }\n    };\n    Vertices.prototype.each = function (indices, cb) {\n        for (var i = 0, l = indices.length; i < l; i++) {\n            var vertex = this[indices[i]];\n            cb(vertex.key, vertex.val);\n        }\n    };\n    return Vertices;\n}());\n/** @private */\nvar IntStack = (function () {\n    function IntStack() {\n        this.length = 0;\n    }\n    IntStack.prototype.push = function (n) {\n        this[this.length++] = n | 0;\n    };\n    IntStack.prototype.pop = function () {\n        return this[--this.length] | 0;\n    };\n    return IntStack;\n}());\n","/* globals Reflect */\n\nimport { DEBUG } from '@glimmer/env';\n\nconst setPrototypeOf = Object.setPrototypeOf;\nconst getPrototypeOf = Object.getPrototypeOf;\n\nconst hasReflectConstruct = typeof Reflect === 'object' && typeof Reflect.construct === 'function';\n\nconst nativeWrapperCache = new Map();\n\n// Super minimal version of Babel's wrapNativeSuper. We only use this for\n// extending Function, for ComputedDecoratorImpl and AliasDecoratorImpl. We know\n// we will never directly create an instance of these classes so no need to\n// include `construct` code or other helpers.\nexport function wrapNativeSuper(Class) {\n  if (nativeWrapperCache.has(Class)) {\n    return nativeWrapperCache.get(Class);\n  }\n\n  function Wrapper() {}\n  Wrapper.prototype = Object.create(Class.prototype, {\n    constructor: {\n      value: Wrapper,\n      enumerable: false,\n      writable: true,\n      configurable: true,\n    },\n  });\n\n  nativeWrapperCache.set(Class, Wrapper);\n\n  return setPrototypeOf(Wrapper, Class);\n}\n\nexport function classCallCheck(instance, Constructor) {\n  if (DEBUG) {\n    if (!(instance instanceof Constructor)) {\n      throw new TypeError('Cannot call a class as a function');\n    }\n  }\n}\n\n/*\n  Overrides default `inheritsLoose` to _also_ call `Object.setPrototypeOf`.\n  This is needed so that we can use `loose` option with the\n  `@babel/plugin-transform-classes` (because we want simple assignment to the\n  prototype wherever possible) but also keep our constructor based prototypal\n  inheritance working properly\n*/\nexport function inheritsLoose(subClass, superClass) {\n  if (DEBUG) {\n    if (typeof superClass !== 'function' && superClass !== null) {\n      throw new TypeError('Super expression must either be null or a function');\n    }\n  }\n  subClass.prototype = Object.create(superClass === null ? null : superClass.prototype, {\n    constructor: {\n      value: subClass,\n      writable: true,\n      configurable: true,\n    },\n  });\n  if (superClass !== null) {\n    setPrototypeOf(subClass, superClass);\n  }\n}\n\nexport function taggedTemplateLiteralLoose(strings, raw) {\n  if (!raw) {\n    raw = strings.slice(0);\n  }\n  strings.raw = raw;\n  return strings;\n}\n\nfunction _defineProperties(target, props) {\n  for (let i = 0; i < props.length; i++) {\n    let descriptor = props[i];\n    descriptor.enumerable = descriptor.enumerable || false;\n    descriptor.configurable = true;\n    if ('value' in descriptor) descriptor.writable = true;\n    Object.defineProperty(target, descriptor.key, descriptor);\n  }\n}\n\n/*\n  Differs from default implementation by avoiding boolean coercion of\n  `protoProps` and `staticProps`.\n*/\nexport function createClass(Constructor, protoProps, staticProps) {\n  if (protoProps !== null && protoProps !== undefined) {\n    _defineProperties(Constructor.prototype, protoProps);\n  }\n\n  if (staticProps !== null && staticProps !== undefined) {\n    _defineProperties(Constructor, staticProps);\n  }\n\n  return Constructor;\n}\n\nexport function assertThisInitialized(self) {\n  if (DEBUG && self === void 0) {\n    throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n  }\n  return self;\n}\n\n/*\n  Adds `DEBUG` guard to error being thrown, and avoids boolean coercion of `call`.\n*/\nexport function possibleConstructorReturn(self, call) {\n  if ((typeof call === 'object' && call !== null) || typeof call === 'function') {\n    return call;\n  }\n  return assertThisInitialized(self);\n}\n\nexport function objectDestructuringEmpty(obj) {\n  if (DEBUG && (obj === null || obj === undefined)) {\n    throw new TypeError('Cannot destructure undefined');\n  }\n}\n\n/*\n  Differs from default implementation by checking for _any_ `Reflect.construct`\n  (the default implementation tries to ensure that `Reflect.construct` is truly\n  the native one).\n\n  Original source: https://github.com/babel/babel/blob/v7.9.2/packages/babel-helpers/src/helpers.js#L738-L757\n*/\nexport function createSuper(Derived) {\n  return function () {\n    let Super = getPrototypeOf(Derived);\n    let result;\n\n    if (hasReflectConstruct) {\n      // NOTE: This doesn't work if this.__proto__.constructor has been modified.\n      let NewTarget = getPrototypeOf(this).constructor;\n      result = Reflect.construct(Super, arguments, NewTarget);\n    } else {\n      result = Super.apply(this, arguments);\n    }\n\n    return possibleConstructorReturn(this, result);\n  };\n}\n\n/*\n  Does not differ from default implementation.\n*/\nfunction arrayLikeToArray(arr, len) {\n  if (len == null || len > arr.length) len = arr.length;\n\n  let arr2 = new Array(len);\n  for (let i = 0; i < len; i++) {\n    arr2[i] = arr[i];\n  }\n\n  return arr2;\n}\n\n/*\n  Does not differ from default implementation.\n*/\nfunction unsupportedIterableToArray(o, minLen) {\n  if (!o) return;\n  if (typeof o === 'string') return arrayLikeToArray(o, minLen);\n  let n = Object.prototype.toString.call(o).slice(8, -1);\n  if (n === 'Object' && o.constructor) n = o.constructor.name;\n  if (n === 'Map' || n === 'Set') return Array.from(n);\n  if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))\n    return arrayLikeToArray(o, minLen);\n}\n\n/*\n  Does not differ from default implementation.\n*/\nexport function createForOfIteratorHelperLoose(o) {\n  let i = 0;\n  if (typeof Symbol === 'undefined' || o[Symbol.iterator] == null) {\n    // Fallback for engines without symbol support\n    if (Array.isArray(o) || (o = unsupportedIterableToArray(o)))\n      return function () {\n        if (i >= o.length) return { done: true };\n        return { done: false, value: o[i++] };\n      };\n    throw new TypeError(\n      'Invalid attempt to iterate non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'\n    );\n  }\n  i = o[Symbol.iterator]();\n  return i.next.bind(i);\n}\n","export { default as Test } from './lib/test';\nexport { default as Adapter } from './lib/adapters/adapter';\nexport { default as setupForTesting } from './lib/setup_for_testing';\nexport { default as QUnitAdapter } from './lib/adapters/qunit';\nimport './lib/support'; // to handle various edge cases\n\nimport './lib/ext/application';\nimport './lib/ext/rsvp'; // setup RSVP + run loop integration\n\nimport './lib/helpers'; // adds helpers to helpers object in Test\n\nimport './lib/initializers'; // to setup initializer","import { Object as EmberObject } from '@ember/-internals/runtime';\n\nfunction K() {\n  return this;\n}\n/**\n @module @ember/test\n*/\n\n/**\n  The primary purpose of this class is to create hooks that can be implemented\n  by an adapter for various test frameworks.\n\n  @class TestAdapter\n  @public\n*/\n\n\nexport default EmberObject.extend({\n  /**\n    This callback will be called whenever an async operation is about to start.\n     Override this to call your framework's methods that handle async\n    operations.\n     @public\n    @method asyncStart\n  */\n  asyncStart: K,\n\n  /**\n    This callback will be called whenever an async operation has completed.\n     @public\n    @method asyncEnd\n  */\n  asyncEnd: K,\n\n  /**\n    Override this method with your testing framework's false assertion.\n    This function is called whenever an exception occurs causing the testing\n    promise to fail.\n     QUnit example:\n     ```javascript\n      exception: function(error) {\n        ok(false, error);\n      };\n    ```\n     @public\n    @method exception\n    @param {String} error The exception to be raised.\n  */\n  exception(error) {\n    throw error;\n  }\n\n});","/* globals QUnit */\nimport { inspect } from '@ember/-internals/utils';\nimport Adapter from './adapter';\n/**\n   @module ember\n*/\n\n/**\n  This class implements the methods defined by TestAdapter for the\n  QUnit testing framework.\n\n  @class QUnitAdapter\n  @namespace Ember.Test\n  @extends TestAdapter\n  @public\n*/\n\nexport default Adapter.extend({\n  init() {\n    this.doneCallbacks = [];\n  },\n\n  asyncStart() {\n    if (typeof QUnit.stop === 'function') {\n      // very old QUnit version\n      QUnit.stop();\n    } else {\n      this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);\n    }\n  },\n\n  asyncEnd() {\n    // checking for QUnit.stop here (even though we _need_ QUnit.start) because\n    // QUnit.start() still exists in QUnit 2.x (it just throws an error when calling\n    // inside a test context)\n    if (typeof QUnit.stop === 'function') {\n      QUnit.start();\n    } else {\n      let done = this.doneCallbacks.pop(); // This can be null if asyncStart() was called outside of a test\n\n      if (done) {\n        done();\n      }\n    }\n  },\n\n  exception(error) {\n    QUnit.config.current.assert.ok(false, inspect(error));\n  }\n\n});","import { run } from '@ember/runloop';\nimport { assign } from '@ember/polyfills';\nimport isFormControl from './helpers/-is-form-control';\nconst DEFAULT_EVENT_OPTIONS = {\n  canBubble: true,\n  cancelable: true\n};\nconst KEYBOARD_EVENT_TYPES = ['keydown', 'keypress', 'keyup'];\nconst MOUSE_EVENT_TYPES = ['click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover'];\nexport function focus(el) {\n  if (!el) {\n    return;\n  }\n\n  if (el.isContentEditable || isFormControl(el)) {\n    let type = el.getAttribute('type');\n\n    if (type !== 'checkbox' && type !== 'radio' && type !== 'hidden') {\n      run(null, function () {\n        let browserIsNotFocused = document.hasFocus && !document.hasFocus(); // makes `document.activeElement` be `element`. If the browser is focused, it also fires a focus event\n\n        el.focus(); // Firefox does not trigger the `focusin` event if the window\n        // does not have focus. If the document does not have focus then\n        // fire `focusin` event as well.\n\n        if (browserIsNotFocused) {\n          // if the browser is not focused the previous `el.focus()` didn't fire an event, so we simulate it\n          fireEvent(el, 'focus', {\n            bubbles: false\n          });\n          fireEvent(el, 'focusin');\n        }\n      });\n    }\n  }\n}\nexport function fireEvent(element, type, options = {}) {\n  if (!element) {\n    return;\n  }\n\n  let event;\n\n  if (KEYBOARD_EVENT_TYPES.indexOf(type) > -1) {\n    event = buildKeyboardEvent(type, options);\n  } else if (MOUSE_EVENT_TYPES.indexOf(type) > -1) {\n    let rect = element.getBoundingClientRect();\n    let x = rect.left + 1;\n    let y = rect.top + 1;\n    let simulatedCoordinates = {\n      screenX: x + 5,\n      screenY: y + 95,\n      clientX: x,\n      clientY: y\n    };\n    event = buildMouseEvent(type, assign(simulatedCoordinates, options));\n  } else {\n    event = buildBasicEvent(type, options);\n  }\n\n  element.dispatchEvent(event);\n}\n\nfunction buildBasicEvent(type, options = {}) {\n  let event = document.createEvent('Events'); // Event.bubbles is read only\n\n  let bubbles = options.bubbles !== undefined ? options.bubbles : true;\n  let cancelable = options.cancelable !== undefined ? options.cancelable : true;\n  delete options.bubbles;\n  delete options.cancelable;\n  event.initEvent(type, bubbles, cancelable);\n  assign(event, options);\n  return event;\n}\n\nfunction buildMouseEvent(type, options = {}) {\n  let event;\n\n  try {\n    event = document.createEvent('MouseEvents');\n    let eventOpts = assign({}, DEFAULT_EVENT_OPTIONS, options);\n    event.initMouseEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.detail, eventOpts.screenX, eventOpts.screenY, eventOpts.clientX, eventOpts.clientY, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.button, eventOpts.relatedTarget);\n  } catch (e) {\n    event = buildBasicEvent(type, options);\n  }\n\n  return event;\n}\n\nfunction buildKeyboardEvent(type, options = {}) {\n  let event;\n\n  try {\n    event = document.createEvent('KeyEvents');\n    let eventOpts = assign({}, DEFAULT_EVENT_OPTIONS, options);\n    event.initKeyEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.keyCode, eventOpts.charCode);\n  } catch (e) {\n    event = buildBasicEvent(type, options);\n  }\n\n  return event;\n}","import EmberApplication from '@ember/application';\nimport setupForTesting from '../setup_for_testing';\nimport { helpers } from '../test/helpers';\nimport TestPromise, { resolve, getLastPromise } from '../test/promise';\nimport run from '../test/run';\nimport { invokeInjectHelpersCallbacks } from '../test/on_inject_helpers';\nimport { asyncStart, asyncEnd } from '../test/adapter';\nEmberApplication.reopen({\n  /**\n   This property contains the testing helpers for the current application. These\n   are created once you call `injectTestHelpers` on your `Application`\n   instance. The included helpers are also available on the `window` object by\n   default, but can be used from this object on the individual application also.\n     @property testHelpers\n    @type {Object}\n    @default {}\n    @public\n  */\n  testHelpers: {},\n\n  /**\n   This property will contain the original methods that were registered\n   on the `helperContainer` before `injectTestHelpers` is called.\n    When `removeTestHelpers` is called, these methods are restored to the\n   `helperContainer`.\n     @property originalMethods\n    @type {Object}\n    @default {}\n    @private\n    @since 1.3.0\n  */\n  originalMethods: {},\n\n  /**\n  This property indicates whether or not this application is currently in\n  testing mode. This is set when `setupForTesting` is called on the current\n  application.\n   @property testing\n  @type {Boolean}\n  @default false\n  @since 1.3.0\n  @public\n  */\n  testing: false,\n\n  /**\n    This hook defers the readiness of the application, so that you can start\n    the app when your tests are ready to run. It also sets the router's\n    location to 'none', so that the window's location will not be modified\n    (preventing both accidental leaking of state between tests and interference\n    with your testing framework). `setupForTesting` should only be called after\n    setting a custom `router` class (for example `App.Router = Router.extend(`).\n     Example:\n     ```\n    App.setupForTesting();\n    ```\n     @method setupForTesting\n    @public\n  */\n  setupForTesting() {\n    setupForTesting();\n    this.testing = true;\n    this.resolveRegistration('router:main').reopen({\n      location: 'none'\n    });\n  },\n\n  /**\n    This will be used as the container to inject the test helpers into. By\n    default the helpers are injected into `window`.\n     @property helperContainer\n    @type {Object} The object to be used for test helpers.\n    @default window\n    @since 1.2.0\n    @private\n  */\n  helperContainer: null,\n\n  /**\n    This injects the test helpers into the `helperContainer` object. If an object is provided\n    it will be used as the helperContainer. If `helperContainer` is not set it will default\n    to `window`. If a function of the same name has already been defined it will be cached\n    (so that it can be reset if the helper is removed with `unregisterHelper` or\n    `removeTestHelpers`).\n     Any callbacks registered with `onInjectHelpers` will be called once the\n    helpers have been injected.\n     Example:\n    ```\n    App.injectTestHelpers();\n    ```\n     @method injectTestHelpers\n    @public\n  */\n  injectTestHelpers(helperContainer) {\n    if (helperContainer) {\n      this.helperContainer = helperContainer;\n    } else {\n      this.helperContainer = window;\n    }\n\n    this.reopen({\n      willDestroy() {\n        this._super(...arguments);\n\n        this.removeTestHelpers();\n      }\n\n    });\n    this.testHelpers = {};\n\n    for (let name in helpers) {\n      this.originalMethods[name] = this.helperContainer[name];\n      this.testHelpers[name] = this.helperContainer[name] = helper(this, name);\n      protoWrap(TestPromise.prototype, name, helper(this, name), helpers[name].meta.wait);\n    }\n\n    invokeInjectHelpersCallbacks(this);\n  },\n\n  /**\n    This removes all helpers that have been registered, and resets and functions\n    that were overridden by the helpers.\n     Example:\n     ```javascript\n    App.removeTestHelpers();\n    ```\n     @public\n    @method removeTestHelpers\n  */\n  removeTestHelpers() {\n    if (!this.helperContainer) {\n      return;\n    }\n\n    for (let name in helpers) {\n      this.helperContainer[name] = this.originalMethods[name];\n      delete TestPromise.prototype[name];\n      delete this.testHelpers[name];\n      delete this.originalMethods[name];\n    }\n  }\n\n}); // This method is no longer needed\n// But still here for backwards compatibility\n// of helper chaining\n\nfunction protoWrap(proto, name, callback, isAsync) {\n  proto[name] = function (...args) {\n    if (isAsync) {\n      return callback.apply(this, args);\n    } else {\n      return this.then(function () {\n        return callback.apply(this, args);\n      });\n    }\n  };\n}\n\nfunction helper(app, name) {\n  let fn = helpers[name].method;\n  let meta = helpers[name].meta;\n\n  if (!meta.wait) {\n    return (...args) => fn.apply(app, [app, ...args]);\n  }\n\n  return (...args) => {\n    let lastPromise = run(() => resolve(getLastPromise())); // wait for last helper's promise to resolve and then\n    // execute. To be safe, we need to tell the adapter we're going\n    // asynchronous here, because fn may not be invoked before we\n    // return.\n\n    asyncStart();\n    return lastPromise.then(() => fn.apply(app, [app, ...args])).finally(asyncEnd);\n  };\n}","import { RSVP } from '@ember/-internals/runtime';\nimport { backburner } from '@ember/runloop';\nimport { isTesting } from '@ember/debug';\nimport { asyncStart, asyncEnd } from '../test/adapter';\nRSVP.configure('async', function (callback, promise) {\n  // if schedule will cause autorun, we need to inform adapter\n  if (isTesting() && !backburner.currentInstance) {\n    asyncStart();\n    backburner.schedule('actions', () => {\n      asyncEnd();\n      callback(promise);\n    });\n  } else {\n    backburner.schedule('actions', () => callback(promise));\n  }\n});\nexport default RSVP;","import { registerHelper as helper, registerAsyncHelper as asyncHelper } from './test/helpers';\nimport andThen from './helpers/and_then';\nimport click from './helpers/click';\nimport currentPath from './helpers/current_path';\nimport currentRouteName from './helpers/current_route_name';\nimport currentURL from './helpers/current_url';\nimport fillIn from './helpers/fill_in';\nimport find from './helpers/find';\nimport findWithAssert from './helpers/find_with_assert';\nimport keyEvent from './helpers/key_event';\nimport { pauseTest, resumeTest } from './helpers/pause_test';\nimport triggerEvent from './helpers/trigger_event';\nimport visit from './helpers/visit';\nimport wait from './helpers/wait';\nasyncHelper('visit', visit);\nasyncHelper('click', click);\nasyncHelper('keyEvent', keyEvent);\nasyncHelper('fillIn', fillIn);\nasyncHelper('wait', wait);\nasyncHelper('andThen', andThen);\nasyncHelper('pauseTest', pauseTest);\nasyncHelper('triggerEvent', triggerEvent);\nhelper('find', find);\nhelper('findWithAssert', findWithAssert);\nhelper('currentRouteName', currentRouteName);\nhelper('currentPath', currentPath);\nhelper('currentURL', currentURL);\nhelper('resumeTest', resumeTest);","const FORM_CONTROL_TAGS = ['INPUT', 'BUTTON', 'SELECT', 'TEXTAREA'];\n/**\n  @private\n  @param {Element} element the element to check\n  @returns {boolean} `true` when the element is a form control, `false` otherwise\n*/\n\nexport default function isFormControl(element) {\n  let {\n    tagName,\n    type\n  } = element;\n\n  if (type === 'hidden') {\n    return false;\n  }\n\n  return FORM_CONTROL_TAGS.indexOf(tagName) > -1;\n}","export default function andThen(app, callback) {\n  return app.testHelpers.wait(callback(app));\n}","/**\n@module ember\n*/\nimport { focus, fireEvent } from '../events';\n/**\n  Clicks an element and triggers any actions triggered by the element's `click`\n  event.\n\n  Example:\n\n  ```javascript\n  click('.some-jQuery-selector').then(function() {\n    // assert something\n  });\n  ```\n\n  @method click\n  @param {String} selector jQuery selector for finding element on the DOM\n  @param {Object} context A DOM Element, Document, or jQuery to use as context\n  @return {RSVP.Promise<undefined>}\n  @public\n*/\n\nexport default function click(app, selector, context) {\n  let $el = app.testHelpers.findWithAssert(selector, context);\n  let el = $el[0];\n  fireEvent(el, 'mousedown');\n  focus(el);\n  fireEvent(el, 'mouseup');\n  fireEvent(el, 'click');\n  return app.testHelpers.wait();\n}","/**\n@module ember\n*/\nimport { get } from '@ember/-internals/metal';\n/**\n  Returns the current path.\n\nExample:\n\n```javascript\nfunction validateURL() {\n  equal(currentPath(), 'some.path.index', \"correct path was transitioned into.\");\n}\n\nclick('#some-link-id').then(validateURL);\n```\n\n@method currentPath\n@return {Object} The currently active path.\n@since 1.5.0\n@public\n*/\n\nexport default function currentPath(app) {\n  let routingService = app.__container__.lookup('service:-routing');\n\n  return get(routingService, 'currentPath');\n}","/**\n@module ember\n*/\nimport { get } from '@ember/-internals/metal';\n/**\n  Returns the currently active route name.\n\nExample:\n\n```javascript\nfunction validateRouteName() {\n  equal(currentRouteName(), 'some.path', \"correct route was transitioned into.\");\n}\nvisit('/some/path').then(validateRouteName)\n```\n\n@method currentRouteName\n@return {Object} The name of the currently active route.\n@since 1.5.0\n@public\n*/\n\nexport default function currentRouteName(app) {\n  let routingService = app.__container__.lookup('service:-routing');\n\n  return get(routingService, 'currentRouteName');\n}","/**\n@module ember\n*/\nimport { get } from '@ember/-internals/metal';\n/**\n  Returns the current URL.\n\nExample:\n\n```javascript\nfunction validateURL() {\n  equal(currentURL(), '/some/path', \"correct URL was transitioned into.\");\n}\n\nclick('#some-link-id').then(validateURL);\n```\n\n@method currentURL\n@return {Object} The currently active URL.\n@since 1.5.0\n@public\n*/\n\nexport default function currentURL(app) {\n  let router = app.__container__.lookup('router:main');\n\n  return get(router, 'location').getURL();\n}","/**\n@module ember\n*/\nimport { focus, fireEvent } from '../events';\nimport isFormControl from './-is-form-control';\n/**\n  Fills in an input element with some text.\n\n  Example:\n\n  ```javascript\n  fillIn('#email', 'you@example.com').then(function() {\n    // assert something\n  });\n  ```\n\n  @method fillIn\n  @param {String} selector jQuery selector finding an input element on the DOM\n  to fill text with\n  @param {String} text text to place inside the input element\n  @return {RSVP.Promise<undefined>}\n  @public\n*/\n\nexport default function fillIn(app, selector, contextOrText, text) {\n  let $el, el, context;\n\n  if (text === undefined) {\n    text = contextOrText;\n  } else {\n    context = contextOrText;\n  }\n\n  $el = app.testHelpers.findWithAssert(selector, context);\n  el = $el[0];\n  focus(el);\n\n  if (isFormControl(el)) {\n    el.value = text;\n  } else {\n    el.innerHTML = text;\n  }\n\n  fireEvent(el, 'input');\n  fireEvent(el, 'change');\n  return app.testHelpers.wait();\n}","/**\n@module ember\n*/\nimport { get } from '@ember/-internals/metal';\nimport { assert } from '@ember/debug';\nimport { jQueryDisabled } from '@ember/-internals/views';\n/**\n  Finds an element in the context of the app's container element. A simple alias\n  for `app.$(selector)`.\n\n  Example:\n\n  ```javascript\n  var $el = find('.my-selector');\n  ```\n\n  With the `context` param:\n\n  ```javascript\n  var $el = find('.my-selector', '.parent-element-class');\n  ```\n\n  @method find\n  @param {String} selector jQuery selector for element lookup\n  @param {String} [context] (optional) jQuery selector that will limit the selector\n                            argument to find only within the context's children\n  @return {Object} DOM element representing the results of the query\n  @public\n*/\n\nexport default function find(app, selector, context) {\n  if (jQueryDisabled) {\n    assert('If jQuery is disabled, please import and use helpers from @ember/test-helpers [https://github.com/emberjs/ember-test-helpers]. Note: `find` is not an available helper.');\n  }\n\n  let $el;\n  context = context || get(app, 'rootElement');\n  $el = app.$(selector, context);\n  return $el;\n}","/**\n@module ember\n*/\n\n/**\n  Like `find`, but throws an error if the element selector returns no results.\n\n  Example:\n\n  ```javascript\n  var $el = findWithAssert('.doesnt-exist'); // throws error\n  ```\n\n  With the `context` param:\n\n  ```javascript\n  var $el = findWithAssert('.selector-id', '.parent-element-class'); // assert will pass\n  ```\n\n  @method findWithAssert\n  @param {String} selector jQuery selector string for finding an element within\n  the DOM\n  @param {String} [context] (optional) jQuery selector that will limit the\n  selector argument to find only within the context's children\n  @return {Object} jQuery object representing the results of the query\n  @throws {Error} throws error if object returned has a length of 0\n  @public\n*/\nexport default function findWithAssert(app, selector, context) {\n  let $el = app.testHelpers.find(selector, context);\n\n  if ($el.length === 0) {\n    throw new Error('Element ' + selector + ' not found.');\n  }\n\n  return $el;\n}","/**\n@module ember\n*/\n\n/**\n  Simulates a key event, e.g. `keypress`, `keydown`, `keyup` with the desired keyCode\n  Example:\n  ```javascript\n  keyEvent('.some-jQuery-selector', 'keypress', 13).then(function() {\n   // assert something\n  });\n  ```\n  @method keyEvent\n  @param {String} selector jQuery selector for finding element on the DOM\n  @param {String} type the type of key event, e.g. `keypress`, `keydown`, `keyup`\n  @param {Number} keyCode the keyCode of the simulated key event\n  @return {RSVP.Promise<undefined>}\n  @since 1.5.0\n  @public\n*/\nexport default function keyEvent(app, selector, contextOrType, typeOrKeyCode, keyCode) {\n  let context, type;\n\n  if (keyCode === undefined) {\n    context = null;\n    keyCode = typeOrKeyCode;\n    type = contextOrType;\n  } else {\n    context = contextOrType;\n    type = typeOrKeyCode;\n  }\n\n  return app.testHelpers.triggerEvent(selector, context, type, {\n    keyCode,\n    which: keyCode\n  });\n}","/**\n@module ember\n*/\nimport { RSVP } from '@ember/-internals/runtime';\nimport { assert, info } from '@ember/debug';\nlet resume;\n/**\n Resumes a test paused by `pauseTest`.\n\n @method resumeTest\n @return {void}\n @public\n*/\n\nexport function resumeTest() {\n  assert('Testing has not been paused. There is nothing to resume.', resume);\n  resume();\n  resume = undefined;\n}\n/**\n Pauses the current test - this is useful for debugging while testing or for test-driving.\n It allows you to inspect the state of your application at any point.\n Example (The test will pause before clicking the button):\n\n ```javascript\n visit('/')\n return pauseTest();\n click('.btn');\n ```\n\n You may want to turn off the timeout before pausing.\n\n qunit (timeout available to use as of 2.4.0):\n\n ```\n visit('/');\n assert.timeout(0);\n return pauseTest();\n click('.btn');\n ```\n\n mocha (timeout happens automatically as of ember-mocha v0.14.0):\n\n ```\n visit('/');\n this.timeout(0);\n return pauseTest();\n click('.btn');\n ```\n\n\n @since 1.9.0\n @method pauseTest\n @return {Object} A promise that will never resolve\n @public\n*/\n\nexport function pauseTest() {\n  info('Testing paused. Use `resumeTest()` to continue.');\n  return new RSVP.Promise(resolve => {\n    resume = resolve;\n  }, 'TestAdapter paused promise');\n}","/**\n@module ember\n*/\nimport { fireEvent } from '../events';\n/**\n  Triggers the given DOM event on the element identified by the provided selector.\n  Example:\n  ```javascript\n  triggerEvent('#some-elem-id', 'blur');\n  ```\n  This is actually used internally by the `keyEvent` helper like so:\n  ```javascript\n  triggerEvent('#some-elem-id', 'keypress', { keyCode: 13 });\n  ```\n @method triggerEvent\n @param {String} selector jQuery selector for finding element on the DOM\n @param {String} [context] jQuery selector that will limit the selector\n                           argument to find only within the context's children\n @param {String} type The event type to be triggered.\n @param {Object} [options] The options to be passed to jQuery.Event.\n @return {RSVP.Promise<undefined>}\n @since 1.5.0\n @public\n*/\n\nexport default function triggerEvent(app, selector, contextOrType, typeOrOptions, possibleOptions) {\n  let arity = arguments.length;\n  let context, type, options;\n\n  if (arity === 3) {\n    // context and options are optional, so this is\n    // app, selector, type\n    context = null;\n    type = contextOrType;\n    options = {};\n  } else if (arity === 4) {\n    // context and options are optional, so this is\n    if (typeof typeOrOptions === 'object') {\n      // either\n      // app, selector, type, options\n      context = null;\n      type = contextOrType;\n      options = typeOrOptions;\n    } else {\n      // or\n      // app, selector, context, type\n      context = contextOrType;\n      type = typeOrOptions;\n      options = {};\n    }\n  } else {\n    context = contextOrType;\n    type = typeOrOptions;\n    options = possibleOptions;\n  }\n\n  let $el = app.testHelpers.findWithAssert(selector, context);\n  let el = $el[0];\n  fireEvent(el, type, options);\n  return app.testHelpers.wait();\n}","import { run } from '@ember/runloop';\n/**\n  Loads a route, sets up any controllers, and renders any templates associated\n  with the route as though a real user had triggered the route change while\n  using your app.\n\n  Example:\n\n  ```javascript\n  visit('posts/index').then(function() {\n    // assert something\n  });\n  ```\n\n  @method visit\n  @param {String} url the name of the route\n  @return {RSVP.Promise<undefined>}\n  @public\n*/\n\nexport default function visit(app, url) {\n  let router = app.__container__.lookup('router:main');\n\n  let shouldHandleURL = false;\n  app.boot().then(() => {\n    router.location.setURL(url);\n\n    if (shouldHandleURL) {\n      run(app.__deprecatedInstance__, 'handleURL', url);\n    }\n  });\n\n  if (app._readinessDeferrals > 0) {\n    router.initialURL = url;\n    run(app, 'advanceReadiness');\n    delete router.initialURL;\n  } else {\n    shouldHandleURL = true;\n  }\n\n  return app.testHelpers.wait();\n}","/**\n@module ember\n*/\nimport { checkWaiters } from '../test/waiters';\nimport { RSVP } from '@ember/-internals/runtime';\nimport { getCurrentRunLoop, hasScheduledTimers, run } from '@ember/runloop';\nimport { pendingRequests } from '../test/pending_requests';\n/**\n  Causes the run loop to process any pending events. This is used to ensure that\n  any async operations from other helpers (or your assertions) have been processed.\n\n  This is most often used as the return value for the helper functions (see 'click',\n  'fillIn','visit',etc). However, there is a method to register a test helper which\n  utilizes this method without the need to actually call `wait()` in your helpers.\n\n  The `wait` helper is built into `registerAsyncHelper` by default. You will not need\n  to `return app.testHelpers.wait();` - the wait behavior is provided for you.\n\n  Example:\n\n  ```javascript\n  import { registerAsyncHelper } from '@ember/test';\n\n  registerAsyncHelper('loginUser', function(app, username, password) {\n    visit('secured/path/here')\n      .fillIn('#username', username)\n      .fillIn('#password', password)\n      .click('.submit');\n  });\n  ```\n\n  @method wait\n  @param {Object} value The value to be returned.\n  @return {RSVP.Promise<any>} Promise that resolves to the passed value.\n  @public\n  @since 1.0.0\n*/\n\nexport default function wait(app, value) {\n  return new RSVP.Promise(function (resolve) {\n    let router = app.__container__.lookup('router:main'); // Every 10ms, poll for the async thing to have finished\n\n\n    let watcher = setInterval(() => {\n      // 1. If the router is loading, keep polling\n      let routerIsLoading = router._routerMicrolib && Boolean(router._routerMicrolib.activeTransition);\n\n      if (routerIsLoading) {\n        return;\n      } // 2. If there are pending Ajax requests, keep polling\n\n\n      if (pendingRequests()) {\n        return;\n      } // 3. If there are scheduled timers or we are inside of a run loop, keep polling\n\n\n      if (hasScheduledTimers() || getCurrentRunLoop()) {\n        return;\n      }\n\n      if (checkWaiters()) {\n        return;\n      } // Stop polling\n\n\n      clearInterval(watcher); // Synchronously resolve the promise\n\n      run(null, resolve, value);\n    }, 10);\n  });\n}","import { onLoad } from '@ember/application';\nlet name = 'deferReadiness in `testing` mode';\nonLoad('Ember.Application', function (Application) {\n  if (!Application.initializers[name]) {\n    Application.initializer({\n      name: name,\n\n      initialize(application) {\n        if (application.testing) {\n          application.deferReadiness();\n        }\n      }\n\n    });\n  }\n});","/* global self */\nimport { setTesting } from '@ember/debug';\nimport { jQuery, jQueryDisabled } from '@ember/-internals/views';\nimport { getAdapter, setAdapter } from './test/adapter';\nimport { incrementPendingRequests, decrementPendingRequests, clearPendingRequests } from './test/pending_requests';\nimport Adapter from './adapters/adapter';\nimport QUnitAdapter from './adapters/qunit';\n/**\n  Sets Ember up for testing. This is useful to perform\n  basic setup steps in order to unit test.\n\n  Use `App.setupForTesting` to perform integration tests (full\n  application testing).\n\n  @method setupForTesting\n  @namespace Ember\n  @since 1.5.0\n  @private\n*/\n\nexport default function setupForTesting() {\n  setTesting(true);\n  let adapter = getAdapter(); // if adapter is not manually set default to QUnit\n\n  if (!adapter) {\n    setAdapter(typeof self.QUnit === 'undefined' ? Adapter.create() : QUnitAdapter.create());\n  }\n\n  if (!jQueryDisabled) {\n    jQuery(document).off('ajaxSend', incrementPendingRequests);\n    jQuery(document).off('ajaxComplete', decrementPendingRequests);\n    clearPendingRequests();\n    jQuery(document).on('ajaxSend', incrementPendingRequests);\n    jQuery(document).on('ajaxComplete', decrementPendingRequests);\n  }\n}","import { warn } from '@ember/debug';\nimport { jQuery, jQueryDisabled } from '@ember/-internals/views';\nimport { hasDOM } from '@ember/-internals/browser-environment';\n/**\n  @module ember\n*/\n\nconst $ = jQuery;\n/**\n  This method creates a checkbox and triggers the click event to fire the\n  passed in handler. It is used to correct for a bug in older versions\n  of jQuery (e.g 1.8.3).\n\n  @private\n  @method testCheckboxClick\n*/\n\nfunction testCheckboxClick(handler) {\n  let input = document.createElement('input');\n  $(input).attr('type', 'checkbox').css({\n    position: 'absolute',\n    left: '-1000px',\n    top: '-1000px'\n  }).appendTo('body').on('click', handler).trigger('click').remove();\n}\n\nif (hasDOM && !jQueryDisabled) {\n  $(function () {\n    /*\n      Determine whether a checkbox checked using jQuery's \"click\" method will have\n      the correct value for its checked property.\n       If we determine that the current jQuery version exhibits this behavior,\n      patch it to work correctly as in the commit for the actual fix:\n      https://github.com/jquery/jquery/commit/1fb2f92.\n    */\n    testCheckboxClick(function () {\n      if (!this.checked && !$.event.special.click) {\n        $.event.special.click = {\n          // For checkbox, fire native event so checked state will be right\n          trigger() {\n            if (this.nodeName === 'INPUT' && this.type === 'checkbox' && this.click) {\n              this.click();\n              return false;\n            }\n          }\n\n        };\n      }\n    }); // Try again to verify that the patch took effect or blow up.\n\n    testCheckboxClick(function () {\n      warn(\"clicked checkboxes should be checked! the jQuery patch didn't work\", this.checked, {\n        id: 'ember-testing.test-checkbox-click'\n      });\n    });\n  });\n}","/**\n  @module ember\n*/\nimport { helpers, registerHelper, registerAsyncHelper, unregisterHelper } from './test/helpers';\nimport { onInjectHelpers } from './test/on_inject_helpers';\nimport TestPromise, { promise, resolve } from './test/promise';\nimport { checkWaiters, registerWaiter, unregisterWaiter } from './test/waiters';\nimport { getAdapter, setAdapter } from './test/adapter';\n/**\n  This is a container for an assortment of testing related functionality:\n\n  * Choose your default test adapter (for your framework of choice).\n  * Register/Unregister additional test helpers.\n  * Setup callbacks to be fired when the test helpers are injected into\n    your application.\n\n  @class Test\n  @namespace Ember\n  @public\n*/\n\nconst Test = {\n  /**\n    Hash containing all known test helpers.\n     @property _helpers\n    @private\n    @since 1.7.0\n  */\n  _helpers: helpers,\n  registerHelper,\n  registerAsyncHelper,\n  unregisterHelper,\n  onInjectHelpers,\n  Promise: TestPromise,\n  promise,\n  resolve,\n  registerWaiter,\n  unregisterWaiter,\n  checkWaiters\n};\n/**\n Used to allow ember-testing to communicate with a specific testing\n framework.\n\n You can manually set it before calling `App.setupForTesting()`.\n\n Example:\n\n ```javascript\n Ember.Test.adapter = MyCustomAdapter.create()\n ```\n\n If you do not set it, ember-testing will default to `Ember.Test.QUnitAdapter`.\n\n @public\n @for Ember.Test\n @property adapter\n @type {Class} The adapter to be used.\n @default Ember.Test.QUnitAdapter\n*/\n\nObject.defineProperty(Test, 'adapter', {\n  get: getAdapter,\n  set: setAdapter\n});\nexport default Test;","import { setDispatchOverride } from '@ember/-internals/error-handling';\nlet adapter;\nexport function getAdapter() {\n  return adapter;\n}\nexport function setAdapter(value) {\n  adapter = value;\n\n  if (value && typeof value.exception === 'function') {\n    setDispatchOverride(adapterDispatch);\n  } else {\n    setDispatchOverride(null);\n  }\n}\nexport function asyncStart() {\n  if (adapter) {\n    adapter.asyncStart();\n  }\n}\nexport function asyncEnd() {\n  if (adapter) {\n    adapter.asyncEnd();\n  }\n}\n\nfunction adapterDispatch(error) {\n  adapter.exception(error);\n  console.error(error.stack); // eslint-disable-line no-console\n}","import TestPromise from './promise';\nexport const helpers = {};\n/**\n @module @ember/test\n*/\n\n/**\n  `registerHelper` is used to register a test helper that will be injected\n  when `App.injectTestHelpers` is called.\n\n  The helper method will always be called with the current Application as\n  the first parameter.\n\n  For example:\n\n  ```javascript\n  import { registerHelper } from '@ember/test';\n  import { run } from '@ember/runloop';\n\n  registerHelper('boot', function(app) {\n    run(app, app.advanceReadiness);\n  });\n  ```\n\n  This helper can later be called without arguments because it will be\n  called with `app` as the first parameter.\n\n  ```javascript\n  import Application from '@ember/application';\n\n  App = Application.create();\n  App.injectTestHelpers();\n  boot();\n  ```\n\n  @public\n  @for @ember/test\n  @static\n  @method registerHelper\n  @param {String} name The name of the helper method to add.\n  @param {Function} helperMethod\n  @param options {Object}\n*/\n\nexport function registerHelper(name, helperMethod) {\n  helpers[name] = {\n    method: helperMethod,\n    meta: {\n      wait: false\n    }\n  };\n}\n/**\n  `registerAsyncHelper` is used to register an async test helper that will be injected\n  when `App.injectTestHelpers` is called.\n\n  The helper method will always be called with the current Application as\n  the first parameter.\n\n  For example:\n\n  ```javascript\n  import { registerAsyncHelper } from '@ember/test';\n  import { run } from '@ember/runloop';\n\n  registerAsyncHelper('boot', function(app) {\n    run(app, app.advanceReadiness);\n  });\n  ```\n\n  The advantage of an async helper is that it will not run\n  until the last async helper has completed.  All async helpers\n  after it will wait for it complete before running.\n\n\n  For example:\n\n  ```javascript\n  import { registerAsyncHelper } from '@ember/test';\n\n  registerAsyncHelper('deletePost', function(app, postId) {\n    click('.delete-' + postId);\n  });\n\n  // ... in your test\n  visit('/post/2');\n  deletePost(2);\n  visit('/post/3');\n  deletePost(3);\n  ```\n\n  @public\n  @for @ember/test\n  @method registerAsyncHelper\n  @param {String} name The name of the helper method to add.\n  @param {Function} helperMethod\n  @since 1.2.0\n*/\n\nexport function registerAsyncHelper(name, helperMethod) {\n  helpers[name] = {\n    method: helperMethod,\n    meta: {\n      wait: true\n    }\n  };\n}\n/**\n  Remove a previously added helper method.\n\n  Example:\n\n  ```javascript\n  import { unregisterHelper } from '@ember/test';\n\n  unregisterHelper('wait');\n  ```\n\n  @public\n  @method unregisterHelper\n  @static\n  @for @ember/test\n  @param {String} name The helper to remove.\n*/\n\nexport function unregisterHelper(name) {\n  delete helpers[name];\n  delete TestPromise.prototype[name];\n}","export const callbacks = [];\n/**\n  Used to register callbacks to be fired whenever `App.injectTestHelpers`\n  is called.\n\n  The callback will receive the current application as an argument.\n\n  Example:\n\n  ```javascript\n  import $ from 'jquery';\n\n  Ember.Test.onInjectHelpers(function() {\n    $(document).ajaxSend(function() {\n      Test.pendingRequests++;\n    });\n\n    $(document).ajaxComplete(function() {\n      Test.pendingRequests--;\n    });\n  });\n  ```\n\n  @public\n  @for Ember.Test\n  @method onInjectHelpers\n  @param {Function} callback The function to be called.\n*/\n\nexport function onInjectHelpers(callback) {\n  callbacks.push(callback);\n}\nexport function invokeInjectHelpersCallbacks(app) {\n  for (let i = 0; i < callbacks.length; i++) {\n    callbacks[i](app);\n  }\n}","let requests = [];\nexport function pendingRequests() {\n  return requests.length;\n}\nexport function clearPendingRequests() {\n  requests.length = 0;\n}\nexport function incrementPendingRequests(_, xhr) {\n  requests.push(xhr);\n}\nexport function decrementPendingRequests(_, xhr) {\n  setTimeout(function () {\n    for (let i = 0; i < requests.length; i++) {\n      if (xhr === requests[i]) {\n        requests.splice(i, 1);\n        break;\n      }\n    }\n  }, 0);\n}","import { RSVP } from '@ember/-internals/runtime';\nimport run from './run';\nlet lastPromise;\nexport default class TestPromise extends RSVP.Promise {\n  constructor() {\n    super(...arguments);\n    lastPromise = this;\n  }\n\n  then(_onFulfillment, ...args) {\n    let onFulfillment = typeof _onFulfillment === 'function' ? result => isolate(_onFulfillment, result) : undefined;\n    return super.then(onFulfillment, ...args);\n  }\n\n}\n/**\n  This returns a thenable tailored for testing.  It catches failed\n  `onSuccess` callbacks and invokes the `Ember.Test.adapter.exception`\n  callback in the last chained then.\n\n  This method should be returned by async helpers such as `wait`.\n\n  @public\n  @for Ember.Test\n  @method promise\n  @param {Function} resolver The function used to resolve the promise.\n  @param {String} label An optional string for identifying the promise.\n*/\n\nexport function promise(resolver, label) {\n  let fullLabel = `Ember.Test.promise: ${label || '<Unknown Promise>'}`;\n  return new TestPromise(resolver, fullLabel);\n}\n/**\n  Replacement for `Ember.RSVP.resolve`\n  The only difference is this uses\n  an instance of `Ember.Test.Promise`\n\n  @public\n  @for Ember.Test\n  @method resolve\n  @param {Mixed} The value to resolve\n  @since 1.2.0\n*/\n\nexport function resolve(result, label) {\n  return TestPromise.resolve(result, label);\n}\nexport function getLastPromise() {\n  return lastPromise;\n} // This method isolates nested async methods\n// so that they don't conflict with other last promises.\n//\n// 1. Set `Ember.Test.lastPromise` to null\n// 2. Invoke method\n// 3. Return the last promise created during method\n\nfunction isolate(onFulfillment, result) {\n  // Reset lastPromise for nested helpers\n  lastPromise = null;\n  let value = onFulfillment(result);\n  let promise = lastPromise;\n  lastPromise = null; // If the method returned a promise\n  // return that promise. If not,\n  // return the last async helper's promise\n\n  if (value && value instanceof TestPromise || !promise) {\n    return value;\n  } else {\n    return run(() => resolve(promise).then(() => value));\n  }\n}","import { getCurrentRunLoop, run as emberRun } from '@ember/runloop';\nexport default function run(fn) {\n  if (!getCurrentRunLoop()) {\n    return emberRun(fn);\n  } else {\n    return fn();\n  }\n}","/**\n @module @ember/test\n*/\nconst contexts = [];\nconst callbacks = [];\n/**\n   This allows ember-testing to play nicely with other asynchronous\n   events, such as an application that is waiting for a CSS3\n   transition or an IndexDB transaction. The waiter runs periodically\n   after each async helper (i.e. `click`, `andThen`, `visit`, etc) has executed,\n   until the returning result is truthy. After the waiters finish, the next async helper\n   is executed and the process repeats.\n\n   For example:\n\n   ```javascript\n   import { registerWaiter } from '@ember/test';\n\n   registerWaiter(function() {\n     return myPendingTransactions() === 0;\n   });\n   ```\n   The `context` argument allows you to optionally specify the `this`\n   with which your callback will be invoked.\n\n   For example:\n\n   ```javascript\n   import { registerWaiter } from '@ember/test';\n\n   registerWaiter(MyDB, MyDB.hasPendingTransactions);\n   ```\n\n   @public\n   @for @ember/test\n   @static\n   @method registerWaiter\n   @param {Object} context (optional)\n   @param {Function} callback\n   @since 1.2.0\n*/\n\nexport function registerWaiter(context, callback) {\n  if (arguments.length === 1) {\n    callback = context;\n    context = null;\n  }\n\n  if (indexOf(context, callback) > -1) {\n    return;\n  }\n\n  contexts.push(context);\n  callbacks.push(callback);\n}\n/**\n   `unregisterWaiter` is used to unregister a callback that was\n   registered with `registerWaiter`.\n\n   @public\n   @for @ember/test\n   @static\n   @method unregisterWaiter\n   @param {Object} context (optional)\n   @param {Function} callback\n   @since 1.2.0\n*/\n\nexport function unregisterWaiter(context, callback) {\n  if (!callbacks.length) {\n    return;\n  }\n\n  if (arguments.length === 1) {\n    callback = context;\n    context = null;\n  }\n\n  let i = indexOf(context, callback);\n\n  if (i === -1) {\n    return;\n  }\n\n  contexts.splice(i, 1);\n  callbacks.splice(i, 1);\n}\n/**\n  Iterates through each registered test waiter, and invokes\n  its callback. If any waiter returns false, this method will return\n  true indicating that the waiters have not settled yet.\n\n  This is generally used internally from the acceptance/integration test\n  infrastructure.\n\n  @public\n  @for @ember/test\n  @static\n  @method checkWaiters\n*/\n\nexport function checkWaiters() {\n  if (!callbacks.length) {\n    return false;\n  }\n\n  for (let i = 0; i < callbacks.length; i++) {\n    let context = contexts[i];\n    let callback = callbacks[i];\n\n    if (!callback.call(context)) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction indexOf(context, callback) {\n  for (let i = 0; i < callbacks.length; i++) {\n    if (callbacks[i] === callback && contexts[i] === context) {\n      return i;\n    }\n  }\n\n  return -1;\n}","import require, { has } from 'require';\nimport { getENV, getLookup, setLookup, ENV, context } from '@ember/-internals/environment';\nimport { IS_NODE, module } from 'node-module';\nimport * as utils from '@ember/-internals/utils';\nimport { Registry, Container } from '@ember/-internals/container';\nimport * as instrumentation from '@ember/instrumentation';\nimport { meta } from '@ember/-internals/meta';\nimport * as metal from '@ember/-internals/metal';\nimport { FEATURES, isEnabled } from '@ember/canary-features';\nimport * as EmberDebug from '@ember/debug';\nimport { assert, captureRenderTree, deprecate } from '@ember/debug';\nimport Backburner from 'backburner';\nimport Logger from '@ember/-internals/console';\nimport Controller, { inject as injectController } from '@ember/controller';\nimport ControllerMixin from '@ember/controller/lib/controller_mixin';\nimport { _getStrings, _setStrings, dasherize, camelize, capitalize, classify, decamelize, loc, underscore, w } from '@ember/string';\nimport Service, { inject as injectService } from '@ember/service';\nimport { action } from '@ember/object';\nimport { dependentKeyCompat } from '@ember/object/compat';\nimport { and, bool, collect, deprecatingAlias, empty, equal, filterBy, filter, gte, gt, intersect, lte, lt, mapBy, map, match, max, min, none, notEmpty, not, oneWay, or, readOnly, setDiff, sort, sum, union, uniqBy, uniq } from '@ember/object/computed';\nimport { Object as EmberObject, RegistryProxyMixin, ContainerProxyMixin, compare, copy, isEqual, Array as EmberArray, Copyable, MutableEnumerable, MutableArray, TargetActionSupport, Evented, PromiseProxyMixin, Observable, typeOf, isArray, _ProxyMixin, RSVP, Comparable, Namespace, Enumerable, ArrayProxy, ObjectProxy, ActionHandler, CoreObject, NativeArray, A } from '@ember/-internals/runtime';\nimport { Checkbox, Component, setComponentManager, capabilities, escapeExpression, getTemplates, Helper, helper, helperCapabilities, htmlSafe, invokeHelper, isHTMLSafe, LinkComponent, setTemplates, template, TextField, TextArea, isSerializationFirstNode, modifierCapabilities } from '@ember/-internals/glimmer'; // eslint-disable-next-line import/no-unresolved\n\nimport VERSION from './version';\nimport * as views from '@ember/-internals/views';\nimport * as routing from '@ember/-internals/routing';\nimport * as extensionSupport from '@ember/-internals/extension-support';\nimport EmberError from '@ember/error';\nimport * as runloop from '@ember/runloop';\nimport { getOnerror, setOnerror } from '@ember/-internals/error-handling';\nimport { getOwner, setOwner } from '@ember/-internals/owner';\nimport Application, { onLoad, runLoadHooks } from '@ember/application';\nimport Resolver from '@ember/application/globals-resolver';\nimport ApplicationInstance from '@ember/application/instance';\nimport Engine from '@ember/engine';\nimport EngineInstance from '@ember/engine/instance';\nimport { assign, merge } from '@ember/polyfills';\nimport { LOGGER, EMBER_EXTEND_PROTOTYPES, JQUERY_INTEGRATION } from '@ember/deprecated-features';\nimport templateOnlyComponent from '@ember/component/template-only';\nimport { setModifierManager, setComponentTemplate, getComponentTemplate, setHelperManager } from '@glimmer/runtime';\nimport { assertDestroyablesDestroyed, associateDestroyableChild, destroy, enableDestroyableTracking, isDestroying, isDestroyed, registerDestructor, unregisterDestructor } from '@ember/destroyable'; // ****@ember/-internals/environment****\n\nconst Ember = typeof context.imports.Ember === 'object' && context.imports.Ember || {};\nEmber.isNamespace = true;\n\nEmber.toString = function () {\n  return 'Ember';\n};\n\nObject.defineProperty(Ember, 'ENV', {\n  get: getENV,\n  enumerable: false\n});\nObject.defineProperty(Ember, 'lookup', {\n  get: getLookup,\n  set: setLookup,\n  enumerable: false\n});\n\nif (EMBER_EXTEND_PROTOTYPES) {\n  Object.defineProperty(Ember, 'EXTEND_PROTOTYPES', {\n    enumerable: false,\n\n    get() {\n      deprecate('Accessing Ember.EXTEND_PROTOTYPES is deprecated, please migrate to Ember.ENV.EXTEND_PROTOTYPES', false, {\n        id: 'ember-env.old-extend-prototypes',\n        until: '4.0.0'\n      });\n      return ENV.EXTEND_PROTOTYPES;\n    }\n\n  });\n} // ****@ember/application****\n\n\nEmber.getOwner = getOwner;\nEmber.setOwner = setOwner;\nEmber.Application = Application;\nEmber.ApplicationInstance = ApplicationInstance;\nObject.defineProperty(Ember, 'Resolver', {\n  get() {\n    deprecate('Using the globals resolver is deprecated. Use the ember-resolver package instead. See https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver', false, {\n      id: 'ember.globals-resolver',\n      until: '4.0.0',\n      url: 'https://deprecations.emberjs.com/v3.x#toc_ember-deprecate-globals-resolver'\n    });\n    return Resolver;\n  }\n\n});\nObject.defineProperty(Ember, 'DefaultResolver', {\n  get() {\n    return Ember.Resolver;\n  }\n\n}); // ****@ember/engine****\n\nEmber.Engine = Engine;\nEmber.EngineInstance = EngineInstance; // ****@ember/polyfills****\n\nEmber.assign = assign;\nEmber.merge = merge; // ****@ember/-internals/utils****\n\nEmber.generateGuid = utils.generateGuid;\nEmber.GUID_KEY = utils.GUID_KEY;\nEmber.guidFor = utils.guidFor;\nEmber.inspect = utils.inspect;\nEmber.makeArray = utils.makeArray;\nEmber.canInvoke = utils.canInvoke;\nEmber.tryInvoke = utils.tryInvoke;\nEmber.wrap = utils.wrap;\nEmber.uuid = utils.uuid; // ****@ember/-internals/container****\n\nEmber.Container = Container;\nEmber.Registry = Registry; // ****@ember/debug****\n\nEmber.assert = EmberDebug.assert;\nEmber.warn = EmberDebug.warn;\nEmber.debug = EmberDebug.debug;\nEmber.deprecate = EmberDebug.deprecate;\nEmber.deprecateFunc = EmberDebug.deprecateFunc;\nEmber.runInDebug = EmberDebug.runInDebug; // ****@ember/error****\n\nEmber.Error = EmberError;\n/**\n  @public\n  @class Ember.Debug\n*/\n\nEmber.Debug = {\n  registerDeprecationHandler: EmberDebug.registerDeprecationHandler,\n  registerWarnHandler: EmberDebug.registerWarnHandler,\n  isComputed: metal.isComputed\n}; // ****@ember/instrumentation****\n\nEmber.instrument = instrumentation.instrument;\nEmber.subscribe = instrumentation.subscribe;\nEmber.Instrumentation = {\n  instrument: instrumentation.instrument,\n  subscribe: instrumentation.subscribe,\n  unsubscribe: instrumentation.unsubscribe,\n  reset: instrumentation.reset\n}; // ****@ember/runloop****\n// Using _globalsRun here so that mutating the function (adding\n// `next`, `later`, etc to it) is only available in globals builds\n\nEmber.run = runloop._globalsRun;\nEmber.run.backburner = runloop.backburner;\nEmber.run.begin = runloop.begin;\nEmber.run.bind = runloop.bind;\nEmber.run.cancel = runloop.cancel;\nEmber.run.debounce = runloop.debounce;\nEmber.run.end = runloop.end;\nEmber.run.hasScheduledTimers = runloop.hasScheduledTimers;\nEmber.run.join = runloop.join;\nEmber.run.later = runloop.later;\nEmber.run.next = runloop.next;\nEmber.run.once = runloop.once;\nEmber.run.schedule = runloop.schedule;\nEmber.run.scheduleOnce = runloop.scheduleOnce;\nEmber.run.throttle = runloop.throttle;\nEmber.run.cancelTimers = runloop.cancelTimers;\nObject.defineProperty(Ember.run, 'currentRunLoop', {\n  get: runloop.getCurrentRunLoop,\n  enumerable: false\n}); // ****@ember/-internals/metal****\n// Using _globalsComputed here so that mutating the function is only available\n// in globals builds\n\nconst computed = metal._globalsComputed;\nEmber.computed = computed;\nEmber._descriptor = metal.nativeDescDecorator;\nEmber._tracked = metal.tracked;\ncomputed.alias = metal.alias;\nEmber.cacheFor = metal.getCachedValueFor;\nEmber.ComputedProperty = metal.ComputedProperty;\nEmber._setClassicDecorator = metal.setClassicDecorator;\nEmber.meta = meta;\nEmber.get = metal.get;\nEmber.getWithDefault = metal.getWithDefault;\nEmber._getPath = metal._getPath;\nEmber.set = metal.set;\nEmber.trySet = metal.trySet;\nEmber.FEATURES = assign({\n  isEnabled\n}, FEATURES);\nEmber._Cache = utils.Cache;\nEmber.on = metal.on;\nEmber.addListener = metal.addListener;\nEmber.removeListener = metal.removeListener;\nEmber.sendEvent = metal.sendEvent;\nEmber.hasListeners = metal.hasListeners;\nEmber.isNone = metal.isNone;\nEmber.isEmpty = metal.isEmpty;\nEmber.isBlank = metal.isBlank;\nEmber.isPresent = metal.isPresent;\nEmber.notifyPropertyChange = metal.notifyPropertyChange;\nEmber.beginPropertyChanges = metal.beginPropertyChanges;\nEmber.endPropertyChanges = metal.endPropertyChanges;\nEmber.changeProperties = metal.changeProperties;\nEmber.platform = {\n  defineProperty: true,\n  hasPropertyAccessors: true\n};\nEmber.defineProperty = metal.defineProperty;\nEmber.destroy = destroy;\nEmber.libraries = metal.libraries;\nEmber.getProperties = metal.getProperties;\nEmber.setProperties = metal.setProperties;\nEmber.expandProperties = metal.expandProperties;\nEmber.addObserver = metal.addObserver;\nEmber.removeObserver = metal.removeObserver;\nEmber.aliasMethod = metal.aliasMethod;\nEmber.observer = metal.observer;\nEmber.mixin = metal.mixin;\nEmber.Mixin = metal.Mixin;\nEmber._createCache = metal.createCache;\nEmber._cacheGetValue = metal.getValue;\nEmber._cacheIsConst = metal.isConst;\nEmber._registerDestructor = registerDestructor;\nEmber._unregisterDestructor = unregisterDestructor;\nEmber._associateDestroyableChild = associateDestroyableChild;\nEmber._assertDestroyablesDestroyed = assertDestroyablesDestroyed;\nEmber._enableDestroyableTracking = enableDestroyableTracking;\nEmber._isDestroying = isDestroying;\nEmber._isDestroyed = isDestroyed;\n/**\n  A function may be assigned to `Ember.onerror` to be called when Ember\n  internals encounter an error. This is useful for specialized error handling\n  and reporting code.\n\n  ```javascript\n  import $ from 'jquery';\n\n  Ember.onerror = function(error) {\n    $.ajax('/report-error', 'POST', {\n      stack: error.stack,\n      otherInformation: 'whatever app state you want to provide'\n    });\n  };\n  ```\n\n  Internally, `Ember.onerror` is used as Backburner's error handler.\n\n  @event onerror\n  @for Ember\n  @param {Exception} error the error object\n  @public\n*/\n\nObject.defineProperty(Ember, 'onerror', {\n  get: getOnerror,\n  set: setOnerror,\n  enumerable: false\n});\nObject.defineProperty(Ember, 'testing', {\n  get: EmberDebug.isTesting,\n  set: EmberDebug.setTesting,\n  enumerable: false\n});\nEmber._Backburner = Backburner; // ****@ember/-internals/console****\n\nif (LOGGER) {\n  Ember.Logger = Logger;\n} // ****@ember/-internals/runtime****\n\n\nEmber.A = A;\nEmber.String = {\n  loc,\n  w,\n  dasherize,\n  decamelize,\n  camelize,\n  classify,\n  underscore,\n  capitalize\n};\nEmber.Object = EmberObject;\nEmber._RegistryProxyMixin = RegistryProxyMixin;\nEmber._ContainerProxyMixin = ContainerProxyMixin;\nEmber.compare = compare;\nEmber.copy = copy;\nEmber.isEqual = isEqual;\n/**\n@module ember\n*/\n\n/**\n  Namespace for injection helper methods.\n\n  @class inject\n  @namespace Ember\n  @static\n  @public\n*/\n\nEmber.inject = function inject() {\n  assert(`Injected properties must be created through helpers, see '${Object.keys(inject).map(k => `'inject.${k}'`).join(' or ')}'`);\n};\n\nEmber.inject.service = injectService;\nEmber.inject.controller = injectController;\nEmber.Array = EmberArray;\nEmber.Comparable = Comparable;\nEmber.Enumerable = Enumerable;\nEmber.ArrayProxy = ArrayProxy;\nEmber.ObjectProxy = ObjectProxy;\nEmber.ActionHandler = ActionHandler;\nEmber.CoreObject = CoreObject;\nEmber.NativeArray = NativeArray;\nEmber.Copyable = Copyable;\nEmber.MutableEnumerable = MutableEnumerable;\nEmber.MutableArray = MutableArray;\nEmber.TargetActionSupport = TargetActionSupport;\nEmber.Evented = Evented;\nEmber.PromiseProxyMixin = PromiseProxyMixin;\nEmber.Observable = Observable;\nEmber.typeOf = typeOf;\nEmber.isArray = isArray;\nEmber.Object = EmberObject;\nEmber.onLoad = onLoad;\nEmber.runLoadHooks = runLoadHooks;\nEmber.Controller = Controller;\nEmber.ControllerMixin = ControllerMixin;\nEmber.Service = Service;\nEmber._ProxyMixin = _ProxyMixin;\nEmber.RSVP = RSVP;\nEmber.Namespace = Namespace;\nEmber._action = action;\nEmber._dependentKeyCompat = dependentKeyCompat;\ncomputed.empty = empty;\ncomputed.notEmpty = notEmpty;\ncomputed.none = none;\ncomputed.not = not;\ncomputed.bool = bool;\ncomputed.match = match;\ncomputed.equal = equal;\ncomputed.gt = gt;\ncomputed.gte = gte;\ncomputed.lt = lt;\ncomputed.lte = lte;\ncomputed.oneWay = oneWay;\ncomputed.reads = oneWay;\ncomputed.readOnly = readOnly;\ncomputed.deprecatingAlias = deprecatingAlias;\ncomputed.and = and;\ncomputed.or = or;\ncomputed.sum = sum;\ncomputed.min = min;\ncomputed.max = max;\ncomputed.map = map;\ncomputed.sort = sort;\ncomputed.setDiff = setDiff;\ncomputed.mapBy = mapBy;\ncomputed.filter = filter;\ncomputed.filterBy = filterBy;\ncomputed.uniq = uniq;\ncomputed.uniqBy = uniqBy;\ncomputed.union = union;\ncomputed.intersect = intersect;\ncomputed.collect = collect;\n/**\n  Defines the hash of localized strings for the current language. Used by\n  the `String.loc` helper. To localize, add string values to this\n  hash.\n\n  @property STRINGS\n  @for Ember\n  @type Object\n  @private\n*/\n\nObject.defineProperty(Ember, 'STRINGS', {\n  configurable: false,\n  get: _getStrings,\n  set: _setStrings\n});\n/**\n  Whether searching on the global for new Namespace instances is enabled.\n\n  This is only exported here as to not break any addons.  Given the new\n  visit API, you will have issues if you treat this as a indicator of\n  booted.\n\n  Internally this is only exposing a flag in Namespace.\n\n  @property BOOTED\n  @for Ember\n  @type Boolean\n  @private\n*/\n\nObject.defineProperty(Ember, 'BOOTED', {\n  configurable: false,\n  enumerable: false,\n  get: metal.isNamespaceSearchDisabled,\n  set: metal.setNamespaceSearchDisabled\n}); // ****@ember/-internals/glimmer****\n\nEmber.Component = Component;\nHelper.helper = helper;\nEmber.Helper = Helper;\n\nif (false\n/* EMBER_MODERNIZED_BUILT_IN_COMPONENTS */\n) {\n  [['Checkbox', '@ember/component/checkbox', Checkbox], ['TextField', '@ember/component/text-field', TextField], ['TextArea', '@ember/component/text-area', TextArea], ['LinkComponent', '@ember/routing/link-component', LinkComponent], ['TextSupport', '@ember/-internals/views', views.TextSupport]].forEach(([name, path, value]) => {\n    Object.defineProperty(Ember, name, {\n      get() {\n        deprecate(`Using Ember.${name} or importing from '${path}' has been deprecated, install the ` + `\\`ember-legacy-built-in-components\\` addon and use \\`import { ${name} } from ` + `'ember-legacy-built-in-components';\\` instead`, false, {\n          id: 'ember.legacy-built-in-components',\n          until: '4.0.0'\n        });\n        return value;\n      },\n\n      configurable: true,\n      enumerable: true\n    }); // Expose a non-deprecated version for tests and the ember-legacy-built-in-components addon\n\n    Ember[`_Legacy${name}`] = value;\n  });\n} else {\n  Ember.Checkbox = Checkbox;\n  Ember.TextField = TextField;\n  Ember.TextArea = TextArea;\n  Ember.LinkComponent = LinkComponent;\n  Ember.TextSupport = views.TextSupport;\n}\n\nEmber._setComponentManager = setComponentManager;\nEmber._componentManagerCapabilities = capabilities;\nEmber._setModifierManager = setModifierManager;\nEmber._modifierManagerCapabilities = modifierCapabilities;\nEmber._getComponentTemplate = getComponentTemplate;\nEmber._setComponentTemplate = setComponentTemplate;\nEmber._templateOnlyComponent = templateOnlyComponent;\n\nif (true\n/* EMBER_GLIMMER_HELPER_MANAGER */\n) {\n  Ember._helperManagerCapabilities = helperCapabilities;\n  Ember._setHelperManager = setHelperManager;\n}\n\nif (true\n/* EMBER_GLIMMER_INVOKE_HELPER */\n) {\n  Ember._invokeHelper = invokeHelper;\n}\n\nEmber._captureRenderTree = captureRenderTree;\nEmber.Handlebars = {\n  template,\n  Utils: {\n    escapeExpression\n  }\n};\nEmber.HTMLBars = {\n  template\n};\n\nif (ENV.EXTEND_PROTOTYPES.String) {\n  String.prototype.htmlSafe = function () {\n    return htmlSafe(this);\n  };\n}\n\nEmber.String.htmlSafe = htmlSafe;\nEmber.String.isHTMLSafe = isHTMLSafe;\n/**\n  Global hash of shared templates. This will automatically be populated\n  by the build tools so that you can store your Handlebars templates in\n  separate files that get loaded into JavaScript at buildtime.\n\n  @property TEMPLATES\n  @for Ember\n  @type Object\n  @private\n*/\n\nObject.defineProperty(Ember, 'TEMPLATES', {\n  get: getTemplates,\n  set: setTemplates,\n  configurable: false,\n  enumerable: false\n});\n/**\n  The semantic version\n\n  @property VERSION\n  @type String\n  @public\n*/\n\nEmber.VERSION = VERSION; // ****@ember/-internals/views****\n\nif (JQUERY_INTEGRATION && !views.jQueryDisabled) {\n  Object.defineProperty(Ember, '$', {\n    get() {\n      deprecate(\"Using Ember.$() has been deprecated, use `import jQuery from 'jquery';` instead\", false, {\n        id: 'ember-views.curly-components.jquery-element',\n        until: '4.0.0',\n        url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis'\n      });\n      return views.jQuery;\n    },\n\n    configurable: true,\n    enumerable: true\n  });\n}\n\nEmber.ViewUtils = {\n  isSimpleClick: views.isSimpleClick,\n  getElementView: views.getElementView,\n  getViewElement: views.getViewElement,\n  getViewBounds: views.getViewBounds,\n  getViewClientRects: views.getViewClientRects,\n  getViewBoundingClientRect: views.getViewBoundingClientRect,\n  getRootViews: views.getRootViews,\n  getChildViews: views.getChildViews,\n  isSerializationFirstNode: isSerializationFirstNode\n};\nEmber.ComponentLookup = views.ComponentLookup;\nEmber.EventDispatcher = views.EventDispatcher; // ****@ember/-internals/routing****\n\nEmber.Location = routing.Location;\nEmber.AutoLocation = routing.AutoLocation;\nEmber.HashLocation = routing.HashLocation;\nEmber.HistoryLocation = routing.HistoryLocation;\nEmber.NoneLocation = routing.NoneLocation;\nEmber.controllerFor = routing.controllerFor;\nEmber.generateControllerFactory = routing.generateControllerFactory;\nEmber.generateController = routing.generateController;\nEmber.RouterDSL = routing.RouterDSL;\nEmber.Router = routing.Router;\nEmber.Route = routing.Route;\nrunLoadHooks('Ember.Application', Application);\nEmber.DataAdapter = extensionSupport.DataAdapter;\nEmber.ContainerDebugAdapter = extensionSupport.ContainerDebugAdapter;\n\nif (has('ember-template-compiler')) {\n  require('ember-template-compiler');\n} // do this to ensure that Ember.Test is defined properly on the global\n// if it is present.\n\n\nif (has('ember-testing')) {\n  let testing = require('ember-testing');\n\n  Ember.Test = testing.Test;\n  Ember.Test.Adapter = testing.Adapter;\n  Ember.Test.QUnitAdapter = testing.QUnitAdapter;\n  Ember.setupForTesting = testing.setupForTesting;\n}\n\nrunLoadHooks('Ember');\nexport default Ember;\n\nif (IS_NODE) {\n  module.exports = Ember;\n} else {\n  context.exports.Ember = context.exports.Em = Ember;\n}\n/**\n @module jquery\n @public\n */\n\n/**\n @class jquery\n @public\n @static\n */\n\n/**\n  Alias for jQuery\n\n  @for jquery\n  @method $\n  @static\n  @public\n*/","export default \"3.24.7\";\n","/*global module */\nconst IS_NODE = typeof module === 'object' && typeof module.require === 'function';\nlet exportModule;\nlet exportRequire;\n\nif (IS_NODE) {\n  exportModule = module;\n  exportRequire = module.require;\n} else {\n  exportModule = null;\n  exportRequire = null;\n}\n\nexport { IS_NODE, exportModule as module, exportRequire as require };","var createObject = Object.create;\nfunction createMap() {\n    var map = createObject(null);\n    map[\"__\"] = undefined;\n    delete map[\"__\"];\n    return map;\n}\n\nvar Target = function Target(path, matcher, delegate) {\n    this.path = path;\n    this.matcher = matcher;\n    this.delegate = delegate;\n};\nTarget.prototype.to = function to (target, callback) {\n    var delegate = this.delegate;\n    if (delegate && delegate.willAddRoute) {\n        target = delegate.willAddRoute(this.matcher.target, target);\n    }\n    this.matcher.add(this.path, target);\n    if (callback) {\n        if (callback.length === 0) {\n            throw new Error(\"You must have an argument in the function passed to `to`\");\n        }\n        this.matcher.addChild(this.path, target, callback, this.delegate);\n    }\n};\nvar Matcher = function Matcher(target) {\n    this.routes = createMap();\n    this.children = createMap();\n    this.target = target;\n};\nMatcher.prototype.add = function add (path, target) {\n    this.routes[path] = target;\n};\nMatcher.prototype.addChild = function addChild (path, target, callback, delegate) {\n    var matcher = new Matcher(target);\n    this.children[path] = matcher;\n    var match = generateMatch(path, matcher, delegate);\n    if (delegate && delegate.contextEntered) {\n        delegate.contextEntered(target, match);\n    }\n    callback(match);\n};\nfunction generateMatch(startingPath, matcher, delegate) {\n    function match(path, callback) {\n        var fullPath = startingPath + path;\n        if (callback) {\n            callback(generateMatch(fullPath, matcher, delegate));\n        }\n        else {\n            return new Target(fullPath, matcher, delegate);\n        }\n    }\n    \n    return match;\n}\nfunction addRoute(routeArray, path, handler) {\n    var len = 0;\n    for (var i = 0; i < routeArray.length; i++) {\n        len += routeArray[i].path.length;\n    }\n    path = path.substr(len);\n    var route = { path: path, handler: handler };\n    routeArray.push(route);\n}\nfunction eachRoute(baseRoute, matcher, callback, binding) {\n    var routes = matcher.routes;\n    var paths = Object.keys(routes);\n    for (var i = 0; i < paths.length; i++) {\n        var path = paths[i];\n        var routeArray = baseRoute.slice();\n        addRoute(routeArray, path, routes[path]);\n        var nested = matcher.children[path];\n        if (nested) {\n            eachRoute(routeArray, nested, callback, binding);\n        }\n        else {\n            callback.call(binding, routeArray);\n        }\n    }\n}\nvar map = function (callback, addRouteCallback) {\n    var matcher = new Matcher();\n    callback(generateMatch(\"\", matcher, this.delegate));\n    eachRoute([], matcher, function (routes) {\n        if (addRouteCallback) {\n            addRouteCallback(this, routes);\n        }\n        else {\n            this.add(routes);\n        }\n    }, this);\n};\n\n// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\n// values that are not reserved (i.e., unicode characters, emoji, etc). The reserved\n// chars are \"/\" and \"%\".\n// Safe to call multiple times on the same path.\n// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\nfunction normalizePath(path) {\n    return path.split(\"/\")\n        .map(normalizeSegment)\n        .join(\"/\");\n}\n// We want to ensure the characters \"%\" and \"/\" remain in percent-encoded\n// form when normalizing paths, so replace them with their encoded form after\n// decoding the rest of the path\nvar SEGMENT_RESERVED_CHARS = /%|\\//g;\nfunction normalizeSegment(segment) {\n    if (segment.length < 3 || segment.indexOf(\"%\") === -1)\n        { return segment; }\n    return decodeURIComponent(segment).replace(SEGMENT_RESERVED_CHARS, encodeURIComponent);\n}\n// We do not want to encode these characters when generating dynamic path segments\n// See https://tools.ietf.org/html/rfc3986#section-3.3\n// sub-delims: \"!\", \"$\", \"&\", \"'\", \"(\", \")\", \"*\", \"+\", \",\", \";\", \"=\"\n// others allowed by RFC 3986: \":\", \"@\"\n//\n// First encode the entire path segment, then decode any of the encoded special chars.\n//\n// The chars \"!\", \"'\", \"(\", \")\", \"*\" do not get changed by `encodeURIComponent`,\n// so the possible encoded chars are:\n// ['%24', '%26', '%2B', '%2C', '%3B', '%3D', '%3A', '%40'].\nvar PATH_SEGMENT_ENCODINGS = /%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;\nfunction encodePathSegment(str) {\n    return encodeURIComponent(str).replace(PATH_SEGMENT_ENCODINGS, decodeURIComponent);\n}\n\nvar escapeRegex = /(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)/g;\nvar isArray = Array.isArray;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction getParam(params, key) {\n    if (typeof params !== \"object\" || params === null) {\n        throw new Error(\"You must pass an object as the second argument to `generate`.\");\n    }\n    if (!hasOwnProperty.call(params, key)) {\n        throw new Error(\"You must provide param `\" + key + \"` to `generate`.\");\n    }\n    var value = params[key];\n    var str = typeof value === \"string\" ? value : \"\" + value;\n    if (str.length === 0) {\n        throw new Error(\"You must provide a param `\" + key + \"`.\");\n    }\n    return str;\n}\nvar eachChar = [];\neachChar[0 /* Static */] = function (segment, currentState) {\n    var state = currentState;\n    var value = segment.value;\n    for (var i = 0; i < value.length; i++) {\n        var ch = value.charCodeAt(i);\n        state = state.put(ch, false, false);\n    }\n    return state;\n};\neachChar[1 /* Dynamic */] = function (_, currentState) {\n    return currentState.put(47 /* SLASH */, true, true);\n};\neachChar[2 /* Star */] = function (_, currentState) {\n    return currentState.put(-1 /* ANY */, false, true);\n};\neachChar[4 /* Epsilon */] = function (_, currentState) {\n    return currentState;\n};\nvar regex = [];\nregex[0 /* Static */] = function (segment) {\n    return segment.value.replace(escapeRegex, \"\\\\$1\");\n};\nregex[1 /* Dynamic */] = function () {\n    return \"([^/]+)\";\n};\nregex[2 /* Star */] = function () {\n    return \"(.+)\";\n};\nregex[4 /* Epsilon */] = function () {\n    return \"\";\n};\nvar generate = [];\ngenerate[0 /* Static */] = function (segment) {\n    return segment.value;\n};\ngenerate[1 /* Dynamic */] = function (segment, params) {\n    var value = getParam(params, segment.value);\n    if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n        return encodePathSegment(value);\n    }\n    else {\n        return value;\n    }\n};\ngenerate[2 /* Star */] = function (segment, params) {\n    return getParam(params, segment.value);\n};\ngenerate[4 /* Epsilon */] = function () {\n    return \"\";\n};\nvar EmptyObject = Object.freeze({});\nvar EmptyArray = Object.freeze([]);\n// The `names` will be populated with the paramter name for each dynamic/star\n// segment. `shouldDecodes` will be populated with a boolean for each dyanamic/star\n// segment, indicating whether it should be decoded during recognition.\nfunction parse(segments, route, types) {\n    // normalize route as not starting with a \"/\". Recognition will\n    // also normalize.\n    if (route.length > 0 && route.charCodeAt(0) === 47 /* SLASH */) {\n        route = route.substr(1);\n    }\n    var parts = route.split(\"/\");\n    var names = undefined;\n    var shouldDecodes = undefined;\n    for (var i = 0; i < parts.length; i++) {\n        var part = parts[i];\n        var flags = 0;\n        var type = 0;\n        if (part === \"\") {\n            type = 4 /* Epsilon */;\n        }\n        else if (part.charCodeAt(0) === 58 /* COLON */) {\n            type = 1 /* Dynamic */;\n        }\n        else if (part.charCodeAt(0) === 42 /* STAR */) {\n            type = 2 /* Star */;\n        }\n        else {\n            type = 0 /* Static */;\n        }\n        flags = 2 << type;\n        if (flags & 12 /* Named */) {\n            part = part.slice(1);\n            names = names || [];\n            names.push(part);\n            shouldDecodes = shouldDecodes || [];\n            shouldDecodes.push((flags & 4 /* Decoded */) !== 0);\n        }\n        if (flags & 14 /* Counted */) {\n            types[type]++;\n        }\n        segments.push({\n            type: type,\n            value: normalizeSegment(part)\n        });\n    }\n    return {\n        names: names || EmptyArray,\n        shouldDecodes: shouldDecodes || EmptyArray,\n    };\n}\nfunction isEqualCharSpec(spec, char, negate) {\n    return spec.char === char && spec.negate === negate;\n}\n// A State has a character specification and (`charSpec`) and a list of possible\n// subsequent states (`nextStates`).\n//\n// If a State is an accepting state, it will also have several additional\n// properties:\n//\n// * `regex`: A regular expression that is used to extract parameters from paths\n//   that reached this accepting state.\n// * `handlers`: Information on how to convert the list of captures into calls\n//   to registered handlers with the specified parameters\n// * `types`: How many static, dynamic or star segments in this route. Used to\n//   decide which route to use if multiple registered routes match a path.\n//\n// Currently, State is implemented naively by looping over `nextStates` and\n// comparing a character specification against a character. A more efficient\n// implementation would use a hash of keys pointing at one or more next states.\nvar State = function State(states, id, char, negate, repeat) {\n    this.states = states;\n    this.id = id;\n    this.char = char;\n    this.negate = negate;\n    this.nextStates = repeat ? id : null;\n    this.pattern = \"\";\n    this._regex = undefined;\n    this.handlers = undefined;\n    this.types = undefined;\n};\nState.prototype.regex = function regex$1 () {\n    if (!this._regex) {\n        this._regex = new RegExp(this.pattern);\n    }\n    return this._regex;\n};\nState.prototype.get = function get (char, negate) {\n        var this$1 = this;\n\n    var nextStates = this.nextStates;\n    if (nextStates === null)\n        { return; }\n    if (isArray(nextStates)) {\n        for (var i = 0; i < nextStates.length; i++) {\n            var child = this$1.states[nextStates[i]];\n            if (isEqualCharSpec(child, char, negate)) {\n                return child;\n            }\n        }\n    }\n    else {\n        var child$1 = this.states[nextStates];\n        if (isEqualCharSpec(child$1, char, negate)) {\n            return child$1;\n        }\n    }\n};\nState.prototype.put = function put (char, negate, repeat) {\n    var state;\n    // If the character specification already exists in a child of the current\n    // state, just return that state.\n    if (state = this.get(char, negate)) {\n        return state;\n    }\n    // Make a new state for the character spec\n    var states = this.states;\n    state = new State(states, states.length, char, negate, repeat);\n    states[states.length] = state;\n    // Insert the new state as a child of the current state\n    if (this.nextStates == null) {\n        this.nextStates = state.id;\n    }\n    else if (isArray(this.nextStates)) {\n        this.nextStates.push(state.id);\n    }\n    else {\n        this.nextStates = [this.nextStates, state.id];\n    }\n    // Return the new state\n    return state;\n};\n// Find a list of child states matching the next character\nState.prototype.match = function match (ch) {\n        var this$1 = this;\n\n    var nextStates = this.nextStates;\n    if (!nextStates)\n        { return []; }\n    var returned = [];\n    if (isArray(nextStates)) {\n        for (var i = 0; i < nextStates.length; i++) {\n            var child = this$1.states[nextStates[i]];\n            if (isMatch(child, ch)) {\n                returned.push(child);\n            }\n        }\n    }\n    else {\n        var child$1 = this.states[nextStates];\n        if (isMatch(child$1, ch)) {\n            returned.push(child$1);\n        }\n    }\n    return returned;\n};\nfunction isMatch(spec, char) {\n    return spec.negate ? spec.char !== char && spec.char !== -1 /* ANY */ : spec.char === char || spec.char === -1 /* ANY */;\n}\n// This is a somewhat naive strategy, but should work in a lot of cases\n// A better strategy would properly resolve /posts/:id/new and /posts/edit/:id.\n//\n// This strategy generally prefers more static and less dynamic matching.\n// Specifically, it\n//\n//  * prefers fewer stars to more, then\n//  * prefers using stars for less of the match to more, then\n//  * prefers fewer dynamic segments to more, then\n//  * prefers more static segments to more\nfunction sortSolutions(states) {\n    return states.sort(function (a, b) {\n        var ref = a.types || [0, 0, 0];\n        var astatics = ref[0];\n        var adynamics = ref[1];\n        var astars = ref[2];\n        var ref$1 = b.types || [0, 0, 0];\n        var bstatics = ref$1[0];\n        var bdynamics = ref$1[1];\n        var bstars = ref$1[2];\n        if (astars !== bstars) {\n            return astars - bstars;\n        }\n        if (astars) {\n            if (astatics !== bstatics) {\n                return bstatics - astatics;\n            }\n            if (adynamics !== bdynamics) {\n                return bdynamics - adynamics;\n            }\n        }\n        if (adynamics !== bdynamics) {\n            return adynamics - bdynamics;\n        }\n        if (astatics !== bstatics) {\n            return bstatics - astatics;\n        }\n        return 0;\n    });\n}\nfunction recognizeChar(states, ch) {\n    var nextStates = [];\n    for (var i = 0, l = states.length; i < l; i++) {\n        var state = states[i];\n        nextStates = nextStates.concat(state.match(ch));\n    }\n    return nextStates;\n}\nvar RecognizeResults = function RecognizeResults(queryParams) {\n    this.length = 0;\n    this.queryParams = queryParams || {};\n};\n\nRecognizeResults.prototype.splice = Array.prototype.splice;\nRecognizeResults.prototype.slice = Array.prototype.slice;\nRecognizeResults.prototype.push = Array.prototype.push;\nfunction findHandler(state, originalPath, queryParams) {\n    var handlers = state.handlers;\n    var regex = state.regex();\n    if (!regex || !handlers)\n        { throw new Error(\"state not initialized\"); }\n    var captures = originalPath.match(regex);\n    var currentCapture = 1;\n    var result = new RecognizeResults(queryParams);\n    result.length = handlers.length;\n    for (var i = 0; i < handlers.length; i++) {\n        var handler = handlers[i];\n        var names = handler.names;\n        var shouldDecodes = handler.shouldDecodes;\n        var params = EmptyObject;\n        var isDynamic = false;\n        if (names !== EmptyArray && shouldDecodes !== EmptyArray) {\n            for (var j = 0; j < names.length; j++) {\n                isDynamic = true;\n                var name = names[j];\n                var capture = captures && captures[currentCapture++];\n                if (params === EmptyObject) {\n                    params = {};\n                }\n                if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS && shouldDecodes[j]) {\n                    params[name] = capture && decodeURIComponent(capture);\n                }\n                else {\n                    params[name] = capture;\n                }\n            }\n        }\n        result[i] = {\n            handler: handler.handler,\n            params: params,\n            isDynamic: isDynamic\n        };\n    }\n    return result;\n}\nfunction decodeQueryParamPart(part) {\n    // http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1\n    part = part.replace(/\\+/gm, \"%20\");\n    var result;\n    try {\n        result = decodeURIComponent(part);\n    }\n    catch (error) {\n        result = \"\";\n    }\n    return result;\n}\nvar RouteRecognizer = function RouteRecognizer() {\n    this.names = createMap();\n    var states = [];\n    var state = new State(states, 0, -1 /* ANY */, true, false);\n    states[0] = state;\n    this.states = states;\n    this.rootState = state;\n};\nRouteRecognizer.prototype.add = function add (routes, options) {\n    var currentState = this.rootState;\n    var pattern = \"^\";\n    var types = [0, 0, 0];\n    var handlers = new Array(routes.length);\n    var allSegments = [];\n    var isEmpty = true;\n    var j = 0;\n    for (var i = 0; i < routes.length; i++) {\n        var route = routes[i];\n        var ref = parse(allSegments, route.path, types);\n            var names = ref.names;\n            var shouldDecodes = ref.shouldDecodes;\n        // preserve j so it points to the start of newly added segments\n        for (; j < allSegments.length; j++) {\n            var segment = allSegments[j];\n            if (segment.type === 4 /* Epsilon */) {\n                continue;\n            }\n            isEmpty = false;\n            // Add a \"/\" for the new segment\n            currentState = currentState.put(47 /* SLASH */, false, false);\n            pattern += \"/\";\n            // Add a representation of the segment to the NFA and regex\n            currentState = eachChar[segment.type](segment, currentState);\n            pattern += regex[segment.type](segment);\n        }\n        handlers[i] = {\n            handler: route.handler,\n            names: names,\n            shouldDecodes: shouldDecodes\n        };\n    }\n    if (isEmpty) {\n        currentState = currentState.put(47 /* SLASH */, false, false);\n        pattern += \"/\";\n    }\n    currentState.handlers = handlers;\n    currentState.pattern = pattern + \"$\";\n    currentState.types = types;\n    var name;\n    if (typeof options === \"object\" && options !== null && options.as) {\n        name = options.as;\n    }\n    if (name) {\n        // if (this.names[name]) {\n        //   throw new Error(\"You may not add a duplicate route named `\" + name + \"`.\");\n        // }\n        this.names[name] = {\n            segments: allSegments,\n            handlers: handlers\n        };\n    }\n};\nRouteRecognizer.prototype.handlersFor = function handlersFor (name) {\n    var route = this.names[name];\n    if (!route) {\n        throw new Error(\"There is no route named \" + name);\n    }\n    var result = new Array(route.handlers.length);\n    for (var i = 0; i < route.handlers.length; i++) {\n        var handler = route.handlers[i];\n        result[i] = handler;\n    }\n    return result;\n};\nRouteRecognizer.prototype.hasRoute = function hasRoute (name) {\n    return !!this.names[name];\n};\nRouteRecognizer.prototype.generate = function generate$1 (name, params) {\n    var route = this.names[name];\n    var output = \"\";\n    if (!route) {\n        throw new Error(\"There is no route named \" + name);\n    }\n    var segments = route.segments;\n    for (var i = 0; i < segments.length; i++) {\n        var segment = segments[i];\n        if (segment.type === 4 /* Epsilon */) {\n            continue;\n        }\n        output += \"/\";\n        output += generate[segment.type](segment, params);\n    }\n    if (output.charAt(0) !== \"/\") {\n        output = \"/\" + output;\n    }\n    if (params && params.queryParams) {\n        output += this.generateQueryString(params.queryParams);\n    }\n    return output;\n};\nRouteRecognizer.prototype.generateQueryString = function generateQueryString (params) {\n    var pairs = [];\n    var keys = Object.keys(params);\n    keys.sort();\n    for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        var value = params[key];\n        if (value == null) {\n            continue;\n        }\n        var pair = encodeURIComponent(key);\n        if (isArray(value)) {\n            for (var j = 0; j < value.length; j++) {\n                var arrayPair = key + \"[]\" + \"=\" + encodeURIComponent(value[j]);\n                pairs.push(arrayPair);\n            }\n        }\n        else {\n            pair += \"=\" + encodeURIComponent(value);\n            pairs.push(pair);\n        }\n    }\n    if (pairs.length === 0) {\n        return \"\";\n    }\n    return \"?\" + pairs.join(\"&\");\n};\nRouteRecognizer.prototype.parseQueryString = function parseQueryString (queryString) {\n    var pairs = queryString.split(\"&\");\n    var queryParams = {};\n    for (var i = 0; i < pairs.length; i++) {\n        var pair = pairs[i].split(\"=\"), key = decodeQueryParamPart(pair[0]), keyLength = key.length, isArray = false, value = (void 0);\n        if (pair.length === 1) {\n            value = \"true\";\n        }\n        else {\n            // Handle arrays\n            if (keyLength > 2 && key.slice(keyLength - 2) === \"[]\") {\n                isArray = true;\n                key = key.slice(0, keyLength - 2);\n                if (!queryParams[key]) {\n                    queryParams[key] = [];\n                }\n            }\n            value = pair[1] ? decodeQueryParamPart(pair[1]) : \"\";\n        }\n        if (isArray) {\n            queryParams[key].push(value);\n        }\n        else {\n            queryParams[key] = value;\n        }\n    }\n    return queryParams;\n};\nRouteRecognizer.prototype.recognize = function recognize (path) {\n    var results;\n    var states = [this.rootState];\n    var queryParams = {};\n    var isSlashDropped = false;\n    var hashStart = path.indexOf(\"#\");\n    if (hashStart !== -1) {\n        path = path.substr(0, hashStart);\n    }\n    var queryStart = path.indexOf(\"?\");\n    if (queryStart !== -1) {\n        var queryString = path.substr(queryStart + 1, path.length);\n        path = path.substr(0, queryStart);\n        queryParams = this.parseQueryString(queryString);\n    }\n    if (path.charAt(0) !== \"/\") {\n        path = \"/\" + path;\n    }\n    var originalPath = path;\n    if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n        path = normalizePath(path);\n    }\n    else {\n        path = decodeURI(path);\n        originalPath = decodeURI(originalPath);\n    }\n    var pathLen = path.length;\n    if (pathLen > 1 && path.charAt(pathLen - 1) === \"/\") {\n        path = path.substr(0, pathLen - 1);\n        originalPath = originalPath.substr(0, originalPath.length - 1);\n        isSlashDropped = true;\n    }\n    for (var i = 0; i < path.length; i++) {\n        states = recognizeChar(states, path.charCodeAt(i));\n        if (!states.length) {\n            break;\n        }\n    }\n    var solutions = [];\n    for (var i$1 = 0; i$1 < states.length; i$1++) {\n        if (states[i$1].handlers) {\n            solutions.push(states[i$1]);\n        }\n    }\n    states = sortSolutions(solutions);\n    var state = solutions[0];\n    if (state && state.handlers) {\n        // if a trailing slash was dropped and a star segment is the last segment\n        // specified, put the trailing slash back\n        if (isSlashDropped && state.pattern && state.pattern.slice(-5) === \"(.+)$\") {\n            originalPath = originalPath + \"/\";\n        }\n        results = findHandler(state, originalPath, queryParams);\n    }\n    return results;\n};\nRouteRecognizer.VERSION = \"0.3.4\";\n// Set to false to opt-out of encoding and decoding path segments.\n// See https://github.com/tildeio/route-recognizer/pull/55\nRouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS = true;\nRouteRecognizer.Normalizer = {\n    normalizeSegment: normalizeSegment, normalizePath: normalizePath, encodePathSegment: encodePathSegment\n};\nRouteRecognizer.prototype.map = map;\n\nexport default RouteRecognizer;\n\n//# sourceMappingURL=route-recognizer.es.js.map\n","import { Promise } from 'rsvp';\nimport { DEBUG } from '@glimmer/env';\nimport RouteRecognizer from 'route-recognizer';\n\nfunction buildTransitionAborted() {\n    let error = new Error('TransitionAborted');\n    error.name = 'TransitionAborted';\n    error.code = 'TRANSITION_ABORTED';\n    return error;\n}\nfunction isTransitionAborted(maybeError) {\n    return (typeof maybeError === 'object' &&\n        maybeError !== null &&\n        maybeError.code === 'TRANSITION_ABORTED');\n}\nfunction isAbortable(maybeAbortable) {\n    return (typeof maybeAbortable === 'object' &&\n        maybeAbortable !== null &&\n        typeof maybeAbortable.isAborted === 'boolean');\n}\nfunction throwIfAborted(maybe) {\n    if (isAbortable(maybe) && maybe.isAborted) {\n        throw buildTransitionAborted();\n    }\n}\n\nconst slice = Array.prototype.slice;\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\n/**\n  Determines if an object is Promise by checking if it is \"thenable\".\n**/\nfunction isPromise(p) {\n    return p !== null && typeof p === 'object' && typeof p.then === 'function';\n}\nfunction merge(hash, other) {\n    for (let prop in other) {\n        if (hasOwnProperty.call(other, prop)) {\n            hash[prop] = other[prop];\n        }\n    }\n}\n/**\n  @private\n\n  Extracts query params from the end of an array\n**/\nfunction extractQueryParams(array) {\n    let len = array && array.length, head, queryParams;\n    if (len && len > 0) {\n        let obj = array[len - 1];\n        if (isQueryParams(obj)) {\n            queryParams = obj.queryParams;\n            head = slice.call(array, 0, len - 1);\n            return [head, queryParams];\n        }\n    }\n    return [array, null];\n}\nfunction isQueryParams(obj) {\n    return obj && hasOwnProperty.call(obj, 'queryParams');\n}\n/**\n  @private\n\n  Coerces query param properties and array elements into strings.\n**/\nfunction coerceQueryParamsToString(queryParams) {\n    for (let key in queryParams) {\n        let val = queryParams[key];\n        if (typeof val === 'number') {\n            queryParams[key] = '' + val;\n        }\n        else if (Array.isArray(val)) {\n            for (let i = 0, l = val.length; i < l; i++) {\n                val[i] = '' + val[i];\n            }\n        }\n    }\n}\n/**\n  @private\n */\nfunction log(router, ...args) {\n    if (!router.log) {\n        return;\n    }\n    if (args.length === 2) {\n        let [sequence, msg] = args;\n        router.log('Transition #' + sequence + ': ' + msg);\n    }\n    else {\n        let [msg] = args;\n        router.log(msg);\n    }\n}\nfunction isParam(object) {\n    return (typeof object === 'string' ||\n        object instanceof String ||\n        typeof object === 'number' ||\n        object instanceof Number);\n}\nfunction forEach(array, callback) {\n    for (let i = 0, l = array.length; i < l && callback(array[i]) !== false; i++) {\n        // empty intentionally\n    }\n}\nfunction getChangelist(oldObject, newObject) {\n    let key;\n    let results = {\n        all: {},\n        changed: {},\n        removed: {},\n    };\n    merge(results.all, newObject);\n    let didChange = false;\n    coerceQueryParamsToString(oldObject);\n    coerceQueryParamsToString(newObject);\n    // Calculate removals\n    for (key in oldObject) {\n        if (hasOwnProperty.call(oldObject, key)) {\n            if (!hasOwnProperty.call(newObject, key)) {\n                didChange = true;\n                results.removed[key] = oldObject[key];\n            }\n        }\n    }\n    // Calculate changes\n    for (key in newObject) {\n        if (hasOwnProperty.call(newObject, key)) {\n            let oldElement = oldObject[key];\n            let newElement = newObject[key];\n            if (isArray(oldElement) && isArray(newElement)) {\n                if (oldElement.length !== newElement.length) {\n                    results.changed[key] = newObject[key];\n                    didChange = true;\n                }\n                else {\n                    for (let i = 0, l = oldElement.length; i < l; i++) {\n                        if (oldElement[i] !== newElement[i]) {\n                            results.changed[key] = newObject[key];\n                            didChange = true;\n                        }\n                    }\n                }\n            }\n            else if (oldObject[key] !== newObject[key]) {\n                results.changed[key] = newObject[key];\n                didChange = true;\n            }\n        }\n    }\n    return didChange ? results : undefined;\n}\nfunction isArray(obj) {\n    return Array.isArray(obj);\n}\nfunction promiseLabel(label) {\n    return 'Router: ' + label;\n}\n\nconst STATE_SYMBOL = `__STATE__-2619860001345920-3322w3`;\nconst PARAMS_SYMBOL = `__PARAMS__-261986232992830203-23323`;\nconst QUERY_PARAMS_SYMBOL = `__QPS__-2619863929824844-32323`;\n/**\n  A Transition is a thenable (a promise-like object) that represents\n  an attempt to transition to another route. It can be aborted, either\n  explicitly via `abort` or by attempting another transition while a\n  previous one is still underway. An aborted transition can also\n  be `retry()`d later.\n\n  @class Transition\n  @constructor\n  @param {Object} router\n  @param {Object} intent\n  @param {Object} state\n  @param {Object} error\n  @private\n */\nclass Transition {\n    constructor(router, intent, state, error = undefined, previousTransition = undefined) {\n        this.from = null;\n        this.to = undefined;\n        this.isAborted = false;\n        this.isActive = true;\n        this.urlMethod = 'update';\n        this.resolveIndex = 0;\n        this.queryParamsOnly = false;\n        this.isTransition = true;\n        this.isCausedByAbortingTransition = false;\n        this.isCausedByInitialTransition = false;\n        this.isCausedByAbortingReplaceTransition = false;\n        this._visibleQueryParams = {};\n        this.isIntermediate = false;\n        this[STATE_SYMBOL] = state || router.state;\n        this.intent = intent;\n        this.router = router;\n        this.data = (intent && intent.data) || {};\n        this.resolvedModels = {};\n        this[QUERY_PARAMS_SYMBOL] = {};\n        this.promise = undefined;\n        this.error = undefined;\n        this[PARAMS_SYMBOL] = {};\n        this.routeInfos = [];\n        this.targetName = undefined;\n        this.pivotHandler = undefined;\n        this.sequence = -1;\n        if (DEBUG) {\n            let error = new Error(`Transition creation stack`);\n            this.debugCreationStack = () => error.stack;\n            // not aborted yet, will be replaced when `this.isAborted` is set\n            this.debugAbortStack = () => undefined;\n            this.debugPreviousTransition = previousTransition;\n        }\n        if (error) {\n            this.promise = Promise.reject(error);\n            this.error = error;\n            return;\n        }\n        // if you're doing multiple redirects, need the new transition to know if it\n        // is actually part of the first transition or not. Any further redirects\n        // in the initial transition also need to know if they are part of the\n        // initial transition\n        this.isCausedByAbortingTransition = !!previousTransition;\n        this.isCausedByInitialTransition =\n            !!previousTransition &&\n                (previousTransition.isCausedByInitialTransition || previousTransition.sequence === 0);\n        // Every transition in the chain is a replace\n        this.isCausedByAbortingReplaceTransition =\n            !!previousTransition &&\n                previousTransition.urlMethod === 'replace' &&\n                (!previousTransition.isCausedByAbortingTransition ||\n                    previousTransition.isCausedByAbortingReplaceTransition);\n        if (state) {\n            this[PARAMS_SYMBOL] = state.params;\n            this[QUERY_PARAMS_SYMBOL] = state.queryParams;\n            this.routeInfos = state.routeInfos;\n            let len = state.routeInfos.length;\n            if (len) {\n                this.targetName = state.routeInfos[len - 1].name;\n            }\n            for (let i = 0; i < len; ++i) {\n                let handlerInfo = state.routeInfos[i];\n                // TODO: this all seems hacky\n                if (!handlerInfo.isResolved) {\n                    break;\n                }\n                this.pivotHandler = handlerInfo.route;\n            }\n            this.sequence = router.currentSequence++;\n            this.promise = state.resolve(this).catch((result) => {\n                let error = this.router.transitionDidError(result, this);\n                throw error;\n            }, promiseLabel('Handle Abort'));\n        }\n        else {\n            this.promise = Promise.resolve(this[STATE_SYMBOL]);\n            this[PARAMS_SYMBOL] = {};\n        }\n    }\n    /**\n      The Transition's internal promise. Calling `.then` on this property\n      is that same as calling `.then` on the Transition object itself, but\n      this property is exposed for when you want to pass around a\n      Transition's promise, but not the Transition object itself, since\n      Transition object can be externally `abort`ed, while the promise\n      cannot.\n  \n      @property promise\n      @type {Object}\n      @public\n     */\n    /**\n      Custom state can be stored on a Transition's `data` object.\n      This can be useful for decorating a Transition within an earlier\n      hook and shared with a later hook. Properties set on `data` will\n      be copied to new transitions generated by calling `retry` on this\n      transition.\n  \n      @property data\n      @type {Object}\n      @public\n     */\n    /**\n      A standard promise hook that resolves if the transition\n      succeeds and rejects if it fails/redirects/aborts.\n  \n      Forwards to the internal `promise` property which you can\n      use in situations where you want to pass around a thenable,\n      but not the Transition itself.\n  \n      @method then\n      @param {Function} onFulfilled\n      @param {Function} onRejected\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n      @public\n     */\n    then(onFulfilled, onRejected, label) {\n        return this.promise.then(onFulfilled, onRejected, label);\n    }\n    /**\n  \n      Forwards to the internal `promise` property which you can\n      use in situations where you want to pass around a thennable,\n      but not the Transition itself.\n  \n      @method catch\n      @param {Function} onRejection\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n      @public\n     */\n    catch(onRejection, label) {\n        return this.promise.catch(onRejection, label);\n    }\n    /**\n  \n      Forwards to the internal `promise` property which you can\n      use in situations where you want to pass around a thenable,\n      but not the Transition itself.\n  \n      @method finally\n      @param {Function} callback\n      @param {String} label optional string for labeling the promise.\n      Useful for tooling.\n      @return {Promise}\n      @public\n     */\n    finally(callback, label) {\n        return this.promise.finally(callback, label);\n    }\n    /**\n      Aborts the Transition. Note you can also implicitly abort a transition\n      by initiating another transition while a previous one is underway.\n  \n      @method abort\n      @return {Transition} this transition\n      @public\n     */\n    abort() {\n        this.rollback();\n        let transition = new Transition(this.router, undefined, undefined, undefined);\n        transition.to = this.from;\n        transition.from = this.from;\n        transition.isAborted = true;\n        this.router.routeWillChange(transition);\n        this.router.routeDidChange(transition);\n        return this;\n    }\n    rollback() {\n        if (!this.isAborted) {\n            log(this.router, this.sequence, this.targetName + ': transition was aborted');\n            if (DEBUG) {\n                let error = new Error(`Transition aborted stack`);\n                this.debugAbortStack = () => error.stack;\n            }\n            if (this.intent !== undefined && this.intent !== null) {\n                this.intent.preTransitionState = this.router.state;\n            }\n            this.isAborted = true;\n            this.isActive = false;\n            this.router.activeTransition = undefined;\n        }\n    }\n    redirect(newTransition) {\n        this.rollback();\n        this.router.routeWillChange(newTransition);\n    }\n    /**\n  \n      Retries a previously-aborted transition (making sure to abort the\n      transition if it's still active). Returns a new transition that\n      represents the new attempt to transition.\n  \n      @method retry\n      @return {Transition} new transition\n      @public\n     */\n    retry() {\n        // TODO: add tests for merged state retry()s\n        this.abort();\n        let newTransition = this.router.transitionByIntent(this.intent, false);\n        // inheriting a `null` urlMethod is not valid\n        // the urlMethod is only set to `null` when\n        // the transition is initiated *after* the url\n        // has been updated (i.e. `router.handleURL`)\n        //\n        // in that scenario, the url method cannot be\n        // inherited for a new transition because then\n        // the url would not update even though it should\n        if (this.urlMethod !== null) {\n            newTransition.method(this.urlMethod);\n        }\n        return newTransition;\n    }\n    /**\n  \n      Sets the URL-changing method to be employed at the end of a\n      successful transition. By default, a new Transition will just\n      use `updateURL`, but passing 'replace' to this method will\n      cause the URL to update using 'replaceWith' instead. Omitting\n      a parameter will disable the URL change, allowing for transitions\n      that don't update the URL at completion (this is also used for\n      handleURL, since the URL has already changed before the\n      transition took place).\n  \n      @method method\n      @param {String} method the type of URL-changing method to use\n        at the end of a transition. Accepted values are 'replace',\n        falsy values, or any other non-falsy value (which is\n        interpreted as an updateURL transition).\n  \n      @return {Transition} this transition\n      @public\n     */\n    method(method) {\n        this.urlMethod = method;\n        return this;\n    }\n    // Alias 'trigger' as 'send'\n    send(ignoreFailure = false, _name, err, transition, handler) {\n        this.trigger(ignoreFailure, _name, err, transition, handler);\n    }\n    /**\n  \n      Fires an event on the current list of resolved/resolving\n      handlers within this transition. Useful for firing events\n      on route hierarchies that haven't fully been entered yet.\n  \n      Note: This method is also aliased as `send`\n  \n      @method trigger\n      @param {Boolean} [ignoreFailure=false] a boolean specifying whether unhandled events throw an error\n      @param {String} name the name of the event to fire\n      @public\n     */\n    trigger(ignoreFailure = false, name, ...args) {\n        // TODO: Deprecate the current signature\n        if (typeof ignoreFailure === 'string') {\n            name = ignoreFailure;\n            ignoreFailure = false;\n        }\n        this.router.triggerEvent(this[STATE_SYMBOL].routeInfos.slice(0, this.resolveIndex + 1), ignoreFailure, name, args);\n    }\n    /**\n      Transitions are aborted and their promises rejected\n      when redirects occur; this method returns a promise\n      that will follow any redirects that occur and fulfill\n      with the value fulfilled by any redirecting transitions\n      that occur.\n  \n      @method followRedirects\n      @return {Promise} a promise that fulfills with the same\n        value that the final redirecting transition fulfills with\n      @public\n     */\n    followRedirects() {\n        let router = this.router;\n        return this.promise.catch(function (reason) {\n            if (router.activeTransition) {\n                return router.activeTransition.followRedirects();\n            }\n            return Promise.reject(reason);\n        });\n    }\n    toString() {\n        return 'Transition (sequence ' + this.sequence + ')';\n    }\n    /**\n      @private\n     */\n    log(message) {\n        log(this.router, this.sequence, message);\n    }\n}\n/**\n  @private\n\n  Logs and returns an instance of TransitionAborted.\n */\nfunction logAbort(transition) {\n    log(transition.router, transition.sequence, 'detected abort.');\n    return buildTransitionAborted();\n}\nfunction isTransition(obj) {\n    return typeof obj === 'object' && obj instanceof Transition && obj.isTransition;\n}\nfunction prepareResult(obj) {\n    if (isTransition(obj)) {\n        return null;\n    }\n    return obj;\n}\n\nlet ROUTE_INFOS = new WeakMap();\nfunction toReadOnlyRouteInfo(routeInfos, queryParams = {}, includeAttributes = false) {\n    return routeInfos.map((info, i) => {\n        let { name, params, paramNames, context, route } = info;\n        if (ROUTE_INFOS.has(info) && includeAttributes) {\n            let routeInfo = ROUTE_INFOS.get(info);\n            routeInfo = attachMetadata(route, routeInfo);\n            let routeInfoWithAttribute = createRouteInfoWithAttributes(routeInfo, context);\n            ROUTE_INFOS.set(info, routeInfoWithAttribute);\n            return routeInfoWithAttribute;\n        }\n        let routeInfo = {\n            find(predicate, thisArg) {\n                let publicInfo;\n                let arr = [];\n                if (predicate.length === 3) {\n                    arr = routeInfos.map((info) => ROUTE_INFOS.get(info));\n                }\n                for (let i = 0; routeInfos.length > i; i++) {\n                    publicInfo = ROUTE_INFOS.get(routeInfos[i]);\n                    if (predicate.call(thisArg, publicInfo, i, arr)) {\n                        return publicInfo;\n                    }\n                }\n                return undefined;\n            },\n            get name() {\n                return name;\n            },\n            get paramNames() {\n                return paramNames;\n            },\n            get metadata() {\n                return buildRouteInfoMetadata(info.route);\n            },\n            get parent() {\n                let parent = routeInfos[i - 1];\n                if (parent === undefined) {\n                    return null;\n                }\n                return ROUTE_INFOS.get(parent);\n            },\n            get child() {\n                let child = routeInfos[i + 1];\n                if (child === undefined) {\n                    return null;\n                }\n                return ROUTE_INFOS.get(child);\n            },\n            get localName() {\n                let parts = this.name.split('.');\n                return parts[parts.length - 1];\n            },\n            get params() {\n                return params;\n            },\n            get queryParams() {\n                return queryParams;\n            },\n        };\n        if (includeAttributes) {\n            routeInfo = createRouteInfoWithAttributes(routeInfo, context);\n        }\n        ROUTE_INFOS.set(info, routeInfo);\n        return routeInfo;\n    });\n}\nfunction createRouteInfoWithAttributes(routeInfo, context) {\n    let attributes = {\n        get attributes() {\n            return context;\n        },\n    };\n    if (!Object.isExtensible(routeInfo) || routeInfo.hasOwnProperty('attributes')) {\n        return Object.freeze(Object.assign({}, routeInfo, attributes));\n    }\n    return Object.assign(routeInfo, attributes);\n}\nfunction buildRouteInfoMetadata(route) {\n    if (route !== undefined && route !== null && route.buildRouteInfoMetadata !== undefined) {\n        return route.buildRouteInfoMetadata();\n    }\n    return null;\n}\nfunction attachMetadata(route, routeInfo) {\n    let metadata = {\n        get metadata() {\n            return buildRouteInfoMetadata(route);\n        },\n    };\n    if (!Object.isExtensible(routeInfo) || routeInfo.hasOwnProperty('metadata')) {\n        return Object.freeze(Object.assign({}, routeInfo, metadata));\n    }\n    return Object.assign(routeInfo, metadata);\n}\nclass InternalRouteInfo {\n    constructor(router, name, paramNames, route) {\n        this._routePromise = undefined;\n        this._route = null;\n        this.params = {};\n        this.isResolved = false;\n        this.name = name;\n        this.paramNames = paramNames;\n        this.router = router;\n        if (route) {\n            this._processRoute(route);\n        }\n    }\n    getModel(_transition) {\n        return Promise.resolve(this.context);\n    }\n    serialize(_context) {\n        return this.params || {};\n    }\n    resolve(transition) {\n        return Promise.resolve(this.routePromise)\n            .then((route) => {\n            throwIfAborted(transition);\n            return route;\n        })\n            .then(() => this.runBeforeModelHook(transition))\n            .then(() => throwIfAborted(transition))\n            .then(() => this.getModel(transition))\n            .then((resolvedModel) => {\n            throwIfAborted(transition);\n            return resolvedModel;\n        })\n            .then((resolvedModel) => this.runAfterModelHook(transition, resolvedModel))\n            .then((resolvedModel) => this.becomeResolved(transition, resolvedModel));\n    }\n    becomeResolved(transition, resolvedContext) {\n        let params = this.serialize(resolvedContext);\n        if (transition) {\n            this.stashResolvedModel(transition, resolvedContext);\n            transition[PARAMS_SYMBOL] = transition[PARAMS_SYMBOL] || {};\n            transition[PARAMS_SYMBOL][this.name] = params;\n        }\n        let context;\n        let contextsMatch = resolvedContext === this.context;\n        if ('context' in this || !contextsMatch) {\n            context = resolvedContext;\n        }\n        let cached = ROUTE_INFOS.get(this);\n        let resolved = new ResolvedRouteInfo(this.router, this.name, this.paramNames, params, this.route, context);\n        if (cached !== undefined) {\n            ROUTE_INFOS.set(resolved, cached);\n        }\n        return resolved;\n    }\n    shouldSupersede(routeInfo) {\n        // Prefer this newer routeInfo over `other` if:\n        // 1) The other one doesn't exist\n        // 2) The names don't match\n        // 3) This route has a context that doesn't match\n        //    the other one (or the other one doesn't have one).\n        // 4) This route has parameters that don't match the other.\n        if (!routeInfo) {\n            return true;\n        }\n        let contextsMatch = routeInfo.context === this.context;\n        return (routeInfo.name !== this.name ||\n            ('context' in this && !contextsMatch) ||\n            (this.hasOwnProperty('params') && !paramsMatch(this.params, routeInfo.params)));\n    }\n    get route() {\n        // _route could be set to either a route object or undefined, so we\n        // compare against null to know when it's been set\n        if (this._route !== null) {\n            return this._route;\n        }\n        return this.fetchRoute();\n    }\n    set route(route) {\n        this._route = route;\n    }\n    get routePromise() {\n        if (this._routePromise) {\n            return this._routePromise;\n        }\n        this.fetchRoute();\n        return this._routePromise;\n    }\n    set routePromise(routePromise) {\n        this._routePromise = routePromise;\n    }\n    log(transition, message) {\n        if (transition.log) {\n            transition.log(this.name + ': ' + message);\n        }\n    }\n    updateRoute(route) {\n        route._internalName = this.name;\n        return (this.route = route);\n    }\n    runBeforeModelHook(transition) {\n        if (transition.trigger) {\n            transition.trigger(true, 'willResolveModel', transition, this.route);\n        }\n        let result;\n        if (this.route) {\n            if (this.route.beforeModel !== undefined) {\n                result = this.route.beforeModel(transition);\n            }\n        }\n        if (isTransition(result)) {\n            result = null;\n        }\n        return Promise.resolve(result);\n    }\n    runAfterModelHook(transition, resolvedModel) {\n        // Stash the resolved model on the payload.\n        // This makes it possible for users to swap out\n        // the resolved model in afterModel.\n        let name = this.name;\n        this.stashResolvedModel(transition, resolvedModel);\n        let result;\n        if (this.route !== undefined) {\n            if (this.route.afterModel !== undefined) {\n                result = this.route.afterModel(resolvedModel, transition);\n            }\n        }\n        result = prepareResult(result);\n        return Promise.resolve(result).then(() => {\n            // Ignore the fulfilled value returned from afterModel.\n            // Return the value stashed in resolvedModels, which\n            // might have been swapped out in afterModel.\n            return transition.resolvedModels[name];\n        });\n    }\n    stashResolvedModel(transition, resolvedModel) {\n        transition.resolvedModels = transition.resolvedModels || {};\n        transition.resolvedModels[this.name] = resolvedModel;\n    }\n    fetchRoute() {\n        let route = this.router.getRoute(this.name);\n        return this._processRoute(route);\n    }\n    _processRoute(route) {\n        // Setup a routePromise so that we can wait for asynchronously loaded routes\n        this.routePromise = Promise.resolve(route);\n        // Wait until the 'route' property has been updated when chaining to a route\n        // that is a promise\n        if (isPromise(route)) {\n            this.routePromise = this.routePromise.then((r) => {\n                return this.updateRoute(r);\n            });\n            // set to undefined to avoid recursive loop in the route getter\n            return (this.route = undefined);\n        }\n        else if (route) {\n            return this.updateRoute(route);\n        }\n        return undefined;\n    }\n}\nclass ResolvedRouteInfo extends InternalRouteInfo {\n    constructor(router, name, paramNames, params, route, context) {\n        super(router, name, paramNames, route);\n        this.params = params;\n        this.isResolved = true;\n        this.context = context;\n    }\n    resolve(transition) {\n        // A ResolvedRouteInfo just resolved with itself.\n        if (transition && transition.resolvedModels) {\n            transition.resolvedModels[this.name] = this.context;\n        }\n        return Promise.resolve(this);\n    }\n}\nclass UnresolvedRouteInfoByParam extends InternalRouteInfo {\n    constructor(router, name, paramNames, params, route) {\n        super(router, name, paramNames, route);\n        this.params = {};\n        this.params = params;\n    }\n    getModel(transition) {\n        let fullParams = this.params;\n        if (transition && transition[QUERY_PARAMS_SYMBOL]) {\n            fullParams = {};\n            merge(fullParams, this.params);\n            fullParams.queryParams = transition[QUERY_PARAMS_SYMBOL];\n        }\n        let route = this.route;\n        let result;\n        if (route.deserialize) {\n            result = route.deserialize(fullParams, transition);\n        }\n        else if (route.model) {\n            result = route.model(fullParams, transition);\n        }\n        if (result && isTransition(result)) {\n            result = undefined;\n        }\n        return Promise.resolve(result);\n    }\n}\nclass UnresolvedRouteInfoByObject extends InternalRouteInfo {\n    constructor(router, name, paramNames, context) {\n        super(router, name, paramNames);\n        this.context = context;\n        this.serializer = this.router.getSerializer(name);\n    }\n    getModel(transition) {\n        if (this.router.log !== undefined) {\n            this.router.log(this.name + ': resolving provided model');\n        }\n        return super.getModel(transition);\n    }\n    /**\n      @private\n  \n      Serializes a route using its custom `serialize` method or\n      by a default that looks up the expected property name from\n      the dynamic segment.\n  \n      @param {Object} model the model to be serialized for this route\n    */\n    serialize(model) {\n        let { paramNames, context } = this;\n        if (!model) {\n            model = context;\n        }\n        let object = {};\n        if (isParam(model)) {\n            object[paramNames[0]] = model;\n            return object;\n        }\n        // Use custom serialize if it exists.\n        if (this.serializer) {\n            // invoke this.serializer unbound (getSerializer returns a stateless function)\n            return this.serializer.call(null, model, paramNames);\n        }\n        else if (this.route !== undefined) {\n            if (this.route.serialize) {\n                return this.route.serialize(model, paramNames);\n            }\n        }\n        if (paramNames.length !== 1) {\n            return;\n        }\n        let name = paramNames[0];\n        if (/_id$/.test(name)) {\n            object[name] = model.id;\n        }\n        else {\n            object[name] = model;\n        }\n        return object;\n    }\n}\nfunction paramsMatch(a, b) {\n    if (!a !== !b) {\n        // Only one is null.\n        return false;\n    }\n    if (!a) {\n        // Both must be null.\n        return true;\n    }\n    // Note: this assumes that both params have the same\n    // number of keys, but since we're comparing the\n    // same routes, they should.\n    for (let k in a) {\n        if (a.hasOwnProperty(k) && a[k] !== b[k]) {\n            return false;\n        }\n    }\n    return true;\n}\n\nclass TransitionIntent {\n    constructor(router, data = {}) {\n        this.router = router;\n        this.data = data;\n    }\n}\n\nfunction handleError(currentState, transition, error) {\n    // This is the only possible\n    // reject value of TransitionState#resolve\n    let routeInfos = currentState.routeInfos;\n    let errorHandlerIndex = transition.resolveIndex >= routeInfos.length ? routeInfos.length - 1 : transition.resolveIndex;\n    let wasAborted = transition.isAborted;\n    throw new TransitionError(error, currentState.routeInfos[errorHandlerIndex].route, wasAborted, currentState);\n}\nfunction resolveOneRouteInfo(currentState, transition) {\n    if (transition.resolveIndex === currentState.routeInfos.length) {\n        // This is is the only possible\n        // fulfill value of TransitionState#resolve\n        return;\n    }\n    let routeInfo = currentState.routeInfos[transition.resolveIndex];\n    return routeInfo\n        .resolve(transition)\n        .then(proceed.bind(null, currentState, transition), null, currentState.promiseLabel('Proceed'));\n}\nfunction proceed(currentState, transition, resolvedRouteInfo) {\n    let wasAlreadyResolved = currentState.routeInfos[transition.resolveIndex].isResolved;\n    // Swap the previously unresolved routeInfo with\n    // the resolved routeInfo\n    currentState.routeInfos[transition.resolveIndex++] = resolvedRouteInfo;\n    if (!wasAlreadyResolved) {\n        // Call the redirect hook. The reason we call it here\n        // vs. afterModel is so that redirects into child\n        // routes don't re-run the model hooks for this\n        // already-resolved route.\n        let { route } = resolvedRouteInfo;\n        if (route !== undefined) {\n            if (route.redirect) {\n                route.redirect(resolvedRouteInfo.context, transition);\n            }\n        }\n    }\n    // Proceed after ensuring that the redirect hook\n    // didn't abort this transition by transitioning elsewhere.\n    throwIfAborted(transition);\n    return resolveOneRouteInfo(currentState, transition);\n}\nclass TransitionState {\n    constructor() {\n        this.routeInfos = [];\n        this.queryParams = {};\n        this.params = {};\n    }\n    promiseLabel(label) {\n        let targetName = '';\n        forEach(this.routeInfos, function (routeInfo) {\n            if (targetName !== '') {\n                targetName += '.';\n            }\n            targetName += routeInfo.name;\n            return true;\n        });\n        return promiseLabel(\"'\" + targetName + \"': \" + label);\n    }\n    resolve(transition) {\n        // First, calculate params for this state. This is useful\n        // information to provide to the various route hooks.\n        let params = this.params;\n        forEach(this.routeInfos, (routeInfo) => {\n            params[routeInfo.name] = routeInfo.params || {};\n            return true;\n        });\n        transition.resolveIndex = 0;\n        // The prelude RSVP.resolve() async moves us into the promise land.\n        return Promise.resolve(null, this.promiseLabel('Start transition'))\n            .then(resolveOneRouteInfo.bind(null, this, transition), null, this.promiseLabel('Resolve route'))\n            .catch(handleError.bind(null, this, transition), this.promiseLabel('Handle error'))\n            .then(() => this);\n    }\n}\nclass TransitionError {\n    constructor(error, route, wasAborted, state) {\n        this.error = error;\n        this.route = route;\n        this.wasAborted = wasAborted;\n        this.state = state;\n    }\n}\n\nclass NamedTransitionIntent extends TransitionIntent {\n    constructor(router, name, pivotHandler, contexts = [], queryParams = {}, data) {\n        super(router, data);\n        this.preTransitionState = undefined;\n        this.name = name;\n        this.pivotHandler = pivotHandler;\n        this.contexts = contexts;\n        this.queryParams = queryParams;\n    }\n    applyToState(oldState, isIntermediate) {\n        // TODO: WTF fix me\n        let partitionedArgs = extractQueryParams([this.name].concat(this.contexts)), pureArgs = partitionedArgs[0], handlers = this.router.recognizer.handlersFor(pureArgs[0]);\n        let targetRouteName = handlers[handlers.length - 1].handler;\n        return this.applyToHandlers(oldState, handlers, targetRouteName, isIntermediate, false);\n    }\n    applyToHandlers(oldState, parsedHandlers, targetRouteName, isIntermediate, checkingIfActive) {\n        let i, len;\n        let newState = new TransitionState();\n        let objects = this.contexts.slice(0);\n        let invalidateIndex = parsedHandlers.length;\n        // Pivot handlers are provided for refresh transitions\n        if (this.pivotHandler) {\n            for (i = 0, len = parsedHandlers.length; i < len; ++i) {\n                if (parsedHandlers[i].handler === this.pivotHandler._internalName) {\n                    invalidateIndex = i;\n                    break;\n                }\n            }\n        }\n        for (i = parsedHandlers.length - 1; i >= 0; --i) {\n            let result = parsedHandlers[i];\n            let name = result.handler;\n            let oldHandlerInfo = oldState.routeInfos[i];\n            let newHandlerInfo = null;\n            if (result.names.length > 0) {\n                if (i >= invalidateIndex) {\n                    newHandlerInfo = this.createParamHandlerInfo(name, result.names, objects, oldHandlerInfo);\n                }\n                else {\n                    newHandlerInfo = this.getHandlerInfoForDynamicSegment(name, result.names, objects, oldHandlerInfo, targetRouteName, i);\n                }\n            }\n            else {\n                // This route has no dynamic segment.\n                // Therefore treat as a param-based handlerInfo\n                // with empty params. This will cause the `model`\n                // hook to be called with empty params, which is desirable.\n                newHandlerInfo = this.createParamHandlerInfo(name, result.names, objects, oldHandlerInfo);\n            }\n            if (checkingIfActive) {\n                // If we're performing an isActive check, we want to\n                // serialize URL params with the provided context, but\n                // ignore mismatches between old and new context.\n                newHandlerInfo = newHandlerInfo.becomeResolved(null, newHandlerInfo.context);\n                let oldContext = oldHandlerInfo && oldHandlerInfo.context;\n                if (result.names.length > 0 &&\n                    oldHandlerInfo.context !== undefined &&\n                    newHandlerInfo.context === oldContext) {\n                    // If contexts match in isActive test, assume params also match.\n                    // This allows for flexibility in not requiring that every last\n                    // handler provide a `serialize` method\n                    newHandlerInfo.params = oldHandlerInfo && oldHandlerInfo.params;\n                }\n                newHandlerInfo.context = oldContext;\n            }\n            let handlerToUse = oldHandlerInfo;\n            if (i >= invalidateIndex || newHandlerInfo.shouldSupersede(oldHandlerInfo)) {\n                invalidateIndex = Math.min(i, invalidateIndex);\n                handlerToUse = newHandlerInfo;\n            }\n            if (isIntermediate && !checkingIfActive) {\n                handlerToUse = handlerToUse.becomeResolved(null, handlerToUse.context);\n            }\n            newState.routeInfos.unshift(handlerToUse);\n        }\n        if (objects.length > 0) {\n            throw new Error('More context objects were passed than there are dynamic segments for the route: ' +\n                targetRouteName);\n        }\n        if (!isIntermediate) {\n            this.invalidateChildren(newState.routeInfos, invalidateIndex);\n        }\n        merge(newState.queryParams, this.queryParams || {});\n        if (isIntermediate && oldState.queryParams) {\n            merge(newState.queryParams, oldState.queryParams);\n        }\n        return newState;\n    }\n    invalidateChildren(handlerInfos, invalidateIndex) {\n        for (let i = invalidateIndex, l = handlerInfos.length; i < l; ++i) {\n            let handlerInfo = handlerInfos[i];\n            if (handlerInfo.isResolved) {\n                let { name, params, route, paramNames } = handlerInfos[i];\n                handlerInfos[i] = new UnresolvedRouteInfoByParam(this.router, name, paramNames, params, route);\n            }\n        }\n    }\n    getHandlerInfoForDynamicSegment(name, names, objects, oldHandlerInfo, _targetRouteName, i) {\n        let objectToUse;\n        if (objects.length > 0) {\n            // Use the objects provided for this transition.\n            objectToUse = objects[objects.length - 1];\n            if (isParam(objectToUse)) {\n                return this.createParamHandlerInfo(name, names, objects, oldHandlerInfo);\n            }\n            else {\n                objects.pop();\n            }\n        }\n        else if (oldHandlerInfo && oldHandlerInfo.name === name) {\n            // Reuse the matching oldHandlerInfo\n            return oldHandlerInfo;\n        }\n        else {\n            if (this.preTransitionState) {\n                let preTransitionHandlerInfo = this.preTransitionState.routeInfos[i];\n                objectToUse = preTransitionHandlerInfo && preTransitionHandlerInfo.context;\n            }\n            else {\n                // Ideally we should throw this error to provide maximal\n                // information to the user that not enough context objects\n                // were provided, but this proves too cumbersome in Ember\n                // in cases where inner template helpers are evaluated\n                // before parent helpers un-render, in which cases this\n                // error somewhat prematurely fires.\n                //throw new Error(\"Not enough context objects were provided to complete a transition to \" + targetRouteName + \". Specifically, the \" + name + \" route needs an object that can be serialized into its dynamic URL segments [\" + names.join(', ') + \"]\");\n                return oldHandlerInfo;\n            }\n        }\n        return new UnresolvedRouteInfoByObject(this.router, name, names, objectToUse);\n    }\n    createParamHandlerInfo(name, names, objects, oldHandlerInfo) {\n        let params = {};\n        // Soak up all the provided string/numbers\n        let numNames = names.length;\n        let missingParams = [];\n        while (numNames--) {\n            // Only use old params if the names match with the new handler\n            let oldParams = (oldHandlerInfo && name === oldHandlerInfo.name && oldHandlerInfo.params) || {};\n            let peek = objects[objects.length - 1];\n            let paramName = names[numNames];\n            if (isParam(peek)) {\n                params[paramName] = '' + objects.pop();\n            }\n            else {\n                // If we're here, this means only some of the params\n                // were string/number params, so try and use a param\n                // value from a previous handler.\n                if (oldParams.hasOwnProperty(paramName)) {\n                    params[paramName] = oldParams[paramName];\n                }\n                else {\n                    missingParams.push(paramName);\n                }\n            }\n        }\n        if (missingParams.length > 0) {\n            throw new Error(`You didn't provide enough string/numeric parameters to satisfy all of the dynamic segments for route ${name}.` +\n                ` Missing params: ${missingParams}`);\n        }\n        return new UnresolvedRouteInfoByParam(this.router, name, names, params);\n    }\n}\n\nconst UnrecognizedURLError = (function () {\n    UnrecognizedURLError.prototype = Object.create(Error.prototype);\n    UnrecognizedURLError.prototype.constructor = UnrecognizedURLError;\n    function UnrecognizedURLError(message) {\n        let error = Error.call(this, message);\n        this.name = 'UnrecognizedURLError';\n        this.message = message || 'UnrecognizedURL';\n        if (Error.captureStackTrace) {\n            Error.captureStackTrace(this, UnrecognizedURLError);\n        }\n        else {\n            this.stack = error.stack;\n        }\n    }\n    return UnrecognizedURLError;\n})();\n\nclass URLTransitionIntent extends TransitionIntent {\n    constructor(router, url, data) {\n        super(router, data);\n        this.url = url;\n        this.preTransitionState = undefined;\n    }\n    applyToState(oldState) {\n        let newState = new TransitionState();\n        let results = this.router.recognizer.recognize(this.url), i, len;\n        if (!results) {\n            throw new UnrecognizedURLError(this.url);\n        }\n        let statesDiffer = false;\n        let _url = this.url;\n        // Checks if a handler is accessible by URL. If it is not, an error is thrown.\n        // For the case where the handler is loaded asynchronously, the error will be\n        // thrown once it is loaded.\n        function checkHandlerAccessibility(handler) {\n            if (handler && handler.inaccessibleByURL) {\n                throw new UnrecognizedURLError(_url);\n            }\n            return handler;\n        }\n        for (i = 0, len = results.length; i < len; ++i) {\n            let result = results[i];\n            let name = result.handler;\n            let paramNames = [];\n            if (this.router.recognizer.hasRoute(name)) {\n                paramNames = this.router.recognizer.handlersFor(name)[i].names;\n            }\n            let newRouteInfo = new UnresolvedRouteInfoByParam(this.router, name, paramNames, result.params);\n            let route = newRouteInfo.route;\n            if (route) {\n                checkHandlerAccessibility(route);\n            }\n            else {\n                // If the handler is being loaded asynchronously, check if we can\n                // access it after it has resolved\n                newRouteInfo.routePromise = newRouteInfo.routePromise.then(checkHandlerAccessibility);\n            }\n            let oldRouteInfo = oldState.routeInfos[i];\n            if (statesDiffer || newRouteInfo.shouldSupersede(oldRouteInfo)) {\n                statesDiffer = true;\n                newState.routeInfos[i] = newRouteInfo;\n            }\n            else {\n                newState.routeInfos[i] = oldRouteInfo;\n            }\n        }\n        merge(newState.queryParams, results.queryParams);\n        return newState;\n    }\n}\n\nclass Router {\n    constructor(logger) {\n        this._lastQueryParams = {};\n        this.state = undefined;\n        this.oldState = undefined;\n        this.activeTransition = undefined;\n        this.currentRouteInfos = undefined;\n        this._changedQueryParams = undefined;\n        this.currentSequence = 0;\n        this.log = logger;\n        this.recognizer = new RouteRecognizer();\n        this.reset();\n    }\n    /**\n      The main entry point into the router. The API is essentially\n      the same as the `map` method in `route-recognizer`.\n  \n      This method extracts the String handler at the last `.to()`\n      call and uses it as the name of the whole route.\n  \n      @param {Function} callback\n    */\n    map(callback) {\n        this.recognizer.map(callback, function (recognizer, routes) {\n            for (let i = routes.length - 1, proceed = true; i >= 0 && proceed; --i) {\n                let route = routes[i];\n                let handler = route.handler;\n                recognizer.add(routes, { as: handler });\n                proceed = route.path === '/' || route.path === '' || handler.slice(-6) === '.index';\n            }\n        });\n    }\n    hasRoute(route) {\n        return this.recognizer.hasRoute(route);\n    }\n    queryParamsTransition(changelist, wasTransitioning, oldState, newState) {\n        this.fireQueryParamDidChange(newState, changelist);\n        if (!wasTransitioning && this.activeTransition) {\n            // One of the routes in queryParamsDidChange\n            // caused a transition. Just return that transition.\n            return this.activeTransition;\n        }\n        else {\n            // Running queryParamsDidChange didn't change anything.\n            // Just update query params and be on our way.\n            // We have to return a noop transition that will\n            // perform a URL update at the end. This gives\n            // the user the ability to set the url update\n            // method (default is replaceState).\n            let newTransition = new Transition(this, undefined, undefined);\n            newTransition.queryParamsOnly = true;\n            oldState.queryParams = this.finalizeQueryParamChange(newState.routeInfos, newState.queryParams, newTransition);\n            newTransition[QUERY_PARAMS_SYMBOL] = newState.queryParams;\n            this.toReadOnlyInfos(newTransition, newState);\n            this.routeWillChange(newTransition);\n            newTransition.promise = newTransition.promise.then((result) => {\n                if (!newTransition.isAborted) {\n                    this._updateURL(newTransition, oldState);\n                    this.didTransition(this.currentRouteInfos);\n                    this.toInfos(newTransition, newState.routeInfos, true);\n                    this.routeDidChange(newTransition);\n                }\n                return result;\n            }, null, promiseLabel('Transition complete'));\n            return newTransition;\n        }\n    }\n    transitionByIntent(intent, isIntermediate) {\n        try {\n            return this.getTransitionByIntent(intent, isIntermediate);\n        }\n        catch (e) {\n            return new Transition(this, intent, undefined, e, undefined);\n        }\n    }\n    recognize(url) {\n        let intent = new URLTransitionIntent(this, url);\n        let newState = this.generateNewState(intent);\n        if (newState === null) {\n            return newState;\n        }\n        let readonlyInfos = toReadOnlyRouteInfo(newState.routeInfos, newState.queryParams);\n        return readonlyInfos[readonlyInfos.length - 1];\n    }\n    recognizeAndLoad(url) {\n        let intent = new URLTransitionIntent(this, url);\n        let newState = this.generateNewState(intent);\n        if (newState === null) {\n            return Promise.reject(`URL ${url} was not recognized`);\n        }\n        let newTransition = new Transition(this, intent, newState, undefined);\n        return newTransition.then(() => {\n            let routeInfosWithAttributes = toReadOnlyRouteInfo(newState.routeInfos, newTransition[QUERY_PARAMS_SYMBOL], true);\n            return routeInfosWithAttributes[routeInfosWithAttributes.length - 1];\n        });\n    }\n    generateNewState(intent) {\n        try {\n            return intent.applyToState(this.state, false);\n        }\n        catch (e) {\n            return null;\n        }\n    }\n    getTransitionByIntent(intent, isIntermediate) {\n        let wasTransitioning = !!this.activeTransition;\n        let oldState = wasTransitioning ? this.activeTransition[STATE_SYMBOL] : this.state;\n        let newTransition;\n        let newState = intent.applyToState(oldState, isIntermediate);\n        let queryParamChangelist = getChangelist(oldState.queryParams, newState.queryParams);\n        if (routeInfosEqual(newState.routeInfos, oldState.routeInfos)) {\n            // This is a no-op transition. See if query params changed.\n            if (queryParamChangelist) {\n                let newTransition = this.queryParamsTransition(queryParamChangelist, wasTransitioning, oldState, newState);\n                newTransition.queryParamsOnly = true;\n                return newTransition;\n            }\n            // No-op. No need to create a new transition.\n            return this.activeTransition || new Transition(this, undefined, undefined);\n        }\n        if (isIntermediate) {\n            let transition = new Transition(this, undefined, newState);\n            transition.isIntermediate = true;\n            this.toReadOnlyInfos(transition, newState);\n            this.setupContexts(newState, transition);\n            this.routeWillChange(transition);\n            return this.activeTransition;\n        }\n        // Create a new transition to the destination route.\n        newTransition = new Transition(this, intent, newState, undefined, this.activeTransition);\n        // transition is to same route with same params, only query params differ.\n        // not caught above probably because refresh() has been used\n        if (routeInfosSameExceptQueryParams(newState.routeInfos, oldState.routeInfos)) {\n            newTransition.queryParamsOnly = true;\n        }\n        this.toReadOnlyInfos(newTransition, newState);\n        // Abort and usurp any previously active transition.\n        if (this.activeTransition) {\n            this.activeTransition.redirect(newTransition);\n        }\n        this.activeTransition = newTransition;\n        // Transition promises by default resolve with resolved state.\n        // For our purposes, swap out the promise to resolve\n        // after the transition has been finalized.\n        newTransition.promise = newTransition.promise.then((result) => {\n            return this.finalizeTransition(newTransition, result);\n        }, null, promiseLabel('Settle transition promise when transition is finalized'));\n        if (!wasTransitioning) {\n            this.notifyExistingHandlers(newState, newTransition);\n        }\n        this.fireQueryParamDidChange(newState, queryParamChangelist);\n        return newTransition;\n    }\n    /**\n    @private\n  \n    Begins and returns a Transition based on the provided\n    arguments. Accepts arguments in the form of both URL\n    transitions and named transitions.\n  \n    @param {Router} router\n    @param {Array[Object]} args arguments passed to transitionTo,\n      replaceWith, or handleURL\n  */\n    doTransition(name, modelsArray = [], isIntermediate = false) {\n        let lastArg = modelsArray[modelsArray.length - 1];\n        let queryParams = {};\n        if (lastArg !== undefined && lastArg.hasOwnProperty('queryParams')) {\n            queryParams = modelsArray.pop().queryParams;\n        }\n        let intent;\n        if (name === undefined) {\n            log(this, 'Updating query params');\n            // A query param update is really just a transition\n            // into the route you're already on.\n            let { routeInfos } = this.state;\n            intent = new NamedTransitionIntent(this, routeInfos[routeInfos.length - 1].name, undefined, [], queryParams);\n        }\n        else if (name.charAt(0) === '/') {\n            log(this, 'Attempting URL transition to ' + name);\n            intent = new URLTransitionIntent(this, name);\n        }\n        else {\n            log(this, 'Attempting transition to ' + name);\n            intent = new NamedTransitionIntent(this, name, undefined, modelsArray, queryParams);\n        }\n        return this.transitionByIntent(intent, isIntermediate);\n    }\n    /**\n    @private\n  \n    Updates the URL (if necessary) and calls `setupContexts`\n    to update the router's array of `currentRouteInfos`.\n   */\n    finalizeTransition(transition, newState) {\n        try {\n            log(transition.router, transition.sequence, 'Resolved all models on destination route; finalizing transition.');\n            let routeInfos = newState.routeInfos;\n            // Run all the necessary enter/setup/exit hooks\n            this.setupContexts(newState, transition);\n            // Check if a redirect occurred in enter/setup\n            if (transition.isAborted) {\n                // TODO: cleaner way? distinguish b/w targetRouteInfos?\n                this.state.routeInfos = this.currentRouteInfos;\n                return Promise.reject(logAbort(transition));\n            }\n            this._updateURL(transition, newState);\n            transition.isActive = false;\n            this.activeTransition = undefined;\n            this.triggerEvent(this.currentRouteInfos, true, 'didTransition', []);\n            this.didTransition(this.currentRouteInfos);\n            this.toInfos(transition, newState.routeInfos, true);\n            this.routeDidChange(transition);\n            log(this, transition.sequence, 'TRANSITION COMPLETE.');\n            // Resolve with the final route.\n            return routeInfos[routeInfos.length - 1].route;\n        }\n        catch (e) {\n            if (!isTransitionAborted(e)) {\n                let infos = transition[STATE_SYMBOL].routeInfos;\n                transition.trigger(true, 'error', e, transition, infos[infos.length - 1].route);\n                transition.abort();\n            }\n            throw e;\n        }\n    }\n    /**\n    @private\n  \n    Takes an Array of `RouteInfo`s, figures out which ones are\n    exiting, entering, or changing contexts, and calls the\n    proper route hooks.\n  \n    For example, consider the following tree of routes. Each route is\n    followed by the URL segment it handles.\n  \n    ```\n    |~index (\"/\")\n    | |~posts (\"/posts\")\n    | | |-showPost (\"/:id\")\n    | | |-newPost (\"/new\")\n    | | |-editPost (\"/edit\")\n    | |~about (\"/about/:id\")\n    ```\n  \n    Consider the following transitions:\n  \n    1. A URL transition to `/posts/1`.\n       1. Triggers the `*model` callbacks on the\n          `index`, `posts`, and `showPost` routes\n       2. Triggers the `enter` callback on the same\n       3. Triggers the `setup` callback on the same\n    2. A direct transition to `newPost`\n       1. Triggers the `exit` callback on `showPost`\n       2. Triggers the `enter` callback on `newPost`\n       3. Triggers the `setup` callback on `newPost`\n    3. A direct transition to `about` with a specified\n       context object\n       1. Triggers the `exit` callback on `newPost`\n          and `posts`\n       2. Triggers the `serialize` callback on `about`\n       3. Triggers the `enter` callback on `about`\n       4. Triggers the `setup` callback on `about`\n  \n    @param {Router} transition\n    @param {TransitionState} newState\n  */\n    setupContexts(newState, transition) {\n        let partition = this.partitionRoutes(this.state, newState);\n        let i, l, route;\n        for (i = 0, l = partition.exited.length; i < l; i++) {\n            route = partition.exited[i].route;\n            delete route.context;\n            if (route !== undefined) {\n                if (route._internalReset !== undefined) {\n                    route._internalReset(true, transition);\n                }\n                if (route.exit !== undefined) {\n                    route.exit(transition);\n                }\n            }\n        }\n        let oldState = (this.oldState = this.state);\n        this.state = newState;\n        let currentRouteInfos = (this.currentRouteInfos = partition.unchanged.slice());\n        try {\n            for (i = 0, l = partition.reset.length; i < l; i++) {\n                route = partition.reset[i].route;\n                if (route !== undefined) {\n                    if (route._internalReset !== undefined) {\n                        route._internalReset(false, transition);\n                    }\n                }\n            }\n            for (i = 0, l = partition.updatedContext.length; i < l; i++) {\n                this.routeEnteredOrUpdated(currentRouteInfos, partition.updatedContext[i], false, transition);\n            }\n            for (i = 0, l = partition.entered.length; i < l; i++) {\n                this.routeEnteredOrUpdated(currentRouteInfos, partition.entered[i], true, transition);\n            }\n        }\n        catch (e) {\n            this.state = oldState;\n            this.currentRouteInfos = oldState.routeInfos;\n            throw e;\n        }\n        this.state.queryParams = this.finalizeQueryParamChange(currentRouteInfos, newState.queryParams, transition);\n    }\n    /**\n    @private\n  \n    Fires queryParamsDidChange event\n  */\n    fireQueryParamDidChange(newState, queryParamChangelist) {\n        // If queryParams changed trigger event\n        if (queryParamChangelist) {\n            // This is a little hacky but we need some way of storing\n            // changed query params given that no activeTransition\n            // is guaranteed to have occurred.\n            this._changedQueryParams = queryParamChangelist.all;\n            this.triggerEvent(newState.routeInfos, true, 'queryParamsDidChange', [\n                queryParamChangelist.changed,\n                queryParamChangelist.all,\n                queryParamChangelist.removed,\n            ]);\n            this._changedQueryParams = undefined;\n        }\n    }\n    /**\n    @private\n  \n    Helper method used by setupContexts. Handles errors or redirects\n    that may happen in enter/setup.\n  */\n    routeEnteredOrUpdated(currentRouteInfos, routeInfo, enter, transition) {\n        let route = routeInfo.route, context = routeInfo.context;\n        function _routeEnteredOrUpdated(route) {\n            if (enter) {\n                if (route.enter !== undefined) {\n                    route.enter(transition);\n                }\n            }\n            throwIfAborted(transition);\n            route.context = context;\n            if (route.contextDidChange !== undefined) {\n                route.contextDidChange();\n            }\n            if (route.setup !== undefined) {\n                route.setup(context, transition);\n            }\n            throwIfAborted(transition);\n            currentRouteInfos.push(routeInfo);\n            return route;\n        }\n        // If the route doesn't exist, it means we haven't resolved the route promise yet\n        if (route === undefined) {\n            routeInfo.routePromise = routeInfo.routePromise.then(_routeEnteredOrUpdated);\n        }\n        else {\n            _routeEnteredOrUpdated(route);\n        }\n        return true;\n    }\n    /**\n    @private\n  \n    This function is called when transitioning from one URL to\n    another to determine which routes are no longer active,\n    which routes are newly active, and which routes remain\n    active but have their context changed.\n  \n    Take a list of old routes and new routes and partition\n    them into four buckets:\n  \n    * unchanged: the route was active in both the old and\n      new URL, and its context remains the same\n    * updated context: the route was active in both the\n      old and new URL, but its context changed. The route's\n      `setup` method, if any, will be called with the new\n      context.\n    * exited: the route was active in the old URL, but is\n      no longer active.\n    * entered: the route was not active in the old URL, but\n      is now active.\n  \n    The PartitionedRoutes structure has four fields:\n  \n    * `updatedContext`: a list of `RouteInfo` objects that\n      represent routes that remain active but have a changed\n      context\n    * `entered`: a list of `RouteInfo` objects that represent\n      routes that are newly active\n    * `exited`: a list of `RouteInfo` objects that are no\n      longer active.\n    * `unchanged`: a list of `RouteInfo` objects that remain active.\n  \n    @param {Array[InternalRouteInfo]} oldRoutes a list of the route\n      information for the previous URL (or `[]` if this is the\n      first handled transition)\n    @param {Array[InternalRouteInfo]} newRoutes a list of the route\n      information for the new URL\n  \n    @return {Partition}\n  */\n    partitionRoutes(oldState, newState) {\n        let oldRouteInfos = oldState.routeInfos;\n        let newRouteInfos = newState.routeInfos;\n        let routes = {\n            updatedContext: [],\n            exited: [],\n            entered: [],\n            unchanged: [],\n            reset: [],\n        };\n        let routeChanged, contextChanged = false, i, l;\n        for (i = 0, l = newRouteInfos.length; i < l; i++) {\n            let oldRouteInfo = oldRouteInfos[i], newRouteInfo = newRouteInfos[i];\n            if (!oldRouteInfo || oldRouteInfo.route !== newRouteInfo.route) {\n                routeChanged = true;\n            }\n            if (routeChanged) {\n                routes.entered.push(newRouteInfo);\n                if (oldRouteInfo) {\n                    routes.exited.unshift(oldRouteInfo);\n                }\n            }\n            else if (contextChanged || oldRouteInfo.context !== newRouteInfo.context) {\n                contextChanged = true;\n                routes.updatedContext.push(newRouteInfo);\n            }\n            else {\n                routes.unchanged.push(oldRouteInfo);\n            }\n        }\n        for (i = newRouteInfos.length, l = oldRouteInfos.length; i < l; i++) {\n            routes.exited.unshift(oldRouteInfos[i]);\n        }\n        routes.reset = routes.updatedContext.slice();\n        routes.reset.reverse();\n        return routes;\n    }\n    _updateURL(transition, state) {\n        let urlMethod = transition.urlMethod;\n        if (!urlMethod) {\n            return;\n        }\n        let { routeInfos } = state;\n        let { name: routeName } = routeInfos[routeInfos.length - 1];\n        let params = {};\n        for (let i = routeInfos.length - 1; i >= 0; --i) {\n            let routeInfo = routeInfos[i];\n            merge(params, routeInfo.params);\n            if (routeInfo.route.inaccessibleByURL) {\n                urlMethod = null;\n            }\n        }\n        if (urlMethod) {\n            params.queryParams = transition._visibleQueryParams || state.queryParams;\n            let url = this.recognizer.generate(routeName, params);\n            // transitions during the initial transition must always use replaceURL.\n            // When the app boots, you are at a url, e.g. /foo. If some route\n            // redirects to bar as part of the initial transition, you don't want to\n            // add a history entry for /foo. If you do, pressing back will immediately\n            // hit the redirect again and take you back to /bar, thus killing the back\n            // button\n            let initial = transition.isCausedByInitialTransition;\n            // say you are at / and you click a link to route /foo. In /foo's\n            // route, the transition is aborted using replaceWith('/bar').\n            // Because the current url is still /, the history entry for / is\n            // removed from the history. Clicking back will take you to the page\n            // you were on before /, which is often not even the app, thus killing\n            // the back button. That's why updateURL is always correct for an\n            // aborting transition that's not the initial transition\n            let replaceAndNotAborting = urlMethod === 'replace' && !transition.isCausedByAbortingTransition;\n            // because calling refresh causes an aborted transition, this needs to be\n            // special cased - if the initial transition is a replace transition, the\n            // urlMethod should be honored here.\n            let isQueryParamsRefreshTransition = transition.queryParamsOnly && urlMethod === 'replace';\n            // say you are at / and you a `replaceWith(/foo)` is called. Then, that\n            // transition is aborted with `replaceWith(/bar)`. At the end, we should\n            // end up with /bar replacing /. We are replacing the replace. We only\n            // will replace the initial route if all subsequent aborts are also\n            // replaces. However, there is some ambiguity around the correct behavior\n            // here.\n            let replacingReplace = urlMethod === 'replace' && transition.isCausedByAbortingReplaceTransition;\n            if (initial || replaceAndNotAborting || isQueryParamsRefreshTransition || replacingReplace) {\n                this.replaceURL(url);\n            }\n            else {\n                this.updateURL(url);\n            }\n        }\n    }\n    finalizeQueryParamChange(resolvedHandlers, newQueryParams, transition) {\n        // We fire a finalizeQueryParamChange event which\n        // gives the new route hierarchy a chance to tell\n        // us which query params it's consuming and what\n        // their final values are. If a query param is\n        // no longer consumed in the final route hierarchy,\n        // its serialized segment will be removed\n        // from the URL.\n        for (let k in newQueryParams) {\n            if (newQueryParams.hasOwnProperty(k) && newQueryParams[k] === null) {\n                delete newQueryParams[k];\n            }\n        }\n        let finalQueryParamsArray = [];\n        this.triggerEvent(resolvedHandlers, true, 'finalizeQueryParamChange', [\n            newQueryParams,\n            finalQueryParamsArray,\n            transition,\n        ]);\n        if (transition) {\n            transition._visibleQueryParams = {};\n        }\n        let finalQueryParams = {};\n        for (let i = 0, len = finalQueryParamsArray.length; i < len; ++i) {\n            let qp = finalQueryParamsArray[i];\n            finalQueryParams[qp.key] = qp.value;\n            if (transition && qp.visible !== false) {\n                transition._visibleQueryParams[qp.key] = qp.value;\n            }\n        }\n        return finalQueryParams;\n    }\n    toReadOnlyInfos(newTransition, newState) {\n        let oldRouteInfos = this.state.routeInfos;\n        this.fromInfos(newTransition, oldRouteInfos);\n        this.toInfos(newTransition, newState.routeInfos);\n        this._lastQueryParams = newState.queryParams;\n    }\n    fromInfos(newTransition, oldRouteInfos) {\n        if (newTransition !== undefined && oldRouteInfos.length > 0) {\n            let fromInfos = toReadOnlyRouteInfo(oldRouteInfos, Object.assign({}, this._lastQueryParams), true);\n            newTransition.from = fromInfos[fromInfos.length - 1] || null;\n        }\n    }\n    toInfos(newTransition, newRouteInfos, includeAttributes = false) {\n        if (newTransition !== undefined && newRouteInfos.length > 0) {\n            let toInfos = toReadOnlyRouteInfo(newRouteInfos, Object.assign({}, newTransition[QUERY_PARAMS_SYMBOL]), includeAttributes);\n            newTransition.to = toInfos[toInfos.length - 1] || null;\n        }\n    }\n    notifyExistingHandlers(newState, newTransition) {\n        let oldRouteInfos = this.state.routeInfos, i, oldRouteInfoLen, oldHandler, newRouteInfo;\n        oldRouteInfoLen = oldRouteInfos.length;\n        for (i = 0; i < oldRouteInfoLen; i++) {\n            oldHandler = oldRouteInfos[i];\n            newRouteInfo = newState.routeInfos[i];\n            if (!newRouteInfo || oldHandler.name !== newRouteInfo.name) {\n                break;\n            }\n            if (!newRouteInfo.isResolved) {\n            }\n        }\n        this.triggerEvent(oldRouteInfos, true, 'willTransition', [newTransition]);\n        this.routeWillChange(newTransition);\n        this.willTransition(oldRouteInfos, newState.routeInfos, newTransition);\n    }\n    /**\n      Clears the current and target route routes and triggers exit\n      on each of them starting at the leaf and traversing up through\n      its ancestors.\n    */\n    reset() {\n        if (this.state) {\n            forEach(this.state.routeInfos.slice().reverse(), function (routeInfo) {\n                let route = routeInfo.route;\n                if (route !== undefined) {\n                    if (route.exit !== undefined) {\n                        route.exit();\n                    }\n                }\n                return true;\n            });\n        }\n        this.oldState = undefined;\n        this.state = new TransitionState();\n        this.currentRouteInfos = undefined;\n    }\n    /**\n      let handler = routeInfo.handler;\n      The entry point for handling a change to the URL (usually\n      via the back and forward button).\n  \n      Returns an Array of handlers and the parameters associated\n      with those parameters.\n  \n      @param {String} url a URL to process\n  \n      @return {Array} an Array of `[handler, parameter]` tuples\n    */\n    handleURL(url) {\n        // Perform a URL-based transition, but don't change\n        // the URL afterward, since it already happened.\n        if (url.charAt(0) !== '/') {\n            url = '/' + url;\n        }\n        return this.doTransition(url).method(null);\n    }\n    /**\n      Transition into the specified named route.\n  \n      If necessary, trigger the exit callback on any routes\n      that are no longer represented by the target route.\n  \n      @param {String} name the name of the route\n    */\n    transitionTo(name, ...contexts) {\n        if (typeof name === 'object') {\n            contexts.push(name);\n            return this.doTransition(undefined, contexts, false);\n        }\n        return this.doTransition(name, contexts);\n    }\n    intermediateTransitionTo(name, ...args) {\n        return this.doTransition(name, args, true);\n    }\n    refresh(pivotRoute) {\n        let previousTransition = this.activeTransition;\n        let state = previousTransition ? previousTransition[STATE_SYMBOL] : this.state;\n        let routeInfos = state.routeInfos;\n        if (pivotRoute === undefined) {\n            pivotRoute = routeInfos[0].route;\n        }\n        log(this, 'Starting a refresh transition');\n        let name = routeInfos[routeInfos.length - 1].name;\n        let intent = new NamedTransitionIntent(this, name, pivotRoute, [], this._changedQueryParams || state.queryParams);\n        let newTransition = this.transitionByIntent(intent, false);\n        // if the previous transition is a replace transition, that needs to be preserved\n        if (previousTransition && previousTransition.urlMethod === 'replace') {\n            newTransition.method(previousTransition.urlMethod);\n        }\n        return newTransition;\n    }\n    /**\n      Identical to `transitionTo` except that the current URL will be replaced\n      if possible.\n  \n      This method is intended primarily for use with `replaceState`.\n  \n      @param {String} name the name of the route\n    */\n    replaceWith(name) {\n        return this.doTransition(name).method('replace');\n    }\n    /**\n      Take a named route and context objects and generate a\n      URL.\n  \n      @param {String} name the name of the route to generate\n        a URL for\n      @param {...Object} objects a list of objects to serialize\n  \n      @return {String} a URL\n    */\n    generate(routeName, ...args) {\n        let partitionedArgs = extractQueryParams(args), suppliedParams = partitionedArgs[0], queryParams = partitionedArgs[1];\n        // Construct a TransitionIntent with the provided params\n        // and apply it to the present state of the router.\n        let intent = new NamedTransitionIntent(this, routeName, undefined, suppliedParams);\n        let state = intent.applyToState(this.state, false);\n        let params = {};\n        for (let i = 0, len = state.routeInfos.length; i < len; ++i) {\n            let routeInfo = state.routeInfos[i];\n            let routeParams = routeInfo.serialize();\n            merge(params, routeParams);\n        }\n        params.queryParams = queryParams;\n        return this.recognizer.generate(routeName, params);\n    }\n    applyIntent(routeName, contexts) {\n        let intent = new NamedTransitionIntent(this, routeName, undefined, contexts);\n        let state = (this.activeTransition && this.activeTransition[STATE_SYMBOL]) || this.state;\n        return intent.applyToState(state, false);\n    }\n    isActiveIntent(routeName, contexts, queryParams, _state) {\n        let state = _state || this.state, targetRouteInfos = state.routeInfos, routeInfo, len;\n        if (!targetRouteInfos.length) {\n            return false;\n        }\n        let targetHandler = targetRouteInfos[targetRouteInfos.length - 1].name;\n        let recognizerHandlers = this.recognizer.handlersFor(targetHandler);\n        let index = 0;\n        for (len = recognizerHandlers.length; index < len; ++index) {\n            routeInfo = targetRouteInfos[index];\n            if (routeInfo.name === routeName) {\n                break;\n            }\n        }\n        if (index === recognizerHandlers.length) {\n            // The provided route name isn't even in the route hierarchy.\n            return false;\n        }\n        let testState = new TransitionState();\n        testState.routeInfos = targetRouteInfos.slice(0, index + 1);\n        recognizerHandlers = recognizerHandlers.slice(0, index + 1);\n        let intent = new NamedTransitionIntent(this, targetHandler, undefined, contexts);\n        let newState = intent.applyToHandlers(testState, recognizerHandlers, targetHandler, true, true);\n        let routesEqual = routeInfosEqual(newState.routeInfos, testState.routeInfos);\n        if (!queryParams || !routesEqual) {\n            return routesEqual;\n        }\n        // Get a hash of QPs that will still be active on new route\n        let activeQPsOnNewHandler = {};\n        merge(activeQPsOnNewHandler, queryParams);\n        let activeQueryParams = state.queryParams;\n        for (let key in activeQueryParams) {\n            if (activeQueryParams.hasOwnProperty(key) && activeQPsOnNewHandler.hasOwnProperty(key)) {\n                activeQPsOnNewHandler[key] = activeQueryParams[key];\n            }\n        }\n        return routesEqual && !getChangelist(activeQPsOnNewHandler, queryParams);\n    }\n    isActive(routeName, ...args) {\n        let partitionedArgs = extractQueryParams(args);\n        return this.isActiveIntent(routeName, partitionedArgs[0], partitionedArgs[1]);\n    }\n    trigger(name, ...args) {\n        this.triggerEvent(this.currentRouteInfos, false, name, args);\n    }\n}\nfunction routeInfosEqual(routeInfos, otherRouteInfos) {\n    if (routeInfos.length !== otherRouteInfos.length) {\n        return false;\n    }\n    for (let i = 0, len = routeInfos.length; i < len; ++i) {\n        if (routeInfos[i] !== otherRouteInfos[i]) {\n            return false;\n        }\n    }\n    return true;\n}\nfunction routeInfosSameExceptQueryParams(routeInfos, otherRouteInfos) {\n    if (routeInfos.length !== otherRouteInfos.length) {\n        return false;\n    }\n    for (let i = 0, len = routeInfos.length; i < len; ++i) {\n        if (routeInfos[i].name !== otherRouteInfos[i].name) {\n            return false;\n        }\n        if (!paramsEqual(routeInfos[i].params, otherRouteInfos[i].params)) {\n            return false;\n        }\n    }\n    return true;\n}\nfunction paramsEqual(params, otherParams) {\n    if (!params && !otherParams) {\n        return true;\n    }\n    else if ((!params && !!otherParams) || (!!params && !otherParams)) {\n        // one is falsy but other is not;\n        return false;\n    }\n    let keys = Object.keys(params);\n    let otherKeys = Object.keys(otherParams);\n    if (keys.length !== otherKeys.length) {\n        return false;\n    }\n    for (let i = 0, len = keys.length; i < len; ++i) {\n        let key = keys[i];\n        if (params[key] !== otherParams[key]) {\n            return false;\n        }\n    }\n    return true;\n}\n\nexport default Router;\nexport { Transition as InternalTransition, logAbort, STATE_SYMBOL, PARAMS_SYMBOL, QUERY_PARAMS_SYMBOL, TransitionState, TransitionError, InternalRouteInfo };\n","function callbacksFor(object) {\n  let callbacks = object._promiseCallbacks;\n\n  if (!callbacks) {\n    callbacks = object._promiseCallbacks = {};\n  }\n\n  return callbacks;\n}\n\n/**\n  @class EventTarget\n  @for rsvp\n  @public\n*/\nvar EventTarget = {\n\n  /**\n    `EventTarget.mixin` extends an object with EventTarget methods. For\n    Example:\n\n    ```javascript\n    import EventTarget from 'rsvp';\n\n    let object = {};\n\n    EventTarget.mixin(object);\n\n    object.on('finished', function(event) {\n      // handle event\n    });\n\n    object.trigger('finished', { detail: value });\n    ```\n\n    `EventTarget.mixin` also works with prototypes:\n\n    ```javascript\n    import EventTarget from 'rsvp';\n\n    let Person = function() {};\n    EventTarget.mixin(Person.prototype);\n\n    let yehuda = new Person();\n    let tom = new Person();\n\n    yehuda.on('poke', function(event) {\n      console.log('Yehuda says OW');\n    });\n\n    tom.on('poke', function(event) {\n      console.log('Tom says OW');\n    });\n\n    yehuda.trigger('poke');\n    tom.trigger('poke');\n    ```\n\n    @method mixin\n    @for rsvp\n    @private\n    @param {Object} object object to extend with EventTarget methods\n  */\n  mixin(object) {\n    object.on      = this.on;\n    object.off     = this.off;\n    object.trigger = this.trigger;\n    object._promiseCallbacks = undefined;\n    return object;\n  },\n\n  /**\n    Registers a callback to be executed when `eventName` is triggered\n\n    ```javascript\n    object.on('event', function(eventInfo){\n      // handle the event\n    });\n\n    object.trigger('event');\n    ```\n\n    @method on\n    @for EventTarget\n    @private\n    @param {String} eventName name of the event to listen for\n    @param {Function} callback function to be called when the event is triggered.\n  */\n  on(eventName, callback) {\n    if (typeof callback !== 'function') {\n      throw new TypeError('Callback must be a function');\n    }\n\n    let allCallbacks = callbacksFor(this);\n    let callbacks = allCallbacks[eventName];\n\n    if (!callbacks) {\n      callbacks = allCallbacks[eventName] = [];\n    }\n\n    if (callbacks.indexOf(callback) === -1) {\n      callbacks.push(callback);\n    }\n  },\n\n  /**\n    You can use `off` to stop firing a particular callback for an event:\n\n    ```javascript\n    function doStuff() { // do stuff! }\n    object.on('stuff', doStuff);\n\n    object.trigger('stuff'); // doStuff will be called\n\n    // Unregister ONLY the doStuff callback\n    object.off('stuff', doStuff);\n    object.trigger('stuff'); // doStuff will NOT be called\n    ```\n\n    If you don't pass a `callback` argument to `off`, ALL callbacks for the\n    event will not be executed when the event fires. For example:\n\n    ```javascript\n    let callback1 = function(){};\n    let callback2 = function(){};\n\n    object.on('stuff', callback1);\n    object.on('stuff', callback2);\n\n    object.trigger('stuff'); // callback1 and callback2 will be executed.\n\n    object.off('stuff');\n    object.trigger('stuff'); // callback1 and callback2 will not be executed!\n    ```\n\n    @method off\n    @for rsvp\n    @private\n    @param {String} eventName event to stop listening to\n    @param {Function} [callback] optional argument. If given, only the function\n    given will be removed from the event's callback queue. If no `callback`\n    argument is given, all callbacks will be removed from the event's callback\n    queue.\n  */\n  off(eventName, callback) {\n    let allCallbacks = callbacksFor(this);\n\n    if (!callback) {\n      allCallbacks[eventName] = [];\n      return;\n    }\n\n    let callbacks = allCallbacks[eventName];\n    let index = callbacks.indexOf(callback);\n\n    if (index !== -1) {\n      callbacks.splice(index, 1);\n    }\n  },\n\n  /**\n    Use `trigger` to fire custom events. For example:\n\n    ```javascript\n    object.on('foo', function(){\n      console.log('foo event happened!');\n    });\n    object.trigger('foo');\n    // 'foo event happened!' logged to the console\n    ```\n\n    You can also pass a value as a second argument to `trigger` that will be\n    passed as an argument to all event listeners for the event:\n\n    ```javascript\n    object.on('foo', function(value){\n      console.log(value.name);\n    });\n\n    object.trigger('foo', { name: 'bar' });\n    // 'bar' logged to the console\n    ```\n\n    @method trigger\n    @for rsvp\n    @private\n    @param {String} eventName name of the event to be triggered\n    @param {*} [options] optional value to be passed to any event handlers for\n    the given `eventName`\n  */\n  trigger(eventName, options, label) {\n    let allCallbacks = callbacksFor(this);\n\n    let callbacks = allCallbacks[eventName];\n    if (callbacks) {\n      // Don't cache the callbacks.length since it may grow\n      let callback;\n      for (let i = 0; i < callbacks.length; i++) {\n        callback = callbacks[i];\n        callback(options, label);\n      }\n    }\n  }\n};\n\nconst config = {\n  instrument: false\n};\n\nEventTarget['mixin'](config);\n\nfunction configure(name, value) {\n  if (arguments.length === 2) {\n    config[name] = value;\n  } else {\n    return config[name];\n  }\n}\n\nconst queue = [];\n\nfunction scheduleFlush() {\n  setTimeout(() => {\n    for (let i = 0; i < queue.length; i++) {\n      let entry = queue[i];\n\n      let payload = entry.payload;\n\n      payload.guid = payload.key + payload.id;\n      payload.childGuid = payload.key + payload.childId;\n      if (payload.error) {\n        payload.stack = payload.error.stack;\n      }\n\n      config['trigger'](entry.name, entry.payload);\n    }\n    queue.length = 0;\n  }, 50);\n}\n\nfunction instrument(eventName, promise, child) {\n  if (1 === queue.push({\n    name: eventName,\n    payload: {\n      key: promise._guidKey,\n      id:  promise._id,\n      eventName: eventName,\n      detail: promise._result,\n      childId: child && child._id,\n      label: promise._label,\n      timeStamp: Date.now(),\n      error: config[\"instrument-with-stack\"] ? new Error(promise._label) : null\n    }})) {\n      scheduleFlush();\n    }\n  }\n\n/**\n  `Promise.resolve` returns a promise that will become resolved with the\n  passed `value`. It is shorthand for the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = new Promise(function(resolve, reject){\n    resolve(1);\n  });\n\n  promise.then(function(value){\n    // value === 1\n  });\n  ```\n\n  Instead of writing the above, your code now simply becomes the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = RSVP.Promise.resolve(1);\n\n  promise.then(function(value){\n    // value === 1\n  });\n  ```\n\n  @method resolve\n  @for Promise\n  @static\n  @param {*} object value that the returned promise will be resolved with\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise that will become fulfilled with the given\n  `value`\n*/\nfunction resolve$$1(object, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n\n  if (object && typeof object === 'object' && object.constructor === Constructor) {\n    return object;\n  }\n\n  let promise = new Constructor(noop, label);\n  resolve$1(promise, object);\n  return promise;\n}\n\nfunction withOwnPromise() {\n  return new TypeError('A promises callback cannot return that same promise.');\n}\n\nfunction objectOrFunction(x) {\n  let type = typeof x;\n  return x !== null && (type === 'object' || type === 'function');\n}\n\nfunction noop() {}\n\nconst PENDING   = void 0;\nconst FULFILLED = 1;\nconst REJECTED  = 2;\n\nfunction tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {\n  try {\n    then$$1.call(value, fulfillmentHandler, rejectionHandler);\n  } catch(e) {\n    return e;\n  }\n}\nfunction handleForeignThenable(promise, thenable, then$$1) {\n  config.async(promise => {\n    let sealed = false;\n    let error = tryThen(then$$1,\n      thenable,\n      value => {\n        if (sealed) { return; }\n        sealed = true;\n        if (thenable === value) {\n          fulfill(promise, value);\n        } else {\n          resolve$1(promise, value);\n        }\n      },\n      reason => {\n        if (sealed) { return; }\n        sealed = true;\n\n        reject(promise, reason);\n      },\n      'Settle: ' + (promise._label || ' unknown promise')\n    );\n    if (!sealed && error) {\n      sealed = true;\n      reject(promise, error);\n    }\n  }, promise);\n}\n\nfunction handleOwnThenable(promise, thenable) {\n  if (thenable._state === FULFILLED) {\n    fulfill(promise, thenable._result);\n  } else if (thenable._state === REJECTED) {\n    thenable._onError = null;\n    reject(promise, thenable._result);\n  } else {\n    subscribe(thenable, undefined, value => {\n      if (thenable === value) {\n        fulfill(promise, value);\n      } else {\n        resolve$1(promise, value);\n      }\n    }, reason => reject(promise, reason));\n  }\n}\n\nfunction handleMaybeThenable(promise, maybeThenable, then$$1) {\n  let isOwnThenable =\n    maybeThenable.constructor === promise.constructor &&\n    then$$1 === then &&\n    promise.constructor.resolve === resolve$$1;\n\n  if (isOwnThenable) {\n    handleOwnThenable(promise, maybeThenable);\n  } else if (typeof then$$1 === 'function') {\n    handleForeignThenable(promise, maybeThenable, then$$1);\n  } else {\n    fulfill(promise, maybeThenable);\n  }\n}\n\nfunction resolve$1(promise, value) {\n  if (promise === value) {\n    fulfill(promise, value);\n  } else if (objectOrFunction(value)) {\n    let then$$1;\n    try {\n      then$$1 = value.then;\n    } catch (error) {\n      reject(promise, error);\n      return;\n    }\n    handleMaybeThenable(promise, value, then$$1);\n  } else {\n    fulfill(promise, value);\n  }\n}\n\nfunction publishRejection(promise) {\n  if (promise._onError) {\n    promise._onError(promise._result);\n  }\n\n  publish(promise);\n}\n\nfunction fulfill(promise, value) {\n  if (promise._state !== PENDING) { return; }\n\n  promise._result = value;\n  promise._state = FULFILLED;\n\n  if (promise._subscribers.length === 0) {\n    if (config.instrument) {\n      instrument('fulfilled', promise);\n    }\n  } else {\n    config.async(publish, promise);\n  }\n}\n\nfunction reject(promise, reason) {\n  if (promise._state !== PENDING) { return; }\n  promise._state = REJECTED;\n  promise._result = reason;\n  config.async(publishRejection, promise);\n}\n\nfunction subscribe(parent, child, onFulfillment, onRejection) {\n  let subscribers = parent._subscribers;\n  let length = subscribers.length;\n\n  parent._onError = null;\n\n  subscribers[length] = child;\n  subscribers[length + FULFILLED] = onFulfillment;\n  subscribers[length + REJECTED]  = onRejection;\n\n  if (length === 0 && parent._state) {\n    config.async(publish, parent);\n  }\n}\n\nfunction publish(promise) {\n  let subscribers = promise._subscribers;\n  let settled = promise._state;\n\n  if (config.instrument) {\n    instrument(settled === FULFILLED ? 'fulfilled' : 'rejected', promise);\n  }\n\n  if (subscribers.length === 0) { return; }\n\n  let child, callback, result = promise._result;\n\n  for (let i = 0; i < subscribers.length; i += 3) {\n    child = subscribers[i];\n    callback = subscribers[i + settled];\n\n    if (child) {\n      invokeCallback(settled, child, callback, result);\n    } else {\n      callback(result);\n    }\n  }\n\n  promise._subscribers.length = 0;\n}\n\nfunction invokeCallback(state, promise, callback, result) {\n  let hasCallback = typeof callback === 'function';\n  let value, succeeded = true, error;\n\n  if (hasCallback) {\n    try {\n      value = callback(result);\n    } catch (e) {\n      succeeded = false;\n      error = e;\n    }\n  } else {\n    value = result;\n  }\n\n  if (promise._state !== PENDING) {\n    // noop\n  } else if (value === promise) {\n    reject(promise, withOwnPromise());\n  } else if (succeeded === false) {\n    reject(promise, error);\n  } else if (hasCallback) {\n    resolve$1(promise, value);\n  } else if (state === FULFILLED) {\n    fulfill(promise, value);\n  } else if (state === REJECTED) {\n    reject(promise, value);\n  }\n}\n\nfunction initializePromise(promise, resolver) {\n  let resolved = false;\n  try {\n    resolver(value => {\n      if (resolved) { return; }\n      resolved = true;\n      resolve$1(promise, value);\n    }, reason => {\n      if (resolved) { return; }\n      resolved = true;\n      reject(promise, reason);\n    });\n  } catch(e) {\n    reject(promise, e);\n  }\n}\n\nfunction then(onFulfillment, onRejection, label) {\n  let parent = this;\n  let state = parent._state;\n\n  if (state === FULFILLED && !onFulfillment || state === REJECTED && !onRejection) {\n    config.instrument && instrument('chained', parent, parent);\n    return parent;\n  }\n\n  parent._onError = null;\n\n  let child = new parent.constructor(noop, label);\n  let result = parent._result;\n\n  config.instrument && instrument('chained', parent, child);\n\n  if (state === PENDING) {\n    subscribe(parent, child, onFulfillment, onRejection);\n  } else {\n    let callback = state === FULFILLED ? onFulfillment : onRejection;\n    config.async(() => invokeCallback(state, child, callback, result));\n  }\n\n  return child;\n}\n\nclass Enumerator {\n  constructor(Constructor, input, abortOnReject, label) {\n    this._instanceConstructor = Constructor;\n    this.promise = new Constructor(noop, label);\n    this._abortOnReject = abortOnReject;\n    this._isUsingOwnPromise = Constructor === Promise;\n    this._isUsingOwnResolve = Constructor.resolve === resolve$$1;\n\n    this._init(...arguments);\n  }\n\n  _init(Constructor, input) {\n    let len = input.length || 0;\n    this.length     = len;\n    this._remaining = len;\n    this._result = new Array(len);\n\n    this._enumerate(input);\n  }\n\n  _enumerate(input) {\n    let length  = this.length;\n    let promise = this.promise;\n\n    for (let i = 0; promise._state === PENDING && i < length; i++) {\n      this._eachEntry(input[i], i, true);\n    }\n    this._checkFullfillment();\n  }\n\n  _checkFullfillment() {\n    if (this._remaining === 0) {\n      let result = this._result;\n      fulfill(this.promise, result);\n      this._result = null;\n    }\n  }\n\n  _settleMaybeThenable(entry, i, firstPass) {\n    let c = this._instanceConstructor;\n\n    if (this._isUsingOwnResolve) {\n      let then$$1, error, succeeded = true;\n      try {\n        then$$1 = entry.then;\n      } catch (e) {\n        succeeded = false;\n        error = e;\n      }\n\n      if (then$$1 === then && entry._state !== PENDING) {\n        entry._onError = null;\n        this._settledAt(entry._state, i, entry._result, firstPass);\n      } else if (typeof then$$1 !== 'function') {\n        this._settledAt(FULFILLED, i, entry, firstPass);\n      } else if (this._isUsingOwnPromise) {\n        let promise = new c(noop);\n        if (succeeded === false) {\n          reject(promise, error);\n        } else {\n          handleMaybeThenable(promise, entry, then$$1);\n          this._willSettleAt(promise, i, firstPass);\n        }\n      } else {\n        this._willSettleAt(new c(resolve => resolve(entry)), i, firstPass);\n      }\n    } else {\n      this._willSettleAt(c.resolve(entry), i, firstPass);\n    }\n  }\n\n  _eachEntry(entry, i, firstPass) {\n    if (entry !== null && typeof entry === 'object') {\n      this._settleMaybeThenable(entry, i, firstPass);\n    } else {\n      this._setResultAt(FULFILLED, i, entry, firstPass);\n    }\n  }\n\n  _settledAt(state, i, value, firstPass) {\n    let promise = this.promise;\n\n    if (promise._state === PENDING) {\n      if (this._abortOnReject && state === REJECTED) {\n        reject(promise, value);\n      } else {\n        this._setResultAt(state, i, value, firstPass);\n        this._checkFullfillment();\n      }\n    }\n  }\n\n  _setResultAt(state, i, value, firstPass) {\n    this._remaining--;\n    this._result[i] = value;\n  }\n\n  _willSettleAt(promise, i, firstPass) {\n    subscribe(\n      promise, undefined,\n      value  => this._settledAt(FULFILLED, i, value, firstPass),\n      reason => this._settledAt(REJECTED,  i, reason, firstPass)\n    );\n  }\n}\n\nfunction setSettledResult(state, i, value) {\n  this._remaining--;\n  if (state === FULFILLED) {\n    this._result[i] = {\n      state: 'fulfilled',\n      value: value\n    };\n  } else {\n     this._result[i] = {\n      state: 'rejected',\n      reason: value\n    };\n  }\n}\n\n/**\n  `Promise.all` accepts an array of promises, and returns a new promise which\n  is fulfilled with an array of fulfillment values for the passed promises, or\n  rejected with the reason of the first passed promise to be rejected. It casts all\n  elements of the passed iterable to promises as it runs this algorithm.\n\n  Example:\n\n  ```javascript\n  import Promise, { resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n  let promises = [ promise1, promise2, promise3 ];\n\n  Promise.all(promises).then(function(array){\n    // The array here would be [ 1, 2, 3 ];\n  });\n  ```\n\n  If any of the `promises` given to `RSVP.all` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promises's\n  rejection handler. For example:\n\n  Example:\n\n  ```javascript\n  import Promise, { resolve, reject } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error(\"2\"));\n  let promise3 = reject(new Error(\"3\"));\n  let promises = [ promise1, promise2, promise3 ];\n\n  Promise.all(promises).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(error) {\n    // error.message === \"2\"\n  });\n  ```\n\n  @method all\n  @for Promise\n  @param {Array} entries array of promises\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when all `promises` have been\n  fulfilled, or rejected if any of them become rejected.\n  @static\n*/\nfunction all(entries, label) {\n  if (!Array.isArray(entries)) {\n    return this.reject(new TypeError(\"Promise.all must be called with an array\"), label);\n  }\n  return new Enumerator(this, entries, true /* abort on reject */, label).promise;\n}\n\n/**\n  `Promise.race` returns a new promise which is settled in the same way as the\n  first passed promise to settle.\n\n  Example:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise1 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 1');\n    }, 200);\n  });\n\n  let promise2 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 2');\n    }, 100);\n  });\n\n  Promise.race([promise1, promise2]).then(function(result){\n    // result === 'promise 2' because it was resolved before promise1\n    // was resolved.\n  });\n  ```\n\n  `Promise.race` is deterministic in that only the state of the first\n  settled promise matters. For example, even if other promises given to the\n  `promises` array argument are resolved, but the first settled promise has\n  become rejected before the other promises became fulfilled, the returned\n  promise will become rejected:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise1 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      resolve('promise 1');\n    }, 200);\n  });\n\n  let promise2 = new Promise(function(resolve, reject){\n    setTimeout(function(){\n      reject(new Error('promise 2'));\n    }, 100);\n  });\n\n  Promise.race([promise1, promise2]).then(function(result){\n    // Code here never runs\n  }, function(reason){\n    // reason.message === 'promise 2' because promise 2 became rejected before\n    // promise 1 became fulfilled\n  });\n  ```\n\n  An example real-world use case is implementing timeouts:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  Promise.race([ajax('foo.json'), timeout(5000)])\n  ```\n\n  @method race\n  @for Promise\n  @static\n  @param {Array} entries array of promises to observe\n  @param {String} [label] optional string for describing the promise returned.\n  Useful for tooling.\n  @return {Promise} a promise which settles in the same way as the first passed\n  promise to settle.\n*/\nfunction race(entries, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n\n  let promise = new Constructor(noop, label);\n\n  if (!Array.isArray(entries)) {\n    reject(promise, new TypeError('Promise.race must be called with an array'));\n    return promise;\n  }\n\n  for (let i = 0; promise._state === PENDING && i < entries.length; i++) {\n    subscribe(\n      Constructor.resolve(entries[i]), undefined,\n      value  => resolve$1(promise, value),\n      reason => reject(promise, reason)\n    );\n  }\n\n  return promise;\n}\n\n/**\n  `Promise.reject` returns a promise rejected with the passed `reason`.\n  It is shorthand for the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = new Promise(function(resolve, reject){\n    reject(new Error('WHOOPS'));\n  });\n\n  promise.then(function(value){\n    // Code here doesn't run because the promise is rejected!\n  }, function(reason){\n    // reason.message === 'WHOOPS'\n  });\n  ```\n\n  Instead of writing the above, your code now simply becomes the following:\n\n  ```javascript\n  import Promise from 'rsvp';\n\n  let promise = Promise.reject(new Error('WHOOPS'));\n\n  promise.then(function(value){\n    // Code here doesn't run because the promise is rejected!\n  }, function(reason){\n    // reason.message === 'WHOOPS'\n  });\n  ```\n\n  @method reject\n  @for Promise\n  @static\n  @param {*} reason value that the returned promise will be rejected with.\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject$1(reason, label) {\n  /*jshint validthis:true */\n  let Constructor = this;\n  let promise = new Constructor(noop, label);\n  reject(promise, reason);\n  return promise;\n}\n\nconst guidKey = 'rsvp_' + Date.now() + '-';\nlet counter = 0;\n\nfunction needsResolver() {\n  throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');\n}\n\nfunction needsNew() {\n  throw new TypeError(\"Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.\");\n}\n\n/**\n  Promise objects represent the eventual result of an asynchronous operation. The\n  primary way of interacting with a promise is through its `then` method, which\n  registers callbacks to receive either a promise’s eventual value or the reason\n  why the promise cannot be fulfilled.\n\n  Terminology\n  -----------\n\n  - `promise` is an object or function with a `then` method whose behavior conforms to this specification.\n  - `thenable` is an object or function that defines a `then` method.\n  - `value` is any legal JavaScript value (including undefined, a thenable, or a promise).\n  - `exception` is a value that is thrown using the throw statement.\n  - `reason` is a value that indicates why a promise was rejected.\n  - `settled` the final resting state of a promise, fulfilled or rejected.\n\n  A promise can be in one of three states: pending, fulfilled, or rejected.\n\n  Promises that are fulfilled have a fulfillment value and are in the fulfilled\n  state.  Promises that are rejected have a rejection reason and are in the\n  rejected state.  A fulfillment value is never a thenable.\n\n  Promises can also be said to *resolve* a value.  If this value is also a\n  promise, then the original promise's settled state will match the value's\n  settled state.  So a promise that *resolves* a promise that rejects will\n  itself reject, and a promise that *resolves* a promise that fulfills will\n  itself fulfill.\n\n\n  Basic Usage:\n  ------------\n\n  ```js\n  let promise = new Promise(function(resolve, reject) {\n    // on success\n    resolve(value);\n\n    // on failure\n    reject(reason);\n  });\n\n  promise.then(function(value) {\n    // on fulfillment\n  }, function(reason) {\n    // on rejection\n  });\n  ```\n\n  Advanced Usage:\n  ---------------\n\n  Promises shine when abstracting away asynchronous interactions such as\n  `XMLHttpRequest`s.\n\n  ```js\n  function getJSON(url) {\n    return new Promise(function(resolve, reject){\n      let xhr = new XMLHttpRequest();\n\n      xhr.open('GET', url);\n      xhr.onreadystatechange = handler;\n      xhr.responseType = 'json';\n      xhr.setRequestHeader('Accept', 'application/json');\n      xhr.send();\n\n      function handler() {\n        if (this.readyState === this.DONE) {\n          if (this.status === 200) {\n            resolve(this.response);\n          } else {\n            reject(new Error('getJSON: `' + url + '` failed with status: [' + this.status + ']'));\n          }\n        }\n      };\n    });\n  }\n\n  getJSON('/posts.json').then(function(json) {\n    // on fulfillment\n  }, function(reason) {\n    // on rejection\n  });\n  ```\n\n  Unlike callbacks, promises are great composable primitives.\n\n  ```js\n  Promise.all([\n    getJSON('/posts'),\n    getJSON('/comments')\n  ]).then(function(values){\n    values[0] // => postsJSON\n    values[1] // => commentsJSON\n\n    return values;\n  });\n  ```\n\n  @class Promise\n  @public\n  @param {function} resolver\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @constructor\n*/\nclass Promise {\n  constructor(resolver, label) {\n    this._id = counter++;\n    this._label = label;\n    this._state = undefined;\n    this._result = undefined;\n    this._subscribers = [];\n\n    config.instrument && instrument('created', this);\n\n    if (noop !== resolver) {\n      typeof resolver !== 'function' && needsResolver();\n      this instanceof Promise ? initializePromise(this, resolver) : needsNew();\n    }\n  }\n\n  _onError(reason) {\n    config.after(() => {\n      if (this._onError) {\n        config.trigger('error', reason, this._label);\n      }\n    });\n  }\n\n/**\n  `catch` is simply sugar for `then(undefined, onRejection)` which makes it the same\n  as the catch block of a try/catch statement.\n\n  ```js\n  function findAuthor(){\n    throw new Error('couldn\\'t find that author');\n  }\n\n  // synchronous\n  try {\n    findAuthor();\n  } catch(reason) {\n    // something went wrong\n  }\n\n  // async with promises\n  findAuthor().catch(function(reason){\n    // something went wrong\n  });\n  ```\n\n  @method catch\n  @param {Function} onRejection\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n*/\n  catch(onRejection, label) {\n    return this.then(undefined, onRejection, label);\n  }\n\n/**\n  `finally` will be invoked regardless of the promise's fate just as native\n  try/catch/finally behaves\n\n  Synchronous example:\n\n  ```js\n  findAuthor() {\n    if (Math.random() > 0.5) {\n      throw new Error();\n    }\n    return new Author();\n  }\n\n  try {\n    return findAuthor(); // succeed or fail\n  } catch(error) {\n    return findOtherAuthor();\n  } finally {\n    // always runs\n    // doesn't affect the return value\n  }\n  ```\n\n  Asynchronous example:\n\n  ```js\n  findAuthor().catch(function(reason){\n    return findOtherAuthor();\n  }).finally(function(){\n    // author was either found, or not\n  });\n  ```\n\n  @method finally\n  @param {Function} callback\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n*/\n  finally(callback, label) {\n    let promise = this;\n    let constructor = promise.constructor;\n\n    if (typeof callback === 'function') {\n      return promise.then(value => constructor.resolve(callback()).then(() => value),\n                         reason => constructor.resolve(callback()).then(() => { throw reason; }));\n    }\n\n    return promise.then(callback, callback);\n  }\n}\n\nPromise.cast = resolve$$1; // deprecated\nPromise.all = all;\nPromise.race = race;\nPromise.resolve = resolve$$1;\nPromise.reject = reject$1;\n\nPromise.prototype._guidKey = guidKey;\n\n/**\n  The primary way of interacting with a promise is through its `then` method,\n  which registers callbacks to receive either a promise's eventual value or the\n  reason why the promise cannot be fulfilled.\n\n  ```js\n  findUser().then(function(user){\n    // user is available\n  }, function(reason){\n    // user is unavailable, and you are given the reason why\n  });\n  ```\n\n  Chaining\n  --------\n\n  The return value of `then` is itself a promise.  This second, 'downstream'\n  promise is resolved with the return value of the first promise's fulfillment\n  or rejection handler, or rejected if the handler throws an exception.\n\n  ```js\n  findUser().then(function (user) {\n    return user.name;\n  }, function (reason) {\n    return 'default name';\n  }).then(function (userName) {\n    // If `findUser` fulfilled, `userName` will be the user's name, otherwise it\n    // will be `'default name'`\n  });\n\n  findUser().then(function (user) {\n    throw new Error('Found user, but still unhappy');\n  }, function (reason) {\n    throw new Error('`findUser` rejected and we\\'re unhappy');\n  }).then(function (value) {\n    // never reached\n  }, function (reason) {\n    // if `findUser` fulfilled, `reason` will be 'Found user, but still unhappy'.\n    // If `findUser` rejected, `reason` will be '`findUser` rejected and we\\'re unhappy'.\n  });\n  ```\n  If the downstream promise does not specify a rejection handler, rejection reasons will be propagated further downstream.\n\n  ```js\n  findUser().then(function (user) {\n    throw new PedagogicalException('Upstream error');\n  }).then(function (value) {\n    // never reached\n  }).then(function (value) {\n    // never reached\n  }, function (reason) {\n    // The `PedgagocialException` is propagated all the way down to here\n  });\n  ```\n\n  Assimilation\n  ------------\n\n  Sometimes the value you want to propagate to a downstream promise can only be\n  retrieved asynchronously. This can be achieved by returning a promise in the\n  fulfillment or rejection handler. The downstream promise will then be pending\n  until the returned promise is settled. This is called *assimilation*.\n\n  ```js\n  findUser().then(function (user) {\n    return findCommentsByAuthor(user);\n  }).then(function (comments) {\n    // The user's comments are now available\n  });\n  ```\n\n  If the assimliated promise rejects, then the downstream promise will also reject.\n\n  ```js\n  findUser().then(function (user) {\n    return findCommentsByAuthor(user);\n  }).then(function (comments) {\n    // If `findCommentsByAuthor` fulfills, we'll have the value here\n  }, function (reason) {\n    // If `findCommentsByAuthor` rejects, we'll have the reason here\n  });\n  ```\n\n  Simple Example\n  --------------\n\n  Synchronous Example\n\n  ```javascript\n  let result;\n\n  try {\n    result = findResult();\n    // success\n  } catch(reason) {\n    // failure\n  }\n  ```\n\n  Errback Example\n\n  ```js\n  findResult(function(result, err){\n    if (err) {\n      // failure\n    } else {\n      // success\n    }\n  });\n  ```\n\n  Promise Example;\n\n  ```javascript\n  findResult().then(function(result){\n    // success\n  }, function(reason){\n    // failure\n  });\n  ```\n\n  Advanced Example\n  --------------\n\n  Synchronous Example\n\n  ```javascript\n  let author, books;\n\n  try {\n    author = findAuthor();\n    books  = findBooksByAuthor(author);\n    // success\n  } catch(reason) {\n    // failure\n  }\n  ```\n\n  Errback Example\n\n  ```js\n\n  function foundBooks(books) {\n\n  }\n\n  function failure(reason) {\n\n  }\n\n  findAuthor(function(author, err){\n    if (err) {\n      failure(err);\n      // failure\n    } else {\n      try {\n        findBoooksByAuthor(author, function(books, err) {\n          if (err) {\n            failure(err);\n          } else {\n            try {\n              foundBooks(books);\n            } catch(reason) {\n              failure(reason);\n            }\n          }\n        });\n      } catch(error) {\n        failure(err);\n      }\n      // success\n    }\n  });\n  ```\n\n  Promise Example;\n\n  ```javascript\n  findAuthor().\n    then(findBooksByAuthor).\n    then(function(books){\n      // found books\n  }).catch(function(reason){\n    // something went wrong\n  });\n  ```\n\n  @method then\n  @param {Function} onFulfillment\n  @param {Function} onRejection\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise}\n*/\nPromise.prototype.then = then;\n\nfunction makeObject(_, argumentNames) {\n  let obj = {};\n  let length = _.length;\n  let args = new Array(length);\n\n  for (let x = 0; x < length; x++) {\n    args[x] = _[x];\n  }\n\n  for (let i = 0; i < argumentNames.length; i++) {\n    let name = argumentNames[i];\n    obj[name] = args[i + 1];\n  }\n\n  return obj;\n}\n\nfunction arrayResult(_) {\n  let length = _.length;\n  let args = new Array(length - 1);\n\n  for (let i = 1; i < length; i++) {\n    args[i - 1] = _[i];\n  }\n\n  return args;\n}\n\nfunction wrapThenable(then, promise) {\n  return {\n    then(onFulFillment, onRejection) {\n      return then.call(promise, onFulFillment, onRejection);\n    }\n  };\n}\n\n/**\n  `denodeify` takes a 'node-style' function and returns a function that\n  will return an `Promise`. You can use `denodeify` in Node.js or the\n  browser when you'd prefer to use promises over using callbacks. For example,\n  `denodeify` transforms the following:\n\n  ```javascript\n  let fs = require('fs');\n\n  fs.readFile('myfile.txt', function(err, data){\n    if (err) return handleError(err);\n    handleData(data);\n  });\n  ```\n\n  into:\n\n  ```javascript\n  let fs = require('fs');\n  let readFile = denodeify(fs.readFile);\n\n  readFile('myfile.txt').then(handleData, handleError);\n  ```\n\n  If the node function has multiple success parameters, then `denodeify`\n  just returns the first one:\n\n  ```javascript\n  let request = denodeify(require('request'));\n\n  request('http://example.com').then(function(res) {\n    // ...\n  });\n  ```\n\n  However, if you need all success parameters, setting `denodeify`'s\n  second parameter to `true` causes it to return all success parameters\n  as an array:\n\n  ```javascript\n  let request = denodeify(require('request'), true);\n\n  request('http://example.com').then(function(result) {\n    // result[0] -> res\n    // result[1] -> body\n  });\n  ```\n\n  Or if you pass it an array with names it returns the parameters as a hash:\n\n  ```javascript\n  let request = denodeify(require('request'), ['res', 'body']);\n\n  request('http://example.com').then(function(result) {\n    // result.res\n    // result.body\n  });\n  ```\n\n  Sometimes you need to retain the `this`:\n\n  ```javascript\n  let app = require('express')();\n  let render = denodeify(app.render.bind(app));\n  ```\n\n  The denodified function inherits from the original function. It works in all\n  environments, except IE 10 and below. Consequently all properties of the original\n  function are available to you. However, any properties you change on the\n  denodeified function won't be changed on the original function. Example:\n\n  ```javascript\n  let request = denodeify(require('request')),\n      cookieJar = request.jar(); // <- Inheritance is used here\n\n  request('http://example.com', {jar: cookieJar}).then(function(res) {\n    // cookieJar.cookies holds now the cookies returned by example.com\n  });\n  ```\n\n  Using `denodeify` makes it easier to compose asynchronous operations instead\n  of using callbacks. For example, instead of:\n\n  ```javascript\n  let fs = require('fs');\n\n  fs.readFile('myfile.txt', function(err, data){\n    if (err) { ... } // Handle error\n    fs.writeFile('myfile2.txt', data, function(err){\n      if (err) { ... } // Handle error\n      console.log('done')\n    });\n  });\n  ```\n\n  you can chain the operations together using `then` from the returned promise:\n\n  ```javascript\n  let fs = require('fs');\n  let readFile = denodeify(fs.readFile);\n  let writeFile = denodeify(fs.writeFile);\n\n  readFile('myfile.txt').then(function(data){\n    return writeFile('myfile2.txt', data);\n  }).then(function(){\n    console.log('done')\n  }).catch(function(error){\n    // Handle error\n  });\n  ```\n\n  @method denodeify\n  @public\n  @static\n  @for rsvp\n  @param {Function} nodeFunc a 'node-style' function that takes a callback as\n  its last argument. The callback expects an error to be passed as its first\n  argument (if an error occurred, otherwise null), and the value from the\n  operation as its second argument ('function(err, value){ }').\n  @param {Boolean|Array} [options] An optional paramter that if set\n  to `true` causes the promise to fulfill with the callback's success arguments\n  as an array. This is useful if the node function has multiple success\n  paramters. If you set this paramter to an array with names, the promise will\n  fulfill with a hash with these names as keys and the success parameters as\n  values.\n  @return {Function} a function that wraps `nodeFunc` to return a `Promise`\n*/\nfunction denodeify(nodeFunc, options) {\n  let fn = function() {\n    let l = arguments.length;\n    let args = new Array(l + 1);\n    let promiseInput = false;\n\n    for (let i = 0; i < l; ++i) {\n      let arg = arguments[i];\n\n      // TODO: this code really needs to be cleaned up\n      if (!promiseInput) {\n        if (arg !== null && typeof arg === 'object') {\n          if (arg.constructor === Promise) {\n            promiseInput = true;\n          } else {\n            try {\n              promiseInput = arg.then;\n            } catch(error) {\n              let p = new Promise(noop);\n              reject(p, error);\n              return p;\n            }\n          }\n        } else {\n          promiseInput = false;\n        }\n        if (promiseInput && promiseInput !== true) {\n          arg = wrapThenable(promiseInput, arg);\n        }\n      }\n      args[i] = arg;\n    }\n\n    let promise = new Promise(noop);\n\n    args[l] = function(err, val) {\n      if (err) {\n        reject(promise, err);\n      } else if (options === undefined) {\n        resolve$1(promise, val);\n      } else if (options === true) {\n        resolve$1(promise, arrayResult(arguments));\n      } else if (Array.isArray(options)) {\n        resolve$1(promise, makeObject(arguments, options));\n      } else {\n        resolve$1(promise, val);\n      }\n    };\n\n    if (promiseInput) {\n      return handlePromiseInput(promise, args, nodeFunc, this);\n    } else {\n      return handleValueInput(promise, args, nodeFunc, this);\n    }\n  };\n\n  fn.__proto__ = nodeFunc;\n\n  return fn;\n}\n\nfunction handleValueInput(promise, args, nodeFunc, self) {\n  try {\n    nodeFunc.apply(self, args);\n  } catch (error) {\n    reject(promise, error);\n  }\n  return promise;\n}\n\nfunction handlePromiseInput(promise, args, nodeFunc, self){\n  return Promise.all(args)\n    .then(args => handleValueInput(promise, args, nodeFunc, self));\n}\n\n/**\n  This is a convenient alias for `Promise.all`.\n\n  @method all\n  @public\n  @static\n  @for rsvp\n  @param {Array} array Array of promises.\n  @param {String} [label] An optional label. This is useful\n  for tooling.\n*/\nfunction all$1(array, label) {\n  return Promise.all(array, label);\n}\n\n/**\n@module rsvp\n@public\n**/\n\nclass AllSettled extends Enumerator {\n  constructor(Constructor, entries, label) {\n    super(Constructor, entries, false /* don't abort on reject */, label);\n  }\n}\n\nAllSettled.prototype._setResultAt = setSettledResult;\n\n  /**\n  `RSVP.allSettled` is similar to `RSVP.all`, but instead of implementing\n  a fail-fast method, it waits until all the promises have returned and\n  shows you all the results. This is useful if you want to handle multiple\n  promises' failure states together as a set.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  settled. The return promise is fulfilled with an array of the states of\n  the promises passed into the `promises` array argument.\n\n  Each state object will either indicate fulfillment or rejection, and\n  provide the corresponding value or reason. The states will take one of\n  the following formats:\n\n  ```javascript\n  { state: 'fulfilled', value: value }\n    or\n  { state: 'rejected', reason: reason }\n  ```\n\n  Example:\n\n  ```javascript\n  let promise1 = RSVP.Promise.resolve(1);\n  let promise2 = RSVP.Promise.reject(new Error('2'));\n  let promise3 = RSVP.Promise.reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  RSVP.allSettled(promises).then(function(array){\n    // array == [\n    //   { state: 'fulfilled', value: 1 },\n    //   { state: 'rejected', reason: Error },\n    //   { state: 'rejected', reason: Error }\n    // ]\n    // Note that for the second item, reason.message will be '2', and for the\n    // third item, reason.message will be '3'.\n  }, function(error) {\n    // Not run. (This block would only be called if allSettled had failed,\n    // for instance if passed an incorrect argument type.)\n  });\n  ```\n\n  @method allSettled\n  @public\n  @static\n  @for rsvp\n  @param {Array} entries\n  @param {String} [label] - optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled with an array of the settled\n  states of the constituent promises.\n  */\n\nfunction allSettled(entries, label) {\n  if (!Array.isArray(entries)) {\n    return Promise.reject(new TypeError(\"Promise.allSettled must be called with an array\"), label);\n  }\n\n  return new AllSettled(Promise, entries, label).promise;\n}\n\n/**\n  This is a convenient alias for `Promise.race`.\n\n  @method race\n  @public\n  @static\n  @for rsvp\n  @param {Array} array Array of promises.\n  @param {String} [label] An optional label. This is useful\n  for tooling.\n */\nfunction race$1(array, label) {\n  return Promise.race(array, label);\n}\n\nclass PromiseHash extends Enumerator {\n  constructor(Constructor, object, abortOnReject = true, label) {\n    super(Constructor, object, abortOnReject, label);\n  }\n\n  _init(Constructor, object) {\n    this._result = {};\n    this._enumerate(object);\n  }\n\n  _enumerate(input) {\n    let keys = Object.keys(input);\n\n    let length = keys.length;\n    let promise = this.promise;\n    this._remaining = length;\n\n    let key, val;\n    for (let i = 0; promise._state === PENDING && i < length; i++) {\n      key = keys[i];\n      val = input[key];\n      this._eachEntry(val, key, true);\n    }\n\n    this._checkFullfillment();\n  }\n}\n\n/**\n  `hash` is similar to `all`, but takes an object instead of an array\n  for its `promises` argument.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  fulfilled, or rejected if any of them become rejected. The returned promise\n  is fulfilled with a hash that has the same key names as the `promises` object\n  argument. If any of the values in the object are not promises, they will\n  simply be copied over to the fulfilled object.\n\n  Example:\n\n  ```javascript\n  let promises = {\n    myPromise: resolve(1),\n    yourPromise: resolve(2),\n    theirPromise: resolve(3),\n    notAPromise: 4\n  };\n\n  hash(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise: 1,\n    //   yourPromise: 2,\n    //   theirPromise: 3,\n    //   notAPromise: 4\n    // }\n  });\n  ```\n\n  If any of the `promises` given to `hash` are rejected, the first promise\n  that is rejected will be given as the reason to the rejection handler.\n\n  Example:\n\n  ```javascript\n  let promises = {\n    myPromise: resolve(1),\n    rejectedPromise: reject(new Error('rejectedPromise')),\n    anotherRejectedPromise: reject(new Error('anotherRejectedPromise')),\n  };\n\n  hash(promises).then(function(hash){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === 'rejectedPromise'\n  });\n  ```\n\n  An important note: `hash` is intended for plain JavaScript objects that\n  are just a set of keys and values. `hash` will NOT preserve prototype\n  chains.\n\n  Example:\n\n  ```javascript\n  import { hash, resolve } from 'rsvp';\n  function MyConstructor(){\n    this.example = resolve('Example');\n  }\n\n  MyConstructor.prototype = {\n    protoProperty: resolve('Proto Property')\n  };\n\n  let myObject = new MyConstructor();\n\n  hash(myObject).then(function(hash){\n    // protoProperty will not be present, instead you will just have an\n    // object that looks like:\n    // {\n    //   example: 'Example'\n    // }\n    //\n    // hash.hasOwnProperty('protoProperty'); // false\n    // 'undefined' === typeof hash.protoProperty\n  });\n  ```\n\n  @method hash\n  @public\n  @static\n  @for rsvp\n  @param {Object} object\n  @param {String} [label] optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when all properties of `promises`\n  have been fulfilled, or rejected if any of them become rejected.\n*/\nfunction hash(object, label) {\n  return Promise.resolve(object, label)\n    .then(function(object) {\n      if (object === null || typeof object !== 'object') {\n        throw new TypeError(\"Promise.hash must be called with an object\");\n      }\n      return new PromiseHash(Promise, object, label).promise;\n    });\n}\n\nclass HashSettled extends PromiseHash {\n  constructor(Constructor, object, label) {\n    super(Constructor, object, false, label);\n  }\n}\n\nHashSettled.prototype._setResultAt = setSettledResult;\n\n/**\n  `hashSettled` is similar to `allSettled`, but takes an object\n  instead of an array for its `promises` argument.\n\n  Unlike `all` or `hash`, which implement a fail-fast method,\n  but like `allSettled`, `hashSettled` waits until all the\n  constituent promises have returned and then shows you all the results\n  with their states and values/reasons. This is useful if you want to\n  handle multiple promises' failure states together as a set.\n\n  Returns a promise that is fulfilled when all the given promises have been\n  settled, or rejected if the passed parameters are invalid.\n\n  The returned promise is fulfilled with a hash that has the same key names as\n  the `promises` object argument. If any of the values in the object are not\n  promises, they will be copied over to the fulfilled object and marked with state\n  'fulfilled'.\n\n  Example:\n\n  ```javascript\n  import { hashSettled, resolve } from 'rsvp';\n\n  let promises = {\n    myPromise: resolve(1),\n    yourPromise: resolve(2),\n    theirPromise: resolve(3),\n    notAPromise: 4\n  };\n\n  hashSettled(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise: { state: 'fulfilled', value: 1 },\n    //   yourPromise: { state: 'fulfilled', value: 2 },\n    //   theirPromise: { state: 'fulfilled', value: 3 },\n    //   notAPromise: { state: 'fulfilled', value: 4 }\n    // }\n  });\n  ```\n\n  If any of the `promises` given to `hash` are rejected, the state will\n  be set to 'rejected' and the reason for rejection provided.\n\n  Example:\n\n  ```javascript\n  import { hashSettled, reject, resolve } from 'rsvp';\n\n  let promises = {\n    myPromise: resolve(1),\n    rejectedPromise: reject(new Error('rejection')),\n    anotherRejectedPromise: reject(new Error('more rejection')),\n  };\n\n  hashSettled(promises).then(function(hash){\n    // hash here is an object that looks like:\n    // {\n    //   myPromise:              { state: 'fulfilled', value: 1 },\n    //   rejectedPromise:        { state: 'rejected', reason: Error },\n    //   anotherRejectedPromise: { state: 'rejected', reason: Error },\n    // }\n    // Note that for rejectedPromise, reason.message == 'rejection',\n    // and for anotherRejectedPromise, reason.message == 'more rejection'.\n  });\n  ```\n\n  An important note: `hashSettled` is intended for plain JavaScript objects that\n  are just a set of keys and values. `hashSettled` will NOT preserve prototype\n  chains.\n\n  Example:\n\n  ```javascript\n  import Promise, { hashSettled, resolve } from 'rsvp';\n\n  function MyConstructor(){\n    this.example = resolve('Example');\n  }\n\n  MyConstructor.prototype = {\n    protoProperty: Promise.resolve('Proto Property')\n  };\n\n  let myObject = new MyConstructor();\n\n  hashSettled(myObject).then(function(hash){\n    // protoProperty will not be present, instead you will just have an\n    // object that looks like:\n    // {\n    //   example: { state: 'fulfilled', value: 'Example' }\n    // }\n    //\n    // hash.hasOwnProperty('protoProperty'); // false\n    // 'undefined' === typeof hash.protoProperty\n  });\n  ```\n\n  @method hashSettled\n  @public\n  @for rsvp\n  @param {Object} object\n  @param {String} [label] optional string that describes the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled when when all properties of `promises`\n  have been settled.\n  @static\n*/\n\nfunction hashSettled(object, label) {\n  return Promise.resolve(object, label)\n    .then(function(object) {\n      if (object === null || typeof object !== 'object') {\n        throw new TypeError(\"hashSettled must be called with an object\");\n      }\n\n      return new HashSettled(Promise, object, false, label).promise;\n    });\n}\n\n/**\n  `rethrow` will rethrow an error on the next turn of the JavaScript event\n  loop in order to aid debugging.\n\n  Promises A+ specifies that any exceptions that occur with a promise must be\n  caught by the promises implementation and bubbled to the last handler. For\n  this reason, it is recommended that you always specify a second rejection\n  handler function to `then`. However, `rethrow` will throw the exception\n  outside of the promise, so it bubbles up to your console if in the browser,\n  or domain/cause uncaught exception in Node. `rethrow` will also throw the\n  error again so the error can be handled by the promise per the spec.\n\n  ```javascript\n  import { rethrow } from 'rsvp';\n\n  function throws(){\n    throw new Error('Whoops!');\n  }\n\n  let promise = new Promise(function(resolve, reject){\n    throws();\n  });\n\n  promise.catch(rethrow).then(function(){\n    // Code here doesn't run because the promise became rejected due to an\n    // error!\n  }, function (err){\n    // handle the error here\n  });\n  ```\n\n  The 'Whoops' error will be thrown on the next turn of the event loop\n  and you can watch for it in your console. You can also handle it using a\n  rejection handler given to `.then` or `.catch` on the returned promise.\n\n  @method rethrow\n  @public\n  @static\n  @for rsvp\n  @param {Error} reason reason the promise became rejected.\n  @throws Error\n  @static\n*/\nfunction rethrow(reason) {\n  setTimeout(() => {\n    throw reason;\n  });\n  throw reason;\n}\n\n/**\n  `defer` returns an object similar to jQuery's `$.Deferred`.\n  `defer` should be used when porting over code reliant on `$.Deferred`'s\n  interface. New code should use the `Promise` constructor instead.\n\n  The object returned from `defer` is a plain object with three properties:\n\n  * promise - an `Promise`.\n  * reject - a function that causes the `promise` property on this object to\n    become rejected\n  * resolve - a function that causes the `promise` property on this object to\n    become fulfilled.\n\n  Example:\n\n   ```javascript\n   let deferred = defer();\n\n   deferred.resolve(\"Success!\");\n\n   deferred.promise.then(function(value){\n     // value here is \"Success!\"\n   });\n   ```\n\n  @method defer\n  @public\n  @static\n  @for rsvp\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Object}\n */\n\nfunction defer(label) {\n  let deferred = { resolve: undefined, reject: undefined };\n\n  deferred.promise = new Promise((resolve, reject) => {\n    deferred.resolve = resolve;\n    deferred.reject = reject;\n  }, label);\n\n  return deferred;\n}\n\nclass MapEnumerator extends Enumerator {\n  constructor(Constructor, entries, mapFn, label) {\n    super(Constructor, entries, true, label, mapFn);\n  }\n\n  _init(Constructor, input, bool, label, mapFn) {\n    let len = input.length || 0;\n    this.length     = len;\n    this._remaining = len;\n    this._result = new Array(len);\n    this._mapFn = mapFn;\n\n    this._enumerate(input);\n  }\n\n  _setResultAt(state, i, value, firstPass) {\n    if (firstPass) {\n      try {\n        this._eachEntry(this._mapFn(value, i), i, false);\n      } catch (error) {\n        this._settledAt(REJECTED, i, error, false);\n      }\n    } else {\n      this._remaining--;\n      this._result[i] = value;\n    }\n  }\n}\n\n\n/**\n `map` is similar to JavaScript's native `map` method. `mapFn` is eagerly called\n  meaning that as soon as any promise resolves its value will be passed to `mapFn`.\n  `map` returns a promise that will become fulfilled with the result of running\n  `mapFn` on the values the promises become fulfilled with.\n\n  For example:\n\n  ```javascript\n  import { map, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n  let promises = [ promise1, promise2, promise3 ];\n\n  let mapFn = function(item){\n    return item + 1;\n  };\n\n  map(promises, mapFn).then(function(result){\n    // result is [ 2, 3, 4 ]\n  });\n  ```\n\n  If any of the `promises` given to `map` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promise's\n  rejection handler. For example:\n\n  ```javascript\n  import { map, reject, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error('2'));\n  let promise3 = reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  let mapFn = function(item){\n    return item + 1;\n  };\n\n  map(promises, mapFn).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === '2'\n  });\n  ```\n\n  `map` will also wait if a promise is returned from `mapFn`. For example,\n  say you want to get all comments from a set of blog posts, but you need\n  the blog posts first because they contain a url to those comments.\n\n  ```javscript\n  import { map } from 'rsvp';\n\n  let mapFn = function(blogPost){\n    // getComments does some ajax and returns an Promise that is fulfilled\n    // with some comments data\n    return getComments(blogPost.comments_url);\n  };\n\n  // getBlogPosts does some ajax and returns an Promise that is fulfilled\n  // with some blog post data\n  map(getBlogPosts(), mapFn).then(function(comments){\n    // comments is the result of asking the server for the comments\n    // of all blog posts returned from getBlogPosts()\n  });\n  ```\n\n  @method map\n  @public\n  @static\n  @for rsvp\n  @param {Array} promises\n  @param {Function} mapFn function to be called on each fulfilled promise.\n  @param {String} [label] optional string for labeling the promise.\n  Useful for tooling.\n  @return {Promise} promise that is fulfilled with the result of calling\n  `mapFn` on each fulfilled promise or value when they become fulfilled.\n   The promise will be rejected if any of the given `promises` become rejected.\n*/\nfunction map(promises, mapFn, label) {\n  if (typeof mapFn !== 'function') {\n    return Promise.reject(new TypeError(\"map expects a function as a second argument\"), label);\n  }\n\n  return Promise.resolve(promises, label)\n    .then(function(promises) {\n      if (!Array.isArray(promises)) {\n        throw new TypeError(\"map must be called with an array\");\n      }\n      return new MapEnumerator(Promise, promises, mapFn, label).promise;\n    });\n}\n\n/**\n  This is a convenient alias for `Promise.resolve`.\n\n  @method resolve\n  @public\n  @static\n  @for rsvp\n  @param {*} value value that the returned promise will be resolved with\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise that will become fulfilled with the given\n  `value`\n*/\nfunction resolve$2(value, label) {\n  return Promise.resolve(value, label);\n}\n\n/**\n  This is a convenient alias for `Promise.reject`.\n\n  @method reject\n  @public\n  @static\n  @for rsvp\n  @param {*} reason value that the returned promise will be rejected with.\n  @param {String} [label] optional string for identifying the returned promise.\n  Useful for tooling.\n  @return {Promise} a promise rejected with the given `reason`.\n*/\nfunction reject$2(reason, label) {\n  return Promise.reject(reason, label);\n}\n\nconst EMPTY_OBJECT = {};\n\nclass FilterEnumerator extends MapEnumerator {\n\n  _checkFullfillment() {\n    if (this._remaining === 0 && this._result !== null) {\n      let result = this._result.filter((val) => val !== EMPTY_OBJECT);\n      fulfill(this.promise, result);\n      this._result = null;\n    }\n  }\n\n  _setResultAt(state, i, value, firstPass) {\n    if (firstPass) {\n      this._result[i] = value;\n      let val, succeeded = true;\n      try {\n        val = this._mapFn(value, i);\n      } catch (error) {\n        succeeded = false;\n        this._settledAt(REJECTED, i, error, false);\n      }\n      if (succeeded) {\n        this._eachEntry(val, i, false);\n      }\n    } else {\n      this._remaining--;\n      if (!value) {\n        this._result[i] = EMPTY_OBJECT;\n      }\n    }\n  }\n}\n\n/**\n `filter` is similar to JavaScript's native `filter` method.\n `filterFn` is eagerly called meaning that as soon as any promise\n  resolves its value will be passed to `filterFn`. `filter` returns\n  a promise that will become fulfilled with the result of running\n  `filterFn` on the values the promises become fulfilled with.\n\n  For example:\n\n  ```javascript\n  import { filter, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = resolve(2);\n  let promise3 = resolve(3);\n\n  let promises = [promise1, promise2, promise3];\n\n  let filterFn = function(item){\n    return item > 1;\n  };\n\n  filter(promises, filterFn).then(function(result){\n    // result is [ 2, 3 ]\n  });\n  ```\n\n  If any of the `promises` given to `filter` are rejected, the first promise\n  that is rejected will be given as an argument to the returned promise's\n  rejection handler. For example:\n\n  ```javascript\n  import { filter, reject, resolve } from 'rsvp';\n\n  let promise1 = resolve(1);\n  let promise2 = reject(new Error('2'));\n  let promise3 = reject(new Error('3'));\n  let promises = [ promise1, promise2, promise3 ];\n\n  let filterFn = function(item){\n    return item > 1;\n  };\n\n  filter(promises, filterFn).then(function(array){\n    // Code here never runs because there are rejected promises!\n  }, function(reason) {\n    // reason.message === '2'\n  });\n  ```\n\n  `filter` will also wait for any promises returned from `filterFn`.\n  For instance, you may want to fetch a list of users then return a subset\n  of those users based on some asynchronous operation:\n\n  ```javascript\n  import { filter, resolve } from 'rsvp';\n\n  let alice = { name: 'alice' };\n  let bob   = { name: 'bob' };\n  let users = [ alice, bob ];\n\n  let promises = users.map(function(user){\n    return resolve(user);\n  });\n\n  let filterFn = function(user){\n    // Here, Alice has permissions to create a blog post, but Bob does not.\n    return getPrivilegesForUser(user).then(function(privs){\n      return privs.can_create_blog_post === true;\n    });\n  };\n  filter(promises, filterFn).then(function(users){\n    // true, because the server told us only Alice can create a blog post.\n    users.length === 1;\n    // false, because Alice is the only user present in `users`\n    users[0] === bob;\n  });\n  ```\n\n  @method filter\n  @public\n  @static\n  @for rsvp\n  @param {Array} promises\n  @param {Function} filterFn - function to be called on each resolved value to\n  filter the final results.\n  @param {String} [label] optional string describing the promise. Useful for\n  tooling.\n  @return {Promise}\n*/\n\nfunction filter(promises, filterFn, label) {\n  if (typeof filterFn !== 'function') {\n    return Promise.reject(new TypeError(\"filter expects function as a second argument\"), label);\n  }\n\n  return Promise.resolve(promises, label)\n    .then(function(promises) {\n      if (!Array.isArray(promises)) {\n        throw new TypeError(\"filter must be called with an array\");\n      }\n      return new FilterEnumerator(Promise, promises, filterFn, label).promise;\n    });\n}\n\nlet len = 0;\nlet vertxNext;\nfunction asap(callback, arg) {\n  queue$1[len] = callback;\n  queue$1[len + 1] = arg;\n  len += 2;\n  if (len === 2) {\n    // If len is 1, that means that we need to schedule an async flush.\n    // If additional callbacks are queued before the queue is flushed, they\n    // will be processed by this flush that we are scheduling.\n    scheduleFlush$1();\n  }\n}\n\nconst browserWindow = (typeof window !== 'undefined') ? window : undefined;\nconst browserGlobal = browserWindow || {};\nconst BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;\nconst isNode = typeof self === 'undefined' &&\n  typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';\n\n// test for web worker but not in IE10\nconst isWorker = typeof Uint8ClampedArray !== 'undefined' &&\n  typeof importScripts !== 'undefined' &&\n  typeof MessageChannel !== 'undefined';\n\n// node\nfunction useNextTick() {\n  let nextTick = process.nextTick;\n  // node version 0.10.x displays a deprecation warning when nextTick is used recursively\n  // setImmediate should be used instead instead\n  let version = process.versions.node.match(/^(?:(\\d+)\\.)?(?:(\\d+)\\.)?(\\*|\\d+)$/);\n  if (Array.isArray(version) && version[1] === '0' && version[2] === '10') {\n    nextTick = setImmediate;\n  }\n  return () => nextTick(flush);\n}\n\n// vertx\nfunction useVertxTimer() {\n  if (typeof vertxNext !== 'undefined') {\n    return function() {\n      vertxNext(flush);\n    };\n  }\n  return useSetTimeout();\n}\n\nfunction useMutationObserver() {\n  let iterations = 0;\n  let observer = new BrowserMutationObserver(flush);\n  let node = document.createTextNode('');\n  observer.observe(node, { characterData: true });\n\n  return () => node.data = (iterations = ++iterations % 2);\n}\n\n// web worker\nfunction useMessageChannel() {\n  let channel = new MessageChannel();\n  channel.port1.onmessage = flush;\n  return () => channel.port2.postMessage(0);\n}\n\nfunction useSetTimeout() {\n  return () => setTimeout(flush, 1);\n}\n\nconst queue$1 = new Array(1000);\n\nfunction flush() {\n  for (let i = 0; i < len; i+=2) {\n    let callback = queue$1[i];\n    let arg = queue$1[i+1];\n\n    callback(arg);\n\n    queue$1[i] = undefined;\n    queue$1[i+1] = undefined;\n  }\n\n  len = 0;\n}\n\nfunction attemptVertex() {\n  try {\n    const vertx = Function('return this')().require('vertx');\n    vertxNext = vertx.runOnLoop || vertx.runOnContext;\n    return useVertxTimer();\n  } catch(e) {\n    return useSetTimeout();\n  }\n}\n\nlet scheduleFlush$1;\n// Decide what async method to use to triggering processing of queued callbacks:\nif (isNode) {\n  scheduleFlush$1 = useNextTick();\n} else if (BrowserMutationObserver) {\n  scheduleFlush$1 = useMutationObserver();\n} else if (isWorker) {\n  scheduleFlush$1 = useMessageChannel();\n} else if (browserWindow === undefined && typeof require === 'function') {\n  scheduleFlush$1 = attemptVertex();\n} else {\n  scheduleFlush$1 = useSetTimeout();\n}\n\n// defaults\nconfig.async = asap;\nconfig.after = cb => setTimeout(cb, 0);\nconst cast = resolve$2;\n\nconst async = (callback, arg) => config.async(callback, arg);\n\nfunction on() {\n  config.on(...arguments);\n}\n\nfunction off() {\n  config.off(...arguments);\n}\n\n// Set up instrumentation through `window.__PROMISE_INTRUMENTATION__`\nif (typeof window !== 'undefined' && typeof window['__PROMISE_INSTRUMENTATION__'] === 'object') {\n  let callbacks = window['__PROMISE_INSTRUMENTATION__'];\n  configure('instrument', true);\n  for (let eventName in callbacks) {\n    if (callbacks.hasOwnProperty(eventName)) {\n      on(eventName, callbacks[eventName]);\n    }\n  }\n}\n\n// the default export here is for backwards compat:\n//   https://github.com/tildeio/rsvp.js/issues/434\nvar rsvp = {\n  asap,\n  cast,\n  Promise,\n  EventTarget,\n  all: all$1,\n  allSettled,\n  race: race$1,\n  hash,\n  hashSettled,\n  rethrow,\n  defer,\n  denodeify,\n  configure,\n  on,\n  off,\n  resolve: resolve$2,\n  reject: reject$2,\n  map,\n  async,\n  filter\n};\n\nexport default rsvp;\nexport { asap, cast, Promise, EventTarget, all$1 as all, allSettled, race$1 as race, hash, hashSettled, rethrow, defer, denodeify, configure, on, off, resolve$2 as resolve, reject$2 as reject, map, async, filter };\n","(function () {\n  function vendorModule() {\n    'use strict';\n\n    return {\n      'default': self['jQuery'],\n      __esModule: true\n    };\n  }\n  define('jquery', [], vendorModule);\n})();","(function () {\n  /*\n   * This non-standard use of `reopen` and `call` allows the component\n   * base class to be reopened without triggering the\n   * ember.component.reopen deprecation in Ember itself.\n   */\n  Ember.Object.reopen.call(Ember.Component, {\n    $(sel) {\n      (true && !(this.tagName !== '') && Ember.assert(\"You cannot access this.$() on a component with `tagName: ''` specified.\", this.tagName !== ''));\n      (true && !(false) && Ember.deprecate('Using this.$() in a component has been deprecated, consider using this.element', false, {\n        id: 'ember-views.curly-components.jquery-element',\n        since: '3.4.0',\n        until: '4.0.0',\n        url: 'https://emberjs.com/deprecations/v3.x#toc_jquery-apis',\n        for: 'ember-source'\n      }));\n      if (this.element) {\n        return sel ? jQuery(sel, this.element) : jQuery(this.element);\n      }\n    }\n  });\n})();","Ember.libraries.register(\"live-reload-middleware\", \"2.1.0\");\nEmber.libraries.register(\"@ember/jquery\", \"2.0.0\");\nEmber.libraries.register(\"ember-cli-babel\", \"7.26.11\");\nEmber.libraries.register(\"ember-cli-babel\", \"8.2.0\");\nEmber.libraries.register(\"ember-cli-babel\", \"6.18.0\");\nEmber.libraries.register(\"@ember/optional-features\", \"2.2.0\");\nEmber.libraries.register(\"ember-async-await-helper\", \"1.0.0\");\nEmber.libraries.register(\"ember-cli-htmlbars\", \"5.7.2\");\nEmber.libraries.register(\"ember-cli-htmlbars\", \"6.3.0\");\nEmber.libraries.register(\"ember-cli-htmlbars\", \"4.5.0\");\nEmber.libraries.register(\"ember-cli-htmlbars\", \"3.1.0\");\nEmber.libraries.register(\"ember-cli-htmlbars\", \"6.0.1\");\nEmber.libraries.register(\"ember-qunit\", \"4.6.0\");\nEmber.libraries.register(\"@ember/test-helpers\", \"1.7.3\");\nEmber.libraries.register(\"ember-assign-polyfill\", \"2.7.3\");\nEmber.libraries.register(\"ember-cli-htmlbars-inline-precompile\", \"2.1.0\");\nEmber.libraries.register(\"ember-test-waiters\", \"1.2.0\");\nEmber.libraries.register(\"ember-cli-test-loader\", \"2.2.0\");\nEmber.libraries.register(\"ember-cli-mirage\", \"2.4.0\");\nEmber.libraries.register(\"@embroider/macros\", \"0.41.0\");\nEmber.libraries.register(\"@embroider/macros\", \"1.16.1\");\nEmber.libraries.register(\"ember-auto-import\", \"1.12.2\");\nEmber.libraries.register(\"ember-auto-import\", \"2.6.3\");\nEmber.libraries.register(\"ember-auto-import\", \"2.7.2\");\nEmber.libraries.register(\"ember-destroyable-polyfill\", \"2.0.3\");\nEmber.libraries.register(\"ember-compatibility-helpers\", \"1.2.7\");\nEmber.libraries.register(\"ember-get-config\", \"0.5.0\");\nEmber.libraries.register(\"ember-inflector\", \"3.0.1\");\nEmber.libraries.register(\"ember-cli-code-coverage\", \"1.0.3\");\nEmber.libraries.register(\"ember-chrome-devtools\", \"0.2.0\");\nEmber.libraries.register(\"ember-cli-addon-versions\", \"1.0.1\");\nEmber.libraries.register(\"ember-cli-browser-navigation-button-test-helper\", \"0.3.0\");\nEmber.libraries.register(\"ember-cli-bundlesize\", \"0.3.0\");\nEmber.libraries.register(\"ember-cli-dependency-checker\", \"3.3.3\");\nEmber.libraries.register(\"ember-cli-dependency-lint\", \"2.0.1\");\nEmber.libraries.register(\"ember-test-selectors\", \"6.0.0\");\nEmber.libraries.register(\"ember-cli-deprecation-workflow\", \"2.1.0\");\nEmber.libraries.register(\"ember-cli-fake-server\", \"0.6.0\");\nEmber.libraries.register(\"ember-cli-pretender\", \"1.0.1\");\nEmber.libraries.register(\"ember-cli-flash\", \"1.9.0\");\nEmber.libraries.register(\"ember-runtime-enumerable-includes-polyfill\", \"2.1.0\");\nEmber.libraries.register(\"ember-cli-google-fonts\", \"2.16.2\");\nEmber.libraries.register(\"ember-cli-inline-content\", \"0.4.1\");\nEmber.libraries.register(\"ember-cli-nouislider\", \"1.2.1\");\nEmber.libraries.register(\"ember-cli-sass\", \"10.0.1\");\nEmber.libraries.register(\"ember-cli-shims\", \"1.2.0\");\nEmber.libraries.register(\"broccoli-asset-rev\", \"3.0.0\");\nEmber.libraries.register(\"ember-cli-terser\", \"4.0.2\");\nEmber.libraries.register(\"ember-cli-sri\", \"2.1.1\");\nEmber.libraries.register(\"ember-exam\", \"8.0.0\");\nEmber.libraries.register(\"ember-export-application-global\", \"2.0.1\");\nEmber.libraries.register(\"ember-i18n\", \"5.2.1\");\nEmber.libraries.register(\"ember-getowner-polyfill\", \"2.2.0\");\nEmber.libraries.register(\"ember-factory-for-polyfill\", \"1.3.1\");\nEmber.libraries.register(\"ember-load-initializers\", \"2.1.2\");\nEmber.libraries.register(\"ember-cli-typescript\", \"2.0.2\");\nEmber.libraries.register(\"ember-maybe-import-regenerator\", \"1.0.0\");\nEmber.libraries.register(\"ember-mx\", \"7.2.0\");\nEmber.libraries.register(\"ember-code-snippet\", \"2.4.0\");\nEmber.libraries.register(\"ember-responsive\", \"3.0.6\");\nEmber.libraries.register(\"ember-qunit-nice-errors\", \"1.2.1\");\nEmber.libraries.register(\"ember-resolver\", \"8.0.3\");\nEmber.libraries.register(\"ember-sinon-qunit\", \"6.0.0\");\nEmber.libraries.register(\"ember-sinon\", \"5.0.0\");\nEmber.libraries.register(\"ember-truth-helpers\", \"3.1.1\");\nEmber.libraries.register(\"ember-useragent\", \"0.10.0\");\nEmber.libraries.register(\"ember-wormhole\", \"0.6.0\");\nEmber.libraries.register(\"liquid-fire\", \"0.34.0\");\nEmber.libraries.register(\"loader.js\", \"4.7.0\");\nEmber.libraries.register(\"qunit-console-grouper\", \"0.3.0\");\nEmber.libraries.register(\"qunit-dom\", \"2.0.0\");","/* eslint-env browser */\n/* eslint max-len: off */\nwindow.deprecationWorkflow = window.deprecationWorkflow || {};\nwindow.deprecationWorkflow.config = {\n\tworkflow: [\n\t\t{ handler: 'log', matchId: 'ember-sinon-qunit.test' },\n\t\t{ handler: 'silence', matchId: 'ember-views.event-dispatcher.mouseenter-leave-move' }, // impacts ember-cli-flash\n\t\t{ handler: 'silence', matchId: 'ember-views.curly-components.jquery-element' },\n\t\t{\n\t\t\thandler: 'alert',\n\t\t\tmatchMessage:\n\t\t\t\t/The .* computed property was just overriden. This removes the computed property and replaces it with a plain value, and has been deprecated. If you want this behavior, consider defining a setter which does it manually./\n\t\t},\n\t\t{ handler: 'log', matchId: 'application-controller.router-properties' },\n\t\t{ handler: 'log', matchId: 'computed-property.override' },\n\t\t{ handler: 'silence', matchId: 'ember.globals-resolver' },\n\t\t{ handler: 'silence', matchId: 'ember-cli-mirage-config-routes-only-export' },\n\t\t{ handler: 'silence', matchId: 'globals-resolver' },\n\t\t{ handler: 'silence', matchId: 'ember-source.deprecation-without-for' },\n\t\t{ handler: 'silence', matchId: 'ember-source.deprecation-without-since' },\n\t\t{ handler: 'silence', matchId: 'ember-metal.get-with-default' }\n\t]\n};\n","/* globals self */\n\nconst LOG_LIMIT = 100;\n\n(function(){\n  self.deprecationWorkflow = self.deprecationWorkflow || {};\n  self.deprecationWorkflow.deprecationLog = {\n    messages: { }\n  };\n  self.deprecationWorkflow.logCounts = {};\n\n  function detectWorkflow(config, message, options) {\n    if (!config || !config.workflow) {\n      return;\n    }\n\n    let i, workflow, matcher, idMatcher;\n    for (i=0; i<config.workflow.length; i++) {\n      workflow = config.workflow[i];\n      matcher = workflow.matchMessage;\n      idMatcher = workflow.matchId;\n\n      if (typeof idMatcher === 'string' && options && idMatcher === options.id) {\n        return workflow;\n      } else if (typeof matcher === 'string' && matcher === message) {\n        return workflow;\n      } else if (matcher instanceof RegExp && matcher.exec(message)) {\n        return workflow;\n      }\n    }\n  }\n\n  let registerDeprecationHandler = require.has('@ember/debug') ? require('@ember/debug').registerDeprecationHandler : Ember.Debug.registerDeprecationHandler;\n\n  registerDeprecationHandler(function handleDeprecationWorkflow(message, options, next){\n    let config = self.deprecationWorkflow.config || {};\n\n    let matchingWorkflow = detectWorkflow(config, message, options);\n    if (!matchingWorkflow) {\n      if (config && config.throwOnUnhandled) {\n        throw new Error(message);\n      } else {\n        next(message, options);\n      }\n    } else {\n      switch(matchingWorkflow.handler) {\n        case 'silence':\n          // no-op\n          break;\n        case 'log': {\n          let key = (options && options.id) || message;\n          let count = self.deprecationWorkflow.logCounts[key] || 0;\n          self.deprecationWorkflow.logCounts[key] = ++count;\n\n          if (count <= LOG_LIMIT) {\n            console.warn('DEPRECATION: ' + message);\n            if (count === LOG_LIMIT) {\n              console.warn('To avoid console overflow, this deprecation will not be logged any more in this run.');\n            }\n          }\n\n          break;\n        }\n        case 'throw':\n          throw new Error(message);\n        default:\n          next(message, options);\n          break;\n      }\n    }\n  });\n\n  registerDeprecationHandler(function deprecationCollector(message, options, next){\n    let key = options && options.id || message;\n    let matchKey = options && key === options.id ? 'matchId' : 'matchMessage';\n\n    self.deprecationWorkflow.deprecationLog.messages[key] = '    { handler: \"silence\", ' + matchKey + ': ' + JSON.stringify(key) + ' }';\n    next(message, options);\n  });\n\n  let preamble = [\n    'self.deprecationWorkflow = self.deprecationWorkflow || {};',\n    'self.deprecationWorkflow.config = {\\n  workflow: [\\n',\n  ].join('\\n');\n\n  let postamble = [\n    '  ]\\n};'\n  ].join('\\n');\n\n  self.deprecationWorkflow.flushDeprecations = function flushDeprecations() {\n    let messages = self.deprecationWorkflow.deprecationLog.messages;\n    let logs = [];\n\n    for (let message in messages) {\n      logs.push(messages[message]);\n    }\n\n    let deprecations = logs.join(',\\n') + '\\n';\n\n    return preamble + deprecations + postamble;\n  };\n})();\n","(function (global, factory) {\n  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n  typeof define === 'function' && define.amd ? define(factory) :\n  global.FakeXMLHttpRequest = factory()\n}(this, function () { 'use strict';\n\n  /**\n   * Minimal Event interface implementation\n   *\n   * Original implementation by Sven Fuchs: https://gist.github.com/995028\n   * Modifications and tests by Christian Johansen.\n   *\n   * @author Sven Fuchs (svenfuchs@artweb-design.de)\n   * @author Christian Johansen (christian@cjohansen.no)\n   * @license BSD\n   *\n   * Copyright (c) 2011 Sven Fuchs, Christian Johansen\n   */\n\n  var _Event = function Event(type, bubbles, cancelable, target) {\n    this.type = type;\n    this.bubbles = bubbles;\n    this.cancelable = cancelable;\n    this.target = target;\n  };\n\n  _Event.prototype = {\n    stopPropagation: function () {},\n    preventDefault: function () {\n      this.defaultPrevented = true;\n    }\n  };\n\n  /*\n    Used to set the statusText property of an xhr object\n  */\n  var httpStatusCodes = {\n    100: \"Continue\",\n    101: \"Switching Protocols\",\n    200: \"OK\",\n    201: \"Created\",\n    202: \"Accepted\",\n    203: \"Non-Authoritative Information\",\n    204: \"No Content\",\n    205: \"Reset Content\",\n    206: \"Partial Content\",\n    300: \"Multiple Choice\",\n    301: \"Moved Permanently\",\n    302: \"Found\",\n    303: \"See Other\",\n    304: \"Not Modified\",\n    305: \"Use Proxy\",\n    307: \"Temporary Redirect\",\n    400: \"Bad Request\",\n    401: \"Unauthorized\",\n    402: \"Payment Required\",\n    403: \"Forbidden\",\n    404: \"Not Found\",\n    405: \"Method Not Allowed\",\n    406: \"Not Acceptable\",\n    407: \"Proxy Authentication Required\",\n    408: \"Request Timeout\",\n    409: \"Conflict\",\n    410: \"Gone\",\n    411: \"Length Required\",\n    412: \"Precondition Failed\",\n    413: \"Request Entity Too Large\",\n    414: \"Request-URI Too Long\",\n    415: \"Unsupported Media Type\",\n    416: \"Requested Range Not Satisfiable\",\n    417: \"Expectation Failed\",\n    422: \"Unprocessable Entity\",\n    500: \"Internal Server Error\",\n    501: \"Not Implemented\",\n    502: \"Bad Gateway\",\n    503: \"Service Unavailable\",\n    504: \"Gateway Timeout\",\n    505: \"HTTP Version Not Supported\"\n  };\n\n\n  /*\n    Cross-browser XML parsing. Used to turn\n    XML responses into Document objects\n    Borrowed from JSpec\n  */\n  function parseXML(text) {\n    var xmlDoc;\n\n    if (typeof DOMParser != \"undefined\") {\n      var parser = new DOMParser();\n      xmlDoc = parser.parseFromString(text, \"text/xml\");\n    } else {\n      xmlDoc = new ActiveXObject(\"Microsoft.XMLDOM\");\n      xmlDoc.async = \"false\";\n      xmlDoc.loadXML(text);\n    }\n\n    return xmlDoc;\n  }\n\n  /*\n    Without mocking, the native XMLHttpRequest object will throw\n    an error when attempting to set these headers. We match this behavior.\n  */\n  var unsafeHeaders = {\n    \"Accept-Charset\": true,\n    \"Accept-Encoding\": true,\n    \"Connection\": true,\n    \"Content-Length\": true,\n    \"Cookie\": true,\n    \"Cookie2\": true,\n    \"Content-Transfer-Encoding\": true,\n    \"Date\": true,\n    \"Expect\": true,\n    \"Host\": true,\n    \"Keep-Alive\": true,\n    \"Referer\": true,\n    \"TE\": true,\n    \"Trailer\": true,\n    \"Transfer-Encoding\": true,\n    \"Upgrade\": true,\n    \"User-Agent\": true,\n    \"Via\": true\n  };\n\n  /*\n    Adds an \"event\" onto the fake xhr object\n    that just calls the same-named method. This is\n    in case a library adds callbacks for these events.\n  */\n  function _addEventListener(eventName, xhr){\n    xhr.addEventListener(eventName, function (event) {\n      var listener = xhr[\"on\" + eventName];\n\n      if (listener && typeof listener == \"function\") {\n        listener.call(event.target, event);\n      }\n    });\n  }\n\n  function EventedObject() {\n    this._eventListeners = {};\n    var events = [\"loadstart\", \"progress\", \"load\", \"abort\", \"loadend\"];\n    for (var i = events.length - 1; i >= 0; i--) {\n      _addEventListener(events[i], this);\n    }\n  };\n\n  EventedObject.prototype = {\n    /*\n      Duplicates the behavior of native XMLHttpRequest's addEventListener function\n    */\n    addEventListener: function addEventListener(event, listener) {\n      this._eventListeners[event] = this._eventListeners[event] || [];\n      this._eventListeners[event].push(listener);\n    },\n\n    /*\n      Duplicates the behavior of native XMLHttpRequest's removeEventListener function\n    */\n    removeEventListener: function removeEventListener(event, listener) {\n      var listeners = this._eventListeners[event] || [];\n\n      for (var i = 0, l = listeners.length; i < l; ++i) {\n        if (listeners[i] == listener) {\n          return listeners.splice(i, 1);\n        }\n      }\n    },\n\n    /*\n      Duplicates the behavior of native XMLHttpRequest's dispatchEvent function\n    */\n    dispatchEvent: function dispatchEvent(event) {\n      var type = event.type;\n      var listeners = this._eventListeners[type] || [];\n\n      for (var i = 0; i < listeners.length; i++) {\n        if (typeof listeners[i] == \"function\") {\n          listeners[i].call(this, event);\n        } else {\n          listeners[i].handleEvent(event);\n        }\n      }\n\n      return !!event.defaultPrevented;\n    },\n\n    /*\n      Triggers an `onprogress` event with the given parameters.\n    */\n    _progress: function _progress(lengthComputable, loaded, total) {\n      var event = new _Event('progress');\n      event.target = this;\n      event.lengthComputable = lengthComputable;\n      event.loaded = loaded;\n      event.total = total;\n      this.dispatchEvent(event);\n    }\n  }\n\n  /*\n    Constructor for a fake window.XMLHttpRequest\n  */\n  function FakeXMLHttpRequest() {\n    EventedObject.call(this);\n    this.readyState = FakeXMLHttpRequest.UNSENT;\n    this.requestHeaders = {};\n    this.requestBody = null;\n    this.status = 0;\n    this.statusText = \"\";\n    this.upload = new EventedObject();\n  }\n\n  FakeXMLHttpRequest.prototype = new EventedObject();\n\n  // These status codes are available on the native XMLHttpRequest\n  // object, so we match that here in case a library is relying on them.\n  FakeXMLHttpRequest.UNSENT = 0;\n  FakeXMLHttpRequest.OPENED = 1;\n  FakeXMLHttpRequest.HEADERS_RECEIVED = 2;\n  FakeXMLHttpRequest.LOADING = 3;\n  FakeXMLHttpRequest.DONE = 4;\n\n  var FakeXMLHttpRequestProto = {\n    UNSENT: 0,\n    OPENED: 1,\n    HEADERS_RECEIVED: 2,\n    LOADING: 3,\n    DONE: 4,\n    async: true,\n    withCredentials: false,\n\n    /*\n      Duplicates the behavior of native XMLHttpRequest's open function\n    */\n    open: function open(method, url, async, username, password) {\n      this.method = method;\n      this.url = url;\n      this.async = typeof async == \"boolean\" ? async : true;\n      this.username = username;\n      this.password = password;\n      this.responseText = null;\n      this.responseXML = null;\n      this.requestHeaders = {};\n      this.sendFlag = false;\n      this._readyStateChange(FakeXMLHttpRequest.OPENED);\n    },\n\n    /*\n      Duplicates the behavior of native XMLHttpRequest's setRequestHeader function\n    */\n    setRequestHeader: function setRequestHeader(header, value) {\n      verifyState(this);\n\n      if (unsafeHeaders[header] || /^(Sec-|Proxy-)/.test(header)) {\n        throw new Error(\"Refused to set unsafe header \\\"\" + header + \"\\\"\");\n      }\n\n      if (this.requestHeaders[header]) {\n        this.requestHeaders[header] += \",\" + value;\n      } else {\n        this.requestHeaders[header] = value;\n      }\n    },\n\n    /*\n      Duplicates the behavior of native XMLHttpRequest's send function\n    */\n    send: function send(data) {\n      verifyState(this);\n\n      if (!/^(get|head)$/i.test(this.method)) {\n        var hasContentTypeHeader = false\n\n        Object.keys(this.requestHeaders).forEach(function (key) {\n          if (key.toLowerCase() === 'content-type') {\n            hasContentTypeHeader = true;\n          }\n        });\n\n        if (!hasContentTypeHeader && !(data || '').toString().match('FormData')) {\n          this.requestHeaders[\"Content-Type\"] = \"text/plain;charset=UTF-8\";\n        }\n\n        this.requestBody = data;\n      }\n\n      this.errorFlag = false;\n      this.sendFlag = this.async;\n      this._readyStateChange(FakeXMLHttpRequest.OPENED);\n\n      if (typeof this.onSend == \"function\") {\n        this.onSend(this);\n      }\n\n      this.dispatchEvent(new _Event(\"loadstart\", false, false, this));\n    },\n\n    /*\n      Duplicates the behavior of native XMLHttpRequest's abort function\n    */\n    abort: function abort() {\n      this.aborted = true;\n      this.responseText = null;\n      this.errorFlag = true;\n      this.requestHeaders = {};\n\n      if (this.readyState > FakeXMLHttpRequest.UNSENT && this.sendFlag) {\n        this._readyStateChange(FakeXMLHttpRequest.DONE);\n        this.sendFlag = false;\n      }\n\n      this.readyState = FakeXMLHttpRequest.UNSENT;\n\n      this.dispatchEvent(new _Event(\"abort\", false, false, this));\n      if (typeof this.onerror === \"function\") {\n          this.onerror();\n      }\n    },\n\n    /*\n      Duplicates the behavior of native XMLHttpRequest's getResponseHeader function\n    */\n    getResponseHeader: function getResponseHeader(header) {\n      if (this.readyState < FakeXMLHttpRequest.HEADERS_RECEIVED) {\n        return null;\n      }\n\n      if (/^Set-Cookie2?$/i.test(header)) {\n        return null;\n      }\n\n      header = header.toLowerCase();\n\n      for (var h in this.responseHeaders) {\n        if (h.toLowerCase() == header) {\n          return this.responseHeaders[h];\n        }\n      }\n\n      return null;\n    },\n\n    /*\n      Duplicates the behavior of native XMLHttpRequest's getAllResponseHeaders function\n    */\n    getAllResponseHeaders: function getAllResponseHeaders() {\n      if (this.readyState < FakeXMLHttpRequest.HEADERS_RECEIVED) {\n        return \"\";\n      }\n\n      var headers = \"\";\n\n      for (var header in this.responseHeaders) {\n        if (this.responseHeaders.hasOwnProperty(header) && !/^Set-Cookie2?$/i.test(header)) {\n          headers += header + \": \" + this.responseHeaders[header] + \"\\r\\n\";\n        }\n      }\n\n      return headers;\n    },\n\n    /*\n     Duplicates the behavior of native XMLHttpRequest's overrideMimeType function\n     */\n    overrideMimeType: function overrideMimeType(mimeType) {\n      if (typeof mimeType === \"string\") {\n        this.forceMimeType = mimeType.toLowerCase();\n      }\n    },\n\n\n    /*\n      Places a FakeXMLHttpRequest object into the passed\n      state.\n    */\n    _readyStateChange: function _readyStateChange(state) {\n      this.readyState = state;\n\n      if (typeof this.onreadystatechange == \"function\") {\n        this.onreadystatechange(new _Event(\"readystatechange\"));\n      }\n\n      this.dispatchEvent(new _Event(\"readystatechange\"));\n\n      if (this.readyState == FakeXMLHttpRequest.DONE) {\n        this.dispatchEvent(new _Event(\"load\", false, false, this));\n        this.dispatchEvent(new _Event(\"loadend\", false, false, this));\n      }\n    },\n\n\n    /*\n      Sets the FakeXMLHttpRequest object's response headers and\n      places the object into readyState 2\n    */\n    _setResponseHeaders: function _setResponseHeaders(headers) {\n      this.responseHeaders = {};\n\n      for (var header in headers) {\n        if (headers.hasOwnProperty(header)) {\n            this.responseHeaders[header] = headers[header];\n        }\n      }\n\n      if (this.forceMimeType) {\n        this.responseHeaders['Content-Type'] = this.forceMimeType;\n      }\n\n      if (this.async) {\n        this._readyStateChange(FakeXMLHttpRequest.HEADERS_RECEIVED);\n      } else {\n        this.readyState = FakeXMLHttpRequest.HEADERS_RECEIVED;\n      }\n    },\n\n    /*\n      Sets the FakeXMLHttpRequest object's response body and\n      if body text is XML, sets responseXML to parsed document\n      object\n    */\n    _setResponseBody: function _setResponseBody(body) {\n      verifyRequestSent(this);\n      verifyHeadersReceived(this);\n      verifyResponseBodyType(body);\n\n      var chunkSize = this.chunkSize || 10;\n      var index = 0;\n      this.responseText = \"\";\n\n      do {\n        if (this.async) {\n          this._readyStateChange(FakeXMLHttpRequest.LOADING);\n        }\n\n        this.responseText += body.substring(index, index + chunkSize);\n        index += chunkSize;\n      } while (index < body.length);\n\n      var type = this.getResponseHeader(\"Content-Type\");\n\n      if (this.responseText && (!type || /(text\\/xml)|(application\\/xml)|(\\+xml)/.test(type))) {\n        try {\n          this.responseXML = parseXML(this.responseText);\n        } catch (e) {\n          // Unable to parse XML - no biggie\n        }\n      }\n\n      if (this.async) {\n        this._readyStateChange(FakeXMLHttpRequest.DONE);\n      } else {\n        this.readyState = FakeXMLHttpRequest.DONE;\n      }\n    },\n\n    /*\n      Forces a response on to the FakeXMLHttpRequest object.\n\n      This is the public API for faking responses. This function\n      takes a number status, headers object, and string body:\n\n      ```\n      xhr.respond(404, {Content-Type: 'text/plain'}, \"Sorry. This object was not found.\")\n\n      ```\n    */\n    respond: function respond(status, headers, body) {\n      this._setResponseHeaders(headers || {});\n      this.status = typeof status == \"number\" ? status : 200;\n      this.statusText = httpStatusCodes[this.status];\n      this._setResponseBody(body || \"\");\n    }\n  };\n\n  for (var property in FakeXMLHttpRequestProto) {\n    FakeXMLHttpRequest.prototype[property] = FakeXMLHttpRequestProto[property];\n  }\n\n  function verifyState(xhr) {\n    if (xhr.readyState !== FakeXMLHttpRequest.OPENED) {\n      throw new Error(\"INVALID_STATE_ERR\");\n    }\n\n    if (xhr.sendFlag) {\n      throw new Error(\"INVALID_STATE_ERR\");\n    }\n  }\n\n\n  function verifyRequestSent(xhr) {\n      if (xhr.readyState == FakeXMLHttpRequest.DONE) {\n          throw new Error(\"Request done\");\n      }\n  }\n\n  function verifyHeadersReceived(xhr) {\n      if (xhr.async && xhr.readyState != FakeXMLHttpRequest.HEADERS_RECEIVED) {\n          throw new Error(\"No headers received\");\n      }\n  }\n\n  function verifyResponseBodyType(body) {\n      if (typeof body != \"string\") {\n          var error = new Error(\"Attempted to respond to fake XMLHttpRequest with \" +\n                               body + \", which is not a string.\");\n          error.name = \"InvalidBodyException\";\n          throw error;\n      }\n  }\n  var fake_xml_http_request = FakeXMLHttpRequest;\n\n  return fake_xml_http_request;\n\n}));","const createObject = Object.create;\nexport function createMap<T>() {\n  const map: { [key: string]: T | undefined } = createObject(null);\n  map[\"__\"] = undefined;\n  delete map[\"__\"];\n  return map;\n}\n","import { createMap } from \"./util\";\n\nexport interface Delegate {\n  contextEntered?(context: string, route: MatchDSL): void;\n  willAddRoute?(context: string | undefined, route: string): string;\n}\n\nexport type Opaque = {} | void | null | undefined;\n\nexport interface Route {\n  path: string;\n  handler: Opaque;\n  queryParams?: string[];\n}\n\nexport interface RouteRecognizer {\n  delegate: Delegate | undefined;\n  add(routes: Route[]): void;\n}\n\nexport interface MatchCallback {\n  (match: MatchDSL): void;\n}\n\nexport interface MatchDSL {\n  (path: string): ToDSL;\n  (path: string, callback: MatchCallback): void;\n}\n\nexport interface ToDSL {\n  to(name: string, callback?: MatchCallback): void;\n}\n\nclass Target implements ToDSL {\n  path: string;\n  matcher: Matcher;\n  delegate: Delegate | undefined;\n\n  constructor(path: string, matcher: Matcher, delegate: Delegate | undefined) {\n    this.path = path;\n    this.matcher = matcher;\n    this.delegate = delegate;\n  }\n\n  to(target: string, callback: MatchCallback) {\n    let delegate = this.delegate;\n\n    if (delegate && delegate.willAddRoute) {\n      target = delegate.willAddRoute(this.matcher.target, target);\n    }\n\n    this.matcher.add(this.path, target);\n\n    if (callback) {\n      if (callback.length === 0) { throw new Error(\"You must have an argument in the function passed to `to`\"); }\n      this.matcher.addChild(this.path, target, callback, this.delegate);\n    }\n  }\n}\n\nexport class Matcher {\n  routes: {\n    [path: string]: string | undefined;\n  };\n  children: {\n    [path: string]: Matcher | undefined;\n  };\n  target: string | undefined;\n\n  constructor(target?: string) {\n    this.routes = createMap<string>();\n    this.children = createMap<Matcher>();\n    this.target = target;\n  }\n\n  add(path: string, target: string) {\n    this.routes[path] = target;\n  }\n\n  addChild(path: string, target: string, callback: MatchCallback, delegate: Delegate | undefined) {\n    let matcher = new Matcher(target);\n    this.children[path] = matcher;\n\n    let match = generateMatch(path, matcher, delegate);\n\n    if (delegate && delegate.contextEntered) {\n      delegate.contextEntered(target, match);\n    }\n\n    callback(match);\n  }\n}\n\nfunction generateMatch(startingPath: string, matcher: Matcher, delegate: Delegate | undefined): MatchDSL {\n  function match(path: string): ToDSL;\n  function match(path: string, callback: MatchCallback): void;\n  function match(path: string, callback?: MatchCallback): ToDSL | void {\n    let fullPath = startingPath + path;\n    if (callback) {\n      callback(generateMatch(fullPath, matcher, delegate));\n    } else {\n      return new Target(fullPath, matcher, delegate);\n    }\n  };\n  return match;\n}\n\nfunction addRoute(routeArray: Route[], path: string, handler: any) {\n  let len = 0;\n  for (let i = 0; i < routeArray.length; i++) {\n    len += routeArray[i].path.length;\n  }\n\n  path = path.substr(len);\n  let route = { path: path, handler: handler };\n  routeArray.push(route);\n}\n\nfunction eachRoute<T>(baseRoute: Route[], matcher: Matcher, callback: (this: T, routes: Route[]) => void, binding: T) {\n  let routes = matcher.routes;\n  let paths = Object.keys(routes);\n  for (let i = 0; i < paths.length; i++) {\n    let path = paths[i];\n    let routeArray = baseRoute.slice();\n    addRoute(routeArray, path, routes[path]);\n    let nested = matcher.children[path];\n    if (nested) {\n      eachRoute(routeArray, nested, callback, binding);\n    } else {\n      callback.call(binding, routeArray);\n    }\n  }\n}\n\nexport default function <T extends RouteRecognizer>(this: T, callback: MatchCallback, addRouteCallback?: (routeRecognizer: T, routes: Route[]) => void) {\n  let matcher = new Matcher();\n\n  callback(generateMatch(\"\", matcher, this.delegate));\n\n  eachRoute([], matcher, function(routes: Route[]) {\n    if (addRouteCallback) { addRouteCallback(this, routes); }\n    else { this.add(routes); }\n  }, this);\n}\n","// Normalizes percent-encoded values in `path` to upper-case and decodes percent-encoded\n// values that are not reserved (i.e., unicode characters, emoji, etc). The reserved\n// chars are \"/\" and \"%\".\n// Safe to call multiple times on the same path.\nexport function normalizePath(path: string): string {\n  return path.split(\"/\")\n             .map(normalizeSegment)\n             .join(\"/\");\n}\n\n// We want to ensure the characters \"%\" and \"/\" remain in percent-encoded\n// form when normalizing paths, so replace them with their encoded form after\n// decoding the rest of the path\nconst SEGMENT_RESERVED_CHARS = /%|\\//g;\nexport function normalizeSegment(segment: string) {\n  if (segment.length < 3 || segment.indexOf(\"%\") === -1) return segment;\n  return decodeURIComponent(segment).replace(SEGMENT_RESERVED_CHARS, encodeURIComponent);\n}\n\n// We do not want to encode these characters when generating dynamic path segments\n// See https://tools.ietf.org/html/rfc3986#section-3.3\n// sub-delims: \"!\", \"$\", \"&\", \"'\", \"(\", \")\", \"*\", \"+\", \",\", \";\", \"=\"\n// others allowed by RFC 3986: \":\", \"@\"\n//\n// First encode the entire path segment, then decode any of the encoded special chars.\n//\n// The chars \"!\", \"'\", \"(\", \")\", \"*\" do not get changed by `encodeURIComponent`,\n// so the possible encoded chars are:\n// ['%24', '%26', '%2B', '%2C', '%3B', '%3D', '%3A', '%40'].\nconst PATH_SEGMENT_ENCODINGS = /%(?:2(?:4|6|B|C)|3(?:B|D|A)|40)/g;\n\nexport function encodePathSegment(str: string) {\n  return encodeURIComponent(str).replace(PATH_SEGMENT_ENCODINGS, decodeURIComponent);\n}\n","import { createMap } from \"./route-recognizer/util\";\nimport map, { Delegate, Route, Opaque, MatchCallback } from \"./route-recognizer/dsl\";\nimport { normalizePath, normalizeSegment, encodePathSegment } from \"./route-recognizer/normalizer\";\nexport { Delegate, MatchCallback } from './route-recognizer/dsl';\n\nconst enum CHARS {\n  ANY = -1,\n  STAR = 42,\n  SLASH = 47,\n  COLON = 58\n}\n\nconst escapeRegex = /(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\)/g;\n\nconst isArray = Array.isArray;\nconst hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction getParam(params: Params | null | undefined, key: string): string {\n  if (typeof params !== \"object\" || params === null) {\n    throw new Error(\"You must pass an object as the second argument to `generate`.\");\n  }\n\n  if (!hasOwnProperty.call(params, key)) {\n    throw new Error(\"You must provide param `\" + key + \"` to `generate`.\");\n  }\n\n  let value = params[key];\n  let str = typeof value === \"string\" ? value : \"\" + value;\n  if (str.length === 0) {\n    throw new Error(\"You must provide a param `\" + key + \"`.\");\n  }\n  return str;\n}\n\nconst enum SegmentType {\n  Static  = 0,\n  Dynamic = 1,\n  Star    = 2,\n  Epsilon = 4\n}\n\nconst enum SegmentFlags {\n  Static  = 2 << SegmentType.Static,\n  Dynamic = 2 << SegmentType.Dynamic,\n  Star    = 2 << SegmentType.Star,\n  Epsilon = 2 << SegmentType.Epsilon,\n  Named = Dynamic | Star,\n  Decoded = Dynamic,\n  Counted = Static | Dynamic | Star\n}\n\nconst eachChar: ((segment: Segment, currentState: State) => State)[] = [];\neachChar[SegmentType.Static] = function (segment: Segment, currentState: State) {\n  let state = currentState;\n  let value = segment.value;\n  for (let i = 0; i < value.length; i++) {\n    let ch = value.charCodeAt(i);\n    state = state.put(ch, false, false);\n  }\n  return state;\n};\neachChar[SegmentType.Dynamic] = function (_: Segment, currentState: State) {\n  return currentState.put(CHARS.SLASH, true, true);\n};\neachChar[SegmentType.Star] = function (_: Segment, currentState: State) {\n  return currentState.put(CHARS.ANY, false, true);\n};\neachChar[SegmentType.Epsilon] = function (_: Segment, currentState: State) {\n  return currentState;\n};\n\nconst regex: ((segment: Segment) => string)[] = [];\nregex[SegmentType.Static] = function (segment: Segment) {\n  return segment.value.replace(escapeRegex, \"\\\\$1\");\n};\nregex[SegmentType.Dynamic] = function () {\n  return \"([^/]+)\";\n};\nregex[SegmentType.Star] = function () {\n  return \"(.+)\";\n};\nregex[SegmentType.Epsilon] = function () {\n  return \"\";\n};\n\nconst generate: ((segment: Segment, params?: Params | null) => string)[] = [];\ngenerate[SegmentType.Static] = function (segment: Segment) {\n  return segment.value;\n};\ngenerate[SegmentType.Dynamic] = function (segment: Segment, params?: Params) {\n  let value = getParam(params, segment.value);\n  if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n    return encodePathSegment(value);\n  } else {\n    return value;\n  }\n};\ngenerate[SegmentType.Star] = function (segment: Segment, params?: Params) {\n  return getParam(params, segment.value);\n};\ngenerate[SegmentType.Epsilon] = function () {\n  return \"\";\n};\n\n// A Segment represents a segment in the original route description.\n// Each Segment type provides an `eachChar` and `regex` method.\n//\n// The `eachChar` method invokes the callback with one or more character\n// specifications. A character specification consumes one or more input\n// characters.\n//\n// The `regex` method returns a regex fragment for the segment. If the\n// segment is a dynamic of star segment, the regex fragment also includes\n// a capture.\n//\n// A character specification contains:\n//\n// * `validChars`: a String with a list of all valid characters, or\n// * `invalidChars`: a String with a list of all invalid characters\n// * `repeat`: true if the character specification can repeat\ninterface Segment {\n  type: SegmentType;\n  value: string;\n}\n\nexport interface Params {\n  [key: string]: Opaque;\n  [key: number]: Opaque;\n  queryParams?: QueryParams | null;\n}\n\ninterface PopulatedParsedHandlers {\n  names: string[];\n  shouldDecodes: any[];\n}\n\nconst EmptyObject = Object.freeze({});\ntype EmptyObject = Readonly<{}>\n\nconst EmptyArray = Object.freeze([]) as ReadonlyArray<any>;\ntype EmptyArray = ReadonlyArray<any>;\n\ninterface EmptyParsedHandlers {\n  names: EmptyArray;\n  shouldDecodes: EmptyArray;\n}\n\ntype ParsedHandler = PopulatedParsedHandlers | EmptyParsedHandlers;\n\n// The `names` will be populated with the paramter name for each dynamic/star\n// segment. `shouldDecodes` will be populated with a boolean for each dyanamic/star\n// segment, indicating whether it should be decoded during recognition.\nfunction parse(segments: Segment[], route: string, types: [number, number, number]) {\n  // normalize route as not starting with a \"/\". Recognition will\n  // also normalize.\n  if (route.length > 0 && route.charCodeAt(0) === CHARS.SLASH) { route = route.substr(1); }\n\n  let parts = route.split(\"/\");\n  let names: void | string[] = undefined;\n  let shouldDecodes: void | any[] = undefined;\n\n  for (let i = 0; i < parts.length; i++) {\n    let part = parts[i];\n    let flags: SegmentFlags = 0;\n    let type: SegmentType = 0;\n\n    if (part === \"\") {\n      type = SegmentType.Epsilon;\n    } else if (part.charCodeAt(0) === CHARS.COLON) {\n      type = SegmentType.Dynamic;\n    } else if (part.charCodeAt(0) === CHARS.STAR) {\n      type = SegmentType.Star;\n    }  else {\n      type = SegmentType.Static;\n    }\n\n    flags = 2 << type;\n\n    if (flags & SegmentFlags.Named) {\n      part = part.slice(1);\n      names = names || [];\n      names.push(part);\n\n      shouldDecodes = shouldDecodes || [];\n      shouldDecodes.push((flags & SegmentFlags.Decoded) !== 0);\n    }\n\n    if (flags & SegmentFlags.Counted) {\n      types[type]++;\n    }\n\n    segments.push({\n      type,\n      value: normalizeSegment(part)\n    });\n  }\n\n  return {\n    names: names || EmptyArray,\n    shouldDecodes: shouldDecodes || EmptyArray,\n  } as ParsedHandler;\n}\n\nfunction isEqualCharSpec(spec: CharSpec, char: number, negate: boolean) {\n  return spec.char === char && spec.negate === negate;\n}\n\ninterface EmptyHandler {\n  handler: Opaque;\n  names: EmptyArray;\n  shouldDecodes: EmptyArray;\n}\n\ninterface PopulatedHandler {\n  handler: Opaque;\n  names: string [];\n  shouldDecodes: boolean[];\n}\n\ntype Handler = EmptyHandler | PopulatedHandler;\n\n// A State has a character specification and (`charSpec`) and a list of possible\n// subsequent states (`nextStates`).\n//\n// If a State is an accepting state, it will also have several additional\n// properties:\n//\n// * `regex`: A regular expression that is used to extract parameters from paths\n//   that reached this accepting state.\n// * `handlers`: Information on how to convert the list of captures into calls\n//   to registered handlers with the specified parameters\n// * `types`: How many static, dynamic or star segments in this route. Used to\n//   decide which route to use if multiple registered routes match a path.\n//\n// Currently, State is implemented naively by looping over `nextStates` and\n// comparing a character specification against a character. A more efficient\n// implementation would use a hash of keys pointing at one or more next states.\nclass State implements CharSpec {\n  states: State[];\n  id: number;\n  negate: boolean;\n  char: number;\n  nextStates: number[] | number | null;\n  pattern: string;\n  _regex: RegExp | undefined;\n  handlers: Handler[] | undefined;\n  types: [number, number, number] | undefined;\n\n  constructor(states: State[], id: number, char: number, negate: boolean, repeat: boolean) {\n    this.states = states;\n    this.id = id;\n    this.char = char;\n    this.negate = negate;\n    this.nextStates = repeat ? id : null;\n    this.pattern = \"\";\n    this._regex = undefined;\n    this.handlers = undefined;\n    this.types = undefined;\n  }\n\n  regex(): RegExp {\n    if (!this._regex) {\n      this._regex = new RegExp(this.pattern);\n    }\n    return this._regex;\n  }\n\n  get(char: number, negate: boolean): State | void {\n    let nextStates = this.nextStates;\n    if (nextStates === null) return;\n    if (isArray(nextStates)) {\n      for (let i = 0; i < nextStates.length; i++) {\n        let child = this.states[nextStates[i]];\n        if (isEqualCharSpec(child, char, negate)) {\n          return child;\n        }\n      }\n    } else {\n      let child = this.states[nextStates];\n      if (isEqualCharSpec(child, char, negate)) {\n        return child;\n      }\n    }\n  }\n\n  put(char: number, negate: boolean, repeat: boolean) {\n    let state: State | void;\n\n    // If the character specification already exists in a child of the current\n    // state, just return that state.\n    if (state = this.get(char, negate)) { return state; }\n\n    // Make a new state for the character spec\n    let states = this.states;\n    state = new State(states, states.length, char, negate, repeat);\n    states[states.length] = state;\n\n    // Insert the new state as a child of the current state\n    if (this.nextStates == null) {\n      this.nextStates = state.id;\n    } else if (isArray(this.nextStates)) {\n      this.nextStates.push(state.id);\n    } else {\n      this.nextStates = [this.nextStates, state.id];\n    }\n\n    // Return the new state\n    return state;\n  }\n\n  // Find a list of child states matching the next character\n  match(ch: number): State[] {\n    let nextStates = this.nextStates;\n    if (!nextStates) return [];\n\n    let returned: State[] = [];\n    if (isArray(nextStates)) {\n      for (let i = 0; i < nextStates.length; i++) {\n        let child = this.states[nextStates[i]];\n\n        if (isMatch(child, ch)) {\n          returned.push(child);\n        }\n      }\n    } else {\n      let child = this.states[nextStates];\n      if (isMatch(child, ch)) {\n        returned.push(child);\n      }\n    }\n    return returned;\n  }\n}\n\nfunction isMatch(spec: CharSpec, char: number) {\n  return spec.negate ? spec.char !== char && spec.char !== CHARS.ANY : spec.char === char || spec.char === CHARS.ANY;\n}\n\n// This is a somewhat naive strategy, but should work in a lot of cases\n// A better strategy would properly resolve /posts/:id/new and /posts/edit/:id.\n//\n// This strategy generally prefers more static and less dynamic matching.\n// Specifically, it\n//\n//  * prefers fewer stars to more, then\n//  * prefers using stars for less of the match to more, then\n//  * prefers fewer dynamic segments to more, then\n//  * prefers more static segments to more\nfunction sortSolutions(states: State[]) {\n  return states.sort(function(a, b) {\n    let [ astatics, adynamics, astars ] = a.types || [0, 0, 0];\n    let [ bstatics, bdynamics, bstars ] = b.types || [0, 0, 0];\n    if (astars !== bstars) { return astars - bstars; }\n\n    if (astars) {\n      if (astatics !== bstatics) { return bstatics - astatics; }\n      if (adynamics !== bdynamics) { return bdynamics - adynamics; }\n    }\n\n    if (adynamics !== bdynamics) { return adynamics - bdynamics; }\n    if (astatics !== bstatics) { return bstatics - astatics; }\n\n    return 0;\n  });\n}\n\nfunction recognizeChar(states: State[], ch: number) {\n  let nextStates: State[] = [];\n\n  for (let i = 0, l = states.length; i < l; i++) {\n    let state = states[i];\n\n    nextStates = nextStates.concat(state.match(ch));\n  }\n\n  return nextStates;\n}\n\n\nexport interface QueryParams {\n  [param: string]: any[] | any | null | undefined;\n}\n\nexport interface Result {\n  handler: Opaque;\n  params: Params;\n  isDynamic: boolean;\n}\n\nexport interface Results extends ArrayLike<Result | undefined> {\n  queryParams: QueryParams;\n  slice(start?: number, end?: number): Result[];\n  splice(start: number, deleteCount: number, ...items: Result[]): Result[];\n  push(...results: Result[]): number;\n}\n\nclass RecognizeResults implements Results {\n  queryParams: QueryParams;\n  length = 0;\n  [index: number]: Result | undefined;\n  splice: (start: number, deleteCount: number, ...items: Result[]) => Result[];\n  slice: (start?: number, end?: number) => Result[];\n  push: (...results: Result[]) => number;\n\n  constructor(queryParams?: QueryParams) {\n    this.queryParams = queryParams || {};\n  }\n};\n\nRecognizeResults.prototype.splice = Array.prototype.splice;\nRecognizeResults.prototype.slice =  Array.prototype.slice;\nRecognizeResults.prototype.push = Array.prototype.push;\n\nfunction findHandler(state: State, originalPath: string, queryParams: QueryParams): Results {\n  let handlers = state.handlers;\n  let regex: RegExp = state.regex();\n  if (!regex || !handlers) throw new Error(\"state not initialized\");\n  let captures: RegExpMatchArray | null = originalPath.match(regex);\n  let currentCapture = 1;\n  let result = new RecognizeResults(queryParams);\n\n  result.length = handlers.length;\n\n  for (let i = 0; i < handlers.length; i++) {\n    let handler = handlers[i];\n    let names = handler.names;\n    let shouldDecodes = handler.shouldDecodes;\n    let params: EmptyObject | Params = EmptyObject;\n\n    let isDynamic = false;\n\n    if (names !== EmptyArray && shouldDecodes !== EmptyArray) {\n      for (let j = 0; j < names.length; j++) {\n        isDynamic = true;\n        let name = names[j];\n        let capture = captures && captures[currentCapture++];\n\n        if (params === EmptyObject) {\n          params = {};\n        }\n\n        if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS && shouldDecodes[j]) {\n          (<Params>params)[name] = capture && decodeURIComponent(capture);\n        } else {\n          (<Params>params)[name] = capture;\n        }\n      }\n    }\n\n    result[i] = {\n      handler: handler.handler,\n      params,\n      isDynamic\n    };\n  }\n\n  return result;\n}\n\nfunction decodeQueryParamPart(part: string): string {\n  // http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1\n  part = part.replace(/\\+/gm, \"%20\");\n  let result;\n  try {\n    result = decodeURIComponent(part);\n  } catch (error) {result = \"\"; }\n  return result;\n}\n\ninterface NamedRoute {\n  segments: Segment[];\n  handlers: Handler[];\n}\n\nclass RouteRecognizer {\n  private states: State[];\n  private rootState: State;\n  private names: {\n    [name: string]: NamedRoute | undefined;\n  } = createMap<NamedRoute>();\n  map: (context: MatchCallback, addCallback?: (router: this, routes: Route[]) => void) => void;\n  delegate: Delegate | undefined;\n\n  constructor() {\n    let states: State[] = [];\n    let state = new State(states, 0, CHARS.ANY, true, false);\n    states[0] = state;\n    this.states = states;\n    this.rootState = state;\n  }\n\n  static VERSION = \"0.3.4\";\n  // Set to false to opt-out of encoding and decoding path segments.\n  // See https://github.com/tildeio/route-recognizer/pull/55\n  static ENCODE_AND_DECODE_PATH_SEGMENTS = true;\n  static Normalizer = {\n    normalizeSegment, normalizePath, encodePathSegment\n  };\n\n  add(routes: Route[], options?: { as: string }) {\n    let currentState = this.rootState;\n    let pattern = \"^\";\n    let types: [number, number, number] = [0, 0, 0];\n    let handlers: Handler[] = new Array(routes.length);\n    let allSegments: Segment[] = [];\n\n    let isEmpty = true;\n    let j = 0;\n    for (let i = 0; i < routes.length; i++) {\n      let route = routes[i];\n      let { names, shouldDecodes } = parse(allSegments, route.path, types);\n\n      // preserve j so it points to the start of newly added segments\n      for (; j < allSegments.length; j++) {\n        let segment = allSegments[j];\n\n        if (segment.type === SegmentType.Epsilon) { continue; }\n\n        isEmpty = false;\n\n        // Add a \"/\" for the new segment\n        currentState = currentState.put(CHARS.SLASH, false, false);\n        pattern += \"/\";\n\n        // Add a representation of the segment to the NFA and regex\n        currentState = eachChar[segment.type](segment, currentState);\n        pattern += regex[segment.type](segment);\n      }\n      handlers[i] = {\n        handler: route.handler,\n        names,\n        shouldDecodes\n      };\n    }\n\n    if (isEmpty) {\n        currentState = currentState.put(CHARS.SLASH, false, false);\n      pattern += \"/\";\n    }\n\n    currentState.handlers = handlers;\n    currentState.pattern = pattern + \"$\";\n    currentState.types = types;\n\n    let name: string | undefined;\n    if (typeof options === \"object\" && options !== null && options.as) {\n      name = options.as;\n    }\n\n    if (name) {\n      // if (this.names[name]) {\n      //   throw new Error(\"You may not add a duplicate route named `\" + name + \"`.\");\n      // }\n\n      this.names[name] = {\n        segments: allSegments,\n        handlers\n      };\n    }\n  }\n\n  handlersFor(name: string) {\n    let route = this.names[name];\n\n    if (!route) { throw new Error(\"There is no route named \" + name); }\n\n    let result = new Array(route.handlers.length);\n\n    for (let i = 0; i < route.handlers.length; i++) {\n      let handler = route.handlers[i];\n      result[i] = handler;\n    }\n\n    return result;\n  }\n\n  hasRoute(name: string) {\n    return !!this.names[name];\n  }\n\n  generate(name: string, params?: Params | null) {\n    let route = this.names[name];\n    let output = \"\";\n    if (!route) { throw new Error(\"There is no route named \" + name); }\n\n    let segments: Segment[] = route.segments;\n\n    for (let i = 0; i < segments.length; i++) {\n      let segment: Segment = segments[i];\n\n      if (segment.type === SegmentType.Epsilon) {\n        continue;\n      }\n\n      output += \"/\";\n      output += generate[segment.type](segment, params);\n    }\n\n    if (output.charAt(0) !== \"/\") { output = \"/\" + output; }\n\n    if (params && params.queryParams) {\n      output += this.generateQueryString(params.queryParams);\n    }\n\n    return output;\n  }\n\n  generateQueryString(params: QueryParams) {\n    let pairs: string[] = [];\n    let keys: string[] = Object.keys(params);\n    keys.sort();\n    for (let i = 0; i < keys.length; i++) {\n      let key = keys[i];\n      let value = params[key];\n      if (value == null) {\n        continue;\n      }\n      let pair = encodeURIComponent(key);\n      if (isArray(value)) {\n        for (let j = 0; j < value.length; j++) {\n          let arrayPair = key + \"[]\" + \"=\" + encodeURIComponent(value[j]);\n          pairs.push(arrayPair);\n        }\n      } else {\n        pair += \"=\" + encodeURIComponent(value);\n        pairs.push(pair);\n      }\n    }\n\n    if (pairs.length === 0) { return \"\"; }\n\n    return \"?\" + pairs.join(\"&\");\n  }\n\n  parseQueryString(queryString: string): QueryParams {\n    let pairs = queryString.split(\"&\");\n    let queryParams: QueryParams = {};\n    for (let i = 0; i < pairs.length; i++) {\n      let pair      = pairs[i].split(\"=\"),\n          key       = decodeQueryParamPart(pair[0]),\n          keyLength = key.length,\n          isArray = false,\n          value;\n      if (pair.length === 1) {\n        value = \"true\";\n      } else {\n        // Handle arrays\n        if (keyLength > 2 && key.slice(keyLength - 2) === \"[]\") {\n          isArray = true;\n          key = key.slice(0, keyLength - 2);\n          if (!queryParams[key]) {\n            queryParams[key] = [];\n          }\n        }\n        value = pair[1] ? decodeQueryParamPart(pair[1]) : \"\";\n      }\n      if (isArray) {\n        (<string[]>queryParams[key]).push(value);\n      } else {\n        queryParams[key] = value;\n      }\n    }\n    return queryParams;\n  }\n\n  recognize(path: string): Results | undefined {\n    let results: Results | undefined;\n    let states: State[] = [ this.rootState ];\n    let queryParams = {};\n    let isSlashDropped = false;\n    let hashStart = path.indexOf(\"#\");\n    if (hashStart !== -1) {\n      path = path.substr(0, hashStart);\n    }\n\n    let queryStart = path.indexOf(\"?\");\n    if (queryStart !== -1) {\n      let queryString = path.substr(queryStart + 1, path.length);\n      path = path.substr(0, queryStart);\n      queryParams = this.parseQueryString(queryString);\n    }\n\n    if (path.charAt(0) !== \"/\") { path = \"/\" + path; }\n    let originalPath = path;\n\n    if (RouteRecognizer.ENCODE_AND_DECODE_PATH_SEGMENTS) {\n      path = normalizePath(path);\n    } else {\n      path = decodeURI(path);\n      originalPath = decodeURI(originalPath);\n    }\n\n    let pathLen = path.length;\n    if (pathLen > 1 && path.charAt(pathLen - 1) === \"/\") {\n      path = path.substr(0, pathLen - 1);\n      originalPath = originalPath.substr(0, originalPath.length - 1);\n      isSlashDropped = true;\n    }\n\n    for (let i = 0; i < path.length; i++) {\n      states = recognizeChar(states, path.charCodeAt(i));\n      if (!states.length) { break; }\n    }\n\n    let solutions: State[] = [];\n    for (let i = 0; i < states.length; i++) {\n      if (states[i].handlers) { solutions.push(states[i]); }\n    }\n\n    states = sortSolutions(solutions);\n\n    let state = solutions[0];\n\n    if (state && state.handlers) {\n      // if a trailing slash was dropped and a star segment is the last segment\n      // specified, put the trailing slash back\n      if (isSlashDropped && state.pattern && state.pattern.slice(-5) === \"(.+)$\") {\n        originalPath = originalPath + \"/\";\n      }\n      results = findHandler(state, originalPath, queryParams);\n    }\n\n    return results;\n  }\n}\n\nRouteRecognizer.prototype.map = map;\n\nexport default RouteRecognizer;\n\ninterface CharSpec {\n  negate: boolean;\n  char: number;\n}\n","(function(self) {\n'use strict';\n\nvar appearsBrowserified = typeof self !== 'undefined' &&\n                          typeof process !== 'undefined' &&\n                          Object.prototype.toString.call(process) === '[object Object]';\n\nvar RouteRecognizer = appearsBrowserified ? require('route-recognizer') : self.RouteRecognizer;\nvar FakeXMLHttpRequest = appearsBrowserified ? require('fake-xml-http-request') : self.FakeXMLHttpRequest;\n\n/**\n * parseURL - decompose a URL into its parts\n * @param  {String} url a URL\n * @return {Object} parts of the URL, including the following\n *\n * 'https://www.yahoo.com:1234/mypage?test=yes#abc'\n *\n * {\n *   host: 'www.yahoo.com:1234',\n *   protocol: 'https:',\n *   search: '?test=yes',\n *   hash: '#abc',\n *   href: 'https://www.yahoo.com:1234/mypage?test=yes#abc',\n *   pathname: '/mypage',\n *   fullpath: '/mypage?test=yes'\n * }\n */\nfunction parseURL(url) {\n  // TODO: something for when document isn't present... #yolo\n  var anchor = document.createElement('a');\n  anchor.href = url;\n\n  if (!anchor.host) {\n    anchor.href = anchor.href; // IE: load the host and protocol\n  }\n\n  var pathname = anchor.pathname;\n  if (pathname.charAt(0) !== '/') {\n    pathname = '/' + pathname; // IE: prepend leading slash\n  }\n\n  var host = anchor.host;\n  if (anchor.port === '80' || anchor.port === '443') {\n    host = anchor.hostname; // IE: remove default port\n  }\n\n  return {\n    host: host,\n    protocol: anchor.protocol,\n    search: anchor.search,\n    hash: anchor.hash,\n    href: anchor.href,\n    pathname: pathname,\n    fullpath: pathname + (anchor.search || '') + (anchor.hash || '')\n  };\n}\n\n\n/**\n * Registry\n *\n * A registry is a map of HTTP verbs to route recognizers.\n */\n\nfunction Registry(/* host */) {\n  // Herein we keep track of RouteRecognizer instances\n  // keyed by HTTP method. Feel free to add more as needed.\n  this.verbs = {\n    GET: new RouteRecognizer(),\n    PUT: new RouteRecognizer(),\n    POST: new RouteRecognizer(),\n    DELETE: new RouteRecognizer(),\n    PATCH: new RouteRecognizer(),\n    HEAD: new RouteRecognizer(),\n    OPTIONS: new RouteRecognizer()\n  };\n}\n\n/**\n * Hosts\n *\n * a map of hosts to Registries, ultimately allowing\n * a per-host-and-port, per HTTP verb lookup of RouteRecognizers\n */\nfunction Hosts() {\n  this._registries = {};\n}\n\n/**\n * Hosts#forURL - retrieve a map of HTTP verbs to RouteRecognizers\n *                for a given URL\n *\n * @param  {String} url a URL\n * @return {Registry}   a map of HTTP verbs to RouteRecognizers\n *                      corresponding to the provided URL's\n *                      hostname and port\n */\nHosts.prototype.forURL = function(url) {\n  var host = parseURL(url).host;\n  var registry = this._registries[host];\n\n  if (registry === undefined) {\n    registry = (this._registries[host] = new Registry(host));\n  }\n\n  return registry.verbs;\n};\n\n\nfunction Pretender(/* routeMap1, routeMap2, ..., options*/) {\n  this.hosts = new Hosts();\n\n  var lastArg = arguments[arguments.length - 1];\n  var options = typeof lastArg === 'object' ? lastArg : null;\n  var shouldNotTrack = options && (options.trackRequests === false);\n  var noopArray = { push: function() {}, length: 0 };\n\n  this.handlers = [];\n  this.handledRequests = shouldNotTrack ? noopArray: [];\n  this.passthroughRequests = shouldNotTrack ? noopArray: [];\n  this.unhandledRequests = shouldNotTrack ? noopArray: [];\n  this.requestReferences = [];\n  this.forcePassthrough = options && (options.forcePassthrough === true);\n  this.disableUnhandled = options && (options.disableUnhandled === true);\n\n  // reference the native XMLHttpRequest object so\n  // it can be restored later\n  this._nativeXMLHttpRequest = self.XMLHttpRequest;\n  this.running = false;\n  var ctx = { pretender: this };\n  this.ctx = ctx;\n\n  // capture xhr requests, channeling them into\n  // the route map.\n  self.XMLHttpRequest = interceptor(ctx);\n\n  // 'start' the server\n  this.running = true;\n\n  // trigger the route map DSL.\n  var argLength = options ? arguments.length - 1 : arguments.length;\n  for (var i = 0; i < argLength; i++) {\n    this.map(arguments[i]);\n  }\n}\n\nfunction interceptor(ctx) {\n  function FakeRequest() {\n    // super()\n    FakeXMLHttpRequest.call(this);\n  }\n  FakeRequest.prototype = Object.create(FakeXMLHttpRequest.prototype);\n  FakeRequest.prototype.constructor = FakeRequest;\n\n  // extend\n  FakeRequest.prototype.send = function send() {\n    if (!ctx.pretender.running) {\n      throw new Error('You shut down a Pretender instance while there was a pending request. ' +\n            'That request just tried to complete. Check to see if you accidentally shut down ' +\n            'a pretender earlier than you intended to');\n    }\n\n    FakeXMLHttpRequest.prototype.send.apply(this, arguments);\n\n    if (ctx.pretender.checkPassthrough(this)) {\n      var xhr = createPassthrough(this);\n      xhr.send.apply(xhr, arguments);\n    } else {\n      ctx.pretender.handleRequest(this);\n    }\n  };\n\n\n  function createPassthrough(fakeXHR) {\n    // event types to handle on the xhr\n    var evts = ['error', 'timeout', 'abort', 'readystatechange'];\n\n    // event types to handle on the xhr.upload\n    var uploadEvents = [];\n\n    // properties to copy from the native xhr to fake xhr\n    var lifecycleProps = ['readyState', 'responseText', 'responseXML', 'status', 'statusText'];\n\n    var xhr = fakeXHR._passthroughRequest = new ctx.pretender._nativeXMLHttpRequest();\n    xhr.open(fakeXHR.method, fakeXHR.url, fakeXHR.async, fakeXHR.username, fakeXHR.password);\n\n    if (fakeXHR.responseType === 'arraybuffer') {\n      lifecycleProps = ['readyState', 'response', 'status', 'statusText'];\n      xhr.responseType = fakeXHR.responseType;\n    }\n\n    // use onload if the browser supports it\n    if ('onload' in xhr) {\n      evts.push('load');\n    }\n\n    // add progress event for async calls\n    // avoid using progress events for sync calls, they will hang https://bugs.webkit.org/show_bug.cgi?id=40996.\n    if (fakeXHR.async && fakeXHR.responseType !== 'arraybuffer') {\n      evts.push('progress');\n      uploadEvents.push('progress');\n    }\n\n    // update `propertyNames` properties from `fromXHR` to `toXHR`\n    function copyLifecycleProperties(propertyNames, fromXHR, toXHR) {\n      for (var i = 0; i < propertyNames.length; i++) {\n        var prop = propertyNames[i];\n        if (prop in fromXHR) {\n          toXHR[prop] = fromXHR[prop];\n        }\n      }\n    }\n\n    // fire fake event on `eventable`\n    function dispatchEvent(eventable, eventType, event) {\n      eventable.dispatchEvent(event);\n      if (eventable['on' + eventType]) {\n        eventable['on' + eventType](event);\n      }\n    }\n\n    // set the on- handler on the native xhr for the given eventType\n    function createHandler(eventType) {\n      xhr['on' + eventType] = function(event) {\n        copyLifecycleProperties(lifecycleProps, xhr, fakeXHR);\n        dispatchEvent(fakeXHR, eventType, event);\n      };\n    }\n\n    // set the on- handler on the native xhr's `upload` property for\n    // the given eventType\n    function createUploadHandler(eventType) {\n      if (xhr.upload) {\n        xhr.upload['on' + eventType] = function(event) {\n          dispatchEvent(fakeXHR.upload, eventType, event);\n        };\n      }\n    }\n\n    var i;\n    for (i = 0; i < evts.length; i++) {\n      createHandler(evts[i]);\n    }\n    for (i = 0; i < uploadEvents.length; i++) {\n      createUploadHandler(uploadEvents[i]);\n    }\n\n    if (fakeXHR.async) {\n      xhr.timeout = fakeXHR.timeout;\n      xhr.withCredentials = fakeXHR.withCredentials;\n    }\n    for (var h in fakeXHR.requestHeaders) {\n      xhr.setRequestHeader(h, fakeXHR.requestHeaders[h]);\n    }\n    return xhr;\n  }\n\n  FakeRequest.prototype._passthroughCheck = function(method, args) {\n    if (this._passthroughRequest) {\n      return this._passthroughRequest[method].apply(this._passthroughRequest, args);\n    }\n    return FakeXMLHttpRequest.prototype[method].apply(this, args);\n  };\n\n  FakeRequest.prototype.abort = function abort() {\n    return this._passthroughCheck('abort', arguments);\n  };\n\n  FakeRequest.prototype.getResponseHeader = function getResponseHeader() {\n    return this._passthroughCheck('getResponseHeader', arguments);\n  };\n\n  FakeRequest.prototype.getAllResponseHeaders = function getAllResponseHeaders() {\n    return this._passthroughCheck('getAllResponseHeaders', arguments);\n  };\n\n  if (ctx.pretender._nativeXMLHttpRequest.prototype._passthroughCheck) {\n    console.warn('You created a second Pretender instance while there was already one running. ' +\n          'Running two Pretender servers at once will lead to unexpected results and will ' +\n          'be removed entirely in a future major version.' +\n          'Please call .shutdown() on your instances when you no longer need them to respond.');\n  }\n  return FakeRequest;\n}\n\nfunction verbify(verb) {\n  return function(path, handler, async) {\n    return this.register(verb, path, handler, async);\n  };\n}\n\nfunction scheduleProgressEvent(request, startTime, totalTime) {\n  setTimeout(function() {\n    if (!request.aborted && !request.status) {\n      var ellapsedTime = new Date().getTime() - startTime.getTime();\n      request.upload._progress(true, ellapsedTime, totalTime);\n      request._progress(true, ellapsedTime, totalTime);\n      scheduleProgressEvent(request, startTime, totalTime);\n    }\n  }, 50);\n}\n\nfunction isArray(array) {\n  return Object.prototype.toString.call(array) === '[object Array]';\n}\n\nvar PASSTHROUGH = {};\n\nPretender.prototype = {\n  get: verbify('GET'),\n  post: verbify('POST'),\n  put: verbify('PUT'),\n  'delete': verbify('DELETE'),\n  patch: verbify('PATCH'),\n  head: verbify('HEAD'),\n  options: verbify('OPTIONS'),\n  map: function(maps) {\n    maps.call(this);\n  },\n  register: function register(verb, url, handler, async) {\n    if (!handler) {\n      throw new Error('The function you tried passing to Pretender to handle ' +\n        verb + ' ' + url + ' is undefined or missing.');\n    }\n\n    handler.numberOfCalls = 0;\n    handler.async = async;\n    this.handlers.push(handler);\n\n    var registry = this.hosts.forURL(url)[verb];\n\n    registry.add([{\n      path: parseURL(url).fullpath,\n      handler: handler\n    }]);\n\n    return handler;\n  },\n  passthrough: PASSTHROUGH,\n  checkPassthrough: function checkPassthrough(request) {\n    var verb = request.method.toUpperCase();\n    var path = parseURL(request.url).fullpath;\n    var recognized = this.hosts.forURL(request.url)[verb].recognize(path);\n    var match = recognized && recognized[0];\n\n    if ((match && match.handler === PASSTHROUGH) || this.forcePassthrough)  {\n      this.passthroughRequests.push(request);\n      this.passthroughRequest(verb, path, request);\n      return true;\n    }\n\n    return false;\n  },\n  handleRequest: function handleRequest(request) {\n    var verb = request.method.toUpperCase();\n    var path = request.url;\n\n    var handler = this._handlerFor(verb, path, request);\n\n    if (handler) {\n      handler.handler.numberOfCalls++;\n      var async = handler.handler.async;\n      this.handledRequests.push(request);\n\n      var pretender = this;\n\n      var _handleRequest = function(statusHeadersAndBody) {\n        if (!isArray(statusHeadersAndBody)) {\n          var note = 'Remember to `return [status, headers, body];` in your route handler.';\n          throw new Error('Nothing returned by handler for ' + path + '. ' + note);\n        }\n\n        var status = statusHeadersAndBody[0],\n            headers = pretender.prepareHeaders(statusHeadersAndBody[1]),\n            body = pretender.prepareBody(statusHeadersAndBody[2], headers);\n\n        pretender.handleResponse(request, async, function() {\n          request.respond(status, headers, body);\n          pretender.handledRequest(verb, path, request);\n        });\n      };\n\n      try {\n        var result = handler.handler(request);\n        if (result && typeof result.then === 'function') {\n          // `result` is a promise, resolve it\n          result.then(function(resolvedResult) {\n            _handleRequest(resolvedResult);\n          });\n        } else {\n          _handleRequest(result);\n        }\n      } catch (error) {\n        this.erroredRequest(verb, path, request, error);\n        this.resolve(request);\n      }\n    } else {\n      if (!this.disableUnhandled) {\n        this.unhandledRequests.push(request);\n        this.unhandledRequest(verb, path, request);\n      }\n    }\n  },\n  handleResponse: function handleResponse(request, strategy, callback) {\n    var delay = typeof strategy === 'function' ? strategy() : strategy;\n    delay = typeof delay === 'boolean' || typeof delay === 'number' ? delay : 0;\n\n    if (delay === false) {\n      callback();\n    } else {\n      var pretender = this;\n      pretender.requestReferences.push({\n        request: request,\n        callback: callback\n      });\n\n      if (delay !== true) {\n        scheduleProgressEvent(request, new Date(), delay);\n        setTimeout(function() {\n          pretender.resolve(request);\n        }, delay);\n      }\n    }\n  },\n  resolve: function resolve(request) {\n    for (var i = 0, len = this.requestReferences.length; i < len; i++) {\n      var res = this.requestReferences[i];\n      if (res.request === request) {\n        res.callback();\n        this.requestReferences.splice(i, 1);\n        break;\n      }\n    }\n  },\n  requiresManualResolution: function(verb, path) {\n    var handler = this._handlerFor(verb.toUpperCase(), path, {});\n    if (!handler) { return false; }\n\n    var async = handler.handler.async;\n    return typeof async === 'function' ? async() === true : async === true;\n  },\n  prepareBody: function(body) { return body; },\n  prepareHeaders: function(headers) { return headers; },\n  handledRequest: function(/* verb, path, request */) { /* no-op */},\n  passthroughRequest: function(/* verb, path, request */) { /* no-op */},\n  unhandledRequest: function(verb, path/*, request */) {\n    throw new Error('Pretender intercepted ' + verb + ' ' +\n      path + ' but no handler was defined for this type of request');\n  },\n  erroredRequest: function(verb, path, request, error) {\n    error.message = 'Pretender intercepted ' + verb + ' ' +\n      path + ' but encountered an error: ' + error.message;\n    throw error;\n  },\n  _handlerFor: function(verb, url, request) {\n    var registry = this.hosts.forURL(url)[verb];\n    var matches = registry.recognize(parseURL(url).fullpath);\n\n    var match = matches ? matches[0] : null;\n    if (match) {\n      request.params = match.params;\n      request.queryParams = matches.queryParams;\n    }\n\n    return match;\n  },\n  shutdown: function shutdown() {\n    self.XMLHttpRequest = this._nativeXMLHttpRequest;\n    this.ctx.pretender = undefined;\n    // 'stop' the server\n    this.running = false;\n  }\n};\n\nPretender.parseURL = parseURL;\nPretender.Hosts = Hosts;\nPretender.Registry = Registry;\n\nif (typeof module === 'object') {\n  module.exports = Pretender;\n} else if (typeof define !== 'undefined') {\n  define('pretender', [], function() {\n    return Pretender;\n  });\n}\nself.Pretender = Pretender;\n}(self));\n","/*! nouislider - 14.7.0 - 4/6/2021 */\n(function(factory) {\n    if (typeof define === \"function\" && define.amd) {\n        define([], factory);\n    } else if (typeof exports === \"object\") {\n        module.exports = factory();\n    } else {\n        window.noUiSlider = factory();\n    }\n})(function() {\n    \"use strict\";\n    var VERSION = \"14.7.0\";\n    //region Helper Methods\n    function isValidFormatter(entry) {\n        return typeof entry === \"object\" && typeof entry.to === \"function\" && typeof entry.from === \"function\";\n    }\n    function removeElement(el) {\n        el.parentElement.removeChild(el);\n    }\n    function isSet(value) {\n        return value !== null && value !== undefined;\n    }\n    // Bindable version\n    function preventDefault(e) {\n        e.preventDefault();\n    }\n    // Removes duplicates from an array.\n    function unique(array) {\n        return array.filter(function (a) {\n            return !this[a] ? (this[a] = true) : false;\n        }, {});\n    }\n    // Round a value to the closest 'to'.\n    function closest(value, to) {\n        return Math.round(value / to) * to;\n    }\n    // Current position of an element relative to the document.\n    function offset(elem, orientation) {\n        var rect = elem.getBoundingClientRect();\n        var doc = elem.ownerDocument;\n        var docElem = doc.documentElement;\n        var pageOffset = getPageOffset(doc);\n        // getBoundingClientRect contains left scroll in Chrome on Android.\n        // I haven't found a feature detection that proves this. Worst case\n        // scenario on mis-match: the 'tap' feature on horizontal sliders breaks.\n        if (/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)) {\n            pageOffset.x = 0;\n        }\n        return orientation ? rect.top + pageOffset.y - docElem.clientTop : rect.left + pageOffset.x - docElem.clientLeft;\n    }\n    // Checks whether a value is numerical.\n    function isNumeric(a) {\n        return typeof a === \"number\" && !isNaN(a) && isFinite(a);\n    }\n    // Sets a class and removes it after [duration] ms.\n    function addClassFor(element, className, duration) {\n        if (duration > 0) {\n            addClass(element, className);\n            setTimeout(function () {\n                removeClass(element, className);\n            }, duration);\n        }\n    }\n    // Limits a value to 0 - 100\n    function limit(a) {\n        return Math.max(Math.min(a, 100), 0);\n    }\n    // Wraps a variable as an array, if it isn't one yet.\n    // Note that an input array is returned by reference!\n    function asArray(a) {\n        return Array.isArray(a) ? a : [a];\n    }\n    // Counts decimals\n    function countDecimals(numStr) {\n        numStr = String(numStr);\n        var pieces = numStr.split(\".\");\n        return pieces.length > 1 ? pieces[1].length : 0;\n    }\n    // http://youmightnotneedjquery.com/#add_class\n    function addClass(el, className) {\n        if (el.classList && !/\\s/.test(className)) {\n            el.classList.add(className);\n        }\n        else {\n            el.className += \" \" + className;\n        }\n    }\n    // http://youmightnotneedjquery.com/#remove_class\n    function removeClass(el, className) {\n        if (el.classList && !/\\s/.test(className)) {\n            el.classList.remove(className);\n        }\n        else {\n            el.className = el.className.replace(new RegExp(\"(^|\\\\b)\" + className.split(\" \").join(\"|\") + \"(\\\\b|$)\", \"gi\"), \" \");\n        }\n    }\n    // https://plainjs.com/javascript/attributes/adding-removing-and-testing-for-classes-9/\n    function hasClass(el, className) {\n        return el.classList ? el.classList.contains(className) : new RegExp(\"\\\\b\" + className + \"\\\\b\").test(el.className);\n    }\n    // https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollY#Notes\n    function getPageOffset(doc) {\n        var supportPageOffset = window.pageXOffset !== undefined;\n        var isCSS1Compat = (doc.compatMode || \"\") === \"CSS1Compat\";\n        var x = supportPageOffset\n            ? window.pageXOffset\n            : isCSS1Compat\n                ? doc.documentElement.scrollLeft\n                : doc.body.scrollLeft;\n        var y = supportPageOffset ? window.pageYOffset : isCSS1Compat ? doc.documentElement.scrollTop : doc.body.scrollTop;\n        return {\n            x: x,\n            y: y\n        };\n    }\n    // we provide a function to compute constants instead\n    // of accessing window.* as soon as the module needs it\n    // so that we do not compute anything if not needed\n    function getActions() {\n        // Determine the events to bind. IE11 implements pointerEvents without\n        // a prefix, which breaks compatibility with the IE10 implementation.\n        return window.navigator.pointerEnabled\n            ? {\n                start: \"pointerdown\",\n                move: \"pointermove\",\n                end: \"pointerup\"\n            }\n            : window.navigator.msPointerEnabled\n                ? {\n                    start: \"MSPointerDown\",\n                    move: \"MSPointerMove\",\n                    end: \"MSPointerUp\"\n                }\n                : {\n                    start: \"mousedown touchstart\",\n                    move: \"mousemove touchmove\",\n                    end: \"mouseup touchend\"\n                };\n    }\n    // https://github.com/WICG/EventListenerOptions/blob/gh-pages/explainer.md\n    // Issue #785\n    function getSupportsPassive() {\n        var supportsPassive = false;\n        /* eslint-disable */\n        try {\n            var opts = Object.defineProperty({}, \"passive\", {\n                get: function () {\n                    supportsPassive = true;\n                }\n            });\n            window.addEventListener(\"test\", null, opts);\n        }\n        catch (e) { }\n        /* eslint-enable */\n        return supportsPassive;\n    }\n    function getSupportsTouchActionNone() {\n        return window.CSS && CSS.supports && CSS.supports(\"touch-action\", \"none\");\n    }\n    //endregion\n    //region Range Calculation\n    // Determine the size of a sub-range in relation to a full range.\n    function subRangeRatio(pa, pb) {\n        return 100 / (pb - pa);\n    }\n    // (percentage) How many percent is this value of this range?\n    function fromPercentage(range, value, startRange) {\n        return (value * 100) / (range[startRange + 1] - range[startRange]);\n    }\n    // (percentage) Where is this value on this range?\n    function toPercentage(range, value) {\n        return fromPercentage(range, range[0] < 0 ? value + Math.abs(range[0]) : value - range[0], 0);\n    }\n    // (value) How much is this percentage on this range?\n    function isPercentage(range, value) {\n        return (value * (range[1] - range[0])) / 100 + range[0];\n    }\n    function getJ(value, arr) {\n        var j = 1;\n        while (value >= arr[j]) {\n            j += 1;\n        }\n        return j;\n    }\n    // (percentage) Input a value, find where, on a scale of 0-100, it applies.\n    function toStepping(xVal, xPct, value) {\n        if (value >= xVal.slice(-1)[0]) {\n            return 100;\n        }\n        var j = getJ(value, xVal);\n        var va = xVal[j - 1];\n        var vb = xVal[j];\n        var pa = xPct[j - 1];\n        var pb = xPct[j];\n        return pa + toPercentage([va, vb], value) / subRangeRatio(pa, pb);\n    }\n    // (value) Input a percentage, find where it is on the specified range.\n    function fromStepping(xVal, xPct, value) {\n        // There is no range group that fits 100\n        if (value >= 100) {\n            return xVal.slice(-1)[0];\n        }\n        var j = getJ(value, xPct);\n        var va = xVal[j - 1];\n        var vb = xVal[j];\n        var pa = xPct[j - 1];\n        var pb = xPct[j];\n        return isPercentage([va, vb], (value - pa) * subRangeRatio(pa, pb));\n    }\n    // (percentage) Get the step that applies at a certain value.\n    function getStep(xPct, xSteps, snap, value) {\n        if (value === 100) {\n            return value;\n        }\n        var j = getJ(value, xPct);\n        var a = xPct[j - 1];\n        var b = xPct[j];\n        // If 'snap' is set, steps are used as fixed points on the slider.\n        if (snap) {\n            // Find the closest position, a or b.\n            if (value - a > (b - a) / 2) {\n                return b;\n            }\n            return a;\n        }\n        if (!xSteps[j - 1]) {\n            return value;\n        }\n        return xPct[j - 1] + closest(value - xPct[j - 1], xSteps[j - 1]);\n    }\n    function handleEntryPoint(index, value, that) {\n        var percentage;\n        // Wrap numerical input in an array.\n        if (typeof value === \"number\") {\n            value = [value];\n        }\n        // Reject any invalid input, by testing whether value is an array.\n        if (!Array.isArray(value)) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'range' contains invalid value.\");\n        }\n        // Covert min/max syntax to 0 and 100.\n        if (index === \"min\") {\n            percentage = 0;\n        }\n        else if (index === \"max\") {\n            percentage = 100;\n        }\n        else {\n            percentage = parseFloat(index);\n        }\n        // Check for correct input.\n        if (!isNumeric(percentage) || !isNumeric(value[0])) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'range' value isn't numeric.\");\n        }\n        // Store values.\n        that.xPct.push(percentage);\n        that.xVal.push(value[0]);\n        // NaN will evaluate to false too, but to keep\n        // logging clear, set step explicitly. Make sure\n        // not to override the 'step' setting with false.\n        if (!percentage) {\n            if (!isNaN(value[1])) {\n                that.xSteps[0] = value[1];\n            }\n        }\n        else {\n            that.xSteps.push(isNaN(value[1]) ? false : value[1]);\n        }\n        that.xHighestCompleteStep.push(0);\n    }\n    function handleStepPoint(i, n, that) {\n        // Ignore 'false' stepping.\n        if (!n) {\n            return;\n        }\n        // Step over zero-length ranges (#948);\n        if (that.xVal[i] === that.xVal[i + 1]) {\n            that.xSteps[i] = that.xHighestCompleteStep[i] = that.xVal[i];\n            return;\n        }\n        // Factor to range ratio\n        that.xSteps[i] =\n            fromPercentage([that.xVal[i], that.xVal[i + 1]], n, 0) / subRangeRatio(that.xPct[i], that.xPct[i + 1]);\n        var totalSteps = (that.xVal[i + 1] - that.xVal[i]) / that.xNumSteps[i];\n        var highestStep = Math.ceil(Number(totalSteps.toFixed(3)) - 1);\n        var step = that.xVal[i] + that.xNumSteps[i] * highestStep;\n        that.xHighestCompleteStep[i] = step;\n    }\n    //endregion\n    //region Spectrum\n    function Spectrum(entry, snap, singleStep) {\n        this.xPct = [];\n        this.xVal = [];\n        this.xSteps = [singleStep || false];\n        this.xNumSteps = [false];\n        this.xHighestCompleteStep = [];\n        this.snap = snap;\n        var index;\n        var ordered = []; // [0, 'min'], [1, '50%'], [2, 'max']\n        // Map the object keys to an array.\n        for (index in entry) {\n            if (entry.hasOwnProperty(index)) {\n                ordered.push([entry[index], index]);\n            }\n        }\n        // Sort all entries by value (numeric sort).\n        if (ordered.length && typeof ordered[0][0] === \"object\") {\n            ordered.sort(function (a, b) {\n                return a[0][0] - b[0][0];\n            });\n        }\n        else {\n            ordered.sort(function (a, b) {\n                return a[0] - b[0];\n            });\n        }\n        // Convert all entries to subranges.\n        for (index = 0; index < ordered.length; index++) {\n            handleEntryPoint(ordered[index][1], ordered[index][0], this);\n        }\n        // Store the actual step values.\n        // xSteps is sorted in the same order as xPct and xVal.\n        this.xNumSteps = this.xSteps.slice(0);\n        // Convert all numeric steps to the percentage of the subrange they represent.\n        for (index = 0; index < this.xNumSteps.length; index++) {\n            handleStepPoint(index, this.xNumSteps[index], this);\n        }\n    }\n    Spectrum.prototype.getDistance = function (value) {\n        var index;\n        var distances = [];\n        for (index = 0; index < this.xNumSteps.length - 1; index++) {\n            // last \"range\" can't contain step size as it is purely an endpoint.\n            var step = this.xNumSteps[index];\n            if (step && (value / step) % 1 !== 0) {\n                throw new Error(\"noUiSlider (\" +\n                    VERSION +\n                    \"): 'limit', 'margin' and 'padding' of \" +\n                    this.xPct[index] +\n                    \"% range must be divisible by step.\");\n            }\n            // Calculate percentual distance in current range of limit, margin or padding\n            distances[index] = fromPercentage(this.xVal, value, index);\n        }\n        return distances;\n    };\n    // Calculate the percentual distance over the whole scale of ranges.\n    // direction: 0 = backwards / 1 = forwards\n    Spectrum.prototype.getAbsoluteDistance = function (value, distances, direction) {\n        var xPct_index = 0;\n        // Calculate range where to start calculation\n        if (value < this.xPct[this.xPct.length - 1]) {\n            while (value > this.xPct[xPct_index + 1]) {\n                xPct_index++;\n            }\n        }\n        else if (value === this.xPct[this.xPct.length - 1]) {\n            xPct_index = this.xPct.length - 2;\n        }\n        // If looking backwards and the value is exactly at a range separator then look one range further\n        if (!direction && value === this.xPct[xPct_index + 1]) {\n            xPct_index++;\n        }\n        var start_factor;\n        var rest_factor = 1;\n        var rest_rel_distance = distances[xPct_index];\n        var range_pct = 0;\n        var rel_range_distance = 0;\n        var abs_distance_counter = 0;\n        var range_counter = 0;\n        // Calculate what part of the start range the value is\n        if (direction) {\n            start_factor = (value - this.xPct[xPct_index]) / (this.xPct[xPct_index + 1] - this.xPct[xPct_index]);\n        }\n        else {\n            start_factor = (this.xPct[xPct_index + 1] - value) / (this.xPct[xPct_index + 1] - this.xPct[xPct_index]);\n        }\n        // Do until the complete distance across ranges is calculated\n        while (rest_rel_distance > 0) {\n            // Calculate the percentage of total range\n            range_pct = this.xPct[xPct_index + 1 + range_counter] - this.xPct[xPct_index + range_counter];\n            // Detect if the margin, padding or limit is larger then the current range and calculate\n            if (distances[xPct_index + range_counter] * rest_factor + 100 - start_factor * 100 > 100) {\n                // If larger then take the percentual distance of the whole range\n                rel_range_distance = range_pct * start_factor;\n                // Rest factor of relative percentual distance still to be calculated\n                rest_factor = (rest_rel_distance - 100 * start_factor) / distances[xPct_index + range_counter];\n                // Set start factor to 1 as for next range it does not apply.\n                start_factor = 1;\n            }\n            else {\n                // If smaller or equal then take the percentual distance of the calculate percentual part of that range\n                rel_range_distance = ((distances[xPct_index + range_counter] * range_pct) / 100) * rest_factor;\n                // No rest left as the rest fits in current range\n                rest_factor = 0;\n            }\n            if (direction) {\n                abs_distance_counter = abs_distance_counter - rel_range_distance;\n                // Limit range to first range when distance becomes outside of minimum range\n                if (this.xPct.length + range_counter >= 1) {\n                    range_counter--;\n                }\n            }\n            else {\n                abs_distance_counter = abs_distance_counter + rel_range_distance;\n                // Limit range to last range when distance becomes outside of maximum range\n                if (this.xPct.length - range_counter >= 1) {\n                    range_counter++;\n                }\n            }\n            // Rest of relative percentual distance still to be calculated\n            rest_rel_distance = distances[xPct_index + range_counter] * rest_factor;\n        }\n        return value + abs_distance_counter;\n    };\n    Spectrum.prototype.toStepping = function (value) {\n        value = toStepping(this.xVal, this.xPct, value);\n        return value;\n    };\n    Spectrum.prototype.fromStepping = function (value) {\n        return fromStepping(this.xVal, this.xPct, value);\n    };\n    Spectrum.prototype.getStep = function (value) {\n        value = getStep(this.xPct, this.xSteps, this.snap, value);\n        return value;\n    };\n    Spectrum.prototype.getDefaultStep = function (value, isDown, size) {\n        var j = getJ(value, this.xPct);\n        // When at the top or stepping down, look at the previous sub-range\n        if (value === 100 || (isDown && value === this.xPct[j - 1])) {\n            j = Math.max(j - 1, 1);\n        }\n        return (this.xVal[j] - this.xVal[j - 1]) / size;\n    };\n    Spectrum.prototype.getNearbySteps = function (value) {\n        var j = getJ(value, this.xPct);\n        return {\n            stepBefore: {\n                startValue: this.xVal[j - 2],\n                step: this.xNumSteps[j - 2],\n                highestStep: this.xHighestCompleteStep[j - 2]\n            },\n            thisStep: {\n                startValue: this.xVal[j - 1],\n                step: this.xNumSteps[j - 1],\n                highestStep: this.xHighestCompleteStep[j - 1]\n            },\n            stepAfter: {\n                startValue: this.xVal[j],\n                step: this.xNumSteps[j],\n                highestStep: this.xHighestCompleteStep[j]\n            }\n        };\n    };\n    Spectrum.prototype.countStepDecimals = function () {\n        var stepDecimals = this.xNumSteps.map(countDecimals);\n        return Math.max.apply(null, stepDecimals);\n    };\n    // Outside testing\n    Spectrum.prototype.convert = function (value) {\n        return this.getStep(this.toStepping(value));\n    };\n    //endregion\n    //region Options\n    /*\tEvery input option is tested and parsed. This'll prevent\n        endless validation in internal methods. These tests are\n        structured with an item for every option available. An\n        option can be marked as required by setting the 'r' flag.\n        The testing function is provided with three arguments:\n            - The provided value for the option;\n            - A reference to the options object;\n            - The name for the option;\n    \n        The testing function returns false when an error is detected,\n        or true when everything is OK. It can also modify the option\n        object, to make sure all values can be correctly looped elsewhere. */\n    //region Defaults\n    var defaultFormatter = {\n        to: function (value) {\n            return value !== undefined && value.toFixed(2);\n        },\n        from: Number\n    };\n    var cssClasses = {\n        target: \"target\",\n        base: \"base\",\n        origin: \"origin\",\n        handle: \"handle\",\n        handleLower: \"handle-lower\",\n        handleUpper: \"handle-upper\",\n        touchArea: \"touch-area\",\n        horizontal: \"horizontal\",\n        vertical: \"vertical\",\n        background: \"background\",\n        connect: \"connect\",\n        connects: \"connects\",\n        ltr: \"ltr\",\n        rtl: \"rtl\",\n        textDirectionLtr: \"txt-dir-ltr\",\n        textDirectionRtl: \"txt-dir-rtl\",\n        draggable: \"draggable\",\n        drag: \"state-drag\",\n        tap: \"state-tap\",\n        active: \"active\",\n        tooltip: \"tooltip\",\n        pips: \"pips\",\n        pipsHorizontal: \"pips-horizontal\",\n        pipsVertical: \"pips-vertical\",\n        marker: \"marker\",\n        markerHorizontal: \"marker-horizontal\",\n        markerVertical: \"marker-vertical\",\n        markerNormal: \"marker-normal\",\n        markerLarge: \"marker-large\",\n        markerSub: \"marker-sub\",\n        value: \"value\",\n        valueHorizontal: \"value-horizontal\",\n        valueVertical: \"value-vertical\",\n        valueNormal: \"value-normal\",\n        valueLarge: \"value-large\",\n        valueSub: \"value-sub\"\n    };\n    // Namespaces of internal event listeners\n    var INTERNAL_EVENT_NS = {\n        tooltips: \".__tooltips\",\n        aria: \".__aria\"\n    };\n    //endregion\n    function validateFormat(entry) {\n        // Any object with a to and from method is supported.\n        if (isValidFormatter(entry)) {\n            return true;\n        }\n        throw new Error(\"noUiSlider (\" + VERSION + \"): 'format' requires 'to' and 'from' methods.\");\n    }\n    function testStep(parsed, entry) {\n        if (!isNumeric(entry)) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'step' is not numeric.\");\n        }\n        // The step option can still be used to set stepping\n        // for linear sliders. Overwritten if set in 'range'.\n        parsed.singleStep = entry;\n    }\n    function testKeyboardPageMultiplier(parsed, entry) {\n        if (!isNumeric(entry)) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'keyboardPageMultiplier' is not numeric.\");\n        }\n        parsed.keyboardPageMultiplier = entry;\n    }\n    function testKeyboardDefaultStep(parsed, entry) {\n        if (!isNumeric(entry)) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'keyboardDefaultStep' is not numeric.\");\n        }\n        parsed.keyboardDefaultStep = entry;\n    }\n    function testRange(parsed, entry) {\n        // Filter incorrect input.\n        if (typeof entry !== \"object\" || Array.isArray(entry)) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'range' is not an object.\");\n        }\n        // Catch missing start or end.\n        if (entry.min === undefined || entry.max === undefined) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): Missing 'min' or 'max' in 'range'.\");\n        }\n        // Catch equal start or end.\n        if (entry.min === entry.max) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'range' 'min' and 'max' cannot be equal.\");\n        }\n        parsed.spectrum = new Spectrum(entry, parsed.snap, parsed.singleStep);\n    }\n    function testStart(parsed, entry) {\n        entry = asArray(entry);\n        // Validate input. Values aren't tested, as the public .val method\n        // will always provide a valid location.\n        if (!Array.isArray(entry) || !entry.length) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'start' option is incorrect.\");\n        }\n        // Store the number of handles.\n        parsed.handles = entry.length;\n        // When the slider is initialized, the .val method will\n        // be called with the start options.\n        parsed.start = entry;\n    }\n    function testSnap(parsed, entry) {\n        // Enforce 100% stepping within subranges.\n        parsed.snap = entry;\n        if (typeof entry !== \"boolean\") {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'snap' option must be a boolean.\");\n        }\n    }\n    function testAnimate(parsed, entry) {\n        // Enforce 100% stepping within subranges.\n        parsed.animate = entry;\n        if (typeof entry !== \"boolean\") {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'animate' option must be a boolean.\");\n        }\n    }\n    function testAnimationDuration(parsed, entry) {\n        parsed.animationDuration = entry;\n        if (typeof entry !== \"number\") {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'animationDuration' option must be a number.\");\n        }\n    }\n    function testConnect(parsed, entry) {\n        var connect = [false];\n        var i;\n        // Map legacy options\n        if (entry === \"lower\") {\n            entry = [true, false];\n        }\n        else if (entry === \"upper\") {\n            entry = [false, true];\n        }\n        // Handle boolean options\n        if (entry === true || entry === false) {\n            for (i = 1; i < parsed.handles; i++) {\n                connect.push(entry);\n            }\n            connect.push(false);\n        }\n        // Reject invalid input\n        else if (!Array.isArray(entry) || !entry.length || entry.length !== parsed.handles + 1) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'connect' option doesn't match handle count.\");\n        }\n        else {\n            connect = entry;\n        }\n        parsed.connect = connect;\n    }\n    function testOrientation(parsed, entry) {\n        // Set orientation to an a numerical value for easy\n        // array selection.\n        switch (entry) {\n            case \"horizontal\":\n                parsed.ort = 0;\n                break;\n            case \"vertical\":\n                parsed.ort = 1;\n                break;\n            default:\n                throw new Error(\"noUiSlider (\" + VERSION + \"): 'orientation' option is invalid.\");\n        }\n    }\n    function testMargin(parsed, entry) {\n        if (!isNumeric(entry)) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'margin' option must be numeric.\");\n        }\n        // Issue #582\n        if (entry === 0) {\n            return;\n        }\n        parsed.margin = parsed.spectrum.getDistance(entry);\n    }\n    function testLimit(parsed, entry) {\n        if (!isNumeric(entry)) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'limit' option must be numeric.\");\n        }\n        parsed.limit = parsed.spectrum.getDistance(entry);\n        if (!parsed.limit || parsed.handles < 2) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'limit' option is only supported on linear sliders with 2 or more handles.\");\n        }\n    }\n    function testPadding(parsed, entry) {\n        var index;\n        if (!isNumeric(entry) && !Array.isArray(entry)) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'padding' option must be numeric or array of exactly 2 numbers.\");\n        }\n        if (Array.isArray(entry) && !(entry.length === 2 || isNumeric(entry[0]) || isNumeric(entry[1]))) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'padding' option must be numeric or array of exactly 2 numbers.\");\n        }\n        if (entry === 0) {\n            return;\n        }\n        if (!Array.isArray(entry)) {\n            entry = [entry, entry];\n        }\n        // 'getDistance' returns false for invalid values.\n        parsed.padding = [parsed.spectrum.getDistance(entry[0]), parsed.spectrum.getDistance(entry[1])];\n        for (index = 0; index < parsed.spectrum.xNumSteps.length - 1; index++) {\n            // last \"range\" can't contain step size as it is purely an endpoint.\n            if (parsed.padding[0][index] < 0 || parsed.padding[1][index] < 0) {\n                throw new Error(\"noUiSlider (\" + VERSION + \"): 'padding' option must be a positive number(s).\");\n            }\n        }\n        var totalPadding = entry[0] + entry[1];\n        var firstValue = parsed.spectrum.xVal[0];\n        var lastValue = parsed.spectrum.xVal[parsed.spectrum.xVal.length - 1];\n        if (totalPadding / (lastValue - firstValue) > 1) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'padding' option must not exceed 100% of the range.\");\n        }\n    }\n    function testDirection(parsed, entry) {\n        // Set direction as a numerical value for easy parsing.\n        // Invert connection for RTL sliders, so that the proper\n        // handles get the connect/background classes.\n        switch (entry) {\n            case \"ltr\":\n                parsed.dir = 0;\n                break;\n            case \"rtl\":\n                parsed.dir = 1;\n                break;\n            default:\n                throw new Error(\"noUiSlider (\" + VERSION + \"): 'direction' option was not recognized.\");\n        }\n    }\n    function testBehaviour(parsed, entry) {\n        // Make sure the input is a string.\n        if (typeof entry !== \"string\") {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'behaviour' must be a string containing options.\");\n        }\n        // Check if the string contains any keywords.\n        // None are required.\n        var tap = entry.indexOf(\"tap\") >= 0;\n        var drag = entry.indexOf(\"drag\") >= 0;\n        var fixed = entry.indexOf(\"fixed\") >= 0;\n        var snap = entry.indexOf(\"snap\") >= 0;\n        var hover = entry.indexOf(\"hover\") >= 0;\n        var unconstrained = entry.indexOf(\"unconstrained\") >= 0;\n        if (fixed) {\n            if (parsed.handles !== 2) {\n                throw new Error(\"noUiSlider (\" + VERSION + \"): 'fixed' behaviour must be used with 2 handles\");\n            }\n            // Use margin to enforce fixed state\n            testMargin(parsed, parsed.start[1] - parsed.start[0]);\n        }\n        if (unconstrained && (parsed.margin || parsed.limit)) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'unconstrained' behaviour cannot be used with margin or limit\");\n        }\n        parsed.events = {\n            tap: tap || snap,\n            drag: drag,\n            fixed: fixed,\n            snap: snap,\n            hover: hover,\n            unconstrained: unconstrained\n        };\n    }\n    function testTooltips(parsed, entry) {\n        if (entry === false) {\n            return;\n        }\n        if (entry === true) {\n            parsed.tooltips = [];\n            for (var i = 0; i < parsed.handles; i++) {\n                parsed.tooltips.push(true);\n            }\n        }\n        else {\n            parsed.tooltips = asArray(entry);\n            if (parsed.tooltips.length !== parsed.handles) {\n                throw new Error(\"noUiSlider (\" + VERSION + \"): must pass a formatter for all handles.\");\n            }\n            parsed.tooltips.forEach(function (formatter) {\n                if (typeof formatter !== \"boolean\" &&\n                    (typeof formatter !== \"object\" || typeof formatter.to !== \"function\")) {\n                    throw new Error(\"noUiSlider (\" + VERSION + \"): 'tooltips' must be passed a formatter or 'false'.\");\n                }\n            });\n        }\n    }\n    function testAriaFormat(parsed, entry) {\n        parsed.ariaFormat = entry;\n        validateFormat(entry);\n    }\n    function testFormat(parsed, entry) {\n        parsed.format = entry;\n        validateFormat(entry);\n    }\n    function testKeyboardSupport(parsed, entry) {\n        parsed.keyboardSupport = entry;\n        if (typeof entry !== \"boolean\") {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'keyboardSupport' option must be a boolean.\");\n        }\n    }\n    function testDocumentElement(parsed, entry) {\n        // This is an advanced option. Passed values are used without validation.\n        parsed.documentElement = entry;\n    }\n    function testCssPrefix(parsed, entry) {\n        if (typeof entry !== \"string\" && entry !== false) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'cssPrefix' must be a string or `false`.\");\n        }\n        parsed.cssPrefix = entry;\n    }\n    function testCssClasses(parsed, entry) {\n        if (typeof entry !== \"object\") {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): 'cssClasses' must be an object.\");\n        }\n        if (typeof parsed.cssPrefix === \"string\") {\n            parsed.cssClasses = {};\n            for (var key in entry) {\n                if (!entry.hasOwnProperty(key)) {\n                    continue;\n                }\n                parsed.cssClasses[key] = parsed.cssPrefix + entry[key];\n            }\n        }\n        else {\n            parsed.cssClasses = entry;\n        }\n    }\n    // Test all developer settings and parse to assumption-safe values.\n    function testOptions(options) {\n        // To prove a fix for #537, freeze options here.\n        // If the object is modified, an error will be thrown.\n        // Object.freeze(options);\n        var parsed = {\n            margin: 0,\n            limit: 0,\n            padding: 0,\n            animate: true,\n            animationDuration: 300,\n            ariaFormat: defaultFormatter,\n            format: defaultFormatter\n        };\n        // Tests are executed in the order they are presented here.\n        var tests = {\n            step: { r: false, t: testStep },\n            keyboardPageMultiplier: { r: false, t: testKeyboardPageMultiplier },\n            keyboardDefaultStep: { r: false, t: testKeyboardDefaultStep },\n            start: { r: true, t: testStart },\n            connect: { r: true, t: testConnect },\n            direction: { r: true, t: testDirection },\n            snap: { r: false, t: testSnap },\n            animate: { r: false, t: testAnimate },\n            animationDuration: { r: false, t: testAnimationDuration },\n            range: { r: true, t: testRange },\n            orientation: { r: false, t: testOrientation },\n            margin: { r: false, t: testMargin },\n            limit: { r: false, t: testLimit },\n            padding: { r: false, t: testPadding },\n            behaviour: { r: true, t: testBehaviour },\n            ariaFormat: { r: false, t: testAriaFormat },\n            format: { r: false, t: testFormat },\n            tooltips: { r: false, t: testTooltips },\n            keyboardSupport: { r: true, t: testKeyboardSupport },\n            documentElement: { r: false, t: testDocumentElement },\n            cssPrefix: { r: true, t: testCssPrefix },\n            cssClasses: { r: true, t: testCssClasses }\n        };\n        var defaults = {\n            connect: false,\n            direction: \"ltr\",\n            behaviour: \"tap\",\n            orientation: \"horizontal\",\n            keyboardSupport: true,\n            cssPrefix: \"noUi-\",\n            cssClasses: cssClasses,\n            keyboardPageMultiplier: 5,\n            keyboardDefaultStep: 10\n        };\n        // AriaFormat defaults to regular format, if any.\n        if (options.format && !options.ariaFormat) {\n            options.ariaFormat = options.format;\n        }\n        // Run all options through a testing mechanism to ensure correct\n        // input. It should be noted that options might get modified to\n        // be handled properly. E.g. wrapping integers in arrays.\n        Object.keys(tests).forEach(function (name) {\n            // If the option isn't set, but it is required, throw an error.\n            if (!isSet(options[name]) && defaults[name] === undefined) {\n                if (tests[name].r) {\n                    throw new Error(\"noUiSlider (\" + VERSION + \"): '\" + name + \"' is required.\");\n                }\n                return true;\n            }\n            tests[name].t(parsed, !isSet(options[name]) ? defaults[name] : options[name]);\n        });\n        // Forward pips options\n        parsed.pips = options.pips;\n        // All recent browsers accept unprefixed transform.\n        // We need -ms- for IE9 and -webkit- for older Android;\n        // Assume use of -webkit- if unprefixed and -ms- are not supported.\n        // https://caniuse.com/#feat=transforms2d\n        var d = document.createElement(\"div\");\n        var msPrefix = d.style.msTransform !== undefined;\n        var noPrefix = d.style.transform !== undefined;\n        parsed.transformRule = noPrefix ? \"transform\" : msPrefix ? \"msTransform\" : \"webkitTransform\";\n        // Pips don't move, so we can place them using left/top.\n        var styles = [[\"left\", \"top\"], [\"right\", \"bottom\"]];\n        parsed.style = styles[parsed.dir][parsed.ort];\n        return parsed;\n    }\n    //endregion\n    function scope(target, options, originalOptions) {\n        var actions = getActions();\n        var supportsTouchActionNone = getSupportsTouchActionNone();\n        var supportsPassive = supportsTouchActionNone && getSupportsPassive();\n        // All variables local to 'scope' are prefixed with 'scope_'\n        // Slider DOM Nodes\n        var scope_Target = target;\n        var scope_Base;\n        var scope_Handles;\n        var scope_Connects;\n        var scope_Pips;\n        var scope_Tooltips;\n        // Slider state values\n        var scope_Spectrum = options.spectrum;\n        var scope_Values = [];\n        var scope_Locations = [];\n        var scope_HandleNumbers = [];\n        var scope_ActiveHandlesCount = 0;\n        var scope_Events = {};\n        // Exposed API\n        var scope_Self;\n        // Document Nodes\n        var scope_Document = target.ownerDocument;\n        var scope_DocumentElement = options.documentElement || scope_Document.documentElement;\n        var scope_Body = scope_Document.body;\n        // Pips constants\n        var PIPS_NONE = -1;\n        var PIPS_NO_VALUE = 0;\n        var PIPS_LARGE_VALUE = 1;\n        var PIPS_SMALL_VALUE = 2;\n        // For horizontal sliders in standard ltr documents,\n        // make .noUi-origin overflow to the left so the document doesn't scroll.\n        var scope_DirOffset = scope_Document.dir === \"rtl\" || options.ort === 1 ? 0 : 100;\n        // Creates a node, adds it to target, returns the new node.\n        function addNodeTo(addTarget, className) {\n            var div = scope_Document.createElement(\"div\");\n            if (className) {\n                addClass(div, className);\n            }\n            addTarget.appendChild(div);\n            return div;\n        }\n        // Append a origin to the base\n        function addOrigin(base, handleNumber) {\n            var origin = addNodeTo(base, options.cssClasses.origin);\n            var handle = addNodeTo(origin, options.cssClasses.handle);\n            addNodeTo(handle, options.cssClasses.touchArea);\n            handle.setAttribute(\"data-handle\", handleNumber);\n            if (options.keyboardSupport) {\n                // https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex\n                // 0 = focusable and reachable\n                handle.setAttribute(\"tabindex\", \"0\");\n                handle.addEventListener(\"keydown\", function (event) {\n                    return eventKeydown(event, handleNumber);\n                });\n            }\n            handle.setAttribute(\"role\", \"slider\");\n            handle.setAttribute(\"aria-orientation\", options.ort ? \"vertical\" : \"horizontal\");\n            if (handleNumber === 0) {\n                addClass(handle, options.cssClasses.handleLower);\n            }\n            else if (handleNumber === options.handles - 1) {\n                addClass(handle, options.cssClasses.handleUpper);\n            }\n            return origin;\n        }\n        // Insert nodes for connect elements\n        function addConnect(base, add) {\n            if (!add) {\n                return false;\n            }\n            return addNodeTo(base, options.cssClasses.connect);\n        }\n        // Add handles to the slider base.\n        function addElements(connectOptions, base) {\n            var connectBase = addNodeTo(base, options.cssClasses.connects);\n            scope_Handles = [];\n            scope_Connects = [];\n            scope_Connects.push(addConnect(connectBase, connectOptions[0]));\n            // [::::O====O====O====]\n            // connectOptions = [0, 1, 1, 1]\n            for (var i = 0; i < options.handles; i++) {\n                // Keep a list of all added handles.\n                scope_Handles.push(addOrigin(base, i));\n                scope_HandleNumbers[i] = i;\n                scope_Connects.push(addConnect(connectBase, connectOptions[i + 1]));\n            }\n        }\n        // Initialize a single slider.\n        function addSlider(addTarget) {\n            // Apply classes and data to the target.\n            addClass(addTarget, options.cssClasses.target);\n            if (options.dir === 0) {\n                addClass(addTarget, options.cssClasses.ltr);\n            }\n            else {\n                addClass(addTarget, options.cssClasses.rtl);\n            }\n            if (options.ort === 0) {\n                addClass(addTarget, options.cssClasses.horizontal);\n            }\n            else {\n                addClass(addTarget, options.cssClasses.vertical);\n            }\n            var textDirection = getComputedStyle(addTarget).direction;\n            if (textDirection === \"rtl\") {\n                addClass(addTarget, options.cssClasses.textDirectionRtl);\n            }\n            else {\n                addClass(addTarget, options.cssClasses.textDirectionLtr);\n            }\n            return addNodeTo(addTarget, options.cssClasses.base);\n        }\n        function addTooltip(handle, handleNumber) {\n            if (!options.tooltips[handleNumber]) {\n                return false;\n            }\n            return addNodeTo(handle.firstChild, options.cssClasses.tooltip);\n        }\n        function isSliderDisabled() {\n            return scope_Target.hasAttribute(\"disabled\");\n        }\n        // Disable the slider dragging if any handle is disabled\n        function isHandleDisabled(handleNumber) {\n            var handleOrigin = scope_Handles[handleNumber];\n            return handleOrigin.hasAttribute(\"disabled\");\n        }\n        function removeTooltips() {\n            if (scope_Tooltips) {\n                removeEvent(\"update\" + INTERNAL_EVENT_NS.tooltips);\n                scope_Tooltips.forEach(function (tooltip) {\n                    if (tooltip) {\n                        removeElement(tooltip);\n                    }\n                });\n                scope_Tooltips = null;\n            }\n        }\n        // The tooltips option is a shorthand for using the 'update' event.\n        function tooltips() {\n            removeTooltips();\n            // Tooltips are added with options.tooltips in original order.\n            scope_Tooltips = scope_Handles.map(addTooltip);\n            bindEvent(\"update\" + INTERNAL_EVENT_NS.tooltips, function (values, handleNumber, unencoded) {\n                if (!scope_Tooltips[handleNumber]) {\n                    return;\n                }\n                var formattedValue = values[handleNumber];\n                if (options.tooltips[handleNumber] !== true) {\n                    formattedValue = options.tooltips[handleNumber].to(unencoded[handleNumber]);\n                }\n                scope_Tooltips[handleNumber].innerHTML = formattedValue;\n            });\n        }\n        function aria() {\n            removeEvent(\"update\" + INTERNAL_EVENT_NS.aria);\n            bindEvent(\"update\" + INTERNAL_EVENT_NS.aria, function (values, handleNumber, unencoded, tap, positions) {\n                // Update Aria Values for all handles, as a change in one changes min and max values for the next.\n                scope_HandleNumbers.forEach(function (index) {\n                    var handle = scope_Handles[index];\n                    var min = checkHandlePosition(scope_Locations, index, 0, true, true, true);\n                    var max = checkHandlePosition(scope_Locations, index, 100, true, true, true);\n                    var now = positions[index];\n                    // Formatted value for display\n                    var text = options.ariaFormat.to(unencoded[index]);\n                    // Map to slider range values\n                    min = scope_Spectrum.fromStepping(min).toFixed(1);\n                    max = scope_Spectrum.fromStepping(max).toFixed(1);\n                    now = scope_Spectrum.fromStepping(now).toFixed(1);\n                    handle.children[0].setAttribute(\"aria-valuemin\", min);\n                    handle.children[0].setAttribute(\"aria-valuemax\", max);\n                    handle.children[0].setAttribute(\"aria-valuenow\", now);\n                    handle.children[0].setAttribute(\"aria-valuetext\", text);\n                });\n            });\n        }\n        function getGroup(mode, values, stepped) {\n            // Use the range.\n            if (mode === \"range\" || mode === \"steps\") {\n                return scope_Spectrum.xVal;\n            }\n            if (mode === \"count\") {\n                if (values < 2) {\n                    throw new Error(\"noUiSlider (\" + VERSION + \"): 'values' (>= 2) required for mode 'count'.\");\n                }\n                // Divide 0 - 100 in 'count' parts.\n                var interval = values - 1;\n                var spread = 100 / interval;\n                values = [];\n                // List these parts and have them handled as 'positions'.\n                while (interval--) {\n                    values[interval] = interval * spread;\n                }\n                values.push(100);\n                mode = \"positions\";\n            }\n            if (mode === \"positions\") {\n                // Map all percentages to on-range values.\n                return values.map(function (value) {\n                    return scope_Spectrum.fromStepping(stepped ? scope_Spectrum.getStep(value) : value);\n                });\n            }\n            if (mode === \"values\") {\n                // If the value must be stepped, it needs to be converted to a percentage first.\n                if (stepped) {\n                    return values.map(function (value) {\n                        // Convert to percentage, apply step, return to value.\n                        return scope_Spectrum.fromStepping(scope_Spectrum.getStep(scope_Spectrum.toStepping(value)));\n                    });\n                }\n                // Otherwise, we can simply use the values.\n                return values;\n            }\n        }\n        function generateSpread(density, mode, group) {\n            function safeIncrement(value, increment) {\n                // Avoid floating point variance by dropping the smallest decimal places.\n                return (value + increment).toFixed(7) / 1;\n            }\n            var indexes = {};\n            var firstInRange = scope_Spectrum.xVal[0];\n            var lastInRange = scope_Spectrum.xVal[scope_Spectrum.xVal.length - 1];\n            var ignoreFirst = false;\n            var ignoreLast = false;\n            var prevPct = 0;\n            // Create a copy of the group, sort it and filter away all duplicates.\n            group = unique(group.slice().sort(function (a, b) {\n                return a - b;\n            }));\n            // Make sure the range starts with the first element.\n            if (group[0] !== firstInRange) {\n                group.unshift(firstInRange);\n                ignoreFirst = true;\n            }\n            // Likewise for the last one.\n            if (group[group.length - 1] !== lastInRange) {\n                group.push(lastInRange);\n                ignoreLast = true;\n            }\n            group.forEach(function (current, index) {\n                // Get the current step and the lower + upper positions.\n                var step;\n                var i;\n                var q;\n                var low = current;\n                var high = group[index + 1];\n                var newPct;\n                var pctDifference;\n                var pctPos;\n                var type;\n                var steps;\n                var realSteps;\n                var stepSize;\n                var isSteps = mode === \"steps\";\n                // When using 'steps' mode, use the provided steps.\n                // Otherwise, we'll step on to the next subrange.\n                if (isSteps) {\n                    step = scope_Spectrum.xNumSteps[index];\n                }\n                // Default to a 'full' step.\n                if (!step) {\n                    step = high - low;\n                }\n                // Low can be 0, so test for false. Index 0 is already handled.\n                if (low === false) {\n                    return;\n                }\n                // If high is undefined we are at the last subrange. Make sure it iterates once (#1088)\n                if (high === undefined) {\n                    high = low;\n                }\n                // Make sure step isn't 0, which would cause an infinite loop (#654)\n                step = Math.max(step, 0.0000001);\n                // Find all steps in the subrange.\n                for (i = low; i <= high; i = safeIncrement(i, step)) {\n                    // Get the percentage value for the current step,\n                    // calculate the size for the subrange.\n                    newPct = scope_Spectrum.toStepping(i);\n                    pctDifference = newPct - prevPct;\n                    steps = pctDifference / density;\n                    realSteps = Math.round(steps);\n                    // This ratio represents the amount of percentage-space a point indicates.\n                    // For a density 1 the points/percentage = 1. For density 2, that percentage needs to be re-divided.\n                    // Round the percentage offset to an even number, then divide by two\n                    // to spread the offset on both sides of the range.\n                    stepSize = pctDifference / realSteps;\n                    // Divide all points evenly, adding the correct number to this subrange.\n                    // Run up to <= so that 100% gets a point, event if ignoreLast is set.\n                    for (q = 1; q <= realSteps; q += 1) {\n                        // The ratio between the rounded value and the actual size might be ~1% off.\n                        // Correct the percentage offset by the number of points\n                        // per subrange. density = 1 will result in 100 points on the\n                        // full range, 2 for 50, 4 for 25, etc.\n                        pctPos = prevPct + q * stepSize;\n                        indexes[pctPos.toFixed(5)] = [scope_Spectrum.fromStepping(pctPos), 0];\n                    }\n                    // Determine the point type.\n                    type = group.indexOf(i) > -1 ? PIPS_LARGE_VALUE : isSteps ? PIPS_SMALL_VALUE : PIPS_NO_VALUE;\n                    // Enforce the 'ignoreFirst' option by overwriting the type for 0.\n                    if (!index && ignoreFirst && i !== high) {\n                        type = 0;\n                    }\n                    if (!(i === high && ignoreLast)) {\n                        // Mark the 'type' of this point. 0 = plain, 1 = real value, 2 = step value.\n                        indexes[newPct.toFixed(5)] = [i, type];\n                    }\n                    // Update the percentage count.\n                    prevPct = newPct;\n                }\n            });\n            return indexes;\n        }\n        function addMarking(spread, filterFunc, formatter) {\n            var element = scope_Document.createElement(\"div\");\n            var valueSizeClasses = [];\n            valueSizeClasses[PIPS_NO_VALUE] = options.cssClasses.valueNormal;\n            valueSizeClasses[PIPS_LARGE_VALUE] = options.cssClasses.valueLarge;\n            valueSizeClasses[PIPS_SMALL_VALUE] = options.cssClasses.valueSub;\n            var markerSizeClasses = [];\n            markerSizeClasses[PIPS_NO_VALUE] = options.cssClasses.markerNormal;\n            markerSizeClasses[PIPS_LARGE_VALUE] = options.cssClasses.markerLarge;\n            markerSizeClasses[PIPS_SMALL_VALUE] = options.cssClasses.markerSub;\n            var valueOrientationClasses = [options.cssClasses.valueHorizontal, options.cssClasses.valueVertical];\n            var markerOrientationClasses = [options.cssClasses.markerHorizontal, options.cssClasses.markerVertical];\n            addClass(element, options.cssClasses.pips);\n            addClass(element, options.ort === 0 ? options.cssClasses.pipsHorizontal : options.cssClasses.pipsVertical);\n            function getClasses(type, source) {\n                var a = source === options.cssClasses.value;\n                var orientationClasses = a ? valueOrientationClasses : markerOrientationClasses;\n                var sizeClasses = a ? valueSizeClasses : markerSizeClasses;\n                return source + \" \" + orientationClasses[options.ort] + \" \" + sizeClasses[type];\n            }\n            function addSpread(offset, value, type) {\n                // Apply the filter function, if it is set.\n                type = filterFunc ? filterFunc(value, type) : type;\n                if (type === PIPS_NONE) {\n                    return;\n                }\n                // Add a marker for every point\n                var node = addNodeTo(element, false);\n                node.className = getClasses(type, options.cssClasses.marker);\n                node.style[options.style] = offset + \"%\";\n                // Values are only appended for points marked '1' or '2'.\n                if (type > PIPS_NO_VALUE) {\n                    node = addNodeTo(element, false);\n                    node.className = getClasses(type, options.cssClasses.value);\n                    node.setAttribute(\"data-value\", value);\n                    node.style[options.style] = offset + \"%\";\n                    node.innerHTML = formatter.to(value);\n                }\n            }\n            // Append all points.\n            Object.keys(spread).forEach(function (offset) {\n                addSpread(offset, spread[offset][0], spread[offset][1]);\n            });\n            return element;\n        }\n        function removePips() {\n            if (scope_Pips) {\n                removeElement(scope_Pips);\n                scope_Pips = null;\n            }\n        }\n        function pips(grid) {\n            // Fix #669\n            removePips();\n            var mode = grid.mode;\n            var density = grid.density || 1;\n            var filter = grid.filter || false;\n            var values = grid.values || false;\n            var stepped = grid.stepped || false;\n            var group = getGroup(mode, values, stepped);\n            var spread = generateSpread(density, mode, group);\n            var format = grid.format || {\n                to: Math.round\n            };\n            scope_Pips = scope_Target.appendChild(addMarking(spread, filter, format));\n            return scope_Pips;\n        }\n        // Shorthand for base dimensions.\n        function baseSize() {\n            var rect = scope_Base.getBoundingClientRect();\n            var alt = \"offset\" + [\"Width\", \"Height\"][options.ort];\n            return options.ort === 0 ? rect.width || scope_Base[alt] : rect.height || scope_Base[alt];\n        }\n        // Handler for attaching events trough a proxy.\n        function attachEvent(events, element, callback, data) {\n            // This function can be used to 'filter' events to the slider.\n            // element is a node, not a nodeList\n            var method = function (e) {\n                e = fixEvent(e, data.pageOffset, data.target || element);\n                // fixEvent returns false if this event has a different target\n                // when handling (multi-) touch events;\n                if (!e) {\n                    return false;\n                }\n                // doNotReject is passed by all end events to make sure released touches\n                // are not rejected, leaving the slider \"stuck\" to the cursor;\n                if (isSliderDisabled() && !data.doNotReject) {\n                    return false;\n                }\n                // Stop if an active 'tap' transition is taking place.\n                if (hasClass(scope_Target, options.cssClasses.tap) && !data.doNotReject) {\n                    return false;\n                }\n                // Ignore right or middle clicks on start #454\n                if (events === actions.start && e.buttons !== undefined && e.buttons > 1) {\n                    return false;\n                }\n                // Ignore right or middle clicks on start #454\n                if (data.hover && e.buttons) {\n                    return false;\n                }\n                // 'supportsPassive' is only true if a browser also supports touch-action: none in CSS.\n                // iOS safari does not, so it doesn't get to benefit from passive scrolling. iOS does support\n                // touch-action: manipulation, but that allows panning, which breaks\n                // sliders after zooming/on non-responsive pages.\n                // See: https://bugs.webkit.org/show_bug.cgi?id=133112\n                if (!supportsPassive) {\n                    e.preventDefault();\n                }\n                e.calcPoint = e.points[options.ort];\n                // Call the event handler with the event [ and additional data ].\n                callback(e, data);\n            };\n            var methods = [];\n            // Bind a closure on the target for every event type.\n            events.split(\" \").forEach(function (eventName) {\n                element.addEventListener(eventName, method, supportsPassive ? { passive: true } : false);\n                methods.push([eventName, method]);\n            });\n            return methods;\n        }\n        // Provide a clean event with standardized offset values.\n        function fixEvent(e, pageOffset, eventTarget) {\n            // Filter the event to register the type, which can be\n            // touch, mouse or pointer. Offset changes need to be\n            // made on an event specific basis.\n            var touch = e.type.indexOf(\"touch\") === 0;\n            var mouse = e.type.indexOf(\"mouse\") === 0;\n            var pointer = e.type.indexOf(\"pointer\") === 0;\n            var x;\n            var y;\n            // IE10 implemented pointer events with a prefix;\n            if (e.type.indexOf(\"MSPointer\") === 0) {\n                pointer = true;\n            }\n            // Erroneous events seem to be passed in occasionally on iOS/iPadOS after user finishes interacting with\n            // the slider. They appear to be of type MouseEvent, yet they don't have usual properties set. Ignore\n            // events that have no touches or buttons associated with them. (#1057, #1079, #1095)\n            if (e.type === \"mousedown\" && !e.buttons && !e.touches) {\n                return false;\n            }\n            // The only thing one handle should be concerned about is the touches that originated on top of it.\n            if (touch) {\n                // Returns true if a touch originated on the target.\n                var isTouchOnTarget = function (checkTouch) {\n                    return (checkTouch.target === eventTarget ||\n                        eventTarget.contains(checkTouch.target) ||\n                        (checkTouch.target.shadowRoot && checkTouch.target.shadowRoot.contains(eventTarget)));\n                };\n                // In the case of touchstart events, we need to make sure there is still no more than one\n                // touch on the target so we look amongst all touches.\n                if (e.type === \"touchstart\") {\n                    var targetTouches = Array.prototype.filter.call(e.touches, isTouchOnTarget);\n                    // Do not support more than one touch per handle.\n                    if (targetTouches.length > 1) {\n                        return false;\n                    }\n                    x = targetTouches[0].pageX;\n                    y = targetTouches[0].pageY;\n                }\n                else {\n                    // In the other cases, find on changedTouches is enough.\n                    var targetTouch = Array.prototype.find.call(e.changedTouches, isTouchOnTarget);\n                    // Cancel if the target touch has not moved.\n                    if (!targetTouch) {\n                        return false;\n                    }\n                    x = targetTouch.pageX;\n                    y = targetTouch.pageY;\n                }\n            }\n            pageOffset = pageOffset || getPageOffset(scope_Document);\n            if (mouse || pointer) {\n                x = e.clientX + pageOffset.x;\n                y = e.clientY + pageOffset.y;\n            }\n            e.pageOffset = pageOffset;\n            e.points = [x, y];\n            e.cursor = mouse || pointer; // Fix #435\n            return e;\n        }\n        // Translate a coordinate in the document to a percentage on the slider\n        function calcPointToPercentage(calcPoint) {\n            var location = calcPoint - offset(scope_Base, options.ort);\n            var proposal = (location * 100) / baseSize();\n            // Clamp proposal between 0% and 100%\n            // Out-of-bound coordinates may occur when .noUi-base pseudo-elements\n            // are used (e.g. contained handles feature)\n            proposal = limit(proposal);\n            return options.dir ? 100 - proposal : proposal;\n        }\n        // Find handle closest to a certain percentage on the slider\n        function getClosestHandle(clickedPosition) {\n            var smallestDifference = 100;\n            var handleNumber = false;\n            scope_Handles.forEach(function (handle, index) {\n                // Disabled handles are ignored\n                if (isHandleDisabled(index)) {\n                    return;\n                }\n                var handlePosition = scope_Locations[index];\n                var differenceWithThisHandle = Math.abs(handlePosition - clickedPosition);\n                // Initial state\n                var clickAtEdge = differenceWithThisHandle === 100 && smallestDifference === 100;\n                // Difference with this handle is smaller than the previously checked handle\n                var isCloser = differenceWithThisHandle < smallestDifference;\n                var isCloserAfter = differenceWithThisHandle <= smallestDifference && clickedPosition > handlePosition;\n                if (isCloser || isCloserAfter || clickAtEdge) {\n                    handleNumber = index;\n                    smallestDifference = differenceWithThisHandle;\n                }\n            });\n            return handleNumber;\n        }\n        // Fire 'end' when a mouse or pen leaves the document.\n        function documentLeave(event, data) {\n            if (event.type === \"mouseout\" && event.target.nodeName === \"HTML\" && event.relatedTarget === null) {\n                eventEnd(event, data);\n            }\n        }\n        // Handle movement on document for handle and range drag.\n        function eventMove(event, data) {\n            // Fix #498\n            // Check value of .buttons in 'start' to work around a bug in IE10 mobile (data.buttonsProperty).\n            // https://connect.microsoft.com/IE/feedback/details/927005/mobile-ie10-windows-phone-buttons-property-of-pointermove-event-always-zero\n            // IE9 has .buttons and .which zero on mousemove.\n            // Firefox breaks the spec MDN defines.\n            if (navigator.appVersion.indexOf(\"MSIE 9\") === -1 && event.buttons === 0 && data.buttonsProperty !== 0) {\n                return eventEnd(event, data);\n            }\n            // Check if we are moving up or down\n            var movement = (options.dir ? -1 : 1) * (event.calcPoint - data.startCalcPoint);\n            // Convert the movement into a percentage of the slider width/height\n            var proposal = (movement * 100) / data.baseSize;\n            moveHandles(movement > 0, proposal, data.locations, data.handleNumbers);\n        }\n        // Unbind move events on document, call callbacks.\n        function eventEnd(event, data) {\n            // The handle is no longer active, so remove the class.\n            if (data.handle) {\n                removeClass(data.handle, options.cssClasses.active);\n                scope_ActiveHandlesCount -= 1;\n            }\n            // Unbind the move and end events, which are added on 'start'.\n            data.listeners.forEach(function (c) {\n                scope_DocumentElement.removeEventListener(c[0], c[1]);\n            });\n            if (scope_ActiveHandlesCount === 0) {\n                // Remove dragging class.\n                removeClass(scope_Target, options.cssClasses.drag);\n                setZindex();\n                // Remove cursor styles and text-selection events bound to the body.\n                if (event.cursor) {\n                    scope_Body.style.cursor = \"\";\n                    scope_Body.removeEventListener(\"selectstart\", preventDefault);\n                }\n            }\n            data.handleNumbers.forEach(function (handleNumber) {\n                fireEvent(\"change\", handleNumber);\n                fireEvent(\"set\", handleNumber);\n                fireEvent(\"end\", handleNumber);\n            });\n        }\n        // Bind move events on document.\n        function eventStart(event, data) {\n            // Ignore event if any handle is disabled\n            if (data.handleNumbers.some(isHandleDisabled)) {\n                return false;\n            }\n            var handle;\n            if (data.handleNumbers.length === 1) {\n                var handleOrigin = scope_Handles[data.handleNumbers[0]];\n                handle = handleOrigin.children[0];\n                scope_ActiveHandlesCount += 1;\n                // Mark the handle as 'active' so it can be styled.\n                addClass(handle, options.cssClasses.active);\n            }\n            // A drag should never propagate up to the 'tap' event.\n            event.stopPropagation();\n            // Record the event listeners.\n            var listeners = [];\n            // Attach the move and end events.\n            var moveEvent = attachEvent(actions.move, scope_DocumentElement, eventMove, {\n                // The event target has changed so we need to propagate the original one so that we keep\n                // relying on it to extract target touches.\n                target: event.target,\n                handle: handle,\n                listeners: listeners,\n                startCalcPoint: event.calcPoint,\n                baseSize: baseSize(),\n                pageOffset: event.pageOffset,\n                handleNumbers: data.handleNumbers,\n                buttonsProperty: event.buttons,\n                locations: scope_Locations.slice()\n            });\n            var endEvent = attachEvent(actions.end, scope_DocumentElement, eventEnd, {\n                target: event.target,\n                handle: handle,\n                listeners: listeners,\n                doNotReject: true,\n                handleNumbers: data.handleNumbers\n            });\n            var outEvent = attachEvent(\"mouseout\", scope_DocumentElement, documentLeave, {\n                target: event.target,\n                handle: handle,\n                listeners: listeners,\n                doNotReject: true,\n                handleNumbers: data.handleNumbers\n            });\n            // We want to make sure we pushed the listeners in the listener list rather than creating\n            // a new one as it has already been passed to the event handlers.\n            listeners.push.apply(listeners, moveEvent.concat(endEvent, outEvent));\n            // Text selection isn't an issue on touch devices,\n            // so adding cursor styles can be skipped.\n            if (event.cursor) {\n                // Prevent the 'I' cursor and extend the range-drag cursor.\n                scope_Body.style.cursor = getComputedStyle(event.target).cursor;\n                // Mark the target with a dragging state.\n                if (scope_Handles.length > 1) {\n                    addClass(scope_Target, options.cssClasses.drag);\n                }\n                // Prevent text selection when dragging the handles.\n                // In noUiSlider <= 9.2.0, this was handled by calling preventDefault on mouse/touch start/move,\n                // which is scroll blocking. The selectstart event is supported by FireFox starting from version 52,\n                // meaning the only holdout is iOS Safari. This doesn't matter: text selection isn't triggered there.\n                // The 'cursor' flag is false.\n                // See: http://caniuse.com/#search=selectstart\n                scope_Body.addEventListener(\"selectstart\", preventDefault, false);\n            }\n            data.handleNumbers.forEach(function (handleNumber) {\n                fireEvent(\"start\", handleNumber);\n            });\n        }\n        // Move closest handle to tapped location.\n        function eventTap(event) {\n            // The tap event shouldn't propagate up\n            event.stopPropagation();\n            var proposal = calcPointToPercentage(event.calcPoint);\n            var handleNumber = getClosestHandle(proposal);\n            // Tackle the case that all handles are 'disabled'.\n            if (handleNumber === false) {\n                return false;\n            }\n            // Flag the slider as it is now in a transitional state.\n            // Transition takes a configurable amount of ms (default 300). Re-enable the slider after that.\n            if (!options.events.snap) {\n                addClassFor(scope_Target, options.cssClasses.tap, options.animationDuration);\n            }\n            setHandle(handleNumber, proposal, true, true);\n            setZindex();\n            fireEvent(\"slide\", handleNumber, true);\n            fireEvent(\"update\", handleNumber, true);\n            fireEvent(\"change\", handleNumber, true);\n            fireEvent(\"set\", handleNumber, true);\n            if (options.events.snap) {\n                eventStart(event, { handleNumbers: [handleNumber] });\n            }\n        }\n        // Fires a 'hover' event for a hovered mouse/pen position.\n        function eventHover(event) {\n            var proposal = calcPointToPercentage(event.calcPoint);\n            var to = scope_Spectrum.getStep(proposal);\n            var value = scope_Spectrum.fromStepping(to);\n            Object.keys(scope_Events).forEach(function (targetEvent) {\n                if (\"hover\" === targetEvent.split(\".\")[0]) {\n                    scope_Events[targetEvent].forEach(function (callback) {\n                        callback.call(scope_Self, value);\n                    });\n                }\n            });\n        }\n        // Handles keydown on focused handles\n        // Don't move the document when pressing arrow keys on focused handles\n        function eventKeydown(event, handleNumber) {\n            if (isSliderDisabled() || isHandleDisabled(handleNumber)) {\n                return false;\n            }\n            var horizontalKeys = [\"Left\", \"Right\"];\n            var verticalKeys = [\"Down\", \"Up\"];\n            var largeStepKeys = [\"PageDown\", \"PageUp\"];\n            var edgeKeys = [\"Home\", \"End\"];\n            if (options.dir && !options.ort) {\n                // On an right-to-left slider, the left and right keys act inverted\n                horizontalKeys.reverse();\n            }\n            else if (options.ort && !options.dir) {\n                // On a top-to-bottom slider, the up and down keys act inverted\n                verticalKeys.reverse();\n                largeStepKeys.reverse();\n            }\n            // Strip \"Arrow\" for IE compatibility. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key\n            var key = event.key.replace(\"Arrow\", \"\");\n            var isLargeDown = key === largeStepKeys[0];\n            var isLargeUp = key === largeStepKeys[1];\n            var isDown = key === verticalKeys[0] || key === horizontalKeys[0] || isLargeDown;\n            var isUp = key === verticalKeys[1] || key === horizontalKeys[1] || isLargeUp;\n            var isMin = key === edgeKeys[0];\n            var isMax = key === edgeKeys[1];\n            if (!isDown && !isUp && !isMin && !isMax) {\n                return true;\n            }\n            event.preventDefault();\n            var to;\n            if (isUp || isDown) {\n                var multiplier = options.keyboardPageMultiplier;\n                var direction = isDown ? 0 : 1;\n                var steps = getNextStepsForHandle(handleNumber);\n                var step = steps[direction];\n                // At the edge of a slider, do nothing\n                if (step === null) {\n                    return false;\n                }\n                // No step set, use the default of 10% of the sub-range\n                if (step === false) {\n                    step = scope_Spectrum.getDefaultStep(scope_Locations[handleNumber], isDown, options.keyboardDefaultStep);\n                }\n                if (isLargeUp || isLargeDown) {\n                    step *= multiplier;\n                }\n                // Step over zero-length ranges (#948);\n                step = Math.max(step, 0.0000001);\n                // Decrement for down steps\n                step = (isDown ? -1 : 1) * step;\n                to = scope_Values[handleNumber] + step;\n            }\n            else if (isMax) {\n                // End key\n                to = options.spectrum.xVal[options.spectrum.xVal.length - 1];\n            }\n            else {\n                // Home key\n                to = options.spectrum.xVal[0];\n            }\n            setHandle(handleNumber, scope_Spectrum.toStepping(to), true, true);\n            fireEvent(\"slide\", handleNumber);\n            fireEvent(\"update\", handleNumber);\n            fireEvent(\"change\", handleNumber);\n            fireEvent(\"set\", handleNumber);\n            return false;\n        }\n        // Attach events to several slider parts.\n        function bindSliderEvents(behaviour) {\n            // Attach the standard drag event to the handles.\n            if (!behaviour.fixed) {\n                scope_Handles.forEach(function (handle, index) {\n                    // These events are only bound to the visual handle\n                    // element, not the 'real' origin element.\n                    attachEvent(actions.start, handle.children[0], eventStart, {\n                        handleNumbers: [index]\n                    });\n                });\n            }\n            // Attach the tap event to the slider base.\n            if (behaviour.tap) {\n                attachEvent(actions.start, scope_Base, eventTap, {});\n            }\n            // Fire hover events\n            if (behaviour.hover) {\n                attachEvent(actions.move, scope_Base, eventHover, {\n                    hover: true\n                });\n            }\n            // Make the range draggable.\n            if (behaviour.drag) {\n                scope_Connects.forEach(function (connect, index) {\n                    if (connect === false || index === 0 || index === scope_Connects.length - 1) {\n                        return;\n                    }\n                    var handleBefore = scope_Handles[index - 1];\n                    var handleAfter = scope_Handles[index];\n                    var eventHolders = [connect];\n                    addClass(connect, options.cssClasses.draggable);\n                    // When the range is fixed, the entire range can\n                    // be dragged by the handles. The handle in the first\n                    // origin will propagate the start event upward,\n                    // but it needs to be bound manually on the other.\n                    if (behaviour.fixed) {\n                        eventHolders.push(handleBefore.children[0]);\n                        eventHolders.push(handleAfter.children[0]);\n                    }\n                    eventHolders.forEach(function (eventHolder) {\n                        attachEvent(actions.start, eventHolder, eventStart, {\n                            handles: [handleBefore, handleAfter],\n                            handleNumbers: [index - 1, index]\n                        });\n                    });\n                });\n            }\n        }\n        // Attach an event to this slider, possibly including a namespace\n        function bindEvent(namespacedEvent, callback) {\n            scope_Events[namespacedEvent] = scope_Events[namespacedEvent] || [];\n            scope_Events[namespacedEvent].push(callback);\n            // If the event bound is 'update,' fire it immediately for all handles.\n            if (namespacedEvent.split(\".\")[0] === \"update\") {\n                scope_Handles.forEach(function (a, index) {\n                    fireEvent(\"update\", index);\n                });\n            }\n        }\n        function isInternalNamespace(namespace) {\n            return namespace === INTERNAL_EVENT_NS.aria || namespace === INTERNAL_EVENT_NS.tooltips;\n        }\n        // Undo attachment of event\n        function removeEvent(namespacedEvent) {\n            var event = namespacedEvent && namespacedEvent.split(\".\")[0];\n            var namespace = event ? namespacedEvent.substring(event.length) : namespacedEvent;\n            Object.keys(scope_Events).forEach(function (bind) {\n                var tEvent = bind.split(\".\")[0];\n                var tNamespace = bind.substring(tEvent.length);\n                if ((!event || event === tEvent) && (!namespace || namespace === tNamespace)) {\n                    // only delete protected internal event if intentional\n                    if (!isInternalNamespace(tNamespace) || namespace === tNamespace) {\n                        delete scope_Events[bind];\n                    }\n                }\n            });\n        }\n        // External event handling\n        function fireEvent(eventName, handleNumber, tap) {\n            Object.keys(scope_Events).forEach(function (targetEvent) {\n                var eventType = targetEvent.split(\".\")[0];\n                if (eventName === eventType) {\n                    scope_Events[targetEvent].forEach(function (callback) {\n                        callback.call(\n                        // Use the slider public API as the scope ('this')\n                        scope_Self, \n                        // Return values as array, so arg_1[arg_2] is always valid.\n                        scope_Values.map(options.format.to), \n                        // Handle index, 0 or 1\n                        handleNumber, \n                        // Un-formatted slider values\n                        scope_Values.slice(), \n                        // Event is fired by tap, true or false\n                        tap || false, \n                        // Left offset of the handle, in relation to the slider\n                        scope_Locations.slice(), \n                        // add the slider public API to an accessible parameter when this is unavailable\n                        scope_Self);\n                    });\n                }\n            });\n        }\n        // Split out the handle positioning logic so the Move event can use it, too\n        function checkHandlePosition(reference, handleNumber, to, lookBackward, lookForward, getValue) {\n            var distance;\n            // For sliders with multiple handles, limit movement to the other handle.\n            // Apply the margin option by adding it to the handle positions.\n            if (scope_Handles.length > 1 && !options.events.unconstrained) {\n                if (lookBackward && handleNumber > 0) {\n                    distance = scope_Spectrum.getAbsoluteDistance(reference[handleNumber - 1], options.margin, 0);\n                    to = Math.max(to, distance);\n                }\n                if (lookForward && handleNumber < scope_Handles.length - 1) {\n                    distance = scope_Spectrum.getAbsoluteDistance(reference[handleNumber + 1], options.margin, 1);\n                    to = Math.min(to, distance);\n                }\n            }\n            // The limit option has the opposite effect, limiting handles to a\n            // maximum distance from another. Limit must be > 0, as otherwise\n            // handles would be unmovable.\n            if (scope_Handles.length > 1 && options.limit) {\n                if (lookBackward && handleNumber > 0) {\n                    distance = scope_Spectrum.getAbsoluteDistance(reference[handleNumber - 1], options.limit, 0);\n                    to = Math.min(to, distance);\n                }\n                if (lookForward && handleNumber < scope_Handles.length - 1) {\n                    distance = scope_Spectrum.getAbsoluteDistance(reference[handleNumber + 1], options.limit, 1);\n                    to = Math.max(to, distance);\n                }\n            }\n            // The padding option keeps the handles a certain distance from the\n            // edges of the slider. Padding must be > 0.\n            if (options.padding) {\n                if (handleNumber === 0) {\n                    distance = scope_Spectrum.getAbsoluteDistance(0, options.padding[0], 0);\n                    to = Math.max(to, distance);\n                }\n                if (handleNumber === scope_Handles.length - 1) {\n                    distance = scope_Spectrum.getAbsoluteDistance(100, options.padding[1], 1);\n                    to = Math.min(to, distance);\n                }\n            }\n            to = scope_Spectrum.getStep(to);\n            // Limit percentage to the 0 - 100 range\n            to = limit(to);\n            // Return false if handle can't move\n            if (to === reference[handleNumber] && !getValue) {\n                return false;\n            }\n            return to;\n        }\n        // Uses slider orientation to create CSS rules. a = base value;\n        function inRuleOrder(v, a) {\n            var o = options.ort;\n            return (o ? a : v) + \", \" + (o ? v : a);\n        }\n        // Moves handle(s) by a percentage\n        // (bool, % to move, [% where handle started, ...], [index in scope_Handles, ...])\n        function moveHandles(upward, proposal, locations, handleNumbers) {\n            var proposals = locations.slice();\n            var b = [!upward, upward];\n            var f = [upward, !upward];\n            // Copy handleNumbers so we don't change the dataset\n            handleNumbers = handleNumbers.slice();\n            // Check to see which handle is 'leading'.\n            // If that one can't move the second can't either.\n            if (upward) {\n                handleNumbers.reverse();\n            }\n            // Step 1: get the maximum percentage that any of the handles can move\n            if (handleNumbers.length > 1) {\n                handleNumbers.forEach(function (handleNumber, o) {\n                    var to = checkHandlePosition(proposals, handleNumber, proposals[handleNumber] + proposal, b[o], f[o], false);\n                    // Stop if one of the handles can't move.\n                    if (to === false) {\n                        proposal = 0;\n                    }\n                    else {\n                        proposal = to - proposals[handleNumber];\n                        proposals[handleNumber] = to;\n                    }\n                });\n            }\n            // If using one handle, check backward AND forward\n            else {\n                b = f = [true];\n            }\n            var state = false;\n            // Step 2: Try to set the handles with the found percentage\n            handleNumbers.forEach(function (handleNumber, o) {\n                state = setHandle(handleNumber, locations[handleNumber] + proposal, b[o], f[o]) || state;\n            });\n            // Step 3: If a handle moved, fire events\n            if (state) {\n                handleNumbers.forEach(function (handleNumber) {\n                    fireEvent(\"update\", handleNumber);\n                    fireEvent(\"slide\", handleNumber);\n                });\n            }\n        }\n        // Takes a base value and an offset. This offset is used for the connect bar size.\n        // In the initial design for this feature, the origin element was 1% wide.\n        // Unfortunately, a rounding bug in Chrome makes it impossible to implement this feature\n        // in this manner: https://bugs.chromium.org/p/chromium/issues/detail?id=798223\n        function transformDirection(a, b) {\n            return options.dir ? 100 - a - b : a;\n        }\n        // Updates scope_Locations and scope_Values, updates visual state\n        function updateHandlePosition(handleNumber, to) {\n            // Update locations.\n            scope_Locations[handleNumber] = to;\n            // Convert the value to the slider stepping/range.\n            scope_Values[handleNumber] = scope_Spectrum.fromStepping(to);\n            var translation = 10 * (transformDirection(to, 0) - scope_DirOffset);\n            var translateRule = \"translate(\" + inRuleOrder(translation + \"%\", \"0\") + \")\";\n            scope_Handles[handleNumber].style[options.transformRule] = translateRule;\n            updateConnect(handleNumber);\n            updateConnect(handleNumber + 1);\n        }\n        // Handles before the slider middle are stacked later = higher,\n        // Handles after the middle later is lower\n        // [[7] [8] .......... | .......... [5] [4]\n        function setZindex() {\n            scope_HandleNumbers.forEach(function (handleNumber) {\n                var dir = scope_Locations[handleNumber] > 50 ? -1 : 1;\n                var zIndex = 3 + (scope_Handles.length + dir * handleNumber);\n                scope_Handles[handleNumber].style.zIndex = zIndex;\n            });\n        }\n        // Test suggested values and apply margin, step.\n        // if exactInput is true, don't run checkHandlePosition, then the handle can be placed in between steps (#436)\n        function setHandle(handleNumber, to, lookBackward, lookForward, exactInput) {\n            if (!exactInput) {\n                to = checkHandlePosition(scope_Locations, handleNumber, to, lookBackward, lookForward, false);\n            }\n            if (to === false) {\n                return false;\n            }\n            updateHandlePosition(handleNumber, to);\n            return true;\n        }\n        // Updates style attribute for connect nodes\n        function updateConnect(index) {\n            // Skip connects set to false\n            if (!scope_Connects[index]) {\n                return;\n            }\n            var l = 0;\n            var h = 100;\n            if (index !== 0) {\n                l = scope_Locations[index - 1];\n            }\n            if (index !== scope_Connects.length - 1) {\n                h = scope_Locations[index];\n            }\n            // We use two rules:\n            // 'translate' to change the left/top offset;\n            // 'scale' to change the width of the element;\n            // As the element has a width of 100%, a translation of 100% is equal to 100% of the parent (.noUi-base)\n            var connectWidth = h - l;\n            var translateRule = \"translate(\" + inRuleOrder(transformDirection(l, connectWidth) + \"%\", \"0\") + \")\";\n            var scaleRule = \"scale(\" + inRuleOrder(connectWidth / 100, \"1\") + \")\";\n            scope_Connects[index].style[options.transformRule] = translateRule + \" \" + scaleRule;\n        }\n        // Parses value passed to .set method. Returns current value if not parse-able.\n        function resolveToValue(to, handleNumber) {\n            // Setting with null indicates an 'ignore'.\n            // Inputting 'false' is invalid.\n            if (to === null || to === false || to === undefined) {\n                return scope_Locations[handleNumber];\n            }\n            // If a formatted number was passed, attempt to decode it.\n            if (typeof to === \"number\") {\n                to = String(to);\n            }\n            to = options.format.from(to);\n            to = scope_Spectrum.toStepping(to);\n            // If parsing the number failed, use the current value.\n            if (to === false || isNaN(to)) {\n                return scope_Locations[handleNumber];\n            }\n            return to;\n        }\n        // Set the slider value.\n        function valueSet(input, fireSetEvent, exactInput) {\n            var values = asArray(input);\n            var isInit = scope_Locations[0] === undefined;\n            // Event fires by default\n            fireSetEvent = fireSetEvent === undefined ? true : !!fireSetEvent;\n            // Animation is optional.\n            // Make sure the initial values were set before using animated placement.\n            if (options.animate && !isInit) {\n                addClassFor(scope_Target, options.cssClasses.tap, options.animationDuration);\n            }\n            // First pass, without lookAhead but with lookBackward. Values are set from left to right.\n            scope_HandleNumbers.forEach(function (handleNumber) {\n                setHandle(handleNumber, resolveToValue(values[handleNumber], handleNumber), true, false, exactInput);\n            });\n            var i = scope_HandleNumbers.length === 1 ? 0 : 1;\n            // Secondary passes. Now that all base values are set, apply constraints.\n            // Iterate all handles to ensure constraints are applied for the entire slider (Issue #1009)\n            for (; i < scope_HandleNumbers.length; ++i) {\n                scope_HandleNumbers.forEach(function (handleNumber) {\n                    setHandle(handleNumber, scope_Locations[handleNumber], true, true, exactInput);\n                });\n            }\n            setZindex();\n            scope_HandleNumbers.forEach(function (handleNumber) {\n                fireEvent(\"update\", handleNumber);\n                // Fire the event only for handles that received a new value, as per #579\n                if (values[handleNumber] !== null && fireSetEvent) {\n                    fireEvent(\"set\", handleNumber);\n                }\n            });\n        }\n        // Reset slider to initial values\n        function valueReset(fireSetEvent) {\n            valueSet(options.start, fireSetEvent);\n        }\n        // Set value for a single handle\n        function valueSetHandle(handleNumber, value, fireSetEvent, exactInput) {\n            // Ensure numeric input\n            handleNumber = Number(handleNumber);\n            if (!(handleNumber >= 0 && handleNumber < scope_HandleNumbers.length)) {\n                throw new Error(\"noUiSlider (\" + VERSION + \"): invalid handle number, got: \" + handleNumber);\n            }\n            // Look both backward and forward, since we don't want this handle to \"push\" other handles (#960);\n            // The exactInput argument can be used to ignore slider stepping (#436)\n            setHandle(handleNumber, resolveToValue(value, handleNumber), true, true, exactInput);\n            fireEvent(\"update\", handleNumber);\n            if (fireSetEvent) {\n                fireEvent(\"set\", handleNumber);\n            }\n        }\n        // Get the slider value.\n        function valueGet() {\n            var values = scope_Values.map(options.format.to);\n            // If only one handle is used, return a single value.\n            if (values.length === 1) {\n                return values[0];\n            }\n            return values;\n        }\n        // Removes classes from the root and empties it.\n        function destroy() {\n            // remove protected internal listeners\n            removeEvent(INTERNAL_EVENT_NS.aria);\n            removeEvent(INTERNAL_EVENT_NS.tooltips);\n            for (var key in options.cssClasses) {\n                if (!options.cssClasses.hasOwnProperty(key)) {\n                    continue;\n                }\n                removeClass(scope_Target, options.cssClasses[key]);\n            }\n            while (scope_Target.firstChild) {\n                scope_Target.removeChild(scope_Target.firstChild);\n            }\n            delete scope_Target.noUiSlider;\n        }\n        function getNextStepsForHandle(handleNumber) {\n            var location = scope_Locations[handleNumber];\n            var nearbySteps = scope_Spectrum.getNearbySteps(location);\n            var value = scope_Values[handleNumber];\n            var increment = nearbySteps.thisStep.step;\n            var decrement = null;\n            // If snapped, directly use defined step value\n            if (options.snap) {\n                return [\n                    value - nearbySteps.stepBefore.startValue || null,\n                    nearbySteps.stepAfter.startValue - value || null\n                ];\n            }\n            // If the next value in this step moves into the next step,\n            // the increment is the start of the next step - the current value\n            if (increment !== false) {\n                if (value + increment > nearbySteps.stepAfter.startValue) {\n                    increment = nearbySteps.stepAfter.startValue - value;\n                }\n            }\n            // If the value is beyond the starting point\n            if (value > nearbySteps.thisStep.startValue) {\n                decrement = nearbySteps.thisStep.step;\n            }\n            else if (nearbySteps.stepBefore.step === false) {\n                decrement = false;\n            }\n            // If a handle is at the start of a step, it always steps back into the previous step first\n            else {\n                decrement = value - nearbySteps.stepBefore.highestStep;\n            }\n            // Now, if at the slider edges, there is no in/decrement\n            if (location === 100) {\n                increment = null;\n            }\n            else if (location === 0) {\n                decrement = null;\n            }\n            // As per #391, the comparison for the decrement step can have some rounding issues.\n            var stepDecimals = scope_Spectrum.countStepDecimals();\n            // Round per #391\n            if (increment !== null && increment !== false) {\n                increment = Number(increment.toFixed(stepDecimals));\n            }\n            if (decrement !== null && decrement !== false) {\n                decrement = Number(decrement.toFixed(stepDecimals));\n            }\n            return [decrement, increment];\n        }\n        // Get the current step size for the slider.\n        function getNextSteps() {\n            return scope_HandleNumbers.map(getNextStepsForHandle);\n        }\n        // Updateable: margin, limit, padding, step, range, animate, snap\n        function updateOptions(optionsToUpdate, fireSetEvent) {\n            // Spectrum is created using the range, snap, direction and step options.\n            // 'snap' and 'step' can be updated.\n            // If 'snap' and 'step' are not passed, they should remain unchanged.\n            var v = valueGet();\n            var updateAble = [\n                \"margin\",\n                \"limit\",\n                \"padding\",\n                \"range\",\n                \"animate\",\n                \"snap\",\n                \"step\",\n                \"format\",\n                \"pips\",\n                \"tooltips\"\n            ];\n            // Only change options that we're actually passed to update.\n            updateAble.forEach(function (name) {\n                // Check for undefined. null removes the value.\n                if (optionsToUpdate[name] !== undefined) {\n                    originalOptions[name] = optionsToUpdate[name];\n                }\n            });\n            var newOptions = testOptions(originalOptions);\n            // Load new options into the slider state\n            updateAble.forEach(function (name) {\n                if (optionsToUpdate[name] !== undefined) {\n                    options[name] = newOptions[name];\n                }\n            });\n            scope_Spectrum = newOptions.spectrum;\n            // Limit, margin and padding depend on the spectrum but are stored outside of it. (#677)\n            options.margin = newOptions.margin;\n            options.limit = newOptions.limit;\n            options.padding = newOptions.padding;\n            // Update pips, removes existing.\n            if (options.pips) {\n                pips(options.pips);\n            }\n            else {\n                removePips();\n            }\n            // Update tooltips, removes existing.\n            if (options.tooltips) {\n                tooltips();\n            }\n            else {\n                removeTooltips();\n            }\n            // Invalidate the current positioning so valueSet forces an update.\n            scope_Locations = [];\n            valueSet(isSet(optionsToUpdate.start) ? optionsToUpdate.start : v, fireSetEvent);\n        }\n        // Initialization steps\n        function setupSlider() {\n            // Create the base element, initialize HTML and set classes.\n            // Add handles and connect elements.\n            scope_Base = addSlider(scope_Target);\n            addElements(options.connect, scope_Base);\n            // Attach user events.\n            bindSliderEvents(options.events);\n            // Use the public value method to set the start values.\n            valueSet(options.start);\n            if (options.pips) {\n                pips(options.pips);\n            }\n            if (options.tooltips) {\n                tooltips();\n            }\n            aria();\n        }\n        setupSlider();\n        // noinspection JSUnusedGlobalSymbols\n        scope_Self = {\n            destroy: destroy,\n            steps: getNextSteps,\n            on: bindEvent,\n            off: removeEvent,\n            get: valueGet,\n            set: valueSet,\n            setHandle: valueSetHandle,\n            reset: valueReset,\n            // Exposed for unit testing, don't use this in your application.\n            __moveHandles: function (a, b, c) {\n                moveHandles(a, b, scope_Locations, c);\n            },\n            options: originalOptions,\n            updateOptions: updateOptions,\n            target: scope_Target,\n            removePips: removePips,\n            removeTooltips: removeTooltips,\n            getTooltips: function () {\n                return scope_Tooltips;\n            },\n            getOrigins: function () {\n                return scope_Handles;\n            },\n            pips: pips // Issue #594\n        };\n        return scope_Self;\n    }\n    // Run the standard initializer\n    function initialize(target, originalOptions) {\n        if (!target || !target.nodeName) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): create requires a single element, got: \" + target);\n        }\n        // Throw an error if the slider was already initialized.\n        if (target.noUiSlider) {\n            throw new Error(\"noUiSlider (\" + VERSION + \"): Slider was already initialized.\");\n        }\n        // Test the options and create the slider environment;\n        var options = testOptions(originalOptions);\n        var api = scope(target, options, originalOptions);\n        target.noUiSlider = api;\n        return api;\n    }\n    // Use an object instead of a function for future expandability;\n    return {\n        // Exposed for unit testing, don't use this in your application.\n        __spectrum: Spectrum,\n        version: VERSION,\n        // A reference to the default classes, allows global changes.\n        // Use the cssClasses option for changes to one slider.\n        cssClasses: cssClasses,\n        create: initialize\n    };\n});\n","(function() {\n  function vendorModule() {\n    'use strict';\n\n    return { 'default': self['noUiSlider'] };\n  }\n\n  define('noUiSlider', [], vendorModule);\n})();\n","(function() {\n  define('ember-cli-shims/deprecations', [], function() {\n    var values = {\"ember-application\":{\"default\":[\"@ember/application\"]},\"ember-array\":{\"default\":[\"@ember/array\"]},\"ember-array/mutable\":{\"default\":[\"@ember/array/mutable\"]},\"ember-array/utils\":{\"A\":[\"@ember/array\",\"A\"],\"isEmberArray\":[\"@ember/array\",\"isArray\"],\"wrap\":[\"@ember/array\",\"makeArray\"]},\"ember-component\":{\"default\":[\"@ember/component\"]},\"ember-components/checkbox\":{\"default\":[\"@ember/component/checkbox\"]},\"ember-components/text-area\":{\"default\":[\"@ember/component/text-area\"]},\"ember-components/text-field\":{\"default\":[\"@ember/component/text-field\"]},\"ember-computed\":{\"default\":[\"@ember/object\",\"computed\"],\"alias\":[\"@ember/object/computed\",\"alias\"],\"and\":[\"@ember/object/computed\",\"and\"],\"bool\":[\"@ember/object/computed\",\"bool\"],\"collect\":[\"@ember/object/computed\",\"collect\"],\"deprecatingAlias\":[\"@ember/object/computed\",\"deprecatingAlias\"],\"empty\":[\"@ember/object/computed\",\"empty\"],\"equal\":[\"@ember/object/computed\",\"equal\"],\"filter\":[\"@ember/object/computed\",\"filter\"],\"filterBy\":[\"@ember/object/computed\",\"filterBy\"],\"filterProperty\":[\"@ember/object/computed\",\"filterProperty\"],\"gt\":[\"@ember/object/computed\",\"gt\"],\"gte\":[\"@ember/object/computed\",\"gte\"],\"intersect\":[\"@ember/object/computed\",\"intersect\"],\"lt\":[\"@ember/object/computed\",\"lt\"],\"lte\":[\"@ember/object/computed\",\"lte\"],\"map\":[\"@ember/object/computed\",\"map\"],\"mapBy\":[\"@ember/object/computed\",\"mapBy\"],\"mapProperty\":[\"@ember/object/computed\",\"mapProperty\"],\"match\":[\"@ember/object/computed\",\"match\"],\"max\":[\"@ember/object/computed\",\"max\"],\"min\":[\"@ember/object/computed\",\"min\"],\"none\":[\"@ember/object/computed\",\"none\"],\"not\":[\"@ember/object/computed\",\"not\"],\"notEmpty\":[\"@ember/object/computed\",\"notEmpty\"],\"oneWay\":[\"@ember/object/computed\",\"oneWay\"],\"or\":[\"@ember/object/computed\",\"or\"],\"readOnly\":[\"@ember/object/computed\",\"readOnly\"],\"reads\":[\"@ember/object/computed\",\"reads\"],\"setDiff\":[\"@ember/object/computed\",\"setDiff\"],\"sort\":[\"@ember/object/computed\",\"sort\"],\"sum\":[\"@ember/object/computed\",\"sum\"],\"union\":[\"@ember/object/computed\",\"union\"],\"uniq\":[\"@ember/object/computed\",\"uniq\"]},\"ember-controller\":{\"default\":[\"@ember/controller\"]},\"ember-controller/inject\":{\"default\":[\"@ember/controller\",\"inject\"]},\"ember-controller/proxy\":{\"default\":[\"@ember/array/proxy\"]},\"ember-debug\":{\"inspect\":[\"@ember/debug\",\"inspect\"],\"log\":[\"@ember/debug\",\"debug\"],\"run\":[\"@ember/debug\",\"runInDebug\"],\"warn\":[\"@ember/debug\",\"warn\"]},\"ember-debug/container-debug-adapter\":{\"default\":[\"@ember/debug/container-debug-adapter\"]},\"ember-debug/data-adapter\":{\"default\":[\"@ember/debug/data-adapter\"]},\"ember-deprecations\":{\"deprecate\":[\"@ember/debug\",\"deprecate\"],\"deprecateFunc\":[\"@ember/debug\",\"deprecateFunc\"]},\"ember-enumerable\":{\"default\":[\"@ember/enumerable\"]},\"ember-evented\":{\"default\":[\"@ember/object/evented\"]},\"ember-evented/on\":{\"default\":[\"@ember/object/evented\",\"on\"]},\"ember-globals-resolver\":{\"default\":[\"@ember/application/globals-resolver\"]},\"ember-helper\":{\"default\":[\"@ember/component/helper\"],\"helper\":[\"@ember/component/helper\",\"helper\"]},\"ember-instrumentation\":{\"instrument\":[\"@ember/instrumentation\",\"instrument\"],\"reset\":[\"@ember/instrumentation\",\"reset\"],\"subscribe\":[\"@ember/instrumentation\",\"subscribe\"],\"unsubscribe\":[\"@ember/instrumentation\",\"unsubscribe\"]},\"ember-locations/hash\":{\"default\":[\"@ember/routing/hash-location\"]},\"ember-locations/history\":{\"default\":[\"@ember/routing/history-location\"]},\"ember-locations/none\":{\"default\":[\"@ember/routing/none-location\"]},\"ember-map\":{\"default\":[\"@ember/map\"],\"withDefault\":[\"@ember/map/with-default\"]},\"ember-metal/events\":{\"addListener\":[\"@ember/object/events\",\"addListener\"],\"removeListener\":[\"@ember/object/events\",\"removeListener\"],\"send\":[\"@ember/object/events\",\"sendEvent\"]},\"ember-metal/get\":{\"default\":[\"@ember/object\",\"get\"],\"getProperties\":[\"@ember/object\",\"getProperties\"]},\"ember-metal/mixin\":{\"default\":[\"@ember/object/mixin\"]},\"ember-metal/observer\":{\"default\":[\"@ember/object\",\"observer\"],\"addObserver\":[\"@ember/object/observers\",\"addObserver\"],\"removeObserver\":[\"@ember/object/observers\",\"removeObserver\"]},\"ember-metal/on-load\":{\"default\":[\"@ember/application\",\"onLoad\"],\"run\":[\"@ember/application\",\"runLoadHooks\"]},\"ember-metal/set\":{\"default\":[\"@ember/object\",\"set\"],\"setProperties\":[\"@ember/object\",\"setProperties\"],\"trySet\":[\"@ember/object\",\"trySet\"]},\"ember-metal/utils\":{\"aliasMethod\":[\"@ember/object\",\"aliasMethod\"],\"assert\":[\"@ember/debug\",\"assert\"],\"cacheFor\":[\"@ember/object/internals\",\"cacheFor\"],\"copy\":[\"@ember/object/internals\",\"copy\"],\"guidFor\":[\"@ember/object/internals\",\"guidFor\"]},\"ember-object\":{\"default\":[\"@ember/object\"]},\"ember-owner/get\":{\"default\":[\"@ember/application\",\"getOwner\"]},\"ember-owner/set\":{\"default\":[\"@ember/application\",\"setOwner\"]},\"ember-platform\":{\"assign\":[\"@ember/polyfills\",\"assign\"],\"create\":[\"@ember/polyfills\",\"create\"],\"hasAccessors\":[\"@ember/polyfills\",\"hasPropertyAccessors\"],\"keys\":[\"@ember/polyfills\",\"keys\"]},\"ember-route\":{\"default\":[\"@ember/routing/route\"]},\"ember-router\":{\"default\":[\"@ember/routing/router\"]},\"ember-runloop\":{\"default\":[\"@ember/runloop\",\"run\"],\"begin\":[\"@ember/runloop\",\"begin\"],\"bind\":[\"@ember/runloop\",\"bind\"],\"cancel\":[\"@ember/runloop\",\"cancel\"],\"debounce\":[\"@ember/runloop\",\"debounce\"],\"end\":[\"@ember/runloop\",\"end\"],\"join\":[\"@ember/runloop\",\"join\"],\"later\":[\"@ember/runloop\",\"later\"],\"next\":[\"@ember/runloop\",\"next\"],\"once\":[\"@ember/runloop\",\"once\"],\"schedule\":[\"@ember/runloop\",\"schedule\"],\"scheduleOnce\":[\"@ember/runloop\",\"scheduleOnce\"],\"throttle\":[\"@ember/runloop\",\"throttle\"]},\"ember-service\":{\"default\":[\"@ember/service\"]},\"ember-service/inject\":{\"default\":[\"@ember/service\",\"inject\"]},\"ember-string\":{\"camelize\":[\"@ember/string\",\"camelize\"],\"capitalize\":[\"@ember/string\",\"capitalize\"],\"classify\":[\"@ember/string\",\"classify\"],\"dasherize\":[\"@ember/string\",\"dasherize\"],\"decamelize\":[\"@ember/string\",\"decamelize\"],\"fmt\":[\"@ember/string\",\"fmt\"],\"htmlSafe\":[\"@ember/string\",\"htmlSafe\"],\"loc\":[\"@ember/string\",\"loc\"],\"underscore\":[\"@ember/string\",\"underscore\"],\"w\":[\"@ember/string\",\"w\"]},\"ember-test/adapter\":{\"default\":[\"@ember/test/adapter\"]},\"ember-utils\":{\"isBlank\":[\"@ember/utils\",\"isBlank\"],\"isEmpty\":[\"@ember/utils\",\"isEmpty\"],\"isNone\":[\"@ember/utils\",\"isNone\"],\"isPresent\":[\"@ember/utils\",\"isPresent\"],\"tryInvoke\":[\"@ember/utils\",\"tryInvoke\"],\"typeOf\":[\"@ember/utils\",\"typeOf\"]}};\n    \n    Object.defineProperty(values, '__esModule', {\n      value: true\n    });\n\n    return values;\n  });\n})();","(function() {\n/* globals define, Ember, jQuery */\n\n  function processEmberShims() {\n    var shims = {\n      'ember-application': {\n        'default': Ember.Application\n      },\n      'ember-array': {\n        'default': Ember.Array\n      },\n      'ember-array/mutable': {\n        'default': Ember.MutableArray\n      },\n      'ember-array/utils': {\n        'A':            Ember.A,\n        'isEmberArray': Ember.isArray,\n        'wrap':         Ember.makeArray\n      },\n      'ember-component': {\n        'default': Ember.Component\n      },\n      'ember-components/checkbox': {\n        'default': Ember.Checkbox\n      },\n      'ember-components/text-area': {\n        'default': Ember.TextArea\n      },\n      'ember-components/text-field': {\n        'default': Ember.TextField\n      },\n      'ember-controller': {\n        'default': Ember.Controller\n      },\n      'ember-controller/inject': {\n        'default': Ember.inject.controller\n      },\n      'ember-controller/proxy': {\n        'default': Ember.ArrayProxy\n      },\n      'ember-controllers/sortable': {\n        'default': Ember.SortableMixin\n      },\n      'ember-debug': {\n        'log':      Ember.debug,\n        'inspect':  Ember.inspect,\n        'run':      Ember.runInDebug,\n        'warn':     Ember.warn\n      },\n      'ember-debug/container-debug-adapter': {\n        'default': Ember.ContainerDebugAdapter\n      },\n      'ember-debug/data-adapter': {\n        'default': Ember.DataAdapter\n      },\n      'ember-deprecations': {\n        'deprecate':      Ember.deprecate,\n        'deprecateFunc':  Ember.deprecateFunc\n      },\n      'ember-enumerable': {\n        'default': Ember.Enumerable\n      },\n      'ember-evented': {\n        'default': Ember.Evented\n      },\n      'ember-evented/on': {\n        'default': Ember.on\n      },\n      'ember-globals-resolver': {\n        'default': Ember.DefaultResolver\n      },\n      'ember-helper': {\n        'default':  Ember.Helper,\n        'helper':   Ember.Helper && Ember.Helper.helper\n      },\n      'ember-instrumentation': {\n        'instrument':   Ember.Instrumentation.instrument,\n        'reset':        Ember.Instrumentation.reset,\n        'subscribe':    Ember.Instrumentation.subscribe,\n        'unsubscribe':  Ember.Instrumentation.unsubscribe\n      },\n      'ember-locations/hash': {\n        'default': Ember.HashLocation\n      },\n      'ember-locations/history': {\n        'default': Ember.HistoryLocation\n      },\n      'ember-locations/none': {\n        'default': Ember.NoneLocation\n      },\n      'ember-map': {\n        'default':      Ember.Map,\n        'withDefault':  Ember.MapWithDefault\n      },\n      'ember-metal/destroy': {\n        'default': Ember.destroy\n      },\n      'ember-metal/events': {\n        'addListener':    Ember.addListener,\n        'removeListener': Ember.removeListener,\n        'send':           Ember.sendEvent\n      },\n      'ember-metal/get': {\n        'default': Ember.get,\n        'getProperties': Ember.getProperties\n      },\n      'ember-metal/mixin': {\n        'default': Ember.Mixin\n      },\n      'ember-metal/observer': {\n        'default':        Ember.observer,\n        'addObserver':    Ember.addObserver,\n        'removeObserver': Ember.removeObserver\n      },\n      'ember-metal/on-load': {\n        'default':  Ember.onLoad,\n        'run':      Ember.runLoadHooks\n      },\n      'ember-metal/set': {\n        'default':        Ember.set,\n        'setProperties':  Ember.setProperties,\n        'trySet':         Ember.trySet\n      },\n      'ember-metal/utils': {\n        'aliasMethod':  Ember.aliasMethod,\n        'assert':       Ember.assert,\n        'cacheFor':     Ember.cacheFor,\n        'copy':         Ember.copy,\n        'guidFor':      Ember.guidFor\n      },\n      'ember-object': {\n        'default': Ember.Object\n      },\n      'ember-owner/get': {\n        'default': Ember.getOwner\n      },\n      'ember-owner/set': {\n        'default': Ember.setOwner\n      },\n      'ember-platform': {\n        'assign':         Ember.assign || Ember.merge,\n        'create':         Ember.create,\n        'defineProperty': Ember.platform.defineProperty,\n        'hasAccessors':   Ember.platform.hasPropertyAccessors,\n        'keys':           Ember.keys\n      },\n      'ember-route': {\n        'default': Ember.Route\n      },\n      'ember-router': {\n        'default': Ember.Router\n      },\n      'ember-runloop': {\n        'default':      Ember.run,\n        'begin':        Ember.run.begin,\n        'bind':         Ember.run.bind,\n        'cancel':       Ember.run.cancel,\n        'debounce':     Ember.run.debounce,\n        'end':          Ember.run.end,\n        'join':         Ember.run.join,\n        'later':        Ember.run.later,\n        'next':         Ember.run.next,\n        'once':         Ember.run.once,\n        'schedule':     Ember.run.schedule,\n        'scheduleOnce': Ember.run.scheduleOnce,\n        'throttle':     Ember.run.throttle\n      },\n      'ember-service': {\n        'default': Ember.Service\n      },\n      'ember-service/inject': {\n        'default': Ember.inject.service\n      },\n      'ember-set/ordered': {\n        'default': Ember.OrderedSet\n      },\n      'ember-string': {\n        'camelize':     Ember.String.camelize,\n        'capitalize':   Ember.String.capitalize,\n        'classify':     Ember.String.classify,\n        'dasherize':    Ember.String.dasherize,\n        'decamelize':   Ember.String.decamelize,\n        'fmt':          Ember.String.fmt,\n        'htmlSafe':     Ember.String.htmlSafe,\n        'loc':          Ember.String.loc,\n        'underscore':   Ember.String.underscore,\n        'w':            Ember.String.w\n      },\n      'ember-utils': {\n        'isBlank':    Ember.isBlank,\n        'isEmpty':    Ember.isEmpty,\n        'isNone':     Ember.isNone,\n        'isPresent':  Ember.isPresent,\n        'tryInvoke':  Ember.tryInvoke,\n        'typeOf':     Ember.typeOf\n      }\n    };\n\n    // populate `ember/computed` named exports\n    shims['ember-computed'] = {\n      'default': Ember.computed\n    };\n    var computedMacros = [\n      \"empty\",\"notEmpty\", \"none\", \"not\", \"bool\", \"match\",\n      \"equal\", \"gt\", \"gte\", \"lt\", \"lte\", \"alias\", \"oneWay\",\n      \"reads\", \"readOnly\", \"deprecatingAlias\",\n      \"and\", \"or\", \"collect\", \"sum\", \"min\", \"max\",\n      \"map\", \"sort\", \"setDiff\", \"mapBy\", \"mapProperty\",\n      \"filter\", \"filterBy\", \"filterProperty\", \"uniq\",\n      \"union\", \"intersect\"\n    ];\n    for (var i = 0, l = computedMacros.length; i < l; i++) {\n      var key = computedMacros[i];\n      shims['ember-computed'][key] = Ember.computed[key];\n    }\n\n    for (var moduleName in shims) {\n      generateModule(moduleName, shims[moduleName], true);\n    }\n  }\n\n  function processTestShims() {\n    if (Ember.Test) {\n      var testShims = {\n        'ember-test': {\n          'default': Ember.Test\n        },\n        'ember-test/adapter': {\n          'default': Ember.Test.Adapter\n        },\n        'ember-test/qunit-adapter': {\n          'default': Ember.Test.QUnitAdapter\n        }\n      };\n\n      for (var moduleName in testShims) {\n        generateModule(moduleName, testShims[moduleName]);\n      }\n    }\n  }\n\n  function generateModule(name, values, deprecated) {\n    define(name, ['ember-cli-shims/deprecations'], function(deprecations) {\n      'use strict';\n\n      if (deprecated) {\n        var moduleDeprecations = deprecations[name];\n\n        var message = 'Importing from the `' + name + '` module has been deprecated. ';\n        if (moduleDeprecations) {\n          message += 'Please use the new module imports:\\n\\n';\n          Object.keys(moduleDeprecations).forEach(function(key) {\n            var newImport = moduleDeprecations[key];\n            if (newImport[1]) {\n              message += 'import { ' + newImport[1] + ' } from \\'' + newImport[0] + '\\'\\n';\n            } else {\n              var importName = Ember.String.classify(newImport[0].split('/').pop());\n              message += 'import ' + importName + ' from \\'' + newImport[0] + '\\'\\n';\n            }\n          });\n          message += '\\n';\n\n        } else {\n          message += 'Please use globals instead.';\n        }\n\n        Ember.deprecate(message, false, {\n          id: 'ember-cli-shims.deprecated-shims',\n          until: '3.0.0',\n          url: 'https://github.com/emberjs/rfcs/blob/master/text/0176-javascript-module-api.md'\n        });\n      }\n\n      Object.defineProperty(values, '__esModule', {\n        value: true\n      });\n\n      return values;\n    });\n  }\n\n  generateModule('ember', { default: Ember });\n  processEmberShims();\n  processTestShims();\n  generateModule('jquery', { 'default': self.jQuery });\n  generateModule('rsvp', { 'default': Ember.RSVP });\n})();\n","(function(define){\n/*! highlight.js v9.12.0 | BSD3 License | git.io/hljslicense */\n(function(factory) {\n\n  // Find the global object for export to both the browser and web workers.\n  var globalObject = typeof window === 'object' && window ||\n                     typeof self === 'object' && self;\n\n  // Setup highlight.js for different environments. First is Node.js or\n  // CommonJS.\n  if(typeof exports !== 'undefined') {\n    factory(exports);\n  } else if(globalObject) {\n    // Export hljs globally even when using AMD for cases when this script\n    // is loaded with others that may still expect a global hljs.\n    globalObject.hljs = factory({});\n\n    // Finally register the global hljs with AMD.\n    if(typeof define === 'function' && define.amd) {\n      define([], function() {\n        return globalObject.hljs;\n      });\n    }\n  }\n\n}(function(hljs) {\n  // Convenience variables for build-in objects\n  var ArrayProto = [],\n      objectKeys = Object.keys;\n\n  // Global internal variables used within the highlight.js library.\n  var languages = {},\n      aliases   = {};\n\n  // Regular expressions used throughout the highlight.js library.\n  var noHighlightRe    = /^(no-?highlight|plain|text)$/i,\n      languagePrefixRe = /\\blang(?:uage)?-([\\w-]+)\\b/i,\n      fixMarkupRe      = /((^(<[^>]+>|\\t|)+|(?:\\n)))/gm;\n\n  var spanEndTag = '</span>';\n\n  // Global options used when within external APIs. This is modified when\n  // calling the `hljs.configure` function.\n  var options = {\n    classPrefix: 'hljs-',\n    tabReplace: null,\n    useBR: false,\n    languages: undefined\n  };\n\n\n  /* Utility functions */\n\n  function escape(value) {\n    return value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');\n  }\n\n  function tag(node) {\n    return node.nodeName.toLowerCase();\n  }\n\n  function testRe(re, lexeme) {\n    var match = re && re.exec(lexeme);\n    return match && match.index === 0;\n  }\n\n  function isNotHighlighted(language) {\n    return noHighlightRe.test(language);\n  }\n\n  function blockLanguage(block) {\n    var i, match, length, _class;\n    var classes = block.className + ' ';\n\n    classes += block.parentNode ? block.parentNode.className : '';\n\n    // language-* takes precedence over non-prefixed class names.\n    match = languagePrefixRe.exec(classes);\n    if (match) {\n      return getLanguage(match[1]) ? match[1] : 'no-highlight';\n    }\n\n    classes = classes.split(/\\s+/);\n\n    for (i = 0, length = classes.length; i < length; i++) {\n      _class = classes[i]\n\n      if (isNotHighlighted(_class) || getLanguage(_class)) {\n        return _class;\n      }\n    }\n  }\n\n  function inherit(parent) {  // inherit(parent, override_obj, override_obj, ...)\n    var key;\n    var result = {};\n    var objects = Array.prototype.slice.call(arguments, 1);\n\n    for (key in parent)\n      result[key] = parent[key];\n    objects.forEach(function(obj) {\n      for (key in obj)\n        result[key] = obj[key];\n    });\n    return result;\n  }\n\n  /* Stream merging */\n\n  function nodeStream(node) {\n    var result = [];\n    (function _nodeStream(node, offset) {\n      for (var child = node.firstChild; child; child = child.nextSibling) {\n        if (child.nodeType === 3)\n          offset += child.nodeValue.length;\n        else if (child.nodeType === 1) {\n          result.push({\n            event: 'start',\n            offset: offset,\n            node: child\n          });\n          offset = _nodeStream(child, offset);\n          // Prevent void elements from having an end tag that would actually\n          // double them in the output. There are more void elements in HTML\n          // but we list only those realistically expected in code display.\n          if (!tag(child).match(/br|hr|img|input/)) {\n            result.push({\n              event: 'stop',\n              offset: offset,\n              node: child\n            });\n          }\n        }\n      }\n      return offset;\n    })(node, 0);\n    return result;\n  }\n\n  function mergeStreams(original, highlighted, value) {\n    var processed = 0;\n    var result = '';\n    var nodeStack = [];\n\n    function selectStream() {\n      if (!original.length || !highlighted.length) {\n        return original.length ? original : highlighted;\n      }\n      if (original[0].offset !== highlighted[0].offset) {\n        return (original[0].offset < highlighted[0].offset) ? original : highlighted;\n      }\n\n      /*\n      To avoid starting the stream just before it should stop the order is\n      ensured that original always starts first and closes last:\n\n      if (event1 == 'start' && event2 == 'start')\n        return original;\n      if (event1 == 'start' && event2 == 'stop')\n        return highlighted;\n      if (event1 == 'stop' && event2 == 'start')\n        return original;\n      if (event1 == 'stop' && event2 == 'stop')\n        return highlighted;\n\n      ... which is collapsed to:\n      */\n      return highlighted[0].event === 'start' ? original : highlighted;\n    }\n\n    function open(node) {\n      function attr_str(a) {return ' ' + a.nodeName + '=\"' + escape(a.value).replace('\"', '&quot;') + '\"';}\n      result += '<' + tag(node) + ArrayProto.map.call(node.attributes, attr_str).join('') + '>';\n    }\n\n    function close(node) {\n      result += '</' + tag(node) + '>';\n    }\n\n    function render(event) {\n      (event.event === 'start' ? open : close)(event.node);\n    }\n\n    while (original.length || highlighted.length) {\n      var stream = selectStream();\n      result += escape(value.substring(processed, stream[0].offset));\n      processed = stream[0].offset;\n      if (stream === original) {\n        /*\n        On any opening or closing tag of the original markup we first close\n        the entire highlighted node stack, then render the original tag along\n        with all the following original tags at the same offset and then\n        reopen all the tags on the highlighted stack.\n        */\n        nodeStack.reverse().forEach(close);\n        do {\n          render(stream.splice(0, 1)[0]);\n          stream = selectStream();\n        } while (stream === original && stream.length && stream[0].offset === processed);\n        nodeStack.reverse().forEach(open);\n      } else {\n        if (stream[0].event === 'start') {\n          nodeStack.push(stream[0].node);\n        } else {\n          nodeStack.pop();\n        }\n        render(stream.splice(0, 1)[0]);\n      }\n    }\n    return result + escape(value.substr(processed));\n  }\n\n  /* Initialization */\n\n  function expand_mode(mode) {\n    if (mode.variants && !mode.cached_variants) {\n      mode.cached_variants = mode.variants.map(function(variant) {\n        return inherit(mode, {variants: null}, variant);\n      });\n    }\n    return mode.cached_variants || (mode.endsWithParent && [inherit(mode)]) || [mode];\n  }\n\n  function compileLanguage(language) {\n\n    function reStr(re) {\n        return (re && re.source) || re;\n    }\n\n    function langRe(value, global) {\n      return new RegExp(\n        reStr(value),\n        'm' + (language.case_insensitive ? 'i' : '') + (global ? 'g' : '')\n      );\n    }\n\n    function compileMode(mode, parent) {\n      if (mode.compiled)\n        return;\n      mode.compiled = true;\n\n      mode.keywords = mode.keywords || mode.beginKeywords;\n      if (mode.keywords) {\n        var compiled_keywords = {};\n\n        var flatten = function(className, str) {\n          if (language.case_insensitive) {\n            str = str.toLowerCase();\n          }\n          str.split(' ').forEach(function(kw) {\n            var pair = kw.split('|');\n            compiled_keywords[pair[0]] = [className, pair[1] ? Number(pair[1]) : 1];\n          });\n        };\n\n        if (typeof mode.keywords === 'string') { // string\n          flatten('keyword', mode.keywords);\n        } else {\n          objectKeys(mode.keywords).forEach(function (className) {\n            flatten(className, mode.keywords[className]);\n          });\n        }\n        mode.keywords = compiled_keywords;\n      }\n      mode.lexemesRe = langRe(mode.lexemes || /\\w+/, true);\n\n      if (parent) {\n        if (mode.beginKeywords) {\n          mode.begin = '\\\\b(' + mode.beginKeywords.split(' ').join('|') + ')\\\\b';\n        }\n        if (!mode.begin)\n          mode.begin = /\\B|\\b/;\n        mode.beginRe = langRe(mode.begin);\n        if (!mode.end && !mode.endsWithParent)\n          mode.end = /\\B|\\b/;\n        if (mode.end)\n          mode.endRe = langRe(mode.end);\n        mode.terminator_end = reStr(mode.end) || '';\n        if (mode.endsWithParent && parent.terminator_end)\n          mode.terminator_end += (mode.end ? '|' : '') + parent.terminator_end;\n      }\n      if (mode.illegal)\n        mode.illegalRe = langRe(mode.illegal);\n      if (mode.relevance == null)\n        mode.relevance = 1;\n      if (!mode.contains) {\n        mode.contains = [];\n      }\n      mode.contains = Array.prototype.concat.apply([], mode.contains.map(function(c) {\n        return expand_mode(c === 'self' ? mode : c)\n      }));\n      mode.contains.forEach(function(c) {compileMode(c, mode);});\n\n      if (mode.starts) {\n        compileMode(mode.starts, parent);\n      }\n\n      var terminators =\n        mode.contains.map(function(c) {\n          return c.beginKeywords ? '\\\\.?(' + c.begin + ')\\\\.?' : c.begin;\n        })\n        .concat([mode.terminator_end, mode.illegal])\n        .map(reStr)\n        .filter(Boolean);\n      mode.terminators = terminators.length ? langRe(terminators.join('|'), true) : {exec: function(/*s*/) {return null;}};\n    }\n\n    compileMode(language);\n  }\n\n  /*\n  Core highlighting function. Accepts a language name, or an alias, and a\n  string with the code to highlight. Returns an object with the following\n  properties:\n\n  - relevance (int)\n  - value (an HTML string with highlighting markup)\n\n  */\n  function highlight(name, value, ignore_illegals, continuation) {\n\n    function subMode(lexeme, mode) {\n      var i, length;\n\n      for (i = 0, length = mode.contains.length; i < length; i++) {\n        if (testRe(mode.contains[i].beginRe, lexeme)) {\n          return mode.contains[i];\n        }\n      }\n    }\n\n    function endOfMode(mode, lexeme) {\n      if (testRe(mode.endRe, lexeme)) {\n        while (mode.endsParent && mode.parent) {\n          mode = mode.parent;\n        }\n        return mode;\n      }\n      if (mode.endsWithParent) {\n        return endOfMode(mode.parent, lexeme);\n      }\n    }\n\n    function isIllegal(lexeme, mode) {\n      return !ignore_illegals && testRe(mode.illegalRe, lexeme);\n    }\n\n    function keywordMatch(mode, match) {\n      var match_str = language.case_insensitive ? match[0].toLowerCase() : match[0];\n      return mode.keywords.hasOwnProperty(match_str) && mode.keywords[match_str];\n    }\n\n    function buildSpan(classname, insideSpan, leaveOpen, noPrefix) {\n      var classPrefix = noPrefix ? '' : options.classPrefix,\n          openSpan    = '<span class=\"' + classPrefix,\n          closeSpan   = leaveOpen ? '' : spanEndTag\n\n      openSpan += classname + '\">';\n\n      return openSpan + insideSpan + closeSpan;\n    }\n\n    function processKeywords() {\n      var keyword_match, last_index, match, result;\n\n      if (!top.keywords)\n        return escape(mode_buffer);\n\n      result = '';\n      last_index = 0;\n      top.lexemesRe.lastIndex = 0;\n      match = top.lexemesRe.exec(mode_buffer);\n\n      while (match) {\n        result += escape(mode_buffer.substring(last_index, match.index));\n        keyword_match = keywordMatch(top, match);\n        if (keyword_match) {\n          relevance += keyword_match[1];\n          result += buildSpan(keyword_match[0], escape(match[0]));\n        } else {\n          result += escape(match[0]);\n        }\n        last_index = top.lexemesRe.lastIndex;\n        match = top.lexemesRe.exec(mode_buffer);\n      }\n      return result + escape(mode_buffer.substr(last_index));\n    }\n\n    function processSubLanguage() {\n      var explicit = typeof top.subLanguage === 'string';\n      if (explicit && !languages[top.subLanguage]) {\n        return escape(mode_buffer);\n      }\n\n      var result = explicit ?\n                   highlight(top.subLanguage, mode_buffer, true, continuations[top.subLanguage]) :\n                   highlightAuto(mode_buffer, top.subLanguage.length ? top.subLanguage : undefined);\n\n      // Counting embedded language score towards the host language may be disabled\n      // with zeroing the containing mode relevance. Usecase in point is Markdown that\n      // allows XML everywhere and makes every XML snippet to have a much larger Markdown\n      // score.\n      if (top.relevance > 0) {\n        relevance += result.relevance;\n      }\n      if (explicit) {\n        continuations[top.subLanguage] = result.top;\n      }\n      return buildSpan(result.language, result.value, false, true);\n    }\n\n    function processBuffer() {\n      result += (top.subLanguage != null ? processSubLanguage() : processKeywords());\n      mode_buffer = '';\n    }\n\n    function startNewMode(mode) {\n      result += mode.className? buildSpan(mode.className, '', true): '';\n      top = Object.create(mode, {parent: {value: top}});\n    }\n\n    function processLexeme(buffer, lexeme) {\n\n      mode_buffer += buffer;\n\n      if (lexeme == null) {\n        processBuffer();\n        return 0;\n      }\n\n      var new_mode = subMode(lexeme, top);\n      if (new_mode) {\n        if (new_mode.skip) {\n          mode_buffer += lexeme;\n        } else {\n          if (new_mode.excludeBegin) {\n            mode_buffer += lexeme;\n          }\n          processBuffer();\n          if (!new_mode.returnBegin && !new_mode.excludeBegin) {\n            mode_buffer = lexeme;\n          }\n        }\n        startNewMode(new_mode, lexeme);\n        return new_mode.returnBegin ? 0 : lexeme.length;\n      }\n\n      var end_mode = endOfMode(top, lexeme);\n      if (end_mode) {\n        var origin = top;\n        if (origin.skip) {\n          mode_buffer += lexeme;\n        } else {\n          if (!(origin.returnEnd || origin.excludeEnd)) {\n            mode_buffer += lexeme;\n          }\n          processBuffer();\n          if (origin.excludeEnd) {\n            mode_buffer = lexeme;\n          }\n        }\n        do {\n          if (top.className) {\n            result += spanEndTag;\n          }\n          if (!top.skip && !top.subLanguage) {\n            relevance += top.relevance;\n          }\n          top = top.parent;\n        } while (top !== end_mode.parent);\n        if (end_mode.starts) {\n          startNewMode(end_mode.starts, '');\n        }\n        return origin.returnEnd ? 0 : lexeme.length;\n      }\n\n      if (isIllegal(lexeme, top))\n        throw new Error('Illegal lexeme \"' + lexeme + '\" for mode \"' + (top.className || '<unnamed>') + '\"');\n\n      /*\n      Parser should not reach this point as all types of lexemes should be caught\n      earlier, but if it does due to some bug make sure it advances at least one\n      character forward to prevent infinite looping.\n      */\n      mode_buffer += lexeme;\n      return lexeme.length || 1;\n    }\n\n    var language = getLanguage(name);\n    if (!language) {\n      throw new Error('Unknown language: \"' + name + '\"');\n    }\n\n    compileLanguage(language);\n    var top = continuation || language;\n    var continuations = {}; // keep continuations for sub-languages\n    var result = '', current;\n    for(current = top; current !== language; current = current.parent) {\n      if (current.className) {\n        result = buildSpan(current.className, '', true) + result;\n      }\n    }\n    var mode_buffer = '';\n    var relevance = 0;\n    try {\n      var match, count, index = 0;\n      while (true) {\n        top.terminators.lastIndex = index;\n        match = top.terminators.exec(value);\n        if (!match)\n          break;\n        count = processLexeme(value.substring(index, match.index), match[0]);\n        index = match.index + count;\n      }\n      processLexeme(value.substr(index));\n      for(current = top; current.parent; current = current.parent) { // close dangling modes\n        if (current.className) {\n          result += spanEndTag;\n        }\n      }\n      return {\n        relevance: relevance,\n        value: result,\n        language: name,\n        top: top\n      };\n    } catch (e) {\n      if (e.message && e.message.indexOf('Illegal') !== -1) {\n        return {\n          relevance: 0,\n          value: escape(value)\n        };\n      } else {\n        throw e;\n      }\n    }\n  }\n\n  /*\n  Highlighting with language detection. Accepts a string with the code to\n  highlight. Returns an object with the following properties:\n\n  - language (detected language)\n  - relevance (int)\n  - value (an HTML string with highlighting markup)\n  - second_best (object with the same structure for second-best heuristically\n    detected language, may be absent)\n\n  */\n  function highlightAuto(text, languageSubset) {\n    languageSubset = languageSubset || options.languages || objectKeys(languages);\n    var result = {\n      relevance: 0,\n      value: escape(text)\n    };\n    var second_best = result;\n    languageSubset.filter(getLanguage).forEach(function(name) {\n      var current = highlight(name, text, false);\n      current.language = name;\n      if (current.relevance > second_best.relevance) {\n        second_best = current;\n      }\n      if (current.relevance > result.relevance) {\n        second_best = result;\n        result = current;\n      }\n    });\n    if (second_best.language) {\n      result.second_best = second_best;\n    }\n    return result;\n  }\n\n  /*\n  Post-processing of the highlighted markup:\n\n  - replace TABs with something more useful\n  - replace real line-breaks with '<br>' for non-pre containers\n\n  */\n  function fixMarkup(value) {\n    return !(options.tabReplace || options.useBR)\n      ? value\n      : value.replace(fixMarkupRe, function(match, p1) {\n          if (options.useBR && match === '\\n') {\n            return '<br>';\n          } else if (options.tabReplace) {\n            return p1.replace(/\\t/g, options.tabReplace);\n          }\n          return '';\n      });\n  }\n\n  function buildClassName(prevClassName, currentLang, resultLang) {\n    var language = currentLang ? aliases[currentLang] : resultLang,\n        result   = [prevClassName.trim()];\n\n    if (!prevClassName.match(/\\bhljs\\b/)) {\n      result.push('hljs');\n    }\n\n    if (prevClassName.indexOf(language) === -1) {\n      result.push(language);\n    }\n\n    return result.join(' ').trim();\n  }\n\n  /*\n  Applies highlighting to a DOM node containing code. Accepts a DOM node and\n  two optional parameters for fixMarkup.\n  */\n  function highlightBlock(block) {\n    var node, originalStream, result, resultNode, text;\n    var language = blockLanguage(block);\n\n    if (isNotHighlighted(language))\n        return;\n\n    if (options.useBR) {\n      node = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');\n      node.innerHTML = block.innerHTML.replace(/\\n/g, '').replace(/<br[ \\/]*>/g, '\\n');\n    } else {\n      node = block;\n    }\n    text = node.textContent;\n    result = language ? highlight(language, text, true) : highlightAuto(text);\n\n    originalStream = nodeStream(node);\n    if (originalStream.length) {\n      resultNode = document.createElementNS('http://www.w3.org/1999/xhtml', 'div');\n      resultNode.innerHTML = result.value;\n      result.value = mergeStreams(originalStream, nodeStream(resultNode), text);\n    }\n    result.value = fixMarkup(result.value);\n\n    block.innerHTML = result.value;\n    block.className = buildClassName(block.className, language, result.language);\n    block.result = {\n      language: result.language,\n      re: result.relevance\n    };\n    if (result.second_best) {\n      block.second_best = {\n        language: result.second_best.language,\n        re: result.second_best.relevance\n      };\n    }\n  }\n\n  /*\n  Updates highlight.js global options with values passed in the form of an object.\n  */\n  function configure(user_options) {\n    options = inherit(options, user_options);\n  }\n\n  /*\n  Applies highlighting to all <pre><code>..</code></pre> blocks on a page.\n  */\n  function initHighlighting() {\n    if (initHighlighting.called)\n      return;\n    initHighlighting.called = true;\n\n    var blocks = document.querySelectorAll('pre code');\n    ArrayProto.forEach.call(blocks, highlightBlock);\n  }\n\n  /*\n  Attaches highlighting to the page load event.\n  */\n  function initHighlightingOnLoad() {\n    addEventListener('DOMContentLoaded', initHighlighting, false);\n    addEventListener('load', initHighlighting, false);\n  }\n\n  function registerLanguage(name, language) {\n    var lang = languages[name] = language(hljs);\n    if (lang.aliases) {\n      lang.aliases.forEach(function(alias) {aliases[alias] = name;});\n    }\n  }\n\n  function listLanguages() {\n    return objectKeys(languages);\n  }\n\n  function getLanguage(name) {\n    name = (name || '').toLowerCase();\n    return languages[name] || languages[aliases[name]];\n  }\n\n  /* Interface definition */\n\n  hljs.highlight = highlight;\n  hljs.highlightAuto = highlightAuto;\n  hljs.fixMarkup = fixMarkup;\n  hljs.highlightBlock = highlightBlock;\n  hljs.configure = configure;\n  hljs.initHighlighting = initHighlighting;\n  hljs.initHighlightingOnLoad = initHighlightingOnLoad;\n  hljs.registerLanguage = registerLanguage;\n  hljs.listLanguages = listLanguages;\n  hljs.getLanguage = getLanguage;\n  hljs.inherit = inherit;\n\n  // Common regexps\n  hljs.IDENT_RE = '[a-zA-Z]\\\\w*';\n  hljs.UNDERSCORE_IDENT_RE = '[a-zA-Z_]\\\\w*';\n  hljs.NUMBER_RE = '\\\\b\\\\d+(\\\\.\\\\d+)?';\n  hljs.C_NUMBER_RE = '(-?)(\\\\b0[xX][a-fA-F0-9]+|(\\\\b\\\\d+(\\\\.\\\\d*)?|\\\\.\\\\d+)([eE][-+]?\\\\d+)?)'; // 0x..., 0..., decimal, float\n  hljs.BINARY_NUMBER_RE = '\\\\b(0b[01]+)'; // 0b...\n  hljs.RE_STARTERS_RE = '!|!=|!==|%|%=|&|&&|&=|\\\\*|\\\\*=|\\\\+|\\\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\\\?|\\\\[|\\\\{|\\\\(|\\\\^|\\\\^=|\\\\||\\\\|=|\\\\|\\\\||~';\n\n  // Common modes\n  hljs.BACKSLASH_ESCAPE = {\n    begin: '\\\\\\\\[\\\\s\\\\S]', relevance: 0\n  };\n  hljs.APOS_STRING_MODE = {\n    className: 'string',\n    begin: '\\'', end: '\\'',\n    illegal: '\\\\n',\n    contains: [hljs.BACKSLASH_ESCAPE]\n  };\n  hljs.QUOTE_STRING_MODE = {\n    className: 'string',\n    begin: '\"', end: '\"',\n    illegal: '\\\\n',\n    contains: [hljs.BACKSLASH_ESCAPE]\n  };\n  hljs.PHRASAL_WORDS_MODE = {\n    begin: /\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b/\n  };\n  hljs.COMMENT = function (begin, end, inherits) {\n    var mode = hljs.inherit(\n      {\n        className: 'comment',\n        begin: begin, end: end,\n        contains: []\n      },\n      inherits || {}\n    );\n    mode.contains.push(hljs.PHRASAL_WORDS_MODE);\n    mode.contains.push({\n      className: 'doctag',\n      begin: '(?:TODO|FIXME|NOTE|BUG|XXX):',\n      relevance: 0\n    });\n    return mode;\n  };\n  hljs.C_LINE_COMMENT_MODE = hljs.COMMENT('//', '$');\n  hljs.C_BLOCK_COMMENT_MODE = hljs.COMMENT('/\\\\*', '\\\\*/');\n  hljs.HASH_COMMENT_MODE = hljs.COMMENT('#', '$');\n  hljs.NUMBER_MODE = {\n    className: 'number',\n    begin: hljs.NUMBER_RE,\n    relevance: 0\n  };\n  hljs.C_NUMBER_MODE = {\n    className: 'number',\n    begin: hljs.C_NUMBER_RE,\n    relevance: 0\n  };\n  hljs.BINARY_NUMBER_MODE = {\n    className: 'number',\n    begin: hljs.BINARY_NUMBER_RE,\n    relevance: 0\n  };\n  hljs.CSS_NUMBER_MODE = {\n    className: 'number',\n    begin: hljs.NUMBER_RE + '(' +\n      '%|em|ex|ch|rem'  +\n      '|vw|vh|vmin|vmax' +\n      '|cm|mm|in|pt|pc|px' +\n      '|deg|grad|rad|turn' +\n      '|s|ms' +\n      '|Hz|kHz' +\n      '|dpi|dpcm|dppx' +\n      ')?',\n    relevance: 0\n  };\n  hljs.REGEXP_MODE = {\n    className: 'regexp',\n    begin: /\\//, end: /\\/[gimuy]*/,\n    illegal: /\\n/,\n    contains: [\n      hljs.BACKSLASH_ESCAPE,\n      {\n        begin: /\\[/, end: /\\]/,\n        relevance: 0,\n        contains: [hljs.BACKSLASH_ESCAPE]\n      }\n    ]\n  };\n  hljs.TITLE_MODE = {\n    className: 'title',\n    begin: hljs.IDENT_RE,\n    relevance: 0\n  };\n  hljs.UNDERSCORE_TITLE_MODE = {\n    className: 'title',\n    begin: hljs.UNDERSCORE_IDENT_RE,\n    relevance: 0\n  };\n  hljs.METHOD_GUARD = {\n    // excludes method names from keyword processing\n    begin: '\\\\.\\\\s*' + hljs.UNDERSCORE_IDENT_RE,\n    relevance: 0\n  };\n\nhljs.registerLanguage('css', function(hljs) {\n  var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*';\n  var RULE = {\n    begin: /[A-Z\\_\\.\\-]+\\s*:/, returnBegin: true, end: ';', endsWithParent: true,\n    contains: [\n      {\n        className: 'attribute',\n        begin: /\\S/, end: ':', excludeEnd: true,\n        starts: {\n          endsWithParent: true, excludeEnd: true,\n          contains: [\n            {\n              begin: /[\\w-]+\\(/, returnBegin: true,\n              contains: [\n                {\n                  className: 'built_in',\n                  begin: /[\\w-]+/\n                },\n                {\n                  begin: /\\(/, end: /\\)/,\n                  contains: [\n                    hljs.APOS_STRING_MODE,\n                    hljs.QUOTE_STRING_MODE\n                  ]\n                }\n              ]\n            },\n            hljs.CSS_NUMBER_MODE,\n            hljs.QUOTE_STRING_MODE,\n            hljs.APOS_STRING_MODE,\n            hljs.C_BLOCK_COMMENT_MODE,\n            {\n              className: 'number', begin: '#[0-9A-Fa-f]+'\n            },\n            {\n              className: 'meta', begin: '!important'\n            }\n          ]\n        }\n      }\n    ]\n  };\n\n  return {\n    case_insensitive: true,\n    illegal: /[=\\/|'\\$]/,\n    contains: [\n      hljs.C_BLOCK_COMMENT_MODE,\n      {\n        className: 'selector-id', begin: /#[A-Za-z0-9_-]+/\n      },\n      {\n        className: 'selector-class', begin: /\\.[A-Za-z0-9_-]+/\n      },\n      {\n        className: 'selector-attr',\n        begin: /\\[/, end: /\\]/,\n        illegal: '$'\n      },\n      {\n        className: 'selector-pseudo',\n        begin: /:(:)?[a-zA-Z0-9\\_\\-\\+\\(\\)\"'.]+/\n      },\n      {\n        begin: '@(font-face|page)',\n        lexemes: '[a-z-]+',\n        keywords: 'font-face page'\n      },\n      {\n        begin: '@', end: '[{;]', // at_rule eating first \"{\" is a good thing\n                                 // because it doesn’t let it to be parsed as\n                                 // a rule set but instead drops parser into\n                                 // the default mode which is how it should be.\n        illegal: /:/, // break on Less variables @var: ...\n        contains: [\n          {\n            className: 'keyword',\n            begin: /\\w+/\n          },\n          {\n            begin: /\\s/, endsWithParent: true, excludeEnd: true,\n            relevance: 0,\n            contains: [\n              hljs.APOS_STRING_MODE, hljs.QUOTE_STRING_MODE,\n              hljs.CSS_NUMBER_MODE\n            ]\n          }\n        ]\n      },\n      {\n        className: 'selector-tag', begin: IDENT_RE,\n        relevance: 0\n      },\n      {\n        begin: '{', end: '}',\n        illegal: /\\S/,\n        contains: [\n          hljs.C_BLOCK_COMMENT_MODE,\n          RULE,\n        ]\n      }\n    ]\n  };\n});\n\nhljs.registerLanguage('xml', function(hljs) {\n  var XML_IDENT_RE = '[A-Za-z0-9\\\\._:-]+';\n  var TAG_INTERNALS = {\n    endsWithParent: true,\n    illegal: /</,\n    relevance: 0,\n    contains: [\n      {\n        className: 'attr',\n        begin: XML_IDENT_RE,\n        relevance: 0\n      },\n      {\n        begin: /=\\s*/,\n        relevance: 0,\n        contains: [\n          {\n            className: 'string',\n            endsParent: true,\n            variants: [\n              {begin: /\"/, end: /\"/},\n              {begin: /'/, end: /'/},\n              {begin: /[^\\s\"'=<>`]+/}\n            ]\n          }\n        ]\n      }\n    ]\n  };\n  return {\n    aliases: ['html', 'xhtml', 'rss', 'atom', 'xjb', 'xsd', 'xsl', 'plist'],\n    case_insensitive: true,\n    contains: [\n      {\n        className: 'meta',\n        begin: '<!DOCTYPE', end: '>',\n        relevance: 10,\n        contains: [{begin: '\\\\[', end: '\\\\]'}]\n      },\n      hljs.COMMENT(\n        '<!--',\n        '-->',\n        {\n          relevance: 10\n        }\n      ),\n      {\n        begin: '<\\\\!\\\\[CDATA\\\\[', end: '\\\\]\\\\]>',\n        relevance: 10\n      },\n      {\n        className: 'meta',\n        begin: /<\\?xml/, end: /\\?>/, relevance: 10\n      },\n      {\n        begin: /<\\?(php)?/, end: /\\?>/,\n        subLanguage: 'php',\n        contains: [{begin: '/\\\\*', end: '\\\\*/', skip: true}]\n      },\n      {\n        className: 'tag',\n        /*\n        The lookahead pattern (?=...) ensures that 'begin' only matches\n        '<style' as a single word, followed by a whitespace or an\n        ending braket. The '$' is needed for the lexeme to be recognized\n        by hljs.subMode() that tests lexemes outside the stream.\n        */\n        begin: '<style(?=\\\\s|>|$)', end: '>',\n        keywords: {name: 'style'},\n        contains: [TAG_INTERNALS],\n        starts: {\n          end: '</style>', returnEnd: true,\n          subLanguage: ['css', 'xml']\n        }\n      },\n      {\n        className: 'tag',\n        // See the comment in the <style tag about the lookahead pattern\n        begin: '<script(?=\\\\s|>|$)', end: '>',\n        keywords: {name: 'script'},\n        contains: [TAG_INTERNALS],\n        starts: {\n          end: '\\<\\/script\\>', returnEnd: true,\n          subLanguage: ['actionscript', 'javascript', 'handlebars', 'xml']\n        }\n      },\n      {\n        className: 'tag',\n        begin: '</?', end: '/?>',\n        contains: [\n          {\n            className: 'name', begin: /[^\\/><\\s]+/, relevance: 0\n          },\n          TAG_INTERNALS\n        ]\n      }\n    ]\n  };\n});\n\nhljs.registerLanguage('htmlbars', function(hljs) {\n  var BUILT_INS = 'action collection component concat debugger each each-in else get hash if input link-to loc log mut outlet partial query-params render textarea unbound unless with yield view';\n\n  var ATTR_ASSIGNMENT = {\n    illegal: /\\}\\}/,\n    begin: /[a-zA-Z0-9_]+=/,\n    returnBegin: true,\n    relevance: 0,\n    contains: [\n      {\n        className: 'attr', begin: /[a-zA-Z0-9_]+/\n      }\n    ]\n  };\n\n  var SUB_EXPR = {\n    illegal: /\\}\\}/,\n    begin: /\\)/, end: /\\)/,\n    contains: [\n      {\n        begin: /[a-zA-Z\\.\\-]+/,\n        keywords: {built_in: BUILT_INS},\n        starts: {\n          endsWithParent: true, relevance: 0,\n          contains: [\n            hljs.QUOTE_STRING_MODE,\n          ]\n        }\n      }\n    ]\n  };\n\n  var TAG_INNARDS = {\n    endsWithParent: true, relevance: 0,\n    keywords: {keyword: 'as', built_in: BUILT_INS},\n    contains: [\n      hljs.QUOTE_STRING_MODE,\n      ATTR_ASSIGNMENT,\n      hljs.NUMBER_MODE\n    ]\n  };\n\n  return {\n    case_insensitive: true,\n    subLanguage: 'xml',\n    contains: [\n      hljs.COMMENT('{{!(--)?', '(--)?}}'),\n      {\n        className: 'template-tag',\n        begin: /\\{\\{[#\\/]/, end: /\\}\\}/,\n        contains: [\n          {\n            keywords: {'builtin-name': BUILT_INS},\n            starts: TAG_INNARDS\n          }\n        ]\n      },\n      {\n        className: 'template-tag',\n        begin: /\\{\\{([a-zA-Z]+-[a-zA-Z]+)/, end: /\\}\\}/,\n        contains: [\n          {\n            keywords: {'builtin-name': BUILT_INS},\n            starts: TAG_INNARDS\n          }\n        ]\n      },\n      {\n        className: 'template-variable',\n        begin: /\\{\\{[a-zA-Z][a-zA-Z\\-]+/, end: /\\}\\}/,\n        keywords: {keyword: 'as', built_in: BUILT_INS},\n        contains: [\n          hljs.QUOTE_STRING_MODE\n        ]\n      }\n    ]\n  };\n});\n\nhljs.registerLanguage('javascript', function(hljs) {\n  var IDENT_RE = '[A-Za-z$_][0-9A-Za-z$_]*';\n  var KEYWORDS = {\n    keyword:\n      'in of if for while finally var new function do return void else break catch ' +\n      'instanceof with throw case default try this switch continue typeof delete ' +\n      'let yield const export super debugger as async await static ' +\n      // ECMAScript 6 modules import\n      'import from as'\n    ,\n    literal:\n      'true false null undefined NaN Infinity',\n    built_in:\n      'eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent ' +\n      'encodeURI encodeURIComponent escape unescape Object Function Boolean Error ' +\n      'EvalError InternalError RangeError ReferenceError StopIteration SyntaxError ' +\n      'TypeError URIError Number Math Date String RegExp Array Float32Array ' +\n      'Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array ' +\n      'Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require ' +\n      'module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect ' +\n      'Promise'\n  };\n  var EXPRESSIONS;\n  var NUMBER = {\n    className: 'number',\n    variants: [\n      { begin: '\\\\b(0[bB][01]+)' },\n      { begin: '\\\\b(0[oO][0-7]+)' },\n      { begin: hljs.C_NUMBER_RE }\n    ],\n    relevance: 0\n  };\n  var SUBST = {\n    className: 'subst',\n    begin: '\\\\$\\\\{', end: '\\\\}',\n    keywords: KEYWORDS,\n    contains: []  // defined later\n  };\n  var TEMPLATE_STRING = {\n    className: 'string',\n    begin: '`', end: '`',\n    contains: [\n      hljs.BACKSLASH_ESCAPE,\n      SUBST\n    ]\n  };\n  SUBST.contains = [\n    hljs.APOS_STRING_MODE,\n    hljs.QUOTE_STRING_MODE,\n    TEMPLATE_STRING,\n    NUMBER,\n    hljs.REGEXP_MODE\n  ]\n  var PARAMS_CONTAINS = SUBST.contains.concat([\n    hljs.C_BLOCK_COMMENT_MODE,\n    hljs.C_LINE_COMMENT_MODE\n  ]);\n\n  return {\n    aliases: ['js', 'jsx'],\n    keywords: KEYWORDS,\n    contains: [\n      {\n        className: 'meta',\n        relevance: 10,\n        begin: /^\\s*['\"]use (strict|asm)['\"]/\n      },\n      {\n        className: 'meta',\n        begin: /^#!/, end: /$/\n      },\n      hljs.APOS_STRING_MODE,\n      hljs.QUOTE_STRING_MODE,\n      TEMPLATE_STRING,\n      hljs.C_LINE_COMMENT_MODE,\n      hljs.C_BLOCK_COMMENT_MODE,\n      NUMBER,\n      { // object attr container\n        begin: /[{,]\\s*/, relevance: 0,\n        contains: [\n          {\n            begin: IDENT_RE + '\\\\s*:', returnBegin: true,\n            relevance: 0,\n            contains: [{className: 'attr', begin: IDENT_RE, relevance: 0}]\n          }\n        ]\n      },\n      { // \"value\" container\n        begin: '(' + hljs.RE_STARTERS_RE + '|\\\\b(case|return|throw)\\\\b)\\\\s*',\n        keywords: 'return throw case',\n        contains: [\n          hljs.C_LINE_COMMENT_MODE,\n          hljs.C_BLOCK_COMMENT_MODE,\n          hljs.REGEXP_MODE,\n          {\n            className: 'function',\n            begin: '(\\\\(.*?\\\\)|' + IDENT_RE + ')\\\\s*=>', returnBegin: true,\n            end: '\\\\s*=>',\n            contains: [\n              {\n                className: 'params',\n                variants: [\n                  {\n                    begin: IDENT_RE\n                  },\n                  {\n                    begin: /\\(\\s*\\)/,\n                  },\n                  {\n                    begin: /\\(/, end: /\\)/,\n                    excludeBegin: true, excludeEnd: true,\n                    keywords: KEYWORDS,\n                    contains: PARAMS_CONTAINS\n                  }\n                ]\n              }\n            ]\n          },\n          { // E4X / JSX\n            begin: /</, end: /(\\/\\w+|\\w+\\/)>/,\n            subLanguage: 'xml',\n            contains: [\n              {begin: /<\\w+\\s*\\/>/, skip: true},\n              {\n                begin: /<\\w+/, end: /(\\/\\w+|\\w+\\/)>/, skip: true,\n                contains: [\n                  {begin: /<\\w+\\s*\\/>/, skip: true},\n                  'self'\n                ]\n              }\n            ]\n          }\n        ],\n        relevance: 0\n      },\n      {\n        className: 'function',\n        beginKeywords: 'function', end: /\\{/, excludeEnd: true,\n        contains: [\n          hljs.inherit(hljs.TITLE_MODE, {begin: IDENT_RE}),\n          {\n            className: 'params',\n            begin: /\\(/, end: /\\)/,\n            excludeBegin: true,\n            excludeEnd: true,\n            contains: PARAMS_CONTAINS\n          }\n        ],\n        illegal: /\\[|%/\n      },\n      {\n        begin: /\\$[(.]/ // relevance booster for a pattern common to JS libs: `$(something)` and `$.something`\n      },\n      hljs.METHOD_GUARD,\n      { // ES6 class\n        className: 'class',\n        beginKeywords: 'class', end: /[{;=]/, excludeEnd: true,\n        illegal: /[:\"\\[\\]]/,\n        contains: [\n          {beginKeywords: 'extends'},\n          hljs.UNDERSCORE_TITLE_MODE\n        ]\n      },\n      {\n        beginKeywords: 'constructor', end: /\\{/, excludeEnd: true\n      }\n    ],\n    illegal: /#(?!!)/\n  };\n});\n\nhljs.registerLanguage('scss', function(hljs) {\n  var IDENT_RE = '[a-zA-Z-][a-zA-Z0-9_-]*';\n  var VARIABLE = {\n    className: 'variable',\n    begin: '(\\\\$' + IDENT_RE + ')\\\\b'\n  };\n  var HEXCOLOR = {\n    className: 'number', begin: '#[0-9A-Fa-f]+'\n  };\n  var DEF_INTERNALS = {\n    className: 'attribute',\n    begin: '[A-Z\\\\_\\\\.\\\\-]+', end: ':',\n    excludeEnd: true,\n    illegal: '[^\\\\s]',\n    starts: {\n      endsWithParent: true, excludeEnd: true,\n      contains: [\n        HEXCOLOR,\n        hljs.CSS_NUMBER_MODE,\n        hljs.QUOTE_STRING_MODE,\n        hljs.APOS_STRING_MODE,\n        hljs.C_BLOCK_COMMENT_MODE,\n        {\n          className: 'meta', begin: '!important'\n        }\n      ]\n    }\n  };\n  return {\n    case_insensitive: true,\n    illegal: '[=/|\\']',\n    contains: [\n      hljs.C_LINE_COMMENT_MODE,\n      hljs.C_BLOCK_COMMENT_MODE,\n      {\n        className: 'selector-id', begin: '\\\\#[A-Za-z0-9_-]+',\n        relevance: 0\n      },\n      {\n        className: 'selector-class', begin: '\\\\.[A-Za-z0-9_-]+',\n        relevance: 0\n      },\n      {\n        className: 'selector-attr', begin: '\\\\[', end: '\\\\]',\n        illegal: '$'\n      },\n      {\n        className: 'selector-tag', // begin: IDENT_RE, end: '[,|\\\\s]'\n        begin: '\\\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\\\b',\n        relevance: 0\n      },\n      {\n        begin: ':(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)'\n      },\n      {\n        begin: '::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)'\n      },\n      VARIABLE,\n      {\n        className: 'attribute',\n        begin: '\\\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\\\b',\n        illegal: '[^\\\\s]'\n      },\n      {\n        begin: '\\\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\\\b'\n      },\n      {\n        begin: ':', end: ';',\n        contains: [\n          VARIABLE,\n          HEXCOLOR,\n          hljs.CSS_NUMBER_MODE,\n          hljs.QUOTE_STRING_MODE,\n          hljs.APOS_STRING_MODE,\n          {\n            className: 'meta', begin: '!important'\n          }\n        ]\n      },\n      {\n        begin: '@', end: '[{;]',\n        keywords: 'mixin include extend for if else each while charset import debug media page content font-face namespace warn',\n        contains: [\n          VARIABLE,\n          hljs.QUOTE_STRING_MODE,\n          hljs.APOS_STRING_MODE,\n          HEXCOLOR,\n          hljs.CSS_NUMBER_MODE,\n          {\n            begin: '\\\\s[A-Za-z0-9_.-]+',\n            relevance: 0\n          }\n        ]\n      }\n    ]\n  };\n});\n\n  return hljs;\n}));\n\n})((function(){ function newDefine(){ var args = Array.prototype.slice.call(arguments); args.unshift(\"highlight.js\"); return define.apply(null, args); }; newDefine.amd = true; return newDefine; })());","/* ========================================================================\n * Bootstrap: tab.js v3.4.1\n * https://getbootstrap.com/docs/3.4/javascript/#tabs\n * ========================================================================\n * Copyright 2011-2019 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // TAB CLASS DEFINITION\n  // ====================\n\n  var Tab = function (element) {\n    // jscs:disable requireDollarBeforejQueryAssignment\n    this.element = $(element)\n    // jscs:enable requireDollarBeforejQueryAssignment\n  }\n\n  Tab.VERSION = '3.4.1'\n\n  Tab.TRANSITION_DURATION = 150\n\n  Tab.prototype.show = function () {\n    var $this    = this.element\n    var $ul      = $this.closest('ul:not(.dropdown-menu)')\n    var selector = $this.data('target')\n\n    if (!selector) {\n      selector = $this.attr('href')\n      selector = selector && selector.replace(/.*(?=#[^\\s]*$)/, '') // strip for ie7\n    }\n\n    if ($this.parent('li').hasClass('active')) return\n\n    var $previous = $ul.find('.active:last a')\n    var hideEvent = $.Event('hide.bs.tab', {\n      relatedTarget: $this[0]\n    })\n    var showEvent = $.Event('show.bs.tab', {\n      relatedTarget: $previous[0]\n    })\n\n    $previous.trigger(hideEvent)\n    $this.trigger(showEvent)\n\n    if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) return\n\n    var $target = $(document).find(selector)\n\n    this.activate($this.closest('li'), $ul)\n    this.activate($target, $target.parent(), function () {\n      $previous.trigger({\n        type: 'hidden.bs.tab',\n        relatedTarget: $this[0]\n      })\n      $this.trigger({\n        type: 'shown.bs.tab',\n        relatedTarget: $previous[0]\n      })\n    })\n  }\n\n  Tab.prototype.activate = function (element, container, callback) {\n    var $active    = container.find('> .active')\n    var transition = callback\n      && $.support.transition\n      && ($active.length && $active.hasClass('fade') || !!container.find('> .fade').length)\n\n    function next() {\n      $active\n        .removeClass('active')\n        .find('> .dropdown-menu > .active')\n        .removeClass('active')\n        .end()\n        .find('[data-toggle=\"tab\"]')\n        .attr('aria-expanded', false)\n\n      element\n        .addClass('active')\n        .find('[data-toggle=\"tab\"]')\n        .attr('aria-expanded', true)\n\n      if (transition) {\n        element[0].offsetWidth // reflow for transition\n        element.addClass('in')\n      } else {\n        element.removeClass('fade')\n      }\n\n      if (element.parent('.dropdown-menu').length) {\n        element\n          .closest('li.dropdown')\n          .addClass('active')\n          .end()\n          .find('[data-toggle=\"tab\"]')\n          .attr('aria-expanded', true)\n      }\n\n      callback && callback()\n    }\n\n    $active.length && transition ?\n      $active\n        .one('bsTransitionEnd', next)\n        .emulateTransitionEnd(Tab.TRANSITION_DURATION) :\n      next()\n\n    $active.removeClass('in')\n  }\n\n\n  // TAB PLUGIN DEFINITION\n  // =====================\n\n  function Plugin(option) {\n    return this.each(function () {\n      var $this = $(this)\n      var data  = $this.data('bs.tab')\n\n      if (!data) $this.data('bs.tab', (data = new Tab(this)))\n      if (typeof option == 'string') data[option]()\n    })\n  }\n\n  var old = $.fn.tab\n\n  $.fn.tab             = Plugin\n  $.fn.tab.Constructor = Tab\n\n\n  // TAB NO CONFLICT\n  // ===============\n\n  $.fn.tab.noConflict = function () {\n    $.fn.tab = old\n    return this\n  }\n\n\n  // TAB DATA-API\n  // ============\n\n  var clickHandler = function (e) {\n    e.preventDefault()\n    Plugin.call($(this), 'show')\n  }\n\n  $(document)\n    .on('click.bs.tab.data-api', '[data-toggle=\"tab\"]', clickHandler)\n    .on('click.bs.tab.data-api', '[data-toggle=\"pill\"]', clickHandler)\n\n}(jQuery);\n","/* ========================================================================\n * Bootstrap: dropdown.js v3.4.1\n * https://getbootstrap.com/docs/3.4/javascript/#dropdowns\n * ========================================================================\n * Copyright 2011-2019 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // DROPDOWN CLASS DEFINITION\n  // =========================\n\n  var backdrop = '.dropdown-backdrop'\n  var toggle   = '[data-toggle=\"dropdown\"]'\n  var Dropdown = function (element) {\n    $(element).on('click.bs.dropdown', this.toggle)\n  }\n\n  Dropdown.VERSION = '3.4.1'\n\n  function getParent($this) {\n    var selector = $this.attr('data-target')\n\n    if (!selector) {\n      selector = $this.attr('href')\n      selector = selector && /#[A-Za-z]/.test(selector) && selector.replace(/.*(?=#[^\\s]*$)/, '') // strip for ie7\n    }\n\n    var $parent = selector !== '#' ? $(document).find(selector) : null\n\n    return $parent && $parent.length ? $parent : $this.parent()\n  }\n\n  function clearMenus(e) {\n    if (e && e.which === 3) return\n    $(backdrop).remove()\n    $(toggle).each(function () {\n      var $this         = $(this)\n      var $parent       = getParent($this)\n      var relatedTarget = { relatedTarget: this }\n\n      if (!$parent.hasClass('open')) return\n\n      if (e && e.type == 'click' && /input|textarea/i.test(e.target.tagName) && $.contains($parent[0], e.target)) return\n\n      $parent.trigger(e = $.Event('hide.bs.dropdown', relatedTarget))\n\n      if (e.isDefaultPrevented()) return\n\n      $this.attr('aria-expanded', 'false')\n      $parent.removeClass('open').trigger($.Event('hidden.bs.dropdown', relatedTarget))\n    })\n  }\n\n  Dropdown.prototype.toggle = function (e) {\n    var $this = $(this)\n\n    if ($this.is('.disabled, :disabled')) return\n\n    var $parent  = getParent($this)\n    var isActive = $parent.hasClass('open')\n\n    clearMenus()\n\n    if (!isActive) {\n      if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) {\n        // if mobile we use a backdrop because click events don't delegate\n        $(document.createElement('div'))\n          .addClass('dropdown-backdrop')\n          .insertAfter($(this))\n          .on('click', clearMenus)\n      }\n\n      var relatedTarget = { relatedTarget: this }\n      $parent.trigger(e = $.Event('show.bs.dropdown', relatedTarget))\n\n      if (e.isDefaultPrevented()) return\n\n      $this\n        .trigger('focus')\n        .attr('aria-expanded', 'true')\n\n      $parent\n        .toggleClass('open')\n        .trigger($.Event('shown.bs.dropdown', relatedTarget))\n    }\n\n    return false\n  }\n\n  Dropdown.prototype.keydown = function (e) {\n    if (!/(38|40|27|32)/.test(e.which) || /input|textarea/i.test(e.target.tagName)) return\n\n    var $this = $(this)\n\n    e.preventDefault()\n    e.stopPropagation()\n\n    if ($this.is('.disabled, :disabled')) return\n\n    var $parent  = getParent($this)\n    var isActive = $parent.hasClass('open')\n\n    if (!isActive && e.which != 27 || isActive && e.which == 27) {\n      if (e.which == 27) $parent.find(toggle).trigger('focus')\n      return $this.trigger('click')\n    }\n\n    var desc = ' li:not(.disabled):visible a'\n    var $items = $parent.find('.dropdown-menu' + desc)\n\n    if (!$items.length) return\n\n    var index = $items.index(e.target)\n\n    if (e.which == 38 && index > 0)                 index--         // up\n    if (e.which == 40 && index < $items.length - 1) index++         // down\n    if (!~index)                                    index = 0\n\n    $items.eq(index).trigger('focus')\n  }\n\n\n  // DROPDOWN PLUGIN DEFINITION\n  // ==========================\n\n  function Plugin(option) {\n    return this.each(function () {\n      var $this = $(this)\n      var data  = $this.data('bs.dropdown')\n\n      if (!data) $this.data('bs.dropdown', (data = new Dropdown(this)))\n      if (typeof option == 'string') data[option].call($this)\n    })\n  }\n\n  var old = $.fn.dropdown\n\n  $.fn.dropdown             = Plugin\n  $.fn.dropdown.Constructor = Dropdown\n\n\n  // DROPDOWN NO CONFLICT\n  // ====================\n\n  $.fn.dropdown.noConflict = function () {\n    $.fn.dropdown = old\n    return this\n  }\n\n\n  // APPLY TO STANDARD DROPDOWN ELEMENTS\n  // ===================================\n\n  $(document)\n    .on('click.bs.dropdown.data-api', clearMenus)\n    .on('click.bs.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })\n    .on('click.bs.dropdown.data-api', toggle, Dropdown.prototype.toggle)\n    .on('keydown.bs.dropdown.data-api', toggle, Dropdown.prototype.keydown)\n    .on('keydown.bs.dropdown.data-api', '.dropdown-menu', Dropdown.prototype.keydown)\n\n}(jQuery);\n","/* ========================================================================\n * Bootstrap: transition.js v3.4.1\n * https://getbootstrap.com/docs/3.4/javascript/#transitions\n * ========================================================================\n * Copyright 2011-2019 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // CSS TRANSITION SUPPORT (Shoutout: https://modernizr.com/)\n  // ============================================================\n\n  function transitionEnd() {\n    var el = document.createElement('bootstrap')\n\n    var transEndEventNames = {\n      WebkitTransition : 'webkitTransitionEnd',\n      MozTransition    : 'transitionend',\n      OTransition      : 'oTransitionEnd otransitionend',\n      transition       : 'transitionend'\n    }\n\n    for (var name in transEndEventNames) {\n      if (el.style[name] !== undefined) {\n        return { end: transEndEventNames[name] }\n      }\n    }\n\n    return false // explicit for ie8 (  ._.)\n  }\n\n  // https://blog.alexmaccaw.com/css-transitions\n  $.fn.emulateTransitionEnd = function (duration) {\n    var called = false\n    var $el = this\n    $(this).one('bsTransitionEnd', function () { called = true })\n    var callback = function () { if (!called) $($el).trigger($.support.transition.end) }\n    setTimeout(callback, duration)\n    return this\n  }\n\n  $(function () {\n    $.support.transition = transitionEnd()\n\n    if (!$.support.transition) return\n\n    $.event.special.bsTransitionEnd = {\n      bindType: $.support.transition.end,\n      delegateType: $.support.transition.end,\n      handle: function (e) {\n        if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)\n      }\n    }\n  })\n\n}(jQuery);\n","/* ========================================================================\n * Bootstrap: alert.js v3.4.1\n * https://getbootstrap.com/docs/3.4/javascript/#alerts\n * ========================================================================\n * Copyright 2011-2019 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // ALERT CLASS DEFINITION\n  // ======================\n\n  var dismiss = '[data-dismiss=\"alert\"]'\n  var Alert   = function (el) {\n    $(el).on('click', dismiss, this.close)\n  }\n\n  Alert.VERSION = '3.4.1'\n\n  Alert.TRANSITION_DURATION = 150\n\n  Alert.prototype.close = function (e) {\n    var $this    = $(this)\n    var selector = $this.attr('data-target')\n\n    if (!selector) {\n      selector = $this.attr('href')\n      selector = selector && selector.replace(/.*(?=#[^\\s]*$)/, '') // strip for ie7\n    }\n\n    selector    = selector === '#' ? [] : selector\n    var $parent = $(document).find(selector)\n\n    if (e) e.preventDefault()\n\n    if (!$parent.length) {\n      $parent = $this.closest('.alert')\n    }\n\n    $parent.trigger(e = $.Event('close.bs.alert'))\n\n    if (e.isDefaultPrevented()) return\n\n    $parent.removeClass('in')\n\n    function removeElement() {\n      // detach from parent, fire event then clean up data\n      $parent.detach().trigger('closed.bs.alert').remove()\n    }\n\n    $.support.transition && $parent.hasClass('fade') ?\n      $parent\n        .one('bsTransitionEnd', removeElement)\n        .emulateTransitionEnd(Alert.TRANSITION_DURATION) :\n      removeElement()\n  }\n\n\n  // ALERT PLUGIN DEFINITION\n  // =======================\n\n  function Plugin(option) {\n    return this.each(function () {\n      var $this = $(this)\n      var data  = $this.data('bs.alert')\n\n      if (!data) $this.data('bs.alert', (data = new Alert(this)))\n      if (typeof option == 'string') data[option].call($this)\n    })\n  }\n\n  var old = $.fn.alert\n\n  $.fn.alert             = Plugin\n  $.fn.alert.Constructor = Alert\n\n\n  // ALERT NO CONFLICT\n  // =================\n\n  $.fn.alert.noConflict = function () {\n    $.fn.alert = old\n    return this\n  }\n\n\n  // ALERT DATA-API\n  // ==============\n\n  $(document).on('click.bs.alert.data-api', dismiss, Alert.prototype.close)\n\n}(jQuery);\n","/* ========================================================================\n * Bootstrap: modal.js v3.4.1\n * https://getbootstrap.com/docs/3.4/javascript/#modals\n * ========================================================================\n * Copyright 2011-2019 Twitter, Inc.\n * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)\n * ======================================================================== */\n\n\n+function ($) {\n  'use strict';\n\n  // MODAL CLASS DEFINITION\n  // ======================\n\n  var Modal = function (element, options) {\n    this.options = options\n    this.$body = $(document.body)\n    this.$element = $(element)\n    this.$dialog = this.$element.find('.modal-dialog')\n    this.$backdrop = null\n    this.isShown = null\n    this.originalBodyPad = null\n    this.scrollbarWidth = 0\n    this.ignoreBackdropClick = false\n    this.fixedContent = '.navbar-fixed-top, .navbar-fixed-bottom'\n\n    if (this.options.remote) {\n      this.$element\n        .find('.modal-content')\n        .load(this.options.remote, $.proxy(function () {\n          this.$element.trigger('loaded.bs.modal')\n        }, this))\n    }\n  }\n\n  Modal.VERSION = '3.4.1'\n\n  Modal.TRANSITION_DURATION = 300\n  Modal.BACKDROP_TRANSITION_DURATION = 150\n\n  Modal.DEFAULTS = {\n    backdrop: true,\n    keyboard: true,\n    show: true\n  }\n\n  Modal.prototype.toggle = function (_relatedTarget) {\n    return this.isShown ? this.hide() : this.show(_relatedTarget)\n  }\n\n  Modal.prototype.show = function (_relatedTarget) {\n    var that = this\n    var e = $.Event('show.bs.modal', { relatedTarget: _relatedTarget })\n\n    this.$element.trigger(e)\n\n    if (this.isShown || e.isDefaultPrevented()) return\n\n    this.isShown = true\n\n    this.checkScrollbar()\n    this.setScrollbar()\n    this.$body.addClass('modal-open')\n\n    this.escape()\n    this.resize()\n\n    this.$element.on('click.dismiss.bs.modal', '[data-dismiss=\"modal\"]', $.proxy(this.hide, this))\n\n    this.$dialog.on('mousedown.dismiss.bs.modal', function () {\n      that.$element.one('mouseup.dismiss.bs.modal', function (e) {\n        if ($(e.target).is(that.$element)) that.ignoreBackdropClick = true\n      })\n    })\n\n    this.backdrop(function () {\n      var transition = $.support.transition && that.$element.hasClass('fade')\n\n      if (!that.$element.parent().length) {\n        that.$element.appendTo(that.$body) // don't move modals dom position\n      }\n\n      that.$element\n        .show()\n        .scrollTop(0)\n\n      that.adjustDialog()\n\n      if (transition) {\n        that.$element[0].offsetWidth // force reflow\n      }\n\n      that.$element.addClass('in')\n\n      that.enforceFocus()\n\n      var e = $.Event('shown.bs.modal', { relatedTarget: _relatedTarget })\n\n      transition ?\n        that.$dialog // wait for modal to slide in\n          .one('bsTransitionEnd', function () {\n            that.$element.trigger('focus').trigger(e)\n          })\n          .emulateTransitionEnd(Modal.TRANSITION_DURATION) :\n        that.$element.trigger('focus').trigger(e)\n    })\n  }\n\n  Modal.prototype.hide = function (e) {\n    if (e) e.preventDefault()\n\n    e = $.Event('hide.bs.modal')\n\n    this.$element.trigger(e)\n\n    if (!this.isShown || e.isDefaultPrevented()) return\n\n    this.isShown = false\n\n    this.escape()\n    this.resize()\n\n    $(document).off('focusin.bs.modal')\n\n    this.$element\n      .removeClass('in')\n      .off('click.dismiss.bs.modal')\n      .off('mouseup.dismiss.bs.modal')\n\n    this.$dialog.off('mousedown.dismiss.bs.modal')\n\n    $.support.transition && this.$element.hasClass('fade') ?\n      this.$element\n        .one('bsTransitionEnd', $.proxy(this.hideModal, this))\n        .emulateTransitionEnd(Modal.TRANSITION_DURATION) :\n      this.hideModal()\n  }\n\n  Modal.prototype.enforceFocus = function () {\n    $(document)\n      .off('focusin.bs.modal') // guard against infinite focus loop\n      .on('focusin.bs.modal', $.proxy(function (e) {\n        if (document !== e.target &&\n          this.$element[0] !== e.target &&\n          !this.$element.has(e.target).length) {\n          this.$element.trigger('focus')\n        }\n      }, this))\n  }\n\n  Modal.prototype.escape = function () {\n    if (this.isShown && this.options.keyboard) {\n      this.$element.on('keydown.dismiss.bs.modal', $.proxy(function (e) {\n        e.which == 27 && this.hide()\n      }, this))\n    } else if (!this.isShown) {\n      this.$element.off('keydown.dismiss.bs.modal')\n    }\n  }\n\n  Modal.prototype.resize = function () {\n    if (this.isShown) {\n      $(window).on('resize.bs.modal', $.proxy(this.handleUpdate, this))\n    } else {\n      $(window).off('resize.bs.modal')\n    }\n  }\n\n  Modal.prototype.hideModal = function () {\n    var that = this\n    this.$element.hide()\n    this.backdrop(function () {\n      that.$body.removeClass('modal-open')\n      that.resetAdjustments()\n      that.resetScrollbar()\n      that.$element.trigger('hidden.bs.modal')\n    })\n  }\n\n  Modal.prototype.removeBackdrop = function () {\n    this.$backdrop && this.$backdrop.remove()\n    this.$backdrop = null\n  }\n\n  Modal.prototype.backdrop = function (callback) {\n    var that = this\n    var animate = this.$element.hasClass('fade') ? 'fade' : ''\n\n    if (this.isShown && this.options.backdrop) {\n      var doAnimate = $.support.transition && animate\n\n      this.$backdrop = $(document.createElement('div'))\n        .addClass('modal-backdrop ' + animate)\n        .appendTo(this.$body)\n\n      this.$element.on('click.dismiss.bs.modal', $.proxy(function (e) {\n        if (this.ignoreBackdropClick) {\n          this.ignoreBackdropClick = false\n          return\n        }\n        if (e.target !== e.currentTarget) return\n        this.options.backdrop == 'static'\n          ? this.$element[0].focus()\n          : this.hide()\n      }, this))\n\n      if (doAnimate) this.$backdrop[0].offsetWidth // force reflow\n\n      this.$backdrop.addClass('in')\n\n      if (!callback) return\n\n      doAnimate ?\n        this.$backdrop\n          .one('bsTransitionEnd', callback)\n          .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :\n        callback()\n\n    } else if (!this.isShown && this.$backdrop) {\n      this.$backdrop.removeClass('in')\n\n      var callbackRemove = function () {\n        that.removeBackdrop()\n        callback && callback()\n      }\n      $.support.transition && this.$element.hasClass('fade') ?\n        this.$backdrop\n          .one('bsTransitionEnd', callbackRemove)\n          .emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION) :\n        callbackRemove()\n\n    } else if (callback) {\n      callback()\n    }\n  }\n\n  // these following methods are used to handle overflowing modals\n\n  Modal.prototype.handleUpdate = function () {\n    this.adjustDialog()\n  }\n\n  Modal.prototype.adjustDialog = function () {\n    var modalIsOverflowing = this.$element[0].scrollHeight > document.documentElement.clientHeight\n\n    this.$element.css({\n      paddingLeft: !this.bodyIsOverflowing && modalIsOverflowing ? this.scrollbarWidth : '',\n      paddingRight: this.bodyIsOverflowing && !modalIsOverflowing ? this.scrollbarWidth : ''\n    })\n  }\n\n  Modal.prototype.resetAdjustments = function () {\n    this.$element.css({\n      paddingLeft: '',\n      paddingRight: ''\n    })\n  }\n\n  Modal.prototype.checkScrollbar = function () {\n    var fullWindowWidth = window.innerWidth\n    if (!fullWindowWidth) { // workaround for missing window.innerWidth in IE8\n      var documentElementRect = document.documentElement.getBoundingClientRect()\n      fullWindowWidth = documentElementRect.right - Math.abs(documentElementRect.left)\n    }\n    this.bodyIsOverflowing = document.body.clientWidth < fullWindowWidth\n    this.scrollbarWidth = this.measureScrollbar()\n  }\n\n  Modal.prototype.setScrollbar = function () {\n    var bodyPad = parseInt((this.$body.css('padding-right') || 0), 10)\n    this.originalBodyPad = document.body.style.paddingRight || ''\n    var scrollbarWidth = this.scrollbarWidth\n    if (this.bodyIsOverflowing) {\n      this.$body.css('padding-right', bodyPad + scrollbarWidth)\n      $(this.fixedContent).each(function (index, element) {\n        var actualPadding = element.style.paddingRight\n        var calculatedPadding = $(element).css('padding-right')\n        $(element)\n          .data('padding-right', actualPadding)\n          .css('padding-right', parseFloat(calculatedPadding) + scrollbarWidth + 'px')\n      })\n    }\n  }\n\n  Modal.prototype.resetScrollbar = function () {\n    this.$body.css('padding-right', this.originalBodyPad)\n    $(this.fixedContent).each(function (index, element) {\n      var padding = $(element).data('padding-right')\n      $(element).removeData('padding-right')\n      element.style.paddingRight = padding ? padding : ''\n    })\n  }\n\n  Modal.prototype.measureScrollbar = function () { // thx walsh\n    var scrollDiv = document.createElement('div')\n    scrollDiv.className = 'modal-scrollbar-measure'\n    this.$body.append(scrollDiv)\n    var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth\n    this.$body[0].removeChild(scrollDiv)\n    return scrollbarWidth\n  }\n\n\n  // MODAL PLUGIN DEFINITION\n  // =======================\n\n  function Plugin(option, _relatedTarget) {\n    return this.each(function () {\n      var $this = $(this)\n      var data = $this.data('bs.modal')\n      var options = $.extend({}, Modal.DEFAULTS, $this.data(), typeof option == 'object' && option)\n\n      if (!data) $this.data('bs.modal', (data = new Modal(this, options)))\n      if (typeof option == 'string') data[option](_relatedTarget)\n      else if (options.show) data.show(_relatedTarget)\n    })\n  }\n\n  var old = $.fn.modal\n\n  $.fn.modal = Plugin\n  $.fn.modal.Constructor = Modal\n\n\n  // MODAL NO CONFLICT\n  // =================\n\n  $.fn.modal.noConflict = function () {\n    $.fn.modal = old\n    return this\n  }\n\n\n  // MODAL DATA-API\n  // ==============\n\n  $(document).on('click.bs.modal.data-api', '[data-toggle=\"modal\"]', function (e) {\n    var $this = $(this)\n    var href = $this.attr('href')\n    var target = $this.attr('data-target') ||\n      (href && href.replace(/.*(?=#[^\\s]+$)/, '')) // strip for ie7\n\n    var $target = $(document).find(target)\n    var option = $target.data('bs.modal') ? 'toggle' : $.extend({ remote: !/#/.test(href) && href }, $target.data(), $this.data())\n\n    if ($this.is('a')) e.preventDefault()\n\n    $target.one('show.bs.modal', function (showEvent) {\n      if (showEvent.isDefaultPrevented()) return // only register focus restorer if modal will actually get shown\n      $target.one('hidden.bs.modal', function () {\n        $this.is(':visible') && $this.trigger('focus')\n      })\n    })\n    Plugin.call($target, option, this)\n  })\n\n}(jQuery);\n","import $ from 'jquery';\n\nvar globalID = 1;\nvar pastWarnings = {};\n\nvar Utils = {\n  // Parsley DOM-API\n  // returns object from dom attributes and values\n  attr: function (element, namespace, obj) {\n    var i;\n    var attribute;\n    var attributes;\n    var regex = new RegExp('^' + namespace, 'i');\n\n    if ('undefined' === typeof obj)\n      obj = {};\n    else {\n      // Clear all own properties. This won't affect prototype's values\n      for (i in obj) {\n        if (obj.hasOwnProperty(i))\n          delete obj[i];\n      }\n    }\n\n    if (!element)\n      return obj;\n\n    attributes = element.attributes;\n    for (i = attributes.length; i--; ) {\n      attribute = attributes[i];\n\n      if (attribute && attribute.specified && regex.test(attribute.name)) {\n        obj[this.camelize(attribute.name.slice(namespace.length))] = this.deserializeValue(attribute.value);\n      }\n    }\n\n    return obj;\n  },\n\n  checkAttr: function (element, namespace, checkAttr) {\n    return element.hasAttribute(namespace + checkAttr);\n  },\n\n  setAttr: function (element, namespace, attr, value) {\n    element.setAttribute(this.dasherize(namespace + attr), String(value));\n  },\n\n  getType: function(element) {\n    return element.getAttribute('type') || 'text';\n  },\n\n  generateID: function () {\n    return '' + globalID++;\n  },\n\n  /** Third party functions **/\n  deserializeValue: function (value) {\n    var num;\n\n    try {\n      return value ?\n        value == \"true\" ||\n        (value == \"false\" ? false :\n        value == \"null\" ? null :\n        !isNaN(num = Number(value)) ? num :\n        /^[\\[\\{]/.test(value) ? JSON.parse(value) :\n        value)\n        : value;\n    } catch (e) { return value; }\n  },\n\n  // Zepto camelize function\n  camelize: function (str) {\n    return str.replace(/-+(.)?/g, function (match, chr) {\n      return chr ? chr.toUpperCase() : '';\n    });\n  },\n\n  // Zepto dasherize function\n  dasherize: function (str) {\n    return str.replace(/::/g, '/')\n      .replace(/([A-Z]+)([A-Z][a-z])/g, '$1_$2')\n      .replace(/([a-z\\d])([A-Z])/g, '$1_$2')\n      .replace(/_/g, '-')\n      .toLowerCase();\n  },\n\n  warn: function () {\n    if (window.console && 'function' === typeof window.console.warn)\n      window.console.warn(...arguments);\n  },\n\n  warnOnce: function(msg) {\n    if (!pastWarnings[msg]) {\n      pastWarnings[msg] = true;\n      this.warn(...arguments);\n    }\n  },\n\n  _resetWarnings: function () {\n    pastWarnings = {};\n  },\n\n  trimString: function(string) {\n    return string.replace(/^\\s+|\\s+$/g, '');\n  },\n\n  parse: {\n    date: function(string) {\n      let parsed = string.match(/^(\\d{4,})-(\\d\\d)-(\\d\\d)$/);\n      if (!parsed)\n        return null;\n      let [_, year, month, day] = parsed.map(x => parseInt(x, 10));\n      let date = new Date(year, month - 1, day);\n      if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day)\n        return null;\n      return date;\n    },\n    string: function(string) {\n      return string;\n    },\n    integer: function(string) {\n      if (isNaN(string))\n        return null;\n      return parseInt(string, 10);\n    },\n    number: function(string) {\n      if (isNaN(string))\n        throw null;\n      return parseFloat(string);\n    },\n    'boolean': function _boolean(string) {\n      return !(/^\\s*false\\s*$/i.test(string));\n    },\n    object: function(string) {\n      return Utils.deserializeValue(string);\n    },\n    regexp: function(regexp) {\n      var flags = '';\n\n      // Test if RegExp is literal, if not, nothing to be done, otherwise, we need to isolate flags and pattern\n      if (/^\\/.*\\/(?:[gimy]*)$/.test(regexp)) {\n        // Replace the regexp literal string with the first match group: ([gimy]*)\n        // If no flag is present, this will be a blank string\n        flags = regexp.replace(/.*\\/([gimy]*)$/, '$1');\n        // Again, replace the regexp literal string with the first match group:\n        // everything excluding the opening and closing slashes and the flags\n        regexp = regexp.replace(new RegExp('^/(.*?)/' + flags + '$'), '$1');\n      } else {\n        // Anchor regexp:\n        regexp = '^' + regexp + '$';\n      }\n      return new RegExp(regexp, flags);\n    }\n  },\n\n  parseRequirement: function(requirementType, string) {\n    var converter = this.parse[requirementType || 'string'];\n    if (!converter)\n      throw 'Unknown requirement specification: \"' + requirementType + '\"';\n    let converted = converter(string);\n    if (converted === null)\n      throw `Requirement is not a ${requirementType}: \"${string}\"`;\n    return converted;\n  },\n\n  namespaceEvents: function(events, namespace) {\n    events = this.trimString(events || '').split(/\\s+/);\n    if (!events[0])\n      return '';\n    return $.map(events, evt => `${evt}.${namespace}`).join(' ');\n  },\n\n  difference: function(array, remove) {\n    // This is O(N^2), should be optimized\n    let result = [];\n    $.each(array, (_, elem) => {\n      if (remove.indexOf(elem) == -1)\n        result.push(elem);\n    });\n    return result;\n  },\n\n  // Alter-ego to native Promise.all, but for jQuery\n  all: function(promises) {\n    // jQuery treats $.when() and $.when(singlePromise) differently; let's avoid that and add spurious elements\n    return $.when(...promises, 42, 42);\n  },\n\n  // Object.create polyfill, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/create#Polyfill\n  objectCreate: Object.create || (function () {\n    var Object = function () {};\n    return function (prototype) {\n      if (arguments.length > 1) {\n        throw Error('Second argument not supported');\n      }\n      if (typeof prototype != 'object') {\n        throw TypeError('Argument must be an object');\n      }\n      Object.prototype = prototype;\n      var result = new Object();\n      Object.prototype = null;\n      return result;\n    };\n  })(),\n\n  _SubmitSelector: 'input[type=\"submit\"], button:submit'\n};\n\nexport default Utils;\n","import $ from 'jquery';\nimport Utils from './utils';\n\nvar Base = function () {\n  this.__id__ = Utils.generateID();\n};\n\nBase.prototype = {\n  asyncSupport: true, // Deprecated\n\n  _pipeAccordingToValidationResult: function () {\n    var pipe = () => {\n      var r = $.Deferred();\n      if (true !== this.validationResult)\n        r.reject();\n      return r.resolve().promise();\n    };\n    return [pipe, pipe];\n  },\n\n  actualizeOptions: function () {\n    Utils.attr(this.element, this.options.namespace, this.domOptions);\n    if (this.parent && this.parent.actualizeOptions)\n      this.parent.actualizeOptions();\n    return this;\n  },\n\n  _resetOptions: function (initOptions) {\n    this.domOptions = Utils.objectCreate(this.parent.options);\n    this.options = Utils.objectCreate(this.domOptions);\n    // Shallow copy of ownProperties of initOptions:\n    for (var i in initOptions) {\n      if (initOptions.hasOwnProperty(i))\n        this.options[i] = initOptions[i];\n    }\n    this.actualizeOptions();\n  },\n\n  _listeners: null,\n\n  // Register a callback for the given event name\n  // Callback is called with context as the first argument and the `this`\n  // The context is the current parsley instance, or window.Parsley if global\n  // A return value of `false` will interrupt the calls\n  on: function (name, fn) {\n    this._listeners = this._listeners || {};\n    var queue = this._listeners[name] = this._listeners[name] || [];\n    queue.push(fn);\n\n    return this;\n  },\n\n  // Deprecated. Use `on` instead\n  subscribe: function(name, fn) {\n    $.listenTo(this, name.toLowerCase(), fn);\n  },\n\n  // Unregister a callback (or all if none is given) for the given event name\n  off: function (name, fn) {\n    var queue = this._listeners && this._listeners[name];\n    if (queue) {\n      if (!fn) {\n        delete this._listeners[name];\n      } else {\n        for (var i = queue.length; i--; )\n          if (queue[i] === fn)\n            queue.splice(i, 1);\n      }\n    }\n    return this;\n  },\n\n  // Deprecated. Use `off`\n  unsubscribe: function(name, fn) {\n    $.unsubscribeTo(this, name.toLowerCase());\n  },\n\n  // Trigger an event of the given name\n  // A return value of `false` interrupts the callback chain\n  // Returns false if execution was interrupted\n  trigger: function (name, target, extraArg) {\n    target = target || this;\n    var queue = this._listeners && this._listeners[name];\n    var result;\n    var parentResult;\n    if (queue) {\n      for (var i = queue.length; i--; ) {\n        result = queue[i].call(target, target, extraArg);\n        if (result === false) return result;\n      }\n    }\n    if (this.parent) {\n      return this.parent.trigger(name, target, extraArg);\n    }\n    return true;\n  },\n\n  asyncIsValid: function (group, force) {\n    Utils.warnOnce(\"asyncIsValid is deprecated; please use whenValid instead\");\n    return this.whenValid({group, force});\n  },\n\n  _findRelated: function () {\n    return this.options.multiple ?\n      $(this.parent.element.querySelectorAll(`[${this.options.namespace}multiple=\"${this.options.multiple}\"]`))\n    : this.$element;\n  }\n};\n\nexport default Base;\n","// All these options could be overriden and specified directly in DOM using\n// `data-parsley-` default DOM-API\n// eg: `inputs` can be set in DOM using `data-parsley-inputs=\"input, textarea\"`\n// eg: `data-parsley-stop-on-first-failing-constraint=\"false\"`\n\nvar Defaults = {\n  // ### General\n\n  // Default data-namespace for DOM API\n  namespace: 'data-parsley-',\n\n  // Supported inputs by default\n  inputs: 'input, textarea, select',\n\n  // Excluded inputs by default\n  excluded: 'input[type=button], input[type=submit], input[type=reset], input[type=hidden]',\n\n  // Stop validating field on highest priority failing constraint\n  priorityEnabled: true,\n\n  // ### Field only\n\n  // identifier used to group together inputs (e.g. radio buttons...)\n  multiple: null,\n\n  // identifier (or array of identifiers) used to validate only a select group of inputs\n  group: null,\n\n  // ### UI\n  // Enable\\Disable error messages\n  uiEnabled: true,\n\n  // Key events threshold before validation\n  validationThreshold: 3,\n\n  // Focused field on form validation error. 'first'|'last'|'none'\n  focus: 'first',\n\n  // event(s) that will trigger validation before first failure. eg: `input`...\n  trigger: false,\n\n  // event(s) that will trigger validation after first failure.\n  triggerAfterFailure: 'input',\n\n  // Class that would be added on every failing validation Parsley field\n  errorClass: 'parsley-error',\n\n  // Same for success validation\n  successClass: 'parsley-success',\n\n  // Return the `$element` that will receive these above success or error classes\n  // Could also be (and given directly from DOM) a valid selector like `'#div'`\n  classHandler: function (Field) {},\n\n  // Return the `$element` where errors will be appended\n  // Could also be (and given directly from DOM) a valid selector like `'#div'`\n  errorsContainer: function (Field) {},\n\n  // ul elem that would receive errors' list\n  errorsWrapper: '<ul class=\"parsley-errors-list\"></ul>',\n\n  // li elem that would receive error message\n  errorTemplate: '<li></li>'\n};\n\nexport default Defaults;\n","import $ from 'jquery';\nimport Utils from './utils';\n\nvar convertArrayRequirement = function(string, length) {\n  var m = string.match(/^\\s*\\[(.*)\\]\\s*$/);\n  if (!m)\n    throw 'Requirement is not an array: \"' + string + '\"';\n  var values = m[1].split(',').map(Utils.trimString);\n  if (values.length !== length)\n    throw 'Requirement has ' + values.length + ' values when ' + length + ' are needed';\n  return values;\n};\n\nvar convertExtraOptionRequirement = function(requirementSpec, string, extraOptionReader) {\n  var main = null;\n  var extra = {};\n  for (var key in requirementSpec) {\n    if (key) {\n      var value = extraOptionReader(key);\n      if ('string' === typeof value)\n        value = Utils.parseRequirement(requirementSpec[key], value);\n      extra[key] = value;\n    } else {\n      main = Utils.parseRequirement(requirementSpec[key], string);\n    }\n  }\n  return [main, extra];\n};\n\n// A Validator needs to implement the methods `validate` and `parseRequirements`\n\nvar Validator = function(spec) {\n  $.extend(true, this, spec);\n};\n\nValidator.prototype = {\n  // Returns `true` iff the given `value` is valid according the given requirements.\n  validate: function(value, requirementFirstArg) {\n    if (this.fn) { // Legacy style validator\n\n      if (arguments.length > 3)  // If more args then value, requirement, instance...\n        requirementFirstArg = [].slice.call(arguments, 1, -1);  // Skip first arg (value) and last (instance), combining the rest\n      return this.fn(value, requirementFirstArg);\n    }\n\n    if (Array.isArray(value)) {\n      if (!this.validateMultiple)\n        throw 'Validator `' + this.name + '` does not handle multiple values';\n      return this.validateMultiple(...arguments);\n    } else {\n      let instance = arguments[arguments.length - 1];\n      if (this.validateDate && instance._isDateInput()) {\n        arguments[0] = Utils.parse.date(arguments[0]);\n        if (arguments[0] === null)\n          return false;\n        return this.validateDate(...arguments);\n      }\n      if (this.validateNumber) {\n        if (!value) // Builtin validators all accept empty strings, except `required` of course\n          return true;\n        if (isNaN(value))\n          return false;\n        arguments[0] = parseFloat(arguments[0]);\n        return this.validateNumber(...arguments);\n      }\n      if (this.validateString) {\n        return this.validateString(...arguments);\n      }\n      throw 'Validator `' + this.name + '` only handles multiple values';\n    }\n  },\n\n  // Parses `requirements` into an array of arguments,\n  // according to `this.requirementType`\n  parseRequirements: function(requirements, extraOptionReader) {\n    if ('string' !== typeof requirements) {\n      // Assume requirement already parsed\n      // but make sure we return an array\n      return Array.isArray(requirements) ? requirements : [requirements];\n    }\n    var type = this.requirementType;\n    if (Array.isArray(type)) {\n      var values = convertArrayRequirement(requirements, type.length);\n      for (var i = 0; i < values.length; i++)\n        values[i] = Utils.parseRequirement(type[i], values[i]);\n      return values;\n    } else if ($.isPlainObject(type)) {\n      return convertExtraOptionRequirement(type, requirements, extraOptionReader);\n    } else {\n      return [Utils.parseRequirement(type, requirements)];\n    }\n  },\n  // Defaults:\n  requirementType: 'string',\n\n  priority: 2\n\n};\n\nexport default Validator;\n","import $ from 'jquery';\nimport Utils from './utils';\nimport Defaults from './defaults';\nimport Validator from './validator';\n\nvar ValidatorRegistry = function (validators, catalog) {\n  this.__class__ = 'ValidatorRegistry';\n\n  // Default Parsley locale is en\n  this.locale = 'en';\n\n  this.init(validators || {}, catalog || {});\n};\n\nvar typeTesters =  {\n  email: /^((([a-zA-Z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+(\\.([a-zA-Z]|\\d|[!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])+)*)|((\\x22)((((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(([\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f]|\\x21|[\\x23-\\x5b]|[\\x5d-\\x7e]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(\\\\([\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))))*(((\\x20|\\x09)*(\\x0d\\x0a))?(\\x20|\\x09)+)?(\\x22)))@((([a-zA-Z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])|(([a-zA-Z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-zA-Z]|\\d|-|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-zA-Z]|\\d|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])))\\.)+(([a-zA-Z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])([a-zA-Z]|\\d|-|_|~|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF])*([a-zA-Z]|[\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))$/,\n\n  // Follow https://www.w3.org/TR/html5/infrastructure.html#floating-point-numbers\n  number: /^-?(\\d*\\.)?\\d+(e[-+]?\\d+)?$/i,\n\n  integer: /^-?\\d+$/,\n\n  digits: /^\\d+$/,\n\n  alphanum: /^\\w+$/i,\n\n  date: {\n    test: value => Utils.parse.date(value) !== null\n  },\n\n  url: new RegExp(\n      \"^\" +\n        // protocol identifier\n        \"(?:(?:https?|ftp)://)?\" + // ** mod: make scheme optional\n        // user:pass authentication\n        \"(?:\\\\S+(?::\\\\S*)?@)?\" +\n        \"(?:\" +\n          // IP address exclusion\n          // private & local networks\n          // \"(?!(?:10|127)(?:\\\\.\\\\d{1,3}){3})\" +   // ** mod: allow local networks\n          // \"(?!(?:169\\\\.254|192\\\\.168)(?:\\\\.\\\\d{1,3}){2})\" +  // ** mod: allow local networks\n          // \"(?!172\\\\.(?:1[6-9]|2\\\\d|3[0-1])(?:\\\\.\\\\d{1,3}){2})\" +  // ** mod: allow local networks\n          // IP address dotted notation octets\n          // excludes loopback network 0.0.0.0\n          // excludes reserved space >= 224.0.0.0\n          // excludes network & broacast addresses\n          // (first & last IP address of each class)\n          \"(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])\" +\n          \"(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}\" +\n          \"(?:\\\\.(?:[1-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))\" +\n        \"|\" +\n          // host name\n          \"(?:(?:[a-zA-Z\\\\u00a1-\\\\uffff0-9]-*)*[a-zA-Z\\\\u00a1-\\\\uffff0-9]+)\" +\n          // domain name\n          \"(?:\\\\.(?:[a-zA-Z\\\\u00a1-\\\\uffff0-9]-*)*[a-zA-Z\\\\u00a1-\\\\uffff0-9]+)*\" +\n          // TLD identifier\n          \"(?:\\\\.(?:[a-zA-Z\\\\u00a1-\\\\uffff]{2,}))\" +\n        \")\" +\n        // port number\n        \"(?::\\\\d{2,5})?\" +\n        // resource path\n        \"(?:/\\\\S*)?\" +\n      \"$\"\n    )\n};\ntypeTesters.range = typeTesters.number;\n\n// See http://stackoverflow.com/a/10454560/8279\nvar decimalPlaces = num => {\n  var match = ('' + num).match(/(?:\\.(\\d+))?(?:[eE]([+-]?\\d+))?$/);\n  if (!match) { return 0; }\n  return Math.max(\n       0,\n       // Number of digits right of decimal point.\n       (match[1] ? match[1].length : 0) -\n       // Adjust for scientific notation.\n       (match[2] ? +match[2] : 0));\n};\n\n// parseArguments('number', ['1', '2']) => [1, 2]\nlet parseArguments = (type, args) => args.map(Utils.parse[type]);\n// operatorToValidator returns a validating function for an operator function, applied to the given type\nlet operatorToValidator = (type, operator) => {\n  return (value, ...requirementsAndInput) => {\n    requirementsAndInput.pop(); // Get rid of `input` argument\n    return operator(value, ...parseArguments(type, requirementsAndInput));\n  };\n};\n\nlet comparisonOperator = operator => ({\n  validateDate: operatorToValidator('date', operator),\n  validateNumber: operatorToValidator('number', operator),\n  requirementType: operator.length <= 2 ? 'string' : ['string', 'string'], // Support operators with a 1 or 2 requirement(s)\n  priority: 30\n});\n\nValidatorRegistry.prototype = {\n  init: function (validators, catalog) {\n    this.catalog = catalog;\n    // Copy prototype's validators:\n    this.validators = Object.assign({}, this.validators);\n\n    for (var name in validators)\n      this.addValidator(name, validators[name].fn, validators[name].priority);\n\n    window.Parsley.trigger('parsley:validator:init');\n  },\n\n  // Set new messages locale if we have dictionary loaded in ParsleyConfig.i18n\n  setLocale: function (locale) {\n    if ('undefined' === typeof this.catalog[locale])\n      throw new Error(locale + ' is not available in the catalog');\n\n    this.locale = locale;\n\n    return this;\n  },\n\n  // Add a new messages catalog for a given locale. Set locale for this catalog if set === `true`\n  addCatalog: function (locale, messages, set) {\n    if ('object' === typeof messages)\n      this.catalog[locale] = messages;\n\n    if (true === set)\n      return this.setLocale(locale);\n\n    return this;\n  },\n\n  // Add a specific message for a given constraint in a given locale\n  addMessage: function (locale, name, message) {\n    if ('undefined' === typeof this.catalog[locale])\n      this.catalog[locale] = {};\n\n    this.catalog[locale][name] = message;\n\n    return this;\n  },\n\n  // Add messages for a given locale\n  addMessages: function (locale, nameMessageObject) {\n    for (var name in nameMessageObject)\n      this.addMessage(locale, name, nameMessageObject[name]);\n\n    return this;\n  },\n\n  // Add a new validator\n  //\n  //    addValidator('custom', {\n  //        requirementType: ['integer', 'integer'],\n  //        validateString: function(value, from, to) {},\n  //        priority: 22,\n  //        messages: {\n  //          en: \"Hey, that's no good\",\n  //          fr: \"Aye aye, pas bon du tout\",\n  //        }\n  //    })\n  //\n  // Old API was addValidator(name, function, priority)\n  //\n  addValidator: function (name, arg1, arg2) {\n    if (this.validators[name])\n      Utils.warn('Validator \"' + name + '\" is already defined.');\n    else if (Defaults.hasOwnProperty(name)) {\n      Utils.warn('\"' + name + '\" is a restricted keyword and is not a valid validator name.');\n      return;\n    }\n    return this._setValidator(...arguments);\n  },\n\n  hasValidator: function (name) {\n    return !!this.validators[name];\n  },\n\n  updateValidator: function (name, arg1, arg2) {\n    if (!this.validators[name]) {\n      Utils.warn('Validator \"' + name + '\" is not already defined.');\n      return this.addValidator(...arguments);\n    }\n    return this._setValidator(...arguments);\n  },\n\n  removeValidator: function (name) {\n    if (!this.validators[name])\n      Utils.warn('Validator \"' + name + '\" is not defined.');\n\n    delete this.validators[name];\n\n    return this;\n  },\n\n  _setValidator: function (name, validator, priority) {\n    if ('object' !== typeof validator) {\n      // Old style validator, with `fn` and `priority`\n      validator = {\n        fn: validator,\n        priority: priority\n      };\n    }\n    if (!validator.validate) {\n      validator = new Validator(validator);\n    }\n    this.validators[name] = validator;\n\n    for (var locale in validator.messages || {})\n      this.addMessage(locale, name, validator.messages[locale]);\n\n    return this;\n  },\n\n  getErrorMessage: function (constraint) {\n    var message;\n\n    // Type constraints are a bit different, we have to match their requirements too to find right error message\n    if ('type' === constraint.name) {\n      var typeMessages = this.catalog[this.locale][constraint.name] || {};\n      message = typeMessages[constraint.requirements];\n    } else\n      message = this.formatMessage(this.catalog[this.locale][constraint.name], constraint.requirements);\n\n    return message || this.catalog[this.locale].defaultMessage || this.catalog.en.defaultMessage;\n  },\n\n  // Kind of light `sprintf()` implementation\n  formatMessage: function (string, parameters) {\n    if ('object' === typeof parameters) {\n      for (var i in parameters)\n        string = this.formatMessage(string, parameters[i]);\n\n      return string;\n    }\n\n    return 'string' === typeof string ? string.replace(/%s/i, parameters) : '';\n  },\n\n  // Here is the Parsley default validators list.\n  // A validator is an object with the following key values:\n  //  - priority: an integer\n  //  - requirement: 'string' (default), 'integer', 'number', 'regexp' or an Array of these\n  //  - validateString, validateMultiple, validateNumber: functions returning `true`, `false` or a promise\n  // Alternatively, a validator can be a function that returns such an object\n  //\n  validators: {\n    notblank: {\n      validateString: function(value) {\n        return /\\S/.test(value);\n      },\n      priority: 2\n    },\n    required: {\n      validateMultiple: function(values) {\n        return values.length > 0;\n      },\n      validateString: function(value) {\n        return /\\S/.test(value);\n      },\n      priority: 512\n    },\n    type: {\n      validateString: function(value, type, {step = 'any', base = 0} = {}) {\n        var tester = typeTesters[type];\n        if (!tester) {\n          throw new Error('validator type `' + type + '` is not supported');\n        }\n        if (!value)\n          return true;  // Builtin validators all accept empty strings, except `required` of course\n        if (!tester.test(value))\n          return false;\n        if ('number' === type) {\n          if (!/^any$/i.test(step || '')) {\n            var nb = Number(value);\n            var decimals = Math.max(decimalPlaces(step), decimalPlaces(base));\n            if (decimalPlaces(nb) > decimals) // Value can't have too many decimals\n              return false;\n            // Be careful of rounding errors by using integers.\n            var toInt = f => Math.round(f * Math.pow(10, decimals));\n            if ((toInt(nb) - toInt(base)) % toInt(step) != 0)\n              return false;\n          }\n        }\n        return true;\n      },\n      requirementType: {\n        '': 'string',\n        step: 'string',\n        base: 'number'\n      },\n      priority: 256\n    },\n    pattern: {\n      validateString: function(value, regexp) {\n        if (!value)\n          return true;  // Builtin validators all accept empty strings, except `required` of course\n        return regexp.test(value);\n      },\n      requirementType: 'regexp',\n      priority: 64\n    },\n    minlength: {\n      validateString: function (value, requirement) {\n        if (!value)\n          return true;  // Builtin validators all accept empty strings, except `required` of course\n        return value.length >= requirement;\n      },\n      requirementType: 'integer',\n      priority: 30\n    },\n    maxlength: {\n      validateString: function (value, requirement) {\n        return value.length <= requirement;\n      },\n      requirementType: 'integer',\n      priority: 30\n    },\n    length: {\n      validateString: function (value, min, max) {\n        if (!value)\n          return true;  // Builtin validators all accept empty strings, except `required` of course\n        return value.length >= min && value.length <= max;\n      },\n      requirementType: ['integer', 'integer'],\n      priority: 30\n    },\n    mincheck: {\n      validateMultiple: function (values, requirement) {\n        return values.length >= requirement;\n      },\n      requirementType: 'integer',\n      priority: 30\n    },\n    maxcheck: {\n      validateMultiple: function (values, requirement) {\n        return values.length <= requirement;\n      },\n      requirementType: 'integer',\n      priority: 30\n    },\n    check: {\n      validateMultiple: function (values, min, max) {\n        return values.length >= min && values.length <= max;\n      },\n      requirementType: ['integer', 'integer'],\n      priority: 30\n    },\n    min: comparisonOperator((value, requirement) => value >= requirement),\n    max: comparisonOperator((value, requirement) => value <= requirement),\n    range: comparisonOperator((value, min, max) => value >= min && value <= max),\n    equalto: {\n      validateString: function (value, refOrValue) {\n        if (!value)\n          return true;  // Builtin validators all accept empty strings, except `required` of course\n        var $reference = $(refOrValue);\n        if ($reference.length)\n          return value === $reference.val();\n        else\n          return value === refOrValue;\n      },\n      priority: 256\n    },\n    euvatin: {\n      validateString: function (value, refOrValue) {\n        if (!value) {\n          return true;  // Builtin validators all accept empty strings, except `required` of course\n        }\n\n        var re = /^[A-Z][A-Z][A-Za-z0-9 -]{2,}$/;\n        return re.test(value);\n      },\n      priority: 30,\n    },\n  }\n};\n\nexport default ValidatorRegistry;\n","import $ from 'jquery';\nimport Utils from './utils';\n\nvar UI = {};\n\nvar diffResults = function (newResult, oldResult, deep) {\n  var added = [];\n  var kept = [];\n\n  for (var i = 0; i < newResult.length; i++) {\n    var found = false;\n\n    for (var j = 0; j < oldResult.length; j++)\n      if (newResult[i].assert.name === oldResult[j].assert.name) {\n        found = true;\n        break;\n      }\n\n    if (found)\n      kept.push(newResult[i]);\n    else\n      added.push(newResult[i]);\n  }\n\n  return {\n    kept: kept,\n    added: added,\n    removed: !deep ? diffResults(oldResult, newResult, true).added : []\n  };\n};\n\nUI.Form = {\n\n  _actualizeTriggers: function () {\n    this.$element.on('submit.Parsley', evt => { this.onSubmitValidate(evt); });\n    this.$element.on('click.Parsley', Utils._SubmitSelector, evt => { this.onSubmitButton(evt); });\n\n    // UI could be disabled\n    if (false === this.options.uiEnabled)\n      return;\n\n    this.element.setAttribute('novalidate', '');\n  },\n\n  focus: function () {\n    this._focusedField = null;\n\n    if (true === this.validationResult || 'none' === this.options.focus)\n      return null;\n\n    for (var i = 0; i < this.fields.length; i++) {\n      var field = this.fields[i];\n      if (true !== field.validationResult && field.validationResult.length > 0 && 'undefined' === typeof field.options.noFocus) {\n        this._focusedField = field.$element;\n        if ('first' === this.options.focus)\n          break;\n      }\n    }\n\n    if (null === this._focusedField)\n      return null;\n\n    return this._focusedField.focus();\n  },\n\n  _destroyUI: function () {\n    // Reset all event listeners\n    this.$element.off('.Parsley');\n  }\n\n};\n\nUI.Field = {\n\n  _reflowUI: function () {\n    this._buildUI();\n\n    // If this field doesn't have an active UI don't bother doing something\n    if (!this._ui)\n      return;\n\n    // Diff between two validation results\n    var diff = diffResults(this.validationResult, this._ui.lastValidationResult);\n\n    // Then store current validation result for next reflow\n    this._ui.lastValidationResult = this.validationResult;\n\n    // Handle valid / invalid / none field class\n    this._manageStatusClass();\n\n    // Add, remove, updated errors messages\n    this._manageErrorsMessages(diff);\n\n    // Triggers impl\n    this._actualizeTriggers();\n\n    // If field is not valid for the first time, bind keyup trigger to ease UX and quickly inform user\n    if ((diff.kept.length || diff.added.length) && !this._failedOnce) {\n      this._failedOnce = true;\n      this._actualizeTriggers();\n    }\n  },\n\n  // Returns an array of field's error message(s)\n  getErrorsMessages: function () {\n    // No error message, field is valid\n    if (true === this.validationResult)\n      return [];\n\n    var messages = [];\n\n    for (var i = 0; i < this.validationResult.length; i++)\n      messages.push(this.validationResult[i].errorMessage ||\n       this._getErrorMessage(this.validationResult[i].assert));\n\n    return messages;\n  },\n\n  // It's a goal of Parsley that this method is no longer required [#1073]\n  addError: function (name, {message, assert, updateClass = true} = {}) {\n    this._buildUI();\n    this._addError(name, {message, assert});\n\n    if (updateClass)\n      this._errorClass();\n  },\n\n  // It's a goal of Parsley that this method is no longer required [#1073]\n  updateError: function (name, {message, assert, updateClass = true} = {}) {\n    this._buildUI();\n    this._updateError(name, {message, assert});\n\n    if (updateClass)\n      this._errorClass();\n  },\n\n  // It's a goal of Parsley that this method is no longer required [#1073]\n  removeError: function (name, {updateClass = true} = {}) {\n    this._buildUI();\n    this._removeError(name);\n\n    // edge case possible here: remove a standard Parsley error that is still failing in this.validationResult\n    // but highly improbable cuz' manually removing a well Parsley handled error makes no sense.\n    if (updateClass)\n      this._manageStatusClass();\n  },\n\n  _manageStatusClass: function () {\n    if (this.hasConstraints() && this.needsValidation() && true === this.validationResult)\n      this._successClass();\n    else if (this.validationResult.length > 0)\n      this._errorClass();\n    else\n      this._resetClass();\n  },\n\n  _manageErrorsMessages: function (diff) {\n    if ('undefined' !== typeof this.options.errorsMessagesDisabled)\n      return;\n\n    // Case where we have errorMessage option that configure an unique field error message, regardless failing validators\n    if ('undefined' !== typeof this.options.errorMessage) {\n      if ((diff.added.length || diff.kept.length)) {\n        this._insertErrorWrapper();\n\n        if (0 === this._ui.$errorsWrapper.find('.parsley-custom-error-message').length)\n          this._ui.$errorsWrapper\n            .append(\n              $(this.options.errorTemplate)\n              .addClass('parsley-custom-error-message')\n            );\n\n        this._ui.$errorClassHandler.attr('aria-describedby', this._ui.errorsWrapperId);\n\n        return this._ui.$errorsWrapper\n          .addClass('filled')\n          .attr('aria-hidden', 'false')\n          .find('.parsley-custom-error-message')\n          .html(this.options.errorMessage);\n      }\n\n      this._ui.$errorClassHandler.removeAttr('aria-describedby');\n\n      return this._ui.$errorsWrapper\n        .removeClass('filled')\n        .attr('aria-hidden', 'true')\n        .find('.parsley-custom-error-message')\n        .remove();\n    }\n\n    // Show, hide, update failing constraints messages\n    for (var i = 0; i < diff.removed.length; i++)\n      this._removeError(diff.removed[i].assert.name);\n\n    for (i = 0; i < diff.added.length; i++)\n      this._addError(diff.added[i].assert.name, {message: diff.added[i].errorMessage, assert: diff.added[i].assert});\n\n    for (i = 0; i < diff.kept.length; i++)\n      this._updateError(diff.kept[i].assert.name, {message: diff.kept[i].errorMessage, assert: diff.kept[i].assert});\n  },\n\n\n  _addError: function (name, {message, assert}) {\n    this._insertErrorWrapper();\n    this._ui.$errorClassHandler\n      .attr('aria-describedby', this._ui.errorsWrapperId);\n    this._ui.$errorsWrapper\n      .addClass('filled')\n      .attr('aria-hidden', 'false')\n      .append(\n        $(this.options.errorTemplate)\n        .addClass('parsley-' + name)\n        .html(message || this._getErrorMessage(assert))\n      );\n  },\n\n  _updateError: function (name, {message, assert}) {\n    this._ui.$errorsWrapper\n      .addClass('filled')\n      .find('.parsley-' + name)\n      .html(message || this._getErrorMessage(assert));\n  },\n\n  _removeError: function (name) {\n    this._ui.$errorClassHandler\n      .removeAttr('aria-describedby');\n    this._ui.$errorsWrapper\n      .removeClass('filled')\n      .attr('aria-hidden', 'true')\n      .find('.parsley-' + name)\n      .remove();\n  },\n\n  _getErrorMessage: function (constraint) {\n    var customConstraintErrorMessage = constraint.name + 'Message';\n\n    if ('undefined' !== typeof this.options[customConstraintErrorMessage])\n      return window.Parsley.formatMessage(this.options[customConstraintErrorMessage], constraint.requirements);\n\n    return window.Parsley.getErrorMessage(constraint);\n  },\n\n  _buildUI: function () {\n    // UI could be already built or disabled\n    if (this._ui || false === this.options.uiEnabled)\n      return;\n\n    var _ui = {};\n\n    // Give field its Parsley id in DOM\n    this.element.setAttribute(this.options.namespace + 'id', this.__id__);\n\n    /** Generate important UI elements and store them in this **/\n    // $errorClassHandler is the $element that woul have parsley-error and parsley-success classes\n    _ui.$errorClassHandler = this._manageClassHandler();\n\n    // $errorsWrapper is a div that would contain the various field errors, it will be appended into $errorsContainer\n    _ui.errorsWrapperId = 'parsley-id-' + (this.options.multiple ? 'multiple-' + this.options.multiple : this.__id__);\n    _ui.$errorsWrapper = $(this.options.errorsWrapper).attr('id', _ui.errorsWrapperId);\n\n    // ValidationResult UI storage to detect what have changed bwt two validations, and update DOM accordingly\n    _ui.lastValidationResult = [];\n    _ui.validationInformationVisible = false;\n\n    // Store it in this for later\n    this._ui = _ui;\n  },\n\n  // Determine which element will have `parsley-error` and `parsley-success` classes\n  _manageClassHandler: function () {\n    // Class handled could also be determined by function given in Parsley options\n    if ('string' === typeof this.options.classHandler && $(this.options.classHandler).length)\n      return $(this.options.classHandler);\n\n    // Class handled could also be determined by function given in Parsley options\n    var $handlerFunction = this.options.classHandler;\n\n    // It might also be the function name of a global function\n    if ('string' === typeof this.options.classHandler && 'function' === typeof window[this.options.classHandler])\n      $handlerFunction = window[this.options.classHandler];\n\n    if ('function' === typeof $handlerFunction) {\n      var $handler = $handlerFunction.call(this, this);\n\n      // If this function returned a valid existing DOM element, go for it\n      if ('undefined' !== typeof $handler && $handler.length)\n        return $handler;\n    } else if ('object' === typeof $handlerFunction && $handlerFunction instanceof jQuery && $handlerFunction.length) {\n      return $handlerFunction;\n    } else if ($handlerFunction) {\n      Utils.warn('The class handler `' + $handlerFunction + '` does not exist in DOM nor as a global JS function');\n    }\n\n    return this._inputHolder();\n  },\n\n  _inputHolder: function() {\n    // if simple element (input, texatrea, select...) it will perfectly host the classes and precede the error container\n    if (!this.options.multiple || this.element.nodeName === 'SELECT')\n      return this.$element;\n\n    // But if multiple element (radio, checkbox), that would be their parent\n    return this.$element.parent();\n  },\n\n  _insertErrorWrapper: function () {\n    var $errorsContainer = this.options.errorsContainer;\n\n    // Nothing to do if already inserted\n    if (0 !== this._ui.$errorsWrapper.parent().length)\n      return this._ui.$errorsWrapper.parent();\n\n    if ('string' === typeof $errorsContainer) {\n      if ($($errorsContainer).length)\n        return $($errorsContainer).append(this._ui.$errorsWrapper);\n      else if ('function' === typeof window[$errorsContainer])\n        $errorsContainer = window[$errorsContainer];\n      else\n        Utils.warn('The errors container `' + $errorsContainer + '` does not exist in DOM nor as a global JS function');\n    }\n\n    if ('function' === typeof $errorsContainer)\n      $errorsContainer = $errorsContainer.call(this, this);\n\n    if ('object' === typeof $errorsContainer && $errorsContainer.length)\n      return $errorsContainer.append(this._ui.$errorsWrapper);\n\n    return this._inputHolder().after(this._ui.$errorsWrapper);\n  },\n\n  _actualizeTriggers: function () {\n    var $toBind = this._findRelated();\n    var trigger;\n\n    // Remove Parsley events already bound on this field\n    $toBind.off('.Parsley');\n    if (this._failedOnce)\n      $toBind.on(Utils.namespaceEvents(this.options.triggerAfterFailure, 'Parsley'), () => {\n        this._validateIfNeeded();\n      });\n    else if (trigger = Utils.namespaceEvents(this.options.trigger, 'Parsley')) {\n      $toBind.on(trigger, event => {\n        this._validateIfNeeded(event);\n      });\n    }\n  },\n\n  _validateIfNeeded: function (event) {\n    // For keyup, keypress, keydown, input... events that could be a little bit obstrusive\n    // do not validate if val length < min threshold on first validation. Once field have been validated once and info\n    // about success or failure have been displayed, always validate with this trigger to reflect every yalidation change.\n    if (event && /key|input/.test(event.type))\n      if (!(this._ui && this._ui.validationInformationVisible) && this.getValue().length <= this.options.validationThreshold)\n        return;\n\n    if (this.options.debounce) {\n      window.clearTimeout(this._debounced);\n      this._debounced = window.setTimeout(() => this.validate(), this.options.debounce);\n    } else\n      this.validate();\n  },\n\n  _resetUI: function () {\n    // Reset all event listeners\n    this._failedOnce = false;\n    this._actualizeTriggers();\n\n    // Nothing to do if UI never initialized for this field\n    if ('undefined' === typeof this._ui)\n      return;\n\n    // Reset all errors' li\n    this._ui.$errorsWrapper\n      .removeClass('filled')\n      .children()\n      .remove();\n\n    // Reset validation class\n    this._resetClass();\n\n    // Reset validation flags and last validation result\n    this._ui.lastValidationResult = [];\n    this._ui.validationInformationVisible = false;\n  },\n\n  _destroyUI: function () {\n    this._resetUI();\n\n    if ('undefined' !== typeof this._ui)\n      this._ui.$errorsWrapper.remove();\n\n    delete this._ui;\n  },\n\n  _successClass: function () {\n    this._ui.validationInformationVisible = true;\n    this._ui.$errorClassHandler.removeClass(this.options.errorClass).addClass(this.options.successClass);\n  },\n  _errorClass: function () {\n    this._ui.validationInformationVisible = true;\n    this._ui.$errorClassHandler.removeClass(this.options.successClass).addClass(this.options.errorClass);\n  },\n  _resetClass: function () {\n    this._ui.$errorClassHandler.removeClass(this.options.successClass).removeClass(this.options.errorClass);\n  }\n};\n\nexport default UI;\n","import $ from 'jquery';\nimport Base from './base';\nimport Utils from './utils';\n\nvar Form = function (element, domOptions, options) {\n  this.__class__ = 'Form';\n\n  this.element = element;\n  this.$element = $(element);\n  this.domOptions = domOptions;\n  this.options = options;\n  this.parent = window.Parsley;\n\n  this.fields = [];\n  this.validationResult = null;\n};\n\nvar statusMapping = {pending: null, resolved: true, rejected: false};\n\nForm.prototype = {\n  onSubmitValidate: function (event) {\n    // This is a Parsley generated submit event, do not validate, do not prevent, simply exit and keep normal behavior\n    if (true === event.parsley)\n      return;\n\n    // If we didn't come here through a submit button, use the first one in the form\n    var submitSource = this._submitSource || this.$element.find(Utils._SubmitSelector)[0];\n    this._submitSource = null;\n    this.$element.find('.parsley-synthetic-submit-button').prop('disabled', true);\n    if (submitSource && null !== submitSource.getAttribute('formnovalidate'))\n      return;\n\n    window.Parsley._remoteCache = {};\n\n    var promise = this.whenValidate({event});\n\n    if ('resolved' === promise.state() && false !== this._trigger('submit')) {\n      // All good, let event go through. We make this distinction because browsers\n      // differ in their handling of `submit` being called from inside a submit event [#1047]\n    } else {\n      // Rejected or pending: cancel this submit\n      event.stopImmediatePropagation();\n      event.preventDefault();\n      if ('pending' === promise.state())\n        promise.done(() => { this._submit(submitSource); });\n    }\n  },\n\n  onSubmitButton: function(event) {\n    this._submitSource = event.currentTarget;\n  },\n  // internal\n  // _submit submits the form, this time without going through the validations.\n  // Care must be taken to \"fake\" the actual submit button being clicked.\n  _submit: function (submitSource) {\n    if (false === this._trigger('submit'))\n      return;\n    // Add submit button's data\n    if (submitSource) {\n      var $synthetic = this.$element.find('.parsley-synthetic-submit-button').prop('disabled', false);\n      if (0 === $synthetic.length)\n        $synthetic = $('<input class=\"parsley-synthetic-submit-button\" type=\"hidden\">').appendTo(this.$element);\n      $synthetic.attr({\n        name: submitSource.getAttribute('name'),\n        value: submitSource.getAttribute('value')\n      });\n    }\n\n    this.$element.trigger(Object.assign($.Event('submit'), {parsley: true}));\n  },\n\n  // Performs validation on fields while triggering events.\n  // @returns `true` if all validations succeeds, `false`\n  // if a failure is immediately detected, or `null`\n  // if dependant on a promise.\n  // Consider using `whenValidate` instead.\n  validate: function (options) {\n    if (arguments.length >= 1 && !$.isPlainObject(options)) {\n      Utils.warnOnce('Calling validate on a parsley form without passing arguments as an object is deprecated.');\n      var [group, force, event] = arguments;\n      options = {group, force, event};\n    }\n    return statusMapping[ this.whenValidate(options).state() ];\n  },\n\n  whenValidate: function ({group, force, event} = {}) {\n    this.submitEvent = event;\n    if (event) {\n      this.submitEvent = Object.assign({}, event, {preventDefault: () => {\n        Utils.warnOnce(\"Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult = false`\");\n        this.validationResult = false;\n      }});\n    }\n    this.validationResult = true;\n\n    // fire validate event to eventually modify things before every validation\n    this._trigger('validate');\n\n    // Refresh form DOM options and form's fields that could have changed\n    this._refreshFields();\n\n    var promises = this._withoutReactualizingFormOptions(() => {\n      return $.map(this.fields, field => field.whenValidate({force, group}));\n    });\n\n    return Utils.all(promises)\n      .done(  () => { this._trigger('success'); })\n      .fail(  () => {\n        this.validationResult = false;\n        this.focus();\n        this._trigger('error');\n      })\n      .always(() => { this._trigger('validated'); })\n      .pipe(...this._pipeAccordingToValidationResult());\n  },\n\n  // Iterate over refreshed fields, and stop on first failure.\n  // Returns `true` if all fields are valid, `false` if a failure is detected\n  // or `null` if the result depends on an unresolved promise.\n  // Prefer using `whenValid` instead.\n  isValid: function (options) {\n    if (arguments.length >= 1 && !$.isPlainObject(options)) {\n      Utils.warnOnce('Calling isValid on a parsley form without passing arguments as an object is deprecated.');\n      var [group, force] = arguments;\n      options = {group, force};\n    }\n    return statusMapping[ this.whenValid(options).state() ];\n  },\n\n  // Iterate over refreshed fields and validate them.\n  // Returns a promise.\n  // A validation that immediately fails will interrupt the validations.\n  whenValid: function ({group, force} = {}) {\n    this._refreshFields();\n\n    var promises = this._withoutReactualizingFormOptions(() => {\n      return $.map(this.fields, field => field.whenValid({group, force}));\n    });\n    return Utils.all(promises);\n  },\n\n  refresh: function() {\n    this._refreshFields();\n    return this;\n  },\n\n  // Reset UI\n  reset: function () {\n    // Form case: emit a reset event for each field\n    for (var i = 0; i < this.fields.length; i++)\n      this.fields[i].reset();\n\n    this._trigger('reset');\n  },\n\n  // Destroy Parsley instance (+ UI)\n  destroy: function () {\n    // Field case: emit destroy event to clean UI and then destroy stored instance\n    this._destroyUI();\n\n    // Form case: destroy all its fields and then destroy stored instance\n    for (var i = 0; i < this.fields.length; i++)\n      this.fields[i].destroy();\n\n    this.$element.removeData('Parsley');\n    this._trigger('destroy');\n  },\n\n  _refreshFields: function () {\n    return this.actualizeOptions()._bindFields();\n  },\n\n  _bindFields: function () {\n    var oldFields = this.fields;\n\n    this.fields = [];\n    this.fieldsMappedById = {};\n\n    this._withoutReactualizingFormOptions(() => {\n      this.$element\n      .find(this.options.inputs)\n      .not(this.options.excluded)\n      .not(`[${this.options.namespace}excluded=true]`)\n      .each((_, element) => {\n        var fieldInstance = new window.Parsley.Factory(element, {}, this);\n\n        // Only add valid and not excluded `Field` and `FieldMultiple` children\n        if ('Field' === fieldInstance.__class__ || 'FieldMultiple' === fieldInstance.__class__) {\n          let uniqueId = fieldInstance.__class__ + '-' + fieldInstance.__id__;\n          if ('undefined' === typeof this.fieldsMappedById[uniqueId]) {\n            this.fieldsMappedById[uniqueId] = fieldInstance;\n            this.fields.push(fieldInstance);\n          }\n        }\n      });\n\n      $.each(Utils.difference(oldFields, this.fields), (_, field) => {\n        field.reset();\n      });\n    });\n    return this;\n  },\n\n  // Internal only.\n  // Looping on a form's fields to do validation or similar\n  // will trigger reactualizing options on all of them, which\n  // in turn will reactualize the form's options.\n  // To avoid calling actualizeOptions so many times on the form\n  // for nothing, _withoutReactualizingFormOptions temporarily disables\n  // the method actualizeOptions on this form while `fn` is called.\n  _withoutReactualizingFormOptions: function (fn) {\n    var oldActualizeOptions = this.actualizeOptions;\n    this.actualizeOptions = function () { return this; };\n    var result = fn();\n    this.actualizeOptions = oldActualizeOptions;\n    return result;\n  },\n\n  // Internal only.\n  // Shortcut to trigger an event\n  // Returns true iff event is not interrupted and default not prevented.\n  _trigger: function (eventName) {\n    return this.trigger('form:' + eventName);\n  }\n\n};\n\nexport default Form;\n","import Utils from './utils';\nimport Validator from './validator';\n\nconst Constraint = function(parsleyField, name, requirements, priority, isDomConstraint) {\n  const validatorSpec = window.Parsley._validatorRegistry.validators[name];\n  const validator = new Validator(validatorSpec);\n  priority = priority || parsleyField.options[name + 'Priority'] || validator.priority;\n  isDomConstraint = (true === isDomConstraint);\n\n  Object.assign(this, {\n    validator,\n    name,\n    requirements,\n    priority,\n    isDomConstraint\n  });\n  this._parseRequirements(parsleyField.options);\n};\n\nconst capitalize = function(str) {\n  const cap = str[0].toUpperCase();\n  return cap + str.slice(1);\n};\n\nConstraint.prototype = {\n  validate: function(value, instance) {\n    return this.validator.validate(value, ...this.requirementList, instance);\n  },\n\n  _parseRequirements: function(options) {\n    this.requirementList = this.validator.parseRequirements(this.requirements,\n      key => options[this.name + capitalize(key)]\n    );\n  }\n};\n\nexport default Constraint;\n","import $ from 'jquery';\nimport Constraint from './constraint';\nimport UI from './ui';\nimport Utils from './utils';\n\nvar Field = function (field, domOptions, options, parsleyFormInstance) {\n  this.__class__ = 'Field';\n\n  this.element = field;\n  this.$element = $(field);\n\n  // Set parent if we have one\n  if ('undefined' !== typeof parsleyFormInstance) {\n    this.parent = parsleyFormInstance;\n  }\n\n  this.options = options;\n  this.domOptions = domOptions;\n\n  // Initialize some properties\n  this.constraints = [];\n  this.constraintsByName = {};\n  this.validationResult = true;\n\n  // Bind constraints\n  this._bindConstraints();\n};\n\nvar statusMapping = {pending: null, resolved: true, rejected: false};\n\nField.prototype = {\n  // # Public API\n  // Validate field and trigger some events for mainly `UI`\n  // @returns `true`, an array of the validators that failed, or\n  // `null` if validation is not finished. Prefer using whenValidate\n  validate: function (options) {\n    if (arguments.length >= 1 && !$.isPlainObject(options)) {\n      Utils.warnOnce('Calling validate on a parsley field without passing arguments as an object is deprecated.');\n      options = {options};\n    }\n    var promise = this.whenValidate(options);\n    if (!promise)  // If excluded with `group` option\n      return true;\n    switch (promise.state()) {\n      case 'pending': return null;\n      case 'resolved': return true;\n      case 'rejected': return this.validationResult;\n    }\n  },\n\n  // Validate field and trigger some events for mainly `UI`\n  // @returns a promise that succeeds only when all validations do\n  // or `undefined` if field is not in the given `group`.\n  whenValidate: function ({force, group} =  {}) {\n    // do not validate a field if not the same as given validation group\n    this.refresh();\n    if (group && !this._isInGroup(group))\n      return;\n\n    this.value = this.getValue();\n\n    // Field Validate event. `this.value` could be altered for custom needs\n    this._trigger('validate');\n\n    return this.whenValid({force, value: this.value, _refreshed: true})\n      .always(() => { this._reflowUI(); })\n      .done(() =>   { this._trigger('success'); })\n      .fail(() =>   { this._trigger('error'); })\n      .always(() => { this._trigger('validated'); })\n      .pipe(...this._pipeAccordingToValidationResult());\n  },\n\n  hasConstraints: function () {\n    return 0 !== this.constraints.length;\n  },\n\n  // An empty optional field does not need validation\n  needsValidation: function (value) {\n    if ('undefined' === typeof value)\n      value = this.getValue();\n\n    // If a field is empty and not required, it is valid\n    // Except if `data-parsley-validate-if-empty` explicitely added, useful for some custom validators\n    if (!value.length && !this._isRequired() && 'undefined' === typeof this.options.validateIfEmpty)\n      return false;\n\n    return true;\n  },\n\n  _isInGroup: function (group) {\n    if (Array.isArray(this.options.group))\n      return -1 !== $.inArray(group, this.options.group);\n    return this.options.group === group;\n  },\n\n  // Just validate field. Do not trigger any event.\n  // Returns `true` iff all constraints pass, `false` if there are failures,\n  // or `null` if the result can not be determined yet (depends on a promise)\n  // See also `whenValid`.\n  isValid: function (options) {\n    if (arguments.length >= 1 && !$.isPlainObject(options)) {\n      Utils.warnOnce('Calling isValid on a parsley field without passing arguments as an object is deprecated.');\n      var [force, value] = arguments;\n      options = {force, value};\n    }\n    var promise = this.whenValid(options);\n    if (!promise) // Excluded via `group`\n      return true;\n    return statusMapping[promise.state()];\n  },\n\n  // Just validate field. Do not trigger any event.\n  // @returns a promise that succeeds only when all validations do\n  // or `undefined` if the field is not in the given `group`.\n  // The argument `force` will force validation of empty fields.\n  // If a `value` is given, it will be validated instead of the value of the input.\n  whenValid: function ({force = false, value, group, _refreshed} = {}) {\n    // Recompute options and rebind constraints to have latest changes\n    if (!_refreshed)\n      this.refresh();\n    // do not validate a field if not the same as given validation group\n    if (group && !this._isInGroup(group))\n      return;\n\n    this.validationResult = true;\n\n    // A field without constraint is valid\n    if (!this.hasConstraints())\n      return $.when();\n\n    // Value could be passed as argument, needed to add more power to 'field:validate'\n    if ('undefined' === typeof value || null === value)\n      value = this.getValue();\n\n    if (!this.needsValidation(value) && true !== force)\n      return $.when();\n\n    var groupedConstraints = this._getGroupedConstraints();\n    var promises = [];\n    $.each(groupedConstraints, (_, constraints) => {\n      // Process one group of constraints at a time, we validate the constraints\n      // and combine the promises together.\n      var promise = Utils.all(\n        $.map(constraints, constraint => this._validateConstraint(value, constraint))\n      );\n      promises.push(promise);\n      if (promise.state() === 'rejected')\n        return false; // Interrupt processing if a group has already failed\n    });\n    return Utils.all(promises);\n  },\n\n  // @returns a promise\n  _validateConstraint: function(value, constraint) {\n    var result = constraint.validate(value, this);\n    // Map false to a failed promise\n    if (false === result)\n      result = $.Deferred().reject();\n    // Make sure we return a promise and that we record failures\n    return Utils.all([result]).fail(errorMessage => {\n      if (!(this.validationResult instanceof Array))\n        this.validationResult = [];\n      this.validationResult.push({\n        assert: constraint,\n        errorMessage: 'string' === typeof errorMessage && errorMessage\n      });\n    });\n  },\n\n  // @returns Parsley field computed value that could be overrided or configured in DOM\n  getValue: function () {\n    var value;\n\n    // Value could be overriden in DOM or with explicit options\n    if ('function' === typeof this.options.value)\n      value = this.options.value(this);\n    else if ('undefined' !== typeof this.options.value)\n      value = this.options.value;\n    else\n      value = this.$element.val();\n\n    // Handle wrong DOM or configurations\n    if ('undefined' === typeof value || null === value)\n      return '';\n\n    return this._handleWhitespace(value);\n  },\n\n  // Reset UI\n  reset: function () {\n    this._resetUI();\n    return this._trigger('reset');\n  },\n\n  // Destroy Parsley instance (+ UI)\n  destroy: function () {\n    // Field case: emit destroy event to clean UI and then destroy stored instance\n    this._destroyUI();\n    this.$element.removeData('Parsley');\n    this.$element.removeData('FieldMultiple');\n    this._trigger('destroy');\n  },\n\n  // Actualize options and rebind constraints\n  refresh: function () {\n    this._refreshConstraints();\n    return this;\n  },\n\n  _refreshConstraints: function () {\n    return this.actualizeOptions()._bindConstraints();\n  },\n\n  refreshConstraints: function() {\n    Utils.warnOnce(\"Parsley's refreshConstraints is deprecated. Please use refresh\");\n    return this.refresh();\n  },\n\n  /**\n  * Add a new constraint to a field\n  *\n  * @param {String}   name\n  * @param {Mixed}    requirements      optional\n  * @param {Number}   priority          optional\n  * @param {Boolean}  isDomConstraint   optional\n  */\n  addConstraint: function (name, requirements, priority, isDomConstraint) {\n\n    if (window.Parsley._validatorRegistry.validators[name]) {\n      var constraint = new Constraint(this, name, requirements, priority, isDomConstraint);\n\n      // if constraint already exist, delete it and push new version\n      if ('undefined' !== this.constraintsByName[constraint.name])\n        this.removeConstraint(constraint.name);\n\n      this.constraints.push(constraint);\n      this.constraintsByName[constraint.name] = constraint;\n    }\n\n    return this;\n  },\n\n  // Remove a constraint\n  removeConstraint: function (name) {\n    for (var i = 0; i < this.constraints.length; i++)\n      if (name === this.constraints[i].name) {\n        this.constraints.splice(i, 1);\n        break;\n      }\n    delete this.constraintsByName[name];\n    return this;\n  },\n\n  // Update a constraint (Remove + re-add)\n  updateConstraint: function (name, parameters, priority) {\n    return this.removeConstraint(name)\n      .addConstraint(name, parameters, priority);\n  },\n\n  // # Internals\n\n  // Internal only.\n  // Bind constraints from config + options + DOM\n  _bindConstraints: function () {\n    var constraints = [];\n    var constraintsByName = {};\n\n    // clean all existing DOM constraints to only keep javascript user constraints\n    for (var i = 0; i < this.constraints.length; i++)\n      if (false === this.constraints[i].isDomConstraint) {\n        constraints.push(this.constraints[i]);\n        constraintsByName[this.constraints[i].name] = this.constraints[i];\n      }\n\n    this.constraints = constraints;\n    this.constraintsByName = constraintsByName;\n\n    // then re-add Parsley DOM-API constraints\n    for (var name in this.options)\n      this.addConstraint(name, this.options[name], undefined, true);\n\n    // finally, bind special HTML5 constraints\n    return this._bindHtml5Constraints();\n  },\n\n  // Internal only.\n  // Bind specific HTML5 constraints to be HTML5 compliant\n  _bindHtml5Constraints: function () {\n    // html5 required\n    if (null !== this.element.getAttribute('required'))\n      this.addConstraint('required', true, undefined, true);\n\n    // html5 pattern\n    if (null !== this.element.getAttribute('pattern'))\n      this.addConstraint('pattern', this.element.getAttribute('pattern'), undefined, true);\n\n    // range\n    let min = this.element.getAttribute('min');\n    let max = this.element.getAttribute('max');\n    if (null !== min && null !== max)\n      this.addConstraint('range', [min, max], undefined, true);\n\n    // HTML5 min\n    else if (null !== min)\n      this.addConstraint('min', min, undefined, true);\n\n    // HTML5 max\n    else if (null !== max)\n      this.addConstraint('max', max, undefined, true);\n\n\n    // length\n    if (null !== this.element.getAttribute('minlength') && null !== this.element.getAttribute('maxlength'))\n      this.addConstraint('length', [this.element.getAttribute('minlength'), this.element.getAttribute('maxlength')], undefined, true);\n\n    // HTML5 minlength\n    else if (null !== this.element.getAttribute('minlength'))\n      this.addConstraint('minlength', this.element.getAttribute('minlength'), undefined, true);\n\n    // HTML5 maxlength\n    else if (null !== this.element.getAttribute('maxlength'))\n      this.addConstraint('maxlength', this.element.getAttribute('maxlength'), undefined, true);\n\n\n    // html5 types\n    var type = Utils.getType(this.element);\n\n    // Small special case here for HTML5 number: integer validator if step attribute is undefined or an integer value, number otherwise\n    if ('number' === type) {\n      return this.addConstraint('type', ['number', {\n        step: this.element.getAttribute('step') || '1',\n        base: min || this.element.getAttribute('value')\n      }], undefined, true);\n    // Regular other HTML5 supported types\n    } else if (/^(email|url|range|date)$/i.test(type)) {\n      return this.addConstraint('type', type, undefined, true);\n    }\n    return this;\n  },\n\n  // Internal only.\n  // Field is required if have required constraint without `false` value\n  _isRequired: function () {\n    if ('undefined' === typeof this.constraintsByName.required)\n      return false;\n\n    return false !== this.constraintsByName.required.requirements;\n  },\n\n  // Internal only.\n  // Shortcut to trigger an event\n  _trigger: function (eventName) {\n    return this.trigger('field:' + eventName);\n  },\n\n  // Internal only\n  // Handles whitespace in a value\n  // Use `data-parsley-whitespace=\"squish\"` to auto squish input value\n  // Use `data-parsley-whitespace=\"trim\"` to auto trim input value\n  _handleWhitespace: function (value) {\n    if (true === this.options.trimValue)\n      Utils.warnOnce('data-parsley-trim-value=\"true\" is deprecated, please use data-parsley-whitespace=\"trim\"');\n\n    if ('squish' === this.options.whitespace)\n      value = value.replace(/\\s{2,}/g, ' ');\n\n    if (('trim' === this.options.whitespace) || ('squish' === this.options.whitespace) || (true === this.options.trimValue))\n      value = Utils.trimString(value);\n\n    return value;\n  },\n\n  _isDateInput: function() {\n    var c = this.constraintsByName.type;\n    return c && c.requirements === 'date';\n  },\n\n  // Internal only.\n  // Returns the constraints, grouped by descending priority.\n  // The result is thus an array of arrays of constraints.\n  _getGroupedConstraints: function () {\n    if (false === this.options.priorityEnabled)\n      return [this.constraints];\n\n    var groupedConstraints = [];\n    var index = {};\n\n    // Create array unique of priorities\n    for (var i = 0; i < this.constraints.length; i++) {\n      var p = this.constraints[i].priority;\n      if (!index[p])\n        groupedConstraints.push(index[p] = []);\n      index[p].push(this.constraints[i]);\n    }\n    // Sort them by priority DESC\n    groupedConstraints.sort(function (a, b) { return b[0].priority - a[0].priority; });\n\n    return groupedConstraints;\n  }\n\n};\n\nexport default Field;\n","import $ from 'jquery';\nimport Utils from './utils';\n\nvar Multiple = function () {\n  this.__class__ = 'FieldMultiple';\n};\n\nMultiple.prototype = {\n  // Add new `$element` sibling for multiple field\n  addElement: function ($element) {\n    this.$elements.push($element);\n\n    return this;\n  },\n\n  // See `Field._refreshConstraints()`\n  _refreshConstraints: function () {\n    var fieldConstraints;\n\n    this.constraints = [];\n\n    // Select multiple special treatment\n    if (this.element.nodeName === 'SELECT') {\n      this.actualizeOptions()._bindConstraints();\n\n      return this;\n    }\n\n    // Gather all constraints for each input in the multiple group\n    for (var i = 0; i < this.$elements.length; i++) {\n\n      // Check if element have not been dynamically removed since last binding\n      if (!$('html').has(this.$elements[i]).length) {\n        this.$elements.splice(i, 1);\n        continue;\n      }\n\n      fieldConstraints = this.$elements[i].data('FieldMultiple')._refreshConstraints().constraints;\n\n      for (var j = 0; j < fieldConstraints.length; j++)\n        this.addConstraint(fieldConstraints[j].name, fieldConstraints[j].requirements, fieldConstraints[j].priority, fieldConstraints[j].isDomConstraint);\n    }\n\n    return this;\n  },\n\n  // See `Field.getValue()`\n  getValue: function () {\n    // Value could be overriden in DOM\n    if ('function' === typeof this.options.value)\n      return this.options.value(this);\n    else if ('undefined' !== typeof this.options.value)\n      return this.options.value;\n\n    // Radio input case\n    if (this.element.nodeName === 'INPUT') {\n      var type = Utils.getType(this.element);\n      if (type === 'radio')\n        return this._findRelated().filter(':checked').val() || '';\n\n      // checkbox input case\n      if (type === 'checkbox') {\n        var values = [];\n\n        this._findRelated().filter(':checked').each(function () {\n          values.push($(this).val());\n        });\n\n        return values;\n      }\n    }\n\n    // Select multiple case\n    if (this.element.nodeName === 'SELECT' && null === this.$element.val())\n      return [];\n\n    // Default case that should never happen\n    return this.$element.val();\n  },\n\n  _init: function () {\n    this.$elements = [this.$element];\n\n    return this;\n  }\n};\n\nexport default Multiple;\n","import $ from 'jquery';\nimport Utils from './utils';\nimport Base from './base';\nimport Form from './form';\nimport Field from './field';\nimport Multiple from './multiple';\n\nvar Factory = function (element, options, parsleyFormInstance) {\n  this.element = element;\n  this.$element = $(element);\n\n  // If the element has already been bound, returns its saved Parsley instance\n  var savedparsleyFormInstance = this.$element.data('Parsley');\n  if (savedparsleyFormInstance) {\n\n    // If the saved instance has been bound without a Form parent and there is one given in this call, add it\n    if ('undefined' !== typeof parsleyFormInstance && savedparsleyFormInstance.parent === window.Parsley) {\n      savedparsleyFormInstance.parent = parsleyFormInstance;\n      savedparsleyFormInstance._resetOptions(savedparsleyFormInstance.options);\n    }\n\n    if ('object' === typeof options) {\n      Object.assign(savedparsleyFormInstance.options, options);\n    }\n\n    return savedparsleyFormInstance;\n  }\n\n  // Parsley must be instantiated with a DOM element or jQuery $element\n  if (!this.$element.length)\n    throw new Error('You must bind Parsley on an existing element.');\n\n  if ('undefined' !== typeof parsleyFormInstance && 'Form' !== parsleyFormInstance.__class__)\n    throw new Error('Parent instance must be a Form instance');\n\n  this.parent = parsleyFormInstance || window.Parsley;\n  return this.init(options);\n};\n\nFactory.prototype = {\n  init: function (options) {\n    this.__class__ = 'Parsley';\n    this.__version__ = 'VERSION';\n    this.__id__ = Utils.generateID();\n\n    // Pre-compute options\n    this._resetOptions(options);\n\n    // A Form instance is obviously a `<form>` element but also every node that is not an input and has the `data-parsley-validate` attribute\n    if (this.element.nodeName === 'FORM' || (Utils.checkAttr(this.element, this.options.namespace, 'validate') && !this.$element.is(this.options.inputs)))\n      return this.bind('parsleyForm');\n\n    // Every other element is bound as a `Field` or `FieldMultiple`\n    return this.isMultiple() ? this.handleMultiple() : this.bind('parsleyField');\n  },\n\n  isMultiple: function () {\n    var type = Utils.getType(this.element);\n    return ((type === 'radio' || type === 'checkbox') ||\n      (this.element.nodeName === 'SELECT' && null !== this.element.getAttribute('multiple')));\n  },\n\n  // Multiples fields are a real nightmare :(\n  // Maybe some refactoring would be appreciated here...\n  handleMultiple: function () {\n    var name;\n    var multiple;\n    var parsleyMultipleInstance;\n\n    // Handle multiple name\n    this.options.multiple = this.options.multiple ||\n      (name = this.element.getAttribute('name')) ||\n      this.element.getAttribute('id');\n\n    // Special select multiple input\n    if (this.element.nodeName === 'SELECT' && null !== this.element.getAttribute('multiple')) {\n      this.options.multiple = this.options.multiple || this.__id__;\n      return this.bind('parsleyFieldMultiple');\n\n    // Else for radio / checkboxes, we need a `name` or `data-parsley-multiple` to properly bind it\n    } else if (!this.options.multiple) {\n      Utils.warn('To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.', this.$element);\n      return this;\n    }\n\n    // Remove special chars\n    this.options.multiple = this.options.multiple.replace(/(:|\\.|\\[|\\]|\\{|\\}|\\$)/g, '');\n\n    // Add proper `data-parsley-multiple` to siblings if we have a valid multiple name\n    if (name) {\n      $('input[name=\"' + name + '\"]').each((i, input) => {\n        var type = Utils.getType(input);\n        if ((type === 'radio' || type === 'checkbox'))\n          input.setAttribute(this.options.namespace + 'multiple', this.options.multiple);\n      });\n    }\n\n    // Check here if we don't already have a related multiple instance saved\n    var $previouslyRelated = this._findRelated();\n    for (var i = 0; i < $previouslyRelated.length; i++) {\n      parsleyMultipleInstance = $($previouslyRelated.get(i)).data('Parsley');\n      if ('undefined' !== typeof parsleyMultipleInstance) {\n\n        if (!this.$element.data('FieldMultiple')) {\n          parsleyMultipleInstance.addElement(this.$element);\n        }\n\n        break;\n      }\n    }\n\n    // Create a secret Field instance for every multiple field. It will be stored in `data('FieldMultiple')`\n    // And will be useful later to access classic `Field` stuff while being in a `FieldMultiple` instance\n    this.bind('parsleyField', true);\n\n    return parsleyMultipleInstance || this.bind('parsleyFieldMultiple');\n  },\n\n  // Return proper `Form`, `Field` or `FieldMultiple`\n  bind: function (type, doNotStore) {\n    var parsleyInstance;\n\n    switch (type) {\n      case 'parsleyForm':\n        parsleyInstance = $.extend(\n          new Form(this.element, this.domOptions, this.options),\n          new Base(),\n          window.ParsleyExtend\n        )._bindFields();\n        break;\n      case 'parsleyField':\n        parsleyInstance = $.extend(\n          new Field(this.element, this.domOptions, this.options, this.parent),\n          new Base(),\n          window.ParsleyExtend\n        );\n        break;\n      case 'parsleyFieldMultiple':\n        parsleyInstance = $.extend(\n          new Field(this.element, this.domOptions, this.options, this.parent),\n          new Multiple(),\n          new Base(),\n          window.ParsleyExtend\n        )._init();\n        break;\n      default:\n        throw new Error(type + 'is not a supported Parsley type');\n    }\n\n    if (this.options.multiple)\n      Utils.setAttr(this.element, this.options.namespace, 'multiple', this.options.multiple);\n\n    if ('undefined' !== typeof doNotStore) {\n      this.$element.data('FieldMultiple', parsleyInstance);\n\n      return parsleyInstance;\n    }\n\n    // Store the freshly bound instance in a DOM element for later access using jQuery `data()`\n    this.$element.data('Parsley', parsleyInstance);\n\n    // Tell the world we have a new Form or Field instance!\n    parsleyInstance._actualizeTriggers();\n    parsleyInstance._trigger('init');\n\n    return parsleyInstance;\n  }\n};\n\nexport default Factory;\n","import $ from 'jquery';\nimport Utils from './utils';\nimport Defaults from './defaults';\nimport Base from './base';\nimport ValidatorRegistry from './validator_registry';\nimport UI from './ui';\nimport Form from './form';\nimport Field from './field';\nimport Multiple from './multiple';\nimport Factory from './factory';\n\nvar vernums = $.fn.jquery.split('.');\nif (parseInt(vernums[0]) <= 1 && parseInt(vernums[1]) < 8) {\n  throw \"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.\";\n}\nif (!vernums.forEach) {\n  Utils.warn('Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim');\n}\n// Inherit `on`, `off` & `trigger` to Parsley:\nvar Parsley = Object.assign(new Base(), {\n    element: document,\n    $element: $(document),\n    actualizeOptions: null,\n    _resetOptions: null,\n    Factory: Factory,\n    version: 'VERSION'\n  });\n\n// Supplement Field and Form with Base\n// This way, the constructors will have access to those methods\nObject.assign(Field.prototype, UI.Field, Base.prototype);\nObject.assign(Form.prototype, UI.Form, Base.prototype);\n// Inherit actualizeOptions and _resetOptions:\nObject.assign(Factory.prototype, Base.prototype);\n\n// ### jQuery API\n// `$('.elem').parsley(options)` or `$('.elem').psly(options)`\n$.fn.parsley = $.fn.psly = function (options) {\n  if (this.length > 1) {\n    var instances = [];\n\n    this.each(function () {\n      instances.push($(this).parsley(options));\n    });\n\n    return instances;\n  }\n\n  // Return undefined if applied to non existing DOM element\n  if (this.length == 0) {\n    return;\n  }\n\n  return new Factory(this[0], options);\n};\n\n// ### Field and Form extension\n// Ensure the extension is now defined if it wasn't previously\nif ('undefined' === typeof window.ParsleyExtend)\n  window.ParsleyExtend = {};\n\n// ### Parsley config\n// Inherit from ParsleyDefault, and copy over any existing values\nParsley.options = Object.assign(Utils.objectCreate(Defaults), window.ParsleyConfig);\nwindow.ParsleyConfig = Parsley.options; // Old way of accessing global options\n\n// ### Globals\nwindow.Parsley = window.psly = Parsley;\nParsley.Utils = Utils;\nwindow.ParsleyUtils = {};\n$.each(Utils, (key, value) => {\n  if ('function' === typeof value) {\n    window.ParsleyUtils[key] = (...args) => {\n      Utils.warnOnce('Accessing `window.ParsleyUtils` is deprecated. Use `window.Parsley.Utils` instead.');\n      return Utils[key](...args);\n    };\n  }\n});\n\n// ### Define methods that forward to the registry, and deprecate all access except through window.Parsley\nvar registry = window.Parsley._validatorRegistry = new ValidatorRegistry(window.ParsleyConfig.validators, window.ParsleyConfig.i18n);\nwindow.ParsleyValidator = {};\n$.each('setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateValidator removeValidator hasValidator'.split(' '), function (i, method) {\n  window.Parsley[method] = (...args) => registry[method](...args);\n  window.ParsleyValidator[method] = function () {\n    Utils.warnOnce(`Accessing the method '${method}' through Validator is deprecated. Simply call 'window.Parsley.${method}(...)'`);\n    return window.Parsley[method](...arguments);\n  };\n});\n\n// ### UI\n// Deprecated global object\nwindow.Parsley.UI = UI;\nwindow.ParsleyUI = {\n  removeError: function (instance, name, doNotUpdateClass) {\n    var updateClass = true !== doNotUpdateClass;\n    Utils.warnOnce(`Accessing UI is deprecated. Call 'removeError' on the instance directly. Please comment in issue 1073 as to your need to call this method.`);\n    return instance.removeError(name, {updateClass});\n  },\n  getErrorsMessages: function (instance) {\n    Utils.warnOnce(`Accessing UI is deprecated. Call 'getErrorsMessages' on the instance directly.`);\n    return instance.getErrorsMessages();\n  }\n};\n$.each('addError updateError'.split(' '), function (i, method) {\n  window.ParsleyUI[method] = function (instance, name, message, assert, doNotUpdateClass) {\n    var updateClass = true !== doNotUpdateClass;\n    Utils.warnOnce(`Accessing UI is deprecated. Call '${method}' on the instance directly. Please comment in issue 1073 as to your need to call this method.`);\n    return instance[method](name, {message, assert, updateClass});\n  };\n});\n\n// ### PARSLEY auto-binding\n// Prevent it by setting `ParsleyConfig.autoBind` to `false`\nif (false !== window.ParsleyConfig.autoBind) {\n  $(function () {\n    // Works only on `data-parsley-validate`.\n    if ($('[data-parsley-validate]').length)\n      $('[data-parsley-validate]').parsley();\n  });\n}\n\nexport default Parsley;\n","import $ from 'jquery';\nimport Field from './field';\nimport Form from './form';\nimport Utils from './utils';\n\nvar o = $({});\nvar deprecated = function () {\n  Utils.warnOnce(\"Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley\");\n};\n\n// Returns an event handler that calls `fn` with the arguments it expects\nfunction adapt(fn, context) {\n  // Store to allow unbinding\n  if (!fn.parsleyAdaptedCallback) {\n    fn.parsleyAdaptedCallback = function () {\n      var args = Array.prototype.slice.call(arguments, 0);\n      args.unshift(this);\n      fn.apply(context || o, args);\n    };\n  }\n  return fn.parsleyAdaptedCallback;\n}\n\nvar eventPrefix = 'parsley:';\n// Converts 'parsley:form:validate' into 'form:validate'\nfunction eventName(name) {\n  if (name.lastIndexOf(eventPrefix, 0) === 0)\n    return name.substr(eventPrefix.length);\n  return name;\n}\n\n// $.listen is deprecated. Use Parsley.on instead.\n$.listen = function (name, callback) {\n  var context;\n  deprecated();\n  if ('object' === typeof arguments[1] && 'function' === typeof arguments[2]) {\n    context = arguments[1];\n    callback = arguments[2];\n  }\n\n  if ('function' !== typeof callback)\n    throw new Error('Wrong parameters');\n\n  window.Parsley.on(eventName(name), adapt(callback, context));\n};\n\n$.listenTo = function (instance, name, fn) {\n  deprecated();\n  if (!(instance instanceof Field) && !(instance instanceof Form))\n    throw new Error('Must give Parsley instance');\n\n  if ('string' !== typeof name || 'function' !== typeof fn)\n    throw new Error('Wrong parameters');\n\n  instance.on(eventName(name), adapt(fn));\n};\n\n$.unsubscribe = function (name, fn) {\n  deprecated();\n  if ('string' !== typeof name || 'function' !== typeof fn)\n    throw new Error('Wrong arguments');\n  window.Parsley.off(eventName(name), fn.parsleyAdaptedCallback);\n};\n\n$.unsubscribeTo = function (instance, name) {\n  deprecated();\n  if (!(instance instanceof Field) && !(instance instanceof Form))\n    throw new Error('Must give Parsley instance');\n  instance.off(eventName(name));\n};\n\n$.unsubscribeAll = function (name) {\n  deprecated();\n  window.Parsley.off(eventName(name));\n  $('form,input,textarea,select').each(function () {\n    var instance = $(this).data('Parsley');\n    if (instance) {\n      instance.off(eventName(name));\n    }\n  });\n};\n\n// $.emit is deprecated. Use jQuery events instead.\n$.emit = function (name, instance) {\n  deprecated();\n  var instanceGiven = (instance instanceof Field) || (instance instanceof Form);\n  var args = Array.prototype.slice.call(arguments, instanceGiven ? 2 : 1);\n  args.unshift(eventName(name));\n  if (!instanceGiven) {\n    instance = window.Parsley;\n  }\n  instance.trigger(...args);\n};\n\nexport default {};\n","import $ from 'jquery';\nimport Utils from './utils';\nimport Base from './base';\n\nimport Parsley from './main';\n\n$.extend(true, Parsley, {\n  asyncValidators: {\n    'default': {\n      fn: function (xhr) {\n        // By default, only status 2xx are deemed successful.\n        // Note: we use status instead of state() because responses with status 200\n        // but invalid messages (e.g. an empty body for content type set to JSON) will\n        // result in state() === 'rejected'.\n        return xhr.status >= 200 && xhr.status < 300;\n      },\n      url: false\n    },\n    reverse: {\n      fn: function (xhr) {\n        // If reverse option is set, a failing ajax request is considered successful\n        return xhr.status < 200 || xhr.status >= 300;\n      },\n      url: false\n    }\n  },\n\n  addAsyncValidator: function (name, fn, url, options) {\n    Parsley.asyncValidators[name] = {\n      fn: fn,\n      url: url || false,\n      options: options || {}\n    };\n\n    return this;\n  }\n\n});\n\nParsley.addValidator('remote', {\n  requirementType: {\n    '': 'string',\n    'validator': 'string',\n    'reverse': 'boolean',\n    'options': 'object'\n  },\n\n  validateString: function (value, url, options, instance) {\n    var data = {};\n    var ajaxOptions;\n    var csr;\n    var validator = options.validator || (true === options.reverse ? 'reverse' : 'default');\n\n    if ('undefined' === typeof Parsley.asyncValidators[validator])\n      throw new Error('Calling an undefined async validator: `' + validator + '`');\n\n    url = Parsley.asyncValidators[validator].url || url;\n\n    // Fill current value\n    if (url.indexOf('{value}') > -1) {\n      url = url.replace('{value}', encodeURIComponent(value));\n    } else {\n      data[instance.element.getAttribute('name') || instance.element.getAttribute('id')] = value;\n    }\n\n    // Merge options passed in from the function with the ones in the attribute\n    var remoteOptions = $.extend(true, options.options || {} , Parsley.asyncValidators[validator].options);\n\n    // All `$.ajax(options)` could be overridden or extended directly from DOM in `data-parsley-remote-options`\n    ajaxOptions = $.extend(true, {}, {\n      url: url,\n      data: data,\n      type: 'GET'\n    }, remoteOptions);\n\n    // Generate store key based on ajax options\n    instance.trigger('field:ajaxoptions', instance, ajaxOptions);\n\n    csr = $.param(ajaxOptions);\n\n    // Initialise querry cache\n    if ('undefined' === typeof Parsley._remoteCache)\n      Parsley._remoteCache = {};\n\n    // Try to retrieve stored xhr\n    var xhr = Parsley._remoteCache[csr] = Parsley._remoteCache[csr] || $.ajax(ajaxOptions);\n\n    var handleXhr = function () {\n      var result = Parsley.asyncValidators[validator].fn.call(instance, xhr, url, options);\n      if (!result) // Map falsy results to rejected promise\n        result = $.Deferred().reject();\n      return $.when(result);\n    };\n\n    return xhr.then(handleXhr, handleXhr);\n  },\n\n  priority: -1\n});\n\nParsley.on('form:submit', function () {\n  Parsley._remoteCache = {};\n});\n\nBase.prototype.addAsyncValidator = function () {\n  Utils.warnOnce('Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`');\n  return Parsley.addAsyncValidator(...arguments);\n};\n","// This is included with the Parsley library itself,\n// thus there is no use in adding it to your project.\nimport Parsley from '../parsley/main';\n\nParsley.addMessages('en', {\n  defaultMessage: \"This value seems to be invalid.\",\n  type: {\n    email:        \"This value should be a valid email.\",\n    url:          \"This value should be a valid url.\",\n    number:       \"This value should be a valid number.\",\n    integer:      \"This value should be a valid integer.\",\n    digits:       \"This value should be digits.\",\n    alphanum:     \"This value should be alphanumeric.\"\n  },\n  notblank:       \"This value should not be blank.\",\n  required:       \"This value is required.\",\n  pattern:        \"This value seems to be invalid.\",\n  min:            \"This value should be greater than or equal to %s.\",\n  max:            \"This value should be lower than or equal to %s.\",\n  range:          \"This value should be between %s and %s.\",\n  minlength:      \"This value is too short. It should have %s characters or more.\",\n  maxlength:      \"This value is too long. It should have %s characters or fewer.\",\n  length:         \"This value length is invalid. It should be between %s and %s characters long.\",\n  mincheck:       \"You must select at least %s choices.\",\n  maxcheck:       \"You must select %s choices or fewer.\",\n  check:          \"You must select between %s and %s choices.\",\n  equalto:        \"This value should be the same.\",\n  euvatin:        \"It's not a valid VAT Identification Number.\",\n});\n\nParsley.setLocale('en');\n","/**\n * inputevent - Alleviate browser bugs for input events\n * https://github.com/marcandre/inputevent\n * @version v0.0.3 - (built Thu, Apr 14th 2016, 5:58 pm)\n * @author Marc-Andre Lafortune <github@marc-andre.ca>\n * @license MIT\n */\n\nimport $ from 'jquery';\n\nfunction InputEvent() {\n  let globals = window || global;\n\n  // Slightly odd way construct our object. This way methods are force bound.\n  // Used to test for duplicate library.\n  Object.assign(this, {\n\n    // For browsers that do not support isTrusted, assumes event is native.\n    isNativeEvent: evt => {\n      return evt.originalEvent && evt.originalEvent.isTrusted !== false;\n    },\n\n    fakeInputEvent: evt => {\n      if (this.isNativeEvent(evt)) {\n        $(evt.target).trigger('input');\n      }\n    },\n\n    misbehaves: evt => {\n      if (this.isNativeEvent(evt)) {\n        this.behavesOk(evt);\n        $(document)\n          .on('change.inputevent', evt.data.selector, this.fakeInputEvent);\n        this.fakeInputEvent(evt);\n      }\n    },\n\n    behavesOk: evt => {\n      if (this.isNativeEvent(evt)) {\n        $(document) // Simply unbinds the testing handler\n          .off('input.inputevent', evt.data.selector, this.behavesOk)\n          .off('change.inputevent', evt.data.selector, this.misbehaves);\n      }\n    },\n\n    // Bind the testing handlers\n    install: () => {\n      if (globals.inputEventPatched) {\n        return;\n      }\n      globals.inputEventPatched = '0.0.3';\n      for (let selector of ['select', 'input[type=\"checkbox\"]', 'input[type=\"radio\"]', 'input[type=\"file\"]']) {\n        $(document)\n          .on('input.inputevent', selector, {selector}, this.behavesOk)\n          .on('change.inputevent', selector, {selector}, this.misbehaves);\n      }\n    },\n\n    uninstall: () => {\n      delete globals.inputEventPatched;\n      $(document).off('.inputevent');\n    }\n\n  });\n};\n\nexport default new InputEvent();\n","import $ from 'jquery';\nimport Parsley from './parsley/main';\nimport './parsley/pubsub';\nimport './parsley/remote';\nimport './i18n/en';\nimport inputevent from './vendor/inputevent';\n\ninputevent.install();\n\nexport default Parsley;\n","if (typeof FastBoot === 'undefined') { /*! VelocityJS.org (1.5.2). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License */\r\n\r\n/*************************\r\n Velocity jQuery Shim\r\n *************************/\r\n\r\n/*! VelocityJS.org jQuery Shim (1.0.1). (C) 2014 The jQuery Foundation. MIT @license: en.wikipedia.org/wiki/MIT_License. */\r\n\r\n/* This file contains the jQuery functions that Velocity relies on, thereby removing Velocity's dependency on a full copy of jQuery, and allowing it to work in any environment. */\r\n/* These shimmed functions are only used if jQuery isn't present. If both this shim and jQuery are loaded, Velocity defaults to jQuery proper. */\r\n/* Browser support: Using this shim instead of jQuery proper removes support for IE8. */\r\n\r\n(function(window) {\r\n\t\"use strict\";\r\n\t/***************\r\n\t Setup\r\n\t ***************/\r\n\r\n\t/* If jQuery is already loaded, there's no point in loading this shim. */\r\n\tif (window.jQuery) {\r\n\t\treturn;\r\n\t}\r\n\r\n\t/* jQuery base. */\r\n\tvar $ = function(selector, context) {\r\n\t\treturn new $.fn.init(selector, context);\r\n\t};\r\n\r\n\t/********************\r\n\t Private Methods\r\n\t ********************/\r\n\r\n\t/* jQuery */\r\n\t$.isWindow = function(obj) {\r\n\t\t/* jshint eqeqeq: false */\r\n\t\treturn obj && obj === obj.window;\r\n\t};\r\n\r\n\t/* jQuery */\r\n\t$.type = function(obj) {\r\n\t\tif (!obj) {\r\n\t\t\treturn obj + \"\";\r\n\t\t}\r\n\r\n\t\treturn typeof obj === \"object\" || typeof obj === \"function\" ?\r\n\t\t\t\tclass2type[toString.call(obj)] || \"object\" :\r\n\t\t\t\ttypeof obj;\r\n\t};\r\n\r\n\t/* jQuery */\r\n\t$.isArray = Array.isArray || function(obj) {\r\n\t\treturn $.type(obj) === \"array\";\r\n\t};\r\n\r\n\t/* jQuery */\r\n\tfunction isArraylike(obj) {\r\n\t\tvar length = obj.length,\r\n\t\t\t\ttype = $.type(obj);\r\n\r\n\t\tif (type === \"function\" || $.isWindow(obj)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif (obj.nodeType === 1 && length) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn type === \"array\" || length === 0 || typeof length === \"number\" && length > 0 && (length - 1) in obj;\r\n\t}\r\n\r\n\t/***************\r\n\t $ Methods\r\n\t ***************/\r\n\r\n\t/* jQuery: Support removed for IE<9. */\r\n\t$.isPlainObject = function(obj) {\r\n\t\tvar key;\r\n\r\n\t\tif (!obj || $.type(obj) !== \"object\" || obj.nodeType || $.isWindow(obj)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tif (obj.constructor &&\r\n\t\t\t\t\t!hasOwn.call(obj, \"constructor\") &&\r\n\t\t\t\t\t!hasOwn.call(obj.constructor.prototype, \"isPrototypeOf\")) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} catch (e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tfor (key in obj) {\r\n\t\t}\r\n\r\n\t\treturn key === undefined || hasOwn.call(obj, key);\r\n\t};\r\n\r\n\t/* jQuery */\r\n\t$.each = function(obj, callback, args) {\r\n\t\tvar value,\r\n\t\t\t\ti = 0,\r\n\t\t\t\tlength = obj.length,\r\n\t\t\t\tisArray = isArraylike(obj);\r\n\r\n\t\tif (args) {\r\n\t\t\tif (isArray) {\r\n\t\t\t\tfor (; i < length; i++) {\r\n\t\t\t\t\tvalue = callback.apply(obj[i], args);\r\n\r\n\t\t\t\t\tif (value === false) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor (i in obj) {\r\n\t\t\t\t\tif (!obj.hasOwnProperty(i)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvalue = callback.apply(obj[i], args);\r\n\r\n\t\t\t\t\tif (value === false) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tif (isArray) {\r\n\t\t\t\tfor (; i < length; i++) {\r\n\t\t\t\t\tvalue = callback.call(obj[i], i, obj[i]);\r\n\r\n\t\t\t\t\tif (value === false) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor (i in obj) {\r\n\t\t\t\t\tif (!obj.hasOwnProperty(i)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tvalue = callback.call(obj[i], i, obj[i]);\r\n\r\n\t\t\t\t\tif (value === false) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn obj;\r\n\t};\r\n\r\n\t/* Custom */\r\n\t$.data = function(node, key, value) {\r\n\t\t/* $.getData() */\r\n\t\tif (value === undefined) {\r\n\t\t\tvar getId = node[$.expando],\r\n\t\t\t\t\tstore = getId && cache[getId];\r\n\r\n\t\t\tif (key === undefined) {\r\n\t\t\t\treturn store;\r\n\t\t\t} else if (store) {\r\n\t\t\t\tif (key in store) {\r\n\t\t\t\t\treturn store[key];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/* $.setData() */\r\n\t\t} else if (key !== undefined) {\r\n\t\t\tvar setId = node[$.expando] || (node[$.expando] = ++$.uuid);\r\n\r\n\t\t\tcache[setId] = cache[setId] || {};\r\n\t\t\tcache[setId][key] = value;\r\n\r\n\t\t\treturn value;\r\n\t\t}\r\n\t};\r\n\r\n\t/* Custom */\r\n\t$.removeData = function(node, keys) {\r\n\t\tvar id = node[$.expando],\r\n\t\t\t\tstore = id && cache[id];\r\n\r\n\t\tif (store) {\r\n\t\t\t// Cleanup the entire store if no keys are provided.\r\n\t\t\tif (!keys) {\r\n\t\t\t\tdelete cache[id];\r\n\t\t\t} else {\r\n\t\t\t\t$.each(keys, function(_, key) {\r\n\t\t\t\t\tdelete store[key];\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t};\r\n\r\n\t/* jQuery */\r\n\t$.extend = function() {\r\n\t\tvar src, copyIsArray, copy, name, options, clone,\r\n\t\t\t\ttarget = arguments[0] || {},\r\n\t\t\t\ti = 1,\r\n\t\t\t\tlength = arguments.length,\r\n\t\t\t\tdeep = false;\r\n\r\n\t\tif (typeof target === \"boolean\") {\r\n\t\t\tdeep = target;\r\n\r\n\t\t\ttarget = arguments[i] || {};\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\tif (typeof target !== \"object\" && $.type(target) !== \"function\") {\r\n\t\t\ttarget = {};\r\n\t\t}\r\n\r\n\t\tif (i === length) {\r\n\t\t\ttarget = this;\r\n\t\t\ti--;\r\n\t\t}\r\n\r\n\t\tfor (; i < length; i++) {\r\n\t\t\tif ((options = arguments[i])) {\r\n\t\t\t\tfor (name in options) {\r\n\t\t\t\t\tif (!options.hasOwnProperty(name)) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tsrc = target[name];\r\n\t\t\t\t\tcopy = options[name];\r\n\r\n\t\t\t\t\tif (target === copy) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (deep && copy && ($.isPlainObject(copy) || (copyIsArray = $.isArray(copy)))) {\r\n\t\t\t\t\t\tif (copyIsArray) {\r\n\t\t\t\t\t\t\tcopyIsArray = false;\r\n\t\t\t\t\t\t\tclone = src && $.isArray(src) ? src : [];\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tclone = src && $.isPlainObject(src) ? src : {};\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\ttarget[name] = $.extend(deep, clone, copy);\r\n\r\n\t\t\t\t\t} else if (copy !== undefined) {\r\n\t\t\t\t\t\ttarget[name] = copy;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn target;\r\n\t};\r\n\r\n\t/* jQuery 1.4.3 */\r\n\t$.queue = function(elem, type, data) {\r\n\t\tfunction $makeArray(arr, results) {\r\n\t\t\tvar ret = results || [];\r\n\r\n\t\t\tif (arr) {\r\n\t\t\t\tif (isArraylike(Object(arr))) {\r\n\t\t\t\t\t/* $.merge */\r\n\t\t\t\t\t(function(first, second) {\r\n\t\t\t\t\t\tvar len = +second.length,\r\n\t\t\t\t\t\t\t\tj = 0,\r\n\t\t\t\t\t\t\t\ti = first.length;\r\n\r\n\t\t\t\t\t\twhile (j < len) {\r\n\t\t\t\t\t\t\tfirst[i++] = second[j++];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (len !== len) {\r\n\t\t\t\t\t\t\twhile (second[j] !== undefined) {\r\n\t\t\t\t\t\t\t\tfirst[i++] = second[j++];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tfirst.length = i;\r\n\r\n\t\t\t\t\t\treturn first;\r\n\t\t\t\t\t})(ret, typeof arr === \"string\" ? [arr] : arr);\r\n\t\t\t\t} else {\r\n\t\t\t\t\t[].push.call(ret, arr);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn ret;\r\n\t\t}\r\n\r\n\t\tif (!elem) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\ttype = (type || \"fx\") + \"queue\";\r\n\r\n\t\tvar q = $.data(elem, type);\r\n\r\n\t\tif (!data) {\r\n\t\t\treturn q || [];\r\n\t\t}\r\n\r\n\t\tif (!q || $.isArray(data)) {\r\n\t\t\tq = $.data(elem, type, $makeArray(data));\r\n\t\t} else {\r\n\t\t\tq.push(data);\r\n\t\t}\r\n\r\n\t\treturn q;\r\n\t};\r\n\r\n\t/* jQuery 1.4.3 */\r\n\t$.dequeue = function(elems, type) {\r\n\t\t/* Custom: Embed element iteration. */\r\n\t\t$.each(elems.nodeType ? [elems] : elems, function(i, elem) {\r\n\t\t\ttype = type || \"fx\";\r\n\r\n\t\t\tvar queue = $.queue(elem, type),\r\n\t\t\t\t\tfn = queue.shift();\r\n\r\n\t\t\tif (fn === \"inprogress\") {\r\n\t\t\t\tfn = queue.shift();\r\n\t\t\t}\r\n\r\n\t\t\tif (fn) {\r\n\t\t\t\tif (type === \"fx\") {\r\n\t\t\t\t\tqueue.unshift(\"inprogress\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfn.call(elem, function() {\r\n\t\t\t\t\t$.dequeue(elem, type);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t});\r\n\t};\r\n\r\n\t/******************\r\n\t $.fn Methods\r\n\t ******************/\r\n\r\n\t/* jQuery */\r\n\t$.fn = $.prototype = {\r\n\t\tinit: function(selector) {\r\n\t\t\t/* Just return the element wrapped inside an array; don't proceed with the actual jQuery node wrapping process. */\r\n\t\t\tif (selector.nodeType) {\r\n\t\t\t\tthis[0] = selector;\r\n\r\n\t\t\t\treturn this;\r\n\t\t\t} else {\r\n\t\t\t\tthrow new Error(\"Not a DOM node.\");\r\n\t\t\t}\r\n\t\t},\r\n\t\toffset: function() {\r\n\t\t\t/* jQuery altered code: Dropped disconnected DOM node checking. */\r\n\t\t\tvar box = this[0].getBoundingClientRect ? this[0].getBoundingClientRect() : {top: 0, left: 0};\r\n\r\n\t\t\treturn {\r\n\t\t\t\ttop: box.top + (window.pageYOffset || document.scrollTop || 0) - (document.clientTop || 0),\r\n\t\t\t\tleft: box.left + (window.pageXOffset || document.scrollLeft || 0) - (document.clientLeft || 0)\r\n\t\t\t};\r\n\t\t},\r\n\t\tposition: function() {\r\n\t\t\t/* jQuery */\r\n\t\t\tfunction offsetParentFn(elem) {\r\n\t\t\t\tvar offsetParent = elem.offsetParent;\r\n\r\n\t\t\t\twhile (offsetParent && (offsetParent.nodeName.toLowerCase() !== \"html\" && offsetParent.style && offsetParent.style.position.toLowerCase() === \"static\")) {\r\n\t\t\t\t\toffsetParent = offsetParent.offsetParent;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn offsetParent || document;\r\n\t\t\t}\r\n\r\n\t\t\t/* Zepto */\r\n\t\t\tvar elem = this[0],\r\n\t\t\t\t\toffsetParent = offsetParentFn(elem),\r\n\t\t\t\t\toffset = this.offset(),\r\n\t\t\t\t\tparentOffset = /^(?:body|html)$/i.test(offsetParent.nodeName) ? {top: 0, left: 0} : $(offsetParent).offset();\r\n\r\n\t\t\toffset.top -= parseFloat(elem.style.marginTop) || 0;\r\n\t\t\toffset.left -= parseFloat(elem.style.marginLeft) || 0;\r\n\r\n\t\t\tif (offsetParent.style) {\r\n\t\t\t\tparentOffset.top += parseFloat(offsetParent.style.borderTopWidth) || 0;\r\n\t\t\t\tparentOffset.left += parseFloat(offsetParent.style.borderLeftWidth) || 0;\r\n\t\t\t}\r\n\r\n\t\t\treturn {\r\n\t\t\t\ttop: offset.top - parentOffset.top,\r\n\t\t\t\tleft: offset.left - parentOffset.left\r\n\t\t\t};\r\n\t\t}\r\n\t};\r\n\r\n\t/**********************\r\n\t Private Variables\r\n\t **********************/\r\n\r\n\t/* For $.data() */\r\n\tvar cache = {};\r\n\t$.expando = \"velocity\" + (new Date().getTime());\r\n\t$.uuid = 0;\r\n\r\n\t/* For $.queue() */\r\n\tvar class2type = {},\r\n\t\t\thasOwn = class2type.hasOwnProperty,\r\n\t\t\ttoString = class2type.toString;\r\n\r\n\tvar types = \"Boolean Number String Function Array Date RegExp Object Error\".split(\" \");\r\n\tfor (var i = 0; i < types.length; i++) {\r\n\t\tclass2type[\"[object \" + types[i] + \"]\"] = types[i].toLowerCase();\r\n\t}\r\n\r\n\t/* Makes $(node) possible, without having to call init. */\r\n\t$.fn.init.prototype = $.fn;\r\n\r\n\t/* Globalize Velocity onto the window, and assign its Utilities property. */\r\n\twindow.Velocity = {Utilities: $};\r\n})(window);\r\n\r\n/******************\r\n Velocity.js\r\n ******************/\r\n\r\n(function(factory) {\r\n\t\"use strict\";\r\n\t/* CommonJS module. */\r\n\tif (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n\t\tmodule.exports = factory();\r\n\t\t/* AMD module. */\r\n\t} else if (typeof define === \"function\" && define.amd) {\r\n\t\tdefine(factory);\r\n\t\t/* Browser globals. */\r\n\t} else {\r\n\t\tfactory();\r\n\t}\r\n}(function() {\r\n\t\"use strict\";\r\n\treturn function(global, window, document, undefined) {\r\n\r\n\t\t/***************\r\n\t\t Summary\r\n\t\t ***************/\r\n\r\n\t\t/*\r\n\t\t - CSS: CSS stack that works independently from the rest of Velocity.\r\n\t\t - animate(): Core animation method that iterates over the targeted elements and queues the incoming call onto each element individually.\r\n\t\t - Pre-Queueing: Prepare the element for animation by instantiating its data cache and processing the call's options.\r\n\t\t - Queueing: The logic that runs once the call has reached its point of execution in the element's $.queue() stack.\r\n\t\t Most logic is placed here to avoid risking it becoming stale (if the element's properties have changed).\r\n\t\t - Pushing: Consolidation of the tween data followed by its push onto the global in-progress calls container.\r\n\t\t - tick(): The single requestAnimationFrame loop responsible for tweening all in-progress calls.\r\n\t\t - completeCall(): Handles the cleanup process for each Velocity call.\r\n\t\t */\r\n\r\n\t\t/*********************\r\n\t\t Helper Functions\r\n\t\t *********************/\r\n\r\n\t\t/* IE detection. Gist: https://gist.github.com/julianshapiro/9098609 */\r\n\t\tvar IE = (function() {\r\n\t\t\tif (document.documentMode) {\r\n\t\t\t\treturn document.documentMode;\r\n\t\t\t} else {\r\n\t\t\t\tfor (var i = 7; i > 4; i--) {\r\n\t\t\t\t\tvar div = document.createElement(\"div\");\r\n\r\n\t\t\t\t\tdiv.innerHTML = \"<!--[if IE \" + i + \"]><span></span><![endif]-->\";\r\n\r\n\t\t\t\t\tif (div.getElementsByTagName(\"span\").length) {\r\n\t\t\t\t\t\tdiv = null;\r\n\r\n\t\t\t\t\t\treturn i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn undefined;\r\n\t\t})();\r\n\r\n\t\t/* rAF shim. Gist: https://gist.github.com/julianshapiro/9497513 */\r\n\t\tvar rAFShim = (function() {\r\n\t\t\tvar timeLast = 0;\r\n\r\n\t\t\treturn window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function(callback) {\r\n\t\t\t\tvar timeCurrent = (new Date()).getTime(),\r\n\t\t\t\t\t\ttimeDelta;\r\n\r\n\t\t\t\t/* Dynamically set delay on a per-tick basis to match 60fps. */\r\n\t\t\t\t/* Technique by Erik Moller. MIT license: https://gist.github.com/paulirish/1579671 */\r\n\t\t\t\ttimeDelta = Math.max(0, 16 - (timeCurrent - timeLast));\r\n\t\t\t\ttimeLast = timeCurrent + timeDelta;\r\n\r\n\t\t\t\treturn setTimeout(function() {\r\n\t\t\t\t\tcallback(timeCurrent + timeDelta);\r\n\t\t\t\t}, timeDelta);\r\n\t\t\t};\r\n\t\t})();\r\n\r\n\t\tvar performance = (function() {\r\n\t\t\tvar perf = window.performance || {};\r\n\r\n\t\t\tif (typeof perf.now !== \"function\") {\r\n\t\t\t\tvar nowOffset = perf.timing && perf.timing.navigationStart ? perf.timing.navigationStart : (new Date()).getTime();\r\n\r\n\t\t\t\tperf.now = function() {\r\n\t\t\t\t\treturn (new Date()).getTime() - nowOffset;\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\treturn perf;\r\n\t\t})();\r\n\r\n\t\t/* Array compacting. Copyright Lo-Dash. MIT License: https://github.com/lodash/lodash/blob/master/LICENSE.txt */\r\n\t\tfunction compactSparseArray(array) {\r\n\t\t\tvar index = -1,\r\n\t\t\t\t\tlength = array ? array.length : 0,\r\n\t\t\t\t\tresult = [];\r\n\r\n\t\t\twhile (++index < length) {\r\n\t\t\t\tvar value = array[index];\r\n\r\n\t\t\t\tif (value) {\r\n\t\t\t\t\tresult.push(value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn result;\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Shim for \"fixing\" IE's lack of support (IE < 9) for applying slice\r\n\t\t * on host objects like NamedNodeMap, NodeList, and HTMLCollection\r\n\t\t * (technically, since host objects have been implementation-dependent,\r\n\t\t * at least before ES2015, IE hasn't needed to work this way).\r\n\t\t * Also works on strings, fixes IE < 9 to allow an explicit undefined\r\n\t\t * for the 2nd argument (as in Firefox), and prevents errors when\r\n\t\t * called on other DOM objects.\r\n\t\t */\r\n\t\tvar _slice = (function() {\r\n\t\t\tvar slice = Array.prototype.slice;\r\n\r\n\t\t\ttry {\r\n\t\t\t\t// Can't be used with DOM elements in IE < 9\r\n\t\t\t\tslice.call(document.documentElement);\r\n\t\t\t\treturn slice;\r\n\t\t\t} catch (e) { // Fails in IE < 9\r\n\r\n\t\t\t\t// This will work for genuine arrays, array-like objects, \r\n\t\t\t\t// NamedNodeMap (attributes, entities, notations),\r\n\t\t\t\t// NodeList (e.g., getElementsByTagName), HTMLCollection (e.g., childNodes),\r\n\t\t\t\t// and will not fail on other DOM objects (as do DOM elements in IE < 9)\r\n\t\t\t\treturn function(begin, end) {\r\n\t\t\t\t\tvar len = this.length;\r\n\r\n\t\t\t\t\tif (typeof begin !== \"number\") {\r\n\t\t\t\t\t\tbegin = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// IE < 9 gets unhappy with an undefined end argument\r\n\t\t\t\t\tif (typeof end !== \"number\") {\r\n\t\t\t\t\t\tend = len;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// For native Array objects, we use the native slice function\r\n\t\t\t\t\tif (this.slice) {\r\n\t\t\t\t\t\treturn slice.call(this, begin, end);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// For array like object we handle it ourselves.\r\n\t\t\t\t\tvar i,\r\n\t\t\t\t\t\t\tcloned = [],\r\n\t\t\t\t\t\t\t// Handle negative value for \"begin\"\r\n\t\t\t\t\t\t\tstart = (begin >= 0) ? begin : Math.max(0, len + begin),\r\n\t\t\t\t\t\t\t// Handle negative value for \"end\"\r\n\t\t\t\t\t\t\tupTo = end < 0 ? len + end : Math.min(end, len),\r\n\t\t\t\t\t\t\t// Actual expected size of the slice\r\n\t\t\t\t\t\t\tsize = upTo - start;\r\n\r\n\t\t\t\t\tif (size > 0) {\r\n\t\t\t\t\t\tcloned = new Array(size);\r\n\t\t\t\t\t\tif (this.charAt) {\r\n\t\t\t\t\t\t\tfor (i = 0; i < size; i++) {\r\n\t\t\t\t\t\t\t\tcloned[i] = this.charAt(start + i);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tfor (i = 0; i < size; i++) {\r\n\t\t\t\t\t\t\t\tcloned[i] = this[start + i];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn cloned;\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t})();\r\n\r\n\t\t/* .indexOf doesn't exist in IE<9 */\r\n\t\tvar _inArray = (function() {\r\n\t\t\tif (Array.prototype.includes) {\r\n\t\t\t\treturn function(arr, val) {\r\n\t\t\t\t\treturn arr.includes(val);\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\tif (Array.prototype.indexOf) {\r\n\t\t\t\treturn function(arr, val) {\r\n\t\t\t\t\treturn arr.indexOf(val) >= 0;\r\n\t\t\t\t};\r\n\t\t\t}\r\n\t\t\treturn function(arr, val) {\r\n\t\t\t\tfor (var i = 0; i < arr.length; i++) {\r\n\t\t\t\t\tif (arr[i] === val) {\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\tfunction sanitizeElements(elements) {\r\n\t\t\t/* Unwrap jQuery/Zepto objects. */\r\n\t\t\tif (Type.isWrapped(elements)) {\r\n\t\t\t\telements = _slice.call(elements);\r\n\t\t\t\t/* Wrap a single element in an array so that $.each() can iterate with the element instead of its node's children. */\r\n\t\t\t} else if (Type.isNode(elements)) {\r\n\t\t\t\telements = [elements];\r\n\t\t\t}\r\n\r\n\t\t\treturn elements;\r\n\t\t}\r\n\r\n\t\tvar Type = {\r\n\t\t\tisNumber: function(variable) {\r\n\t\t\t\treturn (typeof variable === \"number\");\r\n\t\t\t},\r\n\t\t\tisString: function(variable) {\r\n\t\t\t\treturn (typeof variable === \"string\");\r\n\t\t\t},\r\n\t\t\tisArray: Array.isArray || function(variable) {\r\n\t\t\t\treturn Object.prototype.toString.call(variable) === \"[object Array]\";\r\n\t\t\t},\r\n\t\t\tisFunction: function(variable) {\r\n\t\t\t\treturn Object.prototype.toString.call(variable) === \"[object Function]\";\r\n\t\t\t},\r\n\t\t\tisNode: function(variable) {\r\n\t\t\t\treturn variable && variable.nodeType;\r\n\t\t\t},\r\n\t\t\t/* Determine if variable is an array-like wrapped jQuery, Zepto or similar element, or even a NodeList etc. */\r\n\t\t\t/* NOTE: HTMLFormElements also have a length. */\r\n\t\t\tisWrapped: function(variable) {\r\n\t\t\t\treturn variable\r\n\t\t\t\t\t\t&& variable !== window\r\n\t\t\t\t\t\t&& Type.isNumber(variable.length)\r\n\t\t\t\t\t\t&& !Type.isString(variable)\r\n\t\t\t\t\t\t&& !Type.isFunction(variable)\r\n\t\t\t\t\t\t&& !Type.isNode(variable)\r\n\t\t\t\t\t\t&& (variable.length === 0 || Type.isNode(variable[0]));\r\n\t\t\t},\r\n\t\t\tisSVG: function(variable) {\r\n\t\t\t\treturn window.SVGElement && (variable instanceof window.SVGElement);\r\n\t\t\t},\r\n\t\t\tisEmptyObject: function(variable) {\r\n\t\t\t\tfor (var name in variable) {\r\n\t\t\t\t\tif (variable.hasOwnProperty(name)) {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t/*****************\r\n\t\t Dependencies\r\n\t\t *****************/\r\n\r\n\t\tvar $,\r\n\t\t\t\tisJQuery = false;\r\n\r\n\t\tif (global.fn && global.fn.jquery) {\r\n\t\t\t$ = global;\r\n\t\t\tisJQuery = true;\r\n\t\t} else {\r\n\t\t\t$ = window.Velocity.Utilities;\r\n\t\t}\r\n\r\n\t\tif (IE <= 8 && !isJQuery) {\r\n\t\t\tthrow new Error(\"Velocity: IE8 and below require jQuery to be loaded before Velocity.\");\r\n\t\t} else if (IE <= 7) {\r\n\t\t\t/* Revert to jQuery's $.animate(), and lose Velocity's extra features. */\r\n\t\t\tjQuery.fn.velocity = jQuery.fn.animate;\r\n\r\n\t\t\t/* Now that $.fn.velocity is aliased, abort this Velocity declaration. */\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t/*****************\r\n\t\t Constants\r\n\t\t *****************/\r\n\r\n\t\tvar DURATION_DEFAULT = 400,\r\n\t\t\t\tEASING_DEFAULT = \"swing\";\r\n\r\n\t\t/*************\r\n\t\t State\r\n\t\t *************/\r\n\r\n\t\tvar Velocity = {\r\n\t\t\t/* Container for page-wide Velocity state data. */\r\n\t\t\tState: {\r\n\t\t\t\t/* Detect mobile devices to determine if mobileHA should be turned on. */\r\n\t\t\t\tisMobile: /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(window.navigator.userAgent),\r\n\t\t\t\t/* The mobileHA option's behavior changes on older Android devices (Gingerbread, versions 2.3.3-2.3.7). */\r\n\t\t\t\tisAndroid: /Android/i.test(window.navigator.userAgent),\r\n\t\t\t\tisGingerbread: /Android 2\\.3\\.[3-7]/i.test(window.navigator.userAgent),\r\n\t\t\t\tisChrome: window.chrome,\r\n\t\t\t\tisFirefox: /Firefox/i.test(window.navigator.userAgent),\r\n\t\t\t\t/* Create a cached element for re-use when checking for CSS property prefixes. */\r\n\t\t\t\tprefixElement: document.createElement(\"div\"),\r\n\t\t\t\t/* Cache every prefix match to avoid repeating lookups. */\r\n\t\t\t\tprefixMatches: {},\r\n\t\t\t\t/* Cache the anchor used for animating window scrolling. */\r\n\t\t\t\tscrollAnchor: null,\r\n\t\t\t\t/* Cache the browser-specific property names associated with the scroll anchor. */\r\n\t\t\t\tscrollPropertyLeft: null,\r\n\t\t\t\tscrollPropertyTop: null,\r\n\t\t\t\t/* Keep track of whether our RAF tick is running. */\r\n\t\t\t\tisTicking: false,\r\n\t\t\t\t/* Container for every in-progress call to Velocity. */\r\n\t\t\t\tcalls: [],\r\n\t\t\t\tdelayedElements: {\r\n\t\t\t\t\tcount: 0\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/* Velocity's custom CSS stack. Made global for unit testing. */\r\n\t\t\tCSS: {/* Defined below. */},\r\n\t\t\t/* A shim of the jQuery utility functions used by Velocity -- provided by Velocity's optional jQuery shim. */\r\n\t\t\tUtilities: $,\r\n\t\t\t/* Container for the user's custom animation redirects that are referenced by name in place of the properties map argument. */\r\n\t\t\tRedirects: {/* Manually registered by the user. */},\r\n\t\t\tEasings: {/* Defined below. */},\r\n\t\t\t/* Attempt to use ES6 Promises by default. Users can override this with a third-party promises library. */\r\n\t\t\tPromise: window.Promise,\r\n\t\t\t/* Velocity option defaults, which can be overriden by the user. */\r\n\t\t\tdefaults: {\r\n\t\t\t\tqueue: \"\",\r\n\t\t\t\tduration: DURATION_DEFAULT,\r\n\t\t\t\teasing: EASING_DEFAULT,\r\n\t\t\t\tbegin: undefined,\r\n\t\t\t\tcomplete: undefined,\r\n\t\t\t\tprogress: undefined,\r\n\t\t\t\tdisplay: undefined,\r\n\t\t\t\tvisibility: undefined,\r\n\t\t\t\tloop: false,\r\n\t\t\t\tdelay: false,\r\n\t\t\t\tmobileHA: true,\r\n\t\t\t\t/* Advanced: Set to false to prevent property values from being cached between consecutive Velocity-initiated chain calls. */\r\n\t\t\t\t_cacheValues: true,\r\n\t\t\t\t/* Advanced: Set to false if the promise should always resolve on empty element lists. */\r\n\t\t\t\tpromiseRejectEmpty: true\r\n\t\t\t},\r\n\t\t\t/* A design goal of Velocity is to cache data wherever possible in order to avoid DOM requerying. Accordingly, each element has a data cache. */\r\n\t\t\tinit: function(element) {\r\n\t\t\t\t$.data(element, \"velocity\", {\r\n\t\t\t\t\t/* Store whether this is an SVG element, since its properties are retrieved and updated differently than standard HTML elements. */\r\n\t\t\t\t\tisSVG: Type.isSVG(element),\r\n\t\t\t\t\t/* Keep track of whether the element is currently being animated by Velocity.\r\n\t\t\t\t\t This is used to ensure that property values are not transferred between non-consecutive (stale) calls. */\r\n\t\t\t\t\tisAnimating: false,\r\n\t\t\t\t\t/* A reference to the element's live computedStyle object. Learn more here: https://developer.mozilla.org/en/docs/Web/API/window.getComputedStyle */\r\n\t\t\t\t\tcomputedStyle: null,\r\n\t\t\t\t\t/* Tween data is cached for each animation on the element so that data can be passed across calls --\r\n\t\t\t\t\t in particular, end values are used as subsequent start values in consecutive Velocity calls. */\r\n\t\t\t\t\ttweensContainer: null,\r\n\t\t\t\t\t/* The full root property values of each CSS hook being animated on this element are cached so that:\r\n\t\t\t\t\t 1) Concurrently-animating hooks sharing the same root can have their root values' merged into one while tweening.\r\n\t\t\t\t\t 2) Post-hook-injection root values can be transferred over to consecutively chained Velocity calls as starting root values. */\r\n\t\t\t\t\trootPropertyValueCache: {},\r\n\t\t\t\t\t/* A cache for transform updates, which must be manually flushed via CSS.flushTransformCache(). */\r\n\t\t\t\t\ttransformCache: {}\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t/* A parallel to jQuery's $.css(), used for getting/setting Velocity's hooked CSS properties. */\r\n\t\t\thook: null, /* Defined below. */\r\n\t\t\t/* Velocity-wide animation time remapping for testing purposes. */\r\n\t\t\tmock: false,\r\n\t\t\tversion: {major: 1, minor: 5, patch: 2},\r\n\t\t\t/* Set to 1 or 2 (most verbose) to output debug info to console. */\r\n\t\t\tdebug: false,\r\n\t\t\t/* Use rAF high resolution timestamp when available */\r\n\t\t\ttimestamp: true,\r\n\t\t\t/* Pause all animations */\r\n\t\t\tpauseAll: function(queueName) {\r\n\t\t\t\tvar currentTime = (new Date()).getTime();\r\n\r\n\t\t\t\t$.each(Velocity.State.calls, function(i, activeCall) {\r\n\r\n\t\t\t\t\tif (activeCall) {\r\n\r\n\t\t\t\t\t\t/* If we have a queueName and this call is not on that queue, skip */\r\n\t\t\t\t\t\tif (queueName !== undefined && ((activeCall[2].queue !== queueName) || (activeCall[2].queue === false))) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Set call to paused */\r\n\t\t\t\t\t\tactiveCall[5] = {\r\n\t\t\t\t\t\t\tresume: false\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t\t\t/* Pause timers on any currently delayed calls */\r\n\t\t\t\t$.each(Velocity.State.delayedElements, function(k, element) {\r\n\t\t\t\t\tif (!element) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tpauseDelayOnElement(element, currentTime);\r\n\t\t\t\t});\r\n\t\t\t},\r\n\t\t\t/* Resume all animations */\r\n\t\t\tresumeAll: function(queueName) {\r\n\t\t\t\tvar currentTime = (new Date()).getTime();\r\n\r\n\t\t\t\t$.each(Velocity.State.calls, function(i, activeCall) {\r\n\r\n\t\t\t\t\tif (activeCall) {\r\n\r\n\t\t\t\t\t\t/* If we have a queueName and this call is not on that queue, skip */\r\n\t\t\t\t\t\tif (queueName !== undefined && ((activeCall[2].queue !== queueName) || (activeCall[2].queue === false))) {\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Set call to resumed if it was paused */\r\n\t\t\t\t\t\tif (activeCall[5]) {\r\n\t\t\t\t\t\t\tactiveCall[5].resume = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t/* Resume timers on any currently delayed calls */\r\n\t\t\t\t$.each(Velocity.State.delayedElements, function(k, element) {\r\n\t\t\t\t\tif (!element) {\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresumeDelayOnElement(element, currentTime);\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t/* Retrieve the appropriate scroll anchor and property name for the browser: https://developer.mozilla.org/en-US/docs/Web/API/Window.scrollY */\r\n\t\tif (window.pageYOffset !== undefined) {\r\n\t\t\tVelocity.State.scrollAnchor = window;\r\n\t\t\tVelocity.State.scrollPropertyLeft = \"pageXOffset\";\r\n\t\t\tVelocity.State.scrollPropertyTop = \"pageYOffset\";\r\n\t\t} else {\r\n\t\t\tVelocity.State.scrollAnchor = document.documentElement || document.body.parentNode || document.body;\r\n\t\t\tVelocity.State.scrollPropertyLeft = \"scrollLeft\";\r\n\t\t\tVelocity.State.scrollPropertyTop = \"scrollTop\";\r\n\t\t}\r\n\r\n\t\t/* Shorthand alias for jQuery's $.data() utility. */\r\n\t\tfunction Data(element) {\r\n\t\t\t/* Hardcode a reference to the plugin name. */\r\n\t\t\tvar response = $.data(element, \"velocity\");\r\n\r\n\t\t\t/* jQuery <=1.4.2 returns null instead of undefined when no match is found. We normalize this behavior. */\r\n\t\t\treturn response === null ? undefined : response;\r\n\t\t}\r\n\r\n\t\t/**************\r\n\t\t Delay Timer\r\n\t\t **************/\r\n\r\n\t\tfunction pauseDelayOnElement(element, currentTime) {\r\n\t\t\t/* Check for any delay timers, and pause the set timeouts (while preserving time data)\r\n\t\t\t to be resumed when the \"resume\" command is issued */\r\n\t\t\tvar data = Data(element);\r\n\t\t\tif (data && data.delayTimer && !data.delayPaused) {\r\n\t\t\t\tdata.delayRemaining = data.delay - currentTime + data.delayBegin;\r\n\t\t\t\tdata.delayPaused = true;\r\n\t\t\t\tclearTimeout(data.delayTimer.setTimeout);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfunction resumeDelayOnElement(element, currentTime) {\r\n\t\t\t/* Check for any paused timers and resume */\r\n\t\t\tvar data = Data(element);\r\n\t\t\tif (data && data.delayTimer && data.delayPaused) {\r\n\t\t\t\t/* If the element was mid-delay, re initiate the timeout with the remaining delay */\r\n\t\t\t\tdata.delayPaused = false;\r\n\t\t\t\tdata.delayTimer.setTimeout = setTimeout(data.delayTimer.next, data.delayRemaining);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\r\n\r\n\t\t/**************\r\n\t\t Easing\r\n\t\t **************/\r\n\r\n\t\t/* Step easing generator. */\r\n\t\tfunction generateStep(steps) {\r\n\t\t\treturn function(p) {\r\n\t\t\t\treturn Math.round(p * steps) * (1 / steps);\r\n\t\t\t};\r\n\t\t}\r\n\r\n\t\t/* Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */\r\n\t\tfunction generateBezier(mX1, mY1, mX2, mY2) {\r\n\t\t\tvar NEWTON_ITERATIONS = 4,\r\n\t\t\t\t\tNEWTON_MIN_SLOPE = 0.001,\r\n\t\t\t\t\tSUBDIVISION_PRECISION = 0.0000001,\r\n\t\t\t\t\tSUBDIVISION_MAX_ITERATIONS = 10,\r\n\t\t\t\t\tkSplineTableSize = 11,\r\n\t\t\t\t\tkSampleStepSize = 1.0 / (kSplineTableSize - 1.0),\r\n\t\t\t\t\tfloat32ArraySupported = \"Float32Array\" in window;\r\n\r\n\t\t\t/* Must contain four arguments. */\r\n\t\t\tif (arguments.length !== 4) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t/* Arguments must be numbers. */\r\n\t\t\tfor (var i = 0; i < 4; ++i) {\r\n\t\t\t\tif (typeof arguments[i] !== \"number\" || isNaN(arguments[i]) || !isFinite(arguments[i])) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/* X values must be in the [0, 1] range. */\r\n\t\t\tmX1 = Math.min(mX1, 1);\r\n\t\t\tmX2 = Math.min(mX2, 1);\r\n\t\t\tmX1 = Math.max(mX1, 0);\r\n\t\t\tmX2 = Math.max(mX2, 0);\r\n\r\n\t\t\tvar mSampleValues = float32ArraySupported ? new Float32Array(kSplineTableSize) : new Array(kSplineTableSize);\r\n\r\n\t\t\tfunction A(aA1, aA2) {\r\n\t\t\t\treturn 1.0 - 3.0 * aA2 + 3.0 * aA1;\r\n\t\t\t}\r\n\t\t\tfunction B(aA1, aA2) {\r\n\t\t\t\treturn 3.0 * aA2 - 6.0 * aA1;\r\n\t\t\t}\r\n\t\t\tfunction C(aA1) {\r\n\t\t\t\treturn 3.0 * aA1;\r\n\t\t\t}\r\n\r\n\t\t\tfunction calcBezier(aT, aA1, aA2) {\r\n\t\t\t\treturn ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;\r\n\t\t\t}\r\n\r\n\t\t\tfunction getSlope(aT, aA1, aA2) {\r\n\t\t\t\treturn 3.0 * A(aA1, aA2) * aT * aT + 2.0 * B(aA1, aA2) * aT + C(aA1);\r\n\t\t\t}\r\n\r\n\t\t\tfunction newtonRaphsonIterate(aX, aGuessT) {\r\n\t\t\t\tfor (var i = 0; i < NEWTON_ITERATIONS; ++i) {\r\n\t\t\t\t\tvar currentSlope = getSlope(aGuessT, mX1, mX2);\r\n\r\n\t\t\t\t\tif (currentSlope === 0.0) {\r\n\t\t\t\t\t\treturn aGuessT;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar currentX = calcBezier(aGuessT, mX1, mX2) - aX;\r\n\t\t\t\t\taGuessT -= currentX / currentSlope;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn aGuessT;\r\n\t\t\t}\r\n\r\n\t\t\tfunction calcSampleValues() {\r\n\t\t\t\tfor (var i = 0; i < kSplineTableSize; ++i) {\r\n\t\t\t\t\tmSampleValues[i] = calcBezier(i * kSampleStepSize, mX1, mX2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tfunction binarySubdivide(aX, aA, aB) {\r\n\t\t\t\tvar currentX, currentT, i = 0;\r\n\r\n\t\t\t\tdo {\r\n\t\t\t\t\tcurrentT = aA + (aB - aA) / 2.0;\r\n\t\t\t\t\tcurrentX = calcBezier(currentT, mX1, mX2) - aX;\r\n\t\t\t\t\tif (currentX > 0.0) {\r\n\t\t\t\t\t\taB = currentT;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\taA = currentT;\r\n\t\t\t\t\t}\r\n\t\t\t\t} while (Math.abs(currentX) > SUBDIVISION_PRECISION && ++i < SUBDIVISION_MAX_ITERATIONS);\r\n\r\n\t\t\t\treturn currentT;\r\n\t\t\t}\r\n\r\n\t\t\tfunction getTForX(aX) {\r\n\t\t\t\tvar intervalStart = 0.0,\r\n\t\t\t\t\t\tcurrentSample = 1,\r\n\t\t\t\t\t\tlastSample = kSplineTableSize - 1;\r\n\r\n\t\t\t\tfor (; currentSample !== lastSample && mSampleValues[currentSample] <= aX; ++currentSample) {\r\n\t\t\t\t\tintervalStart += kSampleStepSize;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t--currentSample;\r\n\r\n\t\t\t\tvar dist = (aX - mSampleValues[currentSample]) / (mSampleValues[currentSample + 1] - mSampleValues[currentSample]),\r\n\t\t\t\t\t\tguessForT = intervalStart + dist * kSampleStepSize,\r\n\t\t\t\t\t\tinitialSlope = getSlope(guessForT, mX1, mX2);\r\n\r\n\t\t\t\tif (initialSlope >= NEWTON_MIN_SLOPE) {\r\n\t\t\t\t\treturn newtonRaphsonIterate(aX, guessForT);\r\n\t\t\t\t} else if (initialSlope === 0.0) {\r\n\t\t\t\t\treturn guessForT;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn binarySubdivide(aX, intervalStart, intervalStart + kSampleStepSize);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar _precomputed = false;\r\n\r\n\t\t\tfunction precompute() {\r\n\t\t\t\t_precomputed = true;\r\n\t\t\t\tif (mX1 !== mY1 || mX2 !== mY2) {\r\n\t\t\t\t\tcalcSampleValues();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tvar f = function(aX) {\r\n\t\t\t\tif (!_precomputed) {\r\n\t\t\t\t\tprecompute();\r\n\t\t\t\t}\r\n\t\t\t\tif (mX1 === mY1 && mX2 === mY2) {\r\n\t\t\t\t\treturn aX;\r\n\t\t\t\t}\r\n\t\t\t\tif (aX === 0) {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t\tif (aX === 1) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn calcBezier(getTForX(aX), mY1, mY2);\r\n\t\t\t};\r\n\r\n\t\t\tf.getControlPoints = function() {\r\n\t\t\t\treturn [{x: mX1, y: mY1}, {x: mX2, y: mY2}];\r\n\t\t\t};\r\n\r\n\t\t\tvar str = \"generateBezier(\" + [mX1, mY1, mX2, mY2] + \")\";\r\n\t\t\tf.toString = function() {\r\n\t\t\t\treturn str;\r\n\t\t\t};\r\n\r\n\t\t\treturn f;\r\n\t\t}\r\n\r\n\t\t/* Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */\r\n\t\t/* Given a tension, friction, and duration, a simulation at 60FPS will first run without a defined duration in order to calculate the full path. A second pass\r\n\t\t then adjusts the time delta -- using the relation between actual time and duration -- to calculate the path for the duration-constrained animation. */\r\n\t\tvar generateSpringRK4 = (function() {\r\n\t\t\tfunction springAccelerationForState(state) {\r\n\t\t\t\treturn (-state.tension * state.x) - (state.friction * state.v);\r\n\t\t\t}\r\n\r\n\t\t\tfunction springEvaluateStateWithDerivative(initialState, dt, derivative) {\r\n\t\t\t\tvar state = {\r\n\t\t\t\t\tx: initialState.x + derivative.dx * dt,\r\n\t\t\t\t\tv: initialState.v + derivative.dv * dt,\r\n\t\t\t\t\ttension: initialState.tension,\r\n\t\t\t\t\tfriction: initialState.friction\r\n\t\t\t\t};\r\n\r\n\t\t\t\treturn {dx: state.v, dv: springAccelerationForState(state)};\r\n\t\t\t}\r\n\r\n\t\t\tfunction springIntegrateState(state, dt) {\r\n\t\t\t\tvar a = {\r\n\t\t\t\t\tdx: state.v,\r\n\t\t\t\t\tdv: springAccelerationForState(state)\r\n\t\t\t\t},\r\n\t\t\t\t\t\tb = springEvaluateStateWithDerivative(state, dt * 0.5, a),\r\n\t\t\t\t\t\tc = springEvaluateStateWithDerivative(state, dt * 0.5, b),\r\n\t\t\t\t\t\td = springEvaluateStateWithDerivative(state, dt, c),\r\n\t\t\t\t\t\tdxdt = 1.0 / 6.0 * (a.dx + 2.0 * (b.dx + c.dx) + d.dx),\r\n\t\t\t\t\t\tdvdt = 1.0 / 6.0 * (a.dv + 2.0 * (b.dv + c.dv) + d.dv);\r\n\r\n\t\t\t\tstate.x = state.x + dxdt * dt;\r\n\t\t\t\tstate.v = state.v + dvdt * dt;\r\n\r\n\t\t\t\treturn state;\r\n\t\t\t}\r\n\r\n\t\t\treturn function springRK4Factory(tension, friction, duration) {\r\n\r\n\t\t\t\tvar initState = {\r\n\t\t\t\t\tx: -1,\r\n\t\t\t\t\tv: 0,\r\n\t\t\t\t\ttension: null,\r\n\t\t\t\t\tfriction: null\r\n\t\t\t\t},\r\n\t\t\t\t\t\tpath = [0],\r\n\t\t\t\t\t\ttime_lapsed = 0,\r\n\t\t\t\t\t\ttolerance = 1 / 10000,\r\n\t\t\t\t\t\tDT = 16 / 1000,\r\n\t\t\t\t\t\thave_duration, dt, last_state;\r\n\r\n\t\t\t\ttension = parseFloat(tension) || 500;\r\n\t\t\t\tfriction = parseFloat(friction) || 20;\r\n\t\t\t\tduration = duration || null;\r\n\r\n\t\t\t\tinitState.tension = tension;\r\n\t\t\t\tinitState.friction = friction;\r\n\r\n\t\t\t\thave_duration = duration !== null;\r\n\r\n\t\t\t\t/* Calculate the actual time it takes for this animation to complete with the provided conditions. */\r\n\t\t\t\tif (have_duration) {\r\n\t\t\t\t\t/* Run the simulation without a duration. */\r\n\t\t\t\t\ttime_lapsed = springRK4Factory(tension, friction);\r\n\t\t\t\t\t/* Compute the adjusted time delta. */\r\n\t\t\t\t\tdt = time_lapsed / duration * DT;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdt = DT;\r\n\t\t\t\t}\r\n\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\t/* Next/step function .*/\r\n\t\t\t\t\tlast_state = springIntegrateState(last_state || initState, dt);\r\n\t\t\t\t\t/* Store the position. */\r\n\t\t\t\t\tpath.push(1 + last_state.x);\r\n\t\t\t\t\ttime_lapsed += 16;\r\n\t\t\t\t\t/* If the change threshold is reached, break. */\r\n\t\t\t\t\tif (!(Math.abs(last_state.x) > tolerance && Math.abs(last_state.v) > tolerance)) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* If duration is not defined, return the actual time required for completing this animation. Otherwise, return a closure that holds the\r\n\t\t\t\t computed path and returns a snapshot of the position according to a given percentComplete. */\r\n\t\t\t\treturn !have_duration ? time_lapsed : function(percentComplete) {\r\n\t\t\t\t\treturn path[ (percentComplete * (path.length - 1)) | 0 ];\r\n\t\t\t\t};\r\n\t\t\t};\r\n\t\t}());\r\n\r\n\t\t/* jQuery easings. */\r\n\t\tVelocity.Easings = {\r\n\t\t\tlinear: function(p) {\r\n\t\t\t\treturn p;\r\n\t\t\t},\r\n\t\t\tswing: function(p) {\r\n\t\t\t\treturn 0.5 - Math.cos(p * Math.PI) / 2;\r\n\t\t\t},\r\n\t\t\t/* Bonus \"spring\" easing, which is a less exaggerated version of easeInOutElastic. */\r\n\t\t\tspring: function(p) {\r\n\t\t\t\treturn 1 - (Math.cos(p * 4.5 * Math.PI) * Math.exp(-p * 6));\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t/* CSS3 and Robert Penner easings. */\r\n\t\t$.each(\r\n\t\t\t\t[\r\n\t\t\t\t\t[\"ease\", [0.25, 0.1, 0.25, 1.0]],\r\n\t\t\t\t\t[\"ease-in\", [0.42, 0.0, 1.00, 1.0]],\r\n\t\t\t\t\t[\"ease-out\", [0.00, 0.0, 0.58, 1.0]],\r\n\t\t\t\t\t[\"ease-in-out\", [0.42, 0.0, 0.58, 1.0]],\r\n\t\t\t\t\t[\"easeInSine\", [0.47, 0, 0.745, 0.715]],\r\n\t\t\t\t\t[\"easeOutSine\", [0.39, 0.575, 0.565, 1]],\r\n\t\t\t\t\t[\"easeInOutSine\", [0.445, 0.05, 0.55, 0.95]],\r\n\t\t\t\t\t[\"easeInQuad\", [0.55, 0.085, 0.68, 0.53]],\r\n\t\t\t\t\t[\"easeOutQuad\", [0.25, 0.46, 0.45, 0.94]],\r\n\t\t\t\t\t[\"easeInOutQuad\", [0.455, 0.03, 0.515, 0.955]],\r\n\t\t\t\t\t[\"easeInCubic\", [0.55, 0.055, 0.675, 0.19]],\r\n\t\t\t\t\t[\"easeOutCubic\", [0.215, 0.61, 0.355, 1]],\r\n\t\t\t\t\t[\"easeInOutCubic\", [0.645, 0.045, 0.355, 1]],\r\n\t\t\t\t\t[\"easeInQuart\", [0.895, 0.03, 0.685, 0.22]],\r\n\t\t\t\t\t[\"easeOutQuart\", [0.165, 0.84, 0.44, 1]],\r\n\t\t\t\t\t[\"easeInOutQuart\", [0.77, 0, 0.175, 1]],\r\n\t\t\t\t\t[\"easeInQuint\", [0.755, 0.05, 0.855, 0.06]],\r\n\t\t\t\t\t[\"easeOutQuint\", [0.23, 1, 0.32, 1]],\r\n\t\t\t\t\t[\"easeInOutQuint\", [0.86, 0, 0.07, 1]],\r\n\t\t\t\t\t[\"easeInExpo\", [0.95, 0.05, 0.795, 0.035]],\r\n\t\t\t\t\t[\"easeOutExpo\", [0.19, 1, 0.22, 1]],\r\n\t\t\t\t\t[\"easeInOutExpo\", [1, 0, 0, 1]],\r\n\t\t\t\t\t[\"easeInCirc\", [0.6, 0.04, 0.98, 0.335]],\r\n\t\t\t\t\t[\"easeOutCirc\", [0.075, 0.82, 0.165, 1]],\r\n\t\t\t\t\t[\"easeInOutCirc\", [0.785, 0.135, 0.15, 0.86]]\r\n\t\t\t\t], function(i, easingArray) {\r\n\t\t\tVelocity.Easings[easingArray[0]] = generateBezier.apply(null, easingArray[1]);\r\n\t\t});\r\n\r\n\t\t/* Determine the appropriate easing type given an easing input. */\r\n\t\tfunction getEasing(value, duration) {\r\n\t\t\tvar easing = value;\r\n\r\n\t\t\t/* The easing option can either be a string that references a pre-registered easing,\r\n\t\t\t or it can be a two-/four-item array of integers to be converted into a bezier/spring function. */\r\n\t\t\tif (Type.isString(value)) {\r\n\t\t\t\t/* Ensure that the easing has been assigned to jQuery's Velocity.Easings object. */\r\n\t\t\t\tif (!Velocity.Easings[value]) {\r\n\t\t\t\t\teasing = false;\r\n\t\t\t\t}\r\n\t\t\t} else if (Type.isArray(value) && value.length === 1) {\r\n\t\t\t\teasing = generateStep.apply(null, value);\r\n\t\t\t} else if (Type.isArray(value) && value.length === 2) {\r\n\t\t\t\t/* springRK4 must be passed the animation's duration. */\r\n\t\t\t\t/* Note: If the springRK4 array contains non-numbers, generateSpringRK4() returns an easing\r\n\t\t\t\t function generated with default tension and friction values. */\r\n\t\t\t\teasing = generateSpringRK4.apply(null, value.concat([duration]));\r\n\t\t\t} else if (Type.isArray(value) && value.length === 4) {\r\n\t\t\t\t/* Note: If the bezier array contains non-numbers, generateBezier() returns false. */\r\n\t\t\t\teasing = generateBezier.apply(null, value);\r\n\t\t\t} else {\r\n\t\t\t\teasing = false;\r\n\t\t\t}\r\n\r\n\t\t\t/* Revert to the Velocity-wide default easing type, or fall back to \"swing\" (which is also jQuery's default)\r\n\t\t\t if the Velocity-wide default has been incorrectly modified. */\r\n\t\t\tif (easing === false) {\r\n\t\t\t\tif (Velocity.Easings[Velocity.defaults.easing]) {\r\n\t\t\t\t\teasing = Velocity.defaults.easing;\r\n\t\t\t\t} else {\r\n\t\t\t\t\teasing = EASING_DEFAULT;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn easing;\r\n\t\t}\r\n\r\n\t\t/*****************\r\n\t\t CSS Stack\r\n\t\t *****************/\r\n\r\n\t\t/* The CSS object is a highly condensed and performant CSS stack that fully replaces jQuery's.\r\n\t\t It handles the validation, getting, and setting of both standard CSS properties and CSS property hooks. */\r\n\t\t/* Note: A \"CSS\" shorthand is aliased so that our code is easier to read. */\r\n\t\tvar CSS = Velocity.CSS = {\r\n\t\t\t/*************\r\n\t\t\t RegEx\r\n\t\t\t *************/\r\n\r\n\t\t\tRegEx: {\r\n\t\t\t\tisHex: /^#([A-f\\d]{3}){1,2}$/i,\r\n\t\t\t\t/* Unwrap a property value's surrounding text, e.g. \"rgba(4, 3, 2, 1)\" ==> \"4, 3, 2, 1\" and \"rect(4px 3px 2px 1px)\" ==> \"4px 3px 2px 1px\". */\r\n\t\t\t\tvalueUnwrap: /^[A-z]+\\((.*)\\)$/i,\r\n\t\t\t\twrappedValueAlreadyExtracted: /[0-9.]+ [0-9.]+ [0-9.]+( [0-9.]+)?/,\r\n\t\t\t\t/* Split a multi-value property into an array of subvalues, e.g. \"rgba(4, 3, 2, 1) 4px 3px 2px 1px\" ==> [ \"rgba(4, 3, 2, 1)\", \"4px\", \"3px\", \"2px\", \"1px\" ]. */\r\n\t\t\t\tvalueSplit: /([A-z]+\\(.+\\))|(([A-z0-9#-.]+?)(?=\\s|$))/ig\r\n\t\t\t},\r\n\t\t\t/************\r\n\t\t\t Lists\r\n\t\t\t ************/\r\n\r\n\t\t\tLists: {\r\n\t\t\t\tcolors: [\"fill\", \"stroke\", \"stopColor\", \"color\", \"backgroundColor\", \"borderColor\", \"borderTopColor\", \"borderRightColor\", \"borderBottomColor\", \"borderLeftColor\", \"outlineColor\"],\r\n\t\t\t\ttransformsBase: [\"translateX\", \"translateY\", \"scale\", \"scaleX\", \"scaleY\", \"skewX\", \"skewY\", \"rotateZ\"],\r\n\t\t\t\ttransforms3D: [\"transformPerspective\", \"translateZ\", \"scaleZ\", \"rotateX\", \"rotateY\"],\r\n\t\t\t\tunits: [\r\n\t\t\t\t\t\"%\", // relative\r\n\t\t\t\t\t\"em\", \"ex\", \"ch\", \"rem\", // font relative\r\n\t\t\t\t\t\"vw\", \"vh\", \"vmin\", \"vmax\", // viewport relative\r\n\t\t\t\t\t\"cm\", \"mm\", \"Q\", \"in\", \"pc\", \"pt\", \"px\", // absolute lengths\r\n\t\t\t\t\t\"deg\", \"grad\", \"rad\", \"turn\", // angles\r\n\t\t\t\t\t\"s\", \"ms\" // time\r\n\t\t\t\t],\r\n\t\t\t\tcolorNames: {\r\n\t\t\t\t\t\"aliceblue\": \"240,248,255\",\r\n\t\t\t\t\t\"antiquewhite\": \"250,235,215\",\r\n\t\t\t\t\t\"aquamarine\": \"127,255,212\",\r\n\t\t\t\t\t\"aqua\": \"0,255,255\",\r\n\t\t\t\t\t\"azure\": \"240,255,255\",\r\n\t\t\t\t\t\"beige\": \"245,245,220\",\r\n\t\t\t\t\t\"bisque\": \"255,228,196\",\r\n\t\t\t\t\t\"black\": \"0,0,0\",\r\n\t\t\t\t\t\"blanchedalmond\": \"255,235,205\",\r\n\t\t\t\t\t\"blueviolet\": \"138,43,226\",\r\n\t\t\t\t\t\"blue\": \"0,0,255\",\r\n\t\t\t\t\t\"brown\": \"165,42,42\",\r\n\t\t\t\t\t\"burlywood\": \"222,184,135\",\r\n\t\t\t\t\t\"cadetblue\": \"95,158,160\",\r\n\t\t\t\t\t\"chartreuse\": \"127,255,0\",\r\n\t\t\t\t\t\"chocolate\": \"210,105,30\",\r\n\t\t\t\t\t\"coral\": \"255,127,80\",\r\n\t\t\t\t\t\"cornflowerblue\": \"100,149,237\",\r\n\t\t\t\t\t\"cornsilk\": \"255,248,220\",\r\n\t\t\t\t\t\"crimson\": \"220,20,60\",\r\n\t\t\t\t\t\"cyan\": \"0,255,255\",\r\n\t\t\t\t\t\"darkblue\": \"0,0,139\",\r\n\t\t\t\t\t\"darkcyan\": \"0,139,139\",\r\n\t\t\t\t\t\"darkgoldenrod\": \"184,134,11\",\r\n\t\t\t\t\t\"darkgray\": \"169,169,169\",\r\n\t\t\t\t\t\"darkgrey\": \"169,169,169\",\r\n\t\t\t\t\t\"darkgreen\": \"0,100,0\",\r\n\t\t\t\t\t\"darkkhaki\": \"189,183,107\",\r\n\t\t\t\t\t\"darkmagenta\": \"139,0,139\",\r\n\t\t\t\t\t\"darkolivegreen\": \"85,107,47\",\r\n\t\t\t\t\t\"darkorange\": \"255,140,0\",\r\n\t\t\t\t\t\"darkorchid\": \"153,50,204\",\r\n\t\t\t\t\t\"darkred\": \"139,0,0\",\r\n\t\t\t\t\t\"darksalmon\": \"233,150,122\",\r\n\t\t\t\t\t\"darkseagreen\": \"143,188,143\",\r\n\t\t\t\t\t\"darkslateblue\": \"72,61,139\",\r\n\t\t\t\t\t\"darkslategray\": \"47,79,79\",\r\n\t\t\t\t\t\"darkturquoise\": \"0,206,209\",\r\n\t\t\t\t\t\"darkviolet\": \"148,0,211\",\r\n\t\t\t\t\t\"deeppink\": \"255,20,147\",\r\n\t\t\t\t\t\"deepskyblue\": \"0,191,255\",\r\n\t\t\t\t\t\"dimgray\": \"105,105,105\",\r\n\t\t\t\t\t\"dimgrey\": \"105,105,105\",\r\n\t\t\t\t\t\"dodgerblue\": \"30,144,255\",\r\n\t\t\t\t\t\"firebrick\": \"178,34,34\",\r\n\t\t\t\t\t\"floralwhite\": \"255,250,240\",\r\n\t\t\t\t\t\"forestgreen\": \"34,139,34\",\r\n\t\t\t\t\t\"fuchsia\": \"255,0,255\",\r\n\t\t\t\t\t\"gainsboro\": \"220,220,220\",\r\n\t\t\t\t\t\"ghostwhite\": \"248,248,255\",\r\n\t\t\t\t\t\"gold\": \"255,215,0\",\r\n\t\t\t\t\t\"goldenrod\": \"218,165,32\",\r\n\t\t\t\t\t\"gray\": \"128,128,128\",\r\n\t\t\t\t\t\"grey\": \"128,128,128\",\r\n\t\t\t\t\t\"greenyellow\": \"173,255,47\",\r\n\t\t\t\t\t\"green\": \"0,128,0\",\r\n\t\t\t\t\t\"honeydew\": \"240,255,240\",\r\n\t\t\t\t\t\"hotpink\": \"255,105,180\",\r\n\t\t\t\t\t\"indianred\": \"205,92,92\",\r\n\t\t\t\t\t\"indigo\": \"75,0,130\",\r\n\t\t\t\t\t\"ivory\": \"255,255,240\",\r\n\t\t\t\t\t\"khaki\": \"240,230,140\",\r\n\t\t\t\t\t\"lavenderblush\": \"255,240,245\",\r\n\t\t\t\t\t\"lavender\": \"230,230,250\",\r\n\t\t\t\t\t\"lawngreen\": \"124,252,0\",\r\n\t\t\t\t\t\"lemonchiffon\": \"255,250,205\",\r\n\t\t\t\t\t\"lightblue\": \"173,216,230\",\r\n\t\t\t\t\t\"lightcoral\": \"240,128,128\",\r\n\t\t\t\t\t\"lightcyan\": \"224,255,255\",\r\n\t\t\t\t\t\"lightgoldenrodyellow\": \"250,250,210\",\r\n\t\t\t\t\t\"lightgray\": \"211,211,211\",\r\n\t\t\t\t\t\"lightgrey\": \"211,211,211\",\r\n\t\t\t\t\t\"lightgreen\": \"144,238,144\",\r\n\t\t\t\t\t\"lightpink\": \"255,182,193\",\r\n\t\t\t\t\t\"lightsalmon\": \"255,160,122\",\r\n\t\t\t\t\t\"lightseagreen\": \"32,178,170\",\r\n\t\t\t\t\t\"lightskyblue\": \"135,206,250\",\r\n\t\t\t\t\t\"lightslategray\": \"119,136,153\",\r\n\t\t\t\t\t\"lightsteelblue\": \"176,196,222\",\r\n\t\t\t\t\t\"lightyellow\": \"255,255,224\",\r\n\t\t\t\t\t\"limegreen\": \"50,205,50\",\r\n\t\t\t\t\t\"lime\": \"0,255,0\",\r\n\t\t\t\t\t\"linen\": \"250,240,230\",\r\n\t\t\t\t\t\"magenta\": \"255,0,255\",\r\n\t\t\t\t\t\"maroon\": \"128,0,0\",\r\n\t\t\t\t\t\"mediumaquamarine\": \"102,205,170\",\r\n\t\t\t\t\t\"mediumblue\": \"0,0,205\",\r\n\t\t\t\t\t\"mediumorchid\": \"186,85,211\",\r\n\t\t\t\t\t\"mediumpurple\": \"147,112,219\",\r\n\t\t\t\t\t\"mediumseagreen\": \"60,179,113\",\r\n\t\t\t\t\t\"mediumslateblue\": \"123,104,238\",\r\n\t\t\t\t\t\"mediumspringgreen\": \"0,250,154\",\r\n\t\t\t\t\t\"mediumturquoise\": \"72,209,204\",\r\n\t\t\t\t\t\"mediumvioletred\": \"199,21,133\",\r\n\t\t\t\t\t\"midnightblue\": \"25,25,112\",\r\n\t\t\t\t\t\"mintcream\": \"245,255,250\",\r\n\t\t\t\t\t\"mistyrose\": \"255,228,225\",\r\n\t\t\t\t\t\"moccasin\": \"255,228,181\",\r\n\t\t\t\t\t\"navajowhite\": \"255,222,173\",\r\n\t\t\t\t\t\"navy\": \"0,0,128\",\r\n\t\t\t\t\t\"oldlace\": \"253,245,230\",\r\n\t\t\t\t\t\"olivedrab\": \"107,142,35\",\r\n\t\t\t\t\t\"olive\": \"128,128,0\",\r\n\t\t\t\t\t\"orangered\": \"255,69,0\",\r\n\t\t\t\t\t\"orange\": \"255,165,0\",\r\n\t\t\t\t\t\"orchid\": \"218,112,214\",\r\n\t\t\t\t\t\"palegoldenrod\": \"238,232,170\",\r\n\t\t\t\t\t\"palegreen\": \"152,251,152\",\r\n\t\t\t\t\t\"paleturquoise\": \"175,238,238\",\r\n\t\t\t\t\t\"palevioletred\": \"219,112,147\",\r\n\t\t\t\t\t\"papayawhip\": \"255,239,213\",\r\n\t\t\t\t\t\"peachpuff\": \"255,218,185\",\r\n\t\t\t\t\t\"peru\": \"205,133,63\",\r\n\t\t\t\t\t\"pink\": \"255,192,203\",\r\n\t\t\t\t\t\"plum\": \"221,160,221\",\r\n\t\t\t\t\t\"powderblue\": \"176,224,230\",\r\n\t\t\t\t\t\"purple\": \"128,0,128\",\r\n\t\t\t\t\t\"red\": \"255,0,0\",\r\n\t\t\t\t\t\"rosybrown\": \"188,143,143\",\r\n\t\t\t\t\t\"royalblue\": \"65,105,225\",\r\n\t\t\t\t\t\"saddlebrown\": \"139,69,19\",\r\n\t\t\t\t\t\"salmon\": \"250,128,114\",\r\n\t\t\t\t\t\"sandybrown\": \"244,164,96\",\r\n\t\t\t\t\t\"seagreen\": \"46,139,87\",\r\n\t\t\t\t\t\"seashell\": \"255,245,238\",\r\n\t\t\t\t\t\"sienna\": \"160,82,45\",\r\n\t\t\t\t\t\"silver\": \"192,192,192\",\r\n\t\t\t\t\t\"skyblue\": \"135,206,235\",\r\n\t\t\t\t\t\"slateblue\": \"106,90,205\",\r\n\t\t\t\t\t\"slategray\": \"112,128,144\",\r\n\t\t\t\t\t\"snow\": \"255,250,250\",\r\n\t\t\t\t\t\"springgreen\": \"0,255,127\",\r\n\t\t\t\t\t\"steelblue\": \"70,130,180\",\r\n\t\t\t\t\t\"tan\": \"210,180,140\",\r\n\t\t\t\t\t\"teal\": \"0,128,128\",\r\n\t\t\t\t\t\"thistle\": \"216,191,216\",\r\n\t\t\t\t\t\"tomato\": \"255,99,71\",\r\n\t\t\t\t\t\"turquoise\": \"64,224,208\",\r\n\t\t\t\t\t\"violet\": \"238,130,238\",\r\n\t\t\t\t\t\"wheat\": \"245,222,179\",\r\n\t\t\t\t\t\"whitesmoke\": \"245,245,245\",\r\n\t\t\t\t\t\"white\": \"255,255,255\",\r\n\t\t\t\t\t\"yellowgreen\": \"154,205,50\",\r\n\t\t\t\t\t\"yellow\": \"255,255,0\"\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/************\r\n\t\t\t Hooks\r\n\t\t\t ************/\r\n\r\n\t\t\t/* Hooks allow a subproperty (e.g. \"boxShadowBlur\") of a compound-value CSS property\r\n\t\t\t (e.g. \"boxShadow: X Y Blur Spread Color\") to be animated as if it were a discrete property. */\r\n\t\t\t/* Note: Beyond enabling fine-grained property animation, hooking is necessary since Velocity only\r\n\t\t\t tweens properties with single numeric values; unlike CSS transitions, Velocity does not interpolate compound-values. */\r\n\t\t\tHooks: {\r\n\t\t\t\t/********************\r\n\t\t\t\t Registration\r\n\t\t\t\t ********************/\r\n\r\n\t\t\t\t/* Templates are a concise way of indicating which subproperties must be individually registered for each compound-value CSS property. */\r\n\t\t\t\t/* Each template consists of the compound-value's base name, its constituent subproperty names, and those subproperties' default values. */\r\n\t\t\t\ttemplates: {\r\n\t\t\t\t\t\"textShadow\": [\"Color X Y Blur\", \"black 0px 0px 0px\"],\r\n\t\t\t\t\t\"boxShadow\": [\"Color X Y Blur Spread\", \"black 0px 0px 0px 0px\"],\r\n\t\t\t\t\t\"clip\": [\"Top Right Bottom Left\", \"0px 0px 0px 0px\"],\r\n\t\t\t\t\t\"backgroundPosition\": [\"X Y\", \"0% 0%\"],\r\n\t\t\t\t\t\"transformOrigin\": [\"X Y Z\", \"50% 50% 0px\"],\r\n\t\t\t\t\t\"perspectiveOrigin\": [\"X Y\", \"50% 50%\"]\r\n\t\t\t\t},\r\n\t\t\t\t/* A \"registered\" hook is one that has been converted from its template form into a live,\r\n\t\t\t\t tweenable property. It contains data to associate it with its root property. */\r\n\t\t\t\tregistered: {\r\n\t\t\t\t\t/* Note: A registered hook looks like this ==> textShadowBlur: [ \"textShadow\", 3 ],\r\n\t\t\t\t\t which consists of the subproperty's name, the associated root property's name,\r\n\t\t\t\t\t and the subproperty's position in the root's value. */\r\n\t\t\t\t},\r\n\t\t\t\t/* Convert the templates into individual hooks then append them to the registered object above. */\r\n\t\t\t\tregister: function() {\r\n\t\t\t\t\t/* Color hooks registration: Colors are defaulted to white -- as opposed to black -- since colors that are\r\n\t\t\t\t\t currently set to \"transparent\" default to their respective template below when color-animated,\r\n\t\t\t\t\t and white is typically a closer match to transparent than black is. An exception is made for text (\"color\"),\r\n\t\t\t\t\t which is almost always set closer to black than white. */\r\n\t\t\t\t\tfor (var i = 0; i < CSS.Lists.colors.length; i++) {\r\n\t\t\t\t\t\tvar rgbComponents = (CSS.Lists.colors[i] === \"color\") ? \"0 0 0 1\" : \"255 255 255 1\";\r\n\t\t\t\t\t\tCSS.Hooks.templates[CSS.Lists.colors[i]] = [\"Red Green Blue Alpha\", rgbComponents];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvar rootProperty,\r\n\t\t\t\t\t\t\thookTemplate,\r\n\t\t\t\t\t\t\thookNames;\r\n\r\n\t\t\t\t\t/* In IE, color values inside compound-value properties are positioned at the end the value instead of at the beginning.\r\n\t\t\t\t\t Thus, we re-arrange the templates accordingly. */\r\n\t\t\t\t\tif (IE) {\r\n\t\t\t\t\t\tfor (rootProperty in CSS.Hooks.templates) {\r\n\t\t\t\t\t\t\tif (!CSS.Hooks.templates.hasOwnProperty(rootProperty)) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\thookTemplate = CSS.Hooks.templates[rootProperty];\r\n\t\t\t\t\t\t\thookNames = hookTemplate[0].split(\" \");\r\n\r\n\t\t\t\t\t\t\tvar defaultValues = hookTemplate[1].match(CSS.RegEx.valueSplit);\r\n\r\n\t\t\t\t\t\t\tif (hookNames[0] === \"Color\") {\r\n\t\t\t\t\t\t\t\t/* Reposition both the hook's name and its default value to the end of their respective strings. */\r\n\t\t\t\t\t\t\t\thookNames.push(hookNames.shift());\r\n\t\t\t\t\t\t\t\tdefaultValues.push(defaultValues.shift());\r\n\r\n\t\t\t\t\t\t\t\t/* Replace the existing template for the hook's root property. */\r\n\t\t\t\t\t\t\t\tCSS.Hooks.templates[rootProperty] = [hookNames.join(\" \"), defaultValues.join(\" \")];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Hook registration. */\r\n\t\t\t\t\tfor (rootProperty in CSS.Hooks.templates) {\r\n\t\t\t\t\t\tif (!CSS.Hooks.templates.hasOwnProperty(rootProperty)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\thookTemplate = CSS.Hooks.templates[rootProperty];\r\n\t\t\t\t\t\thookNames = hookTemplate[0].split(\" \");\r\n\r\n\t\t\t\t\t\tfor (var j in hookNames) {\r\n\t\t\t\t\t\t\tif (!hookNames.hasOwnProperty(j)) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tvar fullHookName = rootProperty + hookNames[j],\r\n\t\t\t\t\t\t\t\t\thookPosition = j;\r\n\r\n\t\t\t\t\t\t\t/* For each hook, register its full name (e.g. textShadowBlur) with its root property (e.g. textShadow)\r\n\t\t\t\t\t\t\t and the hook's position in its template's default value string. */\r\n\t\t\t\t\t\t\tCSS.Hooks.registered[fullHookName] = [rootProperty, hookPosition];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t/*****************************\r\n\t\t\t\t Injection and Extraction\r\n\t\t\t\t *****************************/\r\n\r\n\t\t\t\t/* Look up the root property associated with the hook (e.g. return \"textShadow\" for \"textShadowBlur\"). */\r\n\t\t\t\t/* Since a hook cannot be set directly (the browser won't recognize it), style updating for hooks is routed through the hook's root property. */\r\n\t\t\t\tgetRoot: function(property) {\r\n\t\t\t\t\tvar hookData = CSS.Hooks.registered[property];\r\n\r\n\t\t\t\t\tif (hookData) {\r\n\t\t\t\t\t\treturn hookData[0];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* If there was no hook match, return the property name untouched. */\r\n\t\t\t\t\t\treturn property;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tgetUnit: function(str, start) {\r\n\t\t\t\t\tvar unit = (str.substr(start || 0, 5).match(/^[a-z%]+/) || [])[0] || \"\";\r\n\r\n\t\t\t\t\tif (unit && _inArray(CSS.Lists.units, unit)) {\r\n\t\t\t\t\t\treturn unit;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn \"\";\r\n\t\t\t\t},\r\n\t\t\t\tfixColors: function(str) {\r\n\t\t\t\t\treturn str.replace(/(rgba?\\(\\s*)?(\\b[a-z]+\\b)/g, function($0, $1, $2) {\r\n\t\t\t\t\t\tif (CSS.Lists.colorNames.hasOwnProperty($2)) {\r\n\t\t\t\t\t\t\treturn ($1 ? $1 : \"rgba(\") + CSS.Lists.colorNames[$2] + ($1 ? \"\" : \",1)\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn $1 + $2;\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\t/* Convert any rootPropertyValue, null or otherwise, into a space-delimited list of hook values so that\r\n\t\t\t\t the targeted hook can be injected or extracted at its standard position. */\r\n\t\t\t\tcleanRootPropertyValue: function(rootProperty, rootPropertyValue) {\r\n\t\t\t\t\t/* If the rootPropertyValue is wrapped with \"rgb()\", \"clip()\", etc., remove the wrapping to normalize the value before manipulation. */\r\n\t\t\t\t\tif (CSS.RegEx.valueUnwrap.test(rootPropertyValue)) {\r\n\t\t\t\t\t\trootPropertyValue = rootPropertyValue.match(CSS.RegEx.valueUnwrap)[1];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* If rootPropertyValue is a CSS null-value (from which there's inherently no hook value to extract),\r\n\t\t\t\t\t default to the root's default value as defined in CSS.Hooks.templates. */\r\n\t\t\t\t\t/* Note: CSS null-values include \"none\", \"auto\", and \"transparent\". They must be converted into their\r\n\t\t\t\t\t zero-values (e.g. textShadow: \"none\" ==> textShadow: \"0px 0px 0px black\") for hook manipulation to proceed. */\r\n\t\t\t\t\tif (CSS.Values.isCSSNullValue(rootPropertyValue)) {\r\n\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn rootPropertyValue;\r\n\t\t\t\t},\r\n\t\t\t\t/* Extracted the hook's value from its root property's value. This is used to get the starting value of an animating hook. */\r\n\t\t\t\textractValue: function(fullHookName, rootPropertyValue) {\r\n\t\t\t\t\tvar hookData = CSS.Hooks.registered[fullHookName];\r\n\r\n\t\t\t\t\tif (hookData) {\r\n\t\t\t\t\t\tvar hookRoot = hookData[0],\r\n\t\t\t\t\t\t\t\thookPosition = hookData[1];\r\n\r\n\t\t\t\t\t\trootPropertyValue = CSS.Hooks.cleanRootPropertyValue(hookRoot, rootPropertyValue);\r\n\r\n\t\t\t\t\t\t/* Split rootPropertyValue into its constituent hook values then grab the desired hook at its standard position. */\r\n\t\t\t\t\t\treturn rootPropertyValue.toString().match(CSS.RegEx.valueSplit)[hookPosition];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* If the provided fullHookName isn't a registered hook, return the rootPropertyValue that was passed in. */\r\n\t\t\t\t\t\treturn rootPropertyValue;\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t/* Inject the hook's value into its root property's value. This is used to piece back together the root property\r\n\t\t\t\t once Velocity has updated one of its individually hooked values through tweening. */\r\n\t\t\t\tinjectValue: function(fullHookName, hookValue, rootPropertyValue) {\r\n\t\t\t\t\tvar hookData = CSS.Hooks.registered[fullHookName];\r\n\r\n\t\t\t\t\tif (hookData) {\r\n\t\t\t\t\t\tvar hookRoot = hookData[0],\r\n\t\t\t\t\t\t\t\thookPosition = hookData[1],\r\n\t\t\t\t\t\t\t\trootPropertyValueParts,\r\n\t\t\t\t\t\t\t\trootPropertyValueUpdated;\r\n\r\n\t\t\t\t\t\trootPropertyValue = CSS.Hooks.cleanRootPropertyValue(hookRoot, rootPropertyValue);\r\n\r\n\t\t\t\t\t\t/* Split rootPropertyValue into its individual hook values, replace the targeted value with hookValue,\r\n\t\t\t\t\t\t then reconstruct the rootPropertyValue string. */\r\n\t\t\t\t\t\trootPropertyValueParts = rootPropertyValue.toString().match(CSS.RegEx.valueSplit);\r\n\t\t\t\t\t\trootPropertyValueParts[hookPosition] = hookValue;\r\n\t\t\t\t\t\trootPropertyValueUpdated = rootPropertyValueParts.join(\" \");\r\n\r\n\t\t\t\t\t\treturn rootPropertyValueUpdated;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* If the provided fullHookName isn't a registered hook, return the rootPropertyValue that was passed in. */\r\n\t\t\t\t\t\treturn rootPropertyValue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/*******************\r\n\t\t\t Normalizations\r\n\t\t\t *******************/\r\n\r\n\t\t\t/* Normalizations standardize CSS property manipulation by pollyfilling browser-specific implementations (e.g. opacity)\r\n\t\t\t and reformatting special properties (e.g. clip, rgba) to look like standard ones. */\r\n\t\t\tNormalizations: {\r\n\t\t\t\t/* Normalizations are passed a normalization target (either the property's name, its extracted value, or its injected value),\r\n\t\t\t\t the targeted element (which may need to be queried), and the targeted property value. */\r\n\t\t\t\tregistered: {\r\n\t\t\t\t\tclip: function(type, element, propertyValue) {\r\n\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\treturn \"clip\";\r\n\t\t\t\t\t\t\t\t/* Clip needs to be unwrapped and stripped of its commas during extraction. */\r\n\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\tvar extracted;\r\n\r\n\t\t\t\t\t\t\t\t/* If Velocity also extracted this value, skip extraction. */\r\n\t\t\t\t\t\t\t\tif (CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\textracted = propertyValue;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/* Remove the \"rect()\" wrapper. */\r\n\t\t\t\t\t\t\t\t\textracted = propertyValue.toString().match(CSS.RegEx.valueUnwrap);\r\n\r\n\t\t\t\t\t\t\t\t\t/* Strip off commas. */\r\n\t\t\t\t\t\t\t\t\textracted = extracted ? extracted[1].replace(/,(\\s+)?/g, \" \") : propertyValue;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\treturn extracted;\r\n\t\t\t\t\t\t\t\t/* Clip needs to be re-wrapped during injection. */\r\n\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\treturn \"rect(\" + propertyValue + \")\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\tblur: function(type, element, propertyValue) {\r\n\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\treturn Velocity.State.isFirefox ? \"filter\" : \"-webkit-filter\";\r\n\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\tvar extracted = parseFloat(propertyValue);\r\n\r\n\t\t\t\t\t\t\t\t/* If extracted is NaN, meaning the value isn't already extracted. */\r\n\t\t\t\t\t\t\t\tif (!(extracted || extracted === 0)) {\r\n\t\t\t\t\t\t\t\t\tvar blurComponent = propertyValue.toString().match(/blur\\(([0-9]+[A-z]+)\\)/i);\r\n\r\n\t\t\t\t\t\t\t\t\t/* If the filter string had a blur component, return just the blur value and unit type. */\r\n\t\t\t\t\t\t\t\t\tif (blurComponent) {\r\n\t\t\t\t\t\t\t\t\t\textracted = blurComponent[1];\r\n\t\t\t\t\t\t\t\t\t\t/* If the component doesn't exist, default blur to 0. */\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\textracted = 0;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\treturn extracted;\r\n\t\t\t\t\t\t\t\t/* Blur needs to be re-wrapped during injection. */\r\n\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t/* For the blur effect to be fully de-applied, it needs to be set to \"none\" instead of 0. */\r\n\t\t\t\t\t\t\t\tif (!parseFloat(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\treturn \"none\";\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\treturn \"blur(\" + propertyValue + \")\";\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t},\r\n\t\t\t\t\t/* <=IE8 do not support the standard opacity property. They use filter:alpha(opacity=INT) instead. */\r\n\t\t\t\t\topacity: function(type, element, propertyValue) {\r\n\t\t\t\t\t\tif (IE <= 8) {\r\n\t\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\t\treturn \"filter\";\r\n\t\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\t\t/* <=IE8 return a \"filter\" value of \"alpha(opacity=\\d{1,3})\".\r\n\t\t\t\t\t\t\t\t\t Extract the value and convert it to a decimal value to match the standard CSS opacity property's formatting. */\r\n\t\t\t\t\t\t\t\t\tvar extracted = propertyValue.toString().match(/alpha\\(opacity=(.*)\\)/i);\r\n\r\n\t\t\t\t\t\t\t\t\tif (extracted) {\r\n\t\t\t\t\t\t\t\t\t\t/* Convert to decimal value. */\r\n\t\t\t\t\t\t\t\t\t\tpropertyValue = extracted[1] / 100;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t/* When extracting opacity, default to 1 since a null value means opacity hasn't been set. */\r\n\t\t\t\t\t\t\t\t\t\tpropertyValue = 1;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\treturn propertyValue;\r\n\t\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t\t/* Opacified elements are required to have their zoom property set to a non-zero value. */\r\n\t\t\t\t\t\t\t\t\telement.style.zoom = 1;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Setting the filter property on elements with certain font property combinations can result in a\r\n\t\t\t\t\t\t\t\t\t highly unappealing ultra-bolding effect. There's no way to remedy this throughout a tween, but dropping the\r\n\t\t\t\t\t\t\t\t\t value altogether (when opacity hits 1) at leasts ensures that the glitch is gone post-tweening. */\r\n\t\t\t\t\t\t\t\t\tif (parseFloat(propertyValue) >= 1) {\r\n\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t/* As per the filter property's spec, convert the decimal value to a whole number and wrap the value. */\r\n\t\t\t\t\t\t\t\t\t\treturn \"alpha(opacity=\" + parseInt(parseFloat(propertyValue) * 100, 10) + \")\";\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/* With all other browsers, normalization is not required; return the same values that were passed in. */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\t\treturn \"opacity\";\r\n\t\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\t\treturn propertyValue;\r\n\t\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t\treturn propertyValue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t/*****************************\r\n\t\t\t\t Batched Registrations\r\n\t\t\t\t *****************************/\r\n\r\n\t\t\t\t/* Note: Batched normalizations extend the CSS.Normalizations.registered object. */\r\n\t\t\t\tregister: function() {\r\n\r\n\t\t\t\t\t/*****************\r\n\t\t\t\t\t Transforms\r\n\t\t\t\t\t *****************/\r\n\r\n\t\t\t\t\t/* Transforms are the subproperties contained by the CSS \"transform\" property. Transforms must undergo normalization\r\n\t\t\t\t\t so that they can be referenced in a properties map by their individual names. */\r\n\t\t\t\t\t/* Note: When transforms are \"set\", they are actually assigned to a per-element transformCache. When all transform\r\n\t\t\t\t\t setting is complete complete, CSS.flushTransformCache() must be manually called to flush the values to the DOM.\r\n\t\t\t\t\t Transform setting is batched in this way to improve performance: the transform style only needs to be updated\r\n\t\t\t\t\t once when multiple transform subproperties are being animated simultaneously. */\r\n\t\t\t\t\t/* Note: IE9 and Android Gingerbread have support for 2D -- but not 3D -- transforms. Since animating unsupported\r\n\t\t\t\t\t transform properties results in the browser ignoring the *entire* transform string, we prevent these 3D values\r\n\t\t\t\t\t from being normalized for these browsers so that tweening skips these properties altogether\r\n\t\t\t\t\t (since it will ignore them as being unsupported by the browser.) */\r\n\t\t\t\t\tif ((!IE || IE > 9) && !Velocity.State.isGingerbread) {\r\n\t\t\t\t\t\t/* Note: Since the standalone CSS \"perspective\" property and the CSS transform \"perspective\" subproperty\r\n\t\t\t\t\t\t share the same name, the latter is given a unique token within Velocity: \"transformPerspective\". */\r\n\t\t\t\t\t\tCSS.Lists.transformsBase = CSS.Lists.transformsBase.concat(CSS.Lists.transforms3D);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tfor (var i = 0; i < CSS.Lists.transformsBase.length; i++) {\r\n\t\t\t\t\t\t/* Wrap the dynamically generated normalization function in a new scope so that transformName's value is\r\n\t\t\t\t\t\t paired with its respective function. (Otherwise, all functions would take the final for loop's transformName.) */\r\n\t\t\t\t\t\t(function() {\r\n\t\t\t\t\t\t\tvar transformName = CSS.Lists.transformsBase[i];\r\n\r\n\t\t\t\t\t\t\tCSS.Normalizations.registered[transformName] = function(type, element, propertyValue) {\r\n\t\t\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\t\t\t/* The normalized property name is the parent \"transform\" property -- the property that is actually set in CSS. */\r\n\t\t\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\t\t\treturn \"transform\";\r\n\t\t\t\t\t\t\t\t\t\t/* Transform values are cached onto a per-element transformCache object. */\r\n\t\t\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\t\t\t/* If this transform has yet to be assigned a value, return its null value. */\r\n\t\t\t\t\t\t\t\t\t\tif (Data(element) === undefined || Data(element).transformCache[transformName] === undefined) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Scale CSS.Lists.transformsBase default to 1 whereas all other transform properties default to 0. */\r\n\t\t\t\t\t\t\t\t\t\t\treturn /^scale/i.test(transformName) ? 1 : 0;\r\n\t\t\t\t\t\t\t\t\t\t\t/* When transform values are set, they are wrapped in parentheses as per the CSS spec.\r\n\t\t\t\t\t\t\t\t\t\t\t Thus, when extracting their values (for tween calculations), we strip off the parentheses. */\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\treturn Data(element).transformCache[transformName].replace(/[()]/g, \"\");\r\n\t\t\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t\t\tvar invalid = false;\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* If an individual transform property contains an unsupported unit type, the browser ignores the *entire* transform property.\r\n\t\t\t\t\t\t\t\t\t\t Thus, protect users from themselves by skipping setting for transform values supplied with invalid unit types. */\r\n\t\t\t\t\t\t\t\t\t\t/* Switch on the base transform type; ignore the axis by removing the last letter from the transform's name. */\r\n\t\t\t\t\t\t\t\t\t\tswitch (transformName.substr(0, transformName.length - 1)) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Whitelist unit types for each transform. */\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"translate\":\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid = !/(%|px|em|rem|vw|vh|\\d)$/i.test(propertyValue);\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t\t/* Since an axis-free \"scale\" property is supported as well, a little hack is used here to detect it by chopping off its last letter. */\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"scal\":\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"scale\":\r\n\t\t\t\t\t\t\t\t\t\t\t\t/* Chrome on Android has a bug in which scaled elements blur if their initial scale\r\n\t\t\t\t\t\t\t\t\t\t\t\t value is below 1 (which can happen with forcefeeding). Thus, we detect a yet-unset scale property\r\n\t\t\t\t\t\t\t\t\t\t\t\t and ensure that its first value is always 1. More info: http://stackoverflow.com/questions/10417890/css3-animations-with-transform-causes-blurred-elements-on-webkit/10417962#10417962 */\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (Velocity.State.isAndroid && Data(element).transformCache[transformName] === undefined && propertyValue < 1) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tpropertyValue = 1;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid = !/(\\d)$/i.test(propertyValue);\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"skew\":\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid = !/(deg|\\d)$/i.test(propertyValue);\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\tcase \"rotate\":\r\n\t\t\t\t\t\t\t\t\t\t\t\tinvalid = !/(deg|\\d)$/i.test(propertyValue);\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (!invalid) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* As per the CSS spec, wrap the value in parentheses. */\r\n\t\t\t\t\t\t\t\t\t\t\tData(element).transformCache[transformName] = \"(\" + propertyValue + \")\";\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Although the value is set on the transformCache object, return the newly-updated value for the calling code to process as normal. */\r\n\t\t\t\t\t\t\t\t\t\treturn Data(element).transformCache[transformName];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t})();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*************\r\n\t\t\t\t\t Colors\r\n\t\t\t\t\t *************/\r\n\r\n\t\t\t\t\t/* Since Velocity only animates a single numeric value per property, color animation is achieved by hooking the individual RGBA components of CSS color properties.\r\n\t\t\t\t\t Accordingly, color values must be normalized (e.g. \"#ff0000\", \"red\", and \"rgb(255, 0, 0)\" ==> \"255 0 0 1\") so that their components can be injected/extracted by CSS.Hooks logic. */\r\n\t\t\t\t\tfor (var j = 0; j < CSS.Lists.colors.length; j++) {\r\n\t\t\t\t\t\t/* Wrap the dynamically generated normalization function in a new scope so that colorName's value is paired with its respective function.\r\n\t\t\t\t\t\t (Otherwise, all functions would take the final for loop's colorName.) */\r\n\t\t\t\t\t\t(function() {\r\n\t\t\t\t\t\t\tvar colorName = CSS.Lists.colors[j];\r\n\r\n\t\t\t\t\t\t\t/* Note: In IE<=8, which support rgb but not rgba, color properties are reverted to rgb by stripping off the alpha component. */\r\n\t\t\t\t\t\t\tCSS.Normalizations.registered[colorName] = function(type, element, propertyValue) {\r\n\t\t\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\t\t\treturn colorName;\r\n\t\t\t\t\t\t\t\t\t\t/* Convert all color values into the rgb format. (Old IE can return hex values and color names instead of rgb/rgba.) */\r\n\t\t\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\t\t\tvar extracted;\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* If the color is already in its hookable form (e.g. \"255 255 255 1\") due to having been previously extracted, skip extraction. */\r\n\t\t\t\t\t\t\t\t\t\tif (CSS.RegEx.wrappedValueAlreadyExtracted.test(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\t\t\textracted = propertyValue;\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tvar converted,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tcolorNames = {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tblack: \"rgb(0, 0, 0)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tblue: \"rgb(0, 0, 255)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgray: \"rgb(128, 128, 128)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tgreen: \"rgb(0, 128, 0)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tred: \"rgb(255, 0, 0)\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\twhite: \"rgb(255, 255, 255)\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/* Convert color names to rgb. */\r\n\t\t\t\t\t\t\t\t\t\t\tif (/^[A-z]+$/i.test(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (colorNames[propertyValue] !== undefined) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tconverted = colorNames[propertyValue];\r\n\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/* If an unmatched color name is provided, default to black. */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tconverted = colorNames.black;\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t/* Convert hex values to rgb. */\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (CSS.RegEx.isHex.test(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconverted = \"rgb(\" + CSS.Values.hexToRgb(propertyValue).join(\" \") + \")\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t/* If the provided color doesn't match any of the accepted color formats, default to black. */\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (!(/^rgba?\\(/i.test(propertyValue))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tconverted = colorNames.black;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/* Remove the surrounding \"rgb/rgba()\" string then replace commas with spaces and strip\r\n\t\t\t\t\t\t\t\t\t\t\t repeated spaces (in case the value included spaces to begin with). */\r\n\t\t\t\t\t\t\t\t\t\t\textracted = (converted || propertyValue).toString().match(CSS.RegEx.valueUnwrap)[1].replace(/,(\\s+)?/g, \" \");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* So long as this isn't <=IE8, add a fourth (alpha) component if it's missing and default it to 1 (visible). */\r\n\t\t\t\t\t\t\t\t\t\tif ((!IE || IE > 8) && extracted.split(\" \").length === 3) {\r\n\t\t\t\t\t\t\t\t\t\t\textracted += \" 1\";\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\treturn extracted;\r\n\t\t\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t\t\t/* If we have a pattern then it might already have the right values */\r\n\t\t\t\t\t\t\t\t\t\tif (/^rgb/.test(propertyValue)) {\r\n\t\t\t\t\t\t\t\t\t\t\treturn propertyValue;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* If this is IE<=8 and an alpha component exists, strip it off. */\r\n\t\t\t\t\t\t\t\t\t\tif (IE <= 8) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (propertyValue.split(\" \").length === 4) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tpropertyValue = propertyValue.split(/\\s+/).slice(0, 3).join(\" \");\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t/* Otherwise, add a fourth (alpha) component if it's missing and default it to 1 (visible). */\r\n\t\t\t\t\t\t\t\t\t\t} else if (propertyValue.split(\" \").length === 3) {\r\n\t\t\t\t\t\t\t\t\t\t\tpropertyValue += \" 1\";\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Re-insert the browser-appropriate wrapper(\"rgb/rgba()\"), insert commas, and strip off decimal units\r\n\t\t\t\t\t\t\t\t\t\t on all values but the fourth (R, G, and B only accept whole numbers). */\r\n\t\t\t\t\t\t\t\t\t\treturn (IE <= 8 ? \"rgb\" : \"rgba\") + \"(\" + propertyValue.replace(/\\s+/g, \",\").replace(/\\.(\\d)+(?=,)/g, \"\") + \")\";\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t})();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/**************\r\n\t\t\t\t\t Dimensions\r\n\t\t\t\t\t **************/\r\n\t\t\t\t\tfunction augmentDimension(name, element, wantInner) {\r\n\t\t\t\t\t\tvar isBorderBox = CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() === \"border-box\";\r\n\r\n\t\t\t\t\t\tif (isBorderBox === (wantInner || false)) {\r\n\t\t\t\t\t\t\t/* in box-sizing mode, the CSS width / height accessors already give the outerWidth / outerHeight. */\r\n\t\t\t\t\t\t\tvar i,\r\n\t\t\t\t\t\t\t\t\tvalue,\r\n\t\t\t\t\t\t\t\t\taugment = 0,\r\n\t\t\t\t\t\t\t\t\tsides = name === \"width\" ? [\"Left\", \"Right\"] : [\"Top\", \"Bottom\"],\r\n\t\t\t\t\t\t\t\t\tfields = [\"padding\" + sides[0], \"padding\" + sides[1], \"border\" + sides[0] + \"Width\", \"border\" + sides[1] + \"Width\"];\r\n\r\n\t\t\t\t\t\t\tfor (i = 0; i < fields.length; i++) {\r\n\t\t\t\t\t\t\t\tvalue = parseFloat(CSS.getPropertyValue(element, fields[i]));\r\n\t\t\t\t\t\t\t\tif (!isNaN(value)) {\r\n\t\t\t\t\t\t\t\t\taugment += value;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\treturn wantInner ? -augment : augment;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfunction getDimension(name, wantInner) {\r\n\t\t\t\t\t\treturn function(type, element, propertyValue) {\r\n\t\t\t\t\t\t\tswitch (type) {\r\n\t\t\t\t\t\t\t\tcase \"name\":\r\n\t\t\t\t\t\t\t\t\treturn name;\r\n\t\t\t\t\t\t\t\tcase \"extract\":\r\n\t\t\t\t\t\t\t\t\treturn parseFloat(propertyValue) + augmentDimension(name, element, wantInner);\r\n\t\t\t\t\t\t\t\tcase \"inject\":\r\n\t\t\t\t\t\t\t\t\treturn (parseFloat(propertyValue) - augmentDimension(name, element, wantInner)) + \"px\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t}\r\n\t\t\t\t\tCSS.Normalizations.registered.innerWidth = getDimension(\"width\", true);\r\n\t\t\t\t\tCSS.Normalizations.registered.innerHeight = getDimension(\"height\", true);\r\n\t\t\t\t\tCSS.Normalizations.registered.outerWidth = getDimension(\"width\");\r\n\t\t\t\t\tCSS.Normalizations.registered.outerHeight = getDimension(\"height\");\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/************************\r\n\t\t\t CSS Property Names\r\n\t\t\t ************************/\r\n\r\n\t\t\tNames: {\r\n\t\t\t\t/* Camelcase a property name into its JavaScript notation (e.g. \"background-color\" ==> \"backgroundColor\").\r\n\t\t\t\t Camelcasing is used to normalize property names between and across calls. */\r\n\t\t\t\tcamelCase: function(property) {\r\n\t\t\t\t\treturn property.replace(/-(\\w)/g, function(match, subMatch) {\r\n\t\t\t\t\t\treturn subMatch.toUpperCase();\r\n\t\t\t\t\t});\r\n\t\t\t\t},\r\n\t\t\t\t/* For SVG elements, some properties (namely, dimensional ones) are GET/SET via the element's HTML attributes (instead of via CSS styles). */\r\n\t\t\t\tSVGAttribute: function(property) {\r\n\t\t\t\t\tvar SVGAttributes = \"width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2\";\r\n\r\n\t\t\t\t\t/* Certain browsers require an SVG transform to be applied as an attribute. (Otherwise, application via CSS is preferable due to 3D support.) */\r\n\t\t\t\t\tif (IE || (Velocity.State.isAndroid && !Velocity.State.isChrome)) {\r\n\t\t\t\t\t\tSVGAttributes += \"|transform\";\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn new RegExp(\"^(\" + SVGAttributes + \")$\", \"i\").test(property);\r\n\t\t\t\t},\r\n\t\t\t\t/* Determine whether a property should be set with a vendor prefix. */\r\n\t\t\t\t/* If a prefixed version of the property exists, return it. Otherwise, return the original property name.\r\n\t\t\t\t If the property is not at all supported by the browser, return a false flag. */\r\n\t\t\t\tprefixCheck: function(property) {\r\n\t\t\t\t\t/* If this property has already been checked, return the cached value. */\r\n\t\t\t\t\tif (Velocity.State.prefixMatches[property]) {\r\n\t\t\t\t\t\treturn [Velocity.State.prefixMatches[property], true];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar vendors = [\"\", \"Webkit\", \"Moz\", \"ms\", \"O\"];\r\n\r\n\t\t\t\t\t\tfor (var i = 0, vendorsLength = vendors.length; i < vendorsLength; i++) {\r\n\t\t\t\t\t\t\tvar propertyPrefixed;\r\n\r\n\t\t\t\t\t\t\tif (i === 0) {\r\n\t\t\t\t\t\t\t\tpropertyPrefixed = property;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t/* Capitalize the first letter of the property to conform to JavaScript vendor prefix notation (e.g. webkitFilter). */\r\n\t\t\t\t\t\t\t\tpropertyPrefixed = vendors[i] + property.replace(/^\\w/, function(match) {\r\n\t\t\t\t\t\t\t\t\treturn match.toUpperCase();\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Check if the browser supports this property as prefixed. */\r\n\t\t\t\t\t\t\tif (Type.isString(Velocity.State.prefixElement.style[propertyPrefixed])) {\r\n\t\t\t\t\t\t\t\t/* Cache the match. */\r\n\t\t\t\t\t\t\t\tVelocity.State.prefixMatches[property] = propertyPrefixed;\r\n\r\n\t\t\t\t\t\t\t\treturn [propertyPrefixed, true];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* If the browser doesn't support this property in any form, include a false flag so that the caller can decide how to proceed. */\r\n\t\t\t\t\t\treturn [property, false];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/************************\r\n\t\t\t CSS Property Values\r\n\t\t\t ************************/\r\n\r\n\t\t\tValues: {\r\n\t\t\t\t/* Hex to RGB conversion. Copyright Tim Down: http://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb */\r\n\t\t\t\thexToRgb: function(hex) {\r\n\t\t\t\t\tvar shortformRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i,\r\n\t\t\t\t\t\t\tlongformRegex = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i,\r\n\t\t\t\t\t\t\trgbParts;\r\n\r\n\t\t\t\t\thex = hex.replace(shortformRegex, function(m, r, g, b) {\r\n\t\t\t\t\t\treturn r + r + g + g + b + b;\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\trgbParts = longformRegex.exec(hex);\r\n\r\n\t\t\t\t\treturn rgbParts ? [parseInt(rgbParts[1], 16), parseInt(rgbParts[2], 16), parseInt(rgbParts[3], 16)] : [0, 0, 0];\r\n\t\t\t\t},\r\n\t\t\t\tisCSSNullValue: function(value) {\r\n\t\t\t\t\t/* The browser defaults CSS values that have not been set to either 0 or one of several possible null-value strings.\r\n\t\t\t\t\t Thus, we check for both falsiness and these special strings. */\r\n\t\t\t\t\t/* Null-value checking is performed to default the special strings to 0 (for the sake of tweening) or their hook\r\n\t\t\t\t\t templates as defined as CSS.Hooks (for the sake of hook injection/extraction). */\r\n\t\t\t\t\t/* Note: Chrome returns \"rgba(0, 0, 0, 0)\" for an undefined color whereas IE returns \"transparent\". */\r\n\t\t\t\t\treturn (!value || /^(none|auto|transparent|(rgba\\(0, ?0, ?0, ?0\\)))$/i.test(value));\r\n\t\t\t\t},\r\n\t\t\t\t/* Retrieve a property's default unit type. Used for assigning a unit type when one is not supplied by the user. */\r\n\t\t\t\tgetUnitType: function(property) {\r\n\t\t\t\t\tif (/^(rotate|skew)/i.test(property)) {\r\n\t\t\t\t\t\treturn \"deg\";\r\n\t\t\t\t\t} else if (/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(property)) {\r\n\t\t\t\t\t\t/* The above properties are unitless. */\r\n\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* Default to px for all other properties. */\r\n\t\t\t\t\t\treturn \"px\";\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t/* HTML elements default to an associated display type when they're not set to display:none. */\r\n\t\t\t\t/* Note: This function is used for correctly setting the non-\"none\" display value in certain Velocity redirects, such as fadeIn/Out. */\r\n\t\t\t\tgetDisplayType: function(element) {\r\n\t\t\t\t\tvar tagName = element && element.tagName.toString().toLowerCase();\r\n\r\n\t\t\t\t\tif (/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(tagName)) {\r\n\t\t\t\t\t\treturn \"inline\";\r\n\t\t\t\t\t} else if (/^(li)$/i.test(tagName)) {\r\n\t\t\t\t\t\treturn \"list-item\";\r\n\t\t\t\t\t} else if (/^(tr)$/i.test(tagName)) {\r\n\t\t\t\t\t\treturn \"table-row\";\r\n\t\t\t\t\t} else if (/^(table)$/i.test(tagName)) {\r\n\t\t\t\t\t\treturn \"table\";\r\n\t\t\t\t\t} else if (/^(tbody)$/i.test(tagName)) {\r\n\t\t\t\t\t\treturn \"table-row-group\";\r\n\t\t\t\t\t\t/* Default to \"block\" when no match is found. */\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn \"block\";\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\t/* The class add/remove functions are used to temporarily apply a \"velocity-animating\" class to elements while they're animating. */\r\n\t\t\t\taddClass: function(element, className) {\r\n\t\t\t\t\tif (element) {\r\n\t\t\t\t\t\tif (element.classList) {\r\n\t\t\t\t\t\t\telement.classList.add(className);\r\n\t\t\t\t\t\t} else if (Type.isString(element.className)) {\r\n\t\t\t\t\t\t\t// Element.className is around 15% faster then set/getAttribute\r\n\t\t\t\t\t\t\telement.className += (element.className.length ? \" \" : \"\") + className;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// Work around for IE strict mode animating SVG - and anything else that doesn't behave correctly - the same way jQuery does it\r\n\t\t\t\t\t\t\tvar currentClass = element.getAttribute(IE <= 7 ? \"className\" : \"class\") || \"\";\r\n\r\n\t\t\t\t\t\t\telement.setAttribute(\"class\", currentClass + (currentClass ? \" \" : \"\") + className);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\tremoveClass: function(element, className) {\r\n\t\t\t\t\tif (element) {\r\n\t\t\t\t\t\tif (element.classList) {\r\n\t\t\t\t\t\t\telement.classList.remove(className);\r\n\t\t\t\t\t\t} else if (Type.isString(element.className)) {\r\n\t\t\t\t\t\t\t// Element.className is around 15% faster then set/getAttribute\r\n\t\t\t\t\t\t\t// TODO: Need some jsperf tests on performance - can we get rid of the regex and maybe use split / array manipulation?\r\n\t\t\t\t\t\t\telement.className = element.className.toString().replace(new RegExp(\"(^|\\\\s)\" + className.split(\" \").join(\"|\") + \"(\\\\s|$)\", \"gi\"), \" \");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// Work around for IE strict mode animating SVG - and anything else that doesn't behave correctly - the same way jQuery does it\r\n\t\t\t\t\t\t\tvar currentClass = element.getAttribute(IE <= 7 ? \"className\" : \"class\") || \"\";\r\n\r\n\t\t\t\t\t\t\telement.setAttribute(\"class\", currentClass.replace(new RegExp(\"(^|\\s)\" + className.split(\" \").join(\"|\") + \"(\\s|$)\", \"gi\"), \" \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t/****************************\r\n\t\t\t Style Getting & Setting\r\n\t\t\t ****************************/\r\n\r\n\t\t\t/* The singular getPropertyValue, which routes the logic for all normalizations, hooks, and standard CSS properties. */\r\n\t\t\tgetPropertyValue: function(element, property, rootPropertyValue, forceStyleLookup) {\r\n\t\t\t\t/* Get an element's computed property value. */\r\n\t\t\t\t/* Note: Retrieving the value of a CSS property cannot simply be performed by checking an element's\r\n\t\t\t\t style attribute (which only reflects user-defined values). Instead, the browser must be queried for a property's\r\n\t\t\t\t *computed* value. You can read more about getComputedStyle here: https://developer.mozilla.org/en/docs/Web/API/window.getComputedStyle */\r\n\t\t\t\tfunction computePropertyValue(element, property) {\r\n\t\t\t\t\t/* When box-sizing isn't set to border-box, height and width style values are incorrectly computed when an\r\n\t\t\t\t\t element's scrollbars are visible (which expands the element's dimensions). Thus, we defer to the more accurate\r\n\t\t\t\t\t offsetHeight/Width property, which includes the total dimensions for interior, border, padding, and scrollbar.\r\n\t\t\t\t\t We subtract border and padding to get the sum of interior + scrollbar. */\r\n\t\t\t\t\tvar computedValue = 0;\r\n\r\n\t\t\t\t\t/* IE<=8 doesn't support window.getComputedStyle, thus we defer to jQuery, which has an extensive array\r\n\t\t\t\t\t of hacks to accurately retrieve IE8 property values. Re-implementing that logic here is not worth bloating the\r\n\t\t\t\t\t codebase for a dying browser. The performance repercussions of using jQuery here are minimal since\r\n\t\t\t\t\t Velocity is optimized to rarely (and sometimes never) query the DOM. Further, the $.css() codepath isn't that slow. */\r\n\t\t\t\t\tif (IE <= 8) {\r\n\t\t\t\t\t\tcomputedValue = $.css(element, property); /* GET */\r\n\t\t\t\t\t\t/* All other browsers support getComputedStyle. The returned live object reference is cached onto its\r\n\t\t\t\t\t\t associated element so that it does not need to be refetched upon every GET. */\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* Browsers do not return height and width values for elements that are set to display:\"none\". Thus, we temporarily\r\n\t\t\t\t\t\t toggle display to the element type's default value. */\r\n\t\t\t\t\t\tvar toggleDisplay = false;\r\n\r\n\t\t\t\t\t\tif (/^(width|height)$/.test(property) && CSS.getPropertyValue(element, \"display\") === 0) {\r\n\t\t\t\t\t\t\ttoggleDisplay = true;\r\n\t\t\t\t\t\t\tCSS.setPropertyValue(element, \"display\", CSS.Values.getDisplayType(element));\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tvar revertDisplay = function() {\r\n\t\t\t\t\t\t\tif (toggleDisplay) {\r\n\t\t\t\t\t\t\t\tCSS.setPropertyValue(element, \"display\", \"none\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tif (!forceStyleLookup) {\r\n\t\t\t\t\t\t\tif (property === \"height\" && CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() !== \"border-box\") {\r\n\t\t\t\t\t\t\t\tvar contentBoxHeight = element.offsetHeight - (parseFloat(CSS.getPropertyValue(element, \"borderTopWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"borderBottomWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingTop\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingBottom\")) || 0);\r\n\t\t\t\t\t\t\t\trevertDisplay();\r\n\r\n\t\t\t\t\t\t\t\treturn contentBoxHeight;\r\n\t\t\t\t\t\t\t} else if (property === \"width\" && CSS.getPropertyValue(element, \"boxSizing\").toString().toLowerCase() !== \"border-box\") {\r\n\t\t\t\t\t\t\t\tvar contentBoxWidth = element.offsetWidth - (parseFloat(CSS.getPropertyValue(element, \"borderLeftWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"borderRightWidth\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingLeft\")) || 0) - (parseFloat(CSS.getPropertyValue(element, \"paddingRight\")) || 0);\r\n\t\t\t\t\t\t\t\trevertDisplay();\r\n\r\n\t\t\t\t\t\t\t\treturn contentBoxWidth;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tvar computedStyle;\r\n\r\n\t\t\t\t\t\t/* For elements that Velocity hasn't been called on directly (e.g. when Velocity queries the DOM on behalf\r\n\t\t\t\t\t\t of a parent of an element its animating), perform a direct getComputedStyle lookup since the object isn't cached. */\r\n\t\t\t\t\t\tif (Data(element) === undefined) {\r\n\t\t\t\t\t\t\tcomputedStyle = window.getComputedStyle(element, null); /* GET */\r\n\t\t\t\t\t\t\t/* If the computedStyle object has yet to be cached, do so now. */\r\n\t\t\t\t\t\t} else if (!Data(element).computedStyle) {\r\n\t\t\t\t\t\t\tcomputedStyle = Data(element).computedStyle = window.getComputedStyle(element, null); /* GET */\r\n\t\t\t\t\t\t\t/* If computedStyle is cached, use it. */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcomputedStyle = Data(element).computedStyle;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* IE and Firefox do not return a value for the generic borderColor -- they only return individual values for each border side's color.\r\n\t\t\t\t\t\t Also, in all browsers, when border colors aren't all the same, a compound value is returned that Velocity isn't setup to parse.\r\n\t\t\t\t\t\t So, as a polyfill for querying individual border side colors, we just return the top border's color and animate all borders from that value. */\r\n\t\t\t\t\t\tif (property === \"borderColor\") {\r\n\t\t\t\t\t\t\tproperty = \"borderTopColor\";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* IE9 has a bug in which the \"filter\" property must be accessed from computedStyle using the getPropertyValue method\r\n\t\t\t\t\t\t instead of a direct property lookup. The getPropertyValue method is slower than a direct lookup, which is why we avoid it by default. */\r\n\t\t\t\t\t\tif (IE === 9 && property === \"filter\") {\r\n\t\t\t\t\t\t\tcomputedValue = computedStyle.getPropertyValue(property); /* GET */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcomputedValue = computedStyle[property];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Fall back to the property's style value (if defined) when computedValue returns nothing,\r\n\t\t\t\t\t\t which can happen when the element hasn't been painted. */\r\n\t\t\t\t\t\tif (computedValue === \"\" || computedValue === null) {\r\n\t\t\t\t\t\t\tcomputedValue = element.style[property];\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\trevertDisplay();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* For top, right, bottom, and left (TRBL) values that are set to \"auto\" on elements of \"fixed\" or \"absolute\" position,\r\n\t\t\t\t\t defer to jQuery for converting \"auto\" to a numeric value. (For elements with a \"static\" or \"relative\" position, \"auto\" has the same\r\n\t\t\t\t\t effect as being set to 0, so no conversion is necessary.) */\r\n\t\t\t\t\t/* An example of why numeric conversion is necessary: When an element with \"position:absolute\" has an untouched \"left\"\r\n\t\t\t\t\t property, which reverts to \"auto\", left's value is 0 relative to its parent element, but is often non-zero relative\r\n\t\t\t\t\t to its *containing* (not parent) element, which is the nearest \"position:relative\" ancestor or the viewport (and always the viewport in the case of \"position:fixed\"). */\r\n\t\t\t\t\tif (computedValue === \"auto\" && /^(top|right|bottom|left)$/i.test(property)) {\r\n\t\t\t\t\t\tvar position = computePropertyValue(element, \"position\"); /* GET */\r\n\r\n\t\t\t\t\t\t/* For absolute positioning, jQuery's $.position() only returns values for top and left;\r\n\t\t\t\t\t\t right and bottom will have their \"auto\" value reverted to 0. */\r\n\t\t\t\t\t\t/* Note: A jQuery object must be created here since jQuery doesn't have a low-level alias for $.position().\r\n\t\t\t\t\t\t Not a big deal since we're currently in a GET batch anyway. */\r\n\t\t\t\t\t\tif (position === \"fixed\" || (position === \"absolute\" && /top|left/i.test(property))) {\r\n\t\t\t\t\t\t\t/* Note: jQuery strips the pixel unit from its returned values; we re-add it here to conform with computePropertyValue's behavior. */\r\n\t\t\t\t\t\t\tcomputedValue = $(element).position()[property] + \"px\"; /* GET */\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\treturn computedValue;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tvar propertyValue;\r\n\r\n\t\t\t\t/* If this is a hooked property (e.g. \"clipLeft\" instead of the root property of \"clip\"),\r\n\t\t\t\t extract the hook's value from a normalized rootPropertyValue using CSS.Hooks.extractValue(). */\r\n\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\tvar hook = property,\r\n\t\t\t\t\t\t\thookRoot = CSS.Hooks.getRoot(hook);\r\n\r\n\t\t\t\t\t/* If a cached rootPropertyValue wasn't passed in (which Velocity always attempts to do in order to avoid requerying the DOM),\r\n\t\t\t\t\t query the DOM for the root property's value. */\r\n\t\t\t\t\tif (rootPropertyValue === undefined) {\r\n\t\t\t\t\t\t/* Since the browser is now being directly queried, use the official post-prefixing property name for this lookup. */\r\n\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, CSS.Names.prefixCheck(hookRoot)[0]); /* GET */\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* If this root has a normalization registered, peform the associated normalization extraction. */\r\n\t\t\t\t\tif (CSS.Normalizations.registered[hookRoot]) {\r\n\t\t\t\t\t\trootPropertyValue = CSS.Normalizations.registered[hookRoot](\"extract\", element, rootPropertyValue);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Extract the hook's value. */\r\n\t\t\t\t\tpropertyValue = CSS.Hooks.extractValue(hook, rootPropertyValue);\r\n\r\n\t\t\t\t\t/* If this is a normalized property (e.g. \"opacity\" becomes \"filter\" in <=IE8) or \"translateX\" becomes \"transform\"),\r\n\t\t\t\t\t normalize the property's name and value, and handle the special case of transforms. */\r\n\t\t\t\t\t/* Note: Normalizing a property is mutually exclusive from hooking a property since hook-extracted values are strictly\r\n\t\t\t\t\t numerical and therefore do not require normalization extraction. */\r\n\t\t\t\t} else if (CSS.Normalizations.registered[property]) {\r\n\t\t\t\t\tvar normalizedPropertyName,\r\n\t\t\t\t\t\t\tnormalizedPropertyValue;\r\n\r\n\t\t\t\t\tnormalizedPropertyName = CSS.Normalizations.registered[property](\"name\", element);\r\n\r\n\t\t\t\t\t/* Transform values are calculated via normalization extraction (see below), which checks against the element's transformCache.\r\n\t\t\t\t\t At no point do transform GETs ever actually query the DOM; initial stylesheet values are never processed.\r\n\t\t\t\t\t This is because parsing 3D transform matrices is not always accurate and would bloat our codebase;\r\n\t\t\t\t\t thus, normalization extraction defaults initial transform values to their zero-values (e.g. 1 for scaleX and 0 for translateX). */\r\n\t\t\t\t\tif (normalizedPropertyName !== \"transform\") {\r\n\t\t\t\t\t\tnormalizedPropertyValue = computePropertyValue(element, CSS.Names.prefixCheck(normalizedPropertyName)[0]); /* GET */\r\n\r\n\t\t\t\t\t\t/* If the value is a CSS null-value and this property has a hook template, use that zero-value template so that hooks can be extracted from it. */\r\n\t\t\t\t\t\tif (CSS.Values.isCSSNullValue(normalizedPropertyValue) && CSS.Hooks.templates[property]) {\r\n\t\t\t\t\t\t\tnormalizedPropertyValue = CSS.Hooks.templates[property][1];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tpropertyValue = CSS.Normalizations.registered[property](\"extract\", element, normalizedPropertyValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* If a (numeric) value wasn't produced via hook extraction or normalization, query the DOM. */\r\n\t\t\t\tif (!/^[\\d-]/.test(propertyValue)) {\r\n\t\t\t\t\t/* For SVG elements, dimensional properties (which SVGAttribute() detects) are tweened via\r\n\t\t\t\t\t their HTML attribute values instead of their CSS style values. */\r\n\t\t\t\t\tvar data = Data(element);\r\n\r\n\t\t\t\t\tif (data && data.isSVG && CSS.Names.SVGAttribute(property)) {\r\n\t\t\t\t\t\t/* Since the height/width attribute values must be set manually, they don't reflect computed values.\r\n\t\t\t\t\t\t Thus, we use use getBBox() to ensure we always get values for elements with undefined height/width attributes. */\r\n\t\t\t\t\t\tif (/^(height|width)$/i.test(property)) {\r\n\t\t\t\t\t\t\t/* Firefox throws an error if .getBBox() is called on an SVG that isn't attached to the DOM. */\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tpropertyValue = element.getBBox()[property];\r\n\t\t\t\t\t\t\t} catch (error) {\r\n\t\t\t\t\t\t\t\tpropertyValue = 0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/* Otherwise, access the attribute value directly. */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tpropertyValue = element.getAttribute(property);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpropertyValue = computePropertyValue(element, CSS.Names.prefixCheck(property)[0]); /* GET */\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Since property lookups are for animation purposes (which entails computing the numeric delta between start and end values),\r\n\t\t\t\t convert CSS null-values to an integer of value 0. */\r\n\t\t\t\tif (CSS.Values.isCSSNullValue(propertyValue)) {\r\n\t\t\t\t\tpropertyValue = 0;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (Velocity.debug >= 2) {\r\n\t\t\t\t\tconsole.log(\"Get \" + property + \": \" + propertyValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\treturn propertyValue;\r\n\t\t\t},\r\n\t\t\t/* The singular setPropertyValue, which routes the logic for all normalizations, hooks, and standard CSS properties. */\r\n\t\t\tsetPropertyValue: function(element, property, propertyValue, rootPropertyValue, scrollData) {\r\n\t\t\t\tvar propertyName = property;\r\n\r\n\t\t\t\t/* In order to be subjected to call options and element queueing, scroll animation is routed through Velocity as if it were a standard CSS property. */\r\n\t\t\t\tif (property === \"scroll\") {\r\n\t\t\t\t\t/* If a container option is present, scroll the container instead of the browser window. */\r\n\t\t\t\t\tif (scrollData.container) {\r\n\t\t\t\t\t\tscrollData.container[\"scroll\" + scrollData.direction] = propertyValue;\r\n\t\t\t\t\t\t/* Otherwise, Velocity defaults to scrolling the browser window. */\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif (scrollData.direction === \"Left\") {\r\n\t\t\t\t\t\t\twindow.scrollTo(propertyValue, scrollData.alternateValue);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\twindow.scrollTo(scrollData.alternateValue, propertyValue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t/* Transforms (translateX, rotateZ, etc.) are applied to a per-element transformCache object, which is manually flushed via flushTransformCache().\r\n\t\t\t\t\t Thus, for now, we merely cache transforms being SET. */\r\n\t\t\t\t\tif (CSS.Normalizations.registered[property] && CSS.Normalizations.registered[property](\"name\", element) === \"transform\") {\r\n\t\t\t\t\t\t/* Perform a normalization injection. */\r\n\t\t\t\t\t\t/* Note: The normalization logic handles the transformCache updating. */\r\n\t\t\t\t\t\tCSS.Normalizations.registered[property](\"inject\", element, propertyValue);\r\n\r\n\t\t\t\t\t\tpropertyName = \"transform\";\r\n\t\t\t\t\t\tpropertyValue = Data(element).transformCache[property];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t/* Inject hooks. */\r\n\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\t\t\tvar hookName = property,\r\n\t\t\t\t\t\t\t\t\thookRoot = CSS.Hooks.getRoot(property);\r\n\r\n\t\t\t\t\t\t\t/* If a cached rootPropertyValue was not provided, query the DOM for the hookRoot's current value. */\r\n\t\t\t\t\t\t\trootPropertyValue = rootPropertyValue || CSS.getPropertyValue(element, hookRoot); /* GET */\r\n\r\n\t\t\t\t\t\t\tpropertyValue = CSS.Hooks.injectValue(hookName, propertyValue, rootPropertyValue);\r\n\t\t\t\t\t\t\tproperty = hookRoot;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Normalize names and values. */\r\n\t\t\t\t\t\tif (CSS.Normalizations.registered[property]) {\r\n\t\t\t\t\t\t\tpropertyValue = CSS.Normalizations.registered[property](\"inject\", element, propertyValue);\r\n\t\t\t\t\t\t\tproperty = CSS.Normalizations.registered[property](\"name\", element);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Assign the appropriate vendor prefix before performing an official style update. */\r\n\t\t\t\t\t\tpropertyName = CSS.Names.prefixCheck(property)[0];\r\n\r\n\t\t\t\t\t\t/* A try/catch is used for IE<=8, which throws an error when \"invalid\" CSS values are set, e.g. a negative width.\r\n\t\t\t\t\t\t Try/catch is avoided for other browsers since it incurs a performance overhead. */\r\n\t\t\t\t\t\tif (IE <= 8) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\telement.style[propertyName] = propertyValue;\r\n\t\t\t\t\t\t\t} catch (error) {\r\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\tconsole.log(\"Browser does not support [\" + propertyValue + \"] for [\" + propertyName + \"]\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/* SVG elements have their dimensional properties (width, height, x, y, cx, etc.) applied directly as attributes instead of as styles. */\r\n\t\t\t\t\t\t\t/* Note: IE8 does not support SVG elements, so it's okay that we skip it for SVG animation. */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tvar data = Data(element);\r\n\r\n\t\t\t\t\t\t\tif (data && data.isSVG && CSS.Names.SVGAttribute(property)) {\r\n\t\t\t\t\t\t\t\t/* Note: For SVG attributes, vendor-prefixed property names are never used. */\r\n\t\t\t\t\t\t\t\t/* Note: Not all CSS properties can be animated via attributes, but the browser won't throw an error for unsupported properties. */\r\n\t\t\t\t\t\t\t\telement.setAttribute(property, propertyValue);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\telement.style[propertyName] = propertyValue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (Velocity.debug >= 2) {\r\n\t\t\t\t\t\t\tconsole.log(\"Set \" + property + \" (\" + propertyName + \"): \" + propertyValue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Return the normalized property name and value in case the caller wants to know how these values were modified before being applied to the DOM. */\r\n\t\t\t\treturn [propertyName, propertyValue];\r\n\t\t\t},\r\n\t\t\t/* To increase performance by batching transform updates into a single SET, transforms are not directly applied to an element until flushTransformCache() is called. */\r\n\t\t\t/* Note: Velocity applies transform properties in the same order that they are chronogically introduced to the element's CSS styles. */\r\n\t\t\tflushTransformCache: function(element) {\r\n\t\t\t\tvar transformString = \"\",\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t/* Certain browsers require that SVG transforms be applied as an attribute. However, the SVG transform attribute takes a modified version of CSS's transform string\r\n\t\t\t\t (units are dropped and, except for skewX/Y, subproperties are merged into their master property -- e.g. scaleX and scaleY are merged into scale(X Y). */\r\n\t\t\t\tif ((IE || (Velocity.State.isAndroid && !Velocity.State.isChrome)) && data && data.isSVG) {\r\n\t\t\t\t\t/* Since transform values are stored in their parentheses-wrapped form, we use a helper function to strip out their numeric values.\r\n\t\t\t\t\t Further, SVG transform properties only take unitless (representing pixels) values, so it's okay that parseFloat() strips the unit suffixed to the float value. */\r\n\t\t\t\t\tvar getTransformFloat = function(transformProperty) {\r\n\t\t\t\t\t\treturn parseFloat(CSS.getPropertyValue(element, transformProperty));\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\t/* Create an object to organize all the transforms that we'll apply to the SVG element. To keep the logic simple,\r\n\t\t\t\t\t we process *all* transform properties -- even those that may not be explicitly applied (since they default to their zero-values anyway). */\r\n\t\t\t\t\tvar SVGTransforms = {\r\n\t\t\t\t\t\ttranslate: [getTransformFloat(\"translateX\"), getTransformFloat(\"translateY\")],\r\n\t\t\t\t\t\tskewX: [getTransformFloat(\"skewX\")], skewY: [getTransformFloat(\"skewY\")],\r\n\t\t\t\t\t\t/* If the scale property is set (non-1), use that value for the scaleX and scaleY values\r\n\t\t\t\t\t\t (this behavior mimics the result of animating all these properties at once on HTML elements). */\r\n\t\t\t\t\t\tscale: getTransformFloat(\"scale\") !== 1 ? [getTransformFloat(\"scale\"), getTransformFloat(\"scale\")] : [getTransformFloat(\"scaleX\"), getTransformFloat(\"scaleY\")],\r\n\t\t\t\t\t\t/* Note: SVG's rotate transform takes three values: rotation degrees followed by the X and Y values\r\n\t\t\t\t\t\t defining the rotation's origin point. We ignore the origin values (default them to 0). */\r\n\t\t\t\t\t\trotate: [getTransformFloat(\"rotateZ\"), 0, 0]\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\t/* Iterate through the transform properties in the user-defined property map order.\r\n\t\t\t\t\t (This mimics the behavior of non-SVG transform animation.) */\r\n\t\t\t\t\t$.each(Data(element).transformCache, function(transformName) {\r\n\t\t\t\t\t\t/* Except for with skewX/Y, revert the axis-specific transform subproperties to their axis-free master\r\n\t\t\t\t\t\t properties so that they match up with SVG's accepted transform properties. */\r\n\t\t\t\t\t\tif (/^translate/i.test(transformName)) {\r\n\t\t\t\t\t\t\ttransformName = \"translate\";\r\n\t\t\t\t\t\t} else if (/^scale/i.test(transformName)) {\r\n\t\t\t\t\t\t\ttransformName = \"scale\";\r\n\t\t\t\t\t\t} else if (/^rotate/i.test(transformName)) {\r\n\t\t\t\t\t\t\ttransformName = \"rotate\";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Check that we haven't yet deleted the property from the SVGTransforms container. */\r\n\t\t\t\t\t\tif (SVGTransforms[transformName]) {\r\n\t\t\t\t\t\t\t/* Append the transform property in the SVG-supported transform format. As per the spec, surround the space-delimited values in parentheses. */\r\n\t\t\t\t\t\t\ttransformString += transformName + \"(\" + SVGTransforms[transformName].join(\" \") + \")\" + \" \";\r\n\r\n\t\t\t\t\t\t\t/* After processing an SVG transform property, delete it from the SVGTransforms container so we don't\r\n\t\t\t\t\t\t\t re-insert the same master property if we encounter another one of its axis-specific properties. */\r\n\t\t\t\t\t\t\tdelete SVGTransforms[transformName];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t} else {\r\n\t\t\t\t\tvar transformValue,\r\n\t\t\t\t\t\t\tperspective;\r\n\r\n\t\t\t\t\t/* Transform properties are stored as members of the transformCache object. Concatenate all the members into a string. */\r\n\t\t\t\t\t$.each(Data(element).transformCache, function(transformName) {\r\n\t\t\t\t\t\ttransformValue = Data(element).transformCache[transformName];\r\n\r\n\t\t\t\t\t\t/* Transform's perspective subproperty must be set first in order to take effect. Store it temporarily. */\r\n\t\t\t\t\t\tif (transformName === \"transformPerspective\") {\r\n\t\t\t\t\t\t\tperspective = transformValue;\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* IE9 only supports one rotation type, rotateZ, which it refers to as \"rotate\". */\r\n\t\t\t\t\t\tif (IE === 9 && transformName === \"rotateZ\") {\r\n\t\t\t\t\t\t\ttransformName = \"rotate\";\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\ttransformString += transformName + transformValue + \" \";\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* If present, set the perspective subproperty first. */\r\n\t\t\t\t\tif (perspective) {\r\n\t\t\t\t\t\ttransformString = \"perspective\" + perspective + \" \" + transformString;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tCSS.setPropertyValue(element, \"transform\", transformString);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\t/* Register hooks and normalizations. */\r\n\t\tCSS.Hooks.register();\r\n\t\tCSS.Normalizations.register();\r\n\r\n\t\t/* Allow hook setting in the same fashion as jQuery's $.css(). */\r\n\t\tVelocity.hook = function(elements, arg2, arg3) {\r\n\t\t\tvar value;\r\n\r\n\t\t\telements = sanitizeElements(elements);\r\n\r\n\t\t\t$.each(elements, function(i, element) {\r\n\t\t\t\t/* Initialize Velocity's per-element data cache if this element hasn't previously been animated. */\r\n\t\t\t\tif (Data(element) === undefined) {\r\n\t\t\t\t\tVelocity.init(element);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Get property value. If an element set was passed in, only return the value for the first element. */\r\n\t\t\t\tif (arg3 === undefined) {\r\n\t\t\t\t\tif (value === undefined) {\r\n\t\t\t\t\t\tvalue = CSS.getPropertyValue(element, arg2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/* Set property value. */\r\n\t\t\t\t} else {\r\n\t\t\t\t\t/* sPV returns an array of the normalized propertyName/propertyValue pair used to update the DOM. */\r\n\t\t\t\t\tvar adjustedSet = CSS.setPropertyValue(element, arg2, arg3);\r\n\r\n\t\t\t\t\t/* Transform properties don't automatically set. They have to be flushed to the DOM. */\r\n\t\t\t\t\tif (adjustedSet[0] === \"transform\") {\r\n\t\t\t\t\t\tVelocity.CSS.flushTransformCache(element);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tvalue = adjustedSet;\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\treturn value;\r\n\t\t};\r\n\r\n\t\t/*****************\r\n\t\t Animation\r\n\t\t *****************/\r\n\r\n\t\tvar animate = function() {\r\n\t\t\tvar opts;\r\n\r\n\t\t\t/******************\r\n\t\t\t Call Chain\r\n\t\t\t ******************/\r\n\r\n\t\t\t/* Logic for determining what to return to the call stack when exiting out of Velocity. */\r\n\t\t\tfunction getChain() {\r\n\t\t\t\t/* If we are using the utility function, attempt to return this call's promise. If no promise library was detected,\r\n\t\t\t\t default to null instead of returning the targeted elements so that utility function's return value is standardized. */\r\n\t\t\t\tif (isUtility) {\r\n\t\t\t\t\treturn promiseData.promise || null;\r\n\t\t\t\t\t/* Otherwise, if we're using $.fn, return the jQuery-/Zepto-wrapped element set. */\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn elementsWrapped;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/*************************\r\n\t\t\t Arguments Assignment\r\n\t\t\t *************************/\r\n\r\n\t\t\t/* To allow for expressive CoffeeScript code, Velocity supports an alternative syntax in which \"elements\" (or \"e\"), \"properties\" (or \"p\"), and \"options\" (or \"o\")\r\n\t\t\t objects are defined on a container object that's passed in as Velocity's sole argument. */\r\n\t\t\t/* Note: Some browsers automatically populate arguments with a \"properties\" object. We detect it by checking for its default \"names\" property. */\r\n\t\t\tvar syntacticSugar = (arguments[0] && (arguments[0].p || (($.isPlainObject(arguments[0].properties) && !arguments[0].properties.names) || Type.isString(arguments[0].properties)))),\r\n\t\t\t\t\t/* Whether Velocity was called via the utility function (as opposed to on a jQuery/Zepto object). */\r\n\t\t\t\t\tisUtility,\r\n\t\t\t\t\t/* When Velocity is called via the utility function ($.Velocity()/Velocity()), elements are explicitly\r\n\t\t\t\t\t passed in as the first parameter. Thus, argument positioning varies. We normalize them here. */\r\n\t\t\t\t\telementsWrapped,\r\n\t\t\t\t\targumentIndex;\r\n\r\n\t\t\tvar elements,\r\n\t\t\t\t\tpropertiesMap,\r\n\t\t\t\t\toptions;\r\n\r\n\t\t\t/* Detect jQuery/Zepto elements being animated via the $.fn method. */\r\n\t\t\tif (Type.isWrapped(this)) {\r\n\t\t\t\tisUtility = false;\r\n\r\n\t\t\t\targumentIndex = 0;\r\n\t\t\t\telements = this;\r\n\t\t\t\telementsWrapped = this;\r\n\t\t\t\t/* Otherwise, raw elements are being animated via the utility function. */\r\n\t\t\t} else {\r\n\t\t\t\tisUtility = true;\r\n\r\n\t\t\t\targumentIndex = 1;\r\n\t\t\t\telements = syntacticSugar ? (arguments[0].elements || arguments[0].e) : arguments[0];\r\n\t\t\t}\r\n\r\n\t\t\t/***************\r\n\t\t\t Promises\r\n\t\t\t ***************/\r\n\r\n\t\t\tvar promiseData = {\r\n\t\t\t\tpromise: null,\r\n\t\t\t\tresolver: null,\r\n\t\t\t\trejecter: null\r\n\t\t\t};\r\n\r\n\t\t\t/* If this call was made via the utility function (which is the default method of invocation when jQuery/Zepto are not being used), and if\r\n\t\t\t promise support was detected, create a promise object for this call and store references to its resolver and rejecter methods. The resolve\r\n\t\t\t method is used when a call completes naturally or is prematurely stopped by the user. In both cases, completeCall() handles the associated\r\n\t\t\t call cleanup and promise resolving logic. The reject method is used when an invalid set of arguments is passed into a Velocity call. */\r\n\t\t\t/* Note: Velocity employs a call-based queueing architecture, which means that stopping an animating element actually stops the full call that\r\n\t\t\t triggered it -- not that one element exclusively. Similarly, there is one promise per call, and all elements targeted by a Velocity call are\r\n\t\t\t grouped together for the purposes of resolving and rejecting a promise. */\r\n\t\t\tif (isUtility && Velocity.Promise) {\r\n\t\t\t\tpromiseData.promise = new Velocity.Promise(function(resolve, reject) {\r\n\t\t\t\t\tpromiseData.resolver = resolve;\r\n\t\t\t\t\tpromiseData.rejecter = reject;\r\n\t\t\t\t});\r\n\t\t\t}\r\n\r\n\t\t\tif (syntacticSugar) {\r\n\t\t\t\tpropertiesMap = arguments[0].properties || arguments[0].p;\r\n\t\t\t\toptions = arguments[0].options || arguments[0].o;\r\n\t\t\t} else {\r\n\t\t\t\tpropertiesMap = arguments[argumentIndex];\r\n\t\t\t\toptions = arguments[argumentIndex + 1];\r\n\t\t\t}\r\n\r\n\t\t\telements = sanitizeElements(elements);\r\n\r\n\t\t\tif (!elements) {\r\n\t\t\t\tif (promiseData.promise) {\r\n\t\t\t\t\tif (!propertiesMap || !options || options.promiseRejectEmpty !== false) {\r\n\t\t\t\t\t\tpromiseData.rejecter();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tpromiseData.resolver();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\t/* The length of the element set (in the form of a nodeList or an array of elements) is defaulted to 1 in case a\r\n\t\t\t single raw DOM element is passed in (which doesn't contain a length property). */\r\n\t\t\tvar elementsLength = elements.length,\r\n\t\t\t\t\telementsIndex = 0;\r\n\r\n\t\t\t/***************************\r\n\t\t\t Argument Overloading\r\n\t\t\t ***************************/\r\n\r\n\t\t\t/* Support is included for jQuery's argument overloading: $.animate(propertyMap [, duration] [, easing] [, complete]).\r\n\t\t\t Overloading is detected by checking for the absence of an object being passed into options. */\r\n\t\t\t/* Note: The stop/finish/pause/resume actions do not accept animation options, and are therefore excluded from this check. */\r\n\t\t\tif (!/^(stop|finish|finishAll|pause|resume)$/i.test(propertiesMap) && !$.isPlainObject(options)) {\r\n\t\t\t\t/* The utility function shifts all arguments one position to the right, so we adjust for that offset. */\r\n\t\t\t\tvar startingArgumentPosition = argumentIndex + 1;\r\n\r\n\t\t\t\toptions = {};\r\n\r\n\t\t\t\t/* Iterate through all options arguments */\r\n\t\t\t\tfor (var i = startingArgumentPosition; i < arguments.length; i++) {\r\n\t\t\t\t\t/* Treat a number as a duration. Parse it out. */\r\n\t\t\t\t\t/* Note: The following RegEx will return true if passed an array with a number as its first item.\r\n\t\t\t\t\t Thus, arrays are skipped from this check. */\r\n\t\t\t\t\tif (!Type.isArray(arguments[i]) && (/^(fast|normal|slow)$/i.test(arguments[i]) || /^\\d/.test(arguments[i]))) {\r\n\t\t\t\t\t\toptions.duration = arguments[i];\r\n\t\t\t\t\t\t/* Treat strings and arrays as easings. */\r\n\t\t\t\t\t} else if (Type.isString(arguments[i]) || Type.isArray(arguments[i])) {\r\n\t\t\t\t\t\toptions.easing = arguments[i];\r\n\t\t\t\t\t\t/* Treat a function as a complete callback. */\r\n\t\t\t\t\t} else if (Type.isFunction(arguments[i])) {\r\n\t\t\t\t\t\toptions.complete = arguments[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/*********************\r\n\t\t\t Action Detection\r\n\t\t\t *********************/\r\n\r\n\t\t\t/* Velocity's behavior is categorized into \"actions\": Elements can either be specially scrolled into view,\r\n\t\t\t or they can be started, stopped, paused, resumed, or reversed . If a literal or referenced properties map is passed in as Velocity's\r\n\t\t\t first argument, the associated action is \"start\". Alternatively, \"scroll\", \"reverse\", \"pause\", \"resume\" or \"stop\" can be passed in \r\n\t\t\t instead of a properties map. */\r\n\t\t\tvar action;\r\n\r\n\t\t\tswitch (propertiesMap) {\r\n\t\t\t\tcase \"scroll\":\r\n\t\t\t\t\taction = \"scroll\";\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"reverse\":\r\n\t\t\t\t\taction = \"reverse\";\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"pause\":\r\n\r\n\t\t\t\t\t/*******************\r\n\t\t\t\t\t Action: Pause\r\n\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\tvar currentTime = (new Date()).getTime();\r\n\r\n\t\t\t\t\t/* Handle delay timers */\r\n\t\t\t\t\t$.each(elements, function(i, element) {\r\n\t\t\t\t\t\tpauseDelayOnElement(element, currentTime);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* Pause and Resume are call-wide (not on a per element basis). Thus, calling pause or resume on a \r\n\t\t\t\t\t single element will cause any calls that containt tweens for that element to be paused/resumed\r\n\t\t\t\t\t as well. */\r\n\r\n\t\t\t\t\t/* Iterate through all calls and pause any that contain any of our elements */\r\n\t\t\t\t\t$.each(Velocity.State.calls, function(i, activeCall) {\r\n\r\n\t\t\t\t\t\tvar found = false;\r\n\t\t\t\t\t\t/* Inactive calls are set to false by the logic inside completeCall(). Skip them. */\r\n\t\t\t\t\t\tif (activeCall) {\r\n\t\t\t\t\t\t\t/* Iterate through the active call's targeted elements. */\r\n\t\t\t\t\t\t\t$.each(activeCall[1], function(k, activeElement) {\r\n\t\t\t\t\t\t\t\tvar queueName = (options === undefined) ? \"\" : options;\r\n\r\n\t\t\t\t\t\t\t\tif (queueName !== true && (activeCall[2].queue !== queueName) && !(options === undefined && activeCall[2].queue === false)) {\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Iterate through the calls targeted by the stop command. */\r\n\t\t\t\t\t\t\t\t$.each(elements, function(l, element) {\r\n\t\t\t\t\t\t\t\t\t/* Check that this call was applied to the target element. */\r\n\t\t\t\t\t\t\t\t\tif (element === activeElement) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Set call to paused */\r\n\t\t\t\t\t\t\t\t\t\tactiveCall[5] = {\r\n\t\t\t\t\t\t\t\t\t\t\tresume: false\r\n\t\t\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Once we match an element, we can bounce out to the next call entirely */\r\n\t\t\t\t\t\t\t\t\t\tfound = true;\r\n\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t/* Proceed to check next call if we have already matched */\r\n\t\t\t\t\t\t\t\tif (found) {\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* Since pause creates no new tweens, exit out of Velocity. */\r\n\t\t\t\t\treturn getChain();\r\n\r\n\t\t\t\tcase \"resume\":\r\n\r\n\t\t\t\t\t/*******************\r\n\t\t\t\t\t Action: Resume\r\n\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\t/* Handle delay timers */\r\n\t\t\t\t\t$.each(elements, function(i, element) {\r\n\t\t\t\t\t\tresumeDelayOnElement(element, currentTime);\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* Pause and Resume are call-wide (not on a per elemnt basis). Thus, calling pause or resume on a \r\n\t\t\t\t\t single element will cause any calls that containt tweens for that element to be paused/resumed\r\n\t\t\t\t\t as well. */\r\n\r\n\t\t\t\t\t/* Iterate through all calls and pause any that contain any of our elements */\r\n\t\t\t\t\t$.each(Velocity.State.calls, function(i, activeCall) {\r\n\t\t\t\t\t\tvar found = false;\r\n\t\t\t\t\t\t/* Inactive calls are set to false by the logic inside completeCall(). Skip them. */\r\n\t\t\t\t\t\tif (activeCall) {\r\n\t\t\t\t\t\t\t/* Iterate through the active call's targeted elements. */\r\n\t\t\t\t\t\t\t$.each(activeCall[1], function(k, activeElement) {\r\n\t\t\t\t\t\t\t\tvar queueName = (options === undefined) ? \"\" : options;\r\n\r\n\t\t\t\t\t\t\t\tif (queueName !== true && (activeCall[2].queue !== queueName) && !(options === undefined && activeCall[2].queue === false)) {\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Skip any calls that have never been paused */\r\n\t\t\t\t\t\t\t\tif (!activeCall[5]) {\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Iterate through the calls targeted by the stop command. */\r\n\t\t\t\t\t\t\t\t$.each(elements, function(l, element) {\r\n\t\t\t\t\t\t\t\t\t/* Check that this call was applied to the target element. */\r\n\t\t\t\t\t\t\t\t\tif (element === activeElement) {\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Flag a pause object to be resumed, which will occur during the next tick. In\r\n\t\t\t\t\t\t\t\t\t\t addition, the pause object will at that time be deleted */\r\n\t\t\t\t\t\t\t\t\t\tactiveCall[5].resume = true;\r\n\r\n\t\t\t\t\t\t\t\t\t\t/* Once we match an element, we can bounce out to the next call entirely */\r\n\t\t\t\t\t\t\t\t\t\tfound = true;\r\n\t\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t/* Proceed to check next call if we have already matched */\r\n\t\t\t\t\t\t\t\tif (found) {\r\n\t\t\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* Since resume creates no new tweens, exit out of Velocity. */\r\n\t\t\t\t\treturn getChain();\r\n\r\n\t\t\t\tcase \"finish\":\r\n\t\t\t\tcase \"finishAll\":\r\n\t\t\t\tcase \"stop\":\r\n\t\t\t\t\t/*******************\r\n\t\t\t\t\t Action: Stop\r\n\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\t/* Clear the currently-active delay on each targeted element. */\r\n\t\t\t\t\t$.each(elements, function(i, element) {\r\n\t\t\t\t\t\tif (Data(element) && Data(element).delayTimer) {\r\n\t\t\t\t\t\t\t/* Stop the timer from triggering its cached next() function. */\r\n\t\t\t\t\t\t\tclearTimeout(Data(element).delayTimer.setTimeout);\r\n\r\n\t\t\t\t\t\t\t/* Manually call the next() function so that the subsequent queue items can progress. */\r\n\t\t\t\t\t\t\tif (Data(element).delayTimer.next) {\r\n\t\t\t\t\t\t\t\tData(element).delayTimer.next();\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tdelete Data(element).delayTimer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* If we want to finish everything in the queue, we have to iterate through it\r\n\t\t\t\t\t\t and call each function. This will make them active calls below, which will\r\n\t\t\t\t\t\t cause them to be applied via the duration setting. */\r\n\t\t\t\t\t\tif (propertiesMap === \"finishAll\" && (options === true || Type.isString(options))) {\r\n\t\t\t\t\t\t\t/* Iterate through the items in the element's queue. */\r\n\t\t\t\t\t\t\t$.each($.queue(element, Type.isString(options) ? options : \"\"), function(_, item) {\r\n\t\t\t\t\t\t\t\t/* The queue array can contain an \"inprogress\" string, which we skip. */\r\n\t\t\t\t\t\t\t\tif (Type.isFunction(item)) {\r\n\t\t\t\t\t\t\t\t\titem();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t/* Clearing the $.queue() array is achieved by resetting it to []. */\r\n\t\t\t\t\t\t\t$.queue(element, Type.isString(options) ? options : \"\", []);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tvar callsToStop = [];\r\n\r\n\t\t\t\t\t/* When the stop action is triggered, the elements' currently active call is immediately stopped. The active call might have\r\n\t\t\t\t\t been applied to multiple elements, in which case all of the call's elements will be stopped. When an element\r\n\t\t\t\t\t is stopped, the next item in its animation queue is immediately triggered. */\r\n\t\t\t\t\t/* An additional argument may be passed in to clear an element's remaining queued calls. Either true (which defaults to the \"fx\" queue)\r\n\t\t\t\t\t or a custom queue string can be passed in. */\r\n\t\t\t\t\t/* Note: The stop command runs prior to Velocity's Queueing phase since its behavior is intended to take effect *immediately*,\r\n\t\t\t\t\t regardless of the element's current queue state. */\r\n\r\n\t\t\t\t\t/* Iterate through every active call. */\r\n\t\t\t\t\t$.each(Velocity.State.calls, function(i, activeCall) {\r\n\t\t\t\t\t\t/* Inactive calls are set to false by the logic inside completeCall(). Skip them. */\r\n\t\t\t\t\t\tif (activeCall) {\r\n\t\t\t\t\t\t\t/* Iterate through the active call's targeted elements. */\r\n\t\t\t\t\t\t\t$.each(activeCall[1], function(k, activeElement) {\r\n\t\t\t\t\t\t\t\t/* If true was passed in as a secondary argument, clear absolutely all calls on this element. Otherwise, only\r\n\t\t\t\t\t\t\t\t clear calls associated with the relevant queue. */\r\n\t\t\t\t\t\t\t\t/* Call stopping logic works as follows:\r\n\t\t\t\t\t\t\t\t - options === true --> stop current default queue calls (and queue:false calls), including remaining queued ones.\r\n\t\t\t\t\t\t\t\t - options === undefined --> stop current queue:\"\" call and all queue:false calls.\r\n\t\t\t\t\t\t\t\t - options === false --> stop only queue:false calls.\r\n\t\t\t\t\t\t\t\t - options === \"custom\" --> stop current queue:\"custom\" call, including remaining queued ones (there is no functionality to only clear the currently-running queue:\"custom\" call). */\r\n\t\t\t\t\t\t\t\tvar queueName = (options === undefined) ? \"\" : options;\r\n\r\n\t\t\t\t\t\t\t\tif (queueName !== true && (activeCall[2].queue !== queueName) && !(options === undefined && activeCall[2].queue === false)) {\r\n\t\t\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Iterate through the calls targeted by the stop command. */\r\n\t\t\t\t\t\t\t\t$.each(elements, function(l, element) {\r\n\t\t\t\t\t\t\t\t\t/* Check that this call was applied to the target element. */\r\n\t\t\t\t\t\t\t\t\tif (element === activeElement) {\r\n\t\t\t\t\t\t\t\t\t\t/* Optionally clear the remaining queued calls. If we're doing \"finishAll\" this won't find anything,\r\n\t\t\t\t\t\t\t\t\t\t due to the queue-clearing above. */\r\n\t\t\t\t\t\t\t\t\t\tif (options === true || Type.isString(options)) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Iterate through the items in the element's queue. */\r\n\t\t\t\t\t\t\t\t\t\t\t$.each($.queue(element, Type.isString(options) ? options : \"\"), function(_, item) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t/* The queue array can contain an \"inprogress\" string, which we skip. */\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (Type.isFunction(item)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t/* Pass the item's callback a flag indicating that we want to abort from the queue call.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t (Specifically, the queue will resolve the call's associated promise then abort.)  */\r\n\t\t\t\t\t\t\t\t\t\t\t\t\titem(null, true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/* Clearing the $.queue() array is achieved by resetting it to []. */\r\n\t\t\t\t\t\t\t\t\t\t\t$.queue(element, Type.isString(options) ? options : \"\", []);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (propertiesMap === \"stop\") {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Since \"reverse\" uses cached start values (the previous call's endValues), these values must be\r\n\t\t\t\t\t\t\t\t\t\t\t changed to reflect the final value that the elements were actually tweened to. */\r\n\t\t\t\t\t\t\t\t\t\t\t/* Note: If only queue:false/queue:\"custom\" animations are currently running on an element, it won't have a tweensContainer\r\n\t\t\t\t\t\t\t\t\t\t\t object. Also, queue:false/queue:\"custom\" animations can't be reversed. */\r\n\t\t\t\t\t\t\t\t\t\t\tvar data = Data(element);\r\n\t\t\t\t\t\t\t\t\t\t\tif (data && data.tweensContainer && (queueName === true || queueName === \"\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t$.each(data.tweensContainer, function(m, activeTween) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tactiveTween.endValue = activeTween.currentValue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tcallsToStop.push(i);\r\n\t\t\t\t\t\t\t\t\t\t} else if (propertiesMap === \"finish\" || propertiesMap === \"finishAll\") {\r\n\t\t\t\t\t\t\t\t\t\t\t/* To get active tweens to finish immediately, we forcefully shorten their durations to 1ms so that\r\n\t\t\t\t\t\t\t\t\t\t\t they finish upon the next rAf tick then proceed with normal call completion logic. */\r\n\t\t\t\t\t\t\t\t\t\t\tactiveCall[2].duration = 1;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\t/* Prematurely call completeCall() on each matched active call. Pass an additional flag for \"stop\" to indicate\r\n\t\t\t\t\t that the complete callback and display:none setting should be skipped since we're completing prematurely. */\r\n\t\t\t\t\tif (propertiesMap === \"stop\") {\r\n\t\t\t\t\t\t$.each(callsToStop, function(i, j) {\r\n\t\t\t\t\t\t\tcompleteCall(j, true);\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (promiseData.promise) {\r\n\t\t\t\t\t\t\t/* Immediately resolve the promise associated with this stop call since stop runs synchronously. */\r\n\t\t\t\t\t\t\tpromiseData.resolver(elements);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Since we're stopping, and not proceeding with queueing, exit out of Velocity. */\r\n\t\t\t\t\treturn getChain();\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t/* Treat a non-empty plain object as a literal properties map. */\r\n\t\t\t\t\tif ($.isPlainObject(propertiesMap) && !Type.isEmptyObject(propertiesMap)) {\r\n\t\t\t\t\t\taction = \"start\";\r\n\r\n\t\t\t\t\t\t/****************\r\n\t\t\t\t\t\t Redirects\r\n\t\t\t\t\t\t ****************/\r\n\r\n\t\t\t\t\t\t/* Check if a string matches a registered redirect (see Redirects above). */\r\n\t\t\t\t\t} else if (Type.isString(propertiesMap) && Velocity.Redirects[propertiesMap]) {\r\n\t\t\t\t\t\topts = $.extend({}, options);\r\n\r\n\t\t\t\t\t\tvar durationOriginal = opts.duration,\r\n\t\t\t\t\t\t\t\tdelayOriginal = opts.delay || 0;\r\n\r\n\t\t\t\t\t\t/* If the backwards option was passed in, reverse the element set so that elements animate from the last to the first. */\r\n\t\t\t\t\t\tif (opts.backwards === true) {\r\n\t\t\t\t\t\t\telements = $.extend(true, [], elements).reverse();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Individually trigger the redirect for each element in the set to prevent users from having to handle iteration logic in their redirect. */\r\n\t\t\t\t\t\t$.each(elements, function(elementIndex, element) {\r\n\t\t\t\t\t\t\t/* If the stagger option was passed in, successively delay each element by the stagger value (in ms). Retain the original delay value. */\r\n\t\t\t\t\t\t\tif (parseFloat(opts.stagger)) {\r\n\t\t\t\t\t\t\t\topts.delay = delayOriginal + (parseFloat(opts.stagger) * elementIndex);\r\n\t\t\t\t\t\t\t} else if (Type.isFunction(opts.stagger)) {\r\n\t\t\t\t\t\t\t\topts.delay = delayOriginal + opts.stagger.call(element, elementIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If the drag option was passed in, successively increase/decrease (depending on the presense of opts.backwards)\r\n\t\t\t\t\t\t\t the duration of each element's animation, using floors to prevent producing very short durations. */\r\n\t\t\t\t\t\t\tif (opts.drag) {\r\n\t\t\t\t\t\t\t\t/* Default the duration of UI pack effects (callouts and transitions) to 1000ms instead of the usual default duration of 400ms. */\r\n\t\t\t\t\t\t\t\topts.duration = parseFloat(durationOriginal) || (/^(callout|transition)/.test(propertiesMap) ? 1000 : DURATION_DEFAULT);\r\n\r\n\t\t\t\t\t\t\t\t/* For each element, take the greater duration of: A) animation completion percentage relative to the original duration,\r\n\t\t\t\t\t\t\t\t B) 75% of the original duration, or C) a 200ms fallback (in case duration is already set to a low value).\r\n\t\t\t\t\t\t\t\t The end result is a baseline of 75% of the redirect's duration that increases/decreases as the end of the element set is approached. */\r\n\t\t\t\t\t\t\t\topts.duration = Math.max(opts.duration * (opts.backwards ? 1 - elementIndex / elementsLength : (elementIndex + 1) / elementsLength), opts.duration * 0.75, 200);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Pass in the call's opts object so that the redirect can optionally extend it. It defaults to an empty object instead of null to\r\n\t\t\t\t\t\t\t reduce the opts checking logic required inside the redirect. */\r\n\t\t\t\t\t\t\tVelocity.Redirects[propertiesMap].call(element, element, opts || {}, elementIndex, elementsLength, elements, promiseData.promise ? promiseData : undefined);\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t/* Since the animation logic resides within the redirect's own code, abort the remainder of this call.\r\n\t\t\t\t\t\t (The performance overhead up to this point is virtually non-existant.) */\r\n\t\t\t\t\t\t/* Note: The jQuery call chain is kept intact by returning the complete element set. */\r\n\t\t\t\t\t\treturn getChain();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tvar abortError = \"Velocity: First argument (\" + propertiesMap + \") was not a property map, a known action, or a registered redirect. Aborting.\";\r\n\r\n\t\t\t\t\t\tif (promiseData.promise) {\r\n\t\t\t\t\t\t\tpromiseData.rejecter(new Error(abortError));\r\n\t\t\t\t\t\t} else if (window.console) {\r\n\t\t\t\t\t\t\tconsole.log(abortError);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn getChain();\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/**************************\r\n\t\t\t Call-Wide Variables\r\n\t\t\t **************************/\r\n\r\n\t\t\t/* A container for CSS unit conversion ratios (e.g. %, rem, and em ==> px) that is used to cache ratios across all elements\r\n\t\t\t being animated in a single Velocity call. Calculating unit ratios necessitates DOM querying and updating, and is therefore\r\n\t\t\t avoided (via caching) wherever possible. This container is call-wide instead of page-wide to avoid the risk of using stale\r\n\t\t\t conversion metrics across Velocity animations that are not immediately consecutively chained. */\r\n\t\t\tvar callUnitConversionData = {\r\n\t\t\t\tlastParent: null,\r\n\t\t\t\tlastPosition: null,\r\n\t\t\t\tlastFontSize: null,\r\n\t\t\t\tlastPercentToPxWidth: null,\r\n\t\t\t\tlastPercentToPxHeight: null,\r\n\t\t\t\tlastEmToPx: null,\r\n\t\t\t\tremToPx: null,\r\n\t\t\t\tvwToPx: null,\r\n\t\t\t\tvhToPx: null\r\n\t\t\t};\r\n\r\n\t\t\t/* A container for all the ensuing tween data and metadata associated with this call. This container gets pushed to the page-wide\r\n\t\t\t Velocity.State.calls array that is processed during animation ticking. */\r\n\t\t\tvar call = [];\r\n\r\n\t\t\t/************************\r\n\t\t\t Element Processing\r\n\t\t\t ************************/\r\n\r\n\t\t\t/* Element processing consists of three parts -- data processing that cannot go stale and data processing that *can* go stale (i.e. third-party style modifications):\r\n\t\t\t 1) Pre-Queueing: Element-wide variables, including the element's data storage, are instantiated. Call options are prepared. If triggered, the Stop action is executed.\r\n\t\t\t 2) Queueing: The logic that runs once this call has reached its point of execution in the element's $.queue() stack. Most logic is placed here to avoid risking it becoming stale.\r\n\t\t\t 3) Pushing: Consolidation of the tween data followed by its push onto the global in-progress calls container.\r\n\t\t\t `elementArrayIndex` allows passing index of the element in the original array to value functions.\r\n\t\t\t If `elementsIndex` were used instead the index would be determined by the elements' per-element queue.\r\n\t\t\t */\r\n\t\t\tfunction processElement(element, elementArrayIndex) {\r\n\r\n\t\t\t\t/*************************\r\n\t\t\t\t Part I: Pre-Queueing\r\n\t\t\t\t *************************/\r\n\r\n\t\t\t\t/***************************\r\n\t\t\t\t Element-Wide Variables\r\n\t\t\t\t ***************************/\r\n\r\n\t\t\t\tvar /* The runtime opts object is the extension of the current call's options and Velocity's page-wide option defaults. */\r\n\t\t\t\t\t\topts = $.extend({}, Velocity.defaults, options),\r\n\t\t\t\t\t\t/* A container for the processed data associated with each property in the propertyMap.\r\n\t\t\t\t\t\t (Each property in the map produces its own \"tween\".) */\r\n\t\t\t\t\t\ttweensContainer = {},\r\n\t\t\t\t\t\telementUnitConversionData;\r\n\r\n\t\t\t\t/******************\r\n\t\t\t\t Element Init\r\n\t\t\t\t ******************/\r\n\r\n\t\t\t\tif (Data(element) === undefined) {\r\n\t\t\t\t\tVelocity.init(element);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/******************\r\n\t\t\t\t Option: Delay\r\n\t\t\t\t ******************/\r\n\r\n\t\t\t\t/* Since queue:false doesn't respect the item's existing queue, we avoid injecting its delay here (it's set later on). */\r\n\t\t\t\t/* Note: Velocity rolls its own delay function since jQuery doesn't have a utility alias for $.fn.delay()\r\n\t\t\t\t (and thus requires jQuery element creation, which we avoid since its overhead includes DOM querying). */\r\n\t\t\t\tif (parseFloat(opts.delay) && opts.queue !== false) {\r\n\t\t\t\t\t$.queue(element, opts.queue, function(next, clearQueue) {\r\n\t\t\t\t\t\tif (clearQueue === true) {\r\n\t\t\t\t\t\t\t/* Do not continue with animation queueing. */\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* This is a flag used to indicate to the upcoming completeCall() function that this queue entry was initiated by Velocity. See completeCall() for further details. */\r\n\t\t\t\t\t\tVelocity.velocityQueueEntryFlag = true;\r\n\r\n\t\t\t\t\t\t/* The ensuing queue item (which is assigned to the \"next\" argument that $.queue() automatically passes in) will be triggered after a setTimeout delay.\r\n\t\t\t\t\t\t The setTimeout is stored so that it can be subjected to clearTimeout() if this animation is prematurely stopped via Velocity's \"stop\" command, and\r\n\t\t\t\t\t\t delayBegin/delayTime is used to ensure we can \"pause\" and \"resume\" a tween that is still mid-delay. */\r\n\r\n\t\t\t\t\t\t/* Temporarily store delayed elements to facilite access for global pause/resume */\r\n\t\t\t\t\t\tvar callIndex = Velocity.State.delayedElements.count++;\r\n\t\t\t\t\t\tVelocity.State.delayedElements[callIndex] = element;\r\n\r\n\t\t\t\t\t\tvar delayComplete = (function(index) {\r\n\t\t\t\t\t\t\treturn function() {\r\n\t\t\t\t\t\t\t\t/* Clear the temporary element */\r\n\t\t\t\t\t\t\t\tVelocity.State.delayedElements[index] = false;\r\n\r\n\t\t\t\t\t\t\t\t/* Finally, issue the call */\r\n\t\t\t\t\t\t\t\tnext();\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t})(callIndex);\r\n\r\n\r\n\t\t\t\t\t\tData(element).delayBegin = (new Date()).getTime();\r\n\t\t\t\t\t\tData(element).delay = parseFloat(opts.delay);\r\n\t\t\t\t\t\tData(element).delayTimer = {\r\n\t\t\t\t\t\t\tsetTimeout: setTimeout(next, parseFloat(opts.delay)),\r\n\t\t\t\t\t\t\tnext: delayComplete\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*********************\r\n\t\t\t\t Option: Duration\r\n\t\t\t\t *********************/\r\n\r\n\t\t\t\t/* Support for jQuery's named durations. */\r\n\t\t\t\tswitch (opts.duration.toString().toLowerCase()) {\r\n\t\t\t\t\tcase \"fast\":\r\n\t\t\t\t\t\topts.duration = 200;\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase \"normal\":\r\n\t\t\t\t\t\topts.duration = DURATION_DEFAULT;\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase \"slow\":\r\n\t\t\t\t\t\topts.duration = 600;\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t/* Remove the potential \"ms\" suffix and default to 1 if the user is attempting to set a duration of 0 (in order to produce an immediate style change). */\r\n\t\t\t\t\t\topts.duration = parseFloat(opts.duration) || 1;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/************************\r\n\t\t\t\t Global Option: Mock\r\n\t\t\t\t ************************/\r\n\r\n\t\t\t\tif (Velocity.mock !== false) {\r\n\t\t\t\t\t/* In mock mode, all animations are forced to 1ms so that they occur immediately upon the next rAF tick.\r\n\t\t\t\t\t Alternatively, a multiplier can be passed in to time remap all delays and durations. */\r\n\t\t\t\t\tif (Velocity.mock === true) {\r\n\t\t\t\t\t\topts.duration = opts.delay = 1;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\topts.duration *= parseFloat(Velocity.mock) || 1;\r\n\t\t\t\t\t\topts.delay *= parseFloat(Velocity.mock) || 1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*******************\r\n\t\t\t\t Option: Easing\r\n\t\t\t\t *******************/\r\n\r\n\t\t\t\topts.easing = getEasing(opts.easing, opts.duration);\r\n\r\n\t\t\t\t/**********************\r\n\t\t\t\t Option: Callbacks\r\n\t\t\t\t **********************/\r\n\r\n\t\t\t\t/* Callbacks must functions. Otherwise, default to null. */\r\n\t\t\t\tif (opts.begin && !Type.isFunction(opts.begin)) {\r\n\t\t\t\t\topts.begin = null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (opts.progress && !Type.isFunction(opts.progress)) {\r\n\t\t\t\t\topts.progress = null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (opts.complete && !Type.isFunction(opts.complete)) {\r\n\t\t\t\t\topts.complete = null;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*********************************\r\n\t\t\t\t Option: Display & Visibility\r\n\t\t\t\t *********************************/\r\n\r\n\t\t\t\t/* Refer to Velocity's documentation (VelocityJS.org/#displayAndVisibility) for a description of the display and visibility options' behavior. */\r\n\t\t\t\t/* Note: We strictly check for undefined instead of falsiness because display accepts an empty string value. */\r\n\t\t\t\tif (opts.display !== undefined && opts.display !== null) {\r\n\t\t\t\t\topts.display = opts.display.toString().toLowerCase();\r\n\r\n\t\t\t\t\t/* Users can pass in a special \"auto\" value to instruct Velocity to set the element to its default display value. */\r\n\t\t\t\t\tif (opts.display === \"auto\") {\r\n\t\t\t\t\t\topts.display = Velocity.CSS.Values.getDisplayType(element);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (opts.visibility !== undefined && opts.visibility !== null) {\r\n\t\t\t\t\topts.visibility = opts.visibility.toString().toLowerCase();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/**********************\r\n\t\t\t\t Option: mobileHA\r\n\t\t\t\t **********************/\r\n\r\n\t\t\t\t/* When set to true, and if this is a mobile device, mobileHA automatically enables hardware acceleration (via a null transform hack)\r\n\t\t\t\t on animating elements. HA is removed from the element at the completion of its animation. */\r\n\t\t\t\t/* Note: Android Gingerbread doesn't support HA. If a null transform hack (mobileHA) is in fact set, it will prevent other tranform subproperties from taking effect. */\r\n\t\t\t\t/* Note: You can read more about the use of mobileHA in Velocity's documentation: VelocityJS.org/#mobileHA. */\r\n\t\t\t\topts.mobileHA = (opts.mobileHA && Velocity.State.isMobile && !Velocity.State.isGingerbread);\r\n\r\n\t\t\t\t/***********************\r\n\t\t\t\t Part II: Queueing\r\n\t\t\t\t ***********************/\r\n\r\n\t\t\t\t/* When a set of elements is targeted by a Velocity call, the set is broken up and each element has the current Velocity call individually queued onto it.\r\n\t\t\t\t In this way, each element's existing queue is respected; some elements may already be animating and accordingly should not have this current Velocity call triggered immediately. */\r\n\t\t\t\t/* In each queue, tween data is processed for each animating property then pushed onto the call-wide calls array. When the last element in the set has had its tweens processed,\r\n\t\t\t\t the call array is pushed to Velocity.State.calls for live processing by the requestAnimationFrame tick. */\r\n\t\t\t\tfunction buildQueue(next) {\r\n\t\t\t\t\tvar data, lastTweensContainer;\r\n\r\n\t\t\t\t\t/*******************\r\n\t\t\t\t\t Option: Begin\r\n\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\t/* The begin callback is fired once per call -- not once per elemenet -- and is passed the full raw DOM element set as both its context and its first argument. */\r\n\t\t\t\t\tif (opts.begin && elementsIndex === 0) {\r\n\t\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\topts.begin.call(elements, elements);\r\n\t\t\t\t\t\t} catch (error) {\r\n\t\t\t\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t\t\t\tthrow error;\r\n\t\t\t\t\t\t\t}, 1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*****************************************\r\n\t\t\t\t\t Tween Data Construction (for Scroll)\r\n\t\t\t\t\t *****************************************/\r\n\r\n\t\t\t\t\t/* Note: In order to be subjected to chaining and animation options, scroll's tweening is routed through Velocity as if it were a standard CSS property animation. */\r\n\t\t\t\t\tif (action === \"scroll\") {\r\n\t\t\t\t\t\t/* The scroll action uniquely takes an optional \"offset\" option -- specified in pixels -- that offsets the targeted scroll position. */\r\n\t\t\t\t\t\tvar scrollDirection = (/^x$/i.test(opts.axis) ? \"Left\" : \"Top\"),\r\n\t\t\t\t\t\t\t\tscrollOffset = parseFloat(opts.offset) || 0,\r\n\t\t\t\t\t\t\t\tscrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tscrollPositionCurrentAlternate,\r\n\t\t\t\t\t\t\t\tscrollPositionEnd;\r\n\r\n\t\t\t\t\t\t/* Scroll also uniquely takes an optional \"container\" option, which indicates the parent element that should be scrolled --\r\n\t\t\t\t\t\t as opposed to the browser window itself. This is useful for scrolling toward an element that's inside an overflowing parent element. */\r\n\t\t\t\t\t\tif (opts.container) {\r\n\t\t\t\t\t\t\t/* Ensure that either a jQuery object or a raw DOM element was passed in. */\r\n\t\t\t\t\t\t\tif (Type.isWrapped(opts.container) || Type.isNode(opts.container)) {\r\n\t\t\t\t\t\t\t\t/* Extract the raw DOM element from the jQuery wrapper. */\r\n\t\t\t\t\t\t\t\topts.container = opts.container[0] || opts.container;\r\n\t\t\t\t\t\t\t\t/* Note: Unlike other properties in Velocity, the browser's scroll position is never cached since it so frequently changes\r\n\t\t\t\t\t\t\t\t (due to the user's natural interaction with the page). */\r\n\t\t\t\t\t\t\t\tscrollPositionCurrent = opts.container[\"scroll\" + scrollDirection]; /* GET */\r\n\r\n\t\t\t\t\t\t\t\t/* $.position() values are relative to the container's currently viewable area (without taking into account the container's true dimensions\r\n\t\t\t\t\t\t\t\t -- say, for example, if the container was not overflowing). Thus, the scroll end value is the sum of the child element's position *and*\r\n\t\t\t\t\t\t\t\t the scroll container's current scroll position. */\r\n\t\t\t\t\t\t\t\tscrollPositionEnd = (scrollPositionCurrent + $(element).position()[scrollDirection.toLowerCase()]) + scrollOffset; /* GET */\r\n\t\t\t\t\t\t\t\t/* If a value other than a jQuery object or a raw DOM element was passed in, default to null so that this option is ignored. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\topts.container = null;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/* If the window itself is being scrolled -- not a containing element -- perform a live scroll position lookup using\r\n\t\t\t\t\t\t\t the appropriate cached property names (which differ based on browser type). */\r\n\t\t\t\t\t\t\tscrollPositionCurrent = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + scrollDirection]]; /* GET */\r\n\t\t\t\t\t\t\t/* When scrolling the browser window, cache the alternate axis's current value since window.scrollTo() doesn't let us change only one value at a time. */\r\n\t\t\t\t\t\t\tscrollPositionCurrentAlternate = Velocity.State.scrollAnchor[Velocity.State[\"scrollProperty\" + (scrollDirection === \"Left\" ? \"Top\" : \"Left\")]]; /* GET */\r\n\r\n\t\t\t\t\t\t\t/* Unlike $.position(), $.offset() values are relative to the browser window's true dimensions -- not merely its currently viewable area --\r\n\t\t\t\t\t\t\t and therefore end values do not need to be compounded onto current values. */\r\n\t\t\t\t\t\t\tscrollPositionEnd = $(element).offset()[scrollDirection.toLowerCase()] + scrollOffset; /* GET */\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Since there's only one format that scroll's associated tweensContainer can take, we create it manually. */\r\n\t\t\t\t\t\ttweensContainer = {\r\n\t\t\t\t\t\t\tscroll: {\r\n\t\t\t\t\t\t\t\trootPropertyValue: false,\r\n\t\t\t\t\t\t\t\tstartValue: scrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tcurrentValue: scrollPositionCurrent,\r\n\t\t\t\t\t\t\t\tendValue: scrollPositionEnd,\r\n\t\t\t\t\t\t\t\tunitType: \"\",\r\n\t\t\t\t\t\t\t\teasing: opts.easing,\r\n\t\t\t\t\t\t\t\tscrollData: {\r\n\t\t\t\t\t\t\t\t\tcontainer: opts.container,\r\n\t\t\t\t\t\t\t\t\tdirection: scrollDirection,\r\n\t\t\t\t\t\t\t\t\talternateValue: scrollPositionCurrentAlternate\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\telement: element\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\tconsole.log(\"tweensContainer (scroll): \", tweensContainer.scroll, element);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/******************************************\r\n\t\t\t\t\t\t Tween Data Construction (for Reverse)\r\n\t\t\t\t\t\t ******************************************/\r\n\r\n\t\t\t\t\t\t/* Reverse acts like a \"start\" action in that a property map is animated toward. The only difference is\r\n\t\t\t\t\t\t that the property map used for reverse is the inverse of the map used in the previous call. Thus, we manipulate\r\n\t\t\t\t\t\t the previous call to construct our new map: use the previous map's end values as our new map's start values. Copy over all other data. */\r\n\t\t\t\t\t\t/* Note: Reverse can be directly called via the \"reverse\" parameter, or it can be indirectly triggered via the loop option. (Loops are composed of multiple reverses.) */\r\n\t\t\t\t\t\t/* Note: Reverse calls do not need to be consecutively chained onto a currently-animating element in order to operate on cached values;\r\n\t\t\t\t\t\t there is no harm to reverse being called on a potentially stale data cache since reverse's behavior is simply defined\r\n\t\t\t\t\t\t as reverting to the element's values as they were prior to the previous *Velocity* call. */\r\n\t\t\t\t\t} else if (action === \"reverse\") {\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\t/* Abort if there is no prior animation data to reverse to. */\r\n\t\t\t\t\t\tif (!data) {\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!data.tweensContainer) {\r\n\t\t\t\t\t\t\t/* Dequeue the element so that this queue entry releases itself immediately, allowing subsequent queue entries to run. */\r\n\t\t\t\t\t\t\t$.dequeue(element, opts.queue);\r\n\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t/*********************\r\n\t\t\t\t\t\t\t Options Parsing\r\n\t\t\t\t\t\t\t *********************/\r\n\r\n\t\t\t\t\t\t\t/* If the element was hidden via the display option in the previous call,\r\n\t\t\t\t\t\t\t revert display to \"auto\" prior to reversal so that the element is visible again. */\r\n\t\t\t\t\t\t\tif (data.opts.display === \"none\") {\r\n\t\t\t\t\t\t\t\tdata.opts.display = \"auto\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (data.opts.visibility === \"hidden\") {\r\n\t\t\t\t\t\t\t\tdata.opts.visibility = \"visible\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If the loop option was set in the previous call, disable it so that \"reverse\" calls aren't recursively generated.\r\n\t\t\t\t\t\t\t Further, remove the previous call's callback options; typically, users do not want these to be refired. */\r\n\t\t\t\t\t\t\tdata.opts.loop = false;\r\n\t\t\t\t\t\t\tdata.opts.begin = null;\r\n\t\t\t\t\t\t\tdata.opts.complete = null;\r\n\r\n\t\t\t\t\t\t\t/* Since we're extending an opts object that has already been extended with the defaults options object,\r\n\t\t\t\t\t\t\t we remove non-explicitly-defined properties that are auto-assigned values. */\r\n\t\t\t\t\t\t\tif (!options.easing) {\r\n\t\t\t\t\t\t\t\tdelete opts.easing;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (!options.duration) {\r\n\t\t\t\t\t\t\t\tdelete opts.duration;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* The opts object used for reversal is an extension of the options object optionally passed into this\r\n\t\t\t\t\t\t\t reverse call plus the options used in the previous Velocity call. */\r\n\t\t\t\t\t\t\topts = $.extend({}, data.opts, opts);\r\n\r\n\t\t\t\t\t\t\t/*************************************\r\n\t\t\t\t\t\t\t Tweens Container Reconstruction\r\n\t\t\t\t\t\t\t *************************************/\r\n\r\n\t\t\t\t\t\t\t/* Create a deepy copy (indicated via the true flag) of the previous call's tweensContainer. */\r\n\t\t\t\t\t\t\tlastTweensContainer = $.extend(true, {}, data ? data.tweensContainer : null);\r\n\r\n\t\t\t\t\t\t\t/* Manipulate the previous tweensContainer by replacing its end values and currentValues with its start values. */\r\n\t\t\t\t\t\t\tfor (var lastTween in lastTweensContainer) {\r\n\t\t\t\t\t\t\t\t/* In addition to tween data, tweensContainers contain an element property that we ignore here. */\r\n\t\t\t\t\t\t\t\tif (lastTweensContainer.hasOwnProperty(lastTween) && lastTween !== \"element\") {\r\n\t\t\t\t\t\t\t\t\tvar lastStartValue = lastTweensContainer[lastTween].startValue;\r\n\r\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].startValue = lastTweensContainer[lastTween].currentValue = lastTweensContainer[lastTween].endValue;\r\n\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].endValue = lastStartValue;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Easing is the only option that embeds into the individual tween data (since it can be defined on a per-property basis).\r\n\t\t\t\t\t\t\t\t\t Accordingly, every property's easing value must be updated when an options object is passed in with a reverse call.\r\n\t\t\t\t\t\t\t\t\t The side effect of this extensibility is that all per-property easing values are forcefully reset to the new value. */\r\n\t\t\t\t\t\t\t\t\tif (!Type.isEmptyObject(options)) {\r\n\t\t\t\t\t\t\t\t\t\tlastTweensContainer[lastTween].easing = opts.easing;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\tconsole.log(\"reverse tweensContainer (\" + lastTween + \"): \" + JSON.stringify(lastTweensContainer[lastTween]), element);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\ttweensContainer = lastTweensContainer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/*****************************************\r\n\t\t\t\t\t\t Tween Data Construction (for Start)\r\n\t\t\t\t\t\t *****************************************/\r\n\r\n\t\t\t\t\t} else if (action === \"start\") {\r\n\r\n\t\t\t\t\t\t/*************************\r\n\t\t\t\t\t\t Value Transferring\r\n\t\t\t\t\t\t *************************/\r\n\r\n\t\t\t\t\t\t/* If this queue entry follows a previous Velocity-initiated queue entry *and* if this entry was created\r\n\t\t\t\t\t\t while the element was in the process of being animated by Velocity, then this current call is safe to use\r\n\t\t\t\t\t\t the end values from the prior call as its start values. Velocity attempts to perform this value transfer\r\n\t\t\t\t\t\t process whenever possible in order to avoid requerying the DOM. */\r\n\t\t\t\t\t\t/* If values aren't transferred from a prior call and start values were not forcefed by the user (more on this below),\r\n\t\t\t\t\t\t then the DOM is queried for the element's current values as a last resort. */\r\n\t\t\t\t\t\t/* Note: Conversely, animation reversal (and looping) *always* perform inter-call value transfers; they never requery the DOM. */\r\n\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\t/* The per-element isAnimating flag is used to indicate whether it's safe (i.e. the data isn't stale)\r\n\t\t\t\t\t\t to transfer over end values to use as start values. If it's set to true and there is a previous\r\n\t\t\t\t\t\t Velocity call to pull values from, do so. */\r\n\t\t\t\t\t\tif (data && data.tweensContainer && data.isAnimating === true) {\r\n\t\t\t\t\t\t\tlastTweensContainer = data.tweensContainer;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t Tween Data Calculation\r\n\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t/* This function parses property data and defaults endValue, easing, and startValue as appropriate. */\r\n\t\t\t\t\t\t/* Property map values can either take the form of 1) a single value representing the end value,\r\n\t\t\t\t\t\t or 2) an array in the form of [ endValue, [, easing] [, startValue] ].\r\n\t\t\t\t\t\t The optional third parameter is a forcefed startValue to be used instead of querying the DOM for\r\n\t\t\t\t\t\t the element's current value. Read Velocity's docmentation to learn more about forcefeeding: VelocityJS.org/#forcefeeding */\r\n\t\t\t\t\t\tvar parsePropertyValue = function(valueData, skipResolvingEasing) {\r\n\t\t\t\t\t\t\tvar endValue, easing, startValue;\r\n\r\n\t\t\t\t\t\t\t/* If we have a function as the main argument then resolve it first, in case it returns an array that needs to be split */\r\n\t\t\t\t\t\t\tif (Type.isFunction(valueData)) {\r\n\t\t\t\t\t\t\t\tvalueData = valueData.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Handle the array format, which can be structured as one of three potential overloads:\r\n\t\t\t\t\t\t\t A) [ endValue, easing, startValue ], B) [ endValue, easing ], or C) [ endValue, startValue ] */\r\n\t\t\t\t\t\t\tif (Type.isArray(valueData)) {\r\n\t\t\t\t\t\t\t\t/* endValue is always the first item in the array. Don't bother validating endValue's value now\r\n\t\t\t\t\t\t\t\t since the ensuing property cycling logic does that. */\r\n\t\t\t\t\t\t\t\tendValue = valueData[0];\r\n\r\n\t\t\t\t\t\t\t\t/* Two-item array format: If the second item is a number, function, or hex string, treat it as a\r\n\t\t\t\t\t\t\t\t start value since easings can only be non-hex strings or arrays. */\r\n\t\t\t\t\t\t\t\tif ((!Type.isArray(valueData[1]) && /^[\\d-]/.test(valueData[1])) || Type.isFunction(valueData[1]) || CSS.RegEx.isHex.test(valueData[1])) {\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1];\r\n\t\t\t\t\t\t\t\t\t/* Two or three-item array: If the second item is a non-hex string easing name or an array, treat it as an easing. */\r\n\t\t\t\t\t\t\t\t} else if ((Type.isString(valueData[1]) && !CSS.RegEx.isHex.test(valueData[1]) && Velocity.Easings[valueData[1]]) || Type.isArray(valueData[1])) {\r\n\t\t\t\t\t\t\t\t\teasing = skipResolvingEasing ? valueData[1] : getEasing(valueData[1], opts.duration);\r\n\r\n\t\t\t\t\t\t\t\t\t/* Don't bother validating startValue's value now since the ensuing property cycling logic inherently does that. */\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[1] || valueData[2];\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t/* Handle the single-value format. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tendValue = valueData;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Default to the call's easing if a per-property easing type was not defined. */\r\n\t\t\t\t\t\t\tif (!skipResolvingEasing) {\r\n\t\t\t\t\t\t\t\teasing = easing || opts.easing;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If functions were passed in as values, pass the function the current element as its context,\r\n\t\t\t\t\t\t\t plus the element's index and the element set's size as arguments. Then, assign the returned value. */\r\n\t\t\t\t\t\t\tif (Type.isFunction(endValue)) {\r\n\t\t\t\t\t\t\t\tendValue = endValue.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (Type.isFunction(startValue)) {\r\n\t\t\t\t\t\t\t\tstartValue = startValue.call(element, elementArrayIndex, elementsLength);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Allow startValue to be left as undefined to indicate to the ensuing code that its value was not forcefed. */\r\n\t\t\t\t\t\t\treturn [endValue || 0, easing, startValue];\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\tvar fixPropertyValue = function(property, valueData) {\r\n\t\t\t\t\t\t\t/* In case this property is a hook, there are circumstances where we will intend to work on the hook's root property and not the hooked subproperty. */\r\n\t\t\t\t\t\t\tvar rootProperty = CSS.Hooks.getRoot(property),\r\n\t\t\t\t\t\t\t\t\trootPropertyValue = false,\r\n\t\t\t\t\t\t\t\t\t/* Parse out endValue, easing, and startValue from the property's data. */\r\n\t\t\t\t\t\t\t\t\tendValue = valueData[0],\r\n\t\t\t\t\t\t\t\t\teasing = valueData[1],\r\n\t\t\t\t\t\t\t\t\tstartValue = valueData[2],\r\n\t\t\t\t\t\t\t\t\tpattern;\r\n\r\n\t\t\t\t\t\t\t/**************************\r\n\t\t\t\t\t\t\t Start Value Sourcing\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\t/* Other than for the dummy tween property, properties that are not supported by the browser (and do not have an associated normalization) will\r\n\t\t\t\t\t\t\t inherently produce no style changes when set, so they are skipped in order to decrease animation tick overhead.\r\n\t\t\t\t\t\t\t Property support is determined via prefixCheck(), which returns a false flag when no supported is detected. */\r\n\t\t\t\t\t\t\t/* Note: Since SVG elements have some of their properties directly applied as HTML attributes,\r\n\t\t\t\t\t\t\t there is no way to check for their explicit browser support, and so we skip skip this check for them. */\r\n\t\t\t\t\t\t\tif ((!data || !data.isSVG) && rootProperty !== \"tween\" && CSS.Names.prefixCheck(rootProperty)[1] === false && CSS.Normalizations.registered[rootProperty] === undefined) {\r\n\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\tconsole.log(\"Skipping [\" + rootProperty + \"] due to a lack of browser support.\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If the display option is being set to a non-\"none\" (e.g. \"block\") and opacity (filter on IE<=8) is being\r\n\t\t\t\t\t\t\t animated to an endValue of non-zero, the user's intention is to fade in from invisible, thus we forcefeed opacity\r\n\t\t\t\t\t\t\t a startValue of 0 if its startValue hasn't already been sourced by value transferring or prior forcefeeding. */\r\n\t\t\t\t\t\t\tif (((opts.display !== undefined && opts.display !== null && opts.display !== \"none\") || (opts.visibility !== undefined && opts.visibility !== \"hidden\")) && /opacity|filter/.test(property) && !startValue && endValue !== 0) {\r\n\t\t\t\t\t\t\t\tstartValue = 0;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* If values have been transferred from the previous Velocity call, extract the endValue and rootPropertyValue\r\n\t\t\t\t\t\t\t for all of the current call's properties that were *also* animated in the previous call. */\r\n\t\t\t\t\t\t\t/* Note: Value transferring can optionally be disabled by the user via the _cacheValues option. */\r\n\t\t\t\t\t\t\tif (opts._cacheValues && lastTweensContainer && lastTweensContainer[property]) {\r\n\t\t\t\t\t\t\t\tif (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\tstartValue = lastTweensContainer[property].endValue + lastTweensContainer[property].unitType;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* The previous call's rootPropertyValue is extracted from the element's data cache since that's the\r\n\t\t\t\t\t\t\t\t instance of rootPropertyValue that gets freshly updated by the tweening process, whereas the rootPropertyValue\r\n\t\t\t\t\t\t\t\t attached to the incoming lastTweensContainer is equal to the root property's value prior to any tweening. */\r\n\t\t\t\t\t\t\t\trootPropertyValue = data.rootPropertyValueCache[rootProperty];\r\n\t\t\t\t\t\t\t\t/* If values were not transferred from a previous Velocity call, query the DOM as needed. */\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t/* Handle hooked properties. */\r\n\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\t\t\t\t\tif (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.getPropertyValue(element, rootProperty); /* GET */\r\n\t\t\t\t\t\t\t\t\t\t/* Note: The following getPropertyValue() call does not actually trigger a DOM query;\r\n\t\t\t\t\t\t\t\t\t\t getPropertyValue() will extract the hook from rootPropertyValue. */\r\n\t\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property, rootPropertyValue);\r\n\t\t\t\t\t\t\t\t\t\t/* If startValue is already defined via forcefeeding, do not query the DOM for the root property's value;\r\n\t\t\t\t\t\t\t\t\t\t just grab rootProperty's zero-value template from CSS.Hooks. This overwrites the element's actual\r\n\t\t\t\t\t\t\t\t\t\t root property value (if one is set), but this is acceptable since the primary reason users forcefeed is\r\n\t\t\t\t\t\t\t\t\t\t to avoid DOM queries, and thus we likewise avoid querying the DOM for the root property's value. */\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t/* Grab this hook's zero-value template, e.g. \"0px 0px 0px black\". */\r\n\t\t\t\t\t\t\t\t\t\trootPropertyValue = CSS.Hooks.templates[rootProperty][1];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t/* Handle non-hooked properties that haven't already been defined via forcefeeding. */\r\n\t\t\t\t\t\t\t\t} else if (startValue === undefined) {\r\n\t\t\t\t\t\t\t\t\tstartValue = CSS.getPropertyValue(element, property); /* GET */\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/**************************\r\n\t\t\t\t\t\t\t Value Data Extraction\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\tvar separatedValue,\r\n\t\t\t\t\t\t\t\t\tendValueUnitType,\r\n\t\t\t\t\t\t\t\t\tstartValueUnitType,\r\n\t\t\t\t\t\t\t\t\toperator = false;\r\n\r\n\t\t\t\t\t\t\t/* Separates a property value into its numeric value and its unit type. */\r\n\t\t\t\t\t\t\tvar separateValue = function(property, value) {\r\n\t\t\t\t\t\t\t\tvar unitType,\r\n\t\t\t\t\t\t\t\t\t\tnumericValue;\r\n\r\n\t\t\t\t\t\t\t\tnumericValue = (value || \"0\")\r\n\t\t\t\t\t\t\t\t\t\t.toString()\r\n\t\t\t\t\t\t\t\t\t\t.toLowerCase()\r\n\t\t\t\t\t\t\t\t\t\t/* Match the unit type at the end of the value. */\r\n\t\t\t\t\t\t\t\t\t\t.replace(/[%A-z]+$/, function(match) {\r\n\t\t\t\t\t\t\t\t\t\t\t/* Grab the unit type. */\r\n\t\t\t\t\t\t\t\t\t\t\tunitType = match;\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t/* Strip the unit type off of value. */\r\n\t\t\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t\t\t/* If no unit type was supplied, assign one that is appropriate for this property (e.g. \"deg\" for rotateZ or \"px\" for width). */\r\n\t\t\t\t\t\t\t\tif (!unitType) {\r\n\t\t\t\t\t\t\t\t\tunitType = CSS.Values.getUnitType(property);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\treturn [numericValue, unitType];\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\tif (startValue !== endValue && Type.isString(startValue) && Type.isString(endValue)) {\r\n\t\t\t\t\t\t\t\tpattern = \"\";\r\n\t\t\t\t\t\t\t\tvar iStart = 0, // index in startValue\r\n\t\t\t\t\t\t\t\t\t\tiEnd = 0, // index in endValue\r\n\t\t\t\t\t\t\t\t\t\taStart = [], // array of startValue numbers\r\n\t\t\t\t\t\t\t\t\t\taEnd = [], // array of endValue numbers\r\n\t\t\t\t\t\t\t\t\t\tinCalc = 0, // Keep track of being inside a \"calc()\" so we don't duplicate it\r\n\t\t\t\t\t\t\t\t\t\tinRGB = 0, // Keep track of being inside an RGB as we can't use fractional values\r\n\t\t\t\t\t\t\t\t\t\tinRGBA = 0; // Keep track of being inside an RGBA as we must pass fractional for the alpha channel\r\n\r\n\t\t\t\t\t\t\t\tstartValue = CSS.Hooks.fixColors(startValue);\r\n\t\t\t\t\t\t\t\tendValue = CSS.Hooks.fixColors(endValue);\r\n\t\t\t\t\t\t\t\twhile (iStart < startValue.length && iEnd < endValue.length) {\r\n\t\t\t\t\t\t\t\t\tvar cStart = startValue[iStart],\r\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\r\n\r\n\t\t\t\t\t\t\t\t\tif (/[\\d\\.-]/.test(cStart) && /[\\d\\.-]/.test(cEnd)) {\r\n\t\t\t\t\t\t\t\t\t\tvar tStart = cStart, // temporary character buffer\r\n\t\t\t\t\t\t\t\t\t\t\t\ttEnd = cEnd, // temporary character buffer\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \".\", // Make sure we can only ever match a single dot in a decimal\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \".\"; // Make sure we can only ever match a single dot in a decimal\r\n\r\n\t\t\t\t\t\t\t\t\t\twhile (++iStart < startValue.length) {\r\n\t\t\t\t\t\t\t\t\t\t\tcStart = startValue[iStart];\r\n\t\t\t\t\t\t\t\t\t\t\tif (cStart === dotStart) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotStart = \"..\"; // Can never match two characters\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cStart)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\ttStart += cStart;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\twhile (++iEnd < endValue.length) {\r\n\t\t\t\t\t\t\t\t\t\t\tcEnd = endValue[iEnd];\r\n\t\t\t\t\t\t\t\t\t\t\tif (cEnd === dotEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tdotEnd = \"..\"; // Can never match two characters\r\n\t\t\t\t\t\t\t\t\t\t\t} else if (!/\\d/.test(cEnd)) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\ttEnd += cEnd;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tvar uStart = CSS.Hooks.getUnit(startValue, iStart), // temporary unit type\r\n\t\t\t\t\t\t\t\t\t\t\t\tuEnd = CSS.Hooks.getUnit(endValue, iEnd); // temporary unit type\r\n\r\n\t\t\t\t\t\t\t\t\t\tiStart += uStart.length;\r\n\t\t\t\t\t\t\t\t\t\tiEnd += uEnd.length;\r\n\t\t\t\t\t\t\t\t\t\tif (uStart === uEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t// Same units\r\n\t\t\t\t\t\t\t\t\t\t\tif (tStart === tEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Same numbers, so just copy over\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += tStart + uStart;\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Different numbers, so store them\r\n\t\t\t\t\t\t\t\t\t\t\t\tpattern += \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" + uStart;\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(parseFloat(tStart));\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(parseFloat(tEnd));\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t// Different units, so put into a \"calc(from + to)\" and animate each side to/from zero\r\n\t\t\t\t\t\t\t\t\t\t\tvar nStart = parseFloat(tStart),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tnEnd = parseFloat(tEnd);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tpattern += (inCalc < 5 ? \"calc\" : \"\") + \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nStart ? \"{\" + aStart.length + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uStart\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" + \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ (nEnd ? \"{\" + (aStart.length + (nStart ? 1 : 0)) + (inRGB ? \"!\" : \"\") + \"}\" : \"0\") + uEnd\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \")\";\r\n\t\t\t\t\t\t\t\t\t\t\tif (nStart) {\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(nStart);\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(0);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (nEnd) {\r\n\t\t\t\t\t\t\t\t\t\t\t\taStart.push(0);\r\n\t\t\t\t\t\t\t\t\t\t\t\taEnd.push(nEnd);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else if (cStart === cEnd) {\r\n\t\t\t\t\t\t\t\t\t\tpattern += cStart;\r\n\t\t\t\t\t\t\t\t\t\tiStart++;\r\n\t\t\t\t\t\t\t\t\t\tiEnd++;\r\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside a calc()\r\n\t\t\t\t\t\t\t\t\t\tif (inCalc === 0 && cStart === \"c\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 1 && cStart === \"a\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 2 && cStart === \"l\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc === 3 && cStart === \"c\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tinCalc++;\r\n\t\t\t\t\t\t\t\t\t\t} else if ((inCalc && inCalc < 5)\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inCalc >= 4 && cStart === \")\" && --inCalc < 5) {\r\n\t\t\t\t\t\t\t\t\t\t\tinCalc = 0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t// Keep track of being inside an rgb() / rgba()\r\n\t\t\t\t\t\t\t\t\t\tif (inRGB === 0 && cStart === \"r\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 1 && cStart === \"g\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 2 && cStart === \"b\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB === 3 && cStart === \"a\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= 3 && cStart === \"(\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t) {\r\n\t\t\t\t\t\t\t\t\t\t\tif (inRGB === 3 && cStart === \"a\") {\r\n\t\t\t\t\t\t\t\t\t\t\t\tinRGBA = 1;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tinRGB++;\r\n\t\t\t\t\t\t\t\t\t\t} else if (inRGBA && cStart === \",\") {\r\n\t\t\t\t\t\t\t\t\t\t\tif (++inRGBA > 3) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} else if ((inRGBA && inRGB < (inRGBA ? 5 : 4))\r\n\t\t\t\t\t\t\t\t\t\t\t\t|| inRGB >= (inRGBA ? 4 : 3) && cStart === \")\" && --inRGB < (inRGBA ? 5 : 4)) {\r\n\t\t\t\t\t\t\t\t\t\t\tinRGB = inRGBA = 0;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tinCalc = 0;\r\n\t\t\t\t\t\t\t\t\t\t// TODO: changing units, fixing colours\r\n\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (iStart !== startValue.length || iEnd !== endValue.length) {\r\n\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\tconsole.error(\"Trying to pattern match mis-matched strings [\\\"\" + endValue + \"\\\", \\\"\" + startValue + \"\\\"]\");\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tpattern = undefined;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (pattern) {\r\n\t\t\t\t\t\t\t\t\tif (aStart.length) {\r\n\t\t\t\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\t\t\t\tconsole.log(\"Pattern found \\\"\" + pattern + \"\\\" -> \", aStart, aEnd, \"[\" + startValue + \",\" + endValue + \"]\");\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tstartValue = aStart;\r\n\t\t\t\t\t\t\t\t\t\tendValue = aEnd;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType = \"\";\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tpattern = undefined;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (!pattern) {\r\n\t\t\t\t\t\t\t\t/* Separate startValue. */\r\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, startValue);\r\n\t\t\t\t\t\t\t\tstartValue = separatedValue[0];\r\n\t\t\t\t\t\t\t\tstartValueUnitType = separatedValue[1];\r\n\r\n\t\t\t\t\t\t\t\t/* Separate endValue, and extract a value operator (e.g. \"+=\", \"-=\") if one exists. */\r\n\t\t\t\t\t\t\t\tseparatedValue = separateValue(property, endValue);\r\n\t\t\t\t\t\t\t\tendValue = separatedValue[0].replace(/^([+-\\/*])=/, function(match, subMatch) {\r\n\t\t\t\t\t\t\t\t\toperator = subMatch;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Strip the operator off of the value. */\r\n\t\t\t\t\t\t\t\t\treturn \"\";\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\tendValueUnitType = separatedValue[1];\r\n\r\n\t\t\t\t\t\t\t\t/* Parse float values from endValue and startValue. Default to 0 if NaN is returned. */\r\n\t\t\t\t\t\t\t\tstartValue = parseFloat(startValue) || 0;\r\n\t\t\t\t\t\t\t\tendValue = parseFloat(endValue) || 0;\r\n\r\n\t\t\t\t\t\t\t\t/***************************************\r\n\t\t\t\t\t\t\t\t Property-Specific Value Conversion\r\n\t\t\t\t\t\t\t\t ***************************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Custom support for properties that don't actually accept the % unit type, but where pollyfilling is trivial and relatively foolproof. */\r\n\t\t\t\t\t\t\t\tif (endValueUnitType === \"%\") {\r\n\t\t\t\t\t\t\t\t\t/* A %-value fontSize/lineHeight is relative to the parent's fontSize (as opposed to the parent's dimensions),\r\n\t\t\t\t\t\t\t\t\t which is identical to the em unit's behavior, so we piggyback off of that. */\r\n\t\t\t\t\t\t\t\t\tif (/^(fontSize|lineHeight)$/.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\t/* Convert % into an em decimal value. */\r\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"em\";\r\n\t\t\t\t\t\t\t\t\t\t/* For scaleX and scaleY, convert the value into its decimal format and strip off the unit type. */\r\n\t\t\t\t\t\t\t\t\t} else if (/^scale/.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\tendValue = endValue / 100;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\r\n\t\t\t\t\t\t\t\t\t\t/* For RGB components, take the defined percentage of 255 and strip off the unit type. */\r\n\t\t\t\t\t\t\t\t\t} else if (/(Red|Green|Blue)$/i.test(property)) {\r\n\t\t\t\t\t\t\t\t\t\tendValue = (endValue / 100) * 255;\r\n\t\t\t\t\t\t\t\t\t\tendValueUnitType = \"\";\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t Unit Ratio Calculation\r\n\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t/* When queried, the browser returns (most) CSS property values in pixels. Therefore, if an endValue with a unit type of\r\n\t\t\t\t\t\t\t %, em, or rem is animated toward, startValue must be converted from pixels into the same unit type as endValue in order\r\n\t\t\t\t\t\t\t for value manipulation logic (increment/decrement) to proceed. Further, if the startValue was forcefed or transferred\r\n\t\t\t\t\t\t\t from a previous call, startValue may also not be in pixels. Unit conversion logic therefore consists of two steps:\r\n\t\t\t\t\t\t\t 1) Calculating the ratio of %/em/rem/vh/vw relative to pixels\r\n\t\t\t\t\t\t\t 2) Converting startValue into the same unit of measurement as endValue based on these ratios. */\r\n\t\t\t\t\t\t\t/* Unit conversion ratios are calculated by inserting a sibling node next to the target node, copying over its position property,\r\n\t\t\t\t\t\t\t setting values with the target unit type then comparing the returned pixel value. */\r\n\t\t\t\t\t\t\t/* Note: Even if only one of these unit types is being animated, all unit ratios are calculated at once since the overhead\r\n\t\t\t\t\t\t\t of batching the SETs and GETs together upfront outweights the potential overhead\r\n\t\t\t\t\t\t\t of layout thrashing caused by re-querying for uncalculated ratios for subsequently-processed properties. */\r\n\t\t\t\t\t\t\t/* Todo: Shift this logic into the calls' first tick instance so that it's synced with RAF. */\r\n\t\t\t\t\t\t\tvar calculateUnitRatios = function() {\r\n\r\n\t\t\t\t\t\t\t\t/************************\r\n\t\t\t\t\t\t\t\t Same Ratio Checks\r\n\t\t\t\t\t\t\t\t ************************/\r\n\r\n\t\t\t\t\t\t\t\t/* The properties below are used to determine whether the element differs sufficiently from this call's\r\n\t\t\t\t\t\t\t\t previously iterated element to also differ in its unit conversion ratios. If the properties match up with those\r\n\t\t\t\t\t\t\t\t of the prior element, the prior element's conversion ratios are used. Like most optimizations in Velocity,\r\n\t\t\t\t\t\t\t\t this is done to minimize DOM querying. */\r\n\t\t\t\t\t\t\t\tvar sameRatioIndicators = {\r\n\t\t\t\t\t\t\t\t\tmyParent: element.parentNode || document.body, /* GET */\r\n\t\t\t\t\t\t\t\t\tposition: CSS.getPropertyValue(element, \"position\"), /* GET */\r\n\t\t\t\t\t\t\t\t\tfontSize: CSS.getPropertyValue(element, \"fontSize\") /* GET */\r\n\t\t\t\t\t\t\t\t},\r\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same % ratio can be used. % is based on the element's position value and its parent's width and height dimensions. */\r\n\t\t\t\t\t\t\t\t\t\tsamePercentRatio = ((sameRatioIndicators.position === callUnitConversionData.lastPosition) && (sameRatioIndicators.myParent === callUnitConversionData.lastParent)),\r\n\t\t\t\t\t\t\t\t\t\t/* Determine if the same em ratio can be used. em is relative to the element's fontSize. */\r\n\t\t\t\t\t\t\t\t\t\tsameEmRatio = (sameRatioIndicators.fontSize === callUnitConversionData.lastFontSize);\r\n\r\n\t\t\t\t\t\t\t\t/* Store these ratio indicators call-wide for the next element to compare against. */\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastParent = sameRatioIndicators.myParent;\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastPosition = sameRatioIndicators.position;\r\n\t\t\t\t\t\t\t\tcallUnitConversionData.lastFontSize = sameRatioIndicators.fontSize;\r\n\r\n\t\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t\t Element-Specific Units\r\n\t\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Note: IE8 rounds to the nearest pixel when returning CSS values, thus we perform conversions using a measurement\r\n\t\t\t\t\t\t\t\t of 100 (instead of 1) to give our ratios a precision of at least 2 decimal values. */\r\n\t\t\t\t\t\t\t\tvar measurement = 100,\r\n\t\t\t\t\t\t\t\t\t\tunitRatios = {};\r\n\r\n\t\t\t\t\t\t\t\tif (!sameEmRatio || !samePercentRatio) {\r\n\t\t\t\t\t\t\t\t\tvar dummy = data && data.isSVG ? document.createElementNS(\"http://www.w3.org/2000/svg\", \"rect\") : document.createElement(\"div\");\r\n\r\n\t\t\t\t\t\t\t\t\tVelocity.init(dummy);\r\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.appendChild(dummy);\r\n\r\n\t\t\t\t\t\t\t\t\t/* To accurately and consistently calculate conversion ratios, the element's cascaded overflow and box-sizing are stripped.\r\n\t\t\t\t\t\t\t\t\t Similarly, since width/height can be artificially constrained by their min-/max- equivalents, these are controlled for as well. */\r\n\t\t\t\t\t\t\t\t\t/* Note: Overflow must be also be controlled for per-axis since the overflow property overwrites its per-axis values. */\r\n\t\t\t\t\t\t\t\t\t$.each([\"overflow\", \"overflowX\", \"overflowY\"], function(i, property) {\r\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, \"hidden\");\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"position\", sameRatioIndicators.position);\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"fontSize\", sameRatioIndicators.fontSize);\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"boxSizing\", \"content-box\");\r\n\r\n\t\t\t\t\t\t\t\t\t/* width and height act as our proxy properties for measuring the horizontal and vertical % ratios. */\r\n\t\t\t\t\t\t\t\t\t$.each([\"minWidth\", \"maxWidth\", \"width\", \"minHeight\", \"maxHeight\", \"height\"], function(i, property) {\r\n\t\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, property, measurement + \"%\");\r\n\t\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\t\t/* paddingLeft arbitrarily acts as our proxy property for the em ratio. */\r\n\t\t\t\t\t\t\t\t\tVelocity.CSS.setPropertyValue(dummy, \"paddingLeft\", measurement + \"em\");\r\n\r\n\t\t\t\t\t\t\t\t\t/* Divide the returned value by the measurement to get the ratio between 1% and 1px. Default to 1 since working with 0 can produce Infinite. */\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth = (parseFloat(CSS.getPropertyValue(dummy, \"width\", null, true)) || 1) / measurement; /* GET */\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight = (parseFloat(CSS.getPropertyValue(dummy, \"height\", null, true)) || 1) / measurement; /* GET */\r\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx = (parseFloat(CSS.getPropertyValue(dummy, \"paddingLeft\")) || 1) / measurement; /* GET */\r\n\r\n\t\t\t\t\t\t\t\t\tsameRatioIndicators.myParent.removeChild(dummy);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tunitRatios.emToPx = callUnitConversionData.lastEmToPx;\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxWidth = callUnitConversionData.lastPercentToPxWidth;\r\n\t\t\t\t\t\t\t\t\tunitRatios.percentToPxHeight = callUnitConversionData.lastPercentToPxHeight;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/***************************\r\n\t\t\t\t\t\t\t\t Element-Agnostic Units\r\n\t\t\t\t\t\t\t\t ***************************/\r\n\r\n\t\t\t\t\t\t\t\t/* Whereas % and em ratios are determined on a per-element basis, the rem unit only needs to be checked\r\n\t\t\t\t\t\t\t\t once per call since it's exclusively dependant upon document.body's fontSize. If this is the first time\r\n\t\t\t\t\t\t\t\t that calculateUnitRatios() is being run during this call, remToPx will still be set to its default value of null,\r\n\t\t\t\t\t\t\t\t so we calculate it now. */\r\n\t\t\t\t\t\t\t\tif (callUnitConversionData.remToPx === null) {\r\n\t\t\t\t\t\t\t\t\t/* Default to browsers' default fontSize of 16px in the case of 0. */\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.remToPx = parseFloat(CSS.getPropertyValue(document.body, \"fontSize\")) || 16; /* GET */\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t/* Similarly, viewport units are %-relative to the window's inner dimensions. */\r\n\t\t\t\t\t\t\t\tif (callUnitConversionData.vwToPx === null) {\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vwToPx = parseFloat(window.innerWidth) / 100; /* GET */\r\n\t\t\t\t\t\t\t\t\tcallUnitConversionData.vhToPx = parseFloat(window.innerHeight) / 100; /* GET */\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\tunitRatios.remToPx = callUnitConversionData.remToPx;\r\n\t\t\t\t\t\t\t\tunitRatios.vwToPx = callUnitConversionData.vwToPx;\r\n\t\t\t\t\t\t\t\tunitRatios.vhToPx = callUnitConversionData.vhToPx;\r\n\r\n\t\t\t\t\t\t\t\tif (Velocity.debug >= 1) {\r\n\t\t\t\t\t\t\t\t\tconsole.log(\"Unit ratios: \" + JSON.stringify(unitRatios), element);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\treturn unitRatios;\r\n\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t/********************\r\n\t\t\t\t\t\t\t Unit Conversion\r\n\t\t\t\t\t\t\t ********************/\r\n\r\n\t\t\t\t\t\t\t/* The * and / operators, which are not passed in with an associated unit, inherently use startValue's unit. Skip value and unit conversion. */\r\n\t\t\t\t\t\t\tif (/[\\/*]/.test(operator)) {\r\n\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\r\n\t\t\t\t\t\t\t\t/* If startValue and endValue differ in unit type, convert startValue into the same unit type as endValue so that if endValueUnitType\r\n\t\t\t\t\t\t\t\t is a relative unit (%, em, rem), the values set during tweening will continue to be accurately relative even if the metrics they depend\r\n\t\t\t\t\t\t\t\t on are dynamically changing during the course of the animation. Conversely, if we always normalized into px and used px for setting values, the px ratio\r\n\t\t\t\t\t\t\t\t would become stale if the original unit being animated toward was relative and the underlying metrics change during the animation. */\r\n\t\t\t\t\t\t\t\t/* Since 0 is 0 in any unit type, no conversion is necessary when startValue is 0 -- we just start at 0 with endValueUnitType. */\r\n\t\t\t\t\t\t\t} else if ((startValueUnitType !== endValueUnitType) && startValue !== 0) {\r\n\t\t\t\t\t\t\t\t/* Unit conversion is also skipped when endValue is 0, but *startValueUnitType* must be used for tween values to remain accurate. */\r\n\t\t\t\t\t\t\t\t/* Note: Skipping unit conversion here means that if endValueUnitType was originally a relative unit, the animation won't relatively\r\n\t\t\t\t\t\t\t\t match the underlying metrics if they change, but this is acceptable since we're animating toward invisibility instead of toward visibility,\r\n\t\t\t\t\t\t\t\t which remains past the point of the animation's completion. */\r\n\t\t\t\t\t\t\t\tif (endValue === 0) {\r\n\t\t\t\t\t\t\t\t\tendValueUnitType = startValueUnitType;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/* By this point, we cannot avoid unit conversion (it's undesirable since it causes layout thrashing).\r\n\t\t\t\t\t\t\t\t\t If we haven't already, we trigger calculateUnitRatios(), which runs once per element per call. */\r\n\t\t\t\t\t\t\t\t\telementUnitConversionData = elementUnitConversionData || calculateUnitRatios();\r\n\r\n\t\t\t\t\t\t\t\t\t/* The following RegEx matches CSS properties that have their % values measured relative to the x-axis. */\r\n\t\t\t\t\t\t\t\t\t/* Note: W3C spec mandates that all of margin and padding's properties (even top and bottom) are %-relative to the *width* of the parent element. */\r\n\t\t\t\t\t\t\t\t\tvar axis = (/margin|padding|left|right|width|text|word|letter/i.test(property) || /X$/.test(property) || property === \"x\") ? \"x\" : \"y\";\r\n\r\n\t\t\t\t\t\t\t\t\t/* In order to avoid generating n^2 bespoke conversion functions, unit conversion is a two-step process:\r\n\t\t\t\t\t\t\t\t\t 1) Convert startValue into pixels. 2) Convert this new pixel value into endValue's unit type. */\r\n\t\t\t\t\t\t\t\t\tswitch (startValueUnitType) {\r\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* Note: translateX and translateY are the only properties that are %-relative to an element's own dimensions -- not its parent's dimensions.\r\n\t\t\t\t\t\t\t\t\t\t\t Velocity does not include a special conversion process to account for this behavior. Therefore, animating translateX/Y from a % value\r\n\t\t\t\t\t\t\t\t\t\t\t to a non-% value will produce an incorrect start value. Fortunately, this sort of cross-unit conversion is rarely done by users in practice. */\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* px acts as our midpoint in the unit conversion process; do nothing. */\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= elementUnitConversionData[startValueUnitType + \"ToPx\"];\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t/* Invert the px ratios to convert into to the target unit. */\r\n\t\t\t\t\t\t\t\t\tswitch (endValueUnitType) {\r\n\t\t\t\t\t\t\t\t\t\tcase \"%\":\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / (axis === \"x\" ? elementUnitConversionData.percentToPxWidth : elementUnitConversionData.percentToPxHeight);\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tcase \"px\":\r\n\t\t\t\t\t\t\t\t\t\t\t/* startValue is already in px, do nothing; we're done. */\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\t\t\tstartValue *= 1 / elementUnitConversionData[endValueUnitType + \"ToPx\"];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/*********************\r\n\t\t\t\t\t\t\t Relative Values\r\n\t\t\t\t\t\t\t *********************/\r\n\r\n\t\t\t\t\t\t\t/* Operator logic must be performed last since it requires unit-normalized start and end values. */\r\n\t\t\t\t\t\t\t/* Note: Relative *percent values* do not behave how most people think; while one would expect \"+=50%\"\r\n\t\t\t\t\t\t\t to increase the property 1.5x its current value, it in fact increases the percent units in absolute terms:\r\n\t\t\t\t\t\t\t 50 points is added on top of the current % value. */\r\n\t\t\t\t\t\t\tswitch (operator) {\r\n\t\t\t\t\t\t\t\tcase \"+\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue + endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"-\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue - endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"*\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue * endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\t\t\tcase \"/\":\r\n\t\t\t\t\t\t\t\t\tendValue = startValue / endValue;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/**************************\r\n\t\t\t\t\t\t\t tweensContainer Push\r\n\t\t\t\t\t\t\t **************************/\r\n\r\n\t\t\t\t\t\t\t/* Construct the per-property tween object, and push it to the element's tweensContainer. */\r\n\t\t\t\t\t\t\ttweensContainer[property] = {\r\n\t\t\t\t\t\t\t\trootPropertyValue: rootPropertyValue,\r\n\t\t\t\t\t\t\t\tstartValue: startValue,\r\n\t\t\t\t\t\t\t\tcurrentValue: startValue,\r\n\t\t\t\t\t\t\t\tendValue: endValue,\r\n\t\t\t\t\t\t\t\tunitType: endValueUnitType,\r\n\t\t\t\t\t\t\t\teasing: easing\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t\tif (pattern) {\r\n\t\t\t\t\t\t\t\ttweensContainer[property].pattern = pattern;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tif (Velocity.debug) {\r\n\t\t\t\t\t\t\t\tconsole.log(\"tweensContainer (\" + property + \"): \" + JSON.stringify(tweensContainer[property]), element);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t/* Create a tween out of each property, and append its associated data to tweensContainer. */\r\n\t\t\t\t\t\tfor (var property in propertiesMap) {\r\n\r\n\t\t\t\t\t\t\tif (!propertiesMap.hasOwnProperty(property)) {\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/* The original property name's format must be used for the parsePropertyValue() lookup,\r\n\t\t\t\t\t\t\t but we then use its camelCase styling to normalize it for manipulation. */\r\n\t\t\t\t\t\t\tvar propertyName = CSS.Names.camelCase(property),\r\n\t\t\t\t\t\t\t\t\tvalueData = parsePropertyValue(propertiesMap[property]);\r\n\r\n\t\t\t\t\t\t\t/* Find shorthand color properties that have been passed a hex string. */\r\n\t\t\t\t\t\t\t/* Would be quicker to use CSS.Lists.colors.includes() if possible */\r\n\t\t\t\t\t\t\tif (_inArray(CSS.Lists.colors, propertyName)) {\r\n\t\t\t\t\t\t\t\t/* Parse the value data for each shorthand. */\r\n\t\t\t\t\t\t\t\tvar endValue = valueData[0],\r\n\t\t\t\t\t\t\t\t\t\teasing = valueData[1],\r\n\t\t\t\t\t\t\t\t\t\tstartValue = valueData[2];\r\n\r\n\t\t\t\t\t\t\t\tif (CSS.RegEx.isHex.test(endValue)) {\r\n\t\t\t\t\t\t\t\t\t/* Convert the hex strings into their RGB component arrays. */\r\n\t\t\t\t\t\t\t\t\tvar colorComponents = [\"Red\", \"Green\", \"Blue\"],\r\n\t\t\t\t\t\t\t\t\t\t\tendValueRGB = CSS.Values.hexToRgb(endValue),\r\n\t\t\t\t\t\t\t\t\t\t\tstartValueRGB = startValue ? CSS.Values.hexToRgb(startValue) : undefined;\r\n\r\n\t\t\t\t\t\t\t\t\t/* Inject the RGB component tweens into propertiesMap. */\r\n\t\t\t\t\t\t\t\t\tfor (var i = 0; i < colorComponents.length; i++) {\r\n\t\t\t\t\t\t\t\t\t\tvar dataArray = [endValueRGB[i]];\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (easing) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(easing);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (startValueRGB !== undefined) {\r\n\t\t\t\t\t\t\t\t\t\t\tdataArray.push(startValueRGB[i]);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\tfixPropertyValue(propertyName + colorComponents[i], dataArray);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t/* If we have replaced a shortcut color value then don't update the standard property name */\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfixPropertyValue(propertyName, valueData);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Along with its property data, store a reference to the element itself onto tweensContainer. */\r\n\t\t\t\t\t\ttweensContainer.element = element;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/*****************\r\n\t\t\t\t\t Call Push\r\n\t\t\t\t\t *****************/\r\n\r\n\t\t\t\t\t/* Note: tweensContainer can be empty if all of the properties in this call's property map were skipped due to not\r\n\t\t\t\t\t being supported by the browser. The element property is used for checking that the tweensContainer has been appended to. */\r\n\t\t\t\t\tif (tweensContainer.element) {\r\n\t\t\t\t\t\t/* Apply the \"velocity-animating\" indicator class. */\r\n\t\t\t\t\t\tCSS.Values.addClass(element, \"velocity-animating\");\r\n\r\n\t\t\t\t\t\t/* The call array houses the tweensContainers for each element being animated in the current call. */\r\n\t\t\t\t\t\tcall.push(tweensContainer);\r\n\r\n\t\t\t\t\t\tdata = Data(element);\r\n\r\n\t\t\t\t\t\tif (data) {\r\n\t\t\t\t\t\t\t/* Store the tweensContainer and options if we're working on the default effects queue, so that they can be used by the reverse command. */\r\n\t\t\t\t\t\t\tif (opts.queue === \"\") {\r\n\r\n\t\t\t\t\t\t\t\tdata.tweensContainer = tweensContainer;\r\n\t\t\t\t\t\t\t\tdata.opts = opts;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Switch on the element's animating flag. */\r\n\t\t\t\t\t\t\tdata.isAnimating = true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Once the final element in this call's element set has been processed, push the call array onto\r\n\t\t\t\t\t\t Velocity.State.calls for the animation tick to immediately begin processing. */\r\n\t\t\t\t\t\tif (elementsIndex === elementsLength - 1) {\r\n\t\t\t\t\t\t\t/* Add the current call plus its associated metadata (the element set and the call's options) onto the global call container.\r\n\t\t\t\t\t\t\t Anything on this call container is subjected to tick() processing. */\r\n\t\t\t\t\t\t\tVelocity.State.calls.push([call, elements, opts, null, promiseData.resolver, null, 0]);\r\n\r\n\t\t\t\t\t\t\t/* If the animation tick isn't running, start it. (Velocity shuts it off when there are no active calls to process.) */\r\n\t\t\t\t\t\t\tif (Velocity.State.isTicking === false) {\r\n\t\t\t\t\t\t\t\tVelocity.State.isTicking = true;\r\n\r\n\t\t\t\t\t\t\t\t/* Start the tick loop. */\r\n\t\t\t\t\t\t\t\ttick();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\telementsIndex++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* When the queue option is set to false, the call skips the element's queue and fires immediately. */\r\n\t\t\t\tif (opts.queue === false) {\r\n\t\t\t\t\t/* Since this buildQueue call doesn't respect the element's existing queue (which is where a delay option would have been appended),\r\n\t\t\t\t\t we manually inject the delay property here with an explicit setTimeout. */\r\n\t\t\t\t\tif (opts.delay) {\r\n\r\n\t\t\t\t\t\t/* Temporarily store delayed elements to facilitate access for global pause/resume */\r\n\t\t\t\t\t\tvar callIndex = Velocity.State.delayedElements.count++;\r\n\t\t\t\t\t\tVelocity.State.delayedElements[callIndex] = element;\r\n\r\n\t\t\t\t\t\tvar delayComplete = (function(index) {\r\n\t\t\t\t\t\t\treturn function() {\r\n\t\t\t\t\t\t\t\t/* Clear the temporary element */\r\n\t\t\t\t\t\t\t\tVelocity.State.delayedElements[index] = false;\r\n\r\n\t\t\t\t\t\t\t\t/* Finally, issue the call */\r\n\t\t\t\t\t\t\t\tbuildQueue();\r\n\t\t\t\t\t\t\t};\r\n\t\t\t\t\t\t})(callIndex);\r\n\r\n\t\t\t\t\t\tData(element).delayBegin = (new Date()).getTime();\r\n\t\t\t\t\t\tData(element).delay = parseFloat(opts.delay);\r\n\t\t\t\t\t\tData(element).delayTimer = {\r\n\t\t\t\t\t\t\tsetTimeout: setTimeout(buildQueue, parseFloat(opts.delay)),\r\n\t\t\t\t\t\t\tnext: delayComplete\r\n\t\t\t\t\t\t};\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbuildQueue();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/* Otherwise, the call undergoes element queueing as normal. */\r\n\t\t\t\t\t/* Note: To interoperate with jQuery, Velocity uses jQuery's own $.queue() stack for queuing logic. */\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$.queue(element, opts.queue, function(next, clearQueue) {\r\n\t\t\t\t\t\t/* If the clearQueue flag was passed in by the stop command, resolve this call's promise. (Promises can only be resolved once,\r\n\t\t\t\t\t\t so it's fine if this is repeatedly triggered for each element in the associated call.) */\r\n\t\t\t\t\t\tif (clearQueue === true) {\r\n\t\t\t\t\t\t\tif (promiseData.promise) {\r\n\t\t\t\t\t\t\t\tpromiseData.resolver(elements);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t/* Do not continue with animation queueing. */\r\n\t\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* This flag indicates to the upcoming completeCall() function that this queue entry was initiated by Velocity.\r\n\t\t\t\t\t\t See completeCall() for further details. */\r\n\t\t\t\t\t\tVelocity.velocityQueueEntryFlag = true;\r\n\r\n\t\t\t\t\t\tbuildQueue(next);\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*********************\r\n\t\t\t\t Auto-Dequeuing\r\n\t\t\t\t *********************/\r\n\r\n\t\t\t\t/* As per jQuery's $.queue() behavior, to fire the first non-custom-queue entry on an element, the element\r\n\t\t\t\t must be dequeued if its queue stack consists *solely* of the current call. (This can be determined by checking\r\n\t\t\t\t for the \"inprogress\" item that jQuery prepends to active queue stack arrays.) Regardless, whenever the element's\r\n\t\t\t\t queue is further appended with additional items -- including $.delay()'s or even $.animate() calls, the queue's\r\n\t\t\t\t first entry is automatically fired. This behavior contrasts that of custom queues, which never auto-fire. */\r\n\t\t\t\t/* Note: When an element set is being subjected to a non-parallel Velocity call, the animation will not begin until\r\n\t\t\t\t each one of the elements in the set has reached the end of its individually pre-existing queue chain. */\r\n\t\t\t\t/* Note: Unfortunately, most people don't fully grasp jQuery's powerful, yet quirky, $.queue() function.\r\n\t\t\t\t Lean more here: http://stackoverflow.com/questions/1058158/can-somebody-explain-jquery-queue-to-me */\r\n\t\t\t\tif ((opts.queue === \"\" || opts.queue === \"fx\") && $.queue(element)[0] !== \"inprogress\") {\r\n\t\t\t\t\t$.dequeue(element);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/**************************\r\n\t\t\t Element Set Iteration\r\n\t\t\t **************************/\r\n\r\n\t\t\t/* If the \"nodeType\" property exists on the elements variable, we're animating a single element.\r\n\t\t\t Place it in an array so that $.each() can iterate over it. */\r\n\t\t\t$.each(elements, function(i, element) {\r\n\t\t\t\t/* Ensure each element in a set has a nodeType (is a real element) to avoid throwing errors. */\r\n\t\t\t\tif (Type.isNode(element)) {\r\n\t\t\t\t\tprocessElement(element, i);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t/******************\r\n\t\t\t Option: Loop\r\n\t\t\t ******************/\r\n\r\n\t\t\t/* The loop option accepts an integer indicating how many times the element should loop between the values in the\r\n\t\t\t current call's properties map and the element's property values prior to this call. */\r\n\t\t\t/* Note: The loop option's logic is performed here -- after element processing -- because the current call needs\r\n\t\t\t to undergo its queue insertion prior to the loop option generating its series of constituent \"reverse\" calls,\r\n\t\t\t which chain after the current call. Two reverse calls (two \"alternations\") constitute one loop. */\r\n\t\t\topts = $.extend({}, Velocity.defaults, options);\r\n\t\t\topts.loop = parseInt(opts.loop, 10);\r\n\t\t\tvar reverseCallsCount = (opts.loop * 2) - 1;\r\n\r\n\t\t\tif (opts.loop) {\r\n\t\t\t\t/* Double the loop count to convert it into its appropriate number of \"reverse\" calls.\r\n\t\t\t\t Subtract 1 from the resulting value since the current call is included in the total alternation count. */\r\n\t\t\t\tfor (var x = 0; x < reverseCallsCount; x++) {\r\n\t\t\t\t\t/* Since the logic for the reverse action occurs inside Queueing and therefore this call's options object\r\n\t\t\t\t\t isn't parsed until then as well, the current call's delay option must be explicitly passed into the reverse\r\n\t\t\t\t\t call so that the delay logic that occurs inside *Pre-Queueing* can process it. */\r\n\t\t\t\t\tvar reverseOptions = {\r\n\t\t\t\t\t\tdelay: opts.delay,\r\n\t\t\t\t\t\tprogress: opts.progress\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\t/* If a complete callback was passed into this call, transfer it to the loop redirect's final \"reverse\" call\r\n\t\t\t\t\t so that it's triggered when the entire redirect is complete (and not when the very first animation is complete). */\r\n\t\t\t\t\tif (x === reverseCallsCount - 1) {\r\n\t\t\t\t\t\treverseOptions.display = opts.display;\r\n\t\t\t\t\t\treverseOptions.visibility = opts.visibility;\r\n\t\t\t\t\t\treverseOptions.complete = opts.complete;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tanimate(elements, \"reverse\", reverseOptions);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/***************\r\n\t\t\t Chaining\r\n\t\t\t ***************/\r\n\r\n\t\t\t/* Return the elements back to the call chain, with wrapped elements taking precedence in case Velocity was called via the $.fn. extension. */\r\n\t\t\treturn getChain();\r\n\t\t};\r\n\r\n\t\t/* Turn Velocity into the animation function, extended with the pre-existing Velocity object. */\r\n\t\tVelocity = $.extend(animate, Velocity);\r\n\t\t/* For legacy support, also expose the literal animate method. */\r\n\t\tVelocity.animate = animate;\r\n\r\n\t\t/**************\r\n\t\t Timing\r\n\t\t **************/\r\n\r\n\t\t/* Ticker function. */\r\n\t\tvar ticker = window.requestAnimationFrame || rAFShim;\r\n\r\n\t\t/* Inactive browser tabs pause rAF, which results in all active animations immediately sprinting to their completion states when the tab refocuses.\r\n\t\t To get around this, we dynamically switch rAF to setTimeout (which the browser *doesn't* pause) when the tab loses focus. We skip this for mobile\r\n\t\t devices to avoid wasting battery power on inactive tabs. */\r\n\t\t/* Note: Tab focus detection doesn't work on older versions of IE, but that's okay since they don't support rAF to begin with. */\r\n\t\tif (!Velocity.State.isMobile && document.hidden !== undefined) {\r\n\t\t\tvar updateTicker = function() {\r\n\t\t\t\t/* Reassign the rAF function (which the global tick() function uses) based on the tab's focus state. */\r\n\t\t\t\tif (document.hidden) {\r\n\t\t\t\t\tticker = function(callback) {\r\n\t\t\t\t\t\t/* The tick function needs a truthy first argument in order to pass its internal timestamp check. */\r\n\t\t\t\t\t\treturn setTimeout(function() {\r\n\t\t\t\t\t\t\tcallback(true);\r\n\t\t\t\t\t\t}, 16);\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t\t/* The rAF loop has been paused by the browser, so we manually restart the tick. */\r\n\t\t\t\t\ttick();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tticker = window.requestAnimationFrame || rAFShim;\r\n\t\t\t\t}\r\n\t\t\t};\r\n\r\n\t\t\t/* Page could be sitting in the background at this time (i.e. opened as new tab) so making sure we use correct ticker from the start */\r\n\t\t\tupdateTicker();\r\n\r\n\t\t\t/* And then run check again every time visibility changes */\r\n\t\t\tdocument.addEventListener(\"visibilitychange\", updateTicker);\r\n\t\t}\r\n\r\n\t\t/************\r\n\t\t Tick\r\n\t\t ************/\r\n\r\n\t\t/* Note: All calls to Velocity are pushed to the Velocity.State.calls array, which is fully iterated through upon each tick. */\r\n\t\tfunction tick(timestamp) {\r\n\t\t\t/* An empty timestamp argument indicates that this is the first tick occurence since ticking was turned on.\r\n\t\t\t We leverage this metadata to fully ignore the first tick pass since RAF's initial pass is fired whenever\r\n\t\t\t the browser's next tick sync time occurs, which results in the first elements subjected to Velocity\r\n\t\t\t calls being animated out of sync with any elements animated immediately thereafter. In short, we ignore\r\n\t\t\t the first RAF tick pass so that elements being immediately consecutively animated -- instead of simultaneously animated\r\n\t\t\t by the same Velocity call -- are properly batched into the same initial RAF tick and consequently remain in sync thereafter. */\r\n\t\t\tif (timestamp) {\r\n\t\t\t\t/* We normally use RAF's high resolution timestamp but as it can be significantly offset when the browser is\r\n\t\t\t\t under high stress we give the option for choppiness over allowing the browser to drop huge chunks of frames.\r\n\t\t\t\t We use performance.now() and shim it if it doesn't exist for when the tab is hidden. */\r\n\t\t\t\tvar timeCurrent = Velocity.timestamp && timestamp !== true ? timestamp : performance.now();\r\n\r\n\t\t\t\t/********************\r\n\t\t\t\t Call Iteration\r\n\t\t\t\t ********************/\r\n\r\n\t\t\t\tvar callsLength = Velocity.State.calls.length;\r\n\r\n\t\t\t\t/* To speed up iterating over this array, it is compacted (falsey items -- calls that have completed -- are removed)\r\n\t\t\t\t when its length has ballooned to a point that can impact tick performance. This only becomes necessary when animation\r\n\t\t\t\t has been continuous with many elements over a long period of time; whenever all active calls are completed, completeCall() clears Velocity.State.calls. */\r\n\t\t\t\tif (callsLength > 10000) {\r\n\t\t\t\t\tVelocity.State.calls = compactSparseArray(Velocity.State.calls);\r\n\t\t\t\t\tcallsLength = Velocity.State.calls.length;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Iterate through each active call. */\r\n\t\t\t\tfor (var i = 0; i < callsLength; i++) {\r\n\t\t\t\t\t/* When a Velocity call is completed, its Velocity.State.calls entry is set to false. Continue on to the next call. */\r\n\t\t\t\t\tif (!Velocity.State.calls[i]) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/************************\r\n\t\t\t\t\t Call-Wide Variables\r\n\t\t\t\t\t ************************/\r\n\r\n\t\t\t\t\tvar callContainer = Velocity.State.calls[i],\r\n\t\t\t\t\t\t\tcall = callContainer[0],\r\n\t\t\t\t\t\t\topts = callContainer[2],\r\n\t\t\t\t\t\t\ttimeStart = callContainer[3],\r\n\t\t\t\t\t\t\tfirstTick = !timeStart,\r\n\t\t\t\t\t\t\ttweenDummyValue = null,\r\n\t\t\t\t\t\t\tpauseObject = callContainer[5],\r\n\t\t\t\t\t\t\tmillisecondsEllapsed = callContainer[6];\r\n\r\n\r\n\r\n\t\t\t\t\t/* If timeStart is undefined, then this is the first time that this call has been processed by tick().\r\n\t\t\t\t\t We assign timeStart now so that its value is as close to the real animation start time as possible.\r\n\t\t\t\t\t (Conversely, had timeStart been defined when this call was added to Velocity.State.calls, the delay\r\n\t\t\t\t\t between that time and now would cause the first few frames of the tween to be skipped since\r\n\t\t\t\t\t percentComplete is calculated relative to timeStart.) */\r\n\t\t\t\t\t/* Further, subtract 16ms (the approximate resolution of RAF) from the current time value so that the\r\n\t\t\t\t\t first tick iteration isn't wasted by animating at 0% tween completion, which would produce the\r\n\t\t\t\t\t same style value as the element's current value. */\r\n\t\t\t\t\tif (!timeStart) {\r\n\t\t\t\t\t\ttimeStart = Velocity.State.calls[i][3] = timeCurrent - 16;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* If a pause object is present, skip processing unless it has been set to resume */\r\n\t\t\t\t\tif (pauseObject) {\r\n\t\t\t\t\t\tif (pauseObject.resume === true) {\r\n\t\t\t\t\t\t\t/* Update the time start to accomodate the paused completion amount */\r\n\t\t\t\t\t\t\ttimeStart = callContainer[3] = Math.round(timeCurrent - millisecondsEllapsed - 16);\r\n\r\n\t\t\t\t\t\t\t/* Remove pause object after processing */\r\n\t\t\t\t\t\t\tcallContainer[5] = null;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tmillisecondsEllapsed = callContainer[6] = timeCurrent - timeStart;\r\n\r\n\t\t\t\t\t/* The tween's completion percentage is relative to the tween's start time, not the tween's start value\r\n\t\t\t\t\t (which would result in unpredictable tween durations since JavaScript's timers are not particularly accurate).\r\n\t\t\t\t\t Accordingly, we ensure that percentComplete does not exceed 1. */\r\n\t\t\t\t\tvar percentComplete = Math.min((millisecondsEllapsed) / opts.duration, 1);\r\n\r\n\t\t\t\t\t/**********************\r\n\t\t\t\t\t Element Iteration\r\n\t\t\t\t\t **********************/\r\n\r\n\t\t\t\t\t/* For every call, iterate through each of the elements in its set. */\r\n\t\t\t\t\tfor (var j = 0, callLength = call.length; j < callLength; j++) {\r\n\t\t\t\t\t\tvar tweensContainer = call[j],\r\n\t\t\t\t\t\t\t\telement = tweensContainer.element;\r\n\r\n\t\t\t\t\t\t/* Check to see if this element has been deleted midway through the animation by checking for the\r\n\t\t\t\t\t\t continued existence of its data cache. If it's gone, or the element is currently paused, skip animating this element. */\r\n\t\t\t\t\t\tif (!Data(element)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tvar transformPropertyExists = false;\r\n\r\n\t\t\t\t\t\t/**********************************\r\n\t\t\t\t\t\t Display & Visibility Toggling\r\n\t\t\t\t\t\t **********************************/\r\n\r\n\t\t\t\t\t\t/* If the display option is set to non-\"none\", set it upfront so that the element can become visible before tweening begins.\r\n\t\t\t\t\t\t (Otherwise, display's \"none\" value is set in completeCall() once the animation has completed.) */\r\n\t\t\t\t\t\tif (opts.display !== undefined && opts.display !== null && opts.display !== \"none\") {\r\n\t\t\t\t\t\t\tif (opts.display === \"flex\") {\r\n\t\t\t\t\t\t\t\tvar flexValues = [\"-webkit-box\", \"-moz-box\", \"-ms-flexbox\", \"-webkit-flex\"];\r\n\r\n\t\t\t\t\t\t\t\t$.each(flexValues, function(i, flexValue) {\r\n\t\t\t\t\t\t\t\t\tCSS.setPropertyValue(element, \"display\", flexValue);\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tCSS.setPropertyValue(element, \"display\", opts.display);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Same goes with the visibility option, but its \"none\" equivalent is \"hidden\". */\r\n\t\t\t\t\t\tif (opts.visibility !== undefined && opts.visibility !== \"hidden\") {\r\n\t\t\t\t\t\t\tCSS.setPropertyValue(element, \"visibility\", opts.visibility);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/************************\r\n\t\t\t\t\t\t Property Iteration\r\n\t\t\t\t\t\t ************************/\r\n\r\n\t\t\t\t\t\t/* For every element, iterate through each property. */\r\n\t\t\t\t\t\tfor (var property in tweensContainer) {\r\n\t\t\t\t\t\t\t/* Note: In addition to property tween data, tweensContainer contains a reference to its associated element. */\r\n\t\t\t\t\t\t\tif (tweensContainer.hasOwnProperty(property) && property !== \"element\") {\r\n\t\t\t\t\t\t\t\tvar tween = tweensContainer[property],\r\n\t\t\t\t\t\t\t\t\t\tcurrentValue,\r\n\t\t\t\t\t\t\t\t\t\t/* Easing can either be a pre-genereated function or a string that references a pre-registered easing\r\n\t\t\t\t\t\t\t\t\t\t on the Velocity.Easings object. In either case, return the appropriate easing *function*. */\r\n\t\t\t\t\t\t\t\t\t\teasing = Type.isString(tween.easing) ? Velocity.Easings[tween.easing] : tween.easing;\r\n\r\n\t\t\t\t\t\t\t\t/******************************\r\n\t\t\t\t\t\t\t\t Current Value Calculation\r\n\t\t\t\t\t\t\t\t ******************************/\r\n\r\n\t\t\t\t\t\t\t\tif (Type.isString(tween.pattern)) {\r\n\t\t\t\t\t\t\t\t\tvar patternReplace = percentComplete === 1 ?\r\n\t\t\t\t\t\t\t\t\t\t\tfunction($0, index, round) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar result = tween.endValue[index];\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn round ? Math.round(result) : result;\r\n\t\t\t\t\t\t\t\t\t\t\t} :\r\n\t\t\t\t\t\t\t\t\t\t\tfunction($0, index, round) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tvar startValue = tween.startValue[index],\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttweenDelta = tween.endValue[index] - startValue,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tresult = startValue + (tweenDelta * easing(percentComplete, opts, tweenDelta));\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\treturn round ? Math.round(result) : result;\r\n\t\t\t\t\t\t\t\t\t\t\t};\r\n\r\n\t\t\t\t\t\t\t\t\tcurrentValue = tween.pattern.replace(/{(\\d+)(!)?}/g, patternReplace);\r\n\t\t\t\t\t\t\t\t} else if (percentComplete === 1) {\r\n\t\t\t\t\t\t\t\t\t/* If this is the last tick pass (if we've reached 100% completion for this tween),\r\n\t\t\t\t\t\t\t\t\t ensure that currentValue is explicitly set to its target endValue so that it's not subjected to any rounding. */\r\n\t\t\t\t\t\t\t\t\tcurrentValue = tween.endValue;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/* Otherwise, calculate currentValue based on the current delta from startValue. */\r\n\t\t\t\t\t\t\t\t\tvar tweenDelta = tween.endValue - tween.startValue;\r\n\r\n\t\t\t\t\t\t\t\t\tcurrentValue = tween.startValue + (tweenDelta * easing(percentComplete, opts, tweenDelta));\r\n\t\t\t\t\t\t\t\t\t/* If no value change is occurring, don't proceed with DOM updating. */\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (!firstTick && (currentValue === tween.currentValue)) {\r\n\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\ttween.currentValue = currentValue;\r\n\r\n\t\t\t\t\t\t\t\t/* If we're tweening a fake 'tween' property in order to log transition values, update the one-per-call variable so that\r\n\t\t\t\t\t\t\t\t it can be passed into the progress callback. */\r\n\t\t\t\t\t\t\t\tif (property === \"tween\") {\r\n\t\t\t\t\t\t\t\t\ttweenDummyValue = currentValue;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t/******************\r\n\t\t\t\t\t\t\t\t\t Hooks: Part I\r\n\t\t\t\t\t\t\t\t\t ******************/\r\n\t\t\t\t\t\t\t\t\tvar hookRoot;\r\n\r\n\t\t\t\t\t\t\t\t\t/* For hooked properties, the newly-updated rootPropertyValueCache is cached onto the element so that it can be used\r\n\t\t\t\t\t\t\t\t\t for subsequent hooks in this call that are associated with the same root property. If we didn't cache the updated\r\n\t\t\t\t\t\t\t\t\t rootPropertyValue, each subsequent update to the root property in this tick pass would reset the previous hook's\r\n\t\t\t\t\t\t\t\t\t updates to rootPropertyValue prior to injection. A nice performance byproduct of rootPropertyValue caching is that\r\n\t\t\t\t\t\t\t\t\t subsequently chained animations using the same hookRoot but a different hook can use this cached rootPropertyValue. */\r\n\t\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\t\t\t\t\t\thookRoot = CSS.Hooks.getRoot(property);\r\n\r\n\t\t\t\t\t\t\t\t\t\tvar rootPropertyValueCache = Data(element).rootPropertyValueCache[hookRoot];\r\n\r\n\t\t\t\t\t\t\t\t\t\tif (rootPropertyValueCache) {\r\n\t\t\t\t\t\t\t\t\t\t\ttween.rootPropertyValue = rootPropertyValueCache;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t/*****************\r\n\t\t\t\t\t\t\t\t\t DOM Update\r\n\t\t\t\t\t\t\t\t\t *****************/\r\n\r\n\t\t\t\t\t\t\t\t\t/* setPropertyValue() returns an array of the property name and property value post any normalization that may have been performed. */\r\n\t\t\t\t\t\t\t\t\t/* Note: To solve an IE<=8 positioning bug, the unit type is dropped when setting a property value of 0. */\r\n\t\t\t\t\t\t\t\t\tvar adjustedSetData = CSS.setPropertyValue(element, /* SET */\r\n\t\t\t\t\t\t\t\t\t\t\tproperty,\r\n\t\t\t\t\t\t\t\t\t\t\ttween.currentValue + (IE < 9 && parseFloat(currentValue) === 0 ? \"\" : tween.unitType),\r\n\t\t\t\t\t\t\t\t\t\t\ttween.rootPropertyValue,\r\n\t\t\t\t\t\t\t\t\t\t\ttween.scrollData);\r\n\r\n\t\t\t\t\t\t\t\t\t/*******************\r\n\t\t\t\t\t\t\t\t\t Hooks: Part II\r\n\t\t\t\t\t\t\t\t\t *******************/\r\n\r\n\t\t\t\t\t\t\t\t\t/* Now that we have the hook's updated rootPropertyValue (the post-processed value provided by adjustedSetData), cache it onto the element. */\r\n\t\t\t\t\t\t\t\t\tif (CSS.Hooks.registered[property]) {\r\n\t\t\t\t\t\t\t\t\t\t/* Since adjustedSetData contains normalized data ready for DOM updating, the rootPropertyValue needs to be re-extracted from its normalized form. ?? */\r\n\t\t\t\t\t\t\t\t\t\tif (CSS.Normalizations.registered[hookRoot]) {\r\n\t\t\t\t\t\t\t\t\t\t\tData(element).rootPropertyValueCache[hookRoot] = CSS.Normalizations.registered[hookRoot](\"extract\", null, adjustedSetData[1]);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tData(element).rootPropertyValueCache[hookRoot] = adjustedSetData[1];\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t/***************\r\n\t\t\t\t\t\t\t\t\t Transforms\r\n\t\t\t\t\t\t\t\t\t ***************/\r\n\r\n\t\t\t\t\t\t\t\t\t/* Flag whether a transform property is being animated so that flushTransformCache() can be triggered once this tick pass is complete. */\r\n\t\t\t\t\t\t\t\t\tif (adjustedSetData[0] === \"transform\") {\r\n\t\t\t\t\t\t\t\t\t\ttransformPropertyExists = true;\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/****************\r\n\t\t\t\t\t\t mobileHA\r\n\t\t\t\t\t\t ****************/\r\n\r\n\t\t\t\t\t\t/* If mobileHA is enabled, set the translate3d transform to null to force hardware acceleration.\r\n\t\t\t\t\t\t It's safe to override this property since Velocity doesn't actually support its animation (hooks are used in its place). */\r\n\t\t\t\t\t\tif (opts.mobileHA) {\r\n\t\t\t\t\t\t\t/* Don't set the null transform hack if we've already done so. */\r\n\t\t\t\t\t\t\tif (Data(element).transformCache.translate3d === undefined) {\r\n\t\t\t\t\t\t\t\t/* All entries on the transformCache object are later concatenated into a single transform string via flushTransformCache(). */\r\n\t\t\t\t\t\t\t\tData(element).transformCache.translate3d = \"(0px, 0px, 0px)\";\r\n\r\n\t\t\t\t\t\t\t\ttransformPropertyExists = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (transformPropertyExists) {\r\n\t\t\t\t\t\t\tCSS.flushTransformCache(element);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* The non-\"none\" display value is only applied to an element once -- when its associated call is first ticked through.\r\n\t\t\t\t\t Accordingly, it's set to false so that it isn't re-processed by this call in the next tick. */\r\n\t\t\t\t\tif (opts.display !== undefined && opts.display !== \"none\") {\r\n\t\t\t\t\t\tVelocity.State.calls[i][2].display = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (opts.visibility !== undefined && opts.visibility !== \"hidden\") {\r\n\t\t\t\t\t\tVelocity.State.calls[i][2].visibility = false;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Pass the elements and the timing data (percentComplete, msRemaining, timeStart, tweenDummyValue) into the progress callback. */\r\n\t\t\t\t\tif (opts.progress) {\r\n\t\t\t\t\t\topts.progress.call(callContainer[1],\r\n\t\t\t\t\t\t\t\tcallContainer[1],\r\n\t\t\t\t\t\t\t\tpercentComplete,\r\n\t\t\t\t\t\t\t\tMath.max(0, (timeStart + opts.duration) - timeCurrent),\r\n\t\t\t\t\t\t\t\ttimeStart,\r\n\t\t\t\t\t\t\t\ttweenDummyValue);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* If this call has finished tweening, pass its index to completeCall() to handle call cleanup. */\r\n\t\t\t\t\tif (percentComplete === 1) {\r\n\t\t\t\t\t\tcompleteCall(i);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/* Note: completeCall() sets the isTicking flag to false when the last call on Velocity.State.calls has completed. */\r\n\t\t\tif (Velocity.State.isTicking) {\r\n\t\t\t\tticker(tick);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**********************\r\n\t\t Call Completion\r\n\t\t **********************/\r\n\r\n\t\t/* Note: Unlike tick(), which processes all active calls at once, call completion is handled on a per-call basis. */\r\n\t\tfunction completeCall(callIndex, isStopped) {\r\n\t\t\t/* Ensure the call exists. */\r\n\t\t\tif (!Velocity.State.calls[callIndex]) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t/* Pull the metadata from the call. */\r\n\t\t\tvar call = Velocity.State.calls[callIndex][0],\r\n\t\t\t\t\telements = Velocity.State.calls[callIndex][1],\r\n\t\t\t\t\topts = Velocity.State.calls[callIndex][2],\r\n\t\t\t\t\tresolver = Velocity.State.calls[callIndex][4];\r\n\r\n\t\t\tvar remainingCallsExist = false;\r\n\r\n\t\t\t/*************************\r\n\t\t\t Element Finalization\r\n\t\t\t *************************/\r\n\r\n\t\t\tfor (var i = 0, callLength = call.length; i < callLength; i++) {\r\n\t\t\t\tvar element = call[i].element;\r\n\r\n\t\t\t\t/* If the user set display to \"none\" (intending to hide the element), set it now that the animation has completed. */\r\n\t\t\t\t/* Note: display:none isn't set when calls are manually stopped (via Velocity(\"stop\"). */\r\n\t\t\t\t/* Note: Display gets ignored with \"reverse\" calls and infinite loops, since this behavior would be undesirable. */\r\n\t\t\t\tif (!isStopped && !opts.loop) {\r\n\t\t\t\t\tif (opts.display === \"none\") {\r\n\t\t\t\t\t\tCSS.setPropertyValue(element, \"display\", opts.display);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (opts.visibility === \"hidden\") {\r\n\t\t\t\t\t\tCSS.setPropertyValue(element, \"visibility\", opts.visibility);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* If the element's queue is empty (if only the \"inprogress\" item is left at position 0) or if its queue is about to run\r\n\t\t\t\t a non-Velocity-initiated entry, turn off the isAnimating flag. A non-Velocity-initiatied queue entry's logic might alter\r\n\t\t\t\t an element's CSS values and thereby cause Velocity's cached value data to go stale. To detect if a queue entry was initiated by Velocity,\r\n\t\t\t\t we check for the existence of our special Velocity.queueEntryFlag declaration, which minifiers won't rename since the flag\r\n\t\t\t\t is assigned to jQuery's global $ object and thus exists out of Velocity's own scope. */\r\n\t\t\t\tvar data = Data(element);\r\n\r\n\t\t\t\tif (opts.loop !== true && ($.queue(element)[1] === undefined || !/\\.velocityQueueEntryFlag/i.test($.queue(element)[1]))) {\r\n\t\t\t\t\t/* The element may have been deleted. Ensure that its data cache still exists before acting on it. */\r\n\t\t\t\t\tif (data) {\r\n\t\t\t\t\t\tdata.isAnimating = false;\r\n\t\t\t\t\t\t/* Clear the element's rootPropertyValueCache, which will become stale. */\r\n\t\t\t\t\t\tdata.rootPropertyValueCache = {};\r\n\r\n\t\t\t\t\t\tvar transformHAPropertyExists = false;\r\n\t\t\t\t\t\t/* If any 3D transform subproperty is at its default value (regardless of unit type), remove it. */\r\n\t\t\t\t\t\t$.each(CSS.Lists.transforms3D, function(i, transformName) {\r\n\t\t\t\t\t\t\tvar defaultValue = /^scale/.test(transformName) ? 1 : 0,\r\n\t\t\t\t\t\t\t\t\tcurrentValue = data.transformCache[transformName];\r\n\r\n\t\t\t\t\t\t\tif (data.transformCache[transformName] !== undefined && new RegExp(\"^\\\\(\" + defaultValue + \"[^.]\").test(currentValue)) {\r\n\t\t\t\t\t\t\t\ttransformHAPropertyExists = true;\r\n\r\n\t\t\t\t\t\t\t\tdelete data.transformCache[transformName];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\t/* Mobile devices have hardware acceleration removed at the end of the animation in order to avoid hogging the GPU's memory. */\r\n\t\t\t\t\t\tif (opts.mobileHA) {\r\n\t\t\t\t\t\t\ttransformHAPropertyExists = true;\r\n\t\t\t\t\t\t\tdelete data.transformCache.translate3d;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Flush the subproperty removals to the DOM. */\r\n\t\t\t\t\t\tif (transformHAPropertyExists) {\r\n\t\t\t\t\t\t\tCSS.flushTransformCache(element);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/* Remove the \"velocity-animating\" indicator class. */\r\n\t\t\t\t\t\tCSS.Values.removeClass(element, \"velocity-animating\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/*********************\r\n\t\t\t\t Option: Complete\r\n\t\t\t\t *********************/\r\n\r\n\t\t\t\t/* Complete is fired once per call (not once per element) and is passed the full raw DOM element set as both its context and its first argument. */\r\n\t\t\t\t/* Note: Callbacks aren't fired when calls are manually stopped (via Velocity(\"stop\"). */\r\n\t\t\t\tif (!isStopped && opts.complete && !opts.loop && (i === callLength - 1)) {\r\n\t\t\t\t\t/* We throw callbacks in a setTimeout so that thrown errors don't halt the execution of Velocity itself. */\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\topts.complete.call(elements, elements);\r\n\t\t\t\t\t} catch (error) {\r\n\t\t\t\t\t\tsetTimeout(function() {\r\n\t\t\t\t\t\t\tthrow error;\r\n\t\t\t\t\t\t}, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/**********************\r\n\t\t\t\t Promise Resolving\r\n\t\t\t\t **********************/\r\n\r\n\t\t\t\t/* Note: Infinite loops don't return promises. */\r\n\t\t\t\tif (resolver && opts.loop !== true) {\r\n\t\t\t\t\tresolver(elements);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/****************************\r\n\t\t\t\t Option: Loop (Infinite)\r\n\t\t\t\t ****************************/\r\n\r\n\t\t\t\tif (data && opts.loop === true && !isStopped) {\r\n\t\t\t\t\t/* If a rotateX/Y/Z property is being animated by 360 deg with loop:true, swap tween start/end values to enable\r\n\t\t\t\t\t continuous iterative rotation looping. (Otherise, the element would just rotate back and forth.) */\r\n\t\t\t\t\t$.each(data.tweensContainer, function(propertyName, tweenContainer) {\r\n\t\t\t\t\t\tif (/^rotate/.test(propertyName) && ((parseFloat(tweenContainer.startValue) - parseFloat(tweenContainer.endValue)) % 360 === 0)) {\r\n\t\t\t\t\t\t\tvar oldStartValue = tweenContainer.startValue;\r\n\r\n\t\t\t\t\t\t\ttweenContainer.startValue = tweenContainer.endValue;\r\n\t\t\t\t\t\t\ttweenContainer.endValue = oldStartValue;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (/^backgroundPosition/.test(propertyName) && parseFloat(tweenContainer.endValue) === 100 && tweenContainer.unitType === \"%\") {\r\n\t\t\t\t\t\t\ttweenContainer.endValue = 0;\r\n\t\t\t\t\t\t\ttweenContainer.startValue = 100;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tVelocity(element, \"reverse\", {loop: true, delay: opts.delay});\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/***************\r\n\t\t\t\t Dequeueing\r\n\t\t\t\t ***************/\r\n\r\n\t\t\t\t/* Fire the next call in the queue so long as this call's queue wasn't set to false (to trigger a parallel animation),\r\n\t\t\t\t which would have already caused the next call to fire. Note: Even if the end of the animation queue has been reached,\r\n\t\t\t\t $.dequeue() must still be called in order to completely clear jQuery's animation queue. */\r\n\t\t\t\tif (opts.queue !== false) {\r\n\t\t\t\t\t$.dequeue(element, opts.queue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/************************\r\n\t\t\t Calls Array Cleanup\r\n\t\t\t ************************/\r\n\r\n\t\t\t/* Since this call is complete, set it to false so that the rAF tick skips it. This array is later compacted via compactSparseArray().\r\n\t\t\t (For performance reasons, the call is set to false instead of being deleted from the array: http://www.html5rocks.com/en/tutorials/speed/v8/) */\r\n\t\t\tVelocity.State.calls[callIndex] = false;\r\n\r\n\t\t\t/* Iterate through the calls array to determine if this was the final in-progress animation.\r\n\t\t\t If so, set a flag to end ticking and clear the calls array. */\r\n\t\t\tfor (var j = 0, callsLength = Velocity.State.calls.length; j < callsLength; j++) {\r\n\t\t\t\tif (Velocity.State.calls[j] !== false) {\r\n\t\t\t\t\tremainingCallsExist = true;\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (remainingCallsExist === false) {\r\n\t\t\t\t/* tick() will detect this flag upon its next iteration and subsequently turn itself off. */\r\n\t\t\t\tVelocity.State.isTicking = false;\r\n\r\n\t\t\t\t/* Clear the calls array so that its length is reset. */\r\n\t\t\t\tdelete Velocity.State.calls;\r\n\t\t\t\tVelocity.State.calls = [];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/******************\r\n\t\t Frameworks\r\n\t\t ******************/\r\n\r\n\t\t/* Both jQuery and Zepto allow their $.fn object to be extended to allow wrapped elements to be subjected to plugin calls.\r\n\t\t If either framework is loaded, register a \"velocity\" extension pointing to Velocity's core animate() method.  Velocity\r\n\t\t also registers itself onto a global container (window.jQuery || window.Zepto || window) so that certain features are\r\n\t\t accessible beyond just a per-element scope. This master object contains an .animate() method, which is later assigned to $.fn\r\n\t\t (if jQuery or Zepto are present). Accordingly, Velocity can both act on wrapped DOM elements and stand alone for targeting raw DOM elements. */\r\n\t\tglobal.Velocity = Velocity;\r\n\r\n\t\tif (global !== window) {\r\n\t\t\t/* Assign the element function to Velocity's core animate() method. */\r\n\t\t\tglobal.fn.velocity = animate;\r\n\t\t\t/* Assign the object function's defaults to Velocity's global defaults object. */\r\n\t\t\tglobal.fn.velocity.defaults = Velocity.defaults;\r\n\t\t}\r\n\r\n\t\t/***********************\r\n\t\t Packaged Redirects\r\n\t\t ***********************/\r\n\r\n\t\t/* slideUp, slideDown */\r\n\t\t$.each([\"Down\", \"Up\"], function(i, direction) {\r\n\t\t\tVelocity.Redirects[\"slide\" + direction] = function(element, options, elementsIndex, elementsSize, elements, promiseData) {\r\n\t\t\t\tvar opts = $.extend({}, options),\r\n\t\t\t\t\t\tbegin = opts.begin,\r\n\t\t\t\t\t\tcomplete = opts.complete,\r\n\t\t\t\t\t\tinlineValues = {},\r\n\t\t\t\t\t\tcomputedValues = {height: \"\", marginTop: \"\", marginBottom: \"\", paddingTop: \"\", paddingBottom: \"\"};\r\n\r\n\t\t\t\tif (opts.display === undefined) {\r\n\t\t\t\t\t/* Show the element before slideDown begins and hide the element after slideUp completes. */\r\n\t\t\t\t\t/* Note: Inline elements cannot have dimensions animated, so they're reverted to inline-block. */\r\n\t\t\t\t\topts.display = (direction === \"Down\" ? (Velocity.CSS.Values.getDisplayType(element) === \"inline\" ? \"inline-block\" : \"block\") : \"none\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\topts.begin = function() {\r\n\t\t\t\t\t/* If the user passed in a begin callback, fire it now. */\r\n\t\t\t\t\tif (elementsIndex === 0 && begin) {\r\n\t\t\t\t\t\tbegin.call(elements, elements);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Cache the elements' original vertical dimensional property values so that we can animate back to them. */\r\n\t\t\t\t\tfor (var property in computedValues) {\r\n\t\t\t\t\t\tif (!computedValues.hasOwnProperty(property)) {\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tinlineValues[property] = element.style[property];\r\n\r\n\t\t\t\t\t\t/* For slideDown, use forcefeeding to animate all vertical properties from 0. For slideUp,\r\n\t\t\t\t\t\t use forcefeeding to start from computed values and animate down to 0. */\r\n\t\t\t\t\t\tvar propertyValue = CSS.getPropertyValue(element, property);\r\n\t\t\t\t\t\tcomputedValues[property] = (direction === \"Down\") ? [propertyValue, 0] : [0, propertyValue];\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* Force vertical overflow content to clip so that sliding works as expected. */\r\n\t\t\t\t\tinlineValues.overflow = element.style.overflow;\r\n\t\t\t\t\telement.style.overflow = \"hidden\";\r\n\t\t\t\t};\r\n\r\n\t\t\t\topts.complete = function() {\r\n\t\t\t\t\t/* Reset element to its pre-slide inline values once its slide animation is complete. */\r\n\t\t\t\t\tfor (var property in inlineValues) {\r\n\t\t\t\t\t\tif (inlineValues.hasOwnProperty(property)) {\r\n\t\t\t\t\t\t\telement.style[property] = inlineValues[property];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t/* If the user passed in a complete callback, fire it now. */\r\n\t\t\t\t\tif (elementsIndex === elementsSize - 1) {\r\n\t\t\t\t\t\tif (complete) {\r\n\t\t\t\t\t\t\tcomplete.call(elements, elements);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (promiseData) {\r\n\t\t\t\t\t\t\tpromiseData.resolver(elements);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\r\n\t\t\t\tVelocity(element, computedValues, opts);\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\t/* fadeIn, fadeOut */\r\n\t\t$.each([\"In\", \"Out\"], function(i, direction) {\r\n\t\t\tVelocity.Redirects[\"fade\" + direction] = function(element, options, elementsIndex, elementsSize, elements, promiseData) {\r\n\t\t\t\tvar opts = $.extend({}, options),\r\n\t\t\t\t\t\tcomplete = opts.complete,\r\n\t\t\t\t\t\tpropertiesMap = {opacity: (direction === \"In\") ? 1 : 0};\r\n\r\n\t\t\t\t/* Since redirects are triggered individually for each element in the animated set, avoid repeatedly triggering\r\n\t\t\t\t callbacks by firing them only when the final element has been reached. */\r\n\t\t\t\tif (elementsIndex !== 0) {\r\n\t\t\t\t\topts.begin = null;\r\n\t\t\t\t}\r\n\t\t\t\tif (elementsIndex !== elementsSize - 1) {\r\n\t\t\t\t\topts.complete = null;\r\n\t\t\t\t} else {\r\n\t\t\t\t\topts.complete = function() {\r\n\t\t\t\t\t\tif (complete) {\r\n\t\t\t\t\t\t\tcomplete.call(elements, elements);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (promiseData) {\r\n\t\t\t\t\t\t\tpromiseData.resolver(elements);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* If a display was passed in, use it. Otherwise, default to \"none\" for fadeOut or the element-specific default for fadeIn. */\r\n\t\t\t\t/* Note: We allow users to pass in \"null\" to skip display setting altogether. */\r\n\t\t\t\tif (opts.display === undefined) {\r\n\t\t\t\t\topts.display = (direction === \"In\" ? \"auto\" : \"none\");\r\n\t\t\t\t}\r\n\r\n\t\t\t\tVelocity(this, propertiesMap, opts);\r\n\t\t\t};\r\n\t\t});\r\n\r\n\t\treturn Velocity;\r\n\t}((window.jQuery || window.Zepto || window), window, (window ? window.document : undefined));\r\n}));\r\n\r\n/******************\r\n Known Issues\r\n ******************/\r\n\r\n/* The CSS spec mandates that the translateX/Y/Z transforms are %-relative to the element itself -- not its parent.\r\n Velocity, however, doesn't make this distinction. Thus, converting to or from the % unit with these subproperties\r\n will produce an inaccurate conversion value. The same issue exists with the cx/cy attributes of SVG circles and ellipses. */\r\n }","(function() {\n  function vendorModule() {\n    'use strict';\n    // Velocity tries to register on jQuery first, if it's not present, then it registers itself globally\n    // For FastBoot, jQuery and Velocity don't exist so we use a noop\n    var Velocity = self.Velocity || self.jQuery && self.jQuery.Velocity || function(){};\n    return { 'default': Velocity };\n  }\n\n  define('velocity', [], vendorModule);\n})();\n","if (typeof FastBoot === 'undefined') { /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */\n\nwindow.matchMedia || (window.matchMedia = function() {\n    \"use strict\";\n\n    // For browsers that support matchMedium api such as IE 9 and webkit\n    var styleMedia = (window.styleMedia || window.media);\n\n    // For those that don't support matchMedium\n    if (!styleMedia) {\n        var style       = document.createElement('style'),\n            script      = document.getElementsByTagName('script')[0],\n            info        = null;\n\n        style.type  = 'text/css';\n        style.id    = 'matchmediajs-test';\n\n        script.parentNode.insertBefore(style, script);\n\n        // 'style.currentStyle' is used by IE <= 8 and 'window.getComputedStyle' for all other browsers\n        info = ('getComputedStyle' in window) && window.getComputedStyle(style, null) || style.currentStyle;\n\n        styleMedia = {\n            matchMedium: function(media) {\n                var text = '@media ' + media + '{ #matchmediajs-test { width: 1px; } }';\n\n                // 'style.styleSheet' is used by IE <= 8 and 'style.textContent' for all other browsers\n                if (style.styleSheet) {\n                    style.styleSheet.cssText = text;\n                } else {\n                    style.textContent = text;\n                }\n\n                // Test if media query is true or false\n                return info.width === '1px';\n            }\n        };\n    }\n\n    return function(media) {\n        return {\n            matches: styleMedia.matchMedium(media || 'all'),\n            media: media || 'all'\n        };\n    };\n}());\n }","define('@ember-data/adapter/-private', ['exports', 'require', '@ember/string', 'ember-inflector'], function (exports, require, string, emberInflector) { 'use strict';\n\n  var require__default = 'default' in require ? require['default'] : require;\n\n  var newline = /\\r?\\n/;\n  function parseResponseHeaders(headersString) {\n    var headers = Object.create(null);\n    if (!headersString) {\n      return headers;\n    }\n    var headerPairs = headersString.split(newline);\n    for (var i = 0; i < headerPairs.length; i++) {\n      var header = headerPairs[i];\n      var j = 0;\n      var foundSep = false;\n      for (; j < header.length; j++) {\n        if (header.charCodeAt(j) === 58 /* ':' */) {\n          foundSep = true;\n          break;\n        }\n      }\n      if (foundSep === false) {\n        continue;\n      }\n      var field = header.substring(0, j).trim();\n      var value = header.substring(j + 1, header.length).trim();\n      if (value) {\n        var lowerCasedField = field.toLowerCase();\n        headers[lowerCasedField] = value;\n        headers[field] = value;\n      }\n    }\n    return headers;\n  }\n\n  function continueOnReject(promise) {\n    return Ember.RSVP.resolve(promise).catch(e => e);\n  }\n\n  /*\n   * Function that always attempts to parse the response as json, and if an error is thrown,\n   * returns `undefined` if the response is successful and has a status code of 204 (No Content),\n   * or 205 (Reset Content) or if the request method was 'HEAD', and the plain payload otherwise.\n   */\n  function _determineContent(response, requestData, payload) {\n    var ret = payload;\n    var error;\n    if (!response.ok) {\n      return payload;\n    }\n    var status = response.status;\n    var payloadIsEmpty = payload === '' || payload === null;\n    var statusIndicatesEmptyResponse = status === 204 || status === 205 || requestData.method === 'HEAD';\n    {\n      if (payloadIsEmpty && !statusIndicatesEmptyResponse) {\n        var message = `The server returned an empty string for ${requestData.method} ${requestData.url}, which cannot be parsed into a valid JSON. Return either null or {}.`;\n        if (payload === '') {\n          ( Ember.warn(message, {\n            id: 'ds.adapter.returned-empty-string-as-JSON'\n          }));\n        }\n      }\n    }\n    if (response.ok && (statusIndicatesEmptyResponse || payloadIsEmpty)) {\n      return;\n    }\n    try {\n      ret = JSON.parse(payload);\n    } catch (e) {\n      if (!(e instanceof SyntaxError)) {\n        return e;\n      }\n      e.payload = payload;\n      error = e;\n    }\n    if (error) {\n      {\n        // eslint-disable-next-line no-console\n        console.warn('This response was unable to be parsed as json.', payload);\n      }\n      return error;\n    }\n    return ret;\n  }\n  function determineBodyPromise(response, requestData) {\n    // response.text() may resolve or reject\n    // it is a native promise, may not have finally\n    return continueOnReject(response.text()).then(payload => _determineContent(response, requestData, payload));\n  }\n\n  var RBRACKET = /\\[\\]$/;\n  function isPlainObject(obj) {\n    return Object.prototype.toString.call(obj) === '[object Object]';\n  }\n\n  /*\n   * Helper function that turns the data/body of a request into a query param string.\n   * This is directly copied from jQuery.param.\n   */\n  function serializeQueryParams(queryParamsObject) {\n    var s = [];\n    function buildParams(prefix, obj) {\n      var i, len, key;\n      if (prefix) {\n        if (Array.isArray(obj)) {\n          for (i = 0, len = obj.length; i < len; i++) {\n            if (RBRACKET.test(prefix)) {\n              add(s, prefix, obj[i]);\n            } else {\n              buildParams(prefix + '[' + (typeof obj[i] === 'object' ? i : '') + ']', obj[i]);\n            }\n          }\n        } else if (isPlainObject(obj)) {\n          for (key in obj) {\n            buildParams(prefix + '[' + key + ']', obj[key]);\n          }\n        } else {\n          add(s, prefix, obj);\n        }\n      } else if (Array.isArray(obj)) {\n        for (i = 0, len = obj.length; i < len; i++) {\n          add(s, obj[i].name, obj[i].value);\n        }\n      } else {\n        for (key in obj) {\n          buildParams(key, obj[key]);\n        }\n      }\n      return s;\n    }\n    return buildParams('', queryParamsObject).join('&').replace(/%20/g, '+');\n  }\n\n  /*\n   * Part of the `serializeQueryParams` helper function.\n   */\n  function add(s, k, v) {\n    // Strip out keys with undefined value and replace null values with\n    // empty strings (mimics jQuery.ajax)\n    if (v === undefined) {\n      return;\n    } else if (v === null) {\n      v = '';\n    }\n    v = typeof v === 'function' ? v() : v;\n    s[s.length] = `${encodeURIComponent(k)}=${encodeURIComponent(v)}`;\n  }\n\n  var _fetch = null;\n  function getFetchFunction() {\n    if (_fetch !== null) {\n      return _fetch();\n    }\n    if (require.has('fetch')) {\n      // use `fetch` module by default, this is commonly provided by ember-fetch\n      var fetchFn = require__default('fetch').default;\n      _fetch = () => fetchFn;\n    } else if (typeof fetch === 'function') {\n      // fallback to using global fetch\n      _fetch = () => fetch;\n    } else {\n      throw new Error('cannot find the `fetch` module or the `fetch` global. Did you mean to install the `ember-fetch` addon?');\n    }\n    return _fetch();\n  }\n\n  /**\n    @module @ember-data/adapter\n  */\n\n  /**\n    ## Using BuildURLMixin\n\n    To use URL building, include the mixin when extending an adapter, and call `buildURL` where needed.\n    The default behaviour is designed for RESTAdapter.\n\n    ### Example\n\n    ```javascript\n    import Adapter, { BuildURLMixin } from '@ember-data/adapter';\n\n    export default class ApplicationAdapter extends Adapter.extend(BuildURLMixin) {\n      findRecord(store, type, id, snapshot) {\n        var url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n        return this.ajax(url, 'GET');\n      }\n    }\n    ```\n\n    ### Attributes\n\n    The `host` and `namespace` attributes will be used if defined, and are optional.\n\n    @class BuildURLMixin\n  */\n  var buildUrlMixin = Ember.Mixin.create({\n    /**\n      Builds a URL for a given type and optional ID.\n       By default, it pluralizes the type's name (for example, 'post'\n      becomes 'posts' and 'person' becomes 'people'). To override the\n      pluralization see [pathForType](BuildUrlMixin/methods/pathForType?anchor=pathForType).\n       If an ID is specified, it adds the ID to the path generated\n      for the type, separated by a `/`.\n       When called by `RESTAdapter.findMany()` the `id` and `snapshot` parameters\n      will be arrays of ids and snapshots.\n       @method buildURL\n      @param {String} modelName\n      @param {(String|Array|Object)} id single id or array of ids or query\n      @param {(Snapshot|SnapshotRecordArray)} snapshot single snapshot or array of snapshots\n      @param {String} requestType\n      @param {Object} query object of query parameters to send for query requests.\n      @return {String} url\n    */\n    buildURL(modelName, id, snapshot, requestType, query) {\n      switch (requestType) {\n        case 'findRecord':\n          return this.urlForFindRecord(id, modelName, snapshot);\n        case 'findAll':\n          return this.urlForFindAll(modelName, snapshot);\n        case 'query':\n          return this.urlForQuery(query, modelName);\n        case 'queryRecord':\n          return this.urlForQueryRecord(query, modelName);\n        case 'findMany':\n          return this.urlForFindMany(id, modelName, snapshot);\n        case 'findHasMany':\n          return this.urlForFindHasMany(id, modelName, snapshot);\n        case 'findBelongsTo':\n          return this.urlForFindBelongsTo(id, modelName, snapshot);\n        case 'createRecord':\n          return this.urlForCreateRecord(modelName, snapshot);\n        case 'updateRecord':\n          return this.urlForUpdateRecord(id, modelName, snapshot);\n        case 'deleteRecord':\n          return this.urlForDeleteRecord(id, modelName, snapshot);\n        default:\n          return this._buildURL(modelName, id);\n      }\n    },\n    /**\n      @method _buildURL\n      @private\n      @param {String} modelName\n      @param {String} id\n      @return {String} url\n    */\n    _buildURL(modelName, id) {\n      var path;\n      var url = [];\n      var host = Ember.get(this, 'host');\n      var prefix = this.urlPrefix();\n      if (modelName) {\n        path = this.pathForType(modelName);\n        if (path) {\n          url.push(path);\n        }\n      }\n      if (id) {\n        url.push(encodeURIComponent(id));\n      }\n      if (prefix) {\n        url.unshift(prefix);\n      }\n      url = url.join('/');\n      if (!host && url && url.charAt(0) !== '/') {\n        url = '/' + url;\n      }\n      return url;\n    },\n    /**\n     Builds a URL for a `store.findRecord(type, id)` call.\n      Example:\n      ```app/adapters/user.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n      export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindRecord(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id, snapshot);\n         return `${baseUrl}/users/${snapshot.adapterOptions.user_id}/playlists/${id}`;\n       }\n     }\n     ```\n      @method urlForFindRecord\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n      */\n    urlForFindRecord(id, modelName, snapshot) {\n      return this._buildURL(modelName, id);\n    },\n    /**\n     Builds a URL for a `store.findAll(type)` call.\n      Example:\n      ```app/adapters/comment.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n      export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindAll(modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName);\n         return `${baseUrl}/data/comments.json`;\n       }\n     }\n     ```\n      @method urlForFindAll\n     @param {String} modelName\n     @param {SnapshotRecordArray} snapshot\n     @return {String} url\n     */\n    urlForFindAll(modelName, snapshot) {\n      return this._buildURL(modelName);\n    },\n    /**\n     Builds a URL for a `store.query(type, query)` call.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       host = 'https://api.github.com';\n       urlForQuery (query, modelName) {\n         switch(modelName) {\n           case 'repo':\n             return `https://api.github.com/orgs/${query.orgId}/repos`;\n           default:\n             return this._super(...arguments);\n         }\n       }\n     }\n     ```\n      @method urlForQuery\n     @param {Object} query\n     @param {String} modelName\n     @return {String} url\n     */\n    urlForQuery(query, modelName) {\n      return this._buildURL(modelName);\n    },\n    /**\n     Builds a URL for a `store.queryRecord(type, query)` call.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       urlForQueryRecord({ slug }, modelName) {\n         let baseUrl = this.buildURL();\n         return `${baseUrl}/${encodeURIComponent(slug)}`;\n       }\n     }\n     ```\n      @method urlForQueryRecord\n     @param {Object} query\n     @param {String} modelName\n     @return {String} url\n     */\n    urlForQueryRecord(query, modelName) {\n      return this._buildURL(modelName);\n    },\n    /**\n     Builds a URL for coalescing multiple `store.findRecord(type, id)`\n     records into 1 request when the adapter's `coalesceFindRequests`\n     property is `true`.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       urlForFindMany(ids, modelName) {\n         let baseUrl = this.buildURL();\n         return `${baseUrl}/coalesce`;\n       }\n     }\n     ```\n      @method urlForFindMany\n     @param {Array} ids\n     @param {String} modelName\n     @param {Array} snapshots\n     @return {String} url\n     */\n    urlForFindMany(ids, modelName, snapshots) {\n      return this._buildURL(modelName);\n    },\n    /**\n     Builds a URL for fetching an async `hasMany` relationship when a URL\n     is not provided by the server.\n      Example:\n      ```app/adapters/application.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n      export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindHasMany(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id);\n         return `${baseUrl}/relationships`;\n       }\n     }\n     ```\n      @method urlForFindHasMany\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n    urlForFindHasMany(id, modelName, snapshot) {\n      return this._buildURL(modelName, id);\n    },\n    /**\n     Builds a URL for fetching an async `belongsTo` relationship when a url\n     is not provided by the server.\n      Example:\n      ```app/adapters/application.js\n     import JSONAPIAdapter from '@ember-data/adapter/json-api';\n      export default class ApplicationAdapter extends JSONAPIAdapter {\n       urlForFindBelongsTo(id, modelName, snapshot) {\n         let baseUrl = this.buildURL(modelName, id);\n         return `${baseUrl}/relationships`;\n       }\n     }\n     ```\n      @method urlForFindBelongsTo\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n    urlForFindBelongsTo(id, modelName, snapshot) {\n      return this._buildURL(modelName, id);\n    },\n    /**\n     Builds a URL for a `record.save()` call when the record was created\n     locally using `store.createRecord()`.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       urlForCreateRecord(modelName, snapshot) {\n         return this._super(...arguments) + '/new';\n       }\n     }\n     ```\n      @method urlForCreateRecord\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n    urlForCreateRecord(modelName, snapshot) {\n      return this._buildURL(modelName);\n    },\n    /**\n     Builds a URL for a `record.save()` call when the record has been updated locally.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       urlForUpdateRecord(id, modelName, snapshot) {\n         return `/${id}/feed?access_token=${snapshot.adapterOptions.token}`;\n       }\n     }\n     ```\n      @method urlForUpdateRecord\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n    urlForUpdateRecord(id, modelName, snapshot) {\n      return this._buildURL(modelName, id);\n    },\n    /**\n     Builds a URL for a `record.save()` call when the record has been deleted locally.\n      Example:\n      ```app/adapters/application.js\n     import RESTAdapter from '@ember-data/adapter/rest';\n      export default class ApplicationAdapter extends RESTAdapter {\n       urlForDeleteRecord(id, modelName, snapshot) {\n         return this._super(...arguments) + '/destroy';\n       }\n     }\n     ```\n      @method urlForDeleteRecord\n     @param {String} id\n     @param {String} modelName\n     @param {Snapshot} snapshot\n     @return {String} url\n     */\n    urlForDeleteRecord(id, modelName, snapshot) {\n      return this._buildURL(modelName, id);\n    },\n    /**\n      @method urlPrefix\n      @private\n      @param {String} path\n      @param {String} parentURL\n      @return {String} urlPrefix\n    */\n    urlPrefix(path, parentURL) {\n      var host = Ember.get(this, 'host');\n      var namespace = Ember.get(this, 'namespace');\n      if (!host || host === '/') {\n        host = '';\n      }\n      if (path) {\n        // Protocol relative url\n        if (/^\\/\\//.test(path) || /http(s)?:\\/\\//.test(path)) {\n          // Do nothing, the full host is already included.\n          return path;\n\n          // Absolute path\n        } else if (path.charAt(0) === '/') {\n          return `${host}${path}`;\n          // Relative path\n        } else {\n          return `${parentURL}/${path}`;\n        }\n      }\n\n      // No path provided\n      var url = [];\n      if (host) {\n        url.push(host);\n      }\n      if (namespace) {\n        url.push(namespace);\n      }\n      return url.join('/');\n    },\n    /**\n      Determines the pathname for a given type.\n       By default, it pluralizes the type's name (for example,\n      'post' becomes 'posts' and 'person' becomes 'people').\n       ### Pathname customization\n       For example, if you have an object `LineItem` with an\n      endpoint of `/line_items/`.\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n      import { decamelize } from '@ember/string';\n      import { pluralize } from 'ember-inflector';\n       export default class ApplicationAdapter extends RESTAdapter {\n        pathForType(modelName) {\n          var decamelized = decamelize(modelName);\n          return pluralize(decamelized);\n        }\n      }\n      ```\n       @method pathForType\n      @param {String} modelName\n      @return {String} path\n    **/\n    pathForType(modelName) {\n      var camelized = string.camelize(modelName);\n      return emberInflector.pluralize(camelized);\n    }\n  });\n\n  function serializeIntoHash(store, modelClass, snapshot, options = {\n    includeId: true\n  }) {\n    var serializer = store.serializerFor(modelClass.modelName);\n    if (typeof serializer.serializeIntoHash === 'function') {\n      var data = {};\n      serializer.serializeIntoHash(data, modelClass, snapshot, options);\n      return data;\n    }\n    return serializer.serialize(snapshot, options);\n  }\n\n  exports.BuildURLMixin = buildUrlMixin;\n  exports.determineBodyPromise = determineBodyPromise;\n  exports.fetch = getFetchFunction;\n  exports.parseResponseHeaders = parseResponseHeaders;\n  exports.serializeIntoHash = serializeIntoHash;\n  exports.serializeQueryParams = serializeQueryParams;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n});\n","define(\"@ember-data/adapter/error\", [\"exports\", \"@ember-data/store/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.UnauthorizedError = _exports.TimeoutError = _exports.ServerError = _exports.NotFoundError = _exports.InvalidError = _exports.ForbiddenError = _exports.ConflictError = _exports.AbortError = void 0;\n  Object.defineProperty(_exports, \"errorsArrayToHash\", {\n    enumerable: true,\n    get: function () {\n      return _private.errorsArrayToHash;\n    }\n  });\n  Object.defineProperty(_exports, \"errorsHashToArray\", {\n    enumerable: true,\n    get: function () {\n      return _private.errorsHashToArray;\n    }\n  });\n  /**\n    @module @ember-data/adapter\n  */\n\n  /**\n    A `AdapterError` is used by an adapter to signal that an error occurred\n    during a request to an external API. It indicates a generic error, and\n    subclasses are used to indicate specific error states. The following\n    subclasses are provided:\n  \n    - `InvalidError`\n    - `TimeoutError`\n    - `AbortError`\n    - `UnauthorizedError`\n    - `ForbiddenError`\n    - `NotFoundError`\n    - `ConflictError`\n    - `ServerError`\n  \n    To create a custom error to signal a specific error state in communicating\n    with an external API, extend the `AdapterError`. For example, if the\n    external API exclusively used HTTP `503 Service Unavailable` to indicate\n    it was closed for maintenance:\n  \n    ```app/adapters/maintenance-error.js\n    import AdapterError from '@ember-data/adapter/error';\n  \n    export default AdapterError.extend({ message: \"Down for maintenance.\" });\n    ```\n  \n    This error would then be returned by an adapter's `handleResponse` method:\n  \n    ```app/adapters/application.js\n    import JSONAPIAdapter from '@ember-data/adapter/json-api';\n    import MaintenanceError from './maintenance-error';\n  \n    export default class ApplicationAdapter extends JSONAPIAdapter {\n      handleResponse(status) {\n        if (503 === status) {\n          return new MaintenanceError();\n        }\n  \n        return this._super(...arguments);\n      }\n    }\n    ```\n  \n    And can then be detected in an application and used to send the user to an\n    `under-maintenance` route:\n  \n    ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import MaintenanceError from '../adapters/maintenance-error';\n  \n    export default class ApplicationRoute extends Route {\n      actions: {\n        error(error, transition) {\n          if (error instanceof MaintenanceError) {\n            this.transitionTo('under-maintenance');\n            return;\n          }\n  \n          // ...other error handling logic\n        }\n      }\n    }\n    ```\n  \n    @class AdapterError\n  */\n  function AdapterError(errors, message = 'Adapter operation failed') {\n    this.isAdapterError = true;\n    var error = Ember.Error.call(this, message);\n\n    // in ember 3.8+ Error is a Native Error and we don't\n    // gain these automatically from the EmberError.call\n    if (error) {\n      this.stack = error.stack;\n      this.description = error.description;\n      this.fileName = error.fileName;\n      this.lineNumber = error.lineNumber;\n      this.message = error.message;\n      this.name = error.name;\n      this.number = error.number;\n    }\n    this.errors = errors || [{\n      title: 'Adapter Error',\n      detail: message\n    }];\n  }\n  var _default = _exports.default = AdapterError;\n  function extendFn(ErrorClass) {\n    return function ({\n      message: defaultMessage\n    } = {}) {\n      return extend(ErrorClass, defaultMessage);\n    };\n  }\n  function extend(ParentErrorClass, defaultMessage) {\n    var ErrorClass = function (errors, message) {\n      (true && !(Array.isArray(errors || [])) && Ember.assert('`AdapterError` expects json-api formatted errors array.', Array.isArray(errors || [])));\n      ParentErrorClass.call(this, errors, message || defaultMessage);\n    };\n    ErrorClass.prototype = Object.create(ParentErrorClass.prototype);\n    ErrorClass.extend = extendFn(ErrorClass);\n    return ErrorClass;\n  }\n  AdapterError.prototype = Object.create(Ember.Error.prototype);\n  AdapterError.prototype.code = 'AdapterError';\n  AdapterError.extend = extendFn(AdapterError);\n\n  /**\n    A `InvalidError` is used by an adapter to signal the external API\n    was unable to process a request because the content was not\n    semantically correct or meaningful per the API. Usually, this means a\n    record failed some form of server-side validation. When a promise\n    from an adapter is rejected with a `InvalidError` the record will\n    transition to the `invalid` state and the errors will be set to the\n    `errors` property on the record.\n  \n    For Ember Data to correctly map errors to their corresponding\n    properties on the model, Ember Data expects each error to be\n    a valid JSON-API error object with a `source/pointer` that matches\n    the property name. For example, if you had a Post model that\n    looked like this.\n  \n    ```app/models/post.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default class PostModel extends Model {\n      @attr('string') title;\n      @attr('string') content;\n    }\n    ```\n  \n    To show an error from the server related to the `title` and\n    `content` properties your adapter could return a promise that\n    rejects with a `InvalidError` object that looks like this:\n  \n    ```app/adapters/post.js\n    import RSVP from 'RSVP';\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { InvalidError } from '@ember-data/adapter/error';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      updateRecord() {\n        // Fictional adapter that always rejects\n        return RSVP.reject(new InvalidError([\n          {\n            detail: 'Must be unique',\n            source: { pointer: '/data/attributes/title' }\n          },\n          {\n            detail: 'Must not be blank',\n            source: { pointer: '/data/attributes/content'}\n          }\n        ]));\n      }\n    }\n    ```\n  \n    Your backend may use different property names for your records the\n    store will attempt to extract and normalize the errors using the\n    serializer's `extractErrors` method before the errors get added to\n    the model. As a result, it is safe for the `InvalidError` to\n    wrap the error payload unaltered.\n  \n    @class InvalidError\n    @extends AdapterError\n  */\n  var InvalidError = _exports.InvalidError = extend(AdapterError, 'The adapter rejected the commit because it was invalid');\n  InvalidError.prototype.code = 'InvalidError';\n\n  /**\n    A `TimeoutError` is used by an adapter to signal that a request\n    to the external API has timed out. I.e. no response was received from\n    the external API within an allowed time period.\n  \n    An example use case would be to warn the user to check their internet\n    connection if an adapter operation has timed out:\n  \n    ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { TimeoutError } from '@ember-data/adapter/error';\n    import { action } from '@ember/object';\n  \n    export default class ApplicationRoute extends Route {\n      @action\n      error(error, transition) {\n        if (error instanceof TimeoutError) {\n          // alert the user\n          alert('Are you still connected to the Internet?');\n          return;\n        }\n  \n        // ...other error handling logic\n      }\n    }\n    ```\n  \n    @class TimeoutError\n    @extends AdapterError\n  */\n  var TimeoutError = _exports.TimeoutError = extend(AdapterError, 'The adapter operation timed out');\n  TimeoutError.prototype.code = 'TimeoutError';\n\n  /**\n    A `AbortError` is used by an adapter to signal that a request to\n    the external API was aborted. For example, this can occur if the user\n    navigates away from the current page after a request to the external API\n    has been initiated but before a response has been received.\n  \n    @class AbortError\n    @extends AdapterError\n  */\n  var AbortError = _exports.AbortError = extend(AdapterError, 'The adapter operation was aborted');\n  AbortError.prototype.code = 'AbortError';\n\n  /**\n    A `UnauthorizedError` equates to a HTTP `401 Unauthorized` response\n    status. It is used by an adapter to signal that a request to the external\n    API was rejected because authorization is required and has failed or has not\n    yet been provided.\n  \n    An example use case would be to redirect the user to a login route if a\n    request is unauthorized:\n  \n    ```app/routes/application.js\n    import Route from '@ember/routing/route';\n    import { UnauthorizedError } from '@ember-data/adapter/error';\n    import { action } from '@ember/object';\n  \n    export default class ApplicationRoute extends Route {\n      @action\n      error(error, transition) {\n        if (error instanceof UnauthorizedError) {\n          // go to the login route\n          this.transitionTo('login');\n          return;\n        }\n  \n        // ...other error handling logic\n      }\n    }\n    ```\n  \n    @class UnauthorizedError\n    @extends AdapterError\n  */\n  var UnauthorizedError = _exports.UnauthorizedError = extend(AdapterError, 'The adapter operation is unauthorized');\n  UnauthorizedError.prototype.code = 'UnauthorizedError';\n\n  /**\n    A `ForbiddenError` equates to a HTTP `403 Forbidden` response status.\n    It is used by an adapter to signal that a request to the external API was\n    valid but the server is refusing to respond to it. If authorization was\n    provided and is valid, then the authenticated user does not have the\n    necessary permissions for the request.\n  \n    @class ForbiddenError\n    @extends AdapterError\n  */\n  var ForbiddenError = _exports.ForbiddenError = extend(AdapterError, 'The adapter operation is forbidden');\n  ForbiddenError.prototype.code = 'ForbiddenError';\n\n  /**\n    A `NotFoundError` equates to a HTTP `404 Not Found` response status.\n    It is used by an adapter to signal that a request to the external API\n    was rejected because the resource could not be found on the API.\n  \n    An example use case would be to detect if the user has entered a route\n    for a specific model that does not exist. For example:\n  \n    ```app/routes/post.js\n    import Route from '@ember/routing/route';\n    import { NotFoundError } from '@ember-data/adapter/error';\n    import { inject as service } from '@ember/service';\n    import { action } from '@ember/object';\n  \n    export default class PostRoute extends Route {\n      @service store;\n      model(params) {\n        return this.get('store').findRecord('post', params.post_id);\n      }\n      @action\n      error(error, transition) {\n        if (error instanceof NotFoundError) {\n          // redirect to a list of all posts instead\n          this.transitionTo('posts');\n        } else {\n          // otherwise let the error bubble\n          return true;\n        }\n      }\n    }\n    ```\n  \n    @class NotFoundError\n    @extends AdapterError\n  */\n  var NotFoundError = _exports.NotFoundError = extend(AdapterError, 'The adapter could not find the resource');\n  NotFoundError.prototype.code = 'NotFoundError';\n\n  /**\n    A `ConflictError` equates to a HTTP `409 Conflict` response status.\n    It is used by an adapter to indicate that the request could not be processed\n    because of a conflict in the request. An example scenario would be when\n    creating a record with a client-generated ID but that ID is already known\n    to the external API.\n  \n    @class ConflictError\n    @extends AdapterError\n  */\n  var ConflictError = _exports.ConflictError = extend(AdapterError, 'The adapter operation failed due to a conflict');\n  ConflictError.prototype.code = 'ConflictError';\n\n  /**\n    A `ServerError` equates to a HTTP `500 Internal Server Error` response\n    status. It is used by the adapter to indicate that a request has failed\n    because of an error in the external API.\n  \n    @class ServerError\n    @extends AdapterError\n  */\n  var ServerError = _exports.ServerError = extend(AdapterError, 'The adapter operation failed due to a server error');\n  ServerError.prototype.code = 'ServerError';\n});","define(\"@ember-data/adapter/index\", [\"exports\", \"@ember-data/adapter/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"BuildURLMixin\", {\n    enumerable: true,\n    get: function () {\n      return _private.BuildURLMixin;\n    }\n  });\n  _exports.default = void 0;\n  /**\n    An adapter is an object that receives requests from a store and\n    translates them into the appropriate action to take against your\n    persistence layer. The persistence layer is usually an HTTP API but\n    may be anything, such as the browser's local storage. Typically the\n    adapter is not invoked directly instead its functionality is accessed\n    through the `store`.\n  \n    ### Creating an Adapter\n  \n    Create a new subclass of `Adapter` in the `app/adapters` folder:\n  \n    ```app/adapters/application.js\n    import Adapter from '@ember-data/adapter';\n  \n    export default Adapter.extend({\n      // ...your code here\n    });\n    ```\n  \n    Model-specific adapters can be created by putting your adapter\n    class in an `app/adapters/` + `model-name` + `.js` file of the application.\n  \n    ```app/adapters/post.js\n    import Adapter from '@ember-data/adapter';\n  \n    export default Adapter.extend({\n      // ...Post-specific adapter code goes here\n    });\n    ```\n  \n    `Adapter` is an abstract base class that you should override in your\n    application to customize it for your backend. The minimum set of methods\n    that you should implement is:\n  \n      * `findRecord()`\n      * `createRecord()`\n      * `updateRecord()`\n      * `deleteRecord()`\n      * `findAll()`\n      * `query()`\n  \n    To improve the network performance of your application, you can optimize\n    your adapter by overriding these lower-level methods:\n  \n      * `findMany()`\n  \n  \n    For an example of the implementation, see `RESTAdapter`, the\n    included REST adapter.\n  \n    @module @ember-data/adapter\n    @class Adapter\n    @extends EmberObject\n  */\n  class Adapter extends Ember.Object {\n    constructor(...args) {\n      super(...args);\n      /**\n        If you would like your adapter to use a custom serializer you can\n        set the `defaultSerializer` property to be the name of the custom\n        serializer.\n         Note the `defaultSerializer` serializer has a lower priority than\n        a model specific serializer (i.e. `PostSerializer`) or the\n        `application` serializer.\n         ```app/adapters/django.js\n        import Adapter from '@ember-data/adapter';\n         export default Adapter.extend({\n          defaultSerializer: 'django'\n        });\n        ```\n         @deprecated\n        @property defaultSerializer\n        @type {String}\n      */\n      this.defaultSerializer = '-default';\n      /**\n        Implement this method in a subclass to handle the creation of\n        new records.\n         Serializes the record and sends it to the server.\n         Example\n         ```app/adapters/application.js\n        import Adapter from '@ember-data/adapter';\n        import { run } from '@ember/runloop';\n        import RSVP from 'RSVP';\n        import $ from 'jquery';\n         export default class ApplicationAdapter extends Adapter {\n          createRecord(store, type, snapshot) {\n            let data = this.serialize(snapshot, { includeId: true });\n             return new RSVP.Promise(function (resolve, reject) {\n              $.ajax({\n                type: 'POST',\n                url: `/${type.modelName}`,\n                dataType: 'json',\n                data: data\n              }).then(function (data) {\n                run(null, resolve, data);\n              }, function (jqXHR) {\n                jqXHR.then = null; // tame jQuery's ill mannered promises\n                run(null, reject, jqXHR);\n              });\n            });\n          }\n        }\n        ```\n         @method createRecord\n        @param {Store} store\n        @param {Model} type   the Model class of the record\n        @param {Snapshot} snapshot\n        @return {Promise} promise\n      */\n      /**\n        Implement this method in a subclass to handle the updating of\n        a record.\n         Serializes the record update and sends it to the server.\n         The updateRecord method is expected to return a promise that will\n        resolve with the serialized record. This allows the backend to\n        inform the Ember Data store the current state of this record after\n        the update. If it is not possible to return a serialized record\n        the updateRecord promise can also resolve with `undefined` and the\n        Ember Data store will assume all of the updates were successfully\n        applied on the backend.\n         Example\n         ```app/adapters/application.js\n        import Adapter from '@ember-data/adapter';\n        import { run } from '@ember/runloop';\n        import RSVP from 'RSVP';\n        import $ from 'jquery';\n         export default class ApplicationAdapter extends Adapter {\n          updateRecord(store, type, snapshot) {\n            let data = this.serialize(snapshot, { includeId: true });\n            let id = snapshot.id;\n             return new RSVP.Promise(function(resolve, reject) {\n              $.ajax({\n                type: 'PUT',\n                url: `/${type.modelName}/${id}`,\n                dataType: 'json',\n                data: data\n              }).then(function(data) {\n                run(null, resolve, data);\n              }, function(jqXHR) {\n                jqXHR.then = null; // tame jQuery's ill mannered promises\n                run(null, reject, jqXHR);\n              });\n            });\n          }\n        }\n        ```\n         @method updateRecord\n        @param {Store} store\n        @param {Model} type   the Model class of the record\n        @param {Snapshot} snapshot\n        @return {Promise} promise\n      */\n      /**\n        Implement this method in a subclass to handle the deletion of\n        a record.\n         Sends a delete request for the record to the server.\n         Example\n         ```app/adapters/application.js\n        import Adapter from '@ember-data/adapter';\n        import { run } from '@ember/runloop';\n        import RSVP from 'RSVP';\n        import $ from 'jquery';\n         export default class ApplicationAdapter extends Adapter {\n          deleteRecord(store, type, snapshot) {\n            let data = this.serialize(snapshot, { includeId: true });\n            let id = snapshot.id;\n             return new RSVP.Promise(function(resolve, reject) {\n              $.ajax({\n                type: 'DELETE',\n                url: `/${type.modelName}/${id}`,\n                dataType: 'json',\n                data: data\n              }).then(function(data) {\n                run(null, resolve, data);\n              }, function(jqXHR) {\n                jqXHR.then = null; // tame jQuery's ill mannered promises\n                run(null, reject, jqXHR);\n              });\n            });\n          }\n        }\n        ```\n         @method deleteRecord\n        @param {Store} store\n        @param {Model} type   the Model class of the record\n        @param {Snapshot} snapshot\n        @return {Promise} promise\n      */\n      /**\n        By default the store will try to coalesce all `fetchRecord` calls within the same runloop\n        into as few requests as possible by calling groupRecordsForFindMany and passing it into a findMany call.\n        You can opt out of this behaviour by either not implementing the findMany hook or by setting\n        coalesceFindRequests to false.\n         @property coalesceFindRequests\n        @type {boolean}\n      */\n      this.coalesceFindRequests = true;\n    }\n    /**\n      The `findRecord()` method is invoked when the store is asked for a record that\n      has not previously been loaded. In response to `findRecord()` being called, you\n      should query your persistence layer for a record with the given ID. The `findRecord`\n      method should return a promise that will resolve to a JavaScript object that will be\n      normalized by the serializer.\n       Here is an example of the `findRecord` implementation:\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        findRecord(store, type, id, snapshot) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}/${id}`).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method findRecord\n      @param {Store} store\n      @param {Model} type\n      @param {String} id\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n\n    /**\n      The `findAll()` method is used to retrieve all records for a given type.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        findAll(store, type) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}`).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method findAll\n      @param {Store} store\n      @param {Model} type\n      @param {undefined} neverSet a value is never provided to this argument\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Promise} promise\n    */\n\n    /**\n      This method is called when you call `query` on the store.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        query(store, type, query) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}`, query).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method query\n      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @param {AdapterPopulatedRecordArray} recordArray\n      @param {Object} adapterOptions\n      @return {Promise} promise\n    */\n\n    /**\n      The `queryRecord()` method is invoked when the store is asked for a single\n      record through a query object.\n       In response to `queryRecord()` being called, you should always fetch fresh\n      data. Once found, you can asynchronously call the store's `push()` method\n      to push the record into the store.\n       Here is an example `queryRecord` implementation:\n       Example\n       ```app/adapters/application.js\n      import Adapter, { BuildURLMixin } from '@ember-data/adapter';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter.extend(BuildURLMixin) {\n        queryRecord(store, type, query) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.getJSON(`/${type.modelName}`, query).then(function(data) {\n              resolve(data);\n            }, function(jqXHR) {\n              reject(jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method queryRecord\n      @param {Store} store\n      @param {subclass of Model} type\n      @param {Object} query\n      @param {Object} adapterOptions\n      @return {Promise} promise\n    */\n\n    /**\n      If the globally unique IDs for your records should be generated on the client,\n      implement the `generateIdForRecord()` method. This method will be invoked\n      each time you create a new record, and the value returned from it will be\n      assigned to the record's `primaryKey`.\n       Most traditional REST-like HTTP APIs will not use this method. Instead, the ID\n      of the record will be set by the server, and your adapter will update the store\n      with the new ID when it calls `didCreateRecord()`. Only implement this method if\n      you intend to generate record IDs on the client-side.\n       The `generateIdForRecord()` method will be invoked with the requesting store as\n      the first parameter and the newly created record as the second parameter:\n       ```javascript\n      import Adapter from '@ember-data/adapter';\n      import { v4 } from 'uuid';\n       export default class ApplicationAdapter extends Adapter {\n        generateIdForRecord(store, type, inputProperties) {\n          return v4();\n        }\n      }\n      ```\n       @method generateIdForRecord\n      @param {Store} store\n      @param {Model} type   the Model class of the record\n      @param {Object} inputProperties a hash of properties to set on the\n        newly created record.\n      @return {(String|Number)} id\n    */\n\n    /**\n      Proxies to the serializer's `serialize` method.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n       export default class ApplicationAdapter extends Adapter {\n        createRecord(store, type, snapshot) {\n          let data = this.serialize(snapshot, { includeId: true });\n          let url = `/${type.modelName}`;\n           // ...\n        }\n      }\n      ```\n       @method serialize\n      @param {Snapshot} snapshot\n      @param {Object}   options\n      @return {Object} serialized snapshot\n    */\n    serialize(snapshot, options) {\n      return snapshot.serialize(options);\n    }\n    /**\n      The store will call `findMany` instead of multiple `findRecord`\n      requests to find multiple records at once if coalesceFindRequests\n      is true.\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n      import { run } from '@ember/runloop';\n      import RSVP from 'RSVP';\n      import $ from 'jquery';\n       export default class ApplicationAdapter extends Adapter {\n        findMany(store, type, ids, snapshots) {\n          return new RSVP.Promise(function(resolve, reject) {\n            $.ajax({\n              type: 'GET',\n              url: `/${type.modelName}/`,\n              dataType: 'json',\n              data: { filter: { id: ids.join(',') } }\n            }).then(function(data) {\n              run(null, resolve, data);\n            }, function(jqXHR) {\n              jqXHR.then = null; // tame jQuery's ill mannered promises\n              run(null, reject, jqXHR);\n            });\n          });\n        }\n      }\n      ```\n       @method findMany\n      @param {Store} store\n      @param {Model} type   the Model class of the records\n      @param {Array}    ids\n      @param {Array} snapshots\n      @return {Promise} promise\n    */\n\n    /**\n      Organize records into groups, each of which is to be passed to separate\n      calls to `findMany`.\n       For example, if your API has nested URLs that depend on the parent, you will\n      want to group records by their parent.\n       The default implementation returns the records as a single group.\n       @method groupRecordsForFindMany\n      @param {Store} store\n      @param {Array} snapshots\n      @return {Array}  an array of arrays of records, each of which is to be\n                        loaded separately by `findMany`.\n    */\n    groupRecordsForFindMany(store, snapshots) {\n      return [snapshots];\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload a record from the adapter when a record is requested by\n      `store.findRecord`.\n       If this method returns `true`, the store will re-fetch a record from\n      the adapter. If this method returns `false`, the store will resolve\n      immediately using the cached record.\n       For example, if you are building an events ticketing system, in which users\n      can only reserve tickets for 20 minutes at a time, and want to ensure that\n      in each route you have data that is no more than 20 minutes old you could\n      write:\n       ```javascript\n      shouldReloadRecord(store, ticketSnapshot) {\n        let lastAccessedAt = ticketSnapshot.attr('lastAccessedAt');\n        let timeDiff = moment().diff(lastAccessedAt, 'minutes');\n         if (timeDiff > 20) {\n          return true;\n        } else {\n          return false;\n        }\n      }\n      ```\n       This method would ensure that whenever you do `store.findRecord('ticket',\n      id)` you will always get a ticket that is no more than 20 minutes old. In\n      case the cached version is more than 20 minutes old, `findRecord` will not\n      resolve until you fetched the latest version.\n       By default this hook returns `false`, as most UIs should not block user\n      interactions while waiting on data update.\n       Note that, with default settings, `shouldBackgroundReloadRecord` will always\n      re-fetch the records in the background even if `shouldReloadRecord` returns\n      `false`. You can override `shouldBackgroundReloadRecord` if this does not\n      suit your use case.\n       @since 1.13.0\n      @method shouldReloadRecord\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @return {Boolean}\n    */\n    shouldReloadRecord(store, snapshot) {\n      return false;\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload all records from the adapter when records are requested by\n      `store.findAll`.\n       If this method returns `true`, the store will re-fetch all records from\n      the adapter. If this method returns `false`, the store will resolve\n      immediately using the cached records.\n       For example, if you are building an events ticketing system, in which users\n      can only reserve tickets for 20 minutes at a time, and want to ensure that\n      in each route you have data that is no more than 20 minutes old you could\n      write:\n       ```javascript\n      shouldReloadAll(store, snapshotArray) {\n        let snapshots = snapshotArray.snapshots();\n         return snapshots.any((ticketSnapshot) => {\n          let lastAccessedAt = ticketSnapshot.attr('lastAccessedAt');\n          let timeDiff = moment().diff(lastAccessedAt, 'minutes');\n           if (timeDiff > 20) {\n            return true;\n          } else {\n            return false;\n          }\n        });\n      }\n      ```\n       This method would ensure that whenever you do `store.findAll('ticket')` you\n      will always get a list of tickets that are no more than 20 minutes old. In\n      case a cached version is more than 20 minutes old, `findAll` will not\n      resolve until you fetched the latest versions.\n       By default, this method returns `true` if the passed `snapshotRecordArray`\n      is empty (meaning that there are no records locally available yet),\n      otherwise, it returns `false`.\n       Note that, with default settings, `shouldBackgroundReloadAll` will always\n      re-fetch all the records in the background even if `shouldReloadAll` returns\n      `false`. You can override `shouldBackgroundReloadAll` if this does not suit\n      your use case.\n       @since 1.13.0\n      @method shouldReloadAll\n      @param {Store} store\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Boolean}\n    */\n    shouldReloadAll(store, snapshotRecordArray) {\n      return !snapshotRecordArray.length;\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload a record after the `store.findRecord` method resolves a\n      cached record.\n       This method is *only* checked by the store when the store is\n      returning a cached record.\n       If this method returns `true` the store will re-fetch a record from\n      the adapter.\n       For example, if you do not want to fetch complex data over a mobile\n      connection, or if the network is down, you can implement\n      `shouldBackgroundReloadRecord` as follows:\n       ```javascript\n      shouldBackgroundReloadRecord(store, snapshot) {\n        let { downlink, effectiveType } = navigator.connection;\n         return downlink > 0 && effectiveType === '4g';\n      }\n      ```\n       By default, this hook returns `true` so the data for the record is updated\n      in the background.\n       @since 1.13.0\n      @method shouldBackgroundReloadRecord\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @return {Boolean}\n    */\n    shouldBackgroundReloadRecord(store, snapshot) {\n      return true;\n    }\n\n    /**\n      This method is used by the store to determine if the store should\n      reload a record array after the `store.findAll` method resolves\n      with a cached record array.\n       This method is *only* checked by the store when the store is\n      returning a cached record array.\n       If this method returns `true` the store will re-fetch all records\n      from the adapter.\n       For example, if you do not want to fetch complex data over a mobile\n      connection, or if the network is down, you can implement\n      `shouldBackgroundReloadAll` as follows:\n       ```javascript\n      shouldBackgroundReloadAll(store, snapshotArray) {\n        let { downlink, effectiveType } = navigator.connection;\n         return downlink > 0 && effectiveType === '4g';\n      }\n      ```\n       By default this method returns `true`, indicating that a background reload\n      should always be triggered.\n       @since 1.13.0\n      @method shouldBackgroundReloadAll\n      @param {Store} store\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Boolean}\n    */\n    shouldBackgroundReloadAll(store, snapshotRecordArray) {\n      return true;\n    }\n  }\n  _exports.default = Adapter;\n});","define(\"@ember-data/adapter/json-api\", [\"exports\", \"@ember/string\", \"ember-inflector\", \"@ember-data/adapter/-private\", \"@ember-data/adapter/rest\"], function (_exports, _string, _emberInflector, _private, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module @ember-data/adapter\n  */\n\n  /**\n    The `JSONAPIAdapter` is the default adapter used by Ember Data. It\n    is responsible for transforming the store's requests into HTTP\n    requests that follow the [JSON API](http://jsonapi.org/format/)\n    format.\n  \n    ## JSON API Conventions\n  \n    The JSONAPIAdapter uses JSON API conventions for building the URL\n    for a record and selecting the HTTP verb to use with a request. The\n    actions you can take on a record map onto the following URLs in the\n    JSON API adapter:\n  \n  <table>\n    <tr>\n      <th>\n        Action\n      </th>\n      <th>\n        HTTP Verb\n      </th>\n      <th>\n        URL\n      </th>\n    </tr>\n    <tr>\n      <th>\n        `store.findRecord('post', 123)`\n      </th>\n      <td>\n        GET\n      </td>\n      <td>\n        /posts/123\n      </td>\n    </tr>\n    <tr>\n      <th>\n        `store.findAll('post')`\n      </th>\n      <td>\n        GET\n      </td>\n      <td>\n        /posts\n      </td>\n    </tr>\n    <tr>\n      <th>\n        Update `postRecord.save()`\n      </th>\n      <td>\n        PATCH\n      </td>\n      <td>\n        /posts/123\n      </td>\n    </tr>\n    <tr>\n      <th>\n        Create `store.createRecord('post').save()`\n      </th>\n      <td>\n        POST\n      </td>\n      <td>\n        /posts\n      </td>\n    </tr>\n    <tr>\n      <th>\n        Delete `postRecord.destroyRecord()`\n      </th>\n      <td>\n        DELETE\n      </td>\n      <td>\n        /posts/123\n      </td>\n    </tr>\n  </table>\n  \n    ## Success and failure\n  \n    The JSONAPIAdapter will consider a success any response with a\n    status code of the 2xx family (\"Success\"), as well as 304 (\"Not\n    Modified\"). Any other status code will be considered a failure.\n  \n    On success, the request promise will be resolved with the full\n    response payload.\n  \n    Failed responses with status code 422 (\"Unprocessable Entity\") will\n    be considered \"invalid\". The response will be discarded, except for\n    the `errors` key. The request promise will be rejected with a\n    `InvalidError`. This error object will encapsulate the saved\n    `errors` value.\n  \n    Any other status codes will be treated as an adapter error. The\n    request promise will be rejected, similarly to the invalid case,\n    but with an instance of `AdapterError` instead.\n  \n    ### Endpoint path customization\n  \n    Endpoint paths can be prefixed with a `namespace` by setting the\n    namespace property on the adapter:\n  \n    ```app/adapters/application.js\n    import JSONAPIAdapter from '@ember-data/adapter/json-api';\n  \n    export default class ApplicationAdapter extends JSONAPIAdapter {\n      namespace = 'api/1';\n    }\n    ```\n    Requests for the `person` model would now target `/api/1/people/1`.\n  \n    ### Host customization\n  \n    An adapter can target other hosts by setting the `host` property.\n  \n    ```app/adapters/application.js\n    import JSONAPIAdapter from '@ember-data/adapter/json-api';\n  \n    export default class ApplicationAdapter extends JSONAPIAdapter {\n      host = 'https://api.example.com';\n    }\n    ```\n  \n    Requests for the `person` model would now target\n    `https://api.example.com/people/1`.\n  \n    @since 1.13.0\n    @class JSONAPIAdapter\n    @constructor\n    @extends RESTAdapter\n  */\n  class JSONAPIAdapter extends _rest.default {\n    constructor(...args) {\n      super(...args);\n      this.defaultSerializer = '-json-api';\n      this._defaultContentType = 'application/vnd.api+json';\n      /**\n        By default the JSONAPIAdapter will send each find request coming from a `store.find`\n        or from accessing a relationship separately to the server. If your server supports passing\n        ids as a query string, you can set coalesceFindRequests to true to coalesce all find requests\n        within a single runloop.\n         For example, if you have an initial payload of:\n         ```javascript\n        {\n          data: {\n            id: 1,\n            type: 'post',\n            relationship: {\n              comments: {\n                data: [\n                  { id: 1, type: 'comment' },\n                  { id: 2, type: 'comment' }\n                ]\n              }\n            }\n          }\n        }\n        ```\n         By default calling `post.get('comments')` will trigger the following requests(assuming the\n        comments haven't been loaded before):\n         ```\n        GET /comments/1\n        GET /comments/2\n        ```\n         If you set coalesceFindRequests to `true` it will instead trigger the following request:\n         ```\n        GET /comments?filter[id]=1,2\n        ```\n         Setting coalesceFindRequests to `true` also works for `store.find` requests and `belongsTo`\n        relationships accessed within the same runloop. If you set `coalesceFindRequests: true`\n         ```javascript\n        store.findRecord('comment', 1);\n        store.findRecord('comment', 2);\n        ```\n         will also send a request to: `GET /comments?filter[id]=1,2`\n         Note: Requests coalescing rely on URL building strategy. So if you override `buildURL` in your app\n        `groupRecordsForFindMany` more likely should be overridden as well in order for coalescing to work.\n         @property coalesceFindRequests\n        @type {boolean}\n      */\n      this.coalesceFindRequests = false;\n    }\n    /**\n      @method ajaxOptions\n      @private\n      @param {String} url\n      @param {String} type The request type GET, POST, PUT, DELETE etc.\n      @param {Object} options\n      @return {Object}\n    */\n    ajaxOptions(url, type, options = {}) {\n      var hash = super.ajaxOptions(url, type, options);\n      hash.headers['Accept'] = hash.headers['Accept'] || 'application/vnd.api+json';\n      return hash;\n    }\n    findMany(store, type, ids, snapshots) {\n      var url = this.buildURL(type.modelName, ids, snapshots, 'findMany');\n      return this.ajax(url, 'GET', {\n        data: {\n          filter: {\n            id: ids.join(',')\n          }\n        }\n      });\n    }\n    pathForType(modelName) {\n      var dasherized = (0, _string.dasherize)(modelName);\n      return (0, _emberInflector.pluralize)(dasherized);\n    }\n    updateRecord(store, type, snapshot) {\n      var data = (0, _private.serializeIntoHash)(store, type, snapshot);\n      var url = this.buildURL(type.modelName, snapshot.id, snapshot, 'updateRecord');\n      return this.ajax(url, 'PATCH', {\n        data: data\n      });\n    }\n  }\n  var _default = _exports.default = JSONAPIAdapter;\n});","define(\"@ember-data/adapter/rest\", [\"exports\", \"require\", \"@ember-data/adapter\", \"@ember-data/adapter/error\", \"@ember-data/store/-private\", \"@ember-data/adapter/-private\"], function (_exports, _require, _adapter, _error, _private, _private2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.fetchOptions = fetchOptions;\n  var _dec, _class;\n  function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }\n  var UseFetch = (0, _private.symbol)('useFetch');\n  var hasJQuery = typeof jQuery !== 'undefined';\n\n  /**\n    The REST adapter allows your store to communicate with an HTTP server by\n    transmitting JSON via XHR. Most Ember.js apps that consume a JSON API\n    should use the REST adapter.\n  \n    This adapter is designed around the idea that the JSON exchanged with\n    the server should be conventional.\n  \n    ## Success and failure\n  \n    The REST adapter will consider a success any response with a status code\n    of the 2xx family (\"Success\"), as well as 304 (\"Not Modified\"). Any other\n    status code will be considered a failure.\n  \n    On success, the request promise will be resolved with the full response\n    payload.\n  \n    Failed responses with status code 422 (\"Unprocessable Entity\") will be\n    considered \"invalid\". The response will be discarded, except for the\n    `errors` key. The request promise will be rejected with a `InvalidError`.\n    This error object will encapsulate the saved `errors` value.\n  \n    Any other status codes will be treated as an \"adapter error\". The request\n    promise will be rejected, similarly to the \"invalid\" case, but with\n    an instance of `AdapterError` instead.\n  \n    ## JSON Structure\n  \n    The REST adapter expects the JSON returned from your server to follow\n    these conventions.\n  \n    ### Object Root\n  \n    The JSON payload should be an object that contains the record inside a\n    root property. For example, in response to a `GET` request for\n    `/posts/1`, the JSON should look like this:\n  \n    ```js\n    {\n      \"posts\": {\n        \"id\": 1,\n        \"title\": \"I'm Running to Reform the W3C's Tag\",\n        \"author\": \"Yehuda Katz\"\n      }\n    }\n    ```\n  \n    Similarly, in response to a `GET` request for `/posts`, the JSON should\n    look like this:\n  \n    ```js\n    {\n      \"posts\": [\n        {\n          \"id\": 1,\n          \"title\": \"I'm Running to Reform the W3C's Tag\",\n          \"author\": \"Yehuda Katz\"\n        },\n        {\n          \"id\": 2,\n          \"title\": \"Rails is omakase\",\n          \"author\": \"D2H\"\n        }\n      ]\n    }\n    ```\n  \n    Note that the object root can be pluralized for both a single-object response\n    and an array response: the REST adapter is not strict on this. Further, if the\n    HTTP server responds to a `GET` request to `/posts/1` (e.g. the response to a\n    `findRecord` query) with more than one object in the array, Ember Data will\n    only display the object with the matching ID.\n  \n    ### Conventional Names\n  \n    Attribute names in your JSON payload should be the camelCased versions of\n    the attributes in your Ember.js models.\n  \n    For example, if you have a `Person` model:\n  \n    ```app/models/person.js\n    import Model, { attr } from '@ember-data/model';\n  \n    export default Model.extend({\n      firstName: attr('string'),\n      lastName: attr('string'),\n      occupation: attr('string')\n    });\n    ```\n  \n    The JSON returned should look like this:\n  \n    ```js\n    {\n      \"people\": {\n        \"id\": 5,\n        \"firstName\": \"Zaphod\",\n        \"lastName\": \"Beeblebrox\",\n        \"occupation\": \"President\"\n      }\n    }\n    ```\n  \n    #### Relationships\n  \n    Relationships are usually represented by ids to the record in the\n    relationship. The related records can then be sideloaded in the\n    response under a key for the type.\n  \n    ```js\n    {\n      \"posts\": {\n        \"id\": 5,\n        \"title\": \"I'm Running to Reform the W3C's Tag\",\n        \"author\": \"Yehuda Katz\",\n        \"comments\": [1, 2]\n      },\n      \"comments\": [{\n        \"id\": 1,\n        \"author\": \"User 1\",\n        \"message\": \"First!\",\n      }, {\n        \"id\": 2,\n        \"author\": \"User 2\",\n        \"message\": \"Good Luck!\",\n      }]\n    }\n    ```\n  \n    If the records in the relationship are not known when the response\n    is serialized it's also possible to represent the relationship as a\n    URL using the `links` key in the response. Ember Data will fetch\n    this URL to resolve the relationship when it is accessed for the\n    first time.\n  \n    ```js\n    {\n      \"posts\": {\n        \"id\": 5,\n        \"title\": \"I'm Running to Reform the W3C's Tag\",\n        \"author\": \"Yehuda Katz\",\n        \"links\": {\n          \"comments\": \"/posts/5/comments\"\n        }\n      }\n    }\n    ```\n  \n    ### Errors\n  \n    If a response is considered a failure, the JSON payload is expected to include\n    a top-level key `errors`, detailing any specific issues. For example:\n  \n    ```js\n    {\n      \"errors\": {\n        \"msg\": \"Something went wrong\"\n      }\n    }\n    ```\n  \n    This adapter does not make any assumptions as to the format of the `errors`\n    object. It will simply be passed along as is, wrapped in an instance\n    of `InvalidError` or `AdapterError`. The serializer can interpret it\n    afterwards.\n  \n    ## Customization\n  \n    ### Endpoint path customization\n  \n    Endpoint paths can be prefixed with a `namespace` by setting the namespace\n    property on the adapter:\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      namespace = 'api/1';\n    }\n    ```\n    Requests for the `Person` model would now target `/api/1/people/1`.\n  \n    ### Host customization\n  \n    An adapter can target other hosts by setting the `host` property.\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      host = 'https://api.example.com';\n    }\n    ```\n  \n    ### Headers customization\n  \n    Some APIs require HTTP headers, e.g. to provide an API key. Arbitrary\n    headers can be set as key/value pairs on the `RESTAdapter`'s `headers`\n    object and Ember Data will send them along with each ajax request.\n  \n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { computed } from '@ember/object';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      headers: computed(function() {\n        return {\n          'API_KEY': 'secret key',\n          'ANOTHER_HEADER': 'Some header value'\n        };\n      }\n    }\n    ```\n  \n    `headers` can also be used as a computed property to support dynamic\n    headers. In the example below, the `session` object has been\n    injected into an adapter by Ember's container.\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { computed } from '@ember/object';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      headers: computed('session.authToken', function() {\n        return {\n          'API_KEY': this.get('session.authToken'),\n          'ANOTHER_HEADER': 'Some header value'\n        };\n      })\n    }\n    ```\n  \n    In some cases, your dynamic headers may require data from some\n    object outside of Ember's observer system (for example\n    `document.cookie`). You can use the\n    [volatile](/api/classes/Ember.ComputedProperty.html?anchor=volatile)\n    function to set the property into a non-cached mode causing the headers to\n    be recomputed with every request.\n  \n    ```app/adapters/application.js\n    import RESTAdapter from '@ember-data/adapter/rest';\n    import { get } from '@ember/object';\n    import { computed } from '@ember/object';\n  \n    export default class ApplicationAdapter extends RESTAdapter {\n      headers: computed(function() {\n        return {\n          'API_KEY': get(document.cookie.match(/apiKey\\=([^;]*)/), '1'),\n          'ANOTHER_HEADER': 'Some header value'\n        };\n      }).volatile()\n    }\n    ```\n  \n    @class RESTAdapter\n    @constructor\n    @extends Adapter\n    @uses BuildURLMixin\n  */\n  var RESTAdapter = (_dec = Ember.computed, (_class = class RESTAdapter extends _adapter.default.extend(_adapter.BuildURLMixin) {\n    constructor(...args) {\n      super(...args);\n      this.defaultSerializer = '-rest';\n      this._defaultContentType = 'application/json; charset=utf-8';\n      /**\n        By default the RESTAdapter will send each find request coming from a `store.find`\n        or from accessing a relationship separately to the server. If your server supports passing\n        ids as a query string, you can set coalesceFindRequests to true to coalesce all find requests\n        within a single runloop.\n         For example, if you have an initial payload of:\n         ```javascript\n        {\n          post: {\n            id: 1,\n            comments: [1, 2]\n          }\n        }\n        ```\n         By default calling `post.get('comments')` will trigger the following requests(assuming the\n        comments haven't been loaded before):\n         ```\n        GET /comments/1\n        GET /comments/2\n        ```\n         If you set coalesceFindRequests to `true` it will instead trigger the following request:\n         ```\n        GET /comments?ids[]=1&ids[]=2\n        ```\n         Setting coalesceFindRequests to `true` also works for `store.find` requests and `belongsTo`\n        relationships accessed within the same runloop. If you set `coalesceFindRequests: true`\n         ```javascript\n        store.findRecord('comment', 1);\n        store.findRecord('comment', 2);\n        ```\n         will also send a request to: `GET /comments?ids[]=1&ids[]=2`\n         Note: Requests coalescing rely on URL building strategy. So if you override `buildURL` in your app\n        `groupRecordsForFindMany` more likely should be overridden as well in order for coalescing to work.\n         @property coalesceFindRequests\n        @type {boolean}\n      */\n      this.coalesceFindRequests = false;\n      // http://stackoverflow.com/questions/417142/what-is-the-maximum-length-of-a-url-in-different-browsers\n      this.maxURLLength = 2048;\n    }\n    get fastboot() {\n      // Avoid computed property override deprecation in fastboot as suggested by:\n      // https://deprecations.emberjs.com/v3.x/#toc_computed-property-override\n      if (this._fastboot) {\n        return this._fastboot;\n      }\n      return this._fastboot = Ember.getOwner(this).lookup('service:fastboot');\n    }\n    set fastboot(value) {\n      return this._fastboot = value;\n    }\n\n    /**\n      @property useFetch\n      @type {Boolean}\n      @public\n    */\n\n    /**\n      By default, the RESTAdapter will send the query params sorted alphabetically to the\n      server.\n       For example:\n       ```js\n      store.query('posts', { sort: 'price', category: 'pets' });\n      ```\n       will generate a requests like this `/posts?category=pets&sort=price`, even if the\n      parameters were specified in a different order.\n       That way the generated URL will be deterministic and that simplifies caching mechanisms\n      in the backend.\n       Setting `sortQueryParams` to a falsey value will respect the original order.\n       In case you want to sort the query parameters with a different criteria, set\n      `sortQueryParams` to your custom sort function.\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n       export default class ApplicationAdapter extends RESTAdapter {\n        sortQueryParams(params) {\n          let sortedKeys = Object.keys(params).sort().reverse();\n          let len = sortedKeys.length, newParams = {};\n           for (let i = 0; i < len; i++) {\n            newParams[sortedKeys[i]] = params[sortedKeys[i]];\n          }\n           return newParams;\n        }\n      }\n      ```\n       @method sortQueryParams\n      @param {Object} obj\n      @return {Object}\n    */\n    sortQueryParams(obj) {\n      var keys = Object.keys(obj);\n      var len = keys.length;\n      if (len < 2) {\n        return obj;\n      }\n      var newQueryParams = {};\n      var sortedKeys = keys.sort();\n      for (var i = 0; i < len; i++) {\n        newQueryParams[sortedKeys[i]] = obj[sortedKeys[i]];\n      }\n      return newQueryParams;\n    }\n    /**\n      Endpoint paths can be prefixed with a `namespace` by setting the namespace\n      property on the adapter:\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n       export default class ApplicationAdapter extends RESTAdapter {\n        namespace = 'api/1';\n      }\n      ```\n       Requests for the `Post` model would now target `/api/1/post/`.\n       @property namespace\n      @type {String}\n    */\n\n    /**\n      An adapter can target other hosts by setting the `host` property.\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n       export default class ApplicationAdapter extends RESTAdapter {\n        host = 'https://api.example.com';\n      }\n      ```\n       Requests for the `Post` model would now target `https://api.example.com/post/`.\n       @property host\n      @type {String}\n    */\n\n    /**\n      Some APIs require HTTP headers, e.g. to provide an API\n      key. Arbitrary headers can be set as key/value pairs on the\n      `RESTAdapter`'s `headers` object and Ember Data will send them\n      along with each ajax request. For dynamic headers see [headers\n      customization](/ember-data/release/classes/RESTAdapter).\n       ```app/adapters/application.js\n      import RESTAdapter from '@ember-data/adapter/rest';\n      import { computed } from '@ember/object';\n       export default class ApplicationAdapter extends RESTAdapter {\n        headers: computed(function() {\n          return {\n            'API_KEY': 'secret key',\n            'ANOTHER_HEADER': 'Some header value'\n          };\n        })\n      }\n      ```\n       @property headers\n      @type {Object}\n     */\n\n    /**\n      Called by the store in order to fetch the JSON for a given\n      type and ID.\n       The `findRecord` method makes an Ajax request to a URL computed by\n      `buildURL`, and returns a promise for the resulting payload.\n       This method performs an HTTP `GET` request with the id provided as part of the query string.\n       @since 1.13.0\n      @method findRecord\n      @param {Store} store\n      @param {Model} type\n      @param {String} id\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    findRecord(store, type, id, snapshot) {\n      var url = this.buildURL(type.modelName, id, snapshot, 'findRecord');\n      var query = this.buildQuery(snapshot);\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON array for all\n      of the records for a given type.\n       The `findAll` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a\n      promise for the resulting payload.\n       @method findAll\n      @param {Store} store\n      @param {Model} type\n      @param {undefined} neverSet a value is never provided to this argument\n      @param {SnapshotRecordArray} snapshotRecordArray\n      @return {Promise} promise\n    */\n    findAll(store, type, sinceToken, snapshotRecordArray) {\n      var query = this.buildQuery(snapshotRecordArray);\n      var url = this.buildURL(type.modelName, null, snapshotRecordArray, 'findAll');\n      if (sinceToken) {\n        query.since = sinceToken;\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON array for\n      the records that match a particular query.\n       The `query` method makes an Ajax (HTTP GET) request to a URL\n      computed by `buildURL`, and returns a promise for the resulting\n      payload.\n       The `query` argument is a simple JavaScript object that will be passed directly\n      to the server as parameters.\n       @method query\n      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @return {Promise} promise\n    */\n    query(store, type, query) {\n      var url = this.buildURL(type.modelName, null, null, 'query', query);\n      if (this.sortQueryParams) {\n        query = this.sortQueryParams(query);\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON object for\n      the record that matches a particular query.\n       The `queryRecord` method makes an Ajax (HTTP GET) request to a URL\n      computed by `buildURL`, and returns a promise for the resulting\n      payload.\n       The `query` argument is a simple JavaScript object that will be passed directly\n      to the server as parameters.\n       @since 1.13.0\n      @method queryRecord\n      @param {Store} store\n      @param {Model} type\n      @param {Object} query\n      @return {Promise} promise\n    */\n    queryRecord(store, type, query) {\n      var url = this.buildURL(type.modelName, null, null, 'queryRecord', query);\n      if (this.sortQueryParams) {\n        query = this.sortQueryParams(query);\n      }\n      return this.ajax(url, 'GET', {\n        data: query\n      });\n    }\n\n    /**\n      Called by the store in order to fetch several records together if `coalesceFindRequests` is true\n       For example, if the original payload looks like:\n       ```js\n      {\n        \"id\": 1,\n        \"title\": \"Rails is omakase\",\n        \"comments\": [ 1, 2, 3 ]\n      }\n      ```\n       The IDs will be passed as a URL-encoded Array of IDs, in this form:\n       ```\n      ids[]=1&ids[]=2&ids[]=3\n      ```\n       Many servers, such as Rails and PHP, will automatically convert this URL-encoded array\n      into an Array for you on the server-side. If you want to encode the\n      IDs, differently, just override this (one-line) method.\n       The `findMany` method makes an Ajax (HTTP GET) request to a URL computed by `buildURL`, and returns a\n      promise for the resulting payload.\n       @method findMany\n      @param {Store} store\n      @param {Model} type\n      @param {Array} ids\n      @param {Array} snapshots\n      @return {Promise} promise\n    */\n    findMany(store, type, ids, snapshots) {\n      var url = this.buildURL(type.modelName, ids, snapshots, 'findMany');\n      return this.ajax(url, 'GET', {\n        data: {\n          ids: ids\n        }\n      });\n    }\n\n    /**\n      Called by the store in order to fetch a JSON array for\n      the unloaded records in a has-many relationship that were originally\n      specified as a URL (inside of `links`).\n       For example, if your original payload looks like this:\n       ```js\n      {\n        \"post\": {\n          \"id\": 1,\n          \"title\": \"Rails is omakase\",\n          \"links\": { \"comments\": \"/posts/1/comments\" }\n        }\n      }\n      ```\n       This method will be called with the parent record and `/posts/1/comments`.\n       The `findHasMany` method will make an Ajax (HTTP GET) request to the originally specified URL.\n       The format of your `links` value will influence the final request URL via the `urlPrefix` method:\n       * Links beginning with `//`, `http://`, `https://`, will be used as is, with no further manipulation.\n       * Links beginning with a single `/` will have the current adapter's `host` value prepended to it.\n       * Links with no beginning `/` will have a parentURL prepended to it, via the current adapter's `buildURL`.\n       @method findHasMany\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @param {String} url\n      @param {Object} relationship meta object describing the relationship\n      @return {Promise} promise\n    */\n    findHasMany(store, snapshot, url, relationship) {\n      var id = snapshot.id;\n      var type = snapshot.modelName;\n      url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findHasMany'));\n      return this.ajax(url, 'GET');\n    }\n\n    /**\n      Called by the store in order to fetch the JSON for the unloaded record in a\n      belongs-to relationship that was originally specified as a URL (inside of\n      `links`).\n       For example, if your original payload looks like this:\n       ```js\n      {\n        \"person\": {\n          \"id\": 1,\n          \"name\": \"Tom Dale\",\n          \"links\": { \"group\": \"/people/1/group\" }\n        }\n      }\n      ```\n       This method will be called with the parent record and `/people/1/group`.\n       The `findBelongsTo` method will make an Ajax (HTTP GET) request to the originally specified URL.\n       The format of your `links` value will influence the final request URL via the `urlPrefix` method:\n       * Links beginning with `//`, `http://`, `https://`, will be used as is, with no further manipulation.\n       * Links beginning with a single `/` will have the current adapter's `host` value prepended to it.\n       * Links with no beginning `/` will have a parentURL prepended to it, via the current adapter's `buildURL`.\n       @method findBelongsTo\n      @param {Store} store\n      @param {Snapshot} snapshot\n      @param {String} url\n      @param {Object} relationship meta object describing the relationship\n      @return {Promise} promise\n    */\n    findBelongsTo(store, snapshot, url, relationship) {\n      var id = snapshot.id;\n      var type = snapshot.modelName;\n      url = this.urlPrefix(url, this.buildURL(type, id, snapshot, 'findBelongsTo'));\n      return this.ajax(url, 'GET');\n    }\n\n    /**\n      Called by the store when a newly created record is\n      saved via the `save` method on a model record instance.\n       The `createRecord` method serializes the record and makes an Ajax (HTTP POST) request\n      to a URL computed by `buildURL`.\n       See `serialize` for information on how to customize the serialized form\n      of a record.\n       @method createRecord\n      @param {Store} store\n      @param {Model} type\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    createRecord(store, type, snapshot) {\n      var url = this.buildURL(type.modelName, null, snapshot, 'createRecord');\n      var data = (0, _private2.serializeIntoHash)(store, type, snapshot);\n      return this.ajax(url, 'POST', {\n        data\n      });\n    }\n\n    /**\n      Called by the store when an existing record is saved\n      via the `save` method on a model record instance.\n       The `updateRecord` method serializes the record and makes an Ajax (HTTP PUT) request\n      to a URL computed by `buildURL`.\n       See `serialize` for information on how to customize the serialized form\n      of a record.\n       @method updateRecord\n      @param {Store} store\n      @param {Model} type\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    updateRecord(store, type, snapshot) {\n      var data = (0, _private2.serializeIntoHash)(store, type, snapshot, {});\n      var id = snapshot.id;\n      var url = this.buildURL(type.modelName, id, snapshot, 'updateRecord');\n      return this.ajax(url, 'PUT', {\n        data\n      });\n    }\n\n    /**\n      Called by the store when a record is deleted.\n       The `deleteRecord` method  makes an Ajax (HTTP DELETE) request to a URL computed by `buildURL`.\n       @method deleteRecord\n      @param {Store} store\n      @param {Model} type\n      @param {Snapshot} snapshot\n      @return {Promise} promise\n    */\n    deleteRecord(store, type, snapshot) {\n      var id = snapshot.id;\n      return this.ajax(this.buildURL(type.modelName, id, snapshot, 'deleteRecord'), 'DELETE');\n    }\n    _stripIDFromURL(store, snapshot) {\n      var url = this.buildURL(snapshot.modelName, snapshot.id, snapshot);\n      var expandedURL = url.split('/');\n      // Case when the url is of the format ...something/:id\n      // We are decodeURIComponent-ing the lastSegment because if it represents\n      // the id, it has been encodeURIComponent-ified within `buildURL`. If we\n      // don't do this, then records with id having special characters are not\n      // coalesced correctly (see GH #4190 for the reported bug)\n      var lastSegment = expandedURL[expandedURL.length - 1];\n      var id = snapshot.id;\n      if (decodeURIComponent(lastSegment) === id) {\n        expandedURL[expandedURL.length - 1] = '';\n      } else if (endsWith(lastSegment, '?id=' + id)) {\n        //Case when the url is of the format ...something?id=:id\n        expandedURL[expandedURL.length - 1] = lastSegment.substring(0, lastSegment.length - id.length - 1);\n      }\n      return expandedURL.join('/');\n    }\n    /**\n      Organize records into groups, each of which is to be passed to separate\n      calls to `findMany`.\n       This implementation groups together records that have the same base URL but\n      differing ids. For example `/comments/1` and `/comments/2` will be grouped together\n      because we know findMany can coalesce them together as `/comments?ids[]=1&ids[]=2`\n       It also supports urls where ids are passed as a query param, such as `/comments?id=1`\n      but not those where there is more than 1 query param such as `/comments?id=2&name=David`\n      Currently only the query param of `id` is supported. If you need to support others, please\n      override this or the `_stripIDFromURL` method.\n       It does not group records that have differing base urls, such as for example: `/posts/1/comments/2`\n      and `/posts/2/comments/3`\n       @method groupRecordsForFindMany\n      @param {Store} store\n      @param {Array} snapshots\n      @return {Array}  an array of arrays of records, each of which is to be\n                        loaded separately by `findMany`.\n    */\n    groupRecordsForFindMany(store, snapshots) {\n      var groups = new Map();\n      var adapter = this;\n      var maxURLLength = this.maxURLLength;\n      snapshots.forEach(snapshot => {\n        var baseUrl = adapter._stripIDFromURL(store, snapshot);\n        if (!groups.has(baseUrl)) {\n          groups.set(baseUrl, []);\n        }\n        groups.get(baseUrl).push(snapshot);\n      });\n      function splitGroupToFitInUrl(group, maxURLLength, paramNameLength) {\n        var idsSize = 0;\n        var baseUrl = adapter._stripIDFromURL(store, group[0]);\n        var splitGroups = [[]];\n        group.forEach(snapshot => {\n          var additionalLength = encodeURIComponent(snapshot.id).length + paramNameLength;\n          if (baseUrl.length + idsSize + additionalLength >= maxURLLength) {\n            idsSize = 0;\n            splitGroups.push([]);\n          }\n          idsSize += additionalLength;\n          var lastGroupIndex = splitGroups.length - 1;\n          splitGroups[lastGroupIndex].push(snapshot);\n        });\n        return splitGroups;\n      }\n      var groupsArray = [];\n      groups.forEach((group, key) => {\n        var paramNameLength = '&ids%5B%5D='.length;\n        var splitGroups = splitGroupToFitInUrl(group, maxURLLength, paramNameLength);\n        splitGroups.forEach(splitGroup => groupsArray.push(splitGroup));\n      });\n      return groupsArray;\n    }\n\n    /**\n      Takes an ajax response, and returns the json payload or an error.\n       By default this hook just returns the json payload passed to it.\n      You might want to override it in two cases:\n       1. Your API might return useful results in the response headers.\n      Response headers are passed in as the second argument.\n       2. Your API might return errors as successful responses with status code\n      200 and an Errors text or object. You can return a `InvalidError` or a\n      `AdapterError` (or a sub class) from this hook and it will automatically\n      reject the promise and put your record into the invalid or error state.\n       Returning a `InvalidError` from this method will cause the\n      record to transition into the `invalid` state and make the\n      `errors` object available on the record. When returning an\n      `InvalidError` the store will attempt to normalize the error data\n      returned from the server using the serializer's `extractErrors`\n      method.\n       @since 1.13.0\n      @method handleResponse\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @param  {Object} requestData - the original request information\n      @return {Object | AdapterError} response\n    */\n    handleResponse(status, headers, payload, requestData) {\n      if (this.isSuccess(status, headers, payload)) {\n        return payload;\n      } else if (this.isInvalid(status, headers, payload)) {\n        return new _error.InvalidError(payload.errors);\n      }\n      var errors = this.normalizeErrorResponse(status, headers, payload);\n      var detailedMessage = this.generatedDetailedMessage(status, headers, payload, requestData);\n      switch (status) {\n        case 401:\n          return new _error.UnauthorizedError(errors, detailedMessage);\n        case 403:\n          return new _error.ForbiddenError(errors, detailedMessage);\n        case 404:\n          return new _error.NotFoundError(errors, detailedMessage);\n        case 409:\n          return new _error.ConflictError(errors, detailedMessage);\n        default:\n          if (status >= 500) {\n            return new _error.ServerError(errors, detailedMessage);\n          }\n      }\n      return new _error.default(errors, detailedMessage);\n    }\n\n    /**\n      Default `handleResponse` implementation uses this hook to decide if the\n      response is a success.\n       @since 1.13.0\n      @method isSuccess\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @return {Boolean}\n    */\n    isSuccess(status, headers, payload) {\n      return status >= 200 && status < 300 || status === 304;\n    }\n\n    /**\n      Default `handleResponse` implementation uses this hook to decide if the\n      response is an invalid error.\n       @since 1.13.0\n      @method isInvalid\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @return {Boolean}\n    */\n    isInvalid(status, headers, payload) {\n      return status === 422;\n    }\n\n    /**\n      Takes a URL, an HTTP method and a hash of data, and makes an\n      HTTP request.\n       When the server responds with a payload, Ember Data will call into `extractSingle`\n      or `extractArray` (depending on whether the original query was for one record or\n      many records).\n       By default, `ajax` method has the following behavior:\n       * It sets the response `dataType` to `\"json\"`\n      * If the HTTP method is not `\"GET\"`, it sets the `Content-Type` to be\n        `application/json; charset=utf-8`\n      * If the HTTP method is not `\"GET\"`, it stringifies the data passed in. The\n        data is the serialized record in the case of a save.\n      * Registers success and failure handlers.\n       @method ajax\n      @private\n      @param {String} url\n      @param {String} type The request type GET, POST, PUT, DELETE etc.\n      @param {Object} options\n      @return {Promise} promise\n    */\n    ajax(url, type, options) {\n      var adapter = this;\n      var requestData = {\n        url: url,\n        method: type\n      };\n      var hash = adapter.ajaxOptions(url, type, options);\n      if (this.useFetch) {\n        var _response;\n        return this._fetchRequest(hash).then(response => {\n          _response = response;\n          return (0, _private2.determineBodyPromise)(response, requestData);\n        }).then(payload => {\n          if (_response.ok && !(payload instanceof Error)) {\n            return fetchSuccessHandler(adapter, payload, _response, requestData);\n          } else {\n            throw fetchErrorHandler(adapter, payload, _response, null, requestData);\n          }\n        });\n      }\n      return new Ember.RSVP.Promise(function (resolve, reject) {\n        hash.success = function (payload, textStatus, jqXHR) {\n          var response = ajaxSuccessHandler(adapter, payload, jqXHR, requestData);\n          Ember.run.join(null, resolve, response);\n        };\n        hash.error = function (jqXHR, textStatus, errorThrown) {\n          var error = ajaxErrorHandler(adapter, jqXHR, errorThrown, requestData);\n          Ember.run.join(null, reject, error);\n        };\n        adapter._ajax(hash);\n      }, 'DS: RESTAdapter#ajax ' + type + ' to ' + url);\n    }\n\n    /**\n      @method _ajaxRequest\n      @private\n      @param {Object} options jQuery ajax options to be used for the ajax request\n    */\n    _ajaxRequest(options) {\n      jQuery.ajax(options);\n    }\n    _fetchRequest(options) {\n      var fetchFunction = (0, _private2.fetch)();\n      if (fetchFunction) {\n        return fetchFunction(options.url, options);\n      } else {\n        throw new Error('cannot find the `fetch` module or the `fetch` global. Did you mean to install the `ember-fetch` addon?');\n      }\n    }\n    _ajax(options) {\n      if (this.useFetch) {\n        this._fetchRequest(options);\n      } else if (true /* DEPRECATE_NAJAX */ && Ember.get(this, 'fastboot.isFastBoot')) {\n        this._najaxRequest(options);\n      } else {\n        this._ajaxRequest(options);\n      }\n    }\n\n    /**\n      @method ajaxOptions\n      @private\n      @param {String} url\n      @param {String} type The request type GET, POST, PUT, DELETE etc.\n      @param {Object} options\n      @return {Object}\n    */\n    ajaxOptions(url, method, options) {\n      options = Ember.assign({\n        url,\n        method,\n        type: method\n      }, options);\n      var headers = Ember.get(this, 'headers');\n      if (headers !== undefined) {\n        options.headers = Ember.assign({}, headers, options.headers);\n      } else if (!options.headers) {\n        options.headers = {};\n      }\n      var contentType = options.contentType || this._defaultContentType;\n      if (this.useFetch) {\n        if (options.data && options.type !== 'GET') {\n          if (!options.headers['Content-Type'] && !options.headers['content-type']) {\n            options.headers['content-type'] = contentType;\n          }\n        }\n        options = fetchOptions(options, this);\n      } else {\n        // GET requests without a body should not have a content-type header\n        // and may be unexpected by a server\n        if (options.data && options.type !== 'GET') {\n          options = Ember.assign(options, {\n            contentType\n          });\n        }\n        options = ajaxOptions(options, this);\n      }\n      options.url = this._ajaxURL(options.url);\n      return options;\n    }\n    _ajaxURL(url) {\n      if (Ember.get(this, 'fastboot.isFastBoot')) {\n        var httpRegex = /^https?:\\/\\//;\n        var protocolRelativeRegex = /^\\/\\//;\n        var protocol = Ember.get(this, 'fastboot.request.protocol');\n        var host = Ember.get(this, 'fastboot.request.host');\n        if (protocolRelativeRegex.test(url)) {\n          return `${protocol}${url}`;\n        } else if (!httpRegex.test(url)) {\n          try {\n            return `${protocol}//${host}${url}`;\n          } catch (fbError) {\n            throw new Error('You are using Ember Data with no host defined in your adapter. This will attempt to use the host of the FastBoot request, which is not configured for the current host of this request. Please set the hostWhitelist property for in your environment.js. FastBoot Error: ' + fbError.message);\n          }\n        }\n      }\n      return url;\n    }\n\n    /**\n      @method parseErrorResponse\n      @private\n      @param {String} responseText\n      @return {Object}\n    */\n    parseErrorResponse(responseText) {\n      var json = responseText;\n      try {\n        json = JSON.parse(responseText);\n      } catch (e) {\n        // ignored\n      }\n      return json;\n    }\n\n    /**\n      @method normalizeErrorResponse\n      @private\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @return {Array} errors payload\n    */\n    normalizeErrorResponse(status, headers, payload) {\n      if (payload && typeof payload === 'object' && payload.errors) {\n        return payload.errors;\n      } else {\n        return [{\n          status: `${status}`,\n          title: 'The backend responded with an error',\n          detail: `${payload}`\n        }];\n      }\n    }\n\n    /**\n      Generates a detailed (\"friendly\") error message, with plenty\n      of information for debugging (good luck!)\n       @method generatedDetailedMessage\n      @private\n      @param  {Number} status\n      @param  {Object} headers\n      @param  {Object} payload\n      @param  {Object} requestData\n      @return {String} detailed error message\n    */\n    generatedDetailedMessage(status, headers, payload, requestData) {\n      var shortenedPayload;\n      var payloadContentType = headers['content-type'] || 'Empty Content-Type';\n      if (payloadContentType === 'text/html' && payload.length > 250) {\n        shortenedPayload = '[Omitted Lengthy HTML]';\n      } else {\n        shortenedPayload = payload;\n      }\n      var requestDescription = requestData.method + ' ' + requestData.url;\n      var payloadDescription = 'Payload (' + payloadContentType + ')';\n      return ['Ember Data Request ' + requestDescription + ' returned a ' + status, payloadDescription, shortenedPayload].join('\\n');\n    }\n\n    /**\n      @method buildQuery\n      @since 2.5.0\n      @public\n      @param  {Snapshot} snapshot\n      @return {Object}\n    */\n    buildQuery(snapshot) {\n      var query = {};\n      if (snapshot) {\n        var {\n          include\n        } = snapshot;\n        if (include) {\n          query.include = include;\n        }\n      }\n      return query;\n    }\n  }, (_applyDecoratedDescriptor(_class.prototype, \"fastboot\", [_dec], Object.getOwnPropertyDescriptor(_class.prototype, \"fastboot\"), _class.prototype)), _class));\n  function ajaxSuccess(adapter, payload, requestData, responseData) {\n    var response;\n    try {\n      response = adapter.handleResponse(responseData.status, responseData.headers, payload, requestData);\n    } catch (error) {\n      return Ember.RSVP.Promise.reject(error);\n    }\n    if (response && response.isAdapterError) {\n      return Ember.RSVP.Promise.reject(response);\n    } else {\n      return response;\n    }\n  }\n  function ajaxError(adapter, payload, requestData, responseData) {\n    var error;\n    if (responseData.errorThrown instanceof Error && payload !== '') {\n      error = responseData.errorThrown;\n    } else if (responseData.textStatus === 'timeout') {\n      error = new _error.TimeoutError();\n    } else if (responseData.textStatus === 'abort' || responseData.status === 0) {\n      error = handleAbort(requestData, responseData);\n    } else {\n      try {\n        error = adapter.handleResponse(responseData.status, responseData.headers, payload || responseData.errorThrown, requestData);\n      } catch (e) {\n        error = e;\n      }\n    }\n    return error;\n  }\n\n  // Adapter abort error to include any relevent info, e.g. request/response:\n  function handleAbort(requestData, responseData) {\n    var {\n      method,\n      url,\n      errorThrown\n    } = requestData;\n    var {\n      status\n    } = responseData;\n    var msg = `Request failed: ${method} ${url} ${errorThrown || ''}`;\n    var errors = [{\n      title: 'Adapter Error',\n      detail: msg.trim(),\n      status\n    }];\n    return new _error.AbortError(errors);\n  }\n\n  //From http://stackoverflow.com/questions/280634/endswith-in-javascript\n  function endsWith(string, suffix) {\n    if (typeof String.prototype.endsWith !== 'function') {\n      return string.indexOf(suffix, string.length - suffix.length) !== -1;\n    } else {\n      return string.endsWith(suffix);\n    }\n  }\n  function fetchSuccessHandler(adapter, payload, response, requestData) {\n    var responseData = fetchResponseData(response);\n    return ajaxSuccess(adapter, payload, requestData, responseData);\n  }\n  function fetchErrorHandler(adapter, payload, response, errorThrown, requestData) {\n    var responseData = fetchResponseData(response);\n    if (responseData.status === 200 && payload instanceof Error) {\n      responseData.errorThrown = payload;\n      payload = responseData.errorThrown.payload;\n    } else {\n      responseData.errorThrown = errorThrown;\n      payload = adapter.parseErrorResponse(payload);\n    }\n    return ajaxError(adapter, payload, requestData, responseData);\n  }\n  function ajaxSuccessHandler(adapter, payload, jqXHR, requestData) {\n    var responseData = ajaxResponseData(jqXHR);\n    return ajaxSuccess(adapter, payload, requestData, responseData);\n  }\n  function ajaxErrorHandler(adapter, jqXHR, errorThrown, requestData) {\n    var responseData = ajaxResponseData(jqXHR);\n    responseData.errorThrown = errorThrown;\n    var payload = adapter.parseErrorResponse(jqXHR.responseText);\n    if (true /* DEBUG */) {\n      var message = `The server returned an empty string for ${requestData.method} ${requestData.url}, which cannot be parsed into a valid JSON. Return either null or {}.`;\n      var validJSONString = !(responseData.textStatus === 'parsererror' && payload === '');\n      (true && Ember.warn(message, validJSONString, {\n        id: 'ds.adapter.returned-empty-string-as-JSON'\n      }));\n    }\n    return ajaxError(adapter, payload, requestData, responseData);\n  }\n  function fetchResponseData(response) {\n    return {\n      status: response.status,\n      textStatus: response.textStatus,\n      headers: headersToObject(response.headers)\n    };\n  }\n  function ajaxResponseData(jqXHR) {\n    return {\n      status: jqXHR.status,\n      textStatus: jqXHR.statusText,\n      headers: (0, _private2.parseResponseHeaders)(jqXHR.getAllResponseHeaders())\n    };\n  }\n  function headersToObject(headers) {\n    var headersObject = {};\n    if (headers) {\n      headers.forEach((value, key) => headersObject[key] = value);\n    }\n    return headersObject;\n  }\n\n  /**\n   * Helper function that translates the options passed to `jQuery.ajax` into a format that `fetch` expects.\n   * @param {Object} _options\n   * @param {Adapter} adapter\n   * @returns {Object}\n   */\n  function fetchOptions(options, adapter) {\n    options.credentials = options.credentials || 'same-origin';\n    if (options.data) {\n      // GET and HEAD requests can't have a `body`\n      if (options.method === 'GET' || options.method === 'HEAD') {\n        // If no options are passed, Ember Data sets `data` to an empty object, which we test for.\n        if (Object.keys(options.data).length) {\n          // Test if there are already query params in the url (mimics jQuey.ajax).\n          var queryParamDelimiter = options.url.indexOf('?') > -1 ? '&' : '?';\n          options.url += `${queryParamDelimiter}${(0, _private2.serializeQueryParams)(options.data)}`;\n        }\n      } else {\n        // NOTE: a request's body cannot be an object, so we stringify it if it is.\n        // JSON.stringify removes keys with values of `undefined` (mimics jQuery.ajax).\n        // If the data is not a POJO (it's a String, FormData, etc), we just set it.\n        // If the data is a string, we assume it's a stringified object.\n\n        /* We check for Objects this way because we want the logic inside the consequent to run\n         * if `options.data` is a POJO, not if it is a data structure whose `typeof` returns \"object\"\n         * when it's not (Array, FormData, etc). The reason we don't use `options.data.constructor`\n         * to check is in case `data` is an object with no prototype (e.g. created with null).\n         */\n        if (Object.prototype.toString.call(options.data) === '[object Object]') {\n          options.body = JSON.stringify(options.data);\n        } else {\n          options.body = options.data;\n        }\n      }\n    }\n    return options;\n  }\n  function ajaxOptions(options, adapter) {\n    options.dataType = 'json';\n    options.context = adapter;\n    if (options.data && options.type !== 'GET') {\n      options.data = JSON.stringify(options.data);\n    }\n    options.beforeSend = function (xhr) {\n      Object.keys(options.headers).forEach(key => xhr.setRequestHeader(key, options.headers[key]));\n    };\n    return options;\n  }\n  if (true /* DEPRECATE_NAJAX */) {\n    /**\n      @method _najaxRequest\n      @private\n      @param {Object} options jQuery ajax options to be used for the najax request\n    */\n    RESTAdapter.prototype._najaxRequest = function (options) {\n      if (typeof najax !== 'undefined') {\n        najax(options);\n      } else {\n        throw new Error('najax does not seem to be defined in your app. Did you override it via `addOrOverrideSandboxGlobals` in the fastboot server?');\n      }\n    };\n    Object.defineProperty(RESTAdapter.prototype, 'useFetch', {\n      get() {\n        if (typeof this[UseFetch] === 'boolean') {\n          return this[UseFetch];\n        }\n\n        // Mixin validates all properties. Might not have it in the container yet\n        var ENV = Ember.getOwner(this) ? Ember.getOwner(this).resolveRegistration('config:environment') : {};\n        // TODO: https://github.com/emberjs/data/issues/6093\n        var jQueryIntegrationDisabled = ENV && ENV.EmberENV && ENV.EmberENV._JQUERY_INTEGRATION === false;\n        var shouldUseFetch;\n        if (jQueryIntegrationDisabled) {\n          shouldUseFetch = true;\n        } else if (typeof najax !== 'undefined') {\n          if ((0, _require.has)('fetch')) {\n            (true && !(false) && Ember.deprecate('You have ember-fetch and jquery installed. To use ember-fetch instead of najax, set `useFetch = true` in your adapter.  In 4.0, ember-data will default to ember-fetch instead of najax when both ember-fetch and jquery are installed in FastBoot.', false, {\n              id: 'ember-data:najax-fallback',\n              until: '4.0'\n            }));\n          } else {\n            (true && !(false) && Ember.deprecate('In 4.0, ember-data will default to ember-fetch instead of najax in FastBoot.  It is recommended that you install ember-fetch or similar fetch polyfill in FastBoot and set `useFetch = true` in your adapter.', false, {\n              id: 'ember-data:najax-fallback',\n              until: '4.0'\n            }));\n          }\n          shouldUseFetch = false;\n        } else if (hasJQuery) {\n          shouldUseFetch = false;\n        } else {\n          shouldUseFetch = true;\n        }\n        (0, _private.addSymbol)(this, UseFetch, shouldUseFetch);\n        return shouldUseFetch;\n      },\n      set(value) {\n        (0, _private.addSymbol)(this, UseFetch, value);\n        return value;\n      }\n    });\n  } else {\n    Object.defineProperty(RESTAdapter.prototype, 'useFetch', {\n      value() {\n        return true;\n      },\n      configurable: true\n    });\n  }\n  var _default = _exports.default = RESTAdapter;\n});","define(\"@ember-data/canary-features/default-features\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * ## Canary Features\n   *\n   * EmberData allows users to test features that are implemented but not yet\n   * available even in canary.\n   *\n   * Typically these features represent work that might introduce a new concept,\n   * new API, change an API, or risk an unintended change in behavior to consuming\n   * applications.\n   *\n   * Such features have their implementations guarded by a \"feature flag\", and the\n   * flag is only activated once the core-data team is prepared to ship the work\n   * in a canary release.\n   *\n   * ### Installing Canary\n   *\n   * To test a feature you MUST be using a canary build. Canary builds are published\n   * to `npm` and can be installed using a precise tag (such as `ember-data@3.16.0-alpha.1`)\n   * or by installing the latest dist-tag published to the `canary` channel.\n   *\n   * *Using `npm` to install the latest canary*\n   *\n   * ```cli\n   * npm install --save-dev ember-data@canary\n   * ```\n   *\n   * *Using `yarn` to install the latest canary*\n   *\n   * ```cli\n   * yarn add ember-data@canary\n   * ```\n   *\n   * ### Activating a Canary Feature\n   *\n   * Once you have installed canary, feature-flags can be activated at build-time by an environment\n   * variable or at runtime using `window.EmberDataENV`.\n   *\n   * The \"off\" branch of feature-flagged code is always stripped from production builds, so you\n   * MUST use the build-time environment variable to activate a flag if testing production.\n   *\n   * The list of available feature-flags is located [here](https://github.com/emberjs/data/tree/master/packages/canary-features/addon/default-features.ts \"List of EmberData FeatureFlags\")\n   *\n   * #### Runtime Configuration\n   *\n   * To configure feature-flags at runtime you will want to configure `window.EmberDataENV = {}` appropriately.\n   * You should add this global property in your app prior to your application booting. At the top of\n   * your `app.js` file is a convenient location, as is within ` index.html` as a script running prior\n   * to loading any other scripts.\n   *\n   * *Example activating a single feature flags*\n   *\n   * ```js\n   * window.EmberDataENV = {\n   *   FEATURES: {\n   *     RECORD_DATA_ERRORS: true,\n   *   }\n   * }\n   * ```\n   *\n   * *Example activating multiple feature flags*\n   *\n   * ```js\n   * window.EmberDataENV = {\n   *   FEATURES: {\n   *     RECORD_DATA_ERRORS: true,\n   *     RECORD_DATA_STATE: true,\n   *   }\n   * }\n   * ```\n   *\n   * *Example activating all feature flags*\n   *\n   * ```js\n   * window.EmberDataENV = {\n   *   ENABLE_OPTIONAL_FEATURES: true\n   * }\n   * ```\n   *\n   * #### Build Time Configuration\n   *\n   * *Example activating a single feature flags*\n   *\n   * ```js\n   * EMBER_DATA_FEATURE_OVERRIDE=REQUEST_SERVICE ember build\n   * ```\n   *\n   * *Example activating multiple feature flags*\n   *\n   * ```js\n   * EMBER_DATA_FEATURE_OVERRIDE=REQUEST_SERVICE,CUSTOM_MODEL_CLASS ember build\n   * ```\n   *\n   * *Example activating all feature flags*\n   *\n   * ```js\n   * EMBER_DATA_FEATURE_OVERRIDE=ENABLE_ALL_OPTIONAL ember build\n   * ```\n   *\n   * ### Preparing an Addon to use a Canary Feature\n   *\n   * For most addons and most features simple version detection should be\n   * enough. Using the provided version compatibility helpers from\n   * [ember-compatibility-helpers](https://github.com/pzuraq/ember-compatibility-helpers)\n   * the following can be done:\n   *\n   * ```js\n   * if (gte('@ember-data/store', '3.12.0')) {\n   *\n   * } else {\n   *\n   * }\n   * ```\n   *\n   * For addons needing more advanced detection [babel-plugin-debug-macros](https://github.com/ember-cli/babel-plugin-debug-macros)\n   * can be leveraged to provide code-stripping based on feature presence. For example in your addon's `index.js`:\n   *\n   * ```js\n   * function debugMacros(features) {\n   *   let plugins = [\n   *     [\n   *       require.resolve('babel-plugin-debug-macros'),\n   *       {\n   *         flags: [\n   *           {\n   *             source: '<addon-name>/feature-flags',\n   *             flags: features,\n   *           },\n   *         ],\n   *       },\n   *       '<addon-name>/canary-features-stripping',\n   *     ],\n   *   ];\n   *\n   *   return plugins;\n   * }\n   *\n   * module.exports = {\n   *   name: '<addon-name>',\n   *\n   *   init() {\n   *     this._super.init.apply(this, arguments);\n   *\n   *     let features;\n   *     try {\n   *       features = this.project.require('@ember-data/private-build-infra/src/features')();\n   *     } catch (e) {\n   *       features = { CUSTOM_MODEL_CLASS: false };\n   *     }\n   *\n   *     this.options = this.options || {};\n   *     this.options.babel = this.options.babel || {};\n   *     // this ensures that the same `@ember-data/canary-features` processing that the various\n   *     // ember-data addons do is done for this addon\n   *     this.options.babel.plugins = [...debugMacros(features)];\n   *   }\n   * }\n   * ```\n   *\n   * @module @ember-data/canary-features\n   * @main @ember-data/canary-features\n   */\n  /*\n    This list of features is used both at build time (by `@ember-data/private-build-infra`)\n    and at runtime (by `@ember-data/canary-features`).\n  \n    The valid values are:\n  \n    - true - The feature is enabled at all times, and cannot be disabled.\n    - false - The feature is disabled at all times, and cannot be enabled.\n    - null - The feature is disabled by default, but can be enabled at runtime via `EmberDataENV`.\n  */\n  var _default = _exports.default = {\n    SAMPLE_FEATURE_FLAG: null,\n    RECORD_DATA_ERRORS: null,\n    RECORD_DATA_STATE: null,\n    IDENTIFIERS: true,\n    REQUEST_SERVICE: null,\n    CUSTOM_MODEL_CLASS: null,\n    FULL_LINKS_ON_RELATIONSHIPS: true,\n    RECORD_ARRAY_MANAGER_IDENTIFIERS: true,\n    REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT: null\n  };\n});","define(\"@ember-data/canary-features/index\", [\"exports\", \"@ember-data/canary-features/default-features\"], function (_exports, _defaultFeatures) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.SAMPLE_FEATURE_FLAG = _exports.REQUEST_SERVICE = _exports.REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT = _exports.RECORD_DATA_STATE = _exports.RECORD_DATA_ERRORS = _exports.RECORD_ARRAY_MANAGER_IDENTIFIERS = _exports.IDENTIFIERS = _exports.FULL_LINKS_ON_RELATIONSHIPS = _exports.FEATURES = _exports.CUSTOM_MODEL_CLASS = void 0;\n  const ENV = typeof EmberDataENV !== 'undefined' && EmberDataENV !== null ? EmberDataENV : {};\n  function featureValue(value) {\n    if (ENV.ENABLE_OPTIONAL_FEATURES && value === null) {\n      return true;\n    }\n    return value;\n  }\n  const FEATURES = _exports.FEATURES = Ember.assign({}, _defaultFeatures.default, ENV.FEATURES);\n  const SAMPLE_FEATURE_FLAG = _exports.SAMPLE_FEATURE_FLAG = featureValue(FEATURES.SAMPLE_FEATURE_FLAG);\n  const RECORD_DATA_ERRORS = _exports.RECORD_DATA_ERRORS = featureValue(FEATURES.RECORD_DATA_ERRORS);\n  const RECORD_DATA_STATE = _exports.RECORD_DATA_STATE = featureValue(FEATURES.RECORD_DATA_STATE);\n  const REQUEST_SERVICE = _exports.REQUEST_SERVICE = featureValue(FEATURES.REQUEST_SERVICE);\n  const IDENTIFIERS = _exports.IDENTIFIERS = featureValue(FEATURES.IDENTIFIERS);\n  const CUSTOM_MODEL_CLASS = _exports.CUSTOM_MODEL_CLASS = featureValue(FEATURES.CUSTOM_MODEL_CLASS);\n  const FULL_LINKS_ON_RELATIONSHIPS = _exports.FULL_LINKS_ON_RELATIONSHIPS = featureValue(FEATURES.FULL_LINKS_ON_RELATIONSHIPS);\n  const RECORD_ARRAY_MANAGER_IDENTIFIERS = _exports.RECORD_ARRAY_MANAGER_IDENTIFIERS = featureValue(FEATURES.RECORD_ARRAY_MANAGER_IDENTIFIERS);\n  const REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT = _exports.REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT = featureValue(FEATURES.REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT);\n});","define(\"@ember-data/debug/index\", [\"exports\", \"@ember/string\", \"@ember-data/debug/setup\"], function (_exports, _string, _setup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    Implements `@ember/debug/data-adapter` with for EmberData\n    integration with the ember-inspector.\n  \n    @class InspectorDataAdapter\n    @extends DataAdapter\n    @private\n  */\n  var _default = _exports.default = Ember.DataAdapter.extend({\n    store: Ember.inject.service('store'),\n    /**\n      Specifies how records can be filtered based on the state of the record\n      Records returned will need to have a `filterValues`\n      property with a key for every name in the returned array\n       @method getFilters\n      @private\n      @return {Array} List of objects defining filters\n       The object should have a `name` and `desc` property\n    */\n    getFilters() {\n      return [{\n        name: 'isNew',\n        desc: 'New'\n      }, {\n        name: 'isModified',\n        desc: 'Modified'\n      }, {\n        name: 'isClean',\n        desc: 'Clean'\n      }];\n    },\n    _nameToClass(type) {\n      return Ember.get(this, 'store').modelFor(type);\n    },\n    /**\n      Fetch the model types and observe them for changes.\n      Maintains the list of model types without needing the Model package for detection.\n       @method watchModelTypes\n      @public\n      @param {Function} typesAdded Callback to call to add types.\n      Takes an array of objects containing wrapped types (returned from `wrapModelType`).\n      @param {Function} typesUpdated Callback to call when a type has changed.\n      Takes an array of objects containing wrapped types.\n      @return {Function} Method to call to remove all observers\n    */\n    watchModelTypes(typesAdded, typesUpdated) {\n      var store = Ember.get(this, 'store');\n      var __createRecordData = store._createRecordData;\n      var _releaseMethods = [];\n      var discoveredTypes = (0, _setup.typesMapFor)(store);\n\n      // Add any models that were added during initialization of the app, before the inspector was opened\n      discoveredTypes.forEach((_, type) => {\n        this.watchTypeIfUnseen(store, discoveredTypes, type, typesAdded, typesUpdated, _releaseMethods);\n      });\n\n      // Overwrite _createRecordData so newly added models will get added to the list\n      store._createRecordData = identifier => {\n        this.watchTypeIfUnseen(store, discoveredTypes, identifier.type, typesAdded, typesUpdated, _releaseMethods);\n        return __createRecordData.call(store, identifier);\n      };\n      var release = () => {\n        _releaseMethods.forEach(fn => fn());\n        store._createRecordData = __createRecordData;\n        // reset the list so the models can be added if the inspector is re-opened\n        // the entries are set to false instead of removed, since the models still exist in the app\n        // we just need the inspector to become aware of them\n        discoveredTypes.forEach((value, key) => {\n          discoveredTypes.set(key, false);\n        });\n        this.releaseMethods.removeObject(release);\n      };\n      this.releaseMethods.pushObject(release);\n      return release;\n    },\n    /**\n     * Loop over the discovered types and use the callbacks from watchModelTypes to notify\n     * the consumer of this adapter about the mdoels.\n     *\n     * @param {store} store\n     * @internal\n     * @param {Map} discoveredTypes\n     * @param {String} type\n     * @param {Function} typesAdded\n     * @param {Function} typesUpdated\n     * @param {Array} releaseMethods\n     */\n    watchTypeIfUnseen(store, discoveredTypes, type, typesAdded, typesUpdated, releaseMethods) {\n      if (discoveredTypes.get(type) !== true) {\n        var klass = store.modelFor(type);\n        var wrapped = this.wrapModelType(klass, type);\n        releaseMethods.push(this.observeModelType(type, typesUpdated));\n        typesAdded([wrapped]);\n        discoveredTypes.set(type, true);\n      }\n    },\n    /**\n      Creates a human readable string used for column headers\n       @method columnNameToDesc\n      @private\n      @param {String} name The attribute name\n      @return {String} Human readable string based on the attribute name\n    */\n    columnNameToDesc(name) {\n      return (0, _string.capitalize)((0, _string.underscore)(name).replace(/_/g, ' ').trim());\n    },\n    /**\n      Get the columns for a given model type\n       @method columnsForType\n      @private\n      @param {Model} typeClass\n      @return {Array} An array of columns of the following format:\n       name: {String} The name of the column\n       desc: {String} Humanized description (what would show in a table column name)\n    */\n    columnsForType(typeClass) {\n      var columns = [{\n        name: 'id',\n        desc: 'Id'\n      }];\n      var count = 0;\n      var self = this;\n      Ember.get(typeClass, 'attributes').forEach((meta, name) => {\n        if (count++ > self.attributeLimit) {\n          return false;\n        }\n        var desc = this.columnNameToDesc(name);\n        columns.push({\n          name: name,\n          desc: desc\n        });\n      });\n      return columns;\n    },\n    /**\n      Fetches all loaded records for a given type\n       @method getRecords\n      @internal\n      @param {Model} modelClass of the record\n      @param {String} modelName of the record\n      @return {Array} An array of Model records\n       This array will be observed for changes,\n       so it should update when new records are added/removed\n    */\n    getRecords(modelClass, modelName) {\n      if (arguments.length < 2) {\n        // Legacy Ember.js < 1.13 support\n        var containerKey = modelClass._debugContainerKey;\n        if (containerKey) {\n          var match = containerKey.match(/model:(.*)/);\n          if (match !== null) {\n            modelName = match[1];\n          }\n        }\n      }\n      (true && !(!!modelName) && Ember.assert('Cannot find model name. Please upgrade to Ember.js >= 1.13 for Ember Inspector support', !!modelName));\n      return this.get('store').peekAll(modelName);\n    },\n    /**\n      Gets the values for each column\n      This is the attribute values for a given record\n       @method getRecordColumnValues\n      @private\n      @param {Model} record to get values from\n      @return {Object} Keys should match column names defined by the model type\n    */\n    getRecordColumnValues(record) {\n      var count = 0;\n      var columnValues = {\n        id: Ember.get(record, 'id')\n      };\n      record.eachAttribute(key => {\n        if (count++ > this.attributeLimit) {\n          return false;\n        }\n        columnValues[key] = Ember.get(record, key);\n      });\n      return columnValues;\n    },\n    /**\n      Returns keywords to match when searching records\n       @method getRecordKeywords\n      @private\n      @param {Model} record\n      @return {Array} Relevant keywords for search based on the record's attribute values\n    */\n    getRecordKeywords(record) {\n      var keywords = [];\n      var keys = Ember.A(['id']);\n      record.eachAttribute(key => keys.push(key));\n      keys.forEach(key => keywords.push(Ember.get(record, key)));\n      return keywords;\n    },\n    /**\n      Returns the values of filters defined by `getFilters`\n      These reflect the state of the record\n       @method getRecordFilterValues\n      @private\n      @param {Model} record\n      @return {Object} The record state filter values\n    */\n    getRecordFilterValues(record) {\n      return {\n        isNew: record.get('isNew'),\n        isModified: record.get('hasDirtyAttributes') && !record.get('isNew'),\n        isClean: !record.get('hasDirtyAttributes')\n      };\n    },\n    /**\n      Returns a color that represents the record's state\n      Possible colors: black, blue, green\n       @method getRecordColor\n      @private\n      @param {Model} record\n      @return {String} The record color\n    */\n    getRecordColor(record) {\n      var color = 'black';\n      if (record.get('isNew')) {\n        color = 'green';\n      } else if (record.get('hasDirtyAttributes')) {\n        color = 'blue';\n      }\n      return color;\n    },\n    /**\n      Observes all relevant properties and re-sends the wrapped record\n      when a change occurs\n       @method observeRecord\n      @internal\n      @param {Model} record\n      @param {Function} recordUpdated Callback used to notify changes\n      @return {Function} The function to call to remove all observers\n    */\n    observeRecord(record, recordUpdated) {\n      var releaseMethods = Ember.A();\n      var keysToObserve = Ember.A(['id', 'isNew', 'hasDirtyAttributes']);\n      record.eachAttribute(key => keysToObserve.push(key));\n      var adapter = this;\n      keysToObserve.forEach(function (key) {\n        var handler = function () {\n          recordUpdated(adapter.wrapRecord(record));\n        };\n        Ember.addObserver(record, key, handler);\n        releaseMethods.push(function () {\n          Ember.removeObserver(record, key, handler);\n        });\n      });\n      var release = function () {\n        releaseMethods.forEach(fn => fn());\n      };\n      return release;\n    }\n  });\n});","define(\"@ember-data/debug/setup\", [\"exports\", \"@ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.typesMapFor = typesMapFor;\n  var StoreTypesMap = new WeakMap();\n  function typesMapFor(store) {\n    var typesMap = StoreTypesMap.get(store);\n    if (typesMap === undefined) {\n      typesMap = new Map();\n      StoreTypesMap.set(store, typesMap);\n    }\n    return typesMap;\n  }\n\n  // override _createRecordData to add the known models to the typesMap\n  var __createRecordData = _store.default.prototype._createRecordData;\n  _store.default.prototype._createRecordData = function (identifier) {\n    var typesMap = typesMapFor(this);\n    if (!typesMap.has(identifier.type)) {\n      typesMap.set(identifier.type, false);\n    }\n    return __createRecordData.call(this, identifier);\n  };\n  var _default = _exports.default = {\n    name: '@ember-data/data-adapter',\n    initialize() {}\n  };\n});","define('@ember-data/model/-private', ['exports', '@ember-data/store/-private', '@ember-data/store'], function (exports, Private, store) { 'use strict';\n\n  function isElementDescriptor(args) {\n    var [maybeTarget, maybeKey, maybeDesc] = args;\n    return (\n      // Ensure we have the right number of args\n      args.length === 3 && (\n      // Make sure the target is a class or object (prototype)\n      typeof maybeTarget === 'function' || typeof maybeTarget === 'object' && maybeTarget !== null) &&\n      // Make sure the key is a string\n      typeof maybeKey === 'string' && (\n      // Make sure the descriptor is the right shape\n      typeof maybeDesc === 'object' && maybeDesc !== null && 'enumerable' in maybeDesc && 'configurable' in maybeDesc ||\n      // TS compatibility\n      maybeDesc === undefined)\n    );\n  }\n  function computedMacroWithOptionalParams(fn) {\n    {\n      return (...maybeDesc) => isElementDescriptor(maybeDesc) ? fn()(...maybeDesc) : fn(...maybeDesc);\n    }\n  }\n\n  /**\n    @module @ember-data/model\n  */\n\n  function getDefaultValue(record, options, key) {\n    if (typeof options.defaultValue === 'function') {\n      return options.defaultValue.apply(null, arguments);\n    } else {\n      var defaultValue = options.defaultValue;\n      ( !(typeof defaultValue !== 'object' || defaultValue === null) && Ember.assert(`Non primitive defaultValues are not supported because they are shared between all instances. If you would like to use a complex object as a default value please provide a function that returns the complex object.`, typeof defaultValue !== 'object' || defaultValue === null));\n      return defaultValue;\n    }\n  }\n  function hasValue(internalModel, key) {\n    return Private.recordDataFor(internalModel).hasAttr(key);\n  }\n\n  /**\n    `attr` defines an attribute on a [Model](/ember-data/release/classes/Model).\n    By default, attributes are passed through as-is, however you can specify an\n    optional type to have the value automatically transformed.\n    Ember Data ships with four basic transform types: `string`, `number`,\n    `boolean` and `date`. You can define your own transforms by subclassing\n    [Transform](/ember-data/release/classes/Transform).\n\n    Note that you cannot use `attr` to define an attribute of `id`.\n\n    `attr` takes an optional hash as a second parameter, currently\n    supported options are:\n\n    - `defaultValue`: Pass a string or a function to be called to set the attribute\n    to a default value if and only if the key is absent from the payload response.\n\n    Example\n\n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default Model.extend({\n      username: attr('string'),\n      email: attr('string'),\n      verified: attr('boolean', { defaultValue: false })\n    });\n    ```\n\n    Default value can also be a function. This is useful it you want to return\n    a new object for each attribute.\n\n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default Model.extend({\n      username: attr('string'),\n      email: attr('string'),\n      settings: attr({\n        defaultValue() {\n          return {};\n        }\n      })\n    });\n    ```\n\n    The `options` hash is passed as second argument to a transforms'\n    `serialize` and `deserialize` method. This allows to configure a\n    transformation and adapt the corresponding value, based on the config:\n\n    ```app/models/post.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default Model.extend({\n      text: attr('text', {\n        uppercase: true\n      })\n    });\n    ```\n\n    ```app/transforms/text.js\n    import Transform from '@ember-data/serializer/transform';\n\n    export default Transform.extend({\n      serialize(value, options) {\n        if (options.uppercase) {\n          return value.toUpperCase();\n        }\n\n        return value;\n      },\n\n      deserialize(value) {\n        return value;\n      }\n    })\n    ```\n\n    @method attr\n    @public\n    @static\n    @for @ember-data/model\n    @param {String|Object} type the attribute type\n    @param {Object} options a hash of options\n    @return {Attribute}\n  */\n  function attr(type, options) {\n    if (typeof type === 'object') {\n      options = type;\n      type = undefined;\n    } else {\n      options = options || {};\n    }\n    var meta = {\n      type: type,\n      isAttribute: true,\n      kind: 'attribute',\n      options: options\n    };\n    return Ember.computed({\n      get(key) {\n        {\n          if (['_internalModel', 'recordData', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your attr on ${this.constructor.toString()}`);\n          }\n        }\n        var internalModel = this._internalModel;\n        if (hasValue(internalModel, key)) {\n          return internalModel.getAttributeValue(key);\n        } else {\n          return getDefaultValue(this, options, key);\n        }\n      },\n      set(key, value) {\n        {\n          if (['_internalModel', 'recordData', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your attr on ${this.constructor.toString()}`);\n          }\n        }\n        return this._internalModel.setDirtyAttribute(key, value);\n      }\n    }).meta(meta);\n  }\n  var attr$1 = computedMacroWithOptionalParams(attr);\n\n  /**\n    @module @ember-data/model\n  */\n\n  /**\n    `belongsTo` is used to define One-To-One and One-To-Many\n    relationships on a [Model](/ember-data/release/classes/Model).\n\n\n    `belongsTo` takes an optional hash as a second parameter, currently\n    supported options are:\n\n    - `async`: A boolean value used to explicitly declare this to be an async relationship. The default is true.\n    - `inverse`: A string used to identify the inverse property on a\n      related model in a One-To-Many relationship. See [Explicit Inverses](#explicit-inverses)\n    - `polymorphic` A boolean value to mark the relationship as polymorphic\n\n    #### One-To-One\n    To declare a one-to-one relationship between two models, use\n    `belongsTo`:\n\n    ```app/models/user.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      profile: belongsTo('profile')\n    });\n    ```\n\n    ```app/models/profile.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      user: belongsTo('user')\n    });\n    ```\n\n    #### One-To-Many\n    To declare a one-to-many relationship between two models, use\n    `belongsTo` in combination with `hasMany`, like this:\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      comments: hasMany('comment')\n    });\n    ```\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      post: belongsTo('post')\n    });\n    ```\n\n    You can avoid passing a string as the first parameter. In that case Ember Data\n    will infer the type from the key name.\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      post: belongsTo()\n    });\n    ```\n\n    will lookup for a Post type.\n\n    #### Sync relationships\n\n    Ember Data resolves sync relationships with the related resources\n    available in its local store, hence it is expected these resources\n    to be loaded before or along-side the primary resource.\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      post: belongsTo('post', {\n        async: false\n      })\n    });\n    ```\n\n    In contrast to async relationship, accessing a sync relationship\n    will always return the record (Model instance) for the existing\n    local resource, or null. But it will error on access when\n    a related resource is known to exist and it has not been loaded.\n\n    ```\n    let post = comment.get('post');\n\n    ```\n\n    @method belongsTo\n    @public\n    @static\n    @for @ember-data/model\n    @param {String} modelName (optional) type of the relationship\n    @param {Object} options (optional) a hash of options\n    @return {Ember.computed} relationship\n  */\n  function belongsTo(modelName, options) {\n    var opts, userEnteredModelName;\n    if (typeof modelName === 'object') {\n      opts = modelName;\n      userEnteredModelName = undefined;\n    } else {\n      opts = options;\n      userEnteredModelName = modelName;\n    }\n    if (typeof userEnteredModelName === 'string') {\n      userEnteredModelName = store.normalizeModelName(userEnteredModelName);\n    }\n    ( !(typeof userEnteredModelName === 'string' || typeof userEnteredModelName === 'undefined') && Ember.assert('The first argument to belongsTo must be a string representing a model type key, not an instance of ' + Ember.inspect(userEnteredModelName) + \". E.g., to define a relation to the Person model, use belongsTo('person')\", typeof userEnteredModelName === 'string' || typeof userEnteredModelName === 'undefined'));\n    opts = opts || {};\n    var meta = {\n      type: userEnteredModelName,\n      isRelationship: true,\n      options: opts,\n      kind: 'belongsTo',\n      name: 'Belongs To',\n      key: null\n    };\n    return Ember.computed({\n      get(key) {\n        {\n          if (['_internalModel', 'recordData', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your belongsTo on ${this.constructor.toString()}`);\n          }\n          if (Object.prototype.hasOwnProperty.call(opts, 'serialize')) {\n            ( Ember.warn(`You provided a serialize option on the \"${key}\" property in the \"${this._internalModel.modelName}\" class, this belongs in the serializer. See Serializer and it's implementations https://api.emberjs.com/ember-data/release/classes/Serializer`, false, {\n              id: 'ds.model.serialize-option-in-belongs-to'\n            }));\n          }\n          if (Object.prototype.hasOwnProperty.call(opts, 'embedded')) {\n            ( Ember.warn(`You provided an embedded option on the \"${key}\" property in the \"${this._internalModel.modelName}\" class, this belongs in the serializer. See EmbeddedRecordsMixin https://api.emberjs.com/ember-data/release/classes/EmbeddedRecordsMixin`, false, {\n              id: 'ds.model.embedded-option-in-belongs-to'\n            }));\n          }\n        }\n        return this._internalModel.getBelongsTo(key);\n      },\n      set(key, value) {\n        {\n          if (['_internalModel', 'recordData', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your belongsTo on ${this.constructor.toString()}`);\n          }\n        }\n        this._internalModel.setDirtyBelongsTo(key, value);\n        return this._internalModel.getBelongsTo(key);\n      }\n    }).meta(meta);\n  }\n  var belongsTo$1 = computedMacroWithOptionalParams(belongsTo);\n\n  /**\n    @module @ember-data/model\n  */\n\n  /**\n    `hasMany` is used to define One-To-Many and Many-To-Many\n    relationships on a [Model](/ember-data/release/classes/Model).\n\n    `hasMany` takes an optional hash as a second parameter, currently\n    supported options are:\n\n    - `async`: A boolean value used to explicitly declare this to be an async relationship. The default is true.\n    - `inverse`: A string used to identify the inverse property on a related model.\n    - `polymorphic` A boolean value to mark the relationship as polymorphic\n\n    #### One-To-Many\n    To declare a one-to-many relationship between two models, use\n    `belongsTo` in combination with `hasMany`, like this:\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      comments: hasMany('comment')\n    });\n    ```\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      post: belongsTo('post')\n    });\n    ```\n\n    #### Many-To-Many\n    To declare a many-to-many relationship between two models, use\n    `hasMany`:\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      tags: hasMany('tag')\n    });\n    ```\n\n    ```app/models/tag.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      posts: hasMany('post')\n    });\n    ```\n\n    You can avoid passing a string as the first parameter. In that case Ember Data\n    will infer the type from the singularized key name.\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      tags: hasMany()\n    });\n    ```\n\n    will lookup for a Tag type.\n\n    #### Explicit Inverses\n\n    Ember Data will do its best to discover which relationships map to\n    one another. In the one-to-many code above, for example, Ember Data\n    can figure out that changing the `comments` relationship should update\n    the `post` relationship on the inverse because post is the only\n    relationship to that model.\n\n    However, sometimes you may have multiple `belongsTo`/`hasMany` for the\n    same type. You can specify which property on the related model is\n    the inverse using `hasMany`'s `inverse` option:\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      onePost: belongsTo('post'),\n      twoPost: belongsTo('post'),\n      redPost: belongsTo('post'),\n      bluePost: belongsTo('post')\n    });\n    ```\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      comments: hasMany('comment', {\n        inverse: 'redPost'\n      })\n    });\n    ```\n\n    You can also specify an inverse on a `belongsTo`, which works how\n    you'd expect.\n\n    #### Sync relationships\n\n    Ember Data resolves sync relationships with the related resources\n    available in its local store, hence it is expected these resources\n    to be loaded before or along-side the primary resource.\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      comments: hasMany('comment', {\n        async: false\n      })\n    });\n    ```\n\n    In contrast to async relationship, accessing a sync relationship\n    will always return a [ManyArray](/ember-data/release/classes/ManyArray) instance\n    containing the existing local resources. But it will error on access\n    when any of the known related resources have not been loaded.\n\n    ```\n    post.get('comments').forEach((comment) => {\n\n    });\n\n    ```\n\n    If you are using `links` with sync relationships, you have to use\n    `ref.reload` to fetch the resources.\n\n    @method hasMany\n    @public\n    @static\n    @for @ember-data/model\n    @param {String} type (optional) type of the relationship\n    @param {Object} options (optional) a hash of options\n    @return {Ember.computed} relationship\n  */\n  function hasMany(type, options) {\n    if (typeof type === 'object') {\n      options = type;\n      type = undefined;\n    }\n    ( !(typeof type === 'string' || typeof type === 'undefined') && Ember.assert(`The first argument to hasMany must be a string representing a model type key, not an instance of ${Ember.inspect(type)}. E.g., to define a relation to the Comment model, use hasMany('comment')`, typeof type === 'string' || typeof type === 'undefined'));\n    options = options || {};\n    if (typeof type === 'string') {\n      type = store.normalizeModelName(type);\n    }\n\n    // Metadata about relationships is stored on the meta of\n    // the relationship. This is used for introspection and\n    // serialization. Note that `key` is populated lazily\n    // the first time the CP is called.\n    var meta = {\n      type,\n      options,\n      isRelationship: true,\n      kind: 'hasMany',\n      name: 'Has Many',\n      key: null\n    };\n    return Ember.computed({\n      get(key) {\n        {\n          if (['_internalModel', 'recordData', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your hasMany on ${this.constructor.toString()}`);\n          }\n        }\n        return this._internalModel.getHasMany(key);\n      },\n      set(key, records) {\n        {\n          if (['_internalModel', 'recordData', 'currentState'].indexOf(key) !== -1) {\n            throw new Error(`'${key}' is a reserved property name on instances of classes extending Model. Please choose a different property name for your hasMany on ${this.constructor.toString()}`);\n          }\n        }\n        var internalModel = this._internalModel;\n        internalModel.setDirtyHasMany(key, records);\n        return internalModel.getHasMany(key);\n      }\n    }).meta(meta);\n  }\n  var hasMany$1 = computedMacroWithOptionalParams(hasMany);\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    Holds validation errors for a given record, organized by attribute names.\n\n    Every `Model` has an `errors` property that is an instance of\n    `Errors`. This can be used to display validation error\n    messages returned from the server when a `record.save()` rejects.\n\n    For Example, if you had a `User` model that looked like this:\n\n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default Model.extend({\n      username: attr('string'),\n      email: attr('string')\n    });\n    ```\n    And you attempted to save a record that did not validate on the backend:\n\n    ```javascript\n    let user = store.createRecord('user', {\n      username: 'tomster',\n      email: 'invalidEmail'\n    });\n    user.save();\n    ```\n\n    Your backend would be expected to return an error response that described\n    the problem, so that error messages can be generated on the app.\n\n    API responses will be translated into instances of `Errors` differently,\n    depending on the specific combination of adapter and serializer used. You\n    may want to check the documentation or the source code of the libraries\n    that you are using, to know how they expect errors to be communicated.\n\n    Errors can be displayed to the user by accessing their property name\n    to get an array of all the error objects for that property. Each\n    error object is a JavaScript object with two keys:\n\n    - `message` A string containing the error message from the backend\n    - `attribute` The name of the property associated with this error message\n\n    ```handlebars\n    <label>Username: {{input value=username}} </label>\n    {{#each model.errors.username as |error|}}\n      <div class=\"error\">\n        {{error.message}}\n      </div>\n    {{/each}}\n\n    <label>Email: {{input value=email}} </label>\n    {{#each model.errors.email as |error|}}\n      <div class=\"error\">\n        {{error.message}}\n      </div>\n    {{/each}}\n    ```\n\n    You can also access the special `messages` property on the error\n    object to get an array of all the error strings.\n\n    ```handlebars\n    {{#each model.errors.messages as |message|}}\n      <div class=\"error\">\n        {{message}}\n      </div>\n    {{/each}}\n    ```\n\n    @class Errors\n    @extends ArrayProxy\n    @uses Evented\n   */\n  var Errors = Ember.ArrayProxy.extend(Private.DeprecatedEvented, {\n    /**\n      Register with target handler\n       @method _registerHandlers\n      @private\n    */\n    _registerHandlers(becameInvalid, becameValid) {\n      this._registeredHandlers = {\n        becameInvalid,\n        becameValid\n      };\n    },\n    /**\n      @property errorsByAttributeName\n      @type {MapWithDefault}\n      @private\n    */\n    errorsByAttributeName: Ember.computed(function () {\n      return new Map();\n    }),\n    /**\n      Returns errors for a given attribute\n       ```javascript\n      let user = store.createRecord('user', {\n        username: 'tomster',\n        email: 'invalidEmail'\n      });\n      user.save().catch(function(){\n        user.get('errors').errorsFor('email'); // returns:\n        // [{attribute: \"email\", message: \"Doesn't look like a valid email.\"}]\n      });\n      ```\n       @method errorsFor\n      @param {String} attribute\n      @return {Array}\n    */\n    errorsFor(attribute) {\n      var map = Ember.get(this, 'errorsByAttributeName');\n      var errors = map.get(attribute);\n      if (errors === undefined) {\n        errors = Ember.A();\n        map.set(attribute, errors);\n      }\n\n      // Errors may be a native array with extensions turned on. Since we access\n      // the array via a method, and not a computed or using `Ember.get`, it does\n      // not entangle properly with autotracking, so we entangle manually by\n      // getting the `[]` property.\n      Ember.get(errors, '[]');\n      return errors;\n    },\n    /**\n      An array containing all of the error messages for this\n      record. This is useful for displaying all errors to the user.\n       ```handlebars\n      {{#each model.errors.messages as |message|}}\n        <div class=\"error\">\n          {{message}}\n        </div>\n      {{/each}}\n      ```\n       @property messages\n      @type {Array}\n    */\n    messages: Ember.computed.mapBy('content', 'message'),\n    /**\n      @property content\n      @type {Array}\n      @private\n    */\n    content: Ember.computed(function () {\n      return Ember.A();\n    }),\n    /**\n      @method unknownProperty\n      @private\n    */\n    unknownProperty(attribute) {\n      var errors = this.errorsFor(attribute);\n      if (errors.length === 0) {\n        return undefined;\n      }\n      return errors;\n    },\n    /**\n      Total number of errors.\n       @property length\n      @type {Number}\n      @readOnly\n    */\n\n    /**\n      @property isEmpty\n      @type {Boolean}\n      @readOnly\n    */\n    isEmpty: Ember.computed.not('length').readOnly(),\n    /**\n     Manually adds errors to the record. This will trigger the `becameInvalid` event/ lifecycle method on\n      the record and transition the record into an `invalid` state.\n      Example\n     ```javascript\n      let errors = get(user, 'errors');\n       // add multiple errors\n      errors.add('password', [\n        'Must be at least 12 characters',\n        'Must contain at least one symbol',\n        'Cannot contain your name'\n      ]);\n       errors.errorsFor('password');\n      // =>\n      // [\n      //   { attribute: 'password', message: 'Must be at least 12 characters' },\n      //   { attribute: 'password', message: 'Must contain at least one symbol' },\n      //   { attribute: 'password', message: 'Cannot contain your name' },\n      // ]\n       // add a single error\n      errors.add('username', 'This field is required');\n       errors.errorsFor('password');\n      // =>\n      // [\n      //   { attribute: 'username', message: 'This field is required' },\n      // ]\n     ```\n    @method add\n    @param {string} attribute - the property name of an attribute or relationship\n    @param {string[]|string} messages - an error message or array of error messages for the attribute\n     */\n    add(attribute, messages) {\n      var wasEmpty = Ember.get(this, 'isEmpty');\n      this._add(attribute, messages);\n      if (wasEmpty && !Ember.get(this, 'isEmpty')) {\n        this._registeredHandlers && this._registeredHandlers.becameInvalid();\n        if ( this._has('becameInvalid')) {\n          this.trigger('becameInvalid');\n        }\n      }\n    },\n    /**\n      Adds error messages to a given attribute without sending event.\n       @method _add\n      @private\n    */\n    _add(attribute, messages) {\n      messages = this._findOrCreateMessages(attribute, messages);\n      this.addObjects(messages);\n      this.errorsFor(attribute).addObjects(messages);\n      this.notifyPropertyChange(attribute);\n    },\n    /**\n      @method _findOrCreateMessages\n      @private\n    */\n    _findOrCreateMessages(attribute, messages) {\n      var errors = this.errorsFor(attribute);\n      var messagesArray = Ember.makeArray(messages);\n      var _messages = new Array(messagesArray.length);\n      for (var i = 0; i < messagesArray.length; i++) {\n        var message = messagesArray[i];\n        var err = errors.findBy('message', message);\n        if (err) {\n          _messages[i] = err;\n        } else {\n          _messages[i] = {\n            attribute: attribute,\n            message: message\n          };\n        }\n      }\n      return _messages;\n    },\n    /**\n     Manually removes all errors for a given member from the record.\n       This will transition the record into a `valid` state, and\n      triggers the `becameValid` event and lifecycle method.\n      Example:\n      ```javascript\n      let errors = get('user', errors);\n      errors.add('phone', ['error-1', 'error-2']);\n       errors.errorsFor('phone');\n      // =>\n      // [\n      //   { attribute: 'phone', message: 'error-1' },\n      //   { attribute: 'phone', message: 'error-2' },\n      // ]\n       errors.remove('phone');\n       errors.errorsFor('phone');\n      // => undefined\n     ```\n     @method remove\n     @param {string} member - the property name of an attribute or relationship\n     */\n    remove(attribute) {\n      if (Ember.get(this, 'isEmpty')) {\n        return;\n      }\n      this._remove(attribute);\n      if (Ember.get(this, 'isEmpty')) {\n        this._registeredHandlers && this._registeredHandlers.becameValid();\n        if ( this._has('becameValid')) {\n          this.trigger('becameValid');\n        }\n      }\n    },\n    /**\n      Removes all error messages from the given attribute without sending event.\n       @method _remove\n      @private\n    */\n    _remove(attribute) {\n      if (Ember.get(this, 'isEmpty')) {\n        return;\n      }\n      var content = this.rejectBy('attribute', attribute);\n      Ember.get(this, 'content').setObjects(content);\n\n      // Although errorsByAttributeName.delete is technically enough to sync errors state, we also\n      // must mutate the array as well for autotracking\n      var errors = this.errorsFor(attribute);\n      for (var i = 0; i < errors.length; i++) {\n        if (errors[i].attribute === attribute) {\n          // .replace from Ember.NativeArray is necessary. JS splice will not work.\n          errors.replace(i, 1);\n        }\n      }\n      Ember.get(this, 'errorsByAttributeName').delete(attribute);\n      this.notifyPropertyChange(attribute);\n      this.notifyPropertyChange('length');\n    },\n    /**\n     Manually clears all errors for the record.\n       This will transition the record into a `valid` state, and\n       will trigger the `becameValid` event and lifecycle method.\n     Example:\n      ```javascript\n     let errors = get('user', errors);\n     errors.add('username', ['error-a']);\n     errors.add('phone', ['error-1', 'error-2']);\n      errors.errorsFor('username');\n     // =>\n     // [\n     //   { attribute: 'username', message: 'error-a' },\n     // ]\n      errors.errorsFor('phone');\n     // =>\n     // [\n     //   { attribute: 'phone', message: 'error-1' },\n     //   { attribute: 'phone', message: 'error-2' },\n     // ]\n      errors.clear();\n      errors.errorsFor('username');\n     // => undefined\n      errors.errorsFor('phone');\n     // => undefined\n      errors.get('messages')\n     // => []\n     ```\n     @method remove\n     */\n    clear() {\n      if (Ember.get(this, 'isEmpty')) {\n        return;\n      }\n      this._clear();\n      this._registeredHandlers && this._registeredHandlers.becameValid();\n      if ( this._has('becameValid')) {\n        this.trigger('becameValid');\n      }\n    },\n    /**\n      Removes all error messages.\n      to the record.\n       @method _clear\n      @private\n    */\n    _clear() {\n      if (Ember.get(this, 'isEmpty')) {\n        return;\n      }\n      var errorsByAttributeName = Ember.get(this, 'errorsByAttributeName');\n      var attributes = [];\n      errorsByAttributeName.forEach(function (_, attribute) {\n        attributes.push(attribute);\n      });\n      errorsByAttributeName.clear();\n      attributes.forEach(attribute => {\n        this.notifyPropertyChange(attribute);\n      });\n      Ember.ArrayProxy.prototype.clear.call(this);\n    },\n    /**\n      Checks if there are error messages for the given attribute.\n       ```app/routes/user/edit.js\n      import Route from '@ember/routing/route';\n       export default Route.extend({\n        actions: {\n          save: function(user) {\n            if (user.get('errors').has('email')) {\n              return alert('Please update your email before attempting to save.');\n            }\n            user.save();\n          }\n        }\n      });\n      ```\n       @method has\n      @param {String} attribute\n      @return {Boolean} true if there some errors on given attribute\n    */\n    has(attribute) {\n      return this.errorsFor(attribute).length > 0;\n    }\n  });\n\n  /**\n    @module @ember-data/model\n  */\n\n  var relationshipsDescriptor = Ember.computed(function () {\n    var map = new Map();\n    var relationshipsByName = Ember.get(this, 'relationshipsByName');\n\n    // Loop through each computed property on the class\n    relationshipsByName.forEach(desc => {\n      var {\n        type\n      } = desc;\n      if (!map.has(type)) {\n        map.set(type, []);\n      }\n      map.get(type).push(desc);\n    });\n    return map;\n  }).readOnly();\n  var relatedTypesDescriptor = Ember.computed(function () {\n    var parentModelName = this.modelName;\n    var types = Ember.A();\n\n    // Loop through each computed property on the class,\n    // and create an array of the unique types involved\n    // in relationships\n    this.eachComputedProperty((name, meta) => {\n      if (meta.isRelationship) {\n        meta.key = name;\n        var modelName = Private.typeForRelationshipMeta(meta);\n        ( !(modelName) && Ember.assert(`You specified a hasMany (${meta.type}) on ${parentModelName} but ${meta.type} was not found.`, modelName));\n        if (!types.includes(modelName)) {\n          ( !(!!modelName) && Ember.assert(`Trying to sideload ${name} on ${this.toString()} but the type doesn't exist.`, !!modelName));\n          types.push(modelName);\n        }\n      }\n    });\n    return types;\n  }).readOnly();\n  var relationshipsObjectDescriptor = Ember.computed(function () {\n    var relationships = Object.create(null);\n    var modelName = this.modelName;\n    this.eachComputedProperty((name, meta) => {\n      if (meta.isRelationship) {\n        meta.key = name;\n        meta.name = name;\n        meta.parentModelName = modelName;\n        relationships[name] = Private.relationshipFromMeta(meta);\n      }\n    });\n    return relationships;\n  });\n  var relationshipsByNameDescriptor = Ember.computed(function () {\n    var map = new Map();\n    var rels = Ember.get(this, 'relationshipsObject');\n    var relationships = Object.keys(rels);\n    for (var i = 0; i < relationships.length; i++) {\n      var key = relationships[i];\n      var value = rels[key];\n      map.set(value.key, value);\n    }\n    return map;\n  }).readOnly();\n\n  var {\n    changeProperties\n  } = Ember;\n  function findPossibleInverses(type, inverseType, name, relationshipsSoFar) {\n    var possibleRelationships = relationshipsSoFar || [];\n    var relationshipMap = Ember.get(inverseType, 'relationships');\n    if (!relationshipMap) {\n      return possibleRelationships;\n    }\n    var relationshipsForType = relationshipMap.get(type.modelName);\n    var relationships = Array.isArray(relationshipsForType) ? relationshipsForType.filter(relationship => {\n      var optionsForRelationship = inverseType.metaForProperty(relationship.name).options;\n      if (!optionsForRelationship.inverse && optionsForRelationship.inverse !== null) {\n        return true;\n      }\n      return name === optionsForRelationship.inverse;\n    }) : null;\n    if (relationships) {\n      possibleRelationships.push.apply(possibleRelationships, relationships);\n    }\n\n    //Recurse to support polymorphism\n    if (type.superclass) {\n      findPossibleInverses(type.superclass, inverseType, name, possibleRelationships);\n    }\n    return possibleRelationships;\n  }\n  var retrieveFromCurrentState = Ember.computed('currentState', function (key) {\n    return Ember.get(this._internalModel.currentState, key);\n  }).readOnly();\n  var isValidRecordData = Ember.computed('errors.length', function (key) {\n    return !(this.get('errors.length') > 0);\n  }).readOnly();\n  var isValid =  retrieveFromCurrentState;\n  var isDeletedCP;\n  {\n    isDeletedCP = retrieveFromCurrentState;\n  }\n  var isNewCP;\n  {\n    isNewCP = retrieveFromCurrentState;\n  }\n  var adapterError;\n  {\n    adapterError = null;\n  }\n  var isError;\n  {\n    isError = false;\n  }\n  var isReloading;\n  {\n    isReloading = false;\n  }\n\n  /**\n    @class Model\n    @module @ember-data/model\n    @extends EmberObject\n    @uses EmberData.DeprecatedEvented\n  */\n  var Model = Ember.Object.extend(Private.DeprecatedEvented, {\n    init() {\n      this._super(...arguments);\n      {\n        if (!this._internalModel) {\n          throw new Ember.Error('You should not call `create` on a model. Instead, call `store.createRecord` with the attributes you would like to set.');\n        }\n      }\n    },\n    _notifyNetworkChanges: function () {\n      {\n        ['isValid'].forEach(key => this.notifyPropertyChange(key));\n      }\n    },\n    /**\n      If this property is `true` the record is in the `empty`\n      state. Empty is the first state all records enter after they have\n      been created. Most records created by the store will quickly\n      transition to the `loading` state if data needs to be fetched from\n      the server or the `created` state if the record is created on the\n      client. A record can also enter the empty state if the adapter is\n      unable to locate the record.\n       @property isEmpty\n      @type {Boolean}\n      @readOnly\n    */\n    isEmpty: retrieveFromCurrentState,\n    /**\n      If this property is `true` the record is in the `loading` state. A\n      record enters this state when the store asks the adapter for its\n      data. It remains in this state until the adapter provides the\n      requested data.\n       @property isLoading\n      @type {Boolean}\n      @readOnly\n    */\n    isLoading: retrieveFromCurrentState,\n    /**\n      If this property is `true` the record is in the `loaded` state. A\n      record enters this state when its data is populated. Most of a\n      record's lifecycle is spent inside substates of the `loaded`\n      state.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('isLoaded'); // true\n       store.findRecord('model', 1).then(function(model) {\n        model.get('isLoaded'); // true\n      });\n      ```\n       @property isLoaded\n      @type {Boolean}\n      @readOnly\n    */\n    isLoaded: retrieveFromCurrentState,\n    /**\n      If this property is `true` the record is in the `dirty` state. The\n      record has local changes that have not yet been saved by the\n      adapter. This includes records that have been created (but not yet\n      saved) or deleted.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('hasDirtyAttributes'); // true\n       store.findRecord('model', 1).then(function(model) {\n        model.get('hasDirtyAttributes'); // false\n        model.set('foo', 'some value');\n        model.get('hasDirtyAttributes'); // true\n      });\n      ```\n       @since 1.13.0\n      @property hasDirtyAttributes\n      @type {Boolean}\n      @readOnly\n    */\n    hasDirtyAttributes: Ember.computed('currentState.isDirty', function () {\n      return this.get('currentState.isDirty');\n    }),\n    /**\n      If this property is `true` the record is in the `saving` state. A\n      record enters the saving state when `save` is called, but the\n      adapter has not yet acknowledged that the changes have been\n      persisted to the backend.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('isSaving'); // false\n      let promise = record.save();\n      record.get('isSaving'); // true\n      promise.then(function() {\n        record.get('isSaving'); // false\n      });\n      ```\n       @property isSaving\n      @type {Boolean}\n      @readOnly\n    */\n    isSaving: retrieveFromCurrentState,\n    /**\n      If this property is `true` the record is in the `deleted` state\n      and has been marked for deletion. When `isDeleted` is true and\n      `hasDirtyAttributes` is true, the record is deleted locally but the deletion\n      was not yet persisted. When `isSaving` is true, the change is\n      in-flight. When both `hasDirtyAttributes` and `isSaving` are false, the\n      change has persisted.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('isDeleted');    // false\n      record.deleteRecord();\n       // Locally deleted\n      record.get('isDeleted');           // true\n      record.get('hasDirtyAttributes');  // true\n      record.get('isSaving');            // false\n       // Persisting the deletion\n      let promise = record.save();\n      record.get('isDeleted');    // true\n      record.get('isSaving');     // true\n       // Deletion Persisted\n      promise.then(function() {\n        record.get('isDeleted');          // true\n        record.get('isSaving');           // false\n        record.get('hasDirtyAttributes'); // false\n      });\n      ```\n       @property isDeleted\n      @type {Boolean}\n      @readOnly\n    */\n    isDeleted: isDeletedCP,\n    /**\n      If this property is `true` the record is in the `new` state. A\n      record will be in the `new` state when it has been created on the\n      client and the adapter has not yet report that it was successfully\n      saved.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('isNew'); // true\n       record.save().then(function(model) {\n        model.get('isNew'); // false\n      });\n      ```\n       @property isNew\n      @type {Boolean}\n      @readOnly\n    */\n    isNew: isNewCP,\n    /**\n      If this property is `true` the record is in the `valid` state.\n       A record will be in the `valid` state when the adapter did not report any\n      server-side validation failures.\n       @property isValid\n      @type {Boolean}\n      @readOnly\n    */\n    isValid: isValid,\n    _markInvalidRequestAsClean() {\n    },\n    /**\n      If the record is in the dirty state this property will report what\n      kind of change has caused it to move into the dirty\n      state. Possible values are:\n       - `created` The record has been created by the client and not yet saved to the adapter.\n      - `updated` The record has been updated by the client and not yet saved to the adapter.\n      - `deleted` The record has been deleted by the client and not yet saved to the adapter.\n       Example\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('dirtyType'); // 'created'\n      ```\n       @property dirtyType\n      @type {String}\n      @readOnly\n    */\n    dirtyType: retrieveFromCurrentState,\n    /**\n      If `true` the adapter reported that it was unable to save local\n      changes to the backend for any reason other than a server-side\n      validation error.\n       Example\n       ```javascript\n      record.get('isError'); // false\n      record.set('foo', 'valid value');\n      record.save().then(null, function() {\n        record.get('isError'); // true\n      });\n      ```\n       @property isError\n      @type {Boolean}\n      @readOnly\n    */\n    isError: isError,\n    _markErrorRequestAsClean() {\n      this._errorRequests = [];\n      this._lastError = null;\n      this._notifyNetworkChanges();\n    },\n    /**\n      If `true` the store is attempting to reload the record from the adapter.\n       Example\n       ```javascript\n      record.get('isReloading'); // false\n      record.reload();\n      record.get('isReloading'); // true\n      ```\n       @property isReloading\n      @type {Boolean}\n      @readOnly\n    */\n    isReloading: isReloading,\n    /**\n      All ember models have an id property. This is an identifier\n      managed by an external source. These are always coerced to be\n      strings before being used internally. Note when declaring the\n      attributes for a model it is an error to declare an id\n      attribute.\n       ```javascript\n      let record = store.createRecord('model');\n      record.get('id'); // null\n       store.findRecord('model', 1).then(function(model) {\n        model.get('id'); // '1'\n      });\n      ```\n       @property id\n      @type {String}\n    */\n\n    /**\n      @property currentState\n      @private\n      @type {Object}\n    */\n    currentState: Private.RootState.empty,\n    // defined here to avoid triggering setUnknownProperty\n\n    /**\n     @property _internalModel\n     @private\n     @type {Object}\n     */\n    _internalModel: null,\n    // defined here to avoid triggering setUnknownProperty\n\n    /**\n     @property recordData\n     @private\n     @type undefined (reserved)\n     */\n    // will be defined here to avoid triggering setUnknownProperty\n\n    /**\n     @property store\n     */\n    store: null,\n    // defined here to avoid triggering setUnknownProperty\n\n    /**\n      When the record is in the `invalid` state this object will contain\n      any errors returned by the adapter. When present the errors hash\n      contains keys corresponding to the invalid property names\n      and values which are arrays of Javascript objects with two keys:\n       - `message` A string containing the error message from the backend\n      - `attribute` The name of the property associated with this error message\n       ```javascript\n      record.get('errors.length'); // 0\n      record.set('foo', 'invalid value');\n      record.save().catch(function() {\n        record.get('errors').get('foo');\n        // [{message: 'foo should be a number.', attribute: 'foo'}]\n      });\n      ```\n       The `errors` property us useful for displaying error messages to\n      the user.\n       ```handlebars\n      <label>Username: {{input value=username}} </label>\n      {{#each model.errors.username as |error|}}\n        <div class=\"error\">\n          {{error.message}}\n        </div>\n      {{/each}}\n      <label>Email: {{input value=email}} </label>\n      {{#each model.errors.email as |error|}}\n        <div class=\"error\">\n          {{error.message}}\n        </div>\n      {{/each}}\n      ```\n        You can also access the special `messages` property on the error\n      object to get an array of all the error strings.\n       ```handlebars\n      {{#each model.errors.messages as |message|}}\n        <div class=\"error\">\n          {{message}}\n        </div>\n      {{/each}}\n      ```\n       @property errors\n      @type {Errors}\n    */\n    errors: Ember.computed(function () {\n      var errors = Errors.create();\n      errors._registerHandlers(() => {\n        this.send('becameInvalid');\n      }, () => {\n        this.send('becameValid');\n      });\n      return errors;\n    }).readOnly(),\n    invalidErrorsChanged(jsonApiErrors) {\n    },\n    _addErrorMessageToAttribute(attribute, message) {\n      this.get('errors')._add(attribute, message);\n    },\n    _clearErrorMessages() {\n      this.get('errors')._clear();\n    },\n    /**\n      This property holds the `AdapterError` object with which\n      last adapter operation was rejected.\n       @property adapterError\n      @type {AdapterError}\n    */\n    adapterError: adapterError,\n    /**\n      Create a JSON representation of the record, using the serialization\n      strategy of the store's adapter.\n      `serialize` takes an optional hash as a parameter, currently\n      supported options are:\n      - `includeId`: `true` if the record's ID should be included in the\n        JSON representation.\n       @method serialize\n      @param {Object} options\n      @return {Object} an object whose values are primitive JSON values only\n    */\n    serialize(options) {\n      return this._internalModel.createSnapshot().serialize(options);\n    },\n    /**\n      Fired when the record is ready to be interacted with,\n      that is either loaded from the server or created locally.\n       @event ready\n    */\n    ready: null,\n    /**\n      Fired when the record is loaded from the server.\n       @event didLoad\n    */\n    didLoad: null,\n    /**\n      Fired when the record is updated.\n       @event didUpdate\n    */\n    didUpdate: null,\n    /**\n      Fired when a new record is commited to the server.\n       @event didCreate\n    */\n    didCreate: null,\n    /**\n      Fired when the record is deleted.\n       @event didDelete\n    */\n    didDelete: null,\n    /**\n      Fired when the record becomes invalid.\n       @event becameInvalid\n    */\n    becameInvalid: null,\n    /**\n      Fired when the record enters the error state.\n       @event becameError\n    */\n    becameError: null,\n    /**\n      Fired when the record is rolled back.\n       @event rolledBack\n    */\n    rolledBack: null,\n    //TODO Do we want to deprecate these?\n    /**\n      @method send\n      @private\n      @param {String} name\n      @param {Object} context\n    */\n    send(name, context) {\n      return this._internalModel.send(name, context);\n    },\n    /**\n      @method transitionTo\n      @private\n      @param {String} name\n    */\n    transitionTo(name) {\n      return this._internalModel.transitionTo(name);\n    },\n    /**\n      Marks the record as deleted but does not save it. You must call\n      `save` afterwards if you want to persist it. You might use this\n      method if you want to allow the user to still `rollbackAttributes()`\n      after a delete was made.\n       Example\n       ```app/routes/model/delete.js\n      import Route from '@ember/routing/route';\n       export default Route.extend({\n        actions: {\n          softDelete() {\n            this.get('controller.model').deleteRecord();\n          },\n          confirm() {\n            this.get('controller.model').save();\n          },\n          undo() {\n            this.get('controller.model').rollbackAttributes();\n          }\n        }\n      });\n      ```\n       @method deleteRecord\n    */\n    deleteRecord() {\n      this._internalModel.deleteRecord();\n    },\n    /**\n      Same as `deleteRecord`, but saves the record immediately.\n       Example\n       ```app/routes/model/delete.js\n      import Route from '@ember/routing/route';\n       export default Route.extend({\n        actions: {\n          delete() {\n            this.get('controller.model').destroyRecord().then(function() {\n              controller.transitionToRoute('model.index');\n            });\n          }\n        }\n      });\n      ```\n       If you pass an object on the `adapterOptions` property of the options\n      argument it will be passed to your adapter via the snapshot\n       ```js\n      record.destroyRecord({ adapterOptions: { subscribe: false } });\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default MyCustomAdapter.extend({\n        deleteRecord(store, type, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      });\n      ```\n       @method destroyRecord\n      @param {Object} options\n      @return {Promise} a promise that will be resolved when the adapter returns\n      successfully or rejected if the adapter returns with an error.\n    */\n    destroyRecord(options) {\n      this.deleteRecord();\n      return this.save(options);\n    },\n    /**\n      Unloads the record from the store. This will not send a delete request\n      to your server, it just unloads the record from memory.\n       @method unloadRecord\n    */\n    unloadRecord() {\n      if (this.isDestroyed) {\n        return;\n      }\n      this._internalModel.unloadRecord();\n    },\n    /**\n      @method _notifyProperties\n      @private\n    */\n    _notifyProperties(keys) {\n      // changeProperties defers notifications until after the delegate\n      // and protects with a try...finally block\n      // previously used begin...endPropertyChanges but this is private API\n      changeProperties(() => {\n        var key;\n        for (var i = 0, length = keys.length; i < length; i++) {\n          key = keys[i];\n          this.notifyPropertyChange(key);\n        }\n      });\n    },\n    /**\n      Returns an object, whose keys are changed properties, and value is\n      an [oldProp, newProp] array.\n       The array represents the diff of the canonical state with the local state\n      of the model. Note: if the model is created locally, the canonical state is\n      empty since the adapter hasn't acknowledged the attributes yet:\n       Example\n       ```app/models/mascot.js\n      import Model, { attr } from '@ember-data/model';\n       export default Model.extend({\n        name: attr('string'),\n        isAdmin: attr('boolean', {\n          defaultValue: false\n        })\n      });\n      ```\n       ```javascript\n      let mascot = store.createRecord('mascot');\n       mascot.changedAttributes(); // {}\n       mascot.set('name', 'Tomster');\n      mascot.changedAttributes(); // { name: [undefined, 'Tomster'] }\n       mascot.set('isAdmin', true);\n      mascot.changedAttributes(); // { isAdmin: [undefined, true], name: [undefined, 'Tomster'] }\n       mascot.save().then(function() {\n        mascot.changedAttributes(); // {}\n         mascot.set('isAdmin', false);\n        mascot.changedAttributes(); // { isAdmin: [true, false] }\n      });\n      ```\n       @method changedAttributes\n      @return {Object} an object, whose keys are changed properties,\n        and value is an [oldProp, newProp] array.\n    */\n    changedAttributes() {\n      return this._internalModel.changedAttributes();\n    },\n    /**\n      If the model `hasDirtyAttributes` this function will discard any unsaved\n      changes. If the model `isNew` it will be removed from the store.\n       Example\n       ```javascript\n      record.get('name'); // 'Untitled Document'\n      record.set('name', 'Doc 1');\n      record.get('name'); // 'Doc 1'\n      record.rollbackAttributes();\n      record.get('name'); // 'Untitled Document'\n      ```\n       @since 1.13.0\n      @method rollbackAttributes\n    */\n    rollbackAttributes() {\n      this._internalModel.rollbackAttributes();\n    },\n    /*\n      @method _createSnapshot\n      @private\n    */\n    _createSnapshot() {\n      return this._internalModel.createSnapshot();\n    },\n    toStringExtension() {\n      // the _internalModel guard exists, because some dev-only deprecation code\n      // (addListener via validatePropertyInjections) invokes toString before the\n      // object is real.\n      return this._internalModel && this._internalModel.id;\n    },\n    /**\n      Save the record and persist any changes to the record to an\n      external source via the adapter.\n       Example\n       ```javascript\n      record.set('name', 'Tomster');\n      record.save().then(function() {\n        // Success callback\n      }, function() {\n        // Error callback\n      });\n      ```\n      If you pass an object using the `adapterOptions` property of the options\n     argument it will be passed to your adapter via the snapshot.\n       ```js\n      record.save({ adapterOptions: { subscribe: false } });\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default MyCustomAdapter.extend({\n        updateRecord(store, type, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      });\n      ```\n       @method save\n      @param {Object} options\n      @return {Promise} a promise that will be resolved when the adapter returns\n      successfully or rejected if the adapter returns with an error.\n    */\n    save(options) {\n      return Private.PromiseObject.create({\n        promise: this._internalModel.save(options).then(() => this)\n      });\n    },\n    /**\n      Reload the record from the adapter.\n       This will only work if the record has already finished loading.\n       Example\n       ```app/routes/model/view.js\n      import Route from '@ember/routing/route';\n       export default Route.extend({\n        actions: {\n          reload() {\n            this.controller.get('model').reload().then(function(model) {\n              // do something with the reloaded model\n            });\n          }\n        }\n      });\n      ```\n       @method reload\n      @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter request\n      @return {Promise} a promise that will be resolved with the record when the\n      adapter returns successfully or rejected if the adapter returns\n      with an error.\n    */\n    reload(options) {\n      var wrappedAdapterOptions;\n      if (typeof options === 'object' && options !== null && options.adapterOptions) {\n        wrappedAdapterOptions = {\n          adapterOptions: options.adapterOptions\n        };\n      }\n      return Private.PromiseObject.create({\n        promise: this._internalModel.reload(wrappedAdapterOptions).then(() => this)\n      });\n    },\n    attr() {\n      ( Ember.assert('The `attr` method is not available on Model, a Snapshot was probably expected. Are you passing a Model instead of a Snapshot to your serializer?', false));\n    },\n    /**\n      Get the reference for the specified belongsTo relationship.\n       Example\n       ```app/models/blog.js\n      import Model, { belongsTo } from '@ember-data/model';\n       export default Model.extend({\n        user: belongsTo({ async: true })\n      });\n      ```\n       ```javascript\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n      let userRef = blog.belongsTo('user');\n       // check if the user relationship is loaded\n      let isLoaded = userRef.value() !== null;\n       // get the record of the reference (null if not yet available)\n      let user = userRef.value();\n       // get the identifier of the reference\n      if (userRef.remoteType() === \"id\") {\n        let id = userRef.id();\n      } else if (userRef.remoteType() === \"link\") {\n        let link = userRef.link();\n      }\n       // load user (via store.findRecord or store.findBelongsTo)\n      userRef.load().then(...)\n       // or trigger a reload\n      userRef.reload().then(...)\n       // provide data for reference\n      userRef.push({\n        type: 'user',\n        id: 1,\n        attributes: {\n          username: \"@user\"\n        }\n      }).then(function(user) {\n        userRef.value() === user;\n      });\n      ```\n       @method belongsTo\n      @param {String} name of the relationship\n      @since 2.5.0\n      @return {BelongsToReference} reference for this relationship\n    */\n    belongsTo(name) {\n      return this._internalModel.referenceFor('belongsTo', name);\n    },\n    /**\n      Get the reference for the specified hasMany relationship.\n       Example\n       ```app/models/blog.js\n      import Model, { hasMany } from '@ember-data/model';\n       export default Model.extend({\n        comments: hasMany({ async: true })\n      });\n       let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            comments: {\n              data: [\n                { type: 'comment', id: 1 },\n                { type: 'comment', id: 2 }\n              ]\n            }\n          }\n        }\n      });\n      let commentsRef = blog.hasMany('comments');\n       // check if the comments are loaded already\n      let isLoaded = commentsRef.value() !== null;\n       // get the records of the reference (null if not yet available)\n      let comments = commentsRef.value();\n       // get the identifier of the reference\n      if (commentsRef.remoteType() === \"ids\") {\n        let ids = commentsRef.ids();\n      } else if (commentsRef.remoteType() === \"link\") {\n        let link = commentsRef.link();\n      }\n       // load comments (via store.findMany or store.findHasMany)\n      commentsRef.load().then(...)\n       // or trigger a reload\n      commentsRef.reload().then(...)\n       // provide data for reference\n      commentsRef.push([{ type: 'comment', id: 1 }, { type: 'comment', id: 2 }]).then(function(comments) {\n        commentsRef.value() === comments;\n      });\n      ```\n       @method hasMany\n      @param {String} name of the relationship\n      @since 2.5.0\n      @return {HasManyReference} reference for this relationship\n    */\n    hasMany(name) {\n      return this._internalModel.referenceFor('hasMany', name);\n    },\n    /**\n     Provides info about the model for debugging purposes\n     by grouping the properties into more semantic groups.\n      Meant to be used by debugging tools such as the Chrome Ember Extension.\n      - Groups all attributes in \"Attributes\" group.\n     - Groups all belongsTo relationships in \"Belongs To\" group.\n     - Groups all hasMany relationships in \"Has Many\" group.\n     - Groups all flags in \"Flags\" group.\n     - Flags relationship CPs as expensive properties.\n      @method _debugInfo\n     @for Model\n     @private\n     */\n    _debugInfo() {\n      var attributes = ['id'];\n      var relationships = {};\n      var expensiveProperties = [];\n      this.eachAttribute((name, meta) => attributes.push(name));\n      var groups = [{\n        name: 'Attributes',\n        properties: attributes,\n        expand: true\n      }];\n      this.eachRelationship((name, relationship) => {\n        var properties = relationships[relationship.kind];\n        if (properties === undefined) {\n          properties = relationships[relationship.kind] = [];\n          groups.push({\n            name: relationship.kind,\n            properties,\n            expand: true\n          });\n        }\n        properties.push(name);\n        expensiveProperties.push(name);\n      });\n      groups.push({\n        name: 'Flags',\n        properties: ['isLoaded', 'hasDirtyAttributes', 'isSaving', 'isDeleted', 'isError', 'isNew', 'isValid']\n      });\n      return {\n        propertyInfo: {\n          // include all other mixins / properties (not just the grouped ones)\n          includeOtherProperties: true,\n          groups: groups,\n          // don't pre-calculate unless cached\n          expensiveProperties: expensiveProperties\n        }\n      };\n    },\n    notifyBelongsToChange(key) {\n      this.notifyPropertyChange(key);\n    },\n    /**\n     Given a callback, iterates over each of the relationships in the model,\n     invoking the callback with the name of each relationship and its relationship\n     descriptor.\n       The callback method you provide should have the following signature (all\n     parameters are optional):\n      ```javascript\n     function(name, descriptor);\n     ```\n      - `name` the name of the current property in the iteration\n     - `descriptor` the meta object that describes this relationship\n      The relationship descriptor argument is an object with the following properties.\n      - **key** <span class=\"type\">String</span> the name of this relationship on the Model\n     - **kind** <span class=\"type\">String</span> \"hasMany\" or \"belongsTo\"\n     - **options** <span class=\"type\">Object</span> the original options hash passed when the relationship was declared\n     - **parentType** <span class=\"type\">Model</span> the type of the Model that owns this relationship\n     - **type** <span class=\"type\">String</span> the type name of the related Model\n      Note that in addition to a callback, you can also pass an optional target\n     object that will be set as `this` on the context.\n      Example\n      ```app/serializers/application.js\n     import JSONSerializer from '@ember-data/serializer/json';\n      export default JSONSerializer.extend({\n      serialize: function(record, options) {\n        let json = {};\n         record.eachRelationship(function(name, descriptor) {\n          if (descriptor.kind === 'hasMany') {\n            let serializedHasManyName = name.toUpperCase() + '_IDS';\n            json[serializedHasManyName] = record.get(name).mapBy('id');\n          }\n        });\n         return json;\n      }\n    });\n     ```\n      @method eachRelationship\n     @param {Function} callback the callback to invoke\n     @param {any} binding the value to which the callback's `this` should be bound\n     */\n    eachRelationship(callback, binding) {\n      this.constructor.eachRelationship(callback, binding);\n    },\n    relationshipFor(name) {\n      return Ember.get(this.constructor, 'relationshipsByName').get(name);\n    },\n    inverseFor(key) {\n      return this.constructor.inverseFor(key, this._internalModel.store);\n    },\n    notifyHasManyAdded(key) {\n      //We need to notifyPropertyChange in the adding case because we need to make sure\n      //we fetch the newly added record in case it is unloaded\n      //TODO(Igor): Consider whether we could do this only if the record state is unloaded\n      this.notifyPropertyChange(key);\n    },\n    eachAttribute(callback, binding) {\n      this.constructor.eachAttribute(callback, binding);\n    }\n  });\n  {\n    /**\n    Override the default event firing from Ember.Evented to\n    also call methods with the given name.\n     @method trigger\n    @private\n    @param {String} name\n    */\n    Model.reopen({\n      trigger(name) {\n        {\n          var fn = this[name];\n          if (typeof fn === 'function') {\n            var length = arguments.length;\n            var args = new Array(length - 1);\n            for (var i = 1; i < length; i++) {\n              args[i - 1] = arguments[i];\n            }\n            fn.apply(this, args);\n          }\n        }\n        var _hasEvent =  this._has(name) ;\n        if (_hasEvent) {\n          this._super(...arguments);\n        }\n      }\n    });\n  }\n  {\n    /**\n      Use [JSONSerializer](JSONSerializer.html) to\n      get the JSON representation of a record.\n       `toJSON` takes an optional hash as a parameter, currently\n      supported options are:\n       - `includeId`: `true` if the record's ID should be included in the\n        JSON representation.\n       @method toJSON\n      @param {Object} options\n      @return {Object} A JSON representation of the object.\n    */\n    Model.reopen({\n      toJSON(options) {\n        // container is for lazy transform lookups\n        ( Ember.deprecate(`Called the built-in \\`toJSON\\` on the record \"${this.constructor.modelName}:${this.id}\". The built-in \\`toJSON\\` method on instances of classes extending \\`Model\\` is deprecated. For more information see the link below.`, false, {\n          id: 'ember-data:model.toJSON',\n          until: '4.0',\n          url: 'https://deprecations.emberjs.com/ember-data/v3.x#toc_record-toJSON'\n        }));\n        var serializer = this._internalModel.store.serializerFor('-default');\n        var snapshot = this._internalModel.createSnapshot();\n        return serializer.serialize(snapshot, options);\n      }\n    });\n  }\n  var ID_DESCRIPTOR = {\n    configurable: false,\n    set(id) {\n      var normalizedId = Private.coerceId(id);\n      if (normalizedId !== null) {\n        this._internalModel.setId(normalizedId);\n      }\n    },\n    get() {\n      // the _internalModel guard exists, because some dev-only deprecation code\n      // (addListener via validatePropertyInjections) invokes toString before the\n      // object is real.\n      {\n        if (!this._internalModel) {\n          return;\n        }\n      }\n      Ember.get(this._internalModel, '_tag');\n      return this._internalModel.id;\n    }\n  };\n  Object.defineProperty(Model.prototype, 'id', ID_DESCRIPTOR);\n  {\n    var lookupDescriptor = function lookupDescriptor(obj, keyName) {\n      var current = obj;\n      do {\n        var descriptor = Object.getOwnPropertyDescriptor(current, keyName);\n        if (descriptor !== undefined) {\n          return descriptor;\n        }\n        current = Object.getPrototypeOf(current);\n      } while (current !== null);\n      return null;\n    };\n    var isBasicDesc = function isBasicDesc(desc) {\n      return !desc || !desc.get && !desc.set && desc.enumerable === true && desc.writable === true && desc.configurable === true;\n    };\n    var isDefaultEmptyDescriptor = function isDefaultEmptyDescriptor(obj, keyName) {\n      var instanceDesc = lookupDescriptor(obj, keyName);\n      return isBasicDesc(instanceDesc) && lookupDescriptor(obj.constructor, keyName) === null;\n    };\n    var lookupDeprecations;\n    var _deprecatedLifecycleMethods;\n    {\n      var INSTANCE_DEPRECATIONS = new WeakMap();\n      _deprecatedLifecycleMethods = ['becameError', 'becameInvalid', 'didCreate', 'didDelete', 'didLoad', 'didUpdate', 'ready', 'rolledBack'];\n      lookupDeprecations = function lookupInstanceDeprecations(instance) {\n        var deprecations = INSTANCE_DEPRECATIONS.get(instance);\n        if (!deprecations) {\n          deprecations = new Set();\n          INSTANCE_DEPRECATIONS.set(instance, deprecations);\n        }\n        return deprecations;\n      };\n    }\n    Model.reopen({\n      init() {\n        this._super(...arguments);\n        {\n          this._getDeprecatedEventedInfo = () => `${this._internalModel.modelName}#${this.id}`;\n        }\n        if (!isDefaultEmptyDescriptor(this, '_internalModel') || !(this._internalModel instanceof Private.InternalModel)) {\n          throw new Error(`'_internalModel' is a reserved property name on instances of classes extending Model. Please choose a different property name for ${this.constructor.toString()}`);\n        }\n        if (!isDefaultEmptyDescriptor(this, 'currentState') || this.get('currentState') !== this._internalModel.currentState) {\n          throw new Error(`'currentState' is a reserved property name on instances of classes extending Model. Please choose a different property name for ${this.constructor.toString()}`);\n        }\n        var idDesc = lookupDescriptor(this, 'id');\n        if (idDesc.get !== ID_DESCRIPTOR.get) {\n          throw new Ember.Error(`You may not set 'id' as an attribute on your model. Please remove any lines that look like: \\`id: attr('<type>')\\` from ${this.constructor.toString()}`);\n        }\n        {\n          var lifecycleDeprecations = lookupDeprecations(this.constructor);\n          _deprecatedLifecycleMethods.forEach(methodName => {\n            if (typeof this[methodName] === 'function' && !lifecycleDeprecations.has(methodName)) {\n              ( Ember.deprecate(`You defined a \\`${methodName}\\` method for ${this.constructor.toString()} but lifecycle events for models have been deprecated.`, false, {\n                id: 'ember-data:record-lifecycle-event-methods',\n                until: '4.0',\n                url: 'https://deprecations.emberjs.com/ember-data/v3.x#toc_record-lifecycle-event-methods'\n              }));\n              lifecycleDeprecations.add(methodName);\n            }\n          });\n        }\n      }\n    });\n  }\n  Model.reopenClass({\n    isModel: true,\n    /**\n      Create should only ever be called by the store. To create an instance of a\n      `Model` in a dirty state use `store.createRecord`.\n      To create instances of `Model` in a clean state, use `store.push`\n       @method create\n      @private\n      @static\n    */\n\n    /**\n     Represents the model's class name as a string. This can be used to look up the model's class name through\n     `Store`'s modelFor method.\n      `modelName` is generated for you by Ember Data. It will be a lowercased, dasherized string.\n     For example:\n      ```javascript\n     store.modelFor('post').modelName; // 'post'\n     store.modelFor('blog-post').modelName; // 'blog-post'\n     ```\n      The most common place you'll want to access `modelName` is in your serializer's `payloadKeyFromModelName` method. For example, to change payload\n     keys to underscore (instead of dasherized), you might use the following code:\n      ```javascript\n     import RESTSerializer from '@ember-data/serializer/rest';\n     import { underscore } from '@ember/string';\n      export default const PostSerializer = RESTSerializer.extend({\n       payloadKeyFromModelName(modelName) {\n         return underscore(modelName);\n       }\n     });\n     ```\n     @property modelName\n     @type String\n     @readonly\n     @static\n    */\n    modelName: null,\n    /*\n     These class methods below provide relationship\n     introspection abilities about relationships.\n      A note about the computed properties contained here:\n      **These properties are effectively sealed once called for the first time.**\n     To avoid repeatedly doing expensive iteration over a model's fields, these\n     values are computed once and then cached for the remainder of the runtime of\n     your application.\n      If your application needs to modify a class after its initial definition\n     (for example, using `reopen()` to add additional attributes), make sure you\n     do it before using your model with the store, which uses these properties\n     extensively.\n     */\n\n    /**\n     For a given relationship name, returns the model type of the relationship.\n      For example, if you define a model like this:\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default Model.extend({\n        comments: hasMany('comment')\n      });\n     ```\n      Calling `store.modelFor('post').typeForRelationship('comments', store)` will return `Comment`.\n      @method typeForRelationship\n     @static\n     @param {String} name the name of the relationship\n     @param {store} store an instance of Store\n     @return {Model} the type of the relationship, or undefined\n     */\n    typeForRelationship(name, store) {\n      var relationship = Ember.get(this, 'relationshipsByName').get(name);\n      return relationship && store.modelFor(relationship.type);\n    },\n    inverseMap: Ember.computed(function () {\n      return Object.create(null);\n    }),\n    /**\n     Find the relationship which is the inverse of the one asked for.\n      For example, if you define models like this:\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default Model.extend({\n        comments: hasMany('message')\n      });\n     ```\n      ```app/models/message.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default Model.extend({\n        owner: belongsTo('post')\n      });\n     ```\n      ``` js\n     store.modelFor('post').inverseFor('comments', store) // { type: App.Message, name: 'owner', kind: 'belongsTo' }\n     store.modelFor('message').inverseFor('owner', store) // { type: App.Post, name: 'comments', kind: 'hasMany' }\n     ```\n      @method inverseFor\n     @static\n     @param {String} name the name of the relationship\n     @param {Store} store\n     @return {Object} the inverse relationship, or null\n     */\n    inverseFor(name, store) {\n      var inverseMap = Ember.get(this, 'inverseMap');\n      if (inverseMap[name]) {\n        return inverseMap[name];\n      } else {\n        var inverse = this._findInverseFor(name, store);\n        inverseMap[name] = inverse;\n        return inverse;\n      }\n    },\n    //Calculate the inverse, ignoring the cache\n    _findInverseFor(name, store) {\n      var inverseType = this.typeForRelationship(name, store);\n      if (!inverseType) {\n        return null;\n      }\n      var propertyMeta = this.metaForProperty(name);\n      //If inverse is manually specified to be null, like  `comments: hasMany('message', { inverse: null })`\n      var options = propertyMeta.options;\n      if (options.inverse === null) {\n        return null;\n      }\n      var inverseName, inverseKind, inverse, inverseOptions;\n\n      //If inverse is specified manually, return the inverse\n      if (options.inverse) {\n        inverseName = options.inverse;\n        inverse = Ember.get(inverseType, 'relationshipsByName').get(inverseName);\n        ( !(!Ember.isNone(inverse)) && Ember.assert(\"We found no inverse relationships by the name of '\" + inverseName + \"' on the '\" + inverseType.modelName + \"' model. This is most likely due to a missing attribute on your model definition.\", !Ember.isNone(inverse))); // TODO probably just return the whole inverse here\n        inverseKind = inverse.kind;\n        inverseOptions = inverse.options;\n      } else {\n        //No inverse was specified manually, we need to use a heuristic to guess one\n        if (propertyMeta.type === propertyMeta.parentModelName) {\n          ( Ember.warn(`Detected a reflexive relationship by the name of '${name}' without an inverse option. Look at https://guides.emberjs.com/current/models/relationships/#toc_reflexive-relations for how to explicitly specify inverses.`, false, {\n            id: 'ds.model.reflexive-relationship-without-inverse'\n          }));\n        }\n        var possibleRelationships = findPossibleInverses(this, inverseType, name);\n        if (possibleRelationships.length === 0) {\n          return null;\n        }\n        var filteredRelationships = possibleRelationships.filter(possibleRelationship => {\n          var optionsForRelationship = inverseType.metaForProperty(possibleRelationship.name).options;\n          return name === optionsForRelationship.inverse;\n        });\n        ( !(filteredRelationships.length < 2) && Ember.assert(\"You defined the '\" + name + \"' relationship on \" + this + ', but you defined the inverse relationships of type ' + inverseType.toString() + ' multiple times. Look at https://guides.emberjs.com/current/models/relationships/#toc_explicit-inverses for how to explicitly specify inverses', filteredRelationships.length < 2));\n        if (filteredRelationships.length === 1) {\n          possibleRelationships = filteredRelationships;\n        }\n        ( !(possibleRelationships.length === 1) && Ember.assert(\"You defined the '\" + name + \"' relationship on \" + this + ', but multiple possible inverse relationships of type ' + this + ' were found on ' + inverseType + '. Look at https://guides.emberjs.com/current/models/relationships/#toc_explicit-inverses for how to explicitly specify inverses', possibleRelationships.length === 1));\n        inverseName = possibleRelationships[0].name;\n        inverseKind = possibleRelationships[0].kind;\n        inverseOptions = possibleRelationships[0].options;\n      }\n      ( !(!inverseOptions || inverseOptions.inverse !== null) && Ember.assert(`The ${inverseType.modelName}:${inverseName} relationship declares 'inverse: null', but it was resolved as the inverse for ${this.modelName}:${name}.`, !inverseOptions || inverseOptions.inverse !== null));\n      return {\n        type: inverseType,\n        name: inverseName,\n        kind: inverseKind,\n        options: inverseOptions\n      };\n    },\n    /**\n     The model's relationships as a map, keyed on the type of the\n     relationship. The value of each entry is an array containing a descriptor\n     for each relationship with that type, describing the name of the relationship\n     as well as the type.\n      For example, given the following model definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default Model.extend({\n        users: hasMany('user'),\n        owner: belongsTo('user'),\n        posts: hasMany('post')\n      });\n     ```\n      This computed property would return a map describing these\n     relationships, like this:\n      ```javascript\n     import Ember from 'ember';\n     import Blog from 'app/models/blog';\n     import User from 'app/models/user';\n     import Post from 'app/models/post';\n      let relationships = Ember.get(Blog, 'relationships');\n     relationships.get('user');\n     //=> [ { name: 'users', kind: 'hasMany' },\n     //     { name: 'owner', kind: 'belongsTo' } ]\n     relationships.get('post');\n     //=> [ { name: 'posts', kind: 'hasMany' } ]\n     ```\n      @property relationships\n     @static\n     @type Map\n     @readOnly\n     */\n\n    relationships: relationshipsDescriptor,\n    /**\n     A hash containing lists of the model's relationships, grouped\n     by the relationship kind. For example, given a model with this\n     definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default Model.extend({\n        users: hasMany('user'),\n        owner: belongsTo('user'),\n         posts: hasMany('post')\n      });\n     ```\n      This property would contain the following:\n      ```javascript\n     import Ember from 'ember';\n     import Blog from 'app/models/blog';\n      let relationshipNames = Ember.get(Blog, 'relationshipNames');\n     relationshipNames.hasMany;\n     //=> ['users', 'posts']\n     relationshipNames.belongsTo;\n     //=> ['owner']\n     ```\n      @property relationshipNames\n     @static\n     @type Object\n     @readOnly\n     */\n    relationshipNames: Ember.computed(function () {\n      var names = {\n        hasMany: [],\n        belongsTo: []\n      };\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isRelationship) {\n          names[meta.kind].push(name);\n        }\n      });\n      return names;\n    }),\n    /**\n     An array of types directly related to a model. Each type will be\n     included once, regardless of the number of relationships it has with\n     the model.\n      For example, given a model with this definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default Model.extend({\n        users: hasMany('user'),\n        owner: belongsTo('user'),\n         posts: hasMany('post')\n      });\n     ```\n      This property would contain the following:\n      ```javascript\n     import Ember from 'ember';\n     import Blog from 'app/models/blog';\n      let relatedTypes = Ember.get(Blog, 'relatedTypes');\n     //=> [ User, Post ]\n     ```\n      @property relatedTypes\n     @static\n     @type Ember.Array\n     @readOnly\n     */\n    relatedTypes: relatedTypesDescriptor,\n    /**\n     A map whose keys are the relationships of a model and whose values are\n     relationship descriptors.\n      For example, given a model with this\n     definition:\n      ```app/models/blog.js\n     import Model, { belongsTo, hasMany } from '@ember-data/model';\n      export default Model.extend({\n        users: hasMany('user'),\n        owner: belongsTo('user'),\n         posts: hasMany('post')\n      });\n     ```\n      This property would contain the following:\n      ```javascript\n     import Ember from 'ember';\n     import Blog from 'app/models/blog';\n      let relationshipsByName = Ember.get(Blog, 'relationshipsByName');\n     relationshipsByName.get('users');\n     //=> { key: 'users', kind: 'hasMany', type: 'user', options: Object, isRelationship: true }\n     relationshipsByName.get('owner');\n     //=> { key: 'owner', kind: 'belongsTo', type: 'user', options: Object, isRelationship: true }\n     ```\n      @property relationshipsByName\n     @static\n     @type Map\n     @readOnly\n     */\n    relationshipsByName: relationshipsByNameDescriptor,\n    relationshipsObject: relationshipsObjectDescriptor,\n    /**\n     A map whose keys are the fields of the model and whose values are strings\n     describing the kind of the field. A model's fields are the union of all of its\n     attributes and relationships.\n      For example:\n      ```app/models/blog.js\n     import Model, { attr, belongsTo, hasMany } from '@ember-data/model';\n      export default Model.extend({\n        users: hasMany('user'),\n        owner: belongsTo('user'),\n         posts: hasMany('post'),\n         title: attr('string')\n      });\n     ```\n      ```js\n     import Ember from 'ember';\n     import Blog from 'app/models/blog';\n      let fields = Ember.get(Blog, 'fields');\n     fields.forEach(function(kind, field) {\n        console.log(field, kind);\n      });\n      // prints:\n     // users, hasMany\n     // owner, belongsTo\n     // posts, hasMany\n     // title, attribute\n     ```\n      @property fields\n     @static\n     @type Map\n     @readOnly\n     */\n    fields: Ember.computed(function () {\n      var map = new Map();\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isRelationship) {\n          map.set(name, meta.kind);\n        } else if (meta.isAttribute) {\n          map.set(name, 'attribute');\n        }\n      });\n      return map;\n    }).readOnly(),\n    /**\n     Given a callback, iterates over each of the relationships in the model,\n     invoking the callback with the name of each relationship and its relationship\n     descriptor.\n      @method eachRelationship\n     @static\n     @param {Function} callback the callback to invoke\n     @param {any} binding the value to which the callback's `this` should be bound\n     */\n    eachRelationship(callback, binding) {\n      Ember.get(this, 'relationshipsByName').forEach((relationship, name) => {\n        callback.call(binding, name, relationship);\n      });\n    },\n    /**\n     Given a callback, iterates over each of the types related to a model,\n     invoking the callback with the related type's class. Each type will be\n     returned just once, regardless of how many different relationships it has\n     with a model.\n      @method eachRelatedType\n     @static\n     @param {Function} callback the callback to invoke\n     @param {any} binding the value to which the callback's `this` should be bound\n     */\n    eachRelatedType(callback, binding) {\n      var relationshipTypes = Ember.get(this, 'relatedTypes');\n      for (var i = 0; i < relationshipTypes.length; i++) {\n        var type = relationshipTypes[i];\n        callback.call(binding, type);\n      }\n    },\n    determineRelationshipType(knownSide, store) {\n      var knownKey = knownSide.key;\n      var knownKind = knownSide.kind;\n      var inverse = this.inverseFor(knownKey, store);\n      // let key;\n      var otherKind;\n      if (!inverse) {\n        return knownKind === 'belongsTo' ? 'oneToNone' : 'manyToNone';\n      }\n\n      // key = inverse.name;\n      otherKind = inverse.kind;\n      if (otherKind === 'belongsTo') {\n        return knownKind === 'belongsTo' ? 'oneToOne' : 'manyToOne';\n      } else {\n        return knownKind === 'belongsTo' ? 'oneToMany' : 'manyToMany';\n      }\n    },\n    /**\n     A map whose keys are the attributes of the model (properties\n     described by attr) and whose values are the meta object for the\n     property.\n      Example\n      ```app/models/person.js\n     import Model, { attr } from '@ember-data/model';\n      export default Model.extend({\n        firstName: attr('string'),\n        lastName: attr('string'),\n        birthday: attr('date')\n      });\n     ```\n      ```javascript\n     import Ember from 'ember';\n     import Person from 'app/models/person';\n      let attributes = Ember.get(Person, 'attributes')\n      attributes.forEach(function(meta, name) {\n        console.log(name, meta);\n      });\n      // prints:\n     // firstName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"firstName\"}\n     // lastName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"lastName\"}\n     // birthday {type: \"date\", isAttribute: true, options: Object, parentType: function, name: \"birthday\"}\n     ```\n      @property attributes\n     @static\n     @type {Map}\n     @readOnly\n     */\n    attributes: Ember.computed(function () {\n      var map = new Map();\n      this.eachComputedProperty((name, meta) => {\n        if (meta.isAttribute) {\n          ( !(name !== 'id') && Ember.assert(\"You may not set `id` as an attribute on your model. Please remove any lines that look like: `id: attr('<type>')` from \" + this.toString(), name !== 'id'));\n          meta.name = name;\n          map.set(name, meta);\n        }\n      });\n      return map;\n    }).readOnly(),\n    /**\n     A map whose keys are the attributes of the model (properties\n     described by attr) and whose values are type of transformation\n     applied to each attribute. This map does not include any\n     attributes that do not have an transformation type.\n      Example\n      ```app/models/person.js\n     import Model, { attr } from '@ember-data/model';\n      export default Model.extend({\n        firstName: attr(),\n        lastName: attr('string'),\n        birthday: attr('date')\n      });\n     ```\n      ```javascript\n     import Ember from 'ember';\n     import Person from 'app/models/person';\n      let transformedAttributes = Ember.get(Person, 'transformedAttributes')\n      transformedAttributes.forEach(function(field, type) {\n        console.log(field, type);\n      });\n      // prints:\n     // lastName string\n     // birthday date\n     ```\n      @property transformedAttributes\n     @static\n     @type {Map}\n     @readOnly\n     */\n    transformedAttributes: Ember.computed(function () {\n      var map = new Map();\n      this.eachAttribute((key, meta) => {\n        if (meta.type) {\n          map.set(key, meta.type);\n        }\n      });\n      return map;\n    }).readOnly(),\n    /**\n     Iterates through the attributes of the model, calling the passed function on each\n     attribute.\n      The callback method you provide should have the following signature (all\n     parameters are optional):\n      ```javascript\n     function(name, meta);\n     ```\n      - `name` the name of the current property in the iteration\n     - `meta` the meta object for the attribute property in the iteration\n      Note that in addition to a callback, you can also pass an optional target\n     object that will be set as `this` on the context.\n      Example\n      ```javascript\n     import Model, { attr } from '@ember-data/model';\n      let Person = Model.extend({\n        firstName: attr('string'),\n        lastName: attr('string'),\n        birthday: attr('date')\n      });\n      Person.eachAttribute(function(name, meta) {\n        console.log(name, meta);\n      });\n      // prints:\n     // firstName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"firstName\"}\n     // lastName {type: \"string\", isAttribute: true, options: Object, parentType: function, name: \"lastName\"}\n     // birthday {type: \"date\", isAttribute: true, options: Object, parentType: function, name: \"birthday\"}\n     ```\n      @method eachAttribute\n     @param {Function} callback The callback to execute\n     @param {Object} [binding] the value to which the callback's `this` should be bound\n     @static\n     */\n    eachAttribute(callback, binding) {\n      Ember.get(this, 'attributes').forEach((meta, name) => {\n        callback.call(binding, name, meta);\n      });\n    },\n    /**\n     Iterates through the transformedAttributes of the model, calling\n     the passed function on each attribute. Note the callback will not be\n     called for any attributes that do not have an transformation type.\n      The callback method you provide should have the following signature (all\n     parameters are optional):\n      ```javascript\n     function(name, type);\n     ```\n      - `name` the name of the current property in the iteration\n     - `type` a string containing the name of the type of transformed\n     applied to the attribute\n      Note that in addition to a callback, you can also pass an optional target\n     object that will be set as `this` on the context.\n      Example\n      ```javascript\n     import Model, { attr } from '@ember-data/model';\n      let Person = Model.extend({\n        firstName: attr(),\n        lastName: attr('string'),\n        birthday: attr('date')\n      });\n      Person.eachTransformedAttribute(function(name, type) {\n        console.log(name, type);\n      });\n      // prints:\n     // lastName string\n     // birthday date\n     ```\n      @method eachTransformedAttribute\n     @param {Function} callback The callback to execute\n     @param {Object} [binding] the value to which the callback's `this` should be bound\n     @static\n     */\n    eachTransformedAttribute(callback, binding) {\n      Ember.get(this, 'transformedAttributes').forEach((type, name) => {\n        callback.call(binding, name, type);\n      });\n    },\n    /**\n     Returns the name of the model class.\n      @method toString\n     @static\n     */\n    toString() {\n      return `model:${Ember.get(this, 'modelName')}`;\n    }\n  });\n\n  /**\n    A `ManyArray` is a `MutableArray` that represents the contents of a has-many\n    relationship.\n\n    The `ManyArray` is instantiated lazily the first time the relationship is\n    requested.\n\n    ### Inverses\n\n    Often, the relationships in Ember Data applications will have\n    an inverse. For example, imagine the following models are\n    defined:\n\n    ```app/models/post.js\n    import Model, { hasMany } from '@ember-data/model';\n\n    export default Model.extend({\n      comments: hasMany('comment')\n    });\n    ```\n\n    ```app/models/comment.js\n    import Model, { belongsTo } from '@ember-data/model';\n\n    export default Model.extend({\n      post: belongsTo('post')\n    });\n    ```\n\n    If you created a new instance of `Post` and added\n    a `Comment` record to its `comments` has-many\n    relationship, you would expect the comment's `post`\n    property to be set to the post that contained\n    the has-many.\n\n    We call the record to which a relationship belongs-to the\n    relationship's _owner_.\n\n    @class ManyArray\n    @extends EmberObject\n    @uses Ember.MutableArray, DeprecatedEvented\n  */\n  var manyArray = Ember.Object.extend(Ember.MutableArray, Private.DeprecatedEvented, {\n    // here to make TS happy\n    _inverseIsAsync: false,\n    isLoaded: false,\n    init() {\n      this._super(...arguments);\n\n      /**\n      The loading state of this array\n       @property {Boolean} isLoaded\n      */\n      this.isLoaded = this.isLoaded || false;\n\n      // async has-many rendering tests\n      this._length = 0;\n\n      /**\n      Used for async `hasMany` arrays\n      to keep track of when they will resolve.\n       @property {Ember.RSVP.Promise} promise\n      @private\n      */\n      this.promise = null;\n\n      /**\n      Metadata associated with the request for async hasMany relationships.\n       Example\n       Given that the server returns the following JSON payload when fetching a\n      hasMany relationship:\n       ```js\n      {\n        \"comments\": [{\n          \"id\": 1,\n          \"comment\": \"This is the first comment\",\n        }, {\n      // ...\n        }],\n         \"meta\": {\n          \"page\": 1,\n          \"total\": 5\n        }\n      }\n      ```\n       You can then access the metadata via the `meta` property:\n       ```js\n      post.get('comments').then(function(comments) {\n        var meta = comments.get('meta');\n       // meta.page => 1\n      // meta.total => 5\n      });\n      ```\n       @property {Object} meta\n      @public\n      */\n      // TODO this is likely broken in our refactor\n      this.meta = this.meta || null;\n\n      /**\n      `true` if the relationship is polymorphic, `false` otherwise.\n       @property {Boolean} isPolymorphic\n      @private\n      */\n      this.isPolymorphic = this.isPolymorphic || false;\n\n      /**\n      The relationship which manages this array.\n       @property {ManyRelationship} relationship\n      @private\n      */\n      this.currentState = [];\n      this.flushCanonical(this.initialState, false);\n      // we don't need this anymore, it just prevents garbage collection the records in the initialState\n      this.initialState = undefined;\n    },\n    // TODO: if(DEBUG)\n    anyUnloaded() {\n      // Use `filter[0]` as opposed to `find` because of IE11\n      var unloaded = this.currentState.filter(im => im._isDematerializing || !im.isLoaded())[0];\n      return !!unloaded;\n    },\n    removeUnloadedInternalModel() {\n      for (var i = 0; i < this.currentState.length; ++i) {\n        var internalModel = this.currentState[i];\n        var shouldRemove = void 0;\n        {\n          shouldRemove = internalModel._isDematerializing || !internalModel.isLoaded();\n        }\n        if (shouldRemove) {\n          this.arrayContentWillChange(i, 1, 0);\n          this.currentState.splice(i, 1);\n          this.set('length', this.currentState.length);\n          this.arrayContentDidChange(i, 1, 0);\n          return true;\n        }\n      }\n      return false;\n    },\n    get length() {\n      // By using `get()`, the tracking system knows to pay attention to changes that occur.\n      Ember.get(this, '[]');\n      return this._length;\n    },\n    set length(value) {\n      return this._length = value;\n    },\n    objectAt(index) {\n      // TODO we likely need to force flush here\n      /*\n      if (this.relationship._willUpdateManyArray) {\n        this.relationship._flushPendingManyArrayUpdates();\n      }\n      */\n      var internalModel = this.currentState[index];\n      if (internalModel === undefined) {\n        return;\n      }\n      return internalModel.getRecord();\n    },\n    flushCanonical(toSet, isInitialized = true) {\n      // It’s possible the parent side of the relationship may have been unloaded by this point\n      if (!Private._objectIsAlive(this)) {\n        return;\n      }\n      // diff to find changes\n      var diff = Private.diffArray(this.currentState, toSet);\n      if (diff.firstChangeIndex !== null) {\n        // it's null if no change found\n        // we found a change\n        this.arrayContentWillChange(diff.firstChangeIndex, diff.removedCount, diff.addedCount);\n        this.set('length', toSet.length);\n        this.currentState = toSet.slice();\n        this.arrayContentDidChange(diff.firstChangeIndex, diff.removedCount, diff.addedCount);\n        if (isInitialized && diff.addedCount > 0) {\n          //notify only on additions\n          //TODO only notify if unloaded\n          this.internalModel.manyArrayRecordAdded(this.get('key'));\n        }\n      }\n    },\n    replace(idx, amt, objects) {\n      var internalModels;\n      if (amt > 0) {\n        internalModels = this.currentState.slice(idx, idx + amt);\n        this.get('recordData').removeFromHasMany(this.get('key'), internalModels.map(im => Private.recordDataFor(im)));\n      }\n      if (objects) {\n        ( !(Array.isArray(objects) || Ember.Array.detect(objects)) && Ember.assert('The third argument to replace needs to be an array.', Array.isArray(objects) || Ember.Array.detect(objects)));\n        this.get('recordData').addToHasMany(this.get('key'), objects.map(obj => Private.recordDataFor(obj)), idx);\n      }\n      this.retrieveLatest();\n    },\n    // Ok this is kinda funky because if buggy we might lose positions, etc.\n    // but current code is this way so shouldn't be too big of a problem\n    retrieveLatest() {\n      var jsonApi = this.get('recordData').getHasMany(this.get('key'));\n      // TODO this is odd, why should ManyArray ever tell itself to resync?\n      var internalModels = this.store._getHasManyByJsonApiResource(jsonApi);\n      if (jsonApi.meta) {\n        this.set('meta', jsonApi.meta);\n      }\n      {\n        if (jsonApi.links) {\n          this.set('links', jsonApi.links);\n        }\n      }\n      this.flushCanonical(internalModels, true);\n    },\n    /**\n      Reloads all of the records in the manyArray. If the manyArray\n      holds a relationship that was originally fetched using a links url\n      Ember Data will revisit the original links url to repopulate the\n      relationship.\n       If the manyArray holds the result of a `store.query()` reload will\n      re-run the original query.\n       Example\n       ```javascript\n      var user = store.peekRecord('user', 1)\n      user.login().then(function() {\n        user.get('permissions').then(function(permissions) {\n          return permissions.reload();\n        });\n      });\n      ```\n       @method reload\n      @public\n    */\n    reload(options) {\n      // TODO this is odd, we don't ask the store for anything else like this?\n      return this.get('store').reloadManyArray(this, this.get('internalModel'), this.get('key'), options);\n    },\n    /**\n      Saves all of the records in the `ManyArray`.\n       Example\n       ```javascript\n      store.findRecord('inbox', 1).then(function(inbox) {\n        inbox.get('messages').then(function(messages) {\n          messages.forEach(function(message) {\n            message.set('isRead', true);\n          });\n          messages.save()\n        });\n      });\n      ```\n       @method save\n      @return {PromiseArray} promise\n    */\n    save() {\n      var manyArray = this;\n      var promiseLabel = 'DS: ManyArray#save ' + Ember.get(this, 'type');\n      var promise = Ember.RSVP.all(this.invoke('save'), promiseLabel).then(() => manyArray, null, 'DS: ManyArray#save return ManyArray');\n      return Private.PromiseArray.create({\n        promise\n      });\n    },\n    /**\n      Create a child record within the owner\n       @method createRecord\n      @private\n      @param {Object} hash\n      @return {Model} record\n    */\n    createRecord(hash) {\n      var store = Ember.get(this, 'store');\n      var type = Ember.get(this, 'type');\n      ( !(!Ember.get(this, 'isPolymorphic')) && Ember.assert(`You cannot add '${type.modelName}' records to this polymorphic relationship.`, !Ember.get(this, 'isPolymorphic')));\n      var record = store.createRecord(type.modelName, hash);\n      this.pushObject(record);\n      return record;\n    }\n  });\n\n  /**\n   @module @ember-data/model\n   */\n\n  /**\n    A PromiseBelongsTo is a PromiseObject that also proxies certain method calls\n    to the underlying belongsTo model.\n    Right now we proxy:\n\n      * `reload()`\n\n    @class PromiseBelongsTo\n    @extends PromiseObject\n    @private\n  */\n  var PromiseBelongsTo = Private.PromiseObject.extend({\n    // we don't proxy meta because we would need to proxy it to the relationship state container\n    //  however, meta on relationships does not trigger change notifications.\n    //  if you need relationship meta, you should do `record.belongsTo(relationshipName).meta()`\n    meta: Ember.computed(function () {\n      ( Ember.assert('You attempted to access meta on the promise for the async belongsTo relationship ' + `${this.get('_belongsToState').modelName}:${this.get('_belongsToState').key}'.` + '\\nUse `record.belongsTo(relationshipName).meta()` instead.', false));\n    }),\n    reload(options) {\n      ( !(this.get('content') !== undefined) && Ember.assert('You are trying to reload an async belongsTo before it has been created', this.get('content') !== undefined));\n      var {\n        key,\n        store,\n        originatingInternalModel\n      } = this._belongsToState;\n      return store.reloadBelongsTo(this, originatingInternalModel, key, options).then(() => this);\n    }\n  });\n\n  /**\n   @module @ember-data/model\n   */\n\n  /**\n    A PromiseManyArray is a PromiseArray that also proxies certain method calls\n    to the underlying manyArray.\n    Right now we proxy:\n\n      * `reload()`\n      * `createRecord()`\n      * `on()`\n      * `one()`\n      * `trigger()`\n      * `off()`\n      * `has()`\n\n    @class PromiseManyArray\n    @extends Ember.ArrayProxy\n    @private\n  */\n  var PromiseManyArray = Private.PromiseArray.extend({\n    links:  Ember.computed.reads('content.links') ,\n    reload(options) {\n      ( !(Ember.get(this, 'content')) && Ember.assert('You are trying to reload an async manyArray before it has been created', Ember.get(this, 'content')));\n      this.set('promise', this.get('content').reload(options));\n      return this;\n    },\n    createRecord: proxyToContent('createRecord'),\n    on: proxyToContent('on'),\n    one: proxyToContent('one'),\n    trigger: proxyToContent('trigger'),\n    off: proxyToContent('off'),\n    has: proxyToContent('has')\n  });\n  function proxyToContent(method) {\n    return function () {\n      return Ember.get(this, 'content')[method](...arguments);\n    };\n  }\n\n  /*\n      In case someone defined a relationship to a mixin, for example:\n      ```\n        let Comment = Model.extend({\n          owner: belongsTo('commentable'. { polymorphic: true })\n        });\n        let Commentable = Ember.Mixin.create({\n          comments: hasMany('comment')\n        });\n      ```\n      we want to look up a Commentable class which has all the necessary\n      relationship metadata. Thus, we look up the mixin and create a mock\n      Model, so we can access the relationship CPs of the mixin (`comments`)\n      in this case\n    */\n  function modelForMixin(store, normalizedModelName) {\n    var owner = Ember.getOwner(store);\n    var MaybeMixin = owner.factoryFor(`mixin:${normalizedModelName}`);\n    var mixin = MaybeMixin && MaybeMixin.class;\n    if (mixin) {\n      var ModelForMixin = Model.extend(mixin);\n      ModelForMixin.reopenClass({\n        __isMixin: true,\n        __mixin: mixin\n      });\n      //Cache the class as a model\n      owner.register('model:' + normalizedModelName, ModelForMixin);\n    }\n    return owner.factoryFor(`model:${normalizedModelName}`);\n  }\n\n  exports.Errors = Errors;\n  exports.ManyArray = manyArray;\n  exports.Model = Model;\n  exports.PromiseBelongsTo = PromiseBelongsTo;\n  exports.PromiseManyArray = PromiseManyArray;\n  exports._modelForMixin = modelForMixin;\n  exports.attr = attr$1;\n  exports.belongsTo = belongsTo$1;\n  exports.hasMany = hasMany$1;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n});\n","define(\"@ember-data/model/index\", [\"exports\", \"@ember-data/model/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"attr\", {\n    enumerable: true,\n    get: function () {\n      return _private.attr;\n    }\n  });\n  Object.defineProperty(_exports, \"belongsTo\", {\n    enumerable: true,\n    get: function () {\n      return _private.belongsTo;\n    }\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _private.Model;\n    }\n  });\n  Object.defineProperty(_exports, \"hasMany\", {\n    enumerable: true,\n    get: function () {\n      return _private.hasMany;\n    }\n  });\n});","define(\"@ember-data/private-build-infra/available-packages\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    HAS_EMBER_DATA_PACKAGE: 'ember-data',\n    HAS_STORE_PACKAGE: '@ember-data/store',\n    HAS_MODEL_PACKAGE: '@ember-data/model',\n    HAS_RECORD_DATA_PACKAGE: '@ember-data/record-data',\n    HAS_ADAPTER_PACKAGE: '@ember-data/adapter',\n    HAS_SERIALIZER_PACKAGE: '@ember-data/serializer',\n    HAS_DEBUG_PACKAGE: '@ember-data/debug'\n  };\n});","define(\"@ember-data/private-build-infra/current-deprecations\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * ## Deprecations\n   *\n   * EmberData allows users to opt-in and remove code that exists to support deprecated\n   * behaviors.\n   *\n   * If your app has resolved all deprecations present in a given version,\n   * you may specify that version as your \"compatibility\" version to remove\n   * the code that supported the deprecated behavior from your app.\n   *\n   * For instance, if a deprecation was introduced in 3.13, and the app specifies\n   * 3.13 as its minimum version compatibility, any deprecations introduced before\n   * or during 3.13 would be stripped away.\n   *\n   * An app can use a different version than what it specifies as it's compatibility\n   * version. For instance, an App could be using `3.16` while specifying compatibility\n   * with `3.12`. This would remove any deprecations that were present in or before `3.12`\n   * but keep support for anything deprecated in or abvoe `3.13`.\n   *\n   * ### Configuring Compatibility\n   *\n   * To configure your compatibility version, set the `compatWith` to the version you\n   * are compatible with on the `emberData` config in your `ember-cli-build.js` file.\n   *\n   * ```js\n   * let app = new EmberApp(defaults, {\n   *   emberData: {\n   *     compatWith: '3.12',\n   *   },\n   * });\n   * ```\n   *\n   * The complete list of which versions specific deprecations will be removed in\n   * can be found [here](https://github.com/emberjs/data/tree/master/packages/private-build-infra/addon/current-deprecations.ts \"List of EmberData Deprecations\")\n   *\n   * @module @ember-data/deprecations\n   * @main @ember-data/deprecations\n   */\n  var _default = _exports.default = {\n    DEPRECATE_CATCH_ALL: '99.0',\n    DEPRECATE_EVENTED_API_USAGE: '3.12',\n    DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS: '3.12',\n    DEPRECATE_MODEL_TOJSON: '3.15',\n    DEPRECATE_LEGACY_TEST_HELPER_SUPPORT: '3.15',\n    DEPRECATE_LEGACY_TEST_REGISTRATIONS: '3.15',\n    DEPRECATE_DEFAULT_SERIALIZER: '3.15',\n    DEPRECATE_DEFAULT_ADAPTER: '3.15',\n    DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE: '3.15',\n    DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA: '3.12',\n    DEPRECATE_BELONGS_TO_REFERENCE_PUSH: '3.16',\n    DEPRECATE_REFERENCE_INTERNAL_MODEL: '3.19',\n    DEPRECATE_NAJAX: '3.22'\n  };\n});","define(\"@ember-data/private-build-infra/deprecations\", [\"exports\", \"@ember-data/private-build-infra/current-deprecations\"], function (_exports, _currentDeprecations) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.DEPRECATE_REFERENCE_INTERNAL_MODEL = _exports.DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS = _exports.DEPRECATE_NAJAX = _exports.DEPRECATE_MODEL_TOJSON = _exports.DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA = _exports.DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE = _exports.DEPRECATE_LEGACY_TEST_REGISTRATIONS = _exports.DEPRECATE_LEGACY_TEST_HELPER_SUPPORT = _exports.DEPRECATE_EVENTED_API_USAGE = _exports.DEPRECATE_DEFAULT_SERIALIZER = _exports.DEPRECATE_DEFAULT_ADAPTER = _exports.DEPRECATE_CATCH_ALL = _exports.DEPRECATE_BELONGS_TO_REFERENCE_PUSH = void 0;\n  function deprecationState(deprecationName) {\n    // if we hit this at runtime and the deprecation exists it is always activated\n    return deprecationName in _currentDeprecations.default;\n  }\n\n  // deprecations\n  const DEPRECATE_CATCH_ALL = _exports.DEPRECATE_CATCH_ALL = deprecationState('DEPRECATE_CATCH_ALL');\n  const DEPRECATE_EVENTED_API_USAGE = _exports.DEPRECATE_EVENTED_API_USAGE = deprecationState('DEPRECATE_EVENTED_API_USAGE');\n  const DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS = _exports.DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS = deprecationState('DEPRECATE_RECORD_LIFECYCLE_EVENT_METHODS');\n  const DEPRECATE_MODEL_TOJSON = _exports.DEPRECATE_MODEL_TOJSON = deprecationState('DEPRECATE_MODEL_TOJSON');\n  const DEPRECATE_LEGACY_TEST_HELPER_SUPPORT = _exports.DEPRECATE_LEGACY_TEST_HELPER_SUPPORT = deprecationState('DEPRECATE_LEGACY_TEST_HELPER_SUPPORT');\n  const DEPRECATE_LEGACY_TEST_REGISTRATIONS = _exports.DEPRECATE_LEGACY_TEST_REGISTRATIONS = deprecationState('DEPRECATE_LEGACY_TEST_REGISTRATIONS');\n  const DEPRECATE_DEFAULT_SERIALIZER = _exports.DEPRECATE_DEFAULT_SERIALIZER = deprecationState('DEPRECATE_DEFAULT_SERIALIZER');\n  const DEPRECATE_DEFAULT_ADAPTER = _exports.DEPRECATE_DEFAULT_ADAPTER = deprecationState('DEPRECATE_DEFAULT_ADAPTER');\n  const DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE = _exports.DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE = deprecationState('DEPRECATE_METHOD_CALLS_ON_DESTROY_STORE');\n  const DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA = _exports.DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA = deprecationState('DEPRECATE_MISMATCHED_INVERSE_RELATIONSHIP_DATA');\n  const DEPRECATE_BELONGS_TO_REFERENCE_PUSH = _exports.DEPRECATE_BELONGS_TO_REFERENCE_PUSH = deprecationState('DEPRECATE_BELONGS_TO_REFERENCE_PUSH');\n  const DEPRECATE_REFERENCE_INTERNAL_MODEL = _exports.DEPRECATE_REFERENCE_INTERNAL_MODEL = deprecationState('DEPRECATE_REFERENCE_INTERNAL_MODEL');\n  const DEPRECATE_NAJAX = _exports.DEPRECATE_NAJAX = deprecationState('DEPRECATE_NAJAX');\n});","define(\"@ember-data/private-build-infra/index\", [\"exports\", \"require\", \"@ember-data/private-build-infra/available-packages\"], function (_exports, _require, _availablePackages) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.HAS_STORE_PACKAGE = _exports.HAS_SERIALIZER_PACKAGE = _exports.HAS_RECORD_DATA_PACKAGE = _exports.HAS_MODEL_PACKAGE = _exports.HAS_EMBER_DATA_PACKAGE = _exports.HAS_DEBUG_PACKAGE = _exports.HAS_ADAPTER_PACKAGE = void 0;\n  function flagState(flag) {\n    const packageName = _availablePackages.default[flag];\n    return (0, _require.has)(packageName) || false;\n  }\n  const HAS_EMBER_DATA_PACKAGE = _exports.HAS_EMBER_DATA_PACKAGE = flagState('HAS_EMBER_DATA_PACKAGE');\n  const HAS_STORE_PACKAGE = _exports.HAS_STORE_PACKAGE = flagState('HAS_STORE_PACKAGE');\n  const HAS_MODEL_PACKAGE = _exports.HAS_MODEL_PACKAGE = flagState('HAS_MODEL_PACKAGE');\n  const HAS_ADAPTER_PACKAGE = _exports.HAS_ADAPTER_PACKAGE = flagState('HAS_ADAPTER_PACKAGE');\n  const HAS_SERIALIZER_PACKAGE = _exports.HAS_SERIALIZER_PACKAGE = flagState('HAS_SERIALIZER_PACKAGE');\n  const HAS_DEBUG_PACKAGE = _exports.HAS_DEBUG_PACKAGE = flagState('HAS_DEBUG_PACKAGE');\n  const HAS_RECORD_DATA_PACKAGE = _exports.HAS_RECORD_DATA_PACKAGE = flagState('HAS_RECORD_DATA_PACKAGE');\n});","define('@ember-data/record-data/-private', ['exports', '@ember-data/store/-private', '@ember-data/store/-debug', '@ember/ordered-set'], function (exports, Private, Debug, EmberOrderedSet) { 'use strict';\n\n  EmberOrderedSet = EmberOrderedSet && Object.prototype.hasOwnProperty.call(EmberOrderedSet, 'default') ? EmberOrderedSet['default'] : EmberOrderedSet;\n\n  // Used by the store to normalize IDs entering the store.  Despite the fact\n  // that developers may provide IDs as numbers (e.g., `store.findRecord('person', 1)`),\n  // it is important that internally we use strings, since IDs may be serialized\n  // and lose type information.  For example, Ember's router may put a record's\n  // ID into the URL, and if we later try to deserialize that URL and find the\n  // corresponding record, we will not know if it is a string or a number.\n\n  function coerceId(id) {\n    if (id === null || id === undefined || id === '') {\n      return null;\n    }\n    if (typeof id === 'string') {\n      return id;\n    }\n    if (typeof id === 'symbol') {\n      return id.toString();\n    }\n    return '' + id;\n  }\n\n  /*\n    This method normalizes a link to an \"links object\". If the passed link is\n    already an object it's returned without any modifications.\n\n    See http://jsonapi.org/format/#document-links for more information.\n\n    @method _normalizeLink\n    @internal\n    @param {String} link\n    @return {Object|null}\n  */\n\n  function _normalizeLink(link) {\n    switch (typeof link) {\n      case 'object':\n        return link;\n      case 'string':\n        return {\n          href: link\n        };\n    }\n    return null;\n  }\n\n  class EmberDataOrderedSet extends EmberOrderedSet {\n    static create() {\n      return new this();\n    }\n    addWithIndex(obj, idx) {\n      var guid = Ember.guidFor(obj);\n      var presenceSet = this.presenceSet;\n      var list = this.list;\n      if (presenceSet[guid] === true) {\n        return;\n      }\n      presenceSet[guid] = true;\n      if (idx === undefined || idx === null) {\n        list.push(obj);\n      } else {\n        list.splice(idx, 0, obj);\n      }\n      this.size += 1;\n      return this;\n    }\n    deleteWithIndex(obj, idx) {\n      var guid = Ember.guidFor(obj);\n      var presenceSet = this.presenceSet;\n      var list = this.list;\n      if (presenceSet[guid] === true) {\n        delete presenceSet[guid];\n        ( !(idx === undefined || list[idx] === obj) && Ember.assert('object is not present at specified index', idx === undefined || list[idx] === obj));\n        var index = idx !== undefined ? idx : list.indexOf(obj);\n        if (index > -1) {\n          list.splice(index, 1);\n        }\n        this.size = list.length;\n        return true;\n      } else {\n        return false;\n      }\n    }\n  }\n\n  function relationshipsFor(instance) {\n    var recordData = Private.recordDataFor(instance) || instance;\n    return recordData._relationships;\n  }\n  function relationshipStateFor(instance, propertyName) {\n    return relationshipsFor(instance).get(propertyName);\n  }\n  function implicitRelationshipsFor(instance) {\n    var recordData = Private.recordDataFor(instance) || instance;\n    return recordData._implicitRelationships;\n  }\n  function implicitRelationshipStateFor(instance, propertyName) {\n    return implicitRelationshipsFor(instance)[propertyName];\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  class Relationship {\n    constructor(store, inverseKey, relationshipMeta, recordData, inverseIsAsync) {\n      this.inverseIsAsync = void 0;\n      this.kind = void 0;\n      this.recordData = void 0;\n      this.members = void 0;\n      this.canonicalMembers = void 0;\n      this.store = void 0;\n      this.key = void 0;\n      this.inverseKey = void 0;\n      this.isAsync = void 0;\n      this.isPolymorphic = void 0;\n      this.relationshipMeta = void 0;\n      this.inverseKeyForImplicit = void 0;\n      this.meta = void 0;\n      this.__inverseMeta = void 0;\n      this._tempModelName = void 0;\n      this.shouldForceReload = false;\n      this.relationshipIsStale = void 0;\n      this.hasDematerializedInverse = void 0;\n      this.hasAnyRelationshipData = void 0;\n      this.relationshipIsEmpty = void 0;\n      this.hasFailedLoadAttempt = false;\n      this.links = void 0;\n      this.willSync = void 0;\n      this.inverseIsAsync = inverseIsAsync;\n      this.kind = relationshipMeta.kind;\n      var async = relationshipMeta.options.async;\n      var polymorphic = relationshipMeta.options.polymorphic;\n      this.recordData = recordData;\n      this.members = new EmberDataOrderedSet();\n      this.canonicalMembers = new EmberDataOrderedSet();\n      this.store = store;\n      this.key = relationshipMeta.key || null;\n      this.inverseKey = inverseKey;\n      this.isAsync = typeof async === 'undefined' ? true : async;\n      this.isPolymorphic = typeof polymorphic === 'undefined' ? false : polymorphic;\n      this.relationshipMeta = relationshipMeta;\n      //This probably breaks for polymorphic relationship in complex scenarios, due to\n      //multiple possible modelNames\n      this.inverseKeyForImplicit = this._tempModelName + this.key;\n      this.meta = null;\n      this.__inverseMeta = undefined;\n\n      /*\n       This flag forces fetch. `true` for a single request once `reload()`\n         has been called `false` at all other times.\n      */\n      // this.shouldForceReload = false;\n\n      /*\n         This flag indicates whether we should\n          re-fetch the relationship the next time\n          it is accessed.\n           The difference between this flag and `shouldForceReload`\n          is in how we treat the presence of partially missing data:\n            - for a forced reload, we will reload the link or EVERY record\n            - for a stale reload, we will reload the link (if present) else only MISSING records\n           Ideally these flags could be merged, but because we don't give the\n          request layer the option of deciding how to resolve the data being queried\n          we are forced to differentiate for now.\n           It is also possible for a relationship to remain stale after a forced reload; however,\n          in this case `hasFailedLoadAttempt` ought to be `true`.\n         false when\n          => recordData.isNew() on initial setup\n          => a previously triggered request has resolved\n          => we get relationship data via push\n         true when\n          => !recordData.isNew() on initial setup\n          => an inverse has been unloaded\n          => we get a new link for the relationship\n         TODO @runspired unskip the acceptance tests and fix these flags\n       */\n      this.relationshipIsStale = false;\n\n      /*\n       This flag indicates whether we should\n        **partially** re-fetch the relationship the\n        next time it is accessed.\n       false when\n        => initial setup\n        => a previously triggered request has resolved\n       true when\n        => an inverse has been unloaded\n      */\n      this.hasDematerializedInverse = false;\n\n      /*\n        This flag indicates whether we should consider the content\n         of this relationship \"known\".\n         If we have no relationship knowledge, and the relationship\n         is `async`, we will attempt to fetch the relationship on\n         access if it is also stale.\n        Snapshot uses this to tell the difference between unknown\n        (`undefined`) or empty (`null`). The reason for this is that\n        we wouldn't want to serialize  unknown relationships as `null`\n        as that might overwrite remote state.\n         All relationships for a newly created (`store.createRecord()`) are\n         considered known (`hasAnyRelationshipData === true`).\n         true when\n          => we receive a push with either new data or explicit empty (`[]` or `null`)\n          => the relationship is a belongsTo and we have received data from\n               the other side.\n         false when\n          => we have received no signal about what data belongs in this relationship\n          => the relationship is a hasMany and we have only received data from\n              the other side.\n       */\n      this.hasAnyRelationshipData = false;\n\n      /*\n        Flag that indicates whether an empty relationship is explicitly empty\n          (signaled by push giving us an empty array or null relationship)\n          e.g. an API response has told us that this relationship is empty.\n         Thus far, it does not appear that we actually need this flag; however,\n          @runspired has found it invaluable when debugging relationship tests\n          to determine whether (and why if so) we are in an incorrect state.\n         true when\n          => we receive a push with explicit empty (`[]` or `null`)\n          => we have received no signal about what data belongs in this relationship\n          => on initial create (as no signal is known yet)\n         false at all other times\n       */\n      this.relationshipIsEmpty = true;\n\n      /*\n        Flag def here for reference, defined as getter in has-many.js / belongs-to.js\n         true when\n          => hasAnyRelationshipData is true\n          AND\n          => members (NOT canonicalMembers) @each !isEmpty\n         TODO, consider changing the conditional here from !isEmpty to !hiddenFromRecordArrays\n      */\n\n      // TODO do we want this anymore? Seems somewhat useful\n      //   especially if we rename to `hasUpdatedLink`\n      //   which would tell us slightly more about why the\n      //   relationship is stale\n      // this.updatedLink = false;\n    }\n    get isNew() {\n      return this.recordData.isNew();\n    }\n    _inverseIsAsync() {\n      return !!this.inverseIsAsync;\n    }\n    _inverseIsSync() {\n      return !!(this.inverseKey && !this.inverseIsAsync);\n    }\n    _hasSupportForImplicitRelationships(recordData) {\n      return recordData._implicitRelationships !== undefined && recordData._implicitRelationships !== null;\n    }\n    _hasSupportForRelationships(recordData) {\n      return recordData._relationships !== undefined && recordData._relationships !== null;\n    }\n    get _inverseMeta() {\n      if (this.__inverseMeta === undefined) {\n        var inverseMeta = null;\n        if (this.inverseKey) {\n          // We know we have a full inverse relationship\n          var type = this.relationshipMeta.type;\n          var inverseModelClass = this.store.modelFor(type);\n          var inverseRelationships = Ember.get(inverseModelClass, 'relationshipsByName');\n          inverseMeta = inverseRelationships.get(this.inverseKey);\n        }\n        this.__inverseMeta = inverseMeta;\n      }\n      return this.__inverseMeta;\n    }\n    recordDataDidDematerialize() {\n      var inverseKey = this.inverseKey;\n      if (!inverseKey) {\n        return;\n      }\n\n      // we actually want a union of members and canonicalMembers\n      // they should be disjoint but currently are not due to a bug\n      this.forAllMembers(inverseRecordData => {\n        if (!this._hasSupportForRelationships(inverseRecordData)) {\n          return;\n        }\n        var relationship = relationshipStateFor(inverseRecordData, inverseKey);\n        var belongsToRelationship = inverseRecordData.getBelongsTo(inverseKey)._relationship;\n\n        // For canonical members, it is possible that inverseRecordData has already been associated to\n        // to another record. For such cases, do not dematerialize the inverseRecordData\n        if (!belongsToRelationship || !belongsToRelationship.inverseRecordData || this.recordData === belongsToRelationship.inverseRecordData) {\n          relationship.inverseDidDematerialize(this.recordData);\n        }\n      });\n    }\n    forAllMembers(callback) {\n      var seen = Object.create(null);\n      for (var i = 0; i < this.members.list.length; i++) {\n        var inverseInternalModel = this.members.list[i];\n        var id = Ember.guidFor(inverseInternalModel);\n        if (!seen[id]) {\n          seen[id] = true;\n          callback(inverseInternalModel);\n        }\n      }\n      for (var _i = 0; _i < this.canonicalMembers.list.length; _i++) {\n        var _inverseInternalModel = this.canonicalMembers.list[_i];\n        var _id = Ember.guidFor(_inverseInternalModel);\n        if (!seen[_id]) {\n          seen[_id] = true;\n          callback(_inverseInternalModel);\n        }\n      }\n    }\n    inverseDidDematerialize(inverseRecordData) {\n      if (!this.isAsync || inverseRecordData && inverseRecordData.isNew()) {\n        // unloading inverse of a sync relationship is treated as a client-side\n        // delete, so actually remove the models don't merely invalidate the cp\n        // cache.\n        // if the record being unloaded only exists on the client, we similarly\n        // treat it as a client side delete\n        this.removeRecordDataFromOwn(inverseRecordData);\n        this.removeCanonicalRecordDataFromOwn(inverseRecordData);\n        this.setRelationshipIsEmpty(true);\n      } else {\n        this.setHasDematerializedInverse(true);\n      }\n    }\n    updateMeta(meta) {\n      this.meta = meta;\n    }\n    clear() {\n      var members = this.members.list;\n      while (members.length > 0) {\n        var member = members[0];\n        this.removeRecordData(member);\n      }\n      var canonicalMembers = this.canonicalMembers.list;\n      while (canonicalMembers.length > 0) {\n        var _member = canonicalMembers[0];\n        this.removeCanonicalRecordData(_member);\n      }\n    }\n    removeAllRecordDatasFromOwn() {\n      this.setRelationshipIsStale(true);\n      this.members.clear();\n    }\n    removeAllCanonicalRecordDatasFromOwn() {\n      this.canonicalMembers.clear();\n      this.flushCanonicalLater();\n    }\n    removeRecordDatas(recordDatas) {\n      recordDatas.forEach(recordData => this.removeRecordData(recordData));\n    }\n    addRecordDatas(recordDatas, idx) {\n      recordDatas.forEach(recordData => {\n        this.addRecordData(recordData, idx);\n        if (idx !== undefined) {\n          idx++;\n        }\n      });\n    }\n    addCanonicalRecordData(recordData, idx) {\n      if (!this.canonicalMembers.has(recordData)) {\n        this.canonicalMembers.add(recordData);\n        this.setupInverseRelationship(recordData);\n      }\n      this.flushCanonicalLater();\n      this.setHasAnyRelationshipData(true);\n    }\n    setupInverseRelationship(recordData) {\n      if (this.inverseKey) {\n        if (!this._hasSupportForRelationships(recordData)) {\n          return;\n        }\n        var relationship = relationshipStateFor(recordData, this.inverseKey);\n        // if we have only just initialized the inverse relationship, then it\n        // already has this.recordData in its canonicalMembers, so skip the\n        // unnecessary work.  The exception to this is polymorphic\n        // relationships whose members are determined by their inverse, as those\n        // relationships cannot efficiently find their inverse payloads.\n        relationship.addCanonicalRecordData(this.recordData);\n      } else {\n        if (!this._hasSupportForImplicitRelationships(recordData)) {\n          return;\n        }\n        var relationships = recordData._implicitRelationships;\n        var _relationship = relationships[this.inverseKeyForImplicit];\n        if (!_relationship) {\n          _relationship = relationships[this.inverseKeyForImplicit] = new Relationship(this.store, this.key, {\n            options: {\n              async: this.isAsync\n            }\n          }, recordData);\n        }\n        _relationship.addCanonicalRecordData(this.recordData);\n      }\n    }\n    removeCanonicalRecordDatas(recordDatas, idx) {\n      for (var i = 0; i < recordDatas.length; i++) {\n        if (idx !== undefined) {\n          this.removeCanonicalRecordData(recordDatas[i], i + idx);\n        } else {\n          this.removeCanonicalRecordData(recordDatas[i]);\n        }\n      }\n    }\n    removeCanonicalRecordData(recordData, idx) {\n      if (this.canonicalMembers.has(recordData)) {\n        this.removeCanonicalRecordDataFromOwn(recordData, idx);\n        if (this.inverseKey) {\n          this.removeCanonicalRecordDataFromInverse(recordData);\n        } else {\n          if (this._hasSupportForImplicitRelationships(recordData) && recordData._implicitRelationships[this.inverseKeyForImplicit]) {\n            recordData._implicitRelationships[this.inverseKeyForImplicit].removeCanonicalRecordData(this.recordData);\n          }\n        }\n      }\n      this.flushCanonicalLater();\n    }\n    addRecordData(recordData, idx) {\n      if (!this.members.has(recordData)) {\n        this.members.addWithIndex(recordData, idx);\n        this.notifyRecordRelationshipAdded(recordData, idx);\n        if (this._hasSupportForRelationships(recordData) && this.inverseKey) {\n          relationshipStateFor(recordData, this.inverseKey).addRecordData(this.recordData);\n        } else {\n          if (this._hasSupportForImplicitRelationships(recordData)) {\n            if (!recordData._implicitRelationships[this.inverseKeyForImplicit]) {\n              recordData._implicitRelationships[this.inverseKeyForImplicit] = new Relationship(this.store, this.key, {\n                options: {\n                  async: this.isAsync\n                }\n              }, recordData, this.isAsync);\n            }\n            recordData._implicitRelationships[this.inverseKeyForImplicit].addRecordData(this.recordData);\n          }\n        }\n      }\n      this.setHasAnyRelationshipData(true);\n    }\n    removeRecordData(recordData) {\n      if (this.members.has(recordData)) {\n        this.removeRecordDataFromOwn(recordData);\n        if (this.inverseKey) {\n          this.removeRecordDataFromInverse(recordData);\n        } else {\n          if (this._hasSupportForImplicitRelationships(recordData) && recordData._implicitRelationships[this.inverseKeyForImplicit]) {\n            recordData._implicitRelationships[this.inverseKeyForImplicit].removeRecordData(this.recordData);\n          }\n        }\n      }\n    }\n    removeRecordDataFromInverse(recordData) {\n      if (!this._hasSupportForRelationships(recordData)) {\n        return;\n      }\n      if (this.inverseKey) {\n        var inverseRelationship = relationshipStateFor(recordData, this.inverseKey);\n        //Need to check for existence, as the record might unloading at the moment\n        if (inverseRelationship) {\n          inverseRelationship.removeRecordDataFromOwn(this.recordData);\n        }\n      }\n    }\n    removeRecordDataFromOwn(recordData, idx) {\n      this.members.delete(recordData);\n    }\n    removeCanonicalRecordDataFromInverse(recordData) {\n      if (!this._hasSupportForRelationships(recordData)) {\n        return;\n      }\n      if (this.inverseKey) {\n        var inverseRelationship = relationshipStateFor(recordData, this.inverseKey);\n        //Need to check for existence, as the record might unloading at the moment\n        if (inverseRelationship) {\n          inverseRelationship.removeCanonicalRecordDataFromOwn(this.recordData);\n        }\n      }\n    }\n    removeCanonicalRecordDataFromOwn(recordData, idx) {\n      this.canonicalMembers.deleteWithIndex(recordData, idx);\n      this.flushCanonicalLater();\n    }\n\n    /*\n      Call this method once a record deletion has been persisted\n      to purge it from BOTH current and canonical state of all\n      relationships.\n       @method removeCompletelyFromInverse\n      @private\n     */\n    removeCompletelyFromInverse() {\n      if (!this.inverseKey && !this.inverseKeyForImplicit) {\n        return;\n      }\n\n      // we actually want a union of members and canonicalMembers\n      // they should be disjoint but currently are not due to a bug\n      var seen = Object.create(null);\n      var recordData = this.recordData;\n      var unload;\n      if (this.inverseKey) {\n        unload = inverseRecordData => {\n          var id = Ember.guidFor(inverseRecordData);\n          if (this._hasSupportForRelationships(inverseRecordData) && seen[id] === undefined) {\n            if (this.inverseKey) {\n              var relationship = relationshipStateFor(inverseRecordData, this.inverseKey);\n              relationship.removeCompletelyFromOwn(recordData);\n            }\n            seen[id] = true;\n          }\n        };\n      } else {\n        unload = inverseRecordData => {\n          var id = Ember.guidFor(inverseRecordData);\n          if (this._hasSupportForImplicitRelationships(inverseRecordData) && seen[id] === undefined) {\n            var relationship = implicitRelationshipStateFor(inverseRecordData, this.inverseKeyForImplicit);\n            relationship.removeCompletelyFromOwn(recordData);\n            seen[id] = true;\n          }\n        };\n      }\n      this.members.forEach(unload);\n      this.canonicalMembers.forEach(unload);\n      if (!this.isAsync) {\n        this.clear();\n      }\n    }\n\n    /*\n      Removes the given RecordData from BOTH canonical AND current state.\n       This method is useful when either a deletion or a rollback on a new record\n      needs to entirely purge itself from an inverse relationship.\n     */\n    removeCompletelyFromOwn(recordData) {\n      this.canonicalMembers.delete(recordData);\n      this.members.delete(recordData);\n    }\n    flushCanonical() {\n      var list = this.members.list;\n      this.willSync = false;\n      //a hack for not removing new RecordDatas\n      //TODO remove once we have proper diffing\n      var newRecordDatas = [];\n      for (var i = 0; i < list.length; i++) {\n        // TODO Igor deal with this\n        if (list[i].isNew()) {\n          newRecordDatas.push(list[i]);\n        }\n      }\n\n      //TODO(Igor) make this less abysmally slow\n      this.members = this.canonicalMembers.copy();\n      for (var _i2 = 0; _i2 < newRecordDatas.length; _i2++) {\n        this.members.add(newRecordDatas[_i2]);\n      }\n    }\n    flushCanonicalLater() {\n      if (this.willSync) {\n        return;\n      }\n      this.willSync = true;\n      // Reaching back into the store to use ED's runloop\n      this.store._updateRelationshipState(this);\n    }\n    updateLinks(links) {\n      this.links = links;\n    }\n    updateRecordDatasFromAdapter(recordDatas) {\n      this.setHasAnyRelationshipData(true);\n      //TODO(Igor) move this to a proper place\n      //TODO Once we have adapter support, we need to handle updated and canonical changes\n      this.computeChanges(recordDatas);\n    }\n    computeChanges(recordDatas) {}\n    notifyRecordRelationshipAdded(recordData, idxs) {}\n    setHasAnyRelationshipData(value) {\n      this.hasAnyRelationshipData = value;\n    }\n    setHasDematerializedInverse(value) {\n      this.hasDematerializedInverse = value;\n    }\n    setRelationshipIsStale(value) {\n      this.relationshipIsStale = value;\n    }\n    setRelationshipIsEmpty(value) {\n      this.relationshipIsEmpty = value;\n    }\n    setShouldForceReload(value) {\n      this.shouldForceReload = value;\n    }\n    setHasFailedLoadAttempt(value) {\n      this.hasFailedLoadAttempt = value;\n    }\n\n    /*\n     `push` for a relationship allows the store to push a JSON API Relationship\n     Object onto the relationship. The relationship will then extract and set the\n     meta, data and links of that relationship.\n      `push` use `updateMeta`, `updateData` and `updateLink` to update the state\n     of the relationship.\n     */\n    push(payload) {\n      var hasRelationshipDataProperty = false;\n      var hasLink = false;\n      if (payload.meta) {\n        this.updateMeta(payload.meta);\n      }\n      if (payload.data !== undefined) {\n        hasRelationshipDataProperty = true;\n        this.updateData(payload.data);\n      } else if (this.isAsync === false && !this.hasAnyRelationshipData) {\n        hasRelationshipDataProperty = true;\n        var data = this.kind === 'hasMany' ? [] : null;\n        this.updateData(data);\n      }\n      if (payload.links) {\n        var originalLinks = this.links;\n        this.updateLinks(payload.links);\n        if (payload.links.related) {\n          var relatedLink = _normalizeLink(payload.links.related);\n          var currentLink = originalLinks && originalLinks.related ? _normalizeLink(originalLinks.related) : null;\n          var currentLinkHref = currentLink ? currentLink.href : null;\n          if (relatedLink && relatedLink.href && relatedLink.href !== currentLinkHref) {\n            ( Ember.warn(`You pushed a record of type '${this.recordData.modelName}' with a relationship '${this.key}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. EmberData will treat this relationship as known-to-be-empty.`, this.isAsync || this.hasAnyRelationshipData, {\n              id: 'ds.store.push-link-for-sync-relationship'\n            }));\n            ( !(typeof relatedLink.href === 'string' || relatedLink.href === null) && Ember.assert(`You have pushed a record of type '${this.recordData.modelName}' with '${this.key}' as a link, but the value of that link is not a string.`, typeof relatedLink.href === 'string' || relatedLink.href === null));\n            hasLink = true;\n          }\n        }\n      }\n\n      /*\n       Data being pushed into the relationship might contain only data or links,\n       or a combination of both.\n        IF contains only data\n       IF contains both links and data\n        relationshipIsEmpty -> true if is empty array (has-many) or is null (belongs-to)\n        hasAnyRelationshipData -> true\n        hasDematerializedInverse -> false\n        relationshipIsStale -> false\n        allInverseRecordsAreLoaded -> run-check-to-determine\n        IF contains only links\n        relationshipIsStale -> true\n       */\n      this.setHasFailedLoadAttempt(false);\n      if (hasRelationshipDataProperty) {\n        var relationshipIsEmpty = payload.data === null || Array.isArray(payload.data) && payload.data.length === 0;\n        this.setHasAnyRelationshipData(true);\n        this.setRelationshipIsStale(false);\n        this.setHasDematerializedInverse(false);\n        this.setRelationshipIsEmpty(relationshipIsEmpty);\n      } else if (hasLink) {\n        this.setRelationshipIsStale(true);\n        var recordData = this.recordData;\n        var storeWrapper = this.recordData.storeWrapper;\n        {\n          storeWrapper.notifyPropertyChange(recordData.modelName, recordData.id, recordData.clientId,\n          // We know we are not an implicit relationship here\n          this.key);\n        }\n      }\n    }\n    localStateIsEmpty() {}\n    updateData(payload) {}\n    destroy() {}\n  }\n\n  class BelongsToRelationship extends Relationship {\n    constructor(store, inverseKey, relationshipMeta, recordData, inverseIsAsync) {\n      super(store, inverseKey, relationshipMeta, recordData, inverseIsAsync);\n      this.inverseRecordData = void 0;\n      this.canonicalState = void 0;\n      this.key = void 0;\n      this.key = relationshipMeta.key;\n      this.inverseRecordData = null;\n      this.canonicalState = null;\n      this.key = relationshipMeta.key;\n    }\n    setRecordData(recordData) {\n      if (recordData) {\n        this.addRecordData(recordData);\n      } else if (this.inverseRecordData) {\n        this.removeRecordData(this.inverseRecordData);\n      }\n      this.setHasAnyRelationshipData(true);\n      this.setRelationshipIsStale(false);\n      this.setRelationshipIsEmpty(false);\n    }\n    setCanonicalRecordData(recordData) {\n      if (recordData) {\n        this.addCanonicalRecordData(recordData);\n      } else if (this.canonicalState) {\n        this.removeCanonicalRecordData(this.canonicalState);\n      }\n      this.flushCanonicalLater();\n    }\n    addCanonicalRecordData(recordData) {\n      if (this.canonicalMembers.has(recordData)) {\n        return;\n      }\n      if (this.canonicalState) {\n        this.removeCanonicalRecordData(this.canonicalState);\n      }\n      this.canonicalState = recordData;\n      super.addCanonicalRecordData(recordData);\n      this.setHasAnyRelationshipData(true);\n      this.setRelationshipIsEmpty(false);\n    }\n    inverseDidDematerialize() {\n      super.inverseDidDematerialize(this.inverseRecordData);\n      this.notifyBelongsToChange();\n    }\n    removeCompletelyFromOwn(recordData) {\n      super.removeCompletelyFromOwn(recordData);\n      if (this.canonicalState === recordData) {\n        this.canonicalState = null;\n      }\n      if (this.inverseRecordData === recordData) {\n        this.inverseRecordData = null;\n        this.notifyBelongsToChange();\n      }\n    }\n    removeCompletelyFromInverse() {\n      super.removeCompletelyFromInverse();\n      this.inverseRecordData = null;\n    }\n    flushCanonical() {\n      //temporary fix to not remove newly created records if server returned null.\n      //TODO remove once we have proper diffing\n      if (this.inverseRecordData && this.inverseRecordData.isNew() && !this.canonicalState) {\n        this.willSync = false;\n        return;\n      }\n      if (this.inverseRecordData !== this.canonicalState) {\n        this.inverseRecordData = this.canonicalState;\n        this.notifyBelongsToChange();\n      }\n      super.flushCanonical();\n    }\n    addRecordData(recordData) {\n      if (this.members.has(recordData)) {\n        return;\n      }\n\n      // TODO Igor cleanup\n      Debug.assertPolymorphicType(this.recordData, this.relationshipMeta, recordData, this.store);\n      if (this.inverseRecordData) {\n        this.removeRecordData(this.inverseRecordData);\n      }\n      this.inverseRecordData = recordData;\n      super.addRecordData(recordData);\n      this.notifyBelongsToChange();\n    }\n    removeRecordDataFromOwn(recordData) {\n      if (!this.members.has(recordData)) {\n        return;\n      }\n      this.inverseRecordData = null;\n      super.removeRecordDataFromOwn(recordData);\n      this.notifyBelongsToChange();\n    }\n    removeAllRecordDatasFromOwn() {\n      super.removeAllRecordDatasFromOwn();\n      this.inverseRecordData = null;\n      this.notifyBelongsToChange();\n    }\n    notifyBelongsToChange() {\n      var recordData = this.recordData;\n      var storeWrapper = this.recordData.storeWrapper;\n      storeWrapper.notifyBelongsToChange(recordData.modelName, recordData.id, recordData.clientId, this.key);\n    }\n    removeCanonicalRecordDataFromOwn(recordData, idx) {\n      if (!this.canonicalMembers.has(recordData)) {\n        return;\n      }\n      this.canonicalState = null;\n      this.setHasAnyRelationshipData(true);\n      this.setRelationshipIsEmpty(true);\n      super.removeCanonicalRecordDataFromOwn(recordData, idx);\n    }\n    removeAllCanonicalRecordDatasFromOwn() {\n      super.removeAllCanonicalRecordDatasFromOwn();\n      this.canonicalState = null;\n    }\n    getData() {\n      var data;\n      var payload = {};\n      if (this.inverseRecordData) {\n        data = this.inverseRecordData.getResourceIdentifier();\n      }\n      if (this.inverseRecordData === null && this.hasAnyRelationshipData) {\n        data = null;\n      }\n      if (this.links) {\n        payload.links = this.links;\n      }\n      if (data !== undefined) {\n        payload.data = data;\n      }\n      if (this.meta) {\n        payload.meta = this.meta;\n      }\n      payload._relationship = this;\n      return payload;\n    }\n    updateData(data) {\n      var recordData;\n      if (Ember.isNone(data)) {\n        recordData = null;\n      }\n      ( !(data === null || data.id !== undefined && data.type !== undefined) && Ember.assert(`Ember Data expected the data for the ${this.key} relationship on a ${this.recordData.toString()} to be in a JSON API format and include an \\`id\\` and \\`type\\` property but it found ${Ember.inspect(data)}. Please check your serializer and make sure it is serializing the relationship payload into a JSON API format.`, data === null || data.id !== undefined && data.type !== undefined));\n      if (recordData !== null) {\n        recordData = this.recordData.storeWrapper.recordDataFor(data.type, data.id);\n      }\n      this.setCanonicalRecordData(recordData);\n    }\n  }\n\n  /**\n    @module @ember-data/record-data\n  */\n\n  class ManyRelationship extends Relationship {\n    constructor(store, inverseKey, relationshipMeta, recordData, inverseIsAsync) {\n      super(store, inverseKey, relationshipMeta, recordData, inverseIsAsync);\n      // persisted state\n      this.canonicalState = void 0;\n      this.currentState = void 0;\n      this._willUpdateManyArray = void 0;\n      this._pendingManyArrayUpdates = void 0;\n      this.key = void 0;\n      this.canonicalState = [];\n      // local client state\n      this.currentState = [];\n      this._willUpdateManyArray = false;\n      this._pendingManyArrayUpdates = null;\n      this.key = relationshipMeta.key;\n    }\n    addCanonicalRecordData(recordData, idx) {\n      if (this.canonicalMembers.has(recordData)) {\n        return;\n      }\n      if (idx !== undefined) {\n        this.canonicalState.splice(idx, 0, recordData);\n      } else {\n        this.canonicalState.push(recordData);\n      }\n      super.addCanonicalRecordData(recordData, idx);\n    }\n    inverseDidDematerialize(inverseRecordData) {\n      super.inverseDidDematerialize(inverseRecordData);\n      if (this.isAsync) {\n        this.notifyManyArrayIsStale();\n      }\n    }\n    addRecordData(recordData, idx) {\n      if (this.members.has(recordData)) {\n        return;\n      }\n\n      // TODO Type this\n      Debug.assertPolymorphicType(this.recordData, this.relationshipMeta, recordData, this.store);\n      super.addRecordData(recordData, idx);\n      // make lazy later\n      if (idx === undefined) {\n        idx = this.currentState.length;\n      }\n      this.currentState.splice(idx, 0, recordData);\n      // TODO Igor consider making direct to remove the indirection\n      // We are not lazily accessing the manyArray here because the change is coming from app side\n      // this.manyArray.flushCanonical(this.currentState);\n      this.notifyHasManyChange();\n    }\n    removeCanonicalRecordDataFromOwn(recordData, idx) {\n      var i = idx;\n      if (!this.canonicalMembers.has(recordData)) {\n        return;\n      }\n      if (i === undefined) {\n        i = this.canonicalState.indexOf(recordData);\n      }\n      if (i > -1) {\n        this.canonicalState.splice(i, 1);\n      }\n      super.removeCanonicalRecordDataFromOwn(recordData, idx);\n      //TODO(Igor) Figure out what to do here\n    }\n    removeAllCanonicalRecordDatasFromOwn() {\n      super.removeAllCanonicalRecordDatasFromOwn();\n      this.canonicalMembers.clear();\n      this.canonicalState.splice(0, this.canonicalState.length);\n      super.removeAllCanonicalRecordDatasFromOwn();\n    }\n\n    //TODO(Igor) DO WE NEED THIS?\n    removeCompletelyFromOwn(recordData) {\n      super.removeCompletelyFromOwn(recordData);\n\n      // TODO SkEPTICAL\n      var canonicalIndex = this.canonicalState.indexOf(recordData);\n      if (canonicalIndex !== -1) {\n        this.canonicalState.splice(canonicalIndex, 1);\n      }\n      this.removeRecordDataFromOwn(recordData);\n    }\n    flushCanonical() {\n      var toSet = this.canonicalState;\n\n      //a hack for not removing new records\n      //TODO remove once we have proper diffing\n      var newRecordDatas = this.currentState.filter(\n      // only add new internalModels which are not yet in the canonical state of this\n      // relationship (a new internalModel can be in the canonical state if it has\n      // been 'acknowleged' to be in the relationship via a store.push)\n\n      //TODO Igor deal with this\n      recordData => recordData.isNew() && toSet.indexOf(recordData) === -1);\n      toSet = toSet.concat(newRecordDatas);\n\n      /*\n      if (this._manyArray) {\n        this._manyArray.flushCanonical(toSet);\n      }\n      */\n      this.currentState = toSet;\n      super.flushCanonical();\n      // Once we clean up all the flushing, we will be left with at least the notifying part\n      this.notifyHasManyChange();\n    }\n\n    //TODO(Igor) idx not used currently, fix\n    removeRecordDataFromOwn(recordData, idx) {\n      super.removeRecordDataFromOwn(recordData, idx);\n      var index = idx || this.currentState.indexOf(recordData);\n\n      //TODO IGOR DAVID INVESTIGATE\n      if (index === -1) {\n        return;\n      }\n      this.currentState.splice(index, 1);\n      // TODO Igor consider making direct to remove the indirection\n      // We are not lazily accessing the manyArray here because the change is coming from app side\n      this.notifyHasManyChange();\n      // this.manyArray.flushCanonical(this.currentState);\n    }\n    notifyRecordRelationshipAdded() {\n      this.notifyHasManyChange();\n    }\n    computeChanges(recordDatas = []) {\n      var members = this.canonicalMembers.toArray();\n      for (var i = members.length - 1; i >= 0; i--) {\n        this.removeCanonicalRecordData(members[i], i);\n      }\n      for (var _i = 0, l = recordDatas.length; _i < l; _i++) {\n        this.addCanonicalRecordData(recordDatas[_i], _i);\n      }\n    }\n\n    /*\n      This is essentially a \"sync\" version of\n        notifyHasManyChange. We should work to unify\n        these worlds\n         - @runspired\n    */\n    notifyManyArrayIsStale() {\n      var recordData = this.recordData;\n      var storeWrapper = recordData.storeWrapper;\n      {\n        storeWrapper.notifyPropertyChange(recordData.modelName, recordData.id, recordData.clientId, this.key);\n      }\n    }\n    notifyHasManyChange() {\n      var recordData = this.recordData;\n      var storeWrapper = recordData.storeWrapper;\n      storeWrapper.notifyHasManyChange(recordData.modelName, recordData.id, recordData.clientId, this.key);\n    }\n    getData() {\n      var payload = {};\n      if (this.hasAnyRelationshipData) {\n        payload.data = this.currentState.map(recordData => recordData.getResourceIdentifier());\n      }\n      if (this.links) {\n        payload.links = this.links;\n      }\n      if (this.meta) {\n        payload.meta = this.meta;\n      }\n\n      // TODO @runspired: the @igor refactor is too limiting for relationship state\n      //   we should reconsider where we fetch from.\n      payload._relationship = this;\n      return payload;\n    }\n    updateData(data) {\n      var recordDatas;\n      if (Ember.isNone(data)) {\n        recordDatas = undefined;\n      } else {\n        recordDatas = new Array(data.length);\n        for (var i = 0; i < data.length; i++) {\n          recordDatas[i] = this.recordData.storeWrapper.recordDataFor(data[i].type, data[i].id, data[i].lid);\n        }\n      }\n      this.updateRecordDatasFromAdapter(recordDatas);\n    }\n  }\n\n  function createRelationshipFor(relationshipMeta, store, recordData, key) {\n    var inverseKey = recordData.storeWrapper.inverseForRelationship(recordData.modelName, key);\n    var inverseIsAsync = recordData.storeWrapper.inverseIsAsyncForRelationship(recordData.modelName, key);\n    if (relationshipMeta.kind === 'hasMany') {\n      return new ManyRelationship(store, inverseKey, relationshipMeta, recordData, inverseIsAsync);\n    } else {\n      return new BelongsToRelationship(store, inverseKey, relationshipMeta, recordData, inverseIsAsync);\n    }\n  }\n  class Relationships {\n    constructor(recordData) {\n      this.recordData = recordData;\n      this._store = void 0;\n      this._storeWrapper = void 0;\n      this.initializedRelationships = void 0;\n      this.initializedRelationships = Object.create(null);\n      this._storeWrapper = Private.upgradeForInternal(recordData.storeWrapper);\n      this._store = this._storeWrapper._store;\n    }\n    has(key) {\n      return !!this.initializedRelationships[key];\n    }\n    forEach(cb) {\n      var rels = this.initializedRelationships;\n      Object.keys(rels).forEach(name => {\n        cb(name, rels[name]);\n      });\n    }\n    get(key) {\n      var relationships = this.initializedRelationships;\n      var relationship = relationships[key];\n      if (!relationship) {\n        var _recordData = this.recordData;\n        var rel = this.recordData.storeWrapper.relationshipsDefinitionFor(this.recordData.modelName)[key];\n        if (rel) {\n          // lazily instantiate relationship\n          relationship = relationships[key] = createRelationshipFor(rel, this._store, _recordData, key);\n        }\n      }\n      return relationship;\n    }\n  }\n\n  /**\n    @module @ember-data/record-data\n  */\n  var nextBfsId = 1;\n  class RecordDataDefault {\n    constructor(identifier, storeWrapper) {\n      this.identifier = identifier;\n      this.storeWrapper = storeWrapper;\n      this._errors = void 0;\n      this.__relationships = void 0;\n      this.__implicitRelationships = void 0;\n      this.modelName = void 0;\n      this.clientId = void 0;\n      this.id = void 0;\n      this.isDestroyed = void 0;\n      this._isNew = void 0;\n      this._bfsId = void 0;\n      this.__attributes = void 0;\n      this.__inFlightAttributes = void 0;\n      this.__data = void 0;\n      this._scheduledDestroy = void 0;\n      this._isDeleted = void 0;\n      this._isDeletionCommited = void 0;\n      /**\n        Iterates over the set of internal models reachable from `this` across exactly one\n        relationship.\n      */\n      this._directlyRelatedRecordDatasIterable = () => {\n        var initializedRelationships = this._relationships.initializedRelationships;\n        var relationships = Object.keys(initializedRelationships).map(key => initializedRelationships[key]);\n        var i = 0;\n        var j = 0;\n        var k = 0;\n        var findNext = () => {\n          while (i < relationships.length) {\n            while (j < 2) {\n              var members = j === 0 ? relationships[i].members.list : relationships[i].canonicalMembers.list;\n              while (k < members.length) {\n                return members[k++];\n              }\n              k = 0;\n              j++;\n            }\n            j = 0;\n            i++;\n          }\n          return undefined;\n        };\n        return {\n          iterator() {\n            return {\n              next: () => {\n                var value = findNext();\n                return {\n                  value,\n                  done: value === undefined\n                };\n              }\n            };\n          }\n        };\n      };\n      this.modelName = identifier.type;\n      this.clientId = identifier.lid;\n      this.id = identifier.id;\n      this.__relationships = null;\n      this.__implicitRelationships = null;\n      this.isDestroyed = false;\n      this._isNew = false;\n      this._isDeleted = false;\n      // Used during the mark phase of unloading to avoid checking the same internal\n      // model twice in the same scan\n      this._bfsId = 0;\n      this.reset();\n    }\n\n    // PUBLIC API\n    getResourceIdentifier() {\n      return this.identifier;\n    }\n    pushData(data, calculateChange) {\n      var changedKeys;\n      if (this._isNew) {\n        this._isNew = false;\n        this.notifyStateChange();\n      }\n      if (calculateChange) {\n        changedKeys = this._changedKeys(data.attributes);\n      }\n      Ember.assign(this._data, data.attributes);\n      if (this.__attributes) {\n        // only do if we have attribute changes\n        this._updateChangedAttributes();\n      }\n      if (data.relationships) {\n        this._setupRelationships(data);\n      }\n      if (data.id) {\n        this.id = coerceId(data.id);\n      }\n      return changedKeys;\n    }\n    willCommit() {\n      this._inFlightAttributes = this._attributes;\n      this._attributes = null;\n    }\n    hasChangedAttributes() {\n      return this.__attributes !== null && Object.keys(this.__attributes).length > 0;\n    }\n    _clearErrors() {\n    }\n    getErrors() {\n      ( Ember.assert('Can not call getErrors unless the RECORD_DATA_ERRORS feature flag is on', !!false));\n      {\n        return [];\n      }\n    }\n\n    // this is a hack bc we don't have access to the state machine\n    //   and relationships need this info and @runspired didn't see\n    //   how to get it just yet from storeWrapper.\n    isEmpty() {\n      return this.__attributes === null && this.__inFlightAttributes === null && this.__data === null;\n    }\n    deleteRecord() {\n      this._isDeleted = true;\n      this.notifyStateChange();\n    }\n    isDeleted() {\n      return this._isDeleted;\n    }\n    setIsDeleted(isDeleted) {\n      this._isDeleted = isDeleted;\n      if (this._isNew) {\n        this._deletionConfirmed();\n      }\n      this.notifyStateChange();\n    }\n    isDeletionCommitted() {\n      return this._isDeletionCommited;\n    }\n    reset() {\n      this.__attributes = null;\n      this.__inFlightAttributes = null;\n      this.__data = null;\n      this._errors = undefined;\n    }\n    _setupRelationships(data) {\n      var relationships = this.storeWrapper.relationshipsDefinitionFor(this.modelName);\n      var keys = Object.keys(relationships);\n      for (var i = 0; i < keys.length; i++) {\n        var relationshipName = keys[i];\n        if (!data.relationships[relationshipName]) {\n          continue;\n        }\n\n        // in debug, assert payload validity eagerly\n        var relationshipData = data.relationships[relationshipName];\n        {\n          var _storeWrapper = this.storeWrapper;\n          var recordData = this;\n          var relationshipMeta = relationships[relationshipName];\n          if (!relationshipData || !relationshipMeta) {\n            continue;\n          }\n          if (relationshipData.links) {\n            var isAsync = relationshipMeta.options && relationshipMeta.options.async !== false;\n            var _relationship = this._relationships.get(relationshipName);\n            ( Ember.warn(`You pushed a record of type '${this.modelName}' with a relationship '${relationshipName}' configured as 'async: false'. You've included a link but no primary data, this may be an error in your payload. EmberData will treat this relationship as known-to-be-empty.`, isAsync || relationshipData.data || _relationship.hasAnyRelationshipData, {\n              id: 'ds.store.push-link-for-sync-relationship'\n            }));\n          } else if (relationshipData.data) {\n            if (relationshipMeta.kind === 'belongsTo') {\n              ( !(!Array.isArray(relationshipData.data)) && Ember.assert(`A ${this.modelName} record was pushed into the store with the value of ${relationshipName} being ${Ember.inspect(relationshipData.data)}, but ${relationshipName} is a belongsTo relationship so the value must not be an array. You should probably check your data payload or serializer.`, !Array.isArray(relationshipData.data)));\n              assertRelationshipData(_storeWrapper, recordData, relationshipData.data, relationshipMeta);\n            } else if (relationshipMeta.kind === 'hasMany') {\n              ( !(Array.isArray(relationshipData.data)) && Ember.assert(`A ${this.modelName} record was pushed into the store with the value of ${relationshipName} being '${Ember.inspect(relationshipData.data)}', but ${relationshipName} is a hasMany relationship so the value must be an array. You should probably check your data payload or serializer.`, Array.isArray(relationshipData.data)));\n              if (Array.isArray(relationshipData.data)) {\n                for (var _i = 0; _i < relationshipData.data.length; _i++) {\n                  assertRelationshipData(_storeWrapper, recordData, relationshipData.data[_i], relationshipMeta);\n                }\n              }\n            }\n          }\n        }\n        var relationship = this._relationships.get(relationshipName);\n        relationship.push(relationshipData);\n      }\n    }\n\n    /*\n      Checks if the attributes which are considered as changed are still\n      different to the state which is acknowledged by the server.\n       This method is needed when data for the internal model is pushed and the\n      pushed data might acknowledge dirty attributes as confirmed.\n       @method updateChangedAttributes\n      @private\n     */\n    _updateChangedAttributes() {\n      var changedAttributes = this.changedAttributes();\n      var changedAttributeNames = Object.keys(changedAttributes);\n      var attrs = this._attributes;\n      for (var i = 0, length = changedAttributeNames.length; i < length; i++) {\n        var attribute = changedAttributeNames[i];\n        var data = changedAttributes[attribute];\n        var oldData = data[0];\n        var newData = data[1];\n        if (oldData === newData) {\n          delete attrs[attribute];\n        }\n      }\n    }\n\n    /*\n      Returns an object, whose keys are changed properties, and value is an\n      [oldProp, newProp] array.\n       @method changedAttributes\n      @private\n    */\n    changedAttributes() {\n      var oldData = this._data;\n      var currentData = this._attributes;\n      var inFlightData = this._inFlightAttributes;\n      var newData = Ember.assign({}, inFlightData, currentData);\n      var diffData = Object.create(null);\n      var newDataKeys = Object.keys(newData);\n      for (var i = 0, length = newDataKeys.length; i < length; i++) {\n        var key = newDataKeys[i];\n        diffData[key] = [oldData[key], newData[key]];\n      }\n      return diffData;\n    }\n    isNew() {\n      return this._isNew;\n    }\n    rollbackAttributes() {\n      var dirtyKeys;\n      this._isDeleted = false;\n      if (this.hasChangedAttributes()) {\n        dirtyKeys = Object.keys(this._attributes);\n        this._attributes = null;\n      }\n      if (this.isNew()) {\n        this.removeFromInverseRelationships(true);\n        this._isDeleted = true;\n        this._isNew = false;\n      }\n      this._inFlightAttributes = null;\n      this._clearErrors();\n      this.notifyStateChange();\n      return dirtyKeys;\n    }\n    _deletionConfirmed() {\n      this.removeFromInverseRelationships();\n    }\n    didCommit(data) {\n      if (this._isDeleted) {\n        this._deletionConfirmed();\n        this._isDeletionCommited = true;\n      }\n      this._isNew = false;\n      var newCanonicalAttributes = null;\n      if (data) {\n        // this.store._internalModelDidReceiveRelationshipData(this.modelName, this.id, data.relationships);\n        if (data.relationships) {\n          this._setupRelationships(data);\n        }\n        if (data.id) {\n          // didCommit provided an ID, notify the store of it\n          this.storeWrapper.setRecordId(this.modelName, data.id, this.clientId);\n          this.id = coerceId(data.id);\n        }\n        newCanonicalAttributes = data.attributes || null;\n      }\n      var changedKeys = this._changedKeys(newCanonicalAttributes);\n      Ember.assign(this._data, this.__inFlightAttributes, newCanonicalAttributes);\n      this._inFlightAttributes = null;\n      this._updateChangedAttributes();\n      this._clearErrors();\n      this.notifyStateChange();\n      return changedKeys;\n    }\n    notifyStateChange() {\n    }\n\n    // get ResourceIdentifiers for \"current state\"\n    getHasMany(key) {\n      return this._relationships.get(key).getData();\n    }\n\n    // set a new \"current state\" via ResourceIdentifiers\n    setDirtyHasMany(key, recordDatas) {\n      var relationship = this._relationships.get(key);\n      relationship.clear();\n      relationship.addRecordDatas(recordDatas);\n    }\n\n    // append to \"current state\" via RecordDatas\n    addToHasMany(key, recordDatas, idx) {\n      this._relationships.get(key).addRecordDatas(recordDatas, idx);\n    }\n\n    // remove from \"current state\" via RecordDatas\n    removeFromHasMany(key, recordDatas) {\n      this._relationships.get(key).removeRecordDatas(recordDatas);\n    }\n    commitWasRejected(identifier, errors) {\n      var keys = Object.keys(this._inFlightAttributes);\n      if (keys.length > 0) {\n        var attrs = this._attributes;\n        for (var i = 0; i < keys.length; i++) {\n          if (attrs[keys[i]] === undefined) {\n            attrs[keys[i]] = this._inFlightAttributes[keys[i]];\n          }\n        }\n      }\n      this._inFlightAttributes = null;\n    }\n    getBelongsTo(key) {\n      return this._relationships.get(key).getData();\n    }\n    setDirtyBelongsTo(key, recordData) {\n      this._relationships.get(key).setRecordData(recordData);\n    }\n    setDirtyAttribute(key, value) {\n      var originalValue;\n      // Add the new value to the changed attributes hash\n      this._attributes[key] = value;\n      if (key in this._inFlightAttributes) {\n        originalValue = this._inFlightAttributes[key];\n      } else {\n        originalValue = this._data[key];\n      }\n      // If we went back to our original value, we shouldn't keep the attribute around anymore\n      if (value === originalValue) {\n        delete this._attributes[key];\n      }\n    }\n\n    // internal set coming from the model\n    __setId(id) {\n      if (this.id !== id) {\n        this.id = id;\n      }\n    }\n    getAttr(key) {\n      if (key in this._attributes) {\n        return this._attributes[key];\n      } else if (key in this._inFlightAttributes) {\n        return this._inFlightAttributes[key];\n      } else {\n        return this._data[key];\n      }\n    }\n    hasAttr(key) {\n      return key in this._attributes || key in this._inFlightAttributes || key in this._data;\n    }\n    unloadRecord() {\n      if (this.isDestroyed) {\n        return;\n      }\n      this._destroyRelationships();\n      this.reset();\n      if (!this._scheduledDestroy) {\n        this._scheduledDestroy = Ember.run.backburner.schedule('destroy', this, '_cleanupOrphanedRecordDatas');\n      }\n    }\n    _cleanupOrphanedRecordDatas() {\n      var relatedRecordDatas = this._allRelatedRecordDatas();\n      if (areAllModelsUnloaded(relatedRecordDatas)) {\n        for (var i = 0; i < relatedRecordDatas.length; ++i) {\n          var recordData = relatedRecordDatas[i];\n          if (!recordData.isDestroyed) {\n            recordData.destroy();\n          }\n        }\n      }\n      this._scheduledDestroy = null;\n    }\n    destroy() {\n      this._relationships.forEach((name, rel) => rel.destroy());\n      this.isDestroyed = true;\n      this.storeWrapper.disconnectRecord(this.modelName, this.id, this.clientId);\n    }\n    isRecordInUse() {\n      return this.storeWrapper.isRecordInUse(this.modelName, this.id, this.clientId);\n    }\n    /**\n      Computes the set of internal models reachable from this internal model.\n       Reachability is determined over the relationship graph (ie a graph where\n      nodes are internal models and edges are belongs to or has many\n      relationships).\n       @return {Array} An array including `this` and all internal models reachable\n      from `this`.\n    */\n    _allRelatedRecordDatas() {\n      var array = [];\n      var queue = [];\n      var bfsId = nextBfsId++;\n      queue.push(this);\n      this._bfsId = bfsId;\n      while (queue.length > 0) {\n        var node = queue.shift();\n        array.push(node);\n        var iterator = this._directlyRelatedRecordDatasIterable().iterator();\n        for (var obj = iterator.next(); !obj.done; obj = iterator.next()) {\n          var recordData = obj.value;\n          if (recordData instanceof RecordDataDefault) {\n            ( !(recordData._bfsId <= bfsId) && Ember.assert('Internal Error: seen a future bfs iteration', recordData._bfsId <= bfsId));\n            if (recordData._bfsId < bfsId) {\n              queue.push(recordData);\n              recordData._bfsId = bfsId;\n            }\n          }\n        }\n      }\n      return array;\n    }\n    isAttrDirty(key) {\n      if (this._attributes[key] === undefined) {\n        return false;\n      }\n      var originalValue;\n      if (this._inFlightAttributes[key] !== undefined) {\n        originalValue = this._inFlightAttributes[key];\n      } else {\n        originalValue = this._data[key];\n      }\n      return originalValue !== this._attributes[key];\n    }\n    get _attributes() {\n      if (this.__attributes === null) {\n        this.__attributes = Object.create(null);\n      }\n      return this.__attributes;\n    }\n    set _attributes(v) {\n      this.__attributes = v;\n    }\n    get _relationships() {\n      if (this.__relationships === null) {\n        this.__relationships = new Relationships(this);\n      }\n      return this.__relationships;\n    }\n    get _data() {\n      if (this.__data === null) {\n        this.__data = Object.create(null);\n      }\n      return this.__data;\n    }\n    set _data(v) {\n      this.__data = v;\n    }\n\n    /*\n     implicit relationships are relationship which have not been declared but the inverse side exists on\n     another record somewhere\n     For example if there was\n      ```app/models/comment.js\n     import Model, { attr } from '@ember-data/model';\n      export default Model.extend({\n       name: attr()\n     });\n     ```\n      but there is also\n      ```app/models/post.js\n     import Model, { attr, hasMany } from '@ember-data/model';\n      export default Model.extend({\n       name: attr(),\n       comments: hasMany('comment')\n     });\n     ```\n      would have a implicit post relationship in order to be do things like remove ourselves from the post\n     when we are deleted\n    */\n    get _implicitRelationships() {\n      if (this.__implicitRelationships === null) {\n        var relationships = Object.create(null);\n        this.__implicitRelationships = relationships;\n        return relationships;\n      }\n      return this.__implicitRelationships;\n    }\n    get _inFlightAttributes() {\n      if (this.__inFlightAttributes === null) {\n        this.__inFlightAttributes = Object.create(null);\n      }\n      return this.__inFlightAttributes;\n    }\n    set _inFlightAttributes(v) {\n      this.__inFlightAttributes = v;\n    }\n\n    /**\n     * Receives options passed to `store.createRecord` and is given the opportunity\n     * to handle them.\n     *\n     * The return value is an object of options to pass to `Record.create()`\n     *\n     * @param options\n     * @private\n     */\n    _initRecordCreateOptions(options) {\n      var createOptions = {};\n      if (options !== undefined) {\n        var {\n          modelName,\n          storeWrapper: _storeWrapper2\n        } = this;\n        var attributeDefs = _storeWrapper2.attributesDefinitionFor(modelName);\n        var relationshipDefs = _storeWrapper2.relationshipsDefinitionFor(modelName);\n        var relationships = this._relationships;\n        var propertyNames = Object.keys(options);\n        for (var i = 0; i < propertyNames.length; i++) {\n          var name = propertyNames[i];\n          var propertyValue = options[name];\n          if (name === 'id') {\n            this.id = propertyValue;\n            continue;\n          }\n          var fieldType = relationshipDefs[name] || attributeDefs[name];\n          var kind = fieldType !== undefined ? fieldType.kind : null;\n          var relationship = void 0;\n          switch (kind) {\n            case 'attribute':\n              this.setDirtyAttribute(name, propertyValue);\n              break;\n            case 'belongsTo':\n              this.setDirtyBelongsTo(name, propertyValue);\n              relationship = relationships.get(name);\n              relationship.setHasAnyRelationshipData(true);\n              relationship.setRelationshipIsEmpty(false);\n              break;\n            case 'hasMany':\n              this.setDirtyHasMany(name, propertyValue);\n              relationship = relationships.get(name);\n              relationship.setHasAnyRelationshipData(true);\n              relationship.setRelationshipIsEmpty(false);\n              break;\n            default:\n              // reflect back (pass-thru) unknown properties\n              createOptions[name] = propertyValue;\n          }\n        }\n      }\n      return createOptions;\n    }\n\n    /*\n        TODO IGOR AND DAVID this shouldn't be public\n     This method should only be called by records in the `isNew()` state OR once the record\n     has been deleted and that deletion has been persisted.\n      It will remove this record from any associated relationships.\n      If `isNew` is true (default false), it will also completely reset all\n      relationships to an empty state as well.\n       @method removeFromInverseRelationships\n      @param {Boolean} isNew whether to unload from the `isNew` perspective\n      @private\n     */\n    removeFromInverseRelationships(isNew = false) {\n      this._relationships.forEach((name, rel) => {\n        rel.removeCompletelyFromInverse();\n        if (isNew === true) {\n          rel.clear();\n        }\n      });\n      this.__relationships = null;\n      var implicitRelationships = this._implicitRelationships;\n      this.__implicitRelationships = null;\n      Object.keys(implicitRelationships).forEach(key => {\n        var rel = implicitRelationships[key];\n        rel.removeCompletelyFromInverse();\n        if (isNew === true) {\n          rel.clear();\n        }\n      });\n    }\n    _destroyRelationships() {\n      var relationships = this._relationships;\n      relationships.forEach((name, rel) => destroyRelationship(rel));\n      var implicitRelationships = this._implicitRelationships;\n      this.__implicitRelationships = null;\n      Object.keys(implicitRelationships).forEach(key => {\n        var rel = implicitRelationships[key];\n        destroyRelationship(rel);\n      });\n    }\n    clientDidCreate() {\n      this._isNew = true;\n    }\n\n    /*\n      Ember Data has 3 buckets for storing the value of an attribute on an internalModel.\n       `_data` holds all of the attributes that have been acknowledged by\n      a backend via the adapter. When rollbackAttributes is called on a model all\n      attributes will revert to the record's state in `_data`.\n       `_attributes` holds any change the user has made to an attribute\n      that has not been acknowledged by the adapter. Any values in\n      `_attributes` are have priority over values in `_data`.\n       `_inFlightAttributes`. When a record is being synced with the\n      backend the values in `_attributes` are copied to\n      `_inFlightAttributes`. This way if the backend acknowledges the\n      save but does not return the new state Ember Data can copy the\n      values from `_inFlightAttributes` to `_data`. Without having to\n      worry about changes made to `_attributes` while the save was\n      happenign.\n        Changed keys builds a list of all of the values that may have been\n      changed by the backend after a successful save.\n       It does this by iterating over each key, value pair in the payload\n      returned from the server after a save. If the `key` is found in\n      `_attributes` then the user has a local changed to the attribute\n      that has not been synced with the server and the key is not\n      included in the list of changed keys.\n    \n      If the value, for a key differs from the value in what Ember Data\n      believes to be the truth about the backend state (A merger of the\n      `_data` and `_inFlightAttributes` objects where\n      `_inFlightAttributes` has priority) then that means the backend\n      has updated the value and the key is added to the list of changed\n      keys.\n       @method _changedKeys\n      @private\n    */\n    /*\n        TODO IGOR DAVID\n        There seems to be a potential bug here, where we will return keys that are not\n        in the schema\n    */\n    _changedKeys(updates) {\n      var changedKeys = [];\n      if (updates) {\n        var original, i, value, key;\n        var keys = Object.keys(updates);\n        var length = keys.length;\n        var hasAttrs = this.hasChangedAttributes();\n        var attrs;\n        if (hasAttrs) {\n          attrs = this._attributes;\n        }\n        original = Ember.assign(Object.create(null), this._data, this.__inFlightAttributes);\n        for (i = 0; i < length; i++) {\n          key = keys[i];\n          value = updates[key];\n\n          // A value in _attributes means the user has a local change to\n          // this attributes. We never override this value when merging\n          // updates from the backend so we should not sent a change\n          // notification if the server value differs from the original.\n          if (hasAttrs === true && attrs[key] !== undefined) {\n            continue;\n          }\n          if (!Ember.isEqual(original[key], value)) {\n            changedKeys.push(key);\n          }\n        }\n      }\n      return changedKeys;\n    }\n    toString() {\n      return `<${this.modelName}:${this.id}>`;\n    }\n  }\n  function assertRelationshipData(store, recordData, data, meta) {\n    ( !(!Array.isArray(data)) && Ember.assert(`A ${recordData.modelName} record was pushed into the store with the value of ${meta.key} being '${JSON.stringify(data)}', but ${meta.key} is a belongsTo relationship so the value must not be an array. You should probably check your data payload or serializer.`, !Array.isArray(data)));\n    ( !(data === null || typeof data.type === 'string' && data.type.length) && Ember.assert(`Encountered a relationship identifier without a type for the ${meta.kind} relationship '${meta.key}' on ${recordData}, expected a json-api identifier with type '${meta.type}' but found '${JSON.stringify(data)}'. Please check your serializer and make sure it is serializing the relationship payload into a JSON API format.`, data === null || typeof data.type === 'string' && data.type.length));\n    ( !(data === null || !!coerceId(data.id)) && Ember.assert(`Encountered a relationship identifier without an id for the ${meta.kind} relationship '${meta.key}' on ${recordData}, expected a json-api identifier but found '${JSON.stringify(data)}'. Please check your serializer and make sure it is serializing the relationship payload into a JSON API format.`, data === null || !!coerceId(data.id)));\n    ( !(data === null || !data.type || store._hasModelFor(data.type)) && Ember.assert(`Encountered a relationship identifier with type '${data.type}' for the ${meta.kind} relationship '${meta.key}' on ${recordData}, Expected a json-api identifier with type '${meta.type}'. No model was found for '${data.type}'.`, data === null || !data.type || store._hasModelFor(data.type)));\n  }\n\n  // Handle dematerialization for relationship `rel`.  In all cases, notify the\n  // relationship of the dematerialization: this is done so the relationship can\n  // notify its inverse which needs to update state\n  //\n  // If the inverse is sync, unloading this record is treated as a client-side\n  // delete, so we remove the inverse records from this relationship to\n  // disconnect the graph.  Because it's not async, we don't need to keep around\n  // the internalModel as an id-wrapper for references and because the graph is\n  // disconnected we can actually destroy the internalModel when checking for\n  // orphaned models.\n  function destroyRelationship(rel) {\n    rel.recordDataDidDematerialize();\n    if (rel._inverseIsSync()) {\n      rel.removeAllRecordDatasFromOwn();\n      rel.removeAllCanonicalRecordDatasFromOwn();\n    }\n  }\n  function areAllModelsUnloaded(recordDatas) {\n    for (var i = 0; i < recordDatas.length; ++i) {\n      if (recordDatas[i].isRecordInUse()) {\n        return false;\n      }\n    }\n    return true;\n  }\n\n  exports.BelongsToRelationship = BelongsToRelationship;\n  exports.ManyRelationship = ManyRelationship;\n  exports.RecordData = RecordDataDefault;\n  exports.Relationship = Relationship;\n  exports.relationshipStateFor = relationshipStateFor;\n  exports.relationshipsFor = relationshipsFor;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n});\n","define('@ember-data/serializer/-private', ['exports', '@ember/string'], function (exports, string$1) { 'use strict';\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    ## Using Embedded Records\n\n    `EmbeddedRecordsMixin` supports serializing embedded records.\n\n    To set up embedded records, include the mixin when extending a serializer,\n    then define and configure embedded (model) relationships.\n\n    Note that embedded records will serialize with the serializer for their model instead of the serializer in which they are defined.\n\n    Note also that this mixin does not work with JSONAPISerializer because the JSON:API specification does not describe how to format embedded resources.\n\n    Below is an example of a per-type serializer (`post` type).\n\n    ```app/serializers/post.js\n    import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n\n    export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n      attrs = {\n        author: { embedded: 'always' },\n        comments: { serialize: 'ids' }\n      }\n    }\n    ```\n    Note that this use of `{ embedded: 'always' }` is unrelated to\n    the `{ embedded: 'always' }` that is defined as an option on `attr` as part of\n    defining a model while working with the `ActiveModelSerializer`.  Nevertheless,\n    using `{ embedded: 'always' }` as an option to `attr` is not a valid way to set up\n    embedded records.\n\n    The `attrs` option for a resource `{ embedded: 'always' }` is shorthand for:\n\n    ```js\n    {\n      serialize: 'records',\n      deserialize: 'records'\n    }\n    ```\n\n    ### Configuring Attrs\n\n    A resource's `attrs` option may be set to use `ids`, `records` or false for the\n    `serialize`  and `deserialize` settings.\n\n    The `attrs` property can be set on the `ApplicationSerializer` or a per-type\n    serializer.\n\n    In the case where embedded JSON is expected while extracting a payload (reading)\n    the setting is `deserialize: 'records'`, there is no need to use `ids` when\n    extracting as that is the default behaviour without this mixin if you are using\n    the vanilla `EmbeddedRecordsMixin`. Likewise, to embed JSON in the payload while\n    serializing `serialize: 'records'` is the setting to use. There is an option of\n    not embedding JSON in the serialized payload by using `serialize: 'ids'`. If you\n    do not want the relationship sent at all, you can use `serialize: false`.\n\n\n    ### EmbeddedRecordsMixin defaults\n    If you do not overwrite `attrs` for a specific relationship, the `EmbeddedRecordsMixin`\n    will behave in the following way:\n\n    BelongsTo: `{ serialize: 'id', deserialize: 'id' }`\n    HasMany:   `{ serialize: false, deserialize: 'ids' }`\n\n    ### Model Relationships\n\n    Embedded records must have a model defined to be extracted and serialized. Note that\n    when defining any relationships on your model such as `belongsTo` and `hasMany`, you\n    should not both specify `async: true` and also indicate through the serializer's\n    `attrs` attribute that the related model should be embedded for deserialization.\n    If a model is declared embedded for deserialization (`embedded: 'always'` or `deserialize: 'records'`),\n    then do not use `async: true`.\n\n    To successfully extract and serialize embedded records the model relationships\n    must be set up correctly. See the\n    [defining relationships](https://guides.emberjs.com/current/models/relationships)\n    section of the **Defining Models** guide page.\n\n    Records without an `id` property are not considered embedded records, model\n    instances must have an `id` property to be used with Ember Data.\n\n    ### Example JSON payloads, Models and Serializers\n\n    **When customizing a serializer it is important to grok what the customizations\n    are. Please read the docs for the methods this mixin provides, in case you need\n    to modify it to fit your specific needs.**\n\n    For example, review the docs for each method of this mixin:\n    * [normalize](/ember-data/release/classes/EmbeddedRecordsMixin/methods/normalize?anchor=normalize)\n    * [serializeBelongsTo](/ember-data/release/classes/EmbeddedRecordsMixin/methods/serializeBelongsTo?anchor=serializeBelongsTo)\n    * [serializeHasMany](/ember-data/release/classes/EmbeddedRecordsMixin/methods/serializeHasMany?anchor=serializeHasMany)\n\n    @class EmbeddedRecordsMixin\n  */\n  var embeddedRecordsMixin = Ember.Mixin.create({\n    /**\n      Normalize the record and recursively normalize/extract all the embedded records\n      while pushing them into the store as they are encountered\n       A payload with an attr configured for embedded records needs to be extracted:\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"comments\": [{\n            \"id\": \"1\",\n            \"body\": \"Rails is unagi\"\n          }, {\n            \"id\": \"2\",\n            \"body\": \"Omakase O_o\"\n          }]\n        }\n      }\n      ```\n     @method normalize\n     @param {Model} typeClass\n     @param {Object} hash to be normalized\n     @param {String} prop the hash has been referenced by\n     @return {Object} the normalized hash\n    **/\n    normalize(typeClass, hash, prop) {\n      var normalizedHash = this._super(typeClass, hash, prop);\n      return this._extractEmbeddedRecords(this, this.store, typeClass, normalizedHash);\n    },\n    keyForRelationship(key, typeClass, method) {\n      if (method === 'serialize' && this.hasSerializeRecordsOption(key) || method === 'deserialize' && this.hasDeserializeRecordsOption(key)) {\n        return this.keyForAttribute(key, method);\n      } else {\n        return this._super(key, typeClass, method) || key;\n      }\n    },\n    /**\n      Serialize `belongsTo` relationship when it is configured as an embedded object.\n       This example of an author model belongs to a post model:\n       ```js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       Post = Model.extend({\n        title:    attr('string'),\n        body:     attr('string'),\n        author:   belongsTo('author')\n      });\n       Author = Model.extend({\n        name:     attr('string'),\n        post:     belongsTo('post')\n      });\n      ```\n       Use a custom (type) serializer for the post model to configure embedded author\n       ```app/serializers/post.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          author: { embedded: 'always' }\n        }\n      }\n      ```\n       A payload with an attribute configured for embedded records can serialize\n      the records together under the root attribute's payload:\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"author\": {\n            \"id\": \"2\"\n            \"name\": \"dhh\"\n          }\n        }\n      }\n      ```\n       @method serializeBelongsTo\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeBelongsTo(snapshot, json, relationship) {\n      var attr = relationship.key;\n      if (this.noSerializeOptionSpecified(attr)) {\n        this._super(snapshot, json, relationship);\n        return;\n      }\n      var includeIds = this.hasSerializeIdsOption(attr);\n      var includeRecords = this.hasSerializeRecordsOption(attr);\n      var embeddedSnapshot = snapshot.belongsTo(attr);\n      if (includeIds) {\n        var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n        if (serializedKey === relationship.key && this.keyForRelationship) {\n          serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n        }\n        if (!embeddedSnapshot) {\n          json[serializedKey] = null;\n        } else {\n          json[serializedKey] = embeddedSnapshot.id;\n          if (relationship.options.polymorphic) {\n            this.serializePolymorphicType(snapshot, json, relationship);\n          }\n        }\n      } else if (includeRecords) {\n        this._serializeEmbeddedBelongsTo(snapshot, json, relationship);\n      }\n    },\n    _serializeEmbeddedBelongsTo(snapshot, json, relationship) {\n      var embeddedSnapshot = snapshot.belongsTo(relationship.key);\n      var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n      if (serializedKey === relationship.key && this.keyForRelationship) {\n        serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n      }\n      if (!embeddedSnapshot) {\n        json[serializedKey] = null;\n      } else {\n        json[serializedKey] = embeddedSnapshot.serialize({\n          includeId: true\n        });\n        this.removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, json[serializedKey]);\n        if (relationship.options.polymorphic) {\n          this.serializePolymorphicType(snapshot, json, relationship);\n        }\n      }\n    },\n    /**\n      Serializes `hasMany` relationships when it is configured as embedded objects.\n       This example of a post model has many comments:\n       ```js\n      import Model, { attr, belongsTo, hasMany } from '@ember-data/model';\n       Post = Model.extend({\n        title:    attr('string'),\n        body:     attr('string'),\n        comments: hasMany('comment')\n      });\n       Comment = Model.extend({\n        body:     attr('string'),\n        post:     belongsTo('post')\n      });\n      ```\n       Use a custom (type) serializer for the post model to configure embedded comments\n       ```app/serializers/post.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          comments: { embedded: 'always' }\n        }\n      }\n      ```\n       A payload with an attribute configured for embedded records can serialize\n      the records together under the root attribute's payload:\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"body\": \"I want this for my ORM, I want that for my template language...\"\n          \"comments\": [{\n            \"id\": \"1\",\n            \"body\": \"Rails is unagi\"\n          }, {\n            \"id\": \"2\",\n            \"body\": \"Omakase O_o\"\n          }]\n        }\n      }\n      ```\n       The attrs options object can use more specific instruction for extracting and\n      serializing. When serializing, an option to embed `ids`, `ids-and-types` or `records` can be set.\n      When extracting the only option is `records`.\n       So `{ embedded: 'always' }` is shorthand for:\n      `{ serialize: 'records', deserialize: 'records' }`\n       To embed the `ids` for a related object (using a hasMany relationship):\n       ```app/serializers/post.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class PostSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          comments: { serialize: 'ids', deserialize: 'records' }\n        }\n      }\n      ```\n       ```js\n      {\n        \"post\": {\n          \"id\": \"1\"\n          \"title\": \"Rails is omakase\",\n          \"body\": \"I want this for my ORM, I want that for my template language...\"\n          \"comments\": [\"1\", \"2\"]\n        }\n      }\n      ```\n       To embed the relationship as a collection of objects with `id` and `type` keys, set\n      `ids-and-types` for the related object.\n       This is particularly useful for polymorphic relationships where records don't share\n      the same table and the `id` is not enough information.\n       For example having a user that has many pets:\n       ```js\n      User = Model.extend({\n        name: attr('string'),\n        pets: hasMany('pet', { polymorphic: true })\n      });\n       Pet = Model.extend({\n        name: attr('string'),\n      });\n       Cat = Pet.extend({\n        // ...\n      });\n       Parrot = Pet.extend({\n        // ...\n      });\n      ```\n       ```app/serializers/user.js\n      import RESTSerializer, { EmbeddedRecordsMixin } from '@ember-data/serializer/rest';\n       export default class UserSerializer extends RESTSerializer.extend(EmbeddedRecordsMixin) {\n        attrs = {\n          pets: { serialize: 'ids-and-types', deserialize: 'records' }\n        }\n      }\n      ```\n       ```js\n      {\n        \"user\": {\n          \"id\": \"1\"\n          \"name\": \"Bertin Osborne\",\n          \"pets\": [\n            { \"id\": \"1\", \"type\": \"Cat\" },\n            { \"id\": \"1\", \"type\": \"Parrot\"}\n          ]\n        }\n      }\n      ```\n       @method serializeHasMany\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeHasMany(snapshot, json, relationship) {\n      var attr = relationship.key;\n      if (this.noSerializeOptionSpecified(attr)) {\n        this._super(snapshot, json, relationship);\n        return;\n      }\n      if (this.hasSerializeIdsOption(attr)) {\n        var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n        if (serializedKey === relationship.key && this.keyForRelationship) {\n          serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n        }\n        json[serializedKey] = snapshot.hasMany(attr, {\n          ids: true\n        });\n      } else if (this.hasSerializeRecordsOption(attr)) {\n        this._serializeEmbeddedHasMany(snapshot, json, relationship);\n      } else {\n        if (this.hasSerializeIdsAndTypesOption(attr)) {\n          this._serializeHasManyAsIdsAndTypes(snapshot, json, relationship);\n        }\n      }\n    },\n    /*\n      Serializes a hasMany relationship as an array of objects containing only `id` and `type`\n      keys.\n      This has its use case on polymorphic hasMany relationships where the server is not storing\n      all records in the same table using STI, and therefore the `id` is not enough information\n       TODO: Make the default in Ember-data 3.0??\n    */\n    _serializeHasManyAsIdsAndTypes(snapshot, json, relationship) {\n      var serializedKey = this.keyForAttribute(relationship.key, 'serialize');\n      var hasMany = snapshot.hasMany(relationship.key);\n      json[serializedKey] = Ember.A(hasMany).map(function (recordSnapshot) {\n        //\n        // I'm sure I'm being utterly naive here. Probably id is a configurable property and\n        // type too, and the modelName has to be normalized somehow.\n        //\n        return {\n          id: recordSnapshot.id,\n          type: recordSnapshot.modelName\n        };\n      });\n    },\n    _serializeEmbeddedHasMany(snapshot, json, relationship) {\n      var serializedKey = this._getMappedKey(relationship.key, snapshot.type);\n      if (serializedKey === relationship.key && this.keyForRelationship) {\n        serializedKey = this.keyForRelationship(relationship.key, relationship.kind, 'serialize');\n      }\n      ( Ember.warn(`The embedded relationship '${serializedKey}' is undefined for '${snapshot.modelName}' with id '${snapshot.id}'. Please include it in your original payload.`, Ember.typeOf(snapshot.hasMany(relationship.key)) !== 'undefined', {\n        id: 'ds.serializer.embedded-relationship-undefined'\n      }));\n      json[serializedKey] = this._generateSerializedHasMany(snapshot, relationship);\n    },\n    /*\n      Returns an array of embedded records serialized to JSON\n    */\n    _generateSerializedHasMany(snapshot, relationship) {\n      var hasMany = snapshot.hasMany(relationship.key);\n      var manyArray = Ember.A(hasMany);\n      var ret = new Array(manyArray.length);\n      for (var i = 0; i < manyArray.length; i++) {\n        var embeddedSnapshot = manyArray[i];\n        var embeddedJson = embeddedSnapshot.serialize({\n          includeId: true\n        });\n        this.removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, embeddedJson);\n        ret[i] = embeddedJson;\n      }\n      return ret;\n    },\n    /**\n      When serializing an embedded record, modify the property (in the `JSON` payload)\n      that refers to the parent record (foreign key for the relationship).\n       Serializing a `belongsTo` relationship removes the property that refers to the\n      parent record\n       Serializing a `hasMany` relationship does not remove the property that refers to\n      the parent record.\n       @method removeEmbeddedForeignKey\n      @param {Snapshot} snapshot\n      @param {Snapshot} embeddedSnapshot\n      @param {Object} relationship\n      @param {Object} json\n    */\n    removeEmbeddedForeignKey(snapshot, embeddedSnapshot, relationship, json) {\n      if (relationship.kind === 'belongsTo') {\n        var parentRecord = snapshot.type.inverseFor(relationship.key, this.store);\n        if (parentRecord) {\n          var name = parentRecord.name;\n          var embeddedSerializer = this.store.serializerFor(embeddedSnapshot.modelName);\n          var parentKey = embeddedSerializer.keyForRelationship(name, parentRecord.kind, 'deserialize');\n          if (parentKey) {\n            delete json[parentKey];\n          }\n        }\n      } /*else if (relationship.kind === 'hasMany') {\n        return;\n        }*/\n    },\n    // checks config for attrs option to embedded (always) - serialize and deserialize\n    hasEmbeddedAlwaysOption(attr) {\n      var option = this.attrsOption(attr);\n      return option && option.embedded === 'always';\n    },\n    // checks config for attrs option to serialize ids\n    hasSerializeRecordsOption(attr) {\n      var alwaysEmbed = this.hasEmbeddedAlwaysOption(attr);\n      var option = this.attrsOption(attr);\n      return alwaysEmbed || option && option.serialize === 'records';\n    },\n    // checks config for attrs option to serialize records\n    hasSerializeIdsOption(attr) {\n      var option = this.attrsOption(attr);\n      return option && (option.serialize === 'ids' || option.serialize === 'id');\n    },\n    // checks config for attrs option to serialize records as objects containing id and types\n    hasSerializeIdsAndTypesOption(attr) {\n      var option = this.attrsOption(attr);\n      return option && (option.serialize === 'ids-and-types' || option.serialize === 'id-and-type');\n    },\n    // checks config for attrs option to serialize records\n    noSerializeOptionSpecified(attr) {\n      var option = this.attrsOption(attr);\n      return !(option && (option.serialize || option.embedded));\n    },\n    // checks config for attrs option to deserialize records\n    // a defined option object for a resource is treated the same as\n    // `deserialize: 'records'`\n    hasDeserializeRecordsOption(attr) {\n      var alwaysEmbed = this.hasEmbeddedAlwaysOption(attr);\n      var option = this.attrsOption(attr);\n      return alwaysEmbed || option && option.deserialize === 'records';\n    },\n    attrsOption(attr) {\n      var attrs = this.get('attrs');\n      return attrs && (attrs[string$1.camelize(attr)] || attrs[attr]);\n    },\n    /**\n     @method _extractEmbeddedRecords\n     @private\n    */\n    _extractEmbeddedRecords(serializer, store, typeClass, partial) {\n      typeClass.eachRelationship((key, relationship) => {\n        if (serializer.hasDeserializeRecordsOption(key)) {\n          if (relationship.kind === 'hasMany') {\n            this._extractEmbeddedHasMany(store, key, partial, relationship);\n          }\n          if (relationship.kind === 'belongsTo') {\n            this._extractEmbeddedBelongsTo(store, key, partial, relationship);\n          }\n        }\n      });\n      return partial;\n    },\n    /**\n     @method _extractEmbeddedHasMany\n     @private\n    */\n    _extractEmbeddedHasMany(store, key, hash, relationshipMeta) {\n      var relationshipHash = Ember.get(hash, `data.relationships.${key}.data`);\n      if (!relationshipHash) {\n        return;\n      }\n      var hasMany = new Array(relationshipHash.length);\n      for (var i = 0; i < relationshipHash.length; i++) {\n        var item = relationshipHash[i];\n        var {\n          data,\n          included\n        } = this._normalizeEmbeddedRelationship(store, relationshipMeta, item);\n        hash.included = hash.included || [];\n        hash.included.push(data);\n        if (included) {\n          hash.included.push(...included);\n        }\n        hasMany[i] = {\n          id: data.id,\n          type: data.type\n        };\n      }\n      var relationship = {\n        data: hasMany\n      };\n      Ember.set(hash, `data.relationships.${key}`, relationship);\n    },\n    /**\n     @method _extractEmbeddedBelongsTo\n     @private\n    */\n    _extractEmbeddedBelongsTo(store, key, hash, relationshipMeta) {\n      var relationshipHash = Ember.get(hash, `data.relationships.${key}.data`);\n      if (!relationshipHash) {\n        return;\n      }\n      var {\n        data,\n        included\n      } = this._normalizeEmbeddedRelationship(store, relationshipMeta, relationshipHash);\n      hash.included = hash.included || [];\n      hash.included.push(data);\n      if (included) {\n        hash.included.push(...included);\n      }\n      var belongsTo = {\n        id: data.id,\n        type: data.type\n      };\n      var relationship = {\n        data: belongsTo\n      };\n      Ember.set(hash, `data.relationships.${key}`, relationship);\n    },\n    /**\n     @method _normalizeEmbeddedRelationship\n     @private\n    */\n    _normalizeEmbeddedRelationship(store, relationshipMeta, relationshipHash) {\n      var modelName = relationshipMeta.type;\n      if (relationshipMeta.options.polymorphic) {\n        modelName = relationshipHash.type;\n      }\n      var modelClass = store.modelFor(modelName);\n      var serializer = store.serializerFor(modelName);\n      return serializer.normalize(modelClass, relationshipHash, null);\n    },\n    isEmbeddedRecordsMixin: true\n  });\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /*\n    Check if the passed model has a `type` attribute or a relationship named `type`.\n\n    @method modelHasAttributeOrRelationshipNamedType\n    @param modelClass\n   */\n  function modelHasAttributeOrRelationshipNamedType(modelClass) {\n    return Ember.get(modelClass, 'attributes').has('type') || Ember.get(modelClass, 'relationshipsByName').has('type');\n  }\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    The `Transform` class is used to serialize and deserialize model\n    attributes when they are saved or loaded from an\n    adapter. Subclassing `Transform` is useful for creating custom\n    attributes. All subclasses of `Transform` must implement a\n    `serialize` and a `deserialize` method.\n\n    Example\n\n    ```app/transforms/temperature.js\n    import Transform from '@ember-data/serializer/transform';\n\n    // Converts centigrade in the JSON to fahrenheit in the app\n    export default class TemperatureTransform extends Transform {\n      deserialize(serialized, options) {\n        return (serialized *  1.8) + 32;\n      }\n\n      serialize(deserialized, options) {\n        return (deserialized - 32) / 1.8;\n      }\n    }\n    ```\n\n    Usage\n\n    ```app/models/requirement.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class RequirementModel extends Model {\n      @attr('string') name;\n      @attr('temperature') temperature;\n    }\n    ```\n\n    The options passed into the `attr` function when the attribute is\n    declared on the model is also available in the transform.\n\n    ```app/models/post.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class PostModel extends Model {\n      @attr('string') title;\n      @attr('markdown', {\n        markdown: {\n          gfm: false,\n          sanitize: true\n        }\n      })\n      markdown;\n    }\n    ```\n\n    ```app/transforms/markdown.js\n    import Transform from '@ember-data/serializer/transform';\n\n    export default class MarkdownTransform extends Transform {\n      serialize(deserialized, options) {\n        return deserialized.raw;\n      }\n\n      deserialize(serialized, options) {\n        let markdownOptions = options.markdown || {};\n\n        return marked(serialized, markdownOptions);\n      }\n    }\n    ```\n\n    @class Transform\n   */\n  var Transform = Ember.Object.extend({\n    /**\n      When given a deserialized value from a record attribute this\n      method must return the serialized value.\n       Example\n       ```javascript\n      import { isEmpty } from '@ember/utils';\n       serialize(deserialized, options) {\n        return isEmpty(deserialized) ? null : Number(deserialized);\n      }\n      ```\n       @method serialize\n      @param deserialized The deserialized value\n      @param options hash of options passed to `attr`\n      @return The serialized value\n    */\n    serialize: null,\n    /**\n      When given a serialized value from a JSON object this method must\n      return the deserialized value for the record attribute.\n       Example\n       ```javascript\n      deserialize(serialized, options) {\n        return empty(serialized) ? null : Number(serialized);\n      }\n      ```\n       @method deserialize\n      @param serialized The serialized value\n      @param options hash of options passed to `attr`\n      @return The deserialized value\n    */\n    deserialize: null\n  });\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    The `BooleanTransform` class is used to serialize and deserialize\n    boolean attributes on Ember Data record objects. This transform is\n    used when `boolean` is passed as the type parameter to the\n    [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function.\n\n    Usage\n\n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class UserModel extends Model {\n      @attr('boolean') isAdmin;\n      @attr('string') name;\n      @attr('string') email;\n    }\n    ```\n\n    By default, the boolean transform only allows for values of `true` or\n    `false`. You can opt into allowing `null` values for\n    boolean attributes via `attr('boolean', { allowNull: true })`\n\n    ```app/models/user.js\n    import Model, { attr } from '@ember-data/model';\n\n    export default class UserModel extends Model {\n      @attr('string') email;\n      @attr('string') username;\n      @attr('boolean', { allowNull: true }) wantsWeeklyEmail;\n    }\n    ```\n\n    @class BooleanTransform\n    @extends Transform\n   */\n  var boolean = Transform.extend({\n    deserialize(serialized, options) {\n      if (Ember.isNone(serialized) && options.allowNull === true) {\n        return null;\n      }\n      var type = typeof serialized;\n      if (type === 'boolean') {\n        return serialized;\n      } else if (type === 'string') {\n        return /^(true|t|1)$/i.test(serialized);\n      } else if (type === 'number') {\n        return serialized === 1;\n      } else {\n        return false;\n      }\n    },\n    serialize(deserialized, options) {\n      if (Ember.isNone(deserialized) && options.allowNull === true) {\n        return null;\n      }\n      return Boolean(deserialized);\n    }\n  });\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n   The `DateTransform` class is used to serialize and deserialize\n   date attributes on Ember Data record objects. This transform is used\n   when `date` is passed as the type parameter to the\n   [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function. It uses the [`ISO 8601`](https://en.wikipedia.org/wiki/ISO_8601)\n   standard.\n\n   ```app/models/score.js\n   import Model, { attr, belongsTo } from '@ember-data/model';\n\n   export default class ScoreModel extends Model {\n      @attr('number') value;\n      @belongsTo('player') player;\n      @attr('date') date;\n    }\n   ```\n\n   @class DateTransform\n   @extends Transform\n   */\n\n  var date = Transform.extend({\n    deserialize(serialized) {\n      var type = typeof serialized;\n      if (type === 'string') {\n        var offset = serialized.indexOf('+');\n        if (offset !== -1 && serialized.length - 5 === offset) {\n          offset += 3;\n          return new Date(serialized.slice(0, offset) + ':' + serialized.slice(offset));\n        }\n        return new Date(serialized);\n      } else if (type === 'number') {\n        return new Date(serialized);\n      } else if (serialized === null || serialized === undefined) {\n        // if the value is null return null\n        // if the value is not present in the data return undefined\n        return serialized;\n      } else {\n        return null;\n      }\n    },\n    serialize(date) {\n      if (date instanceof Date && !isNaN(date)) {\n        return date.toISOString();\n      } else {\n        return null;\n      }\n    }\n  });\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  function isNumber(value) {\n    return value === value && value !== Infinity && value !== -Infinity;\n  }\n\n  /**\n    The `NumberTransform` class is used to serialize and deserialize\n    numeric attributes on Ember Data record objects. This transform is\n    used when `number` is passed as the type parameter to the\n    [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function.\n\n    Usage\n\n    ```app/models/score.js\n    import Model, { attr, belongsTo } from '@ember-data/model';\n\n    export default class ScoreModel extends Model {\n      @attr('number') value;\n      @belongsTo('player') player;\n      @attr('date') date;\n    }\n    ```\n\n    @class NumberTransform\n    @extends Transform\n   */\n  var number = Transform.extend({\n    deserialize(serialized) {\n      var transformed;\n      if (serialized === '' || serialized === null || serialized === undefined) {\n        return null;\n      } else {\n        transformed = Number(serialized);\n        return isNumber(transformed) ? transformed : null;\n      }\n    },\n    serialize(deserialized) {\n      var transformed;\n      if (deserialized === '' || deserialized === null || deserialized === undefined) {\n        return null;\n      } else {\n        transformed = Number(deserialized);\n        return isNumber(transformed) ? transformed : null;\n      }\n    }\n  });\n\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    The `StringTransform` class is used to serialize and deserialize\n    string attributes on Ember Data record objects. This transform is\n    used when `string` is passed as the type parameter to the\n    [attr](/ember-data/release/functions/@ember-data%2Fmodel/attr) function.\n\n    Usage\n\n    ```app/models/user.js\n    import Model, { attr, belongsTo } from '@ember-data/model';\n\n    export default class UserModel extends Model {\n      @attr('boolean') isAdmin;\n      @attr('string') name;\n      @attr('string') email;\n    }\n    ```\n\n    @class StringTransform\n    @extends Transform\n   */\n  var string = Transform.extend({\n    deserialize(serialized) {\n      return Ember.isNone(serialized) ? null : String(serialized);\n    },\n    serialize(deserialized) {\n      return Ember.isNone(deserialized) ? null : String(deserialized);\n    }\n  });\n\n  exports.BooleanTransform = boolean;\n  exports.DateTransform = date;\n  exports.EmbeddedRecordsMixin = embeddedRecordsMixin;\n  exports.NumberTransform = number;\n  exports.StringTransform = string;\n  exports.Transform = Transform;\n  exports.modelHasAttributeOrRelationshipNamedType = modelHasAttributeOrRelationshipNamedType;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n});\n","define(\"@ember-data/serializer/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    `Serializer` is an abstract base class that you should override in your\n    application to customize it for your backend. The minimum set of methods\n    that you should implement is:\n  \n      * `normalizeResponse()`\n      * `serialize()`\n  \n    And you can optionally override the following methods:\n  \n      * `normalize()`\n  \n    For an example implementation, see\n    [JSONSerializer](JSONSerializer), the included JSON serializer.\n  \n    @class Serializer\n    @extends EmberObject\n  */\n  var _default = _exports.default = Ember.Object.extend({\n    /**\n      The `store` property is the application's `store` that contains\n      all records. It can be used to look up serializers for other model\n      types that may be nested inside the payload response.\n       Example:\n       ```js\n      Serializer.extend({\n        extractRelationship(relationshipModelName, relationshipHash) {\n          let modelClass = this.store.modelFor(relationshipModelName);\n          let relationshipSerializer = this.store.serializerFor(relationshipModelName);\n          return relationshipSerializer.normalize(modelClass, relationshipHash);\n        }\n      });\n      ```\n       @property store\n      @type {Store}\n      @public\n    */\n\n    /**\n      The `normalizeResponse` method is used to normalize a payload from the\n      server to a JSON-API Document.\n       http://jsonapi.org/format/#document-structure\n       Example:\n       ```js\n      Serializer.extend({\n        normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n          if (requestType === 'findRecord') {\n            return this.normalize(primaryModelClass, payload);\n          } else {\n            return payload.reduce(function(documentHash, item) {\n              let { data, included } = this.normalize(primaryModelClass, item);\n              documentHash.included.push(...included);\n              documentHash.data.push(data);\n              return documentHash;\n            }, { data: [], included: [] })\n          }\n        }\n      });\n      ```\n       @since 1.13.0\n      @method normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeResponse: null,\n    /**\n      The `serialize` method is used when a record is saved in order to convert\n      the record into the form that your external data source expects.\n       `serialize` takes an optional `options` hash with a single option:\n       - `includeId`: If this is `true`, `serialize` should include the ID\n        in the serialized object it builds.\n       Example:\n       ```js\n      Serializer.extend({\n        serialize(snapshot, options) {\n          let json = {\n            id: snapshot.id\n          };\n           snapshot.eachAttribute((key, attribute) => {\n            json[key] = snapshot.attr(key);\n          });\n           snapshot.eachRelationship((key, relationship) => {\n            if (relationship.kind === 'belongsTo') {\n              json[key] = snapshot.belongsTo(key, { id: true });\n            } else if (relationship.kind === 'hasMany') {\n              json[key] = snapshot.hasMany(key, { ids: true });\n            }\n          });\n           return json;\n        },\n      });\n      ```\n       @method serialize\n      @param {Snapshot} snapshot\n      @param {Object} [options]\n      @return {Object}\n    */\n    serialize: null,\n    /**\n      The `normalize` method is used to convert a payload received from your\n      external data source into the normalized form `store.push()` expects. You\n      should override this method, munge the hash and return the normalized\n      payload.\n       Example:\n       ```js\n      Serializer.extend({\n        normalize(modelClass, resourceHash) {\n          let data = {\n            id:            resourceHash.id,\n            type:          modelClass.modelName,\n            attributes:    resourceHash\n          };\n          return { data: data };\n        }\n      })\n      ```\n       @method normalize\n      @param {Model} typeClass\n      @param {Object} hash\n      @return {Object}\n    */\n    normalize(typeClass, hash) {\n      return hash;\n    }\n  });\n});","define(\"@ember-data/serializer/json-api\", [\"exports\", \"@ember/string\", \"ember-inflector\", \"@ember-data/serializer/json\", \"@ember-data/store\"], function (_exports, _string, _emberInflector, _json, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    Ember Data 2.0 Serializer:\n  \n    In Ember Data a Serializer is used to serialize and deserialize\n    records when they are transferred in and out of an external source.\n    This process involves normalizing property names, transforming\n    attribute values and serializing relationships.\n  \n    `JSONAPISerializer` supports the http://jsonapi.org/ spec and is the\n    serializer recommended by Ember Data.\n  \n    This serializer normalizes a JSON API payload that looks like:\n  \n    ```app/models/player.js\n    import Model, { attr, belongsTo } from '@ember-data/model';\n  \n    export default class Player extends Model {\n      @attr('string') name;\n      @attr('string') skill;\n      @attr('number') gamesPlayed;\n      @belongsTo('club') club;\n    }\n    ```\n  \n    ```app/models/club.js\n    import Model, { attr, hasMany } from '@ember-data/model';\n  \n    export default class Club extends Model {\n      @attr('string') name;\n      @attr('string') location;\n      @hasMany('player') players;\n    }\n    ```\n  \n    ```js\n      {\n        \"data\": [\n          {\n            \"attributes\": {\n              \"name\": \"Benfica\",\n              \"location\": \"Portugal\"\n            },\n            \"id\": \"1\",\n            \"relationships\": {\n              \"players\": {\n                \"data\": [\n                  {\n                    \"id\": \"3\",\n                    \"type\": \"players\"\n                  }\n                ]\n              }\n            },\n            \"type\": \"clubs\"\n          }\n        ],\n        \"included\": [\n          {\n            \"attributes\": {\n              \"name\": \"Eusebio Silva Ferreira\",\n              \"skill\": \"Rocket shot\",\n              \"games-played\": 431\n            },\n            \"id\": \"3\",\n            \"relationships\": {\n              \"club\": {\n                \"data\": {\n                  \"id\": \"1\",\n                  \"type\": \"clubs\"\n                }\n              }\n            },\n            \"type\": \"players\"\n          }\n        ]\n      }\n    ```\n  \n    to the format that the Ember Data store expects.\n  \n    ### Customizing meta\n  \n    Since a JSON API Document can have meta defined in multiple locations you can\n    use the specific serializer hooks if you need to customize the meta.\n  \n    One scenario would be to camelCase the meta keys of your payload. The example\n    below shows how this could be done using `normalizeArrayResponse` and\n    `extractRelationship`.\n  \n    ```app/serializers/application.js\n    import JSONAPISerializer from '@ember-data/serializer/json';\n  \n    export default class ApplicationSerializer extends JSONAPISerializer {\n      normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {\n        let normalizedDocument = super.normalizeArrayResponse(...arguments);\n  \n        // Customize document meta\n        normalizedDocument.meta = camelCaseKeys(normalizedDocument.meta);\n  \n        return normalizedDocument;\n      }\n  \n      extractRelationship(relationshipHash) {\n        let normalizedRelationship = super.extractRelationship(...arguments);\n  \n        // Customize relationship meta\n        normalizedRelationship.meta = camelCaseKeys(normalizedRelationship.meta);\n  \n        return normalizedRelationship;\n      }\n    }\n    ```\n  \n    @since 1.13.0\n    @class JSONAPISerializer\n    @extends JSONSerializer\n  */\n  var JSONAPISerializer = _json.default.extend({\n    /**\n      @method _normalizeDocumentHelper\n      @param {Object} documentHash\n      @return {Object}\n      @private\n    */\n    _normalizeDocumentHelper(documentHash) {\n      if (Ember.typeOf(documentHash.data) === 'object') {\n        documentHash.data = this._normalizeResourceHelper(documentHash.data);\n      } else if (Array.isArray(documentHash.data)) {\n        var ret = new Array(documentHash.data.length);\n        for (var i = 0; i < documentHash.data.length; i++) {\n          var data = documentHash.data[i];\n          ret[i] = this._normalizeResourceHelper(data);\n        }\n        documentHash.data = ret;\n      }\n      if (Array.isArray(documentHash.included)) {\n        var _ret = new Array();\n        for (var _i = 0; _i < documentHash.included.length; _i++) {\n          var included = documentHash.included[_i];\n          var normalized = this._normalizeResourceHelper(included);\n          if (normalized !== null) {\n            // can be null when unknown type is encountered\n            _ret.push(normalized);\n          }\n        }\n        documentHash.included = _ret;\n      }\n      return documentHash;\n    },\n    /**\n      @method _normalizeRelationshipDataHelper\n      @param {Object} relationshipDataHash\n      @return {Object}\n      @private\n    */\n    _normalizeRelationshipDataHelper(relationshipDataHash) {\n      relationshipDataHash.type = this.modelNameFromPayloadKey(relationshipDataHash.type);\n      return relationshipDataHash;\n    },\n    /**\n      @method _normalizeResourceHelper\n      @param {Object} resourceHash\n      @return {Object}\n      @private\n    */\n    _normalizeResourceHelper(resourceHash) {\n      (true && !(!Ember.isNone(resourceHash.type)) && Ember.assert(this.warnMessageForUndefinedType(), !Ember.isNone(resourceHash.type), {\n        id: 'ds.serializer.type-is-undefined'\n      }));\n      var modelName, usedLookup;\n      modelName = this.modelNameFromPayloadKey(resourceHash.type);\n      usedLookup = 'modelNameFromPayloadKey';\n      if (!this.store._hasModelFor(modelName)) {\n        (true && Ember.warn(this.warnMessageNoModelForType(modelName, resourceHash.type, usedLookup), false, {\n          id: 'ds.serializer.model-for-type-missing'\n        }));\n        return null;\n      }\n      var modelClass = this.store.modelFor(modelName);\n      var serializer = this.store.serializerFor(modelName);\n      var {\n        data\n      } = serializer.normalize(modelClass, resourceHash);\n      return data;\n    },\n    /**\n      @method pushPayload\n      @param {Store} store\n      @param {Object} payload\n    */\n    pushPayload(store, payload) {\n      var normalizedPayload = this._normalizeDocumentHelper(payload);\n      store.push(normalizedPayload);\n    },\n    /**\n      @method _normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @param {Boolean} isSingle\n      @return {Object} JSON-API Document\n      @private\n    */\n    _normalizeResponse(store, primaryModelClass, payload, id, requestType, isSingle) {\n      var normalizedPayload = this._normalizeDocumentHelper(payload);\n      return normalizedPayload;\n    },\n    normalizeQueryRecordResponse() {\n      var normalized = this._super(...arguments);\n      (true && !(!Array.isArray(normalized.data)) && Ember.assert('Expected the primary data returned by the serializer for a `queryRecord` response to be a single object but instead it was an array.', !Array.isArray(normalized.data), {\n        id: 'ds.serializer.json-api.queryRecord-array-response'\n      }));\n      return normalized;\n    },\n    extractAttributes(modelClass, resourceHash) {\n      var attributes = {};\n      if (resourceHash.attributes) {\n        modelClass.eachAttribute(key => {\n          var attributeKey = this.keyForAttribute(key, 'deserialize');\n          if (resourceHash.attributes[attributeKey] !== undefined) {\n            attributes[key] = resourceHash.attributes[attributeKey];\n          }\n          if (true /* DEBUG */) {\n            if (resourceHash.attributes[attributeKey] === undefined && resourceHash.attributes[key] !== undefined) {\n              (true && !(false) && Ember.assert(`Your payload for '${modelClass.modelName}' contains '${key}', but your serializer is setup to look for '${attributeKey}'. This is most likely because Ember Data's JSON API serializer dasherizes attribute keys by default. You should subclass JSONAPISerializer and implement 'keyForAttribute(key) { return key; }' to prevent Ember Data from customizing your attribute keys.`, false));\n            }\n          }\n        });\n      }\n      return attributes;\n    },\n    /**\n       Returns a relationship formatted as a JSON-API \"relationship object\".\n        http://jsonapi.org/format/#document-resource-object-relationships\n        @method extractRelationship\n       @param {Object} relationshipHash\n       @return {Object}\n    */\n    extractRelationship(relationshipHash) {\n      if (Ember.typeOf(relationshipHash.data) === 'object') {\n        relationshipHash.data = this._normalizeRelationshipDataHelper(relationshipHash.data);\n      }\n      if (Array.isArray(relationshipHash.data)) {\n        var ret = new Array(relationshipHash.data.length);\n        for (var i = 0; i < relationshipHash.data.length; i++) {\n          var data = relationshipHash.data[i];\n          ret[i] = this._normalizeRelationshipDataHelper(data);\n        }\n        relationshipHash.data = ret;\n      }\n      return relationshipHash;\n    },\n    /**\n       Returns the resource's relationships formatted as a JSON-API \"relationships object\".\n        http://jsonapi.org/format/#document-resource-object-relationships\n        @method extractRelationships\n       @param {Object} modelClass\n       @param {Object} resourceHash\n       @return {Object}\n    */\n    extractRelationships(modelClass, resourceHash) {\n      var relationships = {};\n      if (resourceHash.relationships) {\n        modelClass.eachRelationship((key, relationshipMeta) => {\n          var relationshipKey = this.keyForRelationship(key, relationshipMeta.kind, 'deserialize');\n          if (resourceHash.relationships[relationshipKey] !== undefined) {\n            var relationshipHash = resourceHash.relationships[relationshipKey];\n            relationships[key] = this.extractRelationship(relationshipHash);\n          }\n          if (true /* DEBUG */) {\n            if (resourceHash.relationships[relationshipKey] === undefined && resourceHash.relationships[key] !== undefined) {\n              (true && !(false) && Ember.assert(`Your payload for '${modelClass.modelName}' contains '${key}', but your serializer is setup to look for '${relationshipKey}'. This is most likely because Ember Data's JSON API serializer dasherizes relationship keys by default. You should subclass JSONAPISerializer and implement 'keyForRelationship(key) { return key; }' to prevent Ember Data from customizing your relationship keys.`, false));\n            }\n          }\n        });\n      }\n      return relationships;\n    },\n    /**\n      @method _extractType\n      @param {Model} modelClass\n      @param {Object} resourceHash\n      @return {String}\n      @private\n    */\n    _extractType(modelClass, resourceHash) {\n      return this.modelNameFromPayloadKey(resourceHash.type);\n    },\n    /**\n      Dasherizes and singularizes the model name in the payload to match\n      the format Ember Data uses internally for the model name.\n       For example the key `posts` would be converted to `post` and the\n      key `studentAssesments` would be converted to `student-assesment`.\n       @method modelNameFromPayloadKey\n      @param {String} key\n      @return {String} the model's modelName\n    */\n    // TODO @deprecated Use modelNameFromPayloadType instead\n    modelNameFromPayloadKey(key) {\n      return (0, _emberInflector.singularize)((0, _store.normalizeModelName)(key));\n    },\n    /**\n      Converts the model name to a pluralized version of the model name.\n       For example `post` would be converted to `posts` and\n      `student-assesment` would be converted to `student-assesments`.\n       @method payloadKeyFromModelName\n      @param {String} modelName\n      @return {String}\n    */\n    // TODO @deprecated Use payloadTypeFromModelName instead\n    payloadKeyFromModelName(modelName) {\n      return (0, _emberInflector.pluralize)(modelName);\n    },\n    normalize(modelClass, resourceHash) {\n      if (resourceHash.attributes) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash.attributes);\n      }\n      if (resourceHash.relationships) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash.relationships);\n      }\n      var data = {\n        id: this.extractId(modelClass, resourceHash),\n        type: this._extractType(modelClass, resourceHash),\n        attributes: this.extractAttributes(modelClass, resourceHash),\n        relationships: this.extractRelationships(modelClass, resourceHash)\n      };\n      this.applyTransforms(modelClass, data.attributes);\n      return {\n        data\n      };\n    },\n    /**\n      `keyForAttribute` can be used to define rules for how to convert an\n      attribute name in your model to a key in your JSON.\n      By default `JSONAPISerializer` follows the format used on the examples of\n      http://jsonapi.org/format and uses dashes as the word separator in the JSON\n      attribute keys.\n       This behaviour can be easily customized by extending this method.\n       Example\n       ```app/serializers/application.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n      import { dasherize } from '@ember/string';\n       export default class ApplicationSerializer extends JSONAPISerializer {\n        keyForAttribute(attr, method) {\n          return dasherize(attr).toUpperCase();\n        }\n      }\n      ```\n       @method keyForAttribute\n      @param {String} key\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForAttribute(key, method) {\n      return (0, _string.dasherize)(key);\n    },\n    /**\n     `keyForRelationship` can be used to define a custom key when\n     serializing and deserializing relationship properties.\n     By default `JSONAPISerializer` follows the format used on the examples of\n     http://jsonapi.org/format and uses dashes as word separators in\n     relationship properties.\n      This behaviour can be easily customized by extending this method.\n      Example\n       ```app/serializers/post.js\n      import JSONAPISerializer from '@ember-data/serializer/json-api';\n      import { underscore } from '@ember/string';\n       export default class ApplicationSerializer extends JSONAPISerializer {\n        keyForRelationship(key, relationship, method) {\n          return underscore(key);\n        }\n      }\n      ```\n     @method keyForRelationship\n     @param {String} key\n     @param {String} typeClass\n     @param {String} method\n     @return {String} normalized key\n    */\n    keyForRelationship(key, typeClass, method) {\n      return (0, _string.dasherize)(key);\n    },\n    serialize(snapshot, options) {\n      var data = this._super(...arguments);\n      data.type = this.payloadKeyFromModelName(snapshot.modelName);\n      return {\n        data\n      };\n    },\n    serializeAttribute(snapshot, json, key, attribute) {\n      var type = attribute.type;\n      if (this._canSerialize(key)) {\n        json.attributes = json.attributes || {};\n        var value = snapshot.attr(key);\n        if (type) {\n          var transform = this.transformFor(type);\n          value = transform.serialize(value, attribute.options);\n        }\n        var payloadKey = this._getMappedKey(key, snapshot.type);\n        if (payloadKey === key) {\n          payloadKey = this.keyForAttribute(key, 'serialize');\n        }\n        json.attributes[payloadKey] = value;\n      }\n    },\n    serializeBelongsTo(snapshot, json, relationship) {\n      var key = relationship.key;\n      if (this._canSerialize(key)) {\n        var belongsTo = snapshot.belongsTo(key);\n        var belongsToIsNotNew;\n        if (false /* CUSTOM_MODEL_CLASS */) {\n          belongsToIsNotNew = belongsTo && !belongsTo.isNew;\n        } else {\n          belongsToIsNotNew = belongsTo && belongsTo.record && !belongsTo.record.get('isNew');\n        }\n        if (belongsTo === null || belongsToIsNotNew) {\n          json.relationships = json.relationships || {};\n          var payloadKey = this._getMappedKey(key, snapshot.type);\n          if (payloadKey === key) {\n            payloadKey = this.keyForRelationship(key, 'belongsTo', 'serialize');\n          }\n          var data = null;\n          if (belongsTo) {\n            var payloadType = this.payloadKeyFromModelName(belongsTo.modelName);\n            data = {\n              type: payloadType,\n              id: belongsTo.id\n            };\n          }\n          json.relationships[payloadKey] = {\n            data\n          };\n        }\n      }\n    },\n    serializeHasMany(snapshot, json, relationship) {\n      var key = relationship.key;\n      if (this.shouldSerializeHasMany(snapshot, key, relationship)) {\n        var hasMany = snapshot.hasMany(key);\n        if (hasMany !== undefined) {\n          json.relationships = json.relationships || {};\n          var payloadKey = this._getMappedKey(key, snapshot.type);\n          if (payloadKey === key && this.keyForRelationship) {\n            payloadKey = this.keyForRelationship(key, 'hasMany', 'serialize');\n          }\n\n          // only serialize has many relationships that are not new\n          var nonNewHasMany = hasMany.filter(item => item.record && !item.record.get('isNew'));\n          var data = new Array(nonNewHasMany.length);\n          for (var i = 0; i < nonNewHasMany.length; i++) {\n            var item = hasMany[i];\n            var payloadType = this.payloadKeyFromModelName(item.modelName);\n            data[i] = {\n              type: payloadType,\n              id: item.id\n            };\n          }\n          json.relationships[payloadKey] = {\n            data\n          };\n        }\n      }\n    }\n  });\n  if (true /* DEBUG */) {\n    JSONAPISerializer.reopen({\n      init(...args) {\n        this._super(...args);\n        (true && !(!this.isEmbeddedRecordsMixin || this.isEmbeddedRecordsMixinCompatible === true) && Ember.assert(`You've used the EmbeddedRecordsMixin in ${this.toString()} which is not fully compatible with the JSON:API specification. Please confirm that this works for your specific API and add \\`this.isEmbeddedRecordsMixinCompatible = true\\` to your serializer.`, !this.isEmbeddedRecordsMixin || this.isEmbeddedRecordsMixinCompatible === true, {\n          id: 'ds.serializer.embedded-records-mixin-not-supported'\n        }));\n        var constructor = this.constructor;\n        (true && Ember.warn(`You've defined 'extractMeta' in ${constructor.toString()} which is not used for serializers extending JSONAPISerializer. Read more at https://api.emberjs.com/ember-data/release/classes/JSONAPISerializer on how to customize meta when using JSON API.`, this.extractMeta === _json.default.prototype.extractMeta, {\n          id: 'ds.serializer.json-api.extractMeta'\n        }));\n      },\n      warnMessageForUndefinedType() {\n        return 'Encountered a resource object with an undefined type (resolved resource using ' + this.constructor.toString() + ')';\n      },\n      warnMessageNoModelForType(modelName, originalType, usedLookup) {\n        return `Encountered a resource object with type \"${originalType}\", but no model was found for model name \"${modelName}\" (resolved model name using '${this.constructor.toString()}.${usedLookup}(\"${originalType}\")').`;\n      }\n    });\n  }\n  var _default = _exports.default = JSONAPISerializer;\n});","define(\"@ember-data/serializer/json\", [\"exports\", \"@ember-data/serializer\", \"@ember-data/store\", \"@ember-data/store/-private\", \"@ember-data/serializer/-private\"], function (_exports, _serializer, _store, _private, _private2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module @ember-data/serializer\n  */\n\n  /**\n    Ember Data 2.0 Serializer:\n  \n    In Ember Data a Serializer is used to serialize and deserialize\n    records when they are transferred in and out of an external source.\n    This process involves normalizing property names, transforming\n    attribute values and serializing relationships.\n  \n    By default, Ember Data uses and recommends the `JSONAPISerializer`.\n  \n    `JSONSerializer` is useful for simpler or legacy backends that may\n    not support the http://jsonapi.org/ spec.\n  \n    For example, given the following `User` model and JSON payload:\n  \n    ```app/models/user.js\n    import Model, { attr, belongsTo, hasMany } from '@ember-data/model';\n  \n    export default class UserModel extends Model {\n      @hasMany('user') friends;\n      @belongsTo('location') house;\n  \n      @attr('string') name;\n    }\n    ```\n  \n    ```js\n    {\n      id: 1,\n      name: 'Sebastian',\n      friends: [3, 4],\n      links: {\n        house: '/houses/lefkada'\n      }\n    }\n    ```\n  \n    `JSONSerializer` will normalize the JSON payload to the JSON API format that the\n    Ember Data store expects.\n  \n    You can customize how JSONSerializer processes its payload by passing options in\n    the `attrs` hash or by subclassing the `JSONSerializer` and overriding hooks:\n  \n      - To customize how a single record is normalized, use the `normalize` hook.\n      - To customize how `JSONSerializer` normalizes the whole server response, use the\n        `normalizeResponse` hook.\n      - To customize how `JSONSerializer` normalizes a specific response from the server,\n        use one of the many specific `normalizeResponse` hooks.\n      - To customize how `JSONSerializer` normalizes your id, attributes or relationships,\n        use the `extractId`, `extractAttributes` and `extractRelationships` hooks.\n  \n    The `JSONSerializer` normalization process follows these steps:\n  \n      - `normalizeResponse` - entry method to the serializer.\n      - `normalizeCreateRecordResponse` - a `normalizeResponse` for a specific operation is called.\n      - `normalizeSingleResponse`|`normalizeArrayResponse` - for methods like `createRecord` we expect\n        a single record back, while for methods like `findAll` we expect multiple records back.\n      - `normalize` - `normalizeArray` iterates and calls `normalize` for each of its records while `normalizeSingle`\n        calls it once. This is the method you most likely want to subclass.\n      - `extractId` | `extractAttributes` | `extractRelationships` - `normalize` delegates to these methods to\n        turn the record payload into the JSON API format.\n  \n    @class JSONSerializer\n    @extends Serializer\n  */\n  var JSONSerializer = _serializer.default.extend({\n    /**\n      The `primaryKey` is used when serializing and deserializing\n      data. Ember Data always uses the `id` property to store the id of\n      the record. The external source may not always follow this\n      convention. In these cases it is useful to override the\n      `primaryKey` property to match the `primaryKey` of your external\n      store.\n       Example\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class ApplicationSerializer extends JSONSerializer {\n        primaryKey = '_id'\n      }\n      ```\n       @property primaryKey\n      @type {String}\n      @default 'id'\n    */\n    primaryKey: 'id',\n    /**\n      The `attrs` object can be used to declare a simple mapping between\n      property names on `Model` records and payload keys in the\n      serialized JSON object representing the record. An object with the\n      property `key` can also be used to designate the attribute's key on\n      the response payload.\n       Example\n       ```app/models/person.js\n      import Model, { attr } from '@ember-data/model';\n       export default class PersonModel extends Model {\n        @attr('string') firstName;\n        @attr('string') lastName;\n        @attr('string') occupation;\n        @attr('boolean') admin;\n      }\n      ```\n       ```app/serializers/person.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PersonSerializer extends JSONSerializer {\n        attrs = {\n          admin: 'is_admin',\n          occupation: { key: 'career' }\n        }\n      }\n      ```\n       You can also remove attributes and relationships by setting the `serialize`\n      key to `false` in your mapping object.\n       Example\n       ```app/serializers/person.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        attrs = {\n          admin: { serialize: false },\n          occupation: { key: 'career' }\n        }\n      }\n      ```\n       When serialized:\n       ```javascript\n      {\n        \"firstName\": \"Harry\",\n        \"lastName\": \"Houdini\",\n        \"career\": \"magician\"\n      }\n      ```\n       Note that the `admin` is now not included in the payload.\n       Setting `serialize` to `true` enforces serialization for hasMany\n      relationships even if it's neither a many-to-many nor many-to-none\n      relationship.\n       @property attrs\n      @type {Object}\n    */\n    mergedProperties: ['attrs'],\n    /**\n     Given a subclass of `Model` and a JSON object this method will\n     iterate through each attribute of the `Model` and invoke the\n     `Transform#deserialize` method on the matching property of the\n     JSON object.  This method is typically called after the\n     serializer's `normalize` method.\n      @method applyTransforms\n     @private\n     @param {Model} typeClass\n     @param {Object} data The data to transform\n     @return {Object} data The transformed data object\n    */\n    applyTransforms(typeClass, data) {\n      var attributes = Ember.get(typeClass, 'attributes');\n      typeClass.eachTransformedAttribute((key, typeClass) => {\n        if (data[key] === undefined) {\n          return;\n        }\n        var transform = this.transformFor(typeClass);\n        var transformMeta = attributes.get(key);\n        data[key] = transform.deserialize(data[key], transformMeta.options);\n      });\n      return data;\n    },\n    /**\n      The `normalizeResponse` method is used to normalize a payload from the\n      server to a JSON-API Document.\n       http://jsonapi.org/format/#document-structure\n       This method delegates to a more specific normalize method based on\n      the `requestType`.\n       To override this method with a custom one, make sure to call\n      `return this._super(store, primaryModelClass, payload, id, requestType)` with your\n      pre-processed data.\n       Here's an example of using `normalizeResponse` manually:\n       ```javascript\n      socket.on('message', function(message) {\n        let data = message.data;\n        let modelClass = store.modelFor(data.modelName);\n        let serializer = store.serializerFor(data.modelName);\n        let normalized = serializer.normalizeSingleResponse(store, modelClass, data, data.id);\n         store.push(normalized);\n      });\n      ```\n       @since 1.13.0\n      @method normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeResponse(store, primaryModelClass, payload, id, requestType) {\n      switch (requestType) {\n        case 'findRecord':\n          return this.normalizeFindRecordResponse(...arguments);\n        case 'queryRecord':\n          return this.normalizeQueryRecordResponse(...arguments);\n        case 'findAll':\n          return this.normalizeFindAllResponse(...arguments);\n        case 'findBelongsTo':\n          return this.normalizeFindBelongsToResponse(...arguments);\n        case 'findHasMany':\n          return this.normalizeFindHasManyResponse(...arguments);\n        case 'findMany':\n          return this.normalizeFindManyResponse(...arguments);\n        case 'query':\n          return this.normalizeQueryResponse(...arguments);\n        case 'createRecord':\n          return this.normalizeCreateRecordResponse(...arguments);\n        case 'deleteRecord':\n          return this.normalizeDeleteRecordResponse(...arguments);\n        case 'updateRecord':\n          return this.normalizeUpdateRecordResponse(...arguments);\n      }\n    },\n    /**\n      @since 1.13.0\n      @method normalizeFindRecordResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeQueryRecordResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeQueryRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeFindAllResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindAllResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeFindBelongsToResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindBelongsToResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeFindHasManyResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindHasManyResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeFindManyResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeFindManyResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeQueryResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeQueryResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeArrayResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeCreateRecordResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeCreateRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSaveResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeDeleteRecordResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeDeleteRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSaveResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeUpdateRecordResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeUpdateRecordResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSaveResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeSaveResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeSaveResponse(store, primaryModelClass, payload, id, requestType) {\n      return this.normalizeSingleResponse(...arguments);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeSingleResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeSingleResponse(store, primaryModelClass, payload, id, requestType) {\n      return this._normalizeResponse(store, primaryModelClass, payload, id, requestType, true);\n    },\n    /**\n      @since 1.13.0\n      @method normalizeArrayResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @return {Object} JSON-API Document\n    */\n    normalizeArrayResponse(store, primaryModelClass, payload, id, requestType) {\n      return this._normalizeResponse(store, primaryModelClass, payload, id, requestType, false);\n    },\n    /**\n      @method _normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @param {Boolean} isSingle\n      @return {Object} JSON-API Document\n      @private\n    */\n    _normalizeResponse(store, primaryModelClass, payload, id, requestType, isSingle) {\n      var documentHash = {\n        data: null,\n        included: []\n      };\n      var meta = this.extractMeta(store, primaryModelClass, payload);\n      if (meta) {\n        (true && !(Ember.typeOf(meta) === 'object') && Ember.assert('The `meta` returned from `extractMeta` has to be an object, not \"' + Ember.typeOf(meta) + '\".', Ember.typeOf(meta) === 'object'));\n        documentHash.meta = meta;\n      }\n      if (isSingle) {\n        var {\n          data,\n          included\n        } = this.normalize(primaryModelClass, payload);\n        documentHash.data = data;\n        if (included) {\n          documentHash.included = included;\n        }\n      } else {\n        var ret = new Array(payload.length);\n        for (var i = 0, l = payload.length; i < l; i++) {\n          var item = payload[i];\n          var {\n            data: _data,\n            included: _included\n          } = this.normalize(primaryModelClass, item);\n          if (_included) {\n            documentHash.included.push(..._included);\n          }\n          ret[i] = _data;\n        }\n        documentHash.data = ret;\n      }\n      return documentHash;\n    },\n    /**\n      Normalizes a part of the JSON payload returned by\n      the server. You should override this method, munge the hash\n      and call super if you have generic normalization to do.\n       It takes the type of the record that is being normalized\n      (as a Model class), the property where the hash was\n      originally found, and the hash to normalize.\n       You can use this method, for example, to normalize underscored keys to camelized\n      or other general-purpose normalizations.\n       Example\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { underscore } from '@ember/string';\n      import { get } from '@ember/object';\n       export default class ApplicationSerializer extends JSONSerializer {\n        normalize(typeClass, hash) {\n          let fields = get(typeClass, 'fields');\n           fields.forEach(function(type, field) {\n            let payloadField = underscore(field);\n            if (field === payloadField) { return; }\n             hash[field] = hash[payloadField];\n            delete hash[payloadField];\n          });\n           return this._super.apply(this, arguments);\n        }\n      }\n      ```\n       @method normalize\n      @param {Model} typeClass\n      @param {Object} hash\n      @return {Object}\n    */\n    normalize(modelClass, resourceHash) {\n      var data = null;\n      if (resourceHash) {\n        this.normalizeUsingDeclaredMapping(modelClass, resourceHash);\n        if (Ember.typeOf(resourceHash.links) === 'object') {\n          this.normalizeUsingDeclaredMapping(modelClass, resourceHash.links);\n        }\n        data = {\n          id: this.extractId(modelClass, resourceHash),\n          type: modelClass.modelName,\n          attributes: this.extractAttributes(modelClass, resourceHash),\n          relationships: this.extractRelationships(modelClass, resourceHash)\n        };\n        this.applyTransforms(modelClass, data.attributes);\n      }\n      return {\n        data\n      };\n    },\n    /**\n      Returns the resource's ID.\n       @method extractId\n      @param {Object} modelClass\n      @param {Object} resourceHash\n      @return {String}\n    */\n    extractId(modelClass, resourceHash) {\n      var primaryKey = Ember.get(this, 'primaryKey');\n      var id = resourceHash[primaryKey];\n      return (0, _private.coerceId)(id);\n    },\n    /**\n      Returns the resource's attributes formatted as a JSON-API \"attributes object\".\n       http://jsonapi.org/format/#document-resource-object-attributes\n       @method extractAttributes\n      @param {Object} modelClass\n      @param {Object} resourceHash\n      @return {Object}\n    */\n    extractAttributes(modelClass, resourceHash) {\n      var attributeKey;\n      var attributes = {};\n      modelClass.eachAttribute(key => {\n        attributeKey = this.keyForAttribute(key, 'deserialize');\n        if (resourceHash[attributeKey] !== undefined) {\n          attributes[key] = resourceHash[attributeKey];\n        }\n      });\n      return attributes;\n    },\n    /**\n      Returns a relationship formatted as a JSON-API \"relationship object\".\n       http://jsonapi.org/format/#document-resource-object-relationships\n       @method extractRelationship\n      @param {Object} relationshipModelName\n      @param {Object} relationshipHash\n      @return {Object}\n    */\n    extractRelationship(relationshipModelName, relationshipHash) {\n      if (Ember.isNone(relationshipHash)) {\n        return null;\n      }\n      /*\n        When `relationshipHash` is an object it usually means that the relationship\n        is polymorphic. It could however also be embedded resources that the\n        EmbeddedRecordsMixin has be able to process.\n      */\n      if (Ember.typeOf(relationshipHash) === 'object') {\n        if (relationshipHash.id) {\n          relationshipHash.id = (0, _private.coerceId)(relationshipHash.id);\n        }\n        var modelClass = this.store.modelFor(relationshipModelName);\n        if (relationshipHash.type && !(0, _private2.modelHasAttributeOrRelationshipNamedType)(modelClass)) {\n          relationshipHash.type = this.modelNameFromPayloadKey(relationshipHash.type);\n        }\n        return relationshipHash;\n      }\n      return {\n        id: (0, _private.coerceId)(relationshipHash),\n        type: relationshipModelName\n      };\n    },\n    /**\n      Returns a polymorphic relationship formatted as a JSON-API \"relationship object\".\n       http://jsonapi.org/format/#document-resource-object-relationships\n       `relationshipOptions` is a hash which contains more information about the\n      polymorphic relationship which should be extracted:\n        - `resourceHash` complete hash of the resource the relationship should be\n          extracted from\n        - `relationshipKey` key under which the value for the relationship is\n          extracted from the resourceHash\n        - `relationshipMeta` meta information about the relationship\n       @method extractPolymorphicRelationship\n      @param {Object} relationshipModelName\n      @param {Object} relationshipHash\n      @param {Object} relationshipOptions\n      @return {Object}\n    */\n    extractPolymorphicRelationship(relationshipModelName, relationshipHash, relationshipOptions) {\n      return this.extractRelationship(relationshipModelName, relationshipHash);\n    },\n    /**\n      Returns the resource's relationships formatted as a JSON-API \"relationships object\".\n       http://jsonapi.org/format/#document-resource-object-relationships\n       @method extractRelationships\n      @param {Object} modelClass\n      @param {Object} resourceHash\n      @return {Object}\n    */\n    extractRelationships(modelClass, resourceHash) {\n      var relationships = {};\n      modelClass.eachRelationship((key, relationshipMeta) => {\n        var relationship = null;\n        var relationshipKey = this.keyForRelationship(key, relationshipMeta.kind, 'deserialize');\n        if (resourceHash[relationshipKey] !== undefined) {\n          var data = null;\n          var relationshipHash = resourceHash[relationshipKey];\n          if (relationshipMeta.kind === 'belongsTo') {\n            if (relationshipMeta.options.polymorphic) {\n              // extracting a polymorphic belongsTo may need more information\n              // than the type and the hash (which might only be an id) for the\n              // relationship, hence we pass the key, resource and\n              // relationshipMeta too\n              data = this.extractPolymorphicRelationship(relationshipMeta.type, relationshipHash, {\n                key,\n                resourceHash,\n                relationshipMeta\n              });\n            } else {\n              data = this.extractRelationship(relationshipMeta.type, relationshipHash);\n            }\n          } else if (relationshipMeta.kind === 'hasMany') {\n            if (!Ember.isNone(relationshipHash)) {\n              data = new Array(relationshipHash.length);\n              if (relationshipMeta.options.polymorphic) {\n                for (var i = 0, l = relationshipHash.length; i < l; i++) {\n                  var item = relationshipHash[i];\n                  data[i] = this.extractPolymorphicRelationship(relationshipMeta.type, item, {\n                    key,\n                    resourceHash,\n                    relationshipMeta\n                  });\n                }\n              } else {\n                for (var _i = 0, _l = relationshipHash.length; _i < _l; _i++) {\n                  var _item = relationshipHash[_i];\n                  data[_i] = this.extractRelationship(relationshipMeta.type, _item);\n                }\n              }\n            }\n          }\n          relationship = {\n            data\n          };\n        }\n        var linkKey = this.keyForLink(key, relationshipMeta.kind);\n        if (resourceHash.links && resourceHash.links[linkKey] !== undefined) {\n          var related = resourceHash.links[linkKey];\n          relationship = relationship || {};\n          relationship.links = {\n            related\n          };\n        }\n        if (relationship) {\n          relationships[key] = relationship;\n        }\n      });\n      return relationships;\n    },\n    /**\n      @method modelNameFromPayloadKey\n      @param {String} key\n      @return {String} the model's modelName\n    */\n    // TODO @deprecated Use modelNameFromPayloadType instead\n    modelNameFromPayloadKey(key) {\n      return (0, _store.normalizeModelName)(key);\n    },\n    /**\n      @method normalizeRelationships\n      @private\n    */\n    normalizeRelationships(typeClass, hash) {\n      var payloadKey;\n      if (this.keyForRelationship) {\n        typeClass.eachRelationship((key, relationship) => {\n          payloadKey = this.keyForRelationship(key, relationship.kind, 'deserialize');\n          if (key === payloadKey) {\n            return;\n          }\n          if (hash[payloadKey] === undefined) {\n            return;\n          }\n          hash[key] = hash[payloadKey];\n          delete hash[payloadKey];\n        });\n      }\n    },\n    /**\n      @method normalizeUsingDeclaredMapping\n      @private\n    */\n    normalizeUsingDeclaredMapping(modelClass, hash) {\n      var attrs = Ember.get(this, 'attrs');\n      var normalizedKey;\n      var payloadKey;\n      if (attrs) {\n        for (var key in attrs) {\n          normalizedKey = payloadKey = this._getMappedKey(key, modelClass);\n          if (hash[payloadKey] === undefined) {\n            continue;\n          }\n          if (Ember.get(modelClass, 'attributes').has(key)) {\n            normalizedKey = this.keyForAttribute(key);\n          }\n          if (Ember.get(modelClass, 'relationshipsByName').has(key)) {\n            normalizedKey = this.keyForRelationship(key);\n          }\n          if (payloadKey !== normalizedKey) {\n            hash[normalizedKey] = hash[payloadKey];\n            delete hash[payloadKey];\n          }\n        }\n      }\n    },\n    /**\n      Looks up the property key that was set by the custom `attr` mapping\n      passed to the serializer.\n       @method _getMappedKey\n      @private\n      @param {String} key\n      @return {String} key\n    */\n    _getMappedKey(key, modelClass) {\n      (true && Ember.warn('There is no attribute or relationship with the name `' + key + '` on `' + modelClass.modelName + '`. Check your serializers attrs hash.', Ember.get(modelClass, 'attributes').has(key) || Ember.get(modelClass, 'relationshipsByName').has(key), {\n        id: 'ds.serializer.no-mapped-attrs-key'\n      }));\n      var attrs = Ember.get(this, 'attrs');\n      var mappedKey;\n      if (attrs && attrs[key]) {\n        mappedKey = attrs[key];\n        //We need to account for both the { title: 'post_title' } and\n        //{ title: { key: 'post_title' }} forms\n        if (mappedKey.key) {\n          mappedKey = mappedKey.key;\n        }\n        if (typeof mappedKey === 'string') {\n          key = mappedKey;\n        }\n      }\n      return key;\n    },\n    /**\n      Check attrs.key.serialize property to inform if the `key`\n      can be serialized\n       @method _canSerialize\n      @private\n      @param {String} key\n      @return {boolean} true if the key can be serialized\n    */\n    _canSerialize(key) {\n      var attrs = Ember.get(this, 'attrs');\n      return !attrs || !attrs[key] || attrs[key].serialize !== false;\n    },\n    /**\n      When attrs.key.serialize is set to true then\n      it takes priority over the other checks and the related\n      attribute/relationship will be serialized\n       @method _mustSerialize\n      @private\n      @param {String} key\n      @return {boolean} true if the key must be serialized\n    */\n    _mustSerialize(key) {\n      var attrs = Ember.get(this, 'attrs');\n      return attrs && attrs[key] && attrs[key].serialize === true;\n    },\n    /**\n      Check if the given hasMany relationship should be serialized\n       By default only many-to-many and many-to-none relationships are serialized.\n      This could be configured per relationship by Serializer's `attrs` object.\n       @method shouldSerializeHasMany\n      @param {Snapshot} snapshot\n      @param {String} key\n      @param {String} relationshipType\n      @return {boolean} true if the hasMany relationship should be serialized\n    */\n    shouldSerializeHasMany(snapshot, key, relationship) {\n      var relationshipType = snapshot.type.determineRelationshipType(relationship, this.store);\n      if (this._mustSerialize(key)) {\n        return true;\n      }\n      return this._canSerialize(key) && (relationshipType === 'manyToNone' || relationshipType === 'manyToMany');\n    },\n    // SERIALIZE\n    /**\n      Called when a record is saved in order to convert the\n      record into JSON.\n       By default, it creates a JSON object with a key for\n      each attribute and belongsTo relationship.\n       For example, consider this model:\n       ```app/models/comment.js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       export default class CommentModel extends Model {\n        @attr title;\n        @attr body;\n         @belongsTo('user') author;\n      }\n      ```\n       The default serialization would create a JSON object like:\n       ```javascript\n      {\n        \"title\": \"Rails is unagi\",\n        \"body\": \"Rails? Omakase? O_O\",\n        \"author\": 12\n      }\n      ```\n       By default, attributes are passed through as-is, unless\n      you specified an attribute type (`attr('date')`). If\n      you specify a transform, the JavaScript value will be\n      serialized when inserted into the JSON hash.\n       By default, belongs-to relationships are converted into\n      IDs when inserted into the JSON hash.\n       ## IDs\n       `serialize` takes an options hash with a single option:\n      `includeId`. If this option is `true`, `serialize` will,\n      by default include the ID in the JSON object it builds.\n       The adapter passes in `includeId: true` when serializing\n      a record for `createRecord`, but not for `updateRecord`.\n       ## Customization\n       Your server may expect a different JSON format than the\n      built-in serialization format.\n       In that case, you can implement `serialize` yourself and\n      return a JSON hash of your choosing.\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        serialize(snapshot, options) {\n          let json = {\n            POST_TTL: snapshot.attr('title'),\n            POST_BDY: snapshot.attr('body'),\n            POST_CMS: snapshot.hasMany('comments', { ids: true })\n          };\n           if (options.includeId) {\n            json.POST_ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n      ```\n       ## Customizing an App-Wide Serializer\n       If you want to define a serializer for your entire\n      application, you'll probably want to use `eachAttribute`\n      and `eachRelationship` on the record.\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { singularize } from 'ember-inflector';\n       export default class PostSerializer extends JSONSerializer {\n        serialize(snapshot, options) {\n          let json = {};\n           snapshot.eachAttribute(function(name) {\n            json[serverAttributeName(name)] = snapshot.attr(name);\n          });\n           snapshot.eachRelationship(function(name, relationship) {\n            if (relationship.kind === 'hasMany') {\n              json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true });\n            }\n          });\n           if (options.includeId) {\n            json.ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n       function serverAttributeName(attribute) {\n        return attribute.underscore().toUpperCase();\n      }\n       function serverHasManyName(name) {\n        return serverAttributeName(singularize(name)) + \"_IDS\";\n      }\n      ```\n       This serializer will generate JSON that looks like this:\n       ```javascript\n      {\n        \"TITLE\": \"Rails is omakase\",\n        \"BODY\": \"Yep. Omakase.\",\n        \"COMMENT_IDS\": [ 1, 2, 3 ]\n      }\n      ```\n       ## Tweaking the Default JSON\n       If you just want to do some small tweaks on the default JSON,\n      you can call super first and make the tweaks on the returned\n      JSON.\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        serialize(snapshot, options) {\n          let json = this._super(...arguments);\n           json.subject = json.title;\n          delete json.title;\n           return json;\n        }\n      }\n      ```\n       @method serialize\n      @param {Snapshot} snapshot\n      @param {Object} options\n      @return {Object} json\n    */\n    serialize(snapshot, options) {\n      var json = {};\n      if (options && options.includeId) {\n        var id = snapshot.id;\n        if (id) {\n          json[Ember.get(this, 'primaryKey')] = id;\n        }\n      }\n      snapshot.eachAttribute((key, attribute) => {\n        this.serializeAttribute(snapshot, json, key, attribute);\n      });\n      snapshot.eachRelationship((key, relationship) => {\n        if (relationship.kind === 'belongsTo') {\n          this.serializeBelongsTo(snapshot, json, relationship);\n        } else if (relationship.kind === 'hasMany') {\n          this.serializeHasMany(snapshot, json, relationship);\n        }\n      });\n      return json;\n    },\n    /**\n      You can use this method to customize how a serialized record is added to the complete\n      JSON hash to be sent to the server. By default the JSON Serializer does not namespace\n      the payload and just sends the raw serialized JSON object.\n      If your server expects namespaced keys, you should consider using the RESTSerializer.\n      Otherwise you can override this method to customize how the record is added to the hash.\n      The hash property should be modified by reference.\n       For example, your server may expect underscored root objects.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { decamelize } from '@ember/string';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serializeIntoHash(data, type, snapshot, options) {\n          let root = decamelize(type.modelName);\n          data[root] = this.serialize(snapshot, options);\n        }\n      }\n      ```\n       @method serializeIntoHash\n      @param {Object} hash\n      @param {Model} typeClass\n      @param {Snapshot} snapshot\n      @param {Object} options\n    */\n    serializeIntoHash(hash, typeClass, snapshot, options) {\n      Ember.assign(hash, this.serialize(snapshot, options));\n    },\n    /**\n      `serializeAttribute` can be used to customize how `attr`\n      properties are serialized\n       For example if you wanted to ensure all your attributes were always\n      serialized as properties on an `attributes` object you could\n      write:\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class ApplicationSerializer extends JSONSerializer {\n        serializeAttribute(snapshot, json, key, attributes) {\n          json.attributes = json.attributes || {};\n          this._super(snapshot, json.attributes, key, attributes);\n        }\n      }\n      ```\n       @method serializeAttribute\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {String} key\n      @param {Object} attribute\n    */\n    serializeAttribute(snapshot, json, key, attribute) {\n      if (this._canSerialize(key)) {\n        var type = attribute.type;\n        var value = snapshot.attr(key);\n        if (type) {\n          var transform = this.transformFor(type);\n          value = transform.serialize(value, attribute.options);\n        }\n\n        // if provided, use the mapping provided by `attrs` in\n        // the serializer\n        var payloadKey = this._getMappedKey(key, snapshot.type);\n        if (payloadKey === key && this.keyForAttribute) {\n          payloadKey = this.keyForAttribute(key, 'serialize');\n        }\n        json[payloadKey] = value;\n      }\n    },\n    /**\n      `serializeBelongsTo` can be used to customize how `belongsTo`\n      properties are serialized.\n       Example\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { isNone } from '@ember/utils';\n       export default class PostSerializer extends JSONSerializer {\n        serializeBelongsTo(snapshot, json, relationship) {\n          let key = relationship.key;\n          let belongsTo = snapshot.belongsTo(key);\n           key = this.keyForRelationship ? this.keyForRelationship(key, \"belongsTo\", \"serialize\") : key;\n           json[key] = isNone(belongsTo) ? belongsTo : belongsTo.record.toJSON();\n        }\n      }\n      ```\n       @method serializeBelongsTo\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializeBelongsTo(snapshot, json, relationship) {\n      var key = relationship.key;\n      if (this._canSerialize(key)) {\n        var belongsToId = snapshot.belongsTo(key, {\n          id: true\n        });\n\n        // if provided, use the mapping provided by `attrs` in\n        // the serializer\n        var payloadKey = this._getMappedKey(key, snapshot.type);\n        if (payloadKey === key && this.keyForRelationship) {\n          payloadKey = this.keyForRelationship(key, 'belongsTo', 'serialize');\n        }\n\n        //Need to check whether the id is there for new&async records\n        if (Ember.isNone(belongsToId)) {\n          json[payloadKey] = null;\n        } else {\n          json[payloadKey] = belongsToId;\n        }\n        if (relationship.options.polymorphic) {\n          this.serializePolymorphicType(snapshot, json, relationship);\n        }\n      }\n    },\n    /**\n     `serializeHasMany` can be used to customize how `hasMany`\n     properties are serialized.\n      Example\n      ```app/serializers/post.js\n     import JSONSerializer from '@ember-data/serializer/json';\n      export default class PostSerializer extends JSONSerializer {\n       serializeHasMany(snapshot, json, relationship) {\n         let key = relationship.key;\n         if (key === 'comments') {\n           return;\n         } else {\n           this._super(...arguments);\n         }\n       }\n     }\n     ```\n      @method serializeHasMany\n     @param {Snapshot} snapshot\n     @param {Object} json\n     @param {Object} relationship\n    */\n    serializeHasMany(snapshot, json, relationship) {\n      var key = relationship.key;\n      if (this.shouldSerializeHasMany(snapshot, key, relationship)) {\n        var hasMany = snapshot.hasMany(key, {\n          ids: true\n        });\n        if (hasMany !== undefined) {\n          // if provided, use the mapping provided by `attrs` in\n          // the serializer\n          var payloadKey = this._getMappedKey(key, snapshot.type);\n          if (payloadKey === key && this.keyForRelationship) {\n            payloadKey = this.keyForRelationship(key, 'hasMany', 'serialize');\n          }\n          json[payloadKey] = hasMany;\n          // TODO support for polymorphic manyToNone and manyToMany relationships\n        }\n      }\n    },\n    /**\n      You can use this method to customize how polymorphic objects are\n      serialized. Objects are considered to be polymorphic if\n      `{ polymorphic: true }` is pass as the second argument to the\n      `belongsTo` function.\n       Example\n       ```app/serializers/comment.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { isNone } from '@ember/utils';\n       export default class CommentSerializer extends JSONSerializer {\n        serializePolymorphicType(snapshot, json, relationship) {\n          let key = relationship.key;\n          let belongsTo = snapshot.belongsTo(key);\n           key = this.keyForAttribute ? this.keyForAttribute(key, 'serialize') : key;\n           if (isNone(belongsTo)) {\n            json[key + '_type'] = null;\n          } else {\n            json[key + '_type'] = belongsTo.modelName;\n          }\n        }\n      }\n      ```\n       @method serializePolymorphicType\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializePolymorphicType() {},\n    /**\n      `extractMeta` is used to deserialize any meta information in the\n      adapter payload. By default Ember Data expects meta information to\n      be located on the `meta` property of the payload object.\n       Example\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        extractMeta(store, typeClass, payload) {\n          if (payload && payload.hasOwnProperty('_pagination')) {\n            let meta = payload._pagination;\n            delete payload._pagination;\n            return meta;\n          }\n        }\n      }\n      ```\n       @method extractMeta\n      @param {Store} store\n      @param {Model} modelClass\n      @param {Object} payload\n    */\n    extractMeta(store, modelClass, payload) {\n      if (payload && payload['meta'] !== undefined) {\n        var meta = payload.meta;\n        delete payload.meta;\n        return meta;\n      }\n    },\n    /**\n      `extractErrors` is used to extract model errors when a call\n      to `Model#save` fails with an `InvalidError`. By default\n      Ember Data expects error information to be located on the `errors`\n      property of the payload object.\n       This serializer expects this `errors` object to be an Array similar\n      to the following, compliant with the https://jsonapi.org/format/#errors specification:\n       ```js\n      {\n        \"errors\": [\n          {\n            \"detail\": \"This username is already taken!\",\n            \"source\": {\n              \"pointer\": \"data/attributes/username\"\n            }\n          }, {\n            \"detail\": \"Doesn't look like a valid email.\",\n            \"source\": {\n              \"pointer\": \"data/attributes/email\"\n            }\n          }\n        ]\n      }\n      ```\n       The key `detail` provides a textual description of the problem.\n      Alternatively, the key `title` can be used for the same purpose.\n       The nested keys `source.pointer` detail which specific element\n      of the request data was invalid.\n       Note that JSON-API also allows for object-level errors to be placed\n      in an object with pointer `data`, signifying that the problem\n      cannot be traced to a specific attribute:\n       ```javascript\n      {\n        \"errors\": [\n          {\n            \"detail\": \"Some generic non property error message\",\n            \"source\": {\n              \"pointer\": \"data\"\n            }\n          }\n        ]\n      }\n      ```\n       When turn into a `Errors` object, you can read these errors\n      through the property `base`:\n       ```handlebars\n      {{#each @model.errors.base as |error|}}\n        <div class=\"error\">\n          {{error.message}}\n        </div>\n      {{/each}}\n      ```\n       Example of alternative implementation, overriding the default\n      behavior to deal with a different format of errors:\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default class PostSerializer extends JSONSerializer {\n        extractErrors(store, typeClass, payload, id) {\n          if (payload && typeof payload === 'object' && payload._problems) {\n            payload = payload._problems;\n            this.normalizeErrors(typeClass, payload);\n          }\n          return payload;\n        }\n      }\n      ```\n       @method extractErrors\n      @param {Store} store\n      @param {Model} typeClass\n      @param {Object} payload\n      @param {(String|Number)} id\n      @return {Object} json The deserialized errors\n    */\n    extractErrors(store, typeClass, payload, id) {\n      if (payload && typeof payload === 'object' && payload.errors) {\n        payload = (0, _private.errorsArrayToHash)(payload.errors);\n        this.normalizeUsingDeclaredMapping(typeClass, payload);\n        typeClass.eachAttribute(name => {\n          var key = this.keyForAttribute(name, 'deserialize');\n          if (key !== name && payload[key] !== undefined) {\n            payload[name] = payload[key];\n            delete payload[key];\n          }\n        });\n        typeClass.eachRelationship(name => {\n          var key = this.keyForRelationship(name, 'deserialize');\n          if (key !== name && payload[key] !== undefined) {\n            payload[name] = payload[key];\n            delete payload[key];\n          }\n        });\n      }\n      return payload;\n    },\n    /**\n      `keyForAttribute` can be used to define rules for how to convert an\n      attribute name in your model to a key in your JSON.\n       Example\n       ```app/serializers/application.js\n      import JSONSerializer from '@ember-data/serializer/json';\n      import { underscore } from '@ember/string';\n       export default class ApplicationSerializer extends JSONSerializer {\n        keyForAttribute(attr, method) {\n          return underscore(attr).toUpperCase();\n        }\n      }\n      ```\n       @method keyForAttribute\n      @param {String} key\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForAttribute(key, method) {\n      return key;\n    },\n    /**\n      `keyForRelationship` can be used to define a custom key when\n      serializing and deserializing relationship properties. By default\n      `JSONSerializer` does not provide an implementation of this method.\n       Example\n         ```app/serializers/post.js\n        import JSONSerializer from '@ember-data/serializer/json';\n        import { underscore } from '@ember/string';\n         export default class PostSerializer extends JSONSerializer {\n          keyForRelationship(key, relationship, method) {\n            return `rel_${underscore(key)}`;\n          }\n        }\n        ```\n       @method keyForRelationship\n      @param {String} key\n      @param {String} typeClass\n      @param {String} method\n      @return {String} normalized key\n    */\n    keyForRelationship(key, typeClass, method) {\n      return key;\n    },\n    /**\n     `keyForLink` can be used to define a custom key when deserializing link\n     properties.\n      @method keyForLink\n     @param {String} key\n     @param {String} kind `belongsTo` or `hasMany`\n     @return {String} normalized key\n    */\n    keyForLink(key, kind) {\n      return key;\n    },\n    // HELPERS\n\n    /**\n     @method transformFor\n     @private\n     @param {String} attributeType\n     @param {Boolean} skipAssertion\n     @return {Transform} transform\n    */\n    transformFor(attributeType, skipAssertion) {\n      var transform = Ember.getOwner(this).lookup('transform:' + attributeType);\n      (true && !(skipAssertion || !!transform) && Ember.assert(`Unable to find the transform for \\`attr('${attributeType}')\\``, skipAssertion || !!transform));\n      return transform;\n    }\n  });\n  var _default = _exports.default = JSONSerializer;\n});","define(\"@ember-data/serializer/rest\", [\"exports\", \"@ember/string\", \"ember-inflector\", \"@ember-data/serializer/json\", \"@ember-data/store\", \"@ember-data/store/-private\", \"@ember-data/serializer/-private\"], function (_exports, _string, _emberInflector, _json, _store, _private, _private2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"EmbeddedRecordsMixin\", {\n    enumerable: true,\n    get: function () {\n      return _private2.EmbeddedRecordsMixin;\n    }\n  });\n  _exports.default = void 0;\n  /**\n    Normally, applications will use the `RESTSerializer` by implementing\n    the `normalize` method.\n  \n    This allows you to do whatever kind of munging you need and is\n    especially useful if your server is inconsistent and you need to\n    do munging differently for many different kinds of responses.\n  \n    See the `normalize` documentation for more information.\n  \n    ## Across the Board Normalization\n  \n    There are also a number of hooks that you might find useful to define\n    across-the-board rules for your payload. These rules will be useful\n    if your server is consistent, or if you're building an adapter for\n    an infrastructure service, like Firebase, and want to encode service\n    conventions.\n  \n    For example, if all of your keys are underscored and all-caps, but\n    otherwise consistent with the names you use in your models, you\n    can implement across-the-board rules for how to convert an attribute\n    name in your model to a key in your JSON.\n  \n    ```app/serializers/application.js\n    import RESTSerializer from '@ember-data/serializer/rest';\n    import { underscore } from '@ember/string';\n  \n    export default class ApplicationSerializer extends RESTSerializer {\n      keyForAttribute(attr, method) {\n        return underscore(attr).toUpperCase();\n      }\n    }\n    ```\n  \n    You can also implement `keyForRelationship`, which takes the name\n    of the relationship as the first parameter, the kind of\n    relationship (`hasMany` or `belongsTo`) as the second parameter, and\n    the method (`serialize` or `deserialize`) as the third parameter.\n  \n    @class RESTSerializer\n    @extends JSONSerializer\n  */\n  var RESTSerializer = _json.default.extend({\n    /**\n     `keyForPolymorphicType` can be used to define a custom key when\n     serializing and deserializing a polymorphic type. By default, the\n     returned key is `${key}Type`.\n      Example\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        keyForPolymorphicType(key, relationship) {\n          let relationshipKey = this.keyForRelationship(key);\n           return 'type-' + relationshipKey;\n        }\n      }\n      ```\n      @method keyForPolymorphicType\n     @param {String} key\n     @param {String} typeClass\n     @param {String} method\n     @return {String} normalized key\n    */\n    keyForPolymorphicType(key, typeClass, method) {\n      var relationshipKey = this.keyForRelationship(key);\n      return `${relationshipKey}Type`;\n    },\n    /**\n      Normalizes a part of the JSON payload returned by\n      the server. You should override this method, munge the hash\n      and call super if you have generic normalization to do.\n       It takes the type of the record that is being normalized\n      (as a Model class), the property where the hash was\n      originally found, and the hash to normalize.\n       For example, if you have a payload that looks like this:\n       ```js\n      {\n        \"post\": {\n          \"id\": 1,\n          \"title\": \"Rails is omakase\",\n          \"comments\": [ 1, 2 ]\n        },\n        \"comments\": [{\n          \"id\": 1,\n          \"body\": \"FIRST\"\n        }, {\n          \"id\": 2,\n          \"body\": \"Rails is unagi\"\n        }]\n      }\n      ```\n       The `normalize` method will be called three times:\n       * With `App.Post`, `\"posts\"` and `{ id: 1, title: \"Rails is omakase\", ... }`\n      * With `App.Comment`, `\"comments\"` and `{ id: 1, body: \"FIRST\" }`\n      * With `App.Comment`, `\"comments\"` and `{ id: 2, body: \"Rails is unagi\" }`\n       You can use this method, for example, to normalize underscored keys to camelized\n      or other general-purpose normalizations. You will only need to implement\n      `normalize` and manipulate the payload as desired.\n       For example, if the `IDs` under `\"comments\"` are provided as `_id` instead of\n      `id`, you can specify how to normalize just the comments:\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        normalize(model, hash, prop) {\n          if (prop === 'comments') {\n            hash.id = hash._id;\n            delete hash._id;\n          }\n           return super.normalize(...arguments);\n        }\n      }\n      ```\n       On each call to the `normalize` method, the third parameter (`prop`) is always\n      one of the keys that were in the original payload or in the result of another\n      normalization as `normalizeResponse`.\n       @method normalize\n      @param {Model} modelClass\n      @param {Object} resourceHash\n      @param {String} prop\n      @return {Object}\n    */\n\n    /**\n      Normalizes an array of resource payloads and returns a JSON-API Document\n      with primary data and, if any, included data as `{ data, included }`.\n       @method _normalizeArray\n      @param {Store} store\n      @param {String} modelName\n      @param {Object} arrayHash\n      @param {String} prop\n      @return {Object}\n      @private\n    */\n    _normalizeArray(store, modelName, arrayHash, prop) {\n      var documentHash = {\n        data: [],\n        included: []\n      };\n      var modelClass = store.modelFor(modelName);\n      var serializer = store.serializerFor(modelName);\n      Ember.makeArray(arrayHash).forEach(hash => {\n        var {\n          data,\n          included\n        } = this._normalizePolymorphicRecord(store, hash, prop, modelClass, serializer);\n        documentHash.data.push(data);\n        if (included) {\n          documentHash.included.push(...included);\n        }\n      });\n      return documentHash;\n    },\n    _normalizePolymorphicRecord(store, hash, prop, primaryModelClass, primarySerializer) {\n      var serializer = primarySerializer;\n      var modelClass = primaryModelClass;\n      var primaryHasTypeAttribute = (0, _private2.modelHasAttributeOrRelationshipNamedType)(primaryModelClass);\n      if (!primaryHasTypeAttribute && hash.type) {\n        // Support polymorphic records in async relationships\n        var modelName = this.modelNameFromPayloadKey(hash.type);\n        if (store._hasModelFor(modelName)) {\n          serializer = store.serializerFor(modelName);\n          modelClass = store.modelFor(modelName);\n        }\n      }\n      return serializer.normalize(modelClass, hash, prop);\n    },\n    /*\n      @method _normalizeResponse\n      @param {Store} store\n      @param {Model} primaryModelClass\n      @param {Object} payload\n      @param {String|Number} id\n      @param {String} requestType\n      @param {Boolean} isSingle\n      @return {Object} JSON-API Document\n      @private\n    */\n    _normalizeResponse(store, primaryModelClass, payload, id, requestType, isSingle) {\n      var documentHash = {\n        data: null,\n        included: []\n      };\n      var meta = this.extractMeta(store, primaryModelClass, payload);\n      if (meta) {\n        (true && !(Ember.typeOf(meta) === 'object') && Ember.assert('The `meta` returned from `extractMeta` has to be an object, not \"' + Ember.typeOf(meta) + '\".', Ember.typeOf(meta) === 'object'));\n        documentHash.meta = meta;\n      }\n      var keys = Object.keys(payload);\n      for (var i = 0, length = keys.length; i < length; i++) {\n        var prop = keys[i];\n        var modelName = prop;\n        var forcedSecondary = false;\n\n        /*\n          If you want to provide sideloaded records of the same type that the\n          primary data you can do that by prefixing the key with `_`.\n           Example\n           ```\n          {\n            users: [\n              { id: 1, title: 'Tom', manager: 3 },\n              { id: 2, title: 'Yehuda', manager: 3 }\n            ],\n            _users: [\n              { id: 3, title: 'Tomster' }\n            ]\n          }\n          ```\n           This forces `_users` to be added to `included` instead of `data`.\n         */\n        if (prop.charAt(0) === '_') {\n          forcedSecondary = true;\n          modelName = prop.substr(1);\n        }\n        var typeName = this.modelNameFromPayloadKey(modelName);\n        if (!store._hasModelFor(typeName)) {\n          (true && Ember.warn(this.warnMessageNoModelForKey(modelName, typeName), false, {\n            id: 'ds.serializer.model-for-key-missing'\n          }));\n          continue;\n        }\n        var isPrimary = !forcedSecondary && this.isPrimaryType(store, typeName, primaryModelClass);\n        var value = payload[prop];\n        if (value === null) {\n          continue;\n        }\n        if (true /* DEBUG */) {\n          var isQueryRecordAnArray = requestType === 'queryRecord' && isPrimary && Array.isArray(value);\n          var message = 'The adapter returned an array for the primary data of a `queryRecord` response. This is deprecated as `queryRecord` should return a single record.';\n          (true && !(!isQueryRecordAnArray) && Ember.deprecate(message, !isQueryRecordAnArray, {\n            id: 'ds.serializer.rest.queryRecord-array-response',\n            until: '3.0',\n            url: 'https://deprecations.emberjs.com/ember-data/v2.x/#toc_store-queryrecord-array-response-with-restserializer'\n          }));\n        }\n\n        /*\n          Support primary data as an object instead of an array.\n           Example\n           ```\n          {\n            user: { id: 1, title: 'Tom', manager: 3 }\n          }\n          ```\n         */\n        if (isPrimary && !Array.isArray(value)) {\n          var {\n            data: _data,\n            included: _included\n          } = this._normalizePolymorphicRecord(store, value, prop, primaryModelClass, this);\n          documentHash.data = _data;\n          if (_included) {\n            documentHash.included.push(..._included);\n          }\n          continue;\n        }\n        var {\n          data,\n          included\n        } = this._normalizeArray(store, typeName, value, prop);\n        if (included) {\n          documentHash.included.push(...included);\n        }\n        if (isSingle) {\n          data.forEach(resource => {\n            /*\n              Figures out if this is the primary record or not.\n               It's either:\n               1. The record with the same ID as the original request\n              2. If it's a newly created record without an ID, the first record\n                 in the array\n             */\n            var isUpdatedRecord = isPrimary && (0, _private.coerceId)(resource.id) === id;\n            var isFirstCreatedRecord = isPrimary && !id && !documentHash.data;\n            if (isFirstCreatedRecord || isUpdatedRecord) {\n              documentHash.data = resource;\n            } else {\n              documentHash.included.push(resource);\n            }\n          });\n        } else {\n          if (isPrimary) {\n            documentHash.data = data;\n          } else {\n            if (data) {\n              documentHash.included.push(...data);\n            }\n          }\n        }\n      }\n      return documentHash;\n    },\n    isPrimaryType(store, modelName, primaryModelClass) {\n      return (0, _store.normalizeModelName)(modelName) === primaryModelClass.modelName;\n    },\n    /**\n      This method allows you to push a payload containing top-level\n      collections of records organized per type.\n       ```js\n      {\n        \"posts\": [{\n          \"id\": \"1\",\n          \"title\": \"Rails is omakase\",\n          \"author\", \"1\",\n          \"comments\": [ \"1\" ]\n        }],\n        \"comments\": [{\n          \"id\": \"1\",\n          \"body\": \"FIRST\"\n        }],\n        \"users\": [{\n          \"id\": \"1\",\n          \"name\": \"@d2h\"\n        }]\n      }\n      ```\n       It will first normalize the payload, so you can use this to push\n      in data streaming in from your server structured the same way\n      that fetches and saves are structured.\n       @method pushPayload\n      @param {Store} store\n      @param {Object} payload\n    */\n    pushPayload(store, payload) {\n      var documentHash = {\n        data: [],\n        included: []\n      };\n      for (var prop in payload) {\n        var modelName = this.modelNameFromPayloadKey(prop);\n        if (!store._hasModelFor(modelName)) {\n          (true && Ember.warn(this.warnMessageNoModelForKey(prop, modelName), false, {\n            id: 'ds.serializer.model-for-key-missing'\n          }));\n          continue;\n        }\n        var type = store.modelFor(modelName);\n        var typeSerializer = store.serializerFor(type.modelName);\n        Ember.makeArray(payload[prop]).forEach(hash => {\n          var {\n            data,\n            included\n          } = typeSerializer.normalize(type, hash, prop);\n          documentHash.data.push(data);\n          if (included) {\n            documentHash.included.push(...included);\n          }\n        });\n      }\n      store.push(documentHash);\n    },\n    /**\n      This method is used to convert each JSON root key in the payload\n      into a modelName that it can use to look up the appropriate model for\n      that part of the payload.\n       For example, your server may send a model name that does not correspond with\n      the name of the model in your app. Let's take a look at an example model,\n      and an example payload:\n       ```app/models/post.js\n      import Model from '@ember-data/model';\n       export default class Post extends Model {}\n      ```\n       ```javascript\n        {\n          \"blog/post\": {\n            \"id\": \"1\n          }\n        }\n      ```\n       Ember Data is going to normalize the payload's root key for the modelName. As a result,\n      it will try to look up the \"blog/post\" model. Since we don't have a model called \"blog/post\"\n      (or a file called app/models/blog/post.js in ember-cli), Ember Data will throw an error\n      because it cannot find the \"blog/post\" model.\n       Since we want to remove this namespace, we can define a serializer for the application that will\n      remove \"blog/\" from the payload key whenver it's encountered by Ember Data:\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        modelNameFromPayloadKey(payloadKey) {\n          if (payloadKey === 'blog/post') {\n            return super.modelNameFromPayloadKey(payloadKey.replace('blog/', ''));\n          } else {\n           return super.modelNameFromPayloadKey(payloadKey);\n          }\n        }\n      }\n      ```\n       After refreshing, Ember Data will appropriately look up the \"post\" model.\n       By default the modelName for a model is its\n      name in dasherized form. This means that a payload key like \"blogPost\" would be\n      normalized to \"blog-post\" when Ember Data looks up the model. Usually, Ember Data\n      can use the correct inflection to do this for you. Most of the time, you won't\n      need to override `modelNameFromPayloadKey` for this purpose.\n       @method modelNameFromPayloadKey\n      @param {String} key\n      @return {String} the model's modelName\n    */\n    modelNameFromPayloadKey(key) {\n      return (0, _emberInflector.singularize)((0, _store.normalizeModelName)(key));\n    },\n    // SERIALIZE\n\n    /**\n      Called when a record is saved in order to convert the\n      record into JSON.\n       By default, it creates a JSON object with a key for\n      each attribute and belongsTo relationship.\n       For example, consider this model:\n       ```app/models/comment.js\n      import Model, { attr, belongsTo } from '@ember-data/model';\n       export default class Comment extends Model {\n        @attr title\n        @attr body\n         @belongsTo('user') author\n      }\n      ```\n       The default serialization would create a JSON object like:\n       ```js\n      {\n        \"title\": \"Rails is unagi\",\n        \"body\": \"Rails? Omakase? O_O\",\n        \"author\": 12\n      }\n      ```\n       By default, attributes are passed through as-is, unless\n      you specified an attribute type (`attr('date')`). If\n      you specify a transform, the JavaScript value will be\n      serialized when inserted into the JSON hash.\n       By default, belongs-to relationships are converted into\n      IDs when inserted into the JSON hash.\n       ## IDs\n       `serialize` takes an options hash with a single option:\n      `includeId`. If this option is `true`, `serialize` will,\n      by default include the ID in the JSON object it builds.\n       The adapter passes in `includeId: true` when serializing\n      a record for `createRecord`, but not for `updateRecord`.\n       ## Customization\n       Your server may expect a different JSON format than the\n      built-in serialization format.\n       In that case, you can implement `serialize` yourself and\n      return a JSON hash of your choosing.\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serialize(snapshot, options) {\n          let json = {\n            POST_TTL: snapshot.attr('title'),\n            POST_BDY: snapshot.attr('body'),\n            POST_CMS: snapshot.hasMany('comments', { ids: true })\n          };\n           if (options.includeId) {\n            json.POST_ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n      ```\n       ## Customizing an App-Wide Serializer\n       If you want to define a serializer for your entire\n      application, you'll probably want to use `eachAttribute`\n      and `eachRelationship` on the record.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { pluralize } from 'ember-inflector';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serialize(snapshot, options) {\n          let json = {};\n           snapshot.eachAttribute(function(name) {\n            json[serverAttributeName(name)] = snapshot.attr(name);\n          });\n           snapshot.eachRelationship(function(name, relationship) {\n            if (relationship.kind === 'hasMany') {\n              json[serverHasManyName(name)] = snapshot.hasMany(name, { ids: true });\n            }\n          });\n           if (options.includeId) {\n            json.ID_ = snapshot.id;\n          }\n           return json;\n        }\n      }\n       function serverAttributeName(attribute) {\n        return attribute.underscore().toUpperCase();\n      }\n       function serverHasManyName(name) {\n        return serverAttributeName(singularize(name)) + \"_IDS\";\n      }\n      ```\n       This serializer will generate JSON that looks like this:\n       ```js\n      {\n        \"TITLE\": \"Rails is omakase\",\n        \"BODY\": \"Yep. Omakase.\",\n        \"COMMENT_IDS\": [ 1, 2, 3 ]\n      }\n      ```\n       ## Tweaking the Default JSON\n       If you just want to do some small tweaks on the default JSON,\n      you can call super first and make the tweaks on the returned\n      JSON.\n       ```app/serializers/post.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serialize(snapshot, options) {\n          let json = super.serialize(snapshot, options);\n           json.subject = json.title;\n          delete json.title;\n           return json;\n        }\n      }\n      ```\n       @method serialize\n      @param {Snapshot} snapshot\n      @param {Object} options\n      @return {Object} json\n    */\n    serialize(snapshot, options) {\n      return this._super(...arguments);\n    },\n    /**\n      You can use this method to customize the root keys serialized into the JSON.\n      The hash property should be modified by reference (possibly using something like _.extend)\n      By default the REST Serializer sends the modelName of a model, which is a camelized\n      version of the name.\n       For example, your server may expect underscored root objects.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { decamelize } from '@ember/string';\n       export default class ApplicationSerializer extends RESTSerializer {\n        serializeIntoHash(data, type, record, options) {\n          let root = decamelize(type.modelName);\n          data[root] = this.serialize(record, options);\n        }\n      }\n      ```\n       @method serializeIntoHash\n      @param {Object} hash\n      @param {Model} typeClass\n      @param {Snapshot} snapshot\n      @param {Object} options\n    */\n    serializeIntoHash(hash, typeClass, snapshot, options) {\n      var normalizedRootKey = this.payloadKeyFromModelName(typeClass.modelName);\n      hash[normalizedRootKey] = this.serialize(snapshot, options);\n    },\n    /**\n      You can use `payloadKeyFromModelName` to override the root key for an outgoing\n      request. By default, the RESTSerializer returns a camelized version of the\n      model's name.\n       For a model called TacoParty, its `modelName` would be the string `taco-party`. The RESTSerializer\n      will send it to the server with `tacoParty` as the root key in the JSON payload:\n       ```js\n      {\n        \"tacoParty\": {\n          \"id\": \"1\",\n          \"location\": \"Matthew Beale's House\"\n        }\n      }\n      ```\n       For example, your server may expect dasherized root objects:\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n      import { dasherize } from '@ember/string';\n       export default class ApplicationSerializer extends RESTSerializer {\n        payloadKeyFromModelName(modelName) {\n          return dasherize(modelName);\n        }\n      }\n      ```\n       Given a `TacoParty` model, calling `save` on it would produce an outgoing\n      request like:\n       ```js\n      {\n        \"taco-party\": {\n          \"id\": \"1\",\n          \"location\": \"Matthew Beale's House\"\n        }\n      }\n      ```\n       @method payloadKeyFromModelName\n      @param {String} modelName\n      @return {String}\n    */\n    payloadKeyFromModelName(modelName) {\n      return (0, _string.camelize)(modelName);\n    },\n    /**\n      You can use this method to customize how polymorphic objects are serialized.\n      By default the REST Serializer creates the key by appending `Type` to\n      the attribute and value from the model's camelcased model name.\n       @method serializePolymorphicType\n      @param {Snapshot} snapshot\n      @param {Object} json\n      @param {Object} relationship\n    */\n    serializePolymorphicType(snapshot, json, relationship) {\n      var key = relationship.key;\n      var typeKey = this.keyForPolymorphicType(key, relationship.type, 'serialize');\n      var belongsTo = snapshot.belongsTo(key);\n      if (Ember.isNone(belongsTo)) {\n        json[typeKey] = null;\n      } else {\n        json[typeKey] = (0, _string.camelize)(belongsTo.modelName);\n      }\n    },\n    /**\n      You can use this method to customize how a polymorphic relationship should\n      be extracted.\n       @method extractPolymorphicRelationship\n      @param {Object} relationshipType\n      @param {Object} relationshipHash\n      @param {Object} relationshipOptions\n      @return {Object}\n     */\n    extractPolymorphicRelationship(relationshipType, relationshipHash, relationshipOptions) {\n      var {\n        key,\n        resourceHash,\n        relationshipMeta\n      } = relationshipOptions;\n\n      // A polymorphic belongsTo relationship can be present in the payload\n      // either in the form where the `id` and the `type` are given:\n      //\n      //   {\n      //     message: { id: 1, type: 'post' }\n      //   }\n      //\n      // or by the `id` and a `<relationship>Type` attribute:\n      //\n      //   {\n      //     message: 1,\n      //     messageType: 'post'\n      //   }\n      //\n      // The next code checks if the latter case is present and returns the\n      // corresponding JSON-API representation. The former case is handled within\n      // the base class JSONSerializer.\n      var isPolymorphic = relationshipMeta.options.polymorphic;\n      var typeProperty = this.keyForPolymorphicType(key, relationshipType, 'deserialize');\n      if (isPolymorphic && resourceHash[typeProperty] !== undefined && typeof relationshipHash !== 'object') {\n        var type = this.modelNameFromPayloadKey(resourceHash[typeProperty]);\n        return {\n          id: relationshipHash,\n          type: type\n        };\n      }\n      return this._super(...arguments);\n    }\n  });\n  if (true /* DEBUG */) {\n    RESTSerializer.reopen({\n      warnMessageNoModelForKey(prop, typeKey) {\n        return 'Encountered \"' + prop + '\" in payload, but no model was found for model name \"' + typeKey + '\" (resolved model name using ' + this.constructor.toString() + '.modelNameFromPayloadKey(\"' + prop + '\"))';\n      }\n    });\n  }\n  var _default = _exports.default = RESTSerializer;\n});","define(\"@ember-data/serializer/transform\", [\"exports\", \"@ember-data/serializer/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    @module @ember-data/serializer\n  */\n  var _default = _exports.default = _private.Transform;\n});","define(\"@ember-data/store/-debug/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.assertPolymorphicType = void 0;\n  /*\n    Assert that `addedRecord` has a valid type so it can be added to the\n    relationship of the `record`.\n  \n    The assert basically checks if the `addedRecord` can be added to the\n    relationship (specified via `relationshipMeta`) of the `record`.\n  \n    This utility should only be used internally, as both record parameters must\n    be an InternalModel and the `relationshipMeta` needs to be the meta\n    information about the relationship, retrieved via\n    `record.relationshipFor(key)`.\n  \n    @method assertPolymorphicType\n    @param {InternalModel} internalModel\n    @param {RelationshipMeta} relationshipMeta retrieved via\n           `record.relationshipFor(key)`\n    @param {InternalModel} addedRecord record which\n           should be added/set for the relationship\n  */\n  var assertPolymorphicType;\n  if (true /* DEBUG */) {\n    var checkPolymorphic = function checkPolymorphic(modelClass, addedModelClass) {\n      if (modelClass.__isMixin) {\n        return modelClass.__mixin.detect(addedModelClass.PrototypeMixin) ||\n        // handle native class extension e.g. `class Post extends Model.extend(Commentable) {}`\n        modelClass.__mixin.detect(Object.getPrototypeOf(addedModelClass).PrototypeMixin);\n      }\n      return addedModelClass.prototype instanceof modelClass || modelClass.detect(addedModelClass);\n    };\n    _exports.assertPolymorphicType = assertPolymorphicType = function assertPolymorphicType(parentInternalModel, relationshipMeta, addedInternalModel, store) {\n      var addedModelName = addedInternalModel.modelName;\n      var parentModelName = parentInternalModel.modelName;\n      var key = relationshipMeta.key;\n      var relationshipModelName = relationshipMeta.type;\n      var relationshipClass = store.modelFor(relationshipModelName);\n      var addedClass = store.modelFor(addedInternalModel.modelName);\n      var assertionMessage = `The '${addedModelName}' type does not implement '${relationshipModelName}' and thus cannot be assigned to the '${key}' relationship in '${parentModelName}'. Make it a descendant of '${relationshipModelName}' or use a mixin of the same name.`;\n      (true && !(checkPolymorphic(relationshipClass, addedClass)) && Ember.assert(assertionMessage, checkPolymorphic(relationshipClass, addedClass)));\n    };\n  }\n});","define('@ember-data/store/-private', ['exports', 'require', '@ember/string', '@ember-data/store/-debug', 'ember-inflector'], function (exports, require$1, string, Debug, emberInflector) { 'use strict';\n\n  require$1 = require$1 && Object.prototype.hasOwnProperty.call(require$1, 'default') ? require$1['default'] : require$1;\n\n  /**\n    @module @ember-data/store\n  */\n\n  // Used by the store to normalize IDs entering the store.  Despite the fact\n  // that developers may provide IDs as numbers (e.g., `store.findRecord('person', 1)`),\n  // it is important that internally we use strings, since IDs may be serialized\n  // and lose type information.  For example, Ember's router may put a record's\n  // ID into the URL, and if we later try to deserialize that URL and find the\n  // corresponding record, we will not know if it is a string or a number.\n\n  function coerceId(id) {\n    if (id === null || id === undefined || id === '') {\n      return null;\n    }\n    if (typeof id === 'string') {\n      return id;\n    }\n    if (typeof id === 'symbol') {\n      return id.toString();\n    }\n    return '' + id;\n  }\n  function ensureStringId(id) {\n    var normalized = null;\n    if (typeof id === 'string') {\n      normalized = id.length > 0 ? id : null;\n    } else if (typeof id === 'number' && !isNaN(id)) {\n      normalized = '' + id;\n    }\n    if (normalized === null) {\n      throw new Error(`Expected id to be a string or number, received ${String(id)}`);\n    }\n    return normalized;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  // All modelNames are dasherized internally. Changing this function may\n  // require changes to other normalization hooks (such as typeForRoot).\n\n  /**\n   This method normalizes a modelName into the format Ember Data uses\n   internally.\n\n    @function normalizeModelName\n    @for @ember-data/store\n    @param {String} modelName\n    @return {String} normalizedModelName\n  */\n  function normalizeModelName(modelName) {\n    return string.dasherize(modelName);\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   * This symbol provides a Symbol replacement for browsers that do not have it\n   * (eg. IE 11).\n   *\n   * The replacement is different from the native Symbol in some ways. It is a\n   * function that produces an output:\n   * - iterable;\n   * - that is a string, not a symbol.\n   *\n   * @internal\n   */\n  var symbol = typeof Symbol !== 'undefined' ? Symbol : key => `__${key}${Math.floor(Math.random() * Date.now())}__`;\n  function addSymbol(obj, symbol, value) {\n    if (typeof symbol === 'string') {\n      Object.defineProperty(obj, symbol, {\n        value,\n        configurable: false,\n        enumerable: false,\n        writable: false\n      });\n    } else {\n      // Typescript doesn't allow Symbol as an index type\n      obj[symbol] = value;\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  // provided for additional debuggability\n  var DEBUG_CLIENT_ORIGINATED = symbol('record-originated-on-client');\n  var DEBUG_IDENTIFIER_BUCKET = symbol('identifier-bucket');\n\n  /**\n   * An Identifier specific to a record which may or may not\n   * be present in the cache.\n   *\n   * The absence of an `id` DOES NOT indicate that this\n   * Identifier is for a new client-created record as it\n   * may also indicate that it was generated for a secondary\n   * index and the primary `id` index is not yet known.\n   */\n\n  /**\n   * Used when an Identifier is known to be the stable version\n   *\n   * @internal\n   */\n\n  /**\n   * Used when a StableRecordIdentifier was not created locally as part\n   * of a call to store.createRecord\n   *\n   * Distinguishing between this Identifier and one for a client created\n   * record that was created with an ID is generally speaking not possible\n   * at runtime, so anything with an ID typically narrows to this.\n   *\n   * @internal\n   */\n\n  /**\n   * Used when a StableRecordIdentifier was created locally\n   * (by a call to store.createRecord).\n   *\n   * It is possible in rare circumstances to have a StableRecordIdentifier\n   * that is not for a new record but does not have an ID. This would\n   * happen if a user intentionally created one for use with a secondary-index\n   * prior to the record having been fully loaded.\n   *\n   * @internal\n   */\n\n  /**\n    A method which can expect to receive various data as its first argument\n    and the name of a bucket as its second argument. Currently the second\n    argument will always be `record` data should conform to a `json-api`\n    `Resource` interface, but will be the normalized json data for a single\n    resource that has been given to the store.\n\n    The method must return a unique (to at-least the given bucket) string identifier\n    for the given data as a string to be used as the `lid` of an `Identifier` token.\n\n    This method will only be called by either `getOrCreateRecordIdentifier` or\n    `createIdentifierForNewRecord` when an identifier for the supplied data\n    is not already known via `lid` or `type + id` combo and one needs to be\n    generated or retrieved from a proprietary cache.\n\n    `data` will be the same data argument provided to `getOrCreateRecordIdentifier`\n    and in the `createIdentifierForNewRecord` case will be an object with\n    only `type` as a key.\n  */\n\n  /*\n   A method which can expect to receive an existing `Identifier` alongside\n   some new data to consider as a second argument. This is an opportunity\n   for secondary lookup tables and caches associated with the identifier\n   to be amended.\n\n   This method is called everytime `updateRecordIdentifier` is called and\n    with the same arguments. It provides the opportunity to update secondary\n    lookup tables for existing identifiers.\n\n   It will always be called after an identifier created with `createIdentifierForNewRecord`\n    has been committed, or after an update to the `record` a `RecordIdentifier`\n    is assigned to has been committed. Committed here meaning that the server\n    has acknowledged the update (for instance after a call to `.save()`)\n\n   If `id` has not previously existed, it will be assigned to the `Identifier`\n    prior to this `UpdateMethod` being called; however, calls to the parent method\n    `updateRecordIdentifier` that attempt to change the `id` or calling update\n    without providing an `id` when one is missing will throw an error.\n  */\n\n  /*\n  A method which can expect to receive an existing `Identifier` that should be eliminated\n   from any secondary lookup tables or caches that the user has populated for it.\n  */\n\n  /*\n   A method which can expect to be called when the parent application is destroyed.\n\n   If you have properly used a WeakMap to encapsulate the state of your customization\n   to the application instance, you may not need to implement the `resetMethod`.\n  */\n\n  function isNonEmptyString(str) {\n    return typeof str === 'string' && str.length > 0;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  var IDENTIFIERS = new WeakMap();\n  function isStableIdentifier(identifier) {\n    return IDENTIFIERS.has(identifier);\n  }\n  function markStableIdentifier(identifier) {\n    IDENTIFIERS.set(identifier, 'is-identifier');\n  }\n  function unmarkStableIdentifier(identifier) {\n    IDENTIFIERS.delete(identifier);\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  // support IE11\n\n  var CRYPTO = (() => {\n    var hasWindow = typeof window !== 'undefined';\n    var isFastBoot = typeof FastBoot !== 'undefined';\n    if (isFastBoot) {\n      return {\n        getRandomValues(buffer) {\n          try {\n            return FastBoot.require('crypto').randomFillSync(buffer);\n          } catch (err) {\n            throw new Error('Using createRecord in Fastboot requires you to add the \"crypto\" package to \"fastbootDependencies\" in your package.json');\n          }\n        }\n      };\n    } else if (hasWindow && typeof window.crypto !== 'undefined') {\n      return window.crypto;\n    } else if (hasWindow && typeof window.msCrypto !== 'undefined' && typeof window.msCrypto.getRandomValues === 'function') {\n      return window.msCrypto;\n    } else {\n      throw new Error('ember-data: Cannot find a valid way to generate local identifiers');\n    }\n  })();\n\n  // we might be able to optimize this by requesting more bytes than we need at a time\n  function rng() {\n    // WHATWG crypto RNG - http://wiki.whatwg.org/wiki/Crypto\n    var rnds8 = new Uint8Array(16);\n    return CRYPTO.getRandomValues(rnds8);\n  }\n\n  /**\n   * Convert array of 16 byte values to UUID string format of the form:\n   * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n   */\n  var byteToHex = [];\n  for (var i = 0; i < 256; ++i) {\n    byteToHex[i] = (i + 0x100).toString(16).substr(1);\n  }\n  function bytesToUuid(buf) {\n    var bth = byteToHex;\n    // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4\n    return [bth[buf[0]], bth[buf[1]], bth[buf[2]], bth[buf[3]], '-', bth[buf[4]], bth[buf[5]], '-', bth[buf[6]], bth[buf[7]], '-', bth[buf[8]], bth[buf[9]], '-', bth[buf[10]], bth[buf[11]], bth[buf[12]], bth[buf[13]], bth[buf[14]], bth[buf[15]]].join('');\n  }\n  function uuidv4() {\n    var rnds = rng();\n\n    // Per 4.4, set bits for version and `clock_seq_hi_and_reserved`\n    rnds[6] = rnds[6] & 0x0f | 0x40;\n    rnds[8] = rnds[8] & 0x3f | 0x80;\n    return bytesToUuid(rnds);\n  }\n\n  function freeze(obj) {\n    if (typeof Object.freeze === 'function') {\n      return Object.freeze(obj);\n    }\n    return obj;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  var configuredForgetMethod;\n  var configuredGenerationMethod;\n  var configuredResetMethod;\n  var configuredUpdateMethod;\n  function setIdentifierGenerationMethod(method) {\n    configuredGenerationMethod = method;\n  }\n  function setIdentifierUpdateMethod(method) {\n    configuredUpdateMethod = method;\n  }\n  function setIdentifierForgetMethod(method) {\n    configuredForgetMethod = method;\n  }\n  function setIdentifierResetMethod(method) {\n    configuredResetMethod = method;\n  }\n  function defaultGenerationMethod(data, bucket) {\n    if (isNonEmptyString(data.lid)) {\n      return data.lid;\n    }\n    var {\n      type,\n      id\n    } = data;\n    if (isNonEmptyString(id)) {\n      return `@ember-data:lid-${normalizeModelName(type)}-${id}`;\n    }\n    return uuidv4();\n  }\n  var IdentifierCaches = new WeakMap();\n  function identifierCacheFor(store) {\n    var cache = IdentifierCaches.get(store);\n    if (cache === undefined) {\n      cache = new IdentifierCache();\n      IdentifierCaches.set(store, cache);\n    }\n    return cache;\n  }\n  function defaultEmptyCallback(...args) {}\n  var DEBUG_MAP;\n  {\n    DEBUG_MAP = new WeakMap();\n  }\n  class IdentifierCache {\n    constructor() {\n      // Typescript still leaks private properties in the final\n      // compiled class, so we may want to move these from _underscore\n      // to a WeakMap to avoid leaking\n      // currently we leak this for test purposes\n      this._cache = {\n        lids: Object.create(null),\n        types: Object.create(null)\n      };\n      this._generate = void 0;\n      this._update = void 0;\n      this._forget = void 0;\n      this._reset = void 0;\n      this._merge = void 0;\n      // we cache the user configuredGenerationMethod at init because it must\n      // be configured prior and is not allowed to be changed\n      this._generate = configuredGenerationMethod || defaultGenerationMethod;\n      this._update = configuredUpdateMethod || defaultEmptyCallback;\n      this._forget = configuredForgetMethod || defaultEmptyCallback;\n      this._reset = configuredResetMethod || defaultEmptyCallback;\n      this._merge = defaultEmptyCallback;\n    }\n\n    /**\n     * hook to allow management of merge conflicts with identifiers.\n     *\n     * we allow late binding of this private internal merge so that `internalModelFactory`\n     * can insert itself here to handle elimination of duplicates\n     *\n     * @internal\n     */\n    __configureMerge(method) {\n      this._merge = method || defaultEmptyCallback;\n    }\n\n    /**\n     * @internal\n     */\n\n    _getRecordIdentifier(resource, shouldGenerate = false) {\n      // short circuit if we're already the stable version\n      if (isStableIdentifier(resource)) {\n        {\n          // TODO should we instead just treat this case as a new generation skipping the short circuit?\n          if (!(resource.lid in this._cache.lids) || this._cache.lids[resource.lid] !== resource) {\n            throw new Error(`The supplied identifier ${resource} does not belong to this store instance`);\n          }\n        }\n        return resource;\n      }\n      var lid = coerceId(resource.lid);\n      var identifier = lid !== null ? this._cache.lids[lid] : undefined;\n      if (identifier !== undefined) {\n        return identifier;\n      }\n      var type = normalizeModelName(resource.type);\n      var id = coerceId(resource.id);\n      if (shouldGenerate === false) {\n        if (!type || !id) {\n          return;\n        }\n      }\n\n      // `type` must always be present\n      {\n        if (!isNonEmptyString(resource.type)) {\n          throw new Error('resource.type needs to be a string');\n        }\n      }\n      var keyOptions = getTypeIndex(this._cache.types, type);\n\n      // go straight for the stable RecordIdentifier key'd to `lid`\n      if (lid !== null) {\n        identifier = keyOptions.lid[lid];\n      }\n\n      // we may have not seen this resource before\n      // but just in case we check our own secondary lookup (`id`)\n      if (identifier === undefined && id !== null) {\n        identifier = keyOptions.id[id];\n      }\n      if (identifier === undefined) {\n        // we have definitely not seen this resource before\n        // so we allow the user configured `GenerationMethod` to tell us\n        var newLid = this._generate(resource, 'record');\n\n        // we do this _even_ when `lid` is present because secondary lookups\n        // may need to be populated, but we enforce not giving us something\n        // different than expected\n        if (lid !== null && newLid !== lid) {\n          throw new Error(`You should not change the <lid> of a RecordIdentifier`);\n        } else if (lid === null) {\n          // allow configuration to tell us that we have\n          // seen this `lid` before. E.g. a secondary lookup\n          // connects this resource to a previously seen\n          // resource.\n          identifier = keyOptions.lid[newLid];\n        }\n        if (shouldGenerate === true) {\n          if (identifier === undefined) {\n            // if we still don't have an identifier, time to generate one\n            identifier = makeStableRecordIdentifier(id, type, newLid, 'record', false);\n\n            // populate our unique table\n            {\n              // realistically if you hit this it means you changed `type` :/\n              // TODO consider how to handle type change assertions more gracefully\n              if (identifier.lid in this._cache.lids) {\n                throw new Error(`You should not change the <type> of a RecordIdentifier`);\n              }\n            }\n            this._cache.lids[identifier.lid] = identifier;\n\n            // populate our primary lookup table\n            // TODO consider having the `lid` cache be\n            // one level up\n            keyOptions.lid[identifier.lid] = identifier;\n            // TODO exists temporarily to support `peekAll`\n            // but likely to move\n            keyOptions._allIdentifiers.push(identifier);\n          }\n\n          // populate our own secondary lookup table\n          // even for the \"successful\" secondary lookup\n          // by `_generate()`, since we missed the cache\n          // previously\n          // we use identifier.id instead of id here\n          // because they may not match and we prefer\n          // what we've set via resource data\n          if (identifier.id !== null) {\n            keyOptions.id[identifier.id] = identifier;\n\n            // TODO allow filling out of `id` here\n            // for the `username` non-client created\n            // case.\n          }\n        }\n      }\n      return identifier;\n    }\n\n    /**\n     * allows us to peek without generating when needed\n     * useful for the \"create\" case when we need to see if\n     * we are accidentally overwritting something\n     *\n     * @internal\n     */\n    peekRecordIdentifier(resource) {\n      return this._getRecordIdentifier(resource, false);\n    }\n\n    /*\n      Returns the Identifier for the given Resource, creates one if it does not yet exist.\n       Specifically this means that we:\n       - validate the `id` `type` and `lid` combo against known identifiers\n      - return an object with an `lid` that is stable (repeated calls with the same\n        `id` + `type` or `lid` will return the same `lid` value)\n      - this referential stability of the object itself is guaranteed\n    */\n    getOrCreateRecordIdentifier(resource) {\n      return this._getRecordIdentifier(resource, true);\n    }\n\n    /*\n     Returns a new Identifier for the supplied data. Call this method to generate\n     an identifier when a new resource is being created local to the client and\n     potentially does not have an `id`.\n      Delegates generation to the user supplied `GenerateMethod` if one has been provided\n     with the signature `generateMethod({ type }, 'record')`.\n     */\n    createIdentifierForNewRecord(data) {\n      var newLid = this._generate(data, 'record');\n      var identifier = makeStableRecordIdentifier(data.id || null, data.type, newLid, 'record', true);\n      var keyOptions = getTypeIndex(this._cache.types, data.type);\n\n      // populate our unique table\n      {\n        if (identifier.lid in this._cache.lids) {\n          throw new Error(`The lid generated for the new record is not unique as it matches an existing identifier`);\n        }\n      }\n      this._cache.lids[identifier.lid] = identifier;\n\n      // populate the type+lid cache\n      keyOptions.lid[newLid] = identifier;\n      // ensure a peekAll sees our new identifier too\n      // TODO move this outta here?\n      keyOptions._allIdentifiers.push(identifier);\n      return identifier;\n    }\n\n    /*\n     Provides the opportunity to update secondary lookup tables for existing identifiers\n     Called after an identifier created with `createIdentifierForNewRecord` has been\n     committed.\n      Assigned `id` to an `Identifier` if `id` has not previously existed; however,\n     attempting to change the `id` or calling update without providing an `id` when\n     one is missing will throw an error.\n       - sets `id` (if `id` was previously `null`)\n      - `lid` and `type` MUST NOT be altered post creation\n       If a merge occurs, it is possible the returned identifier does not match the originally\n      provided identifier. In this case the abandoned identifier will go through the usual\n      `forgetRecordIdentifier` codepaths.\n    */\n    updateRecordIdentifier(identifierObject, data) {\n      var identifier = this.getOrCreateRecordIdentifier(identifierObject);\n      var newId = coerceId(data.id);\n      var existingIdentifier = detectMerge(this._cache.types, identifier, data, newId, this._cache.lids);\n      if (!existingIdentifier) {\n        // If the incoming type does not match the identifier type, we need to create an identifier for the incoming\n        // data so we can merge the incoming data with the existing identifier, see #7325 and #7363\n        if (data.type && identifier.type !== normalizeModelName(data.type)) {\n          var incomingDataResource = Ember.assign({}, data);\n          // Need to strip the lid from the incomingData in order force a new identifier creation\n          delete incomingDataResource.lid;\n          existingIdentifier = this.getOrCreateRecordIdentifier(incomingDataResource);\n        }\n      }\n      if (existingIdentifier) {\n        var keyOptions = getTypeIndex(this._cache.types, identifier.type);\n        identifier = this._mergeRecordIdentifiers(keyOptions, identifier, existingIdentifier, data, newId);\n      }\n      var id = identifier.id;\n      performRecordIdentifierUpdate(identifier, data, this._update);\n      newId = identifier.id;\n\n      // add to our own secondary lookup table\n      if (id !== newId && newId !== null) {\n        var _keyOptions = getTypeIndex(this._cache.types, identifier.type);\n        _keyOptions.id[newId] = identifier;\n        if (id !== null) {\n          delete _keyOptions.id[id];\n        }\n      }\n      return identifier;\n    }\n    _mergeRecordIdentifiers(keyOptions, identifier, existingIdentifier, data, newId) {\n      // delegate determining which identifier to keep to the configured MergeMethod\n      var kept = this._merge(identifier, existingIdentifier, data);\n      var abandoned = kept === identifier ? existingIdentifier : identifier;\n\n      // cleanup the identifier we no longer need\n      this.forgetRecordIdentifier(abandoned);\n\n      // ensure a secondary cache entry for this id for the identifier we do keep\n      keyOptions.id[newId] = kept;\n      // ensure a secondary cache entry for this id for the abandoned identifier's type we do keep\n      var baseKeyOptions = getTypeIndex(this._cache.types, existingIdentifier.type);\n      baseKeyOptions.id[newId] = kept;\n\n      // make sure that the `lid` on the data we are processing matches the lid we kept\n      data.lid = kept.lid;\n      return kept;\n    }\n\n    /*\n     Provides the opportunity to eliminate an identifier from secondary lookup tables\n     as well as eliminates it from ember-data's own lookup tables and book keeping.\n      Useful when a record has been deleted and the deletion has been persisted and\n     we do not care about the record anymore. Especially useful when an `id` of a\n     deleted record might be reused later for a new record.\n    */\n    forgetRecordIdentifier(identifierObject) {\n      var identifier = this.getOrCreateRecordIdentifier(identifierObject);\n      var keyOptions = getTypeIndex(this._cache.types, identifier.type);\n      if (identifier.id !== null) {\n        delete keyOptions.id[identifier.id];\n      }\n      delete this._cache.lids[identifier.lid];\n      delete keyOptions.lid[identifier.lid];\n      var index = keyOptions._allIdentifiers.indexOf(identifier);\n      keyOptions._allIdentifiers.splice(index, 1);\n      unmarkStableIdentifier(identifierObject);\n      this._forget(identifier, 'record');\n    }\n    destroy() {\n      this._reset();\n    }\n  }\n  function getTypeIndex(typeMap, type) {\n    var typeIndex = typeMap[type];\n    if (typeIndex === undefined) {\n      typeIndex = {\n        lid: Object.create(null),\n        id: Object.create(null),\n        _allIdentifiers: []\n      };\n      typeMap[type] = typeIndex;\n    }\n    return typeIndex;\n  }\n  function makeStableRecordIdentifier(id, type, lid, bucket, clientOriginated = false) {\n    var recordIdentifier = {\n      lid,\n      id,\n      type\n    };\n    markStableIdentifier(recordIdentifier);\n    {\n      // we enforce immutability in dev\n      //  but preserve our ability to do controlled updates to the reference\n      var wrapper = {\n        get lid() {\n          return recordIdentifier.lid;\n        },\n        get id() {\n          return recordIdentifier.id;\n        },\n        get type() {\n          return recordIdentifier.type;\n        },\n        toString() {\n          var {\n            type,\n            id,\n            lid\n          } = recordIdentifier;\n          return `${clientOriginated ? '[CLIENT_ORIGINATED] ' : ''}${type}:${id} (${lid})`;\n        }\n      };\n      addSymbol(wrapper, DEBUG_CLIENT_ORIGINATED, clientOriginated);\n      addSymbol(wrapper, DEBUG_IDENTIFIER_BUCKET, bucket);\n      wrapper = freeze(wrapper);\n      markStableIdentifier(wrapper);\n      DEBUG_MAP.set(wrapper, recordIdentifier);\n      return wrapper;\n    }\n  }\n  function performRecordIdentifierUpdate(identifier, data, updateFn) {\n    var {\n      id,\n      lid\n    } = data;\n    var type = data.type && normalizeModelName(data.type);\n    {\n      // get the mutable instance behind our proxy wrapper\n      var wrapper = identifier;\n      identifier = DEBUG_MAP.get(wrapper);\n      if (lid !== undefined) {\n        var newLid = coerceId(lid);\n        if (newLid !== identifier.lid) {\n          throw new Error(`The 'lid' for a RecordIdentifier cannot be updated once it has been created. Attempted to set lid for '${wrapper}' to '${lid}'.`);\n        }\n      }\n      if (id !== undefined) {\n        var newId = coerceId(id);\n        if (identifier.id !== null && identifier.id !== newId) {\n          // here we warn and ignore, as this may be a mistake, but we allow the user\n          // to have multiple cache-keys pointing at a single lid so we cannot error\n          ( Ember.warn(`The 'id' for a RecordIdentifier should not be updated once it has been set. Attempted to set id for '${wrapper}' to '${newId}'.`, false, {\n            id: 'ember-data:multiple-ids-for-identifier'\n          }));\n        }\n      }\n\n      // TODO consider just ignoring here to allow flexible polymorphic support\n      if (type && type !== identifier.type) {\n        throw new Error(`The 'type' for a RecordIdentifier cannot be updated once it has been set. Attempted to set type for '${wrapper}' to '${type}'.`);\n      }\n      updateFn(wrapper, data, 'record');\n    }\n\n    // upgrade the ID, this is a \"one time only\" ability\n    // for the multiple-cache-key scenario we \"could\"\n    // use a heuristic to guess the best id for display\n    // (usually when `data.id` is available and `data.attributes` is not)\n    if (id !== undefined) {\n      identifier.id = coerceId(id);\n    }\n  }\n  function detectMerge(typesCache, identifier, data, newId, lids) {\n    var {\n      id,\n      type,\n      lid\n    } = identifier;\n    if (id !== null && id !== newId && newId !== null) {\n      var keyOptions = getTypeIndex(typesCache, identifier.type);\n      var existingIdentifier = keyOptions.id[newId];\n      return existingIdentifier !== undefined ? existingIdentifier : false;\n    } else {\n      var newType = data.type && normalizeModelName(data.type);\n\n      // If the ids and type are the same but lid is not the same, we should trigger a merge of the identifiers\n      if (id !== null && id === newId && newType === type && data.lid && data.lid !== lid) {\n        var _existingIdentifier = lids[data.lid];\n        return _existingIdentifier !== undefined ? _existingIdentifier : false;\n        // If the lids are the same, and ids are the same, but types are different we should trigger a merge of the identifiers\n      } else if (id !== null && id === newId && newType && newType !== type && data.lid && data.lid === lid) {\n        var _keyOptions2 = getTypeIndex(typesCache, newType);\n        var _existingIdentifier2 = _keyOptions2.id[id];\n        return _existingIdentifier2 !== undefined ? _existingIdentifier2 : false;\n      }\n    }\n    return false;\n  }\n\n  function constructResource(type, id, lid) {\n    var trueId = coerceId(id);\n    if (!isNonEmptyString(trueId)) {\n      if (isNonEmptyString(lid)) {\n        return {\n          type,\n          id: trueId,\n          lid\n        };\n      }\n      throw new Error(`Expected either id or lid to be a valid string`);\n    }\n    if (isNonEmptyString(lid)) {\n      return {\n        type,\n        id: trueId,\n        lid\n      };\n    }\n    return {\n      type,\n      id: trueId\n    };\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    A `PromiseArray` is an object that acts like both an `Ember.Array`\n    and a promise. When the promise is resolved the resulting value\n    will be set to the `PromiseArray`'s `content` property. This makes\n    it easy to create data bindings with the `PromiseArray` that will be\n    updated when the promise resolves.\n\n    For more information see the [Ember.PromiseProxyMixin\n    documentation](/ember/release/classes/PromiseProxyMixin).\n\n    Example\n\n    ```javascript\n    let promiseArray = PromiseArray.create({\n      promise: $.getJSON('/some/remote/data.json')\n    });\n\n    promiseArray.get('length'); // 0\n\n    promiseArray.then(function() {\n      promiseArray.get('length'); // 100\n    });\n    ```\n\n    @class PromiseArray\n    @extends Ember.ArrayProxy\n    @uses Ember.PromiseProxyMixin\n  */\n  var PromiseArray = Ember.ArrayProxy.extend(Ember.PromiseProxyMixin, {\n    meta: Ember.computed.reads('content.meta')\n  });\n\n  /**\n    A `PromiseObject` is an object that acts like both an `EmberObject`\n    and a promise. When the promise is resolved, then the resulting value\n    will be set to the `PromiseObject`'s `content` property. This makes\n    it easy to create data bindings with the `PromiseObject` that will\n    be updated when the promise resolves.\n\n    For more information see the [Ember.PromiseProxyMixin\n    documentation](/ember/release/classes/PromiseProxyMixin.html).\n\n    Example\n\n    ```javascript\n    let promiseObject = PromiseObject.create({\n      promise: $.getJSON('/some/remote/data.json')\n    });\n\n    promiseObject.get('name'); // null\n\n    promiseObject.then(function() {\n      promiseObject.get('name'); // 'Tomster'\n    });\n    ```\n\n    @class PromiseObject\n    @extends Ember.ObjectProxy\n    @uses Ember.PromiseProxyMixin\n  */\n  var PromiseObject = Ember.ObjectProxy.extend(Ember.PromiseProxyMixin);\n  function promiseObject(promise, label) {\n    return PromiseObject.create({\n      promise: Ember.RSVP.Promise.resolve(promise, label)\n    });\n  }\n  function promiseArray(promise, label) {\n    return PromiseArray.create({\n      promise: Ember.RSVP.Promise.resolve(promise, label)\n    });\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   * Get the materialized model from the internalModel/promise\n   * that returns an internal model and return it in a promiseObject.\n   *\n   * Useful for returning from find methods\n   *\n   * @internal\n   */\n  function promiseRecord(internalModelPromise, label) {\n    var toReturn = internalModelPromise.then(internalModel => internalModel.getRecord());\n    return promiseObject(toReturn, label);\n  }\n\n  var backburner = new Ember._Backburner(['normalizeRelationships', 'syncRelationships', 'finished']);\n  {\n    Ember.Test.registerWaiter(() => {\n      return !backburner.currentInstance && !backburner.hasTimers();\n    });\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  var SOURCE_POINTER_REGEXP = /^\\/?data\\/(attributes|relationships)\\/(.*)/;\n  var SOURCE_POINTER_PRIMARY_REGEXP = /^\\/?data/;\n  var PRIMARY_ATTRIBUTE_KEY = 'base';\n\n  /**\n    Convert an hash of errors into an array with errors in JSON-API format.\n     ```javascript\n    import DS from 'ember-data';\n\n     const { errorsHashToArray } = DS;\n     \n     let errors = {\n      base: 'Invalid attributes on saving this record',\n      name: 'Must be present',\n      age: ['Must be present', 'Must be a number']\n    };\n     let errorsArray = errorsHashToArray(errors);\n    // [\n    //   {\n    //     title: \"Invalid Document\",\n    //     detail: \"Invalid attributes on saving this record\",\n    //     source: { pointer: \"/data\" }\n    //   },\n    //   {\n    //     title: \"Invalid Attribute\",\n    //     detail: \"Must be present\",\n    //     source: { pointer: \"/data/attributes/name\" }\n    //   },\n    //   {\n    //     title: \"Invalid Attribute\",\n    //     detail: \"Must be present\",\n    //     source: { pointer: \"/data/attributes/age\" }\n    //   },\n    //   {\n    //     title: \"Invalid Attribute\",\n    //     detail: \"Must be a number\",\n    //     source: { pointer: \"/data/attributes/age\" }\n    //   }\n    // ]\n    ```\n    @method errorsHashToArray\n    @public\n    @param {Object} errors hash with errors as properties\n    @return {Array} array of errors in JSON-API format\n  */\n  function errorsHashToArray(errors) {\n    var out = [];\n    if (Ember.isPresent(errors)) {\n      Object.keys(errors).forEach(key => {\n        var messages = Ember.makeArray(errors[key]);\n        for (var i = 0; i < messages.length; i++) {\n          var title = 'Invalid Attribute';\n          var pointer = `/data/attributes/${key}`;\n          if (key === PRIMARY_ATTRIBUTE_KEY) {\n            title = 'Invalid Document';\n            pointer = `/data`;\n          }\n          out.push({\n            title: title,\n            detail: messages[i],\n            source: {\n              pointer: pointer\n            }\n          });\n        }\n      });\n    }\n    return out;\n  }\n\n  /**\n    Convert an array of errors in JSON-API format into an object.\n\n    ```javascript\n    import DS from 'ember-data';\n\n    const { errorsArrayToHash } = DS;\n\n    let errorsArray = [\n      {\n        title: 'Invalid Attribute',\n        detail: 'Must be present',\n        source: { pointer: '/data/attributes/name' }\n      },\n      {\n        title: 'Invalid Attribute',\n        detail: 'Must be present',\n        source: { pointer: '/data/attributes/age' }\n      },\n      {\n        title: 'Invalid Attribute',\n        detail: 'Must be a number',\n        source: { pointer: '/data/attributes/age' }\n      }\n    ];\n\n    let errors = errorsArrayToHash(errorsArray);\n    // {\n    //   \"name\": [\"Must be present\"],\n    //   \"age\":  [\"Must be present\", \"must be a number\"]\n    // }\n    ```\n\n    @method errorsArrayToHash\n    @public\n    @param {Array} errors array of errors in JSON-API format\n    @return {Object}\n  */\n  function errorsArrayToHash(errors) {\n    var out = {};\n    if (Ember.isPresent(errors)) {\n      errors.forEach(error => {\n        if (error.source && error.source.pointer) {\n          var key = error.source.pointer.match(SOURCE_POINTER_REGEXP);\n          if (key) {\n            key = key[2];\n          } else if (error.source.pointer.search(SOURCE_POINTER_PRIMARY_REGEXP) !== -1) {\n            key = PRIMARY_ATTRIBUTE_KEY;\n          }\n          if (key) {\n            out[key] = out[key] || [];\n            out[key].push(error.detail || error.title);\n          }\n        }\n      });\n    }\n    return out;\n  }\n\n  var RequestStateEnum;\n  (function (RequestStateEnum) {\n    RequestStateEnum[\"pending\"] = \"pending\";\n    RequestStateEnum[\"fulfilled\"] = \"fulfilled\";\n    RequestStateEnum[\"rejected\"] = \"rejected\";\n  })(RequestStateEnum || (RequestStateEnum = {}));\n\n  /*\n   * Returns the RecordData instance associated with a given\n   * Model or InternalModel.\n   *\n   * Intentionally \"loose\" to allow anything with an _internalModel\n   * property until InternalModel is eliminated.\n   *\n   * Intentionally not typed to `InternalModel` due to circular dependency\n   *  which that creates.\n   *\n   * Overtime, this should shift to a \"weakmap\" based lookup in the\n   *  \"Ember.getOwner(obj)\" style.\n   */\n\n  function recordDataFor(instance) {\n    var internalModel = instance._internalModel || instance.internalModel || instance;\n    return internalModel._recordData || null;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n  function relationshipsFor(instance) {\n    var i = instance;\n    // TODO this cast is not safe but it is the assumption of the current\n    // state of the code. We need to update this class to handle CUSTOM_MODEL_CLASS\n    // requirements.\n    var recordData = i._internalModel._recordData;\n    return recordData._relationships;\n  }\n  function relationshipStateFor(instance, propertyName) {\n    return relationshipsFor(instance).get(propertyName);\n  }\n  /**\n    @class Snapshot\n    @private\n    @constructor\n    @param {Model} internalModel The model to create a snapshot from\n  */\n  class Snapshot {\n    constructor(options, identifier, _store) {\n      this._store = _store;\n      this.__attributes = null;\n      this._belongsToRelationships = Object.create(null);\n      this._belongsToIds = Object.create(null);\n      this._hasManyRelationships = Object.create(null);\n      this._hasManyIds = Object.create(null);\n      this._internalModel = void 0;\n      this._changedAttributes = void 0;\n      this.identifier = void 0;\n      this.modelName = void 0;\n      this.id = void 0;\n      this.include = void 0;\n      this.adapterOptions = void 0;\n      var internalModel = this._internalModel = _store._internalModelForResource(identifier);\n      this.modelName = identifier.type;\n      /*\n        If the internalModel does not yet have a record, then we are\n        likely a snapshot being provided to a find request, so we\n        populate __attributes lazily. Else, to preserve the \"moment\n        in time\" in which a snapshot is created, we greedily grab\n        the values.\n       */\n      if (internalModel.hasRecord) {\n        this._attributes;\n      }\n\n      /**\n       The id of the snapshot's underlying record\n        Example\n        ```javascript\n       // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n       postSnapshot.id; // => '1'\n       ```\n        @property id\n       @type {String}\n       */\n      this.id = identifier.id;\n\n      /**\n       A hash of adapter options\n       @property adapterOptions\n       @type {Object}\n       */\n      this.adapterOptions = options.adapterOptions;\n\n      /**\n       @property include\n       @type {String|Array}\n       */\n      this.include = options.include;\n\n      /**\n       The name of the type of the underlying record for this snapshot, as a string.\n        @property modelName\n       @type {String}\n       */\n      this.modelName = internalModel.modelName;\n      if (internalModel.hasRecord) {\n        this._changedAttributes = recordDataFor(internalModel).changedAttributes();\n      }\n    }\n\n    /**\n     The underlying record for this snapshot. Can be used to access methods and\n     properties defined on the record.\n      Example\n      ```javascript\n     let json = snapshot.record.toJSON();\n     ```\n      @property record\n     @type {Model}\n     */\n    get record() {\n      return this._internalModel.getRecord();\n    }\n    get _attributes() {\n      if (this.__attributes !== null) {\n        return this.__attributes;\n      }\n      var record = this.record;\n      var attributes = this.__attributes = Object.create(null);\n      var attrs;\n      {\n        attrs = Object.keys(this._store._attributesDefinitionFor(this.modelName));\n      }\n      {\n        // When CUSTOM_MODEL_CLASS is false `record` must be DSModel\n        record.eachAttribute(keyName => attributes[keyName] = Ember.get(record, keyName));\n      }\n      return attributes;\n    }\n\n    /**\n     The type of the underlying record for this snapshot, as a Model.\n      @property type\n     @type {Model}\n     */\n    get type() {\n      return this._internalModel.modelClass;\n    }\n    get isNew() {\n      {\n        throw new Error('isNew is only available when custom model class ff is on');\n      }\n    }\n\n    /**\n     Returns the value of an attribute.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n     postSnapshot.attr('author'); // => 'Tomster'\n     postSnapshot.attr('title'); // => 'Ember.js rocks'\n     ```\n      Note: Values are loaded eagerly and cached when the snapshot is created.\n      @method attr\n     @param {String} keyName\n     @return {Object} The attribute value or undefined\n     */\n    attr(keyName) {\n      if (keyName in this._attributes) {\n        return this._attributes[keyName];\n      }\n      ( Ember.assert(`Model '${this.identifier}' has no attribute named '${keyName}' defined.`, false));\n    }\n\n    /**\n     Returns all attributes and their corresponding values.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n     postSnapshot.attributes(); // => { author: 'Tomster', title: 'Ember.js rocks' }\n     ```\n      @method attributes\n     @return {Object} All attributes of the current snapshot\n     */\n    attributes() {\n      return Ember.assign({}, this._attributes);\n    }\n\n    /**\n     Returns all changed attributes and their old and new values.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, author: 'Tomster', title: 'Ember.js rocks' });\n     postModel.set('title', 'Ember.js rocks!');\n     postSnapshot.changedAttributes(); // => { title: ['Ember.js rocks', 'Ember.js rocks!'] }\n     ```\n      @method changedAttributes\n     @return {Object} All changed attributes of the current snapshot\n     */\n    changedAttributes() {\n      var changedAttributes = Object.create(null);\n      if (!this._changedAttributes) {\n        return changedAttributes;\n      }\n      var changedAttributeKeys = Object.keys(this._changedAttributes);\n      for (var i = 0, length = changedAttributeKeys.length; i < length; i++) {\n        var key = changedAttributeKeys[i];\n        changedAttributes[key] = this._changedAttributes[key].slice();\n      }\n      return changedAttributes;\n    }\n\n    /**\n     Returns the current value of a belongsTo relationship.\n      `belongsTo` takes an optional hash of options as a second parameter,\n     currently supported options are:\n      - `id`: set to `true` if you only want the ID of the related record to be\n     returned.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, title: 'Hello World' });\n     // store.createRecord('comment', { body: 'Lorem ipsum', post: post });\n     commentSnapshot.belongsTo('post'); // => Snapshot\n     commentSnapshot.belongsTo('post', { id: true }); // => '1'\n      // store.push('comment', { id: 1, body: 'Lorem ipsum' });\n     commentSnapshot.belongsTo('post'); // => undefined\n     ```\n      Calling `belongsTo` will return a new Snapshot as long as there's any known\n     data for the relationship available, such as an ID. If the relationship is\n     known but unset, `belongsTo` will return `null`. If the contents of the\n     relationship is unknown `belongsTo` will return `undefined`.\n      Note: Relationships are loaded lazily and cached upon first access.\n      @method belongsTo\n     @param {String} keyName\n     @param {Object} [options]\n     @return {(Snapshot|String|null|undefined)} A snapshot or ID of a known\n     relationship or null if the relationship is known but unset. undefined\n     will be returned if the contents of the relationship is unknown.\n     */\n    belongsTo(keyName, options) {\n      var returnModeIsId = !!(options && options.id);\n      var relationship;\n      var inverseInternalModel;\n      var result;\n      var store = this._internalModel.store;\n      if (returnModeIsId === true && keyName in this._belongsToIds) {\n        return this._belongsToIds[keyName];\n      }\n      if (returnModeIsId === false && keyName in this._belongsToRelationships) {\n        return this._belongsToRelationships[keyName];\n      }\n      var relationshipMeta = store._relationshipMetaFor(this.modelName, null, keyName);\n      ( !(relationshipMeta && relationshipMeta.kind === 'belongsTo') && Ember.assert(`Model '${this.identifier}' has no belongsTo relationship named '${keyName}' defined.`, relationshipMeta && relationshipMeta.kind === 'belongsTo')); // TODO @runspired it seems this code branch would not work with CUSTOM_MODEL_CLASSes\n      // TODO @runspired instead of casting here either generify relationship state or\n      // provide a mechanism on relationship state by which to narrow.\n      relationship = relationshipStateFor(this, keyName);\n      var value = relationship.getData();\n      var data = value && value.data;\n      inverseInternalModel = data ? store._internalModelForResource(data) : null;\n      if (value && value.data !== undefined) {\n        if (inverseInternalModel && !inverseInternalModel.isDeleted()) {\n          if (returnModeIsId) {\n            result = inverseInternalModel.id;\n          } else {\n            result = inverseInternalModel.createSnapshot();\n          }\n        } else {\n          result = null;\n        }\n      }\n      if (returnModeIsId) {\n        this._belongsToIds[keyName] = result;\n      } else {\n        this._belongsToRelationships[keyName] = result;\n      }\n      return result;\n    }\n\n    /**\n     Returns the current value of a hasMany relationship.\n      `hasMany` takes an optional hash of options as a second parameter,\n     currently supported options are:\n      - `ids`: set to `true` if you only want the IDs of the related records to be\n     returned.\n      Example\n      ```javascript\n     // store.push('post', { id: 1, title: 'Hello World', comments: [2, 3] });\n     postSnapshot.hasMany('comments'); // => [Snapshot, Snapshot]\n     postSnapshot.hasMany('comments', { ids: true }); // => ['2', '3']\n      // store.push('post', { id: 1, title: 'Hello World' });\n     postSnapshot.hasMany('comments'); // => undefined\n     ```\n      Note: Relationships are loaded lazily and cached upon first access.\n      @method hasMany\n     @param {String} keyName\n     @param {Object} [options]\n     @return {(Array|undefined)} An array of snapshots or IDs of a known\n     relationship or an empty array if the relationship is known but unset.\n     undefined will be returned if the contents of the relationship is unknown.\n     */\n    hasMany(keyName, options) {\n      var returnModeIsIds = !!(options && options.ids);\n      var relationship;\n      var results;\n      var cachedIds = this._hasManyIds[keyName];\n      var cachedSnapshots = this._hasManyRelationships[keyName];\n      if (returnModeIsIds === true && keyName in this._hasManyIds) {\n        return cachedIds;\n      }\n      if (returnModeIsIds === false && keyName in this._hasManyRelationships) {\n        return cachedSnapshots;\n      }\n      var store = this._internalModel.store;\n      var relationshipMeta = store._relationshipMetaFor(this.modelName, null, keyName);\n      ( !(relationshipMeta && relationshipMeta.kind === 'hasMany') && Ember.assert(`Model '${this.identifier}' has no hasMany relationship named '${keyName}' defined.`, relationshipMeta && relationshipMeta.kind === 'hasMany')); // TODO @runspired it seems this code branch would not work with CUSTOM_MODEL_CLASSes\n      // TODO @runspired instead of casting here either generify relationship state or\n      // provide a mechanism on relationship state by which to narrow.\n      relationship = relationshipStateFor(this, keyName);\n      var value = relationship.getData();\n      if (value.data) {\n        results = [];\n        value.data.forEach(member => {\n          var internalModel = store._internalModelForResource(member);\n          if (!internalModel.isDeleted()) {\n            if (returnModeIsIds) {\n              results.push(member.id);\n            } else {\n              results.push(internalModel.createSnapshot());\n            }\n          }\n        });\n      }\n\n      // we assign even if `undefined` so that we don't reprocess the relationship\n      // on next access. This works with the `keyName in` checks above.\n      if (returnModeIsIds) {\n        this._hasManyIds[keyName] = results;\n      } else {\n        this._hasManyRelationships[keyName] = results;\n      }\n      return results;\n    }\n\n    /**\n      Iterates through all the attributes of the model, calling the passed\n      function on each attribute.\n       Example\n       ```javascript\n      snapshot.eachAttribute(function(name, meta) {\n        // ...\n      });\n      ```\n       @method eachAttribute\n      @param {Function} callback the callback to execute\n      @param {Object} [binding] the value to which the callback's `this` should be bound\n    */\n    eachAttribute(callback, binding) {\n      {\n        // in the non CUSTOM_MODEL_CLASS world we only have DSModel instances\n        this.record.eachAttribute(callback, binding);\n      }\n    }\n\n    /**\n      Iterates through all the relationships of the model, calling the passed\n      function on each relationship.\n       Example\n       ```javascript\n      snapshot.eachRelationship(function(name, relationship) {\n        // ...\n      });\n      ```\n       @method eachRelationship\n      @param {Function} callback the callback to execute\n      @param {Object} [binding] the value to which the callback's `this` should be bound\n    */\n    eachRelationship(callback, binding) {\n      {\n        // in the non CUSTOM_MODEL_CLASS world we only have DSModel instances\n        this.record.eachRelationship(callback, binding);\n      }\n    }\n\n    /**\n      Serializes the snapshot using the serializer for the model.\n       Example\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n       export default Adapter.extend({\n        createRecord(store, type, snapshot) {\n          let data = snapshot.serialize({ includeId: true });\n          let url = `/${type.modelName}`;\n           return fetch(url, {\n            method: 'POST',\n            body: data,\n          }).then((response) => response.json())\n        }\n      });\n      ```\n       @method serialize\n      @param {Object} options\n      @return {Object} an object whose values are primitive JSON values only\n     */\n    serialize(options) {\n      return this._store.serializerFor(this.modelName).serialize(this, options);\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  function _bind(fn, ...args) {\n    return function () {\n      return fn.apply(undefined, args);\n    };\n  }\n  function _guard(promise, test) {\n    var guarded = promise.finally(() => {\n      if (!test()) {\n        guarded._subscribers.length = 0;\n      }\n    });\n    return guarded;\n  }\n  function _objectIsAlive(object) {\n    return !(Ember.get(object, 'isDestroyed') || Ember.get(object, 'isDestroying'));\n  }\n  function guardDestroyedStore(promise, store, label) {\n    var token;\n    {\n      token = store._trackAsyncRequestStart(label);\n    }\n    var wrapperPromise = Ember.RSVP.resolve(promise, label).then(v => promise);\n    return _guard(wrapperPromise, () => {\n      {\n        store._trackAsyncRequestEnd(token);\n      }\n      return _objectIsAlive(store);\n    });\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /*\n    This is a helper method that validates a JSON API top-level document\n\n    The format of a document is described here:\n    http://jsonapi.org/format/#document-top-level\n\n    @method validateDocumentStructure\n    @param {Object} doc JSON API document\n    @return {array} An array of errors found in the document structure\n  */\n  function validateDocumentStructure(doc) {\n    var errors = [];\n    if (!doc || typeof doc !== 'object') {\n      errors.push('Top level of a JSON API document must be an object');\n    } else {\n      if (!('data' in doc) && !('errors' in doc) && !('meta' in doc)) {\n        errors.push('One or more of the following keys must be present: \"data\", \"errors\", \"meta\".');\n      } else {\n        if ('data' in doc && 'errors' in doc) {\n          errors.push('Top level keys \"errors\" and \"data\" cannot both be present in a JSON API document');\n        }\n      }\n      if ('data' in doc) {\n        if (!(doc.data === null || Array.isArray(doc.data) || typeof doc.data === 'object')) {\n          errors.push('data must be null, an object, or an array');\n        }\n      }\n      if ('meta' in doc) {\n        if (typeof doc.meta !== 'object') {\n          errors.push('meta must be an object');\n        }\n      }\n      if ('errors' in doc) {\n        if (!Array.isArray(doc.errors)) {\n          errors.push('errors must be an array');\n        }\n      }\n      if ('links' in doc) {\n        if (typeof doc.links !== 'object') {\n          errors.push('links must be an object');\n        }\n      }\n      if ('jsonapi' in doc) {\n        if (typeof doc.jsonapi !== 'object') {\n          errors.push('jsonapi must be an object');\n        }\n      }\n      if ('included' in doc) {\n        if (typeof doc.included !== 'object') {\n          errors.push('included must be an array');\n        }\n      }\n    }\n    return errors;\n  }\n\n  /*\n    This is a helper method that always returns a JSON-API Document.\n\n    @method normalizeResponseHelper\n    @param {Serializer} serializer\n    @param {Store} store\n    @param {subclass of Model} modelClass\n    @param {Object} payload\n    @param {String|Number} id\n    @param {String} requestType\n    @return {Object} JSON-API Document\n  */\n  function normalizeResponseHelper(serializer, store, modelClass, payload, id, requestType) {\n    var normalizedResponse = serializer.normalizeResponse(store, modelClass, payload, id, requestType);\n    var validationErrors = [];\n    {\n      validationErrors = validateDocumentStructure(normalizedResponse);\n    }\n    ( !(validationErrors.length === 0) && Ember.assert(`normalizeResponse must return a valid JSON API document:\\n\\t* ${validationErrors.join('\\n\\t* ')}`, validationErrors.length === 0));\n    return normalizedResponse;\n  }\n\n  var emberRun = Ember.run.backburner;\n\n  /**\n    @module @ember-data/store\n  */\n\n  var INSTANCE_DEPRECATIONS;\n  var lookupDeprecations;\n  var DeprecatedEvented;\n  {\n    INSTANCE_DEPRECATIONS = new WeakMap();\n    lookupDeprecations = function lookupInstanceDrecations(instance) {\n      var deprecations = INSTANCE_DEPRECATIONS.get(instance);\n      if (!deprecations) {\n        deprecations = {};\n        INSTANCE_DEPRECATIONS.set(instance, deprecations);\n      }\n      return deprecations;\n    };\n    DeprecatedEvented = Ember.Mixin.create(Ember.Evented, {\n      /**\n       * Provides a way to call Evented without logging deprecation warnings\n       * @param {String} name\n       */\n      _has(name) {\n        return Ember.Evented.mixins[0].properties.has.call(this, name);\n      },\n      _on() {\n        return Ember.Evented.mixins[0].properties.on.call(this, ...arguments);\n      },\n      _deprecateEvented(eventName) {\n        var deprecations = lookupDeprecations(this);\n        var _deprecationData = this._getDeprecatedEventedInfo ? `on ${this._getDeprecatedEventedInfo()}` : '';\n        var deprecationMessage = _deprecationData ? `Called ${eventName} ${_deprecationData}` : eventName;\n        ( !(deprecations[eventName]) && Ember.deprecate(deprecationMessage, deprecations[eventName], {\n          id: 'ember-data:evented-api-usage',\n          until: '4.0',\n          url: 'https://deprecations.emberjs.com/ember-data/v3.x/#deprecatingrecordlifecycleeventmethods'\n        }));\n        deprecations[eventName] = true;\n      },\n      has(name) {\n        this._deprecateEvented(name);\n        return this._super(...arguments);\n      },\n      off(name, target, method) {\n        this._deprecateEvented(name);\n        return this._super(...arguments);\n      },\n      on(name, target, method) {\n        this._deprecateEvented(name);\n        return this._super(...arguments);\n      },\n      one(name, target, method) {\n        this._deprecateEvented(name);\n        return this._super(...arguments);\n      },\n      trigger(name) {\n        this._deprecateEvented(name);\n        return this._super(...arguments);\n      }\n    });\n  }\n  var DeprecatedEvented$1 =   DeprecatedEvented  ;\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    @class SnapshotRecordArray\n    @private\n    @constructor\n    @param {Array} snapshots An array of snapshots\n    @param {Object} meta\n  */\n  class SnapshotRecordArray {\n    constructor(recordArray, meta, options = {}) {\n      this._snapshots = void 0;\n      this._recordArray = void 0;\n      this._type = void 0;\n      this.length = void 0;\n      this.meta = void 0;\n      this.adapterOptions = void 0;\n      this.include = void 0;\n      /**\n        An array of snapshots\n        @private\n        @property _snapshots\n        @type {Array}\n      */\n      this._snapshots = null;\n\n      /**\n        An array of records\n        @private\n        @property _recordArray\n        @type {Array}\n      */\n      this._recordArray = recordArray;\n\n      /**\n        Number of records in the array\n         Example\n         ```app/adapters/post.js\n        import JSONAPIAdapter from '@ember-data/adapter/json-api';\n         export default class PostAdapter extends JSONAPIAdapter {\n          shouldReloadAll(store, snapshotRecordArray) {\n            return !snapshotRecordArray.length;\n          }\n        });\n        ```\n         @property length\n        @type {Number}\n      */\n      this.length = recordArray.get('length');\n      this._type = null;\n\n      /**\n        Meta objects for the record array.\n         Example\n         ```app/adapters/post.js\n        import JSONAPIAdapter from '@ember-data/adapter/json-api';\n         export default class PostAdapter extends JSONAPIAdapter {\n          shouldReloadAll(store, snapshotRecordArray) {\n            let lastRequestTime = snapshotRecordArray.meta.lastRequestTime;\n            let twentyMinutes = 20 * 60 * 1000;\n            return Date.now() > lastRequestTime + twentyMinutes;\n          }\n        });\n        ```\n         @property meta\n        @type {Object}\n      */\n      this.meta = meta;\n\n      /**\n        A hash of adapter options passed into the store method for this request.\n         Example\n         ```app/adapters/post.js\n        import MyCustomAdapter from './custom-adapter';\n         export default class PostAdapter extends MyCustomAdapter {\n          findAll(store, type, sinceToken, snapshotRecordArray) {\n            if (snapshotRecordArray.adapterOptions.subscribe) {\n              // ...\n            }\n            // ...\n          }\n        }\n        ```\n         @property adapterOptions\n        @type {Object}\n      */\n      this.adapterOptions = options.adapterOptions;\n\n      /**\n        The relationships to include for this request.\n         Example\n         ```app/adapters/application.js\n        import Adapter from '@ember-data/adapter';\n         export default class ApplicationAdapter extends Adapter {\n          findAll(store, type, snapshotRecordArray) {\n            let url = `/${type.modelName}?include=${encodeURIComponent(snapshotRecordArray.include)}`;\n             return fetch(url).then((response) => response.json())\n          }\n        }\n        ```\n         @property include\n        @type {String|Array}\n      */\n      this.include = options.include;\n    }\n\n    /**\n      The type of the underlying records for the snapshots in the array, as a Model\n      @property type\n      @type {Model}\n    */\n    get type() {\n      return this._type || (this._type = this._recordArray.get('type'));\n    }\n    /**\n      The modelName of the underlying records for the snapshots in the array, as a Model\n      @property type\n      @type {Model}\n    */\n    get modelName() {\n      return this._recordArray.modelName;\n    }\n\n    /**\n      Get snapshots of the underlying record array\n       Example\n       ```app/adapters/post.js\n      import JSONAPIAdapter from '@ember-data/adapter/json-api';\n       export default class PostAdapter extends JSONAPIAdapter {\n        shouldReloadAll(store, snapshotArray) {\n          let snapshots = snapshotArray.snapshots();\n           return snapshots.any(function(ticketSnapshot) {\n            let timeDiff = moment().diff(ticketSnapshot.attr('lastAccessedAt'), 'minutes');\n            if (timeDiff > 20) {\n              return true;\n            } else {\n              return false;\n            }\n          });\n        }\n      }\n      ```\n       @method snapshots\n      @return {Array} Array of snapshots\n    */\n    snapshots() {\n      if (this._snapshots !== null) {\n        return this._snapshots;\n      }\n      this._snapshots = this._recordArray._takeSnapshot();\n      return this._snapshots;\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   `InternalModelMap` is a custom storage map for internalModels of a given modelName\n   used by `IdentityMap`.\n\n   It was extracted from an implicit pojo based \"internalModel map\" and preserves\n   that interface while we work towards a more official API.\n\n   @class InternalModelMap\n   @private\n   */\n  class InternalModelMap {\n    constructor(modelName) {\n      this.modelName = modelName;\n      this._idToModel = Object.create(null);\n      this._models = [];\n      this._metadata = null;\n    }\n\n    /**\n     * @method get\n     * @param id {String}\n     * @return {InternalModel}\n     */\n    get(id) {\n      return this._idToModel[id] || null;\n    }\n    has(id) {\n      return !!this._idToModel[id];\n    }\n    get length() {\n      return this._models.length;\n    }\n    get recordIdentifiers() {\n      return this._models.map(m => m.identifier);\n    }\n    set(id, internalModel) {\n      ( !(typeof id === 'string' && id.length > 0) && Ember.assert(`You cannot index an internalModel by an empty id'`, typeof id === 'string' && id.length > 0));\n      ( !(internalModel instanceof InternalModel) && Ember.assert(`You cannot set an index for an internalModel to something other than an internalModel`, internalModel instanceof InternalModel));\n      ( !(this.contains(internalModel)) && Ember.assert(`You cannot set an index for an internalModel that is not in the InternalModelMap`, this.contains(internalModel)));\n      ( !(!this.has(id) || this.get(id) === internalModel) && Ember.assert(`You cannot update the id index of an InternalModel once set. Attempted to update ${id}.`, !this.has(id) || this.get(id) === internalModel));\n      this._idToModel[id] = internalModel;\n    }\n    add(internalModel, id) {\n      ( !(!this.contains(internalModel)) && Ember.assert(`You cannot re-add an already present InternalModel to the InternalModelMap.`, !this.contains(internalModel)));\n      if (id) {\n        ( !(!this.has(id) || this.get(id) === internalModel) && Ember.assert(`Duplicate InternalModel for ${this.modelName}:${id} detected.`, !this.has(id) || this.get(id) === internalModel));\n        this._idToModel[id] = internalModel;\n      }\n      this._models.push(internalModel);\n    }\n    remove(internalModel, id) {\n      delete this._idToModel[id];\n      var loc = this._models.indexOf(internalModel);\n      if (loc !== -1) {\n        this._models.splice(loc, 1);\n      }\n    }\n    contains(internalModel) {\n      return this._models.indexOf(internalModel) !== -1;\n    }\n\n    /**\n     An array of all models of this modelName\n     @property models\n     @type Array\n     */\n    get models() {\n      return this._models;\n    }\n\n    /**\n     * meta information about internalModels\n     * @property metadata\n     * @type Object\n     */\n    get metadata() {\n      return this._metadata || (this._metadata = Object.create(null));\n    }\n\n    /**\n     Destroy all models in the internalModelTest and wipe metadata.\n      @method clear\n     */\n    clear() {\n      var internalModels = this._models;\n      this._models = [];\n      for (var i = 0; i < internalModels.length; i++) {\n        var internalModel = internalModels[i];\n        internalModel.unloadRecord();\n      }\n      this._metadata = null;\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   `IdentityMap` is a custom storage map for records by modelName\n   used by `Store`.\n\n   @class IdentityMap\n   @private\n   */\n  class IdentityMap {\n    constructor() {\n      this._map = Object.create(null);\n    }\n    /**\n     Retrieves the `InternalModelMap` for a given modelName,\n     creating one if one did not already exist. This is\n     similar to `getWithDefault` or `get` on a `MapWithDefault`\n      @method retrieve\n     @param modelName a previously normalized modelName\n     @return {InternalModelMap} the InternalModelMap for the given modelName\n     */\n    retrieve(modelName) {\n      var map = this._map[modelName];\n      if (map === undefined) {\n        map = this._map[modelName] = new InternalModelMap(modelName);\n      }\n      return map;\n    }\n\n    /**\n     Clears the contents of all known `RecordMaps`, but does\n     not remove the InternalModelMap instances.\n      @method clear\n     */\n    clear() {\n      var map = this._map;\n      var keys = Object.keys(map);\n      for (var i = 0; i < keys.length; i++) {\n        var key = keys[i];\n        map[key].clear();\n      }\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  var FactoryCache = new WeakMap();\n  var RecordCache = new WeakMap();\n  function peekRecordIdentifier(record) {\n    return RecordCache.get(record);\n  }\n  function recordIdentifierFor(record) {\n    var identifier = RecordCache.get(record);\n    if ( identifier === undefined) {\n      throw new Error(`${record} is not a record instantiated by @ember-data/store`);\n    }\n    return identifier;\n  }\n  function setRecordIdentifier(record, identifier) {\n    if ( RecordCache.has(record)) {\n      throw new Error(`${record} was already assigned an identifier`);\n    }\n\n    /*\n    It would be nice to do a reverse check here that an identifier has not\n    previously been assigned a record; however, unload + rematerialization\n    prevents us from having a great way of doing so when CustomRecordClasses\n    don't necessarily give us access to a `isDestroyed` for dematerialized\n    instance.\n    */\n\n    RecordCache.set(record, identifier);\n  }\n  function internalModelFactoryFor(store) {\n    var factory = FactoryCache.get(store);\n    if (factory === undefined) {\n      factory = new InternalModelFactory(store);\n      FactoryCache.set(store, factory);\n    }\n    return factory;\n  }\n\n  /**\n   * The InternalModelFactory handles the lifecyle of\n   * instantiating, caching, and destroying InternalModel\n   * instances.\n   *\n   * @internal\n   */\n  class InternalModelFactory {\n    constructor(store) {\n      this.store = store;\n      this._identityMap = void 0;\n      this._newlyCreated = void 0;\n      this.identifierCache = void 0;\n      this.identifierCache = identifierCacheFor(store);\n      this.identifierCache.__configureMerge((identifier, matchedIdentifier, resourceData) => {\n        var intendedIdentifier = identifier;\n        if (identifier.id !== matchedIdentifier.id) {\n          intendedIdentifier = identifier.id === resourceData.id ? identifier : matchedIdentifier;\n        } else if (identifier.type !== matchedIdentifier.type) {\n          intendedIdentifier = identifier.type === resourceData.type ? identifier : matchedIdentifier;\n        }\n        var altIdentifier = identifier === intendedIdentifier ? matchedIdentifier : identifier;\n\n        // check for duplicate InternalModel's\n        var map = this.modelMapFor(identifier.type);\n        var im = map.get(intendedIdentifier.lid);\n        var otherIm = map.get(altIdentifier.lid);\n\n        // we cannot merge internalModels when both have records\n        // (this may not be strictly true, we could probably swap the internalModel the record points at)\n        if (im && otherIm && im.hasRecord && otherIm.hasRecord) {\n          throw new Error(`Failed to update the 'id' for the RecordIdentifier '${identifier.type}:${identifier.id} (${identifier.lid})' to '${resourceData.id}', because that id is already in use by '${matchedIdentifier.type}:${matchedIdentifier.id} (${matchedIdentifier.lid})'`);\n        }\n\n        // remove otherIm from cache\n        if (otherIm) {\n          map.remove(otherIm, altIdentifier.lid);\n        }\n        if (im === null && otherIm === null) {\n          // nothing more to do\n          return intendedIdentifier;\n\n          // only the other has an InternalModel\n          // OR only the other has a Record\n        } else if (im === null && otherIm !== null || im && !im.hasRecord && otherIm && otherIm.hasRecord) {\n          if (im) {\n            // TODO check if we are retained in any async relationships\n            map.remove(im, intendedIdentifier.lid);\n            // im.destroy();\n          }\n          im = otherIm;\n          // TODO do we need to notify the id change?\n          im._id = intendedIdentifier.id;\n          map.add(im, intendedIdentifier.lid);\n\n          // just use im\n        }\n        return intendedIdentifier;\n      });\n      this._identityMap = new IdentityMap();\n    }\n\n    /**\n     * Retrieve the InternalModel for a given { type, id, lid }.\n     *\n     * If an InternalModel does not exist, it instantiates one.\n     *\n     * If an InternalModel does exist bus has a scheduled destroy,\n     *   the scheduled destroy will be cancelled.\n     *\n     * @internal\n     */\n    lookup(resource, data) {\n      if (data !== undefined) {\n        // if we've been given data associated with this lookup\n        // we must first give secondary-caches for LIDs the\n        // opportunity to populate based on it\n        this.identifierCache.getOrCreateRecordIdentifier(data);\n      }\n      var identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      var internalModel = this.peek(identifier);\n      if (internalModel) {\n        // unloadRecord is async, if one attempts to unload + then sync push,\n        //   we must ensure the unload is canceled before continuing\n        //   The createRecord path will take _existingInternalModelForId()\n        //   which will call `destroySync` instead for this unload + then\n        //   sync createRecord scenario. Once we have true client-side\n        //   delete signaling, we should never call destroySync\n        if (internalModel.hasScheduledDestroy()) {\n          internalModel.cancelDestroy();\n        }\n        return internalModel;\n      }\n      return this._build(identifier, false);\n    }\n\n    /**\n     * Peek the InternalModel for a given { type, id, lid }.\n     *\n     * If an InternalModel does not exist, return `null`.\n     *\n     * @internal\n     */\n    peek(identifier) {\n      return this.modelMapFor(identifier.type).get(identifier.lid);\n    }\n    getByResource(resource) {\n      var normalizedResource = constructResource(resource.type, resource.id, resource.lid);\n      return this.lookup(normalizedResource);\n    }\n    setRecordId(type, id, lid) {\n      var resource = {\n        type,\n        id: null,\n        lid\n      };\n      var identifier = this.identifierCache.getOrCreateRecordIdentifier(resource);\n      var internalModel = this.peek(identifier);\n      if (internalModel === null) {\n        throw new Error(`Cannot set the id ${id} on the record ${type}:${lid} as there is no such record in the cache.`);\n      }\n      var oldId = internalModel.id;\n      var modelName = internalModel.modelName;\n\n      // ID absolutely can't be missing if the oldID is empty (missing Id in response for a new record)\n      ( !(!(id === null && oldId === null)) && Ember.assert(`'${modelName}' was saved to the server, but the response does not have an id and your record does not either.`, !(id === null && oldId === null))); // ID absolutely can't be different than oldID if oldID is not null\n      // TODO this assertion and restriction may not strictly be needed in the identifiers world\n      ( !(!(oldId !== null && id !== oldId)) && Ember.assert(`Cannot update the id for '${modelName}:${lid}' from '${oldId}' to '${id}'.`, !(oldId !== null && id !== oldId))); // ID can be null if oldID is not null (altered ID in response for a record)\n      // however, this is more than likely a developer error.\n      if (oldId !== null && id === null) {\n        ( Ember.warn(`Your ${modelName} record was saved to the server, but the response does not have an id.`, !(oldId !== null && id === null)));\n        return;\n      }\n      var existingInternalModel = this.peekById(modelName, id);\n      ( !(Ember.isNone(existingInternalModel) || existingInternalModel === internalModel) && Ember.assert(`'${modelName}' was saved to the server, but the response returned the new id '${id}', which has already been used with another record.'`, Ember.isNone(existingInternalModel) || existingInternalModel === internalModel));\n      if (identifier.id === null) {\n        this.identifierCache.updateRecordIdentifier(identifier, {\n          type,\n          id\n        });\n      }\n      internalModel.setId(id);\n    }\n    peekById(type, id) {\n      var identifier = this.identifierCache.peekRecordIdentifier({\n        type,\n        id\n      });\n      var internalModel = identifier ? this.modelMapFor(type).get(identifier.lid) : null;\n      if (internalModel && internalModel.hasScheduledDestroy()) {\n        // unloadRecord is async, if one attempts to unload + then sync create,\n        //   we must ensure the unload is complete before starting the create\n        //   The push path will take this.lookup()\n        //   which will call `cancelDestroy` instead for this unload + then\n        //   sync push scenario. Once we have true client-side\n        //   delete signaling, we should never call destroySync\n        internalModel.destroySync();\n        internalModel = null;\n      }\n      return internalModel;\n    }\n    build(newResourceInfo) {\n      return this._build(newResourceInfo, true);\n    }\n    _build(resource, isCreate = false) {\n      if (isCreate === true && resource.id) {\n        var existingInternalModel = this.peekById(resource.type, resource.id);\n        ( !(!existingInternalModel) && Ember.assert(`The id ${resource.id} has already been used with another '${resource.type}' record.`, !existingInternalModel));\n      }\n      var {\n        identifierCache\n      } = this;\n      var identifier;\n      if (isCreate === true) {\n        identifier = identifierCache.createIdentifierForNewRecord(resource);\n      } else {\n        identifier = resource;\n      }\n\n      // lookupFactory should really return an object that creates\n      // instances with the injections applied\n      var internalModel = new InternalModel(this.store, identifier);\n      this.modelMapFor(resource.type).add(internalModel, identifier.lid);\n      return internalModel;\n    }\n    remove(internalModel) {\n      var recordMap = this.modelMapFor(internalModel.modelName);\n      var clientId = internalModel.identifier.lid;\n      recordMap.remove(internalModel, clientId);\n      var {\n        identifier\n      } = internalModel;\n      this.identifierCache.forgetRecordIdentifier(identifier);\n    }\n    modelMapFor(type) {\n      return this._identityMap.retrieve(type);\n    }\n    _newlyCreatedModelsFor(type) {\n      return this._newlyCreated.retrieve(type);\n    }\n    clear(type) {\n      if (type === undefined) {\n        this._identityMap.clear();\n      } else {\n        this.modelMapFor(type).clear();\n      }\n    }\n  }\n\n  function recordForIdentifier(store, identifier) {\n    return internalModelFactoryFor(store).lookup(identifier).getRecord();\n  }\n\n  /**\n    A record array is an array that contains records of a certain modelName. The record\n    array materializes records as needed when they are retrieved for the first\n    time. You should not create record arrays yourself. Instead, an instance of\n    `RecordArray` or its subclasses will be returned by your application's store\n    in response to queries.\n\n    @class RecordArray\n    @extends ArrayProxy\n    @uses Ember.Evented\n  */\n\n  var RecordArray = Ember.ArrayProxy.extend(DeprecatedEvented$1, {\n    init(args) {\n      this._super(args);\n      {\n        this._getDeprecatedEventedInfo = () => `RecordArray containing ${this.modelName}`;\n      }\n\n      /**\n        The array of client ids backing the record array. When a\n        record is requested from the record array, the record\n        for the client id at the same index is materialized, if\n        necessary, by the store.\n         @property content\n        @private\n        @type Ember.Array\n        */\n      this.set('content', this.content || null);\n\n      /**\n      The flag to signal a `RecordArray` is finished loading data.\n       Example\n       ```javascript\n      let people = store.peekAll('person');\n      people.get('isLoaded'); // true\n      ```\n       @property isLoaded\n      @type Boolean\n      */\n      this.isLoaded = this.isLoaded || false;\n      /**\n      The flag to signal a `RecordArray` is currently loading data.\n       Example\n       ```javascript\n      let people = store.peekAll('person');\n      people.get('isUpdating'); // false\n      people.update();\n      people.get('isUpdating'); // true\n      ```\n       @property isUpdating\n      @type Boolean\n      */\n      this.isUpdating = false;\n\n      /**\n      The store that created this record array.\n       @property store\n      @private\n      @type Store\n      */\n      this.store = this.store || null;\n      this._updatingPromise = null;\n    },\n    replace() {\n      throw new Error(`The result of a server query (for all ${this.modelName} types) is immutable. To modify contents, use toArray()`);\n    },\n    /**\n     The modelClass represented by this record array.\n      @property type\n     @type Model\n     */\n    type: Ember.computed('modelName', function () {\n      if (!this.modelName) {\n        return null;\n      }\n      return this.store.modelFor(this.modelName);\n    }).readOnly(),\n    /**\n      Retrieves an object from the content by index.\n       @method objectAtContent\n      @private\n      @param {Number} index\n      @return {Model} record\n    */\n    objectAtContent(index) {\n      {\n        var identifier = Ember.get(this, 'content').objectAt(index);\n        return identifier ? recordForIdentifier(this.store, identifier) : undefined;\n      }\n    },\n    /**\n      Used to get the latest version of all of the records in this array\n      from the adapter.\n       Example\n       ```javascript\n      let people = store.peekAll('person');\n      people.get('isUpdating'); // false\n       people.update().then(function() {\n        people.get('isUpdating'); // false\n      });\n       people.get('isUpdating'); // true\n      ```\n       @method update\n    */\n    update() {\n      if (Ember.get(this, 'isUpdating')) {\n        return this._updatingPromise;\n      }\n      this.set('isUpdating', true);\n      var updatingPromise = this._update().finally(() => {\n        this._updatingPromise = null;\n        if (this.get('isDestroying') || this.get('isDestroyed')) {\n          return;\n        }\n        this.set('isUpdating', false);\n      });\n      this._updatingPromise = updatingPromise;\n      return updatingPromise;\n    },\n    /*\n      Update this RecordArray and return a promise which resolves once the update\n      is finished.\n     */\n    _update() {\n      return this.store.findAll(this.modelName, {\n        reload: true\n      });\n    },\n    /**\n      Saves all of the records in the `RecordArray`.\n       Example\n       ```javascript\n      let messages = store.peekAll('message');\n      messages.forEach(function(message) {\n        message.set('hasBeenSeen', true);\n      });\n      messages.save();\n      ```\n       @method save\n      @return {PromiseArray} promise\n    */\n    save() {\n      var promiseLabel = `DS: RecordArray#save ${this.modelName}`;\n      var promise = Ember.RSVP.Promise.all(this.invoke('save'), promiseLabel).then(() => this, null, 'DS: RecordArray#save return RecordArray');\n      return PromiseArray.create({\n        promise\n      });\n    },\n    /**\n      @method _unregisterFromManager\n      @private\n    */\n    _unregisterFromManager() {\n      this.manager.unregisterRecordArray(this);\n    },\n    willDestroy() {\n      this._unregisterFromManager();\n      this._dissociateFromOwnRecords();\n      // TODO: we should not do work during destroy:\n      //   * when objects are destroyed, they should simply be left to do\n      //   * if logic errors do to this, that logic needs to be more careful during\n      //    teardown (ember provides isDestroying/isDestroyed) for this reason\n      //   * the exception being: if an dominator has a reference to this object,\n      //     and must be informed to release e.g. e.g. removing itself from th\n      //     recordArrayMananger\n      Ember.set(this, 'content', null);\n      Ember.set(this, 'length', 0);\n      this._super(...arguments);\n    },\n    /*\n      @method _createSnapshot\n      @private\n    */\n    _createSnapshot(options) {\n      // this is private for users, but public for ember-data internals\n      return new SnapshotRecordArray(this, this.get('meta'), options);\n    }\n  });\n  {\n    RecordArray = RecordArray.extend({\n      /**\n        @method _dissociateFromOwnRecords\n        @internal\n      */\n      _dissociateFromOwnRecords() {\n        this.get('content').forEach(identifier => {\n          var recordArrays = this.manager.getRecordArraysForIdentifier(identifier);\n          if (recordArrays) {\n            recordArrays.delete(this);\n          }\n        });\n      },\n      /**\n        Adds identifiers to the `RecordArray` without duplicates\n         @method _pushIdentifiers\n        @internal\n        @param {StableRecordIdentifier[]} identifiers\n      */\n      _pushIdentifiers(identifiers) {\n        Ember.get(this, 'content').pushObjects(identifiers);\n      },\n      /**\n        Removes identifiers from the `RecordArray`.\n         @method _removeIdentifiers\n        @internal\n        @param {StableRecordIdentifier[]} identifiers\n      */\n      _removeIdentifiers(identifiers) {\n        Ember.get(this, 'content').removeObjects(identifiers);\n      },\n      /**\n        @method _takeSnapshot\n        @internal\n      */\n      _takeSnapshot() {\n        return Ember.get(this, 'content').map(identifier => internalModelFactoryFor(this.store).lookup(identifier).createSnapshot());\n      }\n    });\n  }\n  var RecordArray$1 = RecordArray;\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    Represents an ordered list of records whose order and membership is\n    determined by the adapter. For example, a query sent to the adapter\n    may trigger a search on the server, whose results would be loaded\n    into an instance of the `AdapterPopulatedRecordArray`.\n\n    ---\n\n    If you want to update the array and get the latest records from the\n    adapter, you can invoke [`update()`](AdapterPopulatedRecordArray/methods/update?anchor=update):\n\n    Example\n\n    ```javascript\n    // GET /users?isAdmin=true\n    store.query('user', { isAdmin: true }).then(function(admins) {\n\n      admins.then(function() {\n        console.log(admins.get(\"length\")); // 42\n      });\n\n      // somewhere later in the app code, when new admins have been created\n      // in the meantime\n      //\n      // GET /users?isAdmin=true\n      admins.update().then(function() {\n        admins.get('isUpdating'); // false\n        console.log(admins.get(\"length\")); // 123\n      });\n\n      admins.get('isUpdating'); // true\n    }\n    ```\n\n    @class AdapterPopulatedRecordArray\n    @extends RecordArray\n  */\n  var AdapterPopulatedRecordArray = RecordArray$1.extend({\n    init() {\n      this.set('content', this.get('content') || Ember.A());\n      this._super(...arguments);\n      this.query = this.query || null;\n      this.links = this.links || null;\n      {\n        this._getDeprecatedEventedInfo = () => `AdapterPopulatedRecordArray containing ${this.modelName} for query: ${this.query}`;\n      }\n    },\n    replace() {\n      throw new Error(`The result of a server query (on ${this.modelName}) is immutable.`);\n    },\n    _update() {\n      var store = Ember.get(this, 'store');\n      var query = Ember.get(this, 'query');\n      return store._query(this.modelName, query, this);\n    },\n    _setObjects(identifiersOrInternalModels, payload) {\n      // TODO: initial load should not cause change events at all, only\n      // subsequent. This requires changing the public api of adapter.query, but\n      // hopefully we can do that soon.\n      this.get('content').setObjects(identifiersOrInternalModels);\n      this.setProperties({\n        isLoaded: true,\n        isUpdating: false,\n        meta: Ember.assign({}, payload.meta),\n        links: Ember.assign({}, payload.links)\n      });\n      this.manager._associateWithRecordArray(identifiersOrInternalModels, this);\n      {\n        var _hasDidLoad =  this._has('didLoad') ;\n        if (_hasDidLoad) {\n          // TODO: should triggering didLoad event be the last action of the runLoop?\n          Ember.run.once(this, 'trigger', 'didLoad');\n        }\n      }\n    }\n  });\n  {\n    AdapterPopulatedRecordArray = AdapterPopulatedRecordArray.extend({\n      /**\n        @method _setIdentifiers\n        @param {StableRecordIdentifier[]} identifiers\n        @param {Object} payload normalized payload\n        @internal\n      */\n      _setIdentifiers(identifiers, payload) {\n        this._setObjects(identifiers, payload);\n      }\n    });\n  }\n  var AdapterPopulatedRecordArray$1 = AdapterPopulatedRecordArray;\n\n  var RecordArraysCache = new WeakMap();\n  var emberRun$1 = Ember.run.backburner;\n  var RecordArrayManager;\n  function recordArraysForIdentifier(identifierOrInternalModel) {\n    if (RecordArraysCache.has(identifierOrInternalModel)) {\n      // return existing Set if exists\n      return RecordArraysCache.get(identifierOrInternalModel);\n    }\n\n    // returns workable Set instance\n    RecordArraysCache.set(identifierOrInternalModel, new Set());\n    return RecordArraysCache.get(identifierOrInternalModel);\n  }\n\n  /**\n    @class RecordArrayManager\n    @private\n  */\n  {\n    var _emberRun = Ember.run.backburner;\n    var pendingForIdentifier = new Set([]);\n    var IMDematerializing = new WeakMap();\n    var getIdentifier = function getIdentifier(identifierOrInternalModel) {\n      var i = identifierOrInternalModel;\n      if ( !isStableIdentifier(identifierOrInternalModel)) {\n        // identifier may actually be an internalModel\n        // but during materialization we will get an identifier that\n        // has already been removed from the identifiers cache yet\n        // so it will not behave as if stable. This is a bug we should fix.\n        i = identifierOrInternalModel.identifier || i;\n      }\n      return i;\n    };\n\n    // REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT only\n    var peekIMCache = function peekIMCache(cache, identifier) {\n      {\n        var im = IMDematerializing.get(identifier);\n        if (im === undefined) {\n          // if not im._isDematerializing\n          im = cache.peek(identifier);\n        }\n        return im;\n      }\n    };\n    var shouldIncludeInRecordArrays = function shouldIncludeInRecordArrays(store, identifier) {\n      var cache = internalModelFactoryFor(store);\n      var internalModel = cache.peek(identifier);\n      if (internalModel === null) {\n        return false;\n      }\n      return !internalModel.isHiddenFromRecordArrays();\n    };\n    RecordArrayManager = class IdentifiersRecordArrayManager {\n      constructor(options) {\n        this.store = options.store;\n        this.isDestroying = false;\n        this.isDestroyed = false;\n        this._liveRecordArrays = Object.create(null);\n        this._pendingIdentifiers = Object.create(null);\n        this._adapterPopulatedRecordArrays = [];\n      }\n\n      /**\n       * @method getRecordArraysForIdentifier\n       * @public\n       * @param {StableIdentifier} param\n       * @return {RecordArray} array\n       */\n      getRecordArraysForIdentifier(identifier) {\n        return recordArraysForIdentifier(identifier);\n      }\n      _flushPendingIdentifiersForModelName(modelName, identifiers) {\n        if (this.isDestroying || this.isDestroyed) {\n          return;\n        }\n        var modelsToRemove = [];\n        for (var j = 0; j < identifiers.length; j++) {\n          var i = identifiers[j];\n          // mark identifiers, so they can once again be processed by the\n          // recordArrayManager\n          pendingForIdentifier.delete(i);\n          // build up a set of models to ensure we have purged correctly;\n          var isIncluded = shouldIncludeInRecordArrays(this.store, i);\n          if (!isIncluded) {\n            modelsToRemove.push(i);\n          }\n        }\n        var array = this._liveRecordArrays[modelName];\n        if (array) {\n          // TODO: skip if it only changed\n          // process liveRecordArrays\n          updateLiveRecordArray(this.store, array, identifiers);\n        }\n\n        // process adapterPopulatedRecordArrays\n        if (modelsToRemove.length > 0) {\n          removeFromAdapterPopulatedRecordArrays(this.store, modelsToRemove);\n        }\n      }\n      _flush() {\n        var pending = this._pendingIdentifiers;\n        this._pendingIdentifiers = Object.create(null);\n        for (var modelName in pending) {\n          this._flushPendingIdentifiersForModelName(modelName, pending[modelName]);\n        }\n      }\n      _syncLiveRecordArray(array, modelName) {\n        ( !(typeof modelName === 'string') && Ember.assert(`recordArrayManger.syncLiveRecordArray expects modelName not modelClass as the second param`, typeof modelName === 'string'));\n        var pending = this._pendingIdentifiers[modelName];\n        var hasPendingChanges = Array.isArray(pending);\n        var hasNoPotentialDeletions = !hasPendingChanges || pending.length === 0;\n        var map = internalModelFactoryFor(this.store).modelMapFor(modelName);\n        var hasNoInsertionsOrRemovals = Ember.get(map, 'length') === Ember.get(array, 'length');\n\n        /*\n          Ideally the recordArrayManager has knowledge of the changes to be applied to\n          liveRecordArrays, and is capable of strategically flushing those changes and applying\n          small diffs if desired.  However, until we've refactored recordArrayManager, this dirty\n          check prevents us from unnecessarily wiping out live record arrays returned by peekAll.\n          */\n        if (hasNoPotentialDeletions && hasNoInsertionsOrRemovals) {\n          return;\n        }\n        if (hasPendingChanges) {\n          this._flushPendingIdentifiersForModelName(modelName, pending);\n          delete this._pendingIdentifiers[modelName];\n        }\n        var identifiers = this._visibleIdentifiersByType(modelName);\n        var modelsToAdd = [];\n        for (var i = 0; i < identifiers.length; i++) {\n          var identifier = identifiers[i];\n          var recordArrays = recordArraysForIdentifier(identifier);\n          if (recordArrays.has(array) === false) {\n            recordArrays.add(array);\n            modelsToAdd.push(identifier);\n          }\n        }\n        if (modelsToAdd.length) {\n          array._pushIdentifiers(modelsToAdd);\n        }\n      }\n      _didUpdateAll(modelName) {\n        var recordArray = this._liveRecordArrays[modelName];\n        if (recordArray) {\n          Ember.set(recordArray, 'isUpdating', false);\n        }\n      }\n\n      /**\n        Get the `RecordArray` for a modelName, which contains all loaded records of\n        given modelName.\n         @method liveRecordArrayFor\n        @param {String} modelName\n        @return {RecordArray}\n      */\n      liveRecordArrayFor(modelName) {\n        ( !(typeof modelName === 'string') && Ember.assert(`recordArrayManger.liveRecordArrayFor expects modelName not modelClass as the param`, typeof modelName === 'string'));\n        var array = this._liveRecordArrays[modelName];\n        if (array) {\n          // if the array already exists, synchronize\n          this._syncLiveRecordArray(array, modelName);\n        } else {\n          // if the array is being newly created merely create it with its initial\n          // content already set. This prevents unneeded change events.\n          var identifiers = this._visibleIdentifiersByType(modelName);\n          array = this.createRecordArray(modelName, identifiers);\n          this._liveRecordArrays[modelName] = array;\n        }\n        return array;\n      }\n      _visibleIdentifiersByType(modelName) {\n        var all = internalModelFactoryFor(this.store).modelMapFor(modelName).recordIdentifiers;\n        var visible = [];\n        for (var i = 0; i < all.length; i++) {\n          var identifier = all[i];\n          var shouldInclude = shouldIncludeInRecordArrays(this.store, identifier);\n          if (shouldInclude) {\n            visible.push(identifier);\n          }\n        }\n        return visible;\n      }\n\n      /**\n        Create a `RecordArray` for a modelName.\n         @method createRecordArray\n        @param {String} modelName\n        @param {Array} [identifiers]\n        @return {RecordArray}\n      */\n      createRecordArray(modelName, identifiers) {\n        ( !(typeof modelName === 'string') && Ember.assert(`recordArrayManger.createRecordArray expects modelName not modelClass as the param`, typeof modelName === 'string'));\n        var array = RecordArray$1.create({\n          modelName,\n          content: Ember.A(identifiers || []),\n          store: this.store,\n          isLoaded: true,\n          manager: this\n        });\n        if (Array.isArray(identifiers)) {\n          this._associateWithRecordArray(identifiers, array);\n        }\n        return array;\n      }\n\n      /**\n        Create a `AdapterPopulatedRecordArray` for a modelName with given query.\n         @method createAdapterPopulatedRecordArray\n        @param {String} modelName\n        @param {Object} query\n        @return {AdapterPopulatedRecordArray}\n      */\n      createAdapterPopulatedRecordArray(modelName, query, identifiers, payload) {\n        ( !(typeof modelName === 'string') && Ember.assert(`recordArrayManger.createAdapterPopulatedRecordArray expects modelName not modelClass as the first param, received ${modelName}`, typeof modelName === 'string'));\n        var array;\n        if (Array.isArray(identifiers)) {\n          array = AdapterPopulatedRecordArray$1.create({\n            modelName,\n            query: query,\n            content: Ember.A(identifiers),\n            store: this.store,\n            manager: this,\n            isLoaded: true,\n            isUpdating: false,\n            meta: Ember.assign({}, payload.meta),\n            links: Ember.assign({}, payload.links)\n          });\n          this._associateWithRecordArray(identifiers, array);\n        } else {\n          array = AdapterPopulatedRecordArray$1.create({\n            modelName,\n            query: query,\n            content: Ember.A(),\n            store: this.store,\n            manager: this\n          });\n        }\n        this._adapterPopulatedRecordArrays.push(array);\n        return array;\n      }\n\n      /**\n        Unregister a RecordArray.\n        So manager will not update this array.\n         @method unregisterRecordArray\n        @param {RecordArray} array\n      */\n      unregisterRecordArray(array) {\n        var modelName = array.modelName;\n\n        // remove from adapter populated record array\n        var removedFromAdapterPopulated = removeFromArray(this._adapterPopulatedRecordArrays, array);\n        if (!removedFromAdapterPopulated) {\n          var liveRecordArrayForType = this._liveRecordArrays[modelName];\n          // unregister live record array\n          if (liveRecordArrayForType) {\n            if (array === liveRecordArrayForType) {\n              delete this._liveRecordArrays[modelName];\n            }\n          }\n        }\n      }\n\n      /**\n       * @method _associateWithRecordArray\n       * @private\n       * @param {StableIdentifier} identifiers\n       * @param {RecordArray} array\n       */\n      _associateWithRecordArray(identifiers, array) {\n        for (var i = 0, l = identifiers.length; i < l; i++) {\n          var identifier = identifiers[i];\n          identifier = getIdentifier(identifier);\n          var recordArrays = this.getRecordArraysForIdentifier(identifier);\n          recordArrays.add(array);\n        }\n      }\n\n      /**\n        @method recordDidChange\n        @internal\n      */\n      recordDidChange(identifier) {\n        if (this.isDestroying || this.isDestroyed) {\n          return;\n        }\n        var modelName = identifier.type;\n        identifier = getIdentifier(identifier);\n        {\n          var cache = internalModelFactoryFor(this.store);\n          var im = peekIMCache(cache, identifier);\n          if (im && im._isDematerializing) {\n            IMDematerializing.set(identifier, im);\n          }\n        }\n        if (pendingForIdentifier.has(identifier)) {\n          return;\n        }\n        pendingForIdentifier.add(identifier);\n        var pending = this._pendingIdentifiers;\n        var models = pending[modelName] = pending[modelName] || [];\n        if (models.push(identifier) !== 1) {\n          return;\n        }\n        _emberRun.schedule('actions', this, this._flush);\n      }\n      willDestroy() {\n        Object.keys(this._liveRecordArrays).forEach(modelName => this._liveRecordArrays[modelName].destroy());\n        this._adapterPopulatedRecordArrays.forEach(entry => entry.destroy());\n        this.isDestroyed = true;\n      }\n      destroy() {\n        this.isDestroying = true;\n        _emberRun.schedule('actions', this, this.willDestroy);\n      }\n    };\n    var removeFromArray = function removeFromArray(array, item) {\n      var index = array.indexOf(item);\n      if (index !== -1) {\n        array.splice(index, 1);\n        return true;\n      }\n      return false;\n    };\n    var updateLiveRecordArray = function updateLiveRecordArray(store, recordArray, identifiers) {\n      var identifiersToAdd = [];\n      var identifiersToRemove = [];\n      for (var i = 0; i < identifiers.length; i++) {\n        var identifier = identifiers[i];\n        var shouldInclude = shouldIncludeInRecordArrays(store, identifier);\n        var recordArrays = recordArraysForIdentifier(identifier);\n        if (shouldInclude) {\n          if (!recordArrays.has(recordArray)) {\n            identifiersToAdd.push(identifier);\n            recordArrays.add(recordArray);\n          }\n        }\n        if (!shouldInclude) {\n          identifiersToRemove.push(identifier);\n          recordArrays.delete(recordArray);\n        }\n      }\n      if (identifiersToAdd.length > 0) {\n        pushIdentifiers(recordArray, identifiersToAdd, internalModelFactoryFor(store));\n      }\n      if (identifiersToRemove.length > 0) {\n        removeIdentifiers(recordArray, identifiersToRemove, internalModelFactoryFor(store));\n      }\n    };\n    var pushIdentifiers = function pushIdentifiers(recordArray, identifiers, cache) {\n      if ( !recordArray._pushIdentifiers) {\n        // deprecate('not allowed to use this intimate api any more');\n        recordArray._pushInternalModels(identifiers.map(i => peekIMCache(cache, i)));\n      } else {\n        recordArray._pushIdentifiers(identifiers);\n      }\n    };\n    var removeIdentifiers = function removeIdentifiers(recordArray, identifiers, cache) {\n      if ( !recordArray._removeIdentifiers) {\n        // deprecate('not allowed to use this intimate api any more');\n        recordArray._removeInternalModels(identifiers.map(i => peekIMCache(cache, i)));\n      } else {\n        recordArray._removeIdentifiers(identifiers);\n      }\n    };\n    var removeFromAdapterPopulatedRecordArrays = function removeFromAdapterPopulatedRecordArrays(store, identifiers) {\n      for (var i = 0; i < identifiers.length; i++) {\n        removeFromAll(store, identifiers[i]);\n      }\n    };\n    var removeFromAll = function removeFromAll(store, identifier) {\n      identifier = getIdentifier(identifier);\n      var recordArrays = recordArraysForIdentifier(identifier);\n      var cache = internalModelFactoryFor(store);\n      recordArrays.forEach(function (recordArray) {\n        removeIdentifiers(recordArray, [identifier], cache);\n      });\n      recordArrays.clear();\n    };\n  }\n  var RecordArrayManager$1 = RecordArrayManager;\n\n  /**\n    @module @ember-data/store\n  */\n\n  function isResourceIdentiferWithRelatedLinks(value) {\n    return value && value.links && value.links.related;\n  }\n\n  // TODO: simplify after 3.23 release and only store identifier\n  var REFERENCE_CACHE = new WeakMap();\n  function internalModelForReference(reference) {\n    {\n      return internalModelFactoryFor(reference.store).peek(REFERENCE_CACHE.get(reference));\n    }\n  }\n\n  /**\n    This is the baseClass for the different References\n    like RecordReference/HasManyReference/BelongsToReference\n\n   @class Reference\n   */\n\n  class Reference {\n    constructor(store, identifierOrInternalModel) {\n      this.store = store;\n      {\n        REFERENCE_CACHE.set(this, identifierOrInternalModel);\n      }\n    }\n    get recordData() {\n      {\n        return this.store.recordDataFor(REFERENCE_CACHE.get(this), false);\n      }\n    }\n    _resource() {}\n\n    /**\n     This returns a string that represents how the reference will be\n     looked up when it is loaded. If the relationship has a link it will\n     use the \"link\" otherwise it defaults to \"id\".\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default Model.extend({\n       comments: hasMany({ async: true })\n     });\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      // get the identifier of the reference\n     if (commentsRef.remoteType() === \"ids\") {\n       let ids = commentsRef.ids();\n     } else if (commentsRef.remoteType() === \"link\") {\n       let link = commentsRef.link();\n     }\n     ```\n      @method remoteType\n     @return {String} The name of the remote type. This should either be \"link\" or \"ids\"\n     */\n    remoteType() {\n      var value = this._resource();\n      if (isResourceIdentiferWithRelatedLinks(value)) {\n        return 'link';\n      }\n      return 'id';\n    }\n\n    /**\n     The link Ember Data will use to fetch or reload this belongs-to\n     relationship.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n     export default Model.extend({\n        user: belongsTo({ async: true })\n      });\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              links: {\n                related: '/articles/1/author'\n              }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      // get the identifier of the reference\n     if (userRef.remoteType() === \"link\") {\n        let link = userRef.link();\n      }\n     ```\n      @method link\n     @return {String} The link Ember Data will use to fetch or reload this belongs-to relationship.\n     */\n    link() {\n      var link;\n      var resource = this._resource();\n      if (isResourceIdentiferWithRelatedLinks(resource)) {\n        if (resource.links) {\n          link = resource.links.related;\n          link = !link || typeof link === 'string' ? link : link.href;\n        }\n      }\n      return link || null;\n    }\n\n    /**\n     The meta data for the belongs-to relationship.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n     export default Model.extend({\n        user: belongsTo({ async: true })\n      });\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              links: {\n                related: {\n                  href: '/articles/1/author'\n                },\n                meta: {\n                  lastUpdated: 1458014400000\n                }\n              }\n            }\n          }\n        }\n      });\n      let userRef = blog.belongsTo('user');\n      userRef.meta() // { lastUpdated: 1458014400000 }\n     ```\n      @method meta\n     @return {Object} The meta information for the belongs-to relationship.\n     */\n    meta() {\n      var meta = null;\n      var resource = this._resource();\n      if (resource && resource.meta && typeof resource.meta === 'object') {\n        meta = resource.meta;\n      }\n      return meta;\n    }\n  }\n  {\n    Reference.prototype.links = function links() {\n      var resource = this._resource();\n      return resource && resource.links ? resource.links : null;\n    };\n  }\n  {\n    Object.defineProperty(Reference.prototype, 'internalModel', {\n      get() {\n        ( Ember.deprecate('Accessing the internalModel property of Reference is deprecated', false, {\n          id: 'ember-data:reference-internal-model',\n          until: '3.21'\n        }));\n        return REFERENCE_CACHE.get(this);\n      }\n    });\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   A `BelongsToReference` is a low-level API that allows users and\n   addon authors to perform meta-operations on a belongs-to\n   relationship.\n\n   @class BelongsToReference\n   @extends Reference\n   */\n  class BelongsToReference extends Reference {\n    constructor(store, parentIMOrIdentifier, belongsToRelationship, key) {\n      super(store, parentIMOrIdentifier);\n      this.key = key;\n      this.belongsToRelationship = belongsToRelationship;\n      this.type = belongsToRelationship.relationshipMeta.type;\n      {\n        this.parent = internalModelFactoryFor(store).peek(parentIMOrIdentifier).recordReference;\n        this.parentIdentifier = parentIMOrIdentifier;\n      }\n\n      // TODO inverse\n    }\n\n    /**\n     The `id` of the record that this reference refers to. Together, the\n     `type()` and `id()` methods form a composite key for the identity\n     map. This can be used to access the id of an async relationship\n     without triggering a fetch that would normally happen if you\n     attempted to use `record.get('relationship.id')`.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n      @belongsTo({ async: true }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      // get the identifier of the reference\n     if (userRef.remoteType() === \"id\") {\n        let id = userRef.id();\n      }\n     ```\n      @method id\n     @return {String} The id of the record in this belongsTo relationship.\n     */\n    id() {\n      var id = null;\n      var resource = this._resource();\n      if (resource && resource.data) {\n        id = resource.data.id;\n      }\n      return id;\n    }\n    _resource() {\n      return this.recordData.getBelongsTo(this.key);\n    }\n\n    /**\n     `push` can be used to update the data in the relationship and Ember\n     Data will treat the new data as the canonical value of this\n     relationship on the backend.\n      Example\n      ```app/models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n        @belongsTo({ async: true }) user;\n      }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      // provide data for reference\n     userRef.push({\n        data: {\n          type: 'user',\n          id: 1,\n          attributes: {\n            username: \"@user\"\n          }\n        }\n      }).then(function(user) {\n        userRef.value() === user;\n      });\n     ```\n      @method push\n     @param {Object|Promise} objectOrPromise a promise that resolves to a JSONAPI document object describing the new value of this relationship.\n     @return {Promise<record>} A promise that resolves with the new value in this belongs-to relationship.\n     */\n    push(objectOrPromise) {\n      // TODO deprecate thenable support\n      return Ember.RSVP.resolve(objectOrPromise).then(data => {\n        var record;\n        if ( peekRecordIdentifier(data)) {\n          ( Ember.deprecate('Pushing a record into a BelongsToReference is deprecated', false, {\n            id: 'ember-data:belongs-to-reference-push-record',\n            until: '4.0'\n          }));\n          record = data;\n        } else {\n          record = this.store.push(data);\n        }\n        Debug.assertPolymorphicType(internalModelForReference(this), this.belongsToRelationship.relationshipMeta, record._internalModel, this.store);\n\n        //TODO Igor cleanup, maybe move to relationship push\n        this.belongsToRelationship.setCanonicalRecordData(recordDataFor(record));\n        return record;\n      });\n    }\n\n    /**\n     `value()` synchronously returns the current value of the belongs-to\n     relationship. Unlike `record.get('relationshipName')`, calling\n     `value()` on a reference does not trigger a fetch if the async\n     relationship is not yet loaded. If the relationship is not loaded\n     it will always return `null`.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n       @belongsTo({ async: true }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      userRef.value(); // null\n      // provide data for reference\n     userRef.push({\n        data: {\n          type: 'user',\n          id: 1,\n          attributes: {\n            username: \"@user\"\n          }\n        }\n      }).then(function(user) {\n        userRef.value(); // user\n      });\n     ```\n      @method value\n     @return {Model} the record in this relationship\n     */\n    value() {\n      var resource = this._resource();\n      if (resource && resource.data) {\n        var inverseInternalModel = this.store._internalModelForResource(resource.data);\n        if (inverseInternalModel && inverseInternalModel.isLoaded()) {\n          return inverseInternalModel.getRecord();\n        }\n      }\n      return null;\n    }\n\n    /**\n     Loads a record in a belongs-to relationship if it is not already\n     loaded. If the relationship is already loaded this method does not\n     trigger a new load.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n       @belongsTo({ async: true }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      userRef.value(); // null\n      userRef.load().then(function(user) {\n        userRef.value() === user\n      });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference.\n      Example\n      ```javascript\n     userRef.load({ adapterOptions: { isPrivate: true } }).then(function(user) {\n       userRef.value() === user;\n     });\n     ```\n     ```app/adapters/user.js\n     import Adapter from '@ember-data/adapter';\n      export default class UserAdapter extends Adapter {\n       findRecord(store, type, id, snapshot) {\n         // In the adapter you will have access to adapterOptions.\n         let adapterOptions = snapshot.adapterOptions;\n       }\n     });\n     ```\n      @method load\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the record in this belongs-to relationship.\n     */\n    load(options) {\n      {\n        var parentInternalModel = internalModelFactoryFor(this.store).peek(this.parentIdentifier);\n        return parentInternalModel.getBelongsTo(this.key, options);\n      }\n    }\n\n    /**\n     Triggers a reload of the value in this relationship. If the\n     remoteType is `\"link\"` Ember Data will use the relationship link to\n     reload the relationship. Otherwise it will reload the record by its\n     id.\n      Example\n      ```javascript\n     // models/blog.js\n     import Model, { belongsTo } from '@ember-data/model';\n      export default class BlogModel extends Model {\n       @belongsTo({ async: true }) user;\n     }\n      let blog = store.push({\n        data: {\n          type: 'blog',\n          id: 1,\n          relationships: {\n            user: {\n              data: { type: 'user', id: 1 }\n            }\n          }\n        }\n      });\n     let userRef = blog.belongsTo('user');\n      userRef.reload().then(function(user) {\n        userRef.value() === user\n      });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference. A full example\n     can be found in the `load` method.\n      Example\n      ```javascript\n     userRef.reload({ adapterOptions: { isPrivate: true } })\n     ```\n      @method reload\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the record in this belongs-to relationship after the reload has completed.\n     */\n    reload(options) {\n      var parentInternalModel;\n      {\n        parentInternalModel = internalModelFactoryFor(this.store).peek(this.parentIdentifier);\n      }\n      return parentInternalModel.reloadBelongsTo(this.key, options).then(internalModel => {\n        return this.value();\n      });\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   A `HasManyReference` is a low-level API that allows users and addon\n   authors to perform meta-operations on a has-many relationship.\n\n   @class HasManyReference\n   @extends Reference\n   */\n  class HasManyReference extends Reference {\n    constructor(store, parentIMOrIdentifier, hasManyRelationship, key) {\n      super(store, parentIMOrIdentifier);\n      this.key = key;\n      this.hasManyRelationship = hasManyRelationship;\n      this.type = hasManyRelationship.relationshipMeta.type;\n      {\n        this.parent = internalModelFactoryFor(store).peek(parentIMOrIdentifier).recordReference;\n      }\n\n      // TODO inverse\n    }\n    _resource() {\n      return this.recordData.getHasMany(this.key);\n    }\n\n    /**\n     This returns a string that represents how the reference will be\n     looked up when it is loaded. If the relationship has a link it will\n     use the \"link\" otherwise it defaults to \"id\".\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      // get the identifier of the reference\n     if (commentsRef.remoteType() === \"ids\") {\n       let ids = commentsRef.ids();\n     } else if (commentsRef.remoteType() === \"link\") {\n       let link = commentsRef.link();\n     }\n     ```\n      @method remoteType\n     @return {String} The name of the remote type. This should either be `link` or `ids`\n     */\n    remoteType() {\n      var value = this._resource();\n      if (value && value.links && value.links.related) {\n        return 'link';\n      }\n      return 'ids';\n    }\n\n    /**\n     `ids()` returns an array of the record IDs in this relationship.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.ids(); // ['1']\n     ```\n      @method ids\n     @return {Array} The ids in this has-many relationship\n     */\n    ids() {\n      var resource = this._resource();\n      var ids = [];\n      if (resource.data) {\n        ids = resource.data.map(data => data.id);\n      }\n      return ids;\n    }\n\n    /**\n     `push` can be used to update the data in the relationship and Ember\n     Data will treat the new data as the canonical value of this\n     relationship on the backend.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.ids(); // ['1']\n      commentsRef.push([\n     [{ type: 'comment', id: 2 }],\n     [{ type: 'comment', id: 3 }],\n     ])\n      commentsRef.ids(); // ['2', '3']\n     ```\n      @method push\n     @param {Array|Promise} objectOrPromise a promise that resolves to a JSONAPI document object describing the new value of this relationship.\n     @return {ManyArray}\n     */\n    push(objectOrPromise) {\n      return Ember.RSVP.resolve(objectOrPromise).then(payload => {\n        var array = payload;\n        if (typeof payload === 'object' && payload.data) {\n          array = payload.data;\n        }\n        var internalModel = internalModelForReference(this);\n        var internalModels = array.map(obj => {\n          var record = this.store.push(obj);\n          {\n            var relationshipMeta = this.hasManyRelationship.relationshipMeta;\n            Debug.assertPolymorphicType(internalModel, relationshipMeta, record._internalModel, this.store);\n          }\n          return recordDataFor(record);\n        });\n        this.hasManyRelationship.computeChanges(internalModels);\n        return internalModel.getHasMany(this.hasManyRelationship.key);\n        // TODO IGOR it seems wrong that we were returning the many array here\n        //return this.hasManyRelationship.manyArray;\n      });\n    }\n    _isLoaded() {\n      var hasRelationshipDataProperty = this.hasManyRelationship.hasAnyRelationshipData;\n      if (!hasRelationshipDataProperty) {\n        return false;\n      }\n      var members = this.hasManyRelationship.members.toArray();\n\n      //TODO Igor cleanup\n      return members.every(recordData => {\n        var internalModel = this.store._internalModelForResource(recordData.getResourceIdentifier());\n        return internalModel.isLoaded() === true;\n      });\n    }\n\n    /**\n     `value()` synchronously returns the current value of the has-many\n     relationship. Unlike `record.get('relationshipName')`, calling\n     `value()` on a reference does not trigger a fetch if the async\n     relationship is not yet loaded. If the relationship is not loaded\n     it will always return `null`.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      post.get('comments').then(function(comments) {\n       commentsRef.value() === comments\n     })\n     ```\n      @method value\n     @return {ManyArray}\n     */\n    value() {\n      var internalModel = internalModelForReference(this);\n      if (this._isLoaded()) {\n        return internalModel.getManyArray(this.key);\n      }\n      return null;\n    }\n\n    /**\n     Loads the relationship if it is not already loaded.  If the\n     relationship is already loaded this method does not trigger a new\n     load. This causes a request to the specified\n     relationship link or reloads all items currently in the relationship.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.load().then(function(comments) {\n       //...\n     });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference.\n      Example\n      ```javascript\n     commentsRef.load({ adapterOptions: { isPrivate: true } })\n       .then(function(comments) {\n         //...\n       });\n     ```\n      ```app/adapters/comment.js\n     export default ApplicationAdapter.extend({\n       findMany(store, type, id, snapshots) {\n         // In the adapter you will have access to adapterOptions.\n         let adapterOptions = snapshots[0].adapterOptions;\n       }\n     });\n     ```\n      @method load\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the ManyArray in\n     this has-many relationship.\n     */\n    load(options) {\n      var internalModel = internalModelForReference(this);\n      return internalModel.getHasMany(this.key, options);\n    }\n\n    /**\n     Reloads this has-many relationship. This causes a request to the specified\n     relationship link or reloads all items currently in the relationship.\n      Example\n      ```app/models/post.js\n     import Model, { hasMany } from '@ember-data/model';\n      export default class PostModel extends Model {\n       @hasMany({ async: true }) comments;\n     }\n     ```\n      ```javascript\n     let post = store.push({\n       data: {\n         type: 'post',\n         id: 1,\n         relationships: {\n           comments: {\n             data: [{ type: 'comment', id: 1 }]\n           }\n         }\n       }\n     });\n      let commentsRef = post.hasMany('comments');\n      commentsRef.reload().then(function(comments) {\n       //...\n     });\n     ```\n      You may also pass in an options object whose properties will be\n     fed forward. This enables you to pass `adapterOptions` into the\n     request given to the adapter via the reference. A full example\n     can be found in the `load` method.\n      Example\n      ```javascript\n     commentsRef.reload({ adapterOptions: { isPrivate: true } })\n     ```\n      @method reload\n     @param {Object} options the options to pass in.\n     @return {Promise} a promise that resolves with the ManyArray in this has-many relationship.\n     */\n    reload(options) {\n      var internalModel = internalModelForReference(this);\n      return internalModel.reloadHasMany(this.key, options);\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n     A `RecordReference` is a low-level API that allows users and\n     addon authors to perform meta-operations on a record.\n\n     @class RecordReference\n     @extends Reference\n  */\n  class RecordReference extends Reference {\n    get type() {\n      {\n        return this.identifier().type;\n      }\n    }\n    get _id() {\n      {\n        var identifier = this.identifier();\n        if (identifier) {\n          return identifier.id;\n        }\n        return null;\n      }\n    }\n\n    /**\n       The `id` of the record that this reference refers to.\n        Together, the `type` and `id` properties form a composite key for\n       the identity map.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        userRef.id(); // '1'\n       ```\n        @method id\n       @return {String} The id of the record.\n    */\n    id() {\n      return this._id;\n    }\n\n    /**\n       The `identifier` of the record that this reference refers to.\n        Together, the `type` and `id` properties form a composite key for\n       the identity map.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        userRef.identifier(); // '1'\n       ```\n        @method identifier\n       @return {String} The identifier of the record.\n    */\n    identifier() {\n      return REFERENCE_CACHE.get(this);\n    }\n\n    /**\n       How the reference will be looked up when it is loaded. Currently\n       this always returns `identity` to signify that a record will be\n       loaded by its `type` and `id`.\n        Example\n        ```javascript\n       const userRef = store.getReference('user', 1);\n        userRef.remoteType(); // 'identity'\n       ```\n        @method remoteType\n       @return {String} 'identity'\n    */\n    remoteType() {\n      return 'identity';\n    }\n\n    /**\n      This API allows you to provide a reference with new data. The\n      simplest usage of this API is similar to `store.push`: you provide a\n      normalized hash of data and the object represented by the reference\n      will update.\n       If you pass a promise to `push`, Ember Data will not ask the adapter\n      for the data if another attempt to fetch it is made in the\n      interim. When the promise resolves, the underlying object is updated\n      with the new data, and the promise returned by *this function* is resolved\n      with that object.\n       For example, `recordReference.push(promise)` will be resolved with a\n      record.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        // provide data for reference\n       userRef.push({\n         data: {\n           id: \"1\",\n           type: \"user\",\n           attributes: {\n             username: \"@user\"\n           }\n         }\n       }).then(function(user) {\n         userRef.value() === user;\n       });\n       ```\n       @method push\n      @param objectOrPromise a JSON:API ResourceDocument or a promise resolving to one\n      @return a promise for the value (record or relationship)\n    */\n    push(objectOrPromise) {\n      return Ember.RSVP.resolve(objectOrPromise).then(data => {\n        return this.store.push(data);\n      });\n    }\n\n    /**\n      If the entity referred to by the reference is already loaded, it is\n      present as `reference.value`. Otherwise the value returned by this function\n      is `null`.\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        userRef.value(); // user\n       ```\n        @method value\n       @return {Model} the record for this RecordReference\n    */\n    value() {\n      if (this._id !== null) {\n        var internalModel = internalModelForReference(this);\n        if (internalModel && internalModel.isLoaded()) {\n          return internalModel.getRecord();\n        }\n      }\n      return null;\n    }\n\n    /**\n       Triggers a fetch for the backing entity based on its `remoteType`\n       (see `remoteType` definitions per reference type).\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        // load user (via store.find)\n       userRef.load().then(...)\n       ```\n        @method load\n       @return {Promise<record>} the record for this RecordReference\n    */\n    load() {\n      if (this._id !== null) {\n        return this.store.findRecord(this.type, this._id);\n      }\n      throw new Error(`Unable to fetch record of type ${this.type} without an id`);\n    }\n\n    /**\n       Reloads the record if it is already loaded. If the record is not\n       loaded it will load the record via `store.findRecord`\n        Example\n        ```javascript\n       let userRef = store.getReference('user', 1);\n        // or trigger a reload\n       userRef.reload().then(...)\n       ```\n        @method reload\n       @return {Promise<record>} the record for this RecordReference\n    */\n    reload() {\n      if (this._id !== null) {\n        return this.store.findRecord(this.type, this._id, {\n          reload: true\n        });\n      }\n      throw new Error(`Unable to fetch record of type ${this.type} without an id`);\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /*\n    This file encapsulates the various states that a record can transition\n    through during its lifecycle.\n  */\n  /**\n    ### State\n\n    Each record has a `currentState` property that explicitly tracks what\n    state a record is in at any given time. For instance, if a record is\n    newly created and has not yet been sent to the adapter to be saved,\n    it would be in the `root.loaded.created.uncommitted` state.  If a\n    record has had local modifications made to it that are in the\n    process of being saved, the record would be in the\n    `root.loaded.updated.inFlight` state. (This state path will be\n    explained in more detail below.)\n\n    Events are sent by the record or its store to the record's\n    `currentState` property. How the state reacts to these events is\n    dependent on which state it is in. In some states, certain events\n    will be invalid and will cause an exception to be raised.\n\n    States are hierarchical and every state is a sub-state of the\n    `RootState`. For example, a record can be in the\n    `root.deleted.uncommitted` state then transitions into the\n    `root.deleted.inFlight` state. If a child state does not implement\n    an event handler, the state manager will attempt to invoke the event\n    on all parent states until the root state is reached. The state\n    hierarchy of a record is described in terms of a path string. You\n    can determine a record's current state by getting the state's\n    `stateName` property:\n\n    ```javascript\n    record.get('currentState.stateName');\n    //=> \"root.created.uncommitted\"\n     ```\n\n    The hierarchy of valid states that ship with ember data looks like\n    this:\n\n    ```text\n    * root\n      * deleted\n        * saved\n        * uncommitted\n        * inFlight\n      * empty\n      * loaded\n        * created\n          * uncommitted\n          * inFlight\n        * saved\n        * updated\n          * uncommitted\n          * inFlight\n      * loading\n    ```\n\n    The `Model` states are themselves stateless. What that means is\n    that, the hierarchical states that each of *those* points to is a\n    shared data structure. For performance reasons, instead of each\n    record getting its own copy of the hierarchy of states, each record\n    points to this global, immutable shared instance. How does a state\n    know which record it should be acting on? We pass the record\n    instance into the state's event handlers as the first argument.\n\n    The record passed as the first parameter is where you should stash\n    state about the record if needed; you should never store data on the state\n    object itself.\n\n    ### Events and Flags\n\n    A state may implement zero or more events and flags.\n\n    #### Events\n\n    Events are named functions that are invoked when sent to a record. The\n    record will first look for a method with the given name on the\n    current state. If no method is found, it will search the current\n    state's parent, and then its grandparent, and so on until reaching\n    the top of the hierarchy. If the root is reached without an event\n    handler being found, an exception will be raised. This can be very\n    helpful when debugging new features.\n\n    Here's an example implementation of a state with a `myEvent` event handler:\n\n    ```javascript\n    aState: State.create({\n      myEvent: function(manager, param) {\n        console.log(\"Received myEvent with\", param);\n      }\n    })\n    ```\n\n    To trigger this event:\n\n    ```javascript\n    record.send('myEvent', 'foo');\n    //=> \"Received myEvent with foo\"\n    ```\n\n    Note that an optional parameter can be sent to a record's `send()` method,\n    which will be passed as the second parameter to the event handler.\n\n    Events should transition to a different state if appropriate. This can be\n    done by calling the record's `transitionTo()` method with a path to the\n    desired state. The state manager will attempt to resolve the state path\n    relative to the current state. If no state is found at that path, it will\n    attempt to resolve it relative to the current state's parent, and then its\n    parent, and so on until the root is reached. For example, imagine a hierarchy\n    like this:\n\n        * created\n          * uncommitted <-- currentState\n          * inFlight\n        * updated\n          * inFlight\n\n    If we are currently in the `uncommitted` state, calling\n    `transitionTo('inFlight')` would transition to the `created.inFlight` state,\n    while calling `transitionTo('updated.inFlight')` would transition to\n    the `updated.inFlight` state.\n\n    Remember that *only events* should ever cause a state transition. You should\n    never call `transitionTo()` from outside a state's event handler. If you are\n    tempted to do so, create a new event and send that to the state manager.\n\n    #### Flags\n\n    Flags are Boolean values that can be used to introspect a record's current\n    state in a more user-friendly way than examining its state path. For example,\n    instead of doing this:\n\n    ```javascript\n    var statePath = record.get('stateManager.currentPath');\n    if (statePath === 'created.inFlight') {\n      doSomething();\n    }\n    ```\n\n    You can say:\n\n    ```javascript\n    if (record.get('isNew') && record.get('isSaving')) {\n      doSomething();\n    }\n    ```\n\n    If your state does not set a value for a given flag, the value will\n    be inherited from its parent (or the first place in the state hierarchy\n    where it is defined).\n\n    The current set of flags are defined below. If you want to add a new flag,\n    in addition to the area below, you will also need to declare it in the\n    `Model` class.\n\n\n     * [isEmpty](Model/properties/isEmpty?anchor=isEmpty)\n     * [isLoading](Model/properties/isLoading?anchor=isLoading)\n     * [isLoaded](Model/properties/isLoaded?anchor=isLoaded)\n     * [hasDirtyAttributes](Model/properties/hasDirtyAttributes?anchor=hasDirtyAttributes)\n     * [isSaving](Model/properties/isSaving?anchor=isSaving)\n     * [isDeleted](Model/properties/isDeleted?anchor=isDeleted)\n     * [isNew](Model/properties/isNew?anchor=isNew)\n     * [isValid](Model/properties/isValid?anchor=isValid)\n\n    @class RootState\n  */\n\n  function didSetProperty(internalModel, context) {\n    if (context.isDirty) {\n      internalModel.send('becomeDirty');\n    } else {\n      internalModel.send('propertyWasReset');\n    }\n  }\n\n  // Implementation notes:\n  //\n  // Each state has a boolean value for all of the following flags:\n  //\n  // * isLoaded: The record has a populated `data` property. When a\n  //   record is loaded via `store.find`, `isLoaded` is false\n  //   until the adapter sets it. When a record is created locally,\n  //   its `isLoaded` property is always true.\n  // * isDirty: The record has local changes that have not yet been\n  //   saved by the adapter. This includes records that have been\n  //   created (but not yet saved) or deleted.\n  // * isSaving: The record has been committed, but\n  //   the adapter has not yet acknowledged that the changes have\n  //   been persisted to the backend.\n  // * isDeleted: The record was marked for deletion. When `isDeleted`\n  //   is true and `isDirty` is true, the record is deleted locally\n  //   but the deletion was not yet persisted. When `isSaving` is\n  //   true, the change is in-flight. When both `isDirty` and\n  //   `isSaving` are false, the change has persisted.\n  // * isNew: The record was created on the client and the adapter\n  //   did not yet report that it was successfully saved.\n  // * isValid: The adapter did not report any server-side validation\n  //   failures.\n\n  // The dirty state is a abstract state whose functionality is\n  // shared between the `created` and `updated` states.\n  //\n  // The deleted state shares the `isDirty` flag with the\n  // subclasses of `DirtyState`, but with a very different\n  // implementation.\n  //\n  // Dirty states have three child states:\n  //\n  // `uncommitted`: the store has not yet handed off the record\n  //   to be saved.\n  // `inFlight`: the store has handed off the record to be saved,\n  //   but the adapter has not yet acknowledged success.\n  // `invalid`: the record has invalid information and cannot be\n  //   sent to the adapter yet.\n  var DirtyState = {\n    initialState: 'uncommitted',\n    // FLAGS\n    isDirty: true,\n    // SUBSTATES\n\n    // When a record first becomes dirty, it is `uncommitted`.\n    // This means that there are local pending changes, but they\n    // have not yet begun to be saved, and are not invalid.\n    uncommitted: {\n      // EVENTS\n      didSetProperty,\n      //TODO(Igor) reloading now triggers a\n      //loadingData event, though it seems fine?\n      loadingData() {},\n      propertyWasReset(internalModel, name) {\n        if (!internalModel.hasChangedAttributes()) {\n          internalModel.send('rolledBack');\n        }\n      },\n      pushedData(internalModel) {\n        if (!internalModel.hasChangedAttributes()) {\n          internalModel.transitionTo('loaded.saved');\n        }\n      },\n      becomeDirty() {},\n      willCommit(internalModel) {\n        internalModel.transitionTo('inFlight');\n      },\n      reloadRecord(internalModel, {\n        resolve,\n        options\n      }) {\n        resolve(internalModel.store._reloadRecord(internalModel, options));\n      },\n      rolledBack(internalModel) {\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('rolledBack');\n      },\n      becameInvalid(internalModel) {\n        internalModel.transitionTo('invalid');\n      },\n      rollback(internalModel) {\n        internalModel.rollbackAttributes();\n        internalModel.triggerLater('ready');\n      }\n    },\n    // Once a record has been handed off to the adapter to be\n    // saved, it is in the 'in flight' state. Changes to the\n    // record cannot be made during this window.\n    inFlight: {\n      // FLAGS\n      isSaving: true,\n      // EVENTS\n      didSetProperty,\n      becomeDirty() {},\n      pushedData() {},\n      unloadRecord: assertAgainstUnloadRecord,\n      // TODO: More robust semantics around save-while-in-flight\n      willCommit() {},\n      didCommit(internalModel) {\n        internalModel.transitionTo('saved');\n        internalModel.send('invokeLifecycleCallbacks', this.dirtyType);\n      },\n      rolledBack(internalModel) {\n        internalModel.triggerLater('rolledBack');\n      },\n      becameInvalid(internalModel) {\n        internalModel.transitionTo('invalid');\n        internalModel.send('invokeLifecycleCallbacks');\n      },\n      becameError(internalModel) {\n        internalModel.transitionTo('uncommitted');\n        internalModel.triggerLater('becameError', internalModel);\n      }\n    },\n    // A record is in the `invalid` if the adapter has indicated\n    // the the record failed server-side invalidations.\n    invalid: {\n      // FLAGS\n      isValid: false,\n      // EVENTS\n      deleteRecord(internalModel) {\n        internalModel.transitionTo('deleted.uncommitted');\n      },\n      didSetProperty(internalModel, context) {\n        internalModel.removeErrorMessageFromAttribute(context.name);\n        didSetProperty(internalModel, context);\n        if (!internalModel.hasErrors()) {\n          this.becameValid(internalModel);\n        }\n      },\n      becameInvalid() {},\n      becomeDirty() {},\n      pushedData() {},\n      willCommit(internalModel) {\n        internalModel.clearErrorMessages();\n        internalModel.transitionTo('inFlight');\n      },\n      rolledBack(internalModel) {\n        internalModel.clearErrorMessages();\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('ready');\n      },\n      becameValid(internalModel) {\n        internalModel.transitionTo('uncommitted');\n      },\n      invokeLifecycleCallbacks(internalModel) {\n        internalModel.triggerLater('becameInvalid', internalModel);\n      }\n    }\n  };\n\n  // The created and updated states are created outside the state\n  // chart so we can reopen their substates and add mixins as\n  // necessary.\n\n  function deepClone(object) {\n    var clone = {};\n    var value;\n    for (var prop in object) {\n      value = object[prop];\n      if (value && typeof value === 'object') {\n        clone[prop] = deepClone(value);\n      } else {\n        clone[prop] = value;\n      }\n    }\n    return clone;\n  }\n  function mixin(original, hash) {\n    for (var prop in hash) {\n      original[prop] = hash[prop];\n    }\n    return original;\n  }\n  function dirtyState(options) {\n    var newState = deepClone(DirtyState);\n    return mixin(newState, options);\n  }\n  var createdState = dirtyState({\n    dirtyType: 'created',\n    // FLAGS\n    isNew: true,\n    setup(internalModel) {\n      internalModel.updateRecordArrays();\n    }\n  });\n  createdState.invalid.rolledBack = function (internalModel) {\n    internalModel.transitionTo('deleted.saved');\n    internalModel.triggerLater('rolledBack');\n  };\n  createdState.uncommitted.rolledBack = function (internalModel) {\n    internalModel.transitionTo('deleted.saved');\n    internalModel.triggerLater('rolledBack');\n  };\n  var updatedState = dirtyState({\n    dirtyType: 'updated'\n  });\n  function createdStateDeleteRecord(internalModel) {\n    internalModel.transitionTo('deleted.saved');\n    internalModel.send('invokeLifecycleCallbacks');\n  }\n  createdState.uncommitted.deleteRecord = createdStateDeleteRecord;\n  createdState.invalid.deleteRecord = createdStateDeleteRecord;\n  createdState.uncommitted.rollback = function (internalModel) {\n    DirtyState.uncommitted.rollback.apply(this, arguments);\n    internalModel.transitionTo('deleted.saved');\n  };\n  createdState.uncommitted.pushedData = function (internalModel) {\n    internalModel.transitionTo('loaded.updated.uncommitted');\n    internalModel.triggerLater('didLoad');\n  };\n  createdState.uncommitted.propertyWasReset = function () {};\n  function assertAgainstUnloadRecord(internalModel) {\n    ( Ember.assert('You can only unload a record which is not inFlight. `' + internalModel + '`', false));\n  }\n  updatedState.invalid.becameValid = function (internalModel) {\n    // we're eagerly transition into the loaded.saved state, even though we could\n    // be still dirty; but the setup hook of the loaded.saved state checks for\n    // dirty attributes and transitions into the corresponding dirty state\n    internalModel.transitionTo('loaded.saved');\n  };\n  updatedState.inFlight.unloadRecord = assertAgainstUnloadRecord;\n  updatedState.uncommitted.deleteRecord = function (internalModel) {\n    internalModel.transitionTo('deleted.uncommitted');\n  };\n  updatedState.invalid.rolledBack = function (internalModel) {\n    internalModel.clearErrorMessages();\n    internalModel.transitionTo('loaded.saved');\n    internalModel.triggerLater('rolledBack');\n  };\n  var RootState = {\n    // FLAGS\n    isEmpty: false,\n    isLoading: false,\n    isLoaded: false,\n    isDirty: false,\n    isSaving: false,\n    isDeleted: false,\n    isNew: false,\n    isValid: true,\n    // DEFAULT EVENTS\n\n    // Trying to roll back if you're not in the dirty state\n    // doesn't change your state. For example, if you're in the\n    // in-flight state, rolling back the record doesn't move\n    // you out of the in-flight state.\n    rolledBack() {},\n    unloadRecord(internalModel) {},\n    propertyWasReset() {},\n    // SUBSTATES\n\n    // A record begins its lifecycle in the `empty` state.\n    // If its data will come from the adapter, it will\n    // transition into the `loading` state. Otherwise, if\n    // the record is being created on the client, it will\n    // transition into the `created` state.\n    empty: {\n      isEmpty: true,\n      // EVENTS\n      loadingData(internalModel, promise) {\n        {\n          internalModel._promiseProxy = promise;\n        }\n        internalModel.transitionTo('loading');\n      },\n      loadedData(internalModel) {\n        internalModel.transitionTo('loaded.created.uncommitted');\n        internalModel.triggerLater('ready');\n      },\n      pushedData(internalModel) {\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('didLoad');\n        internalModel.triggerLater('ready');\n      },\n      // Record is already in an empty state, triggering transition to empty here\n      // produce an error.\n      notFound() {}\n    },\n    // A record enters this state when the store asks\n    // the adapter for its data. It remains in this state\n    // until the adapter provides the requested data.\n    //\n    // Usually, this process is asynchronous, using an\n    // XHR to retrieve the data.\n    loading: {\n      // FLAGS\n      isLoading: true,\n      exit(internalModel) {\n        internalModel._promiseProxy = null;\n      },\n      loadingData() {},\n      // EVENTS\n      pushedData(internalModel) {\n        internalModel.transitionTo('loaded.saved');\n        internalModel.triggerLater('didLoad');\n        internalModel.triggerLater('ready');\n        //TODO this seems out of place here\n        internalModel.didCleanError();\n      },\n      becameError(internalModel) {\n        internalModel.triggerLater('becameError', internalModel);\n      },\n      notFound(internalModel) {\n        internalModel.transitionTo('empty');\n      }\n    },\n    // A record enters this state when its data is populated.\n    // Most of a record's lifecycle is spent inside substates\n    // of the `loaded` state.\n    loaded: {\n      initialState: 'saved',\n      // FLAGS\n      isLoaded: true,\n      //TODO(Igor) Reloading now triggers a loadingData event,\n      //but it should be ok?\n      loadingData() {},\n      // SUBSTATES\n\n      // If there are no local changes to a record, it remains\n      // in the `saved` state.\n      saved: {\n        setup(internalModel) {\n          if (internalModel.hasChangedAttributes()) {\n            internalModel.adapterDidDirty();\n          }\n        },\n        // EVENTS\n        didSetProperty,\n        pushedData() {},\n        becomeDirty(internalModel) {\n          internalModel.transitionTo('updated.uncommitted');\n        },\n        willCommit(internalModel) {\n          internalModel.transitionTo('updated.inFlight');\n        },\n        reloadRecord(internalModel, {\n          resolve,\n          options\n        }) {\n          {\n            resolve(internalModel.store._reloadRecord(internalModel, options));\n          }\n        },\n        deleteRecord(internalModel) {\n          internalModel.transitionTo('deleted.uncommitted');\n        },\n        unloadRecord(internalModel) {},\n        didCommit() {},\n        // loaded.saved.notFound would be triggered by a failed\n        // `reload()` on an unchanged record\n        notFound() {}\n      },\n      // A record is in this state after it has been locally\n      // created but before the adapter has indicated that\n      // it has been saved.\n      created: createdState,\n      // A record is in this state if it has already been\n      // saved to the server, but there are new local changes\n      // that have not yet been saved.\n      updated: updatedState\n    },\n    // A record is in this state if it was deleted from the store.\n    deleted: {\n      initialState: 'uncommitted',\n      dirtyType: 'deleted',\n      // FLAGS\n      isDeleted: true,\n      isLoaded: true,\n      isDirty: true,\n      // TRANSITIONS\n      setup(internalModel) {\n        internalModel.updateRecordArrays();\n      },\n      // SUBSTATES\n\n      // When a record is deleted, it enters the `start`\n      // state. It will exit this state when the record\n      // starts to commit.\n      uncommitted: {\n        // EVENTS\n\n        willCommit(internalModel) {\n          internalModel.transitionTo('inFlight');\n        },\n        rollback(internalModel) {\n          internalModel.rollbackAttributes();\n          internalModel.triggerLater('ready');\n        },\n        pushedData() {},\n        becomeDirty() {},\n        deleteRecord() {},\n        rolledBack(internalModel) {\n          internalModel.transitionTo('loaded.saved');\n          internalModel.triggerLater('ready');\n          internalModel.triggerLater('rolledBack');\n        }\n      },\n      // After a record starts committing, but\n      // before the adapter indicates that the deletion\n      // has saved to the server, a record is in the\n      // `inFlight` substate of `deleted`.\n      inFlight: {\n        // FLAGS\n        isSaving: true,\n        // EVENTS\n\n        unloadRecord: assertAgainstUnloadRecord,\n        // TODO: More robust semantics around save-while-in-flight\n        willCommit() {},\n        didCommit(internalModel) {\n          internalModel.transitionTo('saved');\n          internalModel.send('invokeLifecycleCallbacks');\n        },\n        becameError(internalModel) {\n          internalModel.transitionTo('uncommitted');\n          internalModel.triggerLater('becameError', internalModel);\n        },\n        becameInvalid(internalModel) {\n          internalModel.transitionTo('invalid');\n          internalModel.triggerLater('becameInvalid', internalModel);\n        }\n      },\n      // Once the adapter indicates that the deletion has\n      // been saved, the record enters the `saved` substate\n      // of `deleted`.\n      saved: {\n        // FLAGS\n        isDirty: false,\n        setup(internalModel) {\n          internalModel.removeFromInverseRelationships();\n        },\n        invokeLifecycleCallbacks(internalModel) {\n          internalModel.triggerLater('didDelete', internalModel);\n          internalModel.triggerLater('didCommit', internalModel);\n        },\n        willCommit() {},\n        didCommit() {},\n        pushedData() {}\n      },\n      invalid: {\n        isValid: false,\n        didSetProperty(internalModel, context) {\n          internalModel.removeErrorMessageFromAttribute(context.name);\n          didSetProperty(internalModel, context);\n          if (!internalModel.hasErrors()) {\n            this.becameValid(internalModel);\n          }\n        },\n        becameInvalid() {},\n        becomeDirty() {},\n        deleteRecord() {},\n        willCommit() {},\n        rolledBack(internalModel) {\n          internalModel.clearErrorMessages();\n          internalModel.transitionTo('loaded.saved');\n          internalModel.triggerLater('ready');\n        },\n        becameValid(internalModel) {\n          internalModel.transitionTo('uncommitted');\n        }\n      }\n    },\n    invokeLifecycleCallbacks(internalModel, dirtyType) {\n      if (dirtyType === 'created') {\n        internalModel.triggerLater('didCreate', internalModel);\n      } else {\n        internalModel.triggerLater('didUpdate', internalModel);\n      }\n      internalModel.triggerLater('didCommit', internalModel);\n    }\n  };\n  function wireState(object, parent, name) {\n    // TODO: Use Object.create and copy instead\n    object = mixin(parent ? Object.create(parent) : {}, object);\n    object.parentState = parent;\n    object.stateName = name;\n    for (var prop in object) {\n      if (!Object.prototype.hasOwnProperty.call(object, prop) || prop === 'parentState' || prop === 'stateName') {\n        continue;\n      }\n      if (typeof object[prop] === 'object') {\n        object[prop] = wireState(object[prop], object, name + '.' + prop);\n      }\n    }\n    return object;\n  }\n  var RootState$1 = wireState(RootState, null, 'root');\n\n  // move to TS hacks module that we can delete when this is no longer a necessary recast\n\n  /**\n    @module @ember-data/store\n  */\n\n  // once the presentation logic is moved into the Model package we can make\n  // eliminate these lossy and redundant helpers\n  function relationshipsFor$1(instance) {\n    var recordData = recordDataFor(instance);\n    return recordData._relationships;\n  }\n  function relationshipStateFor$1(instance, propertyName) {\n    return relationshipsFor$1(instance).get(propertyName);\n  }\n  var {\n    hasOwnProperty\n  } = Object.prototype;\n  var ManyArray;\n  var PromiseBelongsTo;\n  var PromiseManyArray;\n  var _found = false;\n  var _getModelPackage;\n  {\n    _getModelPackage = function () {\n      if (!_found) {\n        var modelPackage = require('@ember-data/model/-private');\n        ({\n          ManyArray,\n          PromiseBelongsTo,\n          PromiseManyArray\n        } = modelPackage);\n        if (ManyArray && PromiseBelongsTo && PromiseManyArray) {\n          _found = true;\n        }\n      }\n      return _found;\n    };\n  }\n  /*\n    The TransitionChainMap caches the `state.enters`, `state.setups`, and final state reached\n    when transitioning from one state to another, so that future transitions can replay the\n    transition without needing to walk the state tree, collect these hook calls and determine\n     the state to transition into.\n\n     A future optimization would be to build a single chained method out of the collected enters\n     and setups. It may also be faster to do a two level cache (from: { to }) instead of caching based\n     on a key that adds the two together.\n   */\n  var TransitionChainMap = Object.create(null);\n  var _extractPivotNameCache = Object.create(null);\n  var _splitOnDotCache = Object.create(null);\n  function splitOnDot(name) {\n    return _splitOnDotCache[name] || (_splitOnDotCache[name] = name.split('.'));\n  }\n  function extractPivotName(name) {\n    return _extractPivotNameCache[name] || (_extractPivotNameCache[name] = splitOnDot(name)[0]);\n  }\n\n  /*\n    `InternalModel` is the Model class that we use internally inside Ember Data to represent models.\n    Internal ED methods should only deal with `InternalModel` objects. It is a fast, plain Javascript class.\n\n    We expose `Model` to application code, by materializing a `Model` from `InternalModel` lazily, as\n    a performance optimization.\n\n    `InternalModel` should never be exposed to application code. At the boundaries of the system, in places\n    like `find`, `push`, etc. we convert between Models and InternalModels.\n\n    We need to make sure that the properties from `InternalModel` are correctly exposed/proxied on `Model`\n    if they are needed.\n\n    @private\n    @class InternalModel\n  */\n  class InternalModel {\n    constructor(store, identifier) {\n      this.store = store;\n      this.identifier = identifier;\n      this._id = void 0;\n      this._tag = 0;\n      this.modelName = void 0;\n      this.clientId = void 0;\n      this.__recordData = void 0;\n      this._isDestroyed = void 0;\n      this.isError = void 0;\n      this._pendingRecordArrayManagerFlush = void 0;\n      this._isDematerializing = void 0;\n      this.isReloading = void 0;\n      this._doNotDestroy = void 0;\n      this.isDestroying = void 0;\n      // Not typed yet\n      this._promiseProxy = void 0;\n      this._record = void 0;\n      this._scheduledDestroy = void 0;\n      this._modelClass = void 0;\n      this.__deferredTriggers = void 0;\n      this.__recordArrays = void 0;\n      this._references = void 0;\n      this._recordReference = void 0;\n      this._manyArrayCache = Object.create(null);\n      // The previous ManyArrays for this relationship which will be destroyed when\n      // we create a new ManyArray, but in the interim the retained version will be\n      // updated if inverse internal models are unloaded.\n      this._retainedManyArrayCache = Object.create(null);\n      this._relationshipPromisesCache = Object.create(null);\n      this._relationshipProxyCache = Object.create(null);\n      this.currentState = void 0;\n      this.error = void 0;\n      {\n        _getModelPackage();\n      }\n      this._id = identifier.id;\n      this.modelName = identifier.type;\n      this.clientId = identifier.lid;\n      this.__recordData = null;\n\n      // this ensure ordered set can quickly identify this as unique\n      this[Ember.GUID_KEY] = identifier.lid;\n      this._promiseProxy = null;\n      this._record = null;\n      this._isDestroyed = false;\n      this.isError = false;\n      this._pendingRecordArrayManagerFlush = false; // used by the recordArrayManager\n\n      // During dematerialization we don't want to rematerialize the record.  The\n      // reason this might happen is that dematerialization removes records from\n      // record arrays,  and Ember arrays will always `objectAt(0)` and\n      // `objectAt(len - 1)` to test whether or not `firstObject` or `lastObject`\n      // have changed.\n      this._isDematerializing = false;\n      this._scheduledDestroy = null;\n      this.resetRecord();\n\n      // caches for lazy getters\n      this._modelClass = null;\n      this.__deferredTriggers = null;\n      this.__recordArrays = null;\n      this._references = null;\n      this._recordReference = null;\n    }\n    get id() {\n      return this.identifier.id;\n    }\n    set id(value) {\n      if (value !== this._id) {\n        var newIdentifier = {\n          type: this.identifier.type,\n          lid: this.identifier.lid,\n          id: value\n        };\n        identifierCacheFor(this.store).updateRecordIdentifier(this.identifier, newIdentifier);\n        Ember.set(this, '_tag', this._tag + 1);\n        // TODO Show deprecation for private api\n      }\n    }\n    get modelClass() {\n      if (this.store.modelFor) {\n        return this._modelClass || (this._modelClass = this.store.modelFor(this.modelName));\n      }\n    }\n    get type() {\n      return this.modelClass;\n    }\n    get recordReference() {\n      if (this._recordReference === null) {\n        {\n          this._recordReference = new RecordReference(this.store, this.identifier);\n        }\n      }\n      return this._recordReference;\n    }\n    get _recordData() {\n      if (this.__recordData === null) {\n        var recordData = this.store._createRecordData(this.identifier);\n        this._recordData = recordData;\n        return recordData;\n      }\n      return this.__recordData;\n    }\n    set _recordData(newValue) {\n      this.__recordData = newValue;\n    }\n    get references() {\n      if (this._references === null) {\n        this._references = Object.create(null);\n      }\n      return this._references;\n    }\n    get _deferredTriggers() {\n      if (this.__deferredTriggers === null) {\n        this.__deferredTriggers = [];\n      }\n      return this.__deferredTriggers;\n    }\n    isHiddenFromRecordArrays() {\n      // During dematerialization we don't want to rematerialize the record.\n      // recordWasDeleted can cause other records to rematerialize because it\n      // removes the internal model from the array and Ember arrays will always\n      // `objectAt(0)` and `objectAt(len -1)` to check whether `firstObject` or\n      // `lastObject` have changed.  When this happens we don't want those\n      // models to rematerialize their records.\n\n      // eager checks to avoid instantiating record data if we are empty or loading\n      if (this.isEmpty()) {\n        return true;\n      }\n      var isRecordFullyDeleted;\n      {\n        isRecordFullyDeleted = this.currentState.stateName === 'root.deleted.saved';\n      }\n      return this._isDematerializing || this.hasScheduledDestroy() || this.isDestroyed || isRecordFullyDeleted;\n    }\n    _isRecordFullyDeleted() {\n      {\n        // assert here\n        return false;\n      }\n    }\n    isRecordInUse() {\n      var record = this._record;\n      return record && !(record.get('isDestroyed') || record.get('isDestroying'));\n    }\n    isEmpty() {\n      return this.currentState.isEmpty;\n    }\n    isLoading() {\n      return this.currentState.isLoading;\n    }\n    isLoaded() {\n      return this.currentState.isLoaded;\n    }\n    hasDirtyAttributes() {\n      return this.currentState.hasDirtyAttributes;\n    }\n    isSaving() {\n      return this.currentState.isSaving;\n    }\n    isDeleted() {\n      {\n        return this.currentState.isDeleted;\n      }\n    }\n    isNew() {\n      {\n        return this.currentState.isNew;\n      }\n    }\n    isValid() {\n      {\n        return this.currentState.isValid;\n      }\n    }\n    dirtyType() {\n      return this.currentState.dirtyType;\n    }\n    getRecord(properties) {\n      if (!this._record && !this._isDematerializing) {\n        var {\n          store: _store\n        } = this;\n        {\n          {\n            // lookupFactory should really return an object that creates\n            // instances with the injections applied\n            var createOptions = {\n              store: _store,\n              _internalModel: this,\n              currentState: this.currentState\n            };\n            {\n              createOptions.isError = this.isError;\n              createOptions.adapterError = this.error;\n            }\n            if (properties !== undefined) {\n              ( !(typeof properties === 'object' && properties !== null) && Ember.assert(`You passed '${properties}' as properties for record creation instead of an object.`, typeof properties === 'object' && properties !== null));\n              if ('id' in properties) {\n                var id = coerceId(properties.id);\n                if (id !== null) {\n                  this.setId(id);\n                }\n              }\n\n              // convert relationship Records to RecordDatas before passing to RecordData\n              var defs = _store._relationshipsDefinitionFor(this.modelName);\n              if (defs !== null) {\n                var keys = Object.keys(properties);\n                var relationshipValue;\n                for (var i = 0; i < keys.length; i++) {\n                  var prop = keys[i];\n                  var def = defs[prop];\n                  if (def !== undefined) {\n                    if (def.kind === 'hasMany') {\n                      {\n                        assertRecordsPassedToHasMany(properties[prop]);\n                      }\n                      relationshipValue = extractRecordDatasFromRecords(properties[prop]);\n                    } else {\n                      relationshipValue = extractRecordDataFromRecord(properties[prop]);\n                    }\n                    properties[prop] = relationshipValue;\n                  }\n                }\n              }\n            }\n            var additionalCreateOptions = this._recordData._initRecordCreateOptions(properties);\n            Ember.assign(createOptions, additionalCreateOptions);\n\n            // ensure that `getOwner(this)` works inside a model instance\n            Ember.setOwner(createOptions, Ember.getOwner(_store));\n            this._record = _store._modelFactoryFor(this.modelName).create(createOptions);\n            setRecordIdentifier(this._record, this.identifier);\n          }\n        }\n        this._triggerDeferredTriggers();\n      }\n      return this._record;\n    }\n    resetRecord() {\n      this._record = null;\n      this.isReloading = false;\n      this.error = null;\n      this.currentState = RootState$1.empty;\n    }\n    dematerializeRecord() {\n      this._isDematerializing = true;\n\n      // TODO IGOR add a test that fails when this is missing, something that involves canceling a destroy\n      // and the destroy not happening, and then later on trying to destroy\n      this._doNotDestroy = false;\n      if (this._record) {\n        {\n          this._record.destroy();\n        }\n        Object.keys(this._relationshipProxyCache).forEach(key => {\n          if (this._relationshipProxyCache[key].destroy) {\n            this._relationshipProxyCache[key].destroy();\n          }\n          delete this._relationshipProxyCache[key];\n        });\n        Object.keys(this._manyArrayCache).forEach(key => {\n          var manyArray = this._retainedManyArrayCache[key] = this._manyArrayCache[key];\n          delete this._manyArrayCache[key];\n          if (manyArray && !manyArray._inverseIsAsync) {\n            /*\n              If the manyArray is for a sync relationship, we should clear it\n                to preserve the semantics of client-side delete.\n               It is likely in this case instead of retaining we should destroy\n                - @runspired\n            */\n            manyArray.clear();\n          }\n        });\n      }\n\n      // move to an empty never-loaded state\n      this.updateRecordArrays();\n      this._recordData.unloadRecord();\n      this.resetRecord();\n    }\n    deleteRecord() {\n      this.send('deleteRecord');\n    }\n    save(options) {\n      var promiseLabel = 'DS: Model#save ' + this;\n      var resolver = Ember.RSVP.defer(promiseLabel);\n      {\n        this.store.scheduleSave(this, resolver, options);\n        return resolver.promise;\n      }\n    }\n    startedReloading() {\n      this.isReloading = true;\n      if (this.hasRecord) {\n        Ember.set(this._record, 'isReloading', true);\n      }\n    }\n    finishedReloading() {\n      this.isReloading = false;\n      if (this.hasRecord) {\n        Ember.set(this._record, 'isReloading', false);\n      }\n    }\n    reload(options) {\n      {\n        this.startedReloading();\n        var _internalModel = this;\n        var promiseLabel = 'DS: Model#reload of ' + this;\n        return new Ember.RSVP.Promise(function (resolve) {\n          _internalModel.send('reloadRecord', {\n            resolve,\n            options\n          });\n        }, promiseLabel).then(function () {\n          _internalModel.didCleanError();\n          return _internalModel;\n        }, function (error) {\n          _internalModel.didError(error);\n          throw error;\n        }, 'DS: Model#reload complete, update flags').finally(function () {\n          _internalModel.finishedReloading();\n        });\n      }\n    }\n\n    /*\n      Unload the record for this internal model. This will cause the record to be\n      destroyed and freed up for garbage collection. It will also do a check\n      for cleaning up internal models.\n       This check is performed by first computing the set of related internal\n      models. If all records in this set are unloaded, then the entire set is\n      destroyed. Otherwise, nothing in the set is destroyed.\n       This means that this internal model will be freed up for garbage collection\n      once all models that refer to it via some relationship are also unloaded.\n    */\n    unloadRecord() {\n      if (this.isDestroyed) {\n        return;\n      }\n      this.send('unloadRecord');\n      this.dematerializeRecord();\n      if (this._scheduledDestroy === null) {\n        this._scheduledDestroy = Ember.run.backburner.schedule('destroy', this, '_checkForOrphanedInternalModels');\n      }\n    }\n    hasScheduledDestroy() {\n      return !!this._scheduledDestroy;\n    }\n    cancelDestroy() {\n      ( !(!this.isDestroyed) && Ember.assert(`You cannot cancel the destruction of an InternalModel once it has already been destroyed`, !this.isDestroyed));\n      this._doNotDestroy = true;\n      this._isDematerializing = false;\n      Ember.run.cancel(this._scheduledDestroy);\n      this._scheduledDestroy = null;\n    }\n\n    // typically, we prefer to async destroy this lets us batch cleanup work.\n    // Unfortunately, some scenarios where that is not possible. Such as:\n    //\n    // ```js\n    // const record = store.find(‘record’, 1);\n    // record.unloadRecord();\n    // store.createRecord(‘record’, 1);\n    // ```\n    //\n    // In those scenarios, we make that model's cleanup work, sync.\n    //\n    destroySync() {\n      if (this._isDematerializing) {\n        this.cancelDestroy();\n      }\n      this._checkForOrphanedInternalModels();\n      if (this.isDestroyed || this.isDestroying) {\n        return;\n      }\n\n      // just in-case we are not one of the orphaned, we should still\n      // still destroy ourselves\n      this.destroy();\n    }\n    _checkForOrphanedInternalModels() {\n      this._isDematerializing = false;\n      this._scheduledDestroy = null;\n      if (this.isDestroyed) {\n        return;\n      }\n    }\n    eachRelationship(callback, binding) {\n      return this.modelClass.eachRelationship(callback, binding);\n    }\n    _findBelongsTo(key, resource, relationshipMeta, options) {\n      // TODO @runspired follow up if parent isNew then we should not be attempting load here\n      return this.store._findBelongsToByJsonApiResource(resource, this, relationshipMeta, options).then(internalModel => handleCompletedRelationshipRequest(this, key, resource._relationship, internalModel, null), e => handleCompletedRelationshipRequest(this, key, resource._relationship, null, e));\n    }\n    getBelongsTo(key, options) {\n      var resource = this._recordData.getBelongsTo(key);\n      var identifier = resource && resource.data ? identifierCacheFor(this.store).getOrCreateRecordIdentifier(resource.data) : null;\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n      var store = this.store;\n      var parentInternalModel = this;\n      var async = relationshipMeta.options.async;\n      var isAsync = typeof async === 'undefined' ? true : async;\n      var _belongsToState = {\n        key,\n        store,\n        originatingInternalModel: this,\n        modelName: relationshipMeta.type\n      };\n      if (isAsync) {\n        var internalModel = identifier !== null ? store._internalModelForResource(identifier) : null;\n        if (resource._relationship.hasFailedLoadAttempt) {\n          return this._relationshipProxyCache[key];\n        }\n        var promise = this._findBelongsTo(key, resource, relationshipMeta, options);\n        return this._updatePromiseProxyFor('belongsTo', key, {\n          promise,\n          content: internalModel ? internalModel.getRecord() : null,\n          _belongsToState\n        });\n      } else {\n        if (identifier === null) {\n          return null;\n        } else {\n          var _internalModel2 = store._internalModelForResource(identifier);\n          var toReturn = _internalModel2.getRecord();\n          ( !(toReturn === null || !toReturn.get('isEmpty')) && Ember.assert(\"You looked up the '\" + key + \"' relationship on a '\" + parentInternalModel.modelName + \"' with id \" + parentInternalModel.id + ' but some of the associated records were not loaded. Either make sure they are all loaded together with the parent record, or specify that the relationship is async (`belongsTo({ async: true })`)', toReturn === null || !toReturn.get('isEmpty')));\n          return toReturn;\n        }\n      }\n    }\n\n    // TODO Igor consider getting rid of initial state\n    getManyArray(key, isAsync = false) {\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n      var jsonApi = this._recordData.getHasMany(key);\n      var manyArray = this._manyArrayCache[key];\n      ( !(!manyArray || !this._retainedManyArrayCache[key]) && Ember.assert(`Error: relationship ${this.modelName}:${key} has both many array and retained many array`, !manyArray || !this._retainedManyArrayCache[key]));\n      if (!manyArray) {\n        var initialState = this.store._getHasManyByJsonApiResource(jsonApi);\n        // TODO move this to a public api\n        var inverseIsAsync = jsonApi._relationship ? jsonApi._relationship._inverseIsAsync() : false;\n        manyArray = ManyArray.create({\n          store: this.store,\n          type: this.store.modelFor(relationshipMeta.type),\n          recordData: this._recordData,\n          meta: jsonApi.meta,\n          links:  jsonApi.links ,\n          key,\n          isPolymorphic: relationshipMeta.options.polymorphic,\n          initialState: initialState.slice(),\n          _inverseIsAsync: inverseIsAsync,\n          internalModel: this,\n          isLoaded: !isAsync\n        });\n        this._manyArrayCache[key] = manyArray;\n      }\n      if (this._retainedManyArrayCache[key]) {\n        this._retainedManyArrayCache[key].destroy();\n        delete this._retainedManyArrayCache[key];\n      }\n      return manyArray;\n    }\n    fetchAsyncHasMany(key, relationshipMeta, jsonApi, manyArray, options) {\n      // TODO @runspired follow up if parent isNew then we should not be attempting load here\n      var loadingPromise = this._relationshipPromisesCache[key];\n      if (loadingPromise) {\n        return loadingPromise;\n      }\n      loadingPromise = this.store._findHasManyByJsonApiResource(jsonApi, this, relationshipMeta, options).then(() => {\n        // TODO why don't we do this in the store method\n        manyArray.retrieveLatest();\n        manyArray.set('isLoaded', true);\n        return manyArray;\n      }).then(manyArray => handleCompletedRelationshipRequest(this, key, jsonApi._relationship, manyArray, null), e => handleCompletedRelationshipRequest(this, key, jsonApi._relationship, null, e));\n      this._relationshipPromisesCache[key] = loadingPromise;\n      return loadingPromise;\n    }\n    getHasMany(key, options) {\n      var jsonApi = this._recordData.getHasMany(key);\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n      var async = relationshipMeta.options.async;\n      var isAsync = typeof async === 'undefined' ? true : async;\n      var manyArray = this.getManyArray(key, isAsync);\n      if (isAsync) {\n        if (jsonApi._relationship.hasFailedLoadAttempt) {\n          return this._relationshipProxyCache[key];\n        }\n        var promise = this.fetchAsyncHasMany(key, relationshipMeta, jsonApi, manyArray, options);\n        return this._updatePromiseProxyFor('hasMany', key, {\n          promise,\n          content: manyArray\n        });\n      } else {\n        ( !(!manyArray.anyUnloaded()) && Ember.assert(`You looked up the '${key}' relationship on a '${this.type.modelName}' with id ${this.id} but some of the associated records were not loaded. Either make sure they are all loaded together with the parent record, or specify that the relationship is async ('hasMany({ async: true })')`, !manyArray.anyUnloaded()));\n        return manyArray;\n      }\n    }\n    _updatePromiseProxyFor(kind, key, args) {\n      var promiseProxy = this._relationshipProxyCache[key];\n      if (promiseProxy) {\n        if (args.content !== undefined) {\n          // this usage of `any` can be removed when `@types/ember_object` proxy allows `null` for content\n          promiseProxy.set('content', args.content);\n        }\n        promiseProxy.set('promise', args.promise);\n      } else {\n        var klass = kind === 'hasMany' ? PromiseManyArray : PromiseBelongsTo;\n        // this usage of `any` can be removed when `@types/ember_object` proxy allows `null` for content\n        this._relationshipProxyCache[key] = klass.create(args);\n      }\n      return this._relationshipProxyCache[key];\n    }\n    reloadHasMany(key, options) {\n      var loadingPromise = this._relationshipPromisesCache[key];\n      if (loadingPromise) {\n        return loadingPromise;\n      }\n      var jsonApi = this._recordData.getHasMany(key);\n      // TODO move this to a public api\n      if (jsonApi._relationship) {\n        jsonApi._relationship.setHasFailedLoadAttempt(false);\n        jsonApi._relationship.setShouldForceReload(true);\n      }\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n      var manyArray = this.getManyArray(key);\n      var promise = this.fetchAsyncHasMany(key, relationshipMeta, jsonApi, manyArray, options);\n      if (this._relationshipProxyCache[key]) {\n        return this._updatePromiseProxyFor('hasMany', key, {\n          promise\n        });\n      }\n      return promise;\n    }\n    reloadBelongsTo(key, options) {\n      var loadingPromise = this._relationshipPromisesCache[key];\n      if (loadingPromise) {\n        return loadingPromise;\n      }\n      var resource = this._recordData.getBelongsTo(key);\n      // TODO move this to a public api\n      if (resource._relationship) {\n        resource._relationship.setHasFailedLoadAttempt(false);\n        resource._relationship.setShouldForceReload(true);\n      }\n      var relationshipMeta = this.store._relationshipMetaFor(this.modelName, null, key);\n      var promise = this._findBelongsTo(key, resource, relationshipMeta, options);\n      if (this._relationshipProxyCache[key]) {\n        return this._updatePromiseProxyFor('belongsTo', key, {\n          promise\n        });\n      }\n      return promise;\n    }\n    destroyFromRecordData() {\n      if (this._doNotDestroy) {\n        this._doNotDestroy = false;\n        return;\n      }\n      this.destroy();\n    }\n    destroy() {\n      ( !(!this._record || this._record.get('isDestroyed') || this._record.get('isDestroying')) && Ember.assert('Cannot destroy an internalModel while its record is materialized', !this._record || this._record.get('isDestroyed') || this._record.get('isDestroying')));\n      this.isDestroying = true;\n      Object.keys(this._retainedManyArrayCache).forEach(key => {\n        this._retainedManyArrayCache[key].destroy();\n        delete this._retainedManyArrayCache[key];\n      });\n      internalModelFactoryFor(this.store).remove(this);\n      this._isDestroyed = true;\n    }\n    eachAttribute(callback, binding) {\n      return this.modelClass.eachAttribute(callback, binding);\n    }\n    inverseFor(key) {\n      return this.modelClass.inverseFor(key);\n    }\n    setupData(data) {\n      var changedKeys = this._recordData.pushData(data, this.hasRecord);\n      if (this.hasRecord) {\n        this._record._notifyProperties(changedKeys);\n      }\n      this.pushedData();\n    }\n    getAttributeValue(key) {\n      return this._recordData.getAttr(key);\n    }\n    setDirtyHasMany(key, records) {\n      assertRecordsPassedToHasMany(records);\n      return this._recordData.setDirtyHasMany(key, extractRecordDatasFromRecords(records));\n    }\n    setDirtyBelongsTo(key, value) {\n      return this._recordData.setDirtyBelongsTo(key, extractRecordDataFromRecord(value));\n    }\n    setDirtyAttribute(key, value) {\n      if (this.isDeleted()) {\n        {\n          throw new Ember.Error(`Attempted to set '${key}' to '${value}' on the deleted record ${this}`);\n        }\n      }\n      var currentValue = this.getAttributeValue(key);\n      if (currentValue !== value) {\n        this._recordData.setDirtyAttribute(key, value);\n        var isDirty = this._recordData.isAttrDirty(key);\n        this.send('didSetProperty', {\n          name: key,\n          isDirty: isDirty\n        });\n      }\n      return value;\n    }\n    get isDestroyed() {\n      return this._isDestroyed;\n    }\n    get hasRecord() {\n      return !!this._record;\n    }\n\n    /*\n      @method createSnapshot\n      @private\n    */\n    createSnapshot(options) {\n      return new Snapshot(options || {}, this.identifier, this.store);\n    }\n\n    /*\n      @method loadingData\n      @private\n      @param {Promise} promise\n    */\n    loadingData(promise) {\n      {\n        this.send('loadingData', promise);\n      }\n    }\n\n    /*\n      @method loadedData\n      @private\n    */\n    loadedData() {\n      this.send('loadedData');\n    }\n\n    /*\n      @method notFound\n      @private\n    */\n    notFound() {\n      this.send('notFound');\n    }\n\n    /*\n      @method pushedData\n      @private\n    */\n    pushedData() {\n      this.send('pushedData');\n    }\n    hasChangedAttributes() {\n      {\n        if (this.isLoading() && !this.isReloading) {\n          // no need to calculate changed attributes when calling `findRecord`\n          return false;\n        }\n      }\n      return this._recordData.hasChangedAttributes();\n    }\n\n    /*\n      Returns an object, whose keys are changed properties, and value is an\n      [oldProp, newProp] array.\n       @method changedAttributes\n      @private\n    */\n    changedAttributes() {\n      {\n        if (this.isLoading() && !this.isReloading) {\n          // no need to calculate changed attributes when calling `findRecord`\n          return {};\n        }\n      }\n      return this._recordData.changedAttributes();\n    }\n\n    /*\n      @method adapterWillCommit\n      @private\n    */\n    adapterWillCommit() {\n      this._recordData.willCommit();\n      this.send('willCommit');\n    }\n\n    /*\n      @method adapterDidDirty\n      @private\n    */\n    adapterDidDirty() {\n      this.send('becomeDirty');\n    }\n\n    /*\n      @method send\n      @private\n      @param {String} name\n      @param {Object} context\n    */\n    send(name, context) {\n      var currentState = this.currentState;\n      if (!currentState[name]) {\n        this._unhandledEvent(currentState, name, context);\n      }\n      return currentState[name](this, context);\n    }\n    manyArrayRecordAdded(key) {\n      if (this.hasRecord) {\n        {\n          this._record.notifyHasManyAdded(key);\n        }\n      }\n    }\n    notifyHasManyChange(key) {\n      if (this.hasRecord) {\n        {\n          var manyArray = this._manyArrayCache[key];\n          if (manyArray) {\n            // TODO: this will \"resurrect\" previously unloaded records\n            // see test '1:many async unload many side'\n            //  in `tests/integration/records/unload-test.js`\n            //  probably we don't want to retrieve latest eagerly when notifyhasmany changed\n            //  but rather lazily when someone actually asks for a manyarray\n            //\n            //  that said, also not clear why we haven't moved this to retainedmanyarray so maybe that's the bit that's just not working\n            manyArray.retrieveLatest();\n          }\n        }\n      }\n    }\n    notifyBelongsToChange(key) {\n      if (this.hasRecord) {\n        {\n          this._record.notifyBelongsToChange(key, this._record);\n        }\n      }\n    }\n    hasManyRemovalCheck(key) {\n      var manyArray = this._manyArrayCache[key] || this._retainedManyArrayCache[key];\n      var didRemoveUnloadedModel = false;\n      if (manyArray) {\n        didRemoveUnloadedModel = manyArray.removeUnloadedInternalModel();\n        if (this._manyArrayCache[key] && didRemoveUnloadedModel) {\n          this._retainedManyArrayCache[key] = this._manyArrayCache[key];\n          delete this._manyArrayCache[key];\n        }\n      }\n      return didRemoveUnloadedModel;\n    }\n    notifyPropertyChange(key) {\n      if (this.hasRecord) {\n        {\n          this._record.notifyPropertyChange(key);\n        }\n      }\n      {\n        var manyArray = this._manyArrayCache[key] || this._retainedManyArrayCache[key];\n        if (manyArray) {\n          var didRemoveUnloadedModel = manyArray.removeUnloadedInternalModel();\n          if (this._manyArrayCache[key] && didRemoveUnloadedModel) {\n            this._retainedManyArrayCache[key] = this._manyArrayCache[key];\n            delete this._manyArrayCache[key];\n          }\n        }\n      }\n    }\n    notifyStateChange(key) {\n      ( Ember.assert('Cannot notify state change if Record Data State flag is not on', !!false));\n      if (this.hasRecord) {\n        {\n          if (!key || key === 'isNew') {\n            this.getRecord().notifyPropertyChange('isNew');\n          }\n          if (!key || key === 'isDeleted') {\n            this.getRecord().notifyPropertyChange('isDeleted');\n          }\n        }\n      }\n      if (!key || key === 'isDeletionCommitted') {\n        this.updateRecordArrays();\n      }\n    }\n    didCreateRecord() {\n      this._recordData.clientDidCreate();\n    }\n    rollbackAttributes() {\n      var dirtyKeys = this._recordData.rollbackAttributes();\n      if (Ember.get(this, 'isError')) {\n        this.didCleanError();\n      }\n      this.send('rolledBack');\n      if (this._record && dirtyKeys && dirtyKeys.length > 0) {\n        this._record._notifyProperties(dirtyKeys);\n      }\n    }\n\n    /*\n      @method transitionTo\n      @private\n      @param {String} name\n    */\n    transitionTo(name) {\n      // POSSIBLE TODO: Remove this code and replace with\n      // always having direct reference to state objects\n\n      var pivotName = extractPivotName(name);\n      var state = this.currentState;\n      var transitionMapId = `${state.stateName}->${name}`;\n      do {\n        if (state.exit) {\n          state.exit(this);\n        }\n        state = state.parentState;\n      } while (!state[pivotName]);\n      var setups;\n      var enters;\n      var i;\n      var l;\n      var map = TransitionChainMap[transitionMapId];\n      if (map) {\n        setups = map.setups;\n        enters = map.enters;\n        state = map.state;\n      } else {\n        setups = [];\n        enters = [];\n        var path = splitOnDot(name);\n        for (i = 0, l = path.length; i < l; i++) {\n          state = state[path[i]];\n          if (state.enter) {\n            enters.push(state);\n          }\n          if (state.setup) {\n            setups.push(state);\n          }\n        }\n        TransitionChainMap[transitionMapId] = {\n          setups,\n          enters,\n          state\n        };\n      }\n      for (i = 0, l = enters.length; i < l; i++) {\n        enters[i].enter(this);\n      }\n      this.currentState = state;\n      if (this.hasRecord) {\n        Ember.set(this._record, 'currentState', state);\n      }\n      for (i = 0, l = setups.length; i < l; i++) {\n        setups[i].setup(this);\n      }\n    }\n    _unhandledEvent(state, name, context) {\n      var errorMessage = 'Attempted to handle event `' + name + '` ';\n      errorMessage += 'on ' + String(this) + ' while in state ';\n      errorMessage += state.stateName + '. ';\n      if (context !== undefined) {\n        errorMessage += 'Called with ' + Ember.inspect(context) + '.';\n      }\n      throw new Ember.Error(errorMessage);\n    }\n    triggerLater(...args) {\n      if (this._deferredTriggers.push(args) !== 1) {\n        return;\n      }\n      this.store._updateInternalModel(this);\n    }\n    _triggerDeferredTriggers() {\n      //TODO: Before 1.0 we want to remove all the events that happen on the pre materialized record,\n      //but for now, we queue up all the events triggered before the record was materialized, and flush\n      //them once we have the record\n      if (!this.hasRecord) {\n        return;\n      }\n      var triggers = this._deferredTriggers;\n      var record = this._record;\n      var trigger = record.trigger;\n      // TODO Igor make nicer check\n      if (trigger && typeof trigger === 'function') {\n        for (var i = 0, l = triggers.length; i < l; i++) {\n          var eventName = triggers[i];\n          trigger.apply(record, eventName);\n        }\n      }\n      triggers.length = 0;\n    }\n    removeFromInverseRelationships(isNew = false) {\n      this._recordData.removeFromInverseRelationships(isNew);\n    }\n\n    /*\n      When a find request is triggered on the store, the user can optionally pass in\n      attributes and relationships to be preloaded. These are meant to behave as if they\n      came back from the server, except the user obtained them out of band and is informing\n      the store of their existence. The most common use case is for supporting client side\n      nested URLs, such as `/posts/1/comments/2` so the user can do\n      `store.findRecord('comment', 2, { preload: { post: 1 } })` without having to fetch the post.\n       Preloaded data can be attributes and relationships passed in either as IDs or as actual\n      models.\n       @method preloadData\n      @private\n      @param {Object} preload\n    */\n    preloadData(preload) {\n      var jsonPayload = {};\n      //TODO(Igor) consider the polymorphic case\n      Object.keys(preload).forEach(key => {\n        var preloadValue = Ember.get(preload, key);\n        var relationshipMeta = this.modelClass.metaForProperty(key);\n        if (relationshipMeta.isRelationship) {\n          if (!jsonPayload.relationships) {\n            jsonPayload.relationships = {};\n          }\n          jsonPayload.relationships[key] = this._preloadRelationship(key, preloadValue);\n        } else {\n          if (!jsonPayload.attributes) {\n            jsonPayload.attributes = {};\n          }\n          jsonPayload.attributes[key] = preloadValue;\n        }\n      });\n      this._recordData.pushData(jsonPayload);\n    }\n    _preloadRelationship(key, preloadValue) {\n      var relationshipMeta = this.modelClass.metaForProperty(key);\n      var modelClass = relationshipMeta.type;\n      var data;\n      if (relationshipMeta.kind === 'hasMany') {\n        ( !(Array.isArray(preloadValue)) && Ember.assert('You need to pass in an array to set a hasMany property on a record', Array.isArray(preloadValue)));\n        data = preloadValue.map(value => this._convertPreloadRelationshipToJSON(value, modelClass));\n      } else {\n        data = this._convertPreloadRelationshipToJSON(preloadValue, modelClass);\n      }\n      return {\n        data\n      };\n    }\n    _convertPreloadRelationshipToJSON(value, modelClass) {\n      if (typeof value === 'string' || typeof value === 'number') {\n        return {\n          type: modelClass,\n          id: value\n        };\n      }\n      var internalModel;\n      if (value._internalModel) {\n        internalModel = value._internalModel;\n      } else {\n        internalModel = value;\n      }\n      // TODO IGOR DAVID assert if no id is present\n      return {\n        type: internalModel.modelName,\n        id: internalModel.id\n      };\n    }\n\n    /*\n      Used to notify the store to update FilteredRecordArray membership.\n       @method updateRecordArrays\n      @private\n    */\n    updateRecordArrays() {\n      {\n        this.store.recordArrayManager.recordDidChange(this.identifier);\n      }\n    }\n    setId(id) {\n      var didChange = id !== this._id;\n      this._id = id;\n      Ember.set(this, '_tag', this._tag + 1);\n      if (didChange && id !== null) {\n        this.store.setRecordId(this.modelName, id, this.clientId);\n        // internal set of ID to get it to RecordData from DS.Model\n        if (this._recordData.__setId) {\n          this._recordData.__setId(id);\n        }\n      }\n      if (didChange && this.hasRecord) {\n        {\n          this.notifyPropertyChange('id');\n        }\n      }\n    }\n    didError(error) {\n      {\n        this.error = error;\n        this.isError = true;\n        if (this.hasRecord) {\n          this._record.setProperties({\n            isError: true,\n            adapterError: error\n          });\n        }\n      }\n    }\n    didCleanError() {\n      {\n        this.error = null;\n        this.isError = false;\n        if (this.hasRecord) {\n          this._record.setProperties({\n            isError: false,\n            adapterError: null\n          });\n        }\n      }\n    }\n\n    /*\n      If the adapter did not return a hash in response to a commit,\n      merge the changed attributes and relationships into the existing\n      saved data.\n       @method adapterDidCommit\n    */\n    adapterDidCommit(data) {\n      this.didCleanError();\n      var changedKeys = this._recordData.didCommit(data);\n      this.send('didCommit');\n      this.updateRecordArrays();\n      if (!data) {\n        return;\n      }\n      {\n        this._record._notifyProperties(changedKeys);\n      }\n    }\n    addErrorMessageToAttribute(attribute, message) {\n      Ember.get(this.getRecord(), 'errors')._add(attribute, message);\n    }\n    removeErrorMessageFromAttribute(attribute) {\n      Ember.get(this.getRecord(), 'errors')._remove(attribute);\n    }\n    clearErrorMessages() {\n      Ember.get(this.getRecord(), 'errors')._clear();\n    }\n    hasErrors() {\n      {\n        var _errors = Ember.get(this.getRecord(), 'errors');\n        return _errors.get('length') > 0;\n      }\n    }\n\n    // FOR USE DURING COMMIT PROCESS\n\n    /*\n      @method adapterDidInvalidate\n      @private\n    */\n    adapterDidInvalidate(parsedErrors, error) {\n      {\n        var _attribute;\n        for (_attribute in parsedErrors) {\n          if (hasOwnProperty.call(parsedErrors, _attribute)) {\n            this.addErrorMessageToAttribute(_attribute, parsedErrors[_attribute]);\n          }\n        }\n        this.send('becameInvalid');\n        this._recordData.commitWasRejected();\n      }\n    }\n    notifyErrorsChange() {\n      var invalidErrors;\n      if (this._recordData.getErrors) {\n        invalidErrors = this._recordData.getErrors(this.identifier) || [];\n      } else {\n        return;\n      }\n      this.notifyInvalidErrorsChange(invalidErrors);\n    }\n    notifyInvalidErrorsChange(jsonApiErrors) {\n      {\n        this.getRecord().invalidErrorsChanged(jsonApiErrors);\n      }\n    }\n\n    /*\n      @method adapterDidError\n      @private\n    */\n    adapterDidError(error) {\n      this.send('becameError');\n      this.didError(error);\n      this._recordData.commitWasRejected();\n    }\n    toString() {\n      return `<${this.modelName}:${this.id}>`;\n    }\n    referenceFor(kind, name) {\n      var reference = this.references[name];\n      if (!reference) {\n        // TODO IGOR AND DAVID REFACTOR\n        var relationship = relationshipStateFor$1(this, name);\n        if ( kind) {\n          var modelName = this.modelName;\n          ( !(!!relationship) && Ember.assert(`There is no ${kind} relationship named '${name}' on a model of modelClass '${modelName}'`, !!relationship));\n          var actualRelationshipKind = relationship.relationshipMeta.kind;\n          ( !(actualRelationshipKind === kind) && Ember.assert(`You tried to get the '${name}' relationship on a '${modelName}' via record.${kind}('${name}'), but the relationship is of kind '${actualRelationshipKind}'. Use record.${actualRelationshipKind}('${name}') instead.`, actualRelationshipKind === kind));\n        }\n        var relationshipKind = relationship.relationshipMeta.kind;\n        var identifierOrInternalModel;\n        {\n          identifierOrInternalModel = this.identifier;\n        }\n        if (relationshipKind === 'belongsTo') {\n          reference = new BelongsToReference(this.store, identifierOrInternalModel, relationship, name);\n        } else if (relationshipKind === 'hasMany') {\n          reference = new HasManyReference(this.store, identifierOrInternalModel, relationship, name);\n        }\n        this.references[name] = reference;\n      }\n      return reference;\n    }\n  }\n  {\n    // in production code, this is only accesssed in `record-array-manager`\n    // if REMOVE_RECORD_ARRAY_MANAGER_LEGACY_COMPAT is also false\n    {\n      Object.defineProperty(InternalModel.prototype, '_recordArrays', {\n        get() {\n          return recordArraysForIdentifier(this.identifier);\n        }\n      });\n    }\n  }\n  function handleCompletedRelationshipRequest(internalModel, key, relationship, value, error) {\n    delete internalModel._relationshipPromisesCache[key];\n    relationship.setShouldForceReload(false);\n    if (error) {\n      relationship.setHasFailedLoadAttempt(true);\n      var proxy = internalModel._relationshipProxyCache[key];\n      // belongsTo relationships are sometimes unloaded\n      // when a load fails, in this case we need\n      // to make sure that we aren't proxying\n      // to destroyed content\n      // for the sync belongsTo reload case there will be no proxy\n      // for the async reload case there will be no proxy if the ui\n      // has never been accessed\n      if (proxy && relationship.kind === 'belongsTo') {\n        if (proxy.content && proxy.content.isDestroying) {\n          proxy.set('content', null);\n        }\n      }\n      throw error;\n    }\n    relationship.setHasFailedLoadAttempt(false);\n    // only set to not stale if no error is thrown\n    relationship.setRelationshipIsStale(false);\n    return value;\n  }\n  function assertRecordsPassedToHasMany(records) {\n    // TODO only allow native arrays\n    ( !(Array.isArray(records) || Ember.Array.detect(records)) && Ember.assert(`You must pass an array of records to set a hasMany relationship`, Array.isArray(records) || Ember.Array.detect(records)));\n    ( !(function () {\n      return Ember.A(records).every(record => hasOwnProperty.call(record, '_internalModel') === true);\n    }()) && Ember.assert(`All elements of a hasMany relationship must be instances of Model, you passed ${Ember.inspect(records)}`, function () {\n      return Ember.A(records).every(record => hasOwnProperty.call(record, '_internalModel') === true);\n    }()));\n  }\n  function extractRecordDatasFromRecords(records) {\n    return records.map(extractRecordDataFromRecord);\n  }\n  function extractRecordDataFromRecord(recordOrPromiseRecord) {\n    if (!recordOrPromiseRecord) {\n      return null;\n    }\n    if (recordOrPromiseRecord.then) {\n      var content = recordOrPromiseRecord.get && recordOrPromiseRecord.get('content');\n      ( !(content !== undefined) && Ember.assert('You passed in a promise that did not originate from an EmberData relationship. You can only pass promises that come from a belongsTo or hasMany relationship to the get call.', content !== undefined));\n      return content ? recordDataFor(content) : null;\n    }\n    return recordDataFor(recordOrPromiseRecord);\n  }\n\n  var AvailableShims = new WeakMap();\n  function getShimClass(store, modelName) {\n    var shims = AvailableShims.get(store);\n    if (shims === undefined) {\n      shims = Object.create(null);\n      AvailableShims.set(store, shims);\n    }\n    var shim = shims[modelName];\n    if (shim === undefined) {\n      shim = shims[modelName] = new ShimModelClass(store, modelName);\n    }\n    return shim;\n  }\n\n  // Mimics the static apis of DSModel\n  class ShimModelClass {\n    // TODO Maybe expose the class here?\n    constructor(__store, modelName) {\n      this.__store = __store;\n      this.modelName = modelName;\n    }\n    get fields() {\n      var attrs = this.__store._attributesDefinitionFor(this.modelName);\n      var relationships = this.__store._relationshipsDefinitionFor(this.modelName);\n      var fields = new Map();\n      Object.keys(attrs).forEach(key => fields.set(key, 'attribute'));\n      Object.keys(relationships).forEach(key => fields.set(key, relationships[key].kind));\n      return fields;\n    }\n    get attributes() {\n      var attrs = this.__store._attributesDefinitionFor(this.modelName);\n      return new Map(Object.entries(attrs));\n    }\n    get relationshipsByName() {\n      var relationships = this.__store._relationshipsDefinitionFor(this.modelName);\n      return new Map(Object.entries(relationships));\n    }\n    eachAttribute(callback, binding) {\n      var attrDefs = this.__store._attributesDefinitionFor(this.modelName);\n      Object.keys(attrDefs).forEach(key => {\n        callback.call(binding, key, attrDefs[key]);\n      });\n    }\n    eachRelationship(callback, binding) {\n      var relationshipDefs = this.__store._relationshipsDefinitionFor(this.modelName);\n      Object.keys(relationshipDefs).forEach(key => {\n        callback.call(binding, key, relationshipDefs[key]);\n      });\n    }\n    eachTransformedAttribute(callback, binding) {\n      var relationshipDefs = this.__store._relationshipsDefinitionFor(this.modelName);\n      Object.keys(relationshipDefs).forEach(key => {\n        if (relationshipDefs[key].type) {\n          callback.call(binding, key, relationshipDefs[key]);\n        }\n      });\n    }\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  function payloadIsNotBlank(adapterPayload) {\n    if (Array.isArray(adapterPayload)) {\n      return true;\n    } else {\n      return Object.keys(adapterPayload || {}).length;\n    }\n  }\n  function _find(adapter, store, modelClass, id, internalModel, options) {\n    var snapshot = internalModel.createSnapshot(options);\n    var {\n      modelName\n    } = internalModel;\n    var promise = Ember.RSVP.Promise.resolve().then(() => {\n      return adapter.findRecord(store, modelClass, id, snapshot);\n    });\n    var label = `DS: Handle Adapter#findRecord of '${modelName}' with id: '${id}'`;\n    var {\n      identifier\n    } = internalModel;\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      ( !(payloadIsNotBlank(adapterPayload)) && Ember.assert(`You made a 'findRecord' request for a '${modelName}' with id '${id}', but the adapter's response did not have any data`, payloadIsNotBlank(adapterPayload)));\n      var serializer = store.serializerFor(modelName);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, id, 'findRecord');\n      ( !(!Array.isArray(payload.data)) && Ember.assert(`Ember Data expected the primary data returned from a 'findRecord' response to be an object but instead it found an array.`, !Array.isArray(payload.data)));\n      ( Ember.warn(`You requested a record of type '${modelName}' with id '${id}' but the adapter returned a payload with primary data having an id of '${payload.data.id}'. Use 'store.findRecord()' when the requested id is the same as the one returned by the adapter. In other cases use 'store.queryRecord()' instead.`, coerceId(payload.data.id) === coerceId(id), {\n        id: 'ds.store.findRecord.id-mismatch'\n      })); // ensure that regardless of id returned we assign to the correct record\n      payload.data.lid = identifier.lid;\n      return store._push(payload);\n    }, error => {\n      internalModel.notFound();\n      if (internalModel.isEmpty()) {\n        internalModel.unloadRecord();\n      }\n      throw error;\n    }, `DS: Extract payload of '${modelName}'`);\n  }\n  function _findMany(adapter, store, modelName, ids, internalModels, optionsMap) {\n    var snapshots = Ember.A(internalModels.map(internalModel => internalModel.createSnapshot(optionsMap.get(internalModel))));\n    var modelClass = store.modelFor(modelName); // `adapter.findMany` gets the modelClass still\n    var promise = adapter.findMany(store, modelClass, ids, snapshots);\n    var label = `DS: Handle Adapter#findMany of '${modelName}'`;\n    if (promise === undefined) {\n      throw new Error('adapter.findMany returned undefined, this was very likely a mistake');\n    }\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      ( !(payloadIsNotBlank(adapterPayload)) && Ember.assert(`You made a 'findMany' request for '${modelName}' records with ids '[${ids}]', but the adapter's response did not have any data`, payloadIsNotBlank(adapterPayload)));\n      var serializer = store.serializerFor(modelName);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'findMany');\n      return store._push(payload);\n    }, null, `DS: Extract payload of ${modelName}`);\n  }\n  function iterateData(data, fn) {\n    if (Array.isArray(data)) {\n      return data.map(fn);\n    } else {\n      return fn(data);\n    }\n  }\n\n  // sync\n  // iterate over records in payload.data\n  // for each record\n  //   assert that record.relationships[inverse] is either undefined (so we can fix it)\n  //     or provide a data: {id, type} that matches the record that requested it\n  //   return the relationship data for the parent\n  function syncRelationshipDataFromLink(store, payload, parentInternalModel, relationship) {\n    // ensure the right hand side (incoming payload) points to the parent record that\n    // requested this relationship\n    var relationshipData = iterateData(payload.data, (data, index) => {\n      var {\n        id,\n        type\n      } = data;\n      ensureRelationshipIsSetToParent(data, parentInternalModel, store, relationship, index);\n      return {\n        id,\n        type\n      };\n    });\n\n    // now, push the left hand side (the parent record) to ensure things are in sync, since\n    // the payload will be pushed with store._push\n    var parentPayload = {\n      id: parentInternalModel.id,\n      type: parentInternalModel.modelName,\n      relationships: {\n        [relationship.key]: {\n          meta: payload.meta,\n          links: payload.links,\n          data: relationshipData\n        }\n      }\n    };\n    if (!Array.isArray(payload.included)) {\n      payload.included = [];\n    }\n    payload.included.push(parentPayload);\n    return payload;\n  }\n  function ensureRelationshipIsSetToParent(payload, parentInternalModel, store, parentRelationship, index) {\n    var {\n      id,\n      type\n    } = payload;\n    if (!payload.relationships) {\n      payload.relationships = {};\n    }\n    var {\n      relationships\n    } = payload;\n    var inverse = getInverse(store, parentInternalModel, parentRelationship, type);\n    if (inverse) {\n      var {\n        inverseKey,\n        kind\n      } = inverse;\n      var relationshipData = relationships[inverseKey] && relationships[inverseKey].data;\n      if ( typeof relationshipData !== 'undefined' && !relationshipDataPointsToParent(relationshipData, parentInternalModel)) {\n        var inspect = function inspect(thing) {\n          return `'${JSON.stringify(thing)}'`;\n        };\n        var quotedType = inspect(type);\n        var quotedInverse = inspect(inverseKey);\n        var expected = inspect({\n          id: parentInternalModel.id,\n          type: parentInternalModel.modelName\n        });\n        var expectedModel = `${parentInternalModel.modelName}:${parentInternalModel.id}`;\n        var got = inspect(relationshipData);\n        var prefix = typeof index === 'number' ? `data[${index}]` : `data`;\n        var path = `${prefix}.relationships.${inverseKey}.data`;\n        var other = relationshipData ? `<${relationshipData.type}:${relationshipData.id}>` : null;\n        var relationshipFetched = `${expectedModel}.${parentRelationship.kind}(\"${parentRelationship.name}\")`;\n        var includedRecord = `<${type}:${id}>`;\n        var message = [`Encountered mismatched relationship: Ember Data expected ${path} in the payload from ${relationshipFetched} to include ${expected} but got ${got} instead.\\n`, `The ${includedRecord} record loaded at ${prefix} in the payload specified ${other} as its ${quotedInverse}, but should have specified ${expectedModel} (the record the relationship is being loaded from) as its ${quotedInverse} instead.`, `This could mean that the response for ${relationshipFetched} may have accidentally returned ${quotedType} records that aren't related to ${expectedModel} and could be related to a different ${parentInternalModel.modelName} record instead.`, `Ember Data has corrected the ${includedRecord} record's ${quotedInverse} relationship to ${expectedModel} so that ${relationshipFetched} will include ${includedRecord}.`, `Please update the response from the server or change your serializer to either ensure that the response for only includes ${quotedType} records that specify ${expectedModel} as their ${quotedInverse}, or omit the ${quotedInverse} relationship from the response.`].join('\\n');\n\n        // this should eventually throw instead of deprecating.\n        ( Ember.deprecate(message + '\\n', false, {\n          id: 'mismatched-inverse-relationship-data-from-payload',\n          until: '3.8'\n        }));\n      }\n      if (kind !== 'hasMany' || typeof relationshipData !== 'undefined') {\n        relationships[inverseKey] = relationships[inverseKey] || {};\n        relationships[inverseKey].data = fixRelationshipData(relationshipData, kind, parentInternalModel);\n      }\n    }\n  }\n  function getInverse(store, parentInternalModel, parentRelationship, type) {\n    return recordDataFindInverseRelationshipInfo(store, parentInternalModel, parentRelationship, type);\n  }\n  function recordDataFindInverseRelationshipInfo({\n    _storeWrapper\n  }, parentInternalModel, parentRelationship, type) {\n    var {\n      name: lhs_relationshipName\n    } = parentRelationship;\n    var {\n      modelName\n    } = parentInternalModel;\n    var inverseKey = _storeWrapper.inverseForRelationship(modelName, lhs_relationshipName);\n    if (inverseKey) {\n      var {\n        meta: {\n          kind\n        }\n      } = _storeWrapper.relationshipsDefinitionFor(type)[inverseKey];\n      return {\n        inverseKey,\n        kind\n      };\n    }\n  }\n  function relationshipDataPointsToParent(relationshipData, internalModel) {\n    if (relationshipData === null) {\n      return false;\n    }\n    if (Array.isArray(relationshipData)) {\n      if (relationshipData.length === 0) {\n        return false;\n      }\n      for (var i = 0; i < relationshipData.length; i++) {\n        var entry = relationshipData[i];\n        if (validateRelationshipEntry(entry, internalModel)) {\n          return true;\n        }\n      }\n    } else {\n      return validateRelationshipEntry(relationshipData, internalModel);\n    }\n    return false;\n  }\n  function fixRelationshipData(relationshipData, relationshipKind, {\n    id,\n    modelName\n  }) {\n    var parentRelationshipData = {\n      id,\n      type: modelName\n    };\n    var payload;\n    if (relationshipKind === 'hasMany') {\n      payload = relationshipData || [];\n      payload.push(parentRelationshipData);\n    } else {\n      payload = relationshipData || {};\n      Ember.assign(payload, parentRelationshipData);\n    }\n    return payload;\n  }\n  function validateRelationshipEntry({\n    id\n  }, {\n    id: parentModelID\n  }) {\n    return id && id.toString() === parentModelID;\n  }\n  function _findHasMany(adapter, store, internalModel, link, relationship, options) {\n    var snapshot = internalModel.createSnapshot(options);\n    var modelClass = store.modelFor(relationship.type);\n    var useLink = !link || typeof link === 'string';\n    var relatedLink = useLink ? link : link.href;\n    var promise = adapter.findHasMany(store, snapshot, relatedLink, relationship);\n    var label = `DS: Handle Adapter#findHasMany of '${internalModel.modelName}' : '${relationship.type}'`;\n    promise = guardDestroyedStore(promise, store, label);\n    promise = _guard(promise, _bind(_objectIsAlive, internalModel));\n    return promise.then(adapterPayload => {\n      ( !(payloadIsNotBlank(adapterPayload)) && Ember.assert(`You made a 'findHasMany' request for a ${internalModel.modelName}'s '${relationship.key}' relationship, using link '${link}' , but the adapter's response did not have any data`, payloadIsNotBlank(adapterPayload)));\n      var serializer = store.serializerFor(relationship.type);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'findHasMany');\n      payload = syncRelationshipDataFromLink(store, payload, internalModel, relationship);\n      var internalModelArray = store._push(payload);\n      return internalModelArray;\n    }, null, `DS: Extract payload of '${internalModel.modelName}' : hasMany '${relationship.type}'`);\n  }\n  function _findBelongsTo(adapter, store, internalModel, link, relationship, options) {\n    var snapshot = internalModel.createSnapshot(options);\n    var modelClass = store.modelFor(relationship.type);\n    var useLink = !link || typeof link === 'string';\n    var relatedLink = useLink ? link : link.href;\n    var promise = adapter.findBelongsTo(store, snapshot, relatedLink, relationship);\n    var label = `DS: Handle Adapter#findBelongsTo of ${internalModel.modelName} : ${relationship.type}`;\n    promise = guardDestroyedStore(promise, store, label);\n    promise = _guard(promise, _bind(_objectIsAlive, internalModel));\n    return promise.then(adapterPayload => {\n      var serializer = store.serializerFor(relationship.type);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'findBelongsTo');\n      if (!payload.data) {\n        return null;\n      }\n      payload = syncRelationshipDataFromLink(store, payload, internalModel, relationship);\n      return store._push(payload);\n    }, null, `DS: Extract payload of ${internalModel.modelName} : ${relationship.type}`);\n  }\n  function _findAll(adapter, store, modelName, options) {\n    var modelClass = store.modelFor(modelName); // adapter.findAll depends on the class\n    var recordArray = store.peekAll(modelName);\n    var snapshotArray = recordArray._createSnapshot(options);\n    var promise = Ember.RSVP.Promise.resolve().then(() => adapter.findAll(store, modelClass, null, snapshotArray));\n    var label = 'DS: Handle Adapter#findAll of ' + modelClass;\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      ( !(payloadIsNotBlank(adapterPayload)) && Ember.assert(`You made a 'findAll' request for '${modelName}' records, but the adapter's response did not have any data`, payloadIsNotBlank(adapterPayload)));\n      var serializer = store.serializerFor(modelName);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'findAll');\n      store._push(payload);\n      store._didUpdateAll(modelName);\n      return recordArray;\n    }, null, 'DS: Extract payload of findAll ${modelName}');\n  }\n  function _query(adapter, store, modelName, query, recordArray, options) {\n    var modelClass = store.modelFor(modelName); // adapter.query needs the class\n\n    recordArray = recordArray || store.recordArrayManager.createAdapterPopulatedRecordArray(modelName, query);\n    var promise = Ember.RSVP.Promise.resolve().then(() => adapter.query(store, modelClass, query, recordArray, options));\n    var label = `DS: Handle Adapter#query of ${modelName}`;\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      var serializer = store.serializerFor(modelName);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'query');\n      var internalModels = store._push(payload);\n      ( !(Array.isArray(internalModels)) && Ember.assert('The response to store.query is expected to be an array but it was a single record. Please wrap your response in an array or use `store.queryRecord` to query for a single record.', Array.isArray(internalModels)));\n      {\n        var identifiers = internalModels.map(im => im.identifier);\n        if (recordArray) {\n          recordArray._setIdentifiers(identifiers, payload);\n        } else {\n          recordArray = store.recordArrayManager.createAdapterPopulatedRecordArray(modelName, query, identifiers, payload);\n        }\n      }\n      return recordArray;\n    }, null, `DS: Extract payload of query ${modelName}`);\n  }\n  function _queryRecord(adapter, store, modelName, query, options) {\n    var modelClass = store.modelFor(modelName); // adapter.queryRecord needs the class\n    var promise = Ember.RSVP.Promise.resolve().then(() => adapter.queryRecord(store, modelClass, query, options));\n    var label = `DS: Handle Adapter#queryRecord of ${modelName}`;\n    promise = guardDestroyedStore(promise, store, label);\n    return promise.then(adapterPayload => {\n      var serializer = store.serializerFor(modelName);\n      var payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, null, 'queryRecord');\n      ( !(!Array.isArray(payload.data)) && Ember.assert(`Expected the primary data returned by the serializer for a 'queryRecord' response to be a single object or null but instead it was an array.`, !Array.isArray(payload.data), {\n        id: 'ds.store.queryRecord-array-response'\n      }));\n      return store._push(payload);\n    }, null, `DS: Extract payload of queryRecord ${modelName}`);\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   * Use this brand to assign a string key to an interface\n   * for mapping the interface to a tightly coupled internal\n   * class implementation.\n   *\n   * This allows us to expose the interface publicly but\n   * seamlessly upgrade these interfaces for our own use\n   * internally when internal methods and properties are\n   * needed.\n   *\n   * @internal\n   */\n\n  var BRAND_SYMBOL = symbol('DEBUG-ts-brand');\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n   * Maps public interfaces to internal class implementations\n   *\n   * @internal\n   */\n\n  /**\n   * Casts a public interface to the matching internal class implementation\n   *\n   * @internal\n   */\n  function upgradeForInternal(external) {\n    return external;\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  class RecordDataStoreWrapper {\n    constructor(_store) {\n      this._store = _store;\n      this[BRAND_SYMBOL] = void 0;\n      this._willUpdateManyArrays = void 0;\n      this._pendingManyArrayUpdates = void 0;\n      this._willUpdateManyArrays = false;\n      this._pendingManyArrayUpdates = [];\n    }\n    get identifierCache() {\n      return identifierCacheFor(this._store);\n    }\n\n    /**\n     * Exists so that DefaultRecordData can check for model types\n     * in DEBUG for relationships. Should be refactored away.\n     *\n     * @internal\n     */\n    _hasModelFor(type) {\n      return this._store._hasModelFor(type);\n    }\n\n    /**\n     * @internal\n     */\n    _scheduleManyArrayUpdate(identifier, key) {\n      var pending = this._pendingManyArrayUpdates = this._pendingManyArrayUpdates || [];\n      pending.push(identifier, key);\n      if (this._willUpdateManyArrays === true) {\n        return;\n      }\n      this._willUpdateManyArrays = true;\n      var backburner = this._store._backburner;\n      backburner.join(() => {\n        backburner.schedule('syncRelationships', this, this._flushPendingManyArrayUpdates);\n      });\n    }\n    notifyErrorsChange(type, id, lid) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (internalModel) {\n        internalModel.notifyErrorsChange();\n      }\n    }\n    _flushPendingManyArrayUpdates() {\n      if (this._willUpdateManyArrays === false) {\n        return;\n      }\n      var pending = this._pendingManyArrayUpdates;\n      this._pendingManyArrayUpdates = [];\n      this._willUpdateManyArrays = false;\n      var factory = internalModelFactoryFor(this._store);\n      for (var i = 0; i < pending.length; i += 2) {\n        var identifier = pending[i];\n        var _key = pending[i + 1];\n        var internalModel = factory.peek(identifier);\n        if (internalModel) {\n          internalModel.notifyHasManyChange(_key);\n        }\n      }\n    }\n    attributesDefinitionFor(type) {\n      return this._store._attributesDefinitionFor(type);\n    }\n    relationshipsDefinitionFor(type) {\n      return this._store._relationshipsDefinitionFor(type);\n    }\n    inverseForRelationship(type, key) {\n      var modelClass = this._store.modelFor(type);\n      var definition = upgradeForInternal(this.relationshipsDefinitionFor(type)[key]);\n      {\n        return definition._inverseKey(this._store, modelClass);\n      }\n    }\n    inverseIsAsyncForRelationship(type, key) {\n      var modelClass = this._store.modelFor(type);\n      var definition = upgradeForInternal(this.relationshipsDefinitionFor(type)[key]);\n      {\n        return definition._inverseIsAsync(this._store, modelClass);\n      }\n    }\n    notifyPropertyChange(type, id, lid, key) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (internalModel) {\n        internalModel.notifyPropertyChange(key);\n      }\n    }\n    notifyHasManyChange(type, id, lid, key) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      this._scheduleManyArrayUpdate(identifier, key);\n    }\n    notifyBelongsToChange(type, id, lid, key) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (internalModel) {\n        internalModel.notifyBelongsToChange(key);\n      }\n    }\n    notifyStateChange(type, id, lid, key) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (internalModel) {\n        internalModel.notifyStateChange(key);\n      }\n    }\n    recordDataFor(type, id, lid) {\n      var identifier;\n      var isCreate = false;\n      if (!id && !lid) {\n        isCreate = true;\n        identifier = {\n          type\n        };\n      } else {\n        var resource = constructResource(type, id, lid);\n        identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      }\n      return this._store.recordDataFor(identifier, isCreate);\n    }\n    setRecordId(type, id, lid) {\n      this._store.setRecordId(type, id, lid);\n    }\n    isRecordInUse(type, id, lid) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (!internalModel) {\n        return false;\n      }\n      return internalModel.isRecordInUse();\n    }\n    disconnectRecord(type, id, lid) {\n      var resource = constructResource(type, id, lid);\n      var identifier = identifierCacheFor(this._store).getOrCreateRecordIdentifier(resource);\n      var internalModel = internalModelFactoryFor(this._store).peek(identifier);\n      if (internalModel) {\n        internalModel.destroyFromRecordData();\n      }\n    }\n  }\n\n  var _RecordData;\n  var emberRun$2 = Ember.run.backburner;\n  var {\n    ENV\n  } = Ember;\n  var RECORD_REFERENCES = new WeakMap();\n  function freeze$1(obj) {\n    if (typeof Object.freeze === 'function') {\n      return Object.freeze(obj);\n    }\n    return obj;\n  }\n  function deprecateTestRegistration(factoryType, factoryName) {\n    ( Ember.deprecate(`You looked up the ${factoryType} \"${factoryName}\" but it was not found. Likely this means you are using a legacy ember-qunit moduleFor helper. Add \"needs: ['${factoryType}:${factoryName}']\", \"integration: true\", or refactor to modern syntax to resolve this deprecation.`, false, {\n      id: 'ember-data:-legacy-test-registrations',\n      until: '3.17'\n    }));\n  }\n  /**\n    The store contains all of the data for records loaded from the server.\n    It is also responsible for creating instances of `Model` that wrap\n    the individual data for a record, so that they can be bound to in your\n    Handlebars templates.\n\n    Define your application's store like this:\n\n    ```app/services/store.js\n    import Store from '@ember-data/store';\n\n    export default class MyStore extends Store {}\n    ```\n\n    Most Ember.js applications will only have a single `Store` that is\n    automatically created by their `Ember.Application`.\n\n    You can retrieve models from the store in several ways. To retrieve a record\n    for a specific id, use `Store`'s `findRecord()` method:\n\n    ```javascript\n    store.findRecord('person', 123).then(function (person) {\n    });\n    ```\n\n    By default, the store will talk to your backend using a standard\n    REST mechanism. You can customize how the store talks to your\n    backend by specifying a custom adapter:\n\n    ```app/adapters/application.js\n    import Adapter from '@ember-data/adapter';\n\n    export default class ApplicationAdapter extends Adapter {\n    }\n    ```\n\n    You can learn more about writing a custom adapter by reading the `Adapter`\n    documentation.\n\n    ### Store createRecord() vs. push() vs. pushPayload()\n\n    The store provides multiple ways to create new record objects. They have\n    some subtle differences in their use which are detailed below:\n\n    [createRecord](../classes/Store/methods/createRecord?anchor=createRecord) is used for creating new\n    records on the client side. This will return a new record in the\n    `created.uncommitted` state. In order to persist this record to the\n    backend, you will need to call `record.save()`.\n\n    [push](../classes/Store/methods/push?anchor=push) is used to notify Ember Data's store of new or\n    updated records that exist in the backend. This will return a record\n    in the `loaded.saved` state. The primary use-case for `store#push` is\n    to notify Ember Data about record updates (full or partial) that happen\n    outside of the normal adapter methods (for example\n    [SSE](http://dev.w3.org/html5/eventsource/) or [Web\n    Sockets](http://www.w3.org/TR/2009/WD-websockets-20091222/)).\n\n    [pushPayload](../classes/Store/methods/pushPayload?anchor=pushPayload) is a convenience wrapper for\n    `store#push` that will deserialize payloads if the\n    Serializer implements a `pushPayload` method.\n\n    Note: When creating a new record using any of the above methods\n    Ember Data will update `RecordArray`s such as those returned by\n    `store#peekAll()` or `store#findAll()`. This means any\n    data bindings or computed properties that depend on the RecordArray\n    will automatically be synced to include the new or updated record\n    values.\n\n    @class Store\n    @extends Ember.Service\n  */\n\n  class CoreStore extends Ember.Service {\n    /**\n      The default adapter to use to communicate to a backend server or\n      other persistence layer. This will be overridden by an application\n      adapter if present.\n       If you want to specify `app/adapters/custom.js` as a string, do:\n       ```js\n      import Store from '@ember-data/store';\n       export default Store.extend({\n        constructor() {\n          super(...arguments);\n          this.adapter = 'custom';\n        }\n      }\n      ```\n       @property adapter\n      @default '-json-api'\n      @type {String}\n    */\n\n    /**\n    This property returns the adapter, after resolving a possible\n    string key.\n     If the supplied `adapter` was a class, or a String property\n    path resolved to a class, this property will instantiate the\n    class.\n     This property is cacheable, so the same instance of a specified\n    adapter class should be used for the lifetime of the store.\n     @property defaultAdapter\n    @private\n    @return Adapter\n    */\n\n    /**\n      @method init\n      @private\n    */\n    constructor() {\n      super(...arguments);\n      /**\n       * EmberData specific backburner instance\n       */\n      this._backburner = backburner;\n      this.recordArrayManager = new RecordArrayManager$1({\n        store: this\n      });\n      this._notificationManager = void 0;\n      this._adapterCache = Object.create(null);\n      this._serializerCache = Object.create(null);\n      this._storeWrapper = new RecordDataStoreWrapper(this);\n      /*\n        Ember Data uses several specialized micro-queues for organizing\n        and coalescing similar async work.\n         These queues are currently controlled by a flush scheduled into\n        ember-data's custom backburner instance.\n        */\n      // used for coalescing record save requests\n      this._pendingSave = [];\n      // used for coalescing relationship updates\n      this._updatedRelationships = [];\n      // used for coalescing internal model updates\n      this._updatedInternalModels = [];\n      // used to keep track of all the find requests that need to be coalesced\n      this._pendingFetch = new Map();\n      this._fetchManager = void 0;\n      this._schemaDefinitionService = void 0;\n      // DEBUG-only properties\n      this._trackedAsyncRequests = void 0;\n      this.shouldAssertMethodCallsOnDestroyedStore = false;\n      this.shouldTrackAsyncRequests = false;\n      this.generateStackTracesForTrackedRequests = false;\n      this._trackAsyncRequestStart = void 0;\n      this._trackAsyncRequestEnd = void 0;\n      this.__asyncWaiter = void 0;\n      {\n        {\n          // support for legacy moduleFor style unit tests\n          // that did not include transforms in \"needs\"\n          // or which were not set to integration:true\n          // that were relying on ember-test-helpers\n          // doing an auto-registration of the transform\n          // or us doing one\n          var Mapping = {\n            date: 'DateTransform',\n            boolean: 'BooleanTransform',\n            number: 'NumberTransform',\n            string: 'StringTransform'\n          };\n          var shouldWarn = false;\n          var owner = Ember.getOwner(this);\n          Object.keys(Mapping).forEach(attributeType => {\n            var transformFactory = owner.factoryFor(`transform:${attributeType}`);\n            if (!transformFactory) {\n              // we don't deprecate this because the moduleFor style tests with the closed\n              // resolver will be deprecated on their own. When that deprecation completes\n              // we can drop this.\n              var Transform = require$1(`@ember-data/serializer/-private`)[Mapping[attributeType]];\n              owner.register(`transform:${attributeType}`, Transform);\n              shouldWarn = true;\n            }\n          });\n          if (shouldWarn) {\n            ( Ember.deprecate(`You are relying on the automatic registration of the transforms \"date\", \"number\", \"boolean\", and \"string\". Likely this means you are using a legacy ember-qunit moduleFor helper. Add \"needs: ['transform:date', 'transform:boolean', 'transform:number', 'transform:string']\", \"integration: true\", or refactor to modern syntax to resolve this deprecation.`, false, {\n              id: 'ember-data:-legacy-test-registrations',\n              until: '3.17'\n            }));\n          }\n        }\n        this.shouldAssertMethodCallsOnDestroyedStore = this.shouldAssertMethodCallsOnDestroyedStore || false;\n        if (this.shouldTrackAsyncRequests === undefined) {\n          this.shouldTrackAsyncRequests = false;\n        }\n        if (this.generateStackTracesForTrackedRequests === undefined) {\n          this.generateStackTracesForTrackedRequests = false;\n        }\n        this._trackedAsyncRequests = [];\n        this._trackAsyncRequestStart = label => {\n          var trace = 'set `store.generateStackTracesForTrackedRequests = true;` to get a detailed trace for where this request originated';\n          if (this.generateStackTracesForTrackedRequests) {\n            try {\n              throw new Error(`EmberData TrackedRequest: ${label}`);\n            } catch (e) {\n              trace = e;\n            }\n          }\n          var token = freeze$1({\n            label,\n            trace\n          });\n          this._trackedAsyncRequests.push(token);\n          return token;\n        };\n        this._trackAsyncRequestEnd = token => {\n          var index = this._trackedAsyncRequests.indexOf(token);\n          if (index === -1) {\n            throw new Error(`Attempted to end tracking for the following request but it was not being tracked:\\n${token}`);\n          }\n          this._trackedAsyncRequests.splice(index, 1);\n        };\n        this.__asyncWaiter = () => {\n          var shouldTrack = this.shouldTrackAsyncRequests;\n          var tracked = this._trackedAsyncRequests;\n          var isSettled = tracked.length === 0;\n          return shouldTrack !== true || isSettled;\n        };\n        Ember.Test.registerWaiter(this.__asyncWaiter);\n      }\n    }\n    getRequestStateService() {\n      assertInDebug('RequestService is not available unless the feature flag is on and running on a canary build', false);\n    }\n    get identifierCache() {\n      return identifierCacheFor(this);\n    }\n    _instantiateRecord(internalModel, modelName, recordData, identifier, properties) {\n      assertInDebug('should not be here, custom model class ff error', false);\n    }\n    _internalDeleteRecord(internalModel) {\n      internalModel.deleteRecord();\n    }\n\n    // FeatureFlagged in the DSModelStore claas\n    _attributesDefinitionFor(modelName, identifier) {\n      if (identifier) {\n        return this.getSchemaDefinitionService().attributesDefinitionFor(identifier);\n      } else {\n        return this.getSchemaDefinitionService().attributesDefinitionFor(modelName);\n      }\n    }\n    _relationshipsDefinitionFor(modelName, identifier) {\n      if (identifier) {\n        return this.getSchemaDefinitionService().relationshipsDefinitionFor(identifier);\n      } else {\n        return this.getSchemaDefinitionService().relationshipsDefinitionFor(modelName);\n      }\n    }\n    registerSchemaDefinitionService(schema) {\n      this._schemaDefinitionService = schema;\n    }\n    getSchemaDefinitionService() {\n      assertInDebug('need to enable CUSTOM_MODEL_CLASS feature flag in order to access SchemaDefinitionService', false);\n    }\n\n    // TODO Double check this return value is correct\n    _relationshipMetaFor(modelName, id, key) {\n      return this._relationshipsDefinitionFor(modelName)[key];\n    }\n    modelFor(modelName) {\n      {\n        assertDestroyedStoreOnly(this, 'modelFor');\n      }\n      return getShimClass(this, modelName);\n    }\n\n    // Feature Flagged in DSModelStore\n    /*\n    Returns whether a ModelClass exists for a given modelName\n    This exists for legacy support for the RESTSerializer,\n    which due to how it must guess whether a key is a model\n    must query for whether a match exists.\n     We should investigate an RFC to make this public or removing\n    this requirement.\n     @private\n    */\n    _hasModelFor(modelName) {\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's hasModelFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      return this.getSchemaDefinitionService().doesTypeExist(modelName);\n    }\n\n    // .....................\n    // . CREATE NEW RECORD .\n    // .....................\n\n    /**\n      Create a new record in the current store. The properties passed\n      to this method are set on the newly created record.\n       To create a new instance of a `Post`:\n       ```js\n      store.createRecord('post', {\n        title: 'Ember is awesome!'\n      });\n      ```\n       To create a new instance of a `Post` that has a relationship with a `User` record:\n       ```js\n      let user = this.store.peekRecord('user', 1);\n      store.createRecord('post', {\n        title: 'Ember is awesome!',\n        user: user\n      });\n      ```\n       @method createRecord\n      @param {String} modelName\n      @param {Object} inputProperties a hash of properties to set on the\n        newly created record.\n      @return {Model} record\n    */\n    createRecord(modelName, inputProperties) {\n      {\n        assertDestroyingStore(this, 'createRecord');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's createRecord method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string')); // This is wrapped in a `run.join` so that in test environments users do not need to manually wrap\n      //   calls to `createRecord`. The run loop usage here is because we batch the joining and updating\n      //   of record-arrays via ember's run loop, not our own.\n      //\n      //   to remove this, we would need to move to a new `async` API.\n      return emberRun$2.join(() => {\n        return this._backburner.join(() => {\n          var normalizedModelName = normalizeModelName(modelName);\n          var properties = Ember.assign({}, inputProperties);\n\n          // If the passed properties do not include a primary key,\n          // give the adapter an opportunity to generate one. Typically,\n          // client-side ID generators will use something like uuid.js\n          // to avoid conflicts.\n\n          if (Ember.isNone(properties.id)) {\n            properties.id = this._generateId(normalizedModelName, properties);\n          }\n\n          // Coerce ID to a string\n          properties.id = coerceId(properties.id);\n          var factory = internalModelFactoryFor(this);\n          var internalModel = factory.build({\n            type: normalizedModelName,\n            id: properties.id\n          });\n          internalModel.loadedData();\n          // TODO this exists just to proxy `isNew` to RecordData which is weird\n          internalModel.didCreateRecord();\n          return internalModel.getRecord(properties);\n        });\n      });\n    }\n\n    /**\n      If possible, this method asks the adapter to generate an ID for\n      a newly created record.\n       @method _generateId\n      @private\n      @param {String} modelName\n      @param {Object} properties from the new record\n      @return {String} if the adapter can generate one, an ID\n    */\n    _generateId(modelName, properties) {\n      var adapter = this.adapterFor(modelName);\n      if (adapter && adapter.generateIdForRecord) {\n        return adapter.generateIdForRecord(this, modelName, properties);\n      }\n      return null;\n    }\n\n    // .................\n    // . DELETE RECORD .\n    // .................\n\n    /**\n      For symmetry, a record can be deleted via the store.\n       Example\n       ```javascript\n      let post = store.createRecord('post', {\n        title: 'Ember is awesome!'\n      });\n       store.deleteRecord(post);\n      ```\n       @method deleteRecord\n      @param {Model} record\n    */\n    deleteRecord(record) {\n      {\n        assertDestroyingStore(this, 'deleteRecord');\n      }\n      {\n        record.deleteRecord();\n      }\n    }\n\n    /**\n      For symmetry, a record can be unloaded via the store.\n      This will cause the record to be destroyed and freed up for garbage collection.\n       Example\n       ```javascript\n      store.findRecord('post', 1).then(function(post) {\n        store.unloadRecord(post);\n      });\n      ```\n       @method unloadRecord\n      @param {Model} record\n    */\n    unloadRecord(record) {\n      {\n        assertDestroyingStore(this, 'unloadRecord');\n      }\n      {\n        record.unloadRecord();\n      }\n    }\n\n    // ................\n    // . FIND RECORDS .\n    // ................\n\n    /**\n      @method find\n      @param {String} modelName\n      @param {String|Integer} id\n      @param {Object} options\n      @return {Promise} promise\n      @private\n    */\n    find(modelName, id, options) {\n      {\n        assertDestroyingStore(this, 'find');\n      }\n      // The default `model` hook in Route calls `find(modelName, id)`,\n      // that's why we have to keep this method around even though `findRecord` is\n      // the public way to get a record by modelName and id.\n      ( !(arguments.length !== 1) && Ember.assert(`Using store.find(type) has been removed. Use store.findAll(modelName) to retrieve all records for a given type.`, arguments.length !== 1));\n      ( !(!options) && Ember.assert(`Calling store.find(modelName, id, { preload: preload }) is no longer supported. Use store.findRecord(modelName, id, { preload: preload }) instead.`, !options));\n      ( !(arguments.length === 2) && Ember.assert(`You need to pass the model name and id to the store's find method`, arguments.length === 2));\n      ( !(typeof id === 'string' || typeof id === 'number') && Ember.assert(`You cannot pass '${id}' as id to the store's find method`, typeof id === 'string' || typeof id === 'number'));\n      ( !(typeof id !== 'object') && Ember.assert(`Calling store.find() with a query object is no longer supported. Use store.query() instead.`, typeof id !== 'object'));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      return this.findRecord(modelName, id);\n    }\n\n    /**\n      This method returns a record for a given type and id combination.\n       The `findRecord` method will always resolve its promise with the same\n      object for a given type and `id`.\n       The `findRecord` method will always return a **promise** that will be\n      resolved with the record.\n       Example\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id);\n        }\n      }\n      ```\n       If the record is not yet available, the store will ask the adapter's `find`\n      method to find the necessary data. If the record is already present in the\n      store, it depends on the reload behavior _when_ the returned promise\n      resolves.\n       ### Preloading\n       You can optionally `preload` specific attributes and relationships that you know of\n      by passing them via the passed `options`.\n       For example, if your Ember route looks like `/posts/1/comments/2` and your API route\n      for the comment also looks like `/posts/1/comments/2` if you want to fetch the comment\n      without fetching the post you can pass in the post to the `findRecord` call:\n       ```javascript\n      store.findRecord('comment', 2, { preload: { post: 1 } });\n      ```\n       If you have access to the post model you can also pass the model itself:\n       ```javascript\n      store.findRecord('post', 1).then(function (myPostModel) {\n        store.findRecord('comment', 2, { post: myPostModel });\n      });\n      ```\n       ### Reloading\n       The reload behavior is configured either via the passed `options` hash or\n      the result of the adapter's `shouldReloadRecord`.\n       If `{ reload: true }` is passed or `adapter.shouldReloadRecord` evaluates\n      to `true`, then the returned promise resolves once the adapter returns\n      data, regardless if the requested record is already in the store:\n       ```js\n      store.push({\n        data: {\n          id: 1,\n          type: 'post',\n          revision: 1\n        }\n      });\n       // adapter#findRecord resolves with\n      // [\n      //   {\n      //     id: 1,\n      //     type: 'post',\n      //     revision: 2\n      //   }\n      // ]\n      store.findRecord('post', 1, { reload: true }).then(function(post) {\n        post.get('revision'); // 2\n      });\n      ```\n       If no reload is indicated via the above mentioned ways, then the promise\n      immediately resolves with the cached version in the store.\n       ### Background Reloading\n       Optionally, if `adapter.shouldBackgroundReloadRecord` evaluates to `true`,\n      then a background reload is started, which updates the records' data, once\n      it is available:\n       ```js\n      // app/adapters/post.js\n      import ApplicationAdapter from \"./application\";\n       export default class PostAdapter extends ApplicationAdapter {\n        shouldReloadRecord(store, snapshot) {\n          return false;\n        },\n         shouldBackgroundReloadRecord(store, snapshot) {\n          return true;\n        }\n      });\n       // ...\n       store.push({\n        data: {\n          id: 1,\n          type: 'post',\n          revision: 1\n        }\n      });\n       let blogPost = store.findRecord('post', 1).then(function(post) {\n        post.get('revision'); // 1\n      });\n       // later, once adapter#findRecord resolved with\n      // [\n      //   {\n      //     id: 1,\n      //     type: 'post',\n      //     revision: 2\n      //   }\n      // ]\n       blogPost.get('revision'); // 2\n      ```\n       If you would like to force or prevent background reloading, you can set a\n      boolean value for `backgroundReload` in the options object for\n      `findRecord`.\n       ```app/routes/post/edit.js\n      import Route from '@ember/routing/route';\n       export default class PostEditRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { backgroundReload: false });\n        }\n      }\n      ```\n       If you pass an object on the `adapterOptions` property of the options\n      argument it will be passed to your adapter via the snapshot\n       ```app/routes/post/edit.js\n      import Route from '@ember/routing/route';\n       export default class PostEditRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, {\n            adapterOptions: { subscribe: false }\n          });\n        }\n      }\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default class PostAdapter extends MyCustomAdapter {\n        findRecord(store, type, id, snapshot) {\n          if (snapshot.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      }\n      ```\n       See [peekRecord](../classes/Store/methods/peekRecord?anchor=peekRecord) to get the cached version of a record.\n       ### Retrieving Related Model Records\n       If you use an adapter such as Ember's default\n      [`JSONAPIAdapter`](/ember-data/release/classes/JSONAPIAdapter)\n      that supports the [JSON API specification](http://jsonapi.org/) and if your server\n      endpoint supports the use of an\n      ['include' query parameter](http://jsonapi.org/format/#fetching-includes),\n      you can use `findRecord()` or `findAll()` to automatically retrieve additional records related to\n      the one you request by supplying an `include` parameter in the `options` object.\n       For example, given a `post` model that has a `hasMany` relationship with a `comment`\n      model, when we retrieve a specific post we can have the server also return that post's\n      comments in the same request:\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { include: 'comments' });\n        }\n      }\n       ```\n      In this case, the post's comments would then be available in your template as\n      `model.comments`.\n       Multiple relationships can be requested using an `include` parameter consisting of a\n      comma-separated list (without white-space) while nested relationships can be specified\n      using a dot-separated sequence of relationship names. So to request both the post's\n      comments and the authors of those comments the request would look like this:\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n       export default class PostRoute extends Route {\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { include: 'comments,comments.author' });\n        }\n      }\n      ```\n       ### Retrieving Specific Fields by Type\n       If your server endpoint supports the use of a ['fields' query parameter](https://jsonapi.org/format/#fetching-sparse-fieldsets),\n      you can use pass those fields through to your server.  At this point in time, this requires a few manual steps on your part.\n       1. Implement `buildQuery` in your adapter.\n       ```app/adapters/application.js\n      buildQuery(snapshot) {\n        let query = this._super(...arguments);\n         let { fields } = snapshot.adapterOptions;\n         if (fields) {\n          query.fields = fields;\n        }\n         return query;\n      }\n      ```\n       2. Then pass through the applicable fields to your `findRecord` request.\n       Given a `post` model with attributes body, title, publishDate and meta, you can retrieve a filtered list of attributes.\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n      export default Route.extend({\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title' } });\n        }\n      });\n      ```\n       Moreover, you can filter attributes on related models as well. If a `post` has a `belongsTo` relationship to a user,\n      just include the relationship key and attributes.\n       ```app/routes/post.js\n      import Route from '@ember/routing/route';\n      export default Route.extend({\n        model(params) {\n          return this.store.findRecord('post', params.post_id, { adapterOptions: { fields: { post: 'body,title', user: 'name,email' } });\n        }\n      });\n      ```\n       @since 1.13.0\n      @method findRecord\n      @param {String} modelName\n      @param {(String|Integer)} id\n      @param {Object} [options]\n      @param {Object} preload - optional set of attributes and relationships passed in either as IDs or as actual models\n      @return {Promise} promise\n    */\n    findRecord(modelName, id, options) {\n      {\n        assertDestroyingStore(this, 'findRecord');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's findRecord method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var type = normalizeModelName(modelName);\n      var normalizedId = ensureStringId(id);\n      var resource = constructResource(type, normalizedId);\n      var internalModel = internalModelFactoryFor(this).lookup(resource);\n      options = options || {};\n      if (!this.hasRecordForId(type, normalizedId)) {\n        return this._findByInternalModel(internalModel, options);\n      }\n      var fetchedInternalModel = this._findRecord(internalModel, options);\n      return promiseRecord(fetchedInternalModel, `DS: Store#findRecord ${type} with id: ${id}`);\n    }\n    _findRecord(internalModel, options) {\n      // Refetch if the reload option is passed\n      if (options.reload) {\n        return this._scheduleFetch(internalModel, options);\n      }\n      var snapshot = internalModel.createSnapshot(options);\n      var adapter = this.adapterFor(internalModel.modelName);\n\n      // Refetch the record if the adapter thinks the record is stale\n      if (typeof options.reload === 'undefined' && adapter.shouldReloadRecord && adapter.shouldReloadRecord(this, snapshot)) {\n        return this._scheduleFetch(internalModel, options);\n      }\n      if (options.backgroundReload === false) {\n        return Ember.RSVP.Promise.resolve(internalModel);\n      }\n\n      // Trigger the background refetch if backgroundReload option is passed\n      if (options.backgroundReload || !adapter.shouldBackgroundReloadRecord || adapter.shouldBackgroundReloadRecord(this, snapshot)) {\n        this._scheduleFetch(internalModel, options);\n      }\n\n      // Return the cached record\n      return Ember.RSVP.Promise.resolve(internalModel);\n    }\n    _findByInternalModel(internalModel, options = {}) {\n      if (options.preload) {\n        internalModel.preloadData(options.preload);\n      }\n      var fetchedInternalModel = this._findEmptyInternalModel(internalModel, options);\n      return promiseRecord(fetchedInternalModel, `DS: Store#findRecord ${internalModel.modelName} with id: ${internalModel.id}`);\n    }\n    _findEmptyInternalModel(internalModel, options) {\n      if (internalModel.isEmpty()) {\n        return this._scheduleFetch(internalModel, options);\n      }\n\n      //TODO double check about reloading\n      {\n        if (internalModel.isLoading()) {\n          return internalModel._promiseProxy;\n        }\n      }\n      return Ember.RSVP.Promise.resolve(internalModel);\n    }\n\n    /**\n      This method makes a series of requests to the adapter's `find` method\n      and returns a promise that resolves once they are all loaded.\n       @private\n      @method findByIds\n      @param {String} modelName\n      @param {Array} ids\n      @return {Promise} promise\n    */\n    findByIds(modelName, ids) {\n      {\n        assertDestroyingStore(this, 'findByIds');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's findByIds method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var promises = new Array(ids.length);\n      var normalizedModelName = normalizeModelName(modelName);\n      for (var i = 0; i < ids.length; i++) {\n        promises[i] = this.findRecord(normalizedModelName, ids[i]);\n      }\n      return promiseArray(Ember.RSVP.all(promises).then(Ember.A, null, `DS: Store#findByIds of ${normalizedModelName} complete`));\n    }\n\n    /**\n      This method is called by `findRecord` if it discovers that a particular\n      type/id pair hasn't been loaded yet to kick off a request to the\n      adapter.\n       @method _fetchRecord\n      @private\n      @param {InternalModel} internalModel model\n      @return {Promise} promise\n     */\n    _fetchRecord(internalModel, options) {\n      var modelName = internalModel.modelName;\n      var adapter = this.adapterFor(modelName);\n      ( !(adapter) && Ember.assert(`You tried to find a record but you have no adapter (for ${modelName})`, adapter));\n      ( !(typeof adapter.findRecord === 'function') && Ember.assert(`You tried to find a record but your adapter (for ${modelName}) does not implement 'findRecord'`, typeof adapter.findRecord === 'function'));\n      return _find(adapter, this, internalModel.type, internalModel.id, internalModel, options);\n    }\n    _scheduleFetchMany(internalModels, options) {\n      var fetches = new Array(internalModels.length);\n      for (var i = 0; i < internalModels.length; i++) {\n        fetches[i] = this._scheduleFetch(internalModels[i], options);\n      }\n      return Ember.RSVP.Promise.all(fetches);\n    }\n    _scheduleFetchThroughFetchManager(internalModel, options = {}) {\n      var generateStackTrace = this.generateStackTracesForTrackedRequests;\n      // TODO  remove this once we don't rely on state machine\n      internalModel.loadingData();\n      var identifier = internalModel.identifier;\n      assertIdentifierHasId(identifier);\n      var promise = this._fetchManager.scheduleFetch(identifier, options, generateStackTrace);\n      return promise.then(payload => {\n        // ensure that regardless of id returned we assign to the correct record\n        if (payload.data && !Array.isArray(payload.data)) {\n          payload.data.lid = identifier.lid;\n        }\n\n        // Returning this._push here, breaks typing but not any tests, investigate potential missing tests\n        var potentiallyNewIm = this._push(payload);\n        if (potentiallyNewIm && !Array.isArray(potentiallyNewIm)) {\n          return potentiallyNewIm;\n        } else {\n          return internalModel;\n        }\n      }, error => {\n        // TODO  remove this once we don't rely on state machine\n        internalModel.notFound();\n        if (internalModel.isEmpty()) {\n          internalModel.unloadRecord();\n        }\n        throw error;\n      });\n    }\n    _scheduleFetch(internalModel, options) {\n      {\n        if (internalModel._promiseProxy) {\n          return internalModel._promiseProxy;\n        }\n        var {\n          id,\n          modelName\n        } = internalModel;\n        var resolver = Ember.RSVP.defer(`Fetching ${modelName}' with id: ${id}`);\n        var pendingFetchItem = {\n          internalModel,\n          resolver,\n          options\n        };\n        {\n          if (this.generateStackTracesForTrackedRequests === true) {\n            var trace;\n            try {\n              throw new Error(`Trace Origin for scheduled fetch for ${modelName}:${id}.`);\n            } catch (e) {\n              trace = e;\n            }\n\n            // enable folks to discover the origin of this findRecord call when\n            // debugging. Ideally we would have a tracked queue for requests with\n            // labels or local IDs that could be used to merge this trace with\n            // the trace made available when we detect an async leak\n            pendingFetchItem.trace = trace;\n          }\n        }\n        var promise = resolver.promise;\n        internalModel.loadingData(promise);\n        if (this._pendingFetch.size === 0) {\n          emberRun$2.schedule('actions', this, this.flushAllPendingFetches);\n        }\n        var fetches = this._pendingFetch;\n        var pending = fetches.get(modelName);\n        if (pending === undefined) {\n          pending = [];\n          fetches.set(modelName, pending);\n        }\n        pending.push(pendingFetchItem);\n        return promise;\n      }\n    }\n    flushAllPendingFetches() {\n      {\n        if (this.isDestroyed || this.isDestroying) {\n          return;\n        }\n        this._pendingFetch.forEach(this._flushPendingFetchForType, this);\n        this._pendingFetch.clear();\n      }\n    }\n    _flushPendingFetchForType(pendingFetchItems, modelName) {\n      var store = this;\n      var adapter = store.adapterFor(modelName);\n      var shouldCoalesce = !!adapter.findMany && adapter.coalesceFindRequests;\n      var totalItems = pendingFetchItems.length;\n      var internalModels = new Array(totalItems);\n      var seeking = Object.create(null);\n      var optionsMap = new WeakMap();\n      for (var _i = 0; _i < totalItems; _i++) {\n        var pendingItem = pendingFetchItems[_i];\n        var _internalModel = pendingItem.internalModel;\n        internalModels[_i] = _internalModel;\n        optionsMap.set(_internalModel, pendingItem.options);\n        // We can remove this \"not null\" cast once we have enough typing\n        // to know we are only dealing with ExistingResourceIdentifierObjects\n        seeking[_internalModel.id] = pendingItem;\n      }\n      function _fetchRecord(recordResolverPair) {\n        var recordFetch = store._fetchRecord(recordResolverPair.internalModel, recordResolverPair.options);\n        recordResolverPair.resolver.resolve(recordFetch);\n      }\n      function handleFoundRecords(foundInternalModels, expectedInternalModels) {\n        // resolve found records\n        var found = Object.create(null);\n        for (var _i2 = 0, _l = foundInternalModels.length; _i2 < _l; _i2++) {\n          var _internalModel2 = foundInternalModels[_i2];\n\n          // We can remove this \"not null\" cast once we have enough typing\n          // to know we are only dealing with ExistingResourceIdentifierObjects\n          var _pair = seeking[_internalModel2.id];\n          found[_internalModel2.id] = _internalModel2;\n          if (_pair) {\n            var resolver = _pair.resolver;\n            resolver.resolve(_internalModel2);\n          }\n        }\n\n        // reject missing records\n        var missingInternalModels = [];\n        for (var _i3 = 0, _l2 = expectedInternalModels.length; _i3 < _l2; _i3++) {\n          var _internalModel3 = expectedInternalModels[_i3];\n\n          // We can remove this \"not null\" cast once we have enough typing\n          // to know we are only dealing with ExistingResourceIdentifierObjects\n          if (!found[_internalModel3.id]) {\n            missingInternalModels.push(_internalModel3);\n          }\n        }\n        if (missingInternalModels.length) {\n          ( Ember.warn('Ember Data expected to find records with the following ids in the adapter response but they were missing: [ \"' + missingInternalModels.map(r => r.id).join('\", \"') + '\" ]', false, {\n            id: 'ds.store.missing-records-from-adapter'\n          }));\n          rejectInternalModels(missingInternalModels);\n        }\n      }\n      function rejectInternalModels(internalModels, error) {\n        for (var _i4 = 0, _l3 = internalModels.length; _i4 < _l3; _i4++) {\n          var _internalModel4 = internalModels[_i4];\n\n          // We can remove this \"not null\" cast once we have enough typing\n          // to know we are only dealing with ExistingResourceIdentifierObjects\n          var _pair2 = seeking[_internalModel4.id];\n          if (_pair2) {\n            _pair2.resolver.reject(error || new Error(`Expected: '${_internalModel4}' to be present in the adapter provided payload, but it was not found.`));\n          }\n        }\n      }\n      if (shouldCoalesce) {\n        // TODO: Improve records => snapshots => records => snapshots\n        //\n        // We want to provide records to all store methods and snapshots to all\n        // adapter methods. To make sure we're doing that we're providing an array\n        // of snapshots to adapter.groupRecordsForFindMany(), which in turn will\n        // return grouped snapshots instead of grouped records.\n        //\n        // But since the _findMany() finder is a store method we need to get the\n        // records from the grouped snapshots even though the _findMany() finder\n        // will once again convert the records to snapshots for adapter.findMany()\n        var snapshots = new Array(totalItems);\n        for (var _i5 = 0; _i5 < totalItems; _i5++) {\n          snapshots[_i5] = internalModels[_i5].createSnapshot(optionsMap.get(internalModel));\n        }\n        var groups;\n        if (adapter.groupRecordsForFindMany) {\n          groups = adapter.groupRecordsForFindMany(this, snapshots);\n        } else {\n          groups = [snapshots];\n        }\n        for (var i = 0, l = groups.length; i < l; i++) {\n          var group = groups[i];\n          var totalInGroup = groups[i].length;\n          var ids = new Array(totalInGroup);\n          var groupedInternalModels = new Array(totalInGroup);\n          for (var j = 0; j < totalInGroup; j++) {\n            var internalModel = group[j]._internalModel;\n            groupedInternalModels[j] = internalModel;\n            ids[j] = internalModel.id;\n          }\n          if (totalInGroup > 1) {\n            (function (groupedInternalModels) {\n              _findMany(adapter, store, modelName, ids, groupedInternalModels, optionsMap).then(function (foundInternalModels) {\n                handleFoundRecords(foundInternalModels, groupedInternalModels);\n              }).catch(function (error) {\n                rejectInternalModels(groupedInternalModels, error);\n              });\n            })(groupedInternalModels);\n          } else if (ids.length === 1) {\n            var pair = seeking[groupedInternalModels[0].id];\n            _fetchRecord(pair);\n          } else {\n            ( Ember.assert(\"You cannot return an empty array from adapter's method groupRecordsForFindMany\", false));\n          }\n        }\n      } else {\n        for (var _i6 = 0; _i6 < totalItems; _i6++) {\n          _fetchRecord(pendingFetchItems[_i6]);\n        }\n      }\n    }\n\n    /**\n      Get the reference for the specified record.\n       Example\n       ```javascript\n      let userRef = store.getReference('user', 1);\n       // check if the user is loaded\n      let isLoaded = userRef.value() !== null;\n       // get the record of the reference (null if not yet available)\n      let user = userRef.value();\n       // get the identifier of the reference\n      if (userRef.remoteType() === 'id') {\n      let id = userRef.id();\n      }\n       // load user (via store.find)\n      userRef.load().then(...)\n       // or trigger a reload\n      userRef.reload().then(...)\n       // provide data for reference\n      userRef.push({ id: 1, username: '@user' }).then(function(user) {\n        userRef.value() === user;\n      });\n      ```\n       @method getReference\n      @param {String} modelName\n      @param {String|Integer} id\n      @since 2.5.0\n      @return {RecordReference}\n    */\n    getReference(modelName, id) {\n      {\n        assertDestroyingStore(this, 'getReference');\n      }\n      var type = normalizeModelName(modelName);\n      var normalizedId = ensureStringId(id);\n      var resource = constructResource(type, normalizedId);\n      {\n        var _identifier3 = identifierCacheFor(this).getOrCreateRecordIdentifier(resource);\n        if (_identifier3) {\n          if (RECORD_REFERENCES.has(_identifier3)) {\n            return RECORD_REFERENCES.get(_identifier3);\n          }\n          var reference = new RecordReference(this, _identifier3);\n          RECORD_REFERENCES.set(_identifier3, reference);\n          return reference;\n        }\n      }\n    }\n\n    /**\n      Get a record by a given type and ID without triggering a fetch.\n       This method will synchronously return the record if it is available in the store,\n      otherwise it will return `null`. A record is available if it has been fetched earlier, or\n      pushed manually into the store.\n       See [findRecord](../classes/Store/methods/findRecord?anchor=findRecord) if you would like to request this record from the backend.\n       _Note: This is a synchronous method and does not return a promise._\n       ```js\n      let post = store.peekRecord('post', 1);\n       post.get('id'); // 1\n      ```\n       @since 1.13.0\n      @method peekRecord\n      @param {String} modelName\n      @param {String|Integer} id\n      @return {Model|null} record\n    */\n    peekRecord(modelName, id) {\n      {\n        assertDestroyingStore(this, 'peekRecord');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's peekRecord method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var type = normalizeModelName(modelName);\n      var normalizedId = ensureStringId(id);\n      if (this.hasRecordForId(type, normalizedId)) {\n        var resource = constructResource(type, normalizedId);\n        return internalModelFactoryFor(this).lookup(resource).getRecord();\n      } else {\n        return null;\n      }\n    }\n\n    /**\n      This method is called by the record's `reload` method.\n       This method calls the adapter's `find` method, which returns a promise. When\n      **that** promise resolves, `_reloadRecord` will resolve the promise returned\n      by the record's `reload`.\n       @method _reloadRecord\n      @private\n      @param {Model} internalModel\n      @param options optional to include adapterOptions\n      @return {Promise} promise\n    */\n    _reloadRecord(internalModel, options) {\n      var {\n        id,\n        modelName\n      } = internalModel;\n      var adapter = this.adapterFor(modelName);\n      ( !(id) && Ember.assert(`You cannot reload a record without an ID`, id));\n      ( !(adapter) && Ember.assert(`You tried to reload a record but you have no adapter (for ${modelName})`, adapter));\n      ( !(typeof adapter.findRecord === 'function' || typeof adapter.find === 'function') && Ember.assert(`You tried to reload a record but your adapter does not implement 'findRecord'`, typeof adapter.findRecord === 'function' || typeof adapter.find === 'function'));\n      return this._scheduleFetch(internalModel, options);\n    }\n\n    /**\n     This method returns true if a record for a given modelName and id is already\n     loaded in the store. Use this function to know beforehand if a findRecord()\n     will result in a request or that it will be a cache hit.\n      Example\n      ```javascript\n     store.hasRecordForId('post', 1); // false\n     store.findRecord('post', 1).then(function() {\n       store.hasRecordForId('post', 1); // true\n     });\n     ```\n       @method hasRecordForId\n      @param {String} modelName\n      @param {(String|Integer)} id\n      @return {Boolean}\n    */\n    hasRecordForId(modelName, id) {\n      {\n        assertDestroyingStore(this, 'hasRecordForId');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's hasRecordForId method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var type = normalizeModelName(modelName);\n      var trueId = ensureStringId(id);\n      var resource = {\n        type,\n        id: trueId\n      };\n      var identifier = identifierCacheFor(this).peekRecordIdentifier(resource);\n      var internalModel = identifier && internalModelFactoryFor(this).peek(identifier);\n      return !!internalModel && internalModel.isLoaded();\n    }\n\n    /**\n      Returns id record for a given type and ID. If one isn't already loaded,\n      it builds a new record and leaves it in the `empty` state.\n       @method recordForId\n      @private\n      @param {String} modelName\n      @param {(String|Integer)} id\n      @return {Model} record\n    */\n    recordForId(modelName, id) {\n      {\n        assertDestroyingStore(this, 'recordForId');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's recordForId method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var resource = constructResource(modelName, ensureStringId(id));\n      return internalModelFactoryFor(this).lookup(resource).getRecord();\n    }\n\n    /**\n      @method findMany\n      @private\n      @param {Array} internalModels\n      @return {Promise} promise\n    */\n    findMany(internalModels, options) {\n      {\n        assertDestroyingStore(this, 'findMany');\n      }\n      var finds = new Array(internalModels.length);\n      for (var i = 0; i < internalModels.length; i++) {\n        finds[i] = this._findEmptyInternalModel(internalModels[i], options);\n      }\n      return Ember.RSVP.Promise.all(finds);\n    }\n\n    /**\n      If a relationship was originally populated by the adapter as a link\n      (as opposed to a list of IDs), this method is called when the\n      relationship is fetched.\n       The link (which is usually a URL) is passed through unchanged, so the\n      adapter can make whatever request it wants.\n       The usual use-case is for the server to register a URL as a link, and\n      then use that URL in the future to make a request for the relationship.\n       @method findHasMany\n      @private\n      @param {InternalModel} internalModel\n      @param {any} link\n      @param {(Relationship)} relationship\n      @return {Promise} promise\n    */\n    findHasMany(internalModel, link, relationship, options) {\n      {\n        assertDestroyingStore(this, 'findHasMany');\n      }\n      var adapter = this.adapterFor(internalModel.modelName);\n      ( !(adapter) && Ember.assert(`You tried to load a hasMany relationship but you have no adapter (for ${internalModel.modelName})`, adapter));\n      ( !(typeof adapter.findHasMany === 'function') && Ember.assert(`You tried to load a hasMany relationship from a specified 'link' in the original payload but your adapter does not implement 'findHasMany'`, typeof adapter.findHasMany === 'function'));\n      return _findHasMany(adapter, this, internalModel, link, relationship, options);\n    }\n    _findHasManyByJsonApiResource(resource, parentInternalModel, relationshipMeta, options) {\n      if (!resource) {\n        return Ember.RSVP.resolve([]);\n      }\n      var adapter = this.adapterFor(relationshipMeta.type);\n      var {\n        relationshipIsStale,\n        hasDematerializedInverse,\n        hasAnyRelationshipData,\n        relationshipIsEmpty,\n        shouldForceReload\n      } = resource._relationship;\n      var allInverseRecordsAreLoaded = areAllInverseRecordsLoaded(this, resource);\n      var shouldFindViaLink = resource.links && resource.links.related && (typeof adapter.findHasMany === 'function' || typeof resource.data === 'undefined') && (shouldForceReload || hasDematerializedInverse || relationshipIsStale || !allInverseRecordsAreLoaded && !relationshipIsEmpty);\n\n      // fetch via link\n      if (shouldFindViaLink) {\n        return this.findHasMany(parentInternalModel, resource.links.related, relationshipMeta, options);\n      }\n      var preferLocalCache = hasAnyRelationshipData && !relationshipIsEmpty;\n      var hasLocalPartialData = hasDematerializedInverse || relationshipIsEmpty && Array.isArray(resource.data) && resource.data.length > 0;\n\n      // fetch using data, pulling from local cache if possible\n      if (!shouldForceReload && !relationshipIsStale && (preferLocalCache || hasLocalPartialData)) {\n        var internalModels = resource.data.map(json => this._internalModelForResource(json));\n        return this.findMany(internalModels, options);\n      }\n      var hasData = hasAnyRelationshipData && !relationshipIsEmpty;\n\n      // fetch by data\n      if (hasData || hasLocalPartialData) {\n        var _internalModels = resource.data.map(json => this._internalModelForResource(json));\n        return this._scheduleFetchMany(_internalModels, options);\n      }\n\n      // we were explicitly told we have no data and no links.\n      //   TODO if the relationshipIsStale, should we hit the adapter anyway?\n      return Ember.RSVP.resolve([]);\n    }\n    _getHasManyByJsonApiResource(resource) {\n      var internalModels = [];\n      if (resource && resource.data) {\n        internalModels = resource.data.map(reference => this._internalModelForResource(reference));\n      }\n      return internalModels;\n    }\n\n    /**\n      @method findBelongsTo\n      @private\n      @param {InternalModel} internalModel\n      @param {any} link\n      @param {Relationship} relationship\n      @return {Promise} promise\n    */\n    findBelongsTo(internalModel, link, relationship, options) {\n      {\n        assertDestroyingStore(this, 'findBelongsTo');\n      }\n      var adapter = this.adapterFor(internalModel.modelName);\n      ( !(adapter) && Ember.assert(`You tried to load a belongsTo relationship but you have no adapter (for ${internalModel.modelName})`, adapter));\n      ( !(typeof adapter.findBelongsTo === 'function') && Ember.assert(`You tried to load a belongsTo relationship from a specified 'link' in the original payload but your adapter does not implement 'findBelongsTo'`, typeof adapter.findBelongsTo === 'function'));\n      return _findBelongsTo(adapter, this, internalModel, link, relationship, options);\n    }\n    _fetchBelongsToLinkFromResource(resource, parentInternalModel, relationshipMeta, options) {\n      if (!resource || !resource.links || !resource.links.related) {\n        // should we warn here, not sure cause its an internal method\n        return Ember.RSVP.resolve(null);\n      }\n      return this.findBelongsTo(parentInternalModel, resource.links.related, relationshipMeta, options).then(internalModel => {\n        return internalModel ? internalModel.getRecord() : null;\n      });\n    }\n    _findBelongsToByJsonApiResource(resource, parentInternalModel, relationshipMeta, options) {\n      if (!resource) {\n        return Ember.RSVP.resolve(null);\n      }\n      var internalModel = resource.data ? this._internalModelForResource(resource.data) : null;\n      var {\n        relationshipIsStale,\n        hasDematerializedInverse,\n        hasAnyRelationshipData,\n        relationshipIsEmpty,\n        shouldForceReload\n      } = resource._relationship;\n      var allInverseRecordsAreLoaded = areAllInverseRecordsLoaded(this, resource);\n      var shouldFindViaLink = resource.links && resource.links.related && (shouldForceReload || hasDematerializedInverse || relationshipIsStale || !allInverseRecordsAreLoaded && !relationshipIsEmpty);\n      if (internalModel) {\n        // short circuit if we are already loading\n        {\n          if (internalModel.isLoading()) {\n            return internalModel._promiseProxy.then(() => {\n              return internalModel.getRecord();\n            });\n          }\n        }\n      }\n\n      // fetch via link\n      if (shouldFindViaLink) {\n        return this._fetchBelongsToLinkFromResource(resource, parentInternalModel, relationshipMeta, options);\n      }\n      var preferLocalCache = hasAnyRelationshipData && allInverseRecordsAreLoaded && !relationshipIsEmpty;\n      var hasLocalPartialData = hasDematerializedInverse || relationshipIsEmpty && resource.data;\n      // null is explicit empty, undefined is \"we don't know anything\"\n      var localDataIsEmpty = resource.data === undefined || resource.data === null;\n\n      // fetch using data, pulling from local cache if possible\n      if (!shouldForceReload && !relationshipIsStale && (preferLocalCache || hasLocalPartialData)) {\n        /*\n          We have canonical data, but our local state is empty\n         */\n        if (localDataIsEmpty) {\n          return Ember.RSVP.resolve(null);\n        }\n        return this._findByInternalModel(internalModel, options);\n      }\n      var resourceIsLocal = !localDataIsEmpty && resource.data.id === null;\n      if (internalModel && resourceIsLocal) {\n        return Ember.RSVP.resolve(internalModel.getRecord());\n      }\n\n      // fetch by data\n      if (internalModel && !localDataIsEmpty) {\n        return this._scheduleFetch(internalModel, options).then(() => {\n          return internalModel.getRecord();\n        });\n      }\n\n      // we were explicitly told we have no data and no links.\n      //   TODO if the relationshipIsStale, should we hit the adapter anyway?\n      return Ember.RSVP.resolve(null);\n    }\n\n    /**\n      This method delegates a query to the adapter. This is the one place where\n      adapter-level semantics are exposed to the application.\n       Each time this method is called a new request is made through the adapter.\n       Exposing queries this way seems preferable to creating an abstract query\n      language for all server-side queries, and then require all adapters to\n      implement them.\n       ---\n       If you do something like this:\n       ```javascript\n      store.query('person', { page: 1 });\n      ```\n       The request made to the server will look something like this:\n       ```\n      GET \"/api/v1/person?page=1\"\n      ```\n       ---\n       If you do something like this:\n       ```javascript\n      store.query('person', { ids: [1, 2, 3] });\n      ```\n       The request made to the server will look something like this:\n       ```\n      GET \"/api/v1/person?ids%5B%5D=1&ids%5B%5D=2&ids%5B%5D=3\"\n      decoded: \"/api/v1/person?ids[]=1&ids[]=2&ids[]=3\"\n      ```\n       This method returns a promise, which is resolved with an\n      [`AdapterPopulatedRecordArray`](/ember-data/release/classes/AdapterPopulatedRecordArray)\n      once the server returns.\n       @since 1.13.0\n      @method query\n      @param {String} modelName\n      @param {any} query an opaque query to be used by the adapter\n      @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter.query\n      @return {Promise} promise\n    */\n    query(modelName, query, options) {\n      {\n        assertDestroyingStore(this, 'query');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's query method`, Ember.isPresent(modelName)));\n      ( !(query) && Ember.assert(`You need to pass a query hash to the store's query method`, query));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var adapterOptionsWrapper = {};\n      if (options && options.adapterOptions) {\n        adapterOptionsWrapper.adapterOptions = options.adapterOptions;\n      }\n      var normalizedModelName = normalizeModelName(modelName);\n      return this._query(normalizedModelName, query, null, adapterOptionsWrapper);\n    }\n    _query(modelName, query, array, options) {\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's query method`, Ember.isPresent(modelName)));\n      ( !(query) && Ember.assert(`You need to pass a query hash to the store's query method`, query));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var adapter = this.adapterFor(modelName);\n      ( !(adapter) && Ember.assert(`You tried to load a query but you have no adapter (for ${modelName})`, adapter));\n      ( !(typeof adapter.query === 'function') && Ember.assert(`You tried to load a query but your adapter does not implement 'query'`, typeof adapter.query === 'function'));\n      return promiseArray(_query(adapter, this, modelName, query, array, options));\n    }\n\n    /**\n      This method makes a request for one record, where the `id` is not known\n      beforehand (if the `id` is known, use [`findRecord`](../classes/Store/methods/findRecord?anchor=findRecord)\n      instead).\n       This method can be used when it is certain that the server will return a\n      single object for the primary data.\n       Each time this method is called a new request is made through the adapter.\n       Let's assume our API provides an endpoint for the currently logged in user\n      via:\n       ```\n      // GET /api/current_user\n      {\n        user: {\n          id: 1234,\n          username: 'admin'\n        }\n      }\n      ```\n       Since the specific `id` of the `user` is not known beforehand, we can use\n      `queryRecord` to get the user:\n       ```javascript\n      store.queryRecord('user', {}).then(function(user) {\n        let username = user.get('username');\n        console.log(`Currently logged in as ${username}`);\n      });\n      ```\n       The request is made through the adapters' `queryRecord`:\n       ```app/adapters/user.js\n      import Adapter from '@ember-data/adapter';\n      import $ from 'jquery';\n       export default class UserAdapter extends Adapter {\n        queryRecord(modelName, query) {\n          return $.getJSON('/api/current_user');\n        }\n      }\n      ```\n       Note: the primary use case for `store.queryRecord` is when a single record\n      is queried and the `id` is not known beforehand. In all other cases\n      `store.query` and using the first item of the array is likely the preferred\n      way:\n       ```\n      // GET /users?username=unique\n      {\n        data: [{\n          id: 1234,\n          type: 'user',\n          attributes: {\n            username: \"unique\"\n          }\n        }]\n      }\n      ```\n       ```javascript\n      store.query('user', { username: 'unique' }).then(function(users) {\n        return users.get('firstObject');\n      }).then(function(user) {\n        let id = user.get('id');\n      });\n      ```\n       This method returns a promise, which resolves with the found record.\n       If the adapter returns no data for the primary data of the payload, then\n      `queryRecord` resolves with `null`:\n       ```\n      // GET /users?username=unique\n      {\n        data: null\n      }\n      ```\n       ```javascript\n      store.queryRecord('user', { username: 'unique' }).then(function(user) {\n        console.log(user); // null\n      });\n      ```\n       @since 1.13.0\n      @method queryRecord\n      @param {String} modelName\n      @param {any} query an opaque query to be used by the adapter\n      @param {Object} options optional, may include `adapterOptions` hash which will be passed to adapter.queryRecord\n      @return {Promise} promise which resolves with the found record or `null`\n    */\n    queryRecord(modelName, query, options) {\n      {\n        assertDestroyingStore(this, 'queryRecord');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's queryRecord method`, Ember.isPresent(modelName)));\n      ( !(query) && Ember.assert(`You need to pass a query hash to the store's queryRecord method`, query));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var adapter = this.adapterFor(normalizedModelName);\n      var adapterOptionsWrapper = {};\n      if (options && options.adapterOptions) {\n        adapterOptionsWrapper.adapterOptions = options.adapterOptions;\n      }\n      ( !(adapter) && Ember.assert(`You tried to make a query but you have no adapter (for ${normalizedModelName})`, adapter));\n      ( !(typeof adapter.queryRecord === 'function') && Ember.assert(`You tried to make a query but your adapter does not implement 'queryRecord'`, typeof adapter.queryRecord === 'function'));\n      return promiseObject(_queryRecord(adapter, this, normalizedModelName, query, adapterOptionsWrapper).then(internalModel => {\n        // the promise returned by store.queryRecord is expected to resolve with\n        // an instance of Model\n        if (internalModel) {\n          return internalModel.getRecord();\n        }\n        return null;\n      }));\n    }\n\n    /**\n      `findAll` asks the adapter's `findAll` method to find the records for the\n      given type, and returns a promise which will resolve with all records of\n      this type present in the store, even if the adapter only returns a subset\n      of them.\n       ```app/routes/authors.js\n      import Route from '@ember/routing/route';\n       export default class AuthorsRoute extends Route {\n        model(params) {\n          return this.store.findAll('author');\n        }\n      }\n      ```\n       _When_ the returned promise resolves depends on the reload behavior,\n      configured via the passed `options` hash and the result of the adapter's\n      `shouldReloadAll` method.\n       ### Reloading\n       If `{ reload: true }` is passed or `adapter.shouldReloadAll` evaluates to\n      `true`, then the returned promise resolves once the adapter returns data,\n      regardless if there are already records in the store:\n       ```js\n      store.push({\n        data: {\n          id: 'first',\n          type: 'author'\n        }\n      });\n       // adapter#findAll resolves with\n      // [\n      //   {\n      //     id: 'second',\n      //     type: 'author'\n      //   }\n      // ]\n      store.findAll('author', { reload: true }).then(function(authors) {\n        authors.getEach('id'); // ['first', 'second']\n      });\n      ```\n       If no reload is indicated via the above mentioned ways, then the promise\n      immediately resolves with all the records currently loaded in the store.\n       ### Background Reloading\n       Optionally, if `adapter.shouldBackgroundReloadAll` evaluates to `true`,\n      then a background reload is started. Once this resolves, the array with\n      which the promise resolves, is updated automatically so it contains all the\n      records in the store:\n       ```app/adapters/application.js\n      import Adapter from '@ember-data/adapter';\n       export default class ApplicationAdapter extends Adapter {\n        shouldReloadAll(store, snapshotsArray) {\n          return false;\n        },\n         shouldBackgroundReloadAll(store, snapshotsArray) {\n          return true;\n        }\n      });\n       // ...\n       store.push({\n        data: {\n          id: 'first',\n          type: 'author'\n        }\n      });\n       let allAuthors;\n      store.findAll('author').then(function(authors) {\n        authors.getEach('id'); // ['first']\n         allAuthors = authors;\n      });\n       // later, once adapter#findAll resolved with\n      // [\n      //   {\n      //     id: 'second',\n      //     type: 'author'\n      //   }\n      // ]\n       allAuthors.getEach('id'); // ['first', 'second']\n      ```\n       If you would like to force or prevent background reloading, you can set a\n      boolean value for `backgroundReload` in the options object for\n      `findAll`.\n       ```app/routes/post/edit.js\n      import Route from '@ember/routing/route';\n       export default class PostEditRoute extends Route {\n        model() {\n          return this.store.findAll('post', { backgroundReload: false });\n        }\n      }\n      ```\n       If you pass an object on the `adapterOptions` property of the options\n      argument it will be passed to you adapter via the `snapshotRecordArray`\n       ```app/routes/posts.js\n      import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n        model(params) {\n          return this.store.findAll('post', {\n            adapterOptions: { subscribe: false }\n          });\n        }\n      }\n      ```\n       ```app/adapters/post.js\n      import MyCustomAdapter from './custom-adapter';\n       export default class UserAdapter extends MyCustomAdapter {\n        findAll(store, type, sinceToken, snapshotRecordArray) {\n          if (snapshotRecordArray.adapterOptions.subscribe) {\n            // ...\n          }\n          // ...\n        }\n      }\n      ```\n       See [peekAll](../classes/Store/methods/peekAll?anchor=peekAll) to get an array of current records in the\n      store, without waiting until a reload is finished.\n       ### Retrieving Related Model Records\n       If you use an adapter such as Ember's default\n      [`JSONAPIAdapter`](/ember-data/release/classes/JSONAPIAdapter)\n      that supports the [JSON API specification](http://jsonapi.org/) and if your server\n      endpoint supports the use of an\n      ['include' query parameter](http://jsonapi.org/format/#fetching-includes),\n      you can use `findAll()` to automatically retrieve additional records related to\n      those requested by supplying an `include` parameter in the `options` object.\n       For example, given a `post` model that has a `hasMany` relationship with a `comment`\n      model, when we retrieve all of the post records we can have the server also return\n      all of the posts' comments in the same request:\n       ```app/routes/posts.js\n      import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n        model() {\n          return this.store.findAll('post', { include: 'comments' });\n        }\n      }\n      ```\n      Multiple relationships can be requested using an `include` parameter consisting of a\n      comma-separated list (without white-space) while nested relationships can be specified\n      using a dot-separated sequence of relationship names. So to request both the posts'\n      comments and the authors of those comments the request would look like this:\n       ```app/routes/posts.js\n      import Route from '@ember/routing/route';\n       export default class PostsRoute extends Route {\n        model() {\n          return this.store.findAll('post', { include: 'comments,comments.author' });\n        }\n      }\n      ```\n       See [query](../classes/Store/methods/query?anchor=query) to only get a subset of records from the server.\n       @since 1.13.0\n      @method findAll\n      @param {String} modelName\n      @param {Object} options\n      @return {Promise} promise\n    */\n    findAll(modelName, options) {\n      {\n        assertDestroyingStore(this, 'findAll');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's findAll method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var fetch = this._fetchAll(normalizedModelName, this.peekAll(normalizedModelName), options);\n      return fetch;\n    }\n\n    /**\n      @method _fetchAll\n      @private\n      @param {Model} modelName\n      @param {RecordArray} array\n      @return {Promise} promise\n    */\n    _fetchAll(modelName, array, options = {}) {\n      var adapter = this.adapterFor(modelName);\n      ( !(adapter) && Ember.assert(`You tried to load all records but you have no adapter (for ${modelName})`, adapter));\n      ( !(typeof adapter.findAll === 'function') && Ember.assert(`You tried to load all records but your adapter does not implement 'findAll'`, typeof adapter.findAll === 'function'));\n      if (options.reload) {\n        Ember.set(array, 'isUpdating', true);\n        return promiseArray(_findAll(adapter, this, modelName, options));\n      }\n      var snapshotArray = array._createSnapshot(options);\n      if (options.reload !== false) {\n        if (adapter.shouldReloadAll && adapter.shouldReloadAll(this, snapshotArray) || !adapter.shouldReloadAll && snapshotArray.length === 0) {\n          Ember.set(array, 'isUpdating', true);\n          return promiseArray(_findAll(adapter, this, modelName, options));\n        }\n      }\n      if (options.backgroundReload === false) {\n        return promiseArray(Ember.RSVP.Promise.resolve(array));\n      }\n      if (options.backgroundReload || !adapter.shouldBackgroundReloadAll || adapter.shouldBackgroundReloadAll(this, snapshotArray)) {\n        Ember.set(array, 'isUpdating', true);\n        _findAll(adapter, this, modelName, options);\n      }\n      return promiseArray(Ember.RSVP.Promise.resolve(array));\n    }\n\n    /**\n      @method _didUpdateAll\n      @param {String} modelName\n      @private\n    */\n    _didUpdateAll(modelName) {\n      this.recordArrayManager._didUpdateAll(modelName);\n    }\n\n    /**\n      This method returns a filtered array that contains all of the\n      known records for a given type in the store.\n       Note that because it's just a filter, the result will contain any\n      locally created records of the type, however, it will not make a\n      request to the backend to retrieve additional records. If you\n      would like to request all the records from the backend please use\n      [store.findAll](../classes/Store/methods/findAll?anchor=findAll).\n       Also note that multiple calls to `peekAll` for a given type will always\n      return the same `RecordArray`.\n       Example\n       ```javascript\n      let localPosts = store.peekAll('post');\n      ```\n       @since 1.13.0\n      @method peekAll\n      @param {String} modelName\n      @return {RecordArray}\n    */\n    peekAll(modelName) {\n      {\n        assertDestroyingStore(this, 'peekAll');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's peekAll method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      return this.recordArrayManager.liveRecordArrayFor(normalizedModelName);\n    }\n\n    /**\n      This method unloads all records in the store.\n      It schedules unloading to happen during the next run loop.\n       Optionally you can pass a type which unload all records for a given type.\n       ```javascript\n      store.unloadAll();\n      store.unloadAll('post');\n      ```\n       @method unloadAll\n      @param {String} modelName\n    */\n    unloadAll(modelName) {\n      {\n        assertDestroyedStoreOnly(this, 'unloadAll');\n      }\n      ( !(!modelName || typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, !modelName || typeof modelName === 'string'));\n      var factory = internalModelFactoryFor(this);\n      if (modelName === undefined) {\n        factory.clear();\n      } else {\n        var normalizedModelName = normalizeModelName(modelName);\n        factory.clear(normalizedModelName);\n      }\n    }\n    filter() {\n      ( Ember.assert('The filter API has been moved to a plugin. To enable store.filter using an environment flag, or to use an alternative, you can visit the ember-data-filter addon page. https://github.com/ember-data/ember-data-filter', false));\n    }\n\n    // ..............\n    // . PERSISTING .\n    // ..............\n\n    /**\n      This method is called by `record.save`, and gets passed a\n      resolver for the promise that `record.save` returns.\n       It schedules saving to happen at the end of the run loop.\n       @method scheduleSave\n      @private\n      @param {InternalModel} internalModel\n      @param {Resolver} resolver\n      @param {Object} options\n    */\n    scheduleSave(internalModel, resolver, options) {\n      var snapshot = internalModel.createSnapshot(options);\n      if (internalModel._isRecordFullyDeleted()) {\n        resolver.resolve();\n        return resolver.promise;\n      }\n      internalModel.adapterWillCommit();\n      this._pendingSave.push({\n        snapshot: snapshot,\n        resolver: resolver\n      });\n      emberRun$2.scheduleOnce('actions', this, this.flushPendingSave);\n    }\n\n    /**\n      This method is called at the end of the run loop, and\n      flushes any records passed into `scheduleSave`\n       @method flushPendingSave\n      @private\n    */\n    flushPendingSave() {\n      var pending = this._pendingSave.slice();\n      this._pendingSave = [];\n      for (var i = 0, j = pending.length; i < j; i++) {\n        var pendingItem = pending[i];\n        var snapshot = pendingItem.snapshot;\n        var resolver = pendingItem.resolver;\n        // TODO We have to cast due to our reliance on this private property\n        // this will be refactored away once we change our pending API to be identifier based\n        var internalModel = snapshot._internalModel;\n        var adapter = this.adapterFor(internalModel.modelName);\n        var operation = void 0;\n        {\n          if (internalModel.currentState.stateName === 'root.deleted.saved') {\n            resolver.resolve();\n            continue;\n          } else if (internalModel.isNew()) {\n            operation = 'createRecord';\n          } else if (internalModel.isDeleted()) {\n            operation = 'deleteRecord';\n          } else {\n            operation = 'updateRecord';\n          }\n        }\n        resolver.resolve(_commit(adapter, this, operation, snapshot));\n      }\n    }\n\n    /**\n      This method is called once the promise returned by an\n      adapter's `createRecord`, `updateRecord` or `deleteRecord`\n      is resolved.\n       If the data provides a server-generated ID, it will\n      update the record and the store's indexes.\n       @method didSaveRecord\n      @private\n      @param {InternalModel} internalModel the in-flight internal model\n      @param {Object} data optional data (see above)\n      @param {string} op the adapter operation that was committed\n    */\n    didSaveRecord(internalModel, dataArg, op) {\n      {\n        assertDestroyingStore(this, 'didSaveRecord');\n      }\n      var data;\n      if (dataArg) {\n        data = dataArg.data;\n      }\n      if (!data) {\n        ( !(internalModel.id) && Ember.assert(`Your ${internalModel.modelName} record was saved to the server, but the response does not have an id and no id has been set client side. Records must have ids. Please update the server response to provide an id in the response or generate the id on the client side either before saving the record or while normalizing the response.`, internalModel.id));\n      }\n      var cache = identifierCacheFor(this);\n      var identifier = internalModel.identifier;\n      if (op !== 'deleteRecord' && data) {\n        cache.updateRecordIdentifier(identifier, data);\n      }\n\n      //We first make sure the primary data has been updated\n      //TODO try to move notification to the user to the end of the runloop\n      internalModel.adapterDidCommit(data);\n    }\n\n    /**\n      This method is called once the promise returned by an\n      adapter's `createRecord`, `updateRecord` or `deleteRecord`\n      is rejected with a `InvalidError`.\n       @method recordWasInvalid\n      @private\n      @param {InternalModel} internalModel\n      @param {Object} errors\n    */\n    recordWasInvalid(internalModel, parsedErrors, error) {\n      {\n        assertDestroyingStore(this, 'recordWasInvalid');\n      }\n      {\n        internalModel.adapterDidInvalidate(parsedErrors);\n      }\n    }\n\n    /**\n      This method is called once the promise returned by an\n      adapter's `createRecord`, `updateRecord` or `deleteRecord`\n      is rejected (with anything other than a `InvalidError`).\n       @method recordWasError\n      @private\n      @param {InternalModel} internalModel\n      @param {Error} error\n    */\n    recordWasError(internalModel, error) {\n      {\n        assertDestroyingStore(this, 'recordWasError');\n      }\n      internalModel.adapterDidError(error);\n    }\n\n    /**\n      Sets newly received ID from the adapter's `createRecord`, `updateRecord`\n      or `deleteRecord`.\n       @method setRecordId\n      @private\n      @param {String} modelName\n      @param {string} newId\n      @param {string} clientId\n     */\n    setRecordId(modelName, newId, clientId) {\n      {\n        assertDestroyingStore(this, 'setRecordId');\n      }\n      internalModelFactoryFor(this).setRecordId(modelName, newId, clientId);\n    }\n\n    // ................\n    // . LOADING DATA .\n    // ................\n\n    /**\n      This internal method is used by `push`.\n       @method _load\n      @private\n      @param {Object} data\n    */\n    _load(data) {\n      var resource = constructResource(normalizeModelName(data.type), ensureStringId(data.id), coerceId(data.lid));\n      var internalModel = internalModelFactoryFor(this).lookup(resource, data);\n\n      // store.push will be from empty\n      // findRecord will be from root.loading\n      // all else will be updates\n      var isLoading = internalModel.currentState.stateName === 'root.loading';\n      var isUpdate = internalModel.currentState.isEmpty === false && !isLoading;\n\n      // exclude store.push (root.empty) case\n      var identifier = internalModel.identifier;\n      if (isUpdate || isLoading) {\n        var updatedIdentifier = identifierCacheFor(this).updateRecordIdentifier(identifier, data);\n        if (updatedIdentifier !== identifier) {\n          // we encountered a merge of identifiers in which\n          // two identifiers (and likely two internalModels)\n          // existed for the same resource. Now that we have\n          // determined the correct identifier to use, make sure\n          // that we also use the correct internalModel.\n          identifier = updatedIdentifier;\n          internalModel = internalModelFactoryFor(this).lookup(identifier);\n        }\n      }\n      internalModel.setupData(data);\n      if (!isUpdate) {\n        {\n          this.recordArrayManager.recordDidChange(identifier);\n        }\n      }\n      return internalModel;\n    }\n\n    /**\n      Push some data for a given type into the store.\n       This method expects normalized [JSON API](http://jsonapi.org/) document. This means you have to follow [JSON API specification](http://jsonapi.org/format/) with few minor adjustments:\n      - record's `type` should always be in singular, dasherized form\n      - members (properties) should be camelCased\n       [Your primary data should be wrapped inside `data` property](http://jsonapi.org/format/#document-top-level):\n       ```js\n      store.push({\n        data: {\n          // primary data for single record of type `Person`\n          id: '1',\n          type: 'person',\n          attributes: {\n            firstName: 'Daniel',\n            lastName: 'Kmak'\n          }\n        }\n      });\n      ```\n       [Demo.](http://ember-twiddle.com/fb99f18cd3b4d3e2a4c7)\n       `data` property can also hold an array (of records):\n       ```js\n      store.push({\n        data: [\n          // an array of records\n          {\n            id: '1',\n            type: 'person',\n            attributes: {\n              firstName: 'Daniel',\n              lastName: 'Kmak'\n            }\n          },\n          {\n            id: '2',\n            type: 'person',\n            attributes: {\n              firstName: 'Tom',\n              lastName: 'Dale'\n            }\n          }\n        ]\n      });\n      ```\n       [Demo.](http://ember-twiddle.com/69cdbeaa3702159dc355)\n       There are some typical properties for `JSONAPI` payload:\n      * `id` - mandatory, unique record's key\n      * `type` - mandatory string which matches `model`'s dasherized name in singular form\n      * `attributes` - object which holds data for record attributes - `attr`'s declared in model\n      * `relationships` - object which must contain any of the following properties under each relationships' respective key (example path is `relationships.achievements.data`):\n        - [`links`](http://jsonapi.org/format/#document-links)\n        - [`data`](http://jsonapi.org/format/#document-resource-object-linkage) - place for primary data\n        - [`meta`](http://jsonapi.org/format/#document-meta) - object which contains meta-information about relationship\n       For this model:\n       ```app/models/person.js\n      import Model, { attr, hasMany } from '@ember-data/model';\n       export default class PersonRoute extends Route {\n        @attr('string') firstName;\n        @attr('string') lastName;\n         @hasMany('person') children;\n      }\n      ```\n       To represent the children as IDs:\n       ```js\n      {\n        data: {\n          id: '1',\n          type: 'person',\n          attributes: {\n            firstName: 'Tom',\n            lastName: 'Dale'\n          },\n          relationships: {\n            children: {\n              data: [\n                {\n                  id: '2',\n                  type: 'person'\n                },\n                {\n                  id: '3',\n                  type: 'person'\n                },\n                {\n                  id: '4',\n                  type: 'person'\n                }\n              ]\n            }\n          }\n        }\n      }\n      ```\n       [Demo.](http://ember-twiddle.com/343e1735e034091f5bde)\n       To represent the children relationship as a URL:\n       ```js\n      {\n        data: {\n          id: '1',\n          type: 'person',\n          attributes: {\n            firstName: 'Tom',\n            lastName: 'Dale'\n          },\n          relationships: {\n            children: {\n              links: {\n                related: '/people/1/children'\n              }\n            }\n          }\n        }\n      }\n      ```\n       If you're streaming data or implementing an adapter, make sure\n      that you have converted the incoming data into this form. The\n      store's [normalize](../classes/Store/methods/normalize?anchor=normalize) method is a convenience\n      helper for converting a json payload into the form Ember Data\n      expects.\n       ```js\n      store.push(store.normalize('person', data));\n      ```\n       This method can be used both to push in brand new\n      records, as well as to update existing records.\n       @method push\n      @param {Object} data\n      @return the record(s) that was created or\n        updated.\n    */\n\n    push(data) {\n      {\n        assertDestroyingStore(this, 'push');\n      }\n      var pushed = this._push(data);\n      if (Array.isArray(pushed)) {\n        var records = pushed.map(internalModel => internalModel.getRecord());\n        return records;\n      }\n      if (pushed === null) {\n        return null;\n      }\n      var record = pushed.getRecord();\n      return record;\n    }\n\n    /*\n      Push some data in the form of a json-api document into the store,\n      without creating materialized records.\n       @method _push\n      @private\n      @param {Object} jsonApiDoc\n      @return {InternalModel|Array<InternalModel>} pushed InternalModel(s)\n    */\n    _push(jsonApiDoc) {\n      {\n        assertDestroyingStore(this, '_push');\n      }\n      var internalModelOrModels = this._backburner.join(() => {\n        var included = jsonApiDoc.included;\n        var i, length;\n        if (included) {\n          for (i = 0, length = included.length; i < length; i++) {\n            this._pushInternalModel(included[i]);\n          }\n        }\n        if (Array.isArray(jsonApiDoc.data)) {\n          length = jsonApiDoc.data.length;\n          var internalModels = new Array(length);\n          for (i = 0; i < length; i++) {\n            internalModels[i] = this._pushInternalModel(jsonApiDoc.data[i]);\n          }\n          return internalModels;\n        }\n        if (jsonApiDoc.data === null) {\n          return null;\n        }\n        ( !(Ember.typeOf(jsonApiDoc.data) === 'object') && Ember.assert(`Expected an object in the 'data' property in a call to 'push' for ${jsonApiDoc.type}, but was ${Ember.typeOf(jsonApiDoc.data)}`, Ember.typeOf(jsonApiDoc.data) === 'object'));\n        return this._pushInternalModel(jsonApiDoc.data);\n      });\n\n      // this typecast is necessary because `backburner.join` is mistyped to return void\n      return internalModelOrModels;\n    }\n    _pushInternalModel(data) {\n      var modelName = data.type;\n      ( !(data.id !== null && data.id !== undefined && data.id !== '') && Ember.assert(`You must include an 'id' for ${modelName} in an object passed to 'push'`, data.id !== null && data.id !== undefined && data.id !== ''));\n      ( !(this._hasModelFor(modelName)) && Ember.assert(`You tried to push data with a type '${modelName}' but no model could be found with that name.`, this._hasModelFor(modelName)));\n      {\n        // If ENV.DS_WARN_ON_UNKNOWN_KEYS is set to true and the payload\n        // contains unknown attributes or relationships, log a warning.\n\n        if (ENV.DS_WARN_ON_UNKNOWN_KEYS) {\n          var unknownAttributes, unknownRelationships;\n          {\n            var modelClass = this.modelFor(modelName);\n            // Check unknown attributes\n            unknownAttributes = Object.keys(data.attributes || {}).filter(key => {\n              return !Ember.get(modelClass, 'fields').has(key);\n            });\n\n            // Check unknown relationships\n            unknownRelationships = Object.keys(data.relationships || {}).filter(key => {\n              return !Ember.get(modelClass, 'fields').has(key);\n            });\n          }\n          var unknownAttributesMessage = `The payload for '${modelName}' contains these unknown attributes: ${unknownAttributes}. Make sure they've been defined in your model.`;\n          ( Ember.warn(unknownAttributesMessage, unknownAttributes.length === 0, {\n            id: 'ds.store.unknown-keys-in-payload'\n          }));\n          var unknownRelationshipsMessage = `The payload for '${modelName}' contains these unknown relationships: ${unknownRelationships}. Make sure they've been defined in your model.`;\n          ( Ember.warn(unknownRelationshipsMessage, unknownRelationships.length === 0, {\n            id: 'ds.store.unknown-keys-in-payload'\n          }));\n        }\n      }\n\n      // Actually load the record into the store.\n      var internalModel = this._load(data);\n\n      //    this._setupRelationshipsForModel(internalModel, data);\n\n      return internalModel;\n    }\n\n    /**\n      Push some raw data into the store.\n       This method can be used both to push in brand new\n      records, as well as to update existing records. You\n      can push in more than one type of object at once.\n      All objects should be in the format expected by the\n      serializer.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n       export default class ApplicationSerializer extends RESTSerializer;\n      ```\n       ```js\n      let pushData = {\n        posts: [\n          { id: 1, postTitle: \"Great post\", commentIds: [2] }\n        ],\n        comments: [\n          { id: 2, commentBody: \"Insightful comment\" }\n        ]\n      }\n       store.pushPayload(pushData);\n      ```\n       By default, the data will be deserialized using a default\n      serializer (the application serializer if it exists).\n       Alternatively, `pushPayload` will accept a model type which\n      will determine which serializer will process the payload.\n       ```app/serializers/application.js\n      import RESTSerializer from '@ember-data/serializer/rest';\n        export default class ApplicationSerializer extends RESTSerializer;\n      ```\n       ```app/serializers/post.js\n      import JSONSerializer from '@ember-data/serializer/json';\n       export default JSONSerializer;\n      ```\n       ```js\n      store.pushPayload(pushData); // Will use the application serializer\n      store.pushPayload('post', pushData); // Will use the post serializer\n      ```\n       @method pushPayload\n      @param {String} modelName Optionally, a model type used to determine which serializer will be used\n      @param {Object} inputPayload\n    */\n    pushPayload(modelName, inputPayload) {\n      {\n        assertDestroyingStore(this, 'pushPayload');\n      }\n      var serializer;\n      var payload;\n      if (!inputPayload) {\n        payload = modelName;\n        serializer = this.serializerFor('application');\n        ( !(typeof serializer.pushPayload === 'function') && Ember.assert(`You cannot use 'store#pushPayload' without a modelName unless your default serializer defines 'pushPayload'`, typeof serializer.pushPayload === 'function'));\n      } else {\n        payload = inputPayload;\n        ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n        var normalizedModelName = normalizeModelName(modelName);\n        serializer = this.serializerFor(normalizedModelName);\n      }\n      ( !(serializer.pushPayload) && Ember.assert(`You must define a pushPayload method in your serializer in order to call store.pushPayload`, serializer.pushPayload));\n      serializer.pushPayload(this, payload);\n    }\n    reloadManyArray(manyArray, internalModel, key, options) {\n      return internalModel.reloadHasMany(key, options);\n    }\n    reloadBelongsTo(belongsToProxy, internalModel, key, options) {\n      return internalModel.reloadBelongsTo(key, options);\n    }\n    _internalModelForResource(resource) {\n      return internalModelFactoryFor(this).getByResource(resource);\n    }\n\n    /**\n     * TODO Only needed temporarily for test support\n     *\n     * @internal\n     */\n    _internalModelForId(type, id, lid) {\n      var resource = constructResource(type, id, lid);\n      return internalModelFactoryFor(this).lookup(resource);\n    }\n    serializeRecord(record, options) {\n      assertInDebug('serializeRecord is only available when CUSTOM_MODEL_CLASS ff is on', false);\n    }\n    saveRecord(record, options) {\n      assertInDebug('saveRecord is only available when CUSTOM_MODEL_CLASS ff is on', false);\n    }\n    relationshipReferenceFor(identifier, key) {\n      assertInDebug('relationshipReferenceFor is only available when CUSTOM_MODEL_CLASS ff is on', false);\n    }\n\n    /**\n     * @internal\n     */\n    _createRecordData(identifier) {\n      return this.createRecordDataFor(identifier.type, identifier.id, identifier.lid, this._storeWrapper);\n    }\n\n    /**\n     * Instantiation hook allowing applications or addons to configure the store\n     * to utilize a custom RecordData implementation.\n     *\n     * @param modelName\n     * @param id\n     * @param clientId\n     * @param storeWrapper\n     */\n    createRecordDataFor(modelName, id, clientId, storeWrapper) {\n      {\n        // we can't greedily use require as this causes\n        // a cycle we can't easily fix (or clearly pin point) at present.\n        //\n        // it can be reproduced in partner tests by running\n        // node ./bin/packages-for-commit.js && yarn test-external:ember-observer\n        if (_RecordData === undefined) {\n          _RecordData = require$1('@ember-data/record-data/-private').RecordData;\n        }\n        var _identifier6 = identifierCacheFor(this).getOrCreateRecordIdentifier({\n          type: modelName,\n          id,\n          lid: clientId\n        });\n        return new _RecordData(_identifier6, storeWrapper);\n      }\n    }\n\n    /**\n     * @internal\n     */\n    __recordDataFor(resource) {\n      var identifier = identifierCacheFor(this).getOrCreateRecordIdentifier(resource);\n      return this.recordDataFor(identifier, false);\n    }\n\n    /**\n     * @internal\n     */\n    recordDataFor(identifier, isCreate) {\n      var internalModel;\n      if (isCreate === true) {\n        internalModel = internalModelFactoryFor(this).build({\n          type: identifier.type,\n          id: null\n        });\n        internalModel.loadedData();\n        internalModel.didCreateRecord();\n      } else {\n        internalModel = internalModelFactoryFor(this).lookup(identifier);\n      }\n      return recordDataFor(internalModel);\n    }\n\n    /**\n      `normalize` converts a json payload into the normalized form that\n      [push](../classes/Store/methods/push?anchor=push) expects.\n       Example\n       ```js\n      socket.on('message', function(message) {\n        let modelName = message.model;\n        let data = message.data;\n        store.push(store.normalize(modelName, data));\n      });\n      ```\n       @method normalize\n      @param {String} modelName The name of the model type for this payload\n      @param {Object} payload\n      @return {Object} The normalized payload\n    */\n    normalize(modelName, payload) {\n      {\n        assertDestroyingStore(this, 'normalize');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's normalize method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${Ember.inspect(modelName)}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var serializer = this.serializerFor(normalizedModelName);\n      var model = this.modelFor(normalizedModelName);\n      ( !(serializer.normalize) && Ember.assert(`You must define a normalize method in your serializer in order to call store.normalize`, serializer.normalize));\n      return serializer.normalize(model, payload);\n    }\n    newClientId() {\n      assertInDebug(`Private API Removed`, false);\n    }\n\n    // ...............\n    // . DESTRUCTION .\n    // ...............\n\n    /**\n     * TODO remove test usage\n     *\n     * @internal\n     */\n    _internalModelsFor(modelName) {\n      return internalModelFactoryFor(this).modelMapFor(modelName);\n    }\n\n    // ......................\n    // . PER-TYPE ADAPTERS\n    // ......................\n\n    /**\n      Returns an instance of the adapter for a given type. For\n      example, `adapterFor('person')` will return an instance of\n      `App.PersonAdapter`.\n       If no `App.PersonAdapter` is found, this method will look\n      for an `App.ApplicationAdapter` (the default adapter for\n      your entire application).\n       If no `App.ApplicationAdapter` is found, it will return\n      the value of the `defaultAdapter`.\n       @method adapterFor\n      @public\n      @param {String} modelName\n      @return Adapter\n    */\n    adapterFor(modelName) {\n      {\n        assertDestroyingStore(this, 'adapterFor');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's adapterFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store.adapterFor has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var {\n        _adapterCache\n      } = this;\n      var adapter = _adapterCache[normalizedModelName];\n      if (adapter) {\n        return adapter;\n      }\n      var owner = Ember.getOwner(this);\n      adapter = owner.lookup(`adapter:${normalizedModelName}`);\n\n      // in production this is handled by the re-export\n      if ( adapter === undefined) {\n        if (normalizedModelName === '-json-api') {\n          var Adapter = require$1('@ember-data/adapter/json-api').default;\n          owner.register(`adapter:-json-api`, Adapter);\n          adapter = owner.lookup(`adapter:-json-api`);\n          deprecateTestRegistration('adapter', '-json-api');\n        }\n      }\n      if (adapter !== undefined) {\n        Ember.set(adapter, 'store', this);\n        _adapterCache[normalizedModelName] = adapter;\n        return adapter;\n      }\n\n      // no adapter found for the specific model, fallback and check for application adapter\n      adapter = _adapterCache.application || owner.lookup('adapter:application');\n      if (adapter !== undefined) {\n        Ember.set(adapter, 'store', this);\n        _adapterCache[normalizedModelName] = adapter;\n        _adapterCache.application = adapter;\n        return adapter;\n      }\n\n      // no model specific adapter or application adapter, check for an `adapter`\n      // property defined on the store\n      var adapterName = this.adapter || '-json-api';\n      adapter = adapterName ? _adapterCache[adapterName] || owner.lookup(`adapter:${adapterName}`) : undefined;\n\n      // in production this is handled by the re-export\n      if ( adapter === undefined) {\n        if (adapterName === '-json-api') {\n          var _Adapter = require$1('@ember-data/adapter/json-api').default;\n          owner.register(`adapter:-json-api`, _Adapter);\n          adapter = owner.lookup(`adapter:-json-api`);\n          deprecateTestRegistration('adapter', '-json-api');\n        }\n      }\n      if (adapter !== undefined) {\n        Ember.set(adapter, 'store', this);\n        _adapterCache[normalizedModelName] = adapter;\n        _adapterCache[adapterName] = adapter;\n        return adapter;\n      }\n\n      // final fallback, no model specific adapter, no application adapter, no\n      // `adapter` property on store: use json-api adapter\n      adapter = _adapterCache['-json-api'] || owner.lookup('adapter:-json-api');\n      ( !(adapter !== undefined) && Ember.assert(`No adapter was found for '${modelName}' and no 'application' adapter was found as a fallback.`, adapter !== undefined));\n      Ember.set(adapter, 'store', this);\n      _adapterCache[normalizedModelName] = adapter;\n      _adapterCache['-json-api'] = adapter;\n      return adapter;\n    }\n\n    // ..............................\n    // . RECORD CHANGE NOTIFICATION .\n    // ..............................\n\n    /**\n      Returns an instance of the serializer for a given type. For\n      example, `serializerFor('person')` will return an instance of\n      `App.PersonSerializer`.\n       If no `App.PersonSerializer` is found, this method will look\n      for an `App.ApplicationSerializer` (the default serializer for\n      your entire application).\n       if no `App.ApplicationSerializer` is found, it will attempt\n      to get the `defaultSerializer` from the `PersonAdapter`\n      (`adapterFor('person')`).\n       If a serializer cannot be found on the adapter, it will fall back\n      to an instance of `JSONSerializer`.\n       @method serializerFor\n      @public\n      @param {String} modelName the record to serialize\n      @return {Serializer}\n    */\n    serializerFor(modelName) {\n      {\n        assertDestroyingStore(this, 'serializerFor');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's serializerFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store.serializerFor has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var {\n        _serializerCache\n      } = this;\n      var serializer = _serializerCache[normalizedModelName];\n      if (serializer) {\n        return serializer;\n      }\n      var owner = Ember.getOwner(this);\n      serializer = owner.lookup(`serializer:${normalizedModelName}`);\n      {\n        // in production this is handled by the re-export\n        if ( serializer === undefined) {\n          if (normalizedModelName === '-json-api') {\n            var Serializer = require$1('@ember-data/serializer/json-api').default;\n            owner.register(`serializer:-json-api`, Serializer);\n            serializer = owner.lookup(`serializer:-json-api`);\n            deprecateTestRegistration('serializer', '-json-api');\n          } else if (normalizedModelName === '-rest') {\n            var _Serializer = require$1('@ember-data/serializer/rest').default;\n            owner.register(`serializer:-rest`, _Serializer);\n            serializer = owner.lookup(`serializer:-rest`);\n            deprecateTestRegistration('serializer', '-rest');\n          } else if (normalizedModelName === '-default') {\n            var _Serializer2 = require$1('@ember-data/serializer/json').default;\n            owner.register(`serializer:-default`, _Serializer2);\n            serializer = owner.lookup(`serializer:-default`);\n            serializer && deprecateTestRegistration('serializer', '-default');\n          }\n        }\n      }\n      if (serializer !== undefined) {\n        Ember.set(serializer, 'store', this);\n        _serializerCache[normalizedModelName] = serializer;\n        return serializer;\n      }\n\n      // no serializer found for the specific model, fallback and check for application serializer\n      serializer = _serializerCache.application || owner.lookup('serializer:application');\n      if (serializer !== undefined) {\n        Ember.set(serializer, 'store', this);\n        _serializerCache[normalizedModelName] = serializer;\n        _serializerCache.application = serializer;\n        return serializer;\n      }\n      var serializerName;\n      {\n        // no model specific serializer or application serializer, check for the `defaultSerializer`\n        // property defined on the adapter\n        var adapter = this.adapterFor(modelName);\n        serializerName = Ember.get(adapter, 'defaultSerializer');\n        ( !(!serializerName) && Ember.deprecate(`store.serializerFor(\"${modelName}\") resolved the \"${serializerName}\" serializer via the deprecated \\`adapter.defaultSerializer\\` property.\\n\\n\\tPreviously, if no application or type-specific serializer was specified, the store would attempt to lookup a serializer via the \\`defaultSerializer\\` property on the type's adapter. This behavior is deprecated in favor of explicitly defining a type-specific serializer or application serializer`, !serializerName, {\n          id: 'ember-data:default-serializer',\n          until: '4.0',\n          url: 'https://deprecations.emberjs.com/ember-data/v3.x#toc_ember-data:default-serializers'\n        }));\n        serializer = serializerName ? _serializerCache[serializerName] || owner.lookup(`serializer:${serializerName}`) : undefined;\n      }\n      {\n        // in production this is handled by the re-export\n        if ( serializer === undefined) {\n          if (serializerName === '-json-api') {\n            var _Serializer3 = require$1('@ember-data/serializer/json-api').default;\n            owner.register(`serializer:-json-api`, _Serializer3);\n            serializer = owner.lookup(`serializer:-json-api`);\n            deprecateTestRegistration('serializer', '-json-api');\n          } else if (serializerName === '-rest') {\n            var _Serializer4 = require$1('@ember-data/serializer/rest').default;\n            owner.register(`serializer:-rest`, _Serializer4);\n            serializer = owner.lookup(`serializer:-rest`);\n            deprecateTestRegistration('serializer', '-rest');\n          } else if (serializerName === '-default') {\n            var _Serializer5 = require$1('@ember-data/serializer/json').default;\n            owner.register(`serializer:-default`, _Serializer5);\n            serializer = owner.lookup(`serializer:-default`);\n            serializer && deprecateTestRegistration('serializer', '-default');\n          }\n        }\n        if (serializer !== undefined) {\n          Ember.set(serializer, 'store', this);\n          _serializerCache[normalizedModelName] = serializer;\n          _serializerCache[serializerName] = serializer;\n          return serializer;\n        }\n      }\n      {\n        // final fallback, no model specific serializer, no application serializer, no\n        // `serializer` property on store: use the convenience JSONSerializer\n        serializer = _serializerCache['-default'] || owner.lookup('serializer:-default');\n        if ( serializer === undefined) {\n          var JSONSerializer = require$1('@ember-data/serializer/json').default;\n          owner.register('serializer:-default', JSONSerializer);\n          serializer = owner.lookup('serializer:-default');\n          serializer && deprecateTestRegistration('serializer', '-default');\n        }\n        ( !(!serializer) && Ember.deprecate(`store.serializerFor(\"${modelName}\") resolved the \"-default\" serializer via the deprecated \"-default\" lookup fallback.\\n\\n\\tPreviously, when no type-specific serializer, application serializer, or adapter.defaultSerializer had been defined by the app, the \"-default\" serializer would be used which defaulted to the \\`JSONSerializer\\`. This behavior is deprecated in favor of explicitly defining an application or type-specific serializer`, !serializer, {\n          id: 'ember-data:default-serializer',\n          until: '4.0',\n          url: 'https://deprecations.emberjs.com/ember-data/v3.x#toc_ember-data:default-serializers'\n        }));\n        ( !(serializer !== undefined) && Ember.assert(`No serializer was found for '${modelName}' and no 'application' serializer was found as a fallback`, serializer !== undefined));\n        Ember.set(serializer, 'store', this);\n        _serializerCache[normalizedModelName] = serializer;\n        _serializerCache['-default'] = serializer;\n        return serializer;\n      }\n    }\n    destroy() {\n      // enqueue destruction of any adapters/serializers we have created\n      for (var adapterName in this._adapterCache) {\n        var adapter = this._adapterCache[adapterName];\n        if (typeof adapter.destroy === 'function') {\n          adapter.destroy();\n        }\n      }\n      for (var serializerName in this._serializerCache) {\n        var serializer = this._serializerCache[serializerName];\n        if (typeof serializer.destroy === 'function') {\n          serializer.destroy();\n        }\n      }\n      return super.destroy();\n    }\n    willDestroy() {\n      super.willDestroy();\n      this.recordArrayManager.destroy();\n      identifierCacheFor(this).destroy();\n      this.unloadAll();\n      {\n        Ember.Test.unregisterWaiter(this.__asyncWaiter);\n        var shouldTrack = this.shouldTrackAsyncRequests;\n        var tracked = this._trackedAsyncRequests;\n        var isSettled = tracked.length === 0;\n        if (!isSettled) {\n          if (shouldTrack) {\n            throw new Error('Async Request leaks detected. Add a breakpoint here and set `store.generateStackTracesForTrackedRequests = true;`to inspect traces for leak origins:\\n\\t - ' + tracked.map(o => o.label).join('\\n\\t - '));\n          } else {\n            ( Ember.warn('Async Request leaks detected. Add a breakpoint here and set `store.generateStackTracesForTrackedRequests = true;`to inspect traces for leak origins:\\n\\t - ' + tracked.map(o => o.label).join('\\n\\t - '), false, {\n              id: 'ds.async.leak.detected'\n            }));\n          }\n        }\n      }\n    }\n    _updateRelationshipState(relationship) {\n      if (this._updatedRelationships.push(relationship) !== 1) {\n        return;\n      }\n      this._backburner.join(() => {\n        this._backburner.schedule('syncRelationships', this, this._flushUpdatedRelationships);\n      });\n    }\n    _flushUpdatedRelationships() {\n      var updated = this._updatedRelationships;\n      for (var i = 0, l = updated.length; i < l; i++) {\n        updated[i].flushCanonical();\n      }\n      updated.length = 0;\n    }\n    _updateInternalModel(internalModel) {\n      if (this._updatedInternalModels.push(internalModel) !== 1) {\n        return;\n      }\n      emberRun$2.schedule('actions', this, this._flushUpdatedInternalModels);\n    }\n    _flushUpdatedInternalModels() {\n      var updated = this._updatedInternalModels;\n      for (var i = 0, l = updated.length; i < l; i++) {\n        updated[i]._triggerDeferredTriggers();\n      }\n      updated.length = 0;\n    }\n  }\n  {\n    Ember.defineProperty(CoreStore.prototype, 'defaultAdapter', Ember.computed('adapter', function () {\n      ( Ember.deprecate(`store.adapterFor(modelName) resolved the (\"${this.adapter || '-json-api'}\") adapter via the deprecated \\`store.defaultAdapter\\` property.\\n\\n\\tPreviously, applications could define the store's \\`adapter\\` property which would be used by \\`defaultAdapter\\` and \\`adapterFor\\` as a fallback for when an adapter was not found by an exact name match. This behavior is deprecated in favor of explicitly defining an application or type-specific adapter.`, false, {\n        id: 'ember-data:default-adapter',\n        until: '4.0',\n        url: 'https://deprecations.emberjs.com/ember-data/v3.x#toc_ember-data:default-adapter'\n      }));\n      var adapter = this.adapter || '-json-api';\n      ( !(typeof adapter === 'string') && Ember.assert('You tried to set `adapter` property to an instance of `Adapter`, where it should be a name', typeof adapter === 'string'));\n      return this.adapterFor(adapter);\n    }));\n  }\n  function _commit(adapter, store, operation, snapshot) {\n    var internalModel = snapshot._internalModel;\n    var modelName = snapshot.modelName;\n    var modelClass = store.modelFor(modelName);\n    ( !(adapter) && Ember.assert(`You tried to update a record but you have no adapter (for ${modelName})`, adapter));\n    ( !(typeof adapter[operation] === 'function') && Ember.assert(`You tried to update a record but your adapter (for ${modelName}) does not implement '${operation}'`, typeof adapter[operation] === 'function'));\n    var promise = Ember.RSVP.Promise.resolve().then(() => adapter[operation](store, modelClass, snapshot));\n    var serializer = store.serializerFor(modelName);\n    var label = `DS: Extract and notify about ${operation} completion of ${internalModel}`;\n    ( !(promise !== undefined) && Ember.assert(`Your adapter's '${operation}' method must return a value, but it returned 'undefined'`, promise !== undefined));\n    promise = guardDestroyedStore(promise, store, label);\n    promise = _guard(promise, _bind(_objectIsAlive, internalModel));\n    return promise.then(adapterPayload => {\n      /*\n      Note to future spelunkers hoping to optimize.\n      We rely on this `run` to create a run loop if needed\n      that `store._push` and `store.didSaveRecord` will both share.\n       We use `join` because it is often the case that we\n      have an outer run loop available still from the first\n      call to `store._push`;\n      */\n      store._backburner.join(() => {\n        var payload, data, sideloaded;\n        if (adapterPayload) {\n          payload = normalizeResponseHelper(serializer, store, modelClass, adapterPayload, snapshot.id, operation);\n          if (payload.included) {\n            sideloaded = payload.included;\n          }\n          data = payload.data;\n        }\n        store.didSaveRecord(internalModel, {\n          data\n        }, operation);\n        // seems risky, but if the tests pass might be fine?\n        if (sideloaded) {\n          store._push({\n            data: null,\n            included: sideloaded\n          });\n        }\n      });\n      return internalModel;\n    }, function (error) {\n      if (error && error.isAdapterError === true && error.code === 'InvalidError') {\n        var parsedErrors;\n        if (typeof serializer.extractErrors === 'function') {\n          parsedErrors = serializer.extractErrors(store, modelClass, error, snapshot.id);\n        } else {\n          parsedErrors = errorsArrayToHash(error.errors);\n        }\n        store.recordWasInvalid(internalModel, parsedErrors, error);\n      } else {\n        store.recordWasError(internalModel, error);\n      }\n      throw error;\n    }, label);\n  }\n  var assertDestroyingStore;\n  var assertDestroyedStoreOnly;\n  {\n    assertDestroyingStore = function assertDestroyedStore(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        ( !(!(store.isDestroying || store.isDestroyed)) && Ember.deprecate(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed), {\n          id: 'ember-data:method-calls-on-destroyed-store',\n          until: '3.8'\n        }));\n      } else {\n        ( !(!(store.isDestroying || store.isDestroyed)) && Ember.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed)));\n      }\n    };\n    assertDestroyedStoreOnly = function assertDestroyedStoreOnly(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        ( !(!store.isDestroyed) && Ember.deprecate(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed, {\n          id: 'ember-data:method-calls-on-destroyed-store',\n          until: '3.8'\n        }));\n      } else {\n        ( !(!store.isDestroyed) && Ember.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed));\n      }\n    };\n  }\n\n  /**\n   * Flag indicating whether all inverse records are available\n   *\n   * true if the inverse exists and is loaded (not empty)\n   * true if there is no inverse\n   * false if the inverse exists and is not loaded (empty)\n   *\n   * @return {boolean}\n   */\n  function areAllInverseRecordsLoaded(store, resource) {\n    var cache = identifierCacheFor(store);\n    if (Array.isArray(resource.data)) {\n      // treat as collection\n      // check for unloaded records\n      var hasEmptyRecords = resource.data.reduce((hasEmptyModel, resourceIdentifier) => {\n        return hasEmptyModel || internalModelForRelatedResource(store, cache, resourceIdentifier).isEmpty();\n      }, false);\n      return !hasEmptyRecords;\n    } else {\n      // treat as single resource\n      if (!resource.data) {\n        return true;\n      } else {\n        var internalModel = internalModelForRelatedResource(store, cache, resource.data);\n        return !internalModel.isEmpty();\n      }\n    }\n  }\n  function internalModelForRelatedResource(store, cache, resource) {\n    var identifier = cache.getOrCreateRecordIdentifier(resource);\n    return store._internalModelForResource(identifier);\n  }\n  function assertInDebug(msg, cond = false) {\n    if ( cond) {\n      throw new Error(msg);\n    }\n  }\n  function assertIdentifierHasId(identifier) {\n    assertInDebug(`Attempted to schedule a fetch for a record without an id.`, identifier.id === null);\n  }\n\n  function notifyChanges(identifier, value, record, store) {\n    if (value === 'attributes') {\n      record.eachAttribute(key => {\n        var currentValue = Ember.cacheFor(record, key);\n        var internalModel = store._internalModelForResource(identifier);\n        if (currentValue !== internalModel._recordData.getAttr(key)) {\n          record.notifyPropertyChange(key);\n        }\n      });\n    } else if (value === 'relationships') {\n      record.eachRelationship((key, meta) => {\n        var internalModel = store._internalModelForResource(identifier);\n        if (meta.kind === 'belongsTo') {\n          record.notifyPropertyChange(key);\n        } else if (meta.kind === 'hasMany') {\n          if (meta.options.async) {\n            record.notifyPropertyChange(key);\n            internalModel.hasManyRemovalCheck(key);\n          }\n          if (internalModel._manyArrayCache[key]) {\n            internalModel._manyArrayCache[key].retrieveLatest();\n          }\n        }\n      });\n    } else if (value === 'errors') {\n      var internalModel = store._internalModelForResource(identifier);\n      //TODO guard\n      var errors = internalModel._recordData.getErrors(identifier);\n      record.invalidErrorsChanged(errors);\n    } else if (value === 'state') {\n      record.notifyPropertyChange('isNew');\n      record.notifyPropertyChange('isDeleted');\n    } else if (value === 'identity') {\n      record.notifyPropertyChange('id');\n    }\n  }\n\n  var _modelForMixin;\n  {\n    var _found$1;\n    _modelForMixin = function () {\n      if (!_found$1) {\n        _found$1 = require$1('@ember-data/model/-private')._modelForMixin;\n      }\n      return _found$1(...arguments);\n    };\n  }\n\n  /**\n   *\n   * @param store\n   * @param cache modelFactoryCache\n   * @param normalizedModelName already normalized modelName\n   * @return {*}\n   */\n  function getModelFactory(store, cache, normalizedModelName) {\n    var factory = cache[normalizedModelName];\n    if (!factory) {\n      factory = _lookupModelFactory(store, normalizedModelName);\n      if (!factory && true /* HAS_MODEL_PACKAGE */) {\n        //Support looking up mixins as base types for polymorphic relationships\n        factory = _modelForMixin(store, normalizedModelName);\n      }\n      if (!factory) {\n        // we don't cache misses in case someone wants to register a missing model\n        return null;\n      }\n      var klass = factory.class;\n      if (klass.isModel) {\n        var hasOwnModelNameSet = klass.modelName && Object.prototype.hasOwnProperty.call(klass, 'modelName');\n        if (!hasOwnModelNameSet) {\n          Object.defineProperty(klass, 'modelName', {\n            value: normalizedModelName\n          });\n        }\n      }\n      cache[normalizedModelName] = factory;\n    }\n    return factory;\n  }\n  function _lookupModelFactory(store, normalizedModelName) {\n    var owner = Ember.getOwner(store);\n    return owner.factoryFor(`model:${normalizedModelName}`);\n  }\n\n  /**\n    The store service contains all of the data for records loaded from the server.\n    It is also responsible for creating instances of `Model` that wrap\n    the individual data for a record, so that they can be bound to in your\n    Handlebars templates.\n\n    By default, applications will have a single `Store` service that is\n    automatically created.\n\n    The store can be customized by extending the service in the following manner:\n\n    ```app/services/store.js\n    import Store from '@ember-data/store';\n\n    export default class MyStore extends Store {}\n    ```\n\n    You can retrieve models from the store in several ways. To retrieve a record\n    for a specific id, use the `Store`'s `findRecord()` method:\n\n    ```javascript\n    store.findRecord('person', 123).then(function (person) {\n    });\n    ```\n\n    By default, the store will talk to your backend using a standard\n    REST mechanism. You can customize how the store talks to your\n    backend by specifying a custom adapter:\n\n    ```app/adapters/application.js\n    import DS from 'ember-data';\n\n    export default Adapter.extend({\n    });\n    ```\n\n    You can learn more about writing a custom adapter by reading the `Adapter`\n    documentation.\n\n    ### Store createRecord() vs. push() vs. pushPayload()\n\n    The store provides multiple ways to create new record objects. They have\n    some subtle differences in their use which are detailed below:\n\n    [createRecord](../classes/Store/methods/createRecord?anchor=createRecord) is used for creating new\n    records on the client side. This will return a new record in the\n    `created.uncommitted` state. In order to persist this record to the\n    backend, you will need to call `record.save()`.\n\n    [push](../classes/Store/methods/push?anchor=push) is used to notify Ember Data's store of new or\n    updated records that exist in the backend. This will return a record\n    in the `loaded.saved` state. The primary use-case for `store#push` is\n    to notify Ember Data about record updates (full or partial) that happen\n    outside of the normal adapter methods (for example\n    [SSE](http://dev.w3.org/html5/eventsource/) or [Web\n    Sockets](http://www.w3.org/TR/2009/WD-websockets-20091222/)).\n\n    [pushPayload](../classes/Store/methods/pushPayload?anchor=pushPayload) is a convenience wrapper for\n    `store#push` that will deserialize payloads if the\n    Serializer implements a `pushPayload` method.\n\n    Note: When creating a new record using any of the above methods\n    Ember Data will update `RecordArray`s such as those returned by\n    `store#peekAll()` or `store#findAll()`. This means any\n    data bindings or computed properties that depend on the RecordArray\n    will automatically be synced to include the new or updated record\n    values.\n\n    @class Store\n    @main @ember-data/store\n    @extends Ember.Service\n  */\n\n  class Store extends CoreStore {\n    constructor(...args) {\n      super(...args);\n      this._modelFactoryCache = Object.create(null);\n      this._relationshipsDefCache = Object.create(null);\n      this._attributesDefCache = Object.create(null);\n    }\n    instantiateRecord(identifier, createRecordArgs, recordDataFor, notificationManager) {\n      var modelName = identifier.type;\n      var internalModel = this._internalModelForResource(identifier);\n      var createOptions = {\n        store: this,\n        _internalModel: internalModel,\n        currentState: internalModel.currentState,\n        container: null\n      };\n      Ember.assign(createOptions, createRecordArgs);\n\n      // ensure that `getOwner(this)` works inside a model instance\n      Ember.setOwner(createOptions, Ember.getOwner(this));\n      delete createOptions.container;\n      var record = this._modelFactoryFor(modelName).create(createOptions);\n      //todo optimize\n      notificationManager.subscribe(identifier, (identifier, value) => notifyChanges(identifier, value, record, this));\n      return record;\n    }\n    teardownRecord(record) {\n      record.destroy();\n    }\n\n    /**\n    Returns the model class for the particular `modelName`.\n     The class of a model might be useful if you want to get a list of all the\n    relationship names of the model, see\n    [`relationshipNames`](/ember-data/release/classes/Model?anchor=relationshipNames)\n    for example.\n     @method modelFor\n    @param {String} modelName\n    @return {Model}\n      */\n    modelFor(modelName) {\n      {\n        assertDestroyedStoreOnly$1(this, 'modelFor');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's modelFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var maybeFactory = this._modelFactoryFor(modelName);\n\n      // for factorFor factory/class split\n      var klass = maybeFactory && maybeFactory.class ? maybeFactory.class : maybeFactory;\n      if (!klass || !klass.isModel) {\n        {\n          throw new Ember.Error(`No model was found for '${modelName}' and no schema handles the type`);\n        }\n      } else {\n        return klass;\n      }\n    }\n    _modelFactoryFor(modelName) {\n      {\n        assertDestroyedStoreOnly$1(this, '_modelFactoryFor');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's _modelFactoryFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      var normalizedModelName = normalizeModelName(modelName);\n      var factory = getModelFactory(this, this._modelFactoryCache, normalizedModelName);\n      return factory;\n    }\n\n    /*\n    Returns whether a ModelClass exists for a given modelName\n    This exists for legacy support for the RESTSerializer,\n    which due to how it must guess whether a key is a model\n    must query for whether a match exists.\n     We should investigate an RFC to make this public or removing\n    this requirement.\n     @private\n    */\n    _hasModelFor(modelName) {\n      {\n        assertDestroyingStore$1(this, '_hasModelFor');\n      }\n      ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's hasModelFor method`, Ember.isPresent(modelName)));\n      ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n      {\n        ( !(Ember.isPresent(modelName)) && Ember.assert(`You need to pass a model name to the store's hasModelFor method`, Ember.isPresent(modelName)));\n        ( !(typeof modelName === 'string') && Ember.assert(`Passing classes to store methods has been removed. Please pass a dasherized string instead of ${modelName}`, typeof modelName === 'string'));\n        var normalizedModelName = normalizeModelName(modelName);\n        var factory = getModelFactory(this, this._modelFactoryCache, normalizedModelName);\n        return factory !== null;\n      }\n    }\n    _relationshipMetaFor(modelName, id, key) {\n      {\n        var modelClass = this.modelFor(modelName);\n        var relationshipsByName = Ember.get(modelClass, 'relationshipsByName');\n        return relationshipsByName.get(key);\n      }\n    }\n    _attributesDefinitionFor(modelName, identifier) {\n      {\n        var attributes = this._attributesDefCache[modelName];\n        if (attributes === undefined) {\n          var modelClass = this.modelFor(modelName);\n          var attributeMap = Ember.get(modelClass, 'attributes');\n          attributes = Object.create(null);\n          attributeMap.forEach((meta, name) => attributes[name] = meta);\n          this._attributesDefCache[modelName] = attributes;\n        }\n        return attributes;\n      }\n    }\n    _relationshipsDefinitionFor(modelName, identifier) {\n      {\n        var relationships = this._relationshipsDefCache[modelName];\n        if (relationships === undefined) {\n          var modelClass = this.modelFor(modelName);\n          relationships = Ember.get(modelClass, 'relationshipsObject') || null;\n          this._relationshipsDefCache[modelName] = relationships;\n        }\n        return relationships;\n      }\n    }\n    getSchemaDefinitionService() {\n      {\n        throw 'schema service is only available when custom model class feature flag is on';\n      }\n    }\n  }\n  var assertDestroyingStore$1;\n  var assertDestroyedStoreOnly$1;\n  {\n    assertDestroyingStore$1 = function assertDestroyedStore(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        ( !(!(store.isDestroying || store.isDestroyed)) && Ember.deprecate(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed), {\n          id: 'ember-data:method-calls-on-destroyed-store',\n          until: '3.8'\n        }));\n      } else {\n        ( !(!(store.isDestroying || store.isDestroyed)) && Ember.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !(store.isDestroying || store.isDestroyed)));\n      }\n    };\n    assertDestroyedStoreOnly$1 = function assertDestroyedStoreOnly(store, method) {\n      if (!store.shouldAssertMethodCallsOnDestroyedStore) {\n        ( !(!store.isDestroyed) && Ember.deprecate(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed, {\n          id: 'ember-data:method-calls-on-destroyed-store',\n          until: '3.8'\n        }));\n      } else {\n        ( !(!store.isDestroyed) && Ember.assert(`Attempted to call store.${method}(), but the store instance has already been destroyed.`, !store.isDestroyed));\n      }\n    };\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  /**\n    @method diffArray\n    @private\n    @param {Array} oldArray the old array\n    @param {Array} newArray the new array\n    @return {hash} {\n        firstChangeIndex: <integer>,  // null if no change\n        addedCount: <integer>,        // 0 if no change\n        removedCount: <integer>       // 0 if no change\n      }\n  */\n  function diffArray(oldArray, newArray) {\n    var oldLength = oldArray.length;\n    var newLength = newArray.length;\n    var shortestLength = Math.min(oldLength, newLength);\n    var firstChangeIndex = null; // null signifies no changes\n\n    // find the first change\n    for (var i = 0; i < shortestLength; i++) {\n      // compare each item in the array\n      if (oldArray[i] !== newArray[i]) {\n        firstChangeIndex = i;\n        break;\n      }\n    }\n    if (firstChangeIndex === null && newLength !== oldLength) {\n      // no change found in the overlapping block\n      // and array lengths differ,\n      // so change starts at end of overlap\n      firstChangeIndex = shortestLength;\n    }\n    var addedCount = 0;\n    var removedCount = 0;\n    if (firstChangeIndex !== null) {\n      // we found a change, find the end of the change\n      var unchangedEndBlockLength = shortestLength - firstChangeIndex;\n      // walk back from the end of both arrays until we find a change\n      for (var _i = 1; _i <= shortestLength; _i++) {\n        // compare each item in the array\n        if (oldArray[oldLength - _i] !== newArray[newLength - _i]) {\n          unchangedEndBlockLength = _i - 1;\n          break;\n        }\n      }\n      addedCount = newLength - unchangedEndBlockLength - firstChangeIndex;\n      removedCount = oldLength - unchangedEndBlockLength - firstChangeIndex;\n    }\n    return {\n      firstChangeIndex,\n      addedCount,\n      removedCount\n    };\n  }\n\n  /**\n    @module @ember-data/store\n  */\n\n  function typeForRelationshipMeta(meta) {\n    var modelName;\n    modelName = meta.type || meta.key;\n    modelName = normalizeModelName(modelName);\n    if (meta.kind === 'hasMany') {\n      modelName = emberInflector.singularize(modelName);\n    }\n    return modelName;\n  }\n  function shouldFindInverse(relationshipMeta) {\n    var options = relationshipMeta.options;\n    return !(options && options.inverse === null);\n  }\n  class RelationshipDefinition {\n    constructor(meta) {\n      this.meta = meta;\n      this[BRAND_SYMBOL] = void 0;\n      this._type = '';\n      this.__inverseKey = '';\n      this.__inverseIsAsync = true;\n      this.__hasCalculatedInverse = false;\n      this.parentModelName = void 0;\n      this.inverse = void 0;\n      this.inverseIsAsync = void 0;\n      this.parentModelName = meta.parentModelName;\n    }\n    get key() {\n      return this.meta.key;\n    }\n    get kind() {\n      return this.meta.kind;\n    }\n    get type() {\n      if (this._type) {\n        return this._type;\n      }\n      this._type = typeForRelationshipMeta(this.meta);\n      return this._type;\n    }\n    get options() {\n      return this.meta.options;\n    }\n    get name() {\n      return this.meta.name;\n    }\n    _inverseKey(store, modelClass) {\n      if (this.__hasCalculatedInverse === false) {\n        this._calculateInverse(store, modelClass);\n      }\n      return this.__inverseKey;\n    }\n    _inverseIsAsync(store, modelClass) {\n      if (this.__hasCalculatedInverse === false) {\n        this._calculateInverse(store, modelClass);\n      }\n      return this.__inverseIsAsync;\n    }\n    _calculateInverse(store, modelClass) {\n      this.__hasCalculatedInverse = true;\n      var inverseKey, inverseIsAsync;\n      var inverse = null;\n      if (shouldFindInverse(this.meta)) {\n        inverse = modelClass.inverseFor(this.key, store);\n      } else {\n        modelClass.typeForRelationship(this.key, store);\n      }\n      if (inverse) {\n        inverseKey = inverse.name;\n        inverseIsAsync = isInverseAsync(inverse);\n      } else {\n        inverseKey = null;\n        inverseIsAsync = false;\n      }\n      this.__inverseKey = inverseKey;\n      this.__inverseIsAsync = inverseIsAsync;\n    }\n  }\n  function isInverseAsync(meta) {\n    var inverseAsync = meta.options && meta.options.async;\n    return typeof inverseAsync === 'undefined' ? true : inverseAsync;\n  }\n  function relationshipFromMeta(meta) {\n    return new RelationshipDefinition(meta);\n  }\n\n  exports.AdapterPopulatedRecordArray = AdapterPopulatedRecordArray$1;\n  exports.DeprecatedEvented = DeprecatedEvented$1;\n  exports.InternalModel = InternalModel;\n  exports.PromiseArray = PromiseArray;\n  exports.PromiseObject = PromiseObject;\n  exports.RecordArray = RecordArray$1;\n  exports.RecordArrayManager = RecordArrayManager$1;\n  exports.RecordDataStoreWrapper = RecordDataStoreWrapper;\n  exports.RootState = RootState$1;\n  exports.Snapshot = Snapshot;\n  exports.SnapshotRecordArray = SnapshotRecordArray;\n  exports.Store = Store;\n  exports._bind = _bind;\n  exports._guard = _guard;\n  exports._objectIsAlive = _objectIsAlive;\n  exports.addSymbol = addSymbol;\n  exports.coerceId = coerceId;\n  exports.diffArray = diffArray;\n  exports.errorsArrayToHash = errorsArrayToHash;\n  exports.errorsHashToArray = errorsHashToArray;\n  exports.guardDestroyedStore = guardDestroyedStore;\n  exports.identifierCacheFor = identifierCacheFor;\n  exports.normalizeModelName = normalizeModelName;\n  exports.recordDataFor = recordDataFor;\n  exports.recordIdentifierFor = recordIdentifierFor;\n  exports.relationshipFromMeta = relationshipFromMeta;\n  exports.setIdentifierForgetMethod = setIdentifierForgetMethod;\n  exports.setIdentifierGenerationMethod = setIdentifierGenerationMethod;\n  exports.setIdentifierResetMethod = setIdentifierResetMethod;\n  exports.setIdentifierUpdateMethod = setIdentifierUpdateMethod;\n  exports.symbol = symbol;\n  exports.typeForRelationshipMeta = typeForRelationshipMeta;\n  exports.upgradeForInternal = upgradeForInternal;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n});\n","define(\"@ember-data/store/index\", [\"exports\", \"@ember-data/store/-private\"], function (_exports, _private) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _private.Store;\n    }\n  });\n  Object.defineProperty(_exports, \"normalizeModelName\", {\n    enumerable: true,\n    get: function () {\n      return _private.normalizeModelName;\n    }\n  });\n  Object.defineProperty(_exports, \"recordIdentifierFor\", {\n    enumerable: true,\n    get: function () {\n      return _private.recordIdentifierFor;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierForgetMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierForgetMethod;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierGenerationMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierGenerationMethod;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierResetMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierResetMethod;\n    }\n  });\n  Object.defineProperty(_exports, \"setIdentifierUpdateMethod\", {\n    enumerable: true,\n    get: function () {\n      return _private.setIdentifierUpdateMethod;\n    }\n  });\n});","define(\"@ember/ordered-set/index\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const NEEDS_CUSTOM_ORDERED_SET = true;\n  let OrderedSet;\n  if (NEEDS_CUSTOM_ORDERED_SET) {\n    /**\n    @class OrderedSet\n    @constructor\n    */\n    OrderedSet = class OrderedSet {\n      constructor() {\n        this.clear();\n      }\n\n      /**\n      @method create\n      @static\n      @return {OrderedSet}\n      */\n      static create() {\n        let Constructor = this;\n        return new Constructor();\n      }\n\n      /**\n      @method clear\n      */\n      clear() {\n        this.presenceSet = Object.create(null);\n        this.list = [];\n        this.size = 0;\n      }\n\n      /**\n      @method add\n      @param {*} obj\n      @param {string} [_guid] (for internal use)\n      @return {OrderedSet}\n      */\n      add(obj, _guid) {\n        let guid = _guid || Ember.guidFor(obj);\n        let presenceSet = this.presenceSet;\n        let list = this.list;\n        if (presenceSet[guid] !== true) {\n          presenceSet[guid] = true;\n          this.size = list.push(obj);\n        }\n        return this;\n      }\n\n      /**\n      @method delete\n      @param {*} obj\n      @param {string} [_guid] (for internal use)\n      @return {Boolean}\n      */\n      delete(obj, _guid) {\n        let guid = _guid || Ember.guidFor(obj);\n        let presenceSet = this.presenceSet;\n        let list = this.list;\n        if (presenceSet[guid] === true) {\n          delete presenceSet[guid];\n          let index = list.indexOf(obj);\n          if (index > -1) {\n            list.splice(index, 1);\n          }\n          this.size = list.length;\n          return true;\n        } else {\n          return false;\n        }\n      }\n\n      /**\n      @method isEmpty\n      @return {Boolean}\n      */\n      isEmpty() {\n        return this.size === 0;\n      }\n\n      /**\n      @method has\n      @param {*} obj\n      @return {Boolean}\n      */\n      has(obj) {\n        if (this.size === 0) {\n          return false;\n        }\n        let guid = Ember.guidFor(obj);\n        let presenceSet = this.presenceSet;\n        return presenceSet[guid] === true;\n      }\n\n      /**\n      @method forEach\n      @param {Function} fn\n      @param self\n      */\n      forEach(fn /*, ...thisArg*/) {\n        (true && !(typeof fn === 'function') && Ember.assert(`${Object.prototype.toString.call(fn)} is not a function`, typeof fn === 'function'));\n        if (this.size === 0) {\n          return;\n        }\n        let list = this.list;\n        if (arguments.length === 2) {\n          for (let i = 0; i < list.length; i++) {\n            fn.call(arguments[1], list[i]);\n          }\n        } else {\n          for (let i = 0; i < list.length; i++) {\n            fn(list[i]);\n          }\n        }\n      }\n\n      /**\n      @method toArray\n      @return {Array}\n      */\n      toArray() {\n        return this.list.slice();\n      }\n\n      /**\n      @method copy\n      @return {OrderedSet}\n      */\n      copy() {\n        let Constructor = this.constructor;\n        let set = new Constructor();\n        set.presenceSet = Object.create(null);\n        for (let prop in this.presenceSet) {\n          // hasOwnPropery is not needed because obj is Object.create(null);\n          set.presenceSet[prop] = this.presenceSet[prop];\n        }\n        set.list = this.toArray();\n        set.size = this.size;\n        return set;\n      }\n    };\n  } else {\n    OrderedSet = Ember.__OrderedSet__ || Ember.OrderedSet;\n  }\n  var _default = _exports.default = OrderedSet;\n});","define(\"@ember/string/cache\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const UNDEFINED = function () {};\n  class Cache {\n    constructor(limit, func, key, store) {\n      this.size = 0;\n      this.misses = 0;\n      this.hits = 0;\n      this.limit = limit;\n      this.func = func;\n      this.key = key;\n      this.store = store || new DefaultStore();\n    }\n    get(obj) {\n      let key = this.key === undefined ? obj : this.key(obj);\n      let value = this.store.get(key);\n      if (value === undefined) {\n        this.misses++;\n        value = this._set(key, this.func(obj));\n      } else if (value === UNDEFINED) {\n        this.hits++;\n        value = undefined;\n      } else {\n        this.hits++;\n        // nothing to translate\n      }\n      return value;\n    }\n    set(obj, value) {\n      let key = this.key === undefined ? obj : this.key(obj);\n      return this._set(key, value);\n    }\n    _set(key, value) {\n      if (this.limit > this.size) {\n        this.size++;\n        if (value === undefined) {\n          this.store.set(key, UNDEFINED);\n        } else {\n          this.store.set(key, value);\n        }\n      }\n      return value;\n    }\n    purge() {\n      this.store.clear();\n      this.size = 0;\n      this.hits = 0;\n      this.misses = 0;\n    }\n  }\n  _exports.default = Cache;\n  class DefaultStore {\n    constructor() {\n      this.data = Object.create(null);\n    }\n    get(key) {\n      return this.data[key];\n    }\n    set(key, value) {\n      this.data[key] = value;\n    }\n    clear() {\n      this.data = Object.create(null);\n    }\n  }\n});","define(\"@ember/string/helpers/loc\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.loc = loc;\n  function loc(params /*, hash*/) {\n    return Ember.String.loc(...params);\n  }\n  var _default = _exports.default = Ember.Helper.helper(loc);\n});","define(\"@ember/string/index\", [\"exports\", \"@ember/string/cache\"], function (_exports, _cache) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.camelize = camelize;\n  _exports.capitalize = capitalize;\n  _exports.classify = classify;\n  _exports.dasherize = dasherize;\n  _exports.decamelize = decamelize;\n  _exports.getString = getString;\n  _exports.getStrings = getStrings;\n  _exports.loc = loc;\n  _exports.setStrings = setStrings;\n  _exports.underscore = underscore;\n  _exports.w = w;\n  /**\n  @module ember\n  @submodule ember-runtime\n  */\n\n  // STATE within a module is frowned upon, this exists\n  // to support Ember.STRINGS but shield ember internals from this legacy global\n  // API.\n  let STRINGS = {};\n  function setStrings(strings) {\n    STRINGS = strings;\n  }\n  function getStrings() {\n    return STRINGS;\n  }\n  function getString(name) {\n    return STRINGS[name];\n  }\n  const STRING_DASHERIZE_REGEXP = /[ _]/g;\n  const STRING_DASHERIZE_CACHE = new _cache.default(1000, key => decamelize(key).replace(STRING_DASHERIZE_REGEXP, '-'));\n  const STRING_CAMELIZE_REGEXP_1 = /(-|_|\\.|\\s)+(.)?/g;\n  const STRING_CAMELIZE_REGEXP_2 = /(^|\\/)([A-Z])/g;\n  const CAMELIZE_CACHE = new _cache.default(1000, key => key.replace(STRING_CAMELIZE_REGEXP_1, (match, separator, chr) => chr ? chr.toUpperCase() : '').replace(STRING_CAMELIZE_REGEXP_2, (match /*, separator, chr*/) => match.toLowerCase()));\n  const STRING_CLASSIFY_REGEXP_1 = /^(-|_)+(.)?/;\n  const STRING_CLASSIFY_REGEXP_2 = /(.)(-|_|\\.|\\s)+(.)?/g;\n  const STRING_CLASSIFY_REGEXP_3 = /(^|\\/|\\.)([a-z])/g;\n  const CLASSIFY_CACHE = new _cache.default(1000, str => {\n    let replace1 = (match, separator, chr) => chr ? `_${chr.toUpperCase()}` : '';\n    let replace2 = (match, initialChar, separator, chr) => initialChar + (chr ? chr.toUpperCase() : '');\n    let parts = str.split('/');\n    for (let i = 0; i < parts.length; i++) {\n      parts[i] = parts[i].replace(STRING_CLASSIFY_REGEXP_1, replace1).replace(STRING_CLASSIFY_REGEXP_2, replace2);\n    }\n    return parts.join('/').replace(STRING_CLASSIFY_REGEXP_3, (match /*, separator, chr*/) => match.toUpperCase());\n  });\n  const STRING_UNDERSCORE_REGEXP_1 = /([a-z\\d])([A-Z]+)/g;\n  const STRING_UNDERSCORE_REGEXP_2 = /-|\\s+/g;\n  const UNDERSCORE_CACHE = new _cache.default(1000, str => str.replace(STRING_UNDERSCORE_REGEXP_1, '$1_$2').replace(STRING_UNDERSCORE_REGEXP_2, '_').toLowerCase());\n  const STRING_CAPITALIZE_REGEXP = /(^|\\/)([a-z\\u00C0-\\u024F])/g;\n  const CAPITALIZE_CACHE = new _cache.default(1000, str => str.replace(STRING_CAPITALIZE_REGEXP, (match /*, separator, chr*/) => match.toUpperCase()));\n  const STRING_DECAMELIZE_REGEXP = /([a-z\\d])([A-Z])/g;\n  const DECAMELIZE_CACHE = new _cache.default(1000, str => str.replace(STRING_DECAMELIZE_REGEXP, '$1_$2').toLowerCase());\n  function _fmt(str, formats) {\n    // first, replace any ORDERED replacements.\n    let idx = 0; // the current index for non-numerical replacements\n    return str.replace(/%@([0-9]+)?/g, (_s, argIndex) => {\n      let i = argIndex ? parseInt(argIndex, 10) - 1 : idx++;\n      let r = i < formats.length ? formats[i] : undefined;\n      return typeof r === 'string' ? r : r === null ? '(null)' : r === undefined ? '' : String(r);\n    });\n  }\n\n  /**\n    Formats the passed string, but first looks up the string in the localized\n    strings hash. This is a convenient way to localize text. See\n    `fmt` for more information on formatting.\n  \n    Note that it is traditional but not required to prefix localized string\n    keys with an underscore or other character so you can easily identify\n    localized strings.\n  \n    ```javascript\n    import { setStrings, loc } from \"@ember/string\";\n  \n    setStrings({\n      \"_Hello World\": \"Bonjour le monde\",\n      \"_Hello %@ %@\": \"Bonjour %@ %@\"\n    });\n  \n    loc(\"_Hello World\");  // 'Bonjour le monde';\n    loc(\"_Hello %@ %@\", [\"John\", \"Smith\"]);  // \"Bonjour John Smith\";\n    ```\n  \n    @method loc\n    @param {String} str The string to format\n    @param {Array} formats Optional array of parameters to interpolate into string.\n    @return {String} formatted string\n    @public\n  */\n  function loc(str, formats) {\n    (true && !(false) && Ember.deprecate('loc is deprecated, use an internationalization or localization addon instead.', false, {\n      id: 'ember-string-loc',\n      until: '2.0.0',\n      url: 'http://emberjs.com/deprecations/v2.x#toc_ember-string-loc'\n    }));\n    if (!Array.isArray(formats) || arguments.length > 2) {\n      formats = Array.prototype.slice.call(arguments, 1);\n    }\n    str = STRINGS[str] || str;\n    return _fmt(str, formats);\n  }\n\n  /**\n    Splits a string into separate units separated by spaces, eliminating any\n    empty strings in the process. This is a convenience method for split that\n    is mostly useful when applied to the `String.prototype`.\n  \n    ```javascript\n    Ember.String.w(\"alpha beta gamma\").forEach(function(key) {\n      console.log(key);\n    });\n  \n    // > alpha\n    // > beta\n    // > gamma\n    ```\n  \n    @method w\n    @param {String} str The string to split\n    @return {Array} array containing the split strings\n    @public\n  */\n  function w(str) {\n    return str.split(/\\s+/);\n  }\n\n  /**\n    Converts a camelized string into all lower case separated by underscores.\n  \n    ```javascript\n    'innerHTML'.decamelize();           // 'inner_html'\n    'action_name'.decamelize();        // 'action_name'\n    'css-class-name'.decamelize();     // 'css-class-name'\n    'my favorite items'.decamelize();  // 'my favorite items'\n    ```\n  \n    @method decamelize\n    @param {String} str The string to decamelize.\n    @return {String} the decamelized string.\n    @public\n  */\n  function decamelize(str) {\n    return DECAMELIZE_CACHE.get(str);\n  }\n\n  /**\n    Replaces underscores, spaces, or camelCase with dashes.\n  \n    ```javascript\n    'innerHTML'.dasherize();          // 'inner-html'\n    'action_name'.dasherize();        // 'action-name'\n    'css-class-name'.dasherize();     // 'css-class-name'\n    'my favorite items'.dasherize();  // 'my-favorite-items'\n    'privateDocs/ownerInvoice'.dasherize(); // 'private-docs/owner-invoice'\n    ```\n  \n    @method dasherize\n    @param {String} str The string to dasherize.\n    @return {String} the dasherized string.\n    @public\n  */\n  function dasherize(str) {\n    return STRING_DASHERIZE_CACHE.get(str);\n  }\n\n  /**\n    Returns the lowerCamelCase form of a string.\n  \n    ```javascript\n    'innerHTML'.camelize();          // 'innerHTML'\n    'action_name'.camelize();        // 'actionName'\n    'css-class-name'.camelize();     // 'cssClassName'\n    'my favorite items'.camelize();  // 'myFavoriteItems'\n    'My Favorite Items'.camelize();  // 'myFavoriteItems'\n    'private-docs/owner-invoice'.camelize(); // 'privateDocs/ownerInvoice'\n    ```\n  \n    @method camelize\n    @param {String} str The string to camelize.\n    @return {String} the camelized string.\n    @public\n  */\n  function camelize(str) {\n    return CAMELIZE_CACHE.get(str);\n  }\n\n  /**\n    Returns the UpperCamelCase form of a string.\n  \n    ```javascript\n    'innerHTML'.classify();          // 'InnerHTML'\n    'action_name'.classify();        // 'ActionName'\n    'css-class-name'.classify();     // 'CssClassName'\n    'my favorite items'.classify();  // 'MyFavoriteItems'\n    'private-docs/owner-invoice'.classify(); // 'PrivateDocs/OwnerInvoice'\n    ```\n  \n    @method classify\n    @param {String} str the string to classify\n    @return {String} the classified string\n    @public\n  */\n  function classify(str) {\n    return CLASSIFY_CACHE.get(str);\n  }\n\n  /**\n    More general than decamelize. Returns the lower\\_case\\_and\\_underscored\n    form of a string.\n  \n    ```javascript\n    'innerHTML'.underscore();          // 'inner_html'\n    'action_name'.underscore();        // 'action_name'\n    'css-class-name'.underscore();     // 'css_class_name'\n    'my favorite items'.underscore();  // 'my_favorite_items'\n    'privateDocs/ownerInvoice'.underscore(); // 'private_docs/owner_invoice'\n    ```\n  \n    @method underscore\n    @param {String} str The string to underscore.\n    @return {String} the underscored string.\n    @public\n  */\n  function underscore(str) {\n    return UNDERSCORE_CACHE.get(str);\n  }\n\n  /**\n    Returns the Capitalized form of a string\n  \n    ```javascript\n    'innerHTML'.capitalize()         // 'InnerHTML'\n    'action_name'.capitalize()       // 'Action_name'\n    'css-class-name'.capitalize()    // 'Css-class-name'\n    'my favorite items'.capitalize() // 'My favorite items'\n    'privateDocs/ownerInvoice'.capitalize(); // 'PrivateDocs/ownerInvoice'\n    ```\n  \n    @method capitalize\n    @param {String} str The string to capitalize.\n    @return {String} The capitalized string.\n    @public\n  */\n  function capitalize(str) {\n    return CAPITALIZE_CACHE.get(str);\n  }\n});","define(\"@embroider/macros/es-compat2\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = esCompat;\n  function esCompat(m) {\n    return m?.__esModule ? m : {\n      default: m,\n      ...m\n    };\n  }\n});","define(\"@embroider/macros/runtime\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.config = config;\n  _exports.each = each;\n  _exports.getGlobalConfig = getGlobalConfig;\n  _exports.isTesting = isTesting;\n  _exports.macroCondition = macroCondition;\n  /*\n    These are the runtime implementations for the javascript macros that have\n    runtime implementations.\n  \n    Not every macro has a runtime implementation, some only make sense in the\n    build and always run there.\n  \n    Even when we have runtime implementations, we are still careful to emit static\n    errors during the build wherever possible, and runtime errors when necessary,\n    so that you're not surprised when you switch from runtime-mode to compile-time\n    mode.\n  */\n\n  /*\n    CAUTION: in classic builds, this file gets shared by all present copies of\n    @embroider/macros. If you want to change its public API, you need to rename it\n    and update `pathToRuntime` in ../babel/state.ts to point at it, so that your\n    babel plugin and runtime will match.\n  */\n\n  function each(array) {\n    if (!Array.isArray(array)) {\n      throw new Error(`the argument to the each() macro must be an array`);\n    }\n    return array;\n  }\n  function macroCondition(predicate) {\n    return predicate;\n  }\n\n  // This is here as a compile target for `getConfig` and `getOwnConfig` when\n  // we're in runtime mode. This is not public API to call from your own code.\n  function config(packageRoot) {\n    return runtimeConfig.packages[packageRoot];\n  }\n  function getGlobalConfig() {\n    return runtimeConfig.global;\n  }\n  function isTesting() {\n    let g = runtimeConfig.global;\n    let e = g && g['@embroider/macros'];\n    return Boolean(e && e.isTesting);\n  }\n  const runtimeConfig = initializeRuntimeMacrosConfig();\n\n  // this exists to be targeted by our babel plugin\n  function initializeRuntimeMacrosConfig() {\n    return {\n      \"packages\": {},\n      \"global\": {\n        \"@embroider/macros\": {\n          \"isTesting\": false\n        }\n      }\n    };\n  }\n  function updaterMethods() {\n    return {\n      config,\n      getGlobalConfig,\n      setConfig(packageRoot, value) {\n        runtimeConfig.packages[packageRoot] = value;\n      },\n      setGlobalConfig(key, value) {\n        runtimeConfig.global[key] = value;\n      }\n    };\n  }\n\n  // this is how runtime config can get injected at boot. I'm not sure yet if this\n  // should be public API, but we certainly need it internally to set things like\n  // the global fastboot.isRunning.\n  //\n  // consumers of this API push a function onto\n  // window._embroider_macros_runtime_config. The function is given four methods\n  // which allow it to read and write the per-package and global configs. The\n  // reason for allowing both read & write is that merging strategies are up to\n  // each consumers -- read first, then merge, then write.\n  //\n  // For an example user of this API, see where we generate\n  // embroider_macros_fastboot_init.js' in @embroider/core.\n  let updaters = typeof window !== 'undefined' ? window._embroider_macros_runtime_config : undefined;\n  if (updaters) {\n    let methods = updaterMethods();\n    for (let updater of updaters) {\n      updater(methods);\n    }\n  }\n});","define(\"ember-async-await-helper/components/async-await\", [\"exports\", \"ember-async-await-helper/templates/components/async-await\"], function (_exports, _asyncAwait) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n    Used for uninitialized values so that we can distinguish them from values that\n    were intentionally set to `null`/`undefined` in the console.\n  \n    @private\n    @method UNINITIALIZED\n    @returns undefined\n  */\n  function UNINITIALIZED() {}\n  function DEFAULT_REJECTION_HANDLER(reason) {\n    try {\n      let error = new Error(`Unhandled promise rejection in {{#async-await}}: ${reason}`);\n      error.reason = reason;\n      throw error;\n    } catch (error) {\n      if (typeof Ember.onerror === 'function') {\n        Ember.onerror(error);\n      } else {\n        console.assert(false, error); // eslint-disable-line no-console\n      }\n    }\n  }\n  let hashProto;\n  if (Ember.VERSION.startsWith('2.')) {\n    // Glimmer in older version of Ember does some weird things in creating an empty \"hash\",\n    // so we have to jump through some hoops to get the correct prototype.\n    hashProto = Object.getPrototypeOf(Ember.__loader.require('@glimmer/util').dict());\n  } else {\n    // The `hash` helper creates an object with `Object.create(null)` which will have no\n    // prototype.\n    hashProto = null;\n  }\n  function isHash(value) {\n    return typeof value === 'object' && Object.getPrototypeOf(value) === hashProto;\n  }\n\n  /**\n    This component awaits a promise (passed as a positional param), then yields\n    the resolved value to the given block. Thus, the code within the block can be\n    synchronous.\n  \n    Optionally, pass in an inverse block to show while the promise is resolving.\n  \n    ```\n    {{#async-await this.promise as |value|}}\n      <SynchronousComponent @value={{value}} />\n    {{else}}\n      <LoadingSpinner />\n    {{/async-await}}\n    ```\n  \n    @class component:async-await\n    @extends Ember.Component\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    layout: _asyncAwait.default,\n    /**\n      The promise or hash of promises to await on (passed as a positional argument).\n       @public\n      @property argument\n      @type any\n      @required\n    */\n    argument: UNINITIALIZED(),\n    /**\n      A callback to run when the promise rejects. By default, it calls\n      `Ember.onerror` with an error object with its `reason` property set to the\n      promise's rejection reason. You can pass a different function here to\n      handle the rejection more locally. Pass `null` to silence the rejection\n      completely.\n       @public\n      @property onReject\n      @type Function | null\n      @required\n    */\n    onReject: DEFAULT_REJECTION_HANDLER,\n    /**\n      The most-recently awaited argument.\n       @private\n      @property awaited\n      @type any\n    */\n    awaited: UNINITIALIZED(),\n    /**\n      Whether the promise is pending, i.e. it has neither been resolved or\n      rejected. This is the opposite of `isSettled`. Only one of `isPending`,\n      `isResolved` or `isRejected` can be true at any given moment.\n       @private\n      @property isPending\n      @type Boolean\n      @default true\n    */\n    isPending: true,\n    /**\n      Whether the promise is settled, i.e. it has either been resolved or\n      rejected. This is the opposite of `isPending`.\n       @private\n      @property isSettled\n      @type Boolean\n      @default false\n    */\n    isSettled: false,\n    /**\n      Whether the promise has been resolved. If `true`, the resolution value can\n      be found in `resolvedValue`. Only one of `isPending`, `isResolved` or\n      `isRejected` can be true at any given moment.\n       @private\n      @property isResolved\n      @type Boolean\n      @default false\n    */\n    isResolved: false,\n    /**\n      Whether the promise has been rejected. If `true`, the rejection reason can\n      be found in `rejectReason`. Only one of `isPending`, `isResolved` or\n      `isRejected` can be true at any given moment.\n       @private\n      @property isRejected\n      @type Boolean\n      @default false\n    */\n    isRejected: false,\n    /**\n      If the promise has been resolved, this will contain the resolved value.\n       @private\n      @property resolvedValue\n      @type any\n    */\n    resolvedValue: UNINITIALIZED(),\n    /**\n      If the promise has been resolved, this will contain the rejection reason.\n       @private\n      @property rejectReason\n      @type any\n    */\n    rejectReason: UNINITIALIZED(),\n    didReceiveAttrs() {\n      this._super(...arguments);\n      this.didReceiveArgument(this.argument);\n    },\n    didReceiveArgument(argument) {\n      if (argument === this.awaited) {\n        return;\n      }\n      this.setProperties({\n        awaited: argument,\n        isPending: true,\n        isSettled: false,\n        isResolved: false,\n        isRejected: false,\n        resolvedValue: UNINITIALIZED(),\n        rejectReason: UNINITIALIZED()\n      });\n      let target = isHash(argument) ? Ember.RSVP.hash(argument) : argument;\n      Promise.resolve(target).then(Ember.run.bind(this, this.didResolve, argument), Ember.run.bind(this, this.didReject, argument));\n    },\n    didResolve(resolvedArgument, value) {\n      if (this.shouldIgnorePromise(resolvedArgument)) {\n        return;\n      }\n      this.setProperties({\n        isPending: false,\n        isSettled: true,\n        isResolved: true,\n        isRejected: false,\n        resolvedValue: value,\n        rejectReason: UNINITIALIZED()\n      });\n    },\n    didReject(rejectedArgument, reason) {\n      if (this.shouldIgnorePromise(rejectedArgument)) {\n        return;\n      }\n      this.setProperties({\n        isPending: false,\n        isSettled: true,\n        isResolved: false,\n        isRejected: true,\n        resolvedValue: UNINITIALIZED(),\n        rejectReason: reason\n      });\n      let {\n        onReject\n      } = this;\n      if (onReject) {\n        onReject(reason);\n      }\n    },\n    shouldIgnorePromise(argument) {\n      return this.isDestroyed || this.isDestroying || this.argument !== argument;\n    }\n  }).reopenClass({\n    positionalParams: ['argument']\n  });\n});","define(\"ember-async-await-helper/templates/components/async-await\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"SwkEvEMp\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&else\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"isResolved\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[18,2,[[32,0,[\\\"resolvedValue\\\"]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"  \\\"],[18,1,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\"]}\",\n    \"moduleName\": \"ember-async-await-helper/templates/components/async-await.hbs\"\n  });\n});","define('ember-chrome-devtools/formatters/array', ['exports', 'ember-chrome-devtools/formatters/object', 'ember-chrome-devtools/formatters/utils/jsonml'], function (exports, _object, _jsonml) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.ArrayFormatter = undefined;\n  exports.item = item;\n  exports.items = items;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  function item(idx, value) {\n    return _jsonml.item(_jsonml.name(idx), _jsonml.separator(), _jsonml.reference(value));\n  }\n\n  function* items(obj) {\n    for (const _ref of obj.toArray().entries()) {\n      var _ref2 = _slicedToArray(_ref, 2);\n\n      const idx = _ref2[0];\n      const value = _ref2[1];\n\n      yield item(idx, value);\n    }\n  }\n\n  class ArrayFormatter {\n    header(obj) {\n      if (obj instanceof Ember.Object && Ember.Array.detect(obj)) {\n        const length = Ember.cacheFor(obj, 'length');\n        return _jsonml.header(`${obj}(length = ${length || '?'})`);\n      }\n    }\n    hasBody() {\n      return true;\n    }\n    body(obj) {\n      return _jsonml.list(...items(obj), ...(0, _object.properties)(obj));\n    }\n  }\n  exports.ArrayFormatter = ArrayFormatter;\n});","define('ember-chrome-devtools/formatters/index', ['exports', 'ember-chrome-devtools/formatters/object', 'ember-chrome-devtools/formatters/array', 'ember-chrome-devtools/formatters/lazy'], function (exports, _object, _array, _lazy) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = [new _lazy.LazyFormatter(), new _object.ObjectFormatter(), new _array.ArrayFormatter()];\n});","define('ember-chrome-devtools/formatters/lazy', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n  /** Evaluate Ember computed properties and es5 getters when expanded */\n  class Lazy {\n    constructor(compute) {\n      this.compute = compute;\n    }\n  }\n\n  exports.Lazy = Lazy;\n  class LazyFormatter {\n    header(obj) {\n      if (obj instanceof Lazy) {\n        const style = `\n        opacity: 0.8;\n        font-style: italic;\n      `;\n        return ['span', { style }, '(...)'];\n      }\n    }\n    hasBody() {\n      return true;\n    }\n    body(obj) {\n      return obj.compute();\n    }\n  }\n  exports.LazyFormatter = LazyFormatter;\n});","define('ember-chrome-devtools/formatters/object', ['exports', 'ember-chrome-devtools/formatters/utils/jsonml'], function (exports, _jsonml) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.ObjectFormatter = undefined;\n  exports.property = property;\n  exports.properties = properties;\n\n  var _slicedToArray = function () {\n    function sliceIterator(arr, i) {\n      var _arr = [];\n      var _n = true;\n      var _d = false;\n      var _e = undefined;\n\n      try {\n        for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n          _arr.push(_s.value);\n\n          if (i && _arr.length === i) break;\n        }\n      } catch (err) {\n        _d = true;\n        _e = err;\n      } finally {\n        try {\n          if (!_n && _i[\"return\"]) _i[\"return\"]();\n        } finally {\n          if (_d) throw _e;\n        }\n      }\n\n      return _arr;\n    }\n\n    return function (arr, i) {\n      if (Array.isArray(arr)) {\n        return arr;\n      } else if (Symbol.iterator in Object(arr)) {\n        return sliceIterator(arr, i);\n      } else {\n        throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n      }\n    };\n  }();\n\n  /** All properties from the object and its prototype chain, including non-enumerables */\n  function* getProperties(obj) {\n    const seen = Object.create(null);\n\n    do {\n      for (const name of Object.getOwnPropertyNames(obj)) {\n        if (!(name in seen)) {\n          seen[name] = true;\n          yield [name, Object.getOwnPropertyDescriptor(obj, name)];\n        }\n      }\n    } while (obj = Object.getPrototypeOf(obj));\n  }\n\n  /** Used in tests */\n  function lookupDescriptor(obj, key) {\n    do {\n      const descriptor = Object.getOwnPropertyDescriptor(obj, key);\n      if (descriptor) {\n        return descriptor;\n      }\n    } while (obj = Object.getPrototypeOf(obj));\n  }\n\n  /**\n   * Compute JsonML for an object property\n   * @param obj the object\n   * @param key the property name\n   * @param descriptor the property descriptor\n   * @returns {*} JsonML\n   */\n  function property(obj, key, descriptor = lookupDescriptor(obj, key)) {\n    Ember.assert('missing descriptor', !!descriptor);\n\n    const enumerable = descriptor.enumerable;\n\n    if (typeof descriptor.get === 'function') {\n      if (descriptor.get.name === 'GETTER_FUNCTION' || descriptor.get.isInheritingGetter || key === 'isDestroyed' || key === 'isDestroying') {\n        // Ember getter that's probably safe to evaluate\n        const value = descriptor.get.call(obj);\n        return _jsonml.item(_jsonml.name(key, enumerable), _jsonml.separator(), _jsonml.reference(value));\n      }\n\n      // ES5 getter: forcing the property to compute might have a side effect\n      return _jsonml.item(_jsonml.name(key, enumerable), _jsonml.separator(), _jsonml.lazy(() => _jsonml.reference(Ember.get(obj, key))));\n    }\n\n    const value = descriptor.value;\n    if (typeof value === 'function') {\n      // ignore\n      return;\n    }\n\n    if (value instanceof Ember.ComputedProperty) {\n      // For convenience, show cached ComputedProperty without needing to expand it\n      // Don't check the cache for AliasedProperty https://github.com/emberjs/ember.js/issues/15545\n      const cached = Ember.cacheFor(obj, key);\n      if (cached !== undefined) {\n        // use the cached value\n        return _jsonml.item(_jsonml.name(key, enumerable), _jsonml.separator(), _jsonml.computedPropertyIcon(), _jsonml.reference(cached));\n      }\n    }\n\n    if (value !== null && typeof value === 'object' && value.isDescriptor) {\n      // ComputedProperty (not cached) or AliasedProperty\n      // Create a lazy getter, because forcing the property to compute might have a side effect\n      return _jsonml.item(_jsonml.name(key, enumerable), _jsonml.separator(), _jsonml.computedPropertyIcon(), _jsonml.lazy(() => _jsonml.reference(Ember.get(obj, key))));\n    }\n\n    return _jsonml.item(_jsonml.name(key, enumerable), _jsonml.separator(), _jsonml.reference(value));\n  }\n\n  function* properties(obj) {\n    for (const _ref of getProperties(obj)) {\n      var _ref2 = _slicedToArray(_ref, 2);\n\n      const key = _ref2[0];\n      const descriptor = _ref2[1];\n\n      const element = property(obj, key, descriptor);\n      if (element) {\n        yield element;\n      }\n    }\n  }\n\n  class ObjectFormatter {\n    header(obj) {\n      if (obj instanceof Ember.Object && !Ember.Array.detect(obj)) {\n        return _jsonml.header(obj.toString());\n      }\n    }\n    hasBody() {\n      return true;\n    }\n\n    body(obj) {\n      return _jsonml.list(...properties(obj));\n    }\n  }\n  exports.ObjectFormatter = ObjectFormatter;\n});","define('ember-chrome-devtools/formatters/utils/jsonml', ['exports', 'ember-chrome-devtools/formatters/lazy'], function (exports, _lazy) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.header = header;\n  exports.emberIcon = emberIcon;\n  exports.computedPropertyIcon = computedPropertyIcon;\n  exports.list = list;\n  exports.item = item;\n  exports.name = name;\n  exports.separator = separator;\n  exports.reference = reference;\n  exports.lazy = lazy;\n  function header(text) {\n    const style = `\n    color: #E14E34;\n    margin-bottom: 4px;\n  `;\n\n    return ['div', { style }, emberIcon(), ` ${text}`];\n  }\n\n  function emberIcon() {\n    const style = `\n    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAuVJREFUOBE9U0tIlFEU/u7/mvfoNJqmlYmLnuJGYdwMEppB0YtISqhdEBREj1WLNkG7qF1IUFJt2khGEGEtEnORUCSYmGDMNIWpMzrv/3k79454mPnv45zvO8/LMpeOchIwDoBt/sUeCrg4qzoUhYF7dOk5dMGhqBqdHbilEjQBZIwMiEQwyFXcaQpQLoDnfhAuB67GwRr2QQ3Xk50Hz3bhmRVonBil400SWsgrecimYXQfQaDvLpRgCLxSQmXqA6xvk1AiRKaoZAiKQADFTkRAYC4U+X8IDV1D9OR5CRZqIcGubmQfqzC/fAT3hykQD0oNTFpBJMAby/D3n0X9mWEJdtZWUJycgJtdBQtHYfQk4cxOwbNEPUSlXBfcoQOxwTQp1ALCyUHAFwAcG/lXo8gmB2AtzkuATM+iLSd7cqp5xTwYgd3KBrjrwDjYC31nmzS2UksoPb0N4+oQ9F3t8s5ZnAMaCE/kQjTByHwK/F0JWPMzMA50QQlTfiT2nzT8x68jdvkWtOZWmPOzKL8eAduRIKUpbVhqYA8PX7iJ2MUrcHNZyaw1tUglN6tE7qf0XJSmPyH/7CGc34vggQhE6kI0pgfgFYvSmxbfDhYIUnykoY4wXYf5cw6FsReojN0HC0XgSwzD/puBu5yidhtgmXNJ7lULULc1Qu/oRPDwMQR7+2SBvPU1rN67ASe1AG1/D4L9J+Bra0fuySNUPr8BizRTEUWYGkVRqqA88Rz2wlf49h6CGm+EEo0hfueB7JJaVw9m+ODl1+Hmc+SdUhNjTV8yoFbaNtSWTrjkdf3lCPV9hZqsQI3FoTU2SbCoSf79OE3jW0onJmtDMyt46ENt5aUNKL4oyu9G4WZ+ITR4Gmprm/TqpJdgfp9BZXocLNpBRawNEkufStD78ahm4hEIoT0VlrvUpuoqGZbAKFwOnSaVViO0BRbWGqchEu9BxFH7EZUt6qIDdbupmCLLWq6ebYFbVYHbkv9aQEzuWmoUDAAAAABJRU5ErkJggg==)\n      no-repeat\n      left center;\n    padding-right: 16px;\n    border-radius: 2px;\n  `;\n\n    return ['span', { style }, ''];\n  }\n\n  function computedPropertyIcon() {\n    const style = `\n    background-color: #E14E34;\n    color: white;\n    padding: 0 4px;\n    margin-right: 6px;\n    border-radius: 2px;\n  `;\n    return ['span', { style }, 'get'];\n  }\n\n  function list(...children) {\n    const style = `\n    margin: 0;\n    z-index: 0;\n    position: relative;\n    padding-left: 12px;\n    display: flex;\n    flex-direction: column;\n  `;\n    return ['ol', { style }, ...children];\n  }\n\n  function item(...children) {\n    const style = `\n    text-overflow: ellipsis;\n    white-space: nowrap;\n    position: relative;\n    display: flex;\n    align-items: flex-start;\n    min-height: 16px;\n  `;\n    return ['li', { style }, ...children];\n  }\n\n  function name(name, enumerable = true) {\n    let style = `\n    color: rgb(136, 19, 145);\n    flex-shrink: 0;\n  `;\n\n    if (!enumerable) {\n      style += `\n      opacity: 0.6;\n    `;\n    }\n    return ['span', { style }, name];\n  }\n\n  function separator() {\n    const style = `\n    flex-shrink: 0;\n    padding-right: 5px;\n  `;\n    return ['span', { style }, ': '];\n  }\n\n  function reference(object) {\n    if (object === undefined) {\n      // Special case for `undefined`, otherwise an error will occur:\n      // > Custom Formatter Failed: Illegal format: obligatory attribute \"object\" isn't specified\n      const style = `\n      color: rgb(128, 128, 128);\n    `;\n      return ['span', { style }, 'undefined'];\n    }\n\n    if (object !== null && typeof object === 'object' && !(object instanceof Ember.Object)) {\n      // fix alignment\n      const style = `\n      margin-top: -4px;\n    `;\n\n      return ['span', { style }, ['object', { object }]];\n    }\n\n    return ['object', { object }];\n  }\n\n  function lazy(compute) {\n    return ['object', { object: new _lazy.Lazy(compute) }];\n  }\n});","define('ember-chrome-devtools/initializers/install-devtools', ['exports', 'ember-chrome-devtools/formatters'], function (exports, _formatters) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.initialize = initialize;\n  function initialize() /* application */{\n    const old = window.devtoolsFormatters || [];\n    window.devtoolsFormatters = [...old, ..._formatters.default];\n  }\n\n  exports.default = {\n    name: 'install-devtools',\n    initialize\n  };\n});","define('ember-cli-fake-server/index', ['exports', 'pretender', 'ember-cli-fake-server/lib/responses', 'ember-cli-fake-server/lib/logging', 'ember-cli-fake-server/lib/json-utils', 'ember-cli-fake-server/lib/logger'], function (exports, _pretender, _responses, _logging, _jsonUtils, _logger) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.setupFakeServer = setupFakeServer;\n  exports.passthroughRequest = passthroughRequest;\n  exports.stubRequest = stubRequest;\n\n\n  let currentServer;\n\n  let _config = defaultConfig();\n\n  function defaultConfig() {\n    return {\n      preparePath: path => path,\n      fixtureFactory: () => {\n        (0, _logger.warn)('[FakeServer] `fixture` called but no fixture factory is registered');\n      },\n      afterResponse: response => response\n    };\n  }\n\n  function bindResponses(request, responseRef) {\n    Object.keys(_responses.STATUS_CODES).forEach(key => {\n      request[key] = (...args) => {\n        if (responseRef.response) {\n          throw new Error(`[FakeServer] Stubbed Request responded with \"${key}\" after already responding`);\n        }\n        let response = _responses[key](...args);\n        responseRef.response = response;\n        return response;\n      };\n    });\n    Object.keys(_responses.RESPONSE_ALIASES).forEach(key => {\n      let aliases = _responses.RESPONSE_ALIASES[key];\n      aliases.forEach(alias => request[alias] = request[key]);\n    });\n  }\n\n  function setupFakeServer(hooks, options = {}) {\n    hooks.beforeEach(function () {\n      FakeServer.start(options);\n    });\n\n    hooks.afterEach(function () {\n      FakeServer.stop();\n    });\n  }\n\n  function passthroughRequest(verb, path) {\n    path = _config.preparePath(path);\n    (true && !(!!currentServer) && Ember.assert('[FakeServer] cannot passthrough request if FakeServer is not running', !!currentServer));\n\n\n    currentServer[verb.toLowerCase()](path, currentServer.passthrough);\n  }\n\n  function stubRequest(verb, path, callback) {\n    path = _config.preparePath(path);\n    (true && !(!!currentServer) && Ember.assert('[FakeServer] cannot stub request if FakeServer is not running', !!currentServer));\n\n\n    let boundCallback = request => {\n      let responseRef = {};\n\n      bindResponses(request, responseRef);\n\n      request.json = () => _jsonUtils.jsonFromRequest(request);\n      request.fixture = _config.fixtureFactory;\n\n      let context = {\n        json: _jsonUtils.jsonFromRequest,\n        fixture: _config.fixtureFactory\n      };\n      Object.keys(_responses.STATUS_CODES).forEach(key => {\n        context[key] = _responses[key];\n      });\n      Object.keys(_responses.RESPONSE_ALIASES).forEach(key => {\n        let aliases = _responses.RESPONSE_ALIASES[key];\n        aliases.forEach(alias => context[alias] = context[key]);\n      });\n\n      let returnValue = callback.call(context, request);\n      returnValue = returnValue || responseRef.response;\n      if (!returnValue) {\n        throw new Error(`[FakeServer] No return value for stubbed request for ${verb} ${path}.\n         Use \\`request.ok(json)\\` or similar`);\n      }\n      return _config.afterResponse(returnValue, request);\n    };\n\n    currentServer[verb.toLowerCase()](path, boundCallback);\n  }\n\n  const FakeServer = {\n    configure: {\n      fixtureFactory(fixtureFactory) {\n        _config.fixtureFactory = fixtureFactory;\n      },\n      preparePath(fn) {\n        _config.preparePath = fn;\n      },\n      afterResponse(fn) {\n        _config.afterResponse = fn;\n      }\n    },\n\n    start(options = {}) {\n      (true && !(!FakeServer.isRunning()) && Ember.assert('[FakeServer] Cannot start FakeServer while already started. ' + 'Ensure you call `FakeServer.stop()` first.', !FakeServer.isRunning()));\n\n\n      let logging = typeof options.logging === 'undefined' ? true : options.logging;\n\n      currentServer = this._currentServer = new _pretender.default();\n      currentServer.prepareBody = _jsonUtils.stringifyJSON;\n      currentServer.unhandledRequest = _logging.unhandledRequest;\n\n      if (logging) {\n        currentServer.handledRequest = _logging.handledRequest;\n      }\n    },\n\n    isRunning() {\n      return !!currentServer;\n    },\n\n    stop() {\n      if (!FakeServer.isRunning()) {\n        (0, _logger.warn)('[FakeServer] called `stop` without having started.');\n        return;\n      }\n      currentServer.shutdown();\n      currentServer = this._currentServer = null;\n\n      _config = defaultConfig();\n    }\n  };\n\n  exports.default = FakeServer;\n});","define('ember-cli-fake-server/lib/json-utils', ['exports', 'ember-cli-fake-server/lib/logger'], function (exports, _logger) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.stringifyJSON = stringifyJSON;\n  exports.jsonFromRequest = jsonFromRequest;\n  function stringifyJSON(json = {}) {\n    return JSON.stringify(json);\n  }\n\n  function jsonFromRequest(request) {\n    let json = {};\n    if (request.requestBody) {\n      try {\n        json = JSON.parse(request.requestBody);\n      } catch (e) {\n        (0, _logger.warn)(`[FakeServer] Failed to parse json from request.requestBody \"${request.requestBody}\" (error: ${e})`);\n      }\n    }\n\n    return json;\n  }\n});","define('ember-cli-fake-server/lib/logger', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.warn = warn;\n  exports.error = error;\n  exports.log = log;\n  /* eslint no-console:0 */\n\n  function warn() {\n    if (typeof console !== 'undefined') {\n      console.warn(...arguments);\n    }\n  }\n\n  function error() {\n    if (typeof console !== 'undefined') {\n      console.error(...arguments);\n    }\n  }\n\n  function log() {\n    if (typeof console !== 'undefined') {\n      console.log(...arguments);\n    }\n  }\n});","define('ember-cli-fake-server/lib/logging', ['exports', 'ember-cli-fake-server/lib/logger'], function (exports, _logger) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.unhandledRequest = unhandledRequest;\n  exports.handledRequest = handledRequest;\n  function unhandledRequest(verb, path, request) {\n    const msg = `[FakeServer] received unhandled request for ${verb} ${path}`;\n    (0, _logger.error)(msg, request);\n    throw new Error(msg);\n  }\n\n  function handledRequest(verb, path) {\n    (0, _logger.log)(`[FakeServer] handled: ${verb} ${path}`);\n  }\n});","define(\"ember-cli-fake-server/lib/responses\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.error = error;\n  exports.notFound = notFound;\n  exports.ok = ok;\n  exports.created = created;\n  exports.accepted = accepted;\n  exports.noContent = noContent;\n  exports.unauthorized = unauthorized;\n  const STATUS_CODES = exports.STATUS_CODES = {\n    error: 422,\n    notFound: 404,\n    ok: 200,\n    created: 201,\n    accepted: 202,\n    noContent: 204,\n    unauthorized: 401\n  };\n\n  const RESPONSE_ALIASES = exports.RESPONSE_ALIASES = {\n    ok: ['success']\n  };\n\n  const jsonMimeType = { \"Content-Type\": \"application/json\" };\n\n  function error(status, errors) {\n    if (!errors) {\n      errors = status;status = STATUS_CODES.error;\n    }\n\n    return [status, jsonMimeType, errors];\n  }\n\n  function notFound(status, json) {\n    if (!json) {\n      json = status || {};status = STATUS_CODES.notFound;\n    }\n\n    return [status, jsonMimeType, json];\n  }\n\n  function ok(status, json) {\n    if (!json) {\n      json = status;status = STATUS_CODES.ok;\n    }\n\n    return [status, jsonMimeType, json];\n  }\n\n  function created(status, json) {\n    if (!json) {\n      json = status;status = STATUS_CODES.created;\n    }\n\n    return [status, jsonMimeType, json];\n  }\n\n  function accepted(status, json) {\n    if (!json) {\n      json = status;status = STATUS_CODES.accepted;\n    }\n\n    return [status, jsonMimeType, json];\n  }\n\n  function noContent(status) {\n    if (!status) {\n      status = STATUS_CODES.noContent;\n    }\n\n    return [status, jsonMimeType, ''];\n  }\n\n  function unauthorized(status) {\n    if (!status) {\n      status = STATUS_CODES.unauthorized;\n    }\n\n    return [status, jsonMimeType, ''];\n  }\n});","define(\"ember-cli-flash/components/flash-message\", [\"exports\", \"ember-cli-flash/templates/components/flash-message\"], function (_exports, _flashMessage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    and,\n    bool,\n    readOnly,\n    not\n  } = Ember.computed;\n  const {\n    next,\n    cancel\n  } = Ember.run;\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _flashMessage.default,\n    active: false,\n    messageStyle: 'bootstrap',\n    classNames: ['flash-message'],\n    classNameBindings: ['alertType', 'active', 'exiting'],\n    attributeBindings: ['aria-label', 'aria-describedby', 'role'],\n    showProgress: readOnly('flash.showProgress'),\n    notExiting: not('exiting'),\n    showProgressBar: and('showProgress', 'notExiting'),\n    exiting: readOnly('flash.exiting'),\n    hasBlock: bool('template').readOnly(),\n    alertType: Ember.computed('flash.type', {\n      get() {\n        const flashType = Ember.getWithDefault(this, 'flash.type', '');\n        const messageStyle = Ember.getWithDefault(this, 'messageStyle', '');\n        let prefix = 'alert alert-';\n        if (messageStyle === 'foundation') {\n          prefix = 'alert-box ';\n        }\n        return `${prefix}${flashType}`;\n      }\n    }),\n    flashType: Ember.computed('flash.type', {\n      get() {\n        const flashType = Ember.getWithDefault(this, 'flash.type', '');\n        return Ember.String.classify(flashType);\n      }\n    }),\n    didInsertElement() {\n      this._super(...arguments);\n      const pendingSet = next(this, () => {\n        Ember.set(this, 'active', true);\n      });\n      Ember.set(this, 'pendingSet', pendingSet);\n      this.set('_mouseEnterHandler', this._mouseEnter.bind(this));\n      this.set('_mouseLeaveHandler', this._mouseLeave.bind(this));\n      this.element.addEventListener('mouseenter', this._mouseEnterHandler);\n      this.element.addEventListener('mouseleave', this._mouseLeaveHandler);\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      this.element.removeEventListener('mouseenter', this._mouseEnterHandler);\n      this.element.removeEventListener('mouseleave', this._mouseLeaveHandler);\n    },\n    progressDuration: Ember.computed('flash.showProgress', {\n      get() {\n        if (!Ember.get(this, 'flash.showProgress')) {\n          return false;\n        }\n        const duration = Ember.getWithDefault(this, 'flash.timeout', 0);\n        return Ember.String.htmlSafe(`transition-duration: ${duration}ms`);\n      }\n    }),\n    click() {\n      const destroyOnClick = Ember.getWithDefault(this, 'flash.destroyOnClick', true);\n      if (destroyOnClick) {\n        this._destroyFlashMessage();\n      }\n    },\n    _mouseEnter() {\n      const flash = Ember.get(this, 'flash');\n      if (Ember.isPresent(flash)) {\n        flash.preventExit();\n      }\n    },\n    _mouseLeave() {\n      const flash = Ember.get(this, 'flash');\n      if (Ember.isPresent(flash) && !Ember.get(flash, 'exiting')) {\n        flash.allowExit();\n      }\n    },\n    willDestroy() {\n      this._super(...arguments);\n      this._destroyFlashMessage();\n      cancel(Ember.get(this, 'pendingSet'));\n    },\n    // private\n    _destroyFlashMessage() {\n      const flash = Ember.getWithDefault(this, 'flash', false);\n      if (flash) {\n        flash.destroyMessage();\n      }\n    },\n    actions: {\n      close() {\n        this._destroyFlashMessage();\n      }\n    }\n  });\n});","define(\"ember-cli-flash/flash/object\", [\"exports\", \"ember-cli-flash/utils/computed\"], function (_exports, _computed) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Object.extend(Ember.Evented, {\n    exitTimer: null,\n    exiting: false,\n    isExitable: true,\n    initializedTime: null,\n    _guid: (0, _computed.guidFor)('message').readOnly(),\n    init() {\n      this._super(...arguments);\n      if (Ember.get(this, 'sticky')) {\n        return;\n      }\n      this.timerTask();\n      this._setInitializedTime();\n    },\n    destroyMessage() {\n      this._cancelTimer();\n      let exitTaskInstance = Ember.get(this, 'exitTaskInstance');\n      if (exitTaskInstance) {\n        Ember.run.cancel(exitTaskInstance);\n        this._teardown();\n      } else {\n        this.exitTimerTask();\n      }\n    },\n    exitMessage() {\n      if (!Ember.get(this, 'isExitable')) {\n        return;\n      }\n      this.exitTimerTask();\n      this.trigger('didExitMessage');\n    },\n    willDestroy() {\n      const onDestroy = Ember.get(this, 'onDestroy');\n      if (onDestroy) {\n        onDestroy();\n      }\n      this._cancelTimer();\n      this._cancelTimer('exitTaskInstance');\n      this._super(...arguments);\n    },\n    preventExit() {\n      Ember.set(this, 'isExitable', false);\n    },\n    allowExit() {\n      Ember.set(this, 'isExitable', true);\n      this._checkIfShouldExit();\n    },\n    timerTask() {\n      let timeout = Ember.get(this, 'timeout');\n      if (!timeout) {\n        return;\n      }\n      let timerTaskInstance = Ember.run.later(() => {\n        this.exitMessage();\n      }, timeout);\n      Ember.set(this, 'timerTaskInstance', timerTaskInstance);\n    },\n    exitTimerTask() {\n      if (Ember.get(this, 'isDestroyed')) {\n        return;\n      }\n      Ember.set(this, 'exiting', true);\n      let extendedTimeout = Ember.get(this, 'extendedTimeout');\n      if (extendedTimeout) {\n        let exitTaskInstance = Ember.run.later(() => {\n          this._teardown();\n        }, extendedTimeout);\n        Ember.set(this, 'exitTaskInstance', exitTaskInstance);\n      } else {\n        this._teardown();\n      }\n    },\n    // private\n    _setInitializedTime() {\n      let currentTime = new Date().getTime();\n      Ember.set(this, 'initializedTime', currentTime);\n    },\n    _getElapsedTime() {\n      let currentTime = new Date().getTime();\n      let initializedTime = Ember.get(this, 'initializedTime');\n      return currentTime - initializedTime;\n    },\n    _cancelTimer(taskName = 'timerTaskInstance') {\n      let taskInstance = Ember.get(this, taskName);\n      if (taskInstance) {\n        Ember.run.cancel(taskInstance);\n      }\n    },\n    _checkIfShouldExit() {\n      if (this._getElapsedTime() >= Ember.get(this, 'timeout') && !Ember.get(this, 'sticky')) {\n        this._cancelTimer();\n        this.exitMessage();\n      }\n    },\n    _teardown() {\n      const queue = Ember.get(this, 'flashService.queue');\n      if (queue) {\n        queue.removeObject(this);\n      }\n      this.destroy();\n      this.trigger('didDestroyMessage');\n    }\n  });\n});","define(\"ember-cli-flash/services/flash-messages\", [\"exports\", \"ember-cli-flash/flash/object\", \"ember-cli-flash/utils/object-without\", \"ember-cli-flash/utils/flash-message-options\"], function (_exports, _object, _objectWithout, _flashMessageOptions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Service.extend({\n    isEmpty: Ember.computed.equal('queue.length', 0).readOnly(),\n    _guids: Ember.computed.mapBy('queue', '_guid').readOnly(),\n    arrangedQueue: Ember.computed.sort('queue', function (a, b) {\n      if (a.priority < b.priority) {\n        return 1;\n      } else if (a.priority > b.priority) {\n        return -1;\n      }\n      return 0;\n    }).readOnly(),\n    init() {\n      this._super(...arguments);\n      this._setDefaults();\n      this.queue = Ember.A();\n    },\n    willDestroy() {\n      this._super(...arguments);\n      this.clearMessages();\n    },\n    add(options = {}) {\n      this._enqueue(this._newFlashMessage(options));\n      return this;\n    },\n    clearMessages() {\n      const flashes = Ember.get(this, 'queue');\n      if (Ember.isNone(flashes)) {\n        return;\n      }\n      flashes.forEach(flash => flash.destroyMessage());\n      flashes.clear();\n      return this;\n    },\n    registerTypes(types = Ember.A()) {\n      types.forEach(type => this._registerType(type));\n      return this;\n    },\n    peekFirst() {\n      return Ember.get(this, 'queue.firstObject');\n    },\n    peekLast() {\n      return Ember.get(this, 'queue.lastObject');\n    },\n    getFlashObject() {\n      const errorText = 'A flash message must be added before it can be returned';\n      (true && !(Ember.get(this, 'queue').length) && Ember.assert(errorText, Ember.get(this, 'queue').length));\n      return this.peekLast();\n    },\n    _newFlashMessage(options = {}) {\n      (true && !(Ember.get(this, 'defaultPreventDuplicates') ? options.message : true) && Ember.assert('The flash message cannot be empty when preventDuplicates is enabled.', Ember.get(this, 'defaultPreventDuplicates') ? options.message : true));\n      (true && !(Ember.get(options, 'preventDuplicates') ? options.message : true) && Ember.assert('The flash message cannot be empty when preventDuplicates is enabled.', Ember.get(options, 'preventDuplicates') ? options.message : true));\n      const flashService = this;\n      const allDefaults = Ember.getWithDefault(this, 'flashMessageDefaults', {});\n      const defaults = (0, _objectWithout.default)(allDefaults, ['types', 'injectionFactories', 'preventDuplicates']);\n      const flashMessageOptions = Ember.assign({}, defaults, {\n        flashService\n      });\n      for (let key in options) {\n        const value = Ember.get(options, key);\n        const option = this._getOptionOrDefault(key, value);\n        Ember.set(flashMessageOptions, key, option);\n      }\n      return _object.default.create(flashMessageOptions);\n    },\n    _getOptionOrDefault(key, value) {\n      const defaults = Ember.getWithDefault(this, 'flashMessageDefaults', {});\n      const defaultOption = Ember.get(defaults, key);\n      if (Ember.typeOf(value) === 'undefined') {\n        return defaultOption;\n      }\n      return value;\n    },\n    flashMessageDefaults: Ember.computed(function () {\n      const config = Ember.getOwner(this).resolveRegistration('config:environment');\n      const overrides = Ember.getWithDefault(config, 'flashMessageDefaults', {});\n      return (0, _flashMessageOptions.default)(overrides);\n    }),\n    _setDefaults() {\n      const defaults = Ember.getWithDefault(this, 'flashMessageDefaults', {});\n      for (let key in defaults) {\n        const classifiedKey = Ember.String.classify(key);\n        const defaultKey = `default${classifiedKey}`;\n        Ember.set(this, defaultKey, defaults[key]);\n      }\n      this.registerTypes(Ember.getWithDefault(this, 'defaultTypes', Ember.A()));\n    },\n    _registerType(type) {\n      (true && !(type) && Ember.assert('The flash type cannot be undefined', type));\n      this[type] = (message, options = {}) => {\n        const flashMessageOptions = Ember.assign({}, options);\n        Ember.setProperties(flashMessageOptions, {\n          message,\n          type\n        });\n        return this.add(flashMessageOptions);\n      };\n    },\n    _hasDuplicate(guid) {\n      return Ember.get(this, '_guids').includes(guid);\n    },\n    _enqueue(flashInstance) {\n      const instancePreventDuplicates = Ember.get(flashInstance, 'preventDuplicates');\n      const preventDuplicates = typeof instancePreventDuplicates === 'boolean' ?\n      // always prefer instance option over global option\n      instancePreventDuplicates : Ember.get(this, 'defaultPreventDuplicates');\n      if (preventDuplicates) {\n        const guid = Ember.get(flashInstance, '_guid');\n        if (this._hasDuplicate(guid)) {\n          (true && Ember.warn('Attempting to add a duplicate message to the Flash Messages Service', false, {\n            id: 'ember-cli-flash.duplicate-message'\n          }));\n          return;\n        }\n      }\n      return Ember.get(this, 'queue').pushObject(flashInstance);\n    }\n  });\n});","define(\"ember-cli-flash/templates/components/flash-message\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"hHTXu9v9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,3],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"  \\\"],[18,1,[[32,0],[35,1],[30,[36,4],[[32,0],\\\"close\\\"],null]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"  \\\"],[1,[35,1,[\\\"message\\\"]]],[2,\\\"\\\\n\\\"],[6,[37,3],[[35,2]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[10,\\\"div\\\"],[14,0,\\\"alert-progress\\\"],[12],[2,\\\"\\\\n      \\\"],[10,\\\"div\\\"],[14,0,\\\"alert-progressBar\\\"],[15,5,[34,0]],[12],[13],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"progressDuration\\\",\\\"flash\\\",\\\"showProgressBar\\\",\\\"if\\\",\\\"action\\\"]}\",\n    \"moduleName\": \"ember-cli-flash/templates/components/flash-message.hbs\"\n  });\n});","define(\"ember-cli-flash/utils/computed\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.add = add;\n  _exports.guidFor = guidFor;\n  function add(...dependentKeys) {\n    const computedFunc = Ember.computed({\n      get() {\n        const values = dependentKeys.map(dependentKey => {\n          const value = Ember.get(this, dependentKey);\n          if (Ember.typeOf(value) !== 'number') {\n            return;\n          }\n          return value;\n        });\n        return Ember.A(values).compact().reduce((prev, curr) => {\n          return prev + curr;\n        });\n      }\n    });\n    return computedFunc.property.apply(computedFunc, dependentKeys);\n  }\n  function guidFor(dependentKey) {\n    return Ember.computed(dependentKey, {\n      get() {\n        const value = Ember.get(this, dependentKey);\n\n        // it's possible that a value has no toString as some objects don't implement the guid field\n        // this early return it to avoid errors being thrown when calling undefined.toString()\n        if (Ember.isNone(value)) return;\n        return Ember.guidFor(value.toString());\n      }\n    });\n  }\n});","define(\"ember-cli-flash/utils/flash-message-options\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(configOverrides) {\n    const addonDefaults = {\n      timeout: 3000,\n      extendedTimeout: 0,\n      priority: 100,\n      sticky: false,\n      showProgress: false,\n      type: 'info',\n      types: ['success', 'info', 'warning', 'danger', 'alert', 'secondary'],\n      injectionFactories: ['route', 'controller', 'view', 'component'],\n      preventDuplicates: false\n    };\n    return Ember.assign(addonDefaults, configOverrides);\n  }\n});","define(\"ember-cli-flash/utils/object-compact\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = objectCompact;\n  function objectCompact(objectInstance) {\n    const compactedObject = {};\n    for (let key in objectInstance) {\n      const value = objectInstance[key];\n      if (Ember.isPresent(value)) {\n        compactedObject[key] = value;\n      }\n    }\n    return compactedObject;\n  }\n});","define(\"ember-cli-flash/utils/object-only\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = objectWithout;\n  function objectWithout(originalObj = {}, keysToRemain = []) {\n    let newObj = {};\n    for (let key in originalObj) {\n      if (keysToRemain.indexOf(key) !== -1) {\n        newObj[key] = originalObj[key];\n      }\n    }\n    return newObj;\n  }\n});","define(\"ember-cli-flash/utils/object-without\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = objectWithout;\n  function objectWithout(originalObj = {}, keysToRemove = []) {\n    let newObj = {};\n    for (let key in originalObj) {\n      if (keysToRemove.indexOf(key) === -1) {\n        newObj[key] = originalObj[key];\n      }\n    }\n    return newObj;\n  }\n});","define(\"ember-cli-nouislider/components/range-slider\", [\"exports\", \"noUiSlider\"], function (_exports, _noUiSlider) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const {\n    Logger: {\n      warn\n    }\n  } = Ember;\n  var _default = _exports.default = Ember.Component.extend({\n    attributeBindings: ['disabledOrUndefined:disabled'],\n    slider: null,\n    start: undefined,\n    step: undefined,\n    margin: undefined,\n    padding: undefined,\n    limit: undefined,\n    pips: undefined,\n    animate: true,\n    snap: false,\n    connect: false,\n    disabled: false,\n    orientation: 'horizontal',\n    direction: 'ltr',\n    behaviour: 'tap',\n    tooltips: false,\n    multitouch: false,\n    keyboardSupport: true,\n    min: 0,\n    max: 100,\n    range: Ember.computed('min', 'max', function () {\n      return {\n        min: this.get('min'),\n        max: this.get('max')\n      };\n    }),\n    formatTo(value) {\n      return value;\n    },\n    formatFrom(value) {\n      return +value;\n    },\n    format: Ember.computed('formatTo', 'formatFrom', function () {\n      return {\n        to: this.get('formatTo'),\n        from: this.get('formatFrom')\n      };\n    }),\n    didInsertElement() {\n      this.setup();\n    },\n    setup() {\n      let element = this.get('element');\n      let {\n        noUiSlider: slider\n      } = element;\n      let properties = this.getProperties('start', 'step', 'margin', 'padding', 'limit', 'range', 'connect', 'orientation', 'direction', 'behaviour', 'animate', 'snap', 'pips', 'format', 'tooltips', 'multitouch', 'cssPrefix', 'cssClasses', 'keyboardSupport');\n      let sliderEvents = Ember.A(['change', 'set', 'slide', 'update']);\n\n      // We first check if the element has a slider already created\n      if (slider && slider.destroy) {\n        slider.destroy();\n      }\n      try {\n        slider = _noUiSlider.default.create(element, properties, true);\n      } catch (err) {\n        warn(`[ember-cli-nouislider]: ${err}`);\n      }\n      this.slider = slider;\n      sliderEvents.forEach(event => {\n        const eventActionName = `on-${event}`;\n        if (!Ember.isEmpty(this.get(eventActionName))) {\n          slider.on(event, () => {\n            Ember.run(this, function () {\n              const val = this.get('slider').get();\n              const action = this.get(eventActionName);\n              if (typeof action === 'string') {\n                // Note that `sendAction` is deprecated and this will trigger a deprecation message.\n                this.sendAction(eventActionName, val);\n              } else if (typeof action === 'function') {\n                action(val);\n              }\n            });\n          });\n        }\n      });\n      slider.on('start', () => {\n        Ember.run(this, function () {\n          this.onStart();\n          if (!Ember.isEmpty(this.get(`on-start`))) {\n            let val = this.get(\"slider\").get();\n            this.sendAction(`on-start`, val);\n          }\n        });\n      });\n      slider.on('end', () => {\n        Ember.run(this, function () {\n          this.onEnd();\n          if (!Ember.isEmpty(this.get(`on-end`))) {\n            let val = this.get(\"slider\").get();\n            this.sendAction(`on-end`, val);\n          }\n        });\n      });\n    },\n    onStart() {\n      this.sliding = true;\n    },\n    onEnd() {\n      delete this.sliding;\n    },\n    didUpdateAttrs() {\n      this.update();\n    },\n    update() {\n      let {\n        slider\n      } = this;\n      let properties = this.getProperties('margin', 'limit', 'step', 'range', 'animate', 'snap', 'start', 'padding', 'keyboardSupport');\n      if (slider) {\n        slider.updateOptions(properties);\n      }\n    },\n    willDestroyElement() {\n      this.teardown();\n    },\n    teardown() {\n      let {\n        slider\n      } = this;\n\n      // Remove all event listeners\n      slider.off();\n      slider.destroy();\n    },\n    setValue: Ember.observer('start', function () {\n      let {\n        slider\n      } = this;\n      if (slider && !this.sliding) {\n        let value = this.get('start');\n        slider.set(value);\n      }\n    }),\n    // disabled can't be just `false` - this leads to an attribute of disabled=\"false\"\n    disabledOrUndefined: Ember.computed('disabled', function () {\n      if (this.get('disabled')) {\n        return true;\n      }\n      return undefined;\n    })\n  });\n});","define(\"ember-cli-nouislider/templates/components/range-slider\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"akCtQOPq\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"ember-cli-nouislider/templates/components/range-slider.hbs\"\n  });\n});","define('ember-data/-private', ['exports', '@ember-data/store', 'ember-data/version', '@ember-data/model/-private', '@ember-data/store/-private', '@ember-data/record-data/-private'], function (exports, store, VERSION, Private, Private$1, Private$2) { 'use strict';\n\n  store = store && Object.prototype.hasOwnProperty.call(store, 'default') ? store['default'] : store;\n  VERSION = VERSION && Object.prototype.hasOwnProperty.call(VERSION, 'default') ? VERSION['default'] : VERSION;\n\n  var DS = Ember.Namespace.create({\n    VERSION: VERSION,\n    name: 'DS'\n  });\n  if (Ember.libraries) {\n    Ember.libraries.registerCoreLibrary('Ember Data', VERSION);\n  }\n\n  exports.Store = store;\n  Object.defineProperty(exports, 'Errors', {\n    enumerable: true,\n    get: function () {\n      return Private.Errors;\n    }\n  });\n  Object.defineProperty(exports, 'ManyArray', {\n    enumerable: true,\n    get: function () {\n      return Private.ManyArray;\n    }\n  });\n  Object.defineProperty(exports, 'PromiseManyArray', {\n    enumerable: true,\n    get: function () {\n      return Private.PromiseManyArray;\n    }\n  });\n  Object.defineProperty(exports, 'AdapterPopulatedRecordArray', {\n    enumerable: true,\n    get: function () {\n      return Private$1.AdapterPopulatedRecordArray;\n    }\n  });\n  Object.defineProperty(exports, 'InternalModel', {\n    enumerable: true,\n    get: function () {\n      return Private$1.InternalModel;\n    }\n  });\n  Object.defineProperty(exports, 'PromiseArray', {\n    enumerable: true,\n    get: function () {\n      return Private$1.PromiseArray;\n    }\n  });\n  Object.defineProperty(exports, 'PromiseObject', {\n    enumerable: true,\n    get: function () {\n      return Private$1.PromiseObject;\n    }\n  });\n  Object.defineProperty(exports, 'RecordArray', {\n    enumerable: true,\n    get: function () {\n      return Private$1.RecordArray;\n    }\n  });\n  Object.defineProperty(exports, 'RecordArrayManager', {\n    enumerable: true,\n    get: function () {\n      return Private$1.RecordArrayManager;\n    }\n  });\n  Object.defineProperty(exports, 'RootState', {\n    enumerable: true,\n    get: function () {\n      return Private$1.RootState;\n    }\n  });\n  Object.defineProperty(exports, 'Snapshot', {\n    enumerable: true,\n    get: function () {\n      return Private$1.Snapshot;\n    }\n  });\n  Object.defineProperty(exports, 'SnapshotRecordArray', {\n    enumerable: true,\n    get: function () {\n      return Private$1.SnapshotRecordArray;\n    }\n  });\n  Object.defineProperty(exports, 'coerceId', {\n    enumerable: true,\n    get: function () {\n      return Private$1.coerceId;\n    }\n  });\n  Object.defineProperty(exports, 'normalizeModelName', {\n    enumerable: true,\n    get: function () {\n      return Private$1.normalizeModelName;\n    }\n  });\n  Object.defineProperty(exports, 'RecordData', {\n    enumerable: true,\n    get: function () {\n      return Private$2.RecordData;\n    }\n  });\n  Object.defineProperty(exports, 'Relationship', {\n    enumerable: true,\n    get: function () {\n      return Private$2.Relationship;\n    }\n  });\n  exports.DS = DS;\n\n  Object.defineProperty(exports, '__esModule', { value: true });\n\n});\n","define(\"ember-data/adapter\", [\"exports\", \"@ember-data/adapter\"], function (_exports, _adapter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _adapter.default;\n    }\n  });\n});","define(\"ember-data/adapters/errors\", [\"exports\", \"@ember-data/adapter/error\"], function (_exports, _error) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"AbortError\", {\n    enumerable: true,\n    get: function () {\n      return _error.AbortError;\n    }\n  });\n  Object.defineProperty(_exports, \"AdapterError\", {\n    enumerable: true,\n    get: function () {\n      return _error.default;\n    }\n  });\n  Object.defineProperty(_exports, \"ConflictError\", {\n    enumerable: true,\n    get: function () {\n      return _error.ConflictError;\n    }\n  });\n  Object.defineProperty(_exports, \"ForbiddenError\", {\n    enumerable: true,\n    get: function () {\n      return _error.ForbiddenError;\n    }\n  });\n  Object.defineProperty(_exports, \"InvalidError\", {\n    enumerable: true,\n    get: function () {\n      return _error.InvalidError;\n    }\n  });\n  Object.defineProperty(_exports, \"NotFoundError\", {\n    enumerable: true,\n    get: function () {\n      return _error.NotFoundError;\n    }\n  });\n  Object.defineProperty(_exports, \"ServerError\", {\n    enumerable: true,\n    get: function () {\n      return _error.ServerError;\n    }\n  });\n  Object.defineProperty(_exports, \"TimeoutError\", {\n    enumerable: true,\n    get: function () {\n      return _error.TimeoutError;\n    }\n  });\n  Object.defineProperty(_exports, \"UnauthorizedError\", {\n    enumerable: true,\n    get: function () {\n      return _error.UnauthorizedError;\n    }\n  });\n  Object.defineProperty(_exports, \"errorsArrayToHash\", {\n    enumerable: true,\n    get: function () {\n      return _error.errorsArrayToHash;\n    }\n  });\n  Object.defineProperty(_exports, \"errorsHashToArray\", {\n    enumerable: true,\n    get: function () {\n      return _error.errorsHashToArray;\n    }\n  });\n});","define(\"ember-data/adapters/json-api\", [\"exports\", \"@ember-data/adapter/json-api\"], function (_exports, _jsonApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _jsonApi.default;\n    }\n  });\n});","define(\"ember-data/adapters/rest\", [\"exports\", \"@ember-data/adapter/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rest.default;\n    }\n  });\n});","define(\"ember-data/attr\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _model.attr;\n    }\n  });\n});","define(\"ember-data/index\", [\"exports\", \"ember-inflector\", \"@ember-data/adapter\", \"@ember-data/adapter/error\", \"@ember-data/adapter/json-api\", \"@ember-data/adapter/rest\", \"@ember-data/debug\", \"@ember-data/model\", \"@ember-data/serializer\", \"@ember-data/serializer/-private\", \"@ember-data/serializer/json\", \"@ember-data/serializer/json-api\", \"@ember-data/serializer/rest\", \"@ember-data/serializer/transform\", \"@ember-data/store\", \"ember-data/-private\", \"ember-data/setup-container\"], function (_exports, _emberInflector, _adapter, _error, _jsonApi, _rest, _debug, _model, _serializer, _private, _json, _jsonApi2, _rest2, _transform, _store, _private2, _setupContainer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  if (Ember.VERSION.match(/^1\\.([0-9]|1[0-2])\\./)) {\n    throw new Ember.Error('Ember Data requires at least Ember 1.13.0, but you have ' + Ember.VERSION + '. Please upgrade your version of Ember, then upgrade Ember Data.');\n  }\n  _private2.DS.Store = _store.default;\n  _private2.DS.PromiseArray = _private2.PromiseArray;\n  _private2.DS.PromiseObject = _private2.PromiseObject;\n  _private2.DS.PromiseManyArray = _private2.PromiseManyArray;\n  _private2.DS.Model = _model.default;\n  _private2.DS.RootState = _private2.RootState;\n  _private2.DS.attr = _model.attr;\n  _private2.DS.Errors = _private2.Errors;\n  _private2.DS.InternalModel = _private2.InternalModel;\n  _private2.DS.Snapshot = _private2.Snapshot;\n  _private2.DS.Adapter = _adapter.default;\n  _private2.DS.AdapterError = _error.default;\n  _private2.DS.InvalidError = _error.InvalidError;\n  _private2.DS.TimeoutError = _error.TimeoutError;\n  _private2.DS.AbortError = _error.AbortError;\n  _private2.DS.UnauthorizedError = _error.UnauthorizedError;\n  _private2.DS.ForbiddenError = _error.ForbiddenError;\n  _private2.DS.NotFoundError = _error.NotFoundError;\n  _private2.DS.ConflictError = _error.ConflictError;\n  _private2.DS.ServerError = _error.ServerError;\n  _private2.DS.errorsHashToArray = _error.errorsHashToArray;\n  _private2.DS.errorsArrayToHash = _error.errorsArrayToHash;\n  _private2.DS.Serializer = _serializer.default;\n  _private2.DS.DebugAdapter = _debug.default;\n  _private2.DS.RecordArray = _private2.RecordArray;\n  _private2.DS.AdapterPopulatedRecordArray = _private2.AdapterPopulatedRecordArray;\n  _private2.DS.ManyArray = _private2.ManyArray;\n  _private2.DS.RecordArrayManager = _private2.RecordArrayManager;\n  _private2.DS.RESTAdapter = _rest.default;\n  _private2.DS.BuildURLMixin = _adapter.BuildURLMixin;\n  _private2.DS.RESTSerializer = _rest2.default;\n  _private2.DS.JSONSerializer = _json.default;\n  _private2.DS.JSONAPIAdapter = _jsonApi.default;\n  _private2.DS.JSONAPISerializer = _jsonApi2.default;\n  _private2.DS.Transform = _transform.default;\n  _private2.DS.DateTransform = _private.DateTransform;\n  _private2.DS.StringTransform = _private.StringTransform;\n  _private2.DS.NumberTransform = _private.NumberTransform;\n  _private2.DS.BooleanTransform = _private.BooleanTransform;\n  _private2.DS.EmbeddedRecordsMixin = _rest2.EmbeddedRecordsMixin;\n  _private2.DS.belongsTo = _model.belongsTo;\n  _private2.DS.hasMany = _model.hasMany;\n  _private2.DS.Relationship = _private2.Relationship;\n  _private2.DS._setupContainer = _setupContainer.default;\n  Object.defineProperty(_private2.DS, 'normalizeModelName', {\n    enumerable: true,\n    writable: false,\n    configurable: false,\n    value: _store.normalizeModelName\n  });\n  var _default = _exports.default = _private2.DS;\n});","define(\"ember-data/model\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _model.default;\n    }\n  });\n});","define(\"ember-data/relationships\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"belongsTo\", {\n    enumerable: true,\n    get: function () {\n      return _model.belongsTo;\n    }\n  });\n  Object.defineProperty(_exports, \"hasMany\", {\n    enumerable: true,\n    get: function () {\n      return _model.hasMany;\n    }\n  });\n});","define(\"ember-data/serializer\", [\"exports\", \"@ember-data/serializer\"], function (_exports, _serializer) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _serializer.default;\n    }\n  });\n});","define(\"ember-data/serializers/embedded-records-mixin\", [\"exports\", \"@ember-data/serializer/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rest.EmbeddedRecordsMixin;\n    }\n  });\n});","define(\"ember-data/serializers/json-api\", [\"exports\", \"@ember-data/serializer/json-api\"], function (_exports, _jsonApi) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _jsonApi.default;\n    }\n  });\n});","define(\"ember-data/serializers/json\", [\"exports\", \"@ember-data/serializer/json\"], function (_exports, _json) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _json.default;\n    }\n  });\n});","define(\"ember-data/serializers/rest\", [\"exports\", \"@ember-data/serializer/rest\"], function (_exports, _rest) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _rest.default;\n    }\n  });\n});","define(\"ember-data/setup-container\", [\"exports\", \"@ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = setupContainer;\n  function initializeStore(application) {\n    // we can just use registerOptionsForType when we no longer\n    // support (deprecated) versions of @ember/test-helpers\n    // We're issuing a \"private-api\" deprecation for users of the\n    // deprecated @ember/test-helpers versions, but will keep\n    // this for as long as until 4.0 as needed\n    if (true /* DEBUG */ && !application.registerOptionsForType) {\n      (true && !(false) && Ember.deprecate(`Deprecated test syntax usage detected!\\n\\n\\t` + `This test relies on a deprecated test setup that is no longer supported by EmberData.` + ` To resolve this you will need to be on a recent version of @ember/test-helpers` + ` AND your tests must use \\`setApplication()\\` instead of \\`setResolver()\\` and` + ` \\`module()\\` with \\`setup*Test()\\`instead of \\`moduleFor*()\\`.`, false, {\n        id: 'ember-data:legacy-test-helper-support',\n        until: '3.17'\n      }));\n      application.optionsForType('serializer', {\n        singleton: false\n      });\n      application.optionsForType('adapter', {\n        singleton: false\n      });\n      if (!application.has('service:store')) {\n        application.register('service:store', _store.default);\n      }\n      return;\n    }\n    application.registerOptionsForType('serializer', {\n      singleton: false\n    });\n    application.registerOptionsForType('adapter', {\n      singleton: false\n    });\n    if (!application.hasRegistration('service:store')) {\n      application.register('service:store', _store.default);\n    }\n  }\n  function initializeStoreInjections(application) {\n    var inject = application.inject || application.injection;\n    inject.call(application, 'controller', 'store', 'service:store');\n    inject.call(application, 'route', 'store', 'service:store');\n  }\n  function setupContainer(application) {\n    initializeStoreInjections(application);\n    initializeStore(application);\n  }\n});","define(\"ember-data/store\", [\"exports\", \"@ember-data/store\"], function (_exports, _store) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _store.default;\n    }\n  });\n});","define(\"ember-data/transform\", [\"exports\", \"@ember-data/serializer/transform\"], function (_exports, _transform) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _transform.default;\n    }\n  });\n});","define(\"ember-data/version\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = \"3.24.0\";\n});","define('ember-i18n/config/ar', ['exports', 'ember-i18n/config/constants'], function (exports, _constants) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    rtl: true,\n\n    pluralForm(n) {\n      const mod100 = n % 100;\n\n      if (n === 0) {\n        return _constants.ZERO;\n      }\n      if (n === 1) {\n        return _constants.ONE;\n      }\n      if (n === 2) {\n        return _constants.TWO;\n      }\n      if (mod100 >= 3 && mod100 <= 10) {\n        return _constants.FEW;\n      }\n      if (mod100 >= 11 && mod100 <= 99) {\n        return _constants.MANY;\n      }\n      return _constants.OTHER;\n    }\n  };\n});","define('ember-i18n/config/bn', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/constants', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  const ZERO = exports.ZERO = 'zero';\n  const ONE = exports.ONE = 'one';\n  const TWO = exports.TWO = 'two';\n  const FEW = exports.FEW = 'few';\n  const MANY = exports.MANY = 'many';\n  const OTHER = exports.OTHER = 'other';\n});","define('ember-i18n/config/da', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/de', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define(\"ember-i18n/config/en\", [\"exports\", \"ember-i18n/config/constants\"], function (exports, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    rtl: false,\n\n    pluralForm(n) {\n      if (n === 1) {\n        return _constants.ONE;\n      }\n      return _constants.OTHER;\n    }\n  };\n});","define('ember-i18n/config/es', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/fa', ['exports', 'ember-i18n/config/zh'], function (exports, _zh) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _zh.default;\n});","define(\"ember-i18n/config/fr\", [\"exports\", \"ember-i18n/config/constants\"], function (exports, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    rtl: false,\n\n    pluralForm(n) {\n      if (n >= 0 && n < 2) {\n        return _constants.ONE;\n      }\n      return _constants.OTHER;\n    }\n  };\n});","define('ember-i18n/config/fy', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/he', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    rtl: true,\n\n    pluralForm: _en.default.pluralForm\n  };\n});","define(\"ember-i18n/config/hi\", [\"exports\", \"ember-i18n/config/constants\"], function (exports, _constants) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    rtl: false,\n\n    pluralForm(n) {\n      if (n === 0) {\n        return _constants.ONE;\n      }\n      if (n === 1) {\n        return _constants.ONE;\n      }\n      return _constants.OTHER;\n    }\n  };\n});","define('ember-i18n/config/it', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define(\"ember-i18n/config/iw\", [\"exports\", \"ember-i18n/config/he\"], function (exports, _he) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _he.default;\n});","define('ember-i18n/config/ja', ['exports', 'ember-i18n/config/zh'], function (exports, _zh) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _zh.default;\n});","define('ember-i18n/config/jv', ['exports', 'ember-i18n/config/zh'], function (exports, _zh) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _zh.default;\n});","define('ember-i18n/config/ko', ['exports', 'ember-i18n/config/zh'], function (exports, _zh) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _zh.default;\n});","define('ember-i18n/config/mr', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/ms', ['exports', 'ember-i18n/config/zh'], function (exports, _zh) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _zh.default;\n});","define('ember-i18n/config/nl', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/no', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/pa', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/pl', ['exports', 'ember-i18n/config/constants'], function (exports, _constants) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    rtl: false,\n\n    pluralForm(n) {\n      const mod1 = n % 1;\n      const mod10 = n % 10;\n      const mod100 = n % 100;\n\n      if (n === 1) {\n        return _constants.ONE;\n      }\n      if (mod1 === 0 && mod10 >= 2 && mod10 <= 4 && !(mod100 >= 12 && mod100 <= 14)) {\n        return _constants.FEW;\n      }\n      if (mod1 === 0 && (mod10 === 0 || mod10 === 1 || mod10 >= 5 && mod10 <= 9 || mod100 >= 12 && mod100 <= 14)) {\n        return _constants.MANY;\n      }\n      return _constants.OTHER;\n    }\n  };\n});","define('ember-i18n/config/pt', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/ru', ['exports', 'ember-i18n/config/constants'], function (exports, _constants) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    rtl: false,\n\n    pluralForm(n) {\n      const mod1 = n % 1;\n      const mod10 = n % 10;\n      const mod100 = n % 100;\n\n      if (mod10 === 1 && mod100 !== 11) {\n        return _constants.ONE;\n      }\n      if (mod1 === 0 && mod10 >= 2 && mod10 <= 4 && !(mod100 >= 12 && mod100 <= 14)) {\n        return _constants.FEW;\n      }\n      if (mod1 === 0 && (mod10 === 0 || mod10 >= 5 && mod10 <= 9 || mod100 >= 11 && mod100 <= 14)) {\n        return _constants.MANY;\n      }\n      return _constants.OTHER;\n    }\n  };\n});","define('ember-i18n/config/sv', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/ta', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/te', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/tr', ['exports', 'ember-i18n/config/constants'], function (exports, _constants) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    rtl: false,\n\n    pluralForm() /* n */{\n      return _constants.ONE;\n    }\n  };\n});","define('ember-i18n/config/ur', ['exports', 'ember-i18n/config/en'], function (exports, _en) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _en.default;\n});","define('ember-i18n/config/vi', ['exports', 'ember-i18n/config/zh'], function (exports, _zh) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = _zh.default;\n});","define('ember-i18n/config/zh', ['exports', 'ember-i18n/config/constants'], function (exports, _constants) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    rtl: false,\n\n    pluralForm() /* n */{\n      return _constants.OTHER;\n    }\n  };\n});","define('ember-i18n/helper', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  const get = Ember.get,\n        inject = Ember.inject,\n        Helper = Ember.Helper,\n        EmberObject = Ember.Object,\n        observer = Ember.observer;\n\n\n  function mergedContext(objectContext, hashContext) {\n    return EmberObject.extend({\n      unknownProperty(key) {\n        const fromHash = get(hashContext, key);\n        return fromHash === undefined ? get(objectContext, key) : fromHash;\n      }\n    }).create();\n  }\n\n  exports.default = Helper.extend({\n    i18n: inject.service(),\n\n    compute([key, contextObject = {}], interpolations) {\n      const mergedInterpolations = mergedContext(contextObject, interpolations);\n\n      const i18n = get(this, 'i18n');\n      return i18n.t(key, mergedInterpolations);\n    },\n\n    _recomputeOnLocaleChange: observer('i18n.locale', function () {\n      this.recompute();\n    })\n  });\n});","define(\"ember-i18n/index\", [\"exports\", \"ember-i18n/utils/i18n/compile-template\", \"ember-i18n/services/i18n\", \"ember-i18n/utils/macro\"], function (exports, _compileTemplate, _i18n, _macro) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.translationMacro = exports.Service = exports.compileTemplate = undefined;\n  exports.compileTemplate = _compileTemplate.default;\n  exports.Service = _i18n.default;\n  exports.translationMacro = _macro.default;\n});","define('ember-i18n/initializers/ember-i18n', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    name: 'ember-i18n',\n    initialize() {\n      // No-op.\n    }\n  };\n});","define('ember-i18n/instance-initializers/ember-i18n', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    name: 'ember-i18n',\n    initialize() {\n      // No-op.\n    }\n  };\n});","define(\"ember-i18n/legacy/helper\", [\"exports\", \"ember-i18n/legacy/stream\"], function (exports, _stream) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = tHelper;\n\n\n  const assign = Ember.assign || Ember.merge;\n\n  function tHelper([i18nKey, contextObject = { value: () => {} }], hash, options, env) {\n    const i18n = env.data.view.container.lookup('service:i18n');\n\n    var out = new _stream.default(function () {\n      const value = i18nKey.isStream ? i18nKey.value() : i18nKey;\n\n      const contextObjectValue = contextObject.value();\n      const mergedHash = {};\n      assign(mergedHash, contextObjectValue);\n      assign(mergedHash, hash);\n\n      return value === undefined ? '' : i18n.t(value, (0, _stream.readHash)(mergedHash));\n    });\n\n    // Once the view is destroyed destroy the steam as well\n    env.data.view.one('willDestroyElement', out, function () {\n      this.destroy();\n    });\n\n    if (contextObject && contextObject.isStream) {\n      contextObject.subscribe(out.notify, out);\n    }\n\n    // observe any hash arguments that are streams:\n    Object.keys(hash).forEach(function (key) {\n      const value = hash[key];\n\n      if (value && value.isStream) {\n        value.subscribe(out.notify, out);\n      }\n    });\n\n    // observe the locale:\n    i18n.localeStream.subscribe(out.notify, out);\n\n    // if the i18n key itself is dynamic, observe it:\n    if (i18nKey.isStream) {\n      i18nKey.subscribe(out.notify, out);\n    }\n\n    return out;\n  }\n});","define(\"ember-i18n/legacy/initializer\", [\"exports\", \"ember-i18n/legacy/stream\", \"ember-i18n/legacy/helper\"], function (exports, _stream, _helper) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    name: 'ember-i18n-legacy-helper',\n\n    initialize(registry) {\n      const i18n = registry.lookup('service:i18n');\n\n      i18n.localeStream = new _stream.default(function () {\n        return i18n.get('locale');\n      });\n\n      Ember.addObserver(i18n, 'locale', i18n, function () {\n        this.localeStream.value(); // force the stream to be dirty\n        this.localeStream.notify();\n      });\n\n      Ember.HTMLBars._registerHelper('t', _helper.default);\n    }\n  };\n});","define('ember-i18n/legacy/stream', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = Ember.__loader.require('ember-metal/streams/stream')['default'];\n  const readHash = exports.readHash = Ember.__loader.require('ember-metal/streams/utils').readHash;\n});","define(\"ember-i18n/services/i18n\", [\"exports\", \"ember-i18n/utils/locale\", \"ember-i18n/utils/add-translations\", \"ember-i18n/utils/get-locales\"], function (exports, _locale, _addTranslations, _getLocales) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  const assert = Ember.assert,\n        computed = Ember.computed,\n        get = Ember.get,\n        Evented = Ember.Evented,\n        makeArray = Ember.makeArray,\n        on = Ember.on,\n        typeOf = Ember.typeOf,\n        warn = Ember.warn,\n        getOwner = Ember.getOwner;\n\n  const Parent = Ember.Service || Ember.Object;\n\n  // @public\n  exports.default = Parent.extend(Evented, {\n    // @public\n    // The user's locale.\n    locale: null,\n\n    // @public\n    // A list of found locales.\n    locales: computed(_getLocales.default),\n\n    // @public\n    //\n    // Returns the translation `key` interpolated with `data`\n    // in the current `locale`.\n    t(key, data = {}) {\n      Ember.deprecate('locale is a reserved attribute', data['locale'] === undefined, {\n        id: 'ember-i18n.reserve-locale',\n        until: '5.0.0'\n      });\n\n      Ember.deprecate('htmlSafe is a reserved attribute', data['htmlSafe'] === undefined, {\n        id: 'ember-i18n.reserve-htmlSafe',\n        until: '5.0.0'\n      });\n\n      const locale = this.get('_locale');\n      assert(\"I18n: Cannot translate when locale is null\", locale);\n      const count = get(data, 'count');\n\n      const defaults = makeArray(get(data, 'default'));\n\n      defaults.unshift(key);\n      const template = locale.getCompiledTemplate(defaults, count);\n\n      if (template._isMissing) {\n        this.trigger('missing', this.get('locale'), key, data);\n      }\n\n      return template(data);\n    },\n\n    // @public\n    exists(key, data = {}) {\n      const locale = this.get('_locale');\n      assert(\"I18n: Cannot check existance when locale is null\", locale);\n      const count = get(data, 'count');\n\n      const translation = locale.findTranslation(makeArray(key), count);\n      return typeOf(translation.result) !== 'undefined' && !translation.result._isMissing;\n    },\n\n    // @public\n    addTranslations(locale, translations) {\n      (0, _addTranslations.default)(locale, translations, getOwner(this));\n      this._addLocale(locale);\n\n      if (this.get('locale').indexOf(locale) === 0) {\n        this.get('_locale').rebuild();\n      }\n    },\n\n    // @private\n    _initDefaults: on('init', function () {\n      let owner = getOwner(this);\n      let ENV = owner.factoryFor('config:environment').class;\n\n      if (this.get('locale') == null) {\n        var defaultLocale = (ENV.i18n || {}).defaultLocale;\n        if (defaultLocale == null) {\n          warn('ember-i18n did not find a default locale; falling back to \"en\".', false, {\n            id: 'ember-i18n.default-locale'\n          });\n\n          defaultLocale = 'en';\n        }\n        this.set('locale', defaultLocale);\n      }\n    }),\n\n    // @private\n    //\n    // adds a runtime locale to the array of locales on disk\n    _addLocale(locale) {\n      this.get('locales').addObject(locale);\n    },\n\n    _locale: computed('locale', function () {\n      const locale = this.get('locale');\n\n      return locale ? new _locale.default(this.get('locale'), getOwner(this)) : null;\n    })\n  });\n});","define(\"ember-i18n/utils/add-translations\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = addTranslations;\n\n\n  const assign = Ember.assign || Ember.merge;\n\n  function addTranslations(locale, newTranslations, owner) {\n    const key = `locale:${locale}/translations`;\n    let factory = owner.factoryFor(key);\n    let existingTranslations = factory && factory.class;\n\n    if (existingTranslations == null) {\n      existingTranslations = {};\n      owner.register(key, existingTranslations);\n    }\n\n    assign(existingTranslations, newTranslations);\n  }\n});","define('ember-i18n/utils/get-locales', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = getLocales;\n\n\n  const matchKey = '/locales/(.+)/translations$';\n\n  function getLocales() {\n    return Object.keys(require.entries).reduce((locales, module) => {\n      var match = module.match(matchKey);\n      if (match) {\n        locales.pushObject(match[1]);\n      }\n      return locales;\n    }, Ember.A()).sort();\n  }\n});","define(\"ember-i18n/utils/i18n/compile-template\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = compileTemplate;\n\n\n  const htmlSafe = Ember.String.htmlSafe;\n  const get = Ember.get;\n  const escapeExpression = Ember.Handlebars.Utils.escapeExpression;\n  const tripleStache = /\\{\\{\\{\\s*(.*?)\\s*\\}\\}\\}/g;\n  const doubleStache = /\\{\\{\\s*(.*?)\\s*\\}\\}/g;\n\n  // @public\n  //\n  // Compile a translation template.\n  //\n  // To override this, define `util:i18n/compile-template` with\n  // the signature\n  // `Function(String, Boolean) -> Function(Object) -> String`.\n  function compileTemplate(template, rtl = false) {\n    return function renderTemplate(data) {\n      const result = template.replace(tripleStache, (i, match) => get(data, match)).replace(doubleStache, (i, match) => escapeExpression(get(data, match)));\n\n      const wrapped = rtl ? `\\u202B${result}\\u202C` : result;\n\n      return htmlSafe(wrapped);\n    };\n  }\n});","define(\"ember-i18n/utils/i18n/missing-message\", [\"exports\"], function (exports) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = missingMessage;\n  // @public\n  //\n  // Generate a \"missing template\" message that will be used\n  // as a translation.\n  //\n  // To override this, define `util:i18n/missing-message` with\n  // the signature\n  //\n  // `Function(String, String, Object) -> String`.\n  function missingMessage(locale, key /*, data */) {\n    return `Missing translation: ${key}`;\n  }\n});","define('ember-i18n/utils/locale', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  const assert = Ember.assert,\n        typeOf = Ember.typeOf,\n        warn = Ember.warn;\n\n  const assign = Ember.assign || Ember.merge;\n\n  // @private\n  //\n  // This class is the work-horse of localization look-up.\n  function Locale(id, owner) {\n    // On Construction:\n    //  1. look for translations in the locale (e.g. pt-BR) and all parent\n    //     locales (e.g. pt), flatten any nested keys, and then merge them.\n    //  2. walk through the configs from most specific to least specific\n    //     and use the first value for `rtl` and `pluralForm`\n    //  3. Default `rtl` to `false`\n    //  4. Ensure `pluralForm` is defined\n    this.id = id;\n    this.owner = owner;\n    this.rebuild();\n  }\n\n  Locale.prototype = {\n    rebuild() {\n      this.translations = getFlattenedTranslations(this.id, this.owner);\n      this._setConfig();\n    },\n\n    _setConfig() {\n      walkConfigs(this.id, this.owner, config => {\n        if (this.rtl === undefined) {\n          this.rtl = config.rtl;\n        }\n        if (this.pluralForm === undefined) {\n          this.pluralForm = config.pluralForm;\n        }\n      });\n\n      // Exit early if we already have an RTL and pluralForm config set\n      if (this.rtl !== undefined && this.pluralForm !== undefined) {\n        return;\n      }\n\n      let defaultConfigFactory = this.owner.factoryFor('ember-i18n@config:zh');\n      let defaultConfig = defaultConfigFactory ? defaultConfigFactory.class : null;\n\n      if (this.rtl === undefined) {\n        warn(`ember-i18n: No RTL configuration found for ${this.id}.`, false, { id: 'ember-i18n.no-rtl-configuration' });\n        this.rtl = defaultConfig.rtl;\n      }\n\n      if (this.pluralForm === undefined) {\n        warn(`ember-i18n: No pluralForm configuration found for ${this.id}.`, false, { id: 'ember-i18n.no-plural-form' });\n        this.pluralForm = defaultConfig.pluralForm;\n      }\n    },\n\n    getCompiledTemplate(fallbackChain, count) {\n      let translation = this.findTranslation(fallbackChain, count);\n      let result = translation.result;\n\n      if (typeOf(result) === 'number') {\n        result = result.toString();\n      }\n\n      if (typeOf(result) === 'string') {\n        result = this._compileTemplate(translation.key, result);\n      }\n\n      if (result == null) {\n        result = this._defineMissingTranslationTemplate(fallbackChain[0]);\n      }\n\n      assert(`Template for ${translation.key} in ${this.id} is not a function`, typeOf(result) === 'function');\n\n      return result;\n    },\n\n    findTranslation(fallbackChain, count) {\n      if (this.translations === undefined) {\n        this._init();\n      }\n\n      let result;\n      let i;\n      for (i = 0; i < fallbackChain.length; i++) {\n        let key = fallbackChain[i];\n        if (count != null) {\n          const inflection = this.pluralForm(+count);\n          result = this.translations[`${key}.${inflection}`];\n        }\n\n        if (result == null) {\n          result = this.translations[key];\n        }\n\n        if (result) {\n          break;\n        }\n      }\n\n      return {\n        key: fallbackChain[i],\n        result: result\n      };\n    },\n\n    _defineMissingTranslationTemplate(key) {\n      const i18n = this.owner.lookup('service:i18n');\n      const locale = this.id;\n      let missingMessage = this.owner.factoryFor('util:i18n/missing-message').class;\n\n      function missingTranslation(data) {\n        return missingMessage.call(i18n, locale, key, data);\n      }\n\n      missingTranslation._isMissing = true;\n      this.translations[key] = missingTranslation;\n      return missingTranslation;\n    },\n\n    _compileTemplate(key, string) {\n      let compile = this.owner.factoryFor('util:i18n/compile-template').class;\n      const template = compile(string, this.rtl);\n      this.translations[key] = template;\n      return template;\n    }\n  };\n\n  function getFlattenedTranslations(id, owner) {\n    const result = {};\n\n    const parentId = parentLocale(id);\n    if (parentId) {\n      assign(result, getFlattenedTranslations(parentId, owner));\n    }\n\n    let envConfig = owner.factoryFor('config:environment').class;\n    let ENV = envConfig.i18n || {};\n    let defaultLocale = ENV.defaultLocale;\n    let defaultFallback = ENV.defaultFallback;\n    if (defaultFallback && defaultLocale && defaultLocale !== id) {\n      let defaultFactory = owner.factoryFor(`locale:${defaultLocale}/translations`);\n      let defaultTranslations = defaultFactory && defaultFactory.class;\n      assign(result, withFlattenedKeys(defaultTranslations || {}));\n    }\n\n    let factory = owner.factoryFor(`locale:${id}/translations`);\n    let translations = factory && factory.class;\n    assign(result, withFlattenedKeys(translations || {}));\n\n    return result;\n  }\n\n  // Walk up confiugration objects from most specific to least.\n  function walkConfigs(id, owner, fn) {\n    let maybeAppConfig = owner.factoryFor(`locale:${id}/config`);\n    let appConfig = maybeAppConfig && maybeAppConfig.class;\n    if (appConfig) {\n      fn(appConfig);\n    }\n\n    let maybeAddonConfig = owner.factoryFor(`ember-i18n@config:${id}`);\n    let addonConfig = maybeAddonConfig && maybeAddonConfig.class;\n    if (addonConfig) {\n      fn(addonConfig);\n    }\n\n    const parentId = parentLocale(id);\n    if (parentId) {\n      walkConfigs(parentId, owner, fn);\n    }\n  }\n\n  function parentLocale(id) {\n    const lastDash = id.lastIndexOf('-');\n    return lastDash > 0 ? id.substr(0, lastDash) : null;\n  }\n\n  function withFlattenedKeys(object) {\n    const result = {};\n\n    Object.keys(object).forEach(function (key) {\n      var value = object[key];\n\n      if (typeOf(value) === 'object') {\n        value = withFlattenedKeys(value);\n\n        Object.keys(value).forEach(function (suffix) {\n          result[`${key}.${suffix}`] = value[suffix];\n        });\n      } else {\n        result[key] = value;\n      }\n    });\n\n    return result;\n  }\n\n  exports.default = Locale;\n});","define('ember-i18n/utils/macro', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = createTranslatedComputedProperty;\n\n\n  const keys = Object.keys;\n  const get = Ember.get;\n\n  // @public\n  function createTranslatedComputedProperty(key, interpolations = {}) {\n    const dependencies = ['i18n.locale'].concat(values(interpolations));\n\n    return Ember.computed(...dependencies, function () {\n      const i18n = get(this, 'i18n');\n      Ember.assert(`Cannot translate ${key}. ${this} does not have an i18n.`, i18n);\n      return i18n.t(key, mapPropertiesByHash(this, interpolations));\n    });\n  }\n\n  function values(object) {\n    return keys(object).map(key => object[key]);\n  }\n\n  function mapPropertiesByHash(object, hash) {\n    const result = {};\n\n    keys(hash).forEach(function (key) {\n      result[key] = get(object, hash[key]);\n    });\n\n    return result;\n  }\n});","define('ember-inflector/index', ['exports', 'ember-inflector/lib/system', 'ember-inflector/lib/ext/string'], function (exports, _system) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.defaultRules = exports.singularize = exports.pluralize = undefined;\n\n\n  _system.Inflector.defaultRules = _system.defaultRules;\n\n  Object.defineProperty(Ember, 'Inflector', {\n    get() {\n      Ember.deprecate(`Ember.Inflector is deprecated. Please explicitly: import Inflector from 'ember-inflector';`, false, {\n        id: 'ember-inflector.globals',\n        until: '3.0.0'\n      });\n\n      return _system.Inflector;\n    }\n  }, { configurable: true });\n\n  Object.defineProperty(Ember.String, 'singularize', {\n    get() {\n      Ember.deprecate(`Ember.String.singularize() is deprecated. Please explicitly: import { singularize } from 'ember-inflector';`, false, {\n        id: 'ember-inflector.globals',\n        until: '3.0.0'\n      });\n\n      return _system.singularize;\n    }\n  }, { configurable: true });\n\n  Object.defineProperty(Ember.String, 'pluralize', {\n    get() {\n      Ember.deprecate(`Ember.String.pluralize() is deprecated. Please explicitly: import { pluralize } from 'ember-inflector';`, false, {\n        id: 'ember-inflector.globals',\n        until: '3.0.0'\n      });\n\n      return _system.pluralize;\n    }\n  }, { configurable: true });\n\n  exports.default = _system.Inflector;\n  exports.pluralize = _system.pluralize;\n  exports.singularize = _system.singularize;\n  exports.defaultRules = _system.defaultRules;\n});","define('ember-inflector/lib/ext/string', ['ember-inflector/lib/system/string'], function (_string) {\n  'use strict';\n\n  if (Ember.ENV.EXTEND_PROTOTYPES === true || Ember.ENV.EXTEND_PROTOTYPES.String) {\n    /**\n      See {{#crossLink \"Ember.String/pluralize\"}}{{/crossLink}}\n       @method pluralize\n      @for String\n    */\n    Object.defineProperty(String.prototype, 'pluralize', {\n      get() {\n        Ember.deprecate(`String.prototype.pluralize() is deprecated. Please explicitly: import { pluralize } from 'ember-inflector';`, false, {\n          id: 'ember-inflector.globals',\n          until: '3.0.0'\n        });\n\n        return function () {\n          return (0, _string.pluralize)(this);\n        };\n      }\n    }, { configurable: true });\n\n    /**\n      See {{#crossLink \"Ember.String/singularize\"}}{{/crossLink}}\n       @method singularize\n      @for String\n    */\n    Object.defineProperty(String.prototype, 'singularize', {\n      get() {\n        Ember.deprecate(`String.prototype.singularize() is deprecated. Please explicitly: import { singularize } from 'ember-inflector';`, false, {\n          id: 'ember-inflector.globals',\n          until: '3.0.0'\n        });\n\n        return function () {\n          return (0, _string.singularize)(this);\n        };\n      }\n    }, { configurable: true });\n  }\n});","define('ember-inflector/lib/helpers/pluralize', ['exports', 'ember-inflector', 'ember-inflector/lib/utils/make-helper'], function (exports, _emberInflector, _makeHelper) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = (0, _makeHelper.default)(function (params, hash) {\n    let fullParams = new Array(...params);\n\n    if (fullParams.length === 2) {\n      fullParams.push({ withoutCount: hash[\"without-count\"] });\n    }\n\n    return (0, _emberInflector.pluralize)(...fullParams);\n  });\n});","define('ember-inflector/lib/helpers/singularize', ['exports', 'ember-inflector', 'ember-inflector/lib/utils/make-helper'], function (exports, _emberInflector, _makeHelper) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = (0, _makeHelper.default)(function (params) {\n    return (0, _emberInflector.singularize)(params[0]);\n  });\n});","define(\"ember-inflector/lib/system\", [\"exports\", \"ember-inflector/lib/system/inflector\", \"ember-inflector/lib/system/string\", \"ember-inflector/lib/system/inflections\"], function (exports, _inflector, _string, _inflections) {\n  \"use strict\";\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.defaultRules = exports.pluralize = exports.singularize = exports.Inflector = undefined;\n\n\n  _inflector.default.inflector = new _inflector.default(_inflections.default);\n\n  exports.Inflector = _inflector.default;\n  exports.singularize = _string.singularize;\n  exports.pluralize = _string.pluralize;\n  exports.defaultRules = _inflections.default;\n});","define('ember-inflector/lib/system/inflections', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = {\n    plurals: [[/$/, 's'], [/s$/i, 's'], [/^(ax|test)is$/i, '$1es'], [/(octop|vir)us$/i, '$1i'], [/(octop|vir)i$/i, '$1i'], [/(alias|status|bonus)$/i, '$1es'], [/(bu)s$/i, '$1ses'], [/(buffal|tomat)o$/i, '$1oes'], [/([ti])um$/i, '$1a'], [/([ti])a$/i, '$1a'], [/sis$/i, 'ses'], [/(?:([^f])fe|([lr])f)$/i, '$1$2ves'], [/(hive)$/i, '$1s'], [/([^aeiouy]|qu)y$/i, '$1ies'], [/(x|ch|ss|sh)$/i, '$1es'], [/(matr|vert|ind)(?:ix|ex)$/i, '$1ices'], [/^(m|l)ouse$/i, '$1ice'], [/^(m|l)ice$/i, '$1ice'], [/^(ox)$/i, '$1en'], [/^(oxen)$/i, '$1'], [/(quiz)$/i, '$1zes']],\n\n    singular: [[/s$/i, ''], [/(ss)$/i, '$1'], [/(n)ews$/i, '$1ews'], [/([ti])a$/i, '$1um'], [/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)(sis|ses)$/i, '$1sis'], [/(^analy)(sis|ses)$/i, '$1sis'], [/([^f])ves$/i, '$1fe'], [/(hive)s$/i, '$1'], [/(tive)s$/i, '$1'], [/([lr])ves$/i, '$1f'], [/([^aeiouy]|qu)ies$/i, '$1y'], [/(s)eries$/i, '$1eries'], [/(m)ovies$/i, '$1ovie'], [/(x|ch|ss|sh)es$/i, '$1'], [/^(m|l)ice$/i, '$1ouse'], [/(bus)(es)?$/i, '$1'], [/(o)es$/i, '$1'], [/(shoe)s$/i, '$1'], [/(cris|test)(is|es)$/i, '$1is'], [/^(a)x[ie]s$/i, '$1xis'], [/(octop|vir)(us|i)$/i, '$1us'], [/(alias|status|bonus)(es)?$/i, '$1'], [/^(ox)en/i, '$1'], [/(vert|ind)ices$/i, '$1ex'], [/(matr)ices$/i, '$1ix'], [/(quiz)zes$/i, '$1'], [/(database)s$/i, '$1']],\n\n    irregularPairs: [['person', 'people'], ['man', 'men'], ['child', 'children'], ['sex', 'sexes'], ['move', 'moves'], ['cow', 'kine'], ['zombie', 'zombies']],\n\n    uncountable: ['equipment', 'information', 'rice', 'money', 'species', 'series', 'fish', 'sheep', 'jeans', 'police']\n  };\n});","define('ember-inflector/lib/system/inflector', ['exports', '@ember/string'], function (exports, _string) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n\n\n  const BLANK_REGEX = /^\\s*$/;\n  const LAST_WORD_DASHED_REGEX = /([\\w/-]+[_/\\s-])([a-z\\d]+$)/;\n  const LAST_WORD_CAMELIZED_REGEX = /([\\w/\\s-]+)([A-Z][a-z\\d]*$)/;\n  const CAMELIZED_REGEX = /[A-Z][a-z\\d]*$/;\n\n  function loadUncountable(rules, uncountable) {\n    for (let i = 0, length = uncountable.length; i < length; i++) {\n      rules.uncountable[uncountable[i].toLowerCase()] = true;\n    }\n  }\n\n  function loadIrregular(rules, irregularPairs) {\n    let pair;\n\n    for (let i = 0, length = irregularPairs.length; i < length; i++) {\n      pair = irregularPairs[i];\n\n      //pluralizing\n      rules.irregular[pair[0].toLowerCase()] = pair[1];\n      rules.irregular[pair[1].toLowerCase()] = pair[1];\n\n      //singularizing\n      rules.irregularInverse[pair[1].toLowerCase()] = pair[0];\n      rules.irregularInverse[pair[0].toLowerCase()] = pair[0];\n    }\n  }\n\n  /**\n    Inflector.Ember provides a mechanism for supplying inflection rules for your\n    application. Ember includes a default set of inflection rules, and provides an\n    API for providing additional rules.\n  \n    Examples:\n  \n    Creating an inflector with no rules.\n  \n    ```js\n    var inflector = new Ember.Inflector();\n    ```\n  \n    Creating an inflector with the default ember ruleset.\n  \n    ```js\n    var inflector = new Ember.Inflector(Ember.Inflector.defaultRules);\n  \n    inflector.pluralize('cow'); //=> 'kine'\n    inflector.singularize('kine'); //=> 'cow'\n    ```\n  \n    Creating an inflector and adding rules later.\n  \n    ```javascript\n    var inflector = Ember.Inflector.inflector;\n  \n    inflector.pluralize('advice'); // => 'advices'\n    inflector.uncountable('advice');\n    inflector.pluralize('advice'); // => 'advice'\n  \n    inflector.pluralize('formula'); // => 'formulas'\n    inflector.irregular('formula', 'formulae');\n    inflector.pluralize('formula'); // => 'formulae'\n  \n    // you would not need to add these as they are the default rules\n    inflector.plural(/$/, 's');\n    inflector.singular(/s$/i, '');\n    ```\n  \n    Creating an inflector with a nondefault ruleset.\n  \n    ```javascript\n    var rules = {\n      plurals:  [\n        [ /$/, 's' ]\n      ],\n      singular: [\n        [ /\\s$/, '' ]\n      ],\n      irregularPairs: [\n        [ 'cow', 'kine' ]\n      ],\n      uncountable: [ 'fish' ]\n    };\n  \n    var inflector = new Ember.Inflector(rules);\n    ```\n  \n    @class Inflector\n    @namespace Ember\n  */\n  function Inflector(ruleSet) {\n    ruleSet = ruleSet || {};\n    ruleSet.uncountable = ruleSet.uncountable || makeDictionary();\n    ruleSet.irregularPairs = ruleSet.irregularPairs || makeDictionary();\n\n    const rules = this.rules = {\n      plurals: ruleSet.plurals || [],\n      singular: ruleSet.singular || [],\n      irregular: makeDictionary(),\n      irregularInverse: makeDictionary(),\n      uncountable: makeDictionary()\n    };\n\n    loadUncountable(rules, ruleSet.uncountable);\n    loadIrregular(rules, ruleSet.irregularPairs);\n\n    this.enableCache();\n  }\n\n  if (!Object.create && !Object.create(null).hasOwnProperty) {\n    throw new Error(\"This browser does not support Object.create(null), please polyfil with es5-sham: http://git.io/yBU2rg\");\n  }\n\n  function makeDictionary() {\n    var cache = Object.create(null);\n    cache['_dict'] = null;\n    delete cache['_dict'];\n    return cache;\n  }\n\n  Inflector.prototype = {\n    /**\n      @public\n       As inflections can be costly, and commonly the same subset of words are repeatedly\n      inflected an optional cache is provided.\n       @method enableCache\n    */\n    enableCache() {\n      this.purgeCache();\n\n      this.singularize = function (word) {\n        this._cacheUsed = true;\n        return this._sCache[word] || (this._sCache[word] = this._singularize(word));\n      };\n\n      this.pluralize = function (numberOrWord, word, options = {}) {\n        this._cacheUsed = true;\n        var cacheKey = [numberOrWord, word, options.withoutCount];\n        return this._pCache[cacheKey] || (this._pCache[cacheKey] = this._pluralize(numberOrWord, word, options));\n      };\n    },\n\n    /**\n      @public\n       @method purgedCache\n    */\n    purgeCache() {\n      this._cacheUsed = false;\n      this._sCache = makeDictionary();\n      this._pCache = makeDictionary();\n    },\n\n    /**\n      @public\n      disable caching\n       @method disableCache;\n    */\n    disableCache() {\n      this._sCache = null;\n      this._pCache = null;\n      this.singularize = function (word) {\n        return this._singularize(word);\n      };\n\n      this.pluralize = function () {\n        return this._pluralize(...arguments);\n      };\n    },\n\n    /**\n      @method plural\n      @param {RegExp} regex\n      @param {String} string\n    */\n    plural(regex, string) {\n      if (this._cacheUsed) {\n        this.purgeCache();\n      }\n      this.rules.plurals.push([regex, string.toLowerCase()]);\n    },\n\n    /**\n      @method singular\n      @param {RegExp} regex\n      @param {String} string\n    */\n    singular(regex, string) {\n      if (this._cacheUsed) {\n        this.purgeCache();\n      }\n      this.rules.singular.push([regex, string.toLowerCase()]);\n    },\n\n    /**\n      @method uncountable\n      @param {String} regex\n    */\n    uncountable(string) {\n      if (this._cacheUsed) {\n        this.purgeCache();\n      }\n      loadUncountable(this.rules, [string.toLowerCase()]);\n    },\n\n    /**\n      @method irregular\n      @param {String} singular\n      @param {String} plural\n    */\n    irregular(singular, plural) {\n      if (this._cacheUsed) {\n        this.purgeCache();\n      }\n      loadIrregular(this.rules, [[singular, plural]]);\n    },\n\n    /**\n      @method pluralize\n      @param {String} word\n    */\n    pluralize() {\n      return this._pluralize(...arguments);\n    },\n\n    _pluralize(wordOrCount, word, options = {}) {\n      if (word === undefined) {\n        return this.inflect(wordOrCount, this.rules.plurals, this.rules.irregular);\n      }\n\n      if (parseFloat(wordOrCount) !== 1) {\n        word = this.inflect(word, this.rules.plurals, this.rules.irregular);\n      }\n\n      return options.withoutCount ? word : `${wordOrCount} ${word}`;\n    },\n    /**\n      @method singularize\n      @param {String} word\n    */\n    singularize(word) {\n      return this._singularize(word);\n    },\n\n    _singularize(word) {\n      return this.inflect(word, this.rules.singular, this.rules.irregularInverse);\n    },\n\n    /**\n      @protected\n       @method inflect\n      @param {String} word\n      @param {Object} typeRules\n      @param {Object} irregular\n    */\n    inflect(word, typeRules, irregular) {\n      let inflection, substitution, result, lowercase, wordSplit, lastWord, isBlank, isCamelized, rule, isUncountable;\n\n      isBlank = !word || BLANK_REGEX.test(word);\n      isCamelized = CAMELIZED_REGEX.test(word);\n\n      if (isBlank) {\n        return word;\n      }\n\n      lowercase = word.toLowerCase();\n      wordSplit = LAST_WORD_DASHED_REGEX.exec(word) || LAST_WORD_CAMELIZED_REGEX.exec(word);\n\n      if (wordSplit) {\n        lastWord = wordSplit[2].toLowerCase();\n      }\n\n      isUncountable = this.rules.uncountable[lowercase] || this.rules.uncountable[lastWord];\n\n      if (isUncountable) {\n        return word;\n      }\n\n      for (rule in irregular) {\n        if (lowercase.match(rule + \"$\")) {\n          substitution = irregular[rule];\n\n          if (isCamelized && irregular[lastWord]) {\n            substitution = (0, _string.capitalize)(substitution);\n            rule = (0, _string.capitalize)(rule);\n          }\n\n          return word.replace(new RegExp(rule, 'i'), substitution);\n        }\n      }\n\n      for (var i = typeRules.length, min = 0; i > min; i--) {\n        inflection = typeRules[i - 1];\n        rule = inflection[0];\n\n        if (rule.test(word)) {\n          break;\n        }\n      }\n\n      inflection = inflection || [];\n\n      rule = inflection[0];\n      substitution = inflection[1];\n\n      result = word.replace(rule, substitution);\n\n      return result;\n    }\n  };\n\n  exports.default = Inflector;\n});","define('ember-inflector/lib/system/string', ['exports', 'ember-inflector/lib/system/inflector'], function (exports, _inflector) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.singularize = exports.pluralize = undefined;\n\n\n  function pluralize() {\n    return _inflector.default.inflector.pluralize(...arguments);\n  }\n\n  function singularize(word) {\n    return _inflector.default.inflector.singularize(word);\n  }\n\n  exports.pluralize = pluralize;\n  exports.singularize = singularize;\n});","define('ember-inflector/lib/utils/make-helper', ['exports'], function (exports) {\n  'use strict';\n\n  Object.defineProperty(exports, \"__esModule\", {\n    value: true\n  });\n  exports.default = makeHelper;\n  function makeHelper(helperFunction) {\n    if (Ember.Helper) {\n      return Ember.Helper.helper(helperFunction);\n    }\n    if (Ember.HTMLBars) {\n      return Ember.HTMLBars.makeBoundHelper(helperFunction);\n    }\n    return Ember.Handlebars.makeBoundHelper(helperFunction);\n  }\n});","define(\"ember-load-initializers/index\", [\"exports\", \"require\"], function (_exports, _require) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = loadInitializers;\n  function resolveInitializer(moduleName) {\n    var module = (0, _require.default)(moduleName, null, null, true);\n    if (!module) {\n      throw new Error(moduleName + ' must export an initializer.');\n    }\n    var initializer = module['default'];\n    if (!initializer) {\n      throw new Error(moduleName + ' must have a default export');\n    }\n    if (!initializer.name) {\n      initializer.name = moduleName.slice(moduleName.lastIndexOf('/') + 1);\n    }\n    return initializer;\n  }\n  function registerInitializers(app, moduleNames) {\n    for (var i = 0; i < moduleNames.length; i++) {\n      app.initializer(resolveInitializer(moduleNames[i]));\n    }\n  }\n  function registerInstanceInitializers(app, moduleNames) {\n    for (var i = 0; i < moduleNames.length; i++) {\n      app.instanceInitializer(resolveInitializer(moduleNames[i]));\n    }\n  }\n  function _endsWith(str, suffix) {\n    return str.indexOf(suffix, str.length - suffix.length) !== -1;\n  }\n\n  /**\n   * Configure your application as it boots\n   */\n  function loadInitializers(app, prefix) {\n    var initializerPrefix = prefix + '/initializers/';\n    var instanceInitializerPrefix = prefix + '/instance-initializers/';\n    var initializers = [];\n    var instanceInitializers = [];\n    // this is 2 pass because generally the first pass is the problem\n    // and is reduced, and resolveInitializer has potential to deopt\n    var moduleNames = Object.keys(requirejs._eak_seen);\n    for (var i = 0; i < moduleNames.length; i++) {\n      var moduleName = moduleNames[i];\n      if (moduleName.lastIndexOf(initializerPrefix, 0) === 0) {\n        if (!_endsWith(moduleName, '-test')) {\n          initializers.push(moduleName);\n        }\n      } else if (moduleName.lastIndexOf(instanceInitializerPrefix, 0) === 0) {\n        if (!_endsWith(moduleName, '-test')) {\n          instanceInitializers.push(moduleName);\n        }\n      }\n    }\n    registerInitializers(app, initializers);\n    registerInstanceInitializers(app, instanceInitializers);\n  }\n});","define(\"ember-mx/breakpoints\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = {\n    mobile: '(max-width: 767px)',\n    tablet: '(min-width: 768px) and (max-width: 991px)',\n    desktop: '(min-width: 992px) and (max-width: 1200px)'\n  };\n});","define(\"ember-mx/components/mx-button-bar\", [\"exports\", \"ember-mx/templates/components/mx-button-bar\"], function (_exports, _mxButtonBar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/component\",0,\"ember-mx/templates/components/mx-button-bar\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible to render a bootstrap panel.\n   * @author bcpoiri\n   * @extends Ember.Component\n   * @class MxButtonBar\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxButtonBar.default,\n    /**\n     * CSS classes rendered.\n     * @default mx-btn-bar\n     */\n    classNames: ['mx-btn-bar'],\n    /**\n     * Optional CSS classes rendered.\n     */\n    classNameBindings: ['responsiveBreakpointClass'],\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['role', 'testAutomationId:data-test-automation-id'],\n    /**\n     * Accessibility role.\n     */\n    role: 'toolbar',\n    /**\n     * Returns the responsive breakpoint class based on the responsiveBreakpoint option.\n     * The following value are supported for the responsive breakpoint:\n     * \t\t- xs\n     * \t\t- extra-small\n     * \t\t- sm\n     * \t\t- small\n     * \t\t- md\n     * \t\t- medium\n     * \t\t- lg\n     * \t\t- large\n     *\n     * \t@returns {string}\n     */\n    responsiveBreakpointClass: Ember.computed('responsiveBreakpoint', function () {\n      switch (this.responsiveBreakpoint) {\n        case 'xs':\n        case 'extra-small':\n          return 'btn-xs-responsive';\n        case 'sm':\n        case 'small':\n          return 'btn-sm-responsive';\n        case 'md':\n        case 'medium':\n          return 'btn-md-responsive';\n        case 'lg':\n        case 'large':\n          return 'btn-lg-responsive';\n        default:\n          return null;\n      }\n    })\n  });\n});","define(\"ember-mx/components/mx-button\", [\"exports\", \"ember-mx/mixins/mx-button\", \"ember-mx/mixins/mx-parsley-utils\", \"ember-mx/mixins/mx-focus\", \"ember-mx/mixins/mx-id\", \"ember-mx/templates/components/mx-button\"], function (_exports, _mxButton, _mxParsleyUtils, _mxFocus, _mxId, _mxButton2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/component\",0,\"ember-mx/mixins/mx-button\",0,\"ember-mx/mixins/mx-parsley-utils\",0,\"ember-mx/mixins/mx-focus\",0,\"ember-mx/mixins/mx-id\",0,\"ember-mx/templates/components/mx-button\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible to render a button.\n   *\n   * @author bcpoiri\n   * @class MxButton\n   * @module Component\n   * @extends Ember.Component\n   * @uses MxParsleyUtilsMixin, MxFocusMixin, MxButtonMixin\n   * @element mx-button\n   */\n  var _default = _exports.default = Ember.Component.extend(_mxParsleyUtils.default, _mxFocus.default, _mxButton.default, _mxId.default, {\n    /**\n     * Component layout.\n     */\n    layout: _mxButton2.default,\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['buttonType:type', 'role', 'autoFocus:autofocus', 'tabIndex:tabindex', 'testAutomationIdControl:data-test-automation-id'],\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['btn', 'mx-button'],\n    /**\n     * Optional CSS classes rendered.\n     */\n    classNameBindings: ['contextClass', 'sizeClass', 'blockClass', 'activeClass'],\n    /**\n     * Renders a button HTML tag.\n     */\n    tagName: 'button',\n    /**\n     * This options controls the type of button.\n     *\n     * The following types are supported:\n     *\n     *\t- default\n     *\t- primary\n     *\t- info\n     *\t- success\n     *\t- warning\n     *\t- link\n     *\n     * @default default\n     * @property {String} type\n     * @public\n     */\n    type: 'default',\n    /**\n     * This option controls if the button is a submit button.\n     * @public\n     * @property\n     * @default false.\n     */\n    submit: false,\n    /**\n     * This option controls if the button takes the full width of the container.\n     * @default false\n     */\n    block: false,\n    /**\n     * This option controls if the button is in active state.\n     */\n    active: false,\n    /**\n     * This options controls the size of the button.\n     * @default medium\n     */\n    size: 'auto',\n    /**\n     * Returns the button type. If the submit option is true returns submit otherwise returns button.\n     * @default button.\n     */\n    buttonType: Ember.computed('submit', function () {\n      if (this.submit) {\n        return 'submit';\n      }\n      return 'button';\n    }),\n    /**\n     * Returns the context class based on the type\n     * @returns {string}\n     */\n    contextClass: Ember.computed('type', function () {\n      switch (this.type) {\n        case 'primary':\n          return 'btn-primary';\n        case 'success':\n          return 'btn-success';\n        case 'info':\n          return 'btn-info';\n        case 'warning':\n          return 'btn-warning';\n        case 'danger':\n          return 'btn-danger';\n        case 'link':\n          return 'btn-link';\n        case 'default':\n        default:\n          return 'btn-default';\n      }\n    }),\n    /**\n     * Returns the size class based on the size\n     * @return {string}\n     */\n    sizeClass: Ember.computed('size', function () {\n      let btnSize;\n      switch (this.size) {\n        case 'sm':\n        case 'small':\n          btnSize = 'btn-sm';\n          break;\n        case 'xs':\n        case 'extra-small':\n          btnSize = 'btn-xs';\n          break;\n        case 'md':\n        case 'medium':\n          btnSize = 'btn-md';\n          break;\n        case 'lg':\n        case 'large':\n          btnSize = 'btn-lg';\n          break;\n        case 'auto':\n          btnSize = 'btn-auto';\n          break;\n        default:\n          btnSize = 'btn-auto';\n      }\n      return btnSize;\n    }),\n    /**\n     * Returns the block class based on the block attribute.\n     * @returns {string}\n     */\n    blockClass: Ember.computed('block', function () {\n      if (this.block) {\n        return 'btn-block';\n      }\n      return '';\n    }),\n    /**\n     * Returns the active class if the button is active.\n     * @returns {string}\n     */\n    activeClass: Ember.computed('active', function () {\n      if (this.active) {\n        return 'active';\n      }\n      return '';\n    })\n  });\n});","define(\"ember-mx/components/mx-card-list\", [\"exports\", \"ember-mx/templates/components/mx-card-list\"], function (_exports, _mxCardList) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-card-list\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible to render a card list\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxCardList.default,\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['mx-card-list'],\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['testAutomationId:data-test-automation-id'],\n    /**\n     * This option controls if the button to add cards is displayed.\n     * @default true\n     */\n    showAddButton: true,\n    /**\n     * This option controls if the button to remove cards is displayed.\n     * @default true\n     */\n    showRemoveButton: true,\n    testAutomationId: 'mx-card-list',\n    actions: {\n      /**\n       * Add a card.\n       */\n      addCard() {\n        if (!Ember.isNone(this.addAction)) {\n          this.addAction();\n        }\n      },\n      /**\n       * Remove card\n       * @param item\n       */\n      removeCard(item) {\n        if (!Ember.isNone(this.removeAction)) {\n          this.removeAction(item);\n        }\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-card\", [\"exports\", \"ember-mx/templates/components/mx-card\"], function (_exports, _mxCard) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/runloop\",0,\"@ember/component\",0,\"@ember/utils\",0,\"ember-mx/templates/components/mx-card\"eaimeta@70e063a35619d71f\n  const FADE_OUT_EXECUTION_DELAY = 100;\n\n  /**\n   * This component represents card a layout.\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxCard.default,\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['mx-card'],\n    /**\n     * Optional CSS classes rendered.\n     */\n    classNameBindings: ['showCloseButton:mx-card', 'showCloseButton::mx-card-no-close-button', 'animationClass'],\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['testAutomationId:data-test-automation-id'],\n    /**\n     * This option controls if there is a confirmation displayed when closing the card.\n     * @default true\n     */\n    showCloseConfirm: true,\n    /**\n     * This option controls the animation class used when closing the card.\n     * @default animated fade-in\n     */\n    animationClass: 'animated fade-in',\n    /**\n     * Close the card.\n     */\n    close() {\n      this.set('animationClass', 'animated fade-out');\n      Ember.run.later(() => {\n        if (!Ember.isNone(this.closeAction)) {\n          this.closeAction();\n        }\n      }, FADE_OUT_EXECUTION_DELAY);\n    },\n    testAutomationId: 'mx-card',\n    actions: {\n      /**\n       * Cancel closing card.\n       */\n      cancelClose() {\n        this.set('closeConfirmModalVisible', false);\n      },\n      /**\n       * Confirm closing card.\n       */\n      confirmClose() {\n        this.set('closeConfirmModalVisible', false);\n        this.close();\n      },\n      /**\n       * Close card.\n       */\n      close() {\n        if (this.showCloseConfirm) {\n          this.set('closeConfirmModalVisible', true);\n        } else {\n          this.close();\n        }\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-checkbox-group\", [\"exports\", \"ember-mx/templates/components/mx-checkbox-group\", \"ember-mx/mixins/mx-item-sorting\", \"ember-mx/mixins/mx-focus\", \"ember-mx/mixins/mx-parsley-ui\", \"ember-mx/mixins/mx-group\", \"ember-mx/mixins/mx-id\"], function (_exports, _mxCheckboxGroup, _mxItemSorting, _mxFocus, _mxParsleyUi, _mxGroup, _mxId) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/array\",0,\"@ember/utils\",0,\"@ember/object/computed\",0,\"@ember/component\",0,\"ember-mx/templates/components/mx-checkbox-group\",0,\"ember-mx/mixins/mx-item-sorting\",0,\"ember-mx/mixins/mx-focus\",0,\"ember-mx/mixins/mx-parsley-ui\",0,\"ember-mx/mixins/mx-group\",0,\"ember-mx/mixins/mx-id\"eaimeta@70e063a35619d71f\n  /**\n   * This component renders a checkbox group.\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend(_mxGroup.default, _mxItemSorting.default, _mxParsleyUi.default, _mxFocus.default, _mxId.default, {\n    /**\n     * Component layout.\n     */\n    layout: _mxCheckboxGroup.default,\n    /**\n     * CSS classes rendered.\n     * @default mx-checkbox\n     */\n    classNames: ['mx-checkbox-group'],\n    /**\n     * Optional CSS classes rendered.\n     */\n    classNameBindings: ['valueNotEmpty:has-value'],\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['testAutomationIdGroup:data-test-automation-id'],\n    /**\n     * Returns true if value is not empty, otherwise returns false.\n     * @returns {boolean}\n     */\n    valueNotEmpty: Ember.computed.notEmpty('value'),\n    disabledGroup: Ember.computed('disabled', function () {\n      if (this.disabled) {\n        return true;\n      }\n      return false;\n    }),\n    /**\n     * Returns string from an checkedRange array\n     */\n    checkedRangeComputed: Ember.computed('checkedRange', function () {\n      if (Array.isArray(this.checkedRange) && !Ember.isEmpty(this.checkedRange)) {\n        return `[${this.checkedRange.toString()}]`;\n      }\n      return null;\n    }),\n    /**\n     * Listen to when the focused option is changed.\n     *\n     * The following occurs when focused is set to true:\n     *\n     * \t- If there is a value, the first checked checkbox is focused.\n     * \t- If there is not value, the first checkbox is focused.\n     */\n    focusChanged: Ember.observer('focused', 'value', function () {\n      const isFocused = this.$('input').is(':focus');\n      if (this.focused && !isFocused) {\n        if (!Ember.isEmpty(this.value)) {\n          this.$('input:checked').first().focus();\n        } else {\n          this.$('input:first').focus();\n        }\n      }\n    }),\n    /**\n     * Listen when the equalTo value is changed.\n     */\n    equalToChanged: Ember.observer('equalTo.[]', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen when the notEqualTo value is changed.\n     */\n    notEqualToChanged: Ember.observer('notEqualTo.[]', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen when the  value is changed.\n     */\n    valueChanged: Ember.observer('value.[]', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    actions: {\n      /**\n       * This action is called when a checkbox is checked or unchecked from the group.\n       * @param checked flag if checkbox is checked or unchecked.\n       * @param value The value of the checkbox.\n       */\n      valueChangeAction(checked, value) {\n        if (Ember.isNone(this.value)) {\n          this.set('value', Ember.A());\n        }\n        if (checked) {\n          this.value.pushObject(value);\n        } else {\n          this.value.removeObject(value);\n        }\n        this.set('value', this.value);\n        if (!Ember.isNone(this.valueChangeAction)) {\n          this.valueChangeAction(this.value);\n        }\n      },\n      /**\n       * Returns true if this component value is equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateEqualTo(value) {\n        if (Ember.isEmpty(value) || Ember.isEmpty(this.equalTo)) {\n          return false;\n        }\n        return Ember.isEqual(this.value.toString(), this.equalTo.toString());\n      },\n      /**\n       * Returns true if this component value is not equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateNotEqualTo(value) {\n        if (Ember.isEmpty(value) || Ember.isEmpty(this.notEqualTo)) {\n          return false;\n        }\n        return !Ember.isEqual(this.value.toString(), this.notEqualTo.toString());\n      },\n      /**\n       * Validate maximum checked\n       * @returns {boolean}\n       */\n      validateMaximumChecked() {\n        return this.$('input:checked').length <= parseInt(this.maximumChecked, 10);\n      },\n      /**\n       * Validate minimum checked\n       * @returns {boolean}\n       */\n      validateMinimumChecked() {\n        return this.$('input:checked').length >= parseInt(this.minimumChecked, 10);\n      },\n      /**\n       * Validate checked range\n       * @returns {boolean}\n       */\n      validateCheckedRange() {\n        if (Ember.isEmpty(this.checkedRange)) {\n          return false;\n        }\n        if (!Ember.isArray(this.checkedRange)) {\n          return false;\n        }\n        const numberChecked = this.$('input:checked').length;\n        return numberChecked >= parseInt(this.checkedRange[0], 10) && numberChecked <= parseInt(this.checkedRange[1], 10);\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const isFocused = this.$('input').is(':focus');\n      if (this.focused && !isFocused) {\n        if (!Ember.isEmpty(this.value)) {\n          this.$('input:checked').first().focus();\n        } else {\n          this.$('input:first').focus();\n        }\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-checkbox-inline\", [\"exports\", \"ember-mx/templates/components/mx-checkbox-inline\", \"ember-mx/components/mx-checkbox\"], function (_exports, _mxCheckboxInline, _mxCheckbox) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-mx/templates/components/mx-checkbox-inline\",0,\"ember-mx/components/mx-checkbox\"eaimeta@70e063a35619d71f\n  /**\n   * Inline version of the checkbox.\n   * @module\n   */\n  var _default = _exports.default = _mxCheckbox.default.extend({\n    layout: _mxCheckboxInline.default,\n    /**\n     * HTML tag rendered.\n     */\n    tagName: 'div',\n    /**\n     * This options controls if the checkbox is displayed inline.\n     * @default  true.\n     */\n    inline: true\n  });\n});","define(\"ember-mx/components/mx-checkbox-label\", [\"exports\", \"ember-mx/templates/components/mx-checkbox-label\"], function (_exports, _mxCheckboxLabel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/utils\",0,\"ember-mx/templates/components/mx-checkbox-label\"eaimeta@70e063a35619d71f\n  /**\n   * This component is used to customize the checkbox label.\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxCheckboxLabel.default,\n    classNames: ['mx-checkbox-label'],\n    /**\n     * didInsertElement hook\n     */\n    didInsertElement() {\n      this._super(...arguments);\n      if (!Ember.isEmpty(this.didInsertElementAction)) {\n        this.didInsertElementAction();\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-checkbox\", [\"exports\", \"jquery\", \"ember-mx/mixins/mx-parsley-field\", \"ember-mx/mixins/mx-parsley-ui\", \"ember-mx/mixins/mx-focus\", \"ember-mx/mixins/mx-id\", \"ember-mx/templates/components/mx-checkbox\"], function (_exports, _jquery, _mxParsleyField, _mxParsleyUi, _mxFocus, _mxId, _mxCheckbox) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"jquery\",0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/object/computed\",0,\"@ember/utils\",0,\"@ember/component\",0,\"ember-mx/mixins/mx-parsley-field\",0,\"ember-mx/mixins/mx-parsley-ui\",0,\"ember-mx/mixins/mx-focus\",0,\"ember-mx/mixins/mx-id\",0,\"ember-mx/templates/components/mx-checkbox\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible renders a checkbox input.\n   * @module\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend(_mxParsleyUi.default, _mxParsleyField.default, _mxFocus.default, _mxId.default, {\n    /**\n     * Component layout.\n     */\n    layout: _mxCheckbox.default,\n    /**\n     * CSS classes rendered.\n     * @default mx-checkbox\n     */\n    classNames: ['mx-checkbox'],\n    /**\n     * Optional CSS classes rendered.\n     */\n    classNameBindings: ['group::form-group', 'groupAndNotInline:checkbox', 'groupAndDisabled:disabled', 'groupAndInline:checkbox-inline', 'isChecked:has-value'],\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['testAutomationIdGroup:data-test-automation-id'],\n    /**\n     * This options controls if the checkbox is displayed inline.\n     * @default false\n     */\n    inline: false,\n    /**\n     * This option controls if the label is visible.\n     * @default true\n     */\n    showLabel: true,\n    /**\n     * Returns true if the checkbox is not inline, otherwise returns false.\n     * @returns {boolean}\n     */\n    notInline: Ember.computed.not('inline'),\n    /**\n     * Returns true if the checkbox is part of group and is inline, otherwise returns false.\n     */\n    groupAndInline: Ember.computed.and('group', 'inline'),\n    /**\n     * Returns true if the checkbox is part of group and its not inline, otherwise returns false.\n     * @return {boolean}\n     */\n    groupAndNotInline: Ember.computed.and('group', 'notInline'),\n    /**\n     * Returns true if the checkbox is checked, otherwise returns false.\n     * @return {boolean}\n     */\n    isChecked: Ember.computed.equal('checked', true),\n    /**\n     * Returns true if the checkbox is part of group and is disabled, otherwise returns false.\n     * @returns {boolean}\n     */\n    groupAndDisabled: Ember.computed.and('group', 'disabled'),\n    /**\n     * Listen to change value events.\n     */\n    change() {\n      this._super();\n      if (this.validate) {\n        Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n      }\n      if (!Ember.isNone(this.valueChangeAction)) {\n        this.valueChangeAction(this.checked, this.value);\n      }\n    },\n    /**\n     * Returns the JQuery selector that matches the element to attach validation on.\n     * @returns {string}\n     */\n    validationSelector: Ember.computed(function () {\n      return this.$('input:first');\n    }),\n    /**\n     * didInsertElement hook\n     */\n    didInsertElement() {\n      this._super(...arguments);\n      // this is a hack because the checkbox helper doesn't support binding a value property.\n      if (this.group) {\n        (0, _jquery.default)(this.validationSelector).attr('value', this.value);\n      }\n      const isFocused = this.$('input').is(':focus');\n      if (this.focused && !isFocused) {\n        this.$('input').focus();\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-confirm-modal\", [\"exports\", \"ember-mx/templates/components/mx-confirm-modal\"], function (_exports, _mxConfirmModal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"ember-mx/templates/components/mx-confirm-modal\"eaimeta@70e063a35619d71f\n  /**\n   * This component renders a confirmation modal.\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxConfirmModal.default,\n    /**\n     * CSS classes rendered.\n     * @default mx-confirm-modal\n     */\n    classNames: ['mx-confirm-modal'],\n    /**\n     * This option controls if the cancel button is displayed.\n     * @default true\n     */\n    showCancelButton: true,\n    /**\n     * This option controls the size of the confirmation modal.\n     * @default medium\n     */\n    size: 'medium',\n    /**\n     * This option controls the icon class for the header.\n     * @default fa fa-exclamation-triangle icon mx-red-color\n     */\n    headerIconClass: 'fal fa-exclamation-triangle icon mx-red-color',\n    /**\n     * Returns the header text\n     * @default mx_confirm_modal.text.header\n     * @returns {string}\n     */\n    headerText: Ember.computed('i18n.locale', {\n      get() {\n        return this._headerText ? this._headerText : this.i18n.t('mx_confirm_modal.text.header');\n      },\n      set(key, value) {\n        this._headerText = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns the label for the confirm button.\n     * @default mx_confirm_modal.action.confirm\n     * @returns {string}\n     */\n    confirmButtonLabel: Ember.computed('i18n.locale', {\n      get() {\n        return this._confirmButtonLabel ? this._confirmButtonLabel : this.i18n.t('mx_confirm_modal.action.confirm');\n      },\n      set(key, value) {\n        this._confirmButtonLabel = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns the label for the cancel button.\n     * @default mx_confirm_modal.action.cancel\n     * @returns {string}\n     */\n    cancelButtonLabel: Ember.computed('i18n.locale', {\n      get() {\n        return this._cancelButtonLabel ? this._cancelButtonLabel : this.i18n.t('mx_confirm_modal.action.cancel');\n      },\n      set(key, value) {\n        this._cancelButtonLabel = value;\n        return value;\n      }\n    }),\n    testAutomationId: Ember.computed({\n      get() {\n        return this._testAutomationId ? this._testAutomationId : 'confirmModal';\n      },\n      set(key, value) {\n        this._testAutomationId = value || 'confirmModal';\n        return this._testAutomationId;\n      }\n    })\n  });\n});","define(\"ember-mx/components/mx-date-input\", [\"exports\", \"date-fns\", \"ember-mx/components/mx-input\", \"ember-mx/templates/components/mx-date-input\", \"vanilla-text-mask\", \"text-mask-addons\"], function (_exports, _dateFns, _mxInput, _mxDateInput, _vanillaTextMask, _textMaskAddons) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/utils\",0,\"date-fns\",0,\"ember-mx/components/mx-input\",0,\"ember-mx/templates/components/mx-date-input\",0,\"vanilla-text-mask\",0,\"text-mask-addons\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible to input a date\n   * @module\n   * @extend Ember.Component\n   */\n  var _default = _exports.default = _mxInput.default.extend({\n    /**\n     * Constructor.\n     */\n    init() {\n      this._super(...arguments);\n      // set the date mask\n      this.set('mask', [/\\d/, /\\d/, '/', /\\d/, /\\d/, '/', /\\d/, /\\d/, /\\d/, /\\d/]);\n    },\n    layout: _mxDateInput.default,\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['mx-date-input'],\n    /**\n     * This option controls how is label displayed.\n     * The following label types are supported:\n     * \t\t- static\n     * \t\t- floating\n     * \t\t- placeholder\n     *\n     * @default static\n     */\n    labelType: 'static',\n    /**\n     * This option controls if min/max boundaries are included when comparing dates.\n     * @default true\n     */\n    includeBounds: true,\n    /**\n     * This option controls the pipe used by the mask.\n     * @default dd/mm/yyyy\n     */\n    pipe: (0, _textMaskAddons.createAutoCorrectedDatePipe)('dd/mm/yyyy'),\n    /**\n     * This option controls the placeholder character used by the mask.\n     * @default _\n     */\n    placeholderChar: '_',\n    /**\n     * This option controls if the user is guided by the mask.\n     * @default true\n     */\n    guide: true,\n    /**\n     * This option controls if the characters stay in there position when removing/insert new characters.\n     * @default true\n     */\n    keepCharPositions: true,\n    /**\n     * This option controls if the mask is always visible.\n     * @default false\n     */\n    showMask: false,\n    /**\n     * This option controls the even that the validation is fired after a failure.\n     * @default blue\n     */\n    validationTriggerAfterFailure: 'blur',\n    /**\n     * This option controls the precision used when comparing the dates.\n     * The supported values are:\n     * \t\t- day\n     * \t\t- month\n     * \t\t- year\n     *\n     * @default day\n     */\n    validationPrecision: 'day',\n    dateFormat: 'dd/MM/yyyy',\n    /**\n     * This option controls the regular expression used to validate the date.\n     * @default [0-9]{2}/[0-9]{2}/[0-9]{4}\n     */\n    pattern: '[0-9]{2}/[0-9]{2}/[0-9]{4}',\n    /**\n     * Returns the placeholder\n     * @default dd/mm/yyyy for english or jj/mm/aaaa for french\n     * @returns {string}\n     */\n    placeholder: Ember.computed('i18n.locale', function () {\n      if (this.i18n.locale === 'fr') {\n        return 'jj/mm/aaaa';\n      }\n      return 'dd/mm/yyyy';\n    }),\n    /**\n     * Returns the default pattern message.\n     * @default mx_date_input.error.date_invalid\n     * @returns {string}\n     */\n    patternMessage: Ember.computed('i18n.locale', function () {\n      return this.i18n.t('mx_date_input.error.date_invalid');\n    }),\n    /**\n     * Returns the default pattern message.\n     * @default mx_date_input.error.date_required\n     * @returns {string}\n     */\n    requiredMessage: Ember.computed('i18n.locale', function () {\n      return this.i18n.t('mx_date_input.error.date_required');\n    }),\n    resetTimeInformation(dateToReset = null) {\n      // Make sure that the date passed as a parameter does not contain time information that could jeopardize the comparison\n      // Note: Dates entered via the component have their time information automatically set to 00:00:00:00.\n      return dateToReset ? (0, _dateFns.set)(dateToReset, {\n        hours: 0,\n        minutes: 0,\n        seconds: 0,\n        milliseconds: 0\n      }) : null;\n    },\n    /**\n     * Set the date\n     * @param maskValue the mask value.\n     */\n    setDate(maskValue) {\n      const date = (0, _dateFns.parse)(maskValue, this.dateFormat, new Date());\n      if (maskValue && date && (0, _dateFns.isValid)(date)) {\n        this.set('value', (0, _dateFns.toDate)(date));\n      } else {\n        this.set('value', null);\n      }\n    },\n    maskValue: Ember.computed('value', {\n      /**\n       * Returns the mask value.\n       * @returns {string}\n       */\n      get() {\n        if (!Ember.isEmpty(this.value)) {\n          return (0, _dateFns.format)(this.value, this.dateFormat);\n        }\n        return this.value;\n      },\n      /**\n       * Set the mask value\n       * @param key The field key\n       * @param maskValue The field value\n       * @returns {*}\n       */\n      set(key, maskValue) {\n        this.setDate(maskValue);\n        return maskValue;\n      }\n    }),\n    /**\n     * didInsertElement hook\n     */\n    didInsertElement() {\n      this._super(...arguments);\n      this.maskInput = (0, _vanillaTextMask.maskInput)({\n        inputElement: this.element.querySelector('input'),\n        mask: this.mask,\n        guide: this.guide,\n        placeholderChar: this.placeholderChar,\n        keepCharPositions: this.keepCharPositions,\n        pipe: this.pipe,\n        showMask: this.showMask\n      });\n    },\n    /**\n     * didDestroyElement hook.\n     */\n    didDestroyElement() {\n      this._super(...arguments);\n      this.maskInput.destroy();\n    },\n    actions: {\n      /**\n       * Returns true if the component value is before the minimumDate, otherwise returns false.\n       * @param value The value.\n       * @returns {boolean}\n       */\n      validateMinimumDate(value) {\n        if (Ember.isEmpty(this.minimumDate)) {\n          return true;\n        }\n        if (!(0, _dateFns.isDate)(this.minimumDate)) {\n          return true;\n        }\n        const _minimumDate = this.resetTimeInformation(this.minimumDate);\n        if (this.includeBounds) {\n          return (0, _dateFns.isEqual)(value, _minimumDate) || (0, _dateFns.isAfter)(value, _minimumDate);\n        }\n        return (0, _dateFns.isAfter)(value, _minimumDate);\n      },\n      /**\n       * Returns true if the component value is before the maximumDate, otherwise returns false.\n       * @param value The value.\n       * @returns {boolean}\n       */\n      validateMaximumDate(value) {\n        if (Ember.isEmpty(this.maximumDate)) {\n          return true;\n        }\n        if (!(0, _dateFns.isDate)(this.maximumDate)) {\n          return true;\n        }\n        const _maximumDate = this.resetTimeInformation(this.maximumDate);\n        if (this.includeBounds) {\n          return (0, _dateFns.isEqual)(value, _maximumDate) || (0, _dateFns.isBefore)(value, _maximumDate);\n        }\n        return (0, _dateFns.isBefore)(value, _maximumDate);\n      },\n      /**\n       * Returns true if this component value is greater to the value passed by the greaterTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateGreaterTo(value) {\n        if (Ember.isEmpty(this.greaterTo)) {\n          return true;\n        }\n        if (!(0, _dateFns.isDate)(this.greaterTo)) {\n          return true;\n        }\n        return (0, _dateFns.isAfter)(value, this.greaterTo);\n      },\n      /**\n       * Returns true if this component value is greater or equal to the value passed by the greaterOrEqualTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateGreaterOrEqualTo(value) {\n        if (Ember.isEmpty(this.greaterOrEqualTo)) {\n          return true;\n        }\n        if (!(0, _dateFns.isDate)(this.greaterOrEqualTo)) {\n          return true;\n        }\n        return (0, _dateFns.isEqual)(value, this.greaterOrEqualTo) || (0, _dateFns.isAfter)(value, this.greaterOrEqualTo);\n      },\n      /**\n       * Returns true if this component value is lesser to the value passed by the lesserTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateLesserTo(value) {\n        if (Ember.isEmpty(this.lesserTo)) {\n          return true;\n        }\n        if (!(0, _dateFns.isDate)(this.lesserTo)) {\n          return true;\n        }\n        return (0, _dateFns.isBefore)(value, this.lesserTo);\n      },\n      /**\n       * Returns true if this component value is lesser or equal to the value passed by the lesserOrEqualTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateLesserOrEqualTo(value) {\n        if (Ember.isEmpty(this.lesserOrEqualTo)) {\n          return true;\n        }\n        if (!(0, _dateFns.isDate)(this.lesserOrEqualTo)) {\n          return true;\n        }\n        return (0, _dateFns.isEqual)(value, this.lesserOrEqualTo) || (0, _dateFns.isBefore)(value, this.lesserOrEqualTo);\n      },\n      /**\n       * Returns true if this component value is equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateEqualTo(value) {\n        if (Ember.isEmpty(this.equalTo)) {\n          return true;\n        }\n        if (!(0, _dateFns.isDate)(this.equalTo)) {\n          return true;\n        }\n        return (0, _dateFns.isEqual)(value, this.equalTo);\n      },\n      /**\n       * Returns true if this component value is not equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateNotEqualTo(value) {\n        if (Ember.isEmpty(this.notEqualTo)) {\n          return true;\n        }\n        if (!(0, _dateFns.isDate)(this.notEqualTo)) {\n          return true;\n        }\n        return !(0, _dateFns.isEqual)(value, this.notEqualTo);\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-email-input\", [\"exports\", \"@hapi/tlds\", \"ember-mx/components/mx-input\", \"ember-mx/templates/components/mx-email-input\"], function (_exports, _tlds, _mxInput, _mxEmailInput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@hapi/tlds\",0,\"ember-mx/components/mx-input\",0,\"ember-mx/templates/components/mx-email-input\"eaimeta@70e063a35619d71f\n  /**\n   * This component renders an email input.\n   * @module\n   */\n  var _default = _exports.default = _mxInput.default.extend({\n    layout: _mxEmailInput.default,\n    /**\n     * CSS rendered\n     */\n    classNames: ['mx-email-input'],\n    /**\n     * This option controls the id used to select the field for test automation.\n     * @default email\n     */\n    testAutomationId: 'email',\n    /**\n     * This options controls the maximum length of the email\n     * @default 80\n     */\n    maximumLength: 80,\n    /**\n     * Returns the label\n     * @default mx_email_input.label.email\n     * @returns {string}\n     */\n    label: Ember.computed('i18n.locale', {\n      get() {\n        return this._label ? this._label : this.i18n.t('mx_email_input.label.email');\n      },\n      set(key, value) {\n        this._label = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns the required message\n     * @default mx_email_input.error.email_required\n     * @returns {string}\n     */\n    requiredMessageComputed: Ember.computed('i18n.locale', 'requiredMessage', {\n      get() {\n        return this._requiredMessageComputed || this.requiredMessage || this.i18n.t('mx_email_input.error.email_required');\n      },\n      set(key, value) {\n        this._requiredMessageComputed = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns the type message\n     * @default mx_email_input.error.email_invalid\n     * @returns {string}\n     */\n    typeMessageComputed: Ember.computed('i18n.locale', 'typeMessage', {\n      get() {\n        return this._typeMessageComputed || this.typeMessage || this.i18n.t('mx_email_input.error.email_invalid');\n      },\n      set(key, value) {\n        this._typeMessageComputed = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns the invalid domain message.\n     * @default mx_email_input.error.invalid_domain\n     * @returns {string}\n     */\n    invalidDomainMessage: Ember.computed('i18n.locale', function () {\n      return this.i18n.t('mx_email_input.error.invalid_domain');\n    }),\n    /**\n     * Trigger beforeValidationAction.\n     */\n    triggerBeforeValidationAction() {\n      if (this.value) {\n        // For firefox, we need to remove the extra spaces that could be stored in the value\n        this.set('value', this.value.replace(' ', ''));\n      }\n      this._super(...arguments);\n    },\n    //validate a fully formed email to ensure the domain is a valid tld\n    validateDomain(email) {\n      //if no email to validate don't go any further.\n      if (!email) {\n        return null;\n      }\n\n      /*grab the last segment to validate against the tlds list since a domain could have multiple sections\n        \t  but the last one is the tld*/\n      const domain = email.substring(email.lastIndexOf('.') + 1).toLowerCase();\n\n      //check the tlds map to see if the domain is correct\n      return _tlds.tlds.has(domain);\n    },\n    actions: {\n      isValidDomain(email) {\n        return this.validateDomain(email);\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-fieldset\", [\"exports\", \"ember-mx/templates/components/mx-fieldset\"], function (_exports, _mxFieldset) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"ember-mx/templates/components/mx-fieldset\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  /**\n   * Render a fieldset.\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxFieldset.default,\n    /**\n     * HTML tag rendered.\n     */\n    tagName: 'fieldset',\n    /**\n     * CSS rendered.\n     */\n    classNames: ['mx-fieldset'],\n    /**\n     * HTML attributes rendered.\n     */\n    // attributeBindings: ['testAutomationId:data-test-automation-id'],\n\n    /**\n     * This option controls if the legend is displayed.\n     * @default true\n     */\n    showLegend: true,\n    /**\n     * Returns the legend class.\n     * @return {string}\n     */\n    legendClassComputed: Ember.computed('legendClass', 'showLegend', function () {\n      if (!this.showLegend) {\n        if (this.legendClass) {\n          return `${this.legendClass} sr-only`;\n        }\n        return 'sr-only';\n      }\n      return `${this.legendClass ? `${this.legendClass} ` : ''}control-label no-ellipsis`;\n    })\n  });\n});","define(\"ember-mx/components/mx-form\", [\"exports\", \"jquery\", \"ember-mx/templates/components/mx-form\", \"ember-mx/mixins/mx-parsley-form\", \"ember-mx/mixins/mx-parsley-utils\"], function (_exports, _jquery, _mxForm, _mxParsleyForm, _mxParsleyUtils) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"jquery\",0,\"@ember/object\",0,\"@ember/component\",0,\"ember-mx/templates/components/mx-form\",0,\"ember-mx/mixins/mx-parsley-form\",0,\"ember-mx/mixins/mx-parsley-utils\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsive to render a form that enables parsley validation.\n   * @author bcpoiri\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend(_mxParsleyForm.default, _mxParsleyUtils.default, {\n    layout: _mxForm.default,\n    /**\n     * HTML tag rendered.\n     */\n    tagName: 'form',\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['mx-form'],\n    /**\n     * Options CSS classes rendered.\n     */\n    classNameBindings: ['typeClass'],\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['accept', 'accept-charset', 'method', 'autocomplete', 'enctype', 'target', 'accesskey', 'contenteditable', 'contextmenu', 'dir', 'draggable', 'dropzone', 'hidden', 'lang', 'spellcheck', 'tabindex', 'title', 'translate', 'data-parsley-namespace', 'data-parsley-priority-enabled', 'data-parsley-inputs', 'data-parsley-excluded', 'novalidate', 'testAutomationId:data-test-automation-id'],\n    /**\n     * This options prevents standard form validation to be executed.\n     */\n    novalidate: '',\n    htmlType: null,\n    /**\n     * Listen to when the form is submitted.\n     * False is returns to prevent and action from beeing fired by the button and the form\n     * @return {boolean}\n     */\n    submit() {\n      return false;\n    },\n    /**\n     * Returns the form class based on the type of form\n     * The type of forms supported are:\n     * \t\t- inline\n     * \t\t- horizontal\n     *\n     * @return {string}\n     */\n    typeClass: Ember.computed('type', function () {\n      switch (this.type) {\n        case 'inline':\n          return 'form-inline';\n        case 'horizontal':\n          return 'form-horizontal';\n        default:\n          return '';\n      }\n    }),\n    /**\n     * Remove parsley submit event.\n     */\n    didInsertElement() {\n      this._super(...arguments);\n      (0, _jquery.default)(this.element).off('submit.Parsley');\n    }\n  });\n});","define(\"ember-mx/components/mx-input\", [\"exports\", \"ember-mx/mixins/mx-input\", \"ember-mx/mixins/mx-parsley-field\", \"ember-mx/mixins/mx-parsley-ui\", \"ember-mx/mixins/mx-focus\", \"ember-mx/mixins/mx-id\", \"ember-mx/templates/components/mx-input\"], function (_exports, _mxInput, _mxParsleyField, _mxParsleyUi, _mxFocus, _mxId, _mxInput2) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/mixins/mx-input\",0,\"ember-mx/mixins/mx-parsley-field\",0,\"ember-mx/mixins/mx-parsley-ui\",0,\"ember-mx/mixins/mx-focus\",0,\"ember-mx/mixins/mx-id\",0,\"ember-mx/templates/components/mx-input\"eaimeta@70e063a35619d71f\n  /**\n   * This components render an input.\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend(_mxInput.default, _mxParsleyField.default, _mxParsleyUi.default, _mxFocus.default, _mxId.default, {\n    layout: _mxInput2.default,\n    /**\n     * CSS rendered.\n     */\n    classNames: ['mx-input'],\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['testAutomationId:data-test-automation-id']\n  });\n});","define(\"ember-mx/components/mx-label\", [\"exports\", \"ember-mx/templates/components/mx-label\"], function (_exports, _mxLabel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-label\"eaimeta@70e063a35619d71f\n  /**\n   * This components renders a label tag.\n   * @author bcpoiri\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxLabel.default,\n    /**\n     * HTML tag rendered.\n     */\n    tagName: 'label',\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['for', 'testAutomationId:data-test-automation-id'],\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['control-label', 'mx-label'],\n    /**\n     * Option classes rendered\n     */\n    classNameBindings: ['visible::sr-only', 'labelIconClass:no-ellipsis'],\n    /**\n     * Default label to visible.\n     */\n    show: true\n  });\n});","define(\"ember-mx/components/mx-link\", [\"exports\", \"ember-mx/mixins/mx-parsley-utils\", \"ember-mx/mixins/mx-focus\", \"ember-mx/mixins/mx-button\", \"ember-mx/templates/components/mx-link\", \"ember-mx/mixins/mx-id\"], function (_exports, _mxParsleyUtils, _mxFocus, _mxButton, _mxLink, _mxId) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/mixins/mx-parsley-utils\",0,\"ember-mx/mixins/mx-focus\",0,\"ember-mx/mixins/mx-button\",0,\"ember-mx/templates/components/mx-link\",0,\"ember-mx/mixins/mx-id\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  /**\n   * This component represents a link that an action.\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend(_mxParsleyUtils.default, _mxFocus.default, _mxButton.default, _mxId.default, {\n    layout: _mxLink.default,\n    /**\n     * HTML tag rendered.\n     */\n    tagName: 'a',\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['href', 'testAutomationIdControl:data-test-automation-id', 'target', 'rel'],\n    /**\n     * CSS rendered.\n     */\n    classNames: ['mx-link'],\n    /**\n     * Optional CSS rendered.\n     */\n    classNameBindings: ['animate:hyperlink'],\n    /**\n     * By default animated is false\n     */\n    animate: false,\n    /**\n     * This options prevents the navigator from bubbling when calling action.\n     */\n    href: '#',\n    redirectUser: Ember.computed('href', function () {\n      return this.href !== '#';\n    }),\n    rel: Ember.computed('redirectUser', {\n      get() {\n        if (this._rel) {\n          return this._rel;\n        }\n        if (this.redirectUser) {\n          return 'noopener';\n        }\n        // Do not add the attribute `rel`\n        return null;\n      },\n      set(key, value) {\n        this._rel = value;\n        return value;\n      }\n    }),\n    target: Ember.computed('redirectUser', {\n      get() {\n        if (this._target) {\n          return this._target;\n        }\n        if (this.redirectUser) {\n          return '_blank';\n        }\n        // Do not add the attribute `target`\n        return null;\n      },\n      set(key, value) {\n        this._target = value;\n        return value;\n      }\n    }),\n    /**\n     * Click link.\n     * @param evt\n     * @returns {*}\n     */\n    click(evt) {\n      /* eslint consistent-return: 0 */\n      if (this.disabled) {\n        return false;\n      }\n      evt.stopPropagation();\n      if (this.href === '#') {\n        // Blocks the execution of any code when the flag `disabled` is set to true\n        return this._super(...arguments);\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-modal-body\", [\"exports\", \"ember-mx/templates/components/mx-modal-body\"], function (_exports, _mxModalBody) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-modal-body\"eaimeta@70e063a35619d71f\n  /**\n   * This components represents modal body\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxModalBody.default,\n    /**\n     * HTML attributes rendered\n     */\n    attributeBindings: ['testAutomationId:data-test-automation-id', 'tabindex'],\n    tabindex: '0',\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['modal-body', 'mx-modal-body']\n  });\n});","define(\"ember-mx/components/mx-modal-footer\", [\"exports\", \"ember-mx/templates/components/mx-modal-footer\"], function (_exports, _mxModalFooter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-modal-footer\"eaimeta@70e063a35619d71f\n  /**\n   * This component represents modal footer\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxModalFooter.default,\n    /**\n     * HTML attributes rendered\n     */\n    attributeBindings: ['testAutomationId:data-test-automation-id'],\n    /**\n     * CSS classes rendered\n     * @default modal-footer mx-modal-footer\n     */\n    classNames: ['modal-footer', 'mx-modal-footer']\n  });\n});","define(\"ember-mx/components/mx-modal-header\", [\"exports\", \"ember-mx/templates/components/mx-modal-header\"], function (_exports, _mxModalHeader) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"ember-mx/templates/components/mx-modal-header\"eaimeta@70e063a35619d71f\n  /**\n   * This component a represents a modal header.\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxModalHeader.default,\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['testAutomationId:data-test-automation-id'],\n    /**\n     * The CSS rendered.\n     */\n    classNames: ['mx-modal-header'],\n    /**\n     * Observer that handles the focus on the close icon when the modal is opened (Use of the attributes showAction + focusOnCloseIcon)\n     */\n    focusChanged: Ember.observer('focusOnCloseIcon', function () {\n      const closeIconElement = this.$(`#${this.element.id}_closeIcon`);\n      // test\n      const isFocused = closeIconElement.is(':focus');\n      if (this.focusOnCloseIcon && !isFocused) {\n        closeIconElement.focus();\n      }\n    }),\n    /**\n     *Triggered as soon the modal is closed to reset the boolean to `false`\n     */\n    focusOut() {\n      if (this.focusOnCloseIcon) {\n        this.set('focusOnCloseIcon', false);\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-modal\", [\"exports\", \"jquery\", \"ember-mx/templates/components/mx-modal\"], function (_exports, _jquery, _mxModal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/utils\",0,\"@ember/application\",0,\"@ember/component\",0,\"ember-mx/templates/components/mx-modal\"eaimeta@70e063a35619d71f\n  /**\n   * This component renders a modal window.\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxModal.default,\n    init() {\n      this._super(...arguments);\n      const config = Ember.getOwner(this).resolveRegistration('config:environment');\n      this.set('containerId', config.environment === 'test' ? 'ember-testing' : 'mx-modal-container');\n    },\n    /**\n     * This option controls if the modal is rendered in the ember-wormhole container.\n     * @default true\n     */\n    renderInContainer: true,\n    /**\n     * This option controls if the modal is closed when hitting the escape key.\n     * @default true\n     */\n    closeOnEscapeKey: true,\n    /**\n     * This option controls if the modal backdrop is static.\n     * @default false\n     */\n    backdropStatic: false,\n    /**\n     * This option controls if the modal backdrop is visible.\n     * @default true\n     */\n    showBackdrop: true,\n    /**\n     * This option controls if the close button is visible.\n     * @default true\n     */\n    showCloseButton: true,\n    /**\n     * This option controls if the modal is visible.\n     * @default false.\n     */\n    visible: false,\n    /**\n     * This option controls if the modal has fade animation when displayed.\n     * @default true.\n     */\n    fade: true,\n    /**\n     * This option controls if the form is resets when the modal is visible. This useful when you have crud in a modal.\n     * @default false.\n     */\n    resetFormOnShow: false,\n    /**\n     * This option controls the size of the modal.\n     * @default medium\n     */\n    size: 'medium',\n    /**\n     * Returns true if the modal is rendered in place, otherwise returns false\n     * @returns {boolean}\n     */\n    renderInPlace: Ember.computed.not('renderInContainer'),\n    /**\n     * Returns the modal id.\n     * @returns {string}\n     */\n    modalId: Ember.computed('elementId', function () {\n      return `${this.elementId}-modal`;\n    }),\n    ariaLabelledby: Ember.computed('elementId', function () {\n      return this.title ? `${this.elementId}_title` : null;\n    }),\n    /**\n     * Returns the JQuery selector for the modal window.\n     * @returns {string}\n     */\n    modalSelector: Ember.computed('modalId', function () {\n      return `#${this.modalId}`;\n    }),\n    modalRootElement: Ember.computed('modalSelector', function () {\n      return (0, _jquery.default)(this.modalSelector);\n    }),\n    /**\n     * Returns the modal class.\n     * @returns {string}\n     */\n    modalClass: Ember.computed('fadeClass', function () {\n      let modalClass = 'mx-modal modal';\n      if (!Ember.isEmpty(this.fadeClass)) {\n        modalClass = modalClass.concat(` ${this.fadeClass}`);\n      }\n      const rootElementClassList = this.element.classList;\n      rootElementClassList.remove('ember-view');\n      if (!Ember.isEmpty(rootElementClassList)) {\n        modalClass = modalClass.concat(` ${rootElementClassList}`);\n      }\n      return modalClass;\n    }),\n    /**\n     * Returns the modal dialog class.\n     * @returns {string}\n     */\n    modalDialogClass: Ember.computed('size', function () {\n      switch (this.size) {\n        case 'lg':\n        case 'large':\n          return 'modal-dialog modal-lg';\n        case 'sm':\n        case 'small':\n          return 'modal-dialog modal-sm';\n        case 'md':\n        case 'medium':\n        default:\n          return 'modal-dialog';\n      }\n    }),\n    /**\n     * Returns the backdrop setting\n     * @returns {boolean|string}\n     */\n    backdropComputed: Ember.computed('showBackdrop', 'backdropStatic', function () {\n      if (this.showBackdrop && this.backdropStatic) {\n        return 'static';\n      } else if (this.showBackdrop && !this.backdropStatic) {\n        return true;\n      }\n      return false;\n    }),\n    /**\n     * Returns the fade class\n     * @returns {string}\n     */\n    fadeClass: Ember.computed('fade', function () {\n      if (this.fade) {\n        return 'fade';\n      }\n      return null;\n    }),\n    /**\n     * Listens when the modal is open or closed.\n     */\n    onShowChanged: Ember.observer('visible', function () {\n      if (this.visible) {\n        (0, _jquery.default)(this.modalSelector).modal('show');\n      } else {\n        (0, _jquery.default)(this.modalSelector).modal('hide');\n      }\n    }),\n    /**\n     * Add event listeners.\n     */\n    addEventListeners() {\n      // check when the modal has been closed.\n      (0, _jquery.default)(this.modalSelector).on('hidden.bs.modal', e => {\n        this.set('visible', false);\n        if (!Ember.isNone(this.closeAction)) {\n          this.closeAction(e);\n        }\n      });\n      // check when the modal has been shown.\n      (0, _jquery.default)(this.modalSelector).on('show.bs.modal', () => {\n        if (this.resetFormOnShow) {\n          (0, _jquery.default)(this.modalSelector).find('form').each((index, form) => {\n            this.$(form).parsley().reset();\n          });\n        }\n      });\n      // check when the modal has been shown.\n      (0, _jquery.default)(this.modalSelector).on('shown.bs.modal', e => {\n        if (!Ember.isNone(this.showAction)) {\n          this.showAction(e);\n        }\n      });\n    },\n    /**\n     *  Remove event listeners.\n     */\n    removeEventListeners() {\n      (0, _jquery.default)(this.modalSelector).off('hidden.bs.modal');\n      (0, _jquery.default)(this.modalSelector).off('shown.bs.modal');\n    },\n    /**\n     * This hook is called when the component is finish rendering.\n     */\n\n    didInsertElement() {\n      this._super(...arguments);\n      let visible = false;\n      if (this.visible) {\n        visible = true;\n      }\n      // initialize bs modal window.\n      (0, _jquery.default)(this.modalSelector).modal({\n        keyboard: this.closeOnEscapeKey,\n        backdrop: this.backdropComputed,\n        show: visible\n      });\n      this.addEventListeners();\n    },\n    /**\n     * This hook handles when the component is destroyed.\n     */\n    didDestroyElement() {\n      this._super(...arguments);\n      // remove event handler\n      this.removeEventListeners();\n      // this remove modal-backdrop in case the the user hits backspace key.\n      (0, _jquery.default)('.modal-backdrop').remove();\n      // Removes the class that hides the `overflow` property\n      (0, _jquery.default)('body').removeClass('modal-open');\n    }\n  });\n});","define(\"ember-mx/components/mx-month-year-input\", [\"exports\", \"ember-mx/components/mx-date-input\", \"ember-mx/templates/components/mx-month-year-input\", \"text-mask-addons\", \"date-fns\"], function (_exports, _mxDateInput, _mxMonthYearInput, _textMaskAddons, _dateFns) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/utils\",0,\"ember-mx/components/mx-date-input\",0,\"ember-mx/templates/components/mx-month-year-input\",0,\"text-mask-addons\",0,\"date-fns\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   */\n  var _default = _exports.default = _mxDateInput.default.extend({\n    /**\n     * Constructor\n     */\n    init() {\n      this._super(...arguments);\n      this.set('mask', [/\\d/, /\\d/, '/', /\\d/, /\\d/, /\\d/, /\\d/]);\n    },\n    layout: _mxMonthYearInput.default,\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['mx-month-year-input'],\n    /**\n     * This option controls the pipe used by the mask.\n     * @default dd/mm/yyyy\n     */\n    pipe: (0, _textMaskAddons.createAutoCorrectedDatePipe)('mm/yyyy'),\n    dateFormat: 'MM/yyyy',\n    /**\n     * This option controls the regular expression used to validate the date.\n     * @default [0-9]{2}/[0-9]{4}\n     */\n    pattern: '[0-9]{2}/[0-9]{4}',\n    /**\n     * This option controls the day of the month to default to accepts first, last or 0-31\n     * @default first\n     */\n    dayOfMonth: 'first',\n    /**\n     * Returns the placeholder\n     * @default dd/mm/yyyy for english or jj/mm/aaaa for french\n     * @returns {string}\n     */\n    placeholder: Ember.computed('i18n.locale', function () {\n      if (this.i18n.locale === 'fr') {\n        return 'mm/aaaa';\n      }\n      return 'mm/yyyy';\n    }),\n    /**\n     * Returns the default pattern message.\n     * @default mx_month_year_input.error.date_invalid\n     * @returns {string}\n     */\n    patternMessage: Ember.computed('i18n.locale', function () {\n      return this.i18n.t('mx_month_year_input.error.date_invalid');\n    }),\n    /**\n     * Returns the default required message.\n     * @default mx_month_year_input.error.date_required\n     * @returns {string}\n     */\n    requiredMessage: Ember.computed('i18n.locale', {\n      get() {\n        return this._requiredMessage ? this._requiredMessage : this.i18n.t('mx_month_year_input.error.date_required');\n      },\n      set(key, value) {\n        this._requiredMessage = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns true if first of the month.\n     * @returns {boolean}\n     */\n    isFirstOfMonth() {\n      const dayOfMonth = this.dayOfMonth;\n      return dayOfMonth && dayOfMonth.toLowerCase() === 'first';\n    },\n    /**\n     * Returns true if last of month, otherwise returns false.\n     * @returns {boolean}\n     */\n    isLastOfMonth() {\n      const dayOfMonth = this.dayOfMonth;\n      return dayOfMonth && dayOfMonth.toLowerCase() === 'last';\n    },\n    /**\n     * @function setDay Set the first day of the date in an initial format 'MM/yyyy'\n     * @param {Date} a native Date object\n     * @returns {Date|null} a new Date object (dd/MM/yyyy) with day updated based on the rule dayOfMonth or null\n     */\n    setDay(date) {\n      let updatedDate = null;\n      if (date && (0, _dateFns.isValid)(date)) {\n        if (this.isFirstOfMonth()) {\n          updatedDate = (0, _dateFns.startOfMonth)(date);\n        } else if (this.isLastOfMonth()) {\n          updatedDate = (0, _dateFns.endOfMonth)(date);\n        } else {\n          const [,, _lastDayOfMonth] = (0, _dateFns.lastDayOfMonth)(date).toISOString().split('-');\n          if (!isNaN(this.dayOfMonth)) {\n            if (parseInt(this.dayOfMonth, 10) <= _lastDayOfMonth) {\n              updatedDate = (0, _dateFns.setDate)(date, this.dayOfMonth);\n            } else {\n              updatedDate = (0, _dateFns.lastDayOfMonth)(date);\n            }\n          }\n        }\n      }\n      return updatedDate;\n    },\n    /**\n     * Set the date based on mask value\n     * @param maskValue The mask value.\n     */\n    setDate(maskValue) {\n      let date = (0, _dateFns.parse)(maskValue, this.dateFormat, new Date());\n      date = this.setDay(date);\n      if (date) {\n        this.set('value', date);\n      } else {\n        this.set('value', null);\n      }\n    },\n    maskValue: Ember.computed('value', {\n      /**\n       * Returns the mask value.\n       * @returns {string}\n       */\n      get() {\n        if (!Ember.isEmpty(this.value)) {\n          return (0, _dateFns.format)(this.value, this.dateFormat);\n        }\n        return this.value;\n      },\n      /**\n       * Set the mask value\n       * @param key The field key\n       * @param maskValue The field value\n       * @returns {*}\n       */\n      set(key, maskValue) {\n        this.setDate(maskValue);\n        return maskValue;\n      }\n    }),\n    actions: {\n      /**\n       * Returns true if the component value is before the maximumDate, otherwise returns false.\n       * @param value The value.\n       * @returns {boolean}\n       */\n      validateMaximumDate(value) {\n        if (Ember.isEmpty(this.maximumDate)) {\n          return true;\n        }\n        this.set('maximumDate', this.resetTimeInformation(this.setDay(this.maximumDate)));\n        // console.log('validateMaximumDate =>', value, this.maximumDate);\n        if (!(0, _dateFns.isDate)(this.maximumDate)) {\n          return true;\n        }\n        if (this.includeBounds) {\n          return (0, _dateFns.isEqual)(value, this.maximumDate) || (0, _dateFns.isBefore)(value, this.maximumDate);\n        }\n        return (0, _dateFns.isBefore)(value, this.maximumDate);\n      },\n      /**\n       * Returns true if the component value is before the minimumDate, otherwise returns false.\n       * @param value The value.\n       * @returns {boolean}\n       */\n      validateMinimumDate(value) {\n        if (Ember.isEmpty(this.minimumDate)) {\n          return true;\n        }\n        if (!(0, _dateFns.isDate)(this.minimumDate)) {\n          return true;\n        }\n        this.set('minimumDate', this.resetTimeInformation(this.setDay(this.minimumDate)));\n        if (this.includeBounds) {\n          return (0, _dateFns.isEqual)(value, this.minimumDate) || (0, _dateFns.isAfter)(value, this.minimumDate);\n        }\n        return (0, _dateFns.isAfter)(value, this.minimumDate);\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-notifications\", [\"exports\", \"ember-mx/templates/components/mx-notifications\"], function (_exports, _mxNotifications) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-notifications\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxNotifications.default,\n    /**\n     * HTML attributes rendered\n     */\n    attributeBindings: ['testAutomationId:data-test-automation-id', 'ariaLive:aria-live', 'role'],\n    ariaLive: 'assertive',\n    role: 'alert',\n    /**\n     * CSS rendered.\n     */\n    classNames: ['mx-notifications']\n  });\n});","define(\"ember-mx/components/mx-option\", [\"exports\", \"ember-mx/templates/components/mx-option\"], function (_exports, _mxOption) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-option\"eaimeta@70e063a35619d71f\n  /**\n   * This components renders a option tag.\n   * @module\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxOption.default,\n    /**\n     * HTML tag rendered.\n     */\n    tagName: 'option',\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['disabled', 'selected', 'value'],\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['mx-option']\n  });\n});","define(\"ember-mx/components/mx-output\", [\"exports\", \"ember-mx/templates/components/mx-output\"], function (_exports, _mxOutput) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"ember-mx/templates/components/mx-output\"eaimeta@70e063a35619d71f\n  /**\n   * This component renders a static value in a form.\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxOutput.default,\n    /**\n     * HTML tag rendered\n     */\n    tagName: null,\n    attributeBindings: ['testAutomationId:data-test-automation-id'],\n    /**\n     * Returns true if form is horizontal, otherwise returns false\n     * @return {boolean}\n     */\n    isFormHorizontal: Ember.computed(function () {\n      return this.$().closest('form').hasClass('form-horizontal');\n    })\n  });\n});","define(\"ember-mx/components/mx-page-body\", [\"exports\", \"ember-mx/templates/components/mx-page-body\"], function (_exports, _mxPageBody) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"ember-mx/templates/components/mx-page-body\"eaimeta@70e063a35619d71f\n  /**\n   * This component renders a main tag.\n   *\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxPageBody.default,\n    classNames: ['mx-page-body'],\n    attributeBindings: ['role'],\n    tagName: 'main',\n    role: 'main',\n    /**\n     * Flag to control if the footer is full width\n     *\n     * @default true\n     */\n    fullWidth: true,\n    /**\n     * Returns the container class\n     *\n     * @returns {string}\n     */\n    containerClass: Ember.computed('fullWidth', function () {\n      return this.fullWidth ? 'container-fluid' : 'container';\n    })\n  });\n});","define(\"ember-mx/components/mx-page-footer\", [\"exports\", \"ember-mx/templates/components/mx-page-footer\"], function (_exports, _mxPageFooter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"ember-mx/templates/components/mx-page-footer\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible to render a footer tag.\n   *\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxPageFooter.default,\n    classNames: ['mx-page-footer'],\n    attributeBindings: ['role'],\n    role: 'contentinfo',\n    tagName: 'footer',\n    /**\n     * Flag to control if the footer is full width\n     *\n     * @default true\n     */\n    fullWidth: true,\n    /**\n     * Returns the container class\n     *\n     * @returns {string}\n     */\n    containerClass: Ember.computed('fullWidth', function () {\n      return this.fullWidth ? 'container-fluid' : 'container';\n    })\n  });\n});","define(\"ember-mx/components/mx-page-header\", [\"exports\", \"ember-mx/templates/components/mx-page-header\"], function (_exports, _mxPageHeader) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"ember-mx/templates/components/mx-page-header\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible to render a header tag.\n   *\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxPageHeader.default,\n    classNames: ['mx-page-header'],\n    attributeBindings: ['role'],\n    role: 'contentinfo',\n    tagName: 'header',\n    /**\n     * Flag to control if the footer is full width\n     *\n     * @default true\n     */\n    fullWidth: true,\n    /**\n     * Returns the container class\n     *\n     * @returns {string}\n     */\n    containerClass: Ember.computed('fullWidth', function () {\n      return this.fullWidth ? 'container-fluid' : 'container';\n    })\n  });\n});","define(\"ember-mx/components/mx-page-navbar-link\", [\"exports\", \"ember-mx/templates/components/mx-page-navbar-link\"], function (_exports, _mxPageNavbarLink) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-page-navbar-link\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible to rendre navbar link\n   *\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxPageNavbarLink.default,\n    tagName: 'li',\n    classNames: ['mx-page-navbar-link']\n  });\n});","define(\"ember-mx/components/mx-page-navbar-locale-toggle\", [\"exports\", \"ember-mx/templates/components/mx-page-navbar-locale-toggle\"], function (_exports, _mxPageNavbarLocaleToggle) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/service\",0,\"ember-mx/templates/components/mx-page-navbar-locale-toggle\"eaimeta@70e063a35619d71f\n  /**\n   * This component renders a navbar link to toggle the locale.\n   *\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxPageNavbarLocaleToggle.default,\n    tagName: 'li',\n    classNames: ['mx-page-navbar-locale-toggle'],\n    i18n: Ember.inject.service('mx-i18n')\n  });\n});","define(\"ember-mx/components/mx-page-navbar-logo\", [\"exports\", \"ember-mx/templates/components/mx-page-navbar-logo\"], function (_exports, _mxPageNavbarLogo) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-page-navbar-logo\"eaimeta@70e063a35619d71f\n  /**\n   * This component renders the navbar logo\n   *\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxPageNavbarLogo.default,\n    classNames: ['mx-page-navbar-logo']\n  });\n});","define(\"ember-mx/components/mx-page-navbar\", [\"exports\", \"ember-mx/templates/components/mx-page-navbar\"], function (_exports, _mxPageNavbar) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-page-navbar\"eaimeta@70e063a35619d71f\n  /**\n   * This component render the page navbar\n   *\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxPageNavbar.default,\n    classNames: ['mx-page-navbar', 'navbar navbar-default'],\n    attributeBindings: ['role'],\n    role: 'navigation',\n    tagName: 'nav'\n  });\n});","define(\"ember-mx/components/mx-page\", [\"exports\", \"ember-mx/templates/components/mx-page\"], function (_exports, _mxPage) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-page\"eaimeta@70e063a35619d71f\n  /**\n   * This component is used a container for page based options.\n   *\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxPage.default,\n    classNames: ['mx-page'],\n    classNameBindings: ['stickyFooter:mx-page-sticky-footer', 'fixedFooter:mx-page-fixed-footer', 'fixedHeader:mx-page-fixed-header'],\n    fullWidth: true,\n    /**\n     * This flag controls if the footer is stick to the bottom of the page.\n     *\n     * @default false\n     */\n    stickyFooter: false,\n    /**\n     * This flag controls if the footer is fixed to the bottom of the page.\n     *\n     * @default false\n     */\n    fixedFooter: false,\n    /**\n     * This flag controls if the header is fixed to the top of the page.\n     *\n     * @default false\n     */\n    fixedHeader: false\n  });\n});","define(\"ember-mx/components/mx-phone-number-input\", [\"exports\", \"ember-mx/components/mx-input\", \"ember-mx/templates/components/mx-phone-number-input\", \"vanilla-text-mask\"], function (_exports, _mxInput, _mxPhoneNumberInput, _vanillaTextMask) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/utils\",0,\"ember-mx/components/mx-input\",0,\"ember-mx/templates/components/mx-phone-number-input\",0,\"vanilla-text-mask\"eaimeta@70e063a35619d71f\n  /**\n   * This component renders a phone number input\n   * @module\n   */\n  var _default = _exports.default = _mxInput.default.extend({\n    layout: _mxPhoneNumberInput.default,\n    /**\n     * Constructor.\n     */\n    init() {\n      this._super(...arguments);\n      this.set('mask', ['(', /[1-9]/, /\\d/, /\\d/, ')', ' ', /\\d/, /\\d/, /\\d/, '-', /\\d/, /\\d/, /\\d/, /\\d/]);\n    },\n    /**\n     * CSS class rendered.\n     */\n    classNames: ['mx-phone-number-input'],\n    /**\n     * This option controls the id used to select the field for test automation.\n     * @default phoneNumber\n     */\n    testAutomationId: 'phone',\n    /**\n     * This option controls the placeholder character used by the mask.\n     * @default _\n     */\n    placeholderChar: '_',\n    /**\n     * This option controls if the user is guided by the mask.\n     * @default true\n     */\n    guide: true,\n    /**\n     * This option controls if the characters stay in there position when removing/insert new characters.\n     * @default true\n     */\n    keepCharPositions: true,\n    /**\n     * This option controls if the mask is displayed\n     * @default false\n     */\n    showMask: false,\n    /**\n     * This option controls the regular expression used to validate the phone number.\n     * @default \\\\(\\\\d{3}\\\\)\\\\s\\\\d{3}-\\\\d{4}\n     */\n    pattern: '\\\\(\\\\d{3}\\\\)\\\\s\\\\d{3}-\\\\d{4}',\n    /**\n     * Returns the label\n     * @default mx_phone_number_input.label.phone_number\n     * @returns {string}\n     */\n    label: Ember.computed('i18n.locale', {\n      get() {\n        return this._label ? this._label : this.i18n.t('mx_phone_number_input.label.phone_number');\n      },\n      set(key, value) {\n        this._label = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns the required message\n     * @default mx_phone_number_input.error.phone_number_required\n     * @returns {string}\n     */\n    requiredMessageComputed: Ember.computed('i18n.locale', {\n      get() {\n        return this._requiredMessageComputed || this.requiredMessage || this.i18n.t('mx_phone_number_input.error.phone_number_required');\n      },\n      set(key, value) {\n        this._requiredMessageComputed = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns the pattern message.\n     * @default mx_phone_number_input.error.phone_number_invalid_length\n     * @returns {string}\n     */\n    patternMessage: Ember.computed('i18n.locale', function () {\n      return this.i18n.t('mx_phone_number_input.error.phone_number_invalid_length');\n    }),\n    /**\n     * Returns unmasked value\n     * @param maskValue The mask value.\n     * @returns {string}\n     */\n    getUnmaskedValue(maskValue) {\n      return maskValue.replace(/[^\\d]/g, '');\n    },\n    /**\n     * maskValue computed property.\n     */\n    maskValue: Ember.computed('value', {\n      get() {\n        return this.value;\n      },\n      set(key, maskValue) {\n        const unmaskedValue = this.getUnmaskedValue(maskValue);\n        this.set('value', unmaskedValue);\n        return maskValue;\n      }\n    }),\n    /**\n     * Returns true if the label is empty.\n     */\n    isEmpty: Ember.computed.empty('maskValue'),\n    /**\n     * didInsertElement hook\n     */\n    didInsertElement() {\n      this._super(...arguments);\n      this.maskInput = (0, _vanillaTextMask.maskInput)({\n        inputElement: this.element.querySelector('input'),\n        mask: this.mask,\n        guide: this.guide,\n        placeholderChar: this.placeholderChar,\n        keepCharPositions: this.keepCharPositions,\n        showMask: this.showMask\n      });\n    },\n    /**\n     * didDestroyElement hook.\n     */\n    didDestroyElement() {\n      this._super(...arguments);\n      this.maskInput.destroy();\n    },\n    actions: {\n      /**\n       * Returns true if this component value is equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateEqualTo(value) {\n        return Ember.isEqual(this.getUnmaskedValue(value), this.equalTo);\n      },\n      /**\n       * Returns true if this component value is not equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateNotEqualTo(value) {\n        return !Ember.isEqual(this.getUnmaskedValue(value), this.notEqualTo);\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-postal-code-input\", [\"exports\", \"ember-mx/templates/components/mx-postal-code-input\", \"ember-mx/components/mx-input\", \"vanilla-text-mask\"], function (_exports, _mxPostalCodeInput, _mxInput, _vanillaTextMask) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/utils\",0,\"ember-mx/templates/components/mx-postal-code-input\",0,\"ember-mx/components/mx-input\",0,\"vanilla-text-mask\"eaimeta@70e063a35619d71f\n  /**\n   * Component renders a mx-input with postal code validation\n   * @module\n   */\n  var _default = _exports.default = _mxInput.default.extend({\n    /**\n     * Constructor.\n     */\n    init() {\n      this._super(...arguments);\n      this.set('mask', [/[A-Z]/i, /\\d/, /[A-Z]/i, ' ', /\\d/, /[A-Z]/i, /\\d/]);\n    },\n    layout: _mxPostalCodeInput.default,\n    /**\n     * CSS classes rendered\n     */\n    classNames: ['mx-postal-code-input'],\n    /**\n     * This option controls the id used to select the field for test automation.\n     * @default postalCode\n     */\n    testAutomationId: 'postal-code',\n    /**\n     * This pipe force people to enter uppercase letters.\n     * @param conformedValue The conformedValue\n     * @returns {string}\n     */\n    pipe(conformedValue) {\n      return conformedValue.toUpperCase();\n    },\n    /**\n     * This option controls the showMask optioni.\n     * @default false\n     */\n    showMask: false,\n    /**\n     * This option controls the placeholder character used by the mask.\n     * @default _\n     */\n    placeholderChar: '_',\n    /**\n     * This option controls if the user is guided by the mask.\n     * @default true\n     */\n    guide: true,\n    /**\n     * This option controls if the characters stay in there position when removing/insert new characters.\n     * @default true\n     */\n    keepCharPositions: true,\n    /**\n     * This option controls the regular expression used to validate the postal code.\n     * @default [ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z][ ]?\\d[ABCEGHJ-NPRSTV-Z]\\d\n     */\n    pattern: /[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z][ ]?\\d[ABCEGHJ-NPRSTV-Z]\\d/,\n    /**\n     * This option controls the maximum length of the postal code.\n     * @default 7\n     */\n    maximumLength: 7,\n    /**\n     * Returns the label\n     * @returns {string}\n     */\n    label: Ember.computed('i18n.locale', {\n      get() {\n        return this._label ? this._label : this.i18n.t('mx_postal_code_input.label.postal_code');\n      },\n      set(key, value) {\n        this._label = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns the required error message\n     * @returns {string}\n     */\n    requiredMessage: Ember.computed('i18n.locale', {\n      get() {\n        return this._requiredMessage ? this._requiredMessage : this.i18n.t('mx_postal_code_input.error.postal_code_required');\n      },\n      set(key, value) {\n        this._requiredMessage = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns the pattern error message.\n     */\n    patternMessage: Ember.computed('i18n.locale', {\n      get() {\n        return this._patternMessage ? this._patternMessage : this.i18n.t('mx_postal_code_input.error.postal_code_invalid');\n      },\n      set(key, value) {\n        this._patternMessage = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns unmasked value\n     * @param maskValue The mask value.\n     * @returns {string}\n     */\n    getUnmaskedValue(maskValue) {\n      return maskValue.replace(/[^a-zA-Z\\d]/g, '');\n    },\n    /**\n     * maskValue computed property.\n     */\n    maskValue: Ember.computed('value', {\n      get() {\n        return this.value;\n      },\n      set(key, maskValue) {\n        const unmaskedValue = this.getUnmaskedValue(maskValue);\n        this.set('value', unmaskedValue);\n        return maskValue;\n      }\n    }),\n    /**\n     * didInsertElement hook\n     */\n    didInsertElement() {\n      this._super(...arguments);\n      this.maskInput = (0, _vanillaTextMask.maskInput)({\n        inputElement: this.element.querySelector('input'),\n        mask: this.mask,\n        guide: this.guide,\n        placeholderChar: this.placeholderChar,\n        keepCharPositions: this.keepCharPositions,\n        pipe: this.pipe,\n        showMask: this.showMask\n      });\n    },\n    /**\n     * didDestroyElement hook.\n     */\n    didDestroyElement() {\n      this._super(...arguments);\n      this.maskInput.destroy();\n    },\n    actions: {\n      /**\n       * Returns true if this component value is equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateEqualTo(value) {\n        return Ember.isEqual(this.getUnmaskedValue(value), this.equalTo);\n      },\n      /**\n       * Returns true if this component value is not equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateNotEqualTo(value) {\n        return !Ember.isEqual(this.getUnmaskedValue(value), this.notEqualTo);\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-radio-button-group\", [\"exports\", \"ember-mx/templates/components/mx-radio-button-group\", \"ember-mx/mixins/mx-parsley-ui\", \"ember-mx/mixins/mx-item-sorting\", \"ember-mx/mixins/mx-group\", \"ember-mx/mixins/mx-id\"], function (_exports, _mxRadioButtonGroup, _mxParsleyUi, _mxItemSorting, _mxGroup, _mxId) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/runloop\",0,\"@ember/utils\",0,\"@ember/object/computed\",0,\"@ember/component\",0,\"ember-mx/templates/components/mx-radio-button-group\",0,\"ember-mx/mixins/mx-parsley-ui\",0,\"ember-mx/mixins/mx-item-sorting\",0,\"ember-mx/mixins/mx-group\",0,\"ember-mx/mixins/mx-id\"eaimeta@70e063a35619d71f\n  /**\n   * This component represents a radio button group\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend(_mxGroup.default, _mxItemSorting.default, _mxParsleyUi.default, _mxId.default, {\n    /**\n     * Component layout.\n     */\n    layout: _mxRadioButtonGroup.default,\n    /**\n     * CSS classes rendered.\n     * @default radio-widget\n     */\n    classNames: ['mx-radio-button-group'],\n    /**\n     * Optional CSS classes rendered.\n     */\n    classNameBindings: ['valueNotEmpty:has-value'],\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['testAutomationIdGroup:data-test-automation-id'],\n    /**\n     * Returns true if value is not empty, otherwise returns false.\n     * @returns {boolean}\n     */\n    valueNotEmpty: Ember.computed.notEmpty('value'),\n    disabledGroup: Ember.computed('disabled', function () {\n      if (this.disabled) {\n        return true;\n      }\n      return false;\n    }),\n    /**\n     * Listen when the equalTo value is changed.\n     */\n    equalToChanged: Ember.observer('equalTo', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen when the notEqualTo value is changed.\n     */\n    notEqualToChanged: Ember.observer('notEqualTo', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen when the  value is changed.\n     */\n    valueChanged: Ember.observer('value', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen to when the focused option is changed.\n     *\n     * The following occurs when focused is set to true:\n     *\n     * \t- If there is a value, the first checked radio button is focused.\n     * \t- If there is not value, the first radio button is focused.\n     */\n    focusChanged: Ember.observer('focused', function () {\n      const isFocused = this.$('input').is(':focus');\n      if (this.focused && !isFocused) {\n        if (!Ember.isEmpty(this.value)) {\n          this.$('input:checked').focus();\n        } else {\n          this.$('input:first').focus();\n        }\n      }\n    }),\n    /**\n     * Listen to focus events.\n     * @param evt The event.\n     */\n    focusIn(evt) {\n      this.set('focused', true);\n      if (!Ember.isEmpty(this.focusInAction)) {\n        this.focusInAction(evt);\n      }\n    },\n    /**\n     * Listen to blur events.\n     * @param evt The event.\n     */\n    focusOut(evt) {\n      this.set('focused', false);\n      if (!Ember.isEmpty(this.focusOutAction)) {\n        this.focusOutAction(evt);\n      }\n    },\n    actions: {\n      /**\n       * This action is called when a radio button group is checked or unchecked from the group.\n       * @param value The value of the selected radio button.\n       */\n      valueChangeAction(value) {\n        this.set('value', value);\n        if (!Ember.isNone(this.valueChangeAction)) {\n          this.valueChangeAction(this.value);\n        }\n      },\n      /**\n       * Returns true if this component value is equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateEqualTo(value) {\n        return Ember.isEqual(this.value, this.equalTo);\n      },\n      /**\n       * Returns true if this component value is not equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateNotEqualTo(value) {\n        return !Ember.isEqual(this.value, this.notEqualTo);\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-radio-button-inline\", [\"exports\", \"ember-mx/templates/components/mx-radio-button-inline\", \"ember-mx/components/mx-radio-button\"], function (_exports, _mxRadioButtonInline, _mxRadioButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"ember-mx/templates/components/mx-radio-button-inline\",0,\"ember-mx/components/mx-radio-button\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   */\n  var _default = _exports.default = _mxRadioButton.default.extend({\n    layout: _mxRadioButtonInline.default,\n    /**\n     * HTML tag rendered.\n     */\n    tagName: 'div',\n    /**\n     * This options controls the radio button class.\n     */\n    radioClass: 'radio-inline'\n  });\n});","define(\"ember-mx/components/mx-radio-button-label\", [\"exports\", \"ember-mx/templates/components/mx-radio-button-label\"], function (_exports, _mxRadioButtonLabel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/utils\",0,\"ember-mx/templates/components/mx-radio-button-label\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxRadioButtonLabel.default,\n    classNames: ['mx-radio-button-label'],\n    /**\n     * didInsertElement hook\n     */\n    didInsertElement() {\n      this._super(...arguments);\n      if (!Ember.isEmpty(this.didInsertElementAction)) {\n        this.didInsertElementAction();\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-radio-button\", [\"exports\", \"ember-mx/mixins/mx-parsley-field\", \"ember-mx/mixins/mx-id\", \"ember-mx/templates/components/mx-radio-button\"], function (_exports, _mxParsleyField, _mxId, _mxRadioButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/utils\",0,\"@ember/component\",0,\"ember-mx/mixins/mx-parsley-field\",0,\"ember-mx/mixins/mx-id\",0,\"ember-mx/templates/components/mx-radio-button\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible to render a radio button.\n   * @module\n   * @author bcpoiri\n   */\n  var _default = _exports.default = Ember.Component.extend(_mxParsleyField.default, _mxId.default, {\n    /**\n     * Component layout.\n     */\n    layout: _mxRadioButton.default,\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['mx-radio-button'],\n    /**\n     * Optional CSS classes rendered.\n     */\n    classNameBindings: ['radioClass', 'disabled:disabled'],\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['testAutomationIdGroup:data-test-automation-id'],\n    /**\n     * This option controls the class for radio button\n     * @default radio\n     */\n    radioClass: 'radio',\n    /**\n     * Listens when a radio button is clicked on.\n     */\n    change() {\n      if (!Ember.isNone(this.valueChangeAction)) {\n        this.valueChangeAction(this.value);\n      }\n    },\n    /**\n     * Returns the JQuery selector that matches the element to attach validation on.\n     * @returns {string}\n     */\n    validationSelector: Ember.computed(function () {\n      return this.$('input:first');\n    })\n  });\n});","define(\"ember-mx/components/mx-select\", [\"exports\", \"ember-mx/mixins/mx-parsley-field\", \"ember-mx/mixins/mx-parsley-ui\", \"ember-mx/mixins/mx-focus\", \"ember-mx/mixins/mx-item-sorting\", \"ember-mx/mixins/mx-id\", \"ember-mx/templates/components/mx-select\"], function (_exports, _mxParsleyField, _mxParsleyUi, _mxFocus, _mxItemSorting, _mxId, _mxSelect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/component\",0,\"ember-mx/mixins/mx-parsley-field\",0,\"ember-mx/mixins/mx-parsley-ui\",0,\"ember-mx/mixins/mx-focus\",0,\"ember-mx/mixins/mx-item-sorting\",0,\"ember-mx/mixins/mx-id\",0,\"ember-mx/templates/components/mx-select\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible to render a select.\n   * @author bcpoiri\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend(_mxItemSorting.default, _mxParsleyField.default, _mxParsleyUi.default, _mxFocus.default, _mxId.default, {\n    /**\n     * Component layout.\n     */\n    layout: _mxSelect.default,\n    /**\n     * CSS classes rendered.\n     * @default mx-checkbox select-widget\n     */\n    classNames: ['form-group', 'mx-select'],\n    /**\n     * Optional CSS classes rendered.\n     */\n    classNameBindings: ['valueNotEmpty:has-value'],\n    /**\n     * HTML attributes rendered.\n     */\n    attributeBindings: ['testAutomationId:data-test-automation-id'],\n    /**\n     * This option controls the event that the validation is fired for the first time.\n     */\n    validationTrigger: 'blur',\n    /**\n     * This option controls the even that the validation is fired after a failure.\n     */\n    validationTriggerAfterFailure: 'change',\n    /**\n     * This option controls the if the label is displayed.\n     */\n    showLabel: true,\n    /**\n     * Returns true if the value is not empty, otherwise returns false.\n     * @returns {boolean}\n     */\n    valueNotEmpty: Ember.computed.notEmpty('value'),\n    /**\n     * Returns the JQuery selector that matches the element to attach validation on.\n     * @returns {string}\n     */\n    validationSelector: Ember.computed(function () {\n      return this.$('select');\n    }),\n    /**\n     * Listen to when the focused option is changed.\n     * if the select is not already focused, it automatically focus.\n     */\n    focusedChanged: Ember.observer('focused', function () {\n      const isFocused = this.$('select').is(':focus');\n      if (this.focused && !isFocused) {\n        this.$('select').focus();\n      }\n    }),\n    /**\n     * Fired when the element is inserted in the DOM to deal with the focus\n     */\n    didInsertElement() {\n      this._super(...arguments);\n      const selectElement = this.$('select');\n      const isFocused = selectElement.is(':focus');\n      if (this.focused && !isFocused) {\n        selectElement.focus();\n      }\n    },\n    /**\n     * Listen for value change events.\n     */\n    change(event) {\n      this._super(event);\n      if (!Ember.isEmpty(this.$('select')) && !Ember.isEmpty(this.sortedItems)) {\n        // get selected option index.\n        const selectedIndex = this.$('select')[0].selectedIndex;\n        // get selected item for a given index.\n        let selectedItem = null;\n        if (!Ember.isEmpty(this.placeholder)) {\n          selectedItem = this.sortedItems[selectedIndex - 1];\n        } else {\n          selectedItem = this.sortedItems[selectedIndex];\n        }\n        // set the value with selectedItem value\n        if (!Ember.isNone(this.itemValueProperty)) {\n          this.set('value', selectedItem[this.itemValueProperty]);\n        } else {\n          this.set('value', selectedItem);\n        }\n        if (this.valueChangeAction) {\n          this.valueChangeAction(this.value);\n        }\n      }\n    }\n  });\n});","define(\"ember-mx/components/mx-space\", [\"exports\", \"ember-mx/templates/components/mx-space\"], function (_exports, _mxSpace) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-space\"eaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxSpace.default,\n    tagName: ''\n  });\n});","define(\"ember-mx/components/mx-spinner\", [\"exports\", \"ember-mx/templates/components/mx-spinner\"], function (_exports, _mxSpinner) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"ember-mx/templates/components/mx-spinner\"eaimeta@70e063a35619d71f\n  /**\n   * This components renders a spinner.\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _mxSpinner.default,\n    /**\n     * CSS class rendered.\n     */\n    classNames: ['spinner', 'mx-spinner']\n  });\n});","define(\"ember-mx/components/mx-textarea\", [\"exports\", \"ember-mx/mixins/mx-input\", \"ember-mx/mixins/mx-parsley-field\", \"ember-mx/mixins/mx-focus\", \"ember-mx/mixins/mx-parsley-ui\", \"ember-mx/templates/components/mx-textarea\", \"ember-mx/mixins/mx-id\"], function (_exports, _mxInput, _mxParsleyField, _mxFocus, _mxParsleyUi, _mxTextarea, _mxId) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component\",0,\"@ember/object\",0,\"ember-mx/mixins/mx-input\",0,\"ember-mx/mixins/mx-parsley-field\",0,\"ember-mx/mixins/mx-focus\",0,\"ember-mx/mixins/mx-parsley-ui\",0,\"ember-mx/templates/components/mx-textarea\",0,\"ember-mx/mixins/mx-id\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend(_mxInput.default, _mxParsleyField.default, _mxParsleyUi.default, _mxFocus.default, _mxId.default, {\n    layout: _mxTextarea.default,\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['mx-textarea'],\n    rows: 5,\n    /**\n     * This option controls if the label is visible.\n     * @default true\n     */\n    showLabel: true,\n    /**\n     * This option controls how is label displayed.\n     * The following label types are supported:\n     * \t\t- static\n     * \t\t- floating\n     * \t\t- placeholder\n     *\n     * @default static\n     */\n    labelType: 'static',\n    /**\n     * Listen for when the focused option is changed.\n     */\n    focusChanged: Ember.observer('focused', function () {\n      const isFocused = this.$('input').is(':focus');\n      if (this.focused && !isFocused) {\n        this.$('textarea').focus();\n      }\n    }),\n    /**\n     * Returns the input id.\n     * @returns {string}\n     */\n    inputId: Ember.computed('elementId', function () {\n      return `${this.elementId}-input`;\n    }),\n    /**\n     * Returns the JQuery selector that matches the element to attach validation on.\n     * @returns {string}\n     */\n    validationSelector: Ember.computed(function () {\n      return this.$('textarea');\n    })\n  });\n});","define(\"ember-mx/components/mx-validator\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"jquery\",0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/component\"eaimeta@70e063a35619d71f\n  /**\n   * This component is responsible to handle adding parsley custom validator.\n   * @author bcpoiri\n   * @module\n   */\n  var _default = _exports.default = Ember.Component.extend({\n    /**\n     * HTML tag rendered.\n     */\n    tagName: 'span',\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['mx-validator'],\n    /**\n     * This option controls what data type that is received by the parsley validator\n     * The following types are supported:\n     * \t\t- string\n     * \t\t- number\n     * \t\t- array\n     *\n     * @default string\n     */\n    type: 'string',\n    /**\n     * Handles when the message changed, most likely to a locale changed.\n     */\n    messageChanged: Ember.observer('message', function () {\n      this.updateValidator();\n    }),\n    /**\n     * Handles when the message tyoe changed, most likely to a locale changed.\n     */\n    typeChanged: Ember.observer('type', function () {\n      this.updateValidator();\n    }),\n    /**\n     * Handles when the message tyoe changed, most likely to a locale changed.\n     */\n    validatedValueChanged: Ember.observer('validatedValue', function () {\n      this.updateValidator();\n    }),\n    /**\n     * Returns the options for string validator.\n     * @returns {object}\n     */\n    getValidatorOpts() {\n      const self = this;\n      return {\n        requirementType: 'string',\n        validateString(value, requirement) {\n          return self.get('action')(self.get('validatedValue'), requirement);\n        },\n        messages: {\n          en: '' + this.message,\n          fr: '' + this.message\n        }\n      };\n    },\n    /**\n     * Returns the options for array validator.\n     * @returns {object}\n     */\n    getArrayValidatorOpts() {\n      const self = this;\n      return {\n        requirementType: 'string',\n        validateMultiple(value, requirement) {\n          return self.get('action')(self.get('validatedValue'), requirement);\n        },\n        messages: {\n          en: '' + this.message,\n          fr: '' + this.message\n        }\n      };\n    },\n    /**\n     * Attach validator on fields.\n     */\n    attachValidator() {\n      const validationSelector = this.validationSelector;\n      if (!Ember.isNone(validationSelector)) {\n        const validatorAttributeKey = `data-parsley-${this.elementId}`;\n        (0, _jquery.default)(validationSelector).attr(validatorAttributeKey, true);\n      }\n    },\n    /**\n     * Add validator.\n     */\n    addValidator() {\n      switch (this.type) {\n        case 'array':\n          window.Parsley.addValidator(this.elementId, this.getArrayValidatorOpts());\n          break;\n        default:\n          window.Parsley.addValidator(this.elementId, this.getValidatorOpts());\n      }\n      this.attachValidator();\n    },\n    /**\n     * Update the validator.\n     */\n    updateValidator() {\n      switch (this.type) {\n        case 'array':\n          window.Parsley.updateValidator(this.elementId, this.getArrayValidatorOpts());\n          break;\n        default:\n          window.Parsley.updateValidator(this.elementId, this.getValidatorOpts());\n      }\n    },\n    /**\n     * Remove validator.\n     */\n    removeValidator() {\n      window.Parsley.removeValidator(this.elementId);\n    },\n    /**\n     * didInsertElement hook.\n     */\n    didInsertElement() {\n      this._super(...arguments);\n      if (Ember.isNone(this.action)) {\n        throw new Error('The action is undefined. You need to provide one.');\n      }\n      if (Ember.isNone(this.message)) {\n        throw new Error('The message is undefined. You need to provide one.');\n      }\n      if (Ember.isNone(this.validationSelector)) {\n        throw new Error('The validationSelector is undefined. You need to provide one.');\n      }\n      this.addValidator();\n    },\n    /**\n     * willDestroyElement hook.\n     */\n    willDestroyElement() {\n      this._super(...arguments);\n      this.removeValidator();\n    }\n  });\n});","define(\"ember-mx/components/mx-yes-no-toggle\", [\"exports\", \"ember-mx/components/mx-radio-button-group\"], function (_exports, _mxRadioButtonGroup) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/array\",0,\"@ember/object\",0,\"ember-mx/components/mx-radio-button-group\"eaimeta@70e063a35619d71f\n  const YES_CODE = true;\n  const NO_CODE = false;\n\n  /**\n   * This component is responsible toggle between a yes and no.\n   * @module\n   */\n  var _default = _exports.default = _mxRadioButtonGroup.default.extend({\n    /**\n     * CSS classes rendered.\n     */\n    classNames: ['mx-yes-no-toggle'],\n    /**\n     * This option controls the value for the no option.\n     * @default false\n     */\n    noValue: NO_CODE,\n    /**\n     * This option controls the value for the yes option.\n     * @default true.\n     */\n    yesValue: YES_CODE,\n    /**\n     * This option controls the property used for the label in the list of items.\n     * @default description\n     */\n    itemLabelProperty: 'description',\n    /**\n     * This option controls the property used for the label in the list of items.\n     * @default code\n     */\n    itemValueProperty: 'code',\n    /**\n     * This option controls if the yes or no toggle is displayed inline\n     * @default true\n     */\n    inline: true,\n    /**\n     * This option controls if the label are sorted.\n     */\n    sort: false,\n    /**\n     * Returns the default translation if yesLabel not specified.\n     * @returns {string}\n     */\n    yesLabel: Ember.computed('i18n.locale', function () {\n      return this.i18n.unsafeTranslate('mx_yes_no_toggle.label.yes');\n    }),\n    /**\n     * Returns the default translation if noLabel not specified.\n     * @returns {string}\n     */\n    noLabel: Ember.computed('i18n.locale', function () {\n      return this.i18n.unsafeTranslate('mx_yes_no_toggle.label.no');\n    }),\n    /**\n     * Returns the list of genders\n     * @returns {array}\n     */\n    items: Ember.computed('i18n.locale', function () {\n      return Ember.A([Ember.Object.create({\n        code: this.yesValue,\n        description: this.yesLabel\n      }), Ember.Object.create({\n        code: this.noValue,\n        description: this.noLabel\n      })]);\n    })\n  });\n});","define(\"ember-mx/helpers/boolean-to-string\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.booleanToString = booleanToString;\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  /**\n   * This little helper is used to convert pure boolean values into strings.\n   *\n   * The reason why this helper has been created is to make sure that boolean values are added to HTML attribute that need one (ex: aria-checked=\"true\").\n   * If the boolean value is left as is without converting it to a string, handlebars generates something like 'aria-checked' when the attribute value is true. If the attribute value is false then the\n   * attribute is not even generated causing some accessibility issues.\n   * @module\n   * @param  {Array} params The boolean value to convert\n   * @return {string}   The boolean converted to a string\n   */\n  function booleanToString(params /*, hash*/) {\n    // If the boolean is nullable (contains 'null') then return false\n    return params[0] ? 'true' : 'false';\n  }\n  var _default = _exports.default = Ember.Helper.helper(booleanToString);\n});","define(\"ember-mx/helpers/get-item-disabled\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getItemDisabled = getItemDisabled;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   * @param item\n   * @param itemDisabledProperty\n   * @return {*}\n   */\n  function getItemDisabled([item, itemDisabledProperty]) {\n    if (!Ember.isNone(item) && !Ember.isNone(itemDisabledProperty)) {\n      if (typeof item.get === 'function') {\n        return item.get(itemDisabledProperty);\n      }\n      return item[itemDisabledProperty];\n    }\n    // By default, disabled = false.\n    return false;\n  }\n  var _default = _exports.default = Ember.Helper.helper(getItemDisabled);\n});","define(\"ember-mx/helpers/get-item-label\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getItemLabel = getItemLabel;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   * @param item\n   * @param itemLabelProperty\n   * @return {*}\n   */\n  function getItemLabel([item, itemLabelProperty]) {\n    if (!Ember.isNone(item) && !Ember.isNone(itemLabelProperty)) {\n      if (typeof item.get === 'function') {\n        return item.get(itemLabelProperty);\n      }\n      return item[itemLabelProperty];\n    }\n    return item;\n  }\n  var _default = _exports.default = Ember.Helper.helper(getItemLabel);\n});","define(\"ember-mx/helpers/get-item-value\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.getItemValue = getItemValue;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   * @param item\n   * @param itemValueProperty\n   * @return {*}\n   */\n  function getItemValue([item, itemValueProperty]) {\n    if (!Ember.isNone(item) && !Ember.isNone(itemValueProperty)) {\n      if (typeof item.get === 'function') {\n        return item.get(itemValueProperty);\n      }\n      return item[itemValueProperty];\n    }\n    return item;\n  }\n  var _default = _exports.default = Ember.Helper.helper(getItemValue);\n});","define(\"ember-mx/helpers/is-checkbox-item-checked\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isCheckboxItemChecked = isCheckboxItemChecked;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/utils\",0,\"@ember/array\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   * @param items\n   * @param item\n   * @param itemValueProperty\n   * @return {*}\n   */\n  function isCheckboxItemChecked([items, item, itemValueProperty]) {\n    if (Ember.isArray(items) && !Ember.isEmpty(items) && !Ember.isEmpty(itemValueProperty) && !Ember.isEmpty(item)) {\n      if (typeof item.get === 'function') {\n        return items.includes(item.get(itemValueProperty));\n      }\n      return items.includes(item[itemValueProperty]);\n    } else if (Ember.isArray(items) && !Ember.isEmpty(items) && !Ember.isEmpty(item)) {\n      return items.includes(item);\n    }\n    return false;\n  }\n  var _default = _exports.default = Ember.Helper.helper(isCheckboxItemChecked);\n});","define(\"ember-mx/helpers/is-equal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isEqeq = isEqeq;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   * @param params\n   * @return {boolean}\n   */\n  function isEqeq(params /*, hash*/) {\n    /* eslint eqeqeq: 0 */\n    return params[0] == params[1];\n  }\n  var _default = _exports.default = Ember.Helper.helper(isEqeq);\n});","define(\"ember-mx/helpers/is-item-autofocus\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isItemAutofocus = isItemAutofocus;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   * @param autoFocus\n   * @param index\n   * @return {*|boolean}\n   */\n  function isItemAutofocus([autoFocus, index]) {\n    return autoFocus && index === 0;\n  }\n  var _default = _exports.default = Ember.Helper.helper(isItemAutofocus);\n});","define(\"ember-mx/helpers/is-radio-button-item-checked\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isRadioButtonItemChecked = isRadioButtonItemChecked;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/helper\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   * @param value\n   * @param item\n   * @param itemValueProperty\n   * @return {*}\n   */\n  function isRadioButtonItemChecked([value, item, itemValueProperty]) {\n    if (!Ember.isNone(value) && !Ember.isNone(item) && !Ember.isNone(itemValueProperty)) {\n      return Ember.isEqual(value, item.get(itemValueProperty));\n    } else if (!Ember.isNone(value) && !Ember.isNone(item)) {\n      return Ember.isEqual(value, item);\n    }\n    return false;\n  }\n  var _default = _exports.default = Ember.Helper.helper(isRadioButtonItemChecked);\n});","define(\"ember-mx/initializers/mx-enable-aria-attributes\", [\"exports\", \"ember-mx/components/mx-radio-button\", \"ember-mx/components/mx-checkbox\", \"ember-mx/components/mx-button\", \"ember-mx/components/mx-input\", \"ember-mx/components/mx-link\", \"ember-mx/components/mx-select\"], function (_exports, _mxRadioButton, _mxCheckbox, _mxButton, _mxInput, _mxLink, _mxSelect) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/checkbox\",0,\"@ember/component/text-area\",0,\"@ember/component/text-field\",0,\"@ember/routing/link-component\",0,\"@ember/utils\",0,\"ember-mx/components/mx-radio-button\",0,\"ember-mx/components/mx-checkbox\",0,\"ember-mx/components/mx-button\",0,\"ember-mx/components/mx-input\",0,\"ember-mx/components/mx-link\",0,\"ember-mx/components/mx-select\"eaimeta@70e063a35619d71f\n  // August 2019: Deprecate ember-cli-bootstrap-datepicker\n  // import DatePicker from 'ember-cli-bootstrap-datepicker/components/bootstrap-datepicker';\n  /**\n   * @module\n   */\n  function initialize() {\n    const ARIA_ATTRIBUTE_PREFIX = 'aria-';\n    const ROLE_ATTRIBUTE = 'role';\n    Ember.LinkComponent.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    Ember.TextField.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    Ember.TextArea.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    Ember.Checkbox.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    _mxCheckbox.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n\n    // August 2019: Deprecate ember-cli-bootstrap-datepicker\n    /*\n    DatePicker.reopen({\n    \tinit() {\n    \t\tthis._super();\n    \t\tconst attributeBindings = [];\n    \t\tObject.keys(this).forEach(key => {\n    \t\t\tif (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n    \t\t\t\tattributeBindings.push(key);\n    \t\t\t}\n    \t\t});\n    \t\tif (!isEmpty(attributeBindings)) {\n    \t\t\tthis.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n    \t\t}\n    \t}\n    });\n    */\n\n    _mxRadioButton.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    _mxInput.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    _mxLink.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    _mxSelect.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    _mxButton.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key === ROLE_ATTRIBUTE || key.substr(0, 5) === ARIA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n  }\n  var _default = _exports.default = {\n    name: 'mx-enable-aria-attributes',\n    initialize\n  };\n});","define(\"ember-mx/initializers/mx-enable-data-attributes\", [\"exports\", \"ember-mx/components/mx-radio-button\", \"ember-mx/components/mx-checkbox\", \"ember-mx/components/mx-input\", \"ember-mx/components/mx-select\", \"ember-mx/components/mx-button\"], function (_exports, _mxRadioButton, _mxCheckbox, _mxInput, _mxSelect, _mxButton) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/component/text-area\",0,\"@ember/component/checkbox\",0,\"@ember/component/text-field\",0,\"@ember/utils\",0,\"ember-mx/components/mx-radio-button\",0,\"ember-mx/components/mx-checkbox\",0,\"ember-mx/components/mx-input\",0,\"ember-mx/components/mx-select\",0,\"ember-mx/components/mx-button\"eaimeta@70e063a35619d71f\n  // August 2019: Deprecate ember-cli-bootstrap-datepicker\n  // import DatePicker from 'ember-cli-bootstrap-datepicker/components/bootstrap-datepicker';\n  /**\n   * @module\n   */\n  function initialize() {\n    const DATA_ATTRIBUTE_PREFIX = 'data-';\n    Ember.TextField.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key.substr(0, 5) === DATA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    Ember.Checkbox.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key.substr(0, 5) === DATA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    _mxCheckbox.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key.substr(0, 5) === DATA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    Ember.TextArea.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key.substr(0, 5) === DATA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n\n    // August 2019: Deprecate ember-cli-bootstrap-datepicker\n    /*\n    DatePicker.reopen({\n    \tinit() {\n    \t\tthis._super();\n    \t\tconst attributeBindings = [];\n    \t\tObject.keys(this).forEach(key => {\n    \t\t\tif (key.substr(0, 5) === DATA_ATTRIBUTE_PREFIX) {\n    \t\t\t\tattributeBindings.push(key);\n    \t\t\t}\n    \t\t});\n    \t\tif (!isEmpty(attributeBindings)) {\n    \t\t\tthis.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n    \t\t}\n    \t}\n    });\n    */\n\n    _mxRadioButton.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key.substr(0, 5) === DATA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    _mxInput.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key.substr(0, 5) === DATA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    _mxSelect.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key.substr(0, 5) === DATA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n    _mxButton.default.reopen({\n      init() {\n        this._super();\n        const attributeBindings = [];\n        Object.keys(this).forEach(key => {\n          if (key.substr(0, 5) === DATA_ATTRIBUTE_PREFIX) {\n            attributeBindings.push(key);\n          }\n        });\n        if (!Ember.isEmpty(attributeBindings)) {\n          this.set('attributeBindings', this.attributeBindings.concat(attributeBindings));\n        }\n      }\n    });\n  }\n  var _default = _exports.default = {\n    name: 'data-attributes',\n    initialize\n  };\n});","define(\"ember-mx/initializers/mx-inject-services\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  /**\n   * @module\n   * @param application\n   */\n  function initialize(application) {\n    application.inject('route', 'notifications', 'service:mx-notifications');\n    application.inject('controller', 'notifications', 'service:mx-notifications');\n    application.inject('component', 'notifications', 'service:mx-notifications');\n    application.inject('route', 'i18n', 'service:mx-i18n');\n    application.inject('controller', 'i18n', 'service:mx-i18n');\n    application.inject('component', 'i18n', 'service:mx-i18n');\n    application.inject('model', 'i18n', 'service:mx-i18n');\n  }\n  var _default = _exports.default = {\n    name: 'mx-inject-services',\n    initialize\n  };\n});","define(\"ember-mx/mixins/mx-button\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"jquery\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/utils\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  /**\n   * This mixin encapsulate the common functionality between the mx-button and mx-link\n   * @module Mixins\n   * @class MxButtonMixin\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    /**\n     * Attribute binding.\n     */\n    attributeBindings: ['disabled'],\n    /**\n     * Optional CSS classes rendered.\n     */\n    classNameBindings: ['disabledComputed:disabled', 'pendingClass'],\n    /**\n     * This option controls the placement of the icon.\n     *\n     * the following position are supported:\n     *    - left\n     *    - right\n     *\n     * @property iconPosition\n     * @default right\n     */\n    iconPosition: 'right',\n    /**\n     * Returns true if icon is position left, otherwise returns false.\n     * @returns {boolean}\n     */\n    isIconLeft: Ember.computed.equal('iconPosition', 'left'),\n    /**\n     * This option controls if the button is in the pending state.\n     */\n    pending: false,\n    /**\n     * This option controls if there is a delay that occurs after the action is completed.\n     * Its mostly used to block clicking on a button when an animation occurs after an action is executed.\n     *\n     * @default 0\t */\n    pendingDelay: 0,\n    /**\n     * This option controls the message displayed when button is pending.\n     */\n    pendingMessage: null,\n    /**\n     * This option controls if the form is validated.\n     */\n    validate: false,\n    /**\n     * This option controls if the empty fields are validated.\n     * @default true\n     */\n    validateEmptyFields: true,\n    /**\n     * This option controls if the notifications are cleared when clicking the button.\n     * @default true\n     */\n    clearNotifications: true,\n    /**\n     * Returns true if the button is in disabled state\n     * @returns {boolean}\n     */\n    disabledComputed: Ember.computed('pending', 'disabled', function () {\n      return this.disabled && !this.pending;\n    }),\n    /**\n     * Returns true if the pending message is specified\n     * @returns {boolean}\n     */\n    hasPendingMessage: Ember.computed.notEmpty('pendingMessage'),\n    /**\n     * Returns true if the pending message is displayed.\n     * @returns {boolean}\n     */\n    showPendingMessage: Ember.computed.and('pending', 'hasPendingMessage'),\n    /**\n     * Returns the pending class if the button is currently executing a task.\n     * @returns {string}\n     */\n    pendingClass: Ember.computed('pending', function () {\n      if (this.pending) {\n        return 'pending';\n      }\n      return '';\n    }),\n    /**\n     * Returns the form to validate.\n     * @returns {*}\n     */\n    getForm() {\n      const validateForm = this.form;\n      const selector = `#${validateForm}`;\n      if (!Ember.isEmpty(validateForm) && !Ember.isEmpty((0, _jquery.default)(selector))) {\n        return (0, _jquery.default)(selector);\n      }\n      return (0, _jquery.default)(this.element).closest('form');\n    },\n    /**\n     * Returns the list of validate fields.\n     * @returns {dom}\n     */\n    getValidatedFields() {\n      // get closest form.\n      const form = this.getForm();\n      if (!this.validateEmptyFields) {\n        return (0, _jquery.default)(form).find('.has-value input, .has-value textarea, .has-value select');\n      }\n      return form;\n    },\n    /**\n     * Trigger action.\n     */\n    triggerAction() {\n      if (!Ember.isEmpty(this.action)) {\n        if (this.async) {\n          this.set('pending', true);\n          // trigger action.\n          const promise = this.callAction();\n          // if action is returning a promise wait for it to completed.\n          if (promise && typeof promise.finally === 'function') {\n            // When async is false and there is promised returned.\n            promise.finally(() => {\n              this.stopPending();\n            });\n          } else {\n            // When async is true but there is no promise returned.\n            this.stopPending();\n          }\n        } else {\n          this.callAction();\n        }\n      }\n    },\n    /**\n     * Call action\n     * @return {*}\n     */\n    callAction() {\n      return this.action();\n    },\n    /**\n     * Helper function to stop pending.\n     */\n    stopPending() {\n      Ember.run.later(() => {\n        // need to check if the button is still on the screen.\n        if (!this.isDestroyed) {\n          this.set('pending', false);\n        }\n      }, this.pendingDelay);\n    },\n    /**\n     * Handle focus changed.\n     */\n    focusedChanged: Ember.observer('focused', function () {\n      const isFocused = this.$().is(':focus');\n      if (this.focused && !isFocused) {\n        this.$().focus();\n      }\n    }),\n    /**\n     * Handles when a button is clicked. If the form is valid send\n     * the default action, otherwise return false.\n     * @listens click\n     * @returns {boolean}\n     */\n    click(evt) {\n      /* eslint consistent-return: 0 */\n      this._super(evt);\n      if (this.async && this.pending) {\n        return;\n      }\n      if (this.clearNotifications || !Ember.isNone(this.clearNotificationsFor)) {\n        if (!Ember.isNone(this.clearNotificationsFor)) {\n          this.notifications.clearNotifications(this.clearNotificationsFor);\n        } else {\n          this.notifications.clearNotifications();\n        }\n      }\n      if (this.validate) {\n        const ctx = this.getParsleyContext(this.getValidatedFields());\n        const valid = ctx.validate({\n          group: this.validateGroup\n        });\n        if (valid && !Ember.isNone(this.action)) {\n          this.triggerAction();\n        }\n      } else {\n        if (!Ember.isNone(this.action)) {\n          this.triggerAction();\n        }\n      }\n      return false;\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      const isFocused = this.$().is(':focus');\n      if (this.focused && !isFocused) {\n        this.$().focus();\n      }\n    }\n  });\n});","define(\"ember-mx/mixins/mx-focus\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    focused: false,\n    /**\n     * Handle focus changed.\n     */\n    focusChanged: Ember.observer('focused', function () {\n      const isFocused = this.$('input').is(':focus');\n      if (this.focused && !isFocused) {\n        this.$('input').focus();\n      }\n    }),\n    /**\n     * Handle focus in event.\n     */\n    focusIn(evt) {\n      this._super(evt);\n      this.set('focused', true);\n    },\n    /**\n     * Handle focus out event.\n     */\n    focusOut(evt) {\n      this._super(evt);\n      this.set('focused', false);\n    }\n  });\n});","define(\"ember-mx/mixins/mx-group\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/utils\",0,\"jquery\"eaimeta@70e063a35619d71f\n  /**\n   * This mixin holds the common functionality between all group components.\n   * @module\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    validate: true,\n    /**\n     * By default group is pristine.\n     */\n    dirty: false,\n    /**\n     * By default group is valid.\n     */\n    valid: true,\n    focused: false,\n    /**\n     * Classes that will be passed to the component.\n     */\n    classNames: 'form-group',\n    /**\n     * The label is visible by default.\n     */\n    showLabel: true,\n    /**\n     * Returns the name that will be passed to each checkbox, this required for parsley validation.\n     * @returns {string}\n     */\n    groupName: Ember.computed('name', function () {\n      if (!Ember.isNone(this.name)) {\n        return this.name;\n      }\n      return this.elementId;\n    }),\n    /**\n     * Returns the JQuery selector that matches the element to attach validation on.\n     * @returns {string}\n     */\n    validationSelector: Ember.computed('i18n.locale', function () {\n      return this.$('input');\n    }),\n    /**\n     * Validate group if dirty\n     */\n    validateDirty() {\n      const element = this.$('input');\n      if (this.dirty && element) {\n        // if field is already dirty re validate the field.\n        element.each(function (index, field) {\n          (0, _jquery.default)(field).parsley().validate();\n        });\n      }\n    },\n    actions: {\n      /**\n       * Action called when locale is changed.\n       */\n      afterLocaleChanged(index) {\n        if (index === 0) {\n          Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n        }\n      },\n      /**\n       * Action called before validation is triggered.\n       */\n      afterReset(index) {\n        this.set('dirty', false);\n        // To prevent the action being fired multiple times we fire it only on the first item.\n        if (index === 0 && !Ember.isNone(this.afterResetAction)) {\n          Ember.run.scheduleOnce('afterRender', this, 'afterResetAction');\n        }\n      },\n      /**\n       * Action called before validation is triggered.\n       */\n      beforeValidation(index) {\n        // To prevent the action being fired multiple times we fire it only on the first item.\n        if (index === 0 && !Ember.isNone(this.beforeValidationAction)) {\n          Ember.run.scheduleOnce('afterRender', this, 'beforeValidationAction');\n        }\n      },\n      /**\n       * Action called after validation is triggered.\n       */\n      afterValidation(index) {\n        this.set('dirty', true);\n        // To prevent the action being fired multiple times we fire it only on the first item.\n        if (index === 0 && !Ember.isNone(this.afterValidationAction)) {\n          Ember.run.scheduleOnce('afterRender', this, 'afterValidationAction');\n        }\n      },\n      /**\n       * Action called when validation is success.\n       */\n      afterValidationSuccess(index) {\n        this.set('valid', true);\n        // To prevent the action being fired multiple times we fire it only on the first item.\n        if (index === 0 && !Ember.isNone(this.afterValidationSuccessAction)) {\n          Ember.run.scheduleOnce('afterRender', this, 'afterValidationSuccessAction');\n        }\n      },\n      /**\n       * Action called when validation is error.\n       */\n      afterValidationError(index, parsleyErrorMessage) {\n        this.set('parsleyErrorMessage', parsleyErrorMessage);\n        this.set('valid', false);\n        // To prevent the action being fired multiple times we fire it only on the first item.\n        if (index === 0 && !Ember.isNone(this.afterValidationErrorAction)) {\n          Ember.run.scheduleOnce('afterRender', this, 'afterValidationErrorAction', parsleyErrorMessage);\n        }\n      },\n      /**\n       * Action called when triggerValidation is triggered.\n       * @param valid If validation was success or not.\n       */\n      triggerValidationCallback(valid) {\n        if (!Ember.isNone(this.triggerValidationCallbackAction)) {\n          this.triggerValidationCallbackAction(valid);\n        }\n      },\n      /**\n       * Action called when resetValidation is triggered.\n       */\n      triggerResetCallback() {\n        this.set('dirty', false);\n        if (!Ember.isNone(this.triggerResetCallbackAction)) {\n          this.triggerResetCallbackAction();\n        }\n      }\n    }\n  });\n});","define(\"ember-mx/mixins/mx-id\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/object\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    /**\n     * Return an id for the label\n     */\n    idLabel: Ember.computed('elementId', function () {\n      return `${this.elementId}-label`;\n    }),\n    /**\n     * Return an id for the widget\n     */\n    idControl: Ember.computed('elementId', function () {\n      return `${this.elementId}-control`;\n    }),\n    /**\n     * Return an id for the error message\n     */\n    idMsg: Ember.computed('elementId', function () {\n      return `${this.elementId}-msg`;\n    }),\n    /**\n     * Return a test automation ID for the label\n     */\n    testAutomationIdLabel: Ember.computed('testAutomationId', function () {\n      return this.testAutomationId ? `${this.testAutomationId}-label` : null;\n    }),\n    /**\n     * Return a test automation ID for the widget\n     */\n    testAutomationIdControl: Ember.computed('testAutomationId', function () {\n      return this.testAutomationId ? `${this.testAutomationId}-control` : null;\n    }),\n    /**\n     * Return a test automation ID for the widget container (used with radio buttons and checkbox(es))\n     */\n    testAutomationIdGroup: Ember.computed('testAutomationId', function () {\n      return this.testAutomationId ? `${this.testAutomationId}-group` : null;\n    }),\n    /**\n     * Return a test automation ID for the error message\n     */\n    testAutomationIdMsg: Ember.computed('testAutomationId', function () {\n      return this.testAutomationId ? `${this.testAutomationId}-msg` : null;\n    }),\n    /**\n     * Return a test automation ID for the message associated to the disabled state (checkbox/radio button)\n     */\n    testAutomationIdDisabled: Ember.computed('testAutomationId', function () {\n      return this.testAutomationId ? `${this.testAutomationId}-disabled` : null;\n    })\n  });\n});","define(\"ember-mx/mixins/mx-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/object\",0,\"@ember/object/computed\",0,\"@ember/utils\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  /**\n   * This mixin encapsulate the logic for a mx-input\n   * @module\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    /**\n     * CSS classes rendered.\n     * @default form-group\n     */\n    classNames: ['form-group'],\n    /**\n     * Optional CSS classes rendered.\n     */\n    classNameBindings: ['isLabelFloating:label-floating', 'isLabelPlaceholder:label-placeholder', 'isLabelStatic:label-static', 'disabled:is-disabled', 'isEmpty:is-empty', 'focused:is-focused', 'valueNotEmpty:has-value'],\n    /**\n     * This option controls if the label is displayed.\n     * @default true\n     */\n    showLabel: true,\n    /**\n     * By default display floating label.\n     */\n    labelType: 'floating',\n    /**\n     * This option controls the event that the validation is fired for the first time.\n     * @default focusOut\n     */\n    validationTrigger: 'focusOut',\n    /**\n     * This option controls the even that the validation is fired after a failure.\n     * @default keyUp\n     */\n    validationTriggerAfterFailure: 'keyUp',\n    /**\n     * This option controls the HTML input type generated\n     */\n    type: null,\n    /**\n     * Returns the true if the value is not empty\n     * @return {boolean}\n     */\n    valueNotEmpty: Ember.computed.notEmpty('value'),\n    /**\n     * Returns true if the label is empty.\n     */\n    isEmpty: Ember.computed.empty('value'),\n    /**\n     * Returns true if the label is floating\n     * @returns {boolean}\n     */\n    isLabelFloating: Ember.computed('labelType', function () {\n      return this.labelType === 'floating' || !this.labelType;\n    }),\n    /**\n     * Returns true if the label is a placeholder\n     * @returns {boolean}\n     */\n    isLabelPlaceholder: Ember.computed.equal('labelType', 'placeholder'),\n    /**\n     * Returns true if the label is a static.\n     * @returns {boolean}\n     */\n    isLabelStatic: Ember.computed.equal('labelType', 'static'),\n    /**\n     * Returns the input id.\n     * @returns {string}\n     */\n    inputId: Ember.computed('elementId', function () {\n      return `${this.elementId}-input`;\n    }),\n    /**\n     * Returns the JQuery selector that matches the element to attach validation on.\n     * @returns {string}\n     */\n    validationSelector: Ember.computed(function () {\n      return this.$('input');\n    }),\n    /**\n     * Returns the HTML autoComplete attribute value.\n     */\n    autoComplete: Ember.computed('type', {\n      get() {\n        if (this._autoComplete) {\n          return this._autoComplete;\n        }\n        switch (this.type) {\n          case 'email':\n            return 'email';\n          case 'url':\n            return 'url';\n          default:\n            return 'on';\n        }\n      },\n      set(key, value) {\n        this._autoComplete = value;\n        return value;\n      }\n    }),\n    /**\n     * This computed property is responsible to convert a value to a string\n     */\n    stringValue: Ember.computed('value', 'type', {\n      /**\n       * Returns the string value\n       * @returns {string}\n       */\n      get() {\n        if (!Ember.isEmpty(this.value)) {\n          return this.value.toString();\n        }\n        return null;\n      },\n      /**\n       * Sets the type value.\n       * @param key The property key\n       * @param stringValue The stringValue\n       */\n      set(key, stringValue) {\n        if (Ember.isEmpty(stringValue)) {\n          this.set('value', null);\n        } else {\n          switch (this.type) {\n            case 'digits':\n            case 'number':\n            case 'integer':\n              if (!isNaN(stringValue)) {\n                this.set('value', Number(stringValue));\n              } else {\n                this.set('value', stringValue);\n              }\n              break;\n            default:\n              this.set('value', stringValue);\n          }\n        }\n        return stringValue;\n      }\n    }),\n    /**\n     * Listen for focus events.\n     * @param evt The event.\n     */\n    focusIn(evt) {\n      this._super(evt);\n      if (!Ember.isEmpty(this.focusInAction)) {\n        Ember.run.scheduleOnce('afterRender', this, this.focusInAction, evt);\n      }\n    },\n    /**\n     * Listen for blur events.\n     * @param evt The event.\n     */\n    focusOut(evt) {\n      this._super(evt);\n      if (!Ember.isEmpty(this.focusOutAction)) {\n        Ember.run.scheduleOnce('afterRender', this, this.focusOutAction, evt);\n      }\n    },\n    /**\n     * Listen for key press events.\n     * @param evt The event.\n     */\n    keyPress(evt) {\n      this._super(evt);\n      if (!Ember.isEmpty(this.keyPressAction)) {\n        Ember.run.scheduleOnce('afterRender', this, this.keyPressAction, evt);\n      }\n    },\n    /**\n     * Listen for key up events.\n     * @param evt The event.\n     */\n    keyUp(evt) {\n      this._super(evt);\n      if (!Ember.isEmpty(this.keyUpAction)) {\n        Ember.run.scheduleOnce('afterRender', this, this.keyUpAction, evt);\n      }\n    },\n    /**\n     * Listen for key down events.\n     * @param evt The event.\n     */\n    keyDown(evt) {\n      this._super(evt);\n      if (!Ember.isEmpty(this.keyDownAction)) {\n        Ember.run.scheduleOnce('afterRender', this, this.keyDownAction, evt);\n      }\n    },\n    /**\n     * Fired when the element is inserted in the DOM to deal with the focus\n     */\n    didInsertElement() {\n      this._super(...arguments);\n      const inputElement = this.$('input');\n      const isFocused = inputElement.is(':focus');\n      if (this.focused && !isFocused) {\n        inputElement.focus();\n      }\n    }\n  });\n});","define(\"ember-mx/mixins/mx-item-sorting\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/array\",0,\"@ember/object/mixin\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    /**\n     * Sort the radio buttons by default.\n     */\n    sort: true,\n    /**\n     * Returns a list of localized sort items based on the itemSortProperty or itemLabelProperty\n     * @returns {array}\n     */\n    sortedItems: Ember.computed('i18n.locale', 'items', 'items.[]', 'itemSortProperty', 'itemLabelProperty', 'sort', function () {\n      let sortedItems = null;\n      if (!Ember.isEmpty(this.items)) {\n        // make a clone of the items\n        sortedItems = this.items.slice(0);\n        if (this.sort && !Ember.isEmpty(this.itemSortProperty)) {\n          if (typeof sortedItems.sortBy === 'function') {\n            return sortedItems.sortBy(this.itemSortProperty);\n          }\n          return Ember.A(sortedItems).sortBy(this.itemSortProperty);\n        } else if (this.sort && !Ember.isEmpty(this.itemLabelProperty)) {\n          if (typeof sortedItems.sortBy === 'function') {\n            return sortedItems.sortBy(this.itemLabelProperty);\n          }\n          return Ember.A(sortedItems).sortBy(this.itemLabelProperty);\n        } else if (this.sort) {\n          return sortedItems.sort();\n        }\n      }\n      return sortedItems;\n    })\n  });\n});","define(\"ember-mx/mixins/mx-parsley-field\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/service\",0,\"@ember/object/mixin\",0,\"jquery\",0,\"@ember/runloop\",0,\"@ember/object\",0,\"@ember/utils\"eaimeta@70e063a35619d71f\n  const RADIX = 10;\n\n  /**\n   * @module\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    /**\n     * Turn on validation by default\n     */\n    validate: true,\n    /**\n     * By default is not dirty, since its not been touched yet.\n     */\n    dirty: false,\n    /**\n     * By default the field is valid since its not validated.\n     */\n    valid: true,\n    i18n: Ember.inject.service('mx-i18n'),\n    /**\n     * Returns the html type attribute based on the component type property.\n     * @returns {string}\n     */\n    htmlType: Ember.computed('type', function () {\n      switch (this.type) {\n        case 'digits':\n        case 'alphanum':\n        case 'number':\n        case 'integer':\n          return 'text';\n        default:\n          return this.type;\n      }\n    }),\n    /**\n     * Returns the requiredMessage, if no message specified returns the default error message.\n     */\n    requiredMessageComputed: Ember.computed('i18n.locale', 'requiredMessage', function () {\n      if (this.requiredMessage) {\n        return this.requiredMessage;\n      }\n      return `${this.i18n.t('mx.error.required')}`;\n    }),\n    typeMessageComputed: Ember.computed('i18n.locale', 'typeMessage', function () {\n      if (this.typeMessage) {\n        return this.typeMessage;\n      }\n      return `${this.i18n.t('mx.error.required')}`;\n    }),\n    /**\n     * Returns validateIfEmpty property.\n     */\n    validateIfEmptyComputed: Ember.computed('validateEmpty', function () {\n      if (this.validateEmpty) {\n        return this.validateEmpty;\n      }\n      return null;\n    }),\n    /**\n     * Returns the data-parsley-type attribute based on the component type property\n     * @returns {string}\n     */\n    validationType: Ember.computed('type', {\n      get() {\n        if (this._validationType) {\n          return this._validationType;\n        }\n        switch (this.type) {\n          case 'email':\n          case 'number':\n          case 'integer':\n          case 'digits':\n          case 'alphanum':\n          case 'url':\n            return this.type;\n          default:\n            return null;\n        }\n      },\n      set(key, value) {\n        this._validationType = value;\n        return value;\n      }\n    }),\n    /**\n     * Returns the value for the data-parsley-trigger attribute based on the triggerUpdateOn property.\n     * @returns {string}\n     */\n    validationTriggerComputed: Ember.computed('validationTrigger', function () {\n      switch (this.validationTrigger) {\n        case 'focusout':\n        case 'focusOut':\n          return 'focusout';\n        case 'focusin':\n        case 'focusIn':\n          return 'focusin';\n        case 'keydown':\n        case 'keyDown':\n          return 'keydown';\n        case 'keypress':\n        case 'keyPress':\n          return 'keypress';\n        case 'keyup':\n        case 'keyUp':\n          return 'keyup';\n        case 'blur':\n          return 'blur';\n        case 'change':\n          return 'change';\n        default:\n          return null;\n      }\n    }),\n    /**\n     * Returns the value for the data-parsley-trigger attribute based on the triggerUpdateOn property.\n     * @returns {string}\n     */\n    validationTriggerAfterFailureComputed: Ember.computed('validationTriggerAfterFailure', function () {\n      switch (this.validationTriggerAfterFailure) {\n        case 'focusout':\n        case 'focusOut':\n          return 'focusout';\n        case 'focusin':\n        case 'focusIn':\n          return 'focusin';\n        case 'keydown':\n        case 'keyDown':\n          return 'keydown';\n        case 'keypress':\n        case 'keyPress':\n          return 'keypress';\n        case 'keyup':\n        case 'keyUp':\n          return 'keyup';\n        case 'blur':\n          return 'blur';\n        case 'change':\n          return 'change';\n        default:\n          return null;\n      }\n    }),\n    /**\n     * Returns the message for invalid minimum length. It will return the length message unless there\n     * is a minimum length message declared.\n     * @returns {string}\n     */\n    minimumLengthMessageComputed: Ember.computed('lengthMessage', 'minimumLengthMessage', function () {\n      if (!Ember.isNone(this.minimumLengthMessage)) {\n        return this.minimumLengthMessage;\n      }\n      return this.lengthMessage;\n    }),\n    /**\n     * Returns the message for invalid maximum length. It will return the length message unless there\n     * is a minimum length message declared.\n     * @returns {string}\n     */\n    maximumLengthMessageComputed: Ember.computed('lengthMessage', 'maximumLengthMessage', function () {\n      if (!Ember.isNone(this.maximumLengthMessage)) {\n        return this.maximumLengthMessage;\n      }\n      return this.lengthMessage;\n    }),\n    /**\n     * Returns the message for invalid minimum value. It will return the range message unless there\n     * is a minimum value message declared.\n     * @returns {string}\n     */\n    minimumValueMessageComputed: Ember.computed('rangeMessage', 'minimumValueMessage', function () {\n      if (!Ember.isNone(this.minimumValueMessage)) {\n        return this.minimumValueMessage;\n      }\n      return this.rangeMessage;\n    }),\n    /**\n     * Returns the message for invalid maximum value. It will return the range message unless there\n     * is a maximum value message declared.\n     * @returns {string}\n     */\n    maximumValueMessageComputed: Ember.computed('rangeMessage', 'maximumValueMessage', function () {\n      if (!Ember.isNone(this.maximumValueMessage)) {\n        return this.maximumValueMessage;\n      }\n      return this.rangeMessage;\n    }),\n    /**\n     * Returns the message for invalid minimum checked value. It will return the checked range message unless there\n     * is a minimum checked message declared.\n     * @returns {string}\n     */\n    minimumCheckedMessageComputed: Ember.computed('checkedRangeMessage', 'minimumCheckedMessage', function () {\n      if (!Ember.isNone(this.minimumCheckedMessage)) {\n        return this.minimumCheckedMessage;\n      }\n      return this.checkedRangeMessage;\n    }),\n    /**\n     * Returns the message for invalid maximum checked value. It will return the checked range message unless there\n     * is a maximum checked message declared.\n     * @returns {string}\n     */\n    maximumCheckedMessageComputed: Ember.computed('checkedRangeMessage', 'maximumCheckedMessage', function () {\n      if (!Ember.isNone(this.maximumCheckedMessage)) {\n        return this.maximumCheckedMessage;\n      }\n      return this.checkedRangeMessage;\n    }),\n    /**\n     * Listen when the requiredMessage is changed.\n     */\n    requiredMessageChanged: Ember.observer('requiredMessage', function () {\n      this.updateErrorMessage('requiredMessage', this.requiredMessage);\n    }),\n    /**\n     * Listen when the typeMessage is changed.\n     */\n    typeMessageChanged: Ember.observer('typeMessage', function () {\n      this.updateErrorMessage('typeMessage', this.typeMessage);\n    }),\n    /**\n     * Listen when the minimumLengthMessage is changed.\n     */\n    minimumLengthMessageChanged: Ember.observer('minimumLengthMessage', function () {\n      this.updateErrorMessage('minlengthMessage', this.minimumLengthMessage);\n    }),\n    /**\n     * Listen when the maximumLengthMessage is changed.\n     */\n    maximumLengthMessageChanged: Ember.observer('maximumLengthMessage', function () {\n      this.updateErrorMessage('maxlengthMessage', this.maximumLengthMessage);\n    }),\n    /**\n     * Listen when the lengthMessage is changed.\n     */\n    lengthMessageChanged: Ember.observer('lengthMessage', function () {\n      this.updateErrorMessage('lengthMessage', this.lengthMessage);\n    }),\n    /**\n     * Listen when the minimumValueMessage is changed.\n     */\n    minimumValueMessageChanged: Ember.observer('minimumValueMessage', function () {\n      this.updateErrorMessage('minMessage', this.minimumValueMessage);\n    }),\n    /**\n     * Listen when the maximumValueMessage is changed.\n     */\n    maximumValueMessageChanged: Ember.observer('maximumValueMessage', function () {\n      this.updateErrorMessage('maxMessage', this.maximumValueMessage);\n    }),\n    /**\n     * Listen when the rangeMessage is changed.\n     */\n    rangeMessageChanged: Ember.observer('rangeMessage', function () {\n      this.updateErrorMessage(this.validationSelector, 'rangeMessage', this.rangeMessage);\n    }),\n    /**\n     * Listen when the patternMessage is changed.\n     */\n    patternMessageChanged: Ember.observer('patternMessage', function () {\n      this.updateErrorMessage('patternMessage', this.patternMessage);\n    }),\n    /**\n     * Listen when the minimumCheckedMessage is changed.\n     */\n    minimumCheckedMessageChanged: Ember.observer('minimumCheckedMessage', function () {\n      this.updateErrorMessage('mincheckMessage', this.minimumCheckedMessage);\n    }),\n    /**\n     * Listen when the maximumCheckedMessage is changed.\n     */\n    maximumCheckedMessageChanged: Ember.observer('maximumCheckedMessage', function () {\n      this.updateErrorMessage('maxcheckMessage', this.maximumCheckedMessage);\n    }),\n    /**\n     * Listen when the checkedRangeMessage is changed.\n     */\n    checkedRangeMessageChanged: Ember.observer('checkedRangeMessage', function () {\n      this.updateErrorMessage('checkMessage', this.checkedRangeMessage);\n    }),\n    /**\n     * Listen when the errorMessage is changed.\n     */\n    errorMessageChanged: Ember.observer('errorMessage', function () {\n      this.updateErrorMessage('errorMessage', this.errorMessage);\n    }),\n    /**\n     * Listen when the equalTo value is changed.\n     */\n    equalToChanged: Ember.observer('equalTo', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen when the notEqualTo value is changed.\n     */\n    notEqualToChanged: Ember.observer('notEqualTo', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen when the greaterTo value is changed.\n     */\n    greaterToChanged: Ember.observer('greaterTo', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen when the greaterOrEqualTo value is changed.\n     */\n    greaterOrEqualToChanged: Ember.observer('greaterOrEqualTo', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen when the lesserTo value is changed.\n     */\n    lesserToChanged: Ember.observer('lesserTo', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen when the lesserOrEqualTo value is changed.\n     */\n    lesserOrEqualToChanged: Ember.observer('lesserOrEqualTo', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Listen when the locale is changed.\n     */\n    localeChanged: Ember.observer('i18n.locale', function () {\n      if (!Ember.isEmpty(this.afterLocaleChangedAction)) {\n        this.afterLocaleChangedAction();\n      } else {\n        Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n      }\n    }),\n    /**\n     * Listen when the  value is changed.\n     */\n    valueChanged: Ember.observer('value', function () {\n      Ember.run.scheduleOnce('afterRender', this, 'validateDirty');\n    }),\n    /**\n     * Validate dirty fields.\n     */\n    validateDirty() {\n      if (this.dirty) {\n        // if field is already dirty re validate the field.\n        (0, _jquery.default)(this.validationSelector).parsley().validate();\n      }\n    },\n    /**\n     * Update the error message in the parsley context.\n     * @param key The parsley message key\n     * @param msg The error message\n     */\n    updateErrorMessage(key, msg) {\n      if (!Ember.isNone(key) && !Ember.isNone(msg)) {\n        (0, _jquery.default)(this.validationSelector).parsley().options[key] = `${msg}`;\n      }\n    },\n    /**\n     * Trigger afterResetAction.\n     */\n    triggerAfterResetAction() {\n      if (!Ember.isNone(this.afterResetAction)) {\n        this.afterResetAction();\n      }\n    },\n    /**\n     * Trigger beforeValidationAction.\n     */\n    triggerBeforeValidationAction() {\n      if (!Ember.isNone(this.beforeValidationAction)) {\n        this.beforeValidationAction();\n      }\n    },\n    /**\n     * Trigger afterValidationAction.\n     */\n    triggerAfterValidationAction() {\n      if (!Ember.isNone(this.afterValidationAction)) {\n        this.afterValidationAction();\n      }\n    },\n    /**\n     * Trigger validationErrorAction.\n     */\n    triggerValidationErrorAction(parsleyErrorMessage) {\n      if (!Ember.isNone(this.afterValidationErrorAction)) {\n        this.afterValidationErrorAction(parsleyErrorMessage);\n      }\n    },\n    /**\n     * Trigger validationSuccessAction.\n     */\n    triggerValidationSuccessAction() {\n      if (!Ember.isNone(this.afterValidationSuccessAction)) {\n        this.afterValidationSuccessAction();\n      }\n    },\n    /**\n     * didInsertElement.\n     */\n    didInsertElement() {\n      this._super();\n      const field = this.validationSelector;\n      if (!Ember.isNone(field)) {\n        // Enable parsley instance.\n        (0, _jquery.default)(field).parsley();\n        (0, _jquery.default)(field).parsley().on('field:reset', () => {\n          this.set('dirty', false);\n          Ember.run.scheduleOnce('afterRender', this, this.triggerAfterResetAction);\n        });\n        (0, _jquery.default)(field).parsley().on('field:validate', () => {\n          Ember.run.scheduleOnce('afterRender', this, this.triggerBeforeValidationAction);\n        });\n        (0, _jquery.default)(field).parsley().on('field:validated', () => {\n          this.set('dirty', true);\n          Ember.run.scheduleOnce('afterRender', this, this.triggerAfterValidationAction);\n        });\n        (0, _jquery.default)(field).parsley().on('field:success', () => {\n          this.set('valid', true);\n          Ember.run.scheduleOnce('afterRender', this, this.triggerValidationSuccessAction);\n        });\n        (0, _jquery.default)(field).parsley().on('field:error', fieldInstance => {\n          if (!Ember.isNone(this.errorMessage)) {\n            this.set('parsleyErrorMessage', this.errorMessage);\n          } else if (!Ember.isNone(fieldInstance) && !Ember.isEmpty(fieldInstance.getErrorsMessages())) {\n            this.set('parsleyErrorMessage', fieldInstance.getErrorsMessages()[0]);\n          }\n          this.set('valid', false);\n          Ember.run.scheduleOnce('afterRender', this, this.triggerValidationErrorAction, this.parsleyErrorMessage);\n        });\n      }\n    },\n    /**\n     * didDestroyElement hook.\n     */\n    willDestroyElement() {\n      this._super();\n      // destroy parsley event listeners.\n      const field = this.validationSelector;\n      if (!Ember.isNone(field)) {\n        (0, _jquery.default)(field).parsley().off('field:reset');\n        (0, _jquery.default)(field).parsley().off('field:success');\n        (0, _jquery.default)(field).parsley().off('field:error');\n        (0, _jquery.default)(field).parsley().off('field:validate');\n        (0, _jquery.default)(field).parsley().off('field:validated');\n      }\n    },\n    /**\n     * didReceiveAttrs hook.\n     */\n    didReceiveAttrs() {\n      this._super();\n      // if the triggerValidation is set to true we want to trigger validation and validation is turned on.\n      if (this.triggerValidation && this.validate) {\n        // only call the validation once the field is finished rendering.\n        Ember.run.schedule('afterRender', () => {\n          const field = this.validationSelector;\n          const result = (0, _jquery.default)(field).parsley().validate();\n          if (!Ember.isNone(this.triggerValidationCallbackAction)) {\n            this.triggerValidationCallbackAction(result === true);\n          }\n        });\n      }\n      // if the resetValidation is set to true, reset the validation and set it back to null.\n      if (this.triggerReset) {\n        Ember.run.schedule('afterRender', () => {\n          (0, _jquery.default)(this.validationSelector).parsley().reset();\n          if (!Ember.isNone(this.triggerResetCallbackAction)) {\n            this.triggerResetCallbackAction();\n          }\n        });\n      }\n    },\n    actions: {\n      /**\n       * Returns true if this component value is greater to the value passed by the greaterTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateGreaterTo(value) {\n        return parseInt(value, RADIX) > parseInt(this.greaterTo, RADIX);\n      },\n      /**\n       * Returns true if this component value is greater or equal to the value passed by the greaterOrEqualTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateGreaterOrEqualTo(value) {\n        return parseInt(value, RADIX) >= parseInt(this.greaterOrEqualTo, RADIX);\n      },\n      /**\n       * Returns true if this component value is lesser to the value passed by the lesserTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateLesserTo(value) {\n        return parseInt(value, RADIX) < parseInt(this.lesserTo, RADIX);\n      },\n      /**\n       * Returns true if this component value is lesser or equal to the value passed by the lesserOrEqualTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateLesserOrEqualTo(value) {\n        return parseInt(value, RADIX) <= parseInt(this.lesserOrEqualTo, RADIX);\n      },\n      /**\n       * Returns true if this component value is equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateEqualTo(value) {\n        return Ember.isEqual(value, this.equalTo);\n      },\n      /**\n       * Returns true if this component value is not equal to the value passed by the equalTo property\n       * otherwise returns false.\n       * @param value The value\n       * @returns {boolean}\n       */\n      validateNotEqualTo(value) {\n        return !Ember.isEqual(value, this.notEqualTo);\n      }\n    }\n  });\n});","define(\"ember-mx/mixins/mx-parsley-form\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/utils\",0,\"jquery\",0,\"@ember/runloop\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    /**\n     * Turn on validation by default\n     */\n    validate: true,\n    /**\n     * By default is not dirty, since its not been touched yet.\n     */\n    dirty: false,\n    /**\n     * By default the field is valid since its not validated.\n     */\n    valid: true,\n    /**\n     * didInsertElement hook\n     */\n    didInsertElement() {\n      this._super();\n      const form = this.element;\n      if (!Ember.isNone(form)) {\n        // Enable parsley instance.\n        (0, _jquery.default)(form).parsley();\n        // Attach parsley event listeners.\n        (0, _jquery.default)(form).parsley().on('form:reset', () => {\n          this.triggerAfterResetAction();\n          this.set('dirty', false);\n        });\n        (0, _jquery.default)(form).parsley().on('form:validate', () => {\n          this.triggerBeforeValidationAction();\n        });\n        (0, _jquery.default)(form).parsley().on('form:validated', () => {\n          this.set('dirty', true);\n          this.triggerAfterValidationAction();\n        });\n        (0, _jquery.default)(form).parsley().on('form:success', () => {\n          this.set('valid', true);\n          this.triggerValidationSuccessAction();\n        });\n        (0, _jquery.default)(form).parsley().on('form:error', () => {\n          this.set('valid', false);\n          this.triggerValidationErrorAction();\n        });\n      }\n    },\n    /**\n     * didDestroyElement hook.\n     */\n    willDestroyElement() {\n      this._super();\n      // destroy parsley event listeners.\n      const form = this.element;\n      if (!Ember.isNone(form)) {\n        (0, _jquery.default)(form).parsley().off('form:reset');\n        (0, _jquery.default)(form).parsley().off('form:success');\n        (0, _jquery.default)(form).parsley().off('form:error');\n        (0, _jquery.default)(form).parsley().off('form:validate');\n        (0, _jquery.default)(form).parsley().off('form:validated');\n      }\n    },\n    /**\n     * didReceiveAttrs hook.\n     */\n    didReceiveAttrs() {\n      this._super();\n      // if the triggerValidation is set to true we want to trigger validation and validation is turned on.\n      if (this.triggerValidation && this.validate) {\n        // only call the validation once the field is finished rendering.\n        Ember.run.schedule('afterRender', () => {\n          const form = this.element;\n          const result = (0, _jquery.default)(form).parsley().validate({\n            group: this.validateGroup\n          });\n          let valid = false;\n          if (result === true) {\n            valid = true;\n          }\n          if (!Ember.isNone(this.triggerValidationCallbackAction)) {\n            this.triggerValidationCallbackAction(valid);\n          }\n        });\n      }\n      // if the resetValidation is set to true, reset the validation and set it back to null.\n      if (this.triggerReset) {\n        Ember.run.schedule('afterRender', () => {\n          const form = this.element;\n          (0, _jquery.default)(form).parsley().reset();\n          if (!Ember.isNone(this.triggerResetCallbackAction)) {\n            this.triggerResetCallbackAction();\n          }\n        });\n      }\n    },\n    /**\n     * Trigger resetValidationAction.\n     */\n    triggerAfterResetAction() {\n      // if there is an beforeValidationAction trigger it.\n      if (!Ember.isNone(this.afterResetAction)) {\n        this.afterResetAction();\n      }\n    },\n    /**\n     * Trigger beforeValidationAction.\n     */\n    triggerBeforeValidationAction() {\n      // if there is an beforeValidationAction trigger it.\n      if (!Ember.isNone(this.beforeValidationAction)) {\n        this.beforeValidationAction();\n      }\n    },\n    /**\n     * Trigger afterValidationAction.\n     */\n    triggerAfterValidationAction() {\n      // if there is an afterValidationAction trigger it.\n      if (!Ember.isNone(this.afterValidationAction)) {\n        this.afterValidationAction();\n      }\n    },\n    /**\n     * Trigger validationErrorAction.\n     */\n    triggerValidationErrorAction() {\n      // if there is an validationErrorAction trigger it.\n      if (!Ember.isNone(this.afterValidationErrorAction)) {\n        this.afterValidationErrorAction();\n      }\n    },\n    /**\n     * Trigger validationSuccessAction.\n     */\n    triggerValidationSuccessAction() {\n      // if there is an validationSuccessAction trigger it.\n      if (!Ember.isNone(this.afterValidationSuccessAction)) {\n        this.afterValidationSuccessAction();\n      }\n    }\n  });\n});","define(\"ember-mx/mixins/mx-parsley-ui\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/computed\",0,\"@ember/object/mixin\",0,\"@ember/object\",0,\"@ember/object/computed\"eaimeta@70e063a35619d71f\n  /**\n   * This mixin is responsible to handling error message and validation classes for parsley messages.\n   * @module\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    classNameBindings: ['hasFeedbackClass:has-feedback', 'hasErrorClass:has-error'],\n    /**\n     * Returns true if there is a icon class, otherwise returns false.\n     * @returns {boolean}\n     */\n    hasIcon: Ember.computed.notEmpty('iconClass'),\n    /**\n     * Returns true if the feedback class is added, otherwise returns false.\n     * @returns {boolean}\n     */\n    hasFeedbackClass: Ember.computed.or('dirty', 'hasIcon'),\n    /**\n     * Returns true if the error class is added, otherwise returns false.\n     * @return {boolean}\n     */\n    hasErrorClass: Ember.computed('dirty', 'valid', function () {\n      return this.dirty && !this.valid;\n    }),\n    /**\n     * Returns true if the error message should be displayed, otherwise returns false.\n     */\n    showErrorMessage: Ember.computed('dirty', 'valid', function () {\n      return this.dirty && !this.valid;\n    })\n  });\n});","define(\"ember-mx/mixins/mx-parsley-utils\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/object/mixin\",0,\"@ember/utils\",0,\"jquery\"eaimeta@70e063a35619d71f\n  /**\n   * @module\n   */\n  var _default = _exports.default = Ember.Mixin.create({\n    /**\n     * Returns the parsley context based on fields passed.\n     * @param fields\n     * @returns {*}\n     */\n    getParsleyContext(fields) {\n      return {\n        /**\n         * Reset the parsley form or fields.\n         */\n        reset() {\n          if (!Ember.isNone(fields)) {\n            (0, _jquery.default)(fields).each(function () {\n              // reset parsley field.\n              (0, _jquery.default)(this).parsley().reset();\n              if ((0, _jquery.default)(this).is('form')) {\n                (0, _jquery.default)('form .form-control-feedback').remove();\n              }\n            });\n          }\n        },\n        /**\n         * Destroy the parsley form or fields.\n         */\n        destroy() {\n          // destroy all parsley fields.\n          if (!Ember.isNone(fields)) {\n            (0, _jquery.default)(fields).each(function () {\n              // remove parsley on field.\n              (0, _jquery.default)(this).parsley().destroy();\n            });\n          }\n        },\n        /**\n         * Returns true if the form or fields is valid.\n         * @param opts The options.\n         * @returns {boolean}\n         */\n        isValid(opts = {\n          force: false\n        }) {\n          // only validate if validate it set to true.\n          if (!Ember.isNone(fields)) {\n            let valid = true;\n            // loop through every field who has parsley attach.\n            (0, _jquery.default)(fields).each(function () {\n              if ((0, _jquery.default)(this).is('form')) {\n                if (!(0, _jquery.default)(this).parsley().isValid({\n                  group: opts.group,\n                  force: opts.force\n                }) && valid) {\n                  valid = false;\n                }\n              } else {\n                if (!(0, _jquery.default)(this).parsley().isValid({\n                  force: opts.force\n                }) && valid) {\n                  valid = false;\n                }\n              }\n            });\n            return valid;\n          }\n          return true;\n        },\n        /**\n         * Returns true if the form or fields is valid.\n         * @param opts The options.\n         * @returns {boolean}\n         */\n        validate(opts = {\n          force: false\n        }) {\n          if (!Ember.isNone(fields)) {\n            let valid = true;\n            (0, _jquery.default)(fields).each(function () {\n              if ((0, _jquery.default)(this).parsley().validate({\n                group: opts.group,\n                force: opts.force\n              }) !== true) {\n                if (valid) {\n                  (0, _jquery.default)(this).focus();\n                }\n                valid = false;\n              }\n            });\n            return valid;\n          }\n          return true;\n        }\n      };\n    }\n  });\n});","define(\"ember-mx/models/mx-model\", [\"exports\", \"@ember-data/model\"], function (_exports, _model) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember-data/model\",0,\"@ember/utils\",0,\"rsvp\"eaimeta@70e063a35619d71f\n  /**\n   * This base class fix the issue with hasMany relationship created duplicates/\n   *\n   * https://github.com/emberjs/data/issues/1829\n   * @module\n   */\n  var _default = _exports.default = _model.default.extend({\n    /**\n     * Override default mechanism to remove newly created records after they haven been saved correctly by the API\n     */\n    save() {\n      return new Ember.RSVP.Promise((resolve, reject) => {\n        const recordsToDelete = [];\n        this.getRecordsToDelete(this, recordsToDelete);\n        const promise = this._super(...arguments);\n        promise.then(data => {\n          recordsToDelete.forEach(record => {\n            record.deleteRecord();\n          });\n          resolve(data);\n        }).catch(err => {\n          reject(err);\n        });\n      });\n    },\n    getRecordsToDelete(model, recordsToDelete) {\n      if (!model) {\n        return;\n      }\n      model.eachRelationship((relationshipName, relationshipDescriptor) => {\n        if (Ember.isEqual(relationshipDescriptor.kind, 'belongsTo')) {\n          this.getRecordsToDelete(model.get(relationshipName), recordsToDelete);\n        }\n        if (Ember.isEqual(relationshipDescriptor.kind, 'hasMany')) {\n          model.get(relationshipName).forEach(record => {\n            if (record.get('isNew')) {\n              recordsToDelete.push(record);\n            }\n            this.getRecordsToDelete(record, recordsToDelete);\n          });\n        }\n      });\n    }\n  });\n});","define(\"ember-mx/routes/mx-application\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"@ember/routing/route\"eaimeta@70e063a35619d71f\n  /**\n   * This route represents the base route for all application routes.\n   * @author bcpoiri\n   * @module\n   */\n  var _default = _exports.default = Ember.Route.extend({\n    /**\n     * name of the parameter to change the locale. defaults to lang\n     */\n    localeParamName: 'lang',\n    /**\n     * Before model hook\n     * @param transition The transition to the next route.\n     */\n    beforeModel(transition) {\n      if (!this.i18n) {\n        throw new Error('The mx-i18n service is undefined');\n      }\n      let paramLocale = null;\n      if (transition.to && transition.to.queryParams) {\n        paramLocale = transition.to.queryParams[this.localeParamName];\n      }\n      const sessionLocale = window.sessionStorage.getItem('locale');\n      if (this.isLocaleChanged(this.i18n.locale, sessionLocale)) {\n        this.set('i18n.locale', sessionLocale);\n      }\n      if (this.isLocaleChanged(this.i18n.locale, paramLocale)) {\n        if (paramLocale.toLowerCase() === 'en' || paramLocale.toLowerCase() === 'fr') {\n          this.set('i18n.locale', paramLocale);\n        }\n      }\n    },\n    /**\n     * Returns true if the locale has changed.\n     * @param currentLocale currentLocale\n     * @param targetLocale targetLocale.\n     * @return {boolean}\n     */\n    isLocaleChanged(currentLocale, targetLocale) {\n      return !Ember.isNone(targetLocale) && !Ember.isEqual(targetLocale, currentLocale);\n    },\n    actions: {\n      /**\n       * Toggle locale from french and english\n       */\n      toggleLocale() {\n        if (!this.i18n) {\n          throw new Error('The mx-i18n service is undefined');\n        }\n        this.i18n.toggleLocale();\n      }\n    }\n  });\n});","define(\"ember-mx/services/mx-i18n\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"@ember/utils\",0,\"jquery\",0,\"@ember/debug\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/service\",0,\"@ember/object/computed\"eaimeta@70e063a35619d71f\n  /**\n   * Default english translations loaded with ember-mx\n   * @module\n   */\n  /* eslint quotes: 0 */\n  const ENGLISH_TRANSLATIONS = {\n    mx_confirm_modal: {\n      action: {\n        confirm: 'Continue',\n        cancel: 'Cancel'\n      },\n      text: {\n        header: 'Are you sure?'\n      }\n    },\n    mx_postal_code_input: {\n      label: {\n        postal_code: 'Postal code'\n      },\n      error: {\n        postal_code_required: 'Please enter a postal code',\n        postal_code_invalid: 'Please enter a valid postal code (e.g. E1E 2V2)'\n      }\n    },\n    mx_phone_number_input: {\n      label: {\n        phone_number: 'Phone number'\n      },\n      error: {\n        phone_number_required: 'Please enter a phone number',\n        phone_number_invalid_length: 'Please enter a number with at least 10 numbers'\n      }\n    },\n    mx_email_input: {\n      label: {\n        email: 'Email'\n      },\n      error: {\n        email_required: 'Please enter a valid email address',\n        email_invalid: 'Please enter an email address in the correct format (e.g. name@domain.com)',\n        invalid_domain: 'Please enter an email address with a verified domain, such as .com, .ca, or .org.'\n      }\n    },\n    mx_yes_no_toggle: {\n      label: {\n        yes: 'Yes',\n        no: 'No'\n      }\n    },\n    mx_date_input: {\n      error: {\n        date_required: 'Please enter the date',\n        date_invalid: 'Are you sure about that? Please enter the date again.'\n      }\n    },\n    mx_date_picker: {\n      error: {\n        invalid_date_format: 'Please enter a valid date using the format dd/mm/yyyy',\n        invalid_date: 'Please enter a valid date using the format dd/mm/yyyy'\n      }\n    },\n    mx_month_year_input: {\n      error: {\n        date_required: 'Please enter the date',\n        date_invalid: 'Are you sure about that? Please enter the date again.'\n      }\n    },\n    mx_data_grid: {\n      option: {\n        all_rows: 'All'\n      },\n      modal: {\n        edit_row: 'Edit record',\n        new_row: 'New record'\n      },\n      action: {\n        save: 'Save',\n        cancel: 'Cancel',\n        confirm: 'Confirm',\n        new_row: 'New Record',\n        toggle_filters: 'Filters'\n      },\n      message: {\n        confirm: 'Are you sure?',\n        search: 'Search',\n        show: 'Show',\n        table_summary: 'Showing {{firstIndex}} to {{lastIndex}} of {{recordsCount}} rows',\n        no_data_to_show: 'No records to show'\n      }\n    },\n    mx_page_header_logo: {\n      large_logo: {\n        src: '/assets/logos/medavie-blue-cross-logo-standard-en.svg',\n        alt: 'Medavie Blue Cross logo',\n        title: 'Click to return to the home page'\n      },\n      small_logo: {\n        src: '/assets/logos/blue-cross-only.svg',\n        alt: 'Medavie Blue Cross logo',\n        title: 'Click to return to the home page'\n      }\n    },\n    mx_page_footer: {\n      text: {\n        copyright: 'Medavie Blue Cross'\n      }\n    },\n    mx_label: {\n      a11y: {\n        additional_information: 'This is a question mark icon. Click on it to get additional information displayed in a dialog window.'\n      }\n    },\n    mx: {\n      a11y: {\n        close_modal: 'Click to close this window and return to the underlying screen',\n        alt_lang: 'fr',\n        toggle_locale: 'Cliquez sur ce bouton pour accéder à la version française de ce site web'\n      },\n      button: {\n        toggle_locale: 'Français'\n      },\n      label: {\n        user_id: 'User id',\n        password: 'Password',\n        select_option: 'Please select an option...'\n      },\n      placeholder: {\n        app_name: 'App Name'\n      },\n      error: {\n        system_error: 'An unexpected error occurred.',\n        required: 'Mandatory field'\n      },\n      logo: {\n        src: '/assets/logos/medavie-blue-cross-logo-standard-en.svg',\n        alt: 'Medavie Blue Cross logo',\n        title: 'Click to return to the home page'\n      }\n    }\n  };\n  /**\n   * Default french translation loaded with ember-mx\n   */\n  const FRENCH_TRANSLATIONS = {\n    mx_confirm_modal: {\n      action: {\n        confirm: 'Continuer',\n        cancel: 'Annuler'\n      },\n      text: {\n        header: 'Êtes-vous certain?'\n      }\n    },\n    mx_postal_code_input: {\n      label: {\n        postal_code: 'Code postal'\n      },\n      error: {\n        postal_code_required: 'Veuillez entrer un code postal',\n        postal_code_invalid: 'Veuillez entrer un code postal valide (p. ex., E1E 2V2)'\n      }\n    },\n    mx_phone_number_input: {\n      label: {\n        phone_number: 'Numéro de téléphone'\n      },\n      error: {\n        phone_number_required: 'Veuillez entrer un numéro de téléphone',\n        phone_number_invalid_length: 'Veuillez entrer un numéro comprenant au moins 10 chiffres'\n      }\n    },\n    mx_email_input: {\n      label: {\n        email: 'Courriel'\n      },\n      error: {\n        email_required: 'Veuillez entrer une adresse courriel valide',\n        email_invalid: 'Veuillez entrer une adresse courriel en utilisant le bon format (p. ex., nom@domaine.com)',\n        invalid_domain: 'Veuillez saisir une adresse électronique avec un domaine vérifié, comme .com, .ca ou .org.'\n      }\n    },\n    mx_date_input: {\n      error: {\n        date_required: 'Veuillez entrer la date',\n        date_invalid: 'En êtes-vous certain? Veuillez entrer la date de nouveau'\n      }\n    },\n    mx_yes_no_toggle: {\n      label: {\n        yes: 'Oui',\n        no: 'Non'\n      }\n    },\n    mx_month_year_input: {\n      error: {\n        date_required: 'Veuillez entrer la date',\n        date_invalid: 'En êtes-vous certain? Veuillez entrer la date de nouveau'\n      }\n    },\n    mx_date_picker: {\n      error: {\n        invalid_date_format: 'Veuillez entrer une date valide en utilisant le format jj/mm/aaaa',\n        invalid_date: 'Veuillez entrer une date valide en utilisant le format jj/mm/aaaa'\n      }\n    },\n    mx_data_grid: {\n      option: {\n        all_rows: 'Tout'\n      },\n      modal: {\n        edit_row: \"Modifier l'entrée\",\n        new_row: 'Nouvelle entrée'\n      },\n      action: {\n        save: 'Sauvegarder',\n        cancel: 'Annuler',\n        confirm: 'Confirmer',\n        new_row: 'Nouvelle entrée',\n        toggle_filters: 'Filtres'\n      },\n      message: {\n        confirm: 'Êtes-vous sûr?',\n        search: 'Chercher',\n        show: 'Montrer',\n        table_summary: 'Montrant {{firstIndex}} à {{lastIndex}} de {{recordsCount}} rangées',\n        no_data_to_show: \"Pas d'entrée disponible\"\n      }\n    },\n    mx_page_header_logo: {\n      large_logo: {\n        src: '/assets/logos/medavie-blue-cross-logo-standard-fr.svg',\n        alt: 'Logo de Croix Bleue Medavie',\n        title: \"Cliquez pour revenir à la page d'accueil\"\n      },\n      small_logo: {\n        src: '/assets/logos/blue-cross-only.svg',\n        alt: 'Logo de Croix Bleue Medavie',\n        title: \"Cliquez pour revenir à la page d'accueil\"\n      }\n    },\n    mx_page_footer: {\n      text: {\n        copyright: 'Croix Bleue Medavie'\n      }\n    },\n    mx_label: {\n      a11y: {\n        additional_information: \"Ceci est une icône représentant un point d'interrogation. Cliquez dessus pour obtenir de l'information supplémentaire qui s'affichera dans une boite de dialogue.\"\n      }\n    },\n    mx: {\n      a11y: {\n        close_modal: \"Cliquez pour fermer cette fenêtre et revenir à l'écran précédent\",\n        alt_lang: 'en',\n        toggle_locale: 'Click on this button to use the English version of this website'\n      },\n      button: {\n        toggle_locale: 'English'\n      },\n      label: {\n        user_id: 'Identifiant utilisateur',\n        password: 'Mot de passe',\n        select_option: 'Veuillez sélectionner une option...'\n      },\n      placeholder: {\n        app_name: \"Nom de l'application\"\n      },\n      error: {\n        system_error: 'Une erreur système est survenue.',\n        required: 'Champ obligatoire'\n      },\n      logo: {\n        src: '/assets/logos/medavie-blue-cross-logo-standard-fr.svg',\n        alt: 'Logo de Croix Bleue Medavie',\n        title: \"Cliquez pour revenir à la page d'accueil\"\n      }\n    }\n  };\n  /**\n   * This service is responsible to manage the internalization\n   */\n  var _default = _exports.default = Ember.Service.extend({\n    /**\n     * Inject ember-i18n service.\n     */\n    i18n: Ember.inject.service('i18n'),\n    /**\n     * Inject notification service.\n     */\n    notifications: Ember.inject.service('mx-notifications'),\n    /**\n     * Initializing service.\n     */\n    init() {\n      this._super(...arguments);\n      // default the locale to the browser locale.\n      this.addTranslations('en', ENGLISH_TRANSLATIONS);\n      this.addTranslations('fr', FRENCH_TRANSLATIONS);\n      this.setLocale(this._getBrowserLocale());\n    },\n    /**\n     * Returns the current locale. This computed property is a wrapper of the i18n.locale computed property\n     */\n    locale: Ember.computed('i18n.locale', {\n      /**\n       * Returns the computed property.\n       */\n      get() {\n        return this.i18n.locale;\n      },\n      /**\n       * Set the computed property\n       */\n      set(key, locale) {\n        this.setLocale(locale);\n        return locale;\n      }\n    }),\n    /**\n     * Returns the list of supported locales. This computed property is a wrapper of the i18n.locales computed property.\n     */\n    locales: Ember.computed.reads('i18n.locales'),\n    /**\n     * Toggle locale from french and english\n     */\n    toggleLocale() {\n      this.set('locale', this.locale === 'en' ? 'fr' : 'en');\n    },\n    /**\n     * Set locale\n     * @param locale (default to en)\n     */\n    setLocale(locale) {\n      let localeNormalized = locale.toLowerCase();\n      if (localeNormalized !== 'en' && localeNormalized !== 'fr') {\n        localeNormalized = 'en';\n      }\n      Ember.debug(`Switching locale to: ${localeNormalized}`);\n      // set the ember-i18n locale\n      this.set('i18n.locale', localeNormalized);\n      // set the page lang attribute.\n      (0, _jquery.default)('html').attr('lang', localeNormalized);\n      window.sessionStorage.setItem('locale', localeNormalized);\n      // Clear notifications in there are some.\n      this.notifications.clearNotifications();\n    },\n    /**\n     * Returns the translation for a given key. This wrapper of the ember-i18n.t function\n     * @param translationKey The translation key\n     * @param opts The translation options.\n     * @return {string}\n     */\n    t(translationKey, opts) {\n      if (!Ember.isNone(opts)) {\n        return this.i18n.t(translationKey, opts);\n      }\n      return this.i18n.t(translationKey);\n    },\n    /**\n     * Returns the translation for a given key. This is an alias of the  t method.\n     * @param translationKey The translation key\n     * @param opts The translation options\n     * @return {string}\n     */\n    translate(translationKey, opts) {\n      if (!Ember.isNone(opts)) {\n        return this.t(translationKey, opts);\n      }\n      return this.t(translationKey);\n    },\n    /**\n     * Returns an unsafe translation for given key. This is useful if you need don't want to use the default SafeString\n     */\n    unsafeTranslate(translationKey, opts) {\n      const safeTranslation = this.translate(translationKey, opts);\n      if (!Ember.isNone(safeTranslation)) {\n        return safeTranslation.toString();\n      }\n      return null;\n    },\n    /**\n     *  Returns a safe translation for given key. Safe means that all HTML tags have been removed from the translated string if there are some.\n     *  This method is primarily used in tests to remove all HTML tags from a translated string\n     * @param translationKey The translation key\n     * @param opts The translation options\n     * @return {string}\n     */\n    safeTranslate(translationKey, opts) {\n      const safeTranslation = this.translate(translationKey, opts);\n      if (!Ember.isNone(safeTranslation)) {\n        return safeTranslation.toString().replace(/(<([^>]+)>)/gi, '');\n      }\n      return null;\n    },\n    /**\n     * Add translations for a given locale, this is a wrapper of the ember-i18n.addTranslations function.\n     * @param locale The locale\n     * @param translations The translations\n     */\n    addTranslations(locale, translations) {\n      this.i18n.addTranslations(locale, translations);\n    },\n    /**\n     * Returns the locale from the browser.\n     * @return Returns the locale from the browser\n     */\n    _getBrowserLocale() {\n      // check if the language is available.\n      if (Ember.isNone(window.navigator.language)) {\n        return window.navigator.browserLanguage.split('-')[0];\n      }\n      return window.navigator.language.split('-')[0];\n    },\n    actions: {\n      toggleLocale() {\n        this.toggleLocale();\n      }\n    }\n  });\n});","define(\"ember-mx/services/mx-notifications\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71f0,\"jquery\",0,\"@ember/utils\",0,\"@ember/object\",0,\"@ember/service\",0,\"@ember/service\"eaimeta@70e063a35619d71f\n  /**\n   * This service is responsible to handle sending notification to the users.\n   * @module\n   */\n  var _default = _exports.default = Ember.Service.extend({\n    /**\n     * inject flashMessages service.\n     */\n    messages: Ember.inject.service('flashMessages'),\n    /**\n     * inject i18n service.\n     */\n    translation: Ember.inject.service('i18n'),\n    /**\n     * Returns all notifications.\n     * @return {array}\n     */\n    getNotifications() {\n      return this.messages.queue.map(flashMessage => {\n        return Ember.Object.create({\n          type: this.getNotificationType(flashMessage.get('type')),\n          message: flashMessage.get('message'),\n          messageKey: flashMessage.get('messageKey'),\n          messageParams: flashMessage.get('messageParams'),\n          target: flashMessage.get('target')\n        });\n      });\n    },\n    /**\n     * Return a notification for a given index.\n     * @param i The index\n     * @return {Object}\n     */\n    getNotification(i) {\n      let notification = null;\n      const flashMessage = this.messages.queue.objectAt(i);\n      if (flashMessage) {\n        notification = Ember.Object.create({\n          type: this.getNotificationType(flashMessage.get('type')),\n          message: flashMessage.get('message'),\n          messageKey: flashMessage.get('messageKey'),\n          messageParams: flashMessage.get('messageParams'),\n          target: flashMessage.get('target')\n        });\n      }\n      return notification;\n    },\n    /**\n     * Return a notification type\n     * @param type The type\n     * @return {string}\n     */\n    getNotificationType(type) {\n      switch (type) {\n        case 'warning':\n        case 'warn':\n          return 'warning';\n        case 'info':\n          return 'info';\n        case 'danger':\n        case 'fatal':\n        case 'error':\n          return 'error';\n        default:\n          return 'success';\n      }\n    },\n    /**\n     * Send success notification.\n     * @param msgKey The message key.\n     * @param target The message target\n     */\n    notifySuccess(msgKey = '', target) {\n      this.notifySuccessWithOpts(msgKey, {\n        target\n      });\n    },\n    /**\n     * Send success notification with params.\n     * @param msgKey The message key.\n     * @param msgParams The message params\n     * @param target The target\n     */\n    notifySuccessWithParams(msgKey = '', msgParams, target) {\n      this.notifySuccessWithOpts(msgKey, {\n        target,\n        msgParams\n      });\n    },\n    /**\n     * Send success notification with options\n     * @param msgKey The message key.\n     * @param opts The options\n     */\n    notifySuccessWithOpts(msgKey, opts) {\n      this.notify(msgKey, 'success', opts);\n    },\n    /**\n     * Send info notification.\n     * @param msgKey The message key\n     * @param target The message target\n     */\n    notifyInfo(msgKey = '', target) {\n      this.notifyInfoWithOpts(msgKey, {\n        target\n      });\n    },\n    /**\n     * Send info notification with params.\n     * @param msgKey The message key.\n     * @param msgParams The message params\n     * @param target The target\n     */\n    notifyInfoWithParams(msgKey = '', msgParams, target) {\n      this.notifyInfoWithOpts(msgKey, {\n        target,\n        msgParams\n      });\n    },\n    /**\n     * Send info notification.\n     * @param msgKey The message key.\n     * @param opts The options\n     */\n    notifyInfoWithOpts(msgKey = '', opts) {\n      this.notify(msgKey, 'info', opts);\n    },\n    /**\n     * Send warning notification.\n     * @param msgKey The message key\n     * @param target The message target\n     */\n    notifyWarning(msgKey = '', target) {\n      this.notifyWarningWithOpts(msgKey, {\n        target\n      });\n    },\n    /**\n     * Send warning notification with params.\n     * @param msgKey The message key\n     * @param msgParams The message params\n     * @param target The target\n     */\n    notifyWarningWithParams(msgKey = '', msgParams, target) {\n      this.notifyWarningWithOpts(msgKey, {\n        msgParams,\n        target\n      });\n    },\n    /**\n     * Send warning notification with options\n     * @param msgKey The message key.\n     * @param opts The options\n     */\n    notifyWarningWithOpts(msgKey = '', opts) {\n      this.notify(msgKey, 'warn', opts);\n    },\n    /**\n     * Send error notification.\n     * @param msgKey The message key\n     * @param target The message target\n     */\n    notifyError(msgKey = '', target) {\n      this.notifyErrorWithOpts(msgKey, {\n        target\n      });\n    },\n    /**\n     * Send error notification with params.\n     * @param msgKey The message key\n     * @param msgParams The message params\n     * @param target The target\n     */\n    notifyErrorWithParams(msgKey = '', msgParams, target) {\n      this.notifyErrorWithOpts(msgKey, {\n        msgParams,\n        target\n      });\n    },\n    /**\n     * Send error notification with options\n     * @param msgKey The message key\n     * @param opts The opts\n     */\n    notifyErrorWithOpts(msgKey = '', opts) {\n      this.notify(msgKey, 'danger', opts);\n    },\n    /**\n     * Send notification\n     * @param msgKey The message key\n     * @param notificationType The notification type\n     * @param opts The options\n     */\n    notify(msgKey = '', notificationType = 'success', opts) {\n      switch (notificationType) {\n        case 'warning':\n        case 'warn':\n          {\n            const warnMsg = this._translateMessage(msgKey, opts.msgParams);\n            if (!Ember.isEmpty(warnMsg)) {\n              this.messages.warning(warnMsg, {\n                messageKey: msgKey,\n                messageParams: opts.msgParams,\n                target: opts.target,\n                timeout: opts.timeout,\n                priority: opts.priority,\n                sticky: opts.sticky,\n                showProgress: opts.showProgress,\n                extendedTimeout: opts.extendedTimeout,\n                destroyOnClick: opts.destroyOnClick\n              });\n            }\n            break;\n          }\n        case 'info':\n          {\n            const infoMsg = this._translateMessage(msgKey, opts.msgParams);\n            if (!Ember.isEmpty(infoMsg)) {\n              this.messages.info(infoMsg, {\n                messageKey: msgKey,\n                messageParams: opts.msgParams,\n                target: opts.target,\n                timeout: opts.timeout,\n                priority: opts.priority,\n                sticky: opts.sticky,\n                showProgress: opts.showProgress,\n                extendedTimeout: opts.extendedTimeout,\n                destroyOnClick: opts.destroyOnClick\n              });\n            }\n            break;\n          }\n        case 'danger':\n        case 'fatal':\n        case 'error':\n          {\n            const errorMsg = this._translateMessage(msgKey, opts.msgParams);\n            if (!Ember.isEmpty(errorMsg)) {\n              this.messages.danger(errorMsg, {\n                messageKey: msgKey,\n                messageParams: opts.msgParams,\n                target: opts.target,\n                timeout: opts.timeout,\n                priority: opts.priority,\n                sticky: opts.sticky,\n                showProgress: opts.showProgress,\n                extendedTimeout: opts.extendedTimeout,\n                destroyOnClick: opts.destroyOnClick\n              });\n            }\n            break;\n          }\n        default:\n          {\n            const successMsg = this._translateMessage(msgKey, opts.msgParams);\n            if (!Ember.isEmpty(successMsg)) {\n              this.messages.success(successMsg, {\n                messageKey: msgKey,\n                messageParams: opts.msgParams,\n                target: opts.target,\n                timeout: opts.timeout,\n                priority: opts.priority,\n                sticky: opts.sticky,\n                showProgress: opts.showProgress,\n                extendedTimeout: opts.extendedTimeout,\n                destroyOnClick: opts.destroyOnClick\n              });\n            }\n          }\n      }\n    },\n    /**\n     * Clear the notifications\n     * @param target The target\n     */\n    clearNotifications(target) {\n      // if queue name is provider is will clear only the queue.\n      if (!Ember.isNone(target)) {\n        let targets = target.split(',');\n        targets = _jquery.default.map(targets, function (targetItem) {\n          return targetItem.trim();\n        });\n        for (let i = this.messages.queue.length - 1; i >= 0; i--) {\n          const messageTarget = this.messages.queue.objectAt(i).target;\n          if (_jquery.default.inArray(messageTarget, targets) > -1) {\n            this.messages.queue.removeAt(i);\n          }\n        }\n      } else {\n        this.messages.clearMessages();\n      }\n    },\n    /**\n     * Returns the translated message for a given message key. If the message is not found it returns the message key.\n     * @param msgKey The message key\n     * @param msgParams The message params\n     * @return {string}\n     */\n    _translateMessage(msgKey, msgParams) {\n      let msg = this.translation.t(msgKey, msgParams);\n      if (typeof msg === 'string' && msg.search('Missing translation') >= 0) {\n        msg = msgKey;\n      }\n      return msg;\n    }\n  });\n});","define(\"ember-mx/templates/components/mx-button-bar\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"eWmC2w2Y\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[10,\\\"div\\\"],[14,0,\\\"row\\\"],[12],[2,\\\"\\\\n\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"col-xs-12\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[18,1,null],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-button-bar.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-button\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Bi7UfIp0\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[6,[37,1],[[35,7]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"span\\\"],[14,0,\\\"flash\\\"],[12],[1,[34,6]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[35,4]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,1],[[35,5]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,1],[[35,3]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[31,[[34,4],\\\" icon-left\\\"]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[15,\\\"aria-hidden\\\",[30,[36,1],[[35,0],\\\"true\\\",\\\"false\\\"],null]],[15,\\\"data-test-automation-id\\\",[34,2]],[12],[1,[34,3]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[31,[[34,4]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[35,3]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[15,\\\"aria-hidden\\\",[30,[36,1],[[35,0],\\\"true\\\",\\\"false\\\"],null]],[15,\\\"data-test-automation-id\\\",[34,2]],[12],[1,[34,3]],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[31,[[34,4],\\\" icon-right\\\"]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[31,[[34,4]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[10,\\\"span\\\"],[15,\\\"aria-hidden\\\",[30,[36,1],[[35,0],\\\"true\\\",\\\"false\\\"],null]],[15,\\\"data-test-automation-id\\\",[34,2]],[12],[1,[34,3]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"aria-label\\\",\\\"if\\\",\\\"testAutomationIdLabel\\\",\\\"label\\\",\\\"iconClass\\\",\\\"isIconLeft\\\",\\\"pendingMessage\\\",\\\"showPendingMessage\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-button.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-card-list\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"EousvEq0\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"index\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,12],[[30,[36,11],[[30,[36,11],[[35,10]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,8],[[35,9]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,5],null,[[\\\"showCloseButton\\\",\\\"closeAction\\\",\\\"showCloseConfirm\\\",\\\"testAutomationId\\\"],[[30,[36,8],[[30,[36,7],[[32,2],0],null],true,false],null],[30,[36,3],[[32,0],\\\"removeCard\\\",[32,1]],null],[35,6],[30,[36,1],[[35,0],\\\"_\\\",[32,2]],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[18,3,[[32,1]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,5],null,null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[18,3,[[32,1]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1,2]}]]],[2,\\\"\\\\n\\\"],[6,[37,8],[[35,13]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"form-group\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[1,[30,[36,4],null,[[\\\"type\\\",\\\"action\\\",\\\"label\\\",\\\"iconClass\\\",\\\"class\\\",\\\"iconPosition\\\",\\\"size\\\",\\\"testAutomationId\\\"],[\\\"link\\\",[30,[36,3],[[32,0],\\\"addCard\\\"],null],[35,2],\\\"far fa-plus-circle fx-scale\\\",\\\"no-decoration\\\",\\\"left\\\",\\\"small\\\",[30,[36,1],[[35,0],\\\"_addCard\\\"],null]]]]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"testAutomationId\\\",\\\"concat\\\",\\\"addButtonLabel\\\",\\\"action\\\",\\\"mx-button\\\",\\\"mx-card\\\",\\\"showRemoveConfirm\\\",\\\"gt\\\",\\\"if\\\",\\\"showRemoveButton\\\",\\\"items\\\",\\\"-track-array\\\",\\\"each\\\",\\\"showAddButton\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-card-list.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-card\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"zUNtXuQe\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,3],[[35,2]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"form-group\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[1,[30,[36,1],null,[[\\\"type\\\",\\\"class\\\",\\\"action\\\",\\\"iconClass\\\",\\\"iconPosition\\\",\\\"size\\\"],[\\\"link\\\",\\\"pull-right no-decoration\\\",[30,[36,0],[[32,0],\\\"close\\\"],null],\\\"far fa-times-circle mx-gray-color fx-scale\\\",\\\"left\\\",\\\"lg\\\"]]]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[18,1,null],[2,\\\"\\\\n\\\\n\\\"],[1,[30,[36,5],null,[[\\\"visible\\\",\\\"confirmAction\\\",\\\"cancelAction\\\"],[[35,4],[30,[36,0],[[32,0],\\\"confirmClose\\\"],null],[30,[36,0],[[32,0],\\\"cancelClose\\\"],null]]]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"mx-button\\\",\\\"showCloseButton\\\",\\\"if\\\",\\\"closeConfirmModalVisible\\\",\\\"mx-confirm-modal\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-card.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-checkbox-group\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"PIS4d9ye\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"index\\\",\\\"checkbox\\\",\\\"item\\\",\\\"index\\\",\\\"checkbox\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,46],null,[[\\\"showLegend\\\",\\\"legendClass\\\",\\\"legend\\\",\\\"testAutomationId\\\"],[[35,45],[35,44],[35,43],[35,42]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,15],[[35,41]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[10,\\\"div\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,38],[[30,[36,37],[[30,[36,37],[[35,36]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,40],null,[[\\\"id\\\",\\\"required\\\",\\\"requiredMessage\\\",\\\"value\\\",\\\"label\\\",\\\"group\\\",\\\"name\\\",\\\"validate\\\",\\\"validationGroup\\\",\\\"checked\\\",\\\"autoFocus\\\",\\\"disabled\\\",\\\"disabledMessage\\\",\\\"errorMessage\\\",\\\"afterLocaleChangedAction\\\",\\\"afterResetAction\\\",\\\"beforeValidationAction\\\",\\\"afterValidationAction\\\",\\\"afterValidationSuccessAction\\\",\\\"afterValidationErrorAction\\\",\\\"valueChangeAction\\\",\\\"testAutomationId\\\"],[[30,[36,14],[[35,34],\\\"-\\\",[32,5]],null],[35,32],[35,31],[30,[36,30],[[32,4],[35,26]],null],[30,[36,29],[[32,4],[35,28]],null],true,[35,25],[35,24],[35,23],[30,[36,27],[[35,1],[32,4],[35,26]],null],[30,[36,22],[[35,21],[32,5]],null],[30,[36,20],[[30,[36,19],[[32,4],[35,18]],null],[35,17]],null],[32,4,[\\\"disabledMessage\\\"]],[35,16],[30,[36,3],[[32,0],\\\"afterLocaleChanged\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"afterReset\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"beforeValidation\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"afterValidation\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"afterValidationSuccess\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"afterValidationError\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"valueChangeAction\\\"],null],[30,[36,15],[[35,13],[30,[36,14],[[35,13],\\\"-\\\",[32,5]],null]],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[18,7,[[30,[36,12],null,[[\\\"item\\\",\\\"checkbox\\\"],[[32,4],[32,6]]]]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[6]}]]]],\\\"parameters\\\":[4,5]}]]],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[18,7,[[30,[36,12],null,[[\\\"validator\\\"],[[30,[36,39],[\\\"mx-validator\\\"],[[\\\"type\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[\\\"array\\\",[35,1],[35,0]]]]]]]]],[2,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,38],[[30,[36,37],[[30,[36,37],[[35,36]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,35],null,[[\\\"id\\\",\\\"class\\\",\\\"required\\\",\\\"requiredMessage\\\",\\\"value\\\",\\\"label\\\",\\\"checked\\\",\\\"group\\\",\\\"name\\\",\\\"validate\\\",\\\"validationGroup\\\",\\\"autoFocus\\\",\\\"disabled\\\",\\\"disabledMessage\\\",\\\"errorMessage\\\",\\\"afterLocaleChangedAction\\\",\\\"afterResetAction\\\",\\\"beforeValidationAction\\\",\\\"afterValidationAction\\\",\\\"afterValidationSuccessAction\\\",\\\"afterValidationErrorAction\\\",\\\"valueChangeAction\\\",\\\"testAutomationId\\\"],[[30,[36,14],[[35,34],\\\"-\\\",[32,2]],null],[35,33],[35,32],[35,31],[30,[36,30],[[32,1],[35,26]],null],[30,[36,29],[[32,1],[35,28]],null],[30,[36,27],[[35,1],[32,1],[35,26]],null],true,[35,25],[35,24],[35,23],[30,[36,22],[[35,21],[32,2]],null],[30,[36,20],[[30,[36,19],[[32,1],[35,18]],null],[35,17]],null],[32,1,[\\\"disabledMessage\\\"]],[35,16],[30,[36,3],[[32,0],\\\"afterLocaleChanged\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"afterReset\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"beforeValidation\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"afterValidation\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"afterValidationSuccess\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"afterValidationError\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"valueChangeAction\\\"],null],[30,[36,15],[[35,13],[30,[36,14],[[35,13],\\\"-\\\",[32,2]],null]],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[18,7,[[30,[36,12],null,[[\\\"item\\\",\\\"checkbox\\\"],[[32,1],[32,3]]]]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]}]]]],\\\"parameters\\\":[1,2]}]]],[2,\\\"\\\\n\\\\t\\\\t\\\"],[18,7,[[30,[36,12],null,[[\\\"validator\\\"],[[30,[36,39],[\\\"mx-validator\\\"],[[\\\"type\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[\\\"array\\\",[35,1],[35,0]]]]]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,15],[[35,47]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[34,9]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[34,10]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[2,[34,11]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,15],[[35,48]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"type\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateCheckedRange\\\"],null],[35,8],\\\"array\\\",[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,15],[[35,49]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"type\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateMaximumChecked\\\"],null],[35,7],\\\"array\\\",[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,15],[[35,50]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"type\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateMinimumChecked\\\"],null],[35,6],\\\"array\\\",[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,15],[[35,51]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"type\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,5],\\\"array\\\",[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,15],[[35,52]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"type\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,2],\\\"array\\\",[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"notEqualToMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"equalToMessage\\\",\\\"minimumCheckedMessage\\\",\\\"maximumCheckedMessage\\\",\\\"checkedRangeMessage\\\",\\\"idMsg\\\",\\\"testAutomationIdMsg\\\",\\\"parsleyErrorMessage\\\",\\\"hash\\\",\\\"testAutomationId\\\",\\\"concat\\\",\\\"if\\\",\\\"errorMessage\\\",\\\"disabledGroup\\\",\\\"itemDisabledProperty\\\",\\\"get-item-disabled\\\",\\\"or\\\",\\\"autoFocus\\\",\\\"is-item-autofocus\\\",\\\"validationGroup\\\",\\\"validate\\\",\\\"groupName\\\",\\\"itemValueProperty\\\",\\\"is-checkbox-item-checked\\\",\\\"itemLabelProperty\\\",\\\"get-item-label\\\",\\\"get-item-value\\\",\\\"requiredMessage\\\",\\\"required\\\",\\\"checkboxClass\\\",\\\"elementId\\\",\\\"mx-checkbox\\\",\\\"sortedItems\\\",\\\"-track-array\\\",\\\"each\\\",\\\"component\\\",\\\"mx-checkbox-inline\\\",\\\"inline\\\",\\\"testAutomationIdLabel\\\",\\\"label\\\",\\\"legendClass\\\",\\\"showLabel\\\",\\\"mx-fieldset\\\",\\\"showErrorMessage\\\",\\\"checkedRange\\\",\\\"maximumChecked\\\",\\\"minimumChecked\\\",\\\"equalTo\\\",\\\"notEqualTo\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-checkbox-group.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-checkbox-inline\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"T4xVlz7Z\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[1,[30,[36,19],null,[[\\\"id\\\",\\\"type\\\",\\\"role\\\",\\\"name\\\",\\\"checked\\\",\\\"disabled\\\",\\\"tabindex\\\",\\\"autofocus\\\",\\\"required\\\",\\\"aria-checked\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-mincheck\\\",\\\"data-parsley-mincheck-message\\\",\\\"data-parsley-maxcheck\\\",\\\"data-parsley-maxcheck-message\\\",\\\"data-parsley-check\\\",\\\"data-parsley-check-message\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],\\\"checkbox\\\",\\\"checkbox\\\",[35,18],[35,13],[35,17],[35,16],[35,15],[35,4],[30,[36,14],[[35,13]],null],\\\"false\\\",\\\"true\\\",[35,12],[35,11],[35,10],[35,9],[35,8],[35,7],[35,6],[35,5],[35,4],[35,3],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\"],[18,1,[[30,[36,24],null,[[\\\"label\\\"],[[30,[36,23],[\\\"mx-checkbox-label\\\"],[[\\\"onInsertElementAction\\\"],[[30,[36,22],[[32,0],[30,[36,21],[[35,20]],null],true],null]]]]]]]]],[2,\\\"\\\\n\\\\n\\\"],[10,\\\"label\\\"],[15,1,[30,[36,26],[[35,25],\\\"-label\\\"],null]],[15,\\\"aria-label\\\",[34,27]],[15,\\\"for\\\",[32,0,[\\\"idControl\\\"]]],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdLabel\\\"]]],[12],[2,\\\"\\\\n\\\"],[6,[37,28],[[35,20]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,2],[[35,1]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[1,[34,0]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[14,0,\\\"sr-only\\\"],[12],[1,[34,0]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"label\\\",\\\"showLabel\\\",\\\"if\\\",\\\"requiredMessage\\\",\\\"required\\\",\\\"errorMessage\\\",\\\"validationGroup\\\",\\\"checkedRangeMessage\\\",\\\"checkedRange\\\",\\\"maximumCheckedMessageComputed\\\",\\\"maximumChecked\\\",\\\"minimumCheckedMessageComputed\\\",\\\"minimumChecked\\\",\\\"checked\\\",\\\"boolean-to-string\\\",\\\"autoFocus\\\",\\\"tabIndex\\\",\\\"disabled\\\",\\\"name\\\",\\\"input\\\",\\\"customLabel\\\",\\\"mut\\\",\\\"action\\\",\\\"component\\\",\\\"hash\\\",\\\"elementId\\\",\\\"concat\\\",\\\"ariaLabel\\\",\\\"unless\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-checkbox-inline.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-checkbox-label\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"OGHs27/J\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-checkbox-label.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-checkbox\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"vQyxYrUN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,13],[[30,[36,49],[[35,14],[35,48]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"disabled-message\\\"],[15,\\\"data-test-automation-id\\\",[34,47]],[12],[2,[34,48]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,13],[[35,50]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,31],null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\",\\\"disabled\\\",\\\"tabindex\\\",\\\"autofocus\\\",\\\"required\\\",\\\"aria-checked\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-mincheck\\\",\\\"data-parsley-mincheck-message\\\",\\\"data-parsley-maxcheck\\\",\\\"data-parsley-maxcheck-message\\\",\\\"data-parsley-check\\\",\\\"data-parsley-check-message\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],\\\"checkbox\\\",[35,30],[35,26],[35,14],[35,29],[35,28],[35,16],[30,[36,27],[[35,26]],null],\\\"false\\\",\\\"true\\\",[35,25],[35,24],[35,23],[35,22],[35,21],[35,20],[35,19],[35,18],[30,[36,13],[[30,[36,17],[[35,16],true],null],\\\"true\\\",\\\"false\\\"],null],[35,15],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\\t\\\"],[10,\\\"label\\\"],[15,\\\"for\\\",[34,46]],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdLabel\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[18,1,[[30,[36,37],null,[[\\\"label\\\"],[[30,[36,36],[\\\"mx-checkbox-label\\\"],[[\\\"didInsertElementAction\\\"],[[30,[36,3],[[32,0],[30,[36,35],[[35,34]],null],true],null]]]]]]]]],[2,\\\"\\\\n\\\"],[6,[37,38],[[35,34]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[1,[34,11]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,0,[31,[\\\"checkbox \\\",[30,[36,13],[[35,14],\\\"disabled\\\",\\\"\\\"],null]]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[1,[30,[36,31],null,[[\\\"id\\\",\\\"type\\\",\\\"name\\\",\\\"checked\\\",\\\"disabled\\\",\\\"tabindex\\\",\\\"autofocus\\\",\\\"required\\\",\\\"aria-checked\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-mincheck\\\",\\\"data-parsley-mincheck-message\\\",\\\"data-parsley-maxcheck\\\",\\\"data-parsley-maxcheck-message\\\",\\\"data-parsley-check\\\",\\\"data-parsley-check-message\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],\\\"checkbox\\\",[35,30],[35,26],[35,14],[35,29],[35,28],[35,16],[30,[36,27],[[35,26]],null],\\\"false\\\",\\\"true\\\",[35,25],[35,24],[35,23],[35,22],[35,21],[35,20],[35,19],[35,18],[30,[36,13],[[30,[36,17],[[35,16],true],null],\\\"true\\\",\\\"false\\\"],null],[35,15],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[10,\\\"label\\\"],[15,1,[30,[36,33],[[35,32],\\\"-label\\\"],null]],[15,\\\"for\\\",[30,[36,33],[[35,32],\\\"-control\\\"],null]],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdLabel\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[18,1,[[30,[36,37],null,[[\\\"label\\\"],[[30,[36,36],[\\\"mx-checkbox-label\\\"],[[\\\"didInsertElementAction\\\"],[[30,[36,3],[[32,0],[30,[36,35],[[35,34]],null],true],null]]]]]]]]],[2,\\\"\\\\n\\\"],[6,[37,38],[[35,34]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,13],[[35,12]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[34,11]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[14,0,\\\"sr-only\\\"],[12],[1,[34,11]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,13],[[35,39]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[10,\\\"div\\\"],[15,1,[32,0,[\\\"idMsg\\\"]]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdMsg\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[2,[34,10]],[2,\\\"\\\\n\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,13],[[35,40]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,9],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,13],[[35,41]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,8],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,13],[[35,42]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterTo\\\"],null],[35,7],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,13],[[35,43]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterOrEqualTo\\\"],null],[35,6],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,13],[[35,44]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserTo\\\"],null],[35,5],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,13],[[35,45]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserOrEqualTo\\\"],null],[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[18,1,[[30,[36,37],null,[[\\\"checked\\\",\\\"validator\\\"],[[35,26],[30,[36,36],[\\\"mx-validator\\\"],[[\\\"type\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[\\\"array\\\",[35,26],[35,0]]]]]]]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"lesserOrEqualToMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"lesserToMessage\\\",\\\"greaterOrEqualToMessage\\\",\\\"greaterToMessage\\\",\\\"notEqualToMessage\\\",\\\"equalToMessage\\\",\\\"parsleyErrorMessage\\\",\\\"label\\\",\\\"showLabel\\\",\\\"if\\\",\\\"disabled\\\",\\\"requiredMessage\\\",\\\"required\\\",\\\"eq\\\",\\\"errorMessage\\\",\\\"validationGroup\\\",\\\"checkedRangeMessage\\\",\\\"checkedRange\\\",\\\"maximumCheckedMessageComputed\\\",\\\"maximumChecked\\\",\\\"minimumCheckedMessageComputed\\\",\\\"minimumChecked\\\",\\\"checked\\\",\\\"boolean-to-string\\\",\\\"autoFocus\\\",\\\"tabIndex\\\",\\\"name\\\",\\\"input\\\",\\\"elementId\\\",\\\"concat\\\",\\\"customLabel\\\",\\\"mut\\\",\\\"component\\\",\\\"hash\\\",\\\"unless\\\",\\\"showErrorMessage\\\",\\\"equalTo\\\",\\\"notEqualTo\\\",\\\"greaterTo\\\",\\\"greaterOrEqualTo\\\",\\\"lesserTo\\\",\\\"lesserOrEqualTo\\\",\\\"idControl\\\",\\\"testAutomationIdDisabled\\\",\\\"disabledMessage\\\",\\\"and\\\",\\\"group\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-checkbox.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-confirm-modal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"fasJFsih\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,16],null,[[\\\"showCloseButton\\\",\\\"visible\\\",\\\"testAutomationId\\\",\\\"size\\\",\\\"closeAction\\\",\\\"showAction\\\",\\\"backdropStatic\\\"],[false,[35,15],[32,0,[\\\"testAutomationId\\\"]],[35,14],[35,13],[35,12],true]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"text-center mx-confirm-modal\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,10],[[35,9]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[34,9]],[14,\\\"aria-label\\\",\\\"hidden\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,10],[[35,8]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"heading\\\"],[12],[1,[34,8]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,10],[[35,7]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[10,\\\"p\\\"],[14,0,\\\"text-lg\\\"],[12],[1,[34,7]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\t\\\\t\\\"],[18,1,null],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,10],[[35,11]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,4],null,null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"row\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"col-xs-6 text-center\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,[36,3],null,[[\\\"type\\\",\\\"label\\\",\\\"action\\\",\\\"focused\\\",\\\"testAutomationId\\\",\\\"block\\\"],[\\\"primary\\\",[35,6],[35,5],[35,0],\\\"cancel-button\\\",true]]]],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"col-xs-6 text-center\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,[36,3],null,[[\\\"label\\\",\\\"action\\\",\\\"testAutomationId\\\",\\\"block\\\"],[[35,2],[35,1],\\\"confirm-button\\\",true]]]],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,4],null,[[\\\"class\\\"],[\\\"text-center\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[1,[30,[36,3],null,[[\\\"type\\\",\\\"label\\\",\\\"action\\\",\\\"focused\\\",\\\"testAutomationId\\\",\\\"class\\\"],[\\\"primary\\\",[35,2],[35,1],[35,0],\\\"confirm-button\\\",\\\"width50\\\"]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"defaultButtonFocused\\\",\\\"confirmAction\\\",\\\"confirmButtonLabel\\\",\\\"mx-button\\\",\\\"mx-button-bar\\\",\\\"cancelAction\\\",\\\"cancelButtonLabel\\\",\\\"bodyText\\\",\\\"headerText\\\",\\\"headerIconClass\\\",\\\"if\\\",\\\"showCancelButton\\\",\\\"showAction\\\",\\\"closeAction\\\",\\\"size\\\",\\\"visible\\\",\\\"mx-modal\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-confirm-modal.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-date-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"pQq2lirn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[1,[30,[36,46],null,[[\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"for\\\",\\\"visible\\\",\\\"testAutomationId\\\",\\\"labelIconClass\\\",\\\"labelIconAction\\\"],[[32,0,[\\\"idLabel\\\"]],[35,45],[35,44],[32,0,[\\\"idControl\\\"]],[35,43],[32,0,[\\\"testAutomationIdLabel\\\"]],[35,42],[35,41]]]]],[2,\\\"\\\\n\\\\n\\\\n\\\"],[6,[37,20],[[35,40]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,0,[31,[[34,40]]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[1,[30,[36,39],null,[[\\\"id\\\",\\\"value\\\",\\\"type\\\",\\\"labelType\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"name\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"size\\\",\\\"accesskey\\\",\\\"required\\\",\\\"tabindex\\\",\\\"class\\\",\\\"pattern\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-validation-threshold\\\",\\\"data-parsley-validate-if-empty\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],[35,38],\\\"tel\\\",[35,37],[35,36],[35,35],[35,34],[35,33],[35,32],[35,31],[35,30],[35,29],[35,25],[35,28],[30,[36,26],[\\\"form-control \\\",[35,27]],null],[35,23],[30,[36,26],[\\\"\\\",[35,19]],null],[35,25],[35,24],[35,23],[35,22],true,[30,[36,20],[[35,19],[35,21],null],null],[30,[36,20],[[35,19],[35,18],null],null],[35,17],[35,16],[35,15],[35,14],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,39],null,[[\\\"id\\\",\\\"value\\\",\\\"type\\\",\\\"labelType\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"name\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"size\\\",\\\"accesskey\\\",\\\"required\\\",\\\"tabindex\\\",\\\"class\\\",\\\"pattern\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-validation-threshold\\\",\\\"data-parsley-validate-if-empty\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],[35,38],\\\"tel\\\",[35,37],[35,36],[35,35],[35,34],[35,33],[35,32],[35,31],[35,30],[35,29],[35,25],[35,28],[30,[36,26],[\\\"form-control \\\",[35,27]],null],[35,23],[30,[36,26],[\\\"\\\",[35,19]],null],[35,25],[35,24],[35,23],[35,22],true,[30,[36,20],[[35,19],[35,21],null],null],[30,[36,20],[[35,19],[35,18],null],null],[35,17],[35,16],[35,15],[35,14],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,13]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"span\\\"],[15,0,[31,[\\\"form-control-feedback \\\",[34,13]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,47]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[32,0,[\\\"idMsg\\\"]]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdMsg\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[2,[34,12]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,48]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,11],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,49]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,10],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,50]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterTo\\\"],null],[35,9],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,51]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterOrEqualTo\\\"],null],[35,8],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,52]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserTo\\\"],null],[35,7],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,53]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserOrEqualTo\\\"],null],[35,6],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,54]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateMinimumDate\\\"],null],[35,5],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,55]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateMaximumDate\\\"],null],[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[18,1,[[30,[36,57],null,[[\\\"validator\\\"],[[30,[36,56],[\\\"mx-validator\\\"],[[\\\"validatedValue\\\",\\\"validationSelector\\\"],[[35,1],[35,0]]]]]]]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"maximumDateMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"minimumDateMessage\\\",\\\"lesserOrEqualToMessage\\\",\\\"lesserToMessage\\\",\\\"greaterOrEqualToMessage\\\",\\\"greaterToMessage\\\",\\\"notEqualToMessage\\\",\\\"equalToMessage\\\",\\\"parsleyErrorMessage\\\",\\\"iconClass\\\",\\\"errorMessage\\\",\\\"validationGroup\\\",\\\"validateIfEmptyComputed\\\",\\\"validationThreshold\\\",\\\"validationTriggerAfterFailureComputed\\\",\\\"validate\\\",\\\"if\\\",\\\"validationTriggerComputed\\\",\\\"patternMessage\\\",\\\"pattern\\\",\\\"requiredMessageComputed\\\",\\\"required\\\",\\\"concat\\\",\\\"inputClass\\\",\\\"tabIndex\\\",\\\"accessKey\\\",\\\"size\\\",\\\"readOnly\\\",\\\"placeholder\\\",\\\"name\\\",\\\"disabled\\\",\\\"autoFocus\\\",\\\"autoComplete\\\",\\\"labelType\\\",\\\"maskValue\\\",\\\"input\\\",\\\"inputWidthClass\\\",\\\"labelIconAction\\\",\\\"labelIconClass\\\",\\\"showLabel\\\",\\\"label\\\",\\\"labelClass\\\",\\\"mx-label\\\",\\\"showErrorMessage\\\",\\\"equalTo\\\",\\\"notEqualTo\\\",\\\"greaterTo\\\",\\\"greaterOrEqualTo\\\",\\\"lesserTo\\\",\\\"lesserOrEqualTo\\\",\\\"minimumDate\\\",\\\"maximumDate\\\",\\\"component\\\",\\\"hash\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-date-input.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-email-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ElpjUv6T\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[1,[30,[36,11],null,[[\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"for\\\",\\\"visible\\\",\\\"testAutomationId\\\"],[[32,0,[\\\"idLabel\\\"]],[35,10],[35,9],[32,0,[\\\"idControl\\\"]],[35,8],[32,0,[\\\"testAutomationIdLabel\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\"],[1,[30,[36,45],null,[[\\\"id\\\",\\\"class\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"required\\\",\\\"type\\\",\\\"minlength\\\",\\\"maxlength\\\",\\\"min\\\",\\\"max\\\",\\\"pattern\\\",\\\"tabindex\\\",\\\"autocomplete\\\",\\\"placeholder\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-type\\\",\\\"data-parsley-type-message\\\",\\\"data-parsley-minlength\\\",\\\"data-parsley-minlength-message\\\",\\\"data-parsley-maxlength\\\",\\\"data-parsley-maxlength-message\\\",\\\"data-parsley-length\\\",\\\"data-parsley-length-message\\\",\\\"data-parsley-min\\\",\\\"data-parsley-min-message\\\",\\\"data-parsley-max\\\",\\\"data-parsley-max-message\\\",\\\"data-parsley-range\\\",\\\"data-parsley-range-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-validate-if-empty\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-group\\\",\\\"data-parsley-validation-threshold\\\",\\\"data-parsley-error-message\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],\\\"form-control\\\",[35,44],[35,43],[35,42],[35,37],\\\"email\\\",[35,33],[35,31],[35,27],[35,25],[35,21],[35,41],[35,40],[35,39],[30,[36,38],[\\\"\\\",[35,16]],null],[35,37],[35,36],[35,35],[35,34],[35,33],[35,32],[35,31],[35,30],[35,29],[35,28],[35,27],[35,26],[35,25],[35,24],[35,23],[35,22],[35,21],[35,20],[35,19],[30,[36,17],[[35,16],[35,18],null],null],[30,[36,17],[[35,16],[35,15],null],null],[35,14],[35,13],[35,12],true,[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\"],[18,1,[[30,[36,47],null,[[\\\"validator\\\"],[[30,[36,46],[\\\"mx-validator\\\"],[[\\\"validatedValue\\\",\\\"validationSelector\\\"],[[35,1],[35,0]]]]]]]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,17],[[35,7]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"span\\\"],[15,0,[31,[\\\"form-control-feedback \\\",[34,7]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,17],[[35,48]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[32,0,[\\\"idMsg\\\"]]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdMsg\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[2,[34,6]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,17],[[35,49]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,5],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,17],[[35,50]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"isValidDomain\\\"],null],[35,51],[35,1],[35,0]]]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"notEqualToMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"equalToMessage\\\",\\\"parsleyErrorMessage\\\",\\\"iconClass\\\",\\\"showLabel\\\",\\\"label\\\",\\\"labelClass\\\",\\\"mx-label\\\",\\\"errorMessage\\\",\\\"validationThreshold\\\",\\\"validationGroup\\\",\\\"validationTriggerAfterFailureComputed\\\",\\\"validate\\\",\\\"if\\\",\\\"validationTriggerComputed\\\",\\\"validateIfEmptyComputed\\\",\\\"patternMessage\\\",\\\"pattern\\\",\\\"rangeMessage\\\",\\\"range\\\",\\\"maximumValueMessageComputed\\\",\\\"maximumValue\\\",\\\"minimumValueMessageComputed\\\",\\\"minimumValue\\\",\\\"lengthRangeMessage\\\",\\\"lengthRange\\\",\\\"maximumLengthMessageComputed\\\",\\\"maximumLength\\\",\\\"minimumLengthMessageComputed\\\",\\\"minimumLength\\\",\\\"typeMessageComputed\\\",\\\"validationType\\\",\\\"requiredMessageComputed\\\",\\\"required\\\",\\\"concat\\\",\\\"placeholder\\\",\\\"autoComplete\\\",\\\"tabIndex\\\",\\\"stringValue\\\",\\\"disabled\\\",\\\"autoFocus\\\",\\\"input\\\",\\\"component\\\",\\\"hash\\\",\\\"showErrorMessage\\\",\\\"equalTo\\\",\\\"notEqualTo\\\",\\\"invalidDomainMessage\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-email-input.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-fieldset\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"2u5YbSrN\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@labelIconClass\\\",\\\"&default\\\"],\\\"statements\\\":[[10,\\\"legend\\\"],[15,1,[30,[36,1],[[35,0],\\\"_legend\\\"],null]],[15,0,[34,7]],[15,\\\"data-test-automation-id\\\",[34,2]],[12],[2,\\\"\\\\n\\\\t\\\"],[10,\\\"span\\\"],[15,\\\"data-test-automation-id\\\",[30,[36,1],[[35,2],\\\"_legend\\\"],null]],[12],[1,[34,8]],[13],[2,\\\"\\\\n\\\"],[6,[37,9],[[32,1]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[11,\\\"a\\\"],[16,1,[30,[36,1],[[35,0],\\\"_button\\\"],null]],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-automation-id\\\",[30,[36,1],[[35,2],\\\"_control\\\"],null]],[4,[38,4],[\\\"click\\\",[35,3]],null],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[14,0,\\\"sr-only\\\"],[12],[1,[30,[36,5],[\\\"mx_label.a11y.additional_information\\\"],null]],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[30,[36,1],[[35,6],\\\" fx-scale\\\"],null]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[18,2,null]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"id\\\",\\\"concat\\\",\\\"testAutomationId\\\",\\\"labelIconAction\\\",\\\"on\\\",\\\"t\\\",\\\"labelIconClass\\\",\\\"legendClassComputed\\\",\\\"legend\\\",\\\"if\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-fieldset.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-form\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"l7B3p+OC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-form.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"x3wvip1Y\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[1,[30,[36,15],null,[[\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"for\\\",\\\"visible\\\",\\\"testAutomationId\\\"],[[32,0,[\\\"idLabel\\\"]],[35,14],[35,13],[32,0,[\\\"idControl\\\"]],[35,12],[32,0,[\\\"testAutomationIdLabel\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\"],[1,[30,[36,50],null,[[\\\"id\\\",\\\"class\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"value\\\",\\\"required\\\",\\\"type\\\",\\\"minlength\\\",\\\"maxlength\\\",\\\"min\\\",\\\"max\\\",\\\"pattern\\\",\\\"tabindex\\\",\\\"autocomplete\\\",\\\"placeholder\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-type\\\",\\\"data-parsley-type-message\\\",\\\"data-parsley-minlength\\\",\\\"data-parsley-minlength-message\\\",\\\"data-parsley-maxlength\\\",\\\"data-parsley-maxlength-message\\\",\\\"data-parsley-length\\\",\\\"data-parsley-length-message\\\",\\\"data-parsley-min\\\",\\\"data-parsley-min-message\\\",\\\"data-parsley-max\\\",\\\"data-parsley-max-message\\\",\\\"data-parsley-range\\\",\\\"data-parsley-range-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-validate-if-empty\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-group\\\",\\\"data-parsley-validation-threshold\\\",\\\"data-parsley-error-message\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],\\\"form-control\\\",[35,49],[35,48],[35,47],[35,41],[35,46],[35,37],[35,35],[35,31],[35,29],[35,25],[35,45],[35,44],[35,43],[30,[36,42],[\\\"\\\",[35,20]],null],[35,41],[35,40],[35,39],[35,38],[35,37],[35,36],[35,35],[35,34],[35,33],[35,32],[35,31],[35,30],[35,29],[35,28],[35,27],[35,26],[35,25],[35,24],[35,23],[30,[36,21],[[35,20],[35,22],null],null],[30,[36,21],[[35,20],[35,19],null],null],[35,18],[35,17],[35,16],true,[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\"],[18,1,[[30,[36,52],null,[[\\\"validator\\\"],[[30,[36,51],[\\\"mx-validator\\\"],[[\\\"validatedValue\\\",\\\"validationSelector\\\"],[[35,1],[35,0]]]]]]]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,21],[[35,11]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"span\\\"],[15,0,[31,[\\\"form-control-feedback \\\",[34,11]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,21],[[35,53]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[32,0,[\\\"idMsg\\\"]]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdMsg\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[2,[34,10]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,21],[[35,54]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,9],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,21],[[35,55]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,8],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,21],[[35,56]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterTo\\\"],null],[35,7],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,21],[[35,57]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterOrEqualTo\\\"],null],[35,6],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,21],[[35,58]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserTo\\\"],null],[35,5],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,21],[[35,59]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserOrEqualTo\\\"],null],[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"lesserOrEqualToMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"lesserToMessage\\\",\\\"greaterOrEqualToMessage\\\",\\\"greaterToMessage\\\",\\\"notEqualToMessage\\\",\\\"equalToMessage\\\",\\\"parsleyErrorMessage\\\",\\\"iconClass\\\",\\\"showLabel\\\",\\\"label\\\",\\\"labelClass\\\",\\\"mx-label\\\",\\\"errorMessage\\\",\\\"validationThreshold\\\",\\\"validationGroup\\\",\\\"validationTriggerAfterFailureComputed\\\",\\\"validate\\\",\\\"if\\\",\\\"validationTriggerComputed\\\",\\\"validateIfEmptyComputed\\\",\\\"patternMessage\\\",\\\"pattern\\\",\\\"rangeMessage\\\",\\\"range\\\",\\\"maximumValueMessageComputed\\\",\\\"maximumValue\\\",\\\"minimumValueMessageComputed\\\",\\\"minimumValue\\\",\\\"lengthRangeMessage\\\",\\\"lengthRange\\\",\\\"maximumLengthMessageComputed\\\",\\\"maximumLength\\\",\\\"minimumLengthMessageComputed\\\",\\\"minimumLength\\\",\\\"typeMessageComputed\\\",\\\"validationType\\\",\\\"requiredMessageComputed\\\",\\\"required\\\",\\\"concat\\\",\\\"placeholder\\\",\\\"autoComplete\\\",\\\"tabIndex\\\",\\\"htmlType\\\",\\\"stringValue\\\",\\\"disabled\\\",\\\"autoFocus\\\",\\\"input\\\",\\\"component\\\",\\\"hash\\\",\\\"showErrorMessage\\\",\\\"equalTo\\\",\\\"notEqualTo\\\",\\\"greaterTo\\\",\\\"greaterOrEqualTo\\\",\\\"lesserTo\\\",\\\"lesserOrEqualTo\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-input.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-label\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"3Tn3i5ca\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@labelIconClass\\\"],\\\"statements\\\":[[1,[34,6]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,7],[[32,1]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[11,\\\"a\\\"],[24,\\\"role\\\",\\\"button\\\"],[16,\\\"data-test-automation-id\\\",[30,[36,1],[[35,0],\\\"_control\\\"],null]],[4,[38,3],[[32,0],[35,2]],null],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"span\\\"],[14,0,\\\"sr-only\\\"],[12],[1,[30,[36,4],[\\\"mx_label.a11y.additional_information\\\"],null]],[13],[2,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[30,[36,1],[[35,5],\\\" fx-scale\\\"],null]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"testAutomationId\\\",\\\"concat\\\",\\\"labelIconAction\\\",\\\"action\\\",\\\"t\\\",\\\"labelIconClass\\\",\\\"value\\\",\\\"if\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-label.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-link\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"b319kHux\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,1],[[35,7]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"span\\\"],[14,0,\\\"flash\\\"],[12],[1,[34,6]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[18,1,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[35,4]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,1],[[35,5]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,1],[[35,3]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[31,[[34,4],\\\" icon-left\\\"]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[15,\\\"aria-hidden\\\",[30,[36,1],[[35,0],\\\"true\\\",\\\"false\\\"],null]],[15,\\\"data-test-automation-id\\\",[34,2]],[12],[1,[34,3]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[31,[[34,4]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],[[35,3]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[15,\\\"aria-hidden\\\",[30,[36,1],[[35,0],\\\"true\\\",\\\"false\\\"],null]],[15,\\\"data-test-automation-id\\\",[34,2]],[12],[1,[34,3]],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[31,[[34,4],\\\" icon-right\\\"]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"i\\\"],[15,0,[31,[[34,4]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[15,\\\"aria-hidden\\\",[30,[36,1],[[35,0],\\\"true\\\",\\\"false\\\"],null]],[15,\\\"data-test-automation-id\\\",[34,2]],[12],[1,[34,3]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"aria-label\\\",\\\"if\\\",\\\"testAutomationIdLabel\\\",\\\"label\\\",\\\"iconClass\\\",\\\"isIconLeft\\\",\\\"pendingMessage\\\",\\\"showPendingMessage\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-link.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-modal-body\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"JjPEZm1a\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-modal-body.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-modal-footer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ODath0G2\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-modal-footer.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-modal-header\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"ajZWPnse\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,5],[[30,[36,9],[[27,[32,1]],[35,7]],null]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"modal-header\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,5],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\"],[18,1,[[30,[36,8],null,[[\\\"showCloseButton\\\",\\\"title\\\",\\\"aria-labelledby\\\"],[[35,4],[35,7],[35,6]]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,5],[[35,4]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[15,1,[30,[36,1],[[35,0],\\\"_closeIcon\\\"],null]],[15,\\\"aria-label\\\",[30,[36,2],[\\\"mx.a11y.close_modal\\\"],null]],[15,\\\"data-test-automation-id\\\",[30,[36,1],[[35,3],\\\"_close_button\\\"],null]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,0,\\\"far fa-times-circle mx-gray-color fx-scale\\\"],[12],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,5],[[35,7]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"h4\\\"],[14,0,\\\"modal-title\\\"],[15,1,[34,6]],[14,\\\"tabindex\\\",\\\"0\\\"],[12],[1,[34,7]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,5],[[35,4]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"modal-header\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"button\\\"],[14,0,\\\"close\\\"],[14,\\\"data-dismiss\\\",\\\"modal\\\"],[15,1,[30,[36,1],[[35,0],\\\"_closeIcon\\\"],null]],[15,\\\"aria-label\\\",[30,[36,2],[\\\"mx.a11y.close_modal\\\"],null]],[15,\\\"data-test-automation-id\\\",[30,[36,1],[[35,3],\\\"_close_button\\\"],null]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[14,0,\\\"far fa-times-circle mx-gray-color fx-scale\\\"],[12],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"elementId\\\",\\\"concat\\\",\\\"t\\\",\\\"testAutomationId\\\",\\\"showCloseButton\\\",\\\"if\\\",\\\"aria-labelledby\\\",\\\"title\\\",\\\"hash\\\",\\\"or\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-modal-header.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-modal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"/lNbFqUb\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,25],null,[[\\\"to\\\",\\\"renderInPlace\\\"],[[35,24],[35,23]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[34,18]],[15,0,[34,19]],[14,\\\"tabindex\\\",\\\"-1\\\"],[14,\\\"role\\\",\\\"dialog\\\"],[14,\\\"aria-modal\\\",\\\"true\\\"],[15,\\\"data-test-automation-id\\\",[34,14]],[15,\\\"aria-labelledby\\\",[34,0]],[15,\\\"aria-describedby\\\",[34,20]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"div\\\"],[15,0,[34,21]],[12],[2,\\\"\\\\n\\\"],[6,[37,22],[[28,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"modal-content\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[18,1,[[30,[36,17],null,[[\\\"header\\\",\\\"body\\\",\\\"footer\\\",\\\"showCloseButton\\\",\\\"title\\\",\\\"aria-labelledby\\\",\\\"closeOnEscapeKey\\\",\\\"backdropStatic\\\",\\\"showBackdrop\\\",\\\"visible\\\",\\\"fade\\\",\\\"size\\\"],[[30,[36,12],[\\\"mx-modal-header\\\"],[[\\\"showCloseButton\\\",\\\"title\\\",\\\"classHeader\\\",\\\"focusOnCloseIcon\\\",\\\"aria-labelledby\\\",\\\"testAutomationId\\\"],[[35,2],[35,1],[35,16],[35,15],[35,0],[35,14]]]],[30,[36,12],[\\\"mx-modal-body\\\"],[[\\\"classBody\\\"],[[35,13]]]],[30,[36,12],[\\\"mx-modal-footer\\\"],[[\\\"classFooter\\\"],[[35,11]]]],[35,2],[35,1],[35,0],[35,10],[35,9],[35,8],[35,7],[35,6],[35,5]]]]]],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"modal-content\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[30,[36,3],null,[[\\\"showCloseButton\\\",\\\"title\\\",\\\"aria-labelledby\\\"],[[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"],[6,[37,4],null,null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[18,1,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"ariaLabelledby\\\",\\\"title\\\",\\\"showCloseButton\\\",\\\"mx-modal-header\\\",\\\"mx-modal-body\\\",\\\"size\\\",\\\"fade\\\",\\\"visible\\\",\\\"showBackdrop\\\",\\\"backdropStatic\\\",\\\"closeOnEscapeKey\\\",\\\"classFooter\\\",\\\"component\\\",\\\"classBody\\\",\\\"testAutomationId\\\",\\\"focusOnCloseIcon\\\",\\\"classHeader\\\",\\\"hash\\\",\\\"modalId\\\",\\\"modalClass\\\",\\\"aria-describedby\\\",\\\"modalDialogClass\\\",\\\"if\\\",\\\"renderInPlace\\\",\\\"containerId\\\",\\\"ember-wormhole\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-modal.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-month-year-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"uoidKnIh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[1,[30,[36,44],null,[[\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"for\\\",\\\"visible\\\",\\\"testAutomationId\\\"],[[32,0,[\\\"idLabel\\\"]],[35,43],[35,42],[32,0,[\\\"idControl\\\"]],[35,41],[35,40]]]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,18],[[35,38]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,0,[31,[[34,38]]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[1,[30,[36,37],null,[[\\\"id\\\",\\\"value\\\",\\\"type\\\",\\\"mask\\\",\\\"options\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"name\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"size\\\",\\\"accesskey\\\",\\\"required\\\",\\\"tabindex\\\",\\\"class\\\",\\\"pattern\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],[35,36],\\\"tel\\\",[35,39],[35,35],[35,34],[35,33],[35,32],[35,31],[35,30],[35,29],[35,28],[35,27],[35,23],[35,26],[30,[36,24],[\\\"form-control \\\",[35,25]],null],[35,21],[30,[36,24],[\\\"\\\",[35,17]],null],[35,23],[35,22],[35,21],[35,20],true,[30,[36,18],[[35,17],[35,19],null],null],[30,[36,18],[[35,17],[35,16],null],null],[35,15],[35,14],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,37],null,[[\\\"id\\\",\\\"value\\\",\\\"type\\\",\\\"options\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"name\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"size\\\",\\\"accesskey\\\",\\\"required\\\",\\\"tabindex\\\",\\\"class\\\",\\\"pattern\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],[35,36],\\\"tel\\\",[35,35],[35,34],[35,33],[35,32],[35,31],[35,30],[35,29],[35,28],[35,27],[35,23],[35,26],[30,[36,24],[\\\"form-control \\\",[35,25]],null],[35,21],[30,[36,24],[\\\"\\\",[35,17]],null],[35,23],[35,22],[35,21],[35,20],true,[30,[36,18],[[35,17],[35,19],null],null],[30,[36,18],[[35,17],[35,16],null],null],[35,15],[35,14],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,18],[[35,13]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"span\\\"],[15,0,[31,[\\\"form-control-feedback \\\",[34,13]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,18],[[35,45]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[32,0,[\\\"idMsg\\\"]]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdMsg\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[2,[34,12]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,18],[[35,46]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,11],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,18],[[35,47]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,10],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,18],[[35,48]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterTo\\\"],null],[35,9],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,18],[[35,49]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterOrEqualTo\\\"],null],[35,8],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,18],[[35,50]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserTo\\\"],null],[35,7],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,18],[[35,51]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserOrEqualTo\\\"],null],[35,6],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,18],[[35,52]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateMinimumDate\\\"],null],[35,5],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,18],[[35,53]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateMaximumDate\\\"],null],[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[18,1,[[30,[36,55],null,[[\\\"validator\\\"],[[30,[36,54],[\\\"mx-validator\\\"],[[\\\"validatedValue\\\",\\\"validationSelector\\\"],[[35,1],[35,0]]]]]]]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"maximumDateMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"minimumDateMessage\\\",\\\"lesserOrEqualToMessage\\\",\\\"lesserToMessage\\\",\\\"greaterOrEqualToMessage\\\",\\\"greaterToMessage\\\",\\\"notEqualToMessage\\\",\\\"equalToMessage\\\",\\\"parsleyErrorMessage\\\",\\\"iconClass\\\",\\\"errorMessage\\\",\\\"validationGroup\\\",\\\"validationTriggerAfterFailureComputed\\\",\\\"validate\\\",\\\"if\\\",\\\"validationTriggerComputed\\\",\\\"patternMessage\\\",\\\"pattern\\\",\\\"requiredMessageComputed\\\",\\\"required\\\",\\\"concat\\\",\\\"inputClass\\\",\\\"tabIndex\\\",\\\"accessKey\\\",\\\"size\\\",\\\"readOnly\\\",\\\"placeholder\\\",\\\"name\\\",\\\"disabled\\\",\\\"autoFocus\\\",\\\"autoComplete\\\",\\\"maskOptions\\\",\\\"maskValue\\\",\\\"input\\\",\\\"inputWidthClass\\\",\\\"mask\\\",\\\"testAutomationIdLabel\\\",\\\"showLabel\\\",\\\"label\\\",\\\"labelClass\\\",\\\"mx-label\\\",\\\"showErrorMessage\\\",\\\"equalTo\\\",\\\"notEqualTo\\\",\\\"greaterTo\\\",\\\"greaterOrEqualTo\\\",\\\"lesserTo\\\",\\\"lesserOrEqualTo\\\",\\\"minimumDate\\\",\\\"maximumDate\\\",\\\"component\\\",\\\"hash\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-month-year-input.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-notifications\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"tHxPeoc4\",\n    \"block\": \"{\\\"symbols\\\":[\\\"flash\\\",\\\"component\\\",\\\"flash\\\"],\\\"statements\\\":[[6,[37,6],[[30,[36,5],[[30,[36,5],[[35,4,[\\\"queue\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,3],[[30,[36,2],[[32,1,[\\\"target\\\"]],[35,1]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],null,[[\\\"class\\\",\\\"flash\\\"],[\\\"animated fade-in\\\",[32,1]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\\t\\\\t\\\"],[1,[32,3,[\\\"message\\\"]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[2,3]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"flash-message\\\",\\\"for\\\",\\\"eq\\\",\\\"if\\\",\\\"flashMessages\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-notifications.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-option\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"hTYwBGFv\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[1,[34,0]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"label\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-option.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-output\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"TQG61Axa\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"div\\\"],[15,0,[31,[\\\"mx-output \\\",[30,[36,7],[[35,6],\\\"is-form-horizontal\\\",\\\"is-form\\\"],null]]]],[12],[2,\\\"\\\\n\\\"],[6,[37,8],[[35,6]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"row\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"col-xs-12\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[15,1,[34,1]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[34,2]],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"row\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"col-xs-12\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"span\\\"],[15,\\\"aria-labelledby\\\",[31,[[34,1]]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[1,[34,5]],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,7],[[35,6]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"row\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"col-xs-12\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"row\\\"],[12],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"label\\\"],[15,0,[31,[[34,0]]]],[15,1,[34,1]],[12],[1,[34,2]],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[10,\\\"div\\\"],[15,0,[31,[[34,3]]]],[15,\\\"aria-labelledby\\\",[34,4]],[12],[1,[34,5]],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"labelClass\\\",\\\"elementId\\\",\\\"label\\\",\\\"valueClass\\\",\\\"elementIId\\\",\\\"value\\\",\\\"isFormHorizontal\\\",\\\"if\\\",\\\"unless\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-output.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-page-body\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"deLf0UaE\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[10,\\\"div\\\"],[15,0,[32,0,[\\\"containerClass\\\"]]],[12],[2,\\\"\\\\n    \\\"],[18,1,null],[2,\\\"\\\\n\\\"],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-page-body.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-page-footer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"fHr64CRB\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[10,\\\"div\\\"],[15,0,[32,0,[\\\"containerClass\\\"]]],[12],[2,\\\"\\\\n\\\"],[6,[37,1],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[18,1,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"p\\\"],[14,0,\\\"text-center\\\"],[12],[2,\\\"© \\\"],[1,[30,[36,0],[\\\"mx_page_footer.text.copyright\\\"],null]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"t\\\",\\\"if\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-page-footer.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-page-header\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"urVnCtPi\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[10,\\\"div\\\"],[15,0,[32,0,[\\\"containerClass\\\"]]],[12],[2,\\\"\\\\n\\\"],[6,[37,2],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[18,1,[[30,[36,1],null,[[\\\"navbar\\\"],[[30,[36,0],[\\\"mx-page-navbar\\\"],null]]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[8,\\\"mx-page-navbar\\\",[],[[],[]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"component\\\",\\\"hash\\\",\\\"if\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-page-header.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-page-navbar-link\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"x8QxjlGn\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@action\\\",\\\"@label\\\",\\\"@testAutomationId\\\",\\\"@animate\\\",\\\"@async\\\",\\\"@href\\\",\\\"@autoFocus\\\",\\\"@clearNotificationsFor\\\",\\\"@clearNotifications\\\",\\\"@disabled\\\",\\\"@focused\\\",\\\"@iconClass\\\",\\\"@iconPosition\\\",\\\"@pendingDelay\\\",\\\"@pendingMessage\\\",\\\"@tabIndex\\\",\\\"@validate\\\",\\\"@validateEmptyFields\\\",\\\"@validateGroup\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[27,[32,20]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[8,\\\"mx-link\\\",[],[[\\\"@action\\\",\\\"@label\\\",\\\"@testAutomationId\\\",\\\"@animate\\\",\\\"@async\\\",\\\"@href\\\",\\\"@autoFocus\\\",\\\"@clearNotificationsFor\\\",\\\"@clearNotifications\\\",\\\"@disabled\\\",\\\"@focused\\\",\\\"@iconClass\\\",\\\"@iconPosition\\\",\\\"@pendingDelay\\\",\\\"@pendingMessage\\\",\\\"@tabIndex\\\",\\\"@validate\\\",\\\"@validateEmptyFields\\\",\\\"@validateGroup\\\"],[[30,[32,1],[[32,1],null],null],[32,2],[32,3],[32,4],[32,5],[30,[36,0],[[32,6],[32,6],\\\"#\\\"],null],[32,7],[32,8],[32,9],[32,10],[32,11],[32,12],[32,13],[32,14],[32,15],[32,16],[32,17],[32,18],[32,19]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\\n        \\\"],[18,20,null],[2,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[8,\\\"mx-link\\\",[],[[\\\"@action\\\",\\\"@label\\\",\\\"@testAutomationId\\\",\\\"@animate\\\",\\\"@async\\\",\\\"@href\\\",\\\"@autoFocus\\\",\\\"@clearNotificationsFor\\\",\\\"@clearNotifications\\\",\\\"@disabled\\\",\\\"@focused\\\",\\\"@iconClass\\\",\\\"@iconPosition\\\",\\\"@pendingDelay\\\",\\\"@pendingMessage\\\",\\\"@tabIndex\\\",\\\"@validate\\\",\\\"@validateEmptyFields\\\",\\\"@validateGroup\\\"],[[30,[36,0],[[32,1],[32,1],null],null],[32,2],[32,3],[32,4],[32,5],[30,[36,0],[[32,6],[32,6],\\\"#\\\"],null],[32,7],[32,8],[32,9],[32,10],[32,11],[32,12],[32,13],[32,14],[32,15],[32,16],[32,17],[32,18],[32,19]]],null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-page-navbar-link.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-page-navbar-locale-toggle\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"8UMJ3qs1\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@label\\\",\\\"@testAutomationId\\\",\\\"@animate\\\",\\\"@async\\\",\\\"@href\\\",\\\"@autoFocus\\\",\\\"@clearNotificationsFor\\\",\\\"@clearNotifications\\\",\\\"@disabled\\\",\\\"@focused\\\",\\\"@iconClass\\\",\\\"@iconPosition\\\",\\\"@pendingDelay\\\",\\\"@pendingMessage\\\",\\\"@tabIndex\\\",\\\"@validate\\\",\\\"@validateEmptyFields\\\",\\\"@validateGroup\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,2],[[27,[32,19]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[8,\\\"mx-link\\\",[],[[\\\"@action\\\",\\\"@label\\\",\\\"@testAutomationId\\\",\\\"@animate\\\",\\\"@async\\\",\\\"@href\\\",\\\"@autoFocus\\\",\\\"@clearNotificationsFor\\\",\\\"@clearNotifications\\\",\\\"@disabled\\\",\\\"@focused\\\",\\\"@iconClass\\\",\\\"@iconPosition\\\",\\\"@pendingDelay\\\",\\\"@pendingMessage\\\",\\\"@tabIndex\\\",\\\"@validate\\\",\\\"@validateEmptyFields\\\",\\\"@validateGroup\\\"],[[30,[36,1],[[32,0],\\\"toggleLocale\\\"],[[\\\"target\\\"],[[35,0]]]],[32,1],[32,2],[32,3],[32,4],[30,[36,2],[[32,5],[32,5],\\\"#\\\"],null],[32,6],[32,7],[32,8],[32,9],[32,10],[32,11],[32,12],[32,13],[32,14],[32,15],[32,16],[32,17],[32,18]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\\n        \\\"],[18,19,null],[2,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[8,\\\"mx-link\\\",[],[[\\\"@action\\\",\\\"@label\\\",\\\"@testAutomationId\\\",\\\"@animate\\\",\\\"@async\\\",\\\"@href\\\",\\\"@autoFocus\\\",\\\"@clearNotificationsFor\\\",\\\"@clearNotifications\\\",\\\"@disabled\\\",\\\"@focused\\\",\\\"@iconClass\\\",\\\"@iconPosition\\\",\\\"@pendingDelay\\\",\\\"@pendingMessage\\\",\\\"@tabIndex\\\",\\\"@validate\\\",\\\"@validateEmptyFields\\\",\\\"@validateGroup\\\"],[[30,[36,1],[[32,0],\\\"toggleLocale\\\"],[[\\\"target\\\"],[[35,0]]]],[32,1],[32,2],[32,3],[32,4],[30,[36,2],[[32,5],[32,5],\\\"#\\\"],null],[32,6],[32,7],[32,8],[32,9],[32,10],[32,11],[32,12],[32,13],[32,14],[32,15],[32,16],[32,17],[32,18]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\\n        \\\"],[10,\\\"i\\\"],[14,0,\\\"far fa-globe\\\"],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n        \\\"],[10,\\\"span\\\"],[14,0,\\\"hidden-xs\\\"],[12],[1,[30,[36,3],[\\\"mx.button.toggle_locale\\\"],null]],[13],[2,\\\"\\\\n        \\\"],[10,\\\"span\\\"],[14,0,\\\"sr-only\\\"],[12],[1,[30,[36,3],[\\\"mx.a11y.toggle_locale\\\"],null]],[13],[2,\\\"\\\\n\\\\n    \\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"i18n\\\",\\\"action\\\",\\\"if\\\",\\\"t\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-page-navbar-locale-toggle.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-page-navbar-logo\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"vR/jVwZf\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,2],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[18,1,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,1],null,[[\\\"aria-label\\\",\\\"route\\\"],[[30,[36,0],[\\\"mx_page_header_logo.large_logo.alt\\\"],null],\\\"application\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"img\\\"],[15,\\\"alt\\\",[31,[[30,[36,0],[\\\"mx_page_header_logo.large_logo.alt\\\"],null]]]],[15,\\\"src\\\",[31,[[30,[36,0],[\\\"mx_page_header_logo.large_logo.src\\\"],null]]]],[15,\\\"title\\\",[31,[[30,[36,0],[\\\"mx_page_header_logo.large_logo.title\\\"],null]]]],[14,0,\\\"logo-img img-responsive hidden-xs\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[6,[37,1],null,[[\\\"aria-label\\\",\\\"route\\\"],[[30,[36,0],[\\\"mx_page_header_logo.small_logo.alt\\\"],null],\\\"application\\\"]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[10,\\\"img\\\"],[15,\\\"alt\\\",[31,[[30,[36,0],[\\\"mx_page_header_logo.small_logo.alt\\\"],null]]]],[15,\\\"src\\\",[31,[[30,[36,0],[\\\"mx_page_header_logo.small_logo.src\\\"],null]]]],[15,\\\"title\\\",[31,[[30,[36,0],[\\\"mx_page_header_logo.small_logo.title\\\"],null]]]],[14,0,\\\"logo-img visible-xs\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"t\\\",\\\"link-to\\\",\\\"if\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-page-navbar-logo.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-page-navbar\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"viO1k9/q\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,2],[[27,[32,1]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[10,\\\"div\\\"],[14,0,\\\"navbar-header\\\"],[12],[2,\\\"\\\\n        \\\"],[18,1,[[30,[36,1],null,[[\\\"logo\\\"],[[30,[36,0],[\\\"mx-page-navbar-logo\\\"],null]]]]]],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"nav navbar-nav navbar-right\\\"],[12],[2,\\\"\\\\n        \\\"],[18,1,[[30,[36,1],null,[[\\\"link\\\",\\\"locale-toggle\\\"],[[30,[36,0],[\\\"mx-page-navbar-link\\\"],null],[30,[36,0],[\\\"mx-page-navbar-locale-toggle\\\"],null]]]]]],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[10,\\\"div\\\"],[14,0,\\\"navbar-header\\\"],[12],[2,\\\"\\\\n        \\\"],[8,\\\"mx-page-navbar-logo\\\",[],[[],[]],null],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n\\\\n    \\\"],[10,\\\"ul\\\"],[14,0,\\\"nav navbar-nav navbar-right\\\"],[12],[2,\\\"\\\\n        \\\"],[8,\\\"mx-page-navbar-locale-toggle\\\",[],[[],[]],null],[2,\\\"\\\\n    \\\"],[13],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"component\\\",\\\"hash\\\",\\\"if\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-page-navbar.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-page\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"3bVK8k4H\",\n    \"block\": \"{\\\"symbols\\\":[\\\"@fullWidth\\\",\\\"&default\\\"],\\\"statements\\\":[[18,2,[[30,[36,1],null,[[\\\"header\\\",\\\"body\\\",\\\"footer\\\"],[[30,[36,0],[\\\"mx-page-header\\\"],[[\\\"fullWidth\\\"],[[32,1]]]],[30,[36,0],[\\\"mx-page-body\\\"],[[\\\"fullWidth\\\"],[[32,1]]]],[30,[36,0],[\\\"mx-page-footer\\\"],[[\\\"fullWidth\\\"],[[32,1]]]]]]]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"component\\\",\\\"hash\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-page.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-phone-number-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"DE9Tw1NU\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[1,[30,[36,39],null,[[\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"for\\\",\\\"visible\\\",\\\"testAutomationId\\\"],[[32,0,[\\\"idLabel\\\"]],[35,38],[35,37],[32,0,[\\\"idControl\\\"]],[35,36],[32,0,[\\\"testAutomationIdLabel\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,16],[[35,35]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,0,[31,[[34,35]]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[1,[30,[36,34],null,[[\\\"id\\\",\\\"value\\\",\\\"type\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"name\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"size\\\",\\\"accesskey\\\",\\\"required\\\",\\\"tabindex\\\",\\\"class\\\",\\\"pattern\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],[35,33],\\\"tel\\\",[35,32],[35,31],[35,30],[35,29],[35,28],[35,27],[35,26],[35,25],[35,21],[35,24],[30,[36,22],[\\\"form-control \\\",[35,23]],null],[35,19],[30,[36,22],[\\\"\\\",[35,15]],null],[35,21],[35,20],[35,19],[35,18],true,[30,[36,16],[[35,15],[35,17],null],null],[30,[36,16],[[35,15],[35,14],null],null],[35,13],[35,12],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,34],null,[[\\\"id\\\",\\\"value\\\",\\\"type\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"name\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"size\\\",\\\"accesskey\\\",\\\"required\\\",\\\"tabindex\\\",\\\"class\\\",\\\"pattern\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],[35,33],\\\"tel\\\",[35,32],[35,31],[35,30],[35,29],[35,28],[35,27],[35,26],[35,25],[35,21],[35,24],[30,[36,22],[\\\"form-control \\\",[35,23]],null],[35,19],[30,[36,22],[\\\"\\\",[35,15]],null],[35,21],[35,20],[35,19],[35,18],true,[30,[36,16],[[35,15],[35,17],null],null],[30,[36,16],[[35,15],[35,14],null],null],[35,13],[35,12],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,11]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"    \\\"],[10,\\\"span\\\"],[15,0,[31,[\\\"form-control-feedback \\\",[34,11]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,40]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[32,0,[\\\"idMsg\\\"]]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdMsg\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[2,[34,10]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,41]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,9],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,42]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,8],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,43]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterTo\\\"],null],[35,7],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,44]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterOrEqualTo\\\"],null],[35,6],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,45]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserTo\\\"],null],[35,5],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,46]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserOrEqualTo\\\"],null],[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[18,1,[[30,[36,48],null,[[\\\"validator\\\"],[[30,[36,47],[\\\"mx-validator\\\"],[[\\\"validatedValue\\\",\\\"validationSelector\\\"],[[35,1],[35,0]]]]]]]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"lesserOrEqualToMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"lesserToMessage\\\",\\\"greaterOrEqualToMessage\\\",\\\"greaterToMessage\\\",\\\"notEqualToMessage\\\",\\\"equalToMessage\\\",\\\"parsleyErrorMessage\\\",\\\"iconClass\\\",\\\"errorMessage\\\",\\\"validationGroup\\\",\\\"validationTriggerAfterFailureComputed\\\",\\\"validate\\\",\\\"if\\\",\\\"validationTriggerComputed\\\",\\\"patternMessage\\\",\\\"pattern\\\",\\\"requiredMessageComputed\\\",\\\"required\\\",\\\"concat\\\",\\\"inputClass\\\",\\\"tabIndex\\\",\\\"accessKey\\\",\\\"size\\\",\\\"readOnly\\\",\\\"placeholder\\\",\\\"name\\\",\\\"disabled\\\",\\\"autoFocus\\\",\\\"autoComplete\\\",\\\"maskValue\\\",\\\"input\\\",\\\"inputWidthClass\\\",\\\"showLabel\\\",\\\"label\\\",\\\"labelClass\\\",\\\"mx-label\\\",\\\"showErrorMessage\\\",\\\"equalTo\\\",\\\"notEqualTo\\\",\\\"greaterTo\\\",\\\"greaterOrEqualTo\\\",\\\"lesserTo\\\",\\\"lesserOrEqualTo\\\",\\\"component\\\",\\\"hash\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-phone-number-input.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-postal-code-input\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"O7SC4MPy\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[1,[30,[36,40],null,[[\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"for\\\",\\\"visible\\\",\\\"testAutomationId\\\"],[[32,0,[\\\"idLabel\\\"]],[35,39],[35,38],[32,0,[\\\"idControl\\\"]],[35,37],[32,0,[\\\"testAutomationIdLabel\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,16],[[35,36]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,0,[31,[[34,36]]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[1,[30,[36,35],null,[[\\\"id\\\",\\\"value\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"name\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"size\\\",\\\"accesskey\\\",\\\"required\\\",\\\"tabindex\\\",\\\"class\\\",\\\"pattern\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],[35,33],[35,32],[35,31],[35,30],[35,29],[35,28],[35,27],[35,26],[35,25],[35,21],[35,24],[30,[36,22],[\\\"form-control \\\",[35,23]],null],[35,19],[30,[36,22],[\\\"\\\",[35,15]],null],[35,21],[35,20],[35,19],[35,18],true,[30,[36,16],[[35,15],[35,17],null],null],[30,[36,16],[[35,15],[35,14],null],null],[35,13],[35,12],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,35],null,[[\\\"id\\\",\\\"value\\\",\\\"autocomplete\\\",\\\"autofocus\\\",\\\"disabled\\\",\\\"name\\\",\\\"placeholder\\\",\\\"readonly\\\",\\\"size\\\",\\\"accesskey\\\",\\\"required\\\",\\\"tabindex\\\",\\\"class\\\",\\\"pattern\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-group\\\",\\\"data-parsley-error-message\\\",\\\"data-test-automation-id\\\"],[[35,34],[35,33],[35,32],[35,31],[35,30],[35,29],[35,28],[35,27],[35,26],[35,25],[35,21],[35,24],[30,[36,22],[\\\"form-control \\\",[35,23]],null],[35,19],[30,[36,22],[\\\"\\\",[35,15]],null],[35,21],[35,20],[35,19],[35,18],true,[30,[36,16],[[35,15],[35,17],null],null],[30,[36,16],[[35,15],[35,14],null],null],[35,13],[35,12],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,11]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"span\\\"],[15,0,[31,[\\\"form-control-feedback \\\",[34,11]]]],[14,\\\"aria-hidden\\\",\\\"true\\\"],[12],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,41]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[32,0,[\\\"idMsg\\\"]]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdMsg\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[1,[34,10]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,42]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,9],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,43]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,8],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,44]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterTo\\\"],null],[35,7],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,45]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterOrEqualTo\\\"],null],[35,6],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,46]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserTo\\\"],null],[35,5],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,47]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserOrEqualTo\\\"],null],[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[18,1,[[30,[36,49],null,[[\\\"validator\\\"],[[30,[36,48],[\\\"mx-validator\\\"],[[\\\"validatedValue\\\",\\\"validationSelector\\\"],[[35,1],[35,0]]]]]]]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"lesserOrEqualToMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"lesserToMessage\\\",\\\"greaterOrEqualToMessage\\\",\\\"greaterToMessage\\\",\\\"notEqualToMessage\\\",\\\"equalToMessage\\\",\\\"parsleyErrorMessage\\\",\\\"iconClass\\\",\\\"errorMessage\\\",\\\"validationGroup\\\",\\\"validationTriggerAfterFailureComputed\\\",\\\"validate\\\",\\\"if\\\",\\\"validationTriggerComputed\\\",\\\"patternMessage\\\",\\\"pattern\\\",\\\"requiredMessageComputed\\\",\\\"required\\\",\\\"concat\\\",\\\"inputClass\\\",\\\"tabIndex\\\",\\\"accessKey\\\",\\\"size\\\",\\\"readOnly\\\",\\\"placeholder\\\",\\\"name\\\",\\\"disabled\\\",\\\"autoFocus\\\",\\\"autoComplete\\\",\\\"maskValue\\\",\\\"idControl\\\",\\\"input\\\",\\\"inputWidthClass\\\",\\\"showLabel\\\",\\\"label\\\",\\\"labelClass\\\",\\\"mx-label\\\",\\\"showErrorMessage\\\",\\\"equalTo\\\",\\\"notEqualTo\\\",\\\"greaterTo\\\",\\\"greaterOrEqualTo\\\",\\\"lesserTo\\\",\\\"lesserOrEqualTo\\\",\\\"component\\\",\\\"hash\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-postal-code-input.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-radio-button-group\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"vmn7vnX8\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"index\\\",\\\"radioButton\\\",\\\"item\\\",\\\"index\\\",\\\"radioButton\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,50],null,[[\\\"legendClass\\\",\\\"legend\\\",\\\"id\\\",\\\"showLegend\\\",\\\"testAutomationId\\\",\\\"labelIconClass\\\",\\\"labelIconAction\\\"],[[35,49],[35,48],[30,[36,15],[[35,36],\\\"_fieldset\\\"],null],[35,47],[35,46],[35,45],[35,44]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,16],[[35,43]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[10,\\\"div\\\"],[12],[2,\\\"\\\\n\\\"],[6,[37,40],[[30,[36,39],[[30,[36,39],[[35,38]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,42],null,[[\\\"id\\\",\\\"class\\\",\\\"required\\\",\\\"requiredMessage\\\",\\\"value\\\",\\\"label\\\",\\\"checked\\\",\\\"autoFocus\\\",\\\"name\\\",\\\"disabled\\\",\\\"disabledMessage\\\",\\\"validate\\\",\\\"validationGroup\\\",\\\"afterLocaleChangedAction\\\",\\\"triggerValidation\\\",\\\"triggerValidationCallbackAction\\\",\\\"triggerReset\\\",\\\"triggerResetCallbackAction\\\",\\\"afterResetAction\\\",\\\"beforeValidationAction\\\",\\\"afterValidationAction\\\",\\\"afterValidationSuccessAction\\\",\\\"afterValidationErrorAction\\\",\\\"valueChangeAction\\\",\\\"testAutomationId\\\"],[[30,[36,15],[[35,36],\\\"-\\\",[32,5]],null],[30,[36,15],[[35,35],[30,[36,16],[[30,[36,29],[[35,1],[32,4],[35,28]],null],\\\" has-value\\\"],null]],null],[35,34],[35,33],[30,[36,32],[[32,4],[35,28]],null],[30,[36,31],[[32,4],[35,30]],null],[30,[36,29],[[35,1],[32,4],[35,28]],null],[30,[36,26],[[35,25],[32,5]],null],[35,27],[30,[36,24],[[30,[36,23],[[32,4],[35,22]],null],[35,21]],null],[32,4,[\\\"disabledMessage\\\"]],[35,20],[35,19],[30,[36,3],[[32,0],\\\"afterLocaleChanged\\\",[32,5]],null],[35,18],[30,[36,3],[[32,0],\\\"triggerValidationCallback\\\"],null],[35,17],[30,[36,3],[[32,0],\\\"triggerResetCallback\\\"],null],[30,[36,3],[[32,0],\\\"afterReset\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"beforeValidation\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"afterValidation\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"afterValidationSuccess\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"afterValidationError\\\",[32,5]],null],[30,[36,3],[[32,0],\\\"valueChangeAction\\\"],null],[30,[36,16],[[35,14],[30,[36,15],[[35,14],\\\"-\\\",[32,5]],null]],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\\t\\\"],[18,7,[[30,[36,13],null,[[\\\"radioButton\\\",\\\"item\\\",\\\"index\\\"],[[32,6],[32,4],[32,5]]]]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[6]}]]]],\\\"parameters\\\":[4,5]}]]],[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\"],[18,7,[[30,[36,13],null,[[\\\"validator\\\"],[[30,[36,41],[\\\"mx-validator\\\"],[[\\\"validateValue\\\",\\\"validationSelector\\\"],[[35,1],[35,0]]]]]]]]],[2,\\\"\\\\n\\\\n\\\\t\\\\t\\\"],[13],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,40],[[30,[36,39],[[30,[36,39],[[35,38]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,37],null,[[\\\"id\\\",\\\"class\\\",\\\"required\\\",\\\"requiredMessage\\\",\\\"value\\\",\\\"label\\\",\\\"checked\\\",\\\"name\\\",\\\"autoFocus\\\",\\\"disabled\\\",\\\"disabledMessage\\\",\\\"validate\\\",\\\"validationGroup\\\",\\\"afterLocaleChangedAction\\\",\\\"triggerValidation\\\",\\\"triggerValidationCallbackAction\\\",\\\"triggerReset\\\",\\\"triggerResetCallbackAction\\\",\\\"afterResetAction\\\",\\\"beforeValidationAction\\\",\\\"afterValidationAction\\\",\\\"afterValidationSuccessAction\\\",\\\"afterValidationErrorAction\\\",\\\"valueChangeAction\\\",\\\"testAutomationId\\\"],[[30,[36,15],[[35,36],\\\"-\\\",[32,2]],null],[30,[36,15],[[35,35],[30,[36,16],[[30,[36,29],[[35,1],[32,1],[35,28]],null],\\\" has-value\\\"],null]],null],[35,34],[35,33],[30,[36,32],[[32,1],[35,28]],null],[30,[36,31],[[32,1],[35,30]],null],[30,[36,29],[[35,1],[32,1],[35,28]],null],[35,27],[30,[36,26],[[35,25],[32,2]],null],[30,[36,24],[[30,[36,23],[[32,1],[35,22]],null],[35,21]],null],[32,1,[\\\"disabledMessage\\\"]],[35,20],[35,19],[30,[36,3],[[32,0],\\\"afterLocaleChanged\\\",[32,2]],null],[35,18],[30,[36,3],[[32,0],\\\"triggerValidationCallback\\\"],null],[35,17],[30,[36,3],[[32,0],\\\"triggerResetCallback\\\"],null],[30,[36,3],[[32,0],\\\"afterReset\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"beforeValidation\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"afterValidation\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"afterValidationSuccess\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"afterValidationError\\\",[32,2]],null],[30,[36,3],[[32,0],\\\"valueChangeAction\\\"],null],[30,[36,16],[[35,14],[30,[36,15],[[35,14],\\\"-\\\",[32,2]],null]],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\\t\\\\t\\\\t\\\\t\\\"],[18,7,[[30,[36,13],null,[[\\\"radioButton\\\",\\\"item\\\",\\\"index\\\"],[[32,3],[32,1],[32,2]]]]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[3]}]]]],\\\"parameters\\\":[1,2]}]]],[2,\\\"\\\\n\\\\t\\\\t\\\"],[18,7,[[30,[36,13],null,[[\\\"validator\\\"],[[30,[36,41],[\\\"mx-validator\\\"],[[\\\"validateValue\\\",\\\"validationSelector\\\"],[[35,1],[35,0]]]]]]]]],[2,\\\"\\\\n\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,51]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[34,10]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[34,11]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[2,[34,12]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,52]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,9],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,53]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,8],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,54]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterTo\\\"],null],[35,7],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,55]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterOrEqualTo\\\"],null],[35,6],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,56]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserTo\\\"],null],[35,5],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,16],[[35,57]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserOrEqualTo\\\"],null],[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"lesserOrEqualToMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"lesserToMessage\\\",\\\"greaterOrEqualToMessage\\\",\\\"greaterToMessage\\\",\\\"notEqualToMessage\\\",\\\"equalToMessage\\\",\\\"idMsg\\\",\\\"testAutomationIdMsg\\\",\\\"parsleyErrorMessage\\\",\\\"hash\\\",\\\"testAutomationId\\\",\\\"concat\\\",\\\"if\\\",\\\"triggerReset\\\",\\\"triggerValidation\\\",\\\"validationGroup\\\",\\\"validate\\\",\\\"disabledGroup\\\",\\\"itemDisabledProperty\\\",\\\"get-item-disabled\\\",\\\"or\\\",\\\"autoFocus\\\",\\\"is-item-autofocus\\\",\\\"groupName\\\",\\\"itemValueProperty\\\",\\\"is-radio-button-item-checked\\\",\\\"itemLabelProperty\\\",\\\"get-item-label\\\",\\\"get-item-value\\\",\\\"requiredMessage\\\",\\\"required\\\",\\\"radioButtonClass\\\",\\\"elementId\\\",\\\"mx-radio-button\\\",\\\"sortedItems\\\",\\\"-track-array\\\",\\\"each\\\",\\\"component\\\",\\\"mx-radio-button-inline\\\",\\\"inline\\\",\\\"labelIconAction\\\",\\\"labelIconClass\\\",\\\"testAutomationIdLabel\\\",\\\"showLabel\\\",\\\"label\\\",\\\"labelClass\\\",\\\"mx-fieldset\\\",\\\"showErrorMessage\\\",\\\"equalTo\\\",\\\"notEqualTo\\\",\\\"greaterTo\\\",\\\"greaterOrEqualTo\\\",\\\"lesserTo\\\",\\\"lesserOrEqualTo\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-radio-button-group.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-radio-button-inline\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"0f5SK+ag\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[10,\\\"input\\\"],[15,1,[32,0,[\\\"idControl\\\"]]],[15,3,[34,1]],[15,2,[34,2]],[15,\\\"autofocus\\\",[34,3]],[15,\\\"disabled\\\",[34,4]],[15,\\\"readonly\\\",[34,5]],[15,\\\"accesskey\\\",[34,6]],[15,\\\"lang\\\",[34,7]],[15,\\\"tabindex\\\",[34,8]],[15,\\\"title\\\",[34,9]],[15,\\\"data-parsley-ui-enabled\\\",[30,[36,11],[\\\"\\\",[35,10]],null]],[15,\\\"data-parsley-required\\\",[34,12]],[15,\\\"data-parsley-required-message\\\",[34,13]],[15,\\\"required\\\",[34,12]],[14,\\\"data-parsley-errors-messages-disabled\\\",\\\"true\\\"],[15,\\\"data-test-automation-id\\\",[34,14]],[15,\\\"data-parsley-group\\\",[34,15]],[15,\\\"data-parsley-error-message\\\",[34,16]],[15,\\\"checked\\\",[34,17]],[15,\\\"aria-checked\\\",[30,[36,18],[[35,17]],null]],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdControl\\\"]]],[14,4,\\\"radio\\\"],[12],[13],[2,\\\"\\\\n\\\\n\\\\t\\\"],[18,1,[[30,[36,19],null,[[\\\"checked\\\"],[[35,17]]]]]],[2,\\\"\\\\n\\\\n\\\"],[10,\\\"label\\\"],[15,\\\"aria-label\\\",[34,20]],[15,\\\"for\\\",[32,0,[\\\"idControl\\\"]]],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdLabel\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\"],[18,1,[[30,[36,19],null,[[\\\"label\\\"],[[30,[36,24],[\\\"mx-radio-button-label\\\"],[[\\\"didInsertElementAction\\\"],[[30,[36,23],[[32,0],[30,[36,22],[[35,21]],null],true],null]]]]]]]]],[2,\\\"\\\\n\\\"],[6,[37,25],[[35,21]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[1,[34,0]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"label\\\",\\\"name\\\",\\\"value\\\",\\\"autoFocus\\\",\\\"disabled\\\",\\\"readOnly\\\",\\\"accessKey\\\",\\\"lang\\\",\\\"tabIndex\\\",\\\"title\\\",\\\"validate\\\",\\\"concat\\\",\\\"required\\\",\\\"requiredMessage\\\",\\\"testAutomationId\\\",\\\"validationGroup\\\",\\\"errorMessage\\\",\\\"checked\\\",\\\"boolean-to-string\\\",\\\"hash\\\",\\\"ariaLabel\\\",\\\"customLabel\\\",\\\"mut\\\",\\\"action\\\",\\\"component\\\",\\\"unless\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-radio-button-inline.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-radio-button-label\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"1tabVhRj\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-radio-button-label.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-radio-button\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"Z+02+tCC\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[6,[37,4],[[30,[36,3],[[35,2],[35,1]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[14,0,\\\"disabled-message\\\"],[12],[2,[34,1]],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[10,\\\"input\\\"],[15,1,[32,0,[\\\"idControl\\\"]]],[15,3,[34,5]],[15,2,[34,6]],[15,\\\"autofocus\\\",[34,7]],[15,\\\"disabled\\\",[34,2]],[15,\\\"readonly\\\",[34,8]],[15,\\\"accesskey\\\",[34,9]],[15,\\\"lang\\\",[34,10]],[15,\\\"tabindex\\\",[34,11]],[15,\\\"title\\\",[34,12]],[15,\\\"data-parsley-ui-enabled\\\",[30,[36,14],[\\\"\\\",[35,13]],null]],[15,\\\"data-parsley-required\\\",[34,15]],[15,\\\"data-parsley-required-message\\\",[34,16]],[15,\\\"required\\\",[34,15]],[14,\\\"data-parsley-errors-messages-disabled\\\",\\\"true\\\"],[15,\\\"data-test-automation-id\\\",[34,17]],[15,\\\"data-parsley-group\\\",[34,18]],[15,\\\"data-parsley-error-message\\\",[34,19]],[15,\\\"checked\\\",[34,20]],[15,\\\"aria-checked\\\",[30,[36,21],[[35,20]],null]],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdControl\\\"]]],[14,4,\\\"radio\\\"],[12],[13],[2,\\\"\\\\n\\\\n\\\"],[18,1,[[30,[36,22],null,[[\\\"checked\\\"],[[35,20]]]]]],[2,\\\"\\\\n\\\\n\\\"],[10,\\\"label\\\"],[15,\\\"aria-label\\\",[34,23]],[15,\\\"for\\\",[34,24]],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdLabel\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\"],[18,1,[[30,[36,22],null,[[\\\"label\\\"],[[30,[36,28],[\\\"mx-radio-button-label\\\"],[[\\\"didInsertElementAction\\\"],[[30,[36,27],[[32,0],[30,[36,26],[[35,25]],null],true],null]]]]]]]]],[2,\\\"\\\\n\\\"],[6,[37,29],[[35,25]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[1,[34,0]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[13],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"label\\\",\\\"disabledMessage\\\",\\\"disabled\\\",\\\"and\\\",\\\"if\\\",\\\"name\\\",\\\"value\\\",\\\"autoFocus\\\",\\\"readOnly\\\",\\\"accessKey\\\",\\\"lang\\\",\\\"tabIndex\\\",\\\"title\\\",\\\"validate\\\",\\\"concat\\\",\\\"required\\\",\\\"requiredMessage\\\",\\\"testAutomationId\\\",\\\"validationGroup\\\",\\\"errorMessage\\\",\\\"checked\\\",\\\"boolean-to-string\\\",\\\"hash\\\",\\\"ariaLabel\\\",\\\"idControl\\\",\\\"customLabel\\\",\\\"mut\\\",\\\"action\\\",\\\"component\\\",\\\"unless\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-radio-button.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-select\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"NAlb5AzS\",\n    \"block\": \"{\\\"symbols\\\":[\\\"item\\\",\\\"&default\\\"],\\\"statements\\\":[[1,[30,[36,23],null,[[\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"for\\\",\\\"visible\\\",\\\"testAutomationId\\\"],[[32,0,[\\\"idLabel\\\"]],[35,22],[35,21],[32,0,[\\\"idControl\\\"]],[35,20],[32,0,[\\\"testAutomationIdLabel\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\"],[10,\\\"select\\\"],[15,1,[32,0,[\\\"idControl\\\"]]],[15,3,[34,24]],[15,\\\"tabIndex\\\",[34,25]],[15,\\\"autofocus\\\",[34,26]],[15,\\\"form\\\",[34,27]],[15,\\\"size\\\",[34,28]],[15,\\\"disabled\\\",[34,29]],[15,\\\"accesskey\\\",[34,30]],[15,\\\"required\\\",[34,31]],[15,0,[31,[\\\"form-control \\\",[34,32]]]],[15,\\\"data-parsley-ui-enabled\\\",[30,[36,34],[\\\"\\\",[35,33]],null]],[14,\\\"data-parsley-errors-messages-disabled\\\",\\\"true\\\"],[15,\\\"data-parsley-required\\\",[34,31]],[15,\\\"data-parsley-required-message\\\",[34,35]],[15,\\\"data-parsley-validate-if-empty\\\",[34,36]],[15,\\\"data-parsley-trigger\\\",[34,37]],[15,\\\"data-parsley-trigger-after-failure\\\",[34,38]],[15,\\\"data-parsley-group\\\",[34,39]],[15,\\\"data-parsley-class-handler\\\",[34,40]],[15,\\\"data-parsley-validation-threshold\\\",[34,41]],[15,\\\"data-parsley-errors-container\\\",[34,42]],[15,\\\"data-parsley-error-message\\\",[34,43]],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdControl\\\"]]],[12],[2,\\\"\\\\n\\\\n\\\"],[6,[37,44],[[35,19]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[1,[30,[36,18],null,[[\\\"value\\\",\\\"label\\\",\\\"selected\\\",\\\"disabled\\\"],[\\\"\\\",[35,19],true,true]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,47],[[30,[36,46],[[30,[36,46],[[35,45]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\\t\\\"],[1,[30,[36,18],null,[[\\\"value\\\",\\\"disabled\\\",\\\"selected\\\",\\\"label\\\"],[[30,[36,14],[[32,1],[35,13]],null],[30,[36,17],[[32,1],[35,16]],null],[30,[36,15],[[35,1],[30,[36,14],[[32,1],[35,13]],null]],null],[30,[36,12],[[32,1],[35,11]],null]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\\t\\\"],[18,2,[[30,[36,49],null,[[\\\"validator\\\",\\\"option\\\"],[[30,[36,48],[\\\"mx-validator\\\"],[[\\\"validatedValue\\\",\\\"validationSelector\\\"],[[35,1],[35,0]]]],[30,[36,48],[\\\"mx-option\\\"],null]]]]]],[2,\\\"\\\\n\\\\n\\\"],[13],[2,\\\"\\\\n\\\\n\\\"],[6,[37,44],[[35,50]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[32,0,[\\\"idMsg\\\"]]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdMsg\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[2,[34,10]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,44],[[35,51]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,9],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,44],[[35,52]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,8],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,44],[[35,53]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterTo\\\"],null],[35,7],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,44],[[35,54]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterOrEqualTo\\\"],null],[35,6],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,44],[[35,55]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserTo\\\"],null],[35,5],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,44],[[35,56]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserOrEqualTo\\\"],null],[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"lesserOrEqualToMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"lesserToMessage\\\",\\\"greaterOrEqualToMessage\\\",\\\"greaterToMessage\\\",\\\"notEqualToMessage\\\",\\\"equalToMessage\\\",\\\"parsleyErrorMessage\\\",\\\"itemLabelProperty\\\",\\\"get-item-label\\\",\\\"itemValueProperty\\\",\\\"get-item-value\\\",\\\"is-equal\\\",\\\"itemDisabledProperty\\\",\\\"get\\\",\\\"mx-option\\\",\\\"placeholder\\\",\\\"showLabel\\\",\\\"label\\\",\\\"labelClass\\\",\\\"mx-label\\\",\\\"name\\\",\\\"tabindex\\\",\\\"autoFocus\\\",\\\"form\\\",\\\"size\\\",\\\"disabled\\\",\\\"accessKey\\\",\\\"required\\\",\\\"inputClass\\\",\\\"validate\\\",\\\"concat\\\",\\\"requiredMessageComputed\\\",\\\"validateIfEmptyComputed\\\",\\\"validationTriggerComputed\\\",\\\"validationTriggerAfterFailureComputed\\\",\\\"validationGroup\\\",\\\"validationClassHandlerComputed\\\",\\\"validationThreshold\\\",\\\"errorMessagesContainerComputed\\\",\\\"errorMessage\\\",\\\"if\\\",\\\"sortedItems\\\",\\\"-track-array\\\",\\\"each\\\",\\\"component\\\",\\\"hash\\\",\\\"showErrorMessage\\\",\\\"equalTo\\\",\\\"notEqualTo\\\",\\\"greaterTo\\\",\\\"greaterOrEqualTo\\\",\\\"lesserTo\\\",\\\"lesserOrEqualTo\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-select.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-space\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"0RHUpPIC\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[2,\\\" \\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-space.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-spinner\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"JC8Gqb9b\",\n    \"block\": \"{\\\"symbols\\\":[],\\\"statements\\\":[[10,\\\"div\\\"],[14,0,\\\"bounce1\\\"],[12],[13],[2,\\\"\\\\n\\\"],[10,\\\"div\\\"],[14,0,\\\"bounce2\\\"],[12],[13],[2,\\\"\\\\n\\\"],[10,\\\"div\\\"],[14,0,\\\"bounce3\\\"],[12],[13]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-spinner.hbs\"\n  });\n});","define(\"ember-mx/templates/components/mx-textarea\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  0; //eaimeta@70e063a35619d71feaimeta@70e063a35619d71f\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"tU7RA3CH\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[1,[30,[36,14],null,[[\\\"id\\\",\\\"class\\\",\\\"value\\\",\\\"for\\\",\\\"visible\\\",\\\"testAutomationId\\\"],[[32,0,[\\\"idLabel\\\"]],[35,13],[35,12],[32,0,[\\\"idControl\\\"]],[35,11],[32,0,[\\\"testAutomationIdLabel\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\"],[1,[30,[36,52],null,[[\\\"id\\\",\\\"class\\\",\\\"autofocus\\\",\\\"rows\\\",\\\"value\\\",\\\"labelType\\\",\\\"required\\\",\\\"type\\\",\\\"minlength\\\",\\\"maxlength\\\",\\\"min\\\",\\\"max\\\",\\\"pattern\\\",\\\"data-parsley-required\\\",\\\"data-parsley-ui-enabled\\\",\\\"data-parsley-required-message\\\",\\\"data-parsley-type-message\\\",\\\"data-parsley-minlength\\\",\\\"data-parsley-minlength-message\\\",\\\"data-parsley-maxlength\\\",\\\"data-parsley-maxlength-message\\\",\\\"data-parsley-length\\\",\\\"data-parsley-length-message\\\",\\\"data-parsley-min\\\",\\\"data-parsley-min-message\\\",\\\"data-parsley-max\\\",\\\"data-parsley-max-message\\\",\\\"data-parsley-range\\\",\\\"data-parsley-range-message\\\",\\\"data-parsley-pattern\\\",\\\"data-parsley-pattern-message\\\",\\\"data-parsley-mincheck\\\",\\\"data-parsley-mincheck-message\\\",\\\"data-parsley-maxcheck\\\",\\\"data-parsley-maxcheck-message\\\",\\\"data-parsley-check\\\",\\\"data-parsley-check-message\\\",\\\"data-parsley-equalto\\\",\\\"data-parsley-equalto-message\\\",\\\"data-parsley-validate-if-empty\\\",\\\"data-parsley-trigger\\\",\\\"data-parsley-trigger-after-failure\\\",\\\"data-parsley-group\\\",\\\"data-parsley-validation-threshold\\\",\\\"data-parsley-errors-messages-disabled\\\",\\\"data-parsley-error-message\\\",\\\"data-test-automation-id\\\"],[[32,0,[\\\"idControl\\\"]],\\\"form-control\\\",[35,51],[35,50],[35,1],[35,49],[35,47],[35,48],[35,43],[35,41],[35,37],[35,35],[35,31],[35,47],[30,[36,46],[\\\"\\\",[35,19]],null],[35,45],[35,44],[35,43],[35,42],[35,41],[35,40],[35,39],[35,38],[35,37],[35,36],[35,35],[35,34],[35,33],[35,32],[35,31],[35,30],[35,29],[35,28],[35,27],[35,26],[35,25],[35,24],[35,23],[35,9],[35,22],[30,[36,20],[[35,19],[35,21],null],null],[30,[36,20],[[35,19],[35,18],null],null],[35,17],[35,16],true,[35,15],[32,0,[\\\"testAutomationIdControl\\\"]]]]]],[2,\\\"\\\\n\\\\n\\\"],[6,[37,20],[[35,53]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[10,\\\"div\\\"],[15,1,[32,0,[\\\"idMsg\\\"]]],[14,0,\\\"mx-error-msg\\\"],[14,\\\"aria-live\\\",\\\"polite\\\"],[14,\\\"role\\\",\\\"alert\\\"],[15,\\\"data-test-automation-id\\\",[32,0,[\\\"testAutomationIdMsg\\\"]]],[12],[2,\\\"\\\\n\\\\t\\\\t\\\"],[2,[34,10]],[2,\\\"\\\\n\\\\t\\\"],[13],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,54]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateEqualTo\\\"],null],[35,9],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,55]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateNotEqualTo\\\"],null],[35,8],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,56]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterTo\\\"],null],[35,7],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,57]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateGreaterOrEqualTo\\\"],null],[35,6],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,58]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserTo\\\"],null],[35,5],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[6,[37,20],[[35,59]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\t\\\"],[1,[30,[36,4],null,[[\\\"action\\\",\\\"message\\\",\\\"validatedValue\\\",\\\"validationSelector\\\"],[[30,[36,3],[[32,0],\\\"validateLesserOrEqualTo\\\"],null],[35,2],[35,1],[35,0]]]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"\\\\n\\\"],[18,1,[[30,[36,61],null,[[\\\"validator\\\"],[[30,[36,60],[\\\"mx-validator\\\"],[[\\\"validatedValue\\\",\\\"validationSelector\\\"],[[35,1],[35,0]]]]]]]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"validationSelector\\\",\\\"value\\\",\\\"lesserOrEqualToMessage\\\",\\\"action\\\",\\\"mx-validator\\\",\\\"lesserToMessage\\\",\\\"greaterOrEqualToMessage\\\",\\\"greaterToMessage\\\",\\\"notEqualToMessage\\\",\\\"equalToMessage\\\",\\\"parsleyErrorMessage\\\",\\\"showLabel\\\",\\\"label\\\",\\\"labelClass\\\",\\\"mx-label\\\",\\\"errorMessage\\\",\\\"validationThreshold\\\",\\\"validationGroup\\\",\\\"validationTriggerAfterFailureComputed\\\",\\\"validate\\\",\\\"if\\\",\\\"validationTriggerComputed\\\",\\\"validateIfEmptyComputed\\\",\\\"equalToComputed\\\",\\\"checkedRangeMessage\\\",\\\"checkedRange\\\",\\\"maximumCheckedMessageComputed\\\",\\\"maximumChecked\\\",\\\"minimumCheckedMessageComputed\\\",\\\"minimumChecked\\\",\\\"patternMessage\\\",\\\"pattern\\\",\\\"rangeMessage\\\",\\\"range\\\",\\\"maximumValueMessageComputed\\\",\\\"maximumValue\\\",\\\"minimumValueMessageComputed\\\",\\\"minimumValue\\\",\\\"lengthMessage\\\",\\\"lengthRange\\\",\\\"maximumLengthMessageComputed\\\",\\\"maximumLength\\\",\\\"minimumLengthMessageComputed\\\",\\\"minimumLength\\\",\\\"typeMessage\\\",\\\"requiredMessage\\\",\\\"concat\\\",\\\"required\\\",\\\"htmlType\\\",\\\"labelType\\\",\\\"rows\\\",\\\"autofocus\\\",\\\"textarea\\\",\\\"showErrorMessage\\\",\\\"equalTo\\\",\\\"notEqualTo\\\",\\\"greaterTo\\\",\\\"greaterOrEqualTo\\\",\\\"lesserTo\\\",\\\"lesserOrEqualTo\\\",\\\"component\\\",\\\"hash\\\"]}\",\n    \"moduleName\": \"ember-mx/templates/components/mx-textarea.hbs\"\n  });\n});","define(\"ember-mx/test-helpers\", [\"exports\", \"@ember/test-helpers\"], function (_exports, _testHelpers) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.clickCheckbox = clickCheckbox;\n  _exports.clickRadio = clickRadio;\n  _exports.countOptions = countOptions;\n  _exports.getCurrentRoute = getCurrentRoute;\n  _exports.gts = _exports.getTestSelector = void 0;\n  _exports.isVisible = isVisible;\n  _exports.selectOptionByIndex = selectOptionByIndex;\n  _exports.waitForModalHidden = waitForModalHidden;\n  _exports.waitForModalVisible = waitForModalVisible;\n  0; //eaimeta@70e063a35619d71f0,\"rsvp\",0,\"@ember/test-helpers\"eaimeta@70e063a35619d71f\n  /**\n   * @param  {string} testAutomationId\n   * @return {string} The selector of the element whose ID is passed as a parameter\n   */\n\n  const getTestSelector = function (testAutomationId) {\n    return `[data-test-automation-id=\"${testAutomationId}\"]`;\n  };\n  _exports.getTestSelector = getTestSelector;\n  const gts = _exports.gts = getTestSelector;\n\n  /**\n   * @param  {string} containerSelector The container selector that wraps a list of radio buttons\n   * @param  {integer} index The position of the radio button that needs to be clicked in the list of available radio buttons\n   */\n  async function clickRadio(containerSelector, index) {\n    const selector = `${containerSelector} input[type='radio']`;\n    const domNode = document.querySelectorAll(selector)[index];\n    if (domNode && domNode.length === 0 || !domNode) {\n      throw Error(`[clickRadio] The DOM node (${selector}) has not been found`);\n    }\n    await (0, _testHelpers.click)(domNode);\n  }\n\n  /**\n   * @param  {string} containerSelector The container selector that wraps a list of checkboxes\n   * @param  {integer} index (default: 0) The position of the checkbox that needs to be clicked in the list of available checkboxes\n   */\n  async function clickCheckbox(containerSelector, index = 0) {\n    const selector = `${containerSelector} input[type='checkbox']`;\n    const domNode = document.querySelectorAll(selector)[index];\n    if (domNode && domNode.length === 0 || !domNode) {\n      throw Error(`[clickCheckbox] The DOM node (${selector}) has not been found`);\n    }\n    await (0, _testHelpers.click)(domNode);\n  }\n\n  /**\n   * @param  {string} containerSelector The container selector that wraps a <select> element with its <option>\n   * @param  {integer} index The position of the option in the list that must be selected\n   */\n  async function selectOptionByIndex(containerSelector, index) {\n    const selector = `${containerSelector} select`;\n    const domNode = document.querySelector(selector);\n    if (domNode && domNode.length === 0 || !domNode) {\n      throw Error(`[selectOptionByIndex] The DOM node (${selector}) has not been found`);\n    }\n    // Get the '<option>' corresponding to the provided index and retrieve its value\n    const optionElementValue = $(domNode).find('option').eq(index).attr('value');\n    // Use the regular helper to click on the right <option>\n    await (0, _testHelpers.fillIn)(domNode, optionElementValue);\n  }\n\n  /**\n   * @param  {string} containerSelector The container selector that wraps a <select> element with its <option>\n   * @return {integer} The number of <option> elements\n   */\n  function countOptions(containerSelector) {\n    const selector = `${containerSelector} select>option`;\n    const domNode = document.querySelectorAll(selector);\n    if (domNode && domNode.length === 0 || !domNode) {\n      throw Error(`[countOptions] The DOM node (${selector}) has not been found`);\n    }\n    return domNode.length;\n  }\n\n  /**\n   * @return {string} The URL without parameters\n   */\n  function getCurrentRoute() {\n    const url = (0, _testHelpers.currentURL)();\n    const urlWithNoParameters = url ? url.split('?') : '';\n    return urlWithNoParameters.length === 2 ? urlWithNoParameters[0] : url;\n  }\n\n  /**\n   * @param  {string} selector  The modal dialog selector\n   * @param  {string} elementSelectorToWaitFor  Optional. In some cases it is useful to specify the test automation selector\n   * of a DOM element that will need to appear in the DOM before the promise is resolved.\n   * @return {Promise} A promise that is resolved when the modal is available on the screen and can be interacted with\n   */\n  function waitForModalVisible(selector, elementSelectorToWaitFor = null) {\n    const domNode = document.querySelector(selector);\n    if (domNode && domNode.length === 0 || !domNode) {\n      throw Error(`[waitForModalVisible] The DOM node (${selector}) has not been found`);\n    }\n    if (!elementSelectorToWaitFor) {\n      return new Ember.RSVP.Promise(resolve => {\n        return $(selector).on('shown.bs.modal', function () {\n          resolve(true);\n        });\n      });\n    }\n    return new Ember.RSVP.Promise(async resolve => {\n      await (0, _testHelpers.waitFor)(`${selector}  ${elementSelectorToWaitFor}`);\n      resolve(true);\n    });\n  }\n\n  /**\n   * @param  {string} modalDialogSelector  The modal dialog selector\n   * @return {Promise} a Promise that is resolved when the modal has been hidden on the UI\n   */\n  function waitForModalHidden(selector) {\n    const domNode = document.querySelector(selector);\n    if (domNode && domNode.length === 0 || !domNode) {\n      throw Error(`[waitForModalHidden] The DOM node (${selector}) has not been found`);\n    }\n    return new Ember.RSVP.Promise(resolve => {\n      $(selector).on('hidden.bs.modal', function () {\n        resolve();\n      });\n    });\n  }\n\n  /**\n   * Determines if an element is visible on the screen (not in the viewport)\n   * Source: package qunit-dom => node_modules\\qunit-dom\\dist\\qunit-dom.js\n   * @param {string | Element} param a CSS selector (string) or a DOM Element\n   * @returns {boolean} `true` if the element is visible, `false` otherwise\n   */\n  function isVisible(param) {\n    let element = null;\n    if (typeof param === 'string') {\n      element = document.querySelector(param);\n    } else if (typeof param === Element) {\n      element = param;\n    }\n    if (element === null) return false;\n    if (element.offsetWidth === 0 || element.offsetHeight === 0) return false;\n    const clientRects = element.getClientRects();\n    if (clientRects.length === 0) return false;\n    for (let i = 0; i < clientRects.length; i++) {\n      const rect = clientRects[i];\n      if (rect.width !== 0 && rect.height !== 0) return true;\n    }\n    return false;\n  }\n});","/*\n * This is a stub file, it must be on disk b/c babel-plugin-debug-macros\n * does not strip the module require when the transpiled variable usage is\n * stripped.\n */\ndefine(\"ember-resolver/features\", [], function () {\n  \"use strict\";\n});","define(\"ember-resolver/index\", [\"exports\", \"ember-resolver/resolvers/classic\"], function (_exports, _classic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _classic.default;\n    }\n  });\n});","define(\"ember-resolver/resolver\", [\"exports\", \"ember-resolver/resolvers/classic\"], function (_exports, _classic) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _classic.default;\n    }\n  });\n});","define(\"ember-resolver/resolvers/classic/container-debug-adapter\", [\"exports\", \"ember-resolver/resolvers/classic/index\"], function (_exports, _index) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  function getPod(type, key, prefix) {\n    let match = key.match(new RegExp('^/?' + prefix + '/(.+)/' + type + '$'));\n    if (match !== null) {\n      return match[1];\n    }\n  }\n\n  /*\n   * This module defines a subclass of Ember.ContainerDebugAdapter that adds\n   * support for resolving from modules.\n   *\n   */\n  var _default = _exports.default = Ember.ContainerDebugAdapter.extend({\n    _moduleRegistry: null,\n    init() {\n      this._super(...arguments);\n      this.namespace = Ember.getOwner(this).lookup('application:main');\n      if (!this._moduleRegistry) {\n        this._moduleRegistry = new _index.ModuleRegistry();\n      }\n    },\n    /**\n        The container of the application being debugged.\n        This property will be injected\n        on creation.\n         @property container\n        @default null\n        */\n\n    /**\n        The resolver instance of the application\n        being debugged. This property will be injected\n        on creation.\n         @property resolver\n        @default null\n        */\n\n    /**\n        Returns true if it is possible to catalog a list of available\n        classes in the resolver for a given type.\n         @method canCatalogEntriesByType\n        @param {string} type The type. e.g. \"model\", \"controller\", \"route\"\n        @return {boolean} whether a list is available for this type.\n        */\n    canCatalogEntriesByType(type) {\n      if (type === 'model') {\n        return true;\n      }\n      return this._super(...arguments);\n    },\n    /**\n        Returns the available classes a given type.\n         @method catalogEntriesByType\n        @param {string} type The type. e.g. \"model\", \"controller\", \"route\"\n        @return {Array} An array of classes.\n        */\n    catalogEntriesByType(type) {\n      let moduleNames = this._moduleRegistry.moduleNames();\n      let types = Ember.A();\n      let prefix = this.namespace.modulePrefix;\n      for (let i = 0, l = moduleNames.length; i < l; i++) {\n        let key = moduleNames[i];\n        if (key.indexOf(type) !== -1) {\n          // Check if it's a pod module\n          let name = getPod(type, key, this.namespace.podModulePrefix || prefix);\n          if (!name) {\n            // Not pod\n            name = key.split(type + 's/').pop();\n\n            // Support for different prefix (such as ember-cli addons).\n            // Uncomment the code below when\n            // https://github.com/ember-cli/ember-resolver/pull/80 is merged.\n\n            //let match = key.match('^/?(.+)/' + type);\n            //if (match && match[1] !== prefix) {\n            // Different prefix such as an addon\n            //name = match[1] + '@' + name;\n            //}\n          }\n          types.addObject(name);\n        }\n      }\n      return types;\n    }\n  });\n});","define(\"ember-resolver/resolvers/classic/index\", [\"exports\", \"ember-resolver/utils/class-factory\"], function (_exports, _classFactory) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _exports.ModuleRegistry = void 0;\n  if (typeof requirejs.entries === 'undefined') {\n    requirejs.entries = requirejs._eak_seen;\n  }\n  class ModuleRegistry {\n    constructor(entries) {\n      this._entries = entries || requirejs.entries;\n    }\n    moduleNames() {\n      return Object.keys(this._entries);\n    }\n    has(moduleName) {\n      return moduleName in this._entries;\n    }\n    get(...args) {\n      return require(...args);\n    }\n  }\n\n  /**\n   * This module defines a subclass of Ember.DefaultResolver that adds two\n   * important features:\n   *\n   *  1) The resolver makes the container aware of es6 modules via the AMD\n   *     output. The loader's _moduleEntries is consulted so that classes can be\n   *     resolved directly via the module loader, without needing a manual\n   *     `import`.\n   *  2) is able to provide injections to classes that implement `extend`\n   *     (as is typical with Ember).\n   */\n  _exports.ModuleRegistry = ModuleRegistry;\n  function parseName(fullName) {\n    if (fullName.parsedName === true) {\n      return fullName;\n    }\n    let prefix, type, name;\n    let fullNameParts = fullName.split('@');\n    if (fullNameParts.length === 3) {\n      if (fullNameParts[0].length === 0) {\n        // leading scoped namespace: `@scope/pkg@type:name`\n        prefix = `@${fullNameParts[1]}`;\n        let prefixParts = fullNameParts[2].split(':');\n        type = prefixParts[0];\n        name = prefixParts[1];\n      } else {\n        // interweaved scoped namespace: `type:@scope/pkg@name`\n        prefix = `@${fullNameParts[1]}`;\n        type = fullNameParts[0].slice(0, -1);\n        name = fullNameParts[2];\n      }\n      if (type === 'template:components') {\n        name = `components/${name}`;\n        type = 'template';\n      }\n    } else if (fullNameParts.length === 2) {\n      let prefixParts = fullNameParts[0].split(':');\n      if (prefixParts.length === 2) {\n        if (prefixParts[1].length === 0) {\n          type = prefixParts[0];\n          name = `@${fullNameParts[1]}`;\n        } else {\n          prefix = prefixParts[1];\n          type = prefixParts[0];\n          name = fullNameParts[1];\n        }\n      } else {\n        let nameParts = fullNameParts[1].split(':');\n        prefix = fullNameParts[0];\n        type = nameParts[0];\n        name = nameParts[1];\n      }\n      if (type === 'template' && prefix.lastIndexOf('components/', 0) === 0) {\n        name = `components/${name}`;\n        prefix = prefix.slice(11);\n      }\n    } else {\n      fullNameParts = fullName.split(':');\n      type = fullNameParts[0];\n      name = fullNameParts[1];\n    }\n    let fullNameWithoutType = name;\n    let namespace = Ember.get(this, 'namespace');\n    let root = namespace;\n    return {\n      parsedName: true,\n      fullName: fullName,\n      prefix: prefix || this.prefix({\n        type: type\n      }),\n      type: type,\n      fullNameWithoutType: fullNameWithoutType,\n      name: name,\n      root: root,\n      resolveMethodName: \"resolve\" + Ember.String.classify(type)\n    };\n  }\n  function resolveOther(parsedName) {\n    (true && !(this.namespace.modulePrefix) && Ember.assert('`modulePrefix` must be defined', this.namespace.modulePrefix));\n    let normalizedModuleName = this.findModuleName(parsedName);\n    if (normalizedModuleName) {\n      let defaultExport = this._extractDefaultExport(normalizedModuleName, parsedName);\n      if (defaultExport === undefined) {\n        throw new Error(` Expected to find: '${parsedName.fullName}' within '${normalizedModuleName}' but got 'undefined'. Did you forget to 'export default' within '${normalizedModuleName}'?`);\n      }\n      if (this.shouldWrapInClassFactory(defaultExport, parsedName)) {\n        defaultExport = (0, _classFactory.default)(defaultExport);\n      }\n      return defaultExport;\n    }\n  }\n  const Resolver = Ember.Object.extend({\n    resolveOther,\n    parseName,\n    pluralizedTypes: null,\n    moduleRegistry: null,\n    makeToString(factory, fullName) {\n      return '' + this.namespace.modulePrefix + '@' + fullName + ':';\n    },\n    shouldWrapInClassFactory( /* module, parsedName */\n    ) {\n      return false;\n    },\n    init() {\n      this._super();\n      this.moduleBasedResolver = true;\n      if (!this._moduleRegistry) {\n        this._moduleRegistry = new ModuleRegistry();\n      }\n      this._normalizeCache = Object.create(null);\n      this.pluralizedTypes = this.pluralizedTypes || Object.create(null);\n      if (!this.pluralizedTypes.config) {\n        this.pluralizedTypes.config = 'config';\n      }\n      this._deprecatedPodModulePrefix = false;\n    },\n    normalize(fullName) {\n      return this._normalizeCache[fullName] || (this._normalizeCache[fullName] = this._normalize(fullName));\n    },\n    resolve(fullName) {\n      let parsedName = this.parseName(fullName);\n      let resolveMethodName = parsedName.resolveMethodName;\n      let resolved;\n      if (typeof this[resolveMethodName] === 'function') {\n        resolved = this[resolveMethodName](parsedName);\n      }\n      if (resolved == null) {\n        resolved = this.resolveOther(parsedName);\n      }\n      return resolved;\n    },\n    _normalize(fullName) {\n      // A) Convert underscores to dashes\n      // B) Convert camelCase to dash-case, except for components (their\n      //    templates) and helpers where we want to avoid shadowing camelCase\n      //    expressions\n      // C) replace `.` with `/` in order to make nested controllers work in the following cases\n      //      1. `needs: ['posts/post']`\n      //      2. `{{render \"posts/post\"}}`\n      //      3. `this.render('posts/post')` from Route\n\n      let split = fullName.split(':');\n      if (split.length > 1) {\n        let type = split[0];\n        if (type === 'component' || type === 'helper' || type === 'modifier' || type === 'template' && split[1].indexOf('components/') === 0) {\n          return type + ':' + split[1].replace(/_/g, '-');\n        } else {\n          return type + ':' + Ember.String.dasherize(split[1].replace(/\\./g, '/'));\n        }\n      } else {\n        return fullName;\n      }\n    },\n    pluralize(type) {\n      return this.pluralizedTypes[type] || (this.pluralizedTypes[type] = type + 's');\n    },\n    podBasedLookupWithPrefix(podPrefix, parsedName) {\n      let fullNameWithoutType = parsedName.fullNameWithoutType;\n      if (parsedName.type === 'template') {\n        fullNameWithoutType = fullNameWithoutType.replace(/^components\\//, '');\n      }\n      return podPrefix + '/' + fullNameWithoutType + '/' + parsedName.type;\n    },\n    podBasedModuleName(parsedName) {\n      let podPrefix = this.namespace.podModulePrefix || this.namespace.modulePrefix;\n      return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n    },\n    podBasedComponentsInSubdir(parsedName) {\n      let podPrefix = this.namespace.podModulePrefix || this.namespace.modulePrefix;\n      podPrefix = podPrefix + '/components';\n      if (parsedName.type === 'component' || /^components/.test(parsedName.fullNameWithoutType)) {\n        return this.podBasedLookupWithPrefix(podPrefix, parsedName);\n      }\n    },\n    resolveEngine(parsedName) {\n      let engineName = parsedName.fullNameWithoutType;\n      let engineModule = engineName + '/engine';\n      if (this._moduleRegistry.has(engineModule)) {\n        return this._extractDefaultExport(engineModule);\n      }\n    },\n    resolveRouteMap(parsedName) {\n      let engineName = parsedName.fullNameWithoutType;\n      let engineRoutesModule = engineName + '/routes';\n      if (this._moduleRegistry.has(engineRoutesModule)) {\n        let routeMap = this._extractDefaultExport(engineRoutesModule);\n        (true && !(routeMap.isRouteMap) && Ember.assert(`The route map for ${engineName} should be wrapped by 'buildRoutes' before exporting.`, routeMap.isRouteMap));\n        return routeMap;\n      }\n    },\n    resolveTemplate(parsedName) {\n      let resolved = this.resolveOther(parsedName);\n      if (resolved == null) {\n        resolved = Ember.TEMPLATES[parsedName.fullNameWithoutType];\n      }\n      return resolved;\n    },\n    mainModuleName(parsedName) {\n      if (parsedName.fullNameWithoutType === 'main') {\n        // if router:main or adapter:main look for a module with just the type first\n        return parsedName.prefix + '/' + parsedName.type;\n      }\n    },\n    defaultModuleName(parsedName) {\n      return parsedName.prefix + '/' + this.pluralize(parsedName.type) + '/' + parsedName.fullNameWithoutType;\n    },\n    nestedColocationComponentModuleName(parsedName) {\n      if (parsedName.type === 'component') {\n        return parsedName.prefix + '/' + this.pluralize(parsedName.type) + '/' + parsedName.fullNameWithoutType + '/index';\n      }\n    },\n    prefix(parsedName) {\n      let tmpPrefix = this.namespace.modulePrefix;\n      if (this.namespace[parsedName.type + 'Prefix']) {\n        tmpPrefix = this.namespace[parsedName.type + 'Prefix'];\n      }\n      return tmpPrefix;\n    },\n    /**\n      A listing of functions to test for moduleName's based on the provided\n     `parsedName`. This allows easy customization of additional module based\n     lookup patterns.\n      @property moduleNameLookupPatterns\n     @returns {Ember.Array}\n     */\n    moduleNameLookupPatterns: Ember.computed(function () {\n      return [this.podBasedModuleName, this.podBasedComponentsInSubdir, this.mainModuleName, this.defaultModuleName, this.nestedColocationComponentModuleName];\n    }).readOnly(),\n    findModuleName(parsedName, loggingDisabled) {\n      let moduleNameLookupPatterns = this.get('moduleNameLookupPatterns');\n      let moduleName;\n      for (let index = 0, length = moduleNameLookupPatterns.length; index < length; index++) {\n        let item = moduleNameLookupPatterns[index];\n        let tmpModuleName = item.call(this, parsedName);\n\n        // allow treat all dashed and all underscored as the same thing\n        // supports components with dashes and other stuff with underscores.\n        if (tmpModuleName) {\n          tmpModuleName = this.chooseModuleName(tmpModuleName, parsedName);\n        }\n        if (tmpModuleName && this._moduleRegistry.has(tmpModuleName)) {\n          moduleName = tmpModuleName;\n        }\n        if (!loggingDisabled) {\n          this._logLookup(moduleName, parsedName, tmpModuleName);\n        }\n        if (moduleName) {\n          return moduleName;\n        }\n      }\n    },\n    chooseModuleName(moduleName, parsedName) {\n      let underscoredModuleName = Ember.String.underscore(moduleName);\n      if (moduleName !== underscoredModuleName && this._moduleRegistry.has(moduleName) && this._moduleRegistry.has(underscoredModuleName)) {\n        throw new TypeError(`Ambiguous module names: '${moduleName}' and '${underscoredModuleName}'`);\n      }\n      if (this._moduleRegistry.has(moduleName)) {\n        return moduleName;\n      } else if (this._moduleRegistry.has(underscoredModuleName)) {\n        return underscoredModuleName;\n      }\n      // workaround for dasherized partials:\n      // something/something/-something => something/something/_something\n      let partializedModuleName = moduleName.replace(/\\/-([^/]*)$/, '/_$1');\n      if (this._moduleRegistry.has(partializedModuleName)) {\n        (true && !(false) && Ember.deprecate('Modules should not contain underscores. ' + 'Attempted to lookup \"' + moduleName + '\" which ' + 'was not found. Please rename \"' + partializedModuleName + '\" ' + 'to \"' + moduleName + '\" instead.', false, {\n          id: 'ember-resolver.underscored-modules',\n          until: '3.0.0',\n          for: 'ember-resolver',\n          since: '0.1.0'\n        }));\n        return partializedModuleName;\n      }\n      if (true /* DEBUG */) {\n        let isCamelCaseHelper = parsedName.type === 'helper' && /[a-z]+[A-Z]+/.test(moduleName);\n        if (isCamelCaseHelper) {\n          this._camelCaseHelperWarnedNames = this._camelCaseHelperWarnedNames || [];\n          let alreadyWarned = this._camelCaseHelperWarnedNames.indexOf(parsedName.fullName) > -1;\n          if (!alreadyWarned && this._moduleRegistry.has(Ember.String.dasherize(moduleName))) {\n            this._camelCaseHelperWarnedNames.push(parsedName.fullName);\n            (true && Ember.warn('Attempted to lookup \"' + parsedName.fullName + '\" which ' + 'was not found. In previous versions of ember-resolver, a bug would have ' + 'caused the module at \"' + Ember.String.dasherize(moduleName) + '\" to be ' + 'returned for this camel case helper name. This has been fixed. ' + 'Use the dasherized name to resolve the module that would have been ' + 'returned in previous versions.', false, {\n              id: 'ember-resolver.camelcase-helper-names',\n              until: '3.0.0'\n            }));\n          }\n        }\n      }\n    },\n    // used by Ember.DefaultResolver.prototype._logLookup\n    lookupDescription(fullName) {\n      let parsedName = this.parseName(fullName);\n      let moduleName = this.findModuleName(parsedName, true);\n      return moduleName;\n    },\n    // only needed until 1.6.0-beta.2 can be required\n    _logLookup(found, parsedName, description) {\n      if (!Ember.ENV.LOG_MODULE_RESOLVER && !parsedName.root.LOG_RESOLVER) {\n        return;\n      }\n      let padding;\n      let symbol = found ? '[✓]' : '[ ]';\n      if (parsedName.fullName.length > 60) {\n        padding = '.';\n      } else {\n        padding = new Array(60 - parsedName.fullName.length).join('.');\n      }\n      if (!description) {\n        description = this.lookupDescription(parsedName);\n      }\n\n      /* eslint-disable no-console */\n      if (console && console.info) {\n        console.info(symbol, parsedName.fullName, padding, description);\n      }\n    },\n    knownForType(type) {\n      let moduleKeys = this._moduleRegistry.moduleNames();\n      let items = Object.create(null);\n      for (let index = 0, length = moduleKeys.length; index < length; index++) {\n        let moduleName = moduleKeys[index];\n        let fullname = this.translateToContainerFullname(type, moduleName);\n        if (fullname) {\n          items[fullname] = true;\n        }\n      }\n      return items;\n    },\n    translateToContainerFullname(type, moduleName) {\n      let prefix = this.prefix({\n        type\n      });\n\n      // Note: using string manipulation here rather than regexes for better performance.\n      // pod modules\n      // '^' + prefix + '/(.+)/' + type + '$'\n      let podPrefix = prefix + '/';\n      let podSuffix = '/' + type;\n      let start = moduleName.indexOf(podPrefix);\n      let end = moduleName.indexOf(podSuffix);\n      if (start === 0 && end === moduleName.length - podSuffix.length && moduleName.length > podPrefix.length + podSuffix.length) {\n        return type + ':' + moduleName.slice(start + podPrefix.length, end);\n      }\n\n      // non-pod modules\n      // '^' + prefix + '/' + pluralizedType + '/(.+)$'\n      let pluralizedType = this.pluralize(type);\n      let nonPodPrefix = prefix + '/' + pluralizedType + '/';\n      if (moduleName.indexOf(nonPodPrefix) === 0 && moduleName.length > nonPodPrefix.length) {\n        return type + ':' + moduleName.slice(nonPodPrefix.length);\n      }\n    },\n    _extractDefaultExport(normalizedModuleName) {\n      let module = this._moduleRegistry.get(normalizedModuleName, null, null, true /* force sync */);\n      if (module && module['default']) {\n        module = module['default'];\n      }\n      return module;\n    }\n  });\n  Resolver.reopenClass({\n    moduleBasedResolver: true\n  });\n  var _default = _exports.default = Resolver;\n});","define(\"ember-resolver/utils/class-factory\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = classFactory;\n  function classFactory(klass) {\n    return {\n      create(injections) {\n        if (typeof klass.extend === 'function') {\n          return klass.extend(injections);\n        } else {\n          return klass;\n        }\n      }\n    };\n  }\n});","define(\"ember-responsive/helpers/media\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    init() {\n      this._super(...arguments);\n      this.get('media').on('mediaChanged', () => {\n        this.recompute();\n      });\n    },\n    media: Ember.inject.service(),\n    compute([prop]) {\n      return Ember.get(this, `media.${prop}`);\n    }\n  });\n});","define(\"ember-responsive/initializers/responsive\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  /**\n   * Ember responsive initializer\n   *\n   * Supports auto injecting media service app-wide.\n   * Generated by the ember-responsive addon.\n   */\n  function initialize(application) {\n    application.registerOptionsForType('breakpoints', {\n      instantiate: false\n    });\n  }\n  var _default = _exports.default = {\n    name: 'ember-responsive-breakpoints',\n    initialize\n  };\n});","define(\"ember-responsive/null-match-media\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  /**\n   * Stub function that is `matchMedia` API compatible but always returns\n   * `false`. Useful for server-side environments like FastBoot where there\n   * is no viewport.\n   */\n  function _default() {\n    return {\n      matches: false\n    };\n  }\n});","define(\"ember-responsive/services/media\", [\"exports\", \"ember-responsive/null-match-media\"], function (_exports, _nullMatchMedia) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n  * Handles detecting and responding to media queries.\n  *\n  * **Adding media query matchers**\n  *\n  * The first step to using the class is to add media queries that you\n  * want it to listen to. Each media query has a name that you can\n  * use to reference it by.\n  *\n  * ```javascript\n  * media = Ember.Responsive.Media.create();\n  * media.match('mobile', '(max-width: 767px)');\n  * media.match('desktop', '(min-width: 768px)');\n  * ```\n  *\n  * **Testing the media query matchers**\n  *\n  * Now that you've added a few matchers, you can access those media queries as\n  * if they were properties on your object. The nice thing is that whenever the\n  * media queries change, this class will automatically update the relevant\n  * properties (and so will the rest of your application, thanks to the power\n  * of two-way data-binding).\n  *\n  * ```javascript\n  * media = Ember.Responsive.Media.create();\n  * media.match('mobile', '(max-width: 767px)');\n  * media.match('desktop', '(min-width: 768px)');\n  *\n  * // There are convenient \"isser\" properties defined...\n  * if (media.get('isMobile')) {\n  *   console.log('mobile!');\n  * }\n  *\n  * // As well as access to the matchMedia API...\n  * if (media.get('desktop.matches')) {\n  *   console.log('desktop!');\n  * }\n  * ```\n  *\n  * **Retrieving a list of matching media queries**\n  *\n  * It's also nice to be able to see which media queries are matching, since\n  * some applications might have many matches at the same time.\n  *\n  * ```javascript\n  * media = Ember.Responsive.Media.create();\n  * media.match('desktop', 'all');\n  * media.match('mobile', 'all');\n  *\n  * console.log(media.get('matches'));\n  * // => Ember.Set(['desktop', 'mobile']);\n  * ```\n  *\n  * This class can also return that list as a string of dasherized class names,\n  * which is useful for placing on your app's rootElement. By default, these\n  * class names are prefixed with `media-`, so as not to clash with any other\n  * classes your app might use.\n  *\n  * ```javascript\n  * App.ApplicationView = Ember.View.extend({\n  *   classNameBindings: ['media.classNames']\n  * });\n  * ```\n  *\n  * @module    ember-responsive\n  * @namespace Ember.Responsive\n  * @class     Media\n  * @extends   Ember.Object\n  */\n  var _default = _exports.default = Ember.Service.extend(Ember.Evented, {\n    _mocked: Ember.testing,\n    _mockedBreakpoint: 'desktop',\n    /**\n    * A set of matching matchers.\n    *\n    * @property  matches\n    * @type      Ember.NativeArray\n    * @default   Ember.NativeArray\n    */\n    matches: Ember.computed(function () {\n      return Ember.A(this.get('_mocked') ? [this.get('_mockedBreakpoint')] : []);\n    }),\n    /**\n      * A hash of listeners indexed by their matcher's names\n      *\n      * @property\n      * @type Object\n      */\n    listeners: {},\n    /**\n     * A hash of matchers by breakpoint name\n     */\n    matchers: {},\n    /**\n    * The matcher to use for testing media queries.\n    *\n    * @property  matcher\n    * @type      matchMedia\n    * @default   window.matchMedia\n    * @private\n    */\n    mql: detectMatchMedia(),\n    /**\n     * Initialize the service based on the breakpoints config\n     *\n     * @method init\n     *\n     */\n    init() {\n      this._super(...arguments);\n      const owner = Ember.getOwner(this);\n      const breakpoints = Ember.getOwner(this).lookup('breakpoints:main');\n      if (breakpoints) {\n        Object.keys(breakpoints).forEach(name => {\n          const cpName = `is${Ember.String.classify(name)}`;\n          Ember.defineProperty(this, cpName, Ember.computed('matches.[]', function () {\n            return this.get('matches').indexOf(name) > -1;\n          }));\n          Ember.defineProperty(this, name, Ember.computed(cpName, function () {\n            return this.get(cpName);\n          }));\n          this.match(name, breakpoints[name]);\n        });\n      }\n    },\n    /**\n    * A string composed of all the matching matchers' names, turned into\n    * friendly, dasherized class-names that are prefixed with `media-`.\n    *\n    * @property  classNames\n    * @type      string\n    */\n    classNames: Ember.computed('matches.[]', function () {\n      return this.get('matches').map(function (name) {\n        return `media-${Ember.String.dasherize(name)}`;\n      }).join(' ');\n    }),\n    _triggerMediaChanged() {\n      this.trigger('mediaChanged', {});\n    },\n    _triggerEvent() {\n      Ember.run.once(this, this._triggerMediaChanged);\n    },\n    /**\n    * Adds a new matcher to the list.\n    *\n    * After this method is called, you will be able to access the result\n    * of the matcher as a property on this object.\n    *\n    * **Adding a new matcher**\n    *\n    * ```javascript\n    * media = Ember.Responsive.Media.create();\n    * media.match('all', 'all');\n    * media.get('all');\n    *   // => instanceof window.matchMedia\n    * media.get('all.matches');\n    *   // => true\n    * ```\n    *\n    * @param   string  name   The name of the matcher\n    * @param   string  query  The media query to match against\n    * @method  match\n    */\n    match(name, query) {\n      if (this.get('_mocked')) {\n        return;\n      }\n      const matcher = this.get('mql')(query);\n      const listener = matcher => {\n        if (this.get('isDestroyed')) {\n          return;\n        }\n        this.set(`matchers.${name}`, matcher);\n        if (matcher.matches) {\n          this.get('matches').addObject(name);\n        } else {\n          this.get('matches').removeObject(name);\n        }\n        this._triggerEvent();\n      };\n      this.get('listeners')[name] = listener;\n      if (matcher.addListener) {\n        matcher.addListener(function (matcher) {\n          Ember.run(null, listener, matcher);\n        });\n      }\n      listener(matcher);\n    }\n  });\n  function detectMatchMedia() {\n    if (typeof window === 'object' && window.matchMedia) {\n      return window.matchMedia;\n    }\n    return _nullMatchMedia.default;\n  }\n});","define(\"ember-test-waiters/build-waiter\", [\"exports\", \"ember-test-waiters\", \"ember-test-waiters/noop-test-waiter\"], function (_exports, _emberTestWaiters, _noopTestWaiter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = buildWaiter;\n  /**\n   * Builds and returns a test waiter. The type of the\n   * returned waiter is dependent on whether the app or\n   * addon is in `DEBUG` mode or not.\n   *\n   * @param name {string} The name of the test waiter\n   * @returns {ITestWaiter}\n   *\n   * @example\n   *\n   * import Component from '@ember/component';\n   * import { buildWaiter } from 'ember-test-waiters';\n   *\n   * if (DEBUG) {\n   *   let waiter = buildWaiter('friend-waiter');\n   * }\n   *\n   * export default class Friendz extends Component {\n   *   didInsertElement() {\n   *     let token = waiter.beginAsync(this);\n   *\n   *     someAsyncWork().then(() => {\n   *       waiter.endAsync(token);\n   *     });\n   *   }\n   * }\n   */\n  function buildWaiter(name) {\n    if (true /* DEBUG */) {\n      return new _emberTestWaiters.TestWaiter(name);\n    }\n    return new _noopTestWaiter.default(name);\n  }\n});","define(\"ember-test-waiters/index\", [\"exports\", \"ember-test-waiters/waiter-manager\", \"ember-test-waiters/test-waiter\", \"ember-test-waiters/build-waiter\", \"ember-test-waiters/wait-for-promise\"], function (_exports, _waiterManager, _testWaiter, _buildWaiter, _waitForPromise) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"TestWaiter\", {\n    enumerable: true,\n    get: function () {\n      return _testWaiter.default;\n    }\n  });\n  Object.defineProperty(_exports, \"_reset\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager._reset;\n    }\n  });\n  Object.defineProperty(_exports, \"buildWaiter\", {\n    enumerable: true,\n    get: function () {\n      return _buildWaiter.default;\n    }\n  });\n  Object.defineProperty(_exports, \"getPendingWaiterState\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.getPendingWaiterState;\n    }\n  });\n  Object.defineProperty(_exports, \"getWaiters\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.getWaiters;\n    }\n  });\n  Object.defineProperty(_exports, \"hasPendingWaiters\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.hasPendingWaiters;\n    }\n  });\n  Object.defineProperty(_exports, \"register\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.register;\n    }\n  });\n  Object.defineProperty(_exports, \"unregister\", {\n    enumerable: true,\n    get: function () {\n      return _waiterManager.unregister;\n    }\n  });\n  Object.defineProperty(_exports, \"waitForPromise\", {\n    enumerable: true,\n    get: function () {\n      return _waitForPromise.default;\n    }\n  });\n});","define(\"ember-test-waiters/noop-test-waiter\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  /**\n   * A class providing a production, noop replacement for the {TestWaiter<T>} class.\n   *\n   * @public\n   * @class TestWaiter<T>\n   */\n  class NoopTestWaiter {\n    constructor(name) {\n      this.name = name;\n    }\n    beginAsync() {\n      return this;\n    }\n    endAsync() {}\n    waitUntil() {\n      return true;\n    }\n    debugInfo() {\n      return [];\n    }\n    reset() {}\n  }\n  _exports.default = NoopTestWaiter;\n});","define(\"ember-test-waiters/test-waiter\", [\"exports\", \"ember-test-waiters/waiter-manager\"], function (_exports, _waiterManager) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let token = 0;\n  function getNextToken() {\n    return token++;\n  }\n  /**\n   * A class providing creation, registration and async waiting functionality.\n   *\n   * @public\n   * @class TestWaiter<T>\n   */\n  class TestWaiter {\n    /**\n     * @public\n     * @constructor\n     * @param name {WaiterName} the name of the test waiter\n     */\n    constructor(name, nextToken) {\n      this.isRegistered = false;\n      this.items = new Map();\n      this.name = name;\n      // @ts-ignore\n      this.nextToken = nextToken || getNextToken;\n    }\n    /**\n     * Will register the waiter, allowing it to be opted in to pausing async\n     * operations until they're completed within your tests. You should invoke\n     * it after instantiating your `TestWaiter` instance.\n     *\n     * **Note**, if you forget to register your waiter, it will be registered\n     * for you on the first invocation of `beginAsync`.\n     *\n     * @private\n     * @method register\n     */\n    register() {\n      if (!this.isRegistered) {\n        (0, _waiterManager.register)(this);\n        this.isRegistered = true;\n      }\n    }\n    /**\n     * Should be used to signal the beginning of an async operation that\n     * is to be waited for. Invocation of this method should be paired with a subsequent\n     * `endAsync` call to indicate to the waiter system that the async operation is completed.\n     *\n     * @public\n     * @method beginAsync\n     * @param item {T} The item to register for waiting\n     * @param label {string} An optional label to identify the item\n     */\n    beginAsync(token = this.nextToken(), label) {\n      this.register();\n      if (this.items.has(token)) {\n        throw new Error(`beginAsync called for ${token} but it is already pending.`);\n      }\n      let error = new Error();\n      this.items.set(token, {\n        get stack() {\n          return error.stack;\n        },\n        label\n      });\n      return token;\n    }\n    /**\n     * Should be used to signal the end of an async operation. Invocation of this\n     * method should be paired with a preceeding `beginAsync` call, which would indicate the\n     * beginning of an async operation.\n     *\n     * @public\n     * @method endAsync\n     * @param item {T} The item to that was registered for waiting\n     */\n    endAsync(token) {\n      if (!this.items.has(token)) {\n        throw new Error(`endAsync called for ${token} but it is not currently pending.`);\n      }\n      this.items.delete(token);\n    }\n    /**\n     * Used to determine if the waiter system should still wait for async\n     * operations to complete.\n     *\n     * @public\n     * @method waitUntil\n     * @returns {boolean}\n     */\n    waitUntil() {\n      return this.items.size === 0;\n    }\n    /**\n     * Returns the `debugInfo` for each item tracking async operations in this waiter.\n     *\n     * @public\n     * @method debugInfo\n     * @returns {ITestWaiterDebugInfo}\n     */\n    debugInfo() {\n      return [...this.items.values()];\n    }\n    /**\n     * Resets the waiter state, clearing items tracking async operations in this waiter.\n     *\n     * @public\n     * @method reset\n     */\n    reset() {\n      this.items.clear();\n    }\n  }\n  _exports.default = TestWaiter;\n});","define(\"ember-test-waiters/types/index\", [], function () {\n  \"use strict\";\n});","define(\"ember-test-waiters/wait-for-promise\", [\"exports\", \"ember-test-waiters/test-waiter\"], function (_exports, _testWaiter) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = waitForPromise;\n  const PROMISE_WAITER = new _testWaiter.default('promise-waiter');\n  /**\n   * A convenient utility function to simplify waiting for a promise.\n   *\n   * @public\n   * @param promise {Promise<T>} The promise to track async operations for\n   * @param label {string} An optional string to identify the promise\n   *\n   * @example\n   *\n   * import Component from '@ember/component';\n   * import { waitForPromise } from 'ember-test-waiters';\n   *\n   * export default class Friendz extends Component {\n   *   didInsertElement() {\n   *     waitForPromise(new Promise(resolve => {\n   *       doSomeWork();\n   *       resolve();\n   *     }));\n   *   }\n   * }\n   */\n  function waitForPromise(promise, label) {\n    let result = promise;\n    if (true /* DEBUG */) {\n      PROMISE_WAITER.beginAsync(promise, label);\n      result = promise.then(value => {\n        PROMISE_WAITER.endAsync(promise);\n        return value;\n      }, error => {\n        PROMISE_WAITER.endAsync(promise);\n        throw error;\n      });\n    }\n    return result;\n  }\n});","define(\"ember-test-waiters/waiter-manager\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports._reset = _reset;\n  _exports.getPendingWaiterState = getPendingWaiterState;\n  _exports.getWaiters = getWaiters;\n  _exports.hasPendingWaiters = hasPendingWaiters;\n  _exports.register = register;\n  _exports.unregister = unregister;\n  const WAITERS = new Map();\n  /**\n   * Backwards compatibility with legacy waiters system.\n   *\n   * We want to always register a waiter using the legacy waiter system, as right\n   * now if consumers are not on the right version of @ember/test-helpers, using\n   * this addon will result in none of these waiters waiting.\n   */\n  // eslint-disable-next-line ember/new-module-imports\n  if (Ember.Test) {\n    Ember.Test.registerWaiter(() => !hasPendingWaiters());\n  }\n  /**\n   * Registers a waiter.\n   *\n   * @public\n   * @param waiter {IWaiter} A test waiter instance\n   */\n  function register(waiter) {\n    WAITERS.set(waiter.name, waiter);\n  }\n  /**\n   * Unregisters a waiter.\n   *\n   * @public\n   * @param waiter {IWaiter} A test waiter instance\n   */\n  function unregister(waiter) {\n    WAITERS.delete(waiter.name);\n  }\n  /**\n   * Gets an array of all waiters current registered.\n   *\n   * @public\n   * @returns {IWaiter[]}\n   */\n  function getWaiters() {\n    return [...WAITERS.values()];\n  }\n  /**\n   * Clears all waiters.\n   *\n   * @public\n   */\n  function _reset() {\n    WAITERS.clear();\n  }\n  /**\n   * Gets the current state of all waiters. Any waiters whose\n   * `waitUntil` method returns false will be considered `pending`.\n   *\n   * @returns {IPendingWaiterState} An object containing a count of all waiters\n   * pending and a `waiters` object containing the name of all pending waiters\n   * and their debug info.\n   */\n  function getPendingWaiterState() {\n    let result = {\n      pending: 0,\n      waiters: {}\n    };\n    WAITERS.forEach(waiter => {\n      if (!waiter.waitUntil()) {\n        result.pending++;\n        let debugInfo = waiter.debugInfo();\n        result.waiters[waiter.name] = debugInfo || true;\n      }\n    });\n    return result;\n  }\n  /**\n   * Determines if there are any pending waiters.\n   *\n   * @returns {boolean} `true` if there are pending waiters, otherwise `false`.\n   */\n  function hasPendingWaiters() {\n    let state = getPendingWaiterState();\n    return state.pending > 0;\n  }\n});","define(\"ember-truth-helpers/helpers/and\", [\"exports\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.and = and;\n  _exports.default = void 0;\n  function and(params) {\n    for (let i = 0, len = params.length; i < len; i++) {\n      if ((0, _truthConvert.default)(params[i]) === false) {\n        return params[i];\n      }\n    }\n    return params[params.length - 1];\n  }\n  var _default = _exports.default = Ember.Helper.helper(and);\n});","define(\"ember-truth-helpers/helpers/eq\", [\"exports\", \"ember-truth-helpers/helpers/equal\"], function (_exports, _equal) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _equal.default;\n    }\n  });\n  Object.defineProperty(_exports, \"equal\", {\n    enumerable: true,\n    get: function () {\n      return _equal.equal;\n    }\n  });\n});","define(\"ember-truth-helpers/helpers/equal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.equal = equal;\n  function equal(params) {\n    return params[0] === params[1];\n  }\n  var _default = _exports.default = Ember.Helper.helper(equal);\n});","define(\"ember-truth-helpers/helpers/gt\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.gt = gt;\n  function gt([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n    return left > right;\n  }\n  var _default = _exports.default = Ember.Helper.helper(gt);\n});","define(\"ember-truth-helpers/helpers/gte\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.gte = gte;\n  function gte([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n    return left >= right;\n  }\n  var _default = _exports.default = Ember.Helper.helper(gte);\n});","define(\"ember-truth-helpers/helpers/is-array\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isArray = isArray;\n  function isArray(params) {\n    for (let i = 0, len = params.length; i < len; i++) {\n      if (Ember.isArray(params[i]) === false) {\n        return false;\n      }\n    }\n    return true;\n  }\n  var _default = _exports.default = Ember.Helper.helper(isArray);\n});","define(\"ember-truth-helpers/helpers/is-empty\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.helper(function ([obj]) {\n    return Ember.isEmpty(obj);\n  });\n});","define(\"ember-truth-helpers/helpers/is-equal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.isEqual = isEqual;\n  function isEqual([a, b]) {\n    return Ember.isEqual(a, b);\n  }\n  var _default = _exports.default = Ember.Helper.helper(isEqual);\n});","define(\"ember-truth-helpers/helpers/lt\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.lt = lt;\n  function lt([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n    return left < right;\n  }\n  var _default = _exports.default = Ember.Helper.helper(lt);\n});","define(\"ember-truth-helpers/helpers/lte\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.lte = lte;\n  function lte([left, right], hash) {\n    if (hash.forceNumber) {\n      if (typeof left !== 'number') {\n        left = Number(left);\n      }\n      if (typeof right !== 'number') {\n        right = Number(right);\n      }\n    }\n    return left <= right;\n  }\n  var _default = _exports.default = Ember.Helper.helper(lte);\n});","define(\"ember-truth-helpers/helpers/not-eq\", [\"exports\", \"ember-truth-helpers/helpers/not-equal\"], function (_exports, _notEqual) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"default\", {\n    enumerable: true,\n    get: function () {\n      return _notEqual.default;\n    }\n  });\n  Object.defineProperty(_exports, \"notEqualHelper\", {\n    enumerable: true,\n    get: function () {\n      return _notEqual.notEqualHelper;\n    }\n  });\n});","define(\"ember-truth-helpers/helpers/not-equal\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.notEqualHelper = notEqualHelper;\n  function notEqualHelper(params) {\n    return params[0] !== params[1];\n  }\n  var _default = _exports.default = Ember.Helper.helper(notEqualHelper);\n});","define(\"ember-truth-helpers/helpers/not\", [\"exports\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.not = not;\n  function not(params) {\n    for (let i = 0, len = params.length; i < len; i++) {\n      if ((0, _truthConvert.default)(params[i]) === true) {\n        return false;\n      }\n    }\n    return true;\n  }\n  var _default = _exports.default = Ember.Helper.helper(not);\n});","define(\"ember-truth-helpers/helpers/or\", [\"exports\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.or = or;\n  function or(params) {\n    for (let i = 0, len = params.length; i < len; i++) {\n      if ((0, _truthConvert.default)(params[i]) === true) {\n        return params[i];\n      }\n    }\n    return params[params.length - 1];\n  }\n  var _default = _exports.default = Ember.Helper.helper(or);\n});","define(\"ember-truth-helpers/helpers/xor\", [\"exports\", \"ember-truth-helpers/utils/truth-convert\"], function (_exports, _truthConvert) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.xor = xor;\n  function xor(params) {\n    return (0, _truthConvert.default)(params[0]) !== (0, _truthConvert.default)(params[1]);\n  }\n  var _default = _exports.default = Ember.Helper.helper(xor);\n});","define(\"ember-truth-helpers/utils/truth-convert\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = truthConvert;\n  function truthConvert(result) {\n    const truthy = result && Ember.get(result, 'isTruthy');\n    if (typeof truthy === 'boolean') {\n      return truthy;\n    }\n    if (Ember.isArray(result)) {\n      return Ember.get(result, 'length') !== 0;\n    } else {\n      return !!result;\n    }\n  }\n});","define(\"ember-useragent/helpers/user-agent\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Helper.extend({\n    userAgent: Ember.inject.service(),\n    compute([prop]) {\n      return Ember.get(this, `userAgent.${prop}`);\n    }\n  });\n});","define(\"ember-useragent/initializers/user-agent\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  /**\n   * Ember UserAgent initializer\n   *\n   * Supports auto injection of the userAgent service app-wide.\n   * Generated by the ember-useragent addon.\n   */\n  function initialize() {\n    const application = arguments[1] || arguments[0];\n    application.inject('controller', 'userAgent', 'service:userAgent');\n    application.inject('component', 'userAgent', 'service:userAgent');\n    application.inject('route', 'userAgent', 'service:userAgent');\n    application.inject('view', 'userAgent', 'service:userAgent');\n  }\n  var _default = _exports.default = {\n    name: 'user-agent',\n    initialize\n  };\n});","define(\"ember-useragent/instance-initializers/user-agent\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.initialize = initialize;\n  function getUserAgent(appInstance) {\n    if (typeof FastBoot === 'undefined') {\n      const userAgent = Ember.get(window, 'navigator.userAgent');\n      (true && !(userAgent) && Ember.assert('No `userAgent` present in window.navigator', userAgent));\n      return userAgent;\n    } else {\n      const fastboot = appInstance.lookup('service:fastboot');\n      const headers = Ember.get(fastboot, 'request.headers');\n      const userAgent = headers.get('user-agent');\n      (true && !(userAgent) && Ember.assert('No `user-agent` present in FastBoot headers.', userAgent));\n      return userAgent;\n    }\n  }\n  function initialize(appInstance) {\n    const service = appInstance.lookup('service:user-agent');\n    Ember.set(service, 'userAgent', getUserAgent(appInstance));\n  }\n  var _default = _exports.default = {\n    initialize\n  };\n});","define(\"ember-useragent/services/user-agent\", [\"exports\", \"ua-parser-js\"], function (_exports, _uaParserJs) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Service.extend({\n    _parser: Ember.computed({\n      get() {\n        if (this.__parser) {\n          return this.__parser;\n        } else {\n          return new _uaParserJs.default();\n        }\n      },\n      set(key, value) {\n        this.__parser = value;\n        return this.__parser;\n      }\n    }),\n    parser: Ember.computed('extensions', {\n      get() {\n        (true && !(false) && Ember.deprecate('Usage of the private property `parser` is deprecated. If you need to fiddle around with this private property, please open an issue and we can discuss.', false, {\n          id: 'ember-useragent.service.parser',\n          until: '1.0.0'\n        }));\n        return Ember.get(this, '_parser');\n      }\n    }).readOnly(),\n    UAParser: Ember.computed(function () {\n      (true && !(false) && Ember.deprecate('Usage of the property `UAParser` is deprecated. To get the UAParser class, import it as `import UAParser from \\'ua-parser-js\\';`. To get the instance of that class used by this service, as this property previously incorrectly returned, get the `parser` property.', false, {\n        id: 'ember-useragent.service.UAParser',\n        until: '1.0.0'\n      }));\n      return Ember.get(this, '_parser');\n    }),\n    userAgent: Ember.computed({\n      get() {\n        const parser = Ember.get(this, '_parser');\n        return parser.getUA();\n      },\n      set(key, value) {\n        const parser = Ember.get(this, '_parser');\n        parser.setUA(value);\n        Ember.set(this, '__parser', parser);\n        return value;\n      }\n    }),\n    fastboot: Ember.computed(function () {\n      (true && !(false) && Ember.deprecate('Usage of the private property `fastboot` is deprecated. Inject the `fastboot` service yourself instead.', false, {\n        id: 'ember-useragent.service.fastboot',\n        until: '1.0.0'\n      }));\n      return Ember.getOwner(this).lookup('service:fastboot');\n    }),\n    isFastBoot: Ember.computed(function () {\n      (true && !(false) && Ember.deprecate('Usage of the private property `isFastBoot` is deprecated. Inject the `fastboot` service yourself and get `fastboot.isFastBoot` instead.', false, {\n        id: 'ember-useragent.service.isFastBoot',\n        until: '1.0.0'\n      }));\n      const fastboot = Ember.getOwner(this).lookup('service:fastboot');\n      return Boolean(fastboot && Ember.get(fastboot, 'isFastBoot'));\n    }),\n    browser: Ember.computed('_parser', function () {\n      const browser = Ember.get(this, '_parser').getBrowser();\n      return {\n        info: browser,\n        isChrome: browser.name === 'Chrome',\n        isChromeHeadless: browser.name === 'Chrome Headless',\n        isEdge: browser.name === 'Edge',\n        isFirefox: browser.name === 'Firefox',\n        isIE: browser.name === 'IE' || browser.name === 'IE Mobile',\n        isSafari: browser.name === 'Safari' || browser.name === 'Mobile Safari'\n      };\n    }),\n    cpu: Ember.computed('_parser', function () {\n      return Ember.get(this, '_parser').getCPU();\n    }),\n    device: Ember.computed('_parser', function () {\n      const device = Ember.get(this, '_parser').getDevice();\n      return {\n        info: device,\n        isConsole: device.type === 'console',\n        isDesktop: !device.type,\n        isMobile: device.type === 'mobile',\n        isTablet: device.type === 'tablet'\n      };\n    }),\n    engine: Ember.computed('_parser', function () {\n      const engine = Ember.get(this, '_parser').getEngine();\n      return {\n        info: engine,\n        isWebkit: engine.name === 'WebKit'\n      };\n    }),\n    os: Ember.computed('_parser', function () {\n      const os = Ember.get(this, '_parser').getOS();\n      return {\n        info: os,\n        isAndroid: os.name === 'Android',\n        isIOS: os.name === 'iOS',\n        isLinux: ['CentOS', 'Fedora', 'Linpus', 'Linux', 'MeeGo', 'PCLinuxOS', 'RedHat', 'SUSE', 'Ubuntu', 'VectorLinux'].indexOf(os.name) > -1,\n        isMacOS: os.name === 'Mac OS',\n        isWindows: ['Windows', 'Windows Phone', 'Windows Mobile'].indexOf(os.name) > -1\n      };\n    }),\n    setupService() {\n      (true && !(false) && Ember.deprecate('Usage of the private method `setupService` is deprecated. To force an update, set the `userAgent` property.', false, {\n        id: 'ember-useragent.service.setupService',\n        until: '1.0.0'\n      }));\n      this.notifyPropertyChange('userAgent');\n    }\n  });\n});","define(\"ember-wormhole/components/ember-wormhole\", [\"exports\", \"ember-wormhole/templates/components/ember-wormhole\", \"ember-wormhole/utils/dom\"], function (_exports, _emberWormhole, _dom) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _emberWormhole.default,\n    /*\n     * Attrs\n     */\n    to: Ember.computed.alias('destinationElementId'),\n    destinationElementId: null,\n    destinationElement: null,\n    _destination: Ember.computed('destinationElement', 'destinationElementId', 'renderInPlace', function () {\n      let renderInPlace = this.get('renderInPlace');\n      if (renderInPlace) {\n        return this._element;\n      }\n      let destinationElement = this.get('destinationElement');\n      if (destinationElement) {\n        return destinationElement;\n      }\n      let destinationElementId = this.get('destinationElementId');\n      if (destinationElementId) {\n        return (0, _dom.findElementById)(this._dom, destinationElementId);\n      }\n      // no element found\n      return null;\n    }),\n    renderInPlace: false,\n    /*\n     * Lifecycle\n     */\n    init() {\n      this._super(...arguments);\n      this._dom = (0, _dom.getDOM)(this);\n\n      // Create text nodes used for the head, tail\n      this._wormholeHeadNode = this._dom.createTextNode('');\n      this._wormholeTailNode = this._dom.createTextNode('');\n\n      /*\n       * didInsertElement does not fire in Fastboot, so we schedule this in\n       * init to be run after render. Importantly, we want to run\n       * appendToDestination after the child nodes have rendered.\n       */\n      Ember.run.schedule('afterRender', () => {\n        if (this.isDestroyed) {\n          return;\n        }\n        this._element = this._wormholeHeadNode.parentNode;\n        if (!this._element) {\n          throw new Error('The head node of a wormhole must be attached to the DOM');\n        }\n        this._appendToDestination();\n      });\n    },\n    willDestroyElement: function () {\n      // not called in fastboot\n      this._super(...arguments);\n      let {\n        _wormholeHeadNode,\n        _wormholeTailNode\n      } = this;\n      Ember.run.schedule('render', () => {\n        this._removeRange(_wormholeHeadNode, _wormholeTailNode);\n      });\n    },\n    _destinationDidChange: Ember.observer('_destination', function () {\n      var destinationElement = this.get('_destination');\n      if (destinationElement !== this._wormholeHeadNode.parentNode) {\n        Ember.run.schedule('render', this, '_appendToDestination');\n      }\n    }),\n    _appendToDestination() {\n      var destinationElement = this.get('_destination');\n      if (!destinationElement) {\n        var destinationElementId = this.get('destinationElementId');\n        if (destinationElementId) {\n          throw new Error(`ember-wormhole failed to render into '#${destinationElementId}' because the element is not in the DOM`);\n        }\n        throw new Error('ember-wormhole failed to render content because the destinationElementId was set to an undefined or falsy value.');\n      }\n      let startingActiveElement = (0, _dom.getActiveElement)();\n      this._appendRange(destinationElement, this._wormholeHeadNode, this._wormholeTailNode);\n      let resultingActiveElement = (0, _dom.getActiveElement)();\n      if (startingActiveElement && resultingActiveElement !== startingActiveElement) {\n        startingActiveElement.focus();\n      }\n    },\n    _appendRange(destinationElement, firstNode, lastNode) {\n      while (firstNode) {\n        destinationElement.insertBefore(firstNode, null);\n        firstNode = firstNode !== lastNode ? lastNode.parentNode.firstChild : null;\n      }\n    },\n    _removeRange(firstNode, lastNode) {\n      var node = lastNode;\n      do {\n        var next = node.previousSibling;\n        if (node.parentNode) {\n          node.parentNode.removeChild(node);\n          if (node === firstNode) {\n            break;\n          }\n        }\n        node = next;\n      } while (node);\n    }\n  });\n});","define(\"ember-wormhole/templates/components/ember-wormhole\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template({\n    \"id\": \"JY/UZphM\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[1,[30,[36,0],[[32,0,[\\\"_wormholeHeadNode\\\"]]],null]],[18,1,null],[1,[30,[36,0],[[32,0,[\\\"_wormholeTailNode\\\"]]],null]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"unbound\\\"]}\",\n    \"moduleName\": \"ember-wormhole/templates/components/ember-wormhole.hbs\"\n  });\n});","define(\"ember-wormhole/utils/dom\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.findElementById = findElementById;\n  _exports.getActiveElement = getActiveElement;\n  _exports.getDOM = getDOM;\n  function getActiveElement() {\n    if (typeof document === 'undefined') {\n      return null;\n    } else {\n      return document.activeElement;\n    }\n  }\n  function childNodesOfElement(element) {\n    let children = [];\n    let child = element.firstChild;\n    while (child) {\n      children.push(child);\n      child = child.nextSibling;\n    }\n    return children;\n  }\n  function findElementById(doc, id) {\n    if (doc.getElementById) {\n      return doc.getElementById(id);\n    }\n    let nodes = childNodesOfElement(doc);\n    let node;\n    while (nodes.length) {\n      node = nodes.shift();\n      if (node.getAttribute && node.getAttribute('id') === id) {\n        return node;\n      }\n      nodes = childNodesOfElement(node).concat(nodes);\n    }\n  }\n\n  // Private Ember API usage. Get the dom implementation used by the current\n  // renderer, be it native browser DOM or Fastboot SimpleDOM\n  function getDOM(context) {\n    let {\n      renderer\n    } = context;\n    if (!renderer._dom) {\n      // pre glimmer2\n      let container = Ember.getOwner ? Ember.getOwner(context) : context.container;\n      let documentService = container.lookup('service:-document');\n      if (documentService) {\n        return documentService;\n      }\n      renderer = container.lookup('renderer:-dom');\n    }\n    if (renderer._dom && renderer._dom.document) {\n      // pre Ember 2.6\n      return renderer._dom.document;\n    } else {\n      throw new Error('ember-wormhole could not get DOM');\n    }\n  }\n});","define(\"liquid-fire/action\", [\"exports\", \"liquid-fire/promise\"], function (_exports, _promise) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class Action {\n    constructor(nameOrHandler, args = [], opts = {}) {\n      if (typeof nameOrHandler === 'function') {\n        this.handler = nameOrHandler;\n      } else {\n        this.name = nameOrHandler;\n      }\n      this.reversed = opts.reversed;\n      this.args = args;\n    }\n    validateHandler(transitionMap) {\n      if (!this.handler) {\n        this.handler = transitionMap.lookup(this.name);\n      }\n    }\n    run(context) {\n      return new _promise.default((resolve, reject) => {\n        _promise.default.resolve(this.handler.apply(context, this.args)).then(resolve, reject);\n      });\n    }\n  }\n  _exports.default = Action;\n});","define(\"liquid-fire/animate\", [\"exports\", \"liquid-fire/promise\", \"velocity\"], function (_exports, _promise, _velocity) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.animate = animate;\n  _exports.finish = finish;\n  _exports.isAnimating = isAnimating;\n  _exports.setDefaults = setDefaults;\n  _exports.stop = stop;\n  _exports.timeRemaining = timeRemaining;\n  _exports.timeSpent = timeSpent;\n  /* jshint newcap: false */\n\n  // Make sure Velocity always has promise support by injecting our own\n  // RSVP-based implementation if it doesn't already have one.\n  if (!_velocity.default.Promise) {\n    _velocity.default.Promise = _promise.default;\n  }\n\n  // Velocity's tick() defaults to RAF's high resolution timestamp. If the browser\n  // is under high stress the RAF timestamp may have a significant offset which\n  // can result in dropping a large chunk of frames. Because of this, the use of\n  // the RAF timestamp should be opt-in.\n  _velocity.default.timestamp = false;\n  function animate(elt, props, opts, label) {\n    // These numbers are just sane defaults in the probably-impossible\n    // case where somebody tries to read our state before the first\n    // 'progress' callback has fired.\n    let state = {\n      percentComplete: 0,\n      timeRemaining: 100,\n      timeSpent: 0\n    };\n    if (!elt || elt.length === 0) {\n      return _promise.default.resolve();\n    }\n    if (!opts) {\n      opts = {};\n    } else {\n      opts = {\n        ...opts\n      };\n    }\n\n    // By default, we ask velocity to clear the element's `display`\n    // and `visibility` properties at the start of animation. Our\n    // animated divs are all initially rendered with `display:none`\n    // and `visibility:hidden` to prevent a flash of before-animated\n    // content.\n    if (typeof opts.display === 'undefined') {\n      opts.display = '';\n    }\n    if (typeof opts.visibility === 'undefined') {\n      opts.visibility = '';\n    }\n    if (opts.progress) {\n      throw new Error(\"liquid-fire's 'animate' function reserves the use of Velocity's 'progress' option for its own nefarious purposes.\");\n    }\n    opts.progress = function () {\n      state.percentComplete = arguments[1];\n      state.timeRemaining = arguments[2];\n      state.timeSpent = state.timeRemaining / (1 / state.percentComplete - 1);\n    };\n    state.promise = _promise.default.resolve(_velocity.default.animate(elt[0], props, opts));\n    if (label) {\n      state.promise = state.promise.then(function () {\n        clearLabel(elt, label);\n      }, function (err) {\n        clearLabel(elt, label);\n        throw err;\n      });\n      applyLabel(elt, label, state);\n    }\n    return state.promise;\n  }\n  function stop(elt) {\n    if (elt) {\n      (0, _velocity.default)(elt[0], 'stop', true);\n    }\n  }\n  function setDefaults(props) {\n    for (let key in props) {\n      if (props.hasOwnProperty(key)) {\n        if (key === 'progress') {\n          throw new Error(\"liquid-fire's 'animate' function reserves the use of Velocity's '\" + key + \"' option for its own nefarious purposes.\");\n        }\n        _velocity.default.defaults[key] = props[key];\n      }\n    }\n  }\n  function isAnimating(elt, animationLabel) {\n    return elt && elt.data('lfTags_' + animationLabel);\n  }\n  function finish(elt, animationLabel) {\n    return stateForLabel(elt, animationLabel).promise;\n  }\n  function timeSpent(elt, animationLabel) {\n    return stateForLabel(elt, animationLabel).timeSpent;\n  }\n  function timeRemaining(elt, animationLabel) {\n    return stateForLabel(elt, animationLabel).timeRemaining;\n  }\n  function stateForLabel(elt, label) {\n    let state = isAnimating(elt, label);\n    if (!state) {\n      throw new Error('no animation labeled ' + label + ' is in progress');\n    }\n    return state;\n  }\n  function applyLabel(elt, label, state) {\n    if (elt) {\n      elt.data('lfTags_' + label, state);\n    }\n  }\n  function clearLabel(elt, label) {\n    if (elt) {\n      elt.data('lfTags_' + label, null);\n    }\n  }\n});","define(\"liquid-fire/components/illiquid-model\", [\"exports\", \"liquid-fire/templates/components/illiquid-model\"], function (_exports, _illiquidModel) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  const IlliquidModel = Ember.Component.extend({\n    layout: _illiquidModel.default,\n    tagName: '',\n    didReceiveAttrs() {\n      this._super();\n      if (!this._fixedModel) {\n        this.set('_fixedModel', this.model);\n      }\n    }\n  });\n  IlliquidModel.reopenClass({\n    positionalParams: ['model']\n  });\n  var _default = _exports.default = IlliquidModel;\n});","define(\"liquid-fire/components/lf-get-outlet-state\", [\"exports\", \"liquid-fire/templates/components/get-outlet-state\"], function (_exports, _getOutletState) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    tagName: '',\n    layout: _getOutletState.default\n  });\n});","define(\"liquid-fire/components/liquid-bind\", [\"exports\", \"liquid-fire/templates/components/liquid-bind\"], function (_exports, _liquidBind) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let LiquidBind = Ember.Component.extend({\n    layout: _liquidBind.default,\n    tagName: '',\n    positionalParams: ['value'],\n    // needed for Ember 1.13.[0-5] and 2.0.0-beta.[1-3] support\n    forwardMatchContext: Ember.computed('matchContext', function () {\n      let m = this.matchContext;\n      if (!m) {\n        m = {};\n      }\n      if (!m.helperName) {\n        m.helperName = 'liquid-bind';\n      }\n      return m;\n    })\n  });\n  LiquidBind.reopenClass({\n    positionalParams: ['value']\n  });\n  var _default = _exports.default = LiquidBind;\n});","define(\"liquid-fire/components/liquid-child\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    classNames: ['liquid-child'],\n    init() {\n      this._super(...arguments);\n      this._waitingFor = [];\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      if (this.element) {\n        this.element.style.visibility = 'hidden';\n      }\n      this._waitForAll().then(() => {\n        if (!this.isDestroying) {\n          this._waitingFor = null;\n          const didRenderAction = this.liquidChildDidRender;\n          if (typeof didRenderAction === 'function') {\n            didRenderAction(this);\n          }\n        }\n      });\n    },\n    _isLiquidChild: true,\n    _waitForMe(promise) {\n      if (!this._waitingFor) {\n        return;\n      }\n      this._waitingFor.push(promise);\n      let ancestor = this.nearestWithProperty('_isLiquidChild');\n      if (ancestor) {\n        ancestor._waitForMe(promise);\n      }\n    },\n    _waitForAll() {\n      const promises = this._waitingFor;\n      this._waitingFor = [];\n      return Ember.RSVP.Promise.all(promises).then(() => {\n        if (this._waitingFor.length > 0) {\n          return this._waitForAll();\n        }\n      });\n    }\n  });\n});","define(\"liquid-fire/components/liquid-container\", [\"exports\", \"liquid-fire/mixins/growable\", \"liquid-fire/components/liquid-measured\", \"liquid-fire/templates/components/liquid-container\", \"jquery\"], function (_exports, _growable, _liquidMeasured, _liquidContainer, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_growable.default, {\n    layout: _liquidContainer.default,\n    classNames: ['liquid-container'],\n    lockSize(elt, want) {\n      elt.outerWidth(want.width);\n      elt.outerHeight(want.height);\n    },\n    unlockSize() {\n      let doUnlock = () => {\n        this.updateAnimatingClass(false);\n        if (this.element) {\n          this.element.style.width = '';\n          this.element.style.height = '';\n        }\n      };\n      if (this._scaling) {\n        this._scaling.then(doUnlock);\n      } else {\n        doUnlock();\n      }\n    },\n    // We're doing this manually instead of via classNameBindings\n    // because it depends on upward-data-flow, which generates warnings\n    // under Glimmer.\n    updateAnimatingClass(on) {\n      if (this.isDestroyed) {\n        return;\n      }\n      if (on) {\n        this.element.classList.add('liquid-animating');\n      } else {\n        this.element.classList.remove('liquid-animating');\n      }\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      this._wasInserted = true;\n    },\n    actions: {\n      willTransition(versions) {\n        if (!this._wasInserted) {\n          return;\n        }\n\n        // Remember our own size before anything changes\n        let elt = (0, _jquery.default)(this.element);\n        this._cachedSize = (0, _liquidMeasured.measure)(elt);\n\n        // And make any children absolutely positioned with fixed sizes.\n        for (let i = 0; i < versions.length; i++) {\n          goAbsolute(versions[i]);\n        }\n      },\n      afterChildInsertion(versions) {\n        let elt = (0, _jquery.default)(this.element);\n        let enableGrowth = this.enableGrowth !== false;\n\n        // Measure children\n        let sizes = [];\n        for (let i = 0; i < versions.length; i++) {\n          if (versions[i].view) {\n            let childElt = (0, _jquery.default)(versions[i].view.element);\n            sizes[i] = (0, _liquidMeasured.measure)(childElt);\n          }\n        }\n\n        // Measure ourself again to see how big the new children make\n        // us.\n        let want = (0, _liquidMeasured.measure)(elt);\n        let have = this._cachedSize || want;\n\n        // Make ourself absolute\n        if (enableGrowth) {\n          this.lockSize(elt, have);\n        } else {\n          this.lockSize(elt, {\n            height: Math.max(want.height, have.height),\n            width: Math.max(want.width, have.width)\n          });\n        }\n\n        // Apply '.liquid-animating' to liquid-container allowing\n        // any customizable CSS control while an animating is occuring\n        this.updateAnimatingClass(true);\n\n        // Make the children absolute and fixed size.\n        for (let i = 0; i < versions.length; i++) {\n          goAbsolute(versions[i], sizes[i]);\n        }\n\n        // Kick off our growth animation\n        if (enableGrowth) {\n          this._scaling = this.animateGrowth(elt, have, want);\n        }\n      },\n      afterTransition(versions) {\n        for (let i = 0; i < versions.length; i++) {\n          goStatic(versions[i]);\n        }\n        this.unlockSize();\n      }\n    }\n  });\n  function goAbsolute(version, size) {\n    if (!version.view) {\n      return;\n    }\n    let elt = (0, _jquery.default)(version.view.element);\n    let pos = elt.position();\n    if (!size) {\n      size = (0, _liquidMeasured.measure)(elt);\n    }\n    elt.outerWidth(size.width);\n    elt.outerHeight(size.height);\n    elt.css({\n      position: 'absolute',\n      top: pos.top,\n      left: pos.left\n    });\n  }\n  function goStatic(version) {\n    if (version.view && !version.view.isDestroyed) {\n      let elt = (0, _jquery.default)(version.view.element);\n      elt.css({\n        width: '',\n        height: '',\n        position: ''\n      });\n    }\n  }\n});","define(\"liquid-fire/components/liquid-if\", [\"exports\", \"liquid-fire/templates/components/liquid-if\"], function (_exports, _liquidIf) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let LiquidIf = Ember.Component.extend({\n    positionalParams: ['predicate'],\n    // needed for Ember 1.13.[0-5] and 2.0.0-beta.[1-3] support\n    layout: _liquidIf.default,\n    tagName: '',\n    helperName: 'liquid-if'\n  });\n  LiquidIf.reopenClass({\n    positionalParams: ['predicate']\n  });\n  var _default = _exports.default = LiquidIf;\n});","define(\"liquid-fire/components/liquid-measured\", [\"exports\", \"liquid-fire/mutation-observer\", \"liquid-fire/templates/components/liquid-measured\", \"jquery\"], function (_exports, _mutationObserver, _liquidMeasured, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.measure = measure;\n  const WINDOW_RESIZE_THROTTLE_DURATION = 100;\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _liquidMeasured.default,\n    init() {\n      this._super(...arguments);\n      this._destroyOnUnload = this._destroyOnUnload.bind(this);\n    },\n    didInsertElement() {\n      this._super(...arguments);\n      let self = this;\n\n      // This prevents margin collapse\n      this.element.style.overflow = 'auto';\n      this.didMutate();\n      this.observer = new _mutationObserver.default(function (mutations) {\n        self.didMutate(mutations);\n      });\n      this.observer.observe(this.element, {\n        attributes: true,\n        subtree: true,\n        childList: true,\n        characterData: true\n      });\n      this.windowResizeHandler = this.windowDidResize.bind(this);\n      window.addEventListener('resize', this.windowResizeHandler);\n      let elt = (0, _jquery.default)(this.element);\n      elt.bind('webkitTransitionEnd', function () {\n        self.didMutate();\n      });\n      // Chrome Memory Leak: https://bugs.webkit.org/show_bug.cgi?id=93661\n      window.addEventListener('unload', this._destroyOnUnload);\n    },\n    willDestroyElement() {\n      this._super(...arguments);\n      if (this.observer) {\n        this.observer.disconnect();\n      }\n      window.removeEventListener('resize', this.windowResizeHandler);\n      window.removeEventListener('unload', this._destroyOnUnload);\n    },\n    transitionMap: Ember.inject.service('liquid-fire-transitions'),\n    didMutate() {\n      // by incrementing the running transitions counter here we prevent\n      // tests from falling through the gap between the time they\n      // triggered mutation the time we may actually animate in\n      // response.\n      let tmap = this.transitionMap;\n      tmap.incrementRunningTransitions();\n      Ember.run.next(this, function () {\n        this._didMutate();\n        tmap.decrementRunningTransitions();\n      });\n    },\n    windowDidResize() {\n      Ember.run.throttle(this, this.didMutate, WINDOW_RESIZE_THROTTLE_DURATION);\n    },\n    _didMutate() {\n      if (!this.element) {\n        return;\n      }\n      let elt = (0, _jquery.default)(this.element);\n      this.didMeasure(measure(elt));\n    },\n    _destroyOnUnload() {\n      this.willDestroyElement();\n    }\n  });\n  function measure($elt) {\n    let boundingRect = $elt[0].getBoundingClientRect();\n\n    // Calculate the scaling.\n    // NOTE: We only handle the simple zoom case.\n    let claimedWidth = $elt[0].offsetWidth;\n\n    // Round the width because offsetWidth is rounded\n    let actualWidth = Math.round(boundingRect.width);\n    let scale = actualWidth > 0 ? claimedWidth / actualWidth : 0;\n    return {\n      width: boundingRect.width * scale,\n      height: boundingRect.height * scale\n    };\n  }\n});","define(\"liquid-fire/components/liquid-outlet\", [\"exports\", \"liquid-fire/templates/components/liquid-outlet\", \"liquid-fire/ember-internals\"], function (_exports, _liquidOutlet, _emberInternals) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let LiquidOutlet = Ember.Component.extend({\n    layout: _liquidOutlet.default,\n    positionalParams: ['inputOutletName'],\n    // needed for Ember 1.13.[0-5] and 2.0.0-beta.[1-3] support\n    tagName: '',\n    versionEquality: Ember.computed('outletName', 'watchModels', function () {\n      let outletName = this.outletName;\n      let watchModels = this.watchModels;\n      return function (oldValue, newValue) {\n        let oldChild = (0, _emberInternals.childRoute)(oldValue, outletName);\n        let newChild = (0, _emberInternals.childRoute)(newValue, outletName);\n        return (0, _emberInternals.routeIsStable)(oldChild, newChild) && (!watchModels || (0, _emberInternals.modelIsStable)(oldChild, newChild));\n      };\n    }),\n    didReceiveAttrs() {\n      this._super(...arguments);\n      this.set('outletName', this.inputOutletName || 'main');\n    }\n  });\n  LiquidOutlet.reopenClass({\n    positionalParams: ['inputOutletName']\n  });\n  var _default = _exports.default = LiquidOutlet;\n});","define(\"liquid-fire/components/liquid-spacer\", [\"exports\", \"liquid-fire/components/liquid-measured\", \"liquid-fire/mixins/growable\", \"liquid-fire/templates/components/liquid-spacer\", \"jquery\"], function (_exports, _liquidMeasured, _growable, _liquidSpacer, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_growable.default, {\n    layout: _liquidSpacer.default,\n    enabled: true,\n    didInsertElement() {\n      this._super(...arguments);\n      let elt = (0, _jquery.default)(this.element);\n      let child = elt.find('> div');\n      let measurements = this.myMeasurements((0, _liquidMeasured.measure)(child));\n      this.element.style.overflow = 'hidden';\n      if (this.growWidth) {\n        elt.outerWidth(measurements.width);\n      }\n      if (this.growHeight) {\n        elt.outerHeight(measurements.height);\n      }\n    },\n    sizeChanged(measurements) {\n      if (!this.enabled) {\n        return;\n      }\n      if (!this.element) {\n        return;\n      }\n      let want = this.myMeasurements(measurements);\n      let elt = (0, _jquery.default)(this.element);\n      let have = (0, _liquidMeasured.measure)(elt);\n      this.animateGrowth(elt, have, want);\n    },\n    // given our child's outerWidth & outerHeight, figure out what our\n    // outerWidth & outerHeight should be.\n    myMeasurements(childMeasurements) {\n      let elt = (0, _jquery.default)(this.element);\n      return {\n        width: childMeasurements.width + sumCSS(elt, padding('width')) + sumCSS(elt, border('width')),\n        height: childMeasurements.height + sumCSS(elt, padding('height')) + sumCSS(elt, border('height'))\n      };\n    }\n  });\n  function sides(dimension) {\n    return dimension === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];\n  }\n  function padding(dimension) {\n    let s = sides(dimension);\n    return ['padding' + s[0], 'padding' + s[1]];\n  }\n  function border(dimension) {\n    let s = sides(dimension);\n    return ['border' + s[0] + 'Width', 'border' + s[1] + 'Width'];\n  }\n  function sumCSS(elt, fields) {\n    let accum = 0;\n    for (let i = 0; i < fields.length; i++) {\n      let num = parseFloat(elt.css(fields[i]), 10);\n      if (!isNaN(num)) {\n        accum += num;\n      }\n    }\n    return accum;\n  }\n});","define(\"liquid-fire/components/liquid-sync\", [\"exports\", \"liquid-fire/templates/components/liquid-sync\", \"liquid-fire/mixins/pausable\"], function (_exports, _liquidSync, _pausable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend(_pausable.default, {\n    tagName: '',\n    layout: _liquidSync.default,\n    didInsertElement() {\n      this._super(...arguments);\n      this.pauseLiquidFire();\n    },\n    actions: {\n      ready() {\n        this.resumeLiquidFire();\n      }\n    }\n  });\n});","define(\"liquid-fire/components/liquid-unless\", [\"exports\", \"liquid-fire/components/liquid-if\"], function (_exports, _liquidIf) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = _liquidIf.default.extend({\n    helperName: 'liquid-unless',\n    inverted: true\n  });\n});","define(\"liquid-fire/components/liquid-versions\", [\"exports\", \"jquery\", \"liquid-fire/ember-internals\", \"liquid-fire/templates/components/liquid-versions\"], function (_exports, _jquery, _emberInternals, _liquidVersions) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Component.extend({\n    layout: _liquidVersions.default,\n    tagName: '',\n    transitionMap: Ember.inject.service('liquid-fire-transitions'),\n    didReceiveAttrs() {\n      this._super(...arguments);\n      this.appendVersion();\n    },\n    appendVersion() {\n      let versions = this.versions;\n      let firstTime = false;\n      let newValue = this.getAttr('value');\n      let oldValue;\n      let versionEquality = this.versionEquality || defaultEqualityCheck;\n      if (!versions) {\n        firstTime = true;\n        versions = Ember.A();\n      } else {\n        if (versions[0]) {\n          oldValue = versions[0].value;\n        }\n      }\n      if (!firstTime && versionEquality(oldValue, newValue)) {\n        if (versions[0] && versionEquality !== defaultEqualityCheck) {\n          // When using custom equality checkers, we may consider values\n          // equal for our purposes that are not `===`. In that case, we\n          // still need to thread updated values through to our children\n          // so they have their own opportunity to react.\n          Ember.set(versions[0], 'value', newValue);\n        }\n        return;\n      }\n      this.notifyContainer('willTransition', versions);\n      let newVersion = {\n        value: newValue\n      };\n      versions.unshiftObject(newVersion);\n      this.firstTime = firstTime;\n      if (firstTime) {\n        Ember.set(this, 'versions', versions);\n      }\n      if (!(newValue || this.renderWhenFalse || firstTime)) {\n        this._transition();\n      }\n    },\n    _transition() {\n      let versions = this.versions;\n      let transition;\n      let firstTime = this.firstTime;\n      this.firstTime = false;\n      this.notifyContainer('afterChildInsertion', versions);\n      transition = this.transitionMap.transitionFor({\n        versions: versions,\n        parentElement: (0, _jquery.default)((0, _emberInternals.containingElement)(this)),\n        use: this.use,\n        rules: this.rules,\n        matchContext: this.matchContext || {},\n        // Using strings instead of booleans here is an\n        // optimization. The constraint system can match them more\n        // efficiently, since it treats boolean constraints as generic\n        // \"match anything truthy/falsy\" predicates, whereas string\n        // checks are a direct object property lookup.\n        firstTime: firstTime ? 'yes' : 'no'\n      });\n      if (this._runningTransition) {\n        this._runningTransition.interrupt();\n      }\n      this._runningTransition = transition;\n      transition.run().then(wasInterrupted => {\n        // if we were interrupted, we don't handle the cleanup because\n        // another transition has already taken over.\n        if (!wasInterrupted) {\n          this.finalizeVersions(versions);\n          this.notifyContainer('afterTransition', versions);\n        }\n      }, err => {\n        this.finalizeVersions(versions);\n        this.notifyContainer('afterTransition', versions);\n        throw err;\n      });\n    },\n    finalizeVersions(versions) {\n      versions.replace(1, versions.length - 1);\n    },\n    notifyContainer(method, versions) {\n      let target = this.notify;\n      if (target && !target.get('isDestroying')) {\n        target.send(method, versions);\n      }\n    },\n    actions: {\n      childDidRender(child) {\n        let version = child.version;\n        Ember.set(version, 'view', child);\n        this._transition();\n      }\n    }\n  }); // All falsey values are considered equal, everything else gets strict\n  // equality.\n  function defaultEqualityCheck(a, b) {\n    return !a && !b || a === b;\n  }\n});","define(\"liquid-fire/constrainables\", [\"exports\", \"liquid-fire/ember-internals\"], function (_exports, _emberInternals) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = {\n    oldValue: {\n      reversesTo: 'newValue',\n      accessor: function (conditions) {\n        return [versionValue(conditions, 1)];\n      }\n    },\n    newValue: {\n      reversesTo: 'oldValue',\n      accessor: function (conditions) {\n        return [versionValue(conditions, 0)];\n      }\n    },\n    oldRoute: {\n      reversesTo: 'newRoute',\n      accessor: function (conditions) {\n        return (0, _emberInternals.routeName)((0, _emberInternals.childRoute)(versionValue(conditions, 1), conditions.matchContext.outletName));\n      }\n    },\n    newRoute: {\n      reversesTo: 'oldRoute',\n      accessor: function (conditions) {\n        return (0, _emberInternals.routeName)((0, _emberInternals.childRoute)(versionValue(conditions, 0), conditions.matchContext.outletName));\n      }\n    },\n    oldModel: {\n      reversesTo: 'newModel',\n      accessor: function (conditions) {\n        return (0, _emberInternals.routeModel)((0, _emberInternals.childRoute)(versionValue(conditions, 1), conditions.matchContext.outletName));\n      }\n    },\n    newModel: {\n      reversesTo: 'oldModel',\n      accessor: function (conditions) {\n        return (0, _emberInternals.routeModel)((0, _emberInternals.childRoute)(versionValue(conditions, 0), conditions.matchContext.outletName));\n      }\n    },\n    helperName: {\n      accessor(conditions) {\n        return conditions.matchContext.helperName;\n      }\n    },\n    outletName: {\n      accessor(conditions) {\n        return conditions.matchContext.outletName;\n      }\n    },\n    parentElementClass: {\n      accessor: function (conditions) {\n        let cls = conditions.parentElement.attr('class');\n        if (cls) {\n          return cls.split(/\\s+/);\n        }\n      }\n    },\n    parentElement: {},\n    firstTime: {},\n    media: {}\n  };\n  function versionValue(conditions, index) {\n    let versions = conditions.versions;\n    return versions[index] ? versions[index].value : null;\n  }\n});","define(\"liquid-fire/constraint\", [\"exports\", \"liquid-fire/constrainables\"], function (_exports, _constrainables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.EMPTY = _exports.ANY = void 0;\n  _exports.constraintKeys = constraintKeys;\n  _exports.default = void 0;\n  // Every rule constraint has a target and either `keys` or\n  // `predicate`. key-based constraints are cheaper because we can check\n  // them with O(1) lookups, whereas predicates must be searched O(n).\n  class Constraint {\n    constructor(target, matcher) {\n      // targets are the properties of a transition that we can\n      // constrain\n      this.target = target;\n      if (arguments.length === 1) {\n        return;\n      }\n      if (matcher instanceof RegExp) {\n        this.predicate = function (value) {\n          return matcher.test(value);\n        };\n      } else if (typeof matcher === 'function') {\n        this.predicate = matcher;\n      } else if (typeof matcher === 'boolean') {\n        this.predicate = function (value) {\n          return matcher ? value : !value;\n        };\n      } else {\n        this.keys = constraintKeys(matcher);\n      }\n    }\n    invert() {\n      if (!_constrainables.default[this.target].reversesTo) {\n        return this;\n      }\n      let inverse = new this.constructor(_constrainables.default[this.target].reversesTo);\n      inverse.predicate = this.predicate;\n      inverse.keys = this.keys;\n      return inverse;\n    }\n  }\n  _exports.default = Constraint;\n  const EMPTY = _exports.EMPTY = '__liquid_fire_EMPTY__';\n  const ANY = _exports.ANY = '__liquid_fire_ANY__';\n  function constraintKeys(matcher) {\n    if (typeof matcher === 'undefined' || matcher === null) {\n      matcher = [EMPTY];\n    } else if (!Ember.isArray(matcher)) {\n      matcher = [matcher];\n    }\n    return Ember.A(matcher).map(elt => {\n      if (typeof elt === 'string') {\n        return elt;\n      } else {\n        return Ember.guidFor(elt);\n      }\n    });\n  }\n});","define(\"liquid-fire/constraints\", [\"exports\", \"liquid-fire/constraint\", \"liquid-fire/constrainables\"], function (_exports, _constraint, _constrainables) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class Constraints {\n    constructor() {\n      this.targets = {};\n      this.ruleCounter = 0;\n      for (let i = 0; i < constrainableKeys.length; i++) {\n        this.targets[constrainableKeys[i]] = {};\n      }\n    }\n    addRule(rule) {\n      rule.id = this.ruleCounter++;\n      if (rule.debug) {\n        this.debug = true;\n      }\n      this.addHalfRule(rule);\n      if (rule.reverse) {\n        let inverted = rule.invert();\n        inverted.id = rule.id + ' reverse';\n        this.addHalfRule(inverted);\n      }\n    }\n    addHalfRule(rule) {\n      let seen = {};\n      rule.constraints.forEach(constraint => {\n        seen[constraint.target] = true;\n        this.addConstraint(rule, constraint);\n      });\n      constrainableKeys.forEach(key => {\n        if (!seen[key]) {\n          this.addConstraint(rule, {\n            target: key\n          });\n        }\n      });\n    }\n    addConstraint(rule, constraint) {\n      let context = this.targets[constraint.target];\n      if (!context) {\n        throw new Error(`Unknown constraint target ${constraint.target}`);\n      }\n      if (constraint.keys) {\n        constraint.keys.forEach(key => {\n          this.addKey(context, key, rule);\n        });\n      } else {\n        this.addKey(context, _constraint.ANY, rule);\n      }\n    }\n    addKey(context, key, rule) {\n      if (!context[key]) {\n        context[key] = {};\n      }\n      context[key][Ember.guidFor(rule)] = rule;\n    }\n    bestMatch(conditions) {\n      if (this.debug) {\n        console.log('[liquid-fire] Checking transition rules for', conditions.parentElement[0]);\n      }\n      let rules = this.match(conditions);\n      let best = highestPriority(rules);\n      if (rules.length > 1 && this.debug) {\n        rules.forEach(rule => {\n          if (rule !== best && rule.debug) {\n            console.log(`${describeRule(rule)} matched, but it was superceded by another rule`);\n          }\n        });\n      }\n      if (best && best.debug) {\n        console.log(`${describeRule(best)} matched`);\n      }\n      return best;\n    }\n    match(conditions) {\n      let rules = this.matchByKeys(conditions);\n      rules = this.matchPredicates(conditions, rules);\n      return rules;\n    }\n    matchByKeys(conditions) {\n      let matchSets = [];\n      for (let i = 0; i < constrainableKeys.length; i++) {\n        let key = constrainableKeys[i];\n        let value = conditionAccessor(conditions, key);\n        matchSets.push(this.matchingSet(key, value));\n      }\n      return intersection(matchSets);\n    }\n    matchingSet(prop, value) {\n      let keys = (0, _constraint.constraintKeys)(value);\n      let context = this.targets[prop];\n      let matched = Ember.A();\n      for (let i = 0; i < keys.length; i++) {\n        if (context[keys[i]]) {\n          matched.push(context[keys[i]]);\n        }\n      }\n      if (keys.length === 0 && context[_constraint.EMPTY]) {\n        matched.push(context[_constraint.EMPTY]);\n      }\n      if (context[_constraint.ANY]) {\n        matched.push(context[_constraint.ANY]);\n      }\n      matched = union(matched);\n      if (this.debug) {\n        this.logDebugRules(matched, context, prop, value);\n      }\n      return matched;\n    }\n    logDebugRules(matched, context, target, value) {\n      Ember.A(Object.keys(context)).forEach(setKey => {\n        let set = context[setKey];\n        Ember.A(Object.keys(set)).forEach(ruleKey => {\n          let rule = set[ruleKey];\n          if (rule.debug && !matched[Ember.guidFor(rule)]) {\n            console.log(`${describeRule(rule)} rejected because ${target} was`, ...value);\n          }\n        });\n      });\n    }\n    matchPredicates(conditions, rules) {\n      let output = [];\n      for (let i = 0; i < rules.length; i++) {\n        let rule = rules[i];\n        let matched = true;\n        for (let j = 0; j < rule.constraints.length; j++) {\n          let constraint = rule.constraints[j];\n          if (constraint.predicate && !this.matchConstraintPredicate(conditions, rule, constraint)) {\n            matched = false;\n            break;\n          }\n        }\n        if (matched) {\n          output.push(rule);\n        }\n      }\n      return output;\n    }\n    matchConstraintPredicate(conditions, rule, constraint) {\n      let values = conditionAccessor(conditions, constraint.target);\n      let reverse = _constrainables.default[constraint.target].reversesTo;\n      let inverseValues;\n      if (reverse) {\n        inverseValues = conditionAccessor(conditions, reverse);\n      }\n      for (let i = 0; i < values.length; i++) {\n        if (constraint.predicate(values[i], inverseValues ? inverseValues[i] : null)) {\n          return true;\n        }\n      }\n      if (rule.debug) {\n        if (constraint.target === 'parentElement') {\n          values = values.map(v => v[0]);\n        }\n        console.log(`${describeRule(rule)} rejected because of a constraint on ${constraint.target}. ${constraint.target} was`, ...values);\n      }\n    }\n  }\n  _exports.default = Constraints;\n  function conditionAccessor(conditions, key) {\n    let constrainable = _constrainables.default[key];\n    if (constrainable.accessor) {\n      return constrainable.accessor(conditions) || [];\n    } else {\n      return [conditions[key]];\n    }\n  }\n\n  // Returns a list of property values from source whose keys also\n  // appear in all of the rest objects.\n  function intersection(sets) {\n    let source = sets[0];\n    let rest = sets.slice(1);\n    let keys = Object.keys(source);\n    let keysLength = keys.length;\n    let restLength = rest.length;\n    let result = [];\n    for (let keyIndex = 0; keyIndex < keysLength; keyIndex++) {\n      let key = keys[keyIndex];\n      let matched = true;\n      for (let restIndex = 0; restIndex < restLength; restIndex++) {\n        if (!rest[restIndex].hasOwnProperty(key)) {\n          matched = false;\n          break;\n        }\n      }\n      if (matched) {\n        result.push(source[key]);\n      }\n    }\n    return result;\n  }\n  function union(sets) {\n    let setsLength = sets.length;\n    let output = {};\n    for (let i = 0; i < setsLength; i++) {\n      let set = sets[i];\n      let keys = Object.keys(set);\n      for (let j = 0; j < keys.length; j++) {\n        let key = keys[j];\n        output[key] = set[key];\n      }\n    }\n    return output;\n  }\n  function describeRule(rule) {\n    return `[liquid-fire rule ${rule.id}]`;\n  }\n  function highestPriority(rules) {\n    let best;\n    let bestScore = 0;\n    for (let i = 0; i < rules.length; i++) {\n      let rule = rules[i];\n      let score = rules[i].constraints.length;\n      if (!best || score > bestScore || score === bestScore && rule.id > best.id) {\n        best = rule;\n        bestScore = score;\n      }\n    }\n    return best;\n  }\n  const constrainableKeys = Ember.A(Object.keys(_constrainables.default));\n});","define(\"liquid-fire/dsl\", [\"exports\", \"liquid-fire/animate\", \"liquid-fire/rule\", \"liquid-fire/constraint\", \"liquid-fire/action\"], function (_exports, _animate, _rule, _constraint, _action) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class DSL {\n    constructor(map, constraints) {\n      this.map = map;\n      this.constraints = constraints;\n    }\n    setDefault(props) {\n      (0, _animate.setDefaults)(props);\n    }\n    transition() {\n      let rule = new _rule.default();\n      let parts = Array.prototype.slice.apply(arguments).reduce(function (a, b) {\n        return a.concat(b);\n      }, []);\n      for (let i = 0; i < parts.length; i++) {\n        rule.add(parts[i]);\n      }\n      rule.validate(this.map);\n      this.constraints.addRule(rule);\n    }\n    fromRoute(routeName) {\n      return [new _constraint.default('oldRoute', routeName)];\n    }\n    toRoute(routeName) {\n      return [new _constraint.default('newRoute', routeName)];\n    }\n    withinRoute(routeName) {\n      return this.fromRoute(routeName).concat(this.toRoute(routeName));\n    }\n    fromValue(matcher) {\n      return [new _constraint.default('oldValue', matcher)];\n    }\n    toValue(matcher) {\n      return [new _constraint.default('newValue', matcher)];\n    }\n    betweenValues(matcher) {\n      return this.fromValue(matcher).concat(this.toValue(matcher));\n    }\n    fromModel(matcher) {\n      return [new _constraint.default('oldModel', matcher)];\n    }\n    toModel(matcher) {\n      return [new _constraint.default('newModel', matcher)];\n    }\n    betweenModels(matcher) {\n      return this.fromModel(matcher).concat(this.toModel(matcher));\n    }\n    hasClass(name) {\n      return new _constraint.default('parentElementClass', name);\n    }\n    matchSelector(selector) {\n      return new _constraint.default('parentElement', function (elt) {\n        return elt.is(selector);\n      });\n    }\n    childOf(selector) {\n      return this.matchSelector(selector + ' > *');\n    }\n    use(nameOrHandler, ...args) {\n      return new _action.default(nameOrHandler, args);\n    }\n    reverse(nameOrHandler, ...args) {\n      return new _action.default(nameOrHandler, args, {\n        reversed: true\n      });\n    }\n    useAndReverse(nameOrHandler, ...args) {\n      return [this.use(nameOrHandler, ...args), this.reverse(nameOrHandler, ...args)];\n    }\n    onInitialRender() {\n      return new _constraint.default('firstTime', 'yes');\n    }\n    includingInitialRender() {\n      return new _constraint.default('firstTime', ['yes', 'no']);\n    }\n    inHelper(...names) {\n      return new _constraint.default('helperName', names);\n    }\n    outletName(...names) {\n      return new _constraint.default('outletName', names);\n    }\n    media(query) {\n      return new _constraint.default('media', function () {\n        return window.matchMedia(query).matches;\n      });\n    }\n    debug() {\n      return 'debug';\n    }\n  }\n  _exports.default = DSL;\n});","define(\"liquid-fire/ember-internals\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.childRoute = childRoute;\n  _exports.containingElement = containingElement;\n  _exports.modelIsStable = modelIsStable;\n  _exports.routeIsStable = routeIsStable;\n  _exports.routeModel = routeModel;\n  _exports.routeName = routeName;\n  let getViewBounds;\n  {\n    ({\n      getViewBounds\n    } = window.Ember.ViewUtils);\n  }\n\n  // Traverses down to the child routeInfo with the given name.\n  function childRoute(routeInfo, outletName) {\n    let outlets;\n    // TODO: the second condition is only necessary because every\n    // constrainable accessor runs against every value all the time. It\n    // would be better to add a precondition on helperName that would\n    // short-circuit this elsewhere.\n    if (routeInfo && (outlets = routeInfo.outlets)) {\n      return outlets[outletName];\n    }\n  }\n\n  // Finds the route name from a route state so we can apply our\n  // matching rules to it.\n  function routeName(routeInfo) {\n    if (routeInfo) {\n      return [routeInfo.render.name];\n    }\n  }\n\n  // Finds the route's model from a route state so we can apply our\n  // matching rules to it. On first access, will lock down the value of\n  // the model so that future changes don't change the answer. This lets\n  // us avoid the problem of singleton controllers changing underneath\n  // us.\n  function routeModel(routeInfo) {\n    if (routeInfo && !routeInfo.hasOwnProperty('_lf_model')) {\n      let r, c;\n      if ((r = routeInfo.render) && (c = r.controller)) {\n        routeInfo._lf_model = c.model;\n      } else {\n        routeInfo._lf_model = null;\n      }\n    }\n    if (routeInfo) {\n      return [routeInfo._lf_model];\n    } else {\n      return [];\n    }\n  }\n  function routeIsStable(oldRouteInfo, newRouteInfo) {\n    if (!oldRouteInfo && !newRouteInfo) {\n      return true;\n    }\n    if (!oldRouteInfo || !newRouteInfo) {\n      return false;\n    }\n    return oldRouteInfo.render.template === newRouteInfo.render.template && oldRouteInfo.render.controller === newRouteInfo.render.controller;\n  }\n\n  // Only valid for states that already satisfy routeIsStable\n  function modelIsStable(oldRouteInfo, newRouteInfo) {\n    let oldModel = routeModel(oldRouteInfo) || [];\n    let newModel = routeModel(newRouteInfo) || [];\n    return oldModel[0] === newModel[0];\n  }\n  function containingElement(view) {\n    return getViewBounds(view).parentElement;\n  }\n});","define(\"liquid-fire/ember-internals/get-outlet-state\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    {{yield (-get-dynamic-var \"outletState\")}}\n  */\n  {\n    \"id\": \"2o97UXEr\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,[[30,[36,0],[\\\"outletState\\\"],null]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-get-dynamic-var\\\"]}\",\n    \"moduleName\": \"liquid-fire/ember-internals/get-outlet-state.hbs\"\n  });\n});","define(\"liquid-fire/helpers/lf-lock-model\", [\"exports\", \"liquid-fire/ember-internals\"], function (_exports, _emberInternals) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.lfLockModel = lfLockModel;\n  function lfLockModel([routeInfo, outletName]) {\n    // ensures that the name is locked, see implementation of `routeModel`\n    (0, _emberInternals.routeModel)((0, _emberInternals.childRoute)(routeInfo, outletName));\n    return routeInfo;\n  }\n  var _default = _exports.default = Ember.Helper.helper(lfLockModel);\n});","define(\"liquid-fire/helpers/lf-or\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.lfOr = lfOr;\n  function lfOr(params /*, hash*/) {\n    return params.reduce((a, b) => a || b, false);\n  }\n  var _default = _exports.default = Ember.Helper.helper(lfOr);\n});","define(\"liquid-fire/index\", [\"exports\", \"liquid-fire/transition-map\", \"liquid-fire/animate\", \"liquid-fire/promise\", \"liquid-fire/mutation-observer\", \"liquid-fire/mixins/pausable\"], function (_exports, _transitionMap, _animate, _promise, _mutationObserver, _pausable) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  Object.defineProperty(_exports, \"MutationObserver\", {\n    enumerable: true,\n    get: function () {\n      return _mutationObserver.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Pausable\", {\n    enumerable: true,\n    get: function () {\n      return _pausable.default;\n    }\n  });\n  Object.defineProperty(_exports, \"Promise\", {\n    enumerable: true,\n    get: function () {\n      return _promise.default;\n    }\n  });\n  Object.defineProperty(_exports, \"TransitionMap\", {\n    enumerable: true,\n    get: function () {\n      return _transitionMap.default;\n    }\n  });\n  Object.defineProperty(_exports, \"animate\", {\n    enumerable: true,\n    get: function () {\n      return _animate.animate;\n    }\n  });\n  Object.defineProperty(_exports, \"finish\", {\n    enumerable: true,\n    get: function () {\n      return _animate.finish;\n    }\n  });\n  Object.defineProperty(_exports, \"isAnimating\", {\n    enumerable: true,\n    get: function () {\n      return _animate.isAnimating;\n    }\n  });\n  Object.defineProperty(_exports, \"stop\", {\n    enumerable: true,\n    get: function () {\n      return _animate.stop;\n    }\n  });\n  Object.defineProperty(_exports, \"timeRemaining\", {\n    enumerable: true,\n    get: function () {\n      return _animate.timeRemaining;\n    }\n  });\n  Object.defineProperty(_exports, \"timeSpent\", {\n    enumerable: true,\n    get: function () {\n      return _animate.timeSpent;\n    }\n  });\n});","define(\"liquid-fire/is-browser\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = isBrowser;\n  function isBrowser() {\n    return typeof window !== 'undefined' && window && typeof document !== 'undefined' && document;\n  }\n});","define(\"liquid-fire/mixins/growable\", [\"exports\", \"liquid-fire/promise\", \"velocity\"], function (_exports, _promise, _velocity) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    growDuration: 250,\n    growPixelsPerSecond: 200,\n    growEasing: 'slide',\n    shrinkDelay: 0,\n    growDelay: 0,\n    growWidth: true,\n    growHeight: true,\n    transitionMap: Ember.inject.service('liquid-fire-transitions'),\n    animateGrowth(elt, have, want) {\n      this.transitionMap.incrementRunningTransitions();\n      let adaptations = [];\n      if (this.growWidth) {\n        adaptations.push(this._adaptDimension(elt, 'width', have, want));\n      }\n      if (this.growHeight) {\n        adaptations.push(this._adaptDimension(elt, 'height', have, want));\n      }\n      return _promise.default.all(adaptations).then(() => {\n        this.transitionMap.decrementRunningTransitions();\n      });\n    },\n    _adaptDimension(elt, dimension, have, want) {\n      if (have[dimension] === want[dimension]) {\n        return _promise.default.resolve();\n      }\n      let target = {};\n      target['outer' + Ember.String.capitalize(dimension)] = [want[dimension], have[dimension]];\n      return (0, _velocity.default)(elt[0], target, {\n        delay: this._delayFor(have[dimension], want[dimension]),\n        duration: this._durationFor(have[dimension], want[dimension]),\n        queue: false,\n        easing: this.growEasing || this.constructor.prototype.growEasing\n      });\n    },\n    _delayFor(before, after) {\n      if (before > after) {\n        return this.shrinkDelay || this.constructor.prototype.shrinkDelay;\n      }\n      return this.growDelay || this.constructor.prototype.growDelay;\n    },\n    _durationFor(before, after) {\n      return Math.min(this.growDuration || this.constructor.prototype.growDuration, 1000 * Math.abs(before - after) / (this.growPixelsPerSecond || this.constructor.prototype.growPixelsPerSecond));\n    }\n  });\n});","define(\"liquid-fire/mixins/pausable\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.Mixin.create({\n    _transitionMap: Ember.inject.service('liquid-fire-transitions'),\n    _initializeLiquidFirePauseable: Ember.on('init', function () {\n      this._lfDefer = [];\n    }),\n    pauseLiquidFire() {\n      const context = this.nearestWithProperty('_isLiquidChild');\n      if (context) {\n        let def = new Ember.RSVP.defer();\n        let tmap = this._transitionMap;\n        tmap.incrementRunningTransitions();\n        def.promise.finally(() => tmap.decrementRunningTransitions());\n        this._lfDefer.push(def);\n        context._waitForMe(def.promise);\n      }\n    },\n    resumeLiquidFire: Ember.on('willDestroyElement', function () {\n      let def = this._lfDefer.pop();\n      if (def) {\n        def.resolve();\n      }\n    })\n  });\n});","define(\"liquid-fire/mutation-observer\", [\"exports\", \"liquid-fire/is-browser\"], function (_exports, _isBrowser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  _exports.testingKick = testingKick;\n  let activePollers = [];\n  function MutationPoller(callback) {\n    this.callback = callback;\n  }\n  MutationPoller.prototype = {\n    observe: function () {\n      this.interval = setInterval(this.callback, 100);\n      activePollers.push(this);\n    },\n    disconnect: function () {\n      clearInterval(this.interval);\n      activePollers.splice(activePollers.indexOf(this), 1);\n    }\n  };\n  let M;\n  if ((0, _isBrowser.default)()) {\n    M = window.MutationObserver || window.WebkitMutationObserver || MutationPoller;\n  } else {\n    M = MutationPoller;\n  }\n  var _default = _exports.default = M; // PhantomJS does not have real mutation observers, so to get\n  // reasonable test timing we have to manually kick it.\n  function testingKick() {\n    for (let i = 0; i < activePollers.length; i++) {\n      activePollers[i].callback();\n    }\n  }\n});","define(\"liquid-fire/promise\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.RSVP.Promise;\n});","define(\"liquid-fire/rule\", [\"exports\", \"liquid-fire/action\", \"liquid-fire/constraint\"], function (_exports, _action, _constraint) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class Rule {\n    constructor() {\n      this.constraints = Ember.A();\n      this.use = null;\n      this.reverse = null;\n    }\n    add(thing) {\n      if (thing instanceof _action.default) {\n        let prop = 'use';\n        if (thing.reversed) {\n          prop = 'reverse';\n        }\n        if (this[prop]) {\n          throw new Error(`More than one \"${prop}\" statement in the same transition rule is not allowed`);\n        }\n        this[prop] = thing;\n      } else if (thing === 'debug') {\n        this.debug = true;\n      } else {\n        this.constraints.push(thing);\n      }\n    }\n    validate(transitionMap) {\n      if (!this.use) {\n        throw new Error(`Every transition rule must include a \"use\" statement`);\n      }\n      this.use.validateHandler(transitionMap);\n      if (this.reverse) {\n        this.reverse.validateHandler(transitionMap);\n      }\n      if (!this.constraints.find(c => c.target === 'firstTime')) {\n        this.constraints.push(new _constraint.default('firstTime', 'no'));\n      }\n    }\n    invert() {\n      let rule = new this.constructor();\n      rule.use = this.reverse;\n      rule.reverse = this.use;\n      rule.constraints = this.constraints.map(c => c.invert());\n      rule.debug = this.debug;\n      return rule;\n    }\n  }\n  _exports.default = Rule;\n});","define(\"liquid-fire/running-transition\", [\"exports\", \"jquery\"], function (_exports, _jquery) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  class RunningTransition {\n    constructor(transitionMap, versions, animation) {\n      this.transitionMap = transitionMap;\n      this.animation = animation || transitionMap.lookup('default');\n      this.animationContext = publicAnimationContext(this, versions);\n    }\n    run() {\n      if (this._ran) {\n        return this._ran;\n      }\n      this.transitionMap.incrementRunningTransitions();\n      return this._ran = this._invokeAnimation().catch(err => {\n        // If the animation blew up, try to leave the DOM in a\n        // non-broken state as best we can before rethrowing.\n        return this.transitionMap.lookup('default').apply(this.animationContext).then(function () {\n          throw err;\n        });\n      }).finally(() => {\n        this.transitionMap.decrementRunningTransitions();\n      });\n    }\n    interrupt() {\n      this.interrupted = true;\n      this.animationContext.oldElement = null;\n      this.animationContext.newElement = null;\n      this.animationContext.older.forEach(entry => {\n        entry.element = null;\n      });\n    }\n    _invokeAnimation() {\n      return this.animation.run(this.animationContext).then(() => {\n        return this.interrupted;\n      });\n    }\n  }\n\n  // This defines the public set of things that user's transition\n  // implementations can access as `this`.\n  _exports.default = RunningTransition;\n  function publicAnimationContext(rt, versions) {\n    let c = {};\n    addPublicVersion(c, 'new', versions[0]);\n    if (versions[1]) {\n      addPublicVersion(c, 'old', versions[1]);\n    }\n    c.older = versions.slice(2).map(v => {\n      let context = {};\n      addPublicVersion(context, null, v);\n      return context;\n    });\n\n    // Animations are allowed to look each other up.\n    c.lookup = function (name) {\n      return rt.transitionMap.lookup(name);\n    };\n    return c;\n  }\n  function addPublicVersion(context, prefix, version) {\n    let elt = null;\n    if (version.view) {\n      elt = (0, _jquery.default)(version.view.element);\n    }\n    let props = {\n      view: version.view,\n      element: elt,\n      value: version.value\n    };\n    for (let key in props) {\n      let outputKey = key;\n      if (props.hasOwnProperty(key)) {\n        if (prefix) {\n          outputKey = prefix + Ember.String.capitalize(key);\n        }\n        context[outputKey] = props[key];\n      }\n    }\n  }\n});","define(\"liquid-fire/tabbable\", [\"jquery\"], function (_jquery) {\n  \"use strict\";\n\n  /*!\n   * Adapted from jQuery UI core\n   *\n   * http://jqueryui.com\n   *\n   * Copyright 2014 jQuery Foundation and other contributors\n   * Released under the MIT license.\n   * http://jquery.org/license\n   *\n   * http://api.jqueryui.com/category/ui-core/\n   */\n\n  function focusable(element, isTabIndexNotNaN) {\n    let nodeName = element.nodeName.toLowerCase();\n    return (/input|select|textarea|button|object/.test(nodeName) ? !element.disabled : 'a' === nodeName ? element.href || isTabIndexNotNaN : isTabIndexNotNaN) && visible(element);\n  }\n  function visible(element) {\n    let $el = (0, _jquery.default)(element);\n    return _jquery.default.expr.filters.visible(element) && !(0, _jquery.default)($el, $el.parents()).filter(function () {\n      return _jquery.default.css(this, 'visibility') === 'hidden';\n    }).length;\n  }\n  if (!_jquery.default.expr[':'].tabbable) {\n    _jquery.default.expr[':'].tabbable = function (element) {\n      let tabIndex = _jquery.default.attr(element, 'tabindex'),\n        isTabIndexNaN = isNaN(tabIndex);\n      return (isTabIndexNaN || tabIndex >= 0) && focusable(element, !isTabIndexNaN);\n    };\n  }\n});","define(\"liquid-fire/templates/components/get-outlet-state\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    {{yield (-get-dynamic-var \"outletState\")}}\n  */\n  {\n    \"id\": \"5PUr2TMd\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,[[30,[36,0],[\\\"outletState\\\"],null]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-get-dynamic-var\\\"]}\",\n    \"moduleName\": \"liquid-fire/templates/components/get-outlet-state.hbs\"\n  });\n});","define(\"liquid-fire/templates/components/illiquid-model\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    {{yield this._fixedModel}}\n  */\n  {\n    \"id\": \"1SjLDrzQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,[[32,0,[\\\"_fixedModel\\\"]]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"liquid-fire/templates/components/illiquid-model.hbs\"\n  });\n});","define(\"liquid-fire/templates/components/liquid-bind\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    {{#if this.containerless}}\n    {{~#liquid-versions\n      value=this.value\n      use=this.use\n      rules=this.rules\n      matchContext=this.forwardMatchContext\n      versionEquality=this.versionEquality\n      renderWhenFalse=true\n      class=this.class as |version|\n    ~}}\n      {{~#if (has-block)}}\n        {{~yield version~}}\n      {{else}}\n        {{~version~}}\n      {{/if~}}\n    {{/liquid-versions~}}\n  {{else}}\n    {{~#liquid-container\n      id=this.containerId\n      class=this.class\n      growDuration=this.growDuration\n      growPixelsPerSecond=this.growPixelsPerSecond\n      growEasing=this.growEasing\n      shrinkDelay=this.shrinkDelay\n      growDelay=this.growDelay\n      enableGrowth=this.enableGrowth as |container|\n    ~}}\n      {{~#liquid-versions\n        value=this.value\n        notify=container\n        use=this.use\n        rules=this.rules\n        matchContext=this.forwardMatchContext\n        versionEquality=this.versionEquality\n        renderWhenFalse=true as |version| \n      ~}}\n        {{~#if (has-block)}}\n          {{~yield version~}}\n        {{else}}\n          {{~version~}}\n        {{/if~}}\n      {{/liquid-versions~}}\n    {{/liquid-container~}}\n  {{/if}}\n  */\n  {\n    \"id\": \"dS0w+JQh\",\n    \"block\": \"{\\\"symbols\\\":[\\\"container\\\",\\\"version\\\",\\\"version\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"containerless\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[6,[37,1],null,[[\\\"value\\\",\\\"use\\\",\\\"rules\\\",\\\"matchContext\\\",\\\"versionEquality\\\",\\\"renderWhenFalse\\\",\\\"class\\\"],[[32,0,[\\\"value\\\"]],[32,0,[\\\"use\\\"]],[32,0,[\\\"rules\\\"]],[32,0,[\\\"forwardMatchContext\\\"]],[32,0,[\\\"versionEquality\\\"]],true,[32,0,[\\\"class\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[27,[32,4]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[18,4,[[32,3]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[32,3]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[3]}]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[6,[37,2],null,[[\\\"id\\\",\\\"class\\\",\\\"growDuration\\\",\\\"growPixelsPerSecond\\\",\\\"growEasing\\\",\\\"shrinkDelay\\\",\\\"growDelay\\\",\\\"enableGrowth\\\"],[[32,0,[\\\"containerId\\\"]],[32,0,[\\\"class\\\"]],[32,0,[\\\"growDuration\\\"]],[32,0,[\\\"growPixelsPerSecond\\\"]],[32,0,[\\\"growEasing\\\"]],[32,0,[\\\"shrinkDelay\\\"]],[32,0,[\\\"growDelay\\\"]],[32,0,[\\\"enableGrowth\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,1],null,[[\\\"value\\\",\\\"notify\\\",\\\"use\\\",\\\"rules\\\",\\\"matchContext\\\",\\\"versionEquality\\\",\\\"renderWhenFalse\\\"],[[32,0,[\\\"value\\\"]],[32,1],[32,0,[\\\"use\\\"]],[32,0,[\\\"rules\\\"]],[32,0,[\\\"forwardMatchContext\\\"]],[32,0,[\\\"versionEquality\\\"]],true]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,0],[[27,[32,4]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[18,4,[[32,2]]]],\\\"parameters\\\":[]},{\\\"statements\\\":[[1,[32,2]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[2]}]]]],\\\"parameters\\\":[1]}]]]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"liquid-versions\\\",\\\"liquid-container\\\"]}\",\n    \"moduleName\": \"liquid-fire/templates/components/liquid-bind.hbs\"\n  });\n});","define(\"liquid-fire/templates/components/liquid-container\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    {{yield this}}\n  */\n  {\n    \"id\": \"CXFd+X02\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,[[32,0]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"liquid-fire/templates/components/liquid-container.hbs\"\n  });\n});","define(\"liquid-fire/templates/components/liquid-if\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    {{#if this.containerless}}\n    {{! Why are we using inline-ifs here? Because we want to force\n      conversion to a boolean while respecting Ember's built in `if`\n      semantics.\n  \n      Why not just defer the conversion until the real block `if` below?\n      Because we don't want liquid-versions to treat distinct values of\n      the same truthiness as distinct.\n    }}\n  \n    <LiquidVersions\n      @value={{if this.inverted (if this.predicate false true) (if this.predicate true false)}}\n      @matchContext={{hash helperName=this.helperName}}\n      @use={{this.use}}\n      @rules={{this.rules}}\n      @renderWhenFalse={{has-block \"inverse\"}}\n      @class={{this.class}} as |valueVersion|\n    >\n      {{#if valueVersion}}\n        {{yield}}\n      {{else}}\n        {{yield to=\"inverse\"}}\n      {{/if}}\n    </LiquidVersions>\n  {{else}}\n    <LiquidContainer\n      @id={{this.containerId}}\n      @class={{this.class}}\n      @growDuration={{this.growDuration}}\n      @growPixelsPerSecond={{this.growPixelsPerSecond}}\n      @growEasing={{this.growEasing}}\n      @shrinkDelay={{this.shrinkDelay}}\n      @growDelay={{this.growDelay}}\n      @enableGrowth={{this.enableGrowth}} as |container|\n    >\n      <LiquidVersions\n        @value={{if this.inverted (if this.predicate false true) (if this.predicate true false)}}\n        @notify={{container}}\n        @matchContext={{hash helperName=this.helperName}}\n        @use={{this.use}}\n        @rules={{this.rules}}\n        @renderWhenFalse={{has-block \"inverse\"}} as |valueVersion|\n      >\n        {{#if valueVersion}}\n          {{yield}}\n        {{else}}\n          {{yield to=\"inverse\"}}\n        {{/if}}\n      </LiquidVersions>\n    </LiquidContainer>\n  {{/if}}\n  */\n  {\n    \"id\": \"HOnDajqQ\",\n    \"block\": \"{\\\"symbols\\\":[\\\"container\\\",\\\"valueVersion\\\",\\\"valueVersion\\\",\\\"&else\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,0],[[32,0,[\\\"containerless\\\"]]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n  \\\"],[8,\\\"liquid-versions\\\",[],[[\\\"@value\\\",\\\"@matchContext\\\",\\\"@use\\\",\\\"@rules\\\",\\\"@renderWhenFalse\\\",\\\"@class\\\"],[[30,[36,0],[[32,0,[\\\"inverted\\\"]],[30,[36,0],[[32,0,[\\\"predicate\\\"]],false,true],null],[30,[36,0],[[32,0,[\\\"predicate\\\"]],true,false],null]],null],[30,[36,1],null,[[\\\"helperName\\\"],[[32,0,[\\\"helperName\\\"]]]]],[32,0,[\\\"use\\\"]],[32,0,[\\\"rules\\\"]],[27,[32,4]],[32,0,[\\\"class\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,0],[[32,3]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"      \\\"],[18,5,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"      \\\"],[18,4,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"  \\\"]],\\\"parameters\\\":[3]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"  \\\"],[8,\\\"liquid-container\\\",[],[[\\\"@id\\\",\\\"@class\\\",\\\"@growDuration\\\",\\\"@growPixelsPerSecond\\\",\\\"@growEasing\\\",\\\"@shrinkDelay\\\",\\\"@growDelay\\\",\\\"@enableGrowth\\\"],[[32,0,[\\\"containerId\\\"]],[32,0,[\\\"class\\\"]],[32,0,[\\\"growDuration\\\"]],[32,0,[\\\"growPixelsPerSecond\\\"]],[32,0,[\\\"growEasing\\\"]],[32,0,[\\\"shrinkDelay\\\"]],[32,0,[\\\"growDelay\\\"]],[32,0,[\\\"enableGrowth\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n    \\\"],[8,\\\"liquid-versions\\\",[],[[\\\"@value\\\",\\\"@notify\\\",\\\"@matchContext\\\",\\\"@use\\\",\\\"@rules\\\",\\\"@renderWhenFalse\\\"],[[30,[36,0],[[32,0,[\\\"inverted\\\"]],[30,[36,0],[[32,0,[\\\"predicate\\\"]],false,true],null],[30,[36,0],[[32,0,[\\\"predicate\\\"]],true,false],null]],null],[32,1],[30,[36,1],null,[[\\\"helperName\\\"],[[32,0,[\\\"helperName\\\"]]]]],[32,0,[\\\"use\\\"]],[32,0,[\\\"rules\\\"]],[27,[32,4]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n\\\"],[6,[37,0],[[32,2]],null,[[\\\"default\\\",\\\"else\\\"],[{\\\"statements\\\":[[2,\\\"        \\\"],[18,5,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]},{\\\"statements\\\":[[2,\\\"        \\\"],[18,4,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]],[2,\\\"    \\\"]],\\\"parameters\\\":[2]}]]],[2,\\\"\\\\n  \\\"]],\\\"parameters\\\":[1]}]]],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"if\\\",\\\"hash\\\"]}\",\n    \"moduleName\": \"liquid-fire/templates/components/liquid-if.hbs\"\n  });\n});","define(\"liquid-fire/templates/components/liquid-measured\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    {{yield}}\n  \n  */\n  {\n    \"id\": \"ZXmeP7J9\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,null],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[]}\",\n    \"moduleName\": \"liquid-fire/templates/components/liquid-measured.hbs\"\n  });\n});","define(\"liquid-fire/templates/components/liquid-outlet\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    <LfGetOutletState as |outletState|>\n    {{~#liquid-bind\n      (lf-lock-model outletState this.outletName)\n      containerId=this.containerId\n      versionEquality=this.versionEquality\n      matchContext=(hash outletName=this.outletName helperName=\"liquid-outlet\")\n      class=this.class\n      use=this.use\n      rules=this.rules\n      containerless=this.containerless\n      growDuration=this.growDuration\n      growPixelsPerSecond=this.growPixelsPerSecond\n      growEasing=this.growEasing\n      shrinkDelay=this.shrinkDelay\n      growDelay=this.growDelay\n      enableGrowth=this.enableGrowth as |version|\n    ~}}\n      {{#-with-dynamic-vars outletState=version~}}\n        {{outlet this.outletName}}\n      {{~/-with-dynamic-vars}}\n    {{~/liquid-bind~}}\n  </LfGetOutletState>\n  */\n  {\n    \"id\": \"GqUo9ITF\",\n    \"block\": \"{\\\"symbols\\\":[\\\"outletState\\\",\\\"version\\\"],\\\"statements\\\":[[8,\\\"lf-get-outlet-state\\\",[],[[],[]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,5],[[30,[36,4],[[32,1],[32,0,[\\\"outletName\\\"]]],null]],[[\\\"containerId\\\",\\\"versionEquality\\\",\\\"matchContext\\\",\\\"class\\\",\\\"use\\\",\\\"rules\\\",\\\"containerless\\\",\\\"growDuration\\\",\\\"growPixelsPerSecond\\\",\\\"growEasing\\\",\\\"shrinkDelay\\\",\\\"growDelay\\\",\\\"enableGrowth\\\"],[[32,0,[\\\"containerId\\\"]],[32,0,[\\\"versionEquality\\\"]],[30,[36,3],null,[[\\\"outletName\\\",\\\"helperName\\\"],[[32,0,[\\\"outletName\\\"]],\\\"liquid-outlet\\\"]]],[32,0,[\\\"class\\\"]],[32,0,[\\\"use\\\"]],[32,0,[\\\"rules\\\"]],[32,0,[\\\"containerless\\\"]],[32,0,[\\\"growDuration\\\"]],[32,0,[\\\"growPixelsPerSecond\\\"]],[32,0,[\\\"growEasing\\\"]],[32,0,[\\\"shrinkDelay\\\"]],[32,0,[\\\"growDelay\\\"]],[32,0,[\\\"enableGrowth\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,2],null,[[\\\"outletState\\\"],[[32,2]]],[[\\\"default\\\"],[{\\\"statements\\\":[[1,[30,[36,1],[[30,[36,0],[[32,0,[\\\"outletName\\\"]]],null]],null]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[2]}]]]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"-outlet\\\",\\\"component\\\",\\\"-with-dynamic-vars\\\",\\\"hash\\\",\\\"lf-lock-model\\\",\\\"liquid-bind\\\"]}\",\n    \"moduleName\": \"liquid-fire/templates/components/liquid-outlet.hbs\"\n  });\n});","define(\"liquid-fire/templates/components/liquid-spacer\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    <LiquidMeasured @didMeasure={{action this.sizeChanged}}>\n    {{yield}}\n  </LiquidMeasured>\n  */\n  {\n    \"id\": \"4r1Z9TMa\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[8,\\\"liquid-measured\\\",[],[[\\\"@didMeasure\\\"],[[30,[36,0],[[32,0],[32,0,[\\\"sizeChanged\\\"]]],null]]],[[\\\"default\\\"],[{\\\"statements\\\":[[2,\\\"\\\\n  \\\"],[18,1,null],[2,\\\"\\\\n\\\"]],\\\"parameters\\\":[]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n    \"moduleName\": \"liquid-fire/templates/components/liquid-spacer.hbs\"\n  });\n});","define(\"liquid-fire/templates/components/liquid-sync\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    {{yield (action \"ready\")}}\n  \n  */\n  {\n    \"id\": \"vCTBflDV\",\n    \"block\": \"{\\\"symbols\\\":[\\\"&default\\\"],\\\"statements\\\":[[18,1,[[30,[36,0],[[32,0],\\\"ready\\\"],null]]],[2,\\\"\\\\n\\\"]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\"]}\",\n    \"moduleName\": \"liquid-fire/templates/components/liquid-sync.hbs\"\n  });\n});","define(\"liquid-fire/templates/components/liquid-versions\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = _exports.default = Ember.HTMLBars.template(\n  /*\n    {{#each this.versions as |version|~}}\n    {{#if (lf-or this.renderWhenFalse version.value)~}}\n      {{#liquid-child\n        version=version\n        liquidChildDidRender=(action \"childDidRender\")\n        class=this.class\n      ~}}\n        {{yield version.value~}}\n      {{/liquid-child}}\n    {{/if}}\n  {{/each}}\n  */\n  {\n    \"id\": \"E8+Ydico\",\n    \"block\": \"{\\\"symbols\\\":[\\\"version\\\",\\\"&default\\\"],\\\"statements\\\":[[6,[37,5],[[30,[36,4],[[30,[36,4],[[32,0,[\\\"versions\\\"]]],null]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,3],[[30,[36,2],[[32,0,[\\\"renderWhenFalse\\\"]],[32,1,[\\\"value\\\"]]],null]],null,[[\\\"default\\\"],[{\\\"statements\\\":[[6,[37,1],null,[[\\\"version\\\",\\\"liquidChildDidRender\\\",\\\"class\\\"],[[32,1],[30,[36,0],[[32,0],\\\"childDidRender\\\"],null],[32,0,[\\\"class\\\"]]]],[[\\\"default\\\"],[{\\\"statements\\\":[[18,2,[[32,1,[\\\"value\\\"]]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[]}]]]],\\\"parameters\\\":[1]}]]]],\\\"hasEval\\\":false,\\\"upvars\\\":[\\\"action\\\",\\\"liquid-child\\\",\\\"lf-or\\\",\\\"if\\\",\\\"-track-array\\\",\\\"each\\\"]}\",\n    \"moduleName\": \"liquid-fire/templates/components/liquid-versions.hbs\"\n  });\n});","define(\"liquid-fire/transition-map\", [\"exports\", \"liquid-fire/running-transition\", \"liquid-fire/dsl\", \"liquid-fire/action\", \"liquid-fire/constraints\"], function (_exports, _runningTransition, _dsl, _action, _constraints) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  let TransitionMap = Ember.Service.extend({\n    init() {\n      this._super(...arguments);\n      this.activeCount = 0;\n      this.constraints = new _constraints.default();\n      let owner = Ember.getOwner(this);\n      this.isTest = owner.resolveRegistration('config:environment').environment === 'test';\n      let config;\n      if (owner.factoryFor) {\n        let maybeConfig = owner.factoryFor('transitions:main');\n        config = maybeConfig && maybeConfig.class;\n      } else {\n        config = owner._lookupFactory('transitions:main');\n      }\n      if (config) {\n        this.map(config);\n      }\n    },\n    runningTransitions() {\n      return this.activeCount;\n    },\n    incrementRunningTransitions() {\n      this.activeCount++;\n    },\n    decrementRunningTransitions() {\n      this.activeCount--;\n      Ember.run.next(() => {\n        this._maybeResolveIdle();\n      });\n    },\n    waitUntilIdle() {\n      if (this._waitingPromise) {\n        return this._waitingPromise;\n      }\n      return this._waitingPromise = new Ember.RSVP.Promise(resolve => {\n        this._resolveWaiting = resolve;\n        Ember.run.next(() => {\n          this._maybeResolveIdle();\n        });\n      });\n    },\n    _maybeResolveIdle() {\n      if (this.activeCount === 0 && this._resolveWaiting) {\n        let resolveWaiting = this._resolveWaiting;\n        this._resolveWaiting = null;\n        this._waitingPromise = null;\n        resolveWaiting();\n      }\n    },\n    lookup(transitionName) {\n      let owner = Ember.getOwner(this);\n      let handler;\n      if (owner.factoryFor) {\n        let maybeHandler = owner.factoryFor('transition:' + transitionName);\n        handler = maybeHandler && maybeHandler.class;\n      } else {\n        handler = owner._lookupFactory('transition:' + transitionName);\n      }\n      if (!handler) {\n        throw new Error('unknown transition name: ' + transitionName);\n      }\n      return handler;\n    },\n    defaultAction() {\n      if (!this._defaultAction) {\n        this._defaultAction = new _action.default(this.lookup('default'));\n      }\n      return this._defaultAction;\n    },\n    constraintsFor(conditions) {\n      if (conditions.rules) {\n        let constraints = new _constraints.default();\n        this.map(conditions.rules, constraints);\n        return constraints;\n      } else {\n        return this.constraints;\n      }\n    },\n    transitionFor(conditions) {\n      let action;\n      if (conditions.use && conditions.firstTime !== 'yes') {\n        action = new _action.default(conditions.use);\n        action.validateHandler(this);\n      } else {\n        let rule = this.constraintsFor(conditions).bestMatch(conditions);\n        if (rule) {\n          action = rule.use;\n        } else {\n          action = this.defaultAction();\n        }\n      }\n      return new _runningTransition.default(this, conditions.versions, action);\n    },\n    map(handler, constraints) {\n      if (handler) {\n        handler.apply(new _dsl.default(this, constraints || this.constraints));\n      }\n      return this;\n    }\n  });\n  if (true /* DEBUG */) {\n    TransitionMap.reopen({\n      init() {\n        this._super(...arguments);\n        if (this.isTest) {\n          this._waiter = () => {\n            return this.runningTransitions() === 0;\n          };\n          Ember.Test.registerWaiter(this._waiter);\n        }\n      },\n      willDestroy() {\n        if (this._waiter) {\n          Ember.Test.unregisterWaiter(this._waiter);\n          this._waiter = null;\n        }\n        this._super(...arguments);\n      }\n    });\n  }\n  TransitionMap.reopenClass({\n    map(handler) {\n      let t = TransitionMap.create();\n      t.map(handler);\n      return t;\n    }\n  });\n  var _default = _exports.default = TransitionMap;\n});","define(\"liquid-fire/transitions/cross-fade\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = crossFade;\n  // BEGIN-SNIPPET cross-fade-definition\n\n  function crossFade(opts = {}) {\n    (0, _liquidFire.stop)(this.oldElement);\n    return _liquidFire.Promise.all([(0, _liquidFire.animate)(this.oldElement, {\n      opacity: 0\n    }, opts), (0, _liquidFire.animate)(this.newElement, {\n      opacity: [opts.maxOpacity || 1, 0]\n    }, opts)]);\n  }\n  // END-SNIPPET\n});","define(\"liquid-fire/transitions/default\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = defaultTransition;\n  // This is what we run when no animation is asked for. It just sets\n  // the newly-added element to visible (because we always start them\n  // out invisible so that transitions can control their initial\n  // appearance).\n  function defaultTransition() {\n    if (this.newElement) {\n      this.newElement.css({\n        visibility: ''\n      });\n    }\n    return _liquidFire.Promise.resolve();\n  }\n});","define(\"liquid-fire/transitions/explode\", [\"exports\", \"jquery\", \"liquid-fire\"], function (_exports, _jquery, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = explode;\n  // Explode is not, by itself, an animation. It exists to pull apart\n  // other elements so that each of the pieces can be targeted by\n  // animations.\n\n  let deduplicateChildElementIds = parentElem => {\n    if (!parentElem) {\n      return;\n    }\n    let parentEl = parentElem[0];\n    if (parentEl.id) {\n      parentEl.setAttribute('id', `${Ember.guidFor(parentEl)}-${parentEl.id}`);\n    }\n    let childrenWithUniqueIds = parentEl.querySelectorAll('[id]');\n    if (childrenWithUniqueIds.length) {\n      for (let el of childrenWithUniqueIds) {\n        el.setAttribute('id', `${Ember.guidFor(el)}-${el.id}`);\n      }\n    }\n  };\n  function explode(...pieces) {\n    let seenElements = {};\n    let sawBackgroundPiece = false;\n    let promises = pieces.map(piece => {\n      if (piece.matchBy) {\n        return matchAndExplode(this, piece, seenElements);\n      } else if (piece.pick || piece.pickOld || piece.pickNew) {\n        return explodePiece(this, piece, seenElements);\n      } else {\n        sawBackgroundPiece = true;\n        return runAnimation(this, piece);\n      }\n    });\n    if (!sawBackgroundPiece) {\n      if (this.newElement) {\n        this.newElement.css({\n          visibility: ''\n        });\n      }\n      if (this.oldElement) {\n        this.oldElement.css({\n          visibility: 'hidden'\n        });\n      }\n    }\n    return _liquidFire.Promise.all(promises);\n  }\n  function explodePiece(context, piece, seen) {\n    let childContext = {\n      ...context\n    };\n    let selectors = [piece.pickOld || piece.pick, piece.pickNew || piece.pick];\n    let cleanupOld, cleanupNew;\n    if (selectors[0] || selectors[1]) {\n      cleanupOld = _explodePart(context, 'oldElement', childContext, selectors[0], seen);\n      cleanupNew = _explodePart(context, 'newElement', childContext, selectors[1], seen);\n      if (!cleanupOld && !cleanupNew) {\n        return _liquidFire.Promise.resolve();\n      }\n    }\n    return runAnimation(childContext, piece).finally(() => {\n      if (cleanupOld) {\n        cleanupOld();\n      }\n      if (cleanupNew) {\n        cleanupNew();\n      }\n    });\n  }\n  function _explodePart(context, field, childContext, selector, seen) {\n    let child, childOffset, width, height, newChild;\n    let elt = context[field];\n    childContext[field] = null;\n    if (elt && selector) {\n      child = elt.find(selector).filter(function () {\n        let guid = Ember.guidFor(this);\n        if (!seen[guid]) {\n          seen[guid] = true;\n          return true;\n        }\n      });\n      if (child.length > 0) {\n        childOffset = child.offset();\n        width = child.outerWidth();\n        height = child.outerHeight();\n        newChild = child.clone();\n        deduplicateChildElementIds(newChild);\n\n        // Hide the original element\n        child.css({\n          visibility: 'hidden'\n        });\n\n        // If the original element's parent was hidden, hide our clone\n        // too.\n        if (elt.css('visibility') === 'hidden') {\n          newChild.css({\n            visibility: 'hidden'\n          });\n        }\n        newChild.appendTo(elt.parent());\n        newChild.outerWidth(width);\n        newChild.outerHeight(height);\n        let newParentOffset = newChild.offsetParent().offset();\n        newChild.css({\n          position: 'absolute',\n          top: childOffset.top - newParentOffset.top,\n          left: childOffset.left - newParentOffset.left,\n          margin: 0\n        });\n\n        // Pass the clone to the next animation\n        childContext[field] = newChild;\n        return function cleanup() {\n          newChild.remove();\n          child.css({\n            visibility: ''\n          });\n        };\n      }\n    }\n  }\n  function animationFor(context, piece) {\n    let name, args, func;\n    if (!piece.use) {\n      throw new Error(\"every argument to the 'explode' animation must include a followup animation to 'use'\");\n    }\n    if (Ember.isArray(piece.use)) {\n      name = piece.use[0];\n      args = piece.use.slice(1);\n    } else {\n      name = piece.use;\n      args = [];\n    }\n    if (typeof name === 'function') {\n      func = name;\n    } else {\n      func = context.lookup(name);\n    }\n    return function () {\n      return _liquidFire.Promise.resolve(func.apply(this, args));\n    };\n  }\n  function runAnimation(context, piece) {\n    return new _liquidFire.Promise((resolve, reject) => {\n      animationFor(context, piece).apply(context).then(resolve, reject);\n    });\n  }\n  function matchAndExplode(context, piece, seen) {\n    if (!context.oldElement || !context.newElement) {\n      return _liquidFire.Promise.resolve();\n    }\n\n    // reduce the matchBy scope\n    if (piece.pick) {\n      context.oldElement = context.oldElement.find(piece.pick);\n      context.newElement = context.newElement.find(piece.pick);\n    }\n    if (piece.pickOld) {\n      context.oldElement = context.oldElement.find(piece.pickOld);\n    }\n    if (piece.pickNew) {\n      context.newElement = context.newElement.find(piece.pickNew);\n    }\n\n    // use the fastest selector available\n    let selector;\n    if (piece.matchBy === 'id') {\n      selector = attrValue => {\n        return `#${attrValue}`;\n      };\n    } else if (piece.matchBy === 'class') {\n      selector = attrValue => {\n        return `.${attrValue}`;\n      };\n    } else {\n      selector = attrValue => {\n        let escapedAttrValue = attrValue.replace(/'/g, \"\\\\'\");\n        return `[${piece.matchBy}='${escapedAttrValue}']`;\n      };\n    }\n    let hits = Ember.A(context.oldElement.find(`[${piece.matchBy}]`).toArray());\n    return _liquidFire.Promise.all(hits.map(elt => {\n      let attrValue = (0, _jquery.default)(elt).attr(piece.matchBy);\n\n      // if there is no match for a particular item just skip it\n      if (attrValue === '' || context.newElement.find(selector(attrValue)).length === 0) {\n        return _liquidFire.Promise.resolve();\n      }\n      return explodePiece(context, {\n        pick: selector(attrValue),\n        use: piece.use\n      }, seen);\n    }));\n  }\n});","define(\"liquid-fire/transitions/fade\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = fade;\n  // BEGIN-SNIPPET fade-definition\n\n  function fade(opts = {}) {\n    let firstStep;\n    let outOpts = opts;\n    let fadingElement = findFadingElement(this);\n    if (fadingElement) {\n      // We still have some older version that is in the process of\n      // fading out, so out first step is waiting for it to finish.\n      firstStep = (0, _liquidFire.finish)(fadingElement, 'fade-out');\n    } else {\n      if ((0, _liquidFire.isAnimating)(this.oldElement, 'fade-in')) {\n        // if the previous view is partially faded in, scale its\n        // fade-out duration appropriately.\n        outOpts = {\n          duration: (0, _liquidFire.timeSpent)(this.oldElement, 'fade-in')\n        };\n      }\n      (0, _liquidFire.stop)(this.oldElement);\n      firstStep = (0, _liquidFire.animate)(this.oldElement, {\n        opacity: 0\n      }, outOpts, 'fade-out');\n    }\n    return firstStep.then(() => {\n      return (0, _liquidFire.animate)(this.newElement, {\n        opacity: [opts.maxOpacity || 1, 0]\n      }, opts, 'fade-in');\n    });\n  }\n  function findFadingElement(context) {\n    for (let i = 0; i < context.older.length; i++) {\n      let entry = context.older[i];\n      if ((0, _liquidFire.isAnimating)(entry.element, 'fade-out')) {\n        return entry.element;\n      }\n    }\n    if ((0, _liquidFire.isAnimating)(context.oldElement, 'fade-out')) {\n      return context.oldElement;\n    }\n  }\n  // END-SNIPPET\n});","define(\"liquid-fire/transitions/flex-grow\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = flexGrow;\n  function flexGrow(opts) {\n    (0, _liquidFire.stop)(this.oldElement);\n    return _liquidFire.Promise.all([(0, _liquidFire.animate)(this.oldElement, {\n      'flex-grow': 0\n    }, opts), (0, _liquidFire.animate)(this.newElement, {\n      'flex-grow': [1, 0]\n    }, opts)]);\n  }\n});","define(\"liquid-fire/transitions/fly-to\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = flyTo;\n  function flyTo(opts = {}) {\n    if (!this.newElement) {\n      return _liquidFire.Promise.resolve();\n    } else if (!this.oldElement) {\n      this.newElement.css({\n        visibility: ''\n      });\n      return _liquidFire.Promise.resolve();\n    }\n    let oldOffset = this.oldElement.offset();\n    let newOffset = this.newElement.offset();\n    if (opts.movingSide === 'new') {\n      let motion = {\n        translateX: [0, oldOffset.left - newOffset.left],\n        translateY: [0, oldOffset.top - newOffset.top],\n        outerWidth: [this.newElement.outerWidth(), this.oldElement.outerWidth()],\n        outerHeight: [this.newElement.outerHeight(), this.oldElement.outerHeight()]\n      };\n      this.oldElement.css({\n        visibility: 'hidden'\n      });\n      return (0, _liquidFire.animate)(this.newElement, motion, opts);\n    } else {\n      let motion = {\n        translateX: newOffset.left - oldOffset.left,\n        translateY: newOffset.top - oldOffset.top,\n        outerWidth: this.newElement.outerWidth(),\n        outerHeight: this.newElement.outerHeight()\n      };\n      this.newElement.css({\n        visibility: 'hidden'\n      });\n      return (0, _liquidFire.animate)(this.oldElement, motion, opts).then(() => {\n        this.newElement.css({\n          visibility: ''\n        });\n      });\n    }\n  }\n});","define(\"liquid-fire/transitions/move-over\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = moveOver;\n  function moveOver(dimension, direction, opts) {\n    let oldParams = {},\n      newParams = {},\n      firstStep,\n      property,\n      measure;\n    if (dimension.toLowerCase() === 'x') {\n      property = 'translateX';\n      measure = 'width';\n    } else {\n      property = 'translateY';\n      measure = 'height';\n    }\n    if ((0, _liquidFire.isAnimating)(this.oldElement, 'moving-in')) {\n      firstStep = (0, _liquidFire.finish)(this.oldElement, 'moving-in');\n    } else {\n      (0, _liquidFire.stop)(this.oldElement);\n      firstStep = _liquidFire.Promise.resolve();\n    }\n    return firstStep.then(() => {\n      let bigger = biggestSize(this, measure);\n      oldParams[property] = bigger * direction + 'px';\n      newParams[property] = ['0px', -1 * bigger * direction + 'px'];\n      return _liquidFire.Promise.all([(0, _liquidFire.animate)(this.oldElement, oldParams, opts), (0, _liquidFire.animate)(this.newElement, newParams, opts, 'moving-in')]);\n    });\n  }\n  function biggestSize(context, dimension) {\n    let sizes = [];\n    if (context.newElement) {\n      sizes.push(parseInt(context.newElement.css(dimension), 10));\n      sizes.push(parseInt(context.newElement.parent().css(dimension), 10));\n    }\n    if (context.oldElement) {\n      sizes.push(parseInt(context.oldElement.css(dimension), 10));\n      sizes.push(parseInt(context.oldElement.parent().css(dimension), 10));\n    }\n    return Math.max.apply(null, sizes);\n  }\n});","define(\"liquid-fire/transitions/scale\", [\"exports\", \"liquid-fire\"], function (_exports, _liquidFire) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = scale;\n  function scale(opts = {}) {\n    return (0, _liquidFire.animate)(this.oldElement, {\n      scale: [0.2, 1]\n    }, opts).then(() => {\n      return (0, _liquidFire.animate)(this.newElement, {\n        scale: [1, 0.2]\n      }, opts);\n    });\n  }\n});","define(\"liquid-fire/transitions/scroll-then\", [\"exports\", \"liquid-fire/is-browser\"], function (_exports, _isBrowser) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(nextTransitionName, options, ...rest) {\n    if ((0, _isBrowser.default)()) {\n      (true && !('string' === typeof nextTransitionName) && Ember.assert(\"You must provide a transition name as the first argument to scrollThen. Example: this.use('scrollThen', 'toLeft')\", 'string' === typeof nextTransitionName));\n      let el = document.getElementsByTagName('html');\n      let nextTransition = this.lookup(nextTransitionName);\n      if (!options) {\n        options = {};\n      }\n      (true && !('object' === typeof options) && Ember.assert(\"The second argument to scrollThen is passed to Velocity's scroll function and must be an object\", 'object' === typeof options)); // set scroll options via: this.use('scrollThen', 'ToLeft', {easing: 'spring'})\n      options = {\n        duration: 500,\n        offset: 0,\n        ...options\n      };\n\n      // additional args can be passed through after the scroll options object\n      // like so: this.use('scrollThen', 'moveOver', {duration: 100}, 'x', -1);\n\n      return window.$.Velocity(el, 'scroll', options).then(() => {\n        nextTransition.apply(this, rest);\n      });\n    }\n  }\n});","define(\"liquid-fire/transitions/to-down\", [\"exports\", \"liquid-fire/transitions/move-over\"], function (_exports, _moveOver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(opts) {\n    return _moveOver.default.call(this, 'y', 1, opts);\n  }\n});","define(\"liquid-fire/transitions/to-left\", [\"exports\", \"liquid-fire/transitions/move-over\"], function (_exports, _moveOver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(opts) {\n    return _moveOver.default.call(this, 'x', -1, opts);\n  }\n});","define(\"liquid-fire/transitions/to-right\", [\"exports\", \"liquid-fire/transitions/move-over\"], function (_exports, _moveOver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(opts) {\n    return _moveOver.default.call(this, 'x', 1, opts);\n  }\n});","define(\"liquid-fire/transitions/to-up\", [\"exports\", \"liquid-fire/transitions/move-over\"], function (_exports, _moveOver) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(opts) {\n    return _moveOver.default.call(this, 'y', -1, opts);\n  }\n});","define(\"liquid-fire/transitions/wait\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = _default;\n  function _default(ms, opts, ...rest) {\n    opts = opts !== undefined ? opts : {};\n    return new Ember.RSVP.Promise(resolve => {\n      setTimeout(() => {\n        resolve(this.lookup(opts.then || 'default').call(this, ...rest));\n      }, ms);\n    });\n  }\n});","define(\"liquid-fire/velocity-ext\", [\"velocity\"], function (_velocity) {\n  \"use strict\";\n\n  /*\n    This makes it possible to animate outerHeight and outerWidth with\n    Velocity, which is much more convenient for our purposes. Submitted\n    to Velocity as PR #485.\n  */\n\n  if (typeof FastBoot === undefined) {\n    let VCSS = _velocity.default.CSS;\n    let augmentDimension = function (name, element) {\n      let sides = name === 'width' ? ['Left', 'Right'] : ['Top', 'Bottom'];\n      if (VCSS.getPropertyValue(element, 'boxSizing').toString().toLowerCase() === 'border-box') {\n        /* in box-sizing mode, the VCSS width / height accessors already give the outerWidth / outerHeight. */\n        return 0;\n      } else {\n        let augment = 0;\n        let fields = ['padding' + sides[0], 'padding' + sides[1], 'border' + sides[0] + 'Width', 'border' + sides[1] + 'Width'];\n        for (let i = 0; i < fields.length; i++) {\n          let value = parseFloat(VCSS.getPropertyValue(element, fields[i]));\n          if (!isNaN(value)) {\n            augment += value;\n          }\n        }\n        return augment;\n      }\n    };\n    let outerDimension = function (name) {\n      return function (type, element, propertyValue) {\n        switch (type) {\n          case 'name':\n            return name;\n          case 'extract':\n            return parseFloat(propertyValue) + augmentDimension(name, element);\n          case 'inject':\n            return parseFloat(propertyValue) - augmentDimension(name, element) + 'px';\n        }\n      };\n    };\n    VCSS.Normalizations.registered.outerWidth = outerDimension('width');\n    VCSS.Normalizations.registered.outerHeight = outerDimension('height');\n  }\n});","\n"],"names":["define","require","Ember","mainContext","registry","seen","missingModule","name","referrerName","Error","internalRequire","_name","mod","exports","undefined","deps","callback","reified","Array","length","i","apply","isNode","window","process","toString","call","__loader","Object","create","value","has","registryHas","moduleName","Boolean","_eak_seen","hasDom","_exports","hasDOM","self","Object","Window","constructor","document","location","history","navigator","userAgent","window","location$1","history$1","isChrome","Boolean","chrome","opera","isFirefox","InstallTrigger","DEPRECATION_MESSAGE","DEPRECATION_ID","DEPRECATION_URL","DEPRECATED_LOGGER","LOGGER","log","deprecate","id","until","url","console","arguments","warn","error","info","debug","assert","_default","_exports","default","leakTracking","containers","gc","GetWeakSetValues","Function","WeakSet","hasContainers","length","reset","values","i","delete","e","Container","constructor","registry","options","owner","cache","dictionary","factoryManagerCache","isDestroyed","isDestroying","validationCache","undefined","add","lookup","fullName","Error","isValidFullName","assert","normalize","destroy","destroyDestroyables","finalizeDestroy","resetCache","resetMember","ownerInjection","injection","setOwner","factoryFor","normalizedName","_exports","_leakTracking","wrapManagerInDeprecationProxy","manager","HAS_NATIVE_PROXY","validator","set","_obj","prop","m","proxiedManager","class","create","props","Proxy","isSingleton","container","getOption","isInstantiatable","singleton","cached","instantiateFactory","factory","resolve","_onLookup","FactoryManager","isSingletonClass","instantiate","isSingletonInstance","isFactoryClass","fullname","isFactoryInstance","factoryManager","instance","processInjections","injections","result","validateInjections","hash","property","specifier","isDynamic","buildInjections","typeInjections","injectionsHash","injectionsFor","type","split","getTypeInjections","getInjections","keys","Object","key","value","member","INIT_FACTORY","symbol","getFactoryFor","obj","setFactoryFor","madeToString","toString","makeToString","assign","lazyInjections","_lazyInjections","normalizeInjectionsHash","VALID_FULL_NAME_REGEXP","Registry","fallback","resolver","registrations","_typeInjections","_injections","_localLookupCache","_normalizeCache","_resolveCache","_failSet","Set","_options","_typeOptions","register","unregister","arguments","describe","lookupDescription","normalizeFullName","has","optionsForType","getOptionsForType","getOptions","optionName","typeInjection","fullNameType","push","injectionName","normalizedInjectionName","indexOf","knownForType","localKnown","registeredNames","index","itemType","fallbackKnown","resolverKnown","test","fallbackInjections","concat","proto","prototype","hasOwnProperty","call","_normalizedName","resolved","privateNames","privateSuffix","Math","random","Date","now","replace","privatize","name","rawName","intern","checkGlobal","value","Object","undefined","checkElementIdShadowing","nodeType","global$1","_exports","global","self","window","mainContext","Function","context","Ember","imports","exports","lookup","getLookup","setLookup","ENV","ENABLE_OPTIONAL_FEATURES","EXTEND_PROTOTYPES","Array","String","LOG_STACKTRACE_ON_DEPRECATION","LOG_VERSION","RAISE_ON_DEPRECATION","STRUCTURED_PROFILE","_APPLICATION_TEMPLATE_WRAPPER","_TEMPLATE_ONLY_GLIMMER_COMPONENTS","_DEBUG_RENDER_TREE","_JQUERY_INTEGRATION","_DEFAULT_ASYNC_OBSERVERS","_RERENDER_LOOP_LIMIT","EMBER_LOAD_HOOKS","FEATURES","EmberENV","flag","prototype","hasOwnProperty","call","defaultValue","FUNCTION_PROTOTYPE_EXTENSIONS","isEnabled","hookName","hooks","isArray","filter","hook","feature","getENV","onerror","onErrorTarget","_exports","getOnerror","setOnerror","handler","dispatchOverride","getDispatchOverride","setDispatchOverride","_default","_exports","default","EmberObject","extend","resolver","canCatalogEntriesByType","type","catalogEntriesByType","namespaces","emberA","Namespace","NAMESPACES","types","typeSuffixRegex","RegExp","classify","forEach","namespace","key","Object","prototype","hasOwnProperty","call","test","klass","typeOf","push","dasherize","replace","_default","_exports","default","EmberObject","extend","init","_super","arguments","releaseMethods","emberA","containerDebugAdapter","undefined","attributeLimit","acceptsModelName","getFilters","watchModelTypes","typesAdded","typesUpdated","modelTypes","getModelTypes","typesToSend","map","type","klass","wrapped","wrapModelType","name","push","observeModelType","release","forEach","fn","removeObject","pushObject","_nameToClass","owner","getOwner","Factory","factoryFor","class","watchRecords","modelName","recordsAdded","recordsUpdated","recordsRemoved","records","getRecords","recordUpdated","updatedRecord","recordsToSend","record","observeRecord","wrapRecord","contentDidChange","array","idx","removedCount","addedCount","i","objectAt","observer","didChange","willChange","addArrayObserver","removeArrayObserver","willDestroy","detect","columnsForType","onChange","scheduleOnce","typeToSend","count","get","columns","object","types","canCatalogEntriesByType","catalogEntriesByType","_getObjectsOnNamespaces","filter","namespaces","Namespace","NAMESPACES","namespace","key","Object","prototype","hasOwnProperty","call","dasherize","recordToSend","columnValues","getRecordColumnValues","searchKeywords","getRecordKeywords","filterValues","getRecordFilterValues","color","getRecordColor","RootTemplate","_exports","templateFactory","ARGS","enumerableSymbol","HAS_BLOCK","DIRTY_TAG","symbol","IS_DISPATCHING_ATTRS","BOUNDS","Component","CoreView","extend","ChildViewsSupport","ViewStateSupport","ClassNamesSupport","TargetActionSupport","ActionSupport","ViewMixin","isComponent","init","_super","arguments","createTag","renderer","_destinedForDOM","tagName","eventNames","eventDispatcher","getOwner","lookup","events","_finalEvents","key","methodName","push","length","assert","mouseEnter","undefined","deprecate","id","until","url","for","since","enabled","mouseLeave","mouseMove","rerender","dirtyTag","PROPERTY_DID_CHANGE","value","args","reference","isUpdatableRef","updateRef","get","getAttr","readDOMAttr","name","_element","getViewElement","element","isSVG","namespaceURI","type","normalized","normalizeProperty","getAttribute","didReceiveAttrs","didRender","willRender","didUpdateAttrs","willUpdate","didUpdate","toString","reopenClass","isComponentFactory","positionalParams","layout","Checkbox","classNames","attributeBindings","disabled","indeterminate","didInsertElement","Boolean","change","set","checked","UNSET","reopen","inputTypes","hasDOM","Object","create","canSetTypeOfInput","inputTypeTestElement","document","createElement","e","TextField","TextSupport","computed","_key","size","pattern","min","max","TextArea","rows","cols","layout$1","UNDEFINED","freeze","EMPTY_QUERY_PARAMS","LinkComponent","route","model","models","query","title","rel","tabindex","target","activeClass","loadingClass","disabledClass","replace","classNameBindings","eventName","assertLinkToOrigin","on","_invoke","_routing","inject","_currentRoute","alias","_currentRouterState","_targetRouterState","_isEngine","getEngineParent","_engineMountPoint","mountPoint","_route","computeLinkToComponentRoute","_namespaceRoute","_models","computeLinkToComponentModels","Array","isArray","_query","computeLinkToComponentQuery","_polyfills","assign","_isDisabled","active","computeLinkToComponentActiveClass","_active","computeLinkToComponentActive","state","_isActive","willBeActive","computeLinkToComponentWillBeActive","current","routerState","loading","currentWhen","routing","split","some","isActiveForRoute","transitioningIn","computeLinkToComponentTransitioningIn","transitioningOut","computeLinkToComponentTransitioningOut","event","isSimpleClick","bubbles","preventDefault","isSelf","stopPropagation","warn","routeName","queryParams","shouldReplace","payload","flaggedInstrument","_generateTransition","qualifiedRouteName","transition","transitionTo","href","computeLinkToComponentHref","loadingHref","generateURL","false","message","computeLinkToComponentLoading","_modelsAreLoaded","loaded","computeLinkToComponentModelsAreLoaded","i","disabledWhen","params","lastModel","isQueryParams","values","pop","slice","shift","convertToInt","prop","num","Number","isNaN","tagForNamedArg","namedArgs","track","valueForRef","tagForPositionalArg","positionalArgs","forEach","parsed","argsProxyFor","HAS_NATIVE_PROXY","capturedArgs","named","positional","getNamedTag","getPositionalTag","namedHandler","_target","ref","CUSTOM_TAG_FOR","has","ownKeys","keys","isExtensible","getOwnPropertyDescriptor","enumerable","configurable","positionalHandler","namedTarget","positionalTarget","setHandler","Error","String","forInDebugHandler","Proxy","_type","namedProxy","defineProperty","positionalProxy","index","helperCapabilities","managerAPI","options","hasValue","hasScheduledEffect","buildCapabilities","hasDestroyable","manager","capabilities","ARGS_CACHES","WeakMap","getArgs","proxy","getValue","argsCache","SimpleArgsProxy","constructor","context","computeArgs","EMPTY_ARGS","createCache","EMPTY_NAMED","EMPTY_POSITIONAL","invokeHelper","definition","owner","getHelperManager","getDebugName","isInternalHelper","bucket","createHelper","cache","isDestroying","isDestroyed","associateDestroyableChild","destroyable","getDestroyable","customHelper","vmArgs","vm","capture","associateDestroyable","createComputeRef","UNDEFINED_REFERENCE","RECOMPUTE_TAG","CLASSIC_HELPER_MANAGERS","_WeakSet","isClassicHelperManager","obj","Helper","FrameworkObject","recompute","join","isHelperFactory","ClassicHelperManager","add","ownerInjection","setOwner","instance","class","ret","deprecateMutationsInTrackingTransaction","compute","consumeTag","setHelperManager","Wrapper","SimpleClassicHelperManager","call","fn","SIMPLE_CLASSIC_HELPER_MANAGER","prototype","helper","helperFn","SafeString","string","toHTML","escape","possible","badChars","escapeChar","chr","escapeExpression","test","htmlSafe","str","isHTMLSafe","isStaticComponentManager","_manager","dynamicLayout","CompileTimeResolverImpl","resolver","lookupHelper","lookupModifier","lookupComponent","definitionHandle","lookupComponentHandle","resolve","getCapabilities","handle","compilable","template","unwrapTemplate","getStaticLayout","wrapped","asWrappedLayout","asLayout","lookupPartial","instrumentationPayload","def","object","outlet","CAPABILITIES","dynamicTag","prepareArgs","createArgs","attributeHook","elementHook","createCaller","dynamicScope","updateHook","createInstance","willDestroy","OutletComponentManager","BaseInternalComponentManager","env","_args","parentStateRef","currentStateRef","self","createConstRef","controller","finalize","_instrumentStart","debugRenderTree","parentState","parentOwner","render","currentOwner","engine","routable","engineBucket","getDebugCustomRenderTree","nodes","getSelf","didRenderLayout","OUTLET_MANAGER","OutletComponentDefinition","createRootOutlet","outletView","ENV","_APPLICATION_TEMPLATE_WRAPPER","WRAPPED_CAPABILITIES","WrappedOutletComponentManager","getTagName","didCreateElement","component","setAttribute","guidFor","WRAPPED_OUTLET_MANAGER","NOOP","ComponentStateBucket","environment","argsTag","finalizer","hasWrappedElement","classRef","argsRevision","valueForTag","rootRef","registerDestructor","destroy","isInteractive","beginUntrackFrame","trigger","endUntrackFrame","clearElementView","clearViewElement","unregister","isTemplateFactory","referenceForParts","parts","isAttrs","childRefFor","childRefFromParts","parseAttributeBinding","microsyntax","colonIndex","indexOf","substring","attribute","installAttributeBinding","operations","isSimple","elementId","createPrimitiveRef","isPath","EMBER_COMPONENT_IS_VISIBLE","createStyleBindingRef","DISPLAY_NONE","SAFE_DISPLAY_NONE","installIsVisibleBinding","inner","isVisibleRef","isVisible","logTrackingStack","style","createClassNameBindingRef","truthy","falsy","isStatic","createSimpleClassNameBindingRef","createColonClassNameBindingRef","path","dasherizedPath","dasherize","ACTIONS","INVOKE","action","restArgs","debugKey","debugLabel","processArgs","makeArgsProcessor","isInvokableRef","makeClosureAction","invokeRef","makeDynamicClosureAction","createUnboundRef","NOOP$1","valuePathRef","actionArgsRef","mergeArgs","map","concat","readValue","valuePath","targetRef","actionRef","typeofAction","actions","label","processComponentArgs","attrs","props","isAction","MutableCell","REF","MUTABLE_CELL","update","val","__rest","s","t","p","hasOwnProperty","getOwnPropertySymbols","propertyIsEnumerable","EMBER_VIEW_REF","aliasIdToElementId","applyAttributeBindings","seen","binding","DEFAULT_LAYOUT","privatize","EMPTY_POSITIONAL_ARGS","debugFreeze","CurlyComponentManager","templateFor","layoutName","factory","_factory","getDynamicLayout","_a","__ARGS__","rest","prepared","ComponentClass","captured","reifyPositional","count","Math","at","EMPTY_ARRAY","callerSelfRef","hasBlock","parentView","view","beginTrackFrame","endTrackFrame","initialRenderInstrumentDetails","addChildView","_transitionTo","processComponentInitializationAssertions","setViewElement","setElementView","bounds","didCreate","rerenderInstrumentDetails","validateTag","setProperties","didUpdateLayout","instrumentDetails","initialRender","CURLY_CAPABILITIES","CURLY_COMPONENT_MANAGER","CurlyComponentDefinition","RootComponentManager","_state","CONSTANT_TAG","ROOT_CAPABILITIES","RootComponentDefinition","getFactoryFor","fullName","EachInWrapper","eachIn","iterable","tagForObject","isProxy","_contentFor","toIterator","toEachInIterator","toEachIterator","isIndexable","isEmberArray","ObjectIterator","fromIndexable","HAS_NATIVE_SYMBOL","isNativeIterable","MapLikeNativeIterator","from","hasForEach","fromForEachable","isObject","ArrayIterator","EmberArrayIterator","ArrayLikeNativeIterator","BoundedIterator","position","isEmpty","memoFor","next","valueFor","memo","array","item","objectAt","isTracking","tagFor","isMapLike","NativeIterator","result","iterator","Symbol","done","_result","toBool$1","predicate","tagForProperty","setGlobalContext","scheduleRevalidate","backburner","ensureInstance","toBool","getProp","_getProp","setProp","getPath","scheduleDestroy","destructor","schedule","scheduleDestroyed","finalizeDestructor","warnIfStyleNotTrusted","constructStyleDeprecationMessage","setTrackingTransactionEnv","debugMessage","keyName","dirtyString","EmberEnvironmentDelegate","enableDebugTooling","_DEBUG_RENDER_TREE","onTransactionCommit","CAPABILITIES$1","asyncLifeCycleCallbacks","asyncLifecycleCallbacks","hasAsyncLifeCycleCallbacks","delegate","hasUpdateHook","hasAsyncUpdateHook","hasDestructors","CustomComponentManager","createComponent","CustomComponentState","updateComponent","didCreateComponent","didUpdateComponent","getContext","CUSTOM_COMPONENT_MANAGER","destroyComponent","CustomManagerDefinition","CAPABILITIES$2","InternalComponentDefinition","InternalManager","_dynamicScope","caller","isConstRef","CAPABILITIES$3","TemplateOnlyComponentManager","NULL_REFERENCE","MANAGER","TemplateOnlyComponentDefinition","helper$1","messageRef","componentAssertionHelper","helper$2","inElementNullCheckHelper","normalizeClassHelper","classNameParts","className","trackArray","normalizeTextValue","buildUntouchableThis","source","assertOnProperty","property","callbackRef","assertCallbackIsFn","invocationArgs","get$1","sourceRef","pathRef","hash","reifyNamed","inlineIf","condition","truthyValue","falsyValue","inlineUnless","log","console","mut","createInvokableRef","QueryParams","readonly","createReadOnlyRef","unbound","MODIFIERS","POINTER_EVENT_TYPE_REGEX","isAllowedEvent","allowedKeys","ActionHelper","registeredActions","ActionManager","registerAction","actionState","actionId","unregisterAction","ActionState","actionArgs","dom","tag","createUpdatableTag","getEventName","getActionArgs","getTarget","implicitTarget","handler","actionName","bubblesVal","preventDefaultVal","allowedKeysVal","shouldBubble","apply","send","ActionModifierManager","uuid","install","actionNameRef","actionPath","actionPathParts","actionLabel","getTag","capabilities$1","optionalFeatures","disableAutoTracking","useArgsProxy","passFactoryToCreate","CustomModifierDefinition","ModifierClass","CUSTOM_INTERACTIVE_MODIFIER_MANAGER","CUSTOM_NON_INTERACTIVE_MODIFIER_MANAGER","InteractiveCustomModifierManager","reifyArgs","createModifier","modifier","debugName","destroyModifier","untrack","installModifier","updateModifier","NonInteractiveCustomModifierManager","untouchableContext","SUPPORTS_EVENT_OPTIONS","div","counter","addEventListener","once","Event","createEvent","initEvent","dispatchEvent","error","OnModifierState","shouldUpdate","updateFromArgs","passive","userProvidedCallbackReference","userProvidedCallback","needsCustomCallback","callback","removeEventListener","bind","adds","removes","OnModifierManager","counters","CAPABILITIES$4","MountManager","templateFactory$$1","buildChildEngineInstance","boot","applicationFactory","factoryFor","controllerFactory","generateControllerFactory","modelRef","MOUNT_MANAGER","MountDefinition","mountHelper","nameRef","names","extra","filter","k","createCapturedArgs","lastName","lastDef","hasRegistration","curry","outletHelper","scope","outletRef","outlets","lastState","stateFor","validate","dict","createDebugAliasRef","instrumentationPayload$1","componentFor","layoutFor","templateFullName","lookupComponentPair","getComponentTemplate","parseUnderscoredName","PARTIALS","templateName","underscored","EmberError","nameParts","lastPart","BUILTINS_HELPERS","if","unless","getDynamicVar","RuntimeResolverImpl","handles","objToHandle","builtInHelpers","componentDefinitionCache","Map","componentDefinitionCount","helperDefinitionCount","builtInModifiers","nextHandle","_lookupComponentDefinition","helper$$1","_lookupHelper","_lookupModifier","partial","_lookupPartial","_name","PartialDefinitionImpl","builtin","getModifierManager","isInternalModifierManager","pair","cachedComponentDefinition","_TEMPLATE_ONLY_GLIMMER_COMPONENTS","isTemplateOnlyComponent","getComponentManager","isInternalComponentManager","hashToArgs","experimentalMacros","_experimentalMacros","registerMacros","macro","refineInlineSyntax","meta","staticComponent","EMPTY_BLOCKS","UNHANDLED","refineBlockSyntax","blocks","NONE","populateMacros","macros","inlines","addMissing","DynamicScope","outletState","child","errorLoopTransaction","didError","RootState","root","runtime","parentElement","builder","getViewId","destroyed","compile","renderMain","nextSibling","unwrapHandle","sync","alwaysRevalidate","isFor","possibleRoot","inTransaction","renderers","_resetRenderers","register","deregister","splice","loopBegin","_scheduleRevalidate","K","renderSettledDeferred","renderSettled","RSVP","defer","getCurrentRunLoop","promise","resolveRenderPromise","loops","loopEnd","_isValid","_RERENDER_LOOP_LIMIT","Renderer","rootTemplate","viewRegistry","destinedForDOM","clientBuilder","_inRenderTransaction","_lastRevision","_destroyed","_rootTemplate","_viewRegistry","_roots","_removedRoots","_builder","runtimeResolver","_runtimeResolver","compileTimeResolver","sharedArtifacts","artifacts","_context","syntaxCompilationContext","runtimeEnvironmentDelegate","_runtime","runtimeContext","appendOperations","DOMTreeConstruction","NodeDOMTreeConstruction","updateOperations","DOMChanges","appendOutletView","_appendDefinition","appendTo","rootState","_renderRoot","remove","cleanupRootFor","roots","_clearAllRoots","getBounds","firstNode","lastNode","getAppendOperations","_renderRootsTransaction","_renderRoots","removedRoots","initialRootsLength","CURRENT_TAG","rootIndex","completedWithoutError","scheduleOnce","_revalidate","InertRenderer","getElement","_view","InteractiveRenderer","TEMPLATES","setTemplates","templates","getTemplates","getTemplate","hasTemplate","setTemplate","InternalComponent","normalizedName","arg","Input","isCheckbox","setComponentManager","loc$1","loc","ComponentTemplate","InputTemplate","OutletTemplate","TOP_LEVEL_NAME","TOP_LEVEL_OUTLET","OutletView","_environment","outletStateTag","main","into","injections","selector","querySelector","setOutletState","setupApplicationRegistry","registry","injection","bootOptions","_renderMode","serializeBuilder","rehydrationBuilder","setupEngineRegistry","optionsForType","instantiate","setComponentManager$1","stringOrFunction","COMPONENT_MANAGER_STRING_LOOKUP","objectPrototype","Object","prototype","counters","_exports","peekCalls","peekPrototypeWalks","setCalls","deleteCalls","metaCalls","metaInstantiated","matchingListenersCalls","observerEventsCalls","addToListenersCalls","removeFromListenersCalls","removeAllListenersCalls","listenersInherited","listenersFlattened","parentListenersUsed","flattenedListenersCalls","reopensAfterFlatten","readableLazyChainsCalls","writableLazyChainsCalls","UNDEFINED","symbol","currentListenerVersion","Meta","constructor","obj","_listenersVersion","_inheritedEnd","_flattenedVersion","_parent","undefined","_descriptors","_mixins","_lazyChains","_values","_revisions","_isInit","source","proto","_listeners","parent","getPrototypeOf","meta","setSourceDestroying","deprecate","id","until","for","since","enabled","setSourceDestroyed","isSourceDestroying","isDestroying","isSourceDestroyed","isDestroyed","setInitializing","unsetInitializing","isInitializing","isPrototypeMeta","_getOrCreateOwnMap","key","create","_getOrCreateOwnSet","Set","_findInheritedMap","subkey","pointer","map","value","get","_hasInInheritedSet","set","has","valueFor","values","setValueFor","revisionFor","revisions","setRevisionFor","revision","writableLazyChainsFor","lazyChains","chains","readableLazyChainsFor","addMixin","mixin","assert","toString","add","hasMixin","forEachMixins","fn","seen","forEach","writeDescriptors","Map","peekDescriptors","possibleDesc","removeDescriptors","forEachDescriptors","addToListeners","eventName","target","method","once","sync","pushListener","removeFromListeners","event","kind","listeners","writableListeners","i","indexOfListener","splice","push","listener","split","flattenedListeners","parentListeners","length","index","unshift","matchingListeners","result","observerEvents","indexOf","metaStore","WeakMap","setMeta","peekMeta","maybeMeta","newMeta","_counters","addListener","obj","eventName","target","method","once","sync","Boolean","assert","meta","addToListeners","removeListener","targetOrFunction","functionOrName","m","removeFromListeners","sendEvent","params","actions","_meta","undefined","meta$$1","peekMeta","matchingListeners","length","i","type","apply","hasListeners","matched","on","args","func","pop","events","every","p","setListeners","AFTER_OBSERVERS","changeEvent","keyName","SYNC_DEFAULT","ENV","_DEFAULT_ASYNC_OBSERVERS","SYNC_OBSERVERS","_exports","Map","ASYNC_OBSERVERS","addObserver","path","isPrototypeMeta","isInitializing","activateObserver","removeObserver","deactivateObserver","getOrCreateActiveObserversFor","observerMap","has","set","registerDestructor","destroyObservers","get","activeObservers","count","split","tag","getChainTagsForKey","tagMetaFor","lastRevision","valueForTag","suspended","DEACTIVATE_SUSPENDED","SCHEDULED_DEACTIVATE","push","observer","delete","size","suspendedObserverDeactivation","resumeObserverDeactivation","revalidateObservers","forEach","lastKnownRevision","flushAsyncObservers","shouldSchedule","currentRevision","CURRENT_TAG","validateTag","sendObserver","schedule","flushSyncObservers","setObserverSuspended","property","CUSTOM_TAG_FOR","enumerableSymbol","SELF_TAG","symbol","tagForProperty","propertyKey","addMandatorySetter","tagFor","setupMandatorySetter","tagForObject","isObject","isDestroyed","toString","CONSTANT_TAG","markObjectAsDirty","dirtyTagFor","PROPERTY_DID_CHANGE","deferred","notifyPropertyChange","value","arguments","beginPropertyChanges","endPropertyChanges","changeProperties","callback","arrayContentWillChange","array","startIdx","removeAmt","addAmt","arrayContentDidChange","notify","addedAmount","removedAmount","delta","previousLength","normalStartIdx","revisionFor","previousLastIndex","lastAffectedIndex","EMPTY_ARRAY","Object","freeze","objectAt","index","Array","isArray","replace","start","deleteCount","items","replaceInNativeArray","CHUNK_SIZE","splice","chunk","slice","arrayObserversHelper","opts","operation","willChange","didChange","hasObservers","hasArrayObservers","addArrayObserver","removeArrayObserver","CHAIN_PASS_THROUGH","_WeakSet","finishLazyChains","key","lazyTags","readableLazyChainsFor","deps","updateTag","getChainTagsForKeys","keys","tagMeta","tags","getChainTags","combine","chainTags","current","currentTagMeta","currentMeta","pathLength","segmentEnd","segment","descriptor","lastSegmentEnd","indexOf","deprecate","until","id","for","since","enabled","arrLength","item","peekDescriptors","altKey","propertyTag","unknownProperty","instanceMeta","source","valueFor","lazyChains","writableLazyChainsFor","rest","substr","placeholderTag","createUpdatableTag","isElementDescriptor","maybeTarget","maybeKey","maybeDesc","nativeDescDecorator","propertyDesc","decorator","setClassicDecorator","ComputedDescriptor","constructor","enumerable","configurable","_dependentKeys","setup","_obj","_propertyDesc","writeDescriptors","teardown","removeDescriptors","COMPUTED_GETTERS","DESCRIPTOR_GETTER_FUNCTION","name","getter","add","DESCRIPTOR_SETTER_FUNCTION","CPSETTER_FUNCTION","COMPUTED_SETTERS","makeComputedDecorator","desc","DecoratorClass","COMPUTED_DECORATOR","maybeMeta","isClassicDecorator","computedDesc","setPrototypeOf","prototype","DECORATOR_DESCRIPTOR_MAP","WeakMap","descriptorForProperty","descriptorForDecorator","dec","END_WITH_EACH_REGEX","expandProperties","pattern","match","dive","prefix","end","newStart","arrayLength","tempArr","substring","after","defineProperty","data","previousDesc","wasDescriptor","defineDecorator","defineValue","writable","setWithMandatorySetter","firstDotIndexCache","Cache","isPath","PROXY_CONTENT","getPossibleMandatoryProxyValue","HAS_NATIVE_PROXY","content","Reflect","isNaN","lastIndexOf","_getPath","_getProp","isObject$$1","isFunction","isObjectLike","deprecateMutationsInTrackingTransaction","isTracking","consumeTag","isEmberArray","root","forSet","parts","part","getWithDefault","defaultValue","url","unkonwnProperty","fakeProxy","setProxy","track","a","tolerant","setPath","lookupDescriptor","currentValue","setUnknownProperty","trim","newRoot","EmberError","join","trySet","DEEP_EACH_REGEX","noop","ComputedProperty","_volatile","_readOnly","_hasConfig","_getter","_setter","maybeConfig","config","objectConfig","_property","initializer","set$$1","setterWrapper","_key","ret","call","passedArgs","addArg","warn","test","revision","untrack","ALLOW_CYCLES","setValueFor","setRevisionFor","_throwReadOnlyError","clobberSet","volatileSet","isComponent","_set","inspect","cachedValue","hadCachedValue","AutoComputedProperty","ComputedDecoratorImpl","Function","readOnly","volatile","prop","computed","autoComputed","isComputed","_globalsComputed","bind","getCachedValueFor","alias","AliasedProperty","AliasDecoratorImpl","oneWay","_keyName","AliasedProperty_readOnlySet","AliasedProperty_oneWaySet","deprecateProperty","object","deprecatedKey","newKey","options","_deprecate","EACH_PROXIES","eachProxyArrayWillChange","idx","removedCnt","addedCnt","eachProxy","arrayWillChange","eachProxyArrayDidChange","arrayDidChange","isNone","isEmpty","none","objectType","isBlank","isPresent","Libraries","_registry","_coreLibIndex","_getLibraryByName","libs","register","version","isCoreLibrary","registerCoreLibrary","deRegister","lib","logVersions","nameLengths","map","maxNameLength","Math","max","debug","spaces","LIBRARIES","libraries","VERSION","getProperties","propertyNames","setProperties","properties","props","propertyName","hasOwnProperty","searchDisabled","flags","_unprocessedNamespaces","unprocessedNamespaces","v","unprocessedMixins","NAMESPACES","NAMESPACES_BY_ID","create","addNamespace","namespace","removeNamespace","getName","context","lookup","findNamespaces","isUppercase","charCodeAt","tryIsNamespace","setName","findNamespace","processAllNamespaces","processNamespace","_processNamespace","Set","namespaces","classToString","calculateToString","isSearchDisabled","setSearchDisabled","flag","setUnprocessedMixins","paths","seen","isNamespace","code","e","str","superclass","getPrototypeOf","a_concat","concat","extractAccessors","getOwnPropertyDescriptor","concatenatedMixinProperties","concatProp","values","base","concats","giveDecoratorSuper","descs","originalGetter","superDesc","superProperty","superGetter","wrap","originalSetter","superSetter","dependentKeys","newProperty","giveMethodSuper","superMethod","applyConcatenatedProperties","baseValue","makeArray","applyMergedProperties","JSON","stringify","newBase","assign","hasFunction","propValue","_super","ROOT","mergeMixins","mixins","keysWithSuper","currentMixin","MIXINS","hasMixin","addMixin","mergeProps","_without","mergings","propKeys","prev","updateObserversAndListeners","followMethodAlias","ALIAS_METHOD","methodName","possibleDesc","fn","observerListenerMetaFor","observers","listeners","updateObserver","updateListener","applyMixin","_hideKeys","isAlias","followed","mixin","Mixin","buildMixinsArray","ownerConstructor","guidFor","seal","M","forEachMixins","reopen","applyPartial","detect","_detect","without","_keys","x","curMixin","targetMixin","some","AliasImpl","ALIASES","aliasMethod","funcOrDef","setObservers","DEBUG_INJECTION_FUNCTIONS","inject","calledAsDecorator","getInjection","owner","getOwner","container","tracked","_desc","isClassicDecorator$$1","fieldDesc","descriptorForField","setter","trackedData","newValue","newDesc","isTracked","TrackedDescriptor","_get","LEGACY_OWNER","_exports","enumerableSymbol","getOwner","object","owner","glimmerGetOwner","undefined","deprecate","id","until","for","since","enabled","setOwner","glimmerSetOwner","ControllerMixin","reopen","concatenatedProperties","queryParams","_qpDelegate","_qpChanged","controller","_prop","dotIndex","indexOf","prop","slice","delegate","value","get","transitionToRoute","args","target","method","transitionTo","apply","prefixRouteNameArg","replaceRoute","replaceWith","_default","_exports","default","_default","_exports","default","create","options","implementation","Boolean","assert","implementationClass","implementations","arguments","AutoLocation","EmberObject","constructor","arguments","implementation","detect","rootURL","charAt","length","assert","detectImplementation","location","history","userAgent","documentMode","global","set","concrete","getOwner","lookup","undefined","willDestroy","concreteImplementation","destroy","_exports","default","reopen","initState","delegateToConcreteImplementation","getURL","setURL","replaceURL","onUpdateURL","formatURL","window","cancelRouterSetup","methodName","args","_a","Boolean","call","options","currentPath","getFullPath","supportsHistory","historyPath","getHistoryPath","substr","replaceState","path","replacePath","supportsHashChange","hashPath","getHashPath","getPath","hash","getHash","query","getQuery","rootURLIndex","indexOf","routeHash","hashParts","split","shift","join","routePath","HashLocation","EmberObject","constructor","arguments","implementation","init","set","_location","window","location","_hashchangeHandler","undefined","getHash","getURL","originalPath","substr","outPath","setURL","path","hash","replaceURL","replace","onUpdateURL","callback","_removeEventListener","bind","lastSetURL","addEventListener","formatURL","url","willDestroy","removeEventListener","_exports","default","popstateFired","_uuid","replace","c","r","v","Math","random","toString","HistoryLocation","EmberObject","constructor","arguments","implementation","rootURL","getHash","location","init","_super","base","document","querySelector","baseURL","hasAttribute","getAttribute","set","window","_popstateHandler","undefined","initState","history","state","path","formatURL","getURL","_previousURL","replaceState","pathname","url","RegExp","search","setURL","pushState","replaceURL","uuid","onUpdateURL","callback","_removeEventListener","addEventListener","willDestroy","removeEventListener","_exports","default","NoneLocation","EmberObject","constructor","arguments","implementation","detect","rootURL","charAt","length","assert","getURL","path","replace","RegExp","setURL","set","onUpdateURL","callback","updateCallback","handleURL","url","formatURL","_exports","default","reopen","getPath","location","pathname","getQuery","search","getHash","hash","undefined","substr","getFullPath","getOrigin","origin","protocol","hostname","port","supportsHashChange","documentMode","global","supportsHistory","userAgent","history","indexOf","Boolean","replacePath","path","replace","ROUTER","symbol","freezeRouteInfo","transition","from","Object","isFrozen","freeze","to","cleanURL","url","rootURL","substr","length","RouterService","Service","_router","router","undefined","owner","getOwner","lookup","setupRouter","constructor","on","trigger","willDestroy","arguments","transitionTo","args","resemblesURL","_doURLTransition","routeName","models","queryParams","extractRouteArgs","_doTransition","replaceWith","method","urlFor","generate","isActive","routerMicrolib","_routerMicrolib","consumeTag","tagFor","isActiveIntent","hasQueryParams","keys","assign","_prepareQueryParams","shallowEqual","state","recognize","indexOf","assert","internalURL","recognizeAndLoad","_exports","default","reopen","Evented","currentRouteName","readOnly","currentURL","location","currentRoute","ROUTER","symbol","RoutingService","Service","router","undefined","owner","getOwner","lookup","setupRouter","hasRoute","routeName","transitionTo","models","queryParams","shouldReplace","transition","_doTransition","method","normalizeQueryParams","_prepareQueryParams","_generateURL","visibleQueryParams","assign","generate","generateURL","_initialTransitionStarted","_e","isActiveForRoute","contexts","routerState","handlers","_routerMicrolib","recognizer","handlersFor","leafName","length","handler","maximumContexts","numberOfContextsAcceptedByHandler","isActiveIntent","_exports","default","reopen","targetState","readOnly","currentState","currentRouteName","currentPath","handlerName","handlerInfos","req","i","names","BucketCache","constructor","cache","Map","has","bucketKey","stash","key","value","bucket","get","undefined","set","lookup","prop","defaultValue","_exports","default","controllerFor","container","controllerName","lookupOptions","lookup","uuid","isCallback","value","isOptions","DSLImpl","constructor","name","options","explicitIndex","parent","enableLoadingSubstates","Boolean","matches","route","_options","_callback","callback","dummyErrorRoute","arguments","length","assert","overrideNameAssertion","indexOf","createRoute","resetNamespace","path","fullName","getFullName","dsl","call","generate","push","url","serialize","parts","split","engineInfo","localFullName","slice","routeInfo","assign","serializeMethod","addRouteForEngine","Error","dslMatches","match","i","to","mount","_name","engineRouteMap","resolveRouteMap","as","instanceId","mountPoint","shouldResetEngineInfo","oldEngineInfo","optionsForChild","childDSL","class","substateName","_exports","default","canNest","generateControllerFactory","owner","controllerName","Factory","factoryFor","class","extend","toString","fullName","register","generateController","instance","lookup","get","info","QueryParams","constructor","values","isQueryParams","_exports","default","ROUTE_CONNECTIONS","_exports","WeakMap","defaultSerialize","model","params","length","object","name","get","test","getProperties","hasDefaultSerialize","route","serialize","Route","EmberObject","constructor","arguments","context","_setRouteName","routeName","fullRouteName","getEngineRouteName","getOwner","_stashNames","routeInfo","dynamicParent","_names","names","qps","namePaths","Array","a","i","qp","scope","parts","_activeQPChanged","value","_router","scopedPropertyName","_updatingQPChanged","urlKey","paramsFor","lookup","undefined","transition","_routerMicrolib","activeTransition","state","STATE_SYMBOL","fullName","assign","queryParams","getQueryParamsFor","Object","keys","reduce","key","assert","serializeQueryParamKey","controllerPropertyName","serializeQueryParam","_urlKey","defaultValueType","_serializeQueryParam","deserializeQueryParam","_deserializeQueryParam","_optionsForQueryParam","prop","resetController","_controller","_isExiting","_transition","exit","deactivate","trigger","teardownViews","_internalReset","isExiting","controller","enter","set","activate","transitionTo","args","prefixRouteNameArg","intermediateTransitionTo","preparedArgs","refresh","replaceWith","setup","controllerName","definedController","controllerFor","generateController","propNames","addQueryParamsObservers","states","_qpDelegate","allowOverrides","stashParamNames","routeInfos","cache","_bucketCache","PARAMS_SYMBOL","allParams","propertyNames","forEach","aQp","map","values","cacheKey","calculateCacheKey","undecoratedDefaultValue","qpValues","setProperties","setupController","_environment","options","shouldRender","renderTemplate","flushAsyncObservers","_qpChanged","stash","beforeModel","afterModel","redirect","contextDidChange","currentModel","sawParams","match","_polyfills","resolveIndex","findModel","deserialize","_params","_paramsFor","find","_skipAssert","owner","modelFor","_name","routable","modelLookupName","prototype","hasOwnProperty","call","resolvedModels","_model","render","renderOptions","buildRenderOptions","push","once","disconnectOutlet","outletName","parentView","outlet","replace","_disconnectOutlet","currentRouteInfos","parent","parentRoute","connections","connection","into","template","willDestroy","buildRouteInfoMetadata","reopenClass","isRouteFactory","routeInfoFor","offset","current","nameOrOptions","isDefaultRender","templateName","isEmpty","_topLevelViewTemplate","LOG_VIEW_LOOKUPS","info","getFullQueryParams","router","_deserializeQueryParams","fullQueryParams","qpValueWasPassedIn","copyDefaultValue","defaultValue","isArray","emberA","slice","mergeEachQueryParams","controllerQP","routeQP","keysAlreadyMergedOrSkippable","type","as","cqpName","newControllerParameterConfiguration","rqpName","newRouteParameterConfiguration","descriptorForProperty","desc","lookupDescriptor","defineProperty","dependentKeyCompat","addObserver","engine","prefix","mountPoint","reopen","ActionHandler","Evented","mergedProperties","store","computed","namespace","modelClass","factoryFor","Boolean","classify","class","_qp","combinedQueryParameterConfiguration","queryParameterConfiguraton","hasRouterDefinedQueryParams","controllerDefinedQueryParameterConfiguration","normalizedControllerQueryParameterConfiguration","normalizeControllerQueryParams","propName","typeOf","defaultValueSerialized","serializedDefaultValue","serializedValue","inactive","active","send","isDestroying","isDestroyed","isTesting","shift","action","actions","apply","queryParamsDidChange","changed","_totalPresent","removed","qpMap","totalChanged","concat","currentState","finalizeQueryParamChange","finalParams","qpMeta","_queryParamsFor","changes","_qpUpdates","qpUpdated","replaceUrl","presentKey","svalue","has","thisQueryParamChanged","queryParamsOnly","replaceConfigValue","thisQueryParamHasDefaultValue","_keepDefaultQueryParamValues","visible","method","routeQpMeta","finalizedController","clear","ROUTER_EVENT_DEPRECATIONS","ROUTER_EVENTS","on","_super","hasDidTransition","hasWillTransition","deprecate","id","until","url","for","since","enabled","_default","default","defaultDidTransition","infos","updatePaths","_cancelSlowTransitionTimer","notifyPropertyChange","set","targetState","once","trigger","get","LOG_TRANSITIONS","console","log","EmberRouter","_routePath","defaultWillTransition","oldInfos","newInfos","transition","K","slice","Array","prototype","EmberObject","constructor","arguments","_didSetupRouter","_initialTransitionStarted","currentURL","currentRouteName","currentPath","currentRoute","_qpCache","Object","create","_qpUpdates","Set","_queuedQPChanges","_toplevelView","_handledErrors","_engineInstances","_engineInfoByRoute","currentState","_resetQueuedQueryParameterChanges","_initRouterJs","location","router","owner","getOwner","seen","PrivateRouter","Router","getRoute","name","routeName","routeOwner","engineInfo","engineInstance","_getEngineInstance","localFullName","fullRouteName","route","lookup","DefaultRoute","factoryFor","class","register","extend","info","fullName","_setRouteName","hasDefaultSerialize","Error","getSerializer","serializeMethod","defaultSerialize","updateURL","path","setURL","didTransition","ROUTER_EVENTS","deprecate","id","until","url","for","since","enabled","willTransition","triggerEvent","routeInfos","ignoreFailure","args","bind","routeWillChange","isIntermediate","to","routeDidChange","transitionDidError","error","wasAborted","isAborted","logAbort","_isErrorHandled","rollback","abort","replaceURL","doReplaceURL","routerMicrolib","_routerMicrolib","dslCallbacks","dsl","_buildDSL","resetNamespace","overrideNameAssertion","i","length","call","map","generate","enableLoadingSubstates","_hasModuleBasedResolver","options","resolveRouteMap","addRouteForEngine","DSL","resolver","Boolean","startRouting","setupRouter","initialURL","undefined","getURL","initialTransition","handleURL","_setupLocation","onUpdateURL","_setOutlets","isDestroying","isDestroyed","currentRouteInfos","defaultParentState","liveRoutes","connections","ROUTE_CONNECTIONS","ownState","representEmptyRoute","j","appended","appendLiveRoute","outlet","render","OutletView","setOutletState","instance","didCreateRootView","_url","split","_doURLTransition","routerJsMethod","didBeginTransition","transitionTo","resemblesURL","assert","models","queryParams","extractRouteArgs","_doTransition","intermediateTransitionTo","replaceWith","method","formatURL","isActive","isActiveIntent","send","hasRoute","reset","willDestroy","destroy","instances","run","_activeQPChanged","queryParameterName","newValue","_fireQueryParamTransition","_updatingQPChanged","add","rootURL","resolvedLocation","implementation","EmberLocation","detect","initState","_serializeQueryParams","forEachQueryParam","key","value","qp","urlKey","serializeQueryParam","type","_serializeQueryParam","typeOf","JSON","stringify","_deserializeQueryParams","prop","deserializeQueryParam","_deserializeQueryParam","defaultType","Number","valueOf","emberA","parse","_pruneDefaultQueryParamValues","qps","_queryParamsFor","serializedDefaultValue","_targetRouteName","_queryParams","_keepDefaultQueryParamValues","targetRouteName","getActiveTargetName","_processActiveTransitionQueryParams","assign","_prepareQueryParams","activeTransition","unchangedQPs","qpUpdates","params","getFullQueryParams","STATE_SYMBOL","has","_fullyScopeQueryParams","_fromRouterService","state","calculatePostTransitionState","_hydrateUnsuppliedQueryParams","_getQPMeta","routeInfo","routeInfoLength","leafRouteName","cached","shouldCache","qpsByUrlKey","qpMeta","qpOther","controllerName","scopedPropertyName","push","finalQPMeta","contexts","len","presentProp","qpLen","appCache","_bucketCache","cacheKey","calculateCacheKey","parts","defaultValue","_scheduleLoadingEvent","originRoute","_slowTransitionTimer","scheduleOnce","_handleSlowTransition","RouterState","cancel","_markErrorAsHandled","_clearHandledError","delete","instanceId","mountPoint","engineInstances","hasRegistration","buildChildEngineInstance","routable","boot","forEachRouteAbove","callback","defaultActionHandlers","willResolveModel","_routeInfos","routeInfoWithError","errorRouteName","findRouteStateName","errorSubstateName","findRouteSubstateName","logError","targetName","loading","routeInfoWithSlowLoading","loadingRouteName","loadingSubstateName","pivotHandler","_error","initialMessage","errorArgs","errorThrown","message","stack","_router","substateName","substateNameFull","routeHasBeenDefined","stateName","stateNameFull","localName","routerHasRoute","ownerHasRoute","EmberError","eventWasHandled","handler","actionHandler","actions","apply","defaultHandler","emberRouter","applyIntent","isResolved","serialize","context","appController","APP_CTRL_ROUTER_PROPS","defineProperty","reopenClass","intersectionMatches","a1","a2","nameParts","oldNameParts","shift","join","routerState","promise","catch","qpCache","hasOwnProperty","findLiveRoute","test","outlets","outletName","renderOptions","wasUsed","target","into","alreadyAppended","main","reopen","Evented","computed","ROUTER_EVENT_DEPRECATIONS","_default","_exports","default","RouterState","constructor","emberRouter","router","routerJsState","isActiveIntent","routeName","models","queryParams","state","undefined","Object","keys","length","visibleQueryParams","assign","_prepareQueryParams","shallowEqual","_exports","default","ALL_PERIODS_REGEX","extractRouteArgs","args","slice","possibleQueryParams","length","queryParams","Object","prototype","hasOwnProperty","call","pop","routeName","shift","models","getActiveTargetName","router","routeInfos","activeTransition","STATE_SYMBOL","state","name","stashParamNames","targetRouteName","recogHandlers","_routerMicrolib","recognizer","handlersFor","dynamicParent","i","routeInfo","names","route","_stashNames","_calculateCacheValuePrefix","prefix","part","prefixParts","split","currPrefix","currPart","join","indexOf","calculateCacheKey","parts","values","suffixes","cacheValuePrefix","value","partRemovedPrefix","substr","get","replace","normalizeControllerQueryParams","qpMap","accumulateQueryParamDescriptors","_desc","accum","desc","tmp","as","key","singleDesc","scope","assign","resemblesURL","str","prefixRouteNameArg","owner","getOwner","mountPoint","routable","EmberError","shallowEqual","a","b","k","aCount","bCount","TYPE_ORDER","undefined","null","boolean","number","string","array","object","instance","function","class","date","spaceship","a","b","diff","compare","v","w","type1","typeOf","type2","Comparable","detect","constructor","res","localeCompare","vLen","length","wLen","len","Math","min","i","r","getTime","_copy","obj","deep","seen","copies","ret","loc","indexOf","push","Array","isArray","slice","length","Copyable","detect","copy","Date","getTime","EmberObject","assert","key","Object","prototype","hasOwnProperty","call","substring","deprecate","id","until","url","FUNCTION_PROTOTYPE_EXTENSIONS","ENV","EXTEND_PROTOTYPES","Function","Object","defineProperties","prototype","property","configurable","enumerable","writable","value","deprecate","id","until","url","computed","arguments","observes","observer","on","RSVP","configure","callback","promise","backburner","schedule","cb","_rsvpErrorQueue","on","onerrorDefault","reason","error","errorFor","overrideDispatch","getDispatchOverride","errorThrown","unwrapErrorThrown","name","assert","message","Error","Object","defineProperty","value","enumerable","_default","_exports","default","isEqual","a","b","Date","getTime","contentFor","proxy","content","get","updateTag","tagForObject","_default","_exports","default","Mixin","create","init","_super","arguments","setProxy","willDestroy","set","isTruthy","computed","Boolean","CUSTOM_TAG_FOR","key","addMandatorySetter","meta","tagMetaFor","tag","tagFor","_propertyKey","setupMandatorySetter","tags","isObject","push","tagForProperty","combine","unknownProperty","setUnknownProperty","value","m","isInitializing","isPrototypeMeta","defineProperty","assert","ActionHandler","Mixin","create","mergedProperties","send","actionName","args","isDestroying","isDestroyed","assert","actions","shouldBubble","apply","target","get","arguments","_default","_exports","default","EMPTY_ARRAY","Object","freeze","identityFunction","item","uniqBy","array","key","isArray","assert","ret","A","seen","Set","getter","get","forEach","val","has","add","push","iter","value","valueProvided","arguments","length","Boolean","findIndex","predicate","startAt","len","index","objectAt","find","callback","target","bind","undefined","any","every","cb","indexOf","withNaNCheck","removeAt","replace","insertAt","_obj","obj","HAS_NATIVE_PROXY","possibleProxyContent","PROXY_CONTENT","setInterval","Array","ArrayMixin","detect","type","typeOf","nonEnumerableComputed","property","computed","enumerable","mapBy","map","next","Mixin","create","Enumerable","init","_super","setEmberArray","objectsAt","indexes","idx","set","firstObject","readOnly","lastObject","slice","beginIndex","endIndex","object","lastIndexOf","addArrayObserver","opts","removeArrayObserver","hasArrayObservers","descriptor","configurable","hasListeners","arrayContentWillChange","startIdx","removeAmt","addAmt","arrayContentDidChange","call","getEach","setEach","x","i","filter","reject","apply","filterBy","rejectBy","findBy","isEvery","isAny","reduce","initialValue","invoke","methodName","args","toArray","compact","includes","sortBy","sortKeys","sort","a","b","propA","propB","compareValue","compare","uniq","without","MutableArray","_exports","MutableEnumerable","clear","start","pushObject","pushObjects","objects","popObject","shiftObject","unshiftObject","unshiftObjects","reverseObjects","reverse","setObjects","removeObject","loc","curObject","removeObjects","beginPropertyChanges","endPropertyChanges","addObject","included","addObjects","NativeArray","Observable","deleteCount","items","replaceInNativeArray","ignore","keys","prototype","ENV","EXTEND_PROTOTYPES","arr","_default","default","_default","_exports","default","Mixin","create","compare","containerProxyMixin","__container__","ownerInjection","lookup","fullName","options","destroy","container","join","schedule","_super","factoryFor","_default","_exports","default","Mixin","create","_default","_exports","default","Mixin","create","copy","_default","_exports","default","Mixin","create","_default","_exports","default","Mixin","create","on","name","target","method","addListener","one","trigger","args","sendEvent","off","removeListener","has","hasListeners","_default","_exports","default","Mixin","create","Enumerable","_default","_exports","default","Mixin","create","get","keyName","getProperties","args","concat","set","value","setProperties","hash","beginPropertyChanges","endPropertyChanges","notifyPropertyChange","addObserver","key","target","method","sync","removeObserver","hasObserverFor","hasListeners","getWithDefault","defaultValue","incrementProperty","increment","isNaN","parseFloat","isFinite","assert","decrementProperty","decrement","toggleProperty","cacheFor","meta","peekMeta","valueFor","tap","proxy","promise","setProperties","isFulfilled","isRejected","then","value","isDestroyed","isDestroying","content","reason","_default","_exports","default","Mixin","create","isPending","computed","get","readOnly","isSettled","EmberError","set","key","promiseAlias","catch","finally","name","arguments","_default","_exports","default","Mixin","create","__registry__","resolveRegistration","fullName","options","isValidFullName","assert","resolve","register","registryAlias","unregister","hasRegistration","registeredOption","registerOptions","registeredOptions","registerOptionsForType","registeredOptionsForType","inject","name","arguments","_default","_exports","default","Mixin","create","target","action","actionContext","actionContextObject","computed","get","value","undefined","context","lookup","triggerAction","opts","getTarget","ret","send","concat","assert","instance","_target","ARRAY_OBSERVER_MAPPING","willChange","didChange","ArrayProxy","EmberObject","init","arguments","_objectsDirtyIndex","_objects","_lengthDirty","_length","_arrangedContent","_arrangedContentIsUpdating","_arrangedContentTag","_arrangedContentRevision","_lengthTag","_arrTag","PROPERTY_DID_CHANGE","_revalidate","CUSTOM_TAG_FOR","key","tagFor","willDestroy","_removeArrangedContentArrayObserver","objectAtContent","idx","objectAt","get","replace","amt","objects","assert","replaceContent","arrangedContent","length","i","consumeTag","value","removedCount","added","Array","content","_invalidate","_updateArrangedContentArray","oldLength","newLength","arrayContentWillChange","arrayContentDidChange","_addArrangedContentArrayObserver","isDestroyed","isArray","addArrayObserver","removeArrayObserver","_arrangedContentArrayWillChange","_arrangedContentArrayDidChange","proxy","removedCnt","addedCnt","dirtyIndex","validateTag","arrangedContentTag","valueForTag","isObject","combine","tagForProperty","_exports","default","reopen","MutableArray","alias","startIdx","removeAmt","addAmt","reopen","Mixin","prototype","wasApplied","WeakSet","prototypeMixinMap","WeakMap","initCalled","undefined","destroyCalled","Set","ensureDestroyCalled","instance","has","destroy","initialize","obj","properties","m","meta","assert","concatenatedProperties","mergedProperties","hasConcatenatedProps","length","hasMergedProps","keyNames","Object","keys","i","keyName","value","isClassicDecorator","toString","indexOf","ActionHandler","detect","possibleDesc","descriptorForProperty","isDescriptor","baseValue","makeArray","concat","assign","set","setUnknownProperty","defineProperty","add","init","unsetInitializing","observerEvents","activateObserver","event","sync","sendEvent","CoreObject","constructor","owner","OWNER","proto","self","HAS_NATIVE_PROXY","unknownProperty","messageFor","property","String","Proxy","get","target","receiver","PROXY_CONTENT","isInternalSymbol","Reflect","call","registerDestructor","willDestroy","setInitializing","LEGACY_OWNER","args","applyMixin","isDestroyed","isDestroying","delete","hasToStringExtension","toStringExtension","extension","ret","getName","getFactoryFor","guidFor","extend","Class","apply","PrototypeMixin","arguments","create","props","extra","getOwner","setFactoryFor","flattenProps","willReopen","p","reopenClass","superclass","detectInstance","metaForProperty","key","_meta","eachComputedProperty","callback","binding","empty","forEachDescriptors","name","descriptor","enumerable","prototypeMixin","ownerConstructor","c","getPrototypeOf","Function","parent","classToString","setName","isClass","isMethod","initProperties","j","k","_onLookup","injectedPropertyAssertion","debugContainerKey","type","split","desc","DEBUG_INJECTION_FUNCTIONS","_getter","_lazyInjections","injections","namespace","source","specifier","HAS_NATIVE_SYMBOL","instanceOwner","instanceFactory","INIT_FACTORY","_default","_exports","default","Namespace","EmberObject","init","addNamespace","toString","name","get","findNamespaces","getName","undefined","guidFor","setName","nameClasses","processNamespace","destroy","removeNamespace","_exports","default","prototype","isNamespace","NAMESPACES","NAMESPACES_BY_ID","processAll","processAllNamespaces","byName","findNamespace","EmberObject","CoreObject","_debugContainerKey","factory","getFactoryFor","undefined","fullName","_exports","default","setName","Observable","apply","prototype","FrameworkObject","INIT_WAS_CALLED","symbol","ASSERT_INIT_WAS_CALLED","DebugFrameworkObject","init","arguments","assert","addListener","ObjectProxy","FrameworkObject","_exports","default","PrototypeMixin","reopen","_ProxyMixin","TYPE_MAP","toString","Object","prototype","typeOf","item","undefined","ret","call","CoreObject","detect","Error","Date","intern","str","obj","key","isObject","value","_uuid","uuid","GUID_PREFIX","OBJECT_GUIDS","WeakMap","NON_OBJECT_GUIDS","Map","GUID_KEY","_exports","Date","now","generateGuid","prefix","guid","set","guidFor","get","undefined","type","HAS_NATIVE_SYMBOL","Symbol","GENERATED_SYMBOLS","isInternalSymbol","possibleSymbol","indexOf","enumerableSymbol","debugName","id","Math","floor","random","symbol","push","makeDictionary","parent","dict","Object","create","getDebugName","getFunctionName","fn","functionName","name","match","Function","prototype","toString","call","replace","getObjectName","className","constructor","length","getPrimitiveName","String","getDebugName$1","HAS_SUPER_PATTERN","fnToString","checkHasSuper","sourceAvailable","func","test","HAS_SUPER_MAP","ROOT","freeze","hasSuper","ObserverListenerMeta","listeners","observers","OBSERVERS_LISTENERS_MAP","createObserverListenerMetaFor","meta","observerListenerMetaFor","setObservers","setListeners","IS_WRAPPED_FUNCTION_SET","_WeakSet","wrap","superFunc","has","_wrap","superWrapper","orig","_super","ret","apply","arguments","add","objectToString","functionToString","isArray","Array","keys","objectKeys","stringify","JSON","LIST_LIMIT","DEPTH_LIMIT","SAFE_KEY","inspect","inspectValue","depth","seen","valueIsArray","inspectArray","inspectObject","inspectKey","s","i","arr","lookupDescriptor","keyName","current","descriptor","getOwnPropertyDescriptor","getPrototypeOf","canInvoke","methodName","tryInvoke","args","deprecate","until","for","since","available","url","method","isArray$1","makeArray","NAMES","setName","getName","objectToString$1","isNone","r","k","HAS_NATIVE_PROXY","Proxy","PROXIES","isProxy","setProxy","object","Cache","limit","store","size","misses","hits","purge","clear","EMBER_ARRAYS","setEmberArray","isEmberArray","setupMandatorySetter","teardownMandatorySetter","setWithMandatorySetter","isElementKey","isPositiveInt","isStringInt","num","parseInt","SEEN_TAGS","MANDATORY_SETTERS","propertyIsEnumerable","tag","desc","configurable","writable","setters","hadOwnProperty","hasOwnProperty","defineProperty","enumerable","false","assert","setter","MUTABLE_CELL","_exports","symbol","dictionary","EmberObject","extend","componentFor","name","owner","options","fullName","factoryFor","layoutFor","templateFullName","lookup","mixinObj","send","actionName","args","isDestroying","isDestroyed","assert","action","actions","shouldBubble","apply","target","get","arguments","inspect","SEND_ACTION","sendAction","contexts","deprecate","id","until","url","undefined","validateAction","triggerAction","actionContext","component","MUTABLE_CELL","value","toString","_default","_exports","default","Mixin","create","_default","_exports","default","Mixin","create","childViews","nativeDescDecorator","configurable","enumerable","get","getChildViews","appendChild","view","addChildView","EMPTY_ARRAY","Object","freeze","_default","_exports","default","Mixin","create","concatenatedProperties","init","_super","arguments","descriptorForProperty","undefined","Array","isArray","classNameBindings","assert","classNames","KEY_EVENTS","Enter","Escape","_default","_exports","default","Mixin","create","TargetActionSupport","value","attributeBindings","placeholder","disabled","maxlength","init","_super","arguments","on","_elementValueDidChange","bubbles","interpretKeyEvents","event","method","key","set","element","change","insertNewline","sendAction","cancel","focusIn","focusOut","keyPress","keyUp","keyDown","eventName","view","action","get","MUTABLE_CELL","undefined","SEND_ACTION","message","deprecate","id","until","url","triggerAction","actionContext","stopPropagation","_default","_exports","default","Mixin","create","_transitionTo","state","priorState","_currentState","currentState","_states","_state","exit","enter","K","mixin","concatenatedProperties","nearestOfType","klass","view","parentView","isOfType","Mixin","detect","constructor","nearestWithProperty","property","rerender","_currentState","element","nativeDescDecorator","configurable","enumerable","get","renderer","getElement","appendTo","selector","target","hasDOM","document","querySelector","assert","matches","node","parentNode","nodeType","appendChild","append","body","elementId","willInsertElement","didInsertElement","willClearRender","destroy","_super","arguments","willDestroyElement","didDestroyElement","parentViewDidChange","tagName","init","descriptorForProperty","undefined","guidFor","render","handleEvent","eventName","evt","JQUERY_INTEGRATION","$","sel","jQueryDisabled","deprecate","id","until","url","jQuery","_default","_exports","default","create","ActionManager","registeredActions","ROOT_ELEMENT_CLASS","ROOT_ELEMENT_SELECTOR","EVENT_MAP","mouseenter","mouseleave","_default","_exports","default","EmberObject","extend","events","assign","touchstart","touchmove","touchend","touchcancel","keydown","keyup","keypress","mousedown","mouseup","contextmenu","click","dblclick","focusin","focusout","submit","input","change","dragstart","drag","dragenter","dragleave","dragover","drop","dragend","MOUSE_ENTER_LEAVE_MOVE_EVENTS","mousemove","rootElement","init","_super","owner","getOwner","environment","lookup","isInteractive","assert","_eventHandlers","Object","create","setup","addedEvents","_rootElement","_finalEvents","get","undefined","set","rootElementSelector","JQUERY_INTEGRATION","jQueryDisabled","document","querySelector","classList","contains","tagName","target","parentNode","nodeType","add","jQuery","is","selector","closest","length","find","addClass","TypeError","event","prototype","hasOwnProperty","call","setupHandler","eventName","viewHandler","view","getElementView","result","handleEvent","actionHandler","actionId","getAttribute","actions","ActionManager","registeredActions","attributes","attributeCount","i","attr","item","attrName","name","indexOf","concat","value","index","action","handler","mappedEventType","origEventType","createFakeEvent","eventType","fakeEvent","createEvent","initMouseEvent","detail","screenX","screenY","clientX","clientY","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","defineProperty","enumerable","handleMappedEvent","related","hasAttribute","addEventListener","preventDefault","stopPropagation","cancelBubble","on","evt","addJQueryEventDeprecation","currentTarget","handledActions","lastIndexOf","push","destroy","removeEventListener","off","remove","arguments","toString","jQuery","jQueryDisabled","_exports","JQUERY_INTEGRATION","ENV","_JQUERY_INTEGRATION","hasDOM","context","imports","event","addProp","forEach","eventName","fixHooks","props","undefined","addJQueryEventDeprecation","jqEvent","JQUERY_INTEGRATION","HAS_NATIVE_PROXY","boundFunctions","Map","Proxy","get","target","name","EmberENV","_JQUERY_INTEGRATION","global","deprecate","id","until","url","originalEvent","has","set","bind","isSimpleClick","event","modifier","shiftKey","metaKey","altKey","ctrlKey","secondaryClick","which","constructStyleDeprecationMessage","affectedStyle","getRootViews","owner","registry","lookup","rootViews","Object","keys","forEach","id","view","parentView","push","getViewId","tagName","elementId","guidFor","ELEMENT_VIEW","WeakMap","VIEW_ELEMENT","getElementView","element","get","getViewElement","setElementView","set","setViewElement","clearElementView","delete","clearViewElement","CHILD_VIEW_IDS","getChildViews","getOwner","collectChildViews","initChildViews","childViews","Set","addChildView","parent","child","undefined","add","views","isDestroying","isDestroyed","getViewBounds","renderer","getBounds","getViewRange","bounds","range","document","createRange","setStartBefore","firstNode","setEndAfter","lastNode","getViewClientRects","getClientRects","getViewBoundingClientRect","getBoundingClientRect","elMatches","_exports","Element","prototype","matches","el","selector","assert","call","contains","a","b","current","parentNode","CoreView","FrameworkObject","extend","Evented","ActionHandler","isView","_states","states","init","_super","arguments","_state","_currentState","preRender","renderer","Error","parentView","instrumentDetails","hash","object","toString","containerKey","_debugContainerKey","view","trigger","name","args","method","apply","has","reopenClass","isViewFactory","_default","_exports","default","states","Object","freeze","preRender","inDOM","hasElement","destroying","_default","_exports","default","_default","appendChild","EmberError","handleEvent","rerender","destroy","_default2","_exports","default","Object","freeze","destroying","assign","_default","appendChild","EmberError","rerender","_default2","_exports","default","Object","freeze","hasElement","assign","_default","rerender","view","renderer","destroy","remove","handleEvent","eventName","event","has","flaggedInstrument","join","trigger","_default2","_exports","default","Object","freeze","inDOM","assign","hasElement","enter","view","renderer","register","elementId","teardownMandatorySetter","Object","defineProperty","configurable","enumerable","get","set","value","EmberError","_default","_exports","default","freeze","preRender","assign","_default","_default2","_exports","default","Object","freeze","DefaultResolver","GLOBALS_RESOLVER","EmberObject","create","props","init","deprecate","until","id","url","_parseNameCache","dictionary","normalize","fullName","type","name","split","length","assert","result","replace","m","charAt","toUpperCase","resolve","parsedName","parseName","resolveMethodName","resolved","resolveOther","root","LOG_RESOLVER","_logLookup","VALIDATED_TYPES","route","component","view","service","validationAttributes","factoryFlag","expectedType","Boolean","_parseName","fullNameWithoutType","namespace","get","lastSlashIndex","lastIndexOf","dirname","slice","parts","namespaceName","capitalize","join","findNamespace","classify","TypeError","lookupDescription","description","makeToString","factory","toString","useRouterNaming","resolveTemplate","templateName","getTemplate","decamelize","resolveView","resolveController","resolveRoute","resolveModel","className","resolveHelper","resolveMain","knownForType","suffix","typeRegexp","RegExp","known","knownKeys","Object","keys","index","test","containerName","translateToContainerFullname","namePrefix","dasherizedName","dasherize","prototype","found","symbol","padding","Array","info","_default","_exports","default","ApplicationInstance","EngineInstance","extend","application","customEvents","rootElement","init","_super","arguments","_watchInstance","register","instantiate","_bootSync","options","_booted","BootOptions","setupRegistry","location","set","router","runInstanceInitializers","isInteractive","setupEventDispatcher","constructor","__registry__","computed","lookup","readOnly","didCreateRootView","view","appendTo","startRouting","setupRouter","handleURL","url","dispatcher","applicationCustomEvents","get","instanceCustomEvents","assign","setup","getURL","visit","bootOptions","__container__","handleTransitionResolve","shouldRender","renderSettled","then","handleTransitionReject","error","name","_routerMicrolib","activeTransition","Error","message","setURL","willDestroy","_unwatchInstance","reopenClass","registry","toEnvironment","document","jQuery","environment","hasDOM","_renderMode","isBrowser","undefined","Boolean","env","_default","_exports","default","librariesRegistered","Application","Engine","extend","rootElement","_document","hasDOM","window","document","eventDispatcher","customEvents","autoboot","_globalsMode","_applicationInstances","init","_super","arguments","$","jQuery","registerLibraries","ENV","LOG_VERSION","libraries","logVersions","_readinessDeferrals","_booted","Set","Boolean","_prepareForGlobalsMode","waitForDOMReady","buildInstance","options","isDestroyed","assert","isDestroying","base","application","ApplicationInstance","create","_watchInstance","instance","add","_unwatchInstance","delete","Router","_buildDeprecatedInstance","__deprecatedInstance__","__container__","readyState","schedule","callback","removeEventListener","run","addEventListener","domReady","_bootSync","deferReadiness","advanceReadiness","once","didBecomeReady","boot","_bootPromise","_","defer","_bootResolver","RSVP","promise","runInitializers","runLoadHooks","error","reject","reset","handleReset","join","isTesting","processAllNamespaces","setNamespaceSearchDisabled","ready","startRouting","resolve","willDestroy","_loaded","undefined","size","forEach","i","destroy","clear","visit","url","then","catch","reopenClass","buildRegistry","registry","commonSetupRegistry","setupApplicationRegistry","register","dictionary","Route","EventDispatcher","injection","AutoLocation","HashLocation","HistoryLocation","NoneLocation","P","BucketCache","RouterService","JQUERY_INTEGRATION","jQueryDisabled","registerCoreLibrary","jquery","_default","_exports","default","loadHooks","ENV","EMBER_LOAD_HOOKS","loaded","_loaded","_exports","onLoad","name","callback","object","push","runLoadHooks","window","CustomEvent","event","detail","dispatchEvent","forEach","DEFAULT_FEATURES","_exports","EMBER_LIBRARIES_ISREGISTERED","EMBER_IMPROVED_INSTRUMENTATION","EMBER_NAMED_BLOCKS","EMBER_GLIMMER_HELPER_MANAGER","EMBER_GLIMMER_INVOKE_HELPER","EMBER_MODERNIZED_BUILT_IN_COMPONENTS","FEATURES","assign","ENV","isEnabled","feature","value","ENABLE_OPTIONAL_FEATURES","featureValue","TemplateOnlyComponent","constructor","moduleName","toString","_exports","templateOnlyComponent","isTemplateOnlyComponent","component","Controller","FrameworkObject","extend","ControllerMixin","inject","metalInject","arguments","_default","_exports","default","MODEL","symbol","_default","_exports","default","Mixin","create","ActionHandler","isController","target","store","model","computed","get","set","key","value","noop","assert","_exports","info","warn","debug","deprecate","debugSeal","debugFreeze","runInDebug","setDebugFunction","getDebugFunction","deprecateFunc","arguments","length","type","callback","desc","test","EmberError","message","console","log","args","options","func","apply","obj","Object","seal","isFrozen","freeze","_deprecate","_warn","_warnIfUsingStrippedFeatureFlags","isTesting","window","isFirefox","isChrome","addEventListener","document","documentElement","dataset","emberExtension","downloadURL","captureRenderTree","app","env","expect","lookup","rendererType","isInteractive","renderer","debugRenderTree","capture","registerHandler","_exports","missingOptionsDeprecation","missingOptionsIdDeprecation","missingOptionsUntilDeprecation","missingOptionsForDeprecation","missingOptionsSinceDeprecation","deprecate","FOR_MISSING_DEPRECATIONS","Set","SINCE_MISSING_DEPRECATIONS","handler","genericRegisterHandler","formatMessage","_message","options","message","id","url","logDeprecationToConsole","updatedMessage","console","warn","captureErrorForStack","Error","stack","__fail__","fail","e","logDeprecationStackTrace","next","ENV","LOG_STACKTRACE_ON_DEPRECATION","stackStr","error","replace","split","shift","slice","join","raiseOnDeprecation","RAISE_ON_DEPRECATION","test","assert","Boolean","until","for","has","add","since","available","invoke","_default","default","HANDLERS","_exports","registerHandler","invoke","type","callback","nextHandler","message","options","test","handlerForType","testing","isTesting","setTesting","value","Boolean","registerHandler","_exports","warn","missingOptionsDeprecation","missingOptionsIdDeprecation","handler","genericRegisterHandler","logWarning","message","console","test","options","arguments","length","assert","Boolean","id","invoke","_default","default","SEND_ACTION","_exports","EMBER_EXTEND_PROTOTYPES","LOGGER","MERGE","ROUTER_EVENTS","COMPONENT_MANAGER_STRING_LOOKUP","JQUERY_INTEGRATION","ALIAS_METHOD","APP_CTRL_ROUTER_PROPS","FUNCTION_PROTOTYPE_EXTENSIONS","MOUSE_ENTER_LEAVE_MOVE_EVENTS","EMBER_COMPONENT_IS_VISIBLE","PARTIALS","GLOBALS_RESOLVER","registerDestructor","destroyable","destructor","_registerDestructor","unregisterDestructor","_unregisterDestructor","props","obj","properties","key","push","Engine","Namespace","extend","RegistryProxyMixin","init","_super","arguments","buildRegistry","_initializersRan","ensureInitializers","runInitializers","buildInstance","options","base","EngineInstance","create","registry","__registry__","constructor","initializer","instanceInitializer","_runInitializer","name","Boolean","assert","initialize","runInstanceInitializers","instance","bucketName","cb","initializersByName","get","initializers","graph","DAG","i","length","add","before","after","topsort","reopenClass","Object","instanceInitializers","buildInitializerMethod","namespace","Registry","resolver","resolverFor","set","register","instantiate","commonSetupRegistry","setupEngineRegistry","Resolver","ResolverClass","DefaultResolver","humanName","superclass","undefined","attrs","canInvoke","optionsForType","singleton","Controller","injection","P","RoutingService","ContainerDebugAdapter","ComponentLookup","_default","_exports","default","EngineInstance","EmberObject","extend","RegistryProxyMixin","ContainerProxyMixin","base","init","_super","arguments","guidFor","application","registry","__registry__","Registry","fallback","__container__","container","owner","_booted","boot","options","_bootPromise","RSVP","Promise","resolve","_bootSync","getEngineParent","assert","cloneParentDependencies","setupRegistry","runInstanceInitializers","lookup","constructor","unregister","fullName","reset","buildChildEngineInstance","name","Engine","EmberError","engineInstance","buildInstance","setEngineParent","parent","registrations","forEach","key","register","resolveRegistration","env","instantiate","singletons","P","isInteractive","push","inject","reopenClass","injection","_default","_exports","default","ENGINE_PARENT","symbol","getEngineParent","engine","setEngineParent","parent","_default","_exports","default","Error","subscribers","_exports","cache","populateListeners","name","listeners","subscriber","i","length","regex","test","push","object","time","perf","window","performance","fn","now","mozNow","webkitNow","msNow","oNow","bind","Date","isCallback","value","instrument","p1","p2","p3","_payload","callback","binding","arguments","call","payload","finalizer","_instrumentStart","NOOP","withFinalizer","flaggedInstrument","_name","e","exception","payloadFunc","payloadArg","STRUCTURED_PROFILE","ENV","timeName","console","beforeValues","timestamp","listener","before","_instrumentEnd","after","timeEnd","subscribe","pattern","paths","split","path","regexes","join","RegExp","unsubscribe","index","splice","reset","wrapGetterSetter","target","key","desc","get","originalGet","descriptorForProperty","undefined","assert","propertyTag","tagFor","ret","tag","track","call","updateTag","consumeTag","dependentKeyCompat","isElementDescriptor","decorator","_desc","_meta","isClassicDecorator","set","setClassicDecorator","BINDINGS_MAP","WeakMap","setupAction","target","key","actionFn","constructor","undefined","proto","Object","prototype","hasOwnProperty","call","parentActions","actions","assign","get","bindings","Map","set","fn","bind","action","desc","isElementDescriptor","decorator","meta","isClassicDecorator","assert","setClassicDecorator","value","expandPropertiesToArray","predicateName","properties","expandedProperties","extractProperty","entry","push","i","length","property","indexOf","assert","expandProperties","generateComputedWithPredicate","name","predicate","isElementDescriptor","dependentKeys","computedFunc","computed","lastIdx","value","get","empty","dependentKey","Array","prototype","slice","call","arguments","isEmpty","notEmpty","none","isNone","not","bool","Boolean","match","regexp","test","equal","gt","gte","lt","lte","and","_exports","or","oneWay","alias","readOnly","deprecatingAlias","options","key","deprecate","set","reduceMacro","dependentKey","callback","initialValue","name","test","assert","computed","arr","get","reduce","readOnly","arrayMacro","additionalDependentKeys","propertyName","replace","value","isArray","emberA","call","multiArrayMacro","_dependentKeys","every","dependentKeys","map","key","sum","isElementDescriptor","Array","prototype","slice","arguments","item","max","Math","Infinity","min","undefined","mapBy","propertyKey","filter","filterBy","length","uniq","args","seen","Set","forEach","has","add","push","uniqBy","list","uniqByArray","union","_exports","intersect","arrays","array","results","pop","candidate","i","found","j","setDiff","setAProperty","setBProperty","setA","setB","x","indexOf","collect","res","val","sort","itemsKey","sortDefinition","argumentsValid","customSort","propertySort","comparator","y","sortPropertiesKey","cp","autoComputed","sortProperties","s","itemsKeyIsAtThis","normalizedSortProperties","normalizeSortProperties","items","sortByNormalizedSortProperties","p","prop","direction","split","itemA","itemB","result","compare","merge","_exports","MERGE","deprecatedMerge","undefined","assign","target","i","arguments","length","arg","updates","Object","keys","prop","_assign","_default","_exports","default","merge","original","updates","deprecate","id","until","url","for","since","enabled","props","Object","keys","prop","i","length","_default","_exports","default","currentRunLoop","getCurrentRunLoop","onBegin","current","onEnd","next","flushAsyncObservers","flush","queueName","_rsvpErrorQueue","_exports","Math","random","Date","now","replace","queues","backburner","Backburner","defaultQueue","onErrorTarget","onErrorMethod","run","arguments","_globalsRun","bind","join","curried","methodOrTarget","methodOrArg","length","type","assert","args","concat","begin","end","schedule","hasScheduledTimers","hasTimers","cancelTimers","later","once","unshift","scheduleOnce","push","cancel","timer","debounce","throttle","inject","metalInject","arguments","Service","FrameworkObject","extend","reopenClass","isServiceFactory","_default","_exports","default","STRING_DASHERIZE_REGEXP","STRING_DASHERIZE_CACHE","Cache","key","decamelize","replace","STRING_CAMELIZE_REGEXP_1","STRING_CAMELIZE_REGEXP_2","CAMELIZE_CACHE","_match","_separator","chr","toUpperCase","match","toLowerCase","STRING_CLASSIFY_REGEXP_1","STRING_CLASSIFY_REGEXP_2","STRING_CLASSIFY_REGEXP_3","CLASSIFY_CACHE","str","replace1","replace2","initialChar","parts","split","i","length","join","STRING_UNDERSCORE_REGEXP_1","STRING_UNDERSCORE_REGEXP_2","UNDERSCORE_CACHE","STRING_CAPITALIZE_REGEXP","CAPITALIZE_CACHE","STRING_DECAMELIZE_REGEXP","DECAMELIZE_CACHE","_fmt","formats","idx","_s","argIndex","parseInt","r","undefined","String","loc","deprecate","id","until","for","url","since","available","Array","isArray","arguments","prototype","slice","call","getString","w","get","dasherize","camelize","classify","underscore","capitalize","ENV","EXTEND_PROTOTYPES","deprecateEmberStringPrototypeExtension","name","fn","message","Object","defineProperties","configurable","enumerable","writeable","value","args","STRINGS","setStrings","strings","getStrings","getString","name","InstructionEncoderImpl","constructor","buffer","size","encode","type","machine","Error","first","arguments","length","push","i","op","patch","position","target","_exports","DEBUG","_exports","CI","scheduleRevalidate","_exports","scheduleDestroy","scheduleDestroyed","toIterator","toBool","getProp","setProp","getPath","warnIfStyleNotTrusted","globalContextWasSet","setGlobalContext","context","Error","assertGlobalContextWasSet","testOverrideGlobalContext","originalGlobalContext","_default","default","Storage","constructor","array","next","add","element","slot","length","prev","deref","pointer","drop","_exports","Stack","vec","clone","slice","sliceFrom","start","end","copy","from","to","writeRaw","pos","value","getRaw","reset","len","NodeDOMTreeConstruction","DOMTreeConstruction","constructor","doc","createHTMLDocument","setupUselessElement","insertHTMLBefore","parent","reference","html","raw","document","createRawHTMLSection","insertBefore","ConcreteBounds","createElement","tag","setAttribute","element","name","value","_exports","TEXT_NODE","NEEDS_EXTRA_CLOSE","WeakMap","currentNode","cursor","nextSibling","lastChild","previousSibling","SerializeBuilder","NewElementBuilder","arguments","serializeBlockDepth","__openBlock","tagName","depth","__appendComment","__closeBlock","__appendHTML","first","openIndex","indexOf","tr","slice","last","__appendText","string","current","nodeType","closeElement","has","delete","openElement","set","constructing","flushElement","pushRemoteElement","cursorId","dom","script","serializeBuilder","env","forInitialRender","arr","value","type","strArray","serializable","other","label","immediate","prim","DEFAULT_CAPABILITIES","_exports","dynamicLayout","dynamicTag","prepareArgs","createArgs","attributeHook","elementHook","dynamicScope","createCaller","updateHook","createInstance","wrapped","willDestroy","MINIMAL_CAPABILITIES","resolveLayoutForTag","tag","resolver","meta","owner","component","lookupComponent","handle","compilable","capabilities","PushPrimitiveReference","PushPrimitive","op","primitive","p","isSmallInt","Call","params","hash","atNames","$v0","DynamicScope","names","block","YieldBlock","to","PushYieldableBlock","PushSymbolTable","symbolTable","PushCompilable","InvokeStaticBlock","InvokeStaticBlockWithStack","callerCount","parameters","calleeCount","length","count","Math","min","out","push","i","$fp","table","ContentTypeSwitchCases","callback","clauses","when","match","clause","slice","Replayable","args","body","actions","ReplayableIf","ifTrue","ifFalse","pushBuilderOp","context","encoder","concat","option$1","op1","startLabels","stopLabels","exhausted","NONE","pushCompileOp","action","concatStatements","compileOp","CompileBlockOp","CompileInlineOp","DynamicComponent","IfResolvedComponent","compileBlock","inline","ifUnhandled","returned","compileInline","isHandled","definition","attrs","blocks","curried","attrsBlock","compilableBlock","compiled","Array","isArray","namedBlocks","InvokeDynamicComponent","name","staticTemplate","dynamicTemplate","orElse","syntax","program","compilable$$1","compilableBlocks","Error","pushOp","constants","op3","undefined","op2","Compilers","constructor","funcs","add","func","compile","sexp","index","EXPRESSIONS","parts","part","start","offset","isComponent","problem","end","restArgs","curryComponent","nameOrError","expectString","kind","andThen","span","isGetContextualFree","opcode","expr","head","upvars","sym","path","withPath","freeVar","pushResolutionOp","operation","concatExpressions","compileSimpleArgs","ifResolved","expressionContext","asPartial","resolvedHelper","lookupHelper","expressions","expression$$1","meta$$1","CompilePositional","flags","EMPTY_ARRAY","val","resolved","resolve","error","lookupModifier","UNHANDLED","isNoAction","item","assertNever","populateBuiltins","inlines","_hash","get","has","$sp","keys","values","key","_params","StaticComponentHelper","_name","EMPTY_BLOCKS","MacrosImpl","Blocks","Inlines","dict","addMissing","missing","macroContext","handled","isGet","pathName","simplePathName","syntaxCompilationContext","artifacts","macros","CompileTimeCompilationContextImpl","templateCompilationContext","EncoderImpl","STATEMENTS","INFLATE_ATTR_TABLE","INFLATE_TAG_TABLE","inflateTagName","tagName","inflateAttrName","attrName","stringName","namespace","layoutHandle","template","InvokeStaticComponent","layout","InvokeComponent","evalInfo","evalSymbols","PLACEHOLDER_HANDLE","CompilableTemplateImpl","statements","maybeCompile","symbols","hasEval","result","compileStatements","patchStdlibs","syntaxContext","sCompiler","commit","heap","size","overloadBlock","containing","NamedBlocksImpl","Object","with","assign","hasAny","desc","JSON","stringify","isGetFree","named","scopeSize","buffer","malloc","pushPlaceholder","pushStdlib","finishMalloc","debugCompiler","LabelsImpl","labels","targets","target","at","patch","address","isCompileOpcode","isResolutionOpcode","isSimpleOpcode","isErrorOpcode","labelsStack","Stack","InstructionEncoderImpl","errors","encode","isMachineOp","operands","map","operand","currentLabels","constant","current","pop","array","encodeImmediate","encodeHandle","unreachable","CompileArgs","blockNames","moduleName","ATTRS_BLOCK","default","bailOut","$s0","blockSymbols","argSymbols","argNames","symbol","indexOf","WrappedComponent","attrsBlockNumber","WithSavedRegister","$s1","blockForLayout","StaticComponent","namedBlocks$$1","bindableBlocks","bindableAtNames","invokePreparedComponent","hasBlock","populateLayout","InvokeBareComponent","register","StdLib","main","trustingGuardedAppend","cautiousGuardedAppend","trusting-append","cautious-append","getAppend","trusting","StdAppend","compileStd","mainHandle","build","STDLIB_META","stdContext","stdlib","PartialDefinitionImpl","getPartial","partial","unwrapTemplate","WrappedBuilder","attrsBlockIndex","m","clientId","templateCacheCounters","cacheHit","cacheMiss","templateFactory","id","templateId","parsedBlock","ownerlessTemplate","templateCache","WeakMap","factory","parse","TemplateImpl","set","__id","__meta","parsedLayout","wrappedLayout","referrer","asLayout","asWrappedLayout","WELL_KNOWN_EMPTY_ARRAY","Object","freeze","STARTER_CONSTANTS","constants","WELL_KNOWN_EMPTY_ARRAY_POSITION","indexOf","CompileTimeConstantImpl","constructor","values","slice","indexMap","Map","map","value","index","get","undefined","push","set","array","length","handles","Array","i","serializable","str","JSON","stringify","toPool","_exports","RuntimeConstantsImpl","pool","getValue","handle","getArray","reified","n","getSerializable","s","parse","ConstantsImpl","arguments","reifiedArrs","names","RuntimeOpImpl","heap","offset","size","rawType","getbyaddr","isMachine","type","op1","op2","op3","encodeTableInfo","scopeSize","state","changeState","info","newState","PAGE_SIZE","RuntimeHeapImpl","serializedHeap","buffer","table","Int32Array","getaddr","address","sizeof","scopesizeof","hydrateHeap","HeapImpl","placeholders","stdlibs","capacity","item","sizeCheck","setbyaddr","malloc","finishMalloc","gethandle","free","compact","compactedSize","Size","SIZE_MASK","j","pushPlaceholder","valueFunc","pushStdlib","operand","patchPlaceholders","patchStdlibs","stdlib","capture","RuntimeProgramImpl","constants$$1","_opcode","opcode","arr","start","end","ret","program","artifacts","REFERENCE","_exports","symbol","ReferenceImpl","constructor","type","tag","lastRevision","INITIAL","children","compute","update","createPrimitiveRef","value","ref","CONSTANT_TAG","lastValue","debugLabel","String","UNDEFINED_REFERENCE","undefined","NULL_REFERENCE","TRUE_REFERENCE","FALSE_REFERENCE","createConstRef","createUnboundRef","createComputeRef","createReadOnlyRef","isUpdatableRef","valueForRef","isInvokableRef","createInvokableRef","inner","updateRef","isConstRef","_ref","validateTag","track","valueForTag","consumeTag","childRefFor","_parentRef","path","parentRef","child","Map","get","parent","isDict","getProp","val","setProp","set","childRefFromParts","root","parts","reference","i","length","createDebugAliasRef","NULL_IDENTITY","KEY","_","index","INDEX","IDENTITY","item","keyForPath","Error","uniqueKeyFor","getPath","makeKeyFor","key","WeakMapWithPrimitives","weakMap","_weakMap","WeakMap","primitiveMap","_primitiveMap","isObject","IDENTITIES","identityForNthOccurence","count","identities","identity","keyFor","seen","memo","createIteratorRef","listRef","iterable","Array","isArray","ArrayIterator","maybeIterator","toIterator","EMPTY_ARRAY","IteratorWrapper","createIteratorItemRef","_value","createTag","newValue","dirtyTag","isEmpty","next","nextValue","iterator","pos","current","kind","INNER_VM","symbol","DESTROYABLE_STACK","STACKS","REGISTERS","HEAP","CONSTANTS","ARGS","PC","CursorImpl","constructor","element","nextSibling","_exports","ConcreteBounds","parentNode","first","last","parentElement","firstNode","lastNode","SingleNodeBounds","node","move","bounds","reference","parent","current","next","insertBefore","clear","removeChild","normalizeStringValue","value","isEmpty","String","shouldCoerce","isString","undefined","toString","isSafeString","toHTML","isNode","nodeType","isFragment","normalizeProperty","slotName","type","normalized","lower","toLowerCase","preferAttr","tagName","ATTR_OVERRIDES","INPUT","form","autocorrect","list","SELECT","OPTION","TEXTAREA","LABEL","FIELDSET","LEGEND","OBJECT","OUTPUT","BUTTON","propName","tag","toUpperCase","badProtocols","badTags","badTagsForDataURI","badAttributes","badAttributesForDataURI","has","array","item","indexOf","checkURI","attribute","checkDataURI","requiresSanitization","protocolForUrl","URL","parse","nodeURL","url","protocol","_url","error","parsingNode","document","createElement","href","sanitizeAttributeValue","str","dynamicAttribute","attr","namespace","isTrusting","namespaceURI","name","DebugStyleAttributeManager","buildDynamicAttribute","buildDynamicProperty","SafeDynamicAttribute","SimpleDynamicAttribute","SafeDynamicProperty","isUserInputValue","InputValueDynamicAttribute","isOptionSelected","OptionSelectedDynamicAttribute","DefaultDynamicProperty","DynamicAttribute","set","dom","_env","normalizedValue","normalizeValue","__setAttribute","update","removeAttribute","setAttribute","normalizedName","__setProperty","removeAttributeNS","env","sanitized","input","currentValue","option","selected","warnIfStyleNotTrusted","DESTROYABLE_META","WeakMap","push","collection","newItem","Array","isArray","iterate","fn","i","length","remove","message","collectionIsItem","collectionContainsItem","Error","index","splice","getDestroyableMeta","destroyable","meta","get","parents","children","eagerDestructors","destructors","state","source","associateDestroyableChild","child","isDestroying","parentMeta","childMeta","registerDestructor","destructor","eager","destructorsKey","unregisterDestructor","destroy","scheduleDestroy","scheduleDestroyed","removeChildFromParent","destroyChildren","isDestroyed","enableDestroyableTracking","assertDestroyablesDestroyed","isTesting","Map","map","undestroyed","forEach","objectsToString","debugToString","join","destroyables","_a","First","Last","CURSOR_STACK","NewElementBuilder","constructing","operations","Stack","modifierStack","blockStack","pushElement","getAppendOperations","updateOperations","getDOM","forInitialRender","cursor","initialize","resume","block","reset","stack","pushLiveBlock","pushSimpleBlock","debugBlocks","toArray","hasBlocks","size","popElement","pop","SimpleLiveBlock","pushUpdatableBlock","UpdatableBlockImpl","pushBlockList","LiveBlockList","isRemote","didAppendBounds","__openBlock","popBlock","finalize","__closeBlock","openElement","__openElement","flushElement","modifiers","__flushElement","pushModifiers","didOpenElement","closeElement","willCloseElement","popModifiers","pushRemoteElement","guid","__pushRemoteElement","_guid","lastChild","RemoteLiveBlock","popRemoteElement","didAppendNode","appendText","string","__appendText","text","createTextNode","__appendNode","__appendFragment","fragment","firstChild","ret","__appendComment","__appendHTML","html","insertHTMLBefore","appendDynamicHTML","trustedContent","appendDynamicText","untrustedContent","appendDynamicFragment","appendDynamicNode","appendComment","createComment","setStaticAttribute","setDynamicAttribute","trusting","nesting","boundList","head","tail","_element","_node","_bounds","_stack","clientBuilder","DynamicScopeImpl","bucket","assign","key","PartialScopeImpl","slots","callerScope","evalScope","partialMap","root","self","refs","UNDEFINED_REFERENCE","init","sized","getSelf","getSymbol","symbol$$1","getBlock","getEvalScope","getPartialMap","bind","bindSelf","bindSymbol","bindBlock","bindEvalScope","bindPartialMap","bindCallerScope","scope","getCallerScope","slice","RangeError","AppendOpcodes","evaluateOpcode","fillNulls","add","evaluate","kind","syscall","debugBefore","vm","opcode","params","opName","sp","pc","fetchValue","$pc","isMachine","debugAfter","pre","operation","APPEND_OPCODES","AbstractOpcode","initializeGuid","UpdatingOpcode","createConcatRef","partsRefs","createComputeRef","parts","valueForRef","castToString","op1","handle","helper","runtime","resolver","resolve","args","popJs","loadValue","$v0","expr","referenceForSymbol","pushJs","table","_name","getValue","locals","ref","childRefFor","symbols","pushRootScope","_key","_block","pushNull","isUndefinedReference","handleOrCompilable","pushSmallInt","TRUE_REFERENCE","FALSE_REFERENCE","hasBlockParams","parameters","count","out","offset","capabilityFlagsFrom","capabilities","dynamicLayout","dynamicTag","prepareArgs","createArgs","attributeHook","elementHook","dynamicScope","createCaller","updateHook","createInstance","wrapped","willDestroy","managerHasCapability","_manager","capability","hasCapability","INNER","ARGS$1","CURRIED_COMPONENT_DEFINITIONS","_WeakSet","isCurriedComponentDefinition","definition","CurriedComponentDefinition","inner","positional","unwrapCurriedComponentDefinition","_definition","realloc","curriedArgs","prepend","named","merge","resolveCurriedComponentDefinition","instance","unwrappedDefinition","manager","getCapabilities","curry","spec","resolveComponent","owner","lookupComponent","hasStaticLayout","hasCustomDebugRenderTreeLifecycle","DEFAULT_CAPABILITIES","MINIMAL_CAPABILITIES","createClassListRef","createCurryComponentRef","lastValue","lastDefinition","curry$1","VMArgumentsImpl","PositionalArgumentsImpl","NamedArgumentsImpl","blocks","BlockArgumentsImpl","empty","base","$sp","setup","names","blockNames","positionalCount","atNames","namedCount","namedBase","positionalBase","blocksCount","blocksBase","at","pos","newBase","copy","capture","EMPTY_POSITIONAL","EMPTY_NAMED","_references","EMPTY_ARRAY","position","references","other","additions","_names","_atNames","toSyntheticName","toAtName","idx","createDebugAliasRef","dict","keys","Object","newNames","toSymbolName","internalValues","_symbolNames","internalTag","CONSTANT_TAG","values","CapturedBlockArgumentsImpl","symbolNames","createCapturedArgs","reifyNamed","reified","reifyPositional","reifyArgs","freeze","create","EMPTY_ARGS","pushChildScope","popScope","pushDynamicScope","popDynamicScope","decodeHandle","primitive","isNonPrimitiveHandle","pushRaw","NULL_REFERENCE","createPrimitiveRef","register","op2","dup","load","fetch","getArray","bindDynamicScope","enter","exit","_table","getSerializable","compile","pushFrame","pushScope","invokingScope","localsCount","call","target","Boolean","isConstRef","goto","updateWith","Assert","comparison","peekSmallInt","peekJs","valueRef","toBool","throw","AssertFilter","filter","JumpIfNotModifiedOpcode","arguments","lastRevision","INITIAL","didModify","alwaysRevalidate","validateTag","consumeTag","valueForTag","BeginTrackFrameOpcode","debugLabel","beginTrackFrame","EndTrackFrameOpcode","endTrackFrame","elements","elementRef","insertBeforeRef","guidRef","associateDestroyable","$t0","flush","modifier","scheduleInstallModifier","d","getDestroyable","addModifier","getTag","UpdateModifierOpcode","lastUpdated","scheduleUpdateModifier","_value","op3","_namespace","UpdateDynamicAttributeOpcode","initialized","updateRef","COMPONENT_INSTANCE","_owner","capturedArgs","lookup","component","$t1","resolvedDefinition","unreachable","_blockNames","flags","_state","preparedArgs","hasDefaultBlock","UpdateComponentOpcode","getDebugName","beginCacheGroup","ComponentElementOperations","attributes","classes","deferred","setDeferredAttr","mergeClasses","allStringClasses","didCreateElement","selfRef","debugRenderTree","peek","template","getStaticLayout","getDynamicLayout","nodes","getDebugCustomRenderTree","DebugRenderTreeUpdateOpcode","getTagName","layout","unwrapTemplate","asWrappedLayout","asLayout","context","symbolTable","isErrHandle","invocation","popSmallInt","hasEval","callerNames","atName","symbolName","blockName","reverse","didRender","DebugRenderTreeDidRenderOpcode","mgr","didRenderLayout","didCreate","DidUpdateLayoutOpcode","commitCacheGroup","_vm","didUpdateLayout","didUpdate","DynamicTextContent","textNode","nodeValue","toContentType","rawValue","debugCallback","console","info","callback","setDebuggerCallback","cb","resetDebuggerCallback","ScopeInspector","evalInfo","slot","path","split","reduce","r","part","_symbols","_evalInfo","inspector","constants$$1","outerSymbols","lookupPartial","vmHandle","getPartial","partialSymbols","outerScope","partialScope","unwrapHandle","relativeStart","elseTarget","listRef","keyRef","keyValue","iteratorRef","createIteratorRef","iterator","enterList","exitList","breaks","registerItem","enterItem","SimpleComponentManager","_args","_dynamicScope","_caller","_hasDefaultBlock","TEMPLATE_ONLY_COMPONENT","SVG_INTEGRATION_POINTS","foreignObject","desc","title","BLACKLIST_TABLE","DOMOperations","setupUselessElement","uselessElement","isElementInSVGNamespace","isHTMLIntegrationPoint","createElementNS","comment","prev","previousSibling","insertAdjacentHTML","HTMLElement","data","moveNodesBefore","SVG_NAMESPACE","applySVGInnerHTMLFix","DOMClass","svgNamespace","shouldApplyFix","div","DOMChangesWithSVGInnerHTMLFix","fixSVG","wrappedHtml","clearElement","svg","e","childNodes","applyTextNodeMergingFix","shouldApplyFix$1","DOMChangesWithTextNodeMergingFix","uselessComment","didSetUselessComment","nextPrevious","Text","mergingTextDiv","appendChild","WHITESPACE","doc","isWhitespace","test","DOM","TreeConstruction","setAttributeNS","appliedTreeContruction","DOMTreeConstruction","DOMChangesImpl","insertAfter","IDOMChanges","helper$1","DOMChanges","GUID","Ref","id","release","label","DebugRenderTreeImpl","roots","Set","begin","internalNode","nodeFor","commit","captureRefs","delete","captured","captureNode","captureTemplate","captureBounds","moduleName","_a$1","TRANSACTION","TransactionImpl","scheduledInstallManagers","scheduledInstallModifiers","scheduledUpdateModifierManagers","scheduledUpdateModifiers","createdComponents","createdManagers","updatedComponents","updatedManagers","modifierTag","track","install","updateTag","EnvironmentImpl","options","delegate","isInteractive","enableDebugTooling","appendOperations","_b","transaction","onTransactionCommit","runtimeContext","artifacts","program","RuntimeProgramImpl","constants","heap","inTransaction","getDynamicVar","nameRef","initializeRegistersWithSP","LowLevelVM","externs","registers","currentOpSize","fetchRegister","loadRegister","setPc","$ra","$fp","popFrame","pushSmallFrame","popSmallFrame","getaddr","returnTo","return","nextStatement","operationSize","evaluateOuter","evaluateInner","evaluateMachine","evaluateSyscall","UpdatingVM","frameStack","execute","opcodes","handler","hasErrored","runInTrackingTransaction","_execute","resetTracking","try","frame","ops","UpdatingVMFrame","handleException","ResumableVMStateImpl","resumeCallback","builder","BlockOpcode","TryOpcode","elementStack","updating","result","pushUpdating","drop","ListItemOpcode","memo","retained","updateReferences","shouldRemove","ListBlockOpcode","iterableRef","opcodeMap","marker","lastIterator","initializeChild","sync","itemMap","currentOpcodeIndex","seenIndex","retainItem","itemOpcode","moveItem","seenUnretained","insertItem","deleteItem","before","currentSibling","exceptionHandler","RenderResultImpl","rerender","InnerStack","Stack$1","js","concat","start","end","from","to","writeJs","writeRaw","encodeHandle","writeSmallInt","encodeImmediate","writeTrue","writeFalse","writeNull","writeUndefined","getJs","getRaw","getSmallInt","decodeImmediate","isHandle","len","EvaluationStackImpl","restore","snapshot","isSmallInt","pushTrue","pushFalse","pushUndefined","n","top","items","log","_a$2","Stacks","cache","VM","s0","s1","t0","t1","v0","initVM","assertGlobalContextWasSet","evalStack","isLowLevelRegister","$s0","$s1","initial","treeBuilder","scopeSize","scopesizeof","vmState","captureState","guard","tryOpcode","didEnter","createIteratorItemRef","memoRef","listBlock","addr","popUpdating","tryUpdating","done","TemplateIteratorImpl","renderSync","renderMain","renderInvocation","argList","argNames","renderComponent","stdlib","main","SERIALIZATION_FIRST_NODE_STRING","isSerializationFirstNode","RehydratingCursor","startingBlockDepth","candidate","injectedOmittedNode","openBlockDepth","RehydrateBuilder","unmatchedAttributes","blockDepth","currentCursor","isOpenBlock","startingBlockOffset","getBlockDepth","newBlockDepth","newCandidate","closingNode","isCloseBlock","newClosingBlock","disableRehydration","enableRehydration","clearMismatch","closeBlockDepth","getBlockDepthWithOffset","isRehydrating","candidateBounds","markerBounds","newBounds","possibleEmptyMarker","isEmpty$1","_candidate","isMarker","isTextNode","isSeparator","isComment","isElement","isSameNodeType","unmatched","findByName","getMarker","querySelector","cursorId","lastIndexOf","parseInt","rehydrationBuilder","TEMPLATES","getPrototypeOf","setComponentTemplate","factory","obj","getComponentTemplate","pointer","TemplateOnlyComponent","templateOnlyComponent","isTemplateOnlyComponent","OWNER","getOwner","object","setOwner","INTERNAL_MANAGERS","isInternalComponentManager","isInternalModifierManager","isInternalHelper","BaseInternalComponentManager","_component","_operations","_bucket","BaseInternalModifierManager","COMPONENT_MANAGERS","FROM_CAPABILITIES","MODIFIER_MANAGERS","HELPER_MANAGERS","OWNER_MANAGER_INSTANCES","UNDEFINED_MANAGER_INSTANCES","getPrototypeOf$1","setManager","getManager","getManagerInstanceForOwner","managers","setModifierManager","getModifierManager","JSON","stringify","setHelperManager","getHelperManager","setComponentManager","getComponentManager","buildCapabilities","EMPTY_ARRAY","_exports","Object","freeze","debugAssert","test","msg","Error","deprecate","desc","console","warn","GUID","initializeGuid","object","_guid","ensureGuid","dict","create","isDict","u","undefined","isObject","DictSet","constructor","add","obj","delete","StackImpl","stack","current","size","length","push","item","pop","len","nth","from","isEmpty","toArray","Stack","clearElement","parent","firstChild","next","nextSibling","removeChild","SERIALIZATION_FIRST_NODE_STRING","isSerializationFirstNode","node","nodeValue","keys","objKeys","assign","i","arguments","assignment","j","key","fillNulls","count","arr","Array","values","vals","HAS_NATIVE_SYMBOL","Symbol","unwrap","val","expect","message","unreachable","exhausted","value","tuple","args","symbol","Math","floor","random","Date","now","strip","strings","out","string","dynamic","String","lines","split","match","shift","min","Infinity","line","leading","stripped","slice","join","isHandle","isNonPrimitiveHandle","constants","isSmallInt","encodeNegative","num","decodeNegative","encodePositive","decodePositive","encodeHandle","decodeHandle","encodeImmediate","decodeImmediate","forEach","x","unwrapHandle","handle","error","errors","problem","span","start","end","unwrapTemplate","template","result","extractHandle","isOkHandle","isErrHandle","weakSet","_WeakSet","WeakSet","WeakSetPolyFill","_map","WeakMap","set","has","castToSimple","isDocument","isElement","castToBrowser","sugaryCheck","document","ownerDocument","checkNode","checkError","check","nodeType","isMatch","stringCheckNode","isArray","some","c","HTMLElement","SVGElement","Element","toUpperCase","tagName","toLowerCase","debugToString","getFunctionName","fn","functionName","name","Function","prototype","toString","call","replace","getObjectName","className","getPrimitiveName","debugToString$1","beginTestSteps","endTestSteps","verifySteps","logStep","assertNever","log","trace","JSON","stringify","indexable","input","symbol","Symbol","key","Math","floor","random","Date","now","symbolFor","for","getGlobal","globalThis","self","window","global","Error","unwrap","val","undefined","beginTrackingTransaction","endTrackingTransaction","runInTrackingTransaction","deprecateMutationsInTrackingTransaction","resetTrackingTransaction","setTrackingTransactionEnv","assertTagNotConsumed","markTagAsConsumed","logTrackingStack","CONSUMED_TAGS","TRANSACTION_STACK","TRANSACTION_ENV","assert","message","deprecate","console","warn","debugMessage","obj","keyName","objName","name","className","constructor","String","dirtyString","_exports","env","_polyfills","assign","_debugLabel","WeakMap","debugLabel","parent","length","push","pop","stack","fn","didError","value","nthIndex","str","pattern","n","startingPos","i","indexOf","makeTrackingErrorMessage","transaction","join","trackingStack","current","unshift","map","label","index","Array","_tag","has","set","tag","subtag","subtags","forEach","get","currentTransaction","e","updateStackBegin","start","end","substr","CONSTANT","INITIAL","VOLATILE","NaN","$REVISION","bump","COMPUTE","valueForTag","validateTag","snapshot","TYPE","ALLOW_CYCLES","allowsCycles","MonomorphicTagImpl","type","revision","lastChecked","lastValue","isUpdating","subtagBufferCache","combine","tags","CONSTANT_TAG","isArray","max","subtagValue","updateTag","_subtag","dirtyTag","disableConsumptionAssertion","scheduleRevalidate","DIRTY_TAG","UPDATE_TAG","createTag","createUpdatableTag","isConstTag","VolatileTag","VOLATILE_TAG","CurrentTag","CURRENT_TAG","tag1","tag2","tag3","isObjectLike","u","TRACKED_TAGS","dirtyTagFor","meta","propertyTag","tagMetaFor","Map","tagFor","Tracker","Set","last","add","size","tagsArr","CURRENT_TRACKER","OPEN_TRACK_FRAMES","beginTrackFrame","debuggingContext","endTrackFrame","beginUntrackFrame","endUntrackFrame","resetTracking","isTracking","consumeTag","FN","LAST_VALUE","TAG","SNAPSHOT","DEBUG_LABEL","createCache","debuggingLabel","cache","getValue","assertCache","isConst","assertTag","fnName","track","callback","untrack","trackedData","initializer","values","hasInitializer","getter","call","setter","GLIMMER_VALIDATOR_REGISTRATION","globalObj","isMachineOp","value","isOp","$pc","_exports","$ra","$fp","$sp","$s0","$s1","$t0","$t1","$v0","isLowLevelRegister","register","SavedRegister","TemporaryRegister","is","variant","value","Array","isArray","isFlushElement","_exports","isAttribute","val","isArgument","isHelper","expr","isGet","EMPTY_ATTRS","indexOfAttribute","attributes","namespaceURI","localName","i","length","attr","adjustAttrName","toLowerCase","getAttribute","index","value","removeAttribute","splice","setAttribute","element","prefix","push","name","specified","ChildNodes","constructor","node","stale","_length","len","child","firstChild","nextSibling","oldLen","item","cloneNode","deep","clone","nodeFrom","nextChild","appendChild","nodeType","SimpleNodeImpl","ownerDocument","nodeName","nodeValue","copyAttrs","attrs","copy","insertBefore","parentNode","newChild","refChild","invalidate","insertBetween","lastChild","previousSibling","removeChild","oldChild","removeBetween","childNodes","_childNodes","undefined","insertFragment","fragment","parseQualifiedName","qualifiedName","indexOf","slice","tagName","children","insertAdjacentHTML","position","html","raw","Error","getAttributeNS","setAttributeNS","removeAttributeNS","doctype","documentElement","head","body","createElement","toUpperCase","createElementNS","namespace","createTextNode","text","createComment","createRawHTMLSection","createDocumentFragment","createHTMLDocument","document","_default","_exports","default","SET_TIMEOUT","setTimeout","NOOP","buildNext","flush","Promise","autorunPromise","resolve","then","MutationObserver","iterations","observer","node","document","createTextNode","observe","characterData","data","buildPlatform","clearNext","fn","ms","clearTimeout","timerId","now","Date","next","NUMBER","TIMERS_OFFSET","isCoercableNumber","suspect","type","test","getOnError","options","onError","onErrorTarget","onErrorMethod","findItem","target","method","collection","index","i","l","length","findTimerItem","getQueueItems","items","queueItemLength","queueItemPositionOffset","queueItems","maybeError","queueItem","args","stack","undefined","push","binarySearch","time","timers","start","end","middle","QUEUE_ITEM_LENGTH","Queue","constructor","name","globalOptions","_queueBeingFlushed","targetQueues","Map","_queue","stackFor","entry","sync","before","after","errorRecordedForStack","clear","invoke","invokeWithOnError","mustYield","hasWork","cancel","queue","targetQueueMap","get","delete","splice","pushUnique","localQueueMap","set","queueIndex","_getDebugInfo","debugEnabled","debugInfo","call","apply","error","DeferredActionQueues","queueNames","queues","queueNameIndex","reduce","queueName","schedule","onceFlag","Error","fromAutorun","numberOfQueues","iteratorDrain","iterator","result","done","value","noop","DISABLE_SCHEDULE","Object","freeze","parseArgs","arguments","argsIndex","methodOrTarget","methodOrArgs","len","Array","parseTimerArgs","wait","last","parseInt","pop","parseDebounceArgs","isImmediate","UUID","beginCount","endCount","beginEventCount","endEventCount","runCount","joinCount","deferCount","scheduleCount","scheduleIterableCount","deferOnceCount","scheduleOnceCount","setTimeoutCount","laterCount","throttleCount","debounceCount","cancelTimersCount","cancelCount","autorunsCreatedCount","autorunsCompletedCount","deferredActionQueuesCreatedCount","nestedDeferredActionQueuesCreated","Backburner","DEBUG","currentInstance","instanceStack","_eventCallbacks","begin","_timerTimeoutId","_timers","_autorun","_autorunStack","defaultQueue","_defaultQueue","_onBegin","onBegin","_onEnd","onEnd","_boundRunExpiredTimers","_runExpiredTimers","bind","_boundAutorunEnd","_end","builder","_buildPlatform","_platform","counters","events","autoruns","created","completed","run","join","defer","scheduleIterable","deferOnce","scheduleOnce","later","throttle","debounce","cancelTimers","loops","total","nested","previousInstance","current","_cancelAutorun","_trigger","on","eventName","callback","TypeError","callbacks","off","callbackFound","_run","_join","_args","_ensureInstance","iterable","_later","argIndex","executeAt","_reinstallTimerTimeout","_clearTimerTimeout","hasTimers","timer","timerType","_cancelLaterTimer","ensureInstance","getDebugInfo","autorun","map","deferredActionQueue","nextInstance","finallyAlreadyCalled","plannedNextQueue","_scheduleAutorun","id","_installTimerTimeout","arg1","arg2","_scheduleExpiredTimers","n","minExpiresAt","Math","max","_default","_exports","default","DAG","_vertices","Vertices","prototype","add","key","value","before","after","Error","vertices","v","val","addEdge","i","length","addEdges","each","callback","walk","topsort","_default","_exports","default","stack","IntStack","path","result","l","vertex","idx","undefined","out","flag","w","check","cb","reset","visit","msg_1","start","search","_a","push","index","pop","pushIncoming","incomming","indices","n","setPrototypeOf","Object","getPrototypeOf","hasReflectConstruct","Reflect","construct","nativeWrapperCache","Map","wrapNativeSuper","Class","has","get","Wrapper","prototype","create","constructor","value","enumerable","writable","configurable","set","classCallCheck","instance","Constructor","TypeError","inheritsLoose","subClass","superClass","taggedTemplateLiteralLoose","strings","raw","slice","_defineProperties","target","props","i","length","descriptor","defineProperty","key","createClass","protoProps","staticProps","undefined","assertThisInitialized","self","ReferenceError","possibleConstructorReturn","call","objectDestructuringEmpty","obj","createSuper","Derived","Super","result","NewTarget","arguments","apply","arrayLikeToArray","arr","len","arr2","Array","unsupportedIterableToArray","o","minLen","n","toString","name","from","test","createForOfIteratorHelperLoose","Symbol","iterator","isArray","done","next","bind","K","_default","_exports","default","EmberObject","extend","asyncStart","asyncEnd","exception","error","_default","_exports","default","Adapter","extend","init","doneCallbacks","asyncStart","QUnit","stop","push","config","current","assert","async","asyncEnd","start","done","pop","exception","error","ok","inspect","DEFAULT_EVENT_OPTIONS","canBubble","cancelable","KEYBOARD_EVENT_TYPES","MOUSE_EVENT_TYPES","focus","el","isContentEditable","isFormControl","type","getAttribute","run","browserIsNotFocused","document","hasFocus","fireEvent","bubbles","element","options","event","indexOf","buildKeyboardEvent","rect","getBoundingClientRect","x","left","y","top","simulatedCoordinates","screenX","screenY","clientX","clientY","buildMouseEvent","assign","buildBasicEvent","dispatchEvent","createEvent","undefined","initEvent","eventOpts","initMouseEvent","window","detail","ctrlKey","altKey","shiftKey","metaKey","button","relatedTarget","e","initKeyEvent","keyCode","charCode","EmberApplication","reopen","testHelpers","originalMethods","testing","setupForTesting","resolveRegistration","location","helperContainer","injectTestHelpers","window","willDestroy","_super","arguments","removeTestHelpers","name","helpers","helper","protoWrap","TestPromise","prototype","meta","wait","invokeInjectHelpersCallbacks","proto","callback","isAsync","args","apply","then","app","fn","method","lastPromise","run","resolve","getLastPromise","asyncStart","finally","asyncEnd","RSVP","configure","callback","promise","isTesting","backburner","currentInstance","asyncStart","schedule","asyncEnd","_default","_exports","default","asyncHelper","visit","click","keyEvent","fillIn","wait","andThen","pauseTest","triggerEvent","helper","find","findWithAssert","currentRouteName","currentPath","currentURL","resumeTest","FORM_CONTROL_TAGS","isFormControl","element","tagName","type","indexOf","andThen","app","callback","testHelpers","wait","click","app","selector","context","$el","testHelpers","findWithAssert","el","fireEvent","focus","wait","currentPath","app","routingService","__container__","lookup","get","currentRouteName","app","routingService","__container__","lookup","get","currentURL","app","router","__container__","lookup","get","getURL","fillIn","app","selector","contextOrText","text","$el","el","context","undefined","testHelpers","findWithAssert","focus","isFormControl","value","innerHTML","fireEvent","wait","find","app","selector","context","jQueryDisabled","false","assert","$el","get","$","findWithAssert","app","selector","context","$el","testHelpers","find","length","Error","keyEvent","app","selector","contextOrType","typeOrKeyCode","keyCode","context","type","undefined","testHelpers","triggerEvent","which","resume","resumeTest","assert","undefined","pauseTest","info","RSVP","Promise","resolve","triggerEvent","app","selector","contextOrType","typeOrOptions","possibleOptions","arity","arguments","length","context","type","options","$el","testHelpers","findWithAssert","el","fireEvent","wait","visit","app","url","router","__container__","lookup","shouldHandleURL","boot","then","location","setURL","run","__deprecatedInstance__","_readinessDeferrals","initialURL","testHelpers","wait","wait","app","value","RSVP","Promise","resolve","router","__container__","lookup","watcher","setInterval","routerIsLoading","_routerMicrolib","Boolean","activeTransition","pendingRequests","hasScheduledTimers","getCurrentRunLoop","checkWaiters","clearInterval","run","name","onLoad","Application","initializers","initializer","initialize","application","testing","deferReadiness","setupForTesting","setTesting","adapter","getAdapter","setAdapter","self","QUnit","Adapter","create","QUnitAdapter","jQueryDisabled","jQuery","document","off","incrementPendingRequests","decrementPendingRequests","clearPendingRequests","on","$","jQuery","testCheckboxClick","handler","input","document","createElement","attr","css","position","left","top","appendTo","on","trigger","remove","hasDOM","jQueryDisabled","checked","event","special","click","nodeName","type","warn","id","Test","_helpers","helpers","registerHelper","registerAsyncHelper","unregisterHelper","onInjectHelpers","Promise","TestPromise","promise","resolve","registerWaiter","unregisterWaiter","checkWaiters","Object","defineProperty","get","getAdapter","set","setAdapter","_default","_exports","default","adapter","getAdapter","setAdapter","value","exception","setDispatchOverride","adapterDispatch","asyncStart","asyncEnd","error","console","stack","helpers","_exports","registerHelper","name","helperMethod","method","meta","wait","registerAsyncHelper","unregisterHelper","TestPromise","prototype","callbacks","_exports","onInjectHelpers","callback","push","invokeInjectHelpersCallbacks","app","i","length","requests","pendingRequests","length","clearPendingRequests","incrementPendingRequests","_","xhr","push","decrementPendingRequests","setTimeout","i","splice","lastPromise","TestPromise","RSVP","Promise","constructor","arguments","then","_onFulfillment","args","onFulfillment","result","isolate","undefined","_exports","default","promise","resolver","label","fullLabel","resolve","getLastPromise","value","run","run","fn","getCurrentRunLoop","emberRun","contexts","callbacks","registerWaiter","context","callback","arguments","length","indexOf","push","unregisterWaiter","i","splice","checkWaiters","call","Ember","context","imports","isNamespace","toString","Object","defineProperty","get","getENV","enumerable","getLookup","set","setLookup","EMBER_EXTEND_PROTOTYPES","deprecate","id","until","ENV","EXTEND_PROTOTYPES","getOwner","setOwner","Application","ApplicationInstance","url","Resolver","Engine","EngineInstance","assign","merge","generateGuid","utils","GUID_KEY","guidFor","inspect","makeArray","canInvoke","tryInvoke","wrap","uuid","Container","Registry","assert","EmberDebug","warn","debug","deprecateFunc","runInDebug","Error","EmberError","Debug","registerDeprecationHandler","registerWarnHandler","isComputed","metal","instrument","instrumentation","subscribe","Instrumentation","unsubscribe","reset","run","runloop","_globalsRun","backburner","begin","bind","cancel","debounce","end","hasScheduledTimers","join","later","next","once","schedule","scheduleOnce","throttle","cancelTimers","getCurrentRunLoop","computed","_globalsComputed","_descriptor","nativeDescDecorator","_tracked","tracked","alias","cacheFor","getCachedValueFor","ComputedProperty","_setClassicDecorator","setClassicDecorator","meta","getWithDefault","_getPath","trySet","FEATURES","isEnabled","_Cache","Cache","on","addListener","removeListener","sendEvent","hasListeners","isNone","isEmpty","isBlank","isPresent","notifyPropertyChange","beginPropertyChanges","endPropertyChanges","changeProperties","platform","hasPropertyAccessors","destroy","libraries","getProperties","setProperties","expandProperties","addObserver","removeObserver","aliasMethod","observer","mixin","Mixin","_createCache","createCache","_cacheGetValue","getValue","_cacheIsConst","isConst","_registerDestructor","registerDestructor","_unregisterDestructor","unregisterDestructor","_associateDestroyableChild","associateDestroyableChild","_assertDestroyablesDestroyed","assertDestroyablesDestroyed","_enableDestroyableTracking","enableDestroyableTracking","_isDestroying","isDestroying","_isDestroyed","isDestroyed","getOnerror","setOnerror","isTesting","setTesting","_Backburner","Backburner","LOGGER","Logger","A","String","loc","w","dasherize","decamelize","camelize","classify","underscore","capitalize","EmberObject","_RegistryProxyMixin","RegistryProxyMixin","_ContainerProxyMixin","ContainerProxyMixin","compare","copy","isEqual","inject","false","keys","map","k","service","injectService","controller","injectController","Array","EmberArray","Comparable","Enumerable","ArrayProxy","ObjectProxy","ActionHandler","CoreObject","NativeArray","Copyable","MutableEnumerable","MutableArray","TargetActionSupport","Evented","PromiseProxyMixin","Observable","typeOf","isArray","onLoad","runLoadHooks","Controller","ControllerMixin","Service","_ProxyMixin","RSVP","Namespace","_action","action","_dependentKeyCompat","dependentKeyCompat","empty","notEmpty","none","not","bool","match","equal","gt","gte","lt","lte","oneWay","reads","readOnly","deprecatingAlias","and","or","sum","min","max","sort","setDiff","mapBy","filter","filterBy","uniq","uniqBy","union","intersect","collect","configurable","_getStrings","_setStrings","isNamespaceSearchDisabled","setNamespaceSearchDisabled","Component","Helper","helper","Checkbox","TextField","TextArea","LinkComponent","views","TextSupport","forEach","name","path","value","_setComponentManager","setComponentManager","_componentManagerCapabilities","capabilities","_setModifierManager","setModifierManager","_modifierManagerCapabilities","modifierCapabilities","_getComponentTemplate","getComponentTemplate","_setComponentTemplate","setComponentTemplate","_templateOnlyComponent","templateOnlyComponent","_helperManagerCapabilities","helperCapabilities","_setHelperManager","setHelperManager","_invokeHelper","invokeHelper","_captureRenderTree","captureRenderTree","Handlebars","template","Utils","escapeExpression","HTMLBars","prototype","htmlSafe","isHTMLSafe","getTemplates","setTemplates","VERSION","JQUERY_INTEGRATION","jQueryDisabled","jQuery","ViewUtils","isSimpleClick","getElementView","getViewElement","getViewBounds","getViewClientRects","getViewBoundingClientRect","getRootViews","getChildViews","isSerializationFirstNode","ComponentLookup","EventDispatcher","Location","routing","AutoLocation","HashLocation","HistoryLocation","NoneLocation","controllerFor","generateControllerFactory","generateController","RouterDSL","Router","Route","DataAdapter","extensionSupport","ContainerDebugAdapter","has","require","testing","Test","Adapter","QUnitAdapter","setupForTesting","_default","_exports","default","IS_NODE","module","exports","Em","IS_NODE","_exports","module","require","exportModule","exportRequire","createObject","Object","create","createMap","map","undefined","Target","path","matcher","delegate","prototype","to","target","callback","willAddRoute","add","length","Error","addChild","Matcher","routes","children","match","generateMatch","contextEntered","startingPath","fullPath","addRoute","routeArray","handler","len","i","substr","route","push","eachRoute","baseRoute","binding","paths","keys","slice","nested","call","addRouteCallback","normalizePath","split","normalizeSegment","join","SEGMENT_RESERVED_CHARS","segment","indexOf","decodeURIComponent","replace","encodeURIComponent","PATH_SEGMENT_ENCODINGS","encodePathSegment","str","escapeRegex","isArray","Array","hasOwnProperty","getParam","params","key","value","eachChar","currentState","state","ch","charCodeAt","put","_","regex","generate","RouteRecognizer","ENCODE_AND_DECODE_PATH_SEGMENTS","EmptyObject","freeze","EmptyArray","parse","segments","types","parts","names","shouldDecodes","part","flags","type","isEqualCharSpec","spec","char","negate","State","states","id","repeat","nextStates","pattern","_regex","handlers","regex$1","RegExp","get","this$1","child","child$1","returned","isMatch","sortSolutions","sort","a","b","ref","astatics","adynamics","astars","ref$1","bstatics","bdynamics","bstars","recognizeChar","l","concat","RecognizeResults","queryParams","splice","findHandler","originalPath","captures","currentCapture","result","isDynamic","j","name","capture","decodeQueryParamPart","error","rootState","options","allSegments","isEmpty","as","handlersFor","hasRoute","generate$1","output","charAt","generateQueryString","pairs","pair","arrayPair","parseQueryString","queryString","keyLength","recognize","results","isSlashDropped","hashStart","queryStart","decodeURI","pathLen","solutions","i$1","VERSION","Normalizer","_default","_exports","default","buildTransitionAborted","error","Error","name","code","isTransitionAborted","maybeError","isAbortable","maybeAbortable","isAborted","throwIfAborted","maybe","slice","Array","prototype","hasOwnProperty","Object","isPromise","p","then","merge","hash","other","prop","call","extractQueryParams","array","len","length","head","queryParams","obj","isQueryParams","coerceQueryParamsToString","key","val","isArray","i","l","log","router","args","sequence","msg","isParam","object","String","Number","forEach","callback","getChangelist","oldObject","newObject","results","all","changed","removed","didChange","oldElement","newElement","undefined","promiseLabel","label","STATE_SYMBOL","_exports","PARAMS_SYMBOL","QUERY_PARAMS_SYMBOL","Transition","constructor","intent","state","previousTransition","from","to","isActive","urlMethod","resolveIndex","queryParamsOnly","isTransition","isCausedByAbortingTransition","isCausedByInitialTransition","isCausedByAbortingReplaceTransition","_visibleQueryParams","isIntermediate","data","resolvedModels","promise","routeInfos","targetName","pivotHandler","debugCreationStack","stack","debugAbortStack","debugPreviousTransition","Promise","reject","params","handlerInfo","isResolved","route","currentSequence","resolve","catch","result","transitionDidError","onFulfilled","onRejected","onRejection","finally","abort","rollback","transition","routeWillChange","routeDidChange","preTransitionState","activeTransition","redirect","newTransition","retry","transitionByIntent","method","send","ignoreFailure","_name","err","handler","trigger","triggerEvent","followRedirects","reason","toString","message","InternalTransition","logAbort","prepareResult","ROUTE_INFOS","WeakMap","toReadOnlyRouteInfo","includeAttributes","map","info","paramNames","context","has","routeInfo","get","attachMetadata","routeInfoWithAttribute","createRouteInfoWithAttributes","set","find","predicate","thisArg","publicInfo","arr","metadata","buildRouteInfoMetadata","parent","child","localName","parts","split","attributes","isExtensible","freeze","_polyfills","assign","InternalRouteInfo","_routePromise","_route","_processRoute","getModel","_transition","serialize","_context","routePromise","runBeforeModelHook","resolvedModel","runAfterModelHook","becomeResolved","resolvedContext","stashResolvedModel","contextsMatch","cached","resolved","ResolvedRouteInfo","shouldSupersede","paramsMatch","fetchRoute","updateRoute","_internalName","beforeModel","afterModel","getRoute","r","UnresolvedRouteInfoByParam","fullParams","deserialize","model","UnresolvedRouteInfoByObject","serializer","getSerializer","test","id","a","b","k","TransitionIntent","handleError","currentState","errorHandlerIndex","wasAborted","TransitionError","resolveOneRouteInfo","proceed","bind","resolvedRouteInfo","wasAlreadyResolved","TransitionState","NamedTransitionIntent","contexts","applyToState","oldState","partitionedArgs","concat","pureArgs","handlers","recognizer","handlersFor","targetRouteName","applyToHandlers","parsedHandlers","checkingIfActive","newState","objects","invalidateIndex","oldHandlerInfo","newHandlerInfo","names","createParamHandlerInfo","getHandlerInfoForDynamicSegment","oldContext","handlerToUse","Math","min","unshift","invalidateChildren","handlerInfos","_targetRouteName","objectToUse","pop","preTransitionHandlerInfo","numNames","missingParams","oldParams","peek","paramName","push","UnrecognizedURLError","create","captureStackTrace","URLTransitionIntent","url","recognize","statesDiffer","_url","checkHandlerAccessibility","inaccessibleByURL","hasRoute","newRouteInfo","oldRouteInfo","Router","logger","_lastQueryParams","currentRouteInfos","_changedQueryParams","RouteRecognizer","reset","routes","add","as","path","queryParamsTransition","changelist","wasTransitioning","fireQueryParamDidChange","finalizeQueryParamChange","toReadOnlyInfos","_updateURL","didTransition","toInfos","getTransitionByIntent","e","generateNewState","readonlyInfos","recognizeAndLoad","routeInfosWithAttributes","queryParamChangelist","routeInfosEqual","setupContexts","routeInfosSameExceptQueryParams","finalizeTransition","notifyExistingHandlers","doTransition","modelsArray","lastArg","charAt","infos","partition","partitionRoutes","exited","_internalReset","exit","unchanged","updatedContext","routeEnteredOrUpdated","entered","enter","_routeEnteredOrUpdated","contextDidChange","setup","oldRouteInfos","newRouteInfos","routeChanged","contextChanged","reverse","routeName","generate","initial","replaceAndNotAborting","isQueryParamsRefreshTransition","replacingReplace","replaceURL","updateURL","resolvedHandlers","newQueryParams","finalQueryParamsArray","finalQueryParams","qp","value","visible","fromInfos","oldRouteInfoLen","oldHandler","willTransition","handleURL","transitionTo","intermediateTransitionTo","refresh","pivotRoute","replaceWith","suppliedParams","routeParams","applyIntent","isActiveIntent","_state","targetRouteInfos","targetHandler","recognizerHandlers","index","testState","routesEqual","activeQPsOnNewHandler","activeQueryParams","otherRouteInfos","paramsEqual","otherParams","keys","otherKeys","_default","default","callbacksFor","object","callbacks","_promiseCallbacks","EventTarget","_exports","mixin","on","off","trigger","undefined","eventName","callback","TypeError","allCallbacks","indexOf","push","index","splice","options","label","i","length","config","instrument","configure","name","value","arguments","queue","scheduleFlush","setTimeout","entry","payload","guid","key","id","childGuid","childId","error","stack","promise","child","_guidKey","_id","detail","_result","_label","timeStamp","Date","now","Error","resolve$$1","Constructor","constructor","noop","resolve$1","withOwnPromise","objectOrFunction","x","type","PENDING","FULFILLED","REJECTED","tryThen","then$$1","fulfillmentHandler","rejectionHandler","call","e","handleForeignThenable","thenable","async","sealed","fulfill","reason","reject","handleOwnThenable","_state","_onError","subscribe","handleMaybeThenable","maybeThenable","isOwnThenable","then","resolve","publishRejection","publish","_subscribers","parent","onFulfillment","onRejection","subscribers","settled","result","invokeCallback","state","hasCallback","succeeded","initializePromise","resolver","resolved","Enumerator","input","abortOnReject","_instanceConstructor","_abortOnReject","_isUsingOwnPromise","Promise","_isUsingOwnResolve","_init","len","_remaining","Array","_enumerate","_eachEntry","_checkFullfillment","_settleMaybeThenable","firstPass","c","_settledAt","_willSettleAt","_setResultAt","setSettledResult","all","entries","isArray","race","reject$1","guidKey","counter","needsResolver","needsNew","after","catch","finally","cast","prototype","makeObject","_","argumentNames","obj","args","arrayResult","wrapThenable","onFulFillment","denodeify","nodeFunc","fn","l","promiseInput","arg","p","err","val","handlePromiseInput","handleValueInput","__proto__","self","apply","all$1","array","AllSettled","allSettled","race$1","PromiseHash","keys","Object","hash","HashSettled","hashSettled","rethrow","defer","deferred","MapEnumerator","mapFn","bool","_mapFn","map","promises","resolve$2","reject$2","EMPTY_OBJECT","FilterEnumerator","filter","filterFn","vertxNext","asap","queue$1","scheduleFlush$1","browserWindow","window","browserGlobal","BrowserMutationObserver","MutationObserver","WebKitMutationObserver","isNode","process","toString","isWorker","Uint8ClampedArray","importScripts","MessageChannel","useNextTick","nextTick","version","versions","node","match","setImmediate","flush","useVertxTimer","useSetTimeout","useMutationObserver","iterations","observer","document","createTextNode","observe","characterData","data","useMessageChannel","channel","port1","onmessage","port2","postMessage","attemptVertex","vertx","Function","require","runOnLoop","runOnContext","cb","hasOwnProperty","rsvp","_default","default","const","let","this","child","i","globalID","pastWarnings","Utils","attr","element","namespace","obj","i","attribute","attributes","regex","RegExp","hasOwnProperty","length","specified","test","name","this","camelize","slice","deserializeValue","value","checkAttr","hasAttribute","setAttr","setAttribute","dasherize","String","getType","getAttribute","generateID","num","isNaN","Number","JSON","parse","e","str","replace","match","chr","toUpperCase","toLowerCase","warn","window","console","arguments","warnOnce","msg","_resetWarnings","trimString","string","date","parsed","map","x","parseInt","year","month","day","Date","getFullYear","getMonth","getDate","integer","number","parseFloat","object","regexp","flags","parseRequirement","requirementType","converter","converted","namespaceEvents","events","split","$","evt","join","difference","array","remove","result","each","_","elem","indexOf","push","all","promises","when","objectCreate","Object","create","prototype","Error","_typeof","TypeError","_SubmitSelector","Base","__id__","Defaults","inputs","excluded","priorityEnabled","multiple","group","uiEnabled","validationThreshold","focus","trigger","triggerAfterFailure","errorClass","successClass","classHandler","errorsContainer","errorsWrapper","errorTemplate","asyncSupport","_pipeAccordingToValidationResult","pipe","r","Deferred","_this","validationResult","reject","resolve","promise","actualizeOptions","options","domOptions","parent","_resetOptions","initOptions","_listeners","on","fn","subscribe","listenTo","off","queue","splice","unsubscribe","unsubscribeTo","target","extraArg","call","asyncIsValid","force","whenValid","_findRelated","querySelectorAll","$element","Validator","spec","extend","validate","requirementFirstArg","Array","isArray","validateMultiple","instance","validateDate","_isDateInput","validateNumber","validateString","parseRequirements","requirements","extraOptionReader","type","values","m","convertArrayRequirement","isPlainObject","requirementSpec","main","extra","key","convertExtraOptionRequirement","priority","ValidatorRegistry","validators","catalog","__class__","locale","init","typeTesters","email","digits","alphanum","url","range","decimalPlaces","Math","max","operatorToValidator","operator","requirementsAndInput","pop","comparisonOperator","_extends","addValidator","Parsley","setLocale","addCatalog","messages","set","addMessage","message","addMessages","nameMessageObject","arg1","arg2","_setValidator","hasValidator","updateValidator","removeValidator","validator","getErrorMessage","constraint","formatMessage","defaultMessage","en","parameters","notblank","required","step","base","tester","nb","decimals","toInt","f","round","pow","pattern","minlength","requirement","maxlength","min","mincheck","maxcheck","check","equalto","refOrValue","$reference","val","euvatin","UI","Form","_actualizeTriggers","onSubmitValidate","onSubmitButton","_focusedField","fields","field","noFocus","_destroyUI","Field","_reflowUI","_buildUI","_ui","diff","diffResults","newResult","oldResult","deep","added","kept","found","j","assert","removed","lastValidationResult","_manageStatusClass","_manageErrorsMessages","_failedOnce","getErrorsMessages","errorMessage","_getErrorMessage","addError","updateClass","_addError","_errorClass","updateError","_updateError","removeError","_removeError","hasConstraints","needsValidation","_successClass","_resetClass","errorsMessagesDisabled","_insertErrorWrapper","$errorsWrapper","find","append","addClass","$errorClassHandler","errorsWrapperId","html","removeAttr","removeClass","customConstraintErrorMessage","_manageClassHandler","validationInformationVisible","$handlerFunction","$handler","jQuery","_inputHolder","nodeName","$errorsContainer","after","$toBind","_this2","_validateIfNeeded","event","getValue","debounce","clearTimeout","_debounced","setTimeout","_this3","_resetUI","children","statusMapping","pending","resolved","rejected","parsley","submitSource","_submitSource","prop","_remoteCache","whenValidate","state","_trigger","stopImmediatePropagation","preventDefault","done","_submit","currentTarget","$synthetic","appendTo","Event","submitEvent","_refreshFields","_withoutReactualizingFormOptions","fail","always","isValid","refresh","reset","destroy","removeData","_bindFields","oldFields","fieldsMappedById","_this4","not","fieldInstance","Factory","uniqueId","oldActualizeOptions","eventName","Constraint","parsleyField","isDomConstraint","validatorSpec","_validatorRegistry","_parseRequirements","parsleyFormInstance","constraints","constraintsByName","_bindConstraints","requirementList","_isInGroup","_refreshed","_isRequired","validateIfEmpty","inArray","groupedConstraints","_getGroupedConstraints","_validateConstraint","_handleWhitespace","_refreshConstraints","refreshConstraints","addConstraint","removeConstraint","updateConstraint","undefined","_bindHtml5Constraints","trimValue","whitespace","c","index","p","sort","a","b","Multiple","addElement","$elements","fieldConstraints","has","data","filter","_init","savedparsleyFormInstance","__version__","is","bind","isMultiple","handleMultiple","parsleyMultipleInstance","input","$previouslyRelated","get","doNotStore","parsleyInstance","ParsleyExtend","vernums","jquery","forEach","document","version","psly","instances","ParsleyConfig","ParsleyUtils","registry","i18n","ParsleyValidator","method","ParsleyUI","doNotUpdateClass","autoBind","deprecated","o","adapt","context","parsleyAdaptedCallback","args","unshift","apply","eventPrefix","lastIndexOf","substr","listen","callback","unsubscribeAll","emit","instanceGiven","asyncValidators","xhr","status","reverse","addAsyncValidator","ajaxOptions","csr","encodeURIComponent","remoteOptions","param","handleXhr","ajax","then","globals","global","isNativeEvent","originalEvent","isTrusted","fakeInputEvent","misbehaves","behavesOk","selector","install","inputEventPatched","uninstall"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AC39UA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;A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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMG,SAAS,GAAAT,QAAA,CAAAS,SAAA,GAAGC,eAAQ,CAACC,MAAM,CAACC,wBAAiB,EAAEC,uBAAgB,EAAEC,wBAAiB,EAAEC,4BAAmB,EAAEC,oBAAa,EAAEC,gBAAS,EAAE;IACvIC,WAAW,EAAE,IAAI;IAEjBC,IAAIA,CAAA,EAAG;MACL,IAAI,CAACC,MAAM,CAAC,GAAGC,SAAS,CAAC;MAEzB,IAAI,CAACd,oBAAoB,CAAC,GAAG,KAAK;MAClC,IAAI,CAACF,SAAS,CAAC,GAAG,IAAAiB,oBAAS,EAAC,CAAC;MAC7B,IAAI,CAACd,MAAM,CAAC,GAAG,IAAI;MAEnB,IAAI,oBAAS,IAAI,CAACe,QAAQ,CAACC,eAAe,IAAI,IAAI,CAACC,OAAO,KAAK,EAAE,EAAE;QACjE,IAAIC,UAAU,GAAG,EAAE;QACnB,IAAIC,eAAe,GAAG,IAAAC,eAAQ,EAAC,IAAI,CAAC,CAACC,MAAM,CAAC,uBAAuB,CAAC;Q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GAAGF,QAAQ;MACtB,IAAIG,KAAK,GAAGD,OAAO,CAACE,YAAY,KAAK;MACrC;MAEA,IAAI;QACFC,IAAI;QACJC;MACF,CAAC,GAAG,IAAAC,2BAAiB,EAACL,OAAO,EAAEH,IAAI,CAAC;MAEpC,IAAII,KAAK,IAAIE,IAAI,KAAK,MAAM,EAAE;QAC5B,OAAOH,OAAO,CAACM,YAAY,CAACF,UAAU,CAAC;MACzC;MAEA,OAAOJ,OAAO,CAACI,UAAU,CAAC;IAC5B,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEG,eAAeA,CAAA,EAAG,CAAC,CAAC;IAEpB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;IACEC,SAASA,CAAA,EAAG,CAAC,CAAC;IAEd;AACF;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;IACEC,UAAUA,CAAA,EAAG,CAAC,CAAC;IAEf;AACF;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;IACEC,cAAcA,CAAA,EAAG,CAAC,CAAC;IAEnB;AACF;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;IACEC,UAAUA,CAAA,EAAG,CAAC,CAAC;IAEf;AACF;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;IACEC,SAASA,CAAA,EAAG,CAAC;EAEf,CAAC,C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EAAE,IAAI;IAEV;AACF;AACA;AACA;AACA;AACA;AACA;IACEC,OAAO,EAAE,IAAI;IAEb;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,GAAG,EAAE,IAAI;IAET;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,GAAG,EAAE;EACP,CAAC,CAAC;EAEFP,SAAS,CAAC1B,QAAQ,GAAG,MAAM,6BAA6B;;EAExD;AACA;AACA;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMkC,QAAQ,GAAA7G,QAAA,CAAA6G,QAAA,GAAGpG,SAAS,CAACE,MAAM,CAAC2F,kBAAW,EAAE;IAC7CrB,UAAU,EAAE,CAAC,iBAAiB,CAAC;IAC/BF,MAAM;IACNtD,OAAO,EAAE,UAAU;IACnByD,iBAAiB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,cAAc,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,CAAC;IAC7H4B,IAAI,EAAE,IAAI;IACVC,IAAI,EAAE;EACR,CAAC,CAAC;EAEFF,QAAQ,CAAClC,QAAQ,GAAG,MAAM,4BAA4B;EAEtD,IAAIqC,QAAQ,GAAG,IAAA/G,+BAAe,EAAC;IAC7B,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,+PAA+P;IACxQ,YAAY,EAAE;EAChB,CAAC,CAAC;;EAEF;AACA;AACA;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMgH,SAAS,GAAGnB,MAAM,CAACoB,MAAM,CAAC;IAC9BvC,QAAQA,CAAA,EAAG;MACT,OAAO,WAAW;IACpB;EAEF,CAAC,CAAC;EACF,IAAMwC,kBAAkB,GAAGrB,MAAM,CAACoB,MAAM,CAAC,CAAC,CAAC,CAAC;EAC5C,IAAME,aAAa,GAAApH,QAAA,CAAAoH,aAAA,GAAG3G,SAAS,CAACE,MAAM,CAAC;IACrCoE,MAAM,EAAEiC,QAAQ;IAChBvF,OAAO,EAAE,GAAG;IAEZ;AACF;AACA;AACA;IACE4F,KAAK,EAAEJ,SAAS;IAEhB;AACF;AACA;AACA;IACEK,KAAK,EAAEL,SAAS;IAEhB;AACF;AACA;AACA;IACEM,MAAM,EAAEN,SAAS;IAEjB;AACF;AACA;AACA;IACEO,KAAK,EAAEP,SAAS;IAEhB;AACF;AACA;AACA;AACA;IACE,cAAc,EAAE,IAAI;IAEpB;AACF;AACA;AACA;AACA;AACA;IACEQ,KAAK,EAAE,IAAI;IAEX;AACF;AACA;AACA;AACA;AACA;IACEC,GAAG,EAAE,IAAI;IAET;AACF;AACA;AACA;AACA;AACA;IACEC,QAAQ,EAAE,IAAI;IAEd;AACF;AACA;AACA;AACA;AACA;AACA;IACEC,MAAM,EAAE,IAAI;IAEZ;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,WAAW,EAAE,QAAQ;IAErB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,YAAY,EAAE,S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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASE,kBAAkBA,CAACC,UAAU,EAAEC,OAAO,GAAG,CAAC,CAAC,EAAE;IAAA,WACKD,UAAU,KAAK,MAAM,KAA9E,IAAA5N,aAAM,EAAC,gDAAgD,EAAE4N,UAAU,KAAK,MAAM,CAAC;IAAA,WACkF,CAACC,OAAO,CAACC,QAAQ,IAAID,OAAO,CAACE,kBAAkB,KAAK,EAAEF,OAAO,CAACC,QAAQ,IAAID,OAAO,CAACE,kBAAkB,CAAC,KAAtQ,IAAA/N,aAAM,EAAC,wJAAwJ,EAAE,CAAC6N,OAAO,CAACC,QAAQ,IAAID,OAAO,CAACE,kBAAkB,KAAK,EAAEF,OAAO,CAACC,QAAQ,IAAID,OAAO,CAACE,kBAAkB,CAAC,CAAC;IAAA,WACxI,CAACF,OAAO,CAACE,kBAAkB,KAA1J,IAAA/N,aAAM,EAAC,sHAAsH,EAAE,CAAC6N,OAAO,CAACE,kBAAkB,CAAC;IAC3J,OAAO,IAAAC,2BAAiB,EAAC;MACvBF,QAAQ,EAAE5K,OAAO,CAAC2K,OAAO,CAACC,QAAQ,CAAC;MACnCG,cAAc,EAAE/K,OAAO,CAAC2K,OAAO,CAACI,cAAc,CAAC;MAC/CF,kBAAkB,EAAE7K,OAAO,CAAC2K,OAAO,CAACE,kBAAkB;IACxD,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASD,QAAQA,CAACI,OAAO,EAAE;IACzB,OAAOA,OAAO,CAACC,YAAY,CAACL,QAAQ;EACtC;EAEA,SAASG,cAAcA,CAACC,OAAO,EAAE;IAC/B,OAAOA,OAAO,CAACC,YAAY,CAACF,cAAc;EAC5C;EAEA,IAAIG,WAAW,GAAG,mBAAQ,IAAIC,OAAO,CAAC,CAAC,GAAGnO,SAAS;EAEnD,SAASoO,OAAOA,CAACC,KAAK,EAAE;IACtB,OAAO,IAAAC,mBAAQ,EAAC,mBAAQJ,WAAW,CAAChN,GAAG,CAACmN,KAAK,CAAC,GAAGA,KAAK,CAACE,SAAS,CAAC;EACnE;EAEA,MAAMC,eAAe,CAAC;IACpBC,WAAWA,CAACC,OAAO,EAAEC,WAAW,GAAGA,CAAA,KAAMC,oBAAU,EAAE;MACnD,IAAIL,SAAS,GAAG,IAAAM,sB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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASkd,MAAMA,CAAEpa,IAAI,EAAE;IACrB,IAAI;MACF+K,KAAK;MACLC;IACF,CAAC,GAAGhL,IAAI;IACR,IAAI8K,YAAY,GAAGE,UAAU,CAACmE,OAAO,CAAC,CAAC,CAAC,CAAC;IACzC;IACA;IACA;;IAEA,IAAI,CAACvB,OAAO,EAAEwM,MAAM,EAAE,GAAGC,QAAQ,CAAC,GAAGvP,YAAY;IACjD,IAAIwP,QAAQ,GAAGF,MAAM,CAACG,UAAU;IAChC,IAAI/V,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AAO,CAAC2C,QAAQ,CAACtW,KAAK,CAAC,EAAE,CAAC;QAChCsD,YAAY,EAAE6S,iBAAiB;QAC/BjC,cAAc,EAAEP;MAClB,CAAC;IACH;EAEF;;EAEA;AACA;AACA;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,MAAM4C,aAAa,CAAC;IAClBzS,WAAWA,CAACyL,KAAK,EAAE;MACjB,IAAI,CAACA,KAAK,GAAGA,KAAK;IACpB;EAEF;EACA,SAASiH,MAAMA,CAAErgB,IAAI,EAAE;IACrB,IAAIoZ,KAAK,GAAGpZ,IAAI,CAACgL,UAAU,CAACoT,EAAE,CAAC,CAAC,CAAC;IACjC,OAAO,IAAA/O,2BAAgB,EAAC,MAAM;MAC5B,IAAIiR,QAAQ,GAAG,IAAA/V,sBAAW,EAAC6O,KAAK,CAAC;MACjC,IAAA1I,qBAAU,EAAC,IAAA6P,mBAAY,EAAC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A;AACA;AACA;AACA;AACA;AACA;;EAEA,SAAS2nB,IAAIA,CAAE1nB,IAAI,EAAE;IACnB,IAAIgL,UAAU,GAAGhL,IAAI,CAAC+K,KAAK,CAACoE,OAAO,CAAC,CAAC;IACrC,OAAO,IAAAE,2BAAgB,EAAC,MAAM,IAAAsY,oBAAU,EAAC3c,UAAU,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC;EACrE;;EAEA;AACA;AACA;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAAS4c,QAAQA,CAAC5nB,IAAI,EAAE;IACtB,IAAIgL,UAAU,GAAGhL,IAAI,CAACgL,UAAU,CAACmE,OAAO,CAAC,CAAC;IAC1C,OAAO,IAAAE,2BAAgB,EAAC,MAAM;MAAA,WACkGrE,UAAU,CAACjM,MAAM,KAAK,CAAC,IAAIiM,UAAU,CAACjM,MAAM,KAAK,CAAC,KAAhL,IAAAC,aAAM,EAAC,qHAAqH,EAAEgM,UAAU,CAACjM,MAAM,KAAK,CAAC,IAAIiM,UAAU,CAACjM,MAAM,KAAK,CAAC,CAAC;MACjL,IAAI,CAAC8oB,SAAS,EAAEC,WAAW,EAAEC,UAAU,CAAC,GAAG/c,UAAU;MAErD,IAAI,IAAAqY,qBAAM,EAAC,IAAA9Y,sBAAW,EAACsd,SAAS,CAAC,CAAC,KAAK,IAAI,EAAE;QAC3C,OAAO,IAAAtd,sBAAW,EAACud,WAAW,CAAC;MACjC,CAAC,MAAM;QACL,OAAOC,UAAU,KAAK7oB,SAAS,GAAG,IAAAqL,sBAAW,EAACwd,UAAU,CAAC,GAAG7oB,SAAS;MACvE;IACF,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;EAChB;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAAS8oB,YAAYA,CAAChoB,IAAI,EAAE;IAC1B,IAAIgL,UAAU,GAAGhL,IAAI,CAACgL,UAAU,CAACmE,OAAO,CAAC,CAAC;IAC1C,OAAO,IAAAE,2BAAgB,EAAC,MAAM;MAAA,WACqGrE,UAAU,CAACjM,MAAM,KAAK,CAAC,IAAIiM,UAAU,CAACjM,MAAM,KAAK,CAAC,KAAnL,IAAAC,aAAM,EAAC,wHAAwH,EAAEgM,UAAU,CAACjM,MAAM,KAAK,CAAC,IAAIiM,UAAU,CAACjM,MAAM,KAAK,CAAC,CAAC;MACpL,IAAI,CAAC8oB,SAAS,EAAEE,UAAU,EAAED,WAAW,CAAC,GAAG9c,UAAU;MAErD,IAAI,IAAAqY,qBAAM,EAAC,IAAA9Y,sBAAW,EAACsd,SAAS,CAAC,CAAC,KAAK,IAAI,EAAE;QAC3C,OAAOC,WAAW,KAAK5oB,SAAS,GAAG,IAAAqL,sBAAW,EAACud,WAAW,CAAC,GAAG5oB,SAAS;MACzE,CAAC,MAAM;QACL,OAAO,IAAAqL,sBAAW,EAACwd,UAAU,CAAC;MAChC;IACF,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC;EACpB;;EAEA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASE,GAAGA,CAAEjoB,IAAI,EAAE;IAClB,IAAIgL,UAAU,GAAGhL,IAAI,CAACgL,UAAU,CAACmE,OAAO,CAAC,CAAC;IAC1C,OAAO,IAAAE,2BAAgB,EAAC,MAAM;MAC5B;MACA6Y,OAAO,CAACD,GAAG,CAAC,GAAG,IAAAhK,yBAAe,EAACjT,UAAU,CAAC,CAAC;MAC3C;IACF,CAAC,CAAC;EACJ;;EAEA;AACA;AACA;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASmd,GAAGA,CAAEnoB,IAAI,EAAE;IAClB,IAAIqL,GAAG,GAAGrL,IAAI,CAACgL,UAAU,CAACoT,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACjC;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IAAA,WAE0C,IAAAle,yBAAc,EAACmL,GAAG,CAAC,KAA7D,IAAArM,aAAM,EAAC,iCAAiC,EAAE,IAAAkB,yBAAc,EAACmL,GAAG,CAAC,CAAC;IAC9D,OAAO,IAAA+c,6BAAkB,EAAC/c,GAAG,CAAC;EAChC;;EAEA;AACA;AACA;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASjD,WAAWA,CAAEpI,IAAI,EAAE;IAC1B,IAAI;MACFgL,UAAU;MACVD;IACF,CAAC,GAAG/K,IAAI,CAACmP,OAAO,CAAC,CAAC;IAClB,OAAO,IAAAE,2BAAgB,EAAC,MAAM;MAAA,WAC+HrE,UAAU,CAACjM,MAAM,KAAK,CAAC,KAAlL,IAAAC,aAAM,EAAC,kJAAkJ,EAAEgM,UAAU,CAACjM,MAAM,KAAK,CAAC,CAAC;MACnL,OAAO,IAAIspB,oBAAW,CAAC,IAAA/hB,iBAAM,EAAC,CAAC,CAAC,EAAE,IAAAqhB,oBAAU,EAAC5c,KAAK,CAAC,CAAC,CAAC;IACvD,CAAC,CAAC;EACJ;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASud,QAAQA,CAAEtoB,IAAI,EAAE;IACvB,OAAO,IAAAuoB,4BAAiB,EAACvoB,IAAI,CAACgL,UAAU,CAACoT,EA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BAAsB,EAAE;MAC1B;MACAvrB,OAAO,CAACysB,mBAAmB,CAACroB,SAAS,EAAEooB,QAAQ,EAAErgB,OAAO,CAAC;IAC3D,CAAC,MAAM,IAAIA,OAAO,KAAK3N,SAAS,IAAI2N,OAAO,CAACsC,OAAO,EAAE;MACnD;MACA;MACA;MACA;MACA;MACA;MACAzO,OAAO,CAACysB,mBAAmB,CAACroB,SAAS,EAAEooB,QAAQ,EAAE,IAAI,CAAC;IACxD,CAAC,MAAM;MACL;MACA;MACA;MACA;MACAxsB,OAAO,CAACysB,mBAAmB,CAACroB,SAAS,EAAEooB,QAAQ,CAAC;IAClD;EACF;EAEA,SAASd,gBAAgBA,CAAC1rB,OAAO,EAAEoE,SAAS,EAAEooB,QAAQ,EAAErgB,OAAO,EAAE;IAC/DwgB,IAAI,EAAE;IAEN,IAAIpB,sBAAsB,EAAE;MAC1B;MACAvrB,OAAO,CAAC0rB,gBAAgB,CAACtnB,SAAS,EAAEooB,QAAQ,EAAErgB,OAAO,CAAC;IACxD,CAAC,MAAM,IAAIA,OAAO,KAAK3N,SAAS,IAAI2N,OAAO,CAACsC,OAAO,EAAE;MACnD;MACA;MACA;MACA;MACA;MACA;MACAzO,OAAO,CAAC0rB,gBAAgB,CAACtnB,SAAS,EAAEooB,QAAQ,EAAE,IAAI,CAAC;IACrD,CAAC,MAAM;MACL;MACA;MACA;MACA;MACAxsB,OAAO,CAAC0rB,gBAAgB,CAACtnB,SAAS,EAAEooB,QAAQ,CAAC;IAC/C;EACF;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AMA,CAAA,EAAG;MACd,MAAM,IAAA3D,aAAM,EAAC,mCAAmC,CAAC;IACnD;IAEA,WAAWsR,KAAKA,CAAA,EAAG;MACjB,OAAO,IAAI;IACb;IAEA,WAAW6P,QAAQA,CAAA,EAAG;MACpB,OAAO,IAAI,CAAC5f,IAAI;IAClB;IAEA,WAAWq5B,cAAcA,CAAA,EAAG;MAC1B,OAAO,IAAI,CAACr5B,IAAI;IAClB;IAEAs5B,GAAGA,CAACj7B,GAAG,EAAE;MACP,IAAIyM,GAAG,GAAG,IAAI,CAACrL,IAAI,CAACpB,GAAG,CAAC;MACxB,OAAOyM,GAAG,GAAG,IAAAd,sBAAW,EAACc,GAAG,CAAC,GAAGnM,SAAS;IAC3C;IAEAqC,QAAQA,CAAA,EAAG;MACT,OAAQ,IAAG,IAAI,CAACoM,WAAW,CAACpM,QAAQ,CAAC,CAAE,IAAG,IAAAiV,cAAO,EAAC,IAAI,CAAE,GAAE;IAC5D;EAEF;;EAEA;AACA;AACA;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,MAAMsjB,KAAK,SAASH,iBAAiB,CAAC;IACpC,IAAII,UAAUA,CAAA,EAAG;MACf,OAAO,IAAI,CAACF,GAAG,C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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAGA,MAAMC,gBAAgB,SAAShG,kBAAkB,CAAC;IAChDC,WAAWA,CAACpL,IAAI,EAAE;MAChB,KAAK,CAAC,CAAC;MACP,IAAI,CAACoR,SAAS,GAAG,KAAK;MACtB,IAAI,CAACC,SAAS,GAAG,KAAK;MACtB,IAAI,CAACC,UAAU,GAAG,KAAK;MACvB,IAAI,CAACC,OAAO,GAAGlS,SAAS;MACxB,IAAI,CAACmS,OAAO,GAAGnS,SAAS;MACxB,IAAIoS,WAAW,GAAGzR,IAAI,CAACA,IAAI,CAACP,MAAM,GAAG,CAAC,CAAC;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ACX;MACF,CAAC,CAAC;MACFuD,sBAAsB,CAAC,IAAI,CAAC,CAACkE,SAAS,GAAG,IAAI;MAC7C,OAAO,IAAI;IACb;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGExN,QAAQA,CAAC,GAAG2E,IAAI,EAAE;MAAA,WAC6S,KAAK,KAAlU,IAAAe,gBAAS,EAAC,iTAAiT,EAAE,KAAK,EAAE;QAClUE,EAAE,EAAE,4BAA4B;QAChCD,KAAK,EAAE,OAAO;QACd0G,GAAG,EAAE,sEAAsE;QAC3ExG,GAAG,EAAE,cAAc;QACnBC,KAAK,EAAE;UACLC,OAAO,EAAE;QACX;MACF,CAAC,CAAC;MAEFuD,sBAAsB,CAAC,IAAI,CAAC,CAAC0E,SAAS,CAAC,GAAGrJ,IAAI,CAAC;MAE/C,OAAO,IAAI;IACb;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE7J,IAAIA,CAACY,OAAO,EAAE;MACZ,IAAImU,IAAI,GAAGvG,sBAAsB,CAAC,IAAI,CAAC;MAEvC,IAAIjI,SAAS,CAACxF,MAAM,KAAK,CAAC,EAAE;QAC1B,OAAOgU,IAAI,CAACrU,KAAK,IAAI,CAAC,CAAC;MACzB,CAAC,MAAM;QACLqU,IAAI,CAACrU,KAAK,GAAGE,OAAO;QACpB,OAAO,IAAI;MACb;IACF,CAAC,CAAC;IACF;;IAGA,IAAIiS,OAAOA,CAAA,EAAG;MACZ,OAAOrE,sBA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e,CAACjD,GAAG,CAAC,EAAE;MACjC8E,mBAAmB,CAAC9E,GAAG,CAAC;IAC1B;IAEA,OAAOA,GAAG;EACZ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAAS4f,KAAKA,CAAC5f,GAAG,EAAE,GAAG8B,IAAI,EAAE;IAC3B0d,UAAU,CAACxf,GAAG,EAAE8B,IAAI,CAAC;IACrB,OAAO9B,GAAG;EACZ;EACA,IAAMqe,MAAM,GAAG,IAAIxU,cAAQ,CAAC,CAAC;EAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,MAAMgW,KAAK,CAAC;IACV3S,WAAWA,CAACgR,MAAM,EAAE/E,UAAU,EAAE;MAC9BkF,MAAM,CAACrQ,GAAG,CAAC,IAAI,CAAC;MAChB,IAAI,CAACmL,UAAU,GAAG8C,gBAAgB,CAAC9C,UAAU,CAAC;MAC9C,IAAI,CAAC+E,MAAM,GAAG4B,gBAAgB,CAAC5B,MAAM,CAAC;MACtC,IAAI,CAAC6B,gBAAgB,GAAG5e,SAAS;MACjC,IAAI,CAACsd,QAAQ,GAAGtd,SAAS;MAEzB,sBAAW;QACT;AACN;AACA;AACA;AACA;AACA;QACM,IAAA6e,cAAO,EAAC,IAAI,CAAC;QACb5X,MAAM,CAAC6X,IAAI,CAAC,IAAI,CAAC;MACnB;IACF;IACA;AACF;AACA;AACA;AACA;AACA;AACA;;IAG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,IAAAjD,WAAI,EAACN,MAAM,CAAC,CAACuN,gBAAgB,CAAC1D,GAAG,EAAE,IAAIqY,iBAAiB,CAACxe,GAAG,EAAEH,GAAG,CAAC,CAAC;IACnE,OAAOye,OAAO;EAChB;EAEA,MAAME,iBAAiB,CAAC;IACtBlV,WAAWA,CAACmV,IAAI,EAAEvN,IAAI,EAAE;MACtB,IAAI,CAACuN,IAAI,GAAGA,IAAI;MAChB,IAAI,CAACvN,IAAI,GAAGA,IAAI;MAChBlL,kBAAkB,CAACoE,GAAG,CAAC,IAAI,CAAC;IAC9B;IAEApK,GAAGA,CAAC5D,GAAG,EAAE;MACP,OAAO,IAAI,CAACqiB,IAAI,CAACrO,IAAI,CAAChU,GAAG,CAAC;IAC5B;IAEAyD,GAAGA,CAACzD,GAAG,EAAE8T,IAAI,EAAEhN,KAAK,EAAE;MACpB,IAAI,CAACgO,IAAI,CAACd,IAAI,CAAChU,GAAG,EAAE8G,KAAK,CAAC;IAC5B;EAEF;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AA7CA;;;;;;;;;;;EC9xHO,IAAMwb,YAAY,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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,WAAW,EAAE,IAAI;IAEjB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,WAAW,EAAE,IAAI;IAEjB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,UAAUA,CAACC,UAAU,EAAEC,KAAK,EAAE;MAC5B,IAAIC,QAAQ,GAAGD,KAAK,CAACE,OAAO,CAAC,KAAK,CAAC;MAEnC,IAAIC,IAAI,GAAGF,QAAQ,KAAK,CAAC,CAAC,GAAGD,KAAK,GAAGA,KAAK,CAACI,KAAK,CAAC,CAAC,EAAEH,QAAQ,CAAC;MAC7D,IAAII,QAAQ,GAAGN,UAAU,CAACF,WAAW;MACrC,IAAIS,KAAK,GAAG,IAAAC,UAAG,EAACR,UAAU,EAAEI,IAAI,CAAC;MACjCE,QAAQ,CAACF,IAAI,EAAEG,KAAK,CAAC;IACvB,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEE,iBAAiBA,CAAC,GAAGC,IAAI,EAAE;MACzB;MACA,IAAIC,MAAM,GAAG,IAAAH,UAAG,EAAC,IAAI,EAAE,QAAQ,CAAC;MAChC,IAAII,MAAM,GAAGD,MAAM,CAACF,iBAAiB,IAAIE,MAAM,CAACE,YAAY;MAC5D,OAAOD,MAAM,CAACE,KAAK,CAACH,MAAM,EAAE,IAAAI,yBAAkB,EAAC,IAAI,EAAEL,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEM,YAAYA,CAAC,GAAGN,IAAI,EAAE;MACpB;MACA,IAAIC,MAAM,GAAG,IAAAH,UAAG,EAAC,IAAI,EAAE,QAAQ,CAAC;MAChC,IAAII,MAAM,GAAGD,MAAM,CAACK,YAAY,IAAIL,MAAM,CAACM,WAAW;MACtD,OAAOL,MAAM,CAACE,KAAK,CAACH,MAAM,EAAE,IAAAI,yBAAkB,EAAC,IAAI,EAAEL,IAAI,CAAC,CAAC;IAC7D;EAEF,CAAC,CAAC;EAAC,IAAAQ,QAAA,GAAAC,QAAA,CAAAC,OAAA,GACY1B,yBAAe;AAAA;;;;;;;;;EChM9B;AACA;AACA;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAxDA,IAAA2B,QAAA,GAAAC,QAAA,CAAAC,OAAA,GA0De;IACb;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,MAAMA,CAACC,OAAO,EAAE;MACd,IAAIC,cAAc,GAAGD,OAAO,IAAIA,OAAO,CAACC,cAAc;MAAC,WACeC,OAAO,CAACD,cAAc,CAAC,KAA7F,IAAAE,aAAM,EAAC,6DAA6D,EAAED,OAAO,CAACD,cAAc,CAAC,CAAC;MAC9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I;QACFG,SAAS;QACTC,MAAM;QACNC;MACF,CAAC,GAAG,IAAAC,wBAAgB,EAACN,IAAI,CAAC;MAE1B,IAAI1B,UAAU,GAAG,IAAI,CAACa,OAAO,CAACoB,aAAa,CAACJ,SAAS,EAAEC,MAAM,EAAEC,WAAW,EAAE,IAAI,CAAC;MAEjF/B,UAAU,CAAC,8BAA8B,CAAC,GAAG,IAAI;MACjD,OAAOA,UAAU;IACnB;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEkC,WAAWA,CAAA,EACX;IACA;MACE,OAAO,IAAI,CAACT,YAAY,CAAC,GAAGD,SAAS,CAAC,CAACW,MAAM,CAAC,SAAS,CAAC;IAC1D;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEC,MAAMA,CAACP,SAAS,EAAE,GAAGH,IAAI,EAAE;MACzB,OAAO,IAAI,CAACb,OAAO,CAACwB,QAAQ,CAACR,SAAS,EAAE,GAAGH,IAAI,CAAC;IAClD;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEY,QAAQA,CAAC,GAAGZ,IAAI,EAAE;MAChB,IAAI;QACFG,SAAS;QACTC,MAAM;QACNC;MACF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A;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAhCA;;;;;;;;;;;;EClLO,IAAMM,iBAAiB,GAAAC,QAAA,CAAAD,iBAAA,GAAG,IAAIE,OAAO,CAAC,CAAC;EACvC,SAASC,gBAAgBA,CAACC,KAAK,EAAEC,MAAM,EAAE;IAC9C,IAAIA,MAAM,CAACC,MAAM,GAAG,CAAC,IAAI,CAACF,KAAK,EAAE;MAC/B;IACF;IAEA,IAAIG,MAAM,GAAG,CAAC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AAqB,CAAC;MAC5D,IAAI,CAAC8D,eAAe,CAACU,UAAU,EAAED,SAAS,EAAEjC,UAAU,CAAC;IACzD;IACA;AACF;AACA;AACA;;IAGEmC,KAAKA,CAACnC,UAAU,EAAE;MAChB/C,iBAAiB,CAACmF,GAAG,CAAC,IAAI,EAAE,EAAE,CAAC;MAC/B,IAAI,CAACC,QAAQ,CAACrC,UAAU,CAAC;MACzB,IAAI,CAAC8B,OAAO,CAAC,UAAU,EAAE9B,UAAU,CAAC;IACtC;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE6B,UAAUA,CAACF,WAAW,EAAE,CAAC;IACzB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEU,QAAQA,CAACV,WAAW,EAAE,CAAC;IACvB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEW,YAAYA,CAAC,GAAGC,IAAI,EAAE;MACpB;MACA,OAAO,IAAI,CAAC9C,OAAO,CAAC6C,YAAY,CAAC,GAAG,IAAAE,0BAAkB,EAAC,IAAI,EAAED,IAAI,CAAC,CAAC;IACrE;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEE,wBAAwBA,CAAC,GAAGF,IAAI,EAAE;MAChC,IAAI,CAAC9E,IAAI,EAAE,GAAGiF,YAAY,CAAC,GAAG,IAAAF,0BAAkB,EAAC,IAAI,EAAED,IAAI,CAAC;MAE5D,IAAI,CAAC9C,OAAO,CAACgD,wBAAwB,CAAChF,IAAI,EAAE,GAAGiF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AY,CAACC,OAAO,CAACC,YAAY,EAAE;QAC1C,IAAI,CAACC,cAAc,CAACzC,UAAU,EAAE9D,OAAO,CAAC;MAC1C,CAAC,CAAC;MACF;;MAGA,IAAAwG,0BAAmB,EAAC,KAAK,CAAC;IAC5B;IACA;AACF;AACA;AACA;AACA;;IAGEC,UAAUA,CAACtD,IAAI,EAAE/B,KAAK,EAAEJ,EAAE,EAAE;MAC1B,IAAI,CAACA,EAAE,EAAE;QACP;MACF,CAAC,CAAC;;MAGF,IAAIqE,KAAK,GAAG,IAAI,CAACC,YAAY;MAC7B,IAAIQ,QAAQ,GAAG,IAAAC,yBAAiB,EAAC/E,EAAE,CAACtB,KAAK,CAACS,aAAa,EAAEa,EAAE,CAACE,KAAK,EAAEF,EAAE,CAAC6E,MAAM,CAAC;MAC7ER,KAAK,CAACqB,KAAK,CAACZ,QAAQ,EAAE3C,IAAI,EAAE/B,KAAK,CAAC;IACpC;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEuF,WAAWA,CAAA,EAAG,CAAC;IACf;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEC,UAAUA,CAAA,EAAG,CAAC;IACd;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEC,QAAQA,CAAA,EAAG,CAAC;IACZ;AACF;AACA;AACA;AACA;;IAGEC,gBAAgBA,CAAA,EAAG;MACjB,IAAI,CAACC,YAAY,GAAG,IAAI,CAAC/G,OAAO;IAClC;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;A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,IAAIuC,UAAU,KAAKD,SAAS,IAAIC,UAAU,KAAK,IAAI,EAAE;QACnD,IAAIkG,eAAe,GAAGpI,KAAK,IAAIA,KAAK,CAACQ,SAAS,IAAIb,IAAI;QAEtD,IAAIgD,MAAM,CAAC0F,SAAS,CAACC,cAAc,CAACC,IAAI,CAACrG,UAAU,CAACsG,cAAc,EAAEJ,eAAe,CAAC,EAAE;UACpF,OAAOlG,UAAU,CAACsG,cAAc,CAACJ,eAAe,CAAC;QACnD;MACF;MAEA,OAAOpI,KAAK,IAAIA,KAAK,CAACqH,YAAY;IACpC;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGER,cAAcA,CAAClD,WAAW,EAAE8E,MAAM,EAAE;MAClC;MACA,IAAI,CAACC,MAAM,CAAC,CAAC;IACf;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEA,MAAMA,CAAC/I,IAAI,EAAEgH,OAAO,EAAE;MACpB,IAAIgC,aAAa,GAAGC,kBAAkB,CAAC,IAAI,EAAEjJ,IAAI,EAAEgH,OAAO,CAAC;MAC3DxH,iBA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AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA;;;;;;;;;;;;;;;;ECtLA,IAAMoB,iBAAiB,GAAG,KAAK;EACxB,SAASC,gBAAgBA,CAACC,IAAI,EAAE;IACrCA,IAAI,GAAGA,IAAI,CAACC,KAAK,CAAC,CAAC;IACnB,IAAIC,mBAAmB,GAAGF,IAAI,CAACA,IAAI,CAACG,MAAM,GAAG,CAAC,CAAC;IAC/C,IAAIC,WAAW;IAEf,IAAIF,mBAAmB,IAAIG,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACN,mBAAmB,EAAE,aAAa,CAAC,EAAE;MACnG;MACA;MACA;MACA;MACAE,WAAW,GAAGJ,IAAI,CAACS,GAAG,CAAC,CAAC,CAACL,WAAW;IACtC,CAAC,MAAM;MACLA,WAAW,GAAG,CAAC,CAAC;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,KAAxI,IAAAuC,aAAM,EAAE,wBAAuBpB,GAAI,MAAKe,KAAM,+CAA8C,IAAK,+BAA8B,EAAElC,OAAO,CAAC;MACzI,OAAO,IAAAc,UAAG,EAACd,OAAO,EAAEmB,GAAG,EAAEe,KAAK,CAAC;IACjC;EAEF,CAAC,CAAC;AAAA;;;;;;;;;ECpGF;AACA;AACA;;EAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMM,aAAa,GAAGC,YAAK,CAACC,MAAM,CAAC;IACjCC,gBAAgB,EAAE,CAAC,SAAS,CAAC;IAE7B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,IAAIA,CAACC,UAAU,EAAE,GAAGC,IAAI,EAAE;MAAA,WAC+E,CAAC,IAAI,CAACC,YAAY,IAAI,CAAC,IAAI,CAACC,WAAW,KAA9I,IAAAC,aAAM,EAAE,8CAA6CJ,UAA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EAAEA,GAAG,EAAE,EAAE;QACvC,IAAI,IAAAxC,eAAQ,EAAC,IAAI,EAAEwC,GAAG,CAAC,KAAKQ,MAAM,EAAE;UAClC,OAAOR,GAAG;QACZ;MACF;MAEA,OAAO,CAAC,CAAC;IACX,CAAC;IAED;IACA;IACA;;IAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEU,gBAAgBA,CAAC/C,MAAM,EAAEgD,IAAI,EAAE;MAC7B,OAAO,IAAAD,uBAAgB,EAAC,IAAI,EAAE/C,MAAM,EAAEgD,IAAI,CAAC;IAC7C,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,mBAAmBA,CAACjD,MAAM,EAAEgD,IAAI,EAAE;MAChC,OAAO,IAAAC,0BAAmB,EAAC,IAAI,EAAEjD,MAAM,EAAEgD,IAAI,CAAC;IAChD,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEE,iBAAiB,EAAE,IAAAC,0BAAU,EAAC;MAC5BC,YAAY,EAAE,IAAI;MAClB3B,UAAU,EAAE,KAAK;MAEjB7C,GAAGA,CAAA,EAAG;QACJ,OAAO,IAAAyE,mBAAY,EAAC,IAAI,EAAE,eAAe,CAAC,IAAI,IAAAA,mBAAY,EAAC,IAAI,EAAE,eAAe,CAAC;MACnF;IAEF,CAAC,CAAC;IAEF;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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A;AACA;AACA;AACA;IACEgE,OAAO,EAAElC,KAAK;IAEd;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEmC,OAAOA,CAACzF,GAAG,EAAEe,KAAK,EAAE;MAClB,OAAO,IAAI,CAACN,OAAO,CAACZ,IAAI,IAAI,IAAAqE,UAAG,EAACrE,IAAI,EAAEG,GAAG,EAAEe,KAAK,CAAC,CAAC;IACpD,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEwC,GAAGA,CAAC5B,QAAQ,EAAEC,MAAM,GAAG,IAAI,EAAE;MAAA,WAC2B,OAAOD,QAAQ,KAAK,UAAU,KAApF,IAAAzB,aAAM,EAAC,6CAA6C,EAAE,OAAOyB,QAAQ,KAAK,UAAU,CAAC;MACrF,IAAIxB,GAAG,GAAGC,CAAC,CAAC,CAAC;MACb,IAAI,CAACK,OAAO,CAAC,CAACiF,CAAC,EAAEzB,GAAG,EAAE0B,CAAC,KAAKxF,GAAG,CAAC8D,GAAG,CAAC,GAAGtC,QAAQ,CAAC4D,IAAI,CAAC3D,MAAM,EAAE8D,CAAC,EAAEzB,GAAG,EAAE0B,CAAC,CAAC,CAAC;MACxE,OAAOxF,GAAG;IACZ,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEmD,KAAK;IAEL;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEsC,MAAMA,CAACjE,QAAQ,EAAEC,MAAM,GAAG,IAAI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AAA,EAAG;MACT,OAAO,IAAI,CAACH,MAAM,CAAC/E,IAAI,CAAC,GAAGG,SAAS,CAAC,CAAC;IACxC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACES,IAAIA,CAACC,QAAQ,EAAEC,MAAM,GAAG,IAAI,EAAE;MAAA,WAC2B,OAAOD,QAAQ,KAAK,UAAU,KAArF,IAAAzB,aAAM,EAAC,8CAA8C,EAAE,OAAOyB,QAAQ,KAAK,UAAU,CAAC;MACtF,OAAOD,IAAI,CAAC,IAAI,EAAEC,QAAQ,EAAEC,MAAM,CAAC;IACrC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEqE,MAAMA,CAAA,EAAG;MACP,OAAOvE,IAAI,CAAC,IAAI,EAAEZ,IAAI,CAAC,GAAGG,SAAS,CAAC,CAAC;IACvC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEe,KAAKA,CAACL,QAAQ,EAAEC,MAAM,GAAG,IAAI,EAAE;MAAA,WAC2B,OAAOD,QAAQ,KAAK,UAAU,KAAtF,IAAAzB,aAAM,EAAC,+CAA+C,EAAE,OAAOyB,QAAQ,KAAK,UAAU,CAAC;MACvF,OAAOK,KAAK,CAAC,IAAI,EAAEL,QAAQ,EAAEC,MAAM,CAAC;IACtC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEsE,OAAOA,CAAA,EAAG;MACR,OAAOlE,KAAK,CAAC,IAAI,EAAElB,IAAI,CAAC,GAAGG,SAAS,CAAC,CAAC;IACxC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEc,GAAGA,CAACJ,QAAQ,EAAEC,MAAM,GAAG,IAAI,EAAE;MAAA,WAC2B,OAAOD,QAAQ,KAAK,UAAU,KAApF,IAAAzB,aAAM,EAAC,6CAA6C,EAAE,OAAOyB,QAAQ,KAAK,UAAU,CAAC;MACrF,OAAOI,GAAG,CAAC,IAAI,EAAEJ,QAAQ,EAAEC,MAAM,CAAC;IACpC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEuE,KAAKA,CAAA,EAAG;MACN,OAAOpE,GAAG,CAAC,IAAI,EAAEjB,IAAI,CAAC,GAAGG,SAAS,CAAC,CAAC;IACtC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEmF,MAAMA,CAACzE,QAAQ,EAAE0E,YAAY,EAAE;MAAA,WAC4B,OAAO1E,QAAQ,KAAK,UAAU,KAAvF,IAAAzB,aAAM,EAAC,gDAAgD,EAAE,OAAOyB,QAAQ,KAAK,UAAU,CAAC;MACxF,IAAIxB,GAAG,GAAGkG,YAAY;MACtB,IAAI,CAAC5F,OAAO,CAAC,UAAUZ,IAAI,EAAE8F,CAAC,EAAE;QAC9BxF,GAAG,GAAGwB,QAAQ,CAACxB,GAAG,EAAEN,IAAI,EAAE8F,CAAC,EAAE,IAAI,CAAC;MACpC,CAAC,EAAE,IAAI,CAAC;MACR,OAAOxF,GAAG;IACZ,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEmG,MAAMA,CAACC,UAAU,EAAE,GAAGC,IAAI,EAAE;MAC1B,IAAIrG,GAAG,GAAGC,CAAC,CAAC,CAAC;MACb,IAAI,CAACK,OAAO,CAACZ,IAAI,IAAIM,GAAG,CAACU,IAAI,CAAChB,IAAI,CAAC0G,UAAU,CAAC,GAAG,GAAGC,IAAI,CAAC,CAAC,CAAC;MAC3D,OAAOrG,GAAG;IACZ,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;IACEsG,OAAOA,CAAA,EAAG;MACR,OAAO,IAAI,CAAClD,GAAG,CAAC1D,IAAI,IAAIA,IAAI,CAAC;IAC/B,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACE6G,OAAOA,CAAA,EAAG;MACR,OAAO,IAAI,CAACd,MAAM,CAAC7E,KAAK,IAAIA,KAAK,IAAI,IAAI,CAAC;IAC5C,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACE4F,QAAQA,CAAClC,MAAM,EAAEnD,OAAO,EAAE;MACxB,OAAOY,OAAO,CAAC,IAAI,EAAEuC,MAAM,EAAEnD,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;IACpD,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEsF,MAAMA,CAAA,EAAG;MACP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IA,IAAI,KAAKA,IAAI;MAChF,OAAO,IAAI,CAAC+F,MAAM,CAACvE,SAAS,CAAC;IAC/B;EAEF,CAAC,CAAC;EACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMkG,YAAY,GAAAC,QAAA,CAAAD,YAAA,GAAG9D,YAAK,CAACC,MAAM,CAACZ,UAAU,EAAE2E,2BAAiB,EAAE;IAC/D;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,KAAKA,CAAA,EAAG;MACN,IAAInG,GAAG,GAAG,IAAI,CAACL,MAAM;MAErB,IAAIK,GAAG,KAAK,CAAC,EAAE;QACb,OAAO,IAAI;MACb;MAEA,IAAI,CAACc,OAAO,CAAC,CAAC,EAAEd,GAAG,EAAE9B,WAAW,CAAC;MACjC,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACE6C,QAAQA,CAAC2B,GAAG,EAAEQ,MAAM,EAAE;MACpBnC,QAAQ,CAAC,IAAI,EAAE2B,GAAG,EAAEQ,MAAM,CAAC;MAC3B,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACErC,QAAQA,CAACuF,KAAK,EAAEpG,GAAG,EAAE;MACnB,OAAOa,QAAQ,CAAC,IAAI,EAAEuF,KAAK,EAAEpG,GAAG,CAAC;IACnC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEqG,UAAUA,CAACpF,GAAG,EAAE;MACd,OAAOF,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAvCA,IAAAC,QAAA,GAAAC,QAAA,CAAAC,OAAA,GAyCeC,YAAK,CAACC,MAAM,CAAC;IAC1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,EAAEA,CAACC,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAE;MACvB,IAAAC,kBAAW,EAAC,IAAI,EAAEH,IAAI,EAAEC,MAAM,EAAEC,MAAM,CAAC;MACvC,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEE,GAAGA,CAACJ,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAE;MACxB,IAAAC,kBAAW,EAAC,IAAI,EAAEH,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAE,IAAI,CAAC;MAC7C,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEG,OAAOA,CAACL,IAAI,EAAE,GAAGM,IAAI,EAAE;MACrB,IAAAC,gBAAS,EAAC,IAAI,EAAEP,IAAI,EAAEM,IAAI,CAAC;IAC7B,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEE,GAAGA,CAACR,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAE;MACxB,IAAAO,qBAAc,EAAC,IAAI,EAAET,IAAI,EAAEC,MAAM,EAAEC,MAAM,CAAC;MAC1C,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;IACEQ,GAAGA,CAACV,IAAI,EAAE;MACR,OAAO,IAAAW,mBAAY,EAAC,IAAI,EAAEX,IAAI,CAAC;IACjC;EAEF,CAAC,CAAC;AAAA;;;;;;;;;ECpIF;AACA;AACA;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EATA,IAAAY,QAAA,GAAAC,QAAA,CAAAC,OAAA,GAWeC,YAAK,CAACC,MAAM,CAACC,mBAAU,CAAC;AAAA;;;;;;;;;ECjBvC;AACA;AACA;EAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EArEA,IAAAC,QAAA,GAAAC,QAAA,CAAAC,OAAA,GAuEeC,YAAK,CAACC,MAAM,CAAC;IAC1B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,GAAGA,CAACC,OAAO,EAAE;MACX,OAAO,IAAAD,UAAG,EAAC,IAAI,EAAEC,OAAO,CAAC;IAC3B,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,aAAaA,CAAC,GAAGC,IAAI,EAAE;MACrB,OAAO,IAAAD,oBAAa,EAAC,GAAG,CAAC,IAAI,CAAC,CAACE,MAAM,CAACD,IAAI,CAAC,CAAC;IAC9C,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEE,GAAGA,CAACJ,OAAO,EAAEK,KAAK,EAAE;MAClB,OAAO,IAAAD,UAAG,EAAC,IAAI,EAAEJ,OAAO,EAAEK,KAAK,CAAC;IAClC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,aAAaA,CAACC,IAAI,EAAE;MAClB,OAAO,IAAAD,oBAAa,EAAC,IAAI,EAAEC,IAAI,CAAC;IAClC,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,oBAAoBA,CAAA,EAAG;MACrB,IAAAA,2BAAoB,EAAC,CAAC;MACtB,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,kBAAkBA,CAAA,EAAG;MACnB,IAAAA,yBAAkB,EAAC,CAAC;MACpB,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,oBAAoBA,CAACV,OAAO,EAAE;MAC5B,IAAAU,2BAAoB,EAAC,IAAI,EAAEV,OAAO,CAAC;MACnC,OAAO,IAAI;IACb,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEW,WAAWA,CAACC,GAAG,EAAEC,MAAM,EAAEC,MAAM,EAAEC,IAAI,EAAE;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CAACC,QAAQ,EAAEC,OAAO,EAAE;MAAA,WACS,IAAI,CAACH,YAAY,CAACI,eAAe,CAACF,QAAQ,CAAC,KAAzF,IAAAG,aAAM,EAAC,qCAAqC,EAAE,IAAI,CAACL,YAAY,CAACI,eAAe,CAACF,QAAQ,CAAC,CAAC;MAC1F,OAAO,IAAI,CAACF,YAAY,CAACM,OAAO,CAACJ,QAAQ,EAAEC,OAAO,CAAC;IACrD,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEI,QAAQ,EAAEC,aAAa,CAAC,UAAU,CAAC;IAEnC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,UAAU,EAAED,aAAa,CAAC,YAAY,CAAC;IAEvC;AACF;AACA;AACA;AACA;AACA;AACA;IACEE,eAAe,EAAEF,aAAa,CAAC,KAAK,CAAC;IAErC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEG,gBAAgB,EAAEH,aAAa,CAAC,WAAW,CAAC;IAE5C;AACF;AACA;AACA;AACA;AACA;AACA;IACEI,eAAe,EAAEJ,aAAa,CAAC,SAAS,CAAC;IAEzC;AACF;AACA;AACA;AACA;AACA;AACA;IACEK,iBAAiB,EAAEL,aAAa,CAAC,YAAY,CAAC;IAE9C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEM,sBAAsB,EAAEN,aAAa,CAAC,gBAAgB,CAAC;IAEvD;AACF;AACA;AACA;AACA;AACA;AACA;IACEO,wBAAwB,EAAEP,a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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAEE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE,IAAIgC,WAAWA,CAAA,EAAG;MAChB,OAAO,IAAAA,oBAAW,EAAC,IAAI,CAAC;IAC1B;IAEA,IAAIA,WAAWA,CAACjD,KAAK,EAAE;MAAA,WACiE,KAAK,KAA3F,IAAAX,aAAM,EAAE,oBAAmB,IAAK,qDAAoD,EAAE,KAAK,CAAC;IAC9F;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE,IAAI6D,YAAYA,CAAA,EAAG;MACjB,OAAO,IAAAA,qBAAY,EAAC,IAAI,CAAC;IAC3B;IAEA,IAAIA,YAAYA,CAAClD,KAAK,EAAE;MAAA,WACiE,KAAK,KAA5F,IAAAX,aAAM,EAAE,oBAAmB,IAAK,sDAAqD,EAAE,KAAK,CAAC;IAC/F;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGEN,OAAOA,CAAA,EAAG;MACR;MACAL,aAAa,CAACsC,GAAG,CAAC,IAAI,CAAC;MAEvB,IAAI;QACF,IAAAjC,gBAAO,EAAC,IAAI,CAAC;MACf,CAAC,SAAS;QACRL,aAAa,CAACyE,MAAM,CAAC,IAAI,CAAC;MAC5B;MAEA,OAAO,IAAI;IACb;IACA;AACF;AACA;AACA;AACA;;IAGEP,WAAWA,CAAA,EAAG,CAAC;IACf;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE1C,QAAQA,CAAA,EAAG;MACT,IAAIkD,oBAAoB,GAAG,OAAO,IAAI,CAACC,iBAAiB,KAAK,UAAU;MACvE,IAAIC,SAAS,GAAGF,oBAAoB,GAAI,IAAG,IAAI,CAACC,iBAAiB,CAAC,CAAE,EAAC,GAAG,EAAE;MAC1E,IAAIE,GAAG,GAAI,IAAG,IAAAC,cAAO,EAAC,IAAI,CAAC,IAAI,IAAAC,wBAAa,EAAC,IAAI,CAAC,IAAI,IAAI,CAAChC,WAAW,CAACvB,QAAQ,CAAC,CAAE,IAAG,IAAAwD,cAAO,EAAC,IAAI,CAAE,GAAEJ,SAAU,GAAE;MACjH,OAAOC,GAAG;IACZ;IACA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;IAGE,OAAOI,MAAMA,CAAA,EAAG;MACd,IAAIC,KAAK,GAAG,cAAc,IAAI,CAAC,EAAE;MACjC3F,MAAM,CAAC4F,KAAK,CAACD,KAAK,CAACE,cA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AD,aAAM,EAAE,iHAAgH,EAAE,IAAAL,4BAAqB,EAAC,IAAI,EAAE,YAAY,CAAC,KAAKC,SAAS,IAAIC,KAAK,CAACC,OAAO,CAAC,IAAI,CAACG,UAAU,CAAC,CAAC;IACtN,CAAC;IAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEA,UAAU,EAAElB,WAAW;IAEvB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEgB,iBAAiB,EAAEhB;EACrB,CAAC,CAAC;AAAA;;;;;;;;;EClFF;AACA;AACA;;EAMA,IAAMmB,UAAU,GAAG;IACjBC,KAAK,EAAE,eAAe;IACtBC,MAAM,EAAE;EACV,CAAC;EACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAnGA,IAAAC,QAAA,GAAAC,QAAA,CAAAC,OAAA,GAqGeC,YAAK,CAACC,MAAM,CAACC,4BAAmB,EAAE;IAC/CC,KAAK,EAAE,EAAE;IACTC,iBA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G,IAAI,CAACE,SAAS;MAC3BG,GAAG,CAACjD,aAAa,GAAG,IAAI,CAACA,aAAa;MACtCiD,GAAG,CAACJ,WAAW,GAAG,IAAI,CAACA,WAAW;MAClCI,GAAG,CAACzD,OAAO,GAAG,IAAI;MAClB,OAAOyD,GAAG;IACZ;EAEF;EAAC,IAAAC,QAAA,GAAAC,QAAA,CAAAC,OAAA,GAEczE,mBAAmB;AAAA;;;;;;;;;ECxdlC;AACA;AACA;;EAkBA,IAAI0E,mBAAmB,GAAG,KAAK;EAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMC,WAAW,GAAGC,eAAM,CAACC,MAAM,CAAC;IAChC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,WAAW,EAAE,MAAM;IAEnB;AACF;AACA;AACA;AACA;AACA;IACEC,SAAS,EAAEC,0BAAM,GAAGC,MAAM,CAACC,QAAQ,GAAG,IAAI;IAE1C;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,eAAe,EAAE,IAAI;IAErB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,YAAY,EAAE,IAAI;IAElB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,QAAQ,EAAE,IAAI;IAEd;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,YAAY,EAAE,IAAI;IAElB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,qBAAqB,EAAE,IAAI;IAE3BC,IAAIA,CAAA,EAAG;MACL;MACA,IAAI,CAACC,MAAM,CAAC,GAAGC,SAAS,CAAC;MAEzB,IAAI,CAAC,IAAI,CAACC,CAAC,EAAE;QACX,IAAI,CAACA,CAAC,GAAGC,aAAM;MACjB;MAEAC,iBAAiB,CAAC,CAAC;MAEnB,sBAAW;QACT,IAAIC,gBAAG,CAACC,WAAW,EAAE;UACnB;UACAD,gBAAG,CAACC,WAAW,GAAG,KAAK;UACvBC,gBAAS,CAACC,WAAW,CAAC,CAAC;QACzB;MACF,CAAC,CAAC;MACF;;MAGA,IAAI,CAACC,mBAAmB,GAAG,CAAC;MAC5B,IAAI,CAACC,OAAO,GAAG,KAAK;MACpB,IAAI,CAACZ,qBAAqB,GAAG,IAAIa,GAAG,CAAC,CAAC;MACtC,IAAI,CAACf,QAAQ,GAAG,IAA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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEC,KAAKA,CAACC,GAAG,EAAE1D,OAAO,EAAE;MAAA,WAC8D,CAAC,IAAI,CAACC,WAAW,KAAjG,IAAAC,aAAM,EAAC,uEAAuE,EAAE,CAAC,IAAI,CAACD,WAAW,CAAC;MAAA,WAC1B,CAAC,IAAI,CAACE,YAAY,KAA1F,IAAAD,aAAM,EAAC,+DAA+D,EAAE,CAAC,IAAI,CAACC,YAAY,CAAC;MAC3F,OAAO,IAAI,CAAC0B,IAAI,CAAC,CAAC,CAAC8B,IAAI,CAAC,MAAM;QAC5B,IAAIlD,QAAQ,GAAG,IAAI,CAACV,aAAa,CAAC,CAAC;QACnC,OAAOU,QAAQ,CAACoB,IAAI,CAAC7B,OAAO,CAAC,CAAC2D,IAAI,CAAC,MAAMlD,QAAQ,CAACgD,KAAK,CAACC,GAAG,CAAC,CAAC,CAACE,KAAK,CAACtB,KAAK,IAAI;UAC3E,IAAAjB,YAAG,EAACZ,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,kBAAkBA,CAACC,WAAW,EAAEC,UAAU,EAAE;IAC1D,OAAO,IAAAC,2BAAmB,EAACF,WAAW,EAAEC,UAAU,CAAC;EACrD;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASE,oBAAoBA,CAACH,WAAW,EAAEC,UAAU,EAAE;IAC5D,OAAO,IAAAG,6BAAqB,EAACJ,WAAW,EAAEC,UAAU,CAAC;EACvD;AAAC;;;;;;;;;;;;;;;;;;;;;EC/ND,SAASI,KAAKA,CAACC,GAAG,EAAE;IAClB,IAAIC,UAAU,GAAG,EAAE;IAEnB,KAAK,IAAIC,GAAG,IAAIF,GAAG,EAAE;MACnBC,UAAU,CAACE,IAAI,CAACD,GAAG,CAAC;IACtB;IAEA,OAAOD,UAAU;EACnB;EACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAGA,IAAMG,MAAM,GAAGC,kBAAS,CAACC,MAAM,CAACC,2BAAkB,EAAE;IACl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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACEI,WAAW,EAAEyB,sBAAsB,CAAC,cAAc,EAAE,aAAa,CAAC;IAElE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACExB,mBAAmB,EAAEwB,sBAAsB,CAAC,sBAAsB,EAAE,sBAAsB,CAAC;IAE3F;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;IACErC,aAAaA,CAACsC,SAAS,EAAE;MACvB,IAAI7B,QAAQ,GAAG,IAAI8B,mBAAQ,CAAC;QAC1BC,QAAQ,EAAEC,WAAW,CAACH,SAAS;MACjC,CAAC,CAAC;MACF7B,QAAQ,CAACiC,GAAG,GAAGA,UAAG;MAClBjC,QAAQ,CAACkC,QAAQ,CA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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMQ,YAAY,GAAG,IAAIC,OAAO,CAAC,CAAC;EAElC,SAASC,WAAWA,CAACC,MAAM,EAAEC,GAAG,EAAEC,QAAQ,EAAE;IAC1C,IAAIF,MAAM,CAACG,WAAW,KAAKC,SAAS,IAAI,OAAOJ,MAAM,CAACG,WAAW,CAACE,KAAK,KAAK,UAAU,EAAE;MACtFL,MAAM,CAACG,WAAW,CAACE,KAAK,CAAC,CAAC;IAC5B;IAEA,IAAI,CAACC,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACT,MAAM,EAAE,SAAS,CAAC,EAAE;MAC5D,IAAIU,aAAa,GAAGV,MAAM,CAACW,OAAO,CAAC,CAAC;;MAEpCX,MAAM,CAACW,OAAO,GAAGD,aAAa,GAAG,IAAAE,iBAAM,EAAC,CAAC,CAAC,EAAEF,aAAa,CAAC,GAAG,CAAC,CAAC;IACjE;IAEAV,MAAM,CAACW,OAAO,CAACV,GAAG,CAAC,GAAGC,QAAQ;IAC9B,OAAO;MACLW,GAAGA,CAAA,EAAG;QACJ,IAAIC,QAAQ,GAAGjB,YAAY,CAACgB,GAAG,CAAC,IAAI,CAAC;QAErC,IAAIC,QAAQ,KAAKV,SA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AAC,EAAEA,CAAC,GAAGa,OAAO,EAAEb,CAAC,EAAE,EAAE;UAChC,IAAIc,KAAK,GAAG,IAAAC,UAAG,EAAC,IAAI,EAAEL,aAAa,CAACV,CAAC,CAAC,CAAC;UAEvC,IAAI,CAACQ,SAAS,CAACM,KAAK,CAAC,EAAE;YACrB,OAAOA,KAAK;UACd;QACF;QAEA,OAAO,IAAAC,UAAG,EAAC,IAAI,EAAEL,aAAa,CAACG,OAAO,CAAC,CAAC;MAC1C,CAAC,CAAC;MACF,OAAOF,YAAY;IACrB,CAAC;EACH;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAGO,SAASK,KAAKA,CAACC,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAArK,IAAAlB,aAAM,EAAC,iGAAiG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACtK,OAAO,IAAAV,eAAQ,EAAE,GAAEK,YAAa,SAAQ,EAAE,YAAY;MACpD,OAAO,IAAAM,cAAO,EAAC,IAAAR,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,CAAC;IACzC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASO,QAAQA,CAACP,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAAxK,IAAAlB,aAAM,EAAC,oGAAoG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACzK,OAAO,IAAAV,eAAQ,EAAE,GAAEK,YAAa,SAAQ,EAAE,YAAY;MACpD,OAAO,CAAC,IAAAM,cAAO,EAAC,IAAAR,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,CAAC;IAC1C,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASQ,IAAIA,CAACR,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAApK,IAAAlB,aAAM,EAAC,gGAAgG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACrK,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAO,IAAAS,aAAM,EAAC,IAAAX,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,CAAC;IACxC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASU,GAAGA,CAACV,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAAnK,IAAAlB,aAAM,EAAC,+FAA+F,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACpK,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAO,CAAC,IAAAF,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC;IACjC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASW,IAAIA,CAACX,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAApK,IAAAlB,aAAM,EAAC,gGAAgG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACrK,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAOY,OAAO,CAAC,IAAAd,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,CAAC;IACzC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASa,KAAKA,CAACb,YAAY,EAAEc,MAAM,EAAE;IAAA,WAC4E,CAAC,IAAAtB,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAAjL,IAAAlB,aAAM,EAAC,6GAA6G,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAClL,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,IAAIH,KAAK,GAAG,IAAAC,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC;MACnC,OAAOc,MAAM,CAACC,IAAI,CAAClB,KAAK,CAAC;IAC3B,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASqB,GAAGA,CAAClB,YAAY,EAAEH,KAAK,EAAE;IAAA,WAC4E,CAAC,IAAAL,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAA9K,IAAAlB,aAAM,EAAC,0GAA0G,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAC/K,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAO,IAAAF,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,IAAIH,KAAK;IACzC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASsB,EAAEA,CAACnB,YAAY,EAAEH,KAAK,EAAE;IAAA,WAC4E,CAAC,IAAAL,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAA7K,IAAAlB,aAAM,EAAC,yGAAyG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAC9K,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAO,IAAAF,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,GAAGH,KAAK;IACxC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASuB,GAAGA,CAACpB,YAAY,EAAEH,KAAK,EAAE;IAAA,WAC4E,CAAC,IAAAL,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAA9K,IAAAlB,aAAM,EAAC,0GAA0G,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IAC/K,OAAO,IAAAV,eAAQ,EAACK,YAAY,EAAE,YAAY;MACxC,OAAO,IAAAF,UAAG,EAAC,IAAI,EAAEE,YAAY,CAAC,IAAIH,KAAK;IACzC,CAAC,CAAC;EACJ;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,IAAMwB,GAAG,GAAAC,QAAA,CAAAD,GAAA,GAAGhC,6BAA6B,CAAC,KAAK,EAAEQ,KAAK,IAAIA,KAAK,CAAC;EACvE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,IAAM0B,EAAE,GAAAD,QAAA,CAAAC,EAAA,GAAGlC,6BAA6B,CAAC,IAAI,EAAEQ,KAAK,IAAI,CAACA,KAAK,CAAC;EACtE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS2B,MAAMA,CAACxB,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAAtK,IAAAlB,aAAM,EAAC,kGAAkG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACvK,OAAO,IAAAoB,YAAK,EAACzB,YAAY,CAAC,CAACwB,MAAM,CAAC,CAAC;EACrC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASE,QAAQA,CAAC1B,YAAY,EAAE;IAAA,WACwE,CAAC,IAAAR,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,KAAxK,IAAAlB,aAAM,EAAC,oGAAoG,EAAE,CAAC,IAAAK,0BAAmB,EAACS,KAAK,CAACC,SAAS,CAACC,KAAK,CAACC,IAAI,CAACC,SAAS,CAAC,CAAC,CAAC;IACzK,OAAO,IAAAoB,YAAK,EAACzB,YAAY,CAAC,CAAC0B,QAAQ,CAAC,CAAC;EACvC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAE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AI,CAACJ,YAAY,CAAC,CAAC,CAAC;IAExK,IAAIsB,aAAa,GAAGF,cAAc,CAACG,GAAG,CAACC,GAAG,IAAK,GAAEA,GAAI,KAAI,CAAC;IAE1D,OAAO,IAAAlB,eAAQ,EAAC,GAAGgB,aAAa,EAAE,YAAY;MAC5C,OAAO,IAAAL,UAAM,EAAChB,QAAQ,CAACiB,IAAI,CAAC,IAAI,EAAEE,cAAc,CAAC,CAAC;IACpD,CAAC,CAAC,CAACV,QAAQ,CAAC,CAAC;EACf;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAGO,SAASe,GAAGA,CAACzB,YAAY,EAAE;IAAA,WACwE,CAAC,IAAA0B,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAnK,IAAAzB,aAAM,EAAC,+FAA+F,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IACpK,OAAO/B,WAAW,CAACC,YAAY,EAAE,CAACyB,GAAG,EAAEM,IAAI,KAAKN,GAAG,GAAGM,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC;EACvE;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,GAAGA,CAAChC,YAAY,EAAE;IAAA,WACwE,CAAC,IAAA0B,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAnK,IAAAzB,aAAM,EAAC,+FAA+F,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IACpK,OAAO/B,WAAW,CAACC,YAAY,EAAE,CAACgC,GAAG,EAAED,IAAI,KAAKE,IAAI,CAACD,GAAG,CAACA,GAAG,EAAED,IAAI,CAAC,EAAE,CAACG,QAAQ,EAAE,KAAK,CAAC;EACxF;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,GAAGA,CAACnC,YAAY,EAAE;IAAA,WACwE,CAAC,IAAA0B,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAnK,IAAAzB,aAAM,EAAC,+FAA+F,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IACpK,OAAO/B,WAAW,CAACC,YAAY,EAAE,CAACmC,GAAG,EAAEJ,IAAI,KAAKE,IAAI,CAACE,GAAG,CAACA,GAAG,EAAEJ,IAAI,CAAC,EAAEG,QAAQ,EAAE,KAAK,CAAC;EACvF;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASX,GAAGA,CAACvB,YAAY,EAAEY,uBAAuB,EAAEX,QAAQ,EAAE;IAAA,WAC2D,CAAC,IAAAyB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAzL,IAAAzB,aAAM,EAAC,qHAAqH,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IAE1L,IAAI7B,QAAQ,KAAKmC,SAAS,IAAI,OAAOxB,uBAAuB,KAAK,UAAU,EAAE;MAC3EX,QAAQ,GAAGW,uBAAuB;MAClCA,uBAAuB,GAAG,EAAE;IAC9B;IAAC,WAEyE,OAAOX,QAAQ,KAAK,UAAU,KAA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AAU,CAAClC,IAAI,CAACJ,YAAY,CAAC,KAA9H,IAAAK,aAAM,EAAE,uFAAsF,EAAE,CAAC,UAAU,CAACD,IAAI,CAACJ,YAAY,CAAC,CAAC;IAC/H,OAAOuB,GAAG,CAAE,GAAEvB,YAAa,UAASsC,WAAY,EAAC,EAAEP,IAAI,IAAI,IAAAvB,UAAG,EAACuB,IAAI,EAAEO,WAAW,CAAC,CAAC;EACpF;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,MAAMA,CAACvC,YAAY,EAAEY,uBAAuB,EAAEX,QAAQ,EAAE;IAAA,WAC2D,CAAC,IAAAyB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAA5L,IAAAzB,aAAM,EAAC,wHAAwH,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IAE7L,IAAI7B,QAAQ,KAAK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EAAER,YAAY,CAAC;MAClC,OAAO,IAAAgB,gBAAO,EAACmC,IAAI,CAAC,GAAG,IAAAC,eAAW,EAACD,IAAI,EAAEb,WAAW,CAAC,GAAG,IAAArB,UAAM,EAAC,CAAC;IAClE,CAAC,CAAC,CAACP,QAAQ,CAAC,CAAC;EACf;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,IAAI2C,KAAK,GAAAC,QAAA,CAAAD,KAAA,GAAGX,IAAI;EACvB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASa,SAASA,CAAC,GAAGZ,IAAI,EAAE;IAAA,WACsF,CAAC,IAAAjB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAlL,IAAAzB,aAAM,EAAC,8GAA8G,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IACnL,OAAOX,eAAe,CAACwB,IAAI,EAAE,UAAUrB,aAAa,EAAE;MACpD,IAAIkC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AC3D,QAAQ,CAAC,CAAC;EACf;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS6D,OAAOA,CAAC,GAAGjD,aAAa,EAAE;IAAA,WAC6E,CAAC,IAAAI,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAhL,IAAAzB,aAAM,EAAC,4GAA4G,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IACjL,OAAOX,eAAe,CAACG,aAAa,EAAE,YAAY;MAChD,IAAIkD,GAAG,GAAGlD,aAAa,CAACC,GAAG,CAACC,GAAG,IAAI;QACjC,IAAIiD,GAAG,GAAG,IAAAjE,UAAG,EAAC,IAAI,EAAEgB,GAAG,CAAC;QACxB,OAAOiD,GAAG,KAAKrC,SAAS,GAAG,IAAI,GAAGqC,GAAG;MACvC,CAAC,CAAC;MACF,OAAO,IAAAxD,UAAM,EAACuD,GAAG,CAAC;IACpB,CAAC,EAAE,SAAS,CAAC;EACf;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASE,IAAIA,CAACC,QAAQ,EAAE/D,uBAAuB,EAAEgE,cAAc,EAAE;IAAA,WACwC,CAAC,IAAAlD,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,KAAzK,IAAAzB,aAAM,EAAC,qGAAqG,EAAE,CAAC,IAAAqB,0BAAmB,EAACC,KAAK,CAACC,SAAS,CAACC,KAAK,CAACX,IAAI,CAACY,SAAS,CAAC,CAAC,CAAC;IAE1K,sBAAW;MACT,IAAI+C,cAAc,GAAG,KAAK;MAE1B,IAAI/C,SAAS,CAACW,MAAM,KAAK,CAAC,EAAE;QAC1BoC,cAAc,GAAG,OAAOF,QAAQ,KAAK,QAAQ,KAAK,OAAO/D,uBAAuB,KAAK,QAAQ,IAAI,OAAOA,uBAAuB,KAAK,UAAU,CAAC;MACjJ;MAEA,IAAIkB,SAAS,CAACW,MAAM,KAAK,CAAC,EAAE;QAC1BoC,cAAc,GAAG,OAAOF,QAAQ,KAAK,QAAQ,IAAIhD,KAAK,CAACX,OAAO,CAACJ,uBAAuB,CAAC,IAAI,OAAOgE,cAAc,KAAK,UAAU;MACjI;MA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AGF,GAAG,CAACG,IAAI,CAAC,IAAI,CAAC;EACzC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,IAAIA,CAAA,EAAG;IACrB,OAAOT,UAAU,CAACS,IAAI,CAAC,GAAGH,SAAS,CAAC;EACtC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,IAAME,IAAI,GAAGA,CAAC,GAAGE,OAAO,KAAK;IAAA,WACiB,UAAUC,cAAc,EAAEC,WAAW,EAAE;MACxF;MACA;MACA,IAAIC,MAAM,GAAGP,SAAS,CAACO,MAAM;MAE7B,IAAIA,MAAM,KAAK,CAAC,EAAE;QAChB,OAAO,KAAK;MACd,CAAC,MAAM,IAAIA,MAAM,KAAK,CAAC,EAAE;QACvB,OAAO,OAAOF,cAAc,KAAK,UAAU;MAC7C,CAAC,MAAM;QACL,IAAIG,IAAI,GAAG,OAAOF,WAAW;QAC7B,OAAOE,IAAI,KAAK,UAAU;QAAI;QAC9BH,cAAc,KAAK,IAAI,IAAIG,IAAI,KAAK,QAAQ,IAAIF,WAAW,IAAID,cAAc;QAAI;QACjF,OAAOA,cAAc,KAAK,UAAU,CAAC;QAAA;MAEvC;IACF,CAAC,CAAC,GAAGD,OAAO,CAAC,KAhBb,IAAAK,aAAM,EAAC,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AACoB,QAAQ,CAAC,GAAGd,SAAS,CAAC;EAC1C,CAAC,CAAC;;EAEK,SAASe,kBAAkBA,CAAA,EAAG;IACnC,OAAOrB,UAAU,CAACsB,SAAS,CAAC,CAAC;EAC/B,CAAC,CAAC;;EAEK,SAASC,YAAYA,CAAA,EAAG;IAC7BvB,UAAU,CAACuB,YAAY,CAAC,CAAC;EAC3B;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,KAAKA,CAAA,EACrB;EACA;IACE,OAAOxB,UAAU,CAACwB,KAAK,CAAC,GAAGlB,SAAS,CAAC;EACvC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASmB,IAAIA,CAAC,GAAGT,IAAI,EAAE;IAC5BA,IAAI,CAACU,OAAO,CAAC,SAAS,CAAC;IACvB,OAAO1B,UAAU,CAAC2B,YAAY,CAAC,GAAGX,IAAI,CAAC;EACzC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASW,YAAYA,CAAA,EAC5B;EACA;IACE,OAAO3B,UAAU,CAAC2B,YAAY,CAAC,GAAGrB,SAAS,CAAC;EAC9C;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASlB,IAAIA,CAAC,GAAG4B,IAAI,EAAE;IAC5BA,IAAI,CAACY,IAAI,CAAC,CAAC,CAAC;IACZ,OAAO5B,UAAU,CAACwB,KAAK,CAAC,GAAGR,IAAI,CAAC;EAClC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASa,MAAMA,CAACC,KAAK,EAAE;IAC5B,OAAO9B,UAAU,CAAC6B,MAAM,CAACC,KAAK,CAAC;EACjC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,QAAQA,CAAA,EAAG;IACzB,OAAO/B,UAAU,CAAC+B,QAAQ,CAAC,GAAGzB,SAAS,CAAC;EAC1C;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS0B,QAAQA,CAAA,EAAG;IACzB,OAAOhC,UAAU,CAACgC,QAAQ,CAAC,GAAG1B,SAAS,CAAC;EAC1C;AAAC;;;;;;;;;;ECvtBD;AACA;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS2B,MAAMA,CAAA,EAAG;IACvB,OAAO,IAAAC,aAAW,EAAC,SAAS,EAAE,GAAGC,SAAS,CAAC;EAC7C;EACA;AACA;AACA;AACA;AACA;AACA;;EAEA,IAAMC,OAAO,GAAGC,wBAAe,CAACC,MAAM,CAAC,CAAC;EACxCF,OAAO,CAACG,WAAW,CAAC;IAClBC,gBAAgB,EAAE;EACpB,CAAC,CAAC;EAAC,IAAAC,QAAA,GAAAC,QAAA,CAAAC,OAAA,GACYP,OAAO;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;ECrEtB;AACA;AACA;;EAMA,IAAMQ,uBAAuB,GAAG,OAAO;EACvC,IAAMC,sBAAsB,GAAG,IAAIC,YAAK,CAAC,IAAI,EAAEC,GAAG,IAAIC,UAAU,CAACD,GAAG,CAAC,CAACE,OAAO,CAACL,uBAAuB,EAAE,GAAG,CAAC,CAAC;EAC5G,IAAMM,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A;AACA;AACA;;EAEO,SAASpB,UAAUA,CAACe,GAAG,EAAE;IAC9B,OAAOe,gBAAgB,CAAC0B,GAAG,CAACzC,GAAG,CAAC;EAClC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS0C,SAASA,CAAC1C,GAAG,EAAE;IAC7B,OAAOlB,sBAAsB,CAAC2D,GAAG,CAACzC,GAAG,CAAC;EACxC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS2C,QAAQA,CAAC3C,GAAG,EAAE;IAC5B,OAAOX,cAAc,CAACoD,GAAG,CAACzC,GAAG,CAAC;EAChC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS4C,QAAQA,CAAC5C,GAAG,EAAE;IAC5B,OAAOD,cAAc,CAAC0C,GAAG,CAACzC,GAAG,CAAC;EAChC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS6C,UAAUA,CAAC7C,GAAG,EAAE;IAC9B,OAAOW,gBAAgB,CAAC8B,GAAG,CAACzC,GAAG,CAAC;EAClC;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAAS8C,UAAUA,CAAC9C,GAAG,EAAE;IAC9B,OAAOa,gBAAgB,CAAC4B,GAAG,CAACzC,GAAG,CAAC;EAClC;EAEA,IAAI+C,gBAAG,CAACC,iBAAiB,CAACxB,MAAM,EAAE;IAChC,IAAIyB,sCAAsC,GAAG,SAAAA,CAAUC,IAAI,EAAEC,EAAE,EAAEC,OAAO,GAAI,6DAA4DF,IAAK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D,IAAAC,kCAAmB,EAACC,eAAe,CAAC;IACtC,CAAC,MAAM;MACL,IAAAD,kCAAmB,EAAC,IAAI,CAAC;IAC3B;EACF;EACO,SAASE,UAAUA,CAAA,EAAG;IAC3B,IAAIP,OAAO,EAAE;MACXA,OAAO,CAACO,UAAU,CAAC,CAAC;IACtB;EACF;EACO,SAASC,QAAQA,CAAA,EAAG;IACzB,IAAIR,OAAO,EAAE;MACXA,OAAO,CAACQ,QAAQ,CAAC,CAAC;IACpB;EACF;EAEA,SAASF,eAAeA,CAACG,KAAK,EAAE;IAC9BT,OAAO,CAACI,SAAS,CAACK,KAAK,CAAC;IACxBC,OAAO,CAACD,KAAK,CAACA,KAAK,CAACE,KAAK,CAAC,CAAC,CAAC;EAC9B;AAAC;;;;;;;;;;;;EC3BM,IAAMC,OAAO,GAAAC,QAAA,CAAAD,OAAA,GAAG,CAAC,CAAC;EACzB;AACA;AACA;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASE,cAAcA,CAACC,IAAI,EAAEC,YAAY,EAAE;IACjDJ,OAAO,CAACG,IAAI,CAAC,GAAG;MACdE,MAAM,EAAED,YAAY;MACpBE,IAAI,EAAE;QACJC,IAAI,EAAE;MACR;IACF,CAAC;EACH;EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEO,SAASC,mBAAmBA,CAACL,IAAI,EAAEC,YAAY,EAAE;IACtDJ,OAAO,CAACG,IAAI,CAAC,GA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AAC,IAAI,EAAEuB,OAAO,EAAE,IAAI,CAAC,uBAAuBzG,KAAK,CAAC,CAACqB,OAAO;EACjF;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASsF,IAAIA,CAACF,OAAO,EAAEzG,KAAK,EAAE;IAC5B;IACA,IAAIiC,WAAW,GAAG,IAAI;IAEtB,IAAIZ,OAAO,GAAG,IAAIY,WAAW,CAACE,IAAI,EAAEnC,KAAK,CAAC;IAE1C,IAAI,CAAC6F,KAAK,CAACa,OAAO,CAACD,OAAO,CAAC,EAAE;MAC3BjD,MAAM,CAACnC,OAAO,EAAE,IAAI5B,SAAS,CAAC,2CAA2C,CAAC,CAAC;MAC3E,OAAO4B,OAAO;IAChB;IAEA,KAAK,IAAIpB,CAAC,GAAG,CAAC,EAAEoB,OAAO,CAACqC,MAAM,KAAKjB,OAAO,IAAIxC,CAAC,GAAGwG,OAAO,CAACvG,MAAM,EAAED,CAAC,EAAE,EAAE;MACrE2D,SAAS,CACP3B,WAAW,CAACgC,OAAO,CAACwC,OAAO,CAACxG,CAAC,CAAC,CAAC,EAAEX,SAAS,EAC1CiB,KAAK,IAAK6B,SAAS,CAACf,OAAO,EAAEd,KAAK,CAAC,EACnCgD,MAAM,IAAIC,MAAM,CAACnC,OAAO,EAAEkC,MAAM,CAClC,CAAC;IACH;IAEA,OAAOlC,OAAO;EAChB;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASuF,QAAQA,CAACrD,MAAM,EAAEvD,KAAK,EAAE;IAC/B;IACA,IAAIiC,WAAW,GAAG,IAAI;IACtB,IAAIZ,OAAO,GAAG,IAAIY,WAAW,CAACE,IAAI,EAAEnC,KAAK,CAAC;IAC1CwD,MAAM,CAACnC,OAAO,EAAEkC,MAAM,CAAC;IACvB,OAAOlC,OAAO;EAChB;EAEA,IAAMwF,OAAO,GAAG,OAAO,GAAGhF,IAAI,CAACC,GAAG,CAAC,CAAC,GAAG,GAAG;EAC1C,IAAIgF,OAAO,GAAG,CAAC;EAEf,SAASC,aAAaA,CAAA,EAAG;IACvB,MAAM,IAAItH,SAAS,CAAC,oFAAoF,CAAC;EAC3G;EAEA,SAASuH,QAAQA,CAAA,EAAG;IAClB,MAAM,IAAIvH,SAAS,CAAC,uHAAuH,CAAC;EAC9I;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,MAAM+F,OAAO,CAAC;IACZtD,WAAWA,CAAC8C,QAAQ,EAAEhF,K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ACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACArB,OAAO,CAAC6B,SAAS,CAACrD,IAAI,GAAGA,IAAI;EAE7B,SAASsD,UAAUA,CAACC,CAAC,EAAEC,aAAa,EAAE;IACpC,IAAIC,GAAG,GAAG,CAAC,CAAC;IACZ,IAAIvH,MAAM,GAAGqH,CAAC,CAACrH,MAAM;IACrB,IAAIwH,IAAI,GAAG,IAAI7B,KAAK,CAAC3F,MAAM,CAAC;IAE5B,KAAK,IAAIqC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGrC,MAAM,EAAEqC,CAAC,EAAE,EAAE;MAC/BmF,IAAI,CAACnF,CAAC,CAAC,GAAGgF,CAAC,CAAChF,CAAC,CAAC;IAChB;IAEA,KAAK,IAAItC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGuH,aAAa,CAACtH,MAAM,EAAED,CAAC,EAAE,EAAE;MAC7C,IAAIK,IAAI,GAAGkH,aAAa,CAACvH,CAAC,CAAC;MAC3BwH,GAAG,CAACnH,IAAI,CAAC,GAAGoH,IAAI,CAACzH,CAAC,GAAG,CAAC,CAAC;IACzB;IAEA,OAAOwH,GAAG;EACZ;EAEA,SAASE,WAAWA,CAACJ,CAAC,EAAE;IACtB,IAAIrH,MAAM,GAAGqH,CAAC,CAACrH,MAAM;IACrB,IAAIwH,IAAI,GAAG,IAAI7B,KAAK,CAAC3F,MAAM,GAAG,CAAC,CAAC;IAEhC,KAAK,IAAID,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGC,MAAM,EAAED,CAAC,EAAE,EAAE;MAC/ByH,IAAI,CAACzH,CAAC,GAAG,CAAC,CAAC,GAAGsH,CAAC,CAACtH,CAAC,CAAC;IACpB;IAEA,OAAOyH,IAAI;EACb;EAEA,SAASE,YAAYA,CAAC5D,IAAI,EAAE3C,OAAO,EAAE;IACnC,OAAO;MACL2C,IAAIA,CAAC6D,aAAa,EAAEtD,WAAW,EAAE;QAC/B,OAAOP,IAAI,CAAChB,IAAI,CAAC3B,OAAO,EAAEwG,aAAa,EAAEtD,WAAW,CAAC;MACvD;IACF,CAAC;EACH;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASuD,SAASA,CAACC,QAA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A;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASoD,IAAIA,CAACvK,MAAM,EAAEmB,KAAK,EAAE;IAC3B,OAAOwF,OAAO,CAACvB,OAAO,CAACpF,MAAM,EAAEmB,KAAK,CAAC,CAClCgE,IAAI,CAAC,UAASnF,MAAM,EAAE;MACrB,IAAIA,MAAM,KAAK,IAAI,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;QACjD,MAAM,IAAIY,SAAS,CAAC,4CAA4C,CAAC;MACnE;MACA,OAAO,IAAIwJ,WAAW,CAACzD,OAAO,EAAE3G,MAAM,EAAEmB,KAAK,CAAC,CAACqB,OAAO;IACxD,CAAC,CAAC;EACN;EAEA,MAAMgI,WAAW,SAASJ,WAAW,CAAC;IACpC/G,WAAWA,CAACD,WAAW,EAAEpD,MAAM,EAAEmB,KAAK,EAAE;MACtC,KAAK,CAACiC,WAAW,EAAEpD,MAAM,EAAE,KAAK,EAAEmB,KAAK,CAAC;IAC1C;EACF;EAEAqJ,WAAW,CAAChC,SAAS,CAACf,YAAY,GAAGC,gBAAgB;;EAErD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAAS+C,WAAWA,CAACzK,MAAM,EAAEmB,KAAK,EAAE;IAClC,OAAOwF,OAAO,CAACvB,OAAO,CAACpF,MAAM,EAAEmB,KAAK,CAAC,CAClCgE,IAAI,CAAC,UAASnF,MAAM,EAAE;MACrB,IAAIA,MAAM,KAAK,IAAI,IAAI,OAAOA,MAAM,KAAK,QAAQ,EAAE;QACjD,MAAM,IAAIY,SAAS,CAAC,2CAA2C,CAAC;MAClE;MAEA,OAAO,IAAI4J,WAAW,CAAC7D,OAAO,EAAE3G,MAAM,EAAE,KAAK,EAAEmB,KAAK,CAAC,CAACqB,OAAO;IAC/D,CAAC,CAAC;EACN;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASkI,OAAOA,CAAChG,MAAM,EAAE;IACvB5C,UAAU,CAAC,MAAM;MACf,MAAM4C,MAAM;IACd,CAAC,CAAC;IACF,MAAMA,MAAM;EACd;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;EAEA,SAASiG,KAAKA,CAACxJ,KAAK,EAAE;IACpB,IAAIyJ,QAAQ,GAAG;MAAExF,OAAO,EAAE3E,SAAS;MAAEkE,MAAM,EAAElE;IAAU,CAAC;IAExDmK,QAAQ,CAACpI,OAAO,GAAG,IAAImE,OAAO,CAAC,CAACvB,OAAO,EAAET,MAAM,KAAK;MAClDiG,QAAQ,CAACxF,OAAO,GAAGA,OAAO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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASuJ,GAAGA,CAACC,QAAQ,EAAEJ,KAAK,EAAE3J,KAAK,EAAE;IACnC,IAAI,OAAO2J,KAAK,KAAK,UAAU,EAAE;MAC/B,OAAOnE,OAAO,CAAChC,MAAM,CAAC,IAAI/D,SAAS,CAAC,6CAA6C,CAAC,EAAEO,KAAK,CAAC;IAC5F;IAEA,OAAOwF,OAAO,CAACvB,OAAO,CAAC8F,QAAQ,EAAE/J,KAAK,CAAC,CACpCgE,IAAI,CAAC,UAAS+F,QAAQ,EAAE;MACvB,IAAI,CAAClE,KAAK,CAACa,OAAO,CAACqD,QAAQ,CAAC,EAAE;QAC5B,MAAM,IAAItK,SAAS,CAAC,kCAAkC,CAAC;MACzD;MACA,OAAO,IAAIiK,aAAa,CAAClE,OAAO,EAAEuE,QAAQ,EAAEJ,KAAK,EAAE3J,KAAK,CAAC,CAACqB,OAAO;IACnE,CAAC,CAAC;EACN;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAAS2I,SAASA,CAACzJ,KAAK,EAAEP,KAAK,EAAE;IAC/B,OAAOwF,OAAO,CAACvB,OAAO,CAAC1D,KAAK,EAAEP,KAAK,CAAC;EACtC;;EAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACA,SAASiK,QAAQA,CAAC1G,MAAM,EAAEvD,KAAK,EAAE;IAC/B,OAAOwF,OAA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AA6B,CAAC,KAAK,QAAQ,EAAE;IAC9F,IAAI7L,SAAS,GAAG6L,MAAM,CAAC,6BAA6B,CAAC;IACrDtK,SAAS,CAAC,YAAY,EAAE,IAAI,CAAC;IAC7B,KAAK,IAAId,SAAS,IAAIT,SAAS,EAAE;MAC/B,IAAIA,SAAS,CAACwO,cAAc,CAAC/N,SAAS,CAAC,EAAE;QACvCJ,EAAE,CAACI,SAAS,EAAET,SAAS,CAACS,SAAS,CAAC,CAAC;MACrC;IACF;EACF;;EAEA;EACA;EACA,IAAIgO,IAAI,GAAG;IACThD,IAAI;IACJnD,IAAI;IACJ5B,OAAO;IACPxG,WAAW;IACXwH,GAAG,EAAEoC,KAAK;IACVG,UAAU;IACVpC,IAAI,EAAEqC,MAAM;IACZI,IAAI;IACJE,WAAW;IACXC,OAAO;IACPC,KAAK;IACL1B,SAAS;IACTzH,SAAS;IACTlB,EAAE;IACFC,GAAG;IACH6E,OAAO,EAAE+F,SAAS;IAClBxG,MAAM,EAAEyG,QAAQ;IAChBH,GAAG;IACH1G,KAAK;IACLgH;EACF,CAAC;EAAC,IAAAoD,QAAA,GAAAvO,QAAA,CAAAwO,OAAA,GAEaF,IAAI;AAAA;;;;;ACl5EnB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;ACngBAG,IAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC;AACnC;IACEA,IAAM,GAAG,GAAqC,YAAY,CAAC,IAAI,CAAC,CAAC;IACjE,GAAG,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IACtB,OAAO,GAAG,CAAC,IAAI,CAAC,CAAC;IACjB,OAAO,GAAG,CAAC;CACZ;;AC2BD,6BAKc,IAAY,EAAE,OAAgB,EAAE,QAA8B;QACpE,CAAC,IAAI,GAAG,IAAI,CAAC;QACb,CAAC,OAAO,GAAG,OAAO,CAAC;QACnB,CAAC,QAAQ,GAAG,QAAQ,CAAC;CAC1B,CAAA;iBAED,EAAE,gBAAC,MAAc,EAAE,QAAuB;QACpC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAEzB,QAAQ,IAAI,QAAQ,CAAC,YAAY,EAAE;cAC/B,GAAG,QAAQ,CAAC,YAAY,CAAC,IAAI,CA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B;CACnD,CAAC;AAqOJ,eAAe,CAAC,SAAS,CAAC,GAAG,GAAG,GAAG,CAAC,AAEpC,AAA+B;;;;;;;ACxtB/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACteA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjoEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9RA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACt1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpqJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjkBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC74FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChuDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3vCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9pBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC30SA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5PA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC9BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACRA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7TA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1NA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzKA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/HA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1IA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzhBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1aA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzJA;AACA;AACA;AACA;AACA;AACA;AACA;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3FA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnYA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1MA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrHA;AACA;;ACDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACZA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxHA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACVA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5GA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACrEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7EA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACbA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClDA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACnFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1DA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACpCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AChBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACtIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACjBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACxMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC/CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5CA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACfA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC7BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACTA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACdA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC1CA;","file":"vendor.js"}