@quintype/arrow 3.15.1-fallback-support.1 → 3.15.1-perf.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/atoms/Author/index.js +2250 -0
  2. package/{Author → atoms/Author}/styles.arrow.css +0 -0
  3. package/atoms/AuthorWithTime/index.js +2954 -0
  4. package/{AuthorWithTime → atoms/AuthorWithTime}/styles.arrow.css +0 -0
  5. package/atoms/CollectionName/index.js +2334 -0
  6. package/{CollectionName → atoms/CollectionName}/styles.arrow.css +0 -0
  7. package/atoms/ExtendedLoadMore/index-2d713010.js +166 -0
  8. package/atoms/ExtendedLoadMore/index-4191a84c.js +240 -0
  9. package/atoms/ExtendedLoadMore/index-5a7900ba.js +181 -0
  10. package/atoms/ExtendedLoadMore/index-6cb56d1a.js +350 -0
  11. package/atoms/ExtendedLoadMore/index-6daa674c.js +282 -0
  12. package/atoms/ExtendedLoadMore/index-6f8c780e.js +243 -0
  13. package/atoms/ExtendedLoadMore/index-7eb05b3d.js +199 -0
  14. package/atoms/ExtendedLoadMore/index-8345922c.js +175 -0
  15. package/atoms/ExtendedLoadMore/index-99af722e.js +175 -0
  16. package/atoms/ExtendedLoadMore/index-aa8b8ab8.js +990 -0
  17. package/atoms/ExtendedLoadMore/index-c8f346d0.js +223 -0
  18. package/atoms/ExtendedLoadMore/index-e39b3ca8.js +3023 -0
  19. package/atoms/ExtendedLoadMore/index-f6e578e3.js +86 -0
  20. package/atoms/ExtendedLoadMore/index.js +5 -0
  21. package/atoms/ExtendedLoadMore/styles.arrow.css +1 -0
  22. package/atoms/Headline/index.js +2459 -0
  23. package/{Headline → atoms/Headline}/styles.arrow.css +0 -0
  24. package/atoms/HeroImage/index.js +2475 -0
  25. package/{HeroImage → atoms/HeroImage}/styles.arrow.css +0 -0
  26. package/atoms/LoadmoreButton/index.js +2268 -0
  27. package/{LoadmoreButton → atoms/LoadmoreButton}/styles.arrow.css +0 -0
  28. package/atoms/ScrollSnap/index.js +2531 -0
  29. package/{ScrollSnap → atoms/ScrollSnap}/styles.arrow.css +0 -0
  30. package/atoms/SectionTag/index.js +2220 -0
  31. package/{SectionTag → atoms/SectionTag}/styles.arrow.css +0 -0
  32. package/atoms/Subheadline/index.js +2200 -0
  33. package/{Subheadline → atoms/Subheadline}/styles.arrow.css +0 -0
  34. package/atoms/TimeStamp/index.js +2661 -0
  35. package/{TimeStamp → atoms/TimeStamp}/styles.arrow.css +0 -0
  36. package/molecules/KeyEvents/index.js +2968 -0
  37. package/{KeyEvents → molecules/KeyEvents}/styles.arrow.css +0 -0
  38. package/molecules/PageIntroductionCard/index.js +2676 -0
  39. package/{PageIntroductionCard → molecules/PageIntroductionCard}/styles.arrow.css +0 -0
  40. package/molecules/SocialShareTemplate/index.js +3093 -0
  41. package/{SocialShareTemplate → molecules/SocialShareTemplate}/styles.arrow.css +0 -0
  42. package/molecules/StoryCard/index.js +3938 -0
  43. package/{StoryCard → molecules/StoryCard}/styles.arrow.css +0 -0
  44. package/molecules/StoryElementCard/index.js +5832 -0
  45. package/{StoryElementCard → molecules/StoryElementCard}/styles.arrow.css +0 -0
  46. package/molecules/StorycardContent/index.js +3416 -0
  47. package/{StorycardContent → molecules/StorycardContent}/styles.arrow.css +0 -0
  48. package/package.json +1 -1
  49. package/rows/AlternateCollectionFilter/index.js +4744 -0
  50. package/{AlternateCollectionFilter → rows/AlternateCollectionFilter}/styles.arrow.css +0 -0
  51. package/rows/AsideCollection/index.js +4690 -0
  52. package/{AsideCollection → rows/AsideCollection}/styles.arrow.css +0 -0
  53. package/rows/AstrologyCollection/index.js +4661 -0
  54. package/{AstrologyCollection → rows/AstrologyCollection}/styles.arrow.css +0 -0
  55. package/rows/AuthorIntroductionCard/index.js +3520 -0
  56. package/{AuthorIntroductionCard → rows/AuthorIntroductionCard}/styles.arrow.css +0 -0
  57. package/rows/AuthorsList/index.js +3715 -0
  58. package/{AuthorsList → rows/AuthorsList}/styles.arrow.css +0 -0
  59. package/rows/CollectionFilter/index.js +4834 -0
  60. package/{CollectionFilter → rows/CollectionFilter}/styles.arrow.css +0 -0
  61. package/rows/ElevenStories/index.js +4638 -0
  62. package/{ElevenStories → rows/ElevenStories}/styles.arrow.css +0 -0
  63. package/rows/FourColFiveStories/index.js +4359 -0
  64. package/{FourColFiveStories → rows/FourColFiveStories}/styles.arrow.css +0 -0
  65. package/rows/FourColGrid/index.js +4584 -0
  66. package/{FourColGrid → rows/FourColGrid}/styles.arrow.css +0 -0
  67. package/rows/FourColPortraitStories/index.js +4617 -0
  68. package/{FourColPortraitStories → rows/FourColPortraitStories}/styles.arrow.css +0 -0
  69. package/rows/FourColSixteenStories/index.js +4375 -0
  70. package/{FourColSixteenStories → rows/FourColSixteenStories}/styles.arrow.css +0 -0
  71. package/rows/FourColTwelveStories/index.js +4335 -0
  72. package/{FourColTwelveStories → rows/FourColTwelveStories}/styles.arrow.css +0 -0
  73. package/rows/FourStorySlider/index.js +4743 -0
  74. package/{FourStorySlider → rows/FourStorySlider}/styles.arrow.css +0 -0
  75. package/rows/FourStorySliderPortrait/index.js +4746 -0
  76. package/{FourStorySliderPortrait → rows/FourStorySliderPortrait}/styles.arrow.css +1 -1
  77. package/rows/FourTabbedBigStorySlider/index.js +4505 -0
  78. package/{FourTabbedBigStorySlider → rows/FourTabbedBigStorySlider}/styles.arrow.css +0 -0
  79. package/rows/FullScreenSlider/index.js +4661 -0
  80. package/{FullScreenSlider → rows/FullScreenSlider}/styles.arrow.css +0 -0
  81. package/rows/HalfScreenSlider/index.js +4514 -0
  82. package/{HalfScreenSlider → rows/HalfScreenSlider}/styles.arrow.css +0 -0
  83. package/rows/ListComponent/index.js +4462 -0
  84. package/{ListComponent → rows/ListComponent}/styles.arrow.css +0 -0
  85. package/rows/Listicles/index.js +3131 -0
  86. package/{Listicles → rows/Listicles}/styles.arrow.css +0 -0
  87. package/rows/MagazineEditions/index.js +3142 -0
  88. package/{MagazineEditions → rows/MagazineEditions}/styles.arrow.css +0 -0
  89. package/rows/MagazineHeaderCard/index.js +3136 -0
  90. package/{MagazineHeaderCard → rows/MagazineHeaderCard}/styles.arrow.css +0 -0
  91. package/rows/MagazineWidget/index.js +4514 -0
  92. package/{MagazineWidget → rows/MagazineWidget}/styles.arrow.css +0 -0
  93. package/rows/OneColStoryList/index.js +4670 -0
  94. package/{OneColStoryList → rows/OneColStoryList}/styles.arrow.css +0 -0
  95. package/rows/OpinionCollection/index.js +4037 -0
  96. package/{OpinionCollection → rows/OpinionCollection}/styles.arrow.css +0 -0
  97. package/rows/SixColSixStories/index.js +4515 -0
  98. package/{SixColSixStories → rows/SixColSixStories}/styles.arrow.css +0 -0
  99. package/rows/StoryCollection/index.js +4690 -0
  100. package/{StoryCollection → rows/StoryCollection}/styles.arrow.css +0 -0
  101. package/rows/TagIntroductionCard/index.js +1901 -0
  102. package/{TagIntroductionCard → rows/TagIntroductionCard}/styles.arrow.css +0 -0
  103. package/rows/ThreeColFlexStories/index.js +4575 -0
  104. package/{ThreeColFlexStories → rows/ThreeColFlexStories}/styles.arrow.css +0 -0
  105. package/rows/ThreeColFourteenStories/index.js +4283 -0
  106. package/{ThreeColFourteenStories → rows/ThreeColFourteenStories}/styles.arrow.css +0 -0
  107. package/rows/ThreeColGrid/index.js +4605 -0
  108. package/{ThreeColGrid → rows/ThreeColGrid}/styles.arrow.css +0 -0
  109. package/rows/ThreeColSevenStory/index.js +4502 -0
  110. package/{ThreeColSevenStory → rows/ThreeColSevenStory}/styles.arrow.css +0 -0
  111. package/rows/ThreeColSixStories/index.js +4485 -0
  112. package/{ThreeColSixStories → rows/ThreeColSixStories}/styles.arrow.css +0 -0
  113. package/rows/ThreeColTwelveStories/index.js +4380 -0
  114. package/{ThreeColTwelveStories → rows/ThreeColTwelveStories}/styles.arrow.css +0 -0
  115. package/rows/TwoColFourStories/index.js +4463 -0
  116. package/{TwoColFourStories → rows/TwoColFourStories}/styles.arrow.css +0 -0
  117. package/rows/TwoColFourStoryHighlight/index.js +4456 -0
  118. package/{TwoColFourStoryHighlight → rows/TwoColFourStoryHighlight}/styles.arrow.css +0 -0
  119. package/rows/TwoColSevenStories/index.js +4490 -0
  120. package/{TwoColSevenStories → rows/TwoColSevenStories}/styles.arrow.css +0 -0
  121. package/rows/TwoColSixStories/index.js +4489 -0
  122. package/{TwoColSixStories → rows/TwoColSixStories}/styles.arrow.css +0 -0
  123. package/rows/TwoColTenStoriesSidebar/index.js +4549 -0
  124. package/{TwoColTenStoriesSidebar → rows/TwoColTenStoriesSidebar}/styles.arrow.css +0 -0
  125. package/rows/TwoColThreeStories/index.js +4436 -0
  126. package/{TwoColThreeStories → rows/TwoColThreeStories}/styles.arrow.css +0 -0
  127. package/story-elements/AlsoRead/index.js +2457 -0
  128. package/{AlsoRead → story-elements/AlsoRead}/styles.arrow.css +0 -0
  129. package/story-elements/Attachment/index.js +2013 -0
  130. package/{Attachment → story-elements/Attachment}/styles.arrow.css +0 -0
  131. package/story-elements/BigFact/index.js +1983 -0
  132. package/{BigFact → story-elements/BigFact}/styles.arrow.css +0 -0
  133. package/story-elements/BlockQuote/index.js +2431 -0
  134. package/{BlockQuote → story-elements/BlockQuote}/styles.arrow.css +0 -0
  135. package/story-elements/Blurb/index.js +2094 -0
  136. package/{Blurb → story-elements/Blurb}/styles.arrow.css +0 -0
  137. package/story-elements/Image/index.js +2711 -0
  138. package/{Image → story-elements/Image}/styles.arrow.css +0 -0
  139. package/story-elements/ImageGallery/index.js +2644 -0
  140. package/{ImageGallery → story-elements/ImageGallery}/styles.arrow.css +0 -0
  141. package/story-elements/ImageSlideshow/index.js +2955 -0
  142. package/{ImageSlideshow → story-elements/ImageSlideshow}/styles.arrow.css +0 -0
  143. package/story-elements/QuestionAnswer/index.js +2395 -0
  144. package/{QuestionAnswer → story-elements/QuestionAnswer}/styles.arrow.css +0 -0
  145. package/story-elements/Quote/index.js +2012 -0
  146. package/{Quote → story-elements/Quote}/styles.arrow.css +0 -0
  147. package/story-elements/Reference/index.js +2006 -0
  148. package/{Reference → story-elements/Reference}/styles.arrow.css +0 -0
  149. package/story-elements/StoryElement/index.js +1779 -0
  150. package/story-elements/Summary/index.js +2036 -0
  151. package/{Summary → story-elements/Summary}/styles.arrow.css +0 -0
  152. package/story-elements/Text/index.js +2293 -0
  153. package/{Text → story-elements/Text}/styles.arrow.css +0 -0
  154. package/story-elements/Video/index.js +1785 -0
  155. package/{Video → story-elements/Video}/styles.arrow.css +0 -0
  156. package/story-templates/ListicleStoryTemplate/index.js +8442 -0
  157. package/{ListicleStoryTemplate → story-templates/ListicleStoryTemplate}/styles.arrow.css +0 -0
  158. package/story-templates/LiveBlogStoryTemplate/index.js +8618 -0
  159. package/{LiveBlogStoryTemplate → story-templates/LiveBlogStoryTemplate}/styles.arrow.css +0 -0
  160. package/story-templates/PhotoStoryTemplate/index.js +8420 -0
  161. package/{PhotoStoryTemplate → story-templates/PhotoStoryTemplate}/styles.arrow.css +0 -0
  162. package/story-templates/TextStoryTemplate/index.js +8493 -0
  163. package/{TextStoryTemplate → story-templates/TextStoryTemplate}/styles.arrow.css +0 -0
  164. package/story-templates/VideoStoryTemplate/index.js +8352 -0
  165. package/{VideoStoryTemplate → story-templates/VideoStoryTemplate}/styles.arrow.css +0 -0
  166. package/cjs/index.js +0 -1
  167. package/esm/index.js +0 -1
@@ -0,0 +1,2268 @@
1
+ import React from 'react';
2
+ import { LinkBase } from '@quintype/components';
3
+ import PropTypes from 'prop-types';
4
+ import 'react-timeago';
5
+ import 'date-fns-tz';
6
+
7
+ function _defineProperty(obj, key, value) {
8
+ if (key in obj) {
9
+ Object.defineProperty(obj, key, {
10
+ value: value,
11
+ enumerable: true,
12
+ configurable: true,
13
+ writable: true
14
+ });
15
+ } else {
16
+ obj[key] = value;
17
+ }
18
+
19
+ return obj;
20
+ }
21
+
22
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
23
+
24
+ function getDefaultExportFromCjs (x) {
25
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
26
+ }
27
+
28
+ function createCommonjsModule(fn) {
29
+ var module = { exports: {} };
30
+ return fn(module, module.exports), module.exports;
31
+ }
32
+
33
+ var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
34
+
35
+ Object.defineProperty(exports, "__esModule", {
36
+ value: true
37
+ });
38
+ exports["default"] = void 0;
39
+ var optionsDefaults = {
40
+ attributeNames: {
41
+ styleName: 'className'
42
+ },
43
+ generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
44
+ handleMissingStyleName: 'throw'
45
+ };
46
+ var _default = optionsDefaults;
47
+ exports["default"] = _default;
48
+
49
+
50
+ });
51
+
52
+ var getClassName = createCommonjsModule(function (module, exports) {
53
+
54
+ Object.defineProperty(exports, "__esModule", {
55
+ value: true
56
+ });
57
+ exports["default"] = void 0;
58
+
59
+ var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
60
+
61
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
62
+
63
+ var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
64
+ return styleName.indexOf('.') !== -1;
65
+ };
66
+
67
+ var handleError = function handleError(message, handleMissingStyleName) {
68
+ if (handleMissingStyleName === 'throw') {
69
+ throw new Error(message);
70
+ } else if (handleMissingStyleName === 'warn') {
71
+ // eslint-disable-next-line no-console
72
+ console.warn(message);
73
+ }
74
+
75
+ return null;
76
+ };
77
+
78
+ var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
79
+ // Note:
80
+ // Do not use the desctructing syntax with Babel.
81
+ // Desctructing adds _slicedToArray helper.
82
+ var styleNameParts = styleName.split('.');
83
+ var importName = styleNameParts[0];
84
+ var moduleName = styleNameParts[1];
85
+ var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
86
+
87
+ if (!moduleName) {
88
+ return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
89
+ }
90
+
91
+ if (!styleModuleImportMap[importName]) {
92
+ return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
93
+ }
94
+
95
+ if (!styleModuleImportMap[importName][moduleName]) {
96
+ return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
97
+ }
98
+
99
+ return styleModuleImportMap[importName][moduleName];
100
+ };
101
+
102
+ var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
103
+ var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
104
+ var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
105
+ return styleModuleImportMap[importKey][styleName] && importKey;
106
+ }).filter(function (importKey) {
107
+ return importKey;
108
+ });
109
+
110
+ if (importKeysWithMatches.length > 1) {
111
+ 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');
112
+ }
113
+
114
+ if (importKeysWithMatches.length === 0) {
115
+ return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
116
+ }
117
+
118
+ return styleModuleImportMap[importKeysWithMatches[0]][styleName];
119
+ };
120
+
121
+ var _default = function _default(styleNameValue, styleModuleImportMap, options) {
122
+ var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
123
+
124
+ var _ref = options || {},
125
+ _ref$handleMissingSty = _ref.handleMissingStyleName,
126
+ handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
127
+ _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
128
+ autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
129
+
130
+ if (!styleNameValue) {
131
+ return '';
132
+ }
133
+
134
+ return styleNameValue.split(' ').filter(function (styleName) {
135
+ return styleName;
136
+ }).map(function (styleName) {
137
+ if (isNamespacedStyleName(styleName)) {
138
+ return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
139
+ }
140
+
141
+ if (styleModuleImportMapKeys.length === 0) {
142
+ throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
143
+ }
144
+
145
+ if (styleModuleImportMapKeys.length > 1) {
146
+ if (!autoResolveMultipleImports) {
147
+ throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
148
+ }
149
+
150
+ return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
151
+ }
152
+
153
+ var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
154
+
155
+ if (!styleModuleMap[styleName]) {
156
+ return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
157
+ }
158
+
159
+ return styleModuleMap[styleName];
160
+ }).filter(function (className) {
161
+ // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
162
+ return className;
163
+ }).join(' ');
164
+ };
165
+
166
+ exports["default"] = _default;
167
+
168
+
169
+ });
170
+
171
+ var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
172
+
173
+ /**
174
+ * Copyright (c) 2014-present, Facebook, Inc.
175
+ *
176
+ * This source code is licensed under the MIT license found in the
177
+ * LICENSE file in the root directory of this source tree.
178
+ */
179
+
180
+ createCommonjsModule(function (module) {
181
+ var runtime = (function (exports) {
182
+
183
+ var Op = Object.prototype;
184
+ var hasOwn = Op.hasOwnProperty;
185
+ var undefined$1; // More compressible than void 0.
186
+ var $Symbol = typeof Symbol === "function" ? Symbol : {};
187
+ var iteratorSymbol = $Symbol.iterator || "@@iterator";
188
+ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
189
+ var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
190
+
191
+ function define(obj, key, value) {
192
+ Object.defineProperty(obj, key, {
193
+ value: value,
194
+ enumerable: true,
195
+ configurable: true,
196
+ writable: true
197
+ });
198
+ return obj[key];
199
+ }
200
+ try {
201
+ // IE 8 has a broken Object.defineProperty that only works on DOM objects.
202
+ define({}, "");
203
+ } catch (err) {
204
+ define = function(obj, key, value) {
205
+ return obj[key] = value;
206
+ };
207
+ }
208
+
209
+ function wrap(innerFn, outerFn, self, tryLocsList) {
210
+ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
211
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
212
+ var generator = Object.create(protoGenerator.prototype);
213
+ var context = new Context(tryLocsList || []);
214
+
215
+ // The ._invoke method unifies the implementations of the .next,
216
+ // .throw, and .return methods.
217
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
218
+
219
+ return generator;
220
+ }
221
+ exports.wrap = wrap;
222
+
223
+ // Try/catch helper to minimize deoptimizations. Returns a completion
224
+ // record like context.tryEntries[i].completion. This interface could
225
+ // have been (and was previously) designed to take a closure to be
226
+ // invoked without arguments, but in all the cases we care about we
227
+ // already have an existing method we want to call, so there's no need
228
+ // to create a new function object. We can even get away with assuming
229
+ // the method takes exactly one argument, since that happens to be true
230
+ // in every case, so we don't have to touch the arguments object. The
231
+ // only additional allocation required is the completion record, which
232
+ // has a stable shape and so hopefully should be cheap to allocate.
233
+ function tryCatch(fn, obj, arg) {
234
+ try {
235
+ return { type: "normal", arg: fn.call(obj, arg) };
236
+ } catch (err) {
237
+ return { type: "throw", arg: err };
238
+ }
239
+ }
240
+
241
+ var GenStateSuspendedStart = "suspendedStart";
242
+ var GenStateSuspendedYield = "suspendedYield";
243
+ var GenStateExecuting = "executing";
244
+ var GenStateCompleted = "completed";
245
+
246
+ // Returning this object from the innerFn has the same effect as
247
+ // breaking out of the dispatch switch statement.
248
+ var ContinueSentinel = {};
249
+
250
+ // Dummy constructor functions that we use as the .constructor and
251
+ // .constructor.prototype properties for functions that return Generator
252
+ // objects. For full spec compliance, you may wish to configure your
253
+ // minifier not to mangle the names of these two functions.
254
+ function Generator() {}
255
+ function GeneratorFunction() {}
256
+ function GeneratorFunctionPrototype() {}
257
+
258
+ // This is a polyfill for %IteratorPrototype% for environments that
259
+ // don't natively support it.
260
+ var IteratorPrototype = {};
261
+ define(IteratorPrototype, iteratorSymbol, function () {
262
+ return this;
263
+ });
264
+
265
+ var getProto = Object.getPrototypeOf;
266
+ var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
267
+ if (NativeIteratorPrototype &&
268
+ NativeIteratorPrototype !== Op &&
269
+ hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
270
+ // This environment has a native %IteratorPrototype%; use it instead
271
+ // of the polyfill.
272
+ IteratorPrototype = NativeIteratorPrototype;
273
+ }
274
+
275
+ var Gp = GeneratorFunctionPrototype.prototype =
276
+ Generator.prototype = Object.create(IteratorPrototype);
277
+ GeneratorFunction.prototype = GeneratorFunctionPrototype;
278
+ define(Gp, "constructor", GeneratorFunctionPrototype);
279
+ define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
280
+ GeneratorFunction.displayName = define(
281
+ GeneratorFunctionPrototype,
282
+ toStringTagSymbol,
283
+ "GeneratorFunction"
284
+ );
285
+
286
+ // Helper for defining the .next, .throw, and .return methods of the
287
+ // Iterator interface in terms of a single ._invoke method.
288
+ function defineIteratorMethods(prototype) {
289
+ ["next", "throw", "return"].forEach(function(method) {
290
+ define(prototype, method, function(arg) {
291
+ return this._invoke(method, arg);
292
+ });
293
+ });
294
+ }
295
+
296
+ exports.isGeneratorFunction = function(genFun) {
297
+ var ctor = typeof genFun === "function" && genFun.constructor;
298
+ return ctor
299
+ ? ctor === GeneratorFunction ||
300
+ // For the native GeneratorFunction constructor, the best we can
301
+ // do is to check its .name property.
302
+ (ctor.displayName || ctor.name) === "GeneratorFunction"
303
+ : false;
304
+ };
305
+
306
+ exports.mark = function(genFun) {
307
+ if (Object.setPrototypeOf) {
308
+ Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
309
+ } else {
310
+ genFun.__proto__ = GeneratorFunctionPrototype;
311
+ define(genFun, toStringTagSymbol, "GeneratorFunction");
312
+ }
313
+ genFun.prototype = Object.create(Gp);
314
+ return genFun;
315
+ };
316
+
317
+ // Within the body of any async function, `await x` is transformed to
318
+ // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
319
+ // `hasOwn.call(value, "__await")` to determine if the yielded value is
320
+ // meant to be awaited.
321
+ exports.awrap = function(arg) {
322
+ return { __await: arg };
323
+ };
324
+
325
+ function AsyncIterator(generator, PromiseImpl) {
326
+ function invoke(method, arg, resolve, reject) {
327
+ var record = tryCatch(generator[method], generator, arg);
328
+ if (record.type === "throw") {
329
+ reject(record.arg);
330
+ } else {
331
+ var result = record.arg;
332
+ var value = result.value;
333
+ if (value &&
334
+ typeof value === "object" &&
335
+ hasOwn.call(value, "__await")) {
336
+ return PromiseImpl.resolve(value.__await).then(function(value) {
337
+ invoke("next", value, resolve, reject);
338
+ }, function(err) {
339
+ invoke("throw", err, resolve, reject);
340
+ });
341
+ }
342
+
343
+ return PromiseImpl.resolve(value).then(function(unwrapped) {
344
+ // When a yielded Promise is resolved, its final value becomes
345
+ // the .value of the Promise<{value,done}> result for the
346
+ // current iteration.
347
+ result.value = unwrapped;
348
+ resolve(result);
349
+ }, function(error) {
350
+ // If a rejected Promise was yielded, throw the rejection back
351
+ // into the async generator function so it can be handled there.
352
+ return invoke("throw", error, resolve, reject);
353
+ });
354
+ }
355
+ }
356
+
357
+ var previousPromise;
358
+
359
+ function enqueue(method, arg) {
360
+ function callInvokeWithMethodAndArg() {
361
+ return new PromiseImpl(function(resolve, reject) {
362
+ invoke(method, arg, resolve, reject);
363
+ });
364
+ }
365
+
366
+ return previousPromise =
367
+ // If enqueue has been called before, then we want to wait until
368
+ // all previous Promises have been resolved before calling invoke,
369
+ // so that results are always delivered in the correct order. If
370
+ // enqueue has not been called before, then it is important to
371
+ // call invoke immediately, without waiting on a callback to fire,
372
+ // so that the async generator function has the opportunity to do
373
+ // any necessary setup in a predictable way. This predictability
374
+ // is why the Promise constructor synchronously invokes its
375
+ // executor callback, and why async functions synchronously
376
+ // execute code before the first await. Since we implement simple
377
+ // async functions in terms of async generators, it is especially
378
+ // important to get this right, even though it requires care.
379
+ previousPromise ? previousPromise.then(
380
+ callInvokeWithMethodAndArg,
381
+ // Avoid propagating failures to Promises returned by later
382
+ // invocations of the iterator.
383
+ callInvokeWithMethodAndArg
384
+ ) : callInvokeWithMethodAndArg();
385
+ }
386
+
387
+ // Define the unified helper method that is used to implement .next,
388
+ // .throw, and .return (see defineIteratorMethods).
389
+ this._invoke = enqueue;
390
+ }
391
+
392
+ defineIteratorMethods(AsyncIterator.prototype);
393
+ define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
394
+ return this;
395
+ });
396
+ exports.AsyncIterator = AsyncIterator;
397
+
398
+ // Note that simple async functions are implemented on top of
399
+ // AsyncIterator objects; they just return a Promise for the value of
400
+ // the final result produced by the iterator.
401
+ exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
402
+ if (PromiseImpl === void 0) PromiseImpl = Promise;
403
+
404
+ var iter = new AsyncIterator(
405
+ wrap(innerFn, outerFn, self, tryLocsList),
406
+ PromiseImpl
407
+ );
408
+
409
+ return exports.isGeneratorFunction(outerFn)
410
+ ? iter // If outerFn is a generator, return the full iterator.
411
+ : iter.next().then(function(result) {
412
+ return result.done ? result.value : iter.next();
413
+ });
414
+ };
415
+
416
+ function makeInvokeMethod(innerFn, self, context) {
417
+ var state = GenStateSuspendedStart;
418
+
419
+ return function invoke(method, arg) {
420
+ if (state === GenStateExecuting) {
421
+ throw new Error("Generator is already running");
422
+ }
423
+
424
+ if (state === GenStateCompleted) {
425
+ if (method === "throw") {
426
+ throw arg;
427
+ }
428
+
429
+ // Be forgiving, per 25.3.3.3.3 of the spec:
430
+ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
431
+ return doneResult();
432
+ }
433
+
434
+ context.method = method;
435
+ context.arg = arg;
436
+
437
+ while (true) {
438
+ var delegate = context.delegate;
439
+ if (delegate) {
440
+ var delegateResult = maybeInvokeDelegate(delegate, context);
441
+ if (delegateResult) {
442
+ if (delegateResult === ContinueSentinel) continue;
443
+ return delegateResult;
444
+ }
445
+ }
446
+
447
+ if (context.method === "next") {
448
+ // Setting context._sent for legacy support of Babel's
449
+ // function.sent implementation.
450
+ context.sent = context._sent = context.arg;
451
+
452
+ } else if (context.method === "throw") {
453
+ if (state === GenStateSuspendedStart) {
454
+ state = GenStateCompleted;
455
+ throw context.arg;
456
+ }
457
+
458
+ context.dispatchException(context.arg);
459
+
460
+ } else if (context.method === "return") {
461
+ context.abrupt("return", context.arg);
462
+ }
463
+
464
+ state = GenStateExecuting;
465
+
466
+ var record = tryCatch(innerFn, self, context);
467
+ if (record.type === "normal") {
468
+ // If an exception is thrown from innerFn, we leave state ===
469
+ // GenStateExecuting and loop back for another invocation.
470
+ state = context.done
471
+ ? GenStateCompleted
472
+ : GenStateSuspendedYield;
473
+
474
+ if (record.arg === ContinueSentinel) {
475
+ continue;
476
+ }
477
+
478
+ return {
479
+ value: record.arg,
480
+ done: context.done
481
+ };
482
+
483
+ } else if (record.type === "throw") {
484
+ state = GenStateCompleted;
485
+ // Dispatch the exception by looping back around to the
486
+ // context.dispatchException(context.arg) call above.
487
+ context.method = "throw";
488
+ context.arg = record.arg;
489
+ }
490
+ }
491
+ };
492
+ }
493
+
494
+ // Call delegate.iterator[context.method](context.arg) and handle the
495
+ // result, either by returning a { value, done } result from the
496
+ // delegate iterator, or by modifying context.method and context.arg,
497
+ // setting context.delegate to null, and returning the ContinueSentinel.
498
+ function maybeInvokeDelegate(delegate, context) {
499
+ var method = delegate.iterator[context.method];
500
+ if (method === undefined$1) {
501
+ // A .throw or .return when the delegate iterator has no .throw
502
+ // method always terminates the yield* loop.
503
+ context.delegate = null;
504
+
505
+ if (context.method === "throw") {
506
+ // Note: ["return"] must be used for ES3 parsing compatibility.
507
+ if (delegate.iterator["return"]) {
508
+ // If the delegate iterator has a return method, give it a
509
+ // chance to clean up.
510
+ context.method = "return";
511
+ context.arg = undefined$1;
512
+ maybeInvokeDelegate(delegate, context);
513
+
514
+ if (context.method === "throw") {
515
+ // If maybeInvokeDelegate(context) changed context.method from
516
+ // "return" to "throw", let that override the TypeError below.
517
+ return ContinueSentinel;
518
+ }
519
+ }
520
+
521
+ context.method = "throw";
522
+ context.arg = new TypeError(
523
+ "The iterator does not provide a 'throw' method");
524
+ }
525
+
526
+ return ContinueSentinel;
527
+ }
528
+
529
+ var record = tryCatch(method, delegate.iterator, context.arg);
530
+
531
+ if (record.type === "throw") {
532
+ context.method = "throw";
533
+ context.arg = record.arg;
534
+ context.delegate = null;
535
+ return ContinueSentinel;
536
+ }
537
+
538
+ var info = record.arg;
539
+
540
+ if (! info) {
541
+ context.method = "throw";
542
+ context.arg = new TypeError("iterator result is not an object");
543
+ context.delegate = null;
544
+ return ContinueSentinel;
545
+ }
546
+
547
+ if (info.done) {
548
+ // Assign the result of the finished delegate to the temporary
549
+ // variable specified by delegate.resultName (see delegateYield).
550
+ context[delegate.resultName] = info.value;
551
+
552
+ // Resume execution at the desired location (see delegateYield).
553
+ context.next = delegate.nextLoc;
554
+
555
+ // If context.method was "throw" but the delegate handled the
556
+ // exception, let the outer generator proceed normally. If
557
+ // context.method was "next", forget context.arg since it has been
558
+ // "consumed" by the delegate iterator. If context.method was
559
+ // "return", allow the original .return call to continue in the
560
+ // outer generator.
561
+ if (context.method !== "return") {
562
+ context.method = "next";
563
+ context.arg = undefined$1;
564
+ }
565
+
566
+ } else {
567
+ // Re-yield the result returned by the delegate method.
568
+ return info;
569
+ }
570
+
571
+ // The delegate iterator is finished, so forget it and continue with
572
+ // the outer generator.
573
+ context.delegate = null;
574
+ return ContinueSentinel;
575
+ }
576
+
577
+ // Define Generator.prototype.{next,throw,return} in terms of the
578
+ // unified ._invoke helper method.
579
+ defineIteratorMethods(Gp);
580
+
581
+ define(Gp, toStringTagSymbol, "Generator");
582
+
583
+ // A Generator should always return itself as the iterator object when the
584
+ // @@iterator function is called on it. Some browsers' implementations of the
585
+ // iterator prototype chain incorrectly implement this, causing the Generator
586
+ // object to not be returned from this call. This ensures that doesn't happen.
587
+ // See https://github.com/facebook/regenerator/issues/274 for more details.
588
+ define(Gp, iteratorSymbol, function() {
589
+ return this;
590
+ });
591
+
592
+ define(Gp, "toString", function() {
593
+ return "[object Generator]";
594
+ });
595
+
596
+ function pushTryEntry(locs) {
597
+ var entry = { tryLoc: locs[0] };
598
+
599
+ if (1 in locs) {
600
+ entry.catchLoc = locs[1];
601
+ }
602
+
603
+ if (2 in locs) {
604
+ entry.finallyLoc = locs[2];
605
+ entry.afterLoc = locs[3];
606
+ }
607
+
608
+ this.tryEntries.push(entry);
609
+ }
610
+
611
+ function resetTryEntry(entry) {
612
+ var record = entry.completion || {};
613
+ record.type = "normal";
614
+ delete record.arg;
615
+ entry.completion = record;
616
+ }
617
+
618
+ function Context(tryLocsList) {
619
+ // The root entry object (effectively a try statement without a catch
620
+ // or a finally block) gives us a place to store values thrown from
621
+ // locations where there is no enclosing try statement.
622
+ this.tryEntries = [{ tryLoc: "root" }];
623
+ tryLocsList.forEach(pushTryEntry, this);
624
+ this.reset(true);
625
+ }
626
+
627
+ exports.keys = function(object) {
628
+ var keys = [];
629
+ for (var key in object) {
630
+ keys.push(key);
631
+ }
632
+ keys.reverse();
633
+
634
+ // Rather than returning an object with a next method, we keep
635
+ // things simple and return the next function itself.
636
+ return function next() {
637
+ while (keys.length) {
638
+ var key = keys.pop();
639
+ if (key in object) {
640
+ next.value = key;
641
+ next.done = false;
642
+ return next;
643
+ }
644
+ }
645
+
646
+ // To avoid creating an additional object, we just hang the .value
647
+ // and .done properties off the next function object itself. This
648
+ // also ensures that the minifier will not anonymize the function.
649
+ next.done = true;
650
+ return next;
651
+ };
652
+ };
653
+
654
+ function values(iterable) {
655
+ if (iterable) {
656
+ var iteratorMethod = iterable[iteratorSymbol];
657
+ if (iteratorMethod) {
658
+ return iteratorMethod.call(iterable);
659
+ }
660
+
661
+ if (typeof iterable.next === "function") {
662
+ return iterable;
663
+ }
664
+
665
+ if (!isNaN(iterable.length)) {
666
+ var i = -1, next = function next() {
667
+ while (++i < iterable.length) {
668
+ if (hasOwn.call(iterable, i)) {
669
+ next.value = iterable[i];
670
+ next.done = false;
671
+ return next;
672
+ }
673
+ }
674
+
675
+ next.value = undefined$1;
676
+ next.done = true;
677
+
678
+ return next;
679
+ };
680
+
681
+ return next.next = next;
682
+ }
683
+ }
684
+
685
+ // Return an iterator with no values.
686
+ return { next: doneResult };
687
+ }
688
+ exports.values = values;
689
+
690
+ function doneResult() {
691
+ return { value: undefined$1, done: true };
692
+ }
693
+
694
+ Context.prototype = {
695
+ constructor: Context,
696
+
697
+ reset: function(skipTempReset) {
698
+ this.prev = 0;
699
+ this.next = 0;
700
+ // Resetting context._sent for legacy support of Babel's
701
+ // function.sent implementation.
702
+ this.sent = this._sent = undefined$1;
703
+ this.done = false;
704
+ this.delegate = null;
705
+
706
+ this.method = "next";
707
+ this.arg = undefined$1;
708
+
709
+ this.tryEntries.forEach(resetTryEntry);
710
+
711
+ if (!skipTempReset) {
712
+ for (var name in this) {
713
+ // Not sure about the optimal order of these conditions:
714
+ if (name.charAt(0) === "t" &&
715
+ hasOwn.call(this, name) &&
716
+ !isNaN(+name.slice(1))) {
717
+ this[name] = undefined$1;
718
+ }
719
+ }
720
+ }
721
+ },
722
+
723
+ stop: function() {
724
+ this.done = true;
725
+
726
+ var rootEntry = this.tryEntries[0];
727
+ var rootRecord = rootEntry.completion;
728
+ if (rootRecord.type === "throw") {
729
+ throw rootRecord.arg;
730
+ }
731
+
732
+ return this.rval;
733
+ },
734
+
735
+ dispatchException: function(exception) {
736
+ if (this.done) {
737
+ throw exception;
738
+ }
739
+
740
+ var context = this;
741
+ function handle(loc, caught) {
742
+ record.type = "throw";
743
+ record.arg = exception;
744
+ context.next = loc;
745
+
746
+ if (caught) {
747
+ // If the dispatched exception was caught by a catch block,
748
+ // then let that catch block handle the exception normally.
749
+ context.method = "next";
750
+ context.arg = undefined$1;
751
+ }
752
+
753
+ return !! caught;
754
+ }
755
+
756
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
757
+ var entry = this.tryEntries[i];
758
+ var record = entry.completion;
759
+
760
+ if (entry.tryLoc === "root") {
761
+ // Exception thrown outside of any try block that could handle
762
+ // it, so set the completion value of the entire function to
763
+ // throw the exception.
764
+ return handle("end");
765
+ }
766
+
767
+ if (entry.tryLoc <= this.prev) {
768
+ var hasCatch = hasOwn.call(entry, "catchLoc");
769
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
770
+
771
+ if (hasCatch && hasFinally) {
772
+ if (this.prev < entry.catchLoc) {
773
+ return handle(entry.catchLoc, true);
774
+ } else if (this.prev < entry.finallyLoc) {
775
+ return handle(entry.finallyLoc);
776
+ }
777
+
778
+ } else if (hasCatch) {
779
+ if (this.prev < entry.catchLoc) {
780
+ return handle(entry.catchLoc, true);
781
+ }
782
+
783
+ } else if (hasFinally) {
784
+ if (this.prev < entry.finallyLoc) {
785
+ return handle(entry.finallyLoc);
786
+ }
787
+
788
+ } else {
789
+ throw new Error("try statement without catch or finally");
790
+ }
791
+ }
792
+ }
793
+ },
794
+
795
+ abrupt: function(type, arg) {
796
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
797
+ var entry = this.tryEntries[i];
798
+ if (entry.tryLoc <= this.prev &&
799
+ hasOwn.call(entry, "finallyLoc") &&
800
+ this.prev < entry.finallyLoc) {
801
+ var finallyEntry = entry;
802
+ break;
803
+ }
804
+ }
805
+
806
+ if (finallyEntry &&
807
+ (type === "break" ||
808
+ type === "continue") &&
809
+ finallyEntry.tryLoc <= arg &&
810
+ arg <= finallyEntry.finallyLoc) {
811
+ // Ignore the finally entry if control is not jumping to a
812
+ // location outside the try/catch block.
813
+ finallyEntry = null;
814
+ }
815
+
816
+ var record = finallyEntry ? finallyEntry.completion : {};
817
+ record.type = type;
818
+ record.arg = arg;
819
+
820
+ if (finallyEntry) {
821
+ this.method = "next";
822
+ this.next = finallyEntry.finallyLoc;
823
+ return ContinueSentinel;
824
+ }
825
+
826
+ return this.complete(record);
827
+ },
828
+
829
+ complete: function(record, afterLoc) {
830
+ if (record.type === "throw") {
831
+ throw record.arg;
832
+ }
833
+
834
+ if (record.type === "break" ||
835
+ record.type === "continue") {
836
+ this.next = record.arg;
837
+ } else if (record.type === "return") {
838
+ this.rval = this.arg = record.arg;
839
+ this.method = "return";
840
+ this.next = "end";
841
+ } else if (record.type === "normal" && afterLoc) {
842
+ this.next = afterLoc;
843
+ }
844
+
845
+ return ContinueSentinel;
846
+ },
847
+
848
+ finish: function(finallyLoc) {
849
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
850
+ var entry = this.tryEntries[i];
851
+ if (entry.finallyLoc === finallyLoc) {
852
+ this.complete(entry.completion, entry.afterLoc);
853
+ resetTryEntry(entry);
854
+ return ContinueSentinel;
855
+ }
856
+ }
857
+ },
858
+
859
+ "catch": function(tryLoc) {
860
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
861
+ var entry = this.tryEntries[i];
862
+ if (entry.tryLoc === tryLoc) {
863
+ var record = entry.completion;
864
+ if (record.type === "throw") {
865
+ var thrown = record.arg;
866
+ resetTryEntry(entry);
867
+ }
868
+ return thrown;
869
+ }
870
+ }
871
+
872
+ // The context.catch method must only be called with a location
873
+ // argument that corresponds to a known catch block.
874
+ throw new Error("illegal catch attempt");
875
+ },
876
+
877
+ delegateYield: function(iterable, resultName, nextLoc) {
878
+ this.delegate = {
879
+ iterator: values(iterable),
880
+ resultName: resultName,
881
+ nextLoc: nextLoc
882
+ };
883
+
884
+ if (this.method === "next") {
885
+ // Deliberately forget the last sent value so that we don't
886
+ // accidentally pass it on to the delegate.
887
+ this.arg = undefined$1;
888
+ }
889
+
890
+ return ContinueSentinel;
891
+ }
892
+ };
893
+
894
+ // Regardless of whether this script is executing as a CommonJS module
895
+ // or not, return the runtime object so that we can declare the variable
896
+ // regeneratorRuntime in the outer scope, which allows this module to be
897
+ // injected easily by `bin/regenerator --include-runtime script.js`.
898
+ return exports;
899
+
900
+ }(
901
+ // If this script is executing as a CommonJS module, use module.exports
902
+ // as the regeneratorRuntime namespace. Otherwise create a new empty
903
+ // object. Either way, the resulting object will be used to initialize
904
+ // the regeneratorRuntime variable at the top of this file.
905
+ module.exports
906
+ ));
907
+
908
+ try {
909
+ regeneratorRuntime = runtime;
910
+ } catch (accidentalStrictMode) {
911
+ // This module should not be running in strict mode, so the above
912
+ // assignment should always work unless something is misconfigured. Just
913
+ // in case runtime.js accidentally runs in strict mode, in modern engines
914
+ // we can explicitly access globalThis. In older engines we can escape
915
+ // strict mode using a global Function call. This could conceivably fail
916
+ // if a Content Security Policy forbids using Function, but in that case
917
+ // the proper solution is to fix the accidental strict mode problem. If
918
+ // you've misconfigured your bundler to force strict mode and applied a
919
+ // CSP to forbid Function, and you're not willing to fix either of those
920
+ // problems, please detail your unique predicament in a GitHub issue.
921
+ if (typeof globalThis === "object") {
922
+ globalThis.regeneratorRuntime = runtime;
923
+ } else {
924
+ Function("r", "regeneratorRuntime = r")(runtime);
925
+ }
926
+ }
927
+ });
928
+
929
+ /**
930
+ * Checks if `value` is classified as an `Array` object.
931
+ *
932
+ * @static
933
+ * @memberOf _
934
+ * @since 0.1.0
935
+ * @category Lang
936
+ * @param {*} value The value to check.
937
+ * @returns {boolean} Returns `true` if `value` is an array, else `false`.
938
+ * @example
939
+ *
940
+ * _.isArray([1, 2, 3]);
941
+ * // => true
942
+ *
943
+ * _.isArray(document.body.children);
944
+ * // => false
945
+ *
946
+ * _.isArray('abc');
947
+ * // => false
948
+ *
949
+ * _.isArray(_.noop);
950
+ * // => false
951
+ */
952
+ var isArray = Array.isArray;
953
+
954
+ var isArray_1 = isArray;
955
+
956
+ /** Detect free variable `global` from Node.js. */
957
+
958
+ var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
959
+
960
+ var _freeGlobal = freeGlobal;
961
+
962
+ /** Detect free variable `self`. */
963
+ var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
964
+
965
+ /** Used as a reference to the global object. */
966
+ var root = _freeGlobal || freeSelf || Function('return this')();
967
+
968
+ var _root = root;
969
+
970
+ /** Built-in value references. */
971
+ var Symbol$1 = _root.Symbol;
972
+
973
+ var _Symbol = Symbol$1;
974
+
975
+ /** Used for built-in method references. */
976
+ var objectProto$4 = Object.prototype;
977
+
978
+ /** Used to check objects for own properties. */
979
+ var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
980
+
981
+ /**
982
+ * Used to resolve the
983
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
984
+ * of values.
985
+ */
986
+ var nativeObjectToString$1 = objectProto$4.toString;
987
+
988
+ /** Built-in value references. */
989
+ var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
990
+
991
+ /**
992
+ * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
993
+ *
994
+ * @private
995
+ * @param {*} value The value to query.
996
+ * @returns {string} Returns the raw `toStringTag`.
997
+ */
998
+ function getRawTag(value) {
999
+ var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
1000
+ tag = value[symToStringTag$1];
1001
+
1002
+ try {
1003
+ value[symToStringTag$1] = undefined;
1004
+ var unmasked = true;
1005
+ } catch (e) {}
1006
+
1007
+ var result = nativeObjectToString$1.call(value);
1008
+ if (unmasked) {
1009
+ if (isOwn) {
1010
+ value[symToStringTag$1] = tag;
1011
+ } else {
1012
+ delete value[symToStringTag$1];
1013
+ }
1014
+ }
1015
+ return result;
1016
+ }
1017
+
1018
+ var _getRawTag = getRawTag;
1019
+
1020
+ /** Used for built-in method references. */
1021
+ var objectProto$3 = Object.prototype;
1022
+
1023
+ /**
1024
+ * Used to resolve the
1025
+ * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
1026
+ * of values.
1027
+ */
1028
+ var nativeObjectToString = objectProto$3.toString;
1029
+
1030
+ /**
1031
+ * Converts `value` to a string using `Object.prototype.toString`.
1032
+ *
1033
+ * @private
1034
+ * @param {*} value The value to convert.
1035
+ * @returns {string} Returns the converted string.
1036
+ */
1037
+ function objectToString(value) {
1038
+ return nativeObjectToString.call(value);
1039
+ }
1040
+
1041
+ var _objectToString = objectToString;
1042
+
1043
+ /** `Object#toString` result references. */
1044
+ var nullTag = '[object Null]',
1045
+ undefinedTag = '[object Undefined]';
1046
+
1047
+ /** Built-in value references. */
1048
+ var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
1049
+
1050
+ /**
1051
+ * The base implementation of `getTag` without fallbacks for buggy environments.
1052
+ *
1053
+ * @private
1054
+ * @param {*} value The value to query.
1055
+ * @returns {string} Returns the `toStringTag`.
1056
+ */
1057
+ function baseGetTag(value) {
1058
+ if (value == null) {
1059
+ return value === undefined ? undefinedTag : nullTag;
1060
+ }
1061
+ return (symToStringTag && symToStringTag in Object(value))
1062
+ ? _getRawTag(value)
1063
+ : _objectToString(value);
1064
+ }
1065
+
1066
+ var _baseGetTag = baseGetTag;
1067
+
1068
+ /**
1069
+ * Checks if `value` is object-like. A value is object-like if it's not `null`
1070
+ * and has a `typeof` result of "object".
1071
+ *
1072
+ * @static
1073
+ * @memberOf _
1074
+ * @since 4.0.0
1075
+ * @category Lang
1076
+ * @param {*} value The value to check.
1077
+ * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
1078
+ * @example
1079
+ *
1080
+ * _.isObjectLike({});
1081
+ * // => true
1082
+ *
1083
+ * _.isObjectLike([1, 2, 3]);
1084
+ * // => true
1085
+ *
1086
+ * _.isObjectLike(_.noop);
1087
+ * // => false
1088
+ *
1089
+ * _.isObjectLike(null);
1090
+ * // => false
1091
+ */
1092
+ function isObjectLike(value) {
1093
+ return value != null && typeof value == 'object';
1094
+ }
1095
+
1096
+ var isObjectLike_1 = isObjectLike;
1097
+
1098
+ /** `Object#toString` result references. */
1099
+ var symbolTag = '[object Symbol]';
1100
+
1101
+ /**
1102
+ * Checks if `value` is classified as a `Symbol` primitive or object.
1103
+ *
1104
+ * @static
1105
+ * @memberOf _
1106
+ * @since 4.0.0
1107
+ * @category Lang
1108
+ * @param {*} value The value to check.
1109
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
1110
+ * @example
1111
+ *
1112
+ * _.isSymbol(Symbol.iterator);
1113
+ * // => true
1114
+ *
1115
+ * _.isSymbol('abc');
1116
+ * // => false
1117
+ */
1118
+ function isSymbol(value) {
1119
+ return typeof value == 'symbol' ||
1120
+ (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
1121
+ }
1122
+
1123
+ var isSymbol_1 = isSymbol;
1124
+
1125
+ /** Used to match property names within property paths. */
1126
+ var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
1127
+ reIsPlainProp = /^\w*$/;
1128
+
1129
+ /**
1130
+ * Checks if `value` is a property name and not a property path.
1131
+ *
1132
+ * @private
1133
+ * @param {*} value The value to check.
1134
+ * @param {Object} [object] The object to query keys on.
1135
+ * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
1136
+ */
1137
+ function isKey(value, object) {
1138
+ if (isArray_1(value)) {
1139
+ return false;
1140
+ }
1141
+ var type = typeof value;
1142
+ if (type == 'number' || type == 'symbol' || type == 'boolean' ||
1143
+ value == null || isSymbol_1(value)) {
1144
+ return true;
1145
+ }
1146
+ return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1147
+ (object != null && value in Object(object));
1148
+ }
1149
+
1150
+ var _isKey = isKey;
1151
+
1152
+ /**
1153
+ * Checks if `value` is the
1154
+ * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1155
+ * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1156
+ *
1157
+ * @static
1158
+ * @memberOf _
1159
+ * @since 0.1.0
1160
+ * @category Lang
1161
+ * @param {*} value The value to check.
1162
+ * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1163
+ * @example
1164
+ *
1165
+ * _.isObject({});
1166
+ * // => true
1167
+ *
1168
+ * _.isObject([1, 2, 3]);
1169
+ * // => true
1170
+ *
1171
+ * _.isObject(_.noop);
1172
+ * // => true
1173
+ *
1174
+ * _.isObject(null);
1175
+ * // => false
1176
+ */
1177
+ function isObject(value) {
1178
+ var type = typeof value;
1179
+ return value != null && (type == 'object' || type == 'function');
1180
+ }
1181
+
1182
+ var isObject_1 = isObject;
1183
+
1184
+ /** `Object#toString` result references. */
1185
+ var asyncTag = '[object AsyncFunction]',
1186
+ funcTag = '[object Function]',
1187
+ genTag = '[object GeneratorFunction]',
1188
+ proxyTag = '[object Proxy]';
1189
+
1190
+ /**
1191
+ * Checks if `value` is classified as a `Function` object.
1192
+ *
1193
+ * @static
1194
+ * @memberOf _
1195
+ * @since 0.1.0
1196
+ * @category Lang
1197
+ * @param {*} value The value to check.
1198
+ * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1199
+ * @example
1200
+ *
1201
+ * _.isFunction(_);
1202
+ * // => true
1203
+ *
1204
+ * _.isFunction(/abc/);
1205
+ * // => false
1206
+ */
1207
+ function isFunction(value) {
1208
+ if (!isObject_1(value)) {
1209
+ return false;
1210
+ }
1211
+ // The use of `Object#toString` avoids issues with the `typeof` operator
1212
+ // in Safari 9 which returns 'object' for typed arrays and other constructors.
1213
+ var tag = _baseGetTag(value);
1214
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1215
+ }
1216
+
1217
+ var isFunction_1 = isFunction;
1218
+
1219
+ /** Used to detect overreaching core-js shims. */
1220
+ var coreJsData = _root['__core-js_shared__'];
1221
+
1222
+ var _coreJsData = coreJsData;
1223
+
1224
+ /** Used to detect methods masquerading as native. */
1225
+ var maskSrcKey = (function() {
1226
+ var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1227
+ return uid ? ('Symbol(src)_1.' + uid) : '';
1228
+ }());
1229
+
1230
+ /**
1231
+ * Checks if `func` has its source masked.
1232
+ *
1233
+ * @private
1234
+ * @param {Function} func The function to check.
1235
+ * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1236
+ */
1237
+ function isMasked(func) {
1238
+ return !!maskSrcKey && (maskSrcKey in func);
1239
+ }
1240
+
1241
+ var _isMasked = isMasked;
1242
+
1243
+ /** Used for built-in method references. */
1244
+ var funcProto$1 = Function.prototype;
1245
+
1246
+ /** Used to resolve the decompiled source of functions. */
1247
+ var funcToString$1 = funcProto$1.toString;
1248
+
1249
+ /**
1250
+ * Converts `func` to its source code.
1251
+ *
1252
+ * @private
1253
+ * @param {Function} func The function to convert.
1254
+ * @returns {string} Returns the source code.
1255
+ */
1256
+ function toSource(func) {
1257
+ if (func != null) {
1258
+ try {
1259
+ return funcToString$1.call(func);
1260
+ } catch (e) {}
1261
+ try {
1262
+ return (func + '');
1263
+ } catch (e) {}
1264
+ }
1265
+ return '';
1266
+ }
1267
+
1268
+ var _toSource = toSource;
1269
+
1270
+ /**
1271
+ * Used to match `RegExp`
1272
+ * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1273
+ */
1274
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1275
+
1276
+ /** Used to detect host constructors (Safari). */
1277
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
1278
+
1279
+ /** Used for built-in method references. */
1280
+ var funcProto = Function.prototype,
1281
+ objectProto$2 = Object.prototype;
1282
+
1283
+ /** Used to resolve the decompiled source of functions. */
1284
+ var funcToString = funcProto.toString;
1285
+
1286
+ /** Used to check objects for own properties. */
1287
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1288
+
1289
+ /** Used to detect if a method is native. */
1290
+ var reIsNative = RegExp('^' +
1291
+ funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
1292
+ .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1293
+ );
1294
+
1295
+ /**
1296
+ * The base implementation of `_.isNative` without bad shim checks.
1297
+ *
1298
+ * @private
1299
+ * @param {*} value The value to check.
1300
+ * @returns {boolean} Returns `true` if `value` is a native function,
1301
+ * else `false`.
1302
+ */
1303
+ function baseIsNative(value) {
1304
+ if (!isObject_1(value) || _isMasked(value)) {
1305
+ return false;
1306
+ }
1307
+ var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1308
+ return pattern.test(_toSource(value));
1309
+ }
1310
+
1311
+ var _baseIsNative = baseIsNative;
1312
+
1313
+ /**
1314
+ * Gets the value at `key` of `object`.
1315
+ *
1316
+ * @private
1317
+ * @param {Object} [object] The object to query.
1318
+ * @param {string} key The key of the property to get.
1319
+ * @returns {*} Returns the property value.
1320
+ */
1321
+ function getValue(object, key) {
1322
+ return object == null ? undefined : object[key];
1323
+ }
1324
+
1325
+ var _getValue = getValue;
1326
+
1327
+ /**
1328
+ * Gets the native function at `key` of `object`.
1329
+ *
1330
+ * @private
1331
+ * @param {Object} object The object to query.
1332
+ * @param {string} key The key of the method to get.
1333
+ * @returns {*} Returns the function if it's native, else `undefined`.
1334
+ */
1335
+ function getNative(object, key) {
1336
+ var value = _getValue(object, key);
1337
+ return _baseIsNative(value) ? value : undefined;
1338
+ }
1339
+
1340
+ var _getNative = getNative;
1341
+
1342
+ /* Built-in method references that are verified to be native. */
1343
+ var nativeCreate = _getNative(Object, 'create');
1344
+
1345
+ var _nativeCreate = nativeCreate;
1346
+
1347
+ /**
1348
+ * Removes all key-value entries from the hash.
1349
+ *
1350
+ * @private
1351
+ * @name clear
1352
+ * @memberOf Hash
1353
+ */
1354
+ function hashClear() {
1355
+ this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1356
+ this.size = 0;
1357
+ }
1358
+
1359
+ var _hashClear = hashClear;
1360
+
1361
+ /**
1362
+ * Removes `key` and its value from the hash.
1363
+ *
1364
+ * @private
1365
+ * @name delete
1366
+ * @memberOf Hash
1367
+ * @param {Object} hash The hash to modify.
1368
+ * @param {string} key The key of the value to remove.
1369
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1370
+ */
1371
+ function hashDelete(key) {
1372
+ var result = this.has(key) && delete this.__data__[key];
1373
+ this.size -= result ? 1 : 0;
1374
+ return result;
1375
+ }
1376
+
1377
+ var _hashDelete = hashDelete;
1378
+
1379
+ /** Used to stand-in for `undefined` hash values. */
1380
+ var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1381
+
1382
+ /** Used for built-in method references. */
1383
+ var objectProto$1 = Object.prototype;
1384
+
1385
+ /** Used to check objects for own properties. */
1386
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1387
+
1388
+ /**
1389
+ * Gets the hash value for `key`.
1390
+ *
1391
+ * @private
1392
+ * @name get
1393
+ * @memberOf Hash
1394
+ * @param {string} key The key of the value to get.
1395
+ * @returns {*} Returns the entry value.
1396
+ */
1397
+ function hashGet(key) {
1398
+ var data = this.__data__;
1399
+ if (_nativeCreate) {
1400
+ var result = data[key];
1401
+ return result === HASH_UNDEFINED$1 ? undefined : result;
1402
+ }
1403
+ return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1404
+ }
1405
+
1406
+ var _hashGet = hashGet;
1407
+
1408
+ /** Used for built-in method references. */
1409
+ var objectProto = Object.prototype;
1410
+
1411
+ /** Used to check objects for own properties. */
1412
+ var hasOwnProperty = objectProto.hasOwnProperty;
1413
+
1414
+ /**
1415
+ * Checks if a hash value for `key` exists.
1416
+ *
1417
+ * @private
1418
+ * @name has
1419
+ * @memberOf Hash
1420
+ * @param {string} key The key of the entry to check.
1421
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1422
+ */
1423
+ function hashHas(key) {
1424
+ var data = this.__data__;
1425
+ return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1426
+ }
1427
+
1428
+ var _hashHas = hashHas;
1429
+
1430
+ /** Used to stand-in for `undefined` hash values. */
1431
+ var HASH_UNDEFINED = '__lodash_hash_undefined__';
1432
+
1433
+ /**
1434
+ * Sets the hash `key` to `value`.
1435
+ *
1436
+ * @private
1437
+ * @name set
1438
+ * @memberOf Hash
1439
+ * @param {string} key The key of the value to set.
1440
+ * @param {*} value The value to set.
1441
+ * @returns {Object} Returns the hash instance.
1442
+ */
1443
+ function hashSet(key, value) {
1444
+ var data = this.__data__;
1445
+ this.size += this.has(key) ? 0 : 1;
1446
+ data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1447
+ return this;
1448
+ }
1449
+
1450
+ var _hashSet = hashSet;
1451
+
1452
+ /**
1453
+ * Creates a hash object.
1454
+ *
1455
+ * @private
1456
+ * @constructor
1457
+ * @param {Array} [entries] The key-value pairs to cache.
1458
+ */
1459
+ function Hash(entries) {
1460
+ var index = -1,
1461
+ length = entries == null ? 0 : entries.length;
1462
+
1463
+ this.clear();
1464
+ while (++index < length) {
1465
+ var entry = entries[index];
1466
+ this.set(entry[0], entry[1]);
1467
+ }
1468
+ }
1469
+
1470
+ // Add methods to `Hash`.
1471
+ Hash.prototype.clear = _hashClear;
1472
+ Hash.prototype['delete'] = _hashDelete;
1473
+ Hash.prototype.get = _hashGet;
1474
+ Hash.prototype.has = _hashHas;
1475
+ Hash.prototype.set = _hashSet;
1476
+
1477
+ var _Hash = Hash;
1478
+
1479
+ /**
1480
+ * Removes all key-value entries from the list cache.
1481
+ *
1482
+ * @private
1483
+ * @name clear
1484
+ * @memberOf ListCache
1485
+ */
1486
+ function listCacheClear() {
1487
+ this.__data__ = [];
1488
+ this.size = 0;
1489
+ }
1490
+
1491
+ var _listCacheClear = listCacheClear;
1492
+
1493
+ /**
1494
+ * Performs a
1495
+ * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1496
+ * comparison between two values to determine if they are equivalent.
1497
+ *
1498
+ * @static
1499
+ * @memberOf _
1500
+ * @since 4.0.0
1501
+ * @category Lang
1502
+ * @param {*} value The value to compare.
1503
+ * @param {*} other The other value to compare.
1504
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1505
+ * @example
1506
+ *
1507
+ * var object = { 'a': 1 };
1508
+ * var other = { 'a': 1 };
1509
+ *
1510
+ * _.eq(object, object);
1511
+ * // => true
1512
+ *
1513
+ * _.eq(object, other);
1514
+ * // => false
1515
+ *
1516
+ * _.eq('a', 'a');
1517
+ * // => true
1518
+ *
1519
+ * _.eq('a', Object('a'));
1520
+ * // => false
1521
+ *
1522
+ * _.eq(NaN, NaN);
1523
+ * // => true
1524
+ */
1525
+ function eq(value, other) {
1526
+ return value === other || (value !== value && other !== other);
1527
+ }
1528
+
1529
+ var eq_1 = eq;
1530
+
1531
+ /**
1532
+ * Gets the index at which the `key` is found in `array` of key-value pairs.
1533
+ *
1534
+ * @private
1535
+ * @param {Array} array The array to inspect.
1536
+ * @param {*} key The key to search for.
1537
+ * @returns {number} Returns the index of the matched value, else `-1`.
1538
+ */
1539
+ function assocIndexOf(array, key) {
1540
+ var length = array.length;
1541
+ while (length--) {
1542
+ if (eq_1(array[length][0], key)) {
1543
+ return length;
1544
+ }
1545
+ }
1546
+ return -1;
1547
+ }
1548
+
1549
+ var _assocIndexOf = assocIndexOf;
1550
+
1551
+ /** Used for built-in method references. */
1552
+ var arrayProto = Array.prototype;
1553
+
1554
+ /** Built-in value references. */
1555
+ var splice = arrayProto.splice;
1556
+
1557
+ /**
1558
+ * Removes `key` and its value from the list cache.
1559
+ *
1560
+ * @private
1561
+ * @name delete
1562
+ * @memberOf ListCache
1563
+ * @param {string} key The key of the value to remove.
1564
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1565
+ */
1566
+ function listCacheDelete(key) {
1567
+ var data = this.__data__,
1568
+ index = _assocIndexOf(data, key);
1569
+
1570
+ if (index < 0) {
1571
+ return false;
1572
+ }
1573
+ var lastIndex = data.length - 1;
1574
+ if (index == lastIndex) {
1575
+ data.pop();
1576
+ } else {
1577
+ splice.call(data, index, 1);
1578
+ }
1579
+ --this.size;
1580
+ return true;
1581
+ }
1582
+
1583
+ var _listCacheDelete = listCacheDelete;
1584
+
1585
+ /**
1586
+ * Gets the list cache value for `key`.
1587
+ *
1588
+ * @private
1589
+ * @name get
1590
+ * @memberOf ListCache
1591
+ * @param {string} key The key of the value to get.
1592
+ * @returns {*} Returns the entry value.
1593
+ */
1594
+ function listCacheGet(key) {
1595
+ var data = this.__data__,
1596
+ index = _assocIndexOf(data, key);
1597
+
1598
+ return index < 0 ? undefined : data[index][1];
1599
+ }
1600
+
1601
+ var _listCacheGet = listCacheGet;
1602
+
1603
+ /**
1604
+ * Checks if a list cache value for `key` exists.
1605
+ *
1606
+ * @private
1607
+ * @name has
1608
+ * @memberOf ListCache
1609
+ * @param {string} key The key of the entry to check.
1610
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1611
+ */
1612
+ function listCacheHas(key) {
1613
+ return _assocIndexOf(this.__data__, key) > -1;
1614
+ }
1615
+
1616
+ var _listCacheHas = listCacheHas;
1617
+
1618
+ /**
1619
+ * Sets the list cache `key` to `value`.
1620
+ *
1621
+ * @private
1622
+ * @name set
1623
+ * @memberOf ListCache
1624
+ * @param {string} key The key of the value to set.
1625
+ * @param {*} value The value to set.
1626
+ * @returns {Object} Returns the list cache instance.
1627
+ */
1628
+ function listCacheSet(key, value) {
1629
+ var data = this.__data__,
1630
+ index = _assocIndexOf(data, key);
1631
+
1632
+ if (index < 0) {
1633
+ ++this.size;
1634
+ data.push([key, value]);
1635
+ } else {
1636
+ data[index][1] = value;
1637
+ }
1638
+ return this;
1639
+ }
1640
+
1641
+ var _listCacheSet = listCacheSet;
1642
+
1643
+ /**
1644
+ * Creates an list cache object.
1645
+ *
1646
+ * @private
1647
+ * @constructor
1648
+ * @param {Array} [entries] The key-value pairs to cache.
1649
+ */
1650
+ function ListCache(entries) {
1651
+ var index = -1,
1652
+ length = entries == null ? 0 : entries.length;
1653
+
1654
+ this.clear();
1655
+ while (++index < length) {
1656
+ var entry = entries[index];
1657
+ this.set(entry[0], entry[1]);
1658
+ }
1659
+ }
1660
+
1661
+ // Add methods to `ListCache`.
1662
+ ListCache.prototype.clear = _listCacheClear;
1663
+ ListCache.prototype['delete'] = _listCacheDelete;
1664
+ ListCache.prototype.get = _listCacheGet;
1665
+ ListCache.prototype.has = _listCacheHas;
1666
+ ListCache.prototype.set = _listCacheSet;
1667
+
1668
+ var _ListCache = ListCache;
1669
+
1670
+ /* Built-in method references that are verified to be native. */
1671
+ var Map = _getNative(_root, 'Map');
1672
+
1673
+ var _Map = Map;
1674
+
1675
+ /**
1676
+ * Removes all key-value entries from the map.
1677
+ *
1678
+ * @private
1679
+ * @name clear
1680
+ * @memberOf MapCache
1681
+ */
1682
+ function mapCacheClear() {
1683
+ this.size = 0;
1684
+ this.__data__ = {
1685
+ 'hash': new _Hash,
1686
+ 'map': new (_Map || _ListCache),
1687
+ 'string': new _Hash
1688
+ };
1689
+ }
1690
+
1691
+ var _mapCacheClear = mapCacheClear;
1692
+
1693
+ /**
1694
+ * Checks if `value` is suitable for use as unique object key.
1695
+ *
1696
+ * @private
1697
+ * @param {*} value The value to check.
1698
+ * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1699
+ */
1700
+ function isKeyable(value) {
1701
+ var type = typeof value;
1702
+ return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1703
+ ? (value !== '__proto__')
1704
+ : (value === null);
1705
+ }
1706
+
1707
+ var _isKeyable = isKeyable;
1708
+
1709
+ /**
1710
+ * Gets the data for `map`.
1711
+ *
1712
+ * @private
1713
+ * @param {Object} map The map to query.
1714
+ * @param {string} key The reference key.
1715
+ * @returns {*} Returns the map data.
1716
+ */
1717
+ function getMapData(map, key) {
1718
+ var data = map.__data__;
1719
+ return _isKeyable(key)
1720
+ ? data[typeof key == 'string' ? 'string' : 'hash']
1721
+ : data.map;
1722
+ }
1723
+
1724
+ var _getMapData = getMapData;
1725
+
1726
+ /**
1727
+ * Removes `key` and its value from the map.
1728
+ *
1729
+ * @private
1730
+ * @name delete
1731
+ * @memberOf MapCache
1732
+ * @param {string} key The key of the value to remove.
1733
+ * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1734
+ */
1735
+ function mapCacheDelete(key) {
1736
+ var result = _getMapData(this, key)['delete'](key);
1737
+ this.size -= result ? 1 : 0;
1738
+ return result;
1739
+ }
1740
+
1741
+ var _mapCacheDelete = mapCacheDelete;
1742
+
1743
+ /**
1744
+ * Gets the map value for `key`.
1745
+ *
1746
+ * @private
1747
+ * @name get
1748
+ * @memberOf MapCache
1749
+ * @param {string} key The key of the value to get.
1750
+ * @returns {*} Returns the entry value.
1751
+ */
1752
+ function mapCacheGet(key) {
1753
+ return _getMapData(this, key).get(key);
1754
+ }
1755
+
1756
+ var _mapCacheGet = mapCacheGet;
1757
+
1758
+ /**
1759
+ * Checks if a map value for `key` exists.
1760
+ *
1761
+ * @private
1762
+ * @name has
1763
+ * @memberOf MapCache
1764
+ * @param {string} key The key of the entry to check.
1765
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1766
+ */
1767
+ function mapCacheHas(key) {
1768
+ return _getMapData(this, key).has(key);
1769
+ }
1770
+
1771
+ var _mapCacheHas = mapCacheHas;
1772
+
1773
+ /**
1774
+ * Sets the map `key` to `value`.
1775
+ *
1776
+ * @private
1777
+ * @name set
1778
+ * @memberOf MapCache
1779
+ * @param {string} key The key of the value to set.
1780
+ * @param {*} value The value to set.
1781
+ * @returns {Object} Returns the map cache instance.
1782
+ */
1783
+ function mapCacheSet(key, value) {
1784
+ var data = _getMapData(this, key),
1785
+ size = data.size;
1786
+
1787
+ data.set(key, value);
1788
+ this.size += data.size == size ? 0 : 1;
1789
+ return this;
1790
+ }
1791
+
1792
+ var _mapCacheSet = mapCacheSet;
1793
+
1794
+ /**
1795
+ * Creates a map cache object to store key-value pairs.
1796
+ *
1797
+ * @private
1798
+ * @constructor
1799
+ * @param {Array} [entries] The key-value pairs to cache.
1800
+ */
1801
+ function MapCache(entries) {
1802
+ var index = -1,
1803
+ length = entries == null ? 0 : entries.length;
1804
+
1805
+ this.clear();
1806
+ while (++index < length) {
1807
+ var entry = entries[index];
1808
+ this.set(entry[0], entry[1]);
1809
+ }
1810
+ }
1811
+
1812
+ // Add methods to `MapCache`.
1813
+ MapCache.prototype.clear = _mapCacheClear;
1814
+ MapCache.prototype['delete'] = _mapCacheDelete;
1815
+ MapCache.prototype.get = _mapCacheGet;
1816
+ MapCache.prototype.has = _mapCacheHas;
1817
+ MapCache.prototype.set = _mapCacheSet;
1818
+
1819
+ var _MapCache = MapCache;
1820
+
1821
+ /** Error message constants. */
1822
+ var FUNC_ERROR_TEXT = 'Expected a function';
1823
+
1824
+ /**
1825
+ * Creates a function that memoizes the result of `func`. If `resolver` is
1826
+ * provided, it determines the cache key for storing the result based on the
1827
+ * arguments provided to the memoized function. By default, the first argument
1828
+ * provided to the memoized function is used as the map cache key. The `func`
1829
+ * is invoked with the `this` binding of the memoized function.
1830
+ *
1831
+ * **Note:** The cache is exposed as the `cache` property on the memoized
1832
+ * function. Its creation may be customized by replacing the `_.memoize.Cache`
1833
+ * constructor with one whose instances implement the
1834
+ * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1835
+ * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1836
+ *
1837
+ * @static
1838
+ * @memberOf _
1839
+ * @since 0.1.0
1840
+ * @category Function
1841
+ * @param {Function} func The function to have its output memoized.
1842
+ * @param {Function} [resolver] The function to resolve the cache key.
1843
+ * @returns {Function} Returns the new memoized function.
1844
+ * @example
1845
+ *
1846
+ * var object = { 'a': 1, 'b': 2 };
1847
+ * var other = { 'c': 3, 'd': 4 };
1848
+ *
1849
+ * var values = _.memoize(_.values);
1850
+ * values(object);
1851
+ * // => [1, 2]
1852
+ *
1853
+ * values(other);
1854
+ * // => [3, 4]
1855
+ *
1856
+ * object.a = 2;
1857
+ * values(object);
1858
+ * // => [1, 2]
1859
+ *
1860
+ * // Modify the result cache.
1861
+ * values.cache.set(object, ['a', 'b']);
1862
+ * values(object);
1863
+ * // => ['a', 'b']
1864
+ *
1865
+ * // Replace `_.memoize.Cache`.
1866
+ * _.memoize.Cache = WeakMap;
1867
+ */
1868
+ function memoize(func, resolver) {
1869
+ if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1870
+ throw new TypeError(FUNC_ERROR_TEXT);
1871
+ }
1872
+ var memoized = function() {
1873
+ var args = arguments,
1874
+ key = resolver ? resolver.apply(this, args) : args[0],
1875
+ cache = memoized.cache;
1876
+
1877
+ if (cache.has(key)) {
1878
+ return cache.get(key);
1879
+ }
1880
+ var result = func.apply(this, args);
1881
+ memoized.cache = cache.set(key, result) || cache;
1882
+ return result;
1883
+ };
1884
+ memoized.cache = new (memoize.Cache || _MapCache);
1885
+ return memoized;
1886
+ }
1887
+
1888
+ // Expose `MapCache`.
1889
+ memoize.Cache = _MapCache;
1890
+
1891
+ var memoize_1 = memoize;
1892
+
1893
+ /** Used as the maximum memoize cache size. */
1894
+ var MAX_MEMOIZE_SIZE = 500;
1895
+
1896
+ /**
1897
+ * A specialized version of `_.memoize` which clears the memoized function's
1898
+ * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1899
+ *
1900
+ * @private
1901
+ * @param {Function} func The function to have its output memoized.
1902
+ * @returns {Function} Returns the new memoized function.
1903
+ */
1904
+ function memoizeCapped(func) {
1905
+ var result = memoize_1(func, function(key) {
1906
+ if (cache.size === MAX_MEMOIZE_SIZE) {
1907
+ cache.clear();
1908
+ }
1909
+ return key;
1910
+ });
1911
+
1912
+ var cache = result.cache;
1913
+ return result;
1914
+ }
1915
+
1916
+ var _memoizeCapped = memoizeCapped;
1917
+
1918
+ /** Used to match property names within property paths. */
1919
+ var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1920
+
1921
+ /** Used to match backslashes in property paths. */
1922
+ var reEscapeChar = /\\(\\)?/g;
1923
+
1924
+ /**
1925
+ * Converts `string` to a property path array.
1926
+ *
1927
+ * @private
1928
+ * @param {string} string The string to convert.
1929
+ * @returns {Array} Returns the property path array.
1930
+ */
1931
+ var stringToPath = _memoizeCapped(function(string) {
1932
+ var result = [];
1933
+ if (string.charCodeAt(0) === 46 /* . */) {
1934
+ result.push('');
1935
+ }
1936
+ string.replace(rePropName, function(match, number, quote, subString) {
1937
+ result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1938
+ });
1939
+ return result;
1940
+ });
1941
+
1942
+ var _stringToPath = stringToPath;
1943
+
1944
+ /**
1945
+ * A specialized version of `_.map` for arrays without support for iteratee
1946
+ * shorthands.
1947
+ *
1948
+ * @private
1949
+ * @param {Array} [array] The array to iterate over.
1950
+ * @param {Function} iteratee The function invoked per iteration.
1951
+ * @returns {Array} Returns the new mapped array.
1952
+ */
1953
+ function arrayMap(array, iteratee) {
1954
+ var index = -1,
1955
+ length = array == null ? 0 : array.length,
1956
+ result = Array(length);
1957
+
1958
+ while (++index < length) {
1959
+ result[index] = iteratee(array[index], index, array);
1960
+ }
1961
+ return result;
1962
+ }
1963
+
1964
+ var _arrayMap = arrayMap;
1965
+
1966
+ /** Used as references for various `Number` constants. */
1967
+ var INFINITY$1 = 1 / 0;
1968
+
1969
+ /** Used to convert symbols to primitives and strings. */
1970
+ var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1971
+ symbolToString = symbolProto ? symbolProto.toString : undefined;
1972
+
1973
+ /**
1974
+ * The base implementation of `_.toString` which doesn't convert nullish
1975
+ * values to empty strings.
1976
+ *
1977
+ * @private
1978
+ * @param {*} value The value to process.
1979
+ * @returns {string} Returns the string.
1980
+ */
1981
+ function baseToString(value) {
1982
+ // Exit early for strings to avoid a performance hit in some environments.
1983
+ if (typeof value == 'string') {
1984
+ return value;
1985
+ }
1986
+ if (isArray_1(value)) {
1987
+ // Recursively convert values (susceptible to call stack limits).
1988
+ return _arrayMap(value, baseToString) + '';
1989
+ }
1990
+ if (isSymbol_1(value)) {
1991
+ return symbolToString ? symbolToString.call(value) : '';
1992
+ }
1993
+ var result = (value + '');
1994
+ return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1995
+ }
1996
+
1997
+ var _baseToString = baseToString;
1998
+
1999
+ /**
2000
+ * Converts `value` to a string. An empty string is returned for `null`
2001
+ * and `undefined` values. The sign of `-0` is preserved.
2002
+ *
2003
+ * @static
2004
+ * @memberOf _
2005
+ * @since 4.0.0
2006
+ * @category Lang
2007
+ * @param {*} value The value to convert.
2008
+ * @returns {string} Returns the converted string.
2009
+ * @example
2010
+ *
2011
+ * _.toString(null);
2012
+ * // => ''
2013
+ *
2014
+ * _.toString(-0);
2015
+ * // => '-0'
2016
+ *
2017
+ * _.toString([1, 2, 3]);
2018
+ * // => '1,2,3'
2019
+ */
2020
+ function toString(value) {
2021
+ return value == null ? '' : _baseToString(value);
2022
+ }
2023
+
2024
+ var toString_1 = toString;
2025
+
2026
+ /**
2027
+ * Casts `value` to a path array if it's not one.
2028
+ *
2029
+ * @private
2030
+ * @param {*} value The value to inspect.
2031
+ * @param {Object} [object] The object to query keys on.
2032
+ * @returns {Array} Returns the cast property path array.
2033
+ */
2034
+ function castPath(value, object) {
2035
+ if (isArray_1(value)) {
2036
+ return value;
2037
+ }
2038
+ return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
2039
+ }
2040
+
2041
+ var _castPath = castPath;
2042
+
2043
+ /** Used as references for various `Number` constants. */
2044
+ var INFINITY = 1 / 0;
2045
+
2046
+ /**
2047
+ * Converts `value` to a string key if it's not a string or symbol.
2048
+ *
2049
+ * @private
2050
+ * @param {*} value The value to inspect.
2051
+ * @returns {string|symbol} Returns the key.
2052
+ */
2053
+ function toKey(value) {
2054
+ if (typeof value == 'string' || isSymbol_1(value)) {
2055
+ return value;
2056
+ }
2057
+ var result = (value + '');
2058
+ return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
2059
+ }
2060
+
2061
+ var _toKey = toKey;
2062
+
2063
+ /**
2064
+ * The base implementation of `_.get` without support for default values.
2065
+ *
2066
+ * @private
2067
+ * @param {Object} object The object to query.
2068
+ * @param {Array|string} path The path of the property to get.
2069
+ * @returns {*} Returns the resolved value.
2070
+ */
2071
+ function baseGet(object, path) {
2072
+ path = _castPath(path, object);
2073
+
2074
+ var index = 0,
2075
+ length = path.length;
2076
+
2077
+ while (object != null && index < length) {
2078
+ object = object[_toKey(path[index++])];
2079
+ }
2080
+ return (index && index == length) ? object : undefined;
2081
+ }
2082
+
2083
+ var _baseGet = baseGet;
2084
+
2085
+ /**
2086
+ * Gets the value at `path` of `object`. If the resolved value is
2087
+ * `undefined`, the `defaultValue` is returned in its place.
2088
+ *
2089
+ * @static
2090
+ * @memberOf _
2091
+ * @since 3.7.0
2092
+ * @category Object
2093
+ * @param {Object} object The object to query.
2094
+ * @param {Array|string} path The path of the property to get.
2095
+ * @param {*} [defaultValue] The value returned for `undefined` resolved values.
2096
+ * @returns {*} Returns the resolved value.
2097
+ * @example
2098
+ *
2099
+ * var object = { 'a': [{ 'b': { 'c': 3 } }] };
2100
+ *
2101
+ * _.get(object, 'a[0].b.c');
2102
+ * // => 3
2103
+ *
2104
+ * _.get(object, ['a', '0', 'b', 'c']);
2105
+ * // => 3
2106
+ *
2107
+ * _.get(object, 'a.b.c', 'default');
2108
+ * // => 'default'
2109
+ */
2110
+ function get(object, path, defaultValue) {
2111
+ var result = object == null ? undefined : _baseGet(object, path);
2112
+ return result === undefined ? defaultValue : result;
2113
+ }
2114
+
2115
+ var get_1 = get;
2116
+
2117
+ var hexToRGB = function hexToRGB(hex) {
2118
+ var r = parseInt(hex.slice(1, 3), 16);
2119
+ var g = parseInt(hex.slice(3, 5), 16);
2120
+ var b = parseInt(hex.slice(5, 7), 16);
2121
+ return {
2122
+ r: r,
2123
+ g: g,
2124
+ b: b
2125
+ };
2126
+ };
2127
+ var getLuminanceOfColor = function getLuminanceOfColor(hex) {
2128
+ var _hexToRGB = hexToRGB(hex),
2129
+ r = _hexToRGB.r,
2130
+ g = _hexToRGB.g,
2131
+ b = _hexToRGB.b;
2132
+
2133
+ return r * 0.299 + g * 0.587 + b * 0.114;
2134
+ };
2135
+ var rgbToHex = function rgbToHex() {
2136
+ var color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgba(255, 255, 255, 0)";
2137
+ var rgba = color.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);
2138
+ return rgba && rgba.length === 4 ? "#" + ("0" + parseInt(rgba[1], 10).toString(16)).slice(-2) + ("0" + parseInt(rgba[2], 10).toString(16)).slice(-2) + ("0" + parseInt(rgba[3], 10).toString(16)).slice(-2) : color;
2139
+ };
2140
+ var getTextColor = function getTextColor() {
2141
+ var theme = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "rgb(255,255,255)";
2142
+ var isRegexCheck = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(theme);
2143
+ var getHexValue = !isRegexCheck ? rgbToHex(theme) : theme;
2144
+ var textColor = getLuminanceOfColor(getHexValue) < 155 ? "light" : "dark";
2145
+ return textColor;
2146
+ };
2147
+ var getSlug = function getSlug(collection) {
2148
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2149
+ var _config$magazineSlug = config.magazineSlug,
2150
+ magazineSlug = _config$magazineSlug === void 0 ? "" : _config$magazineSlug,
2151
+ _config$isArchivePage = config.isArchivePage,
2152
+ isArchivePage = _config$isArchivePage === void 0 ? false : _config$isArchivePage;
2153
+
2154
+ if (isArchivePage) {
2155
+ return "/magazine/archive/".concat(magazineSlug);
2156
+ }
2157
+
2158
+ if (magazineSlug) {
2159
+ return "/magazine/".concat(magazineSlug, "/").concat(collection.slug);
2160
+ }
2161
+
2162
+ var isSection = collection.template === "section";
2163
+
2164
+ if (isSection) {
2165
+ var sectionId = get_1(collection, ["metadata", "section", "0", "id"], "");
2166
+ var sections = config.sections;
2167
+ var section = sections && sections.find(function (section) {
2168
+ return section.id === sectionId;
2169
+ });
2170
+ return section ? section["section-url"] : "/";
2171
+ }
2172
+
2173
+ return "/collection/".concat(collection.slug);
2174
+ };
2175
+ PropTypes.shape({
2176
+ "sketches-host": PropTypes.string,
2177
+ "cdn-name": PropTypes.string,
2178
+ "cdn-image": PropTypes.string
2179
+ });
2180
+ PropTypes.shape({
2181
+ headline: PropTypes.string,
2182
+ "last-published-at": PropTypes.number,
2183
+ subheadline: PropTypes.string
2184
+ });
2185
+ var generateNavigateSlug = function generateNavigateSlug() {
2186
+ var collection = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2187
+ var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2188
+ var customUrlPath = arguments.length > 2 ? arguments[2] : undefined;
2189
+
2190
+ if (customUrlPath) {
2191
+ return customUrlPath;
2192
+ }
2193
+
2194
+ var _config$magazineSlug2 = config.magazineSlug,
2195
+ magazineSlug = _config$magazineSlug2 === void 0 ? "" : _config$magazineSlug2,
2196
+ _config$isArchivePage2 = config.isArchivePage,
2197
+ isArchivePage = _config$isArchivePage2 === void 0 ? false : _config$isArchivePage2;
2198
+
2199
+ if (isArchivePage) {
2200
+ return "/magazine/archive/".concat(magazineSlug);
2201
+ }
2202
+
2203
+ if (magazineSlug) {
2204
+ return "/magazine/".concat(magazineSlug, "/").concat(collection.slug);
2205
+ }
2206
+
2207
+ if (collection) {
2208
+ return getSlug(collection, config);
2209
+ }
2210
+
2211
+ return "/";
2212
+ };
2213
+
2214
+ var _styleModuleImportMap = {
2215
+ "./load-more.m.css": {
2216
+ "button": "load-more-m_button__1mmf1",
2217
+ "default": "load-more-m_default__2_k4V",
2218
+ "dark": "load-more-m_dark__3dfzb",
2219
+ "light": "load-more-m_light__ePZQI"
2220
+ }
2221
+ };
2222
+
2223
+ 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; }
2224
+
2225
+ 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; }
2226
+ var LoadmoreButton = function LoadmoreButton(_ref) {
2227
+ var _ref$config = _ref.config,
2228
+ config = _ref$config === void 0 ? {} : _ref$config,
2229
+ collection = _ref.collection,
2230
+ _ref$template = _ref.template,
2231
+ template = _ref$template === void 0 ? "SubsequentLoadCount" : _ref$template,
2232
+ onClick = _ref.onClick,
2233
+ navigate = _ref.navigate,
2234
+ qtConfig = _ref.qtConfig;
2235
+ var _config$showButton = config.showButton,
2236
+ showButton = _config$showButton === void 0 ? true : _config$showButton,
2237
+ _config$buttonText = config.buttonText,
2238
+ buttonText = _config$buttonText === void 0 ? "Read More" : _config$buttonText,
2239
+ _config$theme = config.theme,
2240
+ theme = _config$theme === void 0 ? "" : _config$theme,
2241
+ _config$customUrlPath = config.customUrlPath,
2242
+ customUrlPath = _config$customUrlPath === void 0 ? "" : _config$customUrlPath;
2243
+ if (!showButton) return null;
2244
+ var textColor = getTextColor(theme);
2245
+ var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
2246
+ return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
2247
+ onClick: onClick,
2248
+ "data-test-id": "load-more",
2249
+ className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
2250
+ }, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
2251
+ href: slug,
2252
+ navigateTo: navigate,
2253
+ "data-test-id": "load-more",
2254
+ "aria-label": "load-more"
2255
+ }, /*#__PURE__*/React.createElement("div", {
2256
+ className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
2257
+ }, buttonText));
2258
+ };
2259
+ LoadmoreButton.propTypes = {
2260
+ collection: PropTypes.object,
2261
+ template: PropTypes.string,
2262
+ config: PropTypes.object,
2263
+ onClick: PropTypes.func,
2264
+ navigate: PropTypes.func,
2265
+ qtConfig: PropTypes.object
2266
+ };
2267
+
2268
+ export { LoadmoreButton };