{"version":3,"sources":["webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/array/is-array.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/bind.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/for-each.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/index-of.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/reduce.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/math/log2.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/number/is-nan.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/number/parse-float.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/object/define-properties.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/object/define-property.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/object/entries.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/object/freeze.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/object/values.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/promise.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/set-interval.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/set-timeout.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/set.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/array/from.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/array/is-array.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/get-iterator.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/instance/slice.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/is-iterable.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/object/assign.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/object/create.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/object/define-property.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/object/get-prototype-of.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/object/set-prototype-of.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/promise.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/symbol.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/arrayLikeToArray.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/arrayWithHoles.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/arrayWithoutHoles.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/assertThisInitialized.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/asyncToGenerator.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/classCallCheck.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/createClass.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/defineProperty.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/extends.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/getPrototypeOf.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/inherits.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/iterableToArray.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/iterableToArrayLimit.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/nonIterableRest.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/nonIterableSpread.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/possibleConstructorReturn.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/setPrototypeOf.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/slicedToArray.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/toConsumableArray.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/typeof.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/helpers/unsupportedIterableToArray.js","webpack://[name]/./node_modules/@babel/runtime-corejs3/regenerator/index.js","webpack://[name]/./desktop/static/common/rtl.js","webpack://[name]/./node_modules/core-js-pure/es/array/from.js","webpack://[name]/./node_modules/core-js-pure/es/array/is-array.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/concat.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/filter.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/find.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/for-each.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/includes.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/index-of.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/map.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/reduce.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/slice.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/sort.js","webpack://[name]/./node_modules/core-js-pure/es/array/virtual/splice.js","webpack://[name]/./node_modules/core-js-pure/es/function/virtual/bind.js","webpack://[name]/./node_modules/core-js-pure/es/instance/bind.js","webpack://[name]/./node_modules/core-js-pure/es/instance/concat.js","webpack://[name]/./node_modules/core-js-pure/es/instance/filter.js","webpack://[name]/./node_modules/core-js-pure/es/instance/find.js","webpack://[name]/./node_modules/core-js-pure/es/instance/includes.js","webpack://[name]/./node_modules/core-js-pure/es/instance/index-of.js","webpack://[name]/./node_modules/core-js-pure/es/instance/map.js","webpack://[name]/./node_modules/core-js-pure/es/instance/reduce.js","webpack://[name]/./node_modules/core-js-pure/es/instance/slice.js","webpack://[name]/./node_modules/core-js-pure/es/instance/sort.js","webpack://[name]/./node_modules/core-js-pure/es/instance/splice.js","webpack://[name]/./node_modules/core-js-pure/es/math/log2.js","webpack://[name]/./node_modules/core-js-pure/es/number/is-nan.js","webpack://[name]/./node_modules/core-js-pure/es/number/parse-float.js","webpack://[name]/./node_modules/core-js-pure/es/object/assign.js","webpack://[name]/./node_modules/core-js-pure/es/object/create.js","webpack://[name]/./node_modules/core-js-pure/es/object/define-properties.js","webpack://[name]/./node_modules/core-js-pure/es/object/define-property.js","webpack://[name]/./node_modules/core-js-pure/es/object/entries.js","webpack://[name]/./node_modules/core-js-pure/es/object/freeze.js","webpack://[name]/./node_modules/core-js-pure/es/object/get-own-property-descriptor.js","webpack://[name]/./node_modules/core-js-pure/es/object/get-own-property-descriptors.js","webpack://[name]/./node_modules/core-js-pure/es/object/get-own-property-symbols.js","webpack://[name]/./node_modules/core-js-pure/es/object/get-prototype-of.js","webpack://[name]/./node_modules/core-js-pure/es/object/keys.js","webpack://[name]/./node_modules/core-js-pure/es/object/set-prototype-of.js","webpack://[name]/./node_modules/core-js-pure/es/object/values.js","webpack://[name]/./node_modules/core-js-pure/es/promise/index.js","webpack://[name]/./node_modules/core-js-pure/es/reflect/construct.js","webpack://[name]/./node_modules/core-js-pure/es/set/index.js","webpack://[name]/./node_modules/core-js-pure/es/string/virtual/includes.js","webpack://[name]/./node_modules/core-js-pure/es/symbol/index.js","webpack://[name]/./node_modules/core-js-pure/es/symbol/iterator.js","webpack://[name]/./node_modules/core-js-pure/features/array/from.js","webpack://[name]/./node_modules/core-js-pure/features/array/is-array.js","webpack://[name]/./node_modules/core-js-pure/features/get-iterator-method.js","webpack://[name]/./node_modules/core-js-pure/features/get-iterator.js","webpack://[name]/./node_modules/core-js-pure/features/instance/slice.js","webpack://[name]/./node_modules/core-js-pure/features/is-iterable.js","webpack://[name]/./node_modules/core-js-pure/features/object/assign.js","webpack://[name]/./node_modules/core-js-pure/features/object/create.js","webpack://[name]/./node_modules/core-js-pure/features/object/define-property.js","webpack://[name]/./node_modules/core-js-pure/features/object/get-prototype-of.js","webpack://[name]/./node_modules/core-js-pure/features/object/set-prototype-of.js","webpack://[name]/./node_modules/core-js-pure/features/promise/index.js","webpack://[name]/./node_modules/core-js-pure/features/symbol/index.js","webpack://[name]/./node_modules/core-js-pure/features/symbol/iterator.js","webpack://[name]/./node_modules/core-js-pure/internals/a-function.js","webpack://[name]/./node_modules/core-js-pure/internals/a-possible-prototype.js","webpack://[name]/./node_modules/core-js-pure/internals/add-to-unscopables.js","webpack://[name]/./node_modules/core-js-pure/internals/an-instance.js","webpack://[name]/./node_modules/core-js-pure/internals/an-object.js","webpack://[name]/./node_modules/core-js-pure/internals/array-for-each.js","webpack://[name]/./node_modules/core-js-pure/internals/array-from.js","webpack://[name]/./node_modules/core-js-pure/internals/array-includes.js","webpack://[name]/./node_modules/core-js-pure/internals/array-iteration.js","webpack://[name]/./node_modules/core-js-pure/internals/array-method-has-species-support.js","webpack://[name]/./node_modules/core-js-pure/internals/array-method-is-strict.js","webpack://[name]/./node_modules/core-js-pure/internals/array-method-uses-to-length.js","webpack://[name]/./node_modules/core-js-pure/internals/array-reduce.js","webpack://[name]/./node_modules/core-js-pure/internals/array-species-create.js","webpack://[name]/./node_modules/core-js-pure/internals/call-with-safe-iteration-closing.js","webpack://[name]/./node_modules/core-js-pure/internals/check-correctness-of-iteration.js","webpack://[name]/./node_modules/core-js-pure/internals/classof-raw.js","webpack://[name]/./node_modules/core-js-pure/internals/classof.js","webpack://[name]/./node_modules/core-js-pure/internals/collection-strong.js","webpack://[name]/./node_modules/core-js-pure/internals/collection.js","webpack://[name]/./node_modules/core-js-pure/internals/correct-is-regexp-logic.js","webpack://[name]/./node_modules/core-js-pure/internals/correct-prototype-getter.js","webpack://[name]/./node_modules/core-js-pure/internals/create-iterator-constructor.js","webpack://[name]/./node_modules/core-js-pure/internals/create-non-enumerable-property.js","webpack://[name]/./node_modules/core-js-pure/internals/create-property-descriptor.js","webpack://[name]/./node_modules/core-js-pure/internals/create-property.js","webpack://[name]/./node_modules/core-js-pure/internals/define-iterator.js","webpack://[name]/./node_modules/core-js-pure/internals/define-well-known-symbol.js","webpack://[name]/./node_modules/core-js-pure/internals/descriptors.js","webpack://[name]/./node_modules/core-js-pure/internals/document-create-element.js","webpack://[name]/./node_modules/core-js-pure/internals/dom-iterables.js","webpack://[name]/./node_modules/core-js-pure/internals/engine-is-ios.js","webpack://[name]/./node_modules/core-js-pure/internals/engine-user-agent.js","webpack://[name]/./node_modules/core-js-pure/internals/engine-v8-version.js","webpack://[name]/./node_modules/core-js-pure/internals/entry-virtual.js","webpack://[name]/./node_modules/core-js-pure/internals/enum-bug-keys.js","webpack://[name]/./node_modules/core-js-pure/internals/export.js","webpack://[name]/./node_modules/core-js-pure/internals/fails.js","webpack://[name]/./node_modules/core-js-pure/internals/freezing.js","webpack://[name]/./node_modules/core-js-pure/internals/function-bind-context.js","webpack://[name]/./node_modules/core-js-pure/internals/function-bind.js","webpack://[name]/./node_modules/core-js-pure/internals/get-built-in.js","webpack://[name]/./node_modules/core-js-pure/internals/get-iterator-method.js","webpack://[name]/./node_modules/core-js-pure/internals/get-iterator.js","webpack://[name]/./node_modules/core-js-pure/internals/global.js","webpack://[name]/./node_modules/core-js-pure/internals/has.js","webpack://[name]/./node_modules/core-js-pure/internals/hidden-keys.js","webpack://[name]/./node_modules/core-js-pure/internals/host-report-errors.js","webpack://[name]/./node_modules/core-js-pure/internals/html.js","webpack://[name]/./node_modules/core-js-pure/internals/ie8-dom-define.js","webpack://[name]/./node_modules/core-js-pure/internals/indexed-object.js","webpack://[name]/./node_modules/core-js-pure/internals/inspect-source.js","webpack://[name]/./node_modules/core-js-pure/internals/internal-metadata.js","webpack://[name]/./node_modules/core-js-pure/internals/internal-state.js","webpack://[name]/./node_modules/core-js-pure/internals/is-array-iterator-method.js","webpack://[name]/./node_modules/core-js-pure/internals/is-array.js","webpack://[name]/./node_modules/core-js-pure/internals/is-forced.js","webpack://[name]/./node_modules/core-js-pure/internals/is-iterable.js","webpack://[name]/./node_modules/core-js-pure/internals/is-object.js","webpack://[name]/./node_modules/core-js-pure/internals/is-pure.js","webpack://[name]/./node_modules/core-js-pure/internals/is-regexp.js","webpack://[name]/./node_modules/core-js-pure/internals/iterate.js","webpack://[name]/./node_modules/core-js-pure/internals/iterators-core.js","webpack://[name]/./node_modules/core-js-pure/internals/iterators.js","webpack://[name]/./node_modules/core-js-pure/internals/microtask.js","webpack://[name]/./node_modules/core-js-pure/internals/native-promise-constructor.js","webpack://[name]/./node_modules/core-js-pure/internals/native-symbol.js","webpack://[name]/./node_modules/core-js-pure/internals/native-weak-map.js","webpack://[name]/./node_modules/core-js-pure/internals/new-promise-capability.js","webpack://[name]/./node_modules/core-js-pure/internals/not-a-regexp.js","webpack://[name]/./node_modules/core-js-pure/internals/number-parse-float.js","webpack://[name]/./node_modules/core-js-pure/internals/object-assign.js","webpack://[name]/./node_modules/core-js-pure/internals/object-create.js","webpack://[name]/./node_modules/core-js-pure/internals/object-define-properties.js","webpack://[name]/./node_modules/core-js-pure/internals/object-define-property.js","webpack://[name]/./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js","webpack://[name]/./node_modules/core-js-pure/internals/object-get-own-property-names-external.js","webpack://[name]/./node_modules/core-js-pure/internals/object-get-own-property-names.js","webpack://[name]/./node_modules/core-js-pure/internals/object-get-own-property-symbols.js","webpack://[name]/./node_modules/core-js-pure/internals/object-get-prototype-of.js","webpack://[name]/./node_modules/core-js-pure/internals/object-keys-internal.js","webpack://[name]/./node_modules/core-js-pure/internals/object-keys.js","webpack://[name]/./node_modules/core-js-pure/internals/object-property-is-enumerable.js","webpack://[name]/./node_modules/core-js-pure/internals/object-set-prototype-of.js","webpack://[name]/./node_modules/core-js-pure/internals/object-to-array.js","webpack://[name]/./node_modules/core-js-pure/internals/object-to-string.js","webpack://[name]/./node_modules/core-js-pure/internals/own-keys.js","webpack://[name]/./node_modules/core-js-pure/internals/path.js","webpack://[name]/./node_modules/core-js-pure/internals/perform.js","webpack://[name]/./node_modules/core-js-pure/internals/promise-resolve.js","webpack://[name]/./node_modules/core-js-pure/internals/redefine-all.js","webpack://[name]/./node_modules/core-js-pure/internals/redefine.js","webpack://[name]/./node_modules/core-js-pure/internals/require-object-coercible.js","webpack://[name]/./node_modules/core-js-pure/internals/set-global.js","webpack://[name]/./node_modules/core-js-pure/internals/set-species.js","webpack://[name]/./node_modules/core-js-pure/internals/set-to-string-tag.js","webpack://[name]/./node_modules/core-js-pure/internals/shared-key.js","webpack://[name]/./node_modules/core-js-pure/internals/shared-store.js","webpack://[name]/./node_modules/core-js-pure/internals/shared.js","webpack://[name]/./node_modules/core-js-pure/internals/species-constructor.js","webpack://[name]/./node_modules/core-js-pure/internals/string-multibyte.js","webpack://[name]/./node_modules/core-js-pure/internals/string-trim.js","webpack://[name]/./node_modules/core-js-pure/internals/task.js","webpack://[name]/./node_modules/core-js-pure/internals/to-absolute-index.js","webpack://[name]/./node_modules/core-js-pure/internals/to-indexed-object.js","webpack://[name]/./node_modules/core-js-pure/internals/to-integer.js","webpack://[name]/./node_modules/core-js-pure/internals/to-length.js","webpack://[name]/./node_modules/core-js-pure/internals/to-object.js","webpack://[name]/./node_modules/core-js-pure/internals/to-primitive.js","webpack://[name]/./node_modules/core-js-pure/internals/to-string-tag-support.js","webpack://[name]/./node_modules/core-js-pure/internals/uid.js","webpack://[name]/./node_modules/core-js-pure/internals/use-symbol-as-uid.js","webpack://[name]/./node_modules/core-js-pure/internals/well-known-symbol-wrapped.js","webpack://[name]/./node_modules/core-js-pure/internals/well-known-symbol.js","webpack://[name]/./node_modules/core-js-pure/internals/whitespaces.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.concat.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.filter.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.find.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.for-each.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.from.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.includes.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.index-of.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.is-array.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.iterator.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.map.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.reduce.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.slice.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.sort.js","webpack://[name]/./node_modules/core-js-pure/modules/es.array.splice.js","webpack://[name]/./node_modules/core-js-pure/modules/es.function.bind.js","webpack://[name]/./node_modules/core-js-pure/modules/es.json.to-string-tag.js","webpack://[name]/./node_modules/core-js-pure/modules/es.math.log2.js","webpack://[name]/./node_modules/core-js-pure/modules/es.math.to-string-tag.js","webpack://[name]/./node_modules/core-js-pure/modules/es.number.is-nan.js","webpack://[name]/./node_modules/core-js-pure/modules/es.number.parse-float.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.assign.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.create.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.define-properties.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.define-property.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.entries.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.freeze.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.get-own-property-descriptor.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.get-own-property-descriptors.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.get-prototype-of.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.keys.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.set-prototype-of.js","webpack://[name]/./node_modules/core-js-pure/modules/es.object.values.js","webpack://[name]/./node_modules/core-js-pure/modules/es.promise.all-settled.js","webpack://[name]/./node_modules/core-js-pure/modules/es.promise.finally.js","webpack://[name]/./node_modules/core-js-pure/modules/es.promise.js","webpack://[name]/./node_modules/core-js-pure/modules/es.reflect.construct.js","webpack://[name]/./node_modules/core-js-pure/modules/es.set.js","webpack://[name]/./node_modules/core-js-pure/modules/es.string.includes.js","webpack://[name]/./node_modules/core-js-pure/modules/es.string.iterator.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.async-iterator.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.has-instance.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.is-concat-spreadable.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.iterator.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.match-all.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.match.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.replace.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.search.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.species.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.split.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.to-primitive.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.to-string-tag.js","webpack://[name]/./node_modules/core-js-pure/modules/es.symbol.unscopables.js","webpack://[name]/./node_modules/core-js-pure/modules/esnext.aggregate-error.js","webpack://[name]/./node_modules/core-js-pure/modules/esnext.promise.all-settled.js","webpack://[name]/./node_modules/core-js-pure/modules/esnext.promise.any.js","webpack://[name]/./node_modules/core-js-pure/modules/esnext.promise.try.js","webpack://[name]/./node_modules/core-js-pure/modules/esnext.symbol.async-dispose.js","webpack://[name]/./node_modules/core-js-pure/modules/esnext.symbol.dispose.js","webpack://[name]/./node_modules/core-js-pure/modules/esnext.symbol.observable.js","webpack://[name]/./node_modules/core-js-pure/modules/esnext.symbol.pattern-match.js","webpack://[name]/./node_modules/core-js-pure/modules/esnext.symbol.replace-all.js","webpack://[name]/./node_modules/core-js-pure/modules/web.dom-collections.iterator.js","webpack://[name]/./node_modules/core-js-pure/modules/web.timers.js","webpack://[name]/./node_modules/core-js-pure/stable/array/from.js","webpack://[name]/./node_modules/core-js-pure/stable/array/is-array.js","webpack://[name]/./node_modules/core-js-pure/stable/array/virtual/for-each.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/bind.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/concat.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/filter.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/find.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/for-each.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/includes.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/index-of.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/map.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/reduce.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/slice.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/sort.js","webpack://[name]/./node_modules/core-js-pure/stable/instance/splice.js","webpack://[name]/./node_modules/core-js-pure/stable/math/log2.js","webpack://[name]/./node_modules/core-js-pure/stable/number/is-nan.js","webpack://[name]/./node_modules/core-js-pure/stable/number/parse-float.js","webpack://[name]/./node_modules/core-js-pure/stable/object/define-properties.js","webpack://[name]/./node_modules/core-js-pure/stable/object/define-property.js","webpack://[name]/./node_modules/core-js-pure/stable/object/entries.js","webpack://[name]/./node_modules/core-js-pure/stable/object/freeze.js","webpack://[name]/./node_modules/core-js-pure/stable/object/get-own-property-descriptor.js","webpack://[name]/./node_modules/core-js-pure/stable/object/get-own-property-descriptors.js","webpack://[name]/./node_modules/core-js-pure/stable/object/get-own-property-symbols.js","webpack://[name]/./node_modules/core-js-pure/stable/object/keys.js","webpack://[name]/./node_modules/core-js-pure/stable/object/values.js","webpack://[name]/./node_modules/core-js-pure/stable/promise/index.js","webpack://[name]/./node_modules/core-js-pure/stable/reflect/construct.js","webpack://[name]/./node_modules/core-js-pure/stable/set-interval.js","webpack://[name]/./node_modules/core-js-pure/stable/set-timeout.js","webpack://[name]/./node_modules/core-js-pure/stable/set/index.js","webpack://[name]/./node_modules/core-js-pure/stable/symbol/index.js","webpack://[name]/./node_modules/regenerator-runtime/runtime.js","webpack://[name]/webpack/bootstrap","webpack://[name]/webpack/runtime/compat get default export","webpack://[name]/webpack/runtime/define property getters","webpack://[name]/webpack/runtime/global","webpack://[name]/webpack/runtime/hasOwnProperty shorthand","webpack://[name]/webpack/runtime/make namespace object","webpack://[name]/./desktop/static/js/theme-map/Geo/constants.js","webpack://[name]/./desktop/static/js/theme-map/Geo/Coordinate.js","webpack://[name]/./desktop/static/js/theme-map/Util/SmoothScroll.js","webpack://[name]/./desktop/static/js/theme-map/Performance/LoadContent.js","webpack://[name]/./desktop/static/js/theme-map/Util/Assertions.js","webpack://[name]/./desktop/static/js/theme-map/Maps/ProviderMap.js","webpack://[name]/./desktop/static/js/theme-map/Maps/ProviderPin.js","webpack://[name]/./desktop/static/js/theme-map/Maps/MapProvider.js","webpack://[name]/./desktop/static/js/utils.js","webpack://[name]/./desktop/static/js/theme-map/Maps/Providers/Google.js","webpack://[name]/./desktop/static/js/deferred-promise.js","webpack://[name]/./desktop/static/js/theme-map/Maps/Providers/Mapbox.js","webpack://[name]/./desktop/static/js/theme-map/Util/helpers.js","webpack://[name]/./desktop/static/js/theme-map/SearchPreventer.js","webpack://[name]/./desktop/static/js/theme-map/constants.js","webpack://[name]/./desktop/static/js/theme-map/Maps/ZoomTriggers.js","webpack://[name]/./desktop/static/js/theme-map/Maps/PanTriggers.js","webpack://[name]/./desktop/static/js/theme-map/MobileStates.js","webpack://[name]/./desktop/static/js/constants/storage-keys.js","webpack://[name]/./desktop/static/js/theme-map/VerticalFullPageMapOrchestrator.js","webpack://[name]/./desktop/static/js/theme-map/Geo/GeoBounds.js","webpack://[name]/./desktop/static/js/theme-map/Maps/PinProperties.js","webpack://[name]/./desktop/static/js/theme-map/Maps/MapPin.js","webpack://[name]/./desktop/static/js/theme-map/Maps/Map.js","webpack://[name]/./desktop/static/js/theme-map/PinClusterer/PinClusterer.js","webpack://[name]/./desktop/static/js/theme-map/Renderer/RenderTarget.js","webpack://[name]/./desktop/static/js/theme-map/Renderer/MapRenderTarget.js","webpack://[name]/./desktop/static/js/theme-map/Renderer/Renderer.js","webpack://[name]/./desktop/static/js/theme-map/Util/transformers.js","webpack://[name]/./desktop/static/js/theme-map/PinImages.js","webpack://[name]/./desktop/static/js/theme-map/ClusterPinImages.js","webpack://[name]/./desktop/static/js/theme-map/ThemeMapConfig.js","webpack://[name]/./desktop/static/js/theme-map/ThemeMap.js","webpack://[name]/./desktop/static/js/theme-map/CardListenerAssigner.js"],"names":["module","exports","locale","Unit","DEGREE","KILOMETER","MILE","RADIAN","Projection","MERCATOR","SPHERICAL","EARTH_RADIUS_MILES","EARTH_RADIUS_KILOMETERS","LATITUDE_ALIASES","LONGITUDE_ALIASES","object","keys","key","value","parsed","Error","degrees","Math","PI","radians","source","dest","lat1Rads","degreesToRadians","latitude","lat2Rads","deltaLat","deltaLon","longitude","a","pow","sin","cos","atan2","sqrt","latitudeA","latitudeB","aTan","tan","bTan","log","startingLat","E","atan","Coordinate","latitudeOrObject","findValue","latDist","lonDist","unit","projection","latDistRad","lonDistDeg","radiansToDegrees","mercatorLatAddRadians","coordinate","mercatorLatDistanceInRadians","absoluteLonDist","abs","normalLon","min","radianDist","haversineDistance","_lat","newLat","max","forceNumber","_lon","newLon","Timing","LINEAR","t","el","scrollDist","duration","intervalLength","timing","scrollTop","timeElapsed","interval","clearInterval","url","style","document","createElement","href","rel","type","head","appendChild","src","cb","script","async","onload","Type","UNDEFINED","NULL","BOOLEAN","NUMBER","BIGINT","STRING","SYMBOL","FUNCTION","OBJECT","instanceClass","isInstance","err","name","constructor","ProviderMapOptions","provider","wrapper","assertInstance","MapProvider","HTMLElement","providerMapClass","getMapClass","controlEnabled","panHandler","panStartHandler","dragEndHandler","zoomChangedHandler","zoomEndHandler","canvasClickHandler","providerOptions","assertType","ProviderMap","options","_panHandler","_panStartHandler","_dragEndHandler","_zoomChangedHandler","_zoomEndHandler","_canvasClickHandler","animated","zoom","center","setZoom","setCenter","ProviderPinOptions","providerPinClass","getPinClass","clickHandler","focusHandler","focused","hoverHandler","hovered","icons","ProviderPin","_clickHandler","_focusHandler","_hoverHandler","_icons","themeMap","currentMap","pinProperties","MapProviderOptions","loadFunction","resolve","reject","apiKey","formatLocaleFunction","mapClass","pinClass","providerName","supportedLocales","_loadFunction","_formatLocaleFunction","_mapClass","_pinClass","_providerName","_supportedLocales","_loadPromise","_resolveLoad","_rejectLoad","_loadInvoked","_loaded","ready","toLowerCase","localeCode","localeCodeSections","replace","split","language","parseModifierAndRegion","numSections","length","ambiguous","modifier","region","console","error","capitalizeFirstLetterOnly","raw","charAt","toUpperCase","parsedLocale","Library","PLACES","GoogleMap","zoomControlPosition","isRTL","google","maps","ControlPosition","LEFT_TOP","RIGHT_TOP","map","Map","disableDefaultUI","fullscreenControl","gestureHandling","mapTypeControl","rotateControl","scaleControl","streetViewControl","zoomControl","zoomControlOptions","position","_currentZoom","_zoomValid","_zoomChangeListener","_moving","debouncedIdleEvent","debounce","event","addListener","addListenerOnce","getCenter","getZoom","latLng","LatLng","panTo","z","floor","GooglePin","pin","Marker","optimized","setPosition","setMap","getProviderMap","anchorX","getAnchorX","anchorY","getAnchorY","height","getHeight","icon","getIcon","width","getWidth","zIndex","getZIndex","anchor","Point","scaledSize","Size","setOptions","globalCallback","yextClient","baseUrl","autocomplete","channel","window","location","hostname","client","libraries","params","push","apiParams","callback","join","LoadScript","parseLocale","formattedLocaleStr","GoogleMaps","withSupportedLocales","withLoadFunction","load","withFormatLocaleFunction","formatLocale","withMapClass","withPinClass","withProviderName","build","DeferredPromise","stateHandler","_promise","then","MapboxMap","mapboxgl","container","interactive","addControl","MapboxLanguage","defaultLanguage","NavigationControl","showCompass","on","e","originalEvent","target","nodeName","LngLat","zoomTo","MapboxPin","_pinEl","backgroundSize","backgroundRepeat","top","left","_pinAlt","classList","add","_wrapper","element","addEventListener","setLngLat","addTo","remove","className","getClass","getElement","srText","getSRText","backgroundImage","transform","innerText","setAttribute","children","removeChild","yextAPIKey","version","mapStyle","mapLanguageScript","mapLanguageScriptPromise","mapScript","mapScriptPromise","accessToken","setRTLTextPlugin","MapboxMaps","getLanguageForProvider","localeStr","mapProvider","getMapProvider","getSupportedLocales","getEncodedSvg","svg","encodeURIComponent","isViewableWithinContainer","targetEl","containerEl","containerElViewableTop","containerElViewableBottom","offsetHeight","targetElTop","offsetTop","targetElBottom","isScrolledIntoView","getNormalizedLongitude","lng","range","func","wait","timeout","args","later","clearTimeout","removeElement","parentNode","SearchPreventer","relativeDistanceThreshold","zoomThreshold","mostRecentSearchMapCenter","currentMapCenter","currentZoom","distanceToLastSearch","distanceTo","relativeDistance","_calculateRelativeDistance","mostRecentSearchZoom","zoomDifference","distance","adjustment","distanceInPixels","widthOfMap","innerWidth","defaultCenterCoordinate","UNSET","API","USER","MAP_VIEW","LIST_VIEW","DETAIL_SHOWN","StorageKeys","VERTICAL_RESULTS","QUERY","ALTERNATIVE_VERTICALS","QUERY_TRIGGER","LOCATOR_HOVERED_RESULT","LOCATOR_SELECTED_RESULT","LOCATOR_NUM_CONCURRENT_SEARCH_THIS_AREA_CALLS","LOCATOR_MAP_PROPERTIES","LOCATOR_CARD_FOCUS","VerticalFullPageMapOrchestrator","config","systemConfig","cardType","_mapContainerSelector","_pageWrapperEl","querySelector","_resultsWrapperEl","_container","verticalKey","verticalsConfig","verticalPages","defaultCenter","defaultZoom","mostRecentSearchLocation","searchOnMapMove","disableSearchOnMapMove","noResultsConfig","noResults","displayAllResultsOnNoResults","displayAllResults","mobileBreakpointMax","mobileBreakpointMediaQuery","matchMedia","_mobileView","MobileStates","searchPreventer","debouncedSearchThisArea","searchThisArea","_detailCard","alternativeVerticalsConfig","isFirstMapCenterChangeInvocation","core","storage","registerListener","eventType","storageKey","data","setState","updateMostRecentSearchState","searchThisAreaToggleEls","querySelectorAll","checked","searchThisAreaButtonEl","setupMobileBreakpointListener","addMapComponent","isMobile","updateCssForDesktop","breakpointChangeHandler","updateCssForMobile","set","passive","matches","addCssClassesForState","removeCssClassesForState","statesToRemove","state","mobileState","classModifier","getModifierForState","onPostMapRender","pins","setupMobileViewToggles","setupSearchBarListeners","pinClusterClickListener","prevousBounds","currentBounds","panTrigger","PanTriggers","handleMapCenterChange","zoomChangedListener","zoomTrigger","zoomEndListener","ZoomTriggers","handleMapZoomChange","ANSWERS","addComponent","_config","clientId","contentWrapperEl","pinOptions","pinClusterOptions","pinCluster","enablePinClustering","onPinSelect","pinFocusListener","index","id","canvasClickListener","deselectAllResults","isIframe","shouldSearchBePreventedBasedOnCenter","shouldSearchBePreventedBasedOnZoom","isWithinDistanceThreshold","getCurrentMapCenter","isWithinZoomThreshold","mapProperties","get","visibleCenter","lat","cardId","isDetailCardOpened","entityId","verticalResults","results","entityData","entity","toString","opts","parentContainer","result","requestAnimationFrame","removeAttribute","buttonSelector","selector","card","scrollToResult","mobileToggles","listToggle","showToggles","response","entities","dataset","listened","scrollTo","setMobileMapView","setMobileListView","searchBarForm","searchBarInput","searchBarButton","numConcurrentSearchThisAreaCalls","updatedNumSearchThisAreaCalls","radius","visibleRadius","filterNode","FilterNodeFactory","from","filter","clearStaticFilterNode","setStaticFilterNodes","verticalSearch","setQueryParams","resetPagination","useFacets","scrollContainer","scrollDistance","smoothScroll","searchState","_data","resultsContext","_isNoResults","onMount","_children","child","unMount","c","altVerticalsData","addChild","baseUniversalUrl","getBaseUniversalUrl","isShowingResults","mount","universalConfig","Component","GeoBounds","coordinates","latitudes","north","south","longitudes","i","j","splitIndex","next","east","west","sw","ne","_ne","_sw","withinLatitude","longitudeSpansGlobe","withinNormalLon","contains","eastDist","westDist","nw","newNE","newSW","PinProperties","_anchorX","_anchorY","_height","_icon","_srText","_width","_zIndex","_class","_element","MapPinOptions","hideOffscreen","propertiesForStatus","status","MapPin","loaded","_coordinate","_hideOffscreen","_propertiesForStatus","_type","_hidden","_hiddenUpdater","_map","_pin","withIcons","withClickHandler","withFocusHandler","withHoverHandler","_id","setCoordinate","_status","setStatus","_hideIfOffscreen","hiddenUpdater","moving","idle","setProperties","isVisible","getBounds","MAX_PADDING","basis","MapOptions","legendPins","padding","bottom","right","previousBounds","singlePinZoom","mapCanvasClickHandler","_defaultCenter","_defaultZoom","_legendPins","_provider","_singlePinZoom","_padding","setPadding","_cachedBounds","_resolveIdle","_resolveMoving","_idlePromise","_setIdle","_zoomTrigger","_panTrigger","setPanHandler","setPanStartHandler","setDragEndHandler","setZoomChangedHandler","setZoomEndHandler","setCanvasClickHandler","firstChild","lastChild","_panHandlerRunning","_panStartHandlerRunning","withControlEnabled","withPanHandler","withDragEndHandler","withZoomChangedHandler","withZoomEndHandler","withCanvasClickHandler","withPanStartHandler","withProviderOptions","withLocale","setZoomCenter","_currentBounds","maxZoom","setBounds","pixelHeight","pixelWidth","offsetWidth","degreesPerPixel","_movingPromise","withProvider","getPanTrigger","setPanTrigger","_setMoving","getZoomTrigger","setZoomTrigger","visibleBounds","getVisibleBounds","getVisibleCenter","paddingBottom","normalizePadding","paddingLeft","paddingRight","paddingTop","bounds","newNorthEast","newSouthWest","paddedBounds","horizontalPadding","verticalPadding","paddingInnerHeight","paddingInnerWidth","Infinity","newHeight","newWidth","PinCluster","clusterPin","getId","PinClustererOptions","autoUpdate","cluster","clusterRadius","clusterZoomAnimated","clusterZoomMax","iconTemplates","minClusterSize","setAnchorX","setAnchorY","setHeight","setIcon","setWidth","updateHandler","clusters","zoomOnClick","iconTemplate","PinClusterer","_autoUpdate","_clusterRadius","_clusterZoomAnimated","_clusterZoomMax","_iconTemplates","_minClusterSize","_updateHandler","_zoomOnClick","_clusters","reset","mapProjection","getMap","_mapProjection","_pins","update","autoUpdater","_autoUpdater","restorePins","force","_generateClusters","getCoordinate","newPinOptions","withCoordinate","withHideOffscreen","withPropertiesForStatus","template","withIcon","pinCount","newCluster","setFocusHandler","setHoverHandler","setClickHandler","movingPromise","fitCoordinates","getClusters","clusterRadiusRadians","pinsInRadius","pinClusters","otherIndex","maxCount","chosenIndex","pinGroup","chosenPins","RenderTargetOptions","onBeforeRender","onPostRender","updated","RenderTarget","_onBeforeRender","_onPostRender","renderFunction","render","MapRenderTargetOptions","idForEntity","profile","meta","pinBuilder","pinClusterer","MapRenderTarget","_idForEntity","_pinBuilder","_pinClusterer","RendererOptions","renderTargets","renderTarget","Renderer","_renderTargets","transformDataToUniversalData","universalData","mapMarkers","marker","item","accountId","countryCode","address","entityType","folderId","labels","schemaTypes","timestamp","uid","utcOffsets","yextId","transformDataToVerticalData","verticalData","ent","_raw","PinImages","defaultPinConfig","hoveredPinConfig","selectedPinConfig","backgroundColor","strokeColor","labelColor","generatePin","ClusterPinImages","labelText","ThemeMapConfig","jsonConfig","pinAnchors","pinClusterAnchors","defaultCenterFromConfig","getVisibleBoundary","pinImages","selected","pinClusterImages","pinClickListener","dragEndListener","minClusterRadius","contentWrapperElWidth","ThemeMap","rawConfig","renderer","renderReady","initialData","hoveredPinId","selectedPinId","selectedClusterPin","resultsSpecificStorageListeners","loadAndInitializeMap","_updateMap","mapProviderImpl","withDefaultCenter","withDefaultZoom","withWrapper","withPadding","addMapInteractions","getVisibleRadius","updateMapPropertiesInStorage","mapRenderTargetOptions","withMap","withOnPostRender","mapRenderTarget","getPins","withPinBuilder","buildPin","getClusterer","withPinClusterer","register","updateSelectedResultStateWithClusters","updateSelectedResultStateWithoutClusters","coordinateIsInVisibleBounds","setCenterWithPadding","filteredClusters","containsPin","selectedCluster","clustererOptions","withIconTemplate","pinDetails","getDefaultPin","getHoveredPin","getSelectedPin","defaultPin","properties","setClass","setSRText","withMinClusterSize","withClusterRadius","withClusterZoomAnimated","withClusterZoomMax","hoveredPin","selectedPin","withId","yextDisplayCoordinate","setZIndex","cardFocusUpdateListener","cardIndex","listener","removeListener","isNoResults","renderData","CardListenerAssigner","mobileMediaMatcher","_addCardClickListener","_addLinkFocusListeners","parentElement","_getCardIndex","_storeCardFocusIndex","_removePinFocusFromAllCards","_addPinFocusToCard","JSON","parse","_index","HitchhikerJS"],"mappings":"0CAAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,O,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,qBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,qBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,O,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,EAAO,QAAU,EAAjB,Q,sBCAA,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AAO,+B,gDAGyB,CAChC,MAAO,K,0BAGS,CAChB,MAAO,e,GAzaYra,QAAQwF,WCdzB8U,G,WACJ,aAAuB,IAAR9X,GAAQ,EAARA,KAAQ,YAMrB,KAAKA,KAAOA,EAOZ,KAAK+X,mBAAqBhoB,OAAOqK,WAAP,sB,wDAMN,CACpB,KAAK4d,wBACL,KAAKC,2B,6CAMkB,YACvB,KAAKjY,KAAK3G,WAAW6e,cAAc7kB,iBAAiB,QAAS,UAAM,CACjE,GAAI,GAAK0kB,mBAAmB9b,QAI5B,IAAMkC,GAAQ,EAAKga,gBACnB,EAAKC,qBAAqBja,GAC1B,EAAKka,8BACL,EAAKC,0B,8CAQgB,cACvB,WAAKtY,KAAK3G,WAAWiC,iBAAiB,MAAtC,OAAmD,SAACxX,EAAO,CACzDA,EAAGuP,iBAAiB,QAAS,UAAM,CACjC,GAAI,GAAK0kB,mBAAmB9b,QAI5B,IAAMkC,GAAQ,EAAKga,gBACnB,EAAKC,qBAAqBja,GAC1B,EAAKka,8BACL,EAAKC,4B,qCAUM,OACIC,KAAKC,MAAM,KAAKxY,KAAK3G,WAAW6e,cAAc3X,QAAQd,MAAQ,IAAzEgZ,EADO,EACPA,OACR,MAAOA,K,2CAQata,EAAO,CAC3B,KAAK6B,KAAKnF,KAAKC,QAAQiB,IAAI2c,aAAavgB,YAAYS,mBAAoB,CAAEuF,MAAOA,M,mDAMpD,OAC7B,MAAA1Z,SAAS6W,iBAAiB,0BAA1B,OAA2D,SAACxX,EAAO,CACjEA,EAAGmP,UAAUO,OAAO,4B,0CAOF,CACpB,KAAKwM,KAAK3G,WAAW6e,cAAcjlB,UAAUC,IAAI,4B","file":"locator-bundle.js","sourcesContent":["module.exports = require(\"core-js-pure/stable/array/from\");","module.exports = require(\"core-js-pure/stable/array/is-array\");","module.exports = require(\"core-js-pure/stable/instance/bind\");","module.exports = require(\"core-js-pure/stable/instance/concat\");","module.exports = require(\"core-js-pure/stable/instance/filter\");","module.exports = require(\"core-js-pure/stable/instance/find\");","module.exports = require(\"core-js-pure/stable/instance/for-each\");","module.exports = require(\"core-js-pure/stable/instance/includes\");","module.exports = require(\"core-js-pure/stable/instance/index-of\");","module.exports = require(\"core-js-pure/stable/instance/map\");","module.exports = require(\"core-js-pure/stable/instance/reduce\");","module.exports = require(\"core-js-pure/stable/instance/slice\");","module.exports = require(\"core-js-pure/stable/instance/sort\");","module.exports = require(\"core-js-pure/stable/instance/splice\");","module.exports = require(\"core-js-pure/stable/math/log2\");","module.exports = require(\"core-js-pure/stable/number/is-nan\");","module.exports = require(\"core-js-pure/stable/number/parse-float\");","module.exports = require(\"core-js-pure/stable/object/define-properties\");","module.exports = require(\"core-js-pure/stable/object/define-property\");","module.exports = require(\"core-js-pure/stable/object/entries\");","module.exports = require(\"core-js-pure/stable/object/freeze\");","module.exports = require(\"core-js-pure/stable/object/get-own-property-descriptor\");","module.exports = require(\"core-js-pure/stable/object/get-own-property-descriptors\");","module.exports = require(\"core-js-pure/stable/object/get-own-property-symbols\");","module.exports = require(\"core-js-pure/stable/object/keys\");","module.exports = require(\"core-js-pure/stable/object/values\");","module.exports = require(\"core-js-pure/stable/promise\");","module.exports = require(\"core-js-pure/stable/reflect/construct\");","module.exports = require(\"core-js-pure/stable/set-interval\");","module.exports = require(\"core-js-pure/stable/set-timeout\");","module.exports = require(\"core-js-pure/stable/set\");","module.exports = require(\"core-js-pure/stable/symbol\");","module.exports = require(\"core-js-pure/features/array/from\");","module.exports = require(\"core-js-pure/features/array/is-array\");","module.exports = require(\"core-js-pure/features/get-iterator-method\");","module.exports = require(\"core-js-pure/features/get-iterator\");","module.exports = require(\"core-js-pure/features/instance/slice\");","module.exports = require(\"core-js-pure/features/is-iterable\");","module.exports = require(\"core-js-pure/features/object/assign\");","module.exports = require(\"core-js-pure/features/object/create\");","module.exports = require(\"core-js-pure/features/object/define-property\");","module.exports = require(\"core-js-pure/features/object/get-prototype-of\");","module.exports = require(\"core-js-pure/features/object/set-prototype-of\");","module.exports = require(\"core-js-pure/features/promise\");","module.exports = require(\"core-js-pure/features/symbol\");","module.exports = require(\"core-js-pure/features/symbol/iterator\");","function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) {\n arr2[i] = arr[i];\n }\n\n return arr2;\n}\n\nmodule.exports = _arrayLikeToArray;","var _Array$isArray = require(\"../core-js/array/is-array\");\n\nfunction _arrayWithHoles(arr) {\n if (_Array$isArray(arr)) return arr;\n}\n\nmodule.exports = _arrayWithHoles;","var _Array$isArray = require(\"../core-js/array/is-array\");\n\nvar arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _arrayWithoutHoles(arr) {\n if (_Array$isArray(arr)) return arrayLikeToArray(arr);\n}\n\nmodule.exports = _arrayWithoutHoles;","function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;","var _Promise = require(\"../core-js/promise\");\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n _Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new _Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;","function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;","var _Object$defineProperty = require(\"../core-js/object/define-property\");\n\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n\n _Object$defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;","var _Object$defineProperty = require(\"../core-js/object/define-property\");\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n _Object$defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;","var _Object$assign = require(\"../core-js/object/assign\");\n\nfunction _extends() {\n module.exports = _extends = _Object$assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nmodule.exports = _extends;","var _Object$getPrototypeOf = require(\"../core-js/object/get-prototype-of\");\n\nvar _Object$setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nfunction _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || _Object$getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;","var _Object$create = require(\"../core-js/object/create\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = _Object$create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;","var _Array$from = require(\"../core-js/array/from\");\n\nvar _isIterable = require(\"../core-js/is-iterable\");\n\nvar _Symbol = require(\"../core-js/symbol\");\n\nfunction _iterableToArray(iter) {\n if (typeof _Symbol !== \"undefined\" && _isIterable(Object(iter))) return _Array$from(iter);\n}\n\nmodule.exports = _iterableToArray;","var _getIterator = require(\"../core-js/get-iterator\");\n\nvar _isIterable = require(\"../core-js/is-iterable\");\n\nvar _Symbol = require(\"../core-js/symbol\");\n\nfunction _iterableToArrayLimit(arr, i) {\n if (typeof _Symbol === \"undefined\" || !_isIterable(Object(arr))) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n var _e = undefined;\n\n try {\n for (var _i = _getIterator(arr), _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\"] != null) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }\n\n return _arr;\n}\n\nmodule.exports = _iterableToArrayLimit;","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableRest;","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\n\nmodule.exports = _nonIterableSpread;","var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;","var _Object$setPrototypeOf = require(\"../core-js/object/set-prototype-of\");\n\nfunction _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;","var arrayWithHoles = require(\"./arrayWithHoles\");\n\nvar iterableToArrayLimit = require(\"./iterableToArrayLimit\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableRest = require(\"./nonIterableRest\");\n\nfunction _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}\n\nmodule.exports = _slicedToArray;","var arrayWithoutHoles = require(\"./arrayWithoutHoles\");\n\nvar iterableToArray = require(\"./iterableToArray\");\n\nvar unsupportedIterableToArray = require(\"./unsupportedIterableToArray\");\n\nvar nonIterableSpread = require(\"./nonIterableSpread\");\n\nfunction _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}\n\nmodule.exports = _toConsumableArray;","var _Symbol$iterator = require(\"../core-js/symbol/iterator\");\n\nvar _Symbol = require(\"../core-js/symbol\");\n\nfunction _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol && obj !== _Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;","var _Array$from = require(\"../core-js/array/from\");\n\nvar _sliceInstanceProperty = require(\"../core-js/instance/slice\");\n\nvar arrayLikeToArray = require(\"./arrayLikeToArray\");\n\nfunction _unsupportedIterableToArray(o, minLen) {\n var _context;\n\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n\n var n = _sliceInstanceProperty(_context = Object.prototype.toString.call(o)).call(_context, 8, -1);\n\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return _Array$from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}\n\nmodule.exports = _unsupportedIterableToArray;","module.exports = require(\"regenerator-runtime\");\n","/**\n * Returns true if the given language is written from right to left (requires rtl css)\n * \n * @param {string} locale \n * @returns {boolean}\n */\nmodule.exports = function isRTL (locale) {\n if (locale === 'ar') {\n return true;\n }\n return false;\n}","require('../../modules/es.string.iterator');\nrequire('../../modules/es.array.from');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Array.from;\n","require('../../modules/es.array.is-array');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Array.isArray;\n","require('../../../modules/es.array.concat');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').concat;\n","require('../../../modules/es.array.filter');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').filter;\n","require('../../../modules/es.array.find');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').find;\n","require('../../../modules/es.array.for-each');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').forEach;\n","require('../../../modules/es.array.includes');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').includes;\n","require('../../../modules/es.array.index-of');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').indexOf;\n","require('../../../modules/es.array.map');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').map;\n","require('../../../modules/es.array.reduce');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').reduce;\n","require('../../../modules/es.array.slice');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').slice;\n","require('../../../modules/es.array.sort');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').sort;\n","require('../../../modules/es.array.splice');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Array').splice;\n","require('../../../modules/es.function.bind');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('Function').bind;\n","var bind = require('../function/virtual/bind');\n\nvar FunctionPrototype = Function.prototype;\n\nmodule.exports = function (it) {\n var own = it.bind;\n return it === FunctionPrototype || (it instanceof Function && own === FunctionPrototype.bind) ? bind : own;\n};\n","var concat = require('../array/virtual/concat');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.concat;\n return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.concat) ? concat : own;\n};\n","var filter = require('../array/virtual/filter');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.filter;\n return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.filter) ? filter : own;\n};\n","var find = require('../array/virtual/find');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.find;\n return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.find) ? find : own;\n};\n","var arrayIncludes = require('../array/virtual/includes');\nvar stringIncludes = require('../string/virtual/includes');\n\nvar ArrayPrototype = Array.prototype;\nvar StringPrototype = String.prototype;\n\nmodule.exports = function (it) {\n var own = it.includes;\n if (it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.includes)) return arrayIncludes;\n if (typeof it === 'string' || it === StringPrototype || (it instanceof String && own === StringPrototype.includes)) {\n return stringIncludes;\n } return own;\n};\n","var indexOf = require('../array/virtual/index-of');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.indexOf;\n return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.indexOf) ? indexOf : own;\n};\n","var map = require('../array/virtual/map');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.map;\n return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.map) ? map : own;\n};\n","var reduce = require('../array/virtual/reduce');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.reduce;\n return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.reduce) ? reduce : own;\n};\n","var slice = require('../array/virtual/slice');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.slice;\n return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.slice) ? slice : own;\n};\n","var sort = require('../array/virtual/sort');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.sort;\n return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.sort) ? sort : own;\n};\n","var splice = require('../array/virtual/splice');\n\nvar ArrayPrototype = Array.prototype;\n\nmodule.exports = function (it) {\n var own = it.splice;\n return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.splice) ? splice : own;\n};\n","require('../../modules/es.math.log2');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Math.log2;\n","require('../../modules/es.number.is-nan');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Number.isNaN;\n","require('../../modules/es.number.parse-float');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Number.parseFloat;\n","require('../../modules/es.object.assign');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.assign;\n","require('../../modules/es.object.create');\nvar path = require('../../internals/path');\n\nvar Object = path.Object;\n\nmodule.exports = function create(P, D) {\n return Object.create(P, D);\n};\n","require('../../modules/es.object.define-properties');\nvar path = require('../../internals/path');\n\nvar Object = path.Object;\n\nvar defineProperties = module.exports = function defineProperties(T, D) {\n return Object.defineProperties(T, D);\n};\n\nif (Object.defineProperties.sham) defineProperties.sham = true;\n","require('../../modules/es.object.define-property');\nvar path = require('../../internals/path');\n\nvar Object = path.Object;\n\nvar defineProperty = module.exports = function defineProperty(it, key, desc) {\n return Object.defineProperty(it, key, desc);\n};\n\nif (Object.defineProperty.sham) defineProperty.sham = true;\n","require('../../modules/es.object.entries');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.entries;\n","require('../../modules/es.object.freeze');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.freeze;\n","require('../../modules/es.object.get-own-property-descriptor');\nvar path = require('../../internals/path');\n\nvar Object = path.Object;\n\nvar getOwnPropertyDescriptor = module.exports = function getOwnPropertyDescriptor(it, key) {\n return Object.getOwnPropertyDescriptor(it, key);\n};\n\nif (Object.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor.sham = true;\n","require('../../modules/es.object.get-own-property-descriptors');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.getOwnPropertyDescriptors;\n","require('../../modules/es.symbol');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.getOwnPropertySymbols;\n","require('../../modules/es.object.get-prototype-of');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.getPrototypeOf;\n","require('../../modules/es.object.keys');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.keys;\n","require('../../modules/es.object.set-prototype-of');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.setPrototypeOf;\n","require('../../modules/es.object.values');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Object.values;\n","require('../../modules/es.object.to-string');\nrequire('../../modules/es.string.iterator');\nrequire('../../modules/web.dom-collections.iterator');\nrequire('../../modules/es.promise');\nrequire('../../modules/es.promise.all-settled');\nrequire('../../modules/es.promise.finally');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Promise;\n","require('../../modules/es.reflect.construct');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Reflect.construct;\n","require('../../modules/es.set');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.string.iterator');\nrequire('../../modules/web.dom-collections.iterator');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Set;\n","require('../../../modules/es.string.includes');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('String').includes;\n","require('../../modules/es.array.concat');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.symbol');\nrequire('../../modules/es.symbol.async-iterator');\nrequire('../../modules/es.symbol.description');\nrequire('../../modules/es.symbol.has-instance');\nrequire('../../modules/es.symbol.is-concat-spreadable');\nrequire('../../modules/es.symbol.iterator');\nrequire('../../modules/es.symbol.match');\nrequire('../../modules/es.symbol.match-all');\nrequire('../../modules/es.symbol.replace');\nrequire('../../modules/es.symbol.search');\nrequire('../../modules/es.symbol.species');\nrequire('../../modules/es.symbol.split');\nrequire('../../modules/es.symbol.to-primitive');\nrequire('../../modules/es.symbol.to-string-tag');\nrequire('../../modules/es.symbol.unscopables');\nrequire('../../modules/es.math.to-string-tag');\nrequire('../../modules/es.json.to-string-tag');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Symbol;\n","require('../../modules/es.symbol.iterator');\nrequire('../../modules/es.string.iterator');\nrequire('../../modules/web.dom-collections.iterator');\nvar WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');\n\nmodule.exports = WrappedWellKnownSymbolModule.f('iterator');\n","var parent = require('../../es/array/from');\n\nmodule.exports = parent;\n","var parent = require('../../es/array/is-array');\n\nmodule.exports = parent;\n","require('../modules/web.dom-collections.iterator');\nrequire('../modules/es.string.iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nmodule.exports = getIteratorMethod;\n","require('../modules/web.dom-collections.iterator');\nrequire('../modules/es.string.iterator');\nvar getIterator = require('../internals/get-iterator');\n\nmodule.exports = getIterator;\n","var parent = require('../../es/instance/slice');\n\nmodule.exports = parent;\n","require('../modules/web.dom-collections.iterator');\nrequire('../modules/es.string.iterator');\nvar isIterable = require('../internals/is-iterable');\n\nmodule.exports = isIterable;\n","var parent = require('../../es/object/assign');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/create');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/define-property');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/get-prototype-of');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/set-prototype-of');\n\nmodule.exports = parent;\n","var parent = require('../../es/promise');\nrequire('../../modules/esnext.aggregate-error');\n// TODO: Remove from `core-js@4`\nrequire('../../modules/esnext.promise.all-settled');\nrequire('../../modules/esnext.promise.try');\nrequire('../../modules/esnext.promise.any');\n\nmodule.exports = parent;\n","var parent = require('../../es/symbol');\nrequire('../../modules/esnext.symbol.async-dispose');\nrequire('../../modules/esnext.symbol.dispose');\nrequire('../../modules/esnext.symbol.observable');\nrequire('../../modules/esnext.symbol.pattern-match');\n// TODO: Remove from `core-js@4`\nrequire('../../modules/esnext.symbol.replace-all');\n\nmodule.exports = parent;\n","var parent = require('../../es/symbol/iterator');\n\nmodule.exports = parent;\n","module.exports = function (it) {\n if (typeof it != 'function') {\n throw TypeError(String(it) + ' is not a function');\n } return it;\n};\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it) && it !== null) {\n throw TypeError(\"Can't set \" + String(it) + ' as a prototype');\n } return it;\n};\n","module.exports = function () { /* empty */ };\n","module.exports = function (it, Constructor, name) {\n if (!(it instanceof Constructor)) {\n throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');\n } return it;\n};\n","var isObject = require('../internals/is-object');\n\nmodule.exports = function (it) {\n if (!isObject(it)) {\n throw TypeError(String(it) + ' is not an object');\n } return it;\n};\n","'use strict';\nvar $forEach = require('../internals/array-iteration').forEach;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar STRICT_METHOD = arrayMethodIsStrict('forEach');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('forEach');\n\n// `Array.prototype.forEach` method implementation\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\nmodule.exports = (!STRICT_METHOD || !USES_TO_LENGTH) ? function forEach(callbackfn /* , thisArg */) {\n return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n} : [].forEach;\n","'use strict';\nvar bind = require('../internals/function-bind-context');\nvar toObject = require('../internals/to-object');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\n// `Array.from` method implementation\n// https://tc39.github.io/ecma262/#sec-array.from\nmodule.exports = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) {\n var O = toObject(arrayLike);\n var C = typeof this == 'function' ? this : Array;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var mapping = mapfn !== undefined;\n var iteratorMethod = getIteratorMethod(O);\n var index = 0;\n var length, result, step, iterator, next, value;\n if (mapping) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);\n // if the target is not iterable or it's an array with the default iterator - use a simple case\n if (iteratorMethod != undefined && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {\n iterator = iteratorMethod.call(O);\n next = iterator.next;\n result = new C();\n for (;!(step = next.call(iterator)).done; index++) {\n value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;\n createProperty(result, index, value);\n }\n } else {\n length = toLength(O.length);\n result = new C(length);\n for (;length > index; index++) {\n value = mapping ? mapfn(O[index], index) : O[index];\n createProperty(result, index, value);\n }\n }\n result.length = index;\n return result;\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toLength = require('../internals/to-length');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var bind = require('../internals/function-bind-context');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = [].push;\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that, 3);\n var length = toLength(self.length);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push.call(target, value); // filter\n } else if (IS_EVERY) return false; // every\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6)\n};\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (METHOD_NAME) {\n // We can't use this feature detection in V8 since it causes\n // deoptimization and serious performance degradation\n // https://github.com/zloirock/core-js/issues/677\n return V8_VERSION >= 51 || !fails(function () {\n var array = [];\n var constructor = array.constructor = {};\n constructor[SPECIES] = function () {\n return { foo: 1 };\n };\n return array[METHOD_NAME](Boolean).foo !== 1;\n });\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call,no-throw-literal\n method.call(null, argument || function () { throw 1; }, 1);\n });\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar has = require('../internals/has');\n\nvar defineProperty = Object.defineProperty;\nvar cache = {};\n\nvar thrower = function (it) { throw it; };\n\nmodule.exports = function (METHOD_NAME, options) {\n if (has(cache, METHOD_NAME)) return cache[METHOD_NAME];\n if (!options) options = {};\n var method = [][METHOD_NAME];\n var ACCESSORS = has(options, 'ACCESSORS') ? options.ACCESSORS : false;\n var argument0 = has(options, 0) ? options[0] : thrower;\n var argument1 = has(options, 1) ? options[1] : undefined;\n\n return cache[METHOD_NAME] = !!method && !fails(function () {\n if (ACCESSORS && !DESCRIPTORS) return true;\n var O = { length: -1 };\n\n if (ACCESSORS) defineProperty(O, 1, { enumerable: true, get: thrower });\n else O[1] = 1;\n\n method.call(O, argument0, argument1);\n });\n};\n","var aFunction = require('../internals/a-function');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar toLength = require('../internals/to-length');\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aFunction(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = toLength(O.length);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.github.io/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n","var isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.github.io/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);\n};\n","var anObject = require('../internals/an-object');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (error) {\n var returnMethod = iterator['return'];\n if (returnMethod !== undefined) anObject(returnMethod.call(iterator));\n throw error;\n }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line no-throw-literal\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;\n};\n","'use strict';\nvar defineProperty = require('../internals/object-define-property').f;\nvar create = require('../internals/object-create');\nvar redefineAll = require('../internals/redefine-all');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/define-iterator');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var C = wrapper(function (that, iterable) {\n anInstance(that, C, CONSTRUCTOR_NAME);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (iterable != undefined) iterate(iterable, that[ADDER], that, IS_MAP);\n });\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n redefineAll(C.prototype, {\n // 23.1.3.1 Map.prototype.clear()\n // 23.2.3.2 Set.prototype.clear()\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // 23.1.3.3 Map.prototype.delete(key)\n // 23.2.3.4 Set.prototype.delete(value)\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // 23.2.3.6 Set.prototype.forEach(callbackfn, thisArg = undefined)\n // 23.1.3.5 Map.prototype.forEach(callbackfn, thisArg = undefined)\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // 23.1.3.7 Map.prototype.has(key)\n // 23.2.3.7 Set.prototype.has(value)\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n redefineAll(C.prototype, IS_MAP ? {\n // 23.1.3.6 Map.prototype.get(key)\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // 23.1.3.9 Map.prototype.set(key, value)\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // 23.2.3.1 Set.prototype.add(value)\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineProperty(C.prototype, 'size', {\n get: function () {\n return getInternalState(this).size;\n }\n });\n return C;\n },\n setStrong: function (C, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // add .keys, .values, .entries, [@@iterator]\n // 23.1.3.4, 23.1.3.8, 23.1.3.11, 23.1.3.12, 23.2.3.5, 23.2.3.8, 23.2.3.10, 23.2.3.11\n defineIterator(C, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return { value: undefined, done: true };\n }\n // return step by kind\n if (kind == 'keys') return { value: entry.key, done: false };\n if (kind == 'values') return { value: entry.value, done: false };\n return { value: [entry.key, entry.value], done: false };\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // add [@@species], 23.1.2.2, 23.2.2.2\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar $ = require('./export');\nvar global = require('../internals/global');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar fails = require('../internals/fails');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isObject = require('../internals/is-object');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar defineProperty = require('../internals/object-define-property').f;\nvar forEach = require('../internals/array-iteration').forEach;\nvar DESCRIPTORS = require('../internals/descriptors');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var exported = {};\n var Constructor;\n\n if (!DESCRIPTORS || typeof NativeConstructor != 'function'\n || !(IS_WEAK || NativePrototype.forEach && !fails(function () { new NativeConstructor().entries().next(); }))\n ) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.REQUIRED = true;\n } else {\n Constructor = wrapper(function (target, iterable) {\n setInternalState(anInstance(target, Constructor, CONSTRUCTOR_NAME), {\n type: CONSTRUCTOR_NAME,\n collection: new NativeConstructor()\n });\n if (iterable != undefined) iterate(iterable, target[ADDER], target, IS_MAP);\n });\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n forEach(['add', 'clear', 'delete', 'forEach', 'get', 'has', 'set', 'keys', 'values', 'entries'], function (KEY) {\n var IS_ADDER = KEY == 'add' || KEY == 'set';\n if (KEY in NativePrototype && !(IS_WEAK && KEY == 'clear')) {\n createNonEnumerableProperty(Constructor.prototype, KEY, function (a, b) {\n var collection = getInternalState(this).collection;\n if (!IS_ADDER && IS_WEAK && !isObject(a)) return KEY == 'get' ? undefined : false;\n var result = collection[KEY](a === 0 ? 0 : a, b);\n return IS_ADDER ? this : result;\n });\n }\n });\n\n IS_WEAK || defineProperty(Constructor.prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).collection.size;\n }\n });\n }\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, forced: true }, exported);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\nmodule.exports = function (METHOD_NAME) {\n var regexp = /./;\n try {\n '/./'[METHOD_NAME](regexp);\n } catch (e) {\n try {\n regexp[MATCH] = false;\n return '/./'[METHOD_NAME](regexp);\n } catch (f) { /* empty */ }\n } return false;\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(1, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar toPrimitive = require('../internals/to-primitive');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPrimitive(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (IteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (typeof CurrentIteratorPrototype[ITERATOR] != 'function') {\n createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return nativeIterator.call(this); };\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n createNonEnumerableProperty(IterablePrototype, ITERATOR, defaultIterator);\n }\n Iterators[NAME] = defaultIterator;\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n redefine(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n return methods;\n};\n","var path = require('../internals/path');\nvar has = require('../internals/has');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineProperty = require('../internals/object-define-property').f;\n\nmodule.exports = function (NAME) {\n var Symbol = path.Symbol || (path.Symbol = {});\n if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule.f(NAME)\n });\n};\n","var fails = require('../internals/fails');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !fails(function () {\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","// iterable DOM collections\n// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods\nmodule.exports = {\n CSSRuleList: 0,\n CSSStyleDeclaration: 0,\n CSSValueList: 0,\n ClientRectList: 0,\n DOMRectList: 0,\n DOMStringList: 0,\n DOMTokenList: 1,\n DataTransferItemList: 0,\n FileList: 0,\n HTMLAllCollection: 0,\n HTMLCollection: 0,\n HTMLFormElement: 0,\n HTMLSelectElement: 0,\n MediaList: 0,\n MimeTypeArray: 0,\n NamedNodeMap: 0,\n NodeList: 1,\n PaintRequestList: 0,\n Plugin: 0,\n PluginArray: 0,\n SVGLengthList: 0,\n SVGNumberList: 0,\n SVGPathSegList: 0,\n SVGPointList: 0,\n SVGStringList: 0,\n SVGTransformList: 0,\n SourceBufferList: 0,\n StyleSheetList: 0,\n TextTrackCueList: 0,\n TextTrackList: 0,\n TouchList: 0\n};\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /(iphone|ipod|ipad).*applewebkit/i.test(userAgent);\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n version = match[0] + match[1];\n} else if (userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = match[1];\n }\n}\n\nmodule.exports = version && +version;\n","var path = require('../internals/path');\n\nmodule.exports = function (CONSTRUCTOR) {\n return path[CONSTRUCTOR + 'Prototype'];\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","'use strict';\nvar global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar isForced = require('../internals/is-forced');\nvar path = require('../internals/path');\nvar bind = require('../internals/function-bind-context');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\n\nvar wrapConstructor = function (NativeConstructor) {\n var Wrapper = function (a, b, c) {\n if (this instanceof NativeConstructor) {\n switch (arguments.length) {\n case 0: return new NativeConstructor();\n case 1: return new NativeConstructor(a);\n case 2: return new NativeConstructor(a, b);\n } return new NativeConstructor(a, b, c);\n } return NativeConstructor.apply(this, arguments);\n };\n Wrapper.prototype = NativeConstructor.prototype;\n return Wrapper;\n};\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var PROTO = options.proto;\n\n var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : (global[TARGET] || {}).prototype;\n\n var target = GLOBAL ? path : path[TARGET] || (path[TARGET] = {});\n var targetPrototype = target.prototype;\n\n var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;\n var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;\n\n for (key in source) {\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contains in native\n USE_NATIVE = !FORCED && nativeSource && has(nativeSource, key);\n\n targetProperty = target[key];\n\n if (USE_NATIVE) if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(nativeSource, key);\n nativeProperty = descriptor && descriptor.value;\n } else nativeProperty = nativeSource[key];\n\n // export native or implementation\n sourceProperty = (USE_NATIVE && nativeProperty) ? nativeProperty : source[key];\n\n if (USE_NATIVE && typeof targetProperty === typeof sourceProperty) continue;\n\n // bind timers to global for call from export context\n if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);\n // wrap global constructors for prevent changs in this version\n else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);\n // make static versions for prototype methods\n else if (PROTO && typeof sourceProperty == 'function') resultProperty = bind(Function.call, sourceProperty);\n // default case\n else resultProperty = sourceProperty;\n\n // add a flag to not completely full polyfills\n if (options.sham || (sourceProperty && sourceProperty.sham) || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(resultProperty, 'sham', true);\n }\n\n target[key] = resultProperty;\n\n if (PROTO) {\n VIRTUAL_PROTOTYPE = TARGET + 'Prototype';\n if (!has(path, VIRTUAL_PROTOTYPE)) {\n createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});\n }\n // export virtual prototype methods\n path[VIRTUAL_PROTOTYPE][key] = sourceProperty;\n // export real prototype methods\n if (options.real && targetPrototype && !targetPrototype[key]) {\n createNonEnumerableProperty(targetPrototype, key, sourceProperty);\n }\n }\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","'use strict';\nvar aFunction = require('../internals/a-function');\nvar isObject = require('../internals/is-object');\n\nvar slice = [].slice;\nvar factories = {};\n\nvar construct = function (C, argsLength, args) {\n if (!(argsLength in factories)) {\n for (var list = [], i = 0; i < argsLength; i++) list[i] = 'a[' + i + ']';\n // eslint-disable-next-line no-new-func\n factories[argsLength] = Function('C,a', 'return new C(' + list.join(',') + ')');\n } return factories[argsLength](C, args);\n};\n\n// `Function.prototype.bind` method implementation\n// https://tc39.github.io/ecma262/#sec-function.prototype.bind\nmodule.exports = Function.bind || function bind(that /* , ...args */) {\n var fn = aFunction(this);\n var partArgs = slice.call(arguments, 1);\n var boundFunction = function bound(/* args... */) {\n var args = partArgs.concat(slice.call(arguments));\n return this instanceof boundFunction ? construct(fn, args.length, args) : fn.apply(that, args);\n };\n if (isObject(fn.prototype)) boundFunction.prototype = fn.prototype;\n return boundFunction;\n};\n","var path = require('../internals/path');\nvar global = require('../internals/global');\n\nvar aFunction = function (variable) {\n return typeof variable == 'function' ? variable : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])\n : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];\n};\n","var classof = require('../internals/classof');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n","var anObject = require('../internals/an-object');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nmodule.exports = function (it) {\n var iteratorMethod = getIteratorMethod(it);\n if (typeof iteratorMethod != 'function') {\n throw TypeError(String(it) + ' is not iterable');\n } return anObject(iteratorMethod.call(it));\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line no-undef\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func\n Function('return this')();\n","var hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n","module.exports = {};\n","var global = require('../internals/global');\n\nmodule.exports = function (a, b) {\n var console = global.console;\n if (console && console.error) {\n arguments.length === 1 ? console.error(a) : console.error(a, b);\n }\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar split = ''.split;\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split.call(it, '') : Object(it);\n} : Object;\n","var store = require('../internals/shared-store');\n\nvar functionToString = Function.toString;\n\n// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper\nif (typeof store.inspectSource != 'function') {\n store.inspectSource = function (it) {\n return functionToString.call(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar has = require('../internals/has');\nvar defineProperty = require('../internals/object-define-property').f;\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar isExtensible = Object.isExtensible || function () {\n return true;\n};\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + ++id, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!has(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!has(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && meta.REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar meta = module.exports = {\n REQUIRED: false,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar objectHas = require('../internals/has');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP) {\n var store = new WeakMap();\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n wmset.call(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget.call(store, it) || {};\n };\n has = function (it) {\n return wmhas.call(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return objectHas(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return objectHas(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.github.io/ecma262/#sec-isarray\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n","var fails = require('../internals/fails');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : typeof detection == 'function' ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var classof = require('../internals/classof');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n var O = Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n // eslint-disable-next-line no-prototype-builtins\n || Iterators.hasOwnProperty(classof(O));\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = true;\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.github.io/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var anObject = require('../internals/an-object');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar toLength = require('../internals/to-length');\nvar bind = require('../internals/function-bind-context');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar iterate = module.exports = function (iterable, fn, that, AS_ENTRIES, IS_ITERATOR) {\n var boundFunction = bind(fn, that, AS_ENTRIES ? 2 : 1);\n var iterator, iterFn, index, length, result, next, step;\n\n if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (typeof iterFn != 'function') throw TypeError('Target is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = toLength(iterable.length); length > index; index++) {\n result = AS_ENTRIES\n ? boundFunction(anObject(step = iterable[index])[0], step[1])\n : boundFunction(iterable[index]);\n if (result && result instanceof Result) return result;\n } return new Result(false);\n }\n iterator = iterFn.call(iterable);\n }\n\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n result = callWithSafeIterationClosing(iterator, boundFunction, step.value, AS_ENTRIES);\n if (typeof result == 'object' && result && result instanceof Result) return result;\n } return new Result(false);\n};\n\niterate.stop = function (result) {\n return new Result(true, result);\n};\n","'use strict';\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\nvar returnThis = function () { return this; };\n\n// `%IteratorPrototype%` object\n// https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nif (IteratorPrototype == undefined) IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\nif (!IS_PURE && !has(IteratorPrototype, ITERATOR)) {\n createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","module.exports = {};\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar classof = require('../internals/classof-raw');\nvar macrotask = require('../internals/task').set;\nvar IS_IOS = require('../internals/engine-is-ios');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar IS_NODE = classof(process) == 'process';\n// Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`\nvar queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');\nvar queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;\n\nvar flush, head, last, notify, toggle, node, promise, then;\n\n// modern engines have queueMicrotask method\nif (!queueMicrotask) {\n flush = function () {\n var parent, fn;\n if (IS_NODE && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (error) {\n if (head) notify();\n else last = undefined;\n throw error;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (IS_NODE) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n } else if (MutationObserver && !IS_IOS) {\n toggle = true;\n node = document.createTextNode('');\n new MutationObserver(flush).observe(node, { characterData: true });\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n then = promise.then;\n notify = function () {\n then.call(promise, flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n}\n\nmodule.exports = queueMicrotask || function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","var fails = require('../internals/fails');\n\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n // Chrome 38 Symbol has incorrect toString conversion\n // eslint-disable-next-line no-undef\n return !String(Symbol());\n});\n","var global = require('../internals/global');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));\n","'use strict';\nvar aFunction = require('../internals/a-function');\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n};\n\n// 25.4.1.5 NewPromiseCapability(C)\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","var isRegExp = require('../internals/is-regexp');\n\nmodule.exports = function (it) {\n if (isRegExp(it)) {\n throw TypeError(\"The method doesn't accept regular expressions\");\n } return it;\n};\n","var global = require('../internals/global');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar $parseFloat = global.parseFloat;\nvar FORCED = 1 / $parseFloat(whitespaces + '-0') !== -Infinity;\n\n// `parseFloat` method\n// https://tc39.github.io/ecma262/#sec-parsefloat-string\nmodule.exports = FORCED ? function parseFloat(string) {\n var trimmedString = trim(String(string));\n var result = $parseFloat(trimmedString);\n return result === 0 && trimmedString.charAt(0) == '-' ? -0 : result;\n} : $parseFloat;\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\n\nvar nativeAssign = Object.assign;\nvar defineProperty = Object.defineProperty;\n\n// `Object.assign` method\n// https://tc39.github.io/ecma262/#sec-object.assign\nmodule.exports = !nativeAssign || fails(function () {\n // should have correct order of operations (Edge bug)\n if (DESCRIPTORS && nativeAssign({ b: 1 }, nativeAssign(defineProperty({}, 'a', {\n enumerable: true,\n get: function () {\n defineProperty(this, 'b', {\n value: 3,\n enumerable: false\n });\n }\n }), { b: 2 })).b !== 1) return true;\n // should work with symbols and should have deterministic property order (V8 bug)\n var A = {};\n var B = {};\n // eslint-disable-next-line no-undef\n var symbol = Symbol();\n var alphabet = 'abcdefghijklmnopqrst';\n A[symbol] = 7;\n alphabet.split('').forEach(function (chr) { B[chr] = chr; });\n return nativeAssign({}, A)[symbol] != 7 || objectKeys(nativeAssign({}, B)).join('') != alphabet;\n}) ? function assign(target, source) { // eslint-disable-line no-unused-vars\n var T = toObject(target);\n var argumentsLength = arguments.length;\n var index = 1;\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n var propertyIsEnumerable = propertyIsEnumerableModule.f;\n while (argumentsLength > index) {\n var S = IndexedObject(arguments[index++]);\n var keys = getOwnPropertySymbols ? objectKeys(S).concat(getOwnPropertySymbols(S)) : objectKeys(S);\n var length = keys.length;\n var j = 0;\n var key;\n while (length > j) {\n key = keys[j++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(S, key)) T[key] = S[key];\n }\n } return T;\n} : nativeAssign;\n","var anObject = require('../internals/an-object');\nvar defineProperties = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n /* global ActiveXObject */\n activeXDocument = document.domain && new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.github.io/ecma262/#sec-object.create\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : defineProperties(result, Properties);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperties\nmodule.exports = DESCRIPTORS ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], Properties[key]);\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar anObject = require('../internals/an-object');\nvar toPrimitive = require('../internals/to-primitive');\n\nvar nativeDefineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? nativeDefineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return nativeDefineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar has = require('../internals/has');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\nvar nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPrimitive(P, true);\n if (IE8_DOM_DEFINE) try {\n return nativeGetOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar nativeGetOwnPropertyNames = require('../internals/object-get-own-property-names').f;\n\nvar toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return nativeGetOwnPropertyNames(it);\n } catch (error) {\n return windowNames.slice();\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && toString.call(it) == '[object Window]'\n ? getWindowNames(it)\n : nativeGetOwnPropertyNames(toIndexedObject(it));\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertynames\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","exports.f = Object.getOwnPropertySymbols;\n","var has = require('../internals/has');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar ObjectPrototype = Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectPrototype : null;\n};\n","var has = require('../internals/has');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~indexOf(result, key) || result.push(key);\n }\n return result;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.github.io/ecma262/#sec-object.keys\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar nativePropertyIsEnumerable = {}.propertyIsEnumerable;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : nativePropertyIsEnumerable;\n","var anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;\n setter.call(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter.call(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var DESCRIPTORS = require('../internals/descriptors');\nvar objectKeys = require('../internals/object-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar propertyIsEnumerable = require('../internals/object-property-is-enumerable').f;\n\n// `Object.{ entries, values }` methods implementation\nvar createMethod = function (TO_ENTRIES) {\n return function (it) {\n var O = toIndexedObject(it);\n var keys = objectKeys(O);\n var length = keys.length;\n var i = 0;\n var result = [];\n var key;\n while (length > i) {\n key = keys[i++];\n if (!DESCRIPTORS || propertyIsEnumerable.call(O, key)) {\n result.push(TO_ENTRIES ? [key, O[key]] : O[key]);\n }\n }\n return result;\n };\n};\n\nmodule.exports = {\n // `Object.entries` method\n // https://tc39.github.io/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.github.io/ecma262/#sec-object.values\n values: createMethod(false)\n};\n","'use strict';\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar classof = require('../internals/classof');\n\n// `Object.prototype.toString` method implementation\n// https://tc39.github.io/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;\n};\n","module.exports = {};\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar newPromiseCapability = require('../internals/new-promise-capability');\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n","var redefine = require('../internals/redefine');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) {\n if (options && options.unsafe && target[key]) target[key] = src[key];\n else redefine(target, key, src[key], options);\n } return target;\n};\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (target, key, value, options) {\n if (options && options.enumerable) target[key] = value;\n else createNonEnumerableProperty(target, key, value);\n};\n","// `RequireObjectCoercible` abstract operation\n// https://tc39.github.io/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var global = require('../internals/global');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\nmodule.exports = function (key, value) {\n try {\n createNonEnumerableProperty(global, key, value);\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar definePropertyModule = require('../internals/object-define-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n var defineProperty = definePropertyModule.f;\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineProperty(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar defineProperty = require('../internals/object-define-property').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar has = require('../internals/has');\nvar toString = require('../internals/object-to-string');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC, SET_METHOD) {\n if (it) {\n var target = STATIC ? it : it.prototype;\n if (!has(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n if (SET_METHOD && !TO_STRING_TAG_SUPPORT) {\n createNonEnumerableProperty(target, 'toString', toString);\n }\n }\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.6.4',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2020 Denis Pushkarev (zloirock.ru)'\n});\n","var anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.github.io/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? defaultConstructor : aFunction(S);\n};\n","var toInteger = require('../internals/to-integer');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `String.prototype.{ codePointAt, at }` methods implementation\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = String(requireObjectCoercible($this));\n var position = toInteger(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = S.charCodeAt(position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING ? S.charAt(position) : first\n : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\nvar whitespaces = require('../internals/whitespaces');\n\nvar whitespace = '[' + whitespaces + ']';\nvar ltrim = RegExp('^' + whitespace + whitespace + '*');\nvar rtrim = RegExp(whitespace + whitespace + '*$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = String(requireObjectCoercible($this));\n if (TYPE & 1) string = string.replace(ltrim, '');\n if (TYPE & 2) string = string.replace(rtrim, '');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.github.io/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.github.io/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\nvar bind = require('../internals/function-bind-context');\nvar html = require('../internals/html');\nvar createElement = require('../internals/document-create-element');\nvar IS_IOS = require('../internals/engine-is-ios');\n\nvar location = global.location;\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\n\nvar run = function (id) {\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar listener = function (event) {\n run(event.data);\n};\n\nvar post = function (id) {\n // old engines have not location.origin\n global.postMessage(id + '', location.protocol + '//' + location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (classof(process) == 'process') {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = bind(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n typeof postMessage == 'function' &&\n !global.importScripts &&\n !fails(post) &&\n location.protocol !== 'file:'\n ) {\n defer = post;\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var toInteger = require('../internals/to-integer');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toInteger(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToInteger` abstract operation\n// https://tc39.github.io/ecma262/#sec-tointeger\nmodule.exports = function (argument) {\n return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);\n};\n","var toInteger = require('../internals/to-integer');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.github.io/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `ToObject` abstract operation\n// https://tc39.github.io/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var isObject = require('../internals/is-object');\n\n// `ToPrimitive` abstract operation\n// https://tc39.github.io/ecma262/#sec-toprimitive\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (input, PREFERRED_STRING) {\n if (!isObject(input)) return input;\n var fn, val;\n if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;\n if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var id = 0;\nvar postfix = Math.random();\n\nmodule.exports = function (key) {\n return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);\n};\n","var NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n // eslint-disable-next-line no-undef\n && !Symbol.sham\n // eslint-disable-next-line no-undef\n && typeof Symbol.iterator == 'symbol';\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nexports.f = wellKnownSymbol;\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar has = require('../internals/has');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!has(WellKnownSymbolsStore, name)) {\n if (NATIVE_SYMBOL && has(Symbol, name)) WellKnownSymbolsStore[name] = Symbol[name];\n else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","// a string of all valid unicode whitespaces\n// eslint-disable-next-line max-len\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","'use strict';\nvar $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar toObject = require('../internals/to-object');\nvar toLength = require('../internals/to-length');\nvar createProperty = require('../internals/create-property');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';\n\n// We can't use this feature detection in V8 since it causes\n// deoptimization and serious performance degradation\n// https://github.com/zloirock/core-js/issues/679\nvar IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {\n var array = [];\n array[IS_CONCAT_SPREADABLE] = false;\n return array.concat()[0] !== array;\n});\n\nvar SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');\n\nvar isConcatSpreadable = function (O) {\n if (!isObject(O)) return false;\n var spreadable = O[IS_CONCAT_SPREADABLE];\n return spreadable !== undefined ? !!spreadable : isArray(O);\n};\n\nvar FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;\n\n// `Array.prototype.concat` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, forced: FORCED }, {\n concat: function concat(arg) { // eslint-disable-line no-unused-vars\n var O = toObject(this);\n var A = arraySpeciesCreate(O, 0);\n var n = 0;\n var i, k, length, len, E;\n for (i = -1, length = arguments.length; i < length; i++) {\n E = i === -1 ? O : arguments[i];\n if (isConcatSpreadable(E)) {\n len = toLength(E.length);\n if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);\n } else {\n if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);\n createProperty(A, n++, E);\n }\n }\n A.length = n;\n return A;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $filter = require('../internals/array-iteration').filter;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n// Edge 14- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n filter: function filter(callbackfn /* , thisArg */) {\n return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/array-iteration').find;\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\n\nvar USES_TO_LENGTH = arrayMethodUsesToLength(FIND);\n\n// Shouldn't skip holes\nif (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });\n\n// `Array.prototype.find` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES || !USES_TO_LENGTH }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\n","'use strict';\nvar $ = require('../internals/export');\nvar forEach = require('../internals/array-for-each');\n\n// `Array.prototype.forEach` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.foreach\n$({ target: 'Array', proto: true, forced: [].forEach != forEach }, {\n forEach: forEach\n});\n","var $ = require('../internals/export');\nvar from = require('../internals/array-from');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\n\nvar INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.github.io/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $includes = require('../internals/array-includes').includes;\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });\n\n// `Array.prototype.includes` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.includes\n$({ target: 'Array', proto: true, forced: !USES_TO_LENGTH }, {\n includes: function includes(el /* , fromIndex = 0 */) {\n return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('includes');\n","'use strict';\nvar $ = require('../internals/export');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar nativeIndexOf = [].indexOf;\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;\nvar STRICT_METHOD = arrayMethodIsStrict('indexOf');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('indexOf', { ACCESSORS: true, 1: 0 });\n\n// `Array.prototype.indexOf` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD || !USES_TO_LENGTH }, {\n indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {\n return NEGATIVE_ZERO\n // convert -0 to +0\n ? nativeIndexOf.apply(this, arguments) || 0\n : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","var $ = require('../internals/export');\nvar isArray = require('../internals/is-array');\n\n// `Array.isArray` method\n// https://tc39.github.io/ecma262/#sec-array.isarray\n$({ target: 'Array', stat: true }, {\n isArray: isArray\n});\n","'use strict';\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar Iterators = require('../internals/iterators');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\n\nvar ARRAY_ITERATOR = 'Array Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);\n\n// `Array.prototype.entries` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.github.io/ecma262/#sec-createarrayiterator\nmodule.exports = defineIterator(Array, 'Array', function (iterated, kind) {\n setInternalState(this, {\n type: ARRAY_ITERATOR,\n target: toIndexedObject(iterated), // target\n index: 0, // next index\n kind: kind // kind\n });\n// `%ArrayIteratorPrototype%.next` method\n// https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next\n}, function () {\n var state = getInternalState(this);\n var target = state.target;\n var kind = state.kind;\n var index = state.index++;\n if (!target || index >= target.length) {\n state.target = undefined;\n return { value: undefined, done: true };\n }\n if (kind == 'keys') return { value: index, done: false };\n if (kind == 'values') return { value: target[index], done: false };\n return { value: [index, target[index]], done: false };\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values%\n// https://tc39.github.io/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.github.io/ecma262/#sec-createmappedargumentsobject\nIterators.Arguments = Iterators.Array;\n\n// https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n","'use strict';\nvar $ = require('../internals/export');\nvar $map = require('../internals/array-iteration').map;\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n// FF49- issue\nvar USES_TO_LENGTH = arrayMethodUsesToLength('map');\n\n// `Array.prototype.map` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n map: function map(callbackfn /* , thisArg */) {\n return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar STRICT_METHOD = arrayMethodIsStrict('reduce');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('reduce', { 1: 0 });\n\n// `Array.prototype.reduce` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: !STRICT_METHOD || !USES_TO_LENGTH }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar createProperty = require('../internals/create-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('slice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar SPECIES = wellKnownSymbol('species');\nvar nativeSlice = [].slice;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.slice\n// fallback for not array-like ES3 strings and DOM objects\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n slice: function slice(start, end) {\n var O = toIndexedObject(this);\n var length = toLength(O.length);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible\n var Constructor, result, n;\n if (isArray(O)) {\n Constructor = O.constructor;\n // cross-realm fallback\n if (typeof Constructor == 'function' && (Constructor === Array || isArray(Constructor.prototype))) {\n Constructor = undefined;\n } else if (isObject(Constructor)) {\n Constructor = Constructor[SPECIES];\n if (Constructor === null) Constructor = undefined;\n }\n if (Constructor === Array || Constructor === undefined) {\n return nativeSlice.call(O, k, fin);\n }\n }\n result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));\n for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\nvar toObject = require('../internals/to-object');\nvar fails = require('../internals/fails');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar test = [];\nvar nativeSort = test.sort;\n\n// IE8-\nvar FAILS_ON_UNDEFINED = fails(function () {\n test.sort(undefined);\n});\n// V8 bug\nvar FAILS_ON_NULL = fails(function () {\n test.sort(null);\n});\n// Old WebKit\nvar STRICT_METHOD = arrayMethodIsStrict('sort');\n\nvar FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD;\n\n// `Array.prototype.sort` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.sort\n$({ target: 'Array', proto: true, forced: FORCED }, {\n sort: function sort(comparefn) {\n return comparefn === undefined\n ? nativeSort.call(toObject(this))\n : nativeSort.call(toObject(this), aFunction(comparefn));\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toInteger = require('../internals/to-integer');\nvar toLength = require('../internals/to-length');\nvar toObject = require('../internals/to-object');\nvar arraySpeciesCreate = require('../internals/array-species-create');\nvar createProperty = require('../internals/create-property');\nvar arrayMethodHasSpeciesSupport = require('../internals/array-method-has-species-support');\nvar arrayMethodUsesToLength = require('../internals/array-method-uses-to-length');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\nvar USES_TO_LENGTH = arrayMethodUsesToLength('splice', { ACCESSORS: true, 0: 0, 1: 2 });\n\nvar max = Math.max;\nvar min = Math.min;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;\nvar MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';\n\n// `Array.prototype.splice` method\n// https://tc39.github.io/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {\n splice: function splice(start, deleteCount /* , ...items */) {\n var O = toObject(this);\n var len = toLength(O.length);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var insertCount, actualDeleteCount, A, k, from, to;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toInteger(deleteCount), 0), len - actualStart);\n }\n if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {\n throw TypeError(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);\n }\n A = arraySpeciesCreate(O, actualDeleteCount);\n for (k = 0; k < actualDeleteCount; k++) {\n from = actualStart + k;\n if (from in O) createProperty(A, k, O[from]);\n }\n A.length = actualDeleteCount;\n if (insertCount < actualDeleteCount) {\n for (k = actualStart; k < len - actualDeleteCount; k++) {\n from = k + actualDeleteCount;\n to = k + insertCount;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];\n } else if (insertCount > actualDeleteCount) {\n for (k = len - actualDeleteCount; k > actualStart; k--) {\n from = k + actualDeleteCount - 1;\n to = k + insertCount - 1;\n if (from in O) O[to] = O[from];\n else delete O[to];\n }\n }\n for (k = 0; k < insertCount; k++) {\n O[k + actualStart] = arguments[k + 2];\n }\n O.length = len - actualDeleteCount + insertCount;\n return A;\n }\n});\n","var $ = require('../internals/export');\nvar bind = require('../internals/function-bind');\n\n// `Function.prototype.bind` method\n// https://tc39.github.io/ecma262/#sec-function.prototype.bind\n$({ target: 'Function', proto: true }, {\n bind: bind\n});\n","var global = require('../internals/global');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\n// JSON[@@toStringTag] property\n// https://tc39.github.io/ecma262/#sec-json-@@tostringtag\nsetToStringTag(global.JSON, 'JSON', true);\n","var $ = require('../internals/export');\n\nvar log = Math.log;\nvar LN2 = Math.LN2;\n\n// `Math.log2` method\n// https://tc39.github.io/ecma262/#sec-math.log2\n$({ target: 'Math', stat: true }, {\n log2: function log2(x) {\n return log(x) / LN2;\n }\n});\n","var setToStringTag = require('../internals/set-to-string-tag');\n\n// Math[@@toStringTag] property\n// https://tc39.github.io/ecma262/#sec-math-@@tostringtag\nsetToStringTag(Math, 'Math', true);\n","var $ = require('../internals/export');\n\n// `Number.isNaN` method\n// https://tc39.github.io/ecma262/#sec-number.isnan\n$({ target: 'Number', stat: true }, {\n isNaN: function isNaN(number) {\n // eslint-disable-next-line no-self-compare\n return number != number;\n }\n});\n","var $ = require('../internals/export');\nvar parseFloat = require('../internals/number-parse-float');\n\n// `Number.parseFloat` method\n// https://tc39.github.io/ecma262/#sec-number.parseFloat\n$({ target: 'Number', stat: true, forced: Number.parseFloat != parseFloat }, {\n parseFloat: parseFloat\n});\n","var $ = require('../internals/export');\nvar assign = require('../internals/object-assign');\n\n// `Object.assign` method\n// https://tc39.github.io/ecma262/#sec-object.assign\n$({ target: 'Object', stat: true, forced: Object.assign !== assign }, {\n assign: assign\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar create = require('../internals/object-create');\n\n// `Object.create` method\n// https://tc39.github.io/ecma262/#sec-object.create\n$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {\n create: create\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineProperties = require('../internals/object-define-properties');\n\n// `Object.defineProperties` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperties\n$({ target: 'Object', stat: true, forced: !DESCRIPTORS, sham: !DESCRIPTORS }, {\n defineProperties: defineProperties\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar objectDefinePropertyModile = require('../internals/object-define-property');\n\n// `Object.defineProperty` method\n// https://tc39.github.io/ecma262/#sec-object.defineproperty\n$({ target: 'Object', stat: true, forced: !DESCRIPTORS, sham: !DESCRIPTORS }, {\n defineProperty: objectDefinePropertyModile.f\n});\n","var $ = require('../internals/export');\nvar $entries = require('../internals/object-to-array').entries;\n\n// `Object.entries` method\n// https://tc39.github.io/ecma262/#sec-object.entries\n$({ target: 'Object', stat: true }, {\n entries: function entries(O) {\n return $entries(O);\n }\n});\n","var $ = require('../internals/export');\nvar FREEZING = require('../internals/freezing');\nvar fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar onFreeze = require('../internals/internal-metadata').onFreeze;\n\nvar nativeFreeze = Object.freeze;\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeFreeze(1); });\n\n// `Object.freeze` method\n// https://tc39.github.io/ecma262/#sec-object.freeze\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, {\n freeze: function freeze(it) {\n return nativeFreeze && isObject(it) ? nativeFreeze(onFreeze(it)) : it;\n }\n});\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar nativeGetOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetOwnPropertyDescriptor(1); });\nvar FORCED = !DESCRIPTORS || FAILS_ON_PRIMITIVES;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor\n$({ target: 'Object', stat: true, forced: FORCED, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {\n return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);\n }\n});\n","var $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar ownKeys = require('../internals/own-keys');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar createProperty = require('../internals/create-property');\n\n// `Object.getOwnPropertyDescriptors` method\n// https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors\n$({ target: 'Object', stat: true, sham: !DESCRIPTORS }, {\n getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {\n var O = toIndexedObject(object);\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n var keys = ownKeys(O);\n var result = {};\n var index = 0;\n var key, descriptor;\n while (keys.length > index) {\n descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);\n if (descriptor !== undefined) createProperty(result, key, descriptor);\n }\n return result;\n }\n});\n","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar toObject = require('../internals/to-object');\nvar nativeGetPrototypeOf = require('../internals/object-get-prototype-of');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeGetPrototypeOf(1); });\n\n// `Object.getPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.getprototypeof\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !CORRECT_PROTOTYPE_GETTER }, {\n getPrototypeOf: function getPrototypeOf(it) {\n return nativeGetPrototypeOf(toObject(it));\n }\n});\n\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar nativeKeys = require('../internals/object-keys');\nvar fails = require('../internals/fails');\n\nvar FAILS_ON_PRIMITIVES = fails(function () { nativeKeys(1); });\n\n// `Object.keys` method\n// https://tc39.github.io/ecma262/#sec-object.keys\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n keys: function keys(it) {\n return nativeKeys(toObject(it));\n }\n});\n","var $ = require('../internals/export');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n$({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf\n});\n","var $ = require('../internals/export');\nvar $values = require('../internals/object-to-array').values;\n\n// `Object.values` method\n// https://tc39.github.io/ecma262/#sec-object.values\n$({ target: 'Object', stat: true }, {\n values: function values(O) {\n return $values(O);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\n\n// `Promise.allSettled` method\n// https://github.com/tc39/proposal-promise-allSettled\n$({ target: 'Promise', stat: true }, {\n allSettled: function allSettled(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aFunction(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n promiseResolve.call(C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'fulfilled', value: value };\n --remaining || resolve(values);\n }, function (e) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: e };\n --remaining || resolve(values);\n });\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar fails = require('../internals/fails');\nvar getBuiltIn = require('../internals/get-built-in');\nvar speciesConstructor = require('../internals/species-constructor');\nvar promiseResolve = require('../internals/promise-resolve');\nvar redefine = require('../internals/redefine');\n\n// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829\nvar NON_GENERIC = !!NativePromise && fails(function () {\n NativePromise.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });\n});\n\n// `Promise.prototype.finally` method\n// https://tc39.github.io/ecma262/#sec-promise.prototype.finally\n$({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {\n 'finally': function (onFinally) {\n var C = speciesConstructor(this, getBuiltIn('Promise'));\n var isFunction = typeof onFinally == 'function';\n return this.then(\n isFunction ? function (x) {\n return promiseResolve(C, onFinally()).then(function () { return x; });\n } : onFinally,\n isFunction ? function (e) {\n return promiseResolve(C, onFinally()).then(function () { throw e; });\n } : onFinally\n );\n }\n});\n\n// patch native Promise.prototype for native async functions\nif (!IS_PURE && typeof NativePromise == 'function' && !NativePromise.prototype['finally']) {\n redefine(NativePromise.prototype, 'finally', getBuiltIn('Promise').prototype['finally']);\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar NativePromise = require('../internals/native-promise-constructor');\nvar redefine = require('../internals/redefine');\nvar redefineAll = require('../internals/redefine-all');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar setSpecies = require('../internals/set-species');\nvar isObject = require('../internals/is-object');\nvar aFunction = require('../internals/a-function');\nvar anInstance = require('../internals/an-instance');\nvar classof = require('../internals/classof-raw');\nvar inspectSource = require('../internals/inspect-source');\nvar iterate = require('../internals/iterate');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar speciesConstructor = require('../internals/species-constructor');\nvar task = require('../internals/task').set;\nvar microtask = require('../internals/microtask');\nvar promiseResolve = require('../internals/promise-resolve');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar InternalStateModule = require('../internals/internal-state');\nvar isForced = require('../internals/is-forced');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar SPECIES = wellKnownSymbol('species');\nvar PROMISE = 'Promise';\nvar getInternalState = InternalStateModule.get;\nvar setInternalState = InternalStateModule.set;\nvar getInternalPromiseState = InternalStateModule.getterFor(PROMISE);\nvar PromiseConstructor = NativePromise;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar $fetch = getBuiltIn('fetch');\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\nvar IS_NODE = classof(process) == 'process';\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\nvar FORCED = isForced(PROMISE, function () {\n var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);\n if (!GLOBAL_CORE_JS_PROMISE) {\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (V8_VERSION === 66) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n if (!IS_NODE && typeof PromiseRejectionEvent != 'function') return true;\n }\n // We need Promise#finally in the pure version for preventing prototype pollution\n if (IS_PURE && !PromiseConstructor.prototype['finally']) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;\n // Detect correctness of subclassing with @@species support\n var promise = PromiseConstructor.resolve(1);\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n return !(promise.then(function () { /* empty */ }) instanceof FakePromise);\n});\n\nvar INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {\n PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });\n});\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\n\nvar notify = function (promise, state, isReject) {\n if (state.notified) return;\n state.notified = true;\n var chain = state.reactions;\n microtask(function () {\n var value = state.value;\n var ok = state.state == FULFILLED;\n var index = 0;\n // variable length - can't use forEach\n while (chain.length > index) {\n var reaction = chain[index++];\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (state.rejection === UNHANDLED) onHandleUnhandled(promise, state);\n state.rejection = HANDLED;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // can throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (error) {\n if (domain && !exited) domain.exit();\n reject(error);\n }\n }\n state.reactions = [];\n state.notified = false;\n if (isReject && !state.rejection) onUnhandled(promise, state);\n });\n};\n\nvar dispatchEvent = function (name, promise, reason) {\n var event, handler;\n if (DISPATCH_EVENT) {\n event = document.createEvent('Event');\n event.promise = promise;\n event.reason = reason;\n event.initEvent(name, false, true);\n global.dispatchEvent(event);\n } else event = { promise: promise, reason: reason };\n if (handler = global['on' + name]) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (promise, state) {\n task.call(global, function () {\n var value = state.value;\n var IS_UNHANDLED = isUnhandled(state);\n var result;\n if (IS_UNHANDLED) {\n result = perform(function () {\n if (IS_NODE) {\n process.emit('unhandledRejection', value, promise);\n } else dispatchEvent(UNHANDLED_REJECTION, promise, value);\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;\n if (result.error) throw result.value;\n }\n });\n};\n\nvar isUnhandled = function (state) {\n return state.rejection !== HANDLED && !state.parent;\n};\n\nvar onHandleUnhandled = function (promise, state) {\n task.call(global, function () {\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, promise, state, unwrap) {\n return function (value) {\n fn(promise, state, value, unwrap);\n };\n};\n\nvar internalReject = function (promise, state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n state.value = value;\n state.state = REJECTED;\n notify(promise, state, true);\n};\n\nvar internalResolve = function (promise, state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n var then = isThenable(value);\n if (then) {\n microtask(function () {\n var wrapper = { done: false };\n try {\n then.call(value,\n bind(internalResolve, promise, wrapper, state),\n bind(internalReject, promise, wrapper, state)\n );\n } catch (error) {\n internalReject(promise, wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(promise, state, false);\n }\n } catch (error) {\n internalReject(promise, { done: false }, error, state);\n }\n};\n\n// constructor polyfill\nif (FORCED) {\n // 25.4.3.1 Promise(executor)\n PromiseConstructor = function Promise(executor) {\n anInstance(this, PromiseConstructor, PROMISE);\n aFunction(executor);\n Internal.call(this);\n var state = getInternalState(this);\n try {\n executor(bind(internalResolve, this, state), bind(internalReject, this, state));\n } catch (error) {\n internalReject(this, state, error);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n setInternalState(this, {\n type: PROMISE,\n done: false,\n notified: false,\n parent: false,\n reactions: [],\n rejection: false,\n state: PENDING,\n value: undefined\n });\n };\n Internal.prototype = redefineAll(PromiseConstructor.prototype, {\n // `Promise.prototype.then` method\n // https://tc39.github.io/ecma262/#sec-promise.prototype.then\n then: function then(onFulfilled, onRejected) {\n var state = getInternalPromiseState(this);\n var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = IS_NODE ? process.domain : undefined;\n state.parent = true;\n state.reactions.push(reaction);\n if (state.state != PENDING) notify(this, state, false);\n return reaction.promise;\n },\n // `Promise.prototype.catch` method\n // https://tc39.github.io/ecma262/#sec-promise.prototype.catch\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n var state = getInternalState(promise);\n this.promise = promise;\n this.resolve = bind(internalResolve, promise, state);\n this.reject = bind(internalReject, promise, state);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === PromiseConstructor || C === PromiseWrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n\n if (!IS_PURE && typeof NativePromise == 'function') {\n nativeThen = NativePromise.prototype.then;\n\n // wrap native Promise#then for native async functions\n redefine(NativePromise.prototype, 'then', function then(onFulfilled, onRejected) {\n var that = this;\n return new PromiseConstructor(function (resolve, reject) {\n nativeThen.call(that, resolve, reject);\n }).then(onFulfilled, onRejected);\n // https://github.com/zloirock/core-js/issues/640\n }, { unsafe: true });\n\n // wrap fetch result\n if (typeof $fetch == 'function') $({ global: true, enumerable: true, forced: true }, {\n // eslint-disable-next-line no-unused-vars\n fetch: function fetch(input /* , init */) {\n return promiseResolve(PromiseConstructor, $fetch.apply(global, arguments));\n }\n });\n }\n}\n\n$({ global: true, wrap: true, forced: FORCED }, {\n Promise: PromiseConstructor\n});\n\nsetToStringTag(PromiseConstructor, PROMISE, false, true);\nsetSpecies(PROMISE);\n\nPromiseWrapper = getBuiltIn(PROMISE);\n\n// statics\n$({ target: PROMISE, stat: true, forced: FORCED }, {\n // `Promise.reject` method\n // https://tc39.github.io/ecma262/#sec-promise.reject\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n capability.reject.call(undefined, r);\n return capability.promise;\n }\n});\n\n$({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {\n // `Promise.resolve` method\n // https://tc39.github.io/ecma262/#sec-promise.resolve\n resolve: function resolve(x) {\n return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);\n }\n});\n\n$({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {\n // `Promise.all` method\n // https://tc39.github.io/ecma262/#sec-promise.all\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aFunction(C.resolve);\n var values = [];\n var counter = 0;\n var remaining = 1;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n $promiseResolve.call(C, promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.error) reject(result.value);\n return capability.promise;\n },\n // `Promise.race` method\n // https://tc39.github.io/ecma262/#sec-promise.race\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n var $promiseResolve = aFunction(C.resolve);\n iterate(iterable, function (promise) {\n $promiseResolve.call(C, promise).then(capability.resolve, reject);\n });\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar aFunction = require('../internals/a-function');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar bind = require('../internals/function-bind');\nvar fails = require('../internals/fails');\n\nvar nativeConstruct = getBuiltIn('Reflect', 'construct');\n\n// `Reflect.construct` method\n// https://tc39.github.io/ecma262/#sec-reflect.construct\n// MS Edge supports only 2 arguments and argumentsList argument is optional\n// FF Nightly sets third argument as `new.target`, but does not create `this` from it\nvar NEW_TARGET_BUG = fails(function () {\n function F() { /* empty */ }\n return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);\n});\nvar ARGS_BUG = !fails(function () {\n nativeConstruct(function () { /* empty */ });\n});\nvar FORCED = NEW_TARGET_BUG || ARGS_BUG;\n\n$({ target: 'Reflect', stat: true, forced: FORCED, sham: FORCED }, {\n construct: function construct(Target, args /* , newTarget */) {\n aFunction(Target);\n anObject(args);\n var newTarget = arguments.length < 3 ? Target : aFunction(arguments[2]);\n if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);\n if (Target == newTarget) {\n // w/o altered newTarget, optimization for 0-4 arguments\n switch (args.length) {\n case 0: return new Target();\n case 1: return new Target(args[0]);\n case 2: return new Target(args[0], args[1]);\n case 3: return new Target(args[0], args[1], args[2]);\n case 4: return new Target(args[0], args[1], args[2], args[3]);\n }\n // w/o altered newTarget, lot of arguments case\n var $args = [null];\n $args.push.apply($args, args);\n return new (bind.apply(Target, $args))();\n }\n // with altered newTarget, not support built-in constructors\n var proto = newTarget.prototype;\n var instance = create(isObject(proto) ? proto : Object.prototype);\n var result = Function.apply.call(Target, instance, args);\n return isObject(result) ? result : instance;\n }\n});\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.github.io/ecma262/#sec-set-objects\nmodule.exports = collection('Set', function (init) {\n return function Set() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","'use strict';\nvar $ = require('../internals/export');\nvar notARegExp = require('../internals/not-a-regexp');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar correctIsRegExpLogic = require('../internals/correct-is-regexp-logic');\n\n// `String.prototype.includes` method\n// https://tc39.github.io/ecma262/#sec-string.prototype.includes\n$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {\n includes: function includes(searchString /* , position = 0 */) {\n return !!~String(requireObjectCoercible(this))\n .indexOf(notARegExp(searchString), arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: String(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return { value: undefined, done: true };\n point = charAt(string, index);\n state.index += point.length;\n return { value: point, done: false };\n});\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.asyncIterator` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.asynciterator\ndefineWellKnownSymbol('asyncIterator');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.hasInstance` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.hasinstance\ndefineWellKnownSymbol('hasInstance');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.isConcatSpreadable` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.isconcatspreadable\ndefineWellKnownSymbol('isConcatSpreadable');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.iterator` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.iterator\ndefineWellKnownSymbol('iterator');\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar IS_PURE = require('../internals/is-pure');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\nvar fails = require('../internals/fails');\nvar has = require('../internals/has');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar anObject = require('../internals/an-object');\nvar toObject = require('../internals/to-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPrimitive = require('../internals/to-primitive');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar nativeObjectCreate = require('../internals/object-create');\nvar objectKeys = require('../internals/object-keys');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternal = require('../internals/object-get-own-property-names-external');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar shared = require('../internals/shared');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar uid = require('../internals/uid');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineWellKnownSymbol = require('../internals/define-well-known-symbol');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar InternalStateModule = require('../internals/internal-state');\nvar $forEach = require('../internals/array-iteration').forEach;\n\nvar HIDDEN = sharedKey('hidden');\nvar SYMBOL = 'Symbol';\nvar PROTOTYPE = 'prototype';\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(SYMBOL);\nvar ObjectPrototype = Object[PROTOTYPE];\nvar $Symbol = global.Symbol;\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\nvar nativeDefineProperty = definePropertyModule.f;\nvar nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;\nvar nativePropertyIsEnumerable = propertyIsEnumerableModule.f;\nvar AllSymbols = shared('symbols');\nvar ObjectPrototypeSymbols = shared('op-symbols');\nvar StringToSymbolRegistry = shared('string-to-symbol-registry');\nvar SymbolToStringRegistry = shared('symbol-to-string-registry');\nvar WellKnownSymbolsStore = shared('wks');\nvar QObject = global.QObject;\n// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173\nvar USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDescriptor = DESCRIPTORS && fails(function () {\n return nativeObjectCreate(nativeDefineProperty({}, 'a', {\n get: function () { return nativeDefineProperty(this, 'a', { value: 7 }).a; }\n })).a != 7;\n}) ? function (O, P, Attributes) {\n var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor(ObjectPrototype, P);\n if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];\n nativeDefineProperty(O, P, Attributes);\n if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {\n nativeDefineProperty(ObjectPrototype, P, ObjectPrototypeDescriptor);\n }\n} : nativeDefineProperty;\n\nvar wrap = function (tag, description) {\n var symbol = AllSymbols[tag] = nativeObjectCreate($Symbol[PROTOTYPE]);\n setInternalState(symbol, {\n type: SYMBOL,\n tag: tag,\n description: description\n });\n if (!DESCRIPTORS) symbol.description = description;\n return symbol;\n};\n\nvar isSymbol = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n return Object(it) instanceof $Symbol;\n};\n\nvar $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject(O);\n var key = toPrimitive(P, true);\n anObject(Attributes);\n if (has(AllSymbols, key)) {\n if (!Attributes.enumerable) {\n if (!has(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor(1, {}));\n O[HIDDEN][key] = true;\n } else {\n if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;\n Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });\n } return setSymbolDescriptor(O, key, Attributes);\n } return nativeDefineProperty(O, key, Attributes);\n};\n\nvar $defineProperties = function defineProperties(O, Properties) {\n anObject(O);\n var properties = toIndexedObject(Properties);\n var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));\n $forEach(keys, function (key) {\n if (!DESCRIPTORS || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);\n });\n return O;\n};\n\nvar $create = function create(O, Properties) {\n return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties);\n};\n\nvar $propertyIsEnumerable = function propertyIsEnumerable(V) {\n var P = toPrimitive(V, true);\n var enumerable = nativePropertyIsEnumerable.call(this, P);\n if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;\n return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;\n};\n\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {\n var it = toIndexedObject(O);\n var key = toPrimitive(P, true);\n if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;\n var descriptor = nativeGetOwnPropertyDescriptor(it, key);\n if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {\n descriptor.enumerable = true;\n }\n return descriptor;\n};\n\nvar $getOwnPropertyNames = function getOwnPropertyNames(O) {\n var names = nativeGetOwnPropertyNames(toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);\n });\n return result;\n};\n\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(O) {\n var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;\n var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));\n var result = [];\n $forEach(names, function (key) {\n if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {\n result.push(AllSymbols[key]);\n }\n });\n return result;\n};\n\n// `Symbol` constructor\n// https://tc39.github.io/ecma262/#sec-symbol-constructor\nif (!NATIVE_SYMBOL) {\n $Symbol = function Symbol() {\n if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');\n var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);\n var tag = uid(description);\n var setter = function (value) {\n if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);\n if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;\n setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));\n };\n if (DESCRIPTORS && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });\n return wrap(tag, description);\n };\n\n redefine($Symbol[PROTOTYPE], 'toString', function toString() {\n return getInternalState(this).tag;\n });\n\n redefine($Symbol, 'withoutSetter', function (description) {\n return wrap(uid(description), description);\n });\n\n propertyIsEnumerableModule.f = $propertyIsEnumerable;\n definePropertyModule.f = $defineProperty;\n getOwnPropertyDescriptorModule.f = $getOwnPropertyDescriptor;\n getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;\n getOwnPropertySymbolsModule.f = $getOwnPropertySymbols;\n\n wrappedWellKnownSymbolModule.f = function (name) {\n return wrap(wellKnownSymbol(name), name);\n };\n\n if (DESCRIPTORS) {\n // https://github.com/tc39/proposal-Symbol-description\n nativeDefineProperty($Symbol[PROTOTYPE], 'description', {\n configurable: true,\n get: function description() {\n return getInternalState(this).description;\n }\n });\n if (!IS_PURE) {\n redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });\n }\n }\n}\n\n$({ global: true, wrap: true, forced: !NATIVE_SYMBOL, sham: !NATIVE_SYMBOL }, {\n Symbol: $Symbol\n});\n\n$forEach(objectKeys(WellKnownSymbolsStore), function (name) {\n defineWellKnownSymbol(name);\n});\n\n$({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL }, {\n // `Symbol.for` method\n // https://tc39.github.io/ecma262/#sec-symbol.for\n 'for': function (key) {\n var string = String(key);\n if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];\n var symbol = $Symbol(string);\n StringToSymbolRegistry[string] = symbol;\n SymbolToStringRegistry[symbol] = string;\n return symbol;\n },\n // `Symbol.keyFor` method\n // https://tc39.github.io/ecma262/#sec-symbol.keyfor\n keyFor: function keyFor(sym) {\n if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');\n if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];\n },\n useSetter: function () { USE_SETTER = true; },\n useSimple: function () { USE_SETTER = false; }\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL, sham: !DESCRIPTORS }, {\n // `Object.create` method\n // https://tc39.github.io/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.github.io/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.github.io/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames,\n // `Object.getOwnPropertySymbols` method\n // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives\n// https://bugs.chromium.org/p/v8/issues/detail?id=3443\n$({ target: 'Object', stat: true, forced: fails(function () { getOwnPropertySymbolsModule.f(1); }) }, {\n getOwnPropertySymbols: function getOwnPropertySymbols(it) {\n return getOwnPropertySymbolsModule.f(toObject(it));\n }\n});\n\n// `JSON.stringify` method behavior with symbols\n// https://tc39.github.io/ecma262/#sec-json.stringify\nif ($stringify) {\n var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL || fails(function () {\n var symbol = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n return $stringify([symbol]) != '[null]'\n // WebKit converts symbol values to JSON as null\n || $stringify({ a: symbol }) != '{}'\n // V8 throws on boxed symbols\n || $stringify(Object(symbol)) != '{}';\n });\n\n $({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {\n // eslint-disable-next-line no-unused-vars\n stringify: function stringify(it, replacer, space) {\n var args = [it];\n var index = 1;\n var $replacer;\n while (arguments.length > index) args.push(arguments[index++]);\n $replacer = replacer;\n if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined\n if (!isArray(replacer)) replacer = function (key, value) {\n if (typeof $replacer == 'function') value = $replacer.call(this, key, value);\n if (!isSymbol(value)) return value;\n };\n args[1] = replacer;\n return $stringify.apply(null, args);\n }\n });\n}\n\n// `Symbol.prototype[@@toPrimitive]` method\n// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive\nif (!$Symbol[PROTOTYPE][TO_PRIMITIVE]) {\n createNonEnumerableProperty($Symbol[PROTOTYPE], TO_PRIMITIVE, $Symbol[PROTOTYPE].valueOf);\n}\n// `Symbol.prototype[@@toStringTag]` property\n// https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag\nsetToStringTag($Symbol, SYMBOL);\n\nhiddenKeys[HIDDEN] = true;\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.matchAll` well-known symbol\ndefineWellKnownSymbol('matchAll');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.match` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.match\ndefineWellKnownSymbol('match');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.replace` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.replace\ndefineWellKnownSymbol('replace');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.search` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.search\ndefineWellKnownSymbol('search');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.species` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.species\ndefineWellKnownSymbol('species');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.split` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.split\ndefineWellKnownSymbol('split');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.toPrimitive` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.toprimitive\ndefineWellKnownSymbol('toPrimitive');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.toStringTag` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.tostringtag\ndefineWellKnownSymbol('toStringTag');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.unscopables` well-known symbol\n// https://tc39.github.io/ecma262/#sec-symbol.unscopables\ndefineWellKnownSymbol('unscopables');\n","'use strict';\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar iterate = require('../internals/iterate');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar getInternalAggregateErrorState = InternalStateModule.getterFor('AggregateError');\n\nvar $AggregateError = function AggregateError(errors, message) {\n var that = this;\n if (!(that instanceof $AggregateError)) return new $AggregateError(errors, message);\n if (setPrototypeOf) {\n that = setPrototypeOf(new Error(message), getPrototypeOf(that));\n }\n var errorsArray = [];\n iterate(errors, errorsArray.push, errorsArray);\n if (DESCRIPTORS) setInternalState(that, { errors: errorsArray, type: 'AggregateError' });\n else that.errors = errorsArray;\n if (message !== undefined) createNonEnumerableProperty(that, 'message', String(message));\n return that;\n};\n\n$AggregateError.prototype = create(Error.prototype, {\n constructor: createPropertyDescriptor(5, $AggregateError),\n message: createPropertyDescriptor(5, ''),\n name: createPropertyDescriptor(5, 'AggregateError')\n});\n\nif (DESCRIPTORS) defineProperty.f($AggregateError.prototype, 'errors', {\n get: function () {\n return getInternalAggregateErrorState(this).errors;\n },\n configurable: true\n});\n\n$({ global: true }, {\n AggregateError: $AggregateError\n});\n","// TODO: Remove from `core-js@4`\nrequire('./es.promise.all-settled.js');\n","'use strict';\nvar $ = require('../internals/export');\nvar aFunction = require('../internals/a-function');\nvar getBuiltIn = require('../internals/get-built-in');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\n\nvar PROMISE_ANY_ERROR = 'No one promise resolved';\n\n// `Promise.any` method\n// https://github.com/tc39/proposal-promise-any\n$({ target: 'Promise', stat: true }, {\n any: function any(iterable) {\n var C = this;\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aFunction(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n errors.push(undefined);\n remaining++;\n promiseResolve.call(C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (e) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = e;\n --remaining || reject(new (getBuiltIn('AggregateError'))(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new (getBuiltIn('AggregateError'))(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\n\n// `Promise.try` method\n// https://github.com/tc39/proposal-promise-try\n$({ target: 'Promise', stat: true }, {\n 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapabilityModule.f(this);\n var result = perform(callbackfn);\n (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);\n return promiseCapability.promise;\n }\n});\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.asyncDispose` well-known symbol\n// https://github.com/tc39/proposal-using-statement\ndefineWellKnownSymbol('asyncDispose');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.dispose` well-known symbol\n// https://github.com/tc39/proposal-using-statement\ndefineWellKnownSymbol('dispose');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.observable` well-known symbol\n// https://github.com/tc39/proposal-observable\ndefineWellKnownSymbol('observable');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.patternMatch` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol('patternMatch');\n","// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\ndefineWellKnownSymbol('replaceAll');\n","require('./es.array.iterator');\nvar DOMIterables = require('../internals/dom-iterables');\nvar global = require('../internals/global');\nvar classof = require('../internals/classof');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nfor (var COLLECTION_NAME in DOMIterables) {\n var Collection = global[COLLECTION_NAME];\n var CollectionPrototype = Collection && Collection.prototype;\n if (CollectionPrototype && classof(CollectionPrototype) !== TO_STRING_TAG) {\n createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n }\n Iterators[COLLECTION_NAME] = Iterators.Array;\n}\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar slice = [].slice;\nvar MSIE = /MSIE .\\./.test(userAgent); // <- dirty ie9- check\n\nvar wrap = function (scheduler) {\n return function (handler, timeout /* , ...arguments */) {\n var boundArgs = arguments.length > 2;\n var args = boundArgs ? slice.call(arguments, 2) : undefined;\n return scheduler(boundArgs ? function () {\n // eslint-disable-next-line no-new-func\n (typeof handler == 'function' ? handler : Function(handler)).apply(this, args);\n } : handler, timeout);\n };\n};\n\n// ie9- setTimeout & setInterval additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers\n$({ global: true, bind: true, forced: MSIE }, {\n // `setTimeout` method\n // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout\n setTimeout: wrap(global.setTimeout),\n // `setInterval` method\n // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval\n setInterval: wrap(global.setInterval)\n});\n","var parent = require('../../es/array/from');\n\nmodule.exports = parent;\n","var parent = require('../../es/array/is-array');\n\nmodule.exports = parent;\n","var parent = require('../../../es/array/virtual/for-each');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/bind');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/concat');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/filter');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/find');\n\nmodule.exports = parent;\n","require('../../modules/web.dom-collections.iterator');\nvar forEach = require('../array/virtual/for-each');\nvar classof = require('../../internals/classof');\nvar ArrayPrototype = Array.prototype;\n\nvar DOMIterables = {\n DOMTokenList: true,\n NodeList: true\n};\n\nmodule.exports = function (it) {\n var own = it.forEach;\n return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.forEach)\n // eslint-disable-next-line no-prototype-builtins\n || DOMIterables.hasOwnProperty(classof(it)) ? forEach : own;\n};\n","var parent = require('../../es/instance/includes');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/index-of');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/map');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/reduce');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/slice');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/sort');\n\nmodule.exports = parent;\n","var parent = require('../../es/instance/splice');\n\nmodule.exports = parent;\n","var parent = require('../../es/math/log2');\n\nmodule.exports = parent;\n","var parent = require('../../es/number/is-nan');\n\nmodule.exports = parent;\n","var parent = require('../../es/number/parse-float');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/define-properties');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/define-property');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/entries');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/freeze');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/get-own-property-descriptor');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/get-own-property-descriptors');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/get-own-property-symbols');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/keys');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/values');\n\nmodule.exports = parent;\n","var parent = require('../../es/promise');\n\nmodule.exports = parent;\n","var parent = require('../../es/reflect/construct');\n\nmodule.exports = parent;\n","require('../modules/web.timers');\nvar path = require('../internals/path');\n\nmodule.exports = path.setInterval;\n","require('../modules/web.timers');\nvar path = require('../internals/path');\n\nmodule.exports = path.setTimeout;\n","var parent = require('../../es/set');\n\nmodule.exports = parent;\n","var parent = require('../../es/symbol');\n\nmodule.exports = parent;\n","/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise<{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i < iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev < entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc <= arg &&\n arg <= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/** @namespace Geo */\n\n/**\n * @memberof Geo\n * @enum {Symbol}\n * @property {Symbol} DEGREE\n * @property {Symbol} KILOMETER\n * @property {Symbol} MILE\n * @property {Symbol} RADIAN\n * @readonly\n */\nconst Unit = Object.freeze({\n DEGREE: Symbol('deg'),\n KILOMETER: Symbol('km'),\n MILE: Symbol('mi'),\n RADIAN: Symbol('r')\n});\n\n/**\n * @memberof Geo\n * @enum {Symbol}\n * @property {Symbol} MERCATOR [Mercator Projection]{@link https://en.wikipedia.org/wiki/Mercator_projection} for flat maps of Earth\n * @property {Symbol} SPHERICAL Earth as a sphere, a model approximately equal to the real Earth\n * @readonly\n */\nconst Projection = Object.freeze({\n MERCATOR: Symbol('mercator'),\n SPHERICAL: Symbol('spherical')\n});\n\n/**\n * @memberof Geo\n * @constant {number}\n * @default\n */\nconst EARTH_RADIUS_MILES = 3959;\n/**\n * @memberof Geo\n * @constant {number}\n * @default\n */\nconst EARTH_RADIUS_KILOMETERS = 6371;\n\nexport {\n Unit,\n Projection,\n EARTH_RADIUS_MILES,\n EARTH_RADIUS_KILOMETERS\n};\n","import { Unit, Projection, EARTH_RADIUS_MILES, EARTH_RADIUS_KILOMETERS } from './constants.js';\n\n/**\n * An array of property names to check in a Coordinate-like object for a value of or function that evaluates to degrees latitude\n * @memberof Coordinate\n * @inner\n * @constant {string[]}\n * @default\n */\nconst LATITUDE_ALIASES = ['latitude', 'lat'];\n\n/**\n * An array of property names to check in a Coordinate-like object for a value of or function that evaluates to degrees longitude\n * @memberof Coordinate\n * @inner\n * @constant {string[]}\n * @default\n */\nconst LONGITUDE_ALIASES = ['longitude', 'lon', 'lng', 'long'];\n\n/**\n * Find a truthy or 0 value in an object, searching the given keys\n * @memberof Coordinate\n * @inner\n * @param {Object} object Object to find a value in\n * @param {string[]} keys Keys to search in object\n * @returns {*} The value found, or undefined if not found\n */\nfunction findValue(object, keys) {\n for (const key of keys) {\n if (object[key] || object[key] === 0) {\n return object[key];\n }\n }\n}\n\n/**\n * @memberof Coordinate\n * @inner\n * @param {*} value\n * @returns {number}\n * @throws Will throw an error if value cannot be converted to a number.\n */\nfunction forceNumber(value) {\n switch (typeof value) {\n case 'string':\n case 'number':\n const parsed = Number.parseFloat(value);\n if (Number.isNaN(parsed)) {\n throw new Error(`'${value}' must be convertible to a Number'`);\n }\n return parsed;\n default:\n throw new Error(`typeof '${value}' must be a number or a string that can be converted to a number, is '${typeof value}'`);\n }\n}\n\n/**\n * @memberof Coordinate\n * @inner\n * @param {number} degrees\n * @returns {number} Radians\n */\nfunction degreesToRadians(degrees) {\n return degrees * Math.PI / 180;\n}\n\n/**\n * @memberof Coordinate\n * @inner\n * @param {number} radians\n * @returns {number} Degrees\n */\nfunction radiansToDegrees(radians) {\n return radians / Math.PI * 180;\n}\n\n/**\n * Calculate distance between two points using the [Haversine Formula]{@link https://en.wikipedia.org/wiki/Haversine_formula}\n * @memberof Coordinate\n * @inner\n * @param {Coordinate} source\n * @param {Coordinate} destination\n * @returns {number}\n */\nfunction haversineDistance(source, dest) {\n const lat1Rads = degreesToRadians(source.latitude);\n const lat2Rads = degreesToRadians(dest.latitude);\n const deltaLat = lat2Rads - lat1Rads;\n const deltaLon = degreesToRadians(dest.longitude - source.longitude);\n\n const a = Math.pow(Math.sin(deltaLat / 2), 2) + Math.cos(lat1Rads) * Math.cos(lat2Rads) * Math.pow(Math.sin(deltaLon / 2), 2);\n return 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n}\n\n/**\n * Calculate the distance between two Mercator-projected latitudes in radians of longitude.\n * In Mercator Projection, visual distance between longitudes is always the same but visual distance\n * between latitudes is lowest at the equator and highest towards the poles.\n * @memberof Coordinate\n * @inner\n * @param {number} latitudeA The source latitude in degrees\n * @param {number} latitudeB The destination latitude in degrees\n * @returns {number} Distance in radians of longitude\n */\nfunction mercatorLatDistanceInRadians(latitudeA, latitudeB) {\n const aTan = Math.tan(Math.PI / 360 * (latitudeA + 90));\n const bTan = Math.tan(Math.PI / 360 * (latitudeB + 90));\n\n return Math.log(bTan / aTan);\n}\n\n/**\n * Add radians of longitude to a Mercator-projected latitude.\n * In Mercator Projection, visual distance between longitudes is always the same but visual distance\n * between latitudes is lowest at the equator and highest towards the poles.\n * @memberof Coordinate\n * @inner\n * @param {number} startingLat The source latitude in degrees\n * @param {number} radians Distance in radians of longitude\n * @returns {number} The destination latitude in degrees\n */\nfunction mercatorLatAddRadians(startingLat, radians) {\n const aTan = Math.tan(Math.PI / 360 * (startingLat + 90));\n const bTan = aTan * Math.pow(Math.E, radians);\n\n return Math.atan(bTan) * 360 / Math.PI - 90;\n}\n\n/**\n * This class represents a point on a sphere defined by latitude and longitude.\n * Latitude is a degree number in the range [-90, 90].\n * Longitude is a degree number without limits but is normalized to [-180, 180).\n */\nclass Coordinate {\n /**\n * Constructor takes either 1 or 2 arguments.\n * 2 arguments: latitude and longitude.\n * 1 argument: an object with at least one [latitude alias]{@link Coordinate~LATITUDE_ALIASES} and one one [longitude alias]{@link Coordinate~LONGITUDE_ALIASES}.\n * @param {number|Object} latitudeOrObject\n * @param {number} [longitude] Optional only if the first argument is a Coordinate-like object\n */\n constructor(latitudeOrObject, longitude) {\n let latitude = latitudeOrObject;\n\n if (typeof latitudeOrObject == 'object') {\n latitude = findValue(latitudeOrObject, LATITUDE_ALIASES);\n longitude = findValue(latitudeOrObject, LONGITUDE_ALIASES);\n\n latitude = typeof latitude == 'function' ? latitude() : latitude;\n longitude = typeof longitude == 'function' ? longitude() : longitude;\n }\n\n this.latitude = latitude;\n this.longitude = longitude;\n }\n\n /**\n * Degrees latitude in the range [-90, 90].\n * If setting a value outside this range, it will be set to -90 or 90, whichever is closer.\n * @type {number}\n */\n get latitude() {\n return this._lat;\n }\n\n /**\n * Degrees longitude in the range [-Infinity, Infinity].\n * @type {number}\n */\n get longitude() {\n return this._lon;\n }\n\n /**\n * Degrees longitude in the range [-180, 180).\n * If the coordinate's longitude is outside this range, the equivalent value within it is used.\n * Examples: 123 => 123, 270 => -90, -541 => 179\n * @type {number}\n * @readonly\n */\n get normalLon() {\n return ((this._lon + 180) % 360 + 360) % 360 - 180\n }\n\n set latitude(newLat) {\n this._lat = Math.max(-90, Math.min(forceNumber(newLat), 90));\n }\n\n set longitude(newLon) {\n this._lon = forceNumber(newLon);\n }\n\n /**\n * Add distance to the coordinate to change its position.\n * @param {number} latDist latitude distance\n * @param {number} lonDist longitude distance\n * @param {Geo.Unit} [unit=Unit.DEGREE] The unit of latDist and lonDist\n * @param {Geo.Projection} [projection=Projection.SPHERICAL] The projection of Earth (not relevant when using a physical distance unit, e.g. Mile)\n */\n add(latDist, lonDist, unit = Unit.DEGREE, projection = Projection.SPHERICAL) {\n if (projection == Projection.MERCATOR && (unit == Unit.DEGREE || unit == Unit.RADIAN)) {\n const latDistRad = unit == Unit.DEGREE ? degreesToRadians(latDist) : latDist;\n const lonDistDeg = unit == Unit.DEGREE ? lonDist : radiansToDegrees(lonDist);\n\n this.latitude = mercatorLatAddRadians(this.latitude, latDistRad);\n this.longitude += lonDistDeg;\n } else {\n switch (unit) {\n case Unit.DEGREE:\n this.latitude += latDist;\n this.longitude += lonDist;\n break;\n case Unit.KILOMETER:\n this.latitude += radiansToDegrees(latDist) * EARTH_RADIUS_KILOMETERS;\n this.longitude += radiansToDegrees(lonDist) * EARTH_RADIUS_KILOMETERS * Math.cos(degreesToRadians(this.latitude));\n break;\n case Unit.MILE:\n this.latitude += radiansToDegrees(latDist) * EARTH_RADIUS_MILES;\n this.longitude += radiansToDegrees(lonDist) * EARTH_RADIUS_MILES * Math.cos(degreesToRadians(this.latitude));\n break;\n case Unit.RADIAN:\n this.latitude += radiansToDegrees(latDist);\n this.longitude += radiansToDegrees(lonDist);\n break;\n }\n }\n }\n\n /**\n * Calculate the distance from this coordinate to another coordinate.\n * @param {Coordinate} coordinate\n * @param {Geo.Unit} [unit=Unit.MILE] The unit of distance\n * @param {Geo.Projection} [projection=Projection.SPHERICAL] The projection of Earth (not relevant when using a physical distance unit, e.g. Mile)\n * @returns {number} Distance in the requested unit\n */\n distanceTo(coordinate, unit = Unit.MILE, projection = Projection.SPHERICAL) {\n if (projection == Projection.MERCATOR && (unit == Unit.DEGREE || unit == Unit.RADIAN)) {\n const latDist = mercatorLatDistanceInRadians(this.latitude, coordinate.latitude);\n const absoluteLonDist = Math.abs(coordinate.normalLon - this.normalLon);\n const lonDist = degreesToRadians(Math.min(absoluteLonDist, 360 - absoluteLonDist));\n\n const radianDist = Math.sqrt(Math.pow(latDist, 2) + Math.pow(lonDist, 2));\n\n switch (unit) {\n case Unit.DEGREE:\n return radiansToDegrees(radianDist);\n case Unit.RADIAN:\n return radianDist;\n }\n } else {\n const radianDist = haversineDistance(this, coordinate);\n\n switch (unit) {\n case Unit.DEGREE:\n return radiansToDegrees(radianDist);\n case Unit.KILOMETER:\n return radianDist * EARTH_RADIUS_KILOMETERS;\n case Unit.MILE:\n return radianDist * EARTH_RADIUS_MILES;\n case Unit.RADIAN:\n return radianDist;\n }\n }\n }\n\n /**\n * Test if this coordinate has the same latitude and longitude as another.\n * @param {Coordinate} coordinate\n * @returns {boolean}\n */\n equals(coordinate) {\n return coordinate && coordinate.latitude === this.latitude && coordinate.longitude === this.longitude;\n }\n\n /**\n * Get the coordinate as a string that can be used in a search query.\n * Example: {latitude: -45, longitude: 123} => '-45,123'\n * @returns {string}\n */\n searchQueryString() {\n return `${this.latitude},${this.longitude}`;\n }\n}\n\nexport {\n Coordinate\n};\n","/**\n * @typedef timingFunction\n * @function\n * @param {number} t A number within [0, 1] representing the percentage of time elapsed\n * @returns {number} A number within [0, 1] representing the progress of the animation\n */\n\n/**\n * @constant {timingFunction} Timing.LINEAR\n */\nconst Timing = {\n LINEAR: t => t\n}\n\n/**\n * @param {HTMLElement} el The element to scroll\n * @param {number} scrollDist The number of pixels to scroll vertically\n * @param {number} duration The duration in miliseconds\n * @param {Object} [options={}]\n * @param {number} [intervalLength=10] Number of miliseconds between scroll position updates\n * @param {function} [timing=Timing.LINEAR] Timing function used for scroll animation\n */\nfunction smoothScroll(el, scrollDist, duration, {\n intervalLength = 10,\n timing = Timing.LINEAR\n} = {}) {\n const scrollTop = el.scrollTop;\n let timeElapsed = 0;\n\n const interval = setInterval(() => {\n timeElapsed += intervalLength;\n el.scrollTop = scrollTop + scrollDist * timing(timeElapsed / duration);\n\n if (timeElapsed > duration) {\n clearInterval(interval);\n el.scrollTop = scrollTop + scrollDist;\n }\n }, intervalLength);\n}\n\nexport {\n Timing,\n smoothScroll\n};\n","/**\n * Insert stylesheet link element into HTML from provided src url\n * @param {string} url\n */\nfunction LoadCSS(url) {\n const style = document.createElement('link');\n\n style.href = url;\n style.rel = 'stylesheet';\n style.type = 'text/css';\n\n document.head.appendChild(style);\n}\n\n/**\n * Insert script element into HTML from provided src url\n * @param {string} src\n * @param {function} [cb] Function that runs on script load\n */\nfunction LoadScript(src, cb = () => {}) {\n const script = document.createElement('script');\n\n script.async = true;\n script.onload = cb;\n script.src = src;\n\n document.head.appendChild(script);\n}\n\nexport {\n LoadCSS,\n LoadScript\n};\n","const Type = {\n UNDEFINED: 'undefined',\n NULL: 'object', // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/typeof#null\n BOOLEAN: 'boolean',\n NUMBER: 'number',\n BIGINT: 'bigint',\n STRING: 'string',\n SYMBOL: 'symbol',\n FUNCTION: 'function',\n OBJECT: 'object'\n}\n\nfunction assertType(object, type) {\n if (typeof type != 'string') {\n throw new Error('Assertion error: \\'type\\' must be a string');\n }\n\n if (typeof object !== type) {\n throw new Error(`Expected an object of type '${type}' but received '${typeof object}'`)\n }\n}\n\nfunction assertInstance(object, instanceClass) {\n let isInstance;\n\n try {\n isInstance = object instanceof instanceClass;\n } catch(err) {\n throw new Error('Assertion error: \\'instanceClass\\' is not a valid constructor');\n }\n\n if (!isInstance) {\n throw new Error(`Expected an instance of '${instanceClass.name}' but received '${object.constructor.name}'`);\n }\n}\n\nexport {\n Type,\n assertType,\n assertInstance\n}\n","import { Type, assertType, assertInstance } from '../Util/Assertions.js';\nimport { MapProvider } from './MapProvider.js';\n\n/**\n * {@link ProviderMap} options class\n */\nclass ProviderMapOptions {\n /**\n * @param {MapProvider} provider\n * @param {HTMLElement} wrapper The wrapper element that the map will be inserted into\n */\n constructor(provider, wrapper) {\n assertInstance(provider, MapProvider);\n assertInstance(wrapper, HTMLElement);\n\n this.providerMapClass = provider.getMapClass();\n this.wrapper = wrapper;\n\n this.controlEnabled = true;\n this.panHandler = () => {};\n this.panStartHandler = () => {};\n this.dragEndHandler = () => {};\n this.zoomChangedHandler = () => {};\n this.zoomEndHandler = () => {};\n this.canvasClickHandler = () => {};\n this.providerOptions = {};\n this.locale = 'en';\n }\n\n /**\n * @param {string} locale The locale used in map\n */\n withLocale(locale) {\n this.locale = locale;\n return this;\n }\n\n /**\n * @param {boolean} controlEnabled Whether the user can interact with the map\n * @returns {ProviderMapOptions}\n */\n withControlEnabled(controlEnabled) {\n this.controlEnabled = controlEnabled;\n return this;\n }\n\n /**\n * @typedef ProviderMap~panHandler\n * @function\n */\n\n /**\n * @param {ProviderMap~panHandler} panHandler Function called after the map bounds change\n * @returns {ProviderMapOptions}\n */\n withPanHandler(panHandler) {\n assertType(panHandler, Type.FUNCTION);\n\n this.panHandler = panHandler;\n return this;\n }\n\n /**\n * @typedef ProviderMap~panStartHandler\n * @function\n */\n\n /**\n * @param {ProviderMap~panStartHandler} panStartHandler Function called before the map bounds change\n * @returns {ProviderMapOptions}\n */\n withPanStartHandler(panStartHandler) {\n assertType(panStartHandler, Type.FUNCTION);\n\n this.panStartHandler = panStartHandler;\n return this;\n }\n\n /**\n * @typedef ProviderMap~dragEndHandler\n * @function\n */\n\n /**\n * @param {ProviderMap~dragEndHandler} dragEndHandler Function called after the map is dragged\n * @returns {ProviderMapOptions}\n */\n withDragEndHandler(dragEndHandler) {\n assertType(dragEndHandler, Type.FUNCTION);\n\n this.dragEndHandler = dragEndHandler;\n return this;\n }\n\n /**\n * @typedef ProviderMap~zoomChangedHandler\n * @function\n */\n\n /**\n * @param {ProviderMap~zoomChangedHandler} zoomChangedHandler Function called when the map starts a zoom change\n * @returns {ProviderMapOptions}\n */\n withZoomChangedHandler(zoomChangedHandler) {\n assertType(zoomChangedHandler, Type.FUNCTION);\n\n this.zoomChangedHandler = zoomChangedHandler;\n return this;\n }\n\n /**\n * @typedef ProviderMap~zoomEndHandler\n * @function\n */\n\n /**\n * @param {ProviderMap~zoomEndHandler} zoomEndHandler Function called when the map ends a zoom change\n * @returns {ProviderMapOptions}\n */\n withZoomEndHandler(zoomEndHandler) {\n assertType(zoomEndHandler, Type.FUNCTION);\n\n this.zoomEndHandler = zoomEndHandler;\n return this;\n }\n\n /**\n * @typedef ProviderMap~canvasClickHandler\n * @function\n */\n\n /**\n * @param {ProviderMap~canvasClickHandler} canvasClickHandler Function called when the map ends a zoom change\n * @returns {ProviderMapOptions}\n */\n withCanvasClickHandler(canvasClickHandler) {\n assertType(canvasClickHandler, Type.FUNCTION);\n\n this.canvasClickHandler = canvasClickHandler;\n return this;\n }\n\n /**\n * @param {Object} providerOptions A free-form object used to set any additional provider-specific options, usually by passing the object to the map's constructor\n * @returns {ProviderMapOptions}\n */\n withProviderOptions(providerOptions) {\n this.providerOptions = providerOptions;\n return this;\n }\n\n /**\n * @returns {ProviderMap} An instance of a subclass of {@link ProviderMap} for the given {@link MapProvider}\n */\n build() {\n const providerMapClass = this.providerMapClass;\n return new providerMapClass(this);\n }\n}\n\n/**\n * This class is an interface that should be implemented for each map provider, such as Google Maps.\n * It is used as an API for a {@link Map} to control a provider-specific map instance.\n * Ideally, this class should have minimal functionality so that adding a new provider is easy and\n * behavior is as consistent as possible across all providers.\n * @interface\n */\nclass ProviderMap {\n /**\n * The constructor creates a map instance using the provider's API and initializes it with all the\n * given options. See {@link ProviderMapOptions} for the supported options.\n * @param {ProviderMapOptions} options\n */\n constructor(options) {\n assertInstance(options, ProviderMapOptions);\n\n // When implementing a new MapProvider, call _panStartHandler when the map viewport starts\n // changing, and call _panHandler when it stops.\n this._panHandler = options.panHandler;\n this._panStartHandler = options.panStartHandler;\n this._dragEndHandler = options.dragEndHandler;\n this._zoomChangedHandler = options.zoomChangedHandler;\n this._zoomEndHandler = options.zoomEndHandler;\n this._canvasClickHandler = options.canvasClickHandler;\n }\n\n /**\n * @returns {Coordinate} The current center of the map\n */\n getCenter() {\n throw new Error('not implemented');\n }\n\n /**\n * Zoom level complies with the specifications in {@link Map#getZoom}\n * @returns {number} The current zoom level of the map\n */\n getZoom() {\n throw new Error('not implemented');\n }\n\n /**\n * @param {Coordinate} coordinate The new center for the map\n * @param {boolean} animated Whether to transition smoothly to the new center\n */\n setCenter(coordinate, animated) {\n throw new Error('not implemented');\n }\n\n /**\n * Zoom level complies with the specifications in {@link Map#getZoom}\n * @param {number} zoom The new zoom level for the map\n * @param {boolean} animated Whether to transition smoothly to the new zoom\n */\n setZoom(zoom, animated) {\n throw new Error('not implemented');\n }\n\n /**\n * @param {number} zoom\n * @param {Object} center Must be convertible to {@link Coordinate}\n * @param {boolean} animated Whether to transition smoothly to the new bounds\n * @see {@link ProviderMap#setZoom}\n * @see {@link ProviderMap#setCenter}\n */\n setZoomCenter(zoom, center, animated) {\n // This method doesn't need to be implemented for each provider,\n // but it can be overridden if this default function doesn't work.\n this.setZoom(zoom, animated);\n this.setCenter(center, animated);\n }\n}\n\nexport {\n ProviderMapOptions,\n ProviderMap\n};\n","import { Type, assertType, assertInstance } from '../Util/Assertions.js';\nimport { MapProvider } from './MapProvider.js';\n\n/**\n * {@link ProviderPin} options class\n */\nclass ProviderPinOptions {\n /**\n * @param {MapProvider} provider\n */\n constructor(provider) {\n assertInstance(provider, MapProvider);\n\n this.providerPinClass = provider.getPinClass();\n\n this.clickHandler = () => {};\n this.focusHandler = focused => {};\n this.hoverHandler = hovered => {};\n this.icons = {};\n }\n\n /**\n * @typedef ProviderPin~clickHandler\n * @function\n */\n\n /**\n * @param {ProviderPin~clickHandler} clickHandler Function called when the pin is clicked\n * @returns {ProviderPinOptions}\n */\n withClickHandler(clickHandler) {\n assertType(clickHandler, Type.FUNCTION);\n\n this.clickHandler = clickHandler;\n return this;\n }\n\n /**\n * @typedef ProviderPin~focusHandler\n * @function\n * @param {boolean} focused Whether the pin is currently focused\n */\n\n /**\n * @param {ProviderPin~focusHandler} focusHandler Function called when the pin becomes (un)focused\n * @returns {ProviderPinOptions}\n */\n withFocusHandler(focusHandler) {\n assertType(focusHandler, Type.FUNCTION);\n\n this.focusHandler = focusHandler;\n return this;\n }\n\n /**\n * @typedef ProviderPin~hoverHandler\n * @function\n * @param {boolean} hovered Whether the pin is currently hovered\n */\n\n /**\n * @param {ProviderPin~hoverHandler} hoverHandler Function called when the pin becomes (un)hovered\n * @returns {ProviderPinOptions}\n */\n withHoverHandler(hoverHandler) {\n assertType(hoverHandler, Type.FUNCTION);\n\n this.hoverHandler = hoverHandler;\n return this;\n }\n\n /**\n * Similar to {@link MapPinOptions#withIcon}, but all icons are given as a map of key => icon.\n * If a provider pin instance needs an icon to be a specialized class rather than a simple URL,\n * the icons in this object can be converted in this function and assigned back to the icons object\n * instead of being recreated from the URL every time the pin's icon changes.\n * @param {Object} icons Map of a string key to the URL or data URI of the icon image\n * @returns {ProviderPinOptions}\n */\n withIcons(icons) {\n this.icons = icons;\n return this;\n }\n\n /**\n * @returns {ProviderPin} An instance of a subclass of {@link ProviderPin} for the given {@link MapProvider}\n */\n build() {\n const providerPinClass = this.providerPinClass;\n return new providerPinClass(this);\n }\n}\n\n/**\n * This class is an interface that should be implemented for each map provider, such as Google Maps.\n * It is used as an API for a {@link MapPin} to control a provider-specific pin instance.\n * Ideally, this class should have minimal functionality so that adding a new provider is easy and\n * behavior is as consistent as possible across all providers.\n * @interface\n */\nclass ProviderPin {\n /**\n * The constructor creates a pin instance using the provider's API and initializes it with all the\n * given options. See {@link ProviderPinOptions} for the supported options.\n * @param {ProviderPinOptions} options\n */\n constructor(options) {\n assertInstance(options, ProviderPinOptions);\n\n this._clickHandler = options.clickHandler;\n this._focusHandler = options.focusHandler;\n this._hoverHandler = options.hoverHandler;\n this._icons = options.icons;\n }\n\n /**\n * @param {Coordinate} coordinate The position of the pin\n */\n setCoordinate(coordinate) {\n throw new Error('not implemented');\n }\n\n /**\n * Remove the pin from its current map and, if themeMap is not null, add it to the new map.\n * @param {?Map} themeMap The new map -- if null, the pin will not be shown on any map\n * @param {?Map} currentMap The current map -- if null, the pin is not shown on any map\n */\n setMap(themeMap, currentMap) {\n throw new Error('not implemented');\n }\n\n /**\n * Apply the given properties to modify the appearance of the pin.\n * @param {PinProperties} pinProperties\n * @see {@link PinProperties}\n */\n setProperties(pinProperties) {\n throw new Error('not implemented');\n }\n}\n\nexport {\n ProviderPinOptions,\n ProviderPin\n};\n","import { Type, assertType, assertInstance } from '../Util/Assertions.js';\nimport { ProviderMapOptions, ProviderMap } from './ProviderMap';\nimport { ProviderPinOptions, ProviderPin } from './ProviderPin';\n\n/**\n * {@link MapProvider} options class\n */\nclass MapProviderOptions {\n constructor() {\n this.loadFunction = (resolve, reject, apiKey, options) => resolve();\n this.formatLocaleFunction = (locale) => locale;\n this.mapClass = ProviderMap;\n this.pinClass = ProviderPin;\n this.providerName = '';\n this.supportedLocales = [];\n }\n\n /**\n * @typedef MapProvider~loadFunction\n * @function\n * @param {function} resolve Callback with no arguments called when the load finishes successfully\n * @param {function} reject Callback with no arguments called when the load fails\n * @param {string} [apiKey] Provider API key\n * @param {Object} [options={}] Additional provider-specific options\n */\n\n /**\n * @param {MapProvider~loadFunction}\n * @returns {MapProviderOptions}\n */\n withLoadFunction(loadFunction) {\n assertType(loadFunction, Type.FUNCTION);\n\n this.loadFunction = loadFunction;\n return this;\n }\n\n /**\n * @param {MapProvider~formatLocaleFunction}\n * @returns {MapProviderOptions}\n */\n withFormatLocaleFunction(formatLocaleFunction) {\n assertType(formatLocaleFunction, Type.FUNCTION);\n\n this.formatLocaleFunction = formatLocaleFunction;\n return this;\n }\n\n /**\n * @param {Class.} mapClass Subclass of {@link ProviderMap} for the provider\n * @returns {MapProviderOptions}\n */\n withMapClass(mapClass) {\n this.mapClass = mapClass;\n return this;\n }\n\n /**\n * @param {Class.} mapClass Subclass of {@link ProviderPin} for the provider\n * @returns {MapProviderOptions}\n */\n withPinClass(pinClass) {\n this.pinClass = pinClass;\n return this;\n }\n\n /**\n * @param {string} providerName Name of the map provider\n * @returns {MapProviderOptions}\n */\n withProviderName(providerName) {\n this.providerName = providerName;\n return this;\n }\n\n /**\n * @param {string[]} supportedLocales The locales supported by the provider\n * @returns {MapProviderOptions}\n */\n withSupportedLocales(supportedLocales) {\n this.supportedLocales = supportedLocales;\n return this;\n }\n\n /**\n * @returns {MapProvider}\n */\n build() {\n return new MapProvider(this);\n }\n}\n\n/**\n * This class is used for loading the API for a map provider such as Google Maps and creating {@link ProviderMap} and {@link ProviderPin} instances.\n * Provider map implementations return an instance of this class for their provider that you can use\n * to load the API and pass in to {@link MapOptions} and {@link MapPinOptions} objects as the provider.\n * Example using GoogleMaps, an instance of this class:\n * GoogleMaps.load().then(() => map = new MapOptions().withProvider(GoogleMaps).build());\n */\nclass MapProvider {\n /**\n * @param {MapProviderOptions} options\n */\n constructor(options) {\n assertInstance(options, MapProviderOptions);\n\n this._loadFunction = options.loadFunction;\n this._formatLocaleFunction = options.formatLocaleFunction;\n this._mapClass = options.mapClass;\n this._pinClass = options.pinClass;\n this._providerName = options.providerName;\n this._supportedLocales = options.supportedLocales;\n\n this._loadPromise = new Promise((resolve, reject) => {\n this._resolveLoad = resolve;\n this._rejectLoad = reject;\n });\n\n this._loadInvoked = false;\n this._loaded = false;\n }\n\n /**\n * Returns true if the map provider has been successfully loaded\n * @type {boolean}\n */\n get loaded() {\n return this._loaded;\n }\n\n /**\n * @returns {ProviderMap.constructor}\n * @see {@link MapProviderOptions#withMapClass}\n */\n getMapClass() {\n return this._mapClass;\n }\n\n /**\n * @returns {ProviderPin.constructor}\n * @see {@link MapProviderOptions#withPinClass}\n */\n getPinClass() {\n return this._pinClass;\n }\n\n /**\n * @returns {string}\n * @see {@link MapProviderOptions#withProviderName}\n */\n getProviderName() {\n return this._providerName;\n }\n\n /**\n * @returns {string[]}\n * @see {@link MapProviderOptions#withSupportedLocales}\n */\n getSupportedLocales() {\n return this._supportedLocales;\n }\n\n /**\n * Call {@link MapPinOptions~loadFunction} and resolve or reject when loading succeeds or fails\n * @async\n * @param {string} [apiKey] Provider API key\n * @param {Object} [options={}] Additional provider-specific options\n */\n async load(apiKey, options = {}) {\n if (!this._loadInvoked) {\n this._loadInvoked = true;\n this._loadFunction(this._resolveLoad, this._rejectLoad, apiKey, options);\n }\n\n await this.ready();\n this._loaded = true;\n }\n\n /**\n * Call {@link MapProviderOptions~formatLocaleFunction}\n * @param {string} locale The user-defined locale string\n * @returns {string} formatted locale string\n */\n formatLocale(locale) {\n return this._formatLocaleFunction(locale);\n }\n\n /**\n * Resolves or rejects when the map provider has loaded successfully or unsuccessfully\n * @async\n */\n async ready() {\n await this._loadPromise;\n }\n}\n\nexport {\n MapProviderOptions,\n MapProvider\n}\n","/**\n * Returns true if the value is either the boolean value\n * 'true' or a string representation of 'true'\n * \n * @param {string|boolean} value\n * @returns {boolean}\n */\nexport function canonicalizeBoolean (value) {\n if (typeof value === 'string') {\n return value.toLowerCase() === 'true';\n } else if (typeof value === 'boolean') {\n return value;\n } else {\n return false;\n }\n}\n\n/**\n * Parses a locale code into its constituent parts.\n * Performs case formatting on the result.\n * \n * @param {string} localeCode \n * @returns { language: string, modifier?: string, region?: string } \n */\nexport function parseLocale(localeCode) {\n const localeCodeSections = localeCode.replace(/-/g, '_').split('_');\n const language = localeCodeSections[0].toLowerCase();\n const parseModifierAndRegion = () => {\n const numSections = localeCodeSections.length;\n if (numSections === 1) {\n return {};\n } else if (numSections === 2 && language === 'zh') {\n const ambiguous = localeCodeSections[1].toLowerCase();\n if (['hans', 'hant'].includes(ambiguous)) {\n return { modifier: ambiguous };\n } else {\n return { region: ambiguous };\n }\n } else if (numSections === 2) {\n return { region: localeCodeSections[1] };\n } else if (numSections === 3) {\n return {\n modifier: localeCodeSections[1],\n region: localeCodeSections[2]\n };\n } else if (numSections > 3) {\n console.error(\n `Encountered unsupported locale \"${localeCode}\", ` +\n `with ${numSections} sections.`);\n return {};\n }\n }\n const capitalizeFirstLetterOnly = raw => {\n return raw.charAt(0).toUpperCase() + raw.slice(1).toLowerCase();\n }\n const parsedLocale = {\n language,\n ...parseModifierAndRegion()\n };\n\n if (parsedLocale.modifier) {\n parsedLocale.modifier = capitalizeFirstLetterOnly(parsedLocale.modifier);\n }\n if (parsedLocale.region) {\n parsedLocale.region = parsedLocale.region.toUpperCase();\n }\n\n return parsedLocale;\n}\n","/** @module Maps/Providers/Google */\n\nimport { Coordinate } from '../../Geo/Coordinate.js';\nimport { LoadScript } from '../../Performance/LoadContent.js';\nimport { MapProviderOptions } from '../MapProvider.js';\nimport { ProviderMap } from '../ProviderMap.js';\nimport { ProviderPin } from '../ProviderPin.js';\nimport { debounce } from '../../Util/helpers';\nimport isRTL from '../../../../common/rtl';\nimport { parseLocale } from '../../../utils.js';\n/**\n * @static\n * @enum {string}\n */\nconst Library = {\n PLACES: 'places'\n};\n\n// Map Class\n\n/**\n * @implements {ProviderMap}\n */\nclass GoogleMap extends ProviderMap {\n /**\n * @param {ProviderMapOptions} options\n */\n constructor(options) {\n super(options);\n\n const zoomControlPosition = isRTL(options.locale) \n ? google.maps.ControlPosition.LEFT_TOP \n : google.maps.ControlPosition.RIGHT_TOP;\n\n this.map = new google.maps.Map(options.wrapper, {\n disableDefaultUI: !options.controlEnabled,\n fullscreenControl: false,\n gestureHandling: options.controlEnabled ? 'auto' : 'none',\n mapTypeControl: false,\n rotateControl: false,\n scaleControl: false,\n streetViewControl: false,\n zoomControl: options.controlEnabled,\n zoomControlOptions: {\n position: zoomControlPosition\n },\n ...options.providerOptions\n });\n\n // Google getZoom only gives integer zoom, so we have to keep track otherwise.\n this._currentZoom = null;\n this._zoomValid = true;\n this._zoomChangeListener = null;\n\n this._moving = false;\n\n const debouncedIdleEvent = debounce(() => {\n this._moving = false;\n this._panHandler();\n }, 100);\n\n google.maps.event.addListener(this.map, 'bounds_changed', () => {\n if (!this._moving) {\n this._moving = true;\n this._panStartHandler();\n } else {\n debouncedIdleEvent();\n }\n });\n google.maps.event.addListener(this.map, 'idle', debouncedIdleEvent);\n google.maps.event.addListener(this.map, 'dragend', () => {\n this._dragEndHandler();\n });\n google.maps.event.addListener(this.map, 'zoom_changed', () => {\n this._zoomChangedHandler();\n google.maps.event.addListenerOnce(this.map, 'idle', () => {\n this._zoomEndHandler();\n });\n });\n google.maps.event.addListener(this.map, 'click', () => {\n this._canvasClickHandler();\n });\n }\n\n getCenter() {\n return new Coordinate(this.map.getCenter());\n }\n\n getZoom() {\n return this._zoomValid ? this.map.getZoom() : this._currentZoom;\n }\n\n setCenter(coordinate, animated) {\n const latLng = new google.maps.LatLng(coordinate.latitude, coordinate.longitude);\n\n if (animated) {\n this.map.panTo(latLng)\n } else {\n this.map.setCenter(latLng);\n }\n }\n\n setZoom(z, animated) {\n const zoom = Math.floor(z); // Floor to avoid snapping\n this.map.setZoom(zoom);\n }\n\n setZoomCenter(zoom, center, animated = false) {\n this.setCenter(center, animated);\n this.setZoom(zoom, animated);\n }\n}\n\n// Pin Class\n\n/**\n * @implements {ProviderPin}\n * @todo GENERATOR TODO Full HTML pin support\n */\nclass GooglePin extends ProviderPin {\n /**\n * @param {ProviderPinOptions} options\n */\n constructor(options) {\n super(options);\n\n this.pin = new google.maps.Marker({\n optimized: false // For IE <= 11 compat\n });\n\n google.maps.event.addListener(this.pin, 'click', () => this._clickHandler());\n google.maps.event.addListener(this.pin, 'mouseover', () => this._hoverHandler(true));\n google.maps.event.addListener(this.pin, 'mouseout', () => this._hoverHandler(false));\n // GENERATOR TODO focus handler (if possible)\n }\n\n setCoordinate(coordinate) {\n this.pin.setPosition(new google.maps.LatLng(coordinate.latitude, coordinate.longitude));\n }\n\n setMap(themeMap, currentMap) {\n this.pin.setMap(themeMap ? themeMap.getProviderMap().map : null);\n }\n\n setProperties(pinProperties) {\n const anchorX = pinProperties.getAnchorX();\n const anchorY = pinProperties.getAnchorY();\n const height = pinProperties.getHeight();\n const icon = this._icons[pinProperties.getIcon()];\n const width = pinProperties.getWidth();\n const zIndex = pinProperties.getZIndex();\n\n const options = { zIndex };\n\n if (icon) {\n options.icon = {\n anchor: new google.maps.Point(anchorX * width, anchorY * height),\n scaledSize: new google.maps.Size(width, height),\n url: this._icons[pinProperties.getIcon()]\n }\n }\n\n this.pin.setOptions(options);\n }\n}\n\n// Load Function\n\n// Random token obtained from `echo GoogleMapsCallbackYext | md5 | cut -c -8`\nconst globalCallback = 'GoogleMapsCallback_b7d77ff2';\nconst yextClient = 'gme-yextinc';\nconst baseUrl = 'https://maps.googleapis.com/maps/api/js';\n\n/**\n * This function is called when calling {@link MapProvider#load} on {@link module:Maps/Providers/Google.GoogleMaps}.\n * @param {function} resolve Callback with no arguments called when the load finishes successfully\n * @param {function} reject Callback with no arguments called when the load fails\n * @param {?string} apiKey Provider API key\n * @param {Object} options Additional provider-specific options\n * @param {boolean} [options.autocomplete=false] Whether to include Google's autocomplete API\n * @param {string} [options.channel=window.location.hostname] API key usage channel\n * @param {string} [options.client] Google API enterprise client\n * @param {string} [options.language] Language of the map\n * @param {module:Maps/Providers/Google.Library[]} [options.libraries=[]] Additional Google libraries to load\n * @param {Object} [options.params={}] Additional API params\n * @see {MapProvider~loadFunction}\n */\nfunction load(resolve, reject, apiKey, {\n autocomplete = false,\n channel = window.location.hostname,\n client,\n language,\n libraries = [],\n params = {}\n}) {\n window[globalCallback] = resolve;\n\n if (autocomplete) {\n libraries.push(Library.PLACES);\n }\n\n const apiParams = {\n callback: globalCallback,\n channel,\n language,\n libraries: libraries.join(','),\n ...params\n };\n\n if (apiKey) {\n apiParams.key = apiKey;\n }\n\n if (client) {\n apiParams.client = client;\n } else if (!apiKey) {\n apiParams.client = yextClient;\n }\n\n LoadScript(baseUrl + '?' + Object.entries(apiParams).map(([key, value]) => key + '=' + value).join('&'));\n}\n\nfunction formatLocale(locale) {\n const { language, modifier, region } = parseLocale(locale);\n let formattedLocaleStr = modifier ? `${language}-${modifier}` : language;\n if (region) {\n formattedLocaleStr = `${language}-${region}`;\n } else if (modifier === 'Hant') {\n formattedLocaleStr = `${language}-TW`;\n } else if (modifier === 'Hans') {\n formattedLocaleStr = `${language}-CN`;\n }\n return formattedLocaleStr;\n}\n\n// Exports\n\n/**\n * @static\n * @type {MapProvider}\n */\nconst GoogleMaps = new MapProviderOptions()\n .withSupportedLocales(['zh-CN', 'zh-HK', 'zh-TW', 'en-AU', 'en-GB', 'fr-CA', 'pt-BR', 'pt-PT', 'es-419'])\n .withLoadFunction(load)\n .withFormatLocaleFunction(formatLocale)\n .withMapClass(GoogleMap)\n .withPinClass(GooglePin)\n .withProviderName('Google')\n .build();\n\nexport {\n GoogleMaps,\n Library\n};\n","/**\n * a Promise wrapper class that exposes resolve() and reject() so its state can\n * be defer and settle outside of a promise constructor. It carries over some\n * main methods of Promise, which invoke the corresponding methods bound to the\n * inner promise created in this class.\n */\nexport default class DeferredPromise {\n constructor(stateHandler = null) {\n this._promise = new Promise((resolve, reject) => {\n this.resolve = resolve;\n this.reject = reject;\n \n if (stateHandler) {\n stateHandler(resolve, reject);\n }\n });\n \n this.then = Promise.prototype.then.bind(this._promise);\n this.catch = Promise.prototype.catch.bind(this._promise);\n this.finally = Promise.prototype.finally.bind(this._promise);\n }\n}\n","/** @module Maps/Providers/Mapbox */\n\nimport DeferredPromise from '../../../deferred-promise.js';\nimport { Coordinate } from '../../Geo/Coordinate.js';\nimport { MapProviderOptions } from '../MapProvider.js';\nimport { ProviderMap } from '../ProviderMap.js';\nimport { ProviderPin } from '../ProviderPin.js';\nimport isRTL from '../../../../common/rtl';\nimport { parseLocale } from '../../../utils.js';\n\n// TODO (jronkin) call map resize method when hidden/shown (CoreBev, used to be done in Core.js)\n\n// Map Class\n\n/**\n * @implements {ProviderMap}\n */\nclass MapboxMap extends ProviderMap {\n /**\n * @param {ProviderMapOptions} options\n */\n constructor(options) {\n super(options);\n\n this.map = new mapboxgl.Map({\n container: options.wrapper,\n interactive: options.controlEnabled,\n style: 'mapbox://styles/mapbox/streets-v9',\n ...options.providerOptions\n });\n\n this.map.addControl(new MapboxLanguage({\n defaultLanguage: options.locale\n }));\n\n // Add the zoom control\n if (options.controlEnabled) {\n const zoomControl = new mapboxgl.NavigationControl({showCompass: false})\n isRTL(options.locale)\n ? this.map.addControl(zoomControl, 'top-left') \n : this.map.addControl(zoomControl);\n }\n\n this.map.on('movestart', () => this._panStartHandler());\n this.map.on('moveend', () => this._panHandler());\n this.map.on('dragend', () => this._dragEndHandler());\n this.map.on('zoomstart', () => this._zoomChangedHandler());\n this.map.on('zoomend', () => this._zoomEndHandler());\n this.map.on('click', (e) => {\n if (e.originalEvent.target.nodeName === 'CANVAS') {\n this._canvasClickHandler();\n }\n });\n }\n\n getCenter() {\n return new Coordinate(this.map.getCenter());\n }\n\n getZoom() {\n // Our standard zoom: at level 0, the world is 256 pixels wide and doubles each level\n // Mapbox zoom: at level 0, the world is 512 pixels wide and doubles each level\n return this.map.getZoom() + 1;\n }\n\n setCenter(coordinate, animated) {\n const center = new mapboxgl.LngLat(coordinate.longitude, coordinate.latitude);\n\n if (animated) {\n this.map.panTo(center);\n } else {\n this.map.setCenter(center);\n }\n }\n\n setZoom(zoom, animated) {\n // Our standard zoom: at level 0, the world is 256 pixels wide and doubles each level\n // Mapbox zoom: at level 0, the world is 512 pixels wide and doubles each level\n if (animated) {\n this.map.zoomTo(zoom - 1);\n } else {\n this.map.setZoom(zoom - 1);\n }\n }\n\n setZoomCenter(zoom, coordinate, animated) {\n const center = new mapboxgl.LngLat(coordinate.longitude, coordinate.latitude);\n\n // Our standard zoom: at level 0, the world is 256 pixels wide and doubles each level\n // Mapbox zoom: at level 0, the world is 512 pixels wide and doubles each level\n this.map[animated ? 'easeTo' : 'jumpTo']({ center, zoom: zoom - 1 });\n }\n}\n\n// Pin Class\n\n/**\n * @implements {ProviderPin}\n */\nclass MapboxPin extends ProviderPin {\n /**\n * @param {ProviderPinOptions} options\n */\n constructor(options) {\n super(options);\n\n this._pinEl = document.createElement('button');\n this._pinEl.style.backgroundSize = 'contain';\n this._pinEl.style.backgroundRepeat = 'no-repeat';\n this._pinEl.style.position = 'absolute';\n this._pinEl.style.top = '0';\n this._pinEl.style.left = '0';\n\n this._pinAlt = document.createElement('span');\n this._pinAlt.classList.add('sr-only');\n this._pinEl.appendChild(this._pinAlt);\n\n this._wrapper = document.createElement('div');\n this._wrapper.appendChild(this._pinEl);\n this._wrapper.style.position = 'absolute';\n\n this.pin = new mapboxgl.Marker({\n element: this._wrapper\n });\n\n this._wrapper.addEventListener('click', () => this._clickHandler());\n this._wrapper.addEventListener('focusin', () => this._focusHandler(true));\n this._wrapper.addEventListener('focusout', () => this._focusHandler(false));\n this._wrapper.addEventListener('mouseover', () => this._hoverHandler(true));\n this._wrapper.addEventListener('mouseout', () => this._hoverHandler(false));\n }\n\n setCoordinate(coordinate) {\n this.pin.setLngLat(new mapboxgl.LngLat(coordinate.longitude, coordinate.latitude));\n }\n\n setMap(themeMap, currentMap) {\n if (themeMap) {\n this.pin.addTo(themeMap.getProviderMap().map);\n } else {\n this.pin.remove();\n }\n }\n\n setProperties(pinProperties) {\n const anchorX = pinProperties.getAnchorX();\n const anchorY = pinProperties.getAnchorY();\n const className = pinProperties.getClass();\n const element = pinProperties.getElement() || this._pinEl;\n const height = pinProperties.getHeight();\n const icon = this._icons[pinProperties.getIcon()];\n const srText = pinProperties.getSRText();\n const width = pinProperties.getWidth();\n const zIndex = pinProperties.getZIndex();\n\n this._pinEl.style.backgroundImage = icon ? `url(\"${icon}\")` : '';\n this._pinEl.style.height = height + 'px';\n this._pinEl.style.transform = `translate(${-100 * anchorX}%,${-100 * anchorY}%)`;\n this._pinEl.style.width = width + 'px';\n\n this._pinAlt.innerText = srText;\n\n this._wrapper.style.zIndex = zIndex;\n this._wrapper.setAttribute('class', className);\n\n if (element != this._wrapper.children[0]) {\n this._wrapper.removeChild(this._wrapper.children[0]);\n this._wrapper.appendChild(element);\n }\n }\n}\n\n// Load Function\n\nconst yextAPIKey = 'pk.eyJ1IjoieWV4dCIsImEiOiJqNzVybUhnIn0.hTOO5A1yqfpN42-_z_GuLw';\n\n/**\n * This function is called when calling {@link MapProvider#load} on {@link module:Maps/Providers/Mapbox.MapboxMaps}.\n * @param {function} resolve Callback with no arguments called when the load finishes successfully\n * @param {function} reject Callback with no arguments called when the load fails\n * @param {?string} apiKey Provider API key\n * @param {Object} options Additional provider-specific options\n * @param {string} [options.version='v1.6.1'] API version\n * @see {MapProvider~loadFunction}\n */\nfunction load(resolve, reject, apiKey, {\n version = 'v1.13.1'\n}) {\n const baseUrl = `https://api.mapbox.com/mapbox-gl-js/${version}/mapbox-gl`;\n\n const mapStyle = document.createElement('link');\n mapStyle.rel = 'stylesheet';\n mapStyle.href = baseUrl + '.css';\n\n const mapLanguageScript = document.createElement('script');\n mapLanguageScript.src = 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-language/v0.10.1/mapbox-gl-language.js';\n const mapLanguageScriptPromise = new DeferredPromise();\n mapLanguageScript.onload = () => {\n mapLanguageScriptPromise.resolve();\n };\n\n const mapScript = document.createElement('script');\n mapScript.src = baseUrl + '.js';\n const mapScriptPromise = new DeferredPromise();\n mapScript.onload = () => {\n mapboxgl.accessToken = apiKey || yextAPIKey;\n mapboxgl.setRTLTextPlugin(\n 'https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js',\n null,\n true // Lazy load the plugin\n ); \n mapScriptPromise.resolve();\n };\n\n Promise.all([mapScriptPromise, mapLanguageScriptPromise]).then(() => resolve());\n\n document.head.appendChild(mapStyle);\n document.head.appendChild(mapLanguageScript);\n document.head.appendChild(mapScript);\n}\n\nfunction formatLocale(locale) {\n const { language, modifier } = parseLocale(locale);\n return modifier ? `${language}-${modifier}` : language;\n}\n\n// Exports\n\n/**\n * @static\n * @type {MapProvider}\n */\nconst MapboxMaps = new MapProviderOptions()\n .withSupportedLocales(['zh-Hans', 'zh-Hant'])\n .withLoadFunction(load)\n .withFormatLocaleFunction(formatLocale)\n .withMapClass(MapboxMap)\n .withPinClass(MapboxPin)\n .withProviderName('Mapbox')\n .build();\n\nexport {\n MapboxMaps\n};\n","import { GoogleMaps } from '../Maps/Providers/Google.js';\nimport { MapboxMaps } from '../Maps/Providers/Mapbox.js';\nimport { parseLocale } from '../../utils.js';\n\n/**\n * Gets the language locale according to user-specified locale to the component.\n * If language code is not 2 character, default to en. If map provider doesn't\n * support the specific language locale (with modifier and region), then default\n * to the 2 character language code.\n *\n * @param {string} localeStr The user-defined locale string\n * @param {string} mapProvider name of the current map provider\n * @return {string} The language locale for the map\n */\nconst getLanguageForProvider = (localeStr, mapProvider) => {\n const language = localeStr.split(/[\\-_]/)[0];\n if (language.length !== 2) {\n return 'en';\n }\n const provider = getMapProvider(mapProvider);\n const formattedLocaleStr = provider.formatLocale(localeStr);\n if (provider.getSupportedLocales().includes(formattedLocaleStr)) {\n return formattedLocaleStr;\n }\n return language;\n};\n\n/**\n * Returns the corresponding MapProvider instance (Default to MapBox)\n * \n * @param {string} mapProvider\n * @return {MapProvider}\n */\nconst getMapProvider = (mapProvider) => {\n if (mapProvider === 'google') {\n return GoogleMaps;\n }\n if (mapProvider === 'mapbox') {\n return MapboxMaps;\n }\n return MapboxMaps;\n}\n\n/**\n * Returns a utf-8 encoding of an SVG\n *\n * @param {string} svg The SVG to encode\n * @return {string}\n */\nconst getEncodedSvg = (svg) => {\n return `data:image/svg+xml;charset=utf-8, ${encodeURIComponent(svg)}`;\n}\n\n/**\n * Returns whether or not targetEl is viewable within containerEl, considering\n * its container's scroll position and the target's offset from the top\n *\n * @param {HTMLElement} targetEl The element that is meant to be viewable\n * @param {HTMLElement} containerEl The wrapper element, should be some ancestor for targetEl\n * @return {boolean}\n */\nconst isViewableWithinContainer = (targetEl, containerEl) => {\n const containerElViewableTop = containerEl.scrollTop;\n const containerElViewableBottom = containerEl.scrollTop + containerEl.offsetHeight;\n const targetElTop = targetEl.offsetTop;\n const targetElBottom = targetEl.offsetTop + targetEl.offsetHeight;\n\n const isScrolledIntoView =\n targetElTop >= containerElViewableTop &&\n targetElTop <= containerElViewableBottom &&\n targetElBottom >= containerElViewableTop &&\n targetElBottom <= containerElViewableBottom;\n return isScrolledIntoView;\n};\n\n\n/**\n * Normalize lng to the range [-180, 180]. If you give -181, for\n * example, we wrap back to 179. If lng is 180, we return 180. Otherwise, we\n * prefer to return -180 over 180 when wrapping, as they are the same coordinate.\n *\n * The idea is that we must mod by the range of the longitude values (360) to\n * be span our entire range of values. In order to have our negative to\n * positive wrapping work with modulus, the values we mod by need to be positive.\n *\n * 1. Add 180 to shift values to make sure -180 to 0 map to 0 to 180 \n * and 0 to 180 map to 180 to 360 for example\n * 2. Mod by 360 to make the range (-360, 360)\n * 3. Add 360 and mod by 360 again to make the range positive [0, 360)\n * 4. Subtract by 180 to make the range into the desired range [-180, 180)\n *\n * @param {Number} lng The longitude\n * @returns {Number} The normalized longitude\n */\nconst getNormalizedLongitude = (lng) => {\n if (lng === 180) {\n return lng;\n }\n const range = 360; // 180 - (-180)\n return ((lng + 180) % range + range) % range - 180;\n}\n\n/**\n * Returns a function, that, as long as it continues to be invoked, will not be triggered.\n * The function will be called after it stops being called for `wait` milliseconds.\n * \n * Source: https://levelup.gitconnected.com/debounce-in-javascript-improve-your-applications-performance-5b01855e086\n * \n * @param {Function} func The function to debounce\n * @param {number} wait The number of milliseconds that need to pass without the function\n * being called before the provided function will execute\n */\nconst debounce = (func, wait) => {\n let timeout;\n\n return function executedFunction(...args) {\n const later = () => {\n clearTimeout(timeout);\n func(...args);\n };\n\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n };\n};\n\n/**\n * Removes an element from the DOM, with support for IE11\n * \n * @param {Element} element\n */\nconst removeElement = (element) => {\n if (!element) {\n return;\n }\n if (element.remove) {\n element.remove();\n } else {\n element.parentNode && element.parentNode.removeChild(element); // For IE11\n }\n}\n\nexport {\n getLanguageForProvider,\n getMapProvider,\n getEncodedSvg,\n getNormalizedLongitude,\n isViewableWithinContainer,\n debounce,\n removeElement\n}\n\n","import { Coordinate } from './Geo/Coordinate.js';\n \n/**\n * Responsible for determining whether or not a new search should be ran based on the\n * location of the most recent search, the current center of the map, and the zoom level.\n */\nclass SearchPreventer {\n constructor () {\n /**\n * The threshold for allowing a new search based on the distance to the previous search.\n * \n * The unit is a percentage of the map width. For example, if the threshold is .50,\n * a new search will not be allowed unless the currentMapCenter is further than 50% of the map\n * width away from the previous search.\n * \n * @type {number}\n */\n this.relativeDistanceThreshold = .125;\n\n /**\n * The threshold for allowing a new search based on a change in zoom.\n * \n * With a zoom threshold of 1, a new search will be ran every time the zoom changes by 1 or greater.\n * \n * @type {number}\n */\n this.zoomThreshold = 1;\n }\n\n /**\n * Determines if a search should be prevented based on the relative distance of the current map\n * center to the previous map center.\n * \n * @param {Coordinate} mostRecentSearchMapCenter\n * @param {Coordinate} currentMapCenter\n * @param {number} currentZoom\n * @returns {boolean}\n */\n isWithinDistanceThreshold ({ mostRecentSearchMapCenter, currentMapCenter, currentZoom }) {\n const distanceToLastSearch = currentMapCenter.distanceTo(mostRecentSearchMapCenter);\n const relativeDistance = this._calculateRelativeDistance(distanceToLastSearch, currentZoom);\n\n return relativeDistance <= this.relativeDistanceThreshold;\n }\n\n /**\n * Determines if a search should be prevented based on the difference between the map zoom during\n * the most recent search and the current map zoom.\n * \n * @param {number} mostRecentSearchZoom\n * @param {number} currentZoom\n * @returns {boolean}\n */\n isWithinZoomThreshold ({ mostRecentSearchZoom, currentZoom }) {\n const zoomDifference = Math.abs(currentZoom - mostRecentSearchZoom);\n\n return zoomDifference <= this.zoomThreshold;\n }\n\n /**\n * Calculates a distance relative to the map zoom level.\n * \n * A relative distance of 100 is approximately equal to the width of the entire map.\n * \n * Each change in the zoom level changes the total map width by an order of 2, which is why this formula\n * uses `Math.pow()`.\n * \n * @param {number} distance in miles\n * @param {number} zoom\n * @returns {number}\n */\n _calculateRelativeDistance (distance, zoom) {\n const adjustment = 0.835; // The adjustment ensures that distanceInPixels is accurate\n const distanceInPixels = distance * Math.pow(2, zoom - 6) * adjustment;\n const widthOfMap = window.innerWidth || 1;\n return distanceInPixels / widthOfMap;\n }\n}\n\nexport { SearchPreventer };","import { Coordinate } from './Geo/Coordinate.js';\n\n/**\n * The default center coordinate, currently in Dearing, KS, in the middle\n * of the United States\n * @type {Coordinate}\n */\nexport const defaultCenterCoordinate = new Coordinate(37.0902, -95.7129);\n","/**\n * Describes the types of triggers for a zoom change event\n *\n * @enum {string}\n */\nexport default {\n UNSET: '',\n API: 'api',\n USER: 'user'\n};\n","/**\n * Describes the possible triggers for a map pan\n *\n * @enum {string}\n */\nexport default {\n /**\n * Indicates that the panTrigger is not set.\n */\n UNSET: '',\n /**\n * Indicates that the pan occured as a result of user interaction.\n * \n * This includes moving the map or clicking on a pin cluster.\n */\n USER: 'user',\n /** \n * Indicates that the map is panning due to programatic reason, and therefore a new\n * search should not be ran if the panHandler is called while this PanTrigger is set\n * on the Map.\n * \n * This includes the automatic centering of the map after a new search is ran, or the\n * automatic centering of the map over a focused pin near the edge of the screen after\n * clicking or tabbing onto it.\n */\n API: 'api',\n};","/**\n * Defines the possible mobile map states\n * \n * Map view and list view are mutually exclusive, however detail shown can only occur\n * on the map view.\n *\n * @enum {string}\n */\nexport default {\n MAP_VIEW: 'mapView',\n LIST_VIEW: 'listView',\n DETAIL_SHOWN: 'detailShown'\n};\n","/**\n * An enum listing SDK storage keys for the theme. Because \n * the SDK does not expose StorageKeys, non-theme specific \n * keys may also live in this file.\n *\n * @enum {string}\n */\nconst StorageKeys = {\n // From SDK\n VERTICAL_RESULTS: 'vertical-results',\n QUERY: 'query',\n ALTERNATIVE_VERTICALS: 'alternative-verticals',\n QUERY_TRIGGER: 'queryTrigger',\n\n // Locator\n LOCATOR_HOVERED_RESULT: 'locator-hovered-result',\n LOCATOR_SELECTED_RESULT: 'locator-selected-result',\n LOCATOR_NUM_CONCURRENT_SEARCH_THIS_AREA_CALLS: 'locator-num-concurrent-search-this-area-calls',\n LOCATOR_MAP_PROPERTIES: 'locator-map-properties',\n LOCATOR_CARD_FOCUS: 'locator-card-focus'\n};\n\nexport default StorageKeys;\n","import { Coordinate } from './Geo/Coordinate.js';\nimport { smoothScroll } from './Util/SmoothScroll.js';\nimport { isViewableWithinContainer, removeElement, debounce } from './Util/helpers.js';\nimport { SearchPreventer } from './SearchPreventer';\nimport { defaultCenterCoordinate } from './constants.js';\n\nimport ZoomTriggers from './Maps/ZoomTriggers.js';\nimport PanTriggers from './Maps/PanTriggers.js';\nimport MobileStates from './MobileStates';\n\nimport StorageKeys from '../constants/storage-keys.js';\n\n/**\n * The component to control the interactions for an interative map.\n * Interactions like clicking on a pin or dragging the map and\n * searching an area is controlled here\n */\nclass VerticalFullPageMapOrchestrator extends ANSWERS.Component {\n constructor(config, systemConfig) {\n super(config, systemConfig);\n\n /**\n * Name of a location card type\n * \n * @type {string}\n */\n this.cardType = config.cardType;\n\n /**\n * The container in the DOM for the interactive map\n * @type {HTMLElement}\n */\n this._mapContainerSelector = '#js-answersMap';\n\n /**\n * The page wrapper DOM element\n * @type {HTMLElement}\n */\n this._pageWrapperEl = document.querySelector('.YxtPage-wrapper');\n\n /**\n * The results wrapper DOM element\n * @type {HTMLElement}\n */\n this._resultsWrapperEl = this._container.querySelector('.js-locator-resultsWrapper');\n\n /**\n * The current Answers API vertical key\n * @type {string}\n */\n this.verticalKey = config.verticalKey; \n\n /**\n * The vertical configuration\n * @type {Object}\n */\n this.verticalsConfig = config.verticalPages || [];\n\n /**\n * Map options to be passed directly to the Map Provider\n * @type {Object}\n */\n this.providerOptions = config.providerOptions || {};\n\n /**\n * The default center coordinate for the map, an object with {lat, lng}\n * @type {Coordinate}\n */\n this.defaultCenter = this.providerOptions.center\n ? new Coordinate(this.providerOptions.center)\n : defaultCenterCoordinate;\n\n /**\n * The default zoom level for the map\n * @type {number}\n */\n this.defaultZoom = this.providerOptions.zoom || 4;\n\n /**\n * The current zoom level of the map\n * @type {number}\n */\n this.currentZoom = this.defaultZoom;\n\n /**\n * The zoom level of the map during the most recent search\n * @type {number}\n */\n this.mostRecentSearchZoom = this.defaultZoom;\n\n /**\n * The center of the map during the most recent search\n * @type {Coordinate}\n */\n this.mostRecentSearchLocation = this.defaultCenter;\n\n /**\n * Whether the map should search on a map movement action like map drag\n * @type {boolean}\n */\n this.searchOnMapMove = !config.disableSearchOnMapMove;\n\n /**\n * The configuration for the no results state\n * @type {Object}\n */\n this.noResultsConfig = config.noResults || {};\n\n /**\n * Whether the map should display all results on no results\n * @type {boolean}\n */\n this.displayAllResultsOnNoResults = this.noResultsConfig.displayAllResults;\n\n /**\n * The mobile breakpoint (inclusive max) in px\n * @type {Number}\n */\n this.mobileBreakpointMax = 991;\n\n /**\n * Provides information about whether or not the window is within the mobile breakpoint\n * @type {MediaQueryList}\n */\n this.mobileBreakpointMediaQuery = window.matchMedia(`(max-width: ${this.mobileBreakpointMax}px)`);\n\n /**\n * The current view for mobile.\n * \n * Either MobileStates.LIST_VIEW or MobileStates.MAP_VIEW\n */\n this._mobileView = MobileStates.LIST_VIEW;\n\n /**\n * Determines whether or not another search should be ran\n * @type {SearchPreventer}\n */\n this.searchPreventer = new SearchPreventer();\n\n /**\n * A search this area function with a debounce applied\n */\n this.debouncedSearchThisArea = debounce(this.searchThisArea.bind(this), 250);\n\n /**\n * The detail card which apears on mobile after clicking a pin\n * @type {Element}\n */\n this._detailCard = null;\n\n /**\n * The passthrough config for the Alternative Verticals component\n * NOTE This component is added as a child to this component because Alternative Verticals\n * in the SDK is not designed to be a standalone component. In this layout, it cannot be\n * a child of the Vertical Results because we want it to show on the map view. So we make it\n * a child of the larger component.\n * @type {Object}\n */\n this.alternativeVerticalsConfig = config.alternativeVerticalsConfig;\n\n /**\n * Indicates whether or not the handleMapCenterChangefunction has been invoked\n */\n this.isFirstMapCenterChangeInvocation = true;\n }\n\n onCreate () {\n this.core.storage.registerListener({\n eventType: 'update',\n storageKey: StorageKeys.VERTICAL_RESULTS,\n callback: (data) => this.setState(data)\n });\n\n this.core.storage.registerListener({\n eventType: 'update',\n storageKey: StorageKeys.QUERY,\n callback: () => this.updateMostRecentSearchState()\n });\n\n const searchThisAreaToggleEls = this._container.querySelectorAll('.js-searchThisAreaToggle');\n searchThisAreaToggleEls.forEach((el) => {\n el.addEventListener('click', (e) => {\n this.searchOnMapMove = e.target.checked;\n if (this.searchOnMapMove) {\n this._container.classList.remove('VerticalFullPageMap--showSearchThisArea');\n } else {\n this._container.classList.add('VerticalFullPageMap--showSearchThisArea');\n }\n });\n });\n\n const searchThisAreaButtonEl = this._container.querySelector('.js-searchThisAreaButton');\n searchThisAreaButtonEl.addEventListener('click', (e) => {\n this.searchThisArea();\n });\n\n this.setupMobileBreakpointListener();\n this.addMapComponent();\n }\n\n /**\n * Properly set CSS classes for mobile and desktop\n */\n setupMobileBreakpointListener () {\n if (!this.isMobile()) {\n this.updateCssForDesktop();\n }\n\n const breakpointChangeHandler = () => {\n if (this.isMobile()) {\n this.updateCssForMobile();\n } else {\n this.core.storage.set('DISABLE_RENDER_RESULTS', false);\n this.updateCssForDesktop();\n }\n };\n if (this.mobileBreakpointMediaQuery.addEventListener) {\n this.mobileBreakpointMediaQuery\n .addEventListener('change', breakpointChangeHandler, { passive: true });\n } else {\n this.mobileBreakpointMediaQuery.addListener(breakpointChangeHandler); // For IE11\n }\n }\n\n /**\n * @returns {boolean}\n */\n isMobile () {\n return this.mobileBreakpointMediaQuery.matches;\n }\n\n updateCssForMobile () {\n if (this._mobileView === MobileStates.LIST_VIEW) {\n this.addCssClassesForState(MobileStates.LIST_VIEW);\n this.removeCssClassesForState(MobileStates.MAP_VIEW);\n this.removeCssClassesForState(MobileStates.DETAIL_SHOWN); \n } else if (this._mobileView === MobileStates.MAP_VIEW) {\n this.addCssClassesForState(MobileStates.MAP_VIEW);\n this.removeCssClassesForState(MobileStates.LIST_VIEW);\n }\n }\n\n updateCssForDesktop () {\n const statesToRemove = [MobileStates.LIST_VIEW, MobileStates.MAP_VIEW, MobileStates.DETAIL_SHOWN];\n statesToRemove.forEach(state => {\n this.removeCssClassesForState(state);\n });\n }\n\n setMobileMapView () {\n this._mobileView = 'mapView';\n this.updateCssForMobile();\n }\n\n setMobileListView () {\n this._mobileView = 'listView';\n this.updateCssForMobile();\n }\n\n /**\n * @param {MobileStates} mobileState\n */\n addCssClassesForState(mobileState) {\n const classModifier = this.getModifierForState(mobileState);\n this._container.classList.add(`VerticalFullPageMap--${classModifier}`);\n this._pageWrapperEl.classList.add(`YxtPage-wrapper--${classModifier}`);\n }\n\n /**\n * @param {MobileStates} mobileState \n */\n removeCssClassesForState(mobileState) {\n const classModifier = this.getModifierForState(mobileState);\n this._container.classList.remove(`VerticalFullPageMap--${classModifier}`);\n this._pageWrapperEl.classList.remove(`YxtPage-wrapper--${classModifier}`);\n }\n\n /**\n * Returns a css class modifier for a given mobile state.\n * \n * @param {MobileStates} mobileState \n * @returns {string}\n */\n getModifierForState(mobileState) {\n switch (mobileState) {\n case MobileStates.LIST_VIEW:\n return 'mobileListView'\n case MobileStates.MAP_VIEW:\n return 'mobileMapView'\n case MobileStates.DETAIL_SHOWN:\n return 'mobileDetailShown'\n default:\n throw new Error('Invalid mobile state');\n }\n }\n \n addMapComponent () {\n /**\n * Sets up mobile view toggles and search bar listeners\n *\n * @param {Object} data The data (formatted in the Consulting LiveAPI format) of results\n * @param {Map} map The map object\n * @param {Object} pins Mapping from pin id to the pin object on the map\n */\n const onPostMapRender = (data, map, pins) => {\n this.setupMobileViewToggles(data, map, pins);\n this.setupSearchBarListeners();\n };\n\n /**\n * Clicking a pin cluster searches the new area, if desired\n */\n const pinClusterClickListener = () => this.searchOnMapMove && this.searchThisArea();\n\n /**\n * The listener called when the map pans\n */\n const panHandler = (prevousBounds, currentBounds, panTrigger) => {\n if (panTrigger === PanTriggers.API) {\n return;\n }\n\n this.handleMapCenterChange();\n }\n\n /**\n * The listener called when the zoom changes\n *\n * @param {number} zoom The zoom during a zoom event\n * @param {ZoomTriggers} zoomTrigger The intitiator of the zoom\n */\n const zoomChangedListener = (zoom, zoomTrigger) => {};\n\n /**\n * User-initiated changes to the map zoom searches the new area, if desired\n * Clicking on a cluster or fitting the bounds for results is not considered user-initiated\n *\n * @param {number} zoom The zoom after this event\n * @param {ZoomTriggers} zoomTrigger The intitiator of the zoom\n */\n const zoomEndListener = (zoom, zoomTrigger) => {\n this.currentZoom = zoom;\n\n if (zoomTrigger !== ZoomTriggers.USER) {\n return;\n }\n\n this.handleMapZoomChange();\n };\n\n ANSWERS.addComponent('ThemeMap', Object.assign({}, {\n container: this._mapContainerSelector,\n mapProvider: this._config.mapProvider,\n apiKey: this._config.apiKey,\n clientId: this._config.clientId,\n locale: this._config.locale,\n contentWrapperEl: this._container.querySelector('.js-locator-contentWrap'),\n providerOptions: this._config.providerOptions,\n defaultCenter: this.defaultCenter,\n defaultZoom: this.defaultZoom,\n mobileBreakpointMax: this.mobileBreakpointMax,\n pinOptions: this._config.pin,\n pinClusterOptions: this._config.pinCluster,\n enablePinClustering: this._config.enablePinClustering,\n noResultsConfig: this.noResultsConfig,\n onPinSelect: this._config.onPinSelect,\n onPostMapRender: onPostMapRender,\n pinFocusListener: (index, id) => this.pinFocusListener(index, id),\n pinClusterClickListener: pinClusterClickListener,\n zoomChangedListener: zoomChangedListener,\n zoomEndListener: zoomEndListener,\n panHandler: panHandler,\n canvasClickListener: () => this.deselectAllResults()\n }));\n }\n\n /**\n * Search the area or show the search the area button according to configurable logic\n */\n handleMapCenterChange () {\n const isIframe = 'parentIFrame' in window;\n const isFirstMapCenterChangeInvocation = this.isFirstMapCenterChangeInvocation;\n this.isFirstMapCenterChangeInvocation = false;\n // Ignore the first invocation of this function within an iframe because it is triggered by the iframe\n // resizer and not by the user\n if (isFirstMapCenterChangeInvocation && isIframe) {\n return;\n }\n\n if (!this.searchOnMapMove) {\n this._container.classList.add('VerticalFullPageMap--showSearchThisArea');\n return;\n }\n\n if (!this.shouldSearchBePreventedBasedOnCenter()) {\n this.debouncedSearchThisArea();\n }\n }\n\n /**\n * Search the area or show the search the area button according to configurable logic\n */\n handleMapZoomChange () {\n if (!this.searchOnMapMove) {\n this._container.classList.add('InteractiveMap--showSearchThisArea');\n return;\n }\n\n if (!this.shouldSearchBePreventedBasedOnZoom()) {\n this.debouncedSearchThisArea();\n }\n }\n\n /**\n * Returns true if a search should be prevented based on the center of the current map\n * and the center of the map during the most recent search\n * \n * @returns {boolean}\n */\n shouldSearchBePreventedBasedOnCenter () {\n return this.searchPreventer.isWithinDistanceThreshold({\n mostRecentSearchMapCenter: this.mostRecentSearchLocation,\n currentMapCenter: this.getCurrentMapCenter(),\n currentZoom: this.currentZoom\n });\n }\n\n /**\n * Returns true if a search should be prevented based on the previous search zoom level and\n * the current zoom level\n * \n * @returns {boolean}\n */\n shouldSearchBePreventedBasedOnZoom () {\n return this.searchPreventer.isWithinZoomThreshold({\n mostRecentSearchZoom: this.mostRecentSearchZoom,\n currentZoom: this.currentZoom\n });\n }\n\n /**\n * Sets the most recent search state to the current map state\n */\n updateMostRecentSearchState () {\n this.mostRecentSearchZoom = this.currentZoom;\n this.mostRecentSearchLocation = this.getCurrentMapCenter();\n }\n\n /**\n * Returns the current center of the map\n * \n * @returns {Coordinate}\n */\n getCurrentMapCenter () {\n const mapProperties = this.core.storage.get(StorageKeys.LOCATOR_MAP_PROPERTIES);\n\n if (!mapProperties) {\n return this.defaultCenter;\n }\n\n const center = mapProperties.visibleCenter;\n const lat = center.latitude;\n const lng = center.longitude;\n\n return new Coordinate(lat, lng);\n }\n\n /**\n * Deselect all results by updating CSS classes, removing the detail card if present, and\n * updating global storage.\n */\n deselectAllResults () {\n this.removeCssClassesForState(MobileStates.DETAIL_SHOWN);\n\n document.querySelectorAll('.yxt-Card--pinFocused').forEach((el) => {\n el.classList.remove('yxt-Card--pinFocused');\n });\n\n removeElement(this._detailCard);\n\n this.core.storage.set(StorageKeys.LOCATOR_SELECTED_RESULT, null);\n }\n\n /**\n * The callback when a result pin on the map is clicked or tabbed onto\n * @param {Number} index The index of the pin in the current result list order\n * @param {string} cardId The unique id for the pin entity, usually of the form `js-yl-${meta.id}`\n */\n pinFocusListener (index, cardId) {\n this.core.storage.set(StorageKeys.LOCATOR_SELECTED_RESULT, cardId);\n document.querySelectorAll('.yxt-Card--pinFocused').forEach((el) => {\n el.classList.remove('yxt-Card--pinFocused');\n });\n\n if (this.isMobile()) {\n document.querySelectorAll('.yxt-Card--isVisibleOnMobileMap').forEach((el) => removeElement(el));\n const isDetailCardOpened = document.querySelectorAll('.yxt-Card--isVisibleOnMobileMap').length;\n\n const entityId = cardId.replace('js-yl-', '');\n const verticalResults = this.core.storage.get(StorageKeys.VERTICAL_RESULTS).results;\n const entityData = verticalResults.find(entity => entity.id.toString() === entityId);\n const opts = {\n parentContainer: this._container, \n container: `.yxt-Card-${entityId}`,\n data: {\n result: entityData,\n verticalKey: this.verticalKey\n }\n };\n ANSWERS.addComponent(this.cardType, opts);\n this._detailCard = this._container.querySelector(`.yxt-Card-${entityId}`);\n this._detailCard.classList.add('yxt-Card--isVisibleOnMobileMap');\n this._detailCard.classList.add('yxt-Card--pinFocused');\n\n if (!isDetailCardOpened) {\n window.requestAnimationFrame(() => {\n this._detailCard.setAttribute('style', 'height: 0;');\n window.requestAnimationFrame(() => {\n this._detailCard.removeAttribute('style');\n });\n });\n }\n\n const buttonSelector = '.js-HitchhikerLocationCard-closeCardButton';\n\n this._detailCard.querySelectorAll(buttonSelector).forEach((el) => {\n el.addEventListener('click', () => {\n this.deselectAllResults();\n });\n });\n\n this.addCssClassesForState(MobileStates.DETAIL_SHOWN);\n } else {\n const selector = `.yxt-Card[data-opts='{ \"_index\": ${index - 1} }']`;\n const card = document.querySelector(selector);\n card.classList.add('yxt-Card--pinFocused');\n this.scrollToResult(card);\n }\n }\n\n /**\n * Determines whether or not the view toggles on mobile should be shown or not\n * If it is shown, add click listener\n * @param {Object} data The data (formatted in the Consulting LiveAPI format) of results\n * @param {Map} map The map object\n * @param {Object} pins Mapping from pin id to the pin object on the map\n */\n setupMobileViewToggles (data, map, pins) {\n const mobileToggles = this._container.querySelector('.js-locator-mobiletoggles');\n const listToggle = mobileToggles.querySelector('.js-locator-listToggle');\n\n let showToggles = false;\n\n if (data.response && data.response.entities && data.response.entities.length) {\n showToggles = true;\n }\n this.removeCssClassesForState(MobileStates.DETAIL_SHOWN);\n\n if (showToggles) {\n this._container.classList.add('VerticalFullPageMap--showMobileViewToggles');\n if (!listToggle.dataset.listened) {\n listToggle.dataset.listened = 'true';\n listToggle.addEventListener('click', () => {\n this.deselectAllResults();\n window.scrollTo(0, 0);\n if (this._mobileView === MobileStates.LIST_VIEW) {\n this.core.storage.set('DISABLE_RENDER_RESULTS', true);\n this.setMobileMapView();\n } else {\n this.core.storage.set('DISABLE_RENDER_RESULTS', false);\n this.setMobileListView();\n }\n });\n }\n } else {\n this._container.classList.remove('VerticalFullPageMap--showMobileViewToggles');\n }\n }\n\n /**\n * Register listeners so that any active pins are deselected when a user clicks\n * or focuses on the searchbar.\n */\n setupSearchBarListeners () {\n const searchBarForm = this._container.querySelector('.yxt-SearchBar-form');\n searchBarForm && searchBarForm.addEventListener('click', () => {\n this.deselectAllResults()\n });\n const searchBarInput = this._container.querySelector('.yxt-SearchBar-input');\n searchBarInput && searchBarInput.addEventListener('focus', () => {\n this.deselectAllResults();\n });\n const searchBarButton = this._container.querySelector('.yxt-SearchBar-button');\n searchBarButton && searchBarButton.addEventListener('focus', () => {\n this.deselectAllResults();\n })\n }\n\n /**\n * Conducts a new search on the locator for the given viewable bounds for the map.\n * Note that the visible area is the viewport of the map, taking into account the map padding.\n * Also note that the radius is from the center of the visible area to the corner of \n * the visible area.\n */\n searchThisArea() {\n const numConcurrentSearchThisAreaCalls =\n this.core.storage.get(StorageKeys.LOCATOR_NUM_CONCURRENT_SEARCH_THIS_AREA_CALLS);\n const updatedNumSearchThisAreaCalls = numConcurrentSearchThisAreaCalls + 1 || 1;\n this.core.storage.set(\n StorageKeys.LOCATOR_NUM_CONCURRENT_SEARCH_THIS_AREA_CALLS,\n updatedNumSearchThisAreaCalls\n );\n\n this.deselectAllResults();\n\n this._container.classList.remove('VerticalFullPageMap--showSearchThisArea');\n\n const mapProperties = this.core.storage.get(StorageKeys.LOCATOR_MAP_PROPERTIES);\n const center = mapProperties.visibleCenter;\n const radius = mapProperties.visibleRadius;\n const lat = center.latitude;\n const lng = center.longitude;\n\n const filterNode = ANSWERS.FilterNodeFactory.from({\n filter: {\n 'builtin.location': {\n '$near': { lat, lng, radius }\n }\n },\n remove: () => this.core.clearStaticFilterNode('SearchThisArea')\n });\n this.core.setStaticFilterNodes('SearchThisArea', filterNode);\n this.core.verticalSearch(this.verticalKey, {\n setQueryParams: true,\n resetPagination: true,\n useFacets: true\n });\n this.updateMostRecentSearchState();\n this.core.clearStaticFilterNode('SearchThisArea');\n }\n\n /**\n * Scroll the result list to show the given element\n * @param {HTMLElement} targetEl The result card to scroll to\n */\n scrollToResult(targetEl) {\n const scrollContainer = this._resultsWrapperEl;\n const scrollDistance = targetEl.offsetTop - scrollContainer.scrollTop;\n\n if (!isViewableWithinContainer(targetEl, scrollContainer)) {\n smoothScroll(scrollContainer, scrollDistance, 400);\n }\n }\n\n setState(data) {\n if (data.searchState === 'search-loading') {\n return;\n }\n\n this._data = data;\n\n if (data.resultsContext === 'no-results') {\n this._isNoResults = true;\n this._container.classList.add('VerticalFullPageMap--noResults');\n } else {\n this._isNoResults = false;\n this._container.classList.remove('VerticalFullPageMap--noResults');\n }\n\n this.onMount();\n }\n\n onMount () {\n this._children.forEach(child => {\n child.unMount();\n });\n this._children.forEach(c => c.remove());\n this._children = [];\n\n if (this._isNoResults) {\n const altVerticalsData = this.core.storage.get(StorageKeys.ALTERNATIVE_VERTICALS);\n this.addChild(\n altVerticalsData,\n 'AlternativeVerticals', \n Object.assign({},\n {\n container: '.js-answersNoResults',\n verticalsConfig: this.verticalsConfig,\n baseUniversalUrl: this.getBaseUniversalUrl(),\n isShowingResults: this.displayAllResultsOnNoResults && this._data.results,\n name: 'AlternativeVerticals--resultsHeader'\n },\n this.alternativeVerticalsConfig\n )\n );\n }\n\n this._children.forEach(child => {\n child.mount();\n });\n }\n\n /**\n * Get the base universal url\n * @return {string} The universal url\n */\n getBaseUniversalUrl () {\n const universalConfig = this.verticalsConfig.find(config => !config.verticalKey) || {};\n return universalConfig.url;\n }\n\n static defaultTemplateName() {\n return 'theme-components/vertical-full-page-map';\n }\n\n static areDuplicateNamesAllowed() {\n return false;\n }\n\n static get type() {\n return 'VerticalFullPageMapOrchestrator';\n }\n}\n\nexport { VerticalFullPageMapOrchestrator };\n","import { Unit, Projection } from './constants.js';\nimport { Coordinate } from './Coordinate.js';\nimport { getNormalizedLongitude } from '../Util/helpers.js';\n\n/**\n * This class represents a bounded coordinate region of a sphere.\n * The bounds are defined by two [Coordinates]{@link Coordinate}: southwest and northeast.\n * If the northeast coordinate does not have a greater latitude and longitude than the soutwest\n * coordinate, the behavior of this object is undefined.\n */\nclass GeoBounds {\n /**\n * Create a new GeoBounds with minimal area that contains all the given coordinates\n * @param {Coordinate[]} coordinates\n * @returns {GeoBounds}\n */\n static fit(coordinates) {\n // North/South bounds are the northernmost and southernmost points\n const latitudes = coordinates.map(coordinate => coordinate.latitude);\n const north = Math.max(...latitudes);\n const south = Math.min(...latitudes);\n\n // East/West bounds need to be chosen to minimize the area that fits all pins\n // Choose them by finding the largest area with no pins\n const longitudes = coordinates\n .map(coordinate => coordinate.normalLon)\n .sort((i, j) => i - j);\n\n const splitIndex = longitudes\n .map((longitude, i) => {\n const next = i < longitudes.length - 1 ? longitudes[i + 1] : longitudes[0] + 360;\n return { distance: next - longitude, index: i };\n })\n .reduce((max, distance) => distance.distance > max.distance ? distance : max)\n .index;\n\n const east = longitudes[splitIndex];\n const west = longitudes[(splitIndex + 1) % longitudes.length];\n\n return new this(new Coordinate(south, west), new Coordinate(north, east));\n }\n\n /**\n * @param {Coordinate} sw Southwest coordinate\n * @param {Coordinate} ne Northeast coordinate\n */\n constructor(sw, ne) {\n this._ne = new Coordinate(ne);\n this._sw = new Coordinate(sw);\n }\n\n /**\n * Northeast coordinate\n * @type {Coordinate}\n */\n get ne() {\n return this._ne;\n }\n\n /**\n * Southwest coordinate\n * @type {Coordinate}\n */\n get sw() {\n return this._sw;\n }\n\n set ne(newNE) {\n this._ne = new Coordinate(newNE);\n }\n\n set sw(newSW) {\n this._sw = new Coordinate(newSW);\n }\n\n /**\n * Whether the coordinate lies within the region defined by the bounds.\n * [Normalized longitudes]{@link Coordinate#normalLon} are used for the bounds and the coordinate.\n * @param {Coordinate} coordinate\n * @returns {boolean}\n */\n contains(coordinate) {\n const withinLatitude = this._sw.latitude <= coordinate.latitude && coordinate.latitude <= this._ne.latitude;\n const longitudeSpansGlobe = this._ne.longitude - this._sw.longitude >= 360;\n const withinNormalLon = this._sw.normalLon <= this._ne.normalLon ?\n (this._sw.normalLon <= coordinate.normalLon && coordinate.normalLon <= this._ne.normalLon) :\n (this._sw.normalLon <= coordinate.normalLon || coordinate.normalLon <= this._ne.normalLon);\n\n return withinLatitude && (longitudeSpansGlobe || withinNormalLon);\n }\n\n /**\n * Extend the bounds if necessary so that the coordinate is contained by them.\n * @param {Coordinate} coordinate\n */\n extend(coordinate) {\n this._ne.latitude = Math.max(this._ne.latitude, coordinate.latitude);\n this._sw.latitude = Math.min(this._sw.latitude, coordinate.latitude);\n\n if (!this.contains(coordinate)) {\n const eastDist = ((coordinate.longitude - this._ne.longitude) % 360 + 360) % 360;\n const westDist = ((this._sw.longitude - coordinate.longitude) % 360 + 360) % 360;\n\n if (eastDist < westDist) {\n this._ne.longitude += eastDist;\n } else {\n this._sw.longitude -= westDist;\n }\n }\n }\n\n /**\n * Calculate the center of the bounds using the given projection.\n * To find the visual center on a Mercator map, use Projection.MERCATOR.\n * To find the center for geolocation or geosearch purposes, use Projection.SPHERICAL.\n * @param {Geo.Projection} [projection=Projection.SPHERICAL]\n * @returns {Coordinate}\n */\n getCenter(projection = Projection.SPHERICAL) {\n const nw = new Coordinate(this._ne.latitude, this._sw.longitude);\n const latDist = this._sw.distanceTo(nw, Unit.DEGREE, projection);\n const newLon = (nw.longitude + this._ne.longitude) / 2 + (this._ne.longitude < nw.longitude ? 180 : 0);\n\n nw.add(-latDist / 2, 0, Unit.DEGREE, projection);\n nw.longitude = getNormalizedLongitude(newLon);\n\n return nw;\n }\n}\n\nexport {\n GeoBounds\n};\n","/**\n * This class is used to set the appearance of a {@link MapPin}. Most properties are supported by\n * all pins, but some are only supported by HTML pins.\n */\nclass PinProperties {\n constructor() {\n // Properties supported by all pins\n this._anchorX = 0.5;\n this._anchorY = 1;\n this._height = 39;\n this._icon = 'default';\n this._srText = 'alt text';\n this._width = 33;\n this._zIndex = 0;\n\n // Properties supported only by HTML pins\n this._class = '';\n this._element = null;\n }\n\n /**\n * @returns {number} The point in the pin that should be positioned over the coordinate, from 0 (left edge) to 1 (right edge)\n */\n getAnchorX() {\n return this._anchorX;\n }\n\n /**\n * @returns {number} The point in the pin that should be positioned over the coordinate, from 0 (top edge) to 1 (bottom edge)\n */\n getAnchorY() {\n return this._anchorY;\n }\n\n /**\n * HTML pins only\n * @returns {string} The class of the wrapper element for an HTML pin\n */\n getClass() {\n return this._class;\n }\n\n /**\n * HTML pins only\n * @returns {string} The HTML pin element\n */\n getElement() {\n return this._element;\n }\n\n /**\n * @returns {number} The pixel height of the pin\n */\n getHeight() {\n return this._height;\n }\n\n /**\n * This returns a string key that can be used with {@link MapPin#getIcon} to get the icon image for a pin.\n * @returns {string} The unique name of the icon\n */\n getIcon() {\n return this._icon;\n }\n\n /**\n * @returns {string} The text that a screen reader reads when focused on the pin\n */\n getSRText() {\n return this._srText;\n }\n\n /**\n * @returns {number} The pixel width of the pin\n */\n getWidth() {\n return this._width;\n }\n\n /**\n * @returns {number} The z-index of the pin\n */\n getZIndex() {\n return this._zIndex;\n }\n\n /**\n * @param {number} anchorX\n * @returns {PinProperties}\n * @see {PinProperties#getAnchorX}\n */\n setAnchorX(anchorX) {\n this._anchorX = anchorX;\n return this;\n }\n\n /**\n * @param {number} anchorY\n * @returns {PinProperties}\n * @see {PinProperties#getAnchorY}\n */\n setAnchorY(anchorY) {\n this._anchorY = anchorY;\n return this;\n }\n\n /**\n * @param {string} className\n * @returns {PinProperties}\n * @see {PinProperties#getClass}\n */\n setClass(className) {\n this._class = className;\n return this;\n }\n\n /**\n * @param {HTMLElement} element\n * @returns {PinProperties}\n * @see {PinProperties#getElement}\n */\n setElement(element) {\n this._element = element;\n return this;\n }\n\n /**\n * @param {number} height\n * @returns {PinProperties}\n * @see {PinProperties#getHeight}\n */\n setHeight(height) {\n this._height = height;\n return this;\n }\n\n /**\n * @param {string} icon\n * @returns {PinProperties}\n * @see {PinProperties#getIcon}\n */\n setIcon(icon) {\n this._icon = icon;\n return this;\n }\n\n /**\n * @param {string} srText\n * @returns {PinProperties}\n * @see {PinProperties#getSRText}\n */\n setSRText(srText) {\n this._srText = srText;\n return this;\n }\n\n /**\n * @param {number} width\n * @returns {PinProperties}\n * @see {PinProperties#getWidth}\n */\n setWidth(width) {\n this._width = width;\n return this;\n }\n\n /**\n * @param {number} zIndex\n * @returns {PinProperties}\n * @see {PinProperties#getZIndex}\n */\n setZIndex(zIndex) {\n this._zIndex = zIndex;\n return this;\n }\n}\n\nexport {\n PinProperties\n};\n","import { Coordinate } from '../Geo/Coordinate.js';\nimport { Type, assertType, assertInstance } from '../Util/Assertions.js';\nimport { Map } from './Map.js';\nimport { MapProvider } from './MapProvider.js';\nimport { PinProperties } from './PinProperties.js';\nimport { ProviderPinOptions } from './ProviderPin.js';\n\n/**\n * {@link MapPin} options class\n */\nclass MapPinOptions {\n /**\n * Initialize with default options\n */\n constructor() {\n this.coordinate = new Coordinate(0, 0);\n this.hideOffscreen = false;\n this.icons = {};\n this.propertiesForStatus = status => new PinProperties();\n this.provider = null;\n this.type = '';\n }\n\n /**\n * @param {Object} coordinate Must be convertible to {@link Coordinate}\n * @returns {MapPinOptions}\n */\n withCoordinate(coordinate) {\n this.coordinate = new Coordinate(coordinate);\n return this;\n }\n\n /**\n * @param {boolean} hideOffscreen If true, the pin will only be rendered if it's in the visible portion of the map to improve performance\n * @returns {MapPinOptions}\n */\n withHideOffscreen(hideOffscreen) {\n this.hideOffscreen = hideOffscreen;\n return this;\n }\n\n /**\n * @param {string} key The unique name for the icon, used in {@link PinProperties#getIcon} and {@link PinProperties#setIcon}\n * @param {string} icon The URL or data URI of the icon image\n * @returns {MapPinOptions}\n */\n withIcon(key, icon) {\n this.icons[key] = icon;\n return this;\n }\n\n /**\n * @param {string} id The unique id for the pin\n * @returns {MapPinOptions}\n */\n withId(id) {\n this.id = id\n return this;\n }\n\n /**\n * @typedef MapPin~propertiesForStatus\n * @function\n * @param {Object} status A generic object whose properties define the state of the pin, from {@link MapPin#setStatus}\n * @returns {PinProperties}\n * @see MapPin#setStatus\n */\n\n /**\n * @param {MapPin~propertiesForStatus} propertiesForStatus\n * @returns {MapPinOptions}\n */\n withPropertiesForStatus(propertiesForStatus) {\n assertType(propertiesForStatus, Type.FUNCTION);\n\n this.propertiesForStatus = propertiesForStatus;\n return this;\n }\n\n /**\n * @param provider {MapProvider}\n * @returns {MapPinOptions}\n */\n withProvider(provider) {\n assertInstance(provider, MapProvider);\n\n this.provider = provider;\n return this;\n }\n\n /**\n * @param {string} type A string describing the type of the pin\n * @returns {MapPinOptions}\n */\n withType(type) {\n this.type = type;\n return this;\n }\n\n /**\n * @returns {MapPin}\n */\n build() {\n return new MapPin(this);\n }\n}\n\n/**\n * A pin for a {@link Map} that displays at a given {@link Coordinate}. A MapPin can be displayed on\n * at most one Map at a time. Pins support event handlers for clicking, hovering, and focusing.\n * The pin can change its appearance based on its current status, which is changed by {@link MapPin#setStatus}.\n */\nclass MapPin {\n /**\n * @param {MapPinOptions} options\n */\n constructor(options) {\n assertInstance(options, MapPinOptions);\n assertInstance(options.provider, MapProvider);\n\n if (!options.provider.loaded) {\n throw new Error(`'${options.provider.constructor.name}' is not loaded. The MapProvider must be loaded before calling MapPin constructor.`);\n }\n\n this._coordinate = options.coordinate;\n this._hideOffscreen = options.hideOffscreen;\n this._icons = { ...options.icons };\n this._propertiesForStatus = options.propertiesForStatus;\n this._type = options.type;\n\n this._clickHandler = () => {};\n this._focusHandler = focused => this._hoverHandler(focused);\n this._hoverHandler = hovered => {};\n\n this._hidden = false;\n this._hiddenUpdater = null;\n\n this._map = null;\n\n this._pin = new ProviderPinOptions(options.provider)\n .withIcons({ ...this._icons })\n .withClickHandler(() => this._clickHandler())\n .withFocusHandler(focused => this._focusHandler(focused))\n .withHoverHandler(hovered => this._hoverHandler(hovered))\n .build();\n\n this._id = options.id;\n\n this._pin.setCoordinate(options.coordinate);\n\n this._status = {};\n this.setStatus(this._status);\n }\n\n /**\n * @returns {Coordinate} The coordinate of the pin\n */\n getCoordinate() {\n return this._coordinate;\n }\n\n /**\n * Get the icon for a string key, such as 'default', 'hovered', or 'selected'\n * @param {string} key The unique name of the icon\n * @returns {string} The URL or data URI of the icon image\n * @see MapPinOptions#withIcon\n */\n getIcon(key) {\n return this._icons[key];\n }\n\n /**\n * Get the unique identifier for the map pin\n * @returns {string}\n */\n getId() {\n return this._id;\n }\n\n /**\n * @returns {?Map} The map that the pin is currently on, or null if not on a map\n */\n getMap() {\n return this._map;\n }\n\n /**\n * Intended for internal use only\n * @returns {ProviderPin} The pin's ProviderPin instance\n */\n getProviderPin() {\n return this._pin;\n }\n\n /**\n * Remove this pin from its current map, if on one.\n */\n remove() {\n this.setMap(null);\n }\n\n /**\n * @typedef MapPin~clickHandler\n * @function\n */\n\n /**\n * Set a handler function for when the pin is clicked, replacing any previously set click handler.\n * @param {MapPin~clickHandler} clickHandler\n */\n setClickHandler(clickHandler) {\n assertType(clickHandler, Type.FUNCTION);\n\n this._clickHandler = clickHandler;\n }\n\n /**\n * @param {Object} coordinate Must be convertible to {@link Coordinate}\n */\n setCoordinate(coordinate) {\n this._coordinate = new Coordinate(coordinate);\n this._pin.setCoordinate(this._coordinate);\n\n if (this._hideOffscreen) {\n this._hideIfOffscreen();\n }\n }\n\n /**\n * @typedef MapPin~focusHandler\n * @function\n * @param {boolean} focused Whether the pin is currently focused\n */\n\n /**\n * Set a handler function for when the pin is (un)focused, replacing any previously set focus handler.\n * @param {MapPin~focusHandler} focusHandler\n */\n setFocusHandler(focusHandler) {\n assertType(focusHandler, Type.FUNCTION);\n\n this._focusHandler = focusHandler;\n }\n\n /**\n * @typedef MapPin~hoverHandler\n * @function\n * @param {boolean} hovered Whether the pin is currently hovered\n */\n\n /**\n * Set a handler function for when the pin is (un)hovered, replacing any previously set hover handler.\n * @param {MapPin~hoverHandler} hoverHandler\n */\n setHoverHandler(hoverHandler) {\n assertType(hoverHandler, Type.FUNCTION);\n\n this._hoverHandler = hoverHandler;\n }\n\n /**\n * Add the pin to a map, removing it from its current map if on one.\n * @param {?Map} map\n */\n setMap(map) {\n if (map !== null) {\n assertInstance(map, Map);\n }\n\n this._pin.setMap(map, this._hidden ? null : this._map);\n this._map = map;\n this._hidden = false;\n\n if (map && this._hideOffscreen) {\n const hiddenUpdater = async () => {\n // Wait for the map to move, then stop moving\n await map.moving();\n await map.idle();\n\n // Make sure that the updater didn't get reset while waiting\n if (this._hiddenUpdater == hiddenUpdater) {\n this._hideIfOffscreen();\n hiddenUpdater();\n }\n };\n\n this._hiddenUpdater = hiddenUpdater;\n hiddenUpdater();\n } else {\n this._hiddenUpdater = null;\n }\n }\n\n /**\n * Assign all properties in an object to the pin's status.\n * Example: if the pin's status is { a: true, b: true }, passing in { a: false, c: true } will\n * change the pin's status to { a: false, b: true, c: true }\n * @param {Object} status\n */\n setStatus(status) {\n Object.assign(this._status, status);\n this._pin.setProperties(this._propertiesForStatus(this._status));\n }\n\n _hideIfOffscreen() {\n const isVisible = this._map.getBounds().contains(this._coordinate);\n\n if (this._hidden && isVisible) {\n this._pin.setMap(this._map, null);\n } else if (!this._hidden && !isVisible) {\n this._pin.setMap(null, this._map);\n }\n\n this._hidden = !isVisible;\n }\n}\n\nexport {\n MapPinOptions,\n MapPin,\n PinProperties\n};\n","import { Unit, Projection } from '../Geo/constants.js';\nimport { Coordinate } from '../Geo/Coordinate.js';\nimport { GeoBounds } from '../Geo/GeoBounds.js';\nimport { Type, assertType, assertInstance } from '../Util/Assertions.js';\nimport { MapPinOptions } from './MapPin.js';\nimport { MapProvider } from './MapProvider.js';\nimport { ProviderMapOptions } from './ProviderMap.js';\nimport ZoomTriggers from './ZoomTriggers.js';\nimport PanTriggers from './PanTriggers.js';\n\n/**\n * The maximum percent of the map height or width that can be taken up by padding.\n * It's a number arbitrarily close to 1, because if total padding is >= 1 there's no space for pins.\n * This shouldn't need to be changed. To set a Map's padding use {@link Map#setPadding}.\n * @memberof Map\n * @inner\n * @constant {number}\n * @default\n */\nconst MAX_PADDING = 0.98;\n\n/**\n * Padding values are given in pixels as a number or a function that returns a number.\n * They need to be converted to a non-negative fraction of the map's current height or width.\n * @param {number|Map~paddingFunction} value Minimum number of pixels between the map's edge and a pin\n * @param {number} basis The measurement that the padding will be a fraction of\n * @returns {number} The padding value as a fraction of basis\n */\nfunction normalizePadding(value, basis) {\n return Math.max(typeof value == Type.FUNCTION ? value() : value || 0, 0) / basis;\n}\n\n/**\n * {@link Map} options class\n */\nclass MapOptions {\n /**\n * Initialize with default options\n */\n constructor() {\n this.controlEnabled = true;\n this.defaultCenter = new Coordinate(39.83, -98.58); // Center of the USA\n this.defaultZoom = 4;\n this.legendPins = [];\n this.padding = { bottom: () => 50, left: () => 50, right: () => 50, top: () => 50 };\n this.panHandler = (previousBounds, currentBounds) => {};\n this.panStartHandler = currentBounds => {};\n this.dragEndHandler = () => {};\n this.zoomChangedHandler = () => {};\n this.zoomEndHandler = () => {};\n this.canvasClickHandler = () => {};\n this.provider = null;\n this.providerOptions = {};\n this.singlePinZoom = 14;\n this.wrapper = null;\n this.locale = 'en';\n }\n\n /**\n * @param {string} locale The locale used in map\n */\n withLocale(locale) {\n this.locale = locale;\n return this;\n }\n\n /**\n * @param {boolean} controlEnabled Whether the user can move and zoom the map\n * @returns {MapOptions}\n */\n withControlEnabled(controlEnabled) {\n this.controlEnabled = controlEnabled;\n return this;\n }\n\n /**\n * @param {Coordinate} defaultCenter The center on initial load and when calling {@link Map#fitCoordinates} with an empty array\n * @returns {MapOptions}\n */\n withDefaultCenter(defaultCenter) {\n this.defaultCenter = new Coordinate(defaultCenter);\n return this;\n }\n\n /**\n * @param {number} defaultZoom The zoom on initial load and when calling {@link Map#fitCoordinates} with an empty array\n * @returns {MapOptions}\n */\n withDefaultZoom(defaultZoom) {\n this.defaultZoom = defaultZoom;\n return this;\n }\n\n /**\n * @todo GENERATOR TODO Map legend not yet implemented\n * @param {MapPin[]} legendPins Pins used to construct the map legend\n * @returns {MapOptions}\n */\n withLegendPins(legendPins) {\n this.legendPins = Array.from(legendPins);\n return this;\n }\n\n /**\n * Padding is used by {@link Map#fitCoordinates}.\n * Padding can either be constant values or funtions that return a padding value.\n * See {@link Map#setPadding} for more information.\n * @param {Object} padding\n * @param {number|Map~paddingFunction} padding.bottom Minimum number of pixels between the map's bottom edge and a pin\n * @param {number|Map~paddingFunction} padding.left Minimum number of pixels between the map's left edge and a pin\n * @param {number|Map~paddingFunction} padding.right Minimum number of pixels between the map's right edge and a pin\n * @param {number|Map~paddingFunction} padding.top Minimum number of pixels between the map's top edge and a pin\n * @returns {MapOptions}\n * @see {@link Map#setPadding}\n */\n withPadding(padding) {\n this.padding = padding;\n return this;\n }\n\n /**\n * @typedef Map~panHandler\n * @function\n * @param {GeoBounds} previousBounds The map bounds before the move\n * @param {GeoBounds} currentBounds The map bounds after the move\n */\n\n /**\n * @param {Map~panHandler} panHandler\n * @returns {MapOptions}\n */\n withPanHandler(panHandler) {\n assertType(panHandler, Type.FUNCTION);\n\n this.panHandler = panHandler;\n return this;\n }\n\n /**\n * @typedef Map~panStartHandler\n * @function\n * @param {GeoBounds} currentBounds The map bounds before the move\n */\n\n /**\n * @param {Map~panStartHandler} panStartHandler\n * @returns {MapOptions}\n */\n withPanStartHandler(panStartHandler) {\n assertType(panStartHandler, Type.FUNCTION);\n\n this.panStartHandler = panStartHandler;\n return this;\n }\n\n /**\n * @typedef Map~dragEndHandler\n * @function\n */\n\n /**\n * @param {Map~dragEndHandler} dragEndHandler\n * @returns {MapOptions}\n */\n withDragEndHandler (dragEndHandler) {\n assertType(dragEndHandler, Type.FUNCTION);\n\n this.dragEndHandler = dragEndHandler;\n return this;\n }\n\n /**\n * @typedef Map~zoomChangedHandler\n * @function\n */\n\n /**\n * @param {Map~zoomChangedHandler} zoomChangedHandler\n * @returns {MapOptions}\n */\n withZoomChangedHandler (zoomChangedHandler) {\n assertType(zoomChangedHandler, Type.FUNCTION);\n\n this.zoomChangedHandler = zoomChangedHandler;\n return this;\n }\n\n /**\n * @typedef Map~zoomEndHandler\n * @function\n */\n\n /**\n * @param {Map~zoomEndHandler} zoomEndHandler\n * @returns {MapOptions}\n */\n withZoomEndHandler (zoomEndHandler) {\n assertType(zoomEndHandler, Type.FUNCTION);\n\n this.zoomEndHandler = zoomEndHandler;\n return this;\n }\n\n /**\n * @typedef Map~canvasClickHandler\n * @function\n */\n\n /**\n * @param {Map~canvasClickHandler} canvasClickHandler\n * @returns {MapOptions}\n */\n withCanvasClickHandler (mapCanvasClickHandler) {\n assertType(canvasClickHandler, Type.FUNCTION);\n\n this.canvasClickHandler = canvasClickHandler;\n return this;\n }\n\n /**\n * The MapProvider must be loaded before constructing a Map with it.\n * @param {MapProvider} provider\n * @returns {MapOptions}\n */\n withProvider(provider) {\n assertInstance(provider, MapProvider);\n\n this.provider = provider;\n return this;\n }\n\n /**\n * @param {Object} providerOptions A free-form object used to set any additional provider-specific options in the {@link ProviderMap}\n * @returns {MapOptions}\n */\n withProviderOptions(providerOptions) {\n this.providerOptions = providerOptions;\n return this;\n }\n\n /**\n * @param {number} singlePinZoom The zoom when calling {@link Map#fitCoordinates} with an array containing one coordinate\n * @returns {MapOptions}\n */\n withSinglePinZoom(singlePinZoom) {\n this.singlePinZoom = singlePinZoom;\n return this;\n }\n\n /**\n * @param {HTMLElement} wrapper The wrapper element that the map will be inserted into. The existing contents of the element will be removed.\n * @returns {MapOptions}\n */\n withWrapper(wrapper) {\n assertInstance(wrapper, HTMLElement);\n\n this.wrapper = wrapper;\n return this;\n }\n\n /**\n * @returns {Map}\n */\n build() {\n return new Map(this);\n }\n}\n\n/**\n * An interactive map that supports various map providers, such as Google Maps and Mapbox, with a\n * single API. Code written using this class functions approximately the same regardless of the map\n * provider used. Any map provider can be supported via a {@link MapProvider} instance.\n */\nclass Map {\n /**\n * The {@link MapProvider} for the map must be loaded before calling this constructor.\n * @param {MapOptions} options\n */\n constructor(options) {\n assertInstance(options, MapOptions);\n assertInstance(options.provider, MapProvider);\n assertInstance(options.wrapper, HTMLElement);\n\n if (!options.provider.loaded) {\n throw new Error(`'${options.provider.constructor.name}' is not loaded. The MapProvider must be loaded before calling Map constructor.`);\n }\n\n this._defaultCenter = options.defaultCenter;\n this._defaultZoom = options.defaultZoom;\n this._legendPins = options.legendPins;\n this._provider = options.provider;\n this._singlePinZoom = options.singlePinZoom;\n this._wrapper = options.wrapper;\n\n this._padding = {};\n this.setPadding(options.padding);\n\n this._cachedBounds = null; // Cached map bounds, invalidated on map move\n\n this._resolveIdle = () => {};\n this._resolveMoving = () => {};\n this._idlePromise = Promise.resolve();\n this._setIdle();\n this._zoomTrigger = ZoomTriggers.UNSET;\n this._panTrigger = PanTriggers.UNSET;\n\n this.setPanHandler(options.panHandler);\n this.setPanStartHandler(options.panStartHandler);\n this.setDragEndHandler(options.dragEndHandler);\n this.setZoomChangedHandler(options.zoomChangedHandler);\n this.setZoomEndHandler(options.zoomEndHandler);\n this.setCanvasClickHandler(options.canvasClickHandler);\n\n // Remove all child elements of wrapper\n while (this._wrapper.firstChild) {\n this._wrapper.removeChild(this._wrapper.lastChild);\n }\n\n this._panHandlerRunning = false;\n this._panStartHandlerRunning = false;\n this._map = new ProviderMapOptions(options.provider, this._wrapper)\n .withControlEnabled(options.controlEnabled)\n .withPanHandler(() => this.panHandler())\n .withDragEndHandler(() => this._dragEndHandler())\n .withZoomChangedHandler(() => this.zoomChangedHandler())\n .withZoomEndHandler(() => this.zoomEndHandler())\n .withCanvasClickHandler(() => this._canvasClickHandler())\n .withPanStartHandler(() => this.panStartHandler())\n .withProviderOptions(options.providerOptions)\n .withLocale(options.locale)\n .build();\n\n this.setZoomCenter(this._defaultZoom, this._defaultCenter);\n this._currentBounds = this.getBounds();\n }\n\n /**\n * Set the map bounds so that all the given coordinates are within the [padded]{@link MapOptions#withPadding} view.\n * @param {Coordinate[]} coordinates\n * @param {boolean} [animated=false] Whether to transition smoothly to the new bounds\n * @param {number} [maxZoom=singlePinZoom] The max zoom level after fitting. Uses [singlePinZoom]{@link MapOptions#withSinglePinZoom} by default.\n */\n fitCoordinates(coordinates, animated = false, maxZoom = this._singlePinZoom) {\n if (!coordinates.length) {\n this.setZoomCenter(this._defaultZoom, this._defaultCenter, animated);\n } else if (coordinates.length == 1) {\n this.setZoomCenter(this._singlePinZoom, coordinates[0], animated);\n } else {\n this.setBounds(GeoBounds.fit(coordinates), animated, this._padding, maxZoom);\n }\n }\n\n /**\n * Get the current visible region of the map. If the map is zoomed out to show multiple copies of the\n * world, the longitude bounds will be outside [-180, 180) but the center will always be within [-180, 180).\n * @returns {GeoBounds}\n */\n getBounds() {\n if (!this._cachedBounds) {\n const pixelHeight = this._wrapper.offsetHeight;\n const pixelWidth = this._wrapper.offsetWidth;\n const zoom = this.getZoom();\n const center = this.getCenter();\n\n const degreesPerPixel = 360 / Math.pow(2, zoom + 8);\n const width = pixelWidth * degreesPerPixel;\n const height = pixelHeight * degreesPerPixel;\n\n this._cachedBounds = new GeoBounds(center, center);\n this._cachedBounds.ne.add(height / 2, width / 2, Unit.DEGREE, Projection.MERCATOR);\n this._cachedBounds.sw.add(-height / 2, -width / 2, Unit.DEGREE, Projection.MERCATOR);\n\n this.moving().then(() => this._cachedBounds = null);\n }\n\n return new GeoBounds(this._cachedBounds.sw, this._cachedBounds.ne);\n }\n\n /**\n * @returns {Coordinate} The center of the current visible region of the map\n */\n getCenter() {\n return this._map.getCenter();\n }\n\n /**\n * Intended for internal use only\n * @returns {ProviderMap} The map's ProviderMap instance\n */\n getProviderMap() {\n return this._map;\n }\n\n /**\n * To standardize zoom for all providers, zoom level is calculated with this formula:\n * zoom = log2(pixel width of equator) - 8.\n * At zoom = 0, the entire world is 256 pixels wide.\n * At zoom = 1, the entire world is 512 pixels wide.\n * Zoom 2 → 1024 pixels, zoom 3 → 2056 pixels, etc.\n * Negative and non-integer zoom levels are valid and follow the formula.\n * @returns {number} The current zoom level of the map\n */\n getZoom() {\n return this._map.getZoom();\n }\n\n /**\n * Returns when the map is not moving.\n * Use map.idle().then(callback) to run callback immediately if the map is currently idle\n * or once the map becomes idle if it's not.\n * @async\n */\n async idle() {\n await this._idlePromise;\n }\n\n /**\n * Returns when the map is moving.\n * Use map.moving().then(callback) to run callback immediately if the map is currently moving\n * or once the map starts moving if it's not.\n * @async\n */\n async moving() {\n await this._movingPromise;\n }\n\n /**\n * @returns {MapPinOptions} A MapPinOptions instance with the same provider as this map\n */\n newPinOptions() {\n return new MapPinOptions().withProvider(this._provider);\n }\n\n /**\n * Called when the map has finished moving, at most once per animation frame.\n * Passes the current and previous bounds to the custom pan handler given by {@link MapOptions#withPanHandler}\n */\n panHandler() {\n // Throttle panHandler to run at most once per frame\n if (this._panHandlerRunning) {\n return;\n }\n\n this._panHandlerRunning = true;\n\n requestAnimationFrame(() => {\n const previousBounds = this._currentBounds;\n this._currentBounds = this.getBounds();\n\n this._panHandler(previousBounds, new GeoBounds(\n new Coordinate(this._currentBounds.sw),\n new Coordinate(this._currentBounds.ne)\n ), this.getPanTrigger());\n\n this._panHandlerRunning = false;\n this.setPanTrigger(PanTriggers.UNSET);\n });\n\n this._setIdle();\n }\n\n /**\n * Called when the map has started moving, at most once per animation frame.\n * Passes the current bounds to the custom pan handler given by {@link MapOptions#withPanStartHandler}\n */\n panStartHandler() {\n // Throttle panStartHandler to run at most once per frame\n if (this._panStartHandlerRunning) {\n return;\n }\n\n this._panStartHandlerRunning = true;\n\n // We assume that the pan trigger is the user if it was\n // left unset by our locator code\n if (this.getPanTrigger() === PanTriggers.UNSET) {\n this.setPanTrigger(PanTriggers.USER);\n }\n\n requestAnimationFrame(() => {\n this._panStartHandler(new GeoBounds(\n new Coordinate(this._currentBounds.sw),\n new Coordinate(this._currentBounds.ne)\n ), this.getPanTrigger());\n\n this._panStartHandlerRunning = false;\n });\n\n this._setMoving();\n }\n\n /**\n * Called when the map starts a zoom change\n */\n zoomChangedHandler() {\n // We assume that the zoom trigger is the user if it was\n // left unset by our locator code\n if (this.getZoomTrigger() === ZoomTriggers.UNSET) {\n this.setZoomTrigger(ZoomTriggers.USER);\n }\n\n this._zoomChangedHandler(this.getZoomTrigger());\n }\n\n /**\n * Called when the map ends a zoom change\n */\n zoomEndHandler() {\n this._zoomEndHandler(this.getZoomTrigger());\n\n if (this.getZoomTrigger() !== ZoomTriggers.UNSET) {\n this.setZoomTrigger(ZoomTriggers.UNSET);\n }\n }\n\n getVisibleCenter() {\n const visibleBounds = this.getVisibleBounds();\n const center = visibleBounds.getCenter();\n return center;\n }\n\n getVisibleRadius() {\n const visibleBounds = this.getVisibleBounds();\n return 1000 * visibleBounds.ne.distanceTo(this.getVisibleCenter(), Unit.KILOMETER);\n }\n\n getVisibleBounds() {\n const { ne, sw } = this.getBounds();\n const padding = this._padding;\n\n const pixelHeight = this._wrapper.offsetHeight;\n const pixelWidth = this._wrapper.offsetWidth;\n\n // Padding is normalized to a fraction of the map height or width\n let paddingBottom = normalizePadding(padding.bottom, pixelHeight);\n let paddingLeft = normalizePadding(padding.left, pixelWidth);\n let paddingRight = normalizePadding(padding.right, pixelWidth);\n let paddingTop = normalizePadding(padding.top, pixelHeight);\n\n const bounds = new GeoBounds(sw, ne);\n const nw = new Coordinate(bounds.ne.latitude, bounds.sw.longitude);\n const height = bounds.sw.distanceTo(nw, Unit.DEGREE, Projection.MERCATOR);\n const width = (bounds.ne.longitude - nw.longitude + 360) % 360;\n\n const newNorthEast = new Coordinate(ne);\n const newSouthWest = new Coordinate(sw);\n newNorthEast.add((-1 * paddingTop * height), (-1 * paddingRight * width), Unit.DEGREE, Projection.MERCATOR);\n newSouthWest.add((paddingBottom * height), (paddingLeft * width), Unit.DEGREE, Projection.MERCATOR);\n\n const paddedBounds = new GeoBounds(newSouthWest, newNorthEast);\n return paddedBounds;\n }\n\n coordinateIsInVisibleBounds(coordinate) {\n return this.getVisibleBounds().contains(coordinate);\n }\n\n setCenterWithPadding(coordinate, animated = false) {\n const { ne, sw } = this.getBounds();\n const padding = this._padding;\n\n const pixelHeight = this._wrapper.offsetHeight;\n const pixelWidth = this._wrapper.offsetWidth;\n\n // Padding is normalized to a fraction of the map height or width\n let paddingBottom = normalizePadding(padding.bottom, pixelHeight);\n let paddingLeft = normalizePadding(padding.left, pixelWidth);\n let paddingRight = normalizePadding(padding.right, pixelWidth);\n let paddingTop = normalizePadding(padding.top, pixelHeight);\n\n let horizontalPadding = paddingLeft + paddingRight;\n let verticalPadding = paddingBottom + paddingTop;\n\n if (horizontalPadding > MAX_PADDING) {\n paddingLeft *= MAX_PADDING / horizontalPadding;\n paddingRight *= MAX_PADDING / horizontalPadding;\n horizontalPadding = MAX_PADDING;\n }\n\n if (verticalPadding > MAX_PADDING) {\n paddingBottom *= MAX_PADDING / verticalPadding;\n paddingTop *= MAX_PADDING / verticalPadding;\n verticalPadding = MAX_PADDING;\n }\n\n const paddingInnerHeight = pixelHeight * (1 - verticalPadding);\n const paddingInnerWidth = pixelWidth * (1 - horizontalPadding);\n\n const bounds = new GeoBounds(sw, ne);\n const nw = new Coordinate(bounds.ne.latitude, bounds.sw.longitude);\n\n const height = bounds.sw.distanceTo(nw, Unit.DEGREE, Projection.MERCATOR);\n const width = (bounds.ne.longitude - nw.longitude + 360) % 360;\n\n const center = new Coordinate(coordinate);\n const deltaLat = (paddingTop - paddingBottom) / 2 * height;\n const deltaLon = (paddingRight - paddingLeft) / 2 * width;\n\n center.add(deltaLat, deltaLon, Unit.DEGREE, Projection.MERCATOR);\n\n this.setCenter(center, animated);\n }\n\n /**\n * @param {Object} bounds\n * @param {Object} bounds.ne The northeast corner of the bounds -- must be convertible to {@link Coordinate}\n * @param {Object} bounds.sw The southwest corner of the bounds -- must be convertible to {@link Coordinate}\n * @param {boolean} [animated=false] Whether to transition smoothly to the new bounds\n * @param {Object} [padding={}]\n * @param {number|Map~paddingFunction} padding.bottom Minimum number of pixels between the map's bottom edge and a pin\n * @param {number|Map~paddingFunction} padding.left Minimum number of pixels between the map's left edge and a pin\n * @param {number|Map~paddingFunction} padding.right Minimum number of pixels between the map's right edge and a pin\n * @param {number|Map~paddingFunction} padding.top Minimum number of pixels between the map's top edge and a pin\n * @param {number} [maxZoom=Infinity]\n */\n setBounds({ ne, sw }, animated = false, padding = {}, maxZoom = Infinity) {\n const pixelHeight = this._wrapper.offsetHeight;\n const pixelWidth = this._wrapper.offsetWidth;\n\n // Padding is normalized to a fraction of the map height or width\n let paddingBottom = normalizePadding(padding.bottom, pixelHeight);\n let paddingLeft = normalizePadding(padding.left, pixelWidth);\n let paddingRight = normalizePadding(padding.right, pixelWidth);\n let paddingTop = normalizePadding(padding.top, pixelHeight);\n\n let horizontalPadding = paddingLeft + paddingRight;\n let verticalPadding = paddingBottom + paddingTop;\n\n if (horizontalPadding > MAX_PADDING) {\n paddingLeft *= MAX_PADDING / horizontalPadding;\n paddingRight *= MAX_PADDING / horizontalPadding;\n horizontalPadding = MAX_PADDING;\n }\n\n if (verticalPadding > MAX_PADDING) {\n paddingBottom *= MAX_PADDING / verticalPadding;\n paddingTop *= MAX_PADDING / verticalPadding;\n verticalPadding = MAX_PADDING;\n }\n\n const paddingInnerHeight = pixelHeight * (1 - verticalPadding);\n const paddingInnerWidth = pixelWidth * (1 - horizontalPadding);\n\n const bounds = new GeoBounds(sw, ne);\n const nw = new Coordinate(bounds.ne.latitude, bounds.sw.longitude);\n\n const height = bounds.sw.distanceTo(nw, Unit.DEGREE, Projection.MERCATOR);\n const width = (bounds.ne.longitude - nw.longitude + 360) % 360;\n\n const newHeight = Math.max(height, width * paddingInnerHeight / paddingInnerWidth) / (1 - verticalPadding);\n const newWidth = Math.max(width, height * paddingInnerWidth / paddingInnerHeight) / (1 - horizontalPadding);\n\n const center = bounds.getCenter(Projection.MERCATOR);\n const deltaLat = (paddingTop - paddingBottom) / 2 * newHeight;\n const deltaLon = (paddingRight - paddingLeft) / 2 * newWidth;\n\n center.add(deltaLat, deltaLon, Unit.DEGREE, Projection.MERCATOR);\n\n const zoom = Math.min(Math.log2(pixelWidth * 360 / newWidth) - 8, maxZoom);\n\n this.setZoomCenter(zoom, center, animated);\n }\n\n /**\n * @param {Object} coordinate Must be convertible to {@link Coordinate}\n * @param {boolean} [animated=false] Whether to transition smoothly to the new center\n */\n setCenter(coordinate, animated = false) {\n this.setPanTrigger(PanTriggers.API);\n this._map.setCenter(new Coordinate(coordinate), animated);\n }\n\n /**\n * @typedef Map~paddingFunction\n * @function\n * @returns {number} Minimum number of pixels between the map's edge and a pin\n */\n\n /**\n * Padding is used by {@link Map#fitCoordinates}.\n * Padding can either be constant values or funtions that return a padding value.\n * Constant values are good if the map should always have the same padding on every breakpoint.\n * Padding functions are useful if the map should have different padding at different breakpoints or layouts.\n * Inside the function, you can check window.innerWidth or any other condition before returning a number.\n * @param {Object} padding\n * @param {number|Map~paddingFunction} padding.bottom Minimum number of pixels between the map's bottom edge and a pin\n * @param {number|Map~paddingFunction} padding.left Minimum number of pixels between the map's left edge and a pin\n * @param {number|Map~paddingFunction} padding.right Minimum number of pixels between the map's right edge and a pin\n * @param {number|Map~paddingFunction} padding.top Minimum number of pixels between the map's top edge and a pin\n * @returns {MapOptions}\n */\n setPadding({\n bottom = this._padding.bottom,\n left = this._padding.left,\n right = this._padding.right,\n top = this._padding.top\n }) {\n this._padding = { bottom, left, right, top };\n return this;\n }\n\n /**\n * @param {Map~panHandler} panHandler\n */\n setPanHandler(panHandler) {\n assertType(panHandler, Type.FUNCTION);\n\n this._panHandler = panHandler;\n }\n\n /**\n * @param {Map~panStartHandler} panStartHandler\n */\n setPanStartHandler(panStartHandler) {\n assertType(panStartHandler, Type.FUNCTION);\n\n this._panStartHandler = panStartHandler;\n }\n\n /**\n * @param {Map~dragEndHandler} dragEndHandler\n */\n setDragEndHandler(dragEndHandler) {\n assertType(dragEndHandler, Type.FUNCTION);\n\n this._dragEndHandler = dragEndHandler;\n }\n\n /**\n * @param {Map~zoomChangedHandler} zoomChangedHandler\n */\n setZoomChangedHandler(zoomChangedHandler) {\n assertType(zoomChangedHandler, Type.FUNCTION);\n\n this._zoomChangedHandler = zoomChangedHandler;\n }\n\n /**\n * @param {Map~zoomEndHandler} zoomEndHandler\n */\n setZoomEndHandler(zoomEndHandler) {\n assertType(zoomEndHandler, Type.FUNCTION);\n\n this._zoomEndHandler = zoomEndHandler;\n }\n\n /**\n * @param {Map~canvasClickHandler} canvasClickHandler\n */\n setCanvasClickHandler(canvasClickHandler) {\n assertType(canvasClickHandler, Type.FUNCTION);\n\n this._canvasClickHandler = canvasClickHandler;\n }\n\n /**\n * @param {number} zoom\n * @param {boolean} [animated=false] Whether to transition smoothly to the new zoom\n * @see {@link Map#getZoom}\n */\n setZoom(zoom, animated = false) {\n this.setZoomTrigger(ZoomTriggers.API);\n this._map.setZoom(zoom, animated);\n }\n\n /**\n * @param {number} zoom\n * @param {Object} center Must be convertible to {@link Coordinate}\n * @param {boolean} [animated=false] Whether to transition smoothly to the new bounds\n * @see {@link Map#setZoom}\n * @see {@link Map#setCenter}\n */\n setZoomCenter(zoom, center, animated = false) {\n this.setZoomTrigger(ZoomTriggers.API);\n this.setPanTrigger(PanTriggers.API);\n this._map.setZoomCenter(zoom, center, animated);\n }\n\n /**\n * The zoom trigger is the initiator of the zoom, this can be from a user\n * on a double click, for example, or from the api when fitting the map around\n * a cluster or a set of results.\n * @param {ZoomTriggers} zoomTrigger\n */\n setZoomTrigger(zoomTrigger) {\n this._zoomTrigger = zoomTrigger;\n }\n\n /**\n * @return {ZoomTriggers} The trigger for the last zoom\n */\n getZoomTrigger() {\n return this._zoomTrigger;\n }\n\n /**\n * Sets the PanTrigger which indicates the reason for the most recent map pan\n * @param {PanTriggers} panTrigger\n */\n setPanTrigger(panTrigger) {\n this._panTrigger = panTrigger;\n }\n\n /**\n * @return {PanTriggers} The trigger for the last pan\n */\n getPanTrigger() {\n return this._panTrigger;\n }\n\n /**\n * Set the map state to idle\n */\n _setIdle() {\n this._resolveMoving();\n this._movingPromise = new Promise(resolve => this._resolveMoving = resolve);\n this._resolveIdle();\n }\n\n /**\n * Set the map state to moving\n */\n _setMoving() {\n this._resolveIdle();\n this._idlePromise = new Promise(resolve => this._resolveIdle = resolve);\n this._resolveMoving();\n }\n}\n\nexport {\n MapOptions,\n Map\n};\n","import { Unit, Projection } from '../Geo/constants.js';\nimport { GeoBounds } from '../Geo/GeoBounds.js';\nimport { PinOptions } from '../Maps/MapPin.js';\nimport { PinProperties } from '../Maps/PinProperties.js';\nimport { Type, assertType, assertInstance } from '../Util/Assertions.js';\n\n/**\n * Represents a cluster of {@link MapPin}s on a map.\n * @member {MapPin} clusterPin\n * @member {MapPin[]} pins\n * @see {PinCluster}\n */\nclass PinCluster {\n /**\n * @param {MapPin} clusterPin\n * @param {MapPin[]} pins\n */\n constructor(clusterPin, pins) {\n this.clusterPin = clusterPin;\n this.pins = [...pins];\n }\n\n /**\n * Returns true if the cluster contains the pin with the given id, false otherwise\n *\n * @param {string} id The unique identifier for the pin\n * @returns {boolean}\n */\n containsPin(id) {\n return this.pins.filter(pin => pin.getId() === id).length;\n }\n}\n\n/**\n * {@link PinClusterer} options class\n */\nclass PinClustererOptions {\n /**\n * Initialize with default options\n */\n constructor() {\n this.autoUpdate = true;\n this.clickHandler = cluster => {};\n this.clusterRadius = 50;\n this.clusterZoomAnimated = true;\n this.clusterZoomMax = Infinity;\n this.hideOffscreen = false;\n this.hoverHandler = (cluster, hovered) => {};\n this.iconTemplates = {\n 'default': null,\n 'hovered': null\n };\n this.minClusterSize = 2;\n this.propertiesForStatus = status => new PinProperties()\n .setAnchorX(0.5)\n .setAnchorY(0.5)\n .setHeight(33)\n .setIcon(status.hovered || status.focused ? 'hovered' : 'default')\n .setWidth(33);\n this.updateHandler = clusters => {};\n this.zoomOnClick = true;\n }\n\n /**\n * @param {boolean} autoUpdate Whether the clusters automatically update when the map zoom changes\n * @returns {PinClustererOptions}\n */\n withAutoUpdate(autoUpdate) {\n this.autoUpdate = autoUpdate;\n return this;\n }\n\n /**\n * @typedef PinClusterer~clickHandler\n * @function\n * @param {PinCluster} cluster The cluster whose pin was clicked\n */\n\n /**\n * @param {PinClusterer~clickHandler} clickHandler Function that runs when a pin cluster is clicked\n * @returns {PinClustererOptions}\n */\n withClickHandler(clickHandler) {\n assertType(clickHandler, Type.FUNCTION);\n\n this.clickHandler = clickHandler;\n return this;\n }\n\n /**\n * @param {number} clusterRadius The max pixel distance from the center of a cluster to any pin in the cluster\n * @returns {PinClustererOptions}\n */\n withClusterRadius(clusterRadius) {\n this.clusterRadius = clusterRadius;\n return this;\n }\n\n /**\n * @param {boolean} clusterZoomAnimated Whether to animate map zoom on cluster click\n * @returns {PinClustererOptions}\n */\n withClusterZoomAnimated(clusterZoomAnimated) {\n this.clusterZoomAnimated = clusterZoomAnimated;\n return this;\n }\n\n /**\n * @param {number} clusterZoomMax Max zoom level for the map after clickimg a cluster\n * @returns {PinClustererOptions}\n */\n withClusterZoomMax(clusterZoomMax) {\n this.clusterZoomMax = clusterZoomMax;\n return this;\n }\n\n /**\n * @param {boolean} hideOffscreen If true, a cluster pin will only be rendered if it's in the visible portion of the map to improve performance\n * @returns {PinClustererOptions}\n */\n withHideOffscreen(hideOffscreen) {\n this.hideOffscreen = hideOffscreen;\n return this;\n }\n\n /**\n * @typedef PinClusterer~hoverHandler\n * @function\n * @param {PinCluster} cluster The cluster whose pin was hovered\n * @param {boolean} hovered Whether the cluster pin is currently hovered\n */\n\n /**\n * @param {PinClusterer~hoverHandler} hoverHandler Function that runs when a pin cluster is hovered\n * @returns {PinClustererOptions}\n */\n withHoverHandler(hoverHandler) {\n assertType(hoverHandler, Type.FUNCTION);\n\n this.hoverHandler = hoverHandler;\n return this;\n }\n\n /**\n * @typedef PinClusterer~iconTemplate\n * @function\n * @param {Object} data\n * @param {Object} data.pinCount The number of pins in the cluster\n * @returns {string} The URL or data URI of the icon image\n */\n\n /**\n * @param {string} key The unique name for the icon, used in {@link PinProperties#getIcon} and {@link PinProperties#setIcon}\n * @param {PinClusterer~iconTemplate} iconTemplate A template function that returns the pin icon for a cluster\n * @returns {PinClustererOptions}\n */\n withIconTemplate(key, iconTemplate) {\n assertType(iconTemplate, Type.FUNCTION);\n\n this.iconTemplates[key] = iconTemplate;\n return this;\n }\n\n /**\n * @param {number} minClusterSize The minimum number of pins in a cluster\n * @returns {PinClustererOptions}\n */\n withMinClusterSize(minClusterSize) {\n this.minClusterSize = minClusterSize;\n return this;\n }\n\n /**\n * @param {MapPin~propertiesForStatus} propertiesForStatus The propertiesForStatus function for the cluster pins\n * @returns {PinClustererOptions}\n */\n withPropertiesForStatus(propertiesForStatus) {\n assertType(propertiesForStatus, Type.FUNCTION);\n\n this.propertiesForStatus = propertiesForStatus;\n return this;\n }\n\n /**\n * @typedef PinClusterer~updateHandler\n * @function\n * @param {PinCluster[]} clusters All pin clusters after the update\n */\n\n /**\n * @param {PinClusterer~updateHandler} updateHandler Function that runs after the clusters are updated\n * @returns {PinClustererOptions}\n */\n withUpdateHandler(updateHandler) {\n assertType(updateHandler, Type.FUNCTION);\n\n this.updateHandler = updateHandler;\n return this;\n }\n\n /**\n * @param {boolean} zoomOnClick Whether to zoom in to the pins in a cluster on cluster click\n * @returns {PinClustererOptions}\n */\n withZoomOnClick(zoomOnClick) {\n this.zoomOnClick = zoomOnClick;\n return this;\n }\n\n /**\n * @returns {PinClusterer}\n */\n build() {\n return new PinClusterer(this);\n }\n}\n\n/**\n * Cluster {@link MapPin}s on a {@link Map} for any provider. PinClusterer can automatically update\n * clusters as needed when the map changes. Clicking on a cluster expands it and fits the map to\n * the pins. Clustering behavior can be customized by changing the radius and minimum pin count.\n */\nclass PinClusterer {\n /**\n * @param {PinClustererOptions} options\n */\n constructor(options) {\n assertInstance(options, PinClustererOptions);\n\n this._autoUpdate = options.autoUpdate;\n this._clickHandler = options.clickHandler;\n this._clusterRadius = options.clusterRadius;\n this._clusterZoomAnimated = options.clusterZoomAnimated;\n this._clusterZoomMax = options.clusterZoomMax;\n this._hideOffscreen = options.hideOffscreen;\n this._hoverHandler = options.hoverHandler;\n this._iconTemplates = options.iconTemplates;\n this._minClusterSize = options.minClusterSize;\n this._propertiesForStatus = options.propertiesForStatus;\n this._updateHandler = options.updateHandler;\n this._zoomOnClick = options.zoomOnClick;\n\n this._clusters = [];\n this.reset(false);\n }\n\n /**\n * @param {MapPin[]} pins The pins to be clustered. Any other pins on the map will be ignored.\n * @param {?Map} map The {@link Map} to cluster the pins on. If not specified, it will be the map that all the pins are currently on. If not all pins are on the same map, this function will throw an error.\n * @param {Geo.Projection} [mapProjection=Projection.MERCATOR] The projection of the map that the pins will be clustered on\n */\n cluster(pins, map = null, mapProjection = Projection.MERCATOR) {\n this.reset();\n\n if (!pins.length) {\n return;\n }\n\n if (!map) {\n // If no map was provided, infer the map from the pins.\n map = pins[0].getMap();\n\n // All pins must be on the same map.\n if (pins.find(pin => pin.getMap() !== map)) {\n throw new Error('Error: All pins must be on the same map');\n }\n\n // If map is null for all pins, the pins are all not on any map.\n if (!map) {\n throw new Error('Error: Pins are not on a map');\n }\n }\n\n this._map = map;\n this._mapProjection = mapProjection;\n this._pins = pins;\n\n this.update(true);\n\n if (this._autoUpdate) {\n const autoUpdater = async () => {\n // Wait for the map to move, then stop moving\n await map.moving();\n await map.idle();\n\n // Make sure that the auto-updater didn't get reset while waiting\n if (this._autoUpdater == autoUpdater) {\n this.update();\n autoUpdater();\n }\n };\n\n this._autoUpdater = autoUpdater;\n autoUpdater();\n }\n }\n\n /**\n * @returns {PinCluster[]} Current pin clusters\n */\n getClusters() {\n return [...this._clusters];\n }\n\n /**\n * @param {boolean} [restorePins=true] Whether to put pins currently in clusters back on the map\n */\n reset(restorePins = true) {\n if (restorePins) {\n this._pins.forEach(pin => pin.setMap(this._map));\n }\n\n this._autoUpdater = null;\n this._currentZoom = null;\n this._map = null;\n this._mapProjection = null;\n this._pins = [];\n\n this.update(true);\n }\n\n /**\n * @param {boolean} [force=false] If true, bypass checks that skip the update if deemed not necessary (e.g. if the zoom hasn't changed)\n */\n update(force = false) {\n if (!force && this._map && this._map.getZoom() == this._currentZoom) {\n return;\n }\n\n this._clusters.forEach(cluster => cluster.clusterPin.remove());\n this._clusters = [];\n\n if (!this._map || !this._pins.length) {\n return;\n }\n\n for (const pinCluster of this._generateClusters(this._pins)) {\n if (pinCluster.length < this._minClusterSize) {\n pinCluster.forEach(pin => pin.setMap(this._map));\n } else {\n const coordinates = pinCluster.map(pin => pin.getCoordinate());\n const pinOptions = this._map.newPinOptions()\n .withCoordinate(GeoBounds.fit(coordinates).getCenter(this._mapProjection))\n .withHideOffscreen(this._hideOffscreen)\n .withPropertiesForStatus(status => this._propertiesForStatus(status, pinCluster.length));\n\n // Build cluster icon(s) from template\n for (const [icon, template] of Object.entries(this._iconTemplates)) {\n pinOptions.withIcon(icon, template({ pinCount: pinCluster.length }));\n }\n\n const clusterPin = pinOptions.build();\n const newCluster = new PinCluster(clusterPin, pinCluster);\n\n // Remove all pins in cluster from map, replace with cluster pin\n pinCluster.forEach(pin => pin.remove());\n clusterPin.setMap(this._map);\n this._clusters.push(newCluster);\n\n // When clicked, fit map to all the pins in the cluster and update clusters\n clusterPin.setFocusHandler(focused => {\n clusterPin.setStatus({ focused });\n this._hoverHandler(newCluster, focused);\n });\n clusterPin.setHoverHandler(hovered => {\n clusterPin.setStatus({ hovered });\n this._hoverHandler(newCluster, hovered);\n });\n clusterPin.setClickHandler(async () => {\n if (this._zoomOnClick) {\n const movingPromise = this._map.moving();\n\n this._map.fitCoordinates(coordinates, this._clusterZoomAnimated, this._clusterZoomMax);\n await movingPromise;\n await this._map.idle();\n this.update();\n }\n\n this._clickHandler(newCluster);\n });\n }\n }\n\n // Save the zoom level of the clusters -- they don't have to be updated if zoom doesn't change\n this._currentZoom = this._map.getZoom();\n this._updateHandler(this.getClusters());\n }\n\n /**\n * Generate clusters of pins based on the options set by the {@PinClustererOptions} for this instance.\n * The input is a set (array) of {@link MapPin}s and the output is a set (array) of groups of\n * the pins such that:\n *\n * - Each pin is in exactly one cluster\n * - Each pin is at most {@link PinClustererOptions~withClusterRadius|clusterRadius} pixels from the center of the cluster, as determined by the map projection and zoom level\n * - Each cluster has at least one pin\n *\n * @protected\n * @param {MapPin[]} pins\n * @returns {MapPin[][]} An array of clusters (arrays) of pins. All pins are in exactly one cluster.\n */\n _generateClusters(pins) {\n const clusterRadiusRadians = this._clusterRadius * Math.PI / 2 ** (this._map.getZoom() + 7);\n const pinsInRadius = pins.map((pin, index) => [index]);\n const pinClusters = [];\n\n // Calculate the distances of each pin to each other pin\n pins.forEach((pin, index) => {\n for (let otherIndex = index; otherIndex < pins.length; otherIndex++) {\n if (otherIndex != index) {\n const distance = pin.getCoordinate().distanceTo(pins[otherIndex].getCoordinate(), Unit.RADIAN, this._mapProjection);\n\n if (distance <= clusterRadiusRadians) {\n pinsInRadius[index].push(otherIndex);\n pinsInRadius[otherIndex].push(index);\n }\n }\n }\n });\n\n // Loop until there are no pins left to cluster\n while (true) {\n let maxCount = 0;\n let chosenIndex;\n\n // Find the pin with the most other pins within radius\n pinsInRadius.forEach((pinGroup, index) => {\n if (pinGroup.length > maxCount) {\n maxCount = pinGroup.length;\n chosenIndex = index;\n }\n });\n\n // If there are no more pins within clustering radius of another pin, break\n if (!maxCount) {\n break;\n }\n\n // Add pins to a new cluster, and remove them from pinsInRadius\n const chosenPins = pinsInRadius[chosenIndex];\n const cluster = [];\n\n pinsInRadius[chosenIndex] = [];\n\n for (const index of chosenPins) {\n const pinGroup = pinsInRadius[index];\n\n // Add the pin to this cluster and remove it from consideration for other clusters\n cluster.push(pins[index]);\n pinsInRadius[index] = [];\n pinGroup.forEach(otherIndex => pinsInRadius[otherIndex].splice(pinsInRadius[otherIndex].indexOf(index), 1));\n }\n\n pinClusters.push(cluster);\n }\n\n return pinClusters;\n }\n}\n\nexport {\n PinCluster,\n PinClustererOptions,\n PinClusterer\n};\n","import { Type, assertType, assertInstance } from '../Util/Assertions.js';\n\nclass RenderTargetOptions {\n constructor() {\n this.onBeforeRender = data => {};\n this.onPostRender = (data, updated) => {};\n }\n\n /**\n * onBeforeRender: function(data)\n * Function called before rendering with data to be rendered\n */\n withOnBeforeRender(onBeforeRender) {\n assertType(onBeforeRender, Type.FUNCTION);\n\n this.onBeforeRender = onBeforeRender;\n return this;\n }\n\n /**\n * onPostRender: function(data, updated)\n * Function called after rendering with data rendered and element/object updated.\n * updated may be null.\n */\n withOnPostRender(onPostRender) {\n assertType(onPostRender, Type.FUNCTION);\n\n this.onPostRender = onPostRender;\n return this;\n }\n\n build() {\n return new RenderTarget(this);\n }\n}\n\nclass RenderTarget {\n constructor(options) {\n assertInstance(options, RenderTargetOptions);\n\n this._onBeforeRender = options.onBeforeRender;\n this._onPostRender = options.onPostRender;\n\n // Wrap pre- and post-render functions with this.render\n // For subclasses, `this.render` will refer to the subclass's implementation\n const renderFunction = this.render.bind(this);\n this.render = async data => {\n this._onBeforeRender(data);\n const updated = await renderFunction(data);\n this._onPostRender(data, updated);\n }\n }\n\n /**\n * async render(data) => DOMNode\n * Renders data (response object from the Oracle) for the target. Must be\n * implemented by a subclass. Return value may be null.\n */\n async render(data) {\n throw new Error('RenderTarget.render must be implemented by subclass');\n }\n}\n\nexport {\n RenderTarget,\n RenderTargetOptions\n};\n","import { Map } from '../Maps/Map.js';\nimport { PinClusterer } from '../PinClusterer/PinClusterer.js';\nimport { Type, assertType, assertInstance } from '../Util/Assertions.js';\nimport { RenderTarget, RenderTargetOptions } from './RenderTarget.js';\n\nclass MapRenderTargetOptions extends RenderTargetOptions {\n constructor() {\n super();\n\n this.idForEntity = entity => 'js-yl-' + entity.profile.meta.id;\n this.map = null;\n this.pinBuilder = (pinOptions, entity, index) => pinOptions.build();\n this.pinClusterer = null;\n }\n\n withIdForEntity(idForEntity) {\n assertType(idForEntity, Type.FUNCTION);\n\n this.idForEntity = idForEntity;\n return this;\n }\n\n /**\n * map: SearchMap\n */\n withMap(map) {\n assertInstance(map, Map);\n\n this.map = map;\n return this;\n }\n\n withPinBuilder(pinBuilder) {\n assertType(pinBuilder, Type.FUNCTION);\n\n this.pinBuilder = pinBuilder;\n return this;\n }\n\n withPinClusterer(pinClusterer) {\n assertInstance(pinClusterer, PinClusterer);\n\n this.pinClusterer = pinClusterer;\n return this;\n }\n\n build() {\n return new MapRenderTarget(this);\n }\n}\n\nclass MapRenderTarget extends RenderTarget {\n constructor(options) {\n assertInstance(options, MapRenderTargetOptions);\n\n super(options);\n\n if (!options.map) {\n return Promise.reject(new Error('map is null or undefined'));\n }\n\n this._idForEntity = options.idForEntity;\n this._map = options.map;\n this._pinBuilder = options.pinBuilder;\n this._pinClusterer = options.pinClusterer;\n\n this._pins = {};\n }\n\n getPins() {\n return { ...this._pins };\n }\n\n /**\n * async render(data) => SearchMap\n * Calls map update function with data for pins, then returns map element\n */\n async render(data) {\n if (this._pinClusterer) {\n this._pinClusterer.reset(false);\n }\n\n Object.values(this._pins).forEach(pin => pin.remove());\n this._pins = {};\n\n (data.response.entities || []).forEach((entity, index) =>\n this._pins[this._idForEntity(entity)] = this._pinBuilder(this._map.newPinOptions(), entity, index + 1)\n );\n\n const pins = Object.values(this._pins);\n const coordinates = pins.map(pin => pin.getCoordinate());\n\n if (coordinates.length && data.fitCoordinates) {\n this._map.fitCoordinates(coordinates);\n }\n\n if (this._pinClusterer) {\n this._pinClusterer.cluster(pins, this._map);\n } else {\n pins.forEach(pin => pin.setMap(this._map));\n }\n\n return this._map;\n }\n}\n\nexport {\n MapRenderTarget,\n MapRenderTargetOptions\n};\n","import { assertInstance } from '../Util/Assertions.js';\nimport { RenderTarget } from './RenderTarget.js';\n\nclass RendererOptions {\n constructor() {\n this.renderTargets = new Set();\n }\n\n /**\n * renderTargets: Set[RenderTarget]\n * All render targets are rendered when the Renderer receives data through render()\n */\n withRenderTarget(renderTarget) {\n assertInstance(renderTarget, RenderTarget);\n\n this.renderTargets.add(renderTarget);\n return this;\n }\n\n build() {\n return new Renderer(this);\n }\n}\n\nclass Renderer {\n constructor(options) {\n assertInstance(options, RendererOptions);\n\n this._renderTargets = options.renderTargets;\n }\n\n /**\n * deregister(renderTarget) => bool\n * Removes renderTarget (an instance of RenderTarget) from renderTargets to\n * no longer be updated when new data is received\n * Returns true if renderTarget was successfully removed, false otherwise\n */\n deregister(renderTarget) {\n return this._renderTargets.delete(renderTarget);\n }\n\n /**\n * register(renderTarget)\n * Adds renderTarget (an instance of RenderTarget) to renderTargets to be\n * updated when new data is received\n */\n register(renderTarget) {\n assertInstance(renderTarget, RenderTarget);\n\n this._renderTargets.add(renderTarget);\n }\n\n /**\n * render(data)\n * Renders each renderTarget in renderTargets with data (response object from the Oracle)\n * If render returns a non-null value, calls onLoad() on it (assuming the value is a DOMNode)\n */\n render(data) {\n this._renderTargets.forEach(renderTarget => {\n renderTarget.render(data)\n .catch(err => {\n console.error(`Failed to render ${renderTarget.constructor.name}: ${err}`);\n });\n });\n }\n}\n\nexport {\n Renderer,\n RendererOptions\n};\n","/**\n * Transforms the data from the answers API to the live api format the Locator code expects\n * @param {Object} data The results from the answers API\n * @return {Object} The results formatted for the Locator code\n */\nconst transformDataToUniversalData = (data) => {\n const universalData = (data.map ? (data.map.mapMarkers || []) : []).map(marker => ({\n profile: {\n ...marker.item,\n meta: {\n accountId: '',\n countryCode: marker.item.address.countryCode,\n entityType: marker.item.type,\n folderId: '',\n id: marker.item.id,\n labels: '',\n language: '',\n schemaTypes: '',\n timestamp: '',\n uid: '',\n utcOffsets: '',\n yextId: marker.item.id,\n }\n }\n }));\n return universalData;\n};\n\n/**\n * Transforms the data from the answers API to the live api format the Locator code expects\n * @param {Object} data The results from the answers API\n * @return {Object} The results formatted for the Locator code\n */\nconst transformDataToVerticalData = (data) => {\n const verticalData = (data.results || []).map(ent => ({\n profile: {\n ...ent._raw,\n meta: {\n accountId: '',\n countryCode: ent._raw.address.countryCode,\n entityType: ent._raw.type,\n folderId: '',\n id: ent.id,\n labels: '',\n language: '',\n schemaTypes: '',\n timestamp: '',\n uid: '',\n utcOffsets: '',\n yextId: ent.id,\n },\n }\n }));\n return verticalData;\n};\n\nexport {\n transformDataToUniversalData,\n transformDataToVerticalData\n}\n","/**\n * PinImages is meant to offer an accessible way to change the pin images for result pin\n * on the interactive map page. Given some config, an SVG should be customizable to\n * have branding consistent styling in this file.\n */\nclass PinImages {\n /**\n * @param {Object} defaultPinConfig The configuration for the default pin\n * @param {Object} hoveredPinConfig The configuration for the hovered pin\n * @param {Object} selectedPinConfig The configuration for the selected pin\n */\n constructor(defaultPinConfig = {}, hoveredPinConfig = {}, selectedPinConfig = {}) {\n this.defaultPinConfig = defaultPinConfig;\n this.hoveredPinConfig = hoveredPinConfig;\n this.selectedPinConfig = selectedPinConfig;\n }\n\n /**\n * Generate standard theme pin given some parameters\n * @param {string} pin.backgroundColor Background color for the pin\n * @param {string} pin.strokeColor Stroke (border) color for the pin\n * @param {string} pin.labelColor Label (text) color for the pin\n * @param {number} pin.width The width of the pin\n * @param {number} pin.height The height of the pin\n * @param {string} pin.pinCount The index of the pin for the pin text\n * @return {Object} The SVG of the pin, and its width and height\n */\n generatePin ({\n backgroundColor = '#00759e',\n strokeColor = 'black',\n labelColor = 'white',\n width = 20,\n height= 27,\n index = '',\n profile = ''\n } = {}) {\n const svg = `\n \n Path\n \n \n \n ${index}\n \n \n `;\n return { svg, width, height };\n };\n\n /**\n * Get the default pin image\n * @param {Number} pinCount The pin index number for the pin label\n * @param {Object} profile The profile data for the entity associated with the pin\n */\n getDefaultPin (index, profile) {\n return this.generatePin({\n backgroundColor: this.defaultPinConfig.backgroundColor,\n strokeColor: this.defaultPinConfig.strokeColor,\n labelColor: this.defaultPinConfig.labelColor,\n width: 24,\n height: 28,\n index: '',\n profile: profile\n });\n }\n\n /**\n * Get the hovered pin image\n * @param {Number} pinCount The pin index number for the pin label\n * @param {Object} profile The profile data for the entity associated with the pin\n */\n getHoveredPin (index, profile) {\n return this.generatePin({\n backgroundColor: this.hoveredPinConfig.backgroundColor,\n strokeColor: this.hoveredPinConfig.strokeColor,\n labelColor: this.hoveredPinConfig.labelColor,\n width: 24,\n height: 34,\n index: '',\n profile: profile\n });\n }\n\n /**\n * Get the selected pin image\n * @param {Number} pinCount The pin index number for the pin label\n * @param {Object} profile The profile data for the entity associated with the pin\n */\n getSelectedPin (index, profile) {\n return this.generatePin({\n backgroundColor: this.selectedPinConfig.backgroundColor,\n strokeColor: this.selectedPinConfig.strokeColor,\n labelColor: this.selectedPinConfig.labelColor,\n width: 24,\n height: 34,\n index: '',\n profile: profile\n });\n }\n}\n\nexport { PinImages };\n","/**\n * ClusterPinImages is meant to offer an accessible way to change the pin images for a cluster\n * on the interactive map page. Given some config, an SVG should be customizable to\n * have branding consistent styling in this file.\n */\nclass ClusterPinImages {\n /**\n * @param {Object} defaultPinConfig The configuration for the default pin\n * @param {Object} hoveredPinConfig The configuration for the hovered pin\n * @param {Object} selectedPinConfig The configuration for the selected pin\n */\n constructor(defaultPinConfig = {}, hoveredPinConfig = {}, selectedPinConfig = {}) {\n this.defaultPinConfig = defaultPinConfig;\n this.hoveredPinConfig = hoveredPinConfig;\n this.selectedPinConfig = selectedPinConfig;\n }\n\n /**\n * Generate standard theme pin given some parameters\n * @param {string} pin.backgroundColor Background color for the pin\n * @param {string} pin.strokeColor Stroke (border) color for the pin\n * @param {string} pin.labelColor Label (text) color for the pin\n * @param {number} pin.width The width of the pin\n * @param {number} pin.height The height of the pin\n * @param {string} pin.labelText The label text for the cluster pin (normally size of cluster)\n * @return {Object} The SVG of the pin, and its width and height\n */\n generatePin ({\n backgroundColor = '#00759e',\n strokeColor = 'black',\n labelColor = 'white',\n width = 24,\n height= 24,\n labelText = ''\n } = {}) {\n const svg = `\n \n \n \n \n ${labelText}\n \n \n `;\n return { svg, width, height };\n };\n\n /**\n * Get the default pin image\n * @param {Number} pinCount The number of pins in the cluster, for the pin label\n * @param {Object} profile The profile data for the entity associated with the pin\n */\n getDefaultPin (pinCount, profile) {\n return this.generatePin({\n backgroundColor: this.defaultPinConfig.backgroundColor,\n strokeColor: this.defaultPinConfig.strokeColor,\n labelColor: this.defaultPinConfig.labelColor,\n width: 24,\n height: 24,\n labelText: pinCount,\n });\n }\n\n /**\n * Get the hovered pin image\n * @param {Number} pinCount The number of pins in the cluster, for the pin label\n * @param {Object} profile The profile data for the entity associated with the pin\n */\n getHoveredPin (pinCount, profile) {\n return this.generatePin({\n backgroundColor: this.hoveredPinConfig.backgroundColor,\n strokeColor: this.hoveredPinConfig.strokeColor,\n labelColor: this.hoveredPinConfig.labelColor,\n width: 24,\n height: 24,\n labelText: pinCount,\n });\n }\n\n /**\n * Get the selected pin image\n * @param {Number} pinCount The number of pins in the cluster, for the pin label\n * @param {Object} profile The profile data for the entity associated with the pin\n */\n getSelectedPin (pinCount, profile) {\n return this.generatePin({\n backgroundColor: this.selectedPinConfig.backgroundColor,\n strokeColor: this.selectedPinConfig.strokeColor,\n labelColor: this.selectedPinConfig.labelColor,\n width: 24,\n height: 24,\n labelText: pinCount,\n });\n }\n}\n\nexport { ClusterPinImages };\n","import { Coordinate } from './Geo/Coordinate.js';\nimport { PinImages } from './PinImages.js';\nimport { ClusterPinImages } from './ClusterPinImages.js';\nimport { getLanguageForProvider } from './Util/helpers.js';\nimport { defaultCenterCoordinate } from './constants.js';\nimport isRTL from '../../common/rtl';\n\n/**\n * The configuration for the ThemeMap component.\n */\nexport default class ThemeMapConfig {\n /**\n * @param {Object} jsonConfig Configuration to parse\n */\n constructor (jsonConfig) {\n /**\n * The provider for the map, normalized to lowercase\n * @type {string}\n */\n this.mapProvider = jsonConfig.mapProvider && jsonConfig.mapProvider.toLowerCase();\n\n /**\n * The API key for the map provider (if applicable)\n * @type {string}\n */\n this.apiKey = jsonConfig.apiKey;\n\n /**\n * Controls the visual offset of each pin.\n * @type {Object}\n */\n this.pinAnchors = {\n anchorX: 0.5,\n anchorY: 0.5\n };\n\n /**\n * Controls the visual offset of each cluster pin.\n * @type {Object}\n */\n this.pinClusterAnchors = {\n anchorX: 0.5,\n anchorY: 0.5\n };\n\n /**\n * The client id for the map provider (if applicable)\n * @type {string}\n */\n this.clientId = jsonConfig.clientId;\n\n /**\n * The language locale for the map. This is different from\n * the specified locale because some map providers do not support\n * certain locales and we want to fallback in a specific pattern\n * when we come across a locale we do not support\n * @type {string}\n */\n this.language = getLanguageForProvider(jsonConfig.locale, this.mapProvider);\n\n /**\n * The content wrapper for the floating content above the map\n * @type {HTMLElement}\n */\n this.contentWrapperEl = jsonConfig.contentWrapperEl;\n\n /**\n * Map options to be passed directly to the Map Provider\n * @type {Object}\n */\n this.providerOptions = jsonConfig.providerOptions || {};\n\n const defaultCenterFromConfig = jsonConfig.defaultCenter || this.providerOptions.center;\n\n /**\n * The default center coordinate for the map, an object with {lat, lng}\n * @type {Coordinate}\n */\n this.defaultCenter = defaultCenterFromConfig\n ? new Coordinate(defaultCenterFromConfig)\n : defaultCenterCoordinate;\n\n /**\n * The default zoom level for the map\n * @type {number}\n */\n this.defaultZoom = jsonConfig.defaultZoom\n || this.providerOptions.zoom \n || 14;\n\n /**\n * The mobile breakpoint (inclusive max) in px\n * @type {Number}\n */\n this.mobileBreakpointMax = jsonConfig.mobileBreakpointMax || 991;\n\n /**\n * The padding for the map within the viewable area\n * @type {Object}\n */\n this.padding = {\n top: () => window.innerWidth <= this.mobileBreakpointMax ? 150 : 50,\n bottom: () => 50,\n right: () => isRTL(this.language) ? this.getVisibleBoundary() : 50,\n left: () => !isRTL(this.language) ? this.getVisibleBoundary() : 50\n };\n\n /**\n * The pin options for the map, with information for each pin state (e.g. default, hovered)\n * @type {Object}\n */\n this.pinOptions = jsonConfig.pinOptions || {};\n\n /**\n * The pin images for the default Map Pin\n * @type {PinImages}\n */\n this.pinImages = new PinImages(\n this.pinOptions.default,\n this.pinOptions.hovered,\n this.pinOptions.selected,\n );\n\n /**\n * The cluster pin options for the map, with information for each pin state\n * @type {Object}\n */\n this.pinClusterOptions = jsonConfig.pinClusterOptions || jsonConfig.pinOptions;\n\n /**\n * The pin images for the default Map Pin\n * @type {ClusterPinImages}\n */\n this.pinClusterImages = new ClusterPinImages(\n this.pinClusterOptions.default || this.pinOptions.default,\n this.pinClusterOptions.hovered || this.pinOptions.hovered,\n this.pinClusterOptions.selected || this.pinOptions.selected,\n );\n\n /**\n * Whether the map should cluster pins that are close to each other\n * @type {boolean}\n */\n this.enablePinClustering = jsonConfig.enablePinClustering;\n\n const noResultsConfig = jsonConfig.noResultsConfig || {};\n\n /**\n * Whether the map should display all results on no results\n * @type {boolean}\n */\n this.displayAllResultsOnNoResults = noResultsConfig.displayAllResults;\n\n /**\n * Callback for when a non-cluster pin is selected\n * @type {Function}\n */\n this.onPinSelect = jsonConfig.onPinSelect || function () {};\n\n /**\n * Callback for when the map is rendered\n * @type {Function}\n */\n this.onPostMapRender = jsonConfig.onPostMapRender || function () {};\n\n /**\n * Callback for when a non-cluster pin is clicked\n * @type {Function}\n */\n this.pinClickListener = jsonConfig.pinClickListener || function () {};\n\n /**\n * Callback for when a non-cluster pin gains focus\n * @type {Function}\n */\n this.pinFocusListener = jsonConfig.pinFocusListener || function () {};\n\n /**\n * Callback for when a cluster pin is clicked\n * @type {Function}\n */\n this.pinClusterClickListener = jsonConfig.pinClusterClickListener || function () {};\n\n /**\n * Callback for when a map drag event has finished\n * @type {Function}\n */\n this.dragEndListener = jsonConfig.dragEndListener || function () {};\n\n /**\n * Callback for when a map pan event has finished\n * @type {Function}\n */\n this.panHandler = jsonConfig.panHandler || function () {};\n\n /**\n * Callback for when a map zoom event has fired\n * @type {Function}\n */\n this.zoomChangedListener = jsonConfig.zoomChangedListener || function () {};\n\n /**\n * Callback for when a map zoom event has finished\n * @type {Function}\n */\n this.zoomEndListener = jsonConfig.zoomEndListener || function () {};\n\n /**\n * Callback for when the map canvas is clicked\n * A click does not include clicks to a pin or a map control\n * A click is a mouseup and a mousedown with moving the mouse\n * @type {Function}\n */\n this.canvasClickListener = jsonConfig.canvasClickListener || function () {};\n\n /**\n * The minimum number of pins to be clustered\n * @type {number}\n */\n this.minClusterSize = 2;\n\n /**\n * The max pixel distance from the center of a cluster to any pin in the cluster\n * @type {number}\n */\n this.minClusterRadius = 50;\n\n /**\n * Whether to animate map zoom on cluster click\n * @type {boolean}\n */\n this.clusterZoomAnimated = true;\n\n /**\n * Max zoom level for the map after clicking a cluster\n * @type {number}\n */\n this.clusterZoomMax = 20;\n }\n\n /**\n * Get the leftmost point on the map, or rightmost point for RTL locales, such that pins\n * will still be visible.\n * \n * @return {Number} The boundary (in pixels) for the visible area of the map, from the left\n * or right hand side of the viewport depending on if the language displayed\n * is left-to-right or right-to-left\n */\n getVisibleBoundary () {\n if (window.innerWidth <= this.mobileBreakpointMax) {\n return 50;\n }\n\n const contentWrapperElWidth = this.contentWrapperEl ? this.contentWrapperEl.offsetWidth : 0;\n return 50 + contentWrapperElWidth;\n };\n}\n","import { Coordinate } from './Geo/Coordinate.js';\nimport { MapOptions } from './Maps/Map.js';\nimport { MapRenderTargetOptions } from './Renderer/MapRenderTarget.js';\nimport { RendererOptions } from './Renderer/Renderer.js';\nimport { PinProperties } from './Maps/PinProperties.js';\nimport { PinClustererOptions } from './PinClusterer/PinClusterer.js';\nimport { transformDataToUniversalData, transformDataToVerticalData } from './Util/transformers.js';\nimport { getEncodedSvg, getMapProvider } from './Util/helpers.js';\n\nimport ThemeMapConfig from './ThemeMapConfig.js'\nimport StorageKeys from '../constants/storage-keys.js';\n\n/**\n * The component to create and control the functionality of a map,\n * including importing and initializing the map, assigning event \n * listeners, and rendering the map on the page with results changes\n */\nclass ThemeMap extends ANSWERS.Component {\n constructor(rawConfig, systemConfig) {\n super(rawConfig, systemConfig);\n\n /**\n * Configuration with default logic\n * @type {ThemeMapConfig}\n */\n this.config = new ThemeMapConfig(rawConfig);\n\n /**\n * The map object\n * @type {Map}\n */\n this.map = null;\n\n /**\n * The map renderer\n * @type {Renderer}\n */\n this.renderer = new RendererOptions().build();\n\n /**\n * Whether the map is render ready\n * @type {boolean}\n */\n this.renderReady = false;\n\n /**\n * The initial data for the map, just in case it isn't renderable yet\n * @type {Object}\n */\n this.initialData = null;\n\n /**\n * HTML element id for the hovered pin\n * @type {string}\n */\n this.hoveredPinId = null;\n\n /**\n * HTML element id for the selected pin\n * @type {string}\n */\n this.selectedPinId = null;\n\n /**\n * HTML element id for the selected cluster\n * @type {string}\n */\n this.selectedClusterPin = null;\n\n /*\n * A list of listeners to remove when results are updated\n * @type {StorageListener[]}\n */\n this.resultsSpecificStorageListeners = [];\n }\n\n onCreate () {\n this.loadAndInitializeMap();\n\n this.core.storage.registerListener({\n eventType: 'update',\n storageKey: StorageKeys.VERTICAL_RESULTS,\n callback: (data) => {\n this.setState(data);\n }\n });\n }\n\n setState (data) {\n if (data.searchState === 'search-loading') {\n return;\n }\n\n this._data = data;\n this.onMount();\n }\n\n onMount () {\n this._updateMap(this._data);\n }\n\n /**\n * Load the map provider scripts and initialize the map with the configuration options\n */\n async loadAndInitializeMap () {\n const mapProviderImpl = getMapProvider(this.config.mapProvider);\n await mapProviderImpl.load(this.config.apiKey, {\n client: this.config.clientId,\n language: this.config.language,\n });\n const map = new MapOptions()\n .withDefaultCenter(this.config.defaultCenter)\n .withDefaultZoom(this.config.defaultZoom)\n .withWrapper(this._container)\n .withProvider(mapProviderImpl)\n .withProviderOptions(this.config.providerOptions || {})\n .withPadding(this.config.padding)\n .withLocale(this.config.language)\n .build();\n this.map = map;\n this.addMapInteractions(map);\n }\n\n /**\n * Update in the Answers SDK storage map properties used by other components\n */\n updateMapPropertiesInStorage() {\n this.core.storage.set(StorageKeys.LOCATOR_MAP_PROPERTIES, {\n visibleCenter: this.map.getVisibleCenter(),\n visibleRadius: this.map.getVisibleRadius()\n });\n }\n\n /**\n * Add map interactions like event listeners and rendering targets\n * @param {Map} The map object\n */\n addMapInteractions(map) {\n this.map.idle().then(() => {\n map.setPanHandler((prevousBounds, currentBounds, zoomTrigger) => {\n this.updateMapPropertiesInStorage();\n this.config.panHandler(prevousBounds, currentBounds, zoomTrigger);\n });\n map.setDragEndHandler(() => {\n this.updateMapPropertiesInStorage();\n this.config.dragEndListener()\n });\n map.setZoomChangedHandler((zoomTrigger) => {\n this.config.zoomChangedListener(this.map.getZoom(), zoomTrigger);\n });\n map.setZoomEndHandler((zoomTrigger) => {\n this.updateMapPropertiesInStorage();\n this.config.zoomEndListener(this.map.getZoom(), zoomTrigger);\n });\n map.setCanvasClickHandler(() => this.config.canvasClickListener());\n });\n\n const mapRenderTargetOptions = new MapRenderTargetOptions()\n .withMap(map)\n .withOnPostRender((data, map) => this.config.onPostMapRender(data, map, mapRenderTarget.getPins()))\n .withPinBuilder((pinOptions, entity, index) => this.buildPin(pinOptions, entity, index))\n\n let pinClusterer;\n if (this.config.enablePinClustering) {\n pinClusterer = this.getClusterer();\n mapRenderTargetOptions.withPinClusterer(pinClusterer);\n }\n\n const mapRenderTarget = mapRenderTargetOptions.build();\n\n this.renderer.register(mapRenderTarget);\n this.renderReady = true;\n if (this.initialData) {\n this.renderer.render(this.initialData);\n }\n\n this.core.storage.registerListener({\n eventType: 'update',\n storageKey: StorageKeys.LOCATOR_HOVERED_RESULT,\n callback: id => {\n if (id != this.hoveredPinId) {\n const pins = mapRenderTarget.getPins();\n\n if (this.hoveredPinId && pins[this.hoveredPinId]) {\n pins[this.hoveredPinId].setStatus({ hovered: false });\n this.hoveredPinId = null;\n }\n\n if (id && pins[id]) {\n pins[id].setStatus({ hovered: true });\n this.hoveredPinId = id;\n }\n }\n }\n });\n\n this.core.storage.registerListener({\n eventType: 'update',\n storageKey: StorageKeys.LOCATOR_SELECTED_RESULT,\n callback: id => {\n if (id === this.selectedPinId) {\n return;\n }\n\n const pins = mapRenderTarget.getPins();\n\n if (this.selectedPinId && pins[this.selectedPinId]) {\n pins[this.selectedPinId].setStatus({ selected: false });\n this.selectedPinId = null;\n }\n\n if (this.selectedClusterPin) {\n this.selectedClusterPin.setStatus({ selected: false });\n this.selectedClusterPin = null;\n }\n\n if (!id) {\n return;\n }\n\n if (!pins[id]) {\n throw new Error(`A pin with the id ${id} could not be found on the map.`);\n }\n\n if (this.config.enablePinClustering && pinClusterer) {\n this.updateSelectedResultStateWithClusters(id, pins, pinClusterer.getClusters());\n } else {\n this.updateSelectedResultStateWithoutClusters(id, pins);\n }\n\n if (this.config.onPinSelect) {\n this.config.onPinSelect();\n }\n }\n });\n }\n\n /**\n * Update the pin and map state with information about the selected result. This result\n * may be selected by either a pin click or a card click.\n *\n * @param {string} id\n * @param {MapPin[]} pins\n */\n updateSelectedResultStateWithoutClusters(id, pins) {\n pins[id].setStatus({ selected: true });\n this.selectedPinId = id;\n\n if (!this.map.coordinateIsInVisibleBounds(pins[id].getCoordinate())) {\n this.map.setCenterWithPadding(pins[id].getCoordinate(), true);\n }\n }\n\n /**\n * Update the pin and map state with information about the selected result. This result\n * may be selected by either a pin click or a card click.\n * This will check if the selected result, identified by id, is in a cluster in clusters\n * and enact changes according to the selected cluster.\n * If not, fallback to the normal selected result behavior.\n *\n * @param {string} id\n * @param {MapPin[]} pins\n * @param {PinCluster[]} clusters\n */\n updateSelectedResultStateWithClusters(id, pins, clusters) {\n const filteredClusters = clusters.filter((cluster) => cluster.containsPin(id));\n\n if (filteredClusters.length === 0) {\n this.updateSelectedResultStateWithoutClusters(id, pins);\n return;\n }\n\n const selectedCluster = filteredClusters[0];\n const selectedClusterPin = selectedCluster.clusterPin;\n\n selectedClusterPin.setStatus({ selected: true });\n this.selectedPinId = id;\n this.selectedClusterPin = selectedClusterPin;\n\n if (!this.map.coordinateIsInVisibleBounds(selectedCluster.clusterPin.getCoordinate())) {\n this.map.setCenterWithPadding(selectedCluster.clusterPin.getCoordinate(), true);\n }\n }\n\n /**\n * Get the Map pin clusterer object\n */\n getClusterer () {\n const clustererOptions = new PinClustererOptions()\n .withClickHandler(() => {\n this.updateMapPropertiesInStorage();\n this.config.pinClusterClickListener();\n })\n .withIconTemplate('default', (pinDetails) => {\n return getEncodedSvg(this.config.pinClusterImages.getDefaultPin(pinDetails.pinCount).svg);\n })\n .withIconTemplate('hovered', (pinDetails) => {\n return getEncodedSvg(this.config.pinClusterImages.getHoveredPin(pinDetails.pinCount).svg);\n })\n .withIconTemplate('selected', (pinDetails) => {\n return getEncodedSvg(this.config.pinClusterImages.getSelectedPin(pinDetails.pinCount).svg);\n })\n .withPropertiesForStatus((status, pinCount) => {\n const defaultPin = this.config.pinClusterImages.getDefaultPin(pinCount);\n const properties = new PinProperties()\n .setIcon(status.hovered || status.focused || status.selected ? 'hovered' : 'default')\n .setWidth(defaultPin.width)\n .setHeight(defaultPin.height)\n .setAnchorX(this.config.pinClusterAnchors.anchorX)\n .setAnchorY(this.config.pinClusterAnchors.anchorY)\n .setClass('yxt-PinCluster')\n .setSRText(`Cluster of ${pinCount} results`);\n\n return properties;\n })\n .withMinClusterSize(this.config.minClusterSize)\n .withClusterRadius(this.config.minClusterRadius)\n .withClusterZoomAnimated(this.config.clusterZoomAnimated)\n .withClusterZoomMax(this.config.clusterZoomMax);\n return clustererOptions.build();\n }\n\n /**\n * Builds a pin given pin options.\n * @param {PinOptions} pinOptions The pin options builder\n * @param {Object} entity The entity data to use in pin building\n * @param {Number} index The index of the entity in the result list ordering\n */\n buildPin(pinOptions, entity, index) {\n const id = 'js-yl-' + entity.profile.meta.id;\n const defaultPin = this.config.pinImages.getDefaultPin(index, entity.profile);\n const hoveredPin = this.config.pinImages.getHoveredPin(index, entity.profile);\n const selectedPin = this.config.pinImages.getSelectedPin(index, entity.profile);\n const pin = pinOptions\n .withId(id)\n .withIcon(\n 'default',\n getEncodedSvg(defaultPin.svg))\n .withIcon(\n 'hovered',\n getEncodedSvg(hoveredPin.svg))\n .withIcon(\n 'selected',\n getEncodedSvg(selectedPin.svg))\n .withHideOffscreen(false)\n .withCoordinate(new Coordinate(entity.profile.yextDisplayCoordinate))\n .withPropertiesForStatus(status => {\n const properties = new PinProperties()\n .setIcon(status.selected ? 'selected' : ((status.hovered || status.focused) ? 'hovered' : 'default'))\n .setClass('yxt-Pin')\n .setSRText(`Result number ${index}`)\n .setZIndex(status.selected ? 1 : ((status.hovered || status.focused) ? 2 : 0))\n .setAnchorX(this.config.pinAnchors.anchorX)\n .setAnchorY(this.config.pinAnchors.anchorY);\n\n properties.setWidth(defaultPin.width);\n properties.setHeight(defaultPin.height);\n\n if (status.selected) {\n properties.setWidth(selectedPin.width);\n properties.setHeight(selectedPin.height);\n }\n\n return properties;\n })\n .build();\n\n const cardFocusUpdateListener = {\n eventType: 'update',\n storageKey: StorageKeys.LOCATOR_CARD_FOCUS,\n callback: (data) => {\n const cardIndex = data.index;\n if (cardIndex + 1 === index) {\n this.core.storage.set(StorageKeys.LOCATOR_SELECTED_RESULT, id);\n }\n }\n };\n this.resultsSpecificStorageListeners.push(cardFocusUpdateListener);\n this.core.storage.registerListener(cardFocusUpdateListener);\n pin.setClickHandler(() => this.config.pinFocusListener(index, id));\n pin.setFocusHandler(() => this.config.pinFocusListener(index, id));\n pin.setHoverHandler(hovered => this.core.storage.set(\n StorageKeys.LOCATOR_HOVERED_RESULT,\n hovered ? id : null\n ));\n return pin;\n }\n\n /**\n * Update the map with the new data\n *\n * @param data The vertical results data\n */\n _updateMap (data) {\n this.resultsSpecificStorageListeners.forEach((listener) => {\n this.core.storage.removeListener(listener);\n });\n this.resultsSpecificStorageListeners = [];\n\n const verticalData = transformDataToVerticalData(data);\n const universalData = transformDataToUniversalData(data);\n let entityData = verticalData.length ? verticalData : universalData;\n\n const numConcurrentSearchThisAreaCalls = \n this.core.storage.get(StorageKeys.LOCATOR_NUM_CONCURRENT_SEARCH_THIS_AREA_CALLS) || 0;\n\n if (numConcurrentSearchThisAreaCalls > 0) {\n this.core.storage.set(\n StorageKeys.LOCATOR_NUM_CONCURRENT_SEARCH_THIS_AREA_CALLS,\n numConcurrentSearchThisAreaCalls - 1\n ); \n }\n\n let fitCoordinates = numConcurrentSearchThisAreaCalls <= 0;\n\n const isNoResults = data.resultsContext === 'no-results';\n if (isNoResults && !this.config.displayAllResultsOnNoResults) {\n entityData = [];\n fitCoordinates = false;\n }\n\n const renderData = {\n response: { entities: entityData },\n fitCoordinates: fitCoordinates\n };\n\n if (this.renderReady) {\n this.renderer.render(renderData);\n } else {\n this.initialData = renderData;\n }\n }\n\n static defaultTemplateName() {\n return 'theme-components/theme-map';\n }\n\n static areDuplicateNamesAllowed() {\n return false;\n }\n\n static get type() {\n return 'ThemeMap';\n }\n}\n\nexport { ThemeMap };\n","/**\n * Responsible for assigning listeners to a locator location card\n */\nclass CardListenerAssigner {\n constructor ({ card }) {\n /**\n * An answers location card\n * \n * @type {Answers.Component}\n */\n this.card = card;\n\n /**\n * The matcher to determine if the window width is within the mobile breakpoint\n *\n * @type {MediaQueryList}\n */\n this.mobileMediaMatcher = window.matchMedia(`(max-width: 991px)`);\n }\n\n /**\n * Add the listeners to the card\n */\n addListenersToCard () {\n this._addCardClickListener();\n this._addLinkFocusListeners();\n }\n\n /**\n * Set yxt-Card--pinFocused when the card is clicked\n */\n _addCardClickListener () {\n this.card._container.parentElement.addEventListener('click', () => {\n if (this.mobileMediaMatcher.matches) {\n return;\n }\n\n const index = this._getCardIndex();\n this._storeCardFocusIndex(index);\n this._removePinFocusFromAllCards();\n this._addPinFocusToCard();\n });\n }\n\n /**\n * Set yxt-Card--pinFocused when any HTML element on the card gains focus.\n * These include cards titles and CTAs\n */\n _addLinkFocusListeners() {\n this.card._container.querySelectorAll('a').forEach((el) => {\n el.addEventListener('focus', () => {\n if (this.mobileMediaMatcher.matches) {\n return;\n }\n\n const index = this._getCardIndex();\n this._storeCardFocusIndex(index);\n this._removePinFocusFromAllCards();\n this._addPinFocusToCard();\n })\n });\n }\n\n /**\n * Get the index of the card\n * \n * @returns {number}\n */\n _getCardIndex () {\n const { _index } = JSON.parse(this.card._container.parentElement.dataset.opts || {});\n return _index;\n }\n \n /**\n * Store the index in the ANSWERS storage as the focused locator card\n * \n * @param {number} index \n */\n _storeCardFocusIndex (index) {\n this.card.core.storage.set(HitchhikerJS.StorageKeys.LOCATOR_CARD_FOCUS, { index: index });\n }\n \n /**\n * Remove .yxt-Card--pinFocused from all cards\n */\n _removePinFocusFromAllCards () {\n document.querySelectorAll('.yxt-Card--pinFocused').forEach((el) => {\n el.classList.remove('yxt-Card--pinFocused');\n });\n }\n \n /**\n * Add .yxt-Card--pinFocused to the card\n */\n _addPinFocusToCard () {\n this.card._container.parentElement.classList.add('yxt-Card--pinFocused');\n }\n}\n\nexport { CardListenerAssigner };\n"],"sourceRoot":""}