@algolia/autocomplete-core 1.19.6 → 1.19.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/createAutocomplete.js +6 -6
- package/dist/esm/createStore.js +6 -6
- package/dist/esm/getAutocompleteSetters.js +6 -6
- package/dist/esm/getDefaultProps.js +11 -11
- package/dist/esm/getPropGetters.js +8 -8
- package/dist/esm/metadata.js +6 -6
- package/dist/esm/onInput.js +8 -8
- package/dist/esm/onKeyDown.js +8 -8
- package/dist/esm/reshape.js +6 -6
- package/dist/esm/resolve.js +11 -11
- package/dist/esm/stateReducer.js +6 -6
- package/dist/esm/utils/getNormalizedSources.js +6 -6
- package/dist/esm/utils/getPluginSubmitPromise.js +5 -5
- package/dist/umd/index.development.js +332 -372
- package/dist/umd/index.development.js.map +1 -1
- package/dist/umd/index.production.js +2 -2
- package/dist/umd/index.production.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,170 +1,153 @@
|
|
|
1
|
-
/*! @algolia/autocomplete-core 1.19.
|
|
1
|
+
/*! @algolia/autocomplete-core 1.19.8 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
5
5
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@algolia/autocomplete-core"] = {}));
|
|
6
6
|
})(this, (function (exports) { 'use strict';
|
|
7
7
|
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {
|
|
24
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return target;
|
|
28
|
-
}
|
|
29
|
-
function _typeof$3(obj) {
|
|
30
|
-
"@babel/helpers - typeof";
|
|
31
|
-
|
|
32
|
-
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
33
|
-
return typeof obj;
|
|
34
|
-
} : function (obj) {
|
|
35
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
36
|
-
}, _typeof$3(obj);
|
|
37
|
-
}
|
|
38
|
-
function _defineProperty$2(obj, key, value) {
|
|
39
|
-
key = _toPropertyKey$2(key);
|
|
40
|
-
if (key in obj) {
|
|
41
|
-
Object.defineProperty(obj, key, {
|
|
42
|
-
value: value,
|
|
43
|
-
enumerable: true,
|
|
44
|
-
configurable: true,
|
|
45
|
-
writable: true
|
|
46
|
-
});
|
|
47
|
-
} else {
|
|
48
|
-
obj[key] = value;
|
|
49
|
-
}
|
|
50
|
-
return obj;
|
|
51
|
-
}
|
|
52
|
-
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
53
|
-
if (source == null) return {};
|
|
54
|
-
var target = {};
|
|
55
|
-
var sourceKeys = Object.keys(source);
|
|
56
|
-
var key, i;
|
|
57
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
58
|
-
key = sourceKeys[i];
|
|
59
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
60
|
-
target[key] = source[key];
|
|
61
|
-
}
|
|
62
|
-
return target;
|
|
63
|
-
}
|
|
64
|
-
function _objectWithoutProperties$1(source, excluded) {
|
|
65
|
-
if (source == null) return {};
|
|
66
|
-
var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
|
67
|
-
var key, i;
|
|
68
|
-
if (Object.getOwnPropertySymbols) {
|
|
69
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
70
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
71
|
-
key = sourceSymbolKeys[i];
|
|
72
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
73
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
74
|
-
target[key] = source[key];
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return target;
|
|
78
|
-
}
|
|
79
|
-
function _toConsumableArray$2(arr) {
|
|
80
|
-
return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$4(arr) || _nonIterableSpread$2();
|
|
81
|
-
}
|
|
82
|
-
function _arrayWithoutHoles$2(arr) {
|
|
83
|
-
if (Array.isArray(arr)) return _arrayLikeToArray$4(arr);
|
|
84
|
-
}
|
|
85
|
-
function _iterableToArray$2(iter) {
|
|
86
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
87
|
-
}
|
|
88
|
-
function _unsupportedIterableToArray$4(o, minLen) {
|
|
89
|
-
if (!o) return;
|
|
90
|
-
if (typeof o === "string") return _arrayLikeToArray$4(o, minLen);
|
|
91
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
92
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
93
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
94
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);
|
|
95
|
-
}
|
|
96
|
-
function _arrayLikeToArray$4(arr, len) {
|
|
97
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
98
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
99
|
-
return arr2;
|
|
100
|
-
}
|
|
101
|
-
function _nonIterableSpread$2() {
|
|
102
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
103
|
-
}
|
|
104
|
-
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
105
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
106
|
-
if (!it) {
|
|
107
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray$4(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
108
|
-
if (it) o = it;
|
|
109
|
-
var i = 0;
|
|
110
|
-
var F = function () {};
|
|
8
|
+
function _arrayLikeToArray$4(r, a) {
|
|
9
|
+
(null == a || a > r.length) && (a = r.length);
|
|
10
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
11
|
+
return n;
|
|
12
|
+
}
|
|
13
|
+
function _arrayWithoutHoles$2(r) {
|
|
14
|
+
if (Array.isArray(r)) return _arrayLikeToArray$4(r);
|
|
15
|
+
}
|
|
16
|
+
function _createForOfIteratorHelper(r, e) {
|
|
17
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
18
|
+
if (!t) {
|
|
19
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray$4(r)) || e && r && "number" == typeof r.length) {
|
|
20
|
+
t && (r = t);
|
|
21
|
+
var n = 0,
|
|
22
|
+
F = function () {};
|
|
111
23
|
return {
|
|
112
24
|
s: F,
|
|
113
25
|
n: function () {
|
|
114
|
-
|
|
115
|
-
done:
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
value: o[i++]
|
|
26
|
+
return n >= r.length ? {
|
|
27
|
+
done: !0
|
|
28
|
+
} : {
|
|
29
|
+
done: !1,
|
|
30
|
+
value: r[n++]
|
|
120
31
|
};
|
|
121
32
|
},
|
|
122
|
-
e: function (
|
|
123
|
-
throw
|
|
33
|
+
e: function (r) {
|
|
34
|
+
throw r;
|
|
124
35
|
},
|
|
125
36
|
f: F
|
|
126
37
|
};
|
|
127
38
|
}
|
|
128
39
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
129
40
|
}
|
|
130
|
-
var
|
|
131
|
-
|
|
132
|
-
|
|
41
|
+
var o,
|
|
42
|
+
a = !0,
|
|
43
|
+
u = !1;
|
|
133
44
|
return {
|
|
134
45
|
s: function () {
|
|
135
|
-
|
|
46
|
+
t = t.call(r);
|
|
136
47
|
},
|
|
137
48
|
n: function () {
|
|
138
|
-
var
|
|
139
|
-
|
|
140
|
-
return step;
|
|
49
|
+
var r = t.next();
|
|
50
|
+
return a = r.done, r;
|
|
141
51
|
},
|
|
142
|
-
e: function (
|
|
143
|
-
|
|
144
|
-
err = e;
|
|
52
|
+
e: function (r) {
|
|
53
|
+
u = !0, o = r;
|
|
145
54
|
},
|
|
146
55
|
f: function () {
|
|
147
56
|
try {
|
|
148
|
-
|
|
57
|
+
a || null == t.return || t.return();
|
|
149
58
|
} finally {
|
|
150
|
-
if (
|
|
59
|
+
if (u) throw o;
|
|
151
60
|
}
|
|
152
61
|
}
|
|
153
62
|
};
|
|
154
63
|
}
|
|
155
|
-
function
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
64
|
+
function _defineProperty$2(e, r, t) {
|
|
65
|
+
return (r = _toPropertyKey$2(r)) in e ? Object.defineProperty(e, r, {
|
|
66
|
+
value: t,
|
|
67
|
+
enumerable: !0,
|
|
68
|
+
configurable: !0,
|
|
69
|
+
writable: !0
|
|
70
|
+
}) : e[r] = t, e;
|
|
71
|
+
}
|
|
72
|
+
function _iterableToArray$2(r) {
|
|
73
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
74
|
+
}
|
|
75
|
+
function _nonIterableSpread$2() {
|
|
76
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
77
|
+
}
|
|
78
|
+
function ownKeys$2(e, r) {
|
|
79
|
+
var t = Object.keys(e);
|
|
80
|
+
if (Object.getOwnPropertySymbols) {
|
|
81
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
82
|
+
r && (o = o.filter(function (r) {
|
|
83
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
84
|
+
})), t.push.apply(t, o);
|
|
85
|
+
}
|
|
86
|
+
return t;
|
|
87
|
+
}
|
|
88
|
+
function _objectSpread2(e) {
|
|
89
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
90
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
91
|
+
r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) {
|
|
92
|
+
_defineProperty$2(e, r, t[r]);
|
|
93
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) {
|
|
94
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
return e;
|
|
98
|
+
}
|
|
99
|
+
function _objectWithoutProperties$1(e, t) {
|
|
100
|
+
if (null == e) return {};
|
|
101
|
+
var o,
|
|
102
|
+
r,
|
|
103
|
+
i = _objectWithoutPropertiesLoose$1(e, t);
|
|
104
|
+
if (Object.getOwnPropertySymbols) {
|
|
105
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
106
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
107
|
+
}
|
|
108
|
+
return i;
|
|
109
|
+
}
|
|
110
|
+
function _objectWithoutPropertiesLoose$1(r, e) {
|
|
111
|
+
if (null == r) return {};
|
|
112
|
+
var t = {};
|
|
113
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
114
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
115
|
+
t[n] = r[n];
|
|
116
|
+
}
|
|
117
|
+
return t;
|
|
118
|
+
}
|
|
119
|
+
function _toConsumableArray$2(r) {
|
|
120
|
+
return _arrayWithoutHoles$2(r) || _iterableToArray$2(r) || _unsupportedIterableToArray$4(r) || _nonIterableSpread$2();
|
|
121
|
+
}
|
|
122
|
+
function _toPrimitive$2(t, r) {
|
|
123
|
+
if ("object" != typeof t || !t) return t;
|
|
124
|
+
var e = t[Symbol.toPrimitive];
|
|
125
|
+
if (void 0 !== e) {
|
|
126
|
+
var i = e.call(t, r || "default");
|
|
127
|
+
if ("object" != typeof i) return i;
|
|
161
128
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
162
129
|
}
|
|
163
|
-
return (
|
|
130
|
+
return ("string" === r ? String : Number)(t);
|
|
164
131
|
}
|
|
165
|
-
function _toPropertyKey$2(
|
|
166
|
-
var
|
|
167
|
-
return
|
|
132
|
+
function _toPropertyKey$2(t) {
|
|
133
|
+
var i = _toPrimitive$2(t, "string");
|
|
134
|
+
return "symbol" == typeof i ? i : i + "";
|
|
135
|
+
}
|
|
136
|
+
function _typeof$3(o) {
|
|
137
|
+
"@babel/helpers - typeof";
|
|
138
|
+
|
|
139
|
+
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
140
|
+
return typeof o;
|
|
141
|
+
} : function (o) {
|
|
142
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
143
|
+
}, _typeof$3(o);
|
|
144
|
+
}
|
|
145
|
+
function _unsupportedIterableToArray$4(r, a) {
|
|
146
|
+
if (r) {
|
|
147
|
+
if ("string" == typeof r) return _arrayLikeToArray$4(r, a);
|
|
148
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
149
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$4(r, a) : void 0;
|
|
150
|
+
}
|
|
168
151
|
}
|
|
169
152
|
|
|
170
153
|
function createRef(initialValue) {
|
|
@@ -188,63 +171,62 @@
|
|
|
188
171
|
};
|
|
189
172
|
}
|
|
190
173
|
|
|
191
|
-
function _slicedToArray$1(
|
|
192
|
-
return _arrayWithHoles$1(
|
|
174
|
+
function _slicedToArray$1(r, e) {
|
|
175
|
+
return _arrayWithHoles$1(r) || _iterableToArrayLimit$1(r, e) || _unsupportedIterableToArray$3(r, e) || _nonIterableRest$1();
|
|
193
176
|
}
|
|
194
177
|
function _nonIterableRest$1() {
|
|
195
178
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
196
179
|
}
|
|
197
|
-
function _unsupportedIterableToArray$3(
|
|
198
|
-
if (
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
_d = !1;
|
|
180
|
+
function _unsupportedIterableToArray$3(r, a) {
|
|
181
|
+
if (r) {
|
|
182
|
+
if ("string" == typeof r) return _arrayLikeToArray$3(r, a);
|
|
183
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
184
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$3(r, a) : void 0;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
function _arrayLikeToArray$3(r, a) {
|
|
188
|
+
(null == a || a > r.length) && (a = r.length);
|
|
189
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
190
|
+
return n;
|
|
191
|
+
}
|
|
192
|
+
function _iterableToArrayLimit$1(r, l) {
|
|
193
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
194
|
+
if (null != t) {
|
|
195
|
+
var e,
|
|
196
|
+
n,
|
|
197
|
+
i,
|
|
198
|
+
u,
|
|
199
|
+
a = [],
|
|
200
|
+
f = !0,
|
|
201
|
+
o = !1;
|
|
220
202
|
try {
|
|
221
|
-
if (
|
|
222
|
-
if (Object(
|
|
223
|
-
|
|
224
|
-
} else for (; !(
|
|
225
|
-
} catch (
|
|
226
|
-
|
|
203
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
204
|
+
if (Object(t) !== t) return;
|
|
205
|
+
f = !1;
|
|
206
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
207
|
+
} catch (r) {
|
|
208
|
+
o = !0, n = r;
|
|
227
209
|
} finally {
|
|
228
210
|
try {
|
|
229
|
-
if (!
|
|
211
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
230
212
|
} finally {
|
|
231
|
-
if (
|
|
213
|
+
if (o) throw n;
|
|
232
214
|
}
|
|
233
215
|
}
|
|
234
|
-
return
|
|
216
|
+
return a;
|
|
235
217
|
}
|
|
236
218
|
}
|
|
237
|
-
function _arrayWithHoles$1(
|
|
238
|
-
if (Array.isArray(
|
|
219
|
+
function _arrayWithHoles$1(r) {
|
|
220
|
+
if (Array.isArray(r)) return r;
|
|
239
221
|
}
|
|
240
|
-
function _typeof$2(
|
|
222
|
+
function _typeof$2(o) {
|
|
241
223
|
"@babel/helpers - typeof";
|
|
242
224
|
|
|
243
|
-
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
244
|
-
return typeof
|
|
245
|
-
} : function (
|
|
246
|
-
return
|
|
247
|
-
}, _typeof$2(
|
|
225
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
226
|
+
return typeof o;
|
|
227
|
+
} : function (o) {
|
|
228
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
229
|
+
}, _typeof$2(o);
|
|
248
230
|
}
|
|
249
231
|
/**
|
|
250
232
|
* Decycles objects with circular references.
|
|
@@ -342,7 +324,7 @@
|
|
|
342
324
|
return undefined;
|
|
343
325
|
}
|
|
344
326
|
|
|
345
|
-
var version = '1.19.
|
|
327
|
+
var version = '1.19.8';
|
|
346
328
|
|
|
347
329
|
var userAgents = [{
|
|
348
330
|
segment: 'autocomplete-core',
|
|
@@ -386,54 +368,53 @@
|
|
|
386
368
|
};
|
|
387
369
|
}
|
|
388
370
|
|
|
389
|
-
function _slicedToArray(
|
|
390
|
-
return _arrayWithHoles(
|
|
371
|
+
function _slicedToArray(r, e) {
|
|
372
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$2(r, e) || _nonIterableRest();
|
|
391
373
|
}
|
|
392
374
|
function _nonIterableRest() {
|
|
393
375
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
394
376
|
}
|
|
395
|
-
function _unsupportedIterableToArray$2(
|
|
396
|
-
if (
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
_d = !1;
|
|
377
|
+
function _unsupportedIterableToArray$2(r, a) {
|
|
378
|
+
if (r) {
|
|
379
|
+
if ("string" == typeof r) return _arrayLikeToArray$2(r, a);
|
|
380
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
381
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$2(r, a) : void 0;
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
function _arrayLikeToArray$2(r, a) {
|
|
385
|
+
(null == a || a > r.length) && (a = r.length);
|
|
386
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
387
|
+
return n;
|
|
388
|
+
}
|
|
389
|
+
function _iterableToArrayLimit(r, l) {
|
|
390
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
391
|
+
if (null != t) {
|
|
392
|
+
var e,
|
|
393
|
+
n,
|
|
394
|
+
i,
|
|
395
|
+
u,
|
|
396
|
+
a = [],
|
|
397
|
+
f = !0,
|
|
398
|
+
o = !1;
|
|
418
399
|
try {
|
|
419
|
-
if (
|
|
420
|
-
if (Object(
|
|
421
|
-
|
|
422
|
-
} else for (; !(
|
|
423
|
-
} catch (
|
|
424
|
-
|
|
400
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
401
|
+
if (Object(t) !== t) return;
|
|
402
|
+
f = !1;
|
|
403
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
404
|
+
} catch (r) {
|
|
405
|
+
o = !0, n = r;
|
|
425
406
|
} finally {
|
|
426
407
|
try {
|
|
427
|
-
if (!
|
|
408
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
428
409
|
} finally {
|
|
429
|
-
if (
|
|
410
|
+
if (o) throw n;
|
|
430
411
|
}
|
|
431
412
|
}
|
|
432
|
-
return
|
|
413
|
+
return a;
|
|
433
414
|
}
|
|
434
415
|
}
|
|
435
|
-
function _arrayWithHoles(
|
|
436
|
-
if (Array.isArray(
|
|
416
|
+
function _arrayWithHoles(r) {
|
|
417
|
+
if (Array.isArray(r)) return r;
|
|
437
418
|
}
|
|
438
419
|
/**
|
|
439
420
|
* Determines if a given insights `client` supports the optional call to `init`
|
|
@@ -455,115 +436,101 @@
|
|
|
455
436
|
|
|
456
437
|
var _excluded$3 = ["items"],
|
|
457
438
|
_excluded2$1 = ["items"];
|
|
458
|
-
function _typeof$1(
|
|
439
|
+
function _typeof$1(o) {
|
|
459
440
|
"@babel/helpers - typeof";
|
|
460
441
|
|
|
461
|
-
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
462
|
-
return typeof
|
|
463
|
-
} : function (
|
|
464
|
-
return
|
|
465
|
-
}, _typeof$1(
|
|
442
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
443
|
+
return typeof o;
|
|
444
|
+
} : function (o) {
|
|
445
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
446
|
+
}, _typeof$1(o);
|
|
466
447
|
}
|
|
467
|
-
function _toConsumableArray$1(
|
|
468
|
-
return _arrayWithoutHoles$1(
|
|
448
|
+
function _toConsumableArray$1(r) {
|
|
449
|
+
return _arrayWithoutHoles$1(r) || _iterableToArray$1(r) || _unsupportedIterableToArray$1(r) || _nonIterableSpread$1();
|
|
469
450
|
}
|
|
470
451
|
function _nonIterableSpread$1() {
|
|
471
452
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
472
453
|
}
|
|
473
|
-
function _unsupportedIterableToArray$1(
|
|
474
|
-
if (
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
454
|
+
function _unsupportedIterableToArray$1(r, a) {
|
|
455
|
+
if (r) {
|
|
456
|
+
if ("string" == typeof r) return _arrayLikeToArray$1(r, a);
|
|
457
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
458
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray$1(r, a) : void 0;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function _iterableToArray$1(r) {
|
|
462
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
463
|
+
}
|
|
464
|
+
function _arrayWithoutHoles$1(r) {
|
|
465
|
+
if (Array.isArray(r)) return _arrayLikeToArray$1(r);
|
|
466
|
+
}
|
|
467
|
+
function _arrayLikeToArray$1(r, a) {
|
|
468
|
+
(null == a || a > r.length) && (a = r.length);
|
|
469
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
470
|
+
return n;
|
|
471
|
+
}
|
|
472
|
+
function _objectWithoutProperties(e, t) {
|
|
473
|
+
if (null == e) return {};
|
|
474
|
+
var o,
|
|
475
|
+
r,
|
|
476
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
496
477
|
if (Object.getOwnPropertySymbols) {
|
|
497
|
-
var
|
|
498
|
-
for (
|
|
499
|
-
key = sourceSymbolKeys[i];
|
|
500
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
501
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
502
|
-
target[key] = source[key];
|
|
503
|
-
}
|
|
478
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
479
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
504
480
|
}
|
|
505
|
-
return
|
|
506
|
-
}
|
|
507
|
-
function _objectWithoutPropertiesLoose(
|
|
508
|
-
if (
|
|
509
|
-
var
|
|
510
|
-
var
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
key = sourceKeys[i];
|
|
514
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
515
|
-
target[key] = source[key];
|
|
481
|
+
return i;
|
|
482
|
+
}
|
|
483
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
484
|
+
if (null == r) return {};
|
|
485
|
+
var t = {};
|
|
486
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
487
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
488
|
+
t[n] = r[n];
|
|
516
489
|
}
|
|
517
|
-
return
|
|
490
|
+
return t;
|
|
518
491
|
}
|
|
519
|
-
function ownKeys$1(
|
|
520
|
-
var
|
|
492
|
+
function ownKeys$1(e, r) {
|
|
493
|
+
var t = Object.keys(e);
|
|
521
494
|
if (Object.getOwnPropertySymbols) {
|
|
522
|
-
var
|
|
523
|
-
|
|
524
|
-
return Object.getOwnPropertyDescriptor(
|
|
525
|
-
})),
|
|
526
|
-
}
|
|
527
|
-
return keys;
|
|
528
|
-
}
|
|
529
|
-
function _objectSpread$1(target) {
|
|
530
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
531
|
-
var source = null != arguments[i] ? arguments[i] : {};
|
|
532
|
-
i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
|
|
533
|
-
_defineProperty$1(target, key, source[key]);
|
|
534
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
|
|
535
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
536
|
-
});
|
|
495
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
496
|
+
r && (o = o.filter(function (r) {
|
|
497
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
498
|
+
})), t.push.apply(t, o);
|
|
537
499
|
}
|
|
538
|
-
return
|
|
539
|
-
}
|
|
540
|
-
function
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
Object
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
writable: true
|
|
500
|
+
return t;
|
|
501
|
+
}
|
|
502
|
+
function _objectSpread$1(e) {
|
|
503
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
504
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
505
|
+
r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) {
|
|
506
|
+
_defineProperty$1(e, r, t[r]);
|
|
507
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
|
|
508
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
548
509
|
});
|
|
549
|
-
} else {
|
|
550
|
-
obj[key] = value;
|
|
551
510
|
}
|
|
552
|
-
return
|
|
553
|
-
}
|
|
554
|
-
function
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
511
|
+
return e;
|
|
512
|
+
}
|
|
513
|
+
function _defineProperty$1(e, r, t) {
|
|
514
|
+
return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
|
|
515
|
+
value: t,
|
|
516
|
+
enumerable: !0,
|
|
517
|
+
configurable: !0,
|
|
518
|
+
writable: !0
|
|
519
|
+
}) : e[r] = t, e;
|
|
520
|
+
}
|
|
521
|
+
function _toPropertyKey$1(t) {
|
|
522
|
+
var i = _toPrimitive$1(t, "string");
|
|
523
|
+
return "symbol" == _typeof$1(i) ? i : i + "";
|
|
524
|
+
}
|
|
525
|
+
function _toPrimitive$1(t, r) {
|
|
526
|
+
if ("object" != _typeof$1(t) || !t) return t;
|
|
527
|
+
var e = t[Symbol.toPrimitive];
|
|
528
|
+
if (void 0 !== e) {
|
|
529
|
+
var i = e.call(t, r || "default");
|
|
530
|
+
if ("object" != _typeof$1(i)) return i;
|
|
564
531
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
565
532
|
}
|
|
566
|
-
return (
|
|
533
|
+
return ("string" === r ? String : Number)(t);
|
|
567
534
|
}
|
|
568
535
|
function chunk(item) {
|
|
569
536
|
var chunkSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 20;
|
|
@@ -776,88 +743,81 @@
|
|
|
776
743
|
return hit.objectID && hit.__autocomplete_indexName && hit.__autocomplete_queryID;
|
|
777
744
|
}
|
|
778
745
|
|
|
779
|
-
function _typeof(
|
|
746
|
+
function _typeof(o) {
|
|
780
747
|
"@babel/helpers - typeof";
|
|
781
748
|
|
|
782
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
783
|
-
return typeof
|
|
784
|
-
} : function (
|
|
785
|
-
return
|
|
786
|
-
}, _typeof(
|
|
749
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
750
|
+
return typeof o;
|
|
751
|
+
} : function (o) {
|
|
752
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
753
|
+
}, _typeof(o);
|
|
787
754
|
}
|
|
788
|
-
function _toConsumableArray(
|
|
789
|
-
return _arrayWithoutHoles(
|
|
755
|
+
function _toConsumableArray(r) {
|
|
756
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
790
757
|
}
|
|
791
758
|
function _nonIterableSpread() {
|
|
792
759
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
793
760
|
}
|
|
794
|
-
function _unsupportedIterableToArray(
|
|
795
|
-
if (
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
761
|
+
function _unsupportedIterableToArray(r, a) {
|
|
762
|
+
if (r) {
|
|
763
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
764
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
765
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
766
|
+
}
|
|
801
767
|
}
|
|
802
|
-
function _iterableToArray(
|
|
803
|
-
if (typeof Symbol
|
|
768
|
+
function _iterableToArray(r) {
|
|
769
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
804
770
|
}
|
|
805
|
-
function _arrayWithoutHoles(
|
|
806
|
-
if (Array.isArray(
|
|
771
|
+
function _arrayWithoutHoles(r) {
|
|
772
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
807
773
|
}
|
|
808
|
-
function _arrayLikeToArray(
|
|
809
|
-
|
|
810
|
-
for (var
|
|
811
|
-
return
|
|
774
|
+
function _arrayLikeToArray(r, a) {
|
|
775
|
+
(null == a || a > r.length) && (a = r.length);
|
|
776
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
777
|
+
return n;
|
|
812
778
|
}
|
|
813
|
-
function ownKeys(
|
|
814
|
-
var
|
|
779
|
+
function ownKeys(e, r) {
|
|
780
|
+
var t = Object.keys(e);
|
|
815
781
|
if (Object.getOwnPropertySymbols) {
|
|
816
|
-
var
|
|
817
|
-
|
|
818
|
-
return Object.getOwnPropertyDescriptor(
|
|
819
|
-
})),
|
|
820
|
-
}
|
|
821
|
-
return keys;
|
|
822
|
-
}
|
|
823
|
-
function _objectSpread(target) {
|
|
824
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
825
|
-
var source = null != arguments[i] ? arguments[i] : {};
|
|
826
|
-
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
827
|
-
_defineProperty(target, key, source[key]);
|
|
828
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
829
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
830
|
-
});
|
|
782
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
783
|
+
r && (o = o.filter(function (r) {
|
|
784
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
785
|
+
})), t.push.apply(t, o);
|
|
831
786
|
}
|
|
832
|
-
return
|
|
833
|
-
}
|
|
834
|
-
function
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
Object
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
writable: true
|
|
787
|
+
return t;
|
|
788
|
+
}
|
|
789
|
+
function _objectSpread(e) {
|
|
790
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
791
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
792
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
793
|
+
_defineProperty(e, r, t[r]);
|
|
794
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
795
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
842
796
|
});
|
|
843
|
-
} else {
|
|
844
|
-
obj[key] = value;
|
|
845
797
|
}
|
|
846
|
-
return
|
|
847
|
-
}
|
|
848
|
-
function
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
798
|
+
return e;
|
|
799
|
+
}
|
|
800
|
+
function _defineProperty(e, r, t) {
|
|
801
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
802
|
+
value: t,
|
|
803
|
+
enumerable: !0,
|
|
804
|
+
configurable: !0,
|
|
805
|
+
writable: !0
|
|
806
|
+
}) : e[r] = t, e;
|
|
807
|
+
}
|
|
808
|
+
function _toPropertyKey(t) {
|
|
809
|
+
var i = _toPrimitive(t, "string");
|
|
810
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
811
|
+
}
|
|
812
|
+
function _toPrimitive(t, r) {
|
|
813
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
814
|
+
var e = t[Symbol.toPrimitive];
|
|
815
|
+
if (void 0 !== e) {
|
|
816
|
+
var i = e.call(t, r || "default");
|
|
817
|
+
if ("object" != _typeof(i)) return i;
|
|
858
818
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
859
819
|
}
|
|
860
|
-
return (
|
|
820
|
+
return ("string" === r ? String : Number)(t);
|
|
861
821
|
}
|
|
862
822
|
var VIEW_EVENT_DELAY = 400;
|
|
863
823
|
var ALGOLIA_INSIGHTS_VERSION = '2.15.0';
|
|
@@ -1303,9 +1263,9 @@
|
|
|
1303
1263
|
_step;
|
|
1304
1264
|
try {
|
|
1305
1265
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
1306
|
-
var _plugin$__autocomplet, _plugin$__autocomplet2
|
|
1266
|
+
var _plugin$__autocomplet, _plugin$__autocomplet2;
|
|
1307
1267
|
var plugin = _step.value;
|
|
1308
|
-
var value = (_plugin$__autocomplet = plugin.__autocomplete_pluginOptions) === null || _plugin$__autocomplet === void 0 ? void 0 : (_plugin$__autocomplet2 =
|
|
1268
|
+
var value = (_plugin$__autocomplet = plugin.__autocomplete_pluginOptions) === null || _plugin$__autocomplet === void 0 ? void 0 : (_plugin$__autocomplet2 = _plugin$__autocomplet.awaitSubmit) === null || _plugin$__autocomplet2 === void 0 ? void 0 : _plugin$__autocomplet2.call(_plugin$__autocomplet);
|
|
1309
1269
|
if (typeof value === 'number') {
|
|
1310
1270
|
timeouts.push(value);
|
|
1311
1271
|
} else if (value === true) {
|