@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,2490 +2,27 @@
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
+ 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');
11
17
 
12
18
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
19
 
20
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
21
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
14
22
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
23
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
16
24
  var Timeago__default = /*#__PURE__*/_interopDefaultLegacy(Timeago);
17
25
 
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);
183
-
184
- /**
185
- * Checks if `value` is classified as an `Array` object.
186
- *
187
- * @static
188
- * @memberOf _
189
- * @since 0.1.0
190
- * @category Lang
191
- * @param {*} value The value to check.
192
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
193
- * @example
194
- *
195
- * _.isArray([1, 2, 3]);
196
- * // => true
197
- *
198
- * _.isArray(document.body.children);
199
- * // => false
200
- *
201
- * _.isArray('abc');
202
- * // => false
203
- *
204
- * _.isArray(_.noop);
205
- * // => false
206
- */
207
- var isArray = Array.isArray;
208
-
209
- var isArray_1 = isArray;
210
-
211
- /** Detect free variable `global` from Node.js. */
212
-
213
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
214
-
215
- var _freeGlobal = freeGlobal;
216
-
217
- /** Detect free variable `self`. */
218
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
219
-
220
- /** Used as a reference to the global object. */
221
- var root = _freeGlobal || freeSelf || Function('return this')();
222
-
223
- var _root = root;
224
-
225
- /** Built-in value references. */
226
- var Symbol$1 = _root.Symbol;
227
-
228
- var _Symbol = Symbol$1;
229
-
230
- /** Used for built-in method references. */
231
- var objectProto$4 = Object.prototype;
232
-
233
- /** Used to check objects for own properties. */
234
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
235
-
236
- /**
237
- * Used to resolve the
238
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
239
- * of values.
240
- */
241
- var nativeObjectToString$1 = objectProto$4.toString;
242
-
243
- /** Built-in value references. */
244
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
245
-
246
- /**
247
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
248
- *
249
- * @private
250
- * @param {*} value The value to query.
251
- * @returns {string} Returns the raw `toStringTag`.
252
- */
253
- function getRawTag(value) {
254
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
255
- tag = value[symToStringTag$1];
256
-
257
- try {
258
- value[symToStringTag$1] = undefined;
259
- var unmasked = true;
260
- } catch (e) {}
261
-
262
- var result = nativeObjectToString$1.call(value);
263
- if (unmasked) {
264
- if (isOwn) {
265
- value[symToStringTag$1] = tag;
266
- } else {
267
- delete value[symToStringTag$1];
268
- }
269
- }
270
- return result;
271
- }
272
-
273
- var _getRawTag = getRawTag;
274
-
275
- /** Used for built-in method references. */
276
- var objectProto$3 = Object.prototype;
277
-
278
- /**
279
- * Used to resolve the
280
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
281
- * of values.
282
- */
283
- var nativeObjectToString = objectProto$3.toString;
284
-
285
- /**
286
- * Converts `value` to a string using `Object.prototype.toString`.
287
- *
288
- * @private
289
- * @param {*} value The value to convert.
290
- * @returns {string} Returns the converted string.
291
- */
292
- function objectToString(value) {
293
- return nativeObjectToString.call(value);
294
- }
295
-
296
- var _objectToString = objectToString;
297
-
298
- /** `Object#toString` result references. */
299
- var nullTag = '[object Null]',
300
- undefinedTag = '[object Undefined]';
301
-
302
- /** Built-in value references. */
303
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
304
-
305
- /**
306
- * The base implementation of `getTag` without fallbacks for buggy environments.
307
- *
308
- * @private
309
- * @param {*} value The value to query.
310
- * @returns {string} Returns the `toStringTag`.
311
- */
312
- function baseGetTag(value) {
313
- if (value == null) {
314
- return value === undefined ? undefinedTag : nullTag;
315
- }
316
- return (symToStringTag && symToStringTag in Object(value))
317
- ? _getRawTag(value)
318
- : _objectToString(value);
319
- }
320
-
321
- var _baseGetTag = baseGetTag;
322
-
323
- /**
324
- * Checks if `value` is object-like. A value is object-like if it's not `null`
325
- * and has a `typeof` result of "object".
326
- *
327
- * @static
328
- * @memberOf _
329
- * @since 4.0.0
330
- * @category Lang
331
- * @param {*} value The value to check.
332
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
333
- * @example
334
- *
335
- * _.isObjectLike({});
336
- * // => true
337
- *
338
- * _.isObjectLike([1, 2, 3]);
339
- * // => true
340
- *
341
- * _.isObjectLike(_.noop);
342
- * // => false
343
- *
344
- * _.isObjectLike(null);
345
- * // => false
346
- */
347
- function isObjectLike(value) {
348
- return value != null && typeof value == 'object';
349
- }
350
-
351
- var isObjectLike_1 = isObjectLike;
352
-
353
- /** `Object#toString` result references. */
354
- var symbolTag = '[object Symbol]';
355
-
356
- /**
357
- * Checks if `value` is classified as a `Symbol` primitive or object.
358
- *
359
- * @static
360
- * @memberOf _
361
- * @since 4.0.0
362
- * @category Lang
363
- * @param {*} value The value to check.
364
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
365
- * @example
366
- *
367
- * _.isSymbol(Symbol.iterator);
368
- * // => true
369
- *
370
- * _.isSymbol('abc');
371
- * // => false
372
- */
373
- function isSymbol(value) {
374
- return typeof value == 'symbol' ||
375
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
376
- }
377
-
378
- var isSymbol_1 = isSymbol;
379
-
380
- /** Used to match property names within property paths. */
381
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
382
- reIsPlainProp = /^\w*$/;
383
-
384
- /**
385
- * Checks if `value` is a property name and not a property path.
386
- *
387
- * @private
388
- * @param {*} value The value to check.
389
- * @param {Object} [object] The object to query keys on.
390
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
391
- */
392
- function isKey(value, object) {
393
- if (isArray_1(value)) {
394
- return false;
395
- }
396
- var type = typeof value;
397
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
398
- value == null || isSymbol_1(value)) {
399
- return true;
400
- }
401
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
402
- (object != null && value in Object(object));
403
- }
404
-
405
- var _isKey = isKey;
406
-
407
- /**
408
- * Checks if `value` is the
409
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
410
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
411
- *
412
- * @static
413
- * @memberOf _
414
- * @since 0.1.0
415
- * @category Lang
416
- * @param {*} value The value to check.
417
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
418
- * @example
419
- *
420
- * _.isObject({});
421
- * // => true
422
- *
423
- * _.isObject([1, 2, 3]);
424
- * // => true
425
- *
426
- * _.isObject(_.noop);
427
- * // => true
428
- *
429
- * _.isObject(null);
430
- * // => false
431
- */
432
- function isObject(value) {
433
- var type = typeof value;
434
- return value != null && (type == 'object' || type == 'function');
435
- }
436
-
437
- var isObject_1 = isObject;
438
-
439
- /** `Object#toString` result references. */
440
- var asyncTag = '[object AsyncFunction]',
441
- funcTag = '[object Function]',
442
- genTag = '[object GeneratorFunction]',
443
- proxyTag = '[object Proxy]';
444
-
445
- /**
446
- * Checks if `value` is classified as a `Function` object.
447
- *
448
- * @static
449
- * @memberOf _
450
- * @since 0.1.0
451
- * @category Lang
452
- * @param {*} value The value to check.
453
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
454
- * @example
455
- *
456
- * _.isFunction(_);
457
- * // => true
458
- *
459
- * _.isFunction(/abc/);
460
- * // => false
461
- */
462
- function isFunction(value) {
463
- if (!isObject_1(value)) {
464
- return false;
465
- }
466
- // The use of `Object#toString` avoids issues with the `typeof` operator
467
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
468
- var tag = _baseGetTag(value);
469
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
470
- }
471
-
472
- var isFunction_1 = isFunction;
473
-
474
- /** Used to detect overreaching core-js shims. */
475
- var coreJsData = _root['__core-js_shared__'];
476
-
477
- var _coreJsData = coreJsData;
478
-
479
- /** Used to detect methods masquerading as native. */
480
- var maskSrcKey = (function() {
481
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
482
- return uid ? ('Symbol(src)_1.' + uid) : '';
483
- }());
484
-
485
- /**
486
- * Checks if `func` has its source masked.
487
- *
488
- * @private
489
- * @param {Function} func The function to check.
490
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
491
- */
492
- function isMasked(func) {
493
- return !!maskSrcKey && (maskSrcKey in func);
494
- }
495
-
496
- var _isMasked = isMasked;
497
-
498
- /** Used for built-in method references. */
499
- var funcProto$1 = Function.prototype;
500
-
501
- /** Used to resolve the decompiled source of functions. */
502
- var funcToString$1 = funcProto$1.toString;
503
-
504
- /**
505
- * Converts `func` to its source code.
506
- *
507
- * @private
508
- * @param {Function} func The function to convert.
509
- * @returns {string} Returns the source code.
510
- */
511
- function toSource(func) {
512
- if (func != null) {
513
- try {
514
- return funcToString$1.call(func);
515
- } catch (e) {}
516
- try {
517
- return (func + '');
518
- } catch (e) {}
519
- }
520
- return '';
521
- }
522
-
523
- var _toSource = toSource;
524
-
525
- /**
526
- * Used to match `RegExp`
527
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
528
- */
529
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
530
-
531
- /** Used to detect host constructors (Safari). */
532
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
533
-
534
- /** Used for built-in method references. */
535
- var funcProto = Function.prototype,
536
- objectProto$2 = Object.prototype;
537
-
538
- /** Used to resolve the decompiled source of functions. */
539
- var funcToString = funcProto.toString;
540
-
541
- /** Used to check objects for own properties. */
542
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
543
-
544
- /** Used to detect if a method is native. */
545
- var reIsNative = RegExp('^' +
546
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
547
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
548
- );
549
-
550
- /**
551
- * The base implementation of `_.isNative` without bad shim checks.
552
- *
553
- * @private
554
- * @param {*} value The value to check.
555
- * @returns {boolean} Returns `true` if `value` is a native function,
556
- * else `false`.
557
- */
558
- function baseIsNative(value) {
559
- if (!isObject_1(value) || _isMasked(value)) {
560
- return false;
561
- }
562
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
563
- return pattern.test(_toSource(value));
564
- }
565
-
566
- var _baseIsNative = baseIsNative;
567
-
568
- /**
569
- * Gets the value at `key` of `object`.
570
- *
571
- * @private
572
- * @param {Object} [object] The object to query.
573
- * @param {string} key The key of the property to get.
574
- * @returns {*} Returns the property value.
575
- */
576
- function getValue(object, key) {
577
- return object == null ? undefined : object[key];
578
- }
579
-
580
- var _getValue = getValue;
581
-
582
- /**
583
- * Gets the native function at `key` of `object`.
584
- *
585
- * @private
586
- * @param {Object} object The object to query.
587
- * @param {string} key The key of the method to get.
588
- * @returns {*} Returns the function if it's native, else `undefined`.
589
- */
590
- function getNative(object, key) {
591
- var value = _getValue(object, key);
592
- return _baseIsNative(value) ? value : undefined;
593
- }
594
-
595
- var _getNative = getNative;
596
-
597
- /* Built-in method references that are verified to be native. */
598
- var nativeCreate = _getNative(Object, 'create');
599
-
600
- var _nativeCreate = nativeCreate;
601
-
602
- /**
603
- * Removes all key-value entries from the hash.
604
- *
605
- * @private
606
- * @name clear
607
- * @memberOf Hash
608
- */
609
- function hashClear() {
610
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
611
- this.size = 0;
612
- }
613
-
614
- var _hashClear = hashClear;
615
-
616
- /**
617
- * Removes `key` and its value from the hash.
618
- *
619
- * @private
620
- * @name delete
621
- * @memberOf Hash
622
- * @param {Object} hash The hash to modify.
623
- * @param {string} key The key of the value to remove.
624
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
625
- */
626
- function hashDelete(key) {
627
- var result = this.has(key) && delete this.__data__[key];
628
- this.size -= result ? 1 : 0;
629
- return result;
630
- }
631
-
632
- var _hashDelete = hashDelete;
633
-
634
- /** Used to stand-in for `undefined` hash values. */
635
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
636
-
637
- /** Used for built-in method references. */
638
- var objectProto$1 = Object.prototype;
639
-
640
- /** Used to check objects for own properties. */
641
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
642
-
643
- /**
644
- * Gets the hash value for `key`.
645
- *
646
- * @private
647
- * @name get
648
- * @memberOf Hash
649
- * @param {string} key The key of the value to get.
650
- * @returns {*} Returns the entry value.
651
- */
652
- function hashGet(key) {
653
- var data = this.__data__;
654
- if (_nativeCreate) {
655
- var result = data[key];
656
- return result === HASH_UNDEFINED$1 ? undefined : result;
657
- }
658
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
659
- }
660
-
661
- var _hashGet = hashGet;
662
-
663
- /** Used for built-in method references. */
664
- var objectProto = Object.prototype;
665
-
666
- /** Used to check objects for own properties. */
667
- var hasOwnProperty = objectProto.hasOwnProperty;
668
-
669
- /**
670
- * Checks if a hash value for `key` exists.
671
- *
672
- * @private
673
- * @name has
674
- * @memberOf Hash
675
- * @param {string} key The key of the entry to check.
676
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
677
- */
678
- function hashHas(key) {
679
- var data = this.__data__;
680
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
681
- }
682
-
683
- var _hashHas = hashHas;
684
-
685
- /** Used to stand-in for `undefined` hash values. */
686
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
687
-
688
- /**
689
- * Sets the hash `key` to `value`.
690
- *
691
- * @private
692
- * @name set
693
- * @memberOf Hash
694
- * @param {string} key The key of the value to set.
695
- * @param {*} value The value to set.
696
- * @returns {Object} Returns the hash instance.
697
- */
698
- function hashSet(key, value) {
699
- var data = this.__data__;
700
- this.size += this.has(key) ? 0 : 1;
701
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
702
- return this;
703
- }
704
-
705
- var _hashSet = hashSet;
706
-
707
- /**
708
- * Creates a hash object.
709
- *
710
- * @private
711
- * @constructor
712
- * @param {Array} [entries] The key-value pairs to cache.
713
- */
714
- function Hash(entries) {
715
- var index = -1,
716
- length = entries == null ? 0 : entries.length;
717
-
718
- this.clear();
719
- while (++index < length) {
720
- var entry = entries[index];
721
- this.set(entry[0], entry[1]);
722
- }
723
- }
724
-
725
- // Add methods to `Hash`.
726
- Hash.prototype.clear = _hashClear;
727
- Hash.prototype['delete'] = _hashDelete;
728
- Hash.prototype.get = _hashGet;
729
- Hash.prototype.has = _hashHas;
730
- Hash.prototype.set = _hashSet;
731
-
732
- var _Hash = Hash;
733
-
734
- /**
735
- * Removes all key-value entries from the list cache.
736
- *
737
- * @private
738
- * @name clear
739
- * @memberOf ListCache
740
- */
741
- function listCacheClear() {
742
- this.__data__ = [];
743
- this.size = 0;
744
- }
745
-
746
- var _listCacheClear = listCacheClear;
747
-
748
- /**
749
- * Performs a
750
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
751
- * comparison between two values to determine if they are equivalent.
752
- *
753
- * @static
754
- * @memberOf _
755
- * @since 4.0.0
756
- * @category Lang
757
- * @param {*} value The value to compare.
758
- * @param {*} other The other value to compare.
759
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
760
- * @example
761
- *
762
- * var object = { 'a': 1 };
763
- * var other = { 'a': 1 };
764
- *
765
- * _.eq(object, object);
766
- * // => true
767
- *
768
- * _.eq(object, other);
769
- * // => false
770
- *
771
- * _.eq('a', 'a');
772
- * // => true
773
- *
774
- * _.eq('a', Object('a'));
775
- * // => false
776
- *
777
- * _.eq(NaN, NaN);
778
- * // => true
779
- */
780
- function eq(value, other) {
781
- return value === other || (value !== value && other !== other);
782
- }
783
-
784
- var eq_1 = eq;
785
-
786
- /**
787
- * Gets the index at which the `key` is found in `array` of key-value pairs.
788
- *
789
- * @private
790
- * @param {Array} array The array to inspect.
791
- * @param {*} key The key to search for.
792
- * @returns {number} Returns the index of the matched value, else `-1`.
793
- */
794
- function assocIndexOf(array, key) {
795
- var length = array.length;
796
- while (length--) {
797
- if (eq_1(array[length][0], key)) {
798
- return length;
799
- }
800
- }
801
- return -1;
802
- }
803
-
804
- var _assocIndexOf = assocIndexOf;
805
-
806
- /** Used for built-in method references. */
807
- var arrayProto = Array.prototype;
808
-
809
- /** Built-in value references. */
810
- var splice = arrayProto.splice;
811
-
812
- /**
813
- * Removes `key` and its value from the list cache.
814
- *
815
- * @private
816
- * @name delete
817
- * @memberOf ListCache
818
- * @param {string} key The key of the value to remove.
819
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
820
- */
821
- function listCacheDelete(key) {
822
- var data = this.__data__,
823
- index = _assocIndexOf(data, key);
824
-
825
- if (index < 0) {
826
- return false;
827
- }
828
- var lastIndex = data.length - 1;
829
- if (index == lastIndex) {
830
- data.pop();
831
- } else {
832
- splice.call(data, index, 1);
833
- }
834
- --this.size;
835
- return true;
836
- }
837
-
838
- var _listCacheDelete = listCacheDelete;
839
-
840
- /**
841
- * Gets the list cache value for `key`.
842
- *
843
- * @private
844
- * @name get
845
- * @memberOf ListCache
846
- * @param {string} key The key of the value to get.
847
- * @returns {*} Returns the entry value.
848
- */
849
- function listCacheGet(key) {
850
- var data = this.__data__,
851
- index = _assocIndexOf(data, key);
852
-
853
- return index < 0 ? undefined : data[index][1];
854
- }
855
-
856
- var _listCacheGet = listCacheGet;
857
-
858
- /**
859
- * Checks if a list cache value for `key` exists.
860
- *
861
- * @private
862
- * @name has
863
- * @memberOf ListCache
864
- * @param {string} key The key of the entry to check.
865
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
866
- */
867
- function listCacheHas(key) {
868
- return _assocIndexOf(this.__data__, key) > -1;
869
- }
870
-
871
- var _listCacheHas = listCacheHas;
872
-
873
- /**
874
- * Sets the list cache `key` to `value`.
875
- *
876
- * @private
877
- * @name set
878
- * @memberOf ListCache
879
- * @param {string} key The key of the value to set.
880
- * @param {*} value The value to set.
881
- * @returns {Object} Returns the list cache instance.
882
- */
883
- function listCacheSet(key, value) {
884
- var data = this.__data__,
885
- index = _assocIndexOf(data, key);
886
-
887
- if (index < 0) {
888
- ++this.size;
889
- data.push([key, value]);
890
- } else {
891
- data[index][1] = value;
892
- }
893
- return this;
894
- }
895
-
896
- var _listCacheSet = listCacheSet;
897
-
898
- /**
899
- * Creates an list cache object.
900
- *
901
- * @private
902
- * @constructor
903
- * @param {Array} [entries] The key-value pairs to cache.
904
- */
905
- function ListCache(entries) {
906
- var index = -1,
907
- length = entries == null ? 0 : entries.length;
908
-
909
- this.clear();
910
- while (++index < length) {
911
- var entry = entries[index];
912
- this.set(entry[0], entry[1]);
913
- }
914
- }
915
-
916
- // Add methods to `ListCache`.
917
- ListCache.prototype.clear = _listCacheClear;
918
- ListCache.prototype['delete'] = _listCacheDelete;
919
- ListCache.prototype.get = _listCacheGet;
920
- ListCache.prototype.has = _listCacheHas;
921
- ListCache.prototype.set = _listCacheSet;
922
-
923
- var _ListCache = ListCache;
924
-
925
- /* Built-in method references that are verified to be native. */
926
- var Map = _getNative(_root, 'Map');
927
-
928
- var _Map = Map;
929
-
930
- /**
931
- * Removes all key-value entries from the map.
932
- *
933
- * @private
934
- * @name clear
935
- * @memberOf MapCache
936
- */
937
- function mapCacheClear() {
938
- this.size = 0;
939
- this.__data__ = {
940
- 'hash': new _Hash,
941
- 'map': new (_Map || _ListCache),
942
- 'string': new _Hash
943
- };
944
- }
945
-
946
- var _mapCacheClear = mapCacheClear;
947
-
948
- /**
949
- * Checks if `value` is suitable for use as unique object key.
950
- *
951
- * @private
952
- * @param {*} value The value to check.
953
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
954
- */
955
- function isKeyable(value) {
956
- var type = typeof value;
957
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
958
- ? (value !== '__proto__')
959
- : (value === null);
960
- }
961
-
962
- var _isKeyable = isKeyable;
963
-
964
- /**
965
- * Gets the data for `map`.
966
- *
967
- * @private
968
- * @param {Object} map The map to query.
969
- * @param {string} key The reference key.
970
- * @returns {*} Returns the map data.
971
- */
972
- function getMapData(map, key) {
973
- var data = map.__data__;
974
- return _isKeyable(key)
975
- ? data[typeof key == 'string' ? 'string' : 'hash']
976
- : data.map;
977
- }
978
-
979
- var _getMapData = getMapData;
980
-
981
- /**
982
- * Removes `key` and its value from the map.
983
- *
984
- * @private
985
- * @name delete
986
- * @memberOf MapCache
987
- * @param {string} key The key of the value to remove.
988
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
989
- */
990
- function mapCacheDelete(key) {
991
- var result = _getMapData(this, key)['delete'](key);
992
- this.size -= result ? 1 : 0;
993
- return result;
994
- }
995
-
996
- var _mapCacheDelete = mapCacheDelete;
997
-
998
- /**
999
- * Gets the map value for `key`.
1000
- *
1001
- * @private
1002
- * @name get
1003
- * @memberOf MapCache
1004
- * @param {string} key The key of the value to get.
1005
- * @returns {*} Returns the entry value.
1006
- */
1007
- function mapCacheGet(key) {
1008
- return _getMapData(this, key).get(key);
1009
- }
1010
-
1011
- var _mapCacheGet = mapCacheGet;
1012
-
1013
- /**
1014
- * Checks if a map value for `key` exists.
1015
- *
1016
- * @private
1017
- * @name has
1018
- * @memberOf MapCache
1019
- * @param {string} key The key of the entry to check.
1020
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1021
- */
1022
- function mapCacheHas(key) {
1023
- return _getMapData(this, key).has(key);
1024
- }
1025
-
1026
- var _mapCacheHas = mapCacheHas;
1027
-
1028
- /**
1029
- * Sets the map `key` to `value`.
1030
- *
1031
- * @private
1032
- * @name set
1033
- * @memberOf MapCache
1034
- * @param {string} key The key of the value to set.
1035
- * @param {*} value The value to set.
1036
- * @returns {Object} Returns the map cache instance.
1037
- */
1038
- function mapCacheSet(key, value) {
1039
- var data = _getMapData(this, key),
1040
- size = data.size;
1041
-
1042
- data.set(key, value);
1043
- this.size += data.size == size ? 0 : 1;
1044
- return this;
1045
- }
1046
-
1047
- var _mapCacheSet = mapCacheSet;
1048
-
1049
- /**
1050
- * Creates a map cache object to store key-value pairs.
1051
- *
1052
- * @private
1053
- * @constructor
1054
- * @param {Array} [entries] The key-value pairs to cache.
1055
- */
1056
- function MapCache(entries) {
1057
- var index = -1,
1058
- length = entries == null ? 0 : entries.length;
1059
-
1060
- this.clear();
1061
- while (++index < length) {
1062
- var entry = entries[index];
1063
- this.set(entry[0], entry[1]);
1064
- }
1065
- }
1066
-
1067
- // Add methods to `MapCache`.
1068
- MapCache.prototype.clear = _mapCacheClear;
1069
- MapCache.prototype['delete'] = _mapCacheDelete;
1070
- MapCache.prototype.get = _mapCacheGet;
1071
- MapCache.prototype.has = _mapCacheHas;
1072
- MapCache.prototype.set = _mapCacheSet;
1073
-
1074
- var _MapCache = MapCache;
1075
-
1076
- /** Error message constants. */
1077
- var FUNC_ERROR_TEXT = 'Expected a function';
1078
-
1079
- /**
1080
- * Creates a function that memoizes the result of `func`. If `resolver` is
1081
- * provided, it determines the cache key for storing the result based on the
1082
- * arguments provided to the memoized function. By default, the first argument
1083
- * provided to the memoized function is used as the map cache key. The `func`
1084
- * is invoked with the `this` binding of the memoized function.
1085
- *
1086
- * **Note:** The cache is exposed as the `cache` property on the memoized
1087
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1088
- * constructor with one whose instances implement the
1089
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1090
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1091
- *
1092
- * @static
1093
- * @memberOf _
1094
- * @since 0.1.0
1095
- * @category Function
1096
- * @param {Function} func The function to have its output memoized.
1097
- * @param {Function} [resolver] The function to resolve the cache key.
1098
- * @returns {Function} Returns the new memoized function.
1099
- * @example
1100
- *
1101
- * var object = { 'a': 1, 'b': 2 };
1102
- * var other = { 'c': 3, 'd': 4 };
1103
- *
1104
- * var values = _.memoize(_.values);
1105
- * values(object);
1106
- * // => [1, 2]
1107
- *
1108
- * values(other);
1109
- * // => [3, 4]
1110
- *
1111
- * object.a = 2;
1112
- * values(object);
1113
- * // => [1, 2]
1114
- *
1115
- * // Modify the result cache.
1116
- * values.cache.set(object, ['a', 'b']);
1117
- * values(object);
1118
- * // => ['a', 'b']
1119
- *
1120
- * // Replace `_.memoize.Cache`.
1121
- * _.memoize.Cache = WeakMap;
1122
- */
1123
- function memoize(func, resolver) {
1124
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1125
- throw new TypeError(FUNC_ERROR_TEXT);
1126
- }
1127
- var memoized = function() {
1128
- var args = arguments,
1129
- key = resolver ? resolver.apply(this, args) : args[0],
1130
- cache = memoized.cache;
1131
-
1132
- if (cache.has(key)) {
1133
- return cache.get(key);
1134
- }
1135
- var result = func.apply(this, args);
1136
- memoized.cache = cache.set(key, result) || cache;
1137
- return result;
1138
- };
1139
- memoized.cache = new (memoize.Cache || _MapCache);
1140
- return memoized;
1141
- }
1142
-
1143
- // Expose `MapCache`.
1144
- memoize.Cache = _MapCache;
1145
-
1146
- var memoize_1 = memoize;
1147
-
1148
- /** Used as the maximum memoize cache size. */
1149
- var MAX_MEMOIZE_SIZE = 500;
1150
-
1151
- /**
1152
- * A specialized version of `_.memoize` which clears the memoized function's
1153
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1154
- *
1155
- * @private
1156
- * @param {Function} func The function to have its output memoized.
1157
- * @returns {Function} Returns the new memoized function.
1158
- */
1159
- function memoizeCapped(func) {
1160
- var result = memoize_1(func, function(key) {
1161
- if (cache.size === MAX_MEMOIZE_SIZE) {
1162
- cache.clear();
1163
- }
1164
- return key;
1165
- });
1166
-
1167
- var cache = result.cache;
1168
- return result;
1169
- }
1170
-
1171
- var _memoizeCapped = memoizeCapped;
1172
-
1173
- /** Used to match property names within property paths. */
1174
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1175
-
1176
- /** Used to match backslashes in property paths. */
1177
- var reEscapeChar = /\\(\\)?/g;
1178
-
1179
- /**
1180
- * Converts `string` to a property path array.
1181
- *
1182
- * @private
1183
- * @param {string} string The string to convert.
1184
- * @returns {Array} Returns the property path array.
1185
- */
1186
- var stringToPath = _memoizeCapped(function(string) {
1187
- var result = [];
1188
- if (string.charCodeAt(0) === 46 /* . */) {
1189
- result.push('');
1190
- }
1191
- string.replace(rePropName, function(match, number, quote, subString) {
1192
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1193
- });
1194
- return result;
1195
- });
1196
-
1197
- var _stringToPath = stringToPath;
1198
-
1199
- /**
1200
- * A specialized version of `_.map` for arrays without support for iteratee
1201
- * shorthands.
1202
- *
1203
- * @private
1204
- * @param {Array} [array] The array to iterate over.
1205
- * @param {Function} iteratee The function invoked per iteration.
1206
- * @returns {Array} Returns the new mapped array.
1207
- */
1208
- function arrayMap(array, iteratee) {
1209
- var index = -1,
1210
- length = array == null ? 0 : array.length,
1211
- result = Array(length);
1212
-
1213
- while (++index < length) {
1214
- result[index] = iteratee(array[index], index, array);
1215
- }
1216
- return result;
1217
- }
1218
-
1219
- var _arrayMap = arrayMap;
1220
-
1221
- /** Used as references for various `Number` constants. */
1222
- var INFINITY$1 = 1 / 0;
1223
-
1224
- /** Used to convert symbols to primitives and strings. */
1225
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1226
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1227
-
1228
- /**
1229
- * The base implementation of `_.toString` which doesn't convert nullish
1230
- * values to empty strings.
1231
- *
1232
- * @private
1233
- * @param {*} value The value to process.
1234
- * @returns {string} Returns the string.
1235
- */
1236
- function baseToString(value) {
1237
- // Exit early for strings to avoid a performance hit in some environments.
1238
- if (typeof value == 'string') {
1239
- return value;
1240
- }
1241
- if (isArray_1(value)) {
1242
- // Recursively convert values (susceptible to call stack limits).
1243
- return _arrayMap(value, baseToString) + '';
1244
- }
1245
- if (isSymbol_1(value)) {
1246
- return symbolToString ? symbolToString.call(value) : '';
1247
- }
1248
- var result = (value + '');
1249
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1250
- }
1251
-
1252
- var _baseToString = baseToString;
1253
-
1254
- /**
1255
- * Converts `value` to a string. An empty string is returned for `null`
1256
- * and `undefined` values. The sign of `-0` is preserved.
1257
- *
1258
- * @static
1259
- * @memberOf _
1260
- * @since 4.0.0
1261
- * @category Lang
1262
- * @param {*} value The value to convert.
1263
- * @returns {string} Returns the converted string.
1264
- * @example
1265
- *
1266
- * _.toString(null);
1267
- * // => ''
1268
- *
1269
- * _.toString(-0);
1270
- * // => '-0'
1271
- *
1272
- * _.toString([1, 2, 3]);
1273
- * // => '1,2,3'
1274
- */
1275
- function toString(value) {
1276
- return value == null ? '' : _baseToString(value);
1277
- }
1278
-
1279
- var toString_1 = toString;
1280
-
1281
- /**
1282
- * Casts `value` to a path array if it's not one.
1283
- *
1284
- * @private
1285
- * @param {*} value The value to inspect.
1286
- * @param {Object} [object] The object to query keys on.
1287
- * @returns {Array} Returns the cast property path array.
1288
- */
1289
- function castPath(value, object) {
1290
- if (isArray_1(value)) {
1291
- return value;
1292
- }
1293
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1294
- }
1295
-
1296
- var _castPath = castPath;
1297
-
1298
- /** Used as references for various `Number` constants. */
1299
- var INFINITY = 1 / 0;
1300
-
1301
- /**
1302
- * Converts `value` to a string key if it's not a string or symbol.
1303
- *
1304
- * @private
1305
- * @param {*} value The value to inspect.
1306
- * @returns {string|symbol} Returns the key.
1307
- */
1308
- function toKey(value) {
1309
- if (typeof value == 'string' || isSymbol_1(value)) {
1310
- return value;
1311
- }
1312
- var result = (value + '');
1313
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1314
- }
1315
-
1316
- var _toKey = toKey;
1317
-
1318
- /**
1319
- * The base implementation of `_.get` without support for default values.
1320
- *
1321
- * @private
1322
- * @param {Object} object The object to query.
1323
- * @param {Array|string} path The path of the property to get.
1324
- * @returns {*} Returns the resolved value.
1325
- */
1326
- function baseGet(object, path) {
1327
- path = _castPath(path, object);
1328
-
1329
- var index = 0,
1330
- length = path.length;
1331
-
1332
- while (object != null && index < length) {
1333
- object = object[_toKey(path[index++])];
1334
- }
1335
- return (index && index == length) ? object : undefined;
1336
- }
1337
-
1338
- var _baseGet = baseGet;
1339
-
1340
- /**
1341
- * Gets the value at `path` of `object`. If the resolved value is
1342
- * `undefined`, the `defaultValue` is returned in its place.
1343
- *
1344
- * @static
1345
- * @memberOf _
1346
- * @since 3.7.0
1347
- * @category Object
1348
- * @param {Object} object The object to query.
1349
- * @param {Array|string} path The path of the property to get.
1350
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1351
- * @returns {*} Returns the resolved value.
1352
- * @example
1353
- *
1354
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1355
- *
1356
- * _.get(object, 'a[0].b.c');
1357
- * // => 3
1358
- *
1359
- * _.get(object, ['a', '0', 'b', 'c']);
1360
- * // => 3
1361
- *
1362
- * _.get(object, 'a.b.c', 'default');
1363
- * // => 'default'
1364
- */
1365
- function get(object, path, defaultValue) {
1366
- var result = object == null ? undefined : _baseGet(object, path);
1367
- return result === undefined ? defaultValue : result;
1368
- }
1369
-
1370
- var get_1 = get;
1371
-
1372
- /**
1373
- * Copyright (c) 2014-present, Facebook, Inc.
1374
- *
1375
- * This source code is licensed under the MIT license found in the
1376
- * LICENSE file in the root directory of this source tree.
1377
- */
1378
-
1379
- createCommonjsModule(function (module) {
1380
- var runtime = (function (exports) {
1381
-
1382
- var Op = Object.prototype;
1383
- var hasOwn = Op.hasOwnProperty;
1384
- var undefined$1; // More compressible than void 0.
1385
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
1386
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
1387
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
1388
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
1389
-
1390
- function define(obj, key, value) {
1391
- Object.defineProperty(obj, key, {
1392
- value: value,
1393
- enumerable: true,
1394
- configurable: true,
1395
- writable: true
1396
- });
1397
- return obj[key];
1398
- }
1399
- try {
1400
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
1401
- define({}, "");
1402
- } catch (err) {
1403
- define = function(obj, key, value) {
1404
- return obj[key] = value;
1405
- };
1406
- }
1407
-
1408
- function wrap(innerFn, outerFn, self, tryLocsList) {
1409
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
1410
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
1411
- var generator = Object.create(protoGenerator.prototype);
1412
- var context = new Context(tryLocsList || []);
1413
-
1414
- // The ._invoke method unifies the implementations of the .next,
1415
- // .throw, and .return methods.
1416
- generator._invoke = makeInvokeMethod(innerFn, self, context);
1417
-
1418
- return generator;
1419
- }
1420
- exports.wrap = wrap;
1421
-
1422
- // Try/catch helper to minimize deoptimizations. Returns a completion
1423
- // record like context.tryEntries[i].completion. This interface could
1424
- // have been (and was previously) designed to take a closure to be
1425
- // invoked without arguments, but in all the cases we care about we
1426
- // already have an existing method we want to call, so there's no need
1427
- // to create a new function object. We can even get away with assuming
1428
- // the method takes exactly one argument, since that happens to be true
1429
- // in every case, so we don't have to touch the arguments object. The
1430
- // only additional allocation required is the completion record, which
1431
- // has a stable shape and so hopefully should be cheap to allocate.
1432
- function tryCatch(fn, obj, arg) {
1433
- try {
1434
- return { type: "normal", arg: fn.call(obj, arg) };
1435
- } catch (err) {
1436
- return { type: "throw", arg: err };
1437
- }
1438
- }
1439
-
1440
- var GenStateSuspendedStart = "suspendedStart";
1441
- var GenStateSuspendedYield = "suspendedYield";
1442
- var GenStateExecuting = "executing";
1443
- var GenStateCompleted = "completed";
1444
-
1445
- // Returning this object from the innerFn has the same effect as
1446
- // breaking out of the dispatch switch statement.
1447
- var ContinueSentinel = {};
1448
-
1449
- // Dummy constructor functions that we use as the .constructor and
1450
- // .constructor.prototype properties for functions that return Generator
1451
- // objects. For full spec compliance, you may wish to configure your
1452
- // minifier not to mangle the names of these two functions.
1453
- function Generator() {}
1454
- function GeneratorFunction() {}
1455
- function GeneratorFunctionPrototype() {}
1456
-
1457
- // This is a polyfill for %IteratorPrototype% for environments that
1458
- // don't natively support it.
1459
- var IteratorPrototype = {};
1460
- define(IteratorPrototype, iteratorSymbol, function () {
1461
- return this;
1462
- });
1463
-
1464
- var getProto = Object.getPrototypeOf;
1465
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
1466
- if (NativeIteratorPrototype &&
1467
- NativeIteratorPrototype !== Op &&
1468
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
1469
- // This environment has a native %IteratorPrototype%; use it instead
1470
- // of the polyfill.
1471
- IteratorPrototype = NativeIteratorPrototype;
1472
- }
1473
-
1474
- var Gp = GeneratorFunctionPrototype.prototype =
1475
- Generator.prototype = Object.create(IteratorPrototype);
1476
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
1477
- define(Gp, "constructor", GeneratorFunctionPrototype);
1478
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
1479
- GeneratorFunction.displayName = define(
1480
- GeneratorFunctionPrototype,
1481
- toStringTagSymbol,
1482
- "GeneratorFunction"
1483
- );
1484
-
1485
- // Helper for defining the .next, .throw, and .return methods of the
1486
- // Iterator interface in terms of a single ._invoke method.
1487
- function defineIteratorMethods(prototype) {
1488
- ["next", "throw", "return"].forEach(function(method) {
1489
- define(prototype, method, function(arg) {
1490
- return this._invoke(method, arg);
1491
- });
1492
- });
1493
- }
1494
-
1495
- exports.isGeneratorFunction = function(genFun) {
1496
- var ctor = typeof genFun === "function" && genFun.constructor;
1497
- return ctor
1498
- ? ctor === GeneratorFunction ||
1499
- // For the native GeneratorFunction constructor, the best we can
1500
- // do is to check its .name property.
1501
- (ctor.displayName || ctor.name) === "GeneratorFunction"
1502
- : false;
1503
- };
1504
-
1505
- exports.mark = function(genFun) {
1506
- if (Object.setPrototypeOf) {
1507
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
1508
- } else {
1509
- genFun.__proto__ = GeneratorFunctionPrototype;
1510
- define(genFun, toStringTagSymbol, "GeneratorFunction");
1511
- }
1512
- genFun.prototype = Object.create(Gp);
1513
- return genFun;
1514
- };
1515
-
1516
- // Within the body of any async function, `await x` is transformed to
1517
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
1518
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
1519
- // meant to be awaited.
1520
- exports.awrap = function(arg) {
1521
- return { __await: arg };
1522
- };
1523
-
1524
- function AsyncIterator(generator, PromiseImpl) {
1525
- function invoke(method, arg, resolve, reject) {
1526
- var record = tryCatch(generator[method], generator, arg);
1527
- if (record.type === "throw") {
1528
- reject(record.arg);
1529
- } else {
1530
- var result = record.arg;
1531
- var value = result.value;
1532
- if (value &&
1533
- typeof value === "object" &&
1534
- hasOwn.call(value, "__await")) {
1535
- return PromiseImpl.resolve(value.__await).then(function(value) {
1536
- invoke("next", value, resolve, reject);
1537
- }, function(err) {
1538
- invoke("throw", err, resolve, reject);
1539
- });
1540
- }
1541
-
1542
- return PromiseImpl.resolve(value).then(function(unwrapped) {
1543
- // When a yielded Promise is resolved, its final value becomes
1544
- // the .value of the Promise<{value,done}> result for the
1545
- // current iteration.
1546
- result.value = unwrapped;
1547
- resolve(result);
1548
- }, function(error) {
1549
- // If a rejected Promise was yielded, throw the rejection back
1550
- // into the async generator function so it can be handled there.
1551
- return invoke("throw", error, resolve, reject);
1552
- });
1553
- }
1554
- }
1555
-
1556
- var previousPromise;
1557
-
1558
- function enqueue(method, arg) {
1559
- function callInvokeWithMethodAndArg() {
1560
- return new PromiseImpl(function(resolve, reject) {
1561
- invoke(method, arg, resolve, reject);
1562
- });
1563
- }
1564
-
1565
- return previousPromise =
1566
- // If enqueue has been called before, then we want to wait until
1567
- // all previous Promises have been resolved before calling invoke,
1568
- // so that results are always delivered in the correct order. If
1569
- // enqueue has not been called before, then it is important to
1570
- // call invoke immediately, without waiting on a callback to fire,
1571
- // so that the async generator function has the opportunity to do
1572
- // any necessary setup in a predictable way. This predictability
1573
- // is why the Promise constructor synchronously invokes its
1574
- // executor callback, and why async functions synchronously
1575
- // execute code before the first await. Since we implement simple
1576
- // async functions in terms of async generators, it is especially
1577
- // important to get this right, even though it requires care.
1578
- previousPromise ? previousPromise.then(
1579
- callInvokeWithMethodAndArg,
1580
- // Avoid propagating failures to Promises returned by later
1581
- // invocations of the iterator.
1582
- callInvokeWithMethodAndArg
1583
- ) : callInvokeWithMethodAndArg();
1584
- }
1585
-
1586
- // Define the unified helper method that is used to implement .next,
1587
- // .throw, and .return (see defineIteratorMethods).
1588
- this._invoke = enqueue;
1589
- }
1590
-
1591
- defineIteratorMethods(AsyncIterator.prototype);
1592
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
1593
- return this;
1594
- });
1595
- exports.AsyncIterator = AsyncIterator;
1596
-
1597
- // Note that simple async functions are implemented on top of
1598
- // AsyncIterator objects; they just return a Promise for the value of
1599
- // the final result produced by the iterator.
1600
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
1601
- if (PromiseImpl === void 0) PromiseImpl = Promise;
1602
-
1603
- var iter = new AsyncIterator(
1604
- wrap(innerFn, outerFn, self, tryLocsList),
1605
- PromiseImpl
1606
- );
1607
-
1608
- return exports.isGeneratorFunction(outerFn)
1609
- ? iter // If outerFn is a generator, return the full iterator.
1610
- : iter.next().then(function(result) {
1611
- return result.done ? result.value : iter.next();
1612
- });
1613
- };
1614
-
1615
- function makeInvokeMethod(innerFn, self, context) {
1616
- var state = GenStateSuspendedStart;
1617
-
1618
- return function invoke(method, arg) {
1619
- if (state === GenStateExecuting) {
1620
- throw new Error("Generator is already running");
1621
- }
1622
-
1623
- if (state === GenStateCompleted) {
1624
- if (method === "throw") {
1625
- throw arg;
1626
- }
1627
-
1628
- // Be forgiving, per 25.3.3.3.3 of the spec:
1629
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
1630
- return doneResult();
1631
- }
1632
-
1633
- context.method = method;
1634
- context.arg = arg;
1635
-
1636
- while (true) {
1637
- var delegate = context.delegate;
1638
- if (delegate) {
1639
- var delegateResult = maybeInvokeDelegate(delegate, context);
1640
- if (delegateResult) {
1641
- if (delegateResult === ContinueSentinel) continue;
1642
- return delegateResult;
1643
- }
1644
- }
1645
-
1646
- if (context.method === "next") {
1647
- // Setting context._sent for legacy support of Babel's
1648
- // function.sent implementation.
1649
- context.sent = context._sent = context.arg;
1650
-
1651
- } else if (context.method === "throw") {
1652
- if (state === GenStateSuspendedStart) {
1653
- state = GenStateCompleted;
1654
- throw context.arg;
1655
- }
1656
-
1657
- context.dispatchException(context.arg);
1658
-
1659
- } else if (context.method === "return") {
1660
- context.abrupt("return", context.arg);
1661
- }
1662
-
1663
- state = GenStateExecuting;
1664
-
1665
- var record = tryCatch(innerFn, self, context);
1666
- if (record.type === "normal") {
1667
- // If an exception is thrown from innerFn, we leave state ===
1668
- // GenStateExecuting and loop back for another invocation.
1669
- state = context.done
1670
- ? GenStateCompleted
1671
- : GenStateSuspendedYield;
1672
-
1673
- if (record.arg === ContinueSentinel) {
1674
- continue;
1675
- }
1676
-
1677
- return {
1678
- value: record.arg,
1679
- done: context.done
1680
- };
1681
-
1682
- } else if (record.type === "throw") {
1683
- state = GenStateCompleted;
1684
- // Dispatch the exception by looping back around to the
1685
- // context.dispatchException(context.arg) call above.
1686
- context.method = "throw";
1687
- context.arg = record.arg;
1688
- }
1689
- }
1690
- };
1691
- }
1692
-
1693
- // Call delegate.iterator[context.method](context.arg) and handle the
1694
- // result, either by returning a { value, done } result from the
1695
- // delegate iterator, or by modifying context.method and context.arg,
1696
- // setting context.delegate to null, and returning the ContinueSentinel.
1697
- function maybeInvokeDelegate(delegate, context) {
1698
- var method = delegate.iterator[context.method];
1699
- if (method === undefined$1) {
1700
- // A .throw or .return when the delegate iterator has no .throw
1701
- // method always terminates the yield* loop.
1702
- context.delegate = null;
1703
-
1704
- if (context.method === "throw") {
1705
- // Note: ["return"] must be used for ES3 parsing compatibility.
1706
- if (delegate.iterator["return"]) {
1707
- // If the delegate iterator has a return method, give it a
1708
- // chance to clean up.
1709
- context.method = "return";
1710
- context.arg = undefined$1;
1711
- maybeInvokeDelegate(delegate, context);
1712
-
1713
- if (context.method === "throw") {
1714
- // If maybeInvokeDelegate(context) changed context.method from
1715
- // "return" to "throw", let that override the TypeError below.
1716
- return ContinueSentinel;
1717
- }
1718
- }
1719
-
1720
- context.method = "throw";
1721
- context.arg = new TypeError(
1722
- "The iterator does not provide a 'throw' method");
1723
- }
1724
-
1725
- return ContinueSentinel;
1726
- }
1727
-
1728
- var record = tryCatch(method, delegate.iterator, context.arg);
1729
-
1730
- if (record.type === "throw") {
1731
- context.method = "throw";
1732
- context.arg = record.arg;
1733
- context.delegate = null;
1734
- return ContinueSentinel;
1735
- }
1736
-
1737
- var info = record.arg;
1738
-
1739
- if (! info) {
1740
- context.method = "throw";
1741
- context.arg = new TypeError("iterator result is not an object");
1742
- context.delegate = null;
1743
- return ContinueSentinel;
1744
- }
1745
-
1746
- if (info.done) {
1747
- // Assign the result of the finished delegate to the temporary
1748
- // variable specified by delegate.resultName (see delegateYield).
1749
- context[delegate.resultName] = info.value;
1750
-
1751
- // Resume execution at the desired location (see delegateYield).
1752
- context.next = delegate.nextLoc;
1753
-
1754
- // If context.method was "throw" but the delegate handled the
1755
- // exception, let the outer generator proceed normally. If
1756
- // context.method was "next", forget context.arg since it has been
1757
- // "consumed" by the delegate iterator. If context.method was
1758
- // "return", allow the original .return call to continue in the
1759
- // outer generator.
1760
- if (context.method !== "return") {
1761
- context.method = "next";
1762
- context.arg = undefined$1;
1763
- }
1764
-
1765
- } else {
1766
- // Re-yield the result returned by the delegate method.
1767
- return info;
1768
- }
1769
-
1770
- // The delegate iterator is finished, so forget it and continue with
1771
- // the outer generator.
1772
- context.delegate = null;
1773
- return ContinueSentinel;
1774
- }
1775
-
1776
- // Define Generator.prototype.{next,throw,return} in terms of the
1777
- // unified ._invoke helper method.
1778
- defineIteratorMethods(Gp);
1779
-
1780
- define(Gp, toStringTagSymbol, "Generator");
1781
-
1782
- // A Generator should always return itself as the iterator object when the
1783
- // @@iterator function is called on it. Some browsers' implementations of the
1784
- // iterator prototype chain incorrectly implement this, causing the Generator
1785
- // object to not be returned from this call. This ensures that doesn't happen.
1786
- // See https://github.com/facebook/regenerator/issues/274 for more details.
1787
- define(Gp, iteratorSymbol, function() {
1788
- return this;
1789
- });
1790
-
1791
- define(Gp, "toString", function() {
1792
- return "[object Generator]";
1793
- });
1794
-
1795
- function pushTryEntry(locs) {
1796
- var entry = { tryLoc: locs[0] };
1797
-
1798
- if (1 in locs) {
1799
- entry.catchLoc = locs[1];
1800
- }
1801
-
1802
- if (2 in locs) {
1803
- entry.finallyLoc = locs[2];
1804
- entry.afterLoc = locs[3];
1805
- }
1806
-
1807
- this.tryEntries.push(entry);
1808
- }
1809
-
1810
- function resetTryEntry(entry) {
1811
- var record = entry.completion || {};
1812
- record.type = "normal";
1813
- delete record.arg;
1814
- entry.completion = record;
1815
- }
1816
-
1817
- function Context(tryLocsList) {
1818
- // The root entry object (effectively a try statement without a catch
1819
- // or a finally block) gives us a place to store values thrown from
1820
- // locations where there is no enclosing try statement.
1821
- this.tryEntries = [{ tryLoc: "root" }];
1822
- tryLocsList.forEach(pushTryEntry, this);
1823
- this.reset(true);
1824
- }
1825
-
1826
- exports.keys = function(object) {
1827
- var keys = [];
1828
- for (var key in object) {
1829
- keys.push(key);
1830
- }
1831
- keys.reverse();
1832
-
1833
- // Rather than returning an object with a next method, we keep
1834
- // things simple and return the next function itself.
1835
- return function next() {
1836
- while (keys.length) {
1837
- var key = keys.pop();
1838
- if (key in object) {
1839
- next.value = key;
1840
- next.done = false;
1841
- return next;
1842
- }
1843
- }
1844
-
1845
- // To avoid creating an additional object, we just hang the .value
1846
- // and .done properties off the next function object itself. This
1847
- // also ensures that the minifier will not anonymize the function.
1848
- next.done = true;
1849
- return next;
1850
- };
1851
- };
1852
-
1853
- function values(iterable) {
1854
- if (iterable) {
1855
- var iteratorMethod = iterable[iteratorSymbol];
1856
- if (iteratorMethod) {
1857
- return iteratorMethod.call(iterable);
1858
- }
1859
-
1860
- if (typeof iterable.next === "function") {
1861
- return iterable;
1862
- }
1863
-
1864
- if (!isNaN(iterable.length)) {
1865
- var i = -1, next = function next() {
1866
- while (++i < iterable.length) {
1867
- if (hasOwn.call(iterable, i)) {
1868
- next.value = iterable[i];
1869
- next.done = false;
1870
- return next;
1871
- }
1872
- }
1873
-
1874
- next.value = undefined$1;
1875
- next.done = true;
1876
-
1877
- return next;
1878
- };
1879
-
1880
- return next.next = next;
1881
- }
1882
- }
1883
-
1884
- // Return an iterator with no values.
1885
- return { next: doneResult };
1886
- }
1887
- exports.values = values;
1888
-
1889
- function doneResult() {
1890
- return { value: undefined$1, done: true };
1891
- }
1892
-
1893
- Context.prototype = {
1894
- constructor: Context,
1895
-
1896
- reset: function(skipTempReset) {
1897
- this.prev = 0;
1898
- this.next = 0;
1899
- // Resetting context._sent for legacy support of Babel's
1900
- // function.sent implementation.
1901
- this.sent = this._sent = undefined$1;
1902
- this.done = false;
1903
- this.delegate = null;
1904
-
1905
- this.method = "next";
1906
- this.arg = undefined$1;
1907
-
1908
- this.tryEntries.forEach(resetTryEntry);
1909
-
1910
- if (!skipTempReset) {
1911
- for (var name in this) {
1912
- // Not sure about the optimal order of these conditions:
1913
- if (name.charAt(0) === "t" &&
1914
- hasOwn.call(this, name) &&
1915
- !isNaN(+name.slice(1))) {
1916
- this[name] = undefined$1;
1917
- }
1918
- }
1919
- }
1920
- },
1921
-
1922
- stop: function() {
1923
- this.done = true;
1924
-
1925
- var rootEntry = this.tryEntries[0];
1926
- var rootRecord = rootEntry.completion;
1927
- if (rootRecord.type === "throw") {
1928
- throw rootRecord.arg;
1929
- }
1930
-
1931
- return this.rval;
1932
- },
1933
-
1934
- dispatchException: function(exception) {
1935
- if (this.done) {
1936
- throw exception;
1937
- }
1938
-
1939
- var context = this;
1940
- function handle(loc, caught) {
1941
- record.type = "throw";
1942
- record.arg = exception;
1943
- context.next = loc;
1944
-
1945
- if (caught) {
1946
- // If the dispatched exception was caught by a catch block,
1947
- // then let that catch block handle the exception normally.
1948
- context.method = "next";
1949
- context.arg = undefined$1;
1950
- }
1951
-
1952
- return !! caught;
1953
- }
1954
-
1955
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1956
- var entry = this.tryEntries[i];
1957
- var record = entry.completion;
1958
-
1959
- if (entry.tryLoc === "root") {
1960
- // Exception thrown outside of any try block that could handle
1961
- // it, so set the completion value of the entire function to
1962
- // throw the exception.
1963
- return handle("end");
1964
- }
1965
-
1966
- if (entry.tryLoc <= this.prev) {
1967
- var hasCatch = hasOwn.call(entry, "catchLoc");
1968
- var hasFinally = hasOwn.call(entry, "finallyLoc");
1969
-
1970
- if (hasCatch && hasFinally) {
1971
- if (this.prev < entry.catchLoc) {
1972
- return handle(entry.catchLoc, true);
1973
- } else if (this.prev < entry.finallyLoc) {
1974
- return handle(entry.finallyLoc);
1975
- }
1976
-
1977
- } else if (hasCatch) {
1978
- if (this.prev < entry.catchLoc) {
1979
- return handle(entry.catchLoc, true);
1980
- }
1981
-
1982
- } else if (hasFinally) {
1983
- if (this.prev < entry.finallyLoc) {
1984
- return handle(entry.finallyLoc);
1985
- }
1986
-
1987
- } else {
1988
- throw new Error("try statement without catch or finally");
1989
- }
1990
- }
1991
- }
1992
- },
1993
-
1994
- abrupt: function(type, arg) {
1995
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
1996
- var entry = this.tryEntries[i];
1997
- if (entry.tryLoc <= this.prev &&
1998
- hasOwn.call(entry, "finallyLoc") &&
1999
- this.prev < entry.finallyLoc) {
2000
- var finallyEntry = entry;
2001
- break;
2002
- }
2003
- }
2004
-
2005
- if (finallyEntry &&
2006
- (type === "break" ||
2007
- type === "continue") &&
2008
- finallyEntry.tryLoc <= arg &&
2009
- arg <= finallyEntry.finallyLoc) {
2010
- // Ignore the finally entry if control is not jumping to a
2011
- // location outside the try/catch block.
2012
- finallyEntry = null;
2013
- }
2014
-
2015
- var record = finallyEntry ? finallyEntry.completion : {};
2016
- record.type = type;
2017
- record.arg = arg;
2018
-
2019
- if (finallyEntry) {
2020
- this.method = "next";
2021
- this.next = finallyEntry.finallyLoc;
2022
- return ContinueSentinel;
2023
- }
2024
-
2025
- return this.complete(record);
2026
- },
2027
-
2028
- complete: function(record, afterLoc) {
2029
- if (record.type === "throw") {
2030
- throw record.arg;
2031
- }
2032
-
2033
- if (record.type === "break" ||
2034
- record.type === "continue") {
2035
- this.next = record.arg;
2036
- } else if (record.type === "return") {
2037
- this.rval = this.arg = record.arg;
2038
- this.method = "return";
2039
- this.next = "end";
2040
- } else if (record.type === "normal" && afterLoc) {
2041
- this.next = afterLoc;
2042
- }
2043
-
2044
- return ContinueSentinel;
2045
- },
2046
-
2047
- finish: function(finallyLoc) {
2048
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2049
- var entry = this.tryEntries[i];
2050
- if (entry.finallyLoc === finallyLoc) {
2051
- this.complete(entry.completion, entry.afterLoc);
2052
- resetTryEntry(entry);
2053
- return ContinueSentinel;
2054
- }
2055
- }
2056
- },
2057
-
2058
- "catch": function(tryLoc) {
2059
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
2060
- var entry = this.tryEntries[i];
2061
- if (entry.tryLoc === tryLoc) {
2062
- var record = entry.completion;
2063
- if (record.type === "throw") {
2064
- var thrown = record.arg;
2065
- resetTryEntry(entry);
2066
- }
2067
- return thrown;
2068
- }
2069
- }
2070
-
2071
- // The context.catch method must only be called with a location
2072
- // argument that corresponds to a known catch block.
2073
- throw new Error("illegal catch attempt");
2074
- },
2075
-
2076
- delegateYield: function(iterable, resultName, nextLoc) {
2077
- this.delegate = {
2078
- iterator: values(iterable),
2079
- resultName: resultName,
2080
- nextLoc: nextLoc
2081
- };
2082
-
2083
- if (this.method === "next") {
2084
- // Deliberately forget the last sent value so that we don't
2085
- // accidentally pass it on to the delegate.
2086
- this.arg = undefined$1;
2087
- }
2088
-
2089
- return ContinueSentinel;
2090
- }
2091
- };
2092
-
2093
- // Regardless of whether this script is executing as a CommonJS module
2094
- // or not, return the runtime object so that we can declare the variable
2095
- // regeneratorRuntime in the outer scope, which allows this module to be
2096
- // injected easily by `bin/regenerator --include-runtime script.js`.
2097
- return exports;
2098
-
2099
- }(
2100
- // If this script is executing as a CommonJS module, use module.exports
2101
- // as the regeneratorRuntime namespace. Otherwise create a new empty
2102
- // object. Either way, the resulting object will be used to initialize
2103
- // the regeneratorRuntime variable at the top of this file.
2104
- module.exports
2105
- ));
2106
-
2107
- try {
2108
- regeneratorRuntime = runtime;
2109
- } catch (accidentalStrictMode) {
2110
- // This module should not be running in strict mode, so the above
2111
- // assignment should always work unless something is misconfigured. Just
2112
- // in case runtime.js accidentally runs in strict mode, in modern engines
2113
- // we can explicitly access globalThis. In older engines we can escape
2114
- // strict mode using a global Function call. This could conceivably fail
2115
- // if a Content Security Policy forbids using Function, but in that case
2116
- // the proper solution is to fix the accidental strict mode problem. If
2117
- // you've misconfigured your bundler to force strict mode and applied a
2118
- // CSP to forbid Function, and you're not willing to fix either of those
2119
- // problems, please detail your unique predicament in a GitHub issue.
2120
- if (typeof globalThis === "object") {
2121
- globalThis.regeneratorRuntime = runtime;
2122
- } else {
2123
- Function("r", "regeneratorRuntime = r")(runtime);
2124
- }
2125
- }
2126
- });
2127
-
2128
- /**
2129
- * A specialized version of `_.reduce` for arrays without support for
2130
- * iteratee shorthands.
2131
- *
2132
- * @private
2133
- * @param {Array} [array] The array to iterate over.
2134
- * @param {Function} iteratee The function invoked per iteration.
2135
- * @param {*} [accumulator] The initial value.
2136
- * @param {boolean} [initAccum] Specify using the first element of `array` as
2137
- * the initial value.
2138
- * @returns {*} Returns the accumulated value.
2139
- */
2140
- function arrayReduce(array, iteratee, accumulator, initAccum) {
2141
- var index = -1,
2142
- length = array == null ? 0 : array.length;
2143
-
2144
- if (initAccum && length) {
2145
- accumulator = array[++index];
2146
- }
2147
- while (++index < length) {
2148
- accumulator = iteratee(accumulator, array[index], index, array);
2149
- }
2150
- return accumulator;
2151
- }
2152
-
2153
- var _arrayReduce = arrayReduce;
2154
-
2155
- /**
2156
- * The base implementation of `_.propertyOf` without support for deep paths.
2157
- *
2158
- * @private
2159
- * @param {Object} object The object to query.
2160
- * @returns {Function} Returns the new accessor function.
2161
- */
2162
- function basePropertyOf(object) {
2163
- return function(key) {
2164
- return object == null ? undefined : object[key];
2165
- };
2166
- }
2167
-
2168
- var _basePropertyOf = basePropertyOf;
2169
-
2170
- /** Used to map Latin Unicode letters to basic Latin letters. */
2171
- var deburredLetters = {
2172
- // Latin-1 Supplement block.
2173
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2174
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2175
- '\xc7': 'C', '\xe7': 'c',
2176
- '\xd0': 'D', '\xf0': 'd',
2177
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2178
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2179
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2180
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2181
- '\xd1': 'N', '\xf1': 'n',
2182
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2183
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2184
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2185
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2186
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2187
- '\xc6': 'Ae', '\xe6': 'ae',
2188
- '\xde': 'Th', '\xfe': 'th',
2189
- '\xdf': 'ss',
2190
- // Latin Extended-A block.
2191
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2192
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2193
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2194
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2195
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2196
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2197
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2198
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2199
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2200
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2201
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2202
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2203
- '\u0134': 'J', '\u0135': 'j',
2204
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2205
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2206
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2207
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2208
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2209
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2210
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2211
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2212
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2213
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2214
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2215
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2216
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2217
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2218
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2219
- '\u0174': 'W', '\u0175': 'w',
2220
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2221
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2222
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2223
- '\u0132': 'IJ', '\u0133': 'ij',
2224
- '\u0152': 'Oe', '\u0153': 'oe',
2225
- '\u0149': "'n", '\u017f': 's'
2226
- };
2227
-
2228
- /**
2229
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2230
- * letters to basic Latin letters.
2231
- *
2232
- * @private
2233
- * @param {string} letter The matched letter to deburr.
2234
- * @returns {string} Returns the deburred letter.
2235
- */
2236
- var deburrLetter = _basePropertyOf(deburredLetters);
2237
-
2238
- var _deburrLetter = deburrLetter;
2239
-
2240
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2241
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2242
-
2243
- /** Used to compose unicode character classes. */
2244
- var rsComboMarksRange$1 = '\\u0300-\\u036f',
2245
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
2246
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
2247
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1;
2248
-
2249
- /** Used to compose unicode capture groups. */
2250
- var rsCombo$1 = '[' + rsComboRange$1 + ']';
2251
-
2252
- /**
2253
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2254
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2255
- */
2256
- var reComboMark = RegExp(rsCombo$1, 'g');
2257
-
2258
- /**
2259
- * Deburrs `string` by converting
2260
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2261
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2262
- * letters to basic Latin letters and removing
2263
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2264
- *
2265
- * @static
2266
- * @memberOf _
2267
- * @since 3.0.0
2268
- * @category String
2269
- * @param {string} [string=''] The string to deburr.
2270
- * @returns {string} Returns the deburred string.
2271
- * @example
2272
- *
2273
- * _.deburr('déjà vu');
2274
- * // => 'deja vu'
2275
- */
2276
- function deburr(string) {
2277
- string = toString_1(string);
2278
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2279
- }
2280
-
2281
- var deburr_1 = deburr;
2282
-
2283
- /** Used to match words composed of alphanumeric characters. */
2284
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2285
-
2286
- /**
2287
- * Splits an ASCII `string` into an array of its words.
2288
- *
2289
- * @private
2290
- * @param {string} The string to inspect.
2291
- * @returns {Array} Returns the words of `string`.
2292
- */
2293
- function asciiWords(string) {
2294
- return string.match(reAsciiWord) || [];
2295
- }
2296
-
2297
- var _asciiWords = asciiWords;
2298
-
2299
- /** Used to detect strings that need a more robust regexp to match words. */
2300
- 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 ]/;
2301
-
2302
- /**
2303
- * Checks if `string` contains a word composed of Unicode symbols.
2304
- *
2305
- * @private
2306
- * @param {string} string The string to inspect.
2307
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2308
- */
2309
- function hasUnicodeWord(string) {
2310
- return reHasUnicodeWord.test(string);
2311
- }
2312
-
2313
- var _hasUnicodeWord = hasUnicodeWord;
2314
-
2315
- /** Used to compose unicode character classes. */
2316
- var rsAstralRange = '\\ud800-\\udfff',
2317
- rsComboMarksRange = '\\u0300-\\u036f',
2318
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
2319
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
2320
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
2321
- rsDingbatRange = '\\u2700-\\u27bf',
2322
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2323
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2324
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2325
- rsPunctuationRange = '\\u2000-\\u206f',
2326
- 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',
2327
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2328
- rsVarRange = '\\ufe0e\\ufe0f',
2329
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2330
-
2331
- /** Used to compose unicode capture groups. */
2332
- var rsApos$1 = "['\u2019]",
2333
- rsBreak = '[' + rsBreakRange + ']',
2334
- rsCombo = '[' + rsComboRange + ']',
2335
- rsDigits = '\\d+',
2336
- rsDingbat = '[' + rsDingbatRange + ']',
2337
- rsLower = '[' + rsLowerRange + ']',
2338
- rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2339
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
2340
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
2341
- rsNonAstral = '[^' + rsAstralRange + ']',
2342
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2343
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2344
- rsUpper = '[' + rsUpperRange + ']',
2345
- rsZWJ = '\\u200d';
2346
-
2347
- /** Used to compose unicode regexes. */
2348
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2349
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2350
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2351
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2352
- reOptMod = rsModifier + '?',
2353
- rsOptVar = '[' + rsVarRange + ']?',
2354
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
2355
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2356
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2357
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
2358
- rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
2359
-
2360
- /** Used to match complex or compound words. */
2361
- var reUnicodeWord = RegExp([
2362
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2363
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2364
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2365
- rsUpper + '+' + rsOptContrUpper,
2366
- rsOrdUpper,
2367
- rsOrdLower,
2368
- rsDigits,
2369
- rsEmoji
2370
- ].join('|'), 'g');
2371
-
2372
- /**
2373
- * Splits a Unicode `string` into an array of its words.
2374
- *
2375
- * @private
2376
- * @param {string} The string to inspect.
2377
- * @returns {Array} Returns the words of `string`.
2378
- */
2379
- function unicodeWords(string) {
2380
- return string.match(reUnicodeWord) || [];
2381
- }
2382
-
2383
- var _unicodeWords = unicodeWords;
2384
-
2385
- /**
2386
- * Splits `string` into an array of its words.
2387
- *
2388
- * @static
2389
- * @memberOf _
2390
- * @since 3.0.0
2391
- * @category String
2392
- * @param {string} [string=''] The string to inspect.
2393
- * @param {RegExp|string} [pattern] The pattern to match words.
2394
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2395
- * @returns {Array} Returns the words of `string`.
2396
- * @example
2397
- *
2398
- * _.words('fred, barney, & pebbles');
2399
- * // => ['fred', 'barney', 'pebbles']
2400
- *
2401
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2402
- * // => ['fred', 'barney', '&', 'pebbles']
2403
- */
2404
- function words(string, pattern, guard) {
2405
- string = toString_1(string);
2406
- pattern = guard ? undefined : pattern;
2407
-
2408
- if (pattern === undefined) {
2409
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2410
- }
2411
- return string.match(pattern) || [];
2412
- }
2413
-
2414
- var words_1 = words;
2415
-
2416
- /** Used to compose unicode capture groups. */
2417
- var rsApos = "['\u2019]";
2418
-
2419
- /** Used to match apostrophes. */
2420
- var reApos = RegExp(rsApos, 'g');
2421
-
2422
- /**
2423
- * Creates a function like `_.camelCase`.
2424
- *
2425
- * @private
2426
- * @param {Function} callback The function to combine each word.
2427
- * @returns {Function} Returns the new compounder function.
2428
- */
2429
- function createCompounder(callback) {
2430
- return function(string) {
2431
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2432
- };
2433
- }
2434
-
2435
- var _createCompounder = createCompounder;
2436
-
2437
- /**
2438
- * Converts `string`, as space separated words, to upper case.
2439
- *
2440
- * @static
2441
- * @memberOf _
2442
- * @since 4.0.0
2443
- * @category String
2444
- * @param {string} [string=''] The string to convert.
2445
- * @returns {string} Returns the upper cased string.
2446
- * @example
2447
- *
2448
- * _.upperCase('--foo-bar');
2449
- * // => 'FOO BAR'
2450
- *
2451
- * _.upperCase('fooBar');
2452
- * // => 'FOO BAR'
2453
- *
2454
- * _.upperCase('__foo_bar__');
2455
- * // => 'FOO BAR'
2456
- */
2457
- var upperCase = _createCompounder(function(result, word, index) {
2458
- return result + (index ? ' ' : '') + word.toUpperCase();
2459
- });
2460
-
2461
- var upperCase_1 = upperCase;
2462
-
2463
- /**
2464
- * Converts `string`, as space separated words, to lower case.
2465
- *
2466
- * @static
2467
- * @memberOf _
2468
- * @since 4.0.0
2469
- * @category String
2470
- * @param {string} [string=''] The string to convert.
2471
- * @returns {string} Returns the lower cased string.
2472
- * @example
2473
- *
2474
- * _.lowerCase('--Foo-Bar--');
2475
- * // => 'foo bar'
2476
- *
2477
- * _.lowerCase('fooBar');
2478
- * // => 'foo bar'
2479
- *
2480
- * _.lowerCase('__FOO_BAR__');
2481
- * // => 'foo bar'
2482
- */
2483
- var lowerCase = _createCompounder(function(result, word, index) {
2484
- return result + (index ? ' ' : '') + word.toLowerCase();
2485
- });
2486
-
2487
- var lowerCase_1 = lowerCase;
2488
-
2489
26
  var timestampToFormat = function timestampToFormat(value, unit, suffix, timestamp) {
2490
27
  var config = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
2491
28
  var _config$showTime = config.showTime,
@@ -2505,7 +42,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2505
42
  var localizedMonth = month;
2506
43
 
2507
44
  if (isUpperCase) {
2508
- localizedMonth = upperCase_1(month);
45
+ localizedMonth = lodash.upperCase(month);
2509
46
  }
2510
47
 
2511
48
  var year = dateTime.getFullYear();
@@ -2518,7 +55,7 @@ var timestampToFormat = function timestampToFormat(value, unit, suffix, timestam
2518
55
  var timetoShow;
2519
56
 
2520
57
  if (localizedMonths) {
2521
- localizedMonth = get_1(localizedMonths, [lowerCase_1(month)]) || month;
58
+ localizedMonth = lodash.get(localizedMonths, [lodash.lowerCase(month)]) || month;
2522
59
  }
2523
60
 
2524
61
  if (localizedMeridiem) {
@@ -2594,10 +131,10 @@ var clientWidths = {
2594
131
  tablet: 1024
2595
132
  };
2596
133
  var clientWidth = function clientWidth(device) {
2597
- var foundDeviceWidth = get_1(clientWidths, device);
134
+ var foundDeviceWidth = lodash.get(clientWidths, device);
2598
135
 
2599
136
  if (foundDeviceWidth) {
2600
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
137
+ return lodash.get(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2601
138
  }
2602
139
 
2603
140
  return false;
@@ -2627,7 +164,7 @@ var getSlug = function getSlug(collection) {
2627
164
  var isSection = collection.template === "section";
2628
165
 
2629
166
  if (isSection) {
2630
- var sectionId = get_1(collection, ["metadata", "section", "0", "id"], "");
167
+ var sectionId = lodash.get(collection, ["metadata", "section", "0", "id"], "");
2631
168
  var sections = config.sections;
2632
169
  var section = sections && sections.find(function (section) {
2633
170
  return section.id === sectionId;
@@ -2775,8 +312,8 @@ var MagazineCoverImageCard = function MagazineCoverImageCard(_ref) {
2775
312
  var collection = _ref.collection,
2776
313
  _ref$config = _ref.config,
2777
314
  config = _ref$config === void 0 ? {} : _ref$config;
2778
- var imgAltText = get_1(collection, ["metadata", "magazine", "name"], "cover-image");
2779
- var coverImageData = get_1(collection, ["metadata", "cover-image"]) || {};
315
+ var imgAltText = lodash.get(collection, ["metadata", "magazine", "name"], "cover-image");
316
+ var coverImageData = lodash.get(collection, ["metadata", "cover-image"]) || {};
2780
317
  var _config$magazineSlug = config.magazineSlug,
2781
318
  magazineSlug = _config$magazineSlug === void 0 ? "" : _config$magazineSlug;
2782
319
  var coverUrl = coverImageData["cover-image-url"],
@@ -2865,7 +402,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2865
402
  _ref$navigate = _ref.navigate,
2866
403
  navigate = _ref$navigate === void 0 ? true : _ref$navigate;
2867
404
  var collectionTitle = useStateValue() || {};
2868
- var showRowTitle = get_1(collectionTitle, ["showRowTitle"], true);
405
+ var showRowTitle = lodash.get(collectionTitle, ["showRowTitle"], true);
2869
406
  var supportedTemplates = ["borderLeft", "borderBottom", "crossLine", "borderBottomFull"];
2870
407
  var templateStyle = supportedTemplates.includes(collectionNameTemplate) ? " collection-".concat(collectionNameTemplate) : "";
2871
408
  var slug = navigate && collection && getSlug(collection, config) || "";
@@ -2941,7 +478,7 @@ var CollectionNameBase = function CollectionNameBase(_ref) {
2941
478
  borderBottom: borderBottomFullStyle
2942
479
  },
2943
480
  "data-test-id": "collection-name",
2944
- className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$2)
481
+ className: ("arr--collection-name arrow-component ".concat(templateStyle) ? "arr--collection-name arrow-component ".concat(templateStyle) + " " : "") + _getClassName__default["default"]("collection ".concat(textColor, " ").concat(templateStyle), _styleModuleImportMap$2)
2945
482
  }, templateStyle.includes("collection-borderLeft") && /*#__PURE__*/React__default["default"].createElement("span", {
2946
483
  className: "arr-collection-name-border-left collection-name-m_border-left__3_pYw",
2947
484
  style: {
@@ -2978,7 +515,7 @@ CollectionNameBase.defaultProps = {
2978
515
 
2979
516
  function mapStateToProps(state) {
2980
517
  return {
2981
- config: get_1(state, ["qt", "config"], {})
518
+ config: lodash.get(state, ["qt", "config"], {})
2982
519
  };
2983
520
  }
2984
521
 
@@ -2995,7 +532,7 @@ var _styleModuleImportMap$1 = {
2995
532
 
2996
533
  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; }
2997
534
 
2998
- 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; }
535
+ 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; }
2999
536
  var LoadmoreButton = function LoadmoreButton(_ref) {
3000
537
  var _ref$config = _ref.config,
3001
538
  config = _ref$config === void 0 ? {} : _ref$config,
@@ -3019,14 +556,14 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
3019
556
  return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
3020
557
  onClick: onClick,
3021
558
  "data-test-id": "load-more",
3022
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
559
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$1)
3023
560
  }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
3024
561
  href: slug,
3025
562
  navigateTo: navigate,
3026
563
  "data-test-id": "load-more",
3027
564
  "aria-label": "load-more"
3028
565
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3029
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$1)
566
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$1)
3030
567
  }, buttonText));
3031
568
  };
3032
569
  LoadmoreButton.propTypes = {
@@ -3054,7 +591,7 @@ var _styleModuleImportMap = {
3054
591
 
3055
592
  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; }
3056
593
 
3057
- 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; }
594
+ 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; }
3058
595
  var MagazineEditionsBase = function MagazineEditionsBase(_ref) {
3059
596
  var _ref$collection = _ref.collection,
3060
597
  collection = _ref$collection === void 0 ? [] : _ref$collection,
@@ -3082,7 +619,7 @@ var MagazineEditionsBase = function MagazineEditionsBase(_ref) {
3082
619
  return issue.collection;
3083
620
  }) || [];
3084
621
  var qtConfig = reactRedux.useSelector(function (state) {
3085
- return get_1(state, ["qt", "config"], {});
622
+ return lodash.get(state, ["qt", "config"], {});
3086
623
  });
3087
624
  var dispatch = reactRedux.useDispatch();
3088
625
  var url = generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
@@ -3094,7 +631,7 @@ var MagazineEditionsBase = function MagazineEditionsBase(_ref) {
3094
631
  },
3095
632
  "data-test-id": "editions"
3096
633
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3097
- className: _getClassName("container ".concat(textColor), _styleModuleImportMap)
634
+ className: _getClassName__default["default"]("container ".concat(textColor), _styleModuleImportMap)
3098
635
  }, showRowTitle && /*#__PURE__*/React__default["default"].createElement(CollectionName, {
3099
636
  collection: issues,
3100
637
  collectionNameTemplate: collectionNameTemplate,