Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/js/main/core/minimal/dist/
Upload File :
Current File : /var/www/homesaver/www/bitrix/js/main/core/minimal/dist/main.core.minimal.bundle.js.map

{"version":3,"sources":["../../src/internal/wrap-start.js","../../../polyfill/core/lib/babel-external-helpers.js","../../../polyfill/core/lib/babel-regenerator-runtime.js","../../../polyfill/core/node_modules/core-js/internals/global.js","../../../polyfill/core/node_modules/core-js/internals/fails.js","../../../polyfill/core/node_modules/core-js/internals/descriptors.js","../../../polyfill/core/node_modules/core-js/internals/function-call.js","../../../polyfill/core/node_modules/core-js/internals/object-property-is-enumerable.js","../../../polyfill/core/node_modules/core-js/internals/create-property-descriptor.js","../../../polyfill/core/node_modules/core-js/internals/function-uncurry-this.js","../../../polyfill/core/node_modules/core-js/internals/classof-raw.js","../../../polyfill/core/node_modules/core-js/internals/indexed-object.js","../../../polyfill/core/node_modules/core-js/internals/require-object-coercible.js","../../../polyfill/core/node_modules/core-js/internals/to-indexed-object.js","../../../polyfill/core/node_modules/core-js/internals/is-callable.js","../../../polyfill/core/node_modules/core-js/internals/is-object.js","../../../polyfill/core/node_modules/core-js/internals/get-built-in.js","../../../polyfill/core/node_modules/core-js/internals/engine-v8-version.js","../../../polyfill/core/node_modules/core-js/internals/native-symbol.js","../../../polyfill/core/node_modules/core-js/internals/use-symbol-as-uid.js","../../../polyfill/core/node_modules/core-js/internals/is-symbol.js","../../../polyfill/core/node_modules/core-js/internals/try-to-string.js","../../../polyfill/core/node_modules/core-js/internals/a-callable.js","../../../polyfill/core/node_modules/core-js/internals/get-method.js","../../../polyfill/core/node_modules/core-js/internals/ordinary-to-primitive.js","../../../polyfill/core/node_modules/core-js/internals/is-pure.js","../../../polyfill/core/node_modules/core-js/internals/set-global.js","../../../polyfill/core/node_modules/core-js/internals/shared-store.js","../../../polyfill/core/node_modules/core-js/internals/shared.js","../../../polyfill/core/node_modules/core-js/internals/to-object.js","../../../polyfill/core/node_modules/core-js/internals/has-own-property.js","../../../polyfill/core/node_modules/core-js/internals/uid.js","../../../polyfill/core/node_modules/core-js/internals/well-known-symbol.js","../../../polyfill/core/node_modules/core-js/internals/to-primitive.js","../../../polyfill/core/node_modules/core-js/internals/to-property-key.js","../../../polyfill/core/node_modules/core-js/internals/document-create-element.js","../../../polyfill/core/node_modules/core-js/internals/ie8-dom-define.js","../../../polyfill/core/node_modules/core-js/internals/object-get-own-property-descriptor.js","../../../polyfill/core/node_modules/core-js/internals/an-object.js","../../../polyfill/core/node_modules/core-js/internals/object-define-property.js","../../../polyfill/core/node_modules/core-js/internals/create-non-enumerable-property.js","../../../polyfill/core/node_modules/core-js/internals/inspect-source.js","../../../polyfill/core/node_modules/core-js/internals/native-weak-map.js","../../../polyfill/core/node_modules/core-js/internals/shared-key.js","../../../polyfill/core/node_modules/core-js/internals/hidden-keys.js","../../../polyfill/core/node_modules/core-js/internals/internal-state.js","../../../polyfill/core/node_modules/core-js/internals/function-name.js","../../../polyfill/core/node_modules/core-js/internals/redefine.js","../../../polyfill/core/node_modules/core-js/internals/to-integer-or-infinity.js","../../../polyfill/core/node_modules/core-js/internals/to-absolute-index.js","../../../polyfill/core/node_modules/core-js/internals/to-length.js","../../../polyfill/core/node_modules/core-js/internals/length-of-array-like.js","../../../polyfill/core/node_modules/core-js/internals/array-includes.js","../../../polyfill/core/node_modules/core-js/internals/object-keys-internal.js","../../../polyfill/core/node_modules/core-js/internals/enum-bug-keys.js","../../../polyfill/core/node_modules/core-js/internals/object-get-own-property-names.js","../../../polyfill/core/node_modules/core-js/internals/object-get-own-property-symbols.js","../../../polyfill/core/node_modules/core-js/internals/own-keys.js","../../../polyfill/core/node_modules/core-js/internals/copy-constructor-properties.js","../../../polyfill/core/node_modules/core-js/internals/is-forced.js","../../../polyfill/core/node_modules/core-js/internals/export.js","../../../polyfill/core/node_modules/core-js/internals/correct-prototype-getter.js","../../../polyfill/core/node_modules/core-js/internals/object-get-prototype-of.js","../../../polyfill/core/node_modules/core-js/internals/a-possible-prototype.js","../../../polyfill/core/node_modules/core-js/internals/object-set-prototype-of.js","../../../polyfill/core/node_modules/core-js/internals/object-keys.js","../../../polyfill/core/node_modules/core-js/internals/object-define-properties.js","../../../polyfill/core/node_modules/core-js/internals/object-create.js","../../../polyfill/core/node_modules/core-js/internals/array-slice-simple.js","../../../polyfill/core/node_modules/core-js/internals/clear-error-stack.js","../../../polyfill/core/node_modules/core-js/internals/install-error-cause.js","../../../polyfill/core/node_modules/core-js/internals/function-bind-context.js","../../../polyfill/core/node_modules/core-js/internals/iterators.js","../../../polyfill/core/node_modules/core-js/internals/is-array-iterator-method.js","../../../polyfill/core/node_modules/core-js/internals/to-string-tag-support.js","../../../polyfill/core/node_modules/core-js/internals/classof.js","../../../polyfill/core/node_modules/core-js/internals/get-iterator-method.js","../../../polyfill/core/node_modules/core-js/internals/get-iterator.js","../../../polyfill/core/node_modules/core-js/internals/iterator-close.js","../../../polyfill/core/node_modules/core-js/internals/iterate.js","../../../polyfill/core/node_modules/core-js/internals/to-string.js","../../../polyfill/core/node_modules/core-js/internals/normalize-string-argument.js","../../../polyfill/core/node_modules/core-js/internals/error-stack-installable.js","../../../polyfill/core/node_modules/core-js/modules/es.aggregate-error.js","../../../polyfill/core/node_modules/core-js/internals/add-to-unscopables.js","../../../polyfill/core/node_modules/core-js/modules/es.array.at.js","../../../polyfill/core/node_modules/core-js/internals/is-array.js","../../../polyfill/core/node_modules/core-js/modules/es.array.reverse.js","../../../polyfill/core/node_modules/core-js/internals/array-buffer-native.js","../../../polyfill/core/node_modules/core-js/internals/redefine-all.js","../../../polyfill/core/node_modules/core-js/internals/an-instance.js","../../../polyfill/core/node_modules/core-js/internals/to-index.js","../../../polyfill/core/node_modules/core-js/internals/ieee754.js","../../../polyfill/core/node_modules/core-js/internals/array-fill.js","../../../polyfill/core/node_modules/core-js/internals/set-to-string-tag.js","../../../polyfill/core/node_modules/core-js/internals/array-buffer.js","../../../polyfill/core/node_modules/core-js/internals/is-constructor.js","../../../polyfill/core/node_modules/core-js/internals/a-constructor.js","../../../polyfill/core/node_modules/core-js/internals/species-constructor.js","../../../polyfill/core/node_modules/core-js/modules/es.array-buffer.slice.js","../../../polyfill/core/node_modules/core-js/modules/es.object.from-entries.js","../../../polyfill/core/node_modules/core-js/modules/es.object.has-own.js","../../../polyfill/core/node_modules/core-js/internals/new-promise-capability.js","../../../polyfill/core/node_modules/core-js/internals/perform.js","../../../polyfill/core/node_modules/core-js/modules/es.promise.all-settled.js","../../../polyfill/core/node_modules/core-js/modules/es.promise.any.js","../../../polyfill/core/node_modules/core-js/internals/promise-resolve.js","../../../polyfill/core/node_modules/core-js/modules/es.promise.finally.js","../../../polyfill/core/node_modules/core-js/internals/iterators-core.js","../../../polyfill/core/node_modules/core-js/internals/create-iterator-constructor.js","../../../polyfill/core/node_modules/core-js/internals/is-regexp.js","../../../polyfill/core/node_modules/core-js/internals/regexp-flags.js","../../../polyfill/core/node_modules/core-js/internals/string-multibyte.js","../../../polyfill/core/node_modules/core-js/internals/advance-string-index.js","../../../polyfill/core/node_modules/core-js/internals/regexp-sticky-helpers.js","../../../polyfill/core/node_modules/core-js/internals/regexp-unsupported-dot-all.js","../../../polyfill/core/node_modules/core-js/internals/regexp-unsupported-ncg.js","../../../polyfill/core/node_modules/core-js/internals/regexp-exec.js","../../../polyfill/core/node_modules/core-js/internals/regexp-exec-abstract.js","../../../polyfill/core/node_modules/core-js/modules/es.string.match-all.js","../../../polyfill/core/node_modules/core-js/internals/get-substitution.js","../../../polyfill/core/node_modules/core-js/modules/es.string.replace-all.js","../../../polyfill/core/node_modules/core-js/internals/check-correctness-of-iteration.js","../../../polyfill/core/node_modules/core-js/internals/array-buffer-view-core.js","../../../polyfill/core/node_modules/core-js/internals/typed-array-constructors-require-wrappers.js","../../../polyfill/core/node_modules/core-js/internals/is-integral-number.js","../../../polyfill/core/node_modules/core-js/internals/to-positive-integer.js","../../../polyfill/core/node_modules/core-js/internals/to-offset.js","../../../polyfill/core/node_modules/core-js/internals/typed-array-from.js","../../../polyfill/core/node_modules/core-js/internals/array-species-constructor.js","../../../polyfill/core/node_modules/core-js/internals/array-species-create.js","../../../polyfill/core/node_modules/core-js/internals/array-iteration.js","../../../polyfill/core/node_modules/core-js/internals/set-species.js","../../../polyfill/core/node_modules/core-js/internals/inherit-if-required.js","../../../polyfill/core/node_modules/core-js/internals/typed-array-constructor.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.float32-array.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.float64-array.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.int8-array.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.int16-array.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.int32-array.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.uint8-array.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.uint8-clamped-array.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.uint16-array.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.uint32-array.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.at.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.of.js","../../../polyfill/core/node_modules/core-js/internals/array-sort.js","../../../polyfill/core/node_modules/core-js/internals/engine-ff-version.js","../../../polyfill/core/node_modules/core-js/internals/engine-webkit-version.js","../../../polyfill/core/node_modules/core-js/modules/es.typed-array.sort.js","../../../polyfill/core/node_modules/core-js/internals/dom-iterables.js","../../../polyfill/core/node_modules/core-js/internals/dom-token-list-prototype.js","../../../polyfill/core/node_modules/core-js/internals/define-iterator.js","../../../polyfill/core/node_modules/core-js/modules/es.array.iterator.js","../../../polyfill/core/node_modules/core-js/modules/web.dom-collections.iterator.js","../../../polyfill/core/node_modules/core-js/internals/function-apply.js","../../../polyfill/core/node_modules/core-js/internals/task.js","../../../polyfill/core/node_modules/core-js/modules/web.immediate.js","../../../polyfill/core/node_modules/core-js/internals/microtask.js","../../../polyfill/core/node_modules/core-js/modules/web.queue-microtask.js","../../../polyfill/core/src/polyfill.js","../../../polyfill/core/lib/alert-message.js","../../src/internal/get-tag.js","../../src/lib/type.js","../../src/lib/reflection.js","../../src/lib/text.js","../../src/lib/event/aliases.js","../../src/lib/event/registry.js","../../src/lib/event/fetch-supported-listener-options.js","../../src/lib/event/bind.js","../../src/lib/event/unbind.js","../../src/lib/event/unbind-all.js","../../src/lib/event/bind-once.js","../../src/lib/runtime/debug.js","../../src/lib/runtime/loadextension/internal/extensions-storage.js","../../src/lib/runtime/loadextension/internal/load-assets.js","../../src/lib/runtime/loadextension/internal/utils.js","../../src/lib/runtime/loadextension/internal/extension.js","../../src/lib/runtime/loadextension/load-extension.js","../../src/lib/runtime/clone.js","../../src/lib/runtime/merge.js","../../src/lib/runtime/create-comparator.js","../../src/lib/runtime/loadextension/internal/register-extension.js","../../src/lib/runtime.js","../../src/lib/base-error.js","../../src/lib/event/base-event.js","../../src/lib/event/event-emitter/eventstore.js","../../src/lib/event/event-emitter/warningstore.js","../../src/lib/event/event-emitter.js","../../src/lib/event/ready.js","../../src/lib/event.js","../../src/internal/encode-attribute-value.js","../../src/internal/decode-attribute-value.js","../../src/internal/get-page-scroll.js","../../src/lib/dom.js","../../src/lib/browser.js","../../src/lib/http/cookie.js","../../src/lib/http/internal/convert-object-to-form-data.js","../../src/lib/http/data.js","../../src/lib/http.js","../../src/lib/loc/message.js","../../src/lib/loc.js","../../src/lib/tag/internal/is-void-element.js","../../src/lib/tag/internal/matchers.js","../../src/lib/tag/internal/parse-tag.js","../../src/lib/tag/internal/parse-text.js","../../src/lib/tag/internal/parse.js","../../src/lib/tag/internal/render-node.js","../../src/lib/tag/render.js","../../src/lib/tag.js","../../src/lib/uri/parse-url.js","../../src/lib/uri/build-query-string.js","../../src/lib/uri/prepare-param-value.js","../../src/lib/uri.js","../../src/lib/validation.js","../../src/lib/cache/base-cache.js","../../src/lib/cache/memory-cache.js","../../src/lib/cache/storage/ls-storage.js","../../src/lib/cache/local-storage-cache.js","../../src/lib/cache.js","../../src/lib/collections/ordered-array.js","../../src/lib/z-index/z-index-component.js","../../src/lib/z-index/z-index-stack.js","../../src/lib/z-index/z-index-manager.js","../../src/lib/extension/internal/convert-path.js","../../src/lib/extension/internal/settings-collection.js","../../src/lib/extension/internal/deep-freeze.js","../../src/lib/extension/extension.js","../../src/internal/get-element.js","../../src/internal/get-window.js","../../src/core-compatibility.js","../src/main.core.minimal.js","../../src/internal/wrap-end.js"],"names":["check","module","exec","error","get","call","Function","prototype","apply","arguments","$propertyIsEnumerable","propertyIsEnumerable","getOwnPropertyDescriptor","Object","NASHORN_BUG","exports","f","descriptor","V","enumerable","bitmap","configurable","writable","value","FunctionPrototype","bind","callBind","fn","stringSlice","uncurryThis","split","it","TypeError","argument","Deno","global","versions","v8","match","userAgent","getBuiltIn","pref","isCallable","toString","isObject","val","store","commonjsHelpers.createCommonjsModule","version","mode","copyright","postfix","Symbol","symbolFor","createWellKnownSymbol","WellKnownSymbolsStore","TO_PRIMITIVE","input","exoticToPrim","getMethod","result","O","P","anObject","createPropertyDescriptor","object","WeakMap","set","has","wmget","shared","wmhas","wmset","metadata","facade","hiddenKeys","hasOwn","createNonEnumerableProperty","STATE","enforce","getterFor","EXISTS","PROPER","CONFIGURABLE","TEMPLATE","String","options","InternalStateModule","name","replace","state","key","simple","ceil","Math","floor","number","min","IS_INCLUDES","includes","indexOf","names","getOwnPropertySymbols","getOwnPropertySymbolsModule","defineProperty","i","POLYFILL","string","NATIVE","target","sourceProperty","targetProperty","FORCED","isForced","STATIC","sham","redefine","ObjectPrototype","constructor","setter","CORRECT_SETTER","aPossiblePrototype","index","NullProtoObjectViaActiveX","activeXDocument","NullProtoObjectViaIFrame","iframe","html","iframeDocument","NullProtoObject","max","k","length","fin","join","IS_V8_OR_CHAKRA_STACK","V8_OR_CHAKRA_STACK_ENTRY","test","IS_FIREFOX_OR_SAFARI_STACK","stack","aCallable","ArrayPrototype","Array","CORRECT_ARGUMENTS","classofRaw","innerResult","innerError","that","AS_ENTRIES","IS_ITERATOR","INTERRUPTED","iterator","iterFn","iteratorClose","message","$","AggregateError","definePropertyModule","addToUnscopables","proto","forced","reverse","ArrayBuffer","DataView","src","toLength","RangeError","log","LN2","pack","eBias","rt","pow","sign","exponent","c","mantissa","buffer","mantissaLength","exponentLength","eMax","nBits","bytes","NaN","FunctionName","addGetter","getInternalState","PROTOTYPE","intIndex","anInstance","setInternalState","byteLength","ArrayBufferPrototype","byteOffset","DataViewPrototype","DESCRIPTORS","$ArrayBuffer","redefineAll","getInt8","getUint8","getInt16","getUint16","getInt32","getUint32","getFloat32","getFloat64","unpackIEEE754","setInt8","packInt8","setInt16","setUint16","packInt16","setInt32","setUint32","setFloat32","setFloat64","PROPER_FUNCTION_NAME","NativeArrayBuffer","ARRAY_BUFFER","setPrototypeOf","testView","$setInt8","setUint8","unsafe","setToStringTag","construct","constructorRegExp","INCORRECT_TO_STRING","called","S","slice","toAbsoluteIndex","undefined","end","fromEntries","obj","iterate","createProperty","resolve","reject","remaining","alreadyCalled","values","status","reason","capability","alreadyResolved","alreadyRejected","errors","promiseCapability","C","then","method","NativePromise","NEW_ITERATOR_PROTOTYPE","IteratorPrototype","BUGGY_SAFARI_ITERATORS","dotAll","unicode","sticky","charCodeAt","$this","position","size","first","second","codeAt","charAt","re","BROKEN_CARET","MISSED_STICKY","UNSUPPORTED_Y","PATCH","patchedExec","raw","source","flags","strCopy","charsAdded","reCopy","RegExp","lastIndex","nativeExec","group","done","$matchAll","flagsValue","RegExpPrototype","matcher","$global","fullUnicode","matchAll","rx","IS_PURE","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","m","symbols","namedCaptures","capture","n","IS_REG_EXP","requireObjectCoercible","replacer","searchString","functionalReplace","searchLength","advanceBy","endOfLastMatch","SAFE_CLOSING","ITERATION_SUPPORT","next","Int32Array","isTypedArray","TypedArrayConstructorsList","aTypedArray","aTypedArrayConstructor","KEY","TypedArrayConstructor","property","Constructor","Prototype","TypedArray","TypedArrayPrototype","TYPED_ARRAY_TAG_REQIRED","NATIVE_ARRAY_BUFFER_VIEWS","TYPED_ARRAY_TAG","exportTypedArrayMethod","isView","iterable","Int8Array","toPositiveInteger","offset","BYTES","mapfn","mapping","iteratorMethod","getIterator","push","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","callbackfn","specificCreate","self","boundFunction","create","IS_MAP","TYPE","forEach","map","filter","some","every","find","findIndex","filterReject","wrappedGetOwnPropertyDescriptor","getOwnPropertyDescriptorModule","stat","CONSTRUCTOR_NAME","data","$length","WRONG_LENGTH","view","addElement","TypedArrayConstructorPrototype","toIndex","exported","setSpecies","createTypedArrayConstructor","exportTypedArrayStaticMethod","middle","element","j","array","rlength","right","lindex","rindex","llength","mod","ArrayBufferViewCore","expected","un$Sort","b","y","comparefn","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","IteratorConstructor","nativeIterator","ITERATOR","entries","anyNativeIterator","CurrentIteratorPrototype","getPrototypeOf","INCORRECT_VALUES_NAME","defaultIterator","methods","keys","getIterationMethod","Iterators","kind","type","TO_STRING_TAG","ArrayValues","CollectionPrototype","handlePrototype","clear","process","Dispatch","MessageChannel","counter","queue","ONREADYSTATECHANGE","location","id","run","args","defer","channel","IS_IOS","port","onmessage","setTimeout","setImmediate","clearImmediate","document","Promise","head","toggle","node","MutationObserver","characterData","notify","promise","nextTick","macrotask","noTargetGet","queueMicrotask","microtask","domain","getTag","objectCtorString","Type","isString","isObjectLike","ctor","hasOwnProperty","Number","isNaN","isNumber","isInteger","isNil","isArray","isFunction","MAX_SAFE_INTEGER","isPlainObject","isDomNode","nodeType","Node","ELEMENT_NODE","TEXT_NODE","regExpTypedTag","isBlob","lastModified","lastModifiedDate","FormData","Reflection","className","classFn","currentNamespace","window","namespaces","namespace","namespaceName","parts","parent","BX","isUndefined","reEscape","reUnescape","escapeEntities","unescapeEntities","Text","item","random","parsedValue","parseFloat","toNumber","parseInt","trueValues","transformedValue","toLowerCase","str","isStringFilled","regex","letter","toUpperCase","substr","capitalize","toCamelCase","matches","x","aliases","mousewheel","bxchange","animationend","transitionend","fullscreenchange","fullscreenerror","Registry","event","listener","events","isSet","Set","add","registry","isOptionSupported","isSupported","addEventListener","err","fetchSupportedListenerOptions","reduce","acc","eventName","handler","listenerOptions","unbind","removeEventListener","unbindAll","currentEvent","bindOnce","once","debugState","enableDebug","disableDebug","isDebugEnabled","debug","console","Error","trace","extensionsStorage","Map","ajaxController","loadAssets","ajax","runAction","fetchInlineScripts","isInternal","JS","fetchExternalScripts","fetchExternalStyles","fetchExtensionSettings","scripts","isArrayFilled","script","extension","loadAll","items","itemsList","load","defaultOptions","loaded","Extension","State","LOADING","preparedOptions","LOADED","getClass","assetsResult","extensionData","at","config","processHTML","inlineScripts","SCRIPT","externalScripts","externalStyles","STYLE","settingsScripts","HTML","entry","body","insertAdjacentHTML","evalGlobal","all","loadExtension","extensionName","extensionNames","flat","currentExports","cloneableTags","isCloneable","isCloneableValue","internalClone","cloned","from","cloneNode","isMap","isDate","Date","isRegExp","regExpFlags","assign","clone","merge","current","createComparator","fields","orders","a","field","order","valueA","valueB","registerExtension","Runtime","func","wait","context","timeoutId","debounced","clearTimeout","timer","invoke","wrapper","q","params","innerHTML","parsedHtml","externalCss","externalJs","inlineJs","htmlFirst","useAdjacentHTML","callback","targets","unshift","collection","comparator","sort","errorMessage","onPropertyAccess","ownProperties","prototypeProperties","targetPrototype","getOwnPropertyNames","uniquePropertiesList","isError","BaseError","code","customData","setMessage","setCode","setCustomData","getCode","getMessage","BaseEvent","compatData","defaultPrevented","immediatePropagationStopped","setData","setCompatData","isArrayLike","EventStore","defaultMaxListeners","eventStore","record","getRecordScheme","maxListeners","eventsMap","onceMap","getDefaultMaxListeners","eventsMaxListeners","WarningStore","warnings","printDelayed","debounce","print","listeners","contextWarnings","groupCollapsed","dir","groupEnd","warningStore","aliasStore","globalTarget","GLOBAL_TARGET","isEmitterProperty","namespaceProperty","EventEmitter","setEventNamespace","subscribe","compatMode","subscribeFromOptions","normalizeAliases","normalizeListener","normalizeEventName","actualName","subscribeOnce","unsubscribe","unsubscribeAll","getEventNamespace","warn","emit","emitAsync","setMaxListeners","getMaxListeners","incrementMaxListeners","decrementMaxListeners","getListeners","makeFullEventName","isEventEmitter","targetProto","emitter","fullEventName","resolveEventName","useGlobalNaming","getOrAdd","onceListeners","getNextSequenceValue","targetInfo","globalEvents","globalListeners","targetListeners","targetEvents","preparedEvent","prepareEvent","isImmediatePropagationStopped","listenerResult","getCompatData","cloneData","thisArg","setTarget","setType","sequenceValue","count","DEFAULT_MAX_LISTENERS","destructMaxListenersArgs","increment","addMaxListeners","abs","alias","mergeEventAliases","aliasListeners","aliasOnceListeners","aliasMaxListeners","eventMaxListeners","getFullEventName","actualEventName","fullName","isReady","ready","Event","encodeAttributeValue","JSON","stringify","encode","decode","decodeAttributeValue","decodedValue","parse","e","Boolean","getPageScroll","documentElement","scrollTop","pageYOffset","scrollLeft","pageXOffset","Dom","oldElement","newElement","parentNode","replaceChild","removeChild","childNodes","firstChild","clean","getElementById","insertBefore","nextSibling","appendChild","append","isElementNode","preparedClassName","trim","hasClass","classList","contains","baseVal","getAttribute","addClass","removeClass","remove","toggleClass","prop","isNull","removeAttribute","currentKey","currentValue","style","DOCUMENT_NODE","computedStyle","getComputedStyle","getPropertyValue","startsWith","removeProperty","setProperty","attrs","setAttribute","props","dataset","children","text","textContent","tag","tagName","adjust","createElement","hidden","isShown","hide","show","elementRect","getBoundingClientRect","DOMRect","left","top","width","height","relationElement","elementPosition","getPosition","relationElementPosition","attr","attrKey","attrValue","UA","navigator","Browser","isOpera","documentMode","isSafari","isFirefox","isChrome","rv","MSStream","ActiveXObject","isIE10","isIE9","isIE","appName","res","detectIEVersion","isAndroid","isMac","isTouchDevice","isIPad","isIPhone","devicePixelRatio","maxTouchPoints","msMaxTouchPoints","doc","clientHeight","localStorage","setItem","removeItem","globalClass","isIOS","isWin","isLinux","isMobile","isRetina","jsProperty","returnCSSName","getCssName","propertyName","getJsName","cssName","reg","bReturnCSSName","ucProperty","properties","lowerProp","prefix","features","classNames","support","isPropertySupported","Cookie","cookie","subItem","decodeURIComponent","cookiesList","getList","attributes","expires","now","days","dayInMs","toUTCString","safeName","escape","safeValue","encodeURIComponent","stringifiedAttributes","attributeValue","objectToFormData","formData","pre","toISOString","isFile","preparedProperty","lastIndexOf","substring","Data","Http","Loc","messageId","replacements","mess","replacement","globalRegexp","hasMessage","getPluralForm","languageId","pluralForm","voidElements","isVoidElement","matchers","comment","placeholder","parseTag","tagResult","svg","voidElement","endIndex","openTagLength","content","tagNameMatch","endsWith","attrName","parseText","preparedText","placeholders","textAcc","preparedItemText","uid","substitutions","commentsContent","commentIndex","arr","level","start","nextChar","appendElement","nodeName","renderNode","parentElement","refs","createElementNS","ref","substitution","bindFunctionName","preparedValue","childNode","subChildElement","createComment","createTextNode","render","sections","ast","renderedNode","renderedNodes","parseProps","nextSectionIndex","splitted","substitutionPlaceholderExp","Tag","styleTagHandler","attrsTagHandler","getParser","format","sourceKey","accumulator","concat","getKeyFormat","isAllowedKey","parseQuery","url","param","keyFormat","formatter","urlExp","parseUrl","queryParams","useShort","href","schema","host","path","query","hash","username","password","origin","buildQueryString","queryString","paramValue","paramIndex","prepareParamValue","Uri","setQueryParams","removableParams","removeQueryParam","getQueryParams","currentParams","newParams","serialized","protocol","getHost","getPath","Validation","exp","BaseCache","defaultValue","storage","MemoryCache","MemoryStorage","LsStorage","getItem","stackKey","parsedStack","preparedStack","getStack","saveStack","LocalStorageCache","LsCacheStorage","Cache","OrderedArray","splice","last","getIndex","getComparator","indexes","index1","index2","low","high","mid","ZIndexComponent","componentOptions","setAlwaysOnTop","alwaysOnTop","setOverlay","overlay","setOverlayGap","overlayGap","zIndex","changed","getZIndex","getElement","getOverlay","getOverlayGap","component","isBoolean","gap","ZIndexStack","container","componentA","componentB","getAlwaysOnTop","getSort","components","baseIndex","step","baseStep","getComponent","setStack","setSort","sortCount","elements","getAll","getLast","setZIndex","ZIndexManager","getOrAddStack","register","unregister","stacks","addStack","bringToFront","suppressWarnings","convertPath","SettingsCollection","convertedPath","deepFreeze","freeze","settingsStorage","settingsScriptNode","querySelector","decodedSettings","frozenSettings","getWindow","ownerDocument","parentWindow","defaultView","messageFunction","insertAfter","prepend","cleanNode","removeElement","currentElement","getCookie","setCookie","debugEnableFlag","debugNs","debugStatus","debugEnable","loadExt","throttle","isNotEmptyString","isNotEmptyObject","isMapKey","stringToInt","parsed","browser","IsOpera","IsIE","IsIE6","isIE6","IsIE7","isIE7","IsIE8","isIE8","IsIE9","IsIE10","IsIE11","isIE11","IsSafari","IsFirefox","IsChrome","DetectIeVersion","IsMac","IsAndroid","IsIOS","IsMobile","IsDoctype","isDoctype","SupportLocalStorage","isLocalStorageSupported","addGlobalClass","DetectAndroidVersion","detectAndroidVersion","addGlobalFeatures","GetWindowScrollSize","scrollWidth","scrollHeight","GetWindowScrollPos","win","GetWindowInnerSize","innerWidth","innerHeight","GetWindowSize","GetContext","pos","relative","toJSON","clientRect","root","round","bottom","w","offsetWidth","h","offsetHeight","offsetParent","is_relative","offsetLeft","offsetTop","addCustomEvent","eventObject","eventHandler","onCustomEvent","eventParams","secureParams","removeCustomEvent","removeAllCustomEvents"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;ACLA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACl/BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;CCvsBC;;;;;CAQCA;CAGC;CAAc,aAAA;CAAc;;;;CCb/BC;CACE,MAAI;CACF,WAAO,CAAC,CAACC,IAAI,EAAb;CACD,GAFD,CAEE,OAAOC,KAAP,EAAc;CACd,WAAO,IAAP;CACD;CACF,CAND;;CCGAF;;;CAEwCG,IAAAA;CAAmB;CAAW;CAAhC;CACrC;;;;;CCND,IAAIC,IAAI,GAAGC,QAAQ,CAACC,SAAT,CAAmBF,IAA9B;CAEAJ;CACE,SAAOI,IAAI,CAACG,KAAL,CAAWH,IAAX,EAAiBI,SAAjB,CAAP;CACD,CAFD;;CCDA,IAAIC,qBAAqB,GAAG,GAAGC,oBAA/B;;CAEA,IAAIC,wBAAwB,GAAGC,MAAM,CAACD,wBAAtC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,CAACW,cAAc,CAACie,WAAW,EAAElpB,SAAS,EAAE;KAAEiM,eAAe,EAAE;IAAM,CAAC;CAC/E;;CC/WA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAA","file":"main.core.minimal.bundle.js.map","sourcesContent":[null,null,null,"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","module.exports = function (exec) {\n  try {\n    return !!exec();\n  } catch (error) {\n    return true;\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 call = Function.prototype.call;\n\nmodule.exports = call.bind ? call.bind(call) : function () {\n  return call.apply(call, arguments);\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","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","var FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar callBind = bind && bind.bind(call);\n\nmodule.exports = bind ? function (fn) {\n  return fn && callBind(call, fn);\n} : function (fn) {\n  return fn && function () {\n    return call.apply(fn, arguments);\n  };\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n  return stringSlice(toString(it), 8, -1);\n};\n","var global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar Object = global.Object;\nvar split = uncurryThis(''.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(it, '') : Object(it);\n} : Object;\n","var global = require('../internals/global');\n\nvar TypeError = global.TypeError;\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","// 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","// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n  return typeof argument == 'function';\n};\n","var isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n  return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n  return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n  return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\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  // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n  // but their correct versions are not interesting for us\n  version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && 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;\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","/* 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 global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Object = global.Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n  return typeof it == 'symbol';\n} : function (it) {\n  var $Symbol = getBuiltIn('Symbol');\n  return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object(it));\n};\n","var global = require('../internals/global');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n  try {\n    return String(argument);\n  } catch (error) {\n    return 'Object';\n  }\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar TypeError = global.TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n  if (isCallable(argument)) return argument;\n  throw TypeError(tryToString(argument) + ' is not a function');\n};\n","var aCallable = require('../internals/a-callable');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n  var func = V[P];\n  return func == null ? undefined : aCallable(func);\n};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar TypeError = global.TypeError;\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' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n  if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n  if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n  throw TypeError(\"Can't convert object to primitive value\");\n};\n","module.exports = false;\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n  try {\n    defineProperty(global, key, { value: value, configurable: true, writable: true });\n  } catch (error) {\n    global[key] = value;\n  } return value;\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\treturn store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n\tversion: '3.19.2',\n\tmode: IS_PURE ? 'pure' : 'global',\n\tcopyright: '(c) 2021 Denis Pushkarev (zloirock.ru)'\n});\n","var global = require('../internals/global');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar Object = global.Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n  return Object(requireObjectCoercible(argument));\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n  return hasOwnProperty(toObject(it), key);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\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 symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n  if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n    var description = 'Symbol.' + name;\n    if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n      WellKnownSymbolsStore[name] = Symbol[name];\n    } else if (USE_SYMBOL_AS_UID && symbolFor) {\n      WellKnownSymbolsStore[name] = symbolFor(description);\n    } else {\n      WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n    }\n  } return WellKnownSymbolsStore[name];\n};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TypeError = global.TypeError;\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 = getMethod(input, TO_PRIMITIVE);\n  var result;\n  if (exoticToPrim) {\n    if (pref === undefined) pref = 'default';\n    result = call(exoticToPrim, 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 : key + '';\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","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 DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\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 hasOwn = require('../internals/has-own-property');\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 (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar String = global.String;\nvar TypeError = global.TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n  if (isObject(argument)) return argument;\n  throw TypeError(String(argument) + ' is not an object');\n};\n","var global = require('../internals/global');\nvar 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\nvar TypeError = global.TypeError;\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 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","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n  store.inspectSource = function (it) {\n    return functionToString(it);\n  };\n}\n\nmodule.exports = store.inspectSource;\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));\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","module.exports = {};\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\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 TypeError = global.TypeError;\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 = uncurryThis(store.get);\n  var wmhas = uncurryThis(store.has);\n  var wmset = uncurryThis(store.set);\n  set = function (it, metadata) {\n    if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n    metadata.facade = it;\n    wmset(store, it, metadata);\n    return metadata;\n  };\n  get = function (it) {\n    return wmget(store, it) || {};\n  };\n  has = function (it) {\n    return wmhas(store, it);\n  };\n} else {\n  var STATE = sharedKey('state');\n  hiddenKeys[STATE] = true;\n  set = function (it, metadata) {\n    if (hasOwn(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 hasOwn(it, STATE) ? it[STATE] : {};\n  };\n  has = function (it) {\n    return hasOwn(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 DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n  EXISTS: EXISTS,\n  PROPER: PROPER,\n  CONFIGURABLE: CONFIGURABLE\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n  var unsafe = options ? !!options.unsafe : false;\n  var simple = options ? !!options.enumerable : false;\n  var noTargetGet = options ? !!options.noTargetGet : false;\n  var name = options && options.name !== undefined ? options.name : key;\n  var state;\n  if (isCallable(value)) {\n    if (String(name).slice(0, 7) === 'Symbol(') {\n      name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n    }\n    if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n      createNonEnumerableProperty(value, 'name', name);\n    }\n    state = enforceInternalState(value);\n    if (!state.source) {\n      state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n    }\n  }\n  if (O === global) {\n    if (simple) O[key] = value;\n    else setGlobal(key, value);\n    return;\n  } else if (!unsafe) {\n    delete O[key];\n  } else if (!noTargetGet && O[key]) {\n    simple = true;\n  }\n  if (simple) O[key] = value;\n  else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n  return isCallable(this) && getInternalState(this).source || inspectSource(this);\n});\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n  var number = +argument;\n  // eslint-disable-next-line no-self-compare -- safe\n  return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\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 = toIntegerOrInfinity(index);\n  return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\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(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n  return toLength(obj.length);\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\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 = lengthOfArrayLike(O);\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 uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\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) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n  // Don't enum bug & hidden keys\n  while (names.length > i) if (hasOwn(O, key = names[i++])) {\n    ~indexOf(result, key) || push(result, key);\n  }\n  return result;\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","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 getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n  var keys = getOwnPropertyNamesModule.f(anObject(it));\n  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n  return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source) {\n  var keys = ownKeys(source);\n  var defineProperty = definePropertyModule.f;\n  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n  for (var i = 0; i < keys.length; i++) {\n    var key = keys[i];\n    if (!hasOwn(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n  }\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\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    : isCallable(detection) ? 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 global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\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  options.name        - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n  var TARGET = options.target;\n  var GLOBAL = options.global;\n  var STATIC = options.stat;\n  var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n  if (GLOBAL) {\n    target = global;\n  } else if (STATIC) {\n    target = global[TARGET] || setGlobal(TARGET, {});\n  } else {\n    target = (global[TARGET] || {}).prototype;\n  }\n  if (target) for (key in source) {\n    sourceProperty = source[key];\n    if (options.noTargetGet) {\n      descriptor = getOwnPropertyDescriptor(target, key);\n      targetProperty = descriptor && descriptor.value;\n    } else targetProperty = target[key];\n    FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n    // contained in target\n    if (!FORCED && targetProperty !== undefined) {\n      if (typeof sourceProperty == typeof targetProperty) continue;\n      copyConstructorProperties(sourceProperty, targetProperty);\n    }\n    // add a flag to not completely full polyfills\n    if (options.sham || (targetProperty && targetProperty.sham)) {\n      createNonEnumerableProperty(sourceProperty, 'sham', true);\n    }\n    // extend global\n    redefine(target, key, sourceProperty, options);\n  }\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","var global = require('../internals/global');\nvar hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\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 Object = global.Object;\nvar ObjectPrototype = Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? Object.getPrototypeOf : function (O) {\n  var object = toObject(O);\n  if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n  var constructor = object.constructor;\n  if (isCallable(constructor) && object instanceof constructor) {\n    return constructor.prototype;\n  } return object instanceof Object ? ObjectPrototype : null;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar String = global.String;\nvar TypeError = global.TypeError;\n\nmodule.exports = function (argument) {\n  if (typeof argument == 'object' || isCallable(argument)) return argument;\n  throw TypeError(\"Can't set \" + String(argument) + ' as a prototype');\n};\n","/* eslint-disable no-proto -- safe */\nvar uncurryThis = require('../internals/function-uncurry-this');\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 = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);\n    setter(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(O, proto);\n    else O.__proto__ = proto;\n    return O;\n  };\n}() : undefined);\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","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-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 props = toIndexedObject(Properties);\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++], props[key]);\n  return O;\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 global = require('../internals/global');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar Array = global.Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n  var length = lengthOfArrayLike(O);\n  var k = toAbsoluteIndex(start, length);\n  var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n  var result = Array(max(fin - k, 0));\n  for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n  result.length = n;\n  return result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar replace = uncurryThis(''.replace);\nvar split = uncurryThis(''.split);\nvar join = uncurryThis([].join);\n\nvar TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\nvar IS_FIREFOX_OR_SAFARI_STACK = /@[^\\n]*\\n/.test(TEST) && !/zxcasd/.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n  if (typeof stack != 'string') return stack;\n  if (IS_V8_OR_CHAKRA_STACK) {\n    while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n  } else if (IS_FIREFOX_OR_SAFARI_STACK) {\n    return join(arraySlice(split(stack, '\\n'), dropEntries), '\\n');\n  } return stack;\n};\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n  if (isObject(options) && 'cause' in options) {\n    createNonEnumerableProperty(O, 'cause', options.cause);\n  }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n  aCallable(fn);\n  return that === undefined ? fn : bind ? bind(fn, that) : function (/* ...args */) {\n    return fn.apply(that, arguments);\n  };\n};\n","module.exports = {};\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 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 global = require('../internals/global');\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar Object = global.Object;\n\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' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\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 getMethod(it, ITERATOR)\n    || getMethod(it, '@@iterator')\n    || Iterators[classof(it)];\n};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar TypeError = global.TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n  var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n  if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n  throw TypeError(tryToString(argument) + ' is not iterable');\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n  var innerResult, innerError;\n  anObject(iterator);\n  try {\n    innerResult = getMethod(iterator, 'return');\n    if (!innerResult) {\n      if (kind === 'throw') throw value;\n      return value;\n    }\n    innerResult = call(innerResult, 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","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar TypeError = global.TypeError;\n\nvar Result = function (stopped, result) {\n  this.stopped = stopped;\n  this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\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);\n  var iterator, iterFn, index, length, result, next, step;\n\n  var stop = function (condition) {\n    if (iterator) iteratorClose(iterator, 'normal', 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 (!iterFn) throw TypeError(tryToString(iterable) + ' is not iterable');\n    // optimisation for array iterators\n    if (isArrayIteratorMethod(iterFn)) {\n      for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n        result = callFn(iterable[index]);\n        if (result && isPrototypeOf(ResultPrototype, result)) return result;\n      } return new Result(false);\n    }\n    iterator = getIterator(iterable, iterFn);\n  }\n\n  next = iterator.next;\n  while (!(step = call(next, iterator)).done) {\n    try {\n      result = callFn(step.value);\n    } catch (error) {\n      iteratorClose(iterator, 'throw', error);\n    }\n    if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n  } return new Result(false);\n};\n","var global = require('../internals/global');\nvar classof = require('../internals/classof');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n  if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n  return String(argument);\n};\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n  return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n  var error = Error('a');\n  if (!('stack' in error)) return true;\n  // eslint-disable-next-line es/no-object-defineproperty -- safe\n  Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n  return error.stack !== 7;\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar clearErrorStack = require('../internals/clear-error-stack');\nvar installErrorCause = require('../internals/install-error-cause');\nvar iterate = require('../internals/iterate');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar Error = global.Error;\nvar push = [].push;\n\nvar $AggregateError = function AggregateError(errors, message /* , options */) {\n  var options = arguments.length > 2 ? arguments[2] : undefined;\n  var isInstance = isPrototypeOf(AggregateErrorPrototype, this);\n  var that;\n  if (setPrototypeOf) {\n    that = setPrototypeOf(new Error(undefined), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);\n  } else {\n    that = isInstance ? this : create(AggregateErrorPrototype);\n    createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');\n  }\n  createNonEnumerableProperty(that, 'message', normalizeStringArgument(message, ''));\n  if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(that, 'stack', clearErrorStack(that.stack, 1));\n  installErrorCause(that, options);\n  var errorsArray = [];\n  iterate(errors, push, { that: errorsArray });\n  createNonEnumerableProperty(that, 'errors', errorsArray);\n  return that;\n};\n\nif (setPrototypeOf) setPrototypeOf($AggregateError, Error);\nelse copyConstructorProperties($AggregateError, Error);\n\nvar AggregateErrorPrototype = $AggregateError.prototype = create(Error.prototype, {\n  constructor: createPropertyDescriptor(1, $AggregateError),\n  message: createPropertyDescriptor(1, ''),\n  name: createPropertyDescriptor(1, 'AggregateError')\n});\n\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$({ global: true }, {\n  AggregateError: $AggregateError\n});\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar definePropertyModule = require('../internals/object-define-property');\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n  definePropertyModule.f(ArrayPrototype, UNSCOPABLES, {\n    configurable: true,\n    value: create(null)\n  });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n  ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.at` method\n// https://github.com/tc39/proposal-relative-indexing-method\n$({ target: 'Array', proto: true }, {\n  at: function at(index) {\n    var O = toObject(this);\n    var len = lengthOfArrayLike(O);\n    var relativeIndex = toIntegerOrInfinity(index);\n    var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;\n    return (k < 0 || k >= len) ? undefined : O[k];\n  }\n});\n\naddToUnscopables('at');\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(argument) {\n  return classof(argument) == 'Array';\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isArray = require('../internals/is-array');\n\nvar un$Reverse = uncurryThis([].reverse);\nvar test = [1, 2];\n\n// `Array.prototype.reverse` method\n// https://tc39.es/ecma262/#sec-array.prototype.reverse\n// fix for Safari 12.0 bug\n// https://bugs.webkit.org/show_bug.cgi?id=188794\n$({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {\n  reverse: function reverse() {\n    // eslint-disable-next-line no-self-assign -- dirty hack\n    if (isArray(this)) this.length = this.length;\n    return un$Reverse(this);\n  }\n});\n","// eslint-disable-next-line es/no-typed-arrays -- safe\nmodule.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';\n","var redefine = require('../internals/redefine');\n\nmodule.exports = function (target, src, options) {\n  for (var key in src) redefine(target, key, src[key], options);\n  return target;\n};\n","var global = require('../internals/global');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar TypeError = global.TypeError;\n\nmodule.exports = function (it, Prototype) {\n  if (isPrototypeOf(Prototype, it)) return it;\n  throw TypeError('Incorrect invocation');\n};\n","var global = require('../internals/global');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toLength = require('../internals/to-length');\n\nvar RangeError = global.RangeError;\n\n// `ToIndex` abstract operation\n// https://tc39.es/ecma262/#sec-toindex\nmodule.exports = function (it) {\n  if (it === undefined) return 0;\n  var number = toIntegerOrInfinity(it);\n  var length = toLength(number);\n  if (number !== length) throw RangeError('Wrong length or index');\n  return length;\n};\n","// IEEE754 conversions based on https://github.com/feross/ieee754\nvar global = require('../internals/global');\n\nvar Array = global.Array;\nvar abs = Math.abs;\nvar pow = Math.pow;\nvar floor = Math.floor;\nvar log = Math.log;\nvar LN2 = Math.LN2;\n\nvar pack = function (number, mantissaLength, bytes) {\n  var buffer = Array(bytes);\n  var exponentLength = bytes * 8 - mantissaLength - 1;\n  var eMax = (1 << exponentLength) - 1;\n  var eBias = eMax >> 1;\n  var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0;\n  var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;\n  var index = 0;\n  var exponent, mantissa, c;\n  number = abs(number);\n  // eslint-disable-next-line no-self-compare -- NaN check\n  if (number != number || number === Infinity) {\n    // eslint-disable-next-line no-self-compare -- NaN check\n    mantissa = number != number ? 1 : 0;\n    exponent = eMax;\n  } else {\n    exponent = floor(log(number) / LN2);\n    c = pow(2, -exponent);\n    if (number * c < 1) {\n      exponent--;\n      c *= 2;\n    }\n    if (exponent + eBias >= 1) {\n      number += rt / c;\n    } else {\n      number += rt * pow(2, 1 - eBias);\n    }\n    if (number * c >= 2) {\n      exponent++;\n      c /= 2;\n    }\n    if (exponent + eBias >= eMax) {\n      mantissa = 0;\n      exponent = eMax;\n    } else if (exponent + eBias >= 1) {\n      mantissa = (number * c - 1) * pow(2, mantissaLength);\n      exponent = exponent + eBias;\n    } else {\n      mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength);\n      exponent = 0;\n    }\n  }\n  while (mantissaLength >= 8) {\n    buffer[index++] = mantissa & 255;\n    mantissa /= 256;\n    mantissaLength -= 8;\n  }\n  exponent = exponent << mantissaLength | mantissa;\n  exponentLength += mantissaLength;\n  while (exponentLength > 0) {\n    buffer[index++] = exponent & 255;\n    exponent /= 256;\n    exponentLength -= 8;\n  }\n  buffer[--index] |= sign * 128;\n  return buffer;\n};\n\nvar unpack = function (buffer, mantissaLength) {\n  var bytes = buffer.length;\n  var exponentLength = bytes * 8 - mantissaLength - 1;\n  var eMax = (1 << exponentLength) - 1;\n  var eBias = eMax >> 1;\n  var nBits = exponentLength - 7;\n  var index = bytes - 1;\n  var sign = buffer[index--];\n  var exponent = sign & 127;\n  var mantissa;\n  sign >>= 7;\n  while (nBits > 0) {\n    exponent = exponent * 256 + buffer[index--];\n    nBits -= 8;\n  }\n  mantissa = exponent & (1 << -nBits) - 1;\n  exponent >>= -nBits;\n  nBits += mantissaLength;\n  while (nBits > 0) {\n    mantissa = mantissa * 256 + buffer[index--];\n    nBits -= 8;\n  }\n  if (exponent === 0) {\n    exponent = 1 - eBias;\n  } else if (exponent === eMax) {\n    return mantissa ? NaN : sign ? -Infinity : Infinity;\n  } else {\n    mantissa = mantissa + pow(2, mantissaLength);\n    exponent = exponent - eBias;\n  } return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength);\n};\n\nmodule.exports = {\n  pack: pack,\n  unpack: unpack\n};\n","'use strict';\nvar toObject = require('../internals/to-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.fill` method implementation\n// https://tc39.es/ecma262/#sec-array.prototype.fill\nmodule.exports = function fill(value /* , start = 0, end = @length */) {\n  var O = toObject(this);\n  var length = lengthOfArrayLike(O);\n  var argumentsLength = arguments.length;\n  var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : undefined, length);\n  var end = argumentsLength > 2 ? arguments[2] : undefined;\n  var endPos = end === undefined ? length : toAbsoluteIndex(end, length);\n  while (endPos > index) O[index++] = value;\n  return O;\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (it, TAG, STATIC) {\n  if (it && !hasOwn(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {\n    defineProperty(it, TO_STRING_TAG, { configurable: true, value: TAG });\n  }\n};\n","'use strict';\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');\nvar FunctionName = require('../internals/function-name');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefineAll = require('../internals/redefine-all');\nvar fails = require('../internals/fails');\nvar anInstance = require('../internals/an-instance');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toLength = require('../internals/to-length');\nvar toIndex = require('../internals/to-index');\nvar IEEE754 = require('../internals/ieee754');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar defineProperty = require('../internals/object-define-property').f;\nvar arrayFill = require('../internals/array-fill');\nvar arraySlice = require('../internals/array-slice-simple');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar getInternalState = InternalStateModule.get;\nvar setInternalState = InternalStateModule.set;\nvar ARRAY_BUFFER = 'ArrayBuffer';\nvar DATA_VIEW = 'DataView';\nvar PROTOTYPE = 'prototype';\nvar WRONG_LENGTH = 'Wrong length';\nvar WRONG_INDEX = 'Wrong index';\nvar NativeArrayBuffer = global[ARRAY_BUFFER];\nvar $ArrayBuffer = NativeArrayBuffer;\nvar ArrayBufferPrototype = $ArrayBuffer && $ArrayBuffer[PROTOTYPE];\nvar $DataView = global[DATA_VIEW];\nvar DataViewPrototype = $DataView && $DataView[PROTOTYPE];\nvar ObjectPrototype = Object.prototype;\nvar Array = global.Array;\nvar RangeError = global.RangeError;\nvar fill = uncurryThis(arrayFill);\nvar reverse = uncurryThis([].reverse);\n\nvar packIEEE754 = IEEE754.pack;\nvar unpackIEEE754 = IEEE754.unpack;\n\nvar packInt8 = function (number) {\n  return [number & 0xFF];\n};\n\nvar packInt16 = function (number) {\n  return [number & 0xFF, number >> 8 & 0xFF];\n};\n\nvar packInt32 = function (number) {\n  return [number & 0xFF, number >> 8 & 0xFF, number >> 16 & 0xFF, number >> 24 & 0xFF];\n};\n\nvar unpackInt32 = function (buffer) {\n  return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0];\n};\n\nvar packFloat32 = function (number) {\n  return packIEEE754(number, 23, 4);\n};\n\nvar packFloat64 = function (number) {\n  return packIEEE754(number, 52, 8);\n};\n\nvar addGetter = function (Constructor, key) {\n  defineProperty(Constructor[PROTOTYPE], key, { get: function () { return getInternalState(this)[key]; } });\n};\n\nvar get = function (view, count, index, isLittleEndian) {\n  var intIndex = toIndex(index);\n  var store = getInternalState(view);\n  if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);\n  var bytes = getInternalState(store.buffer).bytes;\n  var start = intIndex + store.byteOffset;\n  var pack = arraySlice(bytes, start, start + count);\n  return isLittleEndian ? pack : reverse(pack);\n};\n\nvar set = function (view, count, index, conversion, value, isLittleEndian) {\n  var intIndex = toIndex(index);\n  var store = getInternalState(view);\n  if (intIndex + count > store.byteLength) throw RangeError(WRONG_INDEX);\n  var bytes = getInternalState(store.buffer).bytes;\n  var start = intIndex + store.byteOffset;\n  var pack = conversion(+value);\n  for (var i = 0; i < count; i++) bytes[start + i] = pack[isLittleEndian ? i : count - i - 1];\n};\n\nif (!NATIVE_ARRAY_BUFFER) {\n  $ArrayBuffer = function ArrayBuffer(length) {\n    anInstance(this, ArrayBufferPrototype);\n    var byteLength = toIndex(length);\n    setInternalState(this, {\n      bytes: fill(Array(byteLength), 0),\n      byteLength: byteLength\n    });\n    if (!DESCRIPTORS) this.byteLength = byteLength;\n  };\n\n  ArrayBufferPrototype = $ArrayBuffer[PROTOTYPE];\n\n  $DataView = function DataView(buffer, byteOffset, byteLength) {\n    anInstance(this, DataViewPrototype);\n    anInstance(buffer, ArrayBufferPrototype);\n    var bufferLength = getInternalState(buffer).byteLength;\n    var offset = toIntegerOrInfinity(byteOffset);\n    if (offset < 0 || offset > bufferLength) throw RangeError('Wrong offset');\n    byteLength = byteLength === undefined ? bufferLength - offset : toLength(byteLength);\n    if (offset + byteLength > bufferLength) throw RangeError(WRONG_LENGTH);\n    setInternalState(this, {\n      buffer: buffer,\n      byteLength: byteLength,\n      byteOffset: offset\n    });\n    if (!DESCRIPTORS) {\n      this.buffer = buffer;\n      this.byteLength = byteLength;\n      this.byteOffset = offset;\n    }\n  };\n\n  DataViewPrototype = $DataView[PROTOTYPE];\n\n  if (DESCRIPTORS) {\n    addGetter($ArrayBuffer, 'byteLength');\n    addGetter($DataView, 'buffer');\n    addGetter($DataView, 'byteLength');\n    addGetter($DataView, 'byteOffset');\n  }\n\n  redefineAll(DataViewPrototype, {\n    getInt8: function getInt8(byteOffset) {\n      return get(this, 1, byteOffset)[0] << 24 >> 24;\n    },\n    getUint8: function getUint8(byteOffset) {\n      return get(this, 1, byteOffset)[0];\n    },\n    getInt16: function getInt16(byteOffset /* , littleEndian */) {\n      var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined);\n      return (bytes[1] << 8 | bytes[0]) << 16 >> 16;\n    },\n    getUint16: function getUint16(byteOffset /* , littleEndian */) {\n      var bytes = get(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined);\n      return bytes[1] << 8 | bytes[0];\n    },\n    getInt32: function getInt32(byteOffset /* , littleEndian */) {\n      return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined));\n    },\n    getUint32: function getUint32(byteOffset /* , littleEndian */) {\n      return unpackInt32(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined)) >>> 0;\n    },\n    getFloat32: function getFloat32(byteOffset /* , littleEndian */) {\n      return unpackIEEE754(get(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 23);\n    },\n    getFloat64: function getFloat64(byteOffset /* , littleEndian */) {\n      return unpackIEEE754(get(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 52);\n    },\n    setInt8: function setInt8(byteOffset, value) {\n      set(this, 1, byteOffset, packInt8, value);\n    },\n    setUint8: function setUint8(byteOffset, value) {\n      set(this, 1, byteOffset, packInt8, value);\n    },\n    setInt16: function setInt16(byteOffset, value /* , littleEndian */) {\n      set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined);\n    },\n    setUint16: function setUint16(byteOffset, value /* , littleEndian */) {\n      set(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined);\n    },\n    setInt32: function setInt32(byteOffset, value /* , littleEndian */) {\n      set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined);\n    },\n    setUint32: function setUint32(byteOffset, value /* , littleEndian */) {\n      set(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined);\n    },\n    setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) {\n      set(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : undefined);\n    },\n    setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) {\n      set(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : undefined);\n    }\n  });\n} else {\n  var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER;\n  /* eslint-disable no-new -- required for testing */\n  if (!fails(function () {\n    NativeArrayBuffer(1);\n  }) || !fails(function () {\n    new NativeArrayBuffer(-1);\n  }) || fails(function () {\n    new NativeArrayBuffer();\n    new NativeArrayBuffer(1.5);\n    new NativeArrayBuffer(NaN);\n    return INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME;\n  })) {\n  /* eslint-enable no-new -- required for testing */\n    $ArrayBuffer = function ArrayBuffer(length) {\n      anInstance(this, ArrayBufferPrototype);\n      return new NativeArrayBuffer(toIndex(length));\n    };\n\n    $ArrayBuffer[PROTOTYPE] = ArrayBufferPrototype;\n\n    for (var keys = getOwnPropertyNames(NativeArrayBuffer), j = 0, key; keys.length > j;) {\n      if (!((key = keys[j++]) in $ArrayBuffer)) {\n        createNonEnumerableProperty($ArrayBuffer, key, NativeArrayBuffer[key]);\n      }\n    }\n\n    ArrayBufferPrototype.constructor = $ArrayBuffer;\n  } else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) {\n    createNonEnumerableProperty(NativeArrayBuffer, 'name', ARRAY_BUFFER);\n  }\n\n  // WebKit bug - the same parent prototype for typed arrays and data view\n  if (setPrototypeOf && getPrototypeOf(DataViewPrototype) !== ObjectPrototype) {\n    setPrototypeOf(DataViewPrototype, ObjectPrototype);\n  }\n\n  // iOS Safari 7.x bug\n  var testView = new $DataView(new $ArrayBuffer(2));\n  var $setInt8 = uncurryThis(DataViewPrototype.setInt8);\n  testView.setInt8(0, 2147483648);\n  testView.setInt8(1, 2147483649);\n  if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll(DataViewPrototype, {\n    setInt8: function setInt8(byteOffset, value) {\n      $setInt8(this, byteOffset, value << 24 >> 24);\n    },\n    setUint8: function setUint8(byteOffset, value) {\n      $setInt8(this, byteOffset, value << 24 >> 24);\n    }\n  }, { unsafe: true });\n}\n\nsetToStringTag($ArrayBuffer, ARRAY_BUFFER);\nsetToStringTag($DataView, DATA_VIEW);\n\nmodule.exports = {\n  ArrayBuffer: $ArrayBuffer,\n  DataView: $DataView\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function (argument) {\n  if (!isCallable(argument)) return false;\n  try {\n    construct(noop, empty, argument);\n    return true;\n  } catch (error) {\n    return false;\n  }\n};\n\nvar isConstructorLegacy = function (argument) {\n  if (!isCallable(argument)) return false;\n  switch (classof(argument)) {\n    case 'AsyncFunction':\n    case 'GeneratorFunction':\n    case 'AsyncGeneratorFunction': return false;\n    // we can't check .prototype since constructors produced by .bind haven't it\n  } return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n};\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n  var called;\n  return isConstructorModern(isConstructorModern.call)\n    || !isConstructorModern(Object)\n    || !isConstructorModern(function () { called = true; })\n    || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var global = require('../internals/global');\nvar isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar TypeError = global.TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n  if (isConstructor(argument)) return argument;\n  throw TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\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 : aConstructor(S);\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar ArrayBufferModule = require('../internals/array-buffer');\nvar anObject = require('../internals/an-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toLength = require('../internals/to-length');\nvar speciesConstructor = require('../internals/species-constructor');\n\nvar ArrayBuffer = ArrayBufferModule.ArrayBuffer;\nvar DataView = ArrayBufferModule.DataView;\nvar DataViewPrototype = DataView.prototype;\nvar un$ArrayBufferSlice = uncurryThis(ArrayBuffer.prototype.slice);\nvar getUint8 = uncurryThis(DataViewPrototype.getUint8);\nvar setUint8 = uncurryThis(DataViewPrototype.setUint8);\n\nvar INCORRECT_SLICE = fails(function () {\n  return !new ArrayBuffer(2).slice(1, undefined).byteLength;\n});\n\n// `ArrayBuffer.prototype.slice` method\n// https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice\n$({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {\n  slice: function slice(start, end) {\n    if (un$ArrayBufferSlice && end === undefined) {\n      return un$ArrayBufferSlice(anObject(this), start); // FF fix\n    }\n    var length = anObject(this).byteLength;\n    var first = toAbsoluteIndex(start, length);\n    var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n    var result = new (speciesConstructor(this, ArrayBuffer))(toLength(fin - first));\n    var viewSource = new DataView(this);\n    var viewTarget = new DataView(result);\n    var index = 0;\n    while (first < fin) {\n      setUint8(viewTarget, index++, getUint8(viewSource, first++));\n    } return result;\n  }\n});\n","var $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar createProperty = require('../internals/create-property');\n\n// `Object.fromEntries` method\n// https://github.com/tc39/proposal-object-from-entries\n$({ target: 'Object', stat: true }, {\n  fromEntries: function fromEntries(iterable) {\n    var obj = {};\n    iterate(iterable, function (k, v) {\n      createProperty(obj, k, v);\n    }, { AS_ENTRIES: true });\n    return obj;\n  }\n});\n","var $ = require('../internals/export');\nvar hasOwn = require('../internals/has-own-property');\n\n// `Object.hasOwn` method\n// https://github.com/tc39/proposal-accessible-object-hasownproperty\n$({ target: 'Object', stat: true }, {\n  hasOwn: hasOwn\n});\n","'use strict';\nvar aCallable = require('../internals/a-callable');\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 = aCallable(resolve);\n  this.reject = aCallable(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","module.exports = function (exec) {\n  try {\n    return { error: false, value: exec() };\n  } catch (error) {\n    return { error: true, value: error };\n  }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\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 = aCallable(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        remaining++;\n        call(promiseResolve, 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 aCallable = require('../internals/a-callable');\nvar getBuiltIn = require('../internals/get-built-in');\nvar call = require('../internals/function-call');\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 AggregateError = getBuiltIn('AggregateError');\n    var capability = newPromiseCapabilityModule.f(C);\n    var resolve = capability.resolve;\n    var reject = capability.reject;\n    var result = perform(function () {\n      var promiseResolve = aCallable(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        remaining++;\n        call(promiseResolve, 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 AggregateError(errors, PROMISE_ANY_ERROR));\n        });\n      });\n      --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n    });\n    if (result.error) reject(result.value);\n    return capability.promise;\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","'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 isCallable = require('../internals/is-callable');\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 = isCallable(onFinally);\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 && isCallable(NativePromise)) {\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 fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar redefine = require('../internals/redefine');\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\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 = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n  redefine(IteratorPrototype, ITERATOR, function () {\n    return this;\n  });\n}\n\nmodule.exports = {\n  IteratorPrototype: IteratorPrototype,\n  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\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 isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n  var isRegExp;\n  return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n  var that = anObject(this);\n  var result = '';\n  if (that.global) result += 'g';\n  if (that.ignoreCase) result += 'i';\n  if (that.multiline) result += 'm';\n  if (that.dotAll) result += 's';\n  if (that.unicode) result += 'u';\n  if (that.sticky) result += 'y';\n  return result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n  return function ($this, pos) {\n    var S = toString(requireObjectCoercible($this));\n    var position = toIntegerOrInfinity(pos);\n    var size = S.length;\n    var first, second;\n    if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n    first = charCodeAt(S, position);\n    return first < 0xD800 || first > 0xDBFF || position + 1 === size\n      || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n        ? CONVERT_TO_STRING\n          ? charAt(S, position)\n          : first\n        : CONVERT_TO_STRING\n          ? stringSlice(S, position, position + 2)\n          : (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","'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\n\n// `AdvanceStringIndex` abstract operation\n// https://tc39.es/ecma262/#sec-advancestringindex\nmodule.exports = function (S, index, unicode) {\n  return index + (unicode ? charAt(S, index).length : 1);\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nvar UNSUPPORTED_Y = fails(function () {\n  var re = $RegExp('a', 'y');\n  re.lastIndex = 2;\n  return re.exec('abcd') != null;\n});\n\n// UC Browser bug\n// https://github.com/zloirock/core-js/issues/1008\nvar MISSED_STICKY = UNSUPPORTED_Y || fails(function () {\n  return !$RegExp('a', 'y').sticky;\n});\n\nvar BROKEN_CARET = UNSUPPORTED_Y || fails(function () {\n  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687\n  var re = $RegExp('^r', 'gy');\n  re.lastIndex = 2;\n  return re.exec('str') != null;\n});\n\nmodule.exports = {\n  BROKEN_CARET: BROKEN_CARET,\n  MISSED_STICKY: MISSED_STICKY,\n  UNSUPPORTED_Y: UNSUPPORTED_Y\n};\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n  var re = $RegExp('.', 's');\n  return !(re.dotAll && re.exec('\\n') && re.flags === 's');\n});\n","var fails = require('../internals/fails');\nvar global = require('../internals/global');\n\n// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError\nvar $RegExp = global.RegExp;\n\nmodule.exports = fails(function () {\n  var re = $RegExp('(?<a>b)', 'g');\n  return re.exec('b').groups.a !== 'b' ||\n    'b'.replace(re, '$<a>c') !== 'bc';\n});\n","'use strict';\n/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */\n/* eslint-disable regexp/no-useless-quantifier -- testing */\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar regexpFlags = require('../internals/regexp-flags');\nvar stickyHelpers = require('../internals/regexp-sticky-helpers');\nvar shared = require('../internals/shared');\nvar create = require('../internals/object-create');\nvar getInternalState = require('../internals/internal-state').get;\nvar UNSUPPORTED_DOT_ALL = require('../internals/regexp-unsupported-dot-all');\nvar UNSUPPORTED_NCG = require('../internals/regexp-unsupported-ncg');\n\nvar nativeReplace = shared('native-string-replace', String.prototype.replace);\nvar nativeExec = RegExp.prototype.exec;\nvar patchedExec = nativeExec;\nvar charAt = uncurryThis(''.charAt);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n\nvar UPDATES_LAST_INDEX_WRONG = (function () {\n  var re1 = /a/;\n  var re2 = /b*/g;\n  call(nativeExec, re1, 'a');\n  call(nativeExec, re2, 'a');\n  return re1.lastIndex !== 0 || re2.lastIndex !== 0;\n})();\n\nvar UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;\n\n// nonparticipating capturing group, copied from es5-shim's String#split patch.\nvar NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;\n\nvar PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;\n\nif (PATCH) {\n  patchedExec = function exec(string) {\n    var re = this;\n    var state = getInternalState(re);\n    var str = toString(string);\n    var raw = state.raw;\n    var result, reCopy, lastIndex, match, i, object, group;\n\n    if (raw) {\n      raw.lastIndex = re.lastIndex;\n      result = call(patchedExec, raw, str);\n      re.lastIndex = raw.lastIndex;\n      return result;\n    }\n\n    var groups = state.groups;\n    var sticky = UNSUPPORTED_Y && re.sticky;\n    var flags = call(regexpFlags, re);\n    var source = re.source;\n    var charsAdded = 0;\n    var strCopy = str;\n\n    if (sticky) {\n      flags = replace(flags, 'y', '');\n      if (indexOf(flags, 'g') === -1) {\n        flags += 'g';\n      }\n\n      strCopy = stringSlice(str, re.lastIndex);\n      // Support anchored sticky behavior.\n      if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt(str, re.lastIndex - 1) !== '\\n')) {\n        source = '(?: ' + source + ')';\n        strCopy = ' ' + strCopy;\n        charsAdded++;\n      }\n      // ^(? + rx + ) is needed, in combination with some str slicing, to\n      // simulate the 'y' flag.\n      reCopy = new RegExp('^(?:' + source + ')', flags);\n    }\n\n    if (NPCG_INCLUDED) {\n      reCopy = new RegExp('^' + source + '$(?!\\\\s)', flags);\n    }\n    if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;\n\n    match = call(nativeExec, sticky ? reCopy : re, strCopy);\n\n    if (sticky) {\n      if (match) {\n        match.input = stringSlice(match.input, charsAdded);\n        match[0] = stringSlice(match[0], charsAdded);\n        match.index = re.lastIndex;\n        re.lastIndex += match[0].length;\n      } else re.lastIndex = 0;\n    } else if (UPDATES_LAST_INDEX_WRONG && match) {\n      re.lastIndex = re.global ? match.index + match[0].length : lastIndex;\n    }\n    if (NPCG_INCLUDED && match && match.length > 1) {\n      // Fix browsers whose `exec` methods don't consistently return `undefined`\n      // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/\n      call(nativeReplace, match[0], reCopy, function () {\n        for (i = 1; i < arguments.length - 2; i++) {\n          if (arguments[i] === undefined) match[i] = undefined;\n        }\n      });\n    }\n\n    if (match && groups) {\n      match.groups = object = create(null);\n      for (i = 0; i < groups.length; i++) {\n        group = groups[i];\n        object[group[0]] = match[group[1]];\n      }\n    }\n\n    return match;\n  };\n}\n\nmodule.exports = patchedExec;\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof-raw');\nvar regexpExec = require('../internals/regexp-exec');\n\nvar TypeError = global.TypeError;\n\n// `RegExpExec` abstract operation\n// https://tc39.es/ecma262/#sec-regexpexec\nmodule.exports = function (R, S) {\n  var exec = R.exec;\n  if (isCallable(exec)) {\n    var result = call(exec, R, S);\n    if (result !== null) anObject(result);\n    return result;\n  }\n  if (classof(R) === 'RegExp') return call(regexpExec, R, S);\n  throw TypeError('RegExp#exec called on incompatible receiver');\n};\n","'use strict';\n/* eslint-disable es/no-string-prototype-matchall -- safe */\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar createIteratorConstructor = require('../internals/create-iterator-constructor');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toLength = require('../internals/to-length');\nvar toString = require('../internals/to-string');\nvar anObject = require('../internals/an-object');\nvar classof = require('../internals/classof-raw');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar isRegExp = require('../internals/is-regexp');\nvar regExpFlags = require('../internals/regexp-flags');\nvar getMethod = require('../internals/get-method');\nvar redefine = require('../internals/redefine');\nvar fails = require('../internals/fails');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar speciesConstructor = require('../internals/species-constructor');\nvar advanceStringIndex = require('../internals/advance-string-index');\nvar regExpExec = require('../internals/regexp-exec-abstract');\nvar InternalStateModule = require('../internals/internal-state');\nvar IS_PURE = require('../internals/is-pure');\n\nvar MATCH_ALL = wellKnownSymbol('matchAll');\nvar REGEXP_STRING = 'RegExp String';\nvar REGEXP_STRING_ITERATOR = REGEXP_STRING + ' Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(REGEXP_STRING_ITERATOR);\nvar RegExpPrototype = RegExp.prototype;\nvar TypeError = global.TypeError;\nvar getFlags = uncurryThis(regExpFlags);\nvar stringIndexOf = uncurryThis(''.indexOf);\nvar un$MatchAll = uncurryThis(''.matchAll);\n\nvar WORKS_WITH_NON_GLOBAL_REGEX = !!un$MatchAll && !fails(function () {\n  un$MatchAll('a', /./);\n});\n\nvar $RegExpStringIterator = createIteratorConstructor(function RegExpStringIterator(regexp, string, $global, fullUnicode) {\n  setInternalState(this, {\n    type: REGEXP_STRING_ITERATOR,\n    regexp: regexp,\n    string: string,\n    global: $global,\n    unicode: fullUnicode,\n    done: false\n  });\n}, REGEXP_STRING, function next() {\n  var state = getInternalState(this);\n  if (state.done) return { value: undefined, done: true };\n  var R = state.regexp;\n  var S = state.string;\n  var match = regExpExec(R, S);\n  if (match === null) return { value: undefined, done: state.done = true };\n  if (state.global) {\n    if (toString(match[0]) === '') R.lastIndex = advanceStringIndex(S, toLength(R.lastIndex), state.unicode);\n    return { value: match, done: false };\n  }\n  state.done = true;\n  return { value: match, done: false };\n});\n\nvar $matchAll = function (string) {\n  var R = anObject(this);\n  var S = toString(string);\n  var C, flagsValue, flags, matcher, $global, fullUnicode;\n  C = speciesConstructor(R, RegExp);\n  flagsValue = R.flags;\n  if (flagsValue === undefined && isPrototypeOf(RegExpPrototype, R) && !('flags' in RegExpPrototype)) {\n    flagsValue = getFlags(R);\n  }\n  flags = flagsValue === undefined ? '' : toString(flagsValue);\n  matcher = new C(C === RegExp ? R.source : R, flags);\n  $global = !!~stringIndexOf(flags, 'g');\n  fullUnicode = !!~stringIndexOf(flags, 'u');\n  matcher.lastIndex = toLength(R.lastIndex);\n  return new $RegExpStringIterator(matcher, S, $global, fullUnicode);\n};\n\n// `String.prototype.matchAll` method\n// https://tc39.es/ecma262/#sec-string.prototype.matchall\n$({ target: 'String', proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, {\n  matchAll: function matchAll(regexp) {\n    var O = requireObjectCoercible(this);\n    var flags, S, matcher, rx;\n    if (regexp != null) {\n      if (isRegExp(regexp)) {\n        flags = toString(requireObjectCoercible('flags' in RegExpPrototype\n          ? regexp.flags\n          : getFlags(regexp)\n        ));\n        if (!~stringIndexOf(flags, 'g')) throw TypeError('`.matchAll` does not allow non-global regexes');\n      }\n      if (WORKS_WITH_NON_GLOBAL_REGEX) return un$MatchAll(O, regexp);\n      matcher = getMethod(regexp, MATCH_ALL);\n      if (matcher === undefined && IS_PURE && classof(regexp) == 'RegExp') matcher = $matchAll;\n      if (matcher) return call(matcher, regexp, O);\n    } else if (WORKS_WITH_NON_GLOBAL_REGEX) return un$MatchAll(O, regexp);\n    S = toString(O);\n    rx = new RegExp(regexp, 'g');\n    return IS_PURE ? call($matchAll, rx, S) : rx[MATCH_ALL](S);\n  }\n});\n\nIS_PURE || MATCH_ALL in RegExpPrototype || redefine(RegExpPrototype, MATCH_ALL, $matchAll);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar floor = Math.floor;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n  var tailPos = position + matched.length;\n  var m = captures.length;\n  var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n  if (namedCaptures !== undefined) {\n    namedCaptures = toObject(namedCaptures);\n    symbols = SUBSTITUTION_SYMBOLS;\n  }\n  return replace(replacement, symbols, function (match, ch) {\n    var capture;\n    switch (charAt(ch, 0)) {\n      case '$': return '$';\n      case '&': return matched;\n      case '`': return stringSlice(str, 0, position);\n      case \"'\": return stringSlice(str, tailPos);\n      case '<':\n        capture = namedCaptures[stringSlice(ch, 1, -1)];\n        break;\n      default: // \\d\\d?\n        var n = +ch;\n        if (n === 0) return match;\n        if (n > m) {\n          var f = floor(n / 10);\n          if (f === 0) return match;\n          if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n          return match;\n        }\n        capture = captures[n - 1];\n    }\n    return capture === undefined ? '' : capture;\n  });\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar isCallable = require('../internals/is-callable');\nvar isRegExp = require('../internals/is-regexp');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar regExpFlags = require('../internals/regexp-flags');\nvar getSubstitution = require('../internals/get-substitution');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar RegExpPrototype = RegExp.prototype;\nvar TypeError = global.TypeError;\nvar getFlags = uncurryThis(regExpFlags);\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar max = Math.max;\n\nvar stringIndexOf = function (string, searchValue, fromIndex) {\n  if (fromIndex > string.length) return -1;\n  if (searchValue === '') return fromIndex;\n  return indexOf(string, searchValue, fromIndex);\n};\n\n// `String.prototype.replaceAll` method\n// https://tc39.es/ecma262/#sec-string.prototype.replaceall\n$({ target: 'String', proto: true }, {\n  replaceAll: function replaceAll(searchValue, replaceValue) {\n    var O = requireObjectCoercible(this);\n    var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;\n    var position = 0;\n    var endOfLastMatch = 0;\n    var result = '';\n    if (searchValue != null) {\n      IS_REG_EXP = isRegExp(searchValue);\n      if (IS_REG_EXP) {\n        flags = toString(requireObjectCoercible('flags' in RegExpPrototype\n          ? searchValue.flags\n          : getFlags(searchValue)\n        ));\n        if (!~indexOf(flags, 'g')) throw TypeError('`.replaceAll` does not allow non-global regexes');\n      }\n      replacer = getMethod(searchValue, REPLACE);\n      if (replacer) {\n        return call(replacer, searchValue, O, replaceValue);\n      } else if (IS_PURE && IS_REG_EXP) {\n        return replace(toString(O), searchValue, replaceValue);\n      }\n    }\n    string = toString(O);\n    searchString = toString(searchValue);\n    functionalReplace = isCallable(replaceValue);\n    if (!functionalReplace) replaceValue = toString(replaceValue);\n    searchLength = searchString.length;\n    advanceBy = max(1, searchLength);\n    position = stringIndexOf(string, searchString, 0);\n    while (position !== -1) {\n      replacement = functionalReplace\n        ? toString(replaceValue(searchString, position, string))\n        : getSubstitution(searchString, string, position, [], undefined, replaceValue);\n      result += stringSlice(string, endOfLastMatch, position) + replacement;\n      endOfLastMatch = position + searchLength;\n      position = stringIndexOf(string, searchString, position + advanceBy);\n    }\n    if (endOfLastMatch < string.length) {\n      result += stringSlice(string, endOfLastMatch);\n    }\n    return result;\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","'use strict';\nvar NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-native');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar classof = require('../internals/classof');\nvar tryToString = require('../internals/try-to-string');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar defineProperty = require('../internals/object-define-property').f;\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar uid = require('../internals/uid');\n\nvar Int8Array = global.Int8Array;\nvar Int8ArrayPrototype = Int8Array && Int8Array.prototype;\nvar Uint8ClampedArray = global.Uint8ClampedArray;\nvar Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;\nvar TypedArray = Int8Array && getPrototypeOf(Int8Array);\nvar TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);\nvar ObjectPrototype = Object.prototype;\nvar TypeError = global.TypeError;\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');\nvar TYPED_ARRAY_CONSTRUCTOR = uid('TYPED_ARRAY_CONSTRUCTOR');\n// Fixing native typed arrays in Opera Presto crashes the browser, see #595\nvar NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';\nvar TYPED_ARRAY_TAG_REQIRED = false;\nvar NAME, Constructor, Prototype;\n\nvar TypedArrayConstructorsList = {\n  Int8Array: 1,\n  Uint8Array: 1,\n  Uint8ClampedArray: 1,\n  Int16Array: 2,\n  Uint16Array: 2,\n  Int32Array: 4,\n  Uint32Array: 4,\n  Float32Array: 4,\n  Float64Array: 8\n};\n\nvar BigIntArrayConstructorsList = {\n  BigInt64Array: 8,\n  BigUint64Array: 8\n};\n\nvar isView = function isView(it) {\n  if (!isObject(it)) return false;\n  var klass = classof(it);\n  return klass === 'DataView'\n    || hasOwn(TypedArrayConstructorsList, klass)\n    || hasOwn(BigIntArrayConstructorsList, klass);\n};\n\nvar isTypedArray = function (it) {\n  if (!isObject(it)) return false;\n  var klass = classof(it);\n  return hasOwn(TypedArrayConstructorsList, klass)\n    || hasOwn(BigIntArrayConstructorsList, klass);\n};\n\nvar aTypedArray = function (it) {\n  if (isTypedArray(it)) return it;\n  throw TypeError('Target is not a typed array');\n};\n\nvar aTypedArrayConstructor = function (C) {\n  if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C;\n  throw TypeError(tryToString(C) + ' is not a typed array constructor');\n};\n\nvar exportTypedArrayMethod = function (KEY, property, forced) {\n  if (!DESCRIPTORS) return;\n  if (forced) for (var ARRAY in TypedArrayConstructorsList) {\n    var TypedArrayConstructor = global[ARRAY];\n    if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try {\n      delete TypedArrayConstructor.prototype[KEY];\n    } catch (error) { /* empty */ }\n  }\n  if (!TypedArrayPrototype[KEY] || forced) {\n    redefine(TypedArrayPrototype, KEY, forced ? property\n      : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property);\n  }\n};\n\nvar exportTypedArrayStaticMethod = function (KEY, property, forced) {\n  var ARRAY, TypedArrayConstructor;\n  if (!DESCRIPTORS) return;\n  if (setPrototypeOf) {\n    if (forced) for (ARRAY in TypedArrayConstructorsList) {\n      TypedArrayConstructor = global[ARRAY];\n      if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try {\n        delete TypedArrayConstructor[KEY];\n      } catch (error) { /* empty */ }\n    }\n    if (!TypedArray[KEY] || forced) {\n      // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable\n      try {\n        return redefine(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);\n      } catch (error) { /* empty */ }\n    } else return;\n  }\n  for (ARRAY in TypedArrayConstructorsList) {\n    TypedArrayConstructor = global[ARRAY];\n    if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {\n      redefine(TypedArrayConstructor, KEY, property);\n    }\n  }\n};\n\nfor (NAME in TypedArrayConstructorsList) {\n  Constructor = global[NAME];\n  Prototype = Constructor && Constructor.prototype;\n  if (Prototype) createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR, Constructor);\n  else NATIVE_ARRAY_BUFFER_VIEWS = false;\n}\n\nfor (NAME in BigIntArrayConstructorsList) {\n  Constructor = global[NAME];\n  Prototype = Constructor && Constructor.prototype;\n  if (Prototype) createNonEnumerableProperty(Prototype, TYPED_ARRAY_CONSTRUCTOR, Constructor);\n}\n\n// WebKit bug - typed arrays constructors prototype is Object.prototype\nif (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {\n  // eslint-disable-next-line no-shadow -- safe\n  TypedArray = function TypedArray() {\n    throw TypeError('Incorrect invocation');\n  };\n  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {\n    if (global[NAME]) setPrototypeOf(global[NAME], TypedArray);\n  }\n}\n\nif (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {\n  TypedArrayPrototype = TypedArray.prototype;\n  if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {\n    if (global[NAME]) setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);\n  }\n}\n\n// WebKit bug - one more object in Uint8ClampedArray prototype chain\nif (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {\n  setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);\n}\n\nif (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {\n  TYPED_ARRAY_TAG_REQIRED = true;\n  defineProperty(TypedArrayPrototype, TO_STRING_TAG, { get: function () {\n    return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;\n  } });\n  for (NAME in TypedArrayConstructorsList) if (global[NAME]) {\n    createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME);\n  }\n}\n\nmodule.exports = {\n  NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,\n  TYPED_ARRAY_CONSTRUCTOR: TYPED_ARRAY_CONSTRUCTOR,\n  TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG,\n  aTypedArray: aTypedArray,\n  aTypedArrayConstructor: aTypedArrayConstructor,\n  exportTypedArrayMethod: exportTypedArrayMethod,\n  exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,\n  isView: isView,\n  isTypedArray: isTypedArray,\n  TypedArray: TypedArray,\n  TypedArrayPrototype: TypedArrayPrototype\n};\n","/* eslint-disable no-new -- required for testing */\nvar global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar NATIVE_ARRAY_BUFFER_VIEWS = require('../internals/array-buffer-view-core').NATIVE_ARRAY_BUFFER_VIEWS;\n\nvar ArrayBuffer = global.ArrayBuffer;\nvar Int8Array = global.Int8Array;\n\nmodule.exports = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () {\n  Int8Array(1);\n}) || !fails(function () {\n  new Int8Array(-1);\n}) || !checkCorrectnessOfIteration(function (iterable) {\n  new Int8Array();\n  new Int8Array(null);\n  new Int8Array(1.5);\n  new Int8Array(iterable);\n}, true) || fails(function () {\n  // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill\n  return new Int8Array(new ArrayBuffer(2), 1, undefined).length !== 1;\n});\n","var isObject = require('../internals/is-object');\n\nvar floor = Math.floor;\n\n// `IsIntegralNumber` abstract operation\n// https://tc39.es/ecma262/#sec-isintegralnumber\n// eslint-disable-next-line es/no-number-isinteger -- safe\nmodule.exports = Number.isInteger || function isInteger(it) {\n  return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n","var global = require('../internals/global');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar RangeError = global.RangeError;\n\nmodule.exports = function (it) {\n  var result = toIntegerOrInfinity(it);\n  if (result < 0) throw RangeError(\"The argument can't be less than 0\");\n  return result;\n};\n","var global = require('../internals/global');\nvar toPositiveInteger = require('../internals/to-positive-integer');\n\nvar RangeError = global.RangeError;\n\nmodule.exports = function (it, BYTES) {\n  var offset = toPositiveInteger(it);\n  if (offset % BYTES) throw RangeError('Wrong offset');\n  return offset;\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar aConstructor = require('../internals/a-constructor');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar aTypedArrayConstructor = require('../internals/array-buffer-view-core').aTypedArrayConstructor;\n\nmodule.exports = function from(source /* , mapfn, thisArg */) {\n  var C = aConstructor(this);\n  var O = toObject(source);\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 i, length, result, step, iterator, next;\n  if (iteratorMethod && !isArrayIteratorMethod(iteratorMethod)) {\n    iterator = getIterator(O, iteratorMethod);\n    next = iterator.next;\n    O = [];\n    while (!(step = call(next, iterator)).done) {\n      O.push(step.value);\n    }\n  }\n  if (mapping && argumentsLength > 2) {\n    mapfn = bind(mapfn, arguments[2]);\n  }\n  length = lengthOfArrayLike(O);\n  result = new (aTypedArrayConstructor(C))(length);\n  for (i = 0; length > i; i++) {\n    result[i] = mapping ? mapfn(O[i], i) : O[i];\n  }\n  return result;\n};\n","var global = require('../internals/global');\nvar isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar Array = global.Array;\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 (isConstructor(C) && (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 bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].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);\n    var length = lengthOfArrayLike(self);\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(target, value);      // filter\n        } else switch (TYPE) {\n          case 4: return false;             // every\n          case 7: push(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","'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 isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n  var NewTarget, NewTargetPrototype;\n  if (\n    // it can work only with native `setPrototypeOf`\n    setPrototypeOf &&\n    // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n    isCallable(NewTarget = dummy.constructor) &&\n    NewTarget !== Wrapper &&\n    isObject(NewTargetPrototype = NewTarget.prototype) &&\n    NewTargetPrototype !== Wrapper.prototype\n  ) setPrototypeOf($this, NewTargetPrototype);\n  return $this;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar ArrayBufferModule = require('../internals/array-buffer');\nvar anInstance = require('../internals/an-instance');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar isIntegralNumber = require('../internals/is-integral-number');\nvar toLength = require('../internals/to-length');\nvar toIndex = require('../internals/to-index');\nvar toOffset = require('../internals/to-offset');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar classof = require('../internals/classof');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar create = require('../internals/object-create');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar typedArrayFrom = require('../internals/typed-array-from');\nvar forEach = require('../internals/array-iteration').forEach;\nvar setSpecies = require('../internals/set-species');\nvar definePropertyModule = require('../internals/object-define-property');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar InternalStateModule = require('../internals/internal-state');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nvar getInternalState = InternalStateModule.get;\nvar setInternalState = InternalStateModule.set;\nvar nativeDefineProperty = definePropertyModule.f;\nvar nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\nvar round = Math.round;\nvar RangeError = global.RangeError;\nvar ArrayBuffer = ArrayBufferModule.ArrayBuffer;\nvar ArrayBufferPrototype = ArrayBuffer.prototype;\nvar DataView = ArrayBufferModule.DataView;\nvar NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;\nvar TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore.TYPED_ARRAY_CONSTRUCTOR;\nvar TYPED_ARRAY_TAG = ArrayBufferViewCore.TYPED_ARRAY_TAG;\nvar TypedArray = ArrayBufferViewCore.TypedArray;\nvar TypedArrayPrototype = ArrayBufferViewCore.TypedArrayPrototype;\nvar aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;\nvar isTypedArray = ArrayBufferViewCore.isTypedArray;\nvar BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';\nvar WRONG_LENGTH = 'Wrong length';\n\nvar fromList = function (C, list) {\n  aTypedArrayConstructor(C);\n  var index = 0;\n  var length = list.length;\n  var result = new C(length);\n  while (length > index) result[index] = list[index++];\n  return result;\n};\n\nvar addGetter = function (it, key) {\n  nativeDefineProperty(it, key, { get: function () {\n    return getInternalState(this)[key];\n  } });\n};\n\nvar isArrayBuffer = function (it) {\n  var klass;\n  return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer';\n};\n\nvar isTypedArrayIndex = function (target, key) {\n  return isTypedArray(target)\n    && !isSymbol(key)\n    && key in target\n    && isIntegralNumber(+key)\n    && key >= 0;\n};\n\nvar wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {\n  key = toPropertyKey(key);\n  return isTypedArrayIndex(target, key)\n    ? createPropertyDescriptor(2, target[key])\n    : nativeGetOwnPropertyDescriptor(target, key);\n};\n\nvar wrappedDefineProperty = function defineProperty(target, key, descriptor) {\n  key = toPropertyKey(key);\n  if (isTypedArrayIndex(target, key)\n    && isObject(descriptor)\n    && hasOwn(descriptor, 'value')\n    && !hasOwn(descriptor, 'get')\n    && !hasOwn(descriptor, 'set')\n    // TODO: add validation descriptor w/o calling accessors\n    && !descriptor.configurable\n    && (!hasOwn(descriptor, 'writable') || descriptor.writable)\n    && (!hasOwn(descriptor, 'enumerable') || descriptor.enumerable)\n  ) {\n    target[key] = descriptor.value;\n    return target;\n  } return nativeDefineProperty(target, key, descriptor);\n};\n\nif (DESCRIPTORS) {\n  if (!NATIVE_ARRAY_BUFFER_VIEWS) {\n    getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor;\n    definePropertyModule.f = wrappedDefineProperty;\n    addGetter(TypedArrayPrototype, 'buffer');\n    addGetter(TypedArrayPrototype, 'byteOffset');\n    addGetter(TypedArrayPrototype, 'byteLength');\n    addGetter(TypedArrayPrototype, 'length');\n  }\n\n  $({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {\n    getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,\n    defineProperty: wrappedDefineProperty\n  });\n\n  module.exports = function (TYPE, wrapper, CLAMPED) {\n    var BYTES = TYPE.match(/\\d+$/)[0] / 8;\n    var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';\n    var GETTER = 'get' + TYPE;\n    var SETTER = 'set' + TYPE;\n    var NativeTypedArrayConstructor = global[CONSTRUCTOR_NAME];\n    var TypedArrayConstructor = NativeTypedArrayConstructor;\n    var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;\n    var exported = {};\n\n    var getter = function (that, index) {\n      var data = getInternalState(that);\n      return data.view[GETTER](index * BYTES + data.byteOffset, true);\n    };\n\n    var setter = function (that, index, value) {\n      var data = getInternalState(that);\n      if (CLAMPED) value = (value = round(value)) < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF;\n      data.view[SETTER](index * BYTES + data.byteOffset, value, true);\n    };\n\n    var addElement = function (that, index) {\n      nativeDefineProperty(that, index, {\n        get: function () {\n          return getter(this, index);\n        },\n        set: function (value) {\n          return setter(this, index, value);\n        },\n        enumerable: true\n      });\n    };\n\n    if (!NATIVE_ARRAY_BUFFER_VIEWS) {\n      TypedArrayConstructor = wrapper(function (that, data, offset, $length) {\n        anInstance(that, TypedArrayConstructorPrototype);\n        var index = 0;\n        var byteOffset = 0;\n        var buffer, byteLength, length;\n        if (!isObject(data)) {\n          length = toIndex(data);\n          byteLength = length * BYTES;\n          buffer = new ArrayBuffer(byteLength);\n        } else if (isArrayBuffer(data)) {\n          buffer = data;\n          byteOffset = toOffset(offset, BYTES);\n          var $len = data.byteLength;\n          if ($length === undefined) {\n            if ($len % BYTES) throw RangeError(WRONG_LENGTH);\n            byteLength = $len - byteOffset;\n            if (byteLength < 0) throw RangeError(WRONG_LENGTH);\n          } else {\n            byteLength = toLength($length) * BYTES;\n            if (byteLength + byteOffset > $len) throw RangeError(WRONG_LENGTH);\n          }\n          length = byteLength / BYTES;\n        } else if (isTypedArray(data)) {\n          return fromList(TypedArrayConstructor, data);\n        } else {\n          return call(typedArrayFrom, TypedArrayConstructor, data);\n        }\n        setInternalState(that, {\n          buffer: buffer,\n          byteOffset: byteOffset,\n          byteLength: byteLength,\n          length: length,\n          view: new DataView(buffer)\n        });\n        while (index < length) addElement(that, index++);\n      });\n\n      if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);\n      TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype);\n    } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {\n      TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {\n        anInstance(dummy, TypedArrayConstructorPrototype);\n        return inheritIfRequired(function () {\n          if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data));\n          if (isArrayBuffer(data)) return $length !== undefined\n            ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES), $length)\n            : typedArrayOffset !== undefined\n              ? new NativeTypedArrayConstructor(data, toOffset(typedArrayOffset, BYTES))\n              : new NativeTypedArrayConstructor(data);\n          if (isTypedArray(data)) return fromList(TypedArrayConstructor, data);\n          return call(typedArrayFrom, TypedArrayConstructor, data);\n        }(), dummy, TypedArrayConstructor);\n      });\n\n      if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);\n      forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function (key) {\n        if (!(key in TypedArrayConstructor)) {\n          createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]);\n        }\n      });\n      TypedArrayConstructor.prototype = TypedArrayConstructorPrototype;\n    }\n\n    if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) {\n      createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor);\n    }\n\n    createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_CONSTRUCTOR, TypedArrayConstructor);\n\n    if (TYPED_ARRAY_TAG) {\n      createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);\n    }\n\n    exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;\n\n    $({\n      global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS\n    }, exported);\n\n    if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {\n      createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);\n    }\n\n    if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) {\n      createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES);\n    }\n\n    setSpecies(CONSTRUCTOR_NAME);\n  };\n} else module.exports = function () { /* empty */ };\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Float32Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Float32', function (init) {\n  return function Float32Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Float64Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Float64', function (init) {\n  return function Float64Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Int8Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Int8', function (init) {\n  return function Int8Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Int16Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Int16', function (init) {\n  return function Int16Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Int32Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Int32', function (init) {\n  return function Int32Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Uint8Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint8', function (init) {\n  return function Uint8Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Uint8ClampedArray` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint8', function (init) {\n  return function Uint8ClampedArray(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n}, true);\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Uint16Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint16', function (init) {\n  return function Uint16Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n","var createTypedArrayConstructor = require('../internals/typed-array-constructor');\n\n// `Uint32Array` constructor\n// https://tc39.es/ecma262/#sec-typedarray-objects\ncreateTypedArrayConstructor('Uint32', function (init) {\n  return function Uint32Array(data, byteOffset, length) {\n    return init(this, data, byteOffset, length);\n  };\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.at` method\n// https://github.com/tc39/proposal-relative-indexing-method\nexportTypedArrayMethod('at', function at(index) {\n  var O = aTypedArray(this);\n  var len = lengthOfArrayLike(O);\n  var relativeIndex = toIntegerOrInfinity(index);\n  var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;\n  return (k < 0 || k >= len) ? undefined : O[k];\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = require('../internals/typed-array-constructors-require-wrappers');\n\nvar aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;\nvar exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod;\n\n// `%TypedArray%.of` method\n// https://tc39.es/ecma262/#sec-%typedarray%.of\nexportTypedArrayStaticMethod('of', function of(/* ...items */) {\n  var index = 0;\n  var length = arguments.length;\n  var result = new (aTypedArrayConstructor(this))(length);\n  while (length > index) result[index] = arguments[index++];\n  return result;\n}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);\n","var arraySlice = require('../internals/array-slice-simple');\n\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    array,\n    mergeSort(arraySlice(array, 0, middle), comparefn),\n    mergeSort(arraySlice(array, 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 (array, left, right, comparefn) {\n  var llength = left.length;\n  var rlength = right.length;\n  var lindex = 0;\n  var rindex = 0;\n\n  while (lindex < llength || rindex < rlength) {\n    array[lindex + rindex] = (lindex < llength && rindex < rlength)\n      ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]\n      : lindex < llength ? left[lindex++] : right[rindex++];\n  } return array;\n};\n\nmodule.exports = mergeSort;\n","var userAgent = require('../internals/engine-user-agent');\n\nvar firefox = userAgent.match(/firefox\\/(\\d+)/i);\n\nmodule.exports = !!firefox && +firefox[1];\n","var userAgent = require('../internals/engine-user-agent');\n\nvar webkit = userAgent.match(/AppleWebKit\\/(\\d+)\\./);\n\nmodule.exports = !!webkit && +webkit[1];\n","'use strict';\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar aCallable = require('../internals/a-callable');\nvar internalSort = require('../internals/array-sort');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\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 Array = global.Array;\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar Uint16Array = global.Uint16Array;\nvar un$Sort = Uint16Array && uncurryThis(Uint16Array.prototype.sort);\n\n// WebKit\nvar ACCEPT_INCORRECT_ARGUMENTS = !!un$Sort && !(fails(function () {\n  un$Sort(new Uint16Array(2), null);\n}) && fails(function () {\n  un$Sort(new Uint16Array(2), {});\n}));\n\nvar STABLE_SORT = !!un$Sort && !fails(function () {\n  // feature detection can be too slow, so check engines versions\n  if (V8) return V8 < 74;\n  if (FF) return FF < 67;\n  if (IE_OR_EDGE) return true;\n  if (WEBKIT) return WEBKIT < 602;\n\n  var array = new Uint16Array(516);\n  var expected = Array(516);\n  var index, mod;\n\n  for (index = 0; index < 516; index++) {\n    mod = index % 4;\n    array[index] = 515 - index;\n    expected[index] = index - 2 * mod + 3;\n  }\n\n  un$Sort(array, function (a, b) {\n    return (a / 4 | 0) - (b / 4 | 0);\n  });\n\n  for (index = 0; index < 516; index++) {\n    if (array[index] !== expected[index]) return true;\n  }\n});\n\nvar getSortCompare = function (comparefn) {\n  return function (x, y) {\n    if (comparefn !== undefined) return +comparefn(x, y) || 0;\n    // eslint-disable-next-line no-self-compare -- NaN check\n    if (y !== y) return -1;\n    // eslint-disable-next-line no-self-compare -- NaN check\n    if (x !== x) return 1;\n    if (x === 0 && y === 0) return 1 / x > 0 && 1 / y < 0 ? 1 : -1;\n    return x > y;\n  };\n};\n\n// `%TypedArray%.prototype.sort` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort\nexportTypedArrayMethod('sort', function sort(comparefn) {\n  if (comparefn !== undefined) aCallable(comparefn);\n  if (STABLE_SORT) return un$Sort(this, comparefn);\n\n  return internalSort(aTypedArray(this), getSortCompare(comparefn));\n}, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);\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","// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`\nvar documentCreateElement = require('../internals/document-create-element');\n\nvar classList = documentCreateElement('span').classList;\nvar DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;\n\nmodule.exports = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\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 Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\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 (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n      if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n        if (setPrototypeOf) {\n          setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n        } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n          redefine(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 (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n    if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n      createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n    } else {\n      INCORRECT_VALUES_NAME = true;\n      defaultIterator = function values() { return call(nativeIterator, this); };\n    }\n  }\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  // define iterator\n  if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n    redefine(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n  }\n  Iterators[NAME] = defaultIterator;\n\n  return methods;\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","var global = require('../internals/global');\nvar DOMIterables = require('../internals/dom-iterables');\nvar DOMTokenListPrototype = require('../internals/dom-token-list-prototype');\nvar ArrayIteratorMethods = require('../modules/es.array.iterator');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ArrayValues = ArrayIteratorMethods.values;\n\nvar handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {\n  if (CollectionPrototype) {\n    // some Chrome versions have non-configurable methods on DOMTokenList\n    if (CollectionPrototype[ITERATOR] !== ArrayValues) try {\n      createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);\n    } catch (error) {\n      CollectionPrototype[ITERATOR] = ArrayValues;\n    }\n    if (!CollectionPrototype[TO_STRING_TAG]) {\n      createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);\n    }\n    if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {\n      // some Chrome versions have non-configurable methods on DOMTokenList\n      if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {\n        createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);\n      } catch (error) {\n        CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];\n      }\n    }\n  }\n};\n\nfor (var COLLECTION_NAME in DOMIterables) {\n  handlePrototype(global[COLLECTION_NAME] && global[COLLECTION_NAME].prototype, COLLECTION_NAME);\n}\n\nhandlePrototype(DOMTokenListPrototype, 'DOMTokenList');\n","var FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (bind ? call.bind(apply) : function () {\n  return call.apply(apply, arguments);\n});\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\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 Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\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  if (hasOwn(queue, 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 = arraySlice(arguments, 1);\n    queue[++counter] = function () {\n      apply(isCallable(fn) ? fn : Function(fn), 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);\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    isCallable(global.postMessage) &&\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 $ = require('../internals/export');\nvar global = require('../internals/global');\nvar task = require('../internals/task');\n\nvar FORCED = !global.setImmediate || !global.clearImmediate;\n\n// http://w3c.github.io/setImmediate/\n$({ global: true, bind: true, enumerable: true, forced: FORCED }, {\n  // `setImmediate` method\n  // http://w3c.github.io/setImmediate/#si-setImmediate\n  setImmediate: task.set,\n  // `clearImmediate` method\n  // http://w3c.github.io/setImmediate/#si-clearImmediate\n  clearImmediate: task.clear\n});\n","var global = require('../internals/global');\nvar bind = require('../internals/function-bind-context');\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 = bind(promise.then, promise);\n    notify = function () {\n      then(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    // strange IE + webpack dev server bug - use .bind(global)\n    macrotask = bind(macrotask, global);\n    notify = function () {\n      macrotask(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 $ = require('../internals/export');\nvar global = require('../internals/global');\nvar microtask = require('../internals/microtask');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar process = global.process;\n\n// `queueMicrotask` method\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask\n$({ global: true, enumerable: true, noTargetGet: true }, {\n  queueMicrotask: function queueMicrotask(fn) {\n    var domain = IS_NODE && process.domain;\n    microtask(domain ? domain.bind(fn) : fn);\n  }\n});\n","// File generated automatically. Don't modify it.\nimport 'core-js/modules/es.aggregate-error';\nimport 'core-js/modules/es.array.at';\nimport 'core-js/modules/es.array.reverse';\nimport 'core-js/modules/es.array-buffer.slice';\nimport 'core-js/modules/es.object.from-entries';\nimport 'core-js/modules/es.object.has-own';\nimport 'core-js/modules/es.promise.all-settled';\nimport 'core-js/modules/es.promise.any';\nimport 'core-js/modules/es.promise.finally';\nimport 'core-js/modules/es.string.match-all';\nimport 'core-js/modules/es.string.replace-all';\nimport 'core-js/modules/es.typed-array.float32-array';\nimport 'core-js/modules/es.typed-array.float64-array';\nimport 'core-js/modules/es.typed-array.int8-array';\nimport 'core-js/modules/es.typed-array.int16-array';\nimport 'core-js/modules/es.typed-array.int32-array';\nimport 'core-js/modules/es.typed-array.uint8-array';\nimport 'core-js/modules/es.typed-array.uint8-clamped-array';\nimport 'core-js/modules/es.typed-array.uint16-array';\nimport 'core-js/modules/es.typed-array.uint32-array';\nimport 'core-js/modules/es.typed-array.at';\nimport 'core-js/modules/es.typed-array.from';\nimport 'core-js/modules/es.typed-array.of';\nimport 'core-js/modules/es.typed-array.sort';\nimport 'core-js/modules/web.dom-collections.iterator';\nimport 'core-js/modules/web.immediate';\nimport 'core-js/modules/web.queue-microtask';\n",null,"/**\n * Gets object.toString result\n * @param value\n * @return {string}\n */\nexport default function getTag(value: any)\n{\n\treturn Object.prototype.toString.call(value);\n}","import getTag from '../internal/get-tag';\n\nconst objectCtorString = Function.prototype.toString.call(Object);\n\n/**\n * @memberOf BX\n */\nexport default class Type\n{\n\t/**\n\t * Checks that value is string\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isString(value: any): boolean\n\t{\n\t\treturn typeof value === 'string';\n\t}\n\n\t/**\n\t * Returns true if a value is not empty string\n\t * @param value\n\t * @returns {boolean}\n\t */\n\tstatic isStringFilled(value: any): boolean\n\t{\n\t\treturn Type.isString(value) && value !== '';\n\t}\n\n\t/**\n\t * Checks that value is function\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isFunction(value: any): boolean\n\t{\n\t\treturn typeof value === 'function';\n\t}\n\n\t/**\n\t * Checks that value is object\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isObject(value: any): boolean\n\t{\n\t\treturn !!value && (typeof value === 'object' || typeof value === 'function');\n\t}\n\n\t/**\n\t * Checks that value is object like\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isObjectLike(value: any): boolean\n\t{\n\t\treturn !!value && typeof value === 'object';\n\t}\n\n\t/**\n\t * Checks that value is plain object\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isPlainObject(value: any): boolean\n\t{\n\t\tif (!Type.isObjectLike(value) || getTag(value) !== '[object Object]')\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tconst proto = Object.getPrototypeOf(value);\n\t\tif (proto === null)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\tconst ctor = proto.hasOwnProperty('constructor') && proto.constructor;\n\n\t\treturn (\n\t\t\ttypeof ctor === 'function' &&\n\t\t\tFunction.prototype.toString.call(ctor) === objectCtorString\n\t\t);\n\t}\n\n\t/**\n\t * Checks that value is boolean\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isBoolean(value: any): boolean\n\t{\n\t\treturn value === true || value === false;\n\t}\n\n\t/**\n\t * Checks that value is number\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isNumber(value: any): boolean\n\t{\n\t\treturn !Number.isNaN(value) && typeof value === 'number';\n\t}\n\n\t/**\n\t * Checks that value is integer\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isInteger(value: any): boolean\n\t{\n\t\treturn Type.isNumber(value) && (value % 1) === 0;\n\t}\n\n\t/**\n\t * Checks that value is float\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isFloat(value: any): boolean\n\t{\n\t\treturn Type.isNumber(value) && !Type.isInteger(value);\n\t}\n\n\t/**\n\t * Checks that value is nil\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isNil(value: any): boolean\n\t{\n\t\treturn value === null || value === undefined;\n\t}\n\n\t/**\n\t * Checks that value is array\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isArray(value: any): boolean\n\t{\n\t\treturn !Type.isNil(value) && Array.isArray(value);\n\t}\n\n\t/**\n\t * Returns true if a value is an array and it has at least one element\n\t * @param value\n\t * @returns {boolean}\n\t */\n\tstatic isArrayFilled(value: any): boolean\n\t{\n\t\treturn Type.isArray(value) && value.length > 0;\n\t}\n\n\t/**\n\t * Checks that value is array like\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isArrayLike(value: any): boolean\n\t{\n\t\treturn (\n\t\t\t!Type.isNil(value)\n\t\t\t&& !Type.isFunction(value)\n\t\t\t&& value.length > -1\n\t\t\t&& value.length <= Number.MAX_SAFE_INTEGER\n\t\t);\n\t}\n\n\t/**\n\t * Checks that value is Date\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isDate(value: any): boolean\n\t{\n\t\treturn Type.isObjectLike(value) && getTag(value) === '[object Date]';\n\t}\n\n\t/**\n\t * Checks that is DOM node\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isDomNode(value: any): boolean\n\t{\n\t\treturn Type.isObjectLike(value) && !Type.isPlainObject(value) && 'nodeType' in value;\n\t}\n\n\t/**\n\t * Checks that value is element node\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isElementNode(value: any): boolean\n\t{\n\t\treturn Type.isDomNode(value) && value.nodeType === Node.ELEMENT_NODE;\n\t}\n\n\t/**\n\t * Checks that value is text node\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isTextNode(value: any): boolean\n\t{\n\t\treturn Type.isDomNode(value) && value.nodeType === Node.TEXT_NODE;\n\t}\n\n\t/**\n\t * Checks that value is Map\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isMap(value: any): boolean\n\t{\n\t\treturn Type.isObjectLike(value) && getTag(value) === '[object Map]';\n\t}\n\n\t/**\n\t * Checks that value is Set\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isSet(value: any): boolean\n\t{\n\t\treturn Type.isObjectLike(value) && getTag(value) === '[object Set]';\n\t}\n\n\t/**\n\t * Checks that value is WeakMap\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isWeakMap(value: any): boolean\n\t{\n\t\treturn Type.isObjectLike(value) && getTag(value) === '[object WeakMap]';\n\t}\n\n\t/**\n\t * Checks that value is WeakSet\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isWeakSet(value: any): boolean\n\t{\n\t\treturn Type.isObjectLike(value) && getTag(value) === '[object WeakSet]';\n\t}\n\n\t/**\n\t * Checks that value is prototype\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isPrototype(value: any): boolean\n\t{\n\t\treturn (\n\t\t\t(((typeof (value && value.constructor) === 'function') && value.constructor.prototype) || Object.prototype) === value\n\t\t);\n\t}\n\n\t/**\n\t * Checks that value is regexp\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isRegExp(value: any): boolean\n\t{\n\t\treturn Type.isObjectLike(value) && getTag(value) === '[object RegExp]';\n\t}\n\n\t/**\n\t * Checks that value is null\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isNull(value: any): boolean\n\t{\n\t\treturn value === null;\n\t}\n\n\t/**\n\t * Checks that value is undefined\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isUndefined(value: any): boolean\n\t{\n\t\treturn typeof value === 'undefined';\n\t}\n\n\t/**\n\t * Checks that value is ArrayBuffer\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isArrayBuffer(value: any): boolean\n\t{\n\t\treturn Type.isObjectLike(value) && getTag(value) === '[object ArrayBuffer]';\n\t}\n\n\t/**\n\t * Checks that value is typed array\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isTypedArray(value: any): boolean\n\t{\n\t\tconst regExpTypedTag = (\n\t\t\t/^\\[object (?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)]$/\n\t\t);\n\t\treturn Type.isObjectLike(value) && regExpTypedTag.test(getTag(value));\n\t}\n\n\t/**\n\t * Checks that value is Blob\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isBlob(value: any): boolean\n\t{\n\t\treturn (\n\t\t\tType.isObjectLike(value)\n\t\t\t&& Type.isNumber(value.size)\n\t\t\t&& Type.isString(value.type)\n\t\t\t&& Type.isFunction(value.slice)\n\t\t);\n\t}\n\n\t/**\n\t * Checks that value is File\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isFile(value: any): boolean\n\t{\n\t\treturn (\n\t\t\tType.isBlob(value)\n\t\t\t&& Type.isString(value.name)\n\t\t\t&& (Type.isNumber(value.lastModified) || Type.isObjectLike(value.lastModifiedDate))\n\t\t);\n\t}\n\n\t/**\n\t * Checks that value is FormData\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isFormData(value: any)\n\t{\n\t\treturn value instanceof FormData;\n\t}\n}\n","import Type from './type';\n\n/**\n * @memberOf BX\n */\nexport default class Reflection\n{\n\t/**\n\t * Gets link to function by function name\n\t * @param className\n\t * @return {?Function}\n\t */\n\tstatic getClass(className: string | Function): Function | null\n\t{\n\t\tif (Type.isString(className) && !!className)\n\t\t{\n\t\t\tlet classFn = null;\n\t\t\tlet currentNamespace = window;\n\t\t\tconst namespaces = className.split('.');\n\n\t\t\tfor (let i = 0; i < namespaces.length; i += 1)\n\t\t\t{\n\t\t\t\tconst namespace = namespaces[i];\n\n\t\t\t\tif (!currentNamespace[namespace])\n\t\t\t\t{\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\tcurrentNamespace = currentNamespace[namespace];\n\t\t\t\tclassFn = currentNamespace;\n\t\t\t}\n\n\t\t\treturn classFn;\n\t\t}\n\n\t\tif (Type.isFunction(className))\n\t\t{\n\t\t\treturn className;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\t/**\n\t * Creates a namespace or returns a link to a previously created one\n\t * @param {String} namespaceName\n\t * @return {Object<string, any> | Function | null}\n\t */\n\tstatic namespace(namespaceName: string): {[key: string]: any} | Function\n\t{\n\t\tlet parts = namespaceName.split('.');\n\t\tlet parent = window.BX;\n\n\t\tif (parts[0] === 'BX')\n\t\t{\n\t\t\tparts = parts.slice(1);\n\t\t}\n\n\t\tfor (let i = 0; i < parts.length; i += 1)\n\t\t{\n\t\t\tif (Type.isUndefined(parent[parts[i]]))\n\t\t\t{\n\t\t\t\tparent[parts[i]] = {};\n\t\t\t}\n\n\t\t\tparent = parent[parts[i]];\n\t\t}\n\n\t\treturn parent;\n\t}\n}","import Type from './type';\n\nconst reEscape = /[&<>'\"]/g;\nconst reUnescape = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g;\n\nconst escapeEntities = {\n\t'&': '&amp;',\n\t'<': '&lt;',\n\t'>': '&gt;',\n\t\"'\": '&#39;',\n\t'\"': '&quot;',\n};\n\nconst unescapeEntities = {\n\t'&amp;': '&',\n\t'&#38;': '&',\n\t'&lt;': '<',\n\t'&#60;': '<',\n\t'&gt;': '>',\n\t'&#62;': '>',\n\t'&apos;': \"'\",\n\t'&#39;': \"'\",\n\t'&quot;': '\"',\n\t'&#34;': '\"',\n};\n\n/**\n * @memberOf BX\n */\nexport default class Text\n{\n\t/**\n\t * Encodes all unsafe entities\n\t * @param {string} value\n\t * @return {string}\n\t */\n\tstatic encode(value: string): string\n\t{\n\t\tif (Type.isString(value))\n\t\t{\n\t\t\treturn value.replace(reEscape, item => escapeEntities[item]);\n\t\t}\n\n\t\treturn value;\n\t}\n\n\t/**\n\t * Decodes all encoded entities\n\t * @param {string} value\n\t * @return {string}\n\t */\n\tstatic decode(value: string): string\n\t{\n\t\tif (Type.isString(value))\n\t\t{\n\t\t\treturn value.replace(reUnescape, item => unescapeEntities[item]);\n\t\t}\n\n\t\treturn value;\n\t}\n\n\tstatic getRandom(length = 8)\n\t{\n\t\t// eslint-disable-next-line\n\t\treturn [...Array(length)].map(() => (~~(Math.random() * 36)).toString(36)).join('');\n\t}\n\n\tstatic toNumber(value: any): number\n\t{\n\t\tconst parsedValue = Number.parseFloat(value);\n\n\t\tif (Type.isNumber(parsedValue))\n\t\t{\n\t\t\treturn parsedValue;\n\t\t}\n\n\t\treturn 0;\n\t}\n\n\tstatic toInteger(value: any): number\n\t{\n\t\treturn Text.toNumber(Number.parseInt(value, 10));\n\t}\n\n\tstatic toBoolean(value: any, trueValues = []): boolean\n\t{\n\t\tconst transformedValue = Type.isString(value) ? value.toLowerCase() : value;\n\t\treturn ['true', 'y', '1', 1, true, ...trueValues].includes(transformedValue);\n\t}\n\n\tstatic toCamelCase(str: string)\n\t{\n\t\tif (!Type.isStringFilled(str))\n\t\t{\n\t\t\treturn str;\n\t\t}\n\n\t\tconst regex = /[-_\\s]+(.)?/g;\n\t\tif (!regex.test(str))\n\t\t{\n\t\t\treturn str.match(/^[A-Z]+$/) ? str.toLowerCase() : str[0].toLowerCase() + str.slice(1);\n\t\t}\n\n\t\tstr = str.toLowerCase();\n\t\tstr = str.replace(regex, function(match, letter) {\n\t\t\treturn letter ? letter.toUpperCase() : '';\n\t\t});\n\n\t\treturn str[0].toLowerCase() + str.substr(1);\n\t}\n\n\tstatic toPascalCase(str: string)\n\t{\n\t\tif (!Type.isStringFilled(str))\n\t\t{\n\t\t\treturn str;\n\t\t}\n\n\t\treturn this.capitalize(this.toCamelCase(str));\n\t}\n\n\tstatic toKebabCase(str: string)\n\t{\n\t\tif (!Type.isStringFilled(str))\n\t\t{\n\t\t\treturn str;\n\t\t}\n\n\t\tconst matches = str.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g);\n\t\tif (!matches)\n\t\t{\n\t\t\treturn str;\n\t\t}\n\n\t\treturn matches.map(x => x.toLowerCase()).join('-');\n\t}\n\n\tstatic capitalize(str: string)\n\t{\n\t\tif (!Type.isStringFilled(str))\n\t\t{\n\t\t\treturn str;\n\t\t}\n\n\t\treturn str[0].toUpperCase() + str.substr(1);\n\t}\n}","const aliases = {\n\tmousewheel: [\n\t\t'DOMMouseScroll',\n\t],\n\tbxchange: [\n\t\t'change',\n\t\t'cut',\n\t\t'paste',\n\t\t'drop',\n\t\t'keyup',\n\t],\n\tanimationend: [\n\t\t'animationend',\n\t\t'oAnimationEnd',\n\t\t'webkitAnimationEnd',\n\t\t'MSAnimationEnd',\n\t],\n\ttransitionend: [\n\t\t'webkitTransitionEnd',\n\t\t'otransitionend',\n\t\t'oTransitionEnd',\n\t\t'msTransitionEnd',\n\t\t'transitionend',\n\t],\n\tfullscreenchange: [\n\t\t'fullscreenchange',\n\t\t'webkitfullscreenchange',\n\t\t'mozfullscreenchange',\n\t\t'MSFullscreenChange',\n\t],\n\tfullscreenerror: [\n\t\t'fullscreenerror',\n\t\t'webkitfullscreenerror',\n\t\t'mozfullscreenerror',\n\t\t'MSFullscreenError',\n\t],\n};\n\nexport default aliases;","import Type from '../type';\n\nexport class Registry\n{\n\tregistry: WeakMap = new WeakMap();\n\n\tset(target: Element, event: string, listener: Function)\n\t{\n\t\tconst events = this.get(target);\n\n\t\tif (!Type.isSet(events[event]))\n\t\t{\n\t\t\tevents[event] = new Set();\n\t\t}\n\n\t\tevents[event].add(listener);\n\n\t\tthis.registry.set(target, events);\n\t}\n\n\tget(target: Element): {[event: string]: Set<Function>}\n\t{\n\t\treturn this.registry.get(target) || {};\n\t}\n\n\thas(target: Element, event?: string, listener?: Function): boolean\n\t{\n\t\tif (event && listener)\n\t\t{\n\t\t\treturn (\n\t\t\t\tthis.registry.has(target)\n\t\t\t\t&& this.registry.get(target)[event].has(listener)\n\t\t\t);\n\t\t}\n\n\t\treturn this.registry.has(target);\n\t}\n\n\tdelete(target: Element, event?: string, listener?: Function)\n\t{\n\t\tif (!Type.isDomNode(target))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif (Type.isString(event) && Type.isFunction(listener))\n\t\t{\n\t\t\tconst events = this.registry.get(target);\n\n\t\t\tif (Type.isPlainObject(events) && Type.isSet(events[event]))\n\t\t\t{\n\t\t\t\tevents[event].delete(listener);\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (Type.isString(event))\n\t\t{\n\t\t\tconst events = this.registry.get(target);\n\n\t\t\tif (Type.isPlainObject(events) && Type.isSet(events[event]))\n\t\t\t{\n\t\t\t\tevents[event] = new Set();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis.registry.delete(target);\n\t}\n}\n\nexport default new Registry();","import Type from '../type';\n\nfunction isOptionSupported(name)\n{\n\tlet isSupported = false;\n\n\ttry {\n\t\tconst options = Object.defineProperty({}, name, {\n\t\t\tget() {\n\t\t\t\tisSupported = true;\n\t\t\t\treturn undefined;\n\t\t\t},\n\t\t});\n\n\t\twindow.addEventListener('test', null, options);\n\t}\n\t// eslint-disable-next-line\n\tcatch (err) {}\n\n\treturn isSupported;\n}\n\nexport default function fetchSupportedListenerOptions(\n\toptions?: T<{\n\t\tcapture?: boolean,\n\t\tonce?: boolean,\n\t\tpassive?: boolean,\n\t}>,\n): ?T\n{\n\tif (!Type.isPlainObject(options))\n\t{\n\t\treturn options;\n\t}\n\n\treturn Object\n\t\t.keys(options)\n\t\t.reduce((acc, name) => {\n\t\t\tif (isOptionSupported(name))\n\t\t\t{\n\t\t\t\tacc[name] = options[name];\n\t\t\t}\n\n\t\t\treturn acc;\n\t\t}, {});\n}","import Type from '../type';\nimport aliases from './aliases';\nimport registry from './registry';\nimport fetchSupportedListenerOptions from './fetch-supported-listener-options';\n\nexport default function bind(\n\ttarget: Element,\n\teventName: string,\n\thandler: (event: Event) => void,\n\toptions?: {\n\t\tcapture?: boolean,\n\t\tonce?: boolean,\n\t\tpassive?: boolean,\n\t},\n): void\n{\n\tif (\n\t\t!Type.isObject(target)\n\t\t|| !Type.isFunction(target.addEventListener)\n\t)\n\t{\n\t\treturn;\n\t}\n\n\tconst listenerOptions = fetchSupportedListenerOptions(options);\n\n\tif (eventName in aliases)\n\t{\n\t\taliases[eventName].forEach((key) => {\n\t\t\ttarget.addEventListener(key, handler, listenerOptions);\n\t\t\tregistry.set(target, eventName, handler);\n\t\t});\n\n\t\treturn;\n\t}\n\n\ttarget.addEventListener(eventName, handler, listenerOptions);\n\tregistry.set(target, eventName, handler);\n}","import Type from '../type';\nimport aliases from './aliases';\nimport registry from './registry';\nimport fetchSupportedListenerOptions from './fetch-supported-listener-options';\n\nexport default function unbind(\n\ttarget: Element,\n\teventName: string,\n\thandler: Function,\n\toptions?: {\n\t\tcapture?: boolean,\n\t\tonce?: boolean,\n\t\tpassive?: boolean,\n\t},\n): void\n{\n\tif (\n\t\t!Type.isObject(target)\n\t\t|| !Type.isFunction(target.removeEventListener)\n\t)\n\t{\n\t\treturn;\n\t}\n\n\tconst listenerOptions = fetchSupportedListenerOptions(options);\n\n\tif (eventName in aliases)\n\t{\n\t\taliases[eventName].forEach((key) => {\n\t\t\ttarget.removeEventListener(key, handler, listenerOptions);\n\t\t\tregistry.delete(target, key, handler);\n\t\t});\n\n\t\treturn;\n\t}\n\n\ttarget.removeEventListener(eventName, handler, listenerOptions);\n\tregistry.delete(target, eventName, handler);\n}","import Type from '../type';\nimport unbind from './unbind';\nimport registry from './registry';\n\nexport default function unbindAll(target: any, eventName?: string): void\n{\n\tconst events = registry.get(target);\n\n\tObject.keys(events).forEach((currentEvent) => {\n\t\tevents[currentEvent].forEach((handler) => {\n\t\t\tif (!Type.isString(eventName) || eventName === currentEvent)\n\t\t\t{\n\t\t\t\tunbind(target, currentEvent, handler);\n\t\t\t}\n\t\t});\n\t});\n}","import bind from './bind';\nimport unbind from './unbind';\n\nexport default function bindOnce(\n\ttarget: Element,\n\teventName: string,\n\thandler: (event: Event) => void,\n\toptions?: {\n\t\tcapture?: boolean,\n\t\tonce?: boolean,\n\t\tpassive?: boolean,\n\t},\n): void\n{\n\tconst once = function once(...args) {\n\t\tunbind(target, eventName, once, options);\n\t\thandler(...args);\n\t};\n\n\tbind(target, eventName, once, options);\n}","import Type from '../type';\n\n// eslint-disable-next-line\nexport let debugState = true;\n\nexport function enableDebug()\n{\n\tdebugState = true;\n}\n\nexport function disableDebug()\n{\n\tdebugState = false;\n}\n\nexport function isDebugEnabled()\n{\n\treturn debugState;\n}\n\nexport default function debug(...args: any)\n{\n\tif (\n\t\tisDebugEnabled()\n\t\t&& Type.isObject(window.console)\n\t)\n\t{\n\t\tif (Type.isFunction(window.console.log))\n\t\t{\n\t\t\twindow.console.log('BX.debug: ', args.length > 0 ? args : args[0]);\n\n\t\t\tif (args[0] instanceof Error && args[0].stack)\n\t\t\t{\n\t\t\t\twindow.console.log('BX.debug error stack trace', args[0].stack);\n\t\t\t}\n\t\t}\n\n\t\tif (Type.isFunction(window.console.trace))\n\t\t{\n\t\t\t// eslint-disable-next-line\n\t\t\tconsole.trace();\n\t\t}\n\t}\n}","import typeof Extension from './extension';\n\nconst extensionsStorage: Map<string, Extension> = new Map();\n\nexport default extensionsStorage;\n","const ajaxController: string = 'main.bitrix.main.controller.loadext.getextensions';\n\nexport default function loadAssets(options: {extension: Array<string>}): Promise<any>\n{\n\treturn new Promise((resolve) => {\n\t\t// eslint-disable-next-line\n\t\tBX.ajax.runAction(ajaxController, {data: options}).then(resolve);\n\t});\n}\n","import Type from '../../../type';\n\nexport function fetchInlineScripts(acc: Array<string>, item: { JS: string, isInternal: boolean })\n{\n\tif (item.isInternal)\n\t{\n\t\tacc.push(item.JS);\n\t}\n\n\treturn acc;\n}\n\nexport function fetchExternalScripts(acc: Array<string>, item: { JS: string, isInternal: boolean })\n{\n\tif (!item.isInternal)\n\t{\n\t\tacc.push(item.JS);\n\t}\n\n\treturn acc;\n}\n\nexport function fetchExternalStyles(acc: Array<string>, item: ?string)\n{\n\tif (Type.isString(item) && item !== '')\n\t{\n\t\tacc.push(item);\n\t}\n\n\treturn acc;\n}\n\ntype SettingsEntry = { extension: string, script: string };\n\nexport function fetchExtensionSettings(html: string): Array<SettingsEntry>\n{\n\tif (Type.isStringFilled(html))\n\t{\n\t\tconst scripts = html.match(/<script type=\"extension\\/settings\" \\b[^>]*>([\\s\\S]*?)<\\/script>/g);\n\t\tif (Type.isArrayFilled(scripts))\n\t\t{\n\t\t\treturn scripts.map((script) => {\n\t\t\t\tconst [, extension] = script.match(/data-extension=\"(.[a-z0-9_.-]+)\"/);\n\n\t\t\t\treturn {\n\t\t\t\t\textension,\n\t\t\t\t\tscript,\n\t\t\t\t};\n\t\t\t});\n\t\t}\n\t}\n\n\treturn [];\n}\n\nexport function loadAll(items: Array<string>): Promise<void>\n{\n\tconst itemsList = Type.isArray(items) ? items : [items];\n\n\tif (!itemsList.length)\n\t{\n\t\treturn Promise.resolve();\n\t}\n\n\treturn new Promise((resolve) => {\n\t\t// eslint-disable-next-line\n\t\tBX.load(itemsList, resolve);\n\t});\n}\n","import loadAssets from './load-assets';\nimport Reflection from '../../../reflection';\nimport {\n\tfetchInlineScripts,\n\tfetchExternalScripts,\n\tfetchExternalStyles,\n\tfetchExtensionSettings,\n\tloadAll,\n} from './utils';\nimport Type from '../../../type';\n\nexport type ExtensionOptions = {\n\tname: string,\n\tnamespace?: string,\n\tloaded?: boolean,\n};\n\nexport type ExtensionPromiseValue = {\n\tname: string,\n\tnamespace: string,\n\texports: any,\n};\n\nconst defaultOptions = {\n\tloaded: false,\n};\n\nexport default class Extension\n{\n\tstatic State = {\n\t\tLOADED: 'LOADED',\n\t\tLOADING: 'LOADING',\n\t};\n\n\t#state: $Values<Extension.State> = Extension.State.LOADING;\n\t#name: string = '';\n\t#namespace: string = '';\n\t#promise: Promise<ExtensionPromiseValue> = null;\n\n\tconstructor(options: ExtensionOptions)\n\t{\n\t\tconst preparedOptions: ExtensionOptions = {\n\t\t\t...defaultOptions,\n\t\t\t...options,\n\t\t};\n\n\t\tthis.#name = preparedOptions.name;\n\t\tthis.#namespace = Type.isStringFilled(preparedOptions.namespace) ? preparedOptions.namespace : 'window';\n\n\t\tif (preparedOptions.loaded)\n\t\t{\n\t\t\tthis.#state = Extension.State.LOADED;\n\t\t}\n\t}\n\n\tload(): Promise<ExtensionPromiseValue>\n\t{\n\t\tif (this.#state === Extension.State.LOADED && !this.#promise)\n\t\t{\n\t\t\tthis.#promise = Promise.resolve(\n\t\t\t\tReflection.getClass(this.#namespace),\n\t\t\t);\n\t\t}\n\n\t\tif (this.#promise)\n\t\t{\n\t\t\treturn this.#promise;\n\t\t}\n\n\t\tthis.#state = Extension.State.LOADING;\n\t\tthis.#promise = new Promise((resolve) => {\n\t\t\tvoid loadAssets({ extension: [this.#name] })\n\t\t\t\t.then((assetsResult) => {\n\t\t\t\t\tif (!Type.isArrayFilled(assetsResult.data))\n\t\t\t\t\t{\n\t\t\t\t\t\tresolve(window);\n\t\t\t\t\t}\n\n\t\t\t\t\tconst extensionData = assetsResult.data.at(0);\n\t\t\t\t\tif (\n\t\t\t\t\t\tType.isPlainObject(extensionData.config)\n\t\t\t\t\t\t&& Type.isStringFilled(extensionData.config.namespace)\n\t\t\t\t\t)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.#namespace = extensionData.config.namespace;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst result = BX.processHTML(extensionData.html || '');\n\t\t\t\t\tconst inlineScripts = result.SCRIPT.reduce(fetchInlineScripts, []);\n\t\t\t\t\tconst externalScripts = result.SCRIPT.reduce(fetchExternalScripts, []);\n\t\t\t\t\tconst externalStyles = result.STYLE.reduce(fetchExternalStyles, []);\n\t\t\t\t\tconst settingsScripts = fetchExtensionSettings(result.HTML);\n\n\t\t\t\t\tsettingsScripts.forEach((entry: { extension: string, script: string }) => {\n\t\t\t\t\t\tdocument.body.insertAdjacentHTML('beforeend', entry.script);\n\t\t\t\t\t});\n\n\t\t\t\t\tinlineScripts.forEach((script: string) => {\n\t\t\t\t\t\tBX.evalGlobal(script);\n\t\t\t\t\t});\n\n\t\t\t\t\tvoid Promise\n\t\t\t\t\t\t.all([\n\t\t\t\t\t\t\tloadAll(externalScripts),\n\t\t\t\t\t\t\tloadAll(externalStyles),\n\t\t\t\t\t\t])\n\t\t\t\t\t\t.then(() => {\n\t\t\t\t\t\t\tthis.#state = Extension.State.LOADED;\n\n\t\t\t\t\t\t\tif (this.#namespace)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\treturn Reflection.getClass(this.#namespace);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn window;\n\t\t\t\t\t\t})\n\t\t\t\t\t\t.then((exports) => {\n\t\t\t\t\t\t\tresolve(exports);\n\t\t\t\t\t\t});\n\t\t\t\t});\n\t\t});\n\n\t\treturn this.#promise;\n\t}\n}\n","import extensionsStorage from './internal/extensions-storage';\nimport Extension, { type ExtensionPromiseValue } from './internal/extension';\nimport Type from '../../type';\n\nexport default async function loadExtension(...extensionName: Array<string>): Promise<any>\n{\n\tconst extensionNames: Array<string> = extensionName.flat();\n\n\tconst result: Array<Promise<ExtensionPromiseValue>> = extensionNames.map((name: string) => {\n\t\tif (extensionsStorage.has(name))\n\t\t{\n\t\t\treturn extensionsStorage.get(name).load();\n\t\t}\n\n\t\tconst extension: Extension = new Extension({ name });\n\t\textensionsStorage.set(name, extension);\n\n\t\treturn extension.load();\n\t});\n\n\treturn Promise\n\t\t.all(result)\n\t\t.then((exports: Array<any>) => {\n\t\t\treturn exports.reduce((acc, currentExports) => {\n\t\t\t\tif (Type.isObject(currentExports))\n\t\t\t\t{\n\t\t\t\t\treturn { ...acc, ...currentExports };\n\t\t\t\t}\n\n\t\t\t\treturn acc;\n\t\t\t}, {});\n\t\t});\n}\n","import Type from '../type';\nimport getTag from '../../internal/get-tag';\n\nconst cloneableTags = [\n\t'[object Object]',\n\t'[object Array]',\n\t'[object RegExp]',\n\t'[object Arguments]',\n\t'[object Date]',\n\t'[object Error]',\n\t'[object Map]',\n\t'[object Set]',\n\t'[object ArrayBuffer]',\n\t'[object DataView]',\n\t'[object Float32Array]',\n\t'[object Float64Array]',\n\t'[object Int8Array]',\n\t'[object Int16Array]',\n\t'[object Int32Array]',\n\t'[object Uint8Array]',\n\t'[object Uint16Array]',\n\t'[object Uint32Array]',\n\t'[object Uint8ClampedArray]',\n];\n\nfunction isCloneable(value: any): boolean %checks\n{\n\tconst isCloneableValue = Type.isObjectLike(value)\n\t\t&& cloneableTags.includes(getTag(value));\n\n\treturn isCloneableValue || Type.isDomNode(value);\n}\n\nexport function internalClone(value: any, map: WeakMap<any, any>): any\n{\n\tif (map.has(value))\n\t{\n\t\treturn map.get(value);\n\t}\n\n\tif (isCloneable(value))\n\t{\n\t\tif (Type.isArray(value))\n\t\t{\n\t\t\tconst cloned = Array.from(value);\n\n\t\t\tmap.set(value, cloned);\n\n\t\t\tvalue.forEach((item, index) => {\n\t\t\t\tcloned[index] = internalClone(item, map);\n\t\t\t});\n\n\t\t\treturn map.get(value);\n\t\t}\n\n\t\tif (Type.isDomNode(value))\n\t\t{\n\t\t\treturn value.cloneNode(true);\n\t\t}\n\n\t\tif (Type.isMap(value))\n\t\t{\n\t\t\tconst result = new Map();\n\n\t\t\tmap.set(value, result);\n\n\t\t\tvalue.forEach((item, key) => {\n\t\t\t\tresult.set(\n\t\t\t\t\tinternalClone(key, map),\n\t\t\t\t\tinternalClone(item, map)\n\t\t\t\t);\n\t\t\t});\n\n\t\t\treturn result;\n\t\t}\n\n\t\tif (Type.isSet(value))\n\t\t{\n\t\t\tconst result = new Set();\n\n\t\t\tmap.set(value, result);\n\n\t\t\tvalue.forEach((item) => {\n\t\t\t\tresult.add(internalClone(item, map));\n\t\t\t});\n\n\t\t\treturn result;\n\t\t}\n\n\t\tif (Type.isDate(value))\n\t\t{\n\t\t\treturn new Date(value);\n\t\t}\n\n\t\tif (Type.isRegExp(value))\n\t\t{\n\t\t\tconst regExpFlags = /\\w*$/;\n\t\t\tconst flags = regExpFlags.exec(value);\n\n\t\t\tlet result = new RegExp(value.source);\n\n\t\t\tif (flags && Type.isArray(flags))\n\t\t\t{\n\t\t\t\tresult = new RegExp(value.source, flags[0]);\n\t\t\t}\n\n\t\t\tresult.lastIndex = value.lastIndex;\n\n\t\t\treturn result;\n\t\t}\n\n\t\tconst proto = Object.getPrototypeOf(value);\n\t\tconst result = Object.assign(Object.create(proto), value);\n\n\t\tmap.set(value, result);\n\n\t\tObject.keys(value).forEach((key) => {\n\t\t\tresult[key] = internalClone(value[key], map);\n\t\t});\n\n\t\treturn result;\n\t}\n\n\treturn value;\n}\n\n/**\n * Clones any cloneable object\n * @param value\n * @return {*}\n */\nexport default function clone(value: any): any\n{\n\treturn internalClone(value, new WeakMap());\n}","import Type from '../type';\n\nexport default function merge(current, target)\n{\n\treturn Object.entries(target).reduce((acc, [key, value]) => {\n\t\tif (\n\t\t\t!Type.isDomNode(acc[key])\n\t\t\t&& Type.isObjectLike(acc[key])\n\t\t\t&& Type.isObjectLike(value)\n\t\t)\n\t\t{\n\t\t\tacc[key] = merge(acc[key], value);\n\t\t\treturn acc;\n\t\t}\n\n\t\tacc[key] = value;\n\t\treturn acc;\n\t}, current);\n}","import Type from '../type';\n\nexport default function createComparator(fields, orders = [])\n{\n\treturn (a, b) => {\n\t\tconst field = fields[0];\n\t\tconst order = orders[0] || 'asc';\n\n\t\tif (Type.isUndefined(field))\n\t\t{\n\t\t\treturn 0;\n\t\t}\n\n\t\tlet valueA = a[field];\n\t\tlet valueB = b[field];\n\n\t\tif (Type.isString(valueA) && Type.isString(valueB))\n\t\t{\n\t\t\tvalueA = valueA.toLowerCase();\n\t\t\tvalueB = valueB.toLowerCase();\n\t\t}\n\n\t\tif (valueA < valueB)\n\t\t{\n\t\t\treturn order === 'asc' ? -1 : 1;\n\t\t}\n\n\t\tif (valueA > valueB)\n\t\t{\n\t\t\treturn order === 'asc' ? 1 : -1;\n\t\t}\n\n\t\treturn createComparator(fields.slice(1), orders.slice(1))(a, b);\n\t};\n}","import extensionsStorage from './extensions-storage';\nimport Extension from './extension';\n\nexport default function registerExtension(options): void\n{\n\tif (!extensionsStorage.has(options.name))\n\t{\n\t\textensionsStorage.set(options.name, new Extension(options));\n\t}\n}\n","import Type from './type';\nimport debug from './runtime/debug';\nimport loadExtension from './runtime/loadextension/load-extension';\nimport clone from './runtime/clone';\nimport {\n\tfetchExternalScripts,\n\tfetchExternalStyles,\n\tfetchInlineScripts,\n\tloadAll,\n} from './runtime/loadextension/internal/utils';\nimport merge from './runtime/merge';\nimport createComparator from './runtime/create-comparator';\nimport registerExtension from './runtime/loadextension/internal/register-extension';\n\n/**\n * @memberOf BX\n */\nexport default class Runtime\n{\n\tstatic debug = debug;\n\tstatic loadExtension = loadExtension;\n\tstatic registerExtension = registerExtension;\n\tstatic clone = clone;\n\n\tstatic debounce(func: Function, wait: number = 0, context = null): Function\n\t{\n\t\tlet timeoutId;\n\n\t\treturn function debounced(...args)\n\t\t{\n\t\t\tif (Type.isNumber(timeoutId))\n\t\t\t{\n\t\t\t\tclearTimeout(timeoutId);\n\t\t\t}\n\n\t\t\ttimeoutId = setTimeout(() => {\n\t\t\t\tfunc.apply((context || this), args);\n\t\t\t}, wait);\n\t\t};\n\t}\n\n\tstatic throttle(func: Function, wait: number = 0, context = null): Function\n\t{\n\t\tlet timer = 0;\n\t\tlet invoke;\n\n\t\treturn function wrapper(...args)\n\t\t{\n\t\t\tinvoke = true;\n\n\t\t\tif (!timer)\n\t\t\t{\n\t\t\t\tconst q = function q()\n\t\t\t\t{\n\t\t\t\t\tif (invoke)\n\t\t\t\t\t{\n\t\t\t\t\t\tfunc.apply((context || this), args);\n\t\t\t\t\t\tinvoke = false;\n\t\t\t\t\t\ttimer = setTimeout(q, wait);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ttimer = null;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tq();\n\t\t\t}\n\t\t};\n\t}\n\n\tstatic html(node: HTMLElement, html, params = {}): Promise | string\n\t{\n\t\tif (Type.isNil(html) && Type.isDomNode(node))\n\t\t{\n\t\t\treturn node.innerHTML;\n\t\t}\n\n\t\t// eslint-disable-next-line\n\t\tconst parsedHtml = BX.processHTML(html);\n\t\tconst externalCss = parsedHtml.STYLE.reduce(fetchExternalStyles, []);\n\t\tconst externalJs = parsedHtml.SCRIPT.reduce(fetchExternalScripts, []);\n\t\tconst inlineJs = parsedHtml.SCRIPT.reduce(fetchInlineScripts, []);\n\n\t\tif (Type.isDomNode(node))\n\t\t{\n\t\t\tif (params.htmlFirst || (!externalJs.length && !externalCss.length))\n\t\t\t{\n\t\t\t\tif (params.useAdjacentHTML)\n\t\t\t\t{\n\t\t\t\t\tnode.insertAdjacentHTML('beforeend', parsedHtml.HTML);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tnode.innerHTML = parsedHtml.HTML;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn Promise\n\t\t\t.all([\n\t\t\t\tloadAll(externalJs),\n\t\t\t\tloadAll(externalCss),\n\t\t\t])\n\t\t\t.then(() => {\n\t\t\t\tif (Type.isDomNode(node) && (externalJs.length > 0 || externalCss.length > 0))\n\t\t\t\t{\n\t\t\t\t\tif (params.useAdjacentHTML)\n\t\t\t\t\t{\n\t\t\t\t\t\tnode.insertAdjacentHTML('beforeend', parsedHtml.HTML);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnode.innerHTML = parsedHtml.HTML;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// eslint-disable-next-line\n\t\t\t\tinlineJs.forEach(script => BX.evalGlobal(script));\n\n\t\t\t\tif (Type.isFunction(params.callback))\n\t\t\t\t{\n\t\t\t\t\tparams.callback();\n\t\t\t\t}\n\t\t\t});\n\t}\n\n\t/**\n\t * Merges objects or arrays\n\t * @param targets\n\t * @return {any}\n\t */\n\tstatic merge(...targets)\n\t{\n\t\tif (Type.isArray(targets[0]))\n\t\t{\n\t\t\ttargets.unshift([]);\n\t\t}\n\t\telse if (Type.isObject(targets[0]))\n\t\t{\n\t\t\ttargets.unshift({});\n\t\t}\n\n\t\treturn targets.reduce((acc, item) => {\n\t\t\treturn merge(acc, item);\n\t\t}, targets[0]);\n\t}\n\n\tstatic orderBy(\n\t\tcollection: Array<{[key: string]: any}> | {[key: string]: {[key: string]: any}},\n\t\tfields: Array<string> = [],\n\t\torders: Array<string> = [],\n\t)\n\t{\n\t\tconst comparator = createComparator(fields, orders);\n\t\treturn Object.values(collection).sort(comparator);\n\t}\n\n\tstatic destroy(target, errorMessage = 'Object is destroyed')\n\t{\n\t\tif (Type.isObject(target))\n\t\t{\n\t\t\tconst onPropertyAccess = () => {\n\t\t\t\tthrow new Error(errorMessage);\n\t\t\t};\n\t\t\tconst ownProperties = Object.keys(target);\n\t\t\tconst prototypeProperties = (() => {\n\t\t\t\tconst targetPrototype = Object.getPrototypeOf(target);\n\t\t\t\tif (Type.isObject(targetPrototype))\n\t\t\t\t{\n\t\t\t\t\treturn Object.getOwnPropertyNames(targetPrototype);\n\t\t\t\t}\n\n\t\t\t\treturn [];\n\t\t\t})();\n\n\t\t\tconst uniquePropertiesList = [\n\t\t\t\t...new Set([...ownProperties, ...prototypeProperties]),\n\t\t\t];\n\n\t\t\tuniquePropertiesList\n\t\t\t\t.filter((name) => {\n\t\t\t\t\tconst descriptor = Object.getOwnPropertyDescriptor(target, name);\n\t\t\t\t\treturn (\n\t\t\t\t\t\t!/__(.+)__/.test(name)\n\t\t\t\t\t\t&& (\n\t\t\t\t\t\t\t!Type.isObject(descriptor)\n\t\t\t\t\t\t\t|| descriptor.configurable === true\n\t\t\t\t\t\t)\n\t\t\t\t\t);\n\t\t\t\t})\n\t\t\t\t.forEach((name) => {\n\t\t\t\t\tObject.defineProperty(target, name, {\n\t\t\t\t\t\tget: onPropertyAccess,\n\t\t\t\t\t\tset: onPropertyAccess,\n\t\t\t\t\t\tconfigurable: false,\n\t\t\t\t\t});\n\t\t\t\t});\n\n\t\t\tObject.setPrototypeOf(target, null);\n\t\t}\n\t}\n}\n","import Type from './type';\n\nconst isError = Symbol.for('BX.BaseError.isError');\n\n/**\n * @memberOf BX\n */\nexport default class BaseError\n{\n\tconstructor(message?: string, code?: string, customData?: any)\n\t{\n\t\tthis[isError] = true;\n\t\tthis.message = '';\n\t\tthis.code = null;\n\t\tthis.customData = null;\n\n\t\tthis.setMessage(message);\n\t\tthis.setCode(code);\n\t\tthis.setCustomData(customData);\n\t}\n\n\t/**\n\t * Returns a brief description of the error\n\t * @returns {string}\n\t */\n\tgetMessage(): string\n\t{\n\t\treturn this.message;\n\t}\n\n\t/**\n\t * Sets a message of the error\n\t * @param {string} message\n\t * @returns {this}\n\t */\n\tsetMessage(message: string): this\n\t{\n\t\tif (Type.isString(message))\n\t\t{\n\t\t\tthis.message = message;\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns a code of the error\n\t * @returns {?string}\n\t */\n\tgetCode(): string\n\t{\n\t\treturn this.code;\n\t}\n\n\t/**\n\t * Sets a code of the error\n\t * @param {string} code\n\t * @returns {this}\n\t */\n\tsetCode(code: string): this\n\t{\n\t\tif (Type.isStringFilled(code) || code === null)\n\t\t{\n\t\t\tthis.code = code;\n\t\t}\n\n\t\treturn this;\n\t}\n\n\n\t/**\n\t * Returns custom data of the error\n\t * @returns {null|*}\n\t */\n\tgetCustomData(): any\n\t{\n\t\treturn this.customData;\n\t}\n\n\t/**\n\t * Sets custom data of the error\n\t * @returns {this}\n\t */\n\tsetCustomData(customData: any): this\n\t{\n\t\tif (!Type.isUndefined(customData))\n\t\t{\n\t\t\tthis.customData = customData;\n\t\t}\n\n\t\treturn this;\n\t}\n\n\ttoString()\n\t{\n\t\tconst code = this.getCode();\n\t\tconst message = this.getMessage();\n\n\t\tif (!Type.isStringFilled(code) && !Type.isStringFilled(message))\n\t\t{\n\t\t\treturn '';\n\t\t}\n\t\telse if (!Type.isStringFilled(code))\n\t\t{\n\t\t\treturn `Error: ${message}`;\n\t\t}\n\t\telse if (!Type.isStringFilled(message))\n\t\t{\n\t\t\treturn code;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn `${code}: ${message}`;\n\t\t}\n\t}\n\n\t/**\n\t * Returns true if the object is an instance of BaseError\n\t * @param error\n\t * @returns {boolean}\n\t */\n\tstatic isError(error: BaseError)\n\t{\n\t\treturn Type.isObject(error) && error[isError] === true;\n\t}\n}","import Type from '../type';\nimport BaseError from \"../base-error\";\n/**\n * Implements base event object interface\n */\nexport default class BaseEvent<DataType: any>\n{\n\tconstructor(\n\t\toptions: {\n\t\t\tdata?: any,\n\t\t\tcompatData?: Array\n\t\t} = {\n\t\t\tdata: {},\n\t\t},\n\t)\n\t{\n\t\tthis.type = '';\n\t\tthis.data = null;\n\t\tthis.target = null;\n\t\tthis.compatData = null;\n\t\tthis.defaultPrevented = false;\n\t\tthis.immediatePropagationStopped = false;\n\t\tthis.errors = [];\n\n\t\tthis.setData(options.data);\n\t\tthis.setCompatData(options.compatData);\n\t}\n\n\tstatic create(options): this\n\t{\n\t\treturn new this(options);\n\t}\n\n\t/**\n\t * Returns the name of the event\n\t * @returns {string}\n\t */\n\tgetType(): string\n\t{\n\t\treturn this.type;\n\t}\n\n\t/**\n\t *\n\t * @param {string} type\n\t */\n\tsetType(type: string): this\n\t{\n\t\tif (Type.isStringFilled(type))\n\t\t{\n\t\t\tthis.type = type;\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns an event data\n\t */\n\tgetData(): DataType\n\t{\n\t\treturn this.data;\n\t}\n\n\t/**\n\t * Sets an event data\n\t * @param data\n\t */\n\tsetData(data: any): this\n\t{\n\t\tif (!Type.isUndefined(data))\n\t\t{\n\t\t\tthis.data = data;\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns arguments for BX.addCustomEvent handlers (deprecated).\n\t * @returns {array | null}\n\t */\n\tgetCompatData(): Array | null\n\t{\n\t\treturn this.compatData;\n\t}\n\n\t/**\n\t * Sets arguments for BX.addCustomEvent handlers (deprecated)\n\t * @param data\n\t */\n\tsetCompatData(data: Array): this\n\t{\n\t\tif (Type.isArrayLike(data))\n\t\t{\n\t\t\tthis.compatData = data;\n\t\t}\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Sets a event target\n\t * @param target\n\t */\n\tsetTarget(target): this\n\t{\n\t\tthis.target = target;\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns a event target\n\t */\n\tgetTarget(): any\n\t{\n\t\treturn this.target;\n\t}\n\n\t/**\n\t * Returns an array of event errors\n\t * @returns {[]}\n\t */\n\tgetErrors(): Array<BaseError>\n\t{\n\t\treturn this.errors;\n\t}\n\n\t/**\n\t * Adds an error of the event.\n\t * Event listeners can prevent emitter's default action and set the reason of this behavior.\n\t * @param error\n\t */\n\tsetError(error: BaseError)\n\t{\n\t\tif (BaseError.isError(error))\n\t\t{\n\t\t\tthis.errors.push(error);\n\t\t}\n\t}\n\n\t/**\n\t * Prevents default action\n\t */\n\tpreventDefault()\n\t{\n\t\tthis.defaultPrevented = true;\n\t}\n\n\t/**\n\t * Checks that is default action prevented\n\t * @return {boolean}\n\t */\n\tisDefaultPrevented(): boolean\n\t{\n\t\treturn this.defaultPrevented;\n\t}\n\n\t/**\n\t * Stops event immediate propagation\n\t */\n\tstopImmediatePropagation()\n\t{\n\t\tthis.immediatePropagationStopped = true;\n\t}\n\n\t/**\n\t * Checks that is immediate propagation stopped\n\t * @return {boolean}\n\t */\n\tisImmediatePropagationStopped(): boolean\n\t{\n\t\treturn this.immediatePropagationStopped;\n\t}\n}","import Type from \"../../type\";\n\nexport default class EventStore\n{\n\tconstructor(options: { defaultMaxListeners?: number } = {})\n\t{\n\t\tthis.defaultMaxListeners = Type.isNumber(options.defaultMaxListeners) ? options.defaultMaxListeners : 10;\n\t\tthis.eventStore = new WeakMap();\n\t}\n\n\tadd(target: Object, options: { maxListeners?: number } = {})\n\t{\n\t\tconst record = this.getRecordScheme();\n\t\tif (Type.isNumber(options.maxListeners))\n\t\t{\n\t\t\trecord.maxListeners = options.maxListeners;\n\t\t}\n\n\t\tthis.eventStore.set(target, record);\n\n\t\treturn record;\n\t}\n\n\tget(target: Object)\n\t{\n\t\treturn this.eventStore.get(target);\n\t}\n\n\tgetOrAdd(target: Object, options: { maxListeners?: number } = {})\n\t{\n\t\treturn this.get(target) || this.add(target, options);\n\t}\n\n\tdelete(context: any)\n\t{\n\t\tthis.eventStore.delete(context);\n\t}\n\n\tgetRecordScheme()\n\t{\n\t\treturn {\n\t\t\teventsMap: new Map(),\n\t\t\tonceMap: new Map(),\n\t\t\tmaxListeners: this.getDefaultMaxListeners(),\n\t\t\teventsMaxListeners: new Map(),\n\t\t};\n\t}\n\n\tgetDefaultMaxListeners()\n\t{\n\t\treturn this.defaultMaxListeners;\n\t}\n}\n\n","import Type from \"../../type\";\nimport Runtime from \"../../runtime\";\n\nexport default class WarningStore\n{\n\tconstructor()\n\t{\n\t\tthis.warnings = new Map();\n\t\tthis.printDelayed = Runtime.debounce(this.print.bind(this), 500);\n\t}\n\n\tadd(target, eventName, listeners)\n\t{\n\t\tlet contextWarnings = this.warnings.get(target);\n\t\tif (!contextWarnings)\n\t\t{\n\t\t\tcontextWarnings = Object.create(null);\n\t\t\tthis.warnings.set(target, contextWarnings);\n\t\t}\n\n\t\tif (!contextWarnings[eventName])\n\t\t{\n\t\t\tcontextWarnings[eventName] = {};\n\t\t}\n\n\t\tcontextWarnings[eventName].size = listeners.size;\n\t\tif (!Type.isArray(contextWarnings[eventName].errors))\n\t\t{\n\t\t\tcontextWarnings[eventName].errors = [];\n\t\t}\n\n\t\tcontextWarnings[eventName].errors.push(new Error());\n\t}\n\n\tprint()\n\t{\n\t\tthis.warnings.forEach((warnings) => {\n\t\t\tfor (let eventName in warnings)\n\t\t\t{\n\t\t\t\tconsole.groupCollapsed(\n\t\t\t\t\t'Possible BX.Event.EventEmitter memory leak detected. ' +\n\t\t\t\t\twarnings[eventName].size + ' \"' + eventName + '\" listeners added. ' +\n\t\t\t\t\t'Use emitter.setMaxListeners() to increase limit.'\n\t\t\t\t);\n\t\t\t\tconsole.dir(warnings[eventName].errors);\n\t\t\t\tconsole.groupEnd();\n\t\t\t}\n\t\t});\n\n\t\tthis.clear();\n\t}\n\n\tclear()\n\t{\n\t\tthis.warnings.clear();\n\t}\n\n\tprintDelayed()\n\t{\n\t}\n}","import Type from '../type';\nimport Runtime from '../runtime';\nimport Reflection from '../reflection';\nimport BaseEvent from './base-event';\nimport EventStore from './event-emitter/eventstore';\nimport WarningStore from './event-emitter/warningstore';\n\nconst eventStore = new EventStore({ defaultMaxListeners: 10 });\nconst warningStore = new WarningStore();\nconst aliasStore = new Map();\n\nconst globalTarget = {\n\tGLOBAL_TARGET: 'GLOBAL_TARGET' // this key only for debugging purposes\n};\neventStore.add(globalTarget, { maxListeners: 25 });\n\nconst isEmitterProperty = Symbol.for('BX.Event.EventEmitter.isEmitter');\nconst namespaceProperty = Symbol('namespaceProperty');\nconst targetProperty = Symbol('targetProperty');\n\nexport default class EventEmitter\n{\n\tstatic GLOBAL_TARGET = globalTarget;\n\tstatic DEFAULT_MAX_LISTENERS = eventStore.getDefaultMaxListeners();\n\n\t/** @private */\n\tstatic sequenceValue = 1;\n\n\tconstructor(...args)\n\t{\n\t\tthis[targetProperty] = null;\n\t\tthis[namespaceProperty] = null;\n\t\tthis[isEmitterProperty] = true;\n\n\t\tlet target = this;\n\t\tif (Object.getPrototypeOf(this) === EventEmitter.prototype && args.length > 0) //new EventEmitter(obj) case\n\t\t{\n\t\t\tif (!Type.isObject(args[0]))\n\t\t\t{\n\t\t\t\tthrow new TypeError(`The \"target\" argument must be an object.`);\n\t\t\t}\n\n\t\t\ttarget = args[0];\n\n\t\t\tthis.setEventNamespace(args[1]);\n\t\t}\n\n\t\tthis[targetProperty] = target;\n\t}\n\n\t/**\n\t * Makes a target observable\n\t * @param {object} target\n\t * @param {string} namespace\n\t */\n\tstatic makeObservable(target: Object, namespace: string): void\n\t{\n\t\tif (!Type.isObject(target))\n\t\t{\n\t\t\tthrow new TypeError('The \"target\" argument must be an object.');\n\t\t}\n\n\t\tif (!Type.isStringFilled(namespace))\n\t\t{\n\t\t\tthrow new TypeError('The \"namespace\" must be an non-empty string.');\n\t\t}\n\n\t\tif (EventEmitter.isEventEmitter(target))\n\t\t{\n\t\t\tthrow new TypeError('The \"target\" is an event emitter already.');\n\t\t}\n\n\t\tconst targetProto = Object.getPrototypeOf(target);\n\t\tconst emitter = new EventEmitter();\n\t\temitter.setEventNamespace(namespace);\n\n\t\tObject.setPrototypeOf(emitter, targetProto);\n\t\tObject.setPrototypeOf(target, emitter);\n\n\t\tObject.getOwnPropertyNames(EventEmitter.prototype).forEach(method => {\n\n\t\t\tif (['constructor'].includes(method))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\temitter[method] = function(...args) {\n\t\t\t\treturn EventEmitter.prototype[method].apply(target, args);\n\t\t\t}\n\t\t});\n\t}\n\n\tsetEventNamespace(namespace)\n\t{\n\t\tif (Type.isStringFilled(namespace))\n\t\t{\n\t\t\tthis[namespaceProperty] = namespace;\n\t\t}\n\t}\n\n\tgetEventNamespace()\n\t{\n\t\treturn this[namespaceProperty];\n\t}\n\n\t/**\n\t * Subscribes listener on specified global event\n\t * @param {object} target\n\t * @param {string} eventName\n\t * @param {Function<BaseEvent>} listener\n\t * @param {object} options\n\t */\n\tstatic subscribe(\n\t\ttarget: Object,\n\t\teventName: string,\n\t\tlistener: (event: BaseEvent) => void,\n\t\toptions?: {\n\t\t\tcompatMode?: boolean,\n\t\t\tuseGlobalNaming?: boolean\n\t\t}\n\t): void\n\t{\n\t\tif (Type.isString(target))\n\t\t{\n\t\t\toptions = listener;\n\t\t\tlistener = eventName;\n\t\t\teventName = target;\n\t\t\ttarget = this.GLOBAL_TARGET;\n\t\t}\n\n\t\tif (!Type.isObject(target))\n\t\t{\n\t\t\tthrow new TypeError(`The \"target\" argument must be an object.`);\n\t\t}\n\n\t\teventName = this.normalizeEventName(eventName);\n\t\tif (!Type.isStringFilled(eventName))\n\t\t{\n\t\t\tthrow new TypeError(`The \"eventName\" argument must be a string.`);\n\t\t}\n\n\t\tlistener = this.normalizeListener(listener);\n\n\t\toptions = Type.isPlainObject(options) ? options : {};\n\t\tconst fullEventName = this.resolveEventName(eventName, target, options.useGlobalNaming === true);\n\t\tconst { eventsMap, onceMap } = eventStore.getOrAdd(target);\n\t\tconst onceListeners = onceMap.get(fullEventName);\n\t\tlet listeners = eventsMap.get(fullEventName);\n\n\t\tif ((listeners && listeners.has(listener)) || (onceListeners && onceListeners.has(listener)))\n\t\t{\n\t\t\tconsole.error(`You cannot subscribe the same \"${fullEventName}\" event listener twice.`);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (listeners)\n\t\t\t{\n\t\t\t\tlisteners.set(\n\t\t\t\t\tlistener,\n\t\t\t\t\t{\n\t\t\t\t\t\tlistener,\n\t\t\t\t\t\toptions,\n\t\t\t\t\t\tsort: this.getNextSequenceValue()\n\t\t\t\t\t}\n\t\t\t\t)\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlisteners = new Map([[\n\t\t\t\t\tlistener,\n\t\t\t\t\t{\n\t\t\t\t\t\tlistener,\n\t\t\t\t\t\toptions,\n\t\t\t\t\t\tsort: this.getNextSequenceValue()\n\t\t\t\t\t}\n\t\t\t\t]]);\n\n\t\t\t\teventsMap.set(fullEventName, listeners);\n\t\t\t}\n\t\t}\n\n\t\tconst maxListeners = this.getMaxListeners(target, eventName);\n\t\tif (listeners.size > maxListeners)\n\t\t{\n\t\t\twarningStore.add(target, fullEventName, listeners);\n\t\t\twarningStore.printDelayed();\n\t\t}\n\t}\n\n\t/**\n\t * Subscribes a listener on a specified event\n\t * @param {string} eventName\n\t * @param {Function<BaseEvent>} listener\n\t * @return {this}\n\t */\n\tsubscribe(eventName: string, listener: (event: BaseEvent) => void): this\n\t{\n\t\tEventEmitter.subscribe(this, eventName, listener);\n\n\t\treturn this;\n\t}\n\n\t/**\n\t *\n\t * @param {object} options\n\t * @param {object} [aliases]\n\t * @param {boolean} [compatMode=false]\n\t */\n\tsubscribeFromOptions(\n\t\toptions: { [eventName: string]: Function } | Array<{ [eventName: string]: Function }>,\n\t\taliases?: { [alias: string]: { eventName: string, namespace: string } },\n\t\tcompatMode?: boolean,\n\t)\n\t{\n\t\tif (Type.isArrayFilled(options))\n\t\t{\n\t\t\toptions.forEach((events) => {\n\t\t\t\tthis.subscribeFromOptions(events);\n\t\t\t});\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (!Type.isPlainObject(options))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\taliases = Type.isPlainObject(aliases) ? EventEmitter.normalizeAliases(aliases) : {};\n\n\t\tObject.keys(options).forEach((eventName) => {\n\n\t\t\tconst listener = EventEmitter.normalizeListener(options[eventName]);\n\t\t\teventName = EventEmitter.normalizeEventName(eventName);\n\n\t\t\tif (aliases[eventName])\n\t\t\t{\n\t\t\t\tconst { eventName: actualName } = aliases[eventName];\n\t\t\t\tEventEmitter.subscribe(this, actualName, listener, { compatMode: compatMode !== false });\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tEventEmitter.subscribe(this, eventName, listener, { compatMode: compatMode === true });\n\t\t\t}\n\t\t})\n\t}\n\n\t/**\n\t * Subscribes a listener that is called at\n\t * most once for a specified event.\n\t * @param {object} target\n\t * @param {string} eventName\n\t * @param {Function<BaseEvent>} listener\n\t */\n\tstatic subscribeOnce(\n\t\ttarget: Object,\n\t\teventName: string,\n\t\tlistener: (event: BaseEvent) => void\n\t): void\n\t{\n\t\tif (Type.isString(target))\n\t\t{\n\t\t\tlistener = eventName;\n\t\t\teventName = target;\n\t\t\ttarget = this.GLOBAL_TARGET;\n\t\t}\n\n\t\tif (!Type.isObject(target))\n\t\t{\n\t\t\tthrow new TypeError(`The \"target\" argument must be an object.`);\n\t\t}\n\n\t\teventName = this.normalizeEventName(eventName);\n\t\tif (!Type.isStringFilled(eventName))\n\t\t{\n\t\t\tthrow new TypeError(`The \"eventName\" argument must be a string.`);\n\t\t}\n\n\t\tlistener = this.normalizeListener(listener);\n\n\t\tconst fullEventName = this.resolveEventName(eventName, target);\n\t\tconst { eventsMap, onceMap } = eventStore.getOrAdd(target);\n\t\tconst listeners = eventsMap.get(fullEventName);\n\t\tlet onceListeners = onceMap.get(fullEventName);\n\n\t\tif ((listeners && listeners.has(listener)) || (onceListeners && onceListeners.has(listener)))\n\t\t{\n\t\t\tconsole.error(`You cannot subscribe the same \"${fullEventName}\" event listener twice.`);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tconst once = (...args) => {\n\t\t\t\tthis.unsubscribe(target, eventName, once);\n\t\t\t\tonceListeners.delete(listener);\n\t\t\t\tlistener(...args);\n\t\t\t};\n\n\t\t\tif (onceListeners)\n\t\t\t{\n\t\t\t\tonceListeners.set(listener, once);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tonceListeners = new Map([[listener, once]]);\n\t\t\t\tonceMap.set(fullEventName, onceListeners);\n\t\t\t}\n\n\t\t\tthis.subscribe(target, eventName, once);\n\t\t}\n\t}\n\n\t/**\n\t * Subscribes a listener that is called at most once for a specified event.\n\t * @param {string} eventName\n\t * @param {Function<BaseEvent>} listener\n\t * @return {this}\n\t */\n\tsubscribeOnce(eventName: string, listener: (event: BaseEvent) => void): this\n\t{\n\t\tEventEmitter.subscribeOnce(this, eventName, listener);\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Unsubscribes an event listener\n\t * @param {object} target\n\t * @param {string} eventName\n\t * @param {Function<BaseEvent>} listener\n\t * @param options\n\t */\n\tstatic unsubscribe(\n\t\ttarget: Object,\n\t\teventName: string,\n\t\tlistener: (event: BaseEvent) => void,\n\t\toptions?: {\n\t\t\tuseGlobalNaming?: boolean\n\t\t}\n\t): void\n\t{\n\t\tif (Type.isString(target))\n\t\t{\n\t\t\tlistener = eventName;\n\t\t\teventName = target;\n\t\t\ttarget = this.GLOBAL_TARGET;\n\t\t}\n\n\t\teventName = this.normalizeEventName(eventName);\n\t\tif (!Type.isStringFilled(eventName))\n\t\t{\n\t\t\tthrow new TypeError(`The \"eventName\" argument must be a string.`);\n\t\t}\n\n\t\tlistener = this.normalizeListener(listener);\n\t\toptions = Type.isPlainObject(options) ? options : {};\n\n\t\tconst fullEventName = this.resolveEventName(eventName, target, options.useGlobalNaming === true);\n\t\tconst targetInfo = eventStore.get(target);\n\t\tconst listeners = targetInfo && targetInfo.eventsMap.get(fullEventName);\n\t\tconst onceListeners = targetInfo && targetInfo.onceMap.get(fullEventName);\n\n\t\tif (listeners)\n\t\t{\n\t\t\tlisteners.delete(listener);\n\t\t}\n\n\t\tif (onceListeners)\n\t\t{\n\t\t\tconst once = onceListeners.get(listener);\n\t\t\tif (once)\n\t\t\t{\n\t\t\t\tonceListeners.delete(listener);\n\t\t\t\tlisteners.delete(once);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Unsubscribes an event listener\n\t * @param {string} eventName\n\t * @param {Function<BaseEvent>} listener\n\t * @return {this}\n\t */\n\tunsubscribe(eventName: string, listener: (event: BaseEvent) => void): this\n\t{\n\t\tEventEmitter.unsubscribe(this, eventName, listener);\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Unsubscribes all event listeners\n\t * @param {object} target\n\t * @param {string} eventName\n\t * @param options\n\t */\n\tstatic unsubscribeAll(\n\t\ttarget: Object,\n\t\teventName?: string,\n\t\toptions?: {\n\t\t\tuseGlobalNaming?: boolean\n\t\t}\n\t): void\n\t{\n\t\tif (Type.isString(target))\n\t\t{\n\t\t\teventName = target;\n\t\t\ttarget = this.GLOBAL_TARGET;\n\t\t}\n\n\t\tif (Type.isStringFilled(eventName))\n\t\t{\n\t\t\tconst targetInfo = eventStore.get(target);\n\t\t\tif (targetInfo)\n\t\t\t{\n\t\t\t\toptions = Type.isPlainObject(options) ? options : {};\n\t\t\t\tconst fullEventName = this.resolveEventName(eventName, target, options.useGlobalNaming === true);\n\t\t\t\ttargetInfo.eventsMap.delete(fullEventName);\n\t\t\t\ttargetInfo.onceMap.delete(fullEventName)\n\t\t\t}\n\t\t}\n\t\telse if (Type.isNil(eventName))\n\t\t{\n\t\t\tif (target === this.GLOBAL_TARGET)\n\t\t\t{\n\t\t\t\tconsole.error('You cannot unsubscribe all global listeners.');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\teventStore.delete(target);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Unsubscribes all event listeners\n\t * @param {string} [eventName]\n\t */\n\tunsubscribeAll(eventName?: string): void\n\t{\n\t\tEventEmitter.unsubscribeAll(this, eventName);\n\t}\n\n\t/**\n\t *\n\t * @param {object} target\n\t * @param {string} eventName\n\t * @param {BaseEvent | any} event\n\t * @param {object} options\n\t * @returns {Array}\n\t */\n\tstatic emit(\n\t\ttarget: Object,\n\t\teventName: string,\n\t\tevent?: BaseEvent | {[key: string]: any},\n\t\toptions?: {\n\t\t\tcloneData?: boolean,\n\t\t\tthisArg?: Object,\n\t\t\tuseGlobalNaming?: boolean\n\t\t}\n\t): Array\n\t{\n\t\tif (Type.isString(target))\n\t\t{\n\t\t\toptions = event;\n\t\t\tevent = eventName;\n\t\t\teventName = target;\n\t\t\ttarget = this.GLOBAL_TARGET;\n\t\t}\n\n\t\tif (!Type.isObject(target))\n\t\t{\n\t\t\tthrow new TypeError(`The \"target\" argument must be an object.`);\n\t\t}\n\n\t\teventName = this.normalizeEventName(eventName);\n\t\tif (!Type.isStringFilled(eventName))\n\t\t{\n\t\t\tthrow new TypeError(`The \"eventName\" argument must be a string.`);\n\t\t}\n\n\t\toptions = Type.isPlainObject(options) ? options : {};\n\n\t\tconst fullEventName = this.resolveEventName(eventName, target, options.useGlobalNaming === true);\n\t\tconst globalEvents = eventStore.get(this.GLOBAL_TARGET);\n\t\tconst globalListeners = (globalEvents && globalEvents.eventsMap.get(fullEventName)) || new Map();\n\n\t\tlet targetListeners = new Set();\n\t\tif (target !== this.GLOBAL_TARGET)\n\t\t{\n\t\t\tconst targetEvents = eventStore.get(target);\n\t\t\ttargetListeners = (targetEvents && targetEvents.eventsMap.get(fullEventName)) || new Map();\n\t\t}\n\n\t\tconst listeners = [...globalListeners.values(), ...targetListeners.values()];\n\t\tlisteners.sort(function(a, b) {\n\t\t\treturn a.sort - b.sort;\n\t\t});\n\n\t\tconst preparedEvent = this.prepareEvent(target, fullEventName, event);\n\t\tconst result = [];\n\n\t\tfor (let i = 0; i < listeners.length; i++)\n\t\t{\n\t\t\tif (preparedEvent.isImmediatePropagationStopped())\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst { listener, options: listenerOptions } = listeners[i];\n\n\t\t\t//A previous listener could remove a current listener.\n\t\t\tif (globalListeners.has(listener) || targetListeners.has(listener))\n\t\t\t{\n\t\t\t\tlet listenerResult;\n\t\t\t\tif (listenerOptions.compatMode)\n\t\t\t\t{\n\t\t\t\t\tlet params = [];\n\t\t\t\t\tconst compatData = preparedEvent.getCompatData();\n\t\t\t\t\tif (compatData !== null)\n\t\t\t\t\t{\n\t\t\t\t\t\tparams = options.cloneData === true ? Runtime.clone(compatData) : compatData\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tparams = [preparedEvent];\n\t\t\t\t\t}\n\n\t\t\t\t\tconst context = Type.isUndefined(options.thisArg) ? target : options.thisArg;\n\t\t\t\t\tlistenerResult = listener.apply(context, params);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlistenerResult =\n\t\t\t\t\t\tType.isUndefined(options.thisArg)\n\t\t\t\t\t\t\t? listener(preparedEvent)\n\t\t\t\t\t\t\t: listener.call(options.thisArg, preparedEvent)\n\t\t\t\t\t;\n\t\t\t\t}\n\n\t\t\t\tresult.push(listenerResult);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t/**\n\t * Emits specified event with specified event object\n\t * @param {string} eventName\n\t * @param {BaseEvent | any} event\n\t * @return {this}\n\t */\n\temit(eventName: string, event?: BaseEvent | {[key: string]: any}): this\n\t{\n\t\tif (this.getEventNamespace() === null)\n\t\t{\n\t\t\tconsole.warn(\n\t\t\t\t'The instance of BX.Event.EventEmitter is supposed to have an event namespace. ' +\n\t\t\t\t'Use emitter.setEventNamespace() to make events more unique.'\n\t\t\t);\n\t\t}\n\n\t\tEventEmitter.emit(this, eventName, event);\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Emits global event and returns a promise that is resolved when\n\t * all promise returned from event handlers are resolved,\n\t * or rejected when at least one of the returned promise is rejected.\n\t * Importantly. You can return any value from synchronous handlers, not just promise\n\t * @param {object} target\n\t * @param {string} eventName\n\t * @param {BaseEvent | any} event\n\t * @return {Promise<Array>}\n\t */\n\tstatic emitAsync(target: Object, eventName: string, event?: BaseEvent | {[key: string]: any}): Promise<Array>\n\t{\n\t\tif (Type.isString(target))\n\t\t{\n\t\t\tevent = eventName;\n\t\t\teventName = target;\n\t\t\ttarget = this.GLOBAL_TARGET;\n\t\t}\n\n\t\treturn Promise.all(this.emit(target, eventName, event));\n\t}\n\n\t/**\n\t * Emits event and returns a promise that is resolved when\n\t * all promise returned from event handlers are resolved,\n\t * or rejected when at least one of the returned promise is rejected.\n\t * Importantly. You can return any value from synchronous handlers, not just promise\n\t * @param {string} eventName\n\t * @param {BaseEvent|any} event\n\t * @return {Promise<Array>}\n\t */\n\temitAsync(eventName: string, event?: BaseEvent | {[key: string]: any}): Promise<Array>\n\t{\n\t\tif (this.getEventNamespace() === null)\n\t\t{\n\t\t\tconsole.warn(\n\t\t\t\t'The instance of BX.Event.EventEmitter is supposed to have an event namespace. ' +\n\t\t\t\t'Use emitter.setEventNamespace() to make events more unique.'\n\t\t\t);\n\t\t}\n\n\t\treturn EventEmitter.emitAsync(this, eventName, event);\n\t}\n\n\t/**\n\t * @private\n\t * @param {object} target\n\t * @param {string} eventName\n\t * @param {BaseEvent|any} event\n\t * @returns {BaseEvent}\n\t */\n\tstatic prepareEvent(\n\t\ttarget: Object,\n\t\teventName: string,\n\t\tevent?: BaseEvent | {[key: string]: any},\n\t): BaseEvent\n\t{\n\t\tlet preparedEvent = event;\n\t\tif (!(event instanceof BaseEvent))\n\t\t{\n\t\t\tpreparedEvent = new BaseEvent();\n\t\t\tpreparedEvent.setData(event);\n\t\t}\n\n\t\tpreparedEvent.setTarget(this.isEventEmitter(target) ? target[targetProperty] : target);\n\t\tpreparedEvent.setType(eventName);\n\n\t\treturn preparedEvent;\n\t}\n\n\t/**\n\t * @private\n\t * @returns {number}\n\t */\n\tstatic getNextSequenceValue(): number\n\t{\n\t\treturn this.sequenceValue++;\n\t}\n\n\t/**\n\t * Sets max global events listeners count\n\t * Event.EventEmitter.setMaxListeners(10) - sets the default value for all events (global target)\n\t * Event.EventEmitter.setMaxListeners(\"onClose\", 10) - sets the value for onClose event (global target)\n\t * Event.EventEmitter.setMaxListeners(obj, 10) - sets the default value for all events (obj target)\n\t * Event.EventEmitter.setMaxListeners(obj, \"onClose\", 10); - sets the value for onClose event (obj target)\n\t * @return {void}\n\t * @param args\n\t */\n\tstatic setMaxListeners(...args): void\n\t{\n\t\tlet target = this.GLOBAL_TARGET;\n\t\tlet eventName = null;\n\t\tlet count = undefined;\n\n\t\tif (args.length === 1)\n\t\t{\n\t\t\tcount = args[0];\n\t\t}\n\t\telse if (args.length === 2)\n\t\t{\n\t\t\tif (Type.isString(args[0]))\n\t\t\t{\n\t\t\t\t[eventName, count] = args;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t[target, count] = args;\n\t\t\t}\n\t\t}\n\t\telse if (args.length >= 3)\n\t\t{\n\t\t\t[target, eventName, count] = args;\n\t\t}\n\n\t\tif (!Type.isObject(target))\n\t\t{\n\t\t\tthrow new TypeError(`The \"target\" argument must be an object.`);\n\t\t}\n\n\t\tif (eventName !== null && !Type.isStringFilled(eventName))\n\t\t{\n\t\t\tthrow new TypeError(`The \"eventName\" argument must be a string.`);\n\t\t}\n\n\t\tif (!Type.isNumber(count) || count < 0)\n\t\t{\n\t\t\tthrow new TypeError(\n\t\t\t\t`The value of \"count\" is out of range. It must be a non-negative number. Received ${count}.`\n\t\t\t);\n\t\t}\n\n\t\tconst targetInfo = eventStore.getOrAdd(target);\n\t\tif (Type.isStringFilled(eventName))\n\t\t{\n\t\t\tconst fullEventName = this.resolveEventName(eventName, target);\n\t\t\ttargetInfo.eventsMaxListeners.set(fullEventName, count);\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttargetInfo.maxListeners = count;\n\t\t}\n\t}\n\n\t/**\n\t * Sets max events listeners count\n\t * this.setMaxListeners(10) - sets the default value for all events\n\t * this.setMaxListeners(\"onClose\", 10) sets the value for onClose event\n\t * @return {this}\n\t * @param args\n\t */\n\tsetMaxListeners(...args): this\n\t{\n\t\tEventEmitter.setMaxListeners(this, ...args);\n\n\t\treturn this;\n\t}\n\n\t/**\n\t * Returns max event listeners count\n\t * @param {object} target\n\t * @param {string} [eventName]\n\t * @returns {number}\n\t */\n\tstatic getMaxListeners(target: Object, eventName?: string): number\n\t{\n\t\tif (Type.isString(target))\n\t\t{\n\t\t\teventName = target;\n\t\t\ttarget = this.GLOBAL_TARGET;\n\t\t}\n\t\telse if (Type.isNil(target))\n\t\t{\n\t\t\ttarget = this.GLOBAL_TARGET;\n\t\t}\n\n\t\tif (!Type.isObject(target))\n\t\t{\n\t\t\tthrow new TypeError(`The \"target\" argument must be an object.`);\n\t\t}\n\n\t\tconst targetInfo = eventStore.get(target);\n\t\tif (targetInfo)\n\t\t{\n\t\t\tlet maxListeners = targetInfo.maxListeners;\n\t\t\tif (Type.isStringFilled(eventName))\n\t\t\t{\n\t\t\t\tconst fullEventName = this.resolveEventName(eventName, target);\n\t\t\t\tmaxListeners = targetInfo.eventsMaxListeners.get(fullEventName) || maxListeners;\n\t\t\t}\n\n\t\t\treturn maxListeners;\n\t\t}\n\n\t\treturn this.DEFAULT_MAX_LISTENERS;\n\t}\n\n\t/**\n\t * Returns max event listeners count\n\t * @param {string} [eventName]\n\t * @returns {number}\n\t */\n\tgetMaxListeners(eventName?: string): number\n\t{\n\t\treturn EventEmitter.getMaxListeners(this, eventName);\n\t}\n\n\t/**\n\t * Adds or subtracts max listeners count\n\t * Event.EventEmitter.addMaxListeners() - adds one max listener for all events of global target\n\t * Event.EventEmitter.addMaxListeners(3) - adds three max listeners for all events of global target\n\t * Event.EventEmitter.addMaxListeners(-1) - subtracts one max listener for all events of global target\n\t * Event.EventEmitter.addMaxListeners('onClose') - adds one max listener for onClose event of global target\n\t * Event.EventEmitter.addMaxListeners('onClose', 2) - adds two max listeners for onClose event of global target\n\t * Event.EventEmitter.addMaxListeners('onClose', -1) - subtracts one max listener for onClose event of global target\n\t *\n\t * Event.EventEmitter.addMaxListeners(obj) - adds one max listener for all events of 'obj' target\n\t * Event.EventEmitter.addMaxListeners(obj, 3) - adds three max listeners for all events of 'obj' target\n\t * Event.EventEmitter.addMaxListeners(obj, -1) - subtracts one max listener for all events of 'obj' target\n\t * Event.EventEmitter.addMaxListeners(obj, 'onClose') - adds one max listener for onClose event of 'obj' target\n\t * Event.EventEmitter.addMaxListeners(obj, 'onClose', 2) - adds two max listeners for onClose event of 'obj' target\n\t * Event.EventEmitter.addMaxListeners(obj, 'onClose', -1) - subtracts one max listener for onClose event of 'obj' target\n\t * @param args\n\t * @returns {number}\n\t */\n\tstatic addMaxListeners(...args)\n\t{\n\t\tconst [target, eventName, increment] = this.destructMaxListenersArgs(...args);\n\t\tconst maxListeners = Math.max(this.getMaxListeners(target, eventName) + increment, 0);\n\t\tif (Type.isStringFilled(eventName))\n\t\t{\n\t\t\tEventEmitter.setMaxListeners(target, eventName, maxListeners);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tEventEmitter.setMaxListeners(target, maxListeners);\n\t\t}\n\n\t\treturn maxListeners;\n\t}\n\n\t/**\n\t * Increases max listeners count\n\t *\n\t * Event.EventEmitter.incrementMaxListeners() - adds one max listener for all events of global target\n\t * Event.EventEmitter.incrementMaxListeners(3) - adds three max listeners for all events of global target\n\t * Event.EventEmitter.incrementMaxListeners('onClose') - adds one max listener for onClose event of global target\n\t * Event.EventEmitter.incrementMaxListeners('onClose', 2) - adds two max listeners for onClose event of global target\n\t *\n\t * Event.EventEmitter.incrementMaxListeners(obj) - adds one max listener for all events of 'obj' target\n\t * Event.EventEmitter.incrementMaxListeners(obj, 3) - adds three max listeners for all events of 'obj' target\n\t * Event.EventEmitter.incrementMaxListeners(obj, 'onClose') - adds one max listener for onClose event of 'obj' target\n\t * Event.EventEmitter.incrementMaxListeners(obj, 'onClose', 2) - adds two max listeners for onClose event of 'obj' target\n\t */\n\tstatic incrementMaxListeners(...args): number\n\t{\n\t\tconst [target, eventName, increment] = this.destructMaxListenersArgs(...args);\n\n\t\treturn this.addMaxListeners(target, eventName, Math.abs(increment));\n\t}\n\n\t/**\n\t * Increases max listeners count\n\t * this.incrementMaxListeners() - adds one max listener for all events\n\t * this.incrementMaxListeners(3) - adds three max listeners for all events\n\t * this.incrementMaxListeners('onClose') - adds one max listener for onClose event\n\t * this.incrementMaxListeners('onClose', 2) - adds two max listeners for onClose event\n\t */\n\tincrementMaxListeners(...args): number\n\t{\n\t\treturn EventEmitter.incrementMaxListeners(this, ...args);\n\t}\n\n\t/**\n\t * Decreases max listeners count\n\t *\n\t * Event.EventEmitter.decrementMaxListeners() - subtracts one max listener for all events of global target\n\t * Event.EventEmitter.decrementMaxListeners(3) - subtracts three max listeners for all events of global target\n\t * Event.EventEmitter.decrementMaxListeners('onClose') - subtracts one max listener for onClose event of global target\n\t * Event.EventEmitter.decrementMaxListeners('onClose', 2) - subtracts two max listeners for onClose event of global target\n\t *\n\t * Event.EventEmitter.decrementMaxListeners(obj) - subtracts one max listener for all events of 'obj' target\n\t * Event.EventEmitter.decrementMaxListeners(obj, 3) - subtracts three max listeners for all events of 'obj' target\n\t * Event.EventEmitter.decrementMaxListeners(obj, 'onClose') - subtracts one max listener for onClose event of 'obj' target\n\t * Event.EventEmitter.decrementMaxListeners(obj, 'onClose', 2) - subtracts two max listeners for onClose event of 'obj' target\n\t */\n\tstatic decrementMaxListeners(...args): number\n\t{\n\t\tconst [target, eventName, increment] = this.destructMaxListenersArgs(...args);\n\n\t\treturn this.addMaxListeners(target, eventName, -Math.abs(increment));\n\t}\n\n\t/**\n\t * Increases max listeners count\n\t * this.decrementMaxListeners() - subtracts one max listener for all events\n\t * this.decrementMaxListeners(3) - subtracts three max listeners for all events\n\t * this.decrementMaxListeners('onClose') - subtracts one max listener for onClose event\n\t * this.decrementMaxListeners('onClose', 2) - subtracts two max listeners for onClose event\n\t */\n\tdecrementMaxListeners(...args): number\n\t{\n\t\treturn EventEmitter.decrementMaxListeners(this, ...args);\n\t}\n\n\t/**\n\t * @private\n\t * @param {Array} args\n\t * @returns Array\n\t */\n\tstatic destructMaxListenersArgs(...args)\n\t{\n\t\tlet eventName = null;\n\t\tlet increment = 1;\n\t\tlet target = this.GLOBAL_TARGET;\n\n\t\tif (args.length === 1)\n\t\t{\n\t\t\tif (Type.isNumber(args[0]))\n\t\t\t{\n\t\t\t\tincrement = args[0];\n\t\t\t}\n\t\t\telse if (Type.isString(args[0]))\n\t\t\t{\n\t\t\t\teventName = args[0];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttarget = args[0];\n\t\t\t}\n\t\t}\n\t\telse if (args.length === 2)\n\t\t{\n\t\t\tif (Type.isString(args[0]))\n\t\t\t{\n\t\t\t\t[eventName, increment] = args;\n\t\t\t}\n\t\t\telse if (Type.isString(args[1]))\n\t\t\t{\n\t\t\t\t[target, eventName] = args;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t[target, increment] = args;\n\t\t\t}\n\t\t}\n\t\telse if (args.length >= 3)\n\t\t{\n\t\t\t[target, eventName, increment] = args;\n\t\t}\n\n\t\tif (!Type.isObject(target))\n\t\t{\n\t\t\tthrow new TypeError(`The \"target\" argument must be an object.`);\n\t\t}\n\n\t\tif (eventName !== null && !Type.isStringFilled(eventName))\n\t\t{\n\t\t\tthrow new TypeError(`The \"eventName\" argument must be a string.`);\n\t\t}\n\n\t\tif (!Type.isNumber(increment))\n\t\t{\n\t\t\tthrow new TypeError(`The value of \"increment\" must be a number.`);\n\t\t}\n\n\t\treturn [target, eventName, increment];\n\t}\n\n\t/**\n\t * Gets listeners list for a specified event\n\t * @param {object} target\n\t * @param {string} eventName\n\t */\n\tstatic getListeners(target: Object, eventName: string): Function[]\n\t{\n\t\tif (Type.isString(target))\n\t\t{\n\t\t\teventName = target;\n\t\t\ttarget = this.GLOBAL_TARGET;\n\t\t}\n\n\t\tif (!Type.isObject(target))\n\t\t{\n\t\t\tthrow new TypeError(`The \"target\" argument must be an object.`);\n\t\t}\n\n\t\teventName = this.normalizeEventName(eventName);\n\t\tif (!Type.isStringFilled(eventName))\n\t\t{\n\t\t\tthrow new TypeError(`The \"eventName\" argument must be a string.`);\n\t\t}\n\n\t\tconst targetInfo = eventStore.get(target);\n\t\tif (!targetInfo)\n\t\t{\n\t\t\treturn new Map();\n\t\t}\n\n\t\tconst fullEventName = this.resolveEventName(eventName, target);\n\t\treturn targetInfo.eventsMap.get(fullEventName) || new Map();\n\t}\n\n\t/**\n\t * Gets listeners list for specified event\n\t * @param {string} eventName\n\t */\n\tgetListeners(eventName: string): Function[]\n\t{\n\t\treturn EventEmitter.getListeners(this, eventName);\n\t}\n\n\t/**\n\t * Returns a full event name with namespace\n\t * @param {string} eventName\n\t * @returns {string}\n\t */\n\tgetFullEventName(eventName: string)\n\t{\n\t\tif (!Type.isStringFilled(eventName))\n\t\t{\n\t\t\tthrow new TypeError(`The \"eventName\" argument must be a string.`);\n\t\t}\n\n\t\treturn EventEmitter.makeFullEventName(this.getEventNamespace(), eventName);\n\t}\n\n\t/**\n\t * Registers aliases (old event names for BX.onCustomEvent)\n\t * @param aliases\n\t */\n\tstatic registerAliases(aliases: { [alias: string]: { eventName: string, namespace: string } })\n\t{\n\t\taliases = this.normalizeAliases(aliases);\n\n\t\tObject.keys(aliases).forEach((alias) => {\n\t\t\taliasStore.set(alias, {\n\t\t\t\teventName: aliases[alias].eventName,\n\t\t\t\tnamespace: aliases[alias].namespace\n\t\t\t});\n\t\t});\n\n\t\tEventEmitter.mergeEventAliases(aliases);\n\t}\n\n\t/**\n\t * @private\n\t * @param aliases\n\t */\n\tstatic normalizeAliases(aliases: { [alias: string]: { eventName: string, namespace: string } })\n\t{\n\t\tif (!Type.isPlainObject(aliases))\n\t\t{\n\t\t\tthrow new TypeError(`The \"aliases\" argument must be an object.`);\n\t\t}\n\n\t\tconst result = Object.create(null);\n\t\tfor (let alias in aliases)\n\t\t{\n\t\t\tif (!Type.isStringFilled(alias))\n\t\t\t{\n\t\t\t\tthrow new TypeError(`The alias must be an non-empty string.`);\n\t\t\t}\n\n\t\t\tconst options = aliases[alias];\n\t\t\tif (!options || !Type.isStringFilled(options.eventName) || !Type.isStringFilled(options.namespace))\n\t\t\t{\n\t\t\t\tthrow new TypeError(`The alias options must set the \"eventName\" and the \"namespace\".`);\n\t\t\t}\n\n\t\t\talias = this.normalizeEventName(alias);\n\n\t\t\tresult[alias] = {\n\t\t\t\teventName: options.eventName,\n\t\t\t\tnamespace: options.namespace\n\t\t\t};\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tstatic mergeEventAliases(aliases)\n\t{\n\t\tconst globalEvents = eventStore.get(this.GLOBAL_TARGET);\n\t\tif (!globalEvents)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tObject.keys(aliases).forEach((alias) => {\n\t\t\tconst options = aliases[alias];\n\t\t\talias = this.normalizeEventName(alias);\n\t\t\tconst fullEventName = this.makeFullEventName(options.namespace, options.eventName);\n\n\t\t\tconst aliasListeners = globalEvents.eventsMap.get(alias);\n\t\t\tif (aliasListeners)\n\t\t\t{\n\t\t\t\tconst listeners = globalEvents.eventsMap.get(fullEventName) || new Map();\n\t\t\t\tglobalEvents.eventsMap.set(fullEventName, new Map([...listeners, ...aliasListeners]));\n\t\t\t\tglobalEvents.eventsMap.delete(alias);\n\t\t\t}\n\n\t\t\tconst aliasOnceListeners = globalEvents.onceMap.get(alias);\n\t\t\tif (aliasOnceListeners)\n\t\t\t{\n\t\t\t\tconst onceListeners = globalEvents.onceMap.get(fullEventName) || new Map();\n\t\t\t\tglobalEvents.onceMap.set(fullEventName, new Map([...onceListeners, ...aliasOnceListeners]));\n\t\t\t\tglobalEvents.onceMap.delete(alias);\n\t\t\t}\n\n\t\t\tconst aliasMaxListeners = globalEvents.eventsMaxListeners.get(alias);\n\t\t\tif (aliasMaxListeners)\n\t\t\t{\n\t\t\t\tconst eventMaxListeners = globalEvents.eventsMaxListeners.get(fullEventName) || 0;\n\t\t\t\tglobalEvents.eventsMaxListeners.set(fullEventName, Math.max(eventMaxListeners, aliasMaxListeners));\n\t\t\t\tglobalEvents.eventsMaxListeners.delete(alias);\n\t\t\t}\n\t\t});\n\t}\n\n\t/**\n\t * Returns true if the target is an instance of Event.EventEmitter\n\t * @param {object} target\n\t * @returns {boolean}\n\t */\n\tstatic isEventEmitter(target: Object)\n\t{\n\t\treturn Type.isObject(target) && target[isEmitterProperty] === true;\n\t}\n\n\t/**\n\t * @private\n\t * @param {string} eventName\n\t * @returns {string}\n\t */\n\tstatic normalizeEventName(eventName: string): string\n\t{\n\t\tif (!Type.isStringFilled(eventName))\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\treturn eventName.toLowerCase();\n\t}\n\n\t/**\n\t * @private\n\t */\n\tstatic normalizeListener(listener: Function | string): Function\n\t{\n\t\tif (Type.isString(listener))\n\t\t{\n\t\t\tlistener = Reflection.getClass(listener);\n\t\t}\n\n\t\tif (!Type.isFunction(listener))\n\t\t{\n\t\t\tthrow new TypeError(\n\t\t\t\t`The \"listener\" argument must be of type Function. Received type ${typeof listener}.`\n\t\t\t);\n\t\t}\n\n\t\treturn listener;\n\t}\n\n\t/**\n\t * @private\n\t * @param eventName\n\t * @param target\n\t * @param useGlobalNaming\n\t * @returns {string}\n\t */\n\tstatic resolveEventName(eventName: string, target: Object, useGlobalNaming: boolean = false)\n\t{\n\t\teventName = this.normalizeEventName(eventName);\n\t\tif (!Type.isStringFilled(eventName))\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\tif (this.isEventEmitter(target) && useGlobalNaming !== true)\n\t\t{\n\t\t\tif (target.getEventNamespace() !== null && eventName.includes('.'))\n\t\t\t{\n\t\t\t\tconsole.warn(`Possible the wrong event name \"${eventName}\".`);\n\t\t\t}\n\n\t\t\teventName = target.getFullEventName(eventName);\n\t\t}\n\t\telse if (aliasStore.has(eventName))\n\t\t{\n\t\t\tconst { namespace, eventName: actualEventName } = aliasStore.get(eventName);\n\t\t\teventName = this.makeFullEventName(namespace, actualEventName);\n\t\t}\n\n\t\treturn eventName;\n\t}\n\n\t/**\n\t * @private\n\t * @param {string} namespace\n\t * @param {string} eventName\n\t * @returns {string}\n\t */\n\tstatic makeFullEventName(namespace: string, eventName: string)\n\t{\n\t\tconst fullName = Type.isStringFilled(namespace) ? `${namespace}:${eventName}` : eventName;\n\n\t\treturn Type.isStringFilled(fullName) ? fullName.toLowerCase() : '';\n\t}\n}\n","import Type from '../type';\nimport bindOnce from './bind-once';\n\nlet stack: Array<Function> = [];\n/**\n * For compatibility only\n * @type {boolean}\n */\n// eslint-disable-next-line\nexport let isReady = false;\n\nexport default function ready(handler: () => void)\n{\n\tif (!Type.isFunction(handler))\n\t{\n\t\treturn;\n\t}\n\n\tif (isReady)\n\t{\n\t\thandler();\n\t}\n\telse\n\t{\n\t\tstack.push(handler);\n\t}\n}\n\nbindOnce(document, 'DOMContentLoaded', () => {\n\tisReady = true;\n\n\tstack.forEach((handler: Function) => {\n\t\thandler();\n\t});\n\n\tstack = [];\n});\n","import bind from './event/bind';\nimport unbind from './event/unbind';\nimport unbindAll from './event/unbind-all';\nimport bindOnce from './event/bind-once';\nimport EventEmitter from './event/event-emitter';\nimport BaseEvent from './event/base-event';\nimport ready from './event/ready';\n\n/**\n * @memberOf BX\n */\nexport default class Event\n{\n\tstatic bind: bind = bind;\n\tstatic bindOnce: bindOnce = bindOnce;\n\tstatic unbind: unbind = unbind;\n\tstatic unbindAll: unbindAll = unbindAll;\n\tstatic ready: ready = ready;\n\tstatic EventEmitter: EventEmitter = EventEmitter;\n\tstatic BaseEvent: BaseEvent = BaseEvent;\n}\n","import Type from '../lib/type';\nimport Text from '../lib/text';\n\nexport default function encodeAttributeValue(value: any)\n{\n\tif (Type.isPlainObject(value) || Type.isArray(value))\n\t{\n\t\treturn JSON.stringify(value);\n\t}\n\n\treturn Text.encode(Text.decode(value));\n}","import Type from '../lib/type';\nimport Text from '../lib/text';\n\nexport default function decodeAttributeValue(value: any)\n{\n\tif (Type.isString(value))\n\t{\n\t\tconst decodedValue = Text.decode(value);\n\t\tlet result;\n\n\t\ttry\n\t\t{\n\t\t\tresult = JSON.parse(decodedValue);\n\t\t}\n\t\tcatch (e)\n\t\t{\n\t\t\tresult = decodedValue;\n\t\t}\n\n\t\tif (result === decodedValue)\n\t\t{\n\t\t\tif (/^[\\d.]+[.]?\\d+$/.test(result))\n\t\t\t{\n\t\t\t\treturn Number(result);\n\t\t\t}\n\t\t}\n\n\t\tif (result === 'true' || result === 'false')\n\t\t{\n\t\t\treturn Boolean(result);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\treturn value;\n}","export default function getPageScroll(): {scrollTop: number, scrollLeft: number}\n{\n\tconst {documentElement, body} = document;\n\n\tconst scrollTop = Math.max(\n\t\t(window.pageYOffset || 0),\n\t\t(documentElement ? documentElement.scrollTop : 0),\n\t\t(body ? body.scrollTop : 0),\n\t);\n\n\tconst scrollLeft = Math.max(\n\t\t(window.pageXOffset || 0),\n\t\t(documentElement ? documentElement.scrollLeft : 0),\n\t\t(body ? body.scrollLeft : 0),\n\t);\n\n\treturn {scrollTop, scrollLeft};\n}","import Type from './type';\nimport Event from './event';\nimport encodeAttributeValue from '../internal/encode-attribute-value';\nimport decodeAttributeValue from '../internal/decode-attribute-value';\nimport getPageScroll from '../internal/get-page-scroll';\n\n/**\n * @memberOf BX\n */\nexport default class Dom\n{\n\t/**\n\t * Replaces old html element to new html element\n\t * @param oldElement\n\t * @param newElement\n\t */\n\tstatic replace(oldElement: ?HTMLElement, newElement: ?HTMLElement)\n\t{\n\t\tif (Type.isDomNode(oldElement) && Type.isDomNode(newElement))\n\t\t{\n\t\t\tif (Type.isDomNode(oldElement.parentNode))\n\t\t\t{\n\t\t\t\toldElement.parentNode.replaceChild(newElement, oldElement);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Removes element\n\t * @param element\n\t */\n\tstatic remove(element: ?HTMLElement)\n\t{\n\t\tif (Type.isDomNode(element) && Type.isDomNode(element.parentNode))\n\t\t{\n\t\t\telement.parentNode.removeChild(element);\n\t\t}\n\t}\n\n\t/**\n\t * Cleans element\n\t * @param element\n\t */\n\tstatic clean(element: HTMLElement | string)\n\t{\n\t\tif (Type.isDomNode(element))\n\t\t{\n\t\t\twhile (element.childNodes.length > 0)\n\t\t\t{\n\t\t\t\telement.removeChild(element.firstChild);\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tif (Type.isString(element))\n\t\t{\n\t\t\tDom.clean(document.getElementById(element));\n\t\t}\n\t}\n\n\t/**\n\t * Inserts element before target element\n\t * @param current\n\t * @param target\n\t */\n\tstatic insertBefore(current: ?HTMLElement, target: ?HTMLElement)\n\t{\n\t\tif (Type.isDomNode(current) && Type.isDomNode(target))\n\t\t{\n\t\t\tif (Type.isDomNode(target.parentNode))\n\t\t\t{\n\t\t\t\ttarget.parentNode.insertBefore(current, target);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Inserts element after target element\n\t * @param current\n\t * @param target\n\t */\n\tstatic insertAfter(current: ?HTMLElement, target: ?HTMLElement)\n\t{\n\t\tif (Type.isDomNode(current) && Type.isDomNode(target))\n\t\t{\n\t\t\tif (Type.isDomNode(target.parentNode))\n\t\t\t{\n\t\t\t\tconst parent = target.parentNode;\n\n\t\t\t\tif (Type.isDomNode(target.nextSibling))\n\t\t\t\t{\n\t\t\t\t\tparent.insertBefore(current, target.nextSibling);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tparent.appendChild(current);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Appends element to target element\n\t * @param current\n\t * @param target\n\t */\n\tstatic append(current: ?HTMLElement, target: ?HTMLElement)\n\t{\n\t\tif (Type.isDomNode(current) && Type.isDomNode(target))\n\t\t{\n\t\t\ttarget.appendChild(current);\n\t\t}\n\t}\n\n\t/**\n\t * Prepends element to target element\n\t * @param current\n\t * @param target\n\t */\n\tstatic prepend(current: ?HTMLElement, target: ?HTMLElement)\n\t{\n\t\tif (Type.isDomNode(current) && Type.isDomNode(target))\n\t\t{\n\t\t\tif (Type.isDomNode(target.firstChild))\n\t\t\t{\n\t\t\t\ttarget.insertBefore(current, target.firstChild);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tDom.append(current, target);\n\t\t}\n\t}\n\n\t/**\n\t * Checks that element contains class name or class names\n\t * @param element\n\t * @param className\n\t * @return {Boolean}\n\t */\n\tstatic hasClass(element: any, className: string | Array<string>): boolean\n\t{\n\t\tif (Type.isElementNode(element))\n\t\t{\n\t\t\tif (Type.isString(className))\n\t\t\t{\n\t\t\t\tconst preparedClassName = className.trim();\n\n\t\t\t\tif (preparedClassName.length > 0)\n\t\t\t\t{\n\t\t\t\t\tif (preparedClassName.includes(' '))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn preparedClassName.split(' ')\n\t\t\t\t\t\t\t.every(name => Dom.hasClass(element, name));\n\t\t\t\t\t}\n\n\t\t\t\t\tif ('classList' in element)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn element.classList.contains(preparedClassName);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tType.isObject(element.className)\n\t\t\t\t\t\t&& Type.isString(element.className.baseVal)\n\t\t\t\t\t)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn element.getAttribute('class').split(' ')\n\t\t\t\t\t\t\t.some(name => name === preparedClassName);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (Type.isArray(className) && className.length > 0)\n\t\t\t{\n\t\t\t\treturn className.every(name => Dom.hasClass(element, name));\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t * Adds class name\n\t * @param element\n\t * @param className\n\t */\n\tstatic addClass(element: any, className: string | Array<string>)\n\t{\n\t\tif (Type.isElementNode(element))\n\t\t{\n\t\t\tif (Type.isString(className))\n\t\t\t{\n\t\t\t\tconst preparedClassName = className.trim();\n\n\t\t\t\tif (preparedClassName.length > 0)\n\t\t\t\t{\n\t\t\t\t\tif (preparedClassName.includes(' '))\n\t\t\t\t\t{\n\t\t\t\t\t\tDom.addClass(element, preparedClassName.split(' '));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ('classList' in element)\n\t\t\t\t\t{\n\t\t\t\t\t\telement.classList.add(preparedClassName);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tType.isObject(element.className)\n\t\t\t\t\t\t&& Type.isString(element.className.baseVal)\n\t\t\t\t\t)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (element.className.baseVal === '')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\telement.className.baseVal = preparedClassName;\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tconst names = element.className.baseVal.split(' ');\n\n\t\t\t\t\t\tif (!names.includes(preparedClassName))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnames.push(preparedClassName);\n\t\t\t\t\t\t\telement.className.baseVal = names.join(' ').trim();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (Type.isArray(className))\n\t\t\t{\n\t\t\t\tclassName.forEach(name => Dom.addClass(element, name));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Removes class name\n\t * @param element\n\t * @param className\n\t */\n\tstatic removeClass(element: any, className: string | Array<string>)\n\t{\n\t\tif (Type.isElementNode(element))\n\t\t{\n\t\t\tif (Type.isString(className))\n\t\t\t{\n\t\t\t\tconst preparedClassName = className.trim();\n\n\t\t\t\tif (preparedClassName.length > 0)\n\t\t\t\t{\n\t\t\t\t\tif (preparedClassName.includes(' '))\n\t\t\t\t\t{\n\t\t\t\t\t\tDom.removeClass(element, preparedClassName.split(' '));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ('classList' in element)\n\t\t\t\t\t{\n\t\t\t\t\t\telement.classList.remove(preparedClassName);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (\n\t\t\t\t\t\tType.isObject(element.className)\n\t\t\t\t\t\t&& Type.isString(element.className.baseVal)\n\t\t\t\t\t)\n\t\t\t\t\t{\n\t\t\t\t\t\tconst names = element.className.baseVal.split(' ')\n\t\t\t\t\t\t\t.filter(name => name !== preparedClassName);\n\n\t\t\t\t\t\telement.className.baseVal = names.join(' ');\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (Type.isArray(className))\n\t\t\t{\n\t\t\t\tclassName.forEach(name => Dom.removeClass(element, name));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Toggles class name\n\t * @param element\n\t * @param className\n\t */\n\tstatic toggleClass(element: any, className: string | Array<string>)\n\t{\n\t\tif (Type.isElementNode(element))\n\t\t{\n\t\t\tif (Type.isString(className))\n\t\t\t{\n\t\t\t\tconst preparedClassName = className.trim();\n\n\t\t\t\tif (preparedClassName.length > 0)\n\t\t\t\t{\n\t\t\t\t\tif (preparedClassName.includes(' '))\n\t\t\t\t\t{\n\t\t\t\t\t\tDom.toggleClass(element, preparedClassName.split(' '));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\telement.classList.toggle(preparedClassName);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (Type.isArray(className))\n\t\t\t{\n\t\t\t\tclassName.forEach(name => Dom.toggleClass(element, name));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Styles element\n\t */\n\tstatic style(\n\t\telement: ?HTMLElement,\n\t\tprop: ?string | {[key: string]: any},\n\t\tvalue?: any,\n\t): ?string | number | Element\n\t{\n\t\tif (Type.isElementNode(element))\n\t\t{\n\t\t\tif (Type.isNull(prop))\n\t\t\t{\n\t\t\t\telement.removeAttribute('style');\n\t\t\t\treturn element;\n\t\t\t}\n\n\t\t\tif (Type.isPlainObject(prop))\n\t\t\t{\n\t\t\t\tObject.entries(prop).forEach((item) => {\n\t\t\t\t\tconst [currentKey, currentValue] = item;\n\t\t\t\t\tDom.style(element, currentKey, currentValue);\n\t\t\t\t});\n\n\t\t\t\treturn element;\n\t\t\t}\n\n\t\t\tif (Type.isString(prop))\n\t\t\t{\n\t\t\t\tif (Type.isUndefined(value)\n\t\t\t\t\t&& element.nodeType !== Node.DOCUMENT_NODE)\n\t\t\t\t{\n\t\t\t\t\tconst computedStyle = getComputedStyle(element);\n\n\t\t\t\t\tif (prop in computedStyle)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn computedStyle[prop];\n\t\t\t\t\t}\n\n\t\t\t\t\treturn computedStyle.getPropertyValue(prop);\n\t\t\t\t}\n\n\t\t\t\tif (\n\t\t\t\t\tType.isNull(value)\n\t\t\t\t\t|| value === ''\n\t\t\t\t\t|| value === 'null'\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\tif (String(prop).startsWith('--'))\n\t\t\t\t\t{\n\t\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\t\telement.style.removeProperty(prop);\n\t\t\t\t\t\treturn element;\n\t\t\t\t\t}\n\n\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\telement.style[prop] = '';\n\n\t\t\t\t\treturn element;\n\t\t\t\t}\n\n\t\t\t\tif (Type.isString(value) || Type.isNumber(value))\n\t\t\t\t{\n\t\t\t\t\tif (String(prop).startsWith('--'))\n\t\t\t\t\t{\n\t\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\t\telement.style.setProperty(prop, value);\n\t\t\t\t\t\treturn element;\n\t\t\t\t\t}\n\n\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\telement.style[prop] = value;\n\n\t\t\t\t\treturn element;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n\n\t/**\n\t * Adjusts element\n\t * @param target\n\t * @param data\n\t * @return {*}\n\t */\n\tstatic adjust(\n\t\ttarget: HTMLElement | HTMLDocument,\n\t\tdata: Object = {},\n\t): HTMLElement | HTMLBodyElement\n\t{\n\t\tif (!target.nodeType)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tlet element = target;\n\n\t\tif (target.nodeType === Node.DOCUMENT_NODE)\n\t\t{\n\t\t\telement = target.body;\n\t\t}\n\n\t\tif (Type.isPlainObject(data))\n\t\t{\n\t\t\tif (Type.isPlainObject(data.attrs))\n\t\t\t{\n\t\t\t\tObject.keys(data.attrs).forEach((key) => {\n\t\t\t\t\tif (key === 'class' || key.toLowerCase() === 'classname')\n\t\t\t\t\t{\n\t\t\t\t\t\telement.className = data.attrs[key];\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\t// eslint-disable-next-line\n\t\t\t\t\tif (data.attrs[key] == '')\n\t\t\t\t\t{\n\t\t\t\t\t\telement.removeAttribute(key);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\telement.setAttribute(key, data.attrs[key]);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (Type.isPlainObject(data.style))\n\t\t\t{\n\t\t\t\tDom.style(element, data.style);\n\t\t\t}\n\n\t\t\tif (Type.isPlainObject(data.props))\n\t\t\t{\n\t\t\t\tObject.keys(data.props).forEach((key) => {\n\t\t\t\t\telement[key] = data.props[key];\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (Type.isPlainObject(data.events))\n\t\t\t{\n\t\t\t\tObject.keys(data.events).forEach((key) => {\n\t\t\t\t\tEvent.bind(element, key, data.events[key]);\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (Type.isPlainObject(data.dataset))\n\t\t\t{\n\t\t\t\tObject.keys(data.dataset).forEach((key) => {\n\t\t\t\t\telement.dataset[key] = data.dataset[key];\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (Type.isString(data.children))\n\t\t\t{\n\t\t\t\tdata.children = [data.children];\n\t\t\t}\n\n\t\t\tif (Type.isArray(data.children) && data.children.length > 0)\n\t\t\t{\n\t\t\t\tdata.children.forEach((item) => {\n\t\t\t\t\tif (Type.isDomNode(item))\n\t\t\t\t\t{\n\t\t\t\t\t\tDom.append(item, element);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (Type.isString(item))\n\t\t\t\t\t{\n\t\t\t\t\t\telement.insertAdjacentHTML('beforeend', item);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\treturn element;\n\t\t\t}\n\n\t\t\tif ('text' in data && !Type.isNil(data.text))\n\t\t\t{\n\t\t\t\telement.textContent = data.text;\n\t\t\t\treturn element;\n\t\t\t}\n\n\t\t\tif ('html' in data && !Type.isNil(data.html))\n\t\t\t{\n\t\t\t\telement.innerHTML = data.html;\n\t\t\t}\n\t\t}\n\n\t\treturn element;\n\t}\n\n\t/**\n\t * Creates element\n\t * @param tag\n\t * @param data\n\t * @param context\n\t * @return {HTMLElement|HTMLBodyElement}\n\t */\n\tstatic create(\n\t\ttag: string | {[key: string]: any},\n\t\tdata?: Object = {},\n\t\tcontext: HTMLDocument = document,\n\t)\n\t{\n\t\tlet tagName = tag;\n\t\tlet options = data;\n\n\t\tif (Type.isObjectLike(tag))\n\t\t{\n\t\t\toptions = tag;\n\t\t\ttagName = tag.tag;\n\t\t}\n\n\t\treturn Dom.adjust(context.createElement(tagName), options);\n\t}\n\n\t/**\n\t * Shows element\n\t * @param element\n\t */\n\tstatic show(element: ?HTMLElement)\n\t{\n\t\tif (Type.isDomNode(element))\n\t\t{\n\t\t\t// eslint-disable-next-line\n\t\t\telement.hidden = false;\n\t\t}\n\t}\n\n\t/**\n\t * Hides element\n\t * @param element\n\t */\n\tstatic hide(element: ?HTMLElement)\n\t{\n\t\tif (Type.isDomNode(element))\n\t\t{\n\t\t\t// eslint-disable-next-line\n\t\t\telement.hidden = true;\n\t\t}\n\t}\n\n\t/**\n\t * Checks that element is shown\n\t * @param element\n\t * @return {*|boolean}\n\t */\n\tstatic isShown(element: ?HTMLElement)\n\t{\n\t\treturn (\n\t\t\tType.isDomNode(element)\n\t\t\t&& !element.hidden\n\t\t\t&& element.style.getPropertyValue('display') !== 'none'\n\t\t);\n\t}\n\n\t/**\n\t * Toggles element visibility\n\t * @param element\n\t */\n\tstatic toggle(element: HTMLElement)\n\t{\n\t\tif (Type.isDomNode(element))\n\t\t{\n\t\t\tif (Dom.isShown(element))\n\t\t\t{\n\t\t\t\tDom.hide(element);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tDom.show(element);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * Gets element position relative page\n\t * @param {HTMLElement} element\n\t * @return {DOMRect}\n\t */\n\tstatic getPosition(element: HTMLElement): DOMRect\n\t{\n\t\tif (Type.isDomNode(element))\n\t\t{\n\t\t\tconst elementRect = element.getBoundingClientRect();\n\t\t\tconst {scrollLeft, scrollTop} = getPageScroll();\n\n\t\t\treturn new DOMRect(\n\t\t\t\t(elementRect.left + scrollLeft),\n\t\t\t\t(elementRect.top + scrollTop),\n\t\t\t\telementRect.width,\n\t\t\t\telementRect.height,\n\t\t\t);\n\t\t}\n\n\t\treturn new DOMRect();\n\t}\n\n\t/**\n\t * Gets element position relative specified element position\n\t * @param {HTMLElement} element\n\t * @param {HTMLElement} relationElement\n\t * @return {DOMRect}\n\t */\n\tstatic getRelativePosition(element: HTMLElement, relationElement: HTMLElement): DOMRect\n\t{\n\t\tif (Type.isDomNode(element) && Type.isDomNode(relationElement))\n\t\t{\n\t\t\tconst elementPosition = Dom.getPosition(element);\n\t\t\tconst relationElementPosition = Dom.getPosition(relationElement);\n\n\t\t\treturn new DOMRect(\n\t\t\t\telementPosition.left - relationElementPosition.left,\n\t\t\t\telementPosition.top - relationElementPosition.top,\n\t\t\t\telementPosition.width,\n\t\t\t\telementPosition.height,\n\t\t\t);\n\t\t}\n\n\t\treturn new DOMRect();\n\t}\n\n\tstatic attr(\n\t\telement: ?HTMLElement,\n\t\tattr: string | {[key: string]: any},\n\t\tvalue?: any,\n\t)\n\t{\n\t\tif (Type.isElementNode(element))\n\t\t{\n\t\t\tif (Type.isString(attr))\n\t\t\t{\n\t\t\t\tif (!Type.isNil(value))\n\t\t\t\t{\n\t\t\t\t\treturn element.setAttribute(attr, encodeAttributeValue(value));\n\t\t\t\t}\n\n\t\t\t\tif (Type.isNull(value))\n\t\t\t\t{\n\t\t\t\t\treturn element.removeAttribute(attr);\n\t\t\t\t}\n\n\t\t\t\treturn decodeAttributeValue(element.getAttribute(attr));\n\t\t\t}\n\n\t\t\tif (Type.isPlainObject(attr))\n\t\t\t{\n\t\t\t\treturn Object.entries(attr).forEach(([attrKey, attrValue]) => {\n\t\t\t\t\tDom.attr(element, attrKey, attrValue);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\treturn null;\n\t}\n}\n","import Type from './type';\nimport Dom from './dom';\n\nconst UA = navigator.userAgent.toLowerCase();\n\n/**\n * @memberOf BX\n */\nexport default class Browser\n{\n\tstatic isOpera()\n\t{\n\t\treturn UA.includes('opera');\n\t}\n\n\tstatic isIE()\n\t{\n\t\treturn ('attachEvent' in document) && !Browser.isOpera();\n\t}\n\n\tstatic isIE6()\n\t{\n\t\treturn UA.includes('msie 6');\n\t}\n\n\tstatic isIE7()\n\t{\n\t\treturn UA.includes('msie 7');\n\t}\n\n\tstatic isIE8()\n\t{\n\t\treturn UA.includes('msie 8');\n\t}\n\n\tstatic isIE9()\n\t{\n\t\treturn ('documentMode' in document) && document.documentMode >= 9;\n\t}\n\n\tstatic isIE10()\n\t{\n\t\treturn ('documentMode' in document) && document.documentMode >= 10;\n\t}\n\n\tstatic isSafari()\n\t{\n\t\treturn UA.includes('safari') && !UA.includes('chrome');\n\t}\n\n\tstatic isFirefox()\n\t{\n\t\treturn UA.includes('firefox');\n\t}\n\n\tstatic isChrome()\n\t{\n\t\treturn UA.includes('chrome');\n\t}\n\n\tstatic detectIEVersion()\n\t{\n\t\tif (Browser.isOpera() || Browser.isSafari() || Browser.isFirefox() || Browser.isChrome())\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\tlet rv = -1;\n\n\t\tif (\n\t\t\t!!(window.MSStream)\n\t\t\t&& !(window.ActiveXObject)\n\t\t\t&& ('ActiveXObject' in window)\n\t\t)\n\t\t{\n\t\t\trv = 11;\n\t\t}\n\t\telse if (Browser.isIE10())\n\t\t{\n\t\t\trv = 10;\n\t\t}\n\t\telse if (Browser.isIE9())\n\t\t{\n\t\t\trv = 9;\n\t\t}\n\t\telse if (Browser.isIE())\n\t\t{\n\t\t\trv = 8;\n\t\t}\n\n\t\tif (rv === -1 || rv === 8)\n\t\t{\n\t\t\tif (navigator.appName === 'Microsoft Internet Explorer')\n\t\t\t{\n\t\t\t\tconst re = new RegExp('MSIE ([0-9]+[.0-9]*)');\n\t\t\t\tconst res = navigator.userAgent.match(re);\n\n\t\t\t\tif (Type.isArrayLike(res) && res.length > 0)\n\t\t\t\t{\n\t\t\t\t\trv = parseFloat(res[1]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (navigator.appName === 'Netscape')\n\t\t\t{\n\t\t\t\t// Alternative check for IE 11\n\t\t\t\trv = 11;\n\t\t\t\tconst re = new RegExp('Trident/.*rv:([0-9]+[.0-9]*)');\n\n\t\t\t\tif (re.exec(navigator.userAgent) != null)\n\t\t\t\t{\n\t\t\t\t\tconst res = navigator.userAgent.match(re);\n\n\t\t\t\t\tif (Type.isArrayLike(res) && res.length > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\trv = parseFloat(res[1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn rv;\n\t}\n\n\tstatic isIE11()\n\t{\n\t\treturn Browser.detectIEVersion() >= 11;\n\t}\n\n\tstatic isMac()\n\t{\n\t\treturn UA.includes('macintosh');\n\t}\n\n\tstatic isWin()\n\t{\n\t\treturn UA.includes('windows');\n\t}\n\n\tstatic isLinux()\n\t{\n\t\treturn UA.includes('linux') && !Browser.isAndroid();\n\t}\n\n\tstatic isAndroid()\n\t{\n\t\treturn UA.includes('android');\n\t}\n\n\tstatic isIPad()\n\t{\n\t\treturn UA.includes('ipad;') || (this.isMac() && this.isTouchDevice());\n\t}\n\n\tstatic isIPhone()\n\t{\n\t\treturn UA.includes('iphone;');\n\t}\n\n\tstatic isIOS()\n\t{\n\t\treturn Browser.isIPad() || Browser.isIPhone();\n\t}\n\n\tstatic isMobile()\n\t{\n\t\treturn (\n\t\t\tBrowser.isIPhone()\n\t\t\t|| Browser.isIPad()\n\t\t\t|| Browser.isAndroid()\n\t\t\t|| UA.includes('mobile')\n\t\t\t|| UA.includes('touch')\n\t\t);\n\t}\n\n\tstatic isRetina()\n\t{\n\t\treturn window.devicePixelRatio && window.devicePixelRatio >= 2;\n\t}\n\n\tstatic isTouchDevice()\n\t{\n\t\treturn (\n\t\t\t('ontouchstart' in window) || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0\n\t\t);\n\t}\n\n\tstatic isDoctype(target: any)\n\t{\n\t\tconst doc = target || document;\n\n\t\tif (doc.compatMode)\n\t\t{\n\t\t\treturn (doc.compatMode === 'CSS1Compat');\n\t\t}\n\n\t\treturn (doc.documentElement && doc.documentElement.clientHeight);\n\t}\n\n\tstatic isLocalStorageSupported()\n\t{\n\t\ttry\n\t\t{\n\t\t\tlocalStorage.setItem('test', 'test');\n\t\t\tlocalStorage.removeItem('test');\n\t\t\treturn true;\n\t\t}\n\t\tcatch (e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tstatic addGlobalClass(target: Element)\n\t{\n\t\tlet globalClass = 'bx-core';\n\n\t\ttarget = Type.isElementNode(target) ? target : document.documentElement;\n\t\tif (Dom.hasClass(target, globalClass))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif (Browser.isIOS())\n\t\t{\n\t\t\tglobalClass += ' bx-ios';\n\t\t}\n\t\telse if (Browser.isWin())\n\t\t{\n\t\t\tglobalClass += ' bx-win';\n\t\t}\n\t\telse if (Browser.isMac())\n\t\t{\n\t\t\tglobalClass += ' bx-mac';\n\t\t}\n\t\telse if (Browser.isLinux())\n\t\t{\n\t\t\tglobalClass += ' bx-linux';\n\t\t}\n\t\telse if (Browser.isAndroid())\n\t\t{\n\t\t\tglobalClass += ' bx-android';\n\t\t}\n\n\t\tglobalClass += (Browser.isMobile() ? ' bx-touch' : ' bx-no-touch');\n\t\tglobalClass += (Browser.isRetina() ? ' bx-retina' : ' bx-no-retina');\n\n\t\tif (/AppleWebKit/.test(navigator.userAgent))\n\t\t{\n\t\t\tglobalClass += ' bx-chrome';\n\t\t}\n\t\telse if (/Opera/.test(navigator.userAgent))\n\t\t{\n\t\t\tglobalClass += ' bx-opera';\n\t\t}\n\t\telse if (Browser.isFirefox())\n\t\t{\n\t\t\tglobalClass += ' bx-firefox';\n\t\t}\n\n\t\tDom.addClass(target, globalClass);\n\t}\n\n\tstatic detectAndroidVersion()\n\t{\n\t\tconst re = new RegExp('Android ([0-9]+[.0-9]*)');\n\n\t\tif (re.exec(navigator.userAgent) != null)\n\t\t{\n\t\t\tconst res = navigator.userAgent.match(re);\n\n\t\t\tif (Type.isArrayLike(res) && res.length > 0)\n\t\t\t{\n\t\t\t\treturn parseFloat(res[1]);\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}\n\n\tstatic isPropertySupported(jsProperty: any, returnCSSName: any)\n\t{\n\t\tif (jsProperty === '')\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\tfunction getCssName(propertyName)\n\t\t{\n\t\t\treturn propertyName.replace(/([A-Z])/g, (...args) => `-${args[1].toLowerCase()}`);\n\t\t}\n\n\t\tfunction getJsName(cssName)\n\t\t{\n\t\t\tconst reg = /(\\\\-([a-z]))/g;\n\n\t\t\tif (reg.test(cssName))\n\t\t\t{\n\t\t\t\treturn cssName.replace(reg, (...args) => args[2].toUpperCase());\n\t\t\t}\n\n\t\t\treturn cssName;\n\t\t}\n\n\t\tconst property = jsProperty.includes('-') ? getJsName(jsProperty) : jsProperty;\n\t\tconst bReturnCSSName = !!returnCSSName;\n\t\tconst ucProperty = property.charAt(0).toUpperCase() + property.slice(1);\n\t\tconst props = ['Webkit', 'Moz', 'O', 'ms'].join(`${ucProperty} `);\n\t\tconst properties = `${property} ${props} ${ucProperty}`.split(' ');\n\n\t\tconst obj = document.body || document.documentElement;\n\n\t\tfor (let i = 0; i < properties.length; i += 1)\n\t\t{\n\t\t\tconst prop = properties[i];\n\n\t\t\tif (obj && 'style' in obj && prop in obj.style)\n\t\t\t{\n\t\t\t\tconst lowerProp = prop.substr(0, prop.length - property.length).toLowerCase();\n\t\t\t\tconst prefix = prop === property ? '' : `-${lowerProp}-`;\n\t\t\t\treturn bReturnCSSName ? prefix + getCssName(property) : prop;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tstatic addGlobalFeatures(features: any)\n\t{\n\t\tif (!Type.isArray(features))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tconst classNames = [];\n\n\t\tfor (let i = 0; i < features.length; i += 1)\n\t\t{\n\t\t\tconst support = !!Browser.isPropertySupported(features[i]);\n\t\t\tclassNames.push(`bx-${(support ? '' : 'no-')}${features[i].toLowerCase()}`);\n\t\t}\n\n\t\tDom.addClass(document.documentElement, classNames.join(' '));\n\t}\n}","import Type from '../type';\n\nexport default class Cookie\n{\n\t/**\n\t * Gets cookies list for current domain\n\t * @return {object}\n\t */\n\tstatic getList(): {[key: string]: string}\n\t{\n\t\treturn document.cookie\n\t\t\t.split(';')\n\t\t\t.map(item => item.split('='))\n\t\t\t.map(item => item.map(subItem => subItem.trim()))\n\t\t\t.reduce((acc, item) => {\n\t\t\t\tconst [key, value] = item;\n\t\t\t\tacc[decodeURIComponent(key)] = (\n\t\t\t\t\tdecodeURIComponent(value)\n\t\t\t\t);\n\t\t\t\treturn acc;\n\t\t\t}, {});\n\t}\n\n\t/**\n\t * Gets cookie value\n\t * @param {string} name\n\t * @return {*}\n\t */\n\tstatic get(name)\n\t{\n\t\tconst cookiesList = Cookie.getList();\n\n\t\tif (name in cookiesList)\n\t\t{\n\t\t\treturn cookiesList[name];\n\t\t}\n\n\t\treturn undefined;\n\t}\n\n\t/**\n\t * Sets cookie\n\t * @param {string} name\n\t * @param {*} value\n\t * @param {object} [options]\n\t */\n\tstatic set(name, value, options = {})\n\t{\n\t\tconst attributes = {\n\t\t\texpires: '',\n\t\t\t...options,\n\t\t};\n\n\t\tif (Type.isNumber(attributes.expires))\n\t\t{\n\t\t\tconst now = (+new Date());\n\t\t\tconst days = attributes.expires;\n\t\t\tconst dayInMs = 864e+5;\n\t\t\tattributes.expires = new Date(now + days * dayInMs);\n\t\t}\n\n\t\tif (Type.isDate(attributes.expires))\n\t\t{\n\t\t\tattributes.expires = attributes.expires.toUTCString();\n\t\t}\n\n\t\tconst safeName = decodeURIComponent(String(name))\n\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t.replace(/[()]/g, escape);\n\n\t\tconst safeValue = encodeURIComponent(String(value))\n\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\tconst stringifiedAttributes = Object.keys(attributes)\n\t\t\t.reduce((acc, key) => {\n\t\t\t\tconst attributeValue = attributes[key];\n\n\t\t\t\tif (!attributeValue)\n\t\t\t\t{\n\t\t\t\t\treturn acc;\n\t\t\t\t}\n\n\t\t\t\tif (attributeValue === true)\n\t\t\t\t{\n\t\t\t\t\treturn `${acc}; ${key}`;\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Considers RFC 6265 section 5.2:\n\t\t\t\t * ...\n\t\t\t\t * 3. If the remaining unparsed-attributes contains a %x3B (';')\n\t\t\t\t * character:\n\t\t\t\t * Consume the characters of the unparsed-attributes up to,\n\t\t\t\t * not including, the first %x3B (';') character.\n\t\t\t\t */\n\t\t\t\treturn `${acc}; ${key}=${attributeValue.split(';')[0]}`;\n\t\t\t}, '');\n\n\t\tdocument.cookie = `${safeName}=${safeValue}${stringifiedAttributes}`;\n\t}\n\n\t/**\n\t * Removes cookie\n\t * @param {string} name\n\t * @param {object} [options]\n\t */\n\tstatic remove(name, options = {})\n\t{\n\t\tCookie.set(name, '', {...options, expires: -1});\n\t}\n}","import Type from '../../type';\n\nexport default function objectToFormData(\n\tsource: {[key: string]: any},\n\tformData: FormData = new FormData(),\n\tpre = null,\n)\n{\n\tif (Type.isUndefined(source))\n\t{\n\t\treturn formData;\n\t}\n\n\tif (Type.isNull(source))\n\t{\n\t\tformData.append(pre, '');\n\t}\n\telse if (Type.isArray(source))\n\t{\n\t\tif (!source.length)\n\t\t{\n\t\t\tconst key = `${pre}[]`;\n\t\t\tformData.append(key, '');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsource.forEach((value, index) => {\n\t\t\t\tconst key = `${pre}[${index}]`;\n\t\t\t\tobjectToFormData(value, formData, key);\n\t\t\t});\n\t\t}\n\t}\n\telse if (Type.isDate(source))\n\t{\n\t\tformData.append(pre, source.toISOString());\n\t}\n\telse if (Type.isObject(source) && !Type.isFile(source) && !Type.isBlob(source))\n\t{\n\t\tObject.keys(source).forEach((property) => {\n\t\t\tconst value = source[property];\n\t\t\tlet preparedProperty = property;\n\n\t\t\tif (Type.isArray(value))\n\t\t\t{\n\t\t\t\twhile (preparedProperty.length > 2 && preparedProperty.lastIndexOf('[]') === preparedProperty.length - 2)\n\t\t\t\t{\n\t\t\t\t\tpreparedProperty = preparedProperty.substring(0, preparedProperty.length - 2);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst key = pre ? `${pre}[${preparedProperty}]` : preparedProperty;\n\t\t\tobjectToFormData(value, formData, key);\n\t\t});\n\t}\n\telse\n\t{\n\t\tformData.append(pre, source);\n\t}\n\n\treturn formData;\n}","import objectToFormData from './internal/convert-object-to-form-data';\n\nexport default class Data\n{\n\t/**\n\t * Converts object to FormData\n\t * @param source\n\t * @return {FormData}\n\t */\n\tstatic convertObjectToFormData(source: {[key: string]: any}): FormData\n\t{\n\t\treturn objectToFormData(source);\n\t}\n}","import Cookie from './http/cookie';\nimport Data from './http/data';\n\n/**\n * @memberOf BX\n */\nexport default class Http\n{\n\tstatic Cookie = Cookie;\n\tstatic Data = Data;\n}","import Type from '../type';\nimport Runtime from '../runtime';\nimport EventEmitter from '../event/event-emitter';\nimport BaseEvent from '../event/base-event';\n\ntype messageParam = string | {[key: string]: string | number};\n\nexport default function message(value: messageParam): string | boolean | void\n{\n\tif (Type.isString(value))\n\t{\n\t\tif (Type.isNil(message[value]))\n\t\t{\n\t\t\t// eslint-disable-next-line\n\t\t\tEventEmitter.emit('onBXMessageNotFound', new BaseEvent({ compatData: [value] }));\n\n\t\t\tif (Type.isNil(message[value]))\n\t\t\t{\n\t\t\t\tRuntime.debug(`message undefined: ${value}`);\n\t\t\t\tmessage[value] = '';\n\t\t\t}\n\t\t}\n\t}\n\n\tif (Type.isPlainObject(value))\n\t{\n\t\tObject.keys(value).forEach((key) => {\n\t\t\tmessage[key] = value[key];\n\t\t});\n\t}\n\n\treturn message[value];\n}\n\nif (\n\t!Type.isNil(window.BX)\n\t&& Type.isFunction(window.BX.message)\n)\n{\n\tObject.keys(window.BX.message).forEach((key) => {\n\t\tmessage({[key]: window.BX.message[key]});\n\t});\n}","import Type from './type';\nimport message from './loc/message';\n\n/**\n * Implements interface for works with language messages\n * @memberOf BX\n */\nexport default class Loc\n{\n\t/**\n\t * Gets message by id\n\t * @param {string} messageId\n\t * @param {object} replacements\n\t * @return {?string}\n\t */\n\tstatic getMessage(messageId: string, replacements: {[key: string]: string} = null): ?string\n\t{\n\t\tlet mess = message(messageId);\n\t\tif (Type.isString(mess) && Type.isPlainObject(replacements))\n\t\t{\n\t\t\tconst escape: string = (str: string): string => String(str).replace(/[\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n\t\t\tObject.keys(replacements).forEach((replacement: string) => {\n\t\t\t\tconst globalRegexp = new RegExp(escape(replacement), 'gi');\n\t\t\t\tmess = mess.replace(\n\t\t\t\t\tglobalRegexp,\n\t\t\t\t\t() => {\n\t\t\t\t\t\treturn Type.isNil(replacements[replacement]) ? '' : String(replacements[replacement]);\n\t\t\t\t\t}\n\t\t\t\t);\n\t\t\t});\n\t\t}\n\n\t\treturn mess;\n\t}\n\n\tstatic hasMessage(messageId: string): boolean\n\t{\n\t\treturn Type.isString(messageId) && !Type.isNil(message[messageId]);\n\t}\n\n\t/**\n\t * Sets message or messages\n\t * @param {string | Object<string, string>} id\n\t * @param {string} [value]\n\t */\n\tstatic setMessage(id: string | {[key: string]: string}, value?: string)\n\t{\n\t\tif (Type.isString(id) && Type.isString(value))\n\t\t{\n\t\t\tmessage({[id]: value});\n\t\t}\n\n\t\tif (Type.isObject(id))\n\t\t{\n\t\t\tmessage(id);\n\t\t}\n\t}\n\n\t/**\n\t * Gets plural message by id and number\n\t * @param {string} messageId\n\t * @param {number} value\n\t * @param {object} [replacements]\n\t * @return {?string}\n\t */\n\tstatic getMessagePlural(messageId: string, value: number, replacements:? {[key: string]: string} = null)\n\t{\n\t\tlet result = '';\n\n\t\tif (Type.isNumber(value))\n\t\t{\n\t\t\tif (this.hasMessage(`${messageId}_PLURAL_${this.getPluralForm(value)}`))\n\t\t\t{\n\t\t\t\tresult = this.getMessage(`${messageId}_PLURAL_${this.getPluralForm(value)}`, replacements);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tresult = this.getMessage(`${messageId}_PLURAL_1`, replacements);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresult = this.getMessage(messageId, replacements);\n\t\t}\n\n\t\treturn result;\n\t}\n\n\t/**\n\t * Gets language plural form id by number\n\t * see http://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html\n\t * @param {number} value\n\t * @param {string} [languageId]\n\t * @return {?number}\n\t */\n\tstatic getPluralForm(value: number, languageId?: string)\n\t{\n\t\tlet pluralForm;\n\n\t\tif (!Type.isStringFilled(languageId))\n\t\t{\n\t\t\tlanguageId = message('LANGUAGE_ID');\n\t\t}\n\n\t\tif (value < 0)\n\t\t{\n\t\t\tvalue = (-1) * value;\n\t\t}\n\n\t\tswitch (languageId)\n\t\t{\n\t\t\tcase 'ar':\n\t\t\t\tpluralForm = ((value !== 1) ? 1 : 0);\n/*\n\t\t\t\tif (value === 0)\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 0;\n\t\t\t\t}\n\t\t\t\telse if (value === 1)\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 1;\n\t\t\t\t}\n\t\t\t\telse if (value === 2)\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 2;\n\t\t\t\t}\n\t\t\t\telse if (\n\t\t\t\t\tvalue % 100 >= 3\n\t\t\t\t\t&& value % 100 <= 10\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 3;\n\t\t\t\t}\n\t\t\t\telse if (value % 100 >= 11)\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 4;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 5;\n\t\t\t\t}\n */\n\t\t\t\tbreak;\n\n\t\t\tcase 'br':\n\t\t\tcase 'fr':\n\t\t\tcase 'tr':\n\t\t\t\tpluralForm = ((value > 1) ? 1 : 0);\n\t\t\t\tbreak;\n\n\t\t\tcase 'de':\n\t\t\tcase 'en':\n\t\t\tcase 'hi':\n\t\t\tcase 'it':\n\t\t\tcase 'la':\n\t\t\t\tpluralForm = ((value !== 1) ? 1 : 0);\n\t\t\t\tbreak;\n\n\t\t\tcase 'ru':\n\t\t\tcase 'ua':\n\t\t\t\tif (\n\t\t\t\t\t(value % 10 === 1)\n\t\t\t\t\t&& (value % 100 !== 11)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 0;\n\t\t\t\t}\n\t\t\t\telse if (\n\t\t\t\t\t(value % 10 >= 2)\n\t\t\t\t\t&& (value % 10 <= 4)\n\t\t\t\t\t&& (\n\t\t\t\t\t\t(value % 100 < 10)\n\t\t\t\t\t\t|| (value % 100 >= 20)\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase 'pl':\n\t\t\t\tif (value === 1)\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 0;\n\t\t\t\t}\n\t\t\t\telse if (\n\t\t\t\t\tvalue % 10 >= 2\n\t\t\t\t\t&& value % 10 <= 4\n\t\t\t\t\t&& (\n\t\t\t\t\t\tvalue % 100 < 10\n\t\t\t\t\t\t|| value % 100 >= 20\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 1;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpluralForm = 2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase 'id':\n\t\t\tcase 'ja':\n\t\t\tcase 'ms':\n\t\t\tcase 'sc':\n\t\t\tcase 'tc':\n\t\t\tcase 'th':\n\t\t\tcase 'vn':\n\t\t\t\tpluralForm = 0;\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tpluralForm = 1;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn pluralForm;\n\t}\n\n}","const voidElements = [\n\t'area',\n\t'base',\n\t'br',\n\t'col',\n\t'embed',\n\t'hr',\n\t'img',\n\t'input',\n\t'link',\n\t'meta',\n\t'param',\n\t'source',\n\t'track',\n\t'wbr',\n];\n\nexport default function isVoidElement(element: string): boolean\n{\n\treturn voidElements.includes(element);\n}","const matchers = {\n\ttag: /<[a-zA-Z0-9\\-\\!\\/](?:\"[^\"]*\"|'[^']*'|[^'\">])*>|{{uid[0-9]+}}/g,\n\tcomment: /<!--(?!<!)[^\\[>].*?-->/g,\n\ttagName: /<\\/?([^\\s]+?)[/\\s>]/,\n\tattributes: /\\s([\\w\\-_:.]+)\\s?\\n?=\\s?\\n?\"([^\"]+)?\"|\\s([\\w\\-_:.]+)\\s?\\n?=\\s?\\n?'([^']+)?'|\\s([\\w\\-_:.]+)/gs,\n\tplaceholder: /{{uid[0-9]+}}/g,\n};\n\nexport default matchers;","import Type from '../../type';\nimport isVoidElement from './is-void-element';\nimport matchers from './matchers';\n\ntype TagResult = {\n\ttype: 'tag' | 'comment',\n\tname?: string,\n\tsvg?: boolean,\n\tattrs?: {[key: string]: any},\n\tchildren?: Array<TagResult>,\n\tvoidElement: boolean,\n\tcontent?: string,\n};\n\nexport default function parseTag(tag: string): TagResult\n{\n\tconst tagResult: TagResult = {\n\t\ttype: 'tag',\n\t\tname: '',\n\t\tsvg: false,\n\t\tattrs: {},\n\t\tchildren: [],\n\t\tvoidElement: false,\n\t}\n\n\tif (tag.startsWith('<!--'))\n\t{\n\t\tconst endIndex = tag.indexOf('-->');\n\t\tconst openTagLength = '<!--'.length;\n\t\treturn {\n\t\t\ttype: 'comment',\n\t\t\tcontent: endIndex !== -1 ? tag.slice(openTagLength, endIndex) : '',\n\t\t};\n\t}\n\n\tconst tagNameMatch = tag.match(matchers.tagName);\n\tif (Type.isArrayFilled(tagNameMatch))\n\t{\n\t\tconst [, tagName] = tagNameMatch;\n\t\ttagResult.name = tagName;\n\t\ttagResult.svg = tagName === 'svg';\n\t\ttagResult.voidElement = isVoidElement(tagName) || tag.trim().endsWith('/>');\n\t}\n\n\tconst reg = new RegExp(matchers.attributes);\n\tfor (;;)\n\t{\n\t\tconst result = reg.exec(tag);\n\t\tif (!Type.isNil(result))\n\t\t{\n\t\t\t// Attributes with double quotes\n\t\t\tconst [, attrName, attrValue] = result;\n\t\t\tif (!Type.isNil(attrName))\n\t\t\t{\n\t\t\t\ttagResult.attrs[attrName] = Type.isStringFilled(attrValue) ? attrValue : '';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Attributes with single quotes\n\t\t\t\tconst [,,, attrName, attrValue] = result;\n\t\t\t\tif (!Type.isNil(attrName))\n\t\t\t\t{\n\t\t\t\t\ttagResult.attrs[attrName] = Type.isStringFilled(attrValue) ? attrValue : '';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Attributes without value\n\t\t\t\t\tconst [,,,,, attrName] = result;\n\t\t\t\t\ttagResult.attrs[attrName] = '';\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tbreak;\n\t\t}\n\t}\n\n\treturn tagResult;\n}","import Type from '../../type';\nimport matchers from './matchers';\n\ntype TextResult = {\n\ttype: 'text' | 'placeholder',\n\tcontent?: string,\n\tuid?: number,\n};\n\nexport default function parseText(input: string): Array<TextResult>\n{\n\tconst preparedText = input.replace(/[\\n\\r\\t]$/, '');\n\tconst placeholders = preparedText.match(matchers.placeholder);\n\treturn preparedText.split(matchers.placeholder).reduce((acc, item, index) => {\n\t\tif (Type.isStringFilled(item))\n\t\t{\n\t\t\tacc.push(\n\t\t\t\t...item.split(/\\n/).reduce((textAcc, text) => {\n\t\t\t\t\tconst preparedItemText = text.replace(/[\\t\\r]/g, '');\n\t\t\t\t\tif (Type.isStringFilled(preparedItemText))\n\t\t\t\t\t{\n\t\t\t\t\t\ttextAcc.push({\n\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t\tcontent: preparedItemText,\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\treturn textAcc;\n\t\t\t\t}, []),\n\t\t\t);\n\t\t}\n\n\t\tif (placeholders && placeholders[index])\n\t\t{\n\t\t\tacc.push({\n\t\t\t\ttype: 'placeholder',\n\t\t\t\tuid: parseInt(placeholders[index].replace(/{{uid|}}/, '')),\n\t\t\t});\n\t\t}\n\n\t\treturn acc;\n\t}, []);\n}","import parseTag from './parse-tag';\nimport matchers from './matchers';\nimport parseText from './parse-text';\n\nexport default function parse(html: string, substitutions): Array<any>\n{\n\tconst result = [];\n\n\tif (html.indexOf('<') !== 0 && !html.startsWith('{{'))\n\t{\n\t\tconst end = html.indexOf('<');\n\t\tresult.push(...parseText(end === -1 ? html : html.slice(0, end)));\n\t}\n\n\tconst commentsContent = [];\n\tlet commentIndex = -1;\n\thtml = html.replace(matchers.comment, (tag) => {\n\t\tcommentIndex += 1;\n\t\tcommentsContent.push(tag.replace(/^<!--|-->$/g, ''));\n\t\treturn `<!--{{cUid${commentIndex}}}-->`;\n\t});\n\n\tconst arr = [];\n\tlet level = -1;\n\tlet current;\n\thtml.replace(matchers.tag, (tag, index) => {\n\t\tconst start = index + tag.length;\n\t\tconst nextChar = html.charAt(start);\n\t\tlet parent;\n\n\t\tif (tag.startsWith('<!--'))\n\t\t{\n\t\t\tconst comment = parseTag(tag, substitutions);\n\t\t\tcomment.content = commentsContent[tag.replace(/<!--{{cUid|}}-->/g, '')];\n\n\t\t\tif (level < 0)\n\t\t\t{\n\t\t\t\tresult.push(comment);\n\t\t\t\treturn result;\n\t\t\t}\n\n\t\t\tparent = arr[level];\n\t\t\tparent.children.push(comment);\n\n\t\t\treturn result;\n\t\t}\n\n\t\tif (tag.startsWith('{{'))\n\t\t{\n\t\t\tconst [placeholder] = parseText(tag);\n\n\t\t\tif (level < 0)\n\t\t\t{\n\t\t\t\tresult.push(placeholder);\n\t\t\t\treturn result;\n\t\t\t}\n\n\t\t\tparent = arr[level];\n\t\t\tparent.children.push(placeholder);\n\n\t\t\treturn result;\n\t\t}\n\n\t\tif (!tag.startsWith('</'))\n\t\t{\n\t\t\tlevel++;\n\n\t\t\tcurrent = parseTag(tag, substitutions);\n\n\t\t\tif (\n\t\t\t\t!current.voidElement\n\t\t\t\t&& nextChar\n\t\t\t\t&& nextChar !== '<'\n\t\t\t)\n\t\t\t{\n\t\t\t\tcurrent.children.push(\n\t\t\t\t\t...parseText(html.slice(start, html.indexOf('<', start))),\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif (level === 0)\n\t\t\t{\n\t\t\t\tresult.push(current);\n\t\t\t}\n\n\t\t\tparent = arr[level - 1];\n\n\t\t\tif (parent)\n\t\t\t{\n\t\t\t\tif (!current.svg)\n\t\t\t\t{\n\t\t\t\t\tcurrent.svg = parent.svg;\n\t\t\t\t}\n\n\t\t\t\tparent.children.push(current);\n\t\t\t}\n\n\t\t\tarr[level] = current;\n\t\t}\n\n\t\tif (tag.startsWith('</') || current.voidElement)\n\t\t{\n\t\t\tif (\n\t\t\t\tlevel > -1\n\t\t\t\t&& (current.voidElement || current.name === tag.slice(2, -1))\n\t\t\t)\n\t\t\t{\n\t\t\t\tlevel--;\n\t\t\t\tcurrent = level === -1 ? result : arr[level];\n\t\t\t}\n\n\t\t\tif (nextChar && nextChar !== '<')\n\t\t\t{\n\t\t\t\tparent = level === -1 ? result : arr[level].children;\n\n\t\t\t\tconst end = html.indexOf('<', start);\n\t\t\t\tconst content = html.slice(start, end === -1 ? undefined : end);\n\n\t\t\t\tif ((end > -1 && level + parent.length >= 0) || content !== ' ')\n\t\t\t\t{\n\t\t\t\t\tparent.push(...parseText(content));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t});\n\n\treturn result;\n}","import Type from '../../type';\nimport Dom from '../../dom';\nimport Text from '../../text';\nimport Event from '../../event';\nimport matchers from './matchers';\n\ntype RenderNodeOptions = {\n\tnode: any,\n\tparentElement: HTMLElement,\n\tsubstitutions: Array<any>,\n\trefs: Array<Array<string, HTMLElement | HTMLTemplateElement | SVGElement>>,\n};\n\nconst appendElement = (current: HTMLElement | HTMLTemplateElement, target: HTMLElement | HTMLTemplateElement) => {\n\tif (Type.isDomNode(current) && Type.isDomNode(target))\n\t{\n\t\tif (target.nodeName !== 'TEMPLATE')\n\t\t{\n\t\t\tDom.append(current, target);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// eslint-disable-next-line bitrix-rules/no-native-dom-methods\n\t\t\ttarget.content.append(current);\n\t\t}\n\t}\n};\n\nexport default function renderNode(options: RenderNodeOptions): HTMLDivElement | Array<HTMLDivElement>\n{\n\tconst {node, parentElement, substitutions, refs = []} = options;\n\n\tif (node.type === 'tag')\n\t{\n\t\tconst element = (() => {\n\t\t\tif (node.svg)\n\t\t\t{\n\t\t\t\treturn document.createElementNS('http://www.w3.org/2000/svg', node.name);\n\t\t\t}\n\n\t\t\treturn document.createElement(node.name);\n\t\t})();\n\n\t\tif (Object.hasOwn(node.attrs, 'ref'))\n\t\t{\n\t\t\trefs.push([node.attrs.ref, element]);\n\t\t\tdelete node.attrs.ref;\n\t\t}\n\n\t\tObject.entries(node.attrs).forEach(([key, value]) => {\n\t\t\tif (key.startsWith('on') && (new RegExp(matchers.placeholder)).test(value))\n\t\t\t{\n\t\t\t\tconst substitution = substitutions[parseInt(value.replace(/{{uid|}}/, '')) - 1];\n\t\t\t\tif (Type.isFunction(substitution))\n\t\t\t\t{\n\t\t\t\t\tconst bindFunctionName = key.endsWith('once') ? 'bindOnce' : 'bind';\n\t\t\t\t\tEvent[bindFunctionName](\n\t\t\t\t\t\telement,\n\t\t\t\t\t\tkey.replace(/^on|once$/g, ''),\n\t\t\t\t\t\tsubstitution,\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\telement.setAttribute(key, substitution);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ((new RegExp(matchers.placeholder)).test(value))\n\t\t\t\t{\n\t\t\t\t\tconst preparedValue = value.split(/{{|}}/).reduce((acc, item) => {\n\t\t\t\t\t\tif (item.startsWith('uid'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tconst substitution = substitutions[parseInt(item.replace('uid', '')) - 1];\n\t\t\t\t\t\t\treturn `${acc}${substitution}`;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn `${acc}${item}`;\n\t\t\t\t\t}, '');\n\n\t\t\t\t\telement.setAttribute(key, preparedValue);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\telement.setAttribute(key, Text.decode(value));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tnode.children.forEach((childNode) => {\n\t\t\tconst result = renderNode({\n\t\t\t\tnode: childNode,\n\t\t\t\tparentElement: element,\n\t\t\t\tsubstitutions,\n\t\t\t\trefs,\n\t\t\t});\n\n\t\t\tif (Type.isArray(result))\n\t\t\t{\n\t\t\t\tresult.forEach((subChildElement) => {\n\t\t\t\t\tappendElement(subChildElement, element);\n\t\t\t\t});\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tappendElement(result, element);\n\t\t\t}\n\t\t});\n\n\t\treturn element;\n\t}\n\n\tif (node.type === 'comment')\n\t{\n\t\treturn document.createComment(node.content);\n\t}\n\n\tif (node.type === 'text')\n\t{\n\t\tif (parentElement)\n\t\t{\n\t\t\tif (parentElement.nodeName !== 'TEMPLATE')\n\t\t\t{\n\t\t\t\tparentElement.insertAdjacentHTML('beforeend', node.content);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tparentElement.content.append(node.content);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\treturn document.createTextNode(node.content);\n\t}\n\n\tif (node.type === 'placeholder')\n\t{\n\t\treturn substitutions[node.uid - 1];\n\t}\n};","import Type from '../type';\nimport parse from './internal/parse';\nimport renderNode from './internal/render-node';\n\nexport default function render(\n\tsections: Array<string>,\n\t...substitutions: Array<any>\n): HTMLElement | Array<HTMLElement> | { root: HTMLElement, [key: string]: HTMLElement }\n{\n\tconst html = sections\n\t\t.reduce((acc, item, index) => {\n\t\t\tif (index > 0)\n\t\t\t{\n\t\t\t\tconst substitution = substitutions[index - 1];\n\t\t\t\tif (Type.isString(substitution) || Type.isNumber(substitution))\n\t\t\t\t{\n\t\t\t\t\treturn `${acc}${substitution}${item}`;\n\t\t\t\t}\n\n\t\t\t\treturn `${acc}{{uid${index}}}${item}`;\n\t\t\t}\n\n\t\t\treturn acc;\n\t\t}, sections[0])\n\t\t.replace(/^[\\r\\n\\t\\s]+/gm, '')\n\t\t.replace(/>[\\n]+/g, '>')\n\t\t.replace(/[}][\\n]+/g, '}');\n\n\tconst ast = parse(html);\n\n\tif (ast.length === 1)\n\t{\n\t\tconst refs = [];\n\t\tconst renderedNode = renderNode({\n\t\t\tnode: ast[0],\n\t\t\tsubstitutions,\n\t\t\trefs,\n\t\t});\n\n\t\tif (Type.isArrayFilled(refs))\n\t\t{\n\t\t\treturn Object.fromEntries([['root', renderedNode], ...refs]);\n\t\t}\n\n\t\treturn renderedNode;\n\t}\n\n\tif (ast.length > 1)\n\t{\n\t\tconst refs = [];\n\t\tconst renderedNodes = ast.map((node) => {\n\t\t\treturn renderNode({\n\t\t\t\tnode,\n\t\t\t\tsubstitutions,\n\t\t\t\trefs,\n\t\t\t});\n\t\t});\n\n\t\tif (Type.isArrayFilled(refs))\n\t\t{\n\t\t\treturn Object.fromEntries([['root', renderedNodes], ...refs]);\n\t\t}\n\n\t\treturn renderedNodes;\n\t}\n\n\treturn false;\n}\n","import Type from './type';\nimport Dom from './dom';\nimport Loc from './loc';\nimport Text from './text';\nimport render from './tag/render';\n\nfunction parseProps(sections: string[], ...substitutions: string[]): {[key: string]: string}\n{\n\treturn substitutions\n\t\t.reduce((acc, item, index) => {\n\t\t\tconst nextSectionIndex = index + 1;\n\n\t\t\tif (!Type.isPlainObject(item) && !Type.isArray(item))\n\t\t\t{\n\t\t\t\treturn acc + item + sections[nextSectionIndex];\n\t\t\t}\n\n\t\t\treturn `${acc}__s${index}${sections[nextSectionIndex]}`;\n\t\t}, sections[0])\n\t\t.replace(/[\\r\\t]/gm, '')\n\t\t.split(';\\n')\n\t\t.map(item => item.replace(/\\n/, ''))\n\t\t.reduce((acc, item) => {\n\t\t\tif (item !== '')\n\t\t\t{\n\t\t\t\tconst matches = item.match(/^[\\w-. ]+:/);\n\t\t\t\tconst splitted = item.split(/^[\\w-. ]+:/);\n\t\t\t\tconst key = matches[0].replace(':', '').trim();\n\t\t\t\tconst value = splitted[1].trim();\n\t\t\t\tconst substitutionPlaceholderExp = /^__s\\d+/;\n\n\t\t\t\tif (substitutionPlaceholderExp.test(value))\n\t\t\t\t{\n\t\t\t\t\tacc[key] = substitutions[value.replace('__s', '')];\n\t\t\t\t\treturn acc;\n\t\t\t\t}\n\n\t\t\t\tacc[key] = value;\n\t\t\t}\n\n\t\t\treturn acc;\n\t\t}, {});\n}\n\n/**\n * @memberOf BX\n */\nexport default class Tag\n{\n\t/**\n\t * Encodes all substitutions\n\t * @param sections\n\t * @param substitutions\n\t * @return {string}\n\t */\n\tstatic safe(sections: string[], ...substitutions: string[])\n\t{\n\t\treturn substitutions.reduce((acc, item, index) => (\n\t\t\tacc + Text.encode(item) + sections[index + 1]\n\t\t), sections[0]);\n\t}\n\n\t/**\n\t * Decodes all substitutions\n\t * @param sections\n\t * @param substitutions\n\t * @return {string}\n\t */\n\tstatic unsafe(sections, ...substitutions)\n\t{\n\t\treturn substitutions.reduce((acc, item, index) => (\n\t\t\tacc + Text.decode(item) + sections[index + 1]\n\t\t), sections[0]);\n\t}\n\n\t/**\n\t * Adds styles to specified element\n\t * @param {HTMLElement} element\n\t * @return {Function}\n\t */\n\tstatic style(element: HTMLElement): Function\n\t{\n\t\tif (!Type.isDomNode(element))\n\t\t{\n\t\t\tthrow new Error('element is not HTMLElement');\n\t\t}\n\n\t\treturn function styleTagHandler(...args) {\n\t\t\tDom.style(element, parseProps(...args));\n\t\t};\n\t}\n\n\t/**\n\t * Replace all messages identifiers to real messages\n\t * @param sections\n\t * @param substitutions\n\t * @return {string}\n\t */\n\tstatic message(sections: string[], ...substitutions: string[]): string\n\t{\n\t\treturn substitutions.reduce((acc, item, index) => (\n\t\t\tacc + Loc.getMessage(item) + sections[index + 1]\n\t\t), sections[0]);\n\t}\n\n\tstatic render = render;\n\n\t/**\n\t * Adds attributes to specified element\n\t * @param element\n\t * @return {Function}\n\t */\n\tstatic attrs(element: HTMLElement)\n\t{\n\t\tif (!Type.isDomNode(element))\n\t\t{\n\t\t\tthrow new Error('element is not HTMLElement');\n\t\t}\n\n\t\treturn function attrsTagHandler(...args): string {\n\t\t\tDom.attr(element, parseProps(...args));\n\t\t};\n\t}\n\n\tstatic attr = Tag.attrs;\n}","import Type from '../type';\n\nfunction getParser(format)\n{\n\tswitch (format)\n\t{\n\t\tcase 'index':\n\t\t\treturn (sourceKey, value, accumulator) => {\n\t\t\t\tconst result = /\\[(\\w*)\\]$/.exec(sourceKey);\n\t\t\t\tconst key = sourceKey.replace(/\\[\\w*\\]$/, '');\n\n\t\t\t\tif (Type.isNil(result))\n\t\t\t\t{\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (Type.isUndefined(accumulator[key]))\n\t\t\t\t{\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\t\tcase 'bracket':\n\t\t\treturn (sourceKey, value, accumulator) => {\n\t\t\t\tconst result = /(\\[\\])$/.exec(sourceKey);\n\t\t\t\tconst key = sourceKey.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (Type.isNil(result))\n\t\t\t\t{\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (Type.isUndefined(accumulator[key]))\n\t\t\t\t{\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t\tdefault:\n\t\t\treturn (sourceKey, value, accumulator) => {\n\t\t\t\tconst key = sourceKey.replace(/\\[\\]$/, '');\n\t\t\t\taccumulator[key] = value;\n\t\t\t};\n\t}\n}\n\nfunction getKeyFormat(key)\n{\n\tif (/^\\w+\\[([\\w]+)\\]$/.test(key))\n\t{\n\t\treturn 'index';\n\t}\n\n\tif (/^\\w+\\[\\]$/.test(key))\n\t{\n\t\treturn 'bracket';\n\t}\n\n\treturn 'default';\n}\n\nfunction isAllowedKey(key: string): boolean\n{\n\treturn !String(key).startsWith('__proto__');\n}\n\nfunction parseQuery(input)\n{\n\tif (!Type.isString(input))\n\t{\n\t\treturn {};\n\t}\n\n\tconst url = input.trim().replace(/^[?#&]/, '');\n\n\tif (!url)\n\t{\n\t\treturn {};\n\t}\n\n\treturn {\n\t\t...url.split('&')\n\t\t\t.reduce((acc, param) => {\n\t\t\t\tconst [key, value] = param.replace(/\\+/g, ' ').split('=');\n\t\t\t\tif (isAllowedKey(key))\n\t\t\t\t{\n\t\t\t\t\tconst keyFormat = getKeyFormat(key);\n\t\t\t\t\tconst formatter = getParser(keyFormat);\n\t\t\t\t\tformatter(key, value, acc);\n\t\t\t\t}\n\t\t\t\treturn acc;\n\t\t\t}, Object.create(null)),\n\t};\n}\n\nconst urlExp = /^((\\w+):)?(\\/\\/((\\w+)?(:(\\w+))?@)?([^\\/\\?:]+)(:(\\d+))?)?(\\/?([^\\/\\?#][^\\?#]*)?)?(\\?([^#]+))?(#((?:[\\w-?/:@.~!$&'()*+,;=]|%\\w{2})*))?/;\n\nexport default function parseUrl(url)\n{\n\tconst result = url.match(urlExp);\n\n\tif (Type.isArray(result))\n\t{\n\t\tconst queryParams = parseQuery(result[14]);\n\n\t\treturn {\n\t\t\tuseShort: /^\\/\\//.test(url),\n\t\t\thref: result[0] || '',\n\t\t\tschema: result[2] || '',\n\t\t\thost: result[8] || '',\n\t\t\tport: result[10] || '',\n\t\t\tpath: result[11] || '',\n\t\t\tquery: result[14] || '',\n\t\t\tqueryParams,\n\t\t\thash: result[16] || '',\n\t\t\tusername: result[5] || '',\n\t\t\tpassword: result[7] || '',\n\t\t\torigin: result[8] || '',\n\t\t};\n\t}\n\n\treturn {};\n}","import Type from '../type';\n\nexport default function buildQueryString(params = {})\n{\n\tconst queryString = Object.keys(params)\n\t\t.reduce((acc, key) => {\n\t\t\tif (Type.isArray(params[key]))\n\t\t\t{\n\t\t\t\tparams[key].forEach((paramValue) => {\n\t\t\t\t\tacc.push(`${key}[]=${paramValue}`);\n\t\t\t\t}, '');\n\t\t\t}\n\n\t\t\tif (Type.isPlainObject(params[key]))\n\t\t\t{\n\t\t\t\tObject.keys(params[key]).forEach((paramIndex) => {\n\t\t\t\t\tacc.push(`${key}[${paramIndex}]=${params[key][paramIndex]}`);\n\t\t\t\t}, '');\n\t\t\t}\n\n\t\t\tif (!Type.isObject(params[key]) && !Type.isArray(params[key]))\n\t\t\t{\n\t\t\t\tacc.push(`${key}=${params[key]}`);\n\t\t\t}\n\n\t\t\treturn acc;\n\t\t}, []).join('&');\n\n\tif (queryString.length > 0)\n\t{\n\t\treturn `?${queryString}`;\n\t}\n\n\treturn queryString;\n}","import Type from '../type';\n\nexport default function prepareParamValue(value)\n{\n\tif (Type.isArray(value))\n\t{\n\t\treturn value.map(item => String(item));\n\t}\n\n\tif (Type.isPlainObject(value))\n\t{\n\t\treturn {...value};\n\t}\n\n\treturn String(value);\n}","import parseUrl from './uri/parse-url';\nimport buildQueryString from './uri/build-query-string';\nimport prepareParamValue from './uri/prepare-param-value';\nimport Type from './type';\n\nconst map = new WeakMap();\n\n/**\n * Implements interface for works with URI\n * @memberOf BX\n */\nexport default class Uri\n{\n\tstatic addParam(url: string, params = {}): string\n\t{\n\t\treturn (new Uri(url)).setQueryParams(params).toString();\n\t}\n\n\tstatic removeParam(url: string, params: Array<string> | string): string\n\t{\n\t\tconst removableParams = Type.isArray(params) ? params : [params];\n\t\treturn (new Uri(url)).removeQueryParam(...removableParams).toString();\n\t}\n\n\tconstructor(url = '')\n\t{\n\t\tmap.set(this, parseUrl(url));\n\t}\n\n\t/**\n\t * Gets schema\n\t * @return {?string}\n\t */\n\tgetSchema()\n\t{\n\t\treturn map.get(this).schema;\n\t}\n\n\t/**\n\t * Sets schema\n\t * @param {string} schema\n\t * @return {Uri}\n\t */\n\tsetSchema(schema)\n\t{\n\t\tmap.get(this).schema = String(schema);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Gets host\n\t * @return {?string}\n\t */\n\tgetHost()\n\t{\n\t\treturn map.get(this).host;\n\t}\n\n\t/**\n\t * Sets host\n\t * @param {string} host\n\t * @return {Uri}\n\t */\n\tsetHost(host)\n\t{\n\t\tmap.get(this).host = String(host);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Gets port\n\t * @return {?string}\n\t */\n\tgetPort()\n\t{\n\t\treturn map.get(this).port;\n\t}\n\n\t/**\n\t * Sets port\n\t * @param {String | Number} port\n\t * @return {Uri}\n\t */\n\tsetPort(port)\n\t{\n\t\tmap.get(this).port = String(port);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Gets path\n\t * @return {?string}\n\t */\n\tgetPath()\n\t{\n\t\treturn map.get(this).path;\n\t}\n\n\t/**\n\t * Sets path\n\t * @param {string} path\n\t * @return {Uri}\n\t */\n\tsetPath(path)\n\t{\n\t\tif (!/^\\//.test(path))\n\t\t{\n\t\t\tmap.get(this).path = `/${String(path)}`;\n\t\t\treturn this;\n\t\t}\n\n\t\tmap.get(this).path = String(path);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Gets query\n\t * @return {?string}\n\t */\n\tgetQuery()\n\t{\n\t\treturn buildQueryString(map.get(this).queryParams);\n\t}\n\n\t/**\n\t * Gets query param value by name\n\t * @param {string} key\n\t * @return {?string}\n\t */\n\tgetQueryParam(key)\n\t{\n\t\tconst params = this.getQueryParams();\n\n\t\tif (Object.hasOwn(params, key))\n\t\t{\n\t\t\treturn params[key];\n\t\t}\n\n\t\treturn null;\n\t}\n\n\t/**\n\t * Sets query param\n\t * @param {string} key\n\t * @param [value]\n\t * @return {Uri}\n\t */\n\tsetQueryParam(key, value = '')\n\t{\n\t\tmap.get(this).queryParams[key] = prepareParamValue(value);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Gets query params\n\t * @return {Object<string, any>}\n\t */\n\tgetQueryParams()\n\t{\n\t\treturn {...map.get(this).queryParams};\n\t}\n\n\t/**\n\t * Sets query params\n\t * @param {Object<string, any>} params\n\t * @return {Uri}\n\t */\n\tsetQueryParams(params = {})\n\t{\n\t\tconst currentParams = this.getQueryParams();\n\t\tconst newParams = {...currentParams, ...params};\n\n\t\tObject.keys(newParams).forEach((key) => {\n\t\t\tnewParams[key] = prepareParamValue(newParams[key]);\n\t\t});\n\n\t\tmap.get(this).queryParams = newParams;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Removes query params by name\n\t * @param keys\n\t * @return {Uri}\n\t */\n\tremoveQueryParam(...keys)\n\t{\n\t\tconst currentParams = {...map.get(this).queryParams};\n\n\t\tkeys.forEach((key) => {\n\t\t\tif (Object.hasOwn(currentParams, key))\n\t\t\t{\n\t\t\t\tdelete currentParams[key];\n\t\t\t}\n\t\t});\n\n\t\tmap.get(this).queryParams = currentParams;\n\t\treturn this;\n\t}\n\n\t/**\n\t * Gets fragment\n\t * @return {?string}\n\t */\n\tgetFragment()\n\t{\n\t\treturn map.get(this).hash;\n\t}\n\n\t/**\n\t * Sets fragment\n\t * @param {string} hash\n\t * @return {Uri}\n\t */\n\tsetFragment(hash)\n\t{\n\t\tmap.get(this).hash = String(hash);\n\t\treturn this;\n\t}\n\n\t/**\n\t * Serializes URI\n\t * @return {Object}\n\t */\n\tserialize()\n\t{\n\t\tconst serialized = {...map.get(this)};\n\t\tserialized.href = this.toString();\n\t\treturn serialized;\n\t}\n\n\t/**\n\t * Gets URI string\n\t * @return {string}\n\t */\n\ttoString()\n\t{\n\t\tconst data = {...map.get(this)};\n\n\t\tlet protocol = data.schema ? `${data.schema}://` : '';\n\n\t\tif (data.useShort)\n\t\t{\n\t\t\tprotocol = '//';\n\t\t}\n\n\t\tconst port = (() => {\n\t\t\tif (Type.isString(data.port) && !['', '80'].includes(data.port))\n\t\t\t{\n\t\t\t\treturn `:${data.port}`;\n\t\t\t}\n\n\t\t\treturn '';\n\t\t})();\n\n\t\tconst host = this.getHost();\n\t\tconst path = this.getPath();\n\t\tconst query = buildQueryString(data.queryParams);\n\t\tconst hash = data.hash ? `#${data.hash}` : '';\n\n\t\treturn `${host ? protocol : ''}${host}${host ? port : ''}${path}${query}${hash}`;\n\t}\n}\n","/**\n * @memberOf BX\n */\nexport default class Validation\n{\n\t/**\n\t * Checks that value is valid email\n\t * @param value\n\t * @return {boolean}\n\t */\n\tstatic isEmail(value)\n\t{\n\t\tconst exp = /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;\n\t\treturn exp.test(String(value).toLowerCase());\n\t}\n}","import Type from '../type';\n\nexport default class BaseCache<T>\n{\n\t/**\n\t * @private\n\t */\n\tstorage: Map<string, T> = new Map();\n\n\t/**\n\t * Gets cached value or default value\n\t */\n\tget(key: string, defaultValue?: T | () => T): T\n\t{\n\t\tif (!this.storage.has(key))\n\t\t{\n\t\t\tif (Type.isFunction(defaultValue))\n\t\t\t{\n\t\t\t\treturn defaultValue();\n\t\t\t}\n\n\t\t\tif (!Type.isUndefined(defaultValue))\n\t\t\t{\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\t\t}\n\n\t\treturn this.storage.get(key);\n\t}\n\n\t/**\n\t * Sets cache entry\n\t */\n\tset(key: string, value: T)\n\t{\n\t\tthis.storage.set(key, value);\n\t}\n\n\t/**\n\t * Deletes cache entry\n\t */\n\tdelete(key: string)\n\t{\n\t\tthis.storage.delete(key);\n\t}\n\n\t/**\n\t * Checks that storage contains entry with specified key\n\t */\n\thas(key: string): boolean\n\t{\n\t\treturn this.storage.has(key);\n\t}\n\n\t/**\n\t * Gets cached value if exists,\n\t */\n\tremember(key: string, defaultValue?: T | () => T): T\n\t{\n\t\tif (!this.storage.has(key))\n\t\t{\n\t\t\tif (Type.isFunction(defaultValue))\n\t\t\t{\n\t\t\t\tthis.storage.set(key, defaultValue());\n\t\t\t}\n\t\t\telse if (!Type.isUndefined(defaultValue))\n\t\t\t{\n\t\t\t\tthis.storage.set(key, defaultValue);\n\t\t\t}\n\t\t}\n\n\t\treturn this.storage.get(key);\n\t}\n\n\t/**\n\t * Gets storage size\n\t */\n\tsize(): number\n\t{\n\t\treturn this.storage.size;\n\t}\n\n\t/**\n\t * Gets storage keys\n\t */\n\tkeys(): Array<string>\n\t{\n\t\treturn [...this.storage.keys()];\n\t}\n\n\t/**\n\t * Gets storage values\n\t */\n\tvalues(): Array<T>\n\t{\n\t\treturn [...this.storage.values()];\n\t}\n}\n","import BaseCache from './base-cache';\nimport MemoryStorage from './storage/memory';\n\nexport default class MemoryCache<T> extends BaseCache<T>\n{\n\t/**\n\t * @private\n\t */\n\tstorage: MemoryStorage = new MemoryStorage();\n}\n","import type {ICacheStorage} from './i-cache-storage';\nimport Type from '../../type';\n\nexport default class LsStorage implements ICacheStorage\n{\n\tstackKey = 'BX.Cache.Storage.LsStorage.stack';\n\tstack = null;\n\n\t/**\n\t * @private\n\t */\n\tgetStack(): {[key: string]: any}\n\t{\n\t\tif (Type.isPlainObject(this.stack))\n\t\t{\n\t\t\treturn this.stack;\n\t\t}\n\n\t\tconst stack = localStorage.getItem(this.stackKey);\n\n\t\tif (Type.isString(stack) && stack !== '')\n\t\t{\n\t\t\tconst parsedStack = JSON.parse(stack);\n\n\t\t\tif (Type.isPlainObject(parsedStack))\n\t\t\t{\n\t\t\t\tthis.stack = parsedStack;\n\t\t\t\treturn this.stack;\n\t\t\t}\n\t\t}\n\n\t\tthis.stack = {};\n\t\treturn this.stack;\n\t}\n\n\t/**\n\t * @private\n\t */\n\tsaveStack()\n\t{\n\t\tif (Type.isPlainObject(this.stack))\n\t\t{\n\t\t\tconst preparedStack = JSON.stringify(this.stack);\n\t\t\tlocalStorage.setItem(this.stackKey, preparedStack);\n\t\t}\n\t}\n\n\tget(key: string)\n\t{\n\t\tconst stack = this.getStack();\n\t\treturn stack[key];\n\t}\n\n\tset(key: string, value: any)\n\t{\n\t\tconst stack = this.getStack();\n\t\tstack[key] = value;\n\t\tthis.saveStack();\n\t}\n\n\tdelete(key: string)\n\t{\n\t\tconst stack = this.getStack();\n\n\t\tif (key in stack)\n\t\t{\n\t\t\tdelete stack[key];\n\t\t}\n\t}\n\n\thas(key: string): boolean\n\t{\n\t\tconst stack = this.getStack();\n\t\treturn key in stack;\n\t}\n\n\tget size(): number\n\t{\n\t\tconst stack = this.getStack();\n\t\treturn Object.keys(stack).length;\n\t}\n\n\tkeys(): Array<string>\n\t{\n\t\tconst stack = this.getStack();\n\t\treturn Object.keys(stack);\n\t}\n\n\tvalues(): Array<any>\n\t{\n\t\tconst stack = this.getStack();\n\t\treturn Object.values(stack);\n\t}\n}","import BaseCache from './base-cache';\nimport LsCacheStorage from './storage/ls-storage';\n\nexport default class LocalStorageCache<T> extends BaseCache<T>\n{\n\t/**\n\t * @private\n\t */\n\tstorage: LsCacheStorage = new LsCacheStorage();\n}\n","import BaseCache from './cache/base-cache';\nimport MemoryCache from './cache/memory-cache';\nimport LocalStorageCache from './cache/local-storage-cache';\n\n/**\n * @memberOf BX\n */\nexport default class Cache\n{\n\tstatic BaseCache: BaseCache = BaseCache;\n\tstatic MemoryCache: MemoryCache = MemoryCache;\n\tstatic LocalStorageCache: LocalStorageCache = LocalStorageCache;\n}\n","import Type from '../type';\n\nexport default class OrderedArray<T>\n{\n\tcomparator: Function = null;\n\titems: Array<T> = [];\n\n\tconstructor(comparator: Function = null)\n\t{\n\t\tthis.comparator = Type.isFunction(comparator) ? comparator : null;\n\t}\n\n\tadd(item: T): number\n\t{\n\t\tlet index = -1;\n\t\tif (this.comparator)\n\t\t{\n\t\t\tindex = this.#searchIndexToInsert(item);\n\t\t\tthis.items.splice(index, 0, item);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.items.push(item);\n\t\t}\n\n\t\treturn index;\n\t}\n\n\thas(item: T): boolean\n\t{\n\t\treturn this.items.includes(item);\n\t}\n\n\tgetIndex(item: T): number\n\t{\n\t\treturn this.items.indexOf(item);\n\t}\n\n\tgetByIndex(index: number): ?T\n\t{\n\t\tif (Type.isNumber(index) && index >= 0)\n\t\t{\n\t\t\tconst item = this.items[index];\n\t\t\treturn Type.isUndefined(item) ? null : item;\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tgetFirst(): ?T\n\t{\n\t\tconst first = this.items[0];\n\n\t\treturn Type.isUndefined(first) ? null : first;\n\t}\n\n\tgetLast(): ?T\n\t{\n\t\tconst last = this.items[this.count() - 1];\n\n\t\treturn Type.isUndefined(last) ? null : last;\n\t}\n\n\tcount(): number\n\t{\n\t\treturn this.items.length;\n\t}\n\n\tdelete(item: T): boolean\n\t{\n\t\tconst index = this.getIndex(item);\n\t\tif (index !== -1)\n\t\t{\n\t\t\tthis.items.splice(index, 1);\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}\n\n\tclear(): void\n\t{\n\t\tthis.items = [];\n\t}\n\n\t[Symbol.iterator]()\n\t{\n\t\treturn this.items[Symbol.iterator]();\n\t}\n\n\tforEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void\n\t{\n\t\treturn this.items.forEach(callbackfn, thisArg);\n\t}\n\n\tgetAll(): Array<T>\n\t{\n\t\treturn this.items;\n\t}\n\n\tgetComparator(): ?Function\n\t{\n\t\treturn this.comparator;\n\t}\n\n\tsort(): void\n\t{\n\t\tconst comparator = this.getComparator();\n\t\tif (comparator === null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t/*\n\t\tSimple implementation\n\t\tthis.items.sort((item1, item2) => {\n\t\t\treturn comparator(item1, item2);\n\t\t});\n\t\t*/\n\n\t\t// For stable sorting https://v8.dev/features/stable-sort\n\t\tconst length = this.items.length;\n\t\tconst indexes = new Array(length);\n\t\tfor (let i = 0; i < length; i++)\n\t\t{\n\t\t\tindexes[i] = i;\n\t\t}\n\n\t\t// If the comparator returns zero, use the original indexes\n\t\tindexes.sort((index1, index2) => {\n\t\t\treturn comparator(this.items[index1], this.items[index2]) || (index1 - index2);\n\t\t});\n\n\t\tfor (let i = 0; i < length; i++)\n\t\t{\n\t\t\tindexes[i] = this.items[indexes[i]];\n\t\t}\n\n\t\tfor (let i = 0; i < length; i++)\n\t\t{\n\t\t\tthis.items[i] = indexes[i];\n\t\t}\n\t}\n\n\t#searchIndexToInsert(value: T): number\n\t{\n\t\tlet low = 0;\n\t\tlet high = this.items.length;\n\t\twhile (low < high)\n\t\t{\n\t\t\tconst mid = Math.floor((low + high) / 2);\n\t\t\tif (this.comparator(this.items[mid], value) >= 0)\n\t\t\t{\n\t\t\t\thigh = mid;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tlow = mid + 1;\n\t\t\t}\n\t\t}\n\n\t\treturn low;\n\t}\n}","import Type from '../type';\nimport EventEmitter from '../event/event-emitter';\n\nimport type ZIndexStack from './z-index-stack';\nimport type { ZIndexComponentOptions } from './z-index-component-options';\n\nexport default class ZIndexComponent extends EventEmitter\n{\n\tsort: number = 0;\n\talwaysOnTop: boolean | number = false;\n\tzIndex: number = 0;\n\telement: HTMLElement = null;\n\toverlay: HTMLElement = null;\n\toverlayGap: number = -5;\n\tstack: ZIndexStack = null;\n\n\tconstructor(element: HTMLElement, componentOptions: ZIndexComponentOptions = {})\n\t{\n\t\tsuper();\n\t\tthis.setEventNamespace('BX.Main.ZIndexManager.Component');\n\n\t\tif (!Type.isElementNode(element))\n\t\t{\n\t\t\tthrow new Error('ZIndexManager.Component: The argument \\'element\\' must be a DOM element.');\n\t\t}\n\n\t\tthis.element = element;\n\n\t\tconst options = Type.isPlainObject(componentOptions) ? componentOptions : {};\n\n\t\tthis.setAlwaysOnTop(options.alwaysOnTop);\n\t\tthis.setOverlay(options.overlay);\n\t\tthis.setOverlayGap(options.overlayGap);\n\n\t\tthis.subscribeFromOptions(options.events);\n\t}\n\n\tgetSort(): number\n\t{\n\t\treturn this.sort;\n\t}\n\n\t/**\n\t * @internal\n\t * @param sort\n\t */\n\tsetSort(sort: number): void\n\t{\n\t\tif (Type.isNumber(sort))\n\t\t{\n\t\t\tthis.sort = sort;\n\t\t}\n\t}\n\n\t/**\n\t * @internal\n\t * @param stack\n\t */\n\tsetStack(stack: ZIndexStack): void\n\t{\n\t\tthis.stack = stack;\n\t}\n\n\tgetStack(): ?ZIndexStack\n\t{\n\t\treturn this.stack;\n\t}\n\n\tgetZIndex(): number\n\t{\n\t\treturn this.zIndex;\n\t}\n\n\t/**\n\t * @internal\n\t */\n\tsetZIndex(zIndex: number): void\n\t{\n\t\tconst changed = this.getZIndex() !== zIndex;\n\n\t\tthis.getElement().style.setProperty('z-index', zIndex, 'important');\n\t\tthis.zIndex = zIndex;\n\n\t\tif (this.getOverlay() !== null)\n\t\t{\n\t\t\tthis.getOverlay().style.setProperty('z-index', zIndex + this.getOverlayGap(), 'important');\n\t\t}\n\n\t\tif (changed)\n\t\t{\n\t\t\tthis.emit('onZIndexChange', { component: this });\n\t\t}\n\t}\n\n\tgetAlwaysOnTop(): boolean | number\n\t{\n\t\treturn this.alwaysOnTop;\n\t}\n\n\tsetAlwaysOnTop(value: boolean | number): void\n\t{\n\t\tif (Type.isNumber(value) || Type.isBoolean(value))\n\t\t{\n\t\t\tthis.alwaysOnTop = value;\n\t\t}\n\t}\n\n\tgetElement(): HTMLElement\n\t{\n\t\treturn this.element;\n\t}\n\n\tsetOverlay(overlay: HTMLElement, gap?: number): void\n\t{\n\t\tif (Type.isElementNode(overlay) || overlay === null)\n\t\t{\n\t\t\tthis.overlay = overlay;\n\t\t\tthis.setOverlayGap(gap);\n\n\t\t\tif (this.getStack())\n\t\t\t{\n\t\t\t\tthis.getStack().sort();\n\t\t\t}\n\t\t}\n\t}\n\n\tgetOverlay(): ?HTMLElement\n\t{\n\t\treturn this.overlay;\n\t}\n\n\tsetOverlayGap(gap: number): void\n\t{\n\t\tif (Type.isNumber(gap))\n\t\t{\n\t\t\tthis.overlayGap = gap;\n\t\t}\n\t}\n\n\tgetOverlayGap(): number\n\t{\n\t\treturn this.overlayGap;\n\t}\n}","import Type from '../type';\nimport OrderedArray from '../collections/ordered-array';\nimport ZIndexComponent from './z-index-component';\nimport type { ZIndexComponentOptions } from './z-index-component-options';\n\nexport default class ZIndexStack\n{\n\tcontainer: HTMLElement = null;\n\tcomponents: OrderedArray<ZIndexComponent> = null;\n\telements: WeakMap<HTMLElement, ZIndexComponent> = new WeakMap();\n\n\tbaseIndex: number = 1000;\n\tbaseStep: number = 50;\n\tsortCount: number = 0;\n\n\tconstructor(container: HTMLElement)\n\t{\n\t\tif (!Type.isDomNode(container))\n\t\t{\n\t\t\tthrow new Error('ZIndexManager.Stack: The \\'container\\' argument must be a DOM element.');\n\t\t}\n\n\t\tthis.container = container;\n\n\t\tconst comparator = (componentA: ZIndexComponent, componentB: ZIndexComponent) => {\n\t\t\tlet result = (componentA.getAlwaysOnTop() || 0) - (componentB.getAlwaysOnTop() || 0);\n\t\t\tif (!result)\n\t\t\t{\n\t\t\t\tresult = componentA.getSort() - componentB.getSort();\n\t\t\t}\n\n\t\t\treturn result;\n\t\t};\n\n\t\tthis.components = new OrderedArray(comparator);\n\t}\n\n\tgetBaseIndex(): number\n\t{\n\t\treturn this.baseIndex;\n\t}\n\n\tsetBaseIndex(index: number): void\n\t{\n\t\tif (Type.isNumber(index) && index >= 0)\n\t\t{\n\t\t\tthis.baseIndex = index;\n\t\t\tthis.sort();\n\t\t}\n\t}\n\n\tsetBaseStep(step: number): void\n\t{\n\t\tif (Type.isNumber(step) && step > 0)\n\t\t{\n\t\t\tthis.baseStep = step;\n\t\t\tthis.sort();\n\t\t}\n\t}\n\n\tgetBaseStep(): number\n\t{\n\t\treturn this.baseStep;\n\t}\n\n\tregister(element: HTMLElement, options: ZIndexComponentOptions = {}): ZIndexComponent\n\t{\n\t\tif (this.getComponent(element))\n\t\t{\n\t\t\tconsole.warn('ZIndexManager: You cannot register the element twice.', element);\n\n\t\t\treturn this.getComponent(element);\n\t\t}\n\n\t\tconst component = new ZIndexComponent(element, options);\n\t\tcomponent.setStack(this);\n\t\tcomponent.setSort(++this.sortCount);\n\n\t\tthis.elements.set(element, component);\n\t\tthis.components.add(component);\n\n\t\tthis.sort();\n\n\t\treturn component;\n\t}\n\n\tunregister(element: HTMLElement): void\n\t{\n\t\tconst component = this.elements.get(element);\n\n\t\tthis.components.delete(component);\n\t\tthis.elements.delete(element);\n\n\t\tthis.sort();\n\t}\n\n\tgetComponent(element: HTMLElement): ?ZIndexComponent\n\t{\n\t\treturn this.elements.get(element) || null;\n\t}\n\n\tgetComponents(): ZIndexComponent[]\n\t{\n\t\treturn this.components.getAll();\n\t}\n\n\tgetMaxZIndex(): number\n\t{\n\t\tconst last = this.components.getLast();\n\n\t\treturn last ? last.getZIndex() : this.baseIndex;\n\t}\n\n\tsort(): void\n\t{\n\t\tthis.components.sort();\n\n\t\tlet zIndex = this.baseIndex;\n\t\tthis.components.forEach((component: ZIndexComponent) => {\n\t\t\tcomponent.setZIndex(zIndex);\n\t\t\tzIndex += this.baseStep;\n\t\t});\n\t}\n\n\tbringToFront(element: HTMLElement): ?ZIndexComponent\n\t{\n\t\tconst component = this.getComponent(element);\n\t\tif (!component)\n\t\t{\n\t\t\tconsole.error('ZIndexManager: element was not found in the stack.', element);\n\t\t\treturn null;\n\t\t}\n\n\t\tcomponent.setSort(++this.sortCount);\n\n\t\tthis.sort();\n\n\t\treturn component;\n\t}\n}","import Type from '../type';\nimport ZIndexStack from './z-index-stack';\nimport type ZIndexComponent from './z-index-component';\nimport type { ZIndexComponentOptions } from './z-index-component-options';\n\n/**\n * @memberof BX\n */\nexport default class ZIndexManager\n{\n\tstatic stacks: WeakMap<HTMLElement, ZIndexStack> = new WeakMap();\n\n\tstatic register(element: HTMLElement, options: ZIndexComponentOptions = {}): ?ZIndexComponent\n\t{\n\t\tconst parentNode = this.#getParentNode(element);\n\t\tif (!parentNode)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tconst stack = this.getOrAddStack(parentNode);\n\n\t\treturn stack.register(element, options);\n\t}\n\n\tstatic unregister(element: HTMLElement)\n\t{\n\t\tconst parentNode = this.#getParentNode(element);\n\t\tconst stack = this.getStack(parentNode);\n\t\tif (stack)\n\t\t{\n\t\t\tstack.unregister(element);\n\t\t}\n\t}\n\n\tstatic addStack(container: HTMLElement): ZIndexStack\n\t{\n\t\tconst stack = new ZIndexStack(container);\n\t\tthis.stacks.set(container, stack);\n\n\t\treturn stack;\n\t}\n\n\tstatic getStack(container: HTMLElement): ?ZIndexStack\n\t{\n\t\treturn this.stacks.get(container) || null;\n\t}\n\n\tstatic getOrAddStack(container: HTMLElement): ?ZIndexStack\n\t{\n\t\treturn this.getStack(container) || this.addStack(container);\n\t}\n\n\tstatic getComponent(element: HTMLElement): ?ZIndexComponent\n\t{\n\t\tconst parentNode = this.#getParentNode(element, true);\n\t\tif (!parentNode)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tconst stack = this.getStack(parentNode);\n\n\t\treturn stack ? stack.getComponent(element) : null;\n\t}\n\n\tstatic bringToFront(element: HTMLElement): ?ZIndexComponent\n\t{\n\t\tconst parentNode = this.#getParentNode(element);\n\t\tconst stack = this.getStack(parentNode);\n\n\t\tif (stack)\n\t\t{\n\t\t\treturn stack.bringToFront(element);\n\t\t}\n\n\t\treturn null;\n\t}\n\n\tstatic #getParentNode(element: HTMLElement, suppressWarnings: boolean = false): ?HTMLElement\n\t{\n\t\tif (!Type.isElementNode(element))\n\t\t{\n\t\t\tif (!suppressWarnings)\n\t\t\t{\n\t\t\t\tconsole.error('ZIndexManager: The argument \\'element\\' must be a DOM element.', element);\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\t\telse if (!Type.isElementNode(element.parentNode))\n\t\t{\n\t\t\tif (!suppressWarnings)\n\t\t\t{\n\t\t\t\tconsole.error('ZIndexManager: The \\'element\\' doesn\\'t have a parent node.', element);\n\t\t\t}\n\n\t\t\treturn null;\n\t\t}\n\n\t\treturn element.parentNode;\n\t}\n}","import Type from '../../type';\n\nexport default function convertPath(path: string): Array<string>\n{\n\tif (Type.isStringFilled(path))\n\t{\n\t\treturn path\n\t\t\t.split('.')\n\t\t\t.reduce((acc, item) => {\n\t\t\t\titem\n\t\t\t\t\t.split(/\\[['\"]?(.+?)['\"]?\\]/g)\n\t\t\t\t\t.forEach((key) => {\n\t\t\t\t\t\tif (Type.isStringFilled(key))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tacc.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\treturn acc;\n\t\t\t}, []);\n\t}\n\n\treturn [];\n}","import Type from '../../type';\nimport convertPath from './convert-path';\n\nexport default class SettingsCollection\n{\n\tconstructor(options: {[key: string]: any} = {})\n\t{\n\t\tif (Type.isPlainObject(options))\n\t\t{\n\t\t\tObject.assign(this, options);\n\t\t}\n\t}\n\n\tget(path: string, defaultValue: any = null)\n\t{\n\t\tconst convertedPath = convertPath(path);\n\n\t\treturn convertedPath.reduce((acc, key) => {\n\t\t\tif (!Type.isNil(acc) && acc !== defaultValue)\n\t\t\t{\n\t\t\t\tif (!Type.isUndefined(acc[key]))\n\t\t\t\t{\n\t\t\t\t\treturn acc[key];\n\t\t\t\t}\n\n\t\t\t\treturn defaultValue;\n\t\t\t}\n\n\t\t\treturn acc;\n\t\t}, this);\n\t}\n}","import Type from '../../type';\n\nexport default function deepFreeze(target: {[key: string]: any})\n{\n\tif (Type.isObject(target))\n\t{\n\t\tObject.values(target).forEach((value) => {\n\t\t\tdeepFreeze(value);\n\t\t});\n\n\t\treturn Object.freeze(target);\n\t}\n\n\treturn target;\n}","import Type from '../type';\nimport SettingsCollection from './internal/settings-collection';\nimport deepFreeze from './internal/deep-freeze';\n\nconst settingsStorage = new Map();\n\nexport default class Extension\n{\n\tstatic getSettings(extensionName: string)\n\t{\n\t\tif (Type.isStringFilled(extensionName))\n\t\t{\n\t\t\tif (settingsStorage.has(extensionName))\n\t\t\t{\n\t\t\t\treturn settingsStorage.get(extensionName);\n\t\t\t}\n\n\t\t\tconst settingsScriptNode = document.querySelector(\n\t\t\t\t`script[data-extension=\"${extensionName}\"]`,\n\t\t\t);\n\t\t\tif (Type.isDomNode(settingsScriptNode))\n\t\t\t{\n\t\t\t\tconst decodedSettings = (() => {\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\treturn new SettingsCollection(\n\t\t\t\t\t\t\tJSON.parse(settingsScriptNode.innerHTML),\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (error)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn new SettingsCollection();\n\t\t\t\t\t}\n\t\t\t\t})();\n\n\t\t\t\tconst frozenSettings = deepFreeze(decodedSettings);\n\t\t\t\tsettingsStorage.set(extensionName, frozenSettings);\n\n\t\t\t\treturn frozenSettings;\n\t\t\t}\n\t\t}\n\n\t\treturn deepFreeze(new SettingsCollection());\n\t}\n}\n","import Type from '../lib/type';\n\nexport default function getElement(element: string | HTMLElement)\n{\n\tif (Type.isString(element))\n\t{\n\t\treturn document.getElementById(element);\n\t}\n\n\treturn element;\n}","import Type from '../lib/type';\n\nexport default function getWindow(element)\n{\n\tif (Type.isElementNode(element))\n\t{\n\t\treturn (\n\t\t\telement.ownerDocument.parentWindow\n\t\t\t|| element.ownerDocument.defaultView\n\t\t\t|| window\n\t\t);\n\t}\n\n\tif (Type.isDomNode(element))\n\t{\n\t\treturn (\n\t\t\telement.parentWindow\n\t\t\t|| element.defaultView\n\t\t\t|| window\n\t\t);\n\t}\n\n\treturn window;\n}","/* eslint-disable prefer-rest-params */\n\nimport Type from './lib/type';\nimport Reflection from './lib/reflection';\nimport Dom from './lib/dom';\nimport Browser from './lib/browser';\nimport Event from './lib/event';\nimport Http from './lib/http';\nimport Runtime from './lib/runtime';\nimport Text from './lib/text';\nimport messageFunction from './lib/loc/message';\nimport * as debugNs from './lib/runtime/debug';\nimport {isReady} from './lib/event/ready';\nimport getElement from './internal/get-element';\nimport getWindow from './internal/get-window';\nimport EventEmitter from './lib/event/event-emitter';\nimport BaseEvent from './lib/event/base-event';\n\n// BX.*\nexport const {getClass, namespace} = Reflection;\nexport const message = messageFunction;\n\n/**\n * @memberOf BX\n */\nexport const {\n\treplace,\n\tremove,\n\tclean,\n\tinsertBefore,\n\tinsertAfter,\n\tappend,\n\tprepend,\n\tstyle,\n\tadjust,\n\tcreate,\n\tisShown,\n} = Dom;\n\nexport const addClass = function addClass() {\n\tDom.addClass(...Runtime.merge([], Array.from(arguments), [getElement(arguments[0])]));\n};\n\nexport const removeClass = function removeClass() {\n\tDom.removeClass(...Runtime.merge(Array.from(arguments), [getElement(arguments[0])]));\n};\n\nexport const hasClass = function hasClass() {\n\treturn Dom.hasClass(...Runtime.merge(Array.from(arguments), [getElement(arguments[0])]));\n};\n\nexport const toggleClass = function toggleClass() {\n\tDom.toggleClass(...Runtime.merge(Array.from(arguments), [getElement(arguments[0])]));\n};\n\nexport const cleanNode = (element, removeElement = false) => {\n\tconst currentElement = getElement(element);\n\n\tif (Type.isDomNode(currentElement))\n\t{\n\t\tDom.clean(currentElement);\n\n\t\tif (removeElement)\n\t\t{\n\t\t\tDom.remove(currentElement);\n\t\t\treturn currentElement;\n\t\t}\n\t}\n\n\treturn currentElement;\n};\n\nexport const getCookie = Http.Cookie.get;\nexport const setCookie = (name, value, options = {}) => {\n\tconst attributes = {...options};\n\n\tif (Type.isNumber(attributes.expires))\n\t{\n\t\tattributes.expires /= (3600 * 24);\n\t}\n\n\tHttp.Cookie.set(name, value, attributes);\n};\n\nexport const {\n\tbind,\n\tunbind,\n\tunbindAll,\n\tbindOnce,\n\tready,\n} = Event;\n\nexport {isReady};\nexport const {\n\tdebugState: debugEnableFlag,\n\tisDebugEnabled: debugStatus,\n\tdefault: debug,\n} = debugNs;\n\nexport const debugEnable = (value) => {\n\tif (value)\n\t{\n\t\tdebugNs.enableDebug();\n\t}\n\telse\n\t{\n\t\tdebugNs.disableDebug();\n\t}\n};\n\nexport const {\n\tclone,\n\tloadExtension: loadExt,\n\tdebounce,\n\tthrottle,\n\thtml,\n} = Runtime;\n\n// BX.type\nexport const type = {\n\t...Object.getOwnPropertyNames(Type)\n\t\t.filter(key => !['name', 'length', 'prototype', 'caller', 'arguments'].includes(key))\n\t\t.reduce((acc, key) => {\n\t\t\tacc[key] = Type[key];\n\t\t\treturn acc;\n\t\t}, {}),\n\tisNotEmptyString: value => Type.isString(value) && value !== '',\n\tisNotEmptyObject: value => Type.isObjectLike(value) && Object.keys(value).length > 0,\n\tisMapKey: Type.isObject,\n\tstringToInt: (value) => {\n\t\tconst parsed = parseInt(value);\n\t\treturn !Number.isNaN(parsed) ? parsed : 0;\n\t},\n};\n\n// BX.browser\nexport const browser = {\n\tIsOpera: Browser.isOpera,\n\tIsIE: Browser.isIE,\n\tIsIE6: Browser.isIE6,\n\tIsIE7: Browser.isIE7,\n\tIsIE8: Browser.isIE8,\n\tIsIE9: Browser.isIE9,\n\tIsIE10: Browser.isIE10,\n\tIsIE11: Browser.isIE11,\n\tIsSafari: Browser.isSafari,\n\tIsFirefox: Browser.isFirefox,\n\tIsChrome: Browser.isChrome,\n\tDetectIeVersion: Browser.detectIEVersion,\n\tIsMac: Browser.isMac,\n\tIsAndroid: Browser.isAndroid,\n\tisIPad: Browser.isIPad,\n\tisIPhone: Browser.isIPhone,\n\tIsIOS: Browser.isIOS,\n\tIsMobile: Browser.isMobile,\n\tisRetina: Browser.isRetina,\n\tIsDoctype: Browser.isDoctype,\n\tSupportLocalStorage: Browser.isLocalStorageSupported,\n\taddGlobalClass: Browser.addGlobalClass,\n\tDetectAndroidVersion: Browser.detectAndroidVersion,\n\tisPropertySupported: Browser.isPropertySupported,\n\taddGlobalFeatures: Browser.addGlobalFeatures,\n};\n\n// eslint-disable-next-line\nconst ajax = window.BX ? window.BX.ajax : () => {};\nexport {ajax};\n\nexport function GetWindowScrollSize(doc = document)\n{\n\treturn {\n\t\tscrollWidth: doc.documentElement.scrollWidth,\n\t\tscrollHeight: doc.documentElement.scrollHeight,\n\t};\n}\n\nexport function GetWindowScrollPos(doc = document)\n{\n\tconst win = getWindow(doc);\n\n\treturn {\n\t\tscrollLeft: win.pageXOffset,\n\t\tscrollTop: win.pageYOffset,\n\t};\n}\n\nexport function GetWindowInnerSize(doc = document)\n{\n\tconst win = getWindow(doc);\n\treturn {innerWidth: win.innerWidth, innerHeight: win.innerHeight};\n}\n\nexport function GetWindowSize(doc = document)\n{\n\treturn {\n\t\t...GetWindowInnerSize(doc),\n\t\t...GetWindowScrollPos(doc),\n\t\t...GetWindowScrollSize(doc),\n\t};\n}\n\nexport function GetContext(node)\n{\n\treturn getWindow(node);\n}\n\nexport function pos(element, relative = false)\n{\n\tif (!element)\n\t{\n\t\treturn (new DOMRect()).toJSON();\n\t}\n\n\tif (element.ownerDocument === document && !relative)\n\t{\n\t\tconst clientRect = element.getBoundingClientRect();\n\t\tconst root = document.documentElement;\n\t\tconst {body} = document;\n\n\t\treturn {\n\t\t\ttop: Math.round(clientRect.top + (root.scrollTop || body.scrollTop)),\n\t\t\tleft: Math.round(clientRect.left + (root.scrollLeft || body.scrollLeft)),\n\t\t\twidth: Math.round(clientRect.right - clientRect.left),\n\t\t\theight: Math.round(clientRect.bottom - clientRect.top),\n\t\t\tright: Math.round(clientRect.right + (root.scrollLeft || body.scrollLeft)),\n\t\t\tbottom: Math.round(clientRect.bottom + (root.scrollTop || body.scrollTop)),\n\t\t};\n\t}\n\n\tlet x = 0;\n\tlet y = 0;\n\tconst w = element.offsetWidth;\n\tconst h = element.offsetHeight;\n\tlet first = true;\n\n\t// eslint-disable-next-line no-param-reassign\n\tfor (; element != null; element = element.offsetParent)\n\t{\n\t\tif (!first && relative && BX.is_relative(element))\n\t\t{\n\t\t\tbreak;\n\t\t}\n\n\t\tx += element.offsetLeft;\n\t\ty += element.offsetTop;\n\n\t\tif (first)\n\t\t{\n\t\t\tfirst = false;\n\t\t\t// eslint-disable-next-line no-continue\n\t\t\tcontinue;\n\t\t}\n\n\t\tx += Text.toNumber(Dom.style(element, 'border-left-width'));\n\t\ty += Text.toNumber(Dom.style(element, 'border-top-width'));\n\t}\n\n\treturn (new DOMRect(x, y, w, h)).toJSON();\n}\n\nexport function addCustomEvent(eventObject, eventName, eventHandler)\n{\n\tif (Type.isString(eventObject))\n\t{\n\t\teventHandler = eventName;\n\t\teventName = eventObject;\n\t\teventObject = EventEmitter.GLOBAL_TARGET;\n\t}\n\n\tif (eventObject === window)\n\t{\n\t\teventObject = EventEmitter.GLOBAL_TARGET;\n\t}\n\n\tif (!Type.isObject(eventObject))\n\t{\n\t\tconsole.error('The \"eventObject\" argument must be an object. Received type '+ typeof(eventObject) + '.');\n\t\treturn;\n\t}\n\n\tif (!Type.isStringFilled(eventName))\n\t{\n\t\tconsole.error('The \"eventName\" argument must be a string.');\n\t\treturn;\n\t}\n\n\tif (!Type.isFunction(eventHandler))\n\t{\n\t\tconsole.error('The \"eventHandler\" argument must be a function. Received type '+ typeof(eventHandler) + '.');\n\t\treturn;\n\t}\n\n\teventName = eventName.toLowerCase();\n\n\tEventEmitter.subscribe(eventObject, eventName, eventHandler, { compatMode: true, useGlobalNaming: true });\n}\n\nexport function onCustomEvent(eventObject, eventName, eventParams, secureParams)\n{\n\tif (Type.isString(eventObject))\n\t{\n\t\tsecureParams = eventParams;\n\t\teventParams = eventName;\n\t\teventName = eventObject;\n\t\teventObject = EventEmitter.GLOBAL_TARGET;\n\t}\n\n\tif (!Type.isObject(eventObject) || eventObject === window)\n\t{\n\t\teventObject = EventEmitter.GLOBAL_TARGET;\n\t}\n\n\tif (!eventParams)\n\t{\n\t\teventParams = [];\n\t}\n\n\teventName = eventName.toLowerCase();\n\n\tconst event = new BaseEvent();\n\tevent.setData(eventParams);\n\tevent.setCompatData(eventParams);\n\n\tEventEmitter.emit(eventObject, eventName, event, { cloneData: secureParams === true, useGlobalNaming: true });\n}\n\nexport function removeCustomEvent(eventObject, eventName, eventHandler)\n{\n\tif (Type.isString(eventObject))\n\t{\n\t\teventHandler = eventName;\n\t\teventName = eventObject;\n\t\teventObject = EventEmitter.GLOBAL_TARGET;\n\t}\n\n\tif (!Type.isFunction(eventHandler))\n\t{\n\t\tconsole.error('The \"eventHandler\" argument must be a function. Received type '+ typeof(eventHandler) + '.');\n\t\treturn;\n\t}\n\n\tif (eventObject === window)\n\t{\n\t\teventObject = EventEmitter.GLOBAL_TARGET;\n\t}\n\n\teventName = eventName.toLowerCase();\n\n\tEventEmitter.unsubscribe(eventObject, eventName, eventHandler, { useGlobalNaming: true });\n}\n\nexport function removeAllCustomEvents(eventObject, eventName)\n{\n\tif (Type.isString(eventObject))\n\t{\n\t\teventName = eventObject;\n\t\teventObject = EventEmitter.GLOBAL_TARGET;\n\t}\n\n\tif (eventObject === window)\n\t{\n\t\teventObject = EventEmitter.GLOBAL_TARGET;\n\t}\n\n\teventName = eventName.toLowerCase();\n\n\tEventEmitter.unsubscribeAll(eventObject, eventName, { useGlobalNaming: true });\n}","//import './internal/bx';\n\nimport Type from '../../src/lib/type';\nimport Reflection from '../../src/lib/reflection';\nimport Text from '../../src/lib/text';\nimport Dom from '../../src/lib/dom';\nimport Browser from '../../src/lib/browser';\nimport Event from '../../src/lib/event';\nimport Http from '../../src/lib/http';\nimport Runtime from '../../src/lib/runtime';\nimport Loc from '../../src/lib/loc';\nimport Tag from '../../src/lib/tag';\nimport Uri from '../../src/lib/uri';\nimport Validation from '../../src/lib/validation';\nimport Cache from '../../src/lib/cache';\nimport BaseError from '../../src/lib/base-error';\nimport ZIndexManager from '../../src/lib/z-index/z-index-manager';\nimport Extension from '../../src/lib/extension/extension';\n\nexport {\n\tType,\n\tReflection,\n\tText,\n\tDom,\n\tBrowser,\n\tEvent,\n\tHttp,\n\tRuntime,\n\tLoc,\n\tTag,\n\tUri,\n\tValidation,\n\tCache,\n\tBaseError,\n\tZIndexManager,\n\tExtension,\n};\n\nexport * from '../../src/core-compatibility';",null]}