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

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