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

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