@zengenti/contensis-react-base 3.0.2-beta.31 → 3.0.2-beta.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/forms.js CHANGED
@@ -2,10 +2,11 @@ import { produce } from 'immer';
2
2
  import { takeEvery, takeLatest, put, select, all, call } from '@redux-saga/core/effects';
3
3
  import { createSelector } from 'reselect';
4
4
  import { selectors as selectors$1 } from '@zengenti/contensis-react-base/routing';
5
- import React, { createContext, useState, useEffect, useRef, forwardRef } from 'react';
5
+ import React, { createContext, useState, useEffect, useRef } from 'react';
6
6
  import PropTypes from 'prop-types';
7
7
  import { useSelector, useDispatch } from 'react-redux';
8
8
  import styled, { ThemeProvider as ThemeProvider$1, css } from 'styled-components';
9
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs } from './_commonjsHelpers-1789f0cf.js';
9
10
 
10
11
  const ACTION_PREFIX = '@FORM2/';
11
12
  const SET_FORM_DATA = `${ACTION_PREFIX}SET_FORM_DATA`;
@@ -1713,1063 +1714,3226 @@ EntryPicker.propTypes = {
1713
1714
  formId: PropTypes.string
1714
1715
  };
1715
1716
 
1716
- function _extends() {
1717
- _extends = Object.assign ? Object.assign.bind() : function (target) {
1718
- for (var i = 1; i < arguments.length; i++) {
1719
- var source = arguments[i];
1720
- for (var key in source) {
1721
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1722
- target[key] = source[key];
1717
+ var dist = {exports: {}};
1718
+
1719
+ (function (module, exports) {
1720
+ !function (t, e) {
1721
+ module.exports = e() ;
1722
+ }("undefined" != typeof self ? self : commonjsGlobal, function () {
1723
+ return function (t) {
1724
+ var e = {};
1725
+ function n(r) {
1726
+ if (e[r]) return e[r].exports;
1727
+ var i = e[r] = {
1728
+ i: r,
1729
+ l: !1,
1730
+ exports: {}
1731
+ };
1732
+ return t[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports;
1733
+ }
1734
+ return n.m = t, n.c = e, n.d = function (t, e, r) {
1735
+ n.o(t, e) || Object.defineProperty(t, e, {
1736
+ configurable: !1,
1737
+ enumerable: !0,
1738
+ get: r
1739
+ });
1740
+ }, n.n = function (t) {
1741
+ var e = t && t.__esModule ? function () {
1742
+ return t.default;
1743
+ } : function () {
1744
+ return t;
1745
+ };
1746
+ return n.d(e, "a", e), e;
1747
+ }, n.o = function (t, e) {
1748
+ return Object.prototype.hasOwnProperty.call(t, e);
1749
+ }, n.p = "", n(n.s = 2);
1750
+ }([function (t, e) {
1751
+ var n;
1752
+ n = function () {
1753
+ return this;
1754
+ }();
1755
+ try {
1756
+ n = n || Function("return this")() || (0, eval)("this");
1757
+ } catch (t) {
1758
+ "object" == typeof window && (n = window);
1759
+ }
1760
+ t.exports = n;
1761
+ }, function (t, e, n) {
1762
+
1763
+ t.exports = u;
1764
+ var r = n(3),
1765
+ i = n(4),
1766
+ o = Array.prototype;
1767
+ function u(t) {
1768
+ if (!(this instanceof u)) return new u(t);
1769
+ var e,
1770
+ n = i(t.className).split(/\s+/);
1771
+ for (this._elem = t, this.length = 0, e = 0; e < n.length; e += 1) n[e] && o.push.call(this, n[e]);
1772
+ }
1773
+ u.prototype.add = function () {
1774
+ var t, e;
1775
+ for (e = 0; e < arguments.length; e += 1) t = "" + arguments[e], r(this, t) >= 0 || o.push.call(this, t);
1776
+ return this._elem.className = this.toString(), this;
1777
+ }, u.prototype.remove = function () {
1778
+ var t, e, n;
1779
+ for (n = 0; n < arguments.length; n += 1) e = "" + arguments[n], (t = r(this, e)) < 0 || o.splice.call(this, t, 1);
1780
+ return this._elem.className = this.toString(), this;
1781
+ }, u.prototype.contains = function (t) {
1782
+ return r(this, t += "") >= 0;
1783
+ }, u.prototype.toggle = function (t, e) {
1784
+ return t += "", !0 === e ? this.add(t) : !1 === e ? this.remove(t) : this[this.contains(t) ? "remove" : "add"](t);
1785
+ }, u.prototype.toString = function () {
1786
+ return o.join.call(this, " ");
1787
+ };
1788
+ }, function (t, e, n) {
1789
+
1790
+ var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
1791
+ return typeof t;
1792
+ } : function (t) {
1793
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1794
+ },
1795
+ i = function () {
1796
+ function t(t, e) {
1797
+ for (var n = 0; n < e.length; n++) {
1798
+ var r = e[n];
1799
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1800
+ }
1723
1801
  }
1802
+ return function (e, n, r) {
1803
+ return n && t(e.prototype, n), r && t(e, r), e;
1804
+ };
1805
+ }(),
1806
+ o = E(n(1)),
1807
+ u = E(n(5)),
1808
+ s = E(n(6)),
1809
+ a = E(n(7)),
1810
+ c = E(n(8)),
1811
+ f = E(n(9)),
1812
+ l = E(n(10)),
1813
+ h = E(n(12)),
1814
+ p = E(n(14)),
1815
+ d = E(n(15)),
1816
+ g = E(n(17)),
1817
+ y = E(n(18)),
1818
+ v = E(n(19)),
1819
+ m = E(n(31)),
1820
+ b = E(n(32)),
1821
+ w = E(n(35));
1822
+ function E(t) {
1823
+ return t && t.__esModule ? t : {
1824
+ default: t
1825
+ };
1826
+ }
1827
+ t.exports = function () {
1828
+ function t(e) {
1829
+ var n = this;
1830
+ if (function (t, e) {
1831
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
1832
+ }(this, t), e = e || {}, this.config = (0, b.default)(e), this.input = (0, d.default)(this.config.input), this.list = (0, d.default)(this.config.list), this.cachedOpts = this.currentOpts = (0, d.default)(this.config.options, !0, this.list), this.isOpen = !1, this.currentOption = null, this.selected = [], this.groups = [], this.isHovering = !1, this.autoFilter = this.config.autoFilter, this.optionsWithEventHandlers = new Set(), this.optionsWithKeyEventHandlers = new Set(), this.config.groups) {
1833
+ var r = (0, d.default)(this.config.groups, !0, this.list);
1834
+ this.groups = r.map(function (t) {
1835
+ return {
1836
+ element: t,
1837
+ options: n.cachedOpts.filter(function (e) {
1838
+ return t.contains(e);
1839
+ })
1840
+ };
1841
+ });
1842
+ }
1843
+ if (!this.input || !this.list) throw new Error("Unable to find required elements (list/input)");
1844
+ (0, v.default)(this.input, this.list, this.cachedOpts), this.config.useLiveRegion && (this.liveRegion = new s.default({
1845
+ ariaLive: "assertive"
1846
+ })), this.initEvents();
1724
1847
  }
1848
+ return i(t, [{
1849
+ key: "initEvents",
1850
+ value: function () {
1851
+ var t = this;
1852
+ (0, u.default)(this), this.optionsWithKeyEventHandlers.has(this.input) || (this.input.addEventListener("click", function () {
1853
+ t.openList().goTo(t.getOptIndex() || 0);
1854
+ }), this.input.addEventListener("blur", function () {
1855
+ t.isHovering || t.closeList();
1856
+ }), this.input.addEventListener("focus", function () {
1857
+ t.selected.length && (t.input.value = t.selected.length >= 2 ? "" : t.config.selectionValue(t.selected)), t.input.select();
1858
+ }), document.addEventListener("click", function (e) {
1859
+ !(0, p.default)(e.target, [t.input, t.list], !0) && t.isOpen && t.closeList();
1860
+ })), this.optionEvents(), this.initKeys();
1861
+ }
1862
+ }, {
1863
+ key: "getOptIndex",
1864
+ value: function () {
1865
+ return this.currentOption && this.currentOpts.indexOf(this.currentOption);
1866
+ }
1867
+ }, {
1868
+ key: "optionEvents",
1869
+ value: function () {
1870
+ var t = this;
1871
+ this.cachedOpts.forEach(function (e) {
1872
+ t.optionsWithEventHandlers.has(e.id) || t.selected.includes(e) || (e.addEventListener("click", function () {
1873
+ t.goTo(t.currentOpts.indexOf(e)).select();
1874
+ }), e.addEventListener("mouseover", function () {
1875
+ var n = t.currentOption;
1876
+ n && (0, o.default)(n).remove(t.config.activeClass), (0, o.default)(e).add(t.config.activeClass), t.isHovering = !0;
1877
+ }), e.addEventListener("mouseout", function () {
1878
+ (0, o.default)(e).remove(t.config.activeClass), t.isHovering = !1;
1879
+ }), t.optionsWithEventHandlers.add(e.id));
1880
+ });
1881
+ }
1882
+ }, {
1883
+ key: "openList",
1884
+ value: function () {
1885
+ (0, o.default)(this.list).add(this.config.openClass), this.input.setAttribute("aria-expanded", "true"), this.isOpen || this.announceCount(), this.isOpen = !0, this.emit("list:open");
1886
+ var t = (0, f.default)(this.list);
1887
+ if (!t.visible) {
1888
+ var e = "bottom" === t.position ? 0 - (window.innerHeight - (this.input.clientHeight + this.list.clientHeight)) : 0;
1889
+ (0, a.default)({
1890
+ element: this.input,
1891
+ offset: e,
1892
+ bezier: [.19, 1, .22, 1],
1893
+ duration: 100
1894
+ });
1895
+ }
1896
+ return this;
1897
+ }
1898
+ }, {
1899
+ key: "closeList",
1900
+ value: function (t, e) {
1901
+ return (0, o.default)(this.list).remove(this.config.openClass), this.input.setAttribute("aria-expanded", "false"), this.isOpen = !1, t && this.input.focus(), !this.multiselect && this.selected.length && (this.input.value = this.config.selectionValue(this.selected)), e && this.input.select(), this.emit("list:close"), this;
1902
+ }
1903
+ }, {
1904
+ key: "initKeys",
1905
+ value: function () {
1906
+ var t = this;
1907
+ if (!this.optionsWithKeyEventHandlers.has(this.input)) {
1908
+ this.optionsWithKeyEventHandlers.add(this.input), h.default.down(this.input, [{
1909
+ keys: ["up", "down"],
1910
+ callback: function (e, n) {
1911
+ if (t.isOpen) return -1 === t.currentOpts.indexOf(t.currentOption) ? t.goTo(0, !0) : t.goTo("down" === n ? "next" : "prev", !0);
1912
+ var r = t.selected.length ? t.currentOpts.indexOf(t.selected[t.selected.length - 1]) : 0;
1913
+ t.goTo(r, !0).openList();
1914
+ },
1915
+ preventDefault: !0
1916
+ }, {
1917
+ keys: ["enter"],
1918
+ callback: function (e) {
1919
+ t.isOpen && (e.preventDefault(), e.stopPropagation(), t.select());
1920
+ }
1921
+ }, {
1922
+ keys: ["escape"],
1923
+ callback: function (e) {
1924
+ t.isOpen && (e.stopPropagation(), t.closeList(!0, !0));
1925
+ }
1926
+ }, {
1927
+ keys: ["backspace"],
1928
+ callback: function () {
1929
+ t.selected.length >= 2 && (t.input.value = "");
1930
+ }
1931
+ }]);
1932
+ var e = [9, 13, 27, 16];
1933
+ h.default.up(this.input, function (n) {
1934
+ if (t.autoFilter) {
1935
+ var r = t.config.filter,
1936
+ i = t.cachedInputValue;
1937
+ e.indexOf(n.which) > -1 || !r || (t.freshSelection ? (t.clearFilters(), i && i.trim() !== t.input.value.trim() && (t.filter().openList(), t.freshSelection = !1)) : t.filter().openList(), (0, y.default)(t.list, t.currentOpts, t.config.noResultsText));
1938
+ }
1939
+ });
1940
+ }
1941
+ }
1942
+ }, {
1943
+ key: "clearFilters",
1944
+ value: function () {
1945
+ return this.cachedOpts.forEach(function (t) {
1946
+ return t.style.display = "";
1947
+ }), this.groups.forEach(function (t) {
1948
+ return t.element.style.display = "";
1949
+ }), this.currentOpts = this.cachedOpts, this;
1950
+ }
1951
+ }, {
1952
+ key: "filter",
1953
+ value: function (t) {
1954
+ var e = this,
1955
+ n = this.config.filter,
1956
+ r = this.currentOpts;
1957
+ return this.currentOpts = "function" == typeof n ? n(this.input.value.trim(), this.cachedOpts) : l.default[n](this.input.value.trim(), this.cachedOpts), this.currentOpts = this.currentOpts || [], this.updateOpts(), r.every(function (t) {
1958
+ return e.currentOpts.indexOf(t) > -1;
1959
+ }) || t || this.announceCount(), this;
1960
+ }
1961
+ }, {
1962
+ key: "announceCount",
1963
+ value: function () {
1964
+ var t = this.config.announcement && this.config.announcement.count;
1965
+ return t && this.liveRegion && this.liveRegion.announce(t(this.currentOpts.length), 500), this;
1966
+ }
1967
+ }, {
1968
+ key: "updateOpts",
1969
+ value: function () {
1970
+ var t = this,
1971
+ e = this.config.optionValue;
1972
+ return this.cachedOpts.forEach(function (n) {
1973
+ n.style.display = -1 === t.currentOpts.indexOf(n) ? "none" : "", n.innerHTML = "string" == typeof e ? (0, m.default)(n, t.input, e) : e(n);
1974
+ }), this.updateGroups(), this;
1975
+ }
1976
+ }, {
1977
+ key: "updateGroups",
1978
+ value: function () {
1979
+ return this.groups.forEach(function (t) {
1980
+ var e = t.options.filter(function (t) {
1981
+ return "" === t.style.display;
1982
+ });
1983
+ t.element.style.display = e.length ? "" : "none";
1984
+ }), this;
1985
+ }
1986
+ }, {
1987
+ key: "select",
1988
+ value: function () {
1989
+ var t = this,
1990
+ e = this.currentOption;
1991
+ if (e) {
1992
+ !this.config.multiselect && this.selected.length && (0, o.default)(this.selected[0]).remove(this.config.selectedClass);
1993
+ var n = this.selected.indexOf(e),
1994
+ r = n > -1;
1995
+ return this.config.multiselect ? r ? this.selected.splice(n, 1) : this.selected.push(e) : this.selected = this.config.allowEmpty && r ? [] : [e], this.cachedOpts.forEach(function (e) {
1996
+ e.setAttribute("aria-selected", t.selected.indexOf(e) > -1 ? "true" : "false");
1997
+ }), r ? (e.classList.remove(this.config.selectedClass), this.emit("deselection", {
1998
+ text: this.input.value,
1999
+ option: e
2000
+ })) : (e.classList.add(this.config.selectedClass), this.emit("selection", {
2001
+ text: this.input.value,
2002
+ option: e
2003
+ })), this.freshSelection = !0, this.input.value = this.selected.length ? this.config.selectionValue(this.selected) : "", this.cachedInputValue = this.input.value, this.filter(!0).clearFilters(), this.config.multiselect || (this.closeList(), this.input.select()), this;
2004
+ }
2005
+ }
2006
+ }, {
2007
+ key: "reset",
2008
+ value: function () {
2009
+ var t = this;
2010
+ return this.clearFilters(), this.input.value = "", this.updateOpts(), this.input.removeAttribute("aria-activedescendant"), this.input.removeAttribute("data-active-option"), this.currentOption = null, this.selected = [], this.cachedOpts.forEach(function (e) {
2011
+ (0, o.default)(e).remove(t.config.selectedClass), (0, o.default)(e).remove(t.config.activeClass), e.setAttribute("aria-selected", "false");
2012
+ }), this;
2013
+ }
2014
+ }, {
2015
+ key: "goTo",
2016
+ value: function (t, e) {
2017
+ var n = this;
2018
+ if ("string" == typeof t) {
2019
+ var r = this.getOptIndex();
2020
+ return this.goTo("next" === t ? r + 1 : r - 1, e);
2021
+ }
2022
+ var i = this.currentOpts[t],
2023
+ o = !1;
2024
+ if (!this.currentOpts[t]) return 0 === this.getOptIndex() && (this.list.scrollTop = 0), this;
2025
+ if (this.groups.length) {
2026
+ var u = (0, g.default)(this.groups, i);
2027
+ o = u && u !== this.currentGroup, this.currentGroup = u;
2028
+ }
2029
+ return this.currentOption = i, this.pseudoFocus(o), this.currentOpts.forEach(function (t) {
2030
+ t.classList.contains(n.config.activeClass) && !(0, c.default)(n.list, t) && (0, a.default)(t);
2031
+ }), this;
2032
+ }
2033
+ }, {
2034
+ key: "pseudoFocus",
2035
+ value: function (t) {
2036
+ var e = this.currentOption,
2037
+ n = this.config.activeClass,
2038
+ r = this.input.getAttribute("data-active-option"),
2039
+ i = r && document.getElementById(r);
2040
+ return i && n && (0, o.default)(i).remove(n), e && (this.input.setAttribute("data-active-option", e.id), n && (0, o.default)(e).add(n), this.liveRegion && (0, w.default)(e, this.config, this.liveRegion.announce.bind(this.liveRegion), t, this.currentGroup && this.currentGroup.element), this.input.setAttribute("aria-activedescendant", e.id), this.currentOption = e, this.emit("change")), this;
2041
+ }
2042
+ }, {
2043
+ key: "setOptions",
2044
+ value: function (t) {
2045
+ return "object" === (void 0 === t ? "undefined" : r(t)) && this.config.list.append(t), this.cachedOpts.push(t), -1 === this.currentOpts.indexOf(t) && this.currentOpts.push(t), this;
2046
+ }
2047
+ }, {
2048
+ key: "setCurrentOptions",
2049
+ value: function () {
2050
+ return this.currentOption = this.currentOpts[0], this;
2051
+ }
2052
+ }, {
2053
+ key: "updateSelectedOptions",
2054
+ value: function () {
2055
+ var t = this,
2056
+ e = document.getElementById(this.config.list.id),
2057
+ n = this.selected;
2058
+ for (this.emptyDropdownList(); e.hasChildNodes();) e.removeChild(e.firstChild);
2059
+ return n.length > 0 && n.forEach(function (e) {
2060
+ t.setOptions(e);
2061
+ }), this;
2062
+ }
2063
+ }, {
2064
+ key: "emptyDropdownList",
2065
+ value: function () {
2066
+ return this.currentOpts = [], this.cachedOpts = [], this.optionsWithEventHandlers.clear(), this;
2067
+ }
2068
+ }, {
2069
+ key: "setNoResultFound",
2070
+ value: function () {
2071
+ (0, y.default)(this.list, this.currentOpts, this.config.noResultsText);
2072
+ }
2073
+ }]), t;
2074
+ }();
2075
+ }, function (t, e) {
2076
+ t.exports = function (t, e) {
2077
+ if (t.indexOf) return t.indexOf(e);
2078
+ for (var n = 0; n < t.length; ++n) if (t[n] === e) return n;
2079
+ return -1;
2080
+ };
2081
+ }, function (t, e) {
2082
+ (e = t.exports = function (t) {
2083
+ return t.replace(/^\s*|\s*$/g, "");
2084
+ }).left = function (t) {
2085
+ return t.replace(/^\s*/, "");
2086
+ }, e.right = function (t) {
2087
+ return t.replace(/\s*$/, "");
2088
+ };
2089
+ }, function (t, e, n) {
2090
+ function r(t) {
2091
+ if (t) return function (t) {
2092
+ for (var e in r.prototype) t[e] = r.prototype[e];
2093
+ return t;
2094
+ }(t);
1725
2095
  }
1726
- return target;
1727
- };
1728
- return _extends.apply(this, arguments);
1729
- }
2096
+ t.exports = r, r.prototype.on = r.prototype.addEventListener = function (t, e) {
2097
+ return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(e), this;
2098
+ }, r.prototype.once = function (t, e) {
2099
+ function n() {
2100
+ this.off(t, n), e.apply(this, arguments);
2101
+ }
2102
+ return n.fn = e, this.on(t, n), this;
2103
+ }, r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function (t, e) {
2104
+ if (this._callbacks = this._callbacks || {}, 0 == arguments.length) return this._callbacks = {}, this;
2105
+ var n,
2106
+ r = this._callbacks["$" + t];
2107
+ if (!r) return this;
2108
+ if (1 == arguments.length) return delete this._callbacks["$" + t], this;
2109
+ for (var i = 0; i < r.length; i++) if ((n = r[i]) === e || n.fn === e) {
2110
+ r.splice(i, 1);
2111
+ break;
2112
+ }
2113
+ return this;
2114
+ }, r.prototype.emit = function (t) {
2115
+ this._callbacks = this._callbacks || {};
2116
+ var e = [].slice.call(arguments, 1),
2117
+ n = this._callbacks["$" + t];
2118
+ if (n) for (var r = 0, i = (n = n.slice(0)).length; r < i; ++r) n[r].apply(this, e);
2119
+ return this;
2120
+ }, r.prototype.listeners = function (t) {
2121
+ return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [];
2122
+ }, r.prototype.hasListeners = function (t) {
2123
+ return !!this.listeners(t).length;
2124
+ };
2125
+ }, function (t, e, n) {
2126
+
2127
+ function r(t) {
2128
+ this.region = document.createElement("div"), this.options = t || {}, this.configure(), document.body.appendChild(this.region);
2129
+ }
2130
+ r.prototype.configure = function () {
2131
+ var t = this.options,
2132
+ e = this.region;
2133
+ e.setAttribute("aria-live", t.ariaLive || "polite"), e.setAttribute("role", t.role || "log"), e.setAttribute("aria-relevant", t.ariaRelevant || "additions"), e.setAttribute("aria-atomic", t.ariaAtomic || "false"), this.region.style.position = "absolute", this.region.style.width = "1px", this.region.style.height = "1px", this.region.style.marginTop = "-1px", this.region.style.clip = "rect(1px, 1px, 1px, 1px)", this.region.style.overflow = "hidden";
2134
+ }, r.prototype.announce = function (t, e) {
2135
+ var n = document.createElement("div");
2136
+ n.innerHTML = t, this.region.appendChild(n), (e || void 0 === e) && setTimeout(function () {
2137
+ this.region.removeChild(n);
2138
+ }.bind(this), e || 7e3);
2139
+ }, t.exports = r;
2140
+ }, function (t, e, n) {
2141
+ var r;
2142
+ r = function () {
2143
+ return function (t) {
2144
+ function e(r) {
2145
+ if (n[r]) return n[r].exports;
2146
+ var i = n[r] = {
2147
+ i: r,
2148
+ l: !1,
2149
+ exports: {}
2150
+ };
2151
+ return t[r].call(i.exports, i, i.exports, e), i.l = !0, i.exports;
2152
+ }
2153
+ var n = {};
2154
+ return e.m = t, e.c = n, e.i = function (t) {
2155
+ return t;
2156
+ }, e.d = function (t, n, r) {
2157
+ e.o(t, n) || Object.defineProperty(t, n, {
2158
+ configurable: !1,
2159
+ enumerable: !0,
2160
+ get: r
2161
+ });
2162
+ }, e.n = function (t) {
2163
+ var n = t && t.__esModule ? function () {
2164
+ return t.default;
2165
+ } : function () {
2166
+ return t;
2167
+ };
2168
+ return e.d(n, "a", n), n;
2169
+ }, e.o = function (t, e) {
2170
+ return Object.prototype.hasOwnProperty.call(t, e);
2171
+ }, e.p = "", e(e.s = 1);
2172
+ }([function (t, e, n) {
2173
+
2174
+ function r(t) {
2175
+ return t && t.__esModule ? t : {
2176
+ default: t
2177
+ };
2178
+ }
2179
+ function i() {}
2180
+ Object.defineProperty(e, "__esModule", {
2181
+ value: !0
2182
+ });
2183
+ var o = r(n(4)),
2184
+ u = r(n(7)),
2185
+ s = n(2),
2186
+ a = r(n(3)),
2187
+ c = [.19, 1, .22, 1];
2188
+ e.default = function (t) {
2189
+ var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 100,
2190
+ n = 0,
2191
+ r = void 0,
2192
+ f = void 0;
2193
+ if ((0, s.isElement)(t)) r = o.default.apply(void 0, c), f = i;else {
2194
+ if (!(0, s.isObject)(t)) throw new TypeError("The first argument must be HTMLElement or Object.");
2195
+ if (!(0, s.isElement)(t.element)) throw new TypeError("`element` must be HTMLElement.");
2196
+ n = (0, s.isNumeric)(t.offset) ? t.offset : 0, r = (0, s.isArray)(t.bezier) && 4 === t.bezier.length ? o.default.apply(void 0, function (t) {
2197
+ if (Array.isArray(t)) {
2198
+ for (var e = 0, n = Array(t.length); e < t.length; e++) n[e] = t[e];
2199
+ return n;
2200
+ }
2201
+ return Array.from(t);
2202
+ }(t.bezier)) : o.default.apply(void 0, c), e = t.duration, f = (0, s.isFunction)(t.then) ? t.then : i, t = t.element;
2203
+ }
2204
+ (!(0, s.isNumeric)(e) || e < 0) && (e = 100);
2205
+ var l = (0, a.default)(t),
2206
+ h = l.scrollTop,
2207
+ p = l.offsetTop,
2208
+ d = null,
2209
+ g = ("BODY" === l.nodeName ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset || document.body.scrollTop) - p : t.offsetTop - p) - h + n;
2210
+ (0, u.default)(function t(n) {
2211
+ null === d && (d = n);
2212
+ var i = n - d,
2213
+ o = r(i / e) * g;
2214
+ l.scrollTop = Math.round(h + o), i < e ? (0, u.default)(t) : f();
2215
+ });
2216
+ };
2217
+ }, function (t, e, n) {
2218
+
2219
+ var r = function (t) {
2220
+ return t && t.__esModule ? t : {
2221
+ default: t
2222
+ };
2223
+ }(n(0));
2224
+ t.exports = r.default;
2225
+ }, function (t, e, n) {
2226
+
2227
+ function r(t) {
2228
+ return Object.prototype.toString.call(t);
2229
+ }
2230
+ function i(t) {
2231
+ return !isNaN(parseFloat(t)) && isFinite(t);
2232
+ }
2233
+ Object.defineProperty(e, "__esModule", {
2234
+ value: !0
2235
+ });
2236
+ var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
2237
+ return typeof t;
2238
+ } : function (t) {
2239
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2240
+ };
2241
+ e.isObject = function (t) {
2242
+ return "[object Object]" === r(t);
2243
+ }, e.isArray = function (t) {
2244
+ return null != t && "[object Array]" === r(t);
2245
+ }, e.isNumeric = i, e.isPositive = function (t) {
2246
+ return i(t) && t >= 0;
2247
+ }, e.isFunction = function (t) {
2248
+ return null != t && "[object Function]" === r(t);
2249
+ }, e.isElement = function (t) {
2250
+ return "object" === o(window.HTMLElement) ? t instanceof window.HTMLElement : !!t && "object" === (void 0 === t ? "undefined" : o(t)) && null !== t && 1 === t.nodeType && "string" == typeof t.nodeName;
2251
+ };
2252
+ }, function (t, e, n) {
2253
+
2254
+ function r(t, e) {
2255
+ return window.getComputedStyle(t, null).getPropertyValue(e);
2256
+ }
2257
+ function i(t) {
2258
+ if (1 === t.nodeType) return o.test(function (t) {
2259
+ return r(t, "overflow") + r(t, "overflow-y");
2260
+ }(t)) && t.scrollHeight > t.clientHeight;
2261
+ }
2262
+ Object.defineProperty(e, "__esModule", {
2263
+ value: !0
2264
+ });
2265
+ var o = /(auto|scroll)/;
2266
+ e.default = function (t) {
2267
+ for (var e = function t(e) {
2268
+ var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
2269
+ r = e.parentNode;
2270
+ return null === r || "HTML" === r.nodeName ? n : t(r, n.concat(r));
2271
+ }(t), n = document.body, r = 0, o = e.length; r < o; r++) if (i(e[r])) {
2272
+ n = e[r];
2273
+ break;
2274
+ }
2275
+ return n;
2276
+ };
2277
+ }, function (t, e) {
2278
+ function n(t, e) {
2279
+ return 1 - 3 * e + 3 * t;
2280
+ }
2281
+ function r(t, e) {
2282
+ return 3 * e - 6 * t;
2283
+ }
2284
+ function i(t) {
2285
+ return 3 * t;
2286
+ }
2287
+ function o(t, e, o) {
2288
+ return ((n(e, o) * t + r(e, o)) * t + i(e)) * t;
2289
+ }
2290
+ function u(t, e, o) {
2291
+ return 3 * n(e, o) * t * t + 2 * r(e, o) * t + i(e);
2292
+ }
2293
+ function s(t, e, n, r, i) {
2294
+ var u,
2295
+ s,
2296
+ a = 0;
2297
+ do {
2298
+ (u = o(s = e + (n - e) / 2, r, i) - t) > 0 ? n = s : e = s;
2299
+ } while (Math.abs(u) > f && ++a < l);
2300
+ return s;
2301
+ }
2302
+ function a(t, e, n, r) {
2303
+ for (var i = 0; i < c; ++i) {
2304
+ var s = u(e, n, r);
2305
+ if (0 === s) return e;
2306
+ e -= (o(e, n, r) - t) / s;
2307
+ }
2308
+ return e;
2309
+ }
2310
+ var c = 4,
2311
+ f = 1e-7,
2312
+ l = 10,
2313
+ h = 11,
2314
+ p = 1 / (h - 1),
2315
+ d = "function" == typeof Float32Array;
2316
+ t.exports = function (t, e, n, r) {
2317
+ function i(e) {
2318
+ for (var r = 0, i = 1, o = h - 1; i !== o && c[i] <= e; ++i) r += p;
2319
+ var f = r + (e - c[--i]) / (c[i + 1] - c[i]) * p,
2320
+ l = u(f, t, n);
2321
+ return l >= .001 ? a(e, f, t, n) : 0 === l ? f : s(e, r, r + p, t, n);
2322
+ }
2323
+ if (!(0 <= t && t <= 1 && 0 <= n && n <= 1)) throw new Error("bezier x values must be in [0, 1] range");
2324
+ var c = d ? new Float32Array(h) : new Array(h);
2325
+ if (t !== e || n !== r) for (var f = 0; f < h; ++f) c[f] = o(f * p, t, n);
2326
+ return function (u) {
2327
+ return t === e && n === r ? u : 0 === u ? 0 : 1 === u ? 1 : o(i(u), e, r);
2328
+ };
2329
+ };
2330
+ }, function (t, e, n) {
2331
+ (function (e) {
2332
+ (function () {
2333
+ var n, r, i, o, u, s;
2334
+ "undefined" != typeof performance && null !== performance && performance.now ? t.exports = function () {
2335
+ return performance.now();
2336
+ } : void 0 !== e && null !== e && e.hrtime ? (t.exports = function () {
2337
+ return (n() - u) / 1e6;
2338
+ }, r = e.hrtime, o = (n = function () {
2339
+ var t;
2340
+ return 1e9 * (t = r())[0] + t[1];
2341
+ })(), s = 1e9 * e.uptime(), u = o - s) : Date.now ? (t.exports = function () {
2342
+ return Date.now() - i;
2343
+ }, i = Date.now()) : (t.exports = function () {
2344
+ return new Date().getTime() - i;
2345
+ }, i = new Date().getTime());
2346
+ }).call(this);
2347
+ }).call(e, n(6));
2348
+ }, function (t, e) {
2349
+ function n() {
2350
+ throw new Error("setTimeout has not been defined");
2351
+ }
2352
+ function r() {
2353
+ throw new Error("clearTimeout has not been defined");
2354
+ }
2355
+ function i(t) {
2356
+ if (c === setTimeout) return setTimeout(t, 0);
2357
+ if ((c === n || !c) && setTimeout) return c = setTimeout, setTimeout(t, 0);
2358
+ try {
2359
+ return c(t, 0);
2360
+ } catch (e) {
2361
+ try {
2362
+ return c.call(null, t, 0);
2363
+ } catch (e) {
2364
+ return c.call(this, t, 0);
2365
+ }
2366
+ }
2367
+ }
2368
+ function o() {
2369
+ d && h && (d = !1, h.length ? p = h.concat(p) : g = -1, p.length && u());
2370
+ }
2371
+ function u() {
2372
+ if (!d) {
2373
+ var t = i(o);
2374
+ d = !0;
2375
+ for (var e = p.length; e;) {
2376
+ for (h = p, p = []; ++g < e;) h && h[g].run();
2377
+ g = -1, e = p.length;
2378
+ }
2379
+ h = null, d = !1, function (t) {
2380
+ if (f === clearTimeout) return clearTimeout(t);
2381
+ if ((f === r || !f) && clearTimeout) return f = clearTimeout, clearTimeout(t);
2382
+ try {
2383
+ f(t);
2384
+ } catch (e) {
2385
+ try {
2386
+ return f.call(null, t);
2387
+ } catch (e) {
2388
+ return f.call(this, t);
2389
+ }
2390
+ }
2391
+ }(t);
2392
+ }
2393
+ }
2394
+ function s(t, e) {
2395
+ this.fun = t, this.array = e;
2396
+ }
2397
+ function a() {}
2398
+ var c,
2399
+ f,
2400
+ l = t.exports = {};
2401
+ !function () {
2402
+ try {
2403
+ c = "function" == typeof setTimeout ? setTimeout : n;
2404
+ } catch (t) {
2405
+ c = n;
2406
+ }
2407
+ try {
2408
+ f = "function" == typeof clearTimeout ? clearTimeout : r;
2409
+ } catch (t) {
2410
+ f = r;
2411
+ }
2412
+ }();
2413
+ var h,
2414
+ p = [],
2415
+ d = !1,
2416
+ g = -1;
2417
+ l.nextTick = function (t) {
2418
+ var e = new Array(arguments.length - 1);
2419
+ if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
2420
+ p.push(new s(t, e)), 1 !== p.length || d || i(u);
2421
+ }, s.prototype.run = function () {
2422
+ this.fun.apply(null, this.array);
2423
+ }, l.title = "browser", l.browser = !0, l.env = {}, l.argv = [], l.version = "", l.versions = {}, l.on = a, l.addListener = a, l.once = a, l.off = a, l.removeListener = a, l.removeAllListeners = a, l.emit = a, l.binding = function (t) {
2424
+ throw new Error("process.binding is not supported");
2425
+ }, l.cwd = function () {
2426
+ return "/";
2427
+ }, l.chdir = function (t) {
2428
+ throw new Error("process.chdir is not supported");
2429
+ }, l.umask = function () {
2430
+ return 0;
2431
+ };
2432
+ }, function (t, e, n) {
2433
+ (function (e) {
2434
+ for (var r = n(5), i = "undefined" == typeof window ? e : window, o = ["moz", "webkit"], u = "AnimationFrame", s = i["request" + u], a = i["cancel" + u] || i["cancelRequest" + u], c = 0; !s && c < o.length; c++) s = i[o[c] + "Request" + u], a = i[o[c] + "Cancel" + u] || i[o[c] + "CancelRequest" + u];
2435
+ if (!s || !a) {
2436
+ var f = 0,
2437
+ l = 0,
2438
+ h = [];
2439
+ s = function (t) {
2440
+ if (0 === h.length) {
2441
+ var e = r(),
2442
+ n = Math.max(0, 1e3 / 60 - (e - f));
2443
+ f = n + e, setTimeout(function () {
2444
+ var t = h.slice(0);
2445
+ h.length = 0;
2446
+ for (var e = 0; e < t.length; e++) if (!t[e].cancelled) try {
2447
+ t[e].callback(f);
2448
+ } catch (t) {
2449
+ setTimeout(function () {
2450
+ throw t;
2451
+ }, 0);
2452
+ }
2453
+ }, Math.round(n));
2454
+ }
2455
+ return h.push({
2456
+ handle: ++l,
2457
+ callback: t,
2458
+ cancelled: !1
2459
+ }), l;
2460
+ }, a = function (t) {
2461
+ for (var e = 0; e < h.length; e++) h[e].handle === t && (h[e].cancelled = !0);
2462
+ };
2463
+ }
2464
+ t.exports = function (t) {
2465
+ return s.call(i, t);
2466
+ }, t.exports.cancel = function () {
2467
+ a.apply(i, arguments);
2468
+ }, t.exports.polyfill = function () {
2469
+ i.requestAnimationFrame = s, i.cancelAnimationFrame = a;
2470
+ };
2471
+ }).call(e, n(8));
2472
+ }, function (t, e) {
2473
+ var n;
2474
+ n = function () {
2475
+ return this;
2476
+ }();
2477
+ try {
2478
+ n = n || Function("return this")() || (0, eval)("this");
2479
+ } catch (t) {
2480
+ "object" == typeof window && (n = window);
2481
+ }
2482
+ t.exports = n;
2483
+ }]);
2484
+ }, t.exports = r();
2485
+ }, function (t, e, n) {
2486
+
2487
+ t.exports = function (t, e) {
2488
+ var n = t.clientHeight,
2489
+ r = e.clientHeight,
2490
+ i = t.scrollTop,
2491
+ o = e.offsetTop;
2492
+ return !(i > o) && !(i + n - r < o);
2493
+ };
2494
+ }, function (t, e, n) {
2495
+
2496
+ t.exports = function (t) {
2497
+ var e = window.innerHeight,
2498
+ n = t.getBoundingClientRect(),
2499
+ r = n.top < 0,
2500
+ i = n.bottom > e,
2501
+ o = !r && !i,
2502
+ u = {
2503
+ visible: o
2504
+ };
2505
+ return o || (u.position = r ? "top" : "bottom"), u;
2506
+ };
2507
+ }, function (t, e, n) {
2508
+
2509
+ var r,
2510
+ i = n(11),
2511
+ o = (r = i) && r.__esModule ? r : {
2512
+ default: r
2513
+ };
2514
+ t.exports = {
2515
+ contains: function (t, e) {
2516
+ return e.filter(function (e) {
2517
+ return (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase()) > -1;
2518
+ });
2519
+ },
2520
+ equals: function (t, e) {
2521
+ return e.filter(function (e) {
2522
+ return (0, o.default)(e).toLowerCase() === t.toLowerCase();
2523
+ });
2524
+ },
2525
+ "starts-with": function (t, e) {
2526
+ return e.filter(function (e) {
2527
+ return 0 === (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase());
2528
+ });
2529
+ }
2530
+ };
2531
+ }, function (t, e, n) {
2532
+
2533
+ t.exports = function (t) {
2534
+ return t.getAttribute("data-value") || t.innerText;
2535
+ };
2536
+ }, function (t, e, n) {
2537
+
2538
+ var r,
2539
+ i = n(13),
2540
+ o = (r = i) && r.__esModule ? r : {
2541
+ default: r
2542
+ };
2543
+ e.attach = function (t, e, n) {
2544
+ if ("function" == typeof n) return e.addEventListener(t, n);
2545
+ n && n.length && e.addEventListener(t, function (t) {
2546
+ var e = o.default[t.which];
2547
+ n.forEach(function (n) {
2548
+ n.keys.indexOf(e) > -1 && (n.preventDefault && t.preventDefault(), n.callback(t, e));
2549
+ });
2550
+ });
2551
+ }, e.up = function (t, n) {
2552
+ return e.attach("keyup", t, n);
2553
+ }, e.down = function (t, n) {
2554
+ return e.attach("keydown", t, n);
2555
+ }, e.press = function (t, n) {
2556
+ return e.attach("keypress", t, n);
2557
+ };
2558
+ }, function (t, e, n) {
2559
+
2560
+ t.exports = {
2561
+ 8: "backspace",
2562
+ 9: "tab",
2563
+ 13: "enter",
2564
+ 27: "escape",
2565
+ 32: "space",
2566
+ 37: "left",
2567
+ 38: "up",
2568
+ 39: "right",
2569
+ 40: "down"
2570
+ };
2571
+ }, function (t, e, n) {
2572
+
2573
+ t.exports = function (t, e, n) {
2574
+ if (e = e.length ? e : [e], n && e.indexOf(t) > -1) return !0;
2575
+ for (var r = t.parentNode; r && "HTML" !== r.tagName;) {
2576
+ if (e.indexOf(r) > -1) return !0;
2577
+ r = r.parentNode;
2578
+ }
2579
+ return !1;
2580
+ };
2581
+ }, function (t, e, n) {
2582
+
2583
+ var r,
2584
+ i = n(16),
2585
+ o = (r = i) && r.__esModule ? r : {
2586
+ default: r
2587
+ };
2588
+ t.exports = function (t, e, n) {
2589
+ return n = n || document, "string" == typeof t ? e ? o.default.all(t, n) : (0, o.default)(t, n) : t;
2590
+ };
2591
+ }, function (t, e, n) {
2592
+
2593
+ (t.exports = function (t, e) {
2594
+ return (e = e || document).querySelector(t);
2595
+ }).all = function (t, e) {
2596
+ return e = e || document, Array.prototype.slice.call(e.querySelectorAll(t));
2597
+ };
2598
+ }, function (t, e, n) {
2599
+
2600
+ t.exports = function (t, e) {
2601
+ var n = t.filter(function (t) {
2602
+ return t.options.indexOf(e) > -1;
2603
+ });
2604
+ return n.length && n[0];
2605
+ };
2606
+ }, function (t, e, n) {
2607
+
2608
+ var r,
2609
+ i = n(1),
2610
+ o = (r = i) && r.__esModule ? r : {
2611
+ default: r
2612
+ };
2613
+ t.exports = function (t, e, n) {
2614
+ var r = t.querySelector(".combobo-no-results");
2615
+ !n || e.length || r ? r && e.length && t.removeChild(r) : (r = document.createElement("div"), (0, o.default)(r).add("combobo-no-results"), r.innerHTML = n, t.appendChild(r));
2616
+ };
2617
+ }, function (t, e, n) {
2618
+
2619
+ var r,
2620
+ i = n(20),
2621
+ o = (r = i) && r.__esModule ? r : {
2622
+ default: r
2623
+ };
2624
+ t.exports = function (t, e, n) {
2625
+ e.id = e.id || (0, o.default)(), t.setAttribute("role", "combobox"), e.setAttribute("role", "listbox"), t.setAttribute("aria-controls", e.id), t.setAttribute("aria-autocomplete", "list"), t.setAttribute("aria-expanded", "false"), n.forEach(function (t) {
2626
+ t.setAttribute("role", "option"), t.id = t.id || (0, o.default)();
2627
+ });
2628
+ };
2629
+ }, function (t, e, n) {
2630
+
2631
+ var r,
2632
+ i = n(21),
2633
+ o = (r = i) && r.__esModule ? r : {
2634
+ default: r
2635
+ };
2636
+ t.exports = function t(e) {
2637
+ e = e || 8;
2638
+ var n = (0, o.default)(e);
2639
+ if (document.getElementById(n)) return t(e);
2640
+ return n;
2641
+ };
2642
+ }, function (t, e, n) {
2643
+ (function (r) {
2644
+ var i = n(26);
2645
+ function o(t) {
2646
+ i("string" == typeof t, "the list of characters must be a string!");
2647
+ var e = r.byteLength(t);
2648
+ return function (n) {
2649
+ i("number" == typeof (n = n || 10) && n >= 0, "the length of the random string must be a number!");
2650
+ for (var r = "", o = 0; o < n; o++) r += t[Math.floor(e * Math.random())];
2651
+ return r;
2652
+ };
2653
+ }
2654
+ (e = t.exports = o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")).base62 = e, e.base36 = o("abcdefghijklmnopqrstuvwxyz0123456789"), e.base10 = o("0123456789"), e.create = o;
2655
+ }).call(e, n(22).Buffer);
2656
+ }, function (t, e, n) {
2657
+
2658
+ (function (t) {
2659
+ var r = n(23),
2660
+ i = n(24),
2661
+ o = n(25);
2662
+ function u() {
2663
+ return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
2664
+ }
2665
+ function s(t, e) {
2666
+ if (u() < e) throw new RangeError("Invalid typed array length");
2667
+ return a.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e)).__proto__ = a.prototype : (null === t && (t = new a(e)), t.length = e), t;
2668
+ }
2669
+ function a(t, e, n) {
2670
+ if (!(a.TYPED_ARRAY_SUPPORT || this instanceof a)) return new a(t, e, n);
2671
+ if ("number" == typeof t) {
2672
+ if ("string" == typeof e) throw new Error("If encoding is specified then the first argument must be a string");
2673
+ return l(this, t);
2674
+ }
2675
+ return c(this, t, e, n);
2676
+ }
2677
+ function c(t, e, n, r) {
2678
+ if ("number" == typeof e) throw new TypeError('"value" argument must not be a number');
2679
+ return "undefined" != typeof ArrayBuffer && e instanceof ArrayBuffer ? function (t, e, n, r) {
2680
+ if (e.byteLength, n < 0 || e.byteLength < n) throw new RangeError("'offset' is out of bounds");
2681
+ if (e.byteLength < n + (r || 0)) throw new RangeError("'length' is out of bounds");
2682
+ e = void 0 === n && void 0 === r ? new Uint8Array(e) : void 0 === r ? new Uint8Array(e, n) : new Uint8Array(e, n, r);
2683
+ a.TYPED_ARRAY_SUPPORT ? (t = e).__proto__ = a.prototype : t = h(t, e);
2684
+ return t;
2685
+ }(t, e, n, r) : "string" == typeof e ? function (t, e, n) {
2686
+ "string" == typeof n && "" !== n || (n = "utf8");
2687
+ if (!a.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding');
2688
+ var r = 0 | d(e, n),
2689
+ i = (t = s(t, r)).write(e, n);
2690
+ i !== r && (t = t.slice(0, i));
2691
+ return t;
2692
+ }(t, e, n) : function (t, e) {
2693
+ if (a.isBuffer(e)) {
2694
+ var n = 0 | p(e.length);
2695
+ return 0 === (t = s(t, n)).length ? t : (e.copy(t, 0, 0, n), t);
2696
+ }
2697
+ if (e) {
2698
+ if ("undefined" != typeof ArrayBuffer && e.buffer instanceof ArrayBuffer || "length" in e) return "number" != typeof e.length || (r = e.length) != r ? s(t, 0) : h(t, e);
2699
+ if ("Buffer" === e.type && o(e.data)) return h(t, e.data);
2700
+ }
2701
+ var r;
2702
+ throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
2703
+ }(t, e);
2704
+ }
2705
+ function f(t) {
2706
+ if ("number" != typeof t) throw new TypeError('"size" argument must be a number');
2707
+ if (t < 0) throw new RangeError('"size" argument must not be negative');
2708
+ }
2709
+ function l(t, e) {
2710
+ if (f(e), t = s(t, e < 0 ? 0 : 0 | p(e)), !a.TYPED_ARRAY_SUPPORT) for (var n = 0; n < e; ++n) t[n] = 0;
2711
+ return t;
2712
+ }
2713
+ function h(t, e) {
2714
+ var n = e.length < 0 ? 0 : 0 | p(e.length);
2715
+ t = s(t, n);
2716
+ for (var r = 0; r < n; r += 1) t[r] = 255 & e[r];
2717
+ return t;
2718
+ }
2719
+ function p(t) {
2720
+ if (t >= u()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u().toString(16) + " bytes");
2721
+ return 0 | t;
2722
+ }
2723
+ function d(t, e) {
2724
+ if (a.isBuffer(t)) return t.length;
2725
+ if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(t) || t instanceof ArrayBuffer)) return t.byteLength;
2726
+ "string" != typeof t && (t = "" + t);
2727
+ var n = t.length;
2728
+ if (0 === n) return 0;
2729
+ for (var r = !1;;) switch (e) {
2730
+ case "ascii":
2731
+ case "latin1":
2732
+ case "binary":
2733
+ return n;
2734
+ case "utf8":
2735
+ case "utf-8":
2736
+ case void 0:
2737
+ return N(t).length;
2738
+ case "ucs2":
2739
+ case "ucs-2":
2740
+ case "utf16le":
2741
+ case "utf-16le":
2742
+ return 2 * n;
2743
+ case "hex":
2744
+ return n >>> 1;
2745
+ case "base64":
2746
+ return F(t).length;
2747
+ default:
2748
+ if (r) return N(t).length;
2749
+ e = ("" + e).toLowerCase(), r = !0;
2750
+ }
2751
+ }
2752
+ function g(t, e, n) {
2753
+ var r = t[e];
2754
+ t[e] = t[n], t[n] = r;
2755
+ }
2756
+ function y(t, e, n, r, i) {
2757
+ if (0 === t.length) return -1;
2758
+ if ("string" == typeof n ? (r = n, n = 0) : n > 2147483647 ? n = 2147483647 : n < -2147483648 && (n = -2147483648), n = +n, isNaN(n) && (n = i ? 0 : t.length - 1), n < 0 && (n = t.length + n), n >= t.length) {
2759
+ if (i) return -1;
2760
+ n = t.length - 1;
2761
+ } else if (n < 0) {
2762
+ if (!i) return -1;
2763
+ n = 0;
2764
+ }
2765
+ if ("string" == typeof e && (e = a.from(e, r)), a.isBuffer(e)) return 0 === e.length ? -1 : v(t, e, n, r, i);
2766
+ if ("number" == typeof e) return e &= 255, a.TYPED_ARRAY_SUPPORT && "function" == typeof Uint8Array.prototype.indexOf ? i ? Uint8Array.prototype.indexOf.call(t, e, n) : Uint8Array.prototype.lastIndexOf.call(t, e, n) : v(t, [e], n, r, i);
2767
+ throw new TypeError("val must be string, number or Buffer");
2768
+ }
2769
+ function v(t, e, n, r, i) {
2770
+ var o,
2771
+ u = 1,
2772
+ s = t.length,
2773
+ a = e.length;
2774
+ if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) {
2775
+ if (t.length < 2 || e.length < 2) return -1;
2776
+ u = 2, s /= 2, a /= 2, n /= 2;
2777
+ }
2778
+ function c(t, e) {
2779
+ return 1 === u ? t[e] : t.readUInt16BE(e * u);
2780
+ }
2781
+ if (i) {
2782
+ var f = -1;
2783
+ for (o = n; o < s; o++) if (c(t, o) === c(e, -1 === f ? 0 : o - f)) {
2784
+ if (-1 === f && (f = o), o - f + 1 === a) return f * u;
2785
+ } else -1 !== f && (o -= o - f), f = -1;
2786
+ } else for (n + a > s && (n = s - a), o = n; o >= 0; o--) {
2787
+ for (var l = !0, h = 0; h < a; h++) if (c(t, o + h) !== c(e, h)) {
2788
+ l = !1;
2789
+ break;
2790
+ }
2791
+ if (l) return o;
2792
+ }
2793
+ return -1;
2794
+ }
2795
+ function m(t, e, n, r) {
2796
+ n = Number(n) || 0;
2797
+ var i = t.length - n;
2798
+ r ? (r = Number(r)) > i && (r = i) : r = i;
2799
+ var o = e.length;
2800
+ if (o % 2 != 0) throw new TypeError("Invalid hex string");
2801
+ r > o / 2 && (r = o / 2);
2802
+ for (var u = 0; u < r; ++u) {
2803
+ var s = parseInt(e.substr(2 * u, 2), 16);
2804
+ if (isNaN(s)) return u;
2805
+ t[n + u] = s;
2806
+ }
2807
+ return u;
2808
+ }
2809
+ function b(t, e, n, r) {
2810
+ return z(N(e, t.length - n), t, n, r);
2811
+ }
2812
+ function w(t, e, n, r) {
2813
+ return z(function (t) {
2814
+ for (var e = [], n = 0; n < t.length; ++n) e.push(255 & t.charCodeAt(n));
2815
+ return e;
2816
+ }(e), t, n, r);
2817
+ }
2818
+ function E(t, e, n, r) {
2819
+ return w(t, e, n, r);
2820
+ }
2821
+ function O(t, e, n, r) {
2822
+ return z(F(e), t, n, r);
2823
+ }
2824
+ function A(t, e, n, r) {
2825
+ return z(function (t, e) {
2826
+ for (var n, r, i, o = [], u = 0; u < t.length && !((e -= 2) < 0); ++u) n = t.charCodeAt(u), r = n >> 8, i = n % 256, o.push(i), o.push(r);
2827
+ return o;
2828
+ }(e, t.length - n), t, n, r);
2829
+ }
2830
+ function x(t, e, n) {
2831
+ return 0 === e && n === t.length ? r.fromByteArray(t) : r.fromByteArray(t.slice(e, n));
2832
+ }
2833
+ function T(t, e, n) {
2834
+ n = Math.min(t.length, n);
2835
+ for (var r = [], i = e; i < n;) {
2836
+ var o,
2837
+ u,
2838
+ s,
2839
+ a,
2840
+ c = t[i],
2841
+ f = null,
2842
+ l = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
2843
+ if (i + l <= n) switch (l) {
2844
+ case 1:
2845
+ c < 128 && (f = c);
2846
+ break;
2847
+ case 2:
2848
+ 128 == (192 & (o = t[i + 1])) && (a = (31 & c) << 6 | 63 & o) > 127 && (f = a);
2849
+ break;
2850
+ case 3:
2851
+ o = t[i + 1], u = t[i + 2], 128 == (192 & o) && 128 == (192 & u) && (a = (15 & c) << 12 | (63 & o) << 6 | 63 & u) > 2047 && (a < 55296 || a > 57343) && (f = a);
2852
+ break;
2853
+ case 4:
2854
+ o = t[i + 1], u = t[i + 2], s = t[i + 3], 128 == (192 & o) && 128 == (192 & u) && 128 == (192 & s) && (a = (15 & c) << 18 | (63 & o) << 12 | (63 & u) << 6 | 63 & s) > 65535 && a < 1114112 && (f = a);
2855
+ }
2856
+ null === f ? (f = 65533, l = 1) : f > 65535 && (f -= 65536, r.push(f >>> 10 & 1023 | 55296), f = 56320 | 1023 & f), r.push(f), i += l;
2857
+ }
2858
+ return function (t) {
2859
+ var e = t.length;
2860
+ if (e <= _) return String.fromCharCode.apply(String, t);
2861
+ var n = "",
2862
+ r = 0;
2863
+ for (; r < e;) n += String.fromCharCode.apply(String, t.slice(r, r += _));
2864
+ return n;
2865
+ }(r);
2866
+ }
2867
+ e.Buffer = a, e.SlowBuffer = function (t) {
2868
+ +t != t && (t = 0);
2869
+ return a.alloc(+t);
2870
+ }, e.INSPECT_MAX_BYTES = 50, a.TYPED_ARRAY_SUPPORT = void 0 !== t.TYPED_ARRAY_SUPPORT ? t.TYPED_ARRAY_SUPPORT : function () {
2871
+ try {
2872
+ var t = new Uint8Array(1);
2873
+ return t.__proto__ = {
2874
+ __proto__: Uint8Array.prototype,
2875
+ foo: function () {
2876
+ return 42;
2877
+ }
2878
+ }, 42 === t.foo() && "function" == typeof t.subarray && 0 === t.subarray(1, 1).byteLength;
2879
+ } catch (t) {
2880
+ return !1;
2881
+ }
2882
+ }(), e.kMaxLength = u(), a.poolSize = 8192, a._augment = function (t) {
2883
+ return t.__proto__ = a.prototype, t;
2884
+ }, a.from = function (t, e, n) {
2885
+ return c(null, t, e, n);
2886
+ }, a.TYPED_ARRAY_SUPPORT && (a.prototype.__proto__ = Uint8Array.prototype, a.__proto__ = Uint8Array, "undefined" != typeof Symbol && Symbol.species && a[Symbol.species] === a && Object.defineProperty(a, Symbol.species, {
2887
+ value: null,
2888
+ configurable: !0
2889
+ })), a.alloc = function (t, e, n) {
2890
+ return function (t, e, n, r) {
2891
+ return f(e), e <= 0 ? s(t, e) : void 0 !== n ? "string" == typeof r ? s(t, e).fill(n, r) : s(t, e).fill(n) : s(t, e);
2892
+ }(null, t, e, n);
2893
+ }, a.allocUnsafe = function (t) {
2894
+ return l(null, t);
2895
+ }, a.allocUnsafeSlow = function (t) {
2896
+ return l(null, t);
2897
+ }, a.isBuffer = function (t) {
2898
+ return !(null == t || !t._isBuffer);
2899
+ }, a.compare = function (t, e) {
2900
+ if (!a.isBuffer(t) || !a.isBuffer(e)) throw new TypeError("Arguments must be Buffers");
2901
+ if (t === e) return 0;
2902
+ for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
2903
+ n = t[i], r = e[i];
2904
+ break;
2905
+ }
2906
+ return n < r ? -1 : r < n ? 1 : 0;
2907
+ }, a.isEncoding = function (t) {
2908
+ switch (String(t).toLowerCase()) {
2909
+ case "hex":
2910
+ case "utf8":
2911
+ case "utf-8":
2912
+ case "ascii":
2913
+ case "latin1":
2914
+ case "binary":
2915
+ case "base64":
2916
+ case "ucs2":
2917
+ case "ucs-2":
2918
+ case "utf16le":
2919
+ case "utf-16le":
2920
+ return !0;
2921
+ default:
2922
+ return !1;
2923
+ }
2924
+ }, a.concat = function (t, e) {
2925
+ if (!o(t)) throw new TypeError('"list" argument must be an Array of Buffers');
2926
+ if (0 === t.length) return a.alloc(0);
2927
+ var n;
2928
+ if (void 0 === e) for (e = 0, n = 0; n < t.length; ++n) e += t[n].length;
2929
+ var r = a.allocUnsafe(e),
2930
+ i = 0;
2931
+ for (n = 0; n < t.length; ++n) {
2932
+ var u = t[n];
2933
+ if (!a.isBuffer(u)) throw new TypeError('"list" argument must be an Array of Buffers');
2934
+ u.copy(r, i), i += u.length;
2935
+ }
2936
+ return r;
2937
+ }, a.byteLength = d, a.prototype._isBuffer = !0, a.prototype.swap16 = function () {
2938
+ var t = this.length;
2939
+ if (t % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
2940
+ for (var e = 0; e < t; e += 2) g(this, e, e + 1);
2941
+ return this;
2942
+ }, a.prototype.swap32 = function () {
2943
+ var t = this.length;
2944
+ if (t % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
2945
+ for (var e = 0; e < t; e += 4) g(this, e, e + 3), g(this, e + 1, e + 2);
2946
+ return this;
2947
+ }, a.prototype.swap64 = function () {
2948
+ var t = this.length;
2949
+ if (t % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
2950
+ for (var e = 0; e < t; e += 8) g(this, e, e + 7), g(this, e + 1, e + 6), g(this, e + 2, e + 5), g(this, e + 3, e + 4);
2951
+ return this;
2952
+ }, a.prototype.toString = function () {
2953
+ var t = 0 | this.length;
2954
+ return 0 === t ? "" : 0 === arguments.length ? T(this, 0, t) : function (t, e, n) {
2955
+ var r = !1;
2956
+ if ((void 0 === e || e < 0) && (e = 0), e > this.length) return "";
2957
+ if ((void 0 === n || n > this.length) && (n = this.length), n <= 0) return "";
2958
+ if ((n >>>= 0) <= (e >>>= 0)) return "";
2959
+ for (t || (t = "utf8");;) switch (t) {
2960
+ case "hex":
2961
+ return k(this, e, n);
2962
+ case "utf8":
2963
+ case "utf-8":
2964
+ return T(this, e, n);
2965
+ case "ascii":
2966
+ return S(this, e, n);
2967
+ case "latin1":
2968
+ case "binary":
2969
+ return R(this, e, n);
2970
+ case "base64":
2971
+ return x(this, e, n);
2972
+ case "ucs2":
2973
+ case "ucs-2":
2974
+ case "utf16le":
2975
+ case "utf-16le":
2976
+ return P(this, e, n);
2977
+ default:
2978
+ if (r) throw new TypeError("Unknown encoding: " + t);
2979
+ t = (t + "").toLowerCase(), r = !0;
2980
+ }
2981
+ }.apply(this, arguments);
2982
+ }, a.prototype.equals = function (t) {
2983
+ if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
2984
+ return this === t || 0 === a.compare(this, t);
2985
+ }, a.prototype.inspect = function () {
2986
+ var t = "",
2987
+ n = e.INSPECT_MAX_BYTES;
2988
+ return this.length > 0 && (t = this.toString("hex", 0, n).match(/.{2}/g).join(" "), this.length > n && (t += " ... ")), "<Buffer " + t + ">";
2989
+ }, a.prototype.compare = function (t, e, n, r, i) {
2990
+ if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
2991
+ if (void 0 === e && (e = 0), void 0 === n && (n = t ? t.length : 0), void 0 === r && (r = 0), void 0 === i && (i = this.length), e < 0 || n > t.length || r < 0 || i > this.length) throw new RangeError("out of range index");
2992
+ if (r >= i && e >= n) return 0;
2993
+ if (r >= i) return -1;
2994
+ if (e >= n) return 1;
2995
+ if (e >>>= 0, n >>>= 0, r >>>= 0, i >>>= 0, this === t) return 0;
2996
+ for (var o = i - r, u = n - e, s = Math.min(o, u), c = this.slice(r, i), f = t.slice(e, n), l = 0; l < s; ++l) if (c[l] !== f[l]) {
2997
+ o = c[l], u = f[l];
2998
+ break;
2999
+ }
3000
+ return o < u ? -1 : u < o ? 1 : 0;
3001
+ }, a.prototype.includes = function (t, e, n) {
3002
+ return -1 !== this.indexOf(t, e, n);
3003
+ }, a.prototype.indexOf = function (t, e, n) {
3004
+ return y(this, t, e, n, !0);
3005
+ }, a.prototype.lastIndexOf = function (t, e, n) {
3006
+ return y(this, t, e, n, !1);
3007
+ }, a.prototype.write = function (t, e, n, r) {
3008
+ if (void 0 === e) r = "utf8", n = this.length, e = 0;else if (void 0 === n && "string" == typeof e) r = e, n = this.length, e = 0;else {
3009
+ if (!isFinite(e)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
3010
+ e |= 0, isFinite(n) ? (n |= 0, void 0 === r && (r = "utf8")) : (r = n, n = void 0);
3011
+ }
3012
+ var i = this.length - e;
3013
+ if ((void 0 === n || n > i) && (n = i), t.length > 0 && (n < 0 || e < 0) || e > this.length) throw new RangeError("Attempt to write outside buffer bounds");
3014
+ r || (r = "utf8");
3015
+ for (var o = !1;;) switch (r) {
3016
+ case "hex":
3017
+ return m(this, t, e, n);
3018
+ case "utf8":
3019
+ case "utf-8":
3020
+ return b(this, t, e, n);
3021
+ case "ascii":
3022
+ return w(this, t, e, n);
3023
+ case "latin1":
3024
+ case "binary":
3025
+ return E(this, t, e, n);
3026
+ case "base64":
3027
+ return O(this, t, e, n);
3028
+ case "ucs2":
3029
+ case "ucs-2":
3030
+ case "utf16le":
3031
+ case "utf-16le":
3032
+ return A(this, t, e, n);
3033
+ default:
3034
+ if (o) throw new TypeError("Unknown encoding: " + r);
3035
+ r = ("" + r).toLowerCase(), o = !0;
3036
+ }
3037
+ }, a.prototype.toJSON = function () {
3038
+ return {
3039
+ type: "Buffer",
3040
+ data: Array.prototype.slice.call(this._arr || this, 0)
3041
+ };
3042
+ };
3043
+ var _ = 4096;
3044
+ function S(t, e, n) {
3045
+ var r = "";
3046
+ n = Math.min(t.length, n);
3047
+ for (var i = e; i < n; ++i) r += String.fromCharCode(127 & t[i]);
3048
+ return r;
3049
+ }
3050
+ function R(t, e, n) {
3051
+ var r = "";
3052
+ n = Math.min(t.length, n);
3053
+ for (var i = e; i < n; ++i) r += String.fromCharCode(t[i]);
3054
+ return r;
3055
+ }
3056
+ function k(t, e, n) {
3057
+ var r = t.length;
3058
+ (!e || e < 0) && (e = 0), (!n || n < 0 || n > r) && (n = r);
3059
+ for (var i = "", o = e; o < n; ++o) i += Y(t[o]);
3060
+ return i;
3061
+ }
3062
+ function P(t, e, n) {
3063
+ for (var r = t.slice(e, n), i = "", o = 0; o < r.length; o += 2) i += String.fromCharCode(r[o] + 256 * r[o + 1]);
3064
+ return i;
3065
+ }
3066
+ function L(t, e, n) {
3067
+ if (t % 1 != 0 || t < 0) throw new RangeError("offset is not uint");
3068
+ if (t + e > n) throw new RangeError("Trying to access beyond buffer length");
3069
+ }
3070
+ function B(t, e, n, r, i, o) {
3071
+ if (!a.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
3072
+ if (e > i || e < o) throw new RangeError('"value" argument is out of bounds');
3073
+ if (n + r > t.length) throw new RangeError("Index out of range");
3074
+ }
3075
+ function C(t, e, n, r) {
3076
+ e < 0 && (e = 65535 + e + 1);
3077
+ for (var i = 0, o = Math.min(t.length - n, 2); i < o; ++i) t[n + i] = (e & 255 << 8 * (r ? i : 1 - i)) >>> 8 * (r ? i : 1 - i);
3078
+ }
3079
+ function j(t, e, n, r) {
3080
+ e < 0 && (e = 4294967295 + e + 1);
3081
+ for (var i = 0, o = Math.min(t.length - n, 4); i < o; ++i) t[n + i] = e >>> 8 * (r ? i : 3 - i) & 255;
3082
+ }
3083
+ function M(t, e, n, r, i, o) {
3084
+ if (n + r > t.length) throw new RangeError("Index out of range");
3085
+ if (n < 0) throw new RangeError("Index out of range");
3086
+ }
3087
+ function U(t, e, n, r, o) {
3088
+ return o || M(t, 0, n, 4), i.write(t, e, n, r, 23, 4), n + 4;
3089
+ }
3090
+ function D(t, e, n, r, o) {
3091
+ return o || M(t, 0, n, 8), i.write(t, e, n, r, 52, 8), n + 8;
3092
+ }
3093
+ a.prototype.slice = function (t, e) {
3094
+ var n,
3095
+ r = this.length;
3096
+ if (t = ~~t, e = void 0 === e ? r : ~~e, t < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r), e < 0 ? (e += r) < 0 && (e = 0) : e > r && (e = r), e < t && (e = t), a.TYPED_ARRAY_SUPPORT) (n = this.subarray(t, e)).__proto__ = a.prototype;else {
3097
+ var i = e - t;
3098
+ n = new a(i, void 0);
3099
+ for (var o = 0; o < i; ++o) n[o] = this[o + t];
3100
+ }
3101
+ return n;
3102
+ }, a.prototype.readUIntLE = function (t, e, n) {
3103
+ t |= 0, e |= 0, n || L(t, e, this.length);
3104
+ for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
3105
+ return r;
3106
+ }, a.prototype.readUIntBE = function (t, e, n) {
3107
+ t |= 0, e |= 0, n || L(t, e, this.length);
3108
+ for (var r = this[t + --e], i = 1; e > 0 && (i *= 256);) r += this[t + --e] * i;
3109
+ return r;
3110
+ }, a.prototype.readUInt8 = function (t, e) {
3111
+ return e || L(t, 1, this.length), this[t];
3112
+ }, a.prototype.readUInt16LE = function (t, e) {
3113
+ return e || L(t, 2, this.length), this[t] | this[t + 1] << 8;
3114
+ }, a.prototype.readUInt16BE = function (t, e) {
3115
+ return e || L(t, 2, this.length), this[t] << 8 | this[t + 1];
3116
+ }, a.prototype.readUInt32LE = function (t, e) {
3117
+ return e || L(t, 4, this.length), (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3];
3118
+ }, a.prototype.readUInt32BE = function (t, e) {
3119
+ return e || L(t, 4, this.length), 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]);
3120
+ }, a.prototype.readIntLE = function (t, e, n) {
3121
+ t |= 0, e |= 0, n || L(t, e, this.length);
3122
+ for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
3123
+ return r >= (i *= 128) && (r -= Math.pow(2, 8 * e)), r;
3124
+ }, a.prototype.readIntBE = function (t, e, n) {
3125
+ t |= 0, e |= 0, n || L(t, e, this.length);
3126
+ for (var r = e, i = 1, o = this[t + --r]; r > 0 && (i *= 256);) o += this[t + --r] * i;
3127
+ return o >= (i *= 128) && (o -= Math.pow(2, 8 * e)), o;
3128
+ }, a.prototype.readInt8 = function (t, e) {
3129
+ return e || L(t, 1, this.length), 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t];
3130
+ }, a.prototype.readInt16LE = function (t, e) {
3131
+ e || L(t, 2, this.length);
3132
+ var n = this[t] | this[t + 1] << 8;
3133
+ return 32768 & n ? 4294901760 | n : n;
3134
+ }, a.prototype.readInt16BE = function (t, e) {
3135
+ e || L(t, 2, this.length);
3136
+ var n = this[t + 1] | this[t] << 8;
3137
+ return 32768 & n ? 4294901760 | n : n;
3138
+ }, a.prototype.readInt32LE = function (t, e) {
3139
+ return e || L(t, 4, this.length), this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24;
3140
+ }, a.prototype.readInt32BE = function (t, e) {
3141
+ return e || L(t, 4, this.length), this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3];
3142
+ }, a.prototype.readFloatLE = function (t, e) {
3143
+ return e || L(t, 4, this.length), i.read(this, t, !0, 23, 4);
3144
+ }, a.prototype.readFloatBE = function (t, e) {
3145
+ return e || L(t, 4, this.length), i.read(this, t, !1, 23, 4);
3146
+ }, a.prototype.readDoubleLE = function (t, e) {
3147
+ return e || L(t, 8, this.length), i.read(this, t, !0, 52, 8);
3148
+ }, a.prototype.readDoubleBE = function (t, e) {
3149
+ return e || L(t, 8, this.length), i.read(this, t, !1, 52, 8);
3150
+ }, a.prototype.writeUIntLE = function (t, e, n, r) {
3151
+ (t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
3152
+ var i = 1,
3153
+ o = 0;
3154
+ for (this[e] = 255 & t; ++o < n && (i *= 256);) this[e + o] = t / i & 255;
3155
+ return e + n;
3156
+ }, a.prototype.writeUIntBE = function (t, e, n, r) {
3157
+ (t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
3158
+ var i = n - 1,
3159
+ o = 1;
3160
+ for (this[e + i] = 255 & t; --i >= 0 && (o *= 256);) this[e + i] = t / o & 255;
3161
+ return e + n;
3162
+ }, a.prototype.writeUInt8 = function (t, e, n) {
3163
+ return t = +t, e |= 0, n || B(this, t, e, 1, 255, 0), a.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), this[e] = 255 & t, e + 1;
3164
+ }, a.prototype.writeUInt16LE = function (t, e, n) {
3165
+ return t = +t, e |= 0, n || B(this, t, e, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8) : C(this, t, e, !0), e + 2;
3166
+ }, a.prototype.writeUInt16BE = function (t, e, n) {
3167
+ return t = +t, e |= 0, n || B(this, t, e, 2, 65535, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 8, this[e + 1] = 255 & t) : C(this, t, e, !1), e + 2;
3168
+ }, a.prototype.writeUInt32LE = function (t, e, n) {
3169
+ return t = +t, e |= 0, n || B(this, t, e, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[e + 3] = t >>> 24, this[e + 2] = t >>> 16, this[e + 1] = t >>> 8, this[e] = 255 & t) : j(this, t, e, !0), e + 4;
3170
+ }, a.prototype.writeUInt32BE = function (t, e, n) {
3171
+ return t = +t, e |= 0, n || B(this, t, e, 4, 4294967295, 0), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t) : j(this, t, e, !1), e + 4;
3172
+ }, a.prototype.writeIntLE = function (t, e, n, r) {
3173
+ if (t = +t, e |= 0, !r) {
3174
+ var i = Math.pow(2, 8 * n - 1);
3175
+ B(this, t, e, n, i - 1, -i);
3176
+ }
3177
+ var o = 0,
3178
+ u = 1,
3179
+ s = 0;
3180
+ for (this[e] = 255 & t; ++o < n && (u *= 256);) t < 0 && 0 === s && 0 !== this[e + o - 1] && (s = 1), this[e + o] = (t / u >> 0) - s & 255;
3181
+ return e + n;
3182
+ }, a.prototype.writeIntBE = function (t, e, n, r) {
3183
+ if (t = +t, e |= 0, !r) {
3184
+ var i = Math.pow(2, 8 * n - 1);
3185
+ B(this, t, e, n, i - 1, -i);
3186
+ }
3187
+ var o = n - 1,
3188
+ u = 1,
3189
+ s = 0;
3190
+ for (this[e + o] = 255 & t; --o >= 0 && (u *= 256);) t < 0 && 0 === s && 0 !== this[e + o + 1] && (s = 1), this[e + o] = (t / u >> 0) - s & 255;
3191
+ return e + n;
3192
+ }, a.prototype.writeInt8 = function (t, e, n) {
3193
+ return t = +t, e |= 0, n || B(this, t, e, 1, 127, -128), a.TYPED_ARRAY_SUPPORT || (t = Math.floor(t)), t < 0 && (t = 255 + t + 1), this[e] = 255 & t, e + 1;
3194
+ }, a.prototype.writeInt16LE = function (t, e, n) {
3195
+ return t = +t, e |= 0, n || B(this, t, e, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8) : C(this, t, e, !0), e + 2;
3196
+ }, a.prototype.writeInt16BE = function (t, e, n) {
3197
+ return t = +t, e |= 0, n || B(this, t, e, 2, 32767, -32768), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 8, this[e + 1] = 255 & t) : C(this, t, e, !1), e + 2;
3198
+ }, a.prototype.writeInt32LE = function (t, e, n) {
3199
+ return t = +t, e |= 0, n || B(this, t, e, 4, 2147483647, -2147483648), a.TYPED_ARRAY_SUPPORT ? (this[e] = 255 & t, this[e + 1] = t >>> 8, this[e + 2] = t >>> 16, this[e + 3] = t >>> 24) : j(this, t, e, !0), e + 4;
3200
+ }, a.prototype.writeInt32BE = function (t, e, n) {
3201
+ return t = +t, e |= 0, n || B(this, t, e, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), a.TYPED_ARRAY_SUPPORT ? (this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t) : j(this, t, e, !1), e + 4;
3202
+ }, a.prototype.writeFloatLE = function (t, e, n) {
3203
+ return U(this, t, e, !0, n);
3204
+ }, a.prototype.writeFloatBE = function (t, e, n) {
3205
+ return U(this, t, e, !1, n);
3206
+ }, a.prototype.writeDoubleLE = function (t, e, n) {
3207
+ return D(this, t, e, !0, n);
3208
+ }, a.prototype.writeDoubleBE = function (t, e, n) {
3209
+ return D(this, t, e, !1, n);
3210
+ }, a.prototype.copy = function (t, e, n, r) {
3211
+ if (n || (n = 0), r || 0 === r || (r = this.length), e >= t.length && (e = t.length), e || (e = 0), r > 0 && r < n && (r = n), r === n) return 0;
3212
+ if (0 === t.length || 0 === this.length) return 0;
3213
+ if (e < 0) throw new RangeError("targetStart out of bounds");
3214
+ if (n < 0 || n >= this.length) throw new RangeError("sourceStart out of bounds");
3215
+ if (r < 0) throw new RangeError("sourceEnd out of bounds");
3216
+ r > this.length && (r = this.length), t.length - e < r - n && (r = t.length - e + n);
3217
+ var i,
3218
+ o = r - n;
3219
+ if (this === t && n < e && e < r) for (i = o - 1; i >= 0; --i) t[i + e] = this[i + n];else if (o < 1e3 || !a.TYPED_ARRAY_SUPPORT) for (i = 0; i < o; ++i) t[i + e] = this[i + n];else Uint8Array.prototype.set.call(t, this.subarray(n, n + o), e);
3220
+ return o;
3221
+ }, a.prototype.fill = function (t, e, n, r) {
3222
+ if ("string" == typeof t) {
3223
+ if ("string" == typeof e ? (r = e, e = 0, n = this.length) : "string" == typeof n && (r = n, n = this.length), 1 === t.length) {
3224
+ var i = t.charCodeAt(0);
3225
+ i < 256 && (t = i);
3226
+ }
3227
+ if (void 0 !== r && "string" != typeof r) throw new TypeError("encoding must be a string");
3228
+ if ("string" == typeof r && !a.isEncoding(r)) throw new TypeError("Unknown encoding: " + r);
3229
+ } else "number" == typeof t && (t &= 255);
3230
+ if (e < 0 || this.length < e || this.length < n) throw new RangeError("Out of range index");
3231
+ if (n <= e) return this;
3232
+ var o;
3233
+ if (e >>>= 0, n = void 0 === n ? this.length : n >>> 0, t || (t = 0), "number" == typeof t) for (o = e; o < n; ++o) this[o] = t;else {
3234
+ var u = a.isBuffer(t) ? t : N(new a(t, r).toString()),
3235
+ s = u.length;
3236
+ for (o = 0; o < n - e; ++o) this[o + e] = u[o % s];
3237
+ }
3238
+ return this;
3239
+ };
3240
+ var I = /[^+\/0-9A-Za-z-_]/g;
3241
+ function Y(t) {
3242
+ return t < 16 ? "0" + t.toString(16) : t.toString(16);
3243
+ }
3244
+ function N(t, e) {
3245
+ var n;
3246
+ e = e || 1 / 0;
3247
+ for (var r = t.length, i = null, o = [], u = 0; u < r; ++u) {
3248
+ if ((n = t.charCodeAt(u)) > 55295 && n < 57344) {
3249
+ if (!i) {
3250
+ if (n > 56319) {
3251
+ (e -= 3) > -1 && o.push(239, 191, 189);
3252
+ continue;
3253
+ }
3254
+ if (u + 1 === r) {
3255
+ (e -= 3) > -1 && o.push(239, 191, 189);
3256
+ continue;
3257
+ }
3258
+ i = n;
3259
+ continue;
3260
+ }
3261
+ if (n < 56320) {
3262
+ (e -= 3) > -1 && o.push(239, 191, 189), i = n;
3263
+ continue;
3264
+ }
3265
+ n = 65536 + (i - 55296 << 10 | n - 56320);
3266
+ } else i && (e -= 3) > -1 && o.push(239, 191, 189);
3267
+ if (i = null, n < 128) {
3268
+ if ((e -= 1) < 0) break;
3269
+ o.push(n);
3270
+ } else if (n < 2048) {
3271
+ if ((e -= 2) < 0) break;
3272
+ o.push(n >> 6 | 192, 63 & n | 128);
3273
+ } else if (n < 65536) {
3274
+ if ((e -= 3) < 0) break;
3275
+ o.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128);
3276
+ } else {
3277
+ if (!(n < 1114112)) throw new Error("Invalid code point");
3278
+ if ((e -= 4) < 0) break;
3279
+ o.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128);
3280
+ }
3281
+ }
3282
+ return o;
3283
+ }
3284
+ function F(t) {
3285
+ return r.toByteArray(function (t) {
3286
+ if ((t = function (t) {
3287
+ return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
3288
+ }(t).replace(I, "")).length < 2) return "";
3289
+ for (; t.length % 4 != 0;) t += "=";
3290
+ return t;
3291
+ }(t));
3292
+ }
3293
+ function z(t, e, n, r) {
3294
+ for (var i = 0; i < r && !(i + n >= e.length || i >= t.length); ++i) e[i + n] = t[i];
3295
+ return i;
3296
+ }
3297
+ }).call(e, n(0));
3298
+ }, function (t, e, n) {
3299
+
3300
+ e.byteLength = function (t) {
3301
+ return 3 * t.length / 4 - c(t);
3302
+ }, e.toByteArray = function (t) {
3303
+ var e,
3304
+ n,
3305
+ r,
3306
+ u,
3307
+ s,
3308
+ a = t.length;
3309
+ u = c(t), s = new o(3 * a / 4 - u), n = u > 0 ? a - 4 : a;
3310
+ var f = 0;
3311
+ for (e = 0; e < n; e += 4) r = i[t.charCodeAt(e)] << 18 | i[t.charCodeAt(e + 1)] << 12 | i[t.charCodeAt(e + 2)] << 6 | i[t.charCodeAt(e + 3)], s[f++] = r >> 16 & 255, s[f++] = r >> 8 & 255, s[f++] = 255 & r;
3312
+ 2 === u ? (r = i[t.charCodeAt(e)] << 2 | i[t.charCodeAt(e + 1)] >> 4, s[f++] = 255 & r) : 1 === u && (r = i[t.charCodeAt(e)] << 10 | i[t.charCodeAt(e + 1)] << 4 | i[t.charCodeAt(e + 2)] >> 2, s[f++] = r >> 8 & 255, s[f++] = 255 & r);
3313
+ return s;
3314
+ }, e.fromByteArray = function (t) {
3315
+ for (var e, n = t.length, i = n % 3, o = "", u = [], s = 0, a = n - i; s < a; s += 16383) u.push(f(t, s, s + 16383 > a ? a : s + 16383));
3316
+ 1 === i ? (e = t[n - 1], o += r[e >> 2], o += r[e << 4 & 63], o += "==") : 2 === i && (e = (t[n - 2] << 8) + t[n - 1], o += r[e >> 10], o += r[e >> 4 & 63], o += r[e << 2 & 63], o += "=");
3317
+ return u.push(o), u.join("");
3318
+ };
3319
+ for (var r = [], i = [], o = "undefined" != typeof Uint8Array ? Uint8Array : Array, u = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0, a = u.length; s < a; ++s) r[s] = u[s], i[u.charCodeAt(s)] = s;
3320
+ function c(t) {
3321
+ var e = t.length;
3322
+ if (e % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
3323
+ return "=" === t[e - 2] ? 2 : "=" === t[e - 1] ? 1 : 0;
3324
+ }
3325
+ function f(t, e, n) {
3326
+ for (var i, o, u = [], s = e; s < n; s += 3) i = (t[s] << 16 & 16711680) + (t[s + 1] << 8 & 65280) + (255 & t[s + 2]), u.push(r[(o = i) >> 18 & 63] + r[o >> 12 & 63] + r[o >> 6 & 63] + r[63 & o]);
3327
+ return u.join("");
3328
+ }
3329
+ i["-".charCodeAt(0)] = 62, i["_".charCodeAt(0)] = 63;
3330
+ }, function (t, e) {
3331
+ e.read = function (t, e, n, r, i) {
3332
+ var o,
3333
+ u,
3334
+ s = 8 * i - r - 1,
3335
+ a = (1 << s) - 1,
3336
+ c = a >> 1,
3337
+ f = -7,
3338
+ l = n ? i - 1 : 0,
3339
+ h = n ? -1 : 1,
3340
+ p = t[e + l];
3341
+ for (l += h, o = p & (1 << -f) - 1, p >>= -f, f += s; f > 0; o = 256 * o + t[e + l], l += h, f -= 8);
3342
+ for (u = o & (1 << -f) - 1, o >>= -f, f += r; f > 0; u = 256 * u + t[e + l], l += h, f -= 8);
3343
+ if (0 === o) o = 1 - c;else {
3344
+ if (o === a) return u ? NaN : 1 / 0 * (p ? -1 : 1);
3345
+ u += Math.pow(2, r), o -= c;
3346
+ }
3347
+ return (p ? -1 : 1) * u * Math.pow(2, o - r);
3348
+ }, e.write = function (t, e, n, r, i, o) {
3349
+ var u,
3350
+ s,
3351
+ a,
3352
+ c = 8 * o - i - 1,
3353
+ f = (1 << c) - 1,
3354
+ l = f >> 1,
3355
+ h = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
3356
+ p = r ? 0 : o - 1,
3357
+ d = r ? 1 : -1,
3358
+ g = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0;
3359
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (s = isNaN(e) ? 1 : 0, u = f) : (u = Math.floor(Math.log(e) / Math.LN2), e * (a = Math.pow(2, -u)) < 1 && (u--, a *= 2), (e += u + l >= 1 ? h / a : h * Math.pow(2, 1 - l)) * a >= 2 && (u++, a /= 2), u + l >= f ? (s = 0, u = f) : u + l >= 1 ? (s = (e * a - 1) * Math.pow(2, i), u += l) : (s = e * Math.pow(2, l - 1) * Math.pow(2, i), u = 0)); i >= 8; t[n + p] = 255 & s, p += d, s /= 256, i -= 8);
3360
+ for (u = u << i | s, c += i; c > 0; t[n + p] = 255 & u, p += d, u /= 256, c -= 8);
3361
+ t[n + p - d] |= 128 * g;
3362
+ };
3363
+ }, function (t, e) {
3364
+ var n = {}.toString;
3365
+ t.exports = Array.isArray || function (t) {
3366
+ return "[object Array]" == n.call(t);
3367
+ };
3368
+ }, function (t, e, n) {
3369
+
3370
+ (function (e) {
3371
+ function r(t, e) {
3372
+ if (t === e) return 0;
3373
+ for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
3374
+ n = t[i], r = e[i];
3375
+ break;
3376
+ }
3377
+ return n < r ? -1 : r < n ? 1 : 0;
3378
+ }
3379
+ function i(t) {
3380
+ return e.Buffer && "function" == typeof e.Buffer.isBuffer ? e.Buffer.isBuffer(t) : !(null == t || !t._isBuffer);
3381
+ }
3382
+ var o = n(27),
3383
+ u = Object.prototype.hasOwnProperty,
3384
+ s = Array.prototype.slice,
3385
+ a = "foo" === function () {}.name;
3386
+ function c(t) {
3387
+ return Object.prototype.toString.call(t);
3388
+ }
3389
+ function f(t) {
3390
+ return !i(t) && "function" == typeof e.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(t) : !!t && (t instanceof DataView || !!(t.buffer && t.buffer instanceof ArrayBuffer)));
3391
+ }
3392
+ var l = t.exports = v,
3393
+ h = /\s*function\s+([^\(\s]*)\s*/;
3394
+ function p(t) {
3395
+ if (o.isFunction(t)) {
3396
+ if (a) return t.name;
3397
+ var e = t.toString().match(h);
3398
+ return e && e[1];
3399
+ }
3400
+ }
3401
+ function d(t, e) {
3402
+ return "string" == typeof t ? t.length < e ? t : t.slice(0, e) : t;
3403
+ }
3404
+ function g(t) {
3405
+ if (a || !o.isFunction(t)) return o.inspect(t);
3406
+ var e = p(t);
3407
+ return "[Function" + (e ? ": " + e : "") + "]";
3408
+ }
3409
+ function y(t, e, n, r, i) {
3410
+ throw new l.AssertionError({
3411
+ message: n,
3412
+ actual: t,
3413
+ expected: e,
3414
+ operator: r,
3415
+ stackStartFunction: i
3416
+ });
3417
+ }
3418
+ function v(t, e) {
3419
+ t || y(t, !0, e, "==", l.ok);
3420
+ }
3421
+ function m(t, e, n, u) {
3422
+ if (t === e) return !0;
3423
+ if (i(t) && i(e)) return 0 === r(t, e);
3424
+ if (o.isDate(t) && o.isDate(e)) return t.getTime() === e.getTime();
3425
+ if (o.isRegExp(t) && o.isRegExp(e)) return t.source === e.source && t.global === e.global && t.multiline === e.multiline && t.lastIndex === e.lastIndex && t.ignoreCase === e.ignoreCase;
3426
+ if (null !== t && "object" == typeof t || null !== e && "object" == typeof e) {
3427
+ if (f(t) && f(e) && c(t) === c(e) && !(t instanceof Float32Array || t instanceof Float64Array)) return 0 === r(new Uint8Array(t.buffer), new Uint8Array(e.buffer));
3428
+ if (i(t) !== i(e)) return !1;
3429
+ var a = (u = u || {
3430
+ actual: [],
3431
+ expected: []
3432
+ }).actual.indexOf(t);
3433
+ return -1 !== a && a === u.expected.indexOf(e) || (u.actual.push(t), u.expected.push(e), function (t, e, n, r) {
3434
+ if (null === t || void 0 === t || null === e || void 0 === e) return !1;
3435
+ if (o.isPrimitive(t) || o.isPrimitive(e)) return t === e;
3436
+ if (n && Object.getPrototypeOf(t) !== Object.getPrototypeOf(e)) return !1;
3437
+ var i = b(t),
3438
+ u = b(e);
3439
+ if (i && !u || !i && u) return !1;
3440
+ if (i) return t = s.call(t), e = s.call(e), m(t, e, n);
3441
+ var a,
3442
+ c,
3443
+ f = O(t),
3444
+ l = O(e);
3445
+ if (f.length !== l.length) return !1;
3446
+ for (f.sort(), l.sort(), c = f.length - 1; c >= 0; c--) if (f[c] !== l[c]) return !1;
3447
+ for (c = f.length - 1; c >= 0; c--) if (a = f[c], !m(t[a], e[a], n, r)) return !1;
3448
+ return !0;
3449
+ }(t, e, n, u));
3450
+ }
3451
+ return n ? t === e : t == e;
3452
+ }
3453
+ function b(t) {
3454
+ return "[object Arguments]" == Object.prototype.toString.call(t);
3455
+ }
3456
+ function w(t, e) {
3457
+ if (!t || !e) return !1;
3458
+ if ("[object RegExp]" == Object.prototype.toString.call(e)) return e.test(t);
3459
+ try {
3460
+ if (t instanceof e) return !0;
3461
+ } catch (t) {}
3462
+ return !Error.isPrototypeOf(e) && !0 === e.call({}, t);
3463
+ }
3464
+ function E(t, e, n, r) {
3465
+ var i;
3466
+ if ("function" != typeof e) throw new TypeError('"block" argument must be a function');
3467
+ "string" == typeof n && (r = n, n = null), i = function (t) {
3468
+ var e;
3469
+ try {
3470
+ t();
3471
+ } catch (t) {
3472
+ e = t;
3473
+ }
3474
+ return e;
3475
+ }(e), r = (n && n.name ? " (" + n.name + ")." : ".") + (r ? " " + r : "."), t && !i && y(i, n, "Missing expected exception" + r);
3476
+ var u = "string" == typeof r,
3477
+ s = !t && o.isError(i),
3478
+ a = !t && i && !n;
3479
+ if ((s && u && w(i, n) || a) && y(i, n, "Got unwanted exception" + r), t && i && n && !w(i, n) || !t && i) throw i;
3480
+ }
3481
+ l.AssertionError = function (t) {
3482
+ var e;
3483
+ this.name = "AssertionError", this.actual = t.actual, this.expected = t.expected, this.operator = t.operator, t.message ? (this.message = t.message, this.generatedMessage = !1) : (this.message = d(g((e = this).actual), 128) + " " + e.operator + " " + d(g(e.expected), 128), this.generatedMessage = !0);
3484
+ var n = t.stackStartFunction || y;
3485
+ if (Error.captureStackTrace) Error.captureStackTrace(this, n);else {
3486
+ var r = new Error();
3487
+ if (r.stack) {
3488
+ var i = r.stack,
3489
+ o = p(n),
3490
+ u = i.indexOf("\n" + o);
3491
+ if (u >= 0) {
3492
+ var s = i.indexOf("\n", u + 1);
3493
+ i = i.substring(s + 1);
3494
+ }
3495
+ this.stack = i;
3496
+ }
3497
+ }
3498
+ }, o.inherits(l.AssertionError, Error), l.fail = y, l.ok = v, l.equal = function (t, e, n) {
3499
+ t != e && y(t, e, n, "==", l.equal);
3500
+ }, l.notEqual = function (t, e, n) {
3501
+ t == e && y(t, e, n, "!=", l.notEqual);
3502
+ }, l.deepEqual = function (t, e, n) {
3503
+ m(t, e, !1) || y(t, e, n, "deepEqual", l.deepEqual);
3504
+ }, l.deepStrictEqual = function (t, e, n) {
3505
+ m(t, e, !0) || y(t, e, n, "deepStrictEqual", l.deepStrictEqual);
3506
+ }, l.notDeepEqual = function (t, e, n) {
3507
+ m(t, e, !1) && y(t, e, n, "notDeepEqual", l.notDeepEqual);
3508
+ }, l.notDeepStrictEqual = function t(e, n, r) {
3509
+ m(e, n, !0) && y(e, n, r, "notDeepStrictEqual", t);
3510
+ }, l.strictEqual = function (t, e, n) {
3511
+ t !== e && y(t, e, n, "===", l.strictEqual);
3512
+ }, l.notStrictEqual = function (t, e, n) {
3513
+ t === e && y(t, e, n, "!==", l.notStrictEqual);
3514
+ }, l.throws = function (t, e, n) {
3515
+ E(!0, t, e, n);
3516
+ }, l.doesNotThrow = function (t, e, n) {
3517
+ E(!1, t, e, n);
3518
+ }, l.ifError = function (t) {
3519
+ if (t) throw t;
3520
+ };
3521
+ var O = Object.keys || function (t) {
3522
+ var e = [];
3523
+ for (var n in t) u.call(t, n) && e.push(n);
3524
+ return e;
3525
+ };
3526
+ }).call(e, n(0));
3527
+ }, function (t, e, n) {
3528
+ (function (t, r) {
3529
+ var i = /%[sdj%]/g;
3530
+ e.format = function (t) {
3531
+ if (!v(t)) {
3532
+ for (var e = [], n = 0; n < arguments.length; n++) e.push(s(arguments[n]));
3533
+ return e.join(" ");
3534
+ }
3535
+ n = 1;
3536
+ for (var r = arguments, o = r.length, u = String(t).replace(i, function (t) {
3537
+ if ("%%" === t) return "%";
3538
+ if (n >= o) return t;
3539
+ switch (t) {
3540
+ case "%s":
3541
+ return String(r[n++]);
3542
+ case "%d":
3543
+ return Number(r[n++]);
3544
+ case "%j":
3545
+ try {
3546
+ return JSON.stringify(r[n++]);
3547
+ } catch (t) {
3548
+ return "[Circular]";
3549
+ }
3550
+ default:
3551
+ return t;
3552
+ }
3553
+ }), a = r[n]; n < o; a = r[++n]) g(a) || !w(a) ? u += " " + a : u += " " + s(a);
3554
+ return u;
3555
+ }, e.deprecate = function (n, i) {
3556
+ if (m(t.process)) return function () {
3557
+ return e.deprecate(n, i).apply(this, arguments);
3558
+ };
3559
+ if (!0 === r.noDeprecation) return n;
3560
+ var o = !1;
3561
+ return function () {
3562
+ if (!o) {
3563
+ if (r.throwDeprecation) throw new Error(i);
3564
+ r.traceDeprecation ? console.trace(i) : console.error(i), o = !0;
3565
+ }
3566
+ return n.apply(this, arguments);
3567
+ };
3568
+ };
3569
+ var o,
3570
+ u = {};
3571
+ function s(t, n) {
3572
+ var r = {
3573
+ seen: [],
3574
+ stylize: c
3575
+ };
3576
+ return arguments.length >= 3 && (r.depth = arguments[2]), arguments.length >= 4 && (r.colors = arguments[3]), d(n) ? r.showHidden = n : n && e._extend(r, n), m(r.showHidden) && (r.showHidden = !1), m(r.depth) && (r.depth = 2), m(r.colors) && (r.colors = !1), m(r.customInspect) && (r.customInspect = !0), r.colors && (r.stylize = a), f(r, t, r.depth);
3577
+ }
3578
+ function a(t, e) {
3579
+ var n = s.styles[e];
3580
+ return n ? "[" + s.colors[n][0] + "m" + t + "[" + s.colors[n][1] + "m" : t;
3581
+ }
3582
+ function c(t, e) {
3583
+ return t;
3584
+ }
3585
+ function f(t, n, r) {
3586
+ if (t.customInspect && n && A(n.inspect) && n.inspect !== e.inspect && (!n.constructor || n.constructor.prototype !== n)) {
3587
+ var i = n.inspect(r, t);
3588
+ return v(i) || (i = f(t, i, r)), i;
3589
+ }
3590
+ var o = function (t, e) {
3591
+ if (m(e)) return t.stylize("undefined", "undefined");
3592
+ if (v(e)) {
3593
+ var n = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3594
+ return t.stylize(n, "string");
3595
+ }
3596
+ if (y(e)) return t.stylize("" + e, "number");
3597
+ if (d(e)) return t.stylize("" + e, "boolean");
3598
+ if (g(e)) return t.stylize("null", "null");
3599
+ }(t, n);
3600
+ if (o) return o;
3601
+ var u = Object.keys(n),
3602
+ s = function (t) {
3603
+ var e = {};
3604
+ return t.forEach(function (t, n) {
3605
+ e[t] = !0;
3606
+ }), e;
3607
+ }(u);
3608
+ if (t.showHidden && (u = Object.getOwnPropertyNames(n)), O(n) && (u.indexOf("message") >= 0 || u.indexOf("description") >= 0)) return l(n);
3609
+ if (0 === u.length) {
3610
+ if (A(n)) {
3611
+ var a = n.name ? ": " + n.name : "";
3612
+ return t.stylize("[Function" + a + "]", "special");
3613
+ }
3614
+ if (b(n)) return t.stylize(RegExp.prototype.toString.call(n), "regexp");
3615
+ if (E(n)) return t.stylize(Date.prototype.toString.call(n), "date");
3616
+ if (O(n)) return l(n);
3617
+ }
3618
+ var c,
3619
+ w = "",
3620
+ x = !1,
3621
+ T = ["{", "}"];
3622
+ (p(n) && (x = !0, T = ["[", "]"]), A(n)) && (w = " [Function" + (n.name ? ": " + n.name : "") + "]");
3623
+ return b(n) && (w = " " + RegExp.prototype.toString.call(n)), E(n) && (w = " " + Date.prototype.toUTCString.call(n)), O(n) && (w = " " + l(n)), 0 !== u.length || x && 0 != n.length ? r < 0 ? b(n) ? t.stylize(RegExp.prototype.toString.call(n), "regexp") : t.stylize("[Object]", "special") : (t.seen.push(n), c = x ? function (t, e, n, r, i) {
3624
+ for (var o = [], u = 0, s = e.length; u < s; ++u) S(e, String(u)) ? o.push(h(t, e, n, r, String(u), !0)) : o.push("");
3625
+ return i.forEach(function (i) {
3626
+ i.match(/^\d+$/) || o.push(h(t, e, n, r, i, !0));
3627
+ }), o;
3628
+ }(t, n, r, s, u) : u.map(function (e) {
3629
+ return h(t, n, r, s, e, x);
3630
+ }), t.seen.pop(), function (t, e, n) {
3631
+ if (t.reduce(function (t, e) {
3632
+ return e.indexOf("\n") >= 0 && 0, t + e.replace(/\u001b\[\d\d?m/g, "").length + 1;
3633
+ }, 0) > 60) return n[0] + ("" === e ? "" : e + "\n ") + " " + t.join(",\n ") + " " + n[1];
3634
+ return n[0] + e + " " + t.join(", ") + " " + n[1];
3635
+ }(c, w, T)) : T[0] + w + T[1];
3636
+ }
3637
+ function l(t) {
3638
+ return "[" + Error.prototype.toString.call(t) + "]";
3639
+ }
3640
+ function h(t, e, n, r, i, o) {
3641
+ var u, s, a;
3642
+ if ((a = Object.getOwnPropertyDescriptor(e, i) || {
3643
+ value: e[i]
3644
+ }).get ? s = a.set ? t.stylize("[Getter/Setter]", "special") : t.stylize("[Getter]", "special") : a.set && (s = t.stylize("[Setter]", "special")), S(r, i) || (u = "[" + i + "]"), s || (t.seen.indexOf(a.value) < 0 ? (s = g(n) ? f(t, a.value, null) : f(t, a.value, n - 1)).indexOf("\n") > -1 && (s = o ? s.split("\n").map(function (t) {
3645
+ return " " + t;
3646
+ }).join("\n").substr(2) : "\n" + s.split("\n").map(function (t) {
3647
+ return " " + t;
3648
+ }).join("\n")) : s = t.stylize("[Circular]", "special")), m(u)) {
3649
+ if (o && i.match(/^\d+$/)) return s;
3650
+ (u = JSON.stringify("" + i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (u = u.substr(1, u.length - 2), u = t.stylize(u, "name")) : (u = u.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), u = t.stylize(u, "string"));
3651
+ }
3652
+ return u + ": " + s;
3653
+ }
3654
+ function p(t) {
3655
+ return Array.isArray(t);
3656
+ }
3657
+ function d(t) {
3658
+ return "boolean" == typeof t;
3659
+ }
3660
+ function g(t) {
3661
+ return null === t;
3662
+ }
3663
+ function y(t) {
3664
+ return "number" == typeof t;
3665
+ }
3666
+ function v(t) {
3667
+ return "string" == typeof t;
3668
+ }
3669
+ function m(t) {
3670
+ return void 0 === t;
3671
+ }
3672
+ function b(t) {
3673
+ return w(t) && "[object RegExp]" === x(t);
3674
+ }
3675
+ function w(t) {
3676
+ return "object" == typeof t && null !== t;
3677
+ }
3678
+ function E(t) {
3679
+ return w(t) && "[object Date]" === x(t);
3680
+ }
3681
+ function O(t) {
3682
+ return w(t) && ("[object Error]" === x(t) || t instanceof Error);
3683
+ }
3684
+ function A(t) {
3685
+ return "function" == typeof t;
3686
+ }
3687
+ function x(t) {
3688
+ return Object.prototype.toString.call(t);
3689
+ }
3690
+ function T(t) {
3691
+ return t < 10 ? "0" + t.toString(10) : t.toString(10);
3692
+ }
3693
+ e.debuglog = function (t) {
3694
+ if (m(o) && (o = Object({
3695
+ NODE_ENV: "production"
3696
+ }).NODE_DEBUG || ""), t = t.toUpperCase(), !u[t]) if (new RegExp("\\b" + t + "\\b", "i").test(o)) {
3697
+ var n = r.pid;
3698
+ u[t] = function () {
3699
+ var r = e.format.apply(e, arguments);
3700
+ console.error("%s %d: %s", t, n, r);
3701
+ };
3702
+ } else u[t] = function () {};
3703
+ return u[t];
3704
+ }, e.inspect = s, s.colors = {
3705
+ bold: [1, 22],
3706
+ italic: [3, 23],
3707
+ underline: [4, 24],
3708
+ inverse: [7, 27],
3709
+ white: [37, 39],
3710
+ grey: [90, 39],
3711
+ black: [30, 39],
3712
+ blue: [34, 39],
3713
+ cyan: [36, 39],
3714
+ green: [32, 39],
3715
+ magenta: [35, 39],
3716
+ red: [31, 39],
3717
+ yellow: [33, 39]
3718
+ }, s.styles = {
3719
+ special: "cyan",
3720
+ number: "yellow",
3721
+ boolean: "yellow",
3722
+ undefined: "grey",
3723
+ null: "bold",
3724
+ string: "green",
3725
+ date: "magenta",
3726
+ regexp: "red"
3727
+ }, e.isArray = p, e.isBoolean = d, e.isNull = g, e.isNullOrUndefined = function (t) {
3728
+ return null == t;
3729
+ }, e.isNumber = y, e.isString = v, e.isSymbol = function (t) {
3730
+ return "symbol" == typeof t;
3731
+ }, e.isUndefined = m, e.isRegExp = b, e.isObject = w, e.isDate = E, e.isError = O, e.isFunction = A, e.isPrimitive = function (t) {
3732
+ return null === t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || "symbol" == typeof t || void 0 === t;
3733
+ }, e.isBuffer = n(29);
3734
+ var _ = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
3735
+ function S(t, e) {
3736
+ return Object.prototype.hasOwnProperty.call(t, e);
3737
+ }
3738
+ e.log = function () {
3739
+ var t, n;
3740
+ console.log("%s - %s", (t = new Date(), n = [T(t.getHours()), T(t.getMinutes()), T(t.getSeconds())].join(":"), [t.getDate(), _[t.getMonth()], n].join(" ")), e.format.apply(e, arguments));
3741
+ }, e.inherits = n(30), e._extend = function (t, e) {
3742
+ if (!e || !w(e)) return t;
3743
+ for (var n = Object.keys(e), r = n.length; r--;) t[n[r]] = e[n[r]];
3744
+ return t;
3745
+ };
3746
+ }).call(e, n(0), n(28));
3747
+ }, function (t, e) {
3748
+ var n,
3749
+ r,
3750
+ i = t.exports = {};
3751
+ function o() {
3752
+ throw new Error("setTimeout has not been defined");
3753
+ }
3754
+ function u() {
3755
+ throw new Error("clearTimeout has not been defined");
3756
+ }
3757
+ function s(t) {
3758
+ if (n === setTimeout) return setTimeout(t, 0);
3759
+ if ((n === o || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0);
3760
+ try {
3761
+ return n(t, 0);
3762
+ } catch (e) {
3763
+ try {
3764
+ return n.call(null, t, 0);
3765
+ } catch (e) {
3766
+ return n.call(this, t, 0);
3767
+ }
3768
+ }
3769
+ }
3770
+ !function () {
3771
+ try {
3772
+ n = "function" == typeof setTimeout ? setTimeout : o;
3773
+ } catch (t) {
3774
+ n = o;
3775
+ }
3776
+ try {
3777
+ r = "function" == typeof clearTimeout ? clearTimeout : u;
3778
+ } catch (t) {
3779
+ r = u;
3780
+ }
3781
+ }();
3782
+ var a,
3783
+ c = [],
3784
+ f = !1,
3785
+ l = -1;
3786
+ function h() {
3787
+ f && a && (f = !1, a.length ? c = a.concat(c) : l = -1, c.length && p());
3788
+ }
3789
+ function p() {
3790
+ if (!f) {
3791
+ var t = s(h);
3792
+ f = !0;
3793
+ for (var e = c.length; e;) {
3794
+ for (a = c, c = []; ++l < e;) a && a[l].run();
3795
+ l = -1, e = c.length;
3796
+ }
3797
+ a = null, f = !1, function (t) {
3798
+ if (r === clearTimeout) return clearTimeout(t);
3799
+ if ((r === u || !r) && clearTimeout) return r = clearTimeout, clearTimeout(t);
3800
+ try {
3801
+ r(t);
3802
+ } catch (e) {
3803
+ try {
3804
+ return r.call(null, t);
3805
+ } catch (e) {
3806
+ return r.call(this, t);
3807
+ }
3808
+ }
3809
+ }(t);
3810
+ }
3811
+ }
3812
+ function d(t, e) {
3813
+ this.fun = t, this.array = e;
3814
+ }
3815
+ function g() {}
3816
+ i.nextTick = function (t) {
3817
+ var e = new Array(arguments.length - 1);
3818
+ if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
3819
+ c.push(new d(t, e)), 1 !== c.length || f || s(p);
3820
+ }, d.prototype.run = function () {
3821
+ this.fun.apply(null, this.array);
3822
+ }, i.title = "browser", i.browser = !0, i.env = {}, i.argv = [], i.version = "", i.versions = {}, i.on = g, i.addListener = g, i.once = g, i.off = g, i.removeListener = g, i.removeAllListeners = g, i.emit = g, i.prependListener = g, i.prependOnceListener = g, i.listeners = function (t) {
3823
+ return [];
3824
+ }, i.binding = function (t) {
3825
+ throw new Error("process.binding is not supported");
3826
+ }, i.cwd = function () {
3827
+ return "/";
3828
+ }, i.chdir = function (t) {
3829
+ throw new Error("process.chdir is not supported");
3830
+ }, i.umask = function () {
3831
+ return 0;
3832
+ };
3833
+ }, function (t, e) {
3834
+ t.exports = function (t) {
3835
+ return t && "object" == typeof t && "function" == typeof t.copy && "function" == typeof t.fill && "function" == typeof t.readUInt8;
3836
+ };
3837
+ }, function (t, e) {
3838
+ "function" == typeof Object.create ? t.exports = function (t, e) {
3839
+ t.super_ = e, t.prototype = Object.create(e.prototype, {
3840
+ constructor: {
3841
+ value: t,
3842
+ enumerable: !1,
3843
+ writable: !0,
3844
+ configurable: !0
3845
+ }
3846
+ });
3847
+ } : t.exports = function (t, e) {
3848
+ t.super_ = e;
3849
+ var n = function () {};
3850
+ n.prototype = e.prototype, t.prototype = new n(), t.prototype.constructor = t;
3851
+ };
3852
+ }, function (t, e, n) {
3853
+
3854
+ t.exports = function (t, e, n) {
3855
+ var r = e.value,
3856
+ i = t.innerText,
3857
+ o = i.toLowerCase().indexOf(r.toLowerCase()),
3858
+ u = r.length;
3859
+ return r && o >= 0 ? i.substring(0, o) + '<span class="' + n + '">' + i.substr(o, u) + "</span>" + i.substring(o + u) : i;
3860
+ };
3861
+ }, function (t, e, n) {
3862
+
3863
+ var r,
3864
+ i = n(33),
3865
+ o = (r = i) && r.__esModule ? r : {
3866
+ default: r
3867
+ };
3868
+ var u = {
3869
+ input: ".combobox",
3870
+ list: ".listbox",
3871
+ options: ".option",
3872
+ groups: null,
3873
+ openClass: "open",
3874
+ activeClass: "active",
3875
+ selectedClass: "selected",
3876
+ useLiveRegion: !0,
3877
+ allowEmpty: !0,
3878
+ multiselect: !1,
3879
+ noResultsText: null,
3880
+ selectionValue: function (t) {
3881
+ return t.map(function (t) {
3882
+ return t.innerText.trim();
3883
+ }).join(" - ");
3884
+ },
3885
+ optionValue: function (t) {
3886
+ return t.innerHTML;
3887
+ },
3888
+ announcement: {
3889
+ count: function (t) {
3890
+ return t + " options available";
3891
+ },
3892
+ selected: "Selected."
3893
+ },
3894
+ filter: "contains",
3895
+ autoFilter: !0
3896
+ };
3897
+ t.exports = function (t) {
3898
+ var e = {},
3899
+ n = {};
3900
+ return t.announcement = t.announcement || {}, (0, o.default)(n, u.announcement, t.announcement), (0, o.default)(e, u, t), e.announcement = n, e;
3901
+ };
3902
+ }, function (t, e, n) {
3903
+
3904
+ var r = n(34);
3905
+ function i(t, e) {
3906
+ for (var n in e) o(e, n) && (t[n] = e[n]);
3907
+ }
3908
+ function o(t, e) {
3909
+ return Object.prototype.hasOwnProperty.call(t, e);
3910
+ }
3911
+ t.exports = function (t) {
3912
+ r(t) || (t = {});
3913
+ for (var e = arguments.length, n = 1; n < e; n++) {
3914
+ var o = arguments[n];
3915
+ r(o) && i(t, o);
3916
+ }
3917
+ return t;
3918
+ };
3919
+ }, function (t, e, n) {
3920
+
3921
+ t.exports = function (t) {
3922
+ return void 0 !== t && null !== t && ("object" == typeof t || "function" == typeof t);
3923
+ };
3924
+ }, function (t, e, n) {
3925
+
3926
+ t.exports = function (t, e, n, r, i) {
3927
+ var o = "true" === t.getAttribute("aria-selected"),
3928
+ u = e.announcement.selected,
3929
+ s = t.innerText;
3930
+ s = r && e.announcement && e.announcement.groupChange ? e.announcement.groupChange(i) + " " + s : s, n(s = o && u ? s + " " + u : s, 500);
3931
+ };
3932
+ }]);
3933
+ });
3934
+ }(dist));
3935
+
3936
+ var Combobo = /*@__PURE__*/getDefaultExportFromCjs(dist.exports);
1730
3937
 
1731
3938
  const countries = [{
1732
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1e8.svg",
1733
- "country": "Ascension Island",
1734
- "code": "ac"
1735
- }, {
1736
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1e9.svg",
1737
- "country": "Andorra",
1738
- "code": "ad"
1739
- }, {
1740
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1ea.svg",
1741
- "country": "United Arab Emirates",
1742
- "code": "ae"
1743
- }, {
1744
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1eb.svg",
1745
- "country": "Afghanistan",
1746
- "code": "af"
1747
- }, {
1748
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1ec.svg",
1749
- "country": "Antigua & Barbuda",
1750
- "code": "ag"
1751
- }, {
1752
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1ee.svg",
1753
- "country": "Anguilla",
1754
- "code": "ai"
1755
- }, {
1756
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1f1.svg",
1757
- "country": "Albania",
1758
- "code": "al"
1759
- }, {
1760
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1f2.svg",
1761
- "country": "Armenia",
1762
- "code": "am"
1763
- }, {
1764
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1f4.svg",
1765
- "country": "Angola",
1766
- "code": "ad"
1767
- }, {
1768
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1f6.svg",
1769
- "country": "Antarctica",
1770
- "code": "aq"
1771
- }, {
1772
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1f7.svg",
1773
- "country": "Argentina",
1774
- "code": "ar"
3939
+ "name": "Afghanistan",
3940
+ "code": "AF",
3941
+ "flag": "🇦🇫"
1775
3942
  }, {
1776
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1f8.svg",
1777
- "country": "American Samoa",
1778
- "code": "as"
3943
+ "name": "Egypt",
3944
+ "code": "EG",
3945
+ "flag": "🇪🇬"
1779
3946
  }, {
1780
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1f9.svg",
1781
- "country": "Austria",
1782
- "code": "at"
3947
+ "name": "Åland Islands",
3948
+ "code": "AX",
3949
+ "flag": "🇦🇽"
1783
3950
  }, {
1784
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1fa.svg",
1785
- "country": "Australia",
1786
- "code": "au"
3951
+ "name": "Albania",
3952
+ "code": "AL",
3953
+ "flag": "🇦🇱"
1787
3954
  }, {
1788
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1fc.svg",
1789
- "country": "Aruba",
1790
- "code": "aw"
3955
+ "name": "Algeria",
3956
+ "code": "DZ",
3957
+ "flag": "🇩🇿"
1791
3958
  }, {
1792
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1fd.svg",
1793
- "country": "Åland Islands",
1794
- "code": "ax"
3959
+ "name": "American Samoa",
3960
+ "code": "AS",
3961
+ "flag": "🇦🇸"
1795
3962
  }, {
1796
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e6-1f1ff.svg",
1797
- "country": "Azerbaijan",
1798
- "code": "az"
3963
+ "name": "Andorra",
3964
+ "code": "AD",
3965
+ "flag": "🇦🇩"
1799
3966
  }, {
1800
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1e6.svg",
1801
- "country": "Bosnia & Herzegovina",
1802
- "code": "ba"
3967
+ "name": "Angola",
3968
+ "code": "AO",
3969
+ "flag": "🇦🇴"
1803
3970
  }, {
1804
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1e7.svg",
1805
- "country": "Barbados",
1806
- "code": "bb"
3971
+ "name": "Anguilla",
3972
+ "code": "AI",
3973
+ "flag": "🇦🇮"
1807
3974
  }, {
1808
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1e9.svg",
1809
- "country": "Bangladesh",
1810
- "code": "bd"
3975
+ "name": "Antarctica",
3976
+ "code": "AQ",
3977
+ "flag": "🇦🇶"
1811
3978
  }, {
1812
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1ea.svg",
1813
- "country": "Belgium",
1814
- "code": "be"
3979
+ "name": "Antigua and Barbuda",
3980
+ "code": "AG",
3981
+ "flag": "🇦🇬"
1815
3982
  }, {
1816
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1eb.svg",
1817
- "country": "Burkina Faso",
1818
- "code": "bf"
3983
+ "name": "Equatorial Guinea",
3984
+ "code": "GQ",
3985
+ "flag": "🇬🇶"
1819
3986
  }, {
1820
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1ec.svg",
1821
- "country": "Bulgaria",
1822
- "code": "bg"
3987
+ "name": "Argentina",
3988
+ "code": "AR",
3989
+ "flag": "🇦🇷"
1823
3990
  }, {
1824
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1ed.svg",
1825
- "country": "Bahrain",
1826
- "code": "bh"
3991
+ "name": "Armenia",
3992
+ "code": "AM",
3993
+ "flag": "🇦🇲"
1827
3994
  }, {
1828
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1ee.svg",
1829
- "country": "Burundi",
1830
- "code": "bi"
3995
+ "name": "Aruba",
3996
+ "code": "AW",
3997
+ "flag": "🇦🇼"
1831
3998
  }, {
1832
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1ef.svg",
1833
- "country": "Benin",
1834
- "code": "bj"
3999
+ "name": "Azerbaijan",
4000
+ "code": "AZ",
4001
+ "flag": "🇦🇿"
1835
4002
  }, {
1836
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1f1.svg",
1837
- "country": "St. Barthélemy",
1838
- "code": "bl"
4003
+ "name": "Ethiopia",
4004
+ "code": "ET",
4005
+ "flag": "🇪🇹"
1839
4006
  }, {
1840
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1f2.svg",
1841
- "country": "Bermuda",
1842
- "code": "bm"
4007
+ "name": "Australia",
4008
+ "code": "AU",
4009
+ "flag": "🇦🇺"
1843
4010
  }, {
1844
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1f3.svg",
1845
- "country": "Brunei",
1846
- "code": "bn"
4011
+ "name": "Bahamas",
4012
+ "code": "BS",
4013
+ "flag": "🇧🇸"
1847
4014
  }, {
1848
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1f4.svg",
1849
- "country": "Bolivia",
1850
- "code": "bo"
4015
+ "name": "Bahrain",
4016
+ "code": "BH",
4017
+ "flag": "🇧🇭"
1851
4018
  }, {
1852
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1f6.svg",
1853
- "country": "Caribbean Netherlands"
4019
+ "name": "Bangladesh",
4020
+ "code": "BD",
4021
+ "flag": "🇧🇩"
1854
4022
  }, {
1855
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1f7.svg",
1856
- "country": "Brazil",
1857
- "code": "br"
4023
+ "name": "Barbados",
4024
+ "code": "BB",
4025
+ "flag": "🇧🇧"
1858
4026
  }, {
1859
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1f8.svg",
1860
- "country": "Bahamas",
1861
- "code": "bs"
4027
+ "name": "Belarus",
4028
+ "code": "BY",
4029
+ "flag": "🇧🇾"
1862
4030
  }, {
1863
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1f9.svg",
1864
- "country": "Bhutan",
1865
- "code": "bt"
4031
+ "name": "Belgium",
4032
+ "code": "BE",
4033
+ "flag": "🇧🇪"
1866
4034
  }, {
1867
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1fb.svg",
1868
- "country": "Bouvet Island",
1869
- "code": "bv"
4035
+ "name": "Belize",
4036
+ "code": "BZ",
4037
+ "flag": "🇧🇿"
1870
4038
  }, {
1871
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1fc.svg",
1872
- "country": "Botswana",
1873
- "code": "bw"
4039
+ "name": "Benin",
4040
+ "code": "BJ",
4041
+ "flag": "🇧🇯"
1874
4042
  }, {
1875
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1fe.svg",
1876
- "country": "Belarus",
1877
- "code": "by"
4043
+ "name": "Bermuda",
4044
+ "code": "BM",
4045
+ "flag": "🇧🇲"
1878
4046
  }, {
1879
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e7-1f1ff.svg",
1880
- "country": "Belize",
1881
- "code": "bz"
4047
+ "name": "Bhutan",
4048
+ "code": "BT",
4049
+ "flag": "🇧🇹"
1882
4050
  }, {
1883
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1e6.svg",
1884
- "country": "Canada",
1885
- "code": "ca"
4051
+ "name": "Bolivia",
4052
+ "flag": "🇧🇴"
1886
4053
  }, {
1887
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1e8.svg",
1888
- "country": "Cocos (Keeling) Islands",
1889
- "code": "cc"
4054
+ "name": "Bosnia and Herzegovina",
4055
+ "code": "BA",
4056
+ "flag": "🇧🇦"
1890
4057
  }, {
1891
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1e9.svg",
1892
- "country": "Congo - Kinshasa",
1893
- "code": "cg"
4058
+ "name": "Botswana",
4059
+ "code": "BW",
4060
+ "flag": "🇧🇼"
1894
4061
  }, {
1895
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1eb.svg",
1896
- "country": "Central African Republic",
1897
- "code": "cf"
4062
+ "name": "Bouvet Island",
4063
+ "code": "BV",
4064
+ "flag": "🇧🇻"
1898
4065
  }, {
1899
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1ec.svg",
1900
- "country": "Congo - Brazzaville",
1901
- "code": "cd"
4066
+ "name": "Brazil",
4067
+ "code": "BR",
4068
+ "flag": "🇧🇷"
1902
4069
  }, {
1903
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1ed.svg",
1904
- "country": "Switzerland",
1905
- "code": "ch"
4070
+ "name": "British Indian Ocean Territory",
4071
+ "code": "IO",
4072
+ "flag": "🇮🇴"
1906
4073
  }, {
1907
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1ee.svg",
1908
- "country": "Côte d’Ivoire",
1909
- "code": "ci"
4074
+ "name": "Brunei",
4075
+ "code": "BN",
4076
+ "flag": "🇧🇳"
1910
4077
  }, {
1911
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1f0.svg",
1912
- "country": "Cook Islands",
1913
- "code": "ck"
4078
+ "name": "Bulgaria",
4079
+ "code": "BG",
4080
+ "flag": "🇧🇬"
1914
4081
  }, {
1915
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1f1.svg",
1916
- "country": "Chile",
1917
- "code": "cl"
4082
+ "name": "Burkina Faso",
4083
+ "code": "BF",
4084
+ "flag": "🇧🇫"
1918
4085
  }, {
1919
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1f2.svg",
1920
- "country": "Cameroon",
1921
- "code": "cm"
4086
+ "name": "Burundi",
4087
+ "code": "BI",
4088
+ "flag": "🇧🇮"
1922
4089
  }, {
1923
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1f3.svg",
1924
- "country": "China",
1925
- "code": "cn"
4090
+ "name": "Chile",
4091
+ "code": "CL",
4092
+ "flag": "🇨🇱"
1926
4093
  }, {
1927
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1f4.svg",
1928
- "country": "Colombia",
1929
- "code": "co"
4094
+ "name": "China",
4095
+ "code": "CN",
4096
+ "flag": "🇨🇳"
1930
4097
  }, {
1931
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1f5.svg",
1932
- "country": "Clipperton Island",
1933
- "code": "cp"
4098
+ "name": "Cook Islands",
4099
+ "code": "CK",
4100
+ "flag": "🇨🇰"
1934
4101
  }, {
1935
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1f7.svg",
1936
- "country": "Costa Rica",
1937
- "code": "cr"
4102
+ "name": "Costa Rica",
4103
+ "code": "CR",
4104
+ "flag": "🇨🇷"
1938
4105
  }, {
1939
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1fa.svg",
1940
- "country": "Cuba",
1941
- "code": "cu"
4106
+ "name": "Curacao",
4107
+ "code": "CW",
4108
+ "flag": "🇨🇼"
1942
4109
  }, {
1943
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1fb.svg",
1944
- "country": "Cape Verde",
1945
- "code": "cv"
4110
+ "name": "Denmark",
4111
+ "code": "DK",
4112
+ "flag": "🇩🇰"
1946
4113
  }, {
1947
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1fc.svg",
1948
- "country": "Curaçao",
1949
- "code": "cw"
4114
+ "name": "Democratic Republic of the Congo",
4115
+ "code": "CD",
4116
+ "flag": "🇨🇩"
1950
4117
  }, {
1951
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1fd.svg",
1952
- "country": "Christmas Island",
1953
- "code": "cx"
4118
+ "name": "Germany",
4119
+ "code": "DE",
4120
+ "flag": "🇩🇪"
1954
4121
  }, {
1955
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1fe.svg",
1956
- "country": "Cyprus",
1957
- "code": "cy"
4122
+ "name": "Dominica",
4123
+ "code": "DM",
4124
+ "flag": "🇩🇲"
1958
4125
  }, {
1959
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e8-1f1ff.svg",
1960
- "country": "Czechia",
1961
- "code": "cz"
4126
+ "name": "Dominican Republic",
4127
+ "code": "DO",
4128
+ "flag": "🇩🇴"
1962
4129
  }, {
1963
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e9-1f1ea.svg",
1964
- "country": "Germany",
1965
- "code": "de"
4130
+ "name": "Djibouti",
4131
+ "code": "DJ",
4132
+ "flag": "🇩🇯"
1966
4133
  }, {
1967
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e9-1f1ec.svg",
1968
- "country": "Diego Garcia",
1969
- "code": "dg"
4134
+ "name": "Ecuador",
4135
+ "code": "EC",
4136
+ "flag": "🇪🇨"
1970
4137
  }, {
1971
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e9-1f1ef.svg",
1972
- "country": "Djibouti",
1973
- "code": "dj"
4138
+ "name": "El Salvador",
4139
+ "code": "SV",
4140
+ "flag": "🇸🇻"
1974
4141
  }, {
1975
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e9-1f1f0.svg",
1976
- "country": "Denmark",
1977
- "code": "dk"
4142
+ "name": "Ivory Coast",
4143
+ "code": "CI",
4144
+ "flag": "🇨🇮"
1978
4145
  }, {
1979
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e9-1f1f2.svg",
1980
- "country": "Dominica",
1981
- "code": "dm"
4146
+ "name": "Eritrea",
4147
+ "code": "ER",
4148
+ "flag": "🇪🇷"
1982
4149
  }, {
1983
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e9-1f1f4.svg",
1984
- "country": "Dominican Republic",
1985
- "code": "do"
4150
+ "name": "Estonia",
4151
+ "code": "EE",
4152
+ "flag": "🇪🇪"
1986
4153
  }, {
1987
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1e9-1f1ff.svg",
1988
- "country": "Algeria",
1989
- "code": "dz"
4154
+ "name": "Eswatini",
4155
+ "code": "SZ",
4156
+ "flag": "🇸🇿"
1990
4157
  }, {
1991
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ea-1f1e6.svg",
1992
- "country": "Ceuta & Melilla",
1993
- "code": "ea"
4158
+ "name": "Falkland Islands",
4159
+ "code": "FK",
4160
+ "flag": "🇫🇰"
1994
4161
  }, {
1995
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ea-1f1e8.svg",
1996
- "country": "Ecuador",
1997
- "code": "ec"
4162
+ "name": "Faroe Islands",
4163
+ "code": "FO",
4164
+ "flag": "🇫🇴"
1998
4165
  }, {
1999
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ea-1f1ea.svg",
2000
- "country": "Estonia",
2001
- "code": "ee"
4166
+ "name": "Fiji",
4167
+ "code": "FJ",
4168
+ "flag": "🇫🇯"
2002
4169
  }, {
2003
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ea-1f1ec.svg",
2004
- "country": "Egypt",
2005
- "code": "eg"
4170
+ "name": "Finland",
4171
+ "code": "FI",
4172
+ "flag": "🇫🇮"
2006
4173
  }, {
2007
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ea-1f1ed.svg",
2008
- "country": "Western Sahara",
2009
- "code": "eh"
4174
+ "name": "Federated States of Micronesia",
4175
+ "code": "FM",
4176
+ "flag": "🇫🇲"
2010
4177
  }, {
2011
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ea-1f1f7.svg",
2012
- "country": "Eritrea",
2013
- "code": "er"
4178
+ "name": "France",
4179
+ "code": "FR",
4180
+ "flag": "🇫🇷"
2014
4181
  }, {
2015
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ea-1f1f8.svg",
2016
- "country": "Spain",
2017
- "code": "es"
4182
+ "name": "French Guiana",
4183
+ "code": "GF",
4184
+ "flag": "🇬🇫"
2018
4185
  }, {
2019
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ea-1f1f9.svg",
2020
- "country": "Ethiopia",
2021
- "code": "et"
4186
+ "name": "French Polynesia",
4187
+ "code": "PF",
4188
+ "flag": "🇵🇫"
2022
4189
  }, {
2023
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ea-1f1fa.svg",
2024
- "country": "European Union",
2025
- "code": "eu"
4190
+ "name": "French Southern and Antarctic Lands",
4191
+ "code": "TF",
4192
+ "flag": "🇹🇫"
2026
4193
  }, {
2027
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1eb-1f1ee.svg",
2028
- "country": "Finland",
2029
- "code": "fi"
4194
+ "name": "Principality of Monaco",
4195
+ "code": "MC",
4196
+ "flag": "🇲🇨"
2030
4197
  }, {
2031
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1eb-1f1ef.svg",
2032
- "country": "Fiji",
2033
- "code": "fj"
4198
+ "name": "Gabon",
4199
+ "code": "GA",
4200
+ "flag": "🇬🇦"
2034
4201
  }, {
2035
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1eb-1f1f0.svg",
2036
- "country": "Falkland Islands",
2037
- "code": "fk"
4202
+ "name": "Gambia",
4203
+ "code": "GM",
4204
+ "flag": "🇬🇲"
2038
4205
  }, {
2039
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1eb-1f1f2.svg",
2040
- "country": "Micronesia",
2041
- "code": "fm"
4206
+ "name": "Georgia",
4207
+ "code": "GE",
4208
+ "flag": "🇬🇪"
2042
4209
  }, {
2043
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1eb-1f1f4.svg",
2044
- "country": "Faroe Islands",
2045
- "code": "fo"
4210
+ "name": "Ghana",
4211
+ "code": "GH",
4212
+ "flag": "🇬🇭"
2046
4213
  }, {
2047
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1eb-1f1f7.svg",
2048
- "country": "France",
2049
- "code": "fr"
4214
+ "name": "Gibraltar",
4215
+ "code": "GI",
4216
+ "flag": "🇬🇮"
2050
4217
  }, {
2051
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1e6.svg",
2052
- "country": "Gabon",
2053
- "code": "ga"
4218
+ "name": "Grenada",
4219
+ "code": "GD",
4220
+ "flag": "🇬🇩"
2054
4221
  }, {
2055
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1e7.svg",
2056
- "country": "United Kingdom",
2057
- "code": "gb"
4222
+ "name": "Greece",
4223
+ "code": "GR",
4224
+ "flag": "🇬🇷"
2058
4225
  }, {
2059
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1e9.svg",
2060
- "country": "Grenada",
2061
- "code": "gd"
4226
+ "name": "Greenland",
4227
+ "code": "GL",
4228
+ "flag": "🇬🇱"
2062
4229
  }, {
2063
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1ea.svg",
2064
- "country": "Georgia",
2065
- "code": "ge"
4230
+ "name": "Guadeloupe",
4231
+ "code": "GP",
4232
+ "flag": "🇬🇵"
2066
4233
  }, {
2067
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1eb.svg",
2068
- "country": "French Guiana",
2069
- "code": "gf"
4234
+ "name": "Guam",
4235
+ "code": "GU",
4236
+ "flag": "🇬🇺"
2070
4237
  }, {
2071
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1ec.svg",
2072
- "country": "Guernsey",
2073
- "code": "gg"
4238
+ "name": "Guatemala",
4239
+ "code": "GT",
4240
+ "flag": "🇬🇹"
2074
4241
  }, {
2075
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1ed.svg",
2076
- "country": "Ghana",
2077
- "code": "gh"
4242
+ "name": "Guernsey",
4243
+ "code": "GG",
4244
+ "flag": "🇬🇬"
2078
4245
  }, {
2079
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1ee.svg",
2080
- "country": "Gibraltar",
2081
- "code": "gi"
4246
+ "name": "Guinea",
4247
+ "code": "GN",
4248
+ "flag": "🇬🇳"
2082
4249
  }, {
2083
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1f1.svg",
2084
- "country": "Greenland",
2085
- "code": "gl"
4250
+ "name": "Guinea-Bissau",
4251
+ "code": "GW",
4252
+ "flag": "🇬🇼"
2086
4253
  }, {
2087
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1f2.svg",
2088
- "country": "Gambia",
2089
- "code": "gm"
4254
+ "name": "Guyana",
4255
+ "code": "GY",
4256
+ "flag": "🇬🇾"
2090
4257
  }, {
2091
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1f3.svg",
2092
- "country": "Guinea",
2093
- "code": "gn"
4258
+ "name": "Haiti",
4259
+ "code": "HT",
4260
+ "flag": "🇭🇹"
2094
4261
  }, {
2095
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1f5.svg",
2096
- "country": "Guadeloupe",
2097
- "code": "gp"
4262
+ "name": "Heard Island and McDonald Islands",
4263
+ "code": "HM",
4264
+ "flag": "🇭🇲"
2098
4265
  }, {
2099
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1f6.svg",
2100
- "country": "Equatorial Guinea",
2101
- "code": "gq"
4266
+ "name": "Honduras",
4267
+ "code": "HN",
4268
+ "flag": "🇭🇳"
2102
4269
  }, {
2103
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1f7.svg",
2104
- "country": "Greece",
2105
- "code": "gr"
4270
+ "name": "Hong Kong",
4271
+ "code": "HK",
4272
+ "flag": "🇭🇰"
2106
4273
  }, {
2107
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1f8.svg",
2108
- "country": "South Georgia & South', Sandwich Islands",
2109
- "code": "gs"
4274
+ "name": "India",
4275
+ "code": "IN",
4276
+ "flag": "🇮🇳"
2110
4277
  }, {
2111
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1f9.svg",
2112
- "country": "Guatemala",
2113
- "code": "gt"
4278
+ "name": "Indonesia",
4279
+ "code": "ID",
4280
+ "flag": "🇮🇩"
2114
4281
  }, {
2115
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1fa.svg",
2116
- "country": "Guam",
2117
- "code": "gu"
4282
+ "name": "Isle of Man",
4283
+ "code": "IM",
4284
+ "flag": "🇮🇲"
2118
4285
  }, {
2119
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1fc.svg",
2120
- "country": "Guinea-Bissau",
2121
- "code": "gw"
4286
+ "name": "Iraq",
4287
+ "code": "IQ",
4288
+ "flag": "🇮🇶"
2122
4289
  }, {
2123
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ec-1f1fe.svg",
2124
- "country": "Guyana",
2125
- "code": "gy"
4290
+ "name": "Iran",
4291
+ "code": "IR",
4292
+ "flag": "🇮🇷"
2126
4293
  }, {
2127
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ed-1f1f0.svg",
2128
- "country": "Hong Kong SAR China",
2129
- "code": "hk"
4294
+ "name": "Ireland",
4295
+ "code": "IE",
4296
+ "flag": "🇮🇪"
2130
4297
  }, {
2131
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ed-1f1f2.svg",
2132
- "country": "Heard & McDonald Islands",
2133
- "code": "hm"
4298
+ "name": "Iceland",
4299
+ "code": "IS",
4300
+ "flag": "🇮🇸"
2134
4301
  }, {
2135
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ed-1f1f3.svg",
2136
- "country": "Honduras",
2137
- "code": "hn"
4302
+ "name": "Israel",
4303
+ "code": "IL",
4304
+ "flag": "🇮🇱"
2138
4305
  }, {
2139
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ed-1f1f7.svg",
2140
- "country": "Croatia",
2141
- "code": "hr"
4306
+ "name": "Italy",
4307
+ "code": "IT",
4308
+ "flag": "🇮🇹"
2142
4309
  }, {
2143
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ed-1f1f9.svg",
2144
- "country": "Haiti",
2145
- "code": "ht"
4310
+ "name": "Jamaica",
4311
+ "code": "JM",
4312
+ "flag": "🇯🇲"
2146
4313
  }, {
2147
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ed-1f1fa.svg",
2148
- "country": "Hungary",
2149
- "code": "hu"
4314
+ "name": "Japan",
4315
+ "code": "JP",
4316
+ "flag": "🇯🇵"
2150
4317
  }, {
2151
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1e8.svg",
2152
- "country": "Canary Islands",
2153
- "code": "ic"
4318
+ "name": "Yemen",
4319
+ "code": "YE",
4320
+ "flag": "🇾🇪"
2154
4321
  }, {
2155
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1e9.svg",
2156
- "country": "Indonesia",
2157
- "code": "id"
4322
+ "name": "Jersey",
4323
+ "code": "JE",
4324
+ "flag": "🇯🇪"
2158
4325
  }, {
2159
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1ea.svg",
2160
- "country": "Ireland",
2161
- "code": "ie"
4326
+ "name": "Jordan",
4327
+ "code": "JO",
4328
+ "flag": "🇯🇴"
2162
4329
  }, {
2163
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1f1.svg",
2164
- "country": "Israel",
2165
- "code": "il"
4330
+ "name": "British Virgin Islands",
4331
+ "code": "VG",
4332
+ "flag": "🇻🇬"
2166
4333
  }, {
2167
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1f2.svg",
2168
- "country": "Isle of Man",
2169
- "code": "im"
4334
+ "name": "Virgin Islands",
4335
+ "code": "VI",
4336
+ "flag": "🇻🇮"
2170
4337
  }, {
2171
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1f3.svg",
2172
- "country": "India",
2173
- "code": "in"
4338
+ "name": "Cayman Islands",
4339
+ "code": "KY",
4340
+ "flag": "🇰🇾"
2174
4341
  }, {
2175
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1f4.svg",
2176
- "country": "British Indian Ocean Territory",
2177
- "code": "io"
4342
+ "name": "Cambodia",
4343
+ "code": "KH",
4344
+ "flag": "🇰🇭"
2178
4345
  }, {
2179
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1f6.svg",
2180
- "country": "Iraq",
2181
- "code": "iq"
4346
+ "name": "Cameroon",
4347
+ "code": "CM",
4348
+ "flag": "🇨🇲"
2182
4349
  }, {
2183
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1f7.svg",
2184
- "country": "Iran"
4350
+ "name": "Canada",
4351
+ "code": "CA",
4352
+ "flag": "🇨🇦"
2185
4353
  }, {
2186
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1f8.svg",
2187
- "country": "Iceland",
2188
- "code": "is"
4354
+ "name": "Cape Verde",
4355
+ "code": "CV",
4356
+ "flag": "🇨🇻"
2189
4357
  }, {
2190
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ee-1f1f9.svg",
2191
- "country": "Italy",
2192
- "code": "it"
4358
+ "name": "Caribbean Netherlands",
4359
+ "code": "BQ",
4360
+ "flag": "🇧🇶"
2193
4361
  }, {
2194
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ef-1f1ea.svg",
2195
- "country": "Jersey",
2196
- "code": "je"
4362
+ "name": "Kazakhstan",
4363
+ "code": "KZ",
4364
+ "flag": "🇰🇿"
2197
4365
  }, {
2198
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ef-1f1f2.svg",
2199
- "country": "Jamaica",
2200
- "code": "jm"
4366
+ "name": "Qatar",
4367
+ "code": "QA",
4368
+ "flag": "🇶🇦"
2201
4369
  }, {
2202
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ef-1f1f4.svg",
2203
- "country": "Jordan",
2204
- "code": "jo"
4370
+ "name": "Kenya",
4371
+ "code": "KE",
4372
+ "flag": "🇰🇪"
2205
4373
  }, {
2206
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ef-1f1f5.svg",
2207
- "country": "Japan",
2208
- "code": "jp"
4374
+ "name": "Kyrgyzstan",
4375
+ "code": "KG",
4376
+ "flag": "🇰🇬"
2209
4377
  }, {
2210
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1ea.svg",
2211
- "country": "Kenya",
2212
- "code": "ke"
4378
+ "name": "Kiribati",
4379
+ "code": "KI",
4380
+ "flag": "🇰🇮"
2213
4381
  }, {
2214
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1ec.svg",
2215
- "country": "Kyrgyzstan",
2216
- "code": "kg"
4382
+ "name": "United States Minor Outlying Islands",
4383
+ "code": "UM",
4384
+ "flag": "🇺🇲"
2217
4385
  }, {
2218
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1ed.svg",
2219
- "country": "Cambodia",
2220
- "code": "kh"
4386
+ "name": "Cocos (Keeling) Islands",
4387
+ "code": "CC",
4388
+ "flag": "🇨🇨"
2221
4389
  }, {
2222
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1ee.svg",
2223
- "country": "Kiribati",
2224
- "code": "ki"
4390
+ "name": "Colombia",
4391
+ "code": "CO",
4392
+ "flag": "🇨🇴"
2225
4393
  }, {
2226
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1f2.svg",
2227
- "country": "Comoros",
2228
- "code": "km"
4394
+ "name": "Comoros",
4395
+ "code": "KM",
4396
+ "flag": "🇰🇲"
2229
4397
  }, {
2230
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1f3.svg",
2231
- "country": "St. Kitts & Nevis",
2232
- "code": "kn"
4398
+ "name": "Kosovo",
4399
+ "code": "XK",
4400
+ "flag": "🇽🇰"
2233
4401
  }, {
2234
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1f5.svg",
2235
- "country": "North Korea",
2236
- "code": "kp"
4402
+ "name": "Croatia",
4403
+ "code": "HR",
4404
+ "flag": "🇭🇷"
2237
4405
  }, {
2238
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1f7.svg",
2239
- "country": "South Korea",
2240
- "code": "kr"
4406
+ "name": "Cuba",
4407
+ "code": "CU",
4408
+ "flag": "🇨🇺"
2241
4409
  }, {
2242
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1fc.svg",
2243
- "country": "Kuwait",
2244
- "code": "kw"
4410
+ "name": "Kuwait",
4411
+ "code": "KW",
4412
+ "flag": "🇰🇼"
2245
4413
  }, {
2246
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1fe.svg",
2247
- "country": "Cayman Islands",
2248
- "code": "ky"
4414
+ "name": "Laos",
4415
+ "code": "LA",
4416
+ "flag": "🇱🇦"
2249
4417
  }, {
2250
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f0-1f1ff.svg",
2251
- "country": "Kazakhstan",
2252
- "code": "kz"
4418
+ "name": "Lesotho",
4419
+ "code": "LS",
4420
+ "flag": "🇱🇸"
2253
4421
  }, {
2254
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1e6.svg",
2255
- "country": "Laos",
2256
- "code": "la"
4422
+ "name": "Latvia",
4423
+ "code": "LV",
4424
+ "flag": "🇱🇻"
2257
4425
  }, {
2258
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1e7.svg",
2259
- "country": "Lebanon",
2260
- "code": "lb"
4426
+ "name": "Lebanon",
4427
+ "code": "LB",
4428
+ "flag": "🇱🇧"
2261
4429
  }, {
2262
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1e8.svg",
2263
- "country": "St. Lucia",
2264
- "code": "lc"
4430
+ "name": "Liberia",
4431
+ "code": "LR",
4432
+ "flag": "🇱🇷"
2265
4433
  }, {
2266
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1ee.svg",
2267
- "country": "Liechtenstein",
2268
- "code": "li"
4434
+ "name": "Libya",
4435
+ "code": "LY",
4436
+ "flag": "🇱🇾"
2269
4437
  }, {
2270
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1f0.svg",
2271
- "country": "Sri Lanka",
2272
- "code": "lk"
4438
+ "name": "Liechtenstein",
4439
+ "code": "LI",
4440
+ "flag": "🇱🇮"
2273
4441
  }, {
2274
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1f7.svg",
2275
- "country": "Liberia",
2276
- "code": "lr"
4442
+ "name": "Lithuania",
4443
+ "code": "LT",
4444
+ "flag": "🇱🇹"
2277
4445
  }, {
2278
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1f8.svg",
2279
- "country": "Lesotho",
2280
- "code": "ls"
4446
+ "name": "Luxembourg",
4447
+ "code": "LU",
4448
+ "flag": "🇱🇺"
2281
4449
  }, {
2282
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1f9.svg",
2283
- "country": "Lithuania",
2284
- "code": "lt"
4450
+ "name": "Macao",
4451
+ "code": "MO",
4452
+ "flag": "🇲🇴"
2285
4453
  }, {
2286
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1fa.svg",
2287
- "country": "Luxembourg",
2288
- "code": "lu"
4454
+ "name": "Madagascar",
4455
+ "code": "MG",
4456
+ "flag": "🇲🇬"
2289
4457
  }, {
2290
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1fb.svg",
2291
- "country": "Latvia",
2292
- "code": "lv"
4458
+ "name": "Malawi",
4459
+ "code": "MW",
4460
+ "flag": "🇲🇼"
2293
4461
  }, {
2294
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f1-1f1fe.svg",
2295
- "country": "Libya",
2296
- "code": "ly"
4462
+ "name": "Malaysia",
4463
+ "code": "MY",
4464
+ "flag": "🇲🇾"
2297
4465
  }, {
2298
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1e6.svg",
2299
- "country": "Morocco",
2300
- "code": "ma"
4466
+ "name": "Maldives",
4467
+ "code": "MV",
4468
+ "flag": "🇲🇻"
2301
4469
  }, {
2302
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1e8.svg",
2303
- "country": "Monaco",
2304
- "code": "mc"
4470
+ "name": "Mali",
4471
+ "code": "ML",
4472
+ "flag": "🇲🇱"
2305
4473
  }, {
2306
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1e9.svg",
2307
- "country": "Moldova",
2308
- "code": "md"
4474
+ "name": "Malta",
4475
+ "code": "MT",
4476
+ "flag": "🇲🇹"
2309
4477
  }, {
2310
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1ea.svg",
2311
- "country": "Montenegro",
2312
- "code": "me"
4478
+ "name": "Morocco",
4479
+ "code": "MA",
4480
+ "flag": "🇲🇦"
2313
4481
  }, {
2314
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1eb.svg",
2315
- "country": "St. Martin",
2316
- "code": "mf"
4482
+ "name": "Marshall Islands",
4483
+ "code": "MH",
4484
+ "flag": "🇲🇭"
2317
4485
  }, {
2318
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1ec.svg",
2319
- "country": "Madagascar",
2320
- "code": "mg"
4486
+ "name": "Martinique",
4487
+ "code": "MQ",
4488
+ "flag": "🇲🇶"
2321
4489
  }, {
2322
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1ed.svg",
2323
- "country": "Marshall Islands",
2324
- "code": "mh"
4490
+ "name": "Mauritania",
4491
+ "code": "MR",
4492
+ "flag": "🇲🇷"
2325
4493
  }, {
2326
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1f0.svg",
2327
- "country": "North Macedonia",
2328
- "code": "mk"
4494
+ "name": "Mauritius",
4495
+ "code": "MU",
4496
+ "flag": "🇲🇺"
2329
4497
  }, {
2330
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1f1.svg",
2331
- "country": "Mali",
2332
- "code": "ml"
4498
+ "name": "Mayotte",
4499
+ "code": "YT",
4500
+ "flag": "🇾🇹"
2333
4501
  }, {
2334
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1f2.svg",
2335
- "country": "Myanmar (Burma)",
2336
- "code": "mm"
4502
+ "name": "Mexico",
4503
+ "code": "MX",
4504
+ "flag": "🇲🇽"
2337
4505
  }, {
2338
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1f3.svg",
2339
- "country": "Mongolia",
2340
- "code": "mn"
4506
+ "name": "Moldova",
4507
+ "code": "MD",
4508
+ "flag": "🇲🇩"
2341
4509
  }, {
2342
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1f4.svg",
2343
- "country": "Macao Sar China",
2344
- "code": "mo"
4510
+ "name": "Mongolia",
4511
+ "code": "MN",
4512
+ "flag": "🇲🇳"
2345
4513
  }, {
2346
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1f5.svg",
2347
- "country": "Northern Mariana Islands",
2348
- "code": "mp"
4514
+ "name": "Montenegro",
4515
+ "code": "ME",
4516
+ "flag": "🇲🇪"
2349
4517
  }, {
2350
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1f6.svg",
2351
- "country": "Martinique",
2352
- "code": "mq"
4518
+ "name": "Montserrat",
4519
+ "code": "MS",
4520
+ "flag": "🇲🇸"
2353
4521
  }, {
2354
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1f7.svg",
2355
- "country": "Mauritania",
2356
- "code": "mr"
4522
+ "name": "Mozambique",
4523
+ "code": "MZ",
4524
+ "flag": "🇲🇿"
2357
4525
  }, {
2358
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1f8.svg",
2359
- "country": "Montserrat",
2360
- "code": "ms"
4526
+ "name": "Myanmar",
4527
+ "code": "MM",
4528
+ "flag": "🇲🇲"
2361
4529
  }, {
2362
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1f9.svg",
2363
- "country": "Malta",
2364
- "code": "mt"
4530
+ "name": "Namibia",
4531
+ "code": "NA",
4532
+ "flag": "🇳🇦"
2365
4533
  }, {
2366
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1fa.svg",
2367
- "country": "Mauritius",
2368
- "code": "mu"
4534
+ "name": "Nauru",
4535
+ "code": "NR",
4536
+ "flag": "🇳🇷"
2369
4537
  }, {
2370
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1fb.svg",
2371
- "country": "Maldives",
2372
- "code": "mv"
4538
+ "name": "Nepal",
4539
+ "code": "NP",
4540
+ "flag": "🇳🇵"
2373
4541
  }, {
2374
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1fc.svg",
2375
- "country": "Malawi",
2376
- "code": "mw"
4542
+ "name": "New Caledonia",
4543
+ "code": "NC",
4544
+ "flag": "🇳🇨"
2377
4545
  }, {
2378
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1fd.svg",
2379
- "country": "Mexico",
2380
- "code": "mx"
4546
+ "name": "New Zealand",
4547
+ "code": "NZ",
4548
+ "flag": "🇳🇿"
2381
4549
  }, {
2382
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1fe.svg",
2383
- "country": "Malaysia",
2384
- "code": "my"
4550
+ "name": "Nicaragua",
4551
+ "code": "NI",
4552
+ "flag": "🇳🇮"
2385
4553
  }, {
2386
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f2-1f1ff.svg",
2387
- "country": "Mozambique",
2388
- "code": "mz"
4554
+ "name": "Netherlands",
4555
+ "code": "NL",
4556
+ "flag": "🇳🇱"
2389
4557
  }, {
2390
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1e6.svg",
2391
- "country": "Namibia",
2392
- "code": "na"
4558
+ "name": "Niger",
4559
+ "code": "NE",
4560
+ "flag": "🇳🇪"
2393
4561
  }, {
2394
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1e8.svg",
2395
- "country": "New Caledonia",
2396
- "code": "nc"
4562
+ "name": "Nigeria",
4563
+ "code": "NG",
4564
+ "flag": "🇳🇬"
2397
4565
  }, {
2398
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1ea.svg",
2399
- "country": "Niger",
2400
- "code": "ne"
4566
+ "name": "Niue",
4567
+ "code": "NU",
4568
+ "flag": "🇳🇺"
2401
4569
  }, {
2402
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1eb.svg",
2403
- "country": "Norfolk Island",
2404
- "code": "nf"
4570
+ "name": "North Korea",
4571
+ "code": "KP",
4572
+ "flag": "🇰🇵"
2405
4573
  }, {
2406
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1ec.svg",
2407
- "country": "Nigeria",
2408
- "code": "ng"
4574
+ "name": "Northern Mariana Islands",
4575
+ "code": "MP",
4576
+ "flag": "🇲🇵"
2409
4577
  }, {
2410
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1ee.svg",
2411
- "country": "Nicaragua",
2412
- "code": "ni"
4578
+ "name": "North Macedonia",
4579
+ "code": "MK",
4580
+ "flag": "🇲🇰"
2413
4581
  }, {
2414
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1f1.svg",
2415
- "country": "Netherlands",
2416
- "code": "nl"
4582
+ "name": "Norfolk Island",
4583
+ "code": "NF",
4584
+ "flag": "🇳🇫"
2417
4585
  }, {
2418
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1f4.svg",
2419
- "country": "Norway",
2420
- "code": "no"
4586
+ "name": "Norway",
4587
+ "code": "NO",
4588
+ "flag": "🇳🇴"
2421
4589
  }, {
2422
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1f5.svg",
2423
- "country": "Nepal",
2424
- "code": "np"
4590
+ "name": "Oman",
4591
+ "code": "OM",
4592
+ "flag": "🇴🇲"
2425
4593
  }, {
2426
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1f7.svg",
2427
- "country": "Nauru",
2428
- "code": "nr"
4594
+ "name": "Austria",
4595
+ "code": "AT",
4596
+ "flag": "🇦🇹"
2429
4597
  }, {
2430
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1fa.svg",
2431
- "country": "Niue",
2432
- "code": "nu"
4598
+ "name": "East Timor",
4599
+ "code": "TL",
4600
+ "flag": "🇹🇱"
2433
4601
  }, {
2434
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f3-1f1ff.svg",
2435
- "country": "New Zealand",
2436
- "code": "nz"
4602
+ "name": "Pakistan",
4603
+ "code": "PK",
4604
+ "flag": "🇵🇰"
2437
4605
  }, {
2438
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f4-1f1f2.svg",
2439
- "country": "Oman",
2440
- "code": "om"
4606
+ "name": "Palestine",
4607
+ "code": "PS",
4608
+ "flag": "🇵🇸"
2441
4609
  }, {
2442
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1e6.svg",
2443
- "country": "Panama",
2444
- "code": "pa"
4610
+ "name": "Palau",
4611
+ "code": "PW",
4612
+ "flag": "🇵🇼"
2445
4613
  }, {
2446
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1ea.svg",
2447
- "country": "Peru",
2448
- "code": "pe"
4614
+ "name": "Panama",
4615
+ "code": "PA",
4616
+ "flag": "🇵🇦"
2449
4617
  }, {
2450
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1eb.svg",
2451
- "country": "French Polynesia",
2452
- "code": "pf"
4618
+ "name": "Papua New Guinea",
4619
+ "code": "PG",
4620
+ "flag": "🇵🇬"
2453
4621
  }, {
2454
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1ec.svg",
2455
- "country": "Papua New Guinea",
2456
- "code": "pg"
4622
+ "name": "Paraguay",
4623
+ "code": "PY",
4624
+ "flag": "🇵🇾"
2457
4625
  }, {
2458
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1ed.svg",
2459
- "country": "Philippines",
2460
- "code": "ph"
4626
+ "name": "Peru",
4627
+ "code": "PE",
4628
+ "flag": "🇵🇪"
2461
4629
  }, {
2462
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1f0.svg",
2463
- "country": "Pakistan",
2464
- "code": "pk"
4630
+ "name": "Philippines",
4631
+ "code": "PH",
4632
+ "flag": "🇵🇭"
2465
4633
  }, {
2466
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1f1.svg",
2467
- "country": "Poland",
2468
- "code": "pl"
4634
+ "name": "Pitcairn Islands",
4635
+ "code": "PN",
4636
+ "flag": "🇵🇳"
2469
4637
  }, {
2470
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1f2.svg",
2471
- "country": "St. Pierre & Miquelon",
2472
- "code": "pm"
4638
+ "name": "Poland",
4639
+ "code": "PL",
4640
+ "flag": "🇵🇱"
2473
4641
  }, {
2474
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1f3.svg",
2475
- "country": "Pitcairn Islands",
2476
- "code": "pn"
4642
+ "name": "Portugal",
4643
+ "code": "PT",
4644
+ "flag": "🇵🇹"
2477
4645
  }, {
2478
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1f7.svg",
2479
- "country": "Puerto Rico",
2480
- "code": "pr"
4646
+ "name": "Puerto Rico",
4647
+ "code": "PR",
4648
+ "flag": "🇵🇷"
2481
4649
  }, {
2482
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1f8.svg",
2483
- "country": "Palestinian Territories",
2484
- "code": "ps"
4650
+ "name": "Republic of the Congo",
4651
+ "code": "CG",
4652
+ "flag": "🇨🇬"
2485
4653
  }, {
2486
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1f9.svg",
2487
- "country": "Portugal",
2488
- "code": "pt"
4654
+ "name": "Reunion",
4655
+ "code": "RE",
4656
+ "flag": "🇷🇪"
2489
4657
  }, {
2490
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1fc.svg",
2491
- "country": "Palau",
2492
- "code": "pw"
4658
+ "name": "Rwanda",
4659
+ "code": "RW",
4660
+ "flag": "🇷🇼"
2493
4661
  }, {
2494
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f5-1f1fe.svg",
2495
- "country": "Paraguay",
2496
- "code": "py"
4662
+ "name": "Romania",
4663
+ "code": "RO",
4664
+ "flag": "🇷🇴"
2497
4665
  }, {
2498
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f6-1f1e6.svg",
2499
- "country": "Qatar",
2500
- "code": "qa"
4666
+ "name": "Russia",
4667
+ "code": "RU",
4668
+ "flag": "🇷🇺"
2501
4669
  }, {
2502
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f7-1f1ea.svg",
2503
- "country": "Réunion",
2504
- "code": "re"
4670
+ "name": "Saint Martin",
4671
+ "code": "MF",
4672
+ "flag": "🇲🇫"
2505
4673
  }, {
2506
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f7-1f1f4.svg",
2507
- "country": "Romania",
2508
- "code": "ro"
4674
+ "name": "Solomon Islands",
4675
+ "code": "SB",
4676
+ "flag": "🇸🇧"
2509
4677
  }, {
2510
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f7-1f1f8.svg",
2511
- "country": "Serbia",
2512
- "code": "yu"
4678
+ "name": "Zambia",
4679
+ "code": "ZM",
4680
+ "flag": "🇿🇲"
2513
4681
  }, {
2514
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f7-1f1fa.svg",
2515
- "country": "Russia",
2516
- "code": "ru"
4682
+ "name": "Samoa",
4683
+ "code": "WS",
4684
+ "flag": "🇼🇸"
2517
4685
  }, {
2518
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f7-1f1fc.svg",
2519
- "country": "Rwanda",
2520
- "code": "rw"
4686
+ "name": "San Marino",
4687
+ "code": "SM",
4688
+ "flag": "🇸🇲"
2521
4689
  }, {
2522
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1e6.svg",
2523
- "country": "Saudi Arabia",
2524
- "code": "sa"
4690
+ "name": "Saint Barthelemy",
4691
+ "code": "BL",
4692
+ "flag": "🇧🇱"
2525
4693
  }, {
2526
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1e7.svg",
2527
- "country": "Solomon Islands",
2528
- "code": "sb"
4694
+ "name": "Sao Tome and Principe",
4695
+ "code": "ST",
4696
+ "flag": "🇸🇹"
2529
4697
  }, {
2530
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1e8.svg",
2531
- "country": "Seychelles",
2532
- "code": "sc"
4698
+ "name": "Saudi Arabia",
4699
+ "code": "SA",
4700
+ "flag": "🇸🇦"
2533
4701
  }, {
2534
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1e9.svg",
2535
- "country": "Sudan",
2536
- "code": "sd"
4702
+ "name": "Sweden",
4703
+ "code": "SE",
4704
+ "flag": "🇸🇪"
2537
4705
  }, {
2538
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1ea.svg",
2539
- "country": "Sweden",
2540
- "code": "se"
4706
+ "name": "Switzerland",
4707
+ "code": "CH",
4708
+ "flag": "🇨🇭"
2541
4709
  }, {
2542
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1ec.svg",
2543
- "country": "Singapore",
2544
- "code": "sg"
4710
+ "name": "Senegal",
4711
+ "code": "SN",
4712
+ "flag": "🇸🇳"
2545
4713
  }, {
2546
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1ed.svg",
2547
- "country": "St. Helena",
2548
- "code": "sh"
4714
+ "name": "Serbia",
4715
+ "code": "RS",
4716
+ "flag": "🇷🇸"
2549
4717
  }, {
2550
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1ee.svg",
2551
- "country": "Slovenia",
2552
- "code": "si"
4718
+ "name": "Seychelles",
4719
+ "code": "SC",
4720
+ "flag": "🇸🇨"
2553
4721
  }, {
2554
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1ef.svg",
2555
- "country": "Svalbard & Jan Mayen",
2556
- "code": "sj"
4722
+ "name": "Sierra Leone",
4723
+ "code": "SL",
4724
+ "flag": "🇸🇱"
2557
4725
  }, {
2558
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1f0.svg",
2559
- "country": "Slovakia",
2560
- "code": "sk"
4726
+ "name": "Zimbabwe",
4727
+ "code": "ZW",
4728
+ "flag": "🇿🇼"
2561
4729
  }, {
2562
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1f1.svg",
2563
- "country": "Sierra Leone",
2564
- "code": "sl"
4730
+ "name": "Singapore",
4731
+ "code": "SG",
4732
+ "flag": "🇸🇬"
2565
4733
  }, {
2566
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1f2.svg",
2567
- "country": "San Marino",
2568
- "code": "sm"
4734
+ "name": "Sint Maarten",
4735
+ "code": "SX",
4736
+ "flag": "🇸🇽"
2569
4737
  }, {
2570
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1f3.svg",
2571
- "country": "Senegal",
2572
- "code": "sn"
4738
+ "name": "Slovakia",
4739
+ "code": "SK",
4740
+ "flag": "🇸🇰"
2573
4741
  }, {
2574
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1f4.svg",
2575
- "country": "Somalia",
2576
- "code": "so"
4742
+ "name": "Slovenia",
4743
+ "code": "SI",
4744
+ "flag": "🇸🇮"
2577
4745
  }, {
2578
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1f7.svg",
2579
- "country": "Suriname",
2580
- "code": "sr"
4746
+ "name": "Somalia",
4747
+ "code": "SO",
4748
+ "flag": "🇸🇴"
2581
4749
  }, {
2582
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1f8.svg",
2583
- "country": "South Sudan",
2584
- "code": "ss"
4750
+ "name": "Spain",
4751
+ "code": "ES",
4752
+ "flag": "🇪🇸"
2585
4753
  }, {
2586
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1f9.svg",
2587
- "country": "São Tomé & Príncipe",
2588
- "code": "st"
4754
+ "name": "Sri Lanka",
4755
+ "code": "LK",
4756
+ "flag": "🇱🇰"
2589
4757
  }, {
2590
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1fb.svg",
2591
- "country": "El Salvador",
2592
- "code": "sv"
4758
+ "name": "Saint Helena, Ascension and Tristan da Cunha",
4759
+ "code": "SH",
4760
+ "flag": "🇸🇭"
2593
4761
  }, {
2594
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1fd.svg",
2595
- "country": "Sint Maarten",
2596
- "code": "sx"
4762
+ "name": "Saint Kitts and Nevis",
4763
+ "code": "KN",
4764
+ "flag": "🇰🇳"
2597
4765
  }, {
2598
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1fe.svg",
2599
- "country": "Syria",
2600
- "code": "sy"
4766
+ "name": "Saint Lucia",
4767
+ "code": "LC",
4768
+ "flag": "🇱🇨"
2601
4769
  }, {
2602
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f8-1f1ff.svg",
2603
- "country": "Eswatini",
2604
- "code": "sz"
4770
+ "name": "Saint Pierre and Miquelon",
4771
+ "code": "PM",
4772
+ "flag": "🇵🇲"
2605
4773
  }, {
2606
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1e6.svg",
2607
- "country": "Tristan Da Cunha",
2608
- "code": "sh"
4774
+ "name": "Saint Vincent and the Grenadines",
4775
+ "code": "VC",
4776
+ "flag": "🇻🇨"
2609
4777
  }, {
2610
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1e8.svg",
2611
- "country": "Turks & Caicos Islands",
2612
- "code": "tc"
4778
+ "name": "South Africa",
4779
+ "code": "ZA",
4780
+ "flag": "🇿🇦"
2613
4781
  }, {
2614
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1e9.svg",
2615
- "country": "Chad",
2616
- "code": "td"
4782
+ "name": "Sudan",
4783
+ "code": "SD",
4784
+ "flag": "🇸🇩"
2617
4785
  }, {
2618
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1eb.svg",
2619
- "country": "French Southern Territories",
2620
- "code": "tf"
4786
+ "name": "South Georgia and South Sandwich Islands",
4787
+ "code": "GS",
4788
+ "flag": "🇬🇸"
2621
4789
  }, {
2622
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1ec.svg",
2623
- "country": "Togo",
2624
- "code": "tg"
4790
+ "name": "South Korea",
4791
+ "code": "KR",
4792
+ "flag": "🇰🇷"
2625
4793
  }, {
2626
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1ed.svg",
2627
- "country": "Thailand",
2628
- "code": "th"
4794
+ "name": "South Sudan",
4795
+ "code": "SS",
4796
+ "flag": "🇸🇸"
2629
4797
  }, {
2630
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1ef.svg",
2631
- "country": "Tajikistan",
2632
- "code": "tj"
4798
+ "name": "Suriname",
4799
+ "code": "SR",
4800
+ "flag": "🇸🇷"
2633
4801
  }, {
2634
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1f0.svg",
2635
- "country": "Tokelau",
2636
- "code": "tk"
4802
+ "name": "Svalbard",
4803
+ "code": "SJ",
4804
+ "flag": "🇸🇯"
2637
4805
  }, {
2638
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1f1.svg",
2639
- "country": "Timor-Leste",
2640
- "code": "tl"
4806
+ "name": "Syria",
4807
+ "code": "SY",
4808
+ "flag": "🇸🇾"
2641
4809
  }, {
2642
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1f2.svg",
2643
- "country": "Turkmenistan",
2644
- "code": "tm"
4810
+ "name": "Tajikistan",
4811
+ "code": "TJ",
4812
+ "flag": "🇹🇯"
2645
4813
  }, {
2646
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1f3.svg",
2647
- "country": "Tunisia",
2648
- "code": "tn"
4814
+ "name": "Taiwan",
4815
+ "code": "TW",
4816
+ "flag": "🇹🇼"
2649
4817
  }, {
2650
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1f4.svg",
2651
- "country": "Tonga",
2652
- "code": "to"
4818
+ "name": "Tanzania",
4819
+ "code": "TZ",
4820
+ "flag": "🇹🇿"
2653
4821
  }, {
2654
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1f7.svg",
2655
- "country": "Turkey",
2656
- "code": "tr"
4822
+ "name": "Thailand",
4823
+ "code": "TH",
4824
+ "flag": "🇹🇭"
2657
4825
  }, {
2658
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1f9.svg",
2659
- "country": "Trinidad & Tobago",
2660
- "code": "tt"
4826
+ "name": "Togo",
4827
+ "code": "TG",
4828
+ "flag": "🇹🇬"
2661
4829
  }, {
2662
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1fb.svg",
2663
- "country": "Tuvalu",
2664
- "code": "tv"
4830
+ "name": "Tokelau",
4831
+ "code": "TK",
4832
+ "flag": "🇹🇰"
2665
4833
  }, {
2666
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1fc.svg",
2667
- "country": "Taiwan",
2668
- "code": "tw"
4834
+ "name": "Tonga",
4835
+ "code": "TO",
4836
+ "flag": "🇹🇴"
2669
4837
  }, {
2670
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1f9-1f1ff.svg",
2671
- "country": "Tanzania",
2672
- "code": "tz"
4838
+ "name": "Trinidad and Tobago",
4839
+ "code": "TT",
4840
+ "flag": "🇹🇹"
2673
4841
  }, {
2674
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fa-1f1e6.svg",
2675
- "country": "Ukraine",
2676
- "code": "ua"
4842
+ "name": "Chad",
4843
+ "code": "TD",
4844
+ "flag": "🇹🇩"
2677
4845
  }, {
2678
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fa-1f1ec.svg",
2679
- "country": "Uganda",
2680
- "code": "ug"
4846
+ "name": "Czechia",
4847
+ "code": "CZ",
4848
+ "flag": "🇨🇿"
2681
4849
  }, {
2682
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fa-1f1f2.svg",
2683
- "country": "U.S. Outlying Islands",
2684
- "code": "um"
4850
+ "name": "Tunisia",
4851
+ "code": "TN",
4852
+ "flag": "🇹🇳"
2685
4853
  }, {
2686
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fa-1f1f3.svg",
2687
- "country": "United Nations",
2688
- "code": "un"
4854
+ "name": "Turkey",
4855
+ "code": "TR",
4856
+ "flag": "🇹🇷"
2689
4857
  }, {
2690
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fa-1f1f8.svg",
2691
- "country": "United States",
2692
- "code": "us"
4858
+ "name": "Turkmenistan",
4859
+ "code": "TM",
4860
+ "flag": "🇹🇲"
2693
4861
  }, {
2694
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fa-1f1fe.svg",
2695
- "country": "Uruguay",
2696
- "code": "uy"
4862
+ "name": "Turks and Caicos Islands",
4863
+ "code": "TC",
4864
+ "flag": "🇹🇨"
2697
4865
  }, {
2698
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fa-1f1ff.svg",
2699
- "country": "Uzbekistan",
2700
- "code": "uz"
4866
+ "name": "Tuvalu",
4867
+ "code": "TV",
4868
+ "flag": "🇹🇻"
2701
4869
  }, {
2702
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fb-1f1e6.svg",
2703
- "country": "Vatican City",
2704
- "code": "va"
4870
+ "name": "Uganda",
4871
+ "code": "UG",
4872
+ "flag": "🇺🇬"
2705
4873
  }, {
2706
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fb-1f1e8.svg",
2707
- "country": "St. Vincent & Grenadines",
2708
- "code": "vc"
4874
+ "name": "Ukraine",
4875
+ "code": "UA",
4876
+ "flag": "🇺🇦"
2709
4877
  }, {
2710
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fb-1f1ea.svg",
2711
- "country": "Venezuela",
2712
- "code": "ve"
4878
+ "name": "Hungary",
4879
+ "code": "HU",
4880
+ "flag": "🇭🇺"
2713
4881
  }, {
2714
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fb-1f1ec.svg",
2715
- "country": "British Virgin Islands",
2716
- "code": "vg"
4882
+ "name": "Uruguay",
4883
+ "code": "UY",
4884
+ "flag": "🇺🇾"
2717
4885
  }, {
2718
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fb-1f1ee.svg",
2719
- "country": "U.S. Virgin Islands",
2720
- "code": "vi"
4886
+ "name": "Uzbekistan",
4887
+ "code": "UZ",
4888
+ "flag": "🇺🇿"
2721
4889
  }, {
2722
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fb-1f1f3.svg",
2723
- "country": "Vietnam",
2724
- "code": "vn"
4890
+ "name": "Vanuatu",
4891
+ "code": "VU",
4892
+ "flag": "🇻🇺"
2725
4893
  }, {
2726
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fb-1f1fa.svg",
2727
- "country": "Vanuatu",
2728
- "code": "vu"
4894
+ "name": "Vatican City",
4895
+ "code": "VA",
4896
+ "flag": "🇻🇦"
2729
4897
  }, {
2730
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fc-1f1eb.svg",
2731
- "country": "Wallis & Futuna",
2732
- "code": "wf"
4898
+ "name": "Venezuela",
4899
+ "code": "VE",
4900
+ "flag": "🇻🇪"
2733
4901
  }, {
2734
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fc-1f1f8.svg",
2735
- "country": "Samoa",
2736
- "code": "ws"
4902
+ "name": "United Arab Emirates",
4903
+ "code": "AE",
4904
+ "flag": "🇦🇪"
2737
4905
  }, {
2738
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fd-1f1f0.svg",
2739
- "country": "Kosovo",
2740
- "code": "xk"
4906
+ "name": "United States of America",
4907
+ "code": "US",
4908
+ "flag": "🇺🇸"
2741
4909
  }, {
2742
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fe-1f1ea.svg",
2743
- "country": "Yemen",
2744
- "code": "ye"
4910
+ "name": "United Kingdom",
4911
+ "code": "GB",
4912
+ "flag": "🇬🇧"
2745
4913
  }, {
2746
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1fe-1f1f9.svg",
2747
- "country": "Mayotte",
2748
- "code": "yt"
4914
+ "name": "Vietnam",
4915
+ "code": "VN",
4916
+ "flag": "🇻🇳"
2749
4917
  }, {
2750
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ff-1f1e6.svg",
2751
- "country": "South Africa",
2752
- "code": "za"
4918
+ "name": "Wallis and Futuna",
4919
+ "code": "WF",
4920
+ "flag": "🇼🇫"
2753
4921
  }, {
2754
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ff-1f1f2.svg",
2755
- "country": "Zambia",
2756
- "code": "zm"
4922
+ "name": "Christmas Island",
4923
+ "code": "CX",
4924
+ "flag": "🇨🇽"
2757
4925
  }, {
2758
- "flag": "https://twemoji.maxcdn.com/2/svg/1f1ff-1f1fc.svg",
2759
- "country": "Zimbabwe",
2760
- "code": "zw"
4926
+ "name": "Western Sahara",
4927
+ "code": "EH",
4928
+ "flag": "🇪🇭"
2761
4929
  }, {
2762
- "flag": "https://twemoji.maxcdn.com/2/svg/1f3f4-e0067-e0062-e0065-e006e-e0067-e007f.svg",
2763
- "country": "England",
2764
- "code": "uk"
4930
+ "name": "Central African Republic",
4931
+ "code": "CF",
4932
+ "flag": "🇨🇫"
2765
4933
  }, {
2766
- "flag": "https://twemoji.maxcdn.com/2/svg/1f3f4-e0067-e0062-e0073-e0063-e0074-e007f.svg",
2767
- "country": "Scotland",
2768
- "code": "uk"
2769
- }, {
2770
- "flag": "https://twemoji.maxcdn.com/2/svg/1f3f4-e0067-e0062-e0077-e006c-e0073-e007f.svg",
2771
- "country": "Wales",
2772
- "code": "uk"
4934
+ "name": "Cyprus",
4935
+ "code": "CY",
4936
+ "flag": "🇨🇾"
2773
4937
  }];
2774
4938
 
2775
4939
  const CountrySelect = ({
@@ -2780,143 +4944,74 @@ const CountrySelect = ({
2780
4944
  defaultValue,
2781
4945
  placeholder
2782
4946
  }) => {
2783
- var _options$filter, _options$filter$;
2784
- const [options, setOptions] = useState(countries);
2785
- const [selected, setSelected] = useState(defaultValue || '');
2786
- const [toggled, toggleDropdown] = useState(false);
2787
- useEffect(() => {
2788
- if (defaultValue) {
2789
- var _countries$filter, _countries$filter$;
2790
- const defaultCountry = ((_countries$filter = countries.filter(({
2791
- country
2792
- }) => country === defaultValue)) === null || _countries$filter === void 0 ? void 0 : (_countries$filter$ = _countries$filter[0]) === null || _countries$filter$ === void 0 ? void 0 : _countries$filter$.country) || '';
2793
- if (defaultCountry) setSelected(defaultCountry);
2794
- }
2795
- }, [defaultValue]);
2796
- const isRequired = validations && validations.required ? true : false;
2797
- const onChange = value => {
2798
- if (value && value.length >= 1) {
2799
- const opts = countries;
2800
- const optsfiltered = opts.filter(({
2801
- country
2802
- }) => country.toLowerCase().includes(value.toLowerCase()));
2803
- setOptions(optsfiltered);
2804
- } else setOptions(countries);
2805
- };
2806
-
2807
- // Validation
2808
- const dispatch = useDispatch();
4947
+ const elInputRef = useRef(null);
4948
+ const [country, setCountry] = useState('');
2809
4949
  const selectFormValidationSent = makeSelectFormValidationSent(formId);
2810
4950
  const formValidationSent = useSelector(selectFormValidationSent);
2811
4951
  const [a11yInvalid, setA11yInvalid] = useState('');
4952
+ const isRequired = validations && validations.required ? true : false;
2812
4953
  useEffect(() => {
2813
- if (formValidationSent) setA11yInvalid(doA11yValidation(selected, field, true));
4954
+ if (formValidationSent) setA11yInvalid(doA11yValidation(country, field, true));
2814
4955
  }, [formValidationSent]);
2815
- const elOptionRef = useRef();
2816
- const elContainerRef = useRef();
2817
- const close = () => toggleDropdown(false);
2818
- useClickOutside(elContainerRef, close);
2819
-
2820
- // Keyboard Navigation
2821
- const isArrowUpPressed = useKeyPress('ArrowUp');
2822
- const isArrowDownPressed = useKeyPress('ArrowDown');
2823
- const isEscapePressed = useKeyPress('Escape');
2824
- const [initState, setInitState] = useState({
2825
- selectedIndex: -1
2826
- });
2827
- const updateState = (type, i) => {
2828
- const max = options.length - 1;
2829
- if (type === 'ARROW_UP') {
2830
- let updatedState = {
2831
- ...initState
2832
- };
2833
- const updatedIndex = updatedState.selectedIndex !== 0 ? updatedState.selectedIndex - 1 : max;
2834
- updatedState.selectedIndex = updatedIndex;
2835
- setInitState(updatedState);
2836
- }
2837
- if (type === 'ARROW_DOWN') {
2838
- let updatedState = {
2839
- ...initState
2840
- };
2841
- const updatedIndex = updatedState.selectedIndex !== max ? updatedState.selectedIndex + 1 : 0;
2842
- updatedState.selectedIndex = updatedIndex;
2843
- setInitState(updatedState);
4956
+ const dispatch = useDispatch();
4957
+ const doUpdate = value => {
4958
+ setCountry(value);
4959
+ dispatch(setValue(formId, id, value));
4960
+ setA11yInvalid(doA11yValidation(value, field, formValidationSent));
4961
+ };
4962
+ const onKeyDown = evt => {
4963
+ if (evt.key === 'Enter') {
4964
+ doUpdate(evt.target.value);
2844
4965
  }
2845
- if (type === 'SELECT') {
2846
- let updatedState = {
2847
- ...initState
4966
+ };
4967
+ useEffect(() => {
4968
+ if (elInputRef !== null && elInputRef !== void 0 && elInputRef.current) {
4969
+ var _elInputRef$current;
4970
+ const combo = new Combobo({
4971
+ input: elInputRef === null || elInputRef === void 0 ? void 0 : elInputRef.current,
4972
+ list: '.input__countries .input__listbox',
4973
+ noResultsText: 'No countries found.',
4974
+ onSelect: value => {
4975
+ doUpdate(value);
4976
+ },
4977
+ onKeyDown: evt => {
4978
+ if (evt.key === 'Escape') combo.close();
4979
+ }
4980
+ });
4981
+ elInputRef === null || elInputRef === void 0 ? void 0 : (_elInputRef$current = elInputRef.current) === null || _elInputRef$current === void 0 ? void 0 : _elInputRef$current.addEventListener('keydown', onKeyDown);
4982
+ return () => {
4983
+ var _elInputRef$current2;
4984
+ elInputRef === null || elInputRef === void 0 ? void 0 : (_elInputRef$current2 = elInputRef.current) === null || _elInputRef$current2 === void 0 ? void 0 : _elInputRef$current2.removeEventListener('keydown', onKeyDown);
4985
+ if (combo && typeof combo.destroy === 'function') combo.destroy();
2848
4986
  };
2849
- updatedState.selectedIndex = i;
2850
- setInitState(updatedState);
2851
4987
  }
2852
- };
4988
+ }, []);
2853
4989
  useEffect(() => {
2854
- if (toggled) {
2855
- if (isArrowDownPressed) updateState('ARROW_DOWN');
2856
- if (isArrowUpPressed) updateState('ARROW_UP');
2857
- if (isEscapePressed) toggleDropdown(false);
2858
- doFocus();
4990
+ if (defaultValue) {
4991
+ setCountry(defaultValue);
4992
+ dispatch(setValue(formId, id, defaultValue));
2859
4993
  }
2860
- }, [toggled, isArrowDownPressed, isArrowUpPressed, isEscapePressed]);
2861
- const doFocus = () => {
2862
- var _element$;
2863
- const attr = `[aria-pressed="true"]`;
2864
- const element = document.querySelectorAll(attr);
2865
- if (element && element.length >= 1) (_element$ = element[0]) === null || _element$ === void 0 ? void 0 : _element$.focus();
2866
- };
4994
+ }, [defaultValue]);
2867
4995
  return /*#__PURE__*/React.createElement(CountrySelectStyled, {
2868
- ref: elContainerRef,
2869
- role: "region",
2870
- id: "country",
2871
- "aria-live": "polite"
2872
- }, /*#__PURE__*/React.createElement("span", {
2873
- className: "country-select__label",
2874
- role: "label",
2875
- "aria-label": `Select a country ${isRequired ? 'required' : 'optional'} ${selected}`,
2876
- htmlFor: "country"
4996
+ className: "input__countries"
4997
+ }, /*#__PURE__*/React.createElement("label", {
4998
+ className: "input__label",
4999
+ htmlFor: "country-searchable-select"
2877
5000
  }, "Select a country", isRequired ? /*#__PURE__*/React.createElement("span", {
2878
5001
  className: "label__required"
2879
5002
  }, "(required)") : /*#__PURE__*/React.createElement("span", {
2880
5003
  className: "label__optional"
2881
- }, "(optional)")), /*#__PURE__*/React.createElement("button", {
2882
- className: "country-select__btn--toggle",
2883
- "aria-controls": "country",
5004
+ }, "(optional)")), /*#__PURE__*/React.createElement("div", {
5005
+ className: "input__wrapper"
5006
+ }, /*#__PURE__*/React.createElement("input", {
5007
+ type: "text",
5008
+ placeholder: placeholder,
5009
+ className: "input",
5010
+ id: "country-searchable-select",
5011
+ ref: elInputRef,
2884
5012
  "aria-invalid": a11yInvalid,
2885
- "aria-expanded": toggled,
2886
- onClick: e => {
2887
- e.preventDefault();
2888
- toggleDropdown(!toggled);
2889
- }
2890
- }, selected ? /*#__PURE__*/React.createElement(React.Fragment, null, selected, selected && /*#__PURE__*/React.createElement("img", {
2891
- src: (_options$filter = options.filter(opt => opt.country === selected)) === null || _options$filter === void 0 ? void 0 : (_options$filter$ = _options$filter[0]) === null || _options$filter$ === void 0 ? void 0 : _options$filter$.flag,
2892
- alt: ""
2893
- })) : /*#__PURE__*/React.createElement(React.Fragment, null, placeholder && /*#__PURE__*/React.createElement("span", null, placeholder)), /*#__PURE__*/React.createElement("span", {
2894
- className: "sr-only"
2895
- }, "Open the Country select searchable dropdown"), /*#__PURE__*/React.createElement("div", {
2896
- className: "country-select__icons"
2897
- }, toggled ? /*#__PURE__*/React.createElement("svg", {
2898
- xmlns: "http://www.w3.org/2000/svg",
2899
- width: "24",
2900
- height: "24",
2901
- fill: "none",
2902
- focusable: "false",
2903
- "aria-hidden": "true",
2904
- role: "presentation"
2905
- }, /*#__PURE__*/React.createElement("path", {
2906
- fill: "#333",
2907
- d: "m7 15 4.293-4.293L15.586 15 17 13.586l-5.707-5.707-5.707 5.707L7 15Z"
2908
- })) : /*#__PURE__*/React.createElement("svg", {
2909
- xmlns: "http://www.w3.org/2000/svg",
2910
- width: "24",
2911
- height: "24",
2912
- fill: "none",
2913
- focusable: "false",
2914
- "aria-hidden": "true",
2915
- role: "presentation"
2916
- }, /*#__PURE__*/React.createElement("path", {
2917
- fill: "#333",
2918
- d: "m16 8-4.293 4.293L7.414 8 6 9.414l5.707 5.707 5.707-5.707L16 8Z"
2919
- })), a11yInvalid == 'true' && /*#__PURE__*/React.createElement("svg", {
5013
+ defaultValue: defaultValue
5014
+ }), a11yInvalid == 'true' && /*#__PURE__*/React.createElement("svg", {
2920
5015
  className: "svg",
2921
5016
  xmlns: "http://www.w3.org/2000/svg",
2922
5017
  focusable: "false",
@@ -2940,130 +5035,29 @@ const CountrySelect = ({
2940
5035
  }, /*#__PURE__*/React.createElement("path", {
2941
5036
  fill: "#333",
2942
5037
  d: "m2 8 4.418 4.667L14 4.659l-1.246-1.326-6.336 6.692-3.18-3.332L2 8Z"
2943
- })))), /*#__PURE__*/React.createElement("div", {
2944
- className: "country-select__wrapper",
2945
- "aria-hidden": !toggled
2946
- }, /*#__PURE__*/React.createElement("label", {
2947
- htmlFor: "search-country-name",
2948
- className: "sr-only"
2949
- }, "Search country name"), /*#__PURE__*/React.createElement("input", {
2950
- id: "search-country-name",
2951
- className: "country-select__input",
2952
- placeholder: "Search country name",
2953
- onChange: e => {
2954
- e.preventDefault();
2955
- onChange(e.target.value);
5038
+ })), /*#__PURE__*/React.createElement("ul", {
5039
+ className: "input__listbox",
5040
+ "aria-labelledby": "List of countries"
5041
+ }, countries.map((country, i) => /*#__PURE__*/React.createElement("li", {
5042
+ key: `${country.code}-${i}`,
5043
+ className: "option",
5044
+ onClick: () => doUpdate(country.name),
5045
+ "aria-labelledby": country.name
5046
+ }, /*#__PURE__*/React.createElement("span", {
5047
+ role: "presentation",
5048
+ style: {
5049
+ display: 'flex',
5050
+ alignItems: 'center'
2956
5051
  }
2957
- }), /*#__PURE__*/React.createElement("ul", {
2958
- id: "contry",
2959
- role: "select",
2960
- name: "country",
2961
- className: "country-select__options"
2962
- }, options.map((option, i) => {
2963
- const isSelected = selected === option.country;
2964
- return /*#__PURE__*/React.createElement("li", {
2965
- key: i,
2966
- "aria-hidden": isSelected,
2967
- "aria-selected": isSelected,
2968
- role: "option"
2969
- }, /*#__PURE__*/React.createElement(CountryOption, {
2970
- onClick: e => {
2971
- e.preventDefault();
2972
- setSelected(option.country);
2973
- dispatch(setValue(formId, id, e.target.value));
2974
- setA11yInvalid(doA11yValidation(e.target.value, field, formValidationSent));
2975
- },
2976
- onKeyDown: e => {
2977
- if (e.key === 'Enter' || e.key === ' ') {
2978
- setSelected(option.country);
2979
- dispatch(setValue(formId, id, e.target.value));
2980
- setA11yInvalid(doA11yValidation(e.target.value, field, formValidationSent));
2981
- updateState('SELECT', i);
2982
- e.target.blur();
2983
- }
2984
- },
2985
- ref: elOptionRef,
2986
- value: option.country,
2987
- "aria-pressed": i === initState.selectedIndex,
2988
- tabIndex: 0
2989
- }, isSelected && /*#__PURE__*/React.createElement("svg", {
2990
- focusable: "false",
2991
- "aria-hidden": "true",
2992
- role: "presentation",
2993
- xmlns: "http://www.w3.org/2000/svg",
2994
- width: "16px",
2995
- height: "16px",
2996
- viewBox: "0 0 24 24",
2997
- fill: "none"
2998
- }, /*#__PURE__*/React.createElement("path", {
2999
- fill: "#333",
3000
- d: "m3 12 6.627 7L21 6.988 19.131 5 9.627 15.038 4.856 10.04 3 12Z"
3001
- })), option.country, /*#__PURE__*/React.createElement("img", {
3002
- src: option.flag,
3003
- alt: ""
3004
- })));
3005
- }))));
3006
- };
3007
- const CountryOption = /*#__PURE__*/forwardRef(({
3008
- onClick,
3009
- onKeyDown,
3010
- value,
3011
- children,
3012
- ...rest
3013
- }, ref) => {
3014
- return /*#__PURE__*/React.createElement("button", _extends({
3015
- className: "country-select__option",
3016
- onClick: onClick,
3017
- onKeyDown: onKeyDown,
3018
- role: "option",
3019
- ref: ref
3020
- }, rest), children);
3021
- });
3022
- const useClickOutside = (ref, callback) => {
3023
- useEffect(() => {
3024
- const element = ref === null || ref === void 0 ? void 0 : ref.current;
3025
- const listener = evt => {
3026
- if (!element || element.contains(evt.target)) return;
3027
- callback(evt);
3028
- };
3029
- document.addEventListener('mousedown', listener);
3030
- document.addEventListener('touchstart', listener);
3031
- return () => {
3032
- document.removeEventListener('mousedown', listener);
3033
- document.removeEventListener('touchstart', listener);
3034
- };
3035
- }, [ref, callback]);
3036
- };
3037
- const useKeyPress = targetKey => {
3038
- const [pressed, setPressed] = useState(false);
3039
- useEffect(() => {
3040
- const onKeydown = e => {
3041
- const keyPressed = e.key;
3042
- if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
3043
- e.preventDefault();
3044
- }
3045
- if (keyPressed === targetKey) setPressed(true);
3046
- };
3047
- const onKeyup = e => {
3048
- const keyPressed = e.key;
3049
- if (keyPressed === targetKey) setPressed(false);
3050
- };
3051
- window.addEventListener('keydown', onKeydown);
3052
- window.addEventListener('keyup', onKeyup);
3053
- return () => {
3054
- window.removeEventListener('keydown', onKeydown);
3055
- window.removeEventListener('keyup', onKeyup);
3056
- };
3057
- }, [targetKey]);
3058
- return pressed;
5052
+ }, /*#__PURE__*/React.createElement("span", null, country.name, ' ', /*#__PURE__*/React.createElement("span", {
5053
+ "aria-hidden": "true"
5054
+ }, country.flag))))))));
3059
5055
  };
3060
5056
  const CountrySelectStyled = styled.div.withConfig({
3061
5057
  displayName: "country__CountrySelectStyled",
3062
5058
  componentId: "sc-93yqgk-0"
3063
- })(["", ";"], ({
3064
- theme
3065
- }) => {
3066
- return css(["div[aria-hidden=\"true\"]{display:none;}[aria-invalid='true']{background:#F9D7D7!important;border:1px solid #ca2121 !important;}[aria-invalid='false']{background:#D5FCE9 !important;border:1px solid #008A48 !important;}.country-select__label{display:block;margin:0 0 8px;}.country-select__wrapper{padding:16px 8px;margin:8px 0 0;}.country-select__btn--toggle{padding:8px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-family:inherit;background:#fff;border-radius:3px;border:1px solid #949494;height:40px;width:100%;max-width:100%;padding:8px;.country-select__icons{margin-left:auto;display:flex;align-items:center;}}.country-select__input{margin:0 8px 16px;font-family:inherit;background-color:#fff;border-radius:3px;border:1px solid #949494;height:40px;width:100%;max-width:calc(100% - 16px);padding:8px;}.country-select__options{overflow-y:scroll;height:247px;list-style:none;padding:0;margin:0;}.country-select__option{padding:8px;display:flex;align-items:center;cursor:pointer;background:transparent;border:none;width:100%;svg{margin-right:4px;}}img{margin-left:4px;width:16px;height:16px;}.required{color:", ";}"], theme.colors.red_darker);
5059
+ })(["", ";"], () => {
5060
+ return css(["display:flex;flex-direction:column;--semantic-type-1:#01010c;--semantic-background-1:#fff;--semantic-active-background-1:#efefef;--semantic-border-1:#949494;.input__label{margin-bottom:4px;}.input__wrapper{position:relative;}.input__listbox{display:none;position:absolute;top:40px;left:0;width:100%;padding:8px;background:var(--semantic-background-1);z-index:99;text-align:left;overflow-y:auto;border:1px solid var(--semantic-border-1);max-height:400px;}.input__listbox.open{display:block;}.input__listbox .option{padding:8px;cursor:default;display:flex;align-items:center;border:none;width:100%;}.input__listbox .option.selected{color:var(--semantic-type-1);background-color:var(--semantic-active-background-1);}.input__listbox .option.active{color:var(--semantic-type-1);background-color:var(--semantic-active-background-1);}"]);
3067
5061
  });
3068
5062
 
3069
5063
  const FormComposer = ({