@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
@@ -3,1989 +3,48 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var components = require('@quintype/components');
6
+ var lodash = require('lodash');
6
7
  var PropTypes = require('prop-types');
7
8
  var React = require('react');
9
+ require('@babel/runtime/helpers/asyncToGenerator');
10
+ require('@babel/runtime/helpers/typeof');
11
+ require('@babel/runtime/regenerator');
8
12
  require('react-timeago');
9
13
  require('date-fns-tz');
14
+ var _extends = require('@babel/runtime/helpers/extends');
15
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
16
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
10
17
  var reactRedux = require('react-redux');
18
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
19
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
11
20
 
12
21
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
22
 
14
23
  function _interopNamespace(e) {
15
- if (e && e.__esModule) return e;
16
- var n = Object.create(null);
17
- if (e) {
18
- Object.keys(e).forEach(function (k) {
19
- if (k !== 'default') {
20
- var d = Object.getOwnPropertyDescriptor(e, k);
21
- Object.defineProperty(n, k, d.get ? d : {
22
- enumerable: true,
23
- get: function () { return e[k]; }
24
- });
25
- }
26
- });
27
- }
28
- n["default"] = e;
29
- return Object.freeze(n);
30
- }
31
-
32
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
33
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
34
-
35
- /**
36
- * Checks if `value` is classified as an `Array` object.
37
- *
38
- * @static
39
- * @memberOf _
40
- * @since 0.1.0
41
- * @category Lang
42
- * @param {*} value The value to check.
43
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
44
- * @example
45
- *
46
- * _.isArray([1, 2, 3]);
47
- * // => true
48
- *
49
- * _.isArray(document.body.children);
50
- * // => false
51
- *
52
- * _.isArray('abc');
53
- * // => false
54
- *
55
- * _.isArray(_.noop);
56
- * // => false
57
- */
58
- var isArray = Array.isArray;
59
-
60
- var isArray_1 = isArray;
61
-
62
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
63
-
64
- function getDefaultExportFromCjs (x) {
65
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
66
- }
67
-
68
- function createCommonjsModule(fn) {
69
- var module = { exports: {} };
70
- return fn(module, module.exports), module.exports;
71
- }
72
-
73
- /** Detect free variable `global` from Node.js. */
74
-
75
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
76
-
77
- var _freeGlobal = freeGlobal;
78
-
79
- /** Detect free variable `self`. */
80
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
81
-
82
- /** Used as a reference to the global object. */
83
- var root = _freeGlobal || freeSelf || Function('return this')();
84
-
85
- var _root = root;
86
-
87
- /** Built-in value references. */
88
- var Symbol$1 = _root.Symbol;
89
-
90
- var _Symbol = Symbol$1;
91
-
92
- /** Used for built-in method references. */
93
- var objectProto$4 = Object.prototype;
94
-
95
- /** Used to check objects for own properties. */
96
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
97
-
98
- /**
99
- * Used to resolve the
100
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
101
- * of values.
102
- */
103
- var nativeObjectToString$1 = objectProto$4.toString;
104
-
105
- /** Built-in value references. */
106
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
107
-
108
- /**
109
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
110
- *
111
- * @private
112
- * @param {*} value The value to query.
113
- * @returns {string} Returns the raw `toStringTag`.
114
- */
115
- function getRawTag(value) {
116
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
117
- tag = value[symToStringTag$1];
118
-
119
- try {
120
- value[symToStringTag$1] = undefined;
121
- var unmasked = true;
122
- } catch (e) {}
123
-
124
- var result = nativeObjectToString$1.call(value);
125
- if (unmasked) {
126
- if (isOwn) {
127
- value[symToStringTag$1] = tag;
128
- } else {
129
- delete value[symToStringTag$1];
130
- }
131
- }
132
- return result;
133
- }
134
-
135
- var _getRawTag = getRawTag;
136
-
137
- /** Used for built-in method references. */
138
- var objectProto$3 = Object.prototype;
139
-
140
- /**
141
- * Used to resolve the
142
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
143
- * of values.
144
- */
145
- var nativeObjectToString = objectProto$3.toString;
146
-
147
- /**
148
- * Converts `value` to a string using `Object.prototype.toString`.
149
- *
150
- * @private
151
- * @param {*} value The value to convert.
152
- * @returns {string} Returns the converted string.
153
- */
154
- function objectToString(value) {
155
- return nativeObjectToString.call(value);
156
- }
157
-
158
- var _objectToString = objectToString;
159
-
160
- /** `Object#toString` result references. */
161
- var nullTag = '[object Null]',
162
- undefinedTag = '[object Undefined]';
163
-
164
- /** Built-in value references. */
165
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
166
-
167
- /**
168
- * The base implementation of `getTag` without fallbacks for buggy environments.
169
- *
170
- * @private
171
- * @param {*} value The value to query.
172
- * @returns {string} Returns the `toStringTag`.
173
- */
174
- function baseGetTag(value) {
175
- if (value == null) {
176
- return value === undefined ? undefinedTag : nullTag;
177
- }
178
- return (symToStringTag && symToStringTag in Object(value))
179
- ? _getRawTag(value)
180
- : _objectToString(value);
181
- }
182
-
183
- var _baseGetTag = baseGetTag;
184
-
185
- /**
186
- * Checks if `value` is object-like. A value is object-like if it's not `null`
187
- * and has a `typeof` result of "object".
188
- *
189
- * @static
190
- * @memberOf _
191
- * @since 4.0.0
192
- * @category Lang
193
- * @param {*} value The value to check.
194
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
195
- * @example
196
- *
197
- * _.isObjectLike({});
198
- * // => true
199
- *
200
- * _.isObjectLike([1, 2, 3]);
201
- * // => true
202
- *
203
- * _.isObjectLike(_.noop);
204
- * // => false
205
- *
206
- * _.isObjectLike(null);
207
- * // => false
208
- */
209
- function isObjectLike(value) {
210
- return value != null && typeof value == 'object';
211
- }
212
-
213
- var isObjectLike_1 = isObjectLike;
214
-
215
- /** `Object#toString` result references. */
216
- var symbolTag = '[object Symbol]';
217
-
218
- /**
219
- * Checks if `value` is classified as a `Symbol` primitive or object.
220
- *
221
- * @static
222
- * @memberOf _
223
- * @since 4.0.0
224
- * @category Lang
225
- * @param {*} value The value to check.
226
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
227
- * @example
228
- *
229
- * _.isSymbol(Symbol.iterator);
230
- * // => true
231
- *
232
- * _.isSymbol('abc');
233
- * // => false
234
- */
235
- function isSymbol(value) {
236
- return typeof value == 'symbol' ||
237
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
238
- }
239
-
240
- var isSymbol_1 = isSymbol;
241
-
242
- /** Used to match property names within property paths. */
243
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
244
- reIsPlainProp = /^\w*$/;
245
-
246
- /**
247
- * Checks if `value` is a property name and not a property path.
248
- *
249
- * @private
250
- * @param {*} value The value to check.
251
- * @param {Object} [object] The object to query keys on.
252
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
253
- */
254
- function isKey(value, object) {
255
- if (isArray_1(value)) {
256
- return false;
257
- }
258
- var type = typeof value;
259
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
260
- value == null || isSymbol_1(value)) {
261
- return true;
262
- }
263
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
264
- (object != null && value in Object(object));
265
- }
266
-
267
- var _isKey = isKey;
268
-
269
- /**
270
- * Checks if `value` is the
271
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
272
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
273
- *
274
- * @static
275
- * @memberOf _
276
- * @since 0.1.0
277
- * @category Lang
278
- * @param {*} value The value to check.
279
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
280
- * @example
281
- *
282
- * _.isObject({});
283
- * // => true
284
- *
285
- * _.isObject([1, 2, 3]);
286
- * // => true
287
- *
288
- * _.isObject(_.noop);
289
- * // => true
290
- *
291
- * _.isObject(null);
292
- * // => false
293
- */
294
- function isObject(value) {
295
- var type = typeof value;
296
- return value != null && (type == 'object' || type == 'function');
297
- }
298
-
299
- var isObject_1 = isObject;
300
-
301
- /** `Object#toString` result references. */
302
- var asyncTag = '[object AsyncFunction]',
303
- funcTag = '[object Function]',
304
- genTag = '[object GeneratorFunction]',
305
- proxyTag = '[object Proxy]';
306
-
307
- /**
308
- * Checks if `value` is classified as a `Function` object.
309
- *
310
- * @static
311
- * @memberOf _
312
- * @since 0.1.0
313
- * @category Lang
314
- * @param {*} value The value to check.
315
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
316
- * @example
317
- *
318
- * _.isFunction(_);
319
- * // => true
320
- *
321
- * _.isFunction(/abc/);
322
- * // => false
323
- */
324
- function isFunction(value) {
325
- if (!isObject_1(value)) {
326
- return false;
327
- }
328
- // The use of `Object#toString` avoids issues with the `typeof` operator
329
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
330
- var tag = _baseGetTag(value);
331
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
332
- }
333
-
334
- var isFunction_1 = isFunction;
335
-
336
- /** Used to detect overreaching core-js shims. */
337
- var coreJsData = _root['__core-js_shared__'];
338
-
339
- var _coreJsData = coreJsData;
340
-
341
- /** Used to detect methods masquerading as native. */
342
- var maskSrcKey = (function() {
343
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
344
- return uid ? ('Symbol(src)_1.' + uid) : '';
345
- }());
346
-
347
- /**
348
- * Checks if `func` has its source masked.
349
- *
350
- * @private
351
- * @param {Function} func The function to check.
352
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
353
- */
354
- function isMasked(func) {
355
- return !!maskSrcKey && (maskSrcKey in func);
356
- }
357
-
358
- var _isMasked = isMasked;
359
-
360
- /** Used for built-in method references. */
361
- var funcProto$1 = Function.prototype;
362
-
363
- /** Used to resolve the decompiled source of functions. */
364
- var funcToString$1 = funcProto$1.toString;
365
-
366
- /**
367
- * Converts `func` to its source code.
368
- *
369
- * @private
370
- * @param {Function} func The function to convert.
371
- * @returns {string} Returns the source code.
372
- */
373
- function toSource(func) {
374
- if (func != null) {
375
- try {
376
- return funcToString$1.call(func);
377
- } catch (e) {}
378
- try {
379
- return (func + '');
380
- } catch (e) {}
381
- }
382
- return '';
383
- }
384
-
385
- var _toSource = toSource;
386
-
387
- /**
388
- * Used to match `RegExp`
389
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
390
- */
391
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
392
-
393
- /** Used to detect host constructors (Safari). */
394
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
395
-
396
- /** Used for built-in method references. */
397
- var funcProto = Function.prototype,
398
- objectProto$2 = Object.prototype;
399
-
400
- /** Used to resolve the decompiled source of functions. */
401
- var funcToString = funcProto.toString;
402
-
403
- /** Used to check objects for own properties. */
404
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
405
-
406
- /** Used to detect if a method is native. */
407
- var reIsNative = RegExp('^' +
408
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
409
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
410
- );
411
-
412
- /**
413
- * The base implementation of `_.isNative` without bad shim checks.
414
- *
415
- * @private
416
- * @param {*} value The value to check.
417
- * @returns {boolean} Returns `true` if `value` is a native function,
418
- * else `false`.
419
- */
420
- function baseIsNative(value) {
421
- if (!isObject_1(value) || _isMasked(value)) {
422
- return false;
423
- }
424
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
425
- return pattern.test(_toSource(value));
426
- }
427
-
428
- var _baseIsNative = baseIsNative;
429
-
430
- /**
431
- * Gets the value at `key` of `object`.
432
- *
433
- * @private
434
- * @param {Object} [object] The object to query.
435
- * @param {string} key The key of the property to get.
436
- * @returns {*} Returns the property value.
437
- */
438
- function getValue(object, key) {
439
- return object == null ? undefined : object[key];
440
- }
441
-
442
- var _getValue = getValue;
443
-
444
- /**
445
- * Gets the native function at `key` of `object`.
446
- *
447
- * @private
448
- * @param {Object} object The object to query.
449
- * @param {string} key The key of the method to get.
450
- * @returns {*} Returns the function if it's native, else `undefined`.
451
- */
452
- function getNative(object, key) {
453
- var value = _getValue(object, key);
454
- return _baseIsNative(value) ? value : undefined;
455
- }
456
-
457
- var _getNative = getNative;
458
-
459
- /* Built-in method references that are verified to be native. */
460
- var nativeCreate = _getNative(Object, 'create');
461
-
462
- var _nativeCreate = nativeCreate;
463
-
464
- /**
465
- * Removes all key-value entries from the hash.
466
- *
467
- * @private
468
- * @name clear
469
- * @memberOf Hash
470
- */
471
- function hashClear() {
472
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
473
- this.size = 0;
474
- }
475
-
476
- var _hashClear = hashClear;
477
-
478
- /**
479
- * Removes `key` and its value from the hash.
480
- *
481
- * @private
482
- * @name delete
483
- * @memberOf Hash
484
- * @param {Object} hash The hash to modify.
485
- * @param {string} key The key of the value to remove.
486
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
487
- */
488
- function hashDelete(key) {
489
- var result = this.has(key) && delete this.__data__[key];
490
- this.size -= result ? 1 : 0;
491
- return result;
492
- }
493
-
494
- var _hashDelete = hashDelete;
495
-
496
- /** Used to stand-in for `undefined` hash values. */
497
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
498
-
499
- /** Used for built-in method references. */
500
- var objectProto$1 = Object.prototype;
501
-
502
- /** Used to check objects for own properties. */
503
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
504
-
505
- /**
506
- * Gets the hash value for `key`.
507
- *
508
- * @private
509
- * @name get
510
- * @memberOf Hash
511
- * @param {string} key The key of the value to get.
512
- * @returns {*} Returns the entry value.
513
- */
514
- function hashGet(key) {
515
- var data = this.__data__;
516
- if (_nativeCreate) {
517
- var result = data[key];
518
- return result === HASH_UNDEFINED$1 ? undefined : result;
519
- }
520
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
521
- }
522
-
523
- var _hashGet = hashGet;
524
-
525
- /** Used for built-in method references. */
526
- var objectProto = Object.prototype;
527
-
528
- /** Used to check objects for own properties. */
529
- var hasOwnProperty = objectProto.hasOwnProperty;
530
-
531
- /**
532
- * Checks if a hash value for `key` exists.
533
- *
534
- * @private
535
- * @name has
536
- * @memberOf Hash
537
- * @param {string} key The key of the entry to check.
538
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
539
- */
540
- function hashHas(key) {
541
- var data = this.__data__;
542
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
543
- }
544
-
545
- var _hashHas = hashHas;
546
-
547
- /** Used to stand-in for `undefined` hash values. */
548
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
549
-
550
- /**
551
- * Sets the hash `key` to `value`.
552
- *
553
- * @private
554
- * @name set
555
- * @memberOf Hash
556
- * @param {string} key The key of the value to set.
557
- * @param {*} value The value to set.
558
- * @returns {Object} Returns the hash instance.
559
- */
560
- function hashSet(key, value) {
561
- var data = this.__data__;
562
- this.size += this.has(key) ? 0 : 1;
563
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
564
- return this;
565
- }
566
-
567
- var _hashSet = hashSet;
568
-
569
- /**
570
- * Creates a hash object.
571
- *
572
- * @private
573
- * @constructor
574
- * @param {Array} [entries] The key-value pairs to cache.
575
- */
576
- function Hash(entries) {
577
- var index = -1,
578
- length = entries == null ? 0 : entries.length;
579
-
580
- this.clear();
581
- while (++index < length) {
582
- var entry = entries[index];
583
- this.set(entry[0], entry[1]);
584
- }
585
- }
586
-
587
- // Add methods to `Hash`.
588
- Hash.prototype.clear = _hashClear;
589
- Hash.prototype['delete'] = _hashDelete;
590
- Hash.prototype.get = _hashGet;
591
- Hash.prototype.has = _hashHas;
592
- Hash.prototype.set = _hashSet;
593
-
594
- var _Hash = Hash;
595
-
596
- /**
597
- * Removes all key-value entries from the list cache.
598
- *
599
- * @private
600
- * @name clear
601
- * @memberOf ListCache
602
- */
603
- function listCacheClear() {
604
- this.__data__ = [];
605
- this.size = 0;
606
- }
607
-
608
- var _listCacheClear = listCacheClear;
609
-
610
- /**
611
- * Performs a
612
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
613
- * comparison between two values to determine if they are equivalent.
614
- *
615
- * @static
616
- * @memberOf _
617
- * @since 4.0.0
618
- * @category Lang
619
- * @param {*} value The value to compare.
620
- * @param {*} other The other value to compare.
621
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
622
- * @example
623
- *
624
- * var object = { 'a': 1 };
625
- * var other = { 'a': 1 };
626
- *
627
- * _.eq(object, object);
628
- * // => true
629
- *
630
- * _.eq(object, other);
631
- * // => false
632
- *
633
- * _.eq('a', 'a');
634
- * // => true
635
- *
636
- * _.eq('a', Object('a'));
637
- * // => false
638
- *
639
- * _.eq(NaN, NaN);
640
- * // => true
641
- */
642
- function eq(value, other) {
643
- return value === other || (value !== value && other !== other);
644
- }
645
-
646
- var eq_1 = eq;
647
-
648
- /**
649
- * Gets the index at which the `key` is found in `array` of key-value pairs.
650
- *
651
- * @private
652
- * @param {Array} array The array to inspect.
653
- * @param {*} key The key to search for.
654
- * @returns {number} Returns the index of the matched value, else `-1`.
655
- */
656
- function assocIndexOf(array, key) {
657
- var length = array.length;
658
- while (length--) {
659
- if (eq_1(array[length][0], key)) {
660
- return length;
661
- }
662
- }
663
- return -1;
664
- }
665
-
666
- var _assocIndexOf = assocIndexOf;
667
-
668
- /** Used for built-in method references. */
669
- var arrayProto = Array.prototype;
670
-
671
- /** Built-in value references. */
672
- var splice = arrayProto.splice;
673
-
674
- /**
675
- * Removes `key` and its value from the list cache.
676
- *
677
- * @private
678
- * @name delete
679
- * @memberOf ListCache
680
- * @param {string} key The key of the value to remove.
681
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
682
- */
683
- function listCacheDelete(key) {
684
- var data = this.__data__,
685
- index = _assocIndexOf(data, key);
686
-
687
- if (index < 0) {
688
- return false;
689
- }
690
- var lastIndex = data.length - 1;
691
- if (index == lastIndex) {
692
- data.pop();
693
- } else {
694
- splice.call(data, index, 1);
695
- }
696
- --this.size;
697
- return true;
698
- }
699
-
700
- var _listCacheDelete = listCacheDelete;
701
-
702
- /**
703
- * Gets the list cache value for `key`.
704
- *
705
- * @private
706
- * @name get
707
- * @memberOf ListCache
708
- * @param {string} key The key of the value to get.
709
- * @returns {*} Returns the entry value.
710
- */
711
- function listCacheGet(key) {
712
- var data = this.__data__,
713
- index = _assocIndexOf(data, key);
714
-
715
- return index < 0 ? undefined : data[index][1];
716
- }
717
-
718
- var _listCacheGet = listCacheGet;
719
-
720
- /**
721
- * Checks if a list cache value for `key` exists.
722
- *
723
- * @private
724
- * @name has
725
- * @memberOf ListCache
726
- * @param {string} key The key of the entry to check.
727
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
728
- */
729
- function listCacheHas(key) {
730
- return _assocIndexOf(this.__data__, key) > -1;
731
- }
732
-
733
- var _listCacheHas = listCacheHas;
734
-
735
- /**
736
- * Sets the list cache `key` to `value`.
737
- *
738
- * @private
739
- * @name set
740
- * @memberOf ListCache
741
- * @param {string} key The key of the value to set.
742
- * @param {*} value The value to set.
743
- * @returns {Object} Returns the list cache instance.
744
- */
745
- function listCacheSet(key, value) {
746
- var data = this.__data__,
747
- index = _assocIndexOf(data, key);
748
-
749
- if (index < 0) {
750
- ++this.size;
751
- data.push([key, value]);
752
- } else {
753
- data[index][1] = value;
754
- }
755
- return this;
756
- }
757
-
758
- var _listCacheSet = listCacheSet;
759
-
760
- /**
761
- * Creates an list cache object.
762
- *
763
- * @private
764
- * @constructor
765
- * @param {Array} [entries] The key-value pairs to cache.
766
- */
767
- function ListCache(entries) {
768
- var index = -1,
769
- length = entries == null ? 0 : entries.length;
770
-
771
- this.clear();
772
- while (++index < length) {
773
- var entry = entries[index];
774
- this.set(entry[0], entry[1]);
775
- }
776
- }
777
-
778
- // Add methods to `ListCache`.
779
- ListCache.prototype.clear = _listCacheClear;
780
- ListCache.prototype['delete'] = _listCacheDelete;
781
- ListCache.prototype.get = _listCacheGet;
782
- ListCache.prototype.has = _listCacheHas;
783
- ListCache.prototype.set = _listCacheSet;
784
-
785
- var _ListCache = ListCache;
786
-
787
- /* Built-in method references that are verified to be native. */
788
- var Map = _getNative(_root, 'Map');
789
-
790
- var _Map = Map;
791
-
792
- /**
793
- * Removes all key-value entries from the map.
794
- *
795
- * @private
796
- * @name clear
797
- * @memberOf MapCache
798
- */
799
- function mapCacheClear() {
800
- this.size = 0;
801
- this.__data__ = {
802
- 'hash': new _Hash,
803
- 'map': new (_Map || _ListCache),
804
- 'string': new _Hash
805
- };
806
- }
807
-
808
- var _mapCacheClear = mapCacheClear;
809
-
810
- /**
811
- * Checks if `value` is suitable for use as unique object key.
812
- *
813
- * @private
814
- * @param {*} value The value to check.
815
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
816
- */
817
- function isKeyable(value) {
818
- var type = typeof value;
819
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
820
- ? (value !== '__proto__')
821
- : (value === null);
822
- }
823
-
824
- var _isKeyable = isKeyable;
825
-
826
- /**
827
- * Gets the data for `map`.
828
- *
829
- * @private
830
- * @param {Object} map The map to query.
831
- * @param {string} key The reference key.
832
- * @returns {*} Returns the map data.
833
- */
834
- function getMapData(map, key) {
835
- var data = map.__data__;
836
- return _isKeyable(key)
837
- ? data[typeof key == 'string' ? 'string' : 'hash']
838
- : data.map;
839
- }
840
-
841
- var _getMapData = getMapData;
842
-
843
- /**
844
- * Removes `key` and its value from the map.
845
- *
846
- * @private
847
- * @name delete
848
- * @memberOf MapCache
849
- * @param {string} key The key of the value to remove.
850
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
851
- */
852
- function mapCacheDelete(key) {
853
- var result = _getMapData(this, key)['delete'](key);
854
- this.size -= result ? 1 : 0;
855
- return result;
856
- }
857
-
858
- var _mapCacheDelete = mapCacheDelete;
859
-
860
- /**
861
- * Gets the map value for `key`.
862
- *
863
- * @private
864
- * @name get
865
- * @memberOf MapCache
866
- * @param {string} key The key of the value to get.
867
- * @returns {*} Returns the entry value.
868
- */
869
- function mapCacheGet(key) {
870
- return _getMapData(this, key).get(key);
871
- }
872
-
873
- var _mapCacheGet = mapCacheGet;
874
-
875
- /**
876
- * Checks if a map value for `key` exists.
877
- *
878
- * @private
879
- * @name has
880
- * @memberOf MapCache
881
- * @param {string} key The key of the entry to check.
882
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
883
- */
884
- function mapCacheHas(key) {
885
- return _getMapData(this, key).has(key);
886
- }
887
-
888
- var _mapCacheHas = mapCacheHas;
889
-
890
- /**
891
- * Sets the map `key` to `value`.
892
- *
893
- * @private
894
- * @name set
895
- * @memberOf MapCache
896
- * @param {string} key The key of the value to set.
897
- * @param {*} value The value to set.
898
- * @returns {Object} Returns the map cache instance.
899
- */
900
- function mapCacheSet(key, value) {
901
- var data = _getMapData(this, key),
902
- size = data.size;
903
-
904
- data.set(key, value);
905
- this.size += data.size == size ? 0 : 1;
906
- return this;
907
- }
908
-
909
- var _mapCacheSet = mapCacheSet;
910
-
911
- /**
912
- * Creates a map cache object to store key-value pairs.
913
- *
914
- * @private
915
- * @constructor
916
- * @param {Array} [entries] The key-value pairs to cache.
917
- */
918
- function MapCache(entries) {
919
- var index = -1,
920
- length = entries == null ? 0 : entries.length;
921
-
922
- this.clear();
923
- while (++index < length) {
924
- var entry = entries[index];
925
- this.set(entry[0], entry[1]);
926
- }
927
- }
928
-
929
- // Add methods to `MapCache`.
930
- MapCache.prototype.clear = _mapCacheClear;
931
- MapCache.prototype['delete'] = _mapCacheDelete;
932
- MapCache.prototype.get = _mapCacheGet;
933
- MapCache.prototype.has = _mapCacheHas;
934
- MapCache.prototype.set = _mapCacheSet;
935
-
936
- var _MapCache = MapCache;
937
-
938
- /** Error message constants. */
939
- var FUNC_ERROR_TEXT = 'Expected a function';
940
-
941
- /**
942
- * Creates a function that memoizes the result of `func`. If `resolver` is
943
- * provided, it determines the cache key for storing the result based on the
944
- * arguments provided to the memoized function. By default, the first argument
945
- * provided to the memoized function is used as the map cache key. The `func`
946
- * is invoked with the `this` binding of the memoized function.
947
- *
948
- * **Note:** The cache is exposed as the `cache` property on the memoized
949
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
950
- * constructor with one whose instances implement the
951
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
952
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
953
- *
954
- * @static
955
- * @memberOf _
956
- * @since 0.1.0
957
- * @category Function
958
- * @param {Function} func The function to have its output memoized.
959
- * @param {Function} [resolver] The function to resolve the cache key.
960
- * @returns {Function} Returns the new memoized function.
961
- * @example
962
- *
963
- * var object = { 'a': 1, 'b': 2 };
964
- * var other = { 'c': 3, 'd': 4 };
965
- *
966
- * var values = _.memoize(_.values);
967
- * values(object);
968
- * // => [1, 2]
969
- *
970
- * values(other);
971
- * // => [3, 4]
972
- *
973
- * object.a = 2;
974
- * values(object);
975
- * // => [1, 2]
976
- *
977
- * // Modify the result cache.
978
- * values.cache.set(object, ['a', 'b']);
979
- * values(object);
980
- * // => ['a', 'b']
981
- *
982
- * // Replace `_.memoize.Cache`.
983
- * _.memoize.Cache = WeakMap;
984
- */
985
- function memoize(func, resolver) {
986
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
987
- throw new TypeError(FUNC_ERROR_TEXT);
988
- }
989
- var memoized = function() {
990
- var args = arguments,
991
- key = resolver ? resolver.apply(this, args) : args[0],
992
- cache = memoized.cache;
993
-
994
- if (cache.has(key)) {
995
- return cache.get(key);
996
- }
997
- var result = func.apply(this, args);
998
- memoized.cache = cache.set(key, result) || cache;
999
- return result;
1000
- };
1001
- memoized.cache = new (memoize.Cache || _MapCache);
1002
- return memoized;
1003
- }
1004
-
1005
- // Expose `MapCache`.
1006
- memoize.Cache = _MapCache;
1007
-
1008
- var memoize_1 = memoize;
1009
-
1010
- /** Used as the maximum memoize cache size. */
1011
- var MAX_MEMOIZE_SIZE = 500;
1012
-
1013
- /**
1014
- * A specialized version of `_.memoize` which clears the memoized function's
1015
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1016
- *
1017
- * @private
1018
- * @param {Function} func The function to have its output memoized.
1019
- * @returns {Function} Returns the new memoized function.
1020
- */
1021
- function memoizeCapped(func) {
1022
- var result = memoize_1(func, function(key) {
1023
- if (cache.size === MAX_MEMOIZE_SIZE) {
1024
- cache.clear();
1025
- }
1026
- return key;
1027
- });
1028
-
1029
- var cache = result.cache;
1030
- return result;
1031
- }
1032
-
1033
- var _memoizeCapped = memoizeCapped;
1034
-
1035
- /** Used to match property names within property paths. */
1036
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1037
-
1038
- /** Used to match backslashes in property paths. */
1039
- var reEscapeChar = /\\(\\)?/g;
1040
-
1041
- /**
1042
- * Converts `string` to a property path array.
1043
- *
1044
- * @private
1045
- * @param {string} string The string to convert.
1046
- * @returns {Array} Returns the property path array.
1047
- */
1048
- var stringToPath = _memoizeCapped(function(string) {
1049
- var result = [];
1050
- if (string.charCodeAt(0) === 46 /* . */) {
1051
- result.push('');
1052
- }
1053
- string.replace(rePropName, function(match, number, quote, subString) {
1054
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1055
- });
1056
- return result;
1057
- });
1058
-
1059
- var _stringToPath = stringToPath;
1060
-
1061
- /**
1062
- * A specialized version of `_.map` for arrays without support for iteratee
1063
- * shorthands.
1064
- *
1065
- * @private
1066
- * @param {Array} [array] The array to iterate over.
1067
- * @param {Function} iteratee The function invoked per iteration.
1068
- * @returns {Array} Returns the new mapped array.
1069
- */
1070
- function arrayMap(array, iteratee) {
1071
- var index = -1,
1072
- length = array == null ? 0 : array.length,
1073
- result = Array(length);
1074
-
1075
- while (++index < length) {
1076
- result[index] = iteratee(array[index], index, array);
1077
- }
1078
- return result;
1079
- }
1080
-
1081
- var _arrayMap = arrayMap;
1082
-
1083
- /** Used as references for various `Number` constants. */
1084
- var INFINITY$1 = 1 / 0;
1085
-
1086
- /** Used to convert symbols to primitives and strings. */
1087
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1088
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1089
-
1090
- /**
1091
- * The base implementation of `_.toString` which doesn't convert nullish
1092
- * values to empty strings.
1093
- *
1094
- * @private
1095
- * @param {*} value The value to process.
1096
- * @returns {string} Returns the string.
1097
- */
1098
- function baseToString(value) {
1099
- // Exit early for strings to avoid a performance hit in some environments.
1100
- if (typeof value == 'string') {
1101
- return value;
1102
- }
1103
- if (isArray_1(value)) {
1104
- // Recursively convert values (susceptible to call stack limits).
1105
- return _arrayMap(value, baseToString) + '';
1106
- }
1107
- if (isSymbol_1(value)) {
1108
- return symbolToString ? symbolToString.call(value) : '';
1109
- }
1110
- var result = (value + '');
1111
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1112
- }
1113
-
1114
- var _baseToString = baseToString;
1115
-
1116
- /**
1117
- * Converts `value` to a string. An empty string is returned for `null`
1118
- * and `undefined` values. The sign of `-0` is preserved.
1119
- *
1120
- * @static
1121
- * @memberOf _
1122
- * @since 4.0.0
1123
- * @category Lang
1124
- * @param {*} value The value to convert.
1125
- * @returns {string} Returns the converted string.
1126
- * @example
1127
- *
1128
- * _.toString(null);
1129
- * // => ''
1130
- *
1131
- * _.toString(-0);
1132
- * // => '-0'
1133
- *
1134
- * _.toString([1, 2, 3]);
1135
- * // => '1,2,3'
1136
- */
1137
- function toString(value) {
1138
- return value == null ? '' : _baseToString(value);
1139
- }
1140
-
1141
- var toString_1 = toString;
1142
-
1143
- /**
1144
- * Casts `value` to a path array if it's not one.
1145
- *
1146
- * @private
1147
- * @param {*} value The value to inspect.
1148
- * @param {Object} [object] The object to query keys on.
1149
- * @returns {Array} Returns the cast property path array.
1150
- */
1151
- function castPath(value, object) {
1152
- if (isArray_1(value)) {
1153
- return value;
1154
- }
1155
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1156
- }
1157
-
1158
- var _castPath = castPath;
1159
-
1160
- /** Used as references for various `Number` constants. */
1161
- var INFINITY = 1 / 0;
1162
-
1163
- /**
1164
- * Converts `value` to a string key if it's not a string or symbol.
1165
- *
1166
- * @private
1167
- * @param {*} value The value to inspect.
1168
- * @returns {string|symbol} Returns the key.
1169
- */
1170
- function toKey(value) {
1171
- if (typeof value == 'string' || isSymbol_1(value)) {
1172
- return value;
1173
- }
1174
- var result = (value + '');
1175
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1176
- }
1177
-
1178
- var _toKey = toKey;
1179
-
1180
- /**
1181
- * The base implementation of `_.get` without support for default values.
1182
- *
1183
- * @private
1184
- * @param {Object} object The object to query.
1185
- * @param {Array|string} path The path of the property to get.
1186
- * @returns {*} Returns the resolved value.
1187
- */
1188
- function baseGet(object, path) {
1189
- path = _castPath(path, object);
1190
-
1191
- var index = 0,
1192
- length = path.length;
1193
-
1194
- while (object != null && index < length) {
1195
- object = object[_toKey(path[index++])];
1196
- }
1197
- return (index && index == length) ? object : undefined;
1198
- }
1199
-
1200
- var _baseGet = baseGet;
1201
-
1202
- /**
1203
- * Gets the value at `path` of `object`. If the resolved value is
1204
- * `undefined`, the `defaultValue` is returned in its place.
1205
- *
1206
- * @static
1207
- * @memberOf _
1208
- * @since 3.7.0
1209
- * @category Object
1210
- * @param {Object} object The object to query.
1211
- * @param {Array|string} path The path of the property to get.
1212
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1213
- * @returns {*} Returns the resolved value.
1214
- * @example
1215
- *
1216
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1217
- *
1218
- * _.get(object, 'a[0].b.c');
1219
- * // => 3
1220
- *
1221
- * _.get(object, ['a', '0', 'b', 'c']);
1222
- * // => 3
1223
- *
1224
- * _.get(object, 'a.b.c', 'default');
1225
- * // => 'default'
1226
- */
1227
- function get(object, path, defaultValue) {
1228
- var result = object == null ? undefined : _baseGet(object, path);
1229
- return result === undefined ? defaultValue : result;
1230
- }
1231
-
1232
- var get_1 = get;
1233
-
1234
- /**
1235
- * Copyright (c) 2014-present, Facebook, Inc.
1236
- *
1237
- * This source code is licensed under the MIT license found in the
1238
- * LICENSE file in the root directory of this source tree.
1239
- */
1240
-
1241
- createCommonjsModule(function (module) {
1242
- var runtime = (function (exports) {
1243
-
1244
- var Op = Object.prototype;
1245
- var hasOwn = Op.hasOwnProperty;
1246
- var undefined$1; // More compressible than void 0.
1247
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
1248
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
1249
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1250
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1251
-
1252
- function define(obj, key, value) {
1253
- Object.defineProperty(obj, key, {
1254
- value: value,
1255
- enumerable: true,
1256
- configurable: true,
1257
- writable: true
1258
- });
1259
- return obj[key];
1260
- }
1261
- try {
1262
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1263
- define({}, "");
1264
- } catch (err) {
1265
- define = function(obj, key, value) {
1266
- return obj[key] = value;
1267
- };
1268
- }
1269
-
1270
- function wrap(innerFn, outerFn, self, tryLocsList) {
1271
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1272
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1273
- var generator = Object.create(protoGenerator.prototype);
1274
- var context = new Context(tryLocsList || []);
1275
-
1276
- // The ._invoke method unifies the implementations of the .next,
1277
- // .throw, and .return methods.
1278
- generator._invoke = makeInvokeMethod(innerFn, self, context);
1279
-
1280
- return generator;
1281
- }
1282
- exports.wrap = wrap;
1283
-
1284
- // Try/catch helper to minimize deoptimizations. Returns a completion
1285
- // record like context.tryEntries[i].completion. This interface could
1286
- // have been (and was previously) designed to take a closure to be
1287
- // invoked without arguments, but in all the cases we care about we
1288
- // already have an existing method we want to call, so there's no need
1289
- // to create a new function object. We can even get away with assuming
1290
- // the method takes exactly one argument, since that happens to be true
1291
- // in every case, so we don't have to touch the arguments object. The
1292
- // only additional allocation required is the completion record, which
1293
- // has a stable shape and so hopefully should be cheap to allocate.
1294
- function tryCatch(fn, obj, arg) {
1295
- try {
1296
- return { type: "normal", arg: fn.call(obj, arg) };
1297
- } catch (err) {
1298
- return { type: "throw", arg: err };
1299
- }
1300
- }
1301
-
1302
- var GenStateSuspendedStart = "suspendedStart";
1303
- var GenStateSuspendedYield = "suspendedYield";
1304
- var GenStateExecuting = "executing";
1305
- var GenStateCompleted = "completed";
1306
-
1307
- // Returning this object from the innerFn has the same effect as
1308
- // breaking out of the dispatch switch statement.
1309
- var ContinueSentinel = {};
1310
-
1311
- // Dummy constructor functions that we use as the .constructor and
1312
- // .constructor.prototype properties for functions that return Generator
1313
- // objects. For full spec compliance, you may wish to configure your
1314
- // minifier not to mangle the names of these two functions.
1315
- function Generator() {}
1316
- function GeneratorFunction() {}
1317
- function GeneratorFunctionPrototype() {}
1318
-
1319
- // This is a polyfill for %IteratorPrototype% for environments that
1320
- // don't natively support it.
1321
- var IteratorPrototype = {};
1322
- define(IteratorPrototype, iteratorSymbol, function () {
1323
- return this;
1324
- });
1325
-
1326
- var getProto = Object.getPrototypeOf;
1327
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1328
- if (NativeIteratorPrototype &&
1329
- NativeIteratorPrototype !== Op &&
1330
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1331
- // This environment has a native %IteratorPrototype%; use it instead
1332
- // of the polyfill.
1333
- IteratorPrototype = NativeIteratorPrototype;
1334
- }
1335
-
1336
- var Gp = GeneratorFunctionPrototype.prototype =
1337
- Generator.prototype = Object.create(IteratorPrototype);
1338
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
1339
- define(Gp, "constructor", GeneratorFunctionPrototype);
1340
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
1341
- GeneratorFunction.displayName = define(
1342
- GeneratorFunctionPrototype,
1343
- toStringTagSymbol,
1344
- "GeneratorFunction"
1345
- );
1346
-
1347
- // Helper for defining the .next, .throw, and .return methods of the
1348
- // Iterator interface in terms of a single ._invoke method.
1349
- function defineIteratorMethods(prototype) {
1350
- ["next", "throw", "return"].forEach(function(method) {
1351
- define(prototype, method, function(arg) {
1352
- return this._invoke(method, arg);
1353
- });
1354
- });
1355
- }
1356
-
1357
- exports.isGeneratorFunction = function(genFun) {
1358
- var ctor = typeof genFun === "function" && genFun.constructor;
1359
- return ctor
1360
- ? ctor === GeneratorFunction ||
1361
- // For the native GeneratorFunction constructor, the best we can
1362
- // do is to check its .name property.
1363
- (ctor.displayName || ctor.name) === "GeneratorFunction"
1364
- : false;
1365
- };
1366
-
1367
- exports.mark = function(genFun) {
1368
- if (Object.setPrototypeOf) {
1369
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1370
- } else {
1371
- genFun.__proto__ = GeneratorFunctionPrototype;
1372
- define(genFun, toStringTagSymbol, "GeneratorFunction");
1373
- }
1374
- genFun.prototype = Object.create(Gp);
1375
- return genFun;
1376
- };
1377
-
1378
- // Within the body of any async function, `await x` is transformed to
1379
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1380
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
1381
- // meant to be awaited.
1382
- exports.awrap = function(arg) {
1383
- return { __await: arg };
1384
- };
1385
-
1386
- function AsyncIterator(generator, PromiseImpl) {
1387
- function invoke(method, arg, resolve, reject) {
1388
- var record = tryCatch(generator[method], generator, arg);
1389
- if (record.type === "throw") {
1390
- reject(record.arg);
1391
- } else {
1392
- var result = record.arg;
1393
- var value = result.value;
1394
- if (value &&
1395
- typeof value === "object" &&
1396
- hasOwn.call(value, "__await")) {
1397
- return PromiseImpl.resolve(value.__await).then(function(value) {
1398
- invoke("next", value, resolve, reject);
1399
- }, function(err) {
1400
- invoke("throw", err, resolve, reject);
1401
- });
1402
- }
1403
-
1404
- return PromiseImpl.resolve(value).then(function(unwrapped) {
1405
- // When a yielded Promise is resolved, its final value becomes
1406
- // the .value of the Promise<{value,done}> result for the
1407
- // current iteration.
1408
- result.value = unwrapped;
1409
- resolve(result);
1410
- }, function(error) {
1411
- // If a rejected Promise was yielded, throw the rejection back
1412
- // into the async generator function so it can be handled there.
1413
- return invoke("throw", error, resolve, reject);
1414
- });
1415
- }
1416
- }
1417
-
1418
- var previousPromise;
1419
-
1420
- function enqueue(method, arg) {
1421
- function callInvokeWithMethodAndArg() {
1422
- return new PromiseImpl(function(resolve, reject) {
1423
- invoke(method, arg, resolve, reject);
1424
- });
1425
- }
1426
-
1427
- return previousPromise =
1428
- // If enqueue has been called before, then we want to wait until
1429
- // all previous Promises have been resolved before calling invoke,
1430
- // so that results are always delivered in the correct order. If
1431
- // enqueue has not been called before, then it is important to
1432
- // call invoke immediately, without waiting on a callback to fire,
1433
- // so that the async generator function has the opportunity to do
1434
- // any necessary setup in a predictable way. This predictability
1435
- // is why the Promise constructor synchronously invokes its
1436
- // executor callback, and why async functions synchronously
1437
- // execute code before the first await. Since we implement simple
1438
- // async functions in terms of async generators, it is especially
1439
- // important to get this right, even though it requires care.
1440
- previousPromise ? previousPromise.then(
1441
- callInvokeWithMethodAndArg,
1442
- // Avoid propagating failures to Promises returned by later
1443
- // invocations of the iterator.
1444
- callInvokeWithMethodAndArg
1445
- ) : callInvokeWithMethodAndArg();
1446
- }
1447
-
1448
- // Define the unified helper method that is used to implement .next,
1449
- // .throw, and .return (see defineIteratorMethods).
1450
- this._invoke = enqueue;
1451
- }
1452
-
1453
- defineIteratorMethods(AsyncIterator.prototype);
1454
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1455
- return this;
1456
- });
1457
- exports.AsyncIterator = AsyncIterator;
1458
-
1459
- // Note that simple async functions are implemented on top of
1460
- // AsyncIterator objects; they just return a Promise for the value of
1461
- // the final result produced by the iterator.
1462
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1463
- if (PromiseImpl === void 0) PromiseImpl = Promise;
1464
-
1465
- var iter = new AsyncIterator(
1466
- wrap(innerFn, outerFn, self, tryLocsList),
1467
- PromiseImpl
1468
- );
1469
-
1470
- return exports.isGeneratorFunction(outerFn)
1471
- ? iter // If outerFn is a generator, return the full iterator.
1472
- : iter.next().then(function(result) {
1473
- return result.done ? result.value : iter.next();
24
+ if (e && e.__esModule) return e;
25
+ var n = Object.create(null);
26
+ if (e) {
27
+ Object.keys(e).forEach(function (k) {
28
+ if (k !== 'default') {
29
+ var d = Object.getOwnPropertyDescriptor(e, k);
30
+ Object.defineProperty(n, k, d.get ? d : {
31
+ enumerable: true,
32
+ get: function () { return e[k]; }
1474
33
  });
1475
- };
1476
-
1477
- function makeInvokeMethod(innerFn, self, context) {
1478
- var state = GenStateSuspendedStart;
1479
-
1480
- return function invoke(method, arg) {
1481
- if (state === GenStateExecuting) {
1482
- throw new Error("Generator is already running");
1483
- }
1484
-
1485
- if (state === GenStateCompleted) {
1486
- if (method === "throw") {
1487
- throw arg;
1488
- }
1489
-
1490
- // Be forgiving, per 25.3.3.3.3 of the spec:
1491
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
1492
- return doneResult();
1493
- }
1494
-
1495
- context.method = method;
1496
- context.arg = arg;
1497
-
1498
- while (true) {
1499
- var delegate = context.delegate;
1500
- if (delegate) {
1501
- var delegateResult = maybeInvokeDelegate(delegate, context);
1502
- if (delegateResult) {
1503
- if (delegateResult === ContinueSentinel) continue;
1504
- return delegateResult;
1505
- }
1506
- }
1507
-
1508
- if (context.method === "next") {
1509
- // Setting context._sent for legacy support of Babel's
1510
- // function.sent implementation.
1511
- context.sent = context._sent = context.arg;
1512
-
1513
- } else if (context.method === "throw") {
1514
- if (state === GenStateSuspendedStart) {
1515
- state = GenStateCompleted;
1516
- throw context.arg;
1517
- }
1518
-
1519
- context.dispatchException(context.arg);
1520
-
1521
- } else if (context.method === "return") {
1522
- context.abrupt("return", context.arg);
1523
- }
1524
-
1525
- state = GenStateExecuting;
1526
-
1527
- var record = tryCatch(innerFn, self, context);
1528
- if (record.type === "normal") {
1529
- // If an exception is thrown from innerFn, we leave state ===
1530
- // GenStateExecuting and loop back for another invocation.
1531
- state = context.done
1532
- ? GenStateCompleted
1533
- : GenStateSuspendedYield;
1534
-
1535
- if (record.arg === ContinueSentinel) {
1536
- continue;
1537
- }
1538
-
1539
- return {
1540
- value: record.arg,
1541
- done: context.done
1542
- };
1543
-
1544
- } else if (record.type === "throw") {
1545
- state = GenStateCompleted;
1546
- // Dispatch the exception by looping back around to the
1547
- // context.dispatchException(context.arg) call above.
1548
- context.method = "throw";
1549
- context.arg = record.arg;
1550
- }
1551
- }
1552
- };
1553
- }
1554
-
1555
- // Call delegate.iterator[context.method](context.arg) and handle the
1556
- // result, either by returning a { value, done } result from the
1557
- // delegate iterator, or by modifying context.method and context.arg,
1558
- // setting context.delegate to null, and returning the ContinueSentinel.
1559
- function maybeInvokeDelegate(delegate, context) {
1560
- var method = delegate.iterator[context.method];
1561
- if (method === undefined$1) {
1562
- // A .throw or .return when the delegate iterator has no .throw
1563
- // method always terminates the yield* loop.
1564
- context.delegate = null;
1565
-
1566
- if (context.method === "throw") {
1567
- // Note: ["return"] must be used for ES3 parsing compatibility.
1568
- if (delegate.iterator["return"]) {
1569
- // If the delegate iterator has a return method, give it a
1570
- // chance to clean up.
1571
- context.method = "return";
1572
- context.arg = undefined$1;
1573
- maybeInvokeDelegate(delegate, context);
1574
-
1575
- if (context.method === "throw") {
1576
- // If maybeInvokeDelegate(context) changed context.method from
1577
- // "return" to "throw", let that override the TypeError below.
1578
- return ContinueSentinel;
1579
- }
1580
- }
1581
-
1582
- context.method = "throw";
1583
- context.arg = new TypeError(
1584
- "The iterator does not provide a 'throw' method");
1585
- }
1586
-
1587
- return ContinueSentinel;
1588
- }
1589
-
1590
- var record = tryCatch(method, delegate.iterator, context.arg);
1591
-
1592
- if (record.type === "throw") {
1593
- context.method = "throw";
1594
- context.arg = record.arg;
1595
- context.delegate = null;
1596
- return ContinueSentinel;
1597
- }
1598
-
1599
- var info = record.arg;
1600
-
1601
- if (! info) {
1602
- context.method = "throw";
1603
- context.arg = new TypeError("iterator result is not an object");
1604
- context.delegate = null;
1605
- return ContinueSentinel;
1606
- }
1607
-
1608
- if (info.done) {
1609
- // Assign the result of the finished delegate to the temporary
1610
- // variable specified by delegate.resultName (see delegateYield).
1611
- context[delegate.resultName] = info.value;
1612
-
1613
- // Resume execution at the desired location (see delegateYield).
1614
- context.next = delegate.nextLoc;
1615
-
1616
- // If context.method was "throw" but the delegate handled the
1617
- // exception, let the outer generator proceed normally. If
1618
- // context.method was "next", forget context.arg since it has been
1619
- // "consumed" by the delegate iterator. If context.method was
1620
- // "return", allow the original .return call to continue in the
1621
- // outer generator.
1622
- if (context.method !== "return") {
1623
- context.method = "next";
1624
- context.arg = undefined$1;
1625
- }
1626
-
1627
- } else {
1628
- // Re-yield the result returned by the delegate method.
1629
- return info;
1630
- }
1631
-
1632
- // The delegate iterator is finished, so forget it and continue with
1633
- // the outer generator.
1634
- context.delegate = null;
1635
- return ContinueSentinel;
1636
- }
1637
-
1638
- // Define Generator.prototype.{next,throw,return} in terms of the
1639
- // unified ._invoke helper method.
1640
- defineIteratorMethods(Gp);
1641
-
1642
- define(Gp, toStringTagSymbol, "Generator");
1643
-
1644
- // A Generator should always return itself as the iterator object when the
1645
- // @@iterator function is called on it. Some browsers' implementations of the
1646
- // iterator prototype chain incorrectly implement this, causing the Generator
1647
- // object to not be returned from this call. This ensures that doesn't happen.
1648
- // See https://github.com/facebook/regenerator/issues/274 for more details.
1649
- define(Gp, iteratorSymbol, function() {
1650
- return this;
1651
- });
1652
-
1653
- define(Gp, "toString", function() {
1654
- return "[object Generator]";
1655
- });
1656
-
1657
- function pushTryEntry(locs) {
1658
- var entry = { tryLoc: locs[0] };
1659
-
1660
- if (1 in locs) {
1661
- entry.catchLoc = locs[1];
1662
- }
1663
-
1664
- if (2 in locs) {
1665
- entry.finallyLoc = locs[2];
1666
- entry.afterLoc = locs[3];
1667
- }
1668
-
1669
- this.tryEntries.push(entry);
1670
- }
1671
-
1672
- function resetTryEntry(entry) {
1673
- var record = entry.completion || {};
1674
- record.type = "normal";
1675
- delete record.arg;
1676
- entry.completion = record;
1677
- }
1678
-
1679
- function Context(tryLocsList) {
1680
- // The root entry object (effectively a try statement without a catch
1681
- // or a finally block) gives us a place to store values thrown from
1682
- // locations where there is no enclosing try statement.
1683
- this.tryEntries = [{ tryLoc: "root" }];
1684
- tryLocsList.forEach(pushTryEntry, this);
1685
- this.reset(true);
1686
- }
1687
-
1688
- exports.keys = function(object) {
1689
- var keys = [];
1690
- for (var key in object) {
1691
- keys.push(key);
1692
- }
1693
- keys.reverse();
1694
-
1695
- // Rather than returning an object with a next method, we keep
1696
- // things simple and return the next function itself.
1697
- return function next() {
1698
- while (keys.length) {
1699
- var key = keys.pop();
1700
- if (key in object) {
1701
- next.value = key;
1702
- next.done = false;
1703
- return next;
1704
- }
1705
- }
1706
-
1707
- // To avoid creating an additional object, we just hang the .value
1708
- // and .done properties off the next function object itself. This
1709
- // also ensures that the minifier will not anonymize the function.
1710
- next.done = true;
1711
- return next;
1712
- };
1713
- };
1714
-
1715
- function values(iterable) {
1716
- if (iterable) {
1717
- var iteratorMethod = iterable[iteratorSymbol];
1718
- if (iteratorMethod) {
1719
- return iteratorMethod.call(iterable);
1720
- }
1721
-
1722
- if (typeof iterable.next === "function") {
1723
- return iterable;
1724
- }
1725
-
1726
- if (!isNaN(iterable.length)) {
1727
- var i = -1, next = function next() {
1728
- while (++i < iterable.length) {
1729
- if (hasOwn.call(iterable, i)) {
1730
- next.value = iterable[i];
1731
- next.done = false;
1732
- return next;
1733
- }
1734
- }
1735
-
1736
- next.value = undefined$1;
1737
- next.done = true;
1738
-
1739
- return next;
1740
- };
1741
-
1742
- return next.next = next;
1743
- }
1744
- }
1745
-
1746
- // Return an iterator with no values.
1747
- return { next: doneResult };
1748
- }
1749
- exports.values = values;
1750
-
1751
- function doneResult() {
1752
- return { value: undefined$1, done: true };
1753
- }
1754
-
1755
- Context.prototype = {
1756
- constructor: Context,
1757
-
1758
- reset: function(skipTempReset) {
1759
- this.prev = 0;
1760
- this.next = 0;
1761
- // Resetting context._sent for legacy support of Babel's
1762
- // function.sent implementation.
1763
- this.sent = this._sent = undefined$1;
1764
- this.done = false;
1765
- this.delegate = null;
1766
-
1767
- this.method = "next";
1768
- this.arg = undefined$1;
1769
-
1770
- this.tryEntries.forEach(resetTryEntry);
1771
-
1772
- if (!skipTempReset) {
1773
- for (var name in this) {
1774
- // Not sure about the optimal order of these conditions:
1775
- if (name.charAt(0) === "t" &&
1776
- hasOwn.call(this, name) &&
1777
- !isNaN(+name.slice(1))) {
1778
- this[name] = undefined$1;
1779
- }
1780
- }
1781
- }
1782
- },
1783
-
1784
- stop: function() {
1785
- this.done = true;
1786
-
1787
- var rootEntry = this.tryEntries[0];
1788
- var rootRecord = rootEntry.completion;
1789
- if (rootRecord.type === "throw") {
1790
- throw rootRecord.arg;
1791
- }
1792
-
1793
- return this.rval;
1794
- },
1795
-
1796
- dispatchException: function(exception) {
1797
- if (this.done) {
1798
- throw exception;
1799
- }
1800
-
1801
- var context = this;
1802
- function handle(loc, caught) {
1803
- record.type = "throw";
1804
- record.arg = exception;
1805
- context.next = loc;
1806
-
1807
- if (caught) {
1808
- // If the dispatched exception was caught by a catch block,
1809
- // then let that catch block handle the exception normally.
1810
- context.method = "next";
1811
- context.arg = undefined$1;
1812
- }
1813
-
1814
- return !! caught;
1815
- }
1816
-
1817
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1818
- var entry = this.tryEntries[i];
1819
- var record = entry.completion;
1820
-
1821
- if (entry.tryLoc === "root") {
1822
- // Exception thrown outside of any try block that could handle
1823
- // it, so set the completion value of the entire function to
1824
- // throw the exception.
1825
- return handle("end");
1826
- }
1827
-
1828
- if (entry.tryLoc <= this.prev) {
1829
- var hasCatch = hasOwn.call(entry, "catchLoc");
1830
- var hasFinally = hasOwn.call(entry, "finallyLoc");
1831
-
1832
- if (hasCatch && hasFinally) {
1833
- if (this.prev < entry.catchLoc) {
1834
- return handle(entry.catchLoc, true);
1835
- } else if (this.prev < entry.finallyLoc) {
1836
- return handle(entry.finallyLoc);
1837
- }
1838
-
1839
- } else if (hasCatch) {
1840
- if (this.prev < entry.catchLoc) {
1841
- return handle(entry.catchLoc, true);
1842
- }
1843
-
1844
- } else if (hasFinally) {
1845
- if (this.prev < entry.finallyLoc) {
1846
- return handle(entry.finallyLoc);
1847
- }
1848
-
1849
- } else {
1850
- throw new Error("try statement without catch or finally");
1851
- }
1852
- }
1853
- }
1854
- },
1855
-
1856
- abrupt: function(type, arg) {
1857
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1858
- var entry = this.tryEntries[i];
1859
- if (entry.tryLoc <= this.prev &&
1860
- hasOwn.call(entry, "finallyLoc") &&
1861
- this.prev < entry.finallyLoc) {
1862
- var finallyEntry = entry;
1863
- break;
1864
- }
1865
- }
1866
-
1867
- if (finallyEntry &&
1868
- (type === "break" ||
1869
- type === "continue") &&
1870
- finallyEntry.tryLoc <= arg &&
1871
- arg <= finallyEntry.finallyLoc) {
1872
- // Ignore the finally entry if control is not jumping to a
1873
- // location outside the try/catch block.
1874
- finallyEntry = null;
1875
- }
1876
-
1877
- var record = finallyEntry ? finallyEntry.completion : {};
1878
- record.type = type;
1879
- record.arg = arg;
1880
-
1881
- if (finallyEntry) {
1882
- this.method = "next";
1883
- this.next = finallyEntry.finallyLoc;
1884
- return ContinueSentinel;
1885
- }
1886
-
1887
- return this.complete(record);
1888
- },
1889
-
1890
- complete: function(record, afterLoc) {
1891
- if (record.type === "throw") {
1892
- throw record.arg;
1893
- }
1894
-
1895
- if (record.type === "break" ||
1896
- record.type === "continue") {
1897
- this.next = record.arg;
1898
- } else if (record.type === "return") {
1899
- this.rval = this.arg = record.arg;
1900
- this.method = "return";
1901
- this.next = "end";
1902
- } else if (record.type === "normal" && afterLoc) {
1903
- this.next = afterLoc;
1904
- }
1905
-
1906
- return ContinueSentinel;
1907
- },
1908
-
1909
- finish: function(finallyLoc) {
1910
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1911
- var entry = this.tryEntries[i];
1912
- if (entry.finallyLoc === finallyLoc) {
1913
- this.complete(entry.completion, entry.afterLoc);
1914
- resetTryEntry(entry);
1915
- return ContinueSentinel;
1916
- }
1917
- }
1918
- },
1919
-
1920
- "catch": function(tryLoc) {
1921
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1922
- var entry = this.tryEntries[i];
1923
- if (entry.tryLoc === tryLoc) {
1924
- var record = entry.completion;
1925
- if (record.type === "throw") {
1926
- var thrown = record.arg;
1927
- resetTryEntry(entry);
1928
- }
1929
- return thrown;
1930
- }
1931
- }
1932
-
1933
- // The context.catch method must only be called with a location
1934
- // argument that corresponds to a known catch block.
1935
- throw new Error("illegal catch attempt");
1936
- },
1937
-
1938
- delegateYield: function(iterable, resultName, nextLoc) {
1939
- this.delegate = {
1940
- iterator: values(iterable),
1941
- resultName: resultName,
1942
- nextLoc: nextLoc
1943
- };
1944
-
1945
- if (this.method === "next") {
1946
- // Deliberately forget the last sent value so that we don't
1947
- // accidentally pass it on to the delegate.
1948
- this.arg = undefined$1;
1949
34
  }
1950
-
1951
- return ContinueSentinel;
1952
- }
1953
- };
1954
-
1955
- // Regardless of whether this script is executing as a CommonJS module
1956
- // or not, return the runtime object so that we can declare the variable
1957
- // regeneratorRuntime in the outer scope, which allows this module to be
1958
- // injected easily by `bin/regenerator --include-runtime script.js`.
1959
- return exports;
1960
-
1961
- }(
1962
- // If this script is executing as a CommonJS module, use module.exports
1963
- // as the regeneratorRuntime namespace. Otherwise create a new empty
1964
- // object. Either way, the resulting object will be used to initialize
1965
- // the regeneratorRuntime variable at the top of this file.
1966
- module.exports
1967
- ));
1968
-
1969
- try {
1970
- regeneratorRuntime = runtime;
1971
- } catch (accidentalStrictMode) {
1972
- // This module should not be running in strict mode, so the above
1973
- // assignment should always work unless something is misconfigured. Just
1974
- // in case runtime.js accidentally runs in strict mode, in modern engines
1975
- // we can explicitly access globalThis. In older engines we can escape
1976
- // strict mode using a global Function call. This could conceivably fail
1977
- // if a Content Security Policy forbids using Function, but in that case
1978
- // the proper solution is to fix the accidental strict mode problem. If
1979
- // you've misconfigured your bundler to force strict mode and applied a
1980
- // CSP to forbid Function, and you're not willing to fix either of those
1981
- // problems, please detail your unique predicament in a GitHub issue.
1982
- if (typeof globalThis === "object") {
1983
- globalThis.regeneratorRuntime = runtime;
1984
- } else {
1985
- Function("r", "regeneratorRuntime = r")(runtime);
35
+ });
1986
36
  }
37
+ n["default"] = e;
38
+ return Object.freeze(n);
1987
39
  }
1988
- });
40
+
41
+ var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
42
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
43
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
44
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
45
+ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
46
+ var _objectWithoutProperties__default = /*#__PURE__*/_interopDefaultLegacy(_objectWithoutProperties);
47
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
1989
48
 
1990
49
  var hexToRGB = function hexToRGB(hex) {
1991
50
  var r = parseInt(hex.slice(1, 3), 16);
@@ -2028,100 +87,6 @@ var shapeStory = PropTypes__default["default"].shape({
2028
87
  subheadline: PropTypes__default["default"].string
2029
88
  });
2030
89
 
2031
- function _extends() {
2032
- _extends = Object.assign || function (target) {
2033
- for (var i = 1; i < arguments.length; i++) {
2034
- var source = arguments[i];
2035
-
2036
- for (var key in source) {
2037
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2038
- target[key] = source[key];
2039
- }
2040
- }
2041
- }
2042
-
2043
- return target;
2044
- };
2045
-
2046
- return _extends.apply(this, arguments);
2047
- }
2048
-
2049
- function _defineProperty(obj, key, value) {
2050
- if (key in obj) {
2051
- Object.defineProperty(obj, key, {
2052
- value: value,
2053
- enumerable: true,
2054
- configurable: true,
2055
- writable: true
2056
- });
2057
- } else {
2058
- obj[key] = value;
2059
- }
2060
-
2061
- return obj;
2062
- }
2063
-
2064
- function _arrayWithHoles(arr) {
2065
- if (Array.isArray(arr)) return arr;
2066
- }
2067
-
2068
- function _iterableToArrayLimit(arr, i) {
2069
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2070
-
2071
- if (_i == null) return;
2072
- var _arr = [];
2073
- var _n = true;
2074
- var _d = false;
2075
-
2076
- var _s, _e;
2077
-
2078
- try {
2079
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
2080
- _arr.push(_s.value);
2081
-
2082
- if (i && _arr.length === i) break;
2083
- }
2084
- } catch (err) {
2085
- _d = true;
2086
- _e = err;
2087
- } finally {
2088
- try {
2089
- if (!_n && _i["return"] != null) _i["return"]();
2090
- } finally {
2091
- if (_d) throw _e;
2092
- }
2093
- }
2094
-
2095
- return _arr;
2096
- }
2097
-
2098
- function _arrayLikeToArray(arr, len) {
2099
- if (len == null || len > arr.length) len = arr.length;
2100
-
2101
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
2102
- arr2[i] = arr[i];
2103
- }
2104
-
2105
- return arr2;
2106
- }
2107
-
2108
- function _unsupportedIterableToArray(o, minLen) {
2109
- if (!o) return;
2110
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2111
- var n = Object.prototype.toString.call(o).slice(8, -1);
2112
- if (n === "Object" && o.constructor) n = o.constructor.name;
2113
- if (n === "Map" || n === "Set") return Array.from(o);
2114
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2115
- }
2116
-
2117
- function _nonIterableRest() {
2118
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2119
- }
2120
-
2121
- function _slicedToArray(arr, i) {
2122
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2123
- }
2124
-
2125
90
  var Loading = function Loading(_ref) {
2126
91
  _ref.width;
2127
92
  _ref.height;
@@ -2297,7 +262,7 @@ HyperLink.propTypes = {
2297
262
 
2298
263
  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; }
2299
264
 
2300
- 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; }
265
+ 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; }
2301
266
  var Lightbox = /*#__PURE__*/React.lazy(function () {
2302
267
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-image-lightbox')); });
2303
268
  });
@@ -2309,27 +274,27 @@ var FullScreenImages = function FullScreenImages(_ref) {
2309
274
  element = _ref$element === void 0 ? {} : _ref$element,
2310
275
  props = _ref.props;
2311
276
  var cdnImage = reactRedux.useSelector(function (state) {
2312
- return get_1(state, ["qt", "config", "cdn-image"]);
277
+ return lodash.get(state, ["qt", "config", "cdn-image"]);
2313
278
  });
2314
279
 
2315
280
  var _useState = React.useState(0),
2316
- _useState2 = _slicedToArray(_useState, 2),
281
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
2317
282
  photoIndex = _useState2[0],
2318
283
  handleImage = _useState2[1];
2319
284
 
2320
285
  var _useState3 = React.useState(false),
2321
- _useState4 = _slicedToArray(_useState3, 2),
286
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
2322
287
  isOpen = _useState4[0],
2323
288
  handleOpen = _useState4[1];
2324
289
 
2325
- var deviceWidth = get_1(global, ["innerWidth"], 0);
2326
- var hyperlinks = get_1(element, ["story-elements"], []).map(function (image) {
290
+ var deviceWidth = lodash.get(global, ["innerWidth"], 0);
291
+ var hyperlinks = lodash.get(element, ["story-elements"], []).map(function (image) {
2327
292
  return image.hyperlink;
2328
293
  });
2329
294
  var imageUrlList = [];
2330
295
 
2331
296
  if (!imageSlug) {
2332
- imageUrlList = get_1(element, ["story-elements"], []).map(function (image) {
297
+ imageUrlList = lodash.get(element, ["story-elements"], []).map(function (image) {
2333
298
  return "//".concat(cdnImage, "/").concat(image["image-s3-key"], "?w=").concat(deviceWidth);
2334
299
  });
2335
300
  }
@@ -2387,9 +352,9 @@ var FullScreenImages = function FullScreenImages(_ref) {
2387
352
  return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(Loading, null));
2388
353
  };
2389
354
 
2390
- return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(template, _objectSpread(_defineProperty({}, onClickKey, onClickHandler), props)), isOpen ? /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
355
+ return /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(template, _objectSpread(_defineProperty__default["default"]({}, onClickKey, onClickHandler), props)), isOpen ? /*#__PURE__*/React__default["default"].createElement(React.Suspense, {
2391
356
  fallback: /*#__PURE__*/React__default["default"].createElement(LoadingScreen, null)
2392
- }, /*#__PURE__*/React__default["default"].createElement(Lightbox, _extends({
357
+ }, /*#__PURE__*/React__default["default"].createElement(Lightbox, _extends__default["default"]({
2393
358
  wrapperClassName: "arr--image-lightbox",
2394
359
  onCloseRequest: onClose
2395
360
  }, lightboxProps))) : null);
@@ -2403,50 +368,16 @@ FullScreenImages.propTypes = {
2403
368
  props: PropTypes__default["default"].object
2404
369
  };
2405
370
 
2406
- function _objectWithoutPropertiesLoose(source, excluded) {
2407
- if (source == null) return {};
2408
- var target = {};
2409
- var sourceKeys = Object.keys(source);
2410
- var key, i;
2411
-
2412
- for (i = 0; i < sourceKeys.length; i++) {
2413
- key = sourceKeys[i];
2414
- if (excluded.indexOf(key) >= 0) continue;
2415
- target[key] = source[key];
2416
- }
2417
-
2418
- return target;
2419
- }
2420
-
2421
- function _objectWithoutProperties(source, excluded) {
2422
- if (source == null) return {};
2423
- var target = _objectWithoutPropertiesLoose(source, excluded);
2424
- var key, i;
2425
-
2426
- if (Object.getOwnPropertySymbols) {
2427
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
2428
-
2429
- for (i = 0; i < sourceSymbolKeys.length; i++) {
2430
- key = sourceSymbolKeys[i];
2431
- if (excluded.indexOf(key) >= 0) continue;
2432
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
2433
- target[key] = source[key];
2434
- }
2435
- }
2436
-
2437
- return target;
2438
- }
2439
-
2440
371
  var _excluded = ["element", "render"];
2441
372
  var withElementWrapper = function withElementWrapper(StoryElement) {
2442
373
  return function (props) {
2443
374
  var element = props.element,
2444
375
  render = props.render,
2445
- restProps = _objectWithoutProperties(props, _excluded);
376
+ restProps = _objectWithoutProperties__default["default"](props, _excluded);
2446
377
 
2447
378
  if (!element) return null;
2448
379
  if (render && typeof render === "function") return render(props);
2449
- return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends({}, restProps, {
380
+ return /*#__PURE__*/React__default["default"].createElement(StoryElement, _extends__default["default"]({}, restProps, {
2450
381
  element: element
2451
382
  }));
2452
383
  };
@@ -2455,146 +386,6 @@ withElementWrapper.propTypes = {
2455
386
  StoryElement: PropTypes__default["default"].element
2456
387
  };
2457
388
 
2458
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
2459
-
2460
- Object.defineProperty(exports, "__esModule", {
2461
- value: true
2462
- });
2463
- exports["default"] = void 0;
2464
- var optionsDefaults = {
2465
- attributeNames: {
2466
- styleName: 'className'
2467
- },
2468
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
2469
- handleMissingStyleName: 'throw'
2470
- };
2471
- var _default = optionsDefaults;
2472
- exports["default"] = _default;
2473
-
2474
-
2475
- });
2476
-
2477
- var getClassName = createCommonjsModule(function (module, exports) {
2478
-
2479
- Object.defineProperty(exports, "__esModule", {
2480
- value: true
2481
- });
2482
- exports["default"] = void 0;
2483
-
2484
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
2485
-
2486
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2487
-
2488
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
2489
- return styleName.indexOf('.') !== -1;
2490
- };
2491
-
2492
- var handleError = function handleError(message, handleMissingStyleName) {
2493
- if (handleMissingStyleName === 'throw') {
2494
- throw new Error(message);
2495
- } else if (handleMissingStyleName === 'warn') {
2496
- // eslint-disable-next-line no-console
2497
- console.warn(message);
2498
- }
2499
-
2500
- return null;
2501
- };
2502
-
2503
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
2504
- // Note:
2505
- // Do not use the desctructing syntax with Babel.
2506
- // Desctructing adds _slicedToArray helper.
2507
- var styleNameParts = styleName.split('.');
2508
- var importName = styleNameParts[0];
2509
- var moduleName = styleNameParts[1];
2510
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
2511
-
2512
- if (!moduleName) {
2513
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
2514
- }
2515
-
2516
- if (!styleModuleImportMap[importName]) {
2517
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
2518
- }
2519
-
2520
- if (!styleModuleImportMap[importName][moduleName]) {
2521
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
2522
- }
2523
-
2524
- return styleModuleImportMap[importName][moduleName];
2525
- };
2526
-
2527
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
2528
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
2529
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
2530
- return styleModuleImportMap[importKey][styleName] && importKey;
2531
- }).filter(function (importKey) {
2532
- return importKey;
2533
- });
2534
-
2535
- if (importKeysWithMatches.length > 1) {
2536
- 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');
2537
- }
2538
-
2539
- if (importKeysWithMatches.length === 0) {
2540
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
2541
- }
2542
-
2543
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
2544
- };
2545
-
2546
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
2547
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
2548
-
2549
- var _ref = options || {},
2550
- _ref$handleMissingSty = _ref.handleMissingStyleName,
2551
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
2552
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
2553
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
2554
-
2555
- if (!styleNameValue) {
2556
- return '';
2557
- }
2558
-
2559
- return styleNameValue.split(' ').filter(function (styleName) {
2560
- return styleName;
2561
- }).map(function (styleName) {
2562
- if (isNamespacedStyleName(styleName)) {
2563
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
2564
- }
2565
-
2566
- if (styleModuleImportMapKeys.length === 0) {
2567
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
2568
- }
2569
-
2570
- if (styleModuleImportMapKeys.length > 1) {
2571
- if (!autoResolveMultipleImports) {
2572
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
2573
- }
2574
-
2575
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
2576
- }
2577
-
2578
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
2579
-
2580
- if (!styleModuleMap[styleName]) {
2581
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
2582
- }
2583
-
2584
- return styleModuleMap[styleName];
2585
- }).filter(function (className) {
2586
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
2587
- return className;
2588
- }).join(' ');
2589
- };
2590
-
2591
- exports["default"] = _default;
2592
-
2593
-
2594
- });
2595
-
2596
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
2597
-
2598
389
  var LeftArrow = function LeftArrow(_ref) {
2599
390
  var _ref$color = _ref.color,
2600
391
  color = _ref$color === void 0 ? "#333" : _ref$color;
@@ -2683,12 +474,12 @@ var SliderArrow = function SliderArrow(_ref) {
2683
474
  var getRightArrowClassName = languageDirection === "rtl" ? "right-arrow-rtl" : "right-arrow-ltr";
2684
475
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, selectedIndex !== 0 ? /*#__PURE__*/React__default["default"].createElement("button", {
2685
476
  onClick: previousClick,
2686
- className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$1)
477
+ className: ("left-arrow ".concat(getLeftArrowClassName) ? "left-arrow ".concat(getLeftArrowClassName) + " " : "") + _getClassName__default["default"]("arrow left-arrow-".concat(textColor, " ").concat(getLeftArrowClassName), _styleModuleImportMap$1)
2687
478
  }, /*#__PURE__*/React__default["default"].createElement(LeftArrow, {
2688
479
  color: textColor === "dark" ? "#fff" : "#333"
2689
480
  })) : null, selectedIndex < noOfItems - 1 && rightArrowView() ? /*#__PURE__*/React__default["default"].createElement("button", {
2690
481
  onClick: nextClick,
2691
- className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$1)
482
+ className: ("right-arrow ".concat(getRightArrowClassName) ? "right-arrow ".concat(getRightArrowClassName) + " " : "") + _getClassName__default["default"]("arrow right-arrow-".concat(textColor, " ").concat(getRightArrowClassName), _styleModuleImportMap$1)
2692
483
  }, /*#__PURE__*/React__default["default"].createElement(RightArrow, {
2693
484
  color: textColor === "dark" ? "#fff" : "#333"
2694
485
  })) : null);
@@ -2739,7 +530,7 @@ var SliderIndicator = function SliderIndicator(_ref) {
2739
530
  }
2740
531
  }, /*#__PURE__*/React__default["default"].createElement("button", {
2741
532
  "aria-pressed": selectedIndex === index ? "true" : "false",
2742
- className: ("indicator-button indicator-".concat(indicatorType) ? "indicator-button indicator-".concat(indicatorType) + " " : "") + _getClassName("indicator-button indicator-".concat(indicatorType, " indicator-").concat(indicatorType, "-").concat(textColor), _styleModuleImportMap)
533
+ 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)
2743
534
  }));
2744
535
  }));
2745
536
  };
@@ -2754,7 +545,7 @@ SliderIndicator.propTypes = {
2754
545
  var smoothScroll = function smoothScroll(node, topOrLeft, horizontal) {
2755
546
  var _node$scrollTo;
2756
547
 
2757
- node.scrollTo((_node$scrollTo = {}, _defineProperty(_node$scrollTo, horizontal ? "left" : "top", topOrLeft), _defineProperty(_node$scrollTo, "behavior", "smooth"), _node$scrollTo));
548
+ node.scrollTo((_node$scrollTo = {}, _defineProperty__default["default"](_node$scrollTo, horizontal ? "left" : "top", topOrLeft), _defineProperty__default["default"](_node$scrollTo, "behavior", "smooth"), _node$scrollTo));
2758
549
  };
2759
550
 
2760
551
  var updateItemSelection = function updateItemSelection(index, languageDirection, scroller, noOfItems) {
@@ -2784,17 +575,17 @@ var ScrollSnap = function ScrollSnap(_ref) {
2784
575
  slideIndicator = _ref.slideIndicator;
2785
576
 
2786
577
  var _useState = React.useState(0),
2787
- _useState2 = _slicedToArray(_useState, 2),
578
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
2788
579
  selectedIndex = _useState2[0],
2789
580
  setSelectedIndex = _useState2[1];
2790
581
 
2791
582
  var _useState3 = React.useState(false),
2792
- _useState4 = _slicedToArray(_useState3, 2),
583
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
2793
584
  autoScroll = _useState4[0],
2794
585
  setAutoScroll = _useState4[1];
2795
586
 
2796
587
  var languageDirection = reactRedux.useSelector(function (state) {
2797
- return get_1(state, ["qt", "config", "language", "direction"], "ltr");
588
+ return lodash.get(state, ["qt", "config", "language", "direction"], "ltr");
2798
589
  });
2799
590
  var noOfItems = children ? children.length : 0;
2800
591
  var scroller = React.useRef(null);
@@ -2951,7 +742,7 @@ var ImageSlideshowBase = function ImageSlideshowBase(props) {
2951
742
 
2952
743
  var ImageSlideshowTemplate = function ImageSlideshowTemplate(_ref) {
2953
744
  var onClickHandler = _ref.onClickHandler;
2954
- var storyElements = get_1(props, ["element", "story-elements"], []);
745
+ var storyElements = lodash.get(props, ["element", "story-elements"], []);
2955
746
  return /*#__PURE__*/React__default["default"].createElement("div", {
2956
747
  className: "arr--image-slideshow-element image-slideshow-m_slideshow__3jRFX",
2957
748
  "data-test-id": "image-slideshow"