@arc-ui/components 12.0.0-alpha.0 → 12.0.0-beta.10

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 (739) hide show
  1. package/dist/Alert/Alert.cjs.js +9 -14
  2. package/dist/Alert/Alert.esm.js +8 -13
  3. package/dist/Alert/styles.css +1 -0
  4. package/dist/Align/Align.cjs.js +6 -7
  5. package/dist/Align/Align.esm.js +1 -2
  6. package/dist/Align/styles.css +1 -0
  7. package/dist/AppButton/AppButton.cjs.js +74 -0
  8. package/dist/AppButton/AppButton.esm.js +66 -0
  9. package/dist/AppButton/package.json +7 -0
  10. package/dist/AppButton/styles.css +1 -0
  11. package/dist/Avatar/Avatar.cjs.js +17 -0
  12. package/dist/Avatar/Avatar.esm.js +9 -0
  13. package/dist/Avatar/package.json +7 -0
  14. package/dist/Avatar/styles.css +1 -0
  15. package/dist/AvatarGroup/AvatarGroup.cjs.js +37 -0
  16. package/dist/AvatarGroup/AvatarGroup.esm.js +29 -0
  17. package/dist/AvatarGroup/package.json +7 -0
  18. package/dist/AvatarGroup/styles.css +1 -0
  19. package/dist/Badge/Badge.cjs.js +5 -28
  20. package/dist/Badge/Badge.esm.js +4 -27
  21. package/dist/Badge/styles.css +1 -0
  22. package/dist/Banner/Banner.cjs.js +21 -0
  23. package/dist/Banner/Banner.esm.js +13 -0
  24. package/dist/Banner/package.json +7 -0
  25. package/dist/Banner/styles.css +1 -0
  26. package/dist/BannerWithTabs/BannerWithTabs.cjs.js +62 -0
  27. package/dist/BannerWithTabs/BannerWithTabs.esm.js +54 -0
  28. package/dist/BannerWithTabs/package.json +7 -0
  29. package/dist/BannerWithTabs/styles.css +1 -0
  30. package/dist/Box/Box.cjs.js +6 -25
  31. package/dist/Box/Box.esm.js +5 -24
  32. package/dist/Box/styles.css +1 -0
  33. package/dist/BrandLogo/BrandLogo.cjs.js +3 -4
  34. package/dist/BrandLogo/BrandLogo.esm.js +3 -4
  35. package/dist/BrandLogo/styles.css +1 -0
  36. package/dist/Breadcrumbs/Breadcrumbs.cjs.js +7 -6
  37. package/dist/Breadcrumbs/Breadcrumbs.esm.js +7 -6
  38. package/dist/Breadcrumbs/styles.css +1 -0
  39. package/dist/Button/Button.cjs.js +5 -6
  40. package/dist/Button/Button.esm.js +5 -6
  41. package/dist/Button/styles.css +1 -0
  42. package/dist/ButtonV2/ButtonV2.cjs.js +15 -0
  43. package/dist/ButtonV2/ButtonV2.esm.js +7 -0
  44. package/dist/ButtonV2/package.json +7 -0
  45. package/dist/ButtonV2/styles.css +1 -0
  46. package/dist/Calendar/Calendar.cjs.js +21 -0
  47. package/dist/Calendar/Calendar.esm.js +13 -0
  48. package/dist/Calendar/package.json +7 -0
  49. package/dist/Calendar/styles.css +1 -0
  50. package/dist/CardFooter/CardFooter.cjs.js +17 -0
  51. package/dist/CardFooter/CardFooter.esm.js +9 -0
  52. package/dist/CardFooter/package.json +7 -0
  53. package/dist/CardFooter/styles.css +1 -0
  54. package/dist/CardHeading/CardHeading.cjs.js +14 -0
  55. package/dist/CardHeading/CardHeading.esm.js +6 -0
  56. package/dist/CardHeading/package.json +7 -0
  57. package/dist/CardHeading/styles.css +1 -0
  58. package/dist/Carousel/Carousel.cjs.js +1921 -0
  59. package/dist/Carousel/Carousel.esm.js +1913 -0
  60. package/dist/Carousel/package.json +7 -0
  61. package/dist/Carousel/styles.css +1 -0
  62. package/dist/Checkbox/Checkbox.cjs.js +8 -8
  63. package/dist/Checkbox/Checkbox.esm.js +8 -8
  64. package/dist/Checkbox/styles.css +1 -0
  65. package/dist/Columns/Columns.cjs.js +2 -3
  66. package/dist/Columns/Columns.esm.js +2 -3
  67. package/dist/Columns/styles.css +1 -0
  68. package/dist/ConditionalWrapper/ConditionalWrapper.cjs.js +10 -0
  69. package/dist/ConditionalWrapper/ConditionalWrapper.esm.js +2 -0
  70. package/dist/ConditionalWrapper/package.json +7 -0
  71. package/dist/ContentSwitcher/ContentSwitcher.cjs.js +20 -0
  72. package/dist/ContentSwitcher/ContentSwitcher.esm.js +12 -0
  73. package/dist/ContentSwitcher/package.json +7 -0
  74. package/dist/ContentSwitcher/styles.css +1 -0
  75. package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.cjs.js +23 -0
  76. package/dist/ContentSwitcherDropdown/ContentSwitcherDropdown.esm.js +15 -0
  77. package/dist/ContentSwitcherDropdown/package.json +7 -0
  78. package/dist/ContentSwitcherDropdown/styles.css +1 -0
  79. package/dist/DatePicker/DatePicker.cjs.js +36 -0
  80. package/dist/DatePicker/DatePicker.esm.js +23 -0
  81. package/dist/DatePicker/package.json +7 -0
  82. package/dist/DatePicker/styles.css +1 -0
  83. package/dist/Disclosure/Disclosure.cjs.js +13 -11
  84. package/dist/Disclosure/Disclosure.esm.js +11 -9
  85. package/dist/Disclosure/styles.css +1 -0
  86. package/dist/DisclosureMini/DisclosureMini.cjs.js +5 -6
  87. package/dist/DisclosureMini/DisclosureMini.esm.js +5 -6
  88. package/dist/DisclosureMini/styles.css +1 -0
  89. package/dist/Download/Download.cjs.js +16 -0
  90. package/dist/Download/Download.esm.js +8 -0
  91. package/dist/Download/package.json +7 -0
  92. package/dist/Download/styles.css +1 -0
  93. package/dist/Elevation/Elevation.cjs.js +4 -4
  94. package/dist/Elevation/Elevation.esm.js +1 -1
  95. package/dist/Elevation/styles.css +1 -0
  96. package/dist/Filter/Filter.cjs.js +4 -3
  97. package/dist/Filter/Filter.esm.js +4 -3
  98. package/dist/Filter/styles.css +1 -0
  99. package/dist/FormControl/FormControl.cjs.js +7 -7
  100. package/dist/FormControl/FormControl.esm.js +7 -7
  101. package/dist/FormControl/styles.css +1 -0
  102. package/dist/Grid/Grid.cjs.js +12 -0
  103. package/dist/Grid/Grid.esm.js +4 -0
  104. package/dist/Grid/package.json +7 -0
  105. package/dist/Grid/styles.css +1 -0
  106. package/dist/Group/Group.cjs.js +3 -3
  107. package/dist/Group/Group.esm.js +3 -3
  108. package/dist/Group/styles.css +1 -0
  109. package/dist/Heading/Heading.cjs.js +3 -4
  110. package/dist/Heading/Heading.esm.js +3 -4
  111. package/dist/Heading/styles.css +1 -0
  112. package/dist/HeroBanner/HeroBanner.cjs.js +28 -0
  113. package/dist/HeroBanner/HeroBanner.esm.js +20 -0
  114. package/dist/HeroBanner/package.json +7 -0
  115. package/dist/HeroButton/HeroButton.cjs.js +15 -0
  116. package/dist/HeroButton/HeroButton.esm.js +7 -0
  117. package/dist/HeroButton/package.json +7 -0
  118. package/dist/HeroButton/styles.css +1 -0
  119. package/dist/Hidden/Hidden.cjs.js +24 -0
  120. package/dist/Hidden/Hidden.esm.js +16 -0
  121. package/dist/Hidden/package.json +7 -0
  122. package/dist/Hidden/styles.css +1 -0
  123. package/dist/Icon/Icon.cjs.js +3 -4
  124. package/dist/Icon/Icon.esm.js +3 -4
  125. package/dist/Icon/styles.css +1 -0
  126. package/dist/Image/Image.cjs.js +2 -3
  127. package/dist/Image/Image.esm.js +2 -3
  128. package/dist/Image/styles.css +1 -0
  129. package/dist/ImpactCard/ImpactCard.cjs.js +43 -0
  130. package/dist/ImpactCard/ImpactCard.esm.js +35 -0
  131. package/dist/ImpactCard/package.json +7 -0
  132. package/dist/ImpactCard/styles.css +1 -0
  133. package/dist/InformationCard/InformationCard.cjs.js +60 -0
  134. package/dist/InformationCard/InformationCard.esm.js +52 -0
  135. package/dist/InformationCard/package.json +7 -0
  136. package/dist/InformationCard/styles.css +1 -0
  137. package/dist/Link/Link.cjs.js +75 -0
  138. package/dist/Link/Link.esm.js +67 -0
  139. package/dist/Link/package.json +7 -0
  140. package/dist/Link/styles.css +1 -0
  141. package/dist/Markup/Markup.cjs.js +5 -5
  142. package/dist/Markup/Markup.esm.js +2 -2
  143. package/dist/Markup/styles.css +1 -0
  144. package/dist/MediaCard/MediaCard.cjs.js +26 -0
  145. package/dist/MediaCard/MediaCard.esm.js +18 -0
  146. package/dist/MediaCard/package.json +7 -0
  147. package/dist/MediaCard/styles.css +1 -0
  148. package/dist/Modal/Modal.cjs.js +341 -547
  149. package/dist/Modal/Modal.esm.js +323 -547
  150. package/dist/Modal/styles.css +1 -0
  151. package/dist/PageBanner/PageBanner.cjs.js +28 -0
  152. package/dist/PageBanner/PageBanner.esm.js +20 -0
  153. package/dist/PageBanner/package.json +7 -0
  154. package/dist/Pagination/Pagination.cjs.js +8 -12
  155. package/dist/Pagination/Pagination.esm.js +6 -10
  156. package/dist/Pagination/styles.css +1 -0
  157. package/dist/PaginationSimple/PaginationSimple.cjs.js +91 -26
  158. package/dist/PaginationSimple/PaginationSimple.esm.js +90 -25
  159. package/dist/PaginationSimple/styles.css +1 -0
  160. package/dist/Poster/Poster.cjs.js +4 -5
  161. package/dist/Poster/Poster.esm.js +4 -5
  162. package/dist/Poster/styles.css +1 -0
  163. package/dist/ProgressBar/ProgressBar.cjs.js +19 -17
  164. package/dist/ProgressBar/ProgressBar.esm.js +16 -14
  165. package/dist/ProgressBar/styles.css +1 -0
  166. package/dist/ProgressStepper/ProgressStepper.cjs.js +5 -7
  167. package/dist/ProgressStepper/ProgressStepper.esm.js +5 -7
  168. package/dist/ProgressStepper/styles.css +1 -0
  169. package/dist/RadioGroup/RadioGroup.cjs.js +9 -8
  170. package/dist/RadioGroup/RadioGroup.esm.js +8 -8
  171. package/dist/RadioGroup/styles.css +1 -0
  172. package/dist/Rule/Rule.cjs.js +14 -4
  173. package/dist/Rule/Rule.esm.js +15 -5
  174. package/dist/Rule/styles.css +1 -0
  175. package/dist/ScrollToTop/ScrollToTop.cjs.js +27 -10
  176. package/dist/ScrollToTop/ScrollToTop.esm.js +24 -7
  177. package/dist/ScrollToTop/styles.css +1 -0
  178. package/dist/Section/Section.cjs.js +2 -2
  179. package/dist/Section/Section.esm.js +2 -2
  180. package/dist/Section/styles.css +1 -0
  181. package/dist/Select/Select.cjs.js +52 -1726
  182. package/dist/Select/Select.esm.js +53 -1708
  183. package/dist/Select/styles.css +1 -0
  184. package/dist/SiteFooter/SiteFooter.cjs.js +9 -33
  185. package/dist/SiteFooter/SiteFooter.esm.js +9 -33
  186. package/dist/SiteFooter/styles.css +1 -0
  187. package/dist/SiteHeaderV2/SiteHeaderV2.cjs.js +24 -0
  188. package/dist/SiteHeaderV2/SiteHeaderV2.esm.js +16 -0
  189. package/dist/SiteHeaderV2/package.json +7 -0
  190. package/dist/SiteHeaderV2/styles.css +1 -0
  191. package/dist/SkipLink/SkipLink.cjs.js +24 -0
  192. package/dist/SkipLink/SkipLink.esm.js +16 -0
  193. package/dist/SkipLink/package.json +7 -0
  194. package/dist/SkipLink/styles.css +1 -0
  195. package/dist/Spinner/Spinner.cjs.js +12 -0
  196. package/dist/Spinner/Spinner.esm.js +4 -0
  197. package/dist/Spinner/package.json +7 -0
  198. package/dist/Spinner/styles.css +1 -0
  199. package/dist/Surface/Surface.cjs.js +2 -2
  200. package/dist/Surface/Surface.esm.js +2 -2
  201. package/dist/Surface/styles.css +1 -0
  202. package/dist/Switch/Switch.cjs.js +26 -73
  203. package/dist/Switch/Switch.esm.js +16 -63
  204. package/dist/Switch/styles.css +1 -0
  205. package/dist/Tabs/Tabs.cjs.js +9 -10
  206. package/dist/Tabs/Tabs.esm.js +9 -10
  207. package/dist/Tabs/styles.css +1 -0
  208. package/dist/Tag/Tag.cjs.js +51 -17
  209. package/dist/Tag/Tag.esm.js +50 -16
  210. package/dist/Tag/styles.css +1 -0
  211. package/dist/Text/Text.cjs.js +3 -4
  212. package/dist/Text/Text.esm.js +3 -4
  213. package/dist/Text/styles.css +1 -0
  214. package/dist/TextArea/TextArea.cjs.js +70 -45
  215. package/dist/TextArea/TextArea.esm.js +70 -45
  216. package/dist/TextArea/styles.css +1 -0
  217. package/dist/TextInput/TextInput.cjs.js +8 -9
  218. package/dist/TextInput/TextInput.esm.js +8 -9
  219. package/dist/TextInput/styles.css +1 -0
  220. package/dist/Theme/Theme.cjs.js +16 -4
  221. package/dist/Theme/Theme.esm.js +16 -4
  222. package/dist/Theme/styles.css +1 -0
  223. package/dist/ThemeIcon/ThemeIcon.cjs.js +13 -0
  224. package/dist/ThemeIcon/ThemeIcon.esm.js +5 -0
  225. package/dist/ThemeIcon/package.json +7 -0
  226. package/dist/ThemeIcon/styles.css +1 -0
  227. package/dist/Toast/Toast.cjs.js +8 -9
  228. package/dist/Toast/Toast.esm.js +8 -9
  229. package/dist/Toast/styles.css +1 -0
  230. package/dist/Truncate/Truncate.cjs.js +3 -3
  231. package/dist/Truncate/Truncate.esm.js +3 -3
  232. package/dist/Truncate/styles.css +1 -0
  233. package/dist/TypographyCard/TypographyCard.cjs.js +40 -0
  234. package/dist/TypographyCard/TypographyCard.esm.js +32 -0
  235. package/dist/TypographyCard/package.json +7 -0
  236. package/dist/TypographyCard/styles.css +1 -0
  237. package/dist/UniversalHeader/UniversalHeader.cjs.js +3 -3
  238. package/dist/UniversalHeader/UniversalHeader.esm.js +3 -3
  239. package/dist/UniversalHeader/styles.css +1 -0
  240. package/dist/VerticalSpace/VerticalSpace.cjs.js +2 -2
  241. package/dist/VerticalSpace/VerticalSpace.esm.js +2 -2
  242. package/dist/VerticalSpace/styles.css +1 -0
  243. package/dist/VideoPlayer/VideoPlayer.cjs.js +3025 -0
  244. package/dist/VideoPlayer/VideoPlayer.esm.js +3017 -0
  245. package/dist/VideoPlayer/package.json +7 -0
  246. package/dist/VideoPlayer/styles.css +1 -0
  247. package/dist/Visible/Visible.cjs.js +24 -0
  248. package/dist/Visible/Visible.esm.js +16 -0
  249. package/dist/Visible/package.json +7 -0
  250. package/dist/Visible/styles.css +1 -0
  251. package/dist/VisuallyHidden/VisuallyHidden.cjs.js +2 -1
  252. package/dist/VisuallyHidden/VisuallyHidden.esm.js +2 -1
  253. package/dist/VisuallyHidden/styles.css +1 -0
  254. package/dist/_shared/cjs/Avatar-d37e7dee.js +48 -0
  255. package/dist/_shared/cjs/Badge-e5e57c0d.js +17 -0
  256. package/dist/_shared/cjs/Banner-a28364b4.js +66 -0
  257. package/dist/_shared/cjs/Box-a8f42d4f.js +29 -0
  258. package/dist/_shared/cjs/{BrandLogo-aea340c8.js → BrandLogo-5aef900a.js} +6 -7
  259. package/dist/_shared/cjs/{Breadcrumbs-f3385e2e.js → Breadcrumbs-edf76698.js} +18 -17
  260. package/dist/_shared/cjs/BtIconArrowRight.esm-6053bb79.js +30 -0
  261. package/dist/_shared/cjs/BtIconChevronRight2Px.esm-2e4d117e.js +44 -0
  262. package/dist/_shared/cjs/BtIconChevronRightMid.esm-3e8d18a9.js +28 -0
  263. package/dist/_shared/cjs/BtIconPlayFill.esm-b8997cfc.js +30 -0
  264. package/dist/_shared/cjs/{Button-5c958ce9.js → Button-82df14c9.js} +11 -12
  265. package/dist/_shared/cjs/ButtonV2-0679b44b.js +53 -0
  266. package/dist/_shared/cjs/Calendar-d2511ee9.js +1927 -0
  267. package/dist/_shared/cjs/CardFooter-facb09e6.js +79 -0
  268. package/dist/_shared/cjs/CardHeading-a7d8d472.js +16 -0
  269. package/dist/_shared/cjs/Checkbox-d34c19c4.js +70 -0
  270. package/dist/_shared/cjs/{Columns-ae4f8cef.js → Columns-e5f9406b.js} +8 -16
  271. package/dist/_shared/cjs/Combination-06cc56d0.js +1203 -0
  272. package/dist/_shared/cjs/ConditionalWrapper-bf944594.js +14 -0
  273. package/dist/_shared/cjs/ContentSwitcher-df2381c9.js +99 -0
  274. package/dist/_shared/cjs/ContentSwitcherDropdown-91856b98.js +64 -0
  275. package/dist/_shared/cjs/DatePicker-3abcf361.js +939 -0
  276. package/dist/_shared/cjs/{DisclosureMini-145105a4.js → DisclosureMini-64a1c682.js} +10 -13
  277. package/dist/_shared/cjs/Download-45dc0d20.js +43 -0
  278. package/dist/_shared/cjs/{Filter-1bde635c.js → Filter-c93d809e.js} +32 -24
  279. package/dist/_shared/cjs/{FormControl-30f2330f.js → FormControl-09c28bbb.js} +31 -16
  280. package/dist/_shared/cjs/Grid-102905c8.js +45 -0
  281. package/dist/_shared/cjs/{Group-0429741a.js → Group-33f84a2f.js} +8 -15
  282. package/dist/_shared/cjs/{Heading-27cba320.js → Heading-b4b65724.js} +8 -8
  283. package/dist/_shared/cjs/HeroButton-db55ff2a.js +126 -0
  284. package/dist/_shared/cjs/Icon-5dd78f2b.js +47 -0
  285. package/dist/_shared/cjs/Image-bb696c61.js +55 -0
  286. package/dist/_shared/cjs/MediaCard-158890b3.js +65 -0
  287. package/dist/_shared/cjs/{Poster-499b78da.js → Poster-11d2f8af.js} +13 -14
  288. package/dist/_shared/cjs/Preview-0bf3f6e8.js +167 -0
  289. package/dist/_shared/cjs/ProgressStepper-65294193.js +97 -0
  290. package/dist/_shared/cjs/RadioGroup-4fe1c546.js +85 -0
  291. package/dist/_shared/cjs/{Section-59804166.js → Section-4415d756.js} +4 -4
  292. package/dist/_shared/cjs/{SiteFooter-0638c27c.js → SiteFooter-e741eb87.js} +13 -12
  293. package/dist/_shared/cjs/SiteHeaderV2-e0ae0718.js +654 -0
  294. package/dist/_shared/cjs/Spinner-0f578e7f.js +24 -0
  295. package/dist/_shared/cjs/Surface-ca708a8c.js +175 -0
  296. package/dist/_shared/cjs/Tabs-a587b50f.js +90 -0
  297. package/dist/_shared/cjs/{Text-606ca3a2.js → Text-1b3e4fb6.js} +7 -7
  298. package/dist/_shared/cjs/TextInput-5e533805.js +103 -0
  299. package/dist/_shared/cjs/{ThemeIcon-9534f091.js → ThemeIcon-cf6ddb34.js} +6 -7
  300. package/dist/_shared/cjs/{Toast-6d4021d7.js → Toast-e088fa5d.js} +282 -44
  301. package/dist/_shared/cjs/UniversalHeader-de415648.js +29 -0
  302. package/dist/_shared/cjs/{VerticalSpace-dc53bb70.js → VerticalSpace-a5cf4d4e.js} +8 -8
  303. package/dist/_shared/cjs/VisuallyHidden-c691ea4d.js +18 -0
  304. package/dist/_shared/cjs/_commonjsHelpers-56412ec5.js +21 -0
  305. package/dist/_shared/cjs/{index-38d3848e.js → component-aa9fcdbb.js} +154 -435
  306. package/dist/_shared/cjs/{debounce-123468fb.js → debounce-a74c28cf.js} +2 -2
  307. package/dist/_shared/cjs/floating-ui.react-dom-08b8b87c.js +1908 -0
  308. package/dist/_shared/cjs/{Tabs-ade6d6b6.js → index-1e7a1fce.js} +20 -109
  309. package/dist/_shared/cjs/index-28fbfd5b.js +2206 -0
  310. package/dist/_shared/cjs/index-2bf59363.js +44 -0
  311. package/dist/_shared/cjs/index-527f962b.js +131 -0
  312. package/dist/_shared/cjs/index-568ebc78.js +2204 -0
  313. package/dist/_shared/cjs/{index.module-7d7228b3.js → index-76f7dd53.js} +32 -34
  314. package/dist/_shared/cjs/{index-d75774a9.js → index-879e71ee.js} +8 -1
  315. package/dist/_shared/cjs/index-ba3141f5.js +72 -0
  316. package/dist/_shared/cjs/{index-23b4f49f.js → index-dbc843d3.js} +1 -1
  317. package/dist/_shared/cjs/index.es-0c2c97f4.js +355 -0
  318. package/dist/_shared/cjs/index.es-0f681622.js +13 -0
  319. package/dist/_shared/cjs/{index.es-77def0c9.js → use-media-query-d34c83b9.js} +0 -9
  320. package/dist/_shared/esm/Avatar-f9df2686.js +42 -0
  321. package/dist/_shared/esm/Badge-ec093004.js +11 -0
  322. package/dist/_shared/esm/Banner-1b709fc7.js +60 -0
  323. package/dist/_shared/esm/Box-0516cf8c.js +23 -0
  324. package/dist/_shared/esm/{BrandLogo-1af78f76.js → BrandLogo-640e58ed.js} +2 -3
  325. package/dist/_shared/esm/{Breadcrumbs-c4b65cff.js → Breadcrumbs-58ab8ba0.js} +16 -15
  326. package/dist/_shared/esm/BtIconArrowRight.esm-93da96bb.js +24 -0
  327. package/dist/_shared/esm/BtIconChevronRight2Px.esm-c939e317.js +37 -0
  328. package/dist/_shared/esm/BtIconChevronRightMid.esm-4764708f.js +22 -0
  329. package/dist/_shared/esm/BtIconPlayFill.esm-05fc0344.js +24 -0
  330. package/dist/_shared/esm/{Button-c3348ed8.js → Button-6d09ead2.js} +5 -6
  331. package/dist/_shared/esm/ButtonV2-b35cea64.js +47 -0
  332. package/dist/_shared/esm/Calendar-d56cdead.js +1918 -0
  333. package/dist/_shared/esm/CardFooter-97261b1c.js +73 -0
  334. package/dist/_shared/esm/CardHeading-4e020d2e.js +10 -0
  335. package/dist/_shared/esm/Checkbox-a687c6cd.js +64 -0
  336. package/dist/_shared/esm/{Columns-d96b7425.js → Columns-767e7860.js} +2 -10
  337. package/dist/_shared/esm/Combination-71be1a15.js +1163 -0
  338. package/dist/_shared/esm/ConditionalWrapper-b85979de.js +8 -0
  339. package/dist/_shared/esm/ContentSwitcher-bc952e2f.js +93 -0
  340. package/dist/_shared/esm/ContentSwitcherDropdown-1675387e.js +58 -0
  341. package/dist/_shared/esm/DatePicker-dd060b1c.js +910 -0
  342. package/dist/_shared/esm/{DisclosureMini-bf95a9db.js → DisclosureMini-9caa350c.js} +8 -11
  343. package/dist/_shared/esm/Download-07f5e3dd.js +37 -0
  344. package/dist/_shared/esm/{Filter-58a42358.js → Filter-284297be.js} +29 -21
  345. package/dist/_shared/esm/{FormControl-433228f5.js → FormControl-350bb1c8.js} +29 -14
  346. package/dist/_shared/esm/Grid-5d1afe1a.js +39 -0
  347. package/dist/_shared/esm/{Group-73fdb896.js → Group-64dee285.js} +3 -10
  348. package/dist/_shared/esm/{Heading-d16e0e53.js → Heading-e83f0d49.js} +5 -5
  349. package/dist/_shared/esm/HeroButton-32fec849.js +120 -0
  350. package/dist/_shared/esm/Icon-6fef56b3.js +41 -0
  351. package/dist/_shared/esm/{Image-12fbd327.js → Image-45c7760b.js} +14 -5
  352. package/dist/_shared/esm/MediaCard-38c7a943.js +59 -0
  353. package/dist/_shared/esm/{Poster-699dc89b.js → Poster-f248e28b.js} +6 -7
  354. package/dist/_shared/esm/Preview-43b2a75d.js +161 -0
  355. package/dist/_shared/esm/ProgressStepper-9bb4706f.js +91 -0
  356. package/dist/_shared/esm/RadioGroup-84c7ca35.js +78 -0
  357. package/dist/_shared/esm/{Section-73781b56.js → Section-3ab74edb.js} +1 -1
  358. package/dist/_shared/esm/{SiteFooter-d21da7ab.js → SiteFooter-7317b40e.js} +9 -8
  359. package/dist/_shared/esm/SiteHeaderV2-6d4af7e5.js +648 -0
  360. package/dist/_shared/esm/Spinner-7c6f320f.js +18 -0
  361. package/dist/_shared/esm/Surface-201aa0d6.js +165 -0
  362. package/dist/_shared/esm/Tabs-ab8e189d.js +84 -0
  363. package/dist/_shared/esm/{Text-14f586ac.js → Text-dc3f9cb5.js} +5 -5
  364. package/dist/_shared/esm/TextInput-0707edc3.js +96 -0
  365. package/dist/_shared/esm/{ThemeIcon-eab5a4d0.js → ThemeIcon-69de5351.js} +2 -3
  366. package/dist/_shared/esm/{Toast-dce2d01e.js → Toast-e3ab54f9.js} +260 -23
  367. package/dist/_shared/esm/{UniversalHeader-b4c1577c.js → UniversalHeader-15169a0d.js} +9 -14
  368. package/dist/_shared/esm/{VerticalSpace-43cd9138.js → VerticalSpace-4b6b7468.js} +5 -5
  369. package/dist/_shared/esm/VisuallyHidden-59f004f5.js +12 -0
  370. package/dist/_shared/esm/_commonjsHelpers-0109d574.js +18 -0
  371. package/dist/_shared/esm/{index-ffd720d0.js → component-4448135f.js} +144 -432
  372. package/dist/_shared/esm/{debounce-6fed6b84.js → debounce-c8e41002.js} +1 -1
  373. package/dist/_shared/esm/floating-ui.react-dom-1bb71aae.js +1878 -0
  374. package/dist/_shared/esm/index-0ae42785.js +2169 -0
  375. package/dist/_shared/esm/{index-3147c5b0.js → index-13458236.js} +9 -2
  376. package/dist/_shared/esm/{index-65264b4e.js → index-2403936c.js} +1 -1
  377. package/dist/_shared/esm/index-6bdce6c5.js +69 -0
  378. package/dist/_shared/esm/index-7868cc59.js +129 -0
  379. package/dist/_shared/esm/{index.module-50b2c98a.js → index-7f23bb37.js} +28 -30
  380. package/dist/_shared/esm/index-a41a5e50.js +41 -0
  381. package/dist/_shared/esm/{Tabs-39d24a7d.js → index-b051f161.js} +6 -94
  382. package/dist/_shared/esm/index-ce6dee84.js +2197 -0
  383. package/dist/_shared/esm/index.es-be971b8d.js +9 -0
  384. package/dist/_shared/esm/index.es-fc59ba8f.js +348 -0
  385. package/dist/_shared/esm/{index.es-00cb3bcb.js → use-media-query-d3622da8.js} +1 -8
  386. package/dist/index.es.js +18793 -37648
  387. package/dist/index.es.js.map +1 -1
  388. package/dist/index.js +18806 -37643
  389. package/dist/index.js.map +1 -1
  390. package/dist/styles.css +9 -38
  391. package/dist/types/components/Alert/Alert.d.ts +1 -1
  392. package/dist/types/components/AppButton/AppButton.d.ts +9 -0
  393. package/dist/types/components/AppButton/icons/AppStore.d.ts +2 -0
  394. package/dist/types/components/AppButton/icons/GooglePlay.d.ts +2 -0
  395. package/dist/types/components/AppButton/index.d.ts +1 -0
  396. package/dist/types/components/Avatar/Avatar.d.ts +14 -0
  397. package/dist/types/components/Avatar/components/AvatarContent/AvatarContent.d.ts +9 -0
  398. package/dist/types/components/Avatar/index.d.ts +1 -0
  399. package/dist/types/components/Avatar/types/avatar-icon-size.d.ts +1 -0
  400. package/dist/types/components/Avatar/types/avatar-image.d.ts +2 -0
  401. package/dist/types/components/Avatar/types/avatar-size.d.ts +1 -0
  402. package/dist/types/components/Avatar/types/avatar-text-size.d.ts +2 -0
  403. package/dist/types/components/AvatarGroup/AvatarGroup.d.ts +14 -0
  404. package/dist/types/components/AvatarGroup/index.d.ts +1 -0
  405. package/dist/types/components/AvatarGroup/types/group-avatar.d.ts +2 -0
  406. package/dist/types/components/AvatarGroup/utils/get-avatars.d.ts +2 -0
  407. package/dist/types/components/Badge/Badge.d.ts +1 -9
  408. package/dist/types/components/Banner/Banner.d.ts +68 -0
  409. package/dist/types/components/Banner/index.d.ts +1 -0
  410. package/dist/types/components/BannerWithTabs/BannerWithTabs.d.ts +17 -0
  411. package/dist/types/components/BannerWithTabs/index.d.ts +1 -0
  412. package/dist/types/components/Box/Box.d.ts +4 -0
  413. package/dist/types/components/Button/Button.d.ts +1 -1
  414. package/dist/types/components/ButtonV2/ButtonV2.d.ts +79 -0
  415. package/dist/types/components/ButtonV2/index.d.ts +1 -0
  416. package/dist/types/components/Calendar/Calendar.d.ts +50 -0
  417. package/dist/types/components/Calendar/Calendar.provider.d.ts +21 -0
  418. package/dist/types/components/Calendar/components/CalendarDateSelect/CalendarDateSelect.d.ts +15 -0
  419. package/dist/types/components/Calendar/components/CalendarDateSelect/index.d.ts +1 -0
  420. package/dist/types/components/Calendar/components/CalendarDayGrid/CalendarDayGrid.d.ts +6 -0
  421. package/dist/types/components/Calendar/components/CalendarDayGrid/index.d.ts +1 -0
  422. package/dist/types/components/Calendar/components/CalendarDayNumber/CalendarDayNumber.d.ts +8 -0
  423. package/dist/types/components/Calendar/components/CalendarDayNumber/index.d.ts +1 -0
  424. package/dist/types/components/Calendar/components/CalendarDoubleMonthView/CalendarDoubleMonthView.d.ts +9 -0
  425. package/dist/types/components/Calendar/components/CalendarDoubleMonthView/index.d.ts +1 -0
  426. package/dist/types/components/Calendar/components/CalendarFooter/CalendarFooter.d.ts +6 -0
  427. package/dist/types/components/Calendar/components/CalendarFooter/index.d.ts +1 -0
  428. package/dist/types/components/Calendar/components/CalendarMonthView/CalendarMonthView.d.ts +9 -0
  429. package/dist/types/components/Calendar/components/CalendarMonthView/index.d.ts +1 -0
  430. package/dist/types/components/Calendar/components/CalendarMonthYearView/CalendarMonthYearView.d.ts +11 -0
  431. package/dist/types/components/Calendar/components/CalendarMonthYearView/index.d.ts +1 -0
  432. package/dist/types/components/Calendar/components/CalendarNavButton/CalendarNavButton.d.ts +10 -0
  433. package/dist/types/components/Calendar/components/CalendarNavButton/index.d.ts +1 -0
  434. package/dist/types/components/Calendar/components/CalendarWrapper/CalendarWrapper.d.ts +5 -0
  435. package/dist/types/components/Calendar/components/CalendarWrapper/index.d.ts +1 -0
  436. package/dist/types/components/Calendar/components/index.d.ts +6 -0
  437. package/dist/types/components/Calendar/constants/day-names.d.ts +5 -0
  438. package/dist/types/components/Calendar/constants/index.d.ts +1 -0
  439. package/dist/types/components/Calendar/helpers/contains-date.d.ts +1 -0
  440. package/dist/types/components/Calendar/helpers/contains-date.test.d.ts +1 -0
  441. package/dist/types/components/Calendar/helpers/date-without-time.d.ts +1 -0
  442. package/dist/types/components/Calendar/helpers/date-without-time.test.d.ts +1 -0
  443. package/dist/types/components/Calendar/helpers/get-calendar-type.d.ts +2 -0
  444. package/dist/types/components/Calendar/helpers/get-calendar-type.test.d.ts +1 -0
  445. package/dist/types/components/Calendar/helpers/get-dates-in-month.d.ts +1 -0
  446. package/dist/types/components/Calendar/helpers/get-dates-in-month.test.d.ts +1 -0
  447. package/dist/types/components/Calendar/helpers/get-double-month-display-range.d.ts +1 -0
  448. package/dist/types/components/Calendar/helpers/get-double-month-display-range.test.d.ts +1 -0
  449. package/dist/types/components/Calendar/helpers/get-focus-date.d.ts +5 -0
  450. package/dist/types/components/Calendar/helpers/get-focus-date.test.d.ts +1 -0
  451. package/dist/types/components/Calendar/helpers/get-highlighted-range.d.ts +6 -0
  452. package/dist/types/components/Calendar/helpers/get-highlighted-range.test.d.ts +1 -0
  453. package/dist/types/components/Calendar/helpers/get-keydown-date.d.ts +6 -0
  454. package/dist/types/components/Calendar/helpers/get-keydown-date.test.d.ts +1 -0
  455. package/dist/types/components/Calendar/helpers/index.d.ts +13 -0
  456. package/dist/types/components/Calendar/helpers/is-day.d.ts +2 -0
  457. package/dist/types/components/Calendar/helpers/is-day.test.d.ts +1 -0
  458. package/dist/types/components/Calendar/helpers/is-disabled-date.d.ts +1 -0
  459. package/dist/types/components/Calendar/helpers/is-disabled-date.test.d.ts +1 -0
  460. package/dist/types/components/Calendar/helpers/is-month-after-max-date.d.ts +1 -0
  461. package/dist/types/components/Calendar/helpers/is-month-after-max-date.test.d.ts +1 -0
  462. package/dist/types/components/Calendar/helpers/is-month-before-min-date.d.ts +1 -0
  463. package/dist/types/components/Calendar/helpers/is-month-before-min-date.test.d.ts +1 -0
  464. package/dist/types/components/Calendar/helpers/process-selected-range.d.ts +9 -0
  465. package/dist/types/components/Calendar/helpers/process-selected-range.test.d.ts +1 -0
  466. package/dist/types/components/Calendar/index.d.ts +2 -0
  467. package/dist/types/components/Calendar/state/handlers/calendar-keydown-handler.d.ts +3 -0
  468. package/dist/types/components/Calendar/state/handlers/day-grid-leave-handler.d.ts +3 -0
  469. package/dist/types/components/Calendar/state/handlers/day-number-select-handler.d.ts +3 -0
  470. package/dist/types/components/Calendar/state/handlers/default-handler.d.ts +2 -0
  471. package/dist/types/components/Calendar/state/handlers/dropdown-change-month-handler.d.ts +3 -0
  472. package/dist/types/components/Calendar/state/handlers/dropdown-change-year-handler.d.ts +3 -0
  473. package/dist/types/components/Calendar/state/handlers/highlight-range-handler.d.ts +3 -0
  474. package/dist/types/components/Calendar/state/handlers/index.d.ts +12 -0
  475. package/dist/types/components/Calendar/state/handlers/range-select-handler.d.ts +3 -0
  476. package/dist/types/components/Calendar/state/handlers/show-next-double-month-handler.d.ts +3 -0
  477. package/dist/types/components/Calendar/state/handlers/show-next-month-handler.d.ts +3 -0
  478. package/dist/types/components/Calendar/state/handlers/show-previous-double-month-handler.d.ts +3 -0
  479. package/dist/types/components/Calendar/state/handlers/show-previous-month-handler.d.ts +3 -0
  480. package/dist/types/components/Calendar/state/index.d.ts +2 -0
  481. package/dist/types/components/Calendar/state/reducer.d.ts +3 -0
  482. package/dist/types/components/Calendar/state/reducer.test.d.ts +1 -0
  483. package/dist/types/components/Calendar/state/types/actions.d.ts +81 -0
  484. package/dist/types/components/Calendar/state/types/state-handler.d.ts +3 -0
  485. package/dist/types/components/Calendar/state/types/state.d.ts +5 -0
  486. package/dist/types/components/Calendar/types/calendar-type.d.ts +1 -0
  487. package/dist/types/components/Calendar/types/date-select-value.d.ts +2 -0
  488. package/dist/types/components/Calendar/types/index.d.ts +6 -0
  489. package/dist/types/components/Calendar/types/key-names.d.ts +13 -0
  490. package/dist/types/components/Calendar/types/range-selection.d.ts +10 -0
  491. package/dist/types/components/Calendar/types/selection-type.d.ts +1 -0
  492. package/dist/types/components/Calendar/types/week-days.d.ts +18 -0
  493. package/dist/types/components/CardFooter/CardFooter.d.ts +11 -0
  494. package/dist/types/components/CardFooter/index.d.ts +1 -0
  495. package/dist/types/components/CardHeading/CardHeading.d.ts +19 -0
  496. package/dist/types/components/CardHeading/index.d.ts +1 -0
  497. package/dist/types/components/Carousel/Carousel.d.ts +34 -0
  498. package/dist/types/components/Carousel/components/DotButton.d.ts +10 -0
  499. package/dist/types/components/Carousel/constants/breakpoints.d.ts +5 -0
  500. package/dist/types/components/Carousel/helpers/get-options.d.ts +3 -0
  501. package/dist/types/components/Carousel/helpers/get-slide-width.d.ts +12 -0
  502. package/dist/types/components/Carousel/index.d.ts +1 -0
  503. package/dist/types/components/Carousel/types/breakpoints.d.ts +1 -0
  504. package/dist/types/components/Carousel/types/keynames.d.ts +5 -0
  505. package/dist/types/components/Carousel/types/responsive.d.ts +3 -0
  506. package/dist/types/components/Carousel/types/screen-sizes.d.ts +2 -0
  507. package/dist/types/components/Carousel/types/slide-config.d.ts +5 -0
  508. package/dist/types/components/Checkbox/Checkbox.d.ts +8 -5
  509. package/dist/types/components/ConditionalWrapper/ConditionalWrapper.d.ts +7 -0
  510. package/dist/types/components/ConditionalWrapper/index.d.ts +1 -0
  511. package/dist/types/components/ContentSwitcher/ContentSwitcher.d.ts +32 -0
  512. package/dist/types/components/ContentSwitcher/ContentSwitcherContent/ContentSwitcherContent.d.ts +12 -0
  513. package/dist/types/components/ContentSwitcher/ContentSwitcherContent/index.d.ts +1 -0
  514. package/dist/types/components/ContentSwitcher/ContentSwitcherList/ContentSwitcherList.d.ts +24 -0
  515. package/dist/types/components/ContentSwitcher/ContentSwitcherList/index.d.ts +1 -0
  516. package/dist/types/components/ContentSwitcher/ContentSwitcherTab/ContentSwitcherTab.d.ts +17 -0
  517. package/dist/types/components/ContentSwitcher/ContentSwitcherTab/index.d.ts +1 -0
  518. package/dist/types/components/ContentSwitcher/index.d.ts +1 -0
  519. package/dist/types/components/ContentSwitcherDropdown/ContentSwitcherDropdown.d.ts +57 -0
  520. package/dist/types/components/ContentSwitcherDropdown/index.d.ts +1 -0
  521. package/dist/types/components/DatePicker/DatePicker.d.ts +20 -0
  522. package/dist/types/components/DatePicker/constants/date-format.d.ts +1 -0
  523. package/dist/types/components/DatePicker/constants/index.d.ts +1 -0
  524. package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.d.ts +1 -0
  525. package/dist/types/components/DatePicker/helpers/convert-date-string-to-date.test.d.ts +1 -0
  526. package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.d.ts +1 -0
  527. package/dist/types/components/DatePicker/helpers/convert-range-string-to-dates.test.d.ts +1 -0
  528. package/dist/types/components/DatePicker/helpers/format-date.d.ts +1 -0
  529. package/dist/types/components/DatePicker/helpers/format-date.test.d.ts +1 -0
  530. package/dist/types/components/DatePicker/helpers/index.d.ts +8 -0
  531. package/dist/types/components/DatePicker/helpers/is-date-valid.d.ts +1 -0
  532. package/dist/types/components/DatePicker/helpers/is-date-valid.test.d.ts +1 -0
  533. package/dist/types/components/DatePicker/helpers/is-disabled-date.d.ts +1 -0
  534. package/dist/types/components/DatePicker/helpers/is-disabled-date.test.d.ts +1 -0
  535. package/dist/types/components/DatePicker/helpers/is-range-valid.d.ts +1 -0
  536. package/dist/types/components/DatePicker/helpers/is-range-valid.test.d.ts +1 -0
  537. package/dist/types/components/DatePicker/helpers/parse-date-string.d.ts +5 -0
  538. package/dist/types/components/DatePicker/helpers/parse-date-string.test.d.ts +1 -0
  539. package/dist/types/components/DatePicker/helpers/parse-range-string.d.ts +14 -0
  540. package/dist/types/components/DatePicker/helpers/parse-range-string.test.d.ts +1 -0
  541. package/dist/types/components/DatePicker/index.d.ts +6 -0
  542. package/dist/types/components/Disclosure/Disclosure.d.ts +1 -2
  543. package/dist/types/components/Disclosure/index.d.ts +1 -1
  544. package/dist/types/components/DisclosureMini/DisclosureMini.d.ts +1 -2
  545. package/dist/types/components/Download/Download.d.ts +41 -0
  546. package/dist/types/components/Download/index.d.ts +1 -0
  547. package/dist/types/components/Filter/Filter.d.ts +1 -1
  548. package/dist/types/components/Filter/FilterItems/FilterItems.d.ts +4 -0
  549. package/dist/types/components/FormControl/FormControl.d.ts +5 -1
  550. package/dist/types/components/Grid/Grid.constants.d.ts +1 -0
  551. package/dist/types/components/Grid/Grid.d.ts +28 -0
  552. package/dist/types/components/Grid/Grid.types.d.ts +10 -0
  553. package/dist/types/components/Grid/components/Col/Col.d.ts +10 -0
  554. package/dist/types/components/Grid/components/Col/index.d.ts +1 -0
  555. package/dist/types/components/Grid/components/Row/Row.d.ts +10 -0
  556. package/dist/types/components/Grid/components/Row/index.d.ts +1 -0
  557. package/dist/types/components/Grid/index.d.ts +2 -0
  558. package/dist/types/components/Heading/Heading.d.ts +4 -0
  559. package/dist/types/components/Heading/index.d.ts +1 -1
  560. package/dist/types/components/HeroBanner/HeroBanner.d.ts +5 -0
  561. package/dist/types/components/HeroBanner/index.d.ts +1 -0
  562. package/dist/types/components/HeroButton/HeroButton.d.ts +66 -0
  563. package/dist/types/components/HeroButton/index.d.ts +1 -0
  564. package/dist/types/components/Hidden/Hidden.d.ts +11 -0
  565. package/dist/types/components/Hidden/index.d.ts +1 -0
  566. package/dist/types/components/Icon/Icon.d.ts +6 -2
  567. package/dist/types/components/Image/Image.d.ts +4 -0
  568. package/dist/types/components/ImpactCard/ImpactCard.d.ts +58 -0
  569. package/dist/types/components/ImpactCard/index.d.ts +1 -0
  570. package/dist/types/components/InformationCard/InformationCard.d.ts +62 -0
  571. package/dist/types/components/InformationCard/index.d.ts +1 -0
  572. package/dist/types/components/Link/Link.d.ts +52 -0
  573. package/dist/types/components/Link/index.d.ts +1 -0
  574. package/dist/types/components/MediaCard/MediaCard.d.ts +27 -28
  575. package/dist/types/components/MediaCard/index.d.ts +1 -1
  576. package/dist/types/components/MediaCard/types/index.d.ts +2 -0
  577. package/dist/types/components/MediaCard/types/media-card-image.d.ts +4 -0
  578. package/dist/types/components/MediaCard/types/media-card-video.d.ts +4 -0
  579. package/dist/types/components/Modal/Modal.d.ts +3 -3
  580. package/dist/types/components/PageBanner/PageBanner.d.ts +5 -0
  581. package/dist/types/components/PageBanner/index.d.ts +1 -0
  582. package/dist/types/components/Pagination/Pagination.d.ts +1 -1
  583. package/dist/types/components/PaginationSimple/PaginationSimple.d.ts +26 -10
  584. package/dist/types/components/Poster/Poster.d.ts +1 -1
  585. package/dist/types/components/ProgressBar/ProgressBar.d.ts +4 -0
  586. package/dist/types/components/ProgressStepper/ProgressStepper.d.ts +2 -2
  587. package/dist/types/components/ProgressStepper/ProgressStepperItem/ProgressStepperItem.d.ts +3 -7
  588. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Complete.d.ts +2 -0
  589. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Current.d.ts +2 -0
  590. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Error.d.ts +2 -0
  591. package/dist/types/components/ProgressStepper/ProgressStepperItem/icons/Warning.d.ts +2 -0
  592. package/dist/types/components/RadioGroup/RadioButton/RadioButton.d.ts +17 -23
  593. package/dist/types/components/RadioGroup/RadioButtonGroupInput/RadioButtonGroupInput.d.ts +36 -0
  594. package/dist/types/components/RadioGroup/RadioButtonGroupInput/index.d.ts +1 -0
  595. package/dist/types/components/RadioGroup/RadioGroup.d.ts +11 -3
  596. package/dist/types/components/RadioGroup/context.d.ts +1 -1
  597. package/dist/types/components/RadioGroup/index.d.ts +1 -0
  598. package/dist/types/components/Rule/Rule.d.ts +2 -1
  599. package/dist/types/components/Select/Select.d.ts +53 -0
  600. package/dist/types/components/SiteFooter/index.d.ts +0 -1
  601. package/dist/types/components/SiteHeaderV2/SiteHeaderV2.d.ts +82 -0
  602. package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/BackButton/BackButton.d.ts +1 -0
  603. package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Column/Column.d.ts +1 -1
  604. package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/HorizontalPanel.d.ts +13 -0
  605. package/dist/types/components/SiteHeaderV2/components/HorizontalPanel/index.d.ts +1 -0
  606. package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/ItemGroup/ItemGroup.d.ts +1 -0
  607. package/dist/types/components/SiteHeaderV2/components/ItemGroup/index.d.ts +1 -0
  608. package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/NavItem/NavItem.d.ts +5 -6
  609. package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/NavItem/NavItemWithSubNav.d.ts +13 -4
  610. package/dist/types/components/SiteHeaderV2/components/NavItem/index.d.ts +2 -0
  611. package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/NodeItem/NodeItem.d.ts +1 -1
  612. package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Panel/Panel.d.ts +8 -2
  613. package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/SubNavItem/SubNavItem.d.ts +5 -7
  614. package/dist/types/components/SiteHeaderV2/components/SubNavItem/index.d.ts +1 -0
  615. package/dist/types/components/SiteHeaderV2/components/VerticalDivider/VerticalDivider.d.ts +2 -0
  616. package/dist/types/components/SiteHeaderV2/components/VerticalDivider/index.d.ts +1 -0
  617. package/dist/types/components/SiteHeaderV2/index.d.ts +1 -0
  618. package/dist/types/components/SkipLink/SkipLink.d.ts +12 -0
  619. package/dist/types/components/SkipLink/SkipLinkItem/SkipLinkItem.d.ts +16 -0
  620. package/dist/types/components/SkipLink/index.d.ts +1 -0
  621. package/dist/types/components/Spinner/Spinner.d.ts +16 -0
  622. package/dist/types/components/Spinner/index.d.ts +1 -0
  623. package/dist/types/components/Surface/Surface.d.ts +7 -3
  624. package/dist/types/components/Switch/Switch.d.ts +6 -2
  625. package/dist/types/components/Tabs/Tabs.d.ts +1 -0
  626. package/dist/types/components/Tabs/TabsList/TabsList.d.ts +5 -0
  627. package/dist/types/components/Tag/Tag.d.ts +5 -1
  628. package/dist/types/components/Text/Text.d.ts +4 -0
  629. package/dist/types/components/TextArea/TextArea.d.ts +17 -0
  630. package/dist/types/components/TextInput/TextInput.d.ts +46 -6
  631. package/dist/types/components/Theme/Theme.d.ts +11 -3
  632. package/dist/types/components/Theme/index.d.ts +1 -1
  633. package/dist/types/components/ThemeIcon/icon-names.d.ts +1 -1
  634. package/dist/types/components/Toast/Toast.d.ts +1 -1
  635. package/dist/types/components/Truncate/Truncate.d.ts +1 -1
  636. package/dist/types/components/TypographyCard/TypographyCard.d.ts +58 -0
  637. package/dist/types/components/TypographyCard/index.d.ts +1 -0
  638. package/dist/types/components/UniversalHeader/UniversalHeader.d.ts +4 -0
  639. package/dist/types/components/VideoPlayer/VideoPlayer.d.ts +27 -0
  640. package/dist/types/components/VideoPlayer/index.d.ts +1 -0
  641. package/dist/types/components/Visible/Visible.d.ts +11 -0
  642. package/dist/types/components/Visible/index.d.ts +1 -0
  643. package/dist/types/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
  644. package/dist/types/components/index.d.ts +24 -5
  645. package/dist/types/helpers/get-theme-img.d.ts +6 -0
  646. package/dist/types/helpers/index.d.ts +1 -2
  647. package/dist/types/hooks/index.d.ts +2 -4
  648. package/dist/types/hooks/private/index.d.ts +5 -0
  649. package/dist/types/hooks/private/use-aria-describedby/index.d.ts +1 -0
  650. package/dist/types/hooks/private/use-interaction-mode/index.d.ts +1 -0
  651. package/dist/types/hooks/private/use-numeric-input/index.d.ts +1 -0
  652. package/dist/types/hooks/{use-numeric-input.d.ts → private/use-numeric-input/use-numeric-input.d.ts} +3 -3
  653. package/dist/types/hooks/private/use-pagination/index.d.ts +1 -0
  654. package/dist/types/hooks/private/use-theme-element/index.d.ts +1 -0
  655. package/dist/types/hooks/public/index.d.ts +1 -0
  656. package/dist/types/hooks/public/use-media-query/index.d.ts +1 -0
  657. package/dist/types/hooks/{use-media-query.d.ts → public/use-media-query/use-media-query.d.ts} +1 -1
  658. package/dist/types/index.d.ts +1 -0
  659. package/dist/types/styles.d.ts +29 -6
  660. package/dist/types/types/auto-complete-types.d.ts +1 -0
  661. package/dist/use-media-query/package.json +7 -0
  662. package/dist/use-media-query/use-media-query.cjs.js +10 -0
  663. package/dist/use-media-query/use-media-query.esm.js +2 -0
  664. package/package.json +64 -40
  665. package/dist/Base/Base.cjs.js +0 -11
  666. package/dist/Base/Base.esm.js +0 -3
  667. package/dist/Base/package.json +0 -7
  668. package/dist/Card/Card.cjs.js +0 -18
  669. package/dist/Card/Card.esm.js +0 -10
  670. package/dist/Card/package.json +0 -7
  671. package/dist/Clock/Clock.cjs.js +0 -43
  672. package/dist/Clock/Clock.esm.js +0 -34
  673. package/dist/Clock/package.json +0 -7
  674. package/dist/SiteHeader/SiteHeader.cjs.js +0 -22
  675. package/dist/SiteHeader/SiteHeader.esm.js +0 -13
  676. package/dist/SiteHeader/package.json +0 -7
  677. package/dist/_shared/cjs/Base-f5a86eed.js +0 -22
  678. package/dist/_shared/cjs/Card-eb1c20c1.js +0 -121
  679. package/dist/_shared/cjs/Checkbox-5f14bb0d.js +0 -61
  680. package/dist/_shared/cjs/Icon-a47b6c0a.js +0 -33
  681. package/dist/_shared/cjs/Image-e873b8fc.js +0 -46
  682. package/dist/_shared/cjs/ProgressStepper-74ee1eec.js +0 -88
  683. package/dist/_shared/cjs/RadioGroup-9bc96f6a.js +0 -69
  684. package/dist/_shared/cjs/SiteHeader.rehydrator-42c4a0e0.js +0 -670
  685. package/dist/_shared/cjs/Surface-038db6e1.js +0 -57
  686. package/dist/_shared/cjs/TextInput-a5f72f6f.js +0 -81
  687. package/dist/_shared/cjs/UniversalHeader-5e43d320.js +0 -34
  688. package/dist/_shared/cjs/VisuallyHidden-e2c8b291.js +0 -17
  689. package/dist/_shared/cjs/extends-8c5e4b48.js +0 -18
  690. package/dist/_shared/cjs/filter-data-attrs-1c9a530c.js +0 -227
  691. package/dist/_shared/cjs/index-4aa11039.js +0 -490
  692. package/dist/_shared/cjs/index-4dd46cbe.js +0 -289
  693. package/dist/_shared/cjs/suffix-modifier-64dcd338.js +0 -19
  694. package/dist/_shared/esm/Base-f200653c.js +0 -15
  695. package/dist/_shared/esm/Card-45e8e10a.js +0 -115
  696. package/dist/_shared/esm/Checkbox-2a623386.js +0 -55
  697. package/dist/_shared/esm/Icon-9ecaaeab.js +0 -27
  698. package/dist/_shared/esm/ProgressStepper-5de34269.js +0 -82
  699. package/dist/_shared/esm/RadioGroup-002a32ba.js +0 -63
  700. package/dist/_shared/esm/SiteHeader.rehydrator-97900e11.js +0 -663
  701. package/dist/_shared/esm/Surface-0ca6817d.js +0 -48
  702. package/dist/_shared/esm/TextInput-28f18769.js +0 -75
  703. package/dist/_shared/esm/VisuallyHidden-b9eebf71.js +0 -11
  704. package/dist/_shared/esm/extends-8cc61aad.js +0 -16
  705. package/dist/_shared/esm/filter-data-attrs-ea8f4ed4.js +0 -220
  706. package/dist/_shared/esm/index-4f8d3888.js +0 -280
  707. package/dist/_shared/esm/index-87a828b8.js +0 -479
  708. package/dist/_shared/esm/suffix-modifier-3d548e45.js +0 -17
  709. package/dist/types/components/Base/Base.d.ts +0 -16
  710. package/dist/types/components/Base/index.d.ts +0 -1
  711. package/dist/types/components/Card/Card.d.ts +0 -128
  712. package/dist/types/components/Card/index.d.ts +0 -1
  713. package/dist/types/components/Clock/Clock.d.ts +0 -12
  714. package/dist/types/components/Clock/Clock.rehydrator.d.ts +0 -2
  715. package/dist/types/components/Clock/index.d.ts +0 -2
  716. package/dist/types/components/MediaCard/MediaCard.stories-wip.d.ts +0 -15
  717. package/dist/types/components/SiteFooter/SiteFooter.rehydrator.d.ts +0 -2
  718. package/dist/types/components/SiteHeader/SiteHeader.d.ts +0 -75
  719. package/dist/types/components/SiteHeader/SiteHeader.rehydrator.d.ts +0 -8
  720. package/dist/types/components/SiteHeader/components/ItemGroup/ItemGroup.rehydrator.d.ts +0 -2
  721. package/dist/types/components/SiteHeader/components/ItemGroup/index.d.ts +0 -2
  722. package/dist/types/components/SiteHeader/components/NavItem/NavItem.rehydrator.d.ts +0 -2
  723. package/dist/types/components/SiteHeader/components/NavItem/NavItemWithSubNav.rehydrator.d.ts +0 -2
  724. package/dist/types/components/SiteHeader/components/NavItem/index.d.ts +0 -4
  725. package/dist/types/components/SiteHeader/components/SubNavItem/SubNavItem.rehydrator.d.ts +0 -2
  726. package/dist/types/components/SiteHeader/components/SubNavItem/index.d.ts +0 -2
  727. package/dist/types/components/SiteHeader/index.d.ts +0 -2
  728. package/dist/types/helpers/filter-data-attrs.d.ts +0 -1
  729. package/dist/types/helpers/suffix-modifier.d.ts +0 -9
  730. /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/BackButton/index.d.ts +0 -0
  731. /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Column/index.d.ts +0 -0
  732. /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Item/Item.d.ts +0 -0
  733. /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Item/index.d.ts +0 -0
  734. /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/MenuButton/MenuButton.d.ts +0 -0
  735. /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/MenuButton/index.d.ts +0 -0
  736. /package/dist/types/components/{SiteHeader → SiteHeaderV2}/components/Panel/index.d.ts +0 -0
  737. /package/dist/types/hooks/{use-aria-describedby.d.ts → private/use-aria-describedby/use-aria-describedby.d.ts} +0 -0
  738. /package/dist/types/hooks/{use-interaction-mode.d.ts → private/use-interaction-mode/use-interaction-mode.d.ts} +0 -0
  739. /package/dist/types/hooks/{use-pagination.d.ts → private/use-pagination/use-pagination.d.ts} +0 -0
@@ -0,0 +1,3025 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index_es = require('../_shared/cjs/index.es-0c2c97f4.js');
6
+ var React = require('react');
7
+ var _commonjsHelpers = require('../_shared/cjs/_commonjsHelpers-56412ec5.js');
8
+ var BtIconPlayFill_esm = require('../_shared/cjs/BtIconPlayFill.esm-b8997cfc.js');
9
+ var Icon = require('../_shared/cjs/Icon-5dd78f2b.js');
10
+ var VisuallyHidden = require('../_shared/cjs/VisuallyHidden-c691ea4d.js');
11
+ var VerticalSpace = require('../_shared/cjs/VerticalSpace-a5cf4d4e.js');
12
+ var Heading = require('../_shared/cjs/Heading-b4b65724.js');
13
+ var Text = require('../_shared/cjs/Text-1b3e4fb6.js');
14
+ var Download = require('../_shared/cjs/Download-45dc0d20.js');
15
+ var DisclosureMini = require('../_shared/cjs/DisclosureMini-64a1c682.js');
16
+ var index = require('../_shared/cjs/index-9947ac13.js');
17
+ require('../_shared/cjs/Surface-ca708a8c.js');
18
+ require('../_shared/cjs/ThemeIcon-cf6ddb34.js');
19
+
20
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
+
22
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
23
+
24
+ var isMergeableObject = function isMergeableObject(value) {
25
+ return isNonNullObject(value)
26
+ && !isSpecial(value)
27
+ };
28
+
29
+ function isNonNullObject(value) {
30
+ return !!value && typeof value === 'object'
31
+ }
32
+
33
+ function isSpecial(value) {
34
+ var stringValue = Object.prototype.toString.call(value);
35
+
36
+ return stringValue === '[object RegExp]'
37
+ || stringValue === '[object Date]'
38
+ || isReactElement(value)
39
+ }
40
+
41
+ // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
42
+ var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
43
+ var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
44
+
45
+ function isReactElement(value) {
46
+ return value.$$typeof === REACT_ELEMENT_TYPE
47
+ }
48
+
49
+ function emptyTarget(val) {
50
+ return Array.isArray(val) ? [] : {}
51
+ }
52
+
53
+ function cloneUnlessOtherwiseSpecified(value, options) {
54
+ return (options.clone !== false && options.isMergeableObject(value))
55
+ ? deepmerge(emptyTarget(value), value, options)
56
+ : value
57
+ }
58
+
59
+ function defaultArrayMerge(target, source, options) {
60
+ return target.concat(source).map(function(element) {
61
+ return cloneUnlessOtherwiseSpecified(element, options)
62
+ })
63
+ }
64
+
65
+ function getMergeFunction(key, options) {
66
+ if (!options.customMerge) {
67
+ return deepmerge
68
+ }
69
+ var customMerge = options.customMerge(key);
70
+ return typeof customMerge === 'function' ? customMerge : deepmerge
71
+ }
72
+
73
+ function getEnumerableOwnPropertySymbols(target) {
74
+ return Object.getOwnPropertySymbols
75
+ ? Object.getOwnPropertySymbols(target).filter(function(symbol) {
76
+ return Object.propertyIsEnumerable.call(target, symbol)
77
+ })
78
+ : []
79
+ }
80
+
81
+ function getKeys(target) {
82
+ return Object.keys(target).concat(getEnumerableOwnPropertySymbols(target))
83
+ }
84
+
85
+ function propertyIsOnObject(object, property) {
86
+ try {
87
+ return property in object
88
+ } catch(_) {
89
+ return false
90
+ }
91
+ }
92
+
93
+ // Protects from prototype poisoning and unexpected merging up the prototype chain.
94
+ function propertyIsUnsafe(target, key) {
95
+ return propertyIsOnObject(target, key) // Properties are safe to merge if they don't exist in the target yet,
96
+ && !(Object.hasOwnProperty.call(target, key) // unsafe if they exist up the prototype chain,
97
+ && Object.propertyIsEnumerable.call(target, key)) // and also unsafe if they're nonenumerable.
98
+ }
99
+
100
+ function mergeObject(target, source, options) {
101
+ var destination = {};
102
+ if (options.isMergeableObject(target)) {
103
+ getKeys(target).forEach(function(key) {
104
+ destination[key] = cloneUnlessOtherwiseSpecified(target[key], options);
105
+ });
106
+ }
107
+ getKeys(source).forEach(function(key) {
108
+ if (propertyIsUnsafe(target, key)) {
109
+ return
110
+ }
111
+
112
+ if (propertyIsOnObject(target, key) && options.isMergeableObject(source[key])) {
113
+ destination[key] = getMergeFunction(key, options)(target[key], source[key], options);
114
+ } else {
115
+ destination[key] = cloneUnlessOtherwiseSpecified(source[key], options);
116
+ }
117
+ });
118
+ return destination
119
+ }
120
+
121
+ function deepmerge(target, source, options) {
122
+ options = options || {};
123
+ options.arrayMerge = options.arrayMerge || defaultArrayMerge;
124
+ options.isMergeableObject = options.isMergeableObject || isMergeableObject;
125
+ // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
126
+ // implementations can use it. The caller may not replace it.
127
+ options.cloneUnlessOtherwiseSpecified = cloneUnlessOtherwiseSpecified;
128
+
129
+ var sourceIsArray = Array.isArray(source);
130
+ var targetIsArray = Array.isArray(target);
131
+ var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
132
+
133
+ if (!sourceAndTargetTypesMatch) {
134
+ return cloneUnlessOtherwiseSpecified(source, options)
135
+ } else if (sourceIsArray) {
136
+ return options.arrayMerge(target, source, options)
137
+ } else {
138
+ return mergeObject(target, source, options)
139
+ }
140
+ }
141
+
142
+ deepmerge.all = function deepmergeAll(array, options) {
143
+ if (!Array.isArray(array)) {
144
+ throw new Error('first argument should be an array')
145
+ }
146
+
147
+ return array.reduce(function(prev, next) {
148
+ return deepmerge(prev, next, options)
149
+ }, {})
150
+ };
151
+
152
+ var deepmerge_1 = deepmerge;
153
+
154
+ var cjs = deepmerge_1;
155
+
156
+ var safeIsNaN = Number.isNaN ||
157
+ function ponyfill(value) {
158
+ return typeof value === 'number' && value !== value;
159
+ };
160
+ function isEqual(first, second) {
161
+ if (first === second) {
162
+ return true;
163
+ }
164
+ if (safeIsNaN(first) && safeIsNaN(second)) {
165
+ return true;
166
+ }
167
+ return false;
168
+ }
169
+ function areInputsEqual(newInputs, lastInputs) {
170
+ if (newInputs.length !== lastInputs.length) {
171
+ return false;
172
+ }
173
+ for (var i = 0; i < newInputs.length; i++) {
174
+ if (!isEqual(newInputs[i], lastInputs[i])) {
175
+ return false;
176
+ }
177
+ }
178
+ return true;
179
+ }
180
+
181
+ function memoizeOne(resultFn, isEqual) {
182
+ if (isEqual === void 0) { isEqual = areInputsEqual; }
183
+ var lastThis;
184
+ var lastArgs = [];
185
+ var lastResult;
186
+ var calledOnce = false;
187
+ function memoized() {
188
+ var newArgs = [];
189
+ for (var _i = 0; _i < arguments.length; _i++) {
190
+ newArgs[_i] = arguments[_i];
191
+ }
192
+ if (calledOnce && lastThis === this && isEqual(newArgs, lastArgs)) {
193
+ return lastResult;
194
+ }
195
+ lastResult = resultFn.apply(this, newArgs);
196
+ calledOnce = true;
197
+ lastThis = this;
198
+ lastArgs = newArgs;
199
+ return lastResult;
200
+ }
201
+ return memoized;
202
+ }
203
+
204
+ var memoizeOne_esm = /*#__PURE__*/Object.freeze({
205
+ __proto__: null,
206
+ 'default': memoizeOne
207
+ });
208
+
209
+ var require$$2 = /*@__PURE__*/_commonjsHelpers.getAugmentedNamespace(memoizeOne_esm);
210
+
211
+ /* global Map:readonly, Set:readonly, ArrayBuffer:readonly */
212
+
213
+ var hasElementType = typeof Element !== 'undefined';
214
+ var hasMap = typeof Map === 'function';
215
+ var hasSet = typeof Set === 'function';
216
+ var hasArrayBuffer = typeof ArrayBuffer === 'function' && !!ArrayBuffer.isView;
217
+
218
+ // Note: We **don't** need `envHasBigInt64Array` in fde es6/index.js
219
+
220
+ function equal(a, b) {
221
+ // START: fast-deep-equal es6/index.js 3.1.3
222
+ if (a === b) return true;
223
+
224
+ if (a && b && typeof a == 'object' && typeof b == 'object') {
225
+ if (a.constructor !== b.constructor) return false;
226
+
227
+ var length, i, keys;
228
+ if (Array.isArray(a)) {
229
+ length = a.length;
230
+ if (length != b.length) return false;
231
+ for (i = length; i-- !== 0;)
232
+ if (!equal(a[i], b[i])) return false;
233
+ return true;
234
+ }
235
+
236
+ // START: Modifications:
237
+ // 1. Extra `has<Type> &&` helpers in initial condition allow es6 code
238
+ // to co-exist with es5.
239
+ // 2. Replace `for of` with es5 compliant iteration using `for`.
240
+ // Basically, take:
241
+ //
242
+ // ```js
243
+ // for (i of a.entries())
244
+ // if (!b.has(i[0])) return false;
245
+ // ```
246
+ //
247
+ // ... and convert to:
248
+ //
249
+ // ```js
250
+ // it = a.entries();
251
+ // while (!(i = it.next()).done)
252
+ // if (!b.has(i.value[0])) return false;
253
+ // ```
254
+ //
255
+ // **Note**: `i` access switches to `i.value`.
256
+ var it;
257
+ if (hasMap && (a instanceof Map) && (b instanceof Map)) {
258
+ if (a.size !== b.size) return false;
259
+ it = a.entries();
260
+ while (!(i = it.next()).done)
261
+ if (!b.has(i.value[0])) return false;
262
+ it = a.entries();
263
+ while (!(i = it.next()).done)
264
+ if (!equal(i.value[1], b.get(i.value[0]))) return false;
265
+ return true;
266
+ }
267
+
268
+ if (hasSet && (a instanceof Set) && (b instanceof Set)) {
269
+ if (a.size !== b.size) return false;
270
+ it = a.entries();
271
+ while (!(i = it.next()).done)
272
+ if (!b.has(i.value[0])) return false;
273
+ return true;
274
+ }
275
+ // END: Modifications
276
+
277
+ if (hasArrayBuffer && ArrayBuffer.isView(a) && ArrayBuffer.isView(b)) {
278
+ length = a.length;
279
+ if (length != b.length) return false;
280
+ for (i = length; i-- !== 0;)
281
+ if (a[i] !== b[i]) return false;
282
+ return true;
283
+ }
284
+
285
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
286
+ // START: Modifications:
287
+ // Apply guards for `Object.create(null)` handling. See:
288
+ // - https://github.com/FormidableLabs/react-fast-compare/issues/64
289
+ // - https://github.com/epoberezkin/fast-deep-equal/issues/49
290
+ if (a.valueOf !== Object.prototype.valueOf && typeof a.valueOf === 'function' && typeof b.valueOf === 'function') return a.valueOf() === b.valueOf();
291
+ if (a.toString !== Object.prototype.toString && typeof a.toString === 'function' && typeof b.toString === 'function') return a.toString() === b.toString();
292
+ // END: Modifications
293
+
294
+ keys = Object.keys(a);
295
+ length = keys.length;
296
+ if (length !== Object.keys(b).length) return false;
297
+
298
+ for (i = length; i-- !== 0;)
299
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
300
+ // END: fast-deep-equal
301
+
302
+ // START: react-fast-compare
303
+ // custom handling for DOM elements
304
+ if (hasElementType && a instanceof Element) return false;
305
+
306
+ // custom handling for React/Preact
307
+ for (i = length; i-- !== 0;) {
308
+ if ((keys[i] === '_owner' || keys[i] === '__v' || keys[i] === '__o') && a.$$typeof) {
309
+ // React-specific: avoid traversing React elements' _owner
310
+ // Preact-specific: avoid traversing Preact elements' __v and __o
311
+ // __v = $_original / $_vnode
312
+ // __o = $_owner
313
+ // These properties contain circular references and are not needed when
314
+ // comparing the actual elements (and not their owners)
315
+ // .$$typeof and ._store on just reasonable markers of elements
316
+
317
+ continue;
318
+ }
319
+
320
+ // all other properties should be traversed as usual
321
+ if (!equal(a[keys[i]], b[keys[i]])) return false;
322
+ }
323
+ // END: react-fast-compare
324
+
325
+ // START: fast-deep-equal
326
+ return true;
327
+ }
328
+
329
+ return a !== a && b !== b;
330
+ }
331
+ // end fast-deep-equal
332
+
333
+ var reactFastCompare = function isEqual(a, b) {
334
+ try {
335
+ return equal(a, b);
336
+ } catch (error) {
337
+ if (((error.message || '').match(/stack|recursion/i))) {
338
+ // warn on circular references, don't crash
339
+ // browsers give this different errors name and messages:
340
+ // chrome/safari: "RangeError", "Maximum call stack size exceeded"
341
+ // firefox: "InternalError", too much recursion"
342
+ // edge: "Error", "Out of stack space"
343
+ console.warn('react-fast-compare cannot handle circular refs');
344
+ return false;
345
+ }
346
+ // some other error. we should definitely know about these
347
+ throw error;
348
+ }
349
+ };
350
+
351
+ var propTypes$1 = {exports: {}};
352
+
353
+ var reactIs = {exports: {}};
354
+
355
+ var reactIs_production_min = {};
356
+
357
+ /** @license React v16.13.1
358
+ * react-is.production.min.js
359
+ *
360
+ * Copyright (c) Facebook, Inc. and its affiliates.
361
+ *
362
+ * This source code is licensed under the MIT license found in the
363
+ * LICENSE file in the root directory of this source tree.
364
+ */
365
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
366
+ Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
367
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
368
+ reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
369
+ reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
370
+ reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
371
+
372
+ var reactIs_development = {};
373
+
374
+ /** @license React v16.13.1
375
+ * react-is.development.js
376
+ *
377
+ * Copyright (c) Facebook, Inc. and its affiliates.
378
+ *
379
+ * This source code is licensed under the MIT license found in the
380
+ * LICENSE file in the root directory of this source tree.
381
+ */
382
+
383
+
384
+
385
+ if (process.env.NODE_ENV !== "production") {
386
+ (function() {
387
+
388
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
389
+ // nor polyfill, then a plain number is used for performance.
390
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
391
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
392
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
393
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
394
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
395
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
396
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
397
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
398
+ // (unstable) APIs that have been removed. Can we remove the symbols?
399
+
400
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
401
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
402
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
403
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
404
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
405
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
406
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
407
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
408
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
409
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
410
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
411
+
412
+ function isValidElementType(type) {
413
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
414
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
415
+ }
416
+
417
+ function typeOf(object) {
418
+ if (typeof object === 'object' && object !== null) {
419
+ var $$typeof = object.$$typeof;
420
+
421
+ switch ($$typeof) {
422
+ case REACT_ELEMENT_TYPE:
423
+ var type = object.type;
424
+
425
+ switch (type) {
426
+ case REACT_ASYNC_MODE_TYPE:
427
+ case REACT_CONCURRENT_MODE_TYPE:
428
+ case REACT_FRAGMENT_TYPE:
429
+ case REACT_PROFILER_TYPE:
430
+ case REACT_STRICT_MODE_TYPE:
431
+ case REACT_SUSPENSE_TYPE:
432
+ return type;
433
+
434
+ default:
435
+ var $$typeofType = type && type.$$typeof;
436
+
437
+ switch ($$typeofType) {
438
+ case REACT_CONTEXT_TYPE:
439
+ case REACT_FORWARD_REF_TYPE:
440
+ case REACT_LAZY_TYPE:
441
+ case REACT_MEMO_TYPE:
442
+ case REACT_PROVIDER_TYPE:
443
+ return $$typeofType;
444
+
445
+ default:
446
+ return $$typeof;
447
+ }
448
+
449
+ }
450
+
451
+ case REACT_PORTAL_TYPE:
452
+ return $$typeof;
453
+ }
454
+ }
455
+
456
+ return undefined;
457
+ } // AsyncMode is deprecated along with isAsyncMode
458
+
459
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
460
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
461
+ var ContextConsumer = REACT_CONTEXT_TYPE;
462
+ var ContextProvider = REACT_PROVIDER_TYPE;
463
+ var Element = REACT_ELEMENT_TYPE;
464
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
465
+ var Fragment = REACT_FRAGMENT_TYPE;
466
+ var Lazy = REACT_LAZY_TYPE;
467
+ var Memo = REACT_MEMO_TYPE;
468
+ var Portal = REACT_PORTAL_TYPE;
469
+ var Profiler = REACT_PROFILER_TYPE;
470
+ var StrictMode = REACT_STRICT_MODE_TYPE;
471
+ var Suspense = REACT_SUSPENSE_TYPE;
472
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
473
+
474
+ function isAsyncMode(object) {
475
+ {
476
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
477
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
478
+
479
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
480
+ }
481
+ }
482
+
483
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
484
+ }
485
+ function isConcurrentMode(object) {
486
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
487
+ }
488
+ function isContextConsumer(object) {
489
+ return typeOf(object) === REACT_CONTEXT_TYPE;
490
+ }
491
+ function isContextProvider(object) {
492
+ return typeOf(object) === REACT_PROVIDER_TYPE;
493
+ }
494
+ function isElement(object) {
495
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
496
+ }
497
+ function isForwardRef(object) {
498
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
499
+ }
500
+ function isFragment(object) {
501
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
502
+ }
503
+ function isLazy(object) {
504
+ return typeOf(object) === REACT_LAZY_TYPE;
505
+ }
506
+ function isMemo(object) {
507
+ return typeOf(object) === REACT_MEMO_TYPE;
508
+ }
509
+ function isPortal(object) {
510
+ return typeOf(object) === REACT_PORTAL_TYPE;
511
+ }
512
+ function isProfiler(object) {
513
+ return typeOf(object) === REACT_PROFILER_TYPE;
514
+ }
515
+ function isStrictMode(object) {
516
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
517
+ }
518
+ function isSuspense(object) {
519
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
520
+ }
521
+
522
+ reactIs_development.AsyncMode = AsyncMode;
523
+ reactIs_development.ConcurrentMode = ConcurrentMode;
524
+ reactIs_development.ContextConsumer = ContextConsumer;
525
+ reactIs_development.ContextProvider = ContextProvider;
526
+ reactIs_development.Element = Element;
527
+ reactIs_development.ForwardRef = ForwardRef;
528
+ reactIs_development.Fragment = Fragment;
529
+ reactIs_development.Lazy = Lazy;
530
+ reactIs_development.Memo = Memo;
531
+ reactIs_development.Portal = Portal;
532
+ reactIs_development.Profiler = Profiler;
533
+ reactIs_development.StrictMode = StrictMode;
534
+ reactIs_development.Suspense = Suspense;
535
+ reactIs_development.isAsyncMode = isAsyncMode;
536
+ reactIs_development.isConcurrentMode = isConcurrentMode;
537
+ reactIs_development.isContextConsumer = isContextConsumer;
538
+ reactIs_development.isContextProvider = isContextProvider;
539
+ reactIs_development.isElement = isElement;
540
+ reactIs_development.isForwardRef = isForwardRef;
541
+ reactIs_development.isFragment = isFragment;
542
+ reactIs_development.isLazy = isLazy;
543
+ reactIs_development.isMemo = isMemo;
544
+ reactIs_development.isPortal = isPortal;
545
+ reactIs_development.isProfiler = isProfiler;
546
+ reactIs_development.isStrictMode = isStrictMode;
547
+ reactIs_development.isSuspense = isSuspense;
548
+ reactIs_development.isValidElementType = isValidElementType;
549
+ reactIs_development.typeOf = typeOf;
550
+ })();
551
+ }
552
+
553
+ if (process.env.NODE_ENV === 'production') {
554
+ reactIs.exports = reactIs_production_min;
555
+ } else {
556
+ reactIs.exports = reactIs_development;
557
+ }
558
+
559
+ /*
560
+ object-assign
561
+ (c) Sindre Sorhus
562
+ @license MIT
563
+ */
564
+ /* eslint-disable no-unused-vars */
565
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
566
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
567
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
568
+
569
+ function toObject(val) {
570
+ if (val === null || val === undefined) {
571
+ throw new TypeError('Object.assign cannot be called with null or undefined');
572
+ }
573
+
574
+ return Object(val);
575
+ }
576
+
577
+ function shouldUseNative() {
578
+ try {
579
+ if (!Object.assign) {
580
+ return false;
581
+ }
582
+
583
+ // Detect buggy property enumeration order in older V8 versions.
584
+
585
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4118
586
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
587
+ test1[5] = 'de';
588
+ if (Object.getOwnPropertyNames(test1)[0] === '5') {
589
+ return false;
590
+ }
591
+
592
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
593
+ var test2 = {};
594
+ for (var i = 0; i < 10; i++) {
595
+ test2['_' + String.fromCharCode(i)] = i;
596
+ }
597
+ var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
598
+ return test2[n];
599
+ });
600
+ if (order2.join('') !== '0123456789') {
601
+ return false;
602
+ }
603
+
604
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3056
605
+ var test3 = {};
606
+ 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
607
+ test3[letter] = letter;
608
+ });
609
+ if (Object.keys(Object.assign({}, test3)).join('') !==
610
+ 'abcdefghijklmnopqrst') {
611
+ return false;
612
+ }
613
+
614
+ return true;
615
+ } catch (err) {
616
+ // We don't expect any of the above to throw, but better to be safe.
617
+ return false;
618
+ }
619
+ }
620
+
621
+ var objectAssign = shouldUseNative() ? Object.assign : function (target, source) {
622
+ var from;
623
+ var to = toObject(target);
624
+ var symbols;
625
+
626
+ for (var s = 1; s < arguments.length; s++) {
627
+ from = Object(arguments[s]);
628
+
629
+ for (var key in from) {
630
+ if (hasOwnProperty.call(from, key)) {
631
+ to[key] = from[key];
632
+ }
633
+ }
634
+
635
+ if (getOwnPropertySymbols) {
636
+ symbols = getOwnPropertySymbols(from);
637
+ for (var i = 0; i < symbols.length; i++) {
638
+ if (propIsEnumerable.call(from, symbols[i])) {
639
+ to[symbols[i]] = from[symbols[i]];
640
+ }
641
+ }
642
+ }
643
+ }
644
+
645
+ return to;
646
+ };
647
+
648
+ /**
649
+ * Copyright (c) 2013-present, Facebook, Inc.
650
+ *
651
+ * This source code is licensed under the MIT license found in the
652
+ * LICENSE file in the root directory of this source tree.
653
+ */
654
+
655
+ var ReactPropTypesSecret$3 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
656
+
657
+ var ReactPropTypesSecret_1 = ReactPropTypesSecret$3;
658
+
659
+ var has$2 = Function.call.bind(Object.prototype.hasOwnProperty);
660
+
661
+ /**
662
+ * Copyright (c) 2013-present, Facebook, Inc.
663
+ *
664
+ * This source code is licensed under the MIT license found in the
665
+ * LICENSE file in the root directory of this source tree.
666
+ */
667
+
668
+ var printWarning$1 = function() {};
669
+
670
+ if (process.env.NODE_ENV !== 'production') {
671
+ var ReactPropTypesSecret$2 = ReactPropTypesSecret_1;
672
+ var loggedTypeFailures = {};
673
+ var has$1 = has$2;
674
+
675
+ printWarning$1 = function(text) {
676
+ var message = 'Warning: ' + text;
677
+ if (typeof console !== 'undefined') {
678
+ console.error(message);
679
+ }
680
+ try {
681
+ // --- Welcome to debugging React ---
682
+ // This error was thrown as a convenience so that you can use this stack
683
+ // to find the callsite that caused this warning to fire.
684
+ throw new Error(message);
685
+ } catch (x) { /**/ }
686
+ };
687
+ }
688
+
689
+ /**
690
+ * Assert that the values match with the type specs.
691
+ * Error messages are memorized and will only be shown once.
692
+ *
693
+ * @param {object} typeSpecs Map of name to a ReactPropType
694
+ * @param {object} values Runtime values that need to be type-checked
695
+ * @param {string} location e.g. "prop", "context", "child context"
696
+ * @param {string} componentName Name of the component for error messages.
697
+ * @param {?Function} getStack Returns the component stack.
698
+ * @private
699
+ */
700
+ function checkPropTypes$1(typeSpecs, values, location, componentName, getStack) {
701
+ if (process.env.NODE_ENV !== 'production') {
702
+ for (var typeSpecName in typeSpecs) {
703
+ if (has$1(typeSpecs, typeSpecName)) {
704
+ var error;
705
+ // Prop type validation may throw. In case they do, we don't want to
706
+ // fail the render phase where it didn't fail before. So we log it.
707
+ // After these have been cleaned up, we'll let them throw.
708
+ try {
709
+ // This is intentionally an invariant that gets caught. It's the same
710
+ // behavior as without this statement except with a better message.
711
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
712
+ var err = Error(
713
+ (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
714
+ 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
715
+ 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
716
+ );
717
+ err.name = 'Invariant Violation';
718
+ throw err;
719
+ }
720
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret$2);
721
+ } catch (ex) {
722
+ error = ex;
723
+ }
724
+ if (error && !(error instanceof Error)) {
725
+ printWarning$1(
726
+ (componentName || 'React class') + ': type specification of ' +
727
+ location + ' `' + typeSpecName + '` is invalid; the type checker ' +
728
+ 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
729
+ 'You may have forgotten to pass an argument to the type checker ' +
730
+ 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
731
+ 'shape all require an argument).'
732
+ );
733
+ }
734
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
735
+ // Only monitor this failure once because there tends to be a lot of the
736
+ // same error.
737
+ loggedTypeFailures[error.message] = true;
738
+
739
+ var stack = getStack ? getStack() : '';
740
+
741
+ printWarning$1(
742
+ 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
743
+ );
744
+ }
745
+ }
746
+ }
747
+ }
748
+ }
749
+
750
+ /**
751
+ * Resets warning cache when testing.
752
+ *
753
+ * @private
754
+ */
755
+ checkPropTypes$1.resetWarningCache = function() {
756
+ if (process.env.NODE_ENV !== 'production') {
757
+ loggedTypeFailures = {};
758
+ }
759
+ };
760
+
761
+ var checkPropTypes_1 = checkPropTypes$1;
762
+
763
+ /**
764
+ * Copyright (c) 2013-present, Facebook, Inc.
765
+ *
766
+ * This source code is licensed under the MIT license found in the
767
+ * LICENSE file in the root directory of this source tree.
768
+ */
769
+
770
+ var ReactIs$1 = reactIs.exports;
771
+ var assign = objectAssign;
772
+
773
+ var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
774
+ var has = has$2;
775
+ var checkPropTypes = checkPropTypes_1;
776
+
777
+ var printWarning = function() {};
778
+
779
+ if (process.env.NODE_ENV !== 'production') {
780
+ printWarning = function(text) {
781
+ var message = 'Warning: ' + text;
782
+ if (typeof console !== 'undefined') {
783
+ console.error(message);
784
+ }
785
+ try {
786
+ // --- Welcome to debugging React ---
787
+ // This error was thrown as a convenience so that you can use this stack
788
+ // to find the callsite that caused this warning to fire.
789
+ throw new Error(message);
790
+ } catch (x) {}
791
+ };
792
+ }
793
+
794
+ function emptyFunctionThatReturnsNull() {
795
+ return null;
796
+ }
797
+
798
+ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
799
+ /* global Symbol */
800
+ var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
801
+ var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
802
+
803
+ /**
804
+ * Returns the iterator method function contained on the iterable object.
805
+ *
806
+ * Be sure to invoke the function with the iterable as context:
807
+ *
808
+ * var iteratorFn = getIteratorFn(myIterable);
809
+ * if (iteratorFn) {
810
+ * var iterator = iteratorFn.call(myIterable);
811
+ * ...
812
+ * }
813
+ *
814
+ * @param {?object} maybeIterable
815
+ * @return {?function}
816
+ */
817
+ function getIteratorFn(maybeIterable) {
818
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
819
+ if (typeof iteratorFn === 'function') {
820
+ return iteratorFn;
821
+ }
822
+ }
823
+
824
+ /**
825
+ * Collection of methods that allow declaration and validation of props that are
826
+ * supplied to React components. Example usage:
827
+ *
828
+ * var Props = require('ReactPropTypes');
829
+ * var MyArticle = React.createClass({
830
+ * propTypes: {
831
+ * // An optional string prop named "description".
832
+ * description: Props.string,
833
+ *
834
+ * // A required enum prop named "category".
835
+ * category: Props.oneOf(['News','Photos']).isRequired,
836
+ *
837
+ * // A prop named "dialog" that requires an instance of Dialog.
838
+ * dialog: Props.instanceOf(Dialog).isRequired
839
+ * },
840
+ * render: function() { ... }
841
+ * });
842
+ *
843
+ * A more formal specification of how these methods are used:
844
+ *
845
+ * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
846
+ * decl := ReactPropTypes.{type}(.isRequired)?
847
+ *
848
+ * Each and every declaration produces a function with the same signature. This
849
+ * allows the creation of custom validation functions. For example:
850
+ *
851
+ * var MyLink = React.createClass({
852
+ * propTypes: {
853
+ * // An optional string or URI prop named "href".
854
+ * href: function(props, propName, componentName) {
855
+ * var propValue = props[propName];
856
+ * if (propValue != null && typeof propValue !== 'string' &&
857
+ * !(propValue instanceof URI)) {
858
+ * return new Error(
859
+ * 'Expected a string or an URI for ' + propName + ' in ' +
860
+ * componentName
861
+ * );
862
+ * }
863
+ * }
864
+ * },
865
+ * render: function() {...}
866
+ * });
867
+ *
868
+ * @internal
869
+ */
870
+
871
+ var ANONYMOUS = '<<anonymous>>';
872
+
873
+ // Important!
874
+ // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
875
+ var ReactPropTypes = {
876
+ array: createPrimitiveTypeChecker('array'),
877
+ bigint: createPrimitiveTypeChecker('bigint'),
878
+ bool: createPrimitiveTypeChecker('boolean'),
879
+ func: createPrimitiveTypeChecker('function'),
880
+ number: createPrimitiveTypeChecker('number'),
881
+ object: createPrimitiveTypeChecker('object'),
882
+ string: createPrimitiveTypeChecker('string'),
883
+ symbol: createPrimitiveTypeChecker('symbol'),
884
+
885
+ any: createAnyTypeChecker(),
886
+ arrayOf: createArrayOfTypeChecker,
887
+ element: createElementTypeChecker(),
888
+ elementType: createElementTypeTypeChecker(),
889
+ instanceOf: createInstanceTypeChecker,
890
+ node: createNodeChecker(),
891
+ objectOf: createObjectOfTypeChecker,
892
+ oneOf: createEnumTypeChecker,
893
+ oneOfType: createUnionTypeChecker,
894
+ shape: createShapeTypeChecker,
895
+ exact: createStrictShapeTypeChecker,
896
+ };
897
+
898
+ /**
899
+ * inlined Object.is polyfill to avoid requiring consumers ship their own
900
+ * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
901
+ */
902
+ /*eslint-disable no-self-compare*/
903
+ function is(x, y) {
904
+ // SameValue algorithm
905
+ if (x === y) {
906
+ // Steps 1-5, 7-10
907
+ // Steps 6.b-6.e: +0 != -0
908
+ return x !== 0 || 1 / x === 1 / y;
909
+ } else {
910
+ // Step 6.a: NaN == NaN
911
+ return x !== x && y !== y;
912
+ }
913
+ }
914
+ /*eslint-enable no-self-compare*/
915
+
916
+ /**
917
+ * We use an Error-like object for backward compatibility as people may call
918
+ * PropTypes directly and inspect their output. However, we don't use real
919
+ * Errors anymore. We don't inspect their stack anyway, and creating them
920
+ * is prohibitively expensive if they are created too often, such as what
921
+ * happens in oneOfType() for any type before the one that matched.
922
+ */
923
+ function PropTypeError(message, data) {
924
+ this.message = message;
925
+ this.data = data && typeof data === 'object' ? data: {};
926
+ this.stack = '';
927
+ }
928
+ // Make `instanceof Error` still work for returned errors.
929
+ PropTypeError.prototype = Error.prototype;
930
+
931
+ function createChainableTypeChecker(validate) {
932
+ if (process.env.NODE_ENV !== 'production') {
933
+ var manualPropTypeCallCache = {};
934
+ var manualPropTypeWarningCount = 0;
935
+ }
936
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
937
+ componentName = componentName || ANONYMOUS;
938
+ propFullName = propFullName || propName;
939
+
940
+ if (secret !== ReactPropTypesSecret$1) {
941
+ if (throwOnDirectAccess) {
942
+ // New behavior only for users of `prop-types` package
943
+ var err = new Error(
944
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
945
+ 'Use `PropTypes.checkPropTypes()` to call them. ' +
946
+ 'Read more at http://fb.me/use-check-prop-types'
947
+ );
948
+ err.name = 'Invariant Violation';
949
+ throw err;
950
+ } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {
951
+ // Old behavior for people using React.PropTypes
952
+ var cacheKey = componentName + ':' + propName;
953
+ if (
954
+ !manualPropTypeCallCache[cacheKey] &&
955
+ // Avoid spamming the console because they are often not actionable except for lib authors
956
+ manualPropTypeWarningCount < 3
957
+ ) {
958
+ printWarning(
959
+ 'You are manually calling a React.PropTypes validation ' +
960
+ 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
961
+ 'and will throw in the standalone `prop-types` package. ' +
962
+ 'You may be seeing this warning due to a third-party PropTypes ' +
963
+ 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
964
+ );
965
+ manualPropTypeCallCache[cacheKey] = true;
966
+ manualPropTypeWarningCount++;
967
+ }
968
+ }
969
+ }
970
+ if (props[propName] == null) {
971
+ if (isRequired) {
972
+ if (props[propName] === null) {
973
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
974
+ }
975
+ return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
976
+ }
977
+ return null;
978
+ } else {
979
+ return validate(props, propName, componentName, location, propFullName);
980
+ }
981
+ }
982
+
983
+ var chainedCheckType = checkType.bind(null, false);
984
+ chainedCheckType.isRequired = checkType.bind(null, true);
985
+
986
+ return chainedCheckType;
987
+ }
988
+
989
+ function createPrimitiveTypeChecker(expectedType) {
990
+ function validate(props, propName, componentName, location, propFullName, secret) {
991
+ var propValue = props[propName];
992
+ var propType = getPropType(propValue);
993
+ if (propType !== expectedType) {
994
+ // `propValue` being instance of, say, date/regexp, pass the 'object'
995
+ // check, but we can offer a more precise error message here rather than
996
+ // 'of type `object`'.
997
+ var preciseType = getPreciseType(propValue);
998
+
999
+ return new PropTypeError(
1000
+ 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
1001
+ {expectedType: expectedType}
1002
+ );
1003
+ }
1004
+ return null;
1005
+ }
1006
+ return createChainableTypeChecker(validate);
1007
+ }
1008
+
1009
+ function createAnyTypeChecker() {
1010
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
1011
+ }
1012
+
1013
+ function createArrayOfTypeChecker(typeChecker) {
1014
+ function validate(props, propName, componentName, location, propFullName) {
1015
+ if (typeof typeChecker !== 'function') {
1016
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
1017
+ }
1018
+ var propValue = props[propName];
1019
+ if (!Array.isArray(propValue)) {
1020
+ var propType = getPropType(propValue);
1021
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
1022
+ }
1023
+ for (var i = 0; i < propValue.length; i++) {
1024
+ var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret$1);
1025
+ if (error instanceof Error) {
1026
+ return error;
1027
+ }
1028
+ }
1029
+ return null;
1030
+ }
1031
+ return createChainableTypeChecker(validate);
1032
+ }
1033
+
1034
+ function createElementTypeChecker() {
1035
+ function validate(props, propName, componentName, location, propFullName) {
1036
+ var propValue = props[propName];
1037
+ if (!isValidElement(propValue)) {
1038
+ var propType = getPropType(propValue);
1039
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
1040
+ }
1041
+ return null;
1042
+ }
1043
+ return createChainableTypeChecker(validate);
1044
+ }
1045
+
1046
+ function createElementTypeTypeChecker() {
1047
+ function validate(props, propName, componentName, location, propFullName) {
1048
+ var propValue = props[propName];
1049
+ if (!ReactIs$1.isValidElementType(propValue)) {
1050
+ var propType = getPropType(propValue);
1051
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));
1052
+ }
1053
+ return null;
1054
+ }
1055
+ return createChainableTypeChecker(validate);
1056
+ }
1057
+
1058
+ function createInstanceTypeChecker(expectedClass) {
1059
+ function validate(props, propName, componentName, location, propFullName) {
1060
+ if (!(props[propName] instanceof expectedClass)) {
1061
+ var expectedClassName = expectedClass.name || ANONYMOUS;
1062
+ var actualClassName = getClassName(props[propName]);
1063
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
1064
+ }
1065
+ return null;
1066
+ }
1067
+ return createChainableTypeChecker(validate);
1068
+ }
1069
+
1070
+ function createEnumTypeChecker(expectedValues) {
1071
+ if (!Array.isArray(expectedValues)) {
1072
+ if (process.env.NODE_ENV !== 'production') {
1073
+ if (arguments.length > 1) {
1074
+ printWarning(
1075
+ 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +
1076
+ 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'
1077
+ );
1078
+ } else {
1079
+ printWarning('Invalid argument supplied to oneOf, expected an array.');
1080
+ }
1081
+ }
1082
+ return emptyFunctionThatReturnsNull;
1083
+ }
1084
+
1085
+ function validate(props, propName, componentName, location, propFullName) {
1086
+ var propValue = props[propName];
1087
+ for (var i = 0; i < expectedValues.length; i++) {
1088
+ if (is(propValue, expectedValues[i])) {
1089
+ return null;
1090
+ }
1091
+ }
1092
+
1093
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
1094
+ var type = getPreciseType(value);
1095
+ if (type === 'symbol') {
1096
+ return String(value);
1097
+ }
1098
+ return value;
1099
+ });
1100
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
1101
+ }
1102
+ return createChainableTypeChecker(validate);
1103
+ }
1104
+
1105
+ function createObjectOfTypeChecker(typeChecker) {
1106
+ function validate(props, propName, componentName, location, propFullName) {
1107
+ if (typeof typeChecker !== 'function') {
1108
+ return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
1109
+ }
1110
+ var propValue = props[propName];
1111
+ var propType = getPropType(propValue);
1112
+ if (propType !== 'object') {
1113
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
1114
+ }
1115
+ for (var key in propValue) {
1116
+ if (has(propValue, key)) {
1117
+ var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1118
+ if (error instanceof Error) {
1119
+ return error;
1120
+ }
1121
+ }
1122
+ }
1123
+ return null;
1124
+ }
1125
+ return createChainableTypeChecker(validate);
1126
+ }
1127
+
1128
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
1129
+ if (!Array.isArray(arrayOfTypeCheckers)) {
1130
+ process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
1131
+ return emptyFunctionThatReturnsNull;
1132
+ }
1133
+
1134
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1135
+ var checker = arrayOfTypeCheckers[i];
1136
+ if (typeof checker !== 'function') {
1137
+ printWarning(
1138
+ 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +
1139
+ 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'
1140
+ );
1141
+ return emptyFunctionThatReturnsNull;
1142
+ }
1143
+ }
1144
+
1145
+ function validate(props, propName, componentName, location, propFullName) {
1146
+ var expectedTypes = [];
1147
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
1148
+ var checker = arrayOfTypeCheckers[i];
1149
+ var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret$1);
1150
+ if (checkerResult == null) {
1151
+ return null;
1152
+ }
1153
+ if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
1154
+ expectedTypes.push(checkerResult.data.expectedType);
1155
+ }
1156
+ }
1157
+ var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
1158
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
1159
+ }
1160
+ return createChainableTypeChecker(validate);
1161
+ }
1162
+
1163
+ function createNodeChecker() {
1164
+ function validate(props, propName, componentName, location, propFullName) {
1165
+ if (!isNode(props[propName])) {
1166
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
1167
+ }
1168
+ return null;
1169
+ }
1170
+ return createChainableTypeChecker(validate);
1171
+ }
1172
+
1173
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
1174
+ return new PropTypeError(
1175
+ (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
1176
+ 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
1177
+ );
1178
+ }
1179
+
1180
+ function createShapeTypeChecker(shapeTypes) {
1181
+ function validate(props, propName, componentName, location, propFullName) {
1182
+ var propValue = props[propName];
1183
+ var propType = getPropType(propValue);
1184
+ if (propType !== 'object') {
1185
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1186
+ }
1187
+ for (var key in shapeTypes) {
1188
+ var checker = shapeTypes[key];
1189
+ if (typeof checker !== 'function') {
1190
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1191
+ }
1192
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1193
+ if (error) {
1194
+ return error;
1195
+ }
1196
+ }
1197
+ return null;
1198
+ }
1199
+ return createChainableTypeChecker(validate);
1200
+ }
1201
+
1202
+ function createStrictShapeTypeChecker(shapeTypes) {
1203
+ function validate(props, propName, componentName, location, propFullName) {
1204
+ var propValue = props[propName];
1205
+ var propType = getPropType(propValue);
1206
+ if (propType !== 'object') {
1207
+ return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
1208
+ }
1209
+ // We need to check all keys in case some are required but missing from props.
1210
+ var allKeys = assign({}, props[propName], shapeTypes);
1211
+ for (var key in allKeys) {
1212
+ var checker = shapeTypes[key];
1213
+ if (has(shapeTypes, key) && typeof checker !== 'function') {
1214
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
1215
+ }
1216
+ if (!checker) {
1217
+ return new PropTypeError(
1218
+ 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
1219
+ '\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
1220
+ '\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
1221
+ );
1222
+ }
1223
+ var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret$1);
1224
+ if (error) {
1225
+ return error;
1226
+ }
1227
+ }
1228
+ return null;
1229
+ }
1230
+
1231
+ return createChainableTypeChecker(validate);
1232
+ }
1233
+
1234
+ function isNode(propValue) {
1235
+ switch (typeof propValue) {
1236
+ case 'number':
1237
+ case 'string':
1238
+ case 'undefined':
1239
+ return true;
1240
+ case 'boolean':
1241
+ return !propValue;
1242
+ case 'object':
1243
+ if (Array.isArray(propValue)) {
1244
+ return propValue.every(isNode);
1245
+ }
1246
+ if (propValue === null || isValidElement(propValue)) {
1247
+ return true;
1248
+ }
1249
+
1250
+ var iteratorFn = getIteratorFn(propValue);
1251
+ if (iteratorFn) {
1252
+ var iterator = iteratorFn.call(propValue);
1253
+ var step;
1254
+ if (iteratorFn !== propValue.entries) {
1255
+ while (!(step = iterator.next()).done) {
1256
+ if (!isNode(step.value)) {
1257
+ return false;
1258
+ }
1259
+ }
1260
+ } else {
1261
+ // Iterator will provide entry [k,v] tuples rather than values.
1262
+ while (!(step = iterator.next()).done) {
1263
+ var entry = step.value;
1264
+ if (entry) {
1265
+ if (!isNode(entry[1])) {
1266
+ return false;
1267
+ }
1268
+ }
1269
+ }
1270
+ }
1271
+ } else {
1272
+ return false;
1273
+ }
1274
+
1275
+ return true;
1276
+ default:
1277
+ return false;
1278
+ }
1279
+ }
1280
+
1281
+ function isSymbol(propType, propValue) {
1282
+ // Native Symbol.
1283
+ if (propType === 'symbol') {
1284
+ return true;
1285
+ }
1286
+
1287
+ // falsy value can't be a Symbol
1288
+ if (!propValue) {
1289
+ return false;
1290
+ }
1291
+
1292
+ // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
1293
+ if (propValue['@@toStringTag'] === 'Symbol') {
1294
+ return true;
1295
+ }
1296
+
1297
+ // Fallback for non-spec compliant Symbols which are polyfilled.
1298
+ if (typeof Symbol === 'function' && propValue instanceof Symbol) {
1299
+ return true;
1300
+ }
1301
+
1302
+ return false;
1303
+ }
1304
+
1305
+ // Equivalent of `typeof` but with special handling for array and regexp.
1306
+ function getPropType(propValue) {
1307
+ var propType = typeof propValue;
1308
+ if (Array.isArray(propValue)) {
1309
+ return 'array';
1310
+ }
1311
+ if (propValue instanceof RegExp) {
1312
+ // Old webkits (at least until Android 4.0) return 'function' rather than
1313
+ // 'object' for typeof a RegExp. We'll normalize this here so that /bla/
1314
+ // passes PropTypes.object.
1315
+ return 'object';
1316
+ }
1317
+ if (isSymbol(propType, propValue)) {
1318
+ return 'symbol';
1319
+ }
1320
+ return propType;
1321
+ }
1322
+
1323
+ // This handles more types than `getPropType`. Only used for error messages.
1324
+ // See `createPrimitiveTypeChecker`.
1325
+ function getPreciseType(propValue) {
1326
+ if (typeof propValue === 'undefined' || propValue === null) {
1327
+ return '' + propValue;
1328
+ }
1329
+ var propType = getPropType(propValue);
1330
+ if (propType === 'object') {
1331
+ if (propValue instanceof Date) {
1332
+ return 'date';
1333
+ } else if (propValue instanceof RegExp) {
1334
+ return 'regexp';
1335
+ }
1336
+ }
1337
+ return propType;
1338
+ }
1339
+
1340
+ // Returns a string that is postfixed to a warning about an invalid type.
1341
+ // For example, "undefined" or "of type array"
1342
+ function getPostfixForTypeWarning(value) {
1343
+ var type = getPreciseType(value);
1344
+ switch (type) {
1345
+ case 'array':
1346
+ case 'object':
1347
+ return 'an ' + type;
1348
+ case 'boolean':
1349
+ case 'date':
1350
+ case 'regexp':
1351
+ return 'a ' + type;
1352
+ default:
1353
+ return type;
1354
+ }
1355
+ }
1356
+
1357
+ // Returns class name of the object, if any.
1358
+ function getClassName(propValue) {
1359
+ if (!propValue.constructor || !propValue.constructor.name) {
1360
+ return ANONYMOUS;
1361
+ }
1362
+ return propValue.constructor.name;
1363
+ }
1364
+
1365
+ ReactPropTypes.checkPropTypes = checkPropTypes;
1366
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
1367
+ ReactPropTypes.PropTypes = ReactPropTypes;
1368
+
1369
+ return ReactPropTypes;
1370
+ };
1371
+
1372
+ /**
1373
+ * Copyright (c) 2013-present, Facebook, Inc.
1374
+ *
1375
+ * This source code is licensed under the MIT license found in the
1376
+ * LICENSE file in the root directory of this source tree.
1377
+ */
1378
+
1379
+ var ReactPropTypesSecret = ReactPropTypesSecret_1;
1380
+
1381
+ function emptyFunction() {}
1382
+ function emptyFunctionWithReset() {}
1383
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
1384
+
1385
+ var factoryWithThrowingShims = function() {
1386
+ function shim(props, propName, componentName, location, propFullName, secret) {
1387
+ if (secret === ReactPropTypesSecret) {
1388
+ // It is still safe when called from React.
1389
+ return;
1390
+ }
1391
+ var err = new Error(
1392
+ 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
1393
+ 'Use PropTypes.checkPropTypes() to call them. ' +
1394
+ 'Read more at http://fb.me/use-check-prop-types'
1395
+ );
1396
+ err.name = 'Invariant Violation';
1397
+ throw err;
1398
+ } shim.isRequired = shim;
1399
+ function getShim() {
1400
+ return shim;
1401
+ } // Important!
1402
+ // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
1403
+ var ReactPropTypes = {
1404
+ array: shim,
1405
+ bigint: shim,
1406
+ bool: shim,
1407
+ func: shim,
1408
+ number: shim,
1409
+ object: shim,
1410
+ string: shim,
1411
+ symbol: shim,
1412
+
1413
+ any: shim,
1414
+ arrayOf: getShim,
1415
+ element: shim,
1416
+ elementType: shim,
1417
+ instanceOf: getShim,
1418
+ node: shim,
1419
+ objectOf: getShim,
1420
+ oneOf: getShim,
1421
+ oneOfType: getShim,
1422
+ shape: getShim,
1423
+ exact: getShim,
1424
+
1425
+ checkPropTypes: emptyFunctionWithReset,
1426
+ resetWarningCache: emptyFunction
1427
+ };
1428
+
1429
+ ReactPropTypes.PropTypes = ReactPropTypes;
1430
+
1431
+ return ReactPropTypes;
1432
+ };
1433
+
1434
+ /**
1435
+ * Copyright (c) 2013-present, Facebook, Inc.
1436
+ *
1437
+ * This source code is licensed under the MIT license found in the
1438
+ * LICENSE file in the root directory of this source tree.
1439
+ */
1440
+
1441
+ if (process.env.NODE_ENV !== 'production') {
1442
+ var ReactIs = reactIs.exports;
1443
+
1444
+ // By explicitly using `prop-types` you are opting into new development behavior.
1445
+ // http://fb.me/prop-types-in-prod
1446
+ var throwOnDirectAccess = true;
1447
+ propTypes$1.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1448
+ } else {
1449
+ // By explicitly using `prop-types` you are opting into new production behavior.
1450
+ // http://fb.me/prop-types-in-prod
1451
+ propTypes$1.exports = factoryWithThrowingShims();
1452
+ }
1453
+
1454
+ var __create$5 = Object.create;
1455
+ var __defProp$6 = Object.defineProperty;
1456
+ var __getOwnPropDesc$6 = Object.getOwnPropertyDescriptor;
1457
+ var __getOwnPropNames$6 = Object.getOwnPropertyNames;
1458
+ var __getProtoOf$5 = Object.getPrototypeOf;
1459
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
1460
+ var __export$6 = (target, all) => {
1461
+ for (var name in all)
1462
+ __defProp$6(target, name, { get: all[name], enumerable: true });
1463
+ };
1464
+ var __copyProps$6 = (to, from, except, desc) => {
1465
+ if (from && typeof from === "object" || typeof from === "function") {
1466
+ for (let key of __getOwnPropNames$6(from))
1467
+ if (!__hasOwnProp$6.call(to, key) && key !== except)
1468
+ __defProp$6(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc$6(from, key)) || desc.enumerable });
1469
+ }
1470
+ return to;
1471
+ };
1472
+ var __toESM$5 = (mod, isNodeMode, target) => (target = mod != null ? __create$5(__getProtoOf$5(mod)) : {}, __copyProps$6(
1473
+ // If the importer is in node compatibility mode or this is not an ESM
1474
+ // file that has been converted to a CommonJS file using a Babel-
1475
+ // compatible transform (i.e. "__esModule" has not been set), then set
1476
+ // "default" to the CommonJS "module.exports" for node compatibility.
1477
+ isNodeMode || !mod || !mod.__esModule ? __defProp$6(target, "default", { value: mod, enumerable: true }) : target,
1478
+ mod
1479
+ ));
1480
+ var __toCommonJS$6 = (mod) => __copyProps$6(__defProp$6({}, "__esModule", { value: true }), mod);
1481
+ var props_exports = {};
1482
+ __export$6(props_exports, {
1483
+ defaultProps: () => defaultProps,
1484
+ propTypes: () => propTypes
1485
+ });
1486
+ var props = __toCommonJS$6(props_exports);
1487
+ var import_prop_types = __toESM$5(propTypes$1.exports);
1488
+ const { string, bool, number, array, oneOfType, shape, object, func, node } = import_prop_types.default;
1489
+ const propTypes = {
1490
+ url: oneOfType([string, array, object]),
1491
+ playing: bool,
1492
+ loop: bool,
1493
+ controls: bool,
1494
+ volume: number,
1495
+ muted: bool,
1496
+ playbackRate: number,
1497
+ width: oneOfType([string, number]),
1498
+ height: oneOfType([string, number]),
1499
+ style: object,
1500
+ progressInterval: number,
1501
+ playsinline: bool,
1502
+ pip: bool,
1503
+ stopOnUnmount: bool,
1504
+ light: oneOfType([bool, string, object]),
1505
+ playIcon: node,
1506
+ previewTabIndex: number,
1507
+ previewAriaLabel: string,
1508
+ fallback: node,
1509
+ oEmbedUrl: string,
1510
+ wrapper: oneOfType([
1511
+ string,
1512
+ func,
1513
+ shape({ render: func.isRequired })
1514
+ ]),
1515
+ config: shape({
1516
+ soundcloud: shape({
1517
+ options: object
1518
+ }),
1519
+ youtube: shape({
1520
+ playerVars: object,
1521
+ embedOptions: object,
1522
+ onUnstarted: func
1523
+ }),
1524
+ facebook: shape({
1525
+ appId: string,
1526
+ version: string,
1527
+ playerId: string,
1528
+ attributes: object
1529
+ }),
1530
+ dailymotion: shape({
1531
+ params: object
1532
+ }),
1533
+ vimeo: shape({
1534
+ playerOptions: object,
1535
+ title: string
1536
+ }),
1537
+ mux: shape({
1538
+ attributes: object,
1539
+ version: string
1540
+ }),
1541
+ file: shape({
1542
+ attributes: object,
1543
+ tracks: array,
1544
+ forceVideo: bool,
1545
+ forceAudio: bool,
1546
+ forceHLS: bool,
1547
+ forceSafariHLS: bool,
1548
+ forceDisableHls: bool,
1549
+ forceDASH: bool,
1550
+ forceFLV: bool,
1551
+ hlsOptions: object,
1552
+ hlsVersion: string,
1553
+ dashVersion: string,
1554
+ flvVersion: string
1555
+ }),
1556
+ wistia: shape({
1557
+ options: object,
1558
+ playerId: string,
1559
+ customControls: array
1560
+ }),
1561
+ mixcloud: shape({
1562
+ options: object
1563
+ }),
1564
+ twitch: shape({
1565
+ options: object,
1566
+ playerId: string
1567
+ }),
1568
+ vidyard: shape({
1569
+ options: object
1570
+ })
1571
+ }),
1572
+ onReady: func,
1573
+ onStart: func,
1574
+ onPlay: func,
1575
+ onPause: func,
1576
+ onBuffer: func,
1577
+ onBufferEnd: func,
1578
+ onEnded: func,
1579
+ onError: func,
1580
+ onDuration: func,
1581
+ onSeek: func,
1582
+ onPlaybackRateChange: func,
1583
+ onPlaybackQualityChange: func,
1584
+ onProgress: func,
1585
+ onClickPreview: func,
1586
+ onEnablePIP: func,
1587
+ onDisablePIP: func
1588
+ };
1589
+ const noop = () => {
1590
+ };
1591
+ const defaultProps = {
1592
+ playing: false,
1593
+ loop: false,
1594
+ controls: false,
1595
+ volume: null,
1596
+ muted: false,
1597
+ playbackRate: 1,
1598
+ width: "640px",
1599
+ height: "360px",
1600
+ style: {},
1601
+ progressInterval: 1e3,
1602
+ playsinline: false,
1603
+ pip: false,
1604
+ stopOnUnmount: true,
1605
+ light: false,
1606
+ fallback: null,
1607
+ wrapper: "div",
1608
+ previewTabIndex: 0,
1609
+ previewAriaLabel: "",
1610
+ oEmbedUrl: "https://noembed.com/embed?url={url}",
1611
+ config: {
1612
+ soundcloud: {
1613
+ options: {
1614
+ visual: true,
1615
+ // Undocumented, but makes player fill container and look better
1616
+ buying: false,
1617
+ liking: false,
1618
+ download: false,
1619
+ sharing: false,
1620
+ show_comments: false,
1621
+ show_playcount: false
1622
+ }
1623
+ },
1624
+ youtube: {
1625
+ playerVars: {
1626
+ playsinline: 1,
1627
+ showinfo: 0,
1628
+ rel: 0,
1629
+ iv_load_policy: 3,
1630
+ modestbranding: 1
1631
+ },
1632
+ embedOptions: {},
1633
+ onUnstarted: noop
1634
+ },
1635
+ facebook: {
1636
+ appId: "1309697205772819",
1637
+ version: "v3.3",
1638
+ playerId: null,
1639
+ attributes: {}
1640
+ },
1641
+ dailymotion: {
1642
+ params: {
1643
+ api: 1,
1644
+ "endscreen-enable": false
1645
+ }
1646
+ },
1647
+ vimeo: {
1648
+ playerOptions: {
1649
+ autopause: false,
1650
+ byline: false,
1651
+ portrait: false,
1652
+ title: false
1653
+ },
1654
+ title: null
1655
+ },
1656
+ mux: {
1657
+ attributes: {},
1658
+ version: "2"
1659
+ },
1660
+ file: {
1661
+ attributes: {},
1662
+ tracks: [],
1663
+ forceVideo: false,
1664
+ forceAudio: false,
1665
+ forceHLS: false,
1666
+ forceDASH: false,
1667
+ forceFLV: false,
1668
+ hlsOptions: {},
1669
+ hlsVersion: "1.1.4",
1670
+ dashVersion: "3.1.3",
1671
+ flvVersion: "1.5.0",
1672
+ forceDisableHls: false
1673
+ },
1674
+ wistia: {
1675
+ options: {},
1676
+ playerId: null,
1677
+ customControls: null
1678
+ },
1679
+ mixcloud: {
1680
+ options: {
1681
+ hide_cover: 1
1682
+ }
1683
+ },
1684
+ twitch: {
1685
+ options: {},
1686
+ playerId: null
1687
+ },
1688
+ vidyard: {
1689
+ options: {}
1690
+ }
1691
+ },
1692
+ onReady: noop,
1693
+ onStart: noop,
1694
+ onPlay: noop,
1695
+ onPause: noop,
1696
+ onBuffer: noop,
1697
+ onBufferEnd: noop,
1698
+ onEnded: noop,
1699
+ onError: noop,
1700
+ onDuration: noop,
1701
+ onSeek: noop,
1702
+ onPlaybackRateChange: noop,
1703
+ onPlaybackQualityChange: noop,
1704
+ onProgress: noop,
1705
+ onClickPreview: noop,
1706
+ onEnablePIP: noop,
1707
+ onDisablePIP: noop
1708
+ };
1709
+
1710
+ var loadScript = function load (src, opts, cb) {
1711
+ var head = document.head || document.getElementsByTagName('head')[0];
1712
+ var script = document.createElement('script');
1713
+
1714
+ if (typeof opts === 'function') {
1715
+ cb = opts;
1716
+ opts = {};
1717
+ }
1718
+
1719
+ opts = opts || {};
1720
+ cb = cb || function() {};
1721
+
1722
+ script.type = opts.type || 'text/javascript';
1723
+ script.charset = opts.charset || 'utf8';
1724
+ script.async = 'async' in opts ? !!opts.async : true;
1725
+ script.src = src;
1726
+
1727
+ if (opts.attrs) {
1728
+ setAttributes(script, opts.attrs);
1729
+ }
1730
+
1731
+ if (opts.text) {
1732
+ script.text = '' + opts.text;
1733
+ }
1734
+
1735
+ var onend = 'onload' in script ? stdOnEnd : ieOnEnd;
1736
+ onend(script, cb);
1737
+
1738
+ // some good legacy browsers (firefox) fail the 'in' detection above
1739
+ // so as a fallback we always set onload
1740
+ // old IE will ignore this and new IE will set onload
1741
+ if (!script.onload) {
1742
+ stdOnEnd(script, cb);
1743
+ }
1744
+
1745
+ head.appendChild(script);
1746
+ };
1747
+
1748
+ function setAttributes(script, attrs) {
1749
+ for (var attr in attrs) {
1750
+ script.setAttribute(attr, attrs[attr]);
1751
+ }
1752
+ }
1753
+
1754
+ function stdOnEnd (script, cb) {
1755
+ script.onload = function () {
1756
+ this.onerror = this.onload = null;
1757
+ cb(null, script);
1758
+ };
1759
+ script.onerror = function () {
1760
+ // this.onload = null here is necessary
1761
+ // because even IE9 works not like others
1762
+ this.onerror = this.onload = null;
1763
+ cb(new Error('Failed to load ' + this.src), script);
1764
+ };
1765
+ }
1766
+
1767
+ function ieOnEnd (script, cb) {
1768
+ script.onreadystatechange = function () {
1769
+ if (this.readyState != 'complete' && this.readyState != 'loaded') return
1770
+ this.onreadystatechange = null;
1771
+ cb(null, script); // there is no way to catch loading errors in IE8
1772
+ };
1773
+ }
1774
+
1775
+ var __create$4 = Object.create;
1776
+ var __defProp$5 = Object.defineProperty;
1777
+ var __getOwnPropDesc$5 = Object.getOwnPropertyDescriptor;
1778
+ var __getOwnPropNames$5 = Object.getOwnPropertyNames;
1779
+ var __getProtoOf$4 = Object.getPrototypeOf;
1780
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
1781
+ var __export$5 = (target, all) => {
1782
+ for (var name in all)
1783
+ __defProp$5(target, name, { get: all[name], enumerable: true });
1784
+ };
1785
+ var __copyProps$5 = (to, from, except, desc) => {
1786
+ if (from && typeof from === "object" || typeof from === "function") {
1787
+ for (let key of __getOwnPropNames$5(from))
1788
+ if (!__hasOwnProp$5.call(to, key) && key !== except)
1789
+ __defProp$5(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc$5(from, key)) || desc.enumerable });
1790
+ }
1791
+ return to;
1792
+ };
1793
+ var __toESM$4 = (mod, isNodeMode, target) => (target = mod != null ? __create$4(__getProtoOf$4(mod)) : {}, __copyProps$5(
1794
+ // If the importer is in node compatibility mode or this is not an ESM
1795
+ // file that has been converted to a CommonJS file using a Babel-
1796
+ // compatible transform (i.e. "__esModule" has not been set), then set
1797
+ // "default" to the CommonJS "module.exports" for node compatibility.
1798
+ isNodeMode || !mod || !mod.__esModule ? __defProp$5(target, "default", { value: mod, enumerable: true }) : target,
1799
+ mod
1800
+ ));
1801
+ var __toCommonJS$5 = (mod) => __copyProps$5(__defProp$5({}, "__esModule", { value: true }), mod);
1802
+ var utils_exports = {};
1803
+ __export$5(utils_exports, {
1804
+ callPlayer: () => callPlayer,
1805
+ getConfig: () => getConfig,
1806
+ getSDK: () => getSDK,
1807
+ isBlobUrl: () => isBlobUrl,
1808
+ isMediaStream: () => isMediaStream,
1809
+ lazy: () => lazy,
1810
+ omit: () => omit,
1811
+ parseEndTime: () => parseEndTime,
1812
+ parseStartTime: () => parseStartTime,
1813
+ queryString: () => queryString,
1814
+ randomString: () => randomString,
1815
+ supportsWebKitPresentationMode: () => supportsWebKitPresentationMode
1816
+ });
1817
+ var utils = __toCommonJS$5(utils_exports);
1818
+ var import_react$4 = __toESM$4(React__default["default"]);
1819
+ var import_load_script = __toESM$4(loadScript);
1820
+ var import_deepmerge$1 = __toESM$4(cjs);
1821
+ const lazy = (componentImportFn) => import_react$4.default.lazy(async () => {
1822
+ const obj = await componentImportFn();
1823
+ return typeof obj.default === "function" ? obj : obj.default;
1824
+ });
1825
+ const MATCH_START_QUERY = /[?&#](?:start|t)=([0-9hms]+)/;
1826
+ const MATCH_END_QUERY = /[?&#]end=([0-9hms]+)/;
1827
+ const MATCH_START_STAMP = /(\d+)(h|m|s)/g;
1828
+ const MATCH_NUMERIC = /^\d+$/;
1829
+ function parseTimeParam(url, pattern) {
1830
+ if (url instanceof Array) {
1831
+ return void 0;
1832
+ }
1833
+ const match = url.match(pattern);
1834
+ if (match) {
1835
+ const stamp = match[1];
1836
+ if (stamp.match(MATCH_START_STAMP)) {
1837
+ return parseTimeString(stamp);
1838
+ }
1839
+ if (MATCH_NUMERIC.test(stamp)) {
1840
+ return parseInt(stamp);
1841
+ }
1842
+ }
1843
+ return void 0;
1844
+ }
1845
+ function parseTimeString(stamp) {
1846
+ let seconds = 0;
1847
+ let array = MATCH_START_STAMP.exec(stamp);
1848
+ while (array !== null) {
1849
+ const [, count, period] = array;
1850
+ if (period === "h")
1851
+ seconds += parseInt(count, 10) * 60 * 60;
1852
+ if (period === "m")
1853
+ seconds += parseInt(count, 10) * 60;
1854
+ if (period === "s")
1855
+ seconds += parseInt(count, 10);
1856
+ array = MATCH_START_STAMP.exec(stamp);
1857
+ }
1858
+ return seconds;
1859
+ }
1860
+ function parseStartTime(url) {
1861
+ return parseTimeParam(url, MATCH_START_QUERY);
1862
+ }
1863
+ function parseEndTime(url) {
1864
+ return parseTimeParam(url, MATCH_END_QUERY);
1865
+ }
1866
+ function randomString() {
1867
+ return Math.random().toString(36).substr(2, 5);
1868
+ }
1869
+ function queryString(object) {
1870
+ return Object.keys(object).map((key) => `${key}=${object[key]}`).join("&");
1871
+ }
1872
+ function getGlobal(key) {
1873
+ if (window[key]) {
1874
+ return window[key];
1875
+ }
1876
+ if (window.exports && window.exports[key]) {
1877
+ return window.exports[key];
1878
+ }
1879
+ if (window.module && window.module.exports && window.module.exports[key]) {
1880
+ return window.module.exports[key];
1881
+ }
1882
+ return null;
1883
+ }
1884
+ const requests = {};
1885
+ const getSDK = enableStubOn(function getSDK2(url, sdkGlobal, sdkReady = null, isLoaded = () => true, fetchScript = import_load_script.default) {
1886
+ const existingGlobal = getGlobal(sdkGlobal);
1887
+ if (existingGlobal && isLoaded(existingGlobal)) {
1888
+ return Promise.resolve(existingGlobal);
1889
+ }
1890
+ return new Promise((resolve, reject) => {
1891
+ if (requests[url]) {
1892
+ requests[url].push({ resolve, reject });
1893
+ return;
1894
+ }
1895
+ requests[url] = [{ resolve, reject }];
1896
+ const onLoaded = (sdk) => {
1897
+ requests[url].forEach((request) => request.resolve(sdk));
1898
+ };
1899
+ if (sdkReady) {
1900
+ const previousOnReady = window[sdkReady];
1901
+ window[sdkReady] = function() {
1902
+ if (previousOnReady)
1903
+ previousOnReady();
1904
+ onLoaded(getGlobal(sdkGlobal));
1905
+ };
1906
+ }
1907
+ fetchScript(url, (err) => {
1908
+ if (err) {
1909
+ requests[url].forEach((request) => request.reject(err));
1910
+ requests[url] = null;
1911
+ } else if (!sdkReady) {
1912
+ onLoaded(getGlobal(sdkGlobal));
1913
+ }
1914
+ });
1915
+ });
1916
+ });
1917
+ function getConfig(props, defaultProps) {
1918
+ return (0, import_deepmerge$1.default)(defaultProps.config, props.config);
1919
+ }
1920
+ function omit(object, ...arrays) {
1921
+ const omitKeys = [].concat(...arrays);
1922
+ const output = {};
1923
+ const keys = Object.keys(object);
1924
+ for (const key of keys) {
1925
+ if (omitKeys.indexOf(key) === -1) {
1926
+ output[key] = object[key];
1927
+ }
1928
+ }
1929
+ return output;
1930
+ }
1931
+ function callPlayer(method, ...args) {
1932
+ if (!this.player || !this.player[method]) {
1933
+ let message = `ReactPlayer: ${this.constructor.displayName} player could not call %c${method}%c \u2013 `;
1934
+ if (!this.player) {
1935
+ message += "The player was not available";
1936
+ } else if (!this.player[method]) {
1937
+ message += "The method was not available";
1938
+ }
1939
+ console.warn(message, "font-weight: bold", "");
1940
+ return null;
1941
+ }
1942
+ return this.player[method](...args);
1943
+ }
1944
+ function isMediaStream(url) {
1945
+ return typeof window !== "undefined" && typeof window.MediaStream !== "undefined" && url instanceof window.MediaStream;
1946
+ }
1947
+ function isBlobUrl(url) {
1948
+ return /^blob:/.test(url);
1949
+ }
1950
+ function supportsWebKitPresentationMode(video = document.createElement("video")) {
1951
+ const notMobile = /iPhone|iPod/.test(navigator.userAgent) === false;
1952
+ return video.webkitSupportsPresentationMode && typeof video.webkitSetPresentationMode === "function" && notMobile;
1953
+ }
1954
+ function enableStubOn(fn) {
1955
+ return fn;
1956
+ }
1957
+
1958
+ var __create$3 = Object.create;
1959
+ var __defProp$4 = Object.defineProperty;
1960
+ var __getOwnPropDesc$4 = Object.getOwnPropertyDescriptor;
1961
+ var __getOwnPropNames$4 = Object.getOwnPropertyNames;
1962
+ var __getProtoOf$3 = Object.getPrototypeOf;
1963
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
1964
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1965
+ var __export$4 = (target, all) => {
1966
+ for (var name in all)
1967
+ __defProp$4(target, name, { get: all[name], enumerable: true });
1968
+ };
1969
+ var __copyProps$4 = (to, from, except, desc) => {
1970
+ if (from && typeof from === "object" || typeof from === "function") {
1971
+ for (let key of __getOwnPropNames$4(from))
1972
+ if (!__hasOwnProp$4.call(to, key) && key !== except)
1973
+ __defProp$4(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc$4(from, key)) || desc.enumerable });
1974
+ }
1975
+ return to;
1976
+ };
1977
+ var __toESM$3 = (mod, isNodeMode, target) => (target = mod != null ? __create$3(__getProtoOf$3(mod)) : {}, __copyProps$4(
1978
+ // If the importer is in node compatibility mode or this is not an ESM
1979
+ // file that has been converted to a CommonJS file using a Babel-
1980
+ // compatible transform (i.e. "__esModule" has not been set), then set
1981
+ // "default" to the CommonJS "module.exports" for node compatibility.
1982
+ isNodeMode || !mod || !mod.__esModule ? __defProp$4(target, "default", { value: mod, enumerable: true }) : target,
1983
+ mod
1984
+ ));
1985
+ var __toCommonJS$4 = (mod) => __copyProps$4(__defProp$4({}, "__esModule", { value: true }), mod);
1986
+ var __publicField$3 = (obj, key, value) => {
1987
+ __defNormalProp$3(obj, typeof key !== "symbol" ? key + "" : key, value);
1988
+ return value;
1989
+ };
1990
+ var Player_exports = {};
1991
+ __export$4(Player_exports, {
1992
+ default: () => Player$2
1993
+ });
1994
+ var Player_1 = __toCommonJS$4(Player_exports);
1995
+ var import_react$3 = __toESM$3(React__default["default"]);
1996
+ var import_react_fast_compare$1 = __toESM$3(reactFastCompare);
1997
+ var import_props$1 = props;
1998
+ var import_utils$4 = utils;
1999
+ const SEEK_ON_PLAY_EXPIRY = 5e3;
2000
+ class Player$2 extends import_react$3.Component {
2001
+ constructor() {
2002
+ super(...arguments);
2003
+ __publicField$3(this, "mounted", false);
2004
+ __publicField$3(this, "isReady", false);
2005
+ __publicField$3(this, "isPlaying", false);
2006
+ // Track playing state internally to prevent bugs
2007
+ __publicField$3(this, "isLoading", true);
2008
+ // Use isLoading to prevent onPause when switching URL
2009
+ __publicField$3(this, "loadOnReady", null);
2010
+ __publicField$3(this, "startOnPlay", true);
2011
+ __publicField$3(this, "seekOnPlay", null);
2012
+ __publicField$3(this, "onDurationCalled", false);
2013
+ __publicField$3(this, "handlePlayerMount", (player) => {
2014
+ if (this.player) {
2015
+ this.progress();
2016
+ return;
2017
+ }
2018
+ this.player = player;
2019
+ this.player.load(this.props.url);
2020
+ this.progress();
2021
+ });
2022
+ __publicField$3(this, "getInternalPlayer", (key) => {
2023
+ if (!this.player)
2024
+ return null;
2025
+ return this.player[key];
2026
+ });
2027
+ __publicField$3(this, "progress", () => {
2028
+ if (this.props.url && this.player && this.isReady) {
2029
+ const playedSeconds = this.getCurrentTime() || 0;
2030
+ const loadedSeconds = this.getSecondsLoaded();
2031
+ const duration = this.getDuration();
2032
+ if (duration) {
2033
+ const progress = {
2034
+ playedSeconds,
2035
+ played: playedSeconds / duration
2036
+ };
2037
+ if (loadedSeconds !== null) {
2038
+ progress.loadedSeconds = loadedSeconds;
2039
+ progress.loaded = loadedSeconds / duration;
2040
+ }
2041
+ if (progress.playedSeconds !== this.prevPlayed || progress.loadedSeconds !== this.prevLoaded) {
2042
+ this.props.onProgress(progress);
2043
+ }
2044
+ this.prevPlayed = progress.playedSeconds;
2045
+ this.prevLoaded = progress.loadedSeconds;
2046
+ }
2047
+ }
2048
+ this.progressTimeout = setTimeout(this.progress, this.props.progressFrequency || this.props.progressInterval);
2049
+ });
2050
+ __publicField$3(this, "handleReady", () => {
2051
+ if (!this.mounted)
2052
+ return;
2053
+ this.isReady = true;
2054
+ this.isLoading = false;
2055
+ const { onReady, playing, volume, muted } = this.props;
2056
+ onReady();
2057
+ if (!muted && volume !== null) {
2058
+ this.player.setVolume(volume);
2059
+ }
2060
+ if (this.loadOnReady) {
2061
+ this.player.load(this.loadOnReady, true);
2062
+ this.loadOnReady = null;
2063
+ } else if (playing) {
2064
+ this.player.play();
2065
+ }
2066
+ this.handleDurationCheck();
2067
+ });
2068
+ __publicField$3(this, "handlePlay", () => {
2069
+ this.isPlaying = true;
2070
+ this.isLoading = false;
2071
+ const { onStart, onPlay, playbackRate } = this.props;
2072
+ if (this.startOnPlay) {
2073
+ if (this.player.setPlaybackRate && playbackRate !== 1) {
2074
+ this.player.setPlaybackRate(playbackRate);
2075
+ }
2076
+ onStart();
2077
+ this.startOnPlay = false;
2078
+ }
2079
+ onPlay();
2080
+ if (this.seekOnPlay) {
2081
+ this.seekTo(this.seekOnPlay);
2082
+ this.seekOnPlay = null;
2083
+ }
2084
+ this.handleDurationCheck();
2085
+ });
2086
+ __publicField$3(this, "handlePause", (e) => {
2087
+ this.isPlaying = false;
2088
+ if (!this.isLoading) {
2089
+ this.props.onPause(e);
2090
+ }
2091
+ });
2092
+ __publicField$3(this, "handleEnded", () => {
2093
+ const { activePlayer, loop, onEnded } = this.props;
2094
+ if (activePlayer.loopOnEnded && loop) {
2095
+ this.seekTo(0);
2096
+ }
2097
+ if (!loop) {
2098
+ this.isPlaying = false;
2099
+ onEnded();
2100
+ }
2101
+ });
2102
+ __publicField$3(this, "handleError", (...args) => {
2103
+ this.isLoading = false;
2104
+ this.props.onError(...args);
2105
+ });
2106
+ __publicField$3(this, "handleDurationCheck", () => {
2107
+ clearTimeout(this.durationCheckTimeout);
2108
+ const duration = this.getDuration();
2109
+ if (duration) {
2110
+ if (!this.onDurationCalled) {
2111
+ this.props.onDuration(duration);
2112
+ this.onDurationCalled = true;
2113
+ }
2114
+ } else {
2115
+ this.durationCheckTimeout = setTimeout(this.handleDurationCheck, 100);
2116
+ }
2117
+ });
2118
+ __publicField$3(this, "handleLoaded", () => {
2119
+ this.isLoading = false;
2120
+ });
2121
+ }
2122
+ componentDidMount() {
2123
+ this.mounted = true;
2124
+ }
2125
+ componentWillUnmount() {
2126
+ clearTimeout(this.progressTimeout);
2127
+ clearTimeout(this.durationCheckTimeout);
2128
+ if (this.isReady && this.props.stopOnUnmount) {
2129
+ this.player.stop();
2130
+ if (this.player.disablePIP) {
2131
+ this.player.disablePIP();
2132
+ }
2133
+ }
2134
+ this.mounted = false;
2135
+ }
2136
+ componentDidUpdate(prevProps) {
2137
+ if (!this.player) {
2138
+ return;
2139
+ }
2140
+ const { url, playing, volume, muted, playbackRate, pip, loop, activePlayer, disableDeferredLoading } = this.props;
2141
+ if (!(0, import_react_fast_compare$1.default)(prevProps.url, url)) {
2142
+ if (this.isLoading && !activePlayer.forceLoad && !disableDeferredLoading && !(0, import_utils$4.isMediaStream)(url)) {
2143
+ console.warn(`ReactPlayer: the attempt to load ${url} is being deferred until the player has loaded`);
2144
+ this.loadOnReady = url;
2145
+ return;
2146
+ }
2147
+ this.isLoading = true;
2148
+ this.startOnPlay = true;
2149
+ this.onDurationCalled = false;
2150
+ this.player.load(url, this.isReady);
2151
+ }
2152
+ if (!prevProps.playing && playing && !this.isPlaying) {
2153
+ this.player.play();
2154
+ }
2155
+ if (prevProps.playing && !playing && this.isPlaying) {
2156
+ this.player.pause();
2157
+ }
2158
+ if (!prevProps.pip && pip && this.player.enablePIP) {
2159
+ this.player.enablePIP();
2160
+ }
2161
+ if (prevProps.pip && !pip && this.player.disablePIP) {
2162
+ this.player.disablePIP();
2163
+ }
2164
+ if (prevProps.volume !== volume && volume !== null) {
2165
+ this.player.setVolume(volume);
2166
+ }
2167
+ if (prevProps.muted !== muted) {
2168
+ if (muted) {
2169
+ this.player.mute();
2170
+ } else {
2171
+ this.player.unmute();
2172
+ if (volume !== null) {
2173
+ setTimeout(() => this.player.setVolume(volume));
2174
+ }
2175
+ }
2176
+ }
2177
+ if (prevProps.playbackRate !== playbackRate && this.player.setPlaybackRate) {
2178
+ this.player.setPlaybackRate(playbackRate);
2179
+ }
2180
+ if (prevProps.loop !== loop && this.player.setLoop) {
2181
+ this.player.setLoop(loop);
2182
+ }
2183
+ }
2184
+ getDuration() {
2185
+ if (!this.isReady)
2186
+ return null;
2187
+ return this.player.getDuration();
2188
+ }
2189
+ getCurrentTime() {
2190
+ if (!this.isReady)
2191
+ return null;
2192
+ return this.player.getCurrentTime();
2193
+ }
2194
+ getSecondsLoaded() {
2195
+ if (!this.isReady)
2196
+ return null;
2197
+ return this.player.getSecondsLoaded();
2198
+ }
2199
+ seekTo(amount, type, keepPlaying) {
2200
+ if (!this.isReady) {
2201
+ if (amount !== 0) {
2202
+ this.seekOnPlay = amount;
2203
+ setTimeout(() => {
2204
+ this.seekOnPlay = null;
2205
+ }, SEEK_ON_PLAY_EXPIRY);
2206
+ }
2207
+ return;
2208
+ }
2209
+ const isFraction = !type ? amount > 0 && amount < 1 : type === "fraction";
2210
+ if (isFraction) {
2211
+ const duration = this.player.getDuration();
2212
+ if (!duration) {
2213
+ console.warn("ReactPlayer: could not seek using fraction \u2013\xA0duration not yet available");
2214
+ return;
2215
+ }
2216
+ this.player.seekTo(duration * amount, keepPlaying);
2217
+ return;
2218
+ }
2219
+ this.player.seekTo(amount, keepPlaying);
2220
+ }
2221
+ render() {
2222
+ const Player2 = this.props.activePlayer;
2223
+ if (!Player2) {
2224
+ return null;
2225
+ }
2226
+ return /* @__PURE__ */ import_react$3.default.createElement(
2227
+ Player2,
2228
+ {
2229
+ ...this.props,
2230
+ onMount: this.handlePlayerMount,
2231
+ onReady: this.handleReady,
2232
+ onPlay: this.handlePlay,
2233
+ onPause: this.handlePause,
2234
+ onEnded: this.handleEnded,
2235
+ onLoaded: this.handleLoaded,
2236
+ onError: this.handleError
2237
+ }
2238
+ );
2239
+ }
2240
+ }
2241
+ __publicField$3(Player$2, "displayName", "Player");
2242
+ __publicField$3(Player$2, "propTypes", import_props$1.propTypes);
2243
+ __publicField$3(Player$2, "defaultProps", import_props$1.defaultProps);
2244
+
2245
+ var __create$2 = Object.create;
2246
+ var __defProp$3 = Object.defineProperty;
2247
+ var __getOwnPropDesc$3 = Object.getOwnPropertyDescriptor;
2248
+ var __getOwnPropNames$3 = Object.getOwnPropertyNames;
2249
+ var __getProtoOf$2 = Object.getPrototypeOf;
2250
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
2251
+ var __defNormalProp$2 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2252
+ var __export$3 = (target, all) => {
2253
+ for (var name in all)
2254
+ __defProp$3(target, name, { get: all[name], enumerable: true });
2255
+ };
2256
+ var __copyProps$3 = (to, from, except, desc) => {
2257
+ if (from && typeof from === "object" || typeof from === "function") {
2258
+ for (let key of __getOwnPropNames$3(from))
2259
+ if (!__hasOwnProp$3.call(to, key) && key !== except)
2260
+ __defProp$3(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc$3(from, key)) || desc.enumerable });
2261
+ }
2262
+ return to;
2263
+ };
2264
+ var __toESM$2 = (mod, isNodeMode, target) => (target = mod != null ? __create$2(__getProtoOf$2(mod)) : {}, __copyProps$3(
2265
+ // If the importer is in node compatibility mode or this is not an ESM
2266
+ // file that has been converted to a CommonJS file using a Babel-
2267
+ // compatible transform (i.e. "__esModule" has not been set), then set
2268
+ // "default" to the CommonJS "module.exports" for node compatibility.
2269
+ isNodeMode || !mod || !mod.__esModule ? __defProp$3(target, "default", { value: mod, enumerable: true }) : target,
2270
+ mod
2271
+ ));
2272
+ var __toCommonJS$3 = (mod) => __copyProps$3(__defProp$3({}, "__esModule", { value: true }), mod);
2273
+ var __publicField$2 = (obj, key, value) => {
2274
+ __defNormalProp$2(obj, typeof key !== "symbol" ? key + "" : key, value);
2275
+ return value;
2276
+ };
2277
+ var ReactPlayer_exports = {};
2278
+ __export$3(ReactPlayer_exports, {
2279
+ createReactPlayer: () => createReactPlayer$2
2280
+ });
2281
+ var ReactPlayer = __toCommonJS$3(ReactPlayer_exports);
2282
+ var import_react$2 = __toESM$2(React__default["default"]);
2283
+ var import_deepmerge = __toESM$2(cjs);
2284
+ var import_memoize_one = __toESM$2(require$$2);
2285
+ var import_react_fast_compare = __toESM$2(reactFastCompare);
2286
+ var import_props = props;
2287
+ var import_utils$3 = utils;
2288
+ var import_Player = __toESM$2(Player_1);
2289
+ const Preview = (0, import_utils$3.lazy)(() => Promise.resolve().then(function () { return require(
2290
+ /* webpackChunkName: 'reactPlayerPreview' */
2291
+ '../_shared/cjs/Preview-0bf3f6e8.js'
2292
+ ); }).then(function (n) { return n.Preview; }));
2293
+ const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
2294
+ const IS_GLOBAL = typeof _commonjsHelpers.commonjsGlobal !== "undefined" && _commonjsHelpers.commonjsGlobal.window && _commonjsHelpers.commonjsGlobal.window.document;
2295
+ const SUPPORTED_PROPS = Object.keys(import_props.propTypes);
2296
+ const UniversalSuspense = IS_BROWSER || IS_GLOBAL ? import_react$2.Suspense : () => null;
2297
+ const customPlayers = [];
2298
+ const createReactPlayer$2 = (players, fallback) => {
2299
+ var _a;
2300
+ return _a = class extends import_react$2.Component {
2301
+ constructor() {
2302
+ super(...arguments);
2303
+ __publicField$2(this, "state", {
2304
+ showPreview: !!this.props.light
2305
+ });
2306
+ // Use references, as refs is used by React
2307
+ __publicField$2(this, "references", {
2308
+ wrapper: (wrapper) => {
2309
+ this.wrapper = wrapper;
2310
+ },
2311
+ player: (player) => {
2312
+ this.player = player;
2313
+ }
2314
+ });
2315
+ __publicField$2(this, "handleClickPreview", (e) => {
2316
+ this.setState({ showPreview: false });
2317
+ this.props.onClickPreview(e);
2318
+ });
2319
+ __publicField$2(this, "showPreview", () => {
2320
+ this.setState({ showPreview: true });
2321
+ });
2322
+ __publicField$2(this, "getDuration", () => {
2323
+ if (!this.player)
2324
+ return null;
2325
+ return this.player.getDuration();
2326
+ });
2327
+ __publicField$2(this, "getCurrentTime", () => {
2328
+ if (!this.player)
2329
+ return null;
2330
+ return this.player.getCurrentTime();
2331
+ });
2332
+ __publicField$2(this, "getSecondsLoaded", () => {
2333
+ if (!this.player)
2334
+ return null;
2335
+ return this.player.getSecondsLoaded();
2336
+ });
2337
+ __publicField$2(this, "getInternalPlayer", (key = "player") => {
2338
+ if (!this.player)
2339
+ return null;
2340
+ return this.player.getInternalPlayer(key);
2341
+ });
2342
+ __publicField$2(this, "seekTo", (fraction, type, keepPlaying) => {
2343
+ if (!this.player)
2344
+ return null;
2345
+ this.player.seekTo(fraction, type, keepPlaying);
2346
+ });
2347
+ __publicField$2(this, "handleReady", () => {
2348
+ this.props.onReady(this);
2349
+ });
2350
+ __publicField$2(this, "getActivePlayer", (0, import_memoize_one.default)((url) => {
2351
+ for (const player of [...customPlayers, ...players]) {
2352
+ if (player.canPlay(url)) {
2353
+ return player;
2354
+ }
2355
+ }
2356
+ if (fallback) {
2357
+ return fallback;
2358
+ }
2359
+ return null;
2360
+ }));
2361
+ __publicField$2(this, "getConfig", (0, import_memoize_one.default)((url, key) => {
2362
+ const { config } = this.props;
2363
+ return import_deepmerge.default.all([
2364
+ import_props.defaultProps.config,
2365
+ import_props.defaultProps.config[key] || {},
2366
+ config,
2367
+ config[key] || {}
2368
+ ]);
2369
+ }));
2370
+ __publicField$2(this, "getAttributes", (0, import_memoize_one.default)((url) => {
2371
+ return (0, import_utils$3.omit)(this.props, SUPPORTED_PROPS);
2372
+ }));
2373
+ __publicField$2(this, "renderActivePlayer", (url) => {
2374
+ if (!url)
2375
+ return null;
2376
+ const player = this.getActivePlayer(url);
2377
+ if (!player)
2378
+ return null;
2379
+ const config = this.getConfig(url, player.key);
2380
+ return /* @__PURE__ */ import_react$2.default.createElement(
2381
+ import_Player.default,
2382
+ {
2383
+ ...this.props,
2384
+ key: player.key,
2385
+ ref: this.references.player,
2386
+ config,
2387
+ activePlayer: player.lazyPlayer || player,
2388
+ onReady: this.handleReady
2389
+ }
2390
+ );
2391
+ });
2392
+ }
2393
+ shouldComponentUpdate(nextProps, nextState) {
2394
+ return !(0, import_react_fast_compare.default)(this.props, nextProps) || !(0, import_react_fast_compare.default)(this.state, nextState);
2395
+ }
2396
+ componentDidUpdate(prevProps) {
2397
+ const { light } = this.props;
2398
+ if (!prevProps.light && light) {
2399
+ this.setState({ showPreview: true });
2400
+ }
2401
+ if (prevProps.light && !light) {
2402
+ this.setState({ showPreview: false });
2403
+ }
2404
+ }
2405
+ renderPreview(url) {
2406
+ if (!url)
2407
+ return null;
2408
+ const { light, playIcon, previewTabIndex, oEmbedUrl, previewAriaLabel } = this.props;
2409
+ return /* @__PURE__ */ import_react$2.default.createElement(
2410
+ Preview,
2411
+ {
2412
+ url,
2413
+ light,
2414
+ playIcon,
2415
+ previewTabIndex,
2416
+ previewAriaLabel,
2417
+ oEmbedUrl,
2418
+ onClick: this.handleClickPreview
2419
+ }
2420
+ );
2421
+ }
2422
+ render() {
2423
+ const { url, style, width, height, fallback: fallback2, wrapper: Wrapper } = this.props;
2424
+ const { showPreview } = this.state;
2425
+ const attributes = this.getAttributes(url);
2426
+ const wrapperRef = typeof Wrapper === "string" ? this.references.wrapper : void 0;
2427
+ return /* @__PURE__ */ import_react$2.default.createElement(Wrapper, { ref: wrapperRef, style: { ...style, width, height }, ...attributes }, /* @__PURE__ */ import_react$2.default.createElement(UniversalSuspense, { fallback: fallback2 }, showPreview ? this.renderPreview(url) : this.renderActivePlayer(url)));
2428
+ }
2429
+ }, __publicField$2(_a, "displayName", "ReactPlayer"), __publicField$2(_a, "propTypes", import_props.propTypes), __publicField$2(_a, "defaultProps", import_props.defaultProps), __publicField$2(_a, "addCustomPlayer", (player) => {
2430
+ customPlayers.push(player);
2431
+ }), __publicField$2(_a, "removeCustomPlayers", () => {
2432
+ customPlayers.length = 0;
2433
+ }), __publicField$2(_a, "canPlay", (url) => {
2434
+ for (const Player2 of [...customPlayers, ...players]) {
2435
+ if (Player2.canPlay(url)) {
2436
+ return true;
2437
+ }
2438
+ }
2439
+ return false;
2440
+ }), __publicField$2(_a, "canEnablePIP", (url) => {
2441
+ for (const Player2 of [...customPlayers, ...players]) {
2442
+ if (Player2.canEnablePIP && Player2.canEnablePIP(url)) {
2443
+ return true;
2444
+ }
2445
+ }
2446
+ return false;
2447
+ }), _a;
2448
+ };
2449
+
2450
+ var __defProp$2 = Object.defineProperty;
2451
+ var __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor;
2452
+ var __getOwnPropNames$2 = Object.getOwnPropertyNames;
2453
+ var __hasOwnProp$2 = Object.prototype.hasOwnProperty;
2454
+ var __export$2 = (target, all) => {
2455
+ for (var name in all)
2456
+ __defProp$2(target, name, { get: all[name], enumerable: true });
2457
+ };
2458
+ var __copyProps$2 = (to, from, except, desc) => {
2459
+ if (from && typeof from === "object" || typeof from === "function") {
2460
+ for (let key of __getOwnPropNames$2(from))
2461
+ if (!__hasOwnProp$2.call(to, key) && key !== except)
2462
+ __defProp$2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc$2(from, key)) || desc.enumerable });
2463
+ }
2464
+ return to;
2465
+ };
2466
+ var __toCommonJS$2 = (mod) => __copyProps$2(__defProp$2({}, "__esModule", { value: true }), mod);
2467
+ var patterns_exports = {};
2468
+ __export$2(patterns_exports, {
2469
+ AUDIO_EXTENSIONS: () => AUDIO_EXTENSIONS,
2470
+ DASH_EXTENSIONS: () => DASH_EXTENSIONS,
2471
+ FLV_EXTENSIONS: () => FLV_EXTENSIONS,
2472
+ HLS_EXTENSIONS: () => HLS_EXTENSIONS,
2473
+ MATCH_URL_DAILYMOTION: () => MATCH_URL_DAILYMOTION,
2474
+ MATCH_URL_FACEBOOK: () => MATCH_URL_FACEBOOK,
2475
+ MATCH_URL_FACEBOOK_WATCH: () => MATCH_URL_FACEBOOK_WATCH,
2476
+ MATCH_URL_KALTURA: () => MATCH_URL_KALTURA,
2477
+ MATCH_URL_MIXCLOUD: () => MATCH_URL_MIXCLOUD,
2478
+ MATCH_URL_MUX: () => MATCH_URL_MUX,
2479
+ MATCH_URL_SOUNDCLOUD: () => MATCH_URL_SOUNDCLOUD,
2480
+ MATCH_URL_STREAMABLE: () => MATCH_URL_STREAMABLE,
2481
+ MATCH_URL_TWITCH_CHANNEL: () => MATCH_URL_TWITCH_CHANNEL,
2482
+ MATCH_URL_TWITCH_VIDEO: () => MATCH_URL_TWITCH_VIDEO,
2483
+ MATCH_URL_VIDYARD: () => MATCH_URL_VIDYARD,
2484
+ MATCH_URL_VIMEO: () => MATCH_URL_VIMEO,
2485
+ MATCH_URL_WISTIA: () => MATCH_URL_WISTIA,
2486
+ MATCH_URL_YOUTUBE: () => MATCH_URL_YOUTUBE,
2487
+ VIDEO_EXTENSIONS: () => VIDEO_EXTENSIONS,
2488
+ canPlay: () => canPlay
2489
+ });
2490
+ var patterns = __toCommonJS$2(patterns_exports);
2491
+ var import_utils$2 = utils;
2492
+ const MATCH_URL_YOUTUBE = /(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//;
2493
+ const MATCH_URL_SOUNDCLOUD = /(?:soundcloud\.com|snd\.sc)\/[^.]+$/;
2494
+ const MATCH_URL_VIMEO = /vimeo\.com\/(?!progressive_redirect).+/;
2495
+ const MATCH_URL_MUX = /stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/;
2496
+ const MATCH_URL_FACEBOOK = /^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/;
2497
+ const MATCH_URL_FACEBOOK_WATCH = /^https?:\/\/fb\.watch\/.+$/;
2498
+ const MATCH_URL_STREAMABLE = /streamable\.com\/([a-z0-9]+)$/;
2499
+ const MATCH_URL_WISTIA = /(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/;
2500
+ const MATCH_URL_TWITCH_VIDEO = /(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/;
2501
+ const MATCH_URL_TWITCH_CHANNEL = /(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/;
2502
+ const MATCH_URL_DAILYMOTION = /^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/;
2503
+ const MATCH_URL_MIXCLOUD = /mixcloud\.com\/([^/]+\/[^/]+)/;
2504
+ const MATCH_URL_VIDYARD = /vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/;
2505
+ const MATCH_URL_KALTURA = /^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/;
2506
+ const AUDIO_EXTENSIONS = /\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i;
2507
+ const VIDEO_EXTENSIONS = /\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i;
2508
+ const HLS_EXTENSIONS = /\.(m3u8)($|\?)/i;
2509
+ const DASH_EXTENSIONS = /\.(mpd)($|\?)/i;
2510
+ const FLV_EXTENSIONS = /\.(flv)($|\?)/i;
2511
+ const canPlayFile = (url) => {
2512
+ if (url instanceof Array) {
2513
+ for (const item of url) {
2514
+ if (typeof item === "string" && canPlayFile(item)) {
2515
+ return true;
2516
+ }
2517
+ if (canPlayFile(item.src)) {
2518
+ return true;
2519
+ }
2520
+ }
2521
+ return false;
2522
+ }
2523
+ if ((0, import_utils$2.isMediaStream)(url) || (0, import_utils$2.isBlobUrl)(url)) {
2524
+ return true;
2525
+ }
2526
+ return AUDIO_EXTENSIONS.test(url) || VIDEO_EXTENSIONS.test(url) || HLS_EXTENSIONS.test(url) || DASH_EXTENSIONS.test(url) || FLV_EXTENSIONS.test(url);
2527
+ };
2528
+ const canPlay = {
2529
+ youtube: (url) => {
2530
+ if (url instanceof Array) {
2531
+ return url.every((item) => MATCH_URL_YOUTUBE.test(item));
2532
+ }
2533
+ return MATCH_URL_YOUTUBE.test(url);
2534
+ },
2535
+ soundcloud: (url) => MATCH_URL_SOUNDCLOUD.test(url) && !AUDIO_EXTENSIONS.test(url),
2536
+ vimeo: (url) => MATCH_URL_VIMEO.test(url) && !VIDEO_EXTENSIONS.test(url) && !HLS_EXTENSIONS.test(url),
2537
+ mux: (url) => MATCH_URL_MUX.test(url),
2538
+ facebook: (url) => MATCH_URL_FACEBOOK.test(url) || MATCH_URL_FACEBOOK_WATCH.test(url),
2539
+ streamable: (url) => MATCH_URL_STREAMABLE.test(url),
2540
+ wistia: (url) => MATCH_URL_WISTIA.test(url),
2541
+ twitch: (url) => MATCH_URL_TWITCH_VIDEO.test(url) || MATCH_URL_TWITCH_CHANNEL.test(url),
2542
+ dailymotion: (url) => MATCH_URL_DAILYMOTION.test(url),
2543
+ mixcloud: (url) => MATCH_URL_MIXCLOUD.test(url),
2544
+ vidyard: (url) => MATCH_URL_VIDYARD.test(url),
2545
+ kaltura: (url) => MATCH_URL_KALTURA.test(url),
2546
+ file: canPlayFile
2547
+ };
2548
+
2549
+ var __create$1 = Object.create;
2550
+ var __defProp$1 = Object.defineProperty;
2551
+ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
2552
+ var __getOwnPropNames$1 = Object.getOwnPropertyNames;
2553
+ var __getProtoOf$1 = Object.getPrototypeOf;
2554
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
2555
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2556
+ var __export$1 = (target, all) => {
2557
+ for (var name in all)
2558
+ __defProp$1(target, name, { get: all[name], enumerable: true });
2559
+ };
2560
+ var __copyProps$1 = (to, from, except, desc) => {
2561
+ if (from && typeof from === "object" || typeof from === "function") {
2562
+ for (let key of __getOwnPropNames$1(from))
2563
+ if (!__hasOwnProp$1.call(to, key) && key !== except)
2564
+ __defProp$1(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc$1(from, key)) || desc.enumerable });
2565
+ }
2566
+ return to;
2567
+ };
2568
+ var __toESM$1 = (mod, isNodeMode, target) => (target = mod != null ? __create$1(__getProtoOf$1(mod)) : {}, __copyProps$1(
2569
+ // If the importer is in node compatibility mode or this is not an ESM
2570
+ // file that has been converted to a CommonJS file using a Babel-
2571
+ // compatible transform (i.e. "__esModule" has not been set), then set
2572
+ // "default" to the CommonJS "module.exports" for node compatibility.
2573
+ isNodeMode || !mod || !mod.__esModule ? __defProp$1(target, "default", { value: mod, enumerable: true }) : target,
2574
+ mod
2575
+ ));
2576
+ var __toCommonJS$1 = (mod) => __copyProps$1(__defProp$1({}, "__esModule", { value: true }), mod);
2577
+ var __publicField$1 = (obj, key, value) => {
2578
+ __defNormalProp$1(obj, typeof key !== "symbol" ? key + "" : key, value);
2579
+ return value;
2580
+ };
2581
+ var YouTube_exports = {};
2582
+ __export$1(YouTube_exports, {
2583
+ default: () => YouTube
2584
+ });
2585
+ var YouTube_1 = __toCommonJS$1(YouTube_exports);
2586
+ var import_react$1 = __toESM$1(React__default["default"]);
2587
+ var import_utils$1 = utils;
2588
+ var import_patterns$1 = patterns;
2589
+ const SDK_URL$1 = "https://www.youtube.com/iframe_api";
2590
+ const SDK_GLOBAL$1 = "YT";
2591
+ const SDK_GLOBAL_READY = "onYouTubeIframeAPIReady";
2592
+ const MATCH_PLAYLIST = /[?&](?:list|channel)=([a-zA-Z0-9_-]+)/;
2593
+ const MATCH_USER_UPLOADS = /user\/([a-zA-Z0-9_-]+)\/?/;
2594
+ const MATCH_NOCOOKIE = /youtube-nocookie\.com/;
2595
+ const NOCOOKIE_HOST = "https://www.youtube-nocookie.com";
2596
+ class YouTube extends import_react$1.Component {
2597
+ constructor() {
2598
+ super(...arguments);
2599
+ __publicField$1(this, "callPlayer", import_utils$1.callPlayer);
2600
+ __publicField$1(this, "parsePlaylist", (url) => {
2601
+ if (url instanceof Array) {
2602
+ return {
2603
+ listType: "playlist",
2604
+ playlist: url.map(this.getID).join(",")
2605
+ };
2606
+ }
2607
+ if (MATCH_PLAYLIST.test(url)) {
2608
+ const [, playlistId] = url.match(MATCH_PLAYLIST);
2609
+ return {
2610
+ listType: "playlist",
2611
+ list: playlistId.replace(/^UC/, "UU")
2612
+ };
2613
+ }
2614
+ if (MATCH_USER_UPLOADS.test(url)) {
2615
+ const [, username] = url.match(MATCH_USER_UPLOADS);
2616
+ return {
2617
+ listType: "user_uploads",
2618
+ list: username
2619
+ };
2620
+ }
2621
+ return {};
2622
+ });
2623
+ __publicField$1(this, "onStateChange", (event) => {
2624
+ const { data } = event;
2625
+ const { onPlay, onPause, onBuffer, onBufferEnd, onEnded, onReady, loop, config: { playerVars, onUnstarted } } = this.props;
2626
+ const { UNSTARTED, PLAYING, PAUSED, BUFFERING, ENDED, CUED } = window[SDK_GLOBAL$1].PlayerState;
2627
+ if (data === UNSTARTED)
2628
+ onUnstarted();
2629
+ if (data === PLAYING) {
2630
+ onPlay();
2631
+ onBufferEnd();
2632
+ }
2633
+ if (data === PAUSED)
2634
+ onPause();
2635
+ if (data === BUFFERING)
2636
+ onBuffer();
2637
+ if (data === ENDED) {
2638
+ const isPlaylist = !!this.callPlayer("getPlaylist");
2639
+ if (loop && !isPlaylist) {
2640
+ if (playerVars.start) {
2641
+ this.seekTo(playerVars.start);
2642
+ } else {
2643
+ this.play();
2644
+ }
2645
+ }
2646
+ onEnded();
2647
+ }
2648
+ if (data === CUED)
2649
+ onReady();
2650
+ });
2651
+ __publicField$1(this, "mute", () => {
2652
+ this.callPlayer("mute");
2653
+ });
2654
+ __publicField$1(this, "unmute", () => {
2655
+ this.callPlayer("unMute");
2656
+ });
2657
+ __publicField$1(this, "ref", (container) => {
2658
+ this.container = container;
2659
+ });
2660
+ }
2661
+ componentDidMount() {
2662
+ this.props.onMount && this.props.onMount(this);
2663
+ }
2664
+ getID(url) {
2665
+ if (!url || url instanceof Array || MATCH_PLAYLIST.test(url)) {
2666
+ return null;
2667
+ }
2668
+ return url.match(import_patterns$1.MATCH_URL_YOUTUBE)[1];
2669
+ }
2670
+ load(url, isReady) {
2671
+ const { playing, muted, playsinline, controls, loop, config, onError } = this.props;
2672
+ const { playerVars, embedOptions } = config;
2673
+ const id = this.getID(url);
2674
+ if (isReady) {
2675
+ if (MATCH_PLAYLIST.test(url) || MATCH_USER_UPLOADS.test(url) || url instanceof Array) {
2676
+ this.player.loadPlaylist(this.parsePlaylist(url));
2677
+ return;
2678
+ }
2679
+ this.player.cueVideoById({
2680
+ videoId: id,
2681
+ startSeconds: (0, import_utils$1.parseStartTime)(url) || playerVars.start,
2682
+ endSeconds: (0, import_utils$1.parseEndTime)(url) || playerVars.end
2683
+ });
2684
+ return;
2685
+ }
2686
+ (0, import_utils$1.getSDK)(SDK_URL$1, SDK_GLOBAL$1, SDK_GLOBAL_READY, (YT) => YT.loaded).then((YT) => {
2687
+ if (!this.container)
2688
+ return;
2689
+ this.player = new YT.Player(this.container, {
2690
+ width: "100%",
2691
+ height: "100%",
2692
+ videoId: id,
2693
+ playerVars: {
2694
+ autoplay: playing ? 1 : 0,
2695
+ mute: muted ? 1 : 0,
2696
+ controls: controls ? 1 : 0,
2697
+ start: (0, import_utils$1.parseStartTime)(url),
2698
+ end: (0, import_utils$1.parseEndTime)(url),
2699
+ origin: window.location.origin,
2700
+ playsinline: playsinline ? 1 : 0,
2701
+ ...this.parsePlaylist(url),
2702
+ ...playerVars
2703
+ },
2704
+ events: {
2705
+ onReady: () => {
2706
+ if (loop) {
2707
+ this.player.setLoop(true);
2708
+ }
2709
+ this.props.onReady();
2710
+ },
2711
+ onPlaybackRateChange: (event) => this.props.onPlaybackRateChange(event.data),
2712
+ onPlaybackQualityChange: (event) => this.props.onPlaybackQualityChange(event),
2713
+ onStateChange: this.onStateChange,
2714
+ onError: (event) => onError(event.data)
2715
+ },
2716
+ host: MATCH_NOCOOKIE.test(url) ? NOCOOKIE_HOST : void 0,
2717
+ ...embedOptions
2718
+ });
2719
+ }, onError);
2720
+ if (embedOptions.events) {
2721
+ console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer\u2019s callback props instead, eg onReady, onPlay, onPause");
2722
+ }
2723
+ }
2724
+ play() {
2725
+ this.callPlayer("playVideo");
2726
+ }
2727
+ pause() {
2728
+ this.callPlayer("pauseVideo");
2729
+ }
2730
+ stop() {
2731
+ if (!document.body.contains(this.callPlayer("getIframe")))
2732
+ return;
2733
+ this.callPlayer("stopVideo");
2734
+ }
2735
+ seekTo(amount, keepPlaying = false) {
2736
+ this.callPlayer("seekTo", amount);
2737
+ if (!keepPlaying && !this.props.playing) {
2738
+ this.pause();
2739
+ }
2740
+ }
2741
+ setVolume(fraction) {
2742
+ this.callPlayer("setVolume", fraction * 100);
2743
+ }
2744
+ setPlaybackRate(rate) {
2745
+ this.callPlayer("setPlaybackRate", rate);
2746
+ }
2747
+ setLoop(loop) {
2748
+ this.callPlayer("setLoop", loop);
2749
+ }
2750
+ getDuration() {
2751
+ return this.callPlayer("getDuration");
2752
+ }
2753
+ getCurrentTime() {
2754
+ return this.callPlayer("getCurrentTime");
2755
+ }
2756
+ getSecondsLoaded() {
2757
+ return this.callPlayer("getVideoLoadedFraction") * this.getDuration();
2758
+ }
2759
+ render() {
2760
+ const { display } = this.props;
2761
+ const style = {
2762
+ width: "100%",
2763
+ height: "100%",
2764
+ display
2765
+ };
2766
+ return /* @__PURE__ */ import_react$1.default.createElement("div", { style }, /* @__PURE__ */ import_react$1.default.createElement("div", { ref: this.ref }));
2767
+ }
2768
+ }
2769
+ __publicField$1(YouTube, "displayName", "YouTube");
2770
+ __publicField$1(YouTube, "canPlay", import_patterns$1.canPlay.youtube);
2771
+
2772
+ var createReactPlayer$1 = ReactPlayer.createReactPlayer;
2773
+ var Player$1 = YouTube_1.default;
2774
+ var youtube = createReactPlayer$1([{
2775
+ key: 'youtube',
2776
+ canPlay: Player$1.canPlay,
2777
+ lazyPlayer: Player$1
2778
+ }]);
2779
+
2780
+ var ReactPlayerYoutube = youtube;
2781
+
2782
+ var __create = Object.create;
2783
+ var __defProp = Object.defineProperty;
2784
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2785
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2786
+ var __getProtoOf = Object.getPrototypeOf;
2787
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
2788
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2789
+ var __export = (target, all) => {
2790
+ for (var name in all)
2791
+ __defProp(target, name, { get: all[name], enumerable: true });
2792
+ };
2793
+ var __copyProps = (to, from, except, desc) => {
2794
+ if (from && typeof from === "object" || typeof from === "function") {
2795
+ for (let key of __getOwnPropNames(from))
2796
+ if (!__hasOwnProp.call(to, key) && key !== except)
2797
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2798
+ }
2799
+ return to;
2800
+ };
2801
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
2802
+ // If the importer is in node compatibility mode or this is not an ESM
2803
+ // file that has been converted to a CommonJS file using a Babel-
2804
+ // compatible transform (i.e. "__esModule" has not been set), then set
2805
+ // "default" to the CommonJS "module.exports" for node compatibility.
2806
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
2807
+ mod
2808
+ ));
2809
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2810
+ var __publicField = (obj, key, value) => {
2811
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
2812
+ return value;
2813
+ };
2814
+ var Vimeo_exports = {};
2815
+ __export(Vimeo_exports, {
2816
+ default: () => Vimeo
2817
+ });
2818
+ var Vimeo_1 = __toCommonJS(Vimeo_exports);
2819
+ var import_react = __toESM(React__default["default"]);
2820
+ var import_utils = utils;
2821
+ var import_patterns = patterns;
2822
+ const SDK_URL = "https://player.vimeo.com/api/player.js";
2823
+ const SDK_GLOBAL = "Vimeo";
2824
+ const cleanUrl = (url) => {
2825
+ return url.replace("/manage/videos", "");
2826
+ };
2827
+ class Vimeo extends import_react.Component {
2828
+ constructor() {
2829
+ super(...arguments);
2830
+ // Prevent checking isLoading when URL changes
2831
+ __publicField(this, "callPlayer", import_utils.callPlayer);
2832
+ __publicField(this, "duration", null);
2833
+ __publicField(this, "currentTime", null);
2834
+ __publicField(this, "secondsLoaded", null);
2835
+ __publicField(this, "mute", () => {
2836
+ this.setMuted(true);
2837
+ });
2838
+ __publicField(this, "unmute", () => {
2839
+ this.setMuted(false);
2840
+ });
2841
+ __publicField(this, "ref", (container) => {
2842
+ this.container = container;
2843
+ });
2844
+ }
2845
+ componentDidMount() {
2846
+ this.props.onMount && this.props.onMount(this);
2847
+ }
2848
+ load(url) {
2849
+ this.duration = null;
2850
+ (0, import_utils.getSDK)(SDK_URL, SDK_GLOBAL).then((Vimeo2) => {
2851
+ if (!this.container)
2852
+ return;
2853
+ const { playerOptions, title } = this.props.config;
2854
+ this.player = new Vimeo2.Player(this.container, {
2855
+ url: cleanUrl(url),
2856
+ autoplay: this.props.playing,
2857
+ muted: this.props.muted,
2858
+ loop: this.props.loop,
2859
+ playsinline: this.props.playsinline,
2860
+ controls: this.props.controls,
2861
+ ...playerOptions
2862
+ });
2863
+ this.player.ready().then(() => {
2864
+ const iframe = this.container.querySelector("iframe");
2865
+ iframe.style.width = "100%";
2866
+ iframe.style.height = "100%";
2867
+ if (title) {
2868
+ iframe.title = title;
2869
+ }
2870
+ }).catch(this.props.onError);
2871
+ this.player.on("loaded", () => {
2872
+ this.props.onReady();
2873
+ this.refreshDuration();
2874
+ });
2875
+ this.player.on("play", () => {
2876
+ this.props.onPlay();
2877
+ this.refreshDuration();
2878
+ });
2879
+ this.player.on("pause", this.props.onPause);
2880
+ this.player.on("seeked", (e) => this.props.onSeek(e.seconds));
2881
+ this.player.on("ended", this.props.onEnded);
2882
+ this.player.on("error", this.props.onError);
2883
+ this.player.on("timeupdate", ({ seconds }) => {
2884
+ this.currentTime = seconds;
2885
+ });
2886
+ this.player.on("progress", ({ seconds }) => {
2887
+ this.secondsLoaded = seconds;
2888
+ });
2889
+ this.player.on("bufferstart", this.props.onBuffer);
2890
+ this.player.on("bufferend", this.props.onBufferEnd);
2891
+ this.player.on("playbackratechange", (e) => this.props.onPlaybackRateChange(e.playbackRate));
2892
+ }, this.props.onError);
2893
+ }
2894
+ refreshDuration() {
2895
+ this.player.getDuration().then((duration) => {
2896
+ this.duration = duration;
2897
+ });
2898
+ }
2899
+ play() {
2900
+ const promise = this.callPlayer("play");
2901
+ if (promise) {
2902
+ promise.catch(this.props.onError);
2903
+ }
2904
+ }
2905
+ pause() {
2906
+ this.callPlayer("pause");
2907
+ }
2908
+ stop() {
2909
+ this.callPlayer("unload");
2910
+ }
2911
+ seekTo(seconds, keepPlaying = true) {
2912
+ this.callPlayer("setCurrentTime", seconds);
2913
+ if (!keepPlaying) {
2914
+ this.pause();
2915
+ }
2916
+ }
2917
+ setVolume(fraction) {
2918
+ this.callPlayer("setVolume", fraction);
2919
+ }
2920
+ setMuted(muted) {
2921
+ this.callPlayer("setMuted", muted);
2922
+ }
2923
+ setLoop(loop) {
2924
+ this.callPlayer("setLoop", loop);
2925
+ }
2926
+ setPlaybackRate(rate) {
2927
+ this.callPlayer("setPlaybackRate", rate);
2928
+ }
2929
+ getDuration() {
2930
+ return this.duration;
2931
+ }
2932
+ getCurrentTime() {
2933
+ return this.currentTime;
2934
+ }
2935
+ getSecondsLoaded() {
2936
+ return this.secondsLoaded;
2937
+ }
2938
+ render() {
2939
+ const { display } = this.props;
2940
+ const style = {
2941
+ width: "100%",
2942
+ height: "100%",
2943
+ overflow: "hidden",
2944
+ display
2945
+ };
2946
+ return /* @__PURE__ */ import_react.default.createElement(
2947
+ "div",
2948
+ {
2949
+ key: this.props.url,
2950
+ ref: this.ref,
2951
+ style
2952
+ }
2953
+ );
2954
+ }
2955
+ }
2956
+ __publicField(Vimeo, "displayName", "Vimeo");
2957
+ __publicField(Vimeo, "canPlay", import_patterns.canPlay.vimeo);
2958
+ __publicField(Vimeo, "forceLoad", true);
2959
+
2960
+ var createReactPlayer = ReactPlayer.createReactPlayer;
2961
+ var Player = Vimeo_1.default;
2962
+ var vimeo = createReactPlayer([{
2963
+ key: 'vimeo',
2964
+ canPlay: Player.canPlay,
2965
+ lazyPlayer: Player
2966
+ }]);
2967
+
2968
+ var ReactPlayerVimeo = vimeo;
2969
+
2970
+ /**
2971
+ * Use `VideoPlayer` to embed videos from YouTube or Vimeo.
2972
+ */
2973
+ var VideoPlayer = function (_a) {
2974
+ var title = _a.title, description = _a.description, transcriptLink = _a.transcriptLink, transcriptContent = _a.transcriptContent, light = _a.light, url = _a.url, onReady = _a.onReady, onPlay = _a.onPlay, onStart = _a.onStart, onPause = _a.onPause, onError = _a.onError, onEnded = _a.onEnded, _b = _a.isBorderRadius, isBorderRadius = _b === void 0 ? false : _b, _c = _a.isSupportingTextHidden, isSupportingTextHidden = _c === void 0 ? false : _c, props = index_es.__rest(_a, ["title", "description", "transcriptLink", "transcriptContent", "light", "url", "onReady", "onPlay", "onStart", "onPause", "onError", "onEnded", "isBorderRadius", "isSupportingTextHidden"]);
2975
+ var TextWrapper = isSupportingTextHidden ? VisuallyHidden.VisuallyHidden : "div";
2976
+ var isVimeo = new URL(url).hostname.includes("vimeo");
2977
+ var playerProps = {
2978
+ url: url,
2979
+ light: light,
2980
+ onReady: onReady,
2981
+ onPlay: onPlay,
2982
+ onStart: onStart,
2983
+ onPause: onPause,
2984
+ onError: onError,
2985
+ onEnded: onEnded,
2986
+ playIcon: (React__default["default"].createElement("div", { className: "arc-VideoPlayer-icon" },
2987
+ React__default["default"].createElement(Icon.Icon, { isPresentationIcon: true, icon: BtIconPlayFill_esm.BtIconPlayFill }))),
2988
+ playing: Boolean(light),
2989
+ controls: true,
2990
+ className: "arc-VideoPlayer",
2991
+ width: "100%",
2992
+ height: "100%"
2993
+ };
2994
+ return (React__default["default"].createElement("div", index_es.__assign({}, index_es.filterDataAttrs(props)),
2995
+ React__default["default"].createElement("div", { "data-testid": "arc-video-player", className: index.classNames("arc-VideoPlayer-wrapper", {
2996
+ "arc-VideoPlayer-wrapper--borderRadius": isBorderRadius
2997
+ }) }, isVimeo ? (React__default["default"].createElement(ReactPlayerVimeo, index_es.__assign({}, playerProps))) : (React__default["default"].createElement(ReactPlayerYoutube, index_es.__assign({}, playerProps)))),
2998
+ React__default["default"].createElement(TextWrapper, null,
2999
+ React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24" }),
3000
+ React__default["default"].createElement(Heading.Heading, { level: "3", size: "s" }, title),
3001
+ React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "8" }),
3002
+ React__default["default"].createElement(Text.Text, null, description)),
3003
+ transcriptLink && (React__default["default"].createElement(React__default["default"].Fragment, null,
3004
+ React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24" }),
3005
+ React__default["default"].createElement(Download.Download, { isCompact: true, icon: "downloadAccessibility", href: transcriptLink.url, name: transcriptLink.text, type: transcriptLink.format, size: transcriptLink.fileSize }))),
3006
+ transcriptContent && (React__default["default"].createElement(React__default["default"].Fragment, null,
3007
+ React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24" }),
3008
+ React__default["default"].createElement(DisclosureMini.DisclosureMini, { summary: "Audio Described Transcript" },
3009
+ React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "8" }),
3010
+ React__default["default"].createElement(Heading.Heading, null, transcriptContent.heading.toUpperCase()),
3011
+ React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "32" }),
3012
+ React__default["default"].createElement(Text.Text, null, transcriptContent.description),
3013
+ React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24" }),
3014
+ transcriptContent.content.map(function (_a) {
3015
+ var heading = _a.heading, text = _a.text;
3016
+ return (React__default["default"].createElement(React__default["default"].Fragment, null,
3017
+ React__default["default"].createElement(VerticalSpace.VerticalSpace, { size: "24" }),
3018
+ heading && (React__default["default"].createElement(React__default["default"].Fragment, null,
3019
+ React__default["default"].createElement(Heading.Heading, { isInline: true }, heading === null || heading === void 0 ? void 0 : heading.toUpperCase()),
3020
+ "\u00A0")),
3021
+ React__default["default"].createElement(Text.Text, { isInline: true }, text)));
3022
+ }))))));
3023
+ };
3024
+
3025
+ exports.VideoPlayer = VideoPlayer;