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

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