@quintype/arrow 3.15.1-perf.3 → 3.15.1-perf.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (166) hide show
  1. package/atoms/Author/index.js +14 -2103
  2. package/atoms/Author/styles.arrow.css +1 -1
  3. package/atoms/AuthorWithTime/index.js +32 -2482
  4. package/atoms/AuthorWithTime/styles.arrow.css +1 -1
  5. package/atoms/CollectionName/index.js +12 -2101
  6. package/atoms/CollectionName/styles.arrow.css +1 -1
  7. package/atoms/ExtendedLoadMore/{index-b22f1843.js → index-0f809dd9.js} +10 -7
  8. package/atoms/ExtendedLoadMore/index-142f015c.js +476 -0
  9. package/atoms/ExtendedLoadMore/{index-bc129cb8.js → index-37a9ccff.js} +18 -10
  10. package/atoms/ExtendedLoadMore/{index-6e083738.js → index-446679c8.js} +20 -12
  11. package/atoms/ExtendedLoadMore/{index-9e0d32b7.js → index-44f97338.js} +19 -9
  12. package/atoms/ExtendedLoadMore/{index-b5936059.js → index-57dd4870.js} +15 -7
  13. package/atoms/ExtendedLoadMore/{index-fee73a14.js → index-66dd4dbd.js} +15 -7
  14. package/atoms/ExtendedLoadMore/{index-5c8eda4a.js → index-8462c597.js} +21 -16
  15. package/atoms/ExtendedLoadMore/{index-3c4ac692.js → index-93cb06d1.js} +42 -51
  16. package/atoms/ExtendedLoadMore/{index-4ddfe28d.js → index-afd44863.js} +6 -4
  17. package/atoms/ExtendedLoadMore/{index-3976fac4.js → index-b5754c5d.js} +20 -14
  18. package/atoms/ExtendedLoadMore/{index-a5c95f84.js → index-bbaf526e.js} +16 -8
  19. package/atoms/ExtendedLoadMore/{index-6ecceae4.js → index-cfb262ef.js} +18 -9
  20. package/atoms/ExtendedLoadMore/index.js +8 -1
  21. package/atoms/ExtendedLoadMore/styles.arrow.css +1 -1
  22. package/atoms/Headline/index.js +14 -2103
  23. package/atoms/Headline/styles.arrow.css +1 -1
  24. package/atoms/HeroImage/index.js +22 -2170
  25. package/atoms/HeroImage/styles.arrow.css +1 -1
  26. package/atoms/LoadmoreButton/index.js +12 -2114
  27. package/atoms/LoadmoreButton/styles.arrow.css +1 -1
  28. package/atoms/ScrollSnap/index.js +17 -2178
  29. package/atoms/ScrollSnap/styles.arrow.css +1 -1
  30. package/atoms/SectionTag/index.js +10 -2099
  31. package/atoms/SectionTag/styles.arrow.css +1 -1
  32. package/atoms/Subheadline/index.js +8 -2097
  33. package/atoms/Subheadline/styles.arrow.css +1 -1
  34. package/atoms/TimeStamp/index.js +13 -2463
  35. package/atoms/TimeStamp/styles.arrow.css +1 -1
  36. package/molecules/KeyEvents/index.js +23 -2545
  37. package/molecules/KeyEvents/styles.arrow.css +1 -1
  38. package/molecules/PageIntroductionCard/index.js +17 -2454
  39. package/molecules/PageIntroductionCard/styles.arrow.css +1 -1
  40. package/molecules/SocialShareTemplate/index.js +144 -2740
  41. package/molecules/SocialShareTemplate/styles.arrow.css +1 -1
  42. package/molecules/StoryCard/index.js +64 -2582
  43. package/molecules/StoryCard/styles.arrow.css +1 -1
  44. package/molecules/StoryElementCard/index.js +123 -2893
  45. package/molecules/StoryElementCard/styles.arrow.css +1 -1
  46. package/molecules/StorycardContent/index.js +45 -2495
  47. package/molecules/StorycardContent/styles.arrow.css +1 -1
  48. package/package.json +1 -1
  49. package/rows/AlternateCollectionFilter/index.js +92 -2659
  50. package/rows/AlternateCollectionFilter/styles.arrow.css +1 -1
  51. package/rows/AsideCollection/index.js +92 -2659
  52. package/rows/AsideCollection/styles.arrow.css +1 -1
  53. package/rows/AstrologyCollection/index.js +89 -2656
  54. package/rows/AstrologyCollection/styles.arrow.css +1 -1
  55. package/rows/AuthorIntroductionCard/index.js +27 -2743
  56. package/rows/AuthorIntroductionCard/styles.arrow.css +1 -1
  57. package/rows/AuthorsList/index.js +34 -2763
  58. package/rows/AuthorsList/styles.arrow.css +1 -1
  59. package/rows/CollectionFilter/index.js +91 -2658
  60. package/rows/CollectionFilter/styles.arrow.css +1 -1
  61. package/rows/ElevenStories/index.js +81 -2612
  62. package/rows/ElevenStories/styles.arrow.css +1 -1
  63. package/rows/FourColFiveStories/index.js +75 -2603
  64. package/rows/FourColFiveStories/styles.arrow.css +1 -1
  65. package/rows/FourColGrid/index.js +92 -2623
  66. package/rows/FourColGrid/styles.arrow.css +1 -1
  67. package/rows/FourColPortraitStories/index.js +91 -2622
  68. package/rows/FourColPortraitStories/styles.arrow.css +1 -1
  69. package/rows/FourColSixteenStories/index.js +80 -2617
  70. package/rows/FourColSixteenStories/styles.arrow.css +1 -1
  71. package/rows/FourColTwelveStories/index.js +72 -2596
  72. package/rows/FourColTwelveStories/styles.arrow.css +1 -1
  73. package/rows/FourStorySlider/index.js +84 -2615
  74. package/rows/FourStorySlider/styles.arrow.css +1 -1
  75. package/rows/FourStorySliderPortrait/index.js +84 -2615
  76. package/rows/FourStorySliderPortrait/styles.arrow.css +1 -1
  77. package/rows/FourTabbedBigStorySlider/index.js +80 -2611
  78. package/rows/FourTabbedBigStorySlider/styles.arrow.css +1 -1
  79. package/rows/FullScreenSlider/index.js +85 -2616
  80. package/rows/FullScreenSlider/styles.arrow.css +1 -1
  81. package/rows/HalfScreenSlider/index.js +81 -2612
  82. package/rows/HalfScreenSlider/styles.arrow.css +1 -1
  83. package/rows/ListComponent/index.js +75 -2606
  84. package/rows/ListComponent/styles.arrow.css +1 -1
  85. package/rows/Listicles/index.js +38 -2235
  86. package/rows/Listicles/styles.arrow.css +1 -1
  87. package/rows/MagazineEditions/index.js +24 -2487
  88. package/rows/MagazineEditions/styles.arrow.css +1 -1
  89. package/rows/MagazineHeaderCard/index.js +26 -2489
  90. package/rows/MagazineHeaderCard/styles.arrow.css +1 -1
  91. package/rows/MagazineWidget/index.js +81 -2612
  92. package/rows/MagazineWidget/styles.arrow.css +1 -1
  93. package/rows/OneColStoryList/index.js +92 -2623
  94. package/rows/OneColStoryList/styles.arrow.css +1 -1
  95. package/rows/OpinionCollection/index.js +61 -2583
  96. package/rows/OpinionCollection/styles.arrow.css +1 -1
  97. package/rows/SixColSixStories/index.js +91 -2622
  98. package/rows/SixColSixStories/styles.arrow.css +1 -1
  99. package/rows/StoryCollection/index.js +92 -2659
  100. package/rows/StoryCollection/styles.arrow.css +1 -1
  101. package/rows/TagIntroductionCard/index.js +9 -1816
  102. package/rows/TagIntroductionCard/styles.arrow.css +1 -1
  103. package/rows/ThreeColFlexStories/index.js +91 -2622
  104. package/rows/ThreeColFlexStories/styles.arrow.css +1 -1
  105. package/rows/ThreeColFourteenStories/index.js +72 -2596
  106. package/rows/ThreeColFourteenStories/styles.arrow.css +1 -1
  107. package/rows/ThreeColGrid/index.js +94 -2625
  108. package/rows/ThreeColGrid/styles.arrow.css +1 -1
  109. package/rows/ThreeColSevenStory/index.js +84 -2615
  110. package/rows/ThreeColSevenStory/styles.arrow.css +1 -1
  111. package/rows/ThreeColSixStories/index.js +76 -2607
  112. package/rows/ThreeColSixStories/styles.arrow.css +1 -1
  113. package/rows/ThreeColTwelveStories/index.js +80 -2617
  114. package/rows/ThreeColTwelveStories/styles.arrow.css +1 -1
  115. package/rows/TwoColFourStories/index.js +78 -2609
  116. package/rows/TwoColFourStories/styles.arrow.css +1 -1
  117. package/rows/TwoColFourStoryHighlight/index.js +80 -2617
  118. package/rows/TwoColFourStoryHighlight/styles.arrow.css +1 -1
  119. package/rows/TwoColSevenStories/index.js +77 -2608
  120. package/rows/TwoColSevenStories/styles.arrow.css +1 -1
  121. package/rows/TwoColSixStories/index.js +82 -2619
  122. package/rows/TwoColSixStories/styles.arrow.css +1 -1
  123. package/rows/TwoColTenStoriesSidebar/index.js +79 -2610
  124. package/rows/TwoColTenStoriesSidebar/styles.arrow.css +1 -1
  125. package/rows/TwoColThreeStories/index.js +75 -2606
  126. package/rows/TwoColThreeStories/styles.arrow.css +1 -1
  127. package/story-elements/AlsoRead/index.js +24 -2170
  128. package/story-elements/AlsoRead/styles.arrow.css +1 -1
  129. package/story-elements/Attachment/index.js +15 -1870
  130. package/story-elements/Attachment/styles.arrow.css +1 -1
  131. package/story-elements/BigFact/index.js +16 -1871
  132. package/story-elements/BigFact/styles.arrow.css +1 -1
  133. package/story-elements/BlockQuote/index.js +20 -2157
  134. package/story-elements/BlockQuote/styles.arrow.css +1 -1
  135. package/story-elements/Blurb/index.js +18 -1932
  136. package/story-elements/Blurb/styles.arrow.css +1 -1
  137. package/story-elements/Image/index.js +42 -2251
  138. package/story-elements/Image/styles.arrow.css +1 -1
  139. package/story-elements/ImageGallery/index.js +45 -2254
  140. package/story-elements/ImageGallery/styles.arrow.css +1 -1
  141. package/story-elements/ImageSlideshow/index.js +48 -2257
  142. package/story-elements/ImageSlideshow/styles.arrow.css +1 -1
  143. package/story-elements/QuestionAnswer/index.js +26 -2163
  144. package/story-elements/QuestionAnswer/styles.arrow.css +1 -1
  145. package/story-elements/Quote/index.js +17 -1872
  146. package/story-elements/Quote/styles.arrow.css +1 -1
  147. package/story-elements/Reference/index.js +15 -1870
  148. package/story-elements/Reference/styles.arrow.css +1 -1
  149. package/story-elements/StoryElement/index.js +12 -1725
  150. package/story-elements/Summary/index.js +18 -1873
  151. package/story-elements/Summary/styles.arrow.css +1 -1
  152. package/story-elements/Text/index.js +16 -2153
  153. package/story-elements/Text/styles.arrow.css +1 -1
  154. package/story-elements/Video/index.js +12 -1725
  155. package/story-elements/Video/styles.arrow.css +1 -1
  156. package/story-templates/ListicleStoryTemplate/index.js +282 -3167
  157. package/story-templates/ListicleStoryTemplate/styles.arrow.css +1 -1
  158. package/story-templates/LiveBlogStoryTemplate/index.js +504 -3389
  159. package/story-templates/LiveBlogStoryTemplate/styles.arrow.css +1 -1
  160. package/story-templates/PhotoStoryTemplate/index.js +287 -3172
  161. package/story-templates/PhotoStoryTemplate/styles.arrow.css +1 -1
  162. package/story-templates/TextStoryTemplate/index.js +416 -3301
  163. package/story-templates/TextStoryTemplate/styles.arrow.css +1 -1
  164. package/story-templates/VideoStoryTemplate/index.js +382 -3267
  165. package/story-templates/VideoStoryTemplate/styles.arrow.css +1 -1
  166. package/atoms/ExtendedLoadMore/index-e7cde739.js +0 -3051
@@ -2,1418 +2,29 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
5
6
  var React = require('react');
6
7
  var reactRedux = require('react-redux');
8
+ var lodash = require('lodash');
7
9
  var components = require('@quintype/components');
10
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
8
11
  var PropTypes = require('prop-types');
12
+ require('@babel/runtime/helpers/asyncToGenerator');
13
+ var _typeof = require('@babel/runtime/helpers/typeof');
14
+ require('@babel/runtime/regenerator');
9
15
  var Timeago = require('react-timeago');
10
16
  var dateFnsTz = require('date-fns-tz');
17
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
11
18
 
12
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
20
 
21
+ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
14
22
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
23
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
15
24
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
25
+ var _typeof__default = /*#__PURE__*/_interopDefaultLegacy(_typeof);
16
26
  var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
17
-
18
- function _arrayWithHoles(arr) {
19
- if (Array.isArray(arr)) return arr;
20
- }
21
-
22
- function _iterableToArrayLimit(arr, i) {
23
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
24
-
25
- if (_i == null) return;
26
- var _arr = [];
27
- var _n = true;
28
- var _d = false;
29
-
30
- var _s, _e;
31
-
32
- try {
33
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
34
- _arr.push(_s.value);
35
-
36
- if (i && _arr.length === i) break;
37
- }
38
- } catch (err) {
39
- _d = true;
40
- _e = err;
41
- } finally {
42
- try {
43
- if (!_n && _i["return"] != null) _i["return"]();
44
- } finally {
45
- if (_d) throw _e;
46
- }
47
- }
48
-
49
- return _arr;
50
- }
51
-
52
- function _arrayLikeToArray(arr, len) {
53
- if (len == null || len > arr.length) len = arr.length;
54
-
55
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
56
- arr2[i] = arr[i];
57
- }
58
-
59
- return arr2;
60
- }
61
-
62
- function _unsupportedIterableToArray(o, minLen) {
63
- if (!o) return;
64
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
65
- var n = Object.prototype.toString.call(o).slice(8, -1);
66
- if (n === "Object" && o.constructor) n = o.constructor.name;
67
- if (n === "Map" || n === "Set") return Array.from(o);
68
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
69
- }
70
-
71
- function _nonIterableRest() {
72
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
73
- }
74
-
75
- function _slicedToArray(arr, i) {
76
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
77
- }
78
-
79
- /**
80
- * Checks if `value` is classified as an `Array` object.
81
- *
82
- * @static
83
- * @memberOf _
84
- * @since 0.1.0
85
- * @category Lang
86
- * @param {*} value The value to check.
87
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
88
- * @example
89
- *
90
- * _.isArray([1, 2, 3]);
91
- * // => true
92
- *
93
- * _.isArray(document.body.children);
94
- * // => false
95
- *
96
- * _.isArray('abc');
97
- * // => false
98
- *
99
- * _.isArray(_.noop);
100
- * // => false
101
- */
102
- var isArray = Array.isArray;
103
-
104
- var isArray_1 = isArray;
105
-
106
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
107
-
108
- function getDefaultExportFromCjs (x) {
109
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
110
- }
111
-
112
- function createCommonjsModule(fn) {
113
- var module = { exports: {} };
114
- return fn(module, module.exports), module.exports;
115
- }
116
-
117
- /** Detect free variable `global` from Node.js. */
118
-
119
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
120
-
121
- var _freeGlobal = freeGlobal;
122
-
123
- /** Detect free variable `self`. */
124
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
125
-
126
- /** Used as a reference to the global object. */
127
- var root = _freeGlobal || freeSelf || Function('return this')();
128
-
129
- var _root = root;
130
-
131
- /** Built-in value references. */
132
- var Symbol$1 = _root.Symbol;
133
-
134
- var _Symbol = Symbol$1;
135
-
136
- /** Used for built-in method references. */
137
- var objectProto$4 = Object.prototype;
138
-
139
- /** Used to check objects for own properties. */
140
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
141
-
142
- /**
143
- * Used to resolve the
144
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
145
- * of values.
146
- */
147
- var nativeObjectToString$1 = objectProto$4.toString;
148
-
149
- /** Built-in value references. */
150
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
151
-
152
- /**
153
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
154
- *
155
- * @private
156
- * @param {*} value The value to query.
157
- * @returns {string} Returns the raw `toStringTag`.
158
- */
159
- function getRawTag(value) {
160
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
161
- tag = value[symToStringTag$1];
162
-
163
- try {
164
- value[symToStringTag$1] = undefined;
165
- var unmasked = true;
166
- } catch (e) {}
167
-
168
- var result = nativeObjectToString$1.call(value);
169
- if (unmasked) {
170
- if (isOwn) {
171
- value[symToStringTag$1] = tag;
172
- } else {
173
- delete value[symToStringTag$1];
174
- }
175
- }
176
- return result;
177
- }
178
-
179
- var _getRawTag = getRawTag;
180
-
181
- /** Used for built-in method references. */
182
- var objectProto$3 = Object.prototype;
183
-
184
- /**
185
- * Used to resolve the
186
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
187
- * of values.
188
- */
189
- var nativeObjectToString = objectProto$3.toString;
190
-
191
- /**
192
- * Converts `value` to a string using `Object.prototype.toString`.
193
- *
194
- * @private
195
- * @param {*} value The value to convert.
196
- * @returns {string} Returns the converted string.
197
- */
198
- function objectToString(value) {
199
- return nativeObjectToString.call(value);
200
- }
201
-
202
- var _objectToString = objectToString;
203
-
204
- /** `Object#toString` result references. */
205
- var nullTag = '[object Null]',
206
- undefinedTag = '[object Undefined]';
207
-
208
- /** Built-in value references. */
209
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
210
-
211
- /**
212
- * The base implementation of `getTag` without fallbacks for buggy environments.
213
- *
214
- * @private
215
- * @param {*} value The value to query.
216
- * @returns {string} Returns the `toStringTag`.
217
- */
218
- function baseGetTag(value) {
219
- if (value == null) {
220
- return value === undefined ? undefinedTag : nullTag;
221
- }
222
- return (symToStringTag && symToStringTag in Object(value))
223
- ? _getRawTag(value)
224
- : _objectToString(value);
225
- }
226
-
227
- var _baseGetTag = baseGetTag;
228
-
229
- /**
230
- * Checks if `value` is object-like. A value is object-like if it's not `null`
231
- * and has a `typeof` result of "object".
232
- *
233
- * @static
234
- * @memberOf _
235
- * @since 4.0.0
236
- * @category Lang
237
- * @param {*} value The value to check.
238
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
239
- * @example
240
- *
241
- * _.isObjectLike({});
242
- * // => true
243
- *
244
- * _.isObjectLike([1, 2, 3]);
245
- * // => true
246
- *
247
- * _.isObjectLike(_.noop);
248
- * // => false
249
- *
250
- * _.isObjectLike(null);
251
- * // => false
252
- */
253
- function isObjectLike(value) {
254
- return value != null && typeof value == 'object';
255
- }
256
-
257
- var isObjectLike_1 = isObjectLike;
258
-
259
- /** `Object#toString` result references. */
260
- var symbolTag = '[object Symbol]';
261
-
262
- /**
263
- * Checks if `value` is classified as a `Symbol` primitive or object.
264
- *
265
- * @static
266
- * @memberOf _
267
- * @since 4.0.0
268
- * @category Lang
269
- * @param {*} value The value to check.
270
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
271
- * @example
272
- *
273
- * _.isSymbol(Symbol.iterator);
274
- * // => true
275
- *
276
- * _.isSymbol('abc');
277
- * // => false
278
- */
279
- function isSymbol(value) {
280
- return typeof value == 'symbol' ||
281
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
282
- }
283
-
284
- var isSymbol_1 = isSymbol;
285
-
286
- /** Used to match property names within property paths. */
287
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
288
- reIsPlainProp = /^\w*$/;
289
-
290
- /**
291
- * Checks if `value` is a property name and not a property path.
292
- *
293
- * @private
294
- * @param {*} value The value to check.
295
- * @param {Object} [object] The object to query keys on.
296
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
297
- */
298
- function isKey(value, object) {
299
- if (isArray_1(value)) {
300
- return false;
301
- }
302
- var type = typeof value;
303
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
304
- value == null || isSymbol_1(value)) {
305
- return true;
306
- }
307
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
308
- (object != null && value in Object(object));
309
- }
310
-
311
- var _isKey = isKey;
312
-
313
- /**
314
- * Checks if `value` is the
315
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
316
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
317
- *
318
- * @static
319
- * @memberOf _
320
- * @since 0.1.0
321
- * @category Lang
322
- * @param {*} value The value to check.
323
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
324
- * @example
325
- *
326
- * _.isObject({});
327
- * // => true
328
- *
329
- * _.isObject([1, 2, 3]);
330
- * // => true
331
- *
332
- * _.isObject(_.noop);
333
- * // => true
334
- *
335
- * _.isObject(null);
336
- * // => false
337
- */
338
- function isObject(value) {
339
- var type = typeof value;
340
- return value != null && (type == 'object' || type == 'function');
341
- }
342
-
343
- var isObject_1 = isObject;
344
-
345
- /** `Object#toString` result references. */
346
- var asyncTag = '[object AsyncFunction]',
347
- funcTag = '[object Function]',
348
- genTag = '[object GeneratorFunction]',
349
- proxyTag = '[object Proxy]';
350
-
351
- /**
352
- * Checks if `value` is classified as a `Function` object.
353
- *
354
- * @static
355
- * @memberOf _
356
- * @since 0.1.0
357
- * @category Lang
358
- * @param {*} value The value to check.
359
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
360
- * @example
361
- *
362
- * _.isFunction(_);
363
- * // => true
364
- *
365
- * _.isFunction(/abc/);
366
- * // => false
367
- */
368
- function isFunction(value) {
369
- if (!isObject_1(value)) {
370
- return false;
371
- }
372
- // The use of `Object#toString` avoids issues with the `typeof` operator
373
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
374
- var tag = _baseGetTag(value);
375
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
376
- }
377
-
378
- var isFunction_1 = isFunction;
379
-
380
- /** Used to detect overreaching core-js shims. */
381
- var coreJsData = _root['__core-js_shared__'];
382
-
383
- var _coreJsData = coreJsData;
384
-
385
- /** Used to detect methods masquerading as native. */
386
- var maskSrcKey = (function() {
387
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
388
- return uid ? ('Symbol(src)_1.' + uid) : '';
389
- }());
390
-
391
- /**
392
- * Checks if `func` has its source masked.
393
- *
394
- * @private
395
- * @param {Function} func The function to check.
396
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
397
- */
398
- function isMasked(func) {
399
- return !!maskSrcKey && (maskSrcKey in func);
400
- }
401
-
402
- var _isMasked = isMasked;
403
-
404
- /** Used for built-in method references. */
405
- var funcProto$1 = Function.prototype;
406
-
407
- /** Used to resolve the decompiled source of functions. */
408
- var funcToString$1 = funcProto$1.toString;
409
-
410
- /**
411
- * Converts `func` to its source code.
412
- *
413
- * @private
414
- * @param {Function} func The function to convert.
415
- * @returns {string} Returns the source code.
416
- */
417
- function toSource(func) {
418
- if (func != null) {
419
- try {
420
- return funcToString$1.call(func);
421
- } catch (e) {}
422
- try {
423
- return (func + '');
424
- } catch (e) {}
425
- }
426
- return '';
427
- }
428
-
429
- var _toSource = toSource;
430
-
431
- /**
432
- * Used to match `RegExp`
433
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
434
- */
435
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
436
-
437
- /** Used to detect host constructors (Safari). */
438
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
439
-
440
- /** Used for built-in method references. */
441
- var funcProto = Function.prototype,
442
- objectProto$2 = Object.prototype;
443
-
444
- /** Used to resolve the decompiled source of functions. */
445
- var funcToString = funcProto.toString;
446
-
447
- /** Used to check objects for own properties. */
448
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
449
-
450
- /** Used to detect if a method is native. */
451
- var reIsNative = RegExp('^' +
452
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
453
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
454
- );
455
-
456
- /**
457
- * The base implementation of `_.isNative` without bad shim checks.
458
- *
459
- * @private
460
- * @param {*} value The value to check.
461
- * @returns {boolean} Returns `true` if `value` is a native function,
462
- * else `false`.
463
- */
464
- function baseIsNative(value) {
465
- if (!isObject_1(value) || _isMasked(value)) {
466
- return false;
467
- }
468
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
469
- return pattern.test(_toSource(value));
470
- }
471
-
472
- var _baseIsNative = baseIsNative;
473
-
474
- /**
475
- * Gets the value at `key` of `object`.
476
- *
477
- * @private
478
- * @param {Object} [object] The object to query.
479
- * @param {string} key The key of the property to get.
480
- * @returns {*} Returns the property value.
481
- */
482
- function getValue(object, key) {
483
- return object == null ? undefined : object[key];
484
- }
485
-
486
- var _getValue = getValue;
487
-
488
- /**
489
- * Gets the native function at `key` of `object`.
490
- *
491
- * @private
492
- * @param {Object} object The object to query.
493
- * @param {string} key The key of the method to get.
494
- * @returns {*} Returns the function if it's native, else `undefined`.
495
- */
496
- function getNative(object, key) {
497
- var value = _getValue(object, key);
498
- return _baseIsNative(value) ? value : undefined;
499
- }
500
-
501
- var _getNative = getNative;
502
-
503
- /* Built-in method references that are verified to be native. */
504
- var nativeCreate = _getNative(Object, 'create');
505
-
506
- var _nativeCreate = nativeCreate;
507
-
508
- /**
509
- * Removes all key-value entries from the hash.
510
- *
511
- * @private
512
- * @name clear
513
- * @memberOf Hash
514
- */
515
- function hashClear() {
516
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
517
- this.size = 0;
518
- }
519
-
520
- var _hashClear = hashClear;
521
-
522
- /**
523
- * Removes `key` and its value from the hash.
524
- *
525
- * @private
526
- * @name delete
527
- * @memberOf Hash
528
- * @param {Object} hash The hash to modify.
529
- * @param {string} key The key of the value to remove.
530
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
531
- */
532
- function hashDelete(key) {
533
- var result = this.has(key) && delete this.__data__[key];
534
- this.size -= result ? 1 : 0;
535
- return result;
536
- }
537
-
538
- var _hashDelete = hashDelete;
539
-
540
- /** Used to stand-in for `undefined` hash values. */
541
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
542
-
543
- /** Used for built-in method references. */
544
- var objectProto$1 = Object.prototype;
545
-
546
- /** Used to check objects for own properties. */
547
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
548
-
549
- /**
550
- * Gets the hash value for `key`.
551
- *
552
- * @private
553
- * @name get
554
- * @memberOf Hash
555
- * @param {string} key The key of the value to get.
556
- * @returns {*} Returns the entry value.
557
- */
558
- function hashGet(key) {
559
- var data = this.__data__;
560
- if (_nativeCreate) {
561
- var result = data[key];
562
- return result === HASH_UNDEFINED$1 ? undefined : result;
563
- }
564
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
565
- }
566
-
567
- var _hashGet = hashGet;
568
-
569
- /** Used for built-in method references. */
570
- var objectProto = Object.prototype;
571
-
572
- /** Used to check objects for own properties. */
573
- var hasOwnProperty = objectProto.hasOwnProperty;
574
-
575
- /**
576
- * Checks if a hash value for `key` exists.
577
- *
578
- * @private
579
- * @name has
580
- * @memberOf Hash
581
- * @param {string} key The key of the entry to check.
582
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
583
- */
584
- function hashHas(key) {
585
- var data = this.__data__;
586
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
587
- }
588
-
589
- var _hashHas = hashHas;
590
-
591
- /** Used to stand-in for `undefined` hash values. */
592
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
593
-
594
- /**
595
- * Sets the hash `key` to `value`.
596
- *
597
- * @private
598
- * @name set
599
- * @memberOf Hash
600
- * @param {string} key The key of the value to set.
601
- * @param {*} value The value to set.
602
- * @returns {Object} Returns the hash instance.
603
- */
604
- function hashSet(key, value) {
605
- var data = this.__data__;
606
- this.size += this.has(key) ? 0 : 1;
607
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
608
- return this;
609
- }
610
-
611
- var _hashSet = hashSet;
612
-
613
- /**
614
- * Creates a hash object.
615
- *
616
- * @private
617
- * @constructor
618
- * @param {Array} [entries] The key-value pairs to cache.
619
- */
620
- function Hash(entries) {
621
- var index = -1,
622
- length = entries == null ? 0 : entries.length;
623
-
624
- this.clear();
625
- while (++index < length) {
626
- var entry = entries[index];
627
- this.set(entry[0], entry[1]);
628
- }
629
- }
630
-
631
- // Add methods to `Hash`.
632
- Hash.prototype.clear = _hashClear;
633
- Hash.prototype['delete'] = _hashDelete;
634
- Hash.prototype.get = _hashGet;
635
- Hash.prototype.has = _hashHas;
636
- Hash.prototype.set = _hashSet;
637
-
638
- var _Hash = Hash;
639
-
640
- /**
641
- * Removes all key-value entries from the list cache.
642
- *
643
- * @private
644
- * @name clear
645
- * @memberOf ListCache
646
- */
647
- function listCacheClear() {
648
- this.__data__ = [];
649
- this.size = 0;
650
- }
651
-
652
- var _listCacheClear = listCacheClear;
653
-
654
- /**
655
- * Performs a
656
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
657
- * comparison between two values to determine if they are equivalent.
658
- *
659
- * @static
660
- * @memberOf _
661
- * @since 4.0.0
662
- * @category Lang
663
- * @param {*} value The value to compare.
664
- * @param {*} other The other value to compare.
665
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
666
- * @example
667
- *
668
- * var object = { 'a': 1 };
669
- * var other = { 'a': 1 };
670
- *
671
- * _.eq(object, object);
672
- * // => true
673
- *
674
- * _.eq(object, other);
675
- * // => false
676
- *
677
- * _.eq('a', 'a');
678
- * // => true
679
- *
680
- * _.eq('a', Object('a'));
681
- * // => false
682
- *
683
- * _.eq(NaN, NaN);
684
- * // => true
685
- */
686
- function eq(value, other) {
687
- return value === other || (value !== value && other !== other);
688
- }
689
-
690
- var eq_1 = eq;
691
-
692
- /**
693
- * Gets the index at which the `key` is found in `array` of key-value pairs.
694
- *
695
- * @private
696
- * @param {Array} array The array to inspect.
697
- * @param {*} key The key to search for.
698
- * @returns {number} Returns the index of the matched value, else `-1`.
699
- */
700
- function assocIndexOf(array, key) {
701
- var length = array.length;
702
- while (length--) {
703
- if (eq_1(array[length][0], key)) {
704
- return length;
705
- }
706
- }
707
- return -1;
708
- }
709
-
710
- var _assocIndexOf = assocIndexOf;
711
-
712
- /** Used for built-in method references. */
713
- var arrayProto = Array.prototype;
714
-
715
- /** Built-in value references. */
716
- var splice = arrayProto.splice;
717
-
718
- /**
719
- * Removes `key` and its value from the list cache.
720
- *
721
- * @private
722
- * @name delete
723
- * @memberOf ListCache
724
- * @param {string} key The key of the value to remove.
725
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
726
- */
727
- function listCacheDelete(key) {
728
- var data = this.__data__,
729
- index = _assocIndexOf(data, key);
730
-
731
- if (index < 0) {
732
- return false;
733
- }
734
- var lastIndex = data.length - 1;
735
- if (index == lastIndex) {
736
- data.pop();
737
- } else {
738
- splice.call(data, index, 1);
739
- }
740
- --this.size;
741
- return true;
742
- }
743
-
744
- var _listCacheDelete = listCacheDelete;
745
-
746
- /**
747
- * Gets the list cache value for `key`.
748
- *
749
- * @private
750
- * @name get
751
- * @memberOf ListCache
752
- * @param {string} key The key of the value to get.
753
- * @returns {*} Returns the entry value.
754
- */
755
- function listCacheGet(key) {
756
- var data = this.__data__,
757
- index = _assocIndexOf(data, key);
758
-
759
- return index < 0 ? undefined : data[index][1];
760
- }
761
-
762
- var _listCacheGet = listCacheGet;
763
-
764
- /**
765
- * Checks if a list cache value for `key` exists.
766
- *
767
- * @private
768
- * @name has
769
- * @memberOf ListCache
770
- * @param {string} key The key of the entry to check.
771
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
772
- */
773
- function listCacheHas(key) {
774
- return _assocIndexOf(this.__data__, key) > -1;
775
- }
776
-
777
- var _listCacheHas = listCacheHas;
778
-
779
- /**
780
- * Sets the list cache `key` to `value`.
781
- *
782
- * @private
783
- * @name set
784
- * @memberOf ListCache
785
- * @param {string} key The key of the value to set.
786
- * @param {*} value The value to set.
787
- * @returns {Object} Returns the list cache instance.
788
- */
789
- function listCacheSet(key, value) {
790
- var data = this.__data__,
791
- index = _assocIndexOf(data, key);
792
-
793
- if (index < 0) {
794
- ++this.size;
795
- data.push([key, value]);
796
- } else {
797
- data[index][1] = value;
798
- }
799
- return this;
800
- }
801
-
802
- var _listCacheSet = listCacheSet;
803
-
804
- /**
805
- * Creates an list cache object.
806
- *
807
- * @private
808
- * @constructor
809
- * @param {Array} [entries] The key-value pairs to cache.
810
- */
811
- function ListCache(entries) {
812
- var index = -1,
813
- length = entries == null ? 0 : entries.length;
814
-
815
- this.clear();
816
- while (++index < length) {
817
- var entry = entries[index];
818
- this.set(entry[0], entry[1]);
819
- }
820
- }
821
-
822
- // Add methods to `ListCache`.
823
- ListCache.prototype.clear = _listCacheClear;
824
- ListCache.prototype['delete'] = _listCacheDelete;
825
- ListCache.prototype.get = _listCacheGet;
826
- ListCache.prototype.has = _listCacheHas;
827
- ListCache.prototype.set = _listCacheSet;
828
-
829
- var _ListCache = ListCache;
830
-
831
- /* Built-in method references that are verified to be native. */
832
- var Map = _getNative(_root, 'Map');
833
-
834
- var _Map = Map;
835
-
836
- /**
837
- * Removes all key-value entries from the map.
838
- *
839
- * @private
840
- * @name clear
841
- * @memberOf MapCache
842
- */
843
- function mapCacheClear() {
844
- this.size = 0;
845
- this.__data__ = {
846
- 'hash': new _Hash,
847
- 'map': new (_Map || _ListCache),
848
- 'string': new _Hash
849
- };
850
- }
851
-
852
- var _mapCacheClear = mapCacheClear;
853
-
854
- /**
855
- * Checks if `value` is suitable for use as unique object key.
856
- *
857
- * @private
858
- * @param {*} value The value to check.
859
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
860
- */
861
- function isKeyable(value) {
862
- var type = typeof value;
863
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
864
- ? (value !== '__proto__')
865
- : (value === null);
866
- }
867
-
868
- var _isKeyable = isKeyable;
869
-
870
- /**
871
- * Gets the data for `map`.
872
- *
873
- * @private
874
- * @param {Object} map The map to query.
875
- * @param {string} key The reference key.
876
- * @returns {*} Returns the map data.
877
- */
878
- function getMapData(map, key) {
879
- var data = map.__data__;
880
- return _isKeyable(key)
881
- ? data[typeof key == 'string' ? 'string' : 'hash']
882
- : data.map;
883
- }
884
-
885
- var _getMapData = getMapData;
886
-
887
- /**
888
- * Removes `key` and its value from the map.
889
- *
890
- * @private
891
- * @name delete
892
- * @memberOf MapCache
893
- * @param {string} key The key of the value to remove.
894
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
895
- */
896
- function mapCacheDelete(key) {
897
- var result = _getMapData(this, key)['delete'](key);
898
- this.size -= result ? 1 : 0;
899
- return result;
900
- }
901
-
902
- var _mapCacheDelete = mapCacheDelete;
903
-
904
- /**
905
- * Gets the map value for `key`.
906
- *
907
- * @private
908
- * @name get
909
- * @memberOf MapCache
910
- * @param {string} key The key of the value to get.
911
- * @returns {*} Returns the entry value.
912
- */
913
- function mapCacheGet(key) {
914
- return _getMapData(this, key).get(key);
915
- }
916
-
917
- var _mapCacheGet = mapCacheGet;
918
-
919
- /**
920
- * Checks if a map value for `key` exists.
921
- *
922
- * @private
923
- * @name has
924
- * @memberOf MapCache
925
- * @param {string} key The key of the entry to check.
926
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
927
- */
928
- function mapCacheHas(key) {
929
- return _getMapData(this, key).has(key);
930
- }
931
-
932
- var _mapCacheHas = mapCacheHas;
933
-
934
- /**
935
- * Sets the map `key` to `value`.
936
- *
937
- * @private
938
- * @name set
939
- * @memberOf MapCache
940
- * @param {string} key The key of the value to set.
941
- * @param {*} value The value to set.
942
- * @returns {Object} Returns the map cache instance.
943
- */
944
- function mapCacheSet(key, value) {
945
- var data = _getMapData(this, key),
946
- size = data.size;
947
-
948
- data.set(key, value);
949
- this.size += data.size == size ? 0 : 1;
950
- return this;
951
- }
952
-
953
- var _mapCacheSet = mapCacheSet;
954
-
955
- /**
956
- * Creates a map cache object to store key-value pairs.
957
- *
958
- * @private
959
- * @constructor
960
- * @param {Array} [entries] The key-value pairs to cache.
961
- */
962
- function MapCache(entries) {
963
- var index = -1,
964
- length = entries == null ? 0 : entries.length;
965
-
966
- this.clear();
967
- while (++index < length) {
968
- var entry = entries[index];
969
- this.set(entry[0], entry[1]);
970
- }
971
- }
972
-
973
- // Add methods to `MapCache`.
974
- MapCache.prototype.clear = _mapCacheClear;
975
- MapCache.prototype['delete'] = _mapCacheDelete;
976
- MapCache.prototype.get = _mapCacheGet;
977
- MapCache.prototype.has = _mapCacheHas;
978
- MapCache.prototype.set = _mapCacheSet;
979
-
980
- var _MapCache = MapCache;
981
-
982
- /** Error message constants. */
983
- var FUNC_ERROR_TEXT = 'Expected a function';
984
-
985
- /**
986
- * Creates a function that memoizes the result of `func`. If `resolver` is
987
- * provided, it determines the cache key for storing the result based on the
988
- * arguments provided to the memoized function. By default, the first argument
989
- * provided to the memoized function is used as the map cache key. The `func`
990
- * is invoked with the `this` binding of the memoized function.
991
- *
992
- * **Note:** The cache is exposed as the `cache` property on the memoized
993
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
994
- * constructor with one whose instances implement the
995
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
996
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
997
- *
998
- * @static
999
- * @memberOf _
1000
- * @since 0.1.0
1001
- * @category Function
1002
- * @param {Function} func The function to have its output memoized.
1003
- * @param {Function} [resolver] The function to resolve the cache key.
1004
- * @returns {Function} Returns the new memoized function.
1005
- * @example
1006
- *
1007
- * var object = { 'a': 1, 'b': 2 };
1008
- * var other = { 'c': 3, 'd': 4 };
1009
- *
1010
- * var values = _.memoize(_.values);
1011
- * values(object);
1012
- * // => [1, 2]
1013
- *
1014
- * values(other);
1015
- * // => [3, 4]
1016
- *
1017
- * object.a = 2;
1018
- * values(object);
1019
- * // => [1, 2]
1020
- *
1021
- * // Modify the result cache.
1022
- * values.cache.set(object, ['a', 'b']);
1023
- * values(object);
1024
- * // => ['a', 'b']
1025
- *
1026
- * // Replace `_.memoize.Cache`.
1027
- * _.memoize.Cache = WeakMap;
1028
- */
1029
- function memoize(func, resolver) {
1030
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1031
- throw new TypeError(FUNC_ERROR_TEXT);
1032
- }
1033
- var memoized = function() {
1034
- var args = arguments,
1035
- key = resolver ? resolver.apply(this, args) : args[0],
1036
- cache = memoized.cache;
1037
-
1038
- if (cache.has(key)) {
1039
- return cache.get(key);
1040
- }
1041
- var result = func.apply(this, args);
1042
- memoized.cache = cache.set(key, result) || cache;
1043
- return result;
1044
- };
1045
- memoized.cache = new (memoize.Cache || _MapCache);
1046
- return memoized;
1047
- }
1048
-
1049
- // Expose `MapCache`.
1050
- memoize.Cache = _MapCache;
1051
-
1052
- var memoize_1 = memoize;
1053
-
1054
- /** Used as the maximum memoize cache size. */
1055
- var MAX_MEMOIZE_SIZE = 500;
1056
-
1057
- /**
1058
- * A specialized version of `_.memoize` which clears the memoized function's
1059
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1060
- *
1061
- * @private
1062
- * @param {Function} func The function to have its output memoized.
1063
- * @returns {Function} Returns the new memoized function.
1064
- */
1065
- function memoizeCapped(func) {
1066
- var result = memoize_1(func, function(key) {
1067
- if (cache.size === MAX_MEMOIZE_SIZE) {
1068
- cache.clear();
1069
- }
1070
- return key;
1071
- });
1072
-
1073
- var cache = result.cache;
1074
- return result;
1075
- }
1076
-
1077
- var _memoizeCapped = memoizeCapped;
1078
-
1079
- /** Used to match property names within property paths. */
1080
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1081
-
1082
- /** Used to match backslashes in property paths. */
1083
- var reEscapeChar = /\\(\\)?/g;
1084
-
1085
- /**
1086
- * Converts `string` to a property path array.
1087
- *
1088
- * @private
1089
- * @param {string} string The string to convert.
1090
- * @returns {Array} Returns the property path array.
1091
- */
1092
- var stringToPath = _memoizeCapped(function(string) {
1093
- var result = [];
1094
- if (string.charCodeAt(0) === 46 /* . */) {
1095
- result.push('');
1096
- }
1097
- string.replace(rePropName, function(match, number, quote, subString) {
1098
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1099
- });
1100
- return result;
1101
- });
1102
-
1103
- var _stringToPath = stringToPath;
1104
-
1105
- /**
1106
- * A specialized version of `_.map` for arrays without support for iteratee
1107
- * shorthands.
1108
- *
1109
- * @private
1110
- * @param {Array} [array] The array to iterate over.
1111
- * @param {Function} iteratee The function invoked per iteration.
1112
- * @returns {Array} Returns the new mapped array.
1113
- */
1114
- function arrayMap(array, iteratee) {
1115
- var index = -1,
1116
- length = array == null ? 0 : array.length,
1117
- result = Array(length);
1118
-
1119
- while (++index < length) {
1120
- result[index] = iteratee(array[index], index, array);
1121
- }
1122
- return result;
1123
- }
1124
-
1125
- var _arrayMap = arrayMap;
1126
-
1127
- /** Used as references for various `Number` constants. */
1128
- var INFINITY$1 = 1 / 0;
1129
-
1130
- /** Used to convert symbols to primitives and strings. */
1131
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1132
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1133
-
1134
- /**
1135
- * The base implementation of `_.toString` which doesn't convert nullish
1136
- * values to empty strings.
1137
- *
1138
- * @private
1139
- * @param {*} value The value to process.
1140
- * @returns {string} Returns the string.
1141
- */
1142
- function baseToString(value) {
1143
- // Exit early for strings to avoid a performance hit in some environments.
1144
- if (typeof value == 'string') {
1145
- return value;
1146
- }
1147
- if (isArray_1(value)) {
1148
- // Recursively convert values (susceptible to call stack limits).
1149
- return _arrayMap(value, baseToString) + '';
1150
- }
1151
- if (isSymbol_1(value)) {
1152
- return symbolToString ? symbolToString.call(value) : '';
1153
- }
1154
- var result = (value + '');
1155
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1156
- }
1157
-
1158
- var _baseToString = baseToString;
1159
-
1160
- /**
1161
- * Converts `value` to a string. An empty string is returned for `null`
1162
- * and `undefined` values. The sign of `-0` is preserved.
1163
- *
1164
- * @static
1165
- * @memberOf _
1166
- * @since 4.0.0
1167
- * @category Lang
1168
- * @param {*} value The value to convert.
1169
- * @returns {string} Returns the converted string.
1170
- * @example
1171
- *
1172
- * _.toString(null);
1173
- * // => ''
1174
- *
1175
- * _.toString(-0);
1176
- * // => '-0'
1177
- *
1178
- * _.toString([1, 2, 3]);
1179
- * // => '1,2,3'
1180
- */
1181
- function toString(value) {
1182
- return value == null ? '' : _baseToString(value);
1183
- }
1184
-
1185
- var toString_1 = toString;
1186
-
1187
- /**
1188
- * Casts `value` to a path array if it's not one.
1189
- *
1190
- * @private
1191
- * @param {*} value The value to inspect.
1192
- * @param {Object} [object] The object to query keys on.
1193
- * @returns {Array} Returns the cast property path array.
1194
- */
1195
- function castPath(value, object) {
1196
- if (isArray_1(value)) {
1197
- return value;
1198
- }
1199
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1200
- }
1201
-
1202
- var _castPath = castPath;
1203
-
1204
- /** Used as references for various `Number` constants. */
1205
- var INFINITY = 1 / 0;
1206
-
1207
- /**
1208
- * Converts `value` to a string key if it's not a string or symbol.
1209
- *
1210
- * @private
1211
- * @param {*} value The value to inspect.
1212
- * @returns {string|symbol} Returns the key.
1213
- */
1214
- function toKey(value) {
1215
- if (typeof value == 'string' || isSymbol_1(value)) {
1216
- return value;
1217
- }
1218
- var result = (value + '');
1219
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1220
- }
1221
-
1222
- var _toKey = toKey;
1223
-
1224
- /**
1225
- * The base implementation of `_.get` without support for default values.
1226
- *
1227
- * @private
1228
- * @param {Object} object The object to query.
1229
- * @param {Array|string} path The path of the property to get.
1230
- * @returns {*} Returns the resolved value.
1231
- */
1232
- function baseGet(object, path) {
1233
- path = _castPath(path, object);
1234
-
1235
- var index = 0,
1236
- length = path.length;
1237
-
1238
- while (object != null && index < length) {
1239
- object = object[_toKey(path[index++])];
1240
- }
1241
- return (index && index == length) ? object : undefined;
1242
- }
1243
-
1244
- var _baseGet = baseGet;
1245
-
1246
- /**
1247
- * Gets the value at `path` of `object`. If the resolved value is
1248
- * `undefined`, the `defaultValue` is returned in its place.
1249
- *
1250
- * @static
1251
- * @memberOf _
1252
- * @since 3.7.0
1253
- * @category Object
1254
- * @param {Object} object The object to query.
1255
- * @param {Array|string} path The path of the property to get.
1256
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1257
- * @returns {*} Returns the resolved value.
1258
- * @example
1259
- *
1260
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1261
- *
1262
- * _.get(object, 'a[0].b.c');
1263
- * // => 3
1264
- *
1265
- * _.get(object, ['a', '0', 'b', 'c']);
1266
- * // => 3
1267
- *
1268
- * _.get(object, 'a.b.c', 'default');
1269
- * // => 'default'
1270
- */
1271
- function get(object, path, defaultValue) {
1272
- var result = object == null ? undefined : _baseGet(object, path);
1273
- return result === undefined ? defaultValue : result;
1274
- }
1275
-
1276
- var get_1 = get;
1277
-
1278
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
1279
-
1280
- Object.defineProperty(exports, "__esModule", {
1281
- value: true
1282
- });
1283
- exports["default"] = void 0;
1284
- var optionsDefaults = {
1285
- attributeNames: {
1286
- styleName: 'className'
1287
- },
1288
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
1289
- handleMissingStyleName: 'throw'
1290
- };
1291
- var _default = optionsDefaults;
1292
- exports["default"] = _default;
1293
-
1294
-
1295
- });
1296
-
1297
- var getClassName = createCommonjsModule(function (module, exports) {
1298
-
1299
- Object.defineProperty(exports, "__esModule", {
1300
- value: true
1301
- });
1302
- exports["default"] = void 0;
1303
-
1304
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
1305
-
1306
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1307
-
1308
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
1309
- return styleName.indexOf('.') !== -1;
1310
- };
1311
-
1312
- var handleError = function handleError(message, handleMissingStyleName) {
1313
- if (handleMissingStyleName === 'throw') {
1314
- throw new Error(message);
1315
- } else if (handleMissingStyleName === 'warn') {
1316
- // eslint-disable-next-line no-console
1317
- console.warn(message);
1318
- }
1319
-
1320
- return null;
1321
- };
1322
-
1323
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
1324
- // Note:
1325
- // Do not use the desctructing syntax with Babel.
1326
- // Desctructing adds _slicedToArray helper.
1327
- var styleNameParts = styleName.split('.');
1328
- var importName = styleNameParts[0];
1329
- var moduleName = styleNameParts[1];
1330
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
1331
-
1332
- if (!moduleName) {
1333
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
1334
- }
1335
-
1336
- if (!styleModuleImportMap[importName]) {
1337
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
1338
- }
1339
-
1340
- if (!styleModuleImportMap[importName][moduleName]) {
1341
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
1342
- }
1343
-
1344
- return styleModuleImportMap[importName][moduleName];
1345
- };
1346
-
1347
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
1348
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
1349
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
1350
- return styleModuleImportMap[importKey][styleName] && importKey;
1351
- }).filter(function (importKey) {
1352
- return importKey;
1353
- });
1354
-
1355
- if (importKeysWithMatches.length > 1) {
1356
- throw new Error('Cannot resolve styleName "' + styleName + '" because it is present in multiple imports:' + '\n\n\t' + importKeysWithMatches.join('\n\t') + '\n\nYou can resolve this by using a named import, e.g:' + '\n\n\timport foo from "' + importKeysWithMatches[0] + '";' + '\n\t<div styleName="foo.' + styleName + '" />' + '\n\n');
1357
- }
1358
-
1359
- if (importKeysWithMatches.length === 0) {
1360
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
1361
- }
1362
-
1363
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
1364
- };
1365
-
1366
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
1367
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
1368
-
1369
- var _ref = options || {},
1370
- _ref$handleMissingSty = _ref.handleMissingStyleName,
1371
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
1372
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
1373
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
1374
-
1375
- if (!styleNameValue) {
1376
- return '';
1377
- }
1378
-
1379
- return styleNameValue.split(' ').filter(function (styleName) {
1380
- return styleName;
1381
- }).map(function (styleName) {
1382
- if (isNamespacedStyleName(styleName)) {
1383
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
1384
- }
1385
-
1386
- if (styleModuleImportMapKeys.length === 0) {
1387
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
1388
- }
1389
-
1390
- if (styleModuleImportMapKeys.length > 1) {
1391
- if (!autoResolveMultipleImports) {
1392
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
1393
- }
1394
-
1395
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
1396
- }
1397
-
1398
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
1399
-
1400
- if (!styleModuleMap[styleName]) {
1401
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
1402
- }
1403
-
1404
- return styleModuleMap[styleName];
1405
- }).filter(function (className) {
1406
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
1407
- return className;
1408
- }).join(' ');
1409
- };
1410
-
1411
- exports["default"] = _default;
1412
-
1413
-
1414
- });
1415
-
1416
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
27
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
1417
28
 
1418
29
  var StateContext = /*#__PURE__*/React.createContext(); // eslint-disable-next-line react/display-name
1419
30
 
@@ -1432,1133 +43,6 @@ var useStateValue = function useStateValue() {
1432
43
  return React.useContext(StateContext);
1433
44
  };
1434
45
 
1435
- function _typeof(obj) {
1436
- "@babel/helpers - typeof";
1437
-
1438
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1439
- return typeof obj;
1440
- } : function (obj) {
1441
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1442
- }, _typeof(obj);
1443
- }
1444
-
1445
- /**
1446
- * Copyright (c) 2014-present, Facebook, Inc.
1447
- *
1448
- * This source code is licensed under the MIT license found in the
1449
- * LICENSE file in the root directory of this source tree.
1450
- */
1451
-
1452
- createCommonjsModule(function (module) {
1453
- var runtime = (function (exports) {
1454
-
1455
- var Op = Object.prototype;
1456
- var hasOwn = Op.hasOwnProperty;
1457
- var undefined$1; // More compressible than void 0.
1458
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
1459
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
1460
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1461
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1462
-
1463
- function define(obj, key, value) {
1464
- Object.defineProperty(obj, key, {
1465
- value: value,
1466
- enumerable: true,
1467
- configurable: true,
1468
- writable: true
1469
- });
1470
- return obj[key];
1471
- }
1472
- try {
1473
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1474
- define({}, "");
1475
- } catch (err) {
1476
- define = function(obj, key, value) {
1477
- return obj[key] = value;
1478
- };
1479
- }
1480
-
1481
- function wrap(innerFn, outerFn, self, tryLocsList) {
1482
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1483
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1484
- var generator = Object.create(protoGenerator.prototype);
1485
- var context = new Context(tryLocsList || []);
1486
-
1487
- // The ._invoke method unifies the implementations of the .next,
1488
- // .throw, and .return methods.
1489
- generator._invoke = makeInvokeMethod(innerFn, self, context);
1490
-
1491
- return generator;
1492
- }
1493
- exports.wrap = wrap;
1494
-
1495
- // Try/catch helper to minimize deoptimizations. Returns a completion
1496
- // record like context.tryEntries[i].completion. This interface could
1497
- // have been (and was previously) designed to take a closure to be
1498
- // invoked without arguments, but in all the cases we care about we
1499
- // already have an existing method we want to call, so there's no need
1500
- // to create a new function object. We can even get away with assuming
1501
- // the method takes exactly one argument, since that happens to be true
1502
- // in every case, so we don't have to touch the arguments object. The
1503
- // only additional allocation required is the completion record, which
1504
- // has a stable shape and so hopefully should be cheap to allocate.
1505
- function tryCatch(fn, obj, arg) {
1506
- try {
1507
- return { type: "normal", arg: fn.call(obj, arg) };
1508
- } catch (err) {
1509
- return { type: "throw", arg: err };
1510
- }
1511
- }
1512
-
1513
- var GenStateSuspendedStart = "suspendedStart";
1514
- var GenStateSuspendedYield = "suspendedYield";
1515
- var GenStateExecuting = "executing";
1516
- var GenStateCompleted = "completed";
1517
-
1518
- // Returning this object from the innerFn has the same effect as
1519
- // breaking out of the dispatch switch statement.
1520
- var ContinueSentinel = {};
1521
-
1522
- // Dummy constructor functions that we use as the .constructor and
1523
- // .constructor.prototype properties for functions that return Generator
1524
- // objects. For full spec compliance, you may wish to configure your
1525
- // minifier not to mangle the names of these two functions.
1526
- function Generator() {}
1527
- function GeneratorFunction() {}
1528
- function GeneratorFunctionPrototype() {}
1529
-
1530
- // This is a polyfill for %IteratorPrototype% for environments that
1531
- // don't natively support it.
1532
- var IteratorPrototype = {};
1533
- define(IteratorPrototype, iteratorSymbol, function () {
1534
- return this;
1535
- });
1536
-
1537
- var getProto = Object.getPrototypeOf;
1538
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1539
- if (NativeIteratorPrototype &&
1540
- NativeIteratorPrototype !== Op &&
1541
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1542
- // This environment has a native %IteratorPrototype%; use it instead
1543
- // of the polyfill.
1544
- IteratorPrototype = NativeIteratorPrototype;
1545
- }
1546
-
1547
- var Gp = GeneratorFunctionPrototype.prototype =
1548
- Generator.prototype = Object.create(IteratorPrototype);
1549
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
1550
- define(Gp, "constructor", GeneratorFunctionPrototype);
1551
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
1552
- GeneratorFunction.displayName = define(
1553
- GeneratorFunctionPrototype,
1554
- toStringTagSymbol,
1555
- "GeneratorFunction"
1556
- );
1557
-
1558
- // Helper for defining the .next, .throw, and .return methods of the
1559
- // Iterator interface in terms of a single ._invoke method.
1560
- function defineIteratorMethods(prototype) {
1561
- ["next", "throw", "return"].forEach(function(method) {
1562
- define(prototype, method, function(arg) {
1563
- return this._invoke(method, arg);
1564
- });
1565
- });
1566
- }
1567
-
1568
- exports.isGeneratorFunction = function(genFun) {
1569
- var ctor = typeof genFun === "function" && genFun.constructor;
1570
- return ctor
1571
- ? ctor === GeneratorFunction ||
1572
- // For the native GeneratorFunction constructor, the best we can
1573
- // do is to check its .name property.
1574
- (ctor.displayName || ctor.name) === "GeneratorFunction"
1575
- : false;
1576
- };
1577
-
1578
- exports.mark = function(genFun) {
1579
- if (Object.setPrototypeOf) {
1580
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1581
- } else {
1582
- genFun.__proto__ = GeneratorFunctionPrototype;
1583
- define(genFun, toStringTagSymbol, "GeneratorFunction");
1584
- }
1585
- genFun.prototype = Object.create(Gp);
1586
- return genFun;
1587
- };
1588
-
1589
- // Within the body of any async function, `await x` is transformed to
1590
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1591
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
1592
- // meant to be awaited.
1593
- exports.awrap = function(arg) {
1594
- return { __await: arg };
1595
- };
1596
-
1597
- function AsyncIterator(generator, PromiseImpl) {
1598
- function invoke(method, arg, resolve, reject) {
1599
- var record = tryCatch(generator[method], generator, arg);
1600
- if (record.type === "throw") {
1601
- reject(record.arg);
1602
- } else {
1603
- var result = record.arg;
1604
- var value = result.value;
1605
- if (value &&
1606
- typeof value === "object" &&
1607
- hasOwn.call(value, "__await")) {
1608
- return PromiseImpl.resolve(value.__await).then(function(value) {
1609
- invoke("next", value, resolve, reject);
1610
- }, function(err) {
1611
- invoke("throw", err, resolve, reject);
1612
- });
1613
- }
1614
-
1615
- return PromiseImpl.resolve(value).then(function(unwrapped) {
1616
- // When a yielded Promise is resolved, its final value becomes
1617
- // the .value of the Promise<{value,done}> result for the
1618
- // current iteration.
1619
- result.value = unwrapped;
1620
- resolve(result);
1621
- }, function(error) {
1622
- // If a rejected Promise was yielded, throw the rejection back
1623
- // into the async generator function so it can be handled there.
1624
- return invoke("throw", error, resolve, reject);
1625
- });
1626
- }
1627
- }
1628
-
1629
- var previousPromise;
1630
-
1631
- function enqueue(method, arg) {
1632
- function callInvokeWithMethodAndArg() {
1633
- return new PromiseImpl(function(resolve, reject) {
1634
- invoke(method, arg, resolve, reject);
1635
- });
1636
- }
1637
-
1638
- return previousPromise =
1639
- // If enqueue has been called before, then we want to wait until
1640
- // all previous Promises have been resolved before calling invoke,
1641
- // so that results are always delivered in the correct order. If
1642
- // enqueue has not been called before, then it is important to
1643
- // call invoke immediately, without waiting on a callback to fire,
1644
- // so that the async generator function has the opportunity to do
1645
- // any necessary setup in a predictable way. This predictability
1646
- // is why the Promise constructor synchronously invokes its
1647
- // executor callback, and why async functions synchronously
1648
- // execute code before the first await. Since we implement simple
1649
- // async functions in terms of async generators, it is especially
1650
- // important to get this right, even though it requires care.
1651
- previousPromise ? previousPromise.then(
1652
- callInvokeWithMethodAndArg,
1653
- // Avoid propagating failures to Promises returned by later
1654
- // invocations of the iterator.
1655
- callInvokeWithMethodAndArg
1656
- ) : callInvokeWithMethodAndArg();
1657
- }
1658
-
1659
- // Define the unified helper method that is used to implement .next,
1660
- // .throw, and .return (see defineIteratorMethods).
1661
- this._invoke = enqueue;
1662
- }
1663
-
1664
- defineIteratorMethods(AsyncIterator.prototype);
1665
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1666
- return this;
1667
- });
1668
- exports.AsyncIterator = AsyncIterator;
1669
-
1670
- // Note that simple async functions are implemented on top of
1671
- // AsyncIterator objects; they just return a Promise for the value of
1672
- // the final result produced by the iterator.
1673
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1674
- if (PromiseImpl === void 0) PromiseImpl = Promise;
1675
-
1676
- var iter = new AsyncIterator(
1677
- wrap(innerFn, outerFn, self, tryLocsList),
1678
- PromiseImpl
1679
- );
1680
-
1681
- return exports.isGeneratorFunction(outerFn)
1682
- ? iter // If outerFn is a generator, return the full iterator.
1683
- : iter.next().then(function(result) {
1684
- return result.done ? result.value : iter.next();
1685
- });
1686
- };
1687
-
1688
- function makeInvokeMethod(innerFn, self, context) {
1689
- var state = GenStateSuspendedStart;
1690
-
1691
- return function invoke(method, arg) {
1692
- if (state === GenStateExecuting) {
1693
- throw new Error("Generator is already running");
1694
- }
1695
-
1696
- if (state === GenStateCompleted) {
1697
- if (method === "throw") {
1698
- throw arg;
1699
- }
1700
-
1701
- // Be forgiving, per 25.3.3.3.3 of the spec:
1702
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
1703
- return doneResult();
1704
- }
1705
-
1706
- context.method = method;
1707
- context.arg = arg;
1708
-
1709
- while (true) {
1710
- var delegate = context.delegate;
1711
- if (delegate) {
1712
- var delegateResult = maybeInvokeDelegate(delegate, context);
1713
- if (delegateResult) {
1714
- if (delegateResult === ContinueSentinel) continue;
1715
- return delegateResult;
1716
- }
1717
- }
1718
-
1719
- if (context.method === "next") {
1720
- // Setting context._sent for legacy support of Babel's
1721
- // function.sent implementation.
1722
- context.sent = context._sent = context.arg;
1723
-
1724
- } else if (context.method === "throw") {
1725
- if (state === GenStateSuspendedStart) {
1726
- state = GenStateCompleted;
1727
- throw context.arg;
1728
- }
1729
-
1730
- context.dispatchException(context.arg);
1731
-
1732
- } else if (context.method === "return") {
1733
- context.abrupt("return", context.arg);
1734
- }
1735
-
1736
- state = GenStateExecuting;
1737
-
1738
- var record = tryCatch(innerFn, self, context);
1739
- if (record.type === "normal") {
1740
- // If an exception is thrown from innerFn, we leave state ===
1741
- // GenStateExecuting and loop back for another invocation.
1742
- state = context.done
1743
- ? GenStateCompleted
1744
- : GenStateSuspendedYield;
1745
-
1746
- if (record.arg === ContinueSentinel) {
1747
- continue;
1748
- }
1749
-
1750
- return {
1751
- value: record.arg,
1752
- done: context.done
1753
- };
1754
-
1755
- } else if (record.type === "throw") {
1756
- state = GenStateCompleted;
1757
- // Dispatch the exception by looping back around to the
1758
- // context.dispatchException(context.arg) call above.
1759
- context.method = "throw";
1760
- context.arg = record.arg;
1761
- }
1762
- }
1763
- };
1764
- }
1765
-
1766
- // Call delegate.iterator[context.method](context.arg) and handle the
1767
- // result, either by returning a { value, done } result from the
1768
- // delegate iterator, or by modifying context.method and context.arg,
1769
- // setting context.delegate to null, and returning the ContinueSentinel.
1770
- function maybeInvokeDelegate(delegate, context) {
1771
- var method = delegate.iterator[context.method];
1772
- if (method === undefined$1) {
1773
- // A .throw or .return when the delegate iterator has no .throw
1774
- // method always terminates the yield* loop.
1775
- context.delegate = null;
1776
-
1777
- if (context.method === "throw") {
1778
- // Note: ["return"] must be used for ES3 parsing compatibility.
1779
- if (delegate.iterator["return"]) {
1780
- // If the delegate iterator has a return method, give it a
1781
- // chance to clean up.
1782
- context.method = "return";
1783
- context.arg = undefined$1;
1784
- maybeInvokeDelegate(delegate, context);
1785
-
1786
- if (context.method === "throw") {
1787
- // If maybeInvokeDelegate(context) changed context.method from
1788
- // "return" to "throw", let that override the TypeError below.
1789
- return ContinueSentinel;
1790
- }
1791
- }
1792
-
1793
- context.method = "throw";
1794
- context.arg = new TypeError(
1795
- "The iterator does not provide a 'throw' method");
1796
- }
1797
-
1798
- return ContinueSentinel;
1799
- }
1800
-
1801
- var record = tryCatch(method, delegate.iterator, context.arg);
1802
-
1803
- if (record.type === "throw") {
1804
- context.method = "throw";
1805
- context.arg = record.arg;
1806
- context.delegate = null;
1807
- return ContinueSentinel;
1808
- }
1809
-
1810
- var info = record.arg;
1811
-
1812
- if (! info) {
1813
- context.method = "throw";
1814
- context.arg = new TypeError("iterator result is not an object");
1815
- context.delegate = null;
1816
- return ContinueSentinel;
1817
- }
1818
-
1819
- if (info.done) {
1820
- // Assign the result of the finished delegate to the temporary
1821
- // variable specified by delegate.resultName (see delegateYield).
1822
- context[delegate.resultName] = info.value;
1823
-
1824
- // Resume execution at the desired location (see delegateYield).
1825
- context.next = delegate.nextLoc;
1826
-
1827
- // If context.method was "throw" but the delegate handled the
1828
- // exception, let the outer generator proceed normally. If
1829
- // context.method was "next", forget context.arg since it has been
1830
- // "consumed" by the delegate iterator. If context.method was
1831
- // "return", allow the original .return call to continue in the
1832
- // outer generator.
1833
- if (context.method !== "return") {
1834
- context.method = "next";
1835
- context.arg = undefined$1;
1836
- }
1837
-
1838
- } else {
1839
- // Re-yield the result returned by the delegate method.
1840
- return info;
1841
- }
1842
-
1843
- // The delegate iterator is finished, so forget it and continue with
1844
- // the outer generator.
1845
- context.delegate = null;
1846
- return ContinueSentinel;
1847
- }
1848
-
1849
- // Define Generator.prototype.{next,throw,return} in terms of the
1850
- // unified ._invoke helper method.
1851
- defineIteratorMethods(Gp);
1852
-
1853
- define(Gp, toStringTagSymbol, "Generator");
1854
-
1855
- // A Generator should always return itself as the iterator object when the
1856
- // @@iterator function is called on it. Some browsers' implementations of the
1857
- // iterator prototype chain incorrectly implement this, causing the Generator
1858
- // object to not be returned from this call. This ensures that doesn't happen.
1859
- // See https://github.com/facebook/regenerator/issues/274 for more details.
1860
- define(Gp, iteratorSymbol, function() {
1861
- return this;
1862
- });
1863
-
1864
- define(Gp, "toString", function() {
1865
- return "[object Generator]";
1866
- });
1867
-
1868
- function pushTryEntry(locs) {
1869
- var entry = { tryLoc: locs[0] };
1870
-
1871
- if (1 in locs) {
1872
- entry.catchLoc = locs[1];
1873
- }
1874
-
1875
- if (2 in locs) {
1876
- entry.finallyLoc = locs[2];
1877
- entry.afterLoc = locs[3];
1878
- }
1879
-
1880
- this.tryEntries.push(entry);
1881
- }
1882
-
1883
- function resetTryEntry(entry) {
1884
- var record = entry.completion || {};
1885
- record.type = "normal";
1886
- delete record.arg;
1887
- entry.completion = record;
1888
- }
1889
-
1890
- function Context(tryLocsList) {
1891
- // The root entry object (effectively a try statement without a catch
1892
- // or a finally block) gives us a place to store values thrown from
1893
- // locations where there is no enclosing try statement.
1894
- this.tryEntries = [{ tryLoc: "root" }];
1895
- tryLocsList.forEach(pushTryEntry, this);
1896
- this.reset(true);
1897
- }
1898
-
1899
- exports.keys = function(object) {
1900
- var keys = [];
1901
- for (var key in object) {
1902
- keys.push(key);
1903
- }
1904
- keys.reverse();
1905
-
1906
- // Rather than returning an object with a next method, we keep
1907
- // things simple and return the next function itself.
1908
- return function next() {
1909
- while (keys.length) {
1910
- var key = keys.pop();
1911
- if (key in object) {
1912
- next.value = key;
1913
- next.done = false;
1914
- return next;
1915
- }
1916
- }
1917
-
1918
- // To avoid creating an additional object, we just hang the .value
1919
- // and .done properties off the next function object itself. This
1920
- // also ensures that the minifier will not anonymize the function.
1921
- next.done = true;
1922
- return next;
1923
- };
1924
- };
1925
-
1926
- function values(iterable) {
1927
- if (iterable) {
1928
- var iteratorMethod = iterable[iteratorSymbol];
1929
- if (iteratorMethod) {
1930
- return iteratorMethod.call(iterable);
1931
- }
1932
-
1933
- if (typeof iterable.next === "function") {
1934
- return iterable;
1935
- }
1936
-
1937
- if (!isNaN(iterable.length)) {
1938
- var i = -1, next = function next() {
1939
- while (++i < iterable.length) {
1940
- if (hasOwn.call(iterable, i)) {
1941
- next.value = iterable[i];
1942
- next.done = false;
1943
- return next;
1944
- }
1945
- }
1946
-
1947
- next.value = undefined$1;
1948
- next.done = true;
1949
-
1950
- return next;
1951
- };
1952
-
1953
- return next.next = next;
1954
- }
1955
- }
1956
-
1957
- // Return an iterator with no values.
1958
- return { next: doneResult };
1959
- }
1960
- exports.values = values;
1961
-
1962
- function doneResult() {
1963
- return { value: undefined$1, done: true };
1964
- }
1965
-
1966
- Context.prototype = {
1967
- constructor: Context,
1968
-
1969
- reset: function(skipTempReset) {
1970
- this.prev = 0;
1971
- this.next = 0;
1972
- // Resetting context._sent for legacy support of Babel's
1973
- // function.sent implementation.
1974
- this.sent = this._sent = undefined$1;
1975
- this.done = false;
1976
- this.delegate = null;
1977
-
1978
- this.method = "next";
1979
- this.arg = undefined$1;
1980
-
1981
- this.tryEntries.forEach(resetTryEntry);
1982
-
1983
- if (!skipTempReset) {
1984
- for (var name in this) {
1985
- // Not sure about the optimal order of these conditions:
1986
- if (name.charAt(0) === "t" &&
1987
- hasOwn.call(this, name) &&
1988
- !isNaN(+name.slice(1))) {
1989
- this[name] = undefined$1;
1990
- }
1991
- }
1992
- }
1993
- },
1994
-
1995
- stop: function() {
1996
- this.done = true;
1997
-
1998
- var rootEntry = this.tryEntries[0];
1999
- var rootRecord = rootEntry.completion;
2000
- if (rootRecord.type === "throw") {
2001
- throw rootRecord.arg;
2002
- }
2003
-
2004
- return this.rval;
2005
- },
2006
-
2007
- dispatchException: function(exception) {
2008
- if (this.done) {
2009
- throw exception;
2010
- }
2011
-
2012
- var context = this;
2013
- function handle(loc, caught) {
2014
- record.type = "throw";
2015
- record.arg = exception;
2016
- context.next = loc;
2017
-
2018
- if (caught) {
2019
- // If the dispatched exception was caught by a catch block,
2020
- // then let that catch block handle the exception normally.
2021
- context.method = "next";
2022
- context.arg = undefined$1;
2023
- }
2024
-
2025
- return !! caught;
2026
- }
2027
-
2028
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2029
- var entry = this.tryEntries[i];
2030
- var record = entry.completion;
2031
-
2032
- if (entry.tryLoc === "root") {
2033
- // Exception thrown outside of any try block that could handle
2034
- // it, so set the completion value of the entire function to
2035
- // throw the exception.
2036
- return handle("end");
2037
- }
2038
-
2039
- if (entry.tryLoc <= this.prev) {
2040
- var hasCatch = hasOwn.call(entry, "catchLoc");
2041
- var hasFinally = hasOwn.call(entry, "finallyLoc");
2042
-
2043
- if (hasCatch && hasFinally) {
2044
- if (this.prev < entry.catchLoc) {
2045
- return handle(entry.catchLoc, true);
2046
- } else if (this.prev < entry.finallyLoc) {
2047
- return handle(entry.finallyLoc);
2048
- }
2049
-
2050
- } else if (hasCatch) {
2051
- if (this.prev < entry.catchLoc) {
2052
- return handle(entry.catchLoc, true);
2053
- }
2054
-
2055
- } else if (hasFinally) {
2056
- if (this.prev < entry.finallyLoc) {
2057
- return handle(entry.finallyLoc);
2058
- }
2059
-
2060
- } else {
2061
- throw new Error("try statement without catch or finally");
2062
- }
2063
- }
2064
- }
2065
- },
2066
-
2067
- abrupt: function(type, arg) {
2068
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2069
- var entry = this.tryEntries[i];
2070
- if (entry.tryLoc <= this.prev &&
2071
- hasOwn.call(entry, "finallyLoc") &&
2072
- this.prev < entry.finallyLoc) {
2073
- var finallyEntry = entry;
2074
- break;
2075
- }
2076
- }
2077
-
2078
- if (finallyEntry &&
2079
- (type === "break" ||
2080
- type === "continue") &&
2081
- finallyEntry.tryLoc <= arg &&
2082
- arg <= finallyEntry.finallyLoc) {
2083
- // Ignore the finally entry if control is not jumping to a
2084
- // location outside the try/catch block.
2085
- finallyEntry = null;
2086
- }
2087
-
2088
- var record = finallyEntry ? finallyEntry.completion : {};
2089
- record.type = type;
2090
- record.arg = arg;
2091
-
2092
- if (finallyEntry) {
2093
- this.method = "next";
2094
- this.next = finallyEntry.finallyLoc;
2095
- return ContinueSentinel;
2096
- }
2097
-
2098
- return this.complete(record);
2099
- },
2100
-
2101
- complete: function(record, afterLoc) {
2102
- if (record.type === "throw") {
2103
- throw record.arg;
2104
- }
2105
-
2106
- if (record.type === "break" ||
2107
- record.type === "continue") {
2108
- this.next = record.arg;
2109
- } else if (record.type === "return") {
2110
- this.rval = this.arg = record.arg;
2111
- this.method = "return";
2112
- this.next = "end";
2113
- } else if (record.type === "normal" && afterLoc) {
2114
- this.next = afterLoc;
2115
- }
2116
-
2117
- return ContinueSentinel;
2118
- },
2119
-
2120
- finish: function(finallyLoc) {
2121
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2122
- var entry = this.tryEntries[i];
2123
- if (entry.finallyLoc === finallyLoc) {
2124
- this.complete(entry.completion, entry.afterLoc);
2125
- resetTryEntry(entry);
2126
- return ContinueSentinel;
2127
- }
2128
- }
2129
- },
2130
-
2131
- "catch": function(tryLoc) {
2132
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2133
- var entry = this.tryEntries[i];
2134
- if (entry.tryLoc === tryLoc) {
2135
- var record = entry.completion;
2136
- if (record.type === "throw") {
2137
- var thrown = record.arg;
2138
- resetTryEntry(entry);
2139
- }
2140
- return thrown;
2141
- }
2142
- }
2143
-
2144
- // The context.catch method must only be called with a location
2145
- // argument that corresponds to a known catch block.
2146
- throw new Error("illegal catch attempt");
2147
- },
2148
-
2149
- delegateYield: function(iterable, resultName, nextLoc) {
2150
- this.delegate = {
2151
- iterator: values(iterable),
2152
- resultName: resultName,
2153
- nextLoc: nextLoc
2154
- };
2155
-
2156
- if (this.method === "next") {
2157
- // Deliberately forget the last sent value so that we don't
2158
- // accidentally pass it on to the delegate.
2159
- this.arg = undefined$1;
2160
- }
2161
-
2162
- return ContinueSentinel;
2163
- }
2164
- };
2165
-
2166
- // Regardless of whether this script is executing as a CommonJS module
2167
- // or not, return the runtime object so that we can declare the variable
2168
- // regeneratorRuntime in the outer scope, which allows this module to be
2169
- // injected easily by `bin/regenerator --include-runtime script.js`.
2170
- return exports;
2171
-
2172
- }(
2173
- // If this script is executing as a CommonJS module, use module.exports
2174
- // as the regeneratorRuntime namespace. Otherwise create a new empty
2175
- // object. Either way, the resulting object will be used to initialize
2176
- // the regeneratorRuntime variable at the top of this file.
2177
- module.exports
2178
- ));
2179
-
2180
- try {
2181
- regeneratorRuntime = runtime;
2182
- } catch (accidentalStrictMode) {
2183
- // This module should not be running in strict mode, so the above
2184
- // assignment should always work unless something is misconfigured. Just
2185
- // in case runtime.js accidentally runs in strict mode, in modern engines
2186
- // we can explicitly access globalThis. In older engines we can escape
2187
- // strict mode using a global Function call. This could conceivably fail
2188
- // if a Content Security Policy forbids using Function, but in that case
2189
- // the proper solution is to fix the accidental strict mode problem. If
2190
- // you've misconfigured your bundler to force strict mode and applied a
2191
- // CSP to forbid Function, and you're not willing to fix either of those
2192
- // problems, please detail your unique predicament in a GitHub issue.
2193
- if (typeof globalThis === "object") {
2194
- globalThis.regeneratorRuntime = runtime;
2195
- } else {
2196
- Function("r", "regeneratorRuntime = r")(runtime);
2197
- }
2198
- }
2199
- });
2200
-
2201
- /**
2202
- * A specialized version of `_.reduce` for arrays without support for
2203
- * iteratee shorthands.
2204
- *
2205
- * @private
2206
- * @param {Array} [array] The array to iterate over.
2207
- * @param {Function} iteratee The function invoked per iteration.
2208
- * @param {*} [accumulator] The initial value.
2209
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2210
- * the initial value.
2211
- * @returns {*} Returns the accumulated value.
2212
- */
2213
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2214
- var index = -1,
2215
- length = array == null ? 0 : array.length;
2216
-
2217
- if (initAccum && length) {
2218
- accumulator = array[++index];
2219
- }
2220
- while (++index < length) {
2221
- accumulator = iteratee(accumulator, array[index], index, array);
2222
- }
2223
- return accumulator;
2224
- }
2225
-
2226
- var _arrayReduce = arrayReduce;
2227
-
2228
- /**
2229
- * The base implementation of `_.propertyOf` without support for deep paths.
2230
- *
2231
- * @private
2232
- * @param {Object} object The object to query.
2233
- * @returns {Function} Returns the new accessor function.
2234
- */
2235
- function basePropertyOf(object) {
2236
- return function(key) {
2237
- return object == null ? undefined : object[key];
2238
- };
2239
- }
2240
-
2241
- var _basePropertyOf = basePropertyOf;
2242
-
2243
- /** Used to map Latin Unicode letters to basic Latin letters. */
2244
- var deburredLetters = {
2245
- // Latin-1 Supplement block.
2246
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2247
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2248
- '\xc7': 'C', '\xe7': 'c',
2249
- '\xd0': 'D', '\xf0': 'd',
2250
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2251
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2252
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2253
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2254
- '\xd1': 'N', '\xf1': 'n',
2255
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2256
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2257
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2258
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2259
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2260
- '\xc6': 'Ae', '\xe6': 'ae',
2261
- '\xde': 'Th', '\xfe': 'th',
2262
- '\xdf': 'ss',
2263
- // Latin Extended-A block.
2264
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2265
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2266
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2267
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2268
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2269
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2270
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2271
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2272
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2273
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2274
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2275
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2276
- '\u0134': 'J', '\u0135': 'j',
2277
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2278
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2279
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2280
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2281
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2282
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2283
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2284
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2285
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2286
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2287
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2288
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2289
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2290
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2291
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2292
- '\u0174': 'W', '\u0175': 'w',
2293
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2294
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2295
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2296
- '\u0132': 'IJ', '\u0133': 'ij',
2297
- '\u0152': 'Oe', '\u0153': 'oe',
2298
- '\u0149': "'n", '\u017f': 's'
2299
- };
2300
-
2301
- /**
2302
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2303
- * letters to basic Latin letters.
2304
- *
2305
- * @private
2306
- * @param {string} letter The matched letter to deburr.
2307
- * @returns {string} Returns the deburred letter.
2308
- */
2309
- var deburrLetter = _basePropertyOf(deburredLetters);
2310
-
2311
- var _deburrLetter = deburrLetter;
2312
-
2313
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2314
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2315
-
2316
- /** Used to compose unicode character classes. */
2317
- var rsComboMarksRange$1 = '\\u0300-\\u036f',
2318
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2319
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2320
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1;
2321
-
2322
- /** Used to compose unicode capture groups. */
2323
- var rsCombo$1 = '[' + rsComboRange$1 + ']';
2324
-
2325
- /**
2326
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2327
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2328
- */
2329
- var reComboMark = RegExp(rsCombo$1, 'g');
2330
-
2331
- /**
2332
- * Deburrs `string` by converting
2333
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2334
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2335
- * letters to basic Latin letters and removing
2336
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2337
- *
2338
- * @static
2339
- * @memberOf _
2340
- * @since 3.0.0
2341
- * @category String
2342
- * @param {string} [string=''] The string to deburr.
2343
- * @returns {string} Returns the deburred string.
2344
- * @example
2345
- *
2346
- * _.deburr('déjà vu');
2347
- * // => 'deja vu'
2348
- */
2349
- function deburr(string) {
2350
- string = toString_1(string);
2351
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2352
- }
2353
-
2354
- var deburr_1 = deburr;
2355
-
2356
- /** Used to match words composed of alphanumeric characters. */
2357
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2358
-
2359
- /**
2360
- * Splits an ASCII `string` into an array of its words.
2361
- *
2362
- * @private
2363
- * @param {string} The string to inspect.
2364
- * @returns {Array} Returns the words of `string`.
2365
- */
2366
- function asciiWords(string) {
2367
- return string.match(reAsciiWord) || [];
2368
- }
2369
-
2370
- var _asciiWords = asciiWords;
2371
-
2372
- /** Used to detect strings that need a more robust regexp to match words. */
2373
- var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
2374
-
2375
- /**
2376
- * Checks if `string` contains a word composed of Unicode symbols.
2377
- *
2378
- * @private
2379
- * @param {string} string The string to inspect.
2380
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2381
- */
2382
- function hasUnicodeWord(string) {
2383
- return reHasUnicodeWord.test(string);
2384
- }
2385
-
2386
- var _hasUnicodeWord = hasUnicodeWord;
2387
-
2388
- /** Used to compose unicode character classes. */
2389
- var rsAstralRange = '\\ud800-\\udfff',
2390
- rsComboMarksRange = '\\u0300-\\u036f',
2391
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
2392
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
2393
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
2394
- rsDingbatRange = '\\u2700-\\u27bf',
2395
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2396
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2397
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2398
- rsPunctuationRange = '\\u2000-\\u206f',
2399
- rsSpaceRange = ' \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000',
2400
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2401
- rsVarRange = '\\ufe0e\\ufe0f',
2402
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2403
-
2404
- /** Used to compose unicode capture groups. */
2405
- var rsApos$1 = "['\u2019]",
2406
- rsBreak = '[' + rsBreakRange + ']',
2407
- rsCombo = '[' + rsComboRange + ']',
2408
- rsDigits = '\\d+',
2409
- rsDingbat = '[' + rsDingbatRange + ']',
2410
- rsLower = '[' + rsLowerRange + ']',
2411
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2412
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
2413
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
2414
- rsNonAstral = '[^' + rsAstralRange + ']',
2415
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2416
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2417
- rsUpper = '[' + rsUpperRange + ']',
2418
- rsZWJ = '\\u200d';
2419
-
2420
- /** Used to compose unicode regexes. */
2421
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2422
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2423
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2424
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2425
- reOptMod = rsModifier + '?',
2426
- rsOptVar = '[' + rsVarRange + ']?',
2427
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
2428
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2429
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2430
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
2431
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
2432
-
2433
- /** Used to match complex or compound words. */
2434
- var reUnicodeWord = RegExp([
2435
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2436
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2437
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2438
- rsUpper + '+' + rsOptContrUpper,
2439
- rsOrdUpper,
2440
- rsOrdLower,
2441
- rsDigits,
2442
- rsEmoji
2443
- ].join('|'), 'g');
2444
-
2445
- /**
2446
- * Splits a Unicode `string` into an array of its words.
2447
- *
2448
- * @private
2449
- * @param {string} The string to inspect.
2450
- * @returns {Array} Returns the words of `string`.
2451
- */
2452
- function unicodeWords(string) {
2453
- return string.match(reUnicodeWord) || [];
2454
- }
2455
-
2456
- var _unicodeWords = unicodeWords;
2457
-
2458
- /**
2459
- * Splits `string` into an array of its words.
2460
- *
2461
- * @static
2462
- * @memberOf _
2463
- * @since 3.0.0
2464
- * @category String
2465
- * @param {string} [string=''] The string to inspect.
2466
- * @param {RegExp|string} [pattern] The pattern to match words.
2467
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2468
- * @returns {Array} Returns the words of `string`.
2469
- * @example
2470
- *
2471
- * _.words('fred, barney, & pebbles');
2472
- * // => ['fred', 'barney', 'pebbles']
2473
- *
2474
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2475
- * // => ['fred', 'barney', '&', 'pebbles']
2476
- */
2477
- function words(string, pattern, guard) {
2478
- string = toString_1(string);
2479
- pattern = guard ? undefined : pattern;
2480
-
2481
- if (pattern === undefined) {
2482
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2483
- }
2484
- return string.match(pattern) || [];
2485
- }
2486
-
2487
- var words_1 = words;
2488
-
2489
- /** Used to compose unicode capture groups. */
2490
- var rsApos = "['\u2019]";
2491
-
2492
- /** Used to match apostrophes. */
2493
- var reApos = RegExp(rsApos, 'g');
2494
-
2495
- /**
2496
- * Creates a function like `_.camelCase`.
2497
- *
2498
- * @private
2499
- * @param {Function} callback The function to combine each word.
2500
- * @returns {Function} Returns the new compounder function.
2501
- */
2502
- function createCompounder(callback) {
2503
- return function(string) {
2504
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2505
- };
2506
- }
2507
-
2508
- var _createCompounder = createCompounder;
2509
-
2510
- /**
2511
- * Converts `string`, as space separated words, to upper case.
2512
- *
2513
- * @static
2514
- * @memberOf _
2515
- * @since 4.0.0
2516
- * @category String
2517
- * @param {string} [string=''] The string to convert.
2518
- * @returns {string} Returns the upper cased string.
2519
- * @example
2520
- *
2521
- * _.upperCase('--foo-bar');
2522
- * // => 'FOO BAR'
2523
- *
2524
- * _.upperCase('fooBar');
2525
- * // => 'FOO BAR'
2526
- *
2527
- * _.upperCase('__foo_bar__');
2528
- * // => 'FOO BAR'
2529
- */
2530
- var upperCase = _createCompounder(function(result, word, index) {
2531
- return result + (index ? ' ' : '') + word.toUpperCase();
2532
- });
2533
-
2534
- var upperCase_1 = upperCase;
2535
-
2536
- /**
2537
- * Converts `string`, as space separated words, to lower case.
2538
- *
2539
- * @static
2540
- * @memberOf _
2541
- * @since 4.0.0
2542
- * @category String
2543
- * @param {string} [string=''] The string to convert.
2544
- * @returns {string} Returns the lower cased string.
2545
- * @example
2546
- *
2547
- * _.lowerCase('--Foo-Bar--');
2548
- * // => 'foo bar'
2549
- *
2550
- * _.lowerCase('fooBar');
2551
- * // => 'foo bar'
2552
- *
2553
- * _.lowerCase('__FOO_BAR__');
2554
- * // => 'foo bar'
2555
- */
2556
- var lowerCase = _createCompounder(function(result, word, index) {
2557
- return result + (index ? ' ' : '') + word.toLowerCase();
2558
- });
2559
-
2560
- var lowerCase_1 = lowerCase;
2561
-
2562
46
  function truncate() {
2563
47
  var string = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
2564
48
  var limit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 60;
@@ -2585,7 +69,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2585
69
  var localizedMonth = month;
2586
70
 
2587
71
  if (isUpperCase) {
2588
- localizedMonth = upperCase_1(month);
72
+ localizedMonth = lodash.upperCase(month);
2589
73
  }
2590
74
 
2591
75
  var year = dateTime.getFullYear();
@@ -2598,7 +82,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2598
82
  var timetoShow;
2599
83
 
2600
84
  if (localizedMonths) {
2601
- localizedMonth = get_1(localizedMonths, [lowerCase_1(month)]) || month;
85
+ localizedMonth = lodash.get(localizedMonths, [lodash.lowerCase(month)]) || month;
2602
86
  }
2603
87
 
2604
88
  if (localizedMeridiem) {
@@ -2628,17 +112,17 @@ function formatter(value, unit, suffix, date, config) {
2628
112
  var showDateForUnits = ["day", "week", "month", "year"]; // suffix here refers to ago
2629
113
  // unit here refers to seconds, minute, minutes,...
2630
114
 
2631
- var localizedSuffix = get_1(config, ["localizedPublishTime", suffix]) || suffix;
115
+ var localizedSuffix = lodash.get(config, ["localizedPublishTime", suffix]) || suffix;
2632
116
  var localizedUnitOfTime;
2633
117
 
2634
118
  if (unit === "hour" && value > 23 || showDateForUnits.indexOf(unit) !== -1) {
2635
119
  return timestampToFormat(value, unit, suffix, date, config);
2636
120
  } else if (value > 1) {
2637
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
121
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", "".concat(unit, "s")]) || "".concat(unit, "s");
2638
122
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix);
2639
123
  }
2640
124
 
2641
- localizedUnitOfTime = get_1(config, ["localizedPublishTime", unit]) || unit;
125
+ localizedUnitOfTime = lodash.get(config, ["localizedPublishTime", unit]) || unit;
2642
126
  return "".concat(value, " ").concat(localizedUnitOfTime, " ").concat(localizedSuffix, " ");
2643
127
  }
2644
128
 
@@ -2691,10 +175,10 @@ var clientWidths = {
2691
175
  tablet: 1024
2692
176
  };
2693
177
  var clientWidth = function clientWidth(device) {
2694
- var foundDeviceWidth = get_1(clientWidths, device);
178
+ var foundDeviceWidth = lodash.get(clientWidths, device);
2695
179
 
2696
180
  if (foundDeviceWidth) {
2697
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
181
+ return lodash.get(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2698
182
  }
2699
183
 
2700
184
  return false;
@@ -2727,7 +211,7 @@ var getSlug = function getSlug(collection) {
2727
211
  var isSection = collection.template === "section";
2728
212
 
2729
213
  if (isSection) {
2730
- var sectionId = get_1(collection, ["metadata", "section", "0", "id"], "");
214
+ var sectionId = lodash.get(collection, ["metadata", "section", "0", "id"], "");
2731
215
  var sections = config.sections;
2732
216
  var section = sections && sections.find(function (section) {
2733
217
  return section.id === sectionId;
@@ -2743,11 +227,11 @@ function isExternalStory() {
2743
227
  storyTemplate = _story$storyTemplate === void 0 ? "" : _story$storyTemplate,
2744
228
  _story$metadata = story.metadata,
2745
229
  metadata = _story$metadata === void 0 ? {} : _story$metadata;
2746
- return storyTemplate === "news-elsewhere" ? get_1(metadata, ["reference-url"], "") : "";
230
+ return storyTemplate === "news-elsewhere" ? lodash.get(metadata, ["reference-url"], "") : "";
2747
231
  } // Adds target='_blank' attribute to anchor tags if not present
2748
232
  var isEmpty = function isEmpty(value) {
2749
233
  return value == null || // From standard.js: Always use === - but value == null is allowed to check null || undefined
2750
- _typeof(value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
234
+ _typeof__default["default"](value) === "object" && Object.entries(value).length === 0 && value.constructor === Object || typeof value === "string" && value.trim().length === 0;
2751
235
  };
2752
236
  PropTypes__default["default"].shape({
2753
237
  "sketches-host": PropTypes__default["default"].string,
@@ -2761,7 +245,7 @@ PropTypes__default["default"].shape({
2761
245
  });
2762
246
  var getStoryUrl = function getStoryUrl(story) {
2763
247
  var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
2764
- return get_1(story, ["story-template"]) === "news-elsewhere" ? get_1(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
248
+ return lodash.get(story, ["story-template"]) === "news-elsewhere" ? lodash.get(story, ["metadata", "reference-url"], "") : story.url || defaultValue;
2765
249
  };
2766
250
  var navigateTo = function navigateTo(dispatch) {
2767
251
  var url = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
@@ -2844,7 +328,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2844
328
  _ref$navigate = _ref.navigate,
2845
329
  navigate = _ref$navigate === void 0 ? true : _ref$navigate;
2846
330
  var collectionTitle = useStateValue() || {};
2847
- var showRowTitle = get_1(collectionTitle, ["showRowTitle"], true);
331
+ var showRowTitle = lodash.get(collectionTitle, ["showRowTitle"], true);
2848
332
  var supportedTemplates = ["borderLeft", "borderBottom", "crossLine", "borderBottomFull"];
2849
333
  var templateStyle = supportedTemplates.includes(collectionNameTemplate) ? " collection-".concat(collectionNameTemplate) : "";
2850
334
  var slug = navigate && collection && getSlug(collection, config) || "";
@@ -2920,7 +404,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2920
404
  borderBottom: borderBottomFullStyle
2921
405
  },
2922
406
  "data-test-id": "collection-name",
2923
- className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$f)
407
+ className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName__default["default"]("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$f)
2924
408
  }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
2925
409
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
2926
410
  style: {
@@ -2957,7 +441,7 @@ CollectionNameBase.defaultProps = {
2957
441
 
2958
442
  function mapStateToProps$1(state) {
2959
443
  return {
2960
- config: get_1(state, ["qt", "config"], {})
444
+ config: lodash.get(state, ["qt", "config"], {})
2961
445
  };
2962
446
  }
2963
447
 
@@ -3197,8 +681,8 @@ var Headline = function Headline(_ref) {
3197
681
  enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3,
3198
682
  _premiumStoryIconConf4 = premiumStoryIconConfig.showLiveIcon,
3199
683
  showLiveIcon = _premiumStoryIconConf4 === void 0 ? false : _premiumStoryIconConf4;
3200
- var alternateHeadline = get_1(story, ["alternative", "home", "default", "headline"]);
3201
- var premiumStory = enablePremiumStoryIcon && get_1(story, ["access"]) === "subscription";
684
+ var alternateHeadline = lodash.get(story, ["alternative", "home", "default", "headline"]);
685
+ var premiumStory = enablePremiumStoryIcon && lodash.get(story, ["access"]) === "subscription";
3202
686
  var headline = alternateHeadline || story.headline;
3203
687
  var HeaderTag = "h" + headerLevel;
3204
688
 
@@ -3224,10 +708,10 @@ var Headline = function Headline(_ref) {
3224
708
  var textColor = getTextColor(configData.theme);
3225
709
  var wrapperClass = premiumStory ? "wrapper" : "";
3226
710
  var iconSize = "24px";
3227
- var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get_1(story, ["metadata", "is-closed"], false);
711
+ var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !lodash.get(story, ["metadata", "is-closed"], false);
3228
712
  return /*#__PURE__*/React__default["default"].createElement("div", {
3229
713
  "data-test-id": "headline",
3230
- className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap$e)
714
+ className: "arrow-component arr--headline " + _getClassName__default["default"](wrapperClass, _styleModuleImportMap$e)
3231
715
  }, premiumStory && /*#__PURE__*/React__default["default"].createElement(PremiumStoryIcon, {
3232
716
  width: iconSize,
3233
717
  height: iconSize,
@@ -3239,9 +723,9 @@ var Headline = function Headline(_ref) {
3239
723
  externalLink: isExternalStory(story),
3240
724
  "aria-label": "headline"
3241
725
  }, /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3242
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$e)
726
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$e)
3243
727
  }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline)) : /*#__PURE__*/React__default["default"].createElement(HeaderTag, {
3244
- className: _getClassName("headline ".concat(textColor), _styleModuleImportMap$e)
728
+ className: _getClassName__default["default"]("headline ".concat(textColor), _styleModuleImportMap$e)
3245
729
  }, enableLiveIcon && /*#__PURE__*/React__default["default"].createElement(LiveIcon, null), headline));
3246
730
  };
3247
731
  Headline.propTypes = {
@@ -3279,7 +763,7 @@ var Subheadline = function Subheadline(_ref) {
3279
763
  forceShowAtom = _ref.forceShowAtom,
3280
764
  showFullContent = _ref.showFullContent;
3281
765
  var config = useStateValue() || {};
3282
- var subheadline = forceShowAtom || get_1(config, ["showSubheadline"], true);
766
+ var subheadline = forceShowAtom || lodash.get(config, ["showSubheadline"], true);
3283
767
  if (!subheadline) return null;
3284
768
  var textColor = getTextColor(config.theme);
3285
769
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3287,7 +771,7 @@ var Subheadline = function Subheadline(_ref) {
3287
771
  WebkitLineClamp: lineClamp
3288
772
  },
3289
773
  "data-test-id": "subheadline",
3290
- className: ("p-alt arr--sub-headline arrow-component ".concat(clazzName) ? "p-alt arr--sub-headline arrow-component ".concat(clazzName) + " " : "") + _getClassName("subheadline ".concat(textColor), _styleModuleImportMap$d)
774
+ className: ("p-alt arr--sub-headline arrow-component ".concat(clazzName) ? "p-alt arr--sub-headline arrow-component ".concat(clazzName) + " " : "") + _getClassName__default["default"]("subheadline ".concat(textColor), _styleModuleImportMap$d)
3291
775
  }, showFullContent || typeof lineClamp === "number" ? story.subheadline : truncate(story.subheadline, truncateChars, true));
3292
776
  };
3293
777
  Subheadline.propTypes = {
@@ -3322,13 +806,13 @@ var TimeStamp = function TimeStamp(_ref) {
3322
806
  _ref$config = _ref.config,
3323
807
  config = _ref$config === void 0 ? {} : _ref$config;
3324
808
  var configState = useStateValue() || {};
3325
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
809
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
3326
810
  var time = story["last-published-at"] || story["first-published-at"];
3327
811
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3328
812
  var textColor = getTextColor(configState.theme);
3329
813
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isTime && /*#__PURE__*/React__default["default"].createElement("div", {
3330
814
  "data-test-id": "publish-time",
3331
- className: "time arr--publish-time " + _getClassName("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$c)
815
+ className: "time arr--publish-time " + _getClassName__default["default"]("time ".concat(textColor, " ").concat(isBottomClasses), _styleModuleImportMap$c)
3332
816
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3333
817
  className: "timestamp-m_time-wrapper__3O2lM"
3334
818
  }, getTimeStamp(time, formatter, config))));
@@ -3363,9 +847,9 @@ var AuthorBase = function AuthorBase(_ref) {
3363
847
  _ref$config = _ref.config,
3364
848
  config = _ref$config === void 0 ? {} : _ref$config;
3365
849
  var configData = useStateValue() || {};
3366
- var isAuthor = get_1(configData, ["showAuthor"], true);
850
+ var isAuthor = lodash.get(configData, ["showAuthor"], true);
3367
851
 
3368
- var _get = get_1(story, ["authors", "0"], ""),
852
+ var _get = lodash.get(story, ["authors", "0"], ""),
3369
853
  avatarUrl = _get["avatar-url"],
3370
854
  avatarS3Key = _get["avatar-s3-key"],
3371
855
  authorName = _get.name,
@@ -3373,7 +857,7 @@ var AuthorBase = function AuthorBase(_ref) {
3373
857
 
3374
858
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3375
859
  var textColor = getTextColor(configData.theme);
3376
- var mountAt = get_1(config, ["mountAt"], "");
860
+ var mountAt = lodash.get(config, ["mountAt"], "");
3377
861
 
3378
862
  var authorImage = function authorImage(dir) {
3379
863
  if (!avatarUrl && !avatarS3Key) {
@@ -3382,7 +866,7 @@ var AuthorBase = function AuthorBase(_ref) {
3382
866
 
3383
867
  return /*#__PURE__*/React__default["default"].createElement("div", {
3384
868
  "data-test-id": "author-image",
3385
- className: _getClassName("author-image ".concat(dir, "-image"), _styleModuleImportMap$b)
869
+ className: _getClassName__default["default"]("author-image ".concat(dir, "-image"), _styleModuleImportMap$b)
3386
870
  }, /*#__PURE__*/React__default["default"].createElement("figure", null, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
3387
871
  slug: avatarS3Key,
3388
872
  "aspect-ratio": [1, 1],
@@ -3399,7 +883,7 @@ var AuthorBase = function AuthorBase(_ref) {
3399
883
  var isPrefix = function isPrefix(dir) {
3400
884
  if (prefix) {
3401
885
  return /*#__PURE__*/React__default["default"].createElement("div", {
3402
- className: "arr-author-prefix " + _getClassName("prefix ".concat(textColor), _styleModuleImportMap$b)
886
+ className: "arr-author-prefix " + _getClassName__default["default"]("prefix ".concat(textColor), _styleModuleImportMap$b)
3403
887
  }, prefix);
3404
888
  }
3405
889
 
@@ -3409,16 +893,16 @@ var AuthorBase = function AuthorBase(_ref) {
3409
893
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement(components.Link, {
3410
894
  href: "".concat(mountAt, "/author/") + slug,
3411
895
  "aria-label": "author-name",
3412
- className: "author-name arr-author-name arrow-component " + _getClassName("author ".concat(isBottomClasses), _styleModuleImportMap$b)
896
+ className: "author-name arr-author-name arrow-component " + _getClassName__default["default"]("author ".concat(isBottomClasses), _styleModuleImportMap$b)
3413
897
  }, isPrefix("ltr"), /*#__PURE__*/React__default["default"].createElement("div", {
3414
898
  "data-test-id": "author-name",
3415
- className: "author-name " + _getClassName("author-name ".concat(textColor), _styleModuleImportMap$b)
899
+ className: "author-name " + _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap$b)
3416
900
  }, authorName || story["author-name"]), !prefix && isPrefix("rtl")));
3417
901
  };
3418
902
 
3419
903
  function mapStateToProps(state) {
3420
904
  return {
3421
- config: get_1(state, ["qt", "config"], {})
905
+ config: lodash.get(state, ["qt", "config"], {})
3422
906
  };
3423
907
  }
3424
908
 
@@ -3455,7 +939,7 @@ var Dot = function Dot(_ref) {
3455
939
  _ref$color = _ref.color,
3456
940
  color = _ref$color === void 0 ? "light" : _ref$color;
3457
941
  return /*#__PURE__*/React__default["default"].createElement("div", {
3458
- className: _getClassName(color, _styleModuleImportMap$a)
942
+ className: _getClassName__default["default"](color, _styleModuleImportMap$a)
3459
943
  }, /*#__PURE__*/React__default["default"].createElement("svg", {
3460
944
  xmlns: "http://www.w3.org/2000/svg",
3461
945
  width: width,
@@ -3491,7 +975,7 @@ var Divider = function Divider(_ref) {
3491
975
  _ref$color = _ref.color,
3492
976
  color = _ref$color === void 0 ? "light" : _ref$color;
3493
977
  return /*#__PURE__*/React__default["default"].createElement("div", {
3494
- className: _getClassName(color, _styleModuleImportMap$9)
978
+ className: _getClassName__default["default"](color, _styleModuleImportMap$9)
3495
979
  }, /*#__PURE__*/React__default["default"].createElement("svg", {
3496
980
  xmlns: "http://www.w3.org/2000/svg",
3497
981
  width: width,
@@ -3523,14 +1007,14 @@ var ReadTime = function ReadTime(_ref) {
3523
1007
  _ref$isLightTheme = _ref.isLightTheme,
3524
1008
  isLightTheme = _ref$isLightTheme === void 0 ? false : _ref$isLightTheme;
3525
1009
  var config = useStateValue() || {};
3526
- var showReadTime = get_1(config, ["showReadTime"]) || get_1(opts, ["showReadTime"], true);
3527
- var readTime = get_1(story, ["read-time"], 0);
1010
+ var showReadTime = lodash.get(config, ["showReadTime"]) || lodash.get(opts, ["showReadTime"], true);
1011
+ var readTime = lodash.get(story, ["read-time"], 0);
3528
1012
  var textColor = isLightTheme ? "light" : getTextColor(config.theme);
3529
1013
  if (!showReadTime || !readTime) return null;
3530
- var timeToRead = get_1(opts, ["localizedTimeToRead"]) || "min read";
1014
+ var timeToRead = lodash.get(opts, ["localizedTimeToRead"]) || "min read";
3531
1015
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3532
1016
  "data-test-id": "read-time",
3533
- className: "arrow-component arr--read-time " + _getClassName("read-time-wrapper ".concat(textColor), _styleModuleImportMap$8)
1017
+ className: "arrow-component arr--read-time " + _getClassName__default["default"]("read-time-wrapper ".concat(textColor), _styleModuleImportMap$8)
3534
1018
  }, /*#__PURE__*/React__default["default"].createElement("span", {
3535
1019
  className: "read-time-indicator read-time-m_dot-indicator__3Sqh2"
3536
1020
  }, /*#__PURE__*/React__default["default"].createElement(Dot, {
@@ -3566,9 +1050,9 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3566
1050
  config = _ref$config === void 0 ? {} : _ref$config,
3567
1051
  isLightTheme = _ref.isLightTheme;
3568
1052
  var configState = useStateValue() || {};
3569
- var isAuthor = get_1(config, ["showAuthor"], get_1(configState, ["showAuthor"], true));
3570
- var isTime = get_1(config, ["showTime"], get_1(configState, ["showTime"], true));
3571
- var isReadTime = get_1(configState, ["showReadTime"], true);
1053
+ var isAuthor = lodash.get(config, ["showAuthor"], lodash.get(configState, ["showAuthor"], true));
1054
+ var isTime = lodash.get(config, ["showTime"], lodash.get(configState, ["showTime"], true));
1055
+ var isReadTime = lodash.get(configState, ["showReadTime"], true);
3572
1056
  var isBottomClasses = isBottom ? "bottom-fix" : "";
3573
1057
  var seperatorStyle = separator === "dot" ? "dot" : "dash";
3574
1058
  var textColor = isLightTheme ? "light" : getTextColor(configState.theme);
@@ -3588,7 +1072,7 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3588
1072
  var getTimeStamp = function getTimeStamp() {
3589
1073
  if (!isTime) return null;
3590
1074
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isAuthor && /*#__PURE__*/React__default["default"].createElement("span", {
3591
- className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap$7)
1075
+ className: "arr-separator " + _getClassName__default["default"]("".concat(seperatorStyle), _styleModuleImportMap$7)
3592
1076
  }, getSeparator()), /*#__PURE__*/React__default["default"].createElement(TimeStamp, {
3593
1077
  story: story,
3594
1078
  config: config
@@ -3600,7 +1084,7 @@ var AuthorWithTime = function AuthorWithTime(_ref) {
3600
1084
  };
3601
1085
 
3602
1086
  return /*#__PURE__*/React__default["default"].createElement("div", {
3603
- className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$7)
1087
+ className: "arr--author-time " + _getClassName__default["default"]("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap$7)
3604
1088
  }, isAuthor ? /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Author, {
3605
1089
  story: story,
3606
1090
  isBottom: true,
@@ -3771,7 +1255,7 @@ var HeroImage = function HeroImage(_ref) {
3771
1255
  return null;
3772
1256
  } : _config$StoryTemplate;
3773
1257
  var showImagePlaceholder = reactRedux.useSelector(function (state) {
3774
- return get_1(state, ["qt", "config", "showPlaceholder"]);
1258
+ return lodash.get(state, ["qt", "config", "showPlaceholder"]);
3775
1259
  });
3776
1260
  var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
3777
1261
  var fullBleed = FullBleed ? "" : "with-padding";
@@ -3780,7 +1264,7 @@ var HeroImage = function HeroImage(_ref) {
3780
1264
  var heroImageMobClasses = isHorizontalMobile ? "right-padding-mob" : "";
3781
1265
 
3782
1266
  var getPadding = function getPadding(aspectRatio) {
3783
- var _aspectRatio = _slicedToArray(aspectRatio, 2),
1267
+ var _aspectRatio = _slicedToArray__default["default"](aspectRatio, 2),
3784
1268
  height = _aspectRatio[0],
3785
1269
  width = _aspectRatio[1];
3786
1270
 
@@ -3792,7 +1276,7 @@ var HeroImage = function HeroImage(_ref) {
3792
1276
  return 0;
3793
1277
  };
3794
1278
 
3795
- var _aspectRatio2 = _slicedToArray(aspectRatio, 2),
1279
+ var _aspectRatio2 = _slicedToArray__default["default"](aspectRatio, 2),
3796
1280
  mobileAspectRatio = _aspectRatio2[0],
3797
1281
  _aspectRatio2$ = _aspectRatio2[1],
3798
1282
  desktopAspectRatio = _aspectRatio2$ === void 0 ? mobileAspectRatio : _aspectRatio2$;
@@ -3800,8 +1284,8 @@ var HeroImage = function HeroImage(_ref) {
3800
1284
  var isMobile = clientWidth("mobile");
3801
1285
  var imageAspectRatio = isMobile ? mobileAspectRatio : desktopAspectRatio;
3802
1286
  var imagePadding = isMobile ? getPadding(mobileAspectRatio) : getPadding(desktopAspectRatio);
3803
- var slug = get_1(story, ["hero-image-s3-key"]) || get_1(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
3804
- var hyperLink = get_1(story, ["hero-image-hyperlink"], "");
1287
+ var slug = lodash.get(story, ["hero-image-s3-key"]) || lodash.get(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
1288
+ var hyperLink = lodash.get(story, ["hero-image-hyperlink"], "");
3805
1289
 
3806
1290
  var fallbackImage = function fallbackImage() {
3807
1291
  if (!slug) {
@@ -3810,7 +1294,7 @@ var HeroImage = function HeroImage(_ref) {
3810
1294
  style: {
3811
1295
  paddingTop: imagePadding + "%"
3812
1296
  },
3813
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
1297
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
3814
1298
  }, /*#__PURE__*/React__default["default"].createElement("img", {
3815
1299
  className: "qt-image",
3816
1300
  "data-src": "".concat(fallbackImageUrl),
@@ -3823,7 +1307,7 @@ var HeroImage = function HeroImage(_ref) {
3823
1307
  style: {
3824
1308
  paddingTop: imagePadding + "%"
3825
1309
  },
3826
- className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
1310
+ className: "arr--fallback-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
3827
1311
  }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3828
1312
  storyTemplate: story["story-template"]
3829
1313
  }), /*#__PURE__*/React__default["default"].createElement(FallbackImage, null)) : null);
@@ -3833,7 +1317,7 @@ var HeroImage = function HeroImage(_ref) {
3833
1317
  style: {
3834
1318
  paddingTop: imagePadding + "%"
3835
1319
  },
3836
- className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
1320
+ className: "arr--responsive-hero-image " + _getClassName__default["default"]("image ".concat(getPlaceholderStyleName), _styleModuleImportMap$6)
3837
1321
  }, /*#__PURE__*/React__default["default"].createElement(StoryTemplateIcon, {
3838
1322
  storyTemplate: story["story-template"]
3839
1323
  }), /*#__PURE__*/React__default["default"].createElement(components.ResponsiveHeroImage, {
@@ -3852,13 +1336,13 @@ var HeroImage = function HeroImage(_ref) {
3852
1336
 
3853
1337
  return story && (isStoryPageImage ? /*#__PURE__*/React__default["default"].createElement("div", {
3854
1338
  "data-test-id": "arr--hero-image",
3855
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$6)
1339
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$6)
3856
1340
  }, fallbackImage()) : /*#__PURE__*/React__default["default"].createElement(components.Link, {
3857
1341
  "data-test-id": "arr--hero-image",
3858
1342
  href: getStoryUrl(story, "/".concat(story.slug)),
3859
1343
  externalLink: isExternalStory(story),
3860
1344
  "aria-label": "fallback-hero-image",
3861
- className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$6)
1345
+ className: "arr--hero-image " + _getClassName__default["default"]("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap$6)
3862
1346
  }, fallbackImage()));
3863
1347
  };
3864
1348
  HeroImage.propTypes = {
@@ -3921,9 +1405,9 @@ var SectionTag = function SectionTag(_ref) {
3921
1405
  borderColor = _ref$borderColor === void 0 ? "" : _ref$borderColor,
3922
1406
  isLightTheme = _ref.isLightTheme;
3923
1407
  var config = useStateValue() || {};
3924
- var isSection = get_1(config, ["showSection"], true);
3925
- var templateFromRowContext = get_1(config, ["sectionTagTemplate"]);
3926
- var section = get_1(story, ["sections", 0], "");
1408
+ var isSection = lodash.get(config, ["showSection"], true);
1409
+ var templateFromRowContext = lodash.get(config, ["sectionTagTemplate"]);
1410
+ var section = lodash.get(story, ["sections", 0], "");
3927
1411
  var supportedTemplates = ["borderBottomSml", "borderLeft", "solid"];
3928
1412
  var getUrl = section ? section["section-url"] : "/";
3929
1413
  var colorToApplyContrast = template === "solid" || templateFromRowContext === "solid" ? borderColor : config.theme;
@@ -3945,7 +1429,7 @@ var SectionTag = function SectionTag(_ref) {
3945
1429
  style: {
3946
1430
  backgroundColor: templateStyle.includes("section-solid") ? sectionTagBorderColor : ""
3947
1431
  },
3948
- className: "section-tag arrow-component " + _getClassName("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$5)
1432
+ className: "section-tag arrow-component " + _getClassName__default["default"]("".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$5)
3949
1433
  }, templateStyle.includes("section-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
3950
1434
  className: "section-m_border-left__2oUyp",
3951
1435
  style: {
@@ -4045,7 +1529,7 @@ var StoryCard = function StoryCard(_ref) {
4045
1529
  backgroundColor: theme,
4046
1530
  color: textColor
4047
1531
  },
4048
- className: "arr--story-card " + _getClassName("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$4)
1532
+ className: "arr--story-card " + _getClassName__default["default"]("card ".concat(horizontalCardStyle, " ").concat(borderTemplate, " ").concat(textColor, " ").concat(bgImageClasses, " ").concat(bgImgContentOverlapClass, " ").concat(horizontalMobileClasses), _styleModuleImportMap$4)
4049
1533
  }, children || defaultStorycard);
4050
1534
  };
4051
1535
 
@@ -4086,7 +1570,7 @@ var DefaultStoryCard = function DefaultStoryCard(_ref2) {
4086
1570
  isHorizontalMobile: isHorizontalMobile,
4087
1571
  aspectRatio: aspectRatio
4088
1572
  }), /*#__PURE__*/React__default["default"].createElement("div", {
4089
- className: "arr--story-content " + _getClassName("content ".concat(alignment), _styleModuleImportMap$4)
1573
+ className: "arr--story-content " + _getClassName__default["default"]("content ".concat(alignment), _styleModuleImportMap$4)
4090
1574
  }, /*#__PURE__*/React__default["default"].createElement(SectionTag, {
4091
1575
  story: story,
4092
1576
  borderColor: SectionTagborderColor
@@ -4191,7 +1675,7 @@ var StorycardContent = function StorycardContent(_ref) {
4191
1675
  backgroundColor: theme,
4192
1676
  color: textColor
4193
1677
  },
4194
- className: "arr--content-wrapper " + _getClassName("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$3)
1678
+ className: "arr--content-wrapper " + _getClassName__default["default"]("wrapper ".concat(borderTemplate, " ").concat(horizontalCard), _styleModuleImportMap$3)
4195
1679
  }, children || /*#__PURE__*/React__default["default"].createElement(DefaultStoryCardContent, {
4196
1680
  story: story,
4197
1681
  headerLevel: headerLevel,
@@ -4243,21 +1727,6 @@ StorycardContent.propTypes = {
4243
1727
  config: PropTypes__default["default"].object
4244
1728
  };
4245
1729
 
4246
- function _defineProperty(obj, key, value) {
4247
- if (key in obj) {
4248
- Object.defineProperty(obj, key, {
4249
- value: value,
4250
- enumerable: true,
4251
- configurable: true,
4252
- writable: true
4253
- });
4254
- } else {
4255
- obj[key] = value;
4256
- }
4257
-
4258
- return obj;
4259
- }
4260
-
4261
1730
  var _styleModuleImportMap$2 = {
4262
1731
  "./load-more.m.css": {
4263
1732
  "button": "load-more-m_button__1mmf1",
@@ -4269,7 +1738,7 @@ var _styleModuleImportMap$2 = {
4269
1738
 
4270
1739
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4271
1740
 
4272
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1741
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4273
1742
  var LoadmoreButton = function LoadmoreButton(_ref) {
4274
1743
  var _ref$config = _ref.config,
4275
1744
  config = _ref$config === void 0 ? {} : _ref$config,
@@ -4293,14 +1762,14 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
4293
1762
  return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
4294
1763
  onClick: onClick,
4295
1764
  "data-test-id": "load-more",
4296
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$2)
1765
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$2)
4297
1766
  }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
4298
1767
  href: slug,
4299
1768
  navigateTo: navigate,
4300
1769
  "data-test-id": "load-more",
4301
1770
  "aria-label": "load-more"
4302
1771
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4303
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$2)
1772
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$2)
4304
1773
  }, buttonText));
4305
1774
  };
4306
1775
  LoadmoreButton.propTypes = {
@@ -4395,12 +1864,12 @@ var SliderArrow = function SliderArrow(_ref) {
4395
1864
  var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
4396
1865
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
4397
1866
  onClick: previousClick,
4398
- className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$1)
1867
+ className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName__default["default"]("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$1)
4399
1868
  }, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
4400
1869
  color: textColor === "dark" ? "#fff" : "#333"
4401
1870
  })) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
4402
1871
  onClick: nextClick,
4403
- className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$1)
1872
+ className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName__default["default"]("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$1)
4404
1873
  }, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
4405
1874
  color: textColor === "dark" ? "#fff" : "#333"
4406
1875
  })) : null);
@@ -4451,7 +1920,7 @@ var SliderIndicator = function SliderIndicator(_ref) {
4451
1920
  }
4452
1921
  }, /*#__PURE__*/React__default["default"].createElement("button", {
4453
1922
  "aria-pressed": selectedIndex === index ? "true" : "false",
4454
- className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap)
1923
+ className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName__default["default"]("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap)
4455
1924
  }));
4456
1925
  }));
4457
1926
  };
@@ -4466,7 +1935,7 @@ SliderIndicator.propTypes = {
4466
1935
  var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
4467
1936
  var _node$scrollTo;
4468
1937
 
4469
- node.scrollTo((_node$scrollTo = {}, _defineProperty(_node$scrollTo, horizontal ? "left" : "top", topOrLeft), _defineProperty(_node$scrollTo, "behavior", "smooth"), _node$scrollTo));
1938
+ node.scrollTo((_node$scrollTo = {}, _defineProperty__default["default"](_node$scrollTo, horizontal ? "left" : "top", topOrLeft), _defineProperty__default["default"](_node$scrollTo, "behavior", "smooth"), _node$scrollTo));
4470
1939
  };
4471
1940
 
4472
1941
  var updateItemSelection = function updateItemSelection(index, languageDirection, scroller, noOfItems) {
@@ -4496,17 +1965,17 @@ var ScrollSnap = function ScrollSnap(_ref) {
4496
1965
  slideIndicator = _ref.slideIndicator;
4497
1966
 
4498
1967
  var _useState = React.useState(0),
4499
- _useState2 = _slicedToArray(_useState, 2),
1968
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
4500
1969
  selectedIndex = _useState2[0],
4501
1970
  setSelectedIndex = _useState2[1];
4502
1971
 
4503
1972
  var _useState3 = React.useState(false),
4504
- _useState4 = _slicedToArray(_useState3, 2),
1973
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
4505
1974
  autoScroll = _useState4[0],
4506
1975
  setAutoScroll = _useState4[1];
4507
1976
 
4508
1977
  var languageDirection = reactRedux.useSelector(function (state) {
4509
- return get_1(state, ["qt", "config", "language", "direction"], "ltr");
1978
+ return lodash.get(state, ["qt", "config", "language", "direction"], "ltr");
4510
1979
  });
4511
1980
  var noOfItems = children ? children.length : 0;
4512
1981
  var scroller = React.useRef(null);
@@ -4654,12 +2123,12 @@ var FourStorySliderBase = function FourStorySliderBase(_ref) {
4654
2123
 
4655
2124
  var dispatch = reactRedux.useDispatch();
4656
2125
  var qtConfig = reactRedux.useSelector(function (state) {
4657
- return get_1(state, ["qt", "config"], {});
2126
+ return lodash.get(state, ["qt", "config"], {});
4658
2127
  });
4659
2128
  var url = generateNavigateSlug(collection, qtConfig);
4660
2129
 
4661
2130
  var _useState = React.useState(1),
4662
- _useState2 = _slicedToArray(_useState, 2),
2131
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
4663
2132
  perView = _useState2[0],
4664
2133
  setPerView = _useState2[1];
4665
2134
 
@@ -4667,7 +2136,7 @@ var FourStorySliderBase = function FourStorySliderBase(_ref) {
4667
2136
  var textColor = getTextColor(theme);
4668
2137
  var footerSlotComp = footerSlot ? footerSlot() : null;
4669
2138
  React.useEffect(function () {
4670
- var deviceWidth = get_1(global, ["innerWidth"], 480);
2139
+ var deviceWidth = lodash.get(global, ["innerWidth"], 480);
4671
2140
  if (deviceWidth > 992) setPerView(4);else if (deviceWidth > 764) setPerView(3);else setPerView(1);
4672
2141
  }, []);
4673
2142