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