@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
@@ -5,2278 +5,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
6
6
  var components = require('@quintype/components');
7
7
  var PropTypes = require('prop-types');
8
+ require('@babel/runtime/helpers/asyncToGenerator');
9
+ require('@babel/runtime/helpers/typeof');
10
+ require('@babel/runtime/regenerator');
11
+ var lodash = require('lodash');
8
12
  require('react-timeago');
9
13
  require('date-fns-tz');
14
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
15
+ var _getClassName = require('babel-plugin-react-css-modules/dist/browser/getClassName');
16
+ var _extends = require('@babel/runtime/helpers/extends');
17
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
10
18
  var reactRedux = require('react-redux');
11
19
 
12
20
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
21
 
14
22
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
23
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
16
-
17
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
18
-
19
- function getDefaultExportFromCjs (x) {
20
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
21
- }
22
-
23
- function createCommonjsModule(fn) {
24
- var module = { exports: {} };
25
- return fn(module, module.exports), module.exports;
26
- }
27
-
28
- /**
29
- * Copyright (c) 2014-present, Facebook, Inc.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */
34
-
35
- createCommonjsModule(function (module) {
36
- var runtime = (function (exports) {
37
-
38
- var Op = Object.prototype;
39
- var hasOwn = Op.hasOwnProperty;
40
- var undefined$1; // More compressible than void 0.
41
- var $Symbol = typeof Symbol === "function" ? Symbol : {};
42
- var iteratorSymbol = $Symbol.iterator || "@@iterator";
43
- var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
44
- var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
45
-
46
- function define(obj, key, value) {
47
- Object.defineProperty(obj, key, {
48
- value: value,
49
- enumerable: true,
50
- configurable: true,
51
- writable: true
52
- });
53
- return obj[key];
54
- }
55
- try {
56
- // IE 8 has a broken Object.defineProperty that only works on DOM objects.
57
- define({}, "");
58
- } catch (err) {
59
- define = function(obj, key, value) {
60
- return obj[key] = value;
61
- };
62
- }
63
-
64
- function wrap(innerFn, outerFn, self, tryLocsList) {
65
- // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
66
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
67
- var generator = Object.create(protoGenerator.prototype);
68
- var context = new Context(tryLocsList || []);
69
-
70
- // The ._invoke method unifies the implementations of the .next,
71
- // .throw, and .return methods.
72
- generator._invoke = makeInvokeMethod(innerFn, self, context);
73
-
74
- return generator;
75
- }
76
- exports.wrap = wrap;
77
-
78
- // Try/catch helper to minimize deoptimizations. Returns a completion
79
- // record like context.tryEntries[i].completion. This interface could
80
- // have been (and was previously) designed to take a closure to be
81
- // invoked without arguments, but in all the cases we care about we
82
- // already have an existing method we want to call, so there's no need
83
- // to create a new function object. We can even get away with assuming
84
- // the method takes exactly one argument, since that happens to be true
85
- // in every case, so we don't have to touch the arguments object. The
86
- // only additional allocation required is the completion record, which
87
- // has a stable shape and so hopefully should be cheap to allocate.
88
- function tryCatch(fn, obj, arg) {
89
- try {
90
- return { type: "normal", arg: fn.call(obj, arg) };
91
- } catch (err) {
92
- return { type: "throw", arg: err };
93
- }
94
- }
95
-
96
- var GenStateSuspendedStart = "suspendedStart";
97
- var GenStateSuspendedYield = "suspendedYield";
98
- var GenStateExecuting = "executing";
99
- var GenStateCompleted = "completed";
100
-
101
- // Returning this object from the innerFn has the same effect as
102
- // breaking out of the dispatch switch statement.
103
- var ContinueSentinel = {};
104
-
105
- // Dummy constructor functions that we use as the .constructor and
106
- // .constructor.prototype properties for functions that return Generator
107
- // objects. For full spec compliance, you may wish to configure your
108
- // minifier not to mangle the names of these two functions.
109
- function Generator() {}
110
- function GeneratorFunction() {}
111
- function GeneratorFunctionPrototype() {}
112
-
113
- // This is a polyfill for %IteratorPrototype% for environments that
114
- // don't natively support it.
115
- var IteratorPrototype = {};
116
- define(IteratorPrototype, iteratorSymbol, function () {
117
- return this;
118
- });
119
-
120
- var getProto = Object.getPrototypeOf;
121
- var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
122
- if (NativeIteratorPrototype &&
123
- NativeIteratorPrototype !== Op &&
124
- hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
125
- // This environment has a native %IteratorPrototype%; use it instead
126
- // of the polyfill.
127
- IteratorPrototype = NativeIteratorPrototype;
128
- }
129
-
130
- var Gp = GeneratorFunctionPrototype.prototype =
131
- Generator.prototype = Object.create(IteratorPrototype);
132
- GeneratorFunction.prototype = GeneratorFunctionPrototype;
133
- define(Gp, "constructor", GeneratorFunctionPrototype);
134
- define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
135
- GeneratorFunction.displayName = define(
136
- GeneratorFunctionPrototype,
137
- toStringTagSymbol,
138
- "GeneratorFunction"
139
- );
140
-
141
- // Helper for defining the .next, .throw, and .return methods of the
142
- // Iterator interface in terms of a single ._invoke method.
143
- function defineIteratorMethods(prototype) {
144
- ["next", "throw", "return"].forEach(function(method) {
145
- define(prototype, method, function(arg) {
146
- return this._invoke(method, arg);
147
- });
148
- });
149
- }
150
-
151
- exports.isGeneratorFunction = function(genFun) {
152
- var ctor = typeof genFun === "function" && genFun.constructor;
153
- return ctor
154
- ? ctor === GeneratorFunction ||
155
- // For the native GeneratorFunction constructor, the best we can
156
- // do is to check its .name property.
157
- (ctor.displayName || ctor.name) === "GeneratorFunction"
158
- : false;
159
- };
160
-
161
- exports.mark = function(genFun) {
162
- if (Object.setPrototypeOf) {
163
- Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
164
- } else {
165
- genFun.__proto__ = GeneratorFunctionPrototype;
166
- define(genFun, toStringTagSymbol, "GeneratorFunction");
167
- }
168
- genFun.prototype = Object.create(Gp);
169
- return genFun;
170
- };
171
-
172
- // Within the body of any async function, `await x` is transformed to
173
- // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
174
- // `hasOwn.call(value, "__await")` to determine if the yielded value is
175
- // meant to be awaited.
176
- exports.awrap = function(arg) {
177
- return { __await: arg };
178
- };
179
-
180
- function AsyncIterator(generator, PromiseImpl) {
181
- function invoke(method, arg, resolve, reject) {
182
- var record = tryCatch(generator[method], generator, arg);
183
- if (record.type === "throw") {
184
- reject(record.arg);
185
- } else {
186
- var result = record.arg;
187
- var value = result.value;
188
- if (value &&
189
- typeof value === "object" &&
190
- hasOwn.call(value, "__await")) {
191
- return PromiseImpl.resolve(value.__await).then(function(value) {
192
- invoke("next", value, resolve, reject);
193
- }, function(err) {
194
- invoke("throw", err, resolve, reject);
195
- });
196
- }
197
-
198
- return PromiseImpl.resolve(value).then(function(unwrapped) {
199
- // When a yielded Promise is resolved, its final value becomes
200
- // the .value of the Promise<{value,done}> result for the
201
- // current iteration.
202
- result.value = unwrapped;
203
- resolve(result);
204
- }, function(error) {
205
- // If a rejected Promise was yielded, throw the rejection back
206
- // into the async generator function so it can be handled there.
207
- return invoke("throw", error, resolve, reject);
208
- });
209
- }
210
- }
211
-
212
- var previousPromise;
213
-
214
- function enqueue(method, arg) {
215
- function callInvokeWithMethodAndArg() {
216
- return new PromiseImpl(function(resolve, reject) {
217
- invoke(method, arg, resolve, reject);
218
- });
219
- }
220
-
221
- return previousPromise =
222
- // If enqueue has been called before, then we want to wait until
223
- // all previous Promises have been resolved before calling invoke,
224
- // so that results are always delivered in the correct order. If
225
- // enqueue has not been called before, then it is important to
226
- // call invoke immediately, without waiting on a callback to fire,
227
- // so that the async generator function has the opportunity to do
228
- // any necessary setup in a predictable way. This predictability
229
- // is why the Promise constructor synchronously invokes its
230
- // executor callback, and why async functions synchronously
231
- // execute code before the first await. Since we implement simple
232
- // async functions in terms of async generators, it is especially
233
- // important to get this right, even though it requires care.
234
- previousPromise ? previousPromise.then(
235
- callInvokeWithMethodAndArg,
236
- // Avoid propagating failures to Promises returned by later
237
- // invocations of the iterator.
238
- callInvokeWithMethodAndArg
239
- ) : callInvokeWithMethodAndArg();
240
- }
241
-
242
- // Define the unified helper method that is used to implement .next,
243
- // .throw, and .return (see defineIteratorMethods).
244
- this._invoke = enqueue;
245
- }
246
-
247
- defineIteratorMethods(AsyncIterator.prototype);
248
- define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
249
- return this;
250
- });
251
- exports.AsyncIterator = AsyncIterator;
252
-
253
- // Note that simple async functions are implemented on top of
254
- // AsyncIterator objects; they just return a Promise for the value of
255
- // the final result produced by the iterator.
256
- exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
257
- if (PromiseImpl === void 0) PromiseImpl = Promise;
258
-
259
- var iter = new AsyncIterator(
260
- wrap(innerFn, outerFn, self, tryLocsList),
261
- PromiseImpl
262
- );
263
-
264
- return exports.isGeneratorFunction(outerFn)
265
- ? iter // If outerFn is a generator, return the full iterator.
266
- : iter.next().then(function(result) {
267
- return result.done ? result.value : iter.next();
268
- });
269
- };
270
-
271
- function makeInvokeMethod(innerFn, self, context) {
272
- var state = GenStateSuspendedStart;
273
-
274
- return function invoke(method, arg) {
275
- if (state === GenStateExecuting) {
276
- throw new Error("Generator is already running");
277
- }
278
-
279
- if (state === GenStateCompleted) {
280
- if (method === "throw") {
281
- throw arg;
282
- }
283
-
284
- // Be forgiving, per 25.3.3.3.3 of the spec:
285
- // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
286
- return doneResult();
287
- }
288
-
289
- context.method = method;
290
- context.arg = arg;
291
-
292
- while (true) {
293
- var delegate = context.delegate;
294
- if (delegate) {
295
- var delegateResult = maybeInvokeDelegate(delegate, context);
296
- if (delegateResult) {
297
- if (delegateResult === ContinueSentinel) continue;
298
- return delegateResult;
299
- }
300
- }
301
-
302
- if (context.method === "next") {
303
- // Setting context._sent for legacy support of Babel's
304
- // function.sent implementation.
305
- context.sent = context._sent = context.arg;
306
-
307
- } else if (context.method === "throw") {
308
- if (state === GenStateSuspendedStart) {
309
- state = GenStateCompleted;
310
- throw context.arg;
311
- }
312
-
313
- context.dispatchException(context.arg);
314
-
315
- } else if (context.method === "return") {
316
- context.abrupt("return", context.arg);
317
- }
318
-
319
- state = GenStateExecuting;
320
-
321
- var record = tryCatch(innerFn, self, context);
322
- if (record.type === "normal") {
323
- // If an exception is thrown from innerFn, we leave state ===
324
- // GenStateExecuting and loop back for another invocation.
325
- state = context.done
326
- ? GenStateCompleted
327
- : GenStateSuspendedYield;
328
-
329
- if (record.arg === ContinueSentinel) {
330
- continue;
331
- }
332
-
333
- return {
334
- value: record.arg,
335
- done: context.done
336
- };
337
-
338
- } else if (record.type === "throw") {
339
- state = GenStateCompleted;
340
- // Dispatch the exception by looping back around to the
341
- // context.dispatchException(context.arg) call above.
342
- context.method = "throw";
343
- context.arg = record.arg;
344
- }
345
- }
346
- };
347
- }
348
-
349
- // Call delegate.iterator[context.method](context.arg) and handle the
350
- // result, either by returning a { value, done } result from the
351
- // delegate iterator, or by modifying context.method and context.arg,
352
- // setting context.delegate to null, and returning the ContinueSentinel.
353
- function maybeInvokeDelegate(delegate, context) {
354
- var method = delegate.iterator[context.method];
355
- if (method === undefined$1) {
356
- // A .throw or .return when the delegate iterator has no .throw
357
- // method always terminates the yield* loop.
358
- context.delegate = null;
359
-
360
- if (context.method === "throw") {
361
- // Note: ["return"] must be used for ES3 parsing compatibility.
362
- if (delegate.iterator["return"]) {
363
- // If the delegate iterator has a return method, give it a
364
- // chance to clean up.
365
- context.method = "return";
366
- context.arg = undefined$1;
367
- maybeInvokeDelegate(delegate, context);
368
-
369
- if (context.method === "throw") {
370
- // If maybeInvokeDelegate(context) changed context.method from
371
- // "return" to "throw", let that override the TypeError below.
372
- return ContinueSentinel;
373
- }
374
- }
375
-
376
- context.method = "throw";
377
- context.arg = new TypeError(
378
- "The iterator does not provide a 'throw' method");
379
- }
380
-
381
- return ContinueSentinel;
382
- }
383
-
384
- var record = tryCatch(method, delegate.iterator, context.arg);
385
-
386
- if (record.type === "throw") {
387
- context.method = "throw";
388
- context.arg = record.arg;
389
- context.delegate = null;
390
- return ContinueSentinel;
391
- }
392
-
393
- var info = record.arg;
394
-
395
- if (! info) {
396
- context.method = "throw";
397
- context.arg = new TypeError("iterator result is not an object");
398
- context.delegate = null;
399
- return ContinueSentinel;
400
- }
401
-
402
- if (info.done) {
403
- // Assign the result of the finished delegate to the temporary
404
- // variable specified by delegate.resultName (see delegateYield).
405
- context[delegate.resultName] = info.value;
406
-
407
- // Resume execution at the desired location (see delegateYield).
408
- context.next = delegate.nextLoc;
409
-
410
- // If context.method was "throw" but the delegate handled the
411
- // exception, let the outer generator proceed normally. If
412
- // context.method was "next", forget context.arg since it has been
413
- // "consumed" by the delegate iterator. If context.method was
414
- // "return", allow the original .return call to continue in the
415
- // outer generator.
416
- if (context.method !== "return") {
417
- context.method = "next";
418
- context.arg = undefined$1;
419
- }
420
-
421
- } else {
422
- // Re-yield the result returned by the delegate method.
423
- return info;
424
- }
425
-
426
- // The delegate iterator is finished, so forget it and continue with
427
- // the outer generator.
428
- context.delegate = null;
429
- return ContinueSentinel;
430
- }
431
-
432
- // Define Generator.prototype.{next,throw,return} in terms of the
433
- // unified ._invoke helper method.
434
- defineIteratorMethods(Gp);
435
-
436
- define(Gp, toStringTagSymbol, "Generator");
437
-
438
- // A Generator should always return itself as the iterator object when the
439
- // @@iterator function is called on it. Some browsers' implementations of the
440
- // iterator prototype chain incorrectly implement this, causing the Generator
441
- // object to not be returned from this call. This ensures that doesn't happen.
442
- // See https://github.com/facebook/regenerator/issues/274 for more details.
443
- define(Gp, iteratorSymbol, function() {
444
- return this;
445
- });
446
-
447
- define(Gp, "toString", function() {
448
- return "[object Generator]";
449
- });
450
-
451
- function pushTryEntry(locs) {
452
- var entry = { tryLoc: locs[0] };
453
-
454
- if (1 in locs) {
455
- entry.catchLoc = locs[1];
456
- }
457
-
458
- if (2 in locs) {
459
- entry.finallyLoc = locs[2];
460
- entry.afterLoc = locs[3];
461
- }
462
-
463
- this.tryEntries.push(entry);
464
- }
465
-
466
- function resetTryEntry(entry) {
467
- var record = entry.completion || {};
468
- record.type = "normal";
469
- delete record.arg;
470
- entry.completion = record;
471
- }
472
-
473
- function Context(tryLocsList) {
474
- // The root entry object (effectively a try statement without a catch
475
- // or a finally block) gives us a place to store values thrown from
476
- // locations where there is no enclosing try statement.
477
- this.tryEntries = [{ tryLoc: "root" }];
478
- tryLocsList.forEach(pushTryEntry, this);
479
- this.reset(true);
480
- }
481
-
482
- exports.keys = function(object) {
483
- var keys = [];
484
- for (var key in object) {
485
- keys.push(key);
486
- }
487
- keys.reverse();
488
-
489
- // Rather than returning an object with a next method, we keep
490
- // things simple and return the next function itself.
491
- return function next() {
492
- while (keys.length) {
493
- var key = keys.pop();
494
- if (key in object) {
495
- next.value = key;
496
- next.done = false;
497
- return next;
498
- }
499
- }
500
-
501
- // To avoid creating an additional object, we just hang the .value
502
- // and .done properties off the next function object itself. This
503
- // also ensures that the minifier will not anonymize the function.
504
- next.done = true;
505
- return next;
506
- };
507
- };
508
-
509
- function values(iterable) {
510
- if (iterable) {
511
- var iteratorMethod = iterable[iteratorSymbol];
512
- if (iteratorMethod) {
513
- return iteratorMethod.call(iterable);
514
- }
515
-
516
- if (typeof iterable.next === "function") {
517
- return iterable;
518
- }
519
-
520
- if (!isNaN(iterable.length)) {
521
- var i = -1, next = function next() {
522
- while (++i < iterable.length) {
523
- if (hasOwn.call(iterable, i)) {
524
- next.value = iterable[i];
525
- next.done = false;
526
- return next;
527
- }
528
- }
529
-
530
- next.value = undefined$1;
531
- next.done = true;
532
-
533
- return next;
534
- };
535
-
536
- return next.next = next;
537
- }
538
- }
539
-
540
- // Return an iterator with no values.
541
- return { next: doneResult };
542
- }
543
- exports.values = values;
544
-
545
- function doneResult() {
546
- return { value: undefined$1, done: true };
547
- }
548
-
549
- Context.prototype = {
550
- constructor: Context,
551
-
552
- reset: function(skipTempReset) {
553
- this.prev = 0;
554
- this.next = 0;
555
- // Resetting context._sent for legacy support of Babel's
556
- // function.sent implementation.
557
- this.sent = this._sent = undefined$1;
558
- this.done = false;
559
- this.delegate = null;
560
-
561
- this.method = "next";
562
- this.arg = undefined$1;
563
-
564
- this.tryEntries.forEach(resetTryEntry);
565
-
566
- if (!skipTempReset) {
567
- for (var name in this) {
568
- // Not sure about the optimal order of these conditions:
569
- if (name.charAt(0) === "t" &&
570
- hasOwn.call(this, name) &&
571
- !isNaN(+name.slice(1))) {
572
- this[name] = undefined$1;
573
- }
574
- }
575
- }
576
- },
577
-
578
- stop: function() {
579
- this.done = true;
580
-
581
- var rootEntry = this.tryEntries[0];
582
- var rootRecord = rootEntry.completion;
583
- if (rootRecord.type === "throw") {
584
- throw rootRecord.arg;
585
- }
586
-
587
- return this.rval;
588
- },
589
-
590
- dispatchException: function(exception) {
591
- if (this.done) {
592
- throw exception;
593
- }
594
-
595
- var context = this;
596
- function handle(loc, caught) {
597
- record.type = "throw";
598
- record.arg = exception;
599
- context.next = loc;
600
-
601
- if (caught) {
602
- // If the dispatched exception was caught by a catch block,
603
- // then let that catch block handle the exception normally.
604
- context.method = "next";
605
- context.arg = undefined$1;
606
- }
607
-
608
- return !! caught;
609
- }
610
-
611
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
612
- var entry = this.tryEntries[i];
613
- var record = entry.completion;
614
-
615
- if (entry.tryLoc === "root") {
616
- // Exception thrown outside of any try block that could handle
617
- // it, so set the completion value of the entire function to
618
- // throw the exception.
619
- return handle("end");
620
- }
621
-
622
- if (entry.tryLoc <= this.prev) {
623
- var hasCatch = hasOwn.call(entry, "catchLoc");
624
- var hasFinally = hasOwn.call(entry, "finallyLoc");
625
-
626
- if (hasCatch && hasFinally) {
627
- if (this.prev < entry.catchLoc) {
628
- return handle(entry.catchLoc, true);
629
- } else if (this.prev < entry.finallyLoc) {
630
- return handle(entry.finallyLoc);
631
- }
632
-
633
- } else if (hasCatch) {
634
- if (this.prev < entry.catchLoc) {
635
- return handle(entry.catchLoc, true);
636
- }
637
-
638
- } else if (hasFinally) {
639
- if (this.prev < entry.finallyLoc) {
640
- return handle(entry.finallyLoc);
641
- }
642
-
643
- } else {
644
- throw new Error("try statement without catch or finally");
645
- }
646
- }
647
- }
648
- },
649
-
650
- abrupt: function(type, arg) {
651
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
652
- var entry = this.tryEntries[i];
653
- if (entry.tryLoc <= this.prev &&
654
- hasOwn.call(entry, "finallyLoc") &&
655
- this.prev < entry.finallyLoc) {
656
- var finallyEntry = entry;
657
- break;
658
- }
659
- }
660
-
661
- if (finallyEntry &&
662
- (type === "break" ||
663
- type === "continue") &&
664
- finallyEntry.tryLoc <= arg &&
665
- arg <= finallyEntry.finallyLoc) {
666
- // Ignore the finally entry if control is not jumping to a
667
- // location outside the try/catch block.
668
- finallyEntry = null;
669
- }
670
-
671
- var record = finallyEntry ? finallyEntry.completion : {};
672
- record.type = type;
673
- record.arg = arg;
674
-
675
- if (finallyEntry) {
676
- this.method = "next";
677
- this.next = finallyEntry.finallyLoc;
678
- return ContinueSentinel;
679
- }
680
-
681
- return this.complete(record);
682
- },
683
-
684
- complete: function(record, afterLoc) {
685
- if (record.type === "throw") {
686
- throw record.arg;
687
- }
688
-
689
- if (record.type === "break" ||
690
- record.type === "continue") {
691
- this.next = record.arg;
692
- } else if (record.type === "return") {
693
- this.rval = this.arg = record.arg;
694
- this.method = "return";
695
- this.next = "end";
696
- } else if (record.type === "normal" && afterLoc) {
697
- this.next = afterLoc;
698
- }
699
-
700
- return ContinueSentinel;
701
- },
702
-
703
- finish: function(finallyLoc) {
704
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
705
- var entry = this.tryEntries[i];
706
- if (entry.finallyLoc === finallyLoc) {
707
- this.complete(entry.completion, entry.afterLoc);
708
- resetTryEntry(entry);
709
- return ContinueSentinel;
710
- }
711
- }
712
- },
713
-
714
- "catch": function(tryLoc) {
715
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
716
- var entry = this.tryEntries[i];
717
- if (entry.tryLoc === tryLoc) {
718
- var record = entry.completion;
719
- if (record.type === "throw") {
720
- var thrown = record.arg;
721
- resetTryEntry(entry);
722
- }
723
- return thrown;
724
- }
725
- }
726
-
727
- // The context.catch method must only be called with a location
728
- // argument that corresponds to a known catch block.
729
- throw new Error("illegal catch attempt");
730
- },
731
-
732
- delegateYield: function(iterable, resultName, nextLoc) {
733
- this.delegate = {
734
- iterator: values(iterable),
735
- resultName: resultName,
736
- nextLoc: nextLoc
737
- };
738
-
739
- if (this.method === "next") {
740
- // Deliberately forget the last sent value so that we don't
741
- // accidentally pass it on to the delegate.
742
- this.arg = undefined$1;
743
- }
744
-
745
- return ContinueSentinel;
746
- }
747
- };
748
-
749
- // Regardless of whether this script is executing as a CommonJS module
750
- // or not, return the runtime object so that we can declare the variable
751
- // regeneratorRuntime in the outer scope, which allows this module to be
752
- // injected easily by `bin/regenerator --include-runtime script.js`.
753
- return exports;
754
-
755
- }(
756
- // If this script is executing as a CommonJS module, use module.exports
757
- // as the regeneratorRuntime namespace. Otherwise create a new empty
758
- // object. Either way, the resulting object will be used to initialize
759
- // the regeneratorRuntime variable at the top of this file.
760
- module.exports
761
- ));
762
-
763
- try {
764
- regeneratorRuntime = runtime;
765
- } catch (accidentalStrictMode) {
766
- // This module should not be running in strict mode, so the above
767
- // assignment should always work unless something is misconfigured. Just
768
- // in case runtime.js accidentally runs in strict mode, in modern engines
769
- // we can explicitly access globalThis. In older engines we can escape
770
- // strict mode using a global Function call. This could conceivably fail
771
- // if a Content Security Policy forbids using Function, but in that case
772
- // the proper solution is to fix the accidental strict mode problem. If
773
- // you've misconfigured your bundler to force strict mode and applied a
774
- // CSP to forbid Function, and you're not willing to fix either of those
775
- // problems, please detail your unique predicament in a GitHub issue.
776
- if (typeof globalThis === "object") {
777
- globalThis.regeneratorRuntime = runtime;
778
- } else {
779
- Function("r", "regeneratorRuntime = r")(runtime);
780
- }
781
- }
782
- });
783
-
784
- /**
785
- * Checks if `value` is classified as an `Array` object.
786
- *
787
- * @static
788
- * @memberOf _
789
- * @since 0.1.0
790
- * @category Lang
791
- * @param {*} value The value to check.
792
- * @returns {boolean} Returns `true` if `value` is an array, else `false`.
793
- * @example
794
- *
795
- * _.isArray([1, 2, 3]);
796
- * // => true
797
- *
798
- * _.isArray(document.body.children);
799
- * // => false
800
- *
801
- * _.isArray('abc');
802
- * // => false
803
- *
804
- * _.isArray(_.noop);
805
- * // => false
806
- */
807
- var isArray = Array.isArray;
808
-
809
- var isArray_1 = isArray;
810
-
811
- /** Detect free variable `global` from Node.js. */
812
-
813
- var freeGlobal = typeof commonjsGlobal == 'object' && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
814
-
815
- var _freeGlobal = freeGlobal;
816
-
817
- /** Detect free variable `self`. */
818
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
819
-
820
- /** Used as a reference to the global object. */
821
- var root = _freeGlobal || freeSelf || Function('return this')();
822
-
823
- var _root = root;
824
-
825
- /** Built-in value references. */
826
- var Symbol$1 = _root.Symbol;
827
-
828
- var _Symbol = Symbol$1;
829
-
830
- /** Used for built-in method references. */
831
- var objectProto$4 = Object.prototype;
832
-
833
- /** Used to check objects for own properties. */
834
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
835
-
836
- /**
837
- * Used to resolve the
838
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
839
- * of values.
840
- */
841
- var nativeObjectToString$1 = objectProto$4.toString;
842
-
843
- /** Built-in value references. */
844
- var symToStringTag$1 = _Symbol ? _Symbol.toStringTag : undefined;
845
-
846
- /**
847
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
848
- *
849
- * @private
850
- * @param {*} value The value to query.
851
- * @returns {string} Returns the raw `toStringTag`.
852
- */
853
- function getRawTag(value) {
854
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
855
- tag = value[symToStringTag$1];
856
-
857
- try {
858
- value[symToStringTag$1] = undefined;
859
- var unmasked = true;
860
- } catch (e) {}
861
-
862
- var result = nativeObjectToString$1.call(value);
863
- if (unmasked) {
864
- if (isOwn) {
865
- value[symToStringTag$1] = tag;
866
- } else {
867
- delete value[symToStringTag$1];
868
- }
869
- }
870
- return result;
871
- }
872
-
873
- var _getRawTag = getRawTag;
874
-
875
- /** Used for built-in method references. */
876
- var objectProto$3 = Object.prototype;
877
-
878
- /**
879
- * Used to resolve the
880
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
881
- * of values.
882
- */
883
- var nativeObjectToString = objectProto$3.toString;
884
-
885
- /**
886
- * Converts `value` to a string using `Object.prototype.toString`.
887
- *
888
- * @private
889
- * @param {*} value The value to convert.
890
- * @returns {string} Returns the converted string.
891
- */
892
- function objectToString(value) {
893
- return nativeObjectToString.call(value);
894
- }
895
-
896
- var _objectToString = objectToString;
897
-
898
- /** `Object#toString` result references. */
899
- var nullTag = '[object Null]',
900
- undefinedTag = '[object Undefined]';
901
-
902
- /** Built-in value references. */
903
- var symToStringTag = _Symbol ? _Symbol.toStringTag : undefined;
904
-
905
- /**
906
- * The base implementation of `getTag` without fallbacks for buggy environments.
907
- *
908
- * @private
909
- * @param {*} value The value to query.
910
- * @returns {string} Returns the `toStringTag`.
911
- */
912
- function baseGetTag(value) {
913
- if (value == null) {
914
- return value === undefined ? undefinedTag : nullTag;
915
- }
916
- return (symToStringTag && symToStringTag in Object(value))
917
- ? _getRawTag(value)
918
- : _objectToString(value);
919
- }
920
-
921
- var _baseGetTag = baseGetTag;
922
-
923
- /**
924
- * Checks if `value` is object-like. A value is object-like if it's not `null`
925
- * and has a `typeof` result of "object".
926
- *
927
- * @static
928
- * @memberOf _
929
- * @since 4.0.0
930
- * @category Lang
931
- * @param {*} value The value to check.
932
- * @returns {boolean} Returns `true` if `value` is object-like, else `false`.
933
- * @example
934
- *
935
- * _.isObjectLike({});
936
- * // => true
937
- *
938
- * _.isObjectLike([1, 2, 3]);
939
- * // => true
940
- *
941
- * _.isObjectLike(_.noop);
942
- * // => false
943
- *
944
- * _.isObjectLike(null);
945
- * // => false
946
- */
947
- function isObjectLike(value) {
948
- return value != null && typeof value == 'object';
949
- }
950
-
951
- var isObjectLike_1 = isObjectLike;
952
-
953
- /** `Object#toString` result references. */
954
- var symbolTag = '[object Symbol]';
955
-
956
- /**
957
- * Checks if `value` is classified as a `Symbol` primitive or object.
958
- *
959
- * @static
960
- * @memberOf _
961
- * @since 4.0.0
962
- * @category Lang
963
- * @param {*} value The value to check.
964
- * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
965
- * @example
966
- *
967
- * _.isSymbol(Symbol.iterator);
968
- * // => true
969
- *
970
- * _.isSymbol('abc');
971
- * // => false
972
- */
973
- function isSymbol(value) {
974
- return typeof value == 'symbol' ||
975
- (isObjectLike_1(value) && _baseGetTag(value) == symbolTag);
976
- }
977
-
978
- var isSymbol_1 = isSymbol;
979
-
980
- /** Used to match property names within property paths. */
981
- var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
982
- reIsPlainProp = /^\w*$/;
983
-
984
- /**
985
- * Checks if `value` is a property name and not a property path.
986
- *
987
- * @private
988
- * @param {*} value The value to check.
989
- * @param {Object} [object] The object to query keys on.
990
- * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
991
- */
992
- function isKey(value, object) {
993
- if (isArray_1(value)) {
994
- return false;
995
- }
996
- var type = typeof value;
997
- if (type == 'number' || type == 'symbol' || type == 'boolean' ||
998
- value == null || isSymbol_1(value)) {
999
- return true;
1000
- }
1001
- return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||
1002
- (object != null && value in Object(object));
1003
- }
1004
-
1005
- var _isKey = isKey;
1006
-
1007
- /**
1008
- * Checks if `value` is the
1009
- * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
1010
- * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
1011
- *
1012
- * @static
1013
- * @memberOf _
1014
- * @since 0.1.0
1015
- * @category Lang
1016
- * @param {*} value The value to check.
1017
- * @returns {boolean} Returns `true` if `value` is an object, else `false`.
1018
- * @example
1019
- *
1020
- * _.isObject({});
1021
- * // => true
1022
- *
1023
- * _.isObject([1, 2, 3]);
1024
- * // => true
1025
- *
1026
- * _.isObject(_.noop);
1027
- * // => true
1028
- *
1029
- * _.isObject(null);
1030
- * // => false
1031
- */
1032
- function isObject(value) {
1033
- var type = typeof value;
1034
- return value != null && (type == 'object' || type == 'function');
1035
- }
1036
-
1037
- var isObject_1 = isObject;
1038
-
1039
- /** `Object#toString` result references. */
1040
- var asyncTag = '[object AsyncFunction]',
1041
- funcTag = '[object Function]',
1042
- genTag = '[object GeneratorFunction]',
1043
- proxyTag = '[object Proxy]';
1044
-
1045
- /**
1046
- * Checks if `value` is classified as a `Function` object.
1047
- *
1048
- * @static
1049
- * @memberOf _
1050
- * @since 0.1.0
1051
- * @category Lang
1052
- * @param {*} value The value to check.
1053
- * @returns {boolean} Returns `true` if `value` is a function, else `false`.
1054
- * @example
1055
- *
1056
- * _.isFunction(_);
1057
- * // => true
1058
- *
1059
- * _.isFunction(/abc/);
1060
- * // => false
1061
- */
1062
- function isFunction(value) {
1063
- if (!isObject_1(value)) {
1064
- return false;
1065
- }
1066
- // The use of `Object#toString` avoids issues with the `typeof` operator
1067
- // in Safari 9 which returns 'object' for typed arrays and other constructors.
1068
- var tag = _baseGetTag(value);
1069
- return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
1070
- }
1071
-
1072
- var isFunction_1 = isFunction;
1073
-
1074
- /** Used to detect overreaching core-js shims. */
1075
- var coreJsData = _root['__core-js_shared__'];
1076
-
1077
- var _coreJsData = coreJsData;
1078
-
1079
- /** Used to detect methods masquerading as native. */
1080
- var maskSrcKey = (function() {
1081
- var uid = /[^.]+$/.exec(_coreJsData && _coreJsData.keys && _coreJsData.keys.IE_PROTO || '');
1082
- return uid ? ('Symbol(src)_1.' + uid) : '';
1083
- }());
1084
-
1085
- /**
1086
- * Checks if `func` has its source masked.
1087
- *
1088
- * @private
1089
- * @param {Function} func The function to check.
1090
- * @returns {boolean} Returns `true` if `func` is masked, else `false`.
1091
- */
1092
- function isMasked(func) {
1093
- return !!maskSrcKey && (maskSrcKey in func);
1094
- }
1095
-
1096
- var _isMasked = isMasked;
1097
-
1098
- /** Used for built-in method references. */
1099
- var funcProto$1 = Function.prototype;
1100
-
1101
- /** Used to resolve the decompiled source of functions. */
1102
- var funcToString$1 = funcProto$1.toString;
1103
-
1104
- /**
1105
- * Converts `func` to its source code.
1106
- *
1107
- * @private
1108
- * @param {Function} func The function to convert.
1109
- * @returns {string} Returns the source code.
1110
- */
1111
- function toSource(func) {
1112
- if (func != null) {
1113
- try {
1114
- return funcToString$1.call(func);
1115
- } catch (e) {}
1116
- try {
1117
- return (func + '');
1118
- } catch (e) {}
1119
- }
1120
- return '';
1121
- }
1122
-
1123
- var _toSource = toSource;
1124
-
1125
- /**
1126
- * Used to match `RegExp`
1127
- * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
1128
- */
1129
- var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
1130
-
1131
- /** Used to detect host constructors (Safari). */
1132
- var reIsHostCtor = /^\[object .+?Constructor\]$/;
1133
-
1134
- /** Used for built-in method references. */
1135
- var funcProto = Function.prototype,
1136
- objectProto$2 = Object.prototype;
1137
-
1138
- /** Used to resolve the decompiled source of functions. */
1139
- var funcToString = funcProto.toString;
1140
-
1141
- /** Used to check objects for own properties. */
1142
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
1143
-
1144
- /** Used to detect if a method is native. */
1145
- var reIsNative = RegExp('^' +
1146
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
1147
- .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
1148
- );
1149
-
1150
- /**
1151
- * The base implementation of `_.isNative` without bad shim checks.
1152
- *
1153
- * @private
1154
- * @param {*} value The value to check.
1155
- * @returns {boolean} Returns `true` if `value` is a native function,
1156
- * else `false`.
1157
- */
1158
- function baseIsNative(value) {
1159
- if (!isObject_1(value) || _isMasked(value)) {
1160
- return false;
1161
- }
1162
- var pattern = isFunction_1(value) ? reIsNative : reIsHostCtor;
1163
- return pattern.test(_toSource(value));
1164
- }
1165
-
1166
- var _baseIsNative = baseIsNative;
1167
-
1168
- /**
1169
- * Gets the value at `key` of `object`.
1170
- *
1171
- * @private
1172
- * @param {Object} [object] The object to query.
1173
- * @param {string} key The key of the property to get.
1174
- * @returns {*} Returns the property value.
1175
- */
1176
- function getValue(object, key) {
1177
- return object == null ? undefined : object[key];
1178
- }
1179
-
1180
- var _getValue = getValue;
1181
-
1182
- /**
1183
- * Gets the native function at `key` of `object`.
1184
- *
1185
- * @private
1186
- * @param {Object} object The object to query.
1187
- * @param {string} key The key of the method to get.
1188
- * @returns {*} Returns the function if it's native, else `undefined`.
1189
- */
1190
- function getNative(object, key) {
1191
- var value = _getValue(object, key);
1192
- return _baseIsNative(value) ? value : undefined;
1193
- }
1194
-
1195
- var _getNative = getNative;
1196
-
1197
- /* Built-in method references that are verified to be native. */
1198
- var nativeCreate = _getNative(Object, 'create');
1199
-
1200
- var _nativeCreate = nativeCreate;
1201
-
1202
- /**
1203
- * Removes all key-value entries from the hash.
1204
- *
1205
- * @private
1206
- * @name clear
1207
- * @memberOf Hash
1208
- */
1209
- function hashClear() {
1210
- this.__data__ = _nativeCreate ? _nativeCreate(null) : {};
1211
- this.size = 0;
1212
- }
1213
-
1214
- var _hashClear = hashClear;
1215
-
1216
- /**
1217
- * Removes `key` and its value from the hash.
1218
- *
1219
- * @private
1220
- * @name delete
1221
- * @memberOf Hash
1222
- * @param {Object} hash The hash to modify.
1223
- * @param {string} key The key of the value to remove.
1224
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1225
- */
1226
- function hashDelete(key) {
1227
- var result = this.has(key) && delete this.__data__[key];
1228
- this.size -= result ? 1 : 0;
1229
- return result;
1230
- }
1231
-
1232
- var _hashDelete = hashDelete;
1233
-
1234
- /** Used to stand-in for `undefined` hash values. */
1235
- var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
1236
-
1237
- /** Used for built-in method references. */
1238
- var objectProto$1 = Object.prototype;
1239
-
1240
- /** Used to check objects for own properties. */
1241
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
1242
-
1243
- /**
1244
- * Gets the hash value for `key`.
1245
- *
1246
- * @private
1247
- * @name get
1248
- * @memberOf Hash
1249
- * @param {string} key The key of the value to get.
1250
- * @returns {*} Returns the entry value.
1251
- */
1252
- function hashGet(key) {
1253
- var data = this.__data__;
1254
- if (_nativeCreate) {
1255
- var result = data[key];
1256
- return result === HASH_UNDEFINED$1 ? undefined : result;
1257
- }
1258
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
1259
- }
1260
-
1261
- var _hashGet = hashGet;
1262
-
1263
- /** Used for built-in method references. */
1264
- var objectProto = Object.prototype;
1265
-
1266
- /** Used to check objects for own properties. */
1267
- var hasOwnProperty = objectProto.hasOwnProperty;
1268
-
1269
- /**
1270
- * Checks if a hash value for `key` exists.
1271
- *
1272
- * @private
1273
- * @name has
1274
- * @memberOf Hash
1275
- * @param {string} key The key of the entry to check.
1276
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1277
- */
1278
- function hashHas(key) {
1279
- var data = this.__data__;
1280
- return _nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
1281
- }
1282
-
1283
- var _hashHas = hashHas;
1284
-
1285
- /** Used to stand-in for `undefined` hash values. */
1286
- var HASH_UNDEFINED = '__lodash_hash_undefined__';
1287
-
1288
- /**
1289
- * Sets the hash `key` to `value`.
1290
- *
1291
- * @private
1292
- * @name set
1293
- * @memberOf Hash
1294
- * @param {string} key The key of the value to set.
1295
- * @param {*} value The value to set.
1296
- * @returns {Object} Returns the hash instance.
1297
- */
1298
- function hashSet(key, value) {
1299
- var data = this.__data__;
1300
- this.size += this.has(key) ? 0 : 1;
1301
- data[key] = (_nativeCreate && value === undefined) ? HASH_UNDEFINED : value;
1302
- return this;
1303
- }
1304
-
1305
- var _hashSet = hashSet;
1306
-
1307
- /**
1308
- * Creates a hash object.
1309
- *
1310
- * @private
1311
- * @constructor
1312
- * @param {Array} [entries] The key-value pairs to cache.
1313
- */
1314
- function Hash(entries) {
1315
- var index = -1,
1316
- length = entries == null ? 0 : entries.length;
1317
-
1318
- this.clear();
1319
- while (++index < length) {
1320
- var entry = entries[index];
1321
- this.set(entry[0], entry[1]);
1322
- }
1323
- }
1324
-
1325
- // Add methods to `Hash`.
1326
- Hash.prototype.clear = _hashClear;
1327
- Hash.prototype['delete'] = _hashDelete;
1328
- Hash.prototype.get = _hashGet;
1329
- Hash.prototype.has = _hashHas;
1330
- Hash.prototype.set = _hashSet;
1331
-
1332
- var _Hash = Hash;
1333
-
1334
- /**
1335
- * Removes all key-value entries from the list cache.
1336
- *
1337
- * @private
1338
- * @name clear
1339
- * @memberOf ListCache
1340
- */
1341
- function listCacheClear() {
1342
- this.__data__ = [];
1343
- this.size = 0;
1344
- }
1345
-
1346
- var _listCacheClear = listCacheClear;
1347
-
1348
- /**
1349
- * Performs a
1350
- * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
1351
- * comparison between two values to determine if they are equivalent.
1352
- *
1353
- * @static
1354
- * @memberOf _
1355
- * @since 4.0.0
1356
- * @category Lang
1357
- * @param {*} value The value to compare.
1358
- * @param {*} other The other value to compare.
1359
- * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
1360
- * @example
1361
- *
1362
- * var object = { 'a': 1 };
1363
- * var other = { 'a': 1 };
1364
- *
1365
- * _.eq(object, object);
1366
- * // => true
1367
- *
1368
- * _.eq(object, other);
1369
- * // => false
1370
- *
1371
- * _.eq('a', 'a');
1372
- * // => true
1373
- *
1374
- * _.eq('a', Object('a'));
1375
- * // => false
1376
- *
1377
- * _.eq(NaN, NaN);
1378
- * // => true
1379
- */
1380
- function eq(value, other) {
1381
- return value === other || (value !== value && other !== other);
1382
- }
1383
-
1384
- var eq_1 = eq;
1385
-
1386
- /**
1387
- * Gets the index at which the `key` is found in `array` of key-value pairs.
1388
- *
1389
- * @private
1390
- * @param {Array} array The array to inspect.
1391
- * @param {*} key The key to search for.
1392
- * @returns {number} Returns the index of the matched value, else `-1`.
1393
- */
1394
- function assocIndexOf(array, key) {
1395
- var length = array.length;
1396
- while (length--) {
1397
- if (eq_1(array[length][0], key)) {
1398
- return length;
1399
- }
1400
- }
1401
- return -1;
1402
- }
1403
-
1404
- var _assocIndexOf = assocIndexOf;
1405
-
1406
- /** Used for built-in method references. */
1407
- var arrayProto = Array.prototype;
1408
-
1409
- /** Built-in value references. */
1410
- var splice = arrayProto.splice;
1411
-
1412
- /**
1413
- * Removes `key` and its value from the list cache.
1414
- *
1415
- * @private
1416
- * @name delete
1417
- * @memberOf ListCache
1418
- * @param {string} key The key of the value to remove.
1419
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1420
- */
1421
- function listCacheDelete(key) {
1422
- var data = this.__data__,
1423
- index = _assocIndexOf(data, key);
1424
-
1425
- if (index < 0) {
1426
- return false;
1427
- }
1428
- var lastIndex = data.length - 1;
1429
- if (index == lastIndex) {
1430
- data.pop();
1431
- } else {
1432
- splice.call(data, index, 1);
1433
- }
1434
- --this.size;
1435
- return true;
1436
- }
1437
-
1438
- var _listCacheDelete = listCacheDelete;
1439
-
1440
- /**
1441
- * Gets the list cache value for `key`.
1442
- *
1443
- * @private
1444
- * @name get
1445
- * @memberOf ListCache
1446
- * @param {string} key The key of the value to get.
1447
- * @returns {*} Returns the entry value.
1448
- */
1449
- function listCacheGet(key) {
1450
- var data = this.__data__,
1451
- index = _assocIndexOf(data, key);
1452
-
1453
- return index < 0 ? undefined : data[index][1];
1454
- }
1455
-
1456
- var _listCacheGet = listCacheGet;
1457
-
1458
- /**
1459
- * Checks if a list cache value for `key` exists.
1460
- *
1461
- * @private
1462
- * @name has
1463
- * @memberOf ListCache
1464
- * @param {string} key The key of the entry to check.
1465
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1466
- */
1467
- function listCacheHas(key) {
1468
- return _assocIndexOf(this.__data__, key) > -1;
1469
- }
1470
-
1471
- var _listCacheHas = listCacheHas;
1472
-
1473
- /**
1474
- * Sets the list cache `key` to `value`.
1475
- *
1476
- * @private
1477
- * @name set
1478
- * @memberOf ListCache
1479
- * @param {string} key The key of the value to set.
1480
- * @param {*} value The value to set.
1481
- * @returns {Object} Returns the list cache instance.
1482
- */
1483
- function listCacheSet(key, value) {
1484
- var data = this.__data__,
1485
- index = _assocIndexOf(data, key);
1486
-
1487
- if (index < 0) {
1488
- ++this.size;
1489
- data.push([key, value]);
1490
- } else {
1491
- data[index][1] = value;
1492
- }
1493
- return this;
1494
- }
1495
-
1496
- var _listCacheSet = listCacheSet;
1497
-
1498
- /**
1499
- * Creates an list cache object.
1500
- *
1501
- * @private
1502
- * @constructor
1503
- * @param {Array} [entries] The key-value pairs to cache.
1504
- */
1505
- function ListCache(entries) {
1506
- var index = -1,
1507
- length = entries == null ? 0 : entries.length;
1508
-
1509
- this.clear();
1510
- while (++index < length) {
1511
- var entry = entries[index];
1512
- this.set(entry[0], entry[1]);
1513
- }
1514
- }
1515
-
1516
- // Add methods to `ListCache`.
1517
- ListCache.prototype.clear = _listCacheClear;
1518
- ListCache.prototype['delete'] = _listCacheDelete;
1519
- ListCache.prototype.get = _listCacheGet;
1520
- ListCache.prototype.has = _listCacheHas;
1521
- ListCache.prototype.set = _listCacheSet;
1522
-
1523
- var _ListCache = ListCache;
1524
-
1525
- /* Built-in method references that are verified to be native. */
1526
- var Map = _getNative(_root, 'Map');
1527
-
1528
- var _Map = Map;
1529
-
1530
- /**
1531
- * Removes all key-value entries from the map.
1532
- *
1533
- * @private
1534
- * @name clear
1535
- * @memberOf MapCache
1536
- */
1537
- function mapCacheClear() {
1538
- this.size = 0;
1539
- this.__data__ = {
1540
- 'hash': new _Hash,
1541
- 'map': new (_Map || _ListCache),
1542
- 'string': new _Hash
1543
- };
1544
- }
1545
-
1546
- var _mapCacheClear = mapCacheClear;
1547
-
1548
- /**
1549
- * Checks if `value` is suitable for use as unique object key.
1550
- *
1551
- * @private
1552
- * @param {*} value The value to check.
1553
- * @returns {boolean} Returns `true` if `value` is suitable, else `false`.
1554
- */
1555
- function isKeyable(value) {
1556
- var type = typeof value;
1557
- return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')
1558
- ? (value !== '__proto__')
1559
- : (value === null);
1560
- }
1561
-
1562
- var _isKeyable = isKeyable;
1563
-
1564
- /**
1565
- * Gets the data for `map`.
1566
- *
1567
- * @private
1568
- * @param {Object} map The map to query.
1569
- * @param {string} key The reference key.
1570
- * @returns {*} Returns the map data.
1571
- */
1572
- function getMapData(map, key) {
1573
- var data = map.__data__;
1574
- return _isKeyable(key)
1575
- ? data[typeof key == 'string' ? 'string' : 'hash']
1576
- : data.map;
1577
- }
1578
-
1579
- var _getMapData = getMapData;
1580
-
1581
- /**
1582
- * Removes `key` and its value from the map.
1583
- *
1584
- * @private
1585
- * @name delete
1586
- * @memberOf MapCache
1587
- * @param {string} key The key of the value to remove.
1588
- * @returns {boolean} Returns `true` if the entry was removed, else `false`.
1589
- */
1590
- function mapCacheDelete(key) {
1591
- var result = _getMapData(this, key)['delete'](key);
1592
- this.size -= result ? 1 : 0;
1593
- return result;
1594
- }
1595
-
1596
- var _mapCacheDelete = mapCacheDelete;
1597
-
1598
- /**
1599
- * Gets the map value for `key`.
1600
- *
1601
- * @private
1602
- * @name get
1603
- * @memberOf MapCache
1604
- * @param {string} key The key of the value to get.
1605
- * @returns {*} Returns the entry value.
1606
- */
1607
- function mapCacheGet(key) {
1608
- return _getMapData(this, key).get(key);
1609
- }
1610
-
1611
- var _mapCacheGet = mapCacheGet;
1612
-
1613
- /**
1614
- * Checks if a map value for `key` exists.
1615
- *
1616
- * @private
1617
- * @name has
1618
- * @memberOf MapCache
1619
- * @param {string} key The key of the entry to check.
1620
- * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
1621
- */
1622
- function mapCacheHas(key) {
1623
- return _getMapData(this, key).has(key);
1624
- }
1625
-
1626
- var _mapCacheHas = mapCacheHas;
1627
-
1628
- /**
1629
- * Sets the map `key` to `value`.
1630
- *
1631
- * @private
1632
- * @name set
1633
- * @memberOf MapCache
1634
- * @param {string} key The key of the value to set.
1635
- * @param {*} value The value to set.
1636
- * @returns {Object} Returns the map cache instance.
1637
- */
1638
- function mapCacheSet(key, value) {
1639
- var data = _getMapData(this, key),
1640
- size = data.size;
1641
-
1642
- data.set(key, value);
1643
- this.size += data.size == size ? 0 : 1;
1644
- return this;
1645
- }
1646
-
1647
- var _mapCacheSet = mapCacheSet;
1648
-
1649
- /**
1650
- * Creates a map cache object to store key-value pairs.
1651
- *
1652
- * @private
1653
- * @constructor
1654
- * @param {Array} [entries] The key-value pairs to cache.
1655
- */
1656
- function MapCache(entries) {
1657
- var index = -1,
1658
- length = entries == null ? 0 : entries.length;
1659
-
1660
- this.clear();
1661
- while (++index < length) {
1662
- var entry = entries[index];
1663
- this.set(entry[0], entry[1]);
1664
- }
1665
- }
1666
-
1667
- // Add methods to `MapCache`.
1668
- MapCache.prototype.clear = _mapCacheClear;
1669
- MapCache.prototype['delete'] = _mapCacheDelete;
1670
- MapCache.prototype.get = _mapCacheGet;
1671
- MapCache.prototype.has = _mapCacheHas;
1672
- MapCache.prototype.set = _mapCacheSet;
1673
-
1674
- var _MapCache = MapCache;
1675
-
1676
- /** Error message constants. */
1677
- var FUNC_ERROR_TEXT = 'Expected a function';
1678
-
1679
- /**
1680
- * Creates a function that memoizes the result of `func`. If `resolver` is
1681
- * provided, it determines the cache key for storing the result based on the
1682
- * arguments provided to the memoized function. By default, the first argument
1683
- * provided to the memoized function is used as the map cache key. The `func`
1684
- * is invoked with the `this` binding of the memoized function.
1685
- *
1686
- * **Note:** The cache is exposed as the `cache` property on the memoized
1687
- * function. Its creation may be customized by replacing the `_.memoize.Cache`
1688
- * constructor with one whose instances implement the
1689
- * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)
1690
- * method interface of `clear`, `delete`, `get`, `has`, and `set`.
1691
- *
1692
- * @static
1693
- * @memberOf _
1694
- * @since 0.1.0
1695
- * @category Function
1696
- * @param {Function} func The function to have its output memoized.
1697
- * @param {Function} [resolver] The function to resolve the cache key.
1698
- * @returns {Function} Returns the new memoized function.
1699
- * @example
1700
- *
1701
- * var object = { 'a': 1, 'b': 2 };
1702
- * var other = { 'c': 3, 'd': 4 };
1703
- *
1704
- * var values = _.memoize(_.values);
1705
- * values(object);
1706
- * // => [1, 2]
1707
- *
1708
- * values(other);
1709
- * // => [3, 4]
1710
- *
1711
- * object.a = 2;
1712
- * values(object);
1713
- * // => [1, 2]
1714
- *
1715
- * // Modify the result cache.
1716
- * values.cache.set(object, ['a', 'b']);
1717
- * values(object);
1718
- * // => ['a', 'b']
1719
- *
1720
- * // Replace `_.memoize.Cache`.
1721
- * _.memoize.Cache = WeakMap;
1722
- */
1723
- function memoize(func, resolver) {
1724
- if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {
1725
- throw new TypeError(FUNC_ERROR_TEXT);
1726
- }
1727
- var memoized = function() {
1728
- var args = arguments,
1729
- key = resolver ? resolver.apply(this, args) : args[0],
1730
- cache = memoized.cache;
1731
-
1732
- if (cache.has(key)) {
1733
- return cache.get(key);
1734
- }
1735
- var result = func.apply(this, args);
1736
- memoized.cache = cache.set(key, result) || cache;
1737
- return result;
1738
- };
1739
- memoized.cache = new (memoize.Cache || _MapCache);
1740
- return memoized;
1741
- }
1742
-
1743
- // Expose `MapCache`.
1744
- memoize.Cache = _MapCache;
1745
-
1746
- var memoize_1 = memoize;
1747
-
1748
- /** Used as the maximum memoize cache size. */
1749
- var MAX_MEMOIZE_SIZE = 500;
1750
-
1751
- /**
1752
- * A specialized version of `_.memoize` which clears the memoized function's
1753
- * cache when it exceeds `MAX_MEMOIZE_SIZE`.
1754
- *
1755
- * @private
1756
- * @param {Function} func The function to have its output memoized.
1757
- * @returns {Function} Returns the new memoized function.
1758
- */
1759
- function memoizeCapped(func) {
1760
- var result = memoize_1(func, function(key) {
1761
- if (cache.size === MAX_MEMOIZE_SIZE) {
1762
- cache.clear();
1763
- }
1764
- return key;
1765
- });
1766
-
1767
- var cache = result.cache;
1768
- return result;
1769
- }
1770
-
1771
- var _memoizeCapped = memoizeCapped;
1772
-
1773
- /** Used to match property names within property paths. */
1774
- var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
1775
-
1776
- /** Used to match backslashes in property paths. */
1777
- var reEscapeChar = /\\(\\)?/g;
1778
-
1779
- /**
1780
- * Converts `string` to a property path array.
1781
- *
1782
- * @private
1783
- * @param {string} string The string to convert.
1784
- * @returns {Array} Returns the property path array.
1785
- */
1786
- var stringToPath = _memoizeCapped(function(string) {
1787
- var result = [];
1788
- if (string.charCodeAt(0) === 46 /* . */) {
1789
- result.push('');
1790
- }
1791
- string.replace(rePropName, function(match, number, quote, subString) {
1792
- result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
1793
- });
1794
- return result;
1795
- });
1796
-
1797
- var _stringToPath = stringToPath;
1798
-
1799
- /**
1800
- * A specialized version of `_.map` for arrays without support for iteratee
1801
- * shorthands.
1802
- *
1803
- * @private
1804
- * @param {Array} [array] The array to iterate over.
1805
- * @param {Function} iteratee The function invoked per iteration.
1806
- * @returns {Array} Returns the new mapped array.
1807
- */
1808
- function arrayMap(array, iteratee) {
1809
- var index = -1,
1810
- length = array == null ? 0 : array.length,
1811
- result = Array(length);
1812
-
1813
- while (++index < length) {
1814
- result[index] = iteratee(array[index], index, array);
1815
- }
1816
- return result;
1817
- }
1818
-
1819
- var _arrayMap = arrayMap;
1820
-
1821
- /** Used as references for various `Number` constants. */
1822
- var INFINITY$1 = 1 / 0;
1823
-
1824
- /** Used to convert symbols to primitives and strings. */
1825
- var symbolProto = _Symbol ? _Symbol.prototype : undefined,
1826
- symbolToString = symbolProto ? symbolProto.toString : undefined;
1827
-
1828
- /**
1829
- * The base implementation of `_.toString` which doesn't convert nullish
1830
- * values to empty strings.
1831
- *
1832
- * @private
1833
- * @param {*} value The value to process.
1834
- * @returns {string} Returns the string.
1835
- */
1836
- function baseToString(value) {
1837
- // Exit early for strings to avoid a performance hit in some environments.
1838
- if (typeof value == 'string') {
1839
- return value;
1840
- }
1841
- if (isArray_1(value)) {
1842
- // Recursively convert values (susceptible to call stack limits).
1843
- return _arrayMap(value, baseToString) + '';
1844
- }
1845
- if (isSymbol_1(value)) {
1846
- return symbolToString ? symbolToString.call(value) : '';
1847
- }
1848
- var result = (value + '');
1849
- return (result == '0' && (1 / value) == -INFINITY$1) ? '-0' : result;
1850
- }
1851
-
1852
- var _baseToString = baseToString;
1853
-
1854
- /**
1855
- * Converts `value` to a string. An empty string is returned for `null`
1856
- * and `undefined` values. The sign of `-0` is preserved.
1857
- *
1858
- * @static
1859
- * @memberOf _
1860
- * @since 4.0.0
1861
- * @category Lang
1862
- * @param {*} value The value to convert.
1863
- * @returns {string} Returns the converted string.
1864
- * @example
1865
- *
1866
- * _.toString(null);
1867
- * // => ''
1868
- *
1869
- * _.toString(-0);
1870
- * // => '-0'
1871
- *
1872
- * _.toString([1, 2, 3]);
1873
- * // => '1,2,3'
1874
- */
1875
- function toString(value) {
1876
- return value == null ? '' : _baseToString(value);
1877
- }
1878
-
1879
- var toString_1 = toString;
1880
-
1881
- /**
1882
- * Casts `value` to a path array if it's not one.
1883
- *
1884
- * @private
1885
- * @param {*} value The value to inspect.
1886
- * @param {Object} [object] The object to query keys on.
1887
- * @returns {Array} Returns the cast property path array.
1888
- */
1889
- function castPath(value, object) {
1890
- if (isArray_1(value)) {
1891
- return value;
1892
- }
1893
- return _isKey(value, object) ? [value] : _stringToPath(toString_1(value));
1894
- }
1895
-
1896
- var _castPath = castPath;
1897
-
1898
- /** Used as references for various `Number` constants. */
1899
- var INFINITY = 1 / 0;
1900
-
1901
- /**
1902
- * Converts `value` to a string key if it's not a string or symbol.
1903
- *
1904
- * @private
1905
- * @param {*} value The value to inspect.
1906
- * @returns {string|symbol} Returns the key.
1907
- */
1908
- function toKey(value) {
1909
- if (typeof value == 'string' || isSymbol_1(value)) {
1910
- return value;
1911
- }
1912
- var result = (value + '');
1913
- return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;
1914
- }
1915
-
1916
- var _toKey = toKey;
1917
-
1918
- /**
1919
- * The base implementation of `_.get` without support for default values.
1920
- *
1921
- * @private
1922
- * @param {Object} object The object to query.
1923
- * @param {Array|string} path The path of the property to get.
1924
- * @returns {*} Returns the resolved value.
1925
- */
1926
- function baseGet(object, path) {
1927
- path = _castPath(path, object);
1928
-
1929
- var index = 0,
1930
- length = path.length;
1931
-
1932
- while (object != null && index < length) {
1933
- object = object[_toKey(path[index++])];
1934
- }
1935
- return (index && index == length) ? object : undefined;
1936
- }
1937
-
1938
- var _baseGet = baseGet;
1939
-
1940
- /**
1941
- * Gets the value at `path` of `object`. If the resolved value is
1942
- * `undefined`, the `defaultValue` is returned in its place.
1943
- *
1944
- * @static
1945
- * @memberOf _
1946
- * @since 3.7.0
1947
- * @category Object
1948
- * @param {Object} object The object to query.
1949
- * @param {Array|string} path The path of the property to get.
1950
- * @param {*} [defaultValue] The value returned for `undefined` resolved values.
1951
- * @returns {*} Returns the resolved value.
1952
- * @example
1953
- *
1954
- * var object = { 'a': [{ 'b': { 'c': 3 } }] };
1955
- *
1956
- * _.get(object, 'a[0].b.c');
1957
- * // => 3
1958
- *
1959
- * _.get(object, ['a', '0', 'b', 'c']);
1960
- * // => 3
1961
- *
1962
- * _.get(object, 'a.b.c', 'default');
1963
- * // => 'default'
1964
- */
1965
- function get(object, path, defaultValue) {
1966
- var result = object == null ? undefined : _baseGet(object, path);
1967
- return result === undefined ? defaultValue : result;
1968
- }
1969
-
1970
- var get_1 = get;
1971
-
1972
- /**
1973
- * A specialized version of `_.reduce` for arrays without support for
1974
- * iteratee shorthands.
1975
- *
1976
- * @private
1977
- * @param {Array} [array] The array to iterate over.
1978
- * @param {Function} iteratee The function invoked per iteration.
1979
- * @param {*} [accumulator] The initial value.
1980
- * @param {boolean} [initAccum] Specify using the first element of `array` as
1981
- * the initial value.
1982
- * @returns {*} Returns the accumulated value.
1983
- */
1984
- function arrayReduce(array, iteratee, accumulator, initAccum) {
1985
- var index = -1,
1986
- length = array == null ? 0 : array.length;
1987
-
1988
- if (initAccum && length) {
1989
- accumulator = array[++index];
1990
- }
1991
- while (++index < length) {
1992
- accumulator = iteratee(accumulator, array[index], index, array);
1993
- }
1994
- return accumulator;
1995
- }
1996
-
1997
- var _arrayReduce = arrayReduce;
1998
-
1999
- /**
2000
- * The base implementation of `_.propertyOf` without support for deep paths.
2001
- *
2002
- * @private
2003
- * @param {Object} object The object to query.
2004
- * @returns {Function} Returns the new accessor function.
2005
- */
2006
- function basePropertyOf(object) {
2007
- return function(key) {
2008
- return object == null ? undefined : object[key];
2009
- };
2010
- }
2011
-
2012
- var _basePropertyOf = basePropertyOf;
2013
-
2014
- /** Used to map Latin Unicode letters to basic Latin letters. */
2015
- var deburredLetters = {
2016
- // Latin-1 Supplement block.
2017
- '\xc0': 'A', '\xc1': 'A', '\xc2': 'A', '\xc3': 'A', '\xc4': 'A', '\xc5': 'A',
2018
- '\xe0': 'a', '\xe1': 'a', '\xe2': 'a', '\xe3': 'a', '\xe4': 'a', '\xe5': 'a',
2019
- '\xc7': 'C', '\xe7': 'c',
2020
- '\xd0': 'D', '\xf0': 'd',
2021
- '\xc8': 'E', '\xc9': 'E', '\xca': 'E', '\xcb': 'E',
2022
- '\xe8': 'e', '\xe9': 'e', '\xea': 'e', '\xeb': 'e',
2023
- '\xcc': 'I', '\xcd': 'I', '\xce': 'I', '\xcf': 'I',
2024
- '\xec': 'i', '\xed': 'i', '\xee': 'i', '\xef': 'i',
2025
- '\xd1': 'N', '\xf1': 'n',
2026
- '\xd2': 'O', '\xd3': 'O', '\xd4': 'O', '\xd5': 'O', '\xd6': 'O', '\xd8': 'O',
2027
- '\xf2': 'o', '\xf3': 'o', '\xf4': 'o', '\xf5': 'o', '\xf6': 'o', '\xf8': 'o',
2028
- '\xd9': 'U', '\xda': 'U', '\xdb': 'U', '\xdc': 'U',
2029
- '\xf9': 'u', '\xfa': 'u', '\xfb': 'u', '\xfc': 'u',
2030
- '\xdd': 'Y', '\xfd': 'y', '\xff': 'y',
2031
- '\xc6': 'Ae', '\xe6': 'ae',
2032
- '\xde': 'Th', '\xfe': 'th',
2033
- '\xdf': 'ss',
2034
- // Latin Extended-A block.
2035
- '\u0100': 'A', '\u0102': 'A', '\u0104': 'A',
2036
- '\u0101': 'a', '\u0103': 'a', '\u0105': 'a',
2037
- '\u0106': 'C', '\u0108': 'C', '\u010a': 'C', '\u010c': 'C',
2038
- '\u0107': 'c', '\u0109': 'c', '\u010b': 'c', '\u010d': 'c',
2039
- '\u010e': 'D', '\u0110': 'D', '\u010f': 'd', '\u0111': 'd',
2040
- '\u0112': 'E', '\u0114': 'E', '\u0116': 'E', '\u0118': 'E', '\u011a': 'E',
2041
- '\u0113': 'e', '\u0115': 'e', '\u0117': 'e', '\u0119': 'e', '\u011b': 'e',
2042
- '\u011c': 'G', '\u011e': 'G', '\u0120': 'G', '\u0122': 'G',
2043
- '\u011d': 'g', '\u011f': 'g', '\u0121': 'g', '\u0123': 'g',
2044
- '\u0124': 'H', '\u0126': 'H', '\u0125': 'h', '\u0127': 'h',
2045
- '\u0128': 'I', '\u012a': 'I', '\u012c': 'I', '\u012e': 'I', '\u0130': 'I',
2046
- '\u0129': 'i', '\u012b': 'i', '\u012d': 'i', '\u012f': 'i', '\u0131': 'i',
2047
- '\u0134': 'J', '\u0135': 'j',
2048
- '\u0136': 'K', '\u0137': 'k', '\u0138': 'k',
2049
- '\u0139': 'L', '\u013b': 'L', '\u013d': 'L', '\u013f': 'L', '\u0141': 'L',
2050
- '\u013a': 'l', '\u013c': 'l', '\u013e': 'l', '\u0140': 'l', '\u0142': 'l',
2051
- '\u0143': 'N', '\u0145': 'N', '\u0147': 'N', '\u014a': 'N',
2052
- '\u0144': 'n', '\u0146': 'n', '\u0148': 'n', '\u014b': 'n',
2053
- '\u014c': 'O', '\u014e': 'O', '\u0150': 'O',
2054
- '\u014d': 'o', '\u014f': 'o', '\u0151': 'o',
2055
- '\u0154': 'R', '\u0156': 'R', '\u0158': 'R',
2056
- '\u0155': 'r', '\u0157': 'r', '\u0159': 'r',
2057
- '\u015a': 'S', '\u015c': 'S', '\u015e': 'S', '\u0160': 'S',
2058
- '\u015b': 's', '\u015d': 's', '\u015f': 's', '\u0161': 's',
2059
- '\u0162': 'T', '\u0164': 'T', '\u0166': 'T',
2060
- '\u0163': 't', '\u0165': 't', '\u0167': 't',
2061
- '\u0168': 'U', '\u016a': 'U', '\u016c': 'U', '\u016e': 'U', '\u0170': 'U', '\u0172': 'U',
2062
- '\u0169': 'u', '\u016b': 'u', '\u016d': 'u', '\u016f': 'u', '\u0171': 'u', '\u0173': 'u',
2063
- '\u0174': 'W', '\u0175': 'w',
2064
- '\u0176': 'Y', '\u0177': 'y', '\u0178': 'Y',
2065
- '\u0179': 'Z', '\u017b': 'Z', '\u017d': 'Z',
2066
- '\u017a': 'z', '\u017c': 'z', '\u017e': 'z',
2067
- '\u0132': 'IJ', '\u0133': 'ij',
2068
- '\u0152': 'Oe', '\u0153': 'oe',
2069
- '\u0149': "'n", '\u017f': 's'
2070
- };
2071
-
2072
- /**
2073
- * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A
2074
- * letters to basic Latin letters.
2075
- *
2076
- * @private
2077
- * @param {string} letter The matched letter to deburr.
2078
- * @returns {string} Returns the deburred letter.
2079
- */
2080
- var deburrLetter = _basePropertyOf(deburredLetters);
2081
-
2082
- var _deburrLetter = deburrLetter;
2083
-
2084
- /** Used to match Latin Unicode letters (excluding mathematical operators). */
2085
- var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
2086
-
2087
- /** Used to compose unicode character classes. */
2088
- var rsComboMarksRange$3 = '\\u0300-\\u036f',
2089
- reComboHalfMarksRange$3 = '\\ufe20-\\ufe2f',
2090
- rsComboSymbolsRange$3 = '\\u20d0-\\u20ff',
2091
- rsComboRange$3 = rsComboMarksRange$3 + reComboHalfMarksRange$3 + rsComboSymbolsRange$3;
2092
-
2093
- /** Used to compose unicode capture groups. */
2094
- var rsCombo$2 = '[' + rsComboRange$3 + ']';
2095
-
2096
- /**
2097
- * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and
2098
- * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).
2099
- */
2100
- var reComboMark = RegExp(rsCombo$2, 'g');
2101
-
2102
- /**
2103
- * Deburrs `string` by converting
2104
- * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)
2105
- * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)
2106
- * letters to basic Latin letters and removing
2107
- * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).
2108
- *
2109
- * @static
2110
- * @memberOf _
2111
- * @since 3.0.0
2112
- * @category String
2113
- * @param {string} [string=''] The string to deburr.
2114
- * @returns {string} Returns the deburred string.
2115
- * @example
2116
- *
2117
- * _.deburr('déjà vu');
2118
- * // => 'deja vu'
2119
- */
2120
- function deburr(string) {
2121
- string = toString_1(string);
2122
- return string && string.replace(reLatin, _deburrLetter).replace(reComboMark, '');
2123
- }
2124
-
2125
- var deburr_1 = deburr;
2126
-
2127
- /** Used to match words composed of alphanumeric characters. */
2128
- var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
2129
-
2130
- /**
2131
- * Splits an ASCII `string` into an array of its words.
2132
- *
2133
- * @private
2134
- * @param {string} The string to inspect.
2135
- * @returns {Array} Returns the words of `string`.
2136
- */
2137
- function asciiWords(string) {
2138
- return string.match(reAsciiWord) || [];
2139
- }
2140
-
2141
- var _asciiWords = asciiWords;
2142
-
2143
- /** Used to detect strings that need a more robust regexp to match words. */
2144
- 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 ]/;
2145
-
2146
- /**
2147
- * Checks if `string` contains a word composed of Unicode symbols.
2148
- *
2149
- * @private
2150
- * @param {string} string The string to inspect.
2151
- * @returns {boolean} Returns `true` if a word is found, else `false`.
2152
- */
2153
- function hasUnicodeWord(string) {
2154
- return reHasUnicodeWord.test(string);
2155
- }
2156
-
2157
- var _hasUnicodeWord = hasUnicodeWord;
2158
-
2159
- /** Used to compose unicode character classes. */
2160
- var rsAstralRange$2 = '\\ud800-\\udfff',
2161
- rsComboMarksRange$2 = '\\u0300-\\u036f',
2162
- reComboHalfMarksRange$2 = '\\ufe20-\\ufe2f',
2163
- rsComboSymbolsRange$2 = '\\u20d0-\\u20ff',
2164
- rsComboRange$2 = rsComboMarksRange$2 + reComboHalfMarksRange$2 + rsComboSymbolsRange$2,
2165
- rsDingbatRange = '\\u2700-\\u27bf',
2166
- rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
2167
- rsMathOpRange = '\\xac\\xb1\\xd7\\xf7',
2168
- rsNonCharRange = '\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf',
2169
- rsPunctuationRange = '\\u2000-\\u206f',
2170
- 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',
2171
- rsUpperRange = 'A-Z\\xc0-\\xd6\\xd8-\\xde',
2172
- rsVarRange$2 = '\\ufe0e\\ufe0f',
2173
- rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
2174
-
2175
- /** Used to compose unicode capture groups. */
2176
- var rsApos$1 = "['\u2019]",
2177
- rsBreak = '[' + rsBreakRange + ']',
2178
- rsCombo$1 = '[' + rsComboRange$2 + ']',
2179
- rsDigits = '\\d+',
2180
- rsDingbat = '[' + rsDingbatRange + ']',
2181
- rsLower = '[' + rsLowerRange + ']',
2182
- rsMisc = '[^' + rsAstralRange$2 + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',
2183
- rsFitz$1 = '\\ud83c[\\udffb-\\udfff]',
2184
- rsModifier$1 = '(?:' + rsCombo$1 + '|' + rsFitz$1 + ')',
2185
- rsNonAstral$1 = '[^' + rsAstralRange$2 + ']',
2186
- rsRegional$1 = '(?:\\ud83c[\\udde6-\\uddff]){2}',
2187
- rsSurrPair$1 = '[\\ud800-\\udbff][\\udc00-\\udfff]',
2188
- rsUpper = '[' + rsUpperRange + ']',
2189
- rsZWJ$2 = '\\u200d';
2190
-
2191
- /** Used to compose unicode regexes. */
2192
- var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',
2193
- rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',
2194
- rsOptContrLower = '(?:' + rsApos$1 + '(?:d|ll|m|re|s|t|ve))?',
2195
- rsOptContrUpper = '(?:' + rsApos$1 + '(?:D|LL|M|RE|S|T|VE))?',
2196
- reOptMod$1 = rsModifier$1 + '?',
2197
- rsOptVar$1 = '[' + rsVarRange$2 + ']?',
2198
- rsOptJoin$1 = '(?:' + rsZWJ$2 + '(?:' + [rsNonAstral$1, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsOptVar$1 + reOptMod$1 + ')*',
2199
- rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
2200
- rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
2201
- rsSeq$1 = rsOptVar$1 + reOptMod$1 + rsOptJoin$1,
2202
- rsEmoji = '(?:' + [rsDingbat, rsRegional$1, rsSurrPair$1].join('|') + ')' + rsSeq$1;
2203
-
2204
- /** Used to match complex or compound words. */
2205
- var reUnicodeWord = RegExp([
2206
- rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',
2207
- rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',
2208
- rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,
2209
- rsUpper + '+' + rsOptContrUpper,
2210
- rsOrdUpper,
2211
- rsOrdLower,
2212
- rsDigits,
2213
- rsEmoji
2214
- ].join('|'), 'g');
2215
-
2216
- /**
2217
- * Splits a Unicode `string` into an array of its words.
2218
- *
2219
- * @private
2220
- * @param {string} The string to inspect.
2221
- * @returns {Array} Returns the words of `string`.
2222
- */
2223
- function unicodeWords(string) {
2224
- return string.match(reUnicodeWord) || [];
2225
- }
2226
-
2227
- var _unicodeWords = unicodeWords;
2228
-
2229
- /**
2230
- * Splits `string` into an array of its words.
2231
- *
2232
- * @static
2233
- * @memberOf _
2234
- * @since 3.0.0
2235
- * @category String
2236
- * @param {string} [string=''] The string to inspect.
2237
- * @param {RegExp|string} [pattern] The pattern to match words.
2238
- * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
2239
- * @returns {Array} Returns the words of `string`.
2240
- * @example
2241
- *
2242
- * _.words('fred, barney, & pebbles');
2243
- * // => ['fred', 'barney', 'pebbles']
2244
- *
2245
- * _.words('fred, barney, & pebbles', /[^, ]+/g);
2246
- * // => ['fred', 'barney', '&', 'pebbles']
2247
- */
2248
- function words(string, pattern, guard) {
2249
- string = toString_1(string);
2250
- pattern = guard ? undefined : pattern;
2251
-
2252
- if (pattern === undefined) {
2253
- return _hasUnicodeWord(string) ? _unicodeWords(string) : _asciiWords(string);
2254
- }
2255
- return string.match(pattern) || [];
2256
- }
2257
-
2258
- var words_1 = words;
2259
-
2260
- /** Used to compose unicode capture groups. */
2261
- var rsApos = "['\u2019]";
2262
-
2263
- /** Used to match apostrophes. */
2264
- var reApos = RegExp(rsApos, 'g');
2265
-
2266
- /**
2267
- * Creates a function like `_.camelCase`.
2268
- *
2269
- * @private
2270
- * @param {Function} callback The function to combine each word.
2271
- * @returns {Function} Returns the new compounder function.
2272
- */
2273
- function createCompounder(callback) {
2274
- return function(string) {
2275
- return _arrayReduce(words_1(deburr_1(string).replace(reApos, '')), callback, '');
2276
- };
2277
- }
2278
-
2279
- var _createCompounder = createCompounder;
24
+ var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
25
+ var _getClassName__default = /*#__PURE__*/_interopDefaultLegacy(_getClassName);
26
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
27
+ var _slicedToArray__default = /*#__PURE__*/_interopDefaultLegacy(_slicedToArray);
2280
28
 
2281
29
  var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
2282
30
  var sharePageUrl = canUseDOM && window.location.href;
@@ -2309,10 +57,10 @@ var clientWidths = {
2309
57
  tablet: 1024
2310
58
  };
2311
59
  var clientWidth = function clientWidth(device) {
2312
- var foundDeviceWidth = get_1(clientWidths, device);
60
+ var foundDeviceWidth = lodash.get(clientWidths, device);
2313
61
 
2314
62
  if (foundDeviceWidth) {
2315
- return get_1(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
63
+ return lodash.get(global, "document.documentElement.clientWidth") <= foundDeviceWidth;
2316
64
  }
2317
65
 
2318
66
  return false;
@@ -2342,7 +90,7 @@ var getSlug = function getSlug(collection) {
2342
90
  var isSection = collection.template === "section";
2343
91
 
2344
92
  if (isSection) {
2345
- var sectionId = get_1(collection, ["metadata", "section", "0", "id"], "");
93
+ var sectionId = lodash.get(collection, ["metadata", "section", "0", "id"], "");
2346
94
  var sections = config.sections;
2347
95
  var section = sections && sections.find(function (section) {
2348
96
  return section.id === sectionId;
@@ -2391,161 +139,6 @@ var generateNavigateSlug = function generateNavigateSlug() {
2391
139
  return "/";
2392
140
  };
2393
141
 
2394
- function _defineProperty(obj, key, value) {
2395
- if (key in obj) {
2396
- Object.defineProperty(obj, key, {
2397
- value: value,
2398
- enumerable: true,
2399
- configurable: true,
2400
- writable: true
2401
- });
2402
- } else {
2403
- obj[key] = value;
2404
- }
2405
-
2406
- return obj;
2407
- }
2408
-
2409
- var optionsDefaults_1 = createCommonjsModule(function (module, exports) {
2410
-
2411
- Object.defineProperty(exports, "__esModule", {
2412
- value: true
2413
- });
2414
- exports["default"] = void 0;
2415
- var optionsDefaults = {
2416
- attributeNames: {
2417
- styleName: 'className'
2418
- },
2419
- generateScopedName: '[path]___[name]__[local]___[hash:base64:5]',
2420
- handleMissingStyleName: 'throw'
2421
- };
2422
- var _default = optionsDefaults;
2423
- exports["default"] = _default;
2424
-
2425
-
2426
- });
2427
-
2428
- var getClassName = createCommonjsModule(function (module, exports) {
2429
-
2430
- Object.defineProperty(exports, "__esModule", {
2431
- value: true
2432
- });
2433
- exports["default"] = void 0;
2434
-
2435
- var _optionsDefaults = _interopRequireDefault(optionsDefaults_1);
2436
-
2437
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
2438
-
2439
- var isNamespacedStyleName = function isNamespacedStyleName(styleName) {
2440
- return styleName.indexOf('.') !== -1;
2441
- };
2442
-
2443
- var handleError = function handleError(message, handleMissingStyleName) {
2444
- if (handleMissingStyleName === 'throw') {
2445
- throw new Error(message);
2446
- } else if (handleMissingStyleName === 'warn') {
2447
- // eslint-disable-next-line no-console
2448
- console.warn(message);
2449
- }
2450
-
2451
- return null;
2452
- };
2453
-
2454
- var getClassNameForNamespacedStyleName = function getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
2455
- // Note:
2456
- // Do not use the desctructing syntax with Babel.
2457
- // Desctructing adds _slicedToArray helper.
2458
- var styleNameParts = styleName.split('.');
2459
- var importName = styleNameParts[0];
2460
- var moduleName = styleNameParts[1];
2461
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
2462
-
2463
- if (!moduleName) {
2464
- return handleError('Invalid style name: ' + styleName, handleMissingStyleName);
2465
- }
2466
-
2467
- if (!styleModuleImportMap[importName]) {
2468
- return handleError('CSS module import does not exist: ' + importName, handleMissingStyleName);
2469
- }
2470
-
2471
- if (!styleModuleImportMap[importName][moduleName]) {
2472
- return handleError('CSS module does not exist: ' + moduleName, handleMissingStyleName);
2473
- }
2474
-
2475
- return styleModuleImportMap[importName][moduleName];
2476
- };
2477
-
2478
- var getClassNameFromMultipleImports = function getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleNameOption) {
2479
- var handleMissingStyleName = handleMissingStyleNameOption || _optionsDefaults["default"].handleMissingStyleName;
2480
- var importKeysWithMatches = Object.keys(styleModuleImportMap).map(function (importKey) {
2481
- return styleModuleImportMap[importKey][styleName] && importKey;
2482
- }).filter(function (importKey) {
2483
- return importKey;
2484
- });
2485
-
2486
- if (importKeysWithMatches.length > 1) {
2487
- 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');
2488
- }
2489
-
2490
- if (importKeysWithMatches.length === 0) {
2491
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
2492
- }
2493
-
2494
- return styleModuleImportMap[importKeysWithMatches[0]][styleName];
2495
- };
2496
-
2497
- var _default = function _default(styleNameValue, styleModuleImportMap, options) {
2498
- var styleModuleImportMapKeys = Object.keys(styleModuleImportMap);
2499
-
2500
- var _ref = options || {},
2501
- _ref$handleMissingSty = _ref.handleMissingStyleName,
2502
- handleMissingStyleName = _ref$handleMissingSty === void 0 ? _optionsDefaults["default"].handleMissingStyleName : _ref$handleMissingSty,
2503
- _ref$autoResolveMulti = _ref.autoResolveMultipleImports,
2504
- autoResolveMultipleImports = _ref$autoResolveMulti === void 0 ? _optionsDefaults["default"].autoResolveMultipleImports : _ref$autoResolveMulti;
2505
-
2506
- if (!styleNameValue) {
2507
- return '';
2508
- }
2509
-
2510
- return styleNameValue.split(' ').filter(function (styleName) {
2511
- return styleName;
2512
- }).map(function (styleName) {
2513
- if (isNamespacedStyleName(styleName)) {
2514
- return getClassNameForNamespacedStyleName(styleName, styleModuleImportMap, handleMissingStyleName);
2515
- }
2516
-
2517
- if (styleModuleImportMapKeys.length === 0) {
2518
- throw new Error('Cannot use styleName attribute for style name \'' + styleName + '\' without importing at least one stylesheet.');
2519
- }
2520
-
2521
- if (styleModuleImportMapKeys.length > 1) {
2522
- if (!autoResolveMultipleImports) {
2523
- throw new Error('Cannot use anonymous style name \'' + styleName + '\' with more than one stylesheet import without setting \'autoResolveMultipleImports\' to true.');
2524
- }
2525
-
2526
- return getClassNameFromMultipleImports(styleName, styleModuleImportMap, handleMissingStyleName);
2527
- }
2528
-
2529
- var styleModuleMap = styleModuleImportMap[styleModuleImportMapKeys[0]];
2530
-
2531
- if (!styleModuleMap[styleName]) {
2532
- return handleError('Could not resolve the styleName \'' + styleName + '\'.', handleMissingStyleName);
2533
- }
2534
-
2535
- return styleModuleMap[styleName];
2536
- }).filter(function (className) {
2537
- // Remove any styles which could not be found (if handleMissingStyleName === 'ignore')
2538
- return className;
2539
- }).join(' ');
2540
- };
2541
-
2542
- exports["default"] = _default;
2543
-
2544
-
2545
- });
2546
-
2547
- var _getClassName = /*@__PURE__*/getDefaultExportFromCjs(getClassName);
2548
-
2549
142
  var _styleModuleImportMap$4 = {
2550
143
  "./load-more.m.css": {
2551
144
  "button": "load-more-m_button__1mmf1",
@@ -2557,7 +150,7 @@ var _styleModuleImportMap$4 = {
2557
150
 
2558
151
  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; }
2559
152
 
2560
- 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; }
153
+ 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; }
2561
154
  var LoadmoreButton = function LoadmoreButton(_ref) {
2562
155
  var _ref$config = _ref.config,
2563
156
  config = _ref$config === void 0 ? {} : _ref$config,
@@ -2581,14 +174,14 @@ var LoadmoreButton = function LoadmoreButton(_ref) {
2581
174
  return template === "SubsequentLoadCount" ? /*#__PURE__*/React__default["default"].createElement("div", {
2582
175
  onClick: onClick,
2583
176
  "data-test-id": "load-more",
2584
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$4)
177
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$4)
2585
178
  }, buttonText) : /*#__PURE__*/React__default["default"].createElement(components.LinkBase, {
2586
179
  href: slug,
2587
180
  navigateTo: navigate,
2588
181
  "data-test-id": "load-more",
2589
182
  "aria-label": "load-more"
2590
183
  }, /*#__PURE__*/React__default["default"].createElement("div", {
2591
- className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap$4)
184
+ className: "arr--button " + _getClassName__default["default"]("button ".concat(textColor, " default"), _styleModuleImportMap$4)
2592
185
  }, buttonText));
2593
186
  };
2594
187
  LoadmoreButton.propTypes = {
@@ -2640,7 +233,7 @@ var authorWithImage = function authorWithImage(author, templateStyle) {
2640
233
  name = author.name;
2641
234
  return /*#__PURE__*/React__default["default"].createElement("div", {
2642
235
  "data-test-id": "author-image",
2643
- className: "arr--author-image " + _getClassName("author-image ".concat(templateStyle), _styleModuleImportMap$3)
236
+ className: "arr--author-image " + _getClassName__default["default"]("author-image ".concat(templateStyle), _styleModuleImportMap$3)
2644
237
  }, /*#__PURE__*/React__default["default"].createElement("figure", {
2645
238
  className: "author-image-m_image-container__19WNd"
2646
239
  }, avatarS3Key ? /*#__PURE__*/React__default["default"].createElement(components.ResponsiveImage, {
@@ -2684,85 +277,6 @@ AuthorImage.propTypes = {
2684
277
  template: PropTypes__default["default"].string
2685
278
  };
2686
279
 
2687
- function _extends() {
2688
- _extends = Object.assign || function (target) {
2689
- for (var i = 1; i < arguments.length; i++) {
2690
- var source = arguments[i];
2691
-
2692
- for (var key in source) {
2693
- if (Object.prototype.hasOwnProperty.call(source, key)) {
2694
- target[key] = source[key];
2695
- }
2696
- }
2697
- }
2698
-
2699
- return target;
2700
- };
2701
-
2702
- return _extends.apply(this, arguments);
2703
- }
2704
-
2705
- function _arrayWithHoles(arr) {
2706
- if (Array.isArray(arr)) return arr;
2707
- }
2708
-
2709
- function _iterableToArrayLimit(arr, i) {
2710
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
2711
-
2712
- if (_i == null) return;
2713
- var _arr = [];
2714
- var _n = true;
2715
- var _d = false;
2716
-
2717
- var _s, _e;
2718
-
2719
- try {
2720
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
2721
- _arr.push(_s.value);
2722
-
2723
- if (i && _arr.length === i) break;
2724
- }
2725
- } catch (err) {
2726
- _d = true;
2727
- _e = err;
2728
- } finally {
2729
- try {
2730
- if (!_n && _i["return"] != null) _i["return"]();
2731
- } finally {
2732
- if (_d) throw _e;
2733
- }
2734
- }
2735
-
2736
- return _arr;
2737
- }
2738
-
2739
- function _arrayLikeToArray(arr, len) {
2740
- if (len == null || len > arr.length) len = arr.length;
2741
-
2742
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
2743
- arr2[i] = arr[i];
2744
- }
2745
-
2746
- return arr2;
2747
- }
2748
-
2749
- function _unsupportedIterableToArray(o, minLen) {
2750
- if (!o) return;
2751
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
2752
- var n = Object.prototype.toString.call(o).slice(8, -1);
2753
- if (n === "Object" && o.constructor) n = o.constructor.name;
2754
- if (n === "Map" || n === "Set") return Array.from(o);
2755
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
2756
- }
2757
-
2758
- function _nonIterableRest() {
2759
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2760
- }
2761
-
2762
- function _slicedToArray(arr, i) {
2763
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
2764
- }
2765
-
2766
280
  var Twitter = function Twitter(_ref) {
2767
281
  var _ref$color = _ref.color,
2768
282
  color = _ref$color === void 0 ? "#1CB7EB" : _ref$color;
@@ -2997,7 +511,7 @@ var SocialSharePopup = function SocialSharePopup(_ref) {
2997
511
  };
2998
512
  var popupItemsList = socialShareData(options);
2999
513
  return /*#__PURE__*/React__default["default"].createElement("div", {
3000
- className: _getClassName("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$2)
514
+ className: _getClassName__default["default"]("share-popup-wrapper ".concat(textColor), _styleModuleImportMap$2)
3001
515
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3002
516
  className: "social-share-popup-m_share-popup__QRt3l social-share-popup-m_share-popup-wrapper__GEJqD"
3003
517
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3050,249 +564,6 @@ ShareIcon.propTypes = {
3050
564
  color: PropTypes__default["default"].string
3051
565
  };
3052
566
 
3053
- /**
3054
- * The base implementation of `_.slice` without an iteratee call guard.
3055
- *
3056
- * @private
3057
- * @param {Array} array The array to slice.
3058
- * @param {number} [start=0] The start position.
3059
- * @param {number} [end=array.length] The end position.
3060
- * @returns {Array} Returns the slice of `array`.
3061
- */
3062
- function baseSlice(array, start, end) {
3063
- var index = -1,
3064
- length = array.length;
3065
-
3066
- if (start < 0) {
3067
- start = -start > length ? 0 : (length + start);
3068
- }
3069
- end = end > length ? length : end;
3070
- if (end < 0) {
3071
- end += length;
3072
- }
3073
- length = start > end ? 0 : ((end - start) >>> 0);
3074
- start >>>= 0;
3075
-
3076
- var result = Array(length);
3077
- while (++index < length) {
3078
- result[index] = array[index + start];
3079
- }
3080
- return result;
3081
- }
3082
-
3083
- var _baseSlice = baseSlice;
3084
-
3085
- /**
3086
- * Casts `array` to a slice if it's needed.
3087
- *
3088
- * @private
3089
- * @param {Array} array The array to inspect.
3090
- * @param {number} start The start position.
3091
- * @param {number} [end=array.length] The end position.
3092
- * @returns {Array} Returns the cast slice.
3093
- */
3094
- function castSlice(array, start, end) {
3095
- var length = array.length;
3096
- end = end === undefined ? length : end;
3097
- return (!start && end >= length) ? array : _baseSlice(array, start, end);
3098
- }
3099
-
3100
- var _castSlice = castSlice;
3101
-
3102
- /** Used to compose unicode character classes. */
3103
- var rsAstralRange$1 = '\\ud800-\\udfff',
3104
- rsComboMarksRange$1 = '\\u0300-\\u036f',
3105
- reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f',
3106
- rsComboSymbolsRange$1 = '\\u20d0-\\u20ff',
3107
- rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1,
3108
- rsVarRange$1 = '\\ufe0e\\ufe0f';
3109
-
3110
- /** Used to compose unicode capture groups. */
3111
- var rsZWJ$1 = '\\u200d';
3112
-
3113
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
3114
- var reHasUnicode = RegExp('[' + rsZWJ$1 + rsAstralRange$1 + rsComboRange$1 + rsVarRange$1 + ']');
3115
-
3116
- /**
3117
- * Checks if `string` contains Unicode symbols.
3118
- *
3119
- * @private
3120
- * @param {string} string The string to inspect.
3121
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
3122
- */
3123
- function hasUnicode(string) {
3124
- return reHasUnicode.test(string);
3125
- }
3126
-
3127
- var _hasUnicode = hasUnicode;
3128
-
3129
- /**
3130
- * Converts an ASCII `string` to an array.
3131
- *
3132
- * @private
3133
- * @param {string} string The string to convert.
3134
- * @returns {Array} Returns the converted array.
3135
- */
3136
- function asciiToArray(string) {
3137
- return string.split('');
3138
- }
3139
-
3140
- var _asciiToArray = asciiToArray;
3141
-
3142
- /** Used to compose unicode character classes. */
3143
- var rsAstralRange = '\\ud800-\\udfff',
3144
- rsComboMarksRange = '\\u0300-\\u036f',
3145
- reComboHalfMarksRange = '\\ufe20-\\ufe2f',
3146
- rsComboSymbolsRange = '\\u20d0-\\u20ff',
3147
- rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
3148
- rsVarRange = '\\ufe0e\\ufe0f';
3149
-
3150
- /** Used to compose unicode capture groups. */
3151
- var rsAstral = '[' + rsAstralRange + ']',
3152
- rsCombo = '[' + rsComboRange + ']',
3153
- rsFitz = '\\ud83c[\\udffb-\\udfff]',
3154
- rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',
3155
- rsNonAstral = '[^' + rsAstralRange + ']',
3156
- rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}',
3157
- rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]',
3158
- rsZWJ = '\\u200d';
3159
-
3160
- /** Used to compose unicode regexes. */
3161
- var reOptMod = rsModifier + '?',
3162
- rsOptVar = '[' + rsVarRange + ']?',
3163
- rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
3164
- rsSeq = rsOptVar + reOptMod + rsOptJoin,
3165
- rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
3166
-
3167
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
3168
- var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');
3169
-
3170
- /**
3171
- * Converts a Unicode `string` to an array.
3172
- *
3173
- * @private
3174
- * @param {string} string The string to convert.
3175
- * @returns {Array} Returns the converted array.
3176
- */
3177
- function unicodeToArray(string) {
3178
- return string.match(reUnicode) || [];
3179
- }
3180
-
3181
- var _unicodeToArray = unicodeToArray;
3182
-
3183
- /**
3184
- * Converts `string` to an array.
3185
- *
3186
- * @private
3187
- * @param {string} string The string to convert.
3188
- * @returns {Array} Returns the converted array.
3189
- */
3190
- function stringToArray(string) {
3191
- return _hasUnicode(string)
3192
- ? _unicodeToArray(string)
3193
- : _asciiToArray(string);
3194
- }
3195
-
3196
- var _stringToArray = stringToArray;
3197
-
3198
- /**
3199
- * Creates a function like `_.lowerFirst`.
3200
- *
3201
- * @private
3202
- * @param {string} methodName The name of the `String` case method to use.
3203
- * @returns {Function} Returns the new case function.
3204
- */
3205
- function createCaseFirst(methodName) {
3206
- return function(string) {
3207
- string = toString_1(string);
3208
-
3209
- var strSymbols = _hasUnicode(string)
3210
- ? _stringToArray(string)
3211
- : undefined;
3212
-
3213
- var chr = strSymbols
3214
- ? strSymbols[0]
3215
- : string.charAt(0);
3216
-
3217
- var trailing = strSymbols
3218
- ? _castSlice(strSymbols, 1).join('')
3219
- : string.slice(1);
3220
-
3221
- return chr[methodName]() + trailing;
3222
- };
3223
- }
3224
-
3225
- var _createCaseFirst = createCaseFirst;
3226
-
3227
- /**
3228
- * Converts the first character of `string` to upper case.
3229
- *
3230
- * @static
3231
- * @memberOf _
3232
- * @since 4.0.0
3233
- * @category String
3234
- * @param {string} [string=''] The string to convert.
3235
- * @returns {string} Returns the converted string.
3236
- * @example
3237
- *
3238
- * _.upperFirst('fred');
3239
- * // => 'Fred'
3240
- *
3241
- * _.upperFirst('FRED');
3242
- * // => 'FRED'
3243
- */
3244
- var upperFirst = _createCaseFirst('toUpperCase');
3245
-
3246
- var upperFirst_1 = upperFirst;
3247
-
3248
- /**
3249
- * Converts the first character of `string` to upper case and the remaining
3250
- * to lower case.
3251
- *
3252
- * @static
3253
- * @memberOf _
3254
- * @since 3.0.0
3255
- * @category String
3256
- * @param {string} [string=''] The string to capitalize.
3257
- * @returns {string} Returns the capitalized string.
3258
- * @example
3259
- *
3260
- * _.capitalize('FRED');
3261
- * // => 'Fred'
3262
- */
3263
- function capitalize(string) {
3264
- return upperFirst_1(toString_1(string).toLowerCase());
3265
- }
3266
-
3267
- var capitalize_1 = capitalize;
3268
-
3269
- /**
3270
- * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
3271
- *
3272
- * @static
3273
- * @memberOf _
3274
- * @since 3.0.0
3275
- * @category String
3276
- * @param {string} [string=''] The string to convert.
3277
- * @returns {string} Returns the camel cased string.
3278
- * @example
3279
- *
3280
- * _.camelCase('Foo Bar');
3281
- * // => 'fooBar'
3282
- *
3283
- * _.camelCase('--foo-bar--');
3284
- * // => 'fooBar'
3285
- *
3286
- * _.camelCase('__FOO_BAR__');
3287
- * // => 'fooBar'
3288
- */
3289
- var camelCase = _createCompounder(function(result, word, index) {
3290
- word = word.toLowerCase();
3291
- return result + (index ? capitalize_1(word) : word);
3292
- });
3293
-
3294
- var camelCase_1 = camelCase;
3295
-
3296
567
  var _styleModuleImportMap$1 = {
3297
568
  "./social-share-template.m.css": {
3298
569
  "desktop-view": "social-share-template-m_desktop-view__3TmkO",
@@ -3374,7 +645,7 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
3374
645
  var iconsList = socialShareData(options);
3375
646
 
3376
647
  var _useState = React.useState(open),
3377
- _useState2 = _slicedToArray(_useState, 2),
648
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
3378
649
  isOpen = _useState2[0],
3379
650
  setIsOpen = _useState2[1];
3380
651
 
@@ -3400,12 +671,12 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
3400
671
  return /*#__PURE__*/React__default["default"].createElement("div", {
3401
672
  className: "social-share-template-m_tablet-view__kATzi"
3402
673
  }, !isOpen && /*#__PURE__*/React__default["default"].createElement("ul", {
3403
- className: _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$1)
674
+ className: _getClassName__default["default"]("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$1)
3404
675
  }, shareIcon()), isOpen && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3405
676
  className: "social-share-template-m_overlay__1nBp-",
3406
677
  onClick: clickHandler
3407
678
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3408
- className: "arr--popup " + _getClassName("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap$1)
679
+ className: "arr--popup " + _getClassName__default["default"]("popup-wrapper ".concat(isOpen ? "popup-open" : ""), _styleModuleImportMap$1)
3409
680
  }, /*#__PURE__*/React__default["default"].createElement(SocialSharePopup, {
3410
681
  fbUrl: fbUrl,
3411
682
  twitterUrl: twitterUrl,
@@ -3422,14 +693,14 @@ var SocialShareTemplate = function SocialShareTemplate(props) {
3422
693
  var popupStyle = !isOpen && vertical ? "tablet-view-popup" : "";
3423
694
  return /*#__PURE__*/React__default["default"].createElement("div", {
3424
695
  "data-test-id": verticalShare,
3425
- className: "arr--share " + _getClassName("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap$1)
696
+ className: "arr--share " + _getClassName__default["default"]("".concat(iconShade, " ").concat(verticalShare, " ").concat(popupStyle), _styleModuleImportMap$1)
3426
697
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3427
698
  className: "social-share-template-m_desktop-view__3TmkO"
3428
699
  }, /*#__PURE__*/React__default["default"].createElement("ul", {
3429
- "data-test-id": camelCase_1(iconType),
3430
- className: "desktop-share-wrapper " + _getClassName("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$1)
700
+ "data-test-id": lodash.camelCase(iconType),
701
+ className: "desktop-share-wrapper " + _getClassName__default["default"]("wrapper ".concat(isOpen ? "open" : ""), _styleModuleImportMap$1)
3431
702
  }, shareIcon(), iconsList.map(function (iconData, index) {
3432
- return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends({}, iconData, {
703
+ return /*#__PURE__*/React__default["default"].createElement(ShareItem, _extends__default["default"]({}, iconData, {
3433
704
  key: iconData.name,
3434
705
  dataTestId: "card-share-".concat(index)
3435
706
  }));
@@ -3591,16 +862,16 @@ var AuthorIntroductionCard = function AuthorIntroductionCard(_ref) {
3591
862
  backgroundColor: theme,
3592
863
  color: textColor
3593
864
  },
3594
- className: ("".concat(isFullWidth, " arrow-component arr--author-intro-card") ? "".concat(isFullWidth, " arrow-component arr--author-intro-card") + " " : "") + _getClassName("".concat(authorCardStyle, " ").concat(supportBorder, " ").concat(textColor), _styleModuleImportMap)
865
+ className: ("".concat(isFullWidth, " arrow-component arr--author-intro-card") ? "".concat(isFullWidth, " arrow-component arr--author-intro-card") + " " : "") + _getClassName__default["default"]("".concat(authorCardStyle, " ").concat(supportBorder, " ").concat(textColor), _styleModuleImportMap)
3595
866
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3596
- className: "arrow-author-intro-wrapper " + _getClassName("wrapper ".concat(textColor), _styleModuleImportMap)
867
+ className: "arrow-author-intro-wrapper " + _getClassName__default["default"]("wrapper ".concat(textColor), _styleModuleImportMap)
3597
868
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3598
869
  className: "arrow-author-introduction-card author-intro-m_introduction-card__1kdGt"
3599
870
  }, isSmallCircle && isMobile ? null : /*#__PURE__*/React__default["default"].createElement("h2", {
3600
- className: _getClassName("author-name ".concat(textColor), _styleModuleImportMap)
871
+ className: _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap)
3601
872
  }, name), enableBio && bio && /*#__PURE__*/React__default["default"].createElement("div", {
3602
873
  "data-test-id": "author-bio",
3603
- className: _getClassName("author-description ".concat(textColor), _styleModuleImportMap)
874
+ className: _getClassName__default["default"]("author-description ".concat(textColor), _styleModuleImportMap)
3604
875
  }, bio, isSmallCircle && /*#__PURE__*/React__default["default"].createElement("div", {
3605
876
  className: "author-intro-m_fade-out__1EBqd",
3606
877
  style: {
@@ -3611,7 +882,7 @@ var AuthorIntroductionCard = function AuthorIntroductionCard(_ref) {
3611
882
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3612
883
  className: "author-intro-m_social-connect-wrapper__2B0QA"
3613
884
  }, enableSocialLinks && social && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, template !== "smallCircle" && /*#__PURE__*/React__default["default"].createElement("div", {
3614
- className: _getClassName("connect ".concat(textColor), _styleModuleImportMap)
885
+ className: _getClassName__default["default"]("connect ".concat(textColor), _styleModuleImportMap)
3615
886
  }, "Connect :"), Object.entries(social).map(function (item, index) {
3616
887
  return item.length > 0 && item[1] ? // can add Social Networks without the url so adding an additional check below
3617
888
  item[1].url ? /*#__PURE__*/React__default["default"].createElement("a", {
@@ -3634,7 +905,7 @@ var AuthorIntroductionCard = function AuthorIntroductionCard(_ref) {
3634
905
  author: data,
3635
906
  template: template
3636
907
  }), isSmallCircle && isMobile && /*#__PURE__*/React__default["default"].createElement("h2", {
3637
- className: _getClassName("author-name ".concat(textColor), _styleModuleImportMap)
908
+ className: _getClassName__default["default"]("author-name ".concat(textColor), _styleModuleImportMap)
3638
909
  }, name))));
3639
910
  };
3640
911
  AuthorIntroductionCard.propTypes = {
@@ -3680,7 +951,7 @@ var AuthorsListBase = function AuthorsListBase(_ref) {
3680
951
  var textColor = getTextColor(theme);
3681
952
  var mountAt = config.mountAt || "";
3682
953
  var qtConfig = reactRedux.useSelector(function (state) {
3683
- return get_1(state, ["qt", "config"], {});
954
+ return lodash.get(state, ["qt", "config"], {});
3684
955
  });
3685
956
  return /*#__PURE__*/React__default["default"].createElement("div", {
3686
957
  "data-test-id": "authors-list",