@zengenti/contensis-react-base 3.2.3-beta.0 → 3.2.3-beta.10

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.
Files changed (108) hide show
  1. package/cjs/{App-D2_FqsUD.js → App-B9Sxnrpa.js} +48 -26
  2. package/cjs/App-B9Sxnrpa.js.map +1 -0
  3. package/cjs/{ChangePassword.container-DrO8p-7S.js → ChangePassword.container-Dup9_na7.js} +7 -4
  4. package/cjs/ChangePassword.container-Dup9_na7.js.map +1 -0
  5. package/cjs/{CookieHelper.class-CNL3lC5D.js → CookieHelper.class-CxeVo9EP.js} +3 -1
  6. package/cjs/CookieHelper.class-CxeVo9EP.js.map +1 -0
  7. package/cjs/{RouteLoader-BrUuhdcK.js → RouteLoader-zFf-UX6s.js} +2 -2
  8. package/cjs/{RouteLoader-BrUuhdcK.js.map → RouteLoader-zFf-UX6s.js.map} +1 -1
  9. package/cjs/{SSRContext-CmXDzwPL.js → SSRContext-DpnwQ2te.js} +3 -3
  10. package/{esm/SSRContext-BoisoiyV.js.map → cjs/SSRContext-DpnwQ2te.js.map} +1 -1
  11. package/cjs/ToJs-C9jwV7YB.js.map +1 -1
  12. package/cjs/client.js +7 -7
  13. package/cjs/client.js.map +1 -1
  14. package/cjs/contensis-react-base.js +2913 -2061
  15. package/cjs/contensis-react-base.js.map +1 -1
  16. package/cjs/forms.js +2199 -2190
  17. package/cjs/forms.js.map +1 -1
  18. package/cjs/{fromJSLeaveImmer-Drk6JyYs.js → fromJSLeaveImmer-Blvlk4t2.js} +2 -3
  19. package/cjs/{fromJSLeaveImmer-Drk6JyYs.js.map → fromJSLeaveImmer-Blvlk4t2.js.map} +1 -1
  20. package/cjs/redux.js +2 -2
  21. package/cjs/redux.js.map +1 -1
  22. package/cjs/routing.js +4 -4
  23. package/cjs/sagas-DFdRjqSX.js.map +1 -1
  24. package/cjs/search.js.map +1 -1
  25. package/cjs/selectors-wCs5fHD4.js.map +1 -1
  26. package/cjs/{store-D8dJBaFw.js → store-BihH67lI.js} +2 -2
  27. package/cjs/{store-D8dJBaFw.js.map → store-BihH67lI.js.map} +1 -1
  28. package/cjs/urls-DVIwGZmd.js.map +1 -1
  29. package/cjs/user.js +2 -2
  30. package/cjs/user.js.map +1 -1
  31. package/cjs/util.js +32 -23
  32. package/cjs/util.js.map +1 -1
  33. package/cjs/version-CM-bJ62L.js.map +1 -1
  34. package/cjs/{version-DSW6Roy9.js → version-Cg79mdPg.js} +2 -2
  35. package/cjs/{version-DSW6Roy9.js.map → version-Cg79mdPg.js.map} +1 -1
  36. package/esm/{App-BE7fh-wb.js → App-BttCZ664.js} +48 -26
  37. package/esm/App-BttCZ664.js.map +1 -0
  38. package/esm/{ChangePassword.container-6fQXhkzW.js → ChangePassword.container-Bcpef423.js} +7 -4
  39. package/esm/ChangePassword.container-Bcpef423.js.map +1 -0
  40. package/esm/{CookieHelper.class-DqJ_o1jL.js → CookieHelper.class-W_NNNJKT.js} +3 -2
  41. package/esm/CookieHelper.class-W_NNNJKT.js.map +1 -0
  42. package/esm/{RouteLoader-BNKfOnU8.js → RouteLoader-De1Q8gFr.js} +2 -2
  43. package/esm/{RouteLoader-BNKfOnU8.js.map → RouteLoader-De1Q8gFr.js.map} +1 -1
  44. package/esm/{SSRContext-BoisoiyV.js → SSRContext-3TvaCDn0.js} +3 -3
  45. package/{cjs/SSRContext-CmXDzwPL.js.map → esm/SSRContext-3TvaCDn0.js.map} +1 -1
  46. package/esm/ToJs-B4MH53fx.js.map +1 -1
  47. package/esm/client.js +8 -8
  48. package/esm/client.js.map +1 -1
  49. package/esm/contensis-react-base.js +2914 -2062
  50. package/esm/contensis-react-base.js.map +1 -1
  51. package/esm/forms.js +2200 -2191
  52. package/esm/forms.js.map +1 -1
  53. package/esm/{fromJSLeaveImmer-DfnbPBKC.js → fromJSLeaveImmer-C_YACmOf.js} +2 -3
  54. package/esm/{fromJSLeaveImmer-DfnbPBKC.js.map → fromJSLeaveImmer-C_YACmOf.js.map} +1 -1
  55. package/esm/redux.js +4 -4
  56. package/esm/redux.js.map +1 -1
  57. package/esm/routing.js +4 -4
  58. package/esm/sagas-waBQR0Ek.js.map +1 -1
  59. package/esm/search.js.map +1 -1
  60. package/esm/selectors-BRzliwbK.js.map +1 -1
  61. package/esm/{store-Cr0lmZNr.js → store-f0WxNWUu.js} +2 -2
  62. package/esm/{store-Cr0lmZNr.js.map → store-f0WxNWUu.js.map} +1 -1
  63. package/esm/urls-DfCisos-.js.map +1 -1
  64. package/esm/user.js +3 -3
  65. package/esm/user.js.map +1 -1
  66. package/esm/util.js +32 -23
  67. package/esm/util.js.map +1 -1
  68. package/esm/version-78jjDnHU.js.map +1 -1
  69. package/esm/{version-CB7rIyoF.js → version-BnnERhzW.js} +2 -2
  70. package/esm/{version-CB7rIyoF.js.map → version-BnnERhzW.js.map} +1 -1
  71. package/models/app/App.d.ts +2 -2
  72. package/models/app/pages/VersionInfo/components/VersionInfo.d.ts +2 -2
  73. package/models/redux/actions/index.d.ts +2 -2
  74. package/models/redux/selectors/index.d.ts +2 -2
  75. package/models/redux/store/injectors.d.ts +4 -4
  76. package/models/redux/types/index.d.ts +2 -2
  77. package/models/redux/types/navigation.d.ts +3 -3
  78. package/models/redux/types/version.d.ts +2 -2
  79. package/models/routing/components/Loading.d.ts +2 -2
  80. package/models/routing/components/NotFound.d.ts +2 -2
  81. package/models/routing/components/Status.d.ts +2 -2
  82. package/models/routing/redux/types.d.ts +11 -11
  83. package/models/search/models/Search.d.ts +1 -1
  84. package/models/search/transformations/searchresult-to-state.mapper.d.ts +1 -2
  85. package/models/server/features/static-assets/index.d.ts +1 -1
  86. package/models/user/components/Login.d.ts +2 -1
  87. package/models/user/components/LoginForm.d.ts +7 -6
  88. package/models/user/components/LogoutForm.d.ts +5 -4
  89. package/models/user/containers/ChangePassword.container.d.ts +1 -1
  90. package/models/user/containers/ForgotPassword.container.d.ts +1 -1
  91. package/models/user/containers/Login.container.d.ts +1 -1
  92. package/models/user/containers/Registration.container.d.ts +1 -1
  93. package/models/user/hocs/withLogin.d.ts +1 -1
  94. package/models/user/hocs/withRegistration.d.ts +1 -1
  95. package/models/user/redux/types.d.ts +21 -21
  96. package/models/user/util/CookieConstants.d.ts +1 -0
  97. package/models/user/util/LoginHelper.class.d.ts +1 -4
  98. package/models/util/ContensisDeliveryApi.d.ts +1 -0
  99. package/models/util/SSRContext.d.ts +4 -5
  100. package/models/util/ToJs.d.ts +1 -1
  101. package/models/util/json-mapper.d.ts +3 -3
  102. package/package.json +62 -63
  103. package/cjs/App-D2_FqsUD.js.map +0 -1
  104. package/cjs/ChangePassword.container-DrO8p-7S.js.map +0 -1
  105. package/cjs/CookieHelper.class-CNL3lC5D.js.map +0 -1
  106. package/esm/App-BE7fh-wb.js.map +0 -1
  107. package/esm/ChangePassword.container-6fQXhkzW.js.map +0 -1
  108. package/esm/CookieHelper.class-DqJ_o1jL.js.map +0 -1
package/cjs/forms.js CHANGED
@@ -1845,2226 +1845,2235 @@ EntryPicker.propTypes = {
1845
1845
  formId: PropTypes__default.default.string
1846
1846
  };
1847
1847
 
1848
- var dist = {exports: {}};
1848
+ var dist$1 = {exports: {}};
1849
1849
 
1850
- (function (module, exports) {
1851
- !function (t, e) {
1852
- module.exports = e() ;
1853
- }("undefined" != typeof self ? self : _commonjsHelpers.commonjsGlobal, function () {
1854
- return function (t) {
1855
- var e = {};
1856
- function n(r) {
1857
- if (e[r]) return e[r].exports;
1858
- var i = e[r] = {
1859
- i: r,
1860
- l: !1,
1861
- exports: {}
1862
- };
1863
- return t[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports;
1864
- }
1865
- return n.m = t, n.c = e, n.d = function (t, e, r) {
1866
- n.o(t, e) || Object.defineProperty(t, e, {
1867
- configurable: !1,
1868
- enumerable: !0,
1869
- get: r
1870
- });
1871
- }, n.n = function (t) {
1872
- var e = t && t.__esModule ? function () {
1873
- return t.default;
1874
- } : function () {
1875
- return t;
1876
- };
1877
- return n.d(e, "a", e), e;
1878
- }, n.o = function (t, e) {
1879
- return Object.prototype.hasOwnProperty.call(t, e);
1880
- }, n.p = "", n(n.s = 2);
1881
- }([function (t, e) {
1882
- var n;
1883
- n = function () {
1884
- return this;
1885
- }();
1886
- try {
1887
- n = n || Function("return this")() || (0, eval)("this");
1888
- } catch (t) {
1889
- "object" == typeof window && (n = window);
1890
- }
1891
- t.exports = n;
1892
- }, function (t, e, n) {
1850
+ var dist = dist$1.exports;
1893
1851
 
1894
- t.exports = u;
1895
- var r = n(3),
1896
- i = n(4),
1897
- o = Array.prototype;
1898
- function u(t) {
1899
- if (!(this instanceof u)) return new u(t);
1900
- var e,
1901
- n = i(t.className).split(/\s+/);
1902
- for (this._elem = t, this.length = 0, e = 0; e < n.length; e += 1) n[e] && o.push.call(this, n[e]);
1903
- }
1904
- u.prototype.add = function () {
1905
- var t, e;
1906
- for (e = 0; e < arguments.length; e += 1) t = "" + arguments[e], r(this, t) >= 0 || o.push.call(this, t);
1907
- return this._elem.className = this.toString(), this;
1908
- }, u.prototype.remove = function () {
1909
- var t, e, n;
1910
- for (n = 0; n < arguments.length; n += 1) e = "" + arguments[n], (t = r(this, e)) < 0 || o.splice.call(this, t, 1);
1911
- return this._elem.className = this.toString(), this;
1912
- }, u.prototype.contains = function (t) {
1913
- return r(this, t += "") >= 0;
1914
- }, u.prototype.toggle = function (t, e) {
1915
- return t += "", !0 === e ? this.add(t) : !1 === e ? this.remove(t) : this[this.contains(t) ? "remove" : "add"](t);
1916
- }, u.prototype.toString = function () {
1917
- return o.join.call(this, " ");
1918
- };
1919
- }, function (t, e, n) {
1852
+ var hasRequiredDist;
1920
1853
 
1921
- var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
1922
- return typeof t;
1923
- } : function (t) {
1924
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1925
- },
1926
- i = function () {
1927
- function t(t, e) {
1928
- for (var n = 0; n < e.length; n++) {
1929
- var r = e[n];
1930
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1931
- }
1932
- }
1933
- return function (e, n, r) {
1934
- return n && t(e.prototype, n), r && t(e, r), e;
1935
- };
1936
- }(),
1937
- o = E(n(1)),
1938
- u = E(n(5)),
1939
- s = E(n(6)),
1940
- a = E(n(7)),
1941
- c = E(n(8)),
1942
- f = E(n(9)),
1943
- l = E(n(10)),
1944
- h = E(n(12)),
1945
- p = E(n(14)),
1946
- d = E(n(15)),
1947
- g = E(n(17)),
1948
- y = E(n(18)),
1949
- v = E(n(19)),
1950
- m = E(n(31)),
1951
- b = E(n(32)),
1952
- w = E(n(35));
1953
- function E(t) {
1954
- return t && t.__esModule ? t : {
1955
- default: t
1956
- };
1957
- }
1958
- t.exports = function () {
1959
- function t(e) {
1960
- var n = this;
1961
- if (function (t, e) {
1962
- if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
1963
- }(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) {
1964
- var r = (0, d.default)(this.config.groups, !0, this.list);
1965
- this.groups = r.map(function (t) {
1966
- return {
1967
- element: t,
1968
- options: n.cachedOpts.filter(function (e) {
1969
- return t.contains(e);
1970
- })
1971
- };
1972
- });
1973
- }
1974
- if (!this.input || !this.list) throw new Error("Unable to find required elements (list/input)");
1975
- (0, v.default)(this.input, this.list, this.cachedOpts), this.config.useLiveRegion && (this.liveRegion = new s.default({
1976
- ariaLive: "assertive"
1977
- })), this.initEvents();
1978
- }
1979
- return i(t, [{
1980
- key: "initEvents",
1981
- value: function () {
1982
- var t = this;
1983
- (0, u.default)(this), this.optionsWithKeyEventHandlers.has(this.input) || (this.input.addEventListener("click", function () {
1984
- t.openList().goTo(t.getOptIndex() || 0);
1985
- }), this.input.addEventListener("blur", function () {
1986
- t.isHovering || t.closeList();
1987
- }), this.input.addEventListener("focus", function () {
1988
- t.selected.length && (t.input.value = t.selected.length >= 2 ? "" : t.config.selectionValue(t.selected)), t.input.select();
1989
- }), document.addEventListener("click", function (e) {
1990
- !(0, p.default)(e.target, [t.input, t.list], !0) && t.isOpen && t.closeList();
1991
- })), this.optionEvents(), this.initKeys();
1992
- }
1993
- }, {
1994
- key: "getOptIndex",
1995
- value: function () {
1996
- return this.currentOption && this.currentOpts.indexOf(this.currentOption);
1997
- }
1998
- }, {
1999
- key: "optionEvents",
2000
- value: function () {
2001
- var t = this;
2002
- this.cachedOpts.forEach(function (e) {
2003
- t.optionsWithEventHandlers.has(e.id) || t.selected.includes(e) || (e.addEventListener("click", function () {
2004
- t.goTo(t.currentOpts.indexOf(e)).select();
2005
- }), e.addEventListener("mouseover", function () {
2006
- var n = t.currentOption;
2007
- n && (0, o.default)(n).remove(t.config.activeClass), (0, o.default)(e).add(t.config.activeClass), t.isHovering = !0;
2008
- }), e.addEventListener("mouseout", function () {
2009
- (0, o.default)(e).remove(t.config.activeClass), t.isHovering = !1;
2010
- }), t.optionsWithEventHandlers.add(e.id));
2011
- });
2012
- }
2013
- }, {
2014
- key: "openList",
2015
- value: function () {
2016
- (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");
2017
- var t = (0, f.default)(this.list);
2018
- if (!t.visible) {
2019
- var e = "bottom" === t.position ? 0 - (window.innerHeight - (this.input.clientHeight + this.list.clientHeight)) : 0;
2020
- (0, a.default)({
2021
- element: this.input,
2022
- offset: e,
2023
- bezier: [.19, 1, .22, 1],
2024
- duration: 100
2025
- });
2026
- }
2027
- return this;
2028
- }
2029
- }, {
2030
- key: "closeList",
2031
- value: function (t, e) {
2032
- 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;
2033
- }
2034
- }, {
2035
- key: "initKeys",
2036
- value: function () {
2037
- var t = this;
2038
- if (!this.optionsWithKeyEventHandlers.has(this.input)) {
2039
- this.optionsWithKeyEventHandlers.add(this.input), h.default.down(this.input, [{
2040
- keys: ["up", "down"],
2041
- callback: function (e, n) {
2042
- if (t.isOpen) return -1 === t.currentOpts.indexOf(t.currentOption) ? t.goTo(0, !0) : t.goTo("down" === n ? "next" : "prev", !0);
2043
- var r = t.selected.length ? t.currentOpts.indexOf(t.selected[t.selected.length - 1]) : 0;
2044
- t.goTo(r, !0).openList();
2045
- },
2046
- preventDefault: !0
2047
- }, {
2048
- keys: ["enter"],
2049
- callback: function (e) {
2050
- t.isOpen && (e.preventDefault(), e.stopPropagation(), t.select());
2051
- }
2052
- }, {
2053
- keys: ["escape"],
2054
- callback: function (e) {
2055
- t.isOpen && (e.stopPropagation(), t.closeList(!0, !0));
2056
- }
2057
- }, {
2058
- keys: ["backspace"],
2059
- callback: function () {
2060
- t.selected.length >= 2 && (t.input.value = "");
2061
- }
2062
- }]);
2063
- var e = [9, 13, 27, 16];
2064
- h.default.up(this.input, function (n) {
2065
- if (t.autoFilter) {
2066
- var r = t.config.filter,
2067
- i = t.cachedInputValue;
2068
- 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));
2069
- }
2070
- });
2071
- }
2072
- }
2073
- }, {
2074
- key: "clearFilters",
2075
- value: function () {
2076
- return this.cachedOpts.forEach(function (t) {
2077
- return t.style.display = "";
2078
- }), this.groups.forEach(function (t) {
2079
- return t.element.style.display = "";
2080
- }), this.currentOpts = this.cachedOpts, this;
2081
- }
2082
- }, {
2083
- key: "filter",
2084
- value: function (t) {
2085
- var e = this,
2086
- n = this.config.filter,
2087
- r = this.currentOpts;
2088
- 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) {
2089
- return e.currentOpts.indexOf(t) > -1;
2090
- }) || t || this.announceCount(), this;
2091
- }
2092
- }, {
2093
- key: "announceCount",
2094
- value: function () {
2095
- var t = this.config.announcement && this.config.announcement.count;
2096
- return t && this.liveRegion && this.liveRegion.announce(t(this.currentOpts.length), 500), this;
2097
- }
2098
- }, {
2099
- key: "updateOpts",
2100
- value: function () {
2101
- var t = this,
2102
- e = this.config.optionValue;
2103
- return this.cachedOpts.forEach(function (n) {
2104
- n.style.display = -1 === t.currentOpts.indexOf(n) ? "none" : "", n.innerHTML = "string" == typeof e ? (0, m.default)(n, t.input, e) : e(n);
2105
- }), this.updateGroups(), this;
2106
- }
2107
- }, {
2108
- key: "updateGroups",
2109
- value: function () {
2110
- return this.groups.forEach(function (t) {
2111
- var e = t.options.filter(function (t) {
2112
- return "" === t.style.display;
2113
- });
2114
- t.element.style.display = e.length ? "" : "none";
2115
- }), this;
2116
- }
2117
- }, {
2118
- key: "select",
2119
- value: function () {
2120
- var t = this,
2121
- e = this.currentOption;
2122
- if (e) {
2123
- !this.config.multiselect && this.selected.length && (0, o.default)(this.selected[0]).remove(this.config.selectedClass);
2124
- var n = this.selected.indexOf(e),
2125
- r = n > -1;
2126
- 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) {
2127
- e.setAttribute("aria-selected", t.selected.indexOf(e) > -1 ? "true" : "false");
2128
- }), r ? (e.classList.remove(this.config.selectedClass), this.emit("deselection", {
2129
- text: this.input.value,
2130
- option: e
2131
- })) : (e.classList.add(this.config.selectedClass), this.emit("selection", {
2132
- text: this.input.value,
2133
- option: e
2134
- })), 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;
2135
- }
2136
- }
2137
- }, {
2138
- key: "reset",
2139
- value: function () {
2140
- var t = this;
2141
- 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) {
2142
- (0, o.default)(e).remove(t.config.selectedClass), (0, o.default)(e).remove(t.config.activeClass), e.setAttribute("aria-selected", "false");
2143
- }), this;
2144
- }
2145
- }, {
2146
- key: "goTo",
2147
- value: function (t, e) {
2148
- var n = this;
2149
- if ("string" == typeof t) {
2150
- var r = this.getOptIndex();
2151
- return this.goTo("next" === t ? r + 1 : r - 1, e);
2152
- }
2153
- var i = this.currentOpts[t],
2154
- o = !1;
2155
- if (!this.currentOpts[t]) return 0 === this.getOptIndex() && (this.list.scrollTop = 0), this;
2156
- if (this.groups.length) {
2157
- var u = (0, g.default)(this.groups, i);
2158
- o = u && u !== this.currentGroup, this.currentGroup = u;
2159
- }
2160
- return this.currentOption = i, this.pseudoFocus(o), this.currentOpts.forEach(function (t) {
2161
- t.classList.contains(n.config.activeClass) && !(0, c.default)(n.list, t) && (0, a.default)(t);
2162
- }), this;
2163
- }
2164
- }, {
2165
- key: "pseudoFocus",
2166
- value: function (t) {
2167
- var e = this.currentOption,
2168
- n = this.config.activeClass,
2169
- r = this.input.getAttribute("data-active-option"),
2170
- i = r && document.getElementById(r);
2171
- 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;
2172
- }
2173
- }, {
2174
- key: "setOptions",
2175
- value: function (t) {
2176
- 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;
2177
- }
2178
- }, {
2179
- key: "setCurrentOptions",
2180
- value: function () {
2181
- return this.currentOption = this.currentOpts[0], this;
2182
- }
2183
- }, {
2184
- key: "updateSelectedOptions",
2185
- value: function () {
2186
- var t = this,
2187
- e = document.getElementById(this.config.list.id),
2188
- n = this.selected;
2189
- for (this.emptyDropdownList(); e.hasChildNodes();) e.removeChild(e.firstChild);
2190
- return n.length > 0 && n.forEach(function (e) {
2191
- t.setOptions(e);
2192
- }), this;
2193
- }
2194
- }, {
2195
- key: "emptyDropdownList",
2196
- value: function () {
2197
- return this.currentOpts = [], this.cachedOpts = [], this.optionsWithEventHandlers.clear(), this;
2198
- }
2199
- }, {
2200
- key: "setNoResultFound",
2201
- value: function () {
2202
- (0, y.default)(this.list, this.currentOpts, this.config.noResultsText);
2203
- }
2204
- }]), t;
2205
- }();
2206
- }, function (t, e) {
2207
- t.exports = function (t, e) {
2208
- if (t.indexOf) return t.indexOf(e);
2209
- for (var n = 0; n < t.length; ++n) if (t[n] === e) return n;
2210
- return -1;
2211
- };
2212
- }, function (t, e) {
2213
- (e = t.exports = function (t) {
2214
- return t.replace(/^\s*|\s*$/g, "");
2215
- }).left = function (t) {
2216
- return t.replace(/^\s*/, "");
2217
- }, e.right = function (t) {
2218
- return t.replace(/\s*$/, "");
2219
- };
2220
- }, function (t, e, n) {
2221
- function r(t) {
2222
- if (t) return function (t) {
2223
- for (var e in r.prototype) t[e] = r.prototype[e];
2224
- return t;
2225
- }(t);
2226
- }
2227
- t.exports = r, r.prototype.on = r.prototype.addEventListener = function (t, e) {
2228
- return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(e), this;
2229
- }, r.prototype.once = function (t, e) {
2230
- function n() {
2231
- this.off(t, n), e.apply(this, arguments);
2232
- }
2233
- return n.fn = e, this.on(t, n), this;
2234
- }, r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function (t, e) {
2235
- if (this._callbacks = this._callbacks || {}, 0 == arguments.length) return this._callbacks = {}, this;
2236
- var n,
2237
- r = this._callbacks["$" + t];
2238
- if (!r) return this;
2239
- if (1 == arguments.length) return delete this._callbacks["$" + t], this;
2240
- for (var i = 0; i < r.length; i++) if ((n = r[i]) === e || n.fn === e) {
2241
- r.splice(i, 1);
2242
- break;
2243
- }
2244
- return this;
2245
- }, r.prototype.emit = function (t) {
2246
- this._callbacks = this._callbacks || {};
2247
- var e = [].slice.call(arguments, 1),
2248
- n = this._callbacks["$" + t];
2249
- if (n) for (var r = 0, i = (n = n.slice(0)).length; r < i; ++r) n[r].apply(this, e);
2250
- return this;
2251
- }, r.prototype.listeners = function (t) {
2252
- return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [];
2253
- }, r.prototype.hasListeners = function (t) {
2254
- return !!this.listeners(t).length;
2255
- };
2256
- }, function (t, e, n) {
1854
+ function requireDist () {
1855
+ if (hasRequiredDist) return dist$1.exports;
1856
+ hasRequiredDist = 1;
1857
+ (function (module, exports) {
1858
+ !function (t, e) {
1859
+ module.exports = e() ;
1860
+ }("undefined" != typeof self ? self : dist, function () {
1861
+ return function (t) {
1862
+ var e = {};
1863
+ function n(r) {
1864
+ if (e[r]) return e[r].exports;
1865
+ var i = e[r] = {
1866
+ i: r,
1867
+ l: !1,
1868
+ exports: {}
1869
+ };
1870
+ return t[r].call(i.exports, i, i.exports, n), i.l = !0, i.exports;
1871
+ }
1872
+ return n.m = t, n.c = e, n.d = function (t, e, r) {
1873
+ n.o(t, e) || Object.defineProperty(t, e, {
1874
+ configurable: !1,
1875
+ enumerable: !0,
1876
+ get: r
1877
+ });
1878
+ }, n.n = function (t) {
1879
+ var e = t && t.__esModule ? function () {
1880
+ return t.default;
1881
+ } : function () {
1882
+ return t;
1883
+ };
1884
+ return n.d(e, "a", e), e;
1885
+ }, n.o = function (t, e) {
1886
+ return Object.prototype.hasOwnProperty.call(t, e);
1887
+ }, n.p = "", n(n.s = 2);
1888
+ }([function (t, e) {
1889
+ var n;
1890
+ n = function () {
1891
+ return this;
1892
+ }();
1893
+ try {
1894
+ n = n || Function("return this")() || (0, eval)("this");
1895
+ } catch (t) {
1896
+ "object" == typeof window && (n = window);
1897
+ }
1898
+ t.exports = n;
1899
+ }, function (t, e, n) {
2257
1900
 
2258
- function r(t) {
2259
- this.region = document.createElement("div"), this.options = t || {}, this.configure(), document.body.appendChild(this.region);
2260
- }
2261
- r.prototype.configure = function () {
2262
- var t = this.options,
2263
- e = this.region;
2264
- 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";
2265
- }, r.prototype.announce = function (t, e) {
2266
- var n = document.createElement("div");
2267
- n.innerHTML = t, this.region.appendChild(n), (e || void 0 === e) && setTimeout(function () {
2268
- this.region.removeChild(n);
2269
- }.bind(this), e || 7e3);
2270
- }, t.exports = r;
2271
- }, function (t, e, n) {
2272
- var r;
2273
- r = function () {
2274
- return function (t) {
2275
- function e(r) {
2276
- if (n[r]) return n[r].exports;
2277
- var i = n[r] = {
2278
- i: r,
2279
- l: !1,
2280
- exports: {}
2281
- };
2282
- return t[r].call(i.exports, i, i.exports, e), i.l = !0, i.exports;
2283
- }
2284
- var n = {};
2285
- return e.m = t, e.c = n, e.i = function (t) {
2286
- return t;
2287
- }, e.d = function (t, n, r) {
2288
- e.o(t, n) || Object.defineProperty(t, n, {
2289
- configurable: !1,
2290
- enumerable: !0,
2291
- get: r
2292
- });
2293
- }, e.n = function (t) {
2294
- var n = t && t.__esModule ? function () {
2295
- return t.default;
2296
- } : function () {
2297
- return t;
2298
- };
2299
- return e.d(n, "a", n), n;
2300
- }, e.o = function (t, e) {
2301
- return Object.prototype.hasOwnProperty.call(t, e);
2302
- }, e.p = "", e(e.s = 1);
2303
- }([function (t, e, n) {
1901
+ t.exports = u;
1902
+ var r = n(3),
1903
+ i = n(4),
1904
+ o = Array.prototype;
1905
+ function u(t) {
1906
+ if (!(this instanceof u)) return new u(t);
1907
+ var e,
1908
+ n = i(t.className).split(/\s+/);
1909
+ for (this._elem = t, this.length = 0, e = 0; e < n.length; e += 1) n[e] && o.push.call(this, n[e]);
1910
+ }
1911
+ u.prototype.add = function () {
1912
+ var t, e;
1913
+ for (e = 0; e < arguments.length; e += 1) t = "" + arguments[e], r(this, t) >= 0 || o.push.call(this, t);
1914
+ return this._elem.className = this.toString(), this;
1915
+ }, u.prototype.remove = function () {
1916
+ var t, e, n;
1917
+ for (n = 0; n < arguments.length; n += 1) e = "" + arguments[n], (t = r(this, e)) < 0 || o.splice.call(this, t, 1);
1918
+ return this._elem.className = this.toString(), this;
1919
+ }, u.prototype.contains = function (t) {
1920
+ return r(this, t += "") >= 0;
1921
+ }, u.prototype.toggle = function (t, e) {
1922
+ return t += "", !0 === e ? this.add(t) : !1 === e ? this.remove(t) : this[this.contains(t) ? "remove" : "add"](t);
1923
+ }, u.prototype.toString = function () {
1924
+ return o.join.call(this, " ");
1925
+ };
1926
+ }, function (t, e, n) {
2304
1927
 
2305
- function r(t) {
2306
- return t && t.__esModule ? t : {
2307
- default: t
2308
- };
2309
- }
2310
- function i() {}
2311
- Object.defineProperty(e, "__esModule", {
2312
- value: !0
2313
- });
2314
- var o = r(n(4)),
2315
- u = r(n(7)),
2316
- s = n(2),
2317
- a = r(n(3)),
2318
- c = [.19, 1, .22, 1];
2319
- e.default = function (t) {
2320
- var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 100,
2321
- n = 0,
2322
- r = void 0,
2323
- f = void 0;
2324
- if ((0, s.isElement)(t)) r = o.default.apply(void 0, c), f = i;else {
2325
- if (!(0, s.isObject)(t)) throw new TypeError("The first argument must be HTMLElement or Object.");
2326
- if (!(0, s.isElement)(t.element)) throw new TypeError("`element` must be HTMLElement.");
2327
- 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) {
2328
- if (Array.isArray(t)) {
2329
- for (var e = 0, n = Array(t.length); e < t.length; e++) n[e] = t[e];
2330
- return n;
2331
- }
2332
- return Array.from(t);
2333
- }(t.bezier)) : o.default.apply(void 0, c), e = t.duration, f = (0, s.isFunction)(t.then) ? t.then : i, t = t.element;
2334
- }
2335
- (!(0, s.isNumeric)(e) || e < 0) && (e = 100);
2336
- var l = (0, a.default)(t),
2337
- h = l.scrollTop,
2338
- p = l.offsetTop,
2339
- d = null,
2340
- g = ("BODY" === l.nodeName ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset || document.body.scrollTop) - p : t.offsetTop - p) - h + n;
2341
- (0, u.default)(function t(n) {
2342
- null === d && (d = n);
2343
- var i = n - d,
2344
- o = r(i / e) * g;
2345
- l.scrollTop = Math.round(h + o), i < e ? (0, u.default)(t) : f();
2346
- });
2347
- };
2348
- }, function (t, e, n) {
1928
+ var r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
1929
+ return typeof t;
1930
+ } : function (t) {
1931
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
1932
+ },
1933
+ i = function () {
1934
+ function t(t, e) {
1935
+ for (var n = 0; n < e.length; n++) {
1936
+ var r = e[n];
1937
+ r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(t, r.key, r);
1938
+ }
1939
+ }
1940
+ return function (e, n, r) {
1941
+ return n && t(e.prototype, n), r && t(e, r), e;
1942
+ };
1943
+ }(),
1944
+ o = E(n(1)),
1945
+ u = E(n(5)),
1946
+ s = E(n(6)),
1947
+ a = E(n(7)),
1948
+ c = E(n(8)),
1949
+ f = E(n(9)),
1950
+ l = E(n(10)),
1951
+ h = E(n(12)),
1952
+ p = E(n(14)),
1953
+ d = E(n(15)),
1954
+ g = E(n(17)),
1955
+ y = E(n(18)),
1956
+ v = E(n(19)),
1957
+ m = E(n(31)),
1958
+ b = E(n(32)),
1959
+ w = E(n(35));
1960
+ function E(t) {
1961
+ return t && t.__esModule ? t : {
1962
+ default: t
1963
+ };
1964
+ }
1965
+ t.exports = function () {
1966
+ function t(e) {
1967
+ var n = this;
1968
+ if (function (t, e) {
1969
+ if (!(t instanceof e)) throw new TypeError("Cannot call a class as a function");
1970
+ }(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) {
1971
+ var r = (0, d.default)(this.config.groups, !0, this.list);
1972
+ this.groups = r.map(function (t) {
1973
+ return {
1974
+ element: t,
1975
+ options: n.cachedOpts.filter(function (e) {
1976
+ return t.contains(e);
1977
+ })
1978
+ };
1979
+ });
1980
+ }
1981
+ if (!this.input || !this.list) throw new Error("Unable to find required elements (list/input)");
1982
+ (0, v.default)(this.input, this.list, this.cachedOpts), this.config.useLiveRegion && (this.liveRegion = new s.default({
1983
+ ariaLive: "assertive"
1984
+ })), this.initEvents();
1985
+ }
1986
+ return i(t, [{
1987
+ key: "initEvents",
1988
+ value: function () {
1989
+ var t = this;
1990
+ (0, u.default)(this), this.optionsWithKeyEventHandlers.has(this.input) || (this.input.addEventListener("click", function () {
1991
+ t.openList().goTo(t.getOptIndex() || 0);
1992
+ }), this.input.addEventListener("blur", function () {
1993
+ t.isHovering || t.closeList();
1994
+ }), this.input.addEventListener("focus", function () {
1995
+ t.selected.length && (t.input.value = t.selected.length >= 2 ? "" : t.config.selectionValue(t.selected)), t.input.select();
1996
+ }), document.addEventListener("click", function (e) {
1997
+ !(0, p.default)(e.target, [t.input, t.list], !0) && t.isOpen && t.closeList();
1998
+ })), this.optionEvents(), this.initKeys();
1999
+ }
2000
+ }, {
2001
+ key: "getOptIndex",
2002
+ value: function () {
2003
+ return this.currentOption && this.currentOpts.indexOf(this.currentOption);
2004
+ }
2005
+ }, {
2006
+ key: "optionEvents",
2007
+ value: function () {
2008
+ var t = this;
2009
+ this.cachedOpts.forEach(function (e) {
2010
+ t.optionsWithEventHandlers.has(e.id) || t.selected.includes(e) || (e.addEventListener("click", function () {
2011
+ t.goTo(t.currentOpts.indexOf(e)).select();
2012
+ }), e.addEventListener("mouseover", function () {
2013
+ var n = t.currentOption;
2014
+ n && (0, o.default)(n).remove(t.config.activeClass), (0, o.default)(e).add(t.config.activeClass), t.isHovering = !0;
2015
+ }), e.addEventListener("mouseout", function () {
2016
+ (0, o.default)(e).remove(t.config.activeClass), t.isHovering = !1;
2017
+ }), t.optionsWithEventHandlers.add(e.id));
2018
+ });
2019
+ }
2020
+ }, {
2021
+ key: "openList",
2022
+ value: function () {
2023
+ (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");
2024
+ var t = (0, f.default)(this.list);
2025
+ if (!t.visible) {
2026
+ var e = "bottom" === t.position ? 0 - (window.innerHeight - (this.input.clientHeight + this.list.clientHeight)) : 0;
2027
+ (0, a.default)({
2028
+ element: this.input,
2029
+ offset: e,
2030
+ bezier: [.19, 1, .22, 1],
2031
+ duration: 100
2032
+ });
2033
+ }
2034
+ return this;
2035
+ }
2036
+ }, {
2037
+ key: "closeList",
2038
+ value: function (t, e) {
2039
+ 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;
2040
+ }
2041
+ }, {
2042
+ key: "initKeys",
2043
+ value: function () {
2044
+ var t = this;
2045
+ if (!this.optionsWithKeyEventHandlers.has(this.input)) {
2046
+ this.optionsWithKeyEventHandlers.add(this.input), h.default.down(this.input, [{
2047
+ keys: ["up", "down"],
2048
+ callback: function (e, n) {
2049
+ if (t.isOpen) return -1 === t.currentOpts.indexOf(t.currentOption) ? t.goTo(0, !0) : t.goTo("down" === n ? "next" : "prev", !0);
2050
+ var r = t.selected.length ? t.currentOpts.indexOf(t.selected[t.selected.length - 1]) : 0;
2051
+ t.goTo(r, !0).openList();
2052
+ },
2053
+ preventDefault: !0
2054
+ }, {
2055
+ keys: ["enter"],
2056
+ callback: function (e) {
2057
+ t.isOpen && (e.preventDefault(), e.stopPropagation(), t.select());
2058
+ }
2059
+ }, {
2060
+ keys: ["escape"],
2061
+ callback: function (e) {
2062
+ t.isOpen && (e.stopPropagation(), t.closeList(!0, !0));
2063
+ }
2064
+ }, {
2065
+ keys: ["backspace"],
2066
+ callback: function () {
2067
+ t.selected.length >= 2 && (t.input.value = "");
2068
+ }
2069
+ }]);
2070
+ var e = [9, 13, 27, 16];
2071
+ h.default.up(this.input, function (n) {
2072
+ if (t.autoFilter) {
2073
+ var r = t.config.filter,
2074
+ i = t.cachedInputValue;
2075
+ 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));
2076
+ }
2077
+ });
2078
+ }
2079
+ }
2080
+ }, {
2081
+ key: "clearFilters",
2082
+ value: function () {
2083
+ return this.cachedOpts.forEach(function (t) {
2084
+ return t.style.display = "";
2085
+ }), this.groups.forEach(function (t) {
2086
+ return t.element.style.display = "";
2087
+ }), this.currentOpts = this.cachedOpts, this;
2088
+ }
2089
+ }, {
2090
+ key: "filter",
2091
+ value: function (t) {
2092
+ var e = this,
2093
+ n = this.config.filter,
2094
+ r = this.currentOpts;
2095
+ 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) {
2096
+ return e.currentOpts.indexOf(t) > -1;
2097
+ }) || t || this.announceCount(), this;
2098
+ }
2099
+ }, {
2100
+ key: "announceCount",
2101
+ value: function () {
2102
+ var t = this.config.announcement && this.config.announcement.count;
2103
+ return t && this.liveRegion && this.liveRegion.announce(t(this.currentOpts.length), 500), this;
2104
+ }
2105
+ }, {
2106
+ key: "updateOpts",
2107
+ value: function () {
2108
+ var t = this,
2109
+ e = this.config.optionValue;
2110
+ return this.cachedOpts.forEach(function (n) {
2111
+ n.style.display = -1 === t.currentOpts.indexOf(n) ? "none" : "", n.innerHTML = "string" == typeof e ? (0, m.default)(n, t.input, e) : e(n);
2112
+ }), this.updateGroups(), this;
2113
+ }
2114
+ }, {
2115
+ key: "updateGroups",
2116
+ value: function () {
2117
+ return this.groups.forEach(function (t) {
2118
+ var e = t.options.filter(function (t) {
2119
+ return "" === t.style.display;
2120
+ });
2121
+ t.element.style.display = e.length ? "" : "none";
2122
+ }), this;
2123
+ }
2124
+ }, {
2125
+ key: "select",
2126
+ value: function () {
2127
+ var t = this,
2128
+ e = this.currentOption;
2129
+ if (e) {
2130
+ !this.config.multiselect && this.selected.length && (0, o.default)(this.selected[0]).remove(this.config.selectedClass);
2131
+ var n = this.selected.indexOf(e),
2132
+ r = n > -1;
2133
+ 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) {
2134
+ e.setAttribute("aria-selected", t.selected.indexOf(e) > -1 ? "true" : "false");
2135
+ }), r ? (e.classList.remove(this.config.selectedClass), this.emit("deselection", {
2136
+ text: this.input.value,
2137
+ option: e
2138
+ })) : (e.classList.add(this.config.selectedClass), this.emit("selection", {
2139
+ text: this.input.value,
2140
+ option: e
2141
+ })), 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;
2142
+ }
2143
+ }
2144
+ }, {
2145
+ key: "reset",
2146
+ value: function () {
2147
+ var t = this;
2148
+ 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) {
2149
+ (0, o.default)(e).remove(t.config.selectedClass), (0, o.default)(e).remove(t.config.activeClass), e.setAttribute("aria-selected", "false");
2150
+ }), this;
2151
+ }
2152
+ }, {
2153
+ key: "goTo",
2154
+ value: function (t, e) {
2155
+ var n = this;
2156
+ if ("string" == typeof t) {
2157
+ var r = this.getOptIndex();
2158
+ return this.goTo("next" === t ? r + 1 : r - 1, e);
2159
+ }
2160
+ var i = this.currentOpts[t],
2161
+ o = !1;
2162
+ if (!this.currentOpts[t]) return 0 === this.getOptIndex() && (this.list.scrollTop = 0), this;
2163
+ if (this.groups.length) {
2164
+ var u = (0, g.default)(this.groups, i);
2165
+ o = u && u !== this.currentGroup, this.currentGroup = u;
2166
+ }
2167
+ return this.currentOption = i, this.pseudoFocus(o), this.currentOpts.forEach(function (t) {
2168
+ t.classList.contains(n.config.activeClass) && !(0, c.default)(n.list, t) && (0, a.default)(t);
2169
+ }), this;
2170
+ }
2171
+ }, {
2172
+ key: "pseudoFocus",
2173
+ value: function (t) {
2174
+ var e = this.currentOption,
2175
+ n = this.config.activeClass,
2176
+ r = this.input.getAttribute("data-active-option"),
2177
+ i = r && document.getElementById(r);
2178
+ 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;
2179
+ }
2180
+ }, {
2181
+ key: "setOptions",
2182
+ value: function (t) {
2183
+ 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;
2184
+ }
2185
+ }, {
2186
+ key: "setCurrentOptions",
2187
+ value: function () {
2188
+ return this.currentOption = this.currentOpts[0], this;
2189
+ }
2190
+ }, {
2191
+ key: "updateSelectedOptions",
2192
+ value: function () {
2193
+ var t = this,
2194
+ e = document.getElementById(this.config.list.id),
2195
+ n = this.selected;
2196
+ for (this.emptyDropdownList(); e.hasChildNodes();) e.removeChild(e.firstChild);
2197
+ return n.length > 0 && n.forEach(function (e) {
2198
+ t.setOptions(e);
2199
+ }), this;
2200
+ }
2201
+ }, {
2202
+ key: "emptyDropdownList",
2203
+ value: function () {
2204
+ return this.currentOpts = [], this.cachedOpts = [], this.optionsWithEventHandlers.clear(), this;
2205
+ }
2206
+ }, {
2207
+ key: "setNoResultFound",
2208
+ value: function () {
2209
+ (0, y.default)(this.list, this.currentOpts, this.config.noResultsText);
2210
+ }
2211
+ }]), t;
2212
+ }();
2213
+ }, function (t, e) {
2214
+ t.exports = function (t, e) {
2215
+ if (t.indexOf) return t.indexOf(e);
2216
+ for (var n = 0; n < t.length; ++n) if (t[n] === e) return n;
2217
+ return -1;
2218
+ };
2219
+ }, function (t, e) {
2220
+ (e = t.exports = function (t) {
2221
+ return t.replace(/^\s*|\s*$/g, "");
2222
+ }).left = function (t) {
2223
+ return t.replace(/^\s*/, "");
2224
+ }, e.right = function (t) {
2225
+ return t.replace(/\s*$/, "");
2226
+ };
2227
+ }, function (t, e, n) {
2228
+ function r(t) {
2229
+ if (t) return function (t) {
2230
+ for (var e in r.prototype) t[e] = r.prototype[e];
2231
+ return t;
2232
+ }(t);
2233
+ }
2234
+ t.exports = r, r.prototype.on = r.prototype.addEventListener = function (t, e) {
2235
+ return this._callbacks = this._callbacks || {}, (this._callbacks["$" + t] = this._callbacks["$" + t] || []).push(e), this;
2236
+ }, r.prototype.once = function (t, e) {
2237
+ function n() {
2238
+ this.off(t, n), e.apply(this, arguments);
2239
+ }
2240
+ return n.fn = e, this.on(t, n), this;
2241
+ }, r.prototype.off = r.prototype.removeListener = r.prototype.removeAllListeners = r.prototype.removeEventListener = function (t, e) {
2242
+ if (this._callbacks = this._callbacks || {}, 0 == arguments.length) return this._callbacks = {}, this;
2243
+ var n,
2244
+ r = this._callbacks["$" + t];
2245
+ if (!r) return this;
2246
+ if (1 == arguments.length) return delete this._callbacks["$" + t], this;
2247
+ for (var i = 0; i < r.length; i++) if ((n = r[i]) === e || n.fn === e) {
2248
+ r.splice(i, 1);
2249
+ break;
2250
+ }
2251
+ return this;
2252
+ }, r.prototype.emit = function (t) {
2253
+ this._callbacks = this._callbacks || {};
2254
+ var e = [].slice.call(arguments, 1),
2255
+ n = this._callbacks["$" + t];
2256
+ if (n) for (var r = 0, i = (n = n.slice(0)).length; r < i; ++r) n[r].apply(this, e);
2257
+ return this;
2258
+ }, r.prototype.listeners = function (t) {
2259
+ return this._callbacks = this._callbacks || {}, this._callbacks["$" + t] || [];
2260
+ }, r.prototype.hasListeners = function (t) {
2261
+ return !!this.listeners(t).length;
2262
+ };
2263
+ }, function (t, e, n) {
2349
2264
 
2350
- var r = function (t) {
2351
- return t && t.__esModule ? t : {
2352
- default: t
2353
- };
2354
- }(n(0));
2355
- t.exports = r.default;
2356
- }, function (t, e, n) {
2265
+ function r(t) {
2266
+ this.region = document.createElement("div"), this.options = t || {}, this.configure(), document.body.appendChild(this.region);
2267
+ }
2268
+ r.prototype.configure = function () {
2269
+ var t = this.options,
2270
+ e = this.region;
2271
+ 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";
2272
+ }, r.prototype.announce = function (t, e) {
2273
+ var n = document.createElement("div");
2274
+ n.innerHTML = t, this.region.appendChild(n), (e || void 0 === e) && setTimeout(function () {
2275
+ this.region.removeChild(n);
2276
+ }.bind(this), e || 7e3);
2277
+ }, t.exports = r;
2278
+ }, function (t, e, n) {
2279
+ var r;
2280
+ r = function () {
2281
+ return function (t) {
2282
+ function e(r) {
2283
+ if (n[r]) return n[r].exports;
2284
+ var i = n[r] = {
2285
+ i: r,
2286
+ l: !1,
2287
+ exports: {}
2288
+ };
2289
+ return t[r].call(i.exports, i, i.exports, e), i.l = !0, i.exports;
2290
+ }
2291
+ var n = {};
2292
+ return e.m = t, e.c = n, e.i = function (t) {
2293
+ return t;
2294
+ }, e.d = function (t, n, r) {
2295
+ e.o(t, n) || Object.defineProperty(t, n, {
2296
+ configurable: !1,
2297
+ enumerable: !0,
2298
+ get: r
2299
+ });
2300
+ }, e.n = function (t) {
2301
+ var n = t && t.__esModule ? function () {
2302
+ return t.default;
2303
+ } : function () {
2304
+ return t;
2305
+ };
2306
+ return e.d(n, "a", n), n;
2307
+ }, e.o = function (t, e) {
2308
+ return Object.prototype.hasOwnProperty.call(t, e);
2309
+ }, e.p = "", e(e.s = 1);
2310
+ }([function (t, e, n) {
2357
2311
 
2358
- function r(t) {
2359
- return Object.prototype.toString.call(t);
2360
- }
2361
- function i(t) {
2362
- return !isNaN(parseFloat(t)) && isFinite(t);
2363
- }
2364
- Object.defineProperty(e, "__esModule", {
2365
- value: !0
2366
- });
2367
- var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
2368
- return typeof t;
2369
- } : function (t) {
2370
- return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2371
- };
2372
- e.isObject = function (t) {
2373
- return "[object Object]" === r(t);
2374
- }, e.isArray = function (t) {
2375
- return null != t && "[object Array]" === r(t);
2376
- }, e.isNumeric = i, e.isPositive = function (t) {
2377
- return i(t) && t >= 0;
2378
- }, e.isFunction = function (t) {
2379
- return null != t && "[object Function]" === r(t);
2380
- }, e.isElement = function (t) {
2381
- 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;
2382
- };
2383
- }, function (t, e, n) {
2312
+ function r(t) {
2313
+ return t && t.__esModule ? t : {
2314
+ default: t
2315
+ };
2316
+ }
2317
+ function i() {}
2318
+ Object.defineProperty(e, "__esModule", {
2319
+ value: !0
2320
+ });
2321
+ var o = r(n(4)),
2322
+ u = r(n(7)),
2323
+ s = n(2),
2324
+ a = r(n(3)),
2325
+ c = [.19, 1, .22, 1];
2326
+ e.default = function (t) {
2327
+ var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 100,
2328
+ n = 0,
2329
+ r = void 0,
2330
+ f = void 0;
2331
+ if ((0, s.isElement)(t)) r = o.default.apply(void 0, c), f = i;else {
2332
+ if (!(0, s.isObject)(t)) throw new TypeError("The first argument must be HTMLElement or Object.");
2333
+ if (!(0, s.isElement)(t.element)) throw new TypeError("`element` must be HTMLElement.");
2334
+ 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) {
2335
+ if (Array.isArray(t)) {
2336
+ for (var e = 0, n = Array(t.length); e < t.length; e++) n[e] = t[e];
2337
+ return n;
2338
+ }
2339
+ return Array.from(t);
2340
+ }(t.bezier)) : o.default.apply(void 0, c), e = t.duration, f = (0, s.isFunction)(t.then) ? t.then : i, t = t.element;
2341
+ }
2342
+ (!(0, s.isNumeric)(e) || e < 0) && (e = 100);
2343
+ var l = (0, a.default)(t),
2344
+ h = l.scrollTop,
2345
+ p = l.offsetTop,
2346
+ d = null,
2347
+ g = ("BODY" === l.nodeName ? t.getBoundingClientRect().top + (window.scrollY || window.pageYOffset || document.body.scrollTop) - p : t.offsetTop - p) - h + n;
2348
+ (0, u.default)(function t(n) {
2349
+ null === d && (d = n);
2350
+ var i = n - d,
2351
+ o = r(i / e) * g;
2352
+ l.scrollTop = Math.round(h + o), i < e ? (0, u.default)(t) : f();
2353
+ });
2354
+ };
2355
+ }, function (t, e, n) {
2384
2356
 
2385
- function r(t, e) {
2386
- return window.getComputedStyle(t, null).getPropertyValue(e);
2387
- }
2388
- function i(t) {
2389
- if (1 === t.nodeType) return o.test(function (t) {
2390
- return r(t, "overflow") + r(t, "overflow-y");
2391
- }(t)) && t.scrollHeight > t.clientHeight;
2392
- }
2393
- Object.defineProperty(e, "__esModule", {
2394
- value: !0
2395
- });
2396
- var o = /(auto|scroll)/;
2397
- e.default = function (t) {
2398
- for (var e = function t(e) {
2399
- var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
2400
- r = e.parentNode;
2401
- return null === r || "HTML" === r.nodeName ? n : t(r, n.concat(r));
2402
- }(t), n = document.body, r = 0, o = e.length; r < o; r++) if (i(e[r])) {
2403
- n = e[r];
2404
- break;
2405
- }
2406
- return n;
2407
- };
2408
- }, function (t, e) {
2409
- function n(t, e) {
2410
- return 1 - 3 * e + 3 * t;
2411
- }
2412
- function r(t, e) {
2413
- return 3 * e - 6 * t;
2414
- }
2415
- function i(t) {
2416
- return 3 * t;
2417
- }
2418
- function o(t, e, o) {
2419
- return ((n(e, o) * t + r(e, o)) * t + i(e)) * t;
2420
- }
2421
- function u(t, e, o) {
2422
- return 3 * n(e, o) * t * t + 2 * r(e, o) * t + i(e);
2423
- }
2424
- function s(t, e, n, r, i) {
2425
- var u,
2426
- s,
2427
- a = 0;
2428
- do {
2429
- (u = o(s = e + (n - e) / 2, r, i) - t) > 0 ? n = s : e = s;
2430
- } while (Math.abs(u) > f && ++a < l);
2431
- return s;
2432
- }
2433
- function a(t, e, n, r) {
2434
- for (var i = 0; i < c; ++i) {
2435
- var s = u(e, n, r);
2436
- if (0 === s) return e;
2437
- e -= (o(e, n, r) - t) / s;
2438
- }
2439
- return e;
2440
- }
2441
- var c = 4,
2442
- f = 1e-7,
2443
- l = 10,
2444
- h = 11,
2445
- p = 1 / (h - 1),
2446
- d = "function" == typeof Float32Array;
2447
- t.exports = function (t, e, n, r) {
2448
- function i(e) {
2449
- for (var r = 0, i = 1, o = h - 1; i !== o && c[i] <= e; ++i) r += p;
2450
- var f = r + (e - c[--i]) / (c[i + 1] - c[i]) * p,
2451
- l = u(f, t, n);
2452
- return l >= .001 ? a(e, f, t, n) : 0 === l ? f : s(e, r, r + p, t, n);
2453
- }
2454
- if (!(0 <= t && t <= 1 && 0 <= n && n <= 1)) throw new Error("bezier x values must be in [0, 1] range");
2455
- var c = d ? new Float32Array(h) : new Array(h);
2456
- if (t !== e || n !== r) for (var f = 0; f < h; ++f) c[f] = o(f * p, t, n);
2457
- return function (u) {
2458
- return t === e && n === r ? u : 0 === u ? 0 : 1 === u ? 1 : o(i(u), e, r);
2459
- };
2460
- };
2461
- }, function (t, e, n) {
2462
- (function (e) {
2463
- (function () {
2464
- var n, r, i, o, u, s;
2465
- "undefined" != typeof performance && null !== performance && performance.now ? t.exports = function () {
2466
- return performance.now();
2467
- } : void 0 !== e && null !== e && e.hrtime ? (t.exports = function () {
2468
- return (n() - u) / 1e6;
2469
- }, r = e.hrtime, o = (n = function () {
2470
- var t;
2471
- return 1e9 * (t = r())[0] + t[1];
2472
- })(), s = 1e9 * e.uptime(), u = o - s) : Date.now ? (t.exports = function () {
2473
- return Date.now() - i;
2474
- }, i = Date.now()) : (t.exports = function () {
2475
- return new Date().getTime() - i;
2476
- }, i = new Date().getTime());
2477
- }).call(this);
2478
- }).call(e, n(6));
2479
- }, function (t, e) {
2480
- function n() {
2481
- throw new Error("setTimeout has not been defined");
2482
- }
2483
- function r() {
2484
- throw new Error("clearTimeout has not been defined");
2485
- }
2486
- function i(t) {
2487
- if (c === setTimeout) return setTimeout(t, 0);
2488
- if ((c === n || !c) && setTimeout) return c = setTimeout, setTimeout(t, 0);
2489
- try {
2490
- return c(t, 0);
2491
- } catch (e) {
2492
- try {
2493
- return c.call(null, t, 0);
2494
- } catch (e) {
2495
- return c.call(this, t, 0);
2496
- }
2497
- }
2498
- }
2499
- function o() {
2500
- d && h && (d = !1, h.length ? p = h.concat(p) : g = -1, p.length && u());
2501
- }
2502
- function u() {
2503
- if (!d) {
2504
- var t = i(o);
2505
- d = !0;
2506
- for (var e = p.length; e;) {
2507
- for (h = p, p = []; ++g < e;) h && h[g].run();
2508
- g = -1, e = p.length;
2509
- }
2510
- h = null, d = !1, function (t) {
2511
- if (f === clearTimeout) return clearTimeout(t);
2512
- if ((f === r || !f) && clearTimeout) return f = clearTimeout, clearTimeout(t);
2513
- try {
2514
- f(t);
2515
- } catch (e) {
2516
- try {
2517
- return f.call(null, t);
2518
- } catch (e) {
2519
- return f.call(this, t);
2520
- }
2521
- }
2522
- }(t);
2523
- }
2524
- }
2525
- function s(t, e) {
2526
- this.fun = t, this.array = e;
2527
- }
2528
- function a() {}
2529
- var c,
2530
- f,
2531
- l = t.exports = {};
2532
- !function () {
2533
- try {
2534
- c = "function" == typeof setTimeout ? setTimeout : n;
2535
- } catch (t) {
2536
- c = n;
2537
- }
2538
- try {
2539
- f = "function" == typeof clearTimeout ? clearTimeout : r;
2540
- } catch (t) {
2541
- f = r;
2542
- }
2543
- }();
2544
- var h,
2545
- p = [],
2546
- d = !1,
2547
- g = -1;
2548
- l.nextTick = function (t) {
2549
- var e = new Array(arguments.length - 1);
2550
- if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
2551
- p.push(new s(t, e)), 1 !== p.length || d || i(u);
2552
- }, s.prototype.run = function () {
2553
- this.fun.apply(null, this.array);
2554
- }, 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) {
2555
- throw new Error("process.binding is not supported");
2556
- }, l.cwd = function () {
2557
- return "/";
2558
- }, l.chdir = function (t) {
2559
- throw new Error("process.chdir is not supported");
2560
- }, l.umask = function () {
2561
- return 0;
2562
- };
2563
- }, function (t, e, n) {
2564
- (function (e) {
2565
- 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];
2566
- if (!s || !a) {
2567
- var f = 0,
2568
- l = 0,
2569
- h = [];
2570
- s = function (t) {
2571
- if (0 === h.length) {
2572
- var e = r(),
2573
- n = Math.max(0, 1e3 / 60 - (e - f));
2574
- f = n + e, setTimeout(function () {
2575
- var t = h.slice(0);
2576
- h.length = 0;
2577
- for (var e = 0; e < t.length; e++) if (!t[e].cancelled) try {
2578
- t[e].callback(f);
2579
- } catch (t) {
2580
- setTimeout(function () {
2581
- throw t;
2582
- }, 0);
2583
- }
2584
- }, Math.round(n));
2585
- }
2586
- return h.push({
2587
- handle: ++l,
2588
- callback: t,
2589
- cancelled: !1
2590
- }), l;
2591
- }, a = function (t) {
2592
- for (var e = 0; e < h.length; e++) h[e].handle === t && (h[e].cancelled = !0);
2593
- };
2594
- }
2595
- t.exports = function (t) {
2596
- return s.call(i, t);
2597
- }, t.exports.cancel = function () {
2598
- a.apply(i, arguments);
2599
- }, t.exports.polyfill = function () {
2600
- i.requestAnimationFrame = s, i.cancelAnimationFrame = a;
2601
- };
2602
- }).call(e, n(8));
2603
- }, function (t, e) {
2604
- var n;
2605
- n = function () {
2606
- return this;
2607
- }();
2608
- try {
2609
- n = n || Function("return this")() || (0, eval)("this");
2610
- } catch (t) {
2611
- "object" == typeof window && (n = window);
2612
- }
2613
- t.exports = n;
2614
- }]);
2615
- }, t.exports = r();
2616
- }, function (t, e, n) {
2357
+ var r = function (t) {
2358
+ return t && t.__esModule ? t : {
2359
+ default: t
2360
+ };
2361
+ }(n(0));
2362
+ t.exports = r.default;
2363
+ }, function (t, e, n) {
2617
2364
 
2618
- t.exports = function (t, e) {
2619
- var n = t.clientHeight,
2620
- r = e.clientHeight,
2621
- i = t.scrollTop,
2622
- o = e.offsetTop;
2623
- return !(i > o) && !(i + n - r < o);
2624
- };
2625
- }, function (t, e, n) {
2365
+ function r(t) {
2366
+ return Object.prototype.toString.call(t);
2367
+ }
2368
+ function i(t) {
2369
+ return !isNaN(parseFloat(t)) && isFinite(t);
2370
+ }
2371
+ Object.defineProperty(e, "__esModule", {
2372
+ value: !0
2373
+ });
2374
+ var o = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (t) {
2375
+ return typeof t;
2376
+ } : function (t) {
2377
+ return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
2378
+ };
2379
+ e.isObject = function (t) {
2380
+ return "[object Object]" === r(t);
2381
+ }, e.isArray = function (t) {
2382
+ return null != t && "[object Array]" === r(t);
2383
+ }, e.isNumeric = i, e.isPositive = function (t) {
2384
+ return i(t) && t >= 0;
2385
+ }, e.isFunction = function (t) {
2386
+ return null != t && "[object Function]" === r(t);
2387
+ }, e.isElement = function (t) {
2388
+ 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;
2389
+ };
2390
+ }, function (t, e, n) {
2626
2391
 
2627
- t.exports = function (t) {
2628
- var e = window.innerHeight,
2629
- n = t.getBoundingClientRect(),
2630
- r = n.top < 0,
2631
- i = n.bottom > e,
2632
- o = !r && !i,
2633
- u = {
2634
- visible: o
2635
- };
2636
- return o || (u.position = r ? "top" : "bottom"), u;
2637
- };
2638
- }, function (t, e, n) {
2392
+ function r(t, e) {
2393
+ return window.getComputedStyle(t, null).getPropertyValue(e);
2394
+ }
2395
+ function i(t) {
2396
+ if (1 === t.nodeType) return o.test(function (t) {
2397
+ return r(t, "overflow") + r(t, "overflow-y");
2398
+ }(t)) && t.scrollHeight > t.clientHeight;
2399
+ }
2400
+ Object.defineProperty(e, "__esModule", {
2401
+ value: !0
2402
+ });
2403
+ var o = /(auto|scroll)/;
2404
+ e.default = function (t) {
2405
+ for (var e = function t(e) {
2406
+ var n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : [],
2407
+ r = e.parentNode;
2408
+ return null === r || "HTML" === r.nodeName ? n : t(r, n.concat(r));
2409
+ }(t), n = document.body, r = 0, o = e.length; r < o; r++) if (i(e[r])) {
2410
+ n = e[r];
2411
+ break;
2412
+ }
2413
+ return n;
2414
+ };
2415
+ }, function (t, e) {
2416
+ function n(t, e) {
2417
+ return 1 - 3 * e + 3 * t;
2418
+ }
2419
+ function r(t, e) {
2420
+ return 3 * e - 6 * t;
2421
+ }
2422
+ function i(t) {
2423
+ return 3 * t;
2424
+ }
2425
+ function o(t, e, o) {
2426
+ return ((n(e, o) * t + r(e, o)) * t + i(e)) * t;
2427
+ }
2428
+ function u(t, e, o) {
2429
+ return 3 * n(e, o) * t * t + 2 * r(e, o) * t + i(e);
2430
+ }
2431
+ function s(t, e, n, r, i) {
2432
+ var u,
2433
+ s,
2434
+ a = 0;
2435
+ do {
2436
+ (u = o(s = e + (n - e) / 2, r, i) - t) > 0 ? n = s : e = s;
2437
+ } while (Math.abs(u) > f && ++a < l);
2438
+ return s;
2439
+ }
2440
+ function a(t, e, n, r) {
2441
+ for (var i = 0; i < c; ++i) {
2442
+ var s = u(e, n, r);
2443
+ if (0 === s) return e;
2444
+ e -= (o(e, n, r) - t) / s;
2445
+ }
2446
+ return e;
2447
+ }
2448
+ var c = 4,
2449
+ f = 1e-7,
2450
+ l = 10,
2451
+ h = 11,
2452
+ p = 1 / (h - 1),
2453
+ d = "function" == typeof Float32Array;
2454
+ t.exports = function (t, e, n, r) {
2455
+ function i(e) {
2456
+ for (var r = 0, i = 1, o = h - 1; i !== o && c[i] <= e; ++i) r += p;
2457
+ var f = r + (e - c[--i]) / (c[i + 1] - c[i]) * p,
2458
+ l = u(f, t, n);
2459
+ return l >= .001 ? a(e, f, t, n) : 0 === l ? f : s(e, r, r + p, t, n);
2460
+ }
2461
+ if (!(0 <= t && t <= 1 && 0 <= n && n <= 1)) throw new Error("bezier x values must be in [0, 1] range");
2462
+ var c = d ? new Float32Array(h) : new Array(h);
2463
+ if (t !== e || n !== r) for (var f = 0; f < h; ++f) c[f] = o(f * p, t, n);
2464
+ return function (u) {
2465
+ return t === e && n === r ? u : 0 === u ? 0 : 1 === u ? 1 : o(i(u), e, r);
2466
+ };
2467
+ };
2468
+ }, function (t, e, n) {
2469
+ (function (e) {
2470
+ (function () {
2471
+ var n, r, i, o, u, s;
2472
+ "undefined" != typeof performance && null !== performance && performance.now ? t.exports = function () {
2473
+ return performance.now();
2474
+ } : void 0 !== e && null !== e && e.hrtime ? (t.exports = function () {
2475
+ return (n() - u) / 1e6;
2476
+ }, r = e.hrtime, o = (n = function () {
2477
+ var t;
2478
+ return 1e9 * (t = r())[0] + t[1];
2479
+ })(), s = 1e9 * e.uptime(), u = o - s) : Date.now ? (t.exports = function () {
2480
+ return Date.now() - i;
2481
+ }, i = Date.now()) : (t.exports = function () {
2482
+ return new Date().getTime() - i;
2483
+ }, i = new Date().getTime());
2484
+ }).call(this);
2485
+ }).call(e, n(6));
2486
+ }, function (t, e) {
2487
+ function n() {
2488
+ throw new Error("setTimeout has not been defined");
2489
+ }
2490
+ function r() {
2491
+ throw new Error("clearTimeout has not been defined");
2492
+ }
2493
+ function i(t) {
2494
+ if (c === setTimeout) return setTimeout(t, 0);
2495
+ if ((c === n || !c) && setTimeout) return c = setTimeout, setTimeout(t, 0);
2496
+ try {
2497
+ return c(t, 0);
2498
+ } catch (e) {
2499
+ try {
2500
+ return c.call(null, t, 0);
2501
+ } catch (e) {
2502
+ return c.call(this, t, 0);
2503
+ }
2504
+ }
2505
+ }
2506
+ function o() {
2507
+ d && h && (d = !1, h.length ? p = h.concat(p) : g = -1, p.length && u());
2508
+ }
2509
+ function u() {
2510
+ if (!d) {
2511
+ var t = i(o);
2512
+ d = !0;
2513
+ for (var e = p.length; e;) {
2514
+ for (h = p, p = []; ++g < e;) h && h[g].run();
2515
+ g = -1, e = p.length;
2516
+ }
2517
+ h = null, d = !1, function (t) {
2518
+ if (f === clearTimeout) return clearTimeout(t);
2519
+ if ((f === r || !f) && clearTimeout) return f = clearTimeout, clearTimeout(t);
2520
+ try {
2521
+ f(t);
2522
+ } catch (e) {
2523
+ try {
2524
+ return f.call(null, t);
2525
+ } catch (e) {
2526
+ return f.call(this, t);
2527
+ }
2528
+ }
2529
+ }(t);
2530
+ }
2531
+ }
2532
+ function s(t, e) {
2533
+ this.fun = t, this.array = e;
2534
+ }
2535
+ function a() {}
2536
+ var c,
2537
+ f,
2538
+ l = t.exports = {};
2539
+ !function () {
2540
+ try {
2541
+ c = "function" == typeof setTimeout ? setTimeout : n;
2542
+ } catch (t) {
2543
+ c = n;
2544
+ }
2545
+ try {
2546
+ f = "function" == typeof clearTimeout ? clearTimeout : r;
2547
+ } catch (t) {
2548
+ f = r;
2549
+ }
2550
+ }();
2551
+ var h,
2552
+ p = [],
2553
+ d = !1,
2554
+ g = -1;
2555
+ l.nextTick = function (t) {
2556
+ var e = new Array(arguments.length - 1);
2557
+ if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
2558
+ p.push(new s(t, e)), 1 !== p.length || d || i(u);
2559
+ }, s.prototype.run = function () {
2560
+ this.fun.apply(null, this.array);
2561
+ }, 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) {
2562
+ throw new Error("process.binding is not supported");
2563
+ }, l.cwd = function () {
2564
+ return "/";
2565
+ }, l.chdir = function (t) {
2566
+ throw new Error("process.chdir is not supported");
2567
+ }, l.umask = function () {
2568
+ return 0;
2569
+ };
2570
+ }, function (t, e, n) {
2571
+ (function (e) {
2572
+ 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];
2573
+ if (!s || !a) {
2574
+ var f = 0,
2575
+ l = 0,
2576
+ h = [];
2577
+ s = function (t) {
2578
+ if (0 === h.length) {
2579
+ var e = r(),
2580
+ n = Math.max(0, 1e3 / 60 - (e - f));
2581
+ f = n + e, setTimeout(function () {
2582
+ var t = h.slice(0);
2583
+ h.length = 0;
2584
+ for (var e = 0; e < t.length; e++) if (!t[e].cancelled) try {
2585
+ t[e].callback(f);
2586
+ } catch (t) {
2587
+ setTimeout(function () {
2588
+ throw t;
2589
+ }, 0);
2590
+ }
2591
+ }, Math.round(n));
2592
+ }
2593
+ return h.push({
2594
+ handle: ++l,
2595
+ callback: t,
2596
+ cancelled: !1
2597
+ }), l;
2598
+ }, a = function (t) {
2599
+ for (var e = 0; e < h.length; e++) h[e].handle === t && (h[e].cancelled = !0);
2600
+ };
2601
+ }
2602
+ t.exports = function (t) {
2603
+ return s.call(i, t);
2604
+ }, t.exports.cancel = function () {
2605
+ a.apply(i, arguments);
2606
+ }, t.exports.polyfill = function () {
2607
+ i.requestAnimationFrame = s, i.cancelAnimationFrame = a;
2608
+ };
2609
+ }).call(e, n(8));
2610
+ }, function (t, e) {
2611
+ var n;
2612
+ n = function () {
2613
+ return this;
2614
+ }();
2615
+ try {
2616
+ n = n || Function("return this")() || (0, eval)("this");
2617
+ } catch (t) {
2618
+ "object" == typeof window && (n = window);
2619
+ }
2620
+ t.exports = n;
2621
+ }]);
2622
+ }, t.exports = r();
2623
+ }, function (t, e, n) {
2639
2624
 
2640
- var r,
2641
- i = n(11),
2642
- o = (r = i) && r.__esModule ? r : {
2643
- default: r
2644
- };
2645
- t.exports = {
2646
- contains: function (t, e) {
2647
- return e.filter(function (e) {
2648
- return (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase()) > -1;
2649
- });
2650
- },
2651
- equals: function (t, e) {
2652
- return e.filter(function (e) {
2653
- return (0, o.default)(e).toLowerCase() === t.toLowerCase();
2654
- });
2655
- },
2656
- "starts-with": function (t, e) {
2657
- return e.filter(function (e) {
2658
- return 0 === (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase());
2659
- });
2660
- }
2661
- };
2662
- }, function (t, e, n) {
2625
+ t.exports = function (t, e) {
2626
+ var n = t.clientHeight,
2627
+ r = e.clientHeight,
2628
+ i = t.scrollTop,
2629
+ o = e.offsetTop;
2630
+ return !(i > o) && !(i + n - r < o);
2631
+ };
2632
+ }, function (t, e, n) {
2663
2633
 
2664
- t.exports = function (t) {
2665
- return t.getAttribute("data-value") || t.innerText;
2666
- };
2667
- }, function (t, e, n) {
2634
+ t.exports = function (t) {
2635
+ var e = window.innerHeight,
2636
+ n = t.getBoundingClientRect(),
2637
+ r = n.top < 0,
2638
+ i = n.bottom > e,
2639
+ o = !r && !i,
2640
+ u = {
2641
+ visible: o
2642
+ };
2643
+ return o || (u.position = r ? "top" : "bottom"), u;
2644
+ };
2645
+ }, function (t, e, n) {
2668
2646
 
2669
- var r,
2670
- i = n(13),
2671
- o = (r = i) && r.__esModule ? r : {
2672
- default: r
2673
- };
2674
- e.attach = function (t, e, n) {
2675
- if ("function" == typeof n) return e.addEventListener(t, n);
2676
- n && n.length && e.addEventListener(t, function (t) {
2677
- var e = o.default[t.which];
2678
- n.forEach(function (n) {
2679
- n.keys.indexOf(e) > -1 && (n.preventDefault && t.preventDefault(), n.callback(t, e));
2680
- });
2681
- });
2682
- }, e.up = function (t, n) {
2683
- return e.attach("keyup", t, n);
2684
- }, e.down = function (t, n) {
2685
- return e.attach("keydown", t, n);
2686
- }, e.press = function (t, n) {
2687
- return e.attach("keypress", t, n);
2688
- };
2689
- }, function (t, e, n) {
2647
+ var r,
2648
+ i = n(11),
2649
+ o = (r = i) && r.__esModule ? r : {
2650
+ default: r
2651
+ };
2652
+ t.exports = {
2653
+ contains: function (t, e) {
2654
+ return e.filter(function (e) {
2655
+ return (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase()) > -1;
2656
+ });
2657
+ },
2658
+ equals: function (t, e) {
2659
+ return e.filter(function (e) {
2660
+ return (0, o.default)(e).toLowerCase() === t.toLowerCase();
2661
+ });
2662
+ },
2663
+ "starts-with": function (t, e) {
2664
+ return e.filter(function (e) {
2665
+ return 0 === (0, o.default)(e).toLowerCase().indexOf(t.toLowerCase());
2666
+ });
2667
+ }
2668
+ };
2669
+ }, function (t, e, n) {
2690
2670
 
2691
- t.exports = {
2692
- 8: "backspace",
2693
- 9: "tab",
2694
- 13: "enter",
2695
- 27: "escape",
2696
- 32: "space",
2697
- 37: "left",
2698
- 38: "up",
2699
- 39: "right",
2700
- 40: "down"
2701
- };
2702
- }, function (t, e, n) {
2671
+ t.exports = function (t) {
2672
+ return t.getAttribute("data-value") || t.innerText;
2673
+ };
2674
+ }, function (t, e, n) {
2703
2675
 
2704
- t.exports = function (t, e, n) {
2705
- if (e = e.length ? e : [e], n && e.indexOf(t) > -1) return !0;
2706
- for (var r = t.parentNode; r && "HTML" !== r.tagName;) {
2707
- if (e.indexOf(r) > -1) return !0;
2708
- r = r.parentNode;
2709
- }
2710
- return !1;
2711
- };
2712
- }, function (t, e, n) {
2676
+ var r,
2677
+ i = n(13),
2678
+ o = (r = i) && r.__esModule ? r : {
2679
+ default: r
2680
+ };
2681
+ e.attach = function (t, e, n) {
2682
+ if ("function" == typeof n) return e.addEventListener(t, n);
2683
+ n && n.length && e.addEventListener(t, function (t) {
2684
+ var e = o.default[t.which];
2685
+ n.forEach(function (n) {
2686
+ n.keys.indexOf(e) > -1 && (n.preventDefault && t.preventDefault(), n.callback(t, e));
2687
+ });
2688
+ });
2689
+ }, e.up = function (t, n) {
2690
+ return e.attach("keyup", t, n);
2691
+ }, e.down = function (t, n) {
2692
+ return e.attach("keydown", t, n);
2693
+ }, e.press = function (t, n) {
2694
+ return e.attach("keypress", t, n);
2695
+ };
2696
+ }, function (t, e, n) {
2713
2697
 
2714
- var r,
2715
- i = n(16),
2716
- o = (r = i) && r.__esModule ? r : {
2717
- default: r
2718
- };
2719
- t.exports = function (t, e, n) {
2720
- return n = n || document, "string" == typeof t ? e ? o.default.all(t, n) : (0, o.default)(t, n) : t;
2721
- };
2722
- }, function (t, e, n) {
2698
+ t.exports = {
2699
+ 8: "backspace",
2700
+ 9: "tab",
2701
+ 13: "enter",
2702
+ 27: "escape",
2703
+ 32: "space",
2704
+ 37: "left",
2705
+ 38: "up",
2706
+ 39: "right",
2707
+ 40: "down"
2708
+ };
2709
+ }, function (t, e, n) {
2723
2710
 
2724
- (t.exports = function (t, e) {
2725
- return (e = e || document).querySelector(t);
2726
- }).all = function (t, e) {
2727
- return e = e || document, Array.prototype.slice.call(e.querySelectorAll(t));
2728
- };
2729
- }, function (t, e, n) {
2711
+ t.exports = function (t, e, n) {
2712
+ if (e = e.length ? e : [e], n && e.indexOf(t) > -1) return !0;
2713
+ for (var r = t.parentNode; r && "HTML" !== r.tagName;) {
2714
+ if (e.indexOf(r) > -1) return !0;
2715
+ r = r.parentNode;
2716
+ }
2717
+ return !1;
2718
+ };
2719
+ }, function (t, e, n) {
2730
2720
 
2731
- t.exports = function (t, e) {
2732
- var n = t.filter(function (t) {
2733
- return t.options.indexOf(e) > -1;
2734
- });
2735
- return n.length && n[0];
2736
- };
2737
- }, function (t, e, n) {
2721
+ var r,
2722
+ i = n(16),
2723
+ o = (r = i) && r.__esModule ? r : {
2724
+ default: r
2725
+ };
2726
+ t.exports = function (t, e, n) {
2727
+ return n = n || document, "string" == typeof t ? e ? o.default.all(t, n) : (0, o.default)(t, n) : t;
2728
+ };
2729
+ }, function (t, e, n) {
2738
2730
 
2739
- var r,
2740
- i = n(1),
2741
- o = (r = i) && r.__esModule ? r : {
2742
- default: r
2743
- };
2744
- t.exports = function (t, e, n) {
2745
- var r = t.querySelector(".combobo-no-results");
2746
- !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));
2747
- };
2748
- }, function (t, e, n) {
2731
+ (t.exports = function (t, e) {
2732
+ return (e = e || document).querySelector(t);
2733
+ }).all = function (t, e) {
2734
+ return e = e || document, Array.prototype.slice.call(e.querySelectorAll(t));
2735
+ };
2736
+ }, function (t, e, n) {
2749
2737
 
2750
- var r,
2751
- i = n(20),
2752
- o = (r = i) && r.__esModule ? r : {
2753
- default: r
2754
- };
2755
- t.exports = function (t, e, n) {
2756
- 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) {
2757
- t.setAttribute("role", "option"), t.id = t.id || (0, o.default)();
2758
- });
2759
- };
2760
- }, function (t, e, n) {
2738
+ t.exports = function (t, e) {
2739
+ var n = t.filter(function (t) {
2740
+ return t.options.indexOf(e) > -1;
2741
+ });
2742
+ return n.length && n[0];
2743
+ };
2744
+ }, function (t, e, n) {
2761
2745
 
2762
- var r,
2763
- i = n(21),
2764
- o = (r = i) && r.__esModule ? r : {
2765
- default: r
2766
- };
2767
- t.exports = function t(e) {
2768
- e = e || 8;
2769
- var n = (0, o.default)(e);
2770
- if (document.getElementById(n)) return t(e);
2771
- return n;
2772
- };
2773
- }, function (t, e, n) {
2774
- (function (r) {
2775
- var i = n(26);
2776
- function o(t) {
2777
- i("string" == typeof t, "the list of characters must be a string!");
2778
- var e = r.byteLength(t);
2779
- return function (n) {
2780
- i("number" == typeof (n = n || 10) && n >= 0, "the length of the random string must be a number!");
2781
- for (var r = "", o = 0; o < n; o++) r += t[Math.floor(e * Math.random())];
2782
- return r;
2783
- };
2784
- }
2785
- (e = t.exports = o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")).base62 = e, e.base36 = o("abcdefghijklmnopqrstuvwxyz0123456789"), e.base10 = o("0123456789"), e.create = o;
2786
- }).call(e, n(22).Buffer);
2787
- }, function (t, e, n) {
2746
+ var r,
2747
+ i = n(1),
2748
+ o = (r = i) && r.__esModule ? r : {
2749
+ default: r
2750
+ };
2751
+ t.exports = function (t, e, n) {
2752
+ var r = t.querySelector(".combobo-no-results");
2753
+ !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));
2754
+ };
2755
+ }, function (t, e, n) {
2788
2756
 
2789
- (function (t) {
2790
- var r = n(23),
2791
- i = n(24),
2792
- o = n(25);
2793
- function u() {
2794
- return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
2795
- }
2796
- function s(t, e) {
2797
- if (u() < e) throw new RangeError("Invalid typed array length");
2798
- return a.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e)).__proto__ = a.prototype : (null === t && (t = new a(e)), t.length = e), t;
2799
- }
2800
- function a(t, e, n) {
2801
- if (!(a.TYPED_ARRAY_SUPPORT || this instanceof a)) return new a(t, e, n);
2802
- if ("number" == typeof t) {
2803
- if ("string" == typeof e) throw new Error("If encoding is specified then the first argument must be a string");
2804
- return l(this, t);
2805
- }
2806
- return c(this, t, e, n);
2807
- }
2808
- function c(t, e, n, r) {
2809
- if ("number" == typeof e) throw new TypeError('"value" argument must not be a number');
2810
- return "undefined" != typeof ArrayBuffer && e instanceof ArrayBuffer ? function (t, e, n, r) {
2811
- if (e.byteLength, n < 0 || e.byteLength < n) throw new RangeError("'offset' is out of bounds");
2812
- if (e.byteLength < n + (r || 0)) throw new RangeError("'length' is out of bounds");
2813
- e = void 0 === n && void 0 === r ? new Uint8Array(e) : void 0 === r ? new Uint8Array(e, n) : new Uint8Array(e, n, r);
2814
- a.TYPED_ARRAY_SUPPORT ? (t = e).__proto__ = a.prototype : t = h(t, e);
2815
- return t;
2816
- }(t, e, n, r) : "string" == typeof e ? function (t, e, n) {
2817
- "string" == typeof n && "" !== n || (n = "utf8");
2818
- if (!a.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding');
2819
- var r = 0 | d(e, n),
2820
- i = (t = s(t, r)).write(e, n);
2821
- i !== r && (t = t.slice(0, i));
2822
- return t;
2823
- }(t, e, n) : function (t, e) {
2824
- if (a.isBuffer(e)) {
2825
- var n = 0 | p(e.length);
2826
- return 0 === (t = s(t, n)).length ? t : (e.copy(t, 0, 0, n), t);
2827
- }
2828
- if (e) {
2829
- 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);
2830
- if ("Buffer" === e.type && o(e.data)) return h(t, e.data);
2831
- }
2832
- var r;
2833
- throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
2834
- }(t, e);
2835
- }
2836
- function f(t) {
2837
- if ("number" != typeof t) throw new TypeError('"size" argument must be a number');
2838
- if (t < 0) throw new RangeError('"size" argument must not be negative');
2839
- }
2840
- function l(t, e) {
2841
- 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;
2842
- return t;
2843
- }
2844
- function h(t, e) {
2845
- var n = e.length < 0 ? 0 : 0 | p(e.length);
2846
- t = s(t, n);
2847
- for (var r = 0; r < n; r += 1) t[r] = 255 & e[r];
2848
- return t;
2849
- }
2850
- function p(t) {
2851
- if (t >= u()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u().toString(16) + " bytes");
2852
- return 0 | t;
2853
- }
2854
- function d(t, e) {
2855
- if (a.isBuffer(t)) return t.length;
2856
- if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(t) || t instanceof ArrayBuffer)) return t.byteLength;
2857
- "string" != typeof t && (t = "" + t);
2858
- var n = t.length;
2859
- if (0 === n) return 0;
2860
- for (var r = !1;;) switch (e) {
2861
- case "ascii":
2862
- case "latin1":
2863
- case "binary":
2864
- return n;
2865
- case "utf8":
2866
- case "utf-8":
2867
- case void 0:
2868
- return N(t).length;
2869
- case "ucs2":
2870
- case "ucs-2":
2871
- case "utf16le":
2872
- case "utf-16le":
2873
- return 2 * n;
2874
- case "hex":
2875
- return n >>> 1;
2876
- case "base64":
2877
- return F(t).length;
2878
- default:
2879
- if (r) return N(t).length;
2880
- e = ("" + e).toLowerCase(), r = !0;
2881
- }
2882
- }
2883
- function g(t, e, n) {
2884
- var r = t[e];
2885
- t[e] = t[n], t[n] = r;
2886
- }
2887
- function y(t, e, n, r, i) {
2888
- if (0 === t.length) return -1;
2889
- 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) {
2890
- if (i) return -1;
2891
- n = t.length - 1;
2892
- } else if (n < 0) {
2893
- if (!i) return -1;
2894
- n = 0;
2895
- }
2896
- if ("string" == typeof e && (e = a.from(e, r)), a.isBuffer(e)) return 0 === e.length ? -1 : v(t, e, n, r, i);
2897
- 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);
2898
- throw new TypeError("val must be string, number or Buffer");
2899
- }
2900
- function v(t, e, n, r, i) {
2901
- var o,
2902
- u = 1,
2903
- s = t.length,
2904
- a = e.length;
2905
- if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) {
2906
- if (t.length < 2 || e.length < 2) return -1;
2907
- u = 2, s /= 2, a /= 2, n /= 2;
2908
- }
2909
- function c(t, e) {
2910
- return 1 === u ? t[e] : t.readUInt16BE(e * u);
2911
- }
2912
- if (i) {
2913
- var f = -1;
2914
- for (o = n; o < s; o++) if (c(t, o) === c(e, -1 === f ? 0 : o - f)) {
2915
- if (-1 === f && (f = o), o - f + 1 === a) return f * u;
2916
- } else -1 !== f && (o -= o - f), f = -1;
2917
- } else for (n + a > s && (n = s - a), o = n; o >= 0; o--) {
2918
- for (var l = !0, h = 0; h < a; h++) if (c(t, o + h) !== c(e, h)) {
2919
- l = !1;
2920
- break;
2921
- }
2922
- if (l) return o;
2923
- }
2924
- return -1;
2925
- }
2926
- function m(t, e, n, r) {
2927
- n = Number(n) || 0;
2928
- var i = t.length - n;
2929
- r ? (r = Number(r)) > i && (r = i) : r = i;
2930
- var o = e.length;
2931
- if (o % 2 != 0) throw new TypeError("Invalid hex string");
2932
- r > o / 2 && (r = o / 2);
2933
- for (var u = 0; u < r; ++u) {
2934
- var s = parseInt(e.substr(2 * u, 2), 16);
2935
- if (isNaN(s)) return u;
2936
- t[n + u] = s;
2937
- }
2938
- return u;
2939
- }
2940
- function b(t, e, n, r) {
2941
- return z(N(e, t.length - n), t, n, r);
2942
- }
2943
- function w(t, e, n, r) {
2944
- return z(function (t) {
2945
- for (var e = [], n = 0; n < t.length; ++n) e.push(255 & t.charCodeAt(n));
2946
- return e;
2947
- }(e), t, n, r);
2948
- }
2949
- function E(t, e, n, r) {
2950
- return w(t, e, n, r);
2951
- }
2952
- function O(t, e, n, r) {
2953
- return z(F(e), t, n, r);
2954
- }
2955
- function A(t, e, n, r) {
2956
- return z(function (t, e) {
2957
- 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);
2958
- return o;
2959
- }(e, t.length - n), t, n, r);
2960
- }
2961
- function x(t, e, n) {
2962
- return 0 === e && n === t.length ? r.fromByteArray(t) : r.fromByteArray(t.slice(e, n));
2963
- }
2964
- function T(t, e, n) {
2965
- n = Math.min(t.length, n);
2966
- for (var r = [], i = e; i < n;) {
2967
- var o,
2968
- u,
2969
- s,
2970
- a,
2971
- c = t[i],
2972
- f = null,
2973
- l = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
2974
- if (i + l <= n) switch (l) {
2975
- case 1:
2976
- c < 128 && (f = c);
2977
- break;
2978
- case 2:
2979
- 128 == (192 & (o = t[i + 1])) && (a = (31 & c) << 6 | 63 & o) > 127 && (f = a);
2980
- break;
2981
- case 3:
2982
- 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);
2983
- break;
2984
- case 4:
2985
- 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);
2986
- }
2987
- 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;
2988
- }
2989
- return function (t) {
2990
- var e = t.length;
2991
- if (e <= _) return String.fromCharCode.apply(String, t);
2992
- var n = "",
2993
- r = 0;
2994
- for (; r < e;) n += String.fromCharCode.apply(String, t.slice(r, r += _));
2995
- return n;
2996
- }(r);
2997
- }
2998
- e.Buffer = a, e.SlowBuffer = function (t) {
2999
- +t != t && (t = 0);
3000
- return a.alloc(+t);
3001
- }, e.INSPECT_MAX_BYTES = 50, a.TYPED_ARRAY_SUPPORT = void 0 !== t.TYPED_ARRAY_SUPPORT ? t.TYPED_ARRAY_SUPPORT : function () {
3002
- try {
3003
- var t = new Uint8Array(1);
3004
- return t.__proto__ = {
3005
- __proto__: Uint8Array.prototype,
3006
- foo: function () {
3007
- return 42;
3008
- }
3009
- }, 42 === t.foo() && "function" == typeof t.subarray && 0 === t.subarray(1, 1).byteLength;
3010
- } catch (t) {
3011
- return !1;
3012
- }
3013
- }(), e.kMaxLength = u(), a.poolSize = 8192, a._augment = function (t) {
3014
- return t.__proto__ = a.prototype, t;
3015
- }, a.from = function (t, e, n) {
3016
- return c(null, t, e, n);
3017
- }, 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, {
3018
- value: null,
3019
- configurable: !0
3020
- })), a.alloc = function (t, e, n) {
3021
- return function (t, e, n, r) {
3022
- 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);
3023
- }(null, t, e, n);
3024
- }, a.allocUnsafe = function (t) {
3025
- return l(null, t);
3026
- }, a.allocUnsafeSlow = function (t) {
3027
- return l(null, t);
3028
- }, a.isBuffer = function (t) {
3029
- return !(null == t || !t._isBuffer);
3030
- }, a.compare = function (t, e) {
3031
- if (!a.isBuffer(t) || !a.isBuffer(e)) throw new TypeError("Arguments must be Buffers");
3032
- if (t === e) return 0;
3033
- for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
3034
- n = t[i], r = e[i];
3035
- break;
3036
- }
3037
- return n < r ? -1 : r < n ? 1 : 0;
3038
- }, a.isEncoding = function (t) {
3039
- switch (String(t).toLowerCase()) {
3040
- case "hex":
3041
- case "utf8":
3042
- case "utf-8":
3043
- case "ascii":
3044
- case "latin1":
3045
- case "binary":
3046
- case "base64":
3047
- case "ucs2":
3048
- case "ucs-2":
3049
- case "utf16le":
3050
- case "utf-16le":
3051
- return !0;
3052
- default:
3053
- return !1;
3054
- }
3055
- }, a.concat = function (t, e) {
3056
- if (!o(t)) throw new TypeError('"list" argument must be an Array of Buffers');
3057
- if (0 === t.length) return a.alloc(0);
3058
- var n;
3059
- if (void 0 === e) for (e = 0, n = 0; n < t.length; ++n) e += t[n].length;
3060
- var r = a.allocUnsafe(e),
3061
- i = 0;
3062
- for (n = 0; n < t.length; ++n) {
3063
- var u = t[n];
3064
- if (!a.isBuffer(u)) throw new TypeError('"list" argument must be an Array of Buffers');
3065
- u.copy(r, i), i += u.length;
3066
- }
3067
- return r;
3068
- }, a.byteLength = d, a.prototype._isBuffer = !0, a.prototype.swap16 = function () {
3069
- var t = this.length;
3070
- if (t % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
3071
- for (var e = 0; e < t; e += 2) g(this, e, e + 1);
3072
- return this;
3073
- }, a.prototype.swap32 = function () {
3074
- var t = this.length;
3075
- if (t % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
3076
- for (var e = 0; e < t; e += 4) g(this, e, e + 3), g(this, e + 1, e + 2);
3077
- return this;
3078
- }, a.prototype.swap64 = function () {
3079
- var t = this.length;
3080
- if (t % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
3081
- 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);
3082
- return this;
3083
- }, a.prototype.toString = function () {
3084
- var t = 0 | this.length;
3085
- return 0 === t ? "" : 0 === arguments.length ? T(this, 0, t) : function (t, e, n) {
3086
- var r = !1;
3087
- if ((void 0 === e || e < 0) && (e = 0), e > this.length) return "";
3088
- if ((void 0 === n || n > this.length) && (n = this.length), n <= 0) return "";
3089
- if ((n >>>= 0) <= (e >>>= 0)) return "";
3090
- for (t || (t = "utf8");;) switch (t) {
3091
- case "hex":
3092
- return k(this, e, n);
3093
- case "utf8":
3094
- case "utf-8":
3095
- return T(this, e, n);
3096
- case "ascii":
3097
- return S(this, e, n);
3098
- case "latin1":
3099
- case "binary":
3100
- return R(this, e, n);
3101
- case "base64":
3102
- return x(this, e, n);
3103
- case "ucs2":
3104
- case "ucs-2":
3105
- case "utf16le":
3106
- case "utf-16le":
3107
- return P(this, e, n);
3108
- default:
3109
- if (r) throw new TypeError("Unknown encoding: " + t);
3110
- t = (t + "").toLowerCase(), r = !0;
3111
- }
3112
- }.apply(this, arguments);
3113
- }, a.prototype.equals = function (t) {
3114
- if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
3115
- return this === t || 0 === a.compare(this, t);
3116
- }, a.prototype.inspect = function () {
3117
- var t = "",
3118
- n = e.INSPECT_MAX_BYTES;
3119
- return this.length > 0 && (t = this.toString("hex", 0, n).match(/.{2}/g).join(" "), this.length > n && (t += " ... ")), "<Buffer " + t + ">";
3120
- }, a.prototype.compare = function (t, e, n, r, i) {
3121
- if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
3122
- 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");
3123
- if (r >= i && e >= n) return 0;
3124
- if (r >= i) return -1;
3125
- if (e >= n) return 1;
3126
- if (e >>>= 0, n >>>= 0, r >>>= 0, i >>>= 0, this === t) return 0;
3127
- 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]) {
3128
- o = c[l], u = f[l];
3129
- break;
3130
- }
3131
- return o < u ? -1 : u < o ? 1 : 0;
3132
- }, a.prototype.includes = function (t, e, n) {
3133
- return -1 !== this.indexOf(t, e, n);
3134
- }, a.prototype.indexOf = function (t, e, n) {
3135
- return y(this, t, e, n, !0);
3136
- }, a.prototype.lastIndexOf = function (t, e, n) {
3137
- return y(this, t, e, n, !1);
3138
- }, a.prototype.write = function (t, e, n, r) {
3139
- 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 {
3140
- if (!isFinite(e)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
3141
- e |= 0, isFinite(n) ? (n |= 0, void 0 === r && (r = "utf8")) : (r = n, n = void 0);
3142
- }
3143
- var i = this.length - e;
3144
- 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");
3145
- r || (r = "utf8");
3146
- for (var o = !1;;) switch (r) {
3147
- case "hex":
3148
- return m(this, t, e, n);
3149
- case "utf8":
3150
- case "utf-8":
3151
- return b(this, t, e, n);
3152
- case "ascii":
3153
- return w(this, t, e, n);
3154
- case "latin1":
3155
- case "binary":
3156
- return E(this, t, e, n);
3157
- case "base64":
3158
- return O(this, t, e, n);
3159
- case "ucs2":
3160
- case "ucs-2":
3161
- case "utf16le":
3162
- case "utf-16le":
3163
- return A(this, t, e, n);
3164
- default:
3165
- if (o) throw new TypeError("Unknown encoding: " + r);
3166
- r = ("" + r).toLowerCase(), o = !0;
3167
- }
3168
- }, a.prototype.toJSON = function () {
3169
- return {
3170
- type: "Buffer",
3171
- data: Array.prototype.slice.call(this._arr || this, 0)
3172
- };
3173
- };
3174
- var _ = 4096;
3175
- function S(t, e, n) {
3176
- var r = "";
3177
- n = Math.min(t.length, n);
3178
- for (var i = e; i < n; ++i) r += String.fromCharCode(127 & t[i]);
3179
- return r;
3180
- }
3181
- function R(t, e, n) {
3182
- var r = "";
3183
- n = Math.min(t.length, n);
3184
- for (var i = e; i < n; ++i) r += String.fromCharCode(t[i]);
3185
- return r;
3186
- }
3187
- function k(t, e, n) {
3188
- var r = t.length;
3189
- (!e || e < 0) && (e = 0), (!n || n < 0 || n > r) && (n = r);
3190
- for (var i = "", o = e; o < n; ++o) i += Y(t[o]);
3191
- return i;
3192
- }
3193
- function P(t, e, n) {
3194
- for (var r = t.slice(e, n), i = "", o = 0; o < r.length; o += 2) i += String.fromCharCode(r[o] + 256 * r[o + 1]);
3195
- return i;
3196
- }
3197
- function L(t, e, n) {
3198
- if (t % 1 != 0 || t < 0) throw new RangeError("offset is not uint");
3199
- if (t + e > n) throw new RangeError("Trying to access beyond buffer length");
3200
- }
3201
- function B(t, e, n, r, i, o) {
3202
- if (!a.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
3203
- if (e > i || e < o) throw new RangeError('"value" argument is out of bounds');
3204
- if (n + r > t.length) throw new RangeError("Index out of range");
3205
- }
3206
- function C(t, e, n, r) {
3207
- e < 0 && (e = 65535 + e + 1);
3208
- 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);
3209
- }
3210
- function j(t, e, n, r) {
3211
- e < 0 && (e = 4294967295 + e + 1);
3212
- for (var i = 0, o = Math.min(t.length - n, 4); i < o; ++i) t[n + i] = e >>> 8 * (r ? i : 3 - i) & 255;
3213
- }
3214
- function M(t, e, n, r, i, o) {
3215
- if (n + r > t.length) throw new RangeError("Index out of range");
3216
- if (n < 0) throw new RangeError("Index out of range");
3217
- }
3218
- function U(t, e, n, r, o) {
3219
- return o || M(t, 0, n, 4), i.write(t, e, n, r, 23, 4), n + 4;
3220
- }
3221
- function D(t, e, n, r, o) {
3222
- return o || M(t, 0, n, 8), i.write(t, e, n, r, 52, 8), n + 8;
3223
- }
3224
- a.prototype.slice = function (t, e) {
3225
- var n,
3226
- r = this.length;
3227
- 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 {
3228
- var i = e - t;
3229
- n = new a(i, void 0);
3230
- for (var o = 0; o < i; ++o) n[o] = this[o + t];
3231
- }
3232
- return n;
3233
- }, a.prototype.readUIntLE = function (t, e, n) {
3234
- t |= 0, e |= 0, n || L(t, e, this.length);
3235
- for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
3236
- return r;
3237
- }, a.prototype.readUIntBE = function (t, e, n) {
3238
- t |= 0, e |= 0, n || L(t, e, this.length);
3239
- for (var r = this[t + --e], i = 1; e > 0 && (i *= 256);) r += this[t + --e] * i;
3240
- return r;
3241
- }, a.prototype.readUInt8 = function (t, e) {
3242
- return e || L(t, 1, this.length), this[t];
3243
- }, a.prototype.readUInt16LE = function (t, e) {
3244
- return e || L(t, 2, this.length), this[t] | this[t + 1] << 8;
3245
- }, a.prototype.readUInt16BE = function (t, e) {
3246
- return e || L(t, 2, this.length), this[t] << 8 | this[t + 1];
3247
- }, a.prototype.readUInt32LE = function (t, e) {
3248
- return e || L(t, 4, this.length), (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3];
3249
- }, a.prototype.readUInt32BE = function (t, e) {
3250
- return e || L(t, 4, this.length), 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]);
3251
- }, a.prototype.readIntLE = function (t, e, n) {
3252
- t |= 0, e |= 0, n || L(t, e, this.length);
3253
- for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
3254
- return r >= (i *= 128) && (r -= Math.pow(2, 8 * e)), r;
3255
- }, a.prototype.readIntBE = function (t, e, n) {
3256
- t |= 0, e |= 0, n || L(t, e, this.length);
3257
- for (var r = e, i = 1, o = this[t + --r]; r > 0 && (i *= 256);) o += this[t + --r] * i;
3258
- return o >= (i *= 128) && (o -= Math.pow(2, 8 * e)), o;
3259
- }, a.prototype.readInt8 = function (t, e) {
3260
- return e || L(t, 1, this.length), 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t];
3261
- }, a.prototype.readInt16LE = function (t, e) {
3262
- e || L(t, 2, this.length);
3263
- var n = this[t] | this[t + 1] << 8;
3264
- return 32768 & n ? 4294901760 | n : n;
3265
- }, a.prototype.readInt16BE = function (t, e) {
3266
- e || L(t, 2, this.length);
3267
- var n = this[t + 1] | this[t] << 8;
3268
- return 32768 & n ? 4294901760 | n : n;
3269
- }, a.prototype.readInt32LE = function (t, e) {
3270
- return e || L(t, 4, this.length), this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24;
3271
- }, a.prototype.readInt32BE = function (t, e) {
3272
- return e || L(t, 4, this.length), this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3];
3273
- }, a.prototype.readFloatLE = function (t, e) {
3274
- return e || L(t, 4, this.length), i.read(this, t, !0, 23, 4);
3275
- }, a.prototype.readFloatBE = function (t, e) {
3276
- return e || L(t, 4, this.length), i.read(this, t, !1, 23, 4);
3277
- }, a.prototype.readDoubleLE = function (t, e) {
3278
- return e || L(t, 8, this.length), i.read(this, t, !0, 52, 8);
3279
- }, a.prototype.readDoubleBE = function (t, e) {
3280
- return e || L(t, 8, this.length), i.read(this, t, !1, 52, 8);
3281
- }, a.prototype.writeUIntLE = function (t, e, n, r) {
3282
- (t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
3283
- var i = 1,
3284
- o = 0;
3285
- for (this[e] = 255 & t; ++o < n && (i *= 256);) this[e + o] = t / i & 255;
3286
- return e + n;
3287
- }, a.prototype.writeUIntBE = function (t, e, n, r) {
3288
- (t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
3289
- var i = n - 1,
3290
- o = 1;
3291
- for (this[e + i] = 255 & t; --i >= 0 && (o *= 256);) this[e + i] = t / o & 255;
3292
- return e + n;
3293
- }, a.prototype.writeUInt8 = function (t, e, n) {
3294
- 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;
3295
- }, a.prototype.writeUInt16LE = function (t, e, n) {
3296
- 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;
3297
- }, a.prototype.writeUInt16BE = function (t, e, n) {
3298
- 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;
3299
- }, a.prototype.writeUInt32LE = function (t, e, n) {
3300
- 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;
3301
- }, a.prototype.writeUInt32BE = function (t, e, n) {
3302
- 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;
3303
- }, a.prototype.writeIntLE = function (t, e, n, r) {
3304
- if (t = +t, e |= 0, !r) {
3305
- var i = Math.pow(2, 8 * n - 1);
3306
- B(this, t, e, n, i - 1, -i);
3307
- }
3308
- var o = 0,
3309
- u = 1,
3310
- s = 0;
3311
- 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;
3312
- return e + n;
3313
- }, a.prototype.writeIntBE = function (t, e, n, r) {
3314
- if (t = +t, e |= 0, !r) {
3315
- var i = Math.pow(2, 8 * n - 1);
3316
- B(this, t, e, n, i - 1, -i);
3317
- }
3318
- var o = n - 1,
3319
- u = 1,
3320
- s = 0;
3321
- 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;
3322
- return e + n;
3323
- }, a.prototype.writeInt8 = function (t, e, n) {
3324
- 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;
3325
- }, a.prototype.writeInt16LE = function (t, e, n) {
3326
- 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;
3327
- }, a.prototype.writeInt16BE = function (t, e, n) {
3328
- 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;
3329
- }, a.prototype.writeInt32LE = function (t, e, n) {
3330
- 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;
3331
- }, a.prototype.writeInt32BE = function (t, e, n) {
3332
- 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;
3333
- }, a.prototype.writeFloatLE = function (t, e, n) {
3334
- return U(this, t, e, !0, n);
3335
- }, a.prototype.writeFloatBE = function (t, e, n) {
3336
- return U(this, t, e, !1, n);
3337
- }, a.prototype.writeDoubleLE = function (t, e, n) {
3338
- return D(this, t, e, !0, n);
3339
- }, a.prototype.writeDoubleBE = function (t, e, n) {
3340
- return D(this, t, e, !1, n);
3341
- }, a.prototype.copy = function (t, e, n, r) {
3342
- 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;
3343
- if (0 === t.length || 0 === this.length) return 0;
3344
- if (e < 0) throw new RangeError("targetStart out of bounds");
3345
- if (n < 0 || n >= this.length) throw new RangeError("sourceStart out of bounds");
3346
- if (r < 0) throw new RangeError("sourceEnd out of bounds");
3347
- r > this.length && (r = this.length), t.length - e < r - n && (r = t.length - e + n);
3348
- var i,
3349
- o = r - n;
3350
- 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);
3351
- return o;
3352
- }, a.prototype.fill = function (t, e, n, r) {
3353
- if ("string" == typeof t) {
3354
- if ("string" == typeof e ? (r = e, e = 0, n = this.length) : "string" == typeof n && (r = n, n = this.length), 1 === t.length) {
3355
- var i = t.charCodeAt(0);
3356
- i < 256 && (t = i);
3357
- }
3358
- if (void 0 !== r && "string" != typeof r) throw new TypeError("encoding must be a string");
3359
- if ("string" == typeof r && !a.isEncoding(r)) throw new TypeError("Unknown encoding: " + r);
3360
- } else "number" == typeof t && (t &= 255);
3361
- if (e < 0 || this.length < e || this.length < n) throw new RangeError("Out of range index");
3362
- if (n <= e) return this;
3363
- var o;
3364
- 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 {
3365
- var u = a.isBuffer(t) ? t : N(new a(t, r).toString()),
3366
- s = u.length;
3367
- for (o = 0; o < n - e; ++o) this[o + e] = u[o % s];
3368
- }
3369
- return this;
3370
- };
3371
- var I = /[^+\/0-9A-Za-z-_]/g;
3372
- function Y(t) {
3373
- return t < 16 ? "0" + t.toString(16) : t.toString(16);
3374
- }
3375
- function N(t, e) {
3376
- var n;
3377
- e = e || 1 / 0;
3378
- for (var r = t.length, i = null, o = [], u = 0; u < r; ++u) {
3379
- if ((n = t.charCodeAt(u)) > 55295 && n < 57344) {
3380
- if (!i) {
3381
- if (n > 56319) {
3382
- (e -= 3) > -1 && o.push(239, 191, 189);
3383
- continue;
3384
- }
3385
- if (u + 1 === r) {
3386
- (e -= 3) > -1 && o.push(239, 191, 189);
3387
- continue;
3388
- }
3389
- i = n;
3390
- continue;
3391
- }
3392
- if (n < 56320) {
3393
- (e -= 3) > -1 && o.push(239, 191, 189), i = n;
3394
- continue;
3395
- }
3396
- n = 65536 + (i - 55296 << 10 | n - 56320);
3397
- } else i && (e -= 3) > -1 && o.push(239, 191, 189);
3398
- if (i = null, n < 128) {
3399
- if ((e -= 1) < 0) break;
3400
- o.push(n);
3401
- } else if (n < 2048) {
3402
- if ((e -= 2) < 0) break;
3403
- o.push(n >> 6 | 192, 63 & n | 128);
3404
- } else if (n < 65536) {
3405
- if ((e -= 3) < 0) break;
3406
- o.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128);
3407
- } else {
3408
- if (!(n < 1114112)) throw new Error("Invalid code point");
3409
- if ((e -= 4) < 0) break;
3410
- o.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128);
3411
- }
3412
- }
3413
- return o;
3414
- }
3415
- function F(t) {
3416
- return r.toByteArray(function (t) {
3417
- if ((t = function (t) {
3418
- return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
3419
- }(t).replace(I, "")).length < 2) return "";
3420
- for (; t.length % 4 != 0;) t += "=";
3421
- return t;
3422
- }(t));
3423
- }
3424
- function z(t, e, n, r) {
3425
- for (var i = 0; i < r && !(i + n >= e.length || i >= t.length); ++i) e[i + n] = t[i];
3426
- return i;
3427
- }
3428
- }).call(e, n(0));
3429
- }, function (t, e, n) {
2757
+ var r,
2758
+ i = n(20),
2759
+ o = (r = i) && r.__esModule ? r : {
2760
+ default: r
2761
+ };
2762
+ t.exports = function (t, e, n) {
2763
+ 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) {
2764
+ t.setAttribute("role", "option"), t.id = t.id || (0, o.default)();
2765
+ });
2766
+ };
2767
+ }, function (t, e, n) {
3430
2768
 
3431
- e.byteLength = function (t) {
3432
- return 3 * t.length / 4 - c(t);
3433
- }, e.toByteArray = function (t) {
3434
- var e,
3435
- n,
3436
- r,
3437
- u,
3438
- s,
3439
- a = t.length;
3440
- u = c(t), s = new o(3 * a / 4 - u), n = u > 0 ? a - 4 : a;
3441
- var f = 0;
3442
- 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;
3443
- 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);
3444
- return s;
3445
- }, e.fromByteArray = function (t) {
3446
- 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));
3447
- 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 += "=");
3448
- return u.push(o), u.join("");
3449
- };
3450
- 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;
3451
- function c(t) {
3452
- var e = t.length;
3453
- if (e % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
3454
- return "=" === t[e - 2] ? 2 : "=" === t[e - 1] ? 1 : 0;
3455
- }
3456
- function f(t, e, n) {
3457
- 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]);
3458
- return u.join("");
3459
- }
3460
- i["-".charCodeAt(0)] = 62, i["_".charCodeAt(0)] = 63;
3461
- }, function (t, e) {
3462
- e.read = function (t, e, n, r, i) {
3463
- var o,
3464
- u,
3465
- s = 8 * i - r - 1,
3466
- a = (1 << s) - 1,
3467
- c = a >> 1,
3468
- f = -7,
3469
- l = n ? i - 1 : 0,
3470
- h = n ? -1 : 1,
3471
- p = t[e + l];
3472
- for (l += h, o = p & (1 << -f) - 1, p >>= -f, f += s; f > 0; o = 256 * o + t[e + l], l += h, f -= 8);
3473
- for (u = o & (1 << -f) - 1, o >>= -f, f += r; f > 0; u = 256 * u + t[e + l], l += h, f -= 8);
3474
- if (0 === o) o = 1 - c;else {
3475
- if (o === a) return u ? NaN : 1 / 0 * (p ? -1 : 1);
3476
- u += Math.pow(2, r), o -= c;
3477
- }
3478
- return (p ? -1 : 1) * u * Math.pow(2, o - r);
3479
- }, e.write = function (t, e, n, r, i, o) {
3480
- var u,
3481
- s,
3482
- a,
3483
- c = 8 * o - i - 1,
3484
- f = (1 << c) - 1,
3485
- l = f >> 1,
3486
- h = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
3487
- p = r ? 0 : o - 1,
3488
- d = r ? 1 : -1,
3489
- g = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0;
3490
- 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);
3491
- for (u = u << i | s, c += i; c > 0; t[n + p] = 255 & u, p += d, u /= 256, c -= 8);
3492
- t[n + p - d] |= 128 * g;
3493
- };
3494
- }, function (t, e) {
3495
- var n = {}.toString;
3496
- t.exports = Array.isArray || function (t) {
3497
- return "[object Array]" == n.call(t);
3498
- };
3499
- }, function (t, e, n) {
2769
+ var r,
2770
+ i = n(21),
2771
+ o = (r = i) && r.__esModule ? r : {
2772
+ default: r
2773
+ };
2774
+ t.exports = function t(e) {
2775
+ e = e || 8;
2776
+ var n = (0, o.default)(e);
2777
+ if (document.getElementById(n)) return t(e);
2778
+ return n;
2779
+ };
2780
+ }, function (t, e, n) {
2781
+ (function (r) {
2782
+ var i = n(26);
2783
+ function o(t) {
2784
+ i("string" == typeof t, "the list of characters must be a string!");
2785
+ var e = r.byteLength(t);
2786
+ return function (n) {
2787
+ i("number" == typeof (n = n || 10) && n >= 0, "the length of the random string must be a number!");
2788
+ for (var r = "", o = 0; o < n; o++) r += t[Math.floor(e * Math.random())];
2789
+ return r;
2790
+ };
2791
+ }
2792
+ (e = t.exports = o("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")).base62 = e, e.base36 = o("abcdefghijklmnopqrstuvwxyz0123456789"), e.base10 = o("0123456789"), e.create = o;
2793
+ }).call(e, n(22).Buffer);
2794
+ }, function (t, e, n) {
3500
2795
 
3501
- (function (e) {
3502
- function r(t, e) {
3503
- if (t === e) return 0;
3504
- for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
3505
- n = t[i], r = e[i];
3506
- break;
3507
- }
3508
- return n < r ? -1 : r < n ? 1 : 0;
3509
- }
3510
- function i(t) {
3511
- return e.Buffer && "function" == typeof e.Buffer.isBuffer ? e.Buffer.isBuffer(t) : !(null == t || !t._isBuffer);
3512
- }
3513
- var o = n(27),
3514
- u = Object.prototype.hasOwnProperty,
3515
- s = Array.prototype.slice,
3516
- a = "foo" === function () {}.name;
3517
- function c(t) {
3518
- return Object.prototype.toString.call(t);
3519
- }
3520
- function f(t) {
3521
- return !i(t) && "function" == typeof e.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(t) : !!t && (t instanceof DataView || !!(t.buffer && t.buffer instanceof ArrayBuffer)));
3522
- }
3523
- var l = t.exports = v,
3524
- h = /\s*function\s+([^\(\s]*)\s*/;
3525
- function p(t) {
3526
- if (o.isFunction(t)) {
3527
- if (a) return t.name;
3528
- var e = t.toString().match(h);
3529
- return e && e[1];
3530
- }
3531
- }
3532
- function d(t, e) {
3533
- return "string" == typeof t ? t.length < e ? t : t.slice(0, e) : t;
3534
- }
3535
- function g(t) {
3536
- if (a || !o.isFunction(t)) return o.inspect(t);
3537
- var e = p(t);
3538
- return "[Function" + (e ? ": " + e : "") + "]";
3539
- }
3540
- function y(t, e, n, r, i) {
3541
- throw new l.AssertionError({
3542
- message: n,
3543
- actual: t,
3544
- expected: e,
3545
- operator: r,
3546
- stackStartFunction: i
3547
- });
3548
- }
3549
- function v(t, e) {
3550
- t || y(t, !0, e, "==", l.ok);
3551
- }
3552
- function m(t, e, n, u) {
3553
- if (t === e) return !0;
3554
- if (i(t) && i(e)) return 0 === r(t, e);
3555
- if (o.isDate(t) && o.isDate(e)) return t.getTime() === e.getTime();
3556
- 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;
3557
- if (null !== t && "object" == typeof t || null !== e && "object" == typeof e) {
3558
- 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));
3559
- if (i(t) !== i(e)) return !1;
3560
- var a = (u = u || {
3561
- actual: [],
3562
- expected: []
3563
- }).actual.indexOf(t);
3564
- return -1 !== a && a === u.expected.indexOf(e) || (u.actual.push(t), u.expected.push(e), function (t, e, n, r) {
3565
- if (null === t || void 0 === t || null === e || void 0 === e) return !1;
3566
- if (o.isPrimitive(t) || o.isPrimitive(e)) return t === e;
3567
- if (n && Object.getPrototypeOf(t) !== Object.getPrototypeOf(e)) return !1;
3568
- var i = b(t),
3569
- u = b(e);
3570
- if (i && !u || !i && u) return !1;
3571
- if (i) return t = s.call(t), e = s.call(e), m(t, e, n);
3572
- var a,
3573
- c,
3574
- f = O(t),
3575
- l = O(e);
3576
- if (f.length !== l.length) return !1;
3577
- for (f.sort(), l.sort(), c = f.length - 1; c >= 0; c--) if (f[c] !== l[c]) return !1;
3578
- for (c = f.length - 1; c >= 0; c--) if (a = f[c], !m(t[a], e[a], n, r)) return !1;
3579
- return !0;
3580
- }(t, e, n, u));
3581
- }
3582
- return n ? t === e : t == e;
3583
- }
3584
- function b(t) {
3585
- return "[object Arguments]" == Object.prototype.toString.call(t);
3586
- }
3587
- function w(t, e) {
3588
- if (!t || !e) return !1;
3589
- if ("[object RegExp]" == Object.prototype.toString.call(e)) return e.test(t);
3590
- try {
3591
- if (t instanceof e) return !0;
3592
- } catch (t) {}
3593
- return !Error.isPrototypeOf(e) && !0 === e.call({}, t);
3594
- }
3595
- function E(t, e, n, r) {
3596
- var i;
3597
- if ("function" != typeof e) throw new TypeError('"block" argument must be a function');
3598
- "string" == typeof n && (r = n, n = null), i = function (t) {
3599
- var e;
3600
- try {
3601
- t();
3602
- } catch (t) {
3603
- e = t;
3604
- }
3605
- return e;
3606
- }(e), r = (n && n.name ? " (" + n.name + ")." : ".") + (r ? " " + r : "."), t && !i && y(i, n, "Missing expected exception" + r);
3607
- var u = "string" == typeof r,
3608
- s = !t && o.isError(i),
3609
- a = !t && i && !n;
3610
- if ((s && u && w(i, n) || a) && y(i, n, "Got unwanted exception" + r), t && i && n && !w(i, n) || !t && i) throw i;
3611
- }
3612
- l.AssertionError = function (t) {
3613
- var e;
3614
- 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);
3615
- var n = t.stackStartFunction || y;
3616
- if (Error.captureStackTrace) Error.captureStackTrace(this, n);else {
3617
- var r = new Error();
3618
- if (r.stack) {
3619
- var i = r.stack,
3620
- o = p(n),
3621
- u = i.indexOf("\n" + o);
3622
- if (u >= 0) {
3623
- var s = i.indexOf("\n", u + 1);
3624
- i = i.substring(s + 1);
3625
- }
3626
- this.stack = i;
3627
- }
3628
- }
3629
- }, o.inherits(l.AssertionError, Error), l.fail = y, l.ok = v, l.equal = function (t, e, n) {
3630
- t != e && y(t, e, n, "==", l.equal);
3631
- }, l.notEqual = function (t, e, n) {
3632
- t == e && y(t, e, n, "!=", l.notEqual);
3633
- }, l.deepEqual = function (t, e, n) {
3634
- m(t, e, !1) || y(t, e, n, "deepEqual", l.deepEqual);
3635
- }, l.deepStrictEqual = function (t, e, n) {
3636
- m(t, e, !0) || y(t, e, n, "deepStrictEqual", l.deepStrictEqual);
3637
- }, l.notDeepEqual = function (t, e, n) {
3638
- m(t, e, !1) && y(t, e, n, "notDeepEqual", l.notDeepEqual);
3639
- }, l.notDeepStrictEqual = function t(e, n, r) {
3640
- m(e, n, !0) && y(e, n, r, "notDeepStrictEqual", t);
3641
- }, l.strictEqual = function (t, e, n) {
3642
- t !== e && y(t, e, n, "===", l.strictEqual);
3643
- }, l.notStrictEqual = function (t, e, n) {
3644
- t === e && y(t, e, n, "!==", l.notStrictEqual);
3645
- }, l.throws = function (t, e, n) {
3646
- E(!0, t, e, n);
3647
- }, l.doesNotThrow = function (t, e, n) {
3648
- E(!1, t, e, n);
3649
- }, l.ifError = function (t) {
3650
- if (t) throw t;
3651
- };
3652
- var O = Object.keys || function (t) {
3653
- var e = [];
3654
- for (var n in t) u.call(t, n) && e.push(n);
3655
- return e;
3656
- };
3657
- }).call(e, n(0));
3658
- }, function (t, e, n) {
3659
- (function (t, r) {
3660
- var i = /%[sdj%]/g;
3661
- e.format = function (t) {
3662
- if (!v(t)) {
3663
- for (var e = [], n = 0; n < arguments.length; n++) e.push(s(arguments[n]));
3664
- return e.join(" ");
3665
- }
3666
- n = 1;
3667
- for (var r = arguments, o = r.length, u = String(t).replace(i, function (t) {
3668
- if ("%%" === t) return "%";
3669
- if (n >= o) return t;
3670
- switch (t) {
3671
- case "%s":
3672
- return String(r[n++]);
3673
- case "%d":
3674
- return Number(r[n++]);
3675
- case "%j":
3676
- try {
3677
- return JSON.stringify(r[n++]);
3678
- } catch (t) {
3679
- return "[Circular]";
3680
- }
3681
- default:
3682
- return t;
3683
- }
3684
- }), a = r[n]; n < o; a = r[++n]) g(a) || !w(a) ? u += " " + a : u += " " + s(a);
3685
- return u;
3686
- }, e.deprecate = function (n, i) {
3687
- if (m(t.process)) return function () {
3688
- return e.deprecate(n, i).apply(this, arguments);
3689
- };
3690
- if (!0 === r.noDeprecation) return n;
3691
- var o = !1;
3692
- return function () {
3693
- if (!o) {
3694
- if (r.throwDeprecation) throw new Error(i);
3695
- r.traceDeprecation ? console.trace(i) : console.error(i), o = !0;
3696
- }
3697
- return n.apply(this, arguments);
3698
- };
3699
- };
3700
- var o,
3701
- u = {};
3702
- function s(t, n) {
3703
- var r = {
3704
- seen: [],
3705
- stylize: c
3706
- };
3707
- 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);
3708
- }
3709
- function a(t, e) {
3710
- var n = s.styles[e];
3711
- return n ? "[" + s.colors[n][0] + "m" + t + "[" + s.colors[n][1] + "m" : t;
3712
- }
3713
- function c(t, e) {
3714
- return t;
3715
- }
3716
- function f(t, n, r) {
3717
- if (t.customInspect && n && A(n.inspect) && n.inspect !== e.inspect && (!n.constructor || n.constructor.prototype !== n)) {
3718
- var i = n.inspect(r, t);
3719
- return v(i) || (i = f(t, i, r)), i;
3720
- }
3721
- var o = function (t, e) {
3722
- if (m(e)) return t.stylize("undefined", "undefined");
3723
- if (v(e)) {
3724
- var n = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3725
- return t.stylize(n, "string");
3726
- }
3727
- if (y(e)) return t.stylize("" + e, "number");
3728
- if (d(e)) return t.stylize("" + e, "boolean");
3729
- if (g(e)) return t.stylize("null", "null");
3730
- }(t, n);
3731
- if (o) return o;
3732
- var u = Object.keys(n),
3733
- s = function (t) {
3734
- var e = {};
3735
- return t.forEach(function (t, n) {
3736
- e[t] = !0;
3737
- }), e;
3738
- }(u);
3739
- if (t.showHidden && (u = Object.getOwnPropertyNames(n)), O(n) && (u.indexOf("message") >= 0 || u.indexOf("description") >= 0)) return l(n);
3740
- if (0 === u.length) {
3741
- if (A(n)) {
3742
- var a = n.name ? ": " + n.name : "";
3743
- return t.stylize("[Function" + a + "]", "special");
3744
- }
3745
- if (b(n)) return t.stylize(RegExp.prototype.toString.call(n), "regexp");
3746
- if (E(n)) return t.stylize(Date.prototype.toString.call(n), "date");
3747
- if (O(n)) return l(n);
3748
- }
3749
- var c,
3750
- w = "",
3751
- x = !1,
3752
- T = ["{", "}"];
3753
- (p(n) && (x = !0, T = ["[", "]"]), A(n)) && (w = " [Function" + (n.name ? ": " + n.name : "") + "]");
3754
- 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) {
3755
- 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("");
3756
- return i.forEach(function (i) {
3757
- i.match(/^\d+$/) || o.push(h(t, e, n, r, i, !0));
3758
- }), o;
3759
- }(t, n, r, s, u) : u.map(function (e) {
3760
- return h(t, n, r, s, e, x);
3761
- }), t.seen.pop(), function (t, e, n) {
3762
- if (t.reduce(function (t, e) {
3763
- return e.indexOf("\n") >= 0 && 0, t + e.replace(/\u001b\[\d\d?m/g, "").length + 1;
3764
- }, 0) > 60) return n[0] + ("" === e ? "" : e + "\n ") + " " + t.join(",\n ") + " " + n[1];
3765
- return n[0] + e + " " + t.join(", ") + " " + n[1];
3766
- }(c, w, T)) : T[0] + w + T[1];
3767
- }
3768
- function l(t) {
3769
- return "[" + Error.prototype.toString.call(t) + "]";
3770
- }
3771
- function h(t, e, n, r, i, o) {
3772
- var u, s, a;
3773
- if ((a = Object.getOwnPropertyDescriptor(e, i) || {
3774
- value: e[i]
3775
- }).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) {
3776
- return " " + t;
3777
- }).join("\n").substr(2) : "\n" + s.split("\n").map(function (t) {
3778
- return " " + t;
3779
- }).join("\n")) : s = t.stylize("[Circular]", "special")), m(u)) {
3780
- if (o && i.match(/^\d+$/)) return s;
3781
- (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"));
3782
- }
3783
- return u + ": " + s;
3784
- }
3785
- function p(t) {
3786
- return Array.isArray(t);
3787
- }
3788
- function d(t) {
3789
- return "boolean" == typeof t;
3790
- }
3791
- function g(t) {
3792
- return null === t;
3793
- }
3794
- function y(t) {
3795
- return "number" == typeof t;
3796
- }
3797
- function v(t) {
3798
- return "string" == typeof t;
3799
- }
3800
- function m(t) {
3801
- return void 0 === t;
3802
- }
3803
- function b(t) {
3804
- return w(t) && "[object RegExp]" === x(t);
3805
- }
3806
- function w(t) {
3807
- return "object" == typeof t && null !== t;
3808
- }
3809
- function E(t) {
3810
- return w(t) && "[object Date]" === x(t);
3811
- }
3812
- function O(t) {
3813
- return w(t) && ("[object Error]" === x(t) || t instanceof Error);
3814
- }
3815
- function A(t) {
3816
- return "function" == typeof t;
3817
- }
3818
- function x(t) {
3819
- return Object.prototype.toString.call(t);
3820
- }
3821
- function T(t) {
3822
- return t < 10 ? "0" + t.toString(10) : t.toString(10);
3823
- }
3824
- e.debuglog = function (t) {
3825
- if (m(o) && (o = Object({
3826
- NODE_ENV: "production"
3827
- }).NODE_DEBUG || ""), t = t.toUpperCase(), !u[t]) if (new RegExp("\\b" + t + "\\b", "i").test(o)) {
3828
- var n = r.pid;
3829
- u[t] = function () {
3830
- var r = e.format.apply(e, arguments);
3831
- console.error("%s %d: %s", t, n, r);
3832
- };
3833
- } else u[t] = function () {};
3834
- return u[t];
3835
- }, e.inspect = s, s.colors = {
3836
- bold: [1, 22],
3837
- italic: [3, 23],
3838
- underline: [4, 24],
3839
- inverse: [7, 27],
3840
- white: [37, 39],
3841
- grey: [90, 39],
3842
- black: [30, 39],
3843
- blue: [34, 39],
3844
- cyan: [36, 39],
3845
- green: [32, 39],
3846
- magenta: [35, 39],
3847
- red: [31, 39],
3848
- yellow: [33, 39]
3849
- }, s.styles = {
3850
- special: "cyan",
3851
- number: "yellow",
3852
- boolean: "yellow",
3853
- undefined: "grey",
3854
- null: "bold",
3855
- string: "green",
3856
- date: "magenta",
3857
- regexp: "red"
3858
- }, e.isArray = p, e.isBoolean = d, e.isNull = g, e.isNullOrUndefined = function (t) {
3859
- return null == t;
3860
- }, e.isNumber = y, e.isString = v, e.isSymbol = function (t) {
3861
- return "symbol" == typeof t;
3862
- }, e.isUndefined = m, e.isRegExp = b, e.isObject = w, e.isDate = E, e.isError = O, e.isFunction = A, e.isPrimitive = function (t) {
3863
- return null === t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || "symbol" == typeof t || void 0 === t;
3864
- }, e.isBuffer = n(29);
3865
- var _ = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
3866
- function S(t, e) {
3867
- return Object.prototype.hasOwnProperty.call(t, e);
3868
- }
3869
- e.log = function () {
3870
- var t, n;
3871
- 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));
3872
- }, e.inherits = n(30), e._extend = function (t, e) {
3873
- if (!e || !w(e)) return t;
3874
- for (var n = Object.keys(e), r = n.length; r--;) t[n[r]] = e[n[r]];
3875
- return t;
3876
- };
3877
- }).call(e, n(0), n(28));
3878
- }, function (t, e) {
3879
- var n,
3880
- r,
3881
- i = t.exports = {};
3882
- function o() {
3883
- throw new Error("setTimeout has not been defined");
3884
- }
3885
- function u() {
3886
- throw new Error("clearTimeout has not been defined");
3887
- }
3888
- function s(t) {
3889
- if (n === setTimeout) return setTimeout(t, 0);
3890
- if ((n === o || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0);
3891
- try {
3892
- return n(t, 0);
3893
- } catch (e) {
3894
- try {
3895
- return n.call(null, t, 0);
3896
- } catch (e) {
3897
- return n.call(this, t, 0);
3898
- }
3899
- }
3900
- }
3901
- !function () {
3902
- try {
3903
- n = "function" == typeof setTimeout ? setTimeout : o;
3904
- } catch (t) {
3905
- n = o;
3906
- }
3907
- try {
3908
- r = "function" == typeof clearTimeout ? clearTimeout : u;
3909
- } catch (t) {
3910
- r = u;
3911
- }
3912
- }();
3913
- var a,
3914
- c = [],
3915
- f = !1,
3916
- l = -1;
3917
- function h() {
3918
- f && a && (f = !1, a.length ? c = a.concat(c) : l = -1, c.length && p());
3919
- }
3920
- function p() {
3921
- if (!f) {
3922
- var t = s(h);
3923
- f = !0;
3924
- for (var e = c.length; e;) {
3925
- for (a = c, c = []; ++l < e;) a && a[l].run();
3926
- l = -1, e = c.length;
3927
- }
3928
- a = null, f = !1, function (t) {
3929
- if (r === clearTimeout) return clearTimeout(t);
3930
- if ((r === u || !r) && clearTimeout) return r = clearTimeout, clearTimeout(t);
3931
- try {
3932
- r(t);
3933
- } catch (e) {
3934
- try {
3935
- return r.call(null, t);
3936
- } catch (e) {
3937
- return r.call(this, t);
3938
- }
3939
- }
3940
- }(t);
3941
- }
3942
- }
3943
- function d(t, e) {
3944
- this.fun = t, this.array = e;
3945
- }
3946
- function g() {}
3947
- i.nextTick = function (t) {
3948
- var e = new Array(arguments.length - 1);
3949
- if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
3950
- c.push(new d(t, e)), 1 !== c.length || f || s(p);
3951
- }, d.prototype.run = function () {
3952
- this.fun.apply(null, this.array);
3953
- }, 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) {
3954
- return [];
3955
- }, i.binding = function (t) {
3956
- throw new Error("process.binding is not supported");
3957
- }, i.cwd = function () {
3958
- return "/";
3959
- }, i.chdir = function (t) {
3960
- throw new Error("process.chdir is not supported");
3961
- }, i.umask = function () {
3962
- return 0;
3963
- };
3964
- }, function (t, e) {
3965
- t.exports = function (t) {
3966
- return t && "object" == typeof t && "function" == typeof t.copy && "function" == typeof t.fill && "function" == typeof t.readUInt8;
3967
- };
3968
- }, function (t, e) {
3969
- "function" == typeof Object.create ? t.exports = function (t, e) {
3970
- t.super_ = e, t.prototype = Object.create(e.prototype, {
3971
- constructor: {
3972
- value: t,
3973
- enumerable: !1,
3974
- writable: !0,
3975
- configurable: !0
3976
- }
3977
- });
3978
- } : t.exports = function (t, e) {
3979
- t.super_ = e;
3980
- var n = function () {};
3981
- n.prototype = e.prototype, t.prototype = new n(), t.prototype.constructor = t;
3982
- };
3983
- }, function (t, e, n) {
2796
+ (function (t) {
2797
+ var r = n(23),
2798
+ i = n(24),
2799
+ o = n(25);
2800
+ function u() {
2801
+ return a.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
2802
+ }
2803
+ function s(t, e) {
2804
+ if (u() < e) throw new RangeError("Invalid typed array length");
2805
+ return a.TYPED_ARRAY_SUPPORT ? (t = new Uint8Array(e)).__proto__ = a.prototype : (null === t && (t = new a(e)), t.length = e), t;
2806
+ }
2807
+ function a(t, e, n) {
2808
+ if (!(a.TYPED_ARRAY_SUPPORT || this instanceof a)) return new a(t, e, n);
2809
+ if ("number" == typeof t) {
2810
+ if ("string" == typeof e) throw new Error("If encoding is specified then the first argument must be a string");
2811
+ return l(this, t);
2812
+ }
2813
+ return c(this, t, e, n);
2814
+ }
2815
+ function c(t, e, n, r) {
2816
+ if ("number" == typeof e) throw new TypeError('"value" argument must not be a number');
2817
+ return "undefined" != typeof ArrayBuffer && e instanceof ArrayBuffer ? function (t, e, n, r) {
2818
+ if (e.byteLength, n < 0 || e.byteLength < n) throw new RangeError("'offset' is out of bounds");
2819
+ if (e.byteLength < n + (r || 0)) throw new RangeError("'length' is out of bounds");
2820
+ e = void 0 === n && void 0 === r ? new Uint8Array(e) : void 0 === r ? new Uint8Array(e, n) : new Uint8Array(e, n, r);
2821
+ a.TYPED_ARRAY_SUPPORT ? (t = e).__proto__ = a.prototype : t = h(t, e);
2822
+ return t;
2823
+ }(t, e, n, r) : "string" == typeof e ? function (t, e, n) {
2824
+ "string" == typeof n && "" !== n || (n = "utf8");
2825
+ if (!a.isEncoding(n)) throw new TypeError('"encoding" must be a valid string encoding');
2826
+ var r = 0 | d(e, n),
2827
+ i = (t = s(t, r)).write(e, n);
2828
+ i !== r && (t = t.slice(0, i));
2829
+ return t;
2830
+ }(t, e, n) : function (t, e) {
2831
+ if (a.isBuffer(e)) {
2832
+ var n = 0 | p(e.length);
2833
+ return 0 === (t = s(t, n)).length ? t : (e.copy(t, 0, 0, n), t);
2834
+ }
2835
+ if (e) {
2836
+ 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);
2837
+ if ("Buffer" === e.type && o(e.data)) return h(t, e.data);
2838
+ }
2839
+ var r;
2840
+ throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
2841
+ }(t, e);
2842
+ }
2843
+ function f(t) {
2844
+ if ("number" != typeof t) throw new TypeError('"size" argument must be a number');
2845
+ if (t < 0) throw new RangeError('"size" argument must not be negative');
2846
+ }
2847
+ function l(t, e) {
2848
+ 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;
2849
+ return t;
2850
+ }
2851
+ function h(t, e) {
2852
+ var n = e.length < 0 ? 0 : 0 | p(e.length);
2853
+ t = s(t, n);
2854
+ for (var r = 0; r < n; r += 1) t[r] = 255 & e[r];
2855
+ return t;
2856
+ }
2857
+ function p(t) {
2858
+ if (t >= u()) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + u().toString(16) + " bytes");
2859
+ return 0 | t;
2860
+ }
2861
+ function d(t, e) {
2862
+ if (a.isBuffer(t)) return t.length;
2863
+ if ("undefined" != typeof ArrayBuffer && "function" == typeof ArrayBuffer.isView && (ArrayBuffer.isView(t) || t instanceof ArrayBuffer)) return t.byteLength;
2864
+ "string" != typeof t && (t = "" + t);
2865
+ var n = t.length;
2866
+ if (0 === n) return 0;
2867
+ for (var r = !1;;) switch (e) {
2868
+ case "ascii":
2869
+ case "latin1":
2870
+ case "binary":
2871
+ return n;
2872
+ case "utf8":
2873
+ case "utf-8":
2874
+ case void 0:
2875
+ return N(t).length;
2876
+ case "ucs2":
2877
+ case "ucs-2":
2878
+ case "utf16le":
2879
+ case "utf-16le":
2880
+ return 2 * n;
2881
+ case "hex":
2882
+ return n >>> 1;
2883
+ case "base64":
2884
+ return F(t).length;
2885
+ default:
2886
+ if (r) return N(t).length;
2887
+ e = ("" + e).toLowerCase(), r = !0;
2888
+ }
2889
+ }
2890
+ function g(t, e, n) {
2891
+ var r = t[e];
2892
+ t[e] = t[n], t[n] = r;
2893
+ }
2894
+ function y(t, e, n, r, i) {
2895
+ if (0 === t.length) return -1;
2896
+ 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) {
2897
+ if (i) return -1;
2898
+ n = t.length - 1;
2899
+ } else if (n < 0) {
2900
+ if (!i) return -1;
2901
+ n = 0;
2902
+ }
2903
+ if ("string" == typeof e && (e = a.from(e, r)), a.isBuffer(e)) return 0 === e.length ? -1 : v(t, e, n, r, i);
2904
+ 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);
2905
+ throw new TypeError("val must be string, number or Buffer");
2906
+ }
2907
+ function v(t, e, n, r, i) {
2908
+ var o,
2909
+ u = 1,
2910
+ s = t.length,
2911
+ a = e.length;
2912
+ if (void 0 !== r && ("ucs2" === (r = String(r).toLowerCase()) || "ucs-2" === r || "utf16le" === r || "utf-16le" === r)) {
2913
+ if (t.length < 2 || e.length < 2) return -1;
2914
+ u = 2, s /= 2, a /= 2, n /= 2;
2915
+ }
2916
+ function c(t, e) {
2917
+ return 1 === u ? t[e] : t.readUInt16BE(e * u);
2918
+ }
2919
+ if (i) {
2920
+ var f = -1;
2921
+ for (o = n; o < s; o++) if (c(t, o) === c(e, -1 === f ? 0 : o - f)) {
2922
+ if (-1 === f && (f = o), o - f + 1 === a) return f * u;
2923
+ } else -1 !== f && (o -= o - f), f = -1;
2924
+ } else for (n + a > s && (n = s - a), o = n; o >= 0; o--) {
2925
+ for (var l = !0, h = 0; h < a; h++) if (c(t, o + h) !== c(e, h)) {
2926
+ l = !1;
2927
+ break;
2928
+ }
2929
+ if (l) return o;
2930
+ }
2931
+ return -1;
2932
+ }
2933
+ function m(t, e, n, r) {
2934
+ n = Number(n) || 0;
2935
+ var i = t.length - n;
2936
+ r ? (r = Number(r)) > i && (r = i) : r = i;
2937
+ var o = e.length;
2938
+ if (o % 2 != 0) throw new TypeError("Invalid hex string");
2939
+ r > o / 2 && (r = o / 2);
2940
+ for (var u = 0; u < r; ++u) {
2941
+ var s = parseInt(e.substr(2 * u, 2), 16);
2942
+ if (isNaN(s)) return u;
2943
+ t[n + u] = s;
2944
+ }
2945
+ return u;
2946
+ }
2947
+ function b(t, e, n, r) {
2948
+ return z(N(e, t.length - n), t, n, r);
2949
+ }
2950
+ function w(t, e, n, r) {
2951
+ return z(function (t) {
2952
+ for (var e = [], n = 0; n < t.length; ++n) e.push(255 & t.charCodeAt(n));
2953
+ return e;
2954
+ }(e), t, n, r);
2955
+ }
2956
+ function E(t, e, n, r) {
2957
+ return w(t, e, n, r);
2958
+ }
2959
+ function O(t, e, n, r) {
2960
+ return z(F(e), t, n, r);
2961
+ }
2962
+ function A(t, e, n, r) {
2963
+ return z(function (t, e) {
2964
+ 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);
2965
+ return o;
2966
+ }(e, t.length - n), t, n, r);
2967
+ }
2968
+ function x(t, e, n) {
2969
+ return 0 === e && n === t.length ? r.fromByteArray(t) : r.fromByteArray(t.slice(e, n));
2970
+ }
2971
+ function T(t, e, n) {
2972
+ n = Math.min(t.length, n);
2973
+ for (var r = [], i = e; i < n;) {
2974
+ var o,
2975
+ u,
2976
+ s,
2977
+ a,
2978
+ c = t[i],
2979
+ f = null,
2980
+ l = c > 239 ? 4 : c > 223 ? 3 : c > 191 ? 2 : 1;
2981
+ if (i + l <= n) switch (l) {
2982
+ case 1:
2983
+ c < 128 && (f = c);
2984
+ break;
2985
+ case 2:
2986
+ 128 == (192 & (o = t[i + 1])) && (a = (31 & c) << 6 | 63 & o) > 127 && (f = a);
2987
+ break;
2988
+ case 3:
2989
+ 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);
2990
+ break;
2991
+ case 4:
2992
+ 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);
2993
+ }
2994
+ 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;
2995
+ }
2996
+ return function (t) {
2997
+ var e = t.length;
2998
+ if (e <= _) return String.fromCharCode.apply(String, t);
2999
+ var n = "",
3000
+ r = 0;
3001
+ for (; r < e;) n += String.fromCharCode.apply(String, t.slice(r, r += _));
3002
+ return n;
3003
+ }(r);
3004
+ }
3005
+ e.Buffer = a, e.SlowBuffer = function (t) {
3006
+ +t != t && (t = 0);
3007
+ return a.alloc(+t);
3008
+ }, e.INSPECT_MAX_BYTES = 50, a.TYPED_ARRAY_SUPPORT = void 0 !== t.TYPED_ARRAY_SUPPORT ? t.TYPED_ARRAY_SUPPORT : function () {
3009
+ try {
3010
+ var t = new Uint8Array(1);
3011
+ return t.__proto__ = {
3012
+ __proto__: Uint8Array.prototype,
3013
+ foo: function () {
3014
+ return 42;
3015
+ }
3016
+ }, 42 === t.foo() && "function" == typeof t.subarray && 0 === t.subarray(1, 1).byteLength;
3017
+ } catch (t) {
3018
+ return !1;
3019
+ }
3020
+ }(), e.kMaxLength = u(), a.poolSize = 8192, a._augment = function (t) {
3021
+ return t.__proto__ = a.prototype, t;
3022
+ }, a.from = function (t, e, n) {
3023
+ return c(null, t, e, n);
3024
+ }, 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, {
3025
+ value: null,
3026
+ configurable: !0
3027
+ })), a.alloc = function (t, e, n) {
3028
+ return function (t, e, n, r) {
3029
+ 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);
3030
+ }(null, t, e, n);
3031
+ }, a.allocUnsafe = function (t) {
3032
+ return l(null, t);
3033
+ }, a.allocUnsafeSlow = function (t) {
3034
+ return l(null, t);
3035
+ }, a.isBuffer = function (t) {
3036
+ return !(null == t || !t._isBuffer);
3037
+ }, a.compare = function (t, e) {
3038
+ if (!a.isBuffer(t) || !a.isBuffer(e)) throw new TypeError("Arguments must be Buffers");
3039
+ if (t === e) return 0;
3040
+ for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
3041
+ n = t[i], r = e[i];
3042
+ break;
3043
+ }
3044
+ return n < r ? -1 : r < n ? 1 : 0;
3045
+ }, a.isEncoding = function (t) {
3046
+ switch (String(t).toLowerCase()) {
3047
+ case "hex":
3048
+ case "utf8":
3049
+ case "utf-8":
3050
+ case "ascii":
3051
+ case "latin1":
3052
+ case "binary":
3053
+ case "base64":
3054
+ case "ucs2":
3055
+ case "ucs-2":
3056
+ case "utf16le":
3057
+ case "utf-16le":
3058
+ return !0;
3059
+ default:
3060
+ return !1;
3061
+ }
3062
+ }, a.concat = function (t, e) {
3063
+ if (!o(t)) throw new TypeError('"list" argument must be an Array of Buffers');
3064
+ if (0 === t.length) return a.alloc(0);
3065
+ var n;
3066
+ if (void 0 === e) for (e = 0, n = 0; n < t.length; ++n) e += t[n].length;
3067
+ var r = a.allocUnsafe(e),
3068
+ i = 0;
3069
+ for (n = 0; n < t.length; ++n) {
3070
+ var u = t[n];
3071
+ if (!a.isBuffer(u)) throw new TypeError('"list" argument must be an Array of Buffers');
3072
+ u.copy(r, i), i += u.length;
3073
+ }
3074
+ return r;
3075
+ }, a.byteLength = d, a.prototype._isBuffer = !0, a.prototype.swap16 = function () {
3076
+ var t = this.length;
3077
+ if (t % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
3078
+ for (var e = 0; e < t; e += 2) g(this, e, e + 1);
3079
+ return this;
3080
+ }, a.prototype.swap32 = function () {
3081
+ var t = this.length;
3082
+ if (t % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
3083
+ for (var e = 0; e < t; e += 4) g(this, e, e + 3), g(this, e + 1, e + 2);
3084
+ return this;
3085
+ }, a.prototype.swap64 = function () {
3086
+ var t = this.length;
3087
+ if (t % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
3088
+ 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);
3089
+ return this;
3090
+ }, a.prototype.toString = function () {
3091
+ var t = 0 | this.length;
3092
+ return 0 === t ? "" : 0 === arguments.length ? T(this, 0, t) : function (t, e, n) {
3093
+ var r = !1;
3094
+ if ((void 0 === e || e < 0) && (e = 0), e > this.length) return "";
3095
+ if ((void 0 === n || n > this.length) && (n = this.length), n <= 0) return "";
3096
+ if ((n >>>= 0) <= (e >>>= 0)) return "";
3097
+ for (t || (t = "utf8");;) switch (t) {
3098
+ case "hex":
3099
+ return k(this, e, n);
3100
+ case "utf8":
3101
+ case "utf-8":
3102
+ return T(this, e, n);
3103
+ case "ascii":
3104
+ return S(this, e, n);
3105
+ case "latin1":
3106
+ case "binary":
3107
+ return R(this, e, n);
3108
+ case "base64":
3109
+ return x(this, e, n);
3110
+ case "ucs2":
3111
+ case "ucs-2":
3112
+ case "utf16le":
3113
+ case "utf-16le":
3114
+ return P(this, e, n);
3115
+ default:
3116
+ if (r) throw new TypeError("Unknown encoding: " + t);
3117
+ t = (t + "").toLowerCase(), r = !0;
3118
+ }
3119
+ }.apply(this, arguments);
3120
+ }, a.prototype.equals = function (t) {
3121
+ if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
3122
+ return this === t || 0 === a.compare(this, t);
3123
+ }, a.prototype.inspect = function () {
3124
+ var t = "",
3125
+ n = e.INSPECT_MAX_BYTES;
3126
+ return this.length > 0 && (t = this.toString("hex", 0, n).match(/.{2}/g).join(" "), this.length > n && (t += " ... ")), "<Buffer " + t + ">";
3127
+ }, a.prototype.compare = function (t, e, n, r, i) {
3128
+ if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
3129
+ 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");
3130
+ if (r >= i && e >= n) return 0;
3131
+ if (r >= i) return -1;
3132
+ if (e >= n) return 1;
3133
+ if (e >>>= 0, n >>>= 0, r >>>= 0, i >>>= 0, this === t) return 0;
3134
+ 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]) {
3135
+ o = c[l], u = f[l];
3136
+ break;
3137
+ }
3138
+ return o < u ? -1 : u < o ? 1 : 0;
3139
+ }, a.prototype.includes = function (t, e, n) {
3140
+ return -1 !== this.indexOf(t, e, n);
3141
+ }, a.prototype.indexOf = function (t, e, n) {
3142
+ return y(this, t, e, n, !0);
3143
+ }, a.prototype.lastIndexOf = function (t, e, n) {
3144
+ return y(this, t, e, n, !1);
3145
+ }, a.prototype.write = function (t, e, n, r) {
3146
+ 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 {
3147
+ if (!isFinite(e)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
3148
+ e |= 0, isFinite(n) ? (n |= 0, void 0 === r && (r = "utf8")) : (r = n, n = void 0);
3149
+ }
3150
+ var i = this.length - e;
3151
+ 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");
3152
+ r || (r = "utf8");
3153
+ for (var o = !1;;) switch (r) {
3154
+ case "hex":
3155
+ return m(this, t, e, n);
3156
+ case "utf8":
3157
+ case "utf-8":
3158
+ return b(this, t, e, n);
3159
+ case "ascii":
3160
+ return w(this, t, e, n);
3161
+ case "latin1":
3162
+ case "binary":
3163
+ return E(this, t, e, n);
3164
+ case "base64":
3165
+ return O(this, t, e, n);
3166
+ case "ucs2":
3167
+ case "ucs-2":
3168
+ case "utf16le":
3169
+ case "utf-16le":
3170
+ return A(this, t, e, n);
3171
+ default:
3172
+ if (o) throw new TypeError("Unknown encoding: " + r);
3173
+ r = ("" + r).toLowerCase(), o = !0;
3174
+ }
3175
+ }, a.prototype.toJSON = function () {
3176
+ return {
3177
+ type: "Buffer",
3178
+ data: Array.prototype.slice.call(this._arr || this, 0)
3179
+ };
3180
+ };
3181
+ var _ = 4096;
3182
+ function S(t, e, n) {
3183
+ var r = "";
3184
+ n = Math.min(t.length, n);
3185
+ for (var i = e; i < n; ++i) r += String.fromCharCode(127 & t[i]);
3186
+ return r;
3187
+ }
3188
+ function R(t, e, n) {
3189
+ var r = "";
3190
+ n = Math.min(t.length, n);
3191
+ for (var i = e; i < n; ++i) r += String.fromCharCode(t[i]);
3192
+ return r;
3193
+ }
3194
+ function k(t, e, n) {
3195
+ var r = t.length;
3196
+ (!e || e < 0) && (e = 0), (!n || n < 0 || n > r) && (n = r);
3197
+ for (var i = "", o = e; o < n; ++o) i += Y(t[o]);
3198
+ return i;
3199
+ }
3200
+ function P(t, e, n) {
3201
+ for (var r = t.slice(e, n), i = "", o = 0; o < r.length; o += 2) i += String.fromCharCode(r[o] + 256 * r[o + 1]);
3202
+ return i;
3203
+ }
3204
+ function L(t, e, n) {
3205
+ if (t % 1 != 0 || t < 0) throw new RangeError("offset is not uint");
3206
+ if (t + e > n) throw new RangeError("Trying to access beyond buffer length");
3207
+ }
3208
+ function B(t, e, n, r, i, o) {
3209
+ if (!a.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
3210
+ if (e > i || e < o) throw new RangeError('"value" argument is out of bounds');
3211
+ if (n + r > t.length) throw new RangeError("Index out of range");
3212
+ }
3213
+ function C(t, e, n, r) {
3214
+ e < 0 && (e = 65535 + e + 1);
3215
+ 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);
3216
+ }
3217
+ function j(t, e, n, r) {
3218
+ e < 0 && (e = 4294967295 + e + 1);
3219
+ for (var i = 0, o = Math.min(t.length - n, 4); i < o; ++i) t[n + i] = e >>> 8 * (r ? i : 3 - i) & 255;
3220
+ }
3221
+ function M(t, e, n, r, i, o) {
3222
+ if (n + r > t.length) throw new RangeError("Index out of range");
3223
+ if (n < 0) throw new RangeError("Index out of range");
3224
+ }
3225
+ function U(t, e, n, r, o) {
3226
+ return o || M(t, 0, n, 4), i.write(t, e, n, r, 23, 4), n + 4;
3227
+ }
3228
+ function D(t, e, n, r, o) {
3229
+ return o || M(t, 0, n, 8), i.write(t, e, n, r, 52, 8), n + 8;
3230
+ }
3231
+ a.prototype.slice = function (t, e) {
3232
+ var n,
3233
+ r = this.length;
3234
+ 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 {
3235
+ var i = e - t;
3236
+ n = new a(i, void 0);
3237
+ for (var o = 0; o < i; ++o) n[o] = this[o + t];
3238
+ }
3239
+ return n;
3240
+ }, a.prototype.readUIntLE = function (t, e, n) {
3241
+ t |= 0, e |= 0, n || L(t, e, this.length);
3242
+ for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
3243
+ return r;
3244
+ }, a.prototype.readUIntBE = function (t, e, n) {
3245
+ t |= 0, e |= 0, n || L(t, e, this.length);
3246
+ for (var r = this[t + --e], i = 1; e > 0 && (i *= 256);) r += this[t + --e] * i;
3247
+ return r;
3248
+ }, a.prototype.readUInt8 = function (t, e) {
3249
+ return e || L(t, 1, this.length), this[t];
3250
+ }, a.prototype.readUInt16LE = function (t, e) {
3251
+ return e || L(t, 2, this.length), this[t] | this[t + 1] << 8;
3252
+ }, a.prototype.readUInt16BE = function (t, e) {
3253
+ return e || L(t, 2, this.length), this[t] << 8 | this[t + 1];
3254
+ }, a.prototype.readUInt32LE = function (t, e) {
3255
+ return e || L(t, 4, this.length), (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3];
3256
+ }, a.prototype.readUInt32BE = function (t, e) {
3257
+ return e || L(t, 4, this.length), 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]);
3258
+ }, a.prototype.readIntLE = function (t, e, n) {
3259
+ t |= 0, e |= 0, n || L(t, e, this.length);
3260
+ for (var r = this[t], i = 1, o = 0; ++o < e && (i *= 256);) r += this[t + o] * i;
3261
+ return r >= (i *= 128) && (r -= Math.pow(2, 8 * e)), r;
3262
+ }, a.prototype.readIntBE = function (t, e, n) {
3263
+ t |= 0, e |= 0, n || L(t, e, this.length);
3264
+ for (var r = e, i = 1, o = this[t + --r]; r > 0 && (i *= 256);) o += this[t + --r] * i;
3265
+ return o >= (i *= 128) && (o -= Math.pow(2, 8 * e)), o;
3266
+ }, a.prototype.readInt8 = function (t, e) {
3267
+ return e || L(t, 1, this.length), 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t];
3268
+ }, a.prototype.readInt16LE = function (t, e) {
3269
+ e || L(t, 2, this.length);
3270
+ var n = this[t] | this[t + 1] << 8;
3271
+ return 32768 & n ? 4294901760 | n : n;
3272
+ }, a.prototype.readInt16BE = function (t, e) {
3273
+ e || L(t, 2, this.length);
3274
+ var n = this[t + 1] | this[t] << 8;
3275
+ return 32768 & n ? 4294901760 | n : n;
3276
+ }, a.prototype.readInt32LE = function (t, e) {
3277
+ return e || L(t, 4, this.length), this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24;
3278
+ }, a.prototype.readInt32BE = function (t, e) {
3279
+ return e || L(t, 4, this.length), this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3];
3280
+ }, a.prototype.readFloatLE = function (t, e) {
3281
+ return e || L(t, 4, this.length), i.read(this, t, !0, 23, 4);
3282
+ }, a.prototype.readFloatBE = function (t, e) {
3283
+ return e || L(t, 4, this.length), i.read(this, t, !1, 23, 4);
3284
+ }, a.prototype.readDoubleLE = function (t, e) {
3285
+ return e || L(t, 8, this.length), i.read(this, t, !0, 52, 8);
3286
+ }, a.prototype.readDoubleBE = function (t, e) {
3287
+ return e || L(t, 8, this.length), i.read(this, t, !1, 52, 8);
3288
+ }, a.prototype.writeUIntLE = function (t, e, n, r) {
3289
+ (t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
3290
+ var i = 1,
3291
+ o = 0;
3292
+ for (this[e] = 255 & t; ++o < n && (i *= 256);) this[e + o] = t / i & 255;
3293
+ return e + n;
3294
+ }, a.prototype.writeUIntBE = function (t, e, n, r) {
3295
+ (t = +t, e |= 0, n |= 0, r) || B(this, t, e, n, Math.pow(2, 8 * n) - 1, 0);
3296
+ var i = n - 1,
3297
+ o = 1;
3298
+ for (this[e + i] = 255 & t; --i >= 0 && (o *= 256);) this[e + i] = t / o & 255;
3299
+ return e + n;
3300
+ }, a.prototype.writeUInt8 = function (t, e, n) {
3301
+ 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;
3302
+ }, a.prototype.writeUInt16LE = function (t, e, n) {
3303
+ 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;
3304
+ }, a.prototype.writeUInt16BE = function (t, e, n) {
3305
+ 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;
3306
+ }, a.prototype.writeUInt32LE = function (t, e, n) {
3307
+ 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;
3308
+ }, a.prototype.writeUInt32BE = function (t, e, n) {
3309
+ 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;
3310
+ }, a.prototype.writeIntLE = function (t, e, n, r) {
3311
+ if (t = +t, e |= 0, !r) {
3312
+ var i = Math.pow(2, 8 * n - 1);
3313
+ B(this, t, e, n, i - 1, -i);
3314
+ }
3315
+ var o = 0,
3316
+ u = 1,
3317
+ s = 0;
3318
+ 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;
3319
+ return e + n;
3320
+ }, a.prototype.writeIntBE = function (t, e, n, r) {
3321
+ if (t = +t, e |= 0, !r) {
3322
+ var i = Math.pow(2, 8 * n - 1);
3323
+ B(this, t, e, n, i - 1, -i);
3324
+ }
3325
+ var o = n - 1,
3326
+ u = 1,
3327
+ s = 0;
3328
+ 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;
3329
+ return e + n;
3330
+ }, a.prototype.writeInt8 = function (t, e, n) {
3331
+ 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;
3332
+ }, a.prototype.writeInt16LE = function (t, e, n) {
3333
+ 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;
3334
+ }, a.prototype.writeInt16BE = function (t, e, n) {
3335
+ 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;
3336
+ }, a.prototype.writeInt32LE = function (t, e, n) {
3337
+ 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;
3338
+ }, a.prototype.writeInt32BE = function (t, e, n) {
3339
+ 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;
3340
+ }, a.prototype.writeFloatLE = function (t, e, n) {
3341
+ return U(this, t, e, !0, n);
3342
+ }, a.prototype.writeFloatBE = function (t, e, n) {
3343
+ return U(this, t, e, !1, n);
3344
+ }, a.prototype.writeDoubleLE = function (t, e, n) {
3345
+ return D(this, t, e, !0, n);
3346
+ }, a.prototype.writeDoubleBE = function (t, e, n) {
3347
+ return D(this, t, e, !1, n);
3348
+ }, a.prototype.copy = function (t, e, n, r) {
3349
+ 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;
3350
+ if (0 === t.length || 0 === this.length) return 0;
3351
+ if (e < 0) throw new RangeError("targetStart out of bounds");
3352
+ if (n < 0 || n >= this.length) throw new RangeError("sourceStart out of bounds");
3353
+ if (r < 0) throw new RangeError("sourceEnd out of bounds");
3354
+ r > this.length && (r = this.length), t.length - e < r - n && (r = t.length - e + n);
3355
+ var i,
3356
+ o = r - n;
3357
+ 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);
3358
+ return o;
3359
+ }, a.prototype.fill = function (t, e, n, r) {
3360
+ if ("string" == typeof t) {
3361
+ if ("string" == typeof e ? (r = e, e = 0, n = this.length) : "string" == typeof n && (r = n, n = this.length), 1 === t.length) {
3362
+ var i = t.charCodeAt(0);
3363
+ i < 256 && (t = i);
3364
+ }
3365
+ if (void 0 !== r && "string" != typeof r) throw new TypeError("encoding must be a string");
3366
+ if ("string" == typeof r && !a.isEncoding(r)) throw new TypeError("Unknown encoding: " + r);
3367
+ } else "number" == typeof t && (t &= 255);
3368
+ if (e < 0 || this.length < e || this.length < n) throw new RangeError("Out of range index");
3369
+ if (n <= e) return this;
3370
+ var o;
3371
+ 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 {
3372
+ var u = a.isBuffer(t) ? t : N(new a(t, r).toString()),
3373
+ s = u.length;
3374
+ for (o = 0; o < n - e; ++o) this[o + e] = u[o % s];
3375
+ }
3376
+ return this;
3377
+ };
3378
+ var I = /[^+\/0-9A-Za-z-_]/g;
3379
+ function Y(t) {
3380
+ return t < 16 ? "0" + t.toString(16) : t.toString(16);
3381
+ }
3382
+ function N(t, e) {
3383
+ var n;
3384
+ e = e || 1 / 0;
3385
+ for (var r = t.length, i = null, o = [], u = 0; u < r; ++u) {
3386
+ if ((n = t.charCodeAt(u)) > 55295 && n < 57344) {
3387
+ if (!i) {
3388
+ if (n > 56319) {
3389
+ (e -= 3) > -1 && o.push(239, 191, 189);
3390
+ continue;
3391
+ }
3392
+ if (u + 1 === r) {
3393
+ (e -= 3) > -1 && o.push(239, 191, 189);
3394
+ continue;
3395
+ }
3396
+ i = n;
3397
+ continue;
3398
+ }
3399
+ if (n < 56320) {
3400
+ (e -= 3) > -1 && o.push(239, 191, 189), i = n;
3401
+ continue;
3402
+ }
3403
+ n = 65536 + (i - 55296 << 10 | n - 56320);
3404
+ } else i && (e -= 3) > -1 && o.push(239, 191, 189);
3405
+ if (i = null, n < 128) {
3406
+ if ((e -= 1) < 0) break;
3407
+ o.push(n);
3408
+ } else if (n < 2048) {
3409
+ if ((e -= 2) < 0) break;
3410
+ o.push(n >> 6 | 192, 63 & n | 128);
3411
+ } else if (n < 65536) {
3412
+ if ((e -= 3) < 0) break;
3413
+ o.push(n >> 12 | 224, n >> 6 & 63 | 128, 63 & n | 128);
3414
+ } else {
3415
+ if (!(n < 1114112)) throw new Error("Invalid code point");
3416
+ if ((e -= 4) < 0) break;
3417
+ o.push(n >> 18 | 240, n >> 12 & 63 | 128, n >> 6 & 63 | 128, 63 & n | 128);
3418
+ }
3419
+ }
3420
+ return o;
3421
+ }
3422
+ function F(t) {
3423
+ return r.toByteArray(function (t) {
3424
+ if ((t = function (t) {
3425
+ return t.trim ? t.trim() : t.replace(/^\s+|\s+$/g, "");
3426
+ }(t).replace(I, "")).length < 2) return "";
3427
+ for (; t.length % 4 != 0;) t += "=";
3428
+ return t;
3429
+ }(t));
3430
+ }
3431
+ function z(t, e, n, r) {
3432
+ for (var i = 0; i < r && !(i + n >= e.length || i >= t.length); ++i) e[i + n] = t[i];
3433
+ return i;
3434
+ }
3435
+ }).call(e, n(0));
3436
+ }, function (t, e, n) {
3984
3437
 
3985
- t.exports = function (t, e, n) {
3986
- var r = e.value,
3987
- i = t.innerText,
3988
- o = i.toLowerCase().indexOf(r.toLowerCase()),
3989
- u = r.length;
3990
- return r && o >= 0 ? i.substring(0, o) + '<span class="' + n + '">' + i.substr(o, u) + "</span>" + i.substring(o + u) : i;
3991
- };
3992
- }, function (t, e, n) {
3438
+ e.byteLength = function (t) {
3439
+ return 3 * t.length / 4 - c(t);
3440
+ }, e.toByteArray = function (t) {
3441
+ var e,
3442
+ n,
3443
+ r,
3444
+ u,
3445
+ s,
3446
+ a = t.length;
3447
+ u = c(t), s = new o(3 * a / 4 - u), n = u > 0 ? a - 4 : a;
3448
+ var f = 0;
3449
+ 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;
3450
+ 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);
3451
+ return s;
3452
+ }, e.fromByteArray = function (t) {
3453
+ 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));
3454
+ 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 += "=");
3455
+ return u.push(o), u.join("");
3456
+ };
3457
+ 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;
3458
+ function c(t) {
3459
+ var e = t.length;
3460
+ if (e % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
3461
+ return "=" === t[e - 2] ? 2 : "=" === t[e - 1] ? 1 : 0;
3462
+ }
3463
+ function f(t, e, n) {
3464
+ 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]);
3465
+ return u.join("");
3466
+ }
3467
+ i["-".charCodeAt(0)] = 62, i["_".charCodeAt(0)] = 63;
3468
+ }, function (t, e) {
3469
+ e.read = function (t, e, n, r, i) {
3470
+ var o,
3471
+ u,
3472
+ s = 8 * i - r - 1,
3473
+ a = (1 << s) - 1,
3474
+ c = a >> 1,
3475
+ f = -7,
3476
+ l = n ? i - 1 : 0,
3477
+ h = n ? -1 : 1,
3478
+ p = t[e + l];
3479
+ for (l += h, o = p & (1 << -f) - 1, p >>= -f, f += s; f > 0; o = 256 * o + t[e + l], l += h, f -= 8);
3480
+ for (u = o & (1 << -f) - 1, o >>= -f, f += r; f > 0; u = 256 * u + t[e + l], l += h, f -= 8);
3481
+ if (0 === o) o = 1 - c;else {
3482
+ if (o === a) return u ? NaN : 1 / 0 * (p ? -1 : 1);
3483
+ u += Math.pow(2, r), o -= c;
3484
+ }
3485
+ return (p ? -1 : 1) * u * Math.pow(2, o - r);
3486
+ }, e.write = function (t, e, n, r, i, o) {
3487
+ var u,
3488
+ s,
3489
+ a,
3490
+ c = 8 * o - i - 1,
3491
+ f = (1 << c) - 1,
3492
+ l = f >> 1,
3493
+ h = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
3494
+ p = r ? 0 : o - 1,
3495
+ d = r ? 1 : -1,
3496
+ g = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0;
3497
+ 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);
3498
+ for (u = u << i | s, c += i; c > 0; t[n + p] = 255 & u, p += d, u /= 256, c -= 8);
3499
+ t[n + p - d] |= 128 * g;
3500
+ };
3501
+ }, function (t, e) {
3502
+ var n = {}.toString;
3503
+ t.exports = Array.isArray || function (t) {
3504
+ return "[object Array]" == n.call(t);
3505
+ };
3506
+ }, function (t, e, n) {
3993
3507
 
3994
- var r,
3995
- i = n(33),
3996
- o = (r = i) && r.__esModule ? r : {
3997
- default: r
3998
- };
3999
- var u = {
4000
- input: ".combobox",
4001
- list: ".listbox",
4002
- options: ".option",
4003
- groups: null,
4004
- openClass: "open",
4005
- activeClass: "active",
4006
- selectedClass: "selected",
4007
- useLiveRegion: !0,
4008
- allowEmpty: !0,
4009
- multiselect: !1,
4010
- noResultsText: null,
4011
- selectionValue: function (t) {
4012
- return t.map(function (t) {
4013
- return t.innerText.trim();
4014
- }).join(" - ");
4015
- },
4016
- optionValue: function (t) {
4017
- return t.innerHTML;
4018
- },
4019
- announcement: {
4020
- count: function (t) {
4021
- return t + " options available";
4022
- },
4023
- selected: "Selected."
4024
- },
4025
- filter: "contains",
4026
- autoFilter: !0
4027
- };
4028
- t.exports = function (t) {
4029
- var e = {},
4030
- n = {};
4031
- return t.announcement = t.announcement || {}, (0, o.default)(n, u.announcement, t.announcement), (0, o.default)(e, u, t), e.announcement = n, e;
4032
- };
4033
- }, function (t, e, n) {
3508
+ (function (e) {
3509
+ function r(t, e) {
3510
+ if (t === e) return 0;
3511
+ for (var n = t.length, r = e.length, i = 0, o = Math.min(n, r); i < o; ++i) if (t[i] !== e[i]) {
3512
+ n = t[i], r = e[i];
3513
+ break;
3514
+ }
3515
+ return n < r ? -1 : r < n ? 1 : 0;
3516
+ }
3517
+ function i(t) {
3518
+ return e.Buffer && "function" == typeof e.Buffer.isBuffer ? e.Buffer.isBuffer(t) : !(null == t || !t._isBuffer);
3519
+ }
3520
+ var o = n(27),
3521
+ u = Object.prototype.hasOwnProperty,
3522
+ s = Array.prototype.slice,
3523
+ a = "foo" === function () {}.name;
3524
+ function c(t) {
3525
+ return Object.prototype.toString.call(t);
3526
+ }
3527
+ function f(t) {
3528
+ return !i(t) && "function" == typeof e.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(t) : !!t && (t instanceof DataView || !!(t.buffer && t.buffer instanceof ArrayBuffer)));
3529
+ }
3530
+ var l = t.exports = v,
3531
+ h = /\s*function\s+([^\(\s]*)\s*/;
3532
+ function p(t) {
3533
+ if (o.isFunction(t)) {
3534
+ if (a) return t.name;
3535
+ var e = t.toString().match(h);
3536
+ return e && e[1];
3537
+ }
3538
+ }
3539
+ function d(t, e) {
3540
+ return "string" == typeof t ? t.length < e ? t : t.slice(0, e) : t;
3541
+ }
3542
+ function g(t) {
3543
+ if (a || !o.isFunction(t)) return o.inspect(t);
3544
+ var e = p(t);
3545
+ return "[Function" + (e ? ": " + e : "") + "]";
3546
+ }
3547
+ function y(t, e, n, r, i) {
3548
+ throw new l.AssertionError({
3549
+ message: n,
3550
+ actual: t,
3551
+ expected: e,
3552
+ operator: r,
3553
+ stackStartFunction: i
3554
+ });
3555
+ }
3556
+ function v(t, e) {
3557
+ t || y(t, !0, e, "==", l.ok);
3558
+ }
3559
+ function m(t, e, n, u) {
3560
+ if (t === e) return !0;
3561
+ if (i(t) && i(e)) return 0 === r(t, e);
3562
+ if (o.isDate(t) && o.isDate(e)) return t.getTime() === e.getTime();
3563
+ 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;
3564
+ if (null !== t && "object" == typeof t || null !== e && "object" == typeof e) {
3565
+ 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));
3566
+ if (i(t) !== i(e)) return !1;
3567
+ var a = (u = u || {
3568
+ actual: [],
3569
+ expected: []
3570
+ }).actual.indexOf(t);
3571
+ return -1 !== a && a === u.expected.indexOf(e) || (u.actual.push(t), u.expected.push(e), function (t, e, n, r) {
3572
+ if (null === t || void 0 === t || null === e || void 0 === e) return !1;
3573
+ if (o.isPrimitive(t) || o.isPrimitive(e)) return t === e;
3574
+ if (n && Object.getPrototypeOf(t) !== Object.getPrototypeOf(e)) return !1;
3575
+ var i = b(t),
3576
+ u = b(e);
3577
+ if (i && !u || !i && u) return !1;
3578
+ if (i) return t = s.call(t), e = s.call(e), m(t, e, n);
3579
+ var a,
3580
+ c,
3581
+ f = O(t),
3582
+ l = O(e);
3583
+ if (f.length !== l.length) return !1;
3584
+ for (f.sort(), l.sort(), c = f.length - 1; c >= 0; c--) if (f[c] !== l[c]) return !1;
3585
+ for (c = f.length - 1; c >= 0; c--) if (a = f[c], !m(t[a], e[a], n, r)) return !1;
3586
+ return !0;
3587
+ }(t, e, n, u));
3588
+ }
3589
+ return n ? t === e : t == e;
3590
+ }
3591
+ function b(t) {
3592
+ return "[object Arguments]" == Object.prototype.toString.call(t);
3593
+ }
3594
+ function w(t, e) {
3595
+ if (!t || !e) return !1;
3596
+ if ("[object RegExp]" == Object.prototype.toString.call(e)) return e.test(t);
3597
+ try {
3598
+ if (t instanceof e) return !0;
3599
+ } catch (t) {}
3600
+ return !Error.isPrototypeOf(e) && !0 === e.call({}, t);
3601
+ }
3602
+ function E(t, e, n, r) {
3603
+ var i;
3604
+ if ("function" != typeof e) throw new TypeError('"block" argument must be a function');
3605
+ "string" == typeof n && (r = n, n = null), i = function (t) {
3606
+ var e;
3607
+ try {
3608
+ t();
3609
+ } catch (t) {
3610
+ e = t;
3611
+ }
3612
+ return e;
3613
+ }(e), r = (n && n.name ? " (" + n.name + ")." : ".") + (r ? " " + r : "."), t && !i && y(i, n, "Missing expected exception" + r);
3614
+ var u = "string" == typeof r,
3615
+ s = !t && o.isError(i),
3616
+ a = !t && i && !n;
3617
+ if ((s && u && w(i, n) || a) && y(i, n, "Got unwanted exception" + r), t && i && n && !w(i, n) || !t && i) throw i;
3618
+ }
3619
+ l.AssertionError = function (t) {
3620
+ var e;
3621
+ 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);
3622
+ var n = t.stackStartFunction || y;
3623
+ if (Error.captureStackTrace) Error.captureStackTrace(this, n);else {
3624
+ var r = new Error();
3625
+ if (r.stack) {
3626
+ var i = r.stack,
3627
+ o = p(n),
3628
+ u = i.indexOf("\n" + o);
3629
+ if (u >= 0) {
3630
+ var s = i.indexOf("\n", u + 1);
3631
+ i = i.substring(s + 1);
3632
+ }
3633
+ this.stack = i;
3634
+ }
3635
+ }
3636
+ }, o.inherits(l.AssertionError, Error), l.fail = y, l.ok = v, l.equal = function (t, e, n) {
3637
+ t != e && y(t, e, n, "==", l.equal);
3638
+ }, l.notEqual = function (t, e, n) {
3639
+ t == e && y(t, e, n, "!=", l.notEqual);
3640
+ }, l.deepEqual = function (t, e, n) {
3641
+ m(t, e, !1) || y(t, e, n, "deepEqual", l.deepEqual);
3642
+ }, l.deepStrictEqual = function (t, e, n) {
3643
+ m(t, e, !0) || y(t, e, n, "deepStrictEqual", l.deepStrictEqual);
3644
+ }, l.notDeepEqual = function (t, e, n) {
3645
+ m(t, e, !1) && y(t, e, n, "notDeepEqual", l.notDeepEqual);
3646
+ }, l.notDeepStrictEqual = function t(e, n, r) {
3647
+ m(e, n, !0) && y(e, n, r, "notDeepStrictEqual", t);
3648
+ }, l.strictEqual = function (t, e, n) {
3649
+ t !== e && y(t, e, n, "===", l.strictEqual);
3650
+ }, l.notStrictEqual = function (t, e, n) {
3651
+ t === e && y(t, e, n, "!==", l.notStrictEqual);
3652
+ }, l.throws = function (t, e, n) {
3653
+ E(!0, t, e, n);
3654
+ }, l.doesNotThrow = function (t, e, n) {
3655
+ E(!1, t, e, n);
3656
+ }, l.ifError = function (t) {
3657
+ if (t) throw t;
3658
+ };
3659
+ var O = Object.keys || function (t) {
3660
+ var e = [];
3661
+ for (var n in t) u.call(t, n) && e.push(n);
3662
+ return e;
3663
+ };
3664
+ }).call(e, n(0));
3665
+ }, function (t, e, n) {
3666
+ (function (t, r) {
3667
+ var i = /%[sdj%]/g;
3668
+ e.format = function (t) {
3669
+ if (!v(t)) {
3670
+ for (var e = [], n = 0; n < arguments.length; n++) e.push(s(arguments[n]));
3671
+ return e.join(" ");
3672
+ }
3673
+ n = 1;
3674
+ for (var r = arguments, o = r.length, u = String(t).replace(i, function (t) {
3675
+ if ("%%" === t) return "%";
3676
+ if (n >= o) return t;
3677
+ switch (t) {
3678
+ case "%s":
3679
+ return String(r[n++]);
3680
+ case "%d":
3681
+ return Number(r[n++]);
3682
+ case "%j":
3683
+ try {
3684
+ return JSON.stringify(r[n++]);
3685
+ } catch (t) {
3686
+ return "[Circular]";
3687
+ }
3688
+ default:
3689
+ return t;
3690
+ }
3691
+ }), a = r[n]; n < o; a = r[++n]) g(a) || !w(a) ? u += " " + a : u += " " + s(a);
3692
+ return u;
3693
+ }, e.deprecate = function (n, i) {
3694
+ if (m(t.process)) return function () {
3695
+ return e.deprecate(n, i).apply(this, arguments);
3696
+ };
3697
+ if (!0 === r.noDeprecation) return n;
3698
+ var o = !1;
3699
+ return function () {
3700
+ if (!o) {
3701
+ if (r.throwDeprecation) throw new Error(i);
3702
+ r.traceDeprecation ? console.trace(i) : console.error(i), o = !0;
3703
+ }
3704
+ return n.apply(this, arguments);
3705
+ };
3706
+ };
3707
+ var o,
3708
+ u = {};
3709
+ function s(t, n) {
3710
+ var r = {
3711
+ seen: [],
3712
+ stylize: c
3713
+ };
3714
+ 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);
3715
+ }
3716
+ function a(t, e) {
3717
+ var n = s.styles[e];
3718
+ return n ? "[" + s.colors[n][0] + "m" + t + "[" + s.colors[n][1] + "m" : t;
3719
+ }
3720
+ function c(t, e) {
3721
+ return t;
3722
+ }
3723
+ function f(t, n, r) {
3724
+ if (t.customInspect && n && A(n.inspect) && n.inspect !== e.inspect && (!n.constructor || n.constructor.prototype !== n)) {
3725
+ var i = n.inspect(r, t);
3726
+ return v(i) || (i = f(t, i, r)), i;
3727
+ }
3728
+ var o = function (t, e) {
3729
+ if (m(e)) return t.stylize("undefined", "undefined");
3730
+ if (v(e)) {
3731
+ var n = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
3732
+ return t.stylize(n, "string");
3733
+ }
3734
+ if (y(e)) return t.stylize("" + e, "number");
3735
+ if (d(e)) return t.stylize("" + e, "boolean");
3736
+ if (g(e)) return t.stylize("null", "null");
3737
+ }(t, n);
3738
+ if (o) return o;
3739
+ var u = Object.keys(n),
3740
+ s = function (t) {
3741
+ var e = {};
3742
+ return t.forEach(function (t, n) {
3743
+ e[t] = !0;
3744
+ }), e;
3745
+ }(u);
3746
+ if (t.showHidden && (u = Object.getOwnPropertyNames(n)), O(n) && (u.indexOf("message") >= 0 || u.indexOf("description") >= 0)) return l(n);
3747
+ if (0 === u.length) {
3748
+ if (A(n)) {
3749
+ var a = n.name ? ": " + n.name : "";
3750
+ return t.stylize("[Function" + a + "]", "special");
3751
+ }
3752
+ if (b(n)) return t.stylize(RegExp.prototype.toString.call(n), "regexp");
3753
+ if (E(n)) return t.stylize(Date.prototype.toString.call(n), "date");
3754
+ if (O(n)) return l(n);
3755
+ }
3756
+ var c,
3757
+ w = "",
3758
+ x = !1,
3759
+ T = ["{", "}"];
3760
+ (p(n) && (x = !0, T = ["[", "]"]), A(n)) && (w = " [Function" + (n.name ? ": " + n.name : "") + "]");
3761
+ 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) {
3762
+ 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("");
3763
+ return i.forEach(function (i) {
3764
+ i.match(/^\d+$/) || o.push(h(t, e, n, r, i, !0));
3765
+ }), o;
3766
+ }(t, n, r, s, u) : u.map(function (e) {
3767
+ return h(t, n, r, s, e, x);
3768
+ }), t.seen.pop(), function (t, e, n) {
3769
+ if (t.reduce(function (t, e) {
3770
+ return e.indexOf("\n") >= 0 && 0, t + e.replace(/\u001b\[\d\d?m/g, "").length + 1;
3771
+ }, 0) > 60) return n[0] + ("" === e ? "" : e + "\n ") + " " + t.join(",\n ") + " " + n[1];
3772
+ return n[0] + e + " " + t.join(", ") + " " + n[1];
3773
+ }(c, w, T)) : T[0] + w + T[1];
3774
+ }
3775
+ function l(t) {
3776
+ return "[" + Error.prototype.toString.call(t) + "]";
3777
+ }
3778
+ function h(t, e, n, r, i, o) {
3779
+ var u, s, a;
3780
+ if ((a = Object.getOwnPropertyDescriptor(e, i) || {
3781
+ value: e[i]
3782
+ }).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) {
3783
+ return " " + t;
3784
+ }).join("\n").substr(2) : "\n" + s.split("\n").map(function (t) {
3785
+ return " " + t;
3786
+ }).join("\n")) : s = t.stylize("[Circular]", "special")), m(u)) {
3787
+ if (o && i.match(/^\d+$/)) return s;
3788
+ (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"));
3789
+ }
3790
+ return u + ": " + s;
3791
+ }
3792
+ function p(t) {
3793
+ return Array.isArray(t);
3794
+ }
3795
+ function d(t) {
3796
+ return "boolean" == typeof t;
3797
+ }
3798
+ function g(t) {
3799
+ return null === t;
3800
+ }
3801
+ function y(t) {
3802
+ return "number" == typeof t;
3803
+ }
3804
+ function v(t) {
3805
+ return "string" == typeof t;
3806
+ }
3807
+ function m(t) {
3808
+ return void 0 === t;
3809
+ }
3810
+ function b(t) {
3811
+ return w(t) && "[object RegExp]" === x(t);
3812
+ }
3813
+ function w(t) {
3814
+ return "object" == typeof t && null !== t;
3815
+ }
3816
+ function E(t) {
3817
+ return w(t) && "[object Date]" === x(t);
3818
+ }
3819
+ function O(t) {
3820
+ return w(t) && ("[object Error]" === x(t) || t instanceof Error);
3821
+ }
3822
+ function A(t) {
3823
+ return "function" == typeof t;
3824
+ }
3825
+ function x(t) {
3826
+ return Object.prototype.toString.call(t);
3827
+ }
3828
+ function T(t) {
3829
+ return t < 10 ? "0" + t.toString(10) : t.toString(10);
3830
+ }
3831
+ e.debuglog = function (t) {
3832
+ if (m(o) && (o = Object({
3833
+ NODE_ENV: "production"
3834
+ }).NODE_DEBUG || ""), t = t.toUpperCase(), !u[t]) if (new RegExp("\\b" + t + "\\b", "i").test(o)) {
3835
+ var n = r.pid;
3836
+ u[t] = function () {
3837
+ var r = e.format.apply(e, arguments);
3838
+ console.error("%s %d: %s", t, n, r);
3839
+ };
3840
+ } else u[t] = function () {};
3841
+ return u[t];
3842
+ }, e.inspect = s, s.colors = {
3843
+ bold: [1, 22],
3844
+ italic: [3, 23],
3845
+ underline: [4, 24],
3846
+ inverse: [7, 27],
3847
+ white: [37, 39],
3848
+ grey: [90, 39],
3849
+ black: [30, 39],
3850
+ blue: [34, 39],
3851
+ cyan: [36, 39],
3852
+ green: [32, 39],
3853
+ magenta: [35, 39],
3854
+ red: [31, 39],
3855
+ yellow: [33, 39]
3856
+ }, s.styles = {
3857
+ special: "cyan",
3858
+ number: "yellow",
3859
+ boolean: "yellow",
3860
+ undefined: "grey",
3861
+ null: "bold",
3862
+ string: "green",
3863
+ date: "magenta",
3864
+ regexp: "red"
3865
+ }, e.isArray = p, e.isBoolean = d, e.isNull = g, e.isNullOrUndefined = function (t) {
3866
+ return null == t;
3867
+ }, e.isNumber = y, e.isString = v, e.isSymbol = function (t) {
3868
+ return "symbol" == typeof t;
3869
+ }, e.isUndefined = m, e.isRegExp = b, e.isObject = w, e.isDate = E, e.isError = O, e.isFunction = A, e.isPrimitive = function (t) {
3870
+ return null === t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || "symbol" == typeof t || void 0 === t;
3871
+ }, e.isBuffer = n(29);
3872
+ var _ = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
3873
+ function S(t, e) {
3874
+ return Object.prototype.hasOwnProperty.call(t, e);
3875
+ }
3876
+ e.log = function () {
3877
+ var t, n;
3878
+ 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));
3879
+ }, e.inherits = n(30), e._extend = function (t, e) {
3880
+ if (!e || !w(e)) return t;
3881
+ for (var n = Object.keys(e), r = n.length; r--;) t[n[r]] = e[n[r]];
3882
+ return t;
3883
+ };
3884
+ }).call(e, n(0), n(28));
3885
+ }, function (t, e) {
3886
+ var n,
3887
+ r,
3888
+ i = t.exports = {};
3889
+ function o() {
3890
+ throw new Error("setTimeout has not been defined");
3891
+ }
3892
+ function u() {
3893
+ throw new Error("clearTimeout has not been defined");
3894
+ }
3895
+ function s(t) {
3896
+ if (n === setTimeout) return setTimeout(t, 0);
3897
+ if ((n === o || !n) && setTimeout) return n = setTimeout, setTimeout(t, 0);
3898
+ try {
3899
+ return n(t, 0);
3900
+ } catch (e) {
3901
+ try {
3902
+ return n.call(null, t, 0);
3903
+ } catch (e) {
3904
+ return n.call(this, t, 0);
3905
+ }
3906
+ }
3907
+ }
3908
+ !function () {
3909
+ try {
3910
+ n = "function" == typeof setTimeout ? setTimeout : o;
3911
+ } catch (t) {
3912
+ n = o;
3913
+ }
3914
+ try {
3915
+ r = "function" == typeof clearTimeout ? clearTimeout : u;
3916
+ } catch (t) {
3917
+ r = u;
3918
+ }
3919
+ }();
3920
+ var a,
3921
+ c = [],
3922
+ f = !1,
3923
+ l = -1;
3924
+ function h() {
3925
+ f && a && (f = !1, a.length ? c = a.concat(c) : l = -1, c.length && p());
3926
+ }
3927
+ function p() {
3928
+ if (!f) {
3929
+ var t = s(h);
3930
+ f = !0;
3931
+ for (var e = c.length; e;) {
3932
+ for (a = c, c = []; ++l < e;) a && a[l].run();
3933
+ l = -1, e = c.length;
3934
+ }
3935
+ a = null, f = !1, function (t) {
3936
+ if (r === clearTimeout) return clearTimeout(t);
3937
+ if ((r === u || !r) && clearTimeout) return r = clearTimeout, clearTimeout(t);
3938
+ try {
3939
+ r(t);
3940
+ } catch (e) {
3941
+ try {
3942
+ return r.call(null, t);
3943
+ } catch (e) {
3944
+ return r.call(this, t);
3945
+ }
3946
+ }
3947
+ }(t);
3948
+ }
3949
+ }
3950
+ function d(t, e) {
3951
+ this.fun = t, this.array = e;
3952
+ }
3953
+ function g() {}
3954
+ i.nextTick = function (t) {
3955
+ var e = new Array(arguments.length - 1);
3956
+ if (arguments.length > 1) for (var n = 1; n < arguments.length; n++) e[n - 1] = arguments[n];
3957
+ c.push(new d(t, e)), 1 !== c.length || f || s(p);
3958
+ }, d.prototype.run = function () {
3959
+ this.fun.apply(null, this.array);
3960
+ }, 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) {
3961
+ return [];
3962
+ }, i.binding = function (t) {
3963
+ throw new Error("process.binding is not supported");
3964
+ }, i.cwd = function () {
3965
+ return "/";
3966
+ }, i.chdir = function (t) {
3967
+ throw new Error("process.chdir is not supported");
3968
+ }, i.umask = function () {
3969
+ return 0;
3970
+ };
3971
+ }, function (t, e) {
3972
+ t.exports = function (t) {
3973
+ return t && "object" == typeof t && "function" == typeof t.copy && "function" == typeof t.fill && "function" == typeof t.readUInt8;
3974
+ };
3975
+ }, function (t, e) {
3976
+ "function" == typeof Object.create ? t.exports = function (t, e) {
3977
+ t.super_ = e, t.prototype = Object.create(e.prototype, {
3978
+ constructor: {
3979
+ value: t,
3980
+ enumerable: !1,
3981
+ writable: !0,
3982
+ configurable: !0
3983
+ }
3984
+ });
3985
+ } : t.exports = function (t, e) {
3986
+ t.super_ = e;
3987
+ var n = function () {};
3988
+ n.prototype = e.prototype, t.prototype = new n(), t.prototype.constructor = t;
3989
+ };
3990
+ }, function (t, e, n) {
4034
3991
 
4035
- var r = n(34);
4036
- function i(t, e) {
4037
- for (var n in e) o(e, n) && (t[n] = e[n]);
4038
- }
4039
- function o(t, e) {
4040
- return Object.prototype.hasOwnProperty.call(t, e);
4041
- }
4042
- t.exports = function (t) {
4043
- r(t) || (t = {});
4044
- for (var e = arguments.length, n = 1; n < e; n++) {
4045
- var o = arguments[n];
4046
- r(o) && i(t, o);
4047
- }
4048
- return t;
4049
- };
4050
- }, function (t, e, n) {
3992
+ t.exports = function (t, e, n) {
3993
+ var r = e.value,
3994
+ i = t.innerText,
3995
+ o = i.toLowerCase().indexOf(r.toLowerCase()),
3996
+ u = r.length;
3997
+ return r && o >= 0 ? i.substring(0, o) + '<span class="' + n + '">' + i.substr(o, u) + "</span>" + i.substring(o + u) : i;
3998
+ };
3999
+ }, function (t, e, n) {
4051
4000
 
4052
- t.exports = function (t) {
4053
- return void 0 !== t && null !== t && ("object" == typeof t || "function" == typeof t);
4054
- };
4055
- }, function (t, e, n) {
4001
+ var r,
4002
+ i = n(33),
4003
+ o = (r = i) && r.__esModule ? r : {
4004
+ default: r
4005
+ };
4006
+ var u = {
4007
+ input: ".combobox",
4008
+ list: ".listbox",
4009
+ options: ".option",
4010
+ groups: null,
4011
+ openClass: "open",
4012
+ activeClass: "active",
4013
+ selectedClass: "selected",
4014
+ useLiveRegion: !0,
4015
+ allowEmpty: !0,
4016
+ multiselect: !1,
4017
+ noResultsText: null,
4018
+ selectionValue: function (t) {
4019
+ return t.map(function (t) {
4020
+ return t.innerText.trim();
4021
+ }).join(" - ");
4022
+ },
4023
+ optionValue: function (t) {
4024
+ return t.innerHTML;
4025
+ },
4026
+ announcement: {
4027
+ count: function (t) {
4028
+ return t + " options available";
4029
+ },
4030
+ selected: "Selected."
4031
+ },
4032
+ filter: "contains",
4033
+ autoFilter: !0
4034
+ };
4035
+ t.exports = function (t) {
4036
+ var e = {},
4037
+ n = {};
4038
+ return t.announcement = t.announcement || {}, (0, o.default)(n, u.announcement, t.announcement), (0, o.default)(e, u, t), e.announcement = n, e;
4039
+ };
4040
+ }, function (t, e, n) {
4056
4041
 
4057
- t.exports = function (t, e, n, r, i) {
4058
- var o = "true" === t.getAttribute("aria-selected"),
4059
- u = e.announcement.selected,
4060
- s = t.innerText;
4061
- s = r && e.announcement && e.announcement.groupChange ? e.announcement.groupChange(i) + " " + s : s, n(s = o && u ? s + " " + u : s, 500);
4062
- };
4063
- }]);
4064
- });
4065
- } (dist));
4042
+ var r = n(34);
4043
+ function i(t, e) {
4044
+ for (var n in e) o(e, n) && (t[n] = e[n]);
4045
+ }
4046
+ function o(t, e) {
4047
+ return Object.prototype.hasOwnProperty.call(t, e);
4048
+ }
4049
+ t.exports = function (t) {
4050
+ r(t) || (t = {});
4051
+ for (var e = arguments.length, n = 1; n < e; n++) {
4052
+ var o = arguments[n];
4053
+ r(o) && i(t, o);
4054
+ }
4055
+ return t;
4056
+ };
4057
+ }, function (t, e, n) {
4066
4058
 
4067
- var distExports = dist.exports;
4059
+ t.exports = function (t) {
4060
+ return void 0 !== t && null !== t && ("object" == typeof t || "function" == typeof t);
4061
+ };
4062
+ }, function (t, e, n) {
4063
+
4064
+ t.exports = function (t, e, n, r, i) {
4065
+ var o = "true" === t.getAttribute("aria-selected"),
4066
+ u = e.announcement.selected,
4067
+ s = t.innerText;
4068
+ s = r && e.announcement && e.announcement.groupChange ? e.announcement.groupChange(i) + " " + s : s, n(s = o && u ? s + " " + u : s, 500);
4069
+ };
4070
+ }]);
4071
+ });
4072
+ } (dist$1));
4073
+ return dist$1.exports;
4074
+ }
4075
+
4076
+ var distExports = requireDist();
4068
4077
  var Combobo = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(distExports);
4069
4078
 
4070
4079
  const countries = [{