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AAS,IAAI1Z,GAAc5lC,GAC3Bg9C,EAAS,IAAIU,GAAc19C,GAC3Bq5C,EAAU,IAAIG,GAAex5C,GAC7Bu/C,EAAQ,IAAI3T,GAAa5rC,GACzBw/C,EAAU,IAAIvhB,GAAej+B,GAC7By/C,EAAW,IAAIza,GAAgBhlC,GACrCq/C,EAAU9mC,OAAO8lC,MAAMe,GACvBT,EAAQpmC,OACR+mC,EAAO/mC,OACPykC,EAAOzkC,OACP8gC,EAAQ9gC,OACRgnC,EAAMhnC,OAAO4+B,WAAWpb,GAAOhC,QAC/BylB,EAAQjnC,OACRknC,EAASlnC,OAETgnC,EAAMtgB,UAAU,cAAc,SAAC51B,GAClB,OAAPA,EACFm2C,EAAQE,YAAYr2C,GAEpBm2C,EAAQG,gBAGZJ,EAAMtgB,UAAU,gBAAgB,SAAC51B,GACpB,OAAPA,EACFm2C,EAAQI,cAAcv2C,GAEtBm2C,EAAQK,qBAGZL,EAAQvgB,UAAU,iBAAiB,SAAC51B,GACvB,OAAPA,GACFk2C,EAAMla,IAAIya,cAAcz2C,SAxC3B66B,OAAM,SAAC6b,GAAD,aAAStf,GAAOvjC,MAAP,gBAAgB2D,GAAAA,EAAI,iBAApB,cAAyCk/C,O","sources":["webpack://ulogger-server/webpack/runtime/load script","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/array/from.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/concat.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/filter.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/find.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/map.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/slice.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/sort.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/splice.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/instance/trim.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/json/stringify.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/math/trunc.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/number/epsilon.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/number/is-safe-integer.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/object/entries.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/object/keys.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/promise.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/reflect/construct.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/set.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/symbol.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js-stable/url-search-params.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/array/from.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/array/is-array.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/get-iterator-method.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/instance/bind.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/instance/index-of.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/instance/slice.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/map.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/object/create.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/object/define-property.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/object/get-own-property-descriptor.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/object/get-prototype-of.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/object/set-prototype-of.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/promise.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/reflect/construct.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/reflect/get.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/symbol.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/core-js/symbol/iterator.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/regenerator/index.js","webpack://ulogger-server/./node_modules/chartist-plugin-axistitle/dist/chartist-plugin-axistitle.js","webpack://ulogger-server/./node_modules/chartist/dist/chartist.js","webpack://ulogger-server/./node_modules/core-js-pure/es/array/from.js","webpack://ulogger-server/./node_modules/core-js-pure/es/array/is-array.js","webpack://ulogger-server/./node_modules/core-js-pure/es/array/virtual/concat.js","webpack://ulogger-server/./node_modules/core-js-pure/es/array/virtual/filter.js","webpack://ulogger-server/./node_modules/core-js-pure/es/array/virtual/find.js","webpack://ulogger-server/./node_modules/core-js-pure/es/array/virtual/index-of.js","webpack://ulogger-server/./node_modules/core-js-pure/es/array/virtual/map.js","webpack://ulogger-server/./node_modules/core-js-pure/es/array/virtual/slice.js","webpack://ulogger-server/./node_modules/core-js-pure/es/array/virtual/sort.js","webpack://ulogger-server/./node_modules/core-js-pure/es/array/virtual/splice.js","webpack://ulogger-server/./node_modules/core-js-pure/es/function/virtual/bind.js","webpack://ulogger-server/./node_modules/core-js-pure/es/get-iterator-method.js","webpack://ulogger-server/./node_modules/core-js-pure/es/instance/bind.js","webpack://ulogger-server/./node_modules/core-js-pure/es/instance/concat.js","webpack://ulogger-server/./node_modules/core-js-pure/es/instance/filter.js","webpack://ulogger-server/./node_modules/core-js-pure/es/instance/find.js","webpack://ulogger-server/./node_modules/core-js-pure/es/instance/index-of.js","webpack://ulogger-server/./node_modules/core-js-pure/es/instance/map.js","webpack://ulogger-server/./node_modules/core-js-pure/es/instance/slice.js","webpack://ulogger-server/./node_modules/core-js-pure/es/instance/sort.js","webpack://ulogger-server/./node_modules/core-js-pure/es/instance/splice.js","webpack://ulogger-server/./node_modules/core-js-pure/es/instance/trim.js","webpack://ulogger-server/./node_modules/core-js-pure/es/json/stringify.js","webpack://ulogger-server/./node_modules/core-js-pure/es/map/index.js","webpack://ulogger-server/./node_modules/core-js-pure/es/math/trunc.js","webpack://ulogger-server/./node_modules/core-js-pure/es/number/epsilon.js","webpack://ulogger-server/./node_modules/core-js-pure/es/number/is-safe-integer.js","webpack://ulogger-server/./node_modules/core-js-pure/es/object/create.js","webpack://ulogger-server/./node_modules/core-js-pure/es/object/define-property.js","webpack://ulogger-server/./node_modules/core-js-pure/es/object/entries.js","webpack://ulogger-server/./node_modules/core-js-pure/es/object/get-own-property-descriptor.js","webpack://ulogger-server/./node_modules/core-js-pure/es/object/get-prototype-of.js","webpack://ulogger-server/./node_modules/core-js-pure/es/object/keys.js","webpack://ulogger-server/./node_modules/core-js-pure/es/object/set-prototype-of.js","webpack://ulogger-server/./node_modules/core-js-pure/es/promise/index.js","webpack://ulogger-server/./node_modules/core-js-pure/es/reflect/construct.js","webpack://ulogger-server/./node_modules/core-js-pure/es/reflect/get.js","webpack://ulogger-server/./node_modules/core-js-pure/es/set/index.js","webpack://ulogger-server/./node_modules/core-js-pure/es/string/virtual/trim.js","webpack://ulogger-server/./node_modules/core-js-pure/es/symbol/index.js","webpack://ulogger-server/./node_modules/core-js-pure/es/symbol/iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/features/array/from.js","webpack://ulogger-server/./node_modules/core-js-pure/features/array/is-array.js","webpack://ulogger-server/./node_modules/core-js-pure/features/get-iterator-method.js","webpack://ulogger-server/./node_modules/core-js-pure/features/instance/bind.js","webpack://ulogger-server/./node_modules/core-js-pure/features/instance/index-of.js","webpack://ulogger-server/./node_modules/core-js-pure/features/instance/slice.js","webpack://ulogger-server/./node_modules/core-js-pure/features/map/index.js","webpack://ulogger-server/./node_modules/core-js-pure/features/object/create.js","webpack://ulogger-server/./node_modules/core-js-pure/features/object/define-property.js","webpack://ulogger-server/./node_modules/core-js-pure/features/object/get-own-property-descriptor.js","webpack://ulogger-server/./node_modules/core-js-pure/features/object/get-prototype-of.js","webpack://ulogger-server/./node_modules/core-js-pure/features/object/set-prototype-of.js","webpack://ulogger-server/./node_modules/core-js-pure/features/promise/index.js","webpack://ulogger-server/./node_modules/core-js-pure/features/reflect/construct.js","webpack://ulogger-server/./node_modules/core-js-pure/features/reflect/get.js","webpack://ulogger-server/./node_modules/core-js-pure/features/symbol/index.js","webpack://ulogger-server/./node_modules/core-js-pure/features/symbol/iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/a-function.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/a-possible-prototype.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/add-to-unscopables.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/an-instance.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/an-object.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/array-from.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/array-includes.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/array-iteration.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/array-method-has-species-support.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/array-method-is-strict.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/array-sort.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/array-species-constructor.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/array-species-create.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/call-with-safe-iteration-closing.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/check-correctness-of-iteration.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/classof-raw.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/classof.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/collection-delete-all.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/collection-from.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/collection-of.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/collection-strong.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/collection.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/correct-prototype-getter.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/create-iterator-constructor.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/create-non-enumerable-property.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/create-property-descriptor.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/create-property.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/define-iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/define-well-known-symbol.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/descriptors.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/document-create-element.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/dom-iterables.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/engine-ff-version.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/engine-is-browser.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/engine-is-ie-or-edge.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/engine-is-ios-pebble.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/engine-is-ios.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/engine-is-node.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/engine-is-webos-webkit.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/engine-user-agent.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/engine-v8-version.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/engine-webkit-version.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/entry-virtual.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/enum-bug-keys.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/export.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/fails.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/freezing.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/function-bind-context.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/function-bind.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/get-built-in.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/get-iterator-method.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/get-iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/get-map-iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/global.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/has.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/hidden-keys.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/host-report-errors.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/html.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/ie8-dom-define.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/indexed-object.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/inspect-source.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/internal-metadata.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/internal-state.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/is-array-iterator-method.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/is-array.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/is-data-descriptor.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/is-forced.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/is-integer.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/is-object.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/is-pure.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/is-symbol.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/iterate.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/iterator-close.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/iterators-core.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/iterators.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/map-emplace.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/map-upsert.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/microtask.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/native-promise-constructor.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/native-symbol.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/native-url.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/native-weak-map.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/new-promise-capability.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-create.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-define-properties.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-define-property.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-get-own-property-descriptor.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-get-own-property-names-external.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-get-own-property-names.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-get-own-property-symbols.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-get-prototype-of.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-keys-internal.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-keys.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-property-is-enumerable.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-set-prototype-of.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-to-array.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/object-to-string.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/ordinary-to-primitive.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/path.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/perform.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/promise-resolve.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/redefine-all.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/redefine.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/require-object-coercible.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/same-value-zero.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/set-global.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/set-species.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/set-to-string-tag.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/shared-key.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/shared-store.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/shared.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/species-constructor.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/string-multibyte.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/string-trim-forced.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/string-trim.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/task.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/to-absolute-index.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/to-indexed-object.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/to-integer.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/to-length.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/to-object.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/to-primitive.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/to-property-key.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/to-string-tag-support.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/to-string.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/uid.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/use-symbol-as-uid.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/well-known-symbol-wrapped.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/well-known-symbol.js","webpack://ulogger-server/./node_modules/core-js-pure/internals/whitespaces.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.aggregate-error.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.concat.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.filter.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.find.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.from.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.index-of.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.is-array.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.map.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.slice.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.sort.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.array.splice.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.function.bind.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.json.stringify.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.json.to-string-tag.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.map.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.math.trunc.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.number.epsilon.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.number.is-safe-integer.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.object.create.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.object.define-property.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.object.entries.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.object.get-own-property-descriptor.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.object.get-prototype-of.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.object.keys.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.object.set-prototype-of.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.promise.all-settled.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.promise.any.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.promise.finally.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.promise.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.reflect.construct.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.reflect.get.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.set.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.string.iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.string.trim.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.async-iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.has-instance.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.is-concat-spreadable.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.match-all.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.match.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.replace.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.search.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.species.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.split.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.to-primitive.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.to-string-tag.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/es.symbol.unscopables.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.aggregate-error.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.delete-all.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.emplace.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.every.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.filter.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.find-key.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.find.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.from.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.group-by.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.includes.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.key-by.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.key-of.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.map-keys.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.map-values.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.merge.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.of.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.reduce.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.some.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.update-or-insert.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.update.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.map.upsert.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.promise.all-settled.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.promise.any.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.promise.try.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.symbol.async-dispose.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.symbol.dispose.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.symbol.matcher.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.symbol.metadata.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.symbol.observable.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.symbol.pattern-match.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/esnext.symbol.replace-all.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/web.dom-collections.iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/modules/web.url-search-params.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/array/from.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/array/is-array.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/get-iterator-method.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/instance/bind.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/instance/concat.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/instance/filter.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/instance/find.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/instance/index-of.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/instance/map.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/instance/slice.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/instance/sort.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/instance/splice.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/instance/trim.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/json/stringify.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/map/index.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/math/trunc.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/number/epsilon.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/number/is-safe-integer.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/object/create.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/object/define-property.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/object/entries.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/object/get-own-property-descriptor.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/object/get-prototype-of.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/object/keys.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/object/set-prototype-of.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/promise/index.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/reflect/construct.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/reflect/get.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/set/index.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/symbol/index.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/symbol/iterator.js","webpack://ulogger-server/./node_modules/core-js-pure/stable/url-search-params/index.js","webpack://ulogger-server/./node_modules/core-js-pure/web/url-search-params.js","webpack://ulogger-server/./node_modules/regenerator-runtime/runtime.js","webpack://ulogger-server/webpack/bootstrap","webpack://ulogger-server/webpack/runtime/compat get default export","webpack://ulogger-server/webpack/runtime/define property getters","webpack://ulogger-server/webpack/runtime/ensure chunk","webpack://ulogger-server/webpack/runtime/get javascript chunk filename","webpack://ulogger-server/webpack/runtime/global","webpack://ulogger-server/webpack/runtime/hasOwnProperty shorthand","webpack://ulogger-server/webpack/runtime/make namespace object","webpack://ulogger-server/webpack/runtime/node module decorator","webpack://ulogger-server/webpack/runtime/publicPath","webpack://ulogger-server/webpack/runtime/jsonp chunk loading","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/classCallCheck.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/createClass.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/typeof.js","webpack://ulogger-server/./js/src/ajax.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/setPrototypeOf.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/inherits.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/possibleConstructorReturn.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/assertThisInitialized.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/getPrototypeOf.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/arrayLikeToArray.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/unsupportedIterableToArray.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/toConsumableArray.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithoutHoles.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArray.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableSpread.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/asyncToGenerator.js","webpack://ulogger-server/./js/src/observe.js","webpack://ulogger-server/./js/src/select.js","webpack://ulogger-server/./js/src/listitem.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/get.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/superPropBase.js","webpack://ulogger-server/./js/src/utils.js","webpack://ulogger-server/./js/src/position.js","webpack://ulogger-server/./js/src/positionset.js","webpack://ulogger-server/./js/src/track.js","webpack://ulogger-server/./js/src/user.js","webpack://ulogger-server/./js/src/auth.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/isNativeReflectConstruct.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/construct.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/wrapNativeSuper.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/isNativeFunction.js","webpack://ulogger-server/./js/src/layer.js","webpack://ulogger-server/./js/src/layercollection.js","webpack://ulogger-server/./js/src/config.js","webpack://ulogger-server/./js/src/lang.js","webpack://ulogger-server/./js/src/initializer.js","webpack://ulogger-server/./js/src/viewmodel.js","webpack://ulogger-server/./js/src/chartviewmodel.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/slicedToArray.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/arrayWithHoles.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/iterableToArrayLimit.js","webpack://ulogger-server/./node_modules/@babel/runtime-corejs3/helpers/esm/nonIterableRest.js","webpack://ulogger-server/./js/src/alert.js","webpack://ulogger-server/./js/src/dialog.js","webpack://ulogger-server/./js/src/configdialogmodel.js","webpack://ulogger-server/./js/src/configviewmodel.js","webpack://ulogger-server/./js/src/mainviewmodel.js","webpack://ulogger-server/./js/src/mapapi/api_openlayers.js","webpack://ulogger-server/./js/src/mapapi/api_gmaps.js","webpack://ulogger-server/./js/src/positiondialogmodel.js","webpack://ulogger-server/./js/src/mapviewmodel.js","webpack://ulogger-server/./js/src/trackdialogmodel.js","webpack://ulogger-server/./js/src/trackviewmodel.js","webpack://ulogger-server/./js/src/userdialogmodel.js","webpack://ulogger-server/./js/src/userviewmodel.js","webpack://ulogger-server/./js/src/permalink.js","webpack://ulogger-server/./js/src/spinner.js","webpack://ulogger-server/./js/src/state.js","webpack://ulogger-server/./js/src/ulogger.js"],"sourcesContent":["var inProgress = {};\nvar dataWebpackPrefix = \"ulogger-server:\";\n// loadScript function to load a script via script tag\n__webpack_require__.l = function(url, done, key, chunkId) {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = function(prev, event) {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach(function(fn) { return fn(event); });\n\t\tif(prev) return prev(event);\n\t}\n\t;\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","module.exports = require(\"core-js-pure/stable/array/from\");","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/map\");","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/instance/trim\");","module.exports = require(\"core-js-pure/stable/json/stringify\");","module.exports = require(\"core-js-pure/stable/math/trunc\");","module.exports = require(\"core-js-pure/stable/number/epsilon\");","module.exports = require(\"core-js-pure/stable/number/is-safe-integer\");","module.exports = require(\"core-js-pure/stable/object/entries\");","module.exports = require(\"core-js-pure/stable/object/get-own-property-descriptor\");","module.exports = require(\"core-js-pure/stable/object/keys\");","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\");","module.exports = require(\"core-js-pure/stable/symbol\");","module.exports = require(\"core-js-pure/stable/url-search-params\");","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/instance/bind\");","module.exports = require(\"core-js-pure/features/instance/index-of\");","module.exports = require(\"core-js-pure/features/instance/slice\");","module.exports = require(\"core-js-pure/features/map\");","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-own-property-descriptor\");","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/reflect/construct\");","module.exports = require(\"core-js-pure/features/reflect/get\");","module.exports = require(\"core-js-pure/features/symbol\");","module.exports = require(\"core-js-pure/features/symbol/iterator\");","module.exports = require(\"regenerator-runtime\");\n","(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module.\n define([\"chartist\"], function (Chartist) {\n return (root.returnExportsGlobal = factory(Chartist));\n });\n } else if (typeof exports === 'object') {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like enviroments that support module.exports,\n // like Node.\n module.exports = factory(require(\"chartist\"));\n } else {\n root['Chartist.plugins.ctAxisTitle'] = factory(Chartist);\n }\n}(this, function (Chartist) {\n\n /**\n * Chartist.js plugin to display a title for 1 or 2 axes.\n * version 0.0.7\n * author: alex stanbury\n */\n /* global Chartist */\n (function(Chartist) {\n \"use strict\";\n\n var axisDefaults = {\n axisTitle: \"\",\n axisClass: \"ct-axis-title\",\n offset: {\n x: 0,\n y: 0\n },\n textAnchor: \"middle\",\n flipTitle: false\n };\n\n var defaultOptions = {\n axisX: axisDefaults,\n axisY: axisDefaults\n };\n\n var getTitle = function(title) {\n if (title instanceof Function) {\n return title();\n }\n return title;\n };\n\n var getClasses = function(classes) {\n if (classes instanceof Function) {\n return classes();\n }\n return classes;\n };\n\n Chartist.plugins = Chartist.plugins || {};\n Chartist.plugins.ctAxisTitle = function(options) {\n options = Chartist.extend({}, defaultOptions, options);\n\n return function ctAxisTitle(chart) {\n chart.on(\"created\", function(data) {\n if (!options.axisX.axisTitle && !options.axisY.axisTitle) {\n throw new Error(\n \"ctAxisTitle plugin - You must provide at least one axis title\"\n );\n } else if (!data.axisX && !data.axisY) {\n throw new Error(\n \"ctAxisTitle plugin can only be used on charts that have at least one axis\"\n );\n }\n\n var xPos,\n yPos,\n title,\n chartPadding = Chartist.normalizePadding(data.options.chartPadding); // normalize the padding in case the full padding object was not passed into the options\n\n //position axis X title\n if (options.axisX.axisTitle && data.axisX) {\n xPos =\n data.axisX.axisLength / 2 +\n data.options.axisY.offset +\n chartPadding.left;\n\n yPos = chartPadding.top;\n\n if (data.options.axisY.position === \"end\") {\n xPos -= data.options.axisY.offset;\n }\n\n if (data.options.axisX.position === \"end\") {\n yPos += data.axisY.axisLength;\n }\n\n title = new Chartist.Svg(\"text\");\n title.addClass(getClasses(options.axisX.axisClass));\n title.text(getTitle(options.axisX.axisTitle));\n title.attr({\n x: xPos + options.axisX.offset.x,\n y: yPos + options.axisX.offset.y,\n \"text-anchor\": options.axisX.textAnchor\n });\n\n data.svg.append(title, true);\n }\n\n //position axis Y title\n if (options.axisY.axisTitle && data.axisY) {\n xPos = 0;\n\n yPos = data.axisY.axisLength / 2 + chartPadding.top;\n\n if (data.options.axisX.position === \"start\") {\n yPos += data.options.axisX.offset;\n }\n\n if (data.options.axisY.position === \"end\") {\n xPos = data.axisX.axisLength;\n }\n\n var transform =\n \"rotate(\" +\n (options.axisY.flipTitle ? -90 : 90) +\n \", \" +\n xPos +\n \", \" +\n yPos +\n \")\";\n\n title = new Chartist.Svg(\"text\");\n title.addClass(getClasses(options.axisY.axisClass));\n title.text(getTitle(options.axisY.axisTitle));\n title.attr({\n x: xPos + options.axisY.offset.x,\n y: yPos + options.axisY.offset.y,\n transform: transform,\n \"text-anchor\": options.axisY.textAnchor\n });\n data.svg.append(title, true);\n }\n });\n };\n };\n })(Chartist);\n\n return Chartist.plugins.ctAxisTitle;\n\n}));\n","(function (root, factory) {\n if (typeof define === 'function' && define.amd) {\n // AMD. Register as an anonymous module unless amdModuleId is set\n define('Chartist', [], function () {\n return (root['Chartist'] = factory());\n });\n } else if (typeof module === 'object' && module.exports) {\n // Node. Does not work with strict CommonJS, but\n // only CommonJS-like environments that support module.exports,\n // like Node.\n module.exports = factory();\n } else {\n root['Chartist'] = factory();\n }\n}(this, function () {\n\n/* Chartist.js 0.11.4\n * Copyright © 2019 Gion Kunz\n * Free to use under either the WTFPL license or the MIT license.\n * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-WTFPL\n * https://raw.githubusercontent.com/gionkunz/chartist-js/master/LICENSE-MIT\n */\n/**\n * The core module of Chartist that is mainly providing static functions and higher level functions for chart modules.\n *\n * @module Chartist.Core\n */\nvar Chartist = {\n version: '0.11.4'\n};\n\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * This object contains all namespaces used within Chartist.\n *\n * @memberof Chartist.Core\n * @type {{svg: string, xmlns: string, xhtml: string, xlink: string, ct: string}}\n */\n Chartist.namespaces = {\n svg: 'http://www.w3.org/2000/svg',\n xmlns: 'http://www.w3.org/2000/xmlns/',\n xhtml: 'http://www.w3.org/1999/xhtml',\n xlink: 'http://www.w3.org/1999/xlink',\n ct: 'http://gionkunz.github.com/chartist-js/ct'\n };\n\n /**\n * Helps to simplify functional style code\n *\n * @memberof Chartist.Core\n * @param {*} n This exact value will be returned by the noop function\n * @return {*} The same value that was provided to the n parameter\n */\n Chartist.noop = function (n) {\n return n;\n };\n\n /**\n * Generates a-z from a number 0 to 26\n *\n * @memberof Chartist.Core\n * @param {Number} n A number from 0 to 26 that will result in a letter a-z\n * @return {String} A character from a-z based on the input number n\n */\n Chartist.alphaNumerate = function (n) {\n // Limit to a-z\n return String.fromCharCode(97 + n % 26);\n };\n\n /**\n * Simple recursive object extend\n *\n * @memberof Chartist.Core\n * @param {Object} target Target object where the source will be merged into\n * @param {Object...} sources This object (objects) will be merged into target and then target is returned\n * @return {Object} An object that has the same reference as target but is extended and merged with the properties of source\n */\n Chartist.extend = function (target) {\n var i, source, sourceProp;\n target = target || {};\n\n for (i = 1; i < arguments.length; i++) {\n source = arguments[i];\n for (var prop in source) {\n sourceProp = source[prop];\n if (typeof sourceProp === 'object' && sourceProp !== null && !(sourceProp instanceof Array)) {\n target[prop] = Chartist.extend(target[prop], sourceProp);\n } else {\n target[prop] = sourceProp;\n }\n }\n }\n\n return target;\n };\n\n /**\n * Replaces all occurrences of subStr in str with newSubStr and returns a new string.\n *\n * @memberof Chartist.Core\n * @param {String} str\n * @param {String} subStr\n * @param {String} newSubStr\n * @return {String}\n */\n Chartist.replaceAll = function(str, subStr, newSubStr) {\n return str.replace(new RegExp(subStr, 'g'), newSubStr);\n };\n\n /**\n * Converts a number to a string with a unit. If a string is passed then this will be returned unmodified.\n *\n * @memberof Chartist.Core\n * @param {Number} value\n * @param {String} unit\n * @return {String} Returns the passed number value with unit.\n */\n Chartist.ensureUnit = function(value, unit) {\n if(typeof value === 'number') {\n value = value + unit;\n }\n\n return value;\n };\n\n /**\n * Converts a number or string to a quantity object.\n *\n * @memberof Chartist.Core\n * @param {String|Number} input\n * @return {Object} Returns an object containing the value as number and the unit as string.\n */\n Chartist.quantity = function(input) {\n if (typeof input === 'string') {\n var match = (/^(\\d+)\\s*(.*)$/g).exec(input);\n return {\n value : +match[1],\n unit: match[2] || undefined\n };\n }\n return { value: input };\n };\n\n /**\n * This is a wrapper around document.querySelector that will return the query if it's already of type Node\n *\n * @memberof Chartist.Core\n * @param {String|Node} query The query to use for selecting a Node or a DOM node that will be returned directly\n * @return {Node}\n */\n Chartist.querySelector = function(query) {\n return query instanceof Node ? query : document.querySelector(query);\n };\n\n /**\n * Functional style helper to produce array with given length initialized with undefined values\n *\n * @memberof Chartist.Core\n * @param length\n * @return {Array}\n */\n Chartist.times = function(length) {\n return Array.apply(null, new Array(length));\n };\n\n /**\n * Sum helper to be used in reduce functions\n *\n * @memberof Chartist.Core\n * @param previous\n * @param current\n * @return {*}\n */\n Chartist.sum = function(previous, current) {\n return previous + (current ? current : 0);\n };\n\n /**\n * Multiply helper to be used in `Array.map` for multiplying each value of an array with a factor.\n *\n * @memberof Chartist.Core\n * @param {Number} factor\n * @returns {Function} Function that can be used in `Array.map` to multiply each value in an array\n */\n Chartist.mapMultiply = function(factor) {\n return function(num) {\n return num * factor;\n };\n };\n\n /**\n * Add helper to be used in `Array.map` for adding a addend to each value of an array.\n *\n * @memberof Chartist.Core\n * @param {Number} addend\n * @returns {Function} Function that can be used in `Array.map` to add a addend to each value in an array\n */\n Chartist.mapAdd = function(addend) {\n return function(num) {\n return num + addend;\n };\n };\n\n /**\n * Map for multi dimensional arrays where their nested arrays will be mapped in serial. The output array will have the length of the largest nested array. The callback function is called with variable arguments where each argument is the nested array value (or undefined if there are no more values).\n *\n * @memberof Chartist.Core\n * @param arr\n * @param cb\n * @return {Array}\n */\n Chartist.serialMap = function(arr, cb) {\n var result = [],\n length = Math.max.apply(null, arr.map(function(e) {\n return e.length;\n }));\n\n Chartist.times(length).forEach(function(e, index) {\n var args = arr.map(function(e) {\n return e[index];\n });\n\n result[index] = cb.apply(null, args);\n });\n\n return result;\n };\n\n /**\n * This helper function can be used to round values with certain precision level after decimal. This is used to prevent rounding errors near float point precision limit.\n *\n * @memberof Chartist.Core\n * @param {Number} value The value that should be rounded with precision\n * @param {Number} [digits] The number of digits after decimal used to do the rounding\n * @returns {number} Rounded value\n */\n Chartist.roundWithPrecision = function(value, digits) {\n var precision = Math.pow(10, digits || Chartist.precision);\n return Math.round(value * precision) / precision;\n };\n\n /**\n * Precision level used internally in Chartist for rounding. If you require more decimal places you can increase this number.\n *\n * @memberof Chartist.Core\n * @type {number}\n */\n Chartist.precision = 8;\n\n /**\n * A map with characters to escape for strings to be safely used as attribute values.\n *\n * @memberof Chartist.Core\n * @type {Object}\n */\n Chartist.escapingMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n '\\'': '''\n };\n\n /**\n * This function serializes arbitrary data to a string. In case of data that can't be easily converted to a string, this function will create a wrapper object and serialize the data using JSON.stringify. The outcoming string will always be escaped using Chartist.escapingMap.\n * If called with null or undefined the function will return immediately with null or undefined.\n *\n * @memberof Chartist.Core\n * @param {Number|String|Object} data\n * @return {String}\n */\n Chartist.serialize = function(data) {\n if(data === null || data === undefined) {\n return data;\n } else if(typeof data === 'number') {\n data = ''+data;\n } else if(typeof data === 'object') {\n data = JSON.stringify({data: data});\n }\n\n return Object.keys(Chartist.escapingMap).reduce(function(result, key) {\n return Chartist.replaceAll(result, key, Chartist.escapingMap[key]);\n }, data);\n };\n\n /**\n * This function de-serializes a string previously serialized with Chartist.serialize. The string will always be unescaped using Chartist.escapingMap before it's returned. Based on the input value the return type can be Number, String or Object. JSON.parse is used with try / catch to see if the unescaped string can be parsed into an Object and this Object will be returned on success.\n *\n * @memberof Chartist.Core\n * @param {String} data\n * @return {String|Number|Object}\n */\n Chartist.deserialize = function(data) {\n if(typeof data !== 'string') {\n return data;\n }\n\n data = Object.keys(Chartist.escapingMap).reduce(function(result, key) {\n return Chartist.replaceAll(result, Chartist.escapingMap[key], key);\n }, data);\n\n try {\n data = JSON.parse(data);\n data = data.data !== undefined ? data.data : data;\n } catch(e) {}\n\n return data;\n };\n\n /**\n * Create or reinitialize the SVG element for the chart\n *\n * @memberof Chartist.Core\n * @param {Node} container The containing DOM Node object that will be used to plant the SVG element\n * @param {String} width Set the width of the SVG element. Default is 100%\n * @param {String} height Set the height of the SVG element. Default is 100%\n * @param {String} className Specify a class to be added to the SVG element\n * @return {Object} The created/reinitialized SVG element\n */\n Chartist.createSvg = function (container, width, height, className) {\n var svg;\n\n width = width || '100%';\n height = height || '100%';\n\n // Check if there is a previous SVG element in the container that contains the Chartist XML namespace and remove it\n // Since the DOM API does not support namespaces we need to manually search the returned list http://www.w3.org/TR/selectors-api/\n Array.prototype.slice.call(container.querySelectorAll('svg')).filter(function filterChartistSvgObjects(svg) {\n return svg.getAttributeNS(Chartist.namespaces.xmlns, 'ct');\n }).forEach(function removePreviousElement(svg) {\n container.removeChild(svg);\n });\n\n // Create svg object with width and height or use 100% as default\n svg = new Chartist.Svg('svg').attr({\n width: width,\n height: height\n }).addClass(className);\n\n svg._node.style.width = width;\n svg._node.style.height = height;\n\n // Add the DOM node to our container\n container.appendChild(svg._node);\n\n return svg;\n };\n\n /**\n * Ensures that the data object passed as second argument to the charts is present and correctly initialized.\n *\n * @param {Object} data The data object that is passed as second argument to the charts\n * @return {Object} The normalized data object\n */\n Chartist.normalizeData = function(data, reverse, multi) {\n var labelCount;\n var output = {\n raw: data,\n normalized: {}\n };\n\n // Check if we should generate some labels based on existing series data\n output.normalized.series = Chartist.getDataArray({\n series: data.series || []\n }, reverse, multi);\n\n // If all elements of the normalized data array are arrays we're dealing with\n // multi series data and we need to find the largest series if they are un-even\n if (output.normalized.series.every(function(value) {\n return value instanceof Array;\n })) {\n // Getting the series with the the most elements\n labelCount = Math.max.apply(null, output.normalized.series.map(function(series) {\n return series.length;\n }));\n } else {\n // We're dealing with Pie data so we just take the normalized array length\n labelCount = output.normalized.series.length;\n }\n\n output.normalized.labels = (data.labels || []).slice();\n // Padding the labels to labelCount with empty strings\n Array.prototype.push.apply(\n output.normalized.labels,\n Chartist.times(Math.max(0, labelCount - output.normalized.labels.length)).map(function() {\n return '';\n })\n );\n\n if(reverse) {\n Chartist.reverseData(output.normalized);\n }\n\n return output;\n };\n\n /**\n * This function safely checks if an objects has an owned property.\n *\n * @param {Object} object The object where to check for a property\n * @param {string} property The property name\n * @returns {boolean} Returns true if the object owns the specified property\n */\n Chartist.safeHasProperty = function(object, property) {\n return object !== null &&\n typeof object === 'object' &&\n object.hasOwnProperty(property);\n };\n\n /**\n * Checks if a value is considered a hole in the data series.\n *\n * @param {*} value\n * @returns {boolean} True if the value is considered a data hole\n */\n Chartist.isDataHoleValue = function(value) {\n return value === null ||\n value === undefined ||\n (typeof value === 'number' && isNaN(value));\n };\n\n /**\n * Reverses the series, labels and series data arrays.\n *\n * @memberof Chartist.Core\n * @param data\n */\n Chartist.reverseData = function(data) {\n data.labels.reverse();\n data.series.reverse();\n for (var i = 0; i < data.series.length; i++) {\n if(typeof(data.series[i]) === 'object' && data.series[i].data !== undefined) {\n data.series[i].data.reverse();\n } else if(data.series[i] instanceof Array) {\n data.series[i].reverse();\n }\n }\n };\n\n /**\n * Convert data series into plain array\n *\n * @memberof Chartist.Core\n * @param {Object} data The series object that contains the data to be visualized in the chart\n * @param {Boolean} [reverse] If true the whole data is reversed by the getDataArray call. This will modify the data object passed as first parameter. The labels as well as the series order is reversed. The whole series data arrays are reversed too.\n * @param {Boolean} [multi] Create a multi dimensional array from a series data array where a value object with `x` and `y` values will be created.\n * @return {Array} A plain array that contains the data to be visualized in the chart\n */\n Chartist.getDataArray = function(data, reverse, multi) {\n // Recursively walks through nested arrays and convert string values to numbers and objects with value properties\n // to values. Check the tests in data core -> data normalization for a detailed specification of expected values\n function recursiveConvert(value) {\n if(Chartist.safeHasProperty(value, 'value')) {\n // We are dealing with value object notation so we need to recurse on value property\n return recursiveConvert(value.value);\n } else if(Chartist.safeHasProperty(value, 'data')) {\n // We are dealing with series object notation so we need to recurse on data property\n return recursiveConvert(value.data);\n } else if(value instanceof Array) {\n // Data is of type array so we need to recurse on the series\n return value.map(recursiveConvert);\n } else if(Chartist.isDataHoleValue(value)) {\n // We're dealing with a hole in the data and therefore need to return undefined\n // We're also returning undefined for multi value output\n return undefined;\n } else {\n // We need to prepare multi value output (x and y data)\n if(multi) {\n var multiValue = {};\n\n // Single series value arrays are assumed to specify the Y-Axis value\n // For example: [1, 2] => [{x: undefined, y: 1}, {x: undefined, y: 2}]\n // If multi is a string then it's assumed that it specified which dimension should be filled as default\n if(typeof multi === 'string') {\n multiValue[multi] = Chartist.getNumberOrUndefined(value);\n } else {\n multiValue.y = Chartist.getNumberOrUndefined(value);\n }\n\n multiValue.x = value.hasOwnProperty('x') ? Chartist.getNumberOrUndefined(value.x) : multiValue.x;\n multiValue.y = value.hasOwnProperty('y') ? Chartist.getNumberOrUndefined(value.y) : multiValue.y;\n\n return multiValue;\n\n } else {\n // We can return simple data\n return Chartist.getNumberOrUndefined(value);\n }\n }\n }\n\n return data.series.map(recursiveConvert);\n };\n\n /**\n * Converts a number into a padding object.\n *\n * @memberof Chartist.Core\n * @param {Object|Number} padding\n * @param {Number} [fallback] This value is used to fill missing values if a incomplete padding object was passed\n * @returns {Object} Returns a padding object containing top, right, bottom, left properties filled with the padding number passed in as argument. If the argument is something else than a number (presumably already a correct padding object) then this argument is directly returned.\n */\n Chartist.normalizePadding = function(padding, fallback) {\n fallback = fallback || 0;\n\n return typeof padding === 'number' ? {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n } : {\n top: typeof padding.top === 'number' ? padding.top : fallback,\n right: typeof padding.right === 'number' ? padding.right : fallback,\n bottom: typeof padding.bottom === 'number' ? padding.bottom : fallback,\n left: typeof padding.left === 'number' ? padding.left : fallback\n };\n };\n\n Chartist.getMetaData = function(series, index) {\n var value = series.data ? series.data[index] : series[index];\n return value ? value.meta : undefined;\n };\n\n /**\n * Calculate the order of magnitude for the chart scale\n *\n * @memberof Chartist.Core\n * @param {Number} value The value Range of the chart\n * @return {Number} The order of magnitude\n */\n Chartist.orderOfMagnitude = function (value) {\n return Math.floor(Math.log(Math.abs(value)) / Math.LN10);\n };\n\n /**\n * Project a data length into screen coordinates (pixels)\n *\n * @memberof Chartist.Core\n * @param {Object} axisLength The svg element for the chart\n * @param {Number} length Single data value from a series array\n * @param {Object} bounds All the values to set the bounds of the chart\n * @return {Number} The projected data length in pixels\n */\n Chartist.projectLength = function (axisLength, length, bounds) {\n return length / bounds.range * axisLength;\n };\n\n /**\n * Get the height of the area in the chart for the data series\n *\n * @memberof Chartist.Core\n * @param {Object} svg The svg element for the chart\n * @param {Object} options The Object that contains all the optional values for the chart\n * @return {Number} The height of the area in the chart for the data series\n */\n Chartist.getAvailableHeight = function (svg, options) {\n return Math.max((Chartist.quantity(options.height).value || svg.height()) - (options.chartPadding.top + options.chartPadding.bottom) - options.axisX.offset, 0);\n };\n\n /**\n * Get highest and lowest value of data array. This Array contains the data that will be visualized in the chart.\n *\n * @memberof Chartist.Core\n * @param {Array} data The array that contains the data to be visualized in the chart\n * @param {Object} options The Object that contains the chart options\n * @param {String} dimension Axis dimension 'x' or 'y' used to access the correct value and high / low configuration\n * @return {Object} An object that contains the highest and lowest value that will be visualized on the chart.\n */\n Chartist.getHighLow = function (data, options, dimension) {\n // TODO: Remove workaround for deprecated global high / low config. Axis high / low configuration is preferred\n options = Chartist.extend({}, options, dimension ? options['axis' + dimension.toUpperCase()] : {});\n\n var highLow = {\n high: options.high === undefined ? -Number.MAX_VALUE : +options.high,\n low: options.low === undefined ? Number.MAX_VALUE : +options.low\n };\n var findHigh = options.high === undefined;\n var findLow = options.low === undefined;\n\n // Function to recursively walk through arrays and find highest and lowest number\n function recursiveHighLow(data) {\n if(data === undefined) {\n return undefined;\n } else if(data instanceof Array) {\n for (var i = 0; i < data.length; i++) {\n recursiveHighLow(data[i]);\n }\n } else {\n var value = dimension ? +data[dimension] : +data;\n\n if (findHigh && value > highLow.high) {\n highLow.high = value;\n }\n\n if (findLow && value < highLow.low) {\n highLow.low = value;\n }\n }\n }\n\n // Start to find highest and lowest number recursively\n if(findHigh || findLow) {\n recursiveHighLow(data);\n }\n\n // Overrides of high / low based on reference value, it will make sure that the invisible reference value is\n // used to generate the chart. This is useful when the chart always needs to contain the position of the\n // invisible reference value in the view i.e. for bipolar scales.\n if (options.referenceValue || options.referenceValue === 0) {\n highLow.high = Math.max(options.referenceValue, highLow.high);\n highLow.low = Math.min(options.referenceValue, highLow.low);\n }\n\n // If high and low are the same because of misconfiguration or flat data (only the same value) we need\n // to set the high or low to 0 depending on the polarity\n if (highLow.high <= highLow.low) {\n // If both values are 0 we set high to 1\n if (highLow.low === 0) {\n highLow.high = 1;\n } else if (highLow.low < 0) {\n // If we have the same negative value for the bounds we set bounds.high to 0\n highLow.high = 0;\n } else if (highLow.high > 0) {\n // If we have the same positive value for the bounds we set bounds.low to 0\n highLow.low = 0;\n } else {\n // If data array was empty, values are Number.MAX_VALUE and -Number.MAX_VALUE. Set bounds to prevent errors\n highLow.high = 1;\n highLow.low = 0;\n }\n }\n\n return highLow;\n };\n\n /**\n * Checks if a value can be safely coerced to a number. This includes all values except null which result in finite numbers when coerced. This excludes NaN, since it's not finite.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {Boolean}\n */\n Chartist.isNumeric = function(value) {\n return value === null ? false : isFinite(value);\n };\n\n /**\n * Returns true on all falsey values except the numeric value 0.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {boolean}\n */\n Chartist.isFalseyButZero = function(value) {\n return !value && value !== 0;\n };\n\n /**\n * Returns a number if the passed parameter is a valid number or the function will return undefined. On all other values than a valid number, this function will return undefined.\n *\n * @memberof Chartist.Core\n * @param value\n * @returns {*}\n */\n Chartist.getNumberOrUndefined = function(value) {\n return Chartist.isNumeric(value) ? +value : undefined;\n };\n\n /**\n * Checks if provided value object is multi value (contains x or y properties)\n *\n * @memberof Chartist.Core\n * @param value\n */\n Chartist.isMultiValue = function(value) {\n return typeof value === 'object' && ('x' in value || 'y' in value);\n };\n\n /**\n * Gets a value from a dimension `value.x` or `value.y` while returning value directly if it's a valid numeric value. If the value is not numeric and it's falsey this function will return `defaultValue`.\n *\n * @memberof Chartist.Core\n * @param value\n * @param dimension\n * @param defaultValue\n * @returns {*}\n */\n Chartist.getMultiValue = function(value, dimension) {\n if(Chartist.isMultiValue(value)) {\n return Chartist.getNumberOrUndefined(value[dimension || 'y']);\n } else {\n return Chartist.getNumberOrUndefined(value);\n }\n };\n\n /**\n * Pollard Rho Algorithm to find smallest factor of an integer value. There are more efficient algorithms for factorization, but this one is quite efficient and not so complex.\n *\n * @memberof Chartist.Core\n * @param {Number} num An integer number where the smallest factor should be searched for\n * @returns {Number} The smallest integer factor of the parameter num.\n */\n Chartist.rho = function(num) {\n if(num === 1) {\n return num;\n }\n\n function gcd(p, q) {\n if (p % q === 0) {\n return q;\n } else {\n return gcd(q, p % q);\n }\n }\n\n function f(x) {\n return x * x + 1;\n }\n\n var x1 = 2, x2 = 2, divisor;\n if (num % 2 === 0) {\n return 2;\n }\n\n do {\n x1 = f(x1) % num;\n x2 = f(f(x2)) % num;\n divisor = gcd(Math.abs(x1 - x2), num);\n } while (divisor === 1);\n\n return divisor;\n };\n\n /**\n * Calculate and retrieve all the bounds for the chart and return them in one array\n *\n * @memberof Chartist.Core\n * @param {Number} axisLength The length of the Axis used for\n * @param {Object} highLow An object containing a high and low property indicating the value range of the chart.\n * @param {Number} scaleMinSpace The minimum projected length a step should result in\n * @param {Boolean} onlyInteger\n * @return {Object} All the values to set the bounds of the chart\n */\n Chartist.getBounds = function (axisLength, highLow, scaleMinSpace, onlyInteger) {\n var i,\n optimizationCounter = 0,\n newMin,\n newMax,\n bounds = {\n high: highLow.high,\n low: highLow.low\n };\n\n bounds.valueRange = bounds.high - bounds.low;\n bounds.oom = Chartist.orderOfMagnitude(bounds.valueRange);\n bounds.step = Math.pow(10, bounds.oom);\n bounds.min = Math.floor(bounds.low / bounds.step) * bounds.step;\n bounds.max = Math.ceil(bounds.high / bounds.step) * bounds.step;\n bounds.range = bounds.max - bounds.min;\n bounds.numberOfSteps = Math.round(bounds.range / bounds.step);\n\n // Optimize scale step by checking if subdivision is possible based on horizontalGridMinSpace\n // If we are already below the scaleMinSpace value we will scale up\n var length = Chartist.projectLength(axisLength, bounds.step, bounds);\n var scaleUp = length < scaleMinSpace;\n var smallestFactor = onlyInteger ? Chartist.rho(bounds.range) : 0;\n\n // First check if we should only use integer steps and if step 1 is still larger than scaleMinSpace so we can use 1\n if(onlyInteger && Chartist.projectLength(axisLength, 1, bounds) >= scaleMinSpace) {\n bounds.step = 1;\n } else if(onlyInteger && smallestFactor < bounds.step && Chartist.projectLength(axisLength, smallestFactor, bounds) >= scaleMinSpace) {\n // If step 1 was too small, we can try the smallest factor of range\n // If the smallest factor is smaller than the current bounds.step and the projected length of smallest factor\n // is larger than the scaleMinSpace we should go for it.\n bounds.step = smallestFactor;\n } else {\n // Trying to divide or multiply by 2 and find the best step value\n while (true) {\n if (scaleUp && Chartist.projectLength(axisLength, bounds.step, bounds) <= scaleMinSpace) {\n bounds.step *= 2;\n } else if (!scaleUp && Chartist.projectLength(axisLength, bounds.step / 2, bounds) >= scaleMinSpace) {\n bounds.step /= 2;\n if(onlyInteger && bounds.step % 1 !== 0) {\n bounds.step *= 2;\n break;\n }\n } else {\n break;\n }\n\n if(optimizationCounter++ > 1000) {\n throw new Error('Exceeded maximum number of iterations while optimizing scale step!');\n }\n }\n }\n\n var EPSILON = 2.221E-16;\n bounds.step = Math.max(bounds.step, EPSILON);\n function safeIncrement(value, increment) {\n // If increment is too small use *= (1+EPSILON) as a simple nextafter\n if (value === (value += increment)) {\n \tvalue *= (1 + (increment > 0 ? EPSILON : -EPSILON));\n }\n return value;\n }\n\n // Narrow min and max based on new step\n newMin = bounds.min;\n newMax = bounds.max;\n while (newMin + bounds.step <= bounds.low) {\n \tnewMin = safeIncrement(newMin, bounds.step);\n }\n while (newMax - bounds.step >= bounds.high) {\n \tnewMax = safeIncrement(newMax, -bounds.step);\n }\n bounds.min = newMin;\n bounds.max = newMax;\n bounds.range = bounds.max - bounds.min;\n\n var values = [];\n for (i = bounds.min; i <= bounds.max; i = safeIncrement(i, bounds.step)) {\n var value = Chartist.roundWithPrecision(i);\n if (value !== values[values.length - 1]) {\n values.push(value);\n }\n }\n bounds.values = values;\n return bounds;\n };\n\n /**\n * Calculate cartesian coordinates of polar coordinates\n *\n * @memberof Chartist.Core\n * @param {Number} centerX X-axis coordinates of center point of circle segment\n * @param {Number} centerY X-axis coordinates of center point of circle segment\n * @param {Number} radius Radius of circle segment\n * @param {Number} angleInDegrees Angle of circle segment in degrees\n * @return {{x:Number, y:Number}} Coordinates of point on circumference\n */\n Chartist.polarToCartesian = function (centerX, centerY, radius, angleInDegrees) {\n var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;\n\n return {\n x: centerX + (radius * Math.cos(angleInRadians)),\n y: centerY + (radius * Math.sin(angleInRadians))\n };\n };\n\n /**\n * Initialize chart drawing rectangle (area where chart is drawn) x1,y1 = bottom left / x2,y2 = top right\n *\n * @memberof Chartist.Core\n * @param {Object} svg The svg element for the chart\n * @param {Object} options The Object that contains all the optional values for the chart\n * @param {Number} [fallbackPadding] The fallback padding if partial padding objects are used\n * @return {Object} The chart rectangles coordinates inside the svg element plus the rectangles measurements\n */\n Chartist.createChartRect = function (svg, options, fallbackPadding) {\n var hasAxis = !!(options.axisX || options.axisY);\n var yAxisOffset = hasAxis ? options.axisY.offset : 0;\n var xAxisOffset = hasAxis ? options.axisX.offset : 0;\n // If width or height results in invalid value (including 0) we fallback to the unitless settings or even 0\n var width = svg.width() || Chartist.quantity(options.width).value || 0;\n var height = svg.height() || Chartist.quantity(options.height).value || 0;\n var normalizedPadding = Chartist.normalizePadding(options.chartPadding, fallbackPadding);\n\n // If settings were to small to cope with offset (legacy) and padding, we'll adjust\n width = Math.max(width, yAxisOffset + normalizedPadding.left + normalizedPadding.right);\n height = Math.max(height, xAxisOffset + normalizedPadding.top + normalizedPadding.bottom);\n\n var chartRect = {\n padding: normalizedPadding,\n width: function () {\n return this.x2 - this.x1;\n },\n height: function () {\n return this.y1 - this.y2;\n }\n };\n\n if(hasAxis) {\n if (options.axisX.position === 'start') {\n chartRect.y2 = normalizedPadding.top + xAxisOffset;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1);\n } else {\n chartRect.y2 = normalizedPadding.top;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom - xAxisOffset, chartRect.y2 + 1);\n }\n\n if (options.axisY.position === 'start') {\n chartRect.x1 = normalizedPadding.left + yAxisOffset;\n chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1);\n } else {\n chartRect.x1 = normalizedPadding.left;\n chartRect.x2 = Math.max(width - normalizedPadding.right - yAxisOffset, chartRect.x1 + 1);\n }\n } else {\n chartRect.x1 = normalizedPadding.left;\n chartRect.x2 = Math.max(width - normalizedPadding.right, chartRect.x1 + 1);\n chartRect.y2 = normalizedPadding.top;\n chartRect.y1 = Math.max(height - normalizedPadding.bottom, chartRect.y2 + 1);\n }\n\n return chartRect;\n };\n\n /**\n * Creates a grid line based on a projected value.\n *\n * @memberof Chartist.Core\n * @param position\n * @param index\n * @param axis\n * @param offset\n * @param length\n * @param group\n * @param classes\n * @param eventEmitter\n */\n Chartist.createGrid = function(position, index, axis, offset, length, group, classes, eventEmitter) {\n var positionalData = {};\n positionalData[axis.units.pos + '1'] = position;\n positionalData[axis.units.pos + '2'] = position;\n positionalData[axis.counterUnits.pos + '1'] = offset;\n positionalData[axis.counterUnits.pos + '2'] = offset + length;\n\n var gridElement = group.elem('line', positionalData, classes.join(' '));\n\n // Event for grid draw\n eventEmitter.emit('draw',\n Chartist.extend({\n type: 'grid',\n axis: axis,\n index: index,\n group: group,\n element: gridElement\n }, positionalData)\n );\n };\n\n /**\n * Creates a grid background rect and emits the draw event.\n *\n * @memberof Chartist.Core\n * @param gridGroup\n * @param chartRect\n * @param className\n * @param eventEmitter\n */\n Chartist.createGridBackground = function (gridGroup, chartRect, className, eventEmitter) {\n var gridBackground = gridGroup.elem('rect', {\n x: chartRect.x1,\n y: chartRect.y2,\n width: chartRect.width(),\n height: chartRect.height(),\n }, className, true);\n\n // Event for grid background draw\n eventEmitter.emit('draw', {\n type: 'gridBackground',\n group: gridGroup,\n element: gridBackground\n });\n };\n\n /**\n * Creates a label based on a projected value and an axis.\n *\n * @memberof Chartist.Core\n * @param position\n * @param length\n * @param index\n * @param labels\n * @param axis\n * @param axisOffset\n * @param labelOffset\n * @param group\n * @param classes\n * @param useForeignObject\n * @param eventEmitter\n */\n Chartist.createLabel = function(position, length, index, labels, axis, axisOffset, labelOffset, group, classes, useForeignObject, eventEmitter) {\n var labelElement;\n var positionalData = {};\n\n positionalData[axis.units.pos] = position + labelOffset[axis.units.pos];\n positionalData[axis.counterUnits.pos] = labelOffset[axis.counterUnits.pos];\n positionalData[axis.units.len] = length;\n positionalData[axis.counterUnits.len] = Math.max(0, axisOffset - 10);\n\n if(useForeignObject) {\n // We need to set width and height explicitly to px as span will not expand with width and height being\n // 100% in all browsers\n var content = document.createElement('span');\n content.className = classes.join(' ');\n content.setAttribute('xmlns', Chartist.namespaces.xhtml);\n content.innerText = labels[index];\n content.style[axis.units.len] = Math.round(positionalData[axis.units.len]) + 'px';\n content.style[axis.counterUnits.len] = Math.round(positionalData[axis.counterUnits.len]) + 'px';\n\n labelElement = group.foreignObject(content, Chartist.extend({\n style: 'overflow: visible;'\n }, positionalData));\n } else {\n labelElement = group.elem('text', positionalData, classes.join(' ')).text(labels[index]);\n }\n\n eventEmitter.emit('draw', Chartist.extend({\n type: 'label',\n axis: axis,\n index: index,\n group: group,\n element: labelElement,\n text: labels[index]\n }, positionalData));\n };\n\n /**\n * Helper to read series specific options from options object. It automatically falls back to the global option if\n * there is no option in the series options.\n *\n * @param {Object} series Series object\n * @param {Object} options Chartist options object\n * @param {string} key The options key that should be used to obtain the options\n * @returns {*}\n */\n Chartist.getSeriesOption = function(series, options, key) {\n if(series.name && options.series && options.series[series.name]) {\n var seriesOptions = options.series[series.name];\n return seriesOptions.hasOwnProperty(key) ? seriesOptions[key] : options[key];\n } else {\n return options[key];\n }\n };\n\n /**\n * Provides options handling functionality with callback for options changes triggered by responsive options and media query matches\n *\n * @memberof Chartist.Core\n * @param {Object} options Options set by user\n * @param {Array} responsiveOptions Optional functions to add responsive behavior to chart\n * @param {Object} eventEmitter The event emitter that will be used to emit the options changed events\n * @return {Object} The consolidated options object from the defaults, base and matching responsive options\n */\n Chartist.optionsProvider = function (options, responsiveOptions, eventEmitter) {\n var baseOptions = Chartist.extend({}, options),\n currentOptions,\n mediaQueryListeners = [],\n i;\n\n function updateCurrentOptions(mediaEvent) {\n var previousOptions = currentOptions;\n currentOptions = Chartist.extend({}, baseOptions);\n\n if (responsiveOptions) {\n for (i = 0; i < responsiveOptions.length; i++) {\n var mql = window.matchMedia(responsiveOptions[i][0]);\n if (mql.matches) {\n currentOptions = Chartist.extend(currentOptions, responsiveOptions[i][1]);\n }\n }\n }\n\n if(eventEmitter && mediaEvent) {\n eventEmitter.emit('optionsChanged', {\n previousOptions: previousOptions,\n currentOptions: currentOptions\n });\n }\n }\n\n function removeMediaQueryListeners() {\n mediaQueryListeners.forEach(function(mql) {\n mql.removeListener(updateCurrentOptions);\n });\n }\n\n if (!window.matchMedia) {\n throw 'window.matchMedia not found! Make sure you\\'re using a polyfill.';\n } else if (responsiveOptions) {\n\n for (i = 0; i < responsiveOptions.length; i++) {\n var mql = window.matchMedia(responsiveOptions[i][0]);\n mql.addListener(updateCurrentOptions);\n mediaQueryListeners.push(mql);\n }\n }\n // Execute initially without an event argument so we get the correct options\n updateCurrentOptions();\n\n return {\n removeMediaQueryListeners: removeMediaQueryListeners,\n getCurrentOptions: function getCurrentOptions() {\n return Chartist.extend({}, currentOptions);\n }\n };\n };\n\n\n /**\n * Splits a list of coordinates and associated values into segments. Each returned segment contains a pathCoordinates\n * valueData property describing the segment.\n *\n * With the default options, segments consist of contiguous sets of points that do not have an undefined value. Any\n * points with undefined values are discarded.\n *\n * **Options**\n * The following options are used to determine how segments are formed\n * ```javascript\n * var options = {\n * // If fillHoles is true, undefined values are simply discarded without creating a new segment. Assuming other options are default, this returns single segment.\n * fillHoles: false,\n * // If increasingX is true, the coordinates in all segments have strictly increasing x-values.\n * increasingX: false\n * };\n * ```\n *\n * @memberof Chartist.Core\n * @param {Array} pathCoordinates List of point coordinates to be split in the form [x1, y1, x2, y2 ... xn, yn]\n * @param {Array} values List of associated point values in the form [v1, v2 .. vn]\n * @param {Object} options Options set by user\n * @return {Array} List of segments, each containing a pathCoordinates and valueData property.\n */\n Chartist.splitIntoSegments = function(pathCoordinates, valueData, options) {\n var defaultOptions = {\n increasingX: false,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n var segments = [];\n var hole = true;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n // If this value is a \"hole\" we set the hole flag\n if(Chartist.getMultiValue(valueData[i / 2].value) === undefined) {\n // if(valueData[i / 2].value === undefined) {\n if(!options.fillHoles) {\n hole = true;\n }\n } else {\n if(options.increasingX && i >= 2 && pathCoordinates[i] <= pathCoordinates[i-2]) {\n // X is not increasing, so we need to make sure we start a new segment\n hole = true;\n }\n\n\n // If it's a valid value we need to check if we're coming out of a hole and create a new empty segment\n if(hole) {\n segments.push({\n pathCoordinates: [],\n valueData: []\n });\n // As we have a valid value now, we are not in a \"hole\" anymore\n hole = false;\n }\n\n // Add to the segment pathCoordinates and valueData\n segments[segments.length - 1].pathCoordinates.push(pathCoordinates[i], pathCoordinates[i + 1]);\n segments[segments.length - 1].valueData.push(valueData[i / 2]);\n }\n }\n\n return segments;\n };\n}(this || global, Chartist));\n;/**\n * Chartist path interpolation functions.\n *\n * @module Chartist.Interpolation\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n Chartist.Interpolation = {};\n\n /**\n * This interpolation function does not smooth the path and the result is only containing lines and no curves.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.none({\n * fillHoles: false\n * })\n * });\n *\n *\n * @memberof Chartist.Interpolation\n * @return {Function}\n */\n Chartist.Interpolation.none = function(options) {\n var defaultOptions = {\n fillHoles: false\n };\n options = Chartist.extend({}, defaultOptions, options);\n return function none(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n var hole = true;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var currData = valueData[i / 2];\n\n if(Chartist.getMultiValue(currData.value) !== undefined) {\n\n if(hole) {\n path.move(currX, currY, false, currData);\n } else {\n path.line(currX, currY, false, currData);\n }\n\n hole = false;\n } else if(!options.fillHoles) {\n hole = true;\n }\n }\n\n return path;\n };\n };\n\n /**\n * Simple smoothing creates horizontal handles that are positioned with a fraction of the length between two data points. You can use the divisor option to specify the amount of smoothing.\n *\n * Simple smoothing can be used instead of `Chartist.Smoothing.cardinal` if you'd like to get rid of the artifacts it produces sometimes. Simple smoothing produces less flowing lines but is accurate by hitting the points and it also doesn't swing below or above the given data point.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The simple interpolation function accepts one configuration parameter `divisor`, between 1 and ∞, which controls the smoothing characteristics.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.simple({\n * divisor: 2,\n * fillHoles: false\n * })\n * });\n *\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the simple interpolation factory function.\n * @return {Function}\n */\n Chartist.Interpolation.simple = function(options) {\n var defaultOptions = {\n divisor: 2,\n fillHoles: false\n };\n options = Chartist.extend({}, defaultOptions, options);\n\n var d = 1 / Math.max(1, options.divisor);\n\n return function simple(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n var prevX, prevY, prevData;\n\n for(var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var length = (currX - prevX) * d;\n var currData = valueData[i / 2];\n\n if(currData.value !== undefined) {\n\n if(prevData === undefined) {\n path.move(currX, currY, false, currData);\n } else {\n path.curve(\n prevX + length,\n prevY,\n currX - length,\n currY,\n currX,\n currY,\n false,\n currData\n );\n }\n\n prevX = currX;\n prevY = currY;\n prevData = currData;\n } else if(!options.fillHoles) {\n prevX = currX = prevData = undefined;\n }\n }\n\n return path;\n };\n };\n\n /**\n * Cardinal / Catmull-Rome spline interpolation is the default smoothing function in Chartist. It produces nice results where the splines will always meet the points. It produces some artifacts though when data values are increased or decreased rapidly. The line may not follow a very accurate path and if the line should be accurate this smoothing function does not produce the best results.\n *\n * Cardinal splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The cardinal interpolation function accepts one configuration parameter `tension`, between 0 and 1, which controls the smoothing intensity.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.cardinal({\n * tension: 1,\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the cardinal factory function.\n * @return {Function}\n */\n Chartist.Interpolation.cardinal = function(options) {\n var defaultOptions = {\n tension: 1,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n var t = Math.min(1, Math.max(0, options.tension)),\n c = 1 - t;\n\n return function cardinal(pathCoordinates, valueData) {\n // First we try to split the coordinates into segments\n // This is necessary to treat \"holes\" in line charts\n var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, {\n fillHoles: options.fillHoles\n });\n\n if(!segments.length) {\n // If there were no segments return 'Chartist.Interpolation.none'\n return Chartist.Interpolation.none()([]);\n } else if(segments.length > 1) {\n // If the split resulted in more that one segment we need to interpolate each segment individually and join them\n // afterwards together into a single path.\n var paths = [];\n // For each segment we will recurse the cardinal function\n segments.forEach(function(segment) {\n paths.push(cardinal(segment.pathCoordinates, segment.valueData));\n });\n // Join the segment path data into a single path and return\n return Chartist.Svg.Path.join(paths);\n } else {\n // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first\n // segment\n pathCoordinates = segments[0].pathCoordinates;\n valueData = segments[0].valueData;\n\n // If less than two points we need to fallback to no smoothing\n if(pathCoordinates.length <= 4) {\n return Chartist.Interpolation.none()(pathCoordinates, valueData);\n }\n\n var path = new Chartist.Svg.Path().move(pathCoordinates[0], pathCoordinates[1], false, valueData[0]),\n z;\n\n for (var i = 0, iLen = pathCoordinates.length; iLen - 2 * !z > i; i += 2) {\n var p = [\n {x: +pathCoordinates[i - 2], y: +pathCoordinates[i - 1]},\n {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]},\n {x: +pathCoordinates[i + 2], y: +pathCoordinates[i + 3]},\n {x: +pathCoordinates[i + 4], y: +pathCoordinates[i + 5]}\n ];\n if (z) {\n if (!i) {\n p[0] = {x: +pathCoordinates[iLen - 2], y: +pathCoordinates[iLen - 1]};\n } else if (iLen - 4 === i) {\n p[3] = {x: +pathCoordinates[0], y: +pathCoordinates[1]};\n } else if (iLen - 2 === i) {\n p[2] = {x: +pathCoordinates[0], y: +pathCoordinates[1]};\n p[3] = {x: +pathCoordinates[2], y: +pathCoordinates[3]};\n }\n } else {\n if (iLen - 4 === i) {\n p[3] = p[2];\n } else if (!i) {\n p[0] = {x: +pathCoordinates[i], y: +pathCoordinates[i + 1]};\n }\n }\n\n path.curve(\n (t * (-p[0].x + 6 * p[1].x + p[2].x) / 6) + (c * p[2].x),\n (t * (-p[0].y + 6 * p[1].y + p[2].y) / 6) + (c * p[2].y),\n (t * (p[1].x + 6 * p[2].x - p[3].x) / 6) + (c * p[2].x),\n (t * (p[1].y + 6 * p[2].y - p[3].y) / 6) + (c * p[2].y),\n p[2].x,\n p[2].y,\n false,\n valueData[(i + 2) / 2]\n );\n }\n\n return path;\n }\n };\n };\n\n /**\n * Monotone Cubic spline interpolation produces a smooth curve which preserves monotonicity. Unlike cardinal splines, the curve will not extend beyond the range of y-values of the original data points.\n *\n * Monotone Cubic splines can only be created if there are more than two data points. If this is not the case this smoothing will fallback to `Chartist.Smoothing.none`.\n *\n * The x-values of subsequent points must be increasing to fit a Monotone Cubic spline. If this condition is not met for a pair of adjacent points, then there will be a break in the curve between those data points.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.monotoneCubic({\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param {Object} options The options of the monotoneCubic factory function.\n * @return {Function}\n */\n Chartist.Interpolation.monotoneCubic = function(options) {\n var defaultOptions = {\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n return function monotoneCubic(pathCoordinates, valueData) {\n // First we try to split the coordinates into segments\n // This is necessary to treat \"holes\" in line charts\n var segments = Chartist.splitIntoSegments(pathCoordinates, valueData, {\n fillHoles: options.fillHoles,\n increasingX: true\n });\n\n if(!segments.length) {\n // If there were no segments return 'Chartist.Interpolation.none'\n return Chartist.Interpolation.none()([]);\n } else if(segments.length > 1) {\n // If the split resulted in more that one segment we need to interpolate each segment individually and join them\n // afterwards together into a single path.\n var paths = [];\n // For each segment we will recurse the monotoneCubic fn function\n segments.forEach(function(segment) {\n paths.push(monotoneCubic(segment.pathCoordinates, segment.valueData));\n });\n // Join the segment path data into a single path and return\n return Chartist.Svg.Path.join(paths);\n } else {\n // If there was only one segment we can proceed regularly by using pathCoordinates and valueData from the first\n // segment\n pathCoordinates = segments[0].pathCoordinates;\n valueData = segments[0].valueData;\n\n // If less than three points we need to fallback to no smoothing\n if(pathCoordinates.length <= 4) {\n return Chartist.Interpolation.none()(pathCoordinates, valueData);\n }\n\n var xs = [],\n ys = [],\n i,\n n = pathCoordinates.length / 2,\n ms = [],\n ds = [], dys = [], dxs = [],\n path;\n\n // Populate x and y coordinates into separate arrays, for readability\n\n for(i = 0; i < n; i++) {\n xs[i] = pathCoordinates[i * 2];\n ys[i] = pathCoordinates[i * 2 + 1];\n }\n\n // Calculate deltas and derivative\n\n for(i = 0; i < n - 1; i++) {\n dys[i] = ys[i + 1] - ys[i];\n dxs[i] = xs[i + 1] - xs[i];\n ds[i] = dys[i] / dxs[i];\n }\n\n // Determine desired slope (m) at each point using Fritsch-Carlson method\n // See: http://math.stackexchange.com/questions/45218/implementation-of-monotone-cubic-interpolation\n\n ms[0] = ds[0];\n ms[n - 1] = ds[n - 2];\n\n for(i = 1; i < n - 1; i++) {\n if(ds[i] === 0 || ds[i - 1] === 0 || (ds[i - 1] > 0) !== (ds[i] > 0)) {\n ms[i] = 0;\n } else {\n ms[i] = 3 * (dxs[i - 1] + dxs[i]) / (\n (2 * dxs[i] + dxs[i - 1]) / ds[i - 1] +\n (dxs[i] + 2 * dxs[i - 1]) / ds[i]);\n\n if(!isFinite(ms[i])) {\n ms[i] = 0;\n }\n }\n }\n\n // Now build a path from the slopes\n\n path = new Chartist.Svg.Path().move(xs[0], ys[0], false, valueData[0]);\n\n for(i = 0; i < n - 1; i++) {\n path.curve(\n // First control point\n xs[i] + dxs[i] / 3,\n ys[i] + ms[i] * dxs[i] / 3,\n // Second control point\n xs[i + 1] - dxs[i] / 3,\n ys[i + 1] - ms[i + 1] * dxs[i] / 3,\n // End point\n xs[i + 1],\n ys[i + 1],\n\n false,\n valueData[i + 1]\n );\n }\n\n return path;\n }\n };\n };\n\n /**\n * Step interpolation will cause the line chart to move in steps rather than diagonal or smoothed lines. This interpolation will create additional points that will also be drawn when the `showPoint` option is enabled.\n *\n * All smoothing functions within Chartist are factory functions that accept an options parameter. The step interpolation function accepts one configuration parameter `postpone`, that can be `true` or `false`. The default value is `true` and will cause the step to occur where the value actually changes. If a different behaviour is needed where the step is shifted to the left and happens before the actual value, this option can be set to `false`.\n *\n * @example\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [[1, 2, 8, 1, 7]]\n * }, {\n * lineSmooth: Chartist.Interpolation.step({\n * postpone: true,\n * fillHoles: false\n * })\n * });\n *\n * @memberof Chartist.Interpolation\n * @param options\n * @returns {Function}\n */\n Chartist.Interpolation.step = function(options) {\n var defaultOptions = {\n postpone: true,\n fillHoles: false\n };\n\n options = Chartist.extend({}, defaultOptions, options);\n\n return function step(pathCoordinates, valueData) {\n var path = new Chartist.Svg.Path();\n\n var prevX, prevY, prevData;\n\n for (var i = 0; i < pathCoordinates.length; i += 2) {\n var currX = pathCoordinates[i];\n var currY = pathCoordinates[i + 1];\n var currData = valueData[i / 2];\n\n // If the current point is also not a hole we can draw the step lines\n if(currData.value !== undefined) {\n if(prevData === undefined) {\n path.move(currX, currY, false, currData);\n } else {\n if(options.postpone) {\n // If postponed we should draw the step line with the value of the previous value\n path.line(currX, prevY, false, prevData);\n } else {\n // If not postponed we should draw the step line with the value of the current value\n path.line(prevX, currY, false, currData);\n }\n // Line to the actual point (this should only be a Y-Axis movement\n path.line(currX, currY, false, currData);\n }\n\n prevX = currX;\n prevY = currY;\n prevData = currData;\n } else if(!options.fillHoles) {\n prevX = prevY = prevData = undefined;\n }\n }\n\n return path;\n };\n };\n\n}(this || global, Chartist));\n;/**\n * A very basic event module that helps to generate and catch events.\n *\n * @module Chartist.Event\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n Chartist.EventEmitter = function () {\n var handlers = [];\n\n /**\n * Add an event handler for a specific event\n *\n * @memberof Chartist.Event\n * @param {String} event The event name\n * @param {Function} handler A event handler function\n */\n function addEventHandler(event, handler) {\n handlers[event] = handlers[event] || [];\n handlers[event].push(handler);\n }\n\n /**\n * Remove an event handler of a specific event name or remove all event handlers for a specific event.\n *\n * @memberof Chartist.Event\n * @param {String} event The event name where a specific or all handlers should be removed\n * @param {Function} [handler] An optional event handler function. If specified only this specific handler will be removed and otherwise all handlers are removed.\n */\n function removeEventHandler(event, handler) {\n // Only do something if there are event handlers with this name existing\n if(handlers[event]) {\n // If handler is set we will look for a specific handler and only remove this\n if(handler) {\n handlers[event].splice(handlers[event].indexOf(handler), 1);\n if(handlers[event].length === 0) {\n delete handlers[event];\n }\n } else {\n // If no handler is specified we remove all handlers for this event\n delete handlers[event];\n }\n }\n }\n\n /**\n * Use this function to emit an event. All handlers that are listening for this event will be triggered with the data parameter.\n *\n * @memberof Chartist.Event\n * @param {String} event The event name that should be triggered\n * @param {*} data Arbitrary data that will be passed to the event handler callback functions\n */\n function emit(event, data) {\n // Only do something if there are event handlers with this name existing\n if(handlers[event]) {\n handlers[event].forEach(function(handler) {\n handler(data);\n });\n }\n\n // Emit event to star event handlers\n if(handlers['*']) {\n handlers['*'].forEach(function(starHandler) {\n starHandler(event, data);\n });\n }\n }\n\n return {\n addEventHandler: addEventHandler,\n removeEventHandler: removeEventHandler,\n emit: emit\n };\n };\n\n}(this || global, Chartist));\n;/**\n * This module provides some basic prototype inheritance utilities.\n *\n * @module Chartist.Class\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n function listToArray(list) {\n var arr = [];\n if (list.length) {\n for (var i = 0; i < list.length; i++) {\n arr.push(list[i]);\n }\n }\n return arr;\n }\n\n /**\n * Method to extend from current prototype.\n *\n * @memberof Chartist.Class\n * @param {Object} properties The object that serves as definition for the prototype that gets created for the new class. This object should always contain a constructor property that is the desired constructor for the newly created class.\n * @param {Object} [superProtoOverride] By default extens will use the current class prototype or Chartist.class. With this parameter you can specify any super prototype that will be used.\n * @return {Function} Constructor function of the new class\n *\n * @example\n * var Fruit = Class.extend({\n * color: undefined,\n * sugar: undefined,\n *\n * constructor: function(color, sugar) {\n * this.color = color;\n * this.sugar = sugar;\n * },\n *\n * eat: function() {\n * this.sugar = 0;\n * return this;\n * }\n * });\n *\n * var Banana = Fruit.extend({\n * length: undefined,\n *\n * constructor: function(length, sugar) {\n * Banana.super.constructor.call(this, 'Yellow', sugar);\n * this.length = length;\n * }\n * });\n *\n * var banana = new Banana(20, 40);\n * console.log('banana instanceof Fruit', banana instanceof Fruit);\n * console.log('Fruit is prototype of banana', Fruit.prototype.isPrototypeOf(banana));\n * console.log('bananas prototype is Fruit', Object.getPrototypeOf(banana) === Fruit.prototype);\n * console.log(banana.sugar);\n * console.log(banana.eat().sugar);\n * console.log(banana.color);\n */\n function extend(properties, superProtoOverride) {\n var superProto = superProtoOverride || this.prototype || Chartist.Class;\n var proto = Object.create(superProto);\n\n Chartist.Class.cloneDefinitions(proto, properties);\n\n var constr = function() {\n var fn = proto.constructor || function () {},\n instance;\n\n // If this is linked to the Chartist namespace the constructor was not called with new\n // To provide a fallback we will instantiate here and return the instance\n instance = this === Chartist ? Object.create(proto) : this;\n fn.apply(instance, Array.prototype.slice.call(arguments, 0));\n\n // If this constructor was not called with new we need to return the instance\n // This will not harm when the constructor has been called with new as the returned value is ignored\n return instance;\n };\n\n constr.prototype = proto;\n constr.super = superProto;\n constr.extend = this.extend;\n\n return constr;\n }\n\n // Variable argument list clones args > 0 into args[0] and retruns modified args[0]\n function cloneDefinitions() {\n var args = listToArray(arguments);\n var target = args[0];\n\n args.splice(1, args.length - 1).forEach(function (source) {\n Object.getOwnPropertyNames(source).forEach(function (propName) {\n // If this property already exist in target we delete it first\n delete target[propName];\n // Define the property with the descriptor from source\n Object.defineProperty(target, propName,\n Object.getOwnPropertyDescriptor(source, propName));\n });\n });\n\n return target;\n }\n\n Chartist.Class = {\n extend: extend,\n cloneDefinitions: cloneDefinitions\n };\n\n}(this || global, Chartist));\n;/**\n * Base for all chart types. The methods in Chartist.Base are inherited to all chart types.\n *\n * @module Chartist.Base\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n\n // TODO: Currently we need to re-draw the chart on window resize. This is usually very bad and will affect performance.\n // This is done because we can't work with relative coordinates when drawing the chart because SVG Path does not\n // work with relative positions yet. We need to check if we can do a viewBox hack to switch to percentage.\n // See http://mozilla.6506.n7.nabble.com/Specyfing-paths-with-percentages-unit-td247474.html\n // Update: can be done using the above method tested here: http://codepen.io/gionkunz/pen/KDvLj\n // The problem is with the label offsets that can't be converted into percentage and affecting the chart container\n /**\n * Updates the chart which currently does a full reconstruction of the SVG DOM\n *\n * @param {Object} [data] Optional data you'd like to set for the chart before it will update. If not specified the update method will use the data that is already configured with the chart.\n * @param {Object} [options] Optional options you'd like to add to the previous options for the chart before it will update. If not specified the update method will use the options that have been already configured with the chart.\n * @param {Boolean} [override] If set to true, the passed options will be used to extend the options that have been configured already. Otherwise the chart default options will be used as the base\n * @memberof Chartist.Base\n */\n function update(data, options, override) {\n if(data) {\n this.data = data || {};\n this.data.labels = this.data.labels || [];\n this.data.series = this.data.series || [];\n // Event for data transformation that allows to manipulate the data before it gets rendered in the charts\n this.eventEmitter.emit('data', {\n type: 'update',\n data: this.data\n });\n }\n\n if(options) {\n this.options = Chartist.extend({}, override ? this.options : this.defaultOptions, options);\n\n // If chartist was not initialized yet, we just set the options and leave the rest to the initialization\n // Otherwise we re-create the optionsProvider at this point\n if(!this.initializeTimeoutId) {\n this.optionsProvider.removeMediaQueryListeners();\n this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter);\n }\n }\n\n // Only re-created the chart if it has been initialized yet\n if(!this.initializeTimeoutId) {\n this.createChart(this.optionsProvider.getCurrentOptions());\n }\n\n // Return a reference to the chart object to chain up calls\n return this;\n }\n\n /**\n * This method can be called on the API object of each chart and will un-register all event listeners that were added to other components. This currently includes a window.resize listener as well as media query listeners if any responsive options have been provided. Use this function if you need to destroy and recreate Chartist charts dynamically.\n *\n * @memberof Chartist.Base\n */\n function detach() {\n // Only detach if initialization already occurred on this chart. If this chart still hasn't initialized (therefore\n // the initializationTimeoutId is still a valid timeout reference, we will clear the timeout\n if(!this.initializeTimeoutId) {\n window.removeEventListener('resize', this.resizeListener);\n this.optionsProvider.removeMediaQueryListeners();\n } else {\n window.clearTimeout(this.initializeTimeoutId);\n }\n\n return this;\n }\n\n /**\n * Use this function to register event handlers. The handler callbacks are synchronous and will run in the main thread rather than the event loop.\n *\n * @memberof Chartist.Base\n * @param {String} event Name of the event. Check the examples for supported events.\n * @param {Function} handler The handler function that will be called when an event with the given name was emitted. This function will receive a data argument which contains event data. See the example for more details.\n */\n function on(event, handler) {\n this.eventEmitter.addEventHandler(event, handler);\n return this;\n }\n\n /**\n * Use this function to un-register event handlers. If the handler function parameter is omitted all handlers for the given event will be un-registered.\n *\n * @memberof Chartist.Base\n * @param {String} event Name of the event for which a handler should be removed\n * @param {Function} [handler] The handler function that that was previously used to register a new event handler. This handler will be removed from the event handler list. If this parameter is omitted then all event handlers for the given event are removed from the list.\n */\n function off(event, handler) {\n this.eventEmitter.removeEventHandler(event, handler);\n return this;\n }\n\n function initialize() {\n // Add window resize listener that re-creates the chart\n window.addEventListener('resize', this.resizeListener);\n\n // Obtain current options based on matching media queries (if responsive options are given)\n // This will also register a listener that is re-creating the chart based on media changes\n this.optionsProvider = Chartist.optionsProvider(this.options, this.responsiveOptions, this.eventEmitter);\n // Register options change listener that will trigger a chart update\n this.eventEmitter.addEventHandler('optionsChanged', function() {\n this.update();\n }.bind(this));\n\n // Before the first chart creation we need to register us with all plugins that are configured\n // Initialize all relevant plugins with our chart object and the plugin options specified in the config\n if(this.options.plugins) {\n this.options.plugins.forEach(function(plugin) {\n if(plugin instanceof Array) {\n plugin[0](this, plugin[1]);\n } else {\n plugin(this);\n }\n }.bind(this));\n }\n\n // Event for data transformation that allows to manipulate the data before it gets rendered in the charts\n this.eventEmitter.emit('data', {\n type: 'initial',\n data: this.data\n });\n\n // Create the first chart\n this.createChart(this.optionsProvider.getCurrentOptions());\n\n // As chart is initialized from the event loop now we can reset our timeout reference\n // This is important if the chart gets initialized on the same element twice\n this.initializeTimeoutId = undefined;\n }\n\n /**\n * Constructor of chart base class.\n *\n * @param query\n * @param data\n * @param defaultOptions\n * @param options\n * @param responsiveOptions\n * @constructor\n */\n function Base(query, data, defaultOptions, options, responsiveOptions) {\n this.container = Chartist.querySelector(query);\n this.data = data || {};\n this.data.labels = this.data.labels || [];\n this.data.series = this.data.series || [];\n this.defaultOptions = defaultOptions;\n this.options = options;\n this.responsiveOptions = responsiveOptions;\n this.eventEmitter = Chartist.EventEmitter();\n this.supportsForeignObject = Chartist.Svg.isSupported('Extensibility');\n this.supportsAnimations = Chartist.Svg.isSupported('AnimationEventsAttribute');\n this.resizeListener = function resizeListener(){\n this.update();\n }.bind(this);\n\n if(this.container) {\n // If chartist was already initialized in this container we are detaching all event listeners first\n if(this.container.__chartist__) {\n this.container.__chartist__.detach();\n }\n\n this.container.__chartist__ = this;\n }\n\n // Using event loop for first draw to make it possible to register event listeners in the same call stack where\n // the chart was created.\n this.initializeTimeoutId = setTimeout(initialize.bind(this), 0);\n }\n\n // Creating the chart base class\n Chartist.Base = Chartist.Class.extend({\n constructor: Base,\n optionsProvider: undefined,\n container: undefined,\n svg: undefined,\n eventEmitter: undefined,\n createChart: function() {\n throw new Error('Base chart type can\\'t be instantiated!');\n },\n update: update,\n detach: detach,\n on: on,\n off: off,\n version: Chartist.version,\n supportsForeignObject: false\n });\n\n}(this || global, Chartist));\n;/**\n * Chartist SVG module for simple SVG DOM abstraction\n *\n * @module Chartist.Svg\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var document = globalRoot.document;\n\n /**\n * Chartist.Svg creates a new SVG object wrapper with a starting element. You can use the wrapper to fluently create sub-elements and modify them.\n *\n * @memberof Chartist.Svg\n * @constructor\n * @param {String|Element} name The name of the SVG element to create or an SVG dom element which should be wrapped into Chartist.Svg\n * @param {Object} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added.\n * @param {String} className This class or class list will be added to the SVG element\n * @param {Object} parent The parent SVG wrapper object where this newly created wrapper and it's element will be attached to as child\n * @param {Boolean} insertFirst If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element\n */\n function Svg(name, attributes, className, parent, insertFirst) {\n // If Svg is getting called with an SVG element we just return the wrapper\n if(name instanceof Element) {\n this._node = name;\n } else {\n this._node = document.createElementNS(Chartist.namespaces.svg, name);\n\n // If this is an SVG element created then custom namespace\n if(name === 'svg') {\n this.attr({\n 'xmlns:ct': Chartist.namespaces.ct\n });\n }\n }\n\n if(attributes) {\n this.attr(attributes);\n }\n\n if(className) {\n this.addClass(className);\n }\n\n if(parent) {\n if (insertFirst && parent._node.firstChild) {\n parent._node.insertBefore(this._node, parent._node.firstChild);\n } else {\n parent._node.appendChild(this._node);\n }\n }\n }\n\n /**\n * Set attributes on the current SVG element of the wrapper you're currently working on.\n *\n * @memberof Chartist.Svg\n * @param {Object|String} attributes An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added. If this parameter is a String then the function is used as a getter and will return the attribute value.\n * @param {String} [ns] If specified, the attribute will be obtained using getAttributeNs. In order to write namepsaced attributes you can use the namespace:attribute notation within the attributes object.\n * @return {Object|String} The current wrapper object will be returned so it can be used for chaining or the attribute value if used as getter function.\n */\n function attr(attributes, ns) {\n if(typeof attributes === 'string') {\n if(ns) {\n return this._node.getAttributeNS(ns, attributes);\n } else {\n return this._node.getAttribute(attributes);\n }\n }\n\n Object.keys(attributes).forEach(function(key) {\n // If the attribute value is undefined we can skip this one\n if(attributes[key] === undefined) {\n return;\n }\n\n if (key.indexOf(':') !== -1) {\n var namespacedAttribute = key.split(':');\n this._node.setAttributeNS(Chartist.namespaces[namespacedAttribute[0]], key, attributes[key]);\n } else {\n this._node.setAttribute(key, attributes[key]);\n }\n }.bind(this));\n\n return this;\n }\n\n /**\n * Create a new SVG element whose wrapper object will be selected for further operations. This way you can also create nested groups easily.\n *\n * @memberof Chartist.Svg\n * @param {String} name The name of the SVG element that should be created as child element of the currently selected element wrapper\n * @param {Object} [attributes] An object with properties that will be added as attributes to the SVG element that is created. Attributes with undefined values will not be added.\n * @param {String} [className] This class or class list will be added to the SVG element\n * @param {Boolean} [insertFirst] If this param is set to true in conjunction with a parent element the newly created element will be added as first child element in the parent element\n * @return {Chartist.Svg} Returns a Chartist.Svg wrapper object that can be used to modify the containing SVG data\n */\n function elem(name, attributes, className, insertFirst) {\n return new Chartist.Svg(name, attributes, className, this, insertFirst);\n }\n\n /**\n * Returns the parent Chartist.SVG wrapper object\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} Returns a Chartist.Svg wrapper around the parent node of the current node. If the parent node is not existing or it's not an SVG node then this function will return null.\n */\n function parent() {\n return this._node.parentNode instanceof SVGElement ? new Chartist.Svg(this._node.parentNode) : null;\n }\n\n /**\n * This method returns a Chartist.Svg wrapper around the root SVG element of the current tree.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The root SVG element wrapped in a Chartist.Svg element\n */\n function root() {\n var node = this._node;\n while(node.nodeName !== 'svg') {\n node = node.parentNode;\n }\n return new Chartist.Svg(node);\n }\n\n /**\n * Find the first child SVG element of the current element that matches a CSS selector. The returned object is a Chartist.Svg wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} selector A CSS selector that is used to query for child SVG elements\n * @return {Chartist.Svg} The SVG wrapper for the element found or null if no element was found\n */\n function querySelector(selector) {\n var foundNode = this._node.querySelector(selector);\n return foundNode ? new Chartist.Svg(foundNode) : null;\n }\n\n /**\n * Find the all child SVG elements of the current element that match a CSS selector. The returned object is a Chartist.Svg.List wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} selector A CSS selector that is used to query for child SVG elements\n * @return {Chartist.Svg.List} The SVG wrapper list for the element found or null if no element was found\n */\n function querySelectorAll(selector) {\n var foundNodes = this._node.querySelectorAll(selector);\n return foundNodes.length ? new Chartist.Svg.List(foundNodes) : null;\n }\n\n /**\n * Returns the underlying SVG node for the current element.\n *\n * @memberof Chartist.Svg\n * @returns {Node}\n */\n function getNode() {\n return this._node;\n }\n\n /**\n * This method creates a foreignObject (see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject) that allows to embed HTML content into a SVG graphic. With the help of foreignObjects you can enable the usage of regular HTML elements inside of SVG where they are subject for SVG positioning and transformation but the Browser will use the HTML rendering capabilities for the containing DOM.\n *\n * @memberof Chartist.Svg\n * @param {Node|String} content The DOM Node, or HTML string that will be converted to a DOM Node, that is then placed into and wrapped by the foreignObject\n * @param {String} [attributes] An object with properties that will be added as attributes to the foreignObject element that is created. Attributes with undefined values will not be added.\n * @param {String} [className] This class or class list will be added to the SVG element\n * @param {Boolean} [insertFirst] Specifies if the foreignObject should be inserted as first child\n * @return {Chartist.Svg} New wrapper object that wraps the foreignObject element\n */\n function foreignObject(content, attributes, className, insertFirst) {\n // If content is string then we convert it to DOM\n // TODO: Handle case where content is not a string nor a DOM Node\n if(typeof content === 'string') {\n var container = document.createElement('div');\n container.innerHTML = content;\n content = container.firstChild;\n }\n\n // Adding namespace to content element\n content.setAttribute('xmlns', Chartist.namespaces.xmlns);\n\n // Creating the foreignObject without required extension attribute (as described here\n // http://www.w3.org/TR/SVG/extend.html#ForeignObjectElement)\n var fnObj = this.elem('foreignObject', attributes, className, insertFirst);\n\n // Add content to foreignObjectElement\n fnObj._node.appendChild(content);\n\n return fnObj;\n }\n\n /**\n * This method adds a new text element to the current Chartist.Svg wrapper.\n *\n * @memberof Chartist.Svg\n * @param {String} t The text that should be added to the text element that is created\n * @return {Chartist.Svg} The same wrapper object that was used to add the newly created element\n */\n function text(t) {\n this._node.appendChild(document.createTextNode(t));\n return this;\n }\n\n /**\n * This method will clear all child nodes of the current wrapper object.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The same wrapper object that got emptied\n */\n function empty() {\n while (this._node.firstChild) {\n this._node.removeChild(this._node.firstChild);\n }\n\n return this;\n }\n\n /**\n * This method will cause the current wrapper to remove itself from its parent wrapper. Use this method if you'd like to get rid of an element in a given DOM structure.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The parent wrapper object of the element that got removed\n */\n function remove() {\n this._node.parentNode.removeChild(this._node);\n return this.parent();\n }\n\n /**\n * This method will replace the element with a new element that can be created outside of the current DOM.\n *\n * @memberof Chartist.Svg\n * @param {Chartist.Svg} newElement The new Chartist.Svg object that will be used to replace the current wrapper object\n * @return {Chartist.Svg} The wrapper of the new element\n */\n function replace(newElement) {\n this._node.parentNode.replaceChild(newElement._node, this._node);\n return newElement;\n }\n\n /**\n * This method will append an element to the current element as a child.\n *\n * @memberof Chartist.Svg\n * @param {Chartist.Svg} element The Chartist.Svg element that should be added as a child\n * @param {Boolean} [insertFirst] Specifies if the element should be inserted as first child\n * @return {Chartist.Svg} The wrapper of the appended object\n */\n function append(element, insertFirst) {\n if(insertFirst && this._node.firstChild) {\n this._node.insertBefore(element._node, this._node.firstChild);\n } else {\n this._node.appendChild(element._node);\n }\n\n return this;\n }\n\n /**\n * Returns an array of class names that are attached to the current wrapper element. This method can not be chained further.\n *\n * @memberof Chartist.Svg\n * @return {Array} A list of classes or an empty array if there are no classes on the current element\n */\n function classes() {\n return this._node.getAttribute('class') ? this._node.getAttribute('class').trim().split(/\\s+/) : [];\n }\n\n /**\n * Adds one or a space separated list of classes to the current element and ensures the classes are only existing once.\n *\n * @memberof Chartist.Svg\n * @param {String} names A white space separated list of class names\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function addClass(names) {\n this._node.setAttribute('class',\n this.classes(this._node)\n .concat(names.trim().split(/\\s+/))\n .filter(function(elem, pos, self) {\n return self.indexOf(elem) === pos;\n }).join(' ')\n );\n\n return this;\n }\n\n /**\n * Removes one or a space separated list of classes from the current element.\n *\n * @memberof Chartist.Svg\n * @param {String} names A white space separated list of class names\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function removeClass(names) {\n var removedClasses = names.trim().split(/\\s+/);\n\n this._node.setAttribute('class', this.classes(this._node).filter(function(name) {\n return removedClasses.indexOf(name) === -1;\n }).join(' '));\n\n return this;\n }\n\n /**\n * Removes all classes from the current element.\n *\n * @memberof Chartist.Svg\n * @return {Chartist.Svg} The wrapper of the current element\n */\n function removeAllClasses() {\n this._node.setAttribute('class', '');\n\n return this;\n }\n\n /**\n * Get element height using `getBoundingClientRect`\n *\n * @memberof Chartist.Svg\n * @return {Number} The elements height in pixels\n */\n function height() {\n return this._node.getBoundingClientRect().height;\n }\n\n /**\n * Get element width using `getBoundingClientRect`\n *\n * @memberof Chartist.Core\n * @return {Number} The elements width in pixels\n */\n function width() {\n return this._node.getBoundingClientRect().width;\n }\n\n /**\n * The animate function lets you animate the current element with SMIL animations. You can add animations for multiple attributes at the same time by using an animation definition object. This object should contain SMIL animation attributes. Please refer to http://www.w3.org/TR/SVG/animate.html for a detailed specification about the available animation attributes. Additionally an easing property can be passed in the animation definition object. This can be a string with a name of an easing function in `Chartist.Svg.Easing` or an array with four numbers specifying a cubic Bézier curve.\n * **An animations object could look like this:**\n * ```javascript\n * element.animate({\n * opacity: {\n * dur: 1000,\n * from: 0,\n * to: 1\n * },\n * x1: {\n * dur: '1000ms',\n * from: 100,\n * to: 200,\n * easing: 'easeOutQuart'\n * },\n * y1: {\n * dur: '2s',\n * from: 0,\n * to: 100\n * }\n * });\n * ```\n * **Automatic unit conversion**\n * For the `dur` and the `begin` animate attribute you can also omit a unit by passing a number. The number will automatically be converted to milli seconds.\n * **Guided mode**\n * The default behavior of SMIL animations with offset using the `begin` attribute is that the attribute will keep it's original value until the animation starts. Mostly this behavior is not desired as you'd like to have your element attributes already initialized with the animation `from` value even before the animation starts. Also if you don't specify `fill=\"freeze\"` on an animate element or if you delete the animation after it's done (which is done in guided mode) the attribute will switch back to the initial value. This behavior is also not desired when performing simple one-time animations. For one-time animations you'd want to trigger animations immediately instead of relative to the document begin time. That's why in guided mode Chartist.Svg will also use the `begin` property to schedule a timeout and manually start the animation after the timeout. If you're using multiple SMIL definition objects for an attribute (in an array), guided mode will be disabled for this attribute, even if you explicitly enabled it.\n * If guided mode is enabled the following behavior is added:\n * - Before the animation starts (even when delayed with `begin`) the animated attribute will be set already to the `from` value of the animation\n * - `begin` is explicitly set to `indefinite` so it can be started manually without relying on document begin time (creation)\n * - The animate element will be forced to use `fill=\"freeze\"`\n * - The animation will be triggered with `beginElement()` in a timeout where `begin` of the definition object is interpreted in milli seconds. If no `begin` was specified the timeout is triggered immediately.\n * - After the animation the element attribute value will be set to the `to` value of the animation\n * - The animate element is deleted from the DOM\n *\n * @memberof Chartist.Svg\n * @param {Object} animations An animations object where the property keys are the attributes you'd like to animate. The properties should be objects again that contain the SMIL animation attributes (usually begin, dur, from, and to). The property begin and dur is auto converted (see Automatic unit conversion). You can also schedule multiple animations for the same attribute by passing an Array of SMIL definition objects. Attributes that contain an array of SMIL definition objects will not be executed in guided mode.\n * @param {Boolean} guided Specify if guided mode should be activated for this animation (see Guided mode). If not otherwise specified, guided mode will be activated.\n * @param {Object} eventEmitter If specified, this event emitter will be notified when an animation starts or ends.\n * @return {Chartist.Svg} The current element where the animation was added\n */\n function animate(animations, guided, eventEmitter) {\n if(guided === undefined) {\n guided = true;\n }\n\n Object.keys(animations).forEach(function createAnimateForAttributes(attribute) {\n\n function createAnimate(animationDefinition, guided) {\n var attributeProperties = {},\n animate,\n timeout,\n easing;\n\n // Check if an easing is specified in the definition object and delete it from the object as it will not\n // be part of the animate element attributes.\n if(animationDefinition.easing) {\n // If already an easing Bézier curve array we take it or we lookup a easing array in the Easing object\n easing = animationDefinition.easing instanceof Array ?\n animationDefinition.easing :\n Chartist.Svg.Easing[animationDefinition.easing];\n delete animationDefinition.easing;\n }\n\n // If numeric dur or begin was provided we assume milli seconds\n animationDefinition.begin = Chartist.ensureUnit(animationDefinition.begin, 'ms');\n animationDefinition.dur = Chartist.ensureUnit(animationDefinition.dur, 'ms');\n\n if(easing) {\n animationDefinition.calcMode = 'spline';\n animationDefinition.keySplines = easing.join(' ');\n animationDefinition.keyTimes = '0;1';\n }\n\n // Adding \"fill: freeze\" if we are in guided mode and set initial attribute values\n if(guided) {\n animationDefinition.fill = 'freeze';\n // Animated property on our element should already be set to the animation from value in guided mode\n attributeProperties[attribute] = animationDefinition.from;\n this.attr(attributeProperties);\n\n // In guided mode we also set begin to indefinite so we can trigger the start manually and put the begin\n // which needs to be in ms aside\n timeout = Chartist.quantity(animationDefinition.begin || 0).value;\n animationDefinition.begin = 'indefinite';\n }\n\n animate = this.elem('animate', Chartist.extend({\n attributeName: attribute\n }, animationDefinition));\n\n if(guided) {\n // If guided we take the value that was put aside in timeout and trigger the animation manually with a timeout\n setTimeout(function() {\n // If beginElement fails we set the animated attribute to the end position and remove the animate element\n // This happens if the SMIL ElementTimeControl interface is not supported or any other problems occured in\n // the browser. (Currently FF 34 does not support animate elements in foreignObjects)\n try {\n animate._node.beginElement();\n } catch(err) {\n // Set animated attribute to current animated value\n attributeProperties[attribute] = animationDefinition.to;\n this.attr(attributeProperties);\n // Remove the animate element as it's no longer required\n animate.remove();\n }\n }.bind(this), timeout);\n }\n\n if(eventEmitter) {\n animate._node.addEventListener('beginEvent', function handleBeginEvent() {\n eventEmitter.emit('animationBegin', {\n element: this,\n animate: animate._node,\n params: animationDefinition\n });\n }.bind(this));\n }\n\n animate._node.addEventListener('endEvent', function handleEndEvent() {\n if(eventEmitter) {\n eventEmitter.emit('animationEnd', {\n element: this,\n animate: animate._node,\n params: animationDefinition\n });\n }\n\n if(guided) {\n // Set animated attribute to current animated value\n attributeProperties[attribute] = animationDefinition.to;\n this.attr(attributeProperties);\n // Remove the animate element as it's no longer required\n animate.remove();\n }\n }.bind(this));\n }\n\n // If current attribute is an array of definition objects we create an animate for each and disable guided mode\n if(animations[attribute] instanceof Array) {\n animations[attribute].forEach(function(animationDefinition) {\n createAnimate.bind(this)(animationDefinition, false);\n }.bind(this));\n } else {\n createAnimate.bind(this)(animations[attribute], guided);\n }\n\n }.bind(this));\n\n return this;\n }\n\n Chartist.Svg = Chartist.Class.extend({\n constructor: Svg,\n attr: attr,\n elem: elem,\n parent: parent,\n root: root,\n querySelector: querySelector,\n querySelectorAll: querySelectorAll,\n getNode: getNode,\n foreignObject: foreignObject,\n text: text,\n empty: empty,\n remove: remove,\n replace: replace,\n append: append,\n classes: classes,\n addClass: addClass,\n removeClass: removeClass,\n removeAllClasses: removeAllClasses,\n height: height,\n width: width,\n animate: animate\n });\n\n /**\n * This method checks for support of a given SVG feature like Extensibility, SVG-animation or the like. Check http://www.w3.org/TR/SVG11/feature for a detailed list.\n *\n * @memberof Chartist.Svg\n * @param {String} feature The SVG 1.1 feature that should be checked for support.\n * @return {Boolean} True of false if the feature is supported or not\n */\n Chartist.Svg.isSupported = function(feature) {\n return document.implementation.hasFeature('http://www.w3.org/TR/SVG11/feature#' + feature, '1.1');\n };\n\n /**\n * This Object contains some standard easing cubic bezier curves. Then can be used with their name in the `Chartist.Svg.animate`. You can also extend the list and use your own name in the `animate` function. Click the show code button to see the available bezier functions.\n *\n * @memberof Chartist.Svg\n */\n var easingCubicBeziers = {\n easeInSine: [0.47, 0, 0.745, 0.715],\n easeOutSine: [0.39, 0.575, 0.565, 1],\n easeInOutSine: [0.445, 0.05, 0.55, 0.95],\n easeInQuad: [0.55, 0.085, 0.68, 0.53],\n easeOutQuad: [0.25, 0.46, 0.45, 0.94],\n easeInOutQuad: [0.455, 0.03, 0.515, 0.955],\n easeInCubic: [0.55, 0.055, 0.675, 0.19],\n easeOutCubic: [0.215, 0.61, 0.355, 1],\n easeInOutCubic: [0.645, 0.045, 0.355, 1],\n easeInQuart: [0.895, 0.03, 0.685, 0.22],\n easeOutQuart: [0.165, 0.84, 0.44, 1],\n easeInOutQuart: [0.77, 0, 0.175, 1],\n easeInQuint: [0.755, 0.05, 0.855, 0.06],\n easeOutQuint: [0.23, 1, 0.32, 1],\n easeInOutQuint: [0.86, 0, 0.07, 1],\n easeInExpo: [0.95, 0.05, 0.795, 0.035],\n easeOutExpo: [0.19, 1, 0.22, 1],\n easeInOutExpo: [1, 0, 0, 1],\n easeInCirc: [0.6, 0.04, 0.98, 0.335],\n easeOutCirc: [0.075, 0.82, 0.165, 1],\n easeInOutCirc: [0.785, 0.135, 0.15, 0.86],\n easeInBack: [0.6, -0.28, 0.735, 0.045],\n easeOutBack: [0.175, 0.885, 0.32, 1.275],\n easeInOutBack: [0.68, -0.55, 0.265, 1.55]\n };\n\n Chartist.Svg.Easing = easingCubicBeziers;\n\n /**\n * This helper class is to wrap multiple `Chartist.Svg` elements into a list where you can call the `Chartist.Svg` functions on all elements in the list with one call. This is helpful when you'd like to perform calls with `Chartist.Svg` on multiple elements.\n * An instance of this class is also returned by `Chartist.Svg.querySelectorAll`.\n *\n * @memberof Chartist.Svg\n * @param {Array|NodeList} nodeList An Array of SVG DOM nodes or a SVG DOM NodeList (as returned by document.querySelectorAll)\n * @constructor\n */\n function SvgList(nodeList) {\n var list = this;\n\n this.svgElements = [];\n for(var i = 0; i < nodeList.length; i++) {\n this.svgElements.push(new Chartist.Svg(nodeList[i]));\n }\n\n // Add delegation methods for Chartist.Svg\n Object.keys(Chartist.Svg.prototype).filter(function(prototypeProperty) {\n return ['constructor',\n 'parent',\n 'querySelector',\n 'querySelectorAll',\n 'replace',\n 'append',\n 'classes',\n 'height',\n 'width'].indexOf(prototypeProperty) === -1;\n }).forEach(function(prototypeProperty) {\n list[prototypeProperty] = function() {\n var args = Array.prototype.slice.call(arguments, 0);\n list.svgElements.forEach(function(element) {\n Chartist.Svg.prototype[prototypeProperty].apply(element, args);\n });\n return list;\n };\n });\n }\n\n Chartist.Svg.List = Chartist.Class.extend({\n constructor: SvgList\n });\n}(this || global, Chartist));\n;/**\n * Chartist SVG path module for SVG path description creation and modification.\n *\n * @module Chartist.Svg.Path\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n /**\n * Contains the descriptors of supported element types in a SVG path. Currently only move, line and curve are supported.\n *\n * @memberof Chartist.Svg.Path\n * @type {Object}\n */\n var elementDescriptions = {\n m: ['x', 'y'],\n l: ['x', 'y'],\n c: ['x1', 'y1', 'x2', 'y2', 'x', 'y'],\n a: ['rx', 'ry', 'xAr', 'lAf', 'sf', 'x', 'y']\n };\n\n /**\n * Default options for newly created SVG path objects.\n *\n * @memberof Chartist.Svg.Path\n * @type {Object}\n */\n var defaultOptions = {\n // The accuracy in digit count after the decimal point. This will be used to round numbers in the SVG path. If this option is set to false then no rounding will be performed.\n accuracy: 3\n };\n\n function element(command, params, pathElements, pos, relative, data) {\n var pathElement = Chartist.extend({\n command: relative ? command.toLowerCase() : command.toUpperCase()\n }, params, data ? { data: data } : {} );\n\n pathElements.splice(pos, 0, pathElement);\n }\n\n function forEachParam(pathElements, cb) {\n pathElements.forEach(function(pathElement, pathElementIndex) {\n elementDescriptions[pathElement.command.toLowerCase()].forEach(function(paramName, paramIndex) {\n cb(pathElement, paramName, pathElementIndex, paramIndex, pathElements);\n });\n });\n }\n\n /**\n * Used to construct a new path object.\n *\n * @memberof Chartist.Svg.Path\n * @param {Boolean} close If set to true then this path will be closed when stringified (with a Z at the end)\n * @param {Object} options Options object that overrides the default objects. See default options for more details.\n * @constructor\n */\n function SvgPath(close, options) {\n this.pathElements = [];\n this.pos = 0;\n this.close = close;\n this.options = Chartist.extend({}, defaultOptions, options);\n }\n\n /**\n * Gets or sets the current position (cursor) inside of the path. You can move around the cursor freely but limited to 0 or the count of existing elements. All modifications with element functions will insert new elements at the position of this cursor.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} [pos] If a number is passed then the cursor is set to this position in the path element array.\n * @return {Chartist.Svg.Path|Number} If the position parameter was passed then the return value will be the path object for easy call chaining. If no position parameter was passed then the current position is returned.\n */\n function position(pos) {\n if(pos !== undefined) {\n this.pos = Math.max(0, Math.min(this.pathElements.length, pos));\n return this;\n } else {\n return this.pos;\n }\n }\n\n /**\n * Removes elements from the path starting at the current position.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} count Number of path elements that should be removed from the current position.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function remove(count) {\n this.pathElements.splice(this.pos, count);\n return this;\n }\n\n /**\n * Use this function to add a new move SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The x coordinate for the move element.\n * @param {Number} y The y coordinate for the move element.\n * @param {Boolean} [relative] If set to true the move element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function move(x, y, relative, data) {\n element('M', {\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new line SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The x coordinate for the line element.\n * @param {Number} y The y coordinate for the line element.\n * @param {Boolean} [relative] If set to true the line element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function line(x, y, relative, data) {\n element('L', {\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new curve SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x1 The x coordinate for the first control point of the bezier curve.\n * @param {Number} y1 The y coordinate for the first control point of the bezier curve.\n * @param {Number} x2 The x coordinate for the second control point of the bezier curve.\n * @param {Number} y2 The y coordinate for the second control point of the bezier curve.\n * @param {Number} x The x coordinate for the target point of the curve element.\n * @param {Number} y The y coordinate for the target point of the curve element.\n * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function curve(x1, y1, x2, y2, x, y, relative, data) {\n element('C', {\n x1: +x1,\n y1: +y1,\n x2: +x2,\n y2: +y2,\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Use this function to add a new non-bezier curve SVG path element.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} rx The radius to be used for the x-axis of the arc.\n * @param {Number} ry The radius to be used for the y-axis of the arc.\n * @param {Number} xAr Defines the orientation of the arc\n * @param {Number} lAf Large arc flag\n * @param {Number} sf Sweep flag\n * @param {Number} x The x coordinate for the target point of the curve element.\n * @param {Number} y The y coordinate for the target point of the curve element.\n * @param {Boolean} [relative] If set to true the curve element will be created with relative coordinates (lowercase letter)\n * @param {*} [data] Any data that should be stored with the element object that will be accessible in pathElement\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function arc(rx, ry, xAr, lAf, sf, x, y, relative, data) {\n element('A', {\n rx: +rx,\n ry: +ry,\n xAr: +xAr,\n lAf: +lAf,\n sf: +sf,\n x: +x,\n y: +y\n }, this.pathElements, this.pos++, relative, data);\n return this;\n }\n\n /**\n * Parses an SVG path seen in the d attribute of path elements, and inserts the parsed elements into the existing path object at the current cursor position. Any closing path indicators (Z at the end of the path) will be ignored by the parser as this is provided by the close option in the options of the path object.\n *\n * @memberof Chartist.Svg.Path\n * @param {String} path Any SVG path that contains move (m), line (l) or curve (c) components.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function parse(path) {\n // Parsing the SVG path string into an array of arrays [['M', '10', '10'], ['L', '100', '100']]\n var chunks = path.replace(/([A-Za-z])([0-9])/g, '$1 $2')\n .replace(/([0-9])([A-Za-z])/g, '$1 $2')\n .split(/[\\s,]+/)\n .reduce(function(result, element) {\n if(element.match(/[A-Za-z]/)) {\n result.push([]);\n }\n\n result[result.length - 1].push(element);\n return result;\n }, []);\n\n // If this is a closed path we remove the Z at the end because this is determined by the close option\n if(chunks[chunks.length - 1][0].toUpperCase() === 'Z') {\n chunks.pop();\n }\n\n // Using svgPathElementDescriptions to map raw path arrays into objects that contain the command and the parameters\n // For example {command: 'M', x: '10', y: '10'}\n var elements = chunks.map(function(chunk) {\n var command = chunk.shift(),\n description = elementDescriptions[command.toLowerCase()];\n\n return Chartist.extend({\n command: command\n }, description.reduce(function(result, paramName, index) {\n result[paramName] = +chunk[index];\n return result;\n }, {}));\n });\n\n // Preparing a splice call with the elements array as var arg params and insert the parsed elements at the current position\n var spliceArgs = [this.pos, 0];\n Array.prototype.push.apply(spliceArgs, elements);\n Array.prototype.splice.apply(this.pathElements, spliceArgs);\n // Increase the internal position by the element count\n this.pos += elements.length;\n\n return this;\n }\n\n /**\n * This function renders to current SVG path object into a final SVG string that can be used in the d attribute of SVG path elements. It uses the accuracy option to round big decimals. If the close parameter was set in the constructor of this path object then a path closing Z will be appended to the output string.\n *\n * @memberof Chartist.Svg.Path\n * @return {String}\n */\n function stringify() {\n var accuracyMultiplier = Math.pow(10, this.options.accuracy);\n\n return this.pathElements.reduce(function(path, pathElement) {\n var params = elementDescriptions[pathElement.command.toLowerCase()].map(function(paramName) {\n return this.options.accuracy ?\n (Math.round(pathElement[paramName] * accuracyMultiplier) / accuracyMultiplier) :\n pathElement[paramName];\n }.bind(this));\n\n return path + pathElement.command + params.join(',');\n }.bind(this), '') + (this.close ? 'Z' : '');\n }\n\n /**\n * Scales all elements in the current SVG path object. There is an individual parameter for each coordinate. Scaling will also be done for control points of curves, affecting the given coordinate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The number which will be used to scale the x, x1 and x2 of all path elements.\n * @param {Number} y The number which will be used to scale the y, y1 and y2 of all path elements.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function scale(x, y) {\n forEachParam(this.pathElements, function(pathElement, paramName) {\n pathElement[paramName] *= paramName[0] === 'x' ? x : y;\n });\n return this;\n }\n\n /**\n * Translates all elements in the current SVG path object. The translation is relative and there is an individual parameter for each coordinate. Translation will also be done for control points of curves, affecting the given coordinate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Number} x The number which will be used to translate the x, x1 and x2 of all path elements.\n * @param {Number} y The number which will be used to translate the y, y1 and y2 of all path elements.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function translate(x, y) {\n forEachParam(this.pathElements, function(pathElement, paramName) {\n pathElement[paramName] += paramName[0] === 'x' ? x : y;\n });\n return this;\n }\n\n /**\n * This function will run over all existing path elements and then loop over their attributes. The callback function will be called for every path element attribute that exists in the current path.\n * The method signature of the callback function looks like this:\n * ```javascript\n * function(pathElement, paramName, pathElementIndex, paramIndex, pathElements)\n * ```\n * If something else than undefined is returned by the callback function, this value will be used to replace the old value. This allows you to build custom transformations of path objects that can't be achieved using the basic transformation functions scale and translate.\n *\n * @memberof Chartist.Svg.Path\n * @param {Function} transformFnc The callback function for the transformation. Check the signature in the function description.\n * @return {Chartist.Svg.Path} The current path object for easy call chaining.\n */\n function transform(transformFnc) {\n forEachParam(this.pathElements, function(pathElement, paramName, pathElementIndex, paramIndex, pathElements) {\n var transformed = transformFnc(pathElement, paramName, pathElementIndex, paramIndex, pathElements);\n if(transformed || transformed === 0) {\n pathElement[paramName] = transformed;\n }\n });\n return this;\n }\n\n /**\n * This function clones a whole path object with all its properties. This is a deep clone and path element objects will also be cloned.\n *\n * @memberof Chartist.Svg.Path\n * @param {Boolean} [close] Optional option to set the new cloned path to closed. If not specified or false, the original path close option will be used.\n * @return {Chartist.Svg.Path}\n */\n function clone(close) {\n var c = new Chartist.Svg.Path(close || this.close);\n c.pos = this.pos;\n c.pathElements = this.pathElements.slice().map(function cloneElements(pathElement) {\n return Chartist.extend({}, pathElement);\n });\n c.options = Chartist.extend({}, this.options);\n return c;\n }\n\n /**\n * Split a Svg.Path object by a specific command in the path chain. The path chain will be split and an array of newly created paths objects will be returned. This is useful if you'd like to split an SVG path by it's move commands, for example, in order to isolate chunks of drawings.\n *\n * @memberof Chartist.Svg.Path\n * @param {String} command The command you'd like to use to split the path\n * @return {Array}\n */\n function splitByCommand(command) {\n var split = [\n new Chartist.Svg.Path()\n ];\n\n this.pathElements.forEach(function(pathElement) {\n if(pathElement.command === command.toUpperCase() && split[split.length - 1].pathElements.length !== 0) {\n split.push(new Chartist.Svg.Path());\n }\n\n split[split.length - 1].pathElements.push(pathElement);\n });\n\n return split;\n }\n\n /**\n * This static function on `Chartist.Svg.Path` is joining multiple paths together into one paths.\n *\n * @memberof Chartist.Svg.Path\n * @param {Array} paths A list of paths to be joined together. The order is important.\n * @param {boolean} close If the newly created path should be a closed path\n * @param {Object} options Path options for the newly created path.\n * @return {Chartist.Svg.Path}\n */\n\n function join(paths, close, options) {\n var joinedPath = new Chartist.Svg.Path(close, options);\n for(var i = 0; i < paths.length; i++) {\n var path = paths[i];\n for(var j = 0; j < path.pathElements.length; j++) {\n joinedPath.pathElements.push(path.pathElements[j]);\n }\n }\n return joinedPath;\n }\n\n Chartist.Svg.Path = Chartist.Class.extend({\n constructor: SvgPath,\n position: position,\n remove: remove,\n move: move,\n line: line,\n curve: curve,\n arc: arc,\n scale: scale,\n translate: translate,\n transform: transform,\n parse: parse,\n stringify: stringify,\n clone: clone,\n splitByCommand: splitByCommand\n });\n\n Chartist.Svg.Path.elementDescriptions = elementDescriptions;\n Chartist.Svg.Path.join = join;\n}(this || global, Chartist));\n;/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n var axisUnits = {\n x: {\n pos: 'x',\n len: 'width',\n dir: 'horizontal',\n rectStart: 'x1',\n rectEnd: 'x2',\n rectOffset: 'y2'\n },\n y: {\n pos: 'y',\n len: 'height',\n dir: 'vertical',\n rectStart: 'y2',\n rectEnd: 'y1',\n rectOffset: 'x1'\n }\n };\n\n function Axis(units, chartRect, ticks, options) {\n this.units = units;\n this.counterUnits = units === axisUnits.x ? axisUnits.y : axisUnits.x;\n this.chartRect = chartRect;\n this.axisLength = chartRect[units.rectEnd] - chartRect[units.rectStart];\n this.gridOffset = chartRect[units.rectOffset];\n this.ticks = ticks;\n this.options = options;\n }\n\n function createGridAndLabels(gridGroup, labelGroup, useForeignObject, chartOptions, eventEmitter) {\n var axisOptions = chartOptions['axis' + this.units.pos.toUpperCase()];\n var projectedValues = this.ticks.map(this.projectValue.bind(this));\n var labelValues = this.ticks.map(axisOptions.labelInterpolationFnc);\n\n projectedValues.forEach(function(projectedValue, index) {\n var labelOffset = {\n x: 0,\n y: 0\n };\n\n // TODO: Find better solution for solving this problem\n // Calculate how much space we have available for the label\n var labelLength;\n if(projectedValues[index + 1]) {\n // If we still have one label ahead, we can calculate the distance to the next tick / label\n labelLength = projectedValues[index + 1] - projectedValue;\n } else {\n // If we don't have a label ahead and we have only two labels in total, we just take the remaining distance to\n // on the whole axis length. We limit that to a minimum of 30 pixel, so that labels close to the border will\n // still be visible inside of the chart padding.\n labelLength = Math.max(this.axisLength - projectedValue, 30);\n }\n\n // Skip grid lines and labels where interpolated label values are falsey (execpt for 0)\n if(Chartist.isFalseyButZero(labelValues[index]) && labelValues[index] !== '') {\n return;\n }\n\n // Transform to global coordinates using the chartRect\n // We also need to set the label offset for the createLabel function\n if(this.units.pos === 'x') {\n projectedValue = this.chartRect.x1 + projectedValue;\n labelOffset.x = chartOptions.axisX.labelOffset.x;\n\n // If the labels should be positioned in start position (top side for vertical axis) we need to set a\n // different offset as for positioned with end (bottom)\n if(chartOptions.axisX.position === 'start') {\n labelOffset.y = this.chartRect.padding.top + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20);\n } else {\n labelOffset.y = this.chartRect.y1 + chartOptions.axisX.labelOffset.y + (useForeignObject ? 5 : 20);\n }\n } else {\n projectedValue = this.chartRect.y1 - projectedValue;\n labelOffset.y = chartOptions.axisY.labelOffset.y - (useForeignObject ? labelLength : 0);\n\n // If the labels should be positioned in start position (left side for horizontal axis) we need to set a\n // different offset as for positioned with end (right side)\n if(chartOptions.axisY.position === 'start') {\n labelOffset.x = useForeignObject ? this.chartRect.padding.left + chartOptions.axisY.labelOffset.x : this.chartRect.x1 - 10;\n } else {\n labelOffset.x = this.chartRect.x2 + chartOptions.axisY.labelOffset.x + 10;\n }\n }\n\n if(axisOptions.showGrid) {\n Chartist.createGrid(projectedValue, index, this, this.gridOffset, this.chartRect[this.counterUnits.len](), gridGroup, [\n chartOptions.classNames.grid,\n chartOptions.classNames[this.units.dir]\n ], eventEmitter);\n }\n\n if(axisOptions.showLabel) {\n Chartist.createLabel(projectedValue, labelLength, index, labelValues, this, axisOptions.offset, labelOffset, labelGroup, [\n chartOptions.classNames.label,\n chartOptions.classNames[this.units.dir],\n (axisOptions.position === 'start' ? chartOptions.classNames[axisOptions.position] : chartOptions.classNames['end'])\n ], useForeignObject, eventEmitter);\n }\n }.bind(this));\n }\n\n Chartist.Axis = Chartist.Class.extend({\n constructor: Axis,\n createGridAndLabels: createGridAndLabels,\n projectValue: function(value, index, data) {\n throw new Error('Base axis can\\'t be instantiated!');\n }\n });\n\n Chartist.Axis.units = axisUnits;\n\n}(this || global, Chartist));\n;/**\n * The auto scale axis uses standard linear scale projection of values along an axis. It uses order of magnitude to find a scale automatically and evaluates the available space in order to find the perfect amount of ticks for your chart.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored\n * high: 100,\n * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored\n * low: 0,\n * // This option will be used when finding the right scale division settings. The amount of ticks on the scale will be determined so that as many ticks as possible will be displayed, while not violating this minimum required space (in pixel).\n * scaleMinSpace: 20,\n * // Can be set to true or false. If set to true, the scale will be generated with whole numbers only.\n * onlyInteger: true,\n * // The reference value can be used to make sure that this value will always be on the chart. This is especially useful on bipolar charts where the bipolar center always needs to be part of the chart.\n * referenceValue: 5\n * };\n * ```\n *\n * @module Chartist.AutoScaleAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function AutoScaleAxis(axisUnit, data, chartRect, options) {\n // Usually we calculate highLow based on the data but this can be overriden by a highLow object in the options\n var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos);\n this.bounds = Chartist.getBounds(chartRect[axisUnit.rectEnd] - chartRect[axisUnit.rectStart], highLow, options.scaleMinSpace || 20, options.onlyInteger);\n this.range = {\n min: this.bounds.min,\n max: this.bounds.max\n };\n\n Chartist.AutoScaleAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n this.bounds.values,\n options);\n }\n\n function projectValue(value) {\n return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.bounds.min) / this.bounds.range;\n }\n\n Chartist.AutoScaleAxis = Chartist.Axis.extend({\n constructor: AutoScaleAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The fixed scale axis uses standard linear projection of values along an axis. It makes use of a divisor option to divide the range provided from the minimum and maximum value or the options high and low that will override the computed minimum and maximum.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // If high is specified then the axis will display values explicitly up to this value and the computed maximum from the data is ignored\n * high: 100,\n * // If low is specified then the axis will display values explicitly down to this value and the computed minimum from the data is ignored\n * low: 0,\n * // If specified then the value range determined from minimum to maximum (or low and high) will be divided by this number and ticks will be generated at those division points. The default divisor is 1.\n * divisor: 4,\n * // If ticks is explicitly set, then the axis will not compute the ticks with the divisor, but directly use the data in ticks to determine at what points on the axis a tick need to be generated.\n * ticks: [1, 10, 20, 30]\n * };\n * ```\n *\n * @module Chartist.FixedScaleAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function FixedScaleAxis(axisUnit, data, chartRect, options) {\n var highLow = options.highLow || Chartist.getHighLow(data, options, axisUnit.pos);\n this.divisor = options.divisor || 1;\n this.ticks = options.ticks || Chartist.times(this.divisor).map(function(value, index) {\n return highLow.low + (highLow.high - highLow.low) / this.divisor * index;\n }.bind(this));\n this.ticks.sort(function(a, b) {\n return a - b;\n });\n this.range = {\n min: highLow.low,\n max: highLow.high\n };\n\n Chartist.FixedScaleAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n this.ticks,\n options);\n\n this.stepLength = this.axisLength / this.divisor;\n }\n\n function projectValue(value) {\n return this.axisLength * (+Chartist.getMultiValue(value, this.units.pos) - this.range.min) / (this.range.max - this.range.min);\n }\n\n Chartist.FixedScaleAxis = Chartist.Axis.extend({\n constructor: FixedScaleAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The step axis for step based charts like bar chart or step based line charts. It uses a fixed amount of ticks that will be equally distributed across the whole axis length. The projection is done using the index of the data value rather than the value itself and therefore it's only useful for distribution purpose.\n * **Options**\n * The following options are used by this axis in addition to the default axis options outlined in the axis configuration of the chart default settings.\n * ```javascript\n * var options = {\n * // Ticks to be used to distribute across the axis length. As this axis type relies on the index of the value rather than the value, arbitrary data that can be converted to a string can be used as ticks.\n * ticks: ['One', 'Two', 'Three'],\n * // If set to true the full width will be used to distribute the values where the last value will be at the maximum of the axis length. If false the spaces between the ticks will be evenly distributed instead.\n * stretch: true\n * };\n * ```\n *\n * @module Chartist.StepAxis\n */\n/* global Chartist */\n(function (globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n function StepAxis(axisUnit, data, chartRect, options) {\n Chartist.StepAxis.super.constructor.call(this,\n axisUnit,\n chartRect,\n options.ticks,\n options);\n\n var calc = Math.max(1, options.ticks.length - (options.stretch ? 1 : 0));\n this.stepLength = this.axisLength / calc;\n }\n\n function projectValue(value, index) {\n return this.stepLength * index;\n }\n\n Chartist.StepAxis = Chartist.Axis.extend({\n constructor: StepAxis,\n projectValue: projectValue\n });\n\n}(this || global, Chartist));\n;/**\n * The Chartist line chart can be used to draw Line or Scatter charts. If used in the browser you can access the global `Chartist` namespace where you find the `Line` function as a main entry point.\n *\n * For examples on how to use the line chart please check the examples of the `Chartist.Line` method.\n *\n * @module Chartist.Line\n */\n/* global Chartist */\n(function(globalRoot, Chartist){\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in line charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Line\n */\n var defaultOptions = {\n // Options for X-Axis\n axisX: {\n // The offset of the labels to the chart area\n offset: 30,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'end',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // Set the axis type to be used to project values on this axis. If not defined, Chartist.StepAxis will be used for the X-Axis, where the ticks option will be set to the labels in the data and the stretch option will be set to the global fullWidth option. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here.\n type: undefined\n },\n // Options for Y-Axis\n axisY: {\n // The offset of the labels to the chart area\n offset: 40,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'start',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // Set the axis type to be used to project values on this axis. If not defined, Chartist.AutoScaleAxis will be used for the Y-Axis, where the high and low options will be set to the global high and low options. This type can be changed to any axis constructor available (e.g. Chartist.FixedScaleAxis), where all axis options should be present here.\n type: undefined,\n // This value specifies the minimum height in pixel of the scale steps\n scaleMinSpace: 20,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // If the line should be drawn or not\n showLine: true,\n // If dots should be drawn or not\n showPoint: true,\n // If the line chart should draw an area\n showArea: false,\n // The base for the area chart that will be used to close the area shape (is normally 0)\n areaBase: 0,\n // Specify if the lines should be smoothed. This value can be true or false where true will result in smoothing using the default smoothing interpolation function Chartist.Interpolation.cardinal and false results in Chartist.Interpolation.none. You can also choose other smoothing / interpolation functions available in the Chartist.Interpolation module, or write your own interpolation function. Check the examples for a brief description.\n lineSmooth: true,\n // If the line chart should add a background fill to the .ct-grids group.\n showGridBackground: false,\n // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value\n low: undefined,\n // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value\n high: undefined,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: {\n top: 15,\n right: 15,\n bottom: 5,\n left: 10\n },\n // When set to true, the last grid line on the x-axis is not drawn and the chart elements will expand to the full available width of the chart. For the last label to be drawn correctly you might need to add chart padding or offset the last label with a draw event handler.\n fullWidth: false,\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // Override the class names that get used to generate the SVG structure of the chart\n classNames: {\n chart: 'ct-chart-line',\n label: 'ct-label',\n labelGroup: 'ct-labels',\n series: 'ct-series',\n line: 'ct-line',\n point: 'ct-point',\n area: 'ct-area',\n grid: 'ct-grid',\n gridGroup: 'ct-grids',\n gridBackground: 'ct-grid-background',\n vertical: 'ct-vertical',\n horizontal: 'ct-horizontal',\n start: 'ct-start',\n end: 'ct-end'\n }\n };\n\n /**\n * Creates a new chart\n *\n */\n function createChart(options) {\n var data = Chartist.normalizeData(this.data, options.reverseData, true);\n\n // Create new svg object\n this.svg = Chartist.createSvg(this.container, options.width, options.height, options.classNames.chart);\n // Create groups for labels, grid and series\n var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup);\n var seriesGroup = this.svg.elem('g');\n var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup);\n\n var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n var axisX, axisY;\n\n if(options.axisX.type === undefined) {\n axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n ticks: data.normalized.labels,\n stretch: options.fullWidth\n }));\n } else {\n axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX);\n }\n\n if(options.axisY.type === undefined) {\n axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n high: Chartist.isNumeric(options.high) ? options.high : options.axisY.high,\n low: Chartist.isNumeric(options.low) ? options.low : options.axisY.low\n }));\n } else {\n axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY);\n }\n\n axisX.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n axisY.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n\n if (options.showGridBackground) {\n Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter);\n }\n\n // Draw the series\n data.raw.series.forEach(function(series, seriesIndex) {\n var seriesElement = seriesGroup.elem('g');\n\n // Write attributes to series group element. If series name or meta is undefined the attributes will not be written\n seriesElement.attr({\n 'ct:series-name': series.name,\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // Use series class from series data or if not set generate one\n seriesElement.addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex))\n ].join(' '));\n\n var pathCoordinates = [],\n pathData = [];\n\n data.normalized.series[seriesIndex].forEach(function(value, valueIndex) {\n var p = {\n x: chartRect.x1 + axisX.projectValue(value, valueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - axisY.projectValue(value, valueIndex, data.normalized.series[seriesIndex])\n };\n pathCoordinates.push(p.x, p.y);\n pathData.push({\n value: value,\n valueIndex: valueIndex,\n meta: Chartist.getMetaData(series, valueIndex)\n });\n }.bind(this));\n\n var seriesOptions = {\n lineSmooth: Chartist.getSeriesOption(series, options, 'lineSmooth'),\n showPoint: Chartist.getSeriesOption(series, options, 'showPoint'),\n showLine: Chartist.getSeriesOption(series, options, 'showLine'),\n showArea: Chartist.getSeriesOption(series, options, 'showArea'),\n areaBase: Chartist.getSeriesOption(series, options, 'areaBase')\n };\n\n var smoothing = typeof seriesOptions.lineSmooth === 'function' ?\n seriesOptions.lineSmooth : (seriesOptions.lineSmooth ? Chartist.Interpolation.monotoneCubic() : Chartist.Interpolation.none());\n // Interpolating path where pathData will be used to annotate each path element so we can trace back the original\n // index, value and meta data\n var path = smoothing(pathCoordinates, pathData);\n\n // If we should show points we need to create them now to avoid secondary loop\n // Points are drawn from the pathElements returned by the interpolation function\n // Small offset for Firefox to render squares correctly\n if (seriesOptions.showPoint) {\n\n path.pathElements.forEach(function(pathElement) {\n var point = seriesElement.elem('line', {\n x1: pathElement.x,\n y1: pathElement.y,\n x2: pathElement.x + 0.01,\n y2: pathElement.y\n }, options.classNames.point).attr({\n 'ct:value': [pathElement.data.value.x, pathElement.data.value.y].filter(Chartist.isNumeric).join(','),\n 'ct:meta': Chartist.serialize(pathElement.data.meta)\n });\n\n this.eventEmitter.emit('draw', {\n type: 'point',\n value: pathElement.data.value,\n index: pathElement.data.valueIndex,\n meta: pathElement.data.meta,\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n group: seriesElement,\n element: point,\n x: pathElement.x,\n y: pathElement.y\n });\n }.bind(this));\n }\n\n if(seriesOptions.showLine) {\n var line = seriesElement.elem('path', {\n d: path.stringify()\n }, options.classNames.line, true);\n\n this.eventEmitter.emit('draw', {\n type: 'line',\n values: data.normalized.series[seriesIndex],\n path: path.clone(),\n chartRect: chartRect,\n index: seriesIndex,\n series: series,\n seriesIndex: seriesIndex,\n seriesMeta: series.meta,\n axisX: axisX,\n axisY: axisY,\n group: seriesElement,\n element: line\n });\n }\n\n // Area currently only works with axes that support a range!\n if(seriesOptions.showArea && axisY.range) {\n // If areaBase is outside the chart area (< min or > max) we need to set it respectively so that\n // the area is not drawn outside the chart area.\n var areaBase = Math.max(Math.min(seriesOptions.areaBase, axisY.range.max), axisY.range.min);\n\n // We project the areaBase value into screen coordinates\n var areaBaseProjected = chartRect.y1 - axisY.projectValue(areaBase);\n\n // In order to form the area we'll first split the path by move commands so we can chunk it up into segments\n path.splitByCommand('M').filter(function onlySolidSegments(pathSegment) {\n // We filter only \"solid\" segments that contain more than one point. Otherwise there's no need for an area\n return pathSegment.pathElements.length > 1;\n }).map(function convertToArea(solidPathSegments) {\n // Receiving the filtered solid path segments we can now convert those segments into fill areas\n var firstElement = solidPathSegments.pathElements[0];\n var lastElement = solidPathSegments.pathElements[solidPathSegments.pathElements.length - 1];\n\n // Cloning the solid path segment with closing option and removing the first move command from the clone\n // We then insert a new move that should start at the area base and draw a straight line up or down\n // at the end of the path we add an additional straight line to the projected area base value\n // As the closing option is set our path will be automatically closed\n return solidPathSegments.clone(true)\n .position(0)\n .remove(1)\n .move(firstElement.x, areaBaseProjected)\n .line(firstElement.x, firstElement.y)\n .position(solidPathSegments.pathElements.length + 1)\n .line(lastElement.x, areaBaseProjected);\n\n }).forEach(function createArea(areaPath) {\n // For each of our newly created area paths, we'll now create path elements by stringifying our path objects\n // and adding the created DOM elements to the correct series group\n var area = seriesElement.elem('path', {\n d: areaPath.stringify()\n }, options.classNames.area, true);\n\n // Emit an event for each area that was drawn\n this.eventEmitter.emit('draw', {\n type: 'area',\n values: data.normalized.series[seriesIndex],\n path: areaPath.clone(),\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n chartRect: chartRect,\n index: seriesIndex,\n group: seriesElement,\n element: area\n });\n }.bind(this));\n }\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n bounds: axisY.bounds,\n chartRect: chartRect,\n axisX: axisX,\n axisY: axisY,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new line chart.\n *\n * @memberof Chartist.Line\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object that needs to consist of a labels and a series array\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object which exposes the API for the created chart\n *\n * @example\n * // Create a simple line chart\n * var data = {\n * // A labels array that can contain any sort of values\n * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],\n * // Our series array that contains series objects or in this case series data arrays\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // As options we currently only set a static size of 300x200 px\n * var options = {\n * width: '300px',\n * height: '200px'\n * };\n *\n * // In the global name space Chartist we call the Line function to initialize a line chart. As a first parameter we pass in a selector where we would like to get our chart created. Second parameter is the actual data object and as a third parameter we pass in our options\n * new Chartist.Line('.ct-chart', data, options);\n *\n * @example\n * // Use specific interpolation function with configuration from the Chartist.Interpolation module\n *\n * var chart = new Chartist.Line('.ct-chart', {\n * labels: [1, 2, 3, 4, 5],\n * series: [\n * [1, 1, 8, 1, 7]\n * ]\n * }, {\n * lineSmooth: Chartist.Interpolation.cardinal({\n * tension: 0.2\n * })\n * });\n *\n * @example\n * // Create a line chart with responsive options\n *\n * var data = {\n * // A labels array that can contain any sort of values\n * labels: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday'],\n * // Our series array that contains series objects or in this case series data arrays\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // In addition to the regular options we specify responsive option overrides that will override the default configutation based on the matching media queries.\n * var responsiveOptions = [\n * ['screen and (min-width: 641px) and (max-width: 1024px)', {\n * showPoint: false,\n * axisX: {\n * labelInterpolationFnc: function(value) {\n * // Will return Mon, Tue, Wed etc. on medium screens\n * return value.slice(0, 3);\n * }\n * }\n * }],\n * ['screen and (max-width: 640px)', {\n * showLine: false,\n * axisX: {\n * labelInterpolationFnc: function(value) {\n * // Will return M, T, W etc. on small screens\n * return value[0];\n * }\n * }\n * }]\n * ];\n *\n * new Chartist.Line('.ct-chart', data, null, responsiveOptions);\n *\n */\n function Line(query, data, options, responsiveOptions) {\n Chartist.Line.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating line chart type in Chartist namespace\n Chartist.Line = Chartist.Base.extend({\n constructor: Line,\n createChart: createChart\n });\n\n}(this || global, Chartist));\n;/**\n * The bar chart module of Chartist that can be used to draw unipolar or bipolar bar and grouped bar charts.\n *\n * @module Chartist.Bar\n */\n/* global Chartist */\n(function(globalRoot, Chartist){\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in bar charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Bar\n */\n var defaultOptions = {\n // Options for X-Axis\n axisX: {\n // The offset of the chart drawing area to the border of the container\n offset: 30,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'end',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // This value specifies the minimum width in pixel of the scale steps\n scaleMinSpace: 30,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Options for Y-Axis\n axisY: {\n // The offset of the chart drawing area to the border of the container\n offset: 40,\n // Position where labels are placed. Can be set to `start` or `end` where `start` is equivalent to left or top on vertical axis and `end` is equivalent to right or bottom on horizontal axis.\n position: 'start',\n // Allows you to correct label positioning on this axis by positive or negative x and y offset.\n labelOffset: {\n x: 0,\n y: 0\n },\n // If labels should be shown or not\n showLabel: true,\n // If the axis grid should be drawn or not\n showGrid: true,\n // Interpolation function that allows you to intercept the value from the axis label\n labelInterpolationFnc: Chartist.noop,\n // This value specifies the minimum height in pixel of the scale steps\n scaleMinSpace: 20,\n // Use only integer values (whole numbers) for the scale steps\n onlyInteger: false\n },\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value\n high: undefined,\n // Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value\n low: undefined,\n // Unless low/high are explicitly set, bar chart will be centered at zero by default. Set referenceValue to null to auto scale.\n referenceValue: 0,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: {\n top: 15,\n right: 15,\n bottom: 5,\n left: 10\n },\n // Specify the distance in pixel of bars in a group\n seriesBarDistance: 15,\n // If set to true this property will cause the series bars to be stacked. Check the `stackMode` option for further stacking options.\n stackBars: false,\n // If set to 'overlap' this property will force the stacked bars to draw from the zero line.\n // If set to 'accumulate' this property will form a total for each series point. This will also influence the y-axis and the overall bounds of the chart. In stacked mode the seriesBarDistance property will have no effect.\n stackMode: 'accumulate',\n // Inverts the axes of the bar chart in order to draw a horizontal bar chart. Be aware that you also need to invert your axis settings as the Y Axis will now display the labels and the X Axis the values.\n horizontalBars: false,\n // If set to true then each bar will represent a series and the data array is expected to be a one dimensional array of data values rather than a series array of series. This is useful if the bar chart should represent a profile rather than some data over time.\n distributeSeries: false,\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // If the bar chart should add a background fill to the .ct-grids group.\n showGridBackground: false,\n // Override the class names that get used to generate the SVG structure of the chart\n classNames: {\n chart: 'ct-chart-bar',\n horizontalBars: 'ct-horizontal-bars',\n label: 'ct-label',\n labelGroup: 'ct-labels',\n series: 'ct-series',\n bar: 'ct-bar',\n grid: 'ct-grid',\n gridGroup: 'ct-grids',\n gridBackground: 'ct-grid-background',\n vertical: 'ct-vertical',\n horizontal: 'ct-horizontal',\n start: 'ct-start',\n end: 'ct-end'\n }\n };\n\n /**\n * Creates a new chart\n *\n */\n function createChart(options) {\n var data;\n var highLow;\n\n if(options.distributeSeries) {\n data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y');\n data.normalized.series = data.normalized.series.map(function(value) {\n return [value];\n });\n } else {\n data = Chartist.normalizeData(this.data, options.reverseData, options.horizontalBars ? 'x' : 'y');\n }\n\n // Create new svg element\n this.svg = Chartist.createSvg(\n this.container,\n options.width,\n options.height,\n options.classNames.chart + (options.horizontalBars ? ' ' + options.classNames.horizontalBars : '')\n );\n\n // Drawing groups in correct order\n var gridGroup = this.svg.elem('g').addClass(options.classNames.gridGroup);\n var seriesGroup = this.svg.elem('g');\n var labelGroup = this.svg.elem('g').addClass(options.classNames.labelGroup);\n\n if(options.stackBars && data.normalized.series.length !== 0) {\n\n // If stacked bars we need to calculate the high low from stacked values from each series\n var serialSums = Chartist.serialMap(data.normalized.series, function serialSums() {\n return Array.prototype.slice.call(arguments).map(function(value) {\n return value;\n }).reduce(function(prev, curr) {\n return {\n x: prev.x + (curr && curr.x) || 0,\n y: prev.y + (curr && curr.y) || 0\n };\n }, {x: 0, y: 0});\n });\n\n highLow = Chartist.getHighLow([serialSums], options, options.horizontalBars ? 'x' : 'y');\n\n } else {\n\n highLow = Chartist.getHighLow(data.normalized.series, options, options.horizontalBars ? 'x' : 'y');\n }\n\n // Overrides of high / low from settings\n highLow.high = +options.high || (options.high === 0 ? 0 : highLow.high);\n highLow.low = +options.low || (options.low === 0 ? 0 : highLow.low);\n\n var chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n\n var valueAxis,\n labelAxisTicks,\n labelAxis,\n axisX,\n axisY;\n\n // We need to set step count based on some options combinations\n if(options.distributeSeries && options.stackBars) {\n // If distributed series are enabled and bars need to be stacked, we'll only have one bar and therefore should\n // use only the first label for the step axis\n labelAxisTicks = data.normalized.labels.slice(0, 1);\n } else {\n // If distributed series are enabled but stacked bars aren't, we should use the series labels\n // If we are drawing a regular bar chart with two dimensional series data, we just use the labels array\n // as the bars are normalized\n labelAxisTicks = data.normalized.labels;\n }\n\n // Set labelAxis and valueAxis based on the horizontalBars setting. This setting will flip the axes if necessary.\n if(options.horizontalBars) {\n if(options.axisX.type === undefined) {\n valueAxis = axisX = new Chartist.AutoScaleAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n highLow: highLow,\n referenceValue: 0\n }));\n } else {\n valueAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, Chartist.extend({}, options.axisX, {\n highLow: highLow,\n referenceValue: 0\n }));\n }\n\n if(options.axisY.type === undefined) {\n labelAxis = axisY = new Chartist.StepAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, {\n ticks: labelAxisTicks\n });\n } else {\n labelAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, options.axisY);\n }\n } else {\n if(options.axisX.type === undefined) {\n labelAxis = axisX = new Chartist.StepAxis(Chartist.Axis.units.x, data.normalized.series, chartRect, {\n ticks: labelAxisTicks\n });\n } else {\n labelAxis = axisX = options.axisX.type.call(Chartist, Chartist.Axis.units.x, data.normalized.series, chartRect, options.axisX);\n }\n\n if(options.axisY.type === undefined) {\n valueAxis = axisY = new Chartist.AutoScaleAxis(Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n highLow: highLow,\n referenceValue: 0\n }));\n } else {\n valueAxis = axisY = options.axisY.type.call(Chartist, Chartist.Axis.units.y, data.normalized.series, chartRect, Chartist.extend({}, options.axisY, {\n highLow: highLow,\n referenceValue: 0\n }));\n }\n }\n\n // Projected 0 point\n var zeroPoint = options.horizontalBars ? (chartRect.x1 + valueAxis.projectValue(0)) : (chartRect.y1 - valueAxis.projectValue(0));\n // Used to track the screen coordinates of stacked bars\n var stackedBarValues = [];\n\n labelAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n valueAxis.createGridAndLabels(gridGroup, labelGroup, this.supportsForeignObject, options, this.eventEmitter);\n\n if (options.showGridBackground) {\n Chartist.createGridBackground(gridGroup, chartRect, options.classNames.gridBackground, this.eventEmitter);\n }\n\n // Draw the series\n data.raw.series.forEach(function(series, seriesIndex) {\n // Calculating bi-polar value of index for seriesOffset. For i = 0..4 biPol will be -1.5, -0.5, 0.5, 1.5 etc.\n var biPol = seriesIndex - (data.raw.series.length - 1) / 2;\n // Half of the period width between vertical grid lines used to position bars\n var periodHalfLength;\n // Current series SVG element\n var seriesElement;\n\n // We need to set periodHalfLength based on some options combinations\n if(options.distributeSeries && !options.stackBars) {\n // If distributed series are enabled but stacked bars aren't, we need to use the length of the normaizedData array\n // which is the series count and divide by 2\n periodHalfLength = labelAxis.axisLength / data.normalized.series.length / 2;\n } else if(options.distributeSeries && options.stackBars) {\n // If distributed series and stacked bars are enabled we'll only get one bar so we should just divide the axis\n // length by 2\n periodHalfLength = labelAxis.axisLength / 2;\n } else {\n // On regular bar charts we should just use the series length\n periodHalfLength = labelAxis.axisLength / data.normalized.series[seriesIndex].length / 2;\n }\n\n // Adding the series group to the series element\n seriesElement = seriesGroup.elem('g');\n\n // Write attributes to series group element. If series name or meta is undefined the attributes will not be written\n seriesElement.attr({\n 'ct:series-name': series.name,\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // Use series class from series data or if not set generate one\n seriesElement.addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(seriesIndex))\n ].join(' '));\n\n data.normalized.series[seriesIndex].forEach(function(value, valueIndex) {\n var projected,\n bar,\n previousStack,\n labelAxisValueIndex;\n\n // We need to set labelAxisValueIndex based on some options combinations\n if(options.distributeSeries && !options.stackBars) {\n // If distributed series are enabled but stacked bars aren't, we can use the seriesIndex for later projection\n // on the step axis for label positioning\n labelAxisValueIndex = seriesIndex;\n } else if(options.distributeSeries && options.stackBars) {\n // If distributed series and stacked bars are enabled, we will only get one bar and therefore always use\n // 0 for projection on the label step axis\n labelAxisValueIndex = 0;\n } else {\n // On regular bar charts we just use the value index to project on the label step axis\n labelAxisValueIndex = valueIndex;\n }\n\n // We need to transform coordinates differently based on the chart layout\n if(options.horizontalBars) {\n projected = {\n x: chartRect.x1 + valueAxis.projectValue(value && value.x ? value.x : 0, valueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - labelAxis.projectValue(value && value.y ? value.y : 0, labelAxisValueIndex, data.normalized.series[seriesIndex])\n };\n } else {\n projected = {\n x: chartRect.x1 + labelAxis.projectValue(value && value.x ? value.x : 0, labelAxisValueIndex, data.normalized.series[seriesIndex]),\n y: chartRect.y1 - valueAxis.projectValue(value && value.y ? value.y : 0, valueIndex, data.normalized.series[seriesIndex])\n }\n }\n\n // If the label axis is a step based axis we will offset the bar into the middle of between two steps using\n // the periodHalfLength value. Also we do arrange the different series so that they align up to each other using\n // the seriesBarDistance. If we don't have a step axis, the bar positions can be chosen freely so we should not\n // add any automated positioning.\n if(labelAxis instanceof Chartist.StepAxis) {\n // Offset to center bar between grid lines, but only if the step axis is not stretched\n if(!labelAxis.options.stretch) {\n projected[labelAxis.units.pos] += periodHalfLength * (options.horizontalBars ? -1 : 1);\n }\n // Using bi-polar offset for multiple series if no stacked bars or series distribution is used\n projected[labelAxis.units.pos] += (options.stackBars || options.distributeSeries) ? 0 : biPol * options.seriesBarDistance * (options.horizontalBars ? -1 : 1);\n }\n\n // Enter value in stacked bar values used to remember previous screen value for stacking up bars\n previousStack = stackedBarValues[valueIndex] || zeroPoint;\n stackedBarValues[valueIndex] = previousStack - (zeroPoint - projected[labelAxis.counterUnits.pos]);\n\n // Skip if value is undefined\n if(value === undefined) {\n return;\n }\n\n var positions = {};\n positions[labelAxis.units.pos + '1'] = projected[labelAxis.units.pos];\n positions[labelAxis.units.pos + '2'] = projected[labelAxis.units.pos];\n\n if(options.stackBars && (options.stackMode === 'accumulate' || !options.stackMode)) {\n // Stack mode: accumulate (default)\n // If bars are stacked we use the stackedBarValues reference and otherwise base all bars off the zero line\n // We want backwards compatibility, so the expected fallback without the 'stackMode' option\n // to be the original behaviour (accumulate)\n positions[labelAxis.counterUnits.pos + '1'] = previousStack;\n positions[labelAxis.counterUnits.pos + '2'] = stackedBarValues[valueIndex];\n } else {\n // Draw from the zero line normally\n // This is also the same code for Stack mode: overlap\n positions[labelAxis.counterUnits.pos + '1'] = zeroPoint;\n positions[labelAxis.counterUnits.pos + '2'] = projected[labelAxis.counterUnits.pos];\n }\n\n // Limit x and y so that they are within the chart rect\n positions.x1 = Math.min(Math.max(positions.x1, chartRect.x1), chartRect.x2);\n positions.x2 = Math.min(Math.max(positions.x2, chartRect.x1), chartRect.x2);\n positions.y1 = Math.min(Math.max(positions.y1, chartRect.y2), chartRect.y1);\n positions.y2 = Math.min(Math.max(positions.y2, chartRect.y2), chartRect.y1);\n\n var metaData = Chartist.getMetaData(series, valueIndex);\n\n // Create bar element\n bar = seriesElement.elem('line', positions, options.classNames.bar).attr({\n 'ct:value': [value.x, value.y].filter(Chartist.isNumeric).join(','),\n 'ct:meta': Chartist.serialize(metaData)\n });\n\n this.eventEmitter.emit('draw', Chartist.extend({\n type: 'bar',\n value: value,\n index: valueIndex,\n meta: metaData,\n series: series,\n seriesIndex: seriesIndex,\n axisX: axisX,\n axisY: axisY,\n chartRect: chartRect,\n group: seriesElement,\n element: bar\n }, positions));\n }.bind(this));\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n bounds: valueAxis.bounds,\n chartRect: chartRect,\n axisX: axisX,\n axisY: axisY,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new bar chart and returns API object that you can use for later changes.\n *\n * @memberof Chartist.Bar\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object that needs to consist of a labels and a series array\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object which exposes the API for the created chart\n *\n * @example\n * // Create a simple bar chart\n * var data = {\n * labels: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],\n * series: [\n * [5, 2, 4, 2, 0]\n * ]\n * };\n *\n * // In the global name space Chartist we call the Bar function to initialize a bar chart. As a first parameter we pass in a selector where we would like to get our chart created and as a second parameter we pass our data object.\n * new Chartist.Bar('.ct-chart', data);\n *\n * @example\n * // This example creates a bipolar grouped bar chart where the boundaries are limitted to -10 and 10\n * new Chartist.Bar('.ct-chart', {\n * labels: [1, 2, 3, 4, 5, 6, 7],\n * series: [\n * [1, 3, 2, -5, -3, 1, -6],\n * [-5, -2, -4, -1, 2, -3, 1]\n * ]\n * }, {\n * seriesBarDistance: 12,\n * low: -10,\n * high: 10\n * });\n *\n */\n function Bar(query, data, options, responsiveOptions) {\n Chartist.Bar.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating bar chart type in Chartist namespace\n Chartist.Bar = Chartist.Base.extend({\n constructor: Bar,\n createChart: createChart\n });\n\n}(this || global, Chartist));\n;/**\n * The pie chart module of Chartist that can be used to draw pie, donut or gauge charts\n *\n * @module Chartist.Pie\n */\n/* global Chartist */\n(function(globalRoot, Chartist) {\n 'use strict';\n\n var window = globalRoot.window;\n var document = globalRoot.document;\n\n /**\n * Default options in line charts. Expand the code view to see a detailed list of options with comments.\n *\n * @memberof Chartist.Pie\n */\n var defaultOptions = {\n // Specify a fixed width for the chart as a string (i.e. '100px' or '50%')\n width: undefined,\n // Specify a fixed height for the chart as a string (i.e. '100px' or '50%')\n height: undefined,\n // Padding of the chart drawing area to the container element and labels as a number or padding object {top: 5, right: 5, bottom: 5, left: 5}\n chartPadding: 5,\n // Override the class names that are used to generate the SVG structure of the chart\n classNames: {\n chartPie: 'ct-chart-pie',\n chartDonut: 'ct-chart-donut',\n series: 'ct-series',\n slicePie: 'ct-slice-pie',\n sliceDonut: 'ct-slice-donut',\n sliceDonutSolid: 'ct-slice-donut-solid',\n label: 'ct-label'\n },\n // The start angle of the pie chart in degrees where 0 points north. A higher value offsets the start angle clockwise.\n startAngle: 0,\n // An optional total you can specify. By specifying a total value, the sum of the values in the series must be this total in order to draw a full pie. You can use this parameter to draw only parts of a pie or gauge charts.\n total: undefined,\n // If specified the donut CSS classes will be used and strokes will be drawn instead of pie slices.\n donut: false,\n // If specified the donut segments will be drawn as shapes instead of strokes.\n donutSolid: false,\n // Specify the donut stroke width, currently done in javascript for convenience. May move to CSS styles in the future.\n // This option can be set as number or string to specify a relative width (i.e. 100 or '30%').\n donutWidth: 60,\n // If a label should be shown or not\n showLabel: true,\n // Label position offset from the standard position which is half distance of the radius. This value can be either positive or negative. Positive values will position the label away from the center.\n labelOffset: 0,\n // This option can be set to 'inside', 'outside' or 'center'. Positioned with 'inside' the labels will be placed on half the distance of the radius to the border of the Pie by respecting the 'labelOffset'. The 'outside' option will place the labels at the border of the pie and 'center' will place the labels in the absolute center point of the chart. The 'center' option only makes sense in conjunction with the 'labelOffset' option.\n labelPosition: 'inside',\n // An interpolation function for the label value\n labelInterpolationFnc: Chartist.noop,\n // Label direction can be 'neutral', 'explode' or 'implode'. The labels anchor will be positioned based on those settings as well as the fact if the labels are on the right or left side of the center of the chart. Usually explode is useful when labels are positioned far away from the center.\n labelDirection: 'neutral',\n // If true the whole data is reversed including labels, the series order as well as the whole series data arrays.\n reverseData: false,\n // If true empty values will be ignored to avoid drawing unncessary slices and labels\n ignoreEmptyValues: false\n };\n\n /**\n * Determines SVG anchor position based on direction and center parameter\n *\n * @param center\n * @param label\n * @param direction\n * @return {string}\n */\n function determineAnchorPosition(center, label, direction) {\n var toTheRight = label.x > center.x;\n\n if(toTheRight && direction === 'explode' ||\n !toTheRight && direction === 'implode') {\n return 'start';\n } else if(toTheRight && direction === 'implode' ||\n !toTheRight && direction === 'explode') {\n return 'end';\n } else {\n return 'middle';\n }\n }\n\n /**\n * Creates the pie chart\n *\n * @param options\n */\n function createChart(options) {\n var data = Chartist.normalizeData(this.data);\n var seriesGroups = [],\n labelsGroup,\n chartRect,\n radius,\n labelRadius,\n totalDataSum,\n startAngle = options.startAngle;\n\n // Create SVG.js draw\n this.svg = Chartist.createSvg(this.container, options.width, options.height,options.donut ? options.classNames.chartDonut : options.classNames.chartPie);\n // Calculate charting rect\n chartRect = Chartist.createChartRect(this.svg, options, defaultOptions.padding);\n // Get biggest circle radius possible within chartRect\n radius = Math.min(chartRect.width() / 2, chartRect.height() / 2);\n // Calculate total of all series to get reference value or use total reference from optional options\n totalDataSum = options.total || data.normalized.series.reduce(function(previousValue, currentValue) {\n return previousValue + currentValue;\n }, 0);\n\n var donutWidth = Chartist.quantity(options.donutWidth);\n if (donutWidth.unit === '%') {\n donutWidth.value *= radius / 100;\n }\n\n // If this is a donut chart we need to adjust our radius to enable strokes to be drawn inside\n // Unfortunately this is not possible with the current SVG Spec\n // See this proposal for more details: http://lists.w3.org/Archives/Public/www-svg/2003Oct/0000.html\n radius -= options.donut && !options.donutSolid ? donutWidth.value / 2 : 0;\n\n // If labelPosition is set to `outside` or a donut chart is drawn then the label position is at the radius,\n // if regular pie chart it's half of the radius\n if(options.labelPosition === 'outside' || options.donut && !options.donutSolid) {\n labelRadius = radius;\n } else if(options.labelPosition === 'center') {\n // If labelPosition is center we start with 0 and will later wait for the labelOffset\n labelRadius = 0;\n } else if(options.donutSolid) {\n labelRadius = radius - donutWidth.value / 2;\n } else {\n // Default option is 'inside' where we use half the radius so the label will be placed in the center of the pie\n // slice\n labelRadius = radius / 2;\n }\n // Add the offset to the labelRadius where a negative offset means closed to the center of the chart\n labelRadius += options.labelOffset;\n\n // Calculate end angle based on total sum and current data value and offset with padding\n var center = {\n x: chartRect.x1 + chartRect.width() / 2,\n y: chartRect.y2 + chartRect.height() / 2\n };\n\n // Check if there is only one non-zero value in the series array.\n var hasSingleValInSeries = data.raw.series.filter(function(val) {\n return val.hasOwnProperty('value') ? val.value !== 0 : val !== 0;\n }).length === 1;\n\n // Creating the series groups\n data.raw.series.forEach(function(series, index) {\n seriesGroups[index] = this.svg.elem('g', null, null);\n }.bind(this));\n //if we need to show labels we create the label group now\n if(options.showLabel) {\n labelsGroup = this.svg.elem('g', null, null);\n }\n\n // Draw the series\n // initialize series groups\n data.raw.series.forEach(function(series, index) {\n // If current value is zero and we are ignoring empty values then skip to next value\n if (data.normalized.series[index] === 0 && options.ignoreEmptyValues) return;\n\n // If the series is an object and contains a name or meta data we add a custom attribute\n seriesGroups[index].attr({\n 'ct:series-name': series.name\n });\n\n // Use series class from series data or if not set generate one\n seriesGroups[index].addClass([\n options.classNames.series,\n (series.className || options.classNames.series + '-' + Chartist.alphaNumerate(index))\n ].join(' '));\n\n // If the whole dataset is 0 endAngle should be zero. Can't divide by 0.\n var endAngle = (totalDataSum > 0 ? startAngle + data.normalized.series[index] / totalDataSum * 360 : 0);\n\n // Use slight offset so there are no transparent hairline issues\n var overlappigStartAngle = Math.max(0, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2));\n\n // If we need to draw the arc for all 360 degrees we need to add a hack where we close the circle\n // with Z and use 359.99 degrees\n if(endAngle - overlappigStartAngle >= 359.99) {\n endAngle = overlappigStartAngle + 359.99;\n }\n\n var start = Chartist.polarToCartesian(center.x, center.y, radius, overlappigStartAngle),\n end = Chartist.polarToCartesian(center.x, center.y, radius, endAngle);\n\n var innerStart,\n innerEnd,\n donutSolidRadius;\n\n // Create a new path element for the pie chart. If this isn't a donut chart we should close the path for a correct stroke\n var path = new Chartist.Svg.Path(!options.donut || options.donutSolid)\n .move(end.x, end.y)\n .arc(radius, radius, 0, endAngle - startAngle > 180, 0, start.x, start.y);\n\n // If regular pie chart (no donut) we add a line to the center of the circle for completing the pie\n if(!options.donut) {\n path.line(center.x, center.y);\n } else if (options.donutSolid) {\n donutSolidRadius = radius - donutWidth.value;\n innerStart = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, startAngle - (index === 0 || hasSingleValInSeries ? 0 : 0.2));\n innerEnd = Chartist.polarToCartesian(center.x, center.y, donutSolidRadius, endAngle);\n path.line(innerStart.x, innerStart.y);\n path.arc(donutSolidRadius, donutSolidRadius, 0, endAngle - startAngle > 180, 1, innerEnd.x, innerEnd.y);\n }\n\n // Create the SVG path\n // If this is a donut chart we add the donut class, otherwise just a regular slice\n var pathClassName = options.classNames.slicePie;\n if (options.donut) {\n pathClassName = options.classNames.sliceDonut;\n if (options.donutSolid) {\n pathClassName = options.classNames.sliceDonutSolid;\n }\n }\n var pathElement = seriesGroups[index].elem('path', {\n d: path.stringify()\n }, pathClassName);\n\n // Adding the pie series value to the path\n pathElement.attr({\n 'ct:value': data.normalized.series[index],\n 'ct:meta': Chartist.serialize(series.meta)\n });\n\n // If this is a donut, we add the stroke-width as style attribute\n if(options.donut && !options.donutSolid) {\n pathElement._node.style.strokeWidth = donutWidth.value + 'px';\n }\n\n // Fire off draw event\n this.eventEmitter.emit('draw', {\n type: 'slice',\n value: data.normalized.series[index],\n totalDataSum: totalDataSum,\n index: index,\n meta: series.meta,\n series: series,\n group: seriesGroups[index],\n element: pathElement,\n path: path.clone(),\n center: center,\n radius: radius,\n startAngle: startAngle,\n endAngle: endAngle\n });\n\n // If we need to show labels we need to add the label for this slice now\n if(options.showLabel) {\n var labelPosition;\n if(data.raw.series.length === 1) {\n // If we have only 1 series, we can position the label in the center of the pie\n labelPosition = {\n x: center.x,\n y: center.y\n };\n } else {\n // Position at the labelRadius distance from center and between start and end angle\n labelPosition = Chartist.polarToCartesian(\n center.x,\n center.y,\n labelRadius,\n startAngle + (endAngle - startAngle) / 2\n );\n }\n\n var rawValue;\n if(data.normalized.labels && !Chartist.isFalseyButZero(data.normalized.labels[index])) {\n rawValue = data.normalized.labels[index];\n } else {\n rawValue = data.normalized.series[index];\n }\n\n var interpolatedValue = options.labelInterpolationFnc(rawValue, index);\n\n if(interpolatedValue || interpolatedValue === 0) {\n var labelElement = labelsGroup.elem('text', {\n dx: labelPosition.x,\n dy: labelPosition.y,\n 'text-anchor': determineAnchorPosition(center, labelPosition, options.labelDirection)\n }, options.classNames.label).text('' + interpolatedValue);\n\n // Fire off draw event\n this.eventEmitter.emit('draw', {\n type: 'label',\n index: index,\n group: labelsGroup,\n element: labelElement,\n text: '' + interpolatedValue,\n x: labelPosition.x,\n y: labelPosition.y\n });\n }\n }\n\n // Set next startAngle to current endAngle.\n // (except for last slice)\n startAngle = endAngle;\n }.bind(this));\n\n this.eventEmitter.emit('created', {\n chartRect: chartRect,\n svg: this.svg,\n options: options\n });\n }\n\n /**\n * This method creates a new pie chart and returns an object that can be used to redraw the chart.\n *\n * @memberof Chartist.Pie\n * @param {String|Node} query A selector query string or directly a DOM element\n * @param {Object} data The data object in the pie chart needs to have a series property with a one dimensional data array. The values will be normalized against each other and don't necessarily need to be in percentage. The series property can also be an array of value objects that contain a value property and a className property to override the CSS class name for the series group.\n * @param {Object} [options] The options object with options that override the default options. Check the examples for a detailed list.\n * @param {Array} [responsiveOptions] Specify an array of responsive option arrays which are a media query and options object pair => [[mediaQueryString, optionsObject],[more...]]\n * @return {Object} An object with a version and an update method to manually redraw the chart\n *\n * @example\n * // Simple pie chart example with four series\n * new Chartist.Pie('.ct-chart', {\n * series: [10, 2, 4, 3]\n * });\n *\n * @example\n * // Drawing a donut chart\n * new Chartist.Pie('.ct-chart', {\n * series: [10, 2, 4, 3]\n * }, {\n * donut: true\n * });\n *\n * @example\n * // Using donut, startAngle and total to draw a gauge chart\n * new Chartist.Pie('.ct-chart', {\n * series: [20, 10, 30, 40]\n * }, {\n * donut: true,\n * donutWidth: 20,\n * startAngle: 270,\n * total: 200\n * });\n *\n * @example\n * // Drawing a pie chart with padding and labels that are outside the pie\n * new Chartist.Pie('.ct-chart', {\n * series: [20, 10, 30, 40]\n * }, {\n * chartPadding: 30,\n * labelOffset: 50,\n * labelDirection: 'explode'\n * });\n *\n * @example\n * // Overriding the class names for individual series as well as a name and meta data.\n * // The name will be written as ct:series-name attribute and the meta data will be serialized and written\n * // to a ct:meta attribute.\n * new Chartist.Pie('.ct-chart', {\n * series: [{\n * value: 20,\n * name: 'Series 1',\n * className: 'my-custom-class-one',\n * meta: 'Meta One'\n * }, {\n * value: 10,\n * name: 'Series 2',\n * className: 'my-custom-class-two',\n * meta: 'Meta Two'\n * }, {\n * value: 70,\n * name: 'Series 3',\n * className: 'my-custom-class-three',\n * meta: 'Meta Three'\n * }]\n * });\n */\n function Pie(query, data, options, responsiveOptions) {\n Chartist.Pie.super.constructor.call(this,\n query,\n data,\n defaultOptions,\n Chartist.extend({}, defaultOptions, options),\n responsiveOptions);\n }\n\n // Creating pie chart type in Chartist namespace\n Chartist.Pie = Chartist.Base.extend({\n constructor: Pie,\n createChart: createChart,\n determineAnchorPosition: determineAnchorPosition\n });\n\n}(this || global, Chartist));\n\nreturn Chartist;\n\n}));\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.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.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","require('../modules/es.array.iterator');\nrequire('../modules/es.string.iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nmodule.exports = getIteratorMethod;\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 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 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","var trim = require('../string/virtual/trim');\n\nvar StringPrototype = String.prototype;\n\nmodule.exports = function (it) {\n var own = it.trim;\n return typeof it === 'string' || it === StringPrototype\n || (it instanceof String && own === StringPrototype.trim) ? trim : own;\n};\n","require('../../modules/es.json.stringify');\nvar core = require('../../internals/path');\n\n// eslint-disable-next-line es/no-json -- safe\nif (!core.JSON) core.JSON = { stringify: JSON.stringify };\n\n// eslint-disable-next-line no-unused-vars -- required for `.length`\nmodule.exports = function stringify(it, replacer, space) {\n return core.JSON.stringify.apply(null, arguments);\n};\n","require('../../modules/es.array.iterator');\nrequire('../../modules/es.map');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.string.iterator');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Map;\n","require('../../modules/es.math.trunc');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Math.trunc;\n","require('../../modules/es.number.epsilon');\n\nmodule.exports = Math.pow(2, -52);\n","require('../../modules/es.number.is-safe-integer');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Number.isSafeInteger;\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-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.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-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.aggregate-error');\nrequire('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.promise');\nrequire('../../modules/es.promise.all-settled');\nrequire('../../modules/es.promise.any');\nrequire('../../modules/es.promise.finally');\nrequire('../../modules/es.string.iterator');\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.reflect.get');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Reflect.get;\n","require('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.set');\nrequire('../../modules/es.string.iterator');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Set;\n","require('../../../modules/es.string.trim');\nvar entryVirtual = require('../../../internals/entry-virtual');\n\nmodule.exports = entryVirtual('String').trim;\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.json.to-string-tag');\nrequire('../../modules/es.math.to-string-tag');\nrequire('../../modules/es.reflect.to-string-tag');\nvar path = require('../../internals/path');\n\nmodule.exports = path.Symbol;\n","require('../../modules/es.array.iterator');\nrequire('../../modules/es.object.to-string');\nrequire('../../modules/es.string.iterator');\nrequire('../../modules/es.symbol.iterator');\nvar WrappedWellKnownSymbolModule = require('../../internals/well-known-symbol-wrapped');\n\nmodule.exports = WrappedWellKnownSymbolModule.f('iterator');\n","var parent = require('../../stable/array/from');\n\nmodule.exports = parent;\n","var parent = require('../../stable/array/is-array');\n\nmodule.exports = parent;\n","var parent = require('../stable/get-iterator-method');\n\nmodule.exports = parent;\n","var parent = require('../../stable/instance/bind');\n\nmodule.exports = parent;\n","var parent = require('../../stable/instance/index-of');\n\nmodule.exports = parent;\n","var parent = require('../../stable/instance/slice');\n\nmodule.exports = parent;\n","var parent = require('../../stable/map');\nrequire('../../modules/esnext.map.from');\nrequire('../../modules/esnext.map.of');\nrequire('../../modules/esnext.map.delete-all');\nrequire('../../modules/esnext.map.emplace');\nrequire('../../modules/esnext.map.every');\nrequire('../../modules/esnext.map.filter');\nrequire('../../modules/esnext.map.find');\nrequire('../../modules/esnext.map.find-key');\nrequire('../../modules/esnext.map.group-by');\nrequire('../../modules/esnext.map.includes');\nrequire('../../modules/esnext.map.key-by');\nrequire('../../modules/esnext.map.key-of');\nrequire('../../modules/esnext.map.map-keys');\nrequire('../../modules/esnext.map.map-values');\nrequire('../../modules/esnext.map.merge');\nrequire('../../modules/esnext.map.reduce');\nrequire('../../modules/esnext.map.some');\nrequire('../../modules/esnext.map.update');\n// TODO: remove from `core-js@4`\nrequire('../../modules/esnext.map.upsert');\n// TODO: remove from `core-js@4`\nrequire('../../modules/esnext.map.update-or-insert');\n\nmodule.exports = parent;\n","var parent = require('../../stable/object/create');\n\nmodule.exports = parent;\n","var parent = require('../../stable/object/define-property');\n\nmodule.exports = parent;\n","var parent = require('../../stable/object/get-own-property-descriptor');\n\nmodule.exports = parent;\n","var parent = require('../../stable/object/get-prototype-of');\n\nmodule.exports = parent;\n","var parent = require('../../stable/object/set-prototype-of');\n\nmodule.exports = parent;\n","var parent = require('../../stable/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('../../stable/reflect/construct');\n\nmodule.exports = parent;\n","var parent = require('../../stable/reflect/get');\n\nmodule.exports = parent;\n","var parent = require('../../stable/symbol');\nrequire('../../modules/esnext.symbol.async-dispose');\nrequire('../../modules/esnext.symbol.dispose');\nrequire('../../modules/esnext.symbol.matcher');\nrequire('../../modules/esnext.symbol.metadata');\nrequire('../../modules/esnext.symbol.observable');\n// TODO: Remove from `core-js@4`\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('../../stable/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 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 getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\n// `Array.from` method implementation\n// https://tc39.es/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 = getIterator(O, iteratorMethod);\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 -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\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.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/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, filterReject }` 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 IS_FILTER_REJECT = TYPE == 7;\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 || IS_FILTER_REJECT ? 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 switch (TYPE) {\n case 4: return false; // every\n case 7: push.call(target, value); // filterReject\n }\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.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\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 -- required for testing\n method.call(null, argument || function () { throw 1; }, 1);\n });\n};\n","// TODO: use something more complex like timsort?\nvar floor = Math.floor;\n\nvar mergeSort = function (array, comparefn) {\n var length = array.length;\n var middle = floor(length / 2);\n return length < 8 ? insertionSort(array, comparefn) : merge(\n mergeSort(array.slice(0, middle), comparefn),\n mergeSort(array.slice(middle), comparefn),\n comparefn\n );\n};\n\nvar insertionSort = function (array, comparefn) {\n var length = array.length;\n var i = 1;\n var element, j;\n\n while (i < length) {\n j = i;\n element = array[i];\n while (j && comparefn(array[j - 1], element) > 0) {\n array[j] = array[--j];\n }\n if (j !== i++) array[j] = element;\n } return array;\n};\n\nvar merge = function (left, right, comparefn) {\n var llength = left.length;\n var rlength = right.length;\n var lindex = 0;\n var rindex = 0;\n var result = [];\n\n while (lindex < llength || rindex < rlength) {\n if (lindex < llength && rindex < rlength) {\n result.push(comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]);\n } else {\n result.push(lindex < llength ? left[lindex++] : right[rindex++]);\n }\n } return result;\n};\n\nmodule.exports = mergeSort;\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// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\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 C === undefined ? Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var anObject = require('../internals/an-object');\nvar iteratorClose = require('../internals/iterator-close');\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 } catch (error) {\n iteratorClose(iterator, '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 es/no-array-from, no-throw-literal -- required for testing\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 anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\n\n// https://github.com/tc39/collection-methods\nmodule.exports = function (/* ...elements */) {\n var collection = anObject(this);\n var remover = aFunction(collection['delete']);\n var allDeleted = true;\n var wasDeleted;\n for (var k = 0, len = arguments.length; k < len; k++) {\n wasDeleted = remover.call(collection, arguments[k]);\n allDeleted = allDeleted && wasDeleted;\n }\n return !!allDeleted;\n};\n","'use strict';\n// https://tc39.github.io/proposal-setmap-offrom/\nvar aFunction = require('../internals/a-function');\nvar bind = require('../internals/function-bind-context');\nvar iterate = require('../internals/iterate');\n\nmodule.exports = function from(source /* , mapFn, thisArg */) {\n var length = arguments.length;\n var mapFn = length > 1 ? arguments[1] : undefined;\n var mapping, array, n, boundFunction;\n aFunction(this);\n mapping = mapFn !== undefined;\n if (mapping) aFunction(mapFn);\n if (source == undefined) return new this();\n array = [];\n if (mapping) {\n n = 0;\n boundFunction = bind(mapFn, length > 2 ? arguments[2] : undefined, 2);\n iterate(source, function (nextItem) {\n array.push(boundFunction(nextItem, n++));\n });\n } else {\n iterate(source, array.push, { that: array });\n }\n return new this(array);\n};\n","'use strict';\n// https://tc39.github.io/proposal-setmap-offrom/\nmodule.exports = function of() {\n var length = arguments.length;\n var A = new Array(length);\n while (length--) A[length] = arguments[length];\n return new this(A);\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: that, AS_ENTRIES: 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 // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-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 // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\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 // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\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 // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n redefineAll(C.prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\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 // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\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 // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\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.enable();\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], { that: target, AS_ENTRIES: 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 fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\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 toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(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.prototype.{ 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// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\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\nvar firefox = userAgent.match(/firefox\\/(\\d+)/i);\n\nmodule.exports = !!firefox && +firefox[1];\n","module.exports = typeof window == 'object';\n","var UA = require('../internals/engine-user-agent');\n\nmodule.exports = /MSIE|Trident/.test(UA);\n","var userAgent = require('../internals/engine-user-agent');\nvar global = require('../internals/global');\n\nmodule.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefined;\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var classof = require('../internals/classof-raw');\nvar global = require('../internals/global');\n\nmodule.exports = classof(global.process) == 'process';\n","var userAgent = require('../internals/engine-user-agent');\n\nmodule.exports = /web0s(?!.*chrome)/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 Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n version = match[0] < 4 ? 1 : 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 userAgent = require('../internals/engine-user-agent');\n\nvar webkit = userAgent.match(/AppleWebKit\\/(\\d+)\\./);\n\nmodule.exports = !!webkit && +webkit[1];\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] || createNonEnumerableProperty(path, TARGET, {})[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 createNonEnumerableProperty(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 createNonEnumerableProperty(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 // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\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 -- we have no proper alternatives, IE8- only\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.es/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, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(it) : usingIterator;\n if (typeof iteratorMethod != 'function') {\n throw TypeError(String(it) + ' is not iterable');\n } return anObject(iteratorMethod.call(it));\n};\n","var getIterator = require('../internals/get-iterator');\n\nmodule.exports = getIterator;\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 es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var toObject = require('../internals/to-object');\n\nvar hasOwnProperty = {}.hasOwnProperty;\n\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty.call(toObject(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 // eslint-disable-next-line es/no-object-defineproperty -- requied for testing\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 -- safe\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 `core-js@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 $ = require('../internals/export');\nvar 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 getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\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 && REQUIRED && isExtensible(it) && !has(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = [].splice;\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice.call(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\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 shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\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 || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = store.get;\n var wmhas = store.has;\n var wmset = store.set;\n set = function (it, metadata) {\n if (wmhas.call(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\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 if (objectHas(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\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.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(arg) {\n return classof(arg) == 'Array';\n};\n","var has = require('../internals/has');\n\nmodule.exports = function (descriptor) {\n return descriptor !== undefined && (has(descriptor, 'value') || has(descriptor, 'writable'));\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 isObject = require('../internals/is-object');\n\nvar floor = Math.floor;\n\n// `Number.isInteger` method implementation\n// https://tc39.es/ecma262/#sec-number.isinteger\nmodule.exports = function isInteger(it) {\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n","module.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n","module.exports = true;\n","var getBuiltIn = require('../internals/get-built-in');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return typeof $Symbol == 'function' && Object(it) instanceof $Symbol;\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 getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'return', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\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 = callFn(iterable[index]);\n if (result && result instanceof Result) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && result instanceof Result) return result;\n } return new Result(false);\n};\n","var anObject = require('../internals/an-object');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = iterator['return'];\n if (innerResult === undefined) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = innerResult.call(iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","'use strict';\nvar fails = require('../internals/fails');\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.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\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\nvar NEW_ITERATOR_PROTOTYPE = IteratorPrototype == undefined || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif ((!IS_PURE || NEW_ITERATOR_PROTOTYPE) && !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","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `Map.prototype.emplace` method\n// https://github.com/thumbsupep/proposal-upsert\nmodule.exports = function emplace(key, handler) {\n var map = anObject(this);\n var value = (map.has(key) && 'update' in handler)\n ? handler.update(map.get(key), key, map)\n : handler.insert(key, map);\n map.set(key, value);\n return value;\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `Map.prototype.upsert` method\n// https://github.com/thumbsupep/proposal-upsert\nmodule.exports = function upsert(key, updateFn /* , insertFn */) {\n var map = anObject(this);\n var insertFn = arguments.length > 2 ? arguments[2] : undefined;\n var value;\n if (typeof updateFn != 'function' && typeof insertFn != 'function') {\n throw TypeError('At least one callback required');\n }\n if (map.has(key)) {\n value = map.get(key);\n if (typeof updateFn == 'function') {\n value = updateFn(value);\n map.set(key, value);\n }\n } else if (typeof insertFn == 'function') {\n value = insertFn();\n map.set(key, value);\n } return value;\n};\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar macrotask = require('../internals/task').set;\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_IOS_PEBBLE = require('../internals/engine-is-ios-pebble');\nvar IS_WEBOS_WEBKIT = require('../internals/engine-is-webos-webkit');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar MutationObserver = global.MutationObserver || global.WebKitMutationObserver;\nvar document = global.document;\nvar process = global.process;\nvar Promise = global.Promise;\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 // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339\n // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898\n if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {\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 (!IS_IOS_PEBBLE && Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n promise = Promise.resolve(undefined);\n // workaround of WebKit ~ iOS Safari 10.1 bug\n promise.constructor = Promise;\n then = promise.then;\n notify = function () {\n then.call(promise, flush);\n };\n // Node.js without promises\n } else if (IS_NODE) {\n notify = function () {\n process.nextTick(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","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = !fails(function () {\n var url = new URL('b?a=1&b=2&c=3', 'http://a');\n var searchParams = url.searchParams;\n var result = '';\n url.pathname = 'c%20d';\n searchParams.forEach(function (value, key) {\n searchParams['delete']('b');\n result += key + value;\n });\n return (IS_PURE && !url.toJSON)\n || !searchParams.sort\n || url.href !== 'http://a/c%20d?a=1&c=3'\n || searchParams.get('c') !== '3'\n || String(new URLSearchParams('?a=1')) !== 'a=1'\n || !searchParams[ITERATOR]\n // throws in Edge\n || new URL('https://a@b').username !== 'a'\n || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'\n // not punycoded in Edge\n || new URL('http://тест').host !== 'xn--e1aybc'\n // not escaped in Chrome 62-\n || new URL('http://a#б').hash !== '#%D0%B1'\n // fails in Chrome 66-\n || result !== 'a1c3'\n // throws in Safari\n || new URL('http://x', undefined).host !== 'x';\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// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","/* global ActiveXObject -- old IE, WSH */\nvar 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 activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\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.es/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.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\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 toPropertyKey = require('../internals/to-property-key');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(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 toPropertyKey = require('../internals/to-property-key');\nvar has = require('../internals/has');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (has(O, P)) return createPropertyDescriptor(!propertyIsEnumerableModule.f.call(O, P), O[P]);\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = 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 $getOwnPropertyNames(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 : $getOwnPropertyNames(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.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.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.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\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.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","/* eslint-disable no-proto -- safe */\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\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.es/ecma262/#sec-object.entries\n entries: createMethod(true),\n // `Object.values` method\n // https://tc39.es/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.es/ecma262/#sec-object.prototype.tostring\nmodule.exports = TO_STRING_TAG_SUPPORT ? {}.toString : function toString() {\n return '[object ' + classof(this) + ']';\n};\n","var isObject = require('../internals/is-object');\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === '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 (pref !== '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","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.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// `SameValueZero` abstract operation\n// https://tc39.es/ecma262/#sec-samevaluezero\nmodule.exports = function (x, y) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return x === y || x != x && y != y;\n};\n","var global = require('../internals/global');\n\nmodule.exports = function (key, value) {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(global, key, { value: value, configurable: true, writable: true });\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.16.4',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2021 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.es/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 toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\n// `String.prototype.codePointAt` methods implementation\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(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.es/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 fails = require('../internals/fails');\nvar whitespaces = require('../internals/whitespaces');\n\nvar non = '\\u200B\\u0085\\u180E';\n\n// check that a method works with the correct list\n// of whitespaces and has a correct name\nmodule.exports = function (METHOD_NAME) {\n return fails(function () {\n return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME;\n });\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\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 = toString(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.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\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');\nvar IS_NODE = require('../internals/engine-is-node');\n\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 location, defer, channel, port;\n\ntry {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n location = global.location;\n} catch (error) { /* empty */ }\n\nvar run = function (id) {\n // eslint-disable-next-line no-prototype-builtins -- safe\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(String(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 argumentsLength = arguments.length;\n var i = 1;\n while (argumentsLength > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func -- spec requirement\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 (IS_NODE) {\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 location && location.protocol !== 'file:' &&\n !fails(post)\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.es/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.es/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.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = input[TO_PRIMITIVE];\n var result;\n if (exoticToPrim !== undefined) {\n if (pref === undefined) pref = 'default';\n result = exoticToPrim.call(input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : String(key);\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 isSymbol = require('../internals/is-symbol');\n\nmodule.exports = function (argument) {\n if (isSymbol(argument)) throw TypeError('Cannot convert a Symbol value to a string');\n return String(argument);\n};\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","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\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) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n if (NATIVE_SYMBOL && has(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);\n }\n } return WellKnownSymbolsStore[name];\n};\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","'use strict';\nvar $ = require('../internals/export');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar iterate = require('../internals/iterate');\nvar toString = require('../internals/to-string');\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 // eslint-disable-next-line unicorn/error-message -- expected\n that = setPrototypeOf(new Error(undefined), getPrototypeOf(that));\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', toString(message));\n var errorsArray = [];\n iterate(errors, errorsArray.push, { that: errorsArray });\n createNonEnumerableProperty(that, 'errors', errorsArray);\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\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$({ global: true }, {\n AggregateError: $AggregateError\n});\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.es/ecma262/#sec-array.prototype.concat\n// with adding support of @@isConcatSpreadable and @@species\n$({ target: 'Array', proto: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n concat: function concat(arg) {\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');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');\n\n// `Array.prototype.filter` method\n// https://tc39.es/ecma262/#sec-array.prototype.filter\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\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');\n\nvar FIND = 'find';\nvar SKIPS_HOLES = true;\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.es/ecma262/#sec-array.prototype.find\n$({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {\n find: function find(callbackfn /* , that = undefined */) {\n return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\naddToUnscopables(FIND);\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 // eslint-disable-next-line es/no-array-from -- required for testing\n Array.from(iterable);\n});\n\n// `Array.from` method\n// https://tc39.es/ecma262/#sec-array.from\n$({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {\n from: from\n});\n","'use strict';\n/* eslint-disable es/no-array-prototype-indexof -- required for testing */\nvar $ = require('../internals/export');\nvar $indexOf = require('../internals/array-includes').indexOf;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\n\nvar nativeIndexOf = [].indexOf;\n\nvar NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;\nvar STRICT_METHOD = arrayMethodIsStrict('indexOf');\n\n// `Array.prototype.indexOf` method\n// https://tc39.es/ecma262/#sec-array.prototype.indexof\n$({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {\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.es/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.es/ecma262/#sec-array.prototype.entries\n// `Array.prototype.keys` method\n// https://tc39.es/ecma262/#sec-array.prototype.keys\n// `Array.prototype.values` method\n// https://tc39.es/ecma262/#sec-array.prototype.values\n// `Array.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-array.prototype-@@iterator\n// `CreateArrayIterator` internal method\n// https://tc39.es/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.es/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.es/ecma262/#sec-createunmappedargumentsobject\n// https://tc39.es/ecma262/#sec-createmappedargumentsobject\nIterators.Arguments = Iterators.Array;\n\n// https://tc39.es/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');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map');\n\n// `Array.prototype.map` method\n// https://tc39.es/ecma262/#sec-array.prototype.map\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\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 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');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('slice');\n\nvar SPECIES = wellKnownSymbol('species');\nvar nativeSlice = [].slice;\nvar max = Math.max;\n\n// `Array.prototype.slice` method\n// https://tc39.es/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 }, {\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 toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\nvar internalSort = require('../internals/array-sort');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar FF = require('../internals/engine-ff-version');\nvar IE_OR_EDGE = require('../internals/engine-is-ie-or-edge');\nvar V8 = require('../internals/engine-v8-version');\nvar WEBKIT = require('../internals/engine-webkit-version');\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 STABLE_SORT = !fails(function () {\n // feature detection can be too slow, so check engines versions\n if (V8) return V8 < 70;\n if (FF && FF > 3) return;\n if (IE_OR_EDGE) return true;\n if (WEBKIT) return WEBKIT < 603;\n\n var result = '';\n var code, chr, value, index;\n\n // generate an array with more 512 elements (Chakra and old V8 fails only in this case)\n for (code = 65; code < 76; code++) {\n chr = String.fromCharCode(code);\n\n switch (code) {\n case 66: case 69: case 70: case 72: value = 3; break;\n case 68: case 71: value = 4; break;\n default: value = 2;\n }\n\n for (index = 0; index < 47; index++) {\n test.push({ k: chr + index, v: value });\n }\n }\n\n test.sort(function (a, b) { return b.v - a.v; });\n\n for (index = 0; index < test.length; index++) {\n chr = test[index].k.charAt(0);\n if (result.charAt(result.length - 1) !== chr) result += chr;\n }\n\n return result !== 'DGBEFHACIJK';\n});\n\nvar FORCED = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;\n\nvar getSortCompare = function (comparefn) {\n return function (x, y) {\n if (y === undefined) return -1;\n if (x === undefined) return 1;\n if (comparefn !== undefined) return +comparefn(x, y) || 0;\n return toString(x) > toString(y) ? 1 : -1;\n };\n};\n\n// `Array.prototype.sort` method\n// https://tc39.es/ecma262/#sec-array.prototype.sort\n$({ target: 'Array', proto: true, forced: FORCED }, {\n sort: function sort(comparefn) {\n if (comparefn !== undefined) aFunction(comparefn);\n\n var array = toObject(this);\n\n if (STABLE_SORT) return comparefn === undefined ? nativeSort.call(array) : nativeSort.call(array, comparefn);\n\n var items = [];\n var arrayLength = toLength(array.length);\n var itemsLength, index;\n\n for (index = 0; index < arrayLength; index++) {\n if (index in array) items.push(array[index]);\n }\n\n items = internalSort(items, getSortCompare(comparefn));\n itemsLength = items.length;\n index = 0;\n\n while (index < itemsLength) array[index] = items[index++];\n while (index < arrayLength) delete array[index++];\n\n return array;\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');\n\nvar HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');\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.es/ecma262/#sec-array.prototype.splice\n// with adding support of @@species\n$({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {\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.es/ecma262/#sec-function.prototype.bind\n$({ target: 'Function', proto: true }, {\n bind: bind\n});\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar fails = require('../internals/fails');\n\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar re = /[\\uD800-\\uDFFF]/g;\nvar low = /^[\\uD800-\\uDBFF]$/;\nvar hi = /^[\\uDC00-\\uDFFF]$/;\n\nvar fix = function (match, offset, string) {\n var prev = string.charAt(offset - 1);\n var next = string.charAt(offset + 1);\n if ((low.test(match) && !hi.test(next)) || (hi.test(match) && !low.test(prev))) {\n return '\\\\u' + match.charCodeAt(0).toString(16);\n } return match;\n};\n\nvar FORCED = fails(function () {\n return $stringify('\\uDF06\\uD834') !== '\"\\\\udf06\\\\ud834\"'\n || $stringify('\\uDEAD') !== '\"\\\\udead\"';\n});\n\nif ($stringify) {\n // `JSON.stringify` method\n // https://tc39.es/ecma262/#sec-json.stringify\n // https://github.com/tc39/proposal-well-formed-stringify\n $({ target: 'JSON', stat: true, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n stringify: function stringify(it, replacer, space) {\n var result = $stringify.apply(null, arguments);\n return typeof result == 'string' ? result.replace(re, fix) : result;\n }\n });\n}\n","var global = require('../internals/global');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\n// JSON[@@toStringTag] property\n// https://tc39.es/ecma262/#sec-json-@@tostringtag\nsetToStringTag(global.JSON, 'JSON', true);\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Map` constructor\n// https://tc39.es/ecma262/#sec-map-objects\nmodule.exports = collection('Map', function (init) {\n return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","var $ = require('../internals/export');\n\nvar ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n$({ target: 'Math', stat: true }, {\n trunc: function trunc(it) {\n return (it > 0 ? floor : ceil)(it);\n }\n});\n","var $ = require('../internals/export');\n\n// `Number.EPSILON` constant\n// https://tc39.es/ecma262/#sec-number.epsilon\n$({ target: 'Number', stat: true }, {\n EPSILON: Math.pow(2, -52)\n});\n","var $ = require('../internals/export');\nvar isInteger = require('../internals/is-integer');\n\nvar abs = Math.abs;\n\n// `Number.isSafeInteger` method\n// https://tc39.es/ecma262/#sec-number.issafeinteger\n$({ target: 'Number', stat: true }, {\n isSafeInteger: function isSafeInteger(number) {\n return isInteger(number) && abs(number) <= 0x1FFFFFFFFFFFFF;\n }\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.es/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 objectDefinePropertyModile = require('../internals/object-define-property');\n\n// `Object.defineProperty` method\n// https://tc39.es/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.es/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 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.es/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 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.es/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.es/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.es/ecma262/#sec-object.setprototypeof\n$({ target: 'Object', stat: true }, {\n setPrototypeOf: setPrototypeOf\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://tc39.es/ecma262/#sec-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 (error) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[index] = { status: 'rejected', reason: error };\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 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://tc39.es/ecma262/#sec-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 (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\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 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.es/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// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`\nif (!IS_PURE && typeof NativePromise == 'function') {\n var method = getBuiltIn('Promise').prototype['finally'];\n if (NativePromise.prototype['finally'] !== method) {\n redefine(NativePromise.prototype, 'finally', method, { unsafe: true });\n }\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 setPrototypeOf = require('../internals/object-set-prototype-of');\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 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 IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_NODE = require('../internals/engine-is-node');\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 NativePromisePrototype = NativePromise && NativePromise.prototype;\nvar PromiseConstructor = NativePromise;\nvar PromiseConstructorPrototype = NativePromisePrototype;\nvar TypeError = global.TypeError;\nvar document = global.document;\nvar process = global.process;\nvar newPromiseCapability = newPromiseCapabilityModule.f;\nvar newGenericPromiseCapability = newPromiseCapability;\nvar DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);\nvar NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';\nvar UNHANDLED_REJECTION = 'unhandledrejection';\nvar REJECTION_HANDLED = 'rejectionhandled';\nvar PENDING = 0;\nvar FULFILLED = 1;\nvar REJECTED = 2;\nvar HANDLED = 1;\nvar UNHANDLED = 2;\nvar SUBCLASSING = false;\nvar Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;\n\nvar FORCED = isForced(PROMISE, function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);\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 (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#finally in the pure version for preventing prototype pollution\n if (IS_PURE && !PromiseConstructorPrototype['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(PROMISE_CONSTRUCTOR_SOURCE)) return false;\n // Detect correctness of subclassing with @@species support\n var promise = new PromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;\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 (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(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(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 (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);\n else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);\n};\n\nvar onUnhandled = function (state) {\n task.call(global, function () {\n var promise = state.facade;\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 (state) {\n task.call(global, function () {\n var promise = state.facade;\n if (IS_NODE) {\n process.emit('rejectionHandled', promise);\n } else dispatchEvent(REJECTION_HANDLED, promise, state.value);\n });\n};\n\nvar bind = function (fn, state, unwrap) {\n return function (value) {\n fn(state, value, unwrap);\n };\n};\n\nvar internalReject = function (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(state, true);\n};\n\nvar internalResolve = function (state, value, unwrap) {\n if (state.done) return;\n state.done = true;\n if (unwrap) state = unwrap;\n try {\n if (state.facade === 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, wrapper, state),\n bind(internalReject, wrapper, state)\n );\n } catch (error) {\n internalReject(wrapper, error, state);\n }\n });\n } else {\n state.value = value;\n state.state = FULFILLED;\n notify(state, false);\n }\n } catch (error) {\n internalReject({ 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, state), bind(internalReject, state));\n } catch (error) {\n internalReject(state, error);\n }\n };\n PromiseConstructorPrototype = PromiseConstructor.prototype;\n // eslint-disable-next-line no-unused-vars -- required for `.length`\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(PromiseConstructorPrototype, {\n // `Promise.prototype.then` method\n // https://tc39.es/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(state, false);\n return reaction.promise;\n },\n // `Promise.prototype.catch` method\n // https://tc39.es/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, state);\n this.reject = bind(internalReject, 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' && NativePromisePrototype !== Object.prototype) {\n nativeThen = NativePromisePrototype.then;\n\n if (!SUBCLASSING) {\n // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs\n redefine(NativePromisePrototype, '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 // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`\n redefine(NativePromisePrototype, 'catch', PromiseConstructorPrototype['catch'], { unsafe: true });\n }\n\n // make `.constructor === Promise` work for native promise-based APIs\n try {\n delete NativePromisePrototype.constructor;\n } catch (error) { /* empty */ }\n\n // make `instanceof Promise` work for native promise-based APIs\n if (setPrototypeOf) {\n setPrototypeOf(NativePromisePrototype, PromiseConstructorPrototype);\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.es/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.es/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.es/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.es/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.es/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","var $ = require('../internals/export');\nvar isObject = require('../internals/is-object');\nvar anObject = require('../internals/an-object');\nvar isDataDescriptor = require('../internals/is-data-descriptor');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\n\n// `Reflect.get` method\n// https://tc39.es/ecma262/#sec-reflect.get\nfunction get(target, propertyKey /* , receiver */) {\n var receiver = arguments.length < 3 ? target : arguments[2];\n var descriptor, prototype;\n if (anObject(target) === receiver) return target[propertyKey];\n descriptor = getOwnPropertyDescriptorModule.f(target, propertyKey);\n if (descriptor) return isDataDescriptor(descriptor)\n ? descriptor.value\n : descriptor.get === undefined ? undefined : descriptor.get.call(receiver);\n if (isObject(prototype = getPrototypeOf(target))) return get(prototype, propertyKey, receiver);\n}\n\n$({ target: 'Reflect', stat: true }, {\n get: get\n});\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Set` constructor\n// https://tc39.es/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 charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\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.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/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","'use strict';\nvar $ = require('../internals/export');\nvar $trim = require('../internals/string-trim').trim;\nvar forcedStringTrimMethod = require('../internals/string-trim-forced');\n\n// `String.prototype.trim` method\n// https://tc39.es/ecma262/#sec-string.prototype.trim\n$({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {\n trim: function trim() {\n return $trim(this);\n }\n});\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.asyncIterator` well-known symbol\n// https://tc39.es/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.es/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.es/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.es/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 fails = require('../internals/fails');\nvar has = require('../internals/has');\nvar isArray = require('../internals/is-array');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar anObject = require('../internals/an-object');\nvar toObject = require('../internals/to-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar $toString = require('../internals/to-string');\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 $defineProperty = function defineProperty(O, P, Attributes) {\n if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);\n anObject(O);\n var key = toPropertyKey(P);\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 = toPropertyKey(V);\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 = toPropertyKey(P);\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.es/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 : $toString(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.es/ecma262/#sec-symbol.for\n 'for': function (key) {\n var string = $toString(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.es/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.es/ecma262/#sec-object.create\n create: $create,\n // `Object.defineProperty` method\n // https://tc39.es/ecma262/#sec-object.defineproperty\n defineProperty: $defineProperty,\n // `Object.defineProperties` method\n // https://tc39.es/ecma262/#sec-object.defineproperties\n defineProperties: $defineProperties,\n // `Object.getOwnPropertyDescriptor` method\n // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor\n});\n\n$({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL }, {\n // `Object.getOwnPropertyNames` method\n // https://tc39.es/ecma262/#sec-object.getownpropertynames\n getOwnPropertyNames: $getOwnPropertyNames,\n // `Object.getOwnPropertySymbols` method\n // https://tc39.es/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.es/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 -- required for `.length`\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.es/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.es/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\n// https://tc39.es/ecma262/#sec-symbol.matchall\ndefineWellKnownSymbol('matchAll');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.match` well-known symbol\n// https://tc39.es/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.es/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.es/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.es/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.es/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.es/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.es/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.es/ecma262/#sec-symbol.unscopables\ndefineWellKnownSymbol('unscopables');\n","// TODO: Remove from `core-js@4`\nrequire('./es.aggregate-error');\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar collectionDeleteAll = require('../internals/collection-delete-all');\n\n// `Map.prototype.deleteAll` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n deleteAll: function deleteAll(/* ...elements */) {\n return collectionDeleteAll.apply(this, arguments);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar $emplace = require('../internals/map-emplace');\n\n// `Map.prototype.emplace` method\n// https://github.com/thumbsupep/proposal-upsert\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n emplace: $emplace\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar anObject = require('../internals/an-object');\nvar bind = require('../internals/function-bind-context');\nvar getMapIterator = require('../internals/get-map-iterator');\nvar iterate = require('../internals/iterate');\n\n// `Map.prototype.every` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n every: function every(callbackfn /* , thisArg */) {\n var map = anObject(this);\n var iterator = getMapIterator(map);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n return !iterate(iterator, function (key, value, stop) {\n if (!boundFunction(value, key, map)) return stop();\n }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar getBuiltIn = require('../internals/get-built-in');\nvar anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar bind = require('../internals/function-bind-context');\nvar speciesConstructor = require('../internals/species-constructor');\nvar getMapIterator = require('../internals/get-map-iterator');\nvar iterate = require('../internals/iterate');\n\n// `Map.prototype.filter` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n filter: function filter(callbackfn /* , thisArg */) {\n var map = anObject(this);\n var iterator = getMapIterator(map);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var newMap = new (speciesConstructor(map, getBuiltIn('Map')))();\n var setter = aFunction(newMap.set);\n iterate(iterator, function (key, value) {\n if (boundFunction(value, key, map)) setter.call(newMap, key, value);\n }, { AS_ENTRIES: true, IS_ITERATOR: true });\n return newMap;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar anObject = require('../internals/an-object');\nvar bind = require('../internals/function-bind-context');\nvar getMapIterator = require('../internals/get-map-iterator');\nvar iterate = require('../internals/iterate');\n\n// `Map.prototype.findKey` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n findKey: function findKey(callbackfn /* , thisArg */) {\n var map = anObject(this);\n var iterator = getMapIterator(map);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n return iterate(iterator, function (key, value, stop) {\n if (boundFunction(value, key, map)) return stop(key);\n }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar anObject = require('../internals/an-object');\nvar bind = require('../internals/function-bind-context');\nvar getMapIterator = require('../internals/get-map-iterator');\nvar iterate = require('../internals/iterate');\n\n// `Map.prototype.find` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n find: function find(callbackfn /* , thisArg */) {\n var map = anObject(this);\n var iterator = getMapIterator(map);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n return iterate(iterator, function (key, value, stop) {\n if (boundFunction(value, key, map)) return stop(value);\n }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).result;\n }\n});\n","var $ = require('../internals/export');\nvar from = require('../internals/collection-from');\n\n// `Map.from` method\n// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from\n$({ target: 'Map', stat: true }, {\n from: from\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aFunction = require('../internals/a-function');\n\n// `Map.groupBy` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', stat: true }, {\n groupBy: function groupBy(iterable, keyDerivative) {\n var newMap = new this();\n aFunction(keyDerivative);\n var has = aFunction(newMap.has);\n var get = aFunction(newMap.get);\n var set = aFunction(newMap.set);\n iterate(iterable, function (element) {\n var derivedKey = keyDerivative(element);\n if (!has.call(newMap, derivedKey)) set.call(newMap, derivedKey, [element]);\n else get.call(newMap, derivedKey).push(element);\n });\n return newMap;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar anObject = require('../internals/an-object');\nvar getMapIterator = require('../internals/get-map-iterator');\nvar sameValueZero = require('../internals/same-value-zero');\nvar iterate = require('../internals/iterate');\n\n// `Map.prototype.includes` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n includes: function includes(searchElement) {\n return iterate(getMapIterator(anObject(this)), function (key, value, stop) {\n if (sameValueZero(value, searchElement)) return stop();\n }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aFunction = require('../internals/a-function');\n\n// `Map.keyBy` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', stat: true }, {\n keyBy: function keyBy(iterable, keyDerivative) {\n var newMap = new this();\n aFunction(keyDerivative);\n var setter = aFunction(newMap.set);\n iterate(iterable, function (element) {\n setter.call(newMap, keyDerivative(element), element);\n });\n return newMap;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar anObject = require('../internals/an-object');\nvar getMapIterator = require('../internals/get-map-iterator');\nvar iterate = require('../internals/iterate');\n\n// `Map.prototype.includes` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n keyOf: function keyOf(searchElement) {\n return iterate(getMapIterator(anObject(this)), function (key, value, stop) {\n if (value === searchElement) return stop(key);\n }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar getBuiltIn = require('../internals/get-built-in');\nvar anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar bind = require('../internals/function-bind-context');\nvar speciesConstructor = require('../internals/species-constructor');\nvar getMapIterator = require('../internals/get-map-iterator');\nvar iterate = require('../internals/iterate');\n\n// `Map.prototype.mapKeys` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n mapKeys: function mapKeys(callbackfn /* , thisArg */) {\n var map = anObject(this);\n var iterator = getMapIterator(map);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var newMap = new (speciesConstructor(map, getBuiltIn('Map')))();\n var setter = aFunction(newMap.set);\n iterate(iterator, function (key, value) {\n setter.call(newMap, boundFunction(value, key, map), value);\n }, { AS_ENTRIES: true, IS_ITERATOR: true });\n return newMap;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar getBuiltIn = require('../internals/get-built-in');\nvar anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar bind = require('../internals/function-bind-context');\nvar speciesConstructor = require('../internals/species-constructor');\nvar getMapIterator = require('../internals/get-map-iterator');\nvar iterate = require('../internals/iterate');\n\n// `Map.prototype.mapValues` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n mapValues: function mapValues(callbackfn /* , thisArg */) {\n var map = anObject(this);\n var iterator = getMapIterator(map);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n var newMap = new (speciesConstructor(map, getBuiltIn('Map')))();\n var setter = aFunction(newMap.set);\n iterate(iterator, function (key, value) {\n setter.call(newMap, key, boundFunction(value, key, map));\n }, { AS_ENTRIES: true, IS_ITERATOR: true });\n return newMap;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar iterate = require('../internals/iterate');\n\n// `Map.prototype.merge` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n merge: function merge(iterable /* ...iterbles */) {\n var map = anObject(this);\n var setter = aFunction(map.set);\n var argumentsLength = arguments.length;\n var i = 0;\n while (i < argumentsLength) {\n iterate(arguments[i++], setter, { that: map, AS_ENTRIES: true });\n }\n return map;\n }\n});\n","var $ = require('../internals/export');\nvar of = require('../internals/collection-of');\n\n// `Map.of` method\n// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of\n$({ target: 'Map', stat: true }, {\n of: of\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\nvar getMapIterator = require('../internals/get-map-iterator');\nvar iterate = require('../internals/iterate');\n\n// `Map.prototype.reduce` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var map = anObject(this);\n var iterator = getMapIterator(map);\n var noInitial = arguments.length < 2;\n var accumulator = noInitial ? undefined : arguments[1];\n aFunction(callbackfn);\n iterate(iterator, function (key, value) {\n if (noInitial) {\n noInitial = false;\n accumulator = value;\n } else {\n accumulator = callbackfn(accumulator, value, key, map);\n }\n }, { AS_ENTRIES: true, IS_ITERATOR: true });\n if (noInitial) throw TypeError('Reduce of empty map with no initial value');\n return accumulator;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar anObject = require('../internals/an-object');\nvar bind = require('../internals/function-bind-context');\nvar getMapIterator = require('../internals/get-map-iterator');\nvar iterate = require('../internals/iterate');\n\n// `Set.prototype.some` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n some: function some(callbackfn /* , thisArg */) {\n var map = anObject(this);\n var iterator = getMapIterator(map);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined, 3);\n return iterate(iterator, function (key, value, stop) {\n if (boundFunction(value, key, map)) return stop();\n }, { AS_ENTRIES: true, IS_ITERATOR: true, INTERRUPTED: true }).stopped;\n }\n});\n","'use strict';\n// TODO: remove from `core-js@4`\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar $upsert = require('../internals/map-upsert');\n\n// `Map.prototype.updateOrInsert` method (replaced by `Map.prototype.emplace`)\n// https://github.com/thumbsupep/proposal-upsert\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n updateOrInsert: $upsert\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar anObject = require('../internals/an-object');\nvar aFunction = require('../internals/a-function');\n\n// `Set.prototype.update` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n update: function update(key, callback /* , thunk */) {\n var map = anObject(this);\n var length = arguments.length;\n aFunction(callback);\n var isPresentInMap = map.has(key);\n if (!isPresentInMap && length < 3) {\n throw TypeError('Updating absent value');\n }\n var value = isPresentInMap ? map.get(key) : aFunction(length > 2 ? arguments[2] : undefined)(key, map);\n map.set(key, callback(value, key, map));\n return map;\n }\n});\n","'use strict';\n// TODO: remove from `core-js@4`\nvar $ = require('../internals/export');\nvar IS_PURE = require('../internals/is-pure');\nvar $upsert = require('../internals/map-upsert');\n\n// `Map.prototype.upsert` method (replaced by `Map.prototype.emplace`)\n// https://github.com/thumbsupep/proposal-upsert\n$({ target: 'Map', proto: true, real: true, forced: IS_PURE }, {\n upsert: $upsert\n});\n","// TODO: Remove from `core-js@4`\nrequire('./es.promise.all-settled.js');\n","// TODO: Remove from `core-js@4`\nrequire('./es.promise.any');\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.matcher` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol('matcher');\n","var defineWellKnownSymbol = require('../internals/define-well-known-symbol');\n\n// `Symbol.metadata` well-known symbol\n// https://github.com/tc39/proposal-decorators\ndefineWellKnownSymbol('metadata');\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","// TODO: remove from `core-js@4`\nvar 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","'use strict';\n// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\nrequire('../modules/es.array.iterator');\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar USE_NATIVE_URL = require('../internals/native-url');\nvar redefine = require('../internals/redefine');\nvar redefineAll = require('../internals/redefine-all');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar InternalStateModule = require('../internals/internal-state');\nvar anInstance = require('../internals/an-instance');\nvar hasOwn = require('../internals/has');\nvar bind = require('../internals/function-bind-context');\nvar classof = require('../internals/classof');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar $toString = require('../internals/to-string');\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar nativeFetch = getBuiltIn('fetch');\nvar NativeRequest = getBuiltIn('Request');\nvar RequestPrototype = NativeRequest && NativeRequest.prototype;\nvar Headers = getBuiltIn('Headers');\nvar ITERATOR = wellKnownSymbol('iterator');\nvar URL_SEARCH_PARAMS = 'URLSearchParams';\nvar URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);\nvar getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);\n\nvar plus = /\\+/g;\nvar sequences = Array(4);\n\nvar percentSequence = function (bytes) {\n return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp('((?:%[\\\\da-f]{2}){' + bytes + '})', 'gi'));\n};\n\nvar percentDecode = function (sequence) {\n try {\n return decodeURIComponent(sequence);\n } catch (error) {\n return sequence;\n }\n};\n\nvar deserialize = function (it) {\n var result = it.replace(plus, ' ');\n var bytes = 4;\n try {\n return decodeURIComponent(result);\n } catch (error) {\n while (bytes) {\n result = result.replace(percentSequence(bytes--), percentDecode);\n }\n return result;\n }\n};\n\nvar find = /[!'()~]|%20/g;\n\nvar replace = {\n '!': '%21',\n \"'\": '%27',\n '(': '%28',\n ')': '%29',\n '~': '%7E',\n '%20': '+'\n};\n\nvar replacer = function (match) {\n return replace[match];\n};\n\nvar serialize = function (it) {\n return encodeURIComponent(it).replace(find, replacer);\n};\n\nvar parseSearchParams = function (result, query) {\n if (query) {\n var attributes = query.split('&');\n var index = 0;\n var attribute, entry;\n while (index < attributes.length) {\n attribute = attributes[index++];\n if (attribute.length) {\n entry = attribute.split('=');\n result.push({\n key: deserialize(entry.shift()),\n value: deserialize(entry.join('='))\n });\n }\n }\n }\n};\n\nvar updateSearchParams = function (query) {\n this.entries.length = 0;\n parseSearchParams(this.entries, query);\n};\n\nvar validateArgumentsLength = function (passed, required) {\n if (passed < required) throw TypeError('Not enough arguments');\n};\n\nvar URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {\n setInternalState(this, {\n type: URL_SEARCH_PARAMS_ITERATOR,\n iterator: getIterator(getInternalParamsState(params).entries),\n kind: kind\n });\n}, 'Iterator', function next() {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var step = state.iterator.next();\n var entry = step.value;\n if (!step.done) {\n step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value];\n } return step;\n});\n\n// `URLSearchParams` constructor\n// https://url.spec.whatwg.org/#interface-urlsearchparams\nvar URLSearchParamsConstructor = function URLSearchParams(/* init */) {\n anInstance(this, URLSearchParamsConstructor, URL_SEARCH_PARAMS);\n var init = arguments.length > 0 ? arguments[0] : undefined;\n var that = this;\n var entries = [];\n var iteratorMethod, iterator, next, step, entryIterator, entryNext, first, second, key;\n\n setInternalState(that, {\n type: URL_SEARCH_PARAMS,\n entries: entries,\n updateURL: function () { /* empty */ },\n updateSearchParams: updateSearchParams\n });\n\n if (init !== undefined) {\n if (isObject(init)) {\n iteratorMethod = getIteratorMethod(init);\n if (typeof iteratorMethod === 'function') {\n iterator = getIterator(init, iteratorMethod);\n next = iterator.next;\n while (!(step = next.call(iterator)).done) {\n entryIterator = getIterator(anObject(step.value));\n entryNext = entryIterator.next;\n if (\n (first = entryNext.call(entryIterator)).done ||\n (second = entryNext.call(entryIterator)).done ||\n !entryNext.call(entryIterator).done\n ) throw TypeError('Expected sequence with length 2');\n entries.push({ key: $toString(first.value), value: $toString(second.value) });\n }\n } else for (key in init) if (hasOwn(init, key)) entries.push({ key: key, value: $toString(init[key]) });\n } else {\n parseSearchParams(\n entries,\n typeof init === 'string' ? init.charAt(0) === '?' ? init.slice(1) : init : $toString(init)\n );\n }\n }\n};\n\nvar URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;\n\nredefineAll(URLSearchParamsPrototype, {\n // `URLSearchParams.prototype.append` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-append\n append: function append(name, value) {\n validateArgumentsLength(arguments.length, 2);\n var state = getInternalParamsState(this);\n state.entries.push({ key: $toString(name), value: $toString(value) });\n state.updateURL();\n },\n // `URLSearchParams.prototype.delete` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-delete\n 'delete': function (name) {\n validateArgumentsLength(arguments.length, 1);\n var state = getInternalParamsState(this);\n var entries = state.entries;\n var key = $toString(name);\n var index = 0;\n while (index < entries.length) {\n if (entries[index].key === key) entries.splice(index, 1);\n else index++;\n }\n state.updateURL();\n },\n // `URLSearchParams.prototype.get` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-get\n get: function get(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var index = 0;\n for (; index < entries.length; index++) {\n if (entries[index].key === key) return entries[index].value;\n }\n return null;\n },\n // `URLSearchParams.prototype.getAll` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-getall\n getAll: function getAll(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var result = [];\n var index = 0;\n for (; index < entries.length; index++) {\n if (entries[index].key === key) result.push(entries[index].value);\n }\n return result;\n },\n // `URLSearchParams.prototype.has` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-has\n has: function has(name) {\n validateArgumentsLength(arguments.length, 1);\n var entries = getInternalParamsState(this).entries;\n var key = $toString(name);\n var index = 0;\n while (index < entries.length) {\n if (entries[index++].key === key) return true;\n }\n return false;\n },\n // `URLSearchParams.prototype.set` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-set\n set: function set(name, value) {\n validateArgumentsLength(arguments.length, 1);\n var state = getInternalParamsState(this);\n var entries = state.entries;\n var found = false;\n var key = $toString(name);\n var val = $toString(value);\n var index = 0;\n var entry;\n for (; index < entries.length; index++) {\n entry = entries[index];\n if (entry.key === key) {\n if (found) entries.splice(index--, 1);\n else {\n found = true;\n entry.value = val;\n }\n }\n }\n if (!found) entries.push({ key: key, value: val });\n state.updateURL();\n },\n // `URLSearchParams.prototype.sort` method\n // https://url.spec.whatwg.org/#dom-urlsearchparams-sort\n sort: function sort() {\n var state = getInternalParamsState(this);\n var entries = state.entries;\n // Array#sort is not stable in some engines\n var slice = entries.slice();\n var entry, entriesIndex, sliceIndex;\n entries.length = 0;\n for (sliceIndex = 0; sliceIndex < slice.length; sliceIndex++) {\n entry = slice[sliceIndex];\n for (entriesIndex = 0; entriesIndex < sliceIndex; entriesIndex++) {\n if (entries[entriesIndex].key > entry.key) {\n entries.splice(entriesIndex, 0, entry);\n break;\n }\n }\n if (entriesIndex === sliceIndex) entries.push(entry);\n }\n state.updateURL();\n },\n // `URLSearchParams.prototype.forEach` method\n forEach: function forEach(callback /* , thisArg */) {\n var entries = getInternalParamsState(this).entries;\n var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined, 3);\n var index = 0;\n var entry;\n while (index < entries.length) {\n entry = entries[index++];\n boundFunction(entry.value, entry.key, this);\n }\n },\n // `URLSearchParams.prototype.keys` method\n keys: function keys() {\n return new URLSearchParamsIterator(this, 'keys');\n },\n // `URLSearchParams.prototype.values` method\n values: function values() {\n return new URLSearchParamsIterator(this, 'values');\n },\n // `URLSearchParams.prototype.entries` method\n entries: function entries() {\n return new URLSearchParamsIterator(this, 'entries');\n }\n}, { enumerable: true });\n\n// `URLSearchParams.prototype[@@iterator]` method\nredefine(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries);\n\n// `URLSearchParams.prototype.toString` method\n// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior\nredefine(URLSearchParamsPrototype, 'toString', function toString() {\n var entries = getInternalParamsState(this).entries;\n var result = [];\n var index = 0;\n var entry;\n while (index < entries.length) {\n entry = entries[index++];\n result.push(serialize(entry.key) + '=' + serialize(entry.value));\n } return result.join('&');\n}, { enumerable: true });\n\nsetToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);\n\n$({ global: true, forced: !USE_NATIVE_URL }, {\n URLSearchParams: URLSearchParamsConstructor\n});\n\n// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`\nif (!USE_NATIVE_URL && typeof Headers == 'function') {\n var wrapRequestOptions = function (init) {\n if (isObject(init)) {\n var body = init.body;\n var headers;\n if (classof(body) === URL_SEARCH_PARAMS) {\n headers = init.headers ? new Headers(init.headers) : new Headers();\n if (!headers.has('content-type')) {\n headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8');\n }\n return create(init, {\n body: createPropertyDescriptor(0, String(body)),\n headers: createPropertyDescriptor(0, headers)\n });\n }\n } return init;\n };\n\n if (typeof nativeFetch == 'function') {\n $({ global: true, enumerable: true, forced: true }, {\n fetch: function fetch(input /* , init */) {\n return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});\n }\n });\n }\n\n if (typeof NativeRequest == 'function') {\n var RequestConstructor = function Request(input /* , init */) {\n anInstance(this, RequestConstructor, 'Request');\n return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});\n };\n\n RequestPrototype.constructor = RequestConstructor;\n RequestConstructor.prototype = RequestPrototype;\n\n $({ global: true, forced: true }, {\n Request: RequestConstructor\n });\n }\n}\n\nmodule.exports = {\n URLSearchParams: URLSearchParamsConstructor,\n getState: getInternalParamsState\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/get-iterator-method');\nrequire('../modules/web.dom-collections.iterator');\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","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/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/instance/trim');\n\nmodule.exports = parent;\n","var parent = require('../../es/json/stringify');\n\nmodule.exports = parent;\n","var parent = require('../../es/map');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../es/math/trunc');\n\nmodule.exports = parent;\n","var parent = require('../../es/number/epsilon');\n\nmodule.exports = parent;\n","var parent = require('../../es/number/is-safe-integer');\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/entries');\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-prototype-of');\n\nmodule.exports = parent;\n","var parent = require('../../es/object/keys');\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/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../es/reflect/construct');\n\nmodule.exports = parent;\n","var parent = require('../../es/reflect/get');\n\nmodule.exports = parent;\n","var parent = require('../../es/set');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../es/symbol');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../es/symbol/iterator');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","var parent = require('../../web/url-search-params');\nrequire('../../modules/web.dom-collections.iterator');\n\nmodule.exports = parent;\n","require('../modules/web.url-search-params');\nvar path = require('../internals/path');\n\nmodule.exports = path.URLSearchParams;\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 define(obj, key, value) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n return obj[key];\n }\n try {\n // IE 8 has a broken Object.defineProperty that only works on DOM objects.\n define({}, \"\");\n } catch (err) {\n define = function(obj, key, value) {\n return obj[key] = value;\n };\n }\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 define(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 = GeneratorFunctionPrototype;\n define(Gp, \"constructor\", GeneratorFunctionPrototype);\n define(GeneratorFunctionPrototype, \"constructor\", GeneratorFunction);\n GeneratorFunction.displayName = define(\n GeneratorFunctionPrototype,\n toStringTagSymbol,\n \"GeneratorFunction\"\n );\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 define(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 define(genFun, toStringTagSymbol, \"GeneratorFunction\");\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 define(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 define(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 define(Gp, iteratorSymbol, function() {\n return this;\n });\n\n define(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, in modern engines\n // we can explicitly access globalThis. In older engines 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 if (typeof globalThis === \"object\") {\n globalThis.regeneratorRuntime = runtime;\n } else {\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n }\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\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\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__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = function(chunkId) {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce(function(promises, key) {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks\n__webpack_require__.u = function(chunkId) {\n\t// return url for filenames based on template\n\treturn \"\" + chunkId + \".bundle.js\";\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};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"js/dist/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t179: 0\n};\n\n__webpack_require__.f.j = function(chunkId, promises) {\n\t\t// JSONP chunk loading for javascript\n\t\tvar installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;\n\t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n\t\t\t// a Promise means \"currently loading\".\n\t\t\tif(installedChunkData) {\n\t\t\t\tpromises.push(installedChunkData[2]);\n\t\t\t} else {\n\t\t\t\tif(true) { // all chunks have JS\n\t\t\t\t\t// setup Promise in chunk cache\n\t\t\t\t\tvar promise = new Promise(function(resolve, reject) { installedChunkData = installedChunks[chunkId] = [resolve, reject]; });\n\t\t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n\t\t\t\t\t// start chunk loading\n\t\t\t\t\tvar url = __webpack_require__.p + __webpack_require__.u(chunkId);\n\t\t\t\t\t// create error before stack unwound to get useful stacktrace later\n\t\t\t\t\tvar error = new Error();\n\t\t\t\t\tvar loadingEnded = function(event) {\n\t\t\t\t\t\tif(__webpack_require__.o(installedChunks, chunkId)) {\n\t\t\t\t\t\t\tinstalledChunkData = installedChunks[chunkId];\n\t\t\t\t\t\t\tif(installedChunkData !== 0) installedChunks[chunkId] = undefined;\n\t\t\t\t\t\t\tif(installedChunkData) {\n\t\t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n\t\t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n\t\t\t\t\t\t\t\terror.message = 'Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')';\n\t\t\t\t\t\t\t\terror.name = 'ChunkLoadError';\n\t\t\t\t\t\t\t\terror.type = errorType;\n\t\t\t\t\t\t\t\terror.request = realSrc;\n\t\t\t\t\t\t\t\tinstalledChunkData[1](error);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t__webpack_require__.l(url, loadingEnded, \"chunk-\" + chunkId, chunkId);\n\t\t\t\t} else installedChunks[chunkId] = 0;\n\t\t\t}\n\t\t}\n};\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n// no on chunks loaded\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkIds[i]] = 0;\n\t}\n\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkulogger_server\"] = self[\"webpackChunkulogger_server\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","import _Object$defineProperty from \"@babel/runtime-corejs3/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\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","import _Symbol from \"@babel/runtime-corejs3/core-js/symbol\";\nimport _Symbol$iterator from \"@babel/runtime-corejs3/core-js/symbol/iterator\";\nexport default function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\") {\n _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n _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 * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nexport default class uAjax {\n\n /**\n * Perform POST HTTP request\n * @alias ajax\n */\n static post(url, data, options) {\n const params = options || {};\n params.method = 'POST';\n return this.ajax(url, data, params);\n }\n\n /**\n * Perform GET HTTP request\n * @alias ajax\n */\n static get(url, data, options) {\n const params = options || {};\n params.method = 'GET';\n return this.ajax(url, data, params);\n }\n\n /**\n * Perform ajax HTTP request\n * @param {string} url Request URL\n * @param {Object|HTMLFormElement|FormData} [data] Optional request parameters: key/value pairs or form element\n * @param {Object} [options] Optional options\n * @param {string} [options.method='GET'] Optional query method, default 'GET'\n * @return {Promise}\n */\n static ajax(url, data, options) {\n const params = [];\n data = data || {};\n options = options || {};\n const method = options.method || 'GET';\n const xhr = new XMLHttpRequest();\n return new Promise((resolve, reject) => {\n xhr.onreadystatechange = function () {\n if (xhr.readyState !== XMLHttpRequest.DONE) { return; }\n let message = '';\n let error = true;\n if (xhr.status === 200) {\n try {\n const obj = JSON.parse(xhr.responseText);\n if (obj) {\n if (!obj.error) {\n if (resolve && typeof resolve === 'function') {\n resolve(obj);\n }\n error = false;\n } else if (obj.message) {\n message = obj.message;\n }\n }\n } catch (err) {\n message = err.message;\n }\n } else {\n message = `HTTP error ${xhr.status}`;\n }\n if (error && reject && typeof reject === 'function') {\n reject(new Error(message));\n }\n };\n if (data instanceof HTMLFormElement) {\n data = new FormData(data);\n }\n let body;\n if (data instanceof FormData) {\n if (method === 'POST') {\n body = data;\n } else {\n body = new URLSearchParams(data).toString();\n }\n } else {\n for (const key in data) {\n if (data.hasOwnProperty(key)) {\n if (Array.isArray(data[key])) {\n for (const value of data[key]) {\n params.push(`${key}[]=${this.encodeValue(value)}`);\n }\n } else {\n params.push(`${key}=${this.encodeValue(data[key])}`);\n }\n }\n }\n body = params.join('&');\n body = body.replace(/%20/g, '+');\n }\n if (method === 'GET' && body.length) {\n url += `?${body}`;\n body = null;\n }\n xhr.open(method, url, true);\n if (method === 'POST' && !(data instanceof FormData)) {\n xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');\n }\n xhr.send(body);\n });\n }\n\n static encodeValue(value) {\n if (typeof value === 'object') {\n value = JSON.stringify(value);\n }\n return encodeURIComponent(value);\n }\n}\n","import _Object$setPrototypeOf from \"@babel/runtime-corejs3/core-js/object/set-prototype-of\";\nexport default function _setPrototypeOf(o, p) {\n _setPrototypeOf = _Object$setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}","import _Object$create from \"@babel/runtime-corejs3/core-js/object/create\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nexport default function _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}","import _typeof from \"@babel/runtime-corejs3/helpers/typeof\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nexport default function _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n } else if (call !== void 0) {\n throw new TypeError(\"Derived constructors may only return object or undefined\");\n }\n\n return assertThisInitialized(self);\n}","export default 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}","import _Object$setPrototypeOf from \"@babel/runtime-corejs3/core-js/object/set-prototype-of\";\nimport _Object$getPrototypeOf from \"@babel/runtime-corejs3/core-js/object/get-prototype-of\";\nexport default function _getPrototypeOf(o) {\n _getPrototypeOf = _Object$setPrototypeOf ? _Object$getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || _Object$getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}","export default 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}","import _sliceInstanceProperty from \"@babel/runtime-corejs3/core-js/instance/slice\";\nimport _Array$from from \"@babel/runtime-corejs3/core-js/array/from\";\nimport arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _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}","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nexport default function _toConsumableArray(arr) {\n return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread();\n}","import _Array$isArray from \"@babel/runtime-corejs3/core-js/array/is-array\";\nimport arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _arrayWithoutHoles(arr) {\n if (_Array$isArray(arr)) return arrayLikeToArray(arr);\n}","import _Symbol from \"@babel/runtime-corejs3/core-js/symbol\";\nimport _getIteratorMethod from \"@babel/runtime-corejs3/core-js/get-iterator-method\";\nimport _Array$from from \"@babel/runtime-corejs3/core-js/array/from\";\nexport default function _iterableToArray(iter) {\n if (typeof _Symbol !== \"undefined\" && _getIteratorMethod(iter) != null || iter[\"@@iterator\"] != null) return _Array$from(iter);\n}","export default 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}","import _Promise from \"@babel/runtime-corejs3/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\nexport default function _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 * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\n/* eslint-disable no-underscore-dangle */\nexport default class uObserve {\n\n /**\n * Observe object's property or all properties if not specified.\n * On change call observer function.\n * observe(obj, prop, observer) observes given property prop;\n * observe(obj, observer) observes all properties of object obj.\n * @param {Object} obj\n * @param {(string|ObserveCallback)} p1\n * @param {ObserveCallback=} p2\n */\n static observe(obj, p1, p2) {\n if (typeof obj !== 'object' || obj === null) {\n throw new Error('Invalid argument: invalid object');\n }\n if (typeof p2 === 'function') {\n this.observeProperty(obj, p1, p2);\n } else if (typeof p1 === 'function') {\n this.observeRecursive(obj, p1);\n } else {\n throw new Error('Invalid argument for observe');\n }\n }\n\n /**\n * Notify callback\n * @callback ObserveCallback\n * @param {*} value\n */\n\n /**\n * Notify observers\n * @param {Set} observers\n * @param {*} value\n */\n static notify(observers, value) {\n for (const observer of observers) {\n (async () => {\n await observer(value);\n })();\n }\n }\n\n /**\n * Trigger notify of property observers\n * @param {Object} obj\n * @param {string} property\n */\n static forceUpdate(obj, property) {\n const value = obj._values[property];\n const observers = obj._observers[property];\n this.notify(observers, value);\n }\n\n /**\n * Check if object property is observed;\n * Optionally check if it is observed by given observer\n * @param {Object} obj\n * @param {string} property\n * @param {Function=} observer\n * @return {boolean}\n */\n static isObserved(obj, property, observer) {\n if (typeof obj !== 'object' || obj === null || !obj.hasOwnProperty(property)) {\n return false;\n }\n const isObserved = !!(obj._observers && obj._observers[property] && obj._observers[property].size > 0);\n if (isObserved && observer) {\n return obj._observers[property].has(observer);\n }\n return isObserved;\n }\n\n /**\n * Set observed property value without notifying observers\n * @param {Object} obj\n * @param {string} property\n * @param {*} value\n */\n static setSilently(obj, property, value) {\n if (!obj.hasOwnProperty(property)) {\n throw new Error(`Invalid argument: object does not have property \"${property}\"`);\n }\n if (this.isObserved(obj, property)) {\n obj._values[property] = value;\n if (Array.isArray(obj[property])) {\n for (const obs of obj._observers[property]) {\n this.observeArray(obj[property], obs);\n }\n }\n } else {\n obj[property] = value;\n }\n }\n\n /**\n * Observe object's property. On change call observer\n * @param {Object} obj\n * @param {string} property\n * @param {ObserveCallback} observer\n */\n static observeProperty(obj, property, observer) {\n if (!obj.hasOwnProperty(property)) {\n throw new Error(`Invalid argument: object does not have property \"${property}\"`);\n }\n if (this.isObserved(obj, property, observer)) {\n throw new Error(`Observer already registered for property ${property}`);\n }\n this.addObserver(obj, observer, property);\n if (!obj.hasOwnProperty('_values')) {\n Object.defineProperty(obj, '_values', { enumerable: false, configurable: false, value: {} });\n }\n obj._values[property] = obj[property];\n Object.defineProperty(obj, property, {\n get: () => obj._values[property],\n set: (newValue) => {\n if (obj._values[property] !== newValue) {\n obj._values[property] = newValue;\n console.log(`${property} = ` + (Array.isArray(newValue) && newValue.length ? `[${newValue[0]}, …](${newValue.length})` : newValue));\n uObserve.notify(obj._observers[property], newValue);\n }\n if (Array.isArray(obj[property])) {\n this.observeArray(obj[property], obj._observers[property]);\n }\n }\n });\n if (Array.isArray(obj[property])) {\n this.observeArray(obj[property], observer);\n }\n }\n\n /**\n * Recursively add observer to all properties\n * @param {Object} obj\n * @param {ObserveCallback} observer\n */\n static observeRecursive(obj, observer) {\n if (Array.isArray(obj)) {\n this.observeArray(obj, observer);\n } else {\n for (const prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n uObserve.observeProperty(obj, prop, observer);\n }\n }\n }\n }\n\n /**\n * Observe array\n * @param {Object} arr\n * @param {(ObserveCallback|Set)} observer\n */\n static observeArray(arr, observer) {\n if (observer instanceof Set) {\n for (const obs of observer) {\n this.addObserver(arr, obs);\n }\n } else {\n this.addObserver(arr, observer);\n }\n this.overrideArrayPrototypes(arr, arguments);\n }\n\n /**\n * Store observer in object\n * @param {Object} obj Object\n * @param {ObserveCallback} observer Observer\n * @param {string=} property Optional property\n */\n static addObserver(obj, observer, property) {\n if (!obj.hasOwnProperty('_observers')) {\n Object.defineProperty(obj, '_observers', {\n enumerable: false,\n configurable: false,\n value: (arguments.length === 3) ? [] : new Set()\n });\n }\n if (arguments.length === 3) {\n if (!obj._observers[property]) {\n obj._observers[property] = new Set();\n }\n obj._observers[property].add(observer);\n } else {\n obj._observers.add(observer);\n }\n }\n\n /**\n * Remove observer from object's property or all it's properties\n * unobserve(obj, prop, observer) unobserves given property prop;\n * unobserve(obj, observer) unobserves all properties of object obj.\n * @param {Object} obj\n * @param {(string|ObserveCallback)} p1\n * @param {ObserveCallback=} p2\n */\n static unobserve(obj, p1, p2) {\n if (typeof p2 === 'function') {\n this.unobserveProperty(obj, p1, p2);\n } else if (typeof p1 === 'function') {\n if (Array.isArray(obj)) {\n this.unobserveArray(obj, p1);\n } else {\n this.unobserveRecursive(obj, p1);\n }\n } else {\n throw new Error('Invalid argument for unobserve');\n }\n }\n\n /**\n * Remove all observers from object's property or all it's properties\n * unobserveAll(obj, prop) removes all observes from given property prop;\n * unobserveAll(obj) removes all observers from all properties of object obj.\n * @param {Object} obj\n * @param {string=} property\n */\n static unobserveAll(obj, property) {\n if (arguments.length === 1) {\n for (const prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n this.unobserveAll(obj, prop);\n }\n }\n } else if (this.isObserved(obj, property)) {\n console.log(`Removing all observers for ${property}…`);\n if (Array.isArray(obj[property])) {\n this.restoreArrayPrototypes(obj[property]);\n } else if (typeof obj[property] === 'object' && obj[property] !== null) {\n for (const prop in obj[property]) {\n if (obj[property].hasOwnProperty(prop)) {\n this.unobserveAll(obj[property], prop);\n }\n }\n }\n delete obj._observers[property];\n delete obj[property];\n obj[property] = obj._values[property];\n delete obj._values[property];\n }\n }\n\n /**\n * Remove observer from object's property\n * @param {Object} obj\n * @param {?string} property\n * @param {ObserveCallback} observer\n */\n static unobserveProperty(obj, property, observer) {\n if (Array.isArray(obj[property])) {\n this.unobserveArray(obj[property], observer);\n }\n this.removeObserver(obj, observer, property);\n if (!obj._observers[property].size) {\n delete obj[property];\n obj[property] = obj._values[property];\n delete obj._values[property];\n }\n }\n\n /**\n * Recursively remove observers from all properties\n * @param {Object} obj\n * @param {ObserveCallback} observer\n */\n static unobserveRecursive(obj, observer) {\n for (const prop in obj) {\n if (obj.hasOwnProperty(prop)) {\n uObserve.unobserveProperty(obj, prop, observer);\n }\n }\n }\n\n /**\n * Remove observer from array\n * @param {Object} arr\n * @param {ObserveCallback} observer\n */\n static unobserveArray(arr, observer) {\n this.removeObserver(arr, observer);\n if (!arr._observers.size) {\n this.restoreArrayPrototypes(arr);\n }\n }\n\n /**\n * @param {Object} arr\n */\n static overrideArrayPrototypes(arr) {\n [ 'pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift' ].forEach(\n (operation) => {\n const descriptor = Object.getOwnPropertyDescriptor(Array.prototype, operation);\n if (!arr.hasOwnProperty(operation)) {\n descriptor.value = function () {\n const result = Array.prototype[operation].apply(arr, arguments);\n console.log(`[${operation}] ` + (arr.length ? `[${arr[0]}, …](${arr.length})` : arr));\n uObserve.notify(arr._observers, arr);\n return result;\n };\n Object.defineProperty(arr, operation, descriptor);\n }\n });\n }\n\n /**\n * @param {Object} arr\n */\n static restoreArrayPrototypes(arr) {\n [ 'pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift' ].forEach(\n (operation) => {\n delete arr[operation];\n });\n }\n\n /**\n * Remove observer from object's property\n * @param {Object} obj Object\n * @param {string} property Optional property\n * @param {ObserveCallback} observer Observer\n */\n static removeObserver(obj, observer, property) {\n if (!obj.hasOwnProperty('_observers')) {\n return;\n }\n let observers;\n if (arguments.length === 3) {\n if (!obj._observers[property]) {\n return;\n }\n observers = obj._observers[property];\n console.log(`Removing observer for ${property}…`);\n } else {\n observers = obj._observers;\n console.log('Removing observer for object…');\n }\n observers.forEach((obs) => {\n if (obs === observer) {\n console.log('Removed');\n observers.delete(obs);\n }\n });\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uObserve from './observe.js';\n\nexport default class uSelect {\n\n /**\n * @param {HTMLSelectElement} element Select element\n * @param {string=} head Optional header text\n * @param {string=} all Optional all option text\n */\n constructor(element, head, all) {\n if (!(element instanceof HTMLSelectElement)) {\n throw new Error('Invalid argument for select');\n }\n this.element = element;\n this.hasAllOption = false;\n this.allText = '';\n if (all && all.length) {\n this.allText = all;\n }\n if (head && head.length) {\n this.head = head;\n } else {\n this.hasHead = false;\n this.headText = '';\n }\n }\n\n /**\n * @param {string} value\n */\n set selected(value) {\n if (this.hasValue(value)) {\n this.element.value = value;\n }\n }\n\n get selected() {\n return this.element.value;\n }\n\n /**\n * @param {string} text\n */\n set head(text) {\n if (text.length) {\n this.hasHead = true;\n this.headText = text;\n this.addHead();\n }\n }\n\n /**\n * @return {string}\n */\n get head() {\n return this.headText;\n }\n\n /**\n * @param {string=} text Optional text\n */\n showAllOption(text) {\n if (text) {\n this.allText = text;\n }\n this.hasAllOption = true;\n const index = this.hasHead ? 1 : 0;\n this.element.add(new Option(this.allText, uSelect.allValue), index);\n }\n\n hideAllOption() {\n const isSelectedAll = this.selected === uSelect.allValue;\n this.hasAllOption = false;\n this.remove(uSelect.allValue);\n if (isSelectedAll) {\n this.selected = this.hasHead ? uSelect.headValue : '';\n this.element.dispatchEvent(new Event('change'));\n }\n }\n\n addHead() {\n const head = new Option(this.headText, uSelect.headValue, true, true);\n head.disabled = true;\n this.element.options.add(head, 0);\n }\n\n /**\n * @param {string} value\n * @return {boolean}\n */\n hasValue(value) {\n return (typeof this.getOption(value) !== 'undefined');\n }\n\n /**\n * @param {string} value\n */\n getOption(value) {\n return [ ...this.element.options ].find((o) => o.value === value);\n }\n\n /**\n * @param {string} value\n */\n remove(value) {\n /** @type HTMLOptionElement */\n const option = this.getOption(value);\n if (option) {\n this.element.remove(option.index);\n }\n }\n\n /**\n * @param {uListItem[]} options\n * @param {string=} selected\n */\n setOptions(options, selected) {\n selected = selected || this.element.value;\n this.element.options.length = 0;\n if (this.hasHead) {\n this.addHead();\n }\n if (this.hasAllOption) {\n this.element.add(new Option(this.allText, uSelect.allValue, false, selected === uSelect.allValue));\n }\n for (const option of options) {\n const optEl = new Option(option.listText, option.listValue, false, selected === option.listValue);\n this.element.add(optEl);\n uObserve.observe(option, 'listText', (text) => {\n optEl.text = text;\n })\n }\n }\n\n static get allValue() {\n return 'all';\n }\n\n static get headValue() {\n return '0';\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uSelect from './select.js';\n\n/**\n * @class uListItem\n * @property {string} listValue\n * @property {string} listText\n */\nexport default class uListItem {\n /**\n * @param {string|number} id\n * @param {string|number} value\n */\n constructor() {\n this.listValue = uSelect.allValue;\n this.listText = '-';\n }\n\n listItem(id, value) {\n this.listValue = String(id);\n this.listText = String(value);\n }\n\n /**\n * @return {string}\n */\n toString() {\n return `[${this.listValue}, ${this.listText}]`;\n }\n}\n","import _Reflect$get from \"@babel/runtime-corejs3/core-js/reflect/get\";\nimport _Object$getOwnPropertyDescriptor from \"@babel/runtime-corejs3/core-js/object/get-own-property-descriptor\";\nimport superPropBase from \"./superPropBase.js\";\nexport default function _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && _Reflect$get) {\n _get = _Reflect$get;\n } else {\n _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n\n var desc = _Object$getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}","import getPrototypeOf from \"./getPrototypeOf.js\";\nexport default function _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nexport default class uUtils {\n\n /**\n * Set cookie\n * @param {string} name\n * @param {(string|number)} value\n * @param {?number=} days Default validity is 30 days, null = never expire\n */\n static setCookie(name, value, days = 30) {\n let expires = '';\n if (days) {\n const date = new Date();\n date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));\n expires = `; expires=${date.toUTCString()}`;\n }\n document.cookie = `ulogger_${name}=${value}${expires}; path=/; samesite=lax`;\n }\n\n /**\n * sprintf, naive approach, only %s, %d supported\n * @param {string} fmt String\n * @param {...(string|number)=} params Optional parameters\n * @returns {string}\n */\n static sprintf(fmt, ...params) {\n let i = 0;\n const ret = fmt.replace(/%%|%s|%d/g, (match) => {\n if (match === '%%') {\n return '%';\n } else if (match === '%d' && isNaN(params[i]) && typeof params[i] !== 'undefined') {\n throw new Error(`Wrong format specifier ${match} for ${params[i]} argument`);\n }\n if (typeof params[i] === 'undefined') {\n throw new Error(`Missing argument for format specifier ${match}`);\n }\n return params[i++];\n });\n if (i < params.length) {\n throw new Error(`Unused argument for format specifier ${fmt}`);\n }\n return ret;\n }\n\n /**\n * Add script tag\n * @param {string} url attribute\n * @param {string} id attribute\n * @param {Function=} onload\n * @param {Function=} onerror\n */\n // eslint-disable-next-line max-params\n static addScript(url, id, onload, onerror) {\n if (id && document.getElementById(id)) {\n if (onload instanceof Function) {\n onload();\n }\n return;\n }\n const tag = document.createElement('script');\n tag.type = 'text/javascript';\n tag.src = url;\n if (id) {\n tag.id = id;\n }\n tag.async = true;\n if (onload instanceof Function) {\n tag.onload = onload;\n }\n if (onerror instanceof Function) {\n tag.onerror = () => onerror(new Error(`error loading ${id} script`));\n }\n\n document.getElementsByTagName('head')[0].appendChild(tag);\n }\n\n /**\n * Load script with timeout\n * @param {string} url URL\n * @param {string} id Element id\n * @param {number=} ms Timeout in ms\n * @return {Promise}\n */\n static loadScript(url, id, ms = 10000) {\n const scriptLoaded = new Promise(\n (resolve, reject) => uUtils.addScript(url, id, resolve, reject));\n const timeout = this.timeoutPromise(ms);\n return Promise.race([ scriptLoaded, timeout ]);\n }\n\n /**\n * Promise rejected after given time\n * @param {number} ms Time in milliseconds\n * @return {Promise}\n */\n static timeoutPromise(ms) {\n return new Promise((resolve, reject) => {\n const tid = setTimeout(() => {\n clearTimeout(tid);\n reject(new Error(`timeout (${ms} ms).`));\n }, ms);\n });\n }\n\n /**\n * Encode string for HTML\n * @param {string} s\n * @returns {string}\n */\n static htmlEncode(s) {\n return s.replace(/&/g, '&')\n .replace(/\"/g, '"')\n .replace(/'/g, ''')\n .replace(//g, '>');\n }\n\n /**\n * Convert hex string and opacity to an rgba string\n * @param {string} hex\n * @param {number=} opacity\n * @returns {string}\n */\n static hexToRGBA(hex, opacity) {\n opacity = typeof opacity !== 'undefined' ? opacity : 1;\n return `rgba(${(hex = hex.replace('#', ''))\n .match(new RegExp(`(.{${hex.length / 3}})`, 'g'))\n .map((l) => parseInt(hex.length % 2 ? l + l : l, 16))\n .concat(opacity).join(',')})`;\n }\n\n /**\n * Get rgb color for given scale and intensity\n * @param {number[]} start Minimum scale color as [ r, g, b ]\n * @param {number[]} end Maximum scale color as [ r, g, b ]\n * @param {number} intensity Intensity from 0 to 1\n * @return {string} Color as rgb() string\n */\n static getScaleColor(start, end, intensity) {\n if (intensity < 0 || intensity > 1) {\n throw new Error('Invalid value');\n }\n const rgb = [];\n for (let i = 0; i < 3; i++) {\n if (start[i] < 0 || start[i] > 255 || end[i] < 0 || end[i] > 255) {\n throw new Error('Invalid value');\n }\n rgb[i] = Math.round((end[i] - start[i]) * intensity + start[i]);\n }\n return `rgb(${rgb[0]}, ${rgb[1]}, ${rgb[2]})`;\n }\n\n /**\n * Add link tag with type css\n * @param {string} url attribute\n * @param {string=} id attribute\n */\n static addCss(url, id) {\n if (id && document.getElementById(id)) {\n return;\n }\n const tag = document.createElement('link');\n tag.type = 'text/css';\n tag.rel = 'stylesheet';\n tag.href = url;\n if (id) {\n tag.id = id;\n }\n document.getElementsByTagName('head')[0].appendChild(tag);\n }\n\n /**\n * Remove HTML element\n * @param {string} id Element ID\n */\n static removeElementById(id) {\n const tag = document.getElementById(id);\n if (tag) {\n tag.remove();\n }\n }\n\n /**\n * @param {string} html HTML representing a single element\n * @return {Node|NodeList}\n */\n static nodeFromHtml(html) {\n const template = document.createElement('template');\n template.innerHTML = html.trim();\n return template.content.childNodes.length > 1 ? template.content.childNodes : template.content.firstChild;\n }\n\n /**\n * @throws On invalid input\n * @param {*} input\n * @param {boolean=} isNullable\n * @return {(null|number)}\n */\n static getFloat(input, isNullable = false) {\n return uUtils.getParsed(input, isNullable, 'float');\n }\n\n /**\n * @throws On invalid input\n * @param {*} input\n * @param {boolean=} isNullable\n * @return {(null|number)}\n */\n static getInteger(input, isNullable = false) {\n return uUtils.getParsed(input, isNullable, 'int');\n }\n\n /**\n * @throws On invalid input\n * @param {*} input\n * @param {boolean=} isNullable\n * @return {(null|string)}\n */\n static getString(input, isNullable = false) {\n return uUtils.getParsed(input, isNullable, 'string');\n }\n\n /**\n * @throws On invalid input\n * @param {*} input\n * @param {boolean} isNullable\n * @param {string} type\n * @return {(null|number|string)}\n */\n static getParsed(input, isNullable, type) {\n if (isNullable && input === null) {\n return null;\n }\n let output;\n switch (type) {\n case 'float':\n output = parseFloat(input);\n break;\n case 'int':\n output = Math.round(parseFloat(input));\n break;\n case 'string':\n output = String(input);\n break;\n default:\n throw new Error('Unknown type');\n }\n if (typeof input === 'undefined' || input === null ||\n (type !== 'string' && isNaN(output))) {\n throw new Error('Invalid value');\n }\n return output;\n }\n\n /**\n * Format date to date, time and time zone strings\n * Simplify zone name, eg.\n * date: 2017-06-14, time: 11:42:19, zone: GMT+2 CEST\n * @param {Date} date\n * @return {{date: string, time: string, zone: string}}\n */\n static getTimeString(date) {\n let timeZone = '';\n const dateStr = `${date.getFullYear()}-${(`0${date.getMonth() + 1}`).slice(-2)}-${(`0${date.getDate()}`).slice(-2)}`;\n const timeStr = date.toTimeString().replace(/^\\s*([^ ]+)([^(]*)(\\([^)]*\\))*/,\n // eslint-disable-next-line max-params\n (_, hours, zone, dst) => {\n if (zone) {\n timeZone = zone.replace(/(0(?=[1-9]00))|(00\\b)/g, '');\n if (dst && (/[A-Z]/).test(dst)) {\n timeZone += dst.match(/\\b[A-Z]+/g).join('');\n }\n }\n return hours;\n });\n return { date: dateStr, time: timeStr, zone: timeZone };\n }\n\n /**\n * @param {string} url\n */\n static openUrl(url) {\n window.location.assign(url);\n }\n\n /**\n * Degrees to radians\n * @param {number} degrees\n * @return {number}\n */\n static deg2rad(degrees) {\n return degrees * Math.PI / 180;\n }\n\n /**\n * Recursively compare properties of two objects with same keys\n * @param {Object} obj1\n * @param {Object} obj2\n * @return {boolean} True if properties are equal\n */\n static isDeepEqual(obj1, obj2) {\n return Object.keys(obj1).every((key) => {\n if (typeof obj1[key] === 'object' && obj1[key] !== null &&\n typeof obj2[key] === 'object' && obj2[key] !== null) {\n return this.isDeepEqual(obj1[key], obj2[key]);\n }\n return obj1[key] === obj2[key];\n })\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uAjax from './ajax.js';\nimport uUtils from './utils.js';\n\n/**\n * @class uPosition\n * @property {number} id\n * @property {number} latitude\n * @property {number} longitude\n * @property {?number} altitude\n * @property {?number} speed\n * @property {?number} bearing\n * @property {?number} accuracy\n * @property {?string} provider\n * @property {?string} comment\n * @property {?string} image\n * @property {string} username\n * @property {string} trackname\n * @property {number} trackid\n * @property {number} timestamp\n * @property {number} meters Distance to previous position\n * @property {number} seconds Time difference to previous position\n * @property {number} totalMeters Distance to first position\n * @property {number} totalSeconds Time difference to first position\n */\nexport default class uPosition {\n\n /**\n * @throws On invalid input\n * @param {Object} pos\n * @returns {uPosition}\n */\n static fromJson(pos) {\n const position = new uPosition();\n position.id = uUtils.getInteger(pos.id);\n position.latitude = uUtils.getFloat(pos.latitude);\n position.longitude = uUtils.getFloat(pos.longitude);\n position.altitude = uUtils.getInteger(pos.altitude, true); // may be null\n position.speed = uUtils.getFloat(pos.speed, true); // may be null\n position.bearing = uUtils.getInteger(pos.bearing, true); // may be null\n position.accuracy = uUtils.getInteger(pos.accuracy, true); // may be null\n position.provider = uUtils.getString(pos.provider, true); // may be null\n position.comment = uUtils.getString(pos.comment, true); // may be null\n position.image = uUtils.getString(pos.image, true); // may be null\n position.username = uUtils.getString(pos.username);\n position.trackname = uUtils.getString(pos.trackname);\n position.trackid = uUtils.getInteger(pos.trackid);\n position.timestamp = uUtils.getInteger(pos.timestamp);\n position.meters = uUtils.getInteger(pos.meters);\n position.seconds = uUtils.getInteger(pos.seconds);\n position.totalMeters = 0;\n position.totalSeconds = 0;\n return position;\n }\n\n /**\n * @return {boolean}\n */\n hasComment() {\n return (this.comment != null && this.comment.length > 0);\n }\n\n /**\n * @return {boolean}\n */\n hasImage() {\n return (this.image != null && this.image.length > 0);\n }\n\n /**\n * @return {boolean}\n */\n hasSpeed() {\n return this.speed != null;\n }\n\n /**\n * @return {boolean}\n */\n hasAltitude() {\n return this.altitude != null;\n }\n\n /**\n * @return {?string}\n */\n getImagePath() {\n return this.hasImage() ? `uploads/${this.image}` : null;\n }\n\n /**\n * Get total speed in m/s\n * @return {number}\n */\n get totalSpeed() {\n return this.totalSeconds ? this.totalMeters / this.totalSeconds : 0;\n }\n\n /**\n * @return {Promise}\n */\n delete() {\n return uPosition.update({\n action: 'delete',\n posid: this.id\n });\n }\n\n /**\n * @return {Promise}\n */\n save() {\n return uPosition.update({\n action: 'update',\n posid: this.id,\n comment: this.comment\n });\n }\n\n /**\n * @return {Promise}\n */\n imageDelete() {\n return uPosition.update({\n action: 'imagedel',\n posid: this.id\n }).then(() => { this.image = null; });\n }\n\n /**\n * @param {File} imageFile\n * @return {Promise}\n */\n imageAdd(imageFile) {\n const data = new FormData();\n data.append('image', imageFile);\n data.append('action', 'imageadd');\n data.append('posid', this.id);\n return uPosition.update(data).then(\n /**\n * @param {Object} result\n * @param {string} result.image\n */\n (result) => { this.image = result.image; });\n }\n\n /**\n * Save track data\n * @param {Object} data\n * @return {Promise}\n */\n static update(data) {\n return uAjax.post('utils/handleposition.php', data);\n }\n\n /**\n * Calculate distance to target point using haversine formula\n * @param {uPosition} target\n * @return {number} Distance in meters\n */\n distanceTo(target) {\n const lat1 = uUtils.deg2rad(this.latitude);\n const lon1 = uUtils.deg2rad(this.longitude);\n const lat2 = uUtils.deg2rad(target.latitude);\n const lon2 = uUtils.deg2rad(target.longitude);\n const latD = lat2 - lat1;\n const lonD = lon2 - lon1;\n const bearing = 2 * Math.asin(Math.sqrt((Math.sin(latD / 2) ** 2) + Math.cos(lat1) * Math.cos(lat2) * (Math.sin(lonD / 2) ** 2)));\n return bearing * 6371000;\n }\n\n /**\n * Calculate time elapsed since target point\n * @param {uPosition} target\n * @return {number} Number of seconds\n */\n secondsTo(target) {\n return this.timestamp - target.timestamp;\n }\n\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uAjax from './ajax.js';\nimport uListItem from './listitem.js';\nimport uPosition from './position.js';\n\n/**\n * Set of unrelated positions\n * @class uPositionSet\n * @property {uPosition[]} positions\n */\nexport default class uPositionSet extends uListItem {\n\n constructor() {\n super();\n this.positions = [];\n }\n\n clear() {\n this.positions.length = 0;\n }\n\n /**\n * @return {number}\n */\n get length() {\n return this.positions.length;\n }\n\n /**\n * @return {boolean}\n */\n get hasPositions() {\n return this.positions.length > 0;\n }\n\n // eslint-disable-next-line no-unused-vars,class-methods-use-this\n isLastPosition(id) {\n return true;\n }\n\n // eslint-disable-next-line no-unused-vars,class-methods-use-this\n isFirstPosition(id) {\n return true;\n }\n\n /**\n * Get track data from json\n * @param {Object[]} posArr Positions data\n * @param {boolean=} isUpdate If true append to old data\n */\n fromJson(posArr, isUpdate = false) {\n let positions = [];\n if (isUpdate) {\n positions = this.positions;\n } else {\n this.clear();\n }\n for (const pos of posArr) {\n positions.push(uPosition.fromJson(pos));\n }\n // update at the end to avoid observers update invidual points\n this.positions = positions;\n }\n\n /**\n * Fetch latest position of each user.\n * @return {Promise}\n */\n fetchLatest() {\n this.clear();\n return uPositionSet.fetch({ last: true }).then((_positions) => {\n this.fromJson(_positions);\n });\n }\n\n /**\n * Fetch latest position of each user.\n * @return {Promise}\n */\n static fetchLatest() {\n const set = new uPositionSet();\n return set.fetchLatest().then(() => {\n if (set.length) {\n return set;\n }\n return null;\n });\n }\n\n /**\n * @param params\n * @return {Promise}\n */\n static fetch(params) {\n return uAjax.get('utils/getpositions.php', params);\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uAjax from './ajax.js';\nimport uPosition from './position.js';\nimport uPositionSet from './positionset.js';\nimport uUser from './user.js';\nimport uUtils from './utils.js';\n\n/**\n * Set of positions representing user's track\n * @class uTrack\n * @property {number} id\n * @property {string} name\n * @property {uUser} user\n * @property {uPosition[]} positions\n * @property {PlotData} plotData\n */\nexport default class uTrack extends uPositionSet {\n\n /**\n * @param {number} id\n * @param {string} name\n * @param {uUser} user\n */\n constructor(id, name, user) {\n super();\n if (!Number.isSafeInteger(id) || id <= 0 || !name || !(user instanceof uUser)) {\n throw new Error('Invalid argument for track constructor');\n }\n this.id = id;\n this.name = name;\n this.user = user;\n this.plotData = [];\n this.maxId = 0;\n this.maxSpeed = 0;\n this.maxAltitude = null;\n this.minAltitude = null;\n this.totalMeters = 0;\n this.totalSeconds = 0;\n this.listItem(id, name);\n }\n\n setName(name) {\n this.name = name;\n this.listText = name;\n }\n\n clear() {\n super.clear();\n this.clearTrackCounters();\n }\n\n clearTrackCounters() {\n this.maxId = 0;\n this.maxSpeed = 0;\n this.maxAltitude = null;\n this.minAltitude = null;\n this.plotData.length = 0;\n this.totalMeters = 0;\n this.totalSeconds = 0;\n }\n\n /**\n * @param {uTrack} track\n * @return {boolean}\n */\n isEqualTo(track) {\n return !!track && track.id === this.id;\n }\n\n /**\n * @return {boolean}\n */\n get hasPlotData() {\n return this.plotData.length > 0;\n }\n\n /**\n * @return {boolean}\n */\n get hasAltitudes() {\n return this.maxAltitude !== null;\n }\n\n /**\n * @return {boolean}\n */\n get hasSpeeds() {\n return this.maxSpeed > 0;\n }\n\n /**\n * Get track data from json\n * @param {Object[]} posArr Positions data\n * @param {boolean=} isUpdate If true append to old data\n */\n fromJson(posArr, isUpdate = false) {\n let positions = [];\n if (isUpdate && this.hasPositions) {\n positions = this.positions;\n } else {\n this.clear();\n }\n for (const pos of posArr) {\n const position = uPosition.fromJson(pos);\n this.calculatePosition(position);\n positions.push(position);\n }\n // update at the end to avoid observers update invidual points\n this.positions = positions;\n }\n\n /**\n * @param {number} id\n * @return {boolean}\n */\n isLastPosition(id) {\n return this.length > 0 && id === this.length - 1;\n }\n\n /**\n * @param {number} id\n * @return {boolean}\n */\n isFirstPosition(id) {\n return this.length > 0 && id === 0;\n }\n\n /**\n * Fetch track positions\n * @return {Promise}\n */\n fetchPositions() {\n const params = {\n userid: this.user.id,\n trackid: this.id\n };\n if (this.maxId) {\n params.afterid = this.maxId;\n }\n return uPositionSet.fetch(params).then((_positions) => {\n this.fromJson(_positions, params.afterid > 0);\n });\n }\n\n /**\n * Fetch track with latest position of a user.\n * @param {uUser} user\n * @return {Promise}\n */\n static fetchLatest(user) {\n return this.fetch({\n last: true,\n userid: user.id\n }).then((_positions) => {\n if (_positions.length) {\n const track = new uTrack(_positions[0].trackid, _positions[0].trackname, user);\n track.fromJson(_positions);\n return track;\n }\n return null;\n });\n }\n\n /**\n * Fetch tracks for given user\n * @throws\n * @param {uUser} user\n * @return {Promise}\n */\n static fetchList(user) {\n return uAjax.get('utils/gettracks.php', { userid: user.id }).then(\n /**\n * @param {Array.<{id: number, name: string}>} _tracks\n * @return {uTrack[]}\n */\n (_tracks) => {\n const tracks = [];\n for (const track of _tracks) {\n tracks.push(new uTrack(track.id, track.name, user));\n }\n return tracks;\n });\n }\n\n /**\n * Export to file\n * @param {string} type File type\n */\n export(type) {\n if (this.hasPositions) {\n const url = `utils/export.php?type=${type}&userid=${this.user.id}&trackid=${this.id}`;\n uUtils.openUrl(url);\n }\n }\n\n /**\n * Imports tracks submited with HTML form and returns last imported track id\n * @param {HTMLFormElement} form\n * @param {uUser} user\n * @return {Promise}\n */\n static import(form, user) {\n return uAjax.post('utils/import.php', form)\n .then(\n /**\n * @param {Array.<{id: number, name: string}>} _tracks\n * @return {uTrack[]}\n */\n (_tracks) => {\n const tracks = [];\n for (const track of _tracks) {\n tracks.push(new uTrack(track.id, track.name, user));\n }\n return tracks;\n });\n }\n\n delete() {\n return uTrack.update({\n action: 'delete',\n trackid: this.id\n });\n }\n\n saveMeta() {\n return uTrack.update({\n action: 'update',\n trackid: this.id,\n trackname: this.name\n });\n }\n\n /**\n * @param {number} id\n * @return {Promise<{id: number, name: string, userId: number, comment: string|null}, Error>}\n */\n static getMeta(id) {\n return uTrack.update({\n action: 'getmeta',\n trackid: id\n });\n }\n\n /**\n * Save track data\n * @param {Object} data\n * @return {Promise}\n */\n static update(data) {\n return uAjax.post('utils/handletrack.php', data);\n }\n\n recalculatePositions() {\n this.clearTrackCounters();\n let previous = null;\n for (const position of this.positions) {\n position.meters = previous ? position.distanceTo(previous) : 0;\n position.seconds = previous ? position.secondsTo(previous) : 0;\n this.calculatePosition(position);\n previous = position;\n }\n }\n\n /**\n * Calculate position total counters and plot data\n * @param {uPosition} position\n */\n calculatePosition(position) {\n this.totalMeters += position.meters;\n this.totalSeconds += position.seconds;\n position.totalMeters = this.totalMeters;\n position.totalSeconds = this.totalSeconds;\n if (position.hasAltitude()) {\n this.plotData.push({ x: position.totalMeters, y: position.altitude });\n if (this.maxAltitude === null || position.altitude > this.maxAltitude) {\n this.maxAltitude = position.altitude;\n }\n if (this.minAltitude === null || position.altitude < this.minAltitude) {\n this.minAltitude = position.altitude;\n }\n }\n if (position.id > this.maxId) {\n this.maxId = position.id;\n }\n if (position.hasSpeed() && position.speed > this.maxSpeed) {\n this.maxSpeed = position.speed;\n }\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uAjax from './ajax.js';\nimport uListItem from './listitem.js';\nimport uTrack from './track.js';\n\n/**\n * @class uUser\n * @property {number} id\n * @property {string} login\n * @property {string} [password]\n */\nexport default class uUser extends uListItem {\n /**\n * @param {number} id\n * @param {string} login\n * @param {boolean=} isAdmin\n */\n constructor(id, login, isAdmin = null) {\n super();\n if (!Number.isSafeInteger(id) || id <= 0) {\n throw new Error('Invalid argument for user constructor');\n }\n this.id = id;\n this.login = login;\n this.isAdmin = isAdmin;\n this.listItem(id, login);\n }\n\n /**\n * @param {uUser} user\n * @return {boolean}\n */\n isEqualTo(user) {\n return !!user && user.id === this.id;\n }\n\n /**\n * @return {Promise}\n */\n fetchLastPosition() {\n return uTrack.fetchLatest(this);\n }\n\n /**\n * @throws\n * @return {Promise}\n */\n static fetchList() {\n return uAjax.get('utils/getusers.php').then((_users) => {\n const users = [];\n for (const user of _users) {\n users.push(new uUser(user.id, user.login, user.isAdmin));\n }\n return users;\n });\n }\n\n delete() {\n return uUser.update({\n action: 'delete',\n login: this.login\n });\n }\n\n /**\n *\n * @param {string} login\n * @param {string} password\n * @return {Promise}\n */\n static add(login, password) {\n return uUser.update({\n action: 'add',\n login: login,\n pass: password\n }).then((user) => new uUser(user.id, login));\n }\n\n /**\n * @param {Object} data\n * @return {Promise<*, Error>}\n */\n static update(data) {\n return uAjax.post('utils/handleuser.php', data);\n }\n\n /**\n * @param {string} password New password\n * @param {string} oldPassword Current password\n * @return {Promise}\n */\n setPassword(password, oldPassword) {\n return uAjax.post('utils/changepass.php',\n {\n login: this.login,\n pass: password,\n oldpass: oldPassword\n });\n }\n\n /**\n * @param {boolean} isAdmin\n * @param {string|null} password\n * @return {Promise}\n */\n modify(isAdmin, password = null) {\n const data = {\n action: 'update',\n login: this.login,\n admin: isAdmin\n };\n if (password) {\n data.pass = password;\n }\n return uUser.update(data)\n .then(() => { this.isAdmin = isAdmin; });\n }\n\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uUser from './user.js';\n\nexport default class uAuth {\n\n constructor() {\n /** @type {boolean} */\n this._isAdmin = false;\n /** @type {boolean} */\n this._isAuthenticated = false;\n /** @type {?uUser} */\n this._user = null;\n }\n\n /**\n * @param {uUser} user\n */\n set user(user) {\n if (user) {\n this._user = user;\n this._isAuthenticated = true;\n } else {\n this._user = null;\n this._isAuthenticated = false;\n this._isAdmin = false;\n }\n }\n\n /**\n * @param {boolean} isAdmin\n */\n set isAdmin(isAdmin) {\n if (!this._user) {\n throw new Error('No authenticated user');\n }\n this._isAdmin = isAdmin;\n }\n\n /**\n * @return {boolean}\n */\n get isAdmin() {\n return this._isAdmin;\n }\n\n /**\n * @return {boolean}\n */\n get isAuthenticated() {\n return this._isAuthenticated;\n }\n\n /**\n * @return {?uUser}\n */\n get user() {\n return this._user;\n }\n\n /**\n * Load auth state from data object\n * @param {Object} data\n * @param {boolean} data.isAdmin\n * @param {boolean} data.isAuthenticated\n * @param {?number} data.userId\n * @param {?string} data.userLogin\n */\n load(data) {\n if (data) {\n if (data.isAuthenticated) {\n this.user = new uUser(data.userId, data.userLogin);\n this.isAdmin = data.isAdmin;\n }\n }\n }\n}\n","import _Reflect$construct from \"@babel/runtime-corejs3/core-js/reflect/construct\";\nexport default function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !_Reflect$construct) return false;\n if (_Reflect$construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}","import _Reflect$construct from \"@babel/runtime-corejs3/core-js/reflect/construct\";\nimport _bindInstanceProperty from \"@babel/runtime-corejs3/core-js/instance/bind\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeReflectConstruct from \"./isNativeReflectConstruct.js\";\nexport default function _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n _construct = _Reflect$construct;\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n\n var Constructor = _bindInstanceProperty(Function).apply(Parent, a);\n\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}","import _Map from \"@babel/runtime-corejs3/core-js/map\";\nimport _Object$create from \"@babel/runtime-corejs3/core-js/object/create\";\nimport getPrototypeOf from \"./getPrototypeOf.js\";\nimport setPrototypeOf from \"./setPrototypeOf.js\";\nimport isNativeFunction from \"./isNativeFunction.js\";\nimport construct from \"./construct.js\";\nexport default function _wrapNativeSuper(Class) {\n var _cache = typeof _Map === \"function\" ? new _Map() : undefined;\n\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = _Object$create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}","import _indexOfInstanceProperty from \"@babel/runtime-corejs3/core-js/instance/index-of\";\nexport default function _isNativeFunction(fn) {\n var _context;\n\n return _indexOfInstanceProperty(_context = Function.toString.call(fn)).call(_context, \"[native code]\") !== -1;\n}","/*\n * μlogger\n *\n * Copyright(C) 2020 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uListItem from './listitem.js';\n\nexport default class uLayer extends uListItem {\n\n /**\n * @param {number} id\n * @param {string} name\n * @param {string} url\n * @param {number} priority\n */\n // eslint-disable-next-line max-params\n constructor(id, name, url, priority) {\n super();\n this.id = id;\n this.name = name;\n this.url = url;\n this.priority = priority;\n this.listItem(id, name);\n }\n\n /**\n * @param {string} name\n */\n setName(name) {\n this.name = name;\n this.listItem(this.id, this.name);\n }\n\n /**\n * @param {string} url\n */\n setUrl(url) {\n this.url = url;\n }\n\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2020 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uLayer from './layer.js';\n\n/**\n * @extends {Array.}\n */\nexport default class uLayerCollection extends Array {\n\n /**\n * Create new layer in layers array\n * @param {string} name\n * @param {string} url\n * @param {number} priority\n */\n // eslint-disable-next-line max-params\n addNewLayer(name, url, priority = 0) {\n this.addLayer(this.getMaxId() + 1, name, url, priority);\n }\n\n /**\n * @param {number} id\n * @param {string} name\n * @param {string} url\n * @param {number} priority\n */\n // eslint-disable-next-line max-params\n addLayer(id, name, url, priority = 0) {\n this.push(new uLayer(id, name, url, priority));\n }\n\n /**\n * @param {number} id\n */\n delete(id) {\n const index = this.map((o) => o.id).indexOf(id);\n this.splice(index, 1);\n }\n\n /**\n * @param {number} id\n * @return {uLayer}\n */\n get(id) {\n return this.find((o) => o.id === id);\n }\n\n /**\n * Return max id from layers array\n * @return {number}\n */\n getMaxId() {\n return Math.max(...this.map((o) => o.id), 0);\n }\n\n /**\n * Set layer with given id as priority\n * @param {number} id\n */\n setPriorityLayer(id) {\n for (const layer of this) {\n if (layer.id > 0 && layer.id === id) {\n layer.priority = 1;\n } else {\n layer.priority = 0;\n }\n }\n }\n\n /**\n * Return id of first layer with priority\n * @return {number}\n */\n getPriorityLayer() {\n for (const layer of this) {\n if (layer.priority > 0) {\n return layer.id;\n }\n }\n return 0;\n }\n\n /**\n * Load from array\n * @param {Array} layers\n */\n load(layers) {\n this.length = 0;\n for (const layer of layers) {\n if (layer.id > 0) {\n this.addLayer(layer.id, layer.name, layer.url, layer.priority);\n }\n }\n }\n\n}\n\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uAjax from './ajax.js';\nimport uLayerCollection from './layercollection.js';\nimport uObserve from './observe.js';\n\n/**\n * @class uConfig\n * @property {string} colorExtra\n * @property {string} colorHilite\n * @property {string} colorNormal\n * @property {string} colorStart\n * @property {string} colorStop\n * @property {string} googleKey\n * @property {number} initLatitude\n * @property {number} initLongitude\n * @property {number} initLongitude\n * @property {number} interval;\n * @property {string} lang\n * @property {string} mapApi\n * @property {uLayerCollection} olLayers\n * @property {number} passLenMin\n * @property {number} passStrength\n * @property {boolean} publicTracks\n * @property {boolean} requireAuth\n * @property {boolean} showLatest\n * @property {string} strokeColor\n * @property {number} strokeOpacity\n * @property {number} strokeWeight\n * @property {string} units\n * @property {number} uploadMaxSize\n */\nexport default class uConfig {\n\n constructor() {\n this.initialize();\n }\n\n initialize() {\n this.interval = 10;\n this.units = 'metric';\n this.lang = 'en';\n this.mapApi = 'openlayers';\n this.googleKey = '';\n this.olLayers = new uLayerCollection();\n this.initLatitude = 52.23;\n this.initLongitude = 21.01;\n this.requireAuth = true;\n this.publicTracks = false;\n this.passStrength = 2;\n this.passLenMin = 10;\n this.strokeWeight = 2;\n this.strokeColor = '#ff0000';\n this.strokeOpacity = 1;\n // marker colors\n this.colorNormal = '#ffffff';\n this.colorStart = '#55b500';\n this.colorStop = '#ff6a00';\n this.colorExtra = '#cccccc';\n this.colorHilite = '#feff6a';\n this.uploadMaxSize = 0;\n this.initUnits();\n }\n\n initUnits() {\n if (this.units === 'imperial') {\n this.factorSpeed = 2.237; // m/s to mph\n this.unitSpeed = 'unitmph';\n this.factorDistance = 3.28; // m to feet\n this.unitDistance = 'unitft';\n this.factorDistanceMajor = 0.621; // km to miles\n this.unitDistanceMajor = 'unitmi';\n } else if (this.units === 'nautical') {\n this.factorSpeed = 1.944; // m/s to kt\n this.unitSpeed = 'unitkt';\n this.factorDistance = 1; // meters\n this.unitDistance = 'unitm';\n this.factorDistanceMajor = 0.54; // km to nautical miles\n this.unitDistanceMajor = 'unitnm';\n } else {\n this.factorSpeed = 3.6; // m/s to km/h\n this.unitSpeed = 'unitkmh';\n this.factorDistance = 1;\n this.unitDistance = 'unitm';\n this.factorDistanceMajor = 1;\n this.unitDistanceMajor = 'unitkm';\n }\n this.unitDay = 'unitday';\n this.unitAltitude = 'unitamsl';\n }\n\n /**\n * Load config values from data object\n * @param {Object} data\n */\n load(data) {\n if (data) {\n for (const property in data) {\n if (property === 'layers') {\n this.olLayers.load(data[property]);\n } else if (data.hasOwnProperty(property) && this.hasOwnProperty(property)) {\n this[property] = data[property];\n }\n }\n this.initUnits();\n }\n }\n\n /**\n * Save config values from data object\n * @param {Object} data\n */\n save(data) {\n this.load(data);\n data = Object.keys(this)\n .filter((key) => typeof this[key] !== 'function')\n .reduce((obj, key) => {\n obj[key] = this[key];\n return obj;\n }, {});\n return uAjax.post('utils/saveconfig.php', data);\n }\n\n reinitialize() {\n uObserve.unobserveAll(this);\n this.initialize();\n }\n\n /**\n * @param {string} property\n * @param {ObserveCallback} callback\n */\n onChanged(property, callback) {\n uObserve.observe(this, property, callback);\n }\n\n\n /**\n * @param {string} password\n * @return {boolean}\n */\n validPassStrength(password) {\n return this.getPassRegExp().test(password);\n }\n\n /**\n * Set password validation regexp\n * @return {RegExp}\n */\n getPassRegExp() {\n let regex = '';\n if (this.passStrength > 0) {\n // lower and upper case\n regex += '(?=.*[a-z])(?=.*[A-Z])';\n }\n if (this.passStrength > 1) {\n // digits\n regex += '(?=.*[0-9])';\n }\n if (this.passStrength > 2) {\n // not latin, not digits\n regex += '(?=.*[^a-zA-Z0-9])';\n }\n if (this.passLenMin > 0) {\n regex += `(?=.{${this.passLenMin},})`;\n }\n if (regex.length === 0) {\n regex = '.*';\n }\n return new RegExp(regex);\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uUtils from './utils.js';\n\nexport default class uLang {\n constructor() {\n this.strings = {};\n this.config = null;\n }\n\n /**\n * @param {uConfig} config\n * @param {Object} data\n */\n init(config, data) {\n this.config = config;\n if (data) {\n /** @type {Object} */\n this.strings = data;\n }\n }\n\n /**\n * @param {string} name\n * @param {...(string|number)=} params Optional parameters\n * @return {string}\n */\n _(name, ...params) {\n if (typeof this.strings[name] === 'undefined') {\n throw new Error('Unknown localized string');\n }\n if (params.length) {\n return uUtils.sprintf(this.strings[name], ...params);\n }\n return this.strings[name];\n }\n\n /**\n * @param {string} name\n * @return {string}\n */\n unit(name) {\n const unitName = this.config[name];\n if (typeof this.config[name] === 'undefined') {\n throw new Error('Unknown localized unit');\n }\n return this._(unitName);\n }\n\n /**\n * Get speed converted to locale units\n * @param {number} ms Speed in meters per second\n * @param {?boolean=false} withUnit\n * @return {string}\n */\n getLocaleSpeed(ms, withUnit = false) {\n const value = Math.round(ms * this.config.factorSpeed * 100) / 100;\n let localized = value.toLocaleString(this.config.lang);\n if (withUnit) {\n localized += ` ${this.unit('unitSpeed')}`;\n }\n return localized;\n }\n\n /**\n * Get distance converted to locale units\n * @param {number} m Distance in meters\n * @param {?boolean=false} withUnit\n * @return {string}\n */\n getLocaleDistanceMajor(m, withUnit = false) {\n const value = Math.round(m * this.config.factorDistanceMajor / 10) / 100;\n let localized = value.toLocaleString(this.config.lang);\n if (withUnit) {\n localized += ` ${this.unit('unitDistanceMajor')}`;\n }\n return localized;\n }\n\n /**\n * @param {number} m Distance in meters\n * @param {?boolean=false} withUnit\n * @return {string}\n */\n getLocaleDistance(m, withUnit = false) {\n const value = Math.round(m * this.config.factorDistance * 100) / 100;\n let localized = value.toLocaleString(this.config.lang);\n if (withUnit) {\n localized += ` ${this.unit('unitDistance')}`;\n }\n return localized;\n }\n\n /**\n * @param {number} m Altitude in meters\n * @param {?boolean=false} withUnit\n * @return {string}\n */\n getLocaleAltitude(m, withUnit = false) {\n let localized = this.getLocaleDistance(m, withUnit);\n if (withUnit) {\n localized += ` ${this.unit('unitAltitude')}`;\n }\n // use typographic minus\n return localized.replace('-', '−');\n }\n\n /**\n * @param {number} m Accuracy in meters\n * @param {?boolean=false} withUnit\n * @return {string}\n */\n getLocaleAccuracy(m, withUnit = false) {\n return this.getLocaleDistance(m, withUnit);\n }\n\n /**\n * @param {number} s Duration in seconds\n * @return {string} Formatted to (d) h:m:s\n */\n getLocaleDuration(s) {\n const d = Math.floor(s / 86400);\n const h = Math.floor((s % 86400) / 3600);\n const m = Math.floor(((s % 86400) % 3600) / 60);\n s = ((s % 86400) % 3600) % 60;\n return ((d > 0) ? (`${d} ${this.unit('unitDay')} `) : '') +\n ((`00${h}`).slice(-2)) + ':' + ((`00${m}`).slice(-2)) + ':' + ((`00${s}`).slice(-2)) + '';\n }\n\n /**\n * @param {uPosition} pos\n * @return {string}\n */\n getLocaleCoordinates(pos) {\n return `${this.coordStr(pos.longitude, true)} ${this.coordStr(pos.latitude, false)}`;\n }\n\n /**\n * @param {number} pos\n * @param {boolean} isLon\n * @return {string}\n */\n coordStr(pos, isLon) {\n const ipos = Math.trunc(pos);\n const dec = Math.round((Math.abs((pos - ipos) * 60) + Number.EPSILON) * 100) / 100;\n let dir;\n\n if (isLon) {\n dir = pos < 0 ? 'W' : 'E';\n } else {\n dir = pos < 0 ? 'S' : 'N';\n }\n return `${Math.abs(ipos).toLocaleString(this.config.lang)}°${dec.toLocaleString(this.config.lang, { maximumFractionDigits: 2 })}'${dir}`;\n }\n\n getLocalePassRules() {\n let rulesStr = '';\n if (this.config.passLenMin > 0) {\n rulesStr = uUtils.sprintf(this._('passlenmin') + '\\n', this.config.passLenMin);\n }\n if (this.config.passStrength > 0 && this.config.passStrength < 4) {\n rulesStr += this._(`passrules_${this.config.passStrength}`);\n }\n return rulesStr;\n }\n\n /**\n * Get languages list { langCode: langName }\n * @return {Object.}\n */\n getLangList() {\n return this.strings['langArr'] || {};\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uAjax from './ajax.js';\nimport uAuth from './auth.js';\nimport uConfig from './config.js';\nimport uLang from './lang.js';\n\n/**\n * @Class uInitializer\n * @property {uAuth} auth\n * @property {uConfig} config\n * @property {uLang} lang\n */\nexport class uInitializer {\n\n constructor() {\n this.auth = new uAuth();\n this.config = new uConfig();\n this.lang = new uLang();\n }\n\n /**\n * @return {Promise}\n */\n initialize() {\n return uAjax.get('utils/getinit.php').then((_data) => {\n if (!_data || !_data.auth || !_data.config || !_data.lang) {\n throw new Error('Corrupted initialization data');\n }\n this.auth.load(_data.auth);\n this.config.load(_data.config);\n this.lang.init(this.config, _data.lang);\n });\n }\n\n static waitForDom() {\n return new Promise((resolve) => {\n if (document.readyState === 'complete' || document.readyState === 'interactive') {\n setTimeout(resolve, 1);\n } else {\n document.addEventListener('DOMContentLoaded', resolve);\n }\n });\n }\n}\n\nexport const initializer = new uInitializer();\nexport const config = initializer.config;\nexport const lang = initializer.lang;\nexport const auth = initializer.auth;\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uObserve from './observe.js';\n\n/**\n * @class ViewModel\n * @property {Object} model\n */\nexport default class ViewModel {\n\n /**\n * @param {Object} model\n */\n constructor(model) {\n this._model = model;\n this.root = document;\n }\n\n /**\n * @return {Object}\n */\n get model() {\n return this._model;\n }\n\n /**\n * Apply bindings for model properties\n * @param {HTMLElement=} root Root element\n */\n bindAll(root = document) {\n this.root = root;\n for (const key in this._model) {\n if (this._model.hasOwnProperty(key)) {\n this.bind(key);\n }\n }\n }\n\n /**\n * Creates bidirectional binding between model property and DOM element.\n * For input elements model property value change triggers change in DOM element and vice versa.\n * In case of anchor or button element binding is one way. Model property is callback that will receive click event.\n * @param {string} key\n */\n bind(key) {\n const dataProp = 'bind';\n const observers = this.root.querySelectorAll(`[data-${dataProp}]`);\n observers.forEach(/** @param {HTMLElement} element */ (element) => {\n const name = element.dataset[dataProp];\n if (name === key) {\n if (element instanceof HTMLInputElement ||\n element instanceof HTMLSelectElement ||\n element instanceof HTMLTextAreaElement) {\n this.onChangeBind(element, key);\n } else if (element instanceof HTMLAnchorElement ||\n element instanceof HTMLButtonElement) {\n this.onClickBind(element, key);\n } else {\n this.viewUpdateBind(element, key);\n }\n }\n });\n }\n\n /**\n * One way bind: view element click event to view model event handler\n * @param {HTMLAnchorElement} element\n * @param {string} key\n */\n onClickBind(element, key) {\n element.addEventListener('click', (event) => {\n if (typeof this._model[key] !== 'function') {\n throw new Error(`Property ${key} is not a callback`);\n }\n this._model[key](event);\n event.preventDefault();\n });\n }\n\n /**\n * Two way bind: view element change event to view model property\n * @param {(HTMLInputElement|HTMLSelectElement)} element\n * @param {string} key\n */\n onChangeBind(element, key) {\n let prop = 'value';\n let getVal = (val) => val;\n if (element.type === 'checkbox') {\n prop = 'checked';\n getVal = (val) => !!val;\n }\n element.addEventListener('change', () => {\n this._model[key] = element[prop];\n });\n uObserve.observe(this.model, key, (val) => {\n val = getVal(val);\n if (element[prop] !== val) {\n element[prop] = val;\n }\n });\n }\n\n /**\n * One way bind: view model property to view element content\n * @param {HTMLElement} element\n * @param {string} key\n */\n viewUpdateBind(element, key) {\n uObserve.observe(this.model, key, (content) => {\n if (element.innerHTML !== content) {\n element.innerHTML = content;\n }\n });\n }\n\n /**\n * @param {string} property\n * @param {ObserveCallback} callback\n */\n onChanged(property, callback) {\n uObserve.observe(this.model, property, callback);\n }\n\n /**\n * @param {string} property\n * @param {ObserveCallback} callback\n */\n unsubscribe(property, callback) {\n uObserve.unobserve(this.model, property, callback);\n }\n\n getBoundElement(property) {\n return this.root.querySelector(`[data-bind='${property}']`);\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $ } from './initializer.js';\nimport Chartist from 'chartist'\nimport ViewModel from './viewmodel.js';\nimport ctAxisTitle from 'chartist-plugin-axistitle';\nimport uObserve from './observe.js';\nimport uUtils from './utils.js';\n\n/**\n * @typedef {Object} PlotPoint\n * @property {number} x\n * @property {number} y\n */\n/**\n * @typedef {PlotPoint[]} PlotData\n */\n\n// FIXME: Chartist is not suitable for large data sets\nconst LARGE_DATA = 1000;\nexport default class ChartViewModel extends ViewModel {\n /**\n * @param {uState} state\n */\n constructor(state) {\n super({\n pointSelected: null,\n chartVisible: false,\n buttonVisible: false,\n onChartToggle: null,\n onMenuToggle: null\n });\n this.state = state;\n /** @type {PlotData} */\n this.data = [];\n /** @type {?Chartist.Line} */\n this.chart = null;\n /** @type {?NodeListOf} */\n this.chartPoints = null;\n /** @type {HTMLDivElement} */\n this.chartElement = document.querySelector('#chart');\n /** @type {HTMLDivElement} */\n this.chartContainer = this.chartElement.parentElement;\n /** @type {HTMLAnchorElement} */\n this.buttonElement = document.querySelector('#altitudes');\n }\n\n /**\n * @return {ChartViewModel}\n */\n init() {\n this.chartSetup();\n this.setObservers();\n this.bindAll();\n return this;\n }\n\n chartSetup() {\n uUtils.addCss('css/dist/chartist.css', 'chartist_css');\n this.chart = new Chartist.Line(this.chartElement, {\n series: [ this.data ]\n }, {\n lineSmooth: true,\n showArea: true,\n axisX: {\n type: Chartist.AutoScaleAxis,\n onlyInteger: true,\n showLabel: false\n },\n plugins: [\n ctAxisTitle({\n axisY: {\n axisTitle: `${$._('altitude')} (${$.unit('unitDistance')} ${$.unit('unitAltitude')})`,\n axisClass: 'ct-axis-title',\n offset: {\n x: 0,\n y: 11\n },\n textAnchor: 'middle',\n flipTitle: true\n }\n })\n ]\n });\n\n this.chart.on('created', () => this.onCreated());\n }\n\n onCreated() {\n if (this.data.length && this.data.length <= LARGE_DATA) {\n this.chartPoints = document.querySelectorAll('.ct-series .ct-point');\n const len = this.chartPoints.length;\n for (let id = 0; id < len; id++) {\n this.chartPoints[id].addEventListener('click', () => {\n this.model.pointSelected = id;\n });\n }\n }\n }\n\n setObservers() {\n this.state.onChanged('currentTrack', (track) => {\n if (track) {\n uObserve.observe(track, 'positions', () => {\n this.onTrackUpdate(track, true);\n });\n }\n this.onTrackUpdate(track);\n });\n this.onChanged('buttonVisible', (visible) => this.renderButton(visible));\n this.onChanged('chartVisible', (visible) => this.renderContainer(visible));\n this.model.onChartToggle = () => {\n this.model.chartVisible = !this.model.chartVisible;\n };\n this.model.onMenuToggle = () => {\n if (this.model.chartVisible) {\n this.chart.update();\n }\n };\n }\n\n /**\n * @param {?uTrack} track\n * @param {boolean=} update\n */\n onTrackUpdate(track, update = false) {\n this.render(track, update);\n this.model.buttonVisible = !!track && track.hasPlotData;\n }\n\n /**\n * @param {boolean} isVisible\n */\n renderContainer(isVisible) {\n if (isVisible) {\n this.chartContainer.style.display = 'block';\n this.render(this.state.currentTrack);\n } else {\n this.chartContainer.style.display = 'none';\n }\n }\n\n /**\n * @param {boolean} isVisible\n */\n renderButton(isVisible) {\n if (isVisible) {\n this.buttonElement.classList.remove('menu-hidden');\n } else {\n this.buttonElement.classList.add('menu-hidden');\n }\n }\n\n /**\n * @param {?uTrack} track\n * @param {boolean=} update\n */\n render(track, update = false) {\n let data = [];\n if (track && track.hasPlotData && this.model.chartVisible) {\n data = track.plotData;\n } else {\n this.model.chartVisible = false;\n }\n if (update || this.data !== data) {\n console.log(`Chart${update ? ' forced' : ''} update (${data.length})`);\n this.data = data;\n const options = {\n lineSmooth: (data.length <= LARGE_DATA)\n };\n this.chart.update({ series: [ data ] }, options, true);\n }\n }\n\n /**\n * @param {number} pointId\n * @param {string} $className\n */\n pointAddClass(pointId, $className) {\n if (this.model.chartVisible && this.chartPoints.length > pointId) {\n const point = this.chartPoints[pointId];\n point.classList.add($className);\n }\n }\n\n /**\n * @param {string} $className\n */\n pointsRemoveClass($className) {\n if (this.model.chartVisible && this.chartPoints) {\n this.chartPoints.forEach((el) => el.classList.remove($className));\n }\n }\n\n /**\n * @param {number} pointId\n */\n onPointOver(pointId) {\n this.pointAddClass(pointId, 'ct-point-hilight');\n }\n\n onPointOut() {\n this.pointsRemoveClass('ct-point-hilight');\n }\n\n /**\n * @param {number} pointId\n */\n onPointSelect(pointId) {\n this.pointAddClass(pointId, 'ct-point-selected');\n }\n\n onPointUnselect() {\n this.pointsRemoveClass('ct-point-selected');\n }\n}\n","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","import _Array$isArray from \"@babel/runtime-corejs3/core-js/array/is-array\";\nexport default function _arrayWithHoles(arr) {\n if (_Array$isArray(arr)) return arr;\n}","import _Symbol from \"@babel/runtime-corejs3/core-js/symbol\";\nimport _getIteratorMethod from \"@babel/runtime-corejs3/core-js/get-iterator-method\";\nexport default function _iterableToArrayLimit(arr, i) {\n var _i = arr == null ? null : typeof _Symbol !== \"undefined\" && _getIteratorMethod(arr) || arr[\"@@iterator\"];\n\n if (_i == null) return;\n var _arr = [];\n var _n = true;\n var _d = false;\n\n var _s, _e;\n\n try {\n for (_i = _i.call(arr); !(_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}","export default 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 * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uUtils from './utils.js';\n\nexport default class uAlert {\n\n /**\n * @typedef {Object} AlertOptions\n * @property {number} [autoClose=0] Optional autoclose delay time in ms, default 0 – no autoclose\n * @property {boolean} [hasButton] Optional can be closed by button click, default true when autoClose not set\n * @property {string} [id] Optional box id\n * @property {string} [class] Optional box class\n * @property {boolean} [fixed=false] Optional set fixed position, default false\n */\n\n /**\n * Builds alert box\n * @param {string} message\n * @param {AlertOptions} [options] Optional options\n */\n constructor(message, options = {}) {\n this.autoClose = options.autoClose || 0;\n this.hasButton = typeof options.hasButton !== 'undefined' ? options.hasButton : this.autoClose === 0\n this.fixedPosition = options.fixed || false;\n const html = `
${message}
`;\n this.box = uUtils.nodeFromHtml(html);\n if (options.id) {\n this.box.id = options.id;\n }\n if (options.class) {\n this.box.classList.add(options.class);\n }\n if (this.hasButton) {\n const button = document.createElement('button');\n button.setAttribute('type', 'button');\n button.textContent = '×';\n button.onclick = () => this.destroy();\n this.box.appendChild(button);\n }\n this.closeHandle = null;\n }\n\n /**\n * Calculate new box top offset\n * @return {number} Top offset\n */\n static getPosition() {\n const boxes = document.querySelectorAll('.alert');\n const lastBox = boxes[boxes.length - 1];\n let position = 0;\n if (lastBox) {\n const maxPosition = document.body.clientHeight - 100;\n position = lastBox.getBoundingClientRect().bottom;\n if (position > maxPosition) {\n position = maxPosition;\n }\n }\n return position;\n }\n\n render() {\n if (!this.fixedPosition) {\n const top = uAlert.getPosition();\n if (top) {\n this.box.style.top = `${top}px`;\n }\n }\n document.body.appendChild(this.box);\n setTimeout(() => {\n if (this.box) {\n this.box.classList.add('in');\n }\n }, 50);\n }\n\n destroy() {\n if (this.closeHandle) {\n clearTimeout(this.closeHandle);\n this.closeHandle = null;\n }\n if (this.box && document.body.contains(this.box)) {\n const element = this.box;\n requestAnimationFrame(() => {\n element.classList.add('out');\n setTimeout(() => {\n element.remove();\n }, 1000);\n });\n this.box = null;\n }\n }\n\n /**\n * Show alert box\n * @param {string} message\n * @param {AlertOptions} [options] Optional options\n * @return uAlert\n */\n static show(message, options) {\n const box = new uAlert(message, options);\n box.render();\n if (box.autoClose) {\n box.closeHandle = setTimeout(() => box.destroy(), box.autoClose);\n }\n return box;\n }\n\n /**\n * Show alert error box\n * @param {string} message\n * @param {Error=} e Optional error to be logged to console\n * @return uAlert\n */\n static error(message, e) {\n if (e instanceof Error) {\n console.error(`${e.name}: ${e.message} (${e.stack})`);\n }\n return this.show(message, { class: 'error' });\n }\n\n /**\n * Show alert toast box\n * @param {string} message\n * @return uAlert\n */\n static toast(message) {\n return this.show(message, { class: 'toast', autoClose: 10000 });\n }\n\n static spinner() {\n return this.show('', { class: 'spinner', hasButton: false, fixed: true });\n }\n\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $ } from './initializer.js';\n\nexport default class uDialog {\n\n /**\n * Builds modal dialog\n * @param {(string|Node|NodeList|Array.)} content\n */\n constructor(content) {\n const dialog = document.createElement('div');\n dialog.setAttribute('id', 'modal');\n const dialogHeader = document.createElement('div');\n dialogHeader.setAttribute('id', 'modal-header');\n const buttonClose = document.createElement('button');\n buttonClose.setAttribute('id', 'modal-close');\n buttonClose.setAttribute('type', 'button');\n buttonClose.setAttribute('class', 'button-reject');\n buttonClose.setAttribute('data-bind', 'onCancel');\n const img = document.createElement('img');\n img.setAttribute('src', 'images/close.svg');\n img.setAttribute('alt', $._('close'));\n buttonClose.append(img);\n dialogHeader.append(buttonClose);\n const dialogBody = document.createElement('div');\n dialogBody.setAttribute('id', 'modal-body');\n if (typeof content === 'string') {\n dialogBody.innerHTML = content;\n } else if (content instanceof NodeList || content instanceof Array) {\n for (const node of content) {\n dialogBody.append(node);\n }\n } else {\n dialogBody.append(content);\n }\n dialogBody.prepend(dialogHeader);\n dialog.append(dialogBody);\n this.element = dialog;\n this.visible = false;\n }\n\n /**\n * Show modal dialog\n */\n show() {\n if (!this.visible) {\n document.body.append(this.element);\n this.visible = true;\n this.autofocus();\n }\n }\n\n /**\n * Set focus to element with autofocus attribute\n */\n autofocus() {\n const focusEl = this.element.querySelector('[autofocus]');\n if (focusEl) {\n focusEl.focus();\n }\n }\n\n /**\n * Remove modal dialog\n */\n destroy() {\n document.body.removeChild(this.element);\n this.visible = false\n }\n\n /**\n * Show confirmation dialog and return user decision\n * @param {string} message\n * @return {boolean} True if confirmed, false otherwise\n */\n static isConfirmed(message) {\n return confirm(message);\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2020 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $, config } from './initializer.js';\nimport ViewModel from './viewmodel.js';\nimport uAlert from './alert.js';\nimport uDialog from './dialog.js';\nimport uLayer from './layer.js';\nimport uLayerCollection from './layercollection.js';\nimport uSelect from './select.js';\n\n/**\n * @class ConfigDialogModel\n */\nexport default class ConfigDialogModel extends ViewModel {\n\n constructor() {\n super({\n colorExtra: config.colorExtra,\n colorHilite: config.colorHilite,\n colorNormal: config.colorNormal,\n colorStart: config.colorStart,\n colorStop: config.colorStop,\n googleKey: config.googleKey,\n initLatitude: config.initLatitude,\n initLongitude: config.initLongitude,\n interval: config.interval,\n lang: config.lang,\n layerId: 0,\n layerName: null,\n layers: new uLayerCollection(new uLayer(0, 'OpenStreetMap', '', 0), ...config.olLayers),\n layerUrl: null,\n mapApi: config.mapApi,\n passLenMin: config.passLenMin,\n passStrength: config.passStrength,\n publicTracks: config.publicTracks,\n requireAuth: config.requireAuth,\n strokeColor: config.strokeColor,\n strokeOpacity: config.strokeOpacity,\n strokeWeight: config.strokeWeight,\n units: config.units,\n uploadMaxSize: config.uploadMaxSize,\n uploadMaxSizeMB: config.uploadMaxSize / 1024 / 1024\n });\n this.model.onCancel = () => this.onCancel();\n this.model.onSave = () => this.onSave();\n this.model.onLayerUpdate = () => this.onLayerUpdate();\n this.model.onLayerCancel = () => this.onLayerCancel();\n this.model.onLayerEdit = () => this.onLayerEdit();\n this.model.onLayerDelete = () => this.onLayerDelete();\n this.model.onLayerAdd = () => this.onLayerAdd();\n }\n\n init() {\n const html = this.getHtml();\n this.dialog = new uDialog(html);\n this.dialog.show();\n this.bindAll(this.dialog.element);\n this.toggleEditEl = this.getBoundElement('onLayerEdit').parentNode;\n this.layerEditEl = this.getBoundElement('layerName').parentNode;\n this.layerSelect = new uSelect(this.getBoundElement('layerId'));\n this.setPublicTracksActivity(this.model.requireAuth);\n this.toggleEditVisible();\n this.onChanged('layerId', (listValue) => {\n const layer = this.model.layers.get(parseInt(listValue));\n this.model.layerName = layer ? layer.name : '';\n this.model.layerUrl = layer ? layer.url : '';\n this.toggleEditVisible();\n });\n this.model.layerId = config.olLayers.getPriorityLayer().toString();\n this.onChanged('uploadMaxSizeMB', (value) => { this.model.uploadMaxSize = value * 1024 * 1024;})\n this.onChanged('layers', (list) => this.layerSelect.setOptions(list));\n this.onChanged('requireAuth', (value) => {\n this.setPublicTracksActivity(value);\n });\n }\n\n setPublicTracksActivity(value) {\n if (value) {\n this.getBoundElement('publicTracks').disabled = false;\n } else {\n this.model.publicTracks = true;\n this.getBoundElement('publicTracks').disabled = true;\n }\n }\n\n onCancel() {\n this.dialog.destroy();\n }\n\n onSave() {\n if (this.validate()) {\n this.model.layers.setPriorityLayer(parseInt(this.model.layerId));\n config.save(this.model)\n .then(() => this.dialog.destroy())\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n }\n\n /**\n * Validate form\n * @return {boolean} True if valid\n */\n validate() {\n const form = this.dialog.element.querySelector('form');\n return form.checkValidity();\n }\n\n toggleEditVisible() {\n if (parseInt(this.model.layerId) > 0) {\n this.toggleEditEl.style.visibility = 'visible';\n } else {\n this.toggleEditEl.style.visibility = 'hidden';\n this.hideEditElement();\n }\n }\n\n onLayerDelete() {\n this.model.layers.delete(parseInt(this.model.layerId));\n this.model.layerId = '0';\n }\n\n onLayerEdit() {\n if (this.layerEditEl.style.display === 'none') {\n this.showEditElement();\n } else {\n this.hideEditElement();\n }\n }\n\n onLayerUpdate() {\n if (!this.model.layerName || !this.model.layerUrl) {\n return;\n }\n if (this.model.layerId === '-1') {\n this.model.layers.addNewLayer(this.model.layerName, this.model.layerUrl);\n } else {\n const layer = this.currentLayer();\n layer.setName(this.model.layerName);\n layer.setUrl(this.model.layerUrl);\n }\n this.hideEditElement();\n this.layerSelect.setOptions(this.model.layers);\n }\n\n onLayerCancel() {\n this.hideEditElement();\n this.layerSelect.setOptions(this.model.layers);\n }\n\n onLayerAdd() {\n this.model.layerId = '-1';\n this.onLayerEdit();\n }\n\n hideEditElement() {\n this.layerEditEl.style.display = 'none';\n }\n\n showEditElement() {\n this.layerEditEl.style.display = 'block';\n }\n\n currentLayer() {\n return this.model.layers.get(parseInt(this.model.layerId));\n }\n\n /**\n * @return {string}\n */\n getHtml() {\n let langOptions = '';\n for (const [ langCode, langName ] of Object.entries($.getLangList())) {\n langOptions += ``;\n }\n let unitOptions = '';\n for (const units of [ 'metric', 'imperial', 'nautical' ]) {\n unitOptions += ``;\n }\n let layerOptions = '';\n for (const layer of this.model.layers) {\n layerOptions += ``;\n }\n return `
\"${$._('settings')}\" ${$._('editingconfig')}
\n
\n
\n \n \n \n \n
\n \n \n \n \n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
\n \n \n
\n
`;\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $, config } from './initializer.js';\nimport ConfigDialogModel from './configdialogmodel.js';\nimport ViewModel from './viewmodel.js';\nimport uUtils from './utils.js';\n\n/**\n * @class ConfigViewModel\n */\nexport default class ConfigViewModel extends ViewModel {\n /**\n * @param {uState} state\n */\n constructor(state) {\n super(config);\n this.state = state;\n this.model.onSetInterval = () => this.setAutoReloadInterval();\n this.model.onConfigEdit = () => this.showConfigDialog();\n }\n\n /**\n * @return {ConfigViewModel}\n */\n init() {\n this.setObservers();\n this.bindAll();\n return this;\n }\n\n setObservers() {\n this.onChanged('mapApi', (api) => {\n uUtils.setCookie('api', api);\n });\n this.onChanged('lang', (_lang) => {\n uUtils.setCookie('lang', _lang);\n ConfigViewModel.reload();\n });\n this.onChanged('units', (units) => {\n uUtils.setCookie('units', units);\n ConfigViewModel.reload();\n });\n this.onChanged('interval', (interval) => {\n uUtils.setCookie('interval', interval);\n });\n }\n\n static reload() {\n window.location.reload();\n }\n\n setAutoReloadInterval() {\n const interval = parseInt(prompt($._('newinterval')));\n if (!isNaN(interval) && interval !== this.model.interval) {\n this.model.interval = interval;\n }\n }\n\n showConfigDialog() {\n const vm = new ConfigDialogModel(this);\n vm.init();\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport ViewModel from './viewmodel.js';\nimport { config } from './initializer.js';\nimport uUtils from './utils.js';\n\nconst hiddenClass = 'menu-hidden';\n\nexport default class MainViewModel extends ViewModel {\n\n /**\n * @param {uState} state\n */\n constructor(state) {\n super({\n onMenuToggle: null,\n onShowUserMenu: null,\n onLogin: null,\n onLogout: null\n });\n this.state = state;\n this.model.onMenuToggle = () => this.toggleSideMenu();\n this.model.onShowUserMenu = () => this.toggleUserMenu();\n this.model.onLogin = () => MainViewModel.login();\n this.model.onLogout = () => MainViewModel.logout();\n this.hideUserMenuCallback = (e) => this.hideUserMenu(e);\n this.menuEl = document.querySelector('#menu');\n this.userMenuEl = document.querySelector('#user-menu');\n }\n\n /**\n * @return {MainViewModel}\n */\n init() {\n this.bindAll();\n return this;\n }\n\n toggleSideMenu() {\n if (this.menuEl.classList.contains(hiddenClass)) {\n this.menuEl.classList.remove(hiddenClass);\n } else {\n this.menuEl.classList.add(hiddenClass);\n }\n }\n\n /**\n * Toggle user menu visibility\n */\n toggleUserMenu() {\n if (this.userMenuEl.classList.contains(hiddenClass)) {\n this.userMenuEl.classList.remove(hiddenClass);\n window.addEventListener('click', this.hideUserMenuCallback, true);\n } else {\n this.userMenuEl.classList.add(hiddenClass);\n }\n }\n\n /**\n * Click listener callback to hide user menu\n * @param {MouseEvent} event\n */\n hideUserMenu(event) {\n const el = event.target;\n this.userMenuEl.classList.add(hiddenClass);\n window.removeEventListener('click', this.hideUserMenuCallback, true);\n if (el.parentElement.id !== 'user-menu') {\n event.stopPropagation();\n }\n }\n\n static login() {\n uUtils.openUrl(`login.php${window.location.hash}`);\n }\n\n static logout() {\n let url = 'utils/logout.php';\n if (!config.requireAuth) {\n url += `?hash=${window.location.hash.replace('#', '')}`;\n }\n uUtils.openUrl(url);\n }\n\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport MapViewModel from '../mapviewmodel.js';\nimport { config } from '../initializer.js';\nimport uTrack from '../track.js';\nimport uUtils from '../utils.js';\n\n/**\n * @typedef {Object} MarkerStyles\n * @property {Style} normal\n * @property {Style} start\n * @property {Style} stop\n * @property {Style} extra\n * @property {Style} startExtra\n * @property {Style} stopExtra\n * @property {Style} hilite\n */\n\n/**\n * @typedef {import(\"../lib/ol.js\")} OpenLayers\n * @property {import(\"ol/control\")} control\n * @property {import(\"ol/Feature\").default} Feature\n * @property {import(\"ol/geom\")} geom\n * @property {import(\"ol/layer/Tile\").default} layer.TileLayer\n * @property {import(\"ol/layer/Vector\").default} layer.VectorLayer\n * @property {import(\"ol/Map\").default} Map\n * @property {import(\"ol/Overlay\").default} Overlay\n * @property {import(\"ol/proj\")} proj\n * @property {import(\"ol/source/OSM\").default} source.OSM\n * @property {import(\"ol/source/Vector\").default} source.Vector\n * @property {import(\"ol/source/XYZ\").default} source.XYZ\n * @property {import(\"ol/style/Icon\").default} style.Icon\n * @property {import(\"ol/style/Stroke\").default} style.Stroke\n * @property {import(\"ol/style/Style\").default} style.Style\n * @property {import(\"ol/View\").default} View\n */\n/** @type {?OpenLayers} */\nlet ol;\n\n/**\n * OpenLayers API\n * @class OpenLayersApi\n * @implements {MapViewModel.api}\n */\nexport default class OpenLayersApi {\n\n /**\n * @param {MapViewModel} vm\n * @param {?OpenLayers=} olModule\n */\n constructor(vm, olModule = null) {\n /** @type {Map} */\n this.map = null;\n /** @type {MapViewModel} */\n this.viewModel = vm;\n /** @type {VectorLayer} */\n this.layerTrack = null;\n /** @type {VectorLayer} */\n this.layerMarkers = null;\n /** @type {Layer} */\n this.selectedLayer = null;\n /** @type {?MarkerStyles} */\n this.markerStyles = null;\n /** @type {?Overlay} */\n this.popup = null;\n // for tests\n if (olModule) { ol = olModule; }\n }\n\n /**\n * Initialize map\n * @return {Promise}\n */\n init() {\n uUtils.addCss('css/dist/ol.css', 'ol_css');\n const olReady = ol ? Promise.resolve() : import(/* webpackChunkName : \"ol\" */'../lib/ol.js').then((m) => { ol = m; });\n return olReady.then(() => {\n this.initMap();\n this.initLayers();\n this.initStyles();\n this.initPopups();\n });\n }\n\n initMap() {\n const controls = [\n new ol.control.Zoom(),\n new ol.control.Rotate(),\n new ol.control.ScaleLine()\n ];\n\n const view = new ol.View({\n center: ol.proj.fromLonLat([ config.initLongitude, config.initLatitude ]),\n zoom: 8\n });\n\n this.map = new ol.Map({\n target: this.viewModel.mapElement,\n controls: controls,\n view: view\n });\n\n this.map.on('pointermove', (e) => {\n const feature = this.map.forEachFeatureAtPixel(e.pixel,\n /**\n * @param {Feature} _feature\n * @param {Layer} _layer\n * @return {Feature}\n */\n (_feature, _layer) => {\n if (_layer.get('name') === 'Markers') {\n return _feature;\n }\n return null;\n });\n\n if (feature) {\n this.map.getTargetElement().style.cursor = 'pointer';\n const id = feature.getId();\n if (id !== this.viewModel.model.markerOver) {\n this.viewModel.model.markerOver = id;\n }\n } else {\n this.map.getTargetElement().style.cursor = '';\n this.viewModel.model.markerOver = null;\n }\n });\n\n this.saveState = () => {\n this.viewModel.state.mapParams = this.getState();\n };\n }\n\n /**\n * Initialize map layers\n */\n initLayers() {\n // default layer: OpenStreetMap\n const osm = new ol.layer.TileLayer({\n name: 'OpenStreetMap',\n visible: true,\n source: new ol.source.OSM()\n });\n this.map.addLayer(osm);\n this.selectedLayer = osm;\n\n // add extra tile layers\n for (const layer of config.olLayers) {\n const olLayer = new ol.layer.TileLayer({\n name: layer.name,\n visible: false,\n source: new ol.source.XYZ({\n url: layer.url\n })\n });\n this.map.addLayer(olLayer);\n if (layer.priority) {\n this.selectedLayer.setVisible(false);\n this.selectedLayer = olLayer;\n this.selectedLayer.setVisible(true);\n }\n }\n\n // add track and markers layers\n this.layerTrack = new ol.layer.VectorLayer({\n name: 'Track',\n type: 'data',\n source: new ol.source.Vector()\n });\n this.layerMarkers = new ol.layer.VectorLayer({\n name: 'Markers',\n type: 'data',\n source: new ol.source.Vector()\n });\n this.map.addLayer(this.layerTrack);\n this.map.addLayer(this.layerMarkers);\n\n this.initLayerSwitcher();\n }\n\n initStyles() {\n const anchor = [ 0.5, 1 ];\n this.markerStyles = {\n start: new ol.style.Style({\n image: new ol.style.Icon({\n anchor: anchor,\n src: MapViewModel.getSvgSrc(config.colorStart, true)\n })\n }),\n stop: new ol.style.Style({\n image: new ol.style.Icon({\n anchor: anchor,\n src: MapViewModel.getSvgSrc(config.colorStop, true)\n })\n }),\n normal: new ol.style.Style({\n image: new ol.style.Icon({\n anchor: anchor,\n opacity: 0.7,\n src: MapViewModel.getSvgSrc(config.colorNormal, false)\n })\n }),\n extra: new ol.style.Style({\n image: new ol.style.Icon({\n anchor: anchor,\n src: MapViewModel.getSvgSrc(config.colorExtra, false, true)\n })\n }),\n startExtra: new ol.style.Style({\n image: new ol.style.Icon({\n anchor: anchor,\n src: MapViewModel.getSvgSrc(config.colorStart, true, true)\n })\n }),\n stopExtra: new ol.style.Style({\n image: new ol.style.Icon({\n anchor: anchor,\n src: MapViewModel.getSvgSrc(config.colorStop, true, true)\n })\n }),\n hilite: new ol.style.Style({\n image: new ol.style.Icon({\n anchor: anchor,\n src: MapViewModel.getSvgSrc(config.colorHilite, false)\n })\n })\n };\n }\n\n /**\n * Set default track style\n */\n setTrackDefaultStyle() {\n const lineStyle = new ol.style.Style({\n stroke: new ol.style.Stroke({\n color: uUtils.hexToRGBA(config.strokeColor, config.strokeOpacity),\n width: config.strokeWeight\n })\n })\n this.layerTrack.setStyle(lineStyle);\n }\n\n /**\n * @param {CanvasRenderingContext2D} context\n * @param {Coordinate[]} coordinates\n * @param {string[]} colors\n * @return {Style}\n */\n getGradientStyle(context, coordinates, colors) {\n const pixelStart = this.map.getPixelFromCoordinate(coordinates[0]);\n const pixelEnd = this.map.getPixelFromCoordinate(coordinates[1]);\n const scale = window.devicePixelRatio;\n const x0 = pixelStart[0] * scale;\n const y0 = pixelStart[1] * scale;\n const x1 = pixelEnd[0] * scale;\n const y1 = pixelEnd[1] * scale;\n const gradient = context.createLinearGradient(x0, y0, x1, y1);\n gradient.addColorStop(0, colors[0]);\n gradient.addColorStop(1, colors[1]);\n return new ol.style.Style({\n geometry: new ol.geom.LineString(coordinates),\n stroke: new ol.style.Stroke({\n color: gradient,\n width: config.strokeWeight * 2\n })\n })\n }\n\n /**\n * Set gradient style for given track property and scale\n * @param {uTrack} track\n * @param {string} property\n * @param {{ minValue: number, maxValue: number, minColor: number[], maxColor: number[] }} scale\n */\n setTrackGradientStyle(track, property, scale) {\n const minValue = scale.minValue;\n const maxValue = scale.maxValue;\n const minColor = scale.minColor;\n const maxColor = scale.maxColor;\n if (track.length < 2 || maxValue < minValue) {\n this.setTrackDefaultStyle();\n return;\n }\n const canvas = document.createElement('canvas', { alpha: false, desynchronized: true });\n const ctx = canvas.getContext('2d');\n /**\n * @param {Feature} feature\n * @return {Style[]}\n */\n const lineStyle = (feature) => {\n const styles = [\n new ol.style.Style({\n stroke: new ol.style.Stroke({\n color: 'grey',\n width: config.strokeWeight * 2 + 2\n })\n })\n ];\n const geometry = feature.getGeometry();\n if (minValue === maxValue) {\n styles.push(new ol.style.Style({\n geometry: geometry,\n stroke: new ol.style.Stroke({\n color: uUtils.getScaleColor(minColor, maxColor, 0.5),\n width: config.strokeWeight * 2\n })\n }));\n return styles;\n }\n let position = track.positions[0];\n const value = position[property] !== null ? position[property] : 0;\n let colorStart = uUtils.getScaleColor(minColor, maxColor, (value - minValue) / (maxValue - minValue));\n let index = 1;\n geometry.forEachSegment((start, end) => {\n position = track.positions[index];\n let colorStop;\n if (position[property] !== null) {\n colorStop = uUtils.getScaleColor(minColor, maxColor, (position[property] - minValue) / (maxValue - minValue));\n } else {\n colorStop = colorStart;\n }\n styles.push(this.getGradientStyle(ctx, [ start, end ], [ colorStart, colorStop ]));\n colorStart = colorStop;\n index++;\n });\n return styles;\n };\n this.layerTrack.setStyle(lineStyle);\n }\n\n initPopups() {\n const popupContainer = document.createElement('div');\n popupContainer.id = 'popup-container';\n popupContainer.className = 'ol-popup';\n const popupContent = document.createElement('div');\n popupContent.id = 'popup-content';\n popupContainer.appendChild(popupContent);\n const popupCloser = document.createElement('a');\n popupCloser.className = 'ol-popup-closer';\n popupContainer.appendChild(popupCloser);\n\n this.popup = new ol.Overlay({\n element: popupContainer,\n autoPan: true,\n autoPanAnimation: {\n duration: 250\n }\n });\n this.map.addOverlay(this.popup);\n\n popupCloser.onclick = () => {\n this.popupClose();\n popupCloser.blur();\n return false;\n };\n\n // add click handler to map to show popup\n this.map.on('click', (e) => {\n const coordinate = e.coordinate;\n const feature = this.map.forEachFeatureAtPixel(e.pixel,\n /** @param {Feature} _feature\n * @param {Layer} _layer\n * @return {?Feature}\n */\n (_feature, _layer) => {\n if (_layer.get('name') === 'Markers') {\n return _feature;\n }\n return null;\n });\n if (feature) {\n this.popupOpen(feature.getId(), coordinate);\n } else {\n this.popupClose();\n }\n });\n }\n\n /**\n * Show popup at coordinate\n * @param {number} id\n * @param {Coordinate} coordinate\n */\n popupOpen(id, coordinate) {\n this.popup.getElement().firstElementChild.innerHTML = '';\n this.popup.getElement().firstElementChild.appendChild(this.viewModel.getPopupElement(id));\n this.popup.setPosition(coordinate);\n this.viewModel.model.markerSelect = id;\n }\n\n /**\n * Close popup\n */\n popupClose() {\n if (this.popup) {\n // eslint-disable-next-line no-undefined\n this.popup.setPosition(undefined);\n this.popup.getElement().firstElementChild.innerHTML = '';\n }\n this.viewModel.model.markerSelect = null;\n }\n\n /**\n * Switch layer to target\n * @param {string} targetName\n */\n switchLayer(targetName) {\n this.map.getLayers().forEach(/** @param {Layer} _layer */(_layer) => {\n if (_layer.get('name') === targetName) {\n if (_layer.get('type') === 'data') {\n if (_layer.getVisible()) {\n _layer.setVisible(false);\n } else {\n _layer.setVisible(true);\n }\n } else {\n this.selectedLayer.setVisible(false);\n this.selectedLayer = _layer;\n _layer.setVisible(true);\n }\n }\n });\n }\n\n initLayerSwitcher() {\n const switcher = document.createElement('div');\n switcher.id = 'switcher';\n switcher.className = 'ol-control';\n document.body.appendChild(switcher);\n const switcherContent = document.createElement('div');\n switcherContent.id = 'switcher-content';\n switcherContent.className = 'ol-layerswitcher';\n switcher.appendChild(switcherContent);\n const switcherCloser = document.createElement('a');\n switcherCloser.className = 'ol-popup-closer';\n switcher.appendChild(switcherCloser);\n\n this.map.getLayers().forEach(/** @param {Layer} _layer */(_layer) => {\n const layerLabel = document.createElement('label');\n layerLabel.innerHTML = _layer.get('name');\n switcherContent.appendChild(layerLabel);\n\n const layerRadio = document.createElement('input');\n if (_layer.get('type') === 'data') {\n layerRadio.type = 'checkbox';\n layerLabel.className = 'ol-datalayer';\n } else {\n layerRadio.type = 'radio';\n }\n layerRadio.name = 'layer';\n layerRadio.value = _layer.get('name');\n layerRadio.onclick = (e) => {\n /** @type {HTMLInputElement} */\n const el = e.target;\n this.switchLayer(el.value);\n };\n if (_layer.getVisible()) {\n layerRadio.checked = true;\n }\n layerLabel.insertBefore(layerRadio, layerLabel.childNodes[0]);\n });\n\n const switcherButton = document.createElement('button');\n const layerImg = document.createElement('img');\n layerImg.src = 'images/layers.svg';\n layerImg.style.width = '60%';\n switcherButton.appendChild(layerImg);\n\n const switcherHandle = () => {\n if (switcher.style.display === 'block') {\n switcher.style.display = 'none';\n } else {\n switcher.style.display = 'block';\n }\n };\n\n switcherCloser.addEventListener('click', switcherHandle, false);\n switcherButton.addEventListener('click', switcherHandle, false);\n switcherButton.addEventListener('touchstart', switcherHandle, false);\n\n const element = document.createElement('div');\n element.className = 'ol-switcher-button ol-unselectable ol-control';\n element.appendChild(switcherButton);\n\n const switcherControl = new ol.control.Control({ element });\n this.map.addControl(switcherControl);\n }\n\n /**\n * Clean up API\n */\n cleanup() {\n this.layerTrack = null;\n this.layerMarkers = null;\n this.selectedLayer = null;\n this.markerStyles = null;\n uUtils.removeElementById('switcher');\n if (this.map && this.map.getTargetElement()) {\n this.map.getTargetElement().innerHTML = '';\n }\n this.map = null;\n }\n\n /**\n * Display track\n * @param {uPositionSet} track Track\n * @param {boolean} update Should fit bounds if true\n * @return {Promise.}\n */\n displayTrack(track, update) {\n if (!track || !track.hasPositions) {\n return Promise.resolve();\n }\n this.map.un('moveend', this.saveState);\n const promise = new Promise((resolve) => {\n this.map.once('rendercomplete', () => {\n console.log('rendercomplete');\n if (this.map) {\n this.saveState();\n this.map.on('moveend', this.saveState);\n }\n resolve();\n });\n });\n let start = this.layerMarkers ? this.layerMarkers.getSource().getFeatures().length : 0;\n if (start > 0) {\n this.removePoint(--start);\n }\n for (let i = start; i < track.length; i++) {\n this.setMarker(i, track);\n }\n if (track instanceof uTrack) {\n let lineString;\n if (this.layerTrack && this.layerTrack.getSource().getFeatures().length) {\n lineString = this.layerTrack.getSource().getFeatures()[0].getGeometry();\n } else {\n lineString = new ol.geom.LineString([]);\n const lineFeature = new ol.Feature({ geometry: lineString });\n this.layerTrack.getSource().addFeature(lineFeature);\n }\n for (let i = start; i < track.length; i++) {\n const position = track.positions[i];\n lineString.appendCoordinate(ol.proj.fromLonLat([ position.longitude, position.latitude ]));\n }\n }\n\n let extent = this.layerMarkers.getSource().getExtent();\n\n if (update) {\n extent = this.fitToExtent(extent);\n }\n this.setZoomToExtent(extent);\n return promise;\n }\n\n /**\n * Set or replace ZoomToExtent control\n * @param {Array.} extent\n */\n setZoomToExtent(extent) {\n this.map.getControls().forEach((el) => {\n if (el instanceof ol.control.ZoomToExtent) {\n this.map.removeControl(el);\n }\n });\n this.map.addControl(new ol.control.ZoomToExtent({\n extent: extent,\n label: OpenLayersApi.getExtentImg()\n }));\n }\n\n /**\n * Fit to extent, respect max zoom, add padding\n * @param {Array.} extent\n * @return {Array.}\n */\n fitToExtent(extent) {\n this.map.getView().fit(extent, { padding: OpenLayersApi.TRACK_PADDING, maxZoom: OpenLayersApi.ZOOM_MAX });\n return this.map.getView().calculateExtent();\n }\n\n /**\n * Is given position within viewport\n * @param {number} id\n * @return {boolean}\n */\n isPositionVisible(id) {\n const mapExtent = this.map.getView().calculateExtent();\n const marker = this.layerMarkers.getSource().getFeatureById(id).getGeometry();\n return marker ? ol.extent.containsCoordinate(mapExtent, marker.getCoordinates()) : false;\n }\n\n /**\n * Center to given position\n * @param {number} id\n */\n centerToPosition(id) {\n const marker = this.layerMarkers.getSource().getFeatureById(id).getGeometry();\n if (marker) {\n console.log(`Setting center to position ${id}`)\n this.map.getView().setCenter(marker.getCoordinates());\n }\n }\n\n /**\n * Clear map\n */\n clearMap() {\n this.popupClose();\n if (this.layerTrack) {\n this.layerTrack.getSource().clear();\n }\n if (this.layerMarkers) {\n this.layerMarkers.getSource().clear();\n }\n }\n\n /**\n * Get marker style\n * @param {number} id\n * @param {uPositionSet} track\n * @return {Style}\n */\n getMarkerStyle(id, track) {\n const position = track.positions[id];\n let iconStyle = this.markerStyles.normal;\n if (position.hasComment() || position.hasImage()) {\n if (track.isLastPosition(id)) {\n iconStyle = this.markerStyles.stopExtra;\n } else if (track.isFirstPosition(id)) {\n iconStyle = this.markerStyles.startExtra;\n } else {\n iconStyle = this.markerStyles.extra;\n }\n } else if (track.isLastPosition(id)) {\n iconStyle = this.markerStyles.stop;\n } else if (track.isFirstPosition(id)) {\n iconStyle = this.markerStyles.start;\n }\n return iconStyle;\n }\n\n /**\n * Set marker\n * @param {number} id\n * @param {uPositionSet} track\n */\n setMarker(id, track) {\n // marker\n const position = track.positions[id];\n const marker = new ol.Feature({\n geometry: new ol.geom.Point(ol.proj.fromLonLat([ position.longitude, position.latitude ]))\n });\n\n const iconStyle = this.getMarkerStyle(id, track);\n marker.setStyle(iconStyle);\n marker.setId(id);\n this.layerMarkers.getSource().addFeature(marker);\n }\n\n /**\n * @param {number} id\n */\n removePoint(id) {\n const marker = this.layerMarkers.getSource().getFeatureById(id);\n if (marker) {\n this.layerMarkers.getSource().removeFeature(marker);\n if (this.layerTrack) {\n const lineString = this.layerTrack.getSource().getFeatures()[0].getGeometry();\n const coordinates = lineString.getCoordinates();\n coordinates.splice(id, 1);\n lineString.setCoordinates(coordinates);\n }\n if (this.viewModel.model.markerSelect === id) {\n this.popupClose();\n }\n }\n }\n\n /**\n * Animate marker\n * @param id Marker sequential id\n */\n animateMarker(id) {\n const marker = this.layerMarkers.getSource().getFeatureById(id);\n const initStyle = marker.getStyle();\n marker.setStyle(this.markerStyles.hilite);\n setTimeout(() => marker.setStyle(initStyle), 2000);\n }\n\n /**\n * Get map bounds\n * eg. (20.597985430276808, 52.15547181298076, 21.363595171488573, 52.33750879522563)\n * @returns {number[]} Bounds [ lon_sw, lat_sw, lon_ne, lat_ne ]\n */\n getBounds() {\n const extent = this.map.getView().calculateExtent();\n const sw = ol.proj.toLonLat([ extent[0], extent[1] ]);\n const ne = ol.proj.toLonLat([ extent[2], extent[3] ]);\n return [ sw[0], sw[1], ne[0], ne[1] ];\n }\n\n /**\n * Zoom to track extent, respect max zoom, add padding\n */\n zoomToExtent() {\n this.fitToExtent(this.layerMarkers.getSource().getExtent());\n }\n\n /**\n * Zoom to bounds\n * @param {number[]} bounds [ lon_sw, lat_sw, lon_ne, lat_ne ]\n */\n zoomToBounds(bounds) {\n const sw = ol.proj.fromLonLat([ bounds[0], bounds[1] ]);\n const ne = ol.proj.fromLonLat([ bounds[2], bounds[3] ]);\n this.map.getView().fit([ sw[0], sw[1], ne[0], ne[1] ]);\n }\n\n /**\n * Update size\n */\n updateSize() {\n this.map.updateSize();\n }\n\n /**\n * Get extent image\n * @returns {HTMLImageElement}\n */\n static getExtentImg() {\n const extentImg = document.createElement('img');\n extentImg.src = 'images/extent.svg';\n extentImg.style.width = '60%';\n return extentImg;\n }\n\n /**\n * Set map state\n * @param {MapParams} state\n */\n updateState(state) {\n this.map.getView().setCenter(state.center);\n this.map.getView().setZoom(state.zoom);\n this.map.getView().setRotation(state.rotation);\n }\n\n /**\n * Get map state\n * @return {MapParams|null}\n */\n getState() {\n const view = this.map ? this.map.getView() : null;\n if (view) {\n return {\n center: view.getCenter(),\n zoom: view.getZoom(),\n rotation: view.getRotation()\n };\n }\n return null;\n }\n\n // eslint-disable-next-line class-methods-use-this\n saveState() {/* empty */}\n}\n/** @type {number} */\nOpenLayersApi.ZOOM_MAX = 20;\n/** @type {number[]} */\nOpenLayersApi.TRACK_PADDING = [ 40, 10, 10, 10 ];\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $, config } from '../initializer.js';\nimport MapViewModel from '../mapviewmodel.js';\nimport uAlert from '../alert.js';\nimport uTrack from '../track.js';\nimport uUtils from '../utils.js';\n\n// google maps\n/**\n * Google Maps API\n * @class GoogleMapsApi\n * @implements {MapViewModel.api}\n */\nexport default class GoogleMapsApi {\n\n /**\n * @param {MapViewModel} vm\n */\n constructor(vm) {\n /** @type {google.maps.Map} */\n this.map = null;\n /** @type {MapViewModel} */\n this.viewModel = vm;\n /** @type {google.maps.Polyline[]} */\n this.polies = [];\n /** @type {google.maps.Marker[]} */\n this.markers = [];\n /** @type {google.maps.InfoWindow} */\n this.popup = null;\n /** @type {number} */\n this.timeoutHandle = 0;\n }\n\n /**\n * Load and initialize api scripts\n * @return {Promise}\n */\n init() {\n const params = `?${(config.googleKey) ? `key=${config.googleKey}&` : ''}callback=gm_loaded`;\n const gmReady = Promise.all([\n GoogleMapsApi.onScriptLoaded(),\n uUtils.loadScript(`https://maps.googleapis.com/maps/api/js${params}`, 'mapapi_gmaps', GoogleMapsApi.loadTimeoutMs)\n ]);\n return gmReady.then(() => this.initMap());\n }\n\n /**\n * Listen to Google Maps callbacks\n * @return {Promise}\n */\n static onScriptLoaded() {\n const timeout = uUtils.timeoutPromise(GoogleMapsApi.loadTimeoutMs);\n const gmInitialize = new Promise((resolve, reject) => {\n window.gm_loaded = () => {\n GoogleMapsApi.gmInitialized = true;\n resolve();\n };\n window.gm_authFailure = () => {\n GoogleMapsApi.authError = true;\n let message = $._('apifailure', 'Google Maps');\n message += '

' + $._('gmauthfailure');\n message += '

' + $._('gmapilink');\n if (GoogleMapsApi.gmInitialized) {\n uAlert.error(message);\n }\n reject(new Error(message));\n };\n if (GoogleMapsApi.authError) {\n window.gm_authFailure();\n }\n if (GoogleMapsApi.gmInitialized) {\n window.gm_loaded();\n }\n });\n return Promise.race([ gmInitialize, timeout ]);\n }\n\n /**\n * Start map engine when loaded\n */\n initMap() {\n const mapOptions = {\n center: new google.maps.LatLng(config.initLatitude, config.initLongitude),\n zoom: 8,\n mapTypeId: google.maps.MapTypeId.TERRAIN,\n scaleControl: true,\n controlSize: 30\n };\n // noinspection JSCheckFunctionSignatures\n this.map = new google.maps.Map(this.viewModel.mapElement, mapOptions);\n this.popup = new google.maps.InfoWindow();\n this.popup.addListener('closeclick', () => {\n this.popupClose();\n });\n this.saveState = () => {\n this.viewModel.state.mapParams = this.getState();\n };\n }\n\n /**\n * Clean up API\n */\n cleanup() {\n this.polies.length = 0;\n this.markers.length = 0;\n this.popup = null;\n if (this.map && this.map.getDiv()) {\n this.map.getDiv().innerHTML = '';\n }\n this.map = null;\n }\n\n /**\n * Display track\n * @param {uPositionSet} track\n * @param {boolean} update Should fit bounds if true\n * @return {Promise.}\n */\n displayTrack(track, update) {\n if (!track || !track.hasPositions) {\n return Promise.resolve();\n }\n google.maps.event.clearListeners(this.map, 'idle');\n const promise = new Promise((resolve) => {\n google.maps.event.addListenerOnce(this.map, 'tilesloaded', () => {\n console.log('tilesloaded');\n if (this.map) {\n this.saveState();\n this.map.addListener('idle', this.saveState);\n }\n resolve();\n })\n });\n // init polyline\n const polyOptions = {\n strokeColor: config.strokeColor,\n strokeOpacity: config.strokeOpacity,\n strokeWeight: config.strokeWeight\n };\n // noinspection JSCheckFunctionSignatures\n let poly;\n const latlngbounds = new google.maps.LatLngBounds();\n if (this.polies.length) {\n poly = this.polies[0];\n for (let i = 0; i < this.markers.length; i++) {\n latlngbounds.extend(this.markers[i].getPosition());\n }\n } else {\n poly = new google.maps.Polyline(polyOptions);\n poly.setMap(this.map);\n this.polies.push(poly);\n }\n const path = poly.getPath();\n let start = this.markers.length;\n if (start > 0) {\n this.removePoint(--start);\n }\n for (let i = start; i < track.length; i++) {\n // set marker\n this.setMarker(i, track);\n // update polyline\n const position = track.positions[i];\n const coordinates = new google.maps.LatLng(position.latitude, position.longitude);\n if (track instanceof uTrack) {\n path.push(coordinates);\n }\n latlngbounds.extend(coordinates);\n }\n if (update) {\n this.map.fitBounds(latlngbounds);\n if (track.length === 1) {\n // only one point, zoom out\n const zListener =\n google.maps.event.addListenerOnce(this.map, 'bounds_changed', function () {\n if (this.getZoom()) {\n this.setZoom(15);\n }\n });\n setTimeout(() => {\n google.maps.event.removeListener(zListener);\n }, 2000);\n }\n }\n return promise;\n }\n\n /**\n * Clear map\n */\n clearMap() {\n if (this.polies) {\n for (let i = 0; i < this.polies.length; i++) {\n this.polies[i].setMap(null);\n }\n }\n if (this.markers) {\n for (let i = 0; i < this.markers.length; i++) {\n this.markers[i].setMap(null);\n }\n }\n if (this.popup.getMap()) {\n this.popupClose();\n }\n this.popup.setContent('');\n this.markers.length = 0;\n this.polies.length = 0;\n }\n\n /**\n * @param {string} fill Fill color\n * @param {boolean} isLarge Is large icon\n * @param {boolean} isExtra Is styled with extra mark\n * @return {google.maps.Icon}\n */\n static getMarkerIcon(fill, isLarge, isExtra) {\n // noinspection JSValidateTypes\n return {\n anchor: new google.maps.Point(15, 35),\n url: MapViewModel.getSvgSrc(fill, isLarge, isExtra)\n };\n }\n\n /**\n * Set marker\n * @param {uPositionSet} track\n * @param {number} id\n */\n setMarker(id, track) {\n // marker\n const position = track.positions[id];\n // noinspection JSCheckFunctionSignatures\n const marker = new google.maps.Marker({\n position: new google.maps.LatLng(position.latitude, position.longitude),\n title: (new Date(position.timestamp * 1000)).toLocaleString(),\n map: this.map\n });\n const isExtra = position.hasComment() || position.hasImage();\n let icon;\n if (track.isLastPosition(id)) {\n icon = GoogleMapsApi.getMarkerIcon(config.colorStop, true, isExtra);\n } else if (track.isFirstPosition(id)) {\n icon = GoogleMapsApi.getMarkerIcon(config.colorStart, true, isExtra);\n } else {\n icon = GoogleMapsApi.getMarkerIcon(isExtra ? config.colorExtra : config.colorNormal, false, isExtra);\n }\n marker.setIcon(icon);\n\n marker.addListener('click', () => {\n this.popupOpen(id, marker);\n });\n marker.addListener('mouseover', () => {\n this.viewModel.model.markerOver = id;\n });\n marker.addListener('mouseout', () => {\n this.viewModel.model.markerOver = null;\n });\n\n this.markers.push(marker);\n }\n\n /**\n * @param {number} id\n */\n removePoint(id) {\n if (this.markers.length > id) {\n this.markers[id].setMap(null);\n this.markers.splice(id, 1);\n if (this.polies.length) {\n this.polies[0].getPath().removeAt(id);\n }\n if (this.viewModel.model.markerSelect === id) {\n this.popupClose();\n }\n }\n }\n\n /**\n * Open popup on marker with given id\n * @param {number} id\n * @param {google.maps.Marker} marker\n */\n popupOpen(id, marker) {\n this.popup.setContent(this.viewModel.getPopupElement(id));\n this.popup.open(this.map, marker);\n this.viewModel.model.markerSelect = id;\n }\n\n /**\n * Close popup\n */\n popupClose() {\n this.viewModel.model.markerSelect = null;\n this.popup.close();\n }\n\n /**\n * Animate marker\n * @param id Marker sequential id\n */\n animateMarker(id) {\n if (this.popup.getMap()) {\n this.popupClose();\n clearTimeout(this.timeoutHandle);\n }\n const icon = this.markers[id].getIcon();\n this.markers[id].setIcon(GoogleMapsApi.getMarkerIcon(config.colorHilite, false, false));\n this.markers[id].setAnimation(google.maps.Animation.BOUNCE);\n this.timeoutHandle = setTimeout(() => {\n this.markers[id].setIcon(icon);\n this.markers[id].setAnimation(null);\n }, 2000);\n }\n\n /**\n * Get map bounds\n * @returns {number[]} Bounds [ lon_sw, lat_sw, lon_ne, lat_ne ]\n */\n getBounds() {\n const bounds = this.map.getBounds();\n const lat_sw = bounds.getSouthWest().lat();\n const lon_sw = bounds.getSouthWest().lng();\n const lat_ne = bounds.getNorthEast().lat();\n const lon_ne = bounds.getNorthEast().lng();\n return [ lon_sw, lat_sw, lon_ne, lat_ne ];\n }\n\n /**\n * Zoom to track extent\n */\n zoomToExtent() {\n const bounds = new google.maps.LatLngBounds();\n for (let i = 0; i < this.markers.length; i++) {\n bounds.extend(this.markers[i].getPosition());\n }\n this.map.fitBounds(bounds);\n }\n\n /**\n * Zoom to bounds\n * @param {number[]} bounds [ lon_sw, lat_sw, lon_ne, lat_ne ]\n */\n zoomToBounds(bounds) {\n const sw = new google.maps.LatLng(bounds[1], bounds[0]);\n const ne = new google.maps.LatLng(bounds[3], bounds[2]);\n const latLngBounds = new google.maps.LatLngBounds(sw, ne);\n this.map.fitBounds(latLngBounds);\n }\n\n /**\n * Is given position within viewport\n * @param {number} id\n * @return {boolean}\n */\n isPositionVisible(id) {\n if (id >= this.markers.length) {\n return false;\n }\n return this.map.getBounds().contains(this.markers[id].getPosition());\n }\n\n /**\n * Center to given position\n * @param {number} id\n */\n centerToPosition(id) {\n if (id < this.markers.length) {\n this.map.setCenter(this.markers[id].getPosition());\n }\n }\n\n /**\n * Update size\n */\n // eslint-disable-next-line class-methods-use-this\n updateSize() {\n // ignore for google API\n }\n\n /**\n * Set default track style\n */\n // eslint-disable-next-line class-methods-use-this\n setTrackDefaultStyle() {\n // ignore for google API\n }\n\n /**\n * Set gradient style for given track property and scale\n * @param {uTrack} track\n * @param {string} property\n * @param {{ minValue: number, maxValue: number, minColor: number[], maxColor: number[] }} scale\n */\n // eslint-disable-next-line class-methods-use-this,no-unused-vars\n setTrackGradientStyle(track, property, scale) {\n // ignore for google API\n }\n\n static get loadTimeoutMs() {\n return 10000;\n }\n\n /**\n * Set map state\n * Note: ignores rotation\n * @param {MapParams} state\n */\n updateState(state) {\n this.map.setCenter({ lat: state.center[0], lng: state.center[1] });\n this.map.setZoom(state.zoom);\n }\n\n /**\n * Get map state\n * Note: ignores rotation\n * @return {MapParams|null}\n */\n getState() {\n if (this.map) {\n const center = this.map.getCenter();\n return {\n center: [ center.lat(), center.lng() ],\n zoom: this.map.getZoom(),\n rotation: 0\n };\n }\n return null;\n }\n\n // eslint-disable-next-line class-methods-use-this\n saveState() {/* empty */}\n}\n\n/** @type {boolean} */\nGoogleMapsApi.authError = false;\n/** @type {boolean} */\nGoogleMapsApi.gmInitialized = false;\n","/*\n * μlogger\n *\n * Copyright(C) 2020 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $, config } from './initializer.js';\nimport ViewModel from './viewmodel.js';\nimport uAlert from './alert.js';\nimport uDialog from './dialog.js';\nimport uObserve from './observe.js';\nimport uUtils from './utils.js';\n\nconst hiddenClass = 'hidden';\n\n/**\n * @class PositionDialogModel\n */\nexport default class PositionDialogModel extends ViewModel {\n\n /**\n * @param {uState} state\n * @param {number} positionIndex\n */\n constructor(state, positionIndex) {\n super({\n onPositionDelete: null,\n onPositionUpdate: null,\n onCancel: null,\n comment: null,\n image: null,\n onImageDelete: null\n });\n this.state = state;\n this.positionIndex = positionIndex;\n this.position = this.state.currentTrack.positions[positionIndex];\n this.model.comment = this.position.hasComment() ? this.position.comment : '';\n this.model.image = this.position.image;\n this.model.onPositionDelete = () => this.onPositionDelete();\n this.model.onPositionUpdate = () => this.onPositionUpdate();\n this.model.onCancel = () => this.onCancel();\n this.model.onImageDelete = () => this.onImageDelete();\n this.onChanged('image', (image) => {\n if (image && image !== this.position.image) { this.readImage(); }\n });\n }\n\n init() {\n const html = this.getHtml();\n this.dialog = new uDialog(html);\n this.dialog.show();\n this.bindAll(this.dialog.element);\n this.previewEl = this.getBoundElement('imagePreview');\n this.fileEl = this.getBoundElement('image');\n this.imageDeleteEl = this.getBoundElement('onImageDelete');\n this.initReader();\n }\n\n initReader() {\n this.reader = new FileReader();\n this.reader.addEventListener('load', () => {\n this.showThumbnail();\n }, false);\n this.reader.addEventListener('error', () => {\n this.model.image = this.position.image;\n }, false);\n }\n\n readImage() {\n const file = this.fileEl.files[0];\n if (file) {\n if (file.size > config.uploadMaxSize) {\n uAlert.error($._('isizefailure', config.uploadMaxSize));\n this.model.image = this.position.image;\n return;\n }\n this.reader.readAsDataURL(file);\n }\n }\n\n showThumbnail() {\n this.previewEl.onload = () => this.toggleImage();\n this.previewEl.onerror = () => {\n uAlert.error($._('iuploadfailure'));\n this.model.image = this.position.image;\n };\n this.previewEl.src = this.reader.result;\n }\n\n /**\n * Toggle image visibility\n */\n toggleImage() {\n if (this.previewEl.classList.contains(hiddenClass)) {\n this.previewEl.classList.remove(hiddenClass);\n this.imageDeleteEl.classList.remove(hiddenClass);\n this.fileEl.classList.add(hiddenClass);\n } else {\n this.previewEl.classList.add(hiddenClass);\n this.imageDeleteEl.classList.add(hiddenClass);\n this.fileEl.classList.remove(hiddenClass);\n }\n }\n\n onImageDelete() {\n this.model.image = null;\n this.toggleImage();\n }\n\n /**\n * @return {string}\n */\n getHtml() {\n return `\n
${$._('editingposition', this.positionIndex + 1, `${uUtils.htmlEncode(this.position.trackname)}`)}
\n
\n
\n
\n \n

\n
\n \n \n ${$._('delimage')}\n
\n \n \n
\n
`;\n }\n\n onPositionDelete() {\n if (uDialog.isConfirmed($._('positiondelwarn', this.positionIndex + 1, uUtils.htmlEncode(this.position.trackname)))) {\n this.position.delete()\n .then(() => {\n const track = this.state.currentTrack;\n this.state.currentTrack = null;\n track.positions.splice(this.positionIndex, 1);\n track.recalculatePositions();\n this.state.currentTrack = track;\n this.dialog.destroy();\n }).catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n }\n\n /**\n * @return {Promise}\n */\n updateImage() {\n let promise = Promise.resolve();\n if (this.model.image !== this.position.image) {\n if (this.model.image === null) {\n promise = this.position.imageDelete();\n } else {\n promise = this.position.imageAdd(this.fileEl.files[0]);\n }\n }\n return promise;\n }\n\n onPositionUpdate() {\n this.model.comment.trim();\n if (this.validate()) {\n this.position.comment = this.model.comment;\n this.updateImage()\n .then(() => this.position.save())\n .then(() => {\n uObserve.forceUpdate(this.state, 'currentTrack');\n this.dialog.destroy()\n })\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n }\n\n onCancel() {\n this.dialog.destroy();\n }\n\n /**\n * Validate form\n * @return {boolean} True if valid\n */\n validate() {\n return !(this.model.comment === this.position.comment && this.model.image === this.position.image);\n\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $, auth, config } from './initializer.js';\nimport GoogleMapsApi from './mapapi/api_gmaps.js';\nimport OpenLayersApi from './mapapi/api_openlayers.js';\nimport PositionDialogModel from './positiondialogmodel.js';\nimport ViewModel from './viewmodel.js';\nimport uAlert from './alert.js';\nimport uDialog from './dialog.js';\nimport uObserve from './observe.js';\nimport uTrack from './track.js';\nimport uUtils from './utils.js';\n\n/**\n * @typedef {Object} MapViewModel.api\n * @interface\n * @memberOf MapViewModel\n * @type {Object}\n * @property {function(number)} animateMarker\n * @property {function(uTrack, boolean)} displayTrack\n * @property {function} cleanup\n * @property {function} clearMap\n * @property {function} getBounds\n * @property {function(MapViewModel)} init\n * @property {function} setTrackDefaultStyle\n * @property {function(uTrack, string, Object)} setTrackGradientStyle\n * @property {function} updateSize\n * @property {function} updateState\n * @property {function} zoomToBounds\n * @property {function} zoomToExtent\n */\n\n/**\n * @typedef {Object} MapParams\n * @property {number[]} center\n * @property {number} zoom\n * @property {number} rotation\n */\n\n/**\n * @class MapViewModel\n */\nexport default class MapViewModel extends ViewModel {\n /**\n * @param {uState} state\n */\n constructor(state) {\n super({\n /** @type {?number} */\n markerOver: null,\n /** @type {?number} */\n markerSelect: null,\n // click handler\n onMenuToggle: null,\n speedVisible: false,\n altitudeVisible: false\n });\n this.state = state;\n /** @type HTMLElement */\n this.mapElement = document.querySelector('#map-canvas');\n /** @type HTMLInputElement */\n this.speedEl = this.getBoundElement('speedVisible');\n /** @type HTMLInputElement */\n this.altitudeEl = this.getBoundElement('altitudeVisible');\n /** @type HTMLElement */\n this.styleEl = this.getBoundElement('trackColor');\n this.savedBounds = null;\n this.api = null;\n }\n\n /**\n * @return {MapViewModel}\n */\n init() {\n this.bindAll();\n this.setObservers();\n return this;\n }\n\n /**\n * Dynamic change of map api\n * @param {string} apiName API name\n */\n loadMapAPI(apiName) {\n let mapApi = this.api;\n this.api = null;\n if (mapApi) {\n try {\n this.savedBounds = mapApi.getBounds();\n } catch (e) {\n this.savedBounds = null;\n }\n mapApi.cleanup();\n }\n mapApi = this.getApi(apiName);\n mapApi.init()\n .then(() => {\n this.api = mapApi;\n this.onReady();\n })\n .catch((e) => {\n let txt = $._('apifailure', apiName);\n if (e && e.message) {\n txt += ` (${e.message})`;\n }\n uAlert.error(txt, e);\n config.mapApi = (apiName === 'gmaps') ? 'openlayers' : 'gmaps';\n });\n }\n\n /**\n * @param {string} apiName\n * @return {OpenLayersApi|GoogleMapsApi}\n */\n getApi(apiName) {\n return apiName === 'gmaps' ? new GoogleMapsApi(this) : new OpenLayersApi(this);\n }\n\n onReady() {\n if (this.state.currentTrack) {\n let update = true;\n if (this.savedBounds) {\n this.api.zoomToBounds(this.savedBounds);\n update = false;\n }\n this.displayTrack(this.state.currentTrack, update);\n }\n }\n\n setObservers() {\n config.onChanged('mapApi', (mapApi) => {\n this.loadMapAPI(mapApi);\n this.toggleStyleOptions();\n this.toggleStyleMenu();\n });\n this.state.onChanged('currentTrack', (track) => {\n if (!this.api) {\n return;\n }\n this.api.clearMap();\n if (track) {\n uObserve.observe(track, 'positions', () => {\n this.displayTrack(track, false);\n if (track instanceof uTrack && !this.api.isPositionVisible(track.length - 1)) {\n console.log('last track position not visible');\n this.api.centerToPosition(track.length - 1);\n }\n this.toggleStyleOptions();\n });\n this.displayTrack(track, true);\n }\n this.toggleStyleOptions();\n });\n this.state.onChanged('history', () => {\n const history = this.state.history;\n if (this.api && history && !history.trackId) {\n if (history.mapApi) {\n config.mapApi = history.mapApi;\n } else {\n if (history.mapParams) {\n this.api.updateState(history.mapParams);\n } else {\n this.api.zoomToExtent();\n }\n this.state.history = null;\n }\n }\n });\n this.model.onMenuToggle = () => this.onMapResize();\n this.onChanged('speedVisible', (visible) => {\n if (visible) {\n this.model.altitudeVisible = false;\n }\n this.setTrackStyle();\n });\n this.onChanged('altitudeVisible', (visible) => {\n if (visible) {\n this.model.speedVisible = false;\n }\n this.setTrackStyle();\n });\n }\n\n /**\n * @param {uTrack} track Track to display\n * @param {boolean} update Should update map view\n */\n displayTrack(track, update) {\n this.state.jobStart();\n if (update && this.state.history && this.state.history.mapParams) {\n this.api.updateState(this.state.history.mapParams);\n update = false;\n }\n this.state.history = null;\n this.setTrackStyle();\n this.api.displayTrack(track, update)\n .finally(() => this.state.jobStop());\n }\n\n onMapResize() {\n if (this.api) {\n this.api.updateSize();\n }\n }\n\n toggleStyleOptions() {\n const track = this.state.currentTrack;\n this.speedEl.disabled = !track || !track.hasSpeeds || track.length <= 1;\n this.altitudeEl.disabled = !track || !track.hasAltitudes || track.length <= 1;\n }\n\n toggleStyleMenu() {\n if (config.mapApi === 'openlayers') {\n this.styleEl.style.display = 'block';\n } else {\n this.styleEl.style.display = 'none';\n }\n }\n\n setTrackStyle() {\n const track = this.state.currentTrack;\n if (!this.api || !track) {\n return;\n }\n if (this.model.speedVisible && track.hasSpeeds) {\n this.setSpeedStyle();\n } else if (this.model.altitudeVisible && track.hasAltitudes) {\n this.setAltitudeStyle();\n } else {\n this.api.setTrackDefaultStyle();\n }\n }\n\n setSpeedStyle() {\n const track = this.state.currentTrack;\n const scale = {\n minValue: 0,\n maxValue: track.maxSpeed,\n minColor: [ 0, 255, 0 ],\n maxColor: [ 255, 0, 0 ]\n };\n this.api.setTrackGradientStyle(track, 'speed', scale);\n }\n\n setAltitudeStyle() {\n const track = this.state.currentTrack;\n const scale = {\n minValue: track.minAltitude,\n maxValue: track.maxAltitude,\n minColor: [ 0, 255, 0 ],\n maxColor: [ 255, 0, 0 ]\n };\n this.api.setTrackGradientStyle(track, 'altitude', scale);\n }\n\n /**\n * Get popup html\n * @param {number} id Position index\n * @returns {HTMLDivElement}\n */\n getPopupElement(id) {\n const pos = this.state.currentTrack.positions[id];\n const count = this.state.currentTrack.length;\n const user = this.state.currentTrack.user;\n const isEditable = auth.user && (auth.isAdmin || auth.user.id === user.id);\n let date = '–––';\n let time = '–––';\n if (pos.timestamp > 0) {\n const dateTime = uUtils.getTimeString(new Date(pos.timestamp * 1000));\n date = dateTime.date;\n time = `${dateTime.time}${dateTime.zone}`;\n }\n let provider = '';\n if (pos.provider === 'gps') {\n provider = ` \"${$._('gps')}\"`;\n } else if (pos.provider === 'network') {\n provider = ` \"${$._('network')}\"`;\n }\n let editLink = '';\n if (isEditable) {\n editLink = `${$._('editposition')}`;\n }\n let stats = '';\n if (!this.state.showLatest) {\n stats =\n `
\n \"${$._('track')}\"
\n \"${$._('ttime')}\" ${$.getLocaleDuration(pos.totalSeconds)}
\n \"${$._('aspeed')}\" ${$.getLocaleSpeed(pos.totalSpeed, true)}
\n \"${$._('tdistance')}\" ${$.getLocaleDistanceMajor(pos.totalMeters, true)}
\n
`;\n }\n const html =\n `
\n
\"${$._('user')}\" ${uUtils.htmlEncode(pos.username)}
\n
\"${$._('track')}\" ${uUtils.htmlEncode(pos.trackname)}
\n
\n
\n ${(pos.hasComment()) ? `
${uUtils.htmlEncode(pos.comment).replace(/\\n/, '
')}
` : ''}\n ${(pos.hasImage()) ? `
\"image\"
` : ''}\n
\n \"${$._('time')}\" ${date}
\n \"${$._('time')}\" ${time}
\n ${(pos.speed !== null) ? `\"${$._('speed')}\"${$.getLocaleSpeed(pos.speed, true)}
` : ''}\n ${(pos.altitude !== null) ? `\"${$._('altitude')}\"${$.getLocaleAltitude(pos.altitude, true)}
` : ''}\n ${(pos.accuracy !== null) ? `\"${$._('accuracy')}\"${$.getLocaleAccuracy(pos.accuracy, true)}${provider}
` : ''}\n ${(pos.bearing !== null) ? `\"${$._('bearing')}\"${pos.bearing}°
` : ''}\n \"${$._('position')}\"${$.getLocaleCoordinates(pos)}
\n
${stats}
\n
${$._('pointof', id + 1, count)}
${editLink}
`;\n const node = document.createElement('div');\n node.setAttribute('id', 'popup');\n node.innerHTML = html;\n if (pos.hasImage()) {\n const image = node.querySelector('#pimage img');\n image.onclick = () => {\n const modal = new uDialog(`\"image\"`);\n const closeEl = modal.element.querySelector('#modal-close');\n closeEl.onclick = () => modal.destroy();\n modal.element.classList.add('image');\n modal.show();\n }\n }\n if (isEditable) {\n const edit = node.querySelector('#editposition');\n edit.onclick = () => {\n const vm = new PositionDialogModel(this.state, id);\n vm.init();\n }\n }\n return node;\n }\n\n /**\n * Get SVG marker path\n * @param {boolean} isLarge Large marker with hole if true\n * @return {string}\n */\n static getMarkerPath(isLarge) {\n const markerHole = 'M15,34.911c0,0,0.359-3.922,1.807-8.588c0.414-1.337,1.011-2.587,2.495-4.159' +\n 'c1.152-1.223,3.073-2.393,3.909-4.447c1.681-6.306-3.676-9.258-8.211-9.258c-4.536,0-9.893,2.952-8.211,9.258' +\n 'c0.836,2.055,2.756,3.225,3.91,4.447c1.484,1.572,2.08,2.822,2.495,4.159C14.64,30.989,15,34.911,15,34.911z M18,15.922' +\n 'c0,1.705-1.342,3.087-2.999,3.087c-1.657,0-3-1.382-3-3.087c0-1.704,1.343-3.086,3-3.086C16.658,12.836,18,14.218,18,15.922z';\n const marker = 'M14.999,34.911c0,0,0.232-1.275,1.162-4.848c0.268-1.023,0.652-1.98,1.605-3.184' +\n 'c0.742-0.937,1.975-1.832,2.514-3.404c1.082-4.828-2.363-7.088-5.281-7.088c-2.915,0-6.361,2.26-5.278,7.088' +\n 'c0.538,1.572,1.771,2.468,2.514,3.404c0.953,1.203,1.337,2.16,1.604,3.184C14.77,33.635,14.999,34.911,14.999,34.911z';\n return isLarge ? markerHole : marker;\n }\n\n /**\n * Get marker extra mark\n * @param {boolean} isLarge\n * @return {string}\n */\n static getMarkerExtra(isLarge) {\n const offset1 = isLarge ? 'M26.074,13.517' : 'M23.328,20.715';\n const offset2 = isLarge ? 'M28.232,10.942' : 'M25.486,18.141';\n return `\n `;\n }\n\n /**\n * Get inline SVG source\n * @param {string} fill\n * @param {boolean=} isLarge\n * @param {boolean=} isExtra\n * @return {string}\n */\n static getSvgSrc(fill, isLarge, isExtra) {\n const svg = `\n ${isExtra ? MapViewModel.getMarkerExtra(isLarge) : ''}`;\n return `data:image/svg+xml,${encodeURIComponent(svg)}`;\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $ } from '../src/initializer.js';\nimport ViewModel from './viewmodel.js';\nimport uAlert from './alert.js';\nimport uDialog from './dialog.js';\nimport uUtils from './utils.js';\n\nexport default class TrackDialogModel extends ViewModel {\n\n /**\n * @param {TrackViewModel} viewModel\n */\n constructor(viewModel) {\n super({\n onTrackDelete: null,\n onTrackUpdate: null,\n onCancel: null,\n trackname: ''\n });\n this.track = viewModel.state.currentTrack;\n this.trackVM = viewModel;\n this.model.onTrackDelete = () => this.onTrackDelete();\n this.model.onTrackUpdate = () => this.onTrackUpdate();\n this.model.onCancel = () => this.onCancel();\n }\n\n init() {\n const html = this.getHtml();\n this.dialog = new uDialog(html);\n this.dialog.show();\n this.bindAll(this.dialog.element);\n }\n\n /**\n * @return {string}\n */\n getHtml() {\n return `\n
${$._('editingtrack', `${uUtils.htmlEncode(this.track.name)}`)}
\n
\n
\n \n \n
\n \n \n
\n
`;\n }\n\n onTrackDelete() {\n if (uDialog.isConfirmed($._('trackdelwarn', uUtils.htmlEncode(this.track.name)))) {\n this.track.delete().then(() => {\n this.trackVM.onTrackDeleted();\n this.dialog.destroy();\n }).catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n }\n\n onTrackUpdate() {\n if (this.validate()) {\n this.track.setName(this.model.trackname);\n this.track.saveMeta()\n .then(() => this.dialog.destroy())\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n }\n\n onCancel() {\n this.dialog.destroy();\n }\n\n /**\n * Validate form\n * @return {boolean} True if valid\n */\n validate() {\n if (this.model.trackname === this.track.name) {\n return false;\n }\n if (!this.model.trackname) {\n uAlert.error($._('allrequired'));\n return false;\n }\n return true;\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $, auth, config } from './initializer.js';\nimport TrackDialogModel from './trackdialogmodel.js';\nimport ViewModel from './viewmodel.js';\nimport uAlert from './alert.js';\nimport uObserve from './observe.js';\nimport uPositionSet from './positionset.js';\nimport uSelect from './select.js';\nimport uTrack from './track.js';\nimport uUtils from './utils.js';\n\n/**\n * @class TrackViewModel\n */\nexport default class TrackViewModel extends ViewModel {\n\n /**\n * @param {uState} state\n */\n constructor(state) {\n super({\n /** @type {uTrack[]} */\n trackList: [],\n /** @type {string} */\n currentTrackId: '',\n /** @type {boolean} */\n showLatest: false,\n /** @type {boolean} */\n autoReload: false,\n /** @type {string} */\n inputFile: false,\n /** @type {string} */\n summary: false,\n // click handlers\n /** @type {function} */\n onReload: null,\n /** @type {function} */\n onExportGpx: null,\n /** @type {function} */\n onExportKml: null,\n /** @type {function} */\n onImportGpx: null,\n /** @type {function} */\n onTrackEdit: null\n });\n this.setClickHandlers();\n /** @type HTMLSelectElement */\n const listEl = document.querySelector('#track');\n this.importEl = document.querySelector('#input-file');\n this.editEl = this.getBoundElement('onTrackEdit');\n this.select = new uSelect(listEl);\n this.state = state;\n this.timerId = 0;\n }\n\n /**\n * @return {TrackViewModel}\n */\n init() {\n this.setObservers();\n this.bindAll();\n return this;\n }\n\n setObservers() {\n this.onChanged('trackList', (list) => { this.select.setOptions(list); });\n this.onChanged('currentTrackId', (listValue) => {\n this.onTrackSelect(listValue);\n });\n this.onChanged('inputFile', (file) => {\n if (file) { this.onImport(); }\n });\n this.onChanged('autoReload', (reload) => {\n this.autoReload(reload);\n });\n this.onChanged('showLatest', (showLatest) => {\n this.state.showLatest = showLatest;\n this.onReload(true);\n });\n this.state.onChanged('currentUser', (user) => {\n if (user) {\n this.loadTrackList();\n const isEditable = auth.user && (auth.isAdmin || auth.user.id === user.id);\n if (isEditable) {\n TrackViewModel.setMenuVisible(this.editEl, true);\n }\n } else {\n this.model.currentTrackId = '';\n this.model.trackList = [];\n TrackViewModel.setMenuVisible(this.editEl, false);\n }\n });\n this.state.onChanged('currentTrack', (track) => {\n this.renderSummary();\n if (track) {\n uObserve.observe(track, 'positions', () => {\n this.renderSummary();\n });\n }\n });\n this.state.onChanged('showAllUsers', (showAll) => {\n if (showAll) {\n this.loadAllUsersPosition();\n }\n });\n config.onChanged('interval', () => {\n if (this.timerId) {\n this.stopAutoReload();\n this.startAutoReload();\n }\n });\n this.state.onChanged('history', (history) => {\n if (history && !history.userId && history.trackId) {\n this.model.currentTrackId = history.trackId.toString();\n }\n });\n }\n\n setClickHandlers() {\n this.model.onReload = () => this.onReload();\n const exportCb = (type) => () => {\n if (this.state.currentTrack) {\n this.state.currentTrack.export(type);\n }\n };\n this.model.onExportGpx = exportCb('gpx');\n this.model.onExportKml = exportCb('kml');\n this.model.onImportGpx = () => this.importEl.click();\n this.model.onTrackEdit = () => this.showDialog();\n }\n\n /**\n * Reload or update track view\n * @param {boolean} clear Reload if true, update current track otherwise\n */\n onReload(clear = false) {\n if (this.state.showLatest) {\n if (this.state.showAllUsers) {\n this.loadAllUsersPosition();\n } else if (this.state.currentUser) {\n this.onUserLastPosition();\n }\n } else if (this.state.currentTrack instanceof uTrack) {\n this.onTrackUpdate(clear);\n } else if (this.state.currentTrack instanceof uPositionSet) {\n this.state.currentTrack = null;\n } else if (this.state.currentUser) {\n this.loadTrackList();\n }\n }\n\n /**\n * Handle import\n */\n onImport() {\n const form = this.importEl.parentElement;\n const sizeMax = form.elements['MAX_FILE_SIZE'].value;\n if (this.importEl.files && this.importEl.files.length === 1 && this.importEl.files[0].size > sizeMax) {\n uAlert.error($._('isizefailure', sizeMax));\n return;\n }\n if (!auth.isAuthenticated) {\n uAlert.error($._('notauthorized'));\n return;\n }\n this.state.jobStart();\n uTrack.import(form, auth.user)\n .then((trackList) => {\n if (trackList.length) {\n if (trackList.length > 1) {\n uAlert.toast($._('imultiple', trackList.length));\n }\n this.model.trackList = trackList.concat(this.model.trackList);\n this.model.currentTrackId = trackList[0].listValue;\n }\n })\n .catch((e) => uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e))\n .finally(() => {\n this.model.inputFile = '';\n this.state.jobStop();\n });\n }\n\n /**\n * Handle track change\n * @param {string} listValue Track list selected option\n */\n onTrackSelect(listValue) {\n /** @type {(uTrack|undefined)} */\n const track = this.model.trackList.find((_track) => _track.listValue === listValue);\n if (!track) {\n this.state.currentTrack = null;\n } else if (!track.isEqualTo(this.state.currentTrack)) {\n this.state.jobStart();\n track.fetchPositions().then(() => {\n console.log(`currentTrack id: ${track.id}, loaded ${track.length} positions`);\n this.state.currentTrack = track;\n if (this.model.showLatest) {\n this.model.showLatest = false;\n }\n })\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); })\n .finally(() => this.state.jobStop());\n }\n }\n\n /**\n * Handle track update\n * @param {boolean=} clear\n */\n onTrackUpdate(clear) {\n if (clear) {\n this.state.currentTrack.clear();\n }\n this.state.currentTrack.fetchPositions()\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n\n /**\n * Handle user last position request\n */\n onUserLastPosition() {\n this.state.currentUser.fetchLastPosition()\n .then((_track) => {\n if (_track) {\n if (!this.model.trackList.find((listItem) => listItem.listValue === _track.listValue)) {\n this.model.trackList.unshift(_track);\n }\n this.state.currentTrack = _track;\n this.model.currentTrackId = _track.listValue;\n }\n })\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n\n /**\n * Handle last position of all users request\n */\n loadAllUsersPosition() {\n this.state.jobStart();\n uPositionSet.fetchLatest()\n .then((_track) => {\n if (_track) {\n this.model.trackList = [];\n this.model.currentTrackId = '';\n this.state.currentTrack = _track;\n }\n })\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); })\n .finally(() => this.state.jobStop());\n }\n\n loadTrackList() {\n this.state.jobStart();\n uTrack.fetchList(this.state.currentUser)\n .then((_tracks) => {\n this.model.trackList = _tracks;\n if (_tracks.length) {\n if (this.state.showLatest) {\n this.onUserLastPosition();\n } else if (this.state.history) {\n this.model.currentTrackId = this.state.history.trackId.toString();\n } else {\n this.model.currentTrackId = _tracks[0].listValue;\n }\n } else {\n this.model.currentTrackId = '';\n }\n })\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); })\n .finally(() => this.state.jobStop());\n }\n\n showDialog() {\n const vm = new TrackDialogModel(this);\n vm.init();\n }\n\n onTrackDeleted() {\n let index = this.model.trackList.indexOf(this.state.currentTrack);\n this.state.currentTrack = null;\n if (index !== -1) {\n this.model.trackList.splice(index, 1);\n if (this.model.trackList.length) {\n if (index >= this.model.trackList.length) {\n index = this.model.trackList.length - 1;\n }\n this.model.currentTrackId = this.model.trackList[index].listValue;\n } else {\n this.model.currentTrackId = '';\n }\n }\n }\n\n /**\n * @param {boolean} start\n */\n autoReload(start) {\n if (start) {\n this.startAutoReload();\n } else {\n this.stopAutoReload();\n }\n }\n\n startAutoReload() {\n this.timerId = setInterval(() => this.onReload(), config.interval * 1000);\n }\n\n stopAutoReload() {\n clearInterval(this.timerId);\n this.timerId = 0;\n }\n\n /**\n * @param {HTMLElement} el\n * @param {boolean} visible\n */\n static setMenuVisible(el, visible) {\n if (el) {\n if (visible) {\n el.classList.remove('menu-hidden');\n } else {\n el.classList.add('menu-hidden');\n }\n }\n }\n\n renderSummary() {\n const track = this.state.currentTrack;\n if (!track || !track.hasPositions) {\n this.model.summary = '';\n return;\n }\n const last = track.positions[track.length - 1];\n\n if (this.state.showLatest) {\n const today = new Date();\n const date = new Date(last.timestamp * 1000);\n const dateTime = uUtils.getTimeString(date);\n const dateString = (date.toDateString() !== today.toDateString()) ? `${dateTime.date}
` : '';\n const timeString = `${dateTime.time}${dateTime.zone}`;\n this.model.summary = `\n
${$._('latest')}:
\n ${dateString}\n ${timeString}`;\n } else {\n let summary = `\n
${$._('summary')}
\n
\"${$._('tdistance')}\" ${$.getLocaleDistanceMajor(last.totalMeters, true)}
\n
\"${$._('ttime')}\" ${$.getLocaleDuration(last.totalSeconds)}
`;\n if (track.hasSpeeds) {\n summary += `
\"${$._('speed')}\" ${$.getLocaleSpeed(track.maxSpeed, true)}
`;\n }\n if (track.hasAltitudes) {\n let altitudes = `${$.getLocaleAltitude(track.maxAltitude, true)}`;\n if (track.minAltitude !== track.maxAltitude) {\n altitudes = `${$.getLocaleAltitude(track.minAltitude)}–${altitudes}`;\n }\n summary += `
\"${$._('altitude')}\" ${altitudes}
`;\n }\n this.model.summary = summary;\n }\n }\n\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $, auth, config } from './initializer.js';\nimport ViewModel from './viewmodel.js';\nimport uAlert from './alert.js';\nimport uDialog from './dialog.js';\nimport uUser from './user.js';\nimport uUtils from './utils.js';\n\nexport default class UserDialogModel extends ViewModel {\n\n /**\n * @param {UserViewModel} viewModel\n * @param {string} type\n */\n constructor(viewModel, type) {\n super({\n onUserDelete: null,\n onUserUpdate: null,\n onPassChange: null,\n onUserAdd: null,\n onCancel: null,\n passVisibility: false,\n login: null,\n password: null,\n password2: null,\n oldPassword: null,\n admin: false\n });\n this.user = viewModel.state.currentUser;\n this.type = type;\n this.userVM = viewModel;\n this.model.onUserDelete = () => this.onUserDelete();\n this.model.onUserUpdate = () => this.onUserUpdate();\n this.model.onPassChange = () => this.onPassChange();\n this.model.onUserAdd = () => this.onUserAdd();\n this.model.onCancel = () => this.onCancel();\n }\n\n init() {\n const html = this.getHtml();\n this.dialog = new uDialog(html);\n this.dialog.show();\n this.bindAll(this.dialog.element);\n const passInput = this.getBoundElement('passInput');\n if (passInput) {\n this.onChanged('passVisibility', () => {\n if (passInput.style.display === 'none') {\n passInput.style.display = 'block';\n } else {\n passInput.style.display = 'none';\n }\n });\n }\n }\n\n onUserDelete() {\n if (uDialog.isConfirmed($._('userdelwarn', uUtils.htmlEncode(this.user.login)))) {\n this.user.delete().then(() => {\n this.userVM.onUserDeleted();\n this.dialog.destroy();\n }).catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n }\n\n onUserUpdate() {\n if (this.validate()) {\n const password = this.model.passVisibility ? this.model.password : null;\n this.user.modify(this.model.admin, password)\n .then(() => this.dialog.destroy())\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n }\n\n onPassChange() {\n this.model.passVisibility = true;\n if (this.validate()) {\n auth.user.setPassword(this.model.password, this.model.oldPassword)\n .then(() => this.dialog.destroy())\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n }\n\n onUserAdd() {\n this.model.passVisibility = true;\n if (this.validate()) {\n uUser.add(this.model.login, this.model.password, this.model.admin).then((user) => {\n this.userVM.onUserAdded(user);\n this.dialog.destroy();\n }).catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n }\n }\n\n onCancel() {\n this.dialog.destroy();\n }\n\n /**\n * Validate form\n * @return {boolean} True if valid\n */\n validate() {\n if (this.type === 'add') {\n if (!this.model.login) {\n uAlert.error($._('allrequired'));\n return false;\n }\n } else if (this.type === 'pass') {\n if (!this.model.oldPassword) {\n uAlert.error($._('allrequired'));\n return false;\n }\n }\n if (this.model.passVisibility) {\n if (!this.model.password || !this.model.password2) {\n uAlert.error($._('allrequired'));\n return false;\n }\n if (this.model.password !== this.model.password2) {\n uAlert.error($._('passnotmatch'));\n return false;\n }\n if (!config.validPassStrength(this.model.password)) {\n uAlert.error($.getLocalePassRules());\n return false;\n }\n }\n return true;\n }\n\n /**\n * @return {string}\n */\n getHtml() {\n let deleteButton = '';\n let header = '';\n let observer;\n let fields;\n switch (this.type) {\n case 'add':\n observer = 'onUserAdd';\n header = `\n `;\n fields = `\n \n \n \n \n `;\n break;\n case 'edit':\n observer = 'onUserUpdate';\n deleteButton = `\n
${$._('editinguser', `${uUtils.htmlEncode(this.user.login)}`)}
\n
`;\n fields = `\n
\n
\n \n \n \n \n
\n \n `;\n break;\n case 'pass':\n observer = 'onPassChange';\n fields = `\n \n \n \n \n `;\n break;\n default:\n throw new Error(`Unknown dialog type: ${this.type}`);\n }\n return `${deleteButton}\n
\n ${header}\n ${fields}\n
\n \n \n
\n
`;\n }\n\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $, auth } from './initializer.js';\nimport UserDialogModel from './userdialogmodel.js';\nimport ViewModel from './viewmodel.js';\nimport uAlert from './alert.js';\nimport uSelect from './select.js';\nimport uUser from './user.js';\n\n/**\n * @class UserViewModel\n */\nexport default class UserViewModel extends ViewModel {\n\n /**\n * @param {uState} state\n */\n constructor(state) {\n super({\n /** @type {uUser[]} */\n userList: [],\n /** @type {string} */\n currentUserId: '0',\n // click handlers\n /** @type {function} */\n onUserEdit: null,\n /** @type {function} */\n onUserAdd: null,\n /** @type {function} */\n onPasswordChange: null\n });\n this.setClickHandlers();\n /** @type HTMLSelectElement */\n const listEl = document.querySelector('#user');\n this.editEl = this.getBoundElement('onUserEdit');\n this.select = new uSelect(listEl, $._('suser'), `- ${$._('allusers')} -`);\n this.state = state;\n }\n\n setClickHandlers() {\n this.model.onUserEdit = () => this.showDialog('edit');\n this.model.onUserAdd = () => this.showDialog('add');\n this.model.onPasswordChange = () => this.showDialog('pass');\n }\n\n /**\n * @return {UserViewModel}\n */\n init() {\n this.setObservers(this.state);\n this.bindAll();\n uUser.fetchList()\n .then((_users) => {\n this.model.userList = _users;\n if (_users.length) {\n let userId = _users[0].listValue;\n if (this.state.history) {\n userId = this.state.history.userId.toString();\n } else if (auth.isAuthenticated) {\n const user = this.model.userList.find((_user) => _user.listValue === auth.user.listValue);\n if (user) {\n userId = user.listValue;\n }\n }\n this.model.currentUserId = userId;\n }\n })\n .catch((e) => { uAlert.error(`${$._('actionfailure')}\\n${e.message}`, e); });\n return this;\n }\n\n /**\n * @param {uState} state\n */\n setObservers(state) {\n this.onChanged('userList', (list) => {\n this.select.setOptions(list);\n });\n this.onChanged('currentUserId', (listValue) => {\n this.state.showAllUsers = listValue === uSelect.allValue;\n this.state.currentUser = this.model.userList.find((_user) => _user.listValue === listValue) || null;\n UserViewModel.setMenuVisible(this.editEl, this.state.currentUser !== null && !this.state.currentUser.isEqualTo(auth.user));\n });\n state.onChanged('showLatest', (showLatest) => {\n if (showLatest) {\n this.select.showAllOption();\n } else {\n this.select.hideAllOption();\n }\n });\n state.onChanged('history', (history) => {\n if (history && history.userId) {\n this.model.currentUserId = history.userId.toString();\n }\n });\n }\n\n showDialog(action) {\n const vm = new UserDialogModel(this, action);\n vm.init();\n }\n\n /**\n * @param {uUser} newUser\n */\n onUserAdded(newUser) {\n this.model.userList.push(newUser);\n this.model.userList.sort((a, b) => ((a.login > b.login) ? 1 : -1));\n }\n\n onUserDeleted() {\n let index = this.model.userList.indexOf(this.state.currentUser);\n this.state.currentUser = null;\n if (index !== -1) {\n this.model.userList.splice(index, 1);\n if (this.model.userList.length) {\n if (index >= this.model.userList.length) {\n index = this.model.userList.length - 1;\n }\n this.model.currentUserId = this.model.userList[index].listValue;\n } else {\n this.model.currentUserId = '0';\n }\n }\n }\n\n /**\n * @param {HTMLElement} el\n * @param {boolean} visible\n */\n static setMenuVisible(el, visible) {\n if (el) {\n if (visible) {\n el.classList.remove('menu-hidden');\n } else {\n el.classList.add('menu-hidden');\n }\n }\n }\n\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2020 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $, config } from './initializer.js';\nimport uTrack from './track.js';\nimport uUtils from './utils.js';\n\n/**\n * @typedef {Object} PermalinkState\n * @property {string} title\n * @property {number|null} userId\n * @property {number|null} trackId\n * @property {string|null} mapApi\n * @property {MapParams|null} mapParams\n */\n\nexport default class uPermalink {\n\n /**\n * @param {uState} state\n */\n constructor(state) {\n this.state = state;\n this.skipPush = false;\n }\n\n /**\n * @return {uPermalink}\n */\n init() {\n this.state.onChanged('mapParams', () => this.pushState());\n window.addEventListener('popstate', (event) => {\n if (event.state === null) {\n return;\n }\n const track = this.state.currentTrack;\n const user = this.state.currentUser;\n // remove elements that won't be updated\n const state = {\n title: event.state.title,\n userId: (user && user.id === event.state.userId) ? null : event.state.userId,\n trackId: (track && track.id === event.state.trackId) ? null : event.state.trackId,\n mapApi: config.mapApi === event.state.mapApi ? null : event.state.mapApi,\n mapParams: event.state.mapParams\n }\n this.onPop(state);\n this.skipPush = true;\n });\n return this;\n }\n\n /**\n * @return {Promise}\n */\n static parseHash() {\n return uPermalink.parse(window.location.hash);\n }\n\n /**\n * Parse URL hash string\n * @param {string} hash\n * @return {Promise} Permalink state or null if not parsable\n */\n static parse(hash) {\n const parts = hash.replace('#', '').split('/');\n parts.reverse();\n const trackId = parseInt(parts.pop());\n if (!isNaN(trackId)) {\n let mapApi = 'openlayers';\n if (parts.pop() === 'g') {\n mapApi = 'gmaps';\n }\n let mapParams = null;\n if (parts.length >= 4) {\n mapParams = {};\n mapParams.center = [ parseFloat(parts.pop()), parseFloat(parts.pop()) ];\n mapParams.zoom = parseFloat(parts.pop());\n mapParams.rotation = parseFloat(parts.pop());\n }\n return uTrack.getMeta(trackId)\n .then((meta) => {\n const userId = meta.userId;\n const title = meta.name;\n return { title, userId, trackId, mapApi, mapParams };\n })\n .catch((e) => {\n console.log(`Ignoring unknown track ${trackId} ${e}`);\n return null;\n });\n }\n return Promise.resolve(null);\n }\n\n /**\n * @param {?PermalinkState} state\n */\n onPop(state) {\n console.log('popState: #' + (state ? `${state.trackId}/${state.mapApi}/${state.mapParams}` : ''));\n this.state.history = state;\n if (state) {\n document.title = `${$._('title')} ${state.title}`;\n }\n }\n\n /**\n * Push state into browser history\n */\n pushState() {\n if (this.skipPush) {\n this.skipPush = false;\n return;\n }\n if (this.state.currentUser === null || this.state.currentTrack === null) {\n return;\n }\n const state = this.getState();\n const prevState = window.history.state;\n if (!prevState || !uUtils.isDeepEqual(prevState, state)) {\n const hash = uPermalink.getHash(state);\n console.log(`pushState: ${hash} => ${state}`);\n window.history.pushState(state, state.title, hash);\n document.title = `${$._('title')} ${state.title}`;\n }\n }\n\n getState() {\n return {\n title: this.state.currentTrack.name,\n userId: this.state.currentUser.id,\n trackId: this.state.currentTrack.id,\n mapApi: config.mapApi,\n mapParams: this.state.mapParams\n };\n }\n\n /**\n * Get link hash\n * @param {PermalinkState} state\n * @return {string}\n */\n static getHash(state) {\n let hash = `#${state.trackId}/${state.mapApi.charAt(0)}`;\n if (state.mapParams) {\n hash += `/${state.mapParams.center[0]}/${state.mapParams.center[1]}`;\n hash += `/${state.mapParams.zoom}/${state.mapParams.rotation}`;\n }\n return hash;\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2020 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\n\nimport uAlert from './alert.js';\n\nexport default class uSpinner {\n\n constructor(state) {\n this.spinner = null;\n this.state = state;\n }\n\n init() {\n this.state.onChanged('activeJobs', (jobs) => {\n if (jobs > 0) {\n if (!this.spinner) {\n this.spinner = uAlert.spinner();\n }\n } else if (this.spinner) {\n this.spinner.destroy();\n this.spinner = null;\n }\n });\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport uObserve from './observe.js';\n\n/**\n * @class\n * @property {?uTrack} currentTrack\n * @property {?uUser} currentUser\n * @property {boolean} showLatest\n * @property {boolean} showAllUsers\n * @property {number} activeJobs\n * @property {?MapParams} mapParams\n * @property {?PermalinkState} history\n */\nexport default class uState {\n\n constructor() {\n this.currentTrack = null;\n this.currentUser = null;\n this.showLatest = false;\n this.showAllUsers = false;\n this.activeJobs = 0;\n this.mapParams = null;\n this.history = null;\n }\n\n jobStart() {\n this.activeJobs++;\n }\n\n jobStop() {\n this.activeJobs--;\n }\n\n /**\n * @param {string} property\n * @param {ObserveCallback} callback\n */\n onChanged(property, callback) {\n uObserve.observe(this, property, callback);\n }\n}\n","/*\n * μlogger\n *\n * Copyright(C) 2019 Bartek Fabiszewski (www.fabiszewski.net)\n *\n * This is free software; you can redistribute it and/or modify it under\n * the terms of the GNU General Public License as published by\n * the Free Software Foundation; either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n * General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program; if not, see .\n */\n\nimport { lang as $, config, initializer, uInitializer } from './initializer.js';\nimport ChartViewModel from './chartviewmodel.js';\nimport ConfigViewModel from './configviewmodel.js';\nimport MainViewModel from './mainviewmodel.js';\nimport MapViewModel from './mapviewmodel.js';\nimport TrackViewModel from './trackviewmodel.js';\nimport UserViewModel from './userviewmodel.js';\nimport uAlert from './alert.js';\nimport uPermalink from './permalink.js';\nimport uSpinner from './spinner.js';\nimport uState from './state.js';\n\nconst domReady = uInitializer.waitForDom();\nconst initReady = initializer.initialize();\nconst initLink = uPermalink.parseHash();\n\nPromise.all([ domReady, initReady, initLink ])\n .then((result) => {\n start(result[2]);\n })\n .catch((msg) => uAlert.error(`${$._('actionfailure')}\\n${msg}`));\n\n/**\n * @param {?Object} linkState\n */\nfunction start(linkState) {\n const state = new uState();\n const permalink = new uPermalink(state);\n const spinner = new uSpinner(state);\n const mainVM = new MainViewModel(state);\n const userVM = new UserViewModel(state);\n const trackVM = new TrackViewModel(state);\n const mapVM = new MapViewModel(state);\n const chartVM = new ChartViewModel(state);\n const configVM = new ConfigViewModel(state);\n permalink.init().onPop(linkState);\n spinner.init();\n mainVM.init();\n userVM.init();\n trackVM.init();\n mapVM.init().loadMapAPI(config.mapApi);\n chartVM.init();\n configVM.init();\n\n mapVM.onChanged('markerOver', (id) => {\n if (id !== null) {\n chartVM.onPointOver(id);\n } else {\n chartVM.onPointOut();\n }\n });\n mapVM.onChanged('markerSelect', (id) => {\n if (id !== null) {\n chartVM.onPointSelect(id);\n } else {\n chartVM.onPointUnselect();\n }\n });\n chartVM.onChanged('pointSelected', (id) => {\n if (id !== null) {\n mapVM.api.animateMarker(id);\n }\n });\n}\n"],"names":["inProgress","dataWebpackPrefix","module","exports","root","this","define","Chartist","returnExportsGlobal","axisDefaults","axisTitle","axisClass","offset","x","y","textAnchor","flipTitle","defaultOptions","axisX","axisY","getTitle","title","Function","getClasses","classes","plugins","ctAxisTitle","options","extend","chart","on","data","Error","xPos","yPos","chartPadding","normalizePadding","axisLength","left","top","position","Svg","addClass","text","attr","svg","append","transform","factory","version","globalRoot","window","document","namespaces","xmlns","xhtml","xlink","ct","noop","n","alphaNumerate","String","fromCharCode","target","i","source","sourceProp","arguments","length","prop","Array","replaceAll","str","subStr","newSubStr","replace","RegExp","ensureUnit","value","unit","quantity","input","match","exec","undefined","querySelector","query","Node","times","apply","sum","previous","current","mapMultiply","factor","num","mapAdd","addend","serialMap","arr","cb","result","Math","max","map","e","forEach","index","args","roundWithPrecision","digits","precision","pow","round","escapingMap","serialize","JSON","stringify","Object","keys","reduce","key","deserialize","parse","createSvg","container","width","height","className","prototype","slice","call","querySelectorAll","filter","getAttributeNS","removeChild","_node","style","appendChild","normalizeData","reverse","multi","labelCount","output","raw","normalized","series","getDataArray","every","labels","push","reverseData","safeHasProperty","object","property","hasOwnProperty","isDataHoleValue","isNaN","recursiveConvert","multiValue","getNumberOrUndefined","padding","fallback","right","bottom","getMetaData","meta","orderOfMagnitude","floor","log","abs","LN10","projectLength","bounds","range","getAvailableHeight","getHighLow","dimension","highLow","high","toUpperCase","Number","MAX_VALUE","low","findHigh","findLow","recursiveHighLow","referenceValue","min","isNumeric","isFinite","isFalseyButZero","isMultiValue","getMultiValue","rho","gcd","p","q","f","divisor","x1","x2","getBounds","scaleMinSpace","onlyInteger","newMin","newMax","optimizationCounter","valueRange","oom","step","ceil","numberOfSteps","scaleUp","smallestFactor","EPSILON","safeIncrement","increment","values","polarToCartesian","centerX","centerY","radius","angleInDegrees","angleInRadians","PI","cos","sin","createChartRect","fallbackPadding","hasAxis","yAxisOffset","xAxisOffset","normalizedPadding","chartRect","y1","y2","createGrid","axis","group","eventEmitter","positionalData","units","pos","counterUnits","gridElement","elem","join","emit","type","element","createGridBackground","gridGroup","gridBackground","createLabel","axisOffset","labelOffset","useForeignObject","labelElement","len","content","createElement","setAttribute","innerText","foreignObject","getSeriesOption","name","seriesOptions","optionsProvider","responsiveOptions","currentOptions","baseOptions","mediaQueryListeners","updateCurrentOptions","mediaEvent","previousOptions","matchMedia","matches","removeMediaQueryListeners","mql","removeListener","addListener","getCurrentOptions","splitIntoSegments","pathCoordinates","valueData","increasingX","fillHoles","segments","hole","global","Interpolation","none","path","Path","currX","currY","currData","move","line","simple","d","prevX","prevY","prevData","curve","cardinal","tension","t","c","paths","segment","z","iLen","monotoneCubic","xs","ys","ms","ds","dys","dxs","postpone","EventEmitter","handlers","addEventHandler","event","handler","removeEventHandler","splice","indexOf","starHandler","listToArray","list","properties","superProtoOverride","superProto","Class","proto","create","cloneDefinitions","constr","instance","fn","constructor","super","getOwnPropertyNames","propName","defineProperty","getOwnPropertyDescriptor","update","override","initializeTimeoutId","createChart","detach","clearTimeout","removeEventListener","resizeListener","off","initialize","addEventListener","bind","plugin","Base","supportsForeignObject","isSupported","supportsAnimations","__chartist__","setTimeout","attributes","parent","insertFirst","Element","createElementNS","firstChild","insertBefore","ns","getAttribute","namespacedAttribute","split","setAttributeNS","parentNode","SVGElement","node","nodeName","selector","foundNode","foundNodes","List","getNode","innerHTML","fnObj","createTextNode","empty","remove","newElement","replaceChild","trim","names","concat","self","removeClass","removedClasses","removeAllClasses","getBoundingClientRect","animate","animations","guided","attribute","createAnimate","animationDefinition","timeout","easing","attributeProperties","Easing","begin","dur","calcMode","keySplines","keyTimes","fill","from","attributeName","beginElement","err","to","params","feature","implementation","hasFeature","easingCubicBeziers","easeInSine","easeOutSine","easeInOutSine","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","easeInExpo","easeOutExpo","easeInOutExpo","easeInCirc","easeOutCirc","easeInOutCirc","easeInBack","easeOutBack","easeInOutBack","SvgList","nodeList","svgElements","prototypeProperty","elementDescriptions","m","l","a","accuracy","command","pathElements","relative","pathElement","toLowerCase","forEachParam","pathElementIndex","paramName","paramIndex","SvgPath","close","count","arc","rx","ry","xAr","lAf","sf","chunks","pop","elements","chunk","shift","description","spliceArgs","accuracyMultiplier","scale","translate","transformFnc","transformed","clone","splitByCommand","joinedPath","j","axisUnits","dir","rectStart","rectEnd","rectOffset","Axis","ticks","gridOffset","createGridAndLabels","labelGroup","chartOptions","axisOptions","projectedValues","projectValue","labelValues","labelInterpolationFnc","projectedValue","labelLength","showGrid","classNames","grid","showLabel","label","AutoScaleAxis","axisUnit","FixedScaleAxis","sort","b","stepLength","StepAxis","calc","stretch","showLine","showPoint","showArea","areaBase","lineSmooth","showGridBackground","fullWidth","point","area","vertical","horizontal","start","end","seriesGroup","seriesIndex","seriesElement","pathData","valueIndex","seriesMeta","areaBaseProjected","pathSegment","solidPathSegments","firstElement","lastElement","areaPath","Line","seriesBarDistance","stackBars","stackMode","horizontalBars","distributeSeries","bar","serialSums","prev","curr","valueAxis","labelAxisTicks","labelAxis","zeroPoint","stackedBarValues","periodHalfLength","biPol","projected","previousStack","labelAxisValueIndex","positions","metaData","Bar","chartPie","chartDonut","slicePie","sliceDonut","sliceDonutSolid","startAngle","total","donut","donutSolid","donutWidth","labelPosition","labelDirection","ignoreEmptyValues","determineAnchorPosition","center","direction","toTheRight","labelsGroup","labelRadius","totalDataSum","seriesGroups","previousValue","currentValue","hasSingleValInSeries","val","endAngle","overlappigStartAngle","innerStart","innerEnd","donutSolidRadius","pathClassName","strokeWidth","rawValue","interpolatedValue","dx","dy","Pie","require","isArray","entryVirtual","find","getIteratorMethod","FunctionPrototype","it","own","ArrayPrototype","StringPrototype","core","replacer","space","Map","trunc","isSafeInteger","P","D","desc","sham","entries","getPrototypeOf","setPrototypeOf","Promise","Reflect","construct","get","Set","Symbol","WrappedWellKnownSymbolModule","TypeError","isObject","Constructor","toObject","callWithSafeIterationClosing","isArrayIteratorMethod","toLength","createProperty","getIterator","arrayLike","iterator","next","O","C","argumentsLength","mapfn","mapping","iteratorMethod","done","toIndexedObject","toAbsoluteIndex","createMethod","IS_INCLUDES","$this","el","fromIndex","includes","IndexedObject","arraySpeciesCreate","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","callbackfn","that","specificCreate","boundFunction","some","findIndex","filterReject","fails","wellKnownSymbol","V8_VERSION","SPECIES","METHOD_NAME","array","foo","Boolean","argument","method","insertionSort","comparefn","merge","llength","rlength","lindex","rindex","mergeSort","middle","originalArray","arraySpeciesConstructor","anObject","iteratorClose","ENTRIES","error","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","SKIP_CLOSING","ITERATION_SUPPORT","toString","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","CORRECT_ARGUMENTS","tag","tryGet","callee","aFunction","wasDeleted","collection","remover","allDeleted","k","iterate","mapFn","nextItem","A","redefineAll","anInstance","defineIterator","setSpecies","DESCRIPTORS","fastKey","InternalStateModule","setInternalState","set","internalStateGetterFor","getterFor","getConstructor","wrapper","CONSTRUCTOR_NAME","ADDER","iterable","first","last","size","AS_ENTRIES","getInternalState","state","entry","getEntry","removed","clear","has","add","setStrong","ITERATOR_NAME","getInternalCollectionState","getInternalIteratorState","iterated","kind","$","InternalMetadataModule","createNonEnumerableProperty","setToStringTag","common","IS_WEAK","NativeConstructor","NativePrototype","exported","KEY","IS_ADDER","configurable","enable","forced","F","IteratorPrototype","createPropertyDescriptor","Iterators","returnThis","IteratorConstructor","NAME","definePropertyModule","bitmap","enumerable","writable","toPropertyKey","propertyKey","createIteratorConstructor","redefine","IS_PURE","IteratorsCore","BUGGY_SAFARI_ITERATORS","KEYS","VALUES","Iterable","DEFAULT","IS_SET","FORCED","CurrentIteratorPrototype","methods","getIterationMethod","KIND","defaultIterator","IterablePrototype","INCORRECT_VALUES_NAME","nativeIterator","anyNativeIterator","wrappedWellKnownSymbolModule","EXISTS","CSSRuleList","CSSStyleDeclaration","CSSValueList","ClientRectList","DOMRectList","DOMStringList","DOMTokenList","DataTransferItemList","FileList","HTMLAllCollection","HTMLCollection","HTMLFormElement","HTMLSelectElement","MediaList","MimeTypeArray","NamedNodeMap","NodeList","PaintRequestList","Plugin","PluginArray","SVGLengthList","SVGNumberList","SVGPathSegList","SVGPointList","SVGStringList","SVGTransformList","SourceBufferList","StyleSheetList","TextTrackCueList","TextTrackList","TouchList","firefox","UA","test","userAgent","Pebble","classof","process","getBuiltIn","Deno","versions","v8","webkit","CONSTRUCTOR","isForced","wrapConstructor","Wrapper","USE_NATIVE","VIRTUAL_PROTOTYPE","sourceProperty","targetProperty","nativeProperty","resultProperty","descriptor","TARGET","GLOBAL","STATIC","stat","PROTO","nativeSource","targetPrototype","noTargetGet","wrap","real","isExtensible","preventExtensions","factories","argsLength","partArgs","variable","namespace","usingIterator","check","globalThis","hasOwn","console","propertyIsEnumerable","store","functionToString","inspectSource","hiddenKeys","getOwnPropertyNamesModule","getOwnPropertyNamesExternalModule","uid","FREEZING","REQUIRED","METADATA","id","setMetadata","objectID","weakData","getWeakData","onFreeze","NATIVE_WEAK_MAP","objectHas","shared","sharedKey","OBJECT_ALREADY_INITIALIZED","WeakMap","wmget","wmhas","wmset","metadata","facade","STATE","enforce","arg","replacement","detection","normalize","POLYFILL","NATIVE","string","USE_SYMBOL_AS_UID","$Symbol","Result","stopped","unboundFunction","iterFn","IS_ITERATOR","INTERRUPTED","stop","condition","callFn","innerResult","innerError","PrototypeOfArrayIteratorPrototype","arrayIterator","NEW_ITERATOR_PROTOTYPE","insert","updateFn","insertFn","flush","head","notify","toggle","promise","then","macrotask","IS_IOS","IS_IOS_PEBBLE","IS_WEBOS_WEBKIT","IS_NODE","MutationObserver","WebKitMutationObserver","queueMicrotaskDescriptor","queueMicrotask","domain","exit","enter","resolve","nextTick","observe","characterData","task","getOwnPropertySymbols","symbol","url","URL","searchParams","pathname","toJSON","href","URLSearchParams","username","host","hash","PromiseCapability","reject","$$resolve","$$reject","activeXDocument","defineProperties","enumBugKeys","html","documentCreateElement","IE_PROTO","EmptyConstructor","scriptTag","LT","NullProtoObjectViaActiveX","write","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","display","src","contentWindow","open","Properties","objectKeys","IE8_DOM_DEFINE","$defineProperty","Attributes","propertyIsEnumerableModule","$getOwnPropertyDescriptor","$getOwnPropertyNames","windowNames","getWindowNames","internalObjectKeys","CORRECT_PROTOTYPE_GETTER","ObjectPrototype","$propertyIsEnumerable","NASHORN_BUG","V","aPossiblePrototype","setter","CORRECT_SETTER","__proto__","TO_ENTRIES","pref","valueOf","newPromiseCapability","promiseCapability","unsafe","TAG","SET_METHOD","setGlobal","SHARED","mode","copyright","defaultConstructor","S","toInteger","requireObjectCoercible","CONVERT_TO_STRING","second","charCodeAt","charAt","codeAt","whitespaces","whitespace","ltrim","rtrim","location","defer","channel","port","setImmediate","clearImmediate","MessageChannel","Dispatch","counter","queue","ONREADYSTATECHANGE","run","runner","listener","post","postMessage","protocol","now","port2","port1","onmessage","importScripts","integer","isSymbol","ordinaryToPrimitive","TO_PRIMITIVE","exoticToPrim","toPrimitive","postfix","random","NATIVE_SYMBOL","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","$AggregateError","errors","message","errorsArray","AggregateError","arrayMethodHasSpeciesSupport","IS_CONCAT_SPREADABLE","MAX_SAFE_INTEGER","MAXIMUM_ALLOWED_INDEX_EXCEEDED","IS_CONCAT_SPREADABLE_SUPPORT","SPECIES_SUPPORT","isConcatSpreadable","spreadable","E","$filter","$find","addToUnscopables","FIND","SKIPS_HOLES","checkCorrectnessOfIteration","$indexOf","arrayMethodIsStrict","nativeIndexOf","NEGATIVE_ZERO","STRICT_METHOD","searchElement","ARRAY_ITERATOR","Arguments","$map","HAS_SPECIES_SUPPORT","nativeSlice","fin","internalSort","FF","IE_OR_EDGE","V8","WEBKIT","nativeSort","FAILS_ON_UNDEFINED","FAILS_ON_NULL","STABLE_SORT","code","chr","v","itemsLength","items","arrayLength","getSortCompare","MAXIMUM_ALLOWED_LENGTH_EXCEEDED","deleteCount","insertCount","actualDeleteCount","actualStart","$stringify","re","hi","fix","collectionStrong","init","isInteger","number","$entries","nativeGetOwnPropertyDescriptor","FAILS_ON_PRIMITIVES","nativeGetPrototypeOf","nativeKeys","newPromiseCapabilityModule","perform","allSettled","capability","promiseResolve","remaining","alreadyCalled","status","reason","PROMISE_ANY_ERROR","any","alreadyResolved","alreadyRejected","NativePromise","speciesConstructor","onFinally","isFunction","Internal","OwnPromiseCapability","PromiseWrapper","nativeThen","microtask","hostReportErrors","IS_BROWSER","PROMISE","getInternalPromiseState","NativePromisePrototype","PromiseConstructor","PromiseConstructorPrototype","newGenericPromiseCapability","DISPATCH_EVENT","createEvent","dispatchEvent","NATIVE_REJECTION_EVENT","PromiseRejectionEvent","UNHANDLED_REJECTION","SUBCLASSING","PROMISE_CONSTRUCTOR_SOURCE","GLOBAL_CORE_JS_PROMISE","FakePromise","INCORRECT_ITERATION","all","isThenable","isReject","notified","chain","reactions","ok","exited","reaction","fail","rejection","onHandleUnhandled","onUnhandled","initEvent","isUnhandled","unwrap","internalReject","internalResolve","executor","onFulfilled","onRejected","r","$promiseResolve","race","nativeConstruct","NEW_TARGET_BUG","ARGS_BUG","Target","newTarget","$args","isDataDescriptor","getOwnPropertyDescriptorModule","receiver","STRING_ITERATOR","$trim","forcedStringTrimMethod","defineWellKnownSymbol","$toString","nativeObjectCreate","getOwnPropertyNamesExternal","getOwnPropertySymbolsModule","$forEach","HIDDEN","SYMBOL","nativeDefineProperty","nativeGetOwnPropertyNames","nativePropertyIsEnumerable","AllSymbols","ObjectPrototypeSymbols","StringToSymbolRegistry","SymbolToStringRegistry","QObject","USE_SETTER","findChild","setSymbolDescriptor","ObjectPrototypeDescriptor","$defineProperties","$getOwnPropertySymbols","IS_OBJECT_PROTOTYPE","keyFor","sym","useSetter","useSimple","$replacer","collectionDeleteAll","deleteAll","emplace","getMapIterator","newMap","findKey","groupBy","keyDerivative","derivedKey","sameValueZero","keyBy","keyOf","mapKeys","mapValues","of","noInitial","accumulator","updateOrInsert","callback","isPresentInMap","upsert","DOMIterables","COLLECTION_NAME","Collection","CollectionPrototype","USE_NATIVE_URL","nativeFetch","NativeRequest","RequestPrototype","Headers","URL_SEARCH_PARAMS","URL_SEARCH_PARAMS_ITERATOR","getInternalParamsState","plus","sequences","percentSequence","bytes","percentDecode","sequence","decodeURIComponent","encodeURIComponent","parseSearchParams","updateSearchParams","validateArgumentsLength","passed","required","URLSearchParamsIterator","URLSearchParamsConstructor","entryIterator","entryNext","updateURL","URLSearchParamsPrototype","getAll","found","entriesIndex","sliceIndex","wrapRequestOptions","headers","body","fetch","RequestConstructor","Request","getState","runtime","Op","iteratorSymbol","asyncIteratorSymbol","asyncIterator","toStringTagSymbol","toStringTag","obj","innerFn","outerFn","tryLocsList","protoGenerator","Generator","generator","context","Context","_invoke","GenStateSuspendedStart","GenStateExecuting","GenStateCompleted","doneResult","delegate","delegateResult","maybeInvokeDelegate","ContinueSentinel","sent","_sent","dispatchException","abrupt","record","tryCatch","GenStateSuspendedYield","makeInvokeMethod","GeneratorFunction","GeneratorFunctionPrototype","getProto","NativeIteratorPrototype","Gp","defineIteratorMethods","AsyncIterator","PromiseImpl","invoke","__await","unwrapped","previousPromise","callInvokeWithMethodAndArg","info","resultName","nextLoc","pushTryEntry","locs","tryLoc","catchLoc","finallyLoc","afterLoc","tryEntries","resetTryEntry","completion","reset","displayName","isGeneratorFunction","genFun","ctor","mark","awrap","async","iter","skipTempReset","rootRecord","rval","exception","handle","loc","caught","hasCatch","hasFinally","finallyEntry","complete","finish","thrown","delegateYield","regeneratorRuntime","accidentalStrictMode","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","loaded","__webpack_modules__","getter","__esModule","definition","o","chunkId","promises","u","g","script","needAttach","scripts","getElementsByTagName","s","charset","nc","onScriptComplete","onerror","onload","doneFns","nmd","children","installedChunks","installedChunkData","errorType","realSrc","request","webpackJsonpCallback","parentChunkLoadingFunction","chunkIds","moreModules","chunkLoadingGlobal","_classCallCheck","_defineProperties","props","_Object$defineProperty","_createClass","protoProps","staticProps","_typeof","_Symbol","_Symbol$iterator","uAjax","ajax","xhr","XMLHttpRequest","onreadystatechange","readyState","DONE","responseText","FormData","encodeValue","setRequestHeader","send","_setPrototypeOf","_Object$setPrototypeOf","_inherits","subClass","superClass","_Object$create","_possibleConstructorReturn","ReferenceError","assertThisInitialized","_getPrototypeOf","_Object$getPrototypeOf","_arrayLikeToArray","arr2","_unsupportedIterableToArray","minLen","_context","arrayLikeToArray","_sliceInstanceProperty","_Array$from","_toConsumableArray","_Array$isArray","arrayWithoutHoles","_getIteratorMethod","iterableToArray","unsupportedIterableToArray","nonIterableSpread","asyncGeneratorStep","gen","_next","_throw","_Promise","uObserve","p1","p2","observeProperty","observeRecursive","observers","observer","_values","_observers","isObserved","obs","observeArray","addObserver","newValue","overrideArrayPrototypes","unobserveProperty","unobserveArray","unobserveRecursive","unobserveAll","restoreArrayPrototypes","removeObserver","operation","delete","uSelect","hasAllOption","allText","hasHead","headText","hasValue","addHead","Option","allValue","isSelectedAll","selected","headValue","Event","disabled","getOption","option","optEl","listText","listValue","uListItem","_get","_Reflect$get","base","superPropBase","_Object$getOwnPropertyDescriptor","uUtils","days","expires","date","Date","setTime","getTime","toUTCString","cookie","fmt","ret","getElementById","scriptLoaded","addScript","timeoutPromise","tid","hex","opacity","parseInt","intensity","rgb","rel","template","childNodes","isNullable","getParsed","parseFloat","timeZone","getFullYear","getMonth","getDate","time","toTimeString","_","hours","zone","dst","assign","degrees","obj1","obj2","isDeepEqual","uPosition","comment","image","speed","altitude","hasImage","totalSeconds","totalMeters","action","posid","imageFile","lat1","deg2rad","latitude","lon1","longitude","lat2","latD","lonD","asin","sqrt","timestamp","getInteger","getFloat","bearing","provider","getString","trackname","trackid","meters","seconds","uPositionSet","posArr","isUpdate","fromJson","_positions","fetchLatest","uTrack","user","uUser","plotData","maxId","maxSpeed","maxAltitude","minAltitude","listItem","clearTrackCounters","track","hasPositions","calculatePosition","userid","afterid","openUrl","distanceTo","secondsTo","hasAltitude","hasSpeed","_tracks","tracks","form","login","isAdmin","password","oldPassword","pass","oldpass","admin","_users","users","uAuth","_isAdmin","_isAuthenticated","_user","isAuthenticated","userId","userLogin","_isNativeReflectConstruct","_Reflect$construct","Proxy","_construct","Parent","isNativeReflectConstruct","_bindInstanceProperty","_wrapNativeSuper","_cache","_Map","_indexOfInstanceProperty","uLayer","priority","uLayerCollection","addLayer","getMaxId","layer","layers","uConfig","interval","lang","mapApi","googleKey","olLayers","initLatitude","initLongitude","requireAuth","publicTracks","passStrength","passLenMin","strokeWeight","strokeColor","strokeOpacity","colorNormal","colorStart","colorStop","colorExtra","colorHilite","uploadMaxSize","initUnits","factorSpeed","unitSpeed","factorDistance","unitDistance","factorDistanceMajor","unitDistanceMajor","unitDay","unitAltitude","load","getPassRegExp","regex","uLang","strings","config","sprintf","unitName","withUnit","localized","toLocaleString","getLocaleDistance","h","coordStr","isLon","ipos","dec","maximumFractionDigits","rulesStr","uInitializer","auth","_data","initializer","ViewModel","model","_model","dataProp","dataset","HTMLInputElement","HTMLTextAreaElement","onChangeBind","HTMLAnchorElement","HTMLButtonElement","onClickBind","viewUpdateBind","preventDefault","getVal","unobserve","LARGE_DATA","ChartViewModel","pointSelected","chartVisible","buttonVisible","onChartToggle","onMenuToggle","chartPoints","chartElement","chartContainer","parentElement","buttonElement","chartSetup","setObservers","bindAll","addCss","onCreated","onChanged","onTrackUpdate","visible","renderButton","renderContainer","render","hasPlotData","isVisible","currentTrack","classList","pointId","$className","pointAddClass","pointsRemoveClass","_slicedToArray","arrayWithHoles","_i","_s","_e","_arr","_n","_d","iterableToArrayLimit","nonIterableRest","uAlert","autoClose","hasButton","fixedPosition","fixed","box","nodeFromHtml","class","button","textContent","onclick","destroy","closeHandle","getPosition","contains","requestAnimationFrame","boxes","lastBox","maxPosition","clientHeight","stack","show","uDialog","dialog","dialogHeader","buttonClose","img","dialogBody","prepend","autofocus","focusEl","focus","confirm","ConfigDialogModel","layerId","layerName","layerUrl","uploadMaxSizeMB","onCancel","onSave","onLayerUpdate","onLayerCancel","onLayerEdit","onLayerDelete","onLayerAdd","getHtml","toggleEditEl","getBoundElement","layerEditEl","layerSelect","setPublicTracksActivity","toggleEditVisible","getPriorityLayer","setOptions","validate","setPriorityLayer","save","catch","checkValidity","visibility","hideEditElement","showEditElement","addNewLayer","currentLayer","setName","setUrl","langOptions","langCode","langName","unitOptions","layerOptions","ConfigViewModel","onSetInterval","setAutoReloadInterval","onConfigEdit","showConfigDialog","api","setCookie","_lang","reload","prompt","ol","hiddenClass","MainViewModel","onShowUserMenu","onLogin","onLogout","toggleSideMenu","toggleUserMenu","logout","hideUserMenuCallback","hideUserMenu","menuEl","userMenuEl","stopPropagation","GoogleMapsApi","vm","viewModel","polies","markers","popup","timeoutHandle","onScriptLoaded","loadScript","loadTimeoutMs","initMap","mapOptions","google","maps","LatLng","zoom","mapTypeId","MapTypeId","TERRAIN","scaleControl","controlSize","mapElement","InfoWindow","popupClose","saveState","mapParams","getDiv","clearListeners","poly","addListenerOnce","polyOptions","latlngbounds","LatLngBounds","Polyline","setMap","getPath","removePoint","setMarker","coordinates","fitBounds","zListener","getZoom","setZoom","getMap","setContent","icon","marker","Marker","isExtra","hasComment","isLastPosition","getMarkerIcon","isFirstPosition","setIcon","popupOpen","markerOver","removeAt","markerSelect","getPopupElement","getIcon","setAnimation","Animation","BOUNCE","lat_sw","getSouthWest","lat","lon_sw","lng","lat_ne","getNorthEast","sw","ne","latLngBounds","setCenter","getCenter","rotation","gmInitialize","gm_loaded","gmInitialized","gm_authFailure","authError","isLarge","anchor","Point","MapViewModel","getSvgSrc","OpenLayersApi","olModule","layerTrack","layerMarkers","selectedLayer","markerStyles","initLayers","initStyles","initPopups","controls","control","Zoom","Rotate","ScaleLine","view","View","proj","fromLonLat","forEachFeatureAtPixel","pixel","_feature","_layer","getTargetElement","cursor","getId","osm","TileLayer","OSM","olLayer","XYZ","setVisible","VectorLayer","Vector","initLayerSwitcher","Style","Icon","normal","extra","startExtra","stopExtra","hilite","lineStyle","stroke","Stroke","color","hexToRGBA","setStyle","colors","pixelStart","getPixelFromCoordinate","pixelEnd","devicePixelRatio","x0","y0","gradient","createLinearGradient","addColorStop","geometry","geom","LineString","minValue","maxValue","minColor","maxColor","setTrackDefaultStyle","ctx","alpha","desynchronized","getContext","styles","getGeometry","getScaleColor","forEachSegment","getGradientStyle","popupContainer","popupContent","popupCloser","Overlay","autoPan","autoPanAnimation","duration","addOverlay","blur","coordinate","getElement","firstElementChild","setPosition","targetName","getLayers","getVisible","switcher","switcherContent","switcherCloser","layerLabel","layerRadio","switchLayer","checked","switcherButton","layerImg","switcherHandle","switcherControl","Control","addControl","removeElementById","un","once","getSource","getFeatures","lineString","lineFeature","Feature","addFeature","appendCoordinate","extent","getExtent","fitToExtent","setZoomToExtent","getControls","ZoomToExtent","removeControl","getExtentImg","getView","fit","TRACK_PADDING","maxZoom","ZOOM_MAX","calculateExtent","mapExtent","getFeatureById","containsCoordinate","getCoordinates","iconStyle","getMarkerStyle","setId","removeFeature","setCoordinates","initStyle","getStyle","toLonLat","updateSize","setRotation","getRotation","extentImg","PositionDialogModel","positionIndex","onPositionDelete","onPositionUpdate","onImageDelete","readImage","previewEl","fileEl","imageDeleteEl","initReader","reader","FileReader","showThumbnail","file","files","readAsDataURL","toggleImage","htmlEncode","getImagePath","isConfirmed","recalculatePositions","imageDelete","imageAdd","updateImage","forceUpdate","speedVisible","altitudeVisible","speedEl","altitudeEl","styleEl","savedBounds","apiName","cleanup","getApi","onReady","txt","zoomToBounds","displayTrack","loadMapAPI","toggleStyleOptions","toggleStyleMenu","clearMap","isPositionVisible","centerToPosition","history","trackId","updateState","zoomToExtent","onMapResize","setTrackStyle","jobStart","finally","jobStop","hasSpeeds","hasAltitudes","setSpeedStyle","setAltitudeStyle","setTrackGradientStyle","isEditable","dateTime","getTimeString","editLink","stats","showLatest","totalSpeed","modal","offset1","offset2","getMarkerPath","getMarkerExtra","TrackDialogModel","onTrackDelete","trackVM","onTrackDeleted","saveMeta","TrackViewModel","trackList","currentTrackId","autoReload","inputFile","summary","onReload","onExportGpx","onExportKml","onImportGpx","onTrackEdit","setClickHandlers","listEl","importEl","editEl","select","timerId","onTrackSelect","onImport","loadTrackList","setMenuVisible","renderSummary","showAll","loadAllUsersPosition","stopAutoReload","startAutoReload","exportCb","export","click","showDialog","showAllUsers","currentUser","onUserLastPosition","sizeMax","import","toast","_track","isEqualTo","fetchPositions","fetchLastPosition","unshift","fetchList","setInterval","clearInterval","today","dateString","toDateString","timeString","altitudes","UserDialogModel","onUserDelete","onUserUpdate","onPassChange","onUserAdd","passVisibility","password2","userVM","passInput","onUserDeleted","modify","setPassword","onUserAdded","validPassStrength","fields","deleteButton","header","UserViewModel","userList","currentUserId","onUserEdit","onPasswordChange","showAllOption","hideAllOption","newUser","uPermalink","skipPush","pushState","onPop","prevState","getHash","parts","getMeta","uSpinner","spinner","jobs","uState","activeJobs","domReady","waitForDom","initReady","initLink","parseHash","linkState","permalink","mainVM","mapVM","chartVM","configVM","onPointOver","onPointOut","onPointSelect","onPointUnselect","animateMarker","msg"],"sourceRoot":""}