@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.
@@ -1,170 +1,153 @@
1
- /*! @algolia/autocomplete-core 1.19.6 | MIT License | © Algolia, Inc. and contributors | https://github.com/algolia/autocomplete */
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 ownKeys$2(object, enumerableOnly) {
9
- var keys = Object.keys(object);
10
- if (Object.getOwnPropertySymbols) {
11
- var symbols = Object.getOwnPropertySymbols(object);
12
- enumerableOnly && (symbols = symbols.filter(function (sym) {
13
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
14
- })), keys.push.apply(keys, symbols);
15
- }
16
- return keys;
17
- }
18
- function _objectSpread2(target) {
19
- for (var i = 1; i < arguments.length; i++) {
20
- var source = null != arguments[i] ? arguments[i] : {};
21
- i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
22
- _defineProperty$2(target, key, source[key]);
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
- if (i >= o.length) return {
115
- done: true
116
- };
117
- return {
118
- done: false,
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 (e) {
123
- throw e;
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 normalCompletion = true,
131
- didErr = false,
132
- err;
41
+ var o,
42
+ a = !0,
43
+ u = !1;
133
44
  return {
134
45
  s: function () {
135
- it = it.call(o);
46
+ t = t.call(r);
136
47
  },
137
48
  n: function () {
138
- var step = it.next();
139
- normalCompletion = step.done;
140
- return step;
49
+ var r = t.next();
50
+ return a = r.done, r;
141
51
  },
142
- e: function (e) {
143
- didErr = true;
144
- err = e;
52
+ e: function (r) {
53
+ u = !0, o = r;
145
54
  },
146
55
  f: function () {
147
56
  try {
148
- if (!normalCompletion && it.return != null) it.return();
57
+ a || null == t.return || t.return();
149
58
  } finally {
150
- if (didErr) throw err;
59
+ if (u) throw o;
151
60
  }
152
61
  }
153
62
  };
154
63
  }
155
- function _toPrimitive$2(input, hint) {
156
- if (typeof input !== "object" || input === null) return input;
157
- var prim = input[Symbol.toPrimitive];
158
- if (prim !== undefined) {
159
- var res = prim.call(input, hint || "default");
160
- if (typeof res !== "object") return res;
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 (hint === "string" ? String : Number)(input);
130
+ return ("string" === r ? String : Number)(t);
164
131
  }
165
- function _toPropertyKey$2(arg) {
166
- var key = _toPrimitive$2(arg, "string");
167
- return typeof key === "symbol" ? key : String(key);
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(arr, i) {
192
- return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$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(o, minLen) {
198
- if (!o) return;
199
- if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
200
- var n = Object.prototype.toString.call(o).slice(8, -1);
201
- if (n === "Object" && o.constructor) n = o.constructor.name;
202
- if (n === "Map" || n === "Set") return Array.from(o);
203
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
204
- }
205
- function _arrayLikeToArray$3(arr, len) {
206
- if (len == null || len > arr.length) len = arr.length;
207
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
208
- return arr2;
209
- }
210
- function _iterableToArrayLimit$1(arr, i) {
211
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
212
- if (null != _i) {
213
- var _s,
214
- _e,
215
- _x,
216
- _r,
217
- _arr = [],
218
- _n = !0,
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 (_x = (_i = _i.call(arr)).next, 0 === i) {
222
- if (Object(_i) !== _i) return;
223
- _n = !1;
224
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
225
- } catch (err) {
226
- _d = !0, _e = err;
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 (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
211
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
230
212
  } finally {
231
- if (_d) throw _e;
213
+ if (o) throw n;
232
214
  }
233
215
  }
234
- return _arr;
216
+ return a;
235
217
  }
236
218
  }
237
- function _arrayWithHoles$1(arr) {
238
- if (Array.isArray(arr)) return arr;
219
+ function _arrayWithHoles$1(r) {
220
+ if (Array.isArray(r)) return r;
239
221
  }
240
- function _typeof$2(obj) {
222
+ function _typeof$2(o) {
241
223
  "@babel/helpers - typeof";
242
224
 
243
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
244
- return typeof obj;
245
- } : function (obj) {
246
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
247
- }, _typeof$2(obj);
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.6';
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(arr, i) {
390
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest();
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(o, minLen) {
396
- if (!o) return;
397
- if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
398
- var n = Object.prototype.toString.call(o).slice(8, -1);
399
- if (n === "Object" && o.constructor) n = o.constructor.name;
400
- if (n === "Map" || n === "Set") return Array.from(o);
401
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
402
- }
403
- function _arrayLikeToArray$2(arr, len) {
404
- if (len == null || len > arr.length) len = arr.length;
405
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
406
- return arr2;
407
- }
408
- function _iterableToArrayLimit(arr, i) {
409
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
410
- if (null != _i) {
411
- var _s,
412
- _e,
413
- _x,
414
- _r,
415
- _arr = [],
416
- _n = !0,
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 (_x = (_i = _i.call(arr)).next, 0 === i) {
420
- if (Object(_i) !== _i) return;
421
- _n = !1;
422
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
423
- } catch (err) {
424
- _d = !0, _e = err;
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 (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
408
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
428
409
  } finally {
429
- if (_d) throw _e;
410
+ if (o) throw n;
430
411
  }
431
412
  }
432
- return _arr;
413
+ return a;
433
414
  }
434
415
  }
435
- function _arrayWithHoles(arr) {
436
- if (Array.isArray(arr)) return arr;
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(obj) {
439
+ function _typeof$1(o) {
459
440
  "@babel/helpers - typeof";
460
441
 
461
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
462
- return typeof obj;
463
- } : function (obj) {
464
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
465
- }, _typeof$1(obj);
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(arr) {
468
- return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$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(o, minLen) {
474
- if (!o) return;
475
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
476
- var n = Object.prototype.toString.call(o).slice(8, -1);
477
- if (n === "Object" && o.constructor) n = o.constructor.name;
478
- if (n === "Map" || n === "Set") return Array.from(o);
479
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
480
- }
481
- function _iterableToArray$1(iter) {
482
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
483
- }
484
- function _arrayWithoutHoles$1(arr) {
485
- if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
486
- }
487
- function _arrayLikeToArray$1(arr, len) {
488
- if (len == null || len > arr.length) len = arr.length;
489
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
490
- return arr2;
491
- }
492
- function _objectWithoutProperties(source, excluded) {
493
- if (source == null) return {};
494
- var target = _objectWithoutPropertiesLoose(source, excluded);
495
- var key, i;
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 sourceSymbolKeys = Object.getOwnPropertySymbols(source);
498
- for (i = 0; i < sourceSymbolKeys.length; i++) {
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 target;
506
- }
507
- function _objectWithoutPropertiesLoose(source, excluded) {
508
- if (source == null) return {};
509
- var target = {};
510
- var sourceKeys = Object.keys(source);
511
- var key, i;
512
- for (i = 0; i < sourceKeys.length; i++) {
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 target;
490
+ return t;
518
491
  }
519
- function ownKeys$1(object, enumerableOnly) {
520
- var keys = Object.keys(object);
492
+ function ownKeys$1(e, r) {
493
+ var t = Object.keys(e);
521
494
  if (Object.getOwnPropertySymbols) {
522
- var symbols = Object.getOwnPropertySymbols(object);
523
- enumerableOnly && (symbols = symbols.filter(function (sym) {
524
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
525
- })), keys.push.apply(keys, symbols);
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 target;
539
- }
540
- function _defineProperty$1(obj, key, value) {
541
- key = _toPropertyKey$1(key);
542
- if (key in obj) {
543
- Object.defineProperty(obj, key, {
544
- value: value,
545
- enumerable: true,
546
- configurable: true,
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 obj;
553
- }
554
- function _toPropertyKey$1(arg) {
555
- var key = _toPrimitive$1(arg, "string");
556
- return _typeof$1(key) === "symbol" ? key : String(key);
557
- }
558
- function _toPrimitive$1(input, hint) {
559
- if (_typeof$1(input) !== "object" || input === null) return input;
560
- var prim = input[Symbol.toPrimitive];
561
- if (prim !== undefined) {
562
- var res = prim.call(input, hint || "default");
563
- if (_typeof$1(res) !== "object") return res;
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 (hint === "string" ? String : Number)(input);
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(obj) {
746
+ function _typeof(o) {
780
747
  "@babel/helpers - typeof";
781
748
 
782
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
783
- return typeof obj;
784
- } : function (obj) {
785
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
786
- }, _typeof(obj);
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(arr) {
789
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
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(o, minLen) {
795
- if (!o) return;
796
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
797
- var n = Object.prototype.toString.call(o).slice(8, -1);
798
- if (n === "Object" && o.constructor) n = o.constructor.name;
799
- if (n === "Map" || n === "Set") return Array.from(o);
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(iter) {
803
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
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(arr) {
806
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
771
+ function _arrayWithoutHoles(r) {
772
+ if (Array.isArray(r)) return _arrayLikeToArray(r);
807
773
  }
808
- function _arrayLikeToArray(arr, len) {
809
- if (len == null || len > arr.length) len = arr.length;
810
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
811
- return arr2;
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(object, enumerableOnly) {
814
- var keys = Object.keys(object);
779
+ function ownKeys(e, r) {
780
+ var t = Object.keys(e);
815
781
  if (Object.getOwnPropertySymbols) {
816
- var symbols = Object.getOwnPropertySymbols(object);
817
- enumerableOnly && (symbols = symbols.filter(function (sym) {
818
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
819
- })), keys.push.apply(keys, symbols);
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 target;
833
- }
834
- function _defineProperty(obj, key, value) {
835
- key = _toPropertyKey(key);
836
- if (key in obj) {
837
- Object.defineProperty(obj, key, {
838
- value: value,
839
- enumerable: true,
840
- configurable: true,
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 obj;
847
- }
848
- function _toPropertyKey(arg) {
849
- var key = _toPrimitive(arg, "string");
850
- return _typeof(key) === "symbol" ? key : String(key);
851
- }
852
- function _toPrimitive(input, hint) {
853
- if (_typeof(input) !== "object" || input === null) return input;
854
- var prim = input[Symbol.toPrimitive];
855
- if (prim !== undefined) {
856
- var res = prim.call(input, hint || "default");
857
- if (_typeof(res) !== "object") return res;
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 (hint === "string" ? String : Number)(input);
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, _plugin$__autocomplet3;
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 = (_plugin$__autocomplet3 = _plugin$__autocomplet).awaitSubmit) === null || _plugin$__autocomplet2 === void 0 ? void 0 : _plugin$__autocomplet2.call(_plugin$__autocomplet3);
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) {