react-instantsearch-core 7.8.0 → 7.8.1

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.
@@ -7,7 +7,142 @@
7
7
 
8
8
  var React__default = 'default' in React ? React['default'] : React;
9
9
 
10
- var version = '7.8.0';
10
+ var version = '7.8.1';
11
+
12
+ function _iterableToArrayLimit(arr, i) {
13
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
14
+ if (null != _i) {
15
+ var _s,
16
+ _e,
17
+ _x,
18
+ _r,
19
+ _arr = [],
20
+ _n = !0,
21
+ _d = !1;
22
+ try {
23
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
24
+ if (Object(_i) !== _i) return;
25
+ _n = !1;
26
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
27
+ } catch (err) {
28
+ _d = !0, _e = err;
29
+ } finally {
30
+ try {
31
+ if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
32
+ } finally {
33
+ if (_d) throw _e;
34
+ }
35
+ }
36
+ return _arr;
37
+ }
38
+ }
39
+ function ownKeys(object, enumerableOnly) {
40
+ var keys = Object.keys(object);
41
+ if (Object.getOwnPropertySymbols) {
42
+ var symbols = Object.getOwnPropertySymbols(object);
43
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
44
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
45
+ })), keys.push.apply(keys, symbols);
46
+ }
47
+ return keys;
48
+ }
49
+ function _objectSpread2(target) {
50
+ for (var i = 1; i < arguments.length; i++) {
51
+ var source = null != arguments[i] ? arguments[i] : {};
52
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
53
+ _defineProperty(target, key, source[key]);
54
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
55
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
56
+ });
57
+ }
58
+ return target;
59
+ }
60
+ function _typeof(obj) {
61
+ "@babel/helpers - typeof";
62
+
63
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
64
+ return typeof obj;
65
+ } : function (obj) {
66
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
67
+ }, _typeof(obj);
68
+ }
69
+ function _defineProperty(obj, key, value) {
70
+ key = _toPropertyKey(key);
71
+ if (key in obj) {
72
+ Object.defineProperty(obj, key, {
73
+ value: value,
74
+ enumerable: true,
75
+ configurable: true,
76
+ writable: true
77
+ });
78
+ } else {
79
+ obj[key] = value;
80
+ }
81
+ return obj;
82
+ }
83
+ function _objectWithoutPropertiesLoose(source, excluded) {
84
+ if (source == null) return {};
85
+ var target = {};
86
+ var sourceKeys = Object.keys(source);
87
+ var key, i;
88
+ for (i = 0; i < sourceKeys.length; i++) {
89
+ key = sourceKeys[i];
90
+ if (excluded.indexOf(key) >= 0) continue;
91
+ target[key] = source[key];
92
+ }
93
+ return target;
94
+ }
95
+ function _objectWithoutProperties(source, excluded) {
96
+ if (source == null) return {};
97
+ var target = _objectWithoutPropertiesLoose(source, excluded);
98
+ var key, i;
99
+ if (Object.getOwnPropertySymbols) {
100
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
101
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
102
+ key = sourceSymbolKeys[i];
103
+ if (excluded.indexOf(key) >= 0) continue;
104
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
105
+ target[key] = source[key];
106
+ }
107
+ }
108
+ return target;
109
+ }
110
+ function _slicedToArray(arr, i) {
111
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
112
+ }
113
+ function _arrayWithHoles(arr) {
114
+ if (Array.isArray(arr)) return arr;
115
+ }
116
+ function _unsupportedIterableToArray(o, minLen) {
117
+ if (!o) return;
118
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
119
+ var n = Object.prototype.toString.call(o).slice(8, -1);
120
+ if (n === "Object" && o.constructor) n = o.constructor.name;
121
+ if (n === "Map" || n === "Set") return Array.from(o);
122
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
123
+ }
124
+ function _arrayLikeToArray(arr, len) {
125
+ if (len == null || len > arr.length) len = arr.length;
126
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
127
+ return arr2;
128
+ }
129
+ function _nonIterableRest() {
130
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
131
+ }
132
+ function _toPrimitive(input, hint) {
133
+ if (typeof input !== "object" || input === null) return input;
134
+ var prim = input[Symbol.toPrimitive];
135
+ if (prim !== undefined) {
136
+ var res = prim.call(input, hint || "default");
137
+ if (typeof res !== "object") return res;
138
+ throw new TypeError("@@toPrimitive must return a primitive value.");
139
+ }
140
+ return (hint === "string" ? String : Number)(input);
141
+ }
142
+ function _toPropertyKey(arg) {
143
+ var key = _toPrimitive(arg, "string");
144
+ return typeof key === "symbol" ? key : String(key);
145
+ }
11
146
 
12
147
  // Copyright Joyent, Inc. and other Node contributors.
13
148
  //
@@ -487,7 +622,7 @@
487
622
  var objectHasKeys_1 = objectHasKeys;
488
623
 
489
624
  // https://github.com/babel/babel/blob/3aaafae053fa75febb3aa45d45b6f00646e30ba4/packages/babel-helpers/src/helpers.js#L604-L620
490
- function _objectWithoutPropertiesLoose(source, excluded) {
625
+ function _objectWithoutPropertiesLoose$1(source, excluded) {
491
626
  if (source === null) return {};
492
627
  var target = {};
493
628
  var sourceKeys = Object.keys(source);
@@ -502,7 +637,7 @@
502
637
  return target;
503
638
  }
504
639
 
505
- var omit = _objectWithoutPropertiesLoose;
640
+ var omit = _objectWithoutPropertiesLoose$1;
506
641
 
507
642
  /**
508
643
  * RecommendParameters is the data structure that contains all the information
@@ -6582,14 +6717,14 @@
6582
6717
  }) : value;
6583
6718
  }
6584
6719
 
6585
- function _typeof(obj) {
6720
+ function _typeof$1(obj) {
6586
6721
  "@babel/helpers - typeof";
6587
6722
 
6588
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
6723
+ return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
6589
6724
  return typeof obj;
6590
6725
  } : function (obj) {
6591
6726
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
6592
- }, _typeof(obj);
6727
+ }, _typeof$1(obj);
6593
6728
  }
6594
6729
  /**
6595
6730
  * This implementation is taken from Lodash implementation.
@@ -6603,7 +6738,7 @@
6603
6738
  return Object.prototype.toString.call(value);
6604
6739
  }
6605
6740
  function isObjectLike(value) {
6606
- return _typeof(value) === 'object' && value !== null;
6741
+ return _typeof$1(value) === 'object' && value !== null;
6607
6742
  }
6608
6743
 
6609
6744
  /**
@@ -6626,14 +6761,14 @@
6626
6761
  return Object.getPrototypeOf(value) === proto;
6627
6762
  }
6628
6763
 
6629
- function _typeof$1(obj) {
6764
+ function _typeof$2(obj) {
6630
6765
  "@babel/helpers - typeof";
6631
6766
 
6632
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
6767
+ return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
6633
6768
  return typeof obj;
6634
6769
  } : function (obj) {
6635
6770
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
6636
- }, _typeof$1(obj);
6771
+ }, _typeof$2(obj);
6637
6772
  }
6638
6773
  function _objectDestructuringEmpty(obj) {
6639
6774
  if (obj == null) throw new TypeError("Cannot destructure " + obj);
@@ -6652,7 +6787,7 @@
6652
6787
  };
6653
6788
  return _extends.apply(this, arguments);
6654
6789
  }
6655
- function ownKeys(object, enumerableOnly) {
6790
+ function ownKeys$1(object, enumerableOnly) {
6656
6791
  var keys = Object.keys(object);
6657
6792
  if (Object.getOwnPropertySymbols) {
6658
6793
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6665,16 +6800,16 @@
6665
6800
  function _objectSpread(target) {
6666
6801
  for (var i = 1; i < arguments.length; i++) {
6667
6802
  var source = null != arguments[i] ? arguments[i] : {};
6668
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
6669
- _defineProperty(target, key, source[key]);
6670
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
6803
+ i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
6804
+ _defineProperty$1(target, key, source[key]);
6805
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
6671
6806
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6672
6807
  });
6673
6808
  }
6674
6809
  return target;
6675
6810
  }
6676
- function _defineProperty(obj, key, value) {
6677
- key = _toPropertyKey(key);
6811
+ function _defineProperty$1(obj, key, value) {
6812
+ key = _toPropertyKey$1(key);
6678
6813
  if (key in obj) {
6679
6814
  Object.defineProperty(obj, key, {
6680
6815
  value: value,
@@ -6687,16 +6822,16 @@
6687
6822
  }
6688
6823
  return obj;
6689
6824
  }
6690
- function _toPropertyKey(arg) {
6691
- var key = _toPrimitive(arg, "string");
6692
- return _typeof$1(key) === "symbol" ? key : String(key);
6825
+ function _toPropertyKey$1(arg) {
6826
+ var key = _toPrimitive$1(arg, "string");
6827
+ return _typeof$2(key) === "symbol" ? key : String(key);
6693
6828
  }
6694
- function _toPrimitive(input, hint) {
6695
- if (_typeof$1(input) !== "object" || input === null) return input;
6829
+ function _toPrimitive$1(input, hint) {
6830
+ if (_typeof$2(input) !== "object" || input === null) return input;
6696
6831
  var prim = input[Symbol.toPrimitive];
6697
6832
  if (prim !== undefined) {
6698
6833
  var res = prim.call(input, hint || "default");
6699
- if (_typeof$1(res) !== "object") return res;
6834
+ if (_typeof$2(res) !== "object") return res;
6700
6835
  throw new TypeError("@@toPrimitive must return a primitive value.");
6701
6836
  }
6702
6837
  return (hint === "string" ? String : Number)(input);
@@ -6717,7 +6852,7 @@
6717
6852
  function recursiveEscape(input) {
6718
6853
  if (isPlainObject(input) && typeof input.value !== 'string') {
6719
6854
  return Object.keys(input).reduce(function (acc, key) {
6720
- return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, key, recursiveEscape(input[key])));
6855
+ return _objectSpread(_objectSpread({}, acc), {}, _defineProperty$1({}, key, recursiveEscape(input[key])));
6721
6856
  }, {});
6722
6857
  }
6723
6858
  if (Array.isArray(input)) {
@@ -6771,7 +6906,7 @@
6771
6906
  }
6772
6907
  }
6773
6908
 
6774
- function ownKeys$1(object, enumerableOnly) {
6909
+ function ownKeys$2(object, enumerableOnly) {
6775
6910
  var keys = Object.keys(object);
6776
6911
  if (Object.getOwnPropertySymbols) {
6777
6912
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6784,16 +6919,16 @@
6784
6919
  function _objectSpread$1(target) {
6785
6920
  for (var i = 1; i < arguments.length; i++) {
6786
6921
  var source = null != arguments[i] ? arguments[i] : {};
6787
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
6788
- _defineProperty$1(target, key, source[key]);
6789
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
6922
+ i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
6923
+ _defineProperty$2(target, key, source[key]);
6924
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {
6790
6925
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6791
6926
  });
6792
6927
  }
6793
6928
  return target;
6794
6929
  }
6795
- function _defineProperty$1(obj, key, value) {
6796
- key = _toPropertyKey$1(key);
6930
+ function _defineProperty$2(obj, key, value) {
6931
+ key = _toPropertyKey$2(key);
6797
6932
  if (key in obj) {
6798
6933
  Object.defineProperty(obj, key, {
6799
6934
  value: value,
@@ -6806,49 +6941,49 @@
6806
6941
  }
6807
6942
  return obj;
6808
6943
  }
6809
- function _toPropertyKey$1(arg) {
6810
- var key = _toPrimitive$1(arg, "string");
6811
- return _typeof$2(key) === "symbol" ? key : String(key);
6944
+ function _toPropertyKey$2(arg) {
6945
+ var key = _toPrimitive$2(arg, "string");
6946
+ return _typeof$3(key) === "symbol" ? key : String(key);
6812
6947
  }
6813
- function _toPrimitive$1(input, hint) {
6814
- if (_typeof$2(input) !== "object" || input === null) return input;
6948
+ function _toPrimitive$2(input, hint) {
6949
+ if (_typeof$3(input) !== "object" || input === null) return input;
6815
6950
  var prim = input[Symbol.toPrimitive];
6816
6951
  if (prim !== undefined) {
6817
6952
  var res = prim.call(input, hint || "default");
6818
- if (_typeof$2(res) !== "object") return res;
6953
+ if (_typeof$3(res) !== "object") return res;
6819
6954
  throw new TypeError("@@toPrimitive must return a primitive value.");
6820
6955
  }
6821
6956
  return (hint === "string" ? String : Number)(input);
6822
6957
  }
6823
- function _typeof$2(obj) {
6958
+ function _typeof$3(obj) {
6824
6959
  "@babel/helpers - typeof";
6825
6960
 
6826
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
6961
+ return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
6827
6962
  return typeof obj;
6828
6963
  } : function (obj) {
6829
6964
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
6830
- }, _typeof$2(obj);
6965
+ }, _typeof$3(obj);
6831
6966
  }
6832
- function _slicedToArray(arr, i) {
6833
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
6967
+ function _slicedToArray$1(arr, i) {
6968
+ return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
6834
6969
  }
6835
- function _nonIterableRest() {
6970
+ function _nonIterableRest$1() {
6836
6971
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6837
6972
  }
6838
- function _unsupportedIterableToArray(o, minLen) {
6973
+ function _unsupportedIterableToArray$1(o, minLen) {
6839
6974
  if (!o) return;
6840
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
6975
+ if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
6841
6976
  var n = Object.prototype.toString.call(o).slice(8, -1);
6842
6977
  if (n === "Object" && o.constructor) n = o.constructor.name;
6843
6978
  if (n === "Map" || n === "Set") return Array.from(o);
6844
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
6979
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
6845
6980
  }
6846
- function _arrayLikeToArray(arr, len) {
6981
+ function _arrayLikeToArray$1(arr, len) {
6847
6982
  if (len == null || len > arr.length) len = arr.length;
6848
6983
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
6849
6984
  return arr2;
6850
6985
  }
6851
- function _iterableToArrayLimit(arr, i) {
6986
+ function _iterableToArrayLimit$1(arr, i) {
6852
6987
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
6853
6988
  if (null != _i) {
6854
6989
  var _s,
@@ -6875,7 +7010,7 @@
6875
7010
  return _arr;
6876
7011
  }
6877
7012
  }
6878
- function _arrayWithHoles(arr) {
7013
+ function _arrayWithHoles$1(arr) {
6879
7014
  if (Array.isArray(arr)) return arr;
6880
7015
  }
6881
7016
  function createSendEventForFacet(_ref) {
@@ -6893,11 +7028,11 @@
6893
7028
  _args$2 = args[3],
6894
7029
  additionalData = _args$2 === void 0 ? {} : _args$2;
6895
7030
  var _args$0$split = args[0].split(':'),
6896
- _args$0$split2 = _slicedToArray(_args$0$split, 2),
7031
+ _args$0$split2 = _slicedToArray$1(_args$0$split, 2),
6897
7032
  eventType = _args$0$split2[0],
6898
7033
  eventModifier = _args$0$split2[1];
6899
7034
  var attribute = typeof attr === 'string' ? attr : attr(facetValue);
6900
- if (args.length === 1 && _typeof$2(args[0]) === 'object') {
7035
+ if (args.length === 1 && _typeof$3(args[0]) === 'object') {
6901
7036
  instantSearchInstance.sendEventToInsights(args[0]);
6902
7037
  } else if (eventType === 'click' && args.length >= 2 && args.length <= 4) {
6903
7038
  if (!isFacetRefined(helper, attribute, facetValue)) {
@@ -6924,7 +7059,7 @@
6924
7059
  return btoa(encodeURIComponent(JSON.stringify(payload)));
6925
7060
  }
6926
7061
 
6927
- function ownKeys$2(object, enumerableOnly) {
7062
+ function ownKeys$3(object, enumerableOnly) {
6928
7063
  var keys = Object.keys(object);
6929
7064
  if (Object.getOwnPropertySymbols) {
6930
7065
  var symbols = Object.getOwnPropertySymbols(object);
@@ -6937,16 +7072,16 @@
6937
7072
  function _objectSpread$2(target) {
6938
7073
  for (var i = 1; i < arguments.length; i++) {
6939
7074
  var source = null != arguments[i] ? arguments[i] : {};
6940
- i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) {
6941
- _defineProperty$2(target, key, source[key]);
6942
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) {
7075
+ i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) {
7076
+ _defineProperty$3(target, key, source[key]);
7077
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) {
6943
7078
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
6944
7079
  });
6945
7080
  }
6946
7081
  return target;
6947
7082
  }
6948
- function _defineProperty$2(obj, key, value) {
6949
- key = _toPropertyKey$2(key);
7083
+ function _defineProperty$3(obj, key, value) {
7084
+ key = _toPropertyKey$3(key);
6950
7085
  if (key in obj) {
6951
7086
  Object.defineProperty(obj, key, {
6952
7087
  value: value,
@@ -6959,40 +7094,40 @@
6959
7094
  }
6960
7095
  return obj;
6961
7096
  }
6962
- function _toPropertyKey$2(arg) {
6963
- var key = _toPrimitive$2(arg, "string");
6964
- return _typeof$3(key) === "symbol" ? key : String(key);
7097
+ function _toPropertyKey$3(arg) {
7098
+ var key = _toPrimitive$3(arg, "string");
7099
+ return _typeof$4(key) === "symbol" ? key : String(key);
6965
7100
  }
6966
- function _toPrimitive$2(input, hint) {
6967
- if (_typeof$3(input) !== "object" || input === null) return input;
7101
+ function _toPrimitive$3(input, hint) {
7102
+ if (_typeof$4(input) !== "object" || input === null) return input;
6968
7103
  var prim = input[Symbol.toPrimitive];
6969
7104
  if (prim !== undefined) {
6970
7105
  var res = prim.call(input, hint || "default");
6971
- if (_typeof$3(res) !== "object") return res;
7106
+ if (_typeof$4(res) !== "object") return res;
6972
7107
  throw new TypeError("@@toPrimitive must return a primitive value.");
6973
7108
  }
6974
7109
  return (hint === "string" ? String : Number)(input);
6975
7110
  }
6976
- function _slicedToArray$1(arr, i) {
6977
- return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1();
7111
+ function _slicedToArray$2(arr, i) {
7112
+ return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$2();
6978
7113
  }
6979
- function _nonIterableRest$1() {
7114
+ function _nonIterableRest$2() {
6980
7115
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
6981
7116
  }
6982
- function _unsupportedIterableToArray$1(o, minLen) {
7117
+ function _unsupportedIterableToArray$2(o, minLen) {
6983
7118
  if (!o) return;
6984
- if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
7119
+ if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
6985
7120
  var n = Object.prototype.toString.call(o).slice(8, -1);
6986
7121
  if (n === "Object" && o.constructor) n = o.constructor.name;
6987
7122
  if (n === "Map" || n === "Set") return Array.from(o);
6988
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
7123
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
6989
7124
  }
6990
- function _arrayLikeToArray$1(arr, len) {
7125
+ function _arrayLikeToArray$2(arr, len) {
6991
7126
  if (len == null || len > arr.length) len = arr.length;
6992
7127
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
6993
7128
  return arr2;
6994
7129
  }
6995
- function _iterableToArrayLimit$1(arr, i) {
7130
+ function _iterableToArrayLimit$2(arr, i) {
6996
7131
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
6997
7132
  if (null != _i) {
6998
7133
  var _s,
@@ -7019,17 +7154,17 @@
7019
7154
  return _arr;
7020
7155
  }
7021
7156
  }
7022
- function _arrayWithHoles$1(arr) {
7157
+ function _arrayWithHoles$2(arr) {
7023
7158
  if (Array.isArray(arr)) return arr;
7024
7159
  }
7025
- function _typeof$3(obj) {
7160
+ function _typeof$4(obj) {
7026
7161
  "@babel/helpers - typeof";
7027
7162
 
7028
- return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7163
+ return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7029
7164
  return typeof obj;
7030
7165
  } : function (obj) {
7031
7166
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7032
- }, _typeof$3(obj);
7167
+ }, _typeof$4(obj);
7033
7168
  }
7034
7169
  function chunk(arr) {
7035
7170
  var chunkSize = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 20;
@@ -7046,11 +7181,11 @@
7046
7181
  args = _ref.args,
7047
7182
  instantSearchInstance = _ref.instantSearchInstance;
7048
7183
  // when there's only one argument, that means it's custom
7049
- if (args.length === 1 && _typeof$3(args[0]) === 'object') {
7184
+ if (args.length === 1 && _typeof$4(args[0]) === 'object') {
7050
7185
  return [args[0]];
7051
7186
  }
7052
7187
  var _args$0$split = args[0].split(':'),
7053
- _args$0$split2 = _slicedToArray$1(_args$0$split, 2),
7188
+ _args$0$split2 = _slicedToArray$2(_args$0$split, 2),
7054
7189
  eventType = _args$0$split2[0],
7055
7190
  eventModifier = _args$0$split2[1];
7056
7191
  var hits = args[1];
@@ -7304,26 +7439,26 @@
7304
7439
  return -1;
7305
7440
  }
7306
7441
 
7307
- function _slicedToArray$2(arr, i) {
7308
- return _arrayWithHoles$2(arr) || _iterableToArrayLimit$2(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$2();
7442
+ function _slicedToArray$3(arr, i) {
7443
+ return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$3();
7309
7444
  }
7310
- function _nonIterableRest$2() {
7445
+ function _nonIterableRest$3() {
7311
7446
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7312
7447
  }
7313
- function _unsupportedIterableToArray$2(o, minLen) {
7448
+ function _unsupportedIterableToArray$3(o, minLen) {
7314
7449
  if (!o) return;
7315
- if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
7450
+ if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
7316
7451
  var n = Object.prototype.toString.call(o).slice(8, -1);
7317
7452
  if (n === "Object" && o.constructor) n = o.constructor.name;
7318
7453
  if (n === "Map" || n === "Set") return Array.from(o);
7319
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
7454
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
7320
7455
  }
7321
- function _arrayLikeToArray$2(arr, len) {
7456
+ function _arrayLikeToArray$3(arr, len) {
7322
7457
  if (len == null || len > arr.length) len = arr.length;
7323
7458
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
7324
7459
  return arr2;
7325
7460
  }
7326
- function _iterableToArrayLimit$2(arr, i) {
7461
+ function _iterableToArrayLimit$3(arr, i) {
7327
7462
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
7328
7463
  if (null != _i) {
7329
7464
  var _s,
@@ -7350,7 +7485,7 @@
7350
7485
  return _arr;
7351
7486
  }
7352
7487
  }
7353
- function _arrayWithHoles$2(arr) {
7488
+ function _arrayWithHoles$3(arr) {
7354
7489
  if (Array.isArray(arr)) return arr;
7355
7490
  }
7356
7491
  var latLngRegExp = /^(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)$/;
@@ -7368,10 +7503,10 @@
7368
7503
  };
7369
7504
  }
7370
7505
  function insideBoundingBoxArrayToBoundingBox(value) {
7371
- var _value = _slicedToArray$2(value, 1),
7506
+ var _value = _slicedToArray$3(value, 1),
7372
7507
  _value$ = _value[0],
7373
7508
  _value$2 = _value$ === void 0 ? [undefined, undefined, undefined, undefined] : _value$,
7374
- _value$3 = _slicedToArray$2(_value$2, 4),
7509
+ _value$3 = _slicedToArray$3(_value$2, 4),
7375
7510
  neLat = _value$3[0],
7376
7511
  neLng = _value$3[1],
7377
7512
  swLat = _value$3[2],
@@ -7395,7 +7530,7 @@
7395
7530
  }
7396
7531
  function insideBoundingBoxStringToBoundingBox(value) {
7397
7532
  var _value$split$map = value.split(',').map(parseFloat),
7398
- _value$split$map2 = _slicedToArray$2(_value$split$map, 4),
7533
+ _value$split$map2 = _slicedToArray$3(_value$split$map, 4),
7399
7534
  neLat = _value$split$map2[0],
7400
7535
  neLng = _value$split$map2[1],
7401
7536
  swLat = _value$split$map2[2],
@@ -7628,16 +7763,16 @@
7628
7763
  return attribute;
7629
7764
  }
7630
7765
 
7631
- function _typeof$4(obj) {
7766
+ function _typeof$5(obj) {
7632
7767
  "@babel/helpers - typeof";
7633
7768
 
7634
- return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7769
+ return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7635
7770
  return typeof obj;
7636
7771
  } : function (obj) {
7637
7772
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7638
- }, _typeof$4(obj);
7773
+ }, _typeof$5(obj);
7639
7774
  }
7640
- function ownKeys$3(object, enumerableOnly) {
7775
+ function ownKeys$4(object, enumerableOnly) {
7641
7776
  var keys = Object.keys(object);
7642
7777
  if (Object.getOwnPropertySymbols) {
7643
7778
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7650,16 +7785,16 @@
7650
7785
  function _objectSpread$3(target) {
7651
7786
  for (var i = 1; i < arguments.length; i++) {
7652
7787
  var source = null != arguments[i] ? arguments[i] : {};
7653
- i % 2 ? ownKeys$3(Object(source), !0).forEach(function (key) {
7654
- _defineProperty$3(target, key, source[key]);
7655
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$3(Object(source)).forEach(function (key) {
7788
+ i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) {
7789
+ _defineProperty$4(target, key, source[key]);
7790
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) {
7656
7791
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7657
7792
  });
7658
7793
  }
7659
7794
  return target;
7660
7795
  }
7661
- function _defineProperty$3(obj, key, value) {
7662
- key = _toPropertyKey$3(key);
7796
+ function _defineProperty$4(obj, key, value) {
7797
+ key = _toPropertyKey$4(key);
7663
7798
  if (key in obj) {
7664
7799
  Object.defineProperty(obj, key, {
7665
7800
  value: value,
@@ -7672,16 +7807,16 @@
7672
7807
  }
7673
7808
  return obj;
7674
7809
  }
7675
- function _toPropertyKey$3(arg) {
7676
- var key = _toPrimitive$3(arg, "string");
7677
- return _typeof$4(key) === "symbol" ? key : String(key);
7810
+ function _toPropertyKey$4(arg) {
7811
+ var key = _toPrimitive$4(arg, "string");
7812
+ return _typeof$5(key) === "symbol" ? key : String(key);
7678
7813
  }
7679
- function _toPrimitive$3(input, hint) {
7680
- if (_typeof$4(input) !== "object" || input === null) return input;
7814
+ function _toPrimitive$4(input, hint) {
7815
+ if (_typeof$5(input) !== "object" || input === null) return input;
7681
7816
  var prim = input[Symbol.toPrimitive];
7682
7817
  if (prim !== undefined) {
7683
7818
  var res = prim.call(input, hint || "default");
7684
- if (_typeof$4(res) !== "object") return res;
7819
+ if (_typeof$5(res) !== "object") return res;
7685
7820
  throw new TypeError("@@toPrimitive must return a primitive value.");
7686
7821
  }
7687
7822
  return (hint === "string" ? String : Number)(input);
@@ -7694,16 +7829,16 @@
7694
7829
  });
7695
7830
  }
7696
7831
 
7697
- function _typeof$5(obj) {
7832
+ function _typeof$6(obj) {
7698
7833
  "@babel/helpers - typeof";
7699
7834
 
7700
- return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7835
+ return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7701
7836
  return typeof obj;
7702
7837
  } : function (obj) {
7703
7838
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7704
- }, _typeof$5(obj);
7839
+ }, _typeof$6(obj);
7705
7840
  }
7706
- function ownKeys$4(object, enumerableOnly) {
7841
+ function ownKeys$5(object, enumerableOnly) {
7707
7842
  var keys = Object.keys(object);
7708
7843
  if (Object.getOwnPropertySymbols) {
7709
7844
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7716,16 +7851,16 @@
7716
7851
  function _objectSpread$4(target) {
7717
7852
  for (var i = 1; i < arguments.length; i++) {
7718
7853
  var source = null != arguments[i] ? arguments[i] : {};
7719
- i % 2 ? ownKeys$4(Object(source), !0).forEach(function (key) {
7720
- _defineProperty$4(target, key, source[key]);
7721
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$4(Object(source)).forEach(function (key) {
7854
+ i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
7855
+ _defineProperty$5(target, key, source[key]);
7856
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {
7722
7857
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7723
7858
  });
7724
7859
  }
7725
7860
  return target;
7726
7861
  }
7727
- function _defineProperty$4(obj, key, value) {
7728
- key = _toPropertyKey$4(key);
7862
+ function _defineProperty$5(obj, key, value) {
7863
+ key = _toPropertyKey$5(key);
7729
7864
  if (key in obj) {
7730
7865
  Object.defineProperty(obj, key, {
7731
7866
  value: value,
@@ -7738,16 +7873,16 @@
7738
7873
  }
7739
7874
  return obj;
7740
7875
  }
7741
- function _toPropertyKey$4(arg) {
7742
- var key = _toPrimitive$4(arg, "string");
7743
- return _typeof$5(key) === "symbol" ? key : String(key);
7876
+ function _toPropertyKey$5(arg) {
7877
+ var key = _toPrimitive$5(arg, "string");
7878
+ return _typeof$6(key) === "symbol" ? key : String(key);
7744
7879
  }
7745
- function _toPrimitive$4(input, hint) {
7746
- if (_typeof$5(input) !== "object" || input === null) return input;
7880
+ function _toPrimitive$5(input, hint) {
7881
+ if (_typeof$6(input) !== "object" || input === null) return input;
7747
7882
  var prim = input[Symbol.toPrimitive];
7748
7883
  if (prim !== undefined) {
7749
7884
  var res = prim.call(input, hint || "default");
7750
- if (_typeof$5(res) !== "object") return res;
7885
+ if (_typeof$6(res) !== "object") return res;
7751
7886
  throw new TypeError("@@toPrimitive must return a primitive value.");
7752
7887
  }
7753
7888
  return (hint === "string" ? String : Number)(input);
@@ -7763,35 +7898,35 @@
7763
7898
  });
7764
7899
  }
7765
7900
 
7766
- function _typeof$6(obj) {
7901
+ function _typeof$7(obj) {
7767
7902
  "@babel/helpers - typeof";
7768
7903
 
7769
- return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7904
+ return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
7770
7905
  return typeof obj;
7771
7906
  } : function (obj) {
7772
7907
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
7773
- }, _typeof$6(obj);
7908
+ }, _typeof$7(obj);
7774
7909
  }
7775
- function _slicedToArray$3(arr, i) {
7776
- return _arrayWithHoles$3(arr) || _iterableToArrayLimit$3(arr, i) || _unsupportedIterableToArray$3(arr, i) || _nonIterableRest$3();
7910
+ function _slicedToArray$4(arr, i) {
7911
+ return _arrayWithHoles$4(arr) || _iterableToArrayLimit$4(arr, i) || _unsupportedIterableToArray$4(arr, i) || _nonIterableRest$4();
7777
7912
  }
7778
- function _nonIterableRest$3() {
7913
+ function _nonIterableRest$4() {
7779
7914
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7780
7915
  }
7781
- function _unsupportedIterableToArray$3(o, minLen) {
7916
+ function _unsupportedIterableToArray$4(o, minLen) {
7782
7917
  if (!o) return;
7783
- if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
7918
+ if (typeof o === "string") return _arrayLikeToArray$4(o, minLen);
7784
7919
  var n = Object.prototype.toString.call(o).slice(8, -1);
7785
7920
  if (n === "Object" && o.constructor) n = o.constructor.name;
7786
7921
  if (n === "Map" || n === "Set") return Array.from(o);
7787
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
7922
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);
7788
7923
  }
7789
- function _arrayLikeToArray$3(arr, len) {
7924
+ function _arrayLikeToArray$4(arr, len) {
7790
7925
  if (len == null || len > arr.length) len = arr.length;
7791
7926
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
7792
7927
  return arr2;
7793
7928
  }
7794
- function _iterableToArrayLimit$3(arr, i) {
7929
+ function _iterableToArrayLimit$4(arr, i) {
7795
7930
  var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
7796
7931
  if (null != _i) {
7797
7932
  var _s,
@@ -7818,10 +7953,10 @@
7818
7953
  return _arr;
7819
7954
  }
7820
7955
  }
7821
- function _arrayWithHoles$3(arr) {
7956
+ function _arrayWithHoles$4(arr) {
7822
7957
  if (Array.isArray(arr)) return arr;
7823
7958
  }
7824
- function ownKeys$5(object, enumerableOnly) {
7959
+ function ownKeys$6(object, enumerableOnly) {
7825
7960
  var keys = Object.keys(object);
7826
7961
  if (Object.getOwnPropertySymbols) {
7827
7962
  var symbols = Object.getOwnPropertySymbols(object);
@@ -7834,16 +7969,16 @@
7834
7969
  function _objectSpread$5(target) {
7835
7970
  for (var i = 1; i < arguments.length; i++) {
7836
7971
  var source = null != arguments[i] ? arguments[i] : {};
7837
- i % 2 ? ownKeys$5(Object(source), !0).forEach(function (key) {
7838
- _defineProperty$5(target, key, source[key]);
7839
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$5(Object(source)).forEach(function (key) {
7972
+ i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
7973
+ _defineProperty$6(target, key, source[key]);
7974
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {
7840
7975
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
7841
7976
  });
7842
7977
  }
7843
7978
  return target;
7844
7979
  }
7845
- function _defineProperty$5(obj, key, value) {
7846
- key = _toPropertyKey$5(key);
7980
+ function _defineProperty$6(obj, key, value) {
7981
+ key = _toPropertyKey$6(key);
7847
7982
  if (key in obj) {
7848
7983
  Object.defineProperty(obj, key, {
7849
7984
  value: value,
@@ -7856,16 +7991,16 @@
7856
7991
  }
7857
7992
  return obj;
7858
7993
  }
7859
- function _toPropertyKey$5(arg) {
7860
- var key = _toPrimitive$5(arg, "string");
7861
- return _typeof$6(key) === "symbol" ? key : String(key);
7994
+ function _toPropertyKey$6(arg) {
7995
+ var key = _toPrimitive$6(arg, "string");
7996
+ return _typeof$7(key) === "symbol" ? key : String(key);
7862
7997
  }
7863
- function _toPrimitive$5(input, hint) {
7864
- if (_typeof$6(input) !== "object" || input === null) return input;
7998
+ function _toPrimitive$6(input, hint) {
7999
+ if (_typeof$7(input) !== "object" || input === null) return input;
7865
8000
  var prim = input[Symbol.toPrimitive];
7866
8001
  if (prim !== undefined) {
7867
8002
  var res = prim.call(input, hint || "default");
7868
- if (_typeof$6(res) !== "object") return res;
8003
+ if (_typeof$7(res) !== "object") return res;
7869
8004
  throw new TypeError("@@toPrimitive must return a primitive value.");
7870
8005
  }
7871
8006
  return (hint === "string" ? String : Number)(input);
@@ -7944,7 +8079,7 @@
7944
8079
  var cacheKey = "/1/indexes/*/queries_body_".concat(JSON.stringify({
7945
8080
  requests: cachedRequest
7946
8081
  }));
7947
- client.cache = _objectSpread$5(_objectSpread$5({}, client.cache), {}, _defineProperty$5({}, cacheKey, JSON.stringify({
8082
+ client.cache = _objectSpread$5(_objectSpread$5({}, client.cache), {}, _defineProperty$6({}, cacheKey, JSON.stringify({
7948
8083
  results: Object.keys(results).map(function (key) {
7949
8084
  return results[key].results;
7950
8085
  })
@@ -7954,7 +8089,7 @@
7954
8089
  function deserializeQueryParameters(parameters) {
7955
8090
  return parameters.split('&').reduce(function (acc, parameter) {
7956
8091
  var _parameter$split = parameter.split('='),
7957
- _parameter$split2 = _slicedToArray$3(_parameter$split, 2),
8092
+ _parameter$split2 = _slicedToArray$4(_parameter$split, 2),
7958
8093
  key = _parameter$split2[0],
7959
8094
  value = _parameter$split2[1];
7960
8095
  acc[key] = value ? decodeURIComponent(value) : '';
@@ -8036,17 +8171,17 @@
8036
8171
  });
8037
8172
  }
8038
8173
 
8039
- function _typeof$7(obj) {
8174
+ function _typeof$8(obj) {
8040
8175
  "@babel/helpers - typeof";
8041
8176
 
8042
- return _typeof$7 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8177
+ return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8043
8178
  return typeof obj;
8044
8179
  } : function (obj) {
8045
8180
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8046
- }, _typeof$7(obj);
8181
+ }, _typeof$8(obj);
8047
8182
  }
8048
8183
  var _excluded = ["facets", "disjunctiveFacets", "facetsRefinements", "facetsExcludes", "disjunctiveFacetsRefinements", "numericRefinements", "tagRefinements", "hierarchicalFacets", "hierarchicalFacetsRefinements", "ruleContexts"];
8049
- function ownKeys$6(object, enumerableOnly) {
8184
+ function ownKeys$7(object, enumerableOnly) {
8050
8185
  var keys = Object.keys(object);
8051
8186
  if (Object.getOwnPropertySymbols) {
8052
8187
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8059,16 +8194,16 @@
8059
8194
  function _objectSpread$6(target) {
8060
8195
  for (var i = 1; i < arguments.length; i++) {
8061
8196
  var source = null != arguments[i] ? arguments[i] : {};
8062
- i % 2 ? ownKeys$6(Object(source), !0).forEach(function (key) {
8063
- _defineProperty$6(target, key, source[key]);
8064
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$6(Object(source)).forEach(function (key) {
8197
+ i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {
8198
+ _defineProperty$7(target, key, source[key]);
8199
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {
8065
8200
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8066
8201
  });
8067
8202
  }
8068
8203
  return target;
8069
8204
  }
8070
- function _defineProperty$6(obj, key, value) {
8071
- key = _toPropertyKey$6(key);
8205
+ function _defineProperty$7(obj, key, value) {
8206
+ key = _toPropertyKey$7(key);
8072
8207
  if (key in obj) {
8073
8208
  Object.defineProperty(obj, key, {
8074
8209
  value: value,
@@ -8081,23 +8216,23 @@
8081
8216
  }
8082
8217
  return obj;
8083
8218
  }
8084
- function _toPropertyKey$6(arg) {
8085
- var key = _toPrimitive$6(arg, "string");
8086
- return _typeof$7(key) === "symbol" ? key : String(key);
8219
+ function _toPropertyKey$7(arg) {
8220
+ var key = _toPrimitive$7(arg, "string");
8221
+ return _typeof$8(key) === "symbol" ? key : String(key);
8087
8222
  }
8088
- function _toPrimitive$6(input, hint) {
8089
- if (_typeof$7(input) !== "object" || input === null) return input;
8223
+ function _toPrimitive$7(input, hint) {
8224
+ if (_typeof$8(input) !== "object" || input === null) return input;
8090
8225
  var prim = input[Symbol.toPrimitive];
8091
8226
  if (prim !== undefined) {
8092
8227
  var res = prim.call(input, hint || "default");
8093
- if (_typeof$7(res) !== "object") return res;
8228
+ if (_typeof$8(res) !== "object") return res;
8094
8229
  throw new TypeError("@@toPrimitive must return a primitive value.");
8095
8230
  }
8096
8231
  return (hint === "string" ? String : Number)(input);
8097
8232
  }
8098
- function _objectWithoutProperties(source, excluded) {
8233
+ function _objectWithoutProperties$1(source, excluded) {
8099
8234
  if (source == null) return {};
8100
- var target = _objectWithoutPropertiesLoose$1(source, excluded);
8235
+ var target = _objectWithoutPropertiesLoose$2(source, excluded);
8101
8236
  var key, i;
8102
8237
  if (Object.getOwnPropertySymbols) {
8103
8238
  var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
@@ -8110,7 +8245,7 @@
8110
8245
  }
8111
8246
  return target;
8112
8247
  }
8113
- function _objectWithoutPropertiesLoose$1(source, excluded) {
8248
+ function _objectWithoutPropertiesLoose$2(source, excluded) {
8114
8249
  if (source == null) return {};
8115
8250
  var target = {};
8116
8251
  var sourceKeys = Object.keys(source);
@@ -8133,7 +8268,7 @@
8133
8268
  hierarchicalFacets = right.hierarchicalFacets,
8134
8269
  hierarchicalFacetsRefinements = right.hierarchicalFacetsRefinements,
8135
8270
  ruleContexts = right.ruleContexts,
8136
- rest = _objectWithoutProperties(right, _excluded);
8271
+ rest = _objectWithoutProperties$1(right, _excluded);
8137
8272
  return left.setQueryParameters(rest);
8138
8273
  };
8139
8274
 
@@ -8224,26 +8359,26 @@
8224
8359
  };
8225
8360
 
8226
8361
  function _toConsumableArray(arr) {
8227
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$4(arr) || _nonIterableSpread();
8362
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray$5(arr) || _nonIterableSpread();
8228
8363
  }
8229
8364
  function _nonIterableSpread() {
8230
8365
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8231
8366
  }
8232
- function _unsupportedIterableToArray$4(o, minLen) {
8367
+ function _unsupportedIterableToArray$5(o, minLen) {
8233
8368
  if (!o) return;
8234
- if (typeof o === "string") return _arrayLikeToArray$4(o, minLen);
8369
+ if (typeof o === "string") return _arrayLikeToArray$5(o, minLen);
8235
8370
  var n = Object.prototype.toString.call(o).slice(8, -1);
8236
8371
  if (n === "Object" && o.constructor) n = o.constructor.name;
8237
8372
  if (n === "Map" || n === "Set") return Array.from(o);
8238
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$4(o, minLen);
8373
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen);
8239
8374
  }
8240
8375
  function _iterableToArray(iter) {
8241
8376
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
8242
8377
  }
8243
8378
  function _arrayWithoutHoles(arr) {
8244
- if (Array.isArray(arr)) return _arrayLikeToArray$4(arr);
8379
+ if (Array.isArray(arr)) return _arrayLikeToArray$5(arr);
8245
8380
  }
8246
- function _arrayLikeToArray$4(arr, len) {
8381
+ function _arrayLikeToArray$5(arr, len) {
8247
8382
  if (len == null || len > arr.length) len = arr.length;
8248
8383
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
8249
8384
  return arr2;
@@ -8318,16 +8453,16 @@
8318
8453
  return states;
8319
8454
  }
8320
8455
 
8321
- function _typeof$8(obj) {
8456
+ function _typeof$9(obj) {
8322
8457
  "@babel/helpers - typeof";
8323
8458
 
8324
- return _typeof$8 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8459
+ return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8325
8460
  return typeof obj;
8326
8461
  } : function (obj) {
8327
8462
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8328
- }, _typeof$8(obj);
8463
+ }, _typeof$9(obj);
8329
8464
  }
8330
- function ownKeys$7(object, enumerableOnly) {
8465
+ function ownKeys$8(object, enumerableOnly) {
8331
8466
  var keys = Object.keys(object);
8332
8467
  if (Object.getOwnPropertySymbols) {
8333
8468
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8340,16 +8475,16 @@
8340
8475
  function _objectSpread$7(target) {
8341
8476
  for (var i = 1; i < arguments.length; i++) {
8342
8477
  var source = null != arguments[i] ? arguments[i] : {};
8343
- i % 2 ? ownKeys$7(Object(source), !0).forEach(function (key) {
8344
- _defineProperty$7(target, key, source[key]);
8345
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$7(Object(source)).forEach(function (key) {
8478
+ i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) {
8479
+ _defineProperty$8(target, key, source[key]);
8480
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) {
8346
8481
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8347
8482
  });
8348
8483
  }
8349
8484
  return target;
8350
8485
  }
8351
- function _defineProperty$7(obj, key, value) {
8352
- key = _toPropertyKey$7(key);
8486
+ function _defineProperty$8(obj, key, value) {
8487
+ key = _toPropertyKey$8(key);
8353
8488
  if (key in obj) {
8354
8489
  Object.defineProperty(obj, key, {
8355
8490
  value: value,
@@ -8362,16 +8497,16 @@
8362
8497
  }
8363
8498
  return obj;
8364
8499
  }
8365
- function _toPropertyKey$7(arg) {
8366
- var key = _toPrimitive$7(arg, "string");
8367
- return _typeof$8(key) === "symbol" ? key : String(key);
8500
+ function _toPropertyKey$8(arg) {
8501
+ var key = _toPrimitive$8(arg, "string");
8502
+ return _typeof$9(key) === "symbol" ? key : String(key);
8368
8503
  }
8369
- function _toPrimitive$7(input, hint) {
8370
- if (_typeof$8(input) !== "object" || input === null) return input;
8504
+ function _toPrimitive$8(input, hint) {
8505
+ if (_typeof$9(input) !== "object" || input === null) return input;
8371
8506
  var prim = input[Symbol.toPrimitive];
8372
8507
  if (prim !== undefined) {
8373
8508
  var res = prim.call(input, hint || "default");
8374
- if (_typeof$8(res) !== "object") return res;
8509
+ if (_typeof$9(res) !== "object") return res;
8375
8510
  throw new TypeError("@@toPrimitive must return a primitive value.");
8376
8511
  }
8377
8512
  return (hint === "string" ? String : Number)(input);
@@ -8420,16 +8555,16 @@
8420
8555
  return Array.isArray(value) ? value : [value];
8421
8556
  }
8422
8557
 
8423
- function _typeof$9(obj) {
8558
+ function _typeof$a(obj) {
8424
8559
  "@babel/helpers - typeof";
8425
8560
 
8426
- return _typeof$9 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8561
+ return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8427
8562
  return typeof obj;
8428
8563
  } : function (obj) {
8429
8564
  return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8430
- }, _typeof$9(obj);
8565
+ }, _typeof$a(obj);
8431
8566
  }
8432
- function ownKeys$8(object, enumerableOnly) {
8567
+ function ownKeys$9(object, enumerableOnly) {
8433
8568
  var keys = Object.keys(object);
8434
8569
  if (Object.getOwnPropertySymbols) {
8435
8570
  var symbols = Object.getOwnPropertySymbols(object);
@@ -8442,16 +8577,16 @@
8442
8577
  function _objectSpread$8(target) {
8443
8578
  for (var i = 1; i < arguments.length; i++) {
8444
8579
  var source = null != arguments[i] ? arguments[i] : {};
8445
- i % 2 ? ownKeys$8(Object(source), !0).forEach(function (key) {
8446
- _defineProperty$8(target, key, source[key]);
8447
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$8(Object(source)).forEach(function (key) {
8580
+ i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) {
8581
+ _defineProperty$9(target, key, source[key]);
8582
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) {
8448
8583
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8449
8584
  });
8450
8585
  }
8451
8586
  return target;
8452
8587
  }
8453
- function _defineProperty$8(obj, key, value) {
8454
- key = _toPropertyKey$8(key);
8588
+ function _defineProperty$9(obj, key, value) {
8589
+ key = _toPropertyKey$9(key);
8455
8590
  if (key in obj) {
8456
8591
  Object.defineProperty(obj, key, {
8457
8592
  value: value,
@@ -8464,16 +8599,16 @@
8464
8599
  }
8465
8600
  return obj;
8466
8601
  }
8467
- function _toPropertyKey$8(arg) {
8468
- var key = _toPrimitive$8(arg, "string");
8469
- return _typeof$9(key) === "symbol" ? key : String(key);
8602
+ function _toPropertyKey$9(arg) {
8603
+ var key = _toPrimitive$9(arg, "string");
8604
+ return _typeof$a(key) === "symbol" ? key : String(key);
8470
8605
  }
8471
- function _toPrimitive$8(input, hint) {
8472
- if (_typeof$9(input) !== "object" || input === null) return input;
8606
+ function _toPrimitive$9(input, hint) {
8607
+ if (_typeof$a(input) !== "object" || input === null) return input;
8473
8608
  var prim = input[Symbol.toPrimitive];
8474
8609
  if (prim !== undefined) {
8475
8610
  var res = prim.call(input, hint || "default");
8476
- if (_typeof$9(res) !== "object") return res;
8611
+ if (_typeof$a(res) !== "object") return res;
8477
8612
  throw new TypeError("@@toPrimitive must return a primitive value.");
8478
8613
  }
8479
8614
  return (hint === "string" ? String : Number)(input);
@@ -8492,7 +8627,7 @@
8492
8627
  // the state. The function `setQueryParameters` omits the values that
8493
8628
  // are `undefined` on the next state.
8494
8629
  return state.setQueryParameters(Object.keys(widgetParams.searchParameters).reduce(function (acc, key) {
8495
- return _objectSpread$8(_objectSpread$8({}, acc), {}, _defineProperty$8({}, key, undefined));
8630
+ return _objectSpread$8(_objectSpread$8({}, acc), {}, _defineProperty$9({}, key, undefined));
8496
8631
  }, {}));
8497
8632
  }
8498
8633
  var connectConfigure = function connectConfigure() {
@@ -8569,141 +8704,6 @@
8569
8704
  };
8570
8705
  };
8571
8706
 
8572
- function _iterableToArrayLimit$4(arr, i) {
8573
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
8574
- if (null != _i) {
8575
- var _s,
8576
- _e,
8577
- _x,
8578
- _r,
8579
- _arr = [],
8580
- _n = !0,
8581
- _d = !1;
8582
- try {
8583
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
8584
- if (Object(_i) !== _i) return;
8585
- _n = !1;
8586
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
8587
- } catch (err) {
8588
- _d = !0, _e = err;
8589
- } finally {
8590
- try {
8591
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
8592
- } finally {
8593
- if (_d) throw _e;
8594
- }
8595
- }
8596
- return _arr;
8597
- }
8598
- }
8599
- function ownKeys$9(object, enumerableOnly) {
8600
- var keys = Object.keys(object);
8601
- if (Object.getOwnPropertySymbols) {
8602
- var symbols = Object.getOwnPropertySymbols(object);
8603
- enumerableOnly && (symbols = symbols.filter(function (sym) {
8604
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
8605
- })), keys.push.apply(keys, symbols);
8606
- }
8607
- return keys;
8608
- }
8609
- function _objectSpread2(target) {
8610
- for (var i = 1; i < arguments.length; i++) {
8611
- var source = null != arguments[i] ? arguments[i] : {};
8612
- i % 2 ? ownKeys$9(Object(source), !0).forEach(function (key) {
8613
- _defineProperty$9(target, key, source[key]);
8614
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$9(Object(source)).forEach(function (key) {
8615
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
8616
- });
8617
- }
8618
- return target;
8619
- }
8620
- function _typeof$a(obj) {
8621
- "@babel/helpers - typeof";
8622
-
8623
- return _typeof$a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
8624
- return typeof obj;
8625
- } : function (obj) {
8626
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
8627
- }, _typeof$a(obj);
8628
- }
8629
- function _defineProperty$9(obj, key, value) {
8630
- key = _toPropertyKey$9(key);
8631
- if (key in obj) {
8632
- Object.defineProperty(obj, key, {
8633
- value: value,
8634
- enumerable: true,
8635
- configurable: true,
8636
- writable: true
8637
- });
8638
- } else {
8639
- obj[key] = value;
8640
- }
8641
- return obj;
8642
- }
8643
- function _objectWithoutPropertiesLoose$2(source, excluded) {
8644
- if (source == null) return {};
8645
- var target = {};
8646
- var sourceKeys = Object.keys(source);
8647
- var key, i;
8648
- for (i = 0; i < sourceKeys.length; i++) {
8649
- key = sourceKeys[i];
8650
- if (excluded.indexOf(key) >= 0) continue;
8651
- target[key] = source[key];
8652
- }
8653
- return target;
8654
- }
8655
- function _objectWithoutProperties$1(source, excluded) {
8656
- if (source == null) return {};
8657
- var target = _objectWithoutPropertiesLoose$2(source, excluded);
8658
- var key, i;
8659
- if (Object.getOwnPropertySymbols) {
8660
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
8661
- for (i = 0; i < sourceSymbolKeys.length; i++) {
8662
- key = sourceSymbolKeys[i];
8663
- if (excluded.indexOf(key) >= 0) continue;
8664
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
8665
- target[key] = source[key];
8666
- }
8667
- }
8668
- return target;
8669
- }
8670
- function _slicedToArray$4(arr, i) {
8671
- return _arrayWithHoles$4(arr) || _iterableToArrayLimit$4(arr, i) || _unsupportedIterableToArray$5(arr, i) || _nonIterableRest$4();
8672
- }
8673
- function _arrayWithHoles$4(arr) {
8674
- if (Array.isArray(arr)) return arr;
8675
- }
8676
- function _unsupportedIterableToArray$5(o, minLen) {
8677
- if (!o) return;
8678
- if (typeof o === "string") return _arrayLikeToArray$5(o, minLen);
8679
- var n = Object.prototype.toString.call(o).slice(8, -1);
8680
- if (n === "Object" && o.constructor) n = o.constructor.name;
8681
- if (n === "Map" || n === "Set") return Array.from(o);
8682
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen);
8683
- }
8684
- function _arrayLikeToArray$5(arr, len) {
8685
- if (len == null || len > arr.length) len = arr.length;
8686
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
8687
- return arr2;
8688
- }
8689
- function _nonIterableRest$4() {
8690
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8691
- }
8692
- function _toPrimitive$9(input, hint) {
8693
- if (typeof input !== "object" || input === null) return input;
8694
- var prim = input[Symbol.toPrimitive];
8695
- if (prim !== undefined) {
8696
- var res = prim.call(input, hint || "default");
8697
- if (typeof res !== "object") return res;
8698
- throw new TypeError("@@toPrimitive must return a primitive value.");
8699
- }
8700
- return (hint === "string" ? String : Number)(input);
8701
- }
8702
- function _toPropertyKey$9(arg) {
8703
- var key = _toPrimitive$9(arg, "string");
8704
- return typeof key === "symbol" ? key : String(key);
8705
- }
8706
-
8707
8707
  /* eslint-disable complexity */
8708
8708
 
8709
8709
  /*
@@ -8736,7 +8736,7 @@
8736
8736
  }
8737
8737
  return len === -1;
8738
8738
  }
8739
- if (!ctor || _typeof$a(foo) === 'object') {
8739
+ if (!ctor || _typeof(foo) === 'object') {
8740
8740
  len = 0;
8741
8741
  // eslint-disable-next-line guard-for-in, no-restricted-syntax
8742
8742
  for (ctor in foo) {
@@ -8834,7 +8834,7 @@
8834
8834
  var _useState = React.useState(function () {
8835
8835
  return value;
8836
8836
  }),
8837
- _useState2 = _slicedToArray$4(_useState, 2),
8837
+ _useState2 = _slicedToArray(_useState, 2),
8838
8838
  stableValue = _useState2[0],
8839
8839
  setStableValue = _useState2[1];
8840
8840
  if (!dequal(stableValue, value)) {
@@ -8980,7 +8980,7 @@
8980
8980
  if (shouldSetStateRef.current) {
8981
8981
  var instantSearchInstance = connectorState.instantSearchInstance,
8982
8982
  widgetParams = connectorState.widgetParams,
8983
- renderState = _objectWithoutProperties$1(connectorState, _excluded$1);
8983
+ renderState = _objectWithoutProperties(connectorState, _excluded$1);
8984
8984
 
8985
8985
  // We only update the state when a widget render state param changes,
8986
8986
  // except for functions. We ignore function reference changes to avoid
@@ -9035,12 +9035,12 @@
9035
9035
  error: search.error
9036
9036
  }),
9037
9037
  widgetParams = _widget$getWidgetRend.widgetParams,
9038
- renderState = _objectWithoutProperties$1(_widget$getWidgetRend, _excluded2);
9038
+ renderState = _objectWithoutProperties(_widget$getWidgetRend, _excluded2);
9039
9039
  return renderState;
9040
9040
  }
9041
9041
  return {};
9042
9042
  }),
9043
- _useState2 = _slicedToArray$4(_useState, 2),
9043
+ _useState2 = _slicedToArray(_useState, 2),
9044
9044
  state = _useState2[0],
9045
9045
  setState = _useState2[1];
9046
9046
  useWidget({
@@ -9059,7 +9059,7 @@
9059
9059
  }
9060
9060
 
9061
9061
  function Configure(props) {
9062
- useConfigure(props, {
9062
+ useConfigure(_objectSpread2({}, props), {
9063
9063
  $$widgetType: 'ais.configure'
9064
9064
  });
9065
9065
  return null;
@@ -9277,7 +9277,7 @@
9277
9277
  var children = _ref.children,
9278
9278
  _ref$fallbackComponen = _ref.fallbackComponent,
9279
9279
  Fallback = _ref$fallbackComponen === void 0 ? DefaultFallbackComponent : _ref$fallbackComponen,
9280
- props = _objectWithoutProperties$1(_ref, _excluded$2);
9280
+ props = _objectWithoutProperties(_ref, _excluded$2);
9281
9281
  var FallbackComponent = React__default.useRef(Fallback);
9282
9282
  var _useDynamicWidgets = useDynamicWidgets(props, {
9283
9283
  $$widgetType: 'ais.dynamicWidgets'
@@ -9298,7 +9298,7 @@
9298
9298
  }));
9299
9299
  }
9300
9300
  function isReactElement(element) {
9301
- return _typeof$a(element) === 'object' && element.props;
9301
+ return _typeof(element) === 'object' && element.props;
9302
9302
  }
9303
9303
  function getWidgetAttribute$1(element) {
9304
9304
  if (!isReactElement(element)) {
@@ -9970,7 +9970,7 @@
9970
9970
  var _useReducer = React.useReducer(function (x) {
9971
9971
  return x + 1;
9972
9972
  }, 0),
9973
- _useReducer2 = _slicedToArray$4(_useReducer, 2),
9973
+ _useReducer2 = _slicedToArray(_useReducer, 2),
9974
9974
  forceUpdate = _useReducer2[1];
9975
9975
  return forceUpdate;
9976
9976
  }
@@ -10007,7 +10007,7 @@
10007
10007
  var _excluded$4 = ["children"];
10008
10008
  function Index(_ref) {
10009
10009
  var children = _ref.children,
10010
- props = _objectWithoutProperties$1(_ref, _excluded$4);
10010
+ props = _objectWithoutProperties(_ref, _excluded$4);
10011
10011
  var index = useIndex(props);
10012
10012
  if (index.getHelper() === null) {
10013
10013
  return null;
@@ -13143,7 +13143,7 @@
13143
13143
  var _excluded$6 = ["children"];
13144
13144
  function InstantSearch$1(_ref) {
13145
13145
  var children = _ref.children,
13146
- props = _objectWithoutProperties$1(_ref, _excluded$6);
13146
+ props = _objectWithoutProperties(_ref, _excluded$6);
13147
13147
  var search = useInstantSearchApi(props);
13148
13148
  if (!search.started) {
13149
13149
  return null;
@@ -13162,7 +13162,7 @@
13162
13162
  */
13163
13163
  function InstantSearchSSRProvider(_ref) {
13164
13164
  var children = _ref.children,
13165
- props = _objectWithoutProperties$1(_ref, _excluded$7);
13165
+ props = _objectWithoutProperties(_ref, _excluded$7);
13166
13166
  // This is used in `useInstantSearchApi()` to avoid creating and starting multiple instances of
13167
13167
  // `InstantSearch` on mount.
13168
13168
  var ssrSearchRef = React__default.useRef(null);
@@ -18253,7 +18253,7 @@
18253
18253
  var _useState = React.useState(function () {
18254
18254
  return getIndexSearchResults(searchIndex);
18255
18255
  }),
18256
- _useState2 = _slicedToArray$4(_useState, 2),
18256
+ _useState2 = _slicedToArray(_useState, 2),
18257
18257
  searchResults = _useState2[0],
18258
18258
  setSearchResults = _useState2[1];
18259
18259
  React.useEffect(function () {
@@ -18293,14 +18293,14 @@
18293
18293
  var _useState = React.useState(function () {
18294
18294
  return search.getUiState();
18295
18295
  }),
18296
- _useState2 = _slicedToArray$4(_useState, 2),
18296
+ _useState2 = _slicedToArray(_useState, 2),
18297
18297
  uiState = _useState2[0],
18298
18298
  setLocalUiState = _useState2[1];
18299
18299
  var indexUiState = uiState[indexId];
18300
18300
  var _useState3 = React.useState(function () {
18301
18301
  return search.renderState;
18302
18302
  }),
18303
- _useState4 = _slicedToArray$4(_useState3, 2),
18303
+ _useState4 = _slicedToArray(_useState3, 2),
18304
18304
  renderState = _useState4[0],
18305
18305
  setRenderState = _useState4[1];
18306
18306
  var indexRenderState = renderState[indexId] || {};