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

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