j1-template 2023.9.2 → 2023.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (739) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_collection.html +1 -1
  3. data/_includes/themes/j1/layouts/content_generator_news_panel_posts.html +1 -1
  4. data/_includes/themes/j1/layouts/content_generator_page.html +1 -1
  5. data/_includes/themes/j1/layouts/content_generator_post.html +1 -1
  6. data/_includes/themes/j1/layouts/content_generator_raw.html +1 -1
  7. data/_includes/themes/j1/layouts/layout_metadata_generator.html +1 -1
  8. data/_includes/themes/j1/layouts/layout_module_generator.html +1 -1
  9. data/_includes/themes/j1/layouts/layout_resource_generator.html +1 -1
  10. data/_includes/themes/j1/modules/attics/generator.html +1 -1
  11. data/_includes/themes/j1/modules/navigator/generator.html +1 -1
  12. data/_includes/themes/j1/modules/searcher/generator.html +1 -1
  13. data/_includes/themes/j1/modules/searcher/procedures/topsearch.proc +1 -1
  14. data/_includes/themes/j1/procedures/blocks/footer/boxes/about_box.proc +1 -1
  15. data/_includes/themes/j1/procedures/blocks/footer/boxes/contacts_box.proc +1 -1
  16. data/_includes/themes/j1/procedures/blocks/footer/boxes/issue.proc +1 -1
  17. data/_includes/themes/j1/procedures/blocks/footer/boxes/legal_statements.proc +1 -1
  18. data/_includes/themes/j1/procedures/blocks/footer/boxes/links_box.proc +1 -1
  19. data/_includes/themes/j1/procedures/blocks/footer/boxes/news_box.proc +1 -1
  20. data/_includes/themes/j1/procedures/blocks/footer/boxes/social_media_icons.proc +1 -1
  21. data/_includes/themes/j1/procedures/blocks/get_wave.proc +1 -1
  22. data/_includes/themes/j1/procedures/collections/create_collection_article_preview.proc +1 -1
  23. data/_includes/themes/j1/procedures/collections/pager.proc +1 -1
  24. data/_includes/themes/j1/procedures/global/attributes_loader.proc +1 -1
  25. data/_includes/themes/j1/procedures/global/collect_frontmatter_options.proc +1 -1
  26. data/_includes/themes/j1/procedures/global/collect_page_options.proc +1 -1
  27. data/_includes/themes/j1/procedures/global/create_bs_button.proc +1 -1
  28. data/_includes/themes/j1/procedures/global/create_word_cloud.proc +1 -1
  29. data/_includes/themes/j1/procedures/global/date-german.proc +1 -1
  30. data/_includes/themes/j1/procedures/global/get_category.proc +1 -1
  31. data/_includes/themes/j1/procedures/global/get_category_item.proc +1 -1
  32. data/_includes/themes/j1/procedures/global/get_documents_dir.proc +1 -1
  33. data/_includes/themes/j1/procedures/global/get_page_path.proc +1 -1
  34. data/_includes/themes/j1/procedures/global/get_page_url.proc +1 -1
  35. data/_includes/themes/j1/procedures/global/select_color.proc +1 -1
  36. data/_includes/themes/j1/procedures/global/select_font_size.proc +1 -1
  37. data/_includes/themes/j1/procedures/global/select_icon_size.proc +1 -1
  38. data/_includes/themes/j1/procedures/global/select_location.proc +1 -1
  39. data/_includes/themes/j1/procedures/global/set_base_vars_folders.proc +1 -1
  40. data/_includes/themes/j1/procedures/global/set_env_entry_document.proc +1 -1
  41. data/_includes/themes/j1/procedures/global/set_image_block.proc +1 -1
  42. data/_includes/themes/j1/procedures/global/setup.proc +1 -1
  43. data/_includes/themes/j1/procedures/layouts/content_writer.proc +1 -1
  44. data/_includes/themes/j1/procedures/layouts/default_writer.proc +1 -1
  45. data/_includes/themes/j1/procedures/layouts/module_writer.proc +1 -1
  46. data/_includes/themes/j1/procedures/layouts/resource_writer.proc +1 -1
  47. data/_includes/themes/j1/procedures/posts/collate_calendar.proc +1 -1
  48. data/_includes/themes/j1/procedures/posts/collate_list.proc +1 -1
  49. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +1 -1
  50. data/_includes/themes/j1/procedures/posts/create_ad_block.proc +1 -1
  51. data/_includes/themes/j1/procedures/posts/create_series_header.proc +1 -1
  52. data/_includes/themes/j1/procedures/posts/pager.proc +1 -1
  53. data/_layouts/_home.html +1 -1
  54. data/_layouts/autopage_category.html +1 -1
  55. data/_layouts/autopage_collection.html +1 -1
  56. data/_layouts/autopage_collections_tags.html +1 -1
  57. data/_layouts/autopage_tags.html +1 -1
  58. data/_layouts/collection.html +1 -1
  59. data/_layouts/compress.html +1 -1
  60. data/_layouts/default.html +1 -1
  61. data/_layouts/home.html +1 -1
  62. data/_layouts/news_panel_posts.html +1 -1
  63. data/_layouts/page.html +1 -1
  64. data/_layouts/post.html +1 -1
  65. data/_layouts/raw.html +1 -1
  66. data/apps/public/cc/cc.yml +1 -1
  67. data/assets/data/authclient.html +2 -2
  68. data/assets/data/banner.html +5 -5
  69. data/assets/data/carousel.json +1 -1
  70. data/assets/data/cookieconsent.html +2 -2
  71. data/assets/data/fab.html +2 -2
  72. data/assets/data/footer.html +2 -2
  73. data/assets/data/galeries.html +240 -0
  74. data/assets/data/gallery_customizer.html +2 -2
  75. data/assets/data/iso-639-language-codes-flags.json +1 -1
  76. data/assets/data/iso-639-language-codes.json +1 -1
  77. data/assets/data/j1_config.json +1 -1
  78. data/assets/data/masonry.html +99 -86
  79. data/assets/data/masterslider.html +2 -2
  80. data/assets/data/mdi_icons.json +1 -1
  81. data/assets/data/mdil_icons.json +1 -1
  82. data/assets/data/menu.html +2 -2
  83. data/assets/data/mmenu.html +2 -2
  84. data/assets/data/mmenu_sidebar.html +2 -2
  85. data/assets/data/mmenu_toc.html +2 -2
  86. data/assets/data/panel.html +2 -2
  87. data/assets/data/particles.yml +1 -1
  88. data/assets/data/private.json +1 -1
  89. data/assets/data/quicklinks.html +2 -2
  90. data/assets/data/rtext_resizer.html +2 -2
  91. data/assets/data/slick.html +2 -2
  92. data/assets/data/speak2me.html +2 -2
  93. data/assets/data/themes.bootswatch.json +1 -1
  94. data/assets/data/themes.json +1 -1
  95. data/assets/data/translator.html +2 -2
  96. data/assets/error_pages/HTTP204.html +1 -1
  97. data/assets/error_pages/HTTP400.html +1 -1
  98. data/assets/error_pages/HTTP401.html +1 -1
  99. data/assets/error_pages/HTTP403.html +1 -1
  100. data/assets/error_pages/HTTP404.html +1 -1
  101. data/assets/error_pages/HTTP444.html +1 -1
  102. data/assets/error_pages/HTTP445.html +1 -1
  103. data/assets/error_pages/HTTP446.html +1 -1
  104. data/assets/error_pages/HTTP447.html +1 -1
  105. data/assets/error_pages/HTTP448.html +1 -1
  106. data/assets/error_pages/HTTP500.html +1 -1
  107. data/assets/error_pages/HTTP501.html +1 -1
  108. data/assets/error_pages/HTTP502.html +1 -1
  109. data/assets/error_pages/HTTP503.html +1 -1
  110. data/assets/themes/j1/adapter/js/advertising.js +2 -2
  111. data/assets/themes/j1/adapter/js/algolia.js +2 -2
  112. data/assets/themes/j1/adapter/js/analytics.js +2 -2
  113. data/assets/themes/j1/adapter/js/asciidoctor.js +2 -2
  114. data/assets/themes/j1/adapter/js/attic.js +2 -2
  115. data/assets/themes/j1/adapter/js/bmd.js +2 -2
  116. data/assets/themes/j1/adapter/js/carousel.js +2 -2
  117. data/assets/themes/j1/adapter/js/clipboard.js +2 -2
  118. data/assets/themes/j1/adapter/js/comments.js +2 -2
  119. data/assets/themes/j1/adapter/js/cookieConsent.js +1 -1
  120. data/assets/themes/j1/adapter/js/customFunctions.js +2 -2
  121. data/assets/themes/j1/adapter/js/customModule.js +2 -2
  122. data/assets/themes/j1/adapter/js/dropdowns.js +2 -2
  123. data/assets/themes/j1/adapter/js/fab.js +2 -2
  124. data/assets/themes/j1/adapter/js/framer.js +2 -2
  125. data/assets/themes/j1/adapter/js/gallery.js +325 -0
  126. data/assets/themes/j1/adapter/js/iconPicker.js +2 -2
  127. data/assets/themes/j1/adapter/js/j1.js +2 -2
  128. data/assets/themes/j1/adapter/js/lazyLoader.js +2 -2
  129. data/assets/themes/j1/adapter/js/{justifiedGallery.js → lightGallery.js} +54 -48
  130. data/assets/themes/j1/adapter/js/lightbox.js +2 -2
  131. data/assets/themes/j1/adapter/js/logger.js +2 -2
  132. data/assets/themes/j1/adapter/js/lunr.js +2 -2
  133. data/assets/themes/j1/adapter/js/masonry.js +80 -13
  134. data/assets/themes/j1/adapter/js/masterslider.js +2 -2
  135. data/assets/themes/j1/adapter/js/mmenu.js +2 -2
  136. data/assets/themes/j1/adapter/js/navigator.js +2 -2
  137. data/assets/themes/j1/adapter/js/particles.js +2 -2
  138. data/assets/themes/j1/adapter/js/rangeSlider.js +2 -2
  139. data/assets/themes/j1/adapter/js/rouge.js +2 -2
  140. data/assets/themes/j1/adapter/js/rtable.js +2 -2
  141. data/assets/themes/j1/adapter/js/rtextResizer.js +2 -2
  142. data/assets/themes/j1/adapter/js/scroller.js +2 -2
  143. data/assets/themes/j1/adapter/js/slick.js +1 -1
  144. data/assets/themes/j1/adapter/js/speak2me.js +2 -2
  145. data/assets/themes/j1/adapter/js/themeToggler.js +2 -2
  146. data/assets/themes/j1/adapter/js/themer.js +2 -2
  147. data/assets/themes/j1/adapter/js/toccer.js +2 -2
  148. data/assets/themes/j1/adapter/js/translator.js +1 -1
  149. data/assets/themes/j1/adapter/js/waves.js +2 -2
  150. data/assets/themes/j1/core/country-flags/css/theme/uno.css +1 -1
  151. data/assets/themes/j1/core/country-flags/css/theme/uno.min.css +1 -1
  152. data/assets/themes/j1/core/css/animate.css +2 -2
  153. data/assets/themes/j1/core/css/icon-fonts/fontawesome.css +2 -2
  154. data/assets/themes/j1/core/css/icon-fonts/iconify.css +5 -5
  155. data/assets/themes/j1/core/css/icon-fonts/mdi.css +9 -9
  156. data/assets/themes/j1/core/css/icon-fonts/mdib.css +7 -7
  157. data/assets/themes/j1/core/css/icon-fonts/mdil.css +10 -10
  158. data/assets/themes/j1/core/css/themes/bootstrap/bootstrap.css +1 -1
  159. data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +30 -30
  160. data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +107 -100
  161. data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
  162. data/assets/themes/j1/core/css/vendor.css +10 -10
  163. data/assets/themes/j1/core/js/template.js +159 -19
  164. data/assets/themes/j1/core/js/template.min.js +6 -6
  165. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  166. data/assets/themes/j1/modules/backstretch/js/backstretch.js +1 -1
  167. data/assets/themes/j1/modules/backstretch/js/backstretch.min.js +1 -1
  168. data/assets/themes/j1/modules/bmd/js/bmd.js +1 -1
  169. data/assets/themes/j1/modules/bmd/js/bmd.min.js +1 -1
  170. data/assets/themes/j1/modules/bootstrap/js/bootstrap.js +2118 -2696
  171. data/assets/themes/j1/modules/bootstrap/js/bootstrap.js.map +1 -0
  172. data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js +3 -3
  173. data/assets/themes/j1/modules/bootstrap/js/bootstrap.min.js.map +1 -1
  174. data/assets/themes/j1/modules/carousel/css/carousel.css +1 -1
  175. data/assets/themes/j1/modules/carousel/css/carousel.min.css +1 -1
  176. data/assets/themes/j1/modules/carousel/css/carousel_transitions.css +1 -1
  177. data/assets/themes/j1/modules/carousel/css/carousel_transitions.min.css +1 -1
  178. data/assets/themes/j1/modules/carousel/css/theme/uno.css +1 -1
  179. data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
  180. data/assets/themes/j1/modules/clipboard/css/theme/uno.css +1 -1
  181. data/assets/themes/j1/modules/clipboard/css/theme/uno.min.css +1 -1
  182. data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.css +1 -1
  183. data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.min.css +1 -1
  184. data/assets/themes/j1/modules/dropdowns/js/cash.js +1 -1
  185. data/assets/themes/j1/modules/dropdowns/js/cash.min.js +1 -1
  186. data/assets/themes/j1/modules/dropdowns/js/dropdowns.js +1 -1
  187. data/assets/themes/j1/modules/dropdowns/js/dropdowns.min.js +1 -1
  188. data/assets/themes/j1/modules/fab/js/cash.js +1 -1
  189. data/assets/themes/j1/modules/fab/js/cash.min.js +1 -1
  190. data/assets/themes/j1/modules/fab/js/fab.js +1 -1
  191. data/assets/themes/j1/modules/fab/js/fab.min.js +1 -1
  192. data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.css +1 -1
  193. data/assets/themes/j1/modules/iconPicker/css/universal-icon-picker.min.css +1 -1
  194. data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.js +1 -1
  195. data/assets/themes/j1/modules/iconPicker/js/universal-icon-picker.min.js +1 -1
  196. data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.min.js +0 -1
  197. data/assets/themes/j1/modules/iframeResizer/js/resizer.min.js +0 -1
  198. data/assets/themes/j1/modules/jquery/js/extensions/hasClass.js +1 -1
  199. data/assets/themes/j1/modules/jquery/js/extensions/hasClass.min.js +1 -1
  200. data/assets/themes/j1/modules/jquery/js/extensions/removeClass.js +1 -1
  201. data/assets/themes/j1/modules/jquery/js/extensions/removeClass.min.js +1 -1
  202. data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.css +1 -1
  203. data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css +1 -1
  204. data/assets/themes/j1/modules/lightGallery/css/lg-transitions.css +984 -0
  205. data/assets/themes/j1/modules/lightGallery/css/lg-transitions.min.css +26 -0
  206. data/assets/themes/j1/modules/lightGallery/css/lightgallery-bundle.css +1627 -0
  207. data/assets/themes/j1/modules/lightGallery/css/lightgallery-bundle.min.css +25 -0
  208. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-autoplay.css +67 -0
  209. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-comments.css +157 -0
  210. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-fullscreen.css +32 -0
  211. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-medium-zoom.css +40 -0
  212. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-pager.css +115 -0
  213. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-rotate.css +74 -0
  214. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-share.css +168 -0
  215. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-thumbnail.css +133 -0
  216. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-video.css +169 -0
  217. data/assets/themes/j1/modules/lightGallery/css/plugins/lg-zoom.css +141 -0
  218. data/assets/themes/j1/modules/lightGallery/css/themes/uno/uno.css +109 -0
  219. data/assets/themes/j1/modules/lightGallery/css/themes/uno/uno.min.css +19 -0
  220. data/assets/themes/j1/modules/lightGallery/{css/fonts → fonts}/lg.svg +35 -28
  221. data/assets/themes/j1/modules/lightGallery/fonts/lg.ttf +0 -0
  222. data/assets/themes/j1/modules/lightGallery/fonts/lg.woff +0 -0
  223. data/assets/themes/j1/modules/lightGallery/fonts/lg.woff2 +0 -0
  224. data/assets/themes/j1/modules/lightGallery/img/loading.gif +0 -0
  225. data/assets/themes/j1/modules/lightGallery/js/lightgallery.js +2759 -0
  226. data/assets/themes/j1/modules/lightGallery/js/lightgallery.min.js +25 -0
  227. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-autoplay.js +275 -0
  228. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-autoplay.min.js +26 -0
  229. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-comment.js +230 -0
  230. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-comment.min.js +26 -0
  231. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-fullscreen.js +160 -0
  232. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-fullscreen.min.js +26 -0
  233. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-hash.js +223 -0
  234. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-hash.min.js +27 -0
  235. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-medium-zoom.js +157 -0
  236. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-medium-zoom.min.js +26 -0
  237. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-pager.js +164 -0
  238. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-pager.min.js +26 -0
  239. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-rotate.js +299 -0
  240. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-rotate.min.js +26 -0
  241. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-share.js +244 -0
  242. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-share.min.js +27 -0
  243. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-thumbnail.js +509 -0
  244. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-thumbnail.min.js +26 -0
  245. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.js +585 -0
  246. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-video.min.js +27 -0
  247. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.js +207 -0
  248. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-vimeo-thumbnail.min.js +26 -0
  249. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-zoom.js +999 -0
  250. data/assets/themes/j1/modules/lightGallery/js/plugins/lg-zoom.min.js +26 -0
  251. data/assets/themes/j1/modules/lightbox/css/lightbox.css +1 -1
  252. data/assets/themes/j1/modules/lightbox/css/lightbox.min.css +1 -1
  253. data/assets/themes/j1/modules/lightbox/css/theme/uno.css +1 -1
  254. data/assets/themes/j1/modules/lightbox/css/theme/uno.min.css +1 -1
  255. data/assets/themes/j1/modules/lightbox/js/lightbox.js +1 -1
  256. data/assets/themes/j1/modules/lightbox/js/lightbox.min.js +1 -1
  257. data/assets/themes/j1/modules/lunr/js/j1.js +1 -1
  258. data/assets/themes/j1/modules/lunr/js/j1.min.js +1 -1
  259. data/assets/themes/j1/modules/masonry/js/utils/images_loaded.js +439 -0
  260. data/assets/themes/j1/modules/masonry/js/utils/images_loaded.min.js +12 -0
  261. data/assets/themes/j1/modules/masterslider/css/theme/uno.css +1 -1
  262. data/assets/themes/j1/modules/masterslider/css/theme/uno.min.css +1 -1
  263. data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.css +1 -1
  264. data/assets/themes/j1/modules/mmenuLight/css/theme/uno/mmenu.min.css +1 -1
  265. data/assets/themes/j1/modules/mmenuLight/js/mmenu.js +1 -1
  266. data/assets/themes/j1/modules/mmenuLight/js/mmenu.min.js +1 -1
  267. data/assets/themes/j1/modules/mmenuLight/js/mmenu.polyfills.js +118 -0
  268. data/assets/themes/j1/modules/particles/skies/cavern1.png +0 -0
  269. data/assets/themes/j1/modules/particles/skies/cavern2.png +0 -0
  270. data/assets/themes/j1/modules/particles/skies/chrome.png +0 -0
  271. data/assets/themes/j1/modules/particles/skies/deep-space.jpg +0 -0
  272. data/assets/themes/j1/modules/particles/skies/deepblue.png +0 -0
  273. data/assets/themes/j1/modules/particles/skies/fire.png +0 -0
  274. data/assets/themes/j1/modules/particles/skies/fog.png +0 -0
  275. data/assets/themes/j1/modules/particles/skies/sky1.png +0 -0
  276. data/assets/themes/j1/modules/particles/skies/sky2.png +0 -0
  277. data/assets/themes/j1/modules/particles/skies/sky3.png +0 -0
  278. data/assets/themes/j1/modules/particles/skies/sky4.png +0 -0
  279. data/assets/themes/j1/modules/particles/skies/sky5.png +0 -0
  280. data/assets/themes/j1/modules/particles/skies/space1.png +0 -0
  281. data/assets/themes/j1/modules/particles/skies/space2.png +0 -0
  282. data/assets/themes/j1/modules/particles/skies/space3.png +0 -0
  283. data/assets/themes/j1/modules/particles/skies/starfield.png +0 -0
  284. data/assets/themes/j1/modules/particles/skies/sunorbit.png +0 -0
  285. data/assets/themes/j1/modules/particles/skies/sunset.png +0 -0
  286. data/assets/themes/j1/modules/particles/skies/toxic.png +0 -0
  287. data/assets/themes/j1/modules/particles/skies/underwater1.png +0 -0
  288. data/assets/themes/j1/modules/particles/skies/underwater2.png +0 -0
  289. data/assets/themes/j1/modules/particles/skies/underwater3.png +0 -0
  290. data/assets/themes/j1/modules/particles/skies/wtf.png +0 -0
  291. data/assets/themes/j1/modules/particles/sprites/slime.png +0 -0
  292. data/assets/themes/j1/modules/particles/sprites/slimeeyes.png +0 -0
  293. data/assets/themes/j1/modules/particles/sprites/snake.png +0 -0
  294. data/assets/themes/j1/modules/particles/sprites/snowflakes.png +0 -0
  295. data/assets/themes/j1/modules/particles/sprites/snowflakes_large.png +0 -0
  296. data/assets/themes/j1/modules/popper/js/popper.min.js +0 -1
  297. data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.css +1 -1
  298. data/assets/themes/j1/modules/rangeSlider/css/theme/uno/nouislider.min.css +1 -1
  299. data/assets/themes/j1/modules/rouge/css/base16/theme.css +1 -1
  300. data/assets/themes/j1/modules/rouge/css/base16/theme.min.css +1 -1
  301. data/assets/themes/j1/modules/rouge/css/base16.dark/theme.css +1 -1
  302. data/assets/themes/j1/modules/rouge/css/base16.dark/theme.min.css +1 -1
  303. data/assets/themes/j1/modules/rouge/css/base16.light/theme.css +1 -1
  304. data/assets/themes/j1/modules/rouge/css/base16.light/theme.min.css +1 -1
  305. data/assets/themes/j1/modules/rouge/css/base16.monokai/theme.css +1 -1
  306. data/assets/themes/j1/modules/rouge/css/base16.monokai/theme.min.css +1 -1
  307. data/assets/themes/j1/modules/rouge/css/base16.monokai.dark/theme.css +1 -1
  308. data/assets/themes/j1/modules/rouge/css/base16.monokai.dark/theme.min.css +1 -1
  309. data/assets/themes/j1/modules/rouge/css/base16.monokai.light/theme.css +1 -1
  310. data/assets/themes/j1/modules/rouge/css/base16.monokai.light/theme.min.css +1 -1
  311. data/assets/themes/j1/modules/rouge/css/base16.solarized/theme.css +1 -1
  312. data/assets/themes/j1/modules/rouge/css/base16.solarized/theme.min.css +1 -1
  313. data/assets/themes/j1/modules/rouge/css/base16.solarized.dark/theme.css +1 -1
  314. data/assets/themes/j1/modules/rouge/css/base16.solarized.dark/theme.min.css +1 -1
  315. data/assets/themes/j1/modules/rouge/css/base16.solarized.light/theme.css +1 -1
  316. data/assets/themes/j1/modules/rouge/css/base16.solarized.light/theme.min.css +1 -1
  317. data/assets/themes/j1/modules/rouge/css/colorful/theme.css +1 -1
  318. data/assets/themes/j1/modules/rouge/css/colorful/theme.min.css +1 -1
  319. data/assets/themes/j1/modules/rouge/css/github/theme.css +1 -1
  320. data/assets/themes/j1/modules/rouge/css/github/theme.min.css +1 -1
  321. data/assets/themes/j1/modules/rouge/css/gruvbox/theme.css +1 -1
  322. data/assets/themes/j1/modules/rouge/css/gruvbox/theme.min.css +1 -1
  323. data/assets/themes/j1/modules/rouge/css/gruvbox.dark/theme.css +1 -1
  324. data/assets/themes/j1/modules/rouge/css/gruvbox.dark/theme.min.css +1 -1
  325. data/assets/themes/j1/modules/rouge/css/gruvbox.light/theme.css +1 -1
  326. data/assets/themes/j1/modules/rouge/css/gruvbox.light/theme.min.css +1 -1
  327. data/assets/themes/j1/modules/rouge/css/igorpro/theme.css +1 -1
  328. data/assets/themes/j1/modules/rouge/css/igorpro/theme.min.css +1 -1
  329. data/assets/themes/j1/modules/rouge/css/molokai/theme.css +1 -1
  330. data/assets/themes/j1/modules/rouge/css/molokai/theme.min.css +1 -1
  331. data/assets/themes/j1/modules/rouge/css/monokai/theme.css +1 -1
  332. data/assets/themes/j1/modules/rouge/css/monokai/theme.min.css +1 -1
  333. data/assets/themes/j1/modules/rouge/css/monokai.sublime/theme.css +1 -1
  334. data/assets/themes/j1/modules/rouge/css/monokai.sublime/theme.min.css +1 -1
  335. data/assets/themes/j1/modules/rouge/css/pastie/theme.css +1 -1
  336. data/assets/themes/j1/modules/rouge/css/pastie/theme.min.css +1 -1
  337. data/assets/themes/j1/modules/rouge/css/thankful_eyes/theme.css +1 -1
  338. data/assets/themes/j1/modules/rouge/css/thankful_eyes/theme.min.css +1 -1
  339. data/assets/themes/j1/modules/rouge/css/themes.txt +1 -1
  340. data/assets/themes/j1/modules/rouge/css/tulip/theme.css +1 -1
  341. data/assets/themes/j1/modules/rouge/css/tulip/theme.min.css +1 -1
  342. data/assets/themes/j1/modules/rouge/css/uno.dark/theme.css +1 -1
  343. data/assets/themes/j1/modules/rouge/css/uno.dark/theme.min.css +1 -1
  344. data/assets/themes/j1/modules/rouge/css/uno.light/theme.css +1 -1
  345. data/assets/themes/j1/modules/rouge/css/uno.light/theme.min.css +1 -1
  346. data/assets/themes/j1/modules/rouge/js/select.js +1 -1
  347. data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.css +1 -1
  348. data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css +1 -1
  349. data/assets/themes/j1/modules/rtable/js/rtable.js +1 -1
  350. data/assets/themes/j1/modules/rtable/js/rtable.min.js +1 -1
  351. data/assets/themes/j1/modules/scroller/css/theme/uno.css +1 -1
  352. data/assets/themes/j1/modules/scroller/css/theme/uno.min.css +1 -1
  353. data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
  354. data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.css +1 -1
  355. data/assets/themes/j1/modules/slick/lightbox/css/theme/uno.min.css +1 -1
  356. data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.min.js +0 -1
  357. data/assets/themes/j1/modules/slick/slider/css/theme/uno.css +1 -1
  358. data/assets/themes/j1/modules/slick/slider/css/theme/uno.min.css +1 -1
  359. data/assets/themes/j1/modules/spinner/css/spin.css +1 -1
  360. data/assets/themes/j1/modules/spinner/css/spin.min.css +1 -1
  361. data/assets/themes/j1/modules/spinner/js/spin.js +1 -1
  362. data/assets/themes/j1/modules/spinner/js/spin.min.js +1 -1
  363. data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +1 -1
  364. data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +1 -1
  365. data/assets/themes/j1/modules/translator/css/translator.css +1 -1
  366. data/assets/themes/j1/modules/translator/css/translator.min.css +1 -1
  367. data/assets/themes/j1/modules/videojs/css/themes/city.css +74 -74
  368. data/assets/themes/j1/modules/videojs/css/themes/city.min.css +3 -4
  369. data/assets/themes/j1/modules/videojs/css/themes/fantasy.css +3 -3
  370. data/assets/themes/j1/modules/videojs/css/themes/fantasy.min.css +3 -4
  371. data/assets/themes/j1/modules/videojs/css/themes/forest.css +4 -3
  372. data/assets/themes/j1/modules/videojs/css/themes/forest.min.css +3 -4
  373. data/assets/themes/j1/modules/videojs/css/themes/sea.css +2 -2
  374. data/assets/themes/j1/modules/videojs/css/themes/sea.min.css +3 -4
  375. data/assets/themes/j1/modules/videojs/css/themes/uno.css +151 -0
  376. data/assets/themes/j1/modules/videojs/css/themes/uno.min.css +17 -0
  377. data/assets/themes/j1/modules/videojs/css/video-js.css +12 -0
  378. data/assets/themes/j1/modules/videojs/css/video-js.min.css +12 -0
  379. data/assets/themes/j1/modules/videojs/js/plugins/dm/LICENSE +19 -0
  380. data/assets/themes/j1/modules/videojs/js/plugins/dm/README.md +94 -0
  381. data/assets/themes/j1/modules/videojs/js/plugins/dm/api/README.md +7 -0
  382. data/assets/themes/j1/modules/videojs/js/plugins/dm/api/dailymotion.min.js +29 -0
  383. data/assets/themes/j1/modules/videojs/js/plugins/dm/api/dailymotion.player.min.js +80 -0
  384. data/assets/themes/j1/modules/videojs/js/plugins/dm/dailymotion.js +603 -0
  385. data/assets/themes/j1/modules/videojs/js/plugins/dm/dailymotion.min.js +16 -0
  386. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-controls.html +18 -0
  387. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-javascript.html +27 -0
  388. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/dailymotion-playlist.html +19 -0
  389. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/global-parameters.html +28 -0
  390. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/simple.html +20 -0
  391. data/assets/themes/j1/modules/videojs/js/plugins/dm/examples/switch.html +37 -0
  392. data/assets/themes/j1/modules/videojs/js/plugins/vm/LICENSE +21 -0
  393. data/assets/themes/j1/modules/videojs/js/plugins/vm/README.md +15 -0
  394. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/README.md +1818 -0
  395. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/player.min.js +23 -0
  396. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/vimeo.js +3562 -0
  397. data/assets/themes/j1/modules/videojs/js/plugins/vm/api/vimeo.min.js +35 -0
  398. data/assets/themes/j1/modules/videojs/js/plugins/vm/examples/index.html +33 -0
  399. data/assets/themes/j1/modules/videojs/js/plugins/vm/examples/player/index.html +37 -0
  400. data/assets/themes/j1/modules/videojs/js/plugins/vm/vimeo.js +521 -0
  401. data/assets/themes/j1/modules/videojs/js/plugins/vm/vimeo.min.js +15 -0
  402. data/assets/themes/j1/modules/videojs/js/plugins/wt/api/Readme.txt +20 -0
  403. data/assets/themes/j1/modules/videojs/js/plugins/wt/api/WistiaPlayer.ts +1617 -0
  404. data/assets/themes/j1/modules/videojs/js/plugins/wt/api/wistia.min.js +2 -0
  405. data/assets/themes/j1/modules/videojs/js/plugins/wt/wistia.js +383 -0
  406. data/assets/themes/j1/modules/videojs/js/plugins/wt/wistia.min.js +18 -0
  407. data/assets/themes/j1/modules/videojs/js/plugins/yt/README.md +115 -0
  408. data/assets/themes/j1/modules/videojs/js/plugins/yt/api/youtube.min.js +20 -0
  409. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/global-parameters.html +32 -0
  410. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/simple.html +20 -0
  411. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/switch.html +37 -0
  412. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-controls.html +18 -0
  413. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-javascript.html +27 -0
  414. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-list.html +19 -0
  415. data/assets/themes/j1/modules/videojs/js/plugins/yt/examples/youtube-playlist.html +19 -0
  416. data/assets/themes/j1/modules/videojs/js/plugins/yt/youtube.js +832 -0
  417. data/assets/themes/j1/modules/videojs/js/plugins/yt/youtube.min.js +16 -0
  418. data/assets/themes/j1/modules/videojs/js/video.js +40610 -32915
  419. data/assets/themes/j1/modules/videojs/js/video.min.js +33 -20
  420. data/lib/j1/version.rb +1 -1
  421. data/lib/j1_app/j1_auth_manager/auth_manager.rb +1 -1
  422. data/lib/j1_app/j1_auth_manager/warden_omniauth.rb +1 -1
  423. data/lib/j1_app/omniauth/strategies/github.rb +1 -1
  424. data/lib/starter_web/Gemfile +3 -3
  425. data/lib/starter_web/README.md +5 -5
  426. data/lib/starter_web/_config.yml +2 -2
  427. data/lib/starter_web/_data/_defaults/categories.yml +1 -1
  428. data/lib/starter_web/_data/_defaults/colors.yml +1 -1
  429. data/lib/starter_web/_data/_defaults/font_sizes.yml +1 -1
  430. data/lib/starter_web/_data/_defaults/j1_config.yml +1 -1
  431. data/lib/starter_web/_data/_defaults/private.yml +1 -1
  432. data/lib/starter_web/_data/_defaults/resources.yml +1 -1
  433. data/lib/starter_web/_data/apps/defaults/justifiedGalleryCustomizer.yml +1 -1
  434. data/lib/starter_web/_data/apps/justifiedGalleryCustomizer.yml +1 -1
  435. data/lib/starter_web/_data/asciidoc2pdf/themes/j1-theme.yml +1 -1
  436. data/lib/starter_web/_data/blocks/banner.yml +1 -1
  437. data/lib/starter_web/_data/blocks/defaults/banner.yml +1 -1
  438. data/lib/starter_web/_data/blocks/defaults/footer.yml +1 -1
  439. data/lib/starter_web/_data/blocks/defaults/panel.yml +1 -1
  440. data/lib/starter_web/_data/blocks/footer.yml +2 -2
  441. data/lib/starter_web/_data/blocks/panel.yml +1 -1
  442. data/lib/starter_web/_data/categories.yml +1 -1
  443. data/lib/starter_web/_data/colors.yml +1 -1
  444. data/lib/starter_web/_data/font_sizes.yml +1 -1
  445. data/lib/starter_web/_data/j1_config.yml +1 -1
  446. data/lib/starter_web/_data/layouts/collection.yml +1 -1
  447. data/lib/starter_web/_data/layouts/default.yml +1 -1
  448. data/lib/starter_web/_data/layouts/home.yml +1 -1
  449. data/lib/starter_web/_data/layouts/news_panel_posts.yml +1 -1
  450. data/lib/starter_web/_data/layouts/page.yml +1 -1
  451. data/lib/starter_web/_data/layouts/post.yml +1 -1
  452. data/lib/starter_web/_data/layouts/raw.yml +1 -1
  453. data/lib/starter_web/_data/modules/advertising.yml +2 -2
  454. data/lib/starter_web/_data/modules/analytics.yml +1 -1
  455. data/lib/starter_web/_data/modules/attics.yml +1 -1
  456. data/lib/starter_web/_data/modules/authentication.yml +1 -1
  457. data/lib/starter_web/_data/modules/blog_navigator.yml +1 -1
  458. data/lib/starter_web/_data/modules/carousel.yml +1 -1
  459. data/lib/starter_web/_data/modules/comments.yml +1 -1
  460. data/lib/starter_web/_data/modules/cookieconsent.yml +1 -1
  461. data/lib/starter_web/_data/modules/cookies.yml +1 -1
  462. data/lib/starter_web/_data/modules/defaults/advertising.yml +1 -1
  463. data/lib/starter_web/_data/modules/defaults/analytics.yml +1 -1
  464. data/lib/starter_web/_data/modules/defaults/attics.yml +1 -1
  465. data/lib/starter_web/_data/modules/defaults/authentication.yml +1 -1
  466. data/lib/starter_web/_data/modules/defaults/blog_navigator.yml +1 -1
  467. data/lib/starter_web/_data/modules/defaults/carousel.yml +1 -1
  468. data/lib/starter_web/_data/modules/defaults/comments.yml +1 -1
  469. data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +1 -1
  470. data/lib/starter_web/_data/modules/defaults/cookies.yml +1 -1
  471. data/lib/starter_web/_data/modules/defaults/dropdowns.yml +1 -1
  472. data/lib/starter_web/_data/modules/defaults/fab.yml +1 -1
  473. data/lib/starter_web/_data/modules/defaults/framer.yml +1 -1
  474. data/lib/starter_web/_data/modules/defaults/{justifiedGallery.yml → gallery.yml} +18 -28
  475. data/lib/starter_web/_data/modules/defaults/iconPicker.yml +1 -1
  476. data/lib/starter_web/_data/modules/defaults/lazyLoader.yml +1 -1
  477. data/lib/starter_web/_data/modules/defaults/lightGallery.yml +8 -6
  478. data/lib/starter_web/_data/modules/defaults/lightbox.yml +1 -1
  479. data/lib/starter_web/_data/modules/defaults/log4javascript.yml +1 -1
  480. data/lib/starter_web/_data/modules/defaults/log4r.yml +1 -1
  481. data/lib/starter_web/_data/modules/defaults/lunr.yml +1 -1
  482. data/lib/starter_web/_data/modules/defaults/masonry.yml +53 -13
  483. data/lib/starter_web/_data/modules/defaults/masterslider.yml +1 -1
  484. data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
  485. data/lib/starter_web/_data/modules/defaults/particles.yml +1 -1
  486. data/lib/starter_web/_data/modules/defaults/rangeSlider.yml +1 -1
  487. data/lib/starter_web/_data/modules/defaults/rtable.yml +1 -1
  488. data/lib/starter_web/_data/modules/defaults/scroller.yml +1 -1
  489. data/lib/starter_web/_data/modules/defaults/slick.yml +1 -1
  490. data/lib/starter_web/_data/modules/defaults/speak2me.yml +1 -1
  491. data/lib/starter_web/_data/modules/defaults/theme_toggler.yml +1 -1
  492. data/lib/starter_web/_data/modules/defaults/themer.yml +1 -1
  493. data/lib/starter_web/_data/modules/defaults/toccer.yml +1 -1
  494. data/lib/starter_web/_data/modules/defaults/translator.yml +1 -1
  495. data/lib/starter_web/_data/modules/defaults/waves.yml +1 -1
  496. data/lib/starter_web/_data/modules/dropdowns.yml +1 -1
  497. data/lib/starter_web/_data/modules/fab.yml +1 -1
  498. data/lib/starter_web/_data/modules/framer.yml +1 -1
  499. data/lib/starter_web/_data/modules/gallery.yml +874 -0
  500. data/lib/starter_web/_data/modules/iconPicker.yml +1 -1
  501. data/lib/starter_web/_data/modules/lazyLoader.yml +1 -1
  502. data/lib/starter_web/_data/modules/lightGallery.yml +8 -5
  503. data/lib/starter_web/_data/modules/lightbox.yml +1 -1
  504. data/lib/starter_web/_data/modules/log4javascript.yml +1 -1
  505. data/lib/starter_web/_data/modules/log4r.yml +1 -1
  506. data/lib/starter_web/_data/modules/lunr.yml +1 -1
  507. data/lib/starter_web/_data/modules/masonry.yml +401 -87
  508. data/lib/starter_web/_data/modules/masterslider.yml +1 -1
  509. data/lib/starter_web/_data/modules/navigator.yml +1 -1
  510. data/lib/starter_web/_data/modules/navigator_menu.yml +18 -4
  511. data/lib/starter_web/_data/modules/nbinteract.yml +1 -1
  512. data/lib/starter_web/_data/modules/particles.yml +1 -1
  513. data/lib/starter_web/_data/modules/rangeSlider.yml +1 -1
  514. data/lib/starter_web/_data/modules/rtable.yml +1 -1
  515. data/lib/starter_web/_data/modules/scroller.yml +1 -1
  516. data/lib/starter_web/_data/modules/slick.yml +1 -1
  517. data/lib/starter_web/_data/modules/speak2me.yml +1 -1
  518. data/lib/starter_web/_data/modules/theme_toggler.yml +1 -1
  519. data/lib/starter_web/_data/modules/themer.yml +1 -1
  520. data/lib/starter_web/_data/modules/toccer.yml +1 -1
  521. data/lib/starter_web/_data/modules/translator.yml +1 -1
  522. data/lib/starter_web/_data/modules/waves.yml +1 -1
  523. data/lib/starter_web/_data/plugins/defaults/feed.yml +1 -1
  524. data/lib/starter_web/_data/plugins/defaults/paginator.yml +1 -1
  525. data/lib/starter_web/_data/plugins/defaults/seo-tags.yml +1 -1
  526. data/lib/starter_web/_data/plugins/defaults/sitemap.yml +1 -1
  527. data/lib/starter_web/_data/plugins/feed.yml +1 -1
  528. data/lib/starter_web/_data/plugins/paginator.yml +1 -1
  529. data/lib/starter_web/_data/plugins/seo-tags.yml +1 -1
  530. data/lib/starter_web/_data/plugins/sitemap.yml +1 -1
  531. data/lib/starter_web/_data/private.yml +1 -1
  532. data/lib/starter_web/_data/resources.yml +190 -118
  533. data/lib/starter_web/_data/templates/feed.xml +2 -2
  534. data/lib/starter_web/_data/templates/robots.txt +1 -1
  535. data/lib/starter_web/_data/templates/seo-tags.html +1 -1
  536. data/lib/starter_web/_data/templates/sitemap.xml +1 -1
  537. data/lib/starter_web/_data/utilities/defaults/util_srv.yml +1 -1
  538. data/lib/starter_web/_data/utilities/util_srv.yml +1 -1
  539. data/lib/starter_web/_includes/custom/static/bs5_accordion.html +1 -1
  540. data/lib/starter_web/_includes/custom/templates/bs5_accordion.html +1 -1
  541. data/lib/starter_web/_includes/custom/templates/collection_panel.html +1 -1
  542. data/lib/starter_web/_includes/custom/templates/custom_header.html +1 -1
  543. data/lib/starter_web/_includes/custom/templates/people_panel.html +1 -1
  544. data/lib/starter_web/_includes/google/static/google_ad__your-slot-id.html +1 -1
  545. data/lib/starter_web/_includes/google/templates/google_ads.html +1 -1
  546. data/lib/starter_web/_plugins/asciidoctor/admonition-block-answer.rb +3 -2
  547. data/lib/starter_web/_plugins/asciidoctor/admonition-block-question.rb +7 -6
  548. data/lib/starter_web/_plugins/asciidoctor/banner.rb +8 -5
  549. data/lib/starter_web/_plugins/asciidoctor/callout.rb +10 -8
  550. data/lib/starter_web/_plugins/asciidoctor/carousel-block.rb +14 -8
  551. data/lib/starter_web/_plugins/asciidoctor/conum.rb +3 -1
  552. data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +83 -0
  553. data/lib/starter_web/_plugins/asciidoctor/fab-icon-inline.rb +8 -5
  554. data/lib/starter_web/_plugins/asciidoctor/fas-icon-inline.rb +8 -5
  555. data/lib/starter_web/_plugins/asciidoctor/flag-icon-inline.rb +8 -5
  556. data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +50 -44
  557. data/lib/starter_web/_plugins/asciidoctor/gist-block.rb +56 -52
  558. data/lib/starter_web/_plugins/asciidoctor/google-ad-block.rb +52 -47
  559. data/lib/starter_web/_plugins/asciidoctor/iconify-icon-inline.rb +8 -5
  560. data/lib/starter_web/_plugins/asciidoctor/lightbox-block.rb +88 -82
  561. data/lib/starter_web/_plugins/asciidoctor/lorem_inline.rb +5 -4
  562. data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +13 -7
  563. data/lib/starter_web/_plugins/asciidoctor/masterslider-block.rb +54 -48
  564. data/lib/starter_web/_plugins/asciidoctor/mdi-icon-inline.rb +2 -1
  565. data/lib/starter_web/_plugins/asciidoctor/mdib-icon-inline.rb +2 -1
  566. data/lib/starter_web/_plugins/asciidoctor/mdil-icon-inline.rb +2 -1
  567. data/lib/starter_web/_plugins/asciidoctor/panel.rb +9 -5
  568. data/lib/starter_web/_plugins/asciidoctor/placeholder-inline.rb +4 -3
  569. data/lib/starter_web/_plugins/asciidoctor/range-slider-block.rb +49 -44
  570. data/lib/starter_web/_plugins/asciidoctor/shout-block.rb +6 -7
  571. data/lib/starter_web/_plugins/asciidoctor/slick-block.rb +12 -6
  572. data/lib/starter_web/_plugins/asciidoctor/textbook-block.rb +9 -5
  573. data/lib/starter_web/_plugins/asciidoctor/twitter-emoji-inline.rb +4 -1
  574. data/lib/starter_web/_plugins/asciidoctor/video-block.rb +65 -0
  575. data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +82 -0
  576. data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +82 -0
  577. data/lib/starter_web/_plugins/asciidoctor/wistia-block.rb +87 -0
  578. data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +95 -0
  579. data/lib/starter_web/_plugins/filter/debug.rb +1 -1
  580. data/lib/starter_web/_plugins/filter/encodeBase64.rb +1 -1
  581. data/lib/starter_web/_plugins/filter/encryptAES.rb +1 -1
  582. data/lib/starter_web/_plugins/filter/filters.rb +1 -1
  583. data/lib/starter_web/_plugins/filter/liquify.rb +1 -1
  584. data/lib/starter_web/_plugins/filter/minifyJS.rb +1 -1
  585. data/lib/starter_web/_plugins/filter/minifyJSON.rb +1 -1
  586. data/lib/starter_web/_plugins/filter/prettify.rb +1 -1
  587. data/lib/starter_web/_plugins/filter/xml_prettify.rb +1 -1
  588. data/lib/starter_web/_plugins/helper/symlink_watcher.rb +1 -1
  589. data/lib/starter_web/_plugins/i18n/date.rb +1 -1
  590. data/lib/starter_web/_plugins/index/lunr.rb +2 -2
  591. data/lib/starter_web/_plugins/seo/j1-feed.rb +1 -1
  592. data/lib/starter_web/_plugins/seo/j1-seo-tags.rb +1 -1
  593. data/lib/starter_web/_plugins/seo/j1-sitemap.rb +1 -1
  594. data/lib/starter_web/assets/images/icons/videojs/videojs-logo.png +0 -0
  595. data/lib/starter_web/assets/images/icons/videojs/videojs-poster.png +0 -0
  596. data/lib/starter_web/assets/videos/gallery/_video_james_carpool_caraoke_poster.jpg +0 -0
  597. data/lib/starter_web/assets/videos/gallery/html5/video1-poster.jpg +0 -0
  598. data/lib/starter_web/assets/videos/gallery/html5/video1.subtitles.vtt +39 -0
  599. data/lib/starter_web/assets/videos/gallery/html5/video2-poster.jpg +0 -0
  600. data/lib/starter_web/assets/videos/gallery/html5/303/237video2-poster.jpg +0 -0
  601. data/lib/starter_web/assets/videos/gallery/video1-poster.1920..jpg +0 -0
  602. data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_poster.1920.jpg +0 -0
  603. data/lib/starter_web/assets/videos/gallery/video_adele_last_carpool_caraoke_poster.jpg +0 -0
  604. data/lib/starter_web/assets/videos/gallery/video_gaga-poster.jpg +0 -0
  605. data/lib/starter_web/assets/videos/gallery/video_james_carpool_caraoke_poster.jpg +0 -0
  606. data/lib/starter_web/config.ru +1 -1
  607. data/lib/starter_web/dot.gitattributes +1 -1
  608. data/lib/starter_web/dot.nojekyll +1 -1
  609. data/lib/starter_web/package.json +1 -1
  610. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +5 -0
  611. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +3 -0
  612. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/113_themes.asciidoc +1 -0
  613. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +11 -7
  614. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/100_chapter.asciidoc +27 -11
  615. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/200_chapter.asciidoc +3 -0
  616. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +12 -7
  617. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +14 -7
  618. data/lib/starter_web/pages/public/features/general.adoc +12 -1
  619. data/lib/starter_web/pages/public/features/template.adoc +37 -38
  620. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_all_books.adoc +4 -3
  621. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_biography.adoc +2 -3
  622. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_fantasy.adoc +2 -2
  623. data/lib/starter_web/pages/public/learn/bookshelf/article_previewer/viewer_romance.adoc +2 -2
  624. data/lib/starter_web/pages/public/learn/bookshelf/jekyll_collections.adoc +6 -5
  625. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +1 -0
  626. data/lib/starter_web/pages/public/learn/roundtrip/_includes/documents/themes_rouge.asciidoc +4 -0
  627. data/lib/starter_web/pages/public/learn/roundtrip/asciidoc_extensions.adoc +6 -5
  628. data/lib/starter_web/pages/public/learn/roundtrip/bootstrap_themes.adoc +2 -0
  629. data/lib/starter_web/pages/public/learn/roundtrip/highlghter_rouge.adoc +7 -2
  630. data/lib/starter_web/pages/public/learn/roundtrip/icon_fonts.adoc +7 -2
  631. data/lib/starter_web/pages/public/learn/roundtrip/lunr_search.adoc +12 -3
  632. data/lib/starter_web/pages/public/learn/roundtrip/modal_extentions.adoc +4 -2
  633. data/lib/starter_web/pages/public/learn/roundtrip/present_images.adoc +49 -40
  634. data/lib/starter_web/pages/public/learn/roundtrip/present_videos.adoc +264 -64
  635. data/lib/starter_web/pages/public/learn/roundtrip/responsive_tables.adoc +5 -2
  636. data/lib/starter_web/pages/public/learn/roundtrip/typography.adoc +1 -0
  637. data/lib/starter_web/pages/public/learn/where_to_go.adoc +2 -1
  638. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +3 -1
  639. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +3 -1
  640. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +2 -39
  641. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +2 -2
  642. data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +3 -2
  643. data/lib/starter_web/pages/public/plans/plans.adoc +14 -5
  644. data/lib/starter_web/pages/public/tools/previewer/_includes/attributes.asciidoc +69 -0
  645. data/lib/starter_web/pages/public/tools/previewer/_includes/documents/readme +0 -0
  646. data/lib/starter_web/pages/public/tools/previewer/preview_bootstrap_theme.adoc +1 -1
  647. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  648. data/lib/starter_web/utilsrv/package.json +1 -1
  649. data/lib/starter_web/utilsrv/server.js +1 -1
  650. metadata +170 -94
  651. data/assets/data/galleries.json +0 -156
  652. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +0 -360
  653. data/assets/themes/j1/modules/backstretch/js/v2.1.16/backstretch.js +0 -1694
  654. data/assets/themes/j1/modules/backstretch/js/v2.1.16/backstretch.min.js +0 -19
  655. data/assets/themes/j1/modules/iframeResizer/js/client/iframeResizer.contentWindow.map +0 -1
  656. data/assets/themes/j1/modules/iframeResizer/js/resizer.map +0 -1
  657. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/justifiedGallery.css +0 -110
  658. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/justifiedGallery.min.css +0 -110
  659. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/css/theme/uno.css +0 -23
  660. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.3.7.0.js +0 -1229
  661. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.js +0 -1229
  662. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/js/justifiedGallery.min.js +0 -8
  663. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/less/.csslintrc +0 -20
  664. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.7.0/less/justifiedGallery.less +0 -113
  665. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/css/justifiedGallery.css +0 -110
  666. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/css/justifiedGallery.min.css +0 -110
  667. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/js/justifiedGallery.js +0 -1245
  668. data/assets/themes/j1/modules/justifiedGallery/_versions/v3.8.0/js/justifiedGallery.min.js +0 -7
  669. data/assets/themes/j1/modules/justifiedGallery/css/_archived/justifiedGallery.css +0 -110
  670. data/assets/themes/j1/modules/justifiedGallery/css/_archived/justifiedGallery.min.css +0 -110
  671. data/assets/themes/j1/modules/lightGallery/css/core/lg-fb-comment-box.css +0 -58
  672. data/assets/themes/j1/modules/lightGallery/css/core/lg-fb-comment-box.min.css +0 -5
  673. data/assets/themes/j1/modules/lightGallery/css/core/lg-transitions.css +0 -778
  674. data/assets/themes/j1/modules/lightGallery/css/core/lg-transitions.min.css +0 -5
  675. data/assets/themes/j1/modules/lightGallery/css/core/lightgallery.css +0 -981
  676. data/assets/themes/j1/modules/lightGallery/css/core/lightgallery.min.css +0 -5
  677. data/assets/themes/j1/modules/lightGallery/css/fonts/lg.eot +0 -0
  678. data/assets/themes/j1/modules/lightGallery/css/fonts/lg.ttf +0 -0
  679. data/assets/themes/j1/modules/lightGallery/css/fonts/lg.woff +0 -0
  680. data/assets/themes/j1/modules/lightGallery/css/themes/uno.css +0 -262
  681. data/assets/themes/j1/modules/lightGallery/css/themes/uno.min.css +0 -15
  682. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery.js +0 -1375
  683. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery.min.js +0 -5
  684. data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.js +0 -1362
  685. data/assets/themes/j1/modules/lightGallery/js/core/lightgallery.min.js +0 -4
  686. data/assets/themes/j1/modules/lightGallery/js/modules/lg-autoplay.js +0 -206
  687. data/assets/themes/j1/modules/lightGallery/js/modules/lg-autoplay.min.js +0 -5
  688. data/assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.js +0 -126
  689. data/assets/themes/j1/modules/lightGallery/js/modules/lg-fullscreen.min.js +0 -5
  690. data/assets/themes/j1/modules/lightGallery/js/modules/lg-hash.js +0 -101
  691. data/assets/themes/j1/modules/lightGallery/js/modules/lg-hash.min.js +0 -5
  692. data/assets/themes/j1/modules/lightGallery/js/modules/lg-pager.js +0 -105
  693. data/assets/themes/j1/modules/lightGallery/js/modules/lg-pager.min.js +0 -5
  694. data/assets/themes/j1/modules/lightGallery/js/modules/lg-share.js +0 -107
  695. data/assets/themes/j1/modules/lightGallery/js/modules/lg-share.min.js +0 -5
  696. data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.js +0 -486
  697. data/assets/themes/j1/modules/lightGallery/js/modules/lg-thumbnail.min.js +0 -7
  698. data/assets/themes/j1/modules/lightGallery/js/modules/lg-zoom.js +0 -527
  699. data/assets/themes/j1/modules/lightGallery/js/modules/lg-zoom.min.js +0 -5
  700. data/assets/themes/j1/modules/msDropdown/js/msDropdown.min.js.map +0 -1
  701. data/assets/themes/j1/modules/popper/js/popper.min.js.map +0 -1
  702. data/assets/themes/j1/modules/rangeSlider/js/15.5.1/nouislider.js +0 -2337
  703. data/assets/themes/j1/modules/rangeSlider/js/15.5.1/nouislider.min.js +0 -1
  704. data/assets/themes/j1/modules/rangeSlider/js/9.1.0/nouislider.js +0 -2534
  705. data/assets/themes/j1/modules/slick/lightbox/js/slick-lightbox.min.js.map +0 -1
  706. data/assets/themes/j1/modules/themeSwitcher/js/_unsued/switcher.1.js +0 -454
  707. data/assets/themes/j1/modules/vimeo/froogaloop/js/froogaloop2.js +0 -4
  708. data/assets/themes/j1/modules/vimeo/froogaloop/js/froogaloop2.min.js +0 -4
  709. data/assets/themes/j1/modules/vimeo/player/js/player.js +0 -2138
  710. data/assets/themes/j1/modules/vimeo/player/js/player.js.map +0 -1
  711. data/assets/themes/j1/modules/vimeo/player/js/player.min.js +0 -2
  712. data/assets/themes/j1/modules/vimeo/player/js/player.min.js.map +0 -1
  713. data/lib/starter_web/_data/modules/justifiedGallery.yml +0 -556
  714. data/lib/starter_web/assets/videos/gallery/vk/hai.jpg +0 -0
  715. data/lib/starter_web/assets/videos/gallery/vk/otter.jpg +0 -0
  716. /data/assets/themes/j1/modules/backstretch/{LICENSE-MIT → LICENSE} +0 -0
  717. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/animation-w.png +0 -0
  718. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/customize-w.png +0 -0
  719. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/dynamic-w.png +0 -0
  720. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/facebook-icon.svg +0 -0
  721. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/googleplus-icon.svg +0 -0
  722. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/html5-w.png +0 -0
  723. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/linked-in.png +0 -0
  724. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/module-w.png +0 -0
  725. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/play-button.png +0 -0
  726. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/responsive-w.png +0 -0
  727. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/thumb-w.png +0 -0
  728. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/touch-w.png +0 -0
  729. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/twitter-icon.svg +0 -0
  730. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/twitter.png +0 -0
  731. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/video1-w.png +0 -0
  732. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/zoom-w.png +0 -0
  733. /data/assets/themes/j1/modules/lightGallery/css/themes/{icons → uno/icons}/zoom.png +0 -0
  734. /data/assets/themes/j1/modules/lightGallery/{css/img → images}/loading.gif +0 -0
  735. /data/assets/themes/j1/modules/lightGallery/{css/img → img}/video-play.png +0 -0
  736. /data/assets/themes/j1/modules/lightGallery/{css/img → img}/vimeo-play.png +0 -0
  737. /data/assets/themes/j1/modules/lightGallery/{css/img → img}/youtube-play.png +0 -0
  738. /data/assets/themes/j1/modules/lightGallery/js/{modules → plugins}/j1/j1-video.js +0 -0
  739. /data/assets/themes/j1/modules/lightGallery/js/{modules → plugins}/j1/j1-video.min.js +0 -0
@@ -0,0 +1,2 @@
1
+ /*! For license information please see E-v1.js.LICENSE.txt */
2
+ var __webpack_modules__=[,,(t,e,n)=>{n.d(e,{Component:()=>v,h:()=>f,options:()=>r,render:()=>D});var i,r,o,a,s,u={},l=[],c=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(t,e){for(var n in e)t[n]=e[n];return t}function h(t){var e=t.parentNode;e&&e.removeChild(t)}function f(t,e,n){var r,o,a,s={};for(a in e)"key"==a?r=e[a]:"ref"==a?o=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return p(t,s,r,o,null)}function p(t,e,n,i,a){var s={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=r.vnode&&r.vnode(s),s}function y(t){return t.children}function v(t,e){this.props=t,this.context=e}function m(t,e){if(null==e)return t.__?m(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?m(t):null}function g(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return g(t)}}function b(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!_.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||setTimeout)(_)}function _(){for(var t;_.__r=a.length;)t=a.sort((function(t,e){return t.__v.__b-e.__v.__b})),a=[],t.some((function(t){var e,n,i,r,o,a;t.__d&&(o=(r=(e=t).__v).__e,(a=e.__P)&&(n=[],(i=d({},r)).__v=r.__v+1,C(a,r,i,e.__n,void 0!==a.ownerSVGElement,null!=r.__h?[o]:null,n,null==o?m(r):o,r.__h),A(n,r),r.__e!=o&&g(r)))}))}function w(t,e,n,i,r,o,a,s,c,d){var h,f,v,g,b,_,w,k=i&&i.__k||l,S=k.length;for(n.__k=[],h=0;h<e.length;h++)if(null!=(g=n.__k[h]=null==(g=e[h])||"boolean"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?p(null,g,null,null,g):Array.isArray(g)?p(y,{children:g},null,null,null):g.__b>0?p(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)){if(g.__=n,g.__b=n.__b+1,null===(v=k[h])||v&&g.key==v.key&&g.type===v.type)k[h]=void 0;else for(f=0;f<S;f++){if((v=k[f])&&g.key==v.key&&g.type===v.type){k[f]=void 0;break}v=null}C(t,g,v=v||u,r,o,a,s,c,d),b=g.__e,(f=g.ref)&&v.ref!=f&&(w||(w=[]),v.ref&&w.push(v.ref,null,g),w.push(f,g.__c||b,g)),null!=b?(null==_&&(_=b),"function"==typeof g.type&&g.__k===v.__k?g.__d=c=P(g,c,t):c=O(t,g,v,k,b,c),"function"==typeof n.type&&(n.__d=c)):c&&v.__e==c&&c.parentNode!=t&&(c=m(v))}for(n.__e=_,h=S;h--;)null!=k[h]&&R(k[h],k[h]);if(w)for(h=0;h<w.length;h++)x(w[h],w[++h],w[++h])}function P(t,e,n){for(var i,r=t.__k,o=0;r&&o<r.length;o++)(i=r[o])&&(i.__=t,e="function"==typeof i.type?P(i,e,n):O(n,i,i,r,i.__e,e));return e}function O(t,e,n,i,r,o){var a,s,u;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||r!=o||null==r.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(r),a=null;else{for(s=o,u=0;(s=s.nextSibling)&&u<i.length;u+=2)if(s==r)break t;t.insertBefore(r,o),a=o}return void 0!==a?a:r.nextSibling}function k(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||c.test(e)?n:n+"px"}function S(t,e,n,i,r){var o;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(e in i)n&&e in n||k(t.style,e,"");if(n)for(e in n)i&&n[e]===i[e]||k(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?i||t.addEventListener(e,o?T:E,o):t.removeEventListener(e,o?T:E,o);else if("dangerouslySetInnerHTML"!==e){if(r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function E(t){this.l[t.type+!1](r.event?r.event(t):t)}function T(t){this.l[t.type+!0](r.event?r.event(t):t)}function C(t,e,n,i,o,a,s,u,l){var c,h,f,p,m,g,b,_,P,O,k,S,E,T,C,A=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(l=n.__h,u=e.__e=n.__e,e.__h=null,a=[u]),(c=r.__b)&&c(e);try{t:if("function"==typeof A){if(_=e.props,P=(c=A.contextType)&&i[c.__c],O=c?P?P.props.value:c.__:i,n.__c?b=(h=e.__c=n.__c).__=h.__E:("prototype"in A&&A.prototype.render?e.__c=h=new A(_,O):(e.__c=h=new v(_,O),h.constructor=A,h.render=B),P&&P.sub(h),h.props=_,h.state||(h.state={}),h.context=O,h.__n=i,f=h.__d=!0,h.__h=[],h._sb=[]),null==h.__s&&(h.__s=h.state),null!=A.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,A.getDerivedStateFromProps(_,h.__s))),p=h.props,m=h.state,f)null==A.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(null==A.getDerivedStateFromProps&&_!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(_,O),!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(_,h.__s,O)||e.__v===n.__v){for(h.props=_,h.state=h.__s,e.__v!==n.__v&&(h.__d=!1),h.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),k=0;k<h._sb.length;k++)h.__h.push(h._sb[k]);h._sb=[],h.__h.length&&s.push(h);break t}null!=h.componentWillUpdate&&h.componentWillUpdate(_,h.__s,O),null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(p,m,g)}))}if(h.context=O,h.props=_,h.__v=e,h.__P=t,S=r.__r,E=0,"prototype"in A&&A.prototype.render){for(h.state=h.__s,h.__d=!1,S&&S(e),c=h.render(h.props,h.state,h.context),T=0;T<h._sb.length;T++)h.__h.push(h._sb[T]);h._sb=[]}else do{h.__d=!1,S&&S(e),c=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++E<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),f||null==h.getSnapshotBeforeUpdate||(g=h.getSnapshotBeforeUpdate(p,m)),C=null!=c&&c.type===y&&null==c.key?c.props.children:c,w(t,Array.isArray(C)?C:[C],e,n,i,o,a,s,u,l),h.base=e.__e,e.__h=null,h.__h.length&&s.push(h),b&&(h.__E=h.__=null),h.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=j(n.__e,e,n,i,o,a,s,l);(c=r.diffed)&&c(e)}catch(t){e.__v=null,(l||null!=a)&&(e.__e=u,e.__h=!!l,a[a.indexOf(u)]=null),r.__e(t,e,n)}}function A(t,e){r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function j(t,e,n,r,o,a,s,l){var c,d,f,p=n.props,y=e.props,v=e.type,g=0;if("svg"===v&&(o=!0),null!=a)for(;g<a.length;g++)if((c=a[g])&&"setAttribute"in c==!!v&&(v?c.localName===v:3===c.nodeType)){t=c,a[g]=null;break}if(null==t){if(null===v)return document.createTextNode(y);t=o?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,y.is&&y),a=null,l=!1}if(null===v)p===y||l&&t.data===y||(t.data=y);else{if(a=a&&i.call(t.childNodes),d=(p=n.props||u).dangerouslySetInnerHTML,f=y.dangerouslySetInnerHTML,!l){if(null!=a)for(p={},g=0;g<t.attributes.length;g++)p[t.attributes[g].name]=t.attributes[g].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(function(t,e,n,i,r){var o;for(o in n)"children"===o||"key"===o||o in e||S(t,o,null,n[o],i);for(o in e)r&&"function"!=typeof e[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===e[o]||S(t,o,e[o],n[o],i)}(t,y,p,o,l),f)e.__k=[];else if(g=e.props.children,w(t,Array.isArray(g)?g:[g],e,n,r,o&&"foreignObject"!==v,a,s,a?a[0]:n.__k&&m(n,0),l),null!=a)for(g=a.length;g--;)null!=a[g]&&h(a[g]);l||("value"in y&&void 0!==(g=y.value)&&(g!==t.value||"progress"===v&&!g||"option"===v&&g!==p.value)&&S(t,"value",g,p.value,!1),"checked"in y&&void 0!==(g=y.checked)&&g!==t.checked&&S(t,"checked",g,p.checked,!1))}return t}function x(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function R(t,e,n){var i,o;if(r.unmount&&r.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||x(i,null,e)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){r.__e(t,e)}i.base=i.__P=null,t.__c=void 0}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&R(i[o],e,n||"function"!=typeof t.type);n||null==t.__e||h(t.__e),t.__=t.__e=t.__d=void 0}function B(t,e,n){return this.constructor(t,n)}function D(t,e,n){var o,a,s;r.__&&r.__(t,e),a=(o="function"==typeof n)?null:n&&n.__k||e.__k,s=[],C(e,t=(!o&&n||e).__k=f(y,null,[t]),a||u,u,void 0!==e.ownerSVGElement,!o&&n?[n]:a?null:e.firstChild?i.call(e.childNodes):null,s,!o&&n?n:a?a.__e:e.firstChild,o),A(s,t)}i=l.slice,r={__e:function(t,e,n,i){for(var r,o,a;e=e.__;)if((r=e.__c)&&!r.__)try{if((o=r.constructor)&&null!=o.getDerivedStateFromError&&(r.setState(o.getDerivedStateFromError(t)),a=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,i||{}),a=r.__d),a)return r.__E=r}catch(e){t=e}throw t}},o=0,v.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof t&&(t=t(d({},n),this.props)),t&&d(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),b(this))},v.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),b(this))},v.prototype.render=y,a=[],_.__r=0},(t,e,n)=>{n.d(e,{default:()=>a});var i=n(4),r=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};null==i.default.Wistia&&(i.default.Wistia={});var o=i.default.Wistia;null==o._initializers&&(o._initializers={}),null==o._destructors&&(o._destructors={}),null==o.mixin&&(o.mixin=function(t,e){for(var n in e)r(e,n)&&(t[n]=e[n])});const a=i.default.Wistia},(t,e,n)=>{var i;n.d(e,{default:()=>r});try{(i=self).self!==i&&void 0!==i.self&&"undefined"!=typeof window&&(i=window)}catch(t){i="undefined"!=typeof globalThis?globalThis:window}const r=i},(t,e,n)=>{n.r(e),n.d(e,{addInlineCss:()=>_,docScrollLeft:()=>ft,docScrollTop:()=>ht,elemAddClass:()=>j,elemAfter:()=>T,elemAncestorHasClass:()=>Y,elemAncestorWithClass:()=>Q,elemAncestors:()=>X,elemAnimate:()=>Z,elemAppend:()=>k,elemBefore:()=>E,elemBind:()=>J,elemBindKey:()=>it,elemBindOnce:()=>ot,elemCancelFullscreen:()=>lt,elemClasses:()=>D,elemClone:()=>O,elemContainsOffset:()=>U,elemFromObject:()=>w,elemHasClass:()=>x,elemHeight:()=>V,elemHtml:()=>v,elemInDom:()=>K,elemIsDescendantOf:()=>G,elemIsHidden:()=>z,elemIsInside:()=>$,elemMutationObserver:()=>dt,elemOffset:()=>l.elemOffset,elemPrepend:()=>S,elemRebind:()=>rt,elemRemove:()=>C,elemRemoveClass:()=>A,elemRequestFullscreen:()=>ut,elemScrollOffset:()=>q,elemStripEventAttributes:()=>ct,elemStyle:()=>I,elemToObject:()=>P,elemTrigger:()=>at,elemUnbind:()=>tt,elemUnbindAll:()=>et,elemUnbindAllInside:()=>nt,elemWidth:()=>N,elemZoom:()=>l.elemZoom,execCssTags:()=>g,execScriptTags:()=>c.execScriptTags,formInputIsFocused:()=>yt,fullscreenElement:()=>st,getComputedStyle:()=>H,getCssTags:()=>m,getLastActiveEventAt:()=>mt,getScriptTags:()=>c.getScriptTags,inUserEventContext:()=>vt,isBoxModel:()=>l.isBoxModel,isDocReady:()=>o.isDocReady,onDocReady:()=>o.onDocReady,pageLoaded:()=>a.default,propsWithVendorPrefixes:()=>W,removeCssTags:()=>b,removeScriptTags:()=>c.removeScriptTags,safeRequestAnimationFrame:()=>pt});var i,r=n(6),o=n(8),a=n(10),s=n(11),u=n(12),l=n(16),c=n(17),d=n(20),h=n(3),f=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},p=h.default,y=(0,s.cachedDetect)(),v=function(t,e){var n=m(e),i=(0,c.getScriptTags)(e);return e=b(e),e=(0,c.removeScriptTags)(e),t.innerHTML=e,g(n,t),(0,c.execScriptTags)(i)},m=function(t){return t.match(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi)||[]},g=function(t,e){if(!t)return null;(0,r.isArray)(t)||(t=m(t));for(var n=[],i=0;i<t.length;i++){var o=t[i];if(/<link.*?rel=['"]stylesheet['"][^>]*>/.test(o)){var a=o.match(/href=['"](.*?)['"]/i);if(a){var s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("href",a[1]),s.className="wistia_injected_style",(e||document.body||document.head).appendChild(s),n.push(s)}}else if(/<style>[\s\S]+?<\/style>/gi.test(o)){var u=o.match(/<style>([\s\S]+?)<\/style>/i);if(u){var l=_(e||document.body||document.head,u[1]);n.push(l)}}}return n},b=function(t){return t.replace(/<link.*?rel=['"]stylesheet['"][^>]*>|<style>[\s\S]+?<\/style>/gi,"")},_=function(t,e){var n=t||document.body||document.head,i=document.createElement("style");return i.id=(0,d.seqId)("wistia_","_style"),i.setAttribute("type","text/css"),i.className="wistia_injected_style",n.appendChild(i,n.nextSibling),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e)),i},w=function t(e){if((0,r.isArray)(e)){for(var n=[],i=0;i<e.length;i++)n.push(t(e[i]));return n}var o=e.tagName||"div",a=e.childNodes||[];(0,r.isArray)(a)||(a=[a]);var s=document.createElement(o);for(var u in e)if(f(e,u)){var l=e[u];if("childNodes"!==u&&"tagName"!==u&&"ref"!==u){var c=u.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();if("style"===u)if((0,r.isObject)(l))for(var d in l)s.style[d]=l[d];else for(var h=l.split(";"),p=0;p<h.length;p++){var y=h[p].split(/\s*:\s*/),v=y[0],m=y[1];v&&m&&(s.style[v]=m)}else if("events"===u)for(var g in l){var b=l[g];J(s,g,b)}else"className"===u||"class"===u?s.className=l:"innerHTML"===u?s.innerHTML=l:"innerText"===u?s.innerText=l:null!=l&&"function"==typeof l.toString&&s.setAttribute(c,l.toString())}}for(var _=0;_<a.length;_++){var w=a[_];if((0,r.isObject)(w)){var P=t(w);k(s,P)}else{var O=document.createTextNode(w.toString());k(s,O)}}return"function"==typeof e.ref&&e.ref(s),s},P=function t(e){if((0,r.isArray)(e))for(var n=[],i=0;i<e.length;i++)n.push(t(e[i]));var o={};o.tagName=e.tagName.toLowerCase();for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];if("tagName"!==u&&"childNodes"!==u&&"nodeType"!==u&&"nodeValue"!==u)if("style"===u){o.style={};for(var l=Object.keys(e.style),c=0;c<l.length;c++){var d=l[c],h=e.style[d];h&&!/^\d/.test(d)&&"length"!==d&&(o.style[d]=h)}}else{var f=e.getAttribute(u);null!=f&&(o[u]=f)}}for(var p=[],y=0;y<e.childNodes.length;y++){var v=e.childNodes[y];1===v.nodeType?p.push(t(v)):3===v.nodeType&&p.push(v.nodeValue)}return p.length>0&&(o.childNodes=p),o},O=function(t){var e=P(t);return w(e)},k=function t(e,n){if((0,r.isArray)(n))for(var i=0;i<n.length;i++)t(e,n[i]);else e.tagName.includes("-")?e.shadowRoot.appendChild(n,{wistiaGridCaller:!0}):e.appendChild(n,{wistiaGridCaller:!0})},S=function t(e,n){if(!(0,r.isArray)(n))return 0===e.childNodes.length?k(e,n):e.insertBefore(n,e.childNodes[0]);for(var i=0;i<n.length;i++)t(e,n[i])},E=function t(e,n){if(!(0,r.isArray)(n))return e.parentNode.insertBefore(n,e);n=n.reverse();for(var i=0;i<n.length;i++)t(e,n[i])},T=function t(e,n){if(!(0,r.isArray)(n))return e.parentNode.insertBefore(n,e.nextSibling);n=n.reverse();for(var i=0;i<n.length;i++)t(e,n[i])},C=function t(e){var n;if((0,r.isArray)(e)||window.NodeList&&e instanceof NodeList)for(var i=0;i<e.length;i++)t(e[i]);else null==e||1!==e.nodeType&&3!==e.nodeType||!(n=e.parentNode)||(n.removeChild(e),e=null)},A=function t(e,n){if((0,r.isArray)(e)||window.NodeList&&e instanceof NodeList)for(var i=0;i<e.length;i++)t(e[i],n);else if(x(e,n)){var o=e.getAttribute("class");if(o){var a=new RegExp("\\b".concat(n,"\\b"),"g"),s=M(o.replace(a,""));e.setAttribute("class",s)}}},j=function t(e,n){if((0,r.isArray)(e)||window.NodeList&&e instanceof NodeList)for(var i=0;i<e.length;i++)t(e[i],n);else if(!x(e,n)){var o,a=e.getAttribute("class");a?(A(e,n),o=M("".concat(a," ").concat(n))):o=n,e.setAttribute("class",o)}},x=function(t,e){var n=null!=t&&"function"==typeof t.getAttribute&&t.getAttribute("class");if(!n&&t&&"string"==typeof t.className&&(n=t.className),!n)return!1;var i=!1;return B(n,e,(function(t){var r=0===t||" "===n.charAt(t-1),o=t+e.length===n.length,a=" "===n.charAt(t+e.length);if(r&&(o||a))return i=!0,R})),i},R={},B=function(t,e,n){for(var i=-1;-1!=(i=t.indexOf(e,i+1))&&n(i)!==R;);},D=function(t){return t&&"string"!=typeof t.className?[""]:(t&&t.className||"").split(/\s+/)},M=function(t){return t.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g," ")},I=function t(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];if((0,r.isArray)(e)||window.NodeList&&e instanceof NodeList){for(var a=[],s=0;s<e.length;s++){var l=e[s];1===l.nodeType&&a.push(t.apply(void 0,[l].concat(i)))}return a}if(2===i.length){var c=i[0],d=i[1];e.style[c]=d}else if(1===i.length)if("string"==typeof i[0]){var h=i[0];try{return e.currentStyle?e.currentStyle[h]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(h):null}catch(t){u.wlog.notice(t)}}else{var f=W(i[0]);for(var p in f){var y=f[p];e.style[p]=y}}else u.wlog.apply(void 0,["Unexpected args",e].concat(i))},L={borderImage:!0,mixBlendMode:!0,transform:!0,transition:!0,transitionDuration:!0},F=["webkit","moz","o","ms"],W=function(t){if(y.chrome)return t;var e={};for(var n in t){var i=t[n];if(e[n]=i,L[n])for(var r=F,o=0;o<r.length;o++){var a=r[o]+n.charAt(0).toUpperCase()+n.slice(1);n[a]||(e[a]=i)}}return e},H=function(t,e){if(!window.getComputedStyle)return null;var n=window.getComputedStyle(t,null);return null==n?null:null!=e?n[e]:n},N=function(t){if(t===window)return window.innerWidth?window.innerWidth:document.documentElement?document.documentElement.offsetWidth:document.body.offsetWidth;if(t===document){var e=document.body,n=document.documentElement;return Math.max(e.scrollWidth,e.offsetWidth,n.clientWidth,n.scrollWidth,n.offsetWidth)}var i;return(i=H(t,"width"))&&null!=i?parseFloat(i):t.currentStyle?t.offsetWidth:-1},V=function(t){if(t===window)return window.innerHeight?window.innerHeight:document.documentElement?document.documentElement.offsetHeight:document.body.offsetHeight;if(t===document){var e=document.body,n=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,n.clientHeight,n.scrollHeight,n.offsetHeight)}var i;return(i=H(t,"height"))&&null!=i?parseFloat(i):t.currentStyle?t.offsetHeight:-1},U=function(t,e,n){var i=(0,l.elemOffset)(t);return i.right=i.left+N(t),i.bottom=i.top+V(t),i.left<=e&&e<i.right&&i.top<=n&&n<i.bottom},q=function(t){var e=0,n=0;if(t.parentNode)for(;t&&t.offsetParent;)n+=t.scrollTop,e+=t.scrollLeft,t=t.parentNode;return{left:e,top:n}},z=function(t){for(;t&&1===t.nodeType;){if("none"===I(t,"display"))return!0;t=t.parentNode}return!1},K=function(t){for(;t;){if(t===document)return!0;t=t.parentNode||t.getRootNode().host}return!1},G=function(t,e){for(var n=X(t),i=0;i<n.length;i++)if(n[i]===e)return!0;return!1},Q=function(t,e){for(var n=X(t),i=0;i<n.length;i++)if(x(n[i],e))return n[i];return null},Y=function(t,e){return!!Q(t,e)},X=function(t){for(var e=t,n=[];e=e.parentNode;)n.push(e);return n},$=function(t,e){return t===e||G(t,e)},Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=(0,r.merge)({time:400,easing:"ease"},n);var i=function(t,e,n){var i=[];for(var r in t)i.push("".concat(r," ").concat(e,"ms ").concat(n));return i.join(",")}(e,n.time,n.easing);I(t,{transition:i}),pt((function(){I(t,e),setTimeout((function(){I(t,{transition:""}),"function"==typeof n.callback&&n.callback()}),n.time)}))},J=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=function(i){(i=i||window.event).pageX||i.pageY||!i.clientX&&!i.clientY||(i.pageX=i.clientX+ft(),i.pageY=i.clientY+ht()),i.preventDefault||(i.preventDefault=function(){i.returnValue=!1}),i.stopPropagation||(i.stopPropagation=function(){i.cancelBubble=!0}),null==i.which&&(i.which=null!=i.charCode?i.charCode:i.keyCode),null==i.which&&null!=i.button&&(1&i.button?i.which=1:2&i.button?i.which=3:4&i.button?i.which=2:i.which=0),i.target||i.srcElement&&(i.target=i.srcElement),i.target&&3===i.target.nodeType&&(i.target=i.target.parentNode);for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];var s=n.apply(i.target,[i].concat(o));return s===tt&&tt(t,e,n),s};p._elemBind=p._elemBind||{};var o=it(t,e,n);return p._elemBind[o]=r,r.elem=t,r.event=e,t.addEventListener(e,r,i),function(){tt(t,e,n,i)}},tt=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(null!=t&&null!=t._wistiaElemId&&null!=n&&n._wistiaBindId){var r=it(t,e,n),o=p._elemBind[r];return o&&(t.removeEventListener(e,o,i),o.elem=null,o.event=null),delete p._elemBind[r]}},et=function(t){for(var e in p._elemBind){var n=p._elemBind[e];if(n&&t===n.elem){var i=n.event;n.elem.removeEventListener(i,n,!1),n.elem=null,n.event=null,delete p._elemBind[e]}}},nt=function(t){var e=0;for(var n in p._elemBind){var i=p._elemBind[n];if(i&&$(i.elem,t)){var r=i.event;i.elem.removeEventListener(r,i,!1),i.elem=null,i.event=null,delete p._elemBind[n],e+=1}}return e},it=function(t,e,n){return t._wistiaElemId=t._wistiaElemId||(0,d.seqId)("wistia_elem_"),n._wistiaBindId=n._wistiaBindId||(0,d.seqId)("wistia_bind_"),"".concat(t._wistiaElemId,".").concat(e,".").concat(n._wistiaBindId)},rt=function(t,e,n){if(n)return tt(t,e,n),J(t,e,n)},ot=function(t,e,n){return J(t,e,(function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return n.apply(this,e),tt}))},at=function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];if(t.dispatchEvent){var o=document.createEvent("Events");return o.initEvent(e,!0,!1),"click"===e||"doubleclick"===e?o.which=1:"rightclick"===e&&(o.which=2),o.customArguments=i,t.dispatchEvent(o)}if(t.fireEvent){var a={customArguments:i};return t.fireEvent("on".concat(e),a)}u.wlog.error("neither dispatchEvent nor fireEvent is defined for",t,e)},st=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},ut=function(t){return t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):t.msRequestFullscreen?t.msRequestFullscreen():t.webkitEnterFullscreen?t.webkitEnterFullscreen():(u.wlog.notice("no requestFullscreen functionality detected"),null)},lt=function(t){return document.cancelFullscreen?document.cancelFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():t&&t.webkitExitFullscreen?t.webkitExitFullscreen():(u.wlog.notice("no cancelFullscreen functionality detected"),null)},ct=function t(e){var n=e&&e.attributes||[];try{for(var i=0;i<n.length;i++){var r=n[i];/^on.+/i.test(r.name)&&(e[r.name]=null,e.removeAttribute(r.name))}}catch(t){u.wlog.error(t)}if(e.childNodes)for(var o=0;o<e.childNodes.length;o++){var a=e.childNodes[o];1===a.nodeType&&t(a)}},dt=function(t){var e=y.mutationObserver;return e?new window[e](t):null},ht=function(t){var e=document.body,n=document.documentElement;if(null==t)return n&&n.scrollTop||e&&e.scrollTop||0;e&&(e.scrollTop=t),n&&(n.scrollTop=t)},ft=function(t){var e=document.body,n=document.documentElement;if(null==t)return n&&n.scrollLeft||e&&e.scrollLeft||0;e&&(e.scrollLeft=t),n&&(n.scrollLeft=t)},pt=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){return setTimeout(t,1e3/60)})(t)},yt=function(){return/^textarea|input|select$/i.test(document.activeElement.tagName)||document.activeElement.isContentEditable},vt=function(){return!!i},mt=function(){return gt},gt=-1;["auxclick","click","contextmenu","dblclick","focus","keydown","keypress","keyup","mousedown","mouseup","reset","submit","touchend","touchstart"].forEach((function(t){J(document,t,(function(t){i=t,gt=Date.now(),setTimeout((function(){i===t&&(i=void 0)}),0)}),!y.passiveSupported||{capture:!0,passive:!0})}))},(t,e,n)=>{n.r(e),n.d(e,{assign:()=>i.default,cast:()=>m,castDeep:()=>b,clone:()=>c,eachDeep:()=>W,eachLeaf:()=>H,equalsDeep:()=>F,except:()=>w,exists:()=>v,filter:()=>E,getDeep:()=>d,identityFunc:()=>u,indexOf:()=>V,isArray:()=>C,isBasicType:()=>M,isEmpty:()=>I,isFunction:()=>x,isObject:()=>j,isRegExp:()=>B,isSubsetDeep:()=>L,keys:()=>U,legacyShouldDeleteFromMerge:()=>l,merge:()=>a,mergeOne:()=>s,only:()=>_,pick:()=>N,select:()=>P,setAndPreserveUndefined:()=>f,setDeep:()=>h,sort:()=>S,unsetDeep:()=>y,values:()=>k});var i=n(7),r=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},o=Array.prototype.slice,a=function(t){if(0==(arguments.length<=1?0:arguments.length-1))return t;for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++)s(t,e+1<1||arguments.length<=e+1?void 0:arguments[e+1]);return t},s=function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l;if(C(n)){C(e)||(e=[]);for(var a=0;a<n.length;a++){var s=n[a];null==e[a]&&null!=s&&(C(s)?e[a]=[]:j(s)&&(e[a]={}));var c=t(e[a],s,i);o(n,a,c)?delete e[a]:e[a]=c}return i(e)}if(j(n)){for(var d in n)if(r(n,d)&&(r(e,d)||null==e[d])){var h=n[d];C(h)?(C(e[d])||(e[d]=[]),t(e[d],h,i),e[d]=i(e[d])):j(h)?(j(e[d])||(e[d]={}),t(e[d],h,i),e[d]=i(e[d])):null==e?(e={},o(n,d,h)||(e[d]=i(h))):o(n,d,h)?delete e[d]:e[d]=i(h)}return i(e)}return i(n)},u=function(t){return t},l=function(t,e,n){return null==n},c=function(t,e){return C(t)?s([],t,e):s({},t,e)},d=function(t,e,n){e="string"==typeof e?e.split("."):o.call(e);for(var i,a=t;null!=t&&e.length;){var s=e.shift();void 0!==t[s]&&(j(t[s])||C(t[s]))||!n||(0===s?(t=a[i]=[])[s]={}:t[s]={}),a=t,i=s,t=r(t,s)?t[s]:void 0}return t},h=function(t,e,n){return p(t,e,n,!0)},f=function(t,e,n){return p(t,e,n,!1)},p=function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],r=(e="string"==typeof e?e.split("."):o.call(e)).pop();null!=(t=d(t,e,!0))&&(j(t)||C(t))&&null!=r&&(i&&null==n?delete t[r]:t[r]=n)},y=function(t,e){return h(t,e)},v=function(t,e){return void 0!==d(t,e)},m=function(t){return null==t?t:j(t)||C(t)?b(t):g("".concat(t),t)},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;return/^-?[1-9]\d*?$/.test(t)?parseInt(t,10):"0"===t||"-0"===t?0:/^-?\d*\.\d+$/.test(t)?parseFloat(t):!!/^true$/i.test(t)||!/^false$/i.test(t)&&e},b=function(t){return s(t,t,(function(t){return"string"==typeof t?g(t):t}),(function(){return!1}))},_=function(t,e){for(var n={},i={},r=0;r<e.length;r++)i[e[r]]=!0;for(var o in t)i[o]&&(n[o]=t[o]);return n},w=function(t,e){for(var n={},i={},r=0;r<e.length;r++)i[e[r]]=!0;for(var o in t)i[o]||(n[o]=t[o]);return n},P=function(t,e){for(var n=[],i="function"==typeof e,r=i?e:null,o=0;o<t.length;o++){var a=t[o];if(i)r(a)&&n.push(a);else{var s=!0;for(var u in e){var l=e[u];if(l instanceof Array){if(!a[u]||a[u]<l[0]||a[u]>l[1]){s=!1;break}}else if(l instanceof RegExp){if(!l.test(a[u])){s=!1;break}}else if(l instanceof O){for(var c=!1,d=0;d<l.values.length;d++){var h=l.values[d];if(a[u]===h){c=!0;break}}if(!c){s=!1;break}}else if("function"==typeof l){if(null==a[u]||!l(a[u])){s=!1;break}}else if(a[u]!==l){s=!1;break}}s&&n.push(a)}}return n},O=function(t){var e=this;return e.values=t,e},k=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return new O(e)},S=function(t,e){var n="function"==typeof e,i=n?e:null,r=o.call(t);return n?r.sort(i):r.sort((function(t,n){var i;i=e instanceof Array?c(e):e.split(/\s*,\s*/);for(var r=0;0===r&&i.length>0;){var o=i.shift().split(/\s+/),a=o[0],s=o[1];if(s="desc"===s?-1:1,t[a]<n[a]){r=-1*s;break}if(t[a]!==n[a]){r=1*s;break}r=0}return r})),r},E=function(t,e,n){for(var i=void 0===n?undefined:n,r=[],o=0;o<t.length;o++)e.call(i,t[o],o,t)&&r.push(t[o]);return r},T=/^\s*function Array()/,C=function(t){return null!=t&&t.push&&T.test(t.constructor)},A=/^\s*function Object()/,j=function(t){return null!=t&&"object"==typeof t&&A.test(t.constructor)},x=function(t){return null!=t&&"function"==typeof t},R=/^\s*function RegExp()/,B=function(t){return null!=t&&R.test(t.constructor)},D=/^string|number|boolean|function$/i,M=function(t){return null!=t&&(D.test(typeof t)||B(t))},I=function(t){return null==t||(!(!C(t)||t.length)||!!j(t)&&!Object.keys(t).length)},L=function(t,e){if(t===e)return!0;if(null!=t&&null==e||null==t&&null!=e)return!1;var n=!0;return H(t,(function(t,i){t!==d(e,i)&&(n=!1)})),n},F=function(t,e){return L(t,e)&&L(e,t)},W=function t(e,n,i,a,s){if(null==i&&(i=[]),M(e))n(e,i,a,s);else if(j(e)||C(e)){for(var u in n(e,i,a,s),e)if(r(e,u)){var l=o.call(i);l.push(u),t(e[u],n,l,e,u)}}else n(e,i,a,s)},H=function(t,e){W(t,(function(t,n,i,r){C(t)||j(t)||e(t,n,i,r)}))},N=function(t,e){for(var n={},i=0;i<e.length;i++){var r=e[i];t[r]&&(n[r]=t[r])}return n},V=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1},U=function(t){if(Object.keys)return Object.keys(t);var e=[];for(var n in t)r(t,n)&&e.push(n);return e}},(t,e,n)=>{n.d(e,{default:()=>o});var i=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},r=function(t,e){for(var n in e)i(e,n)&&(t[n]=e[n]);return t};const o=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];if(Object.assign)return Object.assign.apply(Object,[t].concat(n));for(var o=0;o<n.length;o++)r(t,n[o]);return t}},(t,e,n)=>{n.d(e,{isDocReady:()=>r,onDocReady:()=>o});var i=n(9),r=function(){return/loaded|complete/.test(document.readyState)},o=function(){var t,e;if(arguments.length>1?(t=arguments[0],e=arguments[1]):(t=1e4,e=arguments[0]),r())e();else if(top===self&&document.documentElement.doScroll){(0,i.default)((function(){try{return document.documentElement.doScroll("left"),!0}catch(t){return!1}}),e,50,t,e)}else{var n=function(){r()&&(clearTimeout(a),o(),e())},o=function(){document.removeEventListener("DOMContentLoaded",n,!1),document.removeEventListener("readystatechange",n,!1),window.removeEventListener("load",n,!1)},a=setTimeout((function(){o(),e()}),t);document.addEventListener("DOMContentLoaded",n,!1),document.addEventListener("readystatechange",n,!1),window.addEventListener("load",n,!1)}}},(t,e,n)=>{n.d(e,{default:()=>r,poll:()=>i});var i=function(t,e,n,i,r){var o=null,a=(new Date).getTime();o=setTimeout((function s(){(new Date).getTime()-a>i?"function"==typeof r&&r():t()?e():(clearTimeout(o),o=setTimeout(s,n))}),1)};const r=i},(t,e,n)=>{n.d(e,{default:()=>i});const i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:document,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:window;if(/loaded|complete/.test(n.readyState))setTimeout(t,0);else{var r=function(){i.removeEventListener("load",o,!1)},o=function(){clearTimeout(a),r(),t()};i.addEventListener("load",o,!1);var a=setTimeout((function(){r(),t()}),e)}}},(t,e,n)=>{n.d(e,{cachedDetect:()=>V});var i,r=n(3),o=n(4),a=navigator.userAgent,s=/(webkit)[ /]([^\s]+)/i,u=/OPR\/([^\s]+)/i,l=/(edge)\/(\d+(?:\.\d+)?)/i,c=/(mozilla)(?:.*? rv:([^\s)]+))?/i,d=/(android) ([^;]+)/i,h=/(iphone)/i,f=/(Windows Phone OS (\d+(?:\.\d+)?))/,p=/OS (\d+)_(\d+)/i,y=/(playstation 3)/i,v=/BlackBerry|BB10/i,m=/(firefox)/i,g=/Mobile VR/i,b=/Version\/([^\s]+)/i,_=function(){return(P()[1]||"webkit").toLowerCase()},w=function(){return P()[2]},P=function(){var t;return(t=a.match(l))||(t=a.match(s))||(t=a.match(u))?t:t?(null!=document.documentMode&&(t[2]=document.documentMode),t):(t=a.match(c))||[]},O=function(){var t=a.match(d);return null!=t&&{version:t[2]}},k=function(){return h.test(a)},S=function(){return D()>0||O()||C()},E=function(){try{var t=matchMedia("(hover:hover)");if("not all"!==t.media)return t.matches}catch(t){}return!S()},T=function(){return v.test(a)},C=function(){return/Macintosh/i.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>1},A=function(){return s.test(a)&&!/chrome/i.test(a)&&!C()&&!k()},j=function(){return!(!/Chrome/.test(a)||!/Google Inc/.test(navigator.vendor))&&{version:R()}},x=function(){var t=a.match(/\bSilk\/([^\s]+)/);return t&&t[1]},R=function(){var t=a.match(/\bChrome\/([^\s]+)/);return t&&t[1]},B=function(){return u.test(a)},D=function(){var t=a.match(p),e=a.match(b);return null!=t?parseFloat("".concat(t[1],".").concat(t[2])):null!=e&&e[1]&&C()?parseFloat(e[1]):0},M=function(){return l.test(a)},I=function(){return m.test(a)},L=function(){var t=document.createElement("video"),e=!1;try{if(t.canPlayType){var n='video/mp4; codecs="avc1.42E01E';(e={}).h264=!!t.canPlayType("".concat(n,'"'))||!!t.canPlayType("".concat(n,', mp4a.40.2"')),e.webm=!!t.canPlayType('video/webm; codecs="vp9, vorbis"'),e.nativeHls=!!t.canPlayType("application/vnd.apple.mpegURL")}}catch(t){e={ogg:!1,h264:!1,webm:!1,nativeHls:!1}}return e},F=function(){try{return"localStorage"in o.default&&null!=o.default.localStorage}catch(t){return!1}},W=["WebKit","Moz","O","Ms",""],H=function(){for(var t=0;t<W.length;t++){var e="".concat(W[t],"MutationObserver");if(o.default[e])return e}return null},N=function(){if(null!=i)return i;try{var t=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("test",null,t)}catch(t){i=!1}return i},V=function(){return r.default._detectCache||(r.default._detectCache=U()),r.default._detectCache},U=function(){var t,e,n,i,r,s,u,l,c,d,h,p,v={amazonSilk:!!/Silk/.test(a)&&{version:x()},browser:{version:w()},edge:M(),firefox:I(),gearvr:g.test(a),android:O(),oldandroid:O()&&parseFloat(O().version)<4.1,iphone:k(),ipad:C(),blackberry:T(),safari:A(),chrome:j(),opera:B(),winphone:{version:f.test(a)[2]},ios:{version:D()},windows:/win/i.test(navigator.platform),mac:/mac/i.test(navigator.platform),linux:/linux/i.test(navigator.platform),retina:null!=o.default.devicePixelRatio&&o.default.devicePixelRatio>1,hoverIsNatural:E(),touchScreen:S(),ps3:y.test(a),video:L(),mediaSource:o.default.MediaSource&&o.default.MediaSource.isTypeSupported("".concat('video/mp4; codecs="avc1.42E01E',', mp4a.40.2"')),nativeHls:(k()||C()||A())&&L().nativeHls,localstorage:F(),json:!(!o.default.JSON||"function"!=typeof JSON.parse),backgroundSize:(p=document.createElement("div"),""===p.style.backgroundSize||""===p.style.webkitBackgroundSize||""===p.style.mozBackgroundSize||""===p.style.oBackgroundSize),fullscreenEnabled:document.fullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled,vulcanSupport:(h=/webkit|mozilla|edge/.test(_()),Boolean(!k()&&!C()&&!O()&&!T()&&h&&L().h264&&Object.defineProperties)),mutationObserver:H(),callingPlayRequiresEventContext:D()>0||O()||A(),passiveSupported:N(),webp:(t=j(),e=I(),n=M(),i=B(),r=t&&w()>=32,s=t&&w()>=75&&O(),u=e&&w()>=65,l=e&&w()>=67&&O(),c=n&&w()>=18,d=i&&w()>=19,r||s||u||l||c||d)};return v.browser[_()]=!0,v}},(t,e,n)=>{n.d(e,{LOG_LEVELS:()=>s,wlog:()=>v});var i=n(3),r=n(13);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var s={ERROR:0,WARNING:1,NOTICE:2,INFO:3,DEBUG:4,error:0,warning:1,notice:2,info:3,debug:4},u=function(){},l=function(t){var e=this;null==t&&(t={});return e.error=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(0,n)},e.warn=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(1,n)},e.notice=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(1,n)},e.info=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(3,n)},e.debug=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return e.log(4,n)},e.ctx=t,e.ctx.initializedAt||e.reset(),e},c=l.prototype;c.reset=function(){this.ctx.level=0,this.ctx.grep=null,this.ctx.grepv=null,this.ctx.first1000LogLines=[],this.ctx.last1000LogLines=[],this.ctx.initializedAt=(new Date).getTime()},c.setLevel=function(t){var e=this.logFunc(3);null!=s[t]?(this.ctx.level=s[t],e('Log level set to "'.concat(t,'" (').concat(s[t],")"))):e('Unknown log level "'.concat(t,'"'))},c.setGrep=function(t){this.ctx.grep=t},c.setGrepv=function(t){this.ctx.grepv=t},c.first1000LogLines=function(){return this.ctx.first1000LogLines},c.last1000LogLines=function(){return this.ctx.last1000LogLines},c.matchedGrep=function(t){var e=!1;if(this.ctx.grep||this.ctx.grepv){for(var n=[],i=0;i<t.length;i++)try{var r=t[i];n.push(r.toString&&r.toString())}catch(t){n.push("")}var o=n.join(" "),a=!this.ctx.grep||o.match(this.ctx.grep),s=!this.ctx.grepv||!o.match(this.ctx.grepv);e=a&&s}else e=!0;return e},c.now=function(){return"undefined"!=typeof performance&&"function"==typeof performance.now?performance.now().toFixed(3):Date.now?Date.now()-this.ctx.initializedAt:(new Date).getTime()-this.ctx.initializedAt},c.messagesToLogLine=function(t,e,n){var i,r=[t,e];r=r.concat(n);try{(i=r.join(" ")||"").length>200&&(i=i.slice(0,200))}catch(t){i="could not serialize"}return i},c.persistLine=function(t){this.ctx.first1000LogLines.length<1e3?this.ctx.first1000LogLines.push(t):(this.ctx.last1000LogLines.length>=1e3&&this.ctx.last1000LogLines.shift(),this.ctx.last1000LogLines.push(t))},c.log=function(t,e){var n,i=t<=this.ctx.level,a=t<4,s=(i||a)&&this.matchedGrep(e);if(0===t&&(0,r.globalTrigger)("problem",{type:"error-logged",data:{messages:e}}),s&&(i||a)&&(n=this.now()),a&&s){var u=this.messagesToLogLine(t,n,e);this.persistLine(u)}if(i&&s){var l,c=this.logFunc(t);1===e.length&&(l=e[0])instanceof Error?(c(l.message),l.stack&&c(l.stack)):c.apply(void 0,o(e))}};var d=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];console.error.apply(console,e)},h=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];console.warn.apply(console,e)},f=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];console.info.apply(console,e)},p=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];console.debug.apply(console,e)},y=function(t){console.log.apply(console,t)};c.logFunc=function(t){return null==t&&(t=this.level),console?(0===t?e=d:1===t?e=h:3===t?e=f:4===t&&(e=p),e||(e=y),"function"!=typeof e&&(this.noConsoleLog=!0,e=u),e):u;var e},c.maybePrefix=function(t,e){if(t){if("function"==typeof t)try{t=t()}catch(e){t='prefix err "'.concat(e.message,'"')}return t instanceof Array?t.concat(e):[t].concat(e)}return e},c.getPrefixedFunctions=function(t){var e=this;return{log:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(0,e.maybePrefix(t,i))},error:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(0,e.maybePrefix(t,i))},warn:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(1,e.maybePrefix(t,i))},notice:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(1,e.maybePrefix(t,i))},info:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(3,e.maybePrefix(t,i))},debug:function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return e.log(4,e.maybePrefix(t,i))}}},i.default&&null==i.default.wlogCtx&&(i.default.wlogCtx={});var v=new l(i.default.wlogCtx)},(t,e,n)=>{n.d(e,{globalBind:()=>r,globalOn:()=>o,globalTrigger:()=>a});var i=n(3);(0,n(14).makeWbindable)(i.default);var r=i.default.bind.bind(i.default),o=i.default.on.bind(i.default),a=(i.default.off.bind(i.default),i.default.rebind.bind(i.default),i.default.trigger.bind(i.default));i.default.unbind.bind(i.default)},(t,e,n)=>{n.d(e,{makeWbindable:()=>o});var i=n(3),r=n(15);i.default.bindable||(i.default.bindable={bind:function(t,e){return this.specialBind&&!0===this.specialBind.apply(this,arguments)?this:e?(r.bind.call(this,t,e),this):void(i.default.warn&&i.default.warn(this.constructor.name,"bind","falsey value passed in as callback:",e))},unbind:function(t,e){return this.specialUnbind&&!0===this.specialUnbind.apply(this,arguments)||(e?r.unbind.call(this,t,e):this._bindings&&(this._bindings[t]=[]),this._bindings&&this._bindings[t]&&!this._bindings[t].length&&(this._bindings[t]=null,delete this._bindings[t])),this},on:function(t,e){var n=this.specialBind&&this.specialBind.apply(this,arguments);return"function"==typeof n?n:r.bind.call(this,t,e)},off:function(t,e){var n=this.specialUnbind&&this.specialUnbind.apply(this,arguments);return"function"==typeof n?n:r.unbind.call(this,t,e)},rebind:function(t,e){return this.unbind(t,e),this.bind(t,e),this},trigger:function(t){for(var e,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(e=r.trigger).call.apply(e,[this,t].concat(i)),this},bindNamed:function(){return r.bindNamed.apply(this,arguments)},unbindNamed:function(){return r.unbindNamed.apply(this,arguments)},unbindAllInNamespace:function(){return r.unbindAllInNamespace.apply(this,arguments)}});var o=function(t){for(var e in i.default.bindable){var n=i.default.bindable[e];t[e]||(t[e]=n)}};i.default.bindable},(t,e,n)=>{n.d(e,{bind:()=>u,bindNamed:()=>p,bindify:()=>g,trigger:()=>d,unbind:()=>l,unbindAllInNamespace:()=>v,unbindNamed:()=>y});var i=n(3),r=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var s=Array.prototype.slice,u=function(t,e){var n=this;return n._bindings||(n._bindings={}),n._bindings[t]||(n._bindings[t]=[]),n._bindings[t].push(e),function(){n.unbind(t,e)}},l=function(t,e){if(!this._bindings)return this;if(!this._bindings[t])return this;for(var n=[],i=0;i<this._bindings[t].length;i++){var r=this._bindings[t][i];r!==e&&n.push(r)}this._bindings[t]=n},c=function(t,e){return this.unbind(t,e),this.bind(t,e),{event:t,fn:e}},d=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return this._bindings&&null!=this._bindings.all&&h.apply(this,["all",t].concat(n)),h.apply(this,[t].concat(n))},h=function(t){if(!this._bindings)return this;if(!this._bindings[t])return this;for(var e,n=s.call(arguments,1),r=o(this._bindings[t]),a=0;a<r.length;a++){var u=r[a];try{u.apply(this,n)===this.unbind&&(null==e&&(e=[]),e.push({event:t,fn:u}))}catch(t){if(this._throwTriggerErrors)throw t;i.default.error&&i.default.error(t)}}if(e)for(var l=0;l<e.length;l++){var c=e[l];this.unbind(c.event,c.fn)}return this},f=function(t,e){null==t._namedBindings&&(t._namedBindings={}),null==t._namedBindings[e]&&(t._namedBindings[e]={})},p=function(t,e,n,i){return this.unbindNamed(t,e),function(t,e,n,i,r){f(t,e),t._namedBindings[e][n]={event:i,fn:r}}(this,t,e,n,i),this.bind(n,i),function(){this.unbindNamed(t,e)}},y=function(t,e){f(this,t);var n=function(t,e,n){return f(t,e),t._namedBindings[e][n]}(this,t,e);if(n){var i=n.event,r=n.fn;this.unbind(i,r)}var o=this._namedBindings;return delete o[t][e],m(o[t])&&delete o[t],this},v=function(t){var e=this._namedBindings&&this._namedBindings[t];if(null==e)return this;for(var n in e)r(e,n)&&this.unbindNamed(t,n)},m=function(t){for(var e in t)if(r(t,e))return!1;return!0},g=function(t){return t.bind=u,t.unbind=l,t.on=u,t.off=l,t.rebind=c,t.trigger=d,t.bindNamed=p,t.unbindNamed=y,t.unbindAllInNamespace=v,t};g(function(){}.prototype)},(t,e,n)=>{var i;n.d(e,{elemOffset:()=>o,elemZoom:()=>a,isBoxModel:()=>r});var r=function(){if(null!=i)return i;var t=document.createElement("div");return t.style.paddingLeft=t.style.width="1px",document.body.appendChild(t),i=2===t.offsetWidth,document.body.removeChild(t),i},o=function(t){var e,n,i=document.body,o=document.defaultView,s=document.documentElement,u=t.getBoundingClientRect(),l=s.clientTop||i.clientTop||0,c=s.clientLeft||i.clientLeft||0;e=o&&null!=o.pageYOffset?o.pageYOffset:r()&&s&&null!=s.scrollTop?s.scrollTop:i.scrollTop,n=o&&null!=o.pageXOffset?o.pageXOffset:r()&&s&&null!=s.scrollLeft?s.scrollLeft:i.scrollLeft;var d=a(t);return{height:u.height*d,top:u.top*d+e-l,left:u.left*d+n-c,width:u.width*d,zoom:d}},a=function t(e){return e&&e!==document.documentElement?t(e.parentElement)*(getComputedStyle(e).zoom||1):1}},(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{execScriptTags:()=>execScriptTags,getScriptTags:()=>getScriptTags,removeScriptTags:()=>removeScriptTags});var utilities_script_utils_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(18),getScriptTags=function(t){return t.match(/<script.*?src[^>]*>\s*<\/script>|<script.*?>[\s\S]+?<\/script>/gi)||[]},scriptTagsToRunScriptsInput=function scriptTagsToRunScriptsInput(scriptTags){if(!scriptTags)return[];scriptTags instanceof Array||(scriptTags=getScriptTags(scriptTags));for(var hashes=[],_loop=function _loop(){var scriptTag=scriptTags[i],hash={},matches=scriptTag.match(/<script.*?>/i);if(matches&&(matches=matches[0].match(/src="([^"]+)"/i),matches&&(hash.src=matches[1],hash.async=/async/i.test(scriptTag.replace(hash.src,"")))),!matches&&(matches=scriptTag.match(/<script>([\s\S]+?)<\/script>/i),matches)){var src=matches[1];hash.fn=function(){return eval(src)}}hashes.push(hash)},i=0;i<scriptTags.length;i++)_loop();return hashes},execScriptTags=function(t,e){if(!t)return null;var n=scriptTagsToRunScriptsInput(t);return(0,utilities_script_utils_js__WEBPACK_IMPORTED_MODULE_0__.runScripts)(n).then(e)},removeScriptTags=function(t){return t.replace(/<script.*?src[^>]*>\s*<\/script>|<script>[\s\S]+?<\/script>/g,"")}},(t,e,n)=>{n.d(e,{findScriptInDomBySrc:()=>u,removeScriptsBySrc:()=>l,runScript:()=>c,runScripts:()=>d});var i=n(12),r=n(6),o=n(19);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.getElementsByTagName("script"),i=0;i<n.length;i++){var r=n[i],o=r.getAttribute("src")||"";if(e.ignoreQueryParams){var a=o.split("?");o=a[0]}if(!e.scriptRegex&&e.ignoreProtocol&&(o=o.replace(/^https?:/,""),t=t.replace(/^https?:/,"")),e.scriptRegex&&e.scriptRegex.test(o))return r;if(e.testStartsWith&&0===o.indexOf(t))return r;if(o===t)return r}return null},l=function(t){for(var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=function(){if(e&&(e.onload=e.onreadystatechange=e.onerror=null,e.parentNode&&(e.parentNode.removeChild,1)))try{e.parentNode.removeChild(e)}catch(t){setTimeout((function(){throw t}),0)}};e=u(t,n);)i()},c=function(t){var e,n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==i&&(i=8e3),null==r&&(r={}),new Promise((function(a){!0===r.once&&(e=u(t))&&(n=!0),r.once&&n?e.readyState&&!/loaded|complete/.test(e.readyState)||setTimeout((function(){a()}),1):(0,o.default)(t,i).then(a).catch((function(t){a(t),setTimeout((function(){console.error(t)}),1)}))}))},d=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t=n[0]instanceof Array?n[0]:n,t=h(t);var o=[],u=[],l=[];return t.forEach((function(t){var e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),n=new Promise((function(t){e.resolve=t}));e.promise=n,l.push(e.promise),t.async?o.push(e):u.push(e)})),u.reduce((function(t,e){if(e.fn)try{e.fn()}catch(t){i.wlog.error(t)}finally{e.resolve()}else e.src&&c(e.src,null,e).then(e.resolve);return t.then(e.promise)}),Promise.resolve()),setTimeout((function(){o.forEach((function(t){if(t.fn)try{t.fn()}catch(t){i.wlog.error(t)}finally{t.resolve()}else t.src&&c(t.src,null,t).then(t.resolve)}))}),1),Promise.all(l)},h=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];"string"==typeof i?e.push({src:i,async:!1}):(0,r.isObject)(i)?e.push(i):e.push({fn:i,async:!1})}return e}},(t,e,n)=>{n.d(e,{default:()=>i});const i=function(t,e){return new Promise((function(n,i){var r;null==e&&(e=8e3),(r=document.createElement("script")).src=t,r.async=!0,r.type="text/javascript";var o=null,a=!1,s=function(){r.onerror=r.onreadystatechange=r.onload=null,clearTimeout(o),clearTimeout(l),o=setTimeout((function(){r&&r.parentNode&&r.parentNode.removeChild(r)}),500)},u=function(){var t=r.readyState;a||t&&!/loaded|complete/.test(t)||(a=!0,setTimeout((function(){n(),s()}),1))},l=setTimeout((function(){a=!0,s(),i(new Error("timeout"))}),e);r.onerror=function(t){a=!0,s(),i(t)},r.onreadystatechange=u,r.onload=u,(document.body||document.head).appendChild(r)}))}},(t,e,n)=>{n.d(e,{seqId:()=>r});var i=n(3),r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia_",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=i.default._sequenceVal||1,r="".concat(t).concat(n).concat(e);return i.default._sequenceVal=n+1,r}},(t,e,n)=>{n.r(e),n.d(e,{abTestFromCache:()=>E,abTestMediaSelector:()=>C,cacheAbTest:()=>P,cacheMedia:()=>w,fetchFreshMediaDataJson:()=>v,fetchMedia:()=>m,mediaDataScriptRegExp:()=>_,mediaDataUrl:()=>b,mediaFromCache:()=>S,transformResponse:()=>g,uncacheMedia:()=>O});var i=n(4),r=n(3),o=n(6),a=n(12),s=n(18),u=n(22),l=n(23),c=n(26),d=n(29),h=n(32),f=n(34);function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function y(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}null==r.default._remoteData&&(r.default._remoteData={});var v=function(t,e){var n=b(t,e);return fetch(n).then((function(t){return t.json()})).catch((function(t){a.wlog.error("error fetching mediaData",t)}))},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,i){var r=T(t,e);if(r){a.wlog.info("fetchMedia",t,"from local cache",r);r.type&&"ab-test"===r.type&&(a.wlog.info("fetch",t,"local cache-ab-test",r),C(r,e)),n(r)}else{a.wlog.info("fetchMedia",t,"fetching");var o=b(t,e),s=new window.URL(b(t,e));null!=e.password&&s.searchParams.append("password",e.password),e.idType&&s.searchParams.append("idType",e.idType),fetch(s).then((function(t){return t.json()})).then((function(i){var r=i;i.error?(a.wlog.info("fetch",t,"error",i),w(t,i)):i.type&&"ab-test"===i.type?(a.wlog.info("fetch",t,"responded-ab-test",i),r=C(i,e)):(r=g(i,e),w(t,i.media)),n(r)})).catch((function(t){a.wlog.error("error out fetching ".concat(o)),(0,f.countMetric)("player/failure/fetch-media-failed"),i(t)}))}}))},g=function(t,e){var n,i=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t),r=(0,o.merge)({},null===(n=i.media)||void 0===n?void 0:n.embedOptions,e);return i.error?i:(delete i.media.unnamed_assets,(0,h.mediaDataTransforms)(i.media,r),i.media)},b=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,l.mediaDataHost)(e);return"".concat((0,l.eV1Protocol)(),"//").concat(n,"/embed/medias/").concat(t,".json")},_=function(t){var e="https:"===location.protocol?"https":"https?";return new RegExp("^(".concat(e,":)?//((").concat((0,l.cdnFastWistiaComHost)().replace(".","\\."),")|(").concat((0,l.cdnFastWistiaNetHost)().replace(".","\\."),"))/embed/medias/").concat(t,"\\.jsonp\\??"))},w=function(t,e){return(0,u.cacheMediaData)(t,e)},P=function(t,e){return r.default._remoteData["ab_test_".concat(t)]=e},O=function(t){(0,u.uncacheMediaData)(t),k(t)},k=function(t){window["wistiajsonp-/embed/medias/".concat(t,".json")]=null,(0,s.removeScriptsBySrc)(b(t),{scriptRegex:_(t)})},S=function(t){return T(t,{idType:"media"})},E=function(t){return T(t,{idType:"ab-test"})},T=function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).idType||"media",n=r.default._remoteData["".concat(e,"_").concat(t)];if(n)return n;var o=i.default["wistiajsonp-/embed/medias/".concat(t,".json")];return null!=o&&o.media?o.media:null},C=function(t,e){if(t.error)return t;t.missingVideos&&console.warn("The following videos were not present in the AbTest: ",t.missingVideos),P(t.hashedId,t);var n=[t.control,t.variant].filter(Boolean);n.forEach((function(t){var n,i=(0,o.merge)({},null===(n=t.media)||void 0===n?void 0:n.embedOptions,e);(0,h.mediaDataTransforms)(t.media,i),w(t.media.hashedId,t.media)}));var i,r,a,s,u,l="ab_test.".concat(t.hashedId,".selected_media_hashed_id");i=t.winnerHashedId?t.winnerHashedId:(0,c.setOrGet)(l),"undefined"!=typeof crypto?a=1&(s=crypto.getRandomValues(new Uint8Array(1)))[0]:(u=Math.random(),a=Number(u>.5));var f=2===n.length?a:0;r=n[f].media;var p=!1;n.some((function(t){return t.media.hashedId===i&&(r=t.media,p=!0),t.media.hashedId===i}));var y={numberOfMedias:n.length,coinFlip:a,savedMedia:p,agent:navigator.userAgent||null,selectedHashedId:r.hashedId,stringCryptoRandom:String(s)};return null!=s?y.cryptoRandom=s[0]:y.mathRandom=u,(0,d.send)("count","player/ab-test-selection",1,y),(0,c.setOrGet)(l,r.hashedId),r}},(t,e,n)=>{n.d(e,{cacheMediaData:()=>r,uncacheMediaData:()=>o});var i=n(3);null==i.default._remoteData&&(i.default._remoteData={});var r=function(t,e){return i.default._remoteData["media_".concat(t)]=e},o=function(t){i.default._remoteData["media_".concat(t)]=null,delete i.default._remoteData["media_".concat(t)]}},(t,e,n)=>{n.r(e),n.d(e,{VALID_PRODUCTION_HOSTS:()=>P,appHost:()=>h,cdnFastWistiaCanaryHost:()=>y,cdnFastWistiaComHost:()=>f,cdnFastWistiaNetHost:()=>p,deliveryHost:()=>c,eV1Host:()=>m,eV1HostWithPort:()=>g,eV1Protocol:()=>b,eV1Url:()=>v,forceValidFastWistiaHost:()=>k,mediaDataHost:()=>_,metricsHost:()=>w,prodAkamaiHost:()=>d});var i=n(4),r=n(24),o=n(25),a=(0,o.appHostname)("app"),s=(0,o.appHostname)("fast"),u="undefined"!=typeof window&&i.default===window&&i.default.location?i.default.location.protocol:"https:",l=function(t,e,n){return"https:"===t?e:n},c=function(){return l(arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,"embed-ssl.wistia.com","embed.wistia.com")},d=function(){return l(arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,"embedwistia-a.akamaihd.net","embed-a.wistia.com")},h=function(){return a},f=function(t){return t||s},p=function(){return"fast.wistia.net"},y=function(){return"fast-canary.wistia.net"},v=function(){for(var t=document.getElementsByTagName("script"),e=0;e<t.length;e++){var n=t[e];if(n.src){var i=new r.Url(n.src),o=/\/assets\/external\/E-v1?\.js$/.test(i.rawPath),a=i.host===f()||i.host===p()||i.host===y(),s="https:"===location.protocol&&"https:"===i.protocol,u=""===i.protocol||null==i.protocol,l=s||u||"http:"===location.protocol,c=!n.readyState||/loaded|complete/.test(n.readyState);if(o&&a&&l&&c)return i}}return new r.Url("".concat((0,r.proto)(),"//").concat(p(),"/E-v1.js"))}(),m=function(){return v.host},g=function(){return v.port?"".concat(m(),":").concat(v.port):m()},b=function(){return v.protocol},_=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.embedHost?k(t.embedHost):g()},w=function(){return"pipedream.wistia.com"},P=["wistia.net","wistia.com","wistia.st"],O=new RegExp("(".concat(P.map((function(t){return"\\.".concat(t.replace(".","\\."))})).join("|"),")$")),k=function(t){return t&&O.test(t)?t:g()}},(t,e,n)=>{n.r(e),n.d(e,{Url:()=>p,brack:()=>d,createUrl:()=>v,debrack:()=>h,joinPath:()=>c,objectToQueryParams:()=>u,parseUrl:()=>m,proto:()=>o,queryParamsToObject:()=>a,splitPath:()=>l,urlComponentToObject:()=>s});var i=n(6),r=n(12),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:location.href;return/^http:\/\//.test(t)?"http:":"https:"},a=function(t){var e={};if(!t)return e;for(var n=t.split("&"),o=function(){var t=n[a].split("="),o=t[0],u=t[1];try{o=h(decodeURIComponent(o))||""}catch(t){setTimeout((function(){r.wlog.notice(t)}),50),o=""}(0,i.cast)(o);var l=(0,i.getDeep)(e,o);if(null!=l)if((0,i.isArray)(l))l.push(s(u));else{var c=[l];c.push(s(u)),(0,i.setAndPreserveUndefined)(e,o,c)}else(0,i.setAndPreserveUndefined)(e,o,s(u))},a=0;a<n.length;a++)o();return e},s=function(t){if(null==t)return t;var e;try{e=decodeURIComponent(t)}catch(n){setTimeout((function(){r.wlog.notice(n)}),50),e=t}return e},u=function(t){var e=[];return(0,i.eachLeaf)(t,(function(t,n){null!=t?e.push("".concat(encodeURIComponent(d(n)),"=").concat(encodeURIComponent(t))):e.push(encodeURIComponent(d(n)))})),e.join("&")},l=function(t){var e=[];if(null==t)return e;for(var n=t.split(/\/+/),i=0;i<n.length;i++){var r=n[i];null!=r&&""!==r&&e.push(r)}return e},c=function(t){return"string"==typeof t&&(t=t.split("/")),null==t?"":"/".concat(t.join("/"))},d=function(t){for(var e=t[0],n=1;n<t.length;n++)e+="[".concat(t[n],"]");return e},h=function(t){return t.match(/([\w\-_]+)/g)},f=["protocol","host","port","params","path"],p=function(t){var e=this;return e.params={},e.path=[],e.host="","object"==typeof t?e.fromOptions(t):t&&e.fromRaw(t),e},y=p.prototype;y.fromOptions=function(t){for(var e=0;e<f.length;e++){var n=f[e];null!=t[n]&&(this[n]=t[n])}return this},y.fromRaw=function(t){var e;return this.rawUrl=t,(e=t.match(/^((?:https?:)|(?:file:)|(?:ftp:))?\/\//))&&(this.protocol=e[1]||void 0),(e=t.match(/\/\/([^:?#/]*)/))&&(this.host=e[1]||void 0),(e=t.match(/\/\/.*?(\/[^?#$]+)/)||t.match(/(^\/[^/][^?#$]+)/))&&this.setPath(e[1]),(e=t.match(/:(\d+)/))&&(this.port=parseInt(e[1],10)),(e=t.match(/\?([^#]+)/))&&(this.rawParams=e[1],this.params=a(this.rawParams)),(e=t.match(/#(.*)$/))&&(this.anchor=e[1]),this},y.clone=function(){return new p({protocol:this.protocol,host:this.host,port:this.port,path:(0,i.clone)(this.path),params:(0,i.clone)(this.params),anchor:this.anchor})},y.ext=function(t){if(null!=t){var e=this.ext(),n=this.path.length-1,i=new RegExp("\\.".concat(e),"g");return e&&(this.path[n]="".concat(this.path[n].replace(i,""))),this.path[n]="".concat(this.path[n],".").concat(t)}var r=this.path[this.path.length-1].match(/\.(.*)$/);return null!=r&&r[1]||null},y.isRelative=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location,e=this.protocol,n=this.host;return!(null!=e&&""!==e&&e!==t.protocol||n&&n!==t.hostname)},y.toString=function(){return this.isRelative()?this.relative():this.absolute()},y.absolute=function(){var t="";null!=this.protocol&&(t=this.protocol);var e="";return null!=this.port&&(e=":".concat(this.port)),"".concat(t,"//").concat(this.host||location.host).concat(e).concat(this.relative())},y.relative=function(){var t="";this.path.length>0&&(t=c(this.path),this._hasTrailingSlash&&(t+="/"));var e="?".concat(u(this.params));return 1===e.length&&(e=""),"".concat(t).concat(e).concat(this.relativeAnchor())},y.authority=function(){var t=null!=this.port?":".concat(this.port):"";return"".concat(this.host).concat(t)},y.relativeProtocol=function(){var t="";return null!=this.port&&(t=":".concat(this.port)),"//".concat(this.host).concat(t).concat(this.relative())},y.relativeAnchor=function(){var t="";return null!=this.anchor&&(t="#".concat(this.anchor)),"".concat(t)},y.setPath=function(t){this.rawPath=t,this._hasTrailingSlash=/\/$/.test(this.rawPath),this.path=l(this.rawPath)},p.create=function(t){return new p(t)};var v=p.create;p.parse=function(t){return new p(t)};var m=p.parse},(t,e,n)=>{n.d(e,{appHostname:()=>i});var i=function(){return"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"app",".").concat("wistia.com")}},(t,e,n)=>{n.d(e,{removeLocalStorage:()=>s,setOrGet:()=>a});var i=n(3),r=n(27),o=n(6);i.default._localStorage||(i.default._localStorage=(0,r.getWistiaLocalStorage)());var a=function(t,e){if(null!=e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?o.unsetDeep:o.setDeep;return i.default._localStorage=(0,r.updateWistiaLocalStorage)((function(i){return n(i,t,e)})),e}return null!=t?(0,o.getDeep)(i.default._localStorage,t):i.default._localStorage},s=function(t){return a(t,"nada",!0)};r.removeWistiaLocalStorage},(t,e,n)=>{n.d(e,{getWistiaLocalStorage:()=>a,removeWistiaLocalStorage:()=>s,updateWistiaLocalStorage:()=>u});var i=n(3),r=n(28),o="wistia",a=function(){return(0,r.getLocalStorage)(o)},s=function(){return i.default._localStorage=(0,r.removeLocalStorage)(o),i.default._localStorage},u=function(t){return i.default._localStorage=(0,r.updateLocalStorage)(o,t),i.default._localStorage}},(t,e,n)=>{n.d(e,{getLocalStorage:()=>u,removeLocalStorage:()=>l,setLocalStorage:()=>c,updateLocalStorage:()=>d});var i=n(3),r=function(t){setTimeout((function(){throw t}),0)},o="_namespacedLocalStorage",a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia-test-localstorage";if(null!=i.default._localStorageWorks)return i.default._localStorageWorks;try{var e=localStorage.getItem(t);localStorage.removeItem(t),localStorage.setItem(t,e),localStorage.removeItem(t),i.default._localStorageWorks=!0}catch(t){i.default._localStorageWorks=!1}return i.default._localStorageWorks},s=function(){return null==i.default[o]&&(i.default[o]={}),i.default[o]},u=function(t){if(!a())return s()[t]||{};if(localStorage[t])try{return"null"===localStorage[t]?{}:JSON.parse(localStorage[t])}catch(t){r(t)}return{}},l=function(t){if(a())try{localStorage.removeItem(t)}catch(t){r(t)}else s()[t]={}},c=function(t,e){if(!a())return null!=e&&"object"==typeof e&&(s()[t]=e),e;try{s()[t]=e,localStorage[t]=JSON.stringify(e)}catch(t){r(t)}return e},d=function(t,e){var n=u(t);try{e(n)}catch(t){r(t)}return c(t,n)}},(t,e,n)=>{n.d(e,{count:()=>y,sample:()=>v,send:()=>f});var i=n(3),r=n(30),o=n(12),a=n(6),s=n(5),u=n(24),l=n(23),c=n(31),d=i.default;null==d._metricsCache&&(d._metricsCache={});var h=d._metricsCache,f=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{null==h.toMput&&(h.toMput=[]),null==h.requestId&&(h.requestId=0);var u=(0,a.merge)({type:t,key:e,value:null!=n?n:null,request_id:h.requestId},i),l=JSON.stringify(u);o.wlog.debug("send metrics",l),h.toMput.push(l),(0,r.doTimeout)("metrics.debounce",(function(){(0,s.pageLoaded)((function(){p.apply(undefined,h.toMput),h.toMput=[],h.requestId+=1}))}),500)}catch(t){o.wlog.error(t)}},p=function(){if((0,c.isVisitorTrackingEnabled)()){for(var t="".concat((0,u.proto)(),"//").concat((0,l.metricsHost)(),"/mput?topic=metrics"),e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return fetch(t,{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.join("\n")})}},y=function(t){return f("count",t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})},v=function(t,e,n){return f("sample",t,e,n)}},(t,e,n)=>{n.r(e),n.d(e,{clearTimeouts:()=>s,doTimeout:()=>a});var i=n(3),r=n(6),o=i.default;null==o._timeouts&&(o._timeouts={});var a=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;(0,r.isArray)(t)&&(t=t.join("."));var i=l(t);if(s(t,i),e){var a=o._timeouts[i];null==a&&(a=o._timeouts[i]={});var u=setTimeout((function(){delete a[t],e()}),n);return a[t]=u,u}return o._timeouts[i][t]},s=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if((0,r.isArray)(t)&&(t=t.join(".")),"__global__"===(n=n||l(t))&&(e=o._timeouts[t]))for(var i in e){var a=e[i];clearTimeout(a),delete e[i]}if(e=o._timeouts[n])for(var s in e){var c=e[s];!s.indexOf||0!==s.indexOf(t)||s.length!==t.length&&"."!==s.charAt(t.length)||(clearTimeout(c),delete e[s])}o.blockSweepTimeouts||(o.blockSweepTimeouts=!0,setTimeout(u,0),setTimeout((function(){o.blockSweepTimeouts=!1}),5e3))},u=function(){for(var t in o._timeouts){var e=o._timeouts[t];(0,r.isEmpty)(e)&&delete o._timeouts[t]}},l=function(t){var e=t.indexOf(".");return e>0?t.substring(0,e):"__global__"}},(t,e,n)=>{n.d(e,{isVisitorTrackingEnabled:()=>c});var i=n(3),r=n(13),o=n(27);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var u;i.default._visitorTrackingDomain||(i.default._visitorTrackingDomain=location.hostname||""),i.default._visitorTracking||(null!=(u=(0,o.getWistiaLocalStorage)().visitorTrackingEnabled)&&((0,o.updateWistiaLocalStorage)((function(t){return delete t.visitorTrackingEnabled})),i.default._visitorTracking={},i.default._visitorTracking[i.default._visitorTrackingDomain]={isEnabled:u,updatedAt:Date.now()},(0,o.updateWistiaLocalStorage)((function(t){return t.visitorTracking=i.default._visitorTracking}))),i.default._visitorTracking=(0,o.getWistiaLocalStorage)().visitorTracking||{});i.default.consent=function(t){return null==t?c():l(t)};var l=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.default._visitorTrackingDomain;"default"===t?delete i.default._visitorTracking[e]:i.default._visitorTracking[e]={isEnabled:"true"==="".concat(t),updatedAt:Date.now()},(0,o.updateWistiaLocalStorage)((function(t){return t.visitorTracking=i.default._visitorTracking})),(0,r.globalTrigger)("visitortrackingchange",t)},c=function(){if("boolean"==typeof i.default._visitorTracking)return i.default._visitorTracking;if(i.default._visitorTracking){var t=function(){if(i.default._visitorTrackingDomain)for(var t=i.default._visitorTrackingDomain.split(".");t.length>0;){var e=i.default._visitorTracking[t.join(".")],n=e&&e.isEnabled;if(null!=n)return n;t.shift()}}();if(null!=t)return Boolean(t)}var e=[];if(i.default.api&&i.default.api.all)try{e.push.apply(e,a(i.default.api.all()))}catch(t){}if(i.default.channel&&i.default.channel.all)try{e.push.apply(e,a(i.default.channel.all()))}catch(t){}return!e.some((function(t){return!0===(t._mediaData||t._galleryData||{}).privacyMode}))}},(t,e,n)=>{n.d(e,{mediaDataTransforms:()=>c});var i=n(6),r=n(24),o=n(11),a=n(33);function s(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var l=(0,o.cachedDetect)(),c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,i.assign)({},t);return n=function(t){if(!0!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).allowOriginalAsMp4)return t;var e=t.assets.filter((function(t){return"original"===t.type}))[0];return(0,a.readyPublicOver400)(t.assets).length>0||(t.assets=[].concat(s(t.assets),[(0,i.assign)({},e,{display_name:"".concat(e.display_name," copy"),container:"mp4",codec:"h264",type:"mp4_video"})])),t}(n,e),n=function(t){return t.assets&&l.webp&&(t.assets=t.assets.map((function(t){if("still_image"===t.type&&Object(t).url){var e=new r.Url(t.url);e.ext("webp"),t.url=e.absolute()}return t}))),t}(n),n}},(t,e,n)=>{n.r(e),n.d(e,{BAKERY_HOSTS:()=>D,FAILED:()=>h,PROCESSING:()=>p,QUEUED:()=>f,READY:()=>y,channelArtworkStill:()=>A,filter:()=>m,filterOver400:()=>P,findClosestAssetByQuality:()=>T,getStillWidth:()=>B,iphone:()=>q,isBakeryUrl:()=>M,m3u8:()=>W,moveToFront:()=>Q,mp4:()=>L,nearestOutsideRange:()=>G,nonfailedPublicOver400:()=>k,numericSizeSnapped:()=>E,one:()=>g,onePublicReadyWithContainer:()=>I,original:()=>H,originalAspect:()=>U,playable:()=>N,readyPublicM3u8s:()=>w,readyPublicMp3s:()=>b,readyPublicMp4s:()=>_,readyPublicOver400:()=>O,smallestNormalMp4:()=>z,still:()=>C,stillUrl:()=>R,thumbnailAssets:()=>j,urlWithCorrectHost:()=>K,videoAspect:()=>V,webm:()=>F,withinQualityRange:()=>S});var i=n(6),r=n(24),o=n(11),a=n(23),s=n(12),u=n(25);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var d=Array.prototype.slice,h=-1,f=0,p=1,y=2,v=["select","sortFn","sortBy","unique"],m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return[];t.assets&&(t=t.assets),null==e.qualityMin&&null==e.qualityMax||(t=S(t,e.qualityMin,e.qualityMax),e=(0,i.except)(e,["qualityMin","qualityMax"]));var n=(0,i.only)(e,v),r=n.select||(0,i.except)(e,v);r&&(n.select=r);var o=n.select?(0,i.select)(t,n.select):(0,i.clone)(t);if((n.sortFn||n.sortBy)&&(o=(0,i.sort)(o,n.sortFn||n.sortBy)),n.unique){for(var a={},s=0;s<o.length;s++){var u=o[s],l=u["".concat(n.unique)]||"__undefined__";a[l]||(a[l]=u)}for(var c in o=[],a)o.push(a[c])}return o},g=function(t,e){return m(t,e)[0]||null},b=function(t){return m(t,{ext:"mp3",status:y,public:!0})},_=function(t){return m(t,{container:"mp4",status:y,public:!0})},w=function(t){return m(t,{container:"m3u8",status:y,public:!0})},P=function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],r=null!=i.opt_vbitrate&&i.opt_vbitrate>=500&&i.opt_vbitrate<=1e5,o=null!=i.width&&i.width>400;(r||o)&&e.push(i)}return e},O=function(t){return P(m(t,{container:/mp4/,public:!0,status:y}))},k=function(t){return P(m(t,{container:/mp4/,public:!0,status:function(t){return t!==h}}))},S=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e4;return m(t,{select:function(t){var i=E(t.width,t.height);return e<=i&&i<=n}})},E=function(t,e){if(e>t){var n=t;t=e,e=n}var i=t/e,r=t*e+1;return r>=3840/i*3840?2160:r>=2560/i*2560?1440:r>=1920/i*1920?1080:r>=1280/i*1280?720:r>=960/i*960?540:r>=640/i*640?360:e},T=function(t,e){var n;n="4k"===e?2160:parseInt(e,10);var i=S(t,n,n)[0];if(i)return i;var r=G(t,n,n);if(1===r.length)return r[0];var o=V(t),a=Math.round(o*n),s=l(r,2),u=s[0],c=s[1];return Math.abs(u.width-a)<Math.abs(c.width-a)?u:c},C=function(t){var e=g(t,{type:/^still_image$/,sortBy:"created_at desc"});return e||(e=A(t)),e||(e=g(t,{container:/mp4/,sortBy:"width desc"})),e},A=function(t){return g(t,{type:/^channel_still_image$/,sortBy:"created_at desc"})},j=function(t,e){if(e.stillUrl)return[{height:null,url:e.stillUrl,width:null}];var n=C(t);if(!n)return[];var i=n.width/n.height;return[320,640,960,1280,1920,3840].map((function(e){var n=Math.round(e/i);return{height:n,url:R(t,{videoWidth:e,videoHeight:n,playButton:!1}),width:e}}))},x=(0,u.appHostname)("fast"),R=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=C(t);if(n){if(n.status!==y){var o=A();return o&&o.status===y?o.url:"//".concat(x,"/assets/images/blank.gif")}var a=(e=(0,i.merge)({aspect:n.width/n.height||1,stillUrl:n.url,playButton:!1,playerColor:e.playerColor||"636155",videoWidth:n.width||640,videoHeight:n.height||360,stillSnap:!0},e)).videoWidth,s=e.videoHeight,u=new r.Url(e.stillUrl);return e.retina&&(u.params.image_play_button_size="2x",a*=2,s*=2),e.stillSnap&&(a=B({videoWidth:a,stillAssetWidth:n.width||640}),s=Math.round(a/e.aspect)),M(e.stillUrl)?("https:"===e.protocol&&(u.protocol="https:",u.host=("fast.wistia.com"===e.embedHost||e.embedHost,"embed-ssl.wistia.com")),u.params.image_crop_resized="".concat(a,"x").concat(s),(null==e.playButton||e.playButton)&&(u.params.image_play_button=1,u.params.image_play_button_color="".concat("".concat(e.playerColor).replace(/^#+/,""),"e0")),e.ext&&u.ext(e.ext),"bin"===u.ext()&&u.ext("jpg"),u.absolute()):e.stillUrl}},B=function(t){var e=[640,960,1280,1920,3840];t.stillAssetWidth<3840&&e.push(t.stillAssetWidth);for(var n=[],i=0;i<e.length;i++){var r=e[i];r<=t.stillAssetWidth&&n.push(r)}n.sort((function(t,e){return t-e}));for(var o=0;o<n.length;o++){var a=n[o];if(t.videoWidth<=a)return a}return Math.max.apply(Math,n)},D=["embed.wistia.com","embed-ssl.wistia.com",(0,u.appHostname)("embed"),(0,u.appHostname)("prime"),(0,u.appHostname)("mixergy-cdn"),"embed-a.wistia.com",(0,u.appHostname)("embed-fastly"),"embedwistia-a.akamaihd.net","embed.wistia.com","embed-ssl.wistia.com","embed-a.wistia.com","embedwistia-a.akamaihd.net","embed-fastly.wistia.com"],M=function(t){if(null==t)return!1;var e=new r.Url(t);return!!e.host&&D.join(",").indexOf(e.host)>=0},I=function(t,e,n){return n=(0,i.merge)({container:e,public:!0,status:y},n),g(t,n)},L=function(t,e){return I(t,"mp4",e)},F=function(t,e){return I(t,"webm",e)},W=function(t,e){return I(t,"m3u8",e)},H=function(t){return g(t,{type:"original"})},N=function(t,e){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,o.cachedDetect)()).video.webm&&F(t,e)||L(t,e)},V=function(t){var e=L(t)||W(t)||F(t)||H(t);return e&&e.height?e.width/e.height:640/360},U=function(t){var e=V(t),n=H(t);if(n&&n.width&&n.height){var i=n.width/n.height;return i>1&&e<1||i<1&&e>1?1/i:i}return e},q=function(t,e){if(V(t)>1)return e=(0,i.merge)({width:640},e),L(t,e)||z(t,e);var n=(0,i.merge)({width:320},e),r=(0,i.merge)({width:640},e);return L(t,n)||L(t,r)||z(t,e)},z=function(t,e){return e=(0,i.merge)({sortBy:"width asc",width:[640,1920]},e),L(t,e)},K=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.eV1Protocol(),n=new r.Url(t);return M(t)&&("https:"===e?(n.host=a.deliveryHost(location.protocol),n.protocol="https:"):(n.host=a.deliveryHost(location.protocol),n.protocol="http:")),n.absolute()},G=function(t,e,n){if(0===t.length)return[];for(var i,r,o=d.call(t).sort((function(t,e){return E(t.width,t.height)-E(e.width,e.height)})),a=0;a<o.length;a++){var u=o[a],l=E(u.width,u.height);if(l<e&&(i=u),l>=n){r=u;break}}var c=[];return i&&c.push(i),r&&c.push(r),0===c.length&&(s.wlog.error("nearestOutsideRange: no nearby assets found, using first in list",o[0]),c.push(o[0])),c},Q=function(t,e){if(!e)return t;for(var n=-1,i=0;i<t.length;i++){if(t[i].url===e.url){n=i;break}}return n>0&&(t.splice(n,1),t.unshift(e)),t}},(t,e,n)=>{n.r(e),n.d(e,{_clearMetricsCache:()=>h,countMetric:()=>u,sampleMetric:()=>c,sendMetric:()=>d,sendMetrics:()=>l});var i=n(3),r=n(7),o=n(10),a=n(31);null==i.default._simpleMetricsCache&&(i.default._simpleMetricsCache={}),null==i.default._simpleMetricsDebounceInterval&&(i.default._simpleMetricsDebounceInterval=500);var s=i.default._simpleMetricsCache,u=function(t){return d("count",t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{})},l=function(){if((0,a.isVisitorTrackingEnabled)()){for(var t="https://".concat("pipedream.wistia.com","/mput?topic=metrics"),e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return fetch(t,{method:"POST",mode:"cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:n.join("\n")})}},c=function(t,e,n){return d("sample",t,e,n)},d=function(t,e,n){var u,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if((0,a.isVisitorTrackingEnabled)())try{null==s.toMput&&(s.toMput=[]);var d=(0,r.default)({type:t,key:e,value:null!=n?n:null},c),h=JSON.stringify(d,(u=new WeakSet,function(t,e){if("object"==typeof e&&null!==e){if(u.has(e))return"[Circular]";u.add(e)}return e}));s.toMput.push(h),clearTimeout(i.default._msendTimeout),i.default._msendTimeout=setTimeout((function(){(0,o.default)((function(){l.apply(undefined,s.toMput),s.toMput=[]}))}),i.default._simpleMetricsDebounceInterval)}catch(t){console.error(t.message),console.error(t.stack)}},h=function(){s.toMput=[]}},,(t,e,n)=>{n.d(e,{interFontFamily:()=>i,interNumbersSemiBold:()=>r});var i="WistiaPlayerInter, Helvetica, Sans-Serif",r="WistiaPlayerInterNumbersSemiBold, Helvetica, Sans-Serif"},,(t,e,n)=>{function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{standardSvgAttrs:()=>a});var a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.width,n=t.height,i=t.styleOverride,o=void 0===i?{}:i,a=t.ariaHidden,s=void 0!==a&&a;return{x:"0px",y:"0px",viewBox:"0 0 ".concat(e," ").concat(n),"enable-background":"new 0 0 ".concat(e," ").concat(n),"aria-hidden":"".concat(!!s),style:r({fill:"#ffffff",height:"100%",left:0,strokeWidth:0,top:0,width:"100%"},o)}}},,(t,e,n)=>{n.d(e,{isMouseDown:()=>l,isMouseDownRecently:()=>c});var i=n(3),r=n(5),o=(0,n(11).cachedDetect)();if(null==i.default._isMouseDown){i.default._isMouseDown=!1;var a=function(t){i.default._isMouseDown=!0,i.default._lastMouseDownAt=Date.now(),setTimeout((function(){t.defaultPrevented&&(i.default._isMouseDown=!1)}),0)},s=function(){i.default._lastMouseUpAt=Date.now(),setTimeout((function(){i.default._isMouseDown=!1}),0)};o.touchScreen?((0,r.elemBind)(document,"touchstart",a,!0),(0,r.elemBind)(document,"touchend",(function(){i.default._lastMouseUpAt=Date.now(),setTimeout((function(){i.default._isMouseDown=!1}),0)}),!0)):((0,r.elemBind)(document,"mousedown",a,!0),(0,r.elemBind)(document,"mouseup",s,!0));var u=o.windows?s:a;(0,r.elemBind)(document,"contextmenu",u,!0)}var l=function(){return null!=i.default._mouseDownForceReturnVal?i.default._mouseDownForceReturnVal:i.default._isMouseDown},c=function(){return null!=i.default._mouseDownForceReturnVal?i.default._mouseDownForceReturnVal:(t=500,Math.max(i.default._lastMouseDownAt||0,(i.default._lastMouseUpAt||0)-1)>Date.now()-t);var t}},(t,e,n)=>{n.d(e,{defineTranslations:()=>h,getDefaultTranslation:()=>m,getLanguage:()=>d,getTranslation:()=>y});var i=n(3),r=n(6),o=n(42),a=i.default.languages=i.default.languages||{},s=i.default.translations=i.default.translations||{};i.default._translationPromises||(i.default._translationPromises={});var u,l=["ar","de","es","en-US","fr","it","ja","ko","pt","ru","zh-CN"],c=function(t,e,n){a[t]={code:t,text:p(e)},n&&h(t,n)},d=function(t){return a[t]},h=function(t,e){if(null==a[t])throw new Error("Must define a language with code ".concat(t," before defining its translations."));var n=s[t];n?(0,r.merge)(n,e):s[t]=(0,r.clone)(e)},f=i.default.cachedDecodings=i.default.cachedDecodings||{},p=function(t){return u||(u=document.createElement("textarea")),null!=f[t]?f[t]:(u.innerHTML=t,f[t]=u.value,u.value)},y=function(t,e){var n;return n=s[t]&&s[t][e]?s[t][e]:s["en-US"][e],p(function(t){return null==t?"?":t}(n))},v=function(){return navigator.languages||navigator.language?i.default.languagePreference=navigator.languages||[navigator.language]:i.default.languagePreference=["en-US"],i.default.languagePreference},m=function(){var t=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:v)().reduce((function(t,e){var n=-1!==l.indexOf(e),i=e.split("-")[0],r=-1!==l.indexOf(i);return n?t.push(e):r&&t.push(i),t}),[])}()[0];return t&&"en"!==t||(t="en-US"),s[t]?Promise.resolve({code:t,translations:s[t]}):function(t){if(i.default._translationPromises[t])return i.default._translationPromises[t];var e=new Promise((function(e,n){(0,o.dynamicImport)(["assets/external/translations/".concat(t,".js")]).then((function(n){var i=n.languageCode,r=n.languageLabel,o=n.translations;c(i,r,o),e({code:t,translations:o[t]})})).catch(n)}));return i.default._translationPromises[t]=e,e}(t)};c("en-US","English"),h("en-US",{PLAY:"Play",PLAY_BUTTON_LIVE_NOT_STARTED:"Livestream has not started",PLAY_BUTTON_TITLE_WHEN_NOT_PLAYING:"Play Video",PLAY_BUTTON_TITLE_WHEN_PLAYING:"Pause",REWATCH:"Rewatch",SKIP:"Skip"})},(t,e,n)=>{n.d(e,{dynamicImport:()=>a});var i=n(23);function r(){r=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var o=e&&e.prototype instanceof f?e:f,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:P(t,n,s)}),a}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h={};function f(){}function p(){}function y(){}var v={};l(v,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(T([])));g&&g!==e&&n.call(g,a)&&(v=g);var b=y.prototype=f.prototype=Object.create(v);function _(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,s){var u=d(t[i],t,o);if("throw"!==u.type){var l=u.arg,c=l.value;return c&&"object"==typeof c&&n.call(c,"__await")?e.resolve(c.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(c).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function P(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return C()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var u=d(t,e,n);if("normal"===u.type){if(i=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i="completed",n.method="throw",n.arg=u.arg)}}}function O(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var r=d(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,h;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return p.prototype=y,i(b,"constructor",{value:y,configurable:!0}),i(y,"constructor",{value:p,configurable:!0}),p.displayName=l(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},_(w.prototype),l(w.prototype,s,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(c(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(b),l(b,u,"Generator"),l(b,a,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function o(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}var a=function(){var t,e=(t=r().mark((function t(e){var n,o,a=arguments;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=null!==(n=(a.length>1&&void 0!==a[1]?a[1]:{}).host)&&void 0!==n?n:(0,i.eV1HostWithPort)(),t.abrupt("return",import("".concat((0,i.eV1Protocol)(),"//").concat(o,"/").concat(e)));case 3:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(i,r){var a=t.apply(e,n);function s(t){o(a,i,r,s,u,"next",t)}function u(t){o(a,i,r,s,u,"throw",t)}s(void 0)}))});return function(t){return e.apply(this,arguments)}}()},,,,,,(t,e,n)=>{n.d(e,{base64Decode:()=>s,base64Encode:()=>u,parentFramesLength:()=>l,poll:()=>r.default,throttle:()=>o.default,unescapeHtml:()=>a.unescapeHtml});var i=n(3),r=n(9),o=n(49),a=n(50),s=function(t){return decodeURIComponent(atob(t).split("").map((function(t){return"%".concat("00".concat(t.charCodeAt(0).toString(16)).slice(-2))})).join(""))},u=function(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x".concat(e))})))},l=function(){try{return parent.frames.length}catch(t){return i.default.warn(t),1}}},(t,e,n)=>{n.d(e,{default:()=>i});const i=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null,r=null,o=null,a=null,s=0,u=function(){s=!1===n.leading?0:(new Date).getTime(),a=null,o=e.apply(i,r),a||(i=r=null)};return function(){var l=(new Date).getTime();s||!1!==n.leading||(s=l);var c=t-(l-s);return i=this,r=arguments,c<=0||c>t?(clearTimeout(a),a=null,s=l,o=e.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(u,c)),o}}},(t,e,n)=>{n.d(e,{unescapeHtml:()=>r});var i={},r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)return"";if(e.cache){var n=i[t];if(i[t])return n}var r,o=document.createElement("div");return o.innerHTML=t.toString().replace(/</g,"&lt;").replace(/>/g,"&gt;"),r=o.childNodes.length>0?o.childNodes[0].nodeValue:"",e.cache&&(i[t]=r),r}},,(t,e,n)=>{n.d(e,{globalEventLoop:()=>u});var i=n(12),r=n(3),o=i.wlog.getPrefixedFunctions("event_loop"),a=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._timeoutId=null,this._latency=null!=e.latency?e.latency:100,this._blurLatency=null!=e.blurLatency?e.blurLatency:2e3,this._functions={},this._paused={},window.addEventListener("blur",(function(){return t.blur()}),!1),window.addEventListener("focus",(function(){return t.focus()}),!1),this.start()},s=a.prototype;s.start=function(){var t=this;clearTimeout(this._timeoutId),this._loopFn=this._loopFn||function(){t.runFunctions(),t._timeoutId=setTimeout(t._loopFn,t._latency)},this._loopFn()},s.resync=function(){this.start()},s.resyncNextTick=function(){var t=this;setTimeout((function(){t.resync()}),0)},s.stop=function(){clearTimeout(this._timeoutId)},s.clear=function(){this._functions={}},s.runFunctions=function(){this._pausedDirty&&this.updatePaused();var t=[];for(var e in this._functions){var n=this._functions[e],i=(new Date).getTime(),r=i-n.lastRanAt;if(!n.paused&&r>=n.interval){n.lastRanAt=i;try{n.fn()===this.remove&&t.push(e)}catch(t){o.error(t)}}}for(var a=0;a<t.length;a++)this.remove(t[a])},s.add=function(t,e,n){var i=(new Date).getTime();this._functions[t]={addedAt:i,lastRanAt:-1,interval:e,fn:n};var r=n();this._functions[t]&&(this._functions[t].lastRanAt=(new Date).getTime()),this._functions[t]&&r===this.remove?delete this._functions[t]:this._pausedDirty=!0},s.remove=function(t){var e=this;this.forEachMatchingKey(t,(function(t){delete e._functions[t]}))},s.forEachMatchingKey=function(t,e){for(var n in this._functions){var i=this._functions[n];this.key1IncludesKey2(t,n)&&e(n,i)}},s.latency=function(t){if(null==t)return this._latency;this._latency=t},s.interval=function(t,e){if(null==e)return this._functions[t].interval;null==this._functions[t]?o.notice("setting interval of ",t,"to",e,"failed because",t,"is not defined"):this._functions[t].interval=e},s.pause=function(t){this._paused[t]=!0,this._pausedDirty=!0},s.unpause=function(t){this._paused[t]=!1,this._pausedDirty=!0},s.isPaused=function(t){for(var e in this.paused){if(this._paused[e]&&this.key1IncludesKey2(e,t))return!0}return!1},s.updatePaused=function(){for(var t in this._functions){this._functions[t].paused=this.isPaused(t)}this._pausedDirty=!1},s.key1IncludesKey2=function(t,e){return"function"==typeof e.indexOf&&0===e.indexOf(t)&&(e.length===t.length||"."===e.charAt(t.length))},s.blur=function(){this._blurred||(this._blurred=!0,this._savedLatency=this._latency,this._latency=this._blurLatency)},s.focus=function(){this._blurred&&(this._blurred=!1,this._latency=this._savedLatency,this.resync())},null==r.default.eventLoop&&(r.default.eventLoop=new a({latency:100,blurLatency:100}));var u=r.default.eventLoop},,(t,e,n)=>{n.d(e,{default:()=>s});var i=n(24),r=n(6),o=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)},a=/^w_([^&]+)/;const s=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a;e||(e=top!==self?document.referrer||"":location.href||"");var s=new i.Url(e).params||{},u={};for(var l in s)if(o(s,l)){var c=l.match(n);if(c){var d=c[1];(0,r.indexOf)(t,d)>=0&&(u[d]=s[l])}}return u}},,,,,(t,e,n)=>{n.d(e,{cssResetForSelector:()=>l});var i=n(7),r={"background-attachment":"scroll","background-color":"transparent","background-image":"none","background-position":"0 0","background-repeat":"no-repeat","background-size":"100% 100%"},o={"box-sizing":"inherit","box-shadow":"none",color:"inherit",display:"block",float:"none",font:"inherit","font-family":"inherit","font-style":"normal","font-weight":"normal","font-size":"inherit","letter-spacing":0,"line-height":"inherit",margin:0,"max-height":"none","max-width":"none","min-height":0,"min-width":0,padding:0,position:"static","text-decoration":"none","text-transform":"none","text-shadow":"none",transition:"none","word-wrap":"normal","-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-user-select":"none","-webkit-font-smoothing":"antialiased"},a={border:0,"border-radius":0,outline:"none",position:"static"},s=function(t){var e=[];for(var n in t){var i=t[n];e.push("".concat(n,":").concat(i))}return e.join(";")},u="\n&{font-size:14px;}\ndiv,span,ul,li,label,fieldset,button,img,a,svg,p{".concat(s(o),"}\na{border:0;}\nh1{").concat(s((0,i.default)({},o,{"font-size":"2em"})),"}\nh2{").concat(s((0,i.default)({},o,{"font-size":"1.5em"})),"}\nh3{").concat(s((0,i.default)({},o,{"font-size":"1.17em"})),"}\np{margin:1.4em 0;}\na,span,svg{display:inline;}\nul,ol,li{").concat(s((0,i.default)({},o,{"list-style-type":"none",position:"static"})),"}\nul:before,ol:before,li:before{display:none}\nul:after,ol:after,li:after{display:none}\nlabel{").concat(s((0,i.default)({},r,{float:"none",outline:"none"})),"}\nbutton{").concat(s((0,i.default)({},r,a)),"}\nimg{").concat(s((0,i.default)({},{border:0,display:"inline-block","vertical-align":"top"},a)),"}\nbutton::-moz-focus-inner{border: 0;}\n"),l=function(t,e){return u.trim().split(/\n+/).map((function(n){return function(t,e,n){var i=n.indexOf("{"),r=n.substring(0,i),o=n.substring(i,n.length);return r.split(/,\s*/).map((function(n){return n.indexOf("&")>=0?"".concat(n.replace(/&/g,t)).concat(e).concat(o):n.indexOf("::")>=0?"".concat(t).concat(e," ").concat(n).concat(o):"".concat(t).concat(n).concat(e).concat(o)})).join("\n")}(t,e,n)})).join("\n")}},(t,e,n)=>{n.d(e,{default:()=>y});var i=n(2),r=n(11),o=n(61);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(this,arguments)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,f(i.key),i)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}(this,n)}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function h(t,e,n){return(e=f(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var p=(0,r.cachedDetect)();const y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(f,t);var e,n,r,d=l(f);function f(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return h(c(t=d.call.apply(d,[this].concat(n))),"onSwipe",(function(e,n){var i=t.props.onSwipe;i&&i(e,n)})),h(c(t),"onPinch",(function(e,n){var i=t.props.onPinch;i&&i(e,n)})),h(c(t),"onLongPress",(function(e,n){var i=t.props.onLongPress;i&&i(e,n)})),h(c(t),"onCustomTouchMove",(function(e,n){var i=t.props.onCustomTouchMove;i&&i(e,n)})),t}return e=f,(n=[{key:"render",value:function(){var t=this.props.tagName||"div";return(0,i.h)(t,a({},this.props,{ref:this.props.elemRef}),this.props.children)}},{key:"componentDidMount",value:function(){this._savedBase=this.base,this.setupBindings()}},{key:"componentDidUpdate",value:function(){this.base!==this._savedBase&&(this._savedBase=this.base,this.destroyBindings(),this.setupBindings())}},{key:"componentWillUnmount",value:function(){this.destroyBindings()}},{key:"setupBindings",value:function(){if(this.unbinds=[],p.touchScreen){var t=this.touchEvents=new o.default(this.base);t.on("swipe",this.onSwipe),t.on("pinch",this.onPinch),t.on("longpress",this.onLongPress),t.on("touchmove",this.onCustomTouchMove)}}},{key:"destroyBindings",value:function(){this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null),this.unbinds&&(this.unbinds.map((function(t){return t()})),this.unbinds=null)}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(i.Component)},(t,e,n)=>{n.d(e,{default:()=>c});n(3);var i=n(15),r=n(5);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,s(i.key),i)}}function a(t,e,n){return(e=s(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var u=(0,n(11).cachedDetect)(),l=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,"onTouchStart",(function(t){n.rootWidth=(0,r.elemWidth)(n.rootElem),n.rootHeight=(0,r.elemHeight)(n.rootElem),n.rootOffset=(0,r.elemOffset)(n.rootElem),n.resetTouchContext(),t.touches[0]&&(n.xDown=t.touches[0].clientX,n.yDown=t.touches[0].clientY),n.updatePinch(t),2==t.touches.length&&n.touchesAreInsideRootElem()&&t.preventDefault(),n.startedAt=Date.now(),(0,r.elemBind)(document,"touchmove",n.onTouchMoveDocument,{passive:!1}),(0,r.elemBind)(document,"touchend",n.onTouchEndDocument),(0,r.elemBind)(n.rootElem,"touchmove",n.onTouchMove,{passive:!1}),(0,r.elemBind)(n.rootElem,"touchend",n.onTouchEnd);var e=n.getTouchContext(t);n.trigger("touchstart",t,e),n.maybeTriggerMoreSpecificEvent(t,e)})),a(this,"onTouchMove",(function(t){t._handledByTouchMove=!0;var e=t.touches[0].clientX,i=t.touches[0].clientY;(n.xDiff=n.xDown-e,n.yDiff=n.yDown-i,n.updatePinch(t),n.isPinch)||(Math.sqrt(n.xDiff*n.xDiff+n.yDiff*n.yDiff)>25||Date.now()-n.startedAt>300)&&(n.isSwipe=!0);var r=n.getTouchContext(t);n.trigger("touchmove",t,r),n.maybeTriggerMoreSpecificEvent(t,r)})),a(this,"onTouchMoveDocument",(function(t){t._handledByTouchMove||n.onTouchMove(t)})),a(this,"onTouchEnd",(function(t){t._handledByTouchEnd=!0;var e=n.getTouchContext(t);n.trigger("touchend",t,e),n.maybeTriggerMoreSpecificEvent(t,e),setTimeout((function(){n.resetTouchContext(),n.unbindTouchEndAndTouchMove()}),0)})),a(this,"onTouchEndDocument",(function(t){t._handledByTouchEnd||n.onTouchEnd(t)})),this.rootElem=e,this.xDown=this.yDown=null,this.xDiff=this.yDiff=0,this.isSwipe=!1,this.isPinch=!1,this.startedAt=null,this.initialPinchDistance=null,this.touch1=this.touch2=null,this.pinchDistance=0,this.pinchScale=0,(0,r.elemBind)(e,"touchstart",this.onTouchStart,!!u.passiveSupported&&{passive:!1})}var e,n,i;return e=t,(n=[{key:"updatePinch",value:function(t){var e=this.rootOffset;return 2===t.touches.length?(this.touch1={left:t.touches[0].pageX-e.left,top:t.touches[0].pageY-e.top},this.touch2={left:t.touches[1].pageX-e.left,top:t.touches[1].pageY-e.top},this.pinchDistance=Math.sqrt(Math.pow(this.touch1.left-this.touch2.left,2),Math.pow(this.touch1.top-this.touch2.top,2)),null==this.initialPinchDistance&&(this.initialPinchDistance=this.pinchDistance),this.pinchScale=this.pinchDistance/this.initialPinchDistance,this.pinchDelta=this.pinchDistance-this.initialPinchDistance,this.isPinch=!0,this.pinchScale):0}},{key:"getTouchContext",value:function(t){var e=this.rootOffset,n=Date.now()-this.startedAt,i=Object(t.touches[0]);return{xOffset:i.pageX-e.left,yOffset:i.pageY-e.top,xDelta:this.xDiff,yDelta:this.yDiff,absXDelta:Math.abs(this.xDiff),absYDelta:Math.abs(this.yDiff),delta:Math.sqrt(this.xDiff*this.xDiff+this.yDiff*this.yDiff),startedAt:this.startedAt,isSwipe:!this.isPinch&&this.isSwipe,isTap:n<1e3&&!this.isPinch&&!this.isSwipe,isLongPress:n>=1e3&&!this.isPinch&&!this.isSwipe,isPinch:this.isPinch,timeDelta:n,pinchScale:this.pinchScale,pinchDistance:this.pinchDistance}}},{key:"touchIsInsideRootElem",value:function(t){return t.left>=0&&t.left<this.rootWidth&&t.top>=0&&t.top<this.rootHeight}},{key:"touchesAreInsideRootElem",value:function(){return this.touchIsInsideRootElem(this.touch1)&&this.touchIsInsideRootElem(this.touch2)}},{key:"resetTouchContext",value:function(){this.xDown=this.yDown=null,this.xDiff=this.yDiff=0,this.isSwipe=!1,this.isPinch=!1,this.startedAt=null,this.pinchDelta=0,this.pinchDistance=0,this.initialPinchDistance=null,this.touch1=this.touch2=null}},{key:"maybeTriggerMoreSpecificEvent",value:function(t,e){e.isLongPress?this.trigger("longpress",t,e):e.isTap?this.trigger("tap",t,e):e.isSwipe?this.trigger("swipe",t,e):e.isPinch&&this.trigger("pinch",t,e)}},{key:"destroy",value:function(){(0,r.elemUnbind)(this.rootElem,"touchstart",this.onTouchStart),this.unbindTouchEndAndTouchMove(),this.rootElem=null}},{key:"unbindTouchEndAndTouchMove",value:function(){(0,r.elemUnbind)(document,"touchmove",this.onTouchMoveDocument),(0,r.elemUnbind)(document,"touchend",this.onTouchEndDocument),(0,r.elemUnbind)(this.rootElem,"touchmove",this.onTouchMove),(0,r.elemUnbind)(this.rootElem,"touchend",this.onTouchEnd)}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();(0,i.bindify)(l.prototype);const c=l},(t,e,n)=>{n.d(e,{default:()=>u});var i=n(2);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=s(t);if(e){var r=s(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}const u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(l,t);var e,n,s,u=a(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return e=l,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var t=this.props;return(0,i.h)("div",{class:t.class||"w-html-stub",style:t.style,ref:t.stubRef,"data-handle":t.handle})}},{key:"componentDidMount",value:function(){var t=this.props.mount;t&&t(this.base)}},{key:"componentWillUnmount",value:function(){var t=this.props.destroy;t&&t()}}])&&r(e.prototype,n),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),l}(i.Component)},(t,e,n)=>{n.d(e,{destroyControl:()=>s});n(7);var i=n(11),r=(n(30),n(5)),o=n(2),a=(n(20),n(64),function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}),s=((0,i.cachedDetect)(),function(t){t._destroyed=!0,function(t){t.unbinds instanceof Array&&(t.unbinds.forEach((function(t){try{"function"==typeof t&&t()}catch(t){setTimeout((function(){throw t}),1)}})),t.unbinds=null)}(t),function(t){t.eventListeners instanceof Map&&(t.eventListeners.forEach((function(e,n){try{"function"==typeof e&&t.embedElement.removeEventListener(n,e)}catch(t){setTimeout((function(){throw t}),1)}})),t.eventListeners.clear())}(t),u(t),c(t),d(t)}),u=function(t){t.rootElem&&(0,r.elemRemove)(Array.prototype.slice.call(t.rootElem.childNodes))},l=function(t){var e=t[0],n=t[1];e&&n&&(0,o.render)((0,o.h)("nothing",null),e)},c=function(t){var e=t.reactMounts;if(e)if(e instanceof Array)l(e);else for(var n in e)a(e,n)&&e[n]&&l(e[n])},d=function(t){for(var e in t)a(t,e)&&("_"!==(n=e)[0]||"_"!==n[1])&&"mounted"!==e&&(t[e]=null);var n;t.__prevProps=null,t._destroyed=!0}},(t,e,n)=>{n.d(e,{defineControl:()=>o,getControlDefinitions:()=>a});var i=n(3),r=n(34);null==i.default._controlDefinitions&&(i.default._controlDefinitions={});var o=function(t){null!=t.handle?null==i.default._controlDefinitions[t.handle]&&(i.default._controlDefinitions[t.handle]=t,i.default.trigger&&i.default.trigger("controldefined",t)):console.error("Please specify a handle property for control",t)},a=function(){return i.default._controlDefinitions||{}};i.default.defineControl=function(t){(0,r.countMetric)("player/custom-control-definition",1,{name:t.handle,location:location.origin+location.pathname}),o(t)}},,,(t,e,n)=>{n.r(e),n.d(e,{accessibilityDuration:()=>s,durationStringToSeconds:()=>r,flexibleDuration:()=>o,formattedDurationToSeconds:()=>a,getSecondsRemaining:()=>p,humanReadableDuration:()=>u,isValidDurationString:()=>d,padNumber:()=>h,secondsConverter:()=>f});var i=n(68),r=function(t){var e=(null==t?void 0:t.toString())||"";return d(e)?3600*l("h",e)+60*l("m",e)+l("s",e):0},o=function(t){var e=f(t,"hms"),n=e.hours,i=e.minutes,r=e.seconds;return 0===n?"".concat(i,":").concat(h(r,2)):"".concat(n,":").concat(h(i,2),":").concat(h(r,2))},a=function(t){return d(t)?r(t):(0,i.isValidIso8601)(t)?(0,i.iso8601TimeToSeconds)(t):t},s=function(t){var e=f(t,"hms"),n=e.hours,i=e.minutes,r=e.seconds,o=0===n,a=0===i;if(o&&a)return"".concat(r," second").concat(1===r?"":"s");var s=o?"":"".concat(n," hour").concat(1===n?"":"s"),u=a?"":"".concat(i," minute").concat(1===n?"":"s");return"".concat(s," ").concat(u).trim()},u=function(t){var e=f(t,"hms"),n=e.hours,i=e.minutes,r=e.seconds,o=0===n,a=0===i;if(o&&a)return"".concat(r," Sec");var s=o?"":"".concat(n," Hr"),u=a?"":"".concat(i," Min");return"".concat(s," ").concat(u).trim()},l=function(t,e){var n=new RegExp("\\d+".concat(t)),i=e.match(n);return i?parseInt(i[0].match(/\d+/)[0],10):0},c=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,d=function(t){if(!t)return!1;var e=t.toString();return null!==(e=e.replace(c,"")).match(/[\dhms]+/)&&null!==e.match(/[hms]+/)&&(e.match(/[\dhms]+/)[0]===e&&(!function(t){return["h","m","s"].filter((function(e){var n=new RegExp(e,"g"),i=t.match(n);return null!==i&&i.length>1})).length>0}(e)&&!!function(t){var e=t.match(/[hms]/g),n=!1;if(3===e.length&&"h"===e[0]&&"m"===e[1]&&"s"===e[2])return!0;if(2===e.length){var i=e.join("");return["hm","hs","ms"].forEach((function(t){i===t&&(n=!0)})),n}return!0}(e)))},h=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n="".concat(t);n.length<e;)n="0".concat(n);return n},f=function(t,e){var n=0,i=0,r=0,o=/h/.test(e),a=/m/.test(e);return o&&t>0&&(n+=Math.floor(t/3600),t%=3600),a&&t>0&&(i+=Math.floor(t/60),t%=60),r=Math.round(t),o&&60===i&&(n+=1,i=0),a&&60===r&&(i+=1,r=0),{hours:n,minutes:i,seconds:r}},p=function(t,e){return(e.getTime()-t.getTime())/1e3}},(t,e,n)=>{n.r(e),n.d(e,{isValidIso8601:()=>o,iso8601TimeToSeconds:()=>r,secondsToIso8601Date:()=>a,secondsToIso8601Duration:()=>s,secondsToIso8601Time:()=>u});var i=n(67),r=function(t){var e=t.toString()||"",n=0,i=[1,60,3600];return e.split(":").reverse().forEach((function(t,e){n+=t*i[e]})),0|Math.abs(parseInt(n,10))},o=function(t){if(!t||"string"!=typeof t)return!1;var e=t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");return null!==e.match(/[\d:]+/)&&e.match(/[\d:]+/)[0]===e},a=function(t){var e=new Date(1e3*t),n=e.getFullYear(),i=e.getMonth()+1,r=e.getDate();return i<10&&(i="0".concat(i)),r<10&&(r="0".concat(r)),"".concat(n,"-").concat(i,"-").concat(r)},s=function(t){var e=(0,i.secondsConverter)(t,"hms"),n=e.hours,r=e.minutes,o=e.seconds,a="";return n&&(a+="".concat(n,"H")),(r||t>60&&0!==o)&&(a+="".concat(r,"M")),(o||0===t)&&(a+="".concat(o,"S")),a},u=function(t){var e=(0,i.secondsConverter)(t,"hms"),n=e.hours,r=e.minutes,o=e.seconds,a=n.toString(),s=r.toString(),u=o.toString();return["00".substring(a.length)+a,"00".substring(s.length)+s,"00".substring(u.length)+u].join(":")}},,,,(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}n.d(e,{default:()=>c});var r=/^#?([0-9a-f]{3,4}|[0-9a-f]{6,8})$/i,o=/^rgba?\((\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?),\s*(\d{1,3}(?:\.\d+)?%?)(?:,\s*([01]?\.?\d*))?\)$/,a=/^\d+(\.\d+)*%$/,s=/([0-9a-f])/gi,u=function(t){return a.test(t)?2.55*parseFloat(t):t},l=function(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t};const c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e instanceof t?(this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a):e?this.parse(e):(this.r=this.g=this.b=0,this.a=1)}var e,n,a;return e=t,(n=[{key:"parse",value:function(t){if(t=String(t),r.test(t)){var e=t.replace(/^#/,"");3!==e.length&&4!==e.length||(e=e.replace(s,"$1$1")),this.r=parseInt(e.substr(0,2),16),this.g=parseInt(e.substr(2,2),16),this.b=parseInt(e.substr(4,2),16),8===e.length?this.a=parseInt(e.substr(6,2),16)/255:this.a=1}else if(o.test(t)){var n=t.match(o);this.r=parseFloat(u(n[1])),this.g=parseFloat(u(n[2])),this.b=parseFloat(u(n[3])),n[4]?this.a=parseFloat(n[4]):this.a=1}return this}},{key:"clone",value:function(){return new t(this)}},{key:"_hslFromRgb",value:function(){var t=this.r/255,e=this.g/255,n=this.b/255,i=Math.max(t,e,n),r=Math.min(t,e,n),o=(i+r)/2;i===r&&(this._h=this._s=0);var a,s,u=i-r;return 0===u?(this._h=0,this._s=0,this._l=100*t,this):(a=o>.5?u/(2-i-r):u/(i+r),s=i===t?(e-n)/u+(e<n?6:0):i===e?(n-t)/u+2:(t-e)/u+4,s/=6,this._h=360*s,this._s=100*a,this._l=100*o,this)}},{key:"_rgbFromHsl",value:function(){var t=this._h/360,e=this._s/100,n=this._l/100,i=n<.5?n*(1+e):n+e-n*e,r=2*n-i;return this.r=255*l(r,i,t+1/3),this.g=255*l(r,i,t),this.b=255*l(r,i,t-1/3),this}},{key:"blendChannel",value:function(t,e,n){return this[t]=n*e+(1-n)*this[t],this}},{key:"blend",value:function(e,n){return e=new t(e),this.blendChannel("r",e.r,n),this.blendChannel("g",e.g,n),this.blendChannel("b",e.b,n),this}},{key:"lightenChannel",value:function(t,e){return this[t]+=e,this[t]<0?this[t]=0:this[t]>255&&(this[t]=255),this}},{key:"lighten",value:function(t){return this.looksLikePercent(t)?this.lightness(this.lightness()+parseFloat(t)):(this.lightenChannel("r",t),this.lightenChannel("g",t),this.lightenChannel("b",t)),this}},{key:"darken",value:function(t){return"string"==typeof t?this.lighten("-".concat(t)):this.lighten(-t)}},{key:"looksLikePercent",value:function(t){return/^-?\d+(\.\d+)?%$/.test(t)}},{key:"lightness",value:function(t){return this._hslFromRgb(),null!=t?(this._l=Math.max(0,Math.min(100,t)),this._rgbFromHsl(),this):this._l}},{key:"saturation",value:function(t){return this._hslFromRgb(),null!=t?(this._s=Math.max(0,Math.min(100,t)),this._rgbFromHsl(),this):this._s}},{key:"grayLevel",value:function(){return(.299*this.r+.587*this.g+.114*this.b)/255}},{key:"whiteLevel",value:function(){return Math.min(Math.min(this.r,this.g),this.b)}},{key:"isGrayscale",value:function(){return this.r===this.g&&this.g===this.b}},{key:"distanceFrom",value:function(t){return Math.sqrt(Math.pow(this.r-t.r,2)+Math.pow(this.g-t.g,2)+Math.pow(this.b-t.b,2))}},{key:"channelDominance",value:function(){var t=this;return["r","g","b"].sort((function(e,n){return t[n]-t[e]}))}},{key:"alpha",value:function(t){return null!=t?(this.a=t,this):this.a}},{key:"red",value:function(t){return null!=t?(this.r=t,this):this.r}},{key:"green",value:function(t){return null!=t?(this.g=t,this):this.g}},{key:"blue",value:function(t){return null!=t?(this.b=t,this):this.b}},{key:"toHex",value:function(){var t=Math.round(this.r).toString(16),e=Math.round(this.g).toString(16),n=Math.round(this.b).toString(16);return 1===t.length&&(t="0".concat(t)),1===e.length&&(e="0".concat(e)),1===n.length&&(n="0".concat(n)),"".concat(t).concat(e).concat(n)}},{key:"toHexWithAlpha",value:function(){var t=Math.round(255*this.a).toString(16);return 1===t.length&&(t="0".concat(t)),"".concat(t).concat(this.toHex())}},{key:"toRgb",value:function(){return"rgb(".concat(Math.round(this.r),",").concat(Math.round(this.g),",").concat(Math.round(this.b),")")}},{key:"toRgba",value:function(){return"rgba(".concat(Math.round(this.r),",").concat(Math.round(this.g),",").concat(Math.round(this.b),",").concat(this.a,")")}},{key:"toRgbaOrHex",value:function(){return this.toRgba()}},{key:"toPercent",value:function(){return"rgba(".concat(this.r/255*100,"%,").concat(this.g/255*100,"%,").concat(this.b/255*100,"%,").concat(this.a,")")}},{key:"toIeGradient",value:function(){return"progid:DXImageTransform.Microsoft.gradient(startColorStr='#".concat(this.toHexWithAlpha(),"', endColorStr='#").concat(this.toHexWithAlpha(),"')")}},{key:"toString",value:function(){return this.toPercent()}}])&&i(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}()},,(t,e,n)=>{n.d(e,{atOrNearBeginning:()=>c,atOrNearEnd:()=>l,getLastTime:()=>o,getResumableKeyForVideo:()=>s,setLastTime:()=>a,setResumableKeyForVideo:()=>u,shorterThanResumableThreshold:()=>d,withinResumableTime:()=>h});var i=n(28),r=function(t){return"wistia-video-progress-".concat(t)},o=function(t){return(0,i.getLocalStorage)(r(t)).lastTime},a=function(t,e){(0,i.updateLocalStorage)(r(t),(function(t){t.lastTime=e}))},s=function(t){return(0,i.getLocalStorage)(r(t)).resumableKey},u=function(t,e){(0,i.updateLocalStorage)(r(t),(function(t){t.resumableKey=e}))},l=function(t,e){return(o(t)||0)+5>e},c=function(t){return(o(t)||0)<10},d=function(t){return t<300},h=function(t,e){return!c(t)&&!l(t,e)}},(t,e,n)=>{n.d(e,{default:()=>u});var i=n(2);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=s(t);if(e){var r=s(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}const u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(l,t);var e,n,s,u=a(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=u.call(this,t)).state={filledWidth:0,isDisplayNone:!0,isOpaque:!1,widthTransitionShouldDelay:!0},e}return e=l,(n=[{key:"componentDidMount",value:function(){this.maybeFadeInOrOut()}},{key:"componentDidUpdate",value:function(t,e){var n=t.isVisible;this.maybeFadeInOrOut(n);var i=e.filledWidth;this.maybeChangeFilledWidth(i)}},{key:"fadeIn",value:function(){var t=this,e=this.props.isVisible;clearTimeout(this.fadeTimeout),this.setState({isDisplayNone:!1},(function(){e&&(t.fadeTimeout=setTimeout((function(){e&&requestAnimationFrame((function(){t.setState({isOpaque:!0})}))}),0))}))}},{key:"fadeOut",value:function(){var t=this,e=this.props.isVisible;clearTimeout(this.fadeTimeout),this.setState({isOpaque:!1},(function(){e||(t.fadeTimeout=setTimeout((function(){e||t.setState({isDisplayNone:!0})}),200))}))}},{key:"filledBarStyle",value:function(){var t=this.state,e=t.widthTransitionShouldDelay,n=t.filledWidth,i=this.props.color;return{backgroundColor:"#".concat(i),height:"100%",transition:"width 500ms ease-out ".concat(e?"500ms":""),width:"".concat(n,"%")}}},{key:"maybeFadeInOrOut",value:function(t){var e=this.props.isVisible;e!==t&&(e?this.fadeIn():this.fadeOut())}},{key:"maybeChangeFilledWidth",value:function(t){var e=this,n=this.props.percentWatched;null!=n&&n!==t&&setTimeout((function(){requestAnimationFrame((function(){e.setState({filledWidth:n})}))}),0)}},{key:"removeTransitionDelay",value:function(){this.setState({widthTransitionShouldDelay:!1})}},{key:"unfilledBarStyle",value:function(){var t=this.state,e=t.isDisplayNone,n=t.isOpaque;return{backgroundColor:"#ffffff",bottom:0,display:e?"none":"",height:n?"".concat(6*this.props.scale,"px"):0,opacity:n?.8:0,transition:"opacity 1s, height .5s",width:"100%"}}},{key:"render",value:function(){var t=this;return(0,i.h)("div",{style:this.unfilledBarStyle()},(0,i.h)("div",{onTransitionEnd:function(){return t.removeTransitionDelay()},style:this.filledBarStyle()}))}}])&&r(e.prototype,n),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),l}(i.Component)},,,,,,(t,e,n)=>{n(82),n(83),n(93),n(95),n(96)},(t,e,n)=>{var i=n(52);!function(t){if(!(null!=t._initializers?t._initializers.initEventLoop:void 0))t._initializers.initEventLoop=function(){return t.eventLoop=i.globalEventLoop},t._destructors.destroyEventLoop=function(){return null!=t.eventLoop&&t.eventLoop.stop(),t.eventLoop=null}}(window.Wistia)},(t,e,n)=>{!function(t){var e,i,r,o,a,s,u,l,c,d,h,f,p,y,v;if(!(i=t).embed)e=n(84),p=n(21),u=p.fetchMedia,d=p.mediaFromCache,c=n(32).mediaDataTransforms,h=n(6).merge,r=n(7).default,s=n(42).dynamicImport,o=n(34).countMetric,f=n(85).optionsFromElemClass,y=n(86).setEmbedOptionStore,n(90).TranslationApi,i._embed={},i.embed=function(t,e){var n,r,s,u,p,y,v,m;return null==e&&(e={}),i.info("Wistia.embed",t,e),"function"==typeof i.flushInitQueue&&i.flushInitQueue(),"string"==typeof t?s=t:t.type&&"ab-test"===t.type?(s=t.hashedId,[t.control,t.variant].filter(Boolean).forEach((function(t){return l(t,e)})),i.cacheAbTest(t.hashedId,t)):(s=t.hashedId,v=h({},t.embedOptions,e),c(t,v),i.cacheMedia(s,t)),e.container?"string"==typeof e.container?u=document.getElementById(e.container):(u=e.container,o("legacy/embed-with-container",1,{hashedId:s,url:window.location.href})):t.container?"string"==typeof t.container?u=document.getElementById(e.container):(u=t.container,o("legacy/embed-with-container",1,{hashedId:s,url:window.location.href})):(n="wistia_"+s,u=document.getElementById(n)),(r=f(u)).useWebComponent||(null!=(p=d(s))&&null!=(y=p.embedOptions)?y.useWebComponent:void 0)?((m=a(s,Object.assign({},e,r))).originalContainer=u,m.originalContainer._convertingToAurora=!0,m.id=m.originalContainer.id,m.originalContainer.removeAttribute("id"),u.append(m),m.api.translationApi):new i.PublicApi(s,e)},a=function(t,e){var n;return(n=document.createElement("wistia-player")).setAttribute("media-id",t),y("__"+n.id+"_dom_options__",e),Object.entries(e).forEach((function(t){var e,i,r,o,a;return e=t[0],a=t[1],r=(i=v(e,a))[0],o=i[1],n[r]=o})),n},v=function(t,e){var n,i;switch(n=t,i=e,t){case"autoPlay":n="autoplay";break;case"controlsVisibleOnLoad":n="hideControlsOnLoad",i=!e;break;case"copyLinkAndThumbnailEnabled":n="hideCopyLinkAndThumbnail",i=!e;break;case"fullscreenButton":n="fullscreenControl";break;case"fullscreenOnRotateToLandscape":n="disableFullscreenOnRotateToLandscape",i=!e;break;case"playbar":n="playBarControl";break;case"playButton":n="bigPlayButton";break;case"preload":typeof e===Boolean&&!0===e&&(i="auto"),typeof e===Boolean&&!1===e&&(i="none");break;case"silentAutoPlay":n="silentAutoplay";break;case"smallPlayButton":n="playPauseControl";break;case"stillUrl":n="poster";break;case"wmode":n="transparentLetterbox","transparent"===e&&(i=!0)}return[n,i]},i.embedEngine=function(t,n,a,l){var d;return null==a&&(a={}),null==l&&(l={}),d="string"==typeof n?n:n.hashedId,new Promise((function(f){var p;return p=function(n){var i,r;return i=e.buildContext(l),r=e.bestUsableEngine(i,n,a),s("assets/external/"+r).then((function(e){var i;return i=new(0,e.default)(t,n,h({duration:n.duration},a)),f(i)}))},"string"==typeof n?u(d,(function(t){return c(t,a),i.cacheMedia(d,t),p(t)}),r({},a,{errorCallback:function(){return o("player/failure/embed-failed")}})):p(n)}))},l=function(t,e){return c(t.media,e),i.cacheMedia(t.media.hashedId,t.media)}}(Wistia)},(t,e,n)=>{n.r(e),n.d(e,{PLUGIN_CONFIGS:()=>A,bestPlayer:()=>j,bestUsableEngine:()=>x,bestUsableEngineClass:()=>R,buildContext:()=>B,canPlayInline:()=>D,canUsePlayer:()=>M,choosePlayer:()=>I,determinePlayerPreferenceFromInput:()=>F,doesBrowserSupportHlsTools:()=>W,enginesToLoad:()=>H,getDefaultContext:()=>N,hasAssetsForPlayer:()=>U,hasEnoughReadyMp4Assets:()=>K,hasSupportedHlsAssets:()=>G,isBrowserInNativeAndroid:()=>X,isBrowserOldChrome:()=>$,isHlsEnabled:()=>Z,isMobile:()=>J,isNotPlayable:()=>tt,isPasswordProtected:()=>et,isSupportedPlayer:()=>it,isValidPlayer:()=>ot,logWarnings:()=>at,playerPlugins:()=>st,report:()=>ut,shouldServeHls:()=>lt,supportedPlayers:()=>ct,urlHasBeenTamperedWith:()=>ht,usablePlayers:()=>dt,xhrHasBeenTamperedWith:()=>yt});var i=n(3),r=n(6),o=n(11),a=n(29),s=n(26),u=n(4),l=n(12),c=n(33);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var p,y=l.wlog.getPrefixedFunctions("judy"),v="auto",m="external",g="hlsVideo",b="html5",_="manualQualityVideo",w="nativeHlsVideo",P="notplayable",O="passwordprotected",k="simplehtml5",S="twoStrokeVideo",E="vulcan-v2",T="sphericalVideo",C=[E,b,k,m,P,O],A={notPlayableVideo:{on:!0,initBeforeHasData:!0,async:!1,loadWeight:-1},vulcanV2Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},hlsVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:0},nativeHlsVideo:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:0},passwordProtectedVideo:{on:!0,initBeforeHasData:!0,async:!1,loadWeight:-1},encodingProgress:{on:!0,initBeforeHasData:!1,async:!0,loadWeight:100},externalPlayer:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1},html5Player:{on:!0,initBeforeHasData:!1,async:!1,loadWeight:-1}},j=function(t,e,n){var i=t.detect,r=t.logger,o=e.assets,a=nt({mediaData:e,options:n},i);return i.oldandroid?(r.info("external on old android"),m):M(t,E,o)&&a||M(t,E,o)?(r.info("default, ret",E),E):"Audio"===e.mediaType||"LiveStream"===e.mediaType?E:M(t,b,o)?(r.info("default, ret",b),b):(r.info("nothing left, use",m),m)},x=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.detect,r=t.logger;r.info("bestUsableEngineClass");var o=lt(t,e,n),a=nt({mediaData:e,options:n},i);return n.engine?n.engine:a?(r.info(T),"engines/spherical_video.js"):"Audio"===e.mediaType?"engines/simple_audio.js":rt(e)||n.secondaryVideoUrl?(r.info(S),"engines/two_stroke_video.js"):o&&i.nativeHls?(r.info(w),"engines/native_hls_video.js"):o?(r.info(g),"engines/hls_video.js"):(r.info(_),"engines/manual_quality_video.js")},R=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.detect,o=t.logger;o.info("bestUsableEngineClass");var a=lt(t,e,n),s=i.default.engines||{};return"Audio"===e.mediaType?s.SimpleAudio:rt(e)&&s.TwoStrokeVideo||n.secondaryVideoUrl&&s.TwoStrokeVideo?(o.info(S),s.TwoStrokeVideo):a&&r.nativeHls&&s.NativeHlsVideo?(o.info(w),s.NativeHlsVideo):a&&s.HlsVideo?(o.info(g),s.HlsVideo):(o.info(_),s.ManualQualityVideo)},B=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=L(t);return h(h(h({},N()),t),{},{pageUrl:e})},D=function(t){var e=t.detect;return e.android||e.ios.version>=10},M=function(t,e,n){return it(t,e)&&U(t,e,n)},I=function(t,e,n){var i=t.detect,r=t.logger,o=e.assets,a=n.playerForce;r.info("choosePlayer input",e.hashedId);var s=F(t,e,n);if(a&&!ot(t,a)&&(r.error('Invalid playerForce option: "'.concat(a,'", ignoring')),a=null),s&&s!==v&&!ot(t,s)&&(r.error('Invalid playerPreference option: "'.concat(s,'", ignoring')),s=v),r.info("playerPreference is",s),a)return r.info('"playerForce" used, return',a),a;if(et(t,n))return r.info("return",O),O;if(tt(t,e))return r.info("return",P),P;if(s!==v&&M(t,s,o)){var u=nt({mediaData:e,options:n},i);return s!==E&&u?(r.info("this player doesn't support spherical, return",E),E):(r.info('"playerPreference" used, return',s),s)}return r.info("choosing player with no preference"),j(t,e,n)},L=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.pageUrl?t.pageUrl:Object(window.FreshUrl).originalUrl?window.FreshUrl.originalUrl:window.top===window.self?location.href||"":document.referrer||""},F=function(t,e,n){var i=n.playerPreference||n.platformPreference;return i&&i!==v?i===b?J(t)?b:E:i===k?b:i:v},W=function(t){var e=Boolean(window.Promise);return(t.mediaSource||t.nativeHls)&&e},H=function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=e.detect,a=e.logger,s=[];a.info("enginesToLoad");var u=lt(e,n,i);if(u&&o.nativeHls?(a.info(w),s.push(w)):u?(a.info(g),s.push(g)):(a.info(_),s.push(_)),nt({mediaData:n,options:i},o)&&(s.push(T),a.info(T)),rt(n)){a.info(S),s.push(S);var l=(0,r.except)(i,["twoStroke"]),c=t(e,n.secondaryMediaData,l);s=s.concat(c)}else i.secondaryVideoUrl&&(a.info("secondaryVideoUrl",S),s.push(S));var d={};s.forEach((function(t){d[t]=!0}));var h=[];for(var f in d)h.push(f);return h},N=function(){return p||(p={detect:(0,r.clone)((0,o.cachedDetect)()),inIframe:top!==self,location:window.location,logger:y,pageUrl:location.href,silenceGlobalWarnings:u.default.wistiaSilenceGlobalWarnings,userAgent:navigator.userAgent})},V=function(t,e){var n={};return n[e]=A[e],n},U=function(t,e,n){if(!ot(t,e))return!1;if(e===P||e===O)return!0;if(e===E)return q(n)||z(n);if(e===b)return(0,c.readyPublicMp4s)(n).length>0;if(e===m)return(0,c.readyPublicMp4s)(n).length>0;throw new Error("Unhandled player type '".concat(e,"'"))},q=function(t){return(0,c.readyPublicMp4s)(t).length>0||(0,c.readyPublicM3u8s)(t).length>0},z=function(t){return(0,c.readyPublicMp3s)(t).length>0},K=function(t){var e=(0,c.filter)(t,{container:"mp4",metadata:function(t){return t&&t.max_bitrate},public:!0,sortBy:"width desc",status:c.READY,type:/\b(?!captioned_video)\S+/});return Boolean(e[0]&&e[0].width>=400)},G=function(t){return K(t.assets)||(0,a.count)("player/originV2/media-has-no-metadata",1,{hashedId:t.hashedId}),K(t.assets)},Q=function(t,e){var n=t.pageUrl,i=Y(n);if(null!=i)return i;var r=(0,s.setOrGet)("forceHls");return null!=r?r:e.hls},Y=function(t){var e=t&&t.match&&t.match(/[&?]whls=([^&]+)/),n=e&&e[1];return null!=n?(0,r.cast)(n):null},X=function(t,e){return t.android&&(!1===e.playsinline||!0===e.nativeMode)},$=function(t){return t.chrome&&parseInt(t.chrome.version,10)<50},Z=function(t,e,n){var i=Q(t,n);return!0===i||!1===i?i:!1!==e.hls_enabled},J=function(t){var e=t.detect;return e.iphone||e.ipad||e.android},tt=function t(e,n){var i=n.assets,r="Audio"===n.type?0==(0,c.readyPublicMp3s)(i).length:0==(0,c.readyPublicMp4s)(i).length;return"LiveStream"!==n.mediaType&&(0===i.length||1===i.length&&"original"===i[0].type||r||(0,c.nonfailedPublicOver400)(i).length>0&&0===(0,c.readyPublicOver400)(i).length||rt(n)&&t(e,n.secondaryMediaData))},et=function(t,e){var n=(0,r.getDeep)(e,"plugin.passwordProtectedVideo");return null!=n&&!1!==n.on},nt=function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.options.overrideSpherical)return!1;var i=String(null===(t=n.mediaData)||void 0===t?void 0:t.spherical),r=String(null===(e=n.opts)||void 0===e?void 0:e.spherical);return"true"===i||"true"===r},it=function(t,e){return!!ot(t,e)&&(0,r.indexOf)(ct(t),e)>=0},rt=function(t){return!!t.secondaryMediaData},ot=function(t,e){return(0,r.indexOf)(C,e)>=0},at=function(t){var e=t.detect,n=t.userAgent,i=t.logger;if(!t.silenceGlobalWarnings){var r=/phantomjs/i.test(n);yt()&&(r||i.error("The XMLHttpRequest constructor has been tampered with. Because this affects CORS/Range XHR requests, HLS playback has been disabled. To enable HLS playback and other important features, please remove code that changes the definition of window.XMLHttpRequest.")),ht()&&e.mediaSource&&!r&&i.error("window.URL.createObjectURL has been tampered with. Because this affects use of Media Source Extensions, HLS playback has been disabled. window.URL is a browser API that should not be clobbered. Its current value is:",window.URL)}},st=function(t,e,n,i){var o=t.logger,a={};o.info("playerPlugins input",e,n.hashedId,n,i),e===P?(0,r.merge)(a,V(0,"notPlayableVideo")):e===O?(0,r.merge)(a,V(0,"passwordProtectedVideo")):e===b?(0,r.merge)(a,V(0,"html5Player")):e===m?(0,r.merge)(a,V(0,"externalPlayer")):e===E&&(0,r.merge)(a,V(0,"vulcanV2Player"));var s=[];for(var u in a)s.push(u);return o.info.apply(o,["playerPlugins output"].concat(s,[a])),a},ut=function(t,e,n){return{bestPlayer:j(t,e,n),playerPreferenceFromInput:F(t,e,n),supportedPlayers:ct(t),usablePlayers:dt(t,e.assets)}},lt=function(t,e,n){if("LiveStream"===e.type)return!0;var i=t.detect;return W(i)&&!$(i)&&!X(i,n)&&Z(t,e,n)&&G(e)&&(!yt(t)&&!ht(t)||Q(t,n))},ct=function(t){var e=t.detect,n=[P,O,m];return(e.vulcanSupport||e.iphone||e.ipad||e.android)&&n.push(E),e.video.h264&&n.push(b),n},dt=function(t,e){for(var n=[],i=ct(t),r=0;r<i.length;r++){var o=i[r];M(t,o,e)&&n.push(o)}return n},ht=function(){return"function"!=typeof(window.URL&&window.URL.createObjectURL)},ft=/\s*function\s+XMLHttpRequest\(\)\s*{\s*\[native code\]\s*}\s*/m,pt=/\[object XMLHttpRequestConstructor\]/m,yt=function(){if(XMLHttpRequest&&XMLHttpRequest.prototype&&XMLHttpRequest.prototype.constructor){var t=XMLHttpRequest.prototype.constructor.toString();return!(ft.test(t)||pt.test(t))}return!0}},(t,e,n)=>{n.d(e,{optionsFromElemClass:()=>a});var i=n(5),r=n(24),o=n(6),a=function(t){var e=[];(0,i.elemClasses)(t).forEach((function(t){t.indexOf("=")>0&&e.push(t)}));var n=(0,r.queryParamsToObject)(e.join("&"));return(0,o.cast)(n)}},(t,e,n)=>{n.r(e),n.d(e,{GLOBAL_ID_KEY:()=>s,OPTION_PREFIX:()=>a,getEmbedOptionStore:()=>u,getOrSetEmbedOptionStore:()=>c,setEmbedOptionStore:()=>l});var i=n(6),r=n(87),o=n(88),a="wistia_embed_options_",s="__global__",u=function(t){if(void 0!==(0,r.wData)([a,t]))return(0,r.wData)([a,t]);var e=(0,o.getOneApiHandle)(t);if(null===e||"removed"===e)return{};if(void 0!==(0,r.wData)(a)){var n=Object.keys((0,r.wData)(a)).find((function(t){return(0,o.getOneApiHandle)(t)===e}));if(void 0!==(0,r.wData)([a,n]))return(0,r.wData)([a,n])}return{}},l=function(t,e){return null!==e?(0,r.wData)([a,t],(0,i.cast)((0,i.clone)(e))):{}},c=function(t,e){var n=t,u=e;if((0,i.isObject)(n)&&"object"==typeof n&&(u=n,n=s),null!=u)return(0,r.wData)([a,n],(0,i.cast)((0,i.clone)(u)));if(void 0!==n){if(void 0!==(0,r.wData)([a,t]))return(0,r.wData)([a,t]);var l=(0,o.getOneApiHandle)(n);if(null===l||"removed"===l)return{};if(void 0!==(0,r.wData)(a)){var c=Object.keys((0,r.wData)(a)).find((function(t){return(0,o.getOneApiHandle)(t)===l}));if(void 0!==(0,r.wData)([a,c]))return(0,r.wData)([a,c])}return{}}return(0,r.wData)(a)}},(t,e,n)=>{n.r(e),n.d(e,{wData:()=>o,wRemoveData:()=>a});var i=n(3),r=n(6),o=function(t,e){return(0,r.isArray)(t)||(t=t.split(".")),null!=e&&(0,r.setDeep)(i.default,["_data"].concat(t),e),(0,r.getDeep)(i.default,["_data"].concat(t))},a=function(t){return(0,r.isArray)(t)||(t=t.split(".")),(0,r.unsetDeep)(i.default,["_data"].concat(t))}},(t,e,n)=>{n.d(e,{getAllApiHandlesByDomOrder:()=>c,getOneApiHandle:()=>l});var i=n(89),r=n(12),o=n(87);function a(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var u=function(){return(void 0===(0,o.wData)("video")?[]:Object.values((0,o.wData)("video"))).concat(void 0===(0,o.wData)("iframe_api")?[]:Object.values((0,o.wData)("iframe_api")))},l=function(t){var e,n,i;if(void 0===t)return null!==(i=u()[0])&&void 0!==i?i:null;var o=null;if("string"==typeof t){var a=t;if(null===(o=document.getElementById(a))){var s,l=u().find((function(t){var e,n;return null!==(e=t.hashedId())&&void 0!==e&&e.startsWith(a)||null!==(n=t.container)&&void 0!==n&&n.id.startsWith(a)?t:null}));if("removed"!==l)o=null!==(s=null==l?void 0:l.container)&&void 0!==s?s:null}}else if("number"==typeof t){var c=t,d=u();c<0&&(c=d.length+c);var h,f=d[c];if(void 0!==f&&"removed"!==f)o=null!==(h=f.container)&&void 0!==h?h:null}else t instanceof HTMLElement?o=t:r.wlog.error("Unrecognized matcher",t);return"WISTIA-PLAYER"===(null===(e=o)||void 0===e?void 0:e.tagName)?o.api:void 0!==(null===(n=o)||void 0===n?void 0:n.wistiaApi)&&"removed"!==o.wistiaApi?o.wistiaApi:null},c=function(){var t=Array.from((0,i.getAllApiEmbedElements)("wistia_embed_initialized")).reduce((function(t,e){return void 0!==e.wistiaApi&&"removed"!==e.wistiaApi&&t.push(e.wistiaApi),t}),[]),e=Array.from(document.querySelectorAll("wistia-player")).reduce((function(t,e){return void 0!==e.api&&"removed"!==e.api&&t.push(e.api),t}),[]);return[].concat(a(t),a(e))}},(t,e,n)=>{n.d(e,{getAllApiEmbedElements:()=>i});var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"wistia_embed",e=document.querySelectorAll("div.".concat(t,",span.").concat(t));return Array.from(e).map((function(t){var e;return"WISTIA-PLAYER"===(null===(e=t.lastChild)||void 0===e?void 0:e.nodeName)?t.lastChild:t}))}},(t,e,n)=>{n.d(e,{TranslationApi:()=>h});var i=n(92),r=n(91);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function a(t,e,n){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}function s(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,l(t,e,"get"))}function u(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,l(t,e,"set"),n),n}function l(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var c=new WeakMap,d=new WeakMap,h=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,c,{writable:!0,value:void 0}),a(this,d,{writable:!0,value:void 0}),u(this,d,e);var n=r.StopGo;u(this,c,new n),s(this,c).call(this,!0)}var e,n,l;return e=t,n=[{key:"container",get:function(){return s(this,d)}},{key:"addToPlaylist",value:function(t,e,n){var i,r;return null!==(i=null===(r=s(this,d).api)||void 0===r?void 0:r.addToPlaylist(t,e,n))&&void 0!==i?i:[]}},{key:"aspect",value:function(){return s(this,d).aspect}},{key:"bind",value:function(t,e){var n;return null===(n=s(this,d).api)||void 0===n?void 0:n.bind(t,e)}},{key:"cancelFullscreen",value:function(){var t=this;return s(this,c).synchronize((function(e){s(t,d).cancelFullscreen().then((function(){e()})).catch((function(){e()}))})),this}},{key:"duration",value:function(){return s(this,d).duration}},{key:"email",value:function(t){var e,n=this;return void 0===t?null!==(e=s(this,d).email)&&void 0!==e?e:null:(s(this,c).synchronize((function(e){s(n,d).email=t,e()})),this)}},{key:"embedded",value:function(t){var e=this;s(this,d).api?s(this,d).api.embedded(t):s(this,d).addEventListener("legacypublicapicreated",(function n(){var i;s(e,d).removeEventListener("legacypublicapicreated",n),null===(i=s(e,d).api)||void 0===i||i.embedded(t)}))}},{key:"eventKey",value:function(){return s(this,d).eventKey}},{key:"hasData",value:function(t){var e=this;s(this,d).api?s(this,d).api.hasData(t):s(this,d).addEventListener("legacypublicapicreated",(function n(){var i;s(e,d).removeEventListener("legacypublicapicreated",n),null===(i=s(e,d).api)||void 0===i||i.hasData(t)}))}},{key:"hashedId",value:function(){return s(this,d).mediaId}},{key:"height",value:function(){return s(this,d).offsetHeight}},{key:"inFullscreen",value:function(){return s(this,d).inFullscreen}},{key:"isMuted",value:function(){return s(this,d).muted}},{key:"mute",value:function(){var t=this;return s(this,c).synchronize((function(e){s(t,d).muted=!0,e()})),this}},{key:"name",value:function(){var t;return null!==(t=s(this,d).name)&&void 0!==t?t:null}},{key:"pause",value:function(){var t=this;return s(this,c).synchronize((function(e){s(t,d).pause().then((function(){e()})).catch((function(){e()}))})),this}},{key:"percentWatched",value:function(){return s(this,d).percentWatched}},{key:"play",value:function(){var t=this;return s(this,c).synchronize((function(e){s(t,d).play().then((function(){e()})).catch((function(){e()}))})),this}},{key:"playbackRate",value:function(t){var e=this;return void 0===t?s(this,d).playbackRate:(s(this,c).synchronize((function(n){s(e,d).playbackRate=t,n()})),this)}},{key:"ready",value:function(t){var e=this;s(this,d).api?s(this,d).api.ready(t):s(this,d).addEventListener("legacypublicapicreated",(function n(){var i;s(e,d).removeEventListener("legacypublicapicreated",n),null===(i=s(e,d).api)||void 0===i||i.ready(t)}))}},{key:"requestFullscreen",value:function(){var t=this;return s(this,c).synchronize((function(e){s(t,d).requestFullscreen().then((function(){e()})).catch((function(){e()}))})),this}},{key:"secondsWatched",value:function(){return s(this,d).secondsWatched}},{key:"secondsWatchedVector",value:function(){return s(this,d).secondsWatchedVector}},{key:"state",value:function(){return s(this,d).state}},{key:"time",value:function(t){var e=this;return void 0===t?s(this,d).currentTime:(s(this,c).synchronize((function(n){var i;null===(i=s(e,d).api)||void 0===i||i.bind("seeked",(function t(){var i;null===(i=s(e,d).api)||void 0===i||i.unbind("seeked",t),n()})),s(e,d).currentTime=t})),this)}},{key:"unbind",value:function(t,e){var n;return null===(n=s(this,d).api)||void 0===n||n.unbind(t,e),this}},{key:"unmute",value:function(){var t=this;return s(this,c).synchronize((function(e){s(t,d).muted=!1,e()})),this}},{key:"videoHeight",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.isNumber)(t)&&(null===(n=s(this,d).api)||void 0===n||n._impl.videoHeight(t,r)),null===(e=s(this,d).api)||void 0===e?void 0:e._impl.videoHeight()}},{key:"videoQuality",value:function(t){var e=this;return void 0===t?s(this,d).videoQuality:(s(this,c).synchronize((function(n){s(e,d).videoQuality=t,n()})),this)}},{key:"videoWidth",value:function(t){var e,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.isNumber)(t)&&(null===(n=s(this,d).api)||void 0===n||n._impl.videoWidth(t,r)),null===(e=s(this,d).api)||void 0===e?void 0:e._impl.videoWidth()}},{key:"visitorKey",value:function(){var t;return null!=(null===(t=window.Wistia)||void 0===t?void 0:t.visitorKey.value())?window.Wistia.visitorKey.value():null}},{key:"volume",value:function(t){var e=this;return void 0===t?s(this,d).volume:(s(this,c).synchronize((function(n){s(e,d).volume=t,n()})),this)}},{key:"width",value:function(){return s(this,d).offsetWidth}}],n&&o(e.prototype,n),l&&o(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n.d(e,{StopGo:()=>i});var i,r=n(30);(function(){var t=[].slice;i=function(){function e(){var t;return this._queue=[],this._green=!1,this._lock=!1,this.allInOne=(t=this,function(){return t._allInOne.apply(t,arguments)}),this.defineMethodsOn(this.allInOne),this.allInOne}return e.prototype.defineMethodsOn=function(t){var e,n,i,r;for(n in e={},this,i=[],this)r=this[n],i.push(function(n,i,r){if("[object Function]"===e.toString.call(i))return t[n]=function(){return r[n].apply(r,arguments)}}(n,r,this));return i},e.prototype.flush=function(){var e,n;if(e=arguments.length>=1?t.call(arguments,0):[],!this._green)return this;for(this._lock=!0;this._queue.length>0&&(n=this._queue.shift(),e.length||!this.goArgs?this.tryAndReport((function(){return n.apply(null,e)})):this.tryAndReport(function(t){return function(){return n.apply(null,t.goArgs)}}(this)),!this._block&&this._green););return this._lock=!1,this},e.prototype._debug=function(){return"undefined"!=typeof console&&null!==console?console.log.apply(console,arguments):void 0},e.prototype.synchronize=function(){var e,n,i,r;for(i=0,r=(n=arguments.length>=1?t.call(arguments,0):[]).length;i<r;i++)e=n[i],this.synchronizeFn(e);return this},e.prototype.synchronizeFn=function(t){var e,n,i,r;return n=null,r=this,e=function(){return clearTimeout(n),r._block=!1,r.go()},i=function(n){return function(){return n._block=!0,n.stop(),t(e)}}(this),n=setTimeout(function(n){return function(){return n._debug("StopGo#synchronize timed out",t),e()}}(this),5e3),this.runFn(i),this},e.prototype.tryAndReport=function(t){var e;try{return t()}catch(t){return(e=t).stack?("undefined"!=typeof console&&null!==console&&console.log(e.message),"undefined"!=typeof console&&null!==console?console.log(e.stack):void 0):"undefined"!=typeof console&&null!==console?console.log(e):void 0}},e.prototype.clearSynchronized=function(){return this.setQueue([]),this._block=!1,this._green=!0},e.prototype.filter=function(t){var e;return this._queue=function(){var n,i,r,o;for(o=[],n=0,i=(r=this._queue).length;n<i;n++)e=r[n],t(e)&&o.push(e);return o}.call(this),this},e.prototype.push=function(t){return this._queue.push(t),this},e.prototype.go=function(){var e;return e=arguments.length>=1?t.call(arguments,0):[],this._green=!0,this.goArgs=e,this.flush.apply(this,e),this},e.prototype.stop=function(){return this._green=!1,this},e.prototype.run=function(){var e,n,i,r;for(i=0,r=(n=arguments.length>=1?t.call(arguments,0):[]).length;i<r;i++)e=n[i],this.runFn(e);return this},e.prototype.then=function(){return this.run.apply(this,arguments)},e.prototype.runFn=function(t){return this._green&&!this._block?this._lock?this.tryAndReport(t):(this.push(t),this.flush()):this.push(t),this},e.prototype.remove=function(){var e,n,i,r;for(i=0,r=(n=arguments.length>=1?t.call(arguments,0):[]).length;i<r;i++)e=n[i],this.removeFn(e);return this},e.prototype.removeFn=function(t){return this.filter((function(e){return t!==e})),this},e.prototype.setQueue=function(t){return this._queue=t,this},e.prototype.getQueue=function(){return this._queue},e.prototype._allInOne=function(){var e,n;return e=arguments[0],n=arguments.length>=2?t.call(arguments,1):[],!0===e?this.go.apply(this,n):!1===e?this.stop():null!=e?e instanceof Array?this.run.apply(this,e):"string"==typeof e?this[e].apply(this,n):this.run.apply(this,arguments):this._green},e}(),i.when=function(){var e,n,r,o,a,s,u,l;for(l=arguments.length>=1?t.call(arguments,0):[],s=new i,r=function(){return s.go.apply(s,arguments)},e=function(t,e){return r=function(){return e((function(){return t.apply(null,arguments)}))}},n=0,o=(a=l.reverse()).length;n<o;n++)u=a[n],e(r,u);return r(),s},i._drainStopGosAsync=function(t,e,n){var o;if(null==n&&(n=0),!(e.length<1))return(o=e.shift()).run((function(){return i._drainStopGosAsync(t,e,n+1)})),(0,r.doTimeout)("".concat(t,".").concat(n),(function(){return o.go()}),0),o}}).call(void 0)},(t,e,n)=>{n.d(e,{isNumber:()=>i});const i=t=>"number"==typeof t},(t,e,n)=>{!function(t){var e,i,r,o,a,s,u,l,c,d,h,f,p,y,v,m,g,b;if(!t.embeds)t.embeds={},i=n(91).StopGo,b=n(12).wlog,h=n(8).onDocReady,o=n(94).asyncChain,g=n(48).throttle,(p=n(5)).elemClasses,s=p.elemHasClass,u=p.elemMutationObserver,n(24).queryParamsToObject,a=n(30).clearTimeouts,(y=n(6)).cast,d=y.isObject,r=y.assign,y.clone,f=n(85).optionsFromElemClass,l=n(89).getAllApiEmbedElements,c=(v=n(86)).getOrSetEmbedOptionStore,m=v.setEmbedOptionStore,e=v.GLOBAL_ID_KEY,n(90).TranslationApi,t.embeds.setup=function(e){return t.embeds.notEmbedding((function(){var n;if(h(n=function(){var n,i,r,a,s,u,l,c,d;t.embeds.notEmbedding(!1),a=[];try{for((e=t.embeds.uninitialized(e))&&e.length&&e.length>0&&t.info("initializing",null!=e?e.length:void 0,"embedElems"),u=0,l=e.length;u<l;u++){r=e[u];try{if(t.info("initializing elem",r),s=t.embeds.hashedIdForElem(r,{asyncOnly:!0}),!document.body.contains(r))continue;r.id?document.getElementById(r.id)!==r&&(c=t.embeds.genIdFor(s),t.error('Duplicate DOM ID found for container "'+r.id+'". Changing it to "'+c+'" to avoid issues.',r),r.id=c):r.id=t.embeds.genIdFor(s),d=f(r),m("__"+r.id+"_dom_options__",d),function(e,n){a.push((function(){if(!t.embeds.containerIsInitialized(n))return t.embed(e,{container:n.id})}))}(s,r)}catch(e){n=e,t.error(n)}}}catch(e){i=e,t.error(i)}return a.push((function(){return t.watchForInit()})),a.push((function(){return t.embeds.notEmbedding(!0)})),o("embeds_setup",a)}),0===t.detect.ios.version&&!t.detect.safari)return n()}))},t.embeds._setupThrottled=g(500,t.embeds.setup),t.embeds.hashedIdForElem=function(t,e){var n,i,r,o,a,s;return null==e&&(e={}),e.asyncOnly?(null!=(n=t.className)&&null!=(i=n.match(/wistia_async_([^\s]+)/))?i[1]:void 0)||null:(null!=(r=t.className)&&null!=(o=r.match(/wistia_async_([^\s]+)/))?o[1]:void 0)||(null!=(a=t.className)&&null!=(s=a.match(/wistia_([^\s]+)/))?s[1]:void 0)||null},t.embeds.genIdFor=function(t){var e,n,i;for(e="wistia-"+t,i=1;n=e+"-"+i,document.getElementById(n);)i+=1;return n},t.options=c,t.embeds.uninitialized=function(e){var n,i,r,o;for(null==e&&(e=l()),o=[],i=0,r=e.length;i<r;i++)n=e[i],t.embeds.hashedIdForElem(n,{asyncOnly:!0})&&!t.embeds.containerIsInitialized(n)&&o.push(n);return o},t.embeds.containerIsInitialized=function(e){return e&&(e.wistiaApi||e._convertingToAurora)&&!(e.wistiaApi instanceof t.IframeApiProxy)},t.embeds.initialized=function(e){var n,i,r,o;for(o in r=[],i=t._data.video)n=i[o],r.push(n);return r},t.embeds.observe=function(){var e,n;if(!t.embeds.initObserver){if(t.embeds.initObserver=u((function(e){var n,i,r,o,a,u,l,c,d,h;for(i=[],n=!1,r=0,a=e.length;r<a;r++)for((null!=(d=(l=e[r]).addedNodes)?d.length:void 0)>0&&(n=!0),o=0,u=(h=l.addedNodes||[]).length;o<u;o++)c=h[o],s(c,"wistia_embed")&&i.push(c);if(i.length>0&&setTimeout((function(){return t.embeds.setup(i)}),10),n)return t.embeds._setupThrottled()})),e={subtree:!0,childList:!0},t.detect.ios.version>0||t.detect.safari)return h((function(){return t.embeds.initObserver.observe(document.body,e)}));try{return t.embeds.initObserver.observe(document.body,e)}catch(i){return n=i,b.notice(n),h((function(){try{return t.embeds.initObserver.observe(document.body,e)}catch(t){return n=t,b.error(n)}}))}}},t.embeds.unobserve=function(){var e;return null!=(e=t.embeds.initObserver)&&e.disconnect(),t.embeds.initObserver=null},t.embeds.poll=function(e){return null==e&&(e=500),t.eventLoop.add("poll_setup_embeds",e,(function(){return t.embeds.setup()}))},t.embeds.unpoll=function(){var e;return null!=(e=t.eventLoop)?e.remove("poll_setup_embeds"):void 0},t.embeds.watch=function(){return t.embeds._dontWatch=!1,t.detect.mutationObserver?(t.embeds.observe(),t.embeds.poll(2e3)):t.embeds.poll()},t.embeds.dontWatch=function(){return t.embeds._dontWatch=!0,t.embeds.unwatch()},t.embeds.unwatch=function(){return t.embeds.unobserve(),t.embeds.unpoll()},t.flushInit=function(){var e,n,i,r;if(window.wistiaInit){if(wistiaInit instanceof Array)for(i=0,r=wistiaInit.length;i<r;i++){n=wistiaInit[i];try{"function"==typeof n&&n(t)}catch(t){e=t,b.error(e)}}else"function"==typeof wistiaInit&&wistiaInit(t);return window.wistiaInit=null}},t.addQueue=function(e){return t._queueNames.push(e),t.watchForInit()},t._queueNames=["_wq","wistiaInitQueue"],t._wqBoundListeners=[],t.flushInitQueue=function(){var n,i,r,o,a,s,u,l,c,h,f,p,y,v,g;if(!t._isFlushingInitQueue){t._isFlushingInitQueue=!0;try{for(n=function(t){return t.translationApi?t.translationApi:t},v=t._queueNames,s=0,c=v.length;s<c;s++)if(p=v[s],(f=window[p])&&f instanceof Array&&f.length>0){for(a=[];f.length>0;)if(g=f.shift(),d(g))if(g.revoke&&t.revokeQueueListener(g.revoke),g.__unbinds||(g.__unbinds=[]),g.id)y=!1,g.options&&("_all"===g.id?(m(e,g.options),y=!0):(m(g.id,g.options),y=!0)),function(e){var i,r;r="_all"===e.id?[]:[e.id],e.onFind&&(i=r.concat([function(t){return e.onFind(n(t))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,i)),y=!0),e.onHasData&&(i=r.concat([function(t){return t.hasData((function(){return e.onHasData(n(t))}))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,i)),y=!0),e.onEmbedded&&(i=r.concat([function(t){return t.embedded((function(){return e.onEmbedded(n(t))}))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,i)),y=!0),e.onReady&&(i=r.concat([function(t){return t.ready((function(){return e.onReady(n(t))}))}]),e.__unbinds=e.__unbinds.concat(t.api.apply(t,i)),y=!0),y?t._wqBoundListeners.push(e):t.error("No initialization function provided for ID "+e.id,e)}(g);else for(l in o=function(i,r,o){var s,u;return"function"==typeof o?(u=function(t){return t.hasData((function(){return o(n(t))}))},s=function(){return i.__unbinds="_all"===r?i.__unbinds.concat(t.api(u)):i.__unbinds.concat(t.api(r,u)),t._wqBoundListeners.push(i)},a.push(s)):d(o)?(s="_all"===r?function(){return m(e,o)}:function(){return m(r,o)},a.push(s)):"__unbinds"!==r&&"revoke"!==r?t.error("Unknown initialization object:",o,"Expected Object or Function."):void 0},g)o(g,l,g[l]);else"function"==typeof g?function(e){var n;n=function(){return e(t)},a.push(n)}(g):t.notice(p+": Don't know what to do with "+g+", ignoring.");for(u=0,h=a.length;u<h;u++){r=a[u];try{"function"==typeof r&&r(t)}catch(t){i=t,b.error(i)}}f.length=0}}catch(t){i=t,b.error(i)}return t._isFlushingInitQueue=!1}},t.getInitQueueListeners=function(){return r([],t._wqBoundListeners)},t.revokeQueueListener=function(e){var n,i,r,o,a,s,u,l;for(s=[],n=0,r=(u=e instanceof Array?e:[e]).length;n<r;n++){if((e=u[n]).__unbinds){for(i=0,o=(a=e.__unbinds).length;i<o;i++)"function"==typeof(l=a[i])&&l();delete e.__unbinds}s.push(t._wqBoundListeners=t._wqBoundListeners.filter((function(t){return t!==e})))}return s},t.watchForInit=function(){if(null==t._pollInit&&(t._pollInit=function(){return t.flushInitQueue(),t.flushInit()}),t._pollInit(),t.eventLoop)return t.eventLoop.unpause("poll_init"),t.eventLoop.add("poll_init",500,t._pollInit)},t.api=function(e,n){var i,r,o,a,s,u,l,c,d,h,f;if(null!=e){if(n)return t.api.onFind(e,n);if("function"==typeof e)return t.api.onFind(e);if("string"==typeof e){if(c=e,!(o=document.getElementById(c)))for(u=0,l=(r=t.api.all()).length;u<l;u++)if(0===(null!=(d=(a=r[u]).hashedId())?d.indexOf(c):void 0)||0===(null!=(h=a.container.id)?h.indexOf(c):void 0)){o=a.container;break}}else"number"==typeof e?(s=e,i=t.api.all(),s<0&&(s=i.length+s),o=(null!=(f=i[s])?f.container:void 0)||null):window.HTMLElement&&e instanceof HTMLElement?o=e:t.error("W.api: Unrecognized matcher",e);return(null!=o?o.wistiaApi:void 0)&&(o.wistiaApi instanceof t.PublicApi||t.IframeApi&&o.wistiaApi instanceof t.IframeApi)?o.wistiaApi:"WISTIA-PLAYER"===(null!=o?o.tagName:void 0)&&(null!=o?o.translationApi:void 0)?o.translationApi:null}return t.api.all()[0]||null},t.api.all=function(){return t.api._apiHandles().concat(t.api._iframeHandles())},t.api._apiHandles=function(){return t.embeds.initialized()},t.api._iframeHandles=function(){var e,n,i,r;for(r in i=[],n=t._data.iframe_api)e=n[r],i.push(e);return i},t.api.onFind=function(e,n){var i,r;return"function"==typeof e&&(n=e,e=null),i=function(i){return(null===e||t.api(e)===i)&&(n(i),!0)},wistiaEmbeds.each(i),r=[wistiaEmbeds.on("initembed",i),wistiaEmbeds.on("afterreplace",i)],function(){var t,e,n,i;for(n=[],t=0,e=r.length;t<e;t++)i=r[t],n.push(i());return n}},t._asyncInitSoonAfterLoad=function(e){return null==e&&(e=10),setTimeout((function(){var e;try{return t.embeds.setup(),t.embeds._dontWatch||t.embeds.watch(),t.watchForInit()}catch(t){return e=t,b.error(e)}}),e)},t._initializers.initAsyncEmbeds=function(){var e,n,r;return t.embeds.notEmbedding=new i,t.embeds.notEmbedding(!0),null==t._data&&(t._data={}),null==(e=t._data).video&&(e.video={}),null==(n=t._data).iframe_api&&(n.iframe_api={}),window._inWistiaIframe?setTimeout((function(){return t.watchForInit()}),10):(t._asyncInitSoonAfterLoad(),t._asyncInitSoonAfterLoad(500),null!=(r=t.eventLoop)?r.pause("poll_init"):void 0)},t._destructors.destroyAsyncEmbeds=function(){var e,n;return a("embeds_setup"),null!=(e=t.eventLoop)&&e.remove("poll_init"),null!=(n=t.embeds)?n.unwatch():void 0}}(Wistia)},(t,e,n)=>{n.d(e,{asyncChain:()=>u});var i=n(91),r=n(12),o=n(30);function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var u=function(t,e){var n,s=[],u=a(e);try{for(u.s();!(n=u.n()).done;){!function(t){s.push((new i.StopGo).run((function(){try{return t()}catch(t){return r.wlog.error(t)}})))}(n.value)}}catch(t){u.e(t)}finally{u.f()}var l=s[s.length-1];i.StopGo._drainStopGosAsync(t,s);var c=new i.StopGo;return l.then((function(){return(0,o.doTimeout)("".concat(t,".last"),(function(){return c.go()}),0)})),c}},(t,e,n)=>{var i=n(12),r=n(87),o=n(30),a=n(20);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function u(t){var e=d();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){var e="function"==typeof Map?new Map:void 0;return l=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return c(t,arguments,f(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),h(i,t)},l(t)}function c(t,e,n){return c=d()?Reflect.construct.bind():function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&h(r,n.prototype),r},c.apply(null,arguments)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}!function(t){if(!t.EmbedListener)t.EmbedListener=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(f,e);var n,l,c,d=u(f);function f(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(t=d.call(this)).uuid=(0,a.seqId)(),t.logger=i.wlog.getPrefixedFunctions("EmbedShepherd"),t.bindHandles(),t.bind("down",(function(){return t.logger.info("got down event, prune and rebind handles"),(0,o.doTimeout)("prune_zombies_later",(function(){return t.pruneZombies(),t.bindHandles()}))})),t.bind("up",(function(e){return t.logger.info("got up event, set _bound=false for",e),e._bound=!1,t.bindHandles()})),t}return n=f,(l=[{key:"bindHandles",value:function(){var t=this,e=this.allUnboundHandles();return this.logger.info("bindHandles",e),function(){for(var n=[],i=0,r=Array.from(e);i<r.length;i++){var o=r[i];t.logger.info("bind to all events for",o),o._bound=!0,n.push(t.push(o))}return n}()}},{key:"pruneZombies",value:function(){var t,e=this;this.logger.info("pruneZombies");for(var n=[],i=0,r=Array.from(this.allBoundHandles());i<r.length;i++)(t=r[i]).looksDown()?this.logger.info("prune zombie",t):n.push(t);for(var o=0,a=this.length,s=a>=0;s?o<=a:o>=a;s?o++:o--)delete this[o];return this.length=0,function(){for(var i=[],r=0,o=Array.from(n);r<o.length;r++)t=o[r],i.push(e.push(t));return i}()}},{key:"allBoundHandles",value:function(){for(var t=[],e=0,n=Array.from(this.allHandles());e<n.length;e++){var i=n[e];i._bound&&t.push(i)}return t}},{key:"allUnboundHandles",value:function(){for(var t=[],e=0,n=Array.from(this.allHandles());e<n.length;e++){var i=n[e];i._bound||t.push(i)}return t}},{key:"allHandles",value:function(){return this.apiHandles().concat(this.iframeApiHandles())}},{key:"iframeApiHandles",value:function(){this.iframes||(this.iframes=document.getElementsByTagName("iframe"));for(var e=[],n=0,i=Array.from(this.iframes);n<i.length;n++){var r=i[n];!r.wistiaApi||r.wistiaApi instanceof t.IframeApiProxy||"removed"===r.wistiaApi||e.push(r.wistiaApi)}return e}},{key:"apiHandles",value:function(){var t=[];if(window.Wistia){var e=(0,r.wData)("video");for(var n in e){var i=e[n];t.push(i)}}return t}},{key:"each",value:function(t){return Array.from(this.allBoundHandles()).map((function(e){return t(e)}))}},{key:"onFind",value:function(t){var e=this,n=function(n){return n.up((function(){return e.logger.info("onFind",n),t(n),n.unbind}))};return this.each(n),this.bind("initembed",n)}}])&&s(n.prototype,l),c&&s(n,c),Object.defineProperty(n,"prototype",{writable:!1}),f}(l(Array)),t.mixin(t.EmbedListener.prototype,t.bindable),t._initializers.initEmbedShepherd=function(){var e,n,r,o;window.wistiaEmbeds?(i.wlog.info("EmbedShepherd window.wistiaEmbeds already exists, call bindHandles"),null===(r=(o=window.wistiaEmbeds).bindHandles)||void 0===r||r.call(o)):(i.wlog.info("EmbedShepherd initialize embed shepherd"),window.wistiaEmbeds=new t.EmbedListener);return i.wlog.info("EmbedShepherd call window.wistiaEmbedShepherdReady()"),null===(e=(n=window).wistiaEmbedShepherdReady)||void 0===e?void 0:e.call(n)},t._destructors.destroyEmbedShepherd=function(){var t;return null===(t=window.wistiaEmbeds)||void 0===t||t.each((function(t){return t._bound=!1})),window.wistiaEmbeds=null}}(window.Wistia)},(t,e,n)=>{var i,r=n(42),o=n(97);(i=window.Wistia).mux||(i.mux={}),i._initializers.initMux=function(){if(!i.mux._setup){var t,e=window.crypto||window.msCrypto;if(void 0!==e)t=e.getRandomValues(new Uint32Array(1))[0]/4294967296>=.1;else{var n=Math.random();t=Number(n>=.1)}t?i.mux._disabled=!0:(i.mux._setup=!0,i.mux._disabled=!1,(0,o.onFindApiHandle)(o.ALL_API_HANDLES_KEY,(function(t){var e=function(){return window.wistiaDisableMux};e()||i.mux._disabled||t.iframe||t._opts&&!1===t._opts.mux||(0,r.dynamicImport)("assets/external/wistia-mux.js").then((function(n){t.embedded((function(){e()||n.init(t)}))}))})))}},i._destructors.destroyMux=function(){i.mux._disabled=!0;for(var t=i.api.all(),e=0;e<t.length;e++){var n;null===(n=t[e].mux)||void 0===n||n.destroy()}}},(t,e,n)=>{n.d(e,{ALL_API_HANDLES_KEY:()=>f,onFindApiHandle:()=>b});var i=n(9),r=n(88),o=n(89),a=n(5),s=n(8),u=n(12);function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var d="initembed",h="afterreplace",f="_all",p=null,y=[],v=[],m=function(t,e){var n,i,r=null!==(n=null!==(i=t.wistiaApi)&&void 0!==i?i:t.api)&&void 0!==n?n:null;null!==r&&"removed"!==r&&e(r)},g=function(t,e){return t.addEventListener(d,e),t.addEventListener(h,e),[function(){return t.removeEventListener(d,e)},function(){return t.removeEventListener(h,e)}]},b=function(t,e){var n=function(n){return(t===f||(0,r.getOneApiHandle)(t)===n)&&(e(n),!0)},c=function(t){var n=t.detail.api;"removed"!==n&&e(n)};y.push(n),v.push(c),null===p&&(p=(0,a.elemMutationObserver)((function(t){t.forEach((function(t){t.addedNodes.forEach((function(t){if("WISTIA-PLAYER"===t.tagName||(0,a.elemHasClass)(t,"wistia_embed")){var e=t;y.forEach((function(t){m(e,t)})),v.forEach((function(t){g(e,t)}))}}))}))})),(0,s.onDocReady)((function(){if(null!==p)try{p.observe(document.body,{subtree:!0,childList:!0})}catch(t){u.wlog.error(t)}})));var d=function(){var t=function(t,e){var n=Array.from((0,o.getAllApiEmbedElements)()),i=Array.from(document.getElementsByTagName("wistia-player"));return n.concat(i).reduce((function(n,i){return m(i,t),[].concat(l(n),l(g(i,e)))}),[])}(n,c);return function(){return t.map((function(t){return t()}))}};d(),(0,i.poll)(s.isDocReady,d,300,1e4)}},(t,e,n)=>{n(99),n(139),n(140),n(217);window.Wistia.wistia=Date.now()},(t,e,n)=>{n(14),n(13),n(100),n(101),n(102),n(119),n(121),n(122),n(123),n(127),n(129),n(130),n(131),n(132),n(112),n(133),n(134),n(135),n(136),n(138)},(t,e,n)=>{var i=n(12),r=n(24);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}!function(t){var e=window.Wistia;if(!e.wlog)e.wlog=i.wlog,e.log=i.wlog.error,e.error=i.wlog.error,e.warn=i.wlog.warn,e.notice=i.wlog.notice,e.info=i.wlog.info,e.debug=i.wlog.debug,e.logLevels=i.LOG_LEVELS,e.stacktrace=function(){try{throw new Error("stacktrace")}catch(t){return t.stack}},e.logHelpers={_log:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var a=e[t];return i=[].concat(this._logPrefix()).concat(i),a.apply(void 0,o(Array.from(i||[])))},_logPrefix:function(){return[this.constructor.name]},error:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["error"].concat(o(Array.from(e))))},warn:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["notice"].concat(o(Array.from(e))))},notice:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["notice"].concat(o(Array.from(e))))},info:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["info"].concat(o(Array.from(e))))},debug:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["debug"].concat(o(Array.from(e))))},log:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this._log.apply(this,["error"].concat(o(Array.from(e))))}},e._initializers.initWLog=function(){var t,e,n,o,a,s,u,l,c,d,h,f,p,y=(0,r.parseUrl)(location.href);if(document.referrer&&(h=(0,r.parseUrl)(document.referrer)),((d=null==y||null===(t=y.params)||void 0===t?void 0:t.wlog)||top!==self&&(d=null===(e=h)||void 0===e||null===(n=e.params)||void 0===n?void 0:n.wlog))&&i.wlog.setLevel(d),((f=null==y||null===(o=y.params)||void 0===o?void 0:o.wgrep)||(f=null===(a=h)||void 0===a||null===(s=a.params)||void 0===s?void 0:s.wgrep))&&i.wlog.setGrep(new RegExp(f,"i")),(p=null==y||null===(u=y.params)||void 0===u?void 0:u.wgrepv)||(p=null===(l=h)||void 0===l||null===(c=l.params)||void 0===c?void 0:c.wgrepv))return i.wlog.setGrepv(new RegExp(p,"i"))},e._destructors.destroyWLog=function(){return null===i.wlog||void 0===i.wlog?void 0:i.wlog.reset()}}()},(t,e,n)=>{var i,r=n(11);(i=window.Wistia)._initializers.initDetect=function(){if(!i.detect)return i.detect=(0,r.cachedDetect)()}},(t,e,n)=>{var i=function(t,e){return function(){return t.apply(e,arguments)}},r=[].slice;!function(t){var e,o,a,s,u,l,c,d,h,f,p,y,v,m,g,b,_,w,P,O,k,S,E,T,C,A,j,x,R,B,D,M,I,L,F,W,H,N,V,U,q,z,K,G,Q,Y,X,$,Z,J,tt,et,nt,it,rt,ot,at,st,ut,lt,ct,dt,ht,ft,pt,yt,vt,mt,gt,bt,_t,wt,Pt,Ot,kt,St,Et,Tt,Ct,At,jt,xt,Rt,Bt,Dt,Mt,It,Lt,Ft,Wt;if(!(l=t).PublicApi)o=n(84),a=n(91).StopGo,Tt=n(4).default,ht=n(103),lt=ht.pluginScriptsToLoad,K=ht.getPluginsNotInList,dt=n(104).prefetchEngineAndPlugins,ft=n(105),Z=ft.injectJsonLd,Et=ft.removeInjectedJsonLd,(gt=n(24)).proto,ut=gt.parseUrl,u=gt.Url,bt=n(87),Ft=bt.wData,Wt=bt.wRemoveData,_t=n(30),m=_t.doTimeout,p=_t.clearTimeouts,wt=n(68),Rt=wt.secondsToIso8601Time,xt=wt.secondsToIso8601Duration,Pt=n(67),V=Pt.formattedDurationToSeconds,Pt.isValidDurationString,Pt.durationStringToSeconds,Bt=n(20).seqId,d=n(7).default,Ot=n(6),y=Ot.clone,at=Ot.merge,tt=Ot.isEmpty,f=Ot.cast,Dt=Ot.setDeep,q=Ot.getDeep,et=Ot.isObject,kt=n(34),v=kt.countMetric,Ct=kt.sampleMetric,ct=n(48).poll,W=n(108).extractEmailFromParams,X=n(109).inferPageUrl,G=n(110).getViewerPreferences,g=n(42).dynamicImport,n(111).getChannelStorage,nt=n(112).maybeLoadAndSetupEmbedLinksThrottled,$=n(113).inferQualityRangeFromOpts,U=n(114).generateRelativeBlockCss,St=n(86),z=St.getEmbedOptionStore,e=St.GLOBAL_ID_KEY,pt=n(21),H=pt.fetchMedia,ot=pt.mediaDataUrl,it=pt.mediaDataScriptRegExp,It=pt.transformResponse,h=pt.cacheMedia,c=pt.abTestMediaSelector,N=n(18).findScriptInDomBySrc,At=n(115).sanePlayerColor,s=n(90).TranslationApi,l.Judy=o,l.Assets=n(33),yt=n(5),w=yt.elemAddClass,yt.elemAfter,P=yt.elemAnimate,O=yt.elemAppend,k=yt.elemBefore,S=yt.elemFromObject,E=yt.elemHasClass,T=yt.elemHeight,C=yt.elemInDom,A=yt.elemIsHidden,j=yt.elemOffset,yt.elemPrepend,x=yt.elemRebind,R=yt.elemRemove,B=yt.elemStyle,D=yt.elemUnbind,M=yt.elemUnbindAll,I=yt.elemUnbindAllInside,L=yt.elemWidth,Y=yt.inUserEventContext,jt=n(116).scrollTop,vt=n(23),_=vt.eV1Protocol,b=vt.eV1HostWithPort,Q=n(13).globalTrigger,Lt=n(117).uniqId,n(48).throttle,mt=n(118),J=mt.insertIntoArray,Mt=mt.toArray,rt=n(32).mediaDataTransforms,F=n(54).default,l.PublicApi=function(){function t(t,e){var n,r,o,s;this._definePluginMethod=i(this._definePluginMethod,this),this._doResize=i(this._doResize,this),this._doMonitor=i(this._doMonitor,this),this._initWithMediaData=i(this._initWithMediaData,this),this._allocEmbedSlot=i(this._allocEmbedSlot,this),this.on("problem",(s=this,function(t){return t.video=s,Q("problem",t)})),this.info("initialize"),this._hasImpl=new a,this._notReplacing=new a,this._notReplacing(!0),this.hasPlugins=new a,this.up=new a,this.up(!0),this.down=new a,this.down(!1),this.inViewport=new a,this.inViewport(!1),this._implVersion=0,this._playlistIndex=0,this._attrs={},this.params={},this.options={},this.controls={},this._pluginStopGos={},this.plugins={},this.data={},this._definePluginMethod(),this.hashedId(t),this._givenOptions=e,this._playlist=[],this._setupContainer(),this._setupTranslationApiForLegacyEmbeds(),this._validate(),this._inferPropertiesBeforeMediaData(),this._dedupContainer(),this._addToGlobalCache(),this._setupBindings(),this.supportedPlayers=[],this.addToPlaylist(this.hashedId(),e),this.down(this.looksDown()),this.up(this.looksUp()),this._hasImpl(function(t){return function(){if(t._wvideoInUrl())return t._scrollToContainer(),t.popover?t.embedded((function(){return t.popover.showAndPlay()})):t.play()}}(this)),null!=(o=window.wistiaEmbeds)&&o.bindHandles(),this.monitor(),this.embedded(function(t){return function(){return t.monitor()}}(this)),this.ready(function(t){return function(){return t.monitor()}}(this)),n=function(e){return function(){return e._onInitializable((function(){return e._withFreeEmbedSlots((function(){var n,i,r,o,a;return e._initTime=(new Date).getTime(),e.hasData((function(){return e._hasDataTime=(new Date).getTime()})),e.embedded((function(){return e._embeddedTime=(new Date).getTime()})),e.ready((function(){return e._readyTime=(new Date).getTime(),e.removeSwatch()})),o=e._gatherOptions(),r=ot(t,e._gatherOptions()).replace(/\.json(?!p)/,".jsonp").replace(/&$/,""),i=N(r,{ignoreProtocol:!0,scriptRegex:it(t)}),o.mediaData?e._initWithMediaData(o.mediaData):i?(a=new u(r),n="wistiajsonp-"+a.relative(),ct((function(){return null!==Tt[n]&&void 0!==Tt[n]}),(function(){var i,r;return(r=Tt[n]).mediaType&&"ab-test"===r.mediaType?i=c(r,e._gatherOptions()):(i=It(r,e._gatherOptions()),h(t,i)),e._initWithMediaData(i)}),15,3e4)):H(e.hashedId(),e._gatherOptions()).then((function(t){return e._initWithMediaData(t)})).catch((function(){return v("player/failure/init-failed")}))}))}))}}(this),this._shouldBePopover()?(this.popover={show:function(t){return function(){return t._hasImpl((function(){return t.popover.show()}))}}(this),hide:function(t){return function(){return t._hasImpl((function(){return t.popover.hide()}))}}(this),height:function(t){return function(e,n){return null!=e?t._hasImpl((function(){return t.popover.height(e,n)})):0}}(this),width:function(t){return function(e,n){return null!=e?t._hasImpl((function(){return t.popover.width(e,n)})):0}}(this)},g("assets/external/popover.js").then(function(t){return function(){return t.popover=new l.Popover(t),n()}}(this))):n(),this.trigger("initembed"),this.container.dispatchEvent(new CustomEvent("initembed",{detail:{api:this}})),nt(),performance.mark("player_init_complete");try{Ct("player/initembed-latency",performance.measure("player_init_latency","player_init_start","player_init_complete").duration)}catch(t){r=t,setTimeout((function(){throw r}),0)}setTimeout(function(t){return function(){return t.container.dispatchEvent(new CustomEvent("legacypublicapicreated"))}}(this),0)}return t.prototype._defaultPlayerBorderRadius=function(){return this._opts.roundedPlayer?this._opts.roundedPlayer:this._opts.playerBorderRadius?this._opts.playerBorderRadius:0},t.prototype._defaultBigPlayButtonBorderRadius=function(){return this._opts.bigPlayButtonBorderRadius?this._opts.bigPlayButtonBorderRadius:this._opts.roundedPlayer?.75*this._opts.roundedPlayer:0},t.prototype._defaultControlBarBorderRadius=function(){return this._opts.controlBarBorderRadius?this._opts.controlBarBorderRadius:this._opts.roundedPlayer?.75*this._opts.roundedPlayer:this._opts.floatingControlBar?18:0},t.prototype._defaultControlBarDistance=function(){return this._opts.roundedPlayer?this._opts.roundedPlayer/4:this._opts.controlBarBorderRadius?this._opts.controlBarBorderRadius/2:this._opts.floatingControlBar?6:0},t.prototype._withFreeEmbedSlots=function(t){var e,n;return this._setupEmbedSlots(),e=null,this.embedded((n=this,function(){return clearTimeout(e),e=setTimeout((function(){return n._freeEmbedSlot()}),n._embedSlotThrottleInterval())})),null==this._freeEmbedSlotOnError&&(this._freeEmbedSlotOnError=function(t){return function(){return t._freeEmbedSlot(),t.unbind}}(this)),this.rebind("servererror",this._freeEmbedSlotOnError),l._embedSlotFree(function(n){return function(){return n._allocEmbedSlot(),e=setTimeout((function(){return n._freeEmbedSlot()}),1e3),t()}}(this))},t.prototype._onInitializable=function(t){return this.popover&&A(this.container)?(this.info("popover, delaying init until container is visible"),l.eventLoop.add(this.uuid+".wait_for_container_visible",500,(e=this,function(){var n;if(!A(e.container)){e.info("container became visible, initializing");try{t()}catch(t){n=t,l.error(n)}return l.eventLoop.remove}}))):t();var e},t.prototype._setupEmbedSlots=function(){if(null==l._embedSlots&&(l._embedSlots=[]),!l._embedSlotFree)return l._embedSlotFree=new a,l._embedSlotFree(!0)},t.prototype._maxEmbedSlots=function(){var t,e;return(e=function(){var e,n;for(t in n=[],e=Ft("video"))e[t],n.push(t);return n}().length)>20?5:e>10?8:13},t.prototype._embedSlotThrottleInterval=function(){return 500},t.prototype._freeEmbedSlot=function(){var t;if(this._setupEmbedSlots(),l._embedSlots=function(){var e,n,i,r;for(r=[],e=0,n=(i=l._embedSlots).length;e<n;e++)(t=i[e])!==this&&r.push(t);return r}.call(this),l._embedSlots.length<this._maxEmbedSlots())return l._embedSlotFree(!0)},t.prototype._allocEmbedSlot=function(){if(this._setupEmbedSlots(),l._embedSlots.push(this),l._embedSlots.length>=this._maxEmbedSlots())return l._embedSlotFree(!1)},t.prototype._shouldLazyLoad=function(){var t;return t=this._gatherOptions(),!window._inWistiaIframe&&parent===self&&(t.lazyLoad||this.popover&&!1!==t.lazyLoad)},t.prototype._initWithMediaData=function(t){var e,n,i,r,a,s;this.info("_initWithMediaData",t);try{0===l.Player.assets(t,{public:!0}).length&&l.Metrics.videoCount(this,"player/no-public-assets")}catch(t){e=t,this.debug(e)}if(!this.isRemoved())return t.error?(this.notice("display error message from server"),this._displayServerError(t),void this.trigger("servererror")):(this.hashedId(t.hashedId),this._originalMediaData=y(t),this._mediaData=t,this._mediaData=rt(t,this._gatherOptions()),this.data.media=t,r=this._optionSources(),this.info("_optionSources",r),(null!=(a=r.inline)?a.container:void 0)instanceof HTMLElement&&(r.inline=d({},r.inline,{container:r.inline.container.id||"container-with-no-id"})),v("option-sources",1,{optionSources:r,hashedId:this._hashedId,url:window.location.href}),this._opts=this._gatherOptions(),this.info("_opts",y(this._opts)),at(this._mediaData,this._opts.mergeMediaData),this._inferPropertiesAfterMediaData(),i=o.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=o.playerPlugins(this.judyCtx(),i,this._mediaData,this._opts),o.logWarnings(this.judyCtx(),i,this._mediaData,this._opts),this._implVersion+=1,n=this._implVersion,this._execPlugins().then((s=this,function(){var t,e,r;if(s._implVersion===n){s.hasPlugins(!0),e=l.PublicApi.classFor(i),s.supportedPlayers=o.supportedPlayers(s.judyCtx(),s._mediaData.assets);try{s._impl=new e(s).init()}catch(n){throw t=n,s.error("Failed to initialize impl of class",e,"preferred",i,"supported",s.supportedPlayers),t}return s.grid=s._impl.setupGrid({initDimensions:!1}),s._hasImpl(!0),s.hasData(!0),(null!=(r=s._embedContainer)?r.parentNode:void 0)?(s._runMethodsFromOptions(),s._impl.embed(),s._getFadeInTime()>0&&B(s._impl.gridChildren(),{opacity:0}),s._impl.embedded((function(){return s._getFadeInTime()>0?P(s._impl.gridChildren(),{opacity:1},{time:s._getFadeInTime(),callback:function(){return s.trigger("transitiondone")}}):s.trigger("transitiondone")})),m(s.uuid+".prefetch_next_media",(function(){return s.prefetchNextMedia()}),2e3),s._injectJsonLd()):s.notice("embed(): container removed, giving up")}s.notice("_initWithMediaData(): impl changed from",n,"to",s._implVersion,"not completing init")})));this.notice("abort, video already removed")},t.prototype._getFadeInTime=function(){return null!=this._opts.fadeInTime?this._opts.fadeInTime:200},t.prototype.judyCtx=function(){return this._judyCtx||(this._judyCtx=o.buildContext({pageUrl:this._attrs.pageUrl}))},t.prototype._wvideoInUrl=function(){return!this._opts._inIframe&&ut(this._attrs.pageUrl).params.wvideo===this.hashedId()},t.prototype._scrollToContainer=function(){var t;return t=j(this.container),jt(t.top-100)},t.prototype._injectJsonLd=function(){if(this._jsonLdId&&Et(this._jsonLdId),"notplayable"!==this.playerType&&"passwordprotected"!==this.playerType&&!this._opts._inIframe&&!1!==this._attrs.seo)return this._jsonLdId="w-json-ld"+this._impl.uuid,Z(this._jsonLdId,this._mediaData,{videoWidth:this.videoWidth(),videoHeight:this.videoHeight(),embedOptions:this._opts})},t.prototype._setDeprecatedProperties=function(){return this.options=y(this._opts),this.params=y(this._opts),at(this.params,this._attrs),this._attrs.email&&(this.params.trackEmail=this._attrs.email),this._hasImpl((t=this,function(){var e;return t.playerType=t.embedType=null!=(e=t._impl)?e.playerType:void 0}));var t},t.prototype.elem=function(){var t;return null!=(t=this._impl)&&"function"==typeof t.elem?t.elem():void 0},t.prototype._execPlugins=function(){var t;return this._pluginScripts=lt(this._mediaData,this._opts,this._playerPlugins),l.plugin._setFnForDefinedPlugins(this,this._pluginScripts),(t=K(this._pluginScripts)).length>0&&v("custom-plugin-exec",1,{customPlugins:t,hashedId:this._hashedId,url:window.location.href}),this.info("_execPlugins",this._pluginScripts),l.plugin._execQueue(this,this._pluginScripts)},t.prototype._optionSources=function(t){var n,i,r,o,a,s,u,l;if(null==t&&(t={}),"v1"===(r=(t=at({givenOptions:y(this._givenOptions),mediaData:y(this._mediaData),hashedId:this._hashedId,container:this.container},t)).givenOptions).version?n={}:t.mediaData?delete(n=y(t.mediaData.embedOptions)).stillUrl:n={},a=F(["autoPlay","deliveryCdn","hls","techInfo"],this._inferPageUrl()),i={},u={customize:n,global:z(e),hashedId:z(t.hashedId),dom:z("__"+t.container.id+"_dom_options__"),container:z(t.container.id),inline:r,inferredOptions:i,viewerPreferences:G(),channelPreferences:r.channelPreferences||{},queryParamOptions:a,override:t.override||{}},r.optionSourceOverrides)for(o in s=r.optionSourceOverrides)l=s[o],u.hasOwnProperty(o)&&(u[o]=l);for(o in u)l=u[o],tt(l)&&delete u[o];return u},t.prototype._mergeSources=function(t,e){var n,i,r,o,a;for(n in i={},t)a=t[n],(null!=(r=e.only)?r.indexOf(n):void 0)>=0||(null!=(o=e.except)?o.indexOf(n):void 0)<0?at(i,a):e.only||e.except||at(i,a);return i},t.prototype._gatherOptions=function(t){var e,n;return null==t&&(t={}),n=this._optionSources(t),"v1"===(e=this._mergeSources(n,t)).version&&(n.customize={},e=this._mergeSources(n,t)),f(e),this._normalizeOptions(e),e},t.prototype.hashedId=function(t){return null!=t?(this._hashedId=t,this):this._hashedId},t.prototype.isAudio=function(){return"Audio"===this._mediaData.mediaType},t.prototype.isLiveMedia=function(){return"LiveStream"===this._mediaData.mediaType},t.prototype._normalizeOptions=function(t){return t.twitter&&(this.info("twitter detected"),q(t,"plugin.socialbar-v1")&&(this.info("disabled socialbar"),Dt(t,"plugin.socialbar-v1.on",!1))),null!=t.playButtonVisible&&(t.playButton=f(t.playButtonVisible),delete t.playButtonVisible),t},t.prototype._setupContainer=function(){var t,e,n,i;if(this._containerId=this._givenOptions.container?this._givenOptions.container:"wistia_"+this.hashedId(),"string"==typeof this._containerId?this.container=document.getElementById(this._containerId):this.container=this._containerId,this.container){for(this.container.wistiaApi=this,this._startingHtml=this.container.innerHTML,e=0,n=(i=Array.prototype.slice.call(this.container.childNodes)).length;e<n;e++)t=i[e],E(t,"wistia_swatch")||R(t);w(this.container,"wistia_embed_initialized")}else this.container=document.querySelector("[media-id='"+this._hashedId+"']");return this.info("container",this.container)},t.prototype._setupTranslationApiForLegacyEmbeds=function(){if(this.container&&"WISTIA-PLAYER"===this.container.tagName&&this.container.getAttribute("use-web-component"))return this.translationApi=new s(this.container),this.container.translationApi=this.translationApi},t.prototype._inferPropertiesBeforeMediaData=function(){var t;if(this.chrome=S({id:Bt("wistia_chrome_"),class:"w-chrome",style:U,tabindex:-1}),B(this.chrome,{outline:"none",overflow:"hidden",boxSizing:"content-box",mozBoxSizing:"content-box",webkitBoxSizing:"content-box"}),t=this._gatherOptions(),this._shouldBePopover()?(this._popoverContainer=S({role:"dialog",id:this.container.id+"_popover_container"}),l.detect.safari||l.detect.iphone||l.detect.ipad||this._popoverContainer.setAttribute("aria-modal",!0),this._embedContainer=S({id:this.container.id+"_popover",style:{height:this._popoverSize(t).height+"px",width:this._popoverSize(t).width+"px"}}),O(this._popoverContainer,this._embedContainer),O(document.body,this._popoverContainer)):this._embedContainer=this.container,O(this._embedContainer,this.chrome),t.uuid?this.uuid=t.uuid:this.uuid=Bt(),this.info("uuid",this.uuid),null!=t.playlistLoop&&(this._attrs.playlistLoop=t.playlistLoop),this._embedContainer)return this._attrs.startingWidth=L(this._embedContainer),this._attrs.startingHeight=T(this._embedContainer)},t.prototype._shouldBePopover=function(){var t;return!(t=this._gatherOptions())._inIframe&&(!0===t.popover||"v2"===t.popover)},t.prototype._popoverSize=function(t){var e,n,i,r,o;return null==t&&(t=this._opts),null==t&&(t={}),t.popoverSize?(o=(r=(null!=(i=t.popoverSize)?i.split("x"):void 0)||[640,360])[0],e=r[1],o=parseInt(o),e=parseInt(e)):this._mediaData&&(n=this.asset({container:"mp4",width:[0,960],sortBy:"width desc"}))?(o=n.width,e=n.height):(o=640,e=360),{width:o,height:e}},t.prototype._inferPropertiesAfterMediaData=function(){var t,e,n,i,r,o,a;return this._attrs.shouldTrack=!this._opts.doNotTrack,this._attrs.seekThreshold=this._opts.seekThreshold||1.5,i=(r=$(this._opts,this._mediaData))[0],n=r[1],this._attrs.qualityMin=i,this._attrs.qualityMax=n,this._opts.videoQuality&&v("legacy/video-quality-set",1,{hashedId:this._hashedId,videoQuality:this._opts.videoQuality,url:window.location.href}),this._attrs.qualityMax<this._attrs.qualityMin&&(this.error("qualityMax "+this._attrs.qualityMax+" is less than qualityMin "+this._attrs.qualityMin+". Setting qualityMax to "+this._attrs.qualityMin+"."),this._attrs.qualityMax=this._attrs.qualityMin),this._attrs.pageUrl||(this._attrs.pageUrl=this._inferPageUrl()),this._attrs.referrerUrl||(this._attrs.referrerUrl=(null!=(o=this._opts)?o.referrerUrl:void 0)||document.referrer),null!=this._opts.trackEmail&&(this._attrs.email=this._opts.trackEmail),!this._attrs.email&&this._attrs.shouldTrack&&(a=W(this._attrs.pageUrl))&&(this._attrs.email=a),!this._attrs.email&&l.localStorage([this._attrs.pageUrl,"trackEmail"])&&(this._attrs.email=l.localStorage([this._attrs.pageUrl,"trackEmail"])),e=(t=this._attrs.playerColor)&&t!==this._opts.playerColor,this._attrs.playerColor=At(this._opts.playerColor||"636155"),e&&this.container.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:this._attrs.playerColor,prevColor:t}})),this._attrs.aspect=this._opts.aspect,null!==this._opts.autoplay&&void 0!==this._opts.autoplay?this._attrs.autoplay=this._opts.autoplay:this._attrs.autoplay=this._opts.autoPlay,null!==this._opts.bigPlayButton&&void 0!==this._opts.bigPlayButton?this._attrs.bigPlayButton=this._opts.bigPlayButton:this._attrs.bigPlayButton=this._opts.playButton,null!==this._opts.disableFullscreenOnRotateToLandscape&&void 0!==this._opts.disableFullscreenOnRotateToLandscape?this._attrs.disableFullscreenOnRotateToLandscape=this._opts.disableFullscreenOnRotateToLandscape:null!==this._opts.fullscreenOnRotateToLandscape&&void 0!==this._opts.fullscreenOnRotateToLandscape?this._attrs.disableFullscreenOnRotateToLandscape=!this._opts.fullscreenOnRotateToLandscape:this._attrs.disableFullscreenOnRotateToLandscape=!1,this._attrs.doNotTrack=this._opts.doNotTrack,this._attrs.endVideoBehavior=this._opts.endVideoBehavior||"default",null!==this._opts.fullscreenControl&&void 0!==this._opts.fullscreenControl?this._attrs.fullscreenControl=this._opts.fullscreenControl:this._attrs.fullscreenControl=this._opts.fullscreenButton,null!==this._opts.hideControlsOnLoad&&void 0!==this._opts.hideControlsOnLoad?this._attrs.hideControlsOnLoad=this._opts.hideControlsOnLoad:null!==this._opts.controlsVisibleOnLoad&&void 0!==this._opts.controlsVisibleOnLoad?this._attrs.hideControlsOnLoad=!this._opts.controlsVisibleOnLoad:this._attrs.hideControlsOnLoad=!1,null!==this._opts.hideCopyLinkAndThumbnail&&void 0!==this._opts.hideCopyLinkAndThumbnail?this._attrs.hideCopyLinkAndThumbnail=this._opts.hideCopyLinkAndThumbnail:null!==this._opts.copyLinkAndThumbnailEnabled&&void 0!==this._opts.copyLinkAndThumbnailEnabled?this._attrs.hideCopyLinkAndThumbnail=!this._opts.copyLinkAndThumbnailEnabled:this._attrs.hideCopyLinkAndThumbnail=!1,this._attrs.playbackRateControl=this._opts.playbackRateControl,null!==this._opts.playBarControl&&void 0!==this._opts.playBarControl?this._attrs.playBarControl=this._opts.playBarControl:this._attrs.playBarControl=this._opts.playbar,this._attrs.playerBackgroundColor=this._opts.playerBackgroundColor||"#000000",this._attrs.playlistLinks=this._opts.playlistLinks,null!==this._opts.playPauseControl&&void 0!==this._opts.playPauseControl?this._attrs.playPauseControl=this._opts.playPauseControl:this._attrs.playPauseControl=this._opts.smallPlayButton,this._attrs.playPauseNotifier=this._opts.playPauseNotifier,null!==this._opts.poster&&void 0!==this._opts.poster?this._attrs.poster=this._opts.poster:this._attrs.poster=this._opts.stillUrl,this._attrs.preload=this._opts.preload,this._attrs.qualityControl=this._opts.qualityControl,this._attrs.resumable=this._opts.resumable,this._attrs.seo=this._opts.seo,this._attrs.settingsControl=this._opts.settingsControl,null!==this._opts.silentAutoplay&&void 0!==this._opts.silentAutoplay?this._attrs.silentAutoplay=this._opts.silentAutoplay:this._attrs.silentAutoplay=this._opts.silentAutoPlay,this._attrs.statsUrl=this._opts.statsUrl,null!==this._opts.transparentLetterbox&&void 0!==this._opts.transparentLetterbox?this._attrs.transparentLetterbox=this._opts.transparentLetterbox:"transparent"===this._opts.wmode&&(this._attrs.transparentLetterbox=!0),this._attrs.volume=this._opts.volume,this._attrs.volumeControl=this._opts.volumeControl,this._attrs.bigPlayButtonBorderRadius=this._defaultBigPlayButtonBorderRadius(),this._attrs.controlBarBorderRadius=this._defaultControlBarBorderRadius(),this._attrs.floatingControlBar=this._opts.floatingControlBar||!1,this._attrs.controlBarDistance=this._defaultControlBarDistance(),this._attrs.playerBorderRadius=this._defaultPlayerBorderRadius(),this._attrs.roundedPlayer=this._opts.roundedPlayer||0,this._opts.noDeprecatedProperties||this._setDeprecatedProperties(),this},t.prototype._inferPageUrl=function(){var t;return(null!=(t=this._opts)?t.pageUrl:void 0)?this._opts.pageUrl:X()},t.prototype._runMethodsFromOptions=function(){var t,e,n,i,r;if(null!=this._opts.foreignData&&this.foreignData(this._opts.foreignData),null!=this._opts.email?this.email(this._opts.email):null!=this._opts.trackEmail&&this.email(this._opts.trackEmail),null!=this._opts.playerLanguage&&this.playerLanguage(this._opts.playerLanguage),null!=this._opts.videoFoam&&this.videoFoam(this._opts.videoFoam),this._opts.controlScaling&&this.controlScaling(this._opts.controlScaling),this._hasImpl((r=this,function(){if(null!=r._opts.playerColor)return r.playerColor(r._opts.playerColor)})),null!=this._attrs.volume&&this.volume(this._attrs.volume),!0!==this._opts.muted&&0!==this._attrs.volume||this.mute(),!1===this._opts.muted&&this.unmute(),this._opts.suppressPlay&&this.suppressPlay(this._opts.suppressPlay),this.popover&&!("function"==typeof(t=this.popover).isVisible?t.isVisible():void 0)||!this._attrs.autoplay||this._hasImpl(function(t){return function(){return t._playSuspendedOffScreenEnabled()?t.inViewport()?t.play():t.bind("enterviewport",(function(){return t.play(),t.unbind})):t.play()}}(this)),this._opts.pause&&this.pause(),null!=this._opts.time)return n=l.detect.iphone||l.detect.ipad||l.detect.android,e=this.popover&&!this.popover._visible,i="playing"!==this.state()&&(n||e),this.time(this._opts.time,{lazy:i})},t.prototype._playSuspendedOffScreenEnabled=function(){return null!=this._opts.playSuspendedOffScreen&&"auto"!==this._opts.playSuspendedOffScreen?this._opts.playSuspendedOffScreen:this.isMuted()},t.prototype._validate=function(){var t;if((t=this._errors()).length>0)throw new Error(t.join(", "));return!0},t.prototype._errors=function(){var t;return t=[],this.container||t.push('Could not find element with ID "'+this._containerId+'" in DOM. Failed to initialize video "'+this._hashedId+'".'),t},t.prototype._dedupContainer=function(){var t,e,n,i,r,o,a;if(Ft("video")){for(a in o=[],i=Ft("video"))t=i[a],this.container.id&&(null!=(r=t.container)?r.id:void 0)===this.container.id&&o.push(t);for(e=0,n=o.length;e<n;e++)t=o[e],this.notice("_dedupContainer",t.container.id),t.remove();if(o.length>0)return this.container.wistiaApi=this}},t.prototype._addToGlobalCache=function(){var t;return this.info("_addToGlobalCache",this.uuid),t=this.translationApi?this.translationApi:this,Ft(["video",this.uuid],t)},t.prototype._displayServerError=function(t){var e;return t.iframe?(e=_()+"//"+b(),this.container.innerHTML="<iframe src='"+e+"/embed/iframe/"+this.hashedId()+"' height='"+this.height()+"' width='"+this.width()+"' frameborder='0' scrolling='no'></iframe>"):this.container.innerHTML="<div style='background:#fff;border:2px dashed #ddd;color:#aaa;font-family:Century Gothic,Arial;font-size:14px;text-align:center;width:"+this.width()+";height:"+this.height()+";'><div style='padding:20px;'>"+(t.message||t.error)+"</div></div>"},t.prototype._implExec=function(){var t,e,n;return e=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],this._hasImpl((n=this,function(){var i;return n._impl[e]?n._impl[e]._originalMethod===n[e]&&void 0!==n[e]?void n.warn("calling "+e+" would result in an infinite loop"):(i=n._impl)[e].apply(i,t):n.warn(e+" is not defined",l.stacktrace())})),this},t.prototype._implGet=function(){var t,e,n,i;return n=arguments[0],e=arguments[1],t=3<=arguments.length?r.call(arguments,2):[],null==e&&(e=null),this._hasImpl()?this._impl[n]?this._impl[n]._originalMethod===this[n]&&void 0!==this[n]?void this.warn("calling "+n+" would result in an infinite loop"):(i=this._impl)[n].apply(i,t):this.warn(n+" is not defined",l.stacktrace()):e},t.prototype._implSetOrGet=function(){var t,e,n;return n=arguments[0],e=arguments[1],(t=3<=arguments.length?r.call(arguments,2):[]).length>0?this._implExec.apply(this,[n].concat(r.call(t))):this._implGet(n,e)},t.prototype._implPromise=function(){var t,e,n;return e=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],new Promise((n=this,function(i,r){return n._hasImpl((function(){var o,a;return n._impl[e]?n._impl[e]._originalMethod===n[e]&&void 0!==n[e]?void n.warn("calling "+e+" would result in an infinite loop"):(a=(o=n._impl)[e].apply(o,t))instanceof Promise?a.then(i).catch(r):i(a):r(new Error(e+" is not defined on _impl"))}))}))},t.prototype._commandQueueImplPromise=function(){var t,e,n;return e=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],this._hasImpl((n=this,function(){return n._impl[e]&&n._impl.commandQueueOpen?n._impl[e]._originalMethod===n[e]&&void 0!==n[e]?void n.warn("calling "+e+" would result in an infinite loop"):n._impl.commandQueueOpen.synchronize((function(i){var r;return n._impl?(r=n._impl)[e].apply(r,t).finally((function(){return i()})):Promise.resolve()})):n.warn(e+" is not defined",l.stacktrace())})),this},t.prototype.rebuild=function(){return this._hasImpl((t=this,function(){return t._impl.rebuild(),t._runMethodsFromOptions()}));var t},t.prototype.fullRebuild=function(t){return null==t&&(t={}),this.replaceWith(this._impl._mediaData,at({force:this._impl.playerType,inPlace:!1,transition:"none"},t))},t.prototype.rebuildAs=function(t,e){return null==e&&(e={}),this.fullRebuild(at(this._givenOptions,e,{force:t,transition:"none"}))},t.prototype.replace=function(t,e){return null==e&&(e={}),this.replaceWith(t,at({inlineOptionsOnly:!0},e))},t.prototype.replaceWith=function(t,e){var n,i;return null==e&&(e={}),this.info("replaceWith",t,e),i=this,n=function(){var n,r,o,a;return a=i._impl?i._replaceWithMediaData:i._initWithMediaData,i._impl.trigger("beforereplace",t),i._notReplacing(!1),i.hasData(!1),i._hasImpl(!1),i._initTime=(new Date).getTime(),i.hasData((function(){return i._hasDataTime=(new Date).getTime(),i.embedded((function(){return i._embeddedTime=(new Date).getTime()}))})),et(t)?a.call(i,t,e):(r=l.mediaFromCache(t))?a.call(i,r,e):(delete(n=y(i._gatherOptions())).idType,o=at({},n,e),H(t,o).then((function(t){return a.call(i,t,e)})).catch((function(){return v("player/failure/replace-failed")})))},this._hasImpl(function(t){return function(){return t._notReplacing(n)}}(this)),this},t.prototype._replaceWithMediaData=function(){var t,e;return t=1<=arguments.length?r.call(arguments,0):[],this._impl.commandQueueOpen.synchronize((e=this,function(n){return e._replaceWithMediaDataQueuable.apply(e,t),e._notReplacing(n)}))},t.prototype._replaceWithMediaDataQueuable=function(t,e){var n,i,r,s,u,c,d,h,p,v,g,b,_,w,P,O;return null==e&&(e={}),e=y(e),this.info("_replaceWithMediaData",t,e),t.error?(this._displayServerError(t),void this.trigger("servererror")):(null!=e.playlistIndex?(this._playlistIndex=e.playlistIndex,delete e.playlistIndex):this._inPlaylist(t.hashedId)&&(this._playlistIndex=this._playlistIndexOf(t.hashedId)),null!=e.playlistShouldAutoAdvance&&(this._playlistShouldAutoAdvance=e.playlistShouldAutoAdvance),e.inlineOptionsOnly&&(u=e.inlineOptionsOnly,delete e.inlineOptionsOnly),null!=e.inPlace&&(s=e.inPlace,delete e.inPlace),null!=e.transition&&(w=e.transition,delete e.transition),null!=e.transitionTime&&(P=e.transitionTime,delete e.transitionTime),this.hasData(!1),this._hasImpl(!1),null!=(p=this._impl._tracker)&&p.stopMonitoring(),this._clobberVideoBindings(),this._savedState={},this._suspended=!1,"function"==typeof(d=this._impl).wipeOutstandingAsyncFunctions&&d.wipeOutstandingAsyncFunctions(),this._hashedId=t.hashedId,this._originalMediaData=t,this.data.media=t,this._givenOptions=e,this._mediaData=t,this._opts=u?this._gatherOptions({only:"inline"}):this._gatherOptions(),this._embedOptions=null,this._mediaData=rt(t,this._opts),d.trigger("beforereplaceengine"),d.freezeLastFrame(),h=new a,_=function(){return h.go()},Y()&&!0===this._attrs.autoplay&&!d.isMuted()&&(n=d.engine)?(n.stopStreaming(),n.play().then(_).catch(_),setTimeout(_,2e3)):_(),!1===f(null!=(v=this._mediaData.embedOptions.plugin)&&null!=(g=v.passwordProtectedVideo)?g.on:void 0)&&null!=(null!=(b=this._opts.plugin)?b.passwordProtectedVideo:void 0)&&(this._opts.plugin.passwordProtectedVideo.on=!1),this.info("_opts",y(this._opts)),at(this._mediaData,this._opts.mediaData),this._inferPropertiesAfterMediaData(),r="notplayable"!==d.playerType&&("passwordprotected"!==d.playerType&&(!("html5"!==d.playerType||!(l.detect.iphone||l.detect.android||l.detect.ipad||l.detect.safari))||null!=s&&s)),this.info("inPlace",r),c=o.choosePlayer(this.judyCtx(),this._mediaData,this._opts),this._playerPlugins=o.playerPlugins(this.judyCtx(),c,this._mediaData,this._opts),o.logWarnings(this.judyCtx(),c,this._mediaData,this._opts),r&&(this.removePlugins(),d.stopStreaming()),this.plugin=null,this._pluginStopGos={},this._definePluginMethod(),this.hasPlugins(!1),d.commandQueueOpen.setQueue([]),this.removeSwatch(),this._implVersion+=1,i=this._implVersion,h((O=this,function(){var t;return null!=(t=d.engine)&&t.destroy(),O._execPlugins().then((function(){var t,e;if(O._implVersion===i)return O.hasPlugins(!0),O.supportedPlayers=o.supportedPlayers(O.judyCtx(),O._mediaData.assets),e=l.PublicApi.classFor(c),O._impl=new e(O).init(),O._setupBindings(),O.grid=r?O._impl.grid=d.grid:O._impl.setupGrid({initDimensions:!1}),"function"==typeof(t=O._impl).transferStateFrom&&t.transferStateFrom(d),O._hasImpl(!0),O.hasData(!0),r||O._runMethodsFromOptions(),r?O._replaceMode((function(){return O._impl.initFrom(d)})):O._replaceMode((function(){return O._embedWithTransitionFrom(d,w,{time:P})})),O.embedded((function(){return O._notReplacing(!0)})),r&&O._runMethodsFromOptions(),O._allowContainerMatch()&&O.width(O.containerWidth(),{constrain:!0}),m(O._impl.uuid+".inject_json_ld",(function(){return O._injectJsonLd()})),O.trigger("afterreplace"),O.container.dispatchEvent(new CustomEvent("afterreplace",{detail:{api:O}})),m(O.uuid+".prefetch_next_media",(function(){return O.prefetchNextMedia()}),2e3);O.notice("replaceWith(): impl changed from",i,"to",O._implVersion,"not completing replacement")}))})))},t.prototype._embedWithTransitionFrom=function(t,e,n){var i,r;return null==e&&(e="none"),this.info("_embedWithTransitionFrom",t,e),i=new Promise((r=this,function(t){var e,n;return(null!=(e=r._impl.lastPlayInfo())?e.isPending:void 0)?(n=r._impl.on("play",(function(){return n(),t()})),m(r._impl.uuid+".slow_play_fallback",(function(){return r._impl.embedded((function(){return n(),t()}))}),2e3)):r._impl.embedded(t)})),"slide"===e||"slideleft"===e?(this.info("slideleft"),this._impl.embed(t),i.then(function(e){return function(){return t.slideOutLeft(n,(function(){return t.remove()})),e._impl.slideInLeft(n,(function(){return e._impl.trigger("transitiondone")}))}}(this))):"slideright"===e?(this.info("slideright"),this._impl.embed(t),i.then(function(e){return function(){return t.slideOutRight(n,(function(){return t.remove()})),e._impl.slideInRight(n,(function(){return e._impl.trigger("transitiondone")}))}}(this))):"fade"===e?(this.info("fade"),!0!==t._attrs.transparentLetterbox&&(t.grid.center.style.backgroundColor="#000"),null!=n.time&&(n.time=Math.round(n.time/2)),t.fadeOut(n,function(e){return function(){var r;return t.remove(),!0!==e._impl._attrs.transparentLetterbox&&null!=(r=e._impl.grid)&&(r.center.style.backgroundColor="#000"),e._impl.embed(t),i.then((function(){return e._impl.fadeIn(n,(function(){var t;return null!=(t=e._impl)&&(t.grid.center.style.backgroundColor=""),e._impl.trigger("transitiondone")}))}))}}(this))):"crossfade"===e?(this.info("crossfade"),t.grid&&B(t.grid.root,{position:"absolute",zIndex:0}),B(this._impl.grid.root,{zIndex:1}),this._impl.embed(t),i.then(function(e){return function(){return e._impl.fadeIn(n,(function(){return t.remove(),B(e._impl.grid.root,{zIndex:""}),e._impl.trigger("transitiondone")}))}}(this))):(this.info("no transition"),this._impl.embed(t),t.remove(),i.then(function(t){return function(){return setTimeout((function(){if(t._impl)return t._impl.trigger("transitiondone")}),0)}}(this)))},t.prototype._clobberVideoBindings=function(){var t,e,n;for(t in n=[],e=this._bindings)e[t],"afterreplace"!==t&&"beforereplace"!==t&&"all"!==t?n.push(this.unbind(t)):n.push(void 0);return n},t.prototype._replaceMode=function(t){return this.info("_replaceMode",!0),this._impl._replacing=!0,t(),this._impl.embedded((e=this,function(){return e._impl._replacing=!1,e.info("_replaceMode",!1)}));var e},t.prototype.remove=function(t){var e,n,i,r,o,a,s,u;return null==t&&(t={}),this.info("remove"),this.trigger("down"),this.trigger("beforeremove"),this._freeEmbedSlot(),null!=(e=this.elem())&&null!=(n=e.mux)&&"function"==typeof n.destroy&&n.destroy(),this.removeSwatch(),this._implExec("remove",{trigger:!1}),this._hasImpl(!1),Et(this._jsonLdId),null!=(i=this.popover)&&"function"==typeof i.remove&&i.remove(),null!=(r=this._impl)&&r.stopStreaming(),null!=(o=this._intersectionObserver)&&o.disconnect(),M(this._foamDummyElem),R(this._foamDummyElem),null!=(a=l.eventLoop)&&a.remove(this.uuid),p(this.uuid),this._unbindListeners(),R(this.chrome),Wt(["video",this.uuid]),this.trigger("afterremove"),this._bindings={},t.unsetWistiaApiOnContainer?this.container.wistiaApi=void 0:this.container.wistiaApi="removed",this._impl=null,null!=(s=window.__wistiaStores)&&(s[this.uuid]=null),null!=(u=window.__wistiaStores)?delete u[this.uuid]:void 0},t.prototype.removeSwatch=function(){var t,e;if(e=this.container.querySelector(".wistia_swatch")||(null!=(t=this.container.originalContainer)?t.querySelector(".wistia_swatch"):void 0))return R(e)},t.prototype.fullRemove=function(){var t,e,n;return e=this._embedContainer,n=this._popoverContainer,t=this.container,this.remove(),R(e),R(n),R(t),this.container=this._embedContainer=null,this},t.prototype.isRemoved=function(){return!Ft(["video",this.uuid])},t.prototype._unbindListeners=function(){if(I(this.chrome),this._throttleTriggerViewport&&D(window,"scroll",this._throttleTriggerViewport),this._doResize)return D(window,"resize",this._doResize)},t.prototype._saveState=function(){var t;return this._savedState={state:this.state(),time:this.time(),volume:this.volume(),inFullscreen:this.inFullscreen(),uuid:null!=(t=this._impl)?t.uuid:void 0}},t.prototype.suspend=function(){var t,e;if(!this._suspended)return this._saveState(),this.info("suspend",y(this._savedState)),this.pause(),this.suppressPlay(!0),!(null!=(t=this._impl)&&"function"==typeof t._inNativeMode?t._inNativeMode():void 0)&&l.detect.fullscreenEnabled||this.cancelFullscreen(),this._suspended=!0,this._suspendPlayBinding=(e=this,function(){return e.pause()}),this._suspendSeekBinding=function(t){return function(){return t.pause(),t.time(t._savedState.time)}}(this),this.bind("play",this._suspendPlayBinding),this.bind("seek",this._suspendSeekBinding),this.trigger("suspendstatechange",!0),this},t.prototype.unsuspend=function(t){var e,n,i;if(null==t&&(t={}),this._suspended)return n=at({},this._savedState,t),this.info("unsuspend",y(n)),this._suspended=!1,this.unbind("play",this._suspendPlayBinding),this.unbind("seek",this._suspendSeekBinding),n.uuid!==(null!=(e=this._impl)?e.uuid:void 0)||(this.suppressPlay(!1),this.volume(n.volume),i={pause:"playing"!==n.state},null!=n.time&&Math.abs(n.time-this.time())>.5&&("ended"===n.state?this.time(n.time-1,i):this.time(n.time,i)),"playing"===n.state&&this.play(),this.trigger("suspendstatechange",!1)),this},t.prototype._setupBindings=function(){var t;return this.bind("afterend",(t=this,function(){if(t.playlistShouldAutoAdvance())return t._suspended?t.bind("suspendstatechange",(function(e){if(!1===e)return"ended"===t.state()&&t._nextEmbedOrPlaylistLoop(),t.unbind})):t._nextEmbedOrPlaylistLoop()})),this.bind("widthchange",function(t){return function(){var e,n;return null!=(e=t._impl)&&(e._width=t._width=t.width()),null!=(n=t._impl)?n._videoWidth=t._videoWidth=t.videoWidth():void 0}}(this)),this.bind("heightchange",function(t){return function(){return t._impl._height=t._height=t.height(),t._impl._videoHeight=t._videoHeight=t.videoHeight()}}(this)),this.looksUp()&&(this.inViewport(this._isInViewportNow()),this.inViewport()?this.trigger("enterviewport"):this.trigger("leaveviewport")),this._intersectionObserver=new window.IntersectionObserver(function(t){return function(e){return e[0].isIntersecting?(t.trigger("enterviewport"),t.inViewport(!0)):(t.trigger("leaveviewport"),t.inViewport(!1))}}(this)),this._intersectionObserver.observe(this.container),x(window,"resize",this._doResize)},t.prototype._nextEmbedOrPlaylistLoop=function(){return this.nextVideo()?this.embedNext():this._attrs.playlistLoop?(this.info("playlistLoop"),this.embedIndex(0,{autoPlay:!0})):void 0},t.prototype._isInViewportNow=function(){var t,e,n,i;return!this.down()&&!this.looksDown()&&(!window.IntersectionObserver&&top!==self||(t=(e=j(this.container).top)+T(this.container),i=jt(),n=jt()+T(window),e>=i&&e<n||t>=i&&t<n||e<=i&&t>=n))},t.prototype._pauseEventLoop=function(){var t;if(l.eventLoop.pause(this.uuid),null!=(t=this._impl)?t.uuid:void 0)return l.eventLoop.pause(this._impl.uuid)},t.prototype._unpauseEventLoop=function(){var t;if(l.eventLoop.unpause(this.uuid),null!=(t=this._impl)?t.uuid:void 0)return l.eventLoop.unpause(this._impl.uuid)},t.prototype.playlistIndex=function(){return this._playlistIndexOf(this.hashedId())},t.prototype.nextVideo=function(){return this.playlistIndex()>=0&&this._playlist[this.playlistIndex()+1]||null},t.prototype.previousVideo=function(){return this.playlistIndex()>0&&this._playlist[this.playlistIndex()-1]||null},t.prototype._playlistIndexOf=function(t){var e,n,i,r;for(e=n=0,i=this._playlist.length;0<=i?n<=i:n>=i;e=0<=i?++n:--n)if((null!=(r=this._playlist[e])?r.hashedId:void 0)===t)return e;return-1},t.prototype._inPlaylist=function(t){return this._playlistIndexOf(t)>=0},t.prototype._setTransitionOptions=function(t){if(t.transition||(t.transition=this._opts.playlistTransition||"fade"),t.transitionTime||(t.transitionTime=this._opts.playlistTransitionTime),t.playlistIndex&&"slide"===t.transition)return t.playlistIndex>=this._playlistIndex?t.transition="slideleft":t.transition="slideright"},t.prototype.embedNext=function(t){var e,n;return n=this.nextVideo(),this.info("embedNext",n),(e=at({autoPlay:!0,resumable:!1},n.options,t)).playlistIndex=this._playlistIndex+1,e.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this._setTransitionOptions(e),this.replaceWith(n.hashedId,e)},t.prototype.embedPrevious=function(t){var e,n;return n=this.previousVideo(),this.info("embedPrevious",n),(e=at({autoPlay:!0,resumable:!1},n.options,t)).playlistIndex=this._playlistIndex-1,e.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(n.hashedId,e)},t.prototype.embedIndex=function(t,e){var n,i;return i=this._playlist[t],this.info("embedIndex",t,i),(n=at({autoPlay:!0},i.options,e)).playlistIndex=t,n.playlistShouldAutoAdvance=this._playlistShouldAutoAdvance,this.replaceWith(i.hashedId,n)},t.prototype.addToPlaylist=function(t,e,n){var i,r,o,a,s;for(null==e&&(e={}),null==n&&(n={}),null==this._playlist&&(this._playlist=[]),o=0,a=(s=Mt(t)).length;o<a;o++)i={hashedId:r=s[o],options:e},(n=y(n)).after?n.detect=function(t){return t.hashedId===n.after}:n.before&&(n.detect=function(t){return t.hashedId===n.before}),this.info("addToPlaylist",i,n),J(this._playlist,i,n),this.hasData(function(t){return function(){var n,i;return r===(null!=(n=t.nextVideo())?n.hashedId:void 0)||r===(null!=(i=t.previousVideo())?i.hashedId:void 0)?t.prefetchMedia(r,e):void 0}}(this));return this.info("updated _playlist",y(this._playlist)),this.trigger("playlistchange",this._playlist),this._playlist},t.prototype.setPlaylist=function(t,e){return null==e&&(e={}),this._playlist=[],this.addToPlaylist(t,e),this._playlistIndex=this._playlistIndexOf(this.hashedId()),this.trigger("playlistchange",this._playlist)},t.prototype.playlistShouldAutoAdvance=function(){return null==this._playlistShouldAutoAdvance||this._playlistShouldAutoAdvance},t.prototype.setPlaylistShouldAutoAdvance=function(t){return this._playlistShouldAutoAdvance=t},t.prototype.prefetchNextMedia=function(){var t;if(!this._opts._inLegacyPlaylist&&(t=this.nextVideo()))return this.prefetchMedia(t.hashedId,t.options)},t.prototype.prefetchMedia=function(t,e){return null==e&&(e={}),e=d({embedHost:this._opts.embedHost},e),this.info("@prefetchMedia",t),H(t,y(e)).then((n=this,function(i){var r;return n.info("prefetched",t),r=n._gatherOptions({givenOptions:e,mediaData:i,hashedId:i.hashedId,container:n.container}),dt(i,r)})).catch((function(){return v("player/failure/prefetch-failed")}));var n},t.prototype.addPlugin=function(t,e){return null==e&&(e={}),this.info("addPlugin",t,e),new Promise((n=this,function(i){return n._hasImpl((function(){return n.hasPlugin(t)||l.plugin._inject(n,t,e),n.plugin(t).then((function(t){return i(t)}))}))}));var n},t.prototype.hasPlugin=function(t){return!!this.plugin[t]},t.prototype.turnOffPluginApis=function(){var t,e,n,i;for(e in this.info("turnOffPluginApis"),i=[],n=this.plugin)n[e],i.push("function"==typeof(t=this._pluginStopGos)[e]?t[e](!1):void 0);return i},t.prototype.removePlugin=function(t){var e,n,i;if(n=this.plugin[t]){try{"function"==typeof n.remove&&n.remove()}catch(t){e=t,setTimeout((function(){throw e}),0)}return delete this.plugin[t],(null!=(i=this._impl.plugin)?i[t]:void 0)&&delete this._impl.plugin[t],n.uuid&&this.plugins&&(delete this.plugins[this.uuid],Wt(["plugins",t,this.uuid,n.uuid])),this.fit(),this.trigger("pluginremoved",t)}},t.prototype.removePlugins=function(){var t,e,n;for(t in this.info("removePlugins"),n=[],e=this.plugin)e[t],n.push(this.removePlugin(t));return n},t.prototype.containerWidth=function(){return L(this._embedContainer)},t.prototype.containerHeight=function(){return T(this._embedContainer)},t.prototype._getScreenScrolls=function(t,e){var n;return n=t.bottom+window.pageYOffset,Math.max(0,n/e-1)},t.prototype._getEmbedVisibilityMetrics=function(){var t,e,n,i,r;return this.embedOptions()._inIframe||this.isRemoved()?null:(r=T(window),i=(e=this.elem().getBoundingClientRect()).height,n=this._getScreenScrolls(e,r),this.popover&&(t=this.container.getBoundingClientRect(),n=this._getScreenScrolls(t,r)),{screen_scrolls:n,ratio_of_screen:i/r,screen_width:window.screen.width,screen_height:window.screen.height})},t.prototype._getPageTitle=function(){return this._attrs.pageTitle||document.title},t.prototype._getBrowserLanguage=function(){return window.navigator.language},t.prototype._goToDownState=function(){var t;return this.info("_goToDownState"),this._stateBeforeDown=this._lastState,this.up(!1),this.down(!0),null!=(t=this._impl.engine)&&t.pause(),this.ready(!1),this.trigger("down")},t.prototype._goToUpState=function(){var t;return this.info("_goToUpState"),this.down(!1),this._ignoreUp=!0,this._doSizing(),this._ignoreUp=!1,this.up(!0),this.ready(!1),this.fit(),null!=(t=this._impl)&&t.checkForReady(),"playing"===this._stateBeforeDown&&this.play(),this.trigger("up")},t.prototype._checkDownState=function(){var t;return t=this.looksDown(),this.up()&&t?(this.info("moving to down state"),this._goToDownState()):this.down()&&!t?(this.info("moving to up state"),this._goToUpState()):void 0},t.prototype._removeHandleIfGoneFromDOM=function(){return!!this.embedded()&&(this.elem()?!(!this._embedContainer||this._embedContainer.parentNode)&&(this.warn("container removed from DOM",this._embedContainer.id),this.remove({unsetWistiaApiOnContainer:!0}),!0):(this.warn("video element removed from DOM",this._embedContainer.id),this.remove(),!0))},t.prototype._doFoam=function(){var t,e,n,i,r,o,a,s,u,l,c;if(null==this._parentBoxSizing&&(this._parentBoxSizing=B(this._embedContainer.parentNode,"box-sizing")),this.popover?(u=(c=L(window))/(l=T(window)),e=(s=Math.min(c,l))>500?160:Math.abs(u-this.aspect())<.2?.2*s:.1*s,a=u>this.aspect()?Math.round((l-e)*this.aspect()):c-e):"border-box"===this._parentBoxSizing?(this._foamDummyElem||(this._foamDummyElem=S({class:"wistia_video_foam_dummy","data-source-container-id":this._embedContainer.id,style:{border:0,display:"block",height:0,margin:0,padding:0,position:"static",visibility:"hidden",width:"auto"}}),k(this._embedContainer,this._foamDummyElem)),a=L(this._foamDummyElem)):a=L(this._embedContainer.parentNode),!(isNaN(a)||this._lastParentWidth===a&&this._didFoam))return this._didFoam=!0,r=(o=a)-this.extraWidth(),n=(i=this.heightForWidth(r))+this.extraHeight(),(t=this.videoFoam()).maxHeight&&n>t.maxHeight&&(i=(n=t.maxHeight)-this.extraHeight(),o=(r=this.widthForHeight(i))+this.extraWidth()),t.maxWidth&&o>t.maxWidth&&(r=(o=t.maxWidth)-this.extraWidth(),n=(i=this.heightForWidth(r))+this.extraHeight()),t.minHeight&&n<t.minHeight&&(i=(n=t.minHeight)-this.extraHeight(),o=(r=this.widthForHeight(i))+this.extraWidth()),t.minWidth&&o<t.minWidth&&(r=(o=t.minWidth)-this.extraWidth(),n=(i=this.heightForWidth(r))+this.extraHeight()),this.info("videoFoam set width",o),this.width(o,{constrain:!0}),this._lastParentWidth=a},t.prototype._allowFoam=function(){var t;return this._hasImpl()&&this.grid&&(this.up()||this._ignoreUp)&&this.looksUp()&&(this._attrs.videoFoam||(null!=(t=this.popover)?t.isResponsive():void 0))&&!this.isAudio()},t.prototype._allowContainerMatch=function(){return(this.up()||this._ignoreUp)&&!this._opts.dontMonitorSize&&!this.inFullscreen()},t.prototype._doContainerMatch=function(){var t,e;if(e=this.containerWidth(),t=this.containerHeight(),this._lastWidth!==e&&(this.notice("container width changed to "+e+", matching"),this.width(e,{dontChangeContainer:!0}),this.info("_doContainerMatch set width",e),this.trigger("widthchange",e,this._lastWidth),this._lastWidth=e),this._lastHeight!==t)return this.notice("container height changed to "+t+", matching"),this.height(t,{dontChangeContainer:!0}),this.trigger("heightchange",t,this._lastHeight),this._lastHeight=t},t.prototype.monitor=function(){return this.info("monitor"),this._lastWidth=this._attrs.startingWidth,this._lastHeight=this._attrs.startingHeight,this._lastParentWidth=this.width(),this._didFoam=!1,this._hasImpl((t=this,function(){return l.eventLoop.add(t.uuid+".monitor",500,t._doMonitor)}));var t},t.prototype._doMonitor=function(){if(!this._removeHandleIfGoneFromDOM())return this._checkDownState(),this.chrome&&!C(this.chrome)&&(this.notice("Chrome was removed from DOM. Injecting it back in."),O(this._embedContainer,this.chrome)),this._doSizing()},t.prototype._doSizing=function(){return this.popover?this.popover.fixedSizeTooBigForWindow()?this._doFoam():this._opts.popoverSize?(this._lastWidth=this.width(),this._lastHeight=this.height(),this.width(this._popoverSize().width),this.height(this._popoverSize().height)):this._doFoam():this._allowFoam()?this._doFoam():this._allowContainerMatch()?this._doContainerMatch():void 0},t.prototype.looksDown=function(){return!this._embedContainer||!C(this._embedContainer)||A(this._embedContainer)},t.prototype.looksUp=function(){return!this.looksDown()},t.prototype._doResize=function(){var t;return"function"==typeof this._throttleTriggerViewport&&this._throttleTriggerViewport(),this._debounceDoMonitor||this.embedded((t=this,function(){return requestAnimationFrame((function(){return t._doMonitor(),t._debounceDoMonitor=!1}))})),this._debounceDoMonitor=!0},t.prototype._definePluginMethod=function(){var t;if(!this.plugin)return this.plugin=(t=this,function(e,n){var i;return(i=t._pluginStopGos[e])||(i=t._pluginStopGos[e]=new a)(!!t.plugin[e],t.plugin[e]),n?i((function(){return n(t.plugin[e])})):i})},t.prototype.videoFoam=function(t){return null!=t?(this.info("videoFoam",t),this._attrs.videoFoam=t,this.monitor(),t):this._attrs.videoFoam||!1},t.prototype._transformAndUpdateMediaData=function(){var t,e,n;return this._mediaData=rt(this._originalMediaData,this._opts),null!=(t=this._impl)&&null!=(e=t.engine)&&e.onMediaDataChanged(this._mediaData,this._opts),null!=(n=this._impl)?n._mediaData=this._mediaData:void 0},t.prototype.specialBind=function(){var t,e,n,i,o,a,s;return e=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],"crosstime"===e?(i=t[0],n=t[1],this.onCrossTime(i,n),s=this,function(){return s.unbindOnCrossTime(i,n)}):"betweentimes"===e&&(o=t[0],a=t[1],n=t[2],this.betweenTimes(o,a,n),function(t){return function(){return t.unbindBetweenTimes(o,a,n)}}(this))},t.prototype.specialUnbind=function(){var t,e,n,i,o,a;return e=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],"crosstime"===e?(i=t[0],n=t[1],this.unbindOnCrossTime(i,n),!0):"betweentimes"===e&&(o=t[0],a=t[1],n=t[2],this.unbindBetweenTimes(o,a,n),!0)},t.prototype.onCrossTime=function(t,e){var n,i,r,o,a,s,u,l;if(!/^(\d+\.)?\d+$/.test(t))throw"onCrossTime: Expected first argument to be a number";if("function"!=typeof e)throw"onCrossTime: Expected second argument to be a function";return null==this._onCrossTimeBindings&&(this._onCrossTimeBindings={}),null==(i=this._onCrossTimeBindings)[t]&&(i[t]=[]),u=this.uuid+"."+Lt("after_time_"),n=this.time()>t,l=this,r=function(){return l.time()<t?o():n||(n=!0,e.call(l)!==l.unbind)?void 0:l.unbindOnCrossTime(t,e)},o=function(e){return function(){return e.time()>=t?(p(u),r()):n?void 0:m(u,r,1e3*(t-e.time()))}}(this),a=function(e){return function(){if(e.time()<t){if(n=!1,t-e.time()<2)return o()}else if(!n)return r()}}(this),s=function(){return p(u)},this.bind("play",a),this.bind("timechange",a),this.bind("pause",s),this.bind("end",s),this.bind("waiting",s),"playing"!==this.state()||n||a(),this._onCrossTimeBindings[t].push({fn:e,setupTimeoutFromNowIfClose:a,suspendTimeoutIndefinitely:s}),this},t.prototype.unbindOnCrossTime=function(t,e){var n,i,r,o,a,s;if(!this._onCrossTimeBindings||!this._onCrossTimeBindings[t])return this;for(n=null,r=0,o=0,a=(s=this._onCrossTimeBindings[t]).length;o<a;o++){if((i=s[o]).fn===e){n=i;break}r+=1}return n?(this.unbind("play",n.setupTimeoutFromNowIfClose),this.unbind("timechange",n.setupTimeoutFromNowIfClose),this.unbind("pause",n.suspendTimeoutIndefinitely),this.unbind("end",n.suspendTimeoutIndefinitely),this.unbind("waiting",n.suspendTimeoutIndefinitely),this._onCrossTimeBindings[t].splice(r,1),0===this._onCrossTimeBindings[t].length&&delete this._onCrossTimeBindings[t],this):this},t.prototype.betweenTimes=function(t,e,n){var i,r,o,a,s;if(!/^(\d+\.)?\d+$/.test(t)||!/^(\d+\.)?\d+$/.test(e))throw"betweenTimes: Expected first two arguments to be numbers";if("function"!=typeof n)throw"betweenTimes: Expected second argument to be a function";return o=t+"-"+e,null==this._betweenTimeBindings&&(this._betweenTimeBindings={}),null==(i=this._betweenTimeBindings)[o]&&(i[o]=[]),a=!1,s=this,r=function(){var i,r;if(r=s.time(),t<=r&&r<e&&!a?(a=!0,i=n.call(s,a)):t<=r&&r<e||!a||(a=!1,i=n.call(s,a)),i===s.unbind)return s.unbindBetweenTimes(t,e,n)},this.onCrossTime(t,r),this.onCrossTime(e,r),this.bind("timechange",r),r(),this._betweenTimeBindings[o].push({fn:n,onTimechange:r}),this},t.prototype.unbindBetweenTimes=function(t,e,n){var i,r,o,a,s,u,l;if(l=t+"-"+e,!this._betweenTimeBindings[l])return this;for(i=null,o=0,a=0,s=(u=this._betweenTimeBindings[l]).length;a<s;a++){if((r=u[a]).fn===n){i=r;break}o+=1}return i?(this.unbindOnCrossTime(t,i.onTimechange),this.unbindOnCrossTime(e,i.onTimechange),this.unbind("timechange",i.onTimechange),this._betweenTimeBindings[l].splice(o,1),0===this._betweenTimeBindings[l].length&&delete this._betweenTimeBindings[l],this):this},t.prototype.aspect=function(){return this._implGet("aspect",0)},t.prototype.asset=function(){return this._implGet.apply(this,["asset",null].concat(r.call(arguments)))},t.prototype.assets=function(){return this._implGet.apply(this,["assets",null].concat(r.call(arguments)))},t.prototype.audioDescriptionControlEnabled=function(){return this._implSetOrGet.apply(this,["audioDescriptionControlEnabled",!1].concat(r.call(arguments)))},t.prototype.bigPlayButtonEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonEnabled",!1].concat(r.call(arguments)))},t.prototype.bigPlayButtonTimeEnabled=function(){return this._implSetOrGet.apply(this,["bigPlayButtonTimeEnabled",!1].concat(r.call(arguments)))},t.prototype.cancelOverlay=function(){return this._implPromise.apply(this,["cancelOverlay"].concat(r.call(arguments)))},t.prototype.cancelFullscreen=function(){return this._implExec("cancelFullscreen")},t.prototype.captureCurrentFrame=function(){return this._implGet.apply(this,["captureCurrentFrame",null].concat(r.call(arguments)))},t.prototype.closeTabMenu=function(){return this._implExec("closeTabMenu")},t.prototype.controlScaling=function(){return this._implSetOrGet.apply(this,["controlScaling","auto"].concat(r.call(arguments)))},t.prototype.createControl=function(){return this._implGet.apply(this,["createControl",null].concat(r.call(arguments)))},t.prototype.defineOverlay=function(){return this._implExec.apply(this,["defineOverlay"].concat(r.call(arguments)))},t.prototype.destroyControl=function(){return this._implExec.apply(this,["destroyControl"].concat(r.call(arguments)))},t.prototype.doNotTrack=function(){return this._opts.doNotTrack},t.prototype.duration=function(){return this._implGet("duration",null)},t.prototype.embedded=function(){return this._implSetOrGet.apply(this,["embedded",!1].concat(r.call(arguments)))},t.prototype.embedOptions=function(){return this._hasImpl()?this._implGet.apply(this,["embedOptions",{}].concat(r.call(arguments))):this._embedOptions?this._embedOptions:this._embedOptions=this._gatherOptions()},t.prototype.enterInputContext=function(){return this._implExec.apply(this,["enterInputContext"].concat(r.call(arguments)))},t.prototype.eventKey=function(){return this._implGet("eventKey",null)},t.prototype.exitInputContext=function(){return this._implExec.apply(this,["exitInputContext"].concat(r.call(arguments)))},t.prototype.extraHeight=function(){return this._implGet("extraHeight",0)},t.prototype.extraWidth=function(){return this._implGet("extraWidth",0)},t.prototype.fit=function(){return this._implExec("fit")},t.prototype.fullscreenControlEnabled=function(){return this._implSetOrGet.apply(this,["fullscreenControlEnabled",!1].concat(r.call(arguments)))},t.prototype.focus=function(){return this._implPromise.apply(this,["focus"].concat(r.call(arguments)))},t.prototype.getBuffered=function(){return this._implGet("getBuffered",[])},t.prototype.getFocusedChapter=function(){return this._implGet("getFocusedChapter",null)},t.prototype.getInputContext=function(){return this._implGet("getInputContext",[])},t.prototype.getMediaElement=function(){return this._implGet("getMediaElement",null)},t.prototype.getMediaType=function(){return this._implGet("getMediaType",null)},t.prototype.getOverlays=function(){return this._implGet("getOverlays",{})},t.prototype.getRegion=function(){return this._implGet.apply(this,["getRegion",null].concat(r.call(arguments)))},t.prototype.getSelectedCaptions=function(){var t,e;return null!=(t=this.controls)&&null!=(e=t.captions)?e.getSelectedCaptions():void 0},t.prototype.hasData=function(){return this._implSetOrGet.apply(this,["hasData",!1].concat(r.call(arguments)))},t.prototype.height=function(){return this._implSetOrGet.apply(this,["height",null].concat(r.call(arguments)))},t.prototype.heightForWidth=function(){return this._implGet.apply(this,["heightForWidth",null].concat(r.call(arguments)))},t.prototype.hideControls=function(){return this._implExec.apply(this,["hideControls",null].concat(r.call(arguments)))},t.prototype.humanDuration=function(){return xt(this.duration())},t.prototype.ieSizeHack=function(){return this._implExec("ieSizeHack")},t.prototype.inFullscreen=function(){return this._implGet("inFullscreen",!1)},t.prototype.inSilentPlaybackMode=function(){return this._implGet("inSilentPlaybackMode",!1)},t.prototype.isMuted=function(){return this._implGet("isMuted")},t.prototype.isResumableEnabled=function(){return this._implGet("isResumableEnabled")},t.prototype.lastPauseInfo=function(){return this._implGet("lastPauseInfo",{})},t.prototype.lastPlayInfo=function(){return this._implGet("lastPlayInfo",{})},t.prototype.layout=function(){return this._implSetOrGet.apply(this,["layout","primary"].concat(r.call(arguments)))},t.prototype.look=function(){return this._implSetOrGet.apply(this,["look",{}].concat(r.call(arguments)))},t.prototype.mp4Asset=function(){return this._implGet.apply(this,["mp4Asset",null].concat(r.call(arguments)))},t.prototype.mute=function(){return this._implExec("mute")},t.prototype.playerLanguage=function(t){return t&&(this._wasPlayerLanguageSetViaApi=!0),this._implSetOrGet.apply(this,["playerLanguage","en-US"].concat(r.call(arguments)))},t.prototype.name=function(){return this._implSetOrGet.apply(this,["name",""].concat(r.call(arguments)))},t.prototype.openChaptersTab=function(){return this._implExec("openChaptersTab")},t.prototype.openShareTab=function(){return this._implExec("openShareTab")},t.prototype.openTabMenu=function(){return this._implExec("openTabMenu")},t.prototype.openTranscriptTab=function(){return this._implExec("openTranscriptTab")},t.prototype.originalAsset=function(){return this._implGet.apply(this,["originalAsset",null].concat(r.call(arguments)))},t.prototype.pause=function(){return this._commandQueueImplPromise("pause")},t.prototype.percentWatched=function(){return this._implGet("percentWatched",0)},t.prototype.playbarControlEnabled=function(){return this._implSetOrGet.apply(this,["playbarControlEnabled",!1].concat(r.call(arguments)))},t.prototype.play=function(){return this._commandQueueImplPromise("play")},t.prototype.playbackRate=function(){return this._implSetOrGet.apply(this,["playbackRate",1].concat(r.call(arguments)))},t.prototype.playbackRateControlEnabled=function(){return this._implSetOrGet.apply(this,["playbackRateControlEnabled",!1].concat(r.call(arguments)))},t.prototype.playerColor=function(){return this._implSetOrGet.apply(this,["playerColor","636155"].concat(r.call(arguments)))},t.prototype.playerBackgroundColor=function(){return this._implSetOrGet.apply(this,["playerBackgroundColor","000000"].concat(r.call(arguments)))},t.prototype.playPauseControlEnabled=function(){return this._implSetOrGet.apply(this,["playPauseControlEnabled",!1].concat(r.call(arguments)))},t.prototype.qualityControlEnabled=function(){return this._implSetOrGet.apply(this,["qualityControlEnabled",!1].concat(r.call(arguments)))},t.prototype.requestFullscreen=function(){return this._implExec("requestFullscreen")},t.prototype.requestOverlay=function(){return this._implPromise.apply(this,["requestOverlay"].concat(r.call(arguments)))},t.prototype.ready=function(){return this._implSetOrGet.apply(this,["ready",!1].concat(r.call(arguments)))},t.prototype.releaseChromeless=function(){return this._implExec.apply(this,["releaseChromeless"].concat(r.call(arguments)))},t.prototype.releaseControls=function(){return this._implExec.apply(this,["releaseControls"].concat(r.call(arguments)))},t.prototype.requestChromeless=function(){return this._implExec.apply(this,["requestChromeless"].concat(r.call(arguments)))},t.prototype.requestControls=function(){return this._implExec.apply(this,["requestControls"].concat(r.call(arguments)))},t.prototype.secondsWatched=function(){return this._implGet("secondsWatched",0)},t.prototype.secondsWatchedVector=function(){return this._implGet("secondsWatchedVector",[])},t.prototype.selectableQualities=function(){return this._implGet("selectableQualities",[])},t.prototype.selectedQuality=function(){return this._implGet("selectedQuality",[])},t.prototype.setFocusedChapter=function(){return this._implSetOrGet.apply(this,["setFocusedChapter",null].concat(r.call(arguments)))},t.prototype.settingsControlEnabled=function(){return this._implSetOrGet.apply(this,["settingsControlEnabled",!1].concat(r.call(arguments)))},t.prototype.shouldResume=function(){return this._implGet("shouldResume")},t.prototype.showControls=function(){return this._implExec.apply(this,["showControls",null].concat(r.call(arguments)))},t.prototype.state=function(){return this._implGet("state","beforeplay")},t.prototype.stillUrl=function(){return this._implGet.apply(this,["stillUrl",null].concat(r.call(arguments)))},t.prototype.suppressPlay=function(){return this._implSetOrGet.apply(this,["suppressPlay",this].concat(r.call(arguments)))},t.prototype.thumbnailAssets=function(){return this._implGet("thumbnailAssets",[])},t.prototype.time=function(){var t,e;return e=arguments[0],t=2<=arguments.length?r.call(arguments,1):[],null!=e?this._commandQueueImplPromise.apply(this,["time",V(e)].concat(r.call(t))):this._implGet("time",0)},t.prototype.timeInHumanDuration=function(){return xt(this._implGet.apply(this,["time",0].concat(r.call(arguments))))},t.prototype.timeInIso8601Duration=function(){return Rt(this._implGet.apply(this,["time",0].concat(r.call(arguments))))},t.prototype.trim=function(){return this._implSetOrGet.apply(this,["trim",{start:0,end:-1}].concat(r.call(arguments)))},t.prototype.unmute=function(){return this._implExec("unmute")},t.prototype.undefineOverlay=function(){return this._implPromise.apply(this,["undefineOverlay"].concat(r.call(arguments)))},t.prototype.videoHeight=function(){return this._implSetOrGet.apply(this,["videoHeight",null].concat(r.call(arguments)))},t.prototype.videoQuality=function(t){return null!=t?this._commandQueueImplPromise.apply(this,["setVideoQuality",t].concat(r.call(arguments))):this._implGet("getVideoQuality")},t.prototype.videoWidth=function(){return this._implSetOrGet.apply(this,["videoWidth",null].concat(r.call(arguments)))},t.prototype.visitorKey=function(){return l.visitorKey.value()||null},t.prototype.volume=function(){return this._implSetOrGet.apply(this,["volume",0].concat(r.call(arguments)))},t.prototype.volumeControlEnabled=function(){return this._implSetOrGet.apply(this,["volumeControlEnabled",!1].concat(r.call(arguments)))},t.prototype.whenVideoElementInDom=function(){return new Promise((t=this,function(e){return t._hasImpl((function(){return e(t._implGet.apply(t,["whenVideoElementInDom",null].concat(r.call(arguments))))}))}));var t},t.prototype.width=function(){return this._implSetOrGet.apply(this,["width",null].concat(r.call(arguments)))},t.prototype.widthForHeight=function(){return this._implGet.apply(this,["widthForHeight",null].concat(r.call(arguments)))},t.prototype.chaptersEnabled=function(){return this._implSetOrGet.apply(this,["chaptersEnabled",null].concat(r.call(arguments)))},t.prototype.chaptersVisibleOnLoad=function(){return this._implSetOrGet.apply(this,["chaptersVisibleOnLoad",null].concat(r.call(arguments)))},t.prototype.addChapter=function(){return this._implExec.apply(this,["addChapter"].concat(r.call(arguments)))},t.prototype.getChapter=function(){return this._implGet.apply(this,["getChapter",null].concat(r.call(arguments)))},t.prototype.removeChapter=function(){return this._implExec.apply(this,["removeChapter"].concat(r.call(arguments)))},t.prototype.chapters=function(){return this._implSetOrGet.apply(this,["chapters",[]].concat(r.call(arguments)))},t.prototype.customerLogo=function(){return this._implExec.apply(this,["customerLogo"].concat(r.call(arguments)))},t.prototype.setControlEnabled=function(t,e){return this._implSetOrGet("setControlEnabled",null,t,e)},t.prototype.isControlDisabled=function(t){return this._implGet("isControlDisabled",!1,t)},t.prototype.isControlEnabled=function(t){return this._implGet("isControlEnabled",!1,t)},t.prototype.whenControlMounted=function(t){return this._implPromise("whenControlMounted",t)},t.prototype.getControl=function(t){return this._implGet("getControl",null,t)},t.prototype.getEmail=function(){return this.email()},t.prototype.getEventKey=function(){return this.eventKey()},t.prototype.getVisitorKey=function(){return this.visitorKey()},t.prototype.setEmail=function(t){return this.email(t)},t.prototype.setPlayerColor=function(){return this._implExec.apply(this,["playerColor"].concat(r.call(arguments)))},t.prototype.removeReadyFn=function(){var t,e;return t=1<=arguments.length?r.call(arguments,0):[],this._hasImpl((e=this,function(){var n;return(n=e._impl.ready).remove.apply(n,t)}))},t.prototype.isKeyboardFocused=function(t){return this._implSetOrGet("isKeyboardFocused",null,t)},t.prototype.email=function(t){var e,n;return null!=t?(this.info("email",t),e=this._attrs.email,this._attrs.email=t,l.localStorage([this._attrs.pageUrl,"trackEmail"],t),(null!=(n=this._opts)?n.noDeprecatedProperties:void 0)||(this.params.trackEmail=t),t!==e&&this.container.dispatchEvent(new CustomEvent("emailchange",{detail:{email:t}})),this):this._attrs.email||null},t.prototype.foreignData=function(t){var e,n;if(void 0===t)return this._attrs.foreignData||this._foreignData||null;if(null===t)return this._attrs.foreignData=null,this.trigger("foreigndatachange",t);if(this.info("foreignData",t),!et(t))throw new Error("foreignData can only be an Object");return t=y(t),this._attrs.foreignData=t,null!=(e=this._impl)&&null!=(n=e.tracker)&&n.transmit({force:!0}),this.trigger("foreigndatachange",t)},t.classFor=function(t){var e;return t instanceof l.Player?t=t.embedType:t instanceof l.PublicApi&&(t=null!=(e=t._impl)?e.embedType:void 0),function(){switch(t){case"vulcan":return l.VulcanPlayer;case"vulcan-v2":return l.VulcanV2Player;case"html5":return l.Html5Player;case"external":return l.ExternalPlayer;case"notplayable":return l.NotPlayablePlayer;case"passwordprotected":return l.PasswordProtectedPlayer;default:return l.Player}}()||(l.Metrics.count("player/"+t+"-class-not-defined",1,{ua:navigator.userAgent,detect:l.detect}),l.error("PublicApi.classFor: embedType is "+t+" but its class is not defined. Using 'vulcan-v2' instead."),l.VulcanV2Player)},t}(),l.mixin(l.PublicApi.prototype,l.bindable),st=l.PublicApi.prototype.trigger,l.PublicApi.prototype._triggerNoImpl=function(){var t,e,n,i;return n=arguments[0],e=2<=arguments.length?r.call(arguments,1):[],st.call.apply(st,[this,n].concat(r.call(e))),t=this.translationApi?this.translationApi:this,null!=(i=window.wistiaEmbeds)?i.trigger.apply(i,[n,t].concat(r.call(e))):void 0},l.PublicApi.prototype.trigger=function(){var t,e;return t=1<=arguments.length?r.call(arguments,0):[],this._impl?(e=this._impl).trigger.apply(e,t):this._triggerNoImpl.apply(this,t)},l.mixin(l.PublicApi.prototype,l.logHelpers),l.PublicApi.prototype._logPrefix=function(){var t;return[this.constructor.name,this.hashedId()||"no hashedId",null!=(t=this.container)?t.id:void 0,this.uuid]}}(Wistia)},(t,e,n)=>{n.r(e),n.d(e,{allow3rdParty:()=>m,getPluginsNotInList:()=>d,pluginScriptsFromDefinedPlugins:()=>f,pluginScriptsToLoad:()=>h});var i=n(3),r=n(6),o=n(84),a=n(23),s=n(11),u=(0,s.cachedDetect)(),l="Audio",c=["airplay","audioChapters","audioShare","captions","captions-v1","chapters","cropFill","customizePreview","customerLogo","dimTheLights","dimthelights","encodingProgress","eventbrite","externalPlayer","facebookPixel","googleAnalytics4","hlsVideo","html5Player","hubspotForm","marketoForm","midrollLink-v1","midrollLink-v2","nativeHlsVideo","notPlayableVideo","passwordProtectedVideo","postRoll-v1","postRoll-v2","requireEmail-v1","share","share-v2","socialbar-v1","thumbnailTextOverlay","thumbnailTextOverlay-v2","turnstile","videoThumbnail","vulcanV2Player","watchNext","wistiaLogo"],d=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).reduce((function(t,e){return-1===c.indexOf(e.name)&&t.push(e),t}),[])},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=o.buildContext(),l=t.mediaType,c=t.embedOptions,d=Object(c).plugin,h=e.plugin||d||{},m=(0,r.merge)({},h,n),g=o.choosePlayer(s,t,e),b=f(m,e);if((u.safari||u.iphone||u.ipad)&&!1!==e.airplayButton){var _={name:"airplay",options:m.airplay||{},async:!0,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/airplay.js")};b.push(_)}var w=p(b,e,g,l);return"vulcan-v2"===g&&e.chaptersOn&&!m.chapters&&w.push({name:v("chapters"),src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/chapters.js"),async:!0}),e.showCustomerLogo&&e.customerLogoImageUrl&&t.enableCustomerLogo&&w.push({name:"customerLogo",options:m.customerLogo||{},async:!0,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/customerLogo.js")}),!0!==e.branding&&!0!==t.branding||w.push({name:"wistiaLogo",options:m.wistiaLogo||{},async:!0,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/wistiaLogo.js")}),"vulcan-v2"!==g||i.default.VulcanV2Player||w.push({name:"vulcanV2Player",options:{},async:!1,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/vulcanV2Player.js")}),y(w)},f=function(t,e){var n={};return Object.keys(t).forEach((function(i){if(function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}(t,i)&&function(t){return"socialbar-v1"!==t&&-1===t.indexOf("transcript")}(v(i))){var o=t[i];if(o&&!1!==o.on){var s=v(i),u={name:s,src:"".concat((0,a.eV1Protocol)(),"//").concat((0,a.eV1HostWithPort)(),"/assets/external/").concat(s,".js"),async:null!=o.async?o.async:!/^(requireEmail|captions|midrollLink|share)/.test(i),options:o};o.src&&m(e)&&(u.src=o.src);var l=n[s];l?(0,r.assign)(l,u):n[s]=u}}})),Object.values(n)},p=function(t,e,n,i){return t.map((function(t){if("vulcan-v2"===n)switch(t.name){case"captions-v1":t.name="captions",t.src=t.src.replace(/captions-v1/,"captions");break;case"share":i===l?(t.name="audioShare",t.src=t.src.replace(/share/,"audioShare")):(t.name="share-v2",t.src=t.src.replace(/share/,"share-v2"));break;case"chapters":i===l?(t.name="audioChapters",t.src=t.src.replace(/chapters/,"audioChapters")):t.name="chapters";break;case"postRoll-v1":t.name="postRoll-v2",t.src=t.src.replace(/postRoll-v1/,"postRoll-v2");break;case"midrollLink-v1":t.name="midrollLink-v2",t.src=t.src.replace(/midrollLink-v1/,"midrollLink-v2");break;case"requireEmail-v1":e._inLegacyPlaylist||(t.name="turnstile",t.src=t.src.replace(/requireEmail-v1/,"turnstile"))}return t}))},y=function(t){var e=function(t){var e=0;return t&&t.options&&t.options.loadWeight&&(e=t.options.loadWeight),e};return t.sort((function(t,n){return e(t)-e(n)}))},v=function(t){switch(t){case"requireEmail":return"requireEmail-v1";case"postRoll":return"postRoll-v2";case"captions":return"captions-v1";default:return t}},m=function(){return!1!==(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).allowThirdParty&&!/([\w_-]+\.)?wistia\.(com|st|io)$/.test(window.location.hostname)}},(t,e,n)=>{n.d(e,{prefetchEngineAndPlugins:()=>u});var i=n(3),r=n(84),o=n(18),a=n(103),s=n(42),u=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,a.pluginScriptsToLoad)(t,e),i=r.buildContext(),o=r.bestUsableEngine(i,t,e),u=l(n),c=(0,s.dynamicImport)("assets/external/".concat(o));return Promise.all([u,c])},l=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter((function(t){return i.default.plugin._prefetched[t.src]||(i.default.plugin._prefetched[t.src]="fetching"),!i.default.plugin._prefetched[t.src]}));return 0===t.length?Promise.resolve():(0,o.runScripts)(t).then((function(){t.forEach((function(t){i.default.plugin._prefetched[t.src]="fetched"}))}))}},(t,e,n)=>{n.r(e),n.d(e,{injectJsonLd:()=>h,removeInjectedJsonLd:()=>f});var i=n(68),r=n(106),o=n(6),a=n(23),s=n(33),u=n(24),l=n(107),c=function(t,e){var n,i="https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId);return(0,r.shouldAddKeyMoments)(t,e)&&!(0,r.shouldAddClipsFromChapters)(e)&&null!==(n=t.embedOptions.plugin)&&void 0!==n&&n.videoThumbnail?"".concat(i,"?wseektoaction=true"):i},d=function(t){var e=t.assets;if("Audio"===t.mediaType)return(0,s.readyPublicMp3s)(e)[0].url;var n=(0,s.findClosestAssetByQuality)((0,s.readyPublicMp4s)(e),1080),i=new u.Url(n.url);return i.ext("m3u8"),i.absolute()},h=function(t,e){var n,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n="Audio"===e.mediaType?function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.videoWidth,r=e.videoHeight,u=e.embedOptions;return u||(u=(0,o.cast)((0,o.clone)(t.embedOptions))),{"@context":"http://schema.org/","@id":"https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId),"@type":"AudioObject",duration:"PT".concat((0,i.secondsToIso8601Duration)(t.duration)),name:t.name,thumbnailUrl:(0,s.stillUrl)(t.assets,{ext:"jpg",protocol:"https:",videoWidth:n,videoHeight:r,embedHost:u.embedHost}),contentUrl:d(t),embedUrl:c(t,u),uploadDate:(0,i.secondsToIso8601Date)(t.createdAt),description:t.seoDescription}}(e,u):function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.videoWidth,u=e.videoHeight,h=e.embedOptions;h||(h=(0,o.cast)((0,o.clone)(t.embedOptions)));var f={"@context":"http://schema.org/","@id":"https://".concat((0,a.cdnFastWistiaNetHost)(),"/embed/iframe/").concat(t.hashedId),"@type":"VideoObject",duration:"PT".concat((0,i.secondsToIso8601Duration)(t.duration)),name:t.name,thumbnailUrl:(0,s.stillUrl)(t.assets,{ext:"jpg",protocol:"https:",videoWidth:n,videoHeight:u,embedHost:h.embedHost}),embedUrl:c(t,h),uploadDate:(0,i.secondsToIso8601Date)(t.createdAt),description:t.seoDescription};if("Video"===t.mediaType&&(f.contentUrl=d(t)),t.captions&&t.captions[0]&&(f.transcript=t.captions[0].text),(0,r.shouldAddKeyMoments)(t,h))if((0,r.shouldAddClipsFromChapters)(h)){var p=(0,l.normalizeChapters)(h).chapterList;f.hasPart=(0,r.clipsFromChapters)(p,location.href,t.duration)}else f.potentialAction=(0,r.seekToAction)();return f}(e,u);var h=JSON.stringify(n),p=document.createElement("script");p.className="w-json-ld",p.type="application/ld+json",p.innerHTML=h,p._wistia=!0,p.setAttribute("id",t),f(t);var y=document.querySelectorAll("script.w-json-ld"),v=y[y.length-1];v?v.parentNode.insertBefore(p,v.nextSibling):document.head.insertBefore(p,document.head.childNodes[0])},f=function(t){if(t){var e=document.getElementById(t);e&&e.remove()}}},(t,e,n)=>{n.d(e,{clipsFromChapters:()=>l,seekToAction:()=>c,shouldAddClipsFromChapters:()=>s,shouldAddKeyMoments:()=>u});var i=n(24),r=n(107);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var s=function(t){var e=(0,r.normalizeChapters)(t);if(!e)return!1;var n=e.chapterList;return!1!==e.on&&"false"!==e.on&&(null==n?void 0:n.length)>0},u=function(t,e){if(!1===e.keyMoments)return!1;var n=t.duration,i=t.type,r=e.plugin||{},o=r.passwordProtectedVideo,a=r["requireEmail-v1"],s="LiveStream"===i,u=!0===(null==o?void 0:o.on)||"true"===(null==o?void 0:o.on),l=a&&!1!==a.on&&"end"!==a.time&&!a.persistentTurnstile;return Boolean(!u&&!l&&!s&&n>=30)},l=function(t,e,n){if(t&&0!==t.length){var r=function(t){var e={};return o(t).sort((function(t,e){return t.time-e.time})).filter((function(t){var n=t.time,i=t.title,r=t.deleted;return!e[n]&&!r&&"Chapter Title"!==i&&(e[n]=!0,!0)}))}(t).map((function(t,r,o){var a=t.time,s=t.title,u=new i.Url(e),l=Math.floor(a),c=o[r+1]?o[r+1].time:n;return u.params.wtime="".concat(l,"s"),{"@type":"Clip",endOffset:Math.floor(c),name:s,startOffset:l,url:u.absolute()}}));return r}},c=function(){var t=new i.Url(location.href);return t.params.wtime="{seek_to_second_number}",{"@type":"SeekToAction",target:"".concat(t.absolute().replace("%7Bseek_to_second_number%7D","{seek_to_second_number}")),"startOffset-input":"required name=seek_to_second_number"}}},(t,e,n)=>{n.d(e,{normalizeChapters:()=>i});var i=function(t){var e=t.plugin,n=t.chaptersOn,i=t.chapterList;return null!=e&&e.chapters?e.chapters:i||n?{on:n,chapterList:i&&i.length>0?i:[]}:void 0}},(t,e,n)=>{n.d(e,{extractEmailFromParams:()=>r});var i=n(48),r=function(t){var e,n,r=null!==(e=/wemail=([^&#]+)/.exec(t))&&void 0!==e?e:null;if(r)return r[1];var o=null!==(n=/wkey=([^&#]+)/.exec(t))&&void 0!==n?n:null;if(o){var a=o[1];return(0,i.base64Decode)(a)}return null}},(t,e,n)=>{n.d(e,{inferPageUrl:()=>i});var i=function(){var t;return null!=(null===(t=window.FreshUrl)||void 0===t?void 0:t.originalUrl)?window.FreshUrl.originalUrl:window.top===window.self?window.location.href||"":document.referrer||""}},(t,e,n)=>{n.d(e,{getViewerPreferences:()=>o,setViewerPreference:()=>a});var i=n(28),r=function(){return"wistia-viewer-preferences"},o=function(){return(0,i.getLocalStorage)(r())},a=function(t,e){(0,i.updateLocalStorage)(r(),(function(n){n[t]=e}))}},(t,e,n)=>{n.d(e,{getChannelStorage:()=>u});var i=n(27),r=n(28),o=function(t){var e=a(t),n=(0,i.getWistiaLocalStorage)()[e]||{},o=s(t);!0!==n.copied&&0!==Object.keys(n).length&&((0,r.updateLocalStorage)(o,(function(t){Object.keys(n).forEach((function(e){t[e]=n[e]}))})),(0,i.updateWistiaLocalStorage)((function(e){e[a(t)].copied=!0})))},a=function(t){return"channel_".concat(t)},s=function(t){return"wistia_channel_".concat(t)},u=function(t){return o(t),(0,r.getLocalStorage)([s(t)])||{}}},(t,e,n)=>{n.d(e,{maybeLoadAndSetupEmbedLinksThrottled:()=>c});var i=n(3),r=n(8),o=n(30),a=n(42),s=n(49),u=n(88);i.default._destructors.destroyEmbedLinks=function(){i.default.EmbedLink.EmbedLinkClass&&i.default.EmbedLink.EmbedLinkClass._onEv1Destroy()};var l=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];(function(){for(var t=(0,u.getAllApiHandlesByDomOrder)(),e=0;e<t.length;e++)if(t[e]._attrs&&t[e]._attrs.playlistLinks)return!0;return document.querySelectorAll('a[href^="#wistia_"]').length>0})()&&(0,a.dynamicImport)("assets/external/embedLinks.js").then((function(t){var n;(n=t.EmbedLink).setupAll.apply(n,e)}))},c=(0,s.default)(1e3,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];l.apply(void 0,e),(0,r.onDocReady)((function(){l.apply(void 0,e),(0,o.doTimeout)("maybe_load_embed_links_5000",l,5e3)}))}));i.default.EmbedLink={},i.default.EmbedLink.setupAll=l},(t,e,n)=>{n.d(e,{inferQualityRangeFromOpts:()=>a});n(33);var i=n(34),r=2160,o=function(t){return"4k"===t?2160:parseInt(t,10)},a=function(t,e){return t.videoQuality&&"auto"!==t.videoQuality?((0,i.countMetric)("legacy/videoquality-embed-option",1,{videoQuality:t.videoQuality,hashedId:null==e?void 0:e.hashedId,url:window.location.href}),"sd-only"===t.videoQuality?[200,360]:"md"===t.videoQuality?[540,r]:"hd-only"===t.videoQuality?[720,r]:[360,r]):[t.qualityMin?o(t.qualityMin):360,t.qualityMax?o(t.qualityMax):r]}},(t,e,n)=>{n.d(e,{generateHtml:()=>a,generateRelativeBlockCss:()=>s});var i=n(6);function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,a=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var a=function t(e){if(/string|number|boolean/.test(typeof e))return e.toString();if(e instanceof Array){var n,o="",a=r(e);try{for(a.s();!(n=a.n()).done;){o+=t(n.value)}}catch(t){a.e(t)}finally{a.f()}return o}if("object"!=typeof e)return e.toString();var s,u,l=[];for(var c in e){var d=e[c];"tagName"===c?s=d:"childNodes"===c?u=d:l.push({key:c,val:d})}s||(s="div");for(var h,f="<".concat(s),p=0,y=l;p<y.length;p++)h=void 0,"style"===(h=y[p]).key&&(0,i.isObject)(h.val)&&(h.val="".concat(function(){var t=[];for(var e in h.val){var n=h.val[e];t.push("".concat(e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(n))}return t}().join(";"),";")),f+=" ".concat(h.key,'="').concat(h.val,'"');return/^(br|hr|img|link|meta|input)$/i.test(s)?f+=" />":(f+=">",u&&("string"==typeof u?f+=u:"object"==typeof u&&(f+=t(u))),f+="</".concat(s,">")),f},s="display:inline-block;height:100%;line-height:normal;margin:0;padding:0;position:relative;vertical-align:top;width:100%;"},(t,e,n)=>{n.d(e,{sanePlayerColor:()=>i});var i=function(t){if(t){if((t="".concat(t).replace(/^#/g,"")).length<6){for(var e="",n=0;n<6-t.length;n++)e+="0";t="".concat(e).concat(t)}return/^[\da-f]{6}$/i.test(t)||(t="636155"),t}return"636155"}},(t,e,n)=>{n.d(e,{scrollLeft:()=>i,scrollTop:()=>r});var i=function(t){var e,n,i,r;if(!t)return(null===(e=document)||void 0===e||null===(n=e.documentElement)||void 0===n?void 0:n.scrollLeft)||(null===(i=document)||void 0===i||null===(r=i.body)||void 0===r?void 0:r.scrollLeft)||0;document.body&&(document.body.scrollLeft=t),document.documentElement&&(document.documentElement.scrollLeft=t)},r=function(t){var e,n,i,r;if(!t)return(null===(e=document)||void 0===e||null===(n=e.documentElement)||void 0===n?void 0:n.scrollTop)||(null===(i=document)||void 0===i||null===(r=i.body)||void 0===r?void 0:r.scrollTop)||0;document.body&&(document.body.scrollTop=t),document.documentElement&&(document.documentElement.scrollTop=t)}},(t,e,n)=>{n.d(e,{uniqId:()=>i});var i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(n+=window.performance.now()),t+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx-xxxxxxxxx-xxxxxxxxxxxx-xxxx".replace(/[xy]/g,(function(t){var e=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"===t?e:3&e|8).toString(16)}))+e}},(t,e,n)=>{n.r(e),n.d(e,{insertIntoArray:()=>r,toArray:()=>o});var i=function(t,e){for(var n=0,i=t.length,r=i>=0;r?n<=i:n>=i;r?n+=1:n-=1)if("function"==typeof e){if(e(t[n]))return n}else if(t[n]===e&&t[n]===e)return n;return-1},r=function(t,e,n){var r;return null==n&&(n={}),n.after?(r=i(t,n.detect||n.after))>=0?t.splice(r+1,0,e):"undefined"!=typeof console&&null!==console?console.log("".concat(n.after," not found when trying to add ").concat(e," to array")):void 0:n.before?(r=i(t,n.detect||n.before))>=0?t.splice(r,0,e):"undefined"!=typeof console&&null!==console?console.log("".concat(n.before," not found when trying to add ").concat(e," to array")):void 0:null!=n.index?t.splice(n.index,0,e):t.push(e)},o=function(t,e){if(null==e&&(e=/\s+/),t instanceof Array)return t;if("string"==typeof t)return t.split(e);throw new Error("Don't know how to convert ".concat(t," into an array."))}},(t,e,n)=>{var i=n(84),r=n(33),o=n(72),a=n(91),s=n(23),u=n(52),l=n(115),c=n(30),d=n(6),h=n(120),f=n(5),p=n(20),y=n(114),v=n(41),m=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}var b=.5;!function(t){var e=window.Wistia;if(!e.Player){var n=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.publicApi=e,this.embedElement=e.container,this.uuid=(0,p.seqId)(),this._baseEventLoopDuration=300,this._eventLoopDuration=300,this.info("constructor"),this.transferFacadeProperties(),this._impl=this,(0,d.keys)(e).forEach((function(t){var i=e[t];i instanceof a.StopGo&&!m(n,t)&&(n[t]=i)})),this.plugin=this.publicApi.plugin,this.ready=new a.StopGo,this.hasData=new a.StopGo,this.embedded=new a.StopGo,this.commandQueueOpen=new a.StopGo,this.hasData(!0),this.commandQueueOpen(!0),this.playing=new a.StopGo,this.notFullscreen=new a.StopGo,this.resetStateVariables(),this.publicApi.isLiveMedia()||this.setupPercentTracking(),this._recordFirstEmbedIfEligible()}var n,_,w;return n=t,_=[{key:"addLoopBehavior",value:function(){var t=this;this.whenVideoElementInDom().then((function(){var e;null===(e=t.engine)||void 0===e||e.getMediaElement().setAttribute("loop","")}))}},{key:"animate",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.info("animate",e,n);var i=n.callback;return n.callback=function(){(0,f.elemStyle)(t.grid.root,{position:"relative"}),null==i||i()},(0,f.elemStyle)(this.grid.root,{position:"absolute"}),(0,f.elemAnimate)(this.grid.root,e,n),this}},{key:"aspect",value:function(){if(this._attrs.aspect)return this._attrs.aspect;if(this.publicApi.isAudio())return this.publicApi.width()/this.publicApi.height();if(this._currentAsset)return"variable"==this._currentAsset.width?this.mp4Aspect()||this.originalAspect():this._currentAsset.width/this._currentAsset.height;var t=this.asset({container:/mp4/});return t?t.width/t.height:640/360}},{key:"asset",value:function(t){if("string"==typeof arguments[0]){var e="".concat(arguments[0],"Asset"),n=arguments[1];return this[e](n)}var i=arguments[0];return this.assets(i)[0]||null}},{key:"assets",value:function(t){return r.filter(this._mediaData.assets,t)}},{key:"bigPlayButtonEnabled",value:function(t){return this.publicApi._attrs.bigPlayButton=t,this}},{key:"canAutoPlay",value:function(){return!0}},{key:"cancelFullscreen",value:function(){this.info("cancelFullscreen"),this.rebuild()}},{key:"checkForReady",value:function(){throw new Error("Define in subclass!")}},{key:"cleanupRefs",value:function(){var t,e=this;null===(t=this.cleanup)||void 0===t||t.call(this),(0,d.keys)(this).forEach((function(t){var n,i=e[t];null!=i&&i!==e&&(null===(n=i.cleanup)||void 0===n||n.call(i))}))}},{key:"constrainToHeight",value:function(){return this.videoWidth(this.widthForHeight(this.videoHeight()))}},{key:"constrainToWidth",value:function(){return this.videoHeight(this.heightForWidth(this.videoWidth()))}},{key:"disableTextTracks",value:function(){var t=this;this.info("disableTextTracks"),this._disableTextTracks||(this._disableTextTracks=function(){var e;null!==(e=t.elem())&&void 0!==e&&e.textTracks&&Array.prototype.slice.call(t.elem().textTracks).forEach((function(t){t.mode="disabled"}))}),this.rebind("play",this._disableTextTracks)}},{key:"duration",value:function(){return this._mediaData.duration||null}},{key:"elem",value:function(){return null}},{key:"embed",value:function(){throw new Error("Define in subclass!")}},{key:"embedOptions",value:function(){return this._embedOptions||(this._embedOptions=(0,d.clone)(this._opts)),this._embedOptions}},{key:"eventKey",value:function(){var t;return null===(t=this._tracker)||void 0===t?void 0:t.eventKey()}},{key:"extraHeight",value:function(){return Math.max((0,f.elemHeight)(this.grid.above),(0,f.elemHeight)(this.grid.top))+Math.max((0,f.elemHeight)(this.grid.below),(0,f.elemHeight)(this.grid.bottom))}},{key:"extraWidth",value:function(){return(0,f.elemWidth)(this.grid.left)+(0,f.elemWidth)(this.grid.right)}},{key:"fade",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return f.elemAnimate.apply(void 0,[this.gridChildren(),{opacity:t}].concat(n))}},{key:"fadeIn",value:function(){var t=this,e=this._shortAnimArgs(arguments),n=e.callback;e.callback=function(){(0,f.elemStyle)(t.gridChildren(),{opacity:""}),null==n||n()},(0,f.elemStyle)(this.gridChildren(),{opacity:0}),setTimeout((function(){return t.fade(1,e)}),1)}},{key:"fadeOut",value:function(){var t=this,e=this._shortAnimArgs(arguments);(0,f.elemStyle)(this.gridChildren(),{opacity:1}),setTimeout((function(){return t.fade(0,e)}),1)}},{key:"fit",value:function(){return this.info("fit"),this._opts.dontFit||(this.grid.root.style.height="".concat((0,f.elemHeight)(this.chrome),"px"),this.grid.root.style.width="".concat((0,f.elemWidth)(this.chrome),"px")),e.grid.fitVertical(this),e.grid.fitHorizontal(this)}},{key:"focus",value:function(){var t;null===(t=this.chrome)||void 0===t||t.focus()}},{key:"freezeLastFrame",value:function(){}},{key:"fullscreenControlEnabled",value:function(t){return this.publicApi._attrs.fullscreenControl=t,this}},{key:"getVisitorKey",value:function(){return this.visitorKey()}},{key:"getEventKey",value:function(){return this.eventKey()}},{key:"getMediaElement",value:function(){}},{key:"getMediaType",value:function(){return this._mediaData.mediaType||null}},{key:"getReadyState",value:function(){var t,e;return null===(t=this.engine)||void 0===t||null===(e=t.getMediaElement())||void 0===e?void 0:e.readyState}},{key:"getStandardBuffered",value:function(){var t,e;return null===(t=this.engine)||void 0===t||null===(e=t.getMediaElement())||void 0===e?void 0:e.buffered}},{key:"gridChildren",value:function(){var t=this,n=this.grid;window.NodeList&&!NodeList.prototype.forEach&&(n=Array.prototype.slice.call(this.grid));var i=[];return(0,d.keys)(n).forEach((function(n){t.grid[n].childNodes.forEach((function(n){e.isGridElem(t.grid,n)||i.push(n)}))})),i}},{key:"handleError",value:function(t){throw e.Metrics.videoCount(this,"player/playback-error"),t}},{key:"hashedId",value:function(){return this._hashedId}},{key:"hdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"hlsAsset",value:function(t){return r.m3u8(this._mediaData.assets,t)}},{key:"hlsAssetInRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.m3u8(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),t))}},{key:"height",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t){this.info("height",t,n),t=parseFloat(t);var i=this.height();return this.grid.wrapper.style.height=this.chrome.style.height="".concat(t,"px"),n.dontChangeContainer||(this._embedContainer.style.height="".concat(t,"px")),this.grid.center.style.height="100%",this._opts.dontFit?(this.grid.main.style.height="".concat(t-(0,f.elemHeight)(this.grid.above)-(0,f.elemHeight)(this.grid.below),"px"),this.grid.main.style.marginTop="".concat((0,f.elemHeight)(this.grid.top),"px")):(e.grid.fitHorizontal(this),e.grid.fitVertical(this)),(Math.abs(t-i)>b||n.trigger)&&this.trigger("heightchange",t,i),n.constrain&&this.constrainToHeight(),this}return(0,f.elemHeight)(this.grid.center)+Math.max((0,f.elemHeight)(this.grid.above),(0,f.elemHeight)(this.grid.top))+Math.max((0,f.elemHeight)(this.grid.below),(0,f.elemHeight)(this.grid.bottom))}},{key:"heightForWidth",value:function(t){return t/this.aspect()}},{key:"implContainer",value:function(){return this._opts.subContainer?this._embedContainer:this.grid.center}},{key:"inFullscreen",value:function(){return!1}},{key:"init",value:function(){return this.setupPipedreamTracking(),this}},{key:"inSilentPlaybackMode",value:function(){return!1}},{key:"iphoneAsset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._iphoneAsset||(this._iphoneAsset=r.iphone(this._mediaData.assets,t)),this._iphoneAsset}},{key:"iphoneAssetInRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.iphone(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),t))}},{key:"isMuted",value:function(){return Boolean(this._opts.muted)}},{key:"isRemoved",value:function(){return null===this.grid}},{key:"lastPlayInfo",value:function(){return{}}},{key:"mp4Aspect",value:function(){var t=this.mp4Asset({width:640})||this.mp4Asset({width:960})||this.mp4Asset();return t?t.width/t.height:null}},{key:"mdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"mp4Asset",value:function(t){return r.mp4(this._mediaData.assets,t)}},{key:"mp4AssetInRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.mp4(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),t))}},{key:"mute",value:function(){this._muted=!0,this.trigger("volumechange",this.volume()),this.embedElement.dispatchEvent(new CustomEvent("volumechange",{detail:{volume:this.volume(),muted:!0}}))}},{key:"originalAspect",value:function(){var t=this.originalAsset();if(t)return t.width/t.height;var e=this.bestAsset();return e().width/e().height}},{key:"originalAsset",value:function(){return this._original||(this._original=r.original(this._mediaData.assets)),this._original}},{key:"name",value:function(t){return null!=t&&(this._name=t,this.trigger("namechange",t)),null!=this._name?this._name:this._mediaData.name||""}},{key:"pageUrl",value:function(){return this.publicApi._attrs.pageUrl}},{key:"pause",value:function(){var t=this;return this.info("pause"),this.ready((function(){return t.pause()})),this}},{key:"percentWatched",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatched()/Math.ceil(this.duration()):0}},{key:"placeEmbed",value:function(t){var e=this.implContainer();this.info("placeEmbed",e,t),this.wrapperElem=(0,f.elemFromObject)({id:(0,p.seqId)("wistia_video_wrapper_"),style:y.generateRelativeBlockCss,class:"wistia_video_wrapper"}),(0,f.elemStyle)(this.wrapperElem,{overflow:"hidden"}),(0,f.elemAppend)(e,this.wrapperElem),"string"==typeof t?this.wrapperElem.innerHTML+=t:(0,f.elemAppend)(this.wrapperElem,t)}},{key:"play",value:function(){var t=this;return this.info("play"),this.ready((function(){return t.play()})),this}},{key:"playableAsset",value:function(t){return r.playable(this._mediaData.assets,t)}},{key:"playableAssetInRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.playable(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),t))}},{key:"playbackRate",value:function(t){return null!=t?this:1}},{key:"playbarControlEnabled",value:function(t){return this.publicApi._attrs.playBarControl=t,this}},{key:"playerColor",value:function(t){var e=this._attrs,n=this.embedElement;if(void 0!==n.playerColor)return void 0!==t?(n.playerColor=t,this):n.playerColor;if(null!=t){this.info("playerColor",t);var i=e.playerColor;return t=(0,l.sanePlayerColor)(t),e.playerColor=new o.default(t).toHex(),i!==e.playerColor&&n.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:e.playerColor,prevColor:i}})),this}return e.playerColor}},{key:"playerLanguage",value:function(t){var e=this;if(null==t)return(0,v.getLanguage)(this._attrs.playerLanguage)||(0,v.getLanguage)("en-US");this.embedded((function(){if(!(0,v.getLanguage)(t))throw new Error("Language ".concat(t," isn't defined."));t!==e._attrs.playerLanguage&&(e._attrs.playerLanguage=t,e.trigger("playerlanguagechange",(0,v.getLanguage)(t)))}))}},{key:"playPauseNotifierEnabled",value:function(t){return this.publicApi._attrs.playPauseNotifier=t,this}},{key:"preloadValue",value:function(){var t;return null===(t=this.engine)||void 0===t?void 0:t.getPreload()}},{key:"qualityMax",value:function(t){var e;null!==(e=this.engine)&&void 0!==e&&e.qualityMax&&this.engine.qualityMax(t)}},{key:"qualityMin",value:function(t){var e;null!==(e=this.engine)&&void 0!==e&&e.qualityMin&&this.engine.qualityMin(t)}},{key:"qualityOptions",value:function(){var t=this._attrs;return{qualityMin:t.qualityMin,qualityMax:t.qualityMax}}},{key:"rebuild",value:function(){var t=this;return this.info("rebuild"),this.embedded((function(){t.ready(!1),t._oldVideoElem=t.elem(),t.stopStreaming(),(0,f.elemRemove)(t.wrapperElem),t.wipeOutstandingAsyncFunctions(),t.embed()})),this}},{key:"remove",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.info("remove"),!1!==n.trigger&&this.trigger("beforeremove"),this.hasData(!1),this.ready(!1),this.embedded(!1),null===(t=this.engine)||void 0===t||t.destroy(),this.stopStreaming(),!1!==n.trigger&&(this.trigger("down"),this.trigger("afterremove")),this.wipeOutstandingAsyncFunctions(),this._bindings={},this.cleanupRefs(),null!==(e=this.grid)&&void 0!==e&&e.root&&((0,f.elemUnbindAllInside)(this.grid.root),(0,f.elemRemove)(this.grid.root)),this.grid=null,this.elem()&&this.elem().removeEventListener("error",this.handleError)}},{key:"removeLoopBehavior",value:function(){var t=this;this.whenVideoElementInDom().then((function(){var e;null===(e=t.engine)||void 0===e||e.getMediaElement().removeAttribute("loop")}))}},{key:"renderUI",value:function(){}},{key:"requestFullscreen",value:function(){}},{key:"resetStateVariables",value:function(){this.info("resetStateVariables"),this._lastTimePosition=-1,this._lastState="beforeplay",this._streamSet=!1,this._issuedPlay=!1,this._issuedPause=!1,this._beforePlay=!0,this._hasPlayed=!1,this._waiting=0,this._ended=!1,this.playing(!1)}},{key:"sdAsset",value:function(){throw new Error("Implement in subclass!")}},{key:"secondsWatched",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatched():0}},{key:"secondsWatchedVector",value:function(){return this._secondsWatchedTracker?this._secondsWatchedTracker.secondsWatchedVector():[]}},{key:"setBigPlayButtonBorderRadius",value:function(t){this._attrs.bigPlayButtonBorderRadius=t,this.embedElement.dispatchEvent(new Event("bigplaybuttonborderradiuschange")),this.trigger("bigplaybuttonborderradiuschange")}},{key:"setControlBarBorderRadius",value:function(t){this._attrs.controlBarBorderRadius=t,this._attrs.playerBorderRadius&&0!==t?this.setControlBarDistance(this._attrs.playerBorderRadius/4):this.setControlBarDistance(.333*t),this.embedElement.dispatchEvent(new Event("controlbarborderradiuschange")),this.trigger("controlbarborderradiuschange")}},{key:"setControlBarDistance",value:function(t){this._attrs.controlBarDistance=t,this.embedElement.dispatchEvent(new Event("controlbardistancechange")),this.trigger("controlbardistancechange")}},{key:"setFloatingControlBar",value:function(t){this._attrs.floatingControlBar=t}},{key:"setPlayerBorderRadius",value:function(t){this._attrs.playerBorderRadius=t,this.embedElement.dispatchEvent(new Event("playerborderradiuschange")),this.trigger("playerborderradiuschange")}},{key:"setPlayerColor",value:function(t){return this.playerColor(t),this}},{key:"setRoundedPlayer",value:function(t){this.setFloatingControlBar(Boolean(t)),this.setPlayerBorderRadius(t),this.setControlBarDistance(.25*t),this.setBigPlayButtonBorderRadius(.75*t),this.setControlBarBorderRadius(.75*t),this.renderUI()}},{key:"setResumable",value:function(t){this._attrs.resumable=t,this.embedElement.dispatchEvent(new Event("resumablechange"))}},{key:"setupGrid",value:function(t){return this.grid||(this.grid=e.createGrid(this,t),(0,f.elemAppend)(this.chrome,this.grid.root)),this.grid}},{key:"setupPercentTracking",value:function(){var t=this;if(!this._trackPercent){if(this._secondsWatchedTracker=new h.SecondsWatchedTracker(this,this.duration(),{maxWatchingPlaybackRate:this._opts.maxWatchingPlaybackRate}),"playing"===this.state())for(var e=Math.ceil(this.time()),n=0;n<e;n++)this._secondsWatchedTracker.trackSecond(n,{force:!0});this._trackPercent=function(e){var n=t.percentWatched();t._secondsWatchedTracker.trackSecond(e),t.percentWatched()!==n&&(t.embedElement.dispatchEvent(new CustomEvent("percentwatchedchange",{detail:{percentWatched:t.percentWatched(),lastPercentWatched:n}})),t.trigger("percentwatchedchanged",t.percentWatched(),n),t._percentWatchedThreshold(t.percentWatched()))},this.rebind("secondchange",this._trackPercent)}}},{key:"setupPipedreamTracking",value:function(){var t=this;this.whenVideoElementInDom().then((function(n){(0,c.doTimeout)("".concat(t.uuid,".track-initembed"),(function(){e.Metrics.videoCount(t,"player/initembed"),e.Metrics.assetBuckets(t).forEach((function(n){e.Metrics.videoCount(t,"player/initembed.".concat(n))}));var n=(0,i.usablePlayers)(t.publicApi.judyCtx(),t.publicApi._mediaData);e.Metrics.videoCount(t,"player/available-players",1,{available_players:n})}),100),n.addEventListener("error",t.handleError)})),this.bind("play",(function(){return e.Metrics.videoCount(t,"player/play"),e.Metrics.assetBuckets(t).forEach((function(n){e.Metrics.videoCount(t,"player/play.".concat(n))})),t.unbind})),e.Metrics.countEventOnce(this,"enter-fullscreen"),e.Metrics.countEventOnce(this,"end"),e.Metrics.countShowLoadingOnce(this),e.Metrics.countShowLoadingAll(this),e.Metrics.countShowLoadingLongTimeOnce(this),e.Metrics.countShowLoadingLongTimeAll(this),this.bind("secondchange",(function(){if(t.secondsWatched()>=10)return e.Metrics.videoCount(t,"player/played-10-seconds"),t.unbind})),this.bind("secondchange",(function(){if(t.secondsWatched()>=30)return e.Metrics.videoCount(t,"player/played-30-seconds"),t.unbind}))}},{key:"settingsControlEnabled",value:function(t){return this.publicApi._attrs.settingsControl=t,this}},{key:"slide",value:function(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return this.animate.apply(this,[{transform:"translate(".concat(t,"px,").concat(e,"px)")}].concat(i))}},{key:"slideInLeft",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,f.elemStyle)(this.grid.root,{transform:"translate(".concat(this.videoWidth(),"px, 0px)")}),setTimeout((function(){return t.slide(0,0,e)}),1),this}},{key:"slideInRight",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,f.elemStyle)(this.grid.root,{transform:"translate(".concat(-this.videoWidth(),"px, 0px)")}),setTimeout((function(){return t.slide(0,0,e)}),1),this}},{key:"slideOutLeft",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,f.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout((function(){return t.slide(-t.videoWidth(),0,e)}),1),this}},{key:"slideOutRight",value:function(){var t=this,e=this._shortAnimArgs(arguments);return(0,f.elemStyle)(this.grid.root,{transform:"translate(0px, 0px)"}),setTimeout((function(){return t.slide(t.videoWidth(),0,e)}),1),this}},{key:"playPauseControlEnabled",value:function(t){return this.publicApi._attrs.playPauseControl=t,this}},{key:"suppressPlay",value:function(t){return null!=t?(this.info("suppressPlay",t),this._suppressPlay=Boolean(t),this._suppressPlay):this._suppressPlay}},{key:"state",value:function(){return"beforeplay"}},{key:"stillAsset",value:function(){return r.still(this._mediaData.assets)}},{key:"stillUrl",value:function(t){var e,n;return(t=(0,d.merge)({videoWidth:this.videoWidth(),videoHeight:this.videoHeight()},this._opts,{stillUrl:this._attrs.poster},t)).playerColor||(t.playerColor=null===(e=this._mediaData)||void 0===e||null===(n=e.embedOptions)||void 0===n?void 0:n.playerColor),r.stillUrl(this._mediaData.assets,t)}},{key:"stopStreaming",value:function(){}},{key:"thumbnailAssets",value:function(){return r.thumbnailAssets(this._mediaData.assets,(0,d.merge)({},this._opts,{stillUrl:this._attrs.poster},{playButton:!1,videoHeight:this.videoHeight(),videoWidth:this.videoWidth()}))}},{key:"time",value:function(t){var e=this;return null!=t?(this.info("time",t),this.ready((function(){return e.time(t)})),this):0}},{key:"transferFacadeProperties",value:function(){var t=this;"\n _attrs\n _embedContainer\n _givenOptions\n _hashedId\n _hasImpl\n _mediaData\n _opts\n _originalMediaData\n _tracker\n chrome\n container\n controls\n data\n down\n fullscreenContainer\n options\n params\n plugin\n plugins\n up\n ".split(/[\n\s]+/).forEach((function(e){t[e]=t.publicApi[e]}))}},{key:"trim",value:function(t){if(null==t)return this._trimSettings||{start:0,end:-1};this._trimSettings=t}},{key:"unmute",value:function(){this._muted=!1,this._isPlayingSilently=!1,this.trigger("volumechange",this.volume()),this.embedElement.dispatchEvent(new CustomEvent("volumechange",{detail:{volume:this.volume(),muted:!1}}))}},{key:"videoHeight",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{constrain:!1,trigger:!1};if(null!=t){this.info("videoHeight",t,n),t=parseFloat(t);var i=this.height();this.grid.main.style.height="".concat(t,"px"),this.grid.center.style.height="100%",this.grid.main.style.height="".concat(t,"px");var r=Math.max((0,f.elemHeight)(this.grid.above),(0,f.elemHeight)(this.grid.top))+Math.max((0,f.elemHeight)(this.grid.below),(0,f.elemHeight)(this.grid.bottom));return this.grid.wrapper.style.height=this.chrome.style.height="".concat(t+r,"px"),this._embedContainer.style.height="".concat(t+r,"px"),e.grid.fitHorizontal(this),e.grid.fitVertical(this),Math.abs(t-i)>b&&this.trigger("heightchange",t,i),n.constrain&&this.constrainToHeight(),this}return(0,f.elemHeight)(this.grid.center)}},{key:"videoWidth",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{constrain:!1,trigger:!1};if(null!=t){this.info("videoWidth",t,n),t=parseFloat(t);var i=this.width();this.grid.center.style.width="100%",this.grid.main.style.width="".concat(t,"px");var r=(0,f.elemWidth)(this.grid.left)+(0,f.elemWidth)(this.grid.right);return this.grid.wrapper.style.width=this.chrome.style.width="".concat(t+r,"px"),this._embedContainer.style.width="".concat(t+r,"px"),e.grid.fitHorizontal(this),e.grid.fitVertical(this),Math.abs(t-i)>b&&this.trigger("widthchange",t,i),n.constrain&&this.constrainToWidth(),this}return(0,f.elemWidth)(this.grid.center)}},{key:"getVideoQuality",value:function(){return"auto"}},{key:"setVideoQuality",value:function(){return this}},{key:"visitorKey",value:function(){var t;return null===(t=this._tracker)||void 0===t?void 0:t.visitorKey()}},{key:"volume",value:function(t){var e=this;return null!=t?(this.info("volume",t),this.volumeAttr(t),this.ready((function(){return e.volume(t)}))):0}},{key:"volumeAttr",value:function(t){this._attrs.volume=t}},{key:"volumeControlEnabled",value:function(t){return this.publicApi._attrs.volumeControl=t,this}},{key:"webmAsset",value:function(t){return r.webm(this._mediaData.assets,t)}},{key:"webmAssetInRange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return r.webm(this._mediaData.assets,(0,d.merge)(this.qualityOptions(),t))}},{key:"whenVideoElementInDom",value:function(){return new Promise((function(t){}))}},{key:"width",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null!=t){this.info("width",t,n),t=parseFloat(t);var i=this.width();return this.grid.wrapper.style.width=this.chrome.style.width="".concat(t,"px"),n.dontChangeContainer||(this._embedContainer.style.width="".concat(t,"px")),this.grid.center.style.width="100%",this._opts.dontFit?(this.grid.main.style.width="".concat(t-(0,f.elemWidth)(this.grid.left)-(0,f.elemWidth)(this.grid.right),"px"),this.grid.main.style.marginLeft="".concat((0,f.elemWidth)(this.grid.left),"px")):(e.grid.fitHorizontal(this),e.grid.fitVertical(this)),(Math.abs(t-i)>b||n.trigger)&&this.trigger("widthchange",t,i),n.constrain&&this.constrainToWidth(),this._width=t,this}return(0,f.elemWidth)(this.grid.left)+(0,f.elemWidth)(this.grid.center)+(0,f.elemWidth)(this.grid.right)}},{key:"widthForHeight",value:function(t){return t*this.aspect()}},{key:"wipeOutstandingAsyncFunctions",value:function(){this.info("wipeOutstandingAsyncFunctions"),u.globalEventLoop.remove(this.uuid),(0,c.clearTimeouts)(this.uuid),this._remoteMediaKey&&(0,c.clearTimeouts)(this._remoteMediaKey)}},{key:"_isExternallyEmbedded",value:function(){return!this._isOnWistia()}},{key:"_isLoggedIn",value:function(){return document.querySelector("body").classList.contains("logged_in")}},{key:"_isOnWistia",value:function(){var t=this._opts._inIframe?document.referrer:window.location.href;return/wistia\.(io|st|com)/.test(t)}},{key:"_isShared",value:function(){return this._isOnWistia()&&!this._isLoggedIn()}},{key:"_percentWatchedThreshold",value:function(t){var e=this;this._thresholds||(this._thresholds=[.25,.5,.75,1]);var n=[],i=Math.round(100*t)/100;this._thresholds.forEach((function(t){i>=t?e.trigger("percentWatchedThreshold",t):n.push(t)})),this._thresholds=n}},{key:"_recordFirstEmbedIfEligible",value:function(){var t=this._mediaData,e=t.accountKey,n=t.firstEmbedForAccount,i=t.firstShareForAccount,r=t.hashedId,o=n&&this._isExternallyEmbedded(),a=i&&this._isShared();if(o||a){var u="".concat((0,s.eV1Protocol)(),"//").concat((0,s.appHost)(),"/account/activities"),l={account_key:e,media_hashed_id:r};o?l.first_embed=this._isExternallyEmbedded():a&&(l.first_share=this._isShared()),fetch(u,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)})}}},{key:"_refreshDataFromServer",value:function(t,n){var i=this,r=this.embedOptions().embedHost||e.remote.embedHost();return fetch("//".concat(r,"/embed/medias/").concat(this.hashedId(),".json")).then((function(t){return t.json()})).then((function(n){return i.publicApi._originalMediaData=n.media,i._mediaData=i.publicApi._transformAndUpdateMediaData(),i._newStill&&i._replaceStillAsset(i._newStill),i.publicApi._mediaData=i._mediaData,e.cacheMedia(i.hashedId(),i._mediaData),null==t||t(),i.trigger("refreshed-from-server"),i._mediaData})).catch(n)}},{key:"_replaceStillAsset",value:function(t){var e=this.assets().filter((function(t){return"still_image"!==t.type}));this._mediaData.assets=e,this._mediaData.assets.push(t)}},{key:"_shortAnimArgs",value:function(t){return"function"==typeof t[0]?{callback:t[0]}:(0,d.merge)({},t[0],{callback:t[1]})}}],_&&g(n.prototype,_),w&&g(n,w),Object.defineProperty(n,"prototype",{writable:!1}),t}();n.FAILED=-1,n.PROCESSING=1,n.QUEUED=0,n.READY=2,n.asset=r.one,n.assets=r.filter,n.assetsWithinQualityRange=r.withinQualityRange,n.bakeryHosts=function(){return r.BAKERY_HOSTS},n.isBakeryUrl=r.isBakeryUrl,n.stillAsset=r.still,n.stillUrl=r.stillUrl,e.mixin(n.prototype,e.bindable),e.mixin(n.prototype,e.logHelpers),n.prototype._logPrefix=function(){var t;return[this.constructor.name,this.hashedId()||"no hashedId",null===(t=this._embedContainer)||void 0===t?void 0:t.id,this.uuid]};var _=n.prototype.trigger;n.prototype.trigger=function(){for(var t,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return _.apply(this,n),(t=this.publicApi)._triggerNoImpl.apply(t,n)},Object.getOwnPropertyNames(e.PublicApi.prototype).forEach((function(t){var i=e.PublicApi.prototype[t];"function"!=typeof i||m(n.prototype,t)||function(t,e){n.prototype[t]=function(){var e;return(e=this.publicApi)[t].apply(e,arguments)},n.prototype[t]._originalMethod=e}(t,i)})),e.Player=e.Video=n}}()},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function r(t,e,n){return(e=o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}n.d(e,{SecondsWatchedTracker:()=>a});var a=function(){function t(e,n){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r(this,"onTimeChange",(function(){i.lastTimeChangeAt=i.timeChangeAt,i.timeChangeAt=Date.now()})),r(this,"onPlaybarDragEnd",(function(){i.playbarDragEndAt=Date.now()})),r(this,"onPlay",(function(){i.playedAt=Date.now()})),this.video=e,this.duration=n,this.maxWatchingPlaybackRate=o.maxWatchingPlaybackRate||8,this.video.bind("timechange",this.onTimeChange),this.video.bind("playbardragend",this.onPlaybarDragEnd),this.video.bind("play",this.onPlay),this.reset()}var e,n,o;return e=t,n=[{key:"trackSecond",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{force:!1},i=function(){!n.force&&e.shouldIgnoreTrack()||t>=e._secondsWatched.length||(e._secondsWatched[t]+=1,1===e._secondsWatched[t]?e._totalWatched+=1:e._totalRewatched+=1)};this.isScrubbing()?(clearTimeout(this.delayedScrubTimeout),this.delayedScrubTimeout=setTimeout(i,this.eventLoopDuration())):i()}},{key:"shouldIgnoreTrack",value:function(){return"playing"!==this.video.state()||this.video.playbackRate()>=this.maxWatchingPlaybackRate||!this.justReleasedPlaybar()&&!this.justPlayed()&&(!!this.isScrubbing()||void 0)}},{key:"eventLoopDuration",value:function(){var t;return(null===(t=this.video._impl)||void 0===t?void 0:t._eventLoopDuration)||300}},{key:"isScrubbing",value:function(){return this.lastTimeChangeAt&&Date.now()-this.lastTimeChangeAt<this.eventLoopDuration()}},{key:"justPlayed",value:function(){return this.playedAt&&Date.now()-this.playedAt<this.eventLoopDuration()}},{key:"justReleasedPlaybar",value:function(){return this.playbarDragEndAt&&Date.now()-this.playbarDragEndAt<this.eventLoopDuration()}},{key:"secondsWatched",value:function(){return this._totalWatched||0}},{key:"secondsWatchedVector",value:function(){return this._secondsWatched}},{key:"reset",value:function(){clearTimeout(this.delayedScrubTimeout),this.timeChangeAt=null,this.lastTimeChangeAt=null,this.lastPlaybarDragEndAt=null,this._secondsWatched=[];for(var t=0;t<Math.ceil(this.duration);t++)this._secondsWatched.push(0);this._totalWatched=0,this._totalRewatched=0}}],n&&i(e.prototype,n),o&&i(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{var i,r=n(5);null==(i=window.Wistia)._onFullscreenChange&&(i._onFullscreenChange=function(){return r.fullscreenElement()?i.trigger("enterfullscreen",r.fullscreenElement()):i.trigger("cancelfullscreen")}),i._initializers.initFullscreenTriggers=function(){return r.elemRebind(document,"mozfullscreenchange",i._onFullscreenChange),r.elemRebind(document,"webkitfullscreenchange",i._onFullscreenChange),r.elemRebind(document,"MSFullscreenChange",i._onFullscreenChange),r.elemRebind(document,"fullscreenchange",i._onFullscreenChange)},i._destructors.destroyFullscreenTriggers=function(){return r.elemUnbind(document,"mozfullscreenchange",i._onFullscreenChange),r.elemUnbind(document,"webkitfullscreenchange",i._onFullscreenChange),r.elemUnbind(document,"MSFullscreenChange",i._onFullscreenChange),r.elemUnbind(document,"fullscreenchange",i._onFullscreenChange)}},(t,e,n)=>{n(23);var i,r=n(24),o=n(30),a=n(20),s=n(6);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}(i=window.Wistia).BandwidthTest=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.opt=e,this.opt=(0,s.merge)({minKbps:2500,timeoutLength:4e3,freshFor:36e5},this.opt),this.opt.uuid||(this.opt.uuid=(0,a.seqId)("bandwidth_test_"))}var e,n,l;return e=t,(n=[{key:"start",value:function(){var t,e=this;null===(t=this._testXhr)||void 0===t||t.abort(),this._testStart=(new Date).getTime(),this._testXhr=new XMLHttpRequest,this._testXhr.open("GET",this.testFileUrl(),!0);var n=1e6*Math.floor(100*Math.random()),i=n+999999;return this._testXhr.setRequestHeader("Range","bytes=".concat(n,"-").concat(i)),(0,o.doTimeout)("".concat(this.uuid,".cancel_bandwidth_test"),(function(){return e.trigger("timeout"),e.fail()}),this.opt.timeoutLength),this._testDataLoaded=0,this._onTestXhrProgress=function(t){return e._testDataLoaded=t.loaded,e.trigger("progress",t)},this._testXhr.addEventListener("progress",this._onTestXhrProgress),this._onTestXhrLoaded=function(){return e.succeed()},this._testXhr.addEventListener("load",this._onTestXhrLoaded),this._testXhr.send(null),this.trigger("started")}},{key:"fail",value:function(){return this._sampleKbps(),this._supportsHd=!1,this.saveResult(),this.trigger("failed"),this.end()}},{key:"succeed",value:function(){if(this._sampleKbps(),this._supportsHd=!0,this.saveResult(),this.trigger("succeeded"),this.end(),this._suspiciouslyFast())return this._reportSuspiciousBandwidthTest()}},{key:"_reportSuspiciousBandwidthTest",value:function(){try{var t,e,n,r;if(this._suspiciouslyFast())return i.Metrics.count("player/suspicious-bandwidth-test",1,{bw_test_time:this._testTime,visitor_key:i.visitorKey.value(),location:null!==(t=location)&&void 0!==t&&null!==(e=t.protocol)&&void 0!==e&&e.length&&null!==(n=location)&&void 0!==n&&null!==(r=n.hostname)&&void 0!==r&&r.length?"".concat(location.protocol,"//").concat(location.hostname):null,connection_type:i.Metrics.connectionType(),agent:navigator.userAgent})}catch(t){return i.error(t)}}},{key:"_suspiciouslyFast",value:function(){return this._testTime<.05}},{key:"_sampleKbps",value:function(){return this._testEnd=(new Date).getTime(),this._testTime=(this._testEnd-this._testStart)/1e3,this._kbps=8*this._testDataLoaded/1e3/this._testTime}},{key:"endEarly",value:function(){return null==this._supportsHd&&null!=this._testDataLoaded?(this._sampleKbps(),this._supportsHd=!(this._testTime>1)||this._kbps>=this.opt.minKbps,this.trigger("ended-early"),this.end()):(this.end(),this.trigger("ended-early"))}},{key:"end",value:function(){var t,e,n;return this._onTestXhrLoaded&&(null===(e=this._testXhr)||void 0===e||e.removeEventListener("load",this._onTestXhrLoaded)),this._onTestXhrProgress&&(null===(n=this._testXhr)||void 0===n||n.removeEventListener("progress",this._onTestXhrProgress)),null===(t=this._testXhr)||void 0===t||t.abort(),this._testXhr=null,(0,o.clearTimeouts)("".concat(this.uuid,".cancel_bandwidth_test")),this.trigger("ended")}},{key:"testFileUrl",value:function(){return this.opt.testFileUrl||("https:"===(0,r.proto)()?"https://embed-ssl.wistia.com/deliveries/6992339c876a95a37250fbe5b0a0eaecca3018a5/file.jpg?bust=2015-12-29a":"http://embed.wistia.com/deliveries/76a57ca47a1978a834d82dcf7eeb03a6.bin?bust=2015-12-29a")}},{key:"saveKey",value:function(){return this.opt.saveKey||"bandwidth_test"}},{key:"saveResult",value:function(){return i.localStorage(this.saveKey(),{updatedAt:(new Date).getTime(),supportsHd:this._supportsHd,clientKbps:this._kbps})}},{key:"savedResult",value:function(){return i.localStorage(this.saveKey())}},{key:"isFresh",value:function(){var t;return(new Date).getTime()-((null===(t=this.savedResult())||void 0===t?void 0:t.updatedAt)||0)<this.opt.freshFor}},{key:"supportsHd",value:function(){return this._supportsHd||!1}}])&&u(e.prototype,n),l&&u(e,l),Object.defineProperty(e,"prototype",{writable:!1}),t}(),i.mixin(i.BandwidthTest.prototype,i.bindable)},function(t,e,n){var i,r,o,a,s,u,l,c,d,h,f,p,y;n(3).default,h=n(31).isVisitorTrackingEnabled,y=n(6),a=y.assign,f=y.merge,c=n(74).getResumableKeyForVideo,l=n(30).doTimeout,i=n(24).Url,p=n(5).pageLoaded,f=n(6).merge,n(18).runScript,s=n(48).base64Encode,o=n(124),r=n(126),u=function(t){var e;return null!=(e="none"===t)?e:{true:!1}},d=function(t){var e;return{campaign:(e=new i(t._attrs.pageUrl).params).utm_campaign||null,medium:e.utm_medium||null,source:e.utm_source||null}},function(t){if(!t.VideoTracker2)t.VideoTracker2=function(){function e(t){var e;this.publicApi=t,this.eventQueue=[],this.initializedOnce=!1,this.monitoring=!1,this._setStartValues(),this.publicApi.hasData((e=this,function(){e.utmParams=d(e.publicApi),e.params=f({transmitInterval:1e3*(e.publicApi._mediaData.trackingTransmitInterval||10)},e.publicApi._opts),e.publicApi._attrs.shouldTrack}))}return e.prototype.NUM_BUCKETS=1e3,e.prototype.conversions={"missing-conversion":0,"pre-roll-email":1,"post-roll-email":2,"mid-roll-email":3,"post-roll-click":4,"mid-roll-click":5,"non-video":6},e.prototype._setStartValues=function(){return this.clockStart=(new Date).getTime(),this._played=!1,this.lastRecordedTime=0,this.lastSeekTime=0,this.lastSecondsWatched=0,this.lastBucket=-1},e.prototype._getAccountKey=function(){return this.publicApi._opts.accountKey||this.publicApi._mediaData.accountKey},e.prototype._getEnabledEmbedOptions=function(){var t,e,n,i,r,o,a,s;for(e in o=(t=this.publicApi.embedOptions()).plugin||{},r={},n={turnstile_enabled:"requireEmail-v1",annotation_link_enabled:"midrollLink-v1",call_to_action_enabled:"postRoll-v1",eventbrite_enabled:"eventbrite",hubspot_form_enabled:"hubspotForm",marketo_form_enabled:"marketoForm"})i=n[e],r[e]=!!o[i]&&("true"===(a=o[i].on)||!0===a);return r.auto_play_enabled="true"===(s=t.autoPlay)||!0===s,r.looping_enabled="loop"===this.publicApi._attrs.endVideoBehavior,r},e.prototype._data=function(){var t;return t=f({account_key:this._getAccountKey(),event_details:this.eventQueue,page_title:this.publicApi._getPageTitle(),browser_language:this.publicApi._getBrowserLanguage(),foreign_data:this.publicApi.foreignData(),media_duration:parseFloat(this.publicApi._mediaData.duration),media_id:this.publicApi._mediaData.mediaKey,media_type:this._mediaType(),referrer:this.publicApi._attrs.pageUrl,referrer_url:this.publicApi._attrs.referrerUrl,resumable_key:this.resumableKey(),session_id:this.visitorKey(),utm_params:this.utmParams,visitor_version:this.videoTrackerLocalStorage.getVisitorVersion(),event_version:"1.0.0",player_type:"modern",enabled_embed_options:this._getEnabledEmbedOptions(),visibility_metrics:this.publicApi._getEmbedVisibilityMetrics()},this.videoTrackerSession.fetchSessionData()),this.publicApi.email()&&(t.email=this.publicApi.email()),!this.publicApi._opts.anonymizeIp&&h()||(t.anonymizeIp=!0),this.params.conversionType&&(t.conversion_type=this.conversions[this.params.conversionType]),this.params.conversionData&&(t.conversion_data=this.params.conversionData),this.publicApi._opts.channel&&(t.channel=this.publicApi._opts.channel),this.publicApi._mediaData.channelId&&(t.channel_id=this.publicApi._mediaData.channelId),this.publicApi._mediaData.episodeId&&(t.episode_id=this.publicApi._mediaData.episodeId),this.publicApi._mediaData.projectId&&(t.project_id=this.publicApi._mediaData.projectId),JSON.stringify(t)},e.prototype._mediaType=function(){return this.publicApi._mediaData.mediaType},e.prototype.reset=function(){return this.stopMonitoring(),this._setStartValues(),this.initializedOnce=!1},e.prototype.initialize=function(){var t;return this.initializedOnce||(this.publicApi.info("video tracker initialize"),this.videoTrackerLocalStorage=new r(this._getAccountKey(),this.publicApi.hashedId(),(t=this,function(){var e;return(e=t.publicApi).info.apply(e,arguments)})),this._failedEventsQueue=[],this._retryTimer=null,this._retryInterval=1e3,this.initializedOnce=!0,this._setStartValues(),this.log("initialized"),this.videoTrackerLocalStorage.recordLoad(),this.debounceTransmit()),this},e.prototype.monitor=function(){var e;return this.initializedOnce||this.publicApi.hasData((e=this,function(){return e.videoTrackerSession=new o(e.publicApi)})),this.publicApi.embedded(function(e){return function(){return e.stopMonitoring(),e.publicApi.info("_tracker.monitor"),e.initialize(),null==e.onPlaybackRateChange&&(e.onPlaybackRateChange=function(t){return e.log("playbackRateChange",null,t)}),null==e.onPlay&&(e.onPlay=function(){if(e.log("play"),e.videoTrackerLocalStorage.recordPlay(),!e._played)return e._played=!0,e.debounceTransmit()}),null==e.onPause&&(e.onPause=function(){if(Math.abs(e.publicApi.duration()-e.publicApi.time())>.3)return e.log("pause")}),null==e.onEnd&&(e.onEnd=function(){return e.log("end"),e.transmit()}),null==e.onSeek&&(e.onSeek=function(t,n){if(!(Math.abs(n-t)<5))return e.lastSeekTime=n,e.log("seek")}),null==e.onPercentWatchedThreshold&&(e.onPercentWatchedThreshold=function(t){return e.log("percentWatchedThreshold",null,t),e.transmit()}),e.monitoring=!0,e.publicApi.rebind("play",e.onPlay),e.publicApi.rebind("pause",e.onPause),e.publicApi.rebind("end",e.onEnd),e.publicApi.rebind("seek",e.onSeek),e.publicApi.rebind("playbackratechange",e.onPlaybackRateChange),e.publicApi.rebind("percentWatchedThreshold",e.onPercentWatchedThreshold),e.videoTrackerSession.setupBindings(),"playing"===e.publicApi.state()&&e.onPlay(),l(e.publicApi.uuid+".start_tracking_timeout",(function(){return e.publicApi.info("_tracker start tracking_loop"),t.eventLoop.add(e.publicApi.uuid+".tracking_loop",e.params.transmitInterval,(function(){return"playing"===e.publicApi.state()&&e.log("update"),e.transmit()}))}),Math.random()*e.params.transmitInterval+1e3)}}(this))},e.prototype.stopMonitoring=function(){if(this.publicApi.info("_tracker.stopMonitoring"),this.monitoring=!1,this.onPlay&&this.publicApi.unbind("play",this.onPlay),this.onPause&&this.publicApi.unbind("pause",this.onPause),this.onEnd&&this.publicApi.unbind("end",this.onEnd),this.onSeek&&this.publicApi.unbind("seek",this.onSeek),this.onPercentWatchedChanged&&this.publicApi.unbind("percentwatchedchanged",this.onPercentWatchedChanged),this.videoTrackerSession)return this.videoTrackerSession.removeBindings()},e.prototype.distilleryUrl=function(){return this.publicApi._attrs.statsUrl||this.publicApi._mediaData.distilleryUrl},e.prototype.sendToDistillery=function(e){return fetch(this.distilleryUrl(),{method:"POST",mode:"cors",headers:{"Content-Type":"text/plain"},body:encodeURIComponent(e)}).catch((n=this,function(e){return t.Metrics.videoCount(n.publicApi,"player/distillery-error-response/"+e.status)}));var n},e.prototype.readyToTrack=function(e){return this.publicApi.hasData((function(){return p((function(){return t.visitorKey.ready().then(e)}))}))},e.prototype.transmit=function(t){var e;if(null==t&&(t={}),this.publicApi._attrs.shouldTrack)return this.readyToTrack((e=this,function(){var n;if(e.eventQueue.length>0||t.force)return n=e._data(),e.publicApi.info("_tracker.transmit",n),e.publicApi.trigger("transmit-stats",n),e.sendToDistillery(s(n)),e.eventQueue=[]}))},e.prototype.debounceTransmit=function(){return l(this.publicApi.uuid+".transmit_play_data",(t=this,function(){return t.transmit()}),350);var t},e.prototype.log=function(t,e,n){var i,r,o,a;if(this.publicApi._attrs.shouldTrack)return this.publicApi.info("_tracker.log",t,e,n),this.videoTrackerSession.ping(),o=(a=(r=this.videoTrackerSession.secondsWatched())-this.lastSecondsWatched)/this.publicApi.duration(),this.lastSecondsWatched=r,"conversion"===t?(this.params.conversionType=e,this.params.conversionData=n,this.transmit({force:!0})):(i={key:t,value:this.timeInVideo(),timeDelta:this.timeDelta(),uniquePlayedTime:a,uniquePlayedRatio:o},"initialized"===t?(i.lastAccountInstance=this.videoTrackerLocalStorage.lastLoadForAccount(),i.lastMediaInstance=this.videoTrackerLocalStorage.lastLoadForMedia(),i.isUnique=u(this.videoTrackerLocalStorage.lastLoadForMedia())):"play"===t?(i.lastAccountInstance=this.videoTrackerLocalStorage.lastPlayForAccount(),i.lastMediaInstance=this.videoTrackerLocalStorage.lastPlayForMedia(),i.isUnique=u(this.videoTrackerLocalStorage.lastPlayForMedia()),this._played?i.key="unpause":(this.addPlayedTime(i),this.addBuckets(i),this.lastRecordedTime=this.timeInVideo())):"seek"===t?(this.addPlayedTime(i,this.lastSeekTime),this.addBuckets(i,this.lastSeekTime),this.lastRecordedTime=this.timeInVideo()):"update"===t?(this.addPlayedTime(i),this.addBuckets(i),this.lastRecordedTime=this.timeInVideo()):"playbackRateChange"===t||"percentWatchedThreshold"===t?i.value=n:"end"===t&&(this.addPlayedTime(i),this.addBuckets(i),this.lastBucket=-1,this.lastRecordedTime=this.timeInVideo()),this.publicApi.debug("_tracker.log",i),this.eventQueue.push(i))},e.prototype.addPlayedTime=function(t,e){var n,i;return n=void 0!==e?e:this.timeInVideo(),i=Math.max(n-this.lastRecordedTime,0),t.playedTime=String(i)},e.prototype.addBuckets=function(t,e){var n,i;if("beforeplay"!==this.publicApi.state()&&(i=this.publicApi.time(),n=this._timeToBucket(e||i),this.lastBucket<n&&(t.startBucket=this.lastBucket+1,t.endBucket=n),this.lastBucket=this._timeToBucket(i),e))return this.lastBucket-=1},e.prototype._timeToBucket=function(t){return Math.floor(t/this.publicApi.duration()*this.NUM_BUCKETS)},e.prototype.logConversionOpportunity=function(e){var n;if(this.publicApi._attrs.shouldTrack)return this.videoTrackerSession.ping(),null!=e.co_key?(e.is_new_lead=this.videoTrackerLocalStorage.isNewLead(),n={key:"conversion",value:e,timeDelta:this.timeDelta()},this.publicApi.info("_tracker.logConversionOpportunity",e),this.eventQueue.push(n)):t.Metrics.videoCount(this.publicApi,"player/no-co-key",1)},e.prototype.logAction=function(t,e){var n,i;return null==e&&(e={}),this.videoTrackerSession.ping(),n={time:this.publicApi.time(),key:t,type:"default",category:"default",text:"test",uniqueToVisitor:!1},i={value:a({},n,e),key:"action",timeDelta:this.timeDelta()},this.eventQueue.push(i)},e.prototype.logCaptionSelection=function(t){var e;if(this.publicApi._attrs.shouldTrack&&(this.videoTrackerSession.ping(),t.caption_key))return e={key:"caption",value:t,timeDelta:this.timeDelta()},this.publicApi.info("_tracker.logCaptionSelection",t),this.eventQueue.push(e)},e.prototype.logChapterClick=function(t,e){return this.logAction("chapterConversion",{text:t.title,type:"conversion",category:"chapter",uniqueToVisitor:!0,time:e}),this.logAction("chapterSelection-"+t.id,{text:t.title,type:"interaction",category:"chapter",time:e})},e.prototype.logShareClick=function(t){return this.logAction("shareConversion",{text:t,type:"conversion",category:"share",uniqueToVisitor:!0}),this.logAction("shareClick-"+t,{text:t,type:"interaction",category:"share"})},e.prototype.resumableKey=function(){return!1!==this.publicApi.embedOptions().resumable?c(this.publicApi.hashedId()):null},e.prototype.timeInVideo=function(){var t;return null==(t=this.publicApi.time())&&(t="beforeplay"===this.publicApi.state()?0:this.publicApi.duration()),t.toFixed(1)},e.prototype.timeDelta=function(){return(new Date).getTime()-this.clockStart},e.prototype.visitorKey=function(){return this.publicApi.visitorKey()},e.prototype.eventKey=function(){if(this.videoTrackerSession)return this.videoTrackerSession.eventKey()},e}()}(Wistia)},(t,e,n)=>{var i,r,o,a;n(3).default,o=n(125).default,i=n(120).SecondsWatchedTracker,a=n(117).uniqId,r=function(){function t(t){this.publicApi=t,this.lastFetchTime=(new Date).getTime(),this.secondsWatchedTracker=new i(this.publicApi,this.publicApi.duration(),{maxWatchingPlaybackRate:this.publicApi._opts.maxWatchingPlaybackRate})}return t.prototype.EVENT_KEY_REFRESH_INTERVAL=1800,t.prototype.withRefresh=function(t){if(o(this.lastFetchTime)>this.EVENT_KEY_REFRESH_INTERVAL&&this.reset(),this.lastFetchTime=(new Date).getTime(),"function"==typeof t)return t()},t.prototype.fetchSessionData=function(){return this.withRefresh((t=this,function(){return{event_key:t.eventKey(),seconds_watched:t.secondsWatchedTracker.secondsWatched()}}));var t},t.prototype.secondsWatched=function(){return this.withRefresh((t=this,function(){return t.secondsWatchedTracker.secondsWatched()}));var t},t.prototype.ping=function(){return this.withRefresh()},t.prototype.setupBindings=function(){var t;return null==this.binding&&(this.binding=(t=this,function(e){return t.secondsWatchedTracker.trackSecond(e)})),this.publicApi.rebind("secondchange",this.binding)},t.prototype.reset=function(){return this._eventKey=null,this.secondsWatchedTracker.reset()},t.prototype.removeBindings=function(){if(this.binding)return this.publicApi.unbind("secondchange",this.binding)},t.prototype.eventKey=function(){return this.isValidKey(this._eventKey)||(this._eventKey=a("7bbced7554cec80a60297adb6d5357a3".substring(0,7)+"_"),this.publicApi.trigger("eventkeychange",this._eventKey)),this._eventKey},t.prototype.isValidKey=function(t){return(null!=t?t.length:void 0)>25&&/^[a-z0-9_\-\.]+$/i.test(t)},t}(),t.exports=r},(t,e,n)=>{n.d(e,{default:()=>i});const i=function(t){return t?Math.round(((new Date).getTime()-t)/1e3):null}},(t,e,n)=>{var i,r;n(3).default,r=n(125).default,i=function(){function t(t,e,n){this.accountKey=t,this.hashedId=e,this.logFn=n}return t.prototype.nullToNone=function(t){return null===t?"none":t},t.prototype.lastLoadForAccount=function(){return this._lastLoadForAccount||(this._lastLoadForAccount=this.nullToNone(r(Wistia.localStorage("accounts_loaded."+this.accountKey))))},t.prototype.lastLoadForMedia=function(){return this._lastLoadForMedia||(this._lastLoadForMedia=this.nullToNone(r(Wistia.localStorage("medias_loaded."+this.hashedId))))},t.prototype.lastPlayForAccount=function(){return this._lastPlayForAccount||(this._lastPlayForAccount=this.nullToNone(r(Wistia.localStorage("accounts_played."+this.accountKey))))},t.prototype.lastPlayForMedia=function(){return this._lastPlayForMedia||(this._lastPlayForMedia=this.nullToNone(r(Wistia.localStorage("medias_played."+this.hashedId))))},t.prototype.lastRecordingOfActionForMedia=function(t){return this.nullToNone(r(Wistia.localStorage("action_recorded."+this.hashedId+"."+t)))},t.prototype.isNewLead=function(){var t,e;return t="action_recorded.conversion",(e=Wistia.localStorage(t))?!e:(this.logFn("recordNewLead"),Wistia.localStorage(t,!0))},t.prototype.recordLastActionForMedia=function(t){return Wistia.localStorage("action_recorded."+this.hashedId+"."+t,(new Date).getTime())},t.prototype.recordLoad=function(){return this.logFn("recordLoad"),Wistia.localStorage("accounts_loaded."+this.accountKey,(new Date).getTime()),Wistia.localStorage("medias_loaded."+this.hashedId,(new Date).getTime())},t.prototype.recordPlay=function(){return this.logFn("recordPlay"),Wistia.localStorage("accounts_played."+this.accountKey,(new Date).getTime()),Wistia.localStorage("medias_played."+this.hashedId,(new Date).getTime())},t.prototype._saveVisitorVersion=function(t){if(null==t&&(t=1),null==Wistia.localStorage("visitor_version"))return Wistia.localStorage("visitor_version",t)},t.prototype.getVisitorVersion=function(){return Wistia.localStorage("visitor_version")||(this._saveVisitorVersion(0),0)},t.prototype.clearActionRecordings=function(){return["chapterImpression","chapterConversion","shareImpression","shareConversion"].forEach((t=this,function(e){return Wistia.localStorage("action_recorded."+t.hashedId+"."+e,"",!0)}));var t},t}(),t.exports=i},(t,e,n)=>{var i,r=n(23),o=n(21),a=n(128),s=n(25);(i=window.Wistia).remote||(i.remote={},i.remote.appHostname=s.appHostname,i.remote.embedHost=r.cdnFastWistiaComHost,i.remote.externalEmbedHost=r.cdnFastWistiaNetHost,i.remote.appHost=r.appHost,i.remote.assetHost=r.deliveryHost,i.remote.media=o.fetchMedia,i.cacheMedia=o.cacheMedia,i.cacheAbTest=o.cacheAbTest,i.uncacheMedia=o.uncacheMedia,i.mediaFromCache=o.mediaFromCache,i.abTestFromCache=o.abTestFromCache,i.remote.playlist=a.fetchPlaylist)},(t,e,n)=>{n.d(e,{fetchPlaylist:()=>l});var i=n(3),r=n(24),o=n(23),a=n(12),s=n(20),u=n(30);null==i.default._remotePlaylist&&(i.default._remotePlaylist={});var l=function(t,e){var n=i.default._remotePlaylist[t];if(n)(0,u.doTimeout)("remote-playlist.".concat(t,".").concat((0,s.seqId)()),(function(){e(n)}));else{var l="".concat((0,r.proto)(),"//").concat((0,o.cdnFastWistiaComHost)(),"/embed/playlists/").concat(t,".json");fetch(l).then((function(t){return t.json()})).then((function(n){i.default._remotePlaylist[t]=n,e(n)})).catch((function(){a.wlog.error("Timed out fetching ".concat(l))}))}}},(t,e,n)=>{var i=n(29),r=n(6),o=n(5);!function(t){if(!t.Metrics)t.Metrics={count:i.count,sample:i.sample,send:i.send,videoCount:function(t,e,n,i){return null==n&&(n=1),this.videoSend(t,"count",e,n,i)},videoSample:function(t,e,n,i){return this.videoSend(t,"sample",e,n,i)},videoSend:function(e,n,i,a,s){var u,l=this;return null==s&&(s={}),null===(u=e.hasData)||void 0===u?void 0:u.call(e,(function(){var u,c,d,h,f,p,y,v,m,g,b,_,w,P,O,k=(null===(u=e.bandwidthTest)||void 0===u?void 0:u.call(e).savedResult())||{};(s=(0,r.merge)({location:null!==(c=location)&&void 0!==c&&null!==(d=c.protocol)&&void 0!==d&&d.length&&null!==(h=location)&&void 0!==h&&null!==(f=h.hostname)&&void 0!==f&&f.length?"".concat(location.protocol,"//").concat(location.hostname):null,agent:navigator.userAgent,account_key:null===(p=e._mediaData)||void 0===p?void 0:p.accountKey,at:e.time(),video_id:e.hashedId(),embed_type:e.playerType,duration:e.duration(),client_kbps:k.clientKbps,supports_hd:k.supportsHd,autoplay:!(null===(y=e._attrs)||void 0===y||!y.autoplay),in_iframe:top!==self,device_pixel_ratio:window.devicePixelRatio,window_width:(0,o.elemWidth)(window),window_height:(0,o.elemHeight)(window),video_width:e.videoWidth(),video_height:e.videoHeight(),visitor_key:null===(v=e._tracker)||void 0===v?void 0:v.visitorKey(),event_key:null===(m=e._tracker)||void 0===m?void 0:m.eventKey(),event_time_delta:null===(g=e._tracker)||void 0===g?void 0:g.timeDelta(),connection_type:l.connectionType(),version:9,channel:t.channelName},s),/romulus|html5|vulcan/.test(e.playerType))&&(s.errorState=null===(P=e.elem())||void 0===P?void 0:P.error);(null!=e._cacheStatus&&(s.cache_status=e._cacheStatus),null!=e._assetServer&&(s.asset_server=e._assetServer),null!=e._cacheHit&&(s.cache_hit=e._cacheHit),e.inFullscreen&&(s.in_fullscreen=e.inFullscreen()),null!=e._substream)?(s.substream=e._substream.index,s.adaptive=e._substream.adaptive,s.current_level=e._substream.currentLevel,s.all_level_names=e._substream.allLevelNames,w=e._substream.asset,s.hls_error_counts=e._substream.hlsErrorCounts()):(s.substream=null,s.adaptive=null,w=null===(O=e.data)||void 0===O?void 0:O.asset);if(null!=w&&(s.asset_type=w.type,s.asset_slug=w.slug,s.bitrate=w.bitrate,s.asset_height=w.height,s.asset_width=w.width),(null===(b=e.videoElem)||void 0===b||null===(_=b.buffered)||void 0===_?void 0:_.length)>0&&(s.bufferedFrom0=e.videoElem.buffered.end(0)),null!=e._timeToFirstByte&&(s.time_to_first_byte=e._timeToFirstByte),s.buffered=null!=e.totalBuffered?e.totalBuffered():void 0,s.played=null!=e.totalPlayed?e.totalPlayed():void 0,l.send(n,i,a,s),e._mediaData&&e._mediaData.accountKey&&e._mediaData.accountSpecificMetrics)return l.send(n,"".concat(e._mediaData.accountKey,"/").concat(i),a,s)}))},countEvent:function(t,e,n){return n||(n=e),null==this._private.countEventCallbacks[n]&&(this._private.countEventCallbacks[n]=this._private.mkCountEventCallback(e,n)),t.rebind(e,this._private.countEventCallbacks[n])},countEventOnce:function(t,e,n){return n||(n=e),null==this._private.countEventOnceCallbacks[n]&&(this._private.countEventOnceCallbacks[n]=this._private.mkCountEventOnceCallback(e,n)),t.rebind(e,this._private.countEventOnceCallbacks[n])},sampleEvent:function(t,e,n){return n||(n=e),null==this._private.sampleEventCallbacks[n]&&(this._private.sampleEventCallbacks[n]=this._private.mkSampleEventCallback(e,n)),t.rebind(e,this._private.sampleEventCallbacks[n])},countShowLoadingOnce:function(t){var e=this,n=-1;return t.bind("waiting",(function(i){return n<2&&i>=2?(e.videoCount(t,"player/show-loading/first",1),n=i,t.unbind):n=i}))},countShowLoadingAll:function(t){var e=this,n=-1;return t.bind("waiting",(function(i){return n<2&&i>=2&&e.videoCount(t,"player/show-loading/all",1),n=i})),t.bind("done-waiting",(function(){return n=-1}))},countShowLoadingLongTimeOnce:function(t){var e=this,n=-1;return t.bind("waiting",(function(i){return n<5&&i>=5?(e.videoCount(t,"player/show-loading-long-time/first",1),n=i,t.unbind):n=i}))},countShowLoadingLongTimeAll:function(t){var e=this,n=-1;return t.bind("waiting",(function(i){return n<5&&i>=5&&e.videoCount(t,"player/show-loading-long-time/all",1),n=i})),t.bind("done-waiting",(function(){return n=-1}))},assetBuckets:function(e){return t.detect.iphone||t.detect.android||t.detect.blackberry||/mobile/i.test(navigator.userAgent)?t.detect.iphone?["mobile","iphone"]:t.detect.android?["mobile","android"]:["mobile"]:[]},connectionType:function(){var t=window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection;return null==t?void 0:t.type},sumTimeRanges:function(t){if(null==t)return null;for(var e=0,n=0,i=t.length,r=i>=0;r?n<i:n>i;r?n++:n--)e+=t.end(n)-t.start(n);return e},millisecondsSince:function(t){return(new Date).getTime()-t},_private:{countEventCallbacks:{},mkCountEventCallback:function(e,n){return function(i){return n||(n=e),t.Metrics.videoCount(this,"player/".concat(n),i)}},countEventOnceCallbacks:{},mkCountEventOnceCallback:function(e,n){return function(i){return n||(n=e),t.Metrics.videoCount(this,"player/".concat(n),i),this.unbind}},sampleEventCallbacks:{},mkSampleEventCallback:function(e,n){return function(i){return n||(n=e),t.Metrics.videoSample(this,"player/".concat(n),i)}}}}}(window.Wistia)},(t,e,n)=>{!function(t){var e,i,r,o,a,s,u,l,c,d;if(t.Plugin||(t.Plugin={}),!t.Plugin.Base)a=n(23),i=a.eV1HostWithPort,r=a.eV1Protocol,e=n(103).allow3rdParty,o=n(6).merge,s=n(87),c=s.wData,d=s.wRemoveData,l=n(20).seqId,u=n(18).runScripts,t.Plugin.Base=function(){function e(){this.pluginName="plugin"}return e.prototype.instances=function(){return c(["plugins",this.pluginName,this.video.uuid])},e.prototype.register=function(t){var e;return(e=this.playlist||this.video||this.audio).plugins[this.uuid]=t,c(["plugins",this.pluginName,e.uuid,this.uuid],t)},e.prototype.remove=function(e){var n;if(null==e&&(e={}),(n=this.playlist||this.video||this.audio).plugins[this.uuid]=null,d(["plugins",this.pluginName,n.uuid,this.uuid]),n.plugins[this.uuid]===this&&delete n.plugins[this.uuid],n.plugin[this.pluginName]===this&&delete n.plugin[this.pluginName],!e.dontFit)return t.grid.fitHorizontal(n),t.grid.fitVertical(n)},e.prototype.fit=function(){},e.prototype.init=function(t,e){return null==t.plugins&&(t.plugins={}),(null!=t?t.playlist:void 0)?this.playlist=t:this.video=t,this.target=this.playlist||this.video||this.audio,this.options=e||{},this.params=o({},e||{}),this.uuid=this.params.uuid||l("wistia_","_plugin")},e}(),t.plugin||(t.plugin=function(e,n){var i,r,o,a,s,u;if((i=null!=(a=t.pluginQueue)&&null!=(s=a[e])?s.shift():void 0)&&(o=function(){var t,r;return i.video.info("initializing plugin",e,i.options),t=n(i.video._impl||i.video,i.options)||!0,i.video.plugin[e]=t,i.video._impl&&(i.video._impl.plugin[e]=t),i.video.trigger("plugininitialized",e),null!=(r=i.video._pluginStopGos)&&"function"==typeof r[e]?r[e](!0,t):void 0},r=function(){return i.options.initBeforeHasData?o():i.video.hasData(o)},!0!==i.options.initBeforeHasData&&(null!=(u=i.video)?u.looksDown():void 0)?(i.video.notice('W.plugin: delaying initialization of plugin until "up"',e,i.options),i.video.bind("up",(function(){return r(),this.unbind}))):i.video._implVersion===i.implVersion?r():i.video.notice("W.plugin impl changed, ignoring initialization",e,i.options)),!t.plugin[e])return t.plugin[e]=n},t.plugin._prefetched={},t.plugin._inject=function(e,n,o){var a,s;if(null==o&&(o={}),!1!==o.on)return a=r()+"//"+i()+"/assets/external/"+n+".js",s=[{name:n,options:o,src:o.src&&t.plugin._allow3rdParty(e.options)?o.src:a,async:!0}],t.plugin._setFnForDefinedPlugins(e,s),t.plugin._execQueue(e,s)},t.plugin._allow3rdParty=function(t){return e(t)},t.plugin._setFnForDefinedPlugins=function(e,n){var i,r,o,a;for(o=[],i=0,r=n.length;i<r;i++)a=n[i],t.plugin[a.name]&&o.push(function(n){return n.fn=function(){var i;return i=function(){var i,r,o;return r=t.plugin[n.name](e._impl||e,n.options)||!0,e.plugin[n.name]=r,e._impl&&(e._impl.plugin[n.name]=r,e.trigger("plugininitialized",n.name)),null!=(o=e._pluginStopGos)&&"function"==typeof o[i=n.name]?o[i](!0,r):void 0},n.options.initBeforeHasData?i():e.hasData(i)},n.async=!1}(a));return o},t.plugin._queueUndefinedPlugins=function(e,n){var i,r,o,a,s,u;for(null==t.pluginQueue&&(t.pluginQueue={}),s=[],i=0,r=n.length;i<r;i++)(a=n[i]).subScripts?s.push(function(){var n,i,r,s;for(s=[],n=0,i=(r=a.subScripts).length;n<i;n++)u=r[n],o=u.name||u.src,null==t.pluginQueue[o]&&(t.pluginQueue[o]=[]),a.fn?s.push(void 0):s.push(t.pluginQueue[o].push({video:e,implVersion:e._implVersion,options:u.options}));return s}()):(o=a.name||a.src,null==t.pluginQueue[o]&&(t.pluginQueue[o]=[]),a.fn?s.push(void 0):s.push(t.pluginQueue[o].push({video:e,implVersion:e._implVersion,options:a.options})));return s},t.plugin._execQueue=function(e,n,i){return t.plugin._queueUndefinedPlugins(e,n),u(n).then(i)},t.plugin._init=function(e,n,i){var r,o;return o=e.charAt(0).toUpperCase()+e.substr(1),(r=new(0,t.Plugin[o])).init(n,i),r},t.plugin._instance=function(t,e,n){return c(["plugins",t,e.uuid,n])},t.plugin._remove=function(e,n,i){var r;null!=(r=t.plugin._instance(e,n,i))&&r.remove()},t.plugin._isActive=function(e,n,i){return!!t.plugin._instance(e,n,i)},t.plugin._defined=function(){var e,n,i,r;for(e in i=[],n=t.plugin)r=n[e],/^_/.test(e)||i.push({name:e,options:r});return i})}(Wistia)},(t,e,n)=>{var i,r=n(26);(i=window.Wistia).localStorage||(i.localStorage=r.setOrGet,i.removeLocalStorage=r.removeLocalStorage)},(t,e,n)=>{var i=n(5),r=n(34),o=n(20),a=n(103),s=n(114);!function(t){if(!t.gridify){t.gridifyCss=function(t){t.replace(/_grid$/,"");return"#".concat(t,"_wrapper{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;font-family:Arial,sans-serif;font-size:14px;height:100%;position:relative;text-align:left;width:100%;}\n#").concat(t,"_wrapper *{-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}\n#").concat(t,"_above{position:relative;}\n#").concat(t,"_main{display:block;height:100%;position:relative;}\n#").concat(t,"_behind{height:100%;left:0;position:absolute;top:0;width:100%;}\n#").concat(t,"_center{height:100%;overflow:hidden;position:relative;width:100%;}\n#").concat(t,"_front{display:none;height:100%;left:0;position:absolute;top:0;width:100%;}\n#").concat(t,"_top_inside{position:absolute;left:0;top:0;width:100%;}\n#").concat(t,"_top{width:100%;position:absolute;bottom:0;left:0;}\n#").concat(t,"_bottom_inside{position:absolute;left:0;bottom:0;width:100%;}\n#").concat(t,"_bottom{width:100%;position:absolute;top:0;left:0;}\n#").concat(t,"_left_inside{height:100%;position:absolute;left:0;top:0;}\n#").concat(t,"_left{height:100%;position:absolute;right:0;top:0;}\n#").concat(t,"_right_inside{height:100%;right:0;position:absolute;top:0;}\n#").concat(t,"_right{height:100%;left:0;position:absolute;top:0;}\n#").concat(t,"_below{position:relative;}")},t.gridifyHtml=function(t){return{id:"".concat(t,"_wrapper"),childNodes:[{id:"".concat(t,"_above")},{id:"".concat(t,"_main"),childNodes:[{id:"".concat(t,"_behind")},{id:"".concat(t,"_center")},{id:"".concat(t,"_front")},{id:"".concat(t,"_top_inside"),childNodes:{id:"".concat(t,"_top")}},{id:"".concat(t,"_bottom_inside"),childNodes:{id:"".concat(t,"_bottom")}},{id:"".concat(t,"_left_inside"),childNodes:{id:"".concat(t,"_left")}},{id:"".concat(t,"_right_inside"),childNodes:{id:"".concat(t,"_right")}}]},{id:"".concat(t,"_below")}]}},t.createGrid=function(n,i){var r=t.createGridSkeleton();for(var o in t.initGridEventListeners(r),t.initGridDimensions(n,r,i),r)"STYLE"!==r[o].nodeName&&!0!==n._opts._inLegacyPlaylist&&e(r[o],n);return r};var e=function(e,i){return e.originalAppendChild=e.appendChild,e.originalAppend=e.append,e.originalPrepend=e.prepend,e.appendChild=function(r,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==t._hasTrackedGrid&&(t._hasTrackedGrid=!0,n(i)),e.originalAppendChild(r)},e.append=function(r,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==t._hasTrackedGrid&&(t._hasTrackedGrid=!0,n(i)),e.originalAppend(r)},e.prepend=function(r,o){return null==o&&(o={}),!0!==o.wistiaGridCaller&&!0!==t._hasTrackedGrid&&(t._hasTrackedGrid=!0,n(i)),e.originalPrepend(r)}},n=function(t){var e=(0,a.pluginScriptsToLoad)(t._mediaData,t._opts);return(0,r.countMetric)("custom-plugin-grid-append",1,{hashedId:t._mediaData.hashedId,href:window.location.href,plugins:(0,a.getPluginsNotInList)(e)})};t.createGridSkeleton=function(){var e=(0,o.seqId)("wistia_grid_"),n=(0,i.elemFromObject)(t.gridifyHtml(e)),r=(0,i.addInlineCss)(n,t.gridifyCss(e)),a={};a.css=r,a.root=n,(0,i.elemStyle)(n,{display:"none"}),(0,i.elemAppend)(document.body,n);for(var s=0,u=Array.from(["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"]);s<u.length;s++){var l=u[s];a[l]=document.getElementById("".concat(e,"_").concat(l))}return(0,i.elemRemove)(n),(0,i.elemStyle)(n,{display:"block"}),a},t.initGridEventListeners=function(t){return t.center.addEventListener("scroll",(function(){return t.center.scrollTop=0}))},t.initGridDimensions=function(t,e,n){if(null==n&&(n={}),!1!==n.initDimensions){var r=t._embedContainer,o=t.chrome;t._opts;return o.style.height="".concat((0,i.elemHeight)(r),"px"),e.main.style.width="".concat((0,i.elemWidth)(r),"px")}},t.gridify=function(e,n){var r={},o="".concat(n.id,"_grid");n.innerHTML=(0,s.generateHtml)(t.gridifyHtml(o));for(var a=0,u=["wrapper","main","above","below","top","right","bottom","left","top_inside","right_inside","bottom_inside","left_inside","front","center","behind"];a<u.length;a++){var l=u[a];r[l]=document.getElementById("".concat(o,"_").concat(l))}return(0,i.addInlineCss)(r.wrapper,t.gridifyCss(o)),r.wrapper.style.height="".concat((0,i.elemHeight)(n),"px"),r.main.style.width="".concat((0,i.elemWidth)(n),"px"),r},t.isGridElem=function(t,e){for(var n in t){if(e===t[n])return!0}return!1},t.grid={},t.grid.allNodesHidden=function(t){if(0===t.length)return!0;for(var e=0,n=Array.from(t);e<n.length;e++){var i=n[e];if(i.style&&"none"!==i.style.display)return!1}return!0},t.grid.zeroEmptySections=function(e){return function(){for(var n=[],i=0,r=["top","bottom","left","right","above","below"];i<r.length;i++){var o=r[i],a=e.grid[o];a.childNodes.length?t.grid.allNodesHidden(a.childNodes)?(a.style.height="0px",a.style.fontSize="0px",a.style.lineHeight="0px",n.push(a.isEmpty=!0)):(a.style.height="",a.style.fontSize="",n.push(a.style.lineHeight="")):(a.appendChild(document.createTextNode(" "),{wistiaGridCaller:!0}),a.style.height="0px",a.style.fontSize="0px",a.style.lineHeight="0px",n.push(a.isEmpty=!0))}return n}()},t.grid.wrapperHeight=function(t){var e=t.grid.wrapper;return(0,i.elemHeight)(e)},t.grid.wrapperWidth=function(t){var e=t.grid.wrapper;return(0,i.elemWidth)(e)},t.grid.fitVertical=function(e){if(!e._opts.dontFit){t.grid.zeroEmptySections(e);var n=e.grid,r=n.main,o=(n.wrapper,Math.max((0,i.elemHeight)(n.above),(0,i.elemHeight)(n.top))),a=Math.max((0,i.elemHeight)(n.below),(0,i.elemHeight)(n.bottom)),s=Math.max(0,t.grid.wrapperHeight(e)-o-a);r.style.height="".concat(s,"px"),0===(0,i.elemWidth)(n.left)&&(r.style.left="0px"),r.style.marginTop="".concat((0,i.elemHeight)(n.top),"px")}},t.grid.fitHorizontal=function(e){if(!e._opts.dontFit){t.grid.zeroEmptySections(e);var n=e.grid,r=(n.wrapper,n.main),o=(0,i.elemWidth)(n.left),a=(0,i.elemWidth)(n.right),s=t.grid.wrapperWidth(e)-o-a;r.style.width="".concat(s,"px"),r.style.left="".concat(o,"px")}},t.grid.fit=function(e,n){/left|right/.test(n)?t.grid.fitHorizontal(e):/top|bottom|above|below/.test(n)&&t.grid.fitVertical(e),e.ieSizeHack()}}}(window.Wistia)},(t,e,n)=>{var i=[].slice;!function(t){var e,r,o,a,s,u,l,c;if(u=n(5),o=u.elemRebind,a=u.elemUnbind,r=n(42).dynamicImport,t.iframeInit||(t.iframeInit=function(t,e){return r("assets/external/insideIframe.js").then((function(n){return n.iframeInit(t,e)}))}),!t.IframeApiProxy){for(s in e=function(){function t(t){this.iframe=t,this.loadIframeApi()}return t.prototype.loadIframeApi=function(){return new Promise((function(t){return setTimeout((function(){return r("assets/external/iframeApi.js").then(function(e){return function(){return e._loaded=!0,t()}}(this))}),0)}))},t.prototype.proxyFn=function(){var t,e,n,r;return e=arguments[0],t=2<=arguments.length?i.call(arguments,1):[],this._loaded?(n=this.iframe.wistiaApi)[e].apply(n,t):(this.loadIframeApi().then((r=this,function(){var n;if(r.iframe.wistiaApi!==r)return(n=r.iframe.wistiaApi)[e].apply(n,t)})),this)},t.prototype._hasImpl=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["_hasImpl"].concat(i.call(t)))},t.prototype.hasData=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["hasData"].concat(i.call(t)))},t.prototype.embedded=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["embedded"].concat(i.call(t)))},t.prototype.ready=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["ready"].concat(i.call(t)))},t.prototype.up=function(){var t;return t=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,["up"].concat(i.call(t)))},t.prototype.down=function(){return this.proxyFn.apply(this,["down"].concat(i.call(args)))},t}(),l=t.PublicApi.prototype)c=l[s],e.prototype[s]||"function"!=typeof c||function(t){e.prototype[t]=function(){var e;return e=1<=arguments.length?i.call(arguments,0):[],this.proxyFn.apply(this,[t].concat(i.call(e)))}}(s);t.IframeApiProxy=e}null==t.maybeRequireIframeApi&&(t.maybeRequireIframeApi=function(){var t,n,i,r,o;if((o=document.querySelectorAll("iframe.wistia_embed,iframe[name=wistia_embed],iframe.wistia_playlist,iframe[name=wistia_playlist]")).length>0){for(r=[],t=0,i=o.length;t<i;t++)(n=o[t]).wistiaApi?r.push(void 0):r.push(n.wistiaIframeApiProxy=n.wistiaApi=new e(n));return r}}),null==t.onIframePostMessage&&(t.onIframePostMessage=function(t){if("new-wistia-iframe"===t.data)return r("assets/external/iframeApi.js"),a}),o(window,"message",t.onIframePostMessage),t.bind("ev1initend",(function(){return t.maybeRequireIframeApi(),o(window,"message",t.onIframePostMessage)})),t.bind("ev1destroystart",(function(){return a(window,"message",t.onIframePostMessage)}))}(Wistia)},(t,e,n)=>{var i=n(13),r=n(31),o=n(117),a=n(97);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}!function(t){var e=window.Wistia;if(!e.VisitorKey){var n="__distillery";(0,i.globalBind)("visitortrackingchange",(function(t,n){for(var i=0,o=Array.from(e.api.all());i<o.length;i++){var a,s=o[i];null===(a=s._postDownVisitorTrackingEnabled)||void 0===a||a.call(s)}if(e.visitorKey){var u,l;if(!(0,r.isVisitorTrackingEnabled)())return e.visitorKey.unpersist(),null===(u=(l=e._destructors).destroyMux)||void 0===u?void 0:u.call(l);if(e.visitorKey.value())return e.visitorKey.persist(e.visitorKey.value())}})),e.VisitorKey=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.ready=this.ready.bind(this),this.unbinds=[],setTimeout((function(){return e.unbinds.push((0,a.onFindApiHandle)(a.ALL_API_HANDLES_KEY,(function(t){return t.hasData((function(){var n;return t.iframe||!0!==(null===(n=t._mediaData)||void 0===n?void 0:n.privacyMode)||e.unpersist(),e.ready()}))})))}),0)}var i,u,l;return i=t,l=[{key:"isValid",value:function(t){return(null==t?void 0:t.length)>25&&/^[a-z0-9_\-.]+$/i.test(t)}},{key:"generate",value:function(){return(0,o.uniqId)("".concat("7bbced7554cec80a60297adb6d5357a3".substring(0,7),"_"))}}],(u=[{key:"ready",value:function(){var t=this;return this._readyPromise||(this._readyPromise=new Promise((function(n){t.savedValue()||t.persist(e.VisitorKey.generate()),n()}))),this._readyPromise}},{key:"reinitialize",value:function(){return this.destroy(),this.unbinds=[],this._readyPromise=null,this.ready()}},{key:"persist",value:function(t){if(e.VisitorKey.isValid(t)){if(this.info("@persist",t),this._value=t,(0,r.isVisitorTrackingEnabled)())return!0!==window.wistiaDisableCookies&&this.localStorageValue()!==this._value?e.localStorage(n,this._value):void 0}else this.error(new Error("Attempted to persist invalid visitor key '".concat(t,"'")))}},{key:"unpersist",value:function(){return this.clearFromCurrentDomain()}},{key:"clear",value:function(){return this.info("clear"),this.unpersist(),this._value=null}},{key:"clearFromCurrentDomain",value:function(){return e.removeLocalStorage(n,null)}},{key:"value",value:function(){var t=this._value||this.savedValue();return t||(t=e.VisitorKey.generate(),this.persist(t)),t}},{key:"savedValue",value:function(){if((0,r.isVisitorTrackingEnabled)())return this.localStorageValue()}},{key:"localStorageValue",value:function(){return e.localStorage(n)}},{key:"isValid",value:function(){return e.VisitorKey.isValid(this.value())}},{key:"destroy",value:function(){for(var t=0,e=Array.from(this.unbinds);t<e.length;t++)(0,e[t])();return this.unbinds=[]}}])&&s(i.prototype,u),l&&s(i,l),Object.defineProperty(i,"prototype",{writable:!1}),t}(),e.mixin(e.VisitorKey.prototype,e.logHelpers),e._initializers.initVisitorKey=function(){return e.visitorKey=new e.VisitorKey},e._destructors.destroyVisitorKey=function(){var t;return null===(t=e.visitorKey)||void 0===t||t.destroy(),e.visitorKey=null}}}()},()=>{var t;(t=window.Wistia)._initializers.initSpecificTime=function(){try{var e;if(parent!==self)return;var n=location.href.match(/[?&]wtime=([\dhms]*)/),i=null===(e=location.href.match(/[?&]wvideo(id)?=([^&]+)/))||void 0===e?void 0:e[2];if(!((null==n?void 0:n.length)>=2))return;if(t._specificTimeInitiated)return;t._specificTimeInitiated=!0;var r=!1;return window.wistiaEmbeds.onFind((function(t){if(!i||t.hashedId()===i)return r?void 0:(r=!0,t.embedded((function(){var e;return null===(e=t.popover)||void 0===e?void 0:e.show()})),t.time(n[1]).play())}))}catch(e){return t.error(e),t._specificTimeInitiated=!1}}},(t,e,n)=>{var i=n(137);!function(t){if(!t.Interpolation)t.Interpolation=i.default}(window.Wistia)},(t,e,n)=>{function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}n.d(e,{default:()=>a});const a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var e=arguments.length<=0?void 0:arguments[0],n=e.seedRange,i=e.seedFunction,r=e.seedStart,o=e.outputStart,a=null!=o?o:0,s=e.outputEnd,u=null!=s?s:1,l=e.easing,c=null!=l?l:t.linear;if(null==n)throw new Error("Must provide seedRange argument");if(null!=i&&"function"!=typeof i)throw new Error("Given seed is not a function");if("function"!=typeof c)throw new Error("Invalid easing function given: ".concat(this.easing));this._seedRange=n,this._seedFunction=i||function(){return(new Date).getTime()},this._outputStart=a,this._outputEnd=u,this._easing=c,this._seedStart=(null==r?void 0:r())||this.seed()}var e,n,r;return e=t,r=[{key:"linear",value:function(t,e,n,i){return t*e/(n||1)+i}},{key:"easeInOut",value:function(t,e,n,i){return(e/=(n||1)/2)<1?t/2*e*e+i:-t/2*((e-=1)*(e-2)-1)+i}}],(n=[{key:"seed",value:function(){return this.seedFunction()()}},{key:"seedStart",value:function(){return this._seedStart}},{key:"seedRange",value:function(){return this._valOrFn(this._seedRange)}},{key:"seedFunction",value:function(){return this._seedFunction}},{key:"outputStart",value:function(){return this._valOrFn(this._outputStart)}},{key:"outputEnd",value:function(){return this._valOrFn(this._outputEnd)}},{key:"easing",value:function(){return this._valOrFn(this._easing)}},{key:"value",value:function(){return this._easing.apply(this,i(Array.from(this.easingArgs()||[])))}},{key:"atEnd",value:function(){return 1===this.ratio()}},{key:"atStart",value:function(){return 0===this.ratio()}},{key:"easingArgs",value:function(){return[this.c(),this.t(),this.d(),this.b()]}},{key:"seedDelta",value:function(){return this.seedRange()>0?Math.min(this.seedRange(),this.seed()-this.seedStart()):this.seedRange()<0?Math.max(this.seedRange(),this.seed()-this.seedStart()):0}},{key:"ratio",value:function(){var t=this.seedRange();return 0===t?1:Math.max(0,Math.min(1,this.seedDelta()/t))}},{key:"c",value:function(){return this.outputEnd()-this.outputStart()}},{key:"t",value:function(){return this.seedDelta()}},{key:"d",value:function(){return this.seedRange()}},{key:"b",value:function(){return this.outputStart()}},{key:"_valOrFn",value:function(t){return"function"==typeof t?t():t}}])&&o(e.prototype,n),r&&o(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n(3);var i=n(5),r=n(42);window._wq=window._wq||[],window._wq.push({id:"_all",onHasData:function(t){(function(t){if(t._mediaData&&t._mediaData.integrations)for(var e in t._mediaData.integrations)if(t._mediaData.integrations[e])return!0;return!1})(t)&&(0,i.pageLoaded)((function(){setTimeout((function(){(0,r.dynamicImport)("assets/external/allIntegrations.js").then((function(t){t.runIntegrationsSetup()}))}),1e3)}))}})},(t,e,n)=>{var i,r;i=n(41).getDefaultTranslation,(r=Wistia).initializeOnce=function(){var t;return r._initializers.initDetect(),r._initializers.initWLog(),r._initializers.initVisitorKey(),(null!=(t=r._initializers)?t.initEventLoop:void 0)&&r._initializers.initEventLoop(),r._initializers.initFullscreenTriggers(),r.trigger("ev1initonce"),performance.mark("player_init_start")},r.initializeEveryTime=function(){var t,e,n,o;return r.trigger("ev1initstart"),(null!=(t=r._initializers)?t.initEmbedShepherd:void 0)&&r._initializers.initEmbedShepherd(),(null!=(e=r._initializers)?e.initMux:void 0)&&r._initializers.initMux(),(null!=(n=r._initializers)?n.initAsyncEmbeds:void 0)&&r._initializers.initAsyncEmbeds(),r._initializers.initSpecificTime(),i(),null!=(o=r.eventLoop)&&o.resync(),r.trigger("ev1initend")},r.destroy=function(){return r.trigger("ev1destroystart"),r._destructors.destroyAsyncEmbeds(),r._destructors.destroyEmbedShepherd(),r._destructors.destroyEmbedLinks(),r._destructors.destroyFullscreenTriggers(),r._destructors.destroyEventLoop(),r._destructors.destroyVisitorKey(),r._destructors.destroyWLog(),r._destructors.destroyMux(),r.trigger("ev1destroyend")},r.destroyGlobals=function(){var t,e;for(t in window.Wistia=null,window.wistiaApi=null,window.wistiaDispatch=null,window.wistiaBindIframes=null,window.wistiaEmbeds=null,window._wistiaElemId=null,window.wistiaInitQueue=null,window.wistiaInit=null,window.wistiaEmbedShepherdReady=null,e=[],window)window[t],/^wistiajson/.test(t)?e.push(window[t]=null):e.push(void 0);return e},r.reinitialize=function(){return r.destroy(),r.initializeOnce(),r.initializeEveryTime()},r._initialized||(r._initialized=!0,r.initializeOnce()),r.initializeEveryTime()},(t,e,n)=>{n(141)},(t,e,n)=>{var i=n(3),r=(n(2),n(74)),o=n(8),a=n(142),s=n(84),u=n(72),l=n(5),c=n(6),d=n(30),h=n(11),f=n(42),p=n(64),y=(n(150),n(156),n(158),n(159),n(163),n(166),n(168),n(170),n(171),n(173),n(175),n(180),n(182),n(184),n(186),n(187),n(189),n(193),n(195),n(198)),v=n(200),m=n(201),g=n(202),b=n(203),_=n(204),w=n(205),P=n(206),O=n(207),k=n(213),S=n(214),E=n(215),T=n(216),C=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function x(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function R(){return R="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=M(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},R.apply(this,arguments)}function B(t,e){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},B(t,e)}function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=M(t);if(e){var r=M(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function M(t){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},M(t)}var I=(0,h.cachedDetect)();if(!i.default.VulcanV2Player){var L=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&B(t,e)}(L,t);var e,n,h,j=D(L);function L(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,L),(e=j.call(this,t)).playerType="vulcan-v2",e._enabledControls={},e._visibilityRequests={},e._inputContextsToEnter=[],e._playerContext=[],e._overlays={},e._initialized=e.setupBehaviors(),e._isKeyboardFocused=void 0,e.setupTracking(),t._playlist&&t._playlist.length>1&&e.loadLastFrameCanvasControl(),e.on("playlistchange",(function(t){t.length>1&&e.loadLastFrameCanvasControl()}));var n=e.on("beforereplace",(function(){n(),e.loadLastFrameCanvasControl()}));return(0,o.onDocReady)((function(){(0,f.dynamicImport)("assets/external/playPauseLoadingControl.js").then((function(t){(0,p.defineControl)(t.PlayPauseLoadingCircleControl)})),I.touchScreen&&!e.publicApi.isLiveMedia()&&(0,f.dynamicImport)("assets/external/skipControls.js").then((function(t){(0,p.defineControl)(t.SkipAheadControl),(0,p.defineControl)(t.SkipBackControl)}))})),e._opts.techInfo&&(0,f.dynamicImport)("assets/external/vulcanV2Player/video/controls/TechInfoControl/TechInfoControl.js").then((function(t){(0,p.defineControl)(t.TechInfoControl)})),e._opts.spherical&&(0,f.dynamicImport)("assets/external/vulcanV2Player/video/controls/SphericalControl/SphericalControl.js").then((function(t){(0,p.defineControl)(t.SphericalControl)})),e.publicApi.isLiveMedia()&&(0,f.dynamicImport)("assets/external/captions-v3.js").then((function(t){(0,p.defineControl)(t.CaptionsV3Control)})),e}return e=L,n=[{key:"loadLastFrameCanvasControl",value:function(){this.ready((function(){(0,f.dynamicImport)("assets/external/vulcanV2Player/video/controls/LastFrameCanvasControl.js").then((function(t){(0,p.defineControl)(t.LastFrameCanvasControl)}))}))}},{key:"setupBehaviors",value:function(){var t=this;return new Promise((function(e){t.addBehaviors([y.default,v.default,m.default,g.default,k.PlaySuspendedOffScreenBehavior,b.default,_.ProblemMonitoringBehavior,w.default]),t.publicApi.isLiveMedia()||t.addBehavior(P.default),"Audio"===t._mediaData.type?Promise.all([(0,f.dynamicImport)("assets/external/vulcanV2Player/audio/AudioUIBehavior.js"),(0,f.dynamicImport)("assets/external/interFontFace.js")]).then((function(n){var i=A(n,1)[0];t.addBehavior(i.AudioUIBehavior),e()})):(t.addBehavior(O.default),e())}))}},{key:"removeBehaviors",value:function(){for(var t in this.behaviors)C(this.behaviors,t)&&this.removeBehavior(t)}},{key:"setupTracking",value:function(){this.publicApi.isLiveMedia()?(this._tracker=new a.LiveMediaTracker(this.publicApi),this._tracker.monitor()):(this._tracker=new i.default.VideoTracker2(this.publicApi),this._tracker.visitorKey(),this._tracker.monitor())}},{key:"elem",value:function(){return this.engine?this.engine.getMediaElement():(this._dummyVideo||(this._dummyVideo=document.createElement("video")),this._dummyVideo)}},{key:"embed",value:function(t){var e=this;return this._initialized.then((function(){return t instanceof L?e.behaviors.embed.embed(t):e.behaviors.embed.embed()}))}},{key:"eventKey",value:function(){return this._tracker.eventKey()}},{key:"renderUI",value:function(){var t=this;return this.ui||(this.ui=this.behaviors.ui),(this.ui.lastRenderPromise||Promise.resolve()).then((function(){return t.ui.render()}))}},{key:"rebuild",value:function(){return this.behaviors.embed.rebuild(this)}},{key:"onDimensionChangeSafe",value:function(){if(this.grid)try{this.onWidthChange(this.videoWidth()),this.onHeightChange(this.videoHeight())}catch(t){this.error(t)}}},{key:"transferStateFrom",value:function(t){this.behaviors.fullscreen&&this.behaviors.fullscreen.transferStateFrom(t),this.isKeyboardFocused(t.isKeyboardFocused()),!0!==this.publicApi._opts.skipFocus&&this.focus()}},{key:"bestEngine",value:function(){return s.bestUsableEngine(this.publicApi.judyCtx(),this._mediaData,this._opts)}},{key:"initEngineAfterEmbedded",value:function(){var t=this;this.embedded((function(){return t.behaviors.embed.initializeEngine()}))}},{key:"setupBindings",value:function(){this.setupVideoBindings()}},{key:"setupVideoBindings",value:function(){var t=this;this.publicApi.bind("click",(function(){t.initEngineAfterEmbedded()})),this.publicApi.bind("mouseenter",(function(){t.initEngineAfterEmbedded()})),this.publicApi.bind("focusin",(function(){t.initEngineAfterEmbedded()})),this.bind("widthchange",(function(e){t.onWidthChange(e)})),this.bind("heightchange",(function(e){t.onHeightChange(e)}))}},{key:"addBehavior",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];null==this.behaviors&&(this.behaviors={});var n=t.handle;if(n){this.behaviors[n]&&(this.behaviors[n].destroy(),this.behaviors[n]=null);try{var i=this.behaviors[n]=new t(this);return e&&i.init(),i}catch(t){setTimeout((function(){throw t}),0),delete this.behaviors[n]}}else this.error("No handle defined for",t)}},{key:"addBehaviors",value:function(t){var e=this,n=t.map((function(t){return e.addBehavior(t,!1)}));return n.forEach((function(t){try{t.init()}catch(n){e.error("error in init for",t.constructor.handle,"behavior"),setTimeout((function(){throw n}),0)}})),n}},{key:"removeBehavior",value:function(t){this.behaviors[t]&&(this.behaviors[t].destroy(),delete this.behaviors[t])}},{key:"isMediaDataUsingEmbedSsl",value:function(){for(var t=0;t<this._mediaData.assets.length;t++){var e=this._mediaData.assets[t];if(e.url&&/embed-ssl\.wistia\.com/.test(e.url))return!0}return!1}},{key:"onWidthChange",value:function(t){this.engine&&this.engine.onWidthChange(t)}},{key:"onHeightChange",value:function(t){this.engine&&this.engine.onHeightChange(t)}},{key:"controlScaling",value:function(t){if(null==t)return this._controlScaling||"auto";var e=this._controlScaling;this._controlScaling=t,e!==t&&this.trigger("controlscalingchange",t,e)}},{key:"audioDescriptionControlEnabled",value:function(t){this.setControlEnabled("audioDescriptionButton",t)}},{key:"bigPlayButtonEnabled",value:function(t){R(M(L.prototype),"bigPlayButtonEnabled",this).call(this,t),this.setControlEnabled("bigPlayButton",t)}},{key:"bigPlayButtonTimeEnabled",value:function(t){this.isControlEnabled("bigPlayButton")&&this.ui.controls.bigPlayButton.setTimeEnabled(t)}},{key:"playPauseControlEnabled",value:function(t){R(M(L.prototype),"playPauseControlEnabled",this).call(this,t),this.setControlEnabled("smallPlayButton",t)}},{key:"playbarControlEnabled",value:function(t){R(M(L.prototype),"playbarControlEnabled",this).call(this,t),this.setControlEnabled("playbar",t)}},{key:"settingsControlEnabled",value:function(t){R(M(L.prototype),"settingsControlEnabled",this).call(this,t),this.setControlEnabled("settingsButton",t)}},{key:"playbackRateControlEnabled",value:function(t){this.isControlEnabled("settingsButton")&&this.ui.controls.settingsButton.setPlaybackRateEnabled(t)}},{key:"playPauseNotifierEnabled",value:function(t){R(M(L.prototype),"playPauseNotifierEnabled",this).call(this,t),this.setControlEnabled("playPauseNotifier",t)}},{key:"qualityControlEnabled",value:function(t){this.isControlEnabled("settingsButton")&&this.ui.controls.settingsButton.setQualityEnabled(t)}},{key:"volumeControlEnabled",value:function(t){R(M(L.prototype),"volumeControlEnabled",this).call(this,t),this.setControlEnabled("volumeButton",t)}},{key:"fullscreenControlEnabled",value:function(t){R(M(L.prototype),"fullscreenControlEnabled",this).call(this,t),this.setControlEnabled("fullscreenControl",t)}},{key:"hideControls",value:function(){return this.ui.releaseControls("showControls")}},{key:"showControls",value:function(){return this.requestControls("showControls",4e3)}},{key:"requestChromeless",value:function(t,e){return this.requestControls(t,e,!1)}},{key:"releaseChromeless",value:function(t){return this.releaseControls(t)}},{key:"requestControls",value:function(t,e){var n=this,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this._visibilityRequests[t]=i,null!=e&&(0,d.doTimeout)("".concat(this.uuid,".").concat(t,".release_controls"),(function(){n.releaseControls(t)}),e),this.ui.maybeToggleControls()}},{key:"releaseControls",value:function(t){return this._visibilityRequests[t]=null,this.ui.maybeToggleControls()}},{key:"fit",value:function(){R(M(L.prototype),"fit",this).call(this),this.embedded((function(){}))}},{key:"getBuffered",value:function(){if(!this.engine)return[];if(this.engine.activeBufferRange()){var t=A(this.engine.activeBufferRange(),2);return[{start:t[0],end:t[1]}]}return[]}},{key:"rangeBuffered",value:function(){this.engine.activeBufferRange()}},{key:"timeBuffered",value:function(){var t=this.rangeBuffered();return t?t[1]-t[0]:0}},{key:"totalBuffered",value:function(){return this.engine?this.engine.totalBuffered():0}},{key:"totalPlayed",value:function(){return this.engine?this.engine.totalPlayed():0}},{key:"sequentialBufferedRange",value:function(){return this.engine?this.engine.sequentialBufferedRange():[0,0]}},{key:"requestFullscreen",value:function(){return this.behaviors.fullscreen.requestFullscreen()}},{key:"cancelFullscreen",value:function(){return this.behaviors.fullscreen.cancelFullscreen()}},{key:"inFullscreen",value:function(){var t;return null===(t=this.behaviors.fullscreen)||void 0===t?void 0:t.inFullscreen()}},{key:"stopStreaming",value:function(){this.info("stopStreaming"),this.engine&&this.engine.stopStreaming()}},{key:"cleanup",value:function(){this.info("cleanup"),this.removeBehaviors()}},{key:"getVideoQuality",value:function(){return this.engine?this.engine.getCurrentQuality():"auto"}},{key:"setVideoQuality",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto";return new Promise((function(n){t.info("videoQuality",e),t.initEngineAfterEmbedded(),t.ready((function(){n(t.engine.changeQuality(e,"playing"===t.state()))}))}))}},{key:"changeAudioTrack",value:function(t){var e=this;null!=t&&(this.initEngineAfterEmbedded(),this.info("changeAudioTrack",t),this.commandQueueOpen.synchronize((function(n){e.ready((function(){e.engine.changeAudioTrack(t).then(n)}))})))}},{key:"getAudioTracks",value:function(){var t=this.bestEngine();return this.engine?this.engine.getAudioTracks():"engines/hls_video.js"===t||"engines/native_hls_video.js"===t?(0,E.audioTracksForVideo)((0,E.allHlsAudioAssets)(this._mediaData.assets)):[]}},{key:"getCurrentAudioTrack",value:function(){return this.engine?this.engine.getCurrentAudioTrack():0}},{key:"selectedQuality",value:function(){return this.engine?this.engine.selectedQuality():"auto"}},{key:"selectableQualities",value:function(){return this.engine?this.engine.selectableQualities():["auto"]}},{key:"stillUrl",value:function(t){return t=(0,c.merge)({playButton:!1},t),R(M(L.prototype),"stillUrl",this).call(this,t)}},{key:"play",value:function(){var t=this;this.suppressPlay()||this.trigger("playcalled"),this.initEngineAfterEmbedded();var e=(0,l.inUserEventContext)()&&!this.ready();this.info("play");var n=function(){t._isPlayPending=!1,t._lastPlayType=void 0,t._lastPlayRejectedAt=Date.now(),t.trigger("playrejected",t.lastPlayInfo())};return this.publicApi.isLiveMedia()&&!1===this.ready()?(n(),console.log("The call to play() failed likely because the livestream media was not yet ready. Try calling play() in an onReady event instead."),Promise.reject()):this.suppressPlay()?Promise.resolve():(this._isPlayPending=!0,this._lastPlayType=void 0,this._lastPlaySource=F(),this._lastPlayIssuedAt=Date.now(),this._lastPlayResolvedAt=null,this._lastPlayRejectedAt=null,this.trigger("playpending",this.lastPlayInfo()),new Promise((function(r,o){t.ready((function(){t._calledPlay=!0,t._mozillaAtEnd()&&t.engine.setCurrentTime(0);var a={};e&&!1===t._attrs.silentAutoplay&&(a.silentAutoplay="allow",t.trigger("clicked-play-before-ready")),i.default.detect.ios.version&&i.default.detect.ios.version<10.1&&!(0,l.inUserEventContext)()&&!t.engine.isInitializingFromUnmuted()&&(t.notice("Play rejected because not in user context."),n(),o()),t.engine.play(a).then((function(e){t._isPlayPending=!1,t._lastPlayType=e,t._lastPlayResolvedAt=Date.now(),"play-silently"!==e||t._inSilentPlaybackMode||(t._inSilentPlaybackMode=!0,t.trigger("silentplaybackmodechange",!0)),r()})).catch((function(e){t.notice(e),n(),o()}))}))})))}},{key:"pause",value:function(){var t=this;return this.info("pause"),this.trigger("receivepause"),this.initEngineAfterEmbedded(),this._isPausePending=!1,this._lastPauseSource=F(),this._lastPauseIssuedAt=Date.now(),new Promise((function(e){t.ready()&&(t.engine.pause(),t._isPausePending=!1,e())}))}},{key:"time",value:function(t,e){var n=this;return null!=t?(this.info("time",t),"beforeplay"===this.state()&&(this._startPosition=t),this.initEngineAfterEmbedded(),new Promise((function(i){"beforeplay"===n.state()&&(n._lastPlaySource=F(),n._lastPlayIssuedAt=Date.now(),n._isPlayPending=!0,n._lastPlayType=void 0,n._isPausePending=!0,n._lastPauseIssuedAt=n._lastPlayIssuedAt,n._lastPauseSource=n._lastPlaySource),t=Math.max(0,Math.min(n.duration(),t)),n.ready((function(){if(e&&e.lazy&&"playing"!==n.state())return n.engine.seekOnPlay(t).then(n.behaviors.relayEvents.fireTimeChangedEventsIfChanged),n._isPlayPending=!1,void i();"beforeplay"===n.state()?n._seekPromise=n.engine.seek(t,e).catch((function(e){n.notice(e),n.engine.seekOnPlay(t),n._isPlayPending=!1,n._lastPlayRejectedAt=Date.now(),n._lastPlayType=void 0,n.trigger("playrejected",n.lastPlayInfo()),i()})).then((function(t){n.behaviors.relayEvents.fireTimeChangedEventsIfChanged(),n._isPlayPending=!1,n._isPausePending=!1,n._lastPlayType=t,"play-silently"===t&&(n._inSilentPlaybackMode=!0,n.trigger("silentplaybackmodechange",!0)),i()})):(n.info("time ".concat(t,": set immediately")),n.engine.setCurrentTime(t),n.behaviors.relayEvents.fireTimeChangedEventsIfChanged(),i())}))}))):this.engine&&this.engine.getCurrentTime()||0}},{key:"duration",value:function(){if(this.publicApi.isLiveMedia())return Infinity;if(this.engine)return this.engine.getDuration();var t=this._mediaData.secondaryMediaData?this._mediaData.secondaryMediaData.duration:this._mediaData.duration,e={attributes:{cuts:this._opts.cuts,duration:t,trimEnd:this._opts.trimEnd,trimStart:this._opts.trimStart}};return(0,S.getDurationAfterCuts)(e)}},{key:"volume",value:function(t){return null!=t&&(this.info("volume",t),t=Math.max(0,Math.min(1,t)),this.initEngineAfterEmbedded(),R(M(L.prototype),"volumeAttr",this).call(this,t),this.ready()&&this.engine.setVolume(t)),this.engine?(R(M(L.prototype),"volumeAttr",this).call(this,this.engine.getVolume()),this.engine.getVolume()):null!=this._attrs.volume?this._attrs.volume:1}},{key:"mute",value:function(){var t=this;this._muted=!0,this.ready()?this.engine.mute():this.ready((function(){t.engine.mute()}))}},{key:"unmute",value:function(){this._muted=!1,this.ready()&&(i.default.detect.callingPlayRequiresEventContext?"playing"!==this.state()||(0,l.inUserEventContext)()?(this.engine.unmute(),this._inSilentPlaybackMode&&(this._inSilentPlaybackMode=!1,this.trigger("silentplaybackmodechange",!1))):this.notice("could not unmute"):(this.engine.unmute(),this._inSilentPlaybackMode&&(this._inSilentPlaybackMode=!1,this.trigger("silentplaybackmodechange",!1))))}},{key:"isMuted",value:function(){return this.engine?this.engine.isMuted():null!=this._muted?this._muted:!!this._opts.muted}},{key:"isResumableEnabled",value:function(){return!(!this.behaviors[P.default.handle]||null!=this._impl._startPosition||this.publicApi.isLiveMedia())&&(!0===this._attrs.resumable||!1!==this._attrs.resumable&&this.meetsAutoCriteraForResumable())}},{key:"meetsAutoCriteraForResumable",value:function(){var t=this.isControlEnabled("playbar")||this._attrs.playBarControl;return!(0,r.shorterThanResumableThreshold)(this.duration())&&!this._attrs.autoplay&&!("loop"===this._attrs.endVideoBehavior)&&(t||this.isAudio())}},{key:"setResumable",value:function(t){R(M(L.prototype),"setResumable",this).call(this,t),!1===t?this.behaviors.resumable.destroyResumableKey():this.shouldResume()&&this.behaviors.resumable.initResumableKey(),this.behaviors.embed.updateStartPosition()}},{key:"shouldResume",value:function(){return this.isResumableEnabled()&&(0,r.withinResumableTime)(this.publicApi.hashedId(),this.duration())}},{key:"state",value:function(){if(this.engine){var t,e=this.engine.getPlaybackMode();return"beforeplay"===e&&null!==(t=this.behaviors.relayEvents)&&void 0!==t&&t._hasPlayed?"paused":e}return"beforeplay"}},{key:"setAriaLiveText",value:function(t){this.ui||(this.ui=this.behaviors.ui),this.ui.setAriaLiveText(t)}},{key:"lastPauseInfo",value:function(){return{source:this._lastPauseSource,issuedAt:this._lastPauseIssuedAt,isPending:!!this._isPausePending}}},{key:"lastPlayInfo",value:function(){return{source:this._lastPlaySource,issuedAt:this._lastPlayIssuedAt,isPending:!!this._isPlayPending,playType:this._lastPlayType,resolvedAt:this._lastPlayResolvedAt,rejectedAt:this._lastPlayRejectedAt}}},{key:"playerBackgroundColor",value:function(t){if(null!=t){this.info("playerBackgroundColor",t);var e=this._attrs.playerBackgroundColor;return this._attrs.playerBackgroundColor=new u.default(t).toHex(),e!==this._attrs.playerBackgroundColor&&this.trigger("playerbackgroundcolorchange",this._attrs.playerBackgroundColor,e),this}return this._attrs.playerBackgroundColor}},{key:"preloadValue",value:function(){return this.behaviors.embed.preloadValue()}},{key:"width",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t?n.fullscreen||!this.inFullscreen()?R(M(L.prototype),"width",this).call(this,t,n):(this.info("notFullscreen => width(".concat(t,")")),this.notFullscreen((function(){R(M(L.prototype),"width",e).call(e,t,n)})),this):R(M(L.prototype),"width",this).call(this,t,n)}},{key:"height",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t?n.fullscreen||!this.inFullscreen()?R(M(L.prototype),"height",this).call(this,t,n):(this.info("notFullscreen => height(".concat(t,")")),this.notFullscreen((function(){R(M(L.prototype),"height",e).call(e,t,n)})),this):R(M(L.prototype),"height",this).call(this,t,n)}},{key:"videoWidth",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t?n.fullscreen||!this.inFullscreen()?R(M(L.prototype),"videoWidth",this).call(this,t,n):(this.info("notFullscreen => videoWidth(".concat(t,")")),this.notFullscreen((function(){R(M(L.prototype),"videoWidth",e).call(e,t,n)})),this):R(M(L.prototype),"videoWidth",this).call(this,t,n)}},{key:"videoHeight",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null!=t&&this.inFullscreen()?(this.info("notFullscreen => videoHeight(".concat(t,")")),this.notFullscreen((function(){R(M(L.prototype),"videoHeight",e).call(e,t,n)})),this):R(M(L.prototype),"videoHeight",this).call(this,t,n)}},{key:"playbackRate",value:function(t){var e=this;return null!=t?(this.initEngineAfterEmbedded(),this.ready((function(){e.info("playbackRate",t);var n=parseFloat(t);if(isNaN(n))return e.error('playbackRate: Invalid argument "#{rate}" given. Expected a float.'),e;t=n;var i=e.engine.getPlaybackRate();e.engine.setPlaybackRate(t),e._eventLoopDuration=Math.max(50,Math.min(500,e._baseEventLoopDuration/t)),e._playbackRate=t,i!==e._playbackRate&&(e.trigger("playbackratechange",e._playbackRate),e.embedElement.dispatchEvent(new CustomEvent("ratechange",{detail:{playbackRate:e._playbackRate}})))})),this):this.engine?this.engine.getPlaybackRate():1}},{key:"trim",value:function(t){var e=this;if(null==t)return this.engine.getTrim();this.embedded((function(){(0,c.equalsDeep)(t,e.engine.getTrim())||(e.engine.setTrim(t),e.trigger("trimchange",t))}))}},{key:"captureCurrentFrame",value:function(){var t;return(t=this.engine).captureCurrentFrame.apply(t,arguments)}},{key:"getReportAProblemData",value:function(t){var e=this,n=function(t){try{return t()}catch(t){return"threw exception: ".concat(t.message)}},r=W(this.publicApi._opts),o=this.publicApi._optionSources();Object.keys(o).forEach((function(t){o[t]=W(o[t])}));var a={player_version:T.PLAYER_VERSION,media_key:this._mediaData.mediaKey,account_key:this._mediaData.accountKey,visitor_key:this.visitorKey(),event_key:this.eventKey(),referrer:document.referrer,page_url:location.href,extra_data:{first_1000_logs:i.default.wlog.first1000LogLines(),last_1000_logs:i.default.wlog.last1000LogLines(),browser_time:new Date,option_sources:n((function(){return o})),embedOptions:r,active_plugins:n((function(){return Object.keys(e.publicApi.plugin)})),assets:this._mediaData.assets,selectedAsset:this.engine.selectedAsset(),attrs:this._attrs,judy:n((function(){return s.report(e.publicApi.judyCtx(),e._mediaData,e._opts)})),detect:i.default.detect,engineDiagnostics:n((function(){return e.engine.diagnosticData()}))}};for(var u in this.publicApi.plugin){var l=this.publicApi.plugin[u];"function"==typeof l.getReportAProblemData&&(a.extra_data[u]=l.getReportAProblemData())}return a}},{key:"isKeyboardFocused",value:function(t){return null!=t&&(this._isKeyboardFocused=t),this._isKeyboardFocused}},{key:"setControlEnabled",value:function(t,e){var n=this,i=this.isControlEnabled(t)!==e;this._enabledControls[t]=e;var r=function(){e?n.trigger("controlenabled",t):n.trigger("controldisabled",t)};return i?this.embedded()?this.renderUI().then(r):new Promise((function(t){n.embedded(t),r()})):this.ui&&this.ui.lastRenderPromise||Promise.resolve()}},{key:"isControlDisabled",value:function(t){var e=i.default._controlDefinitions[t];return!!(e&&e.isVideoChrome&&this._opts.chromeless)||!1===this._enabledControls[t]}},{key:"isControlEnabled",value:function(t){return!1!==this._enabledControls[t]&&null!=this.publicApi.controls[t]}},{key:"whenControlMounted",value:function(t){var e=this;return new Promise((function(n){e.embedded((function(){e.behaviors.ui.whenControlMounted(t).then(n)}))}))}},{key:"getControl",value:function(t){return this.ui&&this.ui.controls&&this.ui.controls[t]}},{key:"_doEnterInputContexts",value:function(){var t=this;this._inputContextsToEnter=this._inputContextsToEnter.reverse().map((function(e){var n=t._playerContext.indexOf(e);return n>0&&t._playerContext.splice(n,1),(-1===n||n>0)&&(t._playerContext.unshift(e),t.trigger("inputcontextchange",e)),e}))}},{key:"enterInputContext",value:function(t){var e=this;(0,d.clearTimeouts)("".concat(this.uuid,".enter_input_contexts")),this._inputContextsToEnter.push(t),(0,d.doTimeout)("".concat(this.uuid,".enter_input_contexts"),(function(){e._doEnterInputContexts()}),10)}},{key:"originalenterInputContext",value:function(t){var e=this._playerContext.indexOf(t);e>0&&this._playerContext.splice(e,1),(-1===e||e>0)&&(this._playerContext.unshift(t),this.trigger("inputcontextchange",t))}},{key:"exitInputContext",value:function(t){var e=this.getInputContext(),n=this._playerContext.indexOf(t);if(-1!==n){this._playerContext.splice(n,1);var i=this.getInputContext();e!==i&&this.trigger("inputcontextchange",i)}}},{key:"getInputContext",value:function(){return this._playerContext[0]}},{key:"getMediaElement",value:function(){return this.engine&&this.engine.getMediaElement()}},{key:"whenVideoElementInDom",value:function(){var t=this;return this._whenVideoElementInDom?this._whenVideoElementInDom:this.engine?Promise.resolve(this.getMediaElement()):this._whenVideoElementInDom=new Promise((function(e){t.bind("engine-initialized",(function(){return e(t.getMediaElement()),t.unbind}))}))}},{key:"inSilentPlaybackMode",value:function(){return!!this._inSilentPlaybackMode}},{key:"checkForReady",value:function(){this.behaviors.embed.checkForReady()}},{key:"loadOverlayCode",value:function(){var t=this;return new Promise((function(e){t.behaviors.overlays?e():(0,f.dynamicImport)("assets/external/vulcanV2Player/behaviors/OverlaysBehavior.js").then((function(n){t.behaviors.overlays||t.addBehavior(n.OverlaysBehavior),e()}))}))}},{key:"defineOverlay",value:function(t,e){var n=this;return this.loadOverlayCode().then((function(){n._overlays[t]=e}))}},{key:"requestOverlay",value:function(t){var e=this;return this.loadOverlayCode().then((function(){return e.behaviors.overlays.requestOverlay(t)}))}},{key:"cancelOverlay",value:function(t){var e=this;return this.loadOverlayCode().then((function(){return e.behaviors.overlays.cancelOverlay(t)}))}},{key:"undefineOverlay",value:function(t){var e=this;return this.loadOverlayCode().then((function(){return e.behaviors.overlays.undefineOverlay(t)}))}},{key:"getOverlays",value:function(){return this._overlays}},{key:"layout",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==t)return this._layout;this.whenVideoElementInDom().then((function(){e.engine.setLayout(t,n)})),this._layout=t}},{key:"focus",value:function(){this.isAudio()?this.whenControlMounted("audioBackgroundFocus").then((function(t){t.focus()})):this.whenControlMounted("backgroundFocus").then((function(t){t.focus()}))}},{key:"_inNativeMode",value:function(){var t;return(null===(t=this.behaviors.ui)||void 0===t?void 0:t.inNativeMode())||!1}},{key:"_bandwidthTest",value:function(){return this.behaviors.bandwidthTest.bandwidthTest()}},{key:"_mozillaAtEnd",value:function(){return this.behaviors.relayEvents.mozillaAtEnd()}},{key:"_focusNextVisibleElem",value:function(){return this.behaviors.ui.focusNextVisibleElem()}},{key:"openTabMenu",value:function(){this.isAudio()&&this.ui.openTabMenu()}},{key:"closeTabMenu",value:function(){this.isAudio()&&this.ui.closeTabMenu()}},{key:"openChaptersTab",value:function(){var t=this;this.isAudio()&&this.whenControlMounted("chaptersTab").then((function(e){t.ui.setSelectedTab(e.constructor.handle),t.openTabMenu()}))}},{key:"openShareTab",value:function(){var t=this;this.isAudio()&&this.whenControlMounted("shareTab").then((function(e){t.ui.setSelectedTab(e.constructor.handle),t.openTabMenu()}))}},{key:"openTranscriptTab",value:function(){var t=this;this.isAudio()&&this.whenControlMounted("transcriptTab").then((function(e){t.ui.setSelectedTab(e.constructor.handle),t.openTabMenu()}))}},{key:"turnOffCaptions",value:function(){var t,e;null===(t=this.controls.captions)||void 0===t||t.turnOff(),null===(e=this.controls.captionsButton)||void 0===e||e.matchMenuToSelectedTextTrack()}}],n&&x(e.prototype,n),h&&x(e,h),Object.defineProperty(e,"prototype",{writable:!1}),L}(i.default.Video);i.default.VulcanV2Player=L,i.default.plugin("vulcanV2Player",(function(t,e){i.default.info("vulcanV2Player no-op plugin executed")}));var F=function(){return(0,l.inUserEventContext)()?"user-event":"non-user-event"},W=function(t){var e=(0,c.clone)(t);return e.container&&(e.container="removed to avoid circular"),e}}i.default.VulcanV2Player},(t,e,n)=>{n.d(e,{LiveMediaTracker:()=>i.LiveMediaTracker});var i=n(143)},(t,e,n)=>{n.d(e,{LiveMediaTracker:()=>F});var i=n(117),r=n(5),o=n(31),a=n(144),s=n(148),u=n(149);function l(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,v(i.key),i)}}function p(t,e){g(t,e),e.add(t)}function y(t,e,n){return(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function m(t,e,n){g(t,e),e.set(t,n)}function g(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function b(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}function _(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,P(t,e,"get"))}function w(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,P(t,e,"set"),n),n}function P(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var O=new WeakMap,k=new WeakMap,S=new WeakMap,E=new WeakMap,T=new WeakMap,C=new WeakMap,A=new WeakMap,j=new WeakMap,x=new WeakMap,R=new WeakMap,B=new WeakMap,D=new WeakMap,M=new WeakSet,I=new WeakMap,L=new WeakSet,F=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),p(this,L),p(this,M),m(this,O,{writable:!0,value:void 0}),m(this,k,{writable:!0,value:void 0}),m(this,S,{writable:!0,value:void 0}),m(this,E,{writable:!0,value:[]}),m(this,T,{writable:!0,value:{}}),m(this,C,{writable:!0,value:void 0}),y(this,"SCOPE","live_event"),m(this,A,{writable:!0,value:function(){var t=_(n,k)._mediaData;w(n,E,[]),w(n,S,new u.Client(t.analyticsHost));var e=(0,s.getOrSetIsFirst)(n.hashedId,n.SCOPE,"load");w(n,C,a.PlaySession.load(_(n,O),{visitor_key:_(n,k).visitorKey(),session_key:(0,i.uniqId)("".concat("7bbced7554cec80a60297adb6d5357a3".substring(0,7),"_")),embed_url:_(n,k)._attrs.pageUrl,referrer_url:_(n,k)._attrs.referrerUrl,account_id:t.accountId,live_stream_event_id:t.liveStreamEventDetails.id,media_id:t.mediaId,media_type:"Video",player_type:"modern"},{first:e,scope:n.SCOPE,captions:n.captionsEnabled,live:n.isLive,email:n.email})),b(n,M,W).call(n,n.lastEvent,{force:!0}),"playing"===_(n,k).state()&&_(n,j).call(n),_(n,k).bind("play",_(n,j)),_(n,k).bind("pause",_(n,x)),_(n,k).bind("seek",_(n,B)),_(n,k).bind("end",_(n,D)),_(n,T).flush=setInterval(_(n,I),5e3)}}),m(this,j,{writable:!0,value:function(){var t=(0,s.getOrSetIsFirst)(n.hashedId,n.SCOPE,a.PlaySession.Event.PLAY),e=n.captionsEnabled;w(n,C,_(n,C).play(Date.now(),_(n,k).time(),{first:t,captions:e,live:n.isLive,email:n.email}));var i=_(n,C).lastEvent.event===a.PlaySession.Event.PLAY;b(n,M,W).call(n,n.lastEvent,{force:i}),_(n,T).update=setInterval(_(n,R),5e3)}}),m(this,x,{writable:!0,value:function(){b(n,L,H).call(n,"update"),w(n,C,_(n,C).pause(Date.now(),_(n,k).time(),{captions:n.captionsEnabled,live:n.isLive,email:n.email})),b(n,M,W).call(n,n.lastEvent)}}),m(this,R,{writable:!0,value:function(){n.isPlaying&&(w(n,C,_(n,C).update(Date.now(),_(n,k).time(),{captions:n.captionsEnabled,live:n.isLive,email:n.email})),b(n,M,W).call(n,n.lastEvent))}}),m(this,B,{writable:!0,value:function(t,e){w(n,C,_(n,C).seek(Date.now(),e,t,{captions:n.captionsEnabled,live:n.isLive,email:n.email})),b(n,M,W).call(n,n.lastEvent)}}),m(this,D,{writable:!0,value:function(){w(n,C,_(n,C).end(Date.now(),_(n,k).time(),{captions:n.captionsEnabled,live:n.isLive,email:n.email})),b(n,M,W).call(n,n.lastEvent,{force:!0})}}),m(this,I,{writable:!0,value:function(){if(0!==_(n,E).length){var t=_(n,E),e=h(h({},_(n,C).meta),{},{events:t,anonymize_ip:n.shouldAnonymizeIp});w(n,E,[]),_(n,k).debug("Submitting events",e),_(n,S).liveStream(e).then((function(t){if(!t.ok)throw new Error("Failed to send tracking events. Server responded with status: ".concat(t.status))})).catch((function(e){_(n,k).error(e),w(n,E,[].concat(l(t),l(_(n,E))).sort((function(t,e){return t.time-e.time})))}))}}}),w(this,O,Date.now()),w(this,k,e)}var e,n,c;return e=t,(n=[{key:"meta",get:function(){var t;return null===(t=_(this,C))||void 0===t?void 0:t.meta}},{key:"lastEvent",get:function(){var t;return null===(t=_(this,C))||void 0===t?void 0:t.lastEvent}},{key:"isPlaying",get:function(){var t;return null===(t=_(this,C))||void 0===t?void 0:t.isPlaying}},{key:"captionsEnabled",get:function(){return!!_(this,k).getSelectedCaptions()}},{key:"isLive",get:function(){var t,e;return!(null===(t=_(this,k)._mediaData)||void 0===t||null===(e=t.liveStreamEventDetails)||void 0===e||!e.startedAt)}},{key:"hashedId",get:function(){return _(this,k).hashedId()}},{key:"shouldAnonymizeIp",get:function(){return Boolean(_(this,k)._opts.anonymizeIp||!(0,o.isVisitorTrackingEnabled)())}},{key:"email",get:function(){return _(this,k).email()}},{key:"monitor",value:function(){var t=this;_(this,k).doNotTrack()||(this.stopMonitoring(),_(this,k).hasData((function(){return(0,r.pageLoaded)(_(t,A))})))}},{key:"stopMonitoring",value:function(){_(this,I).call(this),b(this,L,H).call(this,"flush"),b(this,L,H).call(this,"update"),_(this,k).unbind("play",_(this,j)),_(this,k).unbind("pause",_(this,x)),_(this,k).unbind("seek",_(this,B)),_(this,k).unbind("end",_(this,D))}},{key:"timeDelta",value:function(){return(new Date).getTime()-_(this,O)}},{key:"eventKey",value:function(){var t;return null===(t=this.meta)||void 0===t?void 0:t.session_key}},{key:"visitorKey",value:function(){return _(this,k).visitorKey()}}])&&f(e.prototype,n),c&&f(e,c),Object.defineProperty(e,"prototype",{writable:!1}),t}();function W(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).force,n=void 0!==e&&e;_(this,k).debug(t),w(this,E,[].concat(l(_(this,E)),[t])),n&&_(this,I).call(this)}function H(t){_(this,T)[t]&&(clearInterval(_(this,T)[t]),delete _(this,T)[t])}},(t,e,n)=>{n.d(e,{PlaySession:()=>i.PlaySession});n(145);var i=n(146)},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function r(t,e,n){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}function o(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,s(t,e,"get"))}function a(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,s(t,e,"set"),n),n}function s(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}n.d(e,{InclusiveRange:()=>c});var u=new WeakMap,l=new WeakMap,c=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r(this,u,{writable:!0,value:void 0}),r(this,l,{writable:!0,value:void 0}),a(this,u,e),a(this,l,n)}var e,n,s;return e=t,(n=[{key:"start",get:function(){return o(this,u)}},{key:"end",get:function(){return o(this,l)}},{key:"isEmpty",get:function(){return this.start==this.end}},{key:"isAscending",get:function(){return this.start<=this.end}},{key:"foreach",value:function(t){for(var e=this.start;e<=this.end;++e)t(e)}},{key:"reduce",value:function(t,e){var n=e;return this.foreach((function(e){n=t(n,e)})),n}},{key:"includes",value:function(t){var e=Math.min(this.start,this.end),n=Math.max(this.start,this.end);return e<=t&&t<=n}},{key:"toJSON",value:function(){return{start:this.start,end:this.end}}}])&&i(e.prototype,n),s&&i(e,s),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n.d(e,{PlaySession:()=>w});var i=n(147),r=n(145);function o(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){d(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,h(i.key),i)}}function c(t,e){f(t,e),e.add(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function f(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function p(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}function y(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,m(t,e,"get"))}function v(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,m(t,e,"set"),n),n}function m(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var g=new WeakMap,b=new WeakSet,_=new WeakSet,w=function(){function t(e){var n,i,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,_),c(this,b),r={writable:!0,value:void 0},f(n=this,i=g),i.set(n,r),v(this,g,e)}var e,n,r;return e=t,n=[{key:"meta",get:function(){return y(this,g).meta}},{key:"startedAt",get:function(){return y(this,g).startedAt}},{key:"isPlaying",get:function(){return void 0===y(this,g).inactiveAt}},{key:"scope",get:function(){return y(this,g).scope}},{key:"histogram",get:function(){return y(this,g).histogram}},{key:"history",get:function(){return y(this,g).history}},{key:"lastEvent",get:function(){return this.history[0]}},{key:"position",get:function(){return this.lastEvent.player_position}},{key:"play",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.first,a=void 0!==r&&r,s=i.captions,l=void 0!==s&&s,c=i.live,d=void 0!==c&&c,h=i.email,f=u({time:e,event:this.lastEvent.event===t.Event.LOAD?t.Event.PLAY:t.Event.UNPAUSE,scope:this.scope,first:a,live:d,captions:l,email:h,player_position:n},t.EMPTY_METRICS);return new t(u(u({},y(this,g)),{},{inactiveAt:void 0,history:[f].concat(o(this.history))}))}},{key:"pause",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,a=void 0!==r&&r,s=i.live,l=void 0!==s&&s,c=i.email,d=p(this,b,P).call(this,n),h=p(this,_,O).call(this,d),f=u({time:e,event:t.Event.PAUSE,scope:this.scope,live:l,captions:a,email:c,player_position:n},h);return new t(u(u({},y(this,g)),{},{inactiveAt:e,histogram:this.histogram.union(d),history:[f].concat(o(this.history))}))}},{key:"seek",value:function(e,n,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=r.captions,s=void 0!==a&&a,l=r.live,c=void 0!==l&&l,d=r.email,h=t.EMPTY_METRICS,f=this.histogram,v=e;if(this.isPlaying){var m=p(this,b,P).call(this,n);h=p(this,_,O).call(this,m),f=f.union(m),v=void 0}var w=u({time:e,event:t.Event.SEEK,scope:this.scope,live:c,captions:s,email:d,previous_player_position:n,player_position:i},h);return new t(u(u({},y(this,g)),{},{inactiveAt:v,histogram:f,history:[w].concat(o(this.history))}))}},{key:"update",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,a=void 0!==r&&r,s=i.live,l=void 0!==s&&s,c=i.email;if(this.isPlaying){var d=p(this,b,P).call(this,n),h=p(this,_,O).call(this,d),f=u({time:e,event:t.Event.UPDATE,scope:this.scope,live:l,captions:a,email:c,player_position:n},h);return new t(u(u({},y(this,g)),{},{histogram:this.histogram.union(d),history:[f].concat(o(this.history))}))}return this}},{key:"end",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i.captions,a=void 0!==r&&r,s=i.live,l=void 0!==s&&s,c=i.email,d=p(this,b,P).call(this,n),h=p(this,_,O).call(this,d),f=u({time:e,event:t.Event.END,scope:this.scope,live:l,captions:a,email:c,player_position:n},h);return new t(u(u({},y(this,g)),{},{inactiveAt:e,histogram:this.histogram.union(d),history:[f].concat(o(this.history))}))}}],r=[{key:"load",value:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=r.first,a=void 0!==o&&o,s=r.scope,l=r.captions,c=void 0!==l&&l,d=r.live,h=void 0!==d&&d,f=r.email,p=u({time:e,event:t.Event.LOAD,scope:s,first:a,live:h,captions:c,email:f},t.EMPTY_METRICS);return new t({startedAt:e,meta:n,scope:s,inactiveAt:e,histogram:new i.Histogram,history:[p]})}}],n&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function P(t){var e=this.lastEvent.event===w.Event.UPDATE,n=this.position;e&&(n+=1);var i=new r.InclusiveRange(Math.floor(n),Math.floor(t));return i.isAscending?i:void 0}function O(t){return t?this.histogram.chunkInRangeBy(t,(function(t){return 0===t.value})).reduce((function(t,e){var n=e.at(0),i=n.bucket,r=n.value,a=e.at(-1).bucket;return u(u({},t),{},0===r?{unique_played_time:t.unique_played_time+e.length,unique_played_ranges:[].concat(o(t.unique_played_ranges),[{start:i,end:a}])}:{replayed_time:t.replayed_time+e.length,replayed_ranges:[].concat(o(t.replayed_ranges),[{start:i,end:a}])})}),{unique_played_time:0,unique_played_ranges:[],replayed_time:0,replayed_ranges:[]}):w.EMPTY_METRICS}d(w,"Event",Object.freeze({LOAD:"load",PLAY:"play",SEEK:"seek",PAUSE:"pause",UNPAUSE:"unpause",UPDATE:"update",END:"end"})),d(w,"EMPTY_METRICS",{unique_played_time:0,unique_played_ranges:[],replayed_time:0,replayed_ranges:[]})},(t,e,n)=>{n.d(e,{Histogram:()=>p});var i=n(145);function r(t){return function(t){if(Array.isArray(t))return t}(t)||s(t)||a(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){return function(t){if(Array.isArray(t))return u(t)}(t)||s(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}function s(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function c(t,e,n){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}function d(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,h(t,e,"set"),n),n}function h(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var f=new WeakMap,p=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),c(this,f,{writable:!0,value:void 0}),d(this,f,e)}var e,n,a;return e=t,(n=[{key:"buckets",get:function(){return function(t,e){return e.get?e.get.call(t):e.value}(t=this,h(t,f,"get"));var t}},{key:"valueAt",value:function(t){return this.buckets[t]||0}},{key:"union",value:function(e){var n=this;if(!e)return this;var r=o(this.buckets);return e.foreach((function(t){r[t]=n.valueAt(t)+1})),new i.InclusiveRange(0,e.start-1).foreach((function(t){r[t]=n.valueAt(t)})),new t(r)}},{key:"chunkInRangeBy",value:function(t,e){var n=this,i=Symbol("empty"),a=t.reduce((function(t,i){var a=t.chunks,s=t.flip,u={bucket:i,value:n.valueAt(i)},l=e(u);if(s!==l)return{chunks:[[u]].concat(o(a)),flip:l};var c=r(a),d=c[0],h=c.slice(1);return{chunks:[[].concat(o(d),[u])].concat(o(h)),flip:s}}),{chunks:[],flip:i});return a.chunks.reverse()}}])&&l(e.prototype,n),a&&l(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n.d(e,{getOrSetIsFirst:()=>s});var i=n(28);function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){a(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=function(t,e,n){var r=["wistia",t,e].join("."),s=(0,i.getLocalStorage)(r);return!(n in s)&&((0,i.setLocalStorage)(r,o(o({},s),{},a({},n,1))),!0)}},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,o(i.key),i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function a(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,u(t,e,"set"),n),n}function u(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}n.d(e,{Client:()=>d});var l=new WeakMap,c=new WeakSet,d=r((function t(e){var n,i,r=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),a(n=this,i=c),i.add(n),function(t,e,n){a(t,e),e.set(t,n)}(this,l,{writable:!0,value:void 0}),function(t,e,n){(e=o(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(this,"liveStream",(function(t){return function(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}(r,c,h).call(r,"/live-stream/1.0.0",t)})),s(this,l,e)}));function h(t,e){var n,i=new URL(t,function(t,e){return e.get?e.get.call(t):e.value}(n=this,u(n,l,"get")));return fetch(i,{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},mode:"cors",credentials:"omit",body:JSON.stringify(e),keepalive:!0})}},(t,e,n)=>{var i=n(3),r=n(2),o=n(42),a=n(64),s=n(151),u=n(152),l=n(155),c=n(63),d=n(41),h=n(40);function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},f.apply(this,arguments)}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}(this,n)}}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function b(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(0,d.defineTranslations)("en-US",{AUDIO_DESCRIPTION_HIDE_MENU:"Hide audio description menu",AUDIO_DESCRIPTION_SHOW_MENU:"Show audio description menu"});var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(l,t);var e,n,i,a=v(l);function l(t){var e,n,i,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),e=a.call(this,t),n=m(e),r=function(t){var n=e.video.engine.getCurrentAudioTrackId();Number(n)!==Number(t)&&e.video.changeAudioTrack(t),(0,h.isMouseDownRecently)()&&setTimeout((function(){e.dialog.close(),e.buttonRoot.parentElement.focus()}),300)},(i=b(i="onClickTrack"))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,e.video=t,e.unbinds.push(t.on("playerlanguagechange",(function(){e.menuElem&&e.renderMenu()})),t.on("audiostreamchange",(function(){e.menuElem&&e.renderMenu()}))),e}return e=l,(n=[{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"destroy",value:function(){(0,c.destroyControl)(this)}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"mountDialog",value:function(t){var e=this;this.dialogRoot=t;var n=(0,o.dynamicImport)("assets/external/interFontFace.js").then((function(){e.renderMenu()}));return this.loading(new Promise((function(t){n.then(t)}))),n}},{key:"onControlPropsUpdated",value:function(t){this.dialog&&this.dialog.isOpen()&&this.renderMenu(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&(this.renderButton(),this.renderMenu())}},{key:"renderButton",value:function(){this.updateButtonLabel(),(0,r.render)((0,r.h)(s.default,null),this.buttonRoot),this.reactMounts.button=[this.buttonRoot]}},{key:"renderMenu",value:function(){var t=this;if(this.dialog.isOpen()&&this.dialogRoot){var e=this.video.engine.getAudioTracks();(0,r.render)((0,r.h)(u.AudioDescriptionMenu,f({},this.props,{elemRef:function(e){return t.menuElem=e},onClick:this.onClickTrack,scale:this.props.scale,tracks:e})),this.dialogRoot),this.reactMounts.menu=[this.dialogRoot]}}},{key:"updateButtonLabel",value:function(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("HIDE_MENU")):this.setButtonLabel(this.translate("SHOW_MENU")))}},{key:"translate",value:function(t){return(0,d.getTranslation)(this.props.playerLanguage.code,"AUDIO_DESCRIPTION_".concat(t))}}])&&p(e.prototype,n),i&&p(e,i),Object.defineProperty(e,"prototype",{writable:!1}),l}(l.default);_.shouldMount=function(t){return!!(!1!==t._opts.audioDescriptionIsRequired&&t._impl&&t._impl.getAudioTracks&&t._impl.getAudioTracks().length>1)},_.handle="audioDescriptionButton",_.type="control-bar-right",_.sortValue=51,_.isVideoChrome=!0,(0,a.defineControl)(_),i.default.AudioDescriptionControl=_},(t,e,n)=>{n.d(e,{default:()=>p});var i=n(2),r=n(38);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}const p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(c,t);var e,n,a,u=h(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var t={fill:"none",stroke:"#ffffff","stroke-width":"1.8","stroke-linecap":"round"},e=s(s({},t),{},{"stroke-linejoin":"round"});return(0,i.h)("svg",o({},(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),{onMouseEnter:this.props.onMouseEnter}),(0,i.h)("g",e,(0,i.h)("path",{d:"M19.6,14.5c2.2,0,3,1.4,3,2.8c0,1.3-0.7,2.8-3,2.8h-1.5v-5.6H19.6z"}),(0,i.h)("polyline",{points:"9.9,20.1 12.5,14.5 14.9,20.1 \t\t\t"}),(0,i.h)("path",{d:"M10.4,18.9h4"})),(0,i.h)("g",t,(0,i.h)("path",{d:"M27.4,24.7c2.2-2.1,3.2-4.9,3.2-7.4c0-2.7-1-5.3-3.2-7.4"}),(0,i.h)("path",{d:"M24.5,12.8c1.4,1.2,2,2.8,2,4.5c0,1.6-0.5,3.3-2,4.5"})))}}])&&l(e.prototype,n),a&&l(e,a),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.Component)},(t,e,n)=>{n.d(e,{AudioDescriptionMenu:()=>d});var i=n(2),r=n(153),o=n(154);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(this,arguments)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(h,t);var e,n,c,d=l(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return e=h,(n=[{key:"render",value:function(){var t=this;return(0,i.h)("div",null,(0,i.h)("fieldset",{style:{border:0,padding:0,margin:0}},(0,i.h)(r.default,{tagName:"legend"},"Audio Description Menu"),this.props.tracks.map((function(e,n){return(0,i.h)(o.AudioTrackMenuItem,a({},t.props,{track:e,id:n,isLastItem:n===t.props.tracks.length-1,isFirstItem:0===n}))}))))}}])&&s(e.prototype,n),c&&s(e,c),Object.defineProperty(e,"prototype",{writable:!1}),h}(i.Component)},(t,e,n)=>{n.d(e,{default:()=>l});var i=n(2);function r(){return r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},r.apply(this,arguments)}function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=u(t);if(e){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}const l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,t);var e,n,u,l=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return e=c,(n=[{key:"render",value:function(){var t=this.props.tagName||"div";return(0,i.h)(t,r({},this.props,{ref:this.props.elemRef,style:this.visuallyHiddenStyles()}),this.props.children)}},{key:"visuallyHiddenStyles",value:function(){return{clip:"rect(1px, 1px, 1px, 1px)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}}}])&&o(e.prototype,n),u&&o(e,u),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.Component)},(t,e,n)=>{n.d(e,{AudioTrackMenuItem:()=>g});var i=n(2),r=n(36),o=n(40),a=n(38),s=n(20),u=n(41),l=n(153);function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c.apply(this,arguments)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var r=y(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}(this,n)}}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function v(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(0,u.defineTranslations)("en-US",{AUDIO_DESCRIPTION_OFF:"Off"});var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(g,t);var e,n,y,m=f(g);function g(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,g),v(p(e=m.call(this,t)),"onBlur",(function(){e.state.isKeyboardFocused&&e.setState({isKeyboardFocused:!1})})),v(p(e),"onClick",(function(){e.props.onClick(e.props.id)})),v(p(e),"onFocus",(function(){(0,o.isMouseDown)()||e.setState({isKeyboardFocused:!0})})),v(p(e),"onMouseEnter",(function(){e.setState({isHovering:!0})})),v(p(e),"onMouseLeave",(function(){e.setState({isHovering:!1})})),e.uuid=(0,s.seqId)(),e}return e=g,(n=[{key:"checkStyle",value:function(){return{height:_(this),verticalAlign:"middle",visibility:this.props.track.isSelected?"visible":"hidden",width:b(this)}}},{key:"menuItemStyle",value:function(){var t=this.props.controlBarBorderRadius;return{background:this.state.isHovering?"rgba(0,0,0,.3)":"",borderBottomLeftRadius:this.props.isLastItem?"".concat(t,"px"):0,borderBottomRightRadius:this.props.isLastItem?"".concat(t,"px"):0,borderTopLeftRadius:this.props.isFirstItem?"".concat(t,"px"):0,borderTopRightRadius:this.props.isFirstItem?"".concat(t,"px"):0,boxShadow:this.state.isKeyboardFocused?"0 0 0 2px #fff inset":"none",display:"block",fontFamily:r.interFontFamily,fontSize:w(this),lineHeight:_(this),marginRight:"".concat(10*this.props.scale,"px"),textAlign:"left",width:"100%"}}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"AUDIO_DESCRIPTION_".concat(t))}},{key:"render",value:function(){var t=this.props,e=t.track,n=t.elemRef,r=e.label;"Original"===r&&(r=this.translate("OFF"));var o="AD-".concat(this.uuid,"-").concat(r,"+").concat(e.id);return(0,i.h)("div",{onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,ref:n,style:this.menuItemStyle()},(0,i.h)(l.default,{checked:Boolean(e.isSelected),id:o,name:"Audio Description Menu",onBlur:this.onBlur,onClick:this.onClick,onFocus:this.onFocus,tagName:"input",type:"radio",value:r}),(0,i.h)("label",{class:"w-css-reset",for:o},(0,i.h)("svg",c({},(0,a.standardSvgAttrs)({width:40,height:34}),{class:"w-checkmark",style:this.checkStyle()}),(0,i.h)("polyline",{fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":"10",points:"17,17 20,20 25,14 "})),r))}}])&&d(e.prototype,n),y&&d(e,y),Object.defineProperty(e,"prototype",{writable:!1}),g}(i.Component),b=function(t){return"".concat(function(t){return 40*t.props.scale}(t),"px")},_=function(t){return"".concat(function(t){return 34*t.props.scale}(t),"px")},w=function(t){return 14*t.props.scale}},(t,e,n)=>{n.d(e,{default:()=>u});n(2);function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function r(t,e,n){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.set(t,n)}function o(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,a(t,e,"set"),n),n}function a(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var s=new WeakMap;const u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),r(this,s,{writable:!0,value:void 0}),this.video=e,this.embedElement=e.container,this.unbinds=[],this.eventListeners=new Map,this.reactMounts={}}var e,n,u;return e=t,(n=[{key:"mount",value:function(t){this.rootElem=t}},{key:"disabledButton",get:function(){return function(t,e){return e.get?e.get.call(t):e.value}(t=this,a(t,s,"get"));var t},set:function(t){o(this,s,t)}}])&&i(e.prototype,n),u&&i(e,u),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n(3);var i=n(2),r=n(42),o=n(155),a=n(157),s=n(63),u=n(64),l=n(41);function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,v(i.key),i)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}(this,n)}}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e,n){return(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function m(t,e,n){g(t,e),e.set(t,n)}function g(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function b(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,w(t,e,"get"))}function _(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,w(t,e,"set"),n),n}function w(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}(0,l.defineTranslations)("en-US",{CAPTIONS_DISABLED:"No captions available",CAPTIONS_HIDE_MENU:"Hide captions menu",CAPTIONS_OFF:"Off",CAPTIONS_SHOW_MENU:"Show captions menu",CAPTIONS_TURN_OFF:"Turn off captions",CAPTIONS_TURN_ON:"Turn on captions"});var P="disabled",O="on",k="off",S=new WeakMap,E=new WeakMap,T=new WeakSet,C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,n,r,o=h(u);function u(t){var e,n,i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),e=o.call(this,t),g(n=f(e),i=T),i.add(n),m(f(e),S,{writable:!0,value:void 0}),m(f(e),E,{writable:!0,value:void 0}),y(f(e),"onClickButton",(function(){var t;if(null!==(t=e.captionsV3Control)&&void 0!==t&&t.selectedLanguage)e.captionsV3Control.setLanguage(void 0),_(f(e),E,k);else{var n=e.captionsV3Control.captionAndSubtitleTextTracks()[0].language;e.captionsV3Control.setLanguage(n),_(f(e),E,O)}e.renderButton()})),e.video=t,e.unbinds=[],e.disabledButton=!0,_(f(e),E,P),function(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}(f(e),T,A).call(f(e)).then((function(){e.captionsV3Control.captionAndSubtitleTextTracks().length>0&&(e.disabledButton=!1,_(f(e),E,k),e.renderButton()),e.unbinds.push(e.video.on("addtrack",(function(){e.disabledButton=!1,_(f(e),E,k),e.renderButton()})),e.video.on("captionschange",(function(){e.captionsV3Control.selectedLanguage?_(f(e),E,O):_(f(e),E,k),e.renderButton()})))})),e}return e=u,(n=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"onControlPropsUpdated",value:function(t){this.dialog&&this.dialog.isOpen()&&this.renderDialog(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&this.updateButtonLabel()}},{key:"renderButton",value:function(){var t;!this.video._inNativeMode()&&this.buttonRoot&&(this.updateButtonLabel(),(0,i.render)((0,i.h)(a.default,{onClick:this.onClickCaptionsButton,color:this.video.playerColor(),filled:Boolean(null===(t=this.captionsV3Control)||void 0===t?void 0:t.selectedTrack)}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot])}},{key:"updateButtonLabel",value:function(){var t,e=(y(t={},O,"CAPTIONS_TURN_OFF"),y(t,k,"CAPTIONS_TURN_ON"),y(t,"menu-closed","CAPTIONS_SHOW_MENU"),y(t,"menu-open","CAPTIONS_HIDE_MENU"),y(t,P,"CAPTIONS_DISABLED"),t)[b(this,E)],n=(0,l.getTranslation)(this.props.playerLanguage.code,e);this.setButtonLabel(n)}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(o.default);function A(){var t=this;return b(this,S)||_(this,S,(0,r.dynamicImport)("assets/external/captions-v3.js").then((function(e){return(0,u.defineControl)(e.CaptionsV3Control),t.video.whenControlMounted("captionsV3")})).then((function(){t.captionsV3Control=t.video.controls.captionsV3}))),b(this,S)}C.handle="captionsV3Button",C.type="control-bar-right",C.sortValue=50,C.shouldMount=function(t){return t.isLiveMedia()},(0,u.defineControl)(C)},(t,e,n)=>{n.d(e,{default:()=>p});var i=n(2),r=n(38);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function c(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}const p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(c,t);var e,n,a,u=h(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"shouldComponentUpdate",value:function(t){return this.props.filled!==t.filled}},{key:"render",value:function(){var t={"stroke-linecap":"round","stroke-miterlimit":10},e=s(s({},t),{},{fill:this.props.filled?"#fff":"none",stroke:"#ffffff"}),n=s(s({},t),{},{fill:"none",stroke:this.props.filled?"#".concat(this.props.color):"#fff"});return(0,i.h)("svg",(0,r.standardSvgAttrs)({width:40,height:34}),(0,i.h)("g",null,(0,i.h)("path",o({},e,{"stroke-width":"2",d:"M31,21.9c0,1.6-1.4,3-3,3H12c-1.6,0-3-1.4-3-3V12c0-1.6,1.4-3,3-3h16c1.6,0,3,1.4,3,3V21.9z"}))),(0,i.h)("g",null,(0,i.h)("path",o({},n,{"stroke-width":"1.8",d:"M18.4,18.7c-0.5,0.7-1.1,1.2-2.1,1.2c-1.3,0-2.4-1.1-2.4-2.8c0-1.6,1-2.8,2.4-2.8c1,0,1.6,0.5,2,1.2"}))),(0,i.h)("g",null,(0,i.h)("path",o({},n,{"stroke-width":"1.8",d:"M25.8,18.7c-0.5,0.7-1.1,1.2-2.1,1.2c-1.3,0-2.4-1.1-2.4-2.8c0-1.6,1-2.8,2.4-2.8c1,0,1.6,0.5,2,1.2"}))))}}])&&l(e.prototype,n),a&&l(e,a),Object.defineProperty(e,"prototype",{writable:!1}),c}(i.Component)},(t,e,n)=>{n(3);var i=n(2),r=n(48),o=n(11),a=n(155),s=n(63),u=n(64),l=n(41);function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,v(i.key),i)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}(this,n)}}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e,n){return(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var m=(0,o.cachedDetect)();(0,l.defineTranslations)("en-US",{BACKGROUND_FOCUS_SHOW_CONTROLS:"Show controls"});var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(u,t);var e,n,o,a=h(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),y(f(e=a.call(this,t)),"onControlPropsUpdated",(function(t){var n=e.props.isFocusable;t.isFocusable!=n&&n&&e._focusImmediately&&(e.el.focus({preventScroll:!0}),e._focusImmediately=!1)})),y(f(e),"focus",(function(){e.props.isFocusable?e.el.focus({preventScroll:!0}):e._focusImmediately=!0})),y(f(e),"onBlur",(function(){e.video.exitInputContext("background-focus"),e.video.controls.focusOutline.hide()})),y(f(e),"onFocus",(function(){e.video.enterInputContext("background-focus"),!0===e.video.isKeyboardFocused()&&e.video.controls.focusOutline.show()})),y(f(e),"render",(function(){var t=!e.video.publicApi.popover||e.video.publicApi.popover.isVisible()?0:-1;(0,i.render)((0,i.h)("button",{ref:function(t){return e.el=t},"aria-label":"".concat(e.getTranslation(),": ").concat((0,r.unescapeHtml)(e.video.name()||"")),class:"w-css-reset w-vulcan-v2-button",onBlur:e.onBlur,onFocus:e.onFocus,style:e.style(),tabIndex:t}),e.rootElem),e.reactMounts=[e.rootElem]})),e.video=t,e._focusImmediately=!1,e.unbinds.push(e.video.on("play",e.render),e.video.on("pause",e.render),e.video.on("end",e.render)),e}return e=u,(n=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t,this.render()}},{key:"style",value:function(){return{width:0,height:0,pointerEvents:"none"}}},{key:"getTranslation",value:function(){return m.touchScreen&&!this.props.chromeless?this.translate("BACKGROUND_FOCUS_SHOW_CONTROLS"):"playing"===this.video.state()?this.translate("PLAY_BUTTON_TITLE_WHEN_PLAYING"):this.translate("PLAY_BUTTON_TITLE_WHEN_NOT_PLAYING")}},{key:"translate",value:function(t){return(0,l.getTranslation)(this.props.playerLanguage.code,t)}}])&&c(e.prototype,n),o&&c(e,o),Object.defineProperty(e,"prototype",{writable:!1}),u}(a.default);g.shouldMount=function(){return!0},g.handle="backgroundFocus",g.type="background",g.sortValue=100,(0,u.defineControl)(g)},(t,e,n)=>{var i=n(160),r=n(2),o=n(155),a=n(161),s=n(63),u=n(64);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,y(i.key),i)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,n)}}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(f,t);var e,n,o,u=d(f);function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),p(h(e=u.call(this,t)),"renderButton",(function(){if(!e.__destroyed&&!e.hiddenButton){var t=!e.video.publicApi.popover||e.video.publicApi.popover.isVisible()?0:-1;(0,r.render)((0,r.h)(a.default,{baseHeight:80,baseWidth:125,borderRadius:e.props.bigPlayButtonBorderRadius,buttonTabIndex:t,color:e.video.playerColor(),duration:e.video.duration(),elemRef:function(t){return e.buttonElem=t},isLiveMedia:e.video.isLiveMedia(),isVisible:e.shouldShow(),leftNudgeFraction:e.getLeftNudgeFraction(),noMixBlendMode:e.video.embedOptions().noMixBlendMode,onClick:e.onClick,controlBarDistance:e.props.controlBarDistance,playerLanguage:e.props.playerLanguage,scale:e.scale(),showBpbTime:e._timeEnabled,topNudgeFraction:e.getTopNudgeFraction(),videoHeight:e.props.videoHeight-.75*e.props.controlBarHeight,videoName:e.video.name()||"",videoWidth:e.props.videoWidth}),e.rootElem),e.reactMounts=[e.rootElem]}})),p(h(e),"onClick",(function(){e.video.play(),e.video.focus()})),e.video=t,e.eventListeners.set("playercolorchange",(function(){return e.renderButton()})),e.unbinds.push(t.on("play",e.renderButton),t.on("playrejected",e.renderButton),t.on("playpending",e.renderButton),t.on("playerlanguagechange",e.renderButton),t.on("end",e.renderButton),t.on("up",e.renderButton),t.on("trimchange",e.renderButton)),e._timeEnabled=e.video._opts.bpbTime,e.hiddenButton=e.video.isLiveMedia(),e.video.isLiveMedia()&&e.video.ready((function(){e.hiddenButton=!1,e.renderButton()})),e}return e=f,(n=[{key:"mount",value:function(t){this.rootElem=t,this.renderButton()}},{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(t){this.props.videoWidth===t.videoWidth&&this.props.videoHeight===t.videoHeight&&this.props.bigPlayButtonBorderRadius===t.bigPlayButtonBorderRadius||this.renderButton()}},{key:"shouldShow",value:function(){var t=this.video;return!1===t.lastPlayInfo().isPending&&("beforeplay"===t.state()||"ended"===t.state()&&"reset"===t._attrs.endVideoBehavior)}},{key:"scale",value:function(){return Math.min(1.3,Math.max(.3,(0,i.controlMultiplierBasedOnVideo)(this.video,[640,960])))}},{key:"setTimeEnabled",value:function(t){this._timeEnabled=t,this.renderButton()}},{key:"setLeftNudgeFraction",value:function(t){this._leftNudgeFraction=t,this.renderButton()}},{key:"setTopNudgeFraction",value:function(t){this._topNudgeFraction=t,this.renderButton()}},{key:"getLeftNudgeFraction",value:function(){return null!=this._leftNudgeFraction?this._leftNudgeFraction:this.video._opts.bpbLeftNudge}},{key:"getTopNudgeFraction",value:function(){return null!=this._topNudgeFraction?this._topNudgeFraction:this.video._opts.bpbTopNudge}},{key:"getButtonOffsets",value:function(){var t=this.buttonElem;return{offsetHeight:t.offsetHeight,offsetTop:t.offsetTop}}}])&&l(e.prototype,n),o&&l(e,o),Object.defineProperty(e,"prototype",{writable:!1}),f}(o.default);v.shouldMount=function(t){var e=t._attrs.bigPlayButton;return null==e||!0===e},v.handle="bigPlayButton",v.type="above-control-bar",(0,u.defineControl)(v)},(t,e,n)=>{n.d(e,{controlMultiplierBasedOnVideo:()=>l});n(5),n(30);var i=n(11),r=n(6);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var s=(0,i.cachedDetect)(),u=function(t){if(!(s.iphone||s.ipad||s.android))return[640,960];if(null!=t&&t.isAudio())return[500,960];var e,n,i,o,a=(e=document.querySelector("meta[name=viewport]"),n=e&&e.getAttribute("content"),i={},n&&n.split(/[\s,]+/).forEach((function(t){var e=t.split("=");2===e.length&&(i[e[0]]=(0,r.cast)(e[1]))})),i);if(a.width){o="number"==typeof a.width?0+a.width:screen.width||window.innerWidth;var u=Math.max(a["minimum-scale"]||0,Math.min(a["maximum-scale"]||10,a["initial-scale"]||1));u<1&&(o/=u)}else o=window.innerWidth;return[o,2*o/3]},l=function(t,e){var n=t.videoWidth(),i=o(e||u(t),2),r=i[0],a=i[1];return n<=r?n/r:n>a?n/a:1}},(t,e,n)=>{n.d(e,{default:()=>P});var i=n(36),r=n(2),o=n(72),a=n(48),s=n(67),u=n(11),l=n(38),c=n(41),d=n(162);function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},h.apply(this,arguments)}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,n)}}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var _=(0,u.cachedDetect)(),w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(m,t);var e,n,u,d=y(m);function m(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),g(v(e=d.call(this,t)),"onMouseEnter",(function(){e.setState({isHovering:!0})})),g(v(e),"onMouseLeave",(function(){e.setState({isHovering:!1})})),g(v(e),"onFocusIn",(function(){e.setState({isHovering:!0})})),g(v(e),"onFocusOut",(function(){e.setState({isHovering:!1})})),e.state={isHovering:!1},e}return e=m,(n=[{key:"render",value:function(){var t=this.props,e=t.baseHeight,n=t.baseWidth,i=t.elemRef,o=t.scale,u=(0,l.standardSvgAttrs)({width:n,height:e,styleOverride:{position:"absolute",height:"".concat(e*o,"px")},ariaHidden:!0});return(0,r.h)("div",{class:"w-bpb-wrapper w-css-reset w-css-reset-tree",ref:i,style:this.wrapperStyle()},(0,r.h)("button",{class:"w-big-play-button w-css-reset-button-important w-vulcan-v2-button",style:this.buttonStyle(),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onfocusin:this.onFocusIn,onfocusout:this.onFocusOut,"aria-label":"".concat(this.translate("TITLE_WHEN_NOT_PLAYING"),": ").concat((0,a.unescapeHtml)(this.props.videoName)),tabIndex:this.props.buttonTabIndex},(0,r.h)("div",{style:this.blendStyle()}),(0,r.h)("div",{style:this.overlayStyle()}),(0,r.h)("svg",h({},u,{alt:""}),(0,r.h)("rect",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"none",width:n,height:e}),(0,r.h)("polygon",{"fill-rule":"evenodd","clip-rule":"evenodd",fill:"#FFFFFF",points:"53,22 53,58 79,40"}))),this.props.showBpbTime&&!0!==this.props.isLiveMedia?(0,r.h)("div",{class:"w-bpb-time",style:this.timeStyle()},(0,s.flexibleDuration)(this.props.duration)):null)}},{key:"translate",value:function(t){return(0,c.getTranslation)(this.props.playerLanguage.code,"PLAY_BUTTON_".concat(t))}},{key:"wrapperStyle",value:function(){var t=this.props,e=t.baseHeight,n=t.baseWidth,i=t.borderRadius,r=t.isVisible,o=t.leftNudgeFraction,a=t.controlBarDistance,s=t.topNudgeFraction,u=t.scale,l=n*u,c=e*u;return{borderRadius:"".concat(i,"px"),display:r?"block":"none",left:"calc(50% + ".concat(100*(o||0),"%)"),marginLeft:"-".concat(l/2,"px"),marginTop:"-".concat(c/2,"px"),overflow:"hidden",position:"absolute",top:"calc(50% + ".concat(100*(s||0),"% - ").concat(a,"px)")}}},{key:"shouldMixBlendMode",value:function(){var t=this.props.noMixBlendMode;return!_.edge&&!t}},{key:"blendStyle",value:function(){var t=this.props,e=t.baseHeight,n=t.baseWidth,i=t.color,r=t.scale;return{background:new o.default(i||"#000").alpha(1).toRgba(),display:this.shouldMixBlendMode()?"block":"none",left:0,height:"".concat(e*r,"px"),mixBlendMode:"darken",position:"absolute",top:0,width:"".concat(n*r,"px")}}},{key:"overlayStyle",value:function(){var t=this.props,e=t.baseHeight,n=t.baseWidth,i=t.color,r=t.scale,a=this.state.isHovering,s=new o.default(i||"#000");return s.alpha(.7),this.shouldMixBlendMode()||s.alpha(.85),a&&s.lighten(30),{backgroundColor:s.toRgba(),height:"".concat(e*r,"px"),left:0,position:"absolute",top:0,transition:"background-color 150ms",width:"".concat(n*r,"px")}}},{key:"buttonStyle",value:function(){var t=this.props,e=t.scale,n=t.baseHeight,i=t.baseWidth;return{cursor:"pointer",height:"".concat(n*e,"px"),boxShadow:this.state.isKeyboardFocused?"0 0 0 2px #fff inset":"none",width:"".concat(i*e,"px")}}},{key:"timeStyle",value:function(){var t=this.props.scale;return{background:"rgba(0,0,0,.4)",color:"#fff",fontFamily:i.interNumbersSemiBold,fontSize:"".concat(18*t,"px"),lineHeight:"".concat(30*t,"px"),pointerEvents:"none",textAlign:"center"}}}])&&f(e.prototype,n),u&&f(e,u),Object.defineProperty(e,"prototype",{writable:!1}),m}(r.Component);const P=(0,d.default)(w)},(t,e,n)=>{n.d(e,{default:()=>d});var i=n(2),r=n(5);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=l(t);if(e){var r=l(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return u(t)}(this,n)}}function u(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}const d=function(t){return function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(f,e);var n,l,d,h=s(f);function f(){var t,e,n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=h.call.apply(h,[this].concat(o)),e=u(t),i=function(e){var n=t.props.onClick;n&&n(e)},(n=c(n="onClick"))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,t}return n=f,(l=[{key:"render",value:function(){return(0,i.h)(t,this.props)}},{key:"componentDidMount",value:function(){this.setupBindings()}},{key:"componentDidUpdate",value:function(){this.destroyBindings(),this.setupBindings()}},{key:"componentWillUnmount",value:function(){this.destroyBindings()}},{key:"setupBindings",value:function(){this.unbinds=[],this.unbinds.push((0,r.elemBind)(this.base,"click",this.onClick))}},{key:"destroyBindings",value:function(){this.unbinds&&(this.unbinds.map((function(t){return t()})),this.unbinds=null)}}])&&o(n.prototype,l),d&&o(n,d),Object.defineProperty(n,"prototype",{writable:!1}),f}(i.Component)}},(t,e,n)=>{var i=n(2),r=n(15),o=n(40),a=n(11),s=n(42),u=n(64),l=n(41),c=n(63),d=n(164),h=n(155);function f(){return f=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},f.apply(this,arguments)}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_(i.key),i)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}(this,n)}}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function b(t,e,n){return(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var w=(0,a.cachedDetect)();(0,l.defineTranslations)("en-US",{CLICK_FOR_SOUND_DESKTOP_TEXT:"Click for sound",CLICK_FOR_SOUND_MOBILE_TEXT:"Tap for sound"});var P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(u,t);var e,n,r,a=v(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),b(m(e=a.call(this,t)),"renderButton",(function(){var t,n=Boolean(e.video._opts.silentAutoPlayIsChromeless),r=e.isVisible();if(n&&(r?e.video.requestChromeless("clickForSound"):e.video.releaseChromeless("clickForSound")),e.video.trigger("clickforsoundvisibilitychange",r),r){var o=new Promise((function(t){setTimeout(t,1e3)}));t=Promise.race([o,(0,s.dynamicImport)("assets/external/interFontFace.js")])}else t=Promise.resolve();e.lastRenderPromise||(e.lastRenderPromise=Promise.resolve()),e.lastRenderPromise.then((function(){e.lastRenderPromise=new Promise((function(n){t.then((function(){(0,i.render)((0,i.h)(d.ClickForSoundButton,f({},e.props,{isTouchscreen:w.touchScreen,backdropEnabled:e.getSilentAutoplayBackdropState(),buttonText:e.buttonText(),elemRef:function(t){return e.buttonRoot=t},isVisible:e.isVisible(),onClick:e.onClick,scale:e.scale()})),e.rootElem),e.reactMounts=[e.rootElem],e.trigger("buttonrootrendered"),n()}))}))}))})),b(m(e),"onClick",(function(t){(0,o.isMouseDown)()||e.video.focus(),e.video.unmute(),e.video.turnOffCaptions(),e.trigger("click",t)})),e.silentAutoPlayBackdropEnabled=e.video._opts.silentAutoPlayBackdropEnabled,e.unbinds.push(t.on("play",e.renderButton),t.on("silentplaybackmodechange",e.renderButton),t.on("volumechange",e.renderButton)),e}return e=u,(n=[{key:"destroy",value:function(){(0,c.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t,this.renderButton()}},{key:"onControlPropsUpdated",value:function(t){var e=this.props;t.scale===e.scale&&t.controlsAreVisible===e.controlsAreVisible&&t.controlBarHeight===e.controlBarHeight||this.renderButton(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&this.renderButton()}},{key:"getSilentAutoplayBackdropState",value:function(){return null==this.silentAutoPlayBackdropEnabled||this.silentAutoPlayBackdropEnabled}},{key:"setSilentAutoPlayBackdropEnabled",value:function(t){this.silentAutoPlayBackdropEnabled=t,this.renderButton()}},{key:"isVisible",value:function(){return null!=this._isVisible?this._isVisible:this.video.inSilentPlaybackMode()}},{key:"setIsVisible",value:function(t){this._isVisible=t,this.renderButton(),this.video.trigger("clickforsoundvisibilitychange",this.isVisible())}},{key:"buttonText",value:function(){return this._buttonText?this._buttonText:w.touchScreen?this.translate("MOBILE_TEXT"):this.translate("DESKTOP_TEXT")}},{key:"setButtonText",value:function(t){this._buttonText=t,this.renderButton()}},{key:"afterButtonRenders",value:function(){var t=this;return new Promise((function(e){t.bind("buttonrootrendered",(function(){return e(t.buttonRoot),t.unbind}))}))}},{key:"translate",value:function(t){var e;return(0,l.getTranslation)(null===(e=this.props)||void 0===e?void 0:e.playerLanguage.code,"CLICK_FOR_SOUND_".concat(t))}},{key:"scale",value:function(){var t=this.props.scale;return w.touchScreen?t:1.5*t}}])&&p(e.prototype,n),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),u}(h.default);(0,r.bindify)(P.prototype),P.handle="clickForSoundButton",P.type="above-control-bar",(0,u.defineControl)(P)},(t,e,n)=>{n.d(e,{ClickForSoundButton:()=>d});var i=n(2),r=n(165),o=n(40),a=n(36),s=n(60);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var c="1000px",d=function(t){var e=t.backdropEnabled,n=t.buttonText,l=t.elemRef,d=t.isTouchscreen,h=t.isVisible,f=t.onClick,p=t.scale,y=35*p,v=15*p-2,m=(0,r.useRef)(null),g=u((0,r.useState)(!1),2),b=g[0],_=g[1];return(0,i.h)(s.default,{class:"w-css-reset w-css-reset-tree","data-handle":"click-for-sound-backdrop",elemRef:l,onClick:f,onMouseEnter:function(){d||null===m.current||(m.current.style.maxWidth=c)},onMouseLeave:function(){d||null===m.current||(m.current.style.maxWidth="0px")},style:{display:h?"block":"none",height:"100%",left:0,pointerEvents:e?"auto":"none",position:"absolute",top:0,width:"100%"}},(0,i.h)("button",{"aria-label":n,onFocus:function(){(0,o.isMouseDown)()||_(!0)},onBlur:function(){return _(!1)},class:"w-vulcan-v2-button click-for-sound-btn",style:{background:"rgba(0,0,0,0.8)",border:"2px solid ".concat(b?"#fff":"transparent"),borderRadius:"60px",cursor:"pointer",display:"flex",justifyContent:"space-between",alignItems:"center",outline:"none",pointerEvents:"auto",position:"absolute",right:"".concat(v,"px"),top:"".concat(v,"px")}},(0,i.h)("div",{ref:m,style:{display:"flex",alignItems:"center",justifyContent:"flex-end",whiteSpace:"nowrap",overflow:"hidden",maxWidth:d?c:0,transition:"max-width 200ms"}},(0,i.h)("span",{style:{color:"#fff",fontFamily:a.interFontFamily,fontSize:"18px",fontWeight:500,paddingLeft:"1em"}},n)),(0,i.h)("svg",{viewBox:"0 0 237 237",width:y,height:y},(0,i.h)("style",null,"\n @keyframes VOLUME_SMALL_WAVE_FLASH {\n 0% { opacity: 0; }\n 33% { opacity: 1; }\n 66% { opacity: 1; }\n 100% { opacity: 0; }\n }\n\n @keyframes VOLUME_LARGE_WAVE_FLASH {\n 0% { opacity: 0; }\n 33% { opacity: 1; }\n 66% { opacity: 1; }\n 100% { opacity: 0; }\n }\n\n .volume__small-wave {\n animation: VOLUME_SMALL_WAVE_FLASH 2s infinite;\n opacity: 0;\n }\n\n .volume__large-wave {\n animation: VOLUME_LARGE_WAVE_FLASH 2s infinite .3s;\n opacity: 0;\n }\n"),(0,i.h)("path",{fill:"#fff",d:"M88 107H65v24h24l23 23V84z"}),(0,i.h)("g",{fill:"none",stroke:"#fff","stroke-linecap":"round","stroke-width":"10"},(0,i.h)("path",{d:"M142 86c9 21 9 44 0 65",class:"volume__small-wave"}),(0,i.h)("path",{d:"M165 74c13 23 13 66 0 89",class:"volume__large-wave"})))))}},(t,e,n)=>{n.d(e,{useEffect:()=>b,useReducer:()=>g,useRef:()=>_,useState:()=>m});var i,r,o,a,s=n(2),u=0,l=[],c=[],d=s.options.__b,h=s.options.__r,f=s.options.diffed,p=s.options.__c,y=s.options.unmount;function v(t,e){s.options.__h&&s.options.__h(r,t,u||e),u=0;var n=r.__H||(r.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({__V:c}),n.__[t]}function m(t){return u=1,g(C,t)}function g(t,e,n){var o=v(i++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):C(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=r,!r.u)){r.u=!0;var a=r.shouldComponentUpdate;r.shouldComponentUpdate=function(t,e,n){if(!o.__c.__H)return!0;var i=o.__c.__H.__.filter((function(t){return t.__c}));if(i.every((function(t){return!t.__N})))return!a||a.call(this,t,e,n);var r=!1;return i.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(r=!0)}})),!(!r&&o.__c.props===t)&&(!a||a.call(this,t,e,n))}}return o.__N||o.__}function b(t,e){var n=v(i++,3);!s.options.__s&&T(n.__H,e)&&(n.__=t,n.i=e,r.__H.__h.push(n))}function _(t){return u=5,w((function(){return{current:t}}),[])}function w(t,e){var n=v(i++,7);return T(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function P(){for(var t;t=l.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(S),t.__H.__h.forEach(E),t.__H.__h=[]}catch(e){t.__H.__h=[],s.options.__e(e,t.__v)}}s.options.__b=function(t){"function"!=typeof t.type||t.__m||null===t.__?t.__m||(t.__m=t.__&&t.__.__m?t.__.__m:""):t.__m=(t.__&&t.__.__m?t.__.__m:"")+(t.__&&t.__.__k?t.__.__k.indexOf(t):0),r=null,d&&d(t)},s.options.__r=function(t){h&&h(t),i=0;var e=(r=t.__c).__H;e&&(o===r?(e.__h=[],r.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=c,t.__N=t.i=void 0}))):(e.__h.forEach(S),e.__h.forEach(E),e.__h=[])),o=r},s.options.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==l.push(e)&&a===s.options.requestAnimationFrame||((a=s.options.requestAnimationFrame)||k)(P)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==c&&(t.__=t.__V),t.i=void 0,t.__V=c}))),o=r=null},s.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(S),t.__h=t.__h.filter((function(t){return!t.__||E(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],s.options.__e(n,t.__v)}})),p&&p(t,e)},s.options.unmount=function(t){y&&y(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{S(t)}catch(t){e=t}})),n.__H=void 0,e&&s.options.__e(e,n.__v))};var O="function"==typeof requestAnimationFrame;function k(t){var e,n=function(){clearTimeout(i),O&&cancelAnimationFrame(e),setTimeout(t)},i=setTimeout(n,100);O&&(e=requestAnimationFrame(n))}function S(t){var e=r,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),r=e}function E(t){var e=r;t.__c=t.__(),r=e}function T(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function C(t,e){return"function"==typeof e?e(t):e}},(t,e,n)=>{var i=n(167),r=(n(3),n(2),n(5)),o=n(11),a=n(40),s=n(42),u=n(64),l=n(63),c=n(61),d=n(155);function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_(i.key),i)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}(this,n)}}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function b(t,e,n){return(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var w=(0,o.cachedDetect)(),P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(d,t);var e,n,o,u=v(d);function d(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),b(m(e=u.call(this,t)),"onContextMenu",(function(t,n){var o,s;t.altKey||(null!==(o=(s=e.video.ui).shouldOnlyShowControlBar)&&void 0!==o&&o.call(s)||("contextmenu"===t.type&&t.preventDefault(),e.pageX=t.pageX,e.pageY=t.pageY,e._hasLoaded||e.loading(new Promise((function(t){e.resolveLoadingPromise=t})),{x:e.pageX,y:e.pageY}),new Promise((function(t){!(n&&n.isLongPress)&&(0,a.isMouseDown)()?(0,r.elemBind)(document,"mouseup",(function(n){return e.pageX=n.pageX,e.pageY=n.pageY,t(),r.elemUnbind})):t()})).then((function(){(0,i.logPromiseErrors)(e.loadContextMenu().then((function(){e.renderMenu&&(e.resolveLoadingPromise(),e.renderMenu(),e.menuElemRef.focus())})))}))))})),b(m(e),"onClick",(function(t){(0,r.elemIsInside)(t.target,e.rootElem)||w.safari&&t.ctrlKey||(e.hideMenu?e.hideMenu():e._hasLoaded||e.loading(new Promise((function(t){t()}))))})),b(m(e),"onDocumentMouseUp",(function(t){t.ctrlKey||(0,r.elemIsInside)(t.target,e.rootElem)||((0,r.elemUnbind)(document,"mouseup",e.onDocumentMouseUp),e.loadContextMenu().then((function(){e.hideMenu()})))})),w.touchScreen?(e.touchEvents=new c.default(t.chrome),e.touchEvents.bind("longpress",e.onContextMenu)):e.unbinds.push((0,r.elemBind)(t.chrome,"contextmenu",e.onContextMenu)),e.unbinds.push((0,r.elemBind)(t.chrome,"click",e.onClick)),e.eventListeners.set("hide-copy-link-and-thumbnail-change",(function(){e.renderMenu()})),e.eventListeners.forEach((function(e,n){t.embedElement.addEventListener(n,e)})),e}return e=d,(n=[{key:"mount",value:function(t){this.rootElem=t}},{key:"destroy",value:function(){this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null),(0,l.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(t){this.props.playerLanguage===t.playerLanguage&&this.props.controlBarBorderRadius===t.controlBarBorderRadius||!this._visible||this.renderMenu()}},{key:"loadContextMenu",value:function(){var t=this;return Promise.all([(0,s.dynamicImport)("assets/external/interFontFace.js"),(0,s.dynamicImport)("assets/external/vulcanV2Player/shared/controls/ContextMenuControl/menu.js")]).then((function(e){var n=h(e,2)[1].ContextMenuExtensions;for(var i in n)t[i]=n[i].bind(t);t._hasLoaded=!0}))}},{key:"removeEventListeners",value:function(){var t=this;this.eventListeners instanceof Map&&(this.eventListeners.forEach((function(e,n){t.impl.video.embedElement.removeEventListener(n,e)})),this.eventListeners.clear())}}])&&p(e.prototype,n),o&&p(e,o),Object.defineProperty(e,"prototype",{writable:!1}),d}(d.default);P.handle="contextMenu",P.type="foreground",(0,u.defineControl)(P)},(t,e,n)=>{n.d(e,{logPromiseErrors:()=>r});var i=function(t){setTimeout((function(){throw t}),0)},r=function(t){return t.catch(i)}},(t,e,n)=>{n(3);var i=n(2),r=n(155),o=n(169),a=n(63),s=n(64),u=n(41);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,p(i.key),i)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,n)}}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(0,u.defineTranslations)("en-US",{ELLIPSIS_LESS:"Show fewer buttons",ELLIPSIS_MORE:"Show more buttons"});var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(f,t);var e,n,r,s=d(f);function f(){var t,e,n,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return t=s.call.apply(s,[this].concat(o)),e=h(t),i=function(){t.video.ui.isShowingMore()?(t.video.ui.showLess(),t.renderButton()):(t.video.ui.showMore(),t.renderButton())},(n=p(n="onClickButton"))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,t}return e=f,(n=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"mountButton",value:function(t){this.buttonElem=t,this.renderButton()}},{key:"renderButton",value:function(){(0,i.render)((0,i.h)(o.EllipsisButton,null),this.buttonElem),this.setButtonLabel(this.translate(this.video.ui.isShowingMore()?"LESS":"MORE"))}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"ELLIPSIS_".concat(t))}}])&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(r.default);y.handle="ellipsisButton",y.isVideoChrome=!0,y.type="ellipsis",y.sortValue=1e5,y.shouldMount=function(t){var e,n,i=(null===(e=t._impl.ui)||void 0===e?void 0:e.getControlsByType("control-bar-right"))||[],r=(null===(n=t._impl.ui)||void 0===n?void 0:n.getControlsByType("playbar"))||[];return i.length>0&&r.length>0&&t._impl.ui&&!t._impl.ui.shouldShowMoreDefaultValue()},(0,s.defineControl)(y)},(t,e,n)=>{n.d(e,{EllipsisButton:()=>a});var i=n(2),r=n(38);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}var a=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,a;return e=t,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){return(0,i.h)("svg",(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),(0,i.h)("circle",{cx:"20",cy:"17",r:"2"}),(0,i.h)("circle",{cx:"13",cy:"17",r:"2"}),(0,i.h)("circle",{cx:"27",cy:"17",r:"2"}))}}])&&o(e.prototype,n),a&&o(e,a),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n(3);var i=n(2),r=n(155),o=n(63),a=n(64);function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(c,t);var e,n,r,a=l(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(e=a.call(this,t)).video=t,e._isVisible=!1,e}return e=c,(n=[{key:"destroy",value:function(){(0,o.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t,this.render()}},{key:"hide",value:function(){this._isVisible=!1,this.render()}},{key:"show",value:function(){this._isVisible=!0,this.render()}},{key:"style",value:function(){return{boxShadow:"0 0 0 2px #fff inset",borderRadius:"".concat(this.props.playerBorderRadius,"px"),display:this._isVisible?"block":"none",height:"100%",left:0,pointerEvents:"none",position:"absolute",right:0,width:"100%"}}},{key:"render",value:function(){(0,i.render)((0,i.h)("div",{style:this.style(),class:"w-focus-outline"}),this.rootElem)}}])&&s(e.prototype,n),r&&s(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.default);d.shouldMount=function(t){return!t.isAudio()},d.handle="focusOutline",d.type="foreground",d.sortValue=100,(0,a.defineControl)(d)},(t,e,n)=>{n(3);var i=n(2),r=n(5),o=n(11),a=n(155),s=n(172),u=n(63),l=n(64),c=n(41);function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var r=y(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}(this,n)}}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function v(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var g=(0,o.cachedDetect)();(0,c.defineTranslations)("en-US",{FULLSCREEN_DOUBLE_TAP:"Double-tap to zoom in or out",FULLSCREEN_TITLE_WHEN_IN_FULLSCREEN:"Unfullscreen",FULLSCREEN_TITLE_WHEN_NOT_IN_FULLSCREEN:"Fullscreen"});var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(l,t);var e,n,o,a=f(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),v(p(e=a.call(this,t)),"onClickButton",(function(){e.toggleFullscreen()})),v(p(e),"onKeyUp",(function(t){if(!(0,r.formInputIsFocused)()){var n=e.video.getInputContext();"background-focus"!==n&&"player-mouseover"!==n&&"player-focus"!==n&&"playbar-focus"!==n||70===t.keyCode&&e.toggleFullscreen()}})),e.unbinds.push(t.on("enterfullscreen",(function(){e.renderButton()})),t.on("cancelfullscreen",(function(){e.renderButton()})),(0,r.elemBind)(document,"keyup",e.onKeyUp)),_()||w(e.video)||!P()||(e.mountDialog=e.maybeMountDialog),e}return e=l,(n=[{key:"destroy",value:function(){(0,u.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(t){t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&(this.renderButton(),this.dialog&&this.dialog.isOpen()&&this.renderDialog())}},{key:"maybeMountDialog",value:function(t){this.dialogElem=t,this.renderDialog()}},{key:"renderDialog",value:function(){this.dialogElem.innerHTML=this.translate("DOUBLE_TAP")}},{key:"mountButton",value:function(t){this.buttonElem=t,this.renderButton()}},{key:"renderButton",value:function(){if(this.buttonElem){var t=this.video.inFullscreen()?this.translate("TITLE_WHEN_IN_FULLSCREEN"):this.translate("TITLE_WHEN_NOT_IN_FULLSCREEN");this.setButtonLabel(t),(0,i.render)((0,i.h)(s.default,null),this.buttonElem),this.reactMounts=[this.buttonElem]}}},{key:"translate",value:function(t){return(0,c.getTranslation)(this.props.playerLanguage.code,"FULLSCREEN_".concat(t))}},{key:"toggleFullscreen",value:function(){if(_()||w(this.video)){var t=this.video;t.inFullscreen()?t.cancelFullscreen():t.requestFullscreen()}}}])&&d(e.prototype,n),o&&d(e,o),Object.defineProperty(e,"prototype",{writable:!1}),l}(a.default);b.handle="fullscreenControl",b.type="control-bar-right",b.sortValue=1e3,(0,l.defineControl)(b);var _=function(){return g.fullscreenEnabled},w=function(t){var e=t._mediaData,n=t._opts,i=(e.spherical||n.spherical)&&!n.overrideSpherical,r=!!e.secondaryMediaData,o=top!==self;return g.ios.version>0&&(!o||!i&&!r)},P=function(){return g.ios.version>0||g.android};b.shouldMount=function(t){var e=t._attrs.fullscreenControl;return(!0===e||null==e)&&(_()||w(t)||P())}},(t,e,n)=>{n.d(e,{default:()=>c});var i=n(2),r=n(38);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=l(t);if(e){var r=l(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}const c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(d,t);var e,n,l,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return e=d,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){var t={fill:"none",stroke:"#ffffff","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round","stroke-miterlimit":10};return(0,i.h)("svg",(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),(0,i.h)("g",null,(0,i.h)("g",null,(0,i.h)("polyline",o({},t,{points:"31.4,12.6 31.4,8.7 25.8,8.7"})),(0,i.h)("polyline",o({},t,{points:"14.7,8.7 9.1,8.7 9.1,12.6"})),(0,i.h)("polyline",o({},t,{points:"25.8,24.8 31.4,24.8 31.4,20.9"})),(0,i.h)("polyline",o({},t,{points:"9.1,20.9 9.1,24.8 14.7,24.8"}))),(0,i.h)("rect",o({x:"13.7",y:"12.3"},t,{"enable-background":"new",width:"13.3",height:"8.9"}))))}}])&&a(e.prototype,n),l&&a(e,l),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.Component)},(t,e,n)=>{n(3);var i=n(5),r=n(2),o=n(155),a=n(174),s=n(63),u=n(64);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,y(i.key),i)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,n)}}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(f,t);var e,n,o,u=d(f);function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),p(h(e=u.call(this,t)),"show",(function(t){e._isVisible=!0,e.renderMenu(t)})),p(h(e),"hide",(function(){e._isVisible=!1,(0,r.render)((0,r.h)("nothing",null),e.rootElem),e.reactMounts=[e.rootElem]})),e._isVisible=!1,e}return e=f,(n=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t}},{key:"renderMenu",value:function(t){var e=t.x||0,n=t.y||0,o=(0,i.elemOffset)(this.video._embedContainer);this._isVisible&&((0,r.render)((0,r.h)(a.default,{videoOffset:o,x:e,y:n}),this.rootElem),this.reactMounts=[this.rootElem])}}])&&l(e.prototype,n),o&&l(e,o),Object.defineProperty(e,"prototype",{writable:!1}),f}(o.default);v.handle="loadingHourglass",v.type="foreground",(0,u.defineControl)(v)},(t,e,n)=>{n.d(e,{default:()=>h});var i=n(2),r=n(5);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}const h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(f,t);var e,n,c,h=u(f);function f(t){var e,n,i,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),e=h.call(this,t),n=l(e),r=function(t){var n=t.pageX-e.props.videoOffset.left+10,i=t.pageY-e.props.videoOffset.top;e.setState({x:n,y:i})},(i=d(i="onMouseMove"))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,e.animationInterval=void 0,e.state={x:e.props.x+10,y:e.props.y,floatingPixel:8},e}return e=f,(n=[{key:"componentWillMount",value:function(){var t=this;this.animationInterval=setInterval((function(){var e=t.state.floatingPixel+1;e>10&&(e=8),t.setState({floatingPixel:e})}),500),(0,r.elemBind)(document,"mousemove",this.onMouseMove)}},{key:"componentWillUnmount",value:function(){clearInterval(this.animationInterval),(0,r.elemUnbind)(document,"mousemove",this.onMouseMove)}},{key:"sandStyle",value:function(){return{fill:"#000000",width:"1",height:"1"}}},{key:"anchorStyle",value:function(){return{height:0,left:"".concat(this.state.x,"px"),position:"absolute",top:"".concat(this.state.y,"px"),width:0}}},{key:"sandProps",value:function(t,e){return{className:"sand",x:t,y:e,style:this.sandStyle()}}},{key:"useRules",value:function(){return{fill:"#FFFFFF","fill-rule":"evenodd"}}},{key:"hourGlassProps",value:function(t){return{stroke:"#000000",x:"1.5",y:t,width:"12",height:"2"}}},{key:"defsProps",value:function(t){return{x:1,y:t,width:13,height:3}}},{key:"render",value:function(){var t=this;return(0,i.h)("div",{style:this.anchorStyle(),onMouseMove:this.onMouseMove},(0,i.h)("svg",{width:"15px",height:"20px",viewBox:"0 0 15 20",version:"1.1"},(0,i.h)("defs",null,(0,i.h)("rect",o({id:"path-1"},this.defsProps(1))),(0,i.h)("rect",o({id:"path-2"},this.defsProps(16))),(0,i.h)("polygon",{id:"path-3",points:"2 3 13 3 13 7 10.25 10 13 13 13 17 2 17 2 13 4.75 10 2 7"})),(0,i.h)("g",{id:"Page-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,i.h)("g",{id:"hourglass"},(0,i.h)("g",{id:"top"},(0,i.h)("use",o({},this.useRules(),{xlinkKref:"#path-1"})),(0,i.h)("rect",this.hourGlassProps(1.5))),(0,i.h)("g",{id:"bottom"},(0,i.h)("use",o({},this.useRules(),{xlinkHref:"#path-2"})),(0,i.h)("rect",this.hourGlassProps(16.5))),(0,i.h)("g",{id:"glass"},(0,i.h)("use",o({},this.useRules(),{xlinkHref:"#path-3"})),(0,i.h)("path",{stroke:"#000000",d:"M2.5,3.5 L2.5,6.80550815 L5.42828419,10 L2.5,13.1944918 L2.5,16.5 L12.5,16.5 L12.5,13.1944918 L9.57171581,10 L12.5,6.80550815 L12.5,3.5 L2.5,3.5 Z"})),(0,i.h)("rect",{id:"floater",fill:"#000000",x:"7",y:this.state.floatingPixel,width:"1",height:"1"}),[[5,6],[7,6],[6,7],[8,7],[7,11],[6,12],[8,12],[7,13],[6,14],[8,14],[5,13],[9,13],[4,14],[10,14],[5,6],[9,6]].map((function(e){return(0,i.h)("rect",t.sandProps(e[0],e[1]))}))))))}}])&&a(e.prototype,n),c&&a(e,c),Object.defineProperty(e,"prototype",{writable:!1}),f}(i.Component)},(t,e,n)=>{n(3);var i=n(176),r=n(64);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=u(t);if(e){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(u,t);var e,n,i,r=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),r.apply(this,arguments)}return e=u,(n=[{key:"width",value:function(){return this.props.width}},{key:"left",value:function(){return this.props.left}}])&&o(e.prototype,n),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),u}(i.default);l.shouldMount=function(t){var e=t._attrs.playBarControl;return!0===e||null==e},l.handle="playbar",l.type="playbar",(0,r.defineControl)(l)},(t,e,n)=>{n.d(e,{default:()=>w});var i=n(74),r=n(33),o=n(30),a=n(40),s=n(5),u=n(2),l=n(63),c=n(177),d=n(155);function h(){return h=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},h.apply(this,arguments)}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_(i.key),i)}}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},p.apply(this,arguments)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}(this,n)}}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function b(t,e,n){return(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}const w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(w,t);var e,n,d,_=v(w);function w(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,w),b(m(e=_.call(this,t)),"onResize",(function(t){var n=t.playbarBarWidth,i=t.playbarBarLeftOffsetFromPlayerLeftEdge;e.video.trigger("playbarresize",{playbarBarWidth:n,playbarBarLeftOffsetFromPlayerLeftEdge:i})})),b(m(e),"renderPlaybar",(function(){var t=e.video,n=t.plugin.chapters,i=n?n.getAllChapters():[],r=n?n.getChapterWithVisibleTitle():null,o=n?n.getChapterWithFocusedMarker():null,a=e.PlaybarComponent;(0,u.render)((0,u.h)(a,h({getCurrentTime:e.getCurrentTime,getCurrentBufferTime:e.getCurrentBufferTime,duration:t.duration(),isBeforePlay:"beforeplay"===t.state(),isVisible:e.props.controlsAreVisible,isPlaying:"playing"===t.state(),isSeeking:t._impl.engine&&t._impl.engine.isSeeking()},e.props,{onDragStart:e.onDragStart,onDrag:e.onDrag,onDragEnd:e.onDragEnd,onBlur:e.onBlurPlaybar,onFocus:e.onFocusPlaybar,isPlaceholder:e.isPlaceholder(),chapters:i,chapterWithFocusedMarker:o,chapterWithVisibleTitle:r,onClickChapter:e.onClickChapter,onMouseEnterOrFocusChapter:e.onMouseEnterOrFocusChapter,onMouseLeaveOrBlurChapter:e.onMouseLeaveOrBlurChapter,mediaData:e.video._mediaData,embedOptions:e.video._opts,color:e.video.playerColor(),showTime:e.showTime,shouldShowStoryboard:e.shouldShowStoryboard(),shouldShowChapterTitles:!0,shouldShowTime:e.shouldShowTime(),storyboardAsset:e.storyboardAsset(),leftControlBarWidth:e.props.leftControlBarWidth,setTimeWidth:e.setTimeWidth,setRightBarMargin:e.setRightBarMargin,resumableTime:e.resumableTime(),getDurationBeforeCuts:e.getDurationBeforeCuts,getTimeBeforeCuts:e.getTimeBeforeCuts,onResize:e.onResize})),e.rootElem),e.reactMounts=[e.rootElem]})),b(m(e),"getDurationBeforeCuts",(function(){var t;return null!==(t=e.video)&&void 0!==t&&t.engine?e.video.engine.getDurationBeforeCuts():-1})),b(m(e),"getTimeBeforeCuts",(function(t){var n;return null!==(n=e.video)&&void 0!==n&&n.engine?e.video.engine.getTimeBeforeCuts(t):-1})),b(m(e),"setTimeWidth",(function(t){e._timeWidth=t})),b(m(e),"setRightBarMargin",(function(t){e._rightBarMargin=t})),b(m(e),"renderNothing",(function(){(0,u.render)((0,u.h)("nothing",null),e.rootElem),e.reactMounts=[e.rootElem]})),b(m(e),"renderIfNotPlaying",(function(){"playing"!==e.video.state()&&e.render()})),b(m(e),"getCurrentTime",(function(){return e.video?e.video.time():0})),b(m(e),"getCurrentBufferTime",(function(){var t=e.video?e.video.getBuffered():[];return 0===t.length?0:t[t.length-1].end})),b(m(e),"onClickChapter",(function(t,n){n&&(e.video.time(n.time),"beforeplay"===e.video.state()&&e.video.play())})),b(m(e),"onMouseEnterOrFocusChapter",(function(t,n){n&&(e.chaptersPlugin().setChapterWithVisibleTitle(n.id),e.chaptersPlugin().setChapterWithFocusedMarker(n.id))})),b(m(e),"onMouseLeaveOrBlurChapter",(function(){e.chaptersPlugin().setChapterWithVisibleTitle(null),e.chaptersPlugin().setChapterWithFocusedMarker(null)})),b(m(e),"onDragStart",(function(t,n){e.video.requestControls("playbar-drag"),e.stateBeforeDrag=e.video.state(),e.onDrag(t,n),(0,o.doTimeout)("".concat(e.video.uuid,".maybe-pause-on-scrub"),(function(){(0,a.isMouseDown)()&&e.video.pause()}),300)})),b(m(e),"onDrag",(function(t,n){var i=n*e.video.duration();i!==e._timeSeekedToRecently&&(e.video.time(i),e._timeSeekedToRecently=i,(0,o.doTimeout)("".concat(e.video.uuid,".prevent-double-seek"),(function(){e._timeSeekedToRecently=null}),300))})),b(m(e),"onDragEnd",(function(t,n){e.video.releaseControls("playbar-drag"),e.onDrag(t,n),e.video.trigger("playbardragend"),"beforeplay"!==e.stateBeforeDrag&&"playing"!==e.stateBeforeDrag||e.video.play()})),b(m(e),"onFocusPlaybar",(function(){e.video.enterInputContext("playbar-focus")})),b(m(e),"onBlurPlaybar",(function(){e.video.exitInputContext("playbar-focus")})),b(m(e),"onKeyDown",(function(t){var n=e.video;if(e.isVisible()&&!e.video._opts.spherical&&!(0,s.formInputIsFocused)()){var i=n.getInputContext();if("playbar-focus"===i||"player-mouseover"===i||"background-focus"===i||"player-focus"===i){var r=n.duration(),o=t.keyCode;if(32!==o){null==e.keyDownStartedAt&&(e.keyDownStartedAt=Date.now());var a=Date.now()-e.keyDownStartedAt,u=0;u="playing"===n.state()?t.shiftKey||a>200?33===o||34===o?r<30?5:r<60?10:10+r/60:r<30?2:r<60?5:5+r/60/2:33===o||34===o?r<60?5:20:2:t.shiftKey||a>200?1:1/24;var l=0;39===o||33===o?l=1:37!==o&&34!==o||(l=-1),-1===l?(t.preventDefault(),n.time(n.time()-u)):1===l&&(t.preventDefault(),n.time(n.time()+u))}else"playbar-focus"!==i&&"player-mouseover"!==i||t.preventDefault()}}})),b(m(e),"onKeyUp",(function(t){if(e.isVisible()&&!(0,s.formInputIsFocused)()){e.keyDownStartedAt=null;var n=e.video;"playbar-focus"===n.getInputContext()&&32===t.keyCode&&("playing"===n.state()?n.pause():n.play())}})),e.PlaybarComponent=c.default,e.showTime=!0,e}return e=w,(n=[{key:"destroy",value:function(){(0,l.destroyControl)(this)}},{key:"mount",value:function(t){var e=this;p(g(w.prototype),"mount",this).call(this,t),this.eventListeners.set("playercolorchange",(function(){return e.render()})),this.eventListeners.set("resumablechange",(function(){return e.render()}));var n=this.video;this.unbinds.push(n.on("play",(function(){e.render()})),n.on("pause",(function(){e.render()})),n.on("progress",this.renderIfNotPlaying),n.on("timechange",(function(){e.render()})),n.on("end",(function(){e.render()})),n.on("widthchange",(function(){e.render()})),n.on("seeking",(function(){e.render()})),n.on("trimchange",(function(){e.renderNothing(),e.render()})),(0,s.elemBind)(document,"keydown",this.onKeyDown),(0,s.elemBind)(document,"keyup",this.onKeyUp));var i=function(){var t=n.plugin.chapters;e.unbinds.push(t.on("focuschange",(function(){e.render()})),t.on("changechapters",(function(){e.render()})))};n.plugin("chapters").then(i),n.on("plugininitialized",(function(t){"chapters"===t&&i()})),this.render()}},{key:"onControlPropsUpdated",value:function(t){t.width!==this.props.width&&this.render(),t.controlsAreVisible&&!this.props.controlsAreVisible&&this.render(),!t.controlsAreVisible&&this.props.controlsAreVisible&&this.render(),this.props.controlBarBorderRadius!==t.controlBarBorderRadius&&this.render()}},{key:"render",value:function(){this.video.publicApi.isLiveMedia()?this.renderNothing():this.renderPlaybar()}},{key:"resumableTime",value:function(){if(this.video.shouldResume())return(0,i.getLastTime)(this.video.hashedId())}},{key:"timeWidth",value:function(){return this._timeWidth}},{key:"rightBarMargin",value:function(){return this._rightBarMargin}},{key:"chaptersPlugin",value:function(){return this.video.plugin.chapters}},{key:"isPlaceholder",value:function(){return!1}},{key:"isVisible",value:function(){return!0}},{key:"shouldShowTime",value:function(){return!0}},{key:"shouldShowStoryboard",value:function(){if(null!=this._shouldShowStoryboard)return this._shouldShowStoryboard;var t=!!this.storyboardAsset(),e=!!this.video._mediaData.secondaryMediaData;return this._shouldShowStoryboard=t&&!e}},{key:"storyboardAsset",value:function(){return(0,r.one)(this.video._mediaData.assets,{type:"storyboard",status:r.READY,metadata:function(t){return t&&t.frame_count&&t.frame_width&&t.frame_height}})}}])&&f(e.prototype,n),d&&f(e,d),Object.defineProperty(e,"prototype",{writable:!1}),w}(d.default)},(t,e,n)=>{n.d(e,{default:()=>B});n(3);var i=n(178),r=n(36),o=n(72),a=n(6),s=n(67),u=n(5),l=n(2),c=n(11),d=n(40),h=n(42),f=n(179),p=n(61);function y(){return y=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},y.apply(this,arguments)}function v(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,k(i.key),i)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function _(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=P(t);if(e){var r=P(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return w(t)}(this,n)}}function w(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function P(t){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},P(t)}function O(t,e,n){return(e=k(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function k(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(0,i.addInterNumbersFontFace)();var S,E,T,C=(0,c.cachedDetect)(),A="vulcanV2Player/shared/ui_components",j="w-playbar",x=1.001,R=function(t){return Math.min(1,Math.max(0,t))};const B=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(m,t);var e,n,i,c=_(m);function m(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),O(w(e=c.call(this,t)),"onFocusChapterMarkers",(function(){e.state.isKeyboardFocused&&e.setState({isKeyboardFocused:!1})})),O(w(e),"onFocus",(function(t){var n=e.props.onFocus;n&&n(t),(0,d.isMouseDown)()||e.setState({isKeyboardFocused:!0})})),O(w(e),"onFocusOut",(function(){e.state.isKeyboardFocused&&e.setState({isKeyboardFocused:!1})})),O(w(e),"onMouseEnter",(function(t){e.touchEvents||(t.wistiaPlayerHandled=!0,e.setState({hoveredAt:Date.now(),isHovering:!0}),e.cachePositionDetails(),e.props.shouldShowStoryboard&&e.loadStoryboard())})),O(w(e),"onMouseLeave",(function(t){e.touchEvents||(t.wistiaPlayerHandled=!0,e.setState({hoveredAt:void 0,isHovering:!1}))})),O(w(e),"onMouseMove",(function(t){if(!e.touchEvents){t.wistiaPlayerHandled=!0;var n=e.getPercentFromPossiblyExternalMouseEvent(t);e.setState({hoverPercent:n})}})),O(w(e),"onMouseDown",(function(t){if(!e.touchEvents&&!t.wistiaPlayerHandled&&!t.ctrlKey){t.preventDefault(),e.wrapperElem.focus(),t.wistiaPlayerHandled=!0,e.cachePositionDetails();var n=e.getPercentFromPossiblyExternalMouseEvent(t);e.handleWithProp("onDragStart",t,n),e.setState({dragPercent:n,dragMode:!0,wasBeforePlayOnDrag:e.props.isBeforePlay}),(0,u.elemBind)(document,"mousemove",e.onMouseMoveDragging),(0,u.elemBind)(document,"mouseup",e.onMouseUpDragging)}})),O(w(e),"onMouseMoveDragging",(function(t){t.preventDefault(),t.wistiaPlayerHandled=!0;var n=e.getPercentFromPossiblyExternalMouseEvent(t);e.handleWithProp("onDrag",t,n),e.setState({dragPercent:n,dragMode:!0})})),O(w(e),"onMouseUpDragging",(function(t){t.wistiaPlayerHandled=!0;var n=e.getPercentFromPossiblyExternalMouseEvent(t);e.setState({dragPercent:n,dragMode:!1,isOverPlayhead:!1}),e.handleWithProp("onDragEnd",t,n),(0,u.elemUnbind)(document,"mousemove",e.onMouseMoveDragging),(0,u.elemUnbind)(document,"mouseup",e.onMouseUpDragging)})),O(w(e),"onTouchStart",(function(t){t.preventDefault(),t.wistiaPlayerHandled=!0,e.cachePositionDetails();var n=e.getPercentFromTouchEvent(t);e.handleWithProp("onDragStart",t,n),e.setState({dragPercent:n,dragMode:!0}),e.touchEvents.on("touchmove",e.onTouchMoveDragging),e.touchEvents.on("touchend",e.onTouchEndDragging)})),O(w(e),"onTouchMoveDragging",(function(t){t.preventDefault(),t.wistiaPlayerHandled=!0;var n=e.getPercentFromTouchEvent(t);e.handleWithProp("onDrag",t,n),e.setState({dragPercent:n,dragMode:!0})})),O(w(e),"onTouchEndDragging",(function(t){t.wistiaPlayerHandled=!0;var n=e.getPercentFromTouchEvent(t);e.setState({dragPercent:n,dragMode:!1,isOverPlayhead:!1}),e.handleWithProp("onDragEnd",t,n),e.touchEvents.off("touchmove",e.onTouchMoveDragging),e.touchEvents.off("touchend",e.onTouchEndDragging)})),O(w(e),"onMouseEnterPlayhead",(function(){e.setState({isOverPlayhead:!0})})),O(w(e),"onMouseLeavePlayhead",(function(){e.setState({isOverPlayhead:!1})})),O(w(e),"setWrapperRef",(function(t){e.wrapperElem=t,e.props.setPlaybarElemRef&&e.props.setPlaybarElemRef(t)})),O(w(e),"startAnimLoopIfPlaying",(function(){e.props.isPlaying&&e.props.isVisible&&requestAnimationFrame(e.continuouslyUpdatePlaybar)})),O(w(e),"stopAnimLoop",(function(){cancelAnimationFrame(e.animReq)})),O(w(e),"continuouslyUpdatePlaybar",(function(){e.drawCanvas(),e.maybeUpdateTimeText(),(0,a.assign)(e.playheadEl.style,e.playheadStyle()),e.startAnimLoopIfPlaying()})),O(w(e),"loadStoryboard",(function(){return(0,h.dynamicImport)("assets/external/vulcanV2Player/video/ui_components/Storyboard.js").then((function(t){T=t.Storyboard,e.setState({loadedStoryboard:!0})}))})),O(w(e),"loadChapters",(function(){return Promise.all([(0,h.dynamicImport)("assets/external/".concat(A,"/ChapterMarkers.js")),(0,h.dynamicImport)("assets/external/".concat(A,"/ChapterTitles.js"))]).then((function(t){var n=v(t,2),i=n[0],r=n[1];S=i.ChapterMarkers,E=r.ChapterTitles,e.setState({loadedChapters:!0})}))})),e.state={currentBufferTime:t.getCurrentBufferTime(),currentTime:t.getCurrentTime(),dragMode:!1,dragPercent:0,hasPlayed:!1,hoverPercent:0,isHovering:!1,isKeyboardFocused:!1,isOverPlayhead:!1,loadedChapters:!1,loadedStoryboard:!1,timeWidth:null,wasBeforePlayOnDrag:!1},e.setColorsFromPlayerColor(t.color),t.chapters&&t.chapters.length>0&&e.loadChapters(),e.playheadScale=x,e}return e=m,n=[{key:"canvasHeight",value:function(){return this.props.height*(window.devicePixelRatio||1)}},{key:"canvasStyle",value:function(){return{height:"".concat(this.props.height,"px"),left:"".concat(-this.leftBarMargin(),"px"),position:"absolute",top:0,width:"".concat(this.leftBarMargin()+this.unfilledBarWidth()+this.rightBarMargin(),"px")}}},{key:"canvasWidth",value:function(){return(this.leftBarMargin()+this.unfilledBarWidth()+this.rightBarMargin())*(window.devicePixelRatio||1)}},{key:"playheadStyle",value:function(){var t=1.4*this.barHeight()*4,e=this.props.height/2-t/2,n=this.playedPercent()*this.unfilledBarWidth()-t/2;return{borderRadius:"50%",height:"".concat(t,"px"),left:"".concat(n,"px"),opacity:0,position:"absolute",top:"".concat(e,"px"),width:"".concat(t,"px")}}},{key:"componentWillReceiveProps",value:function(t){var e=this.props;e.color!==t.color&&this.setColorsFromPlayerColor(t.color),this.setState({dragMode:!1,currentTime:e.getCurrentTime(),currentBufferTime:e.getCurrentBufferTime()}),t.chapters&&t.chapters.length>0&&this.loadChapters()}},{key:"drawCanvas",value:function(){var t,e=this;if(this.canvasEl){var n=window.devicePixelRatio||1,i=this.state,r=i.dragMode,o=i.hoverPercent,s=i.isHovering,u=i.isKeyboardFocused,l=i.isOverPlayhead,c=this.canvasWidth(),d=this.canvasHeight(),h=this.canvasEl.getContext("2d");h.globalCompositeOperation="source-over",h.clearRect(0,0,c,d);var f=this.unfilledBarWidth(),p=this.props.height*n/2;h.strokeStyle="rgba(255,255,255,.6)",h.lineWidth=this.barHeight()*n,h.beginPath(),h.lineCap="round",h.moveTo(this.leftBarMargin()*n,p),h.lineTo((this.leftBarMargin()+f)*n,p),h.stroke();var y=this.playedPercent()*f;h.strokeStyle="rgba(255,255,255,1)",h.lineWidth=this.barHeight()*n,h.beginPath(),h.lineCap="round",h.moveTo(this.leftBarMargin()*n,p),h.lineTo((this.leftBarMargin()+y)*n,p),h.stroke();var v=this.props.chapters,m=this.props,g=m.chapterWithFocusedMarker,b=m.duration,_=1.4*this.barHeight()*n;if((null===(t=v)||void 0===t?void 0:t.length)>0){if(g){v=(0,a.clone)(v);for(var w=-1,P=0;P<v.length;P++)if(v[P].id===g.id){w=P;break}v.splice(w,1),v.push(g)}v.forEach((function(t){var i=t.time/b,r=(e.leftBarMargin()+i*f)*n,o=_;g===t&&(o*=1.5),h.beginPath(),h.arc(r,p,1.6*o,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="destination-out",h.fill()})),v.forEach((function(t){var i=t.time/b,r=(e.leftBarMargin()+i*f)*n,o=.6,a=_;g===t&&(a*=2,o=1),h.beginPath(),h.arc(r,p,a,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="source-over",h.fillStyle="rgba(255,255,255,".concat(o,")"),h.fill();var s=a-.75*e.barHeight()*n;h.beginPath(),h.arc(r,p,s,0,2*Math.PI),h.closePath(),h.globalCompositeOperation="destination-out",h.fillStyle="rgba(0,0,0,1)",h.fill()})),h.globalCompositeOperation="source-over"}var O=r||u||l,k=O?2:x,S=!1;k!==this.playheadScale&&(S=!0,this.playheadScale=O?2:x,this.lastScaledAt=Date.now());var E=O?0:100;S&&this.animateUntil(Date.now()+E);var T=0===E?1:2-Math.min(1,(Date.now()-this.lastScaledAt)/E),C=this.lastScaledAt?T*k:1,A=1.4*this.barHeight()*n*C,j=(this.leftBarMargin()+y)*n,R=2*A,B=2*R,D=h.createRadialGradient(j,p,0,j,p,R);if(D.addColorStop(0,"rgba(255,255,255,.5)"),D.addColorStop(1,"rgba(255,255,255,0)"),h.beginPath(),h.rect(j-R,p-R,B,B),h.closePath(),h.fillStyle=D,h.fill(),h.beginPath(),h.arc(j,p,A,0,2*Math.PI),h.closePath(),h.fillStyle="rgba(255,255,255,1)",h.fill(),u&&(h.beginPath(),h.arc(j,p,1.5*A,0,2*Math.PI),h.closePath(),h.strokeWidth=n||1,h.stroke()),s&&!r&&!g){h.beginPath();var M=1.4*this.barHeight()*n,I=(this.leftBarMargin()+o*this.unfilledBarWidth())*n-M/2;h.arc(I,p,M,0,2*Math.PI),h.closePath(),h.fillStyle="rgba(255,255,255,1)",h.fill()}}}},{key:"animateUntil",value:function(t){(!this._animEndTime||t>this._animEndTime)&&(this._animEndTime=t),this._animating||(this.animateCanvasUntilEndTime(),this._animating=!0)}},{key:"animateCanvasUntilEndTime",value:function(){var t=this;requestAnimationFrame((function(){Date.now()>t._animEndTime?t._animating=!1:(t.drawCanvas(),t.animateCanvasUntilEndTime())}))}},{key:"maybeCallOnResize",value:function(){var t,e,n=this.unfilledBarWidth()+2,i=this.props.left+this.timeLeftPadding()+this.leftBarMargin()+this.timeWidth()-1;this._lastPlaybarWidth===n&&this._lastPlaybarBarLeftOffsetFromPlayerLeftEdge===i||(null===(t=(e=this.props).onResize)||void 0===t||t.call(e,{playbarBarWidth:n,playbarBarLeftOffsetFromPlayerLeftEdge:i}),this._lastPlaybarWidth=n,this._lastPlaybarBarLeftOffsetFromPlayerLeftEdge=i)}},{key:"render",value:function(){var t=this;return this.maybeCallOnResize(),this.oldWrapperElem=this.wrapperElem,(0,l.h)("div",{class:"".concat(j,"-wrapper w-css-reset w-css-reset-tree"),style:this.wrapperStyle()},this.props.shouldShowTime?this.renderTime():void 0,(0,l.h)("div",{"aria-label":"Playbar","aria-orientation":"horizontal","aria-valuemax":this.props.duration,"aria-valuemin":0,"aria-valuenow":this.ariaValueNow(),"aria-valuetext":this.ariaValueText(),onBlur:this.props.onBlur,onFocus:this.onFocus,onfocusout:this.onFocusOut,onKeyDown:this.onKeyDown,onMouseDown:this.onMouseDown,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,ref:this.setWrapperRef,role:"slider",style:this.dragAreaStyle(),tabindex:this.props.isVisible?0:-1},(0,l.h)("canvas",{height:this.canvasHeight(),ref:function(e){return t.canvasEl=e},style:this.canvasStyle(),width:this.canvasWidth()}),(0,l.h)("div",{onMouseEnter:this.onMouseEnterPlayhead,onMouseLeave:this.onMouseLeavePlayhead,ref:function(e){return t.playheadEl=e},style:this.playheadStyle()}),void 0!==S?(0,l.h)(S,y({},this.props,{onFocus:this.onFocusChapterMarkers,timeLeft:-10,timeRight:-10})):null,this.props.shouldShowStoryboard&&void 0!==T?(0,l.h)(T,y({},this.props,{hasChapters:this.state.loadedChapters,isHovering:this.state.isHovering,getDurationBeforeCuts:this.props.getDurationBeforeCuts,getTimeBeforeCuts:this.props.getTimeBeforeCuts,hoverPercent:this.state.hoverPercent,left:this.props.left+this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin(),width:this.unfilledBarWidth()})):null,this.props.shouldShowTimeOnHover&&this.state.isHovering&&(0,l.h)(f.default,{left:this.state.hoverPercent*this.unfilledBarWidth(),time:this.getHoverTime(),height:this.props.height,widthOfPlaybar:this.unfilledBarWidth()}),this.props.shouldShowChapterTitles&&void 0!==E?(0,l.h)(E,y({},this.props,{left:this.props.left+this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin(),width:this.unfilledBarWidth()})):null))}},{key:"renderTime",value:function(){var t=this;return(0,l.h)("div",{class:"".concat(j,"__time"),style:this.timeStyle(),ref:function(e){return t.timeElem=e}})}},{key:"componentDidMount",value:function(){this.drawCanvas(),this.lastRenderedAt=Date.now(),C.touchScreen&&this.wrapperElem&&(this.touchEvents=new p.default(this.wrapperElem),this.touchEvents.on("touchstart",this.onTouchStart)),this.maybeUpdateTimeText();var t=this.props;t.isPlaying&&this.setState({hasPlayed:!0}),t.isPlaying&&this.startAnimLoopIfPlaying(),this.props.setTimeWidth(this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin()),this.props.setRightBarMargin(this.rightBarMargin())}},{key:"componentDidUpdate",value:function(t,e){this.drawCanvas();var n=this.props;this.lastRenderedAt=Date.now(),C.touchScreen&&this.wrapperElem&&this.oldWrapperElem!==this.wrapperElem&&(this.touchEvents&&this.touchEvents.destroy(),this.touchEvents=new p.default(this.wrapperElem),this.touchEvents.on("touchstart",this.onTouchStart)),n.isPlaying&&!this.state.hasPlayed&&this.setState({hasPlayed:!0}),this.maybeUpdateTimeText();var i=n.isPlaying&&!t.isPlaying,r=e.currentBufferTime!=this.state.currentBufferTime,o=n.isVisible&&!t.isVisible;(i||o||r)&&this.startAnimLoopIfPlaying(),!n.isVisible&&t.isVisible&&this.stopAnimLoop(),this.props.setTimeWidth(this.timeWidth()+this.timeLeftPadding()+this.leftBarMargin()),this.props.setRightBarMargin(this.rightBarMargin())}},{key:"componentWillUnmount",value:function(){(0,u.elemUnbind)(document,"mousemove",this.onMouseMoveDragging),(0,u.elemUnbind)(document,"mouseup",this.onMouseUpDragging),this.touchEvents&&(this.touchEvents.destroy(),this.touchEvents=null)}},{key:"getHoverTime",value:function(){return(0,s.flexibleDuration)(Math.round(this.state.hoverPercent*this.props.duration))}},{key:"placeholderStyle",value:function(){return{cursor:"default",height:"100%",outline:"none",position:"relative",width:"100%"}}},{key:"wrapperStyle",value:function(){var t=this.props,e=t.videoWidth,n=t.width;return{display:"flex",height:"100%",width:n===e?"".concat(n,"px"):"100%"}}},{key:"dragAreaStyle",value:function(){return{cursor:"pointer",flex:"1 1",height:"".concat(this.props.height,"px"),outline:"none",marginLeft:"".concat(this.leftBarMargin(),"px"),marginRight:"".concat(this.rightBarMargin(),"px"),position:"relative"}}},{key:"leftBarMargin",value:function(){return 0===this.props.leftControlBarWidth?this.rightBarMargin():1.5*this.rightBarMargin()}},{key:"rightBarMargin",value:function(){var t=this.props,e=t.duration,n=t.scale,i=7*(0,s.flexibleDuration)(900).length,r=7*(0,s.flexibleDuration)(e).length;return 10*(i<r?i/r:1)*n}},{key:"timeLeftPadding",value:function(){var t=this.props,e=t.leftControlBarWidth,n=t.isPlaceholder;return t.shouldShowTime?0===e?this.leftBarMargin()/1.33:n?this.leftBarMargin():this.leftBarMargin()/3:0}},{key:"timeStyle",value:function(){var t=this.props,e=t.height,n=t.scale;return{boxSizing:"content-box",color:"white",fontFamily:r.interNumbersSemiBold,fontSize:"".concat(13*n,"px"),letterSpacing:"".concat(.5*n,"px"),lineHeight:"".concat(e,"px"),paddingLeft:"".concat(this.timeLeftPadding(),"px"),pointerEvents:"none",position:"relative",textAlign:"center",width:"".concat(this.timeWidth(),"px")}}},{key:"timeWidth",value:function(){var t=this.props,e=t.duration,n=t.scale;return t.shouldShowTime?7*(0,s.flexibleDuration)(e).length*n:0}},{key:"filledBarStyle",value:function(){var t=this.barHeight();return{background:"#fff",borderRadius:"".concat(t,"px"),height:"".concat(t,"px"),left:0,position:"absolute",top:0,width:"".concat(100*this.playedPercent(),"%")}}},{key:"barHeight",value:function(){return 2*this.props.scale}},{key:"unfilledBarStyle",value:function(){var t=this.props.height;return{background:"rgba(255,255,255,.6)",borderRadius:"".concat(this.barHeight(),"px"),height:"".concat(this.barHeight(),"px"),left:0,pointerEvents:"none",position:"absolute",top:"".concat((t-this.barHeight())/2,"px"),width:"".concat(this.unfilledBarWidth(),"px")}}},{key:"unfilledBarWidth",value:function(){var t=2*this.props.controlBarDistance;return this.props.width-this.timeLeftPadding()-this.timeWidth()-this.leftBarMargin()-this.rightBarMargin()-t}},{key:"playedPercent",value:function(){var t=this.state,e=this.props,n=e.duration,i=e.getCurrentTime,r=e.isSeeking,o=e.resumableTime;return t.dragMode||t.wasBeforePlayOnDrag&&(r||!t.hasPlayed)?t.dragPercent:o&&!t.hasPlayed?R(o/n):R(i()/n)}},{key:"bufferedAheadPercent",value:function(){var t=this.state;if(this.props.isBeforePlay)return 0;if(t.dragMode){var e=t.currentBufferTime/this.props.duration;return R(e-t.dragPercent)}return R((this.props.getCurrentBufferTime()-this.props.getCurrentTime())/this.props.duration)}},{key:"emptyPercent",value:function(){return 1-R(this.playedPercent()+this.bufferedAheadPercent())}},{key:"timeText",value:function(){var t=this.state,e=this.props;return t.dragMode||t.wasBeforePlayOnDrag&&(this.props.isSeeking||!t.hasPlayed)?(0,s.flexibleDuration)(t.dragPercent*e.duration):t.hasPlayed||this.props.getCurrentTime()>=1?(0,s.flexibleDuration)(e.getCurrentTime()):e.resumableTime?(0,s.flexibleDuration)(e.resumableTime):(0,s.flexibleDuration)(e.duration)}},{key:"ariaValueNow",value:function(){return this.state.dragMode?this.state.dragPercent*this.props.duration:this.props.getCurrentTime()}},{key:"ariaValueText",value:function(){return(0,s.accessibilityDuration)(this.props.getCurrentTime())}},{key:"cachePositionDetails",value:function(){this.offset=(0,u.elemOffset)(this.wrapperElem)}},{key:"getPercentFromPossiblyExternalMouseEvent",value:function(t){return t.target===this.wrapperElem?this.getPercentFromMouseEvent(t):this.getPercentFromPageX(t.pageX)}},{key:"getPercentFromMouseEvent",value:function(t){var e=t.offsetX,n=this.offset?this.offset.zoom:1;return this.getPercentFromOffsetX(e/n)}},{key:"getPercentFromOffsetX",value:function(t){return Math.max(0,Math.min(1,t/this.unfilledBarWidth()))}},{key:"getPercentFromPageX",value:function(t){if(void 0===this.offset)return 0;var e=this.unfilledBarWidth(),n=this.offset.width/e,i=(t-this.offset.left)/n;return this.getPercentFromOffsetX(i)}},{key:"getPercentFromTouchEvent",value:function(t){var e=t.changedTouches;return"0"in e?this.getPercentFromPageX(e[0].pageX):0}},{key:"handleWithProp",value:function(t,e){var n=this.props[t];if(n){for(var i=arguments.length,r=new Array(i>2?i-2:0),o=2;o<i;o++)r[o-2]=arguments[o];n.apply(void 0,[e].concat(r))}}},{key:"maybeUpdateTimeText",value:function(){var t=this.timeText();this.timeElem&&t!==this._lastTimeText&&(this.timeElem.innerText=t),this._lastTimeText=t}},{key:"playheadLeftPosition",value:function(){return this.unfilledBarWidth()*this.playedPercent()}},{key:"setColorsFromPlayerColor",value:function(t){this.playedColor=new o.default(t).darken(30).alpha(.7),this.bufferedColor=new o.default(t).lighten(75).alpha(.6),this.emptyColor=new o.default(t).lighten(40).alpha(.3)}}],n&&g(e.prototype,n),i&&g(e,i),Object.defineProperty(e,"prototype",{writable:!1}),m}(l.Component)},(t,e,n)=>{n.d(e,{addInterNumbersFontFace:()=>a});var i=n(3),r=n(5),o="\n@font-face {\nfont-family: 'WistiaPlayerInterNumbersSemiBold';\nfont-feature-settings: 'tnum' 1;\nsrc: url(data:application/x-font-woff;charset=utf-8;base64,".concat("d09GMk9UVE8AAAaMAAwAAAAACgAAAAZBAAMD1wAAAAAAAAAAAAAAAAAAAAAAAAAADYpwGhQbIBwqBmAAgTIBNgIkAzAEBgWDGgcgGykJEZWkARP8KHCbm2tEznyIN98tPTUk9Ig3oiVV3pbDIzXa+f/fZgXpALFTZhBoMVFC9cp036dXvRKVmVnsxe+D+1NDQI5lG7ikZWEINIElTeBIdnxlhauQ5GQtoLHA/wN0riVdSx5xgbxF3KTbgnjVQ4B9P7YqCx7FpEZK+6ilx0AoopUh4aExJEKmkU+0ncdr4iFfKhdSFD9y91LCRaxNbVqvi0dND3rxI7ndUDR7EiwT3bhiua9krFA0oepCy2hCjwmjnjDjKjNTDz2ZuHtN8820Wfw/l8u4w4yV/f8/6uscs5rmiN00LcP4hAofyZUSyS3WinX0RGFFtnGrjj36x6dlNa57+PLTlrUisH2n9orfgd+R34XfDd0NsWDXwfwhvKHpbs3UBni37dBlPvO4KYn/PgylilcgSdw6sjsSSxsRGfIJgqhi14bKZCHcQvjUh/+3HMotTYrGLVYCxyMFjEnYC98yTAp6atAKVxaZ9eu2NMji8WTj4w/Y34elD60PPwb5bEywLqAX/amwmUo6TBCy14N/TL44jb3sE5JdUIPXXI0RBSoGt3BUObn4agKGIxxQhlyQacbstK4fS2mZoBtFNQ1bd+4zND2vQu6anl7gWFOj8MV2DVMtU44xMhpwElrrjA7zO5IqWojd/v1Vso6cqp91zC2YrGhDOy07Iqyza2q9smDIwUYek0AWbCt/8x78QmrzayQ6xtpmqfCYsLfgU9HdeP3UqutZTTNd/9Q8k08XzXzIxSdvLPda8YaeeZnkxUwql0nDKyUYdaWZjGAy7UDLHpVqBVHTxSV0wBy21El9u/491ik2J3YkdiP2LPZL41RBeeNUWtp97Bbn0Ee1g9wr9qqV/X+4R9nlPX03743dylnaXZyNp8v58yLOsFYCbUnCVQzjN+5QhlmKccO7aMkueWJggROd4qnw2x5LydUcg/NRamE3XMlkGovpRWPKWEavP74P2O1RANM/3gIIPJj7TX+lqU2geQuaBx4B/7cWAOx0ucTiEHYJU9y5DBuUMYNIHeHZz9tn+Fw2G5EBTqUlHRfRi4eB5wNlJsRsv5k4b6HyFkhIC6BO4LzPbWhW7rbCcxubeKHOc6UaBKZBMMd4j8XuRUynOCCa4EMfF9grkI1NcTaSAVtk1nrIOwFfeEBlQw4f4phb6zHzBOm0ZZ0dBcaZRVdYIo5xYiyOMEWONwQHmjKGE//VuRBgul1QrpyxmMvF4vGj0xfuuQrNt4tVTsRhEnjY9AuKa1FVLSEneQWzFd5WbO7hasX08ONUOVQgwQuVqACFXkSoIoUgK1hJEkAgbkG5CjqBS5wrRFuY2IfVwhRnLsVyZTZpatveGR4yEbYqbE6J80nM4aa+LD7Oqmr8PdSJFUQVynmgN4lerGQV1+uLdYzdOFWHPW/iK2gIQayhizQ0NMwyvBEBlrDczRfmU40CTtAHqLQGnjQG8MYkxm1MwJuTqjHwVCu9iRJ1C8ojWGHxUYowH0c5X57zpXquvlw0wzHHGMTfufxiJ1psFJTzq6nGeDvHF4LgmHHWCUViZBaInRn+cswnBi460RBPRYg9TRUQ0CZUC5LAT0qLLu50FpdTeBhjGf7/h4dg9hE0uqsBx/saOcYRDIfnOhfzGFBHyizcJK3p2edUjWrC0rn1aGjXtfVUCHMAKKhlxV8eTEIcV2jCOdKiqahv/MisrfRQVnxPJoOU62mR6pu2ZllIzo8zOZqQB7kWJXW2/c0aihata5PcIVJKfFRgHAETmEQVTCELptGMGcyigTnMJ1voUVN6uCZS9pV2hrwl7FYMvBwtUSd7L7E5qP9t7BIPRF7EcmA9ct2nIPHrxgWajtDltbXuBLuaY6qRZGa5ZlX5anfR0lYXaHUzVSFjZa8rfdhZ8rKXFZg21LVL5LFjI5TlDIbwnFGHE2dypHs6Q50N015dpOgLONEUlOqoiQgIaeCsjMq9gITDKwRMieQgKUy9UQY1BTFYZU2KpE2SkILMIjW8IdFwIKmMaK8oClJVssAEtFnz5dQ1s+w6EZoNGtPGQfzx+aoE8ikiP8GCYOWtgB+HBdWDaxACAZInVq14dZI85RRDvZGIghyONw59KV/BBEQ02P1ER8hmNGiURT2hQP8WfAY=",");\n}\n"),a=function(){i.default._interNumbersFontFaceSemiBold||(i.default._interNumbersFontFaceSemiBold=(0,r.addInlineCss)(document.body||document.head,o))};a()},(t,e,n)=>{n.d(e,{default:()=>l});var i=n(36),r=n(2);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=u(t);if(e){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}const l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(c,t);var e,n,u,l=s(c);function c(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),l.apply(this,arguments)}return e=c,(n=[{key:"getLeftValue",value:function(){var t=this.props.left;return this.isInBeginningZone()?0:this.isInEndZone()?void 0:t}},{key:"getRightValue",value:function(){if(this.isInEndZone())return 0}},{key:"getTopValue",value:function(){var t=this.props.height/2-1.5*this.heightOfTimeBadge();return Math.max(2,t)}},{key:"isInBeginningZone",value:function(){return this.props.left<this.widthOfTimeBadge()/2}},{key:"isInEndZone",value:function(){return this.props.left>=this.props.widthOfPlaybar-this.widthOfTimeBadge()/2}},{key:"timeBadgeStyle",value:function(){var t=this.isInBeginningZone()||this.isInEndZone();return{color:"#fff",fontFamily:i.interNumbersSemiBold,fontSize:"13px",left:this.getLeftValue(),position:"absolute",right:this.getRightValue(),top:this.getTopValue(),transform:t?"":"translateX(-50%)"}}},{key:"widthOfTimeBadge",value:function(){var t;return(null===(t=this._timeBadgeRef)||void 0===t?void 0:t.getBoundingClientRect().width)||24}},{key:"heightOfTimeBadge",value:function(){var t;return(null===(t=this._timeBadgeRef)||void 0===t?void 0:t.getBoundingClientRect().height)||16}},{key:"render",value:function(){var t=this;return(0,r.h)("span",{ref:function(e){return t._timeBadgeRef=e},style:this.timeBadgeStyle()},this.props.time)}}])&&o(e.prototype,n),u&&o(e,u),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Component)},(t,e,n)=>{n(3);var i=n(2),r=n(160),o=n(11),a=n(155),s=n(181),u=n(63),l=n(64);function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,y(i.key),i)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}(this,n)}}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var v=(0,o.cachedDetect)(),m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(l,t);var e,n,o,a=h(l);function l(t){var e,n,i,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),e=a.call(this,t),n=f(e),r=function(){e.playedOnce?e.video.isControlEnabled("centeredPlayPauseToggler")&&!e.props.chromeless||e.video._inNativeMode()||(e.ignoreNextPlayOrPause?e.ignoreNextPlayOrPause=!1:(e.isPlaying="playing"===e.video.state(),e.renderAndFade())):e.playedOnce=!0},(i=y(i="showIconAndFade"))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,e.isOpaque=!1,e.unbinds.push(t.on("play",e.showIconAndFade),t.on("pause",e.showIconAndFade)),e}return e=l,(n=[{key:"destroy",value:function(){(0,u.destroyControl)(this)}},{key:"mount",value:function(t){this.rootElem=t}},{key:"onControlPropsUpdated",value:function(t){t.videoWidth!==this.props.videoWidth&&this.renderButton()}},{key:"renderAndFade",value:function(){var t=this,e=this.video.lastPlayInfo();if(!this.isPlaying||"user-event"===e.source){var n=this.video.lastPauseInfo();(this.isPlaying||"user-event"===n.source)&&(this.isOpaque=!0,this.renderButton(),clearTimeout(this.fadeTimeout),this.fadeTimeout=setTimeout((function(){t.isOpaque=!1,t.renderButton()}),20))}}},{key:"renderButton",value:function(){(0,i.render)((0,i.h)("div",{class:"w-play-pause-notifier",style:this.rootStyle()},(0,i.h)("div",{style:this.graphicStyle()},(0,i.h)(s.default,{isPlaying:!this.isPlaying,noPadding:!0}))),this.rootElem),this.reactMounts=[this.rootElem]}},{key:"oldRootStyle",value:function(){var t=this.scale(),e=this.isPlaying,n=e?60:50;return{height:"".concat((e?72:80)*t,"px"),left:"50%",pointerEvents:"none",position:"absolute",opacity:this.isOpaque?.5:0,top:"50%",transform:"translate(-".concat(e?33:50,"%, -50%) scale(").concat(this.isOpaque?.9:1.1,")"),transition:this.isOpaque?"":"opacity .8s, transform .8s",width:"".concat(n*t,"px")}}},{key:"rootStyle",value:function(){var t=this.scale();return{background:"rgba(0,0,0,.6)",borderRadius:"50%",height:"".concat(140*t,"px"),left:"50%",pointerEvents:"none",position:"absolute",opacity:this.isOpaque?.6:0,top:"50%",transform:"translate(-50%, -50%) scale(".concat(this.isOpaque?.7:.8,")"),transition:this.isOpaque?"":"opacity .8s, transform .8s",width:"".concat(140*t,"px")}}},{key:"graphicStyle",value:function(){var t=this.scale(),e=this.isPlaying,n=e?60:50;return{height:"".concat((e?72:80)*t,"px"),left:"50%",pointerEvents:"none",position:"absolute",top:"50%",transform:"translate(-".concat(e?38:50,"%, -").concat(e?47:50,"%)"),width:"".concat(n*t,"px")}}},{key:"scale",value:function(){return Math.min(1.3,Math.max(.3,(0,r.controlMultiplierBasedOnVideo)(this.video,[640,960])))}},{key:"svgStyle",value:function(){return{filter:"drop-shadow(0px 0px 3px rgba(0,0,0,0.5))"}}}])&&c(e.prototype,n),o&&c(e,o),Object.defineProperty(e,"prototype",{writable:!1}),l}(a.default);m.shouldMount=function(t){return!1!==t._attrs.playPauseNotifier&&!v.touchScreen},m.handle="playPauseNotifier",m.type="above-control-bar",(0,l.defineControl)(m)},(t,e,n)=>{n.d(e,{default:()=>d});var i=n(2),r=n(6),o=n(38);function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},a.apply(this,arguments)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}const d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(h,t);var e,n,c,d=l(h);function h(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),d.apply(this,arguments)}return e=h,(n=[{key:"shouldComponentUpdate",value:function(t){return this.props.isPlaying!==t.isPlaying}},{key:"render",value:function(){return(0,i.h)("div",{style:this.rootStyle()},(0,i.h)("div",{style:{display:this.props.isPlaying?"block":"none",height:"100%",width:"100%"}},this.renderPauseIcon()),(0,i.h)("div",{style:{display:this.props.isPlaying?"none":"block",height:"100%",width:"100%"}},this.renderPlayIcon()))}},{key:"renderPlayIcon",value:function(){var t=this.props.noPadding,e=t?0:20,n=t?0:9,r=11.556,o="".concat(e+r,",").concat(n+7.5," ").concat(e,",").concat(n+15," ").concat(e,",").concat(n);return(0,i.h)("svg",a({},this.svgAttrs(r+2*e,15+2*n),{class:"w-css-reset w-css-reset-tree"}),(0,i.h)("polygon",{points:o}))}},{key:"renderPauseIcon",value:function(){var t=this.props.noPadding,e=t?0:20,n=t?0:11.3;return(0,i.h)("svg",a({},this.svgAttrs(10+2*e,12+2*n),{class:"w-css-reset w-css-reset-tree"}),(0,i.h)("g",null,(0,i.h)("rect",{x:e,y:n,width:"3.5",height:12}),(0,i.h)("rect",{x:e+6.5,y:n,width:"3.5",height:12})))}},{key:"rootStyle",value:function(){return{height:"100%",width:"100%"}}},{key:"svgAttrs",value:function(){var t=this.props.noPadding,e=this.props.isPlaying,n=t?0:20,i=t?0:e?11.3:9,a=e?12:16,s=e?10:11.556,u=(0,o.standardSvgAttrs)({width:s+2*n,height:a+2*i,ariaHidden:!0});return(0,r.merge)(u.style,this.props.svgStyle),u}}])&&s(e.prototype,n),c&&s(e,c),Object.defineProperty(e,"prototype",{writable:!1}),h}(i.Component)},(t,e,n)=>{n(3);var i=n(2),r=n(74),o=n(155),a=n(75),s=n(183),u=n(63),l=n(64);function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(f,t);var e,n,o,l=h(f);function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=l.call(this,t)).video=t,e.unbinds.push(t.on("play",(function(){return e.renderProgressIndicator()})),t.on("playrejected",(function(){return e.renderProgressIndicator()})),t.on("playpending",(function(){return e.renderProgressIndicator()})),t.on("up",(function(){return e.renderProgressIndicator()})),t.on("end",(function(){return e.renderProgressIndicator()}))),e}return e=f,(n=[{key:"boundedScale",value:function(){var t=this.props.scale;return Math.min(Math.max(t,.8),2)}},{key:"destroy",value:function(){(0,u.destroyControl)(this)}},{key:"isVisible",value:function(){return this._isVisible}},{key:"mount",value:function(t){this.rootElem=t,this.renderProgressIndicator()}},{key:"onControlPropsUpdated",value:function(t){t.containerWidth!==this.props.containerWidth&&this.renderProgressIndicator()}},{key:"rootStyle",value:function(){return{bottom:0,left:0,position:"absolute",width:"100%"}}},{key:"renderProgressIndicator",value:function(){var t=function(t,e){if(null!=t&&e)return 100*t/e}((0,r.getLastTime)(this.video.hashedId()),this.video.duration());this._isVisible=t>0&&this.video.shouldResume()&&(0,s.default)(this.video),(0,i.render)((0,i.h)("div",{style:this.rootStyle()},(0,i.h)(a.default,{color:this.video.playerColor(),isVisible:this._isVisible,percentWatched:t,scale:this.boundedScale()})),this.rootElem)}}])&&c(e.prototype,n),o&&c(e,o),Object.defineProperty(e,"prototype",{writable:!1}),f}(o.default);p.handle="playbarlessProgressIndicator",p.type="foreground",p.sortValue=1800,p.shouldMount=function(t){return!t.isAudio()&&!1!==t._attrs.resumable&&"v1"!==t._opts.version&&!0!==t._attrs.hideControlsOnLoad},(0,l.defineControl)(p)},(t,e,n)=>{n.d(e,{default:()=>r});var i=(0,n(11).cachedDetect)();const r=function(t){var e=t.lastPlayInfo(),n=Date.now()-e.issuedAt,r=!e.source||e.rejectedAt,o=e.isPending&&"user-event"===e.source&&n<2e3,a=t._opts&&"reset"===t._attrs.endVideoBehavior&&"ended"===t.state(),s=e.isPending&&"non-user-event"===e.source&&!t.isMuted()&&(!1===t._attrs.silentAutoplay||null==t._attrs.silentAutoplay)&&(i.iphone||i.ipad||i.safari);return t.up()&&("beforeplay"===t.state()||a)&&(r||s||o||a)}},(t,e,n)=>{var i=n(3),r=n(5),o=n(2),a=n(42),s=n(185),u=n(155),l=n(63),c=n(64),d=n(41);function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_(i.key),i)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}(this,n)}}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function b(t,e,n){return(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(0,d.defineTranslations)("en-US",{SETTINGS_PLAYBACK_RATE_TITLE:"Speed",SETTINGS_QUALITY_AUTO:"Auto",SETTINGS_QUALITY_TITLE:"Quality",SETTINGS_TITLE:"Settings",SETTINGS_HIDE_MENU:"Hide settings menu",SETTINGS_SHOW_MENU:"Show settings menu"});var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(c,t);var e,n,i,u=v(c);function c(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),b(m(e=u.call(this,t)),"onKeyUp",(function(t){var n=e.video.getInputContext(),i=["player-mouseover","player-focus","playbar-focus","background-focus"].indexOf(n)>=0;if(!(0,r.formInputIsFocused)()&&i&&e.getPlaybackRateEnabled()){if(">"===t.key){var o=Math.min(e.video.playbackRate()+.25,2);e.video.playbackRate(o)}if("<"===t.key){var a=Math.max(e.video.playbackRate()-.25,.5);e.video.playbackRate(a)}}})),b(m(e),"loadMenuCode",(function(){return Promise.all([(0,a.dynamicImport)("assets/external/interFontFace.js"),(0,a.dynamicImport)("assets/external/vulcanV2Player/video/controls/SettingsControl/dialog.js")]).then((function(t){var n=h(t,2)[1];if(!e.renderMenuImpl){var i=n.renderMenu,r=n.onSelect;e.renderMenuImpl=i.bind(m(e)),e.onSelect=r.bind(m(e))}}))})),b(m(e),"onMouseEnterButton",(function(){e.loadMenuCode()})),e.unbinds.push(t.on("playbackratechange",(function(){e.menuElem&&e.renderMenu()})),t.on("qualitychange",(function(){e.menuElem&&e.renderMenu()})),t.on("playerlanguagechange",(function(){e.menuElem&&e.renderMenu()})),(0,r.elemBind)(document,"keyup",e.onKeyUp)),t.hasData((function(){if(null==e._isQualityEnabled){var n=t._attrs.qualityControl;e._isQualityEnabled=!0===n||null==n}if(null==e._isPlaybackRateEnabled){var i=t._attrs.playbackRateControl;e._isPlaybackRateEnabled=!0===i||null==i}})),e}return e=c,(n=[{key:"destroy",value:function(){(0,l.destroyControl)(this)}},{key:"translate",value:function(t){return(0,d.getTranslation)(this.props.playerLanguage.code,"SETTINGS_".concat(t))}},{key:"controlDialogOpened",value:function(){this.updateButtonLabel()}},{key:"controlDialogClosed",value:function(){this.updateButtonLabel()}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"mountDialog",value:function(t){return this.dialogRoot=t,this.renderMenu()}},{key:"renderButton",value:function(){this.setButtonLabel(this.translate("TITLE")),this.updateButtonLabel(),(0,o.render)((0,o.h)(s.default,{onMouseEnter:this.onMouseEnterButton}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot]}},{key:"renderMenu",value:function(){var t=this;if(this.dialog.isOpen()){var e=this.loadMenuCode().then((function(){t.renderMenuImpl()}));return this.loading(new Promise((function(t){e.then(t)}))),e}}},{key:"onControlPropsUpdated",value:function(t){this.dialog&&this.dialog.isOpen()&&this.renderMenu(),t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&(this.renderButton(),this.renderMenu())}},{key:"updateButtonLabel",value:function(){this.dialog&&(this.dialog.isOpen()?this.setButtonLabel(this.translate("HIDE_MENU")):this.setButtonLabel(this.translate("SHOW_MENU")))}},{key:"setQualityEnabled",value:function(t){var e=this;return this._isQualityEnabled=t,this.loadMenuCode().then((function(){e.dialog.isOpen()&&e.renderMenuImpl()}))}},{key:"getPlaybackRateEnabled",value:function(){return Boolean(this._isPlaybackRateEnabled)}},{key:"setPlaybackRateEnabled",value:function(t){var e=this;return this._isPlaybackRateEnabled=t,this.loadMenuCode().then((function(){e.dialog.isOpen()&&e.renderMenuImpl()}))}}])&&p(e.prototype,n),i&&p(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(u.default);w.shouldMount=function(t){var e=t._attrs,n=e.settingsControl,i=e.qualityControl,r=e.playbackRateControl;return!t.isLiveMedia()&&(!1!==n&&(!0===i||null==i||!0===r||null==r))},w.handle="settingsButton",w.type="control-bar-right",w.sortValue=200,w.isVideoChrome=!0,(0,c.defineControl)(w),i.default.SettingsControl=w},(t,e,n)=>{n.d(e,{default:()=>c});var i=n(2),r=n(38);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=l(t);if(e){var r=l(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}const c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(d,t);var e,n,l,c=u(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),c.apply(this,arguments)}return e=d,(n=[{key:"shouldComponentUpdate",value:function(){return!1}},{key:"render",value:function(){return(0,i.h)("svg",o({},(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),{onMouseEnter:this.props.onMouseEnter}),(0,i.h)("g",null,(0,i.h)("g",null,(0,i.h)("path",{d:"M28.3,16.4h-1.9c-0.4,0-0.8-0.3-0.9-0.7l-0.4-1.1c-0.2-0.3-0.1-0.8,0.2-1.1l1.3-1.3c0.3-0.3,0.3-0.7,0-1l-0.4-0.4c-0.3-0.3-0.7-0.3-1,0l-1.3,1.3c-0.3,0.3-0.8,0.3-1.1,0.1l-1.1-0.5c-0.4-0.1-0.7-0.5-0.7-0.9V9.1c0-0.4-0.3-0.7-0.7-0.7h-0.6c-0.4,0-0.7,0.3-0.7,0.7v1.7c0,0.4-0.3,0.8-0.7,0.9l-1.2,0.5c-0.3,0.2-0.8,0.1-1.1-0.2l-1.2-1.2c-0.3-0.3-0.7-0.3-1,0l-0.4,0.4c-0.3,0.3-0.3,0.7,0,1l1.2,1.2c0.3,0.3,0.3,0.8,0.1,1.1l-0.5,1.2c-0.1,0.4-0.5,0.7-0.9,0.7h-1.6c-0.4,0-0.7,0.3-0.7,0.7v0.6c0,0.4,0.3,0.7,0.7,0.7h1.6c0.4,0,0.8,0.3,0.9,0.7l0.5,1.2c0.2,0.3,0.1,0.8-0.1,1.1l-1.2,1.2c-0.3,0.3-0.3,0.7,0,1l0.4,0.4c0.3,0.3,0.7,0.3,1,0l1.2-1.2c0.3-0.3,0.8-0.3,1.1-0.2l1.2,0.5c0.4,0.1,0.7,0.5,0.7,0.9v1.7c0,0.4,0.3,0.7,0.7,0.7h0.6c0.4,0,0.7-0.3,0.7-0.7V24c0-0.4,0.3-0.8,0.7-0.9l1.1-0.5c0.3-0.2,0.8-0.1,1.1,0.1l1.3,1.3c0.3,0.3,0.7,0.3,1,0l0.4-0.4c0.3-0.3,0.3-0.7,0-1l-1.3-1.3C25,21,25,20.5,25.1,20.2l0.4-1.1c0.1-0.4,0.5-0.7,0.9-0.7h1.9c0.4,0,0.7-0.3,0.7-0.7v-0.6C29,16.7,28.7,16.4,28.3,16.4z M23.8,17.5c0,2.2-1.8,3.9-3.9,3.9c-2.2,0-3.9-1.8-3.9-3.9s1.7-3.9,3.9-3.9C22.1,13.6,23.8,15.3,23.8,17.5z"}))))}}])&&a(e.prototype,n),l&&a(e,l),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.Component)},(t,e,n)=>{n(3);var i=n(2),r=n(155),o=n(181),a=n(63),s=n(64),u=n(41);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,y(i.key),i)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,n)}}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e,n){return(e=y(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function v(t,e){!function(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}(t,e),e.add(t)}var m=new WeakSet,g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(f,t);var e,n,r,s=d(f);function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),v(h(e=s.call(this,t)),m),p(h(e),"renderButton",(function(){e.buttonRoot&&(e.setButtonLabel(function(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}(h(e),m,b).call(h(e))),(0,i.render)((0,i.h)("div",{style:e.wrapperStyle()},(0,i.h)(o.default,{isPlaying:"playing"===e.video.state(),noPadding:!0,svgStyle:{verticalAlign:"top"}})),e.buttonRoot),e.reactMounts=[e.rootElem])})),p(h(e),"onClickButton",(function(){var t=e.video;"playing"===t.state()?t.pause():t.play()})),p(h(e),"onKeyDownButton",(function(t){32!==t.keyCode&&13!==t.keyCode||(t.__handledAlready=!0)})),e.unbinds.push(t.on("play",e.renderButton),t.on("pause",e.renderButton),t.on("end",e.renderButton)),t.isLiveMedia()?(e.disabledButton=!0,t.ready((function(){e.disabledButton=!1,e.renderButton()}))):e.disabledButton=!1,e}return e=f,(n=[{key:"destroy",value:function(){(0,a.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(t){(t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code||this.props.scale!==t.scale)&&this.renderButton()}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"wrapperStyle",value:function(){var t=this.props.scale,e="playing"===this.video.state(),n=e?"".concat(10*t,"px 0 ").concat(11*t,"px 0"):"".concat(10*t,"px 0 ").concat(9*t,"px 0");return{boxSizing:"border-box",height:"100%",marginLeft:e?0:"".concat(1*t,"px"),padding:n,position:"relative",width:"100%"}}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"PLAY_BUTTON_".concat(t))}},{key:"pcfButtonWidth",value:function(){return 40}}])&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(r.default);function b(){return this.disabledButton?this.translate("LIVE_NOT_STARTED"):"playing"===this.video.state()?this.translate("TITLE_WHEN_PLAYING"):this.translate("TITLE_WHEN_NOT_PLAYING")}g.shouldMount=function(t){var e=t._attrs.playPauseControl,n=!0===e||null==e,i=t._impl.ui&&t._impl.ui.shouldShowMoreDefaultValue();return n&&i},g.handle="smallPlayButton",g.type="control-bar-left",g.sortValue=100,(0,s.defineControl)(g)},(t,e,n)=>{n(3);var i=n(2),r=n(64),o=n(155),a=n(188),s=n(63),u=n(41);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}(0,u.defineTranslations)("en-US",{STATUS_BAR_EMBED_CODE_COPIED:"Embed Code is now copied to your clipboard!"});var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(h,t);var e,n,r,o=d(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=o.call(this,t))._isVisible=!1,e}return e=h,n=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"flash",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3;this._isVisible=!0,this.renderMenu(this.translate(t)),setTimeout((function(){e.hide()}),n)}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"STATUS_BAR_".concat(t))}},{key:"hide",value:function(){this._isVisible=!1,(0,i.render)((0,i.h)("nothing",null),this.rootElem)}},{key:"renderMenu",value:function(t){this._isVisible&&((0,i.render)((0,i.h)(a.default,{message:t}),this.rootElem),this.reactMounts=[this.rootElem])}}],n&&l(e.prototype,n),r&&l(e,r),Object.defineProperty(e,"prototype",{writable:!1}),h}(o.default);f.handle="statusBar",f.type="background",(0,r.defineControl)(f)},(t,e,n)=>{n.d(e,{default:()=>d});var i=n(2);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=s(t);if(e){var r=s(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(d,t);var e,n,s,u=a(d);function d(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),u.apply(this,arguments)}return e=d,(n=[{key:"styles",value:function(){return{background:"rgba(0,0,0,.3)",boxShadow:"none",cursor:"pointer",display:"flex",alignItems:"center",fontSize:c(this),lineHeight:l(this),padding:"0 ".concat(10*this.props.scale,"px"),width:"100%",height:"30px",color:"#fff",position:"absolute",justifyContent:"center"}}},{key:"render",value:function(){return(0,i.h)("div",{style:this.styles()},this.props.message)}}])&&r(e.prototype,n),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.Component),l=function(t){return"".concat(function(t){return 34*t.props.scale}(t),"px")},c=function(t){return"".concat(14*t.props.scale,"px")};const d=u},(t,e,n)=>{n(3);var i=n(2),r=n(155),o=n(190),a=n(183),s=n(63),u=n(64);function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},l.apply(this,arguments)}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,v(i.key),i)}}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return f(t)}(this,n)}}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function y(t,e,n){return(e=v(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(p,t);var e,n,r,u=h(p);function p(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),y(f(e=u.call(this,t)),"renderThumbnail",(function(t){var n=e.video,r=n.lastPlayInfo(),a=Date.now()-r.issuedAt,s=n.embedOptions().thumbnailAltText;e._isVisible=e.shouldShow();var u=!0===n._attrs.transparentLetterbox;(0,i.render)((0,i.h)(o.default,l({},e.props,{backgroundColor:u?"transparent":void 0,elemRef:function(t){return e.thumbnailElem=t},images:e.thumbnailAssets,isVisible:e.shouldShow(),onDisplay:t,hashedId:e.video.hashedId(),swatchEnabled:!n._attrs.poster&&e._swatchEnabled,uiHasRendered:e.video._impl.ui.hasRendered(),fitStrategy:e.video._opts.fitStrategy,thumbnailAltText:s})),e.rootElem),e._isVisible&&(e._hasRenderedVisible=!0);var c=2e3-a+1;e._isVisible&&a<2e3&&setTimeout((function(){e._destroyed||e.renderThumbnailAndUpdateSwatch()}),c),e.reactMounts=[e.rootElem]})),y(f(e),"renderThumbnailAndUpdateSwatch",(function(t){e.renderThumbnail(t),e.updateSwatch()})),e.unbinds.push(t.on("play",(function(){e._hasPlayed=!0,e.renderThumbnailAndUpdateSwatch()})),t.on("playrejected",(function(){e.renderThumbnailAndUpdateSwatch()})),t.on("playpending",(function(){e.renderThumbnailAndUpdateSwatch()})),t.on("up",e.renderThumbnailAndUpdateSwatch),t.on("end",e.renderThumbnailAndUpdateSwatch)),e.eventListeners.set("thumbnailchange",(function(){e.thumbnailAssets=e.video.thumbnailAssets(),e.renderThumbnailAndUpdateSwatch()})),e._swatchEnabled=t._opts.swatchEnabled?t._opts.swatchEnabled:t._embedContainer.querySelector(".wistia_swatch"),e}return e=p,(n=[{key:"destroy",value:function(){(0,s.destroyControl)(this)}},{key:"mount",value:function(t){var e=this;if(this.rootElem=t,this.thumbnailAssets=this.thumbnailAssets||this.video.thumbnailAssets(),!this.shouldShow())return Promise.resolve();var n=new Promise((function(t){setTimeout(t,1e3)})),i=new Promise((function(t){e.renderThumbnailAndUpdateSwatch(t),e.video.embedded((function(){e.__destroyed||e.renderThumbnailAndUpdateSwatch()}))}));return Promise.race([i,n])}},{key:"shouldShow",value:function(){return Boolean((0,a.default)(this.video)&&this.video.thumbnailAssets().length)}},{key:"onControlPropsUpdated",value:function(t){var e=this;this._hasRenderedVisible&&["videoWidth","videoHeight","playerLanguage","playerBorderRadius"].some((function(n){return e.props[n]!==t[n]}))&&this.renderThumbnailAndUpdateSwatch()}},{key:"updateSwatch",value:function(){var t=this.video._embedContainer.querySelector(".wistia_swatch");t&&(t.style.borderRadius="".concat(this.props.playerBorderRadius,"px"))}}])&&c(e.prototype,n),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),p}(r.default);m.shouldShow=function(){return(0,a.default)(this.video)},m.shouldMount=function(t){return!t._opts.spherical},m.handle="thumbnail",m.type="background",m.sortValue=1e3,(0,u.defineControl)(m)},(t,e,n)=>{n.d(e,{default:()=>y});var i=n(6),r=n(2),o=n(23),a=n(191);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},s.apply(this,arguments)}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,p(i.key),i)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,n)}}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}const y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(y,t);var e,n,h,p=c(y);function y(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),f(d(e=p.call(this,t)),"afterTwoSeconds",(function(){e._displayed||1!==e.state.normalThumbOpacity||e.setState({normalThumbOpacity:0})})),f(d(e),"onDisplayNormalThumb",(function(){e.setState({normalThumbOpacity:1}),e._displayed=!0,e.onDisplay&&e.onDisplay()})),e.state={normalThumbOpacity:t.isVisible?1:0},e.onDisplay=t.onDisplay,e}return e=y,(n=[{key:"componentWillReceiveProps",value:function(t){!this.onDisplay&&t.onDisplay&&(this.onDisplay=t.onDisplay)}},{key:"render",value:function(){this.props.isVisible&&(this._hasRenderedVisible=!0);var t={backgroundColor:this.props.backgroundColor,fitStrategy:this.props.fitStrategy,isVisible:this.props.isVisible,stillSnap:this.props.stillSnap,stretchLimit:this.props.stretchLimit,videoHeight:this.props.videoHeight,videoWidth:this.props.videoWidth,thumbnailAltText:this.props.thumbnailAltText,playerBorderRadius:this.props.playerBorderRadius},e=(0,i.assign)({},t,{ariaHidden:!0,images:[{url:"".concat((0,o.eV1Protocol)(),"//").concat((0,o.eV1Host)(),"/embed/medias/").concat(this.props.hashedId,"/swatch")}]}),n=(0,i.assign)({},t,{onDisplay:this.onDisplayNormalThumb,images:this.props.images});return(0,r.h)("div",{ref:this.props.elemRef},this.props.swatchEnabled&&this._hasRenderedVisible?(0,r.h)(a.default,s({},e,{wrapperStyle:this.swatchWrapperStyle()})):null,this._hasRenderedVisible?(0,r.h)(a.default,s({},n,{wrapperStyle:this.normalThumbWrapperStyle()})):null)}},{key:"componentDidMount",value:function(){setTimeout(this.afterTwoSeconds,2e3)}},{key:"normalThumbWrapperStyle",value:function(){var t=this.props.swatchEnabled&&this.props.uiHasRendered&&1===this.state.normalThumbOpacity?"opacity 3s":"";return{height:"100%",left:0,opacity:this.state.normalThumbOpacity,position:"naturalHeight"===this.props.fitStrategy?"relative":"absolute",top:0,transition:t,width:"100%"}}},{key:"swatchWrapperStyle",value:function(){return{filter:"blur(5px)",height:"100%",left:0,position:"naturalHeight"===this.props.fitStrategy?"relative":"absolute",top:0,width:"100%"}}}])&&u(e.prototype,n),h&&u(e,h),Object.defineProperty(e,"prototype",{writable:!1}),y}(r.Component)},(t,e,n)=>{n.d(e,{default:()=>h});var i=n(192),r=n(2),o=n(6),a=n(5),s=n(41);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var r=d(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}(0,s.defineTranslations)("en-US",{THUMBNAIL_VIDEO_THUMBNAIL:"Video Thumbnail"});const h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(f,t);var e,n,d,h=c(f);function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=h.call(this,t)).initialState=e.state={isLoaded:!1,isDisplaying:!1},e.onDisplay=e.props.onDisplay,e}return e=f,(n=[{key:"componentWillReceiveProps",value:function(t){t.images!==this.props.images&&(clearTimeout(this.loadTimeout),this._sortedImages=null,this.loadTimeout=null,this.setState({isLoaded:!1,isDisplaying:!1})),!this.onDisplay&&t.onDisplay&&(this.onDisplay=t.onDisplay)}},{key:"render",value:function(){var t=this,e=void 0!==this.props.thumbnailAltText?this.props.thumbnailAltText:this.translate("VIDEO_THUMBNAIL");return(0,r.h)("div",{style:this.wrapperStyle(),class:"w-css-reset"},(0,r.h)("img",{class:"w-css-reset",srcset:this.props.images.length>1?this.srcSet():null,src:this.bestSrc(),style:this.imgStyle(),alt:e,ref:function(e){return t.imgElem=e},"aria-hidden":this.props.ariaHidden?"true":null}))}},{key:"translate",value:function(t){return(0,s.getTranslation)(this.props.playerLanguage,"THUMBNAIL_".concat(t))}},{key:"componentDidMount",value:function(){this.setStateBasedOnImgStatus(),this.maybeCallOnDisplay(this.initialState)}},{key:"componentDidUpdate",value:function(t,e){this.setStateBasedOnImgStatus(),this.maybeCallOnDisplay(e)}},{key:"maybeCallOnDisplay",value:function(){this.onDisplay&&this.state.isDisplaying&&!this.calledOnDisplay&&(this.calledOnDisplay=!0,this.onDisplay())}},{key:"setStateBasedOnImgStatus",value:function(){var t=this,e=this.state,n=this.imgElem;e.isLoaded||(n.onload||(n.onload=function(){(0,a.elemInDom)(n)&&t.setState({isLoaded:!0})}),n.complete&&this.setState({isLoaded:!0})),!e.isDisplaying&&e.isLoaded&&this.setState({isDisplaying:!0})}},{key:"wrapperStyle",value:function(){var t=this.state.isDisplaying&&this.props.isVisible;return(0,o.assign)({},this.props.wrapperStyle,{display:this.state.isLoaded&&!t?"none":"block"})}},{key:"baseStyle",value:function(){var t=this.props.fitStrategy;return"cover"===t?this.coverStyle():"contain"===t?this.containStyle():"fill"===t?this.fillStyle():"naturalHeight"===t?this.naturalHeightStyle():"modernContain"===t?this.modernContainStyle():this.containStyle()}},{key:"imgStyle",value:function(){var t=this.state.isDisplaying&&this.props.isVisible;return(0,o.assign)(this.baseStyle(),{clip:t?"auto":"rect(0,0,0,0)",display:this.state.isLoaded&&!t?"none":"block",borderRadius:"".concat(this.props.playerBorderRadius,"px")})}},{key:"modernContainStyle",value:function(){return{height:"100%",objectFit:"contain",position:"absolute",width:"100%",top:0,left:0}}},{key:"containStyle",value:function(){if(!this.imgElem)return{height:"100%",left:0,position:"absolute",top:0,width:"100%"};var t,e,n=this.props,i=n.videoWidth,r=n.videoHeight,o=i/r,a=this.imgElem.naturalWidth/this.imgElem.naturalHeight;!1===n.stillSnap?(t=i,e=r):o>a?(e=r,t=Math.round(e*a)):o<=a&&(t=i,e=Math.round(t/a));var s=Math.max(0,r-e),u=Math.max(0,i-t),l=Math.round(s/2),c=Math.round(u/2),d=l,h=c,f=l,p=c;2*f<=this.stretchLimit()&&(f=0,d=0,e=r),2*p<=this.stretchLimit()&&(p=0,h=0,t=i);var y=this.props.backgroundColor||"#000";return{borderTop:"".concat(d,"px solid ").concat(y),borderBottom:"".concat(f,"px solid ").concat(y),borderLeft:"".concat(p,"px solid ").concat(y),borderRight:"".concat(h,"px solid ").concat(y),boxSizing:"content-box",height:"".concat(e,"px"),left:0,position:"absolute",top:0,webkitTouchCallout:"none",width:"".concat(t,"px")}}},{key:"coverStyle",value:function(){return{height:"100%",objectFit:"cover",position:"absolute",width:"100%"}}},{key:"fillStyle",value:function(){return{height:"100%",objectFit:"fill",position:"absolute",width:"100%"}}},{key:"naturalHeightStyle",value:function(){return{width:"100%",position:"relative"}}},{key:"bestSrc",value:function(){return(0,i.bestImage)(this.props.images,{videoWidth:this.props.videoWidth,videoHeight:this.props.videoHeight}).url}},{key:"srcSet",value:function(){var t=this.sortedImages();return 0===t.length&&(t=[(0,i.blankImage)(this.props.videoWidth,this.props.videoHeight)]),t.map((function(t){return"".concat(t.url," ").concat(t.width,"w")})).join(", ")}},{key:"sortedImages",value:function(){return this._sortedImages||(this._sortedImages=(0,i.sortedImages)(this.props.images)),this._sortedImages}},{key:"stretchLimit",value:function(){var t=this.props.stretchLimit;return null!=t?t:10}}])&&u(e.prototype,n),d&&u(e,d),Object.defineProperty(e,"prototype",{writable:!1}),f}(r.Component)},(t,e,n)=>{n.d(e,{bestImage:()=>r,blankImage:()=>o,sortedImages:()=>a});var i=n(23),r=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a(t);if(0===n.length)return o(e.videoWith,e.videoHeight);var i=e.videoWidth,r=(window.devicePixelRatio||1)*i;if(r<=n[0].width)return n[0];for(var s=0;s<n.length;s++){var u=n[s];if(u.width>=r)return u}return n[n.length-1]},o=function(t,e){return{height:e,url:"https://".concat((0,i.eV1HostWithPort)(),"/assets/images/blank.gif"),width:t}},a=function(t){return t.map((function(t){return t.aspect=t.width/t.height,t}))}},(t,e,n)=>{var i=n(110),r=n(5),o=n(2),a=n(11),s=n(42),u=n(41),l=n(64),c=n(63),d=n(194),h=n(155);function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,n)}}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var _=(0,a.cachedDetect)();(0,u.defineTranslations)("en-US",{VOLUME_TITLE_WHEN_MUTED:"Unmute",VOLUME_TITLE_WHEN_UNMUTED:"Mute"});var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(m,t);var e,n,a,h=y(m);function m(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),g(v(e=h.call(this,t)),"loadSliderCode",(function(){return(0,s.dynamicImport)("assets/external/vulcanV2Player/video/controls/VolumeSliderControl/VolumeSliderControl.js").then((function(t){(0,l.defineControl)(t.VolumeSliderControl)}))})),g(v(e),"onClickButton",(function(){_.touchScreen||e.toggleMute()})),g(v(e),"onFocusInButton",(function(){e._isFocused=!0,e.video.enterInputContext("volume-button-focus"),e.loadSliderCode()})),g(v(e),"onFocusOutButton",(function(){e._isFocused=!1,e.video.exitInputContext("volume-button-focus")})),g(v(e),"onMouseEnter",(function(){e.timeoutForCloseSlider&&clearTimeout(e.timeoutForCloseSlider),e.props.anyDialogOpen?e.timeoutForOpenSlider=setTimeout((function(){e.openSlider()}),300):e.openSlider()})),g(v(e),"onMouseLeave",(function(){clearTimeout(e.timeoutForOpenSlider),e.timeoutForCloseSlider&&clearTimeout(e.timeoutForCloseSlider),e._isFocused=!1,e.video.controls.volumeSlider&&(e.props.controlBarBorderRadius?e.timeoutForCloseSlider=setTimeout((function(){e.video.controls.volumeSlider.isVisible()||e.video.controls.volumeSlider.hide()}),300):e.video.controls.volumeSlider.hide())})),g(v(e),"openSlider",(function(){e._isFocused=!0,e.loadSliderCode().then((function(){e._isFocused&&e.video.controls.volumeSlider.mounted.then((function(){e.video.controls.volumeSlider.show()}))}))})),g(v(e),"onKeyUp",(function(t){if(!(0,r.formInputIsFocused)()&&!t.wistiaPlayerHandled){var n=e.video,o=n.getInputContext();"background-focus"!==o&&"player-mouseover"!==o&&"player-focus"!==o&&"volume-button-focus"!==o&&"volume-slider-focus"!==o||77===t.keyCode&&(n.isMuted()?(n.unmute(),(0,i.setViewerPreference)("muted",void 0)):(n.mute(),(0,i.setViewerPreference)("muted",!0)))}})),g(v(e),"onKeyDown",(function(t){if(!(0,r.formInputIsFocused)()&&!t.wistiaPlayerHandled){var n=e.video,o=n.getInputContext();if("player-mouseover"===o||"player-focus"===o||"volume-button-focus"===o||"volume-slider-focus"===o){var a=t.keyCode,s=0;if(38===a?s=1:40===a&&(s=-1),1===s){t.preventDefault();var u=t.shiftKey?.01:.1;n.volume(n.volume()+u),(0,i.setViewerPreference)("volume",n.volume())}else if(-1===s){t.preventDefault();var l=t.shiftKey?.01:.1;n.volume(n.volume()-l),(0,i.setViewerPreference)("volume",n.volume())}}}})),e.video=t,e.unbinds.push(t.on("volumechange",(function(){e.buttonRoot&&e.renderButton()})),(0,r.elemBind)(document,"keyup",e.onKeyUp),(0,r.elemBind)(document,"keydown",e.onKeyDown)),e}return e=m,(n=[{key:"destroy",value:function(){(0,c.destroyControl)(this)}},{key:"onControlPropsUpdated",value:function(t){t.playerLanguage&&this.props.playerLanguage.code!==t.playerLanguage.code&&this.renderButton()}},{key:"mountButton",value:function(t){this.buttonRoot=t,this.renderButton()}},{key:"renderButton",value:function(){this.buttonRoot&&(this.setButtonLabel(this.video.isMuted()?this.translate("TITLE_WHEN_MUTED"):this.translate("TITLE_WHEN_UNMUTED")),(0,o.render)((0,o.h)(d.default,{volume:this.video.isMuted()?0:this.video.volume()}),this.buttonRoot),this.reactMounts.button=[this.buttonRoot])}},{key:"translate",value:function(t){return(0,u.getTranslation)(this.props.playerLanguage.code,"VOLUME_".concat(t))}},{key:"getButtonTitle",value:function(){return 0===this.video.volume()?"Unmute":"Mute"}},{key:"mute",value:function(){this.video.mute(),(0,i.setViewerPreference)("muted",!0)}},{key:"unmute",value:function(){this.video.unmute(),(0,i.setViewerPreference)("muted",void 0)}},{key:"toggleMute",value:function(){this.video.isMuted()?this.unmute():this.mute()}}])&&f(e.prototype,n),a&&f(e,a),Object.defineProperty(e,"prototype",{writable:!1}),m}(h.default);w.shouldMount=function(t){var e=t._attrs.volumeControl;return!(!0!==e&&null!=e||_.iphone||_.ipad||_.android)},w.handle="volumeButton",w.type="control-bar-right",w.sortValue=100,(0,l.defineControl)(w)},(t,e,n)=>{n.d(e,{default:()=>d});var i=n(2),r=n(38);function o(){return o=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},o.apply(this,arguments)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=l(t);if(e){var r=l(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}var c="opacity 100ms";const d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(h,t);var e,n,l,d=u(h);function h(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),(e=d.call(this,t)).state={volume:t.volume},e}return e=h,n=[{key:"waveCount",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.volume;return t>.66?2:t>.33?1:t>0?0:-1}},{key:"shouldComponentUpdate",value:function(t){return this.waveCount()!==this.waveCount(t.volume)}},{key:"render",value:function(){var t={fill:"none",stroke:"#ffffff","stroke-line-cap":"round","stroke-miterlimit":"10"};return(0,i.h)("svg",(0,r.standardSvgAttrs)({width:40,height:34,ariaHidden:!0}),(0,i.h)("g",{style:this.speakerGroupStyle()},(0,i.h)("g",null,(0,i.h)("path",{d:"M13.8,14.2c-0.5,0.5-1.4,0.8-2,0.8h-1.6C9.5,15,9,15.5,9,16.2v1.6c0,0.7,0.5,1.2,1.2,1.2h1.6c0.7,0,1.6,0.4,2,0.8l2.3,2.3c0.5,0.5,0.8,0.3,0.8-0.4v-9.6c0-0.7-0.4-0.8-0.8-0.4L13.8,14.2z"})),(0,i.h)("g",null,(0,i.h)("path",o({},t,{"stroke-width":"2",d:"M22,11.7c0,0,1.1,2.5,1.1,5s-1.1,5-1.1,5",style:this.wave1Style()})),(0,i.h)("path",o({},t,{"stroke-width":"2",d:"M25.8,9.2c0,0,1.7,3.8,1.7,7.5c0,3.7-1.7,7.5-1.7,7.5",style:this.wave2Style()}))),(0,i.h)("g",{style:this.waveXStyle()},(0,i.h)("line",o({},t,{"stroke-width":"1.8102",x1:"19.2",y1:"15",x2:"23.2",y2:"19"})),(0,i.h)("line",o({},t,{"stroke-width":"1.8102",x1:"19.2",y1:"19",x2:"23.2",y2:"15"})))))}},{key:"speakerGroupStyle",value:function(){return{transform:"translateX(".concat(this.positioningOffset(),"px)"),transition:"transform 100ms"}}},{key:"positioningOffset",value:function(){var t=this.waveCount();return 0==t?7:t<2?3:1.25}},{key:"waveXStyle",value:function(){return{opacity:this.waveCount()<0?1:0,transition:c}}},{key:"wave1Style",value:function(){return{opacity:this.waveCount()>=1?1:0,transition:c}}},{key:"wave2Style",value:function(){return{opacity:this.waveCount()>=2?1:0,transition:c}}}],n&&a(e.prototype,n),l&&a(e,l),Object.defineProperty(e,"prototype",{writable:!1}),h}(i.Component)},(t,e,n)=>{n(3);var i=n(2),r=n(42),o=n(155),a=n(196),s=n(64);function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},u.apply(this,arguments)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,p(i.key),i)}}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return h(t)}(this,n)}}function h(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(f,t);var e,n,o,s=d(f);function f(t){var e,n,i,r;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),e=s.call(this,t),n=h(e),r=function(t){e.video.setAriaLiveText(t)},(i=p(i="setAriaLiveText"))in n?Object.defineProperty(n,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[i]=r,e.video=t,e.undbinds=[],e.undbinds.push(e.video.on("play",(function(){e.renderLiveStreamStatus()})),e.video.on("pause",(function(){e.renderLiveStreamStatus()})),e.video.on("end",(function(){e.renderLiveStreamStatus()})),e.video.on("widthchange",(function(){e.renderLiveStreamStatus()})),e.video.on("playerlanguagechange",(function(){e.renderLiveStreamStatus()}))),e.video.ready((function(){e.renderLiveStreamStatus()})),e}return e=f,(n=[{key:"onControlPropsUpdated",value:function(t){t.controlsAreVisible!==this.props.controlsAreVisible&&this.renderLiveStreamStatus()}},{key:"mount",value:function(t){var e=this;return this.rootElem=t,(0,r.dynamicImport)("assets/external/interFontFace.js").then((function(){e.renderLiveStreamStatus(),e.reactMounts=[e.rootElem]}))}},{key:"renderLiveStreamStatus",value:function(){var t,e=null;null!==(t=this.video._mediaData.liveStreamEventDetails)&&void 0!==t&&t.scheduledFor&&(e=new Date(this.video._mediaData.liveStreamEventDetails.scheduledFor)),(0,i.render)((0,i.h)(a.default,u({videoState:this.video.state(),videoReady:this.video.ready(),scheduledFor:e,setAriaLiveText:this.setAriaLiveText},this.props)),this.rootElem)}}])&&l(e.prototype,n),o&&l(e,o),Object.defineProperty(e,"prototype",{writable:!1}),f}(o.default);y.handle="liveStreamStatusOverlay",y.type="foreground",y.sortValue=500,y.shouldMount=function(t){return t.isLiveMedia()},(0,s.defineControl)(y)},(t,e,n)=>{n.d(e,{default:()=>g});var i=n(2),r=n(165),o=n(36),a=n(67),s=n(197),u=n(41);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d(t,e){var n=t.toLocaleString(navigator.language,{month:"short",day:"numeric",year:"numeric"}),i=t.toLocaleString(navigator.language,{hour:"numeric",minute:"numeric",timeZoneName:"short"});return"".concat(n," ").concat((0,u.getTranslation)(e,"LIVE_STREAM_STATUS_SCHEDULED_FOR_TIME_SEPARATOR")," ").concat(i)}function h(t){var e=t.state;return(0,i.h)("div",{style:{backgroundColor:"live"===e?"#fa4040":"",borderRadius:"50%",width:"12px",height:"12px",marginRight:"4px"}})}(0,u.defineTranslations)("en-US",{LIVE_STREAM_STATUS_COUNTDOWN:"Stream begins in",LIVE_STREAM_STATUS_LIVE:"Live",LIVE_STREAM_STATUS_LIVE_ARIA:"The stream is now live",LIVE_STREAM_STATUS_MINUTES:"minutes",LIVE_STREAM_STATUS_SCHEDULED_FOR:"Scheduled for",LIVE_STREAM_STATUS_SCHEDULED_FOR_ARIA:"The stream is scheduled for",LIVE_STREAM_STATUS_SCHEDULED_FOR_TIME_SEPARATOR:"at",LIVE_STREAM_STATUS_SECONDS:"seconds",LIVE_STREAM_STATUS_STREAM_ENDED:"The stream has ended",LIVE_STREAM_STATUS_WAITING_FOR_HOST:"Waiting for host to begin",LIVE_STREAM_STATUS_WAITING_FOR_HOST_ARIA:"Waiting for host to begin live stream"});var f={initial:"idle",states:{idle:{on:{READY:"live",NOT_READY:"beforeStream",START_COUNTDOWN:"countdown",PAST_SCHEDULE:"waitingForHost"}},beforeStream:{on:{PAST_SCHEDULE:"waitingForHost",READY:"live",START_COUNTDOWN:"countdown"}},countdown:{on:{PAST_SCHEDULE:"waitingForHost",READY:"live"}},waitingForHost:{on:{READY:"live",END:"ended"}},live:{on:{END:"ended"}},ended:{}}};function p(t){var e=t.children,n=t.scale,r=t.show;return(0,i.h)("div",{className:"w-css-reset",style:{left:0,position:"absolute",top:0,display:"flex",opacity:r?1:0,transition:"opacity 200ms",margin:"".concat(v({base:12,scale:n}),"px 0 0 ").concat(v({base:12,scale:n}),"px")}},e)}function y(t,e){var n,i=null===(n=f.states[t].on)||void 0===n?void 0:n[e.type];return void 0===i?t:i}function v(t){var e=t.scale,n=t.base,i=2*n;return Math.min(i,Math.max(0,e*n))}function m(t){var e=t.children,n=t.scale;return(0,i.h)("div",{className:"w-live-status",style:{backgroundColor:"rgba(11, 13, 14, 0.7)",padding:"".concat(v({base:8,scale:n}),"px ").concat(v({base:12,scale:n}),"px"),display:"flex",color:"#fff",alignItems:"center",borderRadius:"4px",fontFamily:o.interFontFamily,fontSize:"".concat(v({base:14,scale:n}),"px")}},e)}const g=function(t){var e=this,n=t.controlsAreVisible,o=t.playerLanguage,c=t.scale,v=t.scheduledFor,g=t.videoReady,b=t.videoState,_=l((0,r.useState)(new Date),2),w=_[0],P=_[1],O="playing"!==b||n,k=l((0,r.useReducer)(y,f.initial),2),S=k[0],E=k[1];(0,r.useEffect)((function(){"ended"===b?E({type:"END"}):g?E({type:"READY"}):!function(t){return!!t&&Date.now()<t.getTime()}(v)?E(function(t){return!!t&&(0,a.getSecondsRemaining)(t,new Date)>600}(v)?{type:"END"}:{type:"PAST_SCHEDULE"}):E(function(t){return!!t&&(0,a.getSecondsRemaining)(new Date,t)<3600}(v)?{type:"START_COUNTDOWN"}:{type:"NOT_READY"})}),[w,g,b]),(0,r.useEffect)((function(){e.props.setAriaLiveText(T())}),[S]),(0,r.useEffect)((function(){if("countdown"===S){var t=(0,a.getSecondsRemaining)(new Date,v),n=Math.ceil(t),i=Math.ceil(t/60),r=t/60,o="";i%5==0?o="".concat(C("COUNTDOWN")," ").concat(i," ").concat(C("MINUTES")):r&&n%5==0&&(o="".concat(C("COUNTDOWN")," ").concat(n," ").concat(C("SECONDS"))),e.props.setAriaLiveText(o)}}),[w]),(0,s.useInterval)((function(){return P(new Date)}),"live"===S||"ended"===S?null:1e3);var T=function(){switch(S){case"live":return C("LIVE_ARIA");case"ended":return C("STREAM_ENDED");case"waitingForHost":return C("WAITING_FOR_HOST_ARIA");case"beforeStream":return"".concat(C("SCHEDULED_FOR_ARIA")," ").concat(d(v,o.code))}},C=function(t){return(0,u.getTranslation)(o.code,"LIVE_STREAM_STATUS_".concat(t))};return(0,i.h)(p,{scale:c,show:O},(0,i.h)(m,{scale:c},"live"===S&&(0,i.h)(h,{state:"live"}),function(){switch(S){case"live":return C("LIVE");case"ended":return C("STREAM_ENDED");case"waitingForHost":return C("WAITING_FOR_HOST");case"beforeStream":return"".concat(C("SCHEDULED_FOR")," ").concat(d(v,o.code));case"countdown":return"".concat(C("COUNTDOWN")," ").concat((0,a.flexibleDuration)((0,a.getSecondsRemaining)(new Date,v)))}}()))}},(t,e,n)=>{n.d(e,{useInterval:()=>r});var i=n(165);function r(t,e){var n=(0,i.useRef)(t);(0,i.useEffect)((function(){n.current=t}),[t]),(0,i.useEffect)((function(){if(null!==e){var t=setInterval((function(){return n.current()}),e);return function(){return clearInterval(t)}}}),[e])}},(t,e,n)=>{n.d(e,{default:()=>l});var i=n(3);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=s(t);if(e){var r=s(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(l,t);var e,n,s,u=a(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),u.apply(this,arguments)}return e=l,(n=[{key:"init",value:function(){var t=this,e=this.impl;e.embedded((function(){"engines/manual_quality_video.js"===e.bestEngine()&&(t.bandwidthTest().isFresh()?(t._supportsHd=t.bandwidthTest().savedResult().supportsHd,t.impl.whenVideoElementInDom().then((function(){t.impl.engine.setAttributes({supportsHd:t._supportsHd})}))):t.hdAsset()&&t.unbinds.push(e.on("play",(function(){return t.doBandwidthTest(),e.unbind}))))}))}},{key:"bandwidthTest",value:function(){return this._bandwidthTest||(this._bandwidthTest=new i.default.BandwidthTest({timeoutLength:4e3,uuid:this.impl.uuid,saveKey:"vulcan.bandwidth"})),this._bandwidthTest}},{key:"doBandwidthTest",value:function(){var t=this,e=this.impl;e.info("doBandwidthTest"),this._endBandwidthTestEarly||(this._endBandwidthTestEarly=function(){e.info("_endBandwidthTestEarly"),t.bandwidthTest().endEarly(),i.default.Metrics.videoCount(e,"player/bandwidth_test/ended_early")});var n=["seek","pause","end","switched-to-asset-without-load"];n.forEach((function(n){t.unbinds.push(e.on(n,t._endBandwidthTestEarly))})),this._failBandwidthTestOnWaiting||(this._failBandwidthTestOnWaiting=function(){return e.info("_failBandwidthTestOnWaiting"),t.bandwidthTest().fail(),i.default.Metrics.videoCount(e,"player/bandwidth_test/failed"),e.unbind}),this.unbinds.push(e.on("waiting",this._failBandwidthTestOnWaiting)),this._endBandwidthTestOnTime=function(){e.info("_endBandwidthTestOnTime"),t._supportsHd=t.bandwidthTest().supportsHd(),e.engine.setAttributes({supportsHd:!0}),t._failBandwidthTestOnWaiting&&e.unbind("waiting",t._failBandwidthTestOnWaiting),t._endBandwidthTestEarly&&n.forEach((function(n){e.unbind(n,t._endBandwidthTestEarly)})),i.default.Metrics.videoCount(e,"player/bandwidth_test/ended_on_time")},this.bandwidthTest().bind("ended",this._endBandwidthTestOnTime),this.bandwidthTest().start()}},{key:"supportsHd",value:function(){return!!this.hdAsset()&&(null==this._supportsHd||this._supportsHd)}},{key:"hdAsset",value:function(){if(this._hdAsset)return this._hdAsset;var t=this.impl;return this._hdAsset=t.playableAssetInRange({width:[980,t._opts.maxHdWidth||2e3],sortBy:"width desc, bitrate desc"}),this._hdAsset}}])&&r(e.prototype,n),s&&r(e,s),Object.defineProperty(e,"prototype",{writable:!1}),l}(n(199).PlayerBehavior);u.handle="bandwidthTest";const l=u},(t,e,n)=>{n.d(e,{PlayerBehavior:()=>o});var i=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.impl=e,this.embedElement=e.container,this.unbinds=[],this.eventListeners=new Map,this.namedUnbinds={}}var e,n,o;return e=t,(n=[{key:"addNamedUnbind",value:function(t,e){this.namedUnbinds[t]&&this.namedUnbinds[t](),this.namedUnbinds[t]=e}},{key:"removeNamedUnbind",value:function(t){this.namedUnbinds[t]&&(this.namedUnbinds[t](),delete this.namedUnbinds[t])}},{key:"destroy",value:function(){var t=this;for(var e in this.unbinds instanceof Array&&this.unbinds.map((function(t){return t()})),this.eventListeners instanceof Map&&(this.eventListeners.forEach((function(e,n){t.embedElement.removeEventListener(n,e)})),this.eventListeners.clear()),this.namedUnbinds)i(this.namedUnbinds,e)&&this.namedUnbinds[e].map((function(t){return t()}));this.unbinds=[],this.namedUnbinds={},this.impl=null,this._destroyed=!0}}])&&r(e.prototype,n),o&&r(e,o),Object.defineProperty(e,"prototype",{writable:!1}),t}()},(t,e,n)=>{n.d(e,{default:()=>P});var i=n(3),r=n(87),o=n(32),a=n(5),s=n(74),u=n(40),l=n(48),c=n(30),d=n(6),h=n(33),f=n(42);function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_(i.key),i)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var r=g(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return m(t)}(this,n)}}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}function b(t,e,n){return(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(w,t);var e,n,g,_=v(w);function w(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,w);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return b(m(t=_.call.apply(_,[this].concat(n))),"onFocusIn",(function(){var e=!(0,u.isMouseDownRecently)();t.impl&&t.impl.isKeyboardFocused(e)})),b(m(t),"updateBackgroundColor",(function(){var e=t.impl;if(e.videoWrapper&&!e._replacing&&e.embedded()){var n=e.ui&&e.ui.isChromeless()&&("non-user-event"===e.lastPlayInfo().source||e._attrs.autoplay)&&e.isMuted();if(!(!0===e._attrs.transparentLetterbox)&&!n||e.inFullscreen()){var i=e._attrs.playerBackgroundColor||e._opts.backgroundColor||"#000";e.videoWrapper.style.backgroundColor=i||"#000"}else e.videoWrapper.style.backgroundColor="transparent"}})),b(m(t),"updateStartPosition",(function(){var e,n=t.impl,i="beforeplay"===n.state(),r="user-event"===(null===(e=n.lastPlayInfo())||void 0===e?void 0:e.source),o=n.shouldResume()&&r;if(i)if(!n.engine||"HlsVideo"!==n.engine.name&&"NativeHlsVideo"!==n.engine.name){if(o){var a=(0,s.getLastTime)(n.hashedId());n.time(a,{lazy:!0})}}else if(o){var u=(0,s.getLastTime)(n.hashedId());n.engine.updateStartPosition(u)}else n.engine.updateStartPosition(-1)})),t}return e=w,(n=[{key:"init",value:function(){this.unbinds.push(this.impl.on("playerbackgroundcolorchange",this.updateBackgroundColor),this.impl.publicApi.on("transitiondone",this.updateBackgroundColor),this.impl.on("playpending",this.updateStartPosition))}},{key:"embed",value:function(t){var e=this,n=this.impl,i=n&&n._opts.oldImpl;n.oldImpl=i||t,i&&i!==t?(this.impl.on("engine-initialized",(function(){i.rebuild(),i.fullRebuild()})),n.oldImpl=i):n.oldImpl=t,n.resetStateVariables(),n.videoWrapper=(0,a.elemFromObject)({class:"w-video-wrapper w-css-reset",style:{clip:"rect(0,0,0,0)",height:"100%",position:"absolute",top:0,width:"100%"}}),this.updateBackgroundColor(),(0,a.elemPrepend)(n.implContainer(),n.videoWrapper),n.uiContainer||(n.uiContainer=(0,a.elemFromObject)({class:"w-ui-container",style:{height:"100%",pointerEvents:n._inNativeMode()?"none":"",left:0,position:"absolute",top:0,width:"100%"}}),(0,a.elemAppend)(n.implContainer(),n.uiContainer)),n.uiContainer.addEventListener("focusin",this.onFocusIn),n.up((function(){e._preloadPreference=e.preloadValue(),n._replacing&&(e.initializeEngine(),n.info("embedded"),n.embedded(!0)),n.renderUI().then((function(){try{n.setupBindings()}catch(t){setTimeout((function(){throw t}),0)}(0,c.doTimeout)("".concat(n.uuid,".finish_embedding"),(function(){n.info("embedded"),n.embedded(!0),(0,a.pageLoaded)((function(){e.initializeEngine()}))}),0)}))})),n.down()&&n.embedded(!0)}},{key:"preloadValue",value:function(){var t,e,n=this.impl;if(t=n._attrs.autoplay&&!n.publicApi.popover&&n.looksUp()?"auto":null!=n._attrs.preload?n._attrs.preload:n._mediaData.preloadPreference,n._mediaData.spherical)if(n._opts._inIframe)e="none";else{var i=[],o=(0,r.wData)("video");for(var a in o)i.push(o[a]);e=i.length>1?"none":"auto"}else if("metadata"===t)e="metadata";else if(!0===t||"auto"===t)e="auto";else if(!1===t||"none"===t)e="none";else{var s=[],u=(0,r.wData)("video");for(var c in u)s.push(u[c]);e=n._opts._inIframe&&top!==parent||n._opts._inIframe&&(0,l.parentFramesLength)()>25||n._opts._inIframe&&(!window._allIframes||window._allIframes.length>2)||!n._opts._inIframe&&s.length>2||n._mediaData.stats&&n._mediaData.stats.loadCount>5e3&&n._mediaData.stats.uniquePlayCount/n._mediaData.stats.uniqueLoadCount<.1?"none":"metadata"}return e}},{key:"rebuild",value:function(){var t=this.impl;return t.info("rebuild"),t.trigger("beforerebuild"),t.embedded((function(){t.embedded(!1),t.ready(!1),t.removeBehaviors(),t.enginePromise=null,t.engine=null,t._oldVideoElem=t.elem(),t._whenVideoElementInDom=null,t.stopStreaming(),(0,a.elemRemove)(t.videoWrapper),t.videoWrapper=null,t.ui=null,t._lastPlayType=null,t._lastPlaySource=null,t._lastPlayIssuedAt=null,t._lastPlayResolvedAt=null,t._lastPlayRejectedAt=null,t.wipeOutstandingAsyncFunctions(),t.setupBehaviors(),t.embed(),t.trigger("afterrebuild")})),t}},{key:"checkForReady",value:function(){var t=this.impl;t._checkDownState(),t.up((function(){t.embedded((function(){t.onDimensionChangeSafe(),t.engine&&t.engine.onReady().then((function(){t.onDimensionChangeSafe(),t.ready(!0)}))}))}))}},{key:"initializeEngine",value:function(){var t=this,e=this.impl;if(e){if(e.enginePromise)return e.enginePromise;var n=e.bestEngine();return e.enginePromise=(0,f.dynamicImport)("assets/external/".concat(n)).then((function(n){var i=n.default;if(e.grid)try{e._mediaData=(0,o.mediaDataTransforms)(e._mediaData,e._opts),e.engine=new i(e.videoWrapper,e._mediaData,t.engineAttributes(),e.oldImpl&&e.oldImpl.engine),e.oldImpl=null,e.trigger("engine-initialized"),e.setupBindings(),t.checkForReady()}catch(t){e.error(t)}}))}}},{key:"engineAttributes",value:function(){var t,e,n,r=this.impl;if(r._opts.videoQuality?t=r._opts.videoQuality:(r._opts.videoFoam||r.videoWidth()>=720)&&(t="md"),r._bandwidthTest().isFresh()&&(e=r._bandwidthTest().savedResult().clientKbps),r._mediaData.secondaryMediaData)n=(0,d.clone)(r._mediaData.secondaryMediaData);else if(r._opts.secondaryVideoUrl){var o=(0,d.clone)(r._mediaData),a=r.originalAsset();o.assets=[{container:"mp4",ext:"mp4",codec:"x264",public:!0,url:r._opts.secondaryVideoUrl,height:a.height,width:a.width,type:"mp4_video",display_name:"".concat((0,h.numericSizeSnapped)(a.width,a.height),"p"),status:h.READY,created_at:(new Date).getTime()}],n=o}var u,l=r._opts.layoutTiming;r._opts.twoStroke&&r._opts.twoStroke.layoutTiming&&(l=r._opts.twoStroke.layoutTiming),(r._startPosition||r.shouldResume())&&(u=r._startPosition||(0,s.getLastTime)(r.hashedId())),r.isResumableEnabled()&&((0,s.atOrNearBeginning)(r.hashedId())?i.default.Metrics.videoCount(r,"player/resumable-close-to-beginning"):(0,s.atOrNearEnd)(r.hashedId(),r.duration())&&i.default.Metrics.videoCount(r,"player/resumable-close-to-end"));var c=0===r._opts.trimStart&&-1===r._opts.trimEnd;return{backgroundColor:!0===r._attrs.transparentLetterbox?"transparent":r.playerBackgroundColor(),clipForPoster:r._opts.clipForPoster,clipFrom:r._opts.clipFrom,clipTo:r._opts.clipTo,controls:r._inNativeMode(),cuts:r._opts.cuts,deliveryCdn:r._opts.deliveryCdn,duration:r._mediaData.duration,embedHost:r._opts.embedHost,fitStrategy:r._opts.fitStrategy,hashedId:r.hashedId(),height:r.videoHeight(),hls:r._opts.hls,layoutTiming:l,liveMedia:r.isLiveMedia(),loop:"loop"===r._attrs.endVideoBehavior,muted:r._muted,password:r._opts.password,playsinline:!0,preload:this._preloadPreference,qualityMax:r._attrs.qualityMax,qualityMin:r._attrs.qualityMin,savedBandwidth:e,secondaryMediaData:n,silentAutoplay:r._attrs.silentAutoplay,startPosition:u,trimEnd:c?void 0:r._opts.trimEnd,trimStart:c?void 0:r._opts.trimStart,videoQuality:t,volume:r._attrs.volume,width:r.videoWidth()}}}])&&p(e.prototype,n),g&&p(e,g),Object.defineProperty(e,"prototype",{writable:!1}),w}(n(199).PlayerBehavior);w.handle="embed";const P=w},(t,e,n)=>{n.d(e,{default:()=>_});var i=n(3),r=n(11),o=n(13),a=n(30),s=n(20),u=n(5),l=n(116),c=n(199);function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var r=y(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}(this,n)}}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function v(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var g=(0,r.cachedDetect)(),b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(y,t);var e,n,r,c=f(y);function y(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return v(p(t=c.call.apply(c,[this].concat(n))),"onEnterFullscreen",(function(e){var n=t.impl;e!==n.chrome&&"WISTIA-PLAYER"!==e.tagName||(n.info("_onEnterFullscreen"),n.trigger("beforeenterfullscreen"),t._hasBeenInFullscreen=!0,t._inFullscreen=!0,n.notFullscreen(!1),t.injectFullscreenStyles(),n.behaviors.embed.updateBackgroundColor(),n.width((0,u.elemWidth)(window),{fullscreen:!0,dontChangeContainer:!0}),n.height((0,u.elemHeight)(window),{fullscreen:!0,dontChangeContainer:!0}),n.engine&&n.engine.onEnterFullscreen(),n.trigger("enterfullscreen"),n.embedElement.dispatchEvent(new CustomEvent("enterfullscreen")),n.trigger("enter-fullscreen"))})),v(p(t),"onEnterWebkitFullscreen",(function(e){var n=t.impl;t._hasBeenInFullscreen=!0,t._inFullscreen=!0,t._nativeFullscreen=!0,n.notFullscreen(!1),n.trigger("enterfullscreen"),n.embedElement.dispatchEvent(new CustomEvent("enterfullscreen")),n.trigger("enter-fullscreen")})),v(p(t),"onCancelFullscreen",(function(){var e=t.impl;t._nativeFullscreen?(t._nativeFullscreen=!1,t._inFullscreen=!1,e.notFullscreen(!0),e.trigger("cancelfullscreen"),e.embedElement.dispatchEvent(new CustomEvent("cancelfullscreen")),e.trigger("cancel-fullscreen")):t._inFullscreen&&(e.info("onCancelFullscreen"),t._inFullscreen=!1,e.notFullscreen(!0),t.removeFullscreenStyles(),e.behaviors.embed.updateBackgroundColor(),e.width(t._widthBeforeFullscreen),e.height(t._heightBeforeFullscreen),e.fit(),e.engine&&e.engine.onLeaveFullscreen(),e.trigger("cancelfullscreen"),e.embedElement.dispatchEvent(new CustomEvent("cancelfullscreen")),e.trigger("cancel-fullscreen"))})),v(p(t),"onOrientationChange",(function(){if(t.getIsFullscreenOnRotateToLandscape()){var e=t.impl;if(t.fullscreenResizeToWindowFlurry(),-90===window.orientation||90===window.orientation){if("playing"!==e.state()||e.engine.isMuted())return;e.requestFullscreen()}else e.cancelFullscreen()}})),v(p(t),"fullscreenResizeToWindowFlurry",(function(){var e=t.impl;t.fullscreenResizeToWindow(),[0,50,100,200,300,500,1e3].forEach((function(n){(0,a.doTimeout)("".concat(e.uuid,".fs-resize-flurry-").concat(n),t.fullscreenResizeToWindow,n)}))})),v(p(t),"fullscreenResizeToWindow",(function(){var e=t.impl;if(e.inFullscreen()&&!t._nativeFullscreen){e.debug("fullscreenResizeToWindow");var n=e.width(),i=e.height(),r=(0,u.elemWidth)(window),o=(0,u.elemHeight)(window);n!==r&&e.width(r,{fullscreen:!0,dontChangeContainer:!0}),i!==o&&e.height(o,{fullscreen:!0,dontChangeContainer:!0})}})),v(p(t),"maybeAutoFullscreen",(function(){t.impl.isAudio()||t.impl._inNativeMode()&&!1===t.impl._opts.playsinline&&(0,u.inUserEventContext)()&&!t._hasAutoFullscreened&&(t._hasAutoFullscreened=!0,t.requestFullscreen())})),t}return e=y,(n=[{key:"init",value:function(){var t=this,e=this.impl;this.unbinds.push((0,o.globalOn)("enterfullscreen",this.onEnterFullscreen),(0,o.globalOn)("cancelfullscreen",this.onCancelFullscreen),(0,u.elemBind)(window,"resize",(function(){t.fullscreenResizeToWindowFlurry()})),e.on("playpending",this.maybeAutoFullscreen)),e.whenVideoElementInDom().then((function(){e.engine.bind("webkitbeginfullscreen",t.onEnterWebkitFullscreen),e.engine.bind("webkitendfullscreen",t.onCancelFullscreen)})),this.getIsFullscreenOnRotateToLandscape()&&(window.screen.orientation?this.unbinds.push((0,u.elemBind)(window.screen.orientation,"change",this.onOrientationChange)):this.unbinds.push((0,u.elemBind)(window,"orientationchange",this.onOrientationChange)))}},{key:"injectFullscreenStyles",value:function(){if(!this._fullscreenStyle){document.body.id||(this._docBodyId=(0,s.seqId)("wistia_","_tmp_body_id"),document.body.setAttribute("id",this._docBodyId));var t="\n #".concat(document.body.id,", #").concat(document.body.id," :full-screen-ancestor {\n animation-name: none;\n -webkit-animation-name: none;\n transform: none;\n -webkit-transform: none;\n }\n ");["webkit","moz","ms","o"].forEach((function(e){t+="\n #".concat(document.body.id," :-").concat(e,"-full-screen-ancestor {\n animation-name: none;\n -webkit-animation-name: none;\n transform: none;\n -webkit-transform: none;\n }\n \n\n ")})),this._fullscreenStyle=(0,u.addInlineCss)(this.impl.wrapperElem,t)}}},{key:"removeFullscreenStyles",value:function(){this._fullscreenStyle&&(this._docBodyId&&document.body.id===this._docBodyId&&(document.body.removeAttribute("id"),this._docBodyId=null),(0,u.elemRemove)(this._fullscreenStyle),this._fullscreenStyle=null)}},{key:"requestFullscreen",value:function(){if(!this.impl._opts._inIframe||!/two_stroke/i.test(this.impl.bestEngine())||!g.iphone&&!g.ipad){var t,e=this.impl;if(!e.inFullscreen())if(e.info("requestFullscreen"),this._widthBeforeFullscreen=e.width(),this._heightBeforeFullscreen=e.height(),e.width(e.width()),e._inNativeMode())null===(t=e.engine)||void 0===t||t.requestFullscreen();else if(g.fullscreenEnabled)(0,u.elemRequestFullscreen)(e.chrome);else if(this.getAllowFakeFullscreen())this.enterFakeFullscreen();else if(e.engine){var n;"beforeplay"===e.state()&&(g.iphone||g.ipad)&&e.engine.play().then((function(){return e.engine.pause()})),null===(n=e.engine)||void 0===n||n.requestFullscreen()}}}},{key:"cancelFullscreen",value:function(){var t=this.impl;t.inFullscreen()&&(t.info("cancelFullscreen"),t._inNativeMode()?t.engine.cancelFullscreen():g.fullscreenEnabled?(0,u.elemCancelFullscreen)():this.getAllowFakeFullscreen()?this.cancelFakeFullscreen():t.engine.cancelFullscreen())}},{key:"getAllowFakeFullscreen",value:function(){return!this.impl._opts._inIframe&&g.ios.version>=10&&(this.impl._opts.fakeFullscreen||/two_stroke/i.test(this.impl.bestEngine()))}},{key:"getIsFullscreenOnRotateToLandscape",value:function(){return!(!g.touchScreen||g.ios.version>0&&g.ios.version<10||this.impl._attrs.disableFullscreenOnRotateToLandscape)}},{key:"enterFakeFullscreen",value:function(){var t=this.impl;this._widthBeforeFullscreen=t.width(),this._heightBeforeFullscreen=t.height(),this._inFakeFullscreen=!0,this._chromeParent=t.chrome.parentNode,document.body.appendChild(t.chrome),this._leftOffsetBeforeFullscreen=(0,l.scrollLeft)(),this.onEnterFullscreen(t.chrome),this.setupFakeFullscreenBindings(),(0,u.elemStyle)(t.chrome,{position:"fixed",top:0,left:0,zIndex:2147483647}),(0,l.scrollLeft)(0),t.engine&&t.engine.onEnterFullscreen()}},{key:"setupFakeFullscreenBindings",value:function(){var t=this,e=this.impl;i.default.eventLoop.add("".concat(e.uuid,".fakefullscreen"),100,(function(){t.fullscreenResizeToWindow()})),this._preventDefaultForTouchMove||(this._preventDefaultForTouchMove=function(t){t.preventDefault()}),(0,u.elemRebind)(e.uiContainer,"touchmove",this._preventDefaultForTouchMove)}},{key:"cancelFakeFullscreen",value:function(){var t=this.impl;this._inFakeFullscreen=!1,this.onCancelFullscreen(t.chrome),this._chromeParent&&this._chromeParent.appendChild(t.chrome),t.chrome.style.position="",(0,l.scrollLeft)(this._leftOffsetBeforeFullscreen),i.default.eventLoop.remove("".concat(t.uuid,".fakefullscreen")),t.engine&&t.engine.onLeaveFullscreen(),null!=this._preventDefaultForTouchMove&&(0,u.elemUnbind)(t.uiContainer,"touchmove",this._preventDefaultForTouchMove)}},{key:"transferStateFrom",value:function(t){var e=this,n=t.behaviors&&t.behaviors.fullscreen;if(n){var i=function(){if(function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)}(n,r)){var t=n[r];"_"===r[0]&&"function"!=typeof t&&(e[r]=t)}if(n._inFullscreen){var i=e.impl;i.notFullscreen((function(){i.width(e._widthBeforeFullscreen),i.height(e._heightBeforeFullscreen)}))}};for(var r in n)i()}}},{key:"inFullscreen",value:function(){return!!this._inFullscreen}},{key:"inNativeFullscreen",value:function(){return!!this._nativeFullscreen}}])&&d(e.prototype,n),r&&d(e,r),Object.defineProperty(e,"prototype",{writable:!1}),y}(c.PlayerBehavior);b.handle="fullscreen",i.default._onFullscreenChange||(i.default._onFullscreenChange=function(){(0,u.fullscreenElement)()?(0,o.globalTrigger)("enterfullscreen",(0,u.fullscreenElement)()):(0,o.globalTrigger)("cancelfullscreen")},i.default._initializers.initFullscreenTriggers=function(){(0,u.elemRebind)(document,"mozfullscreenchange",i.default._onFullscreenChange),(0,u.elemRebind)(document,"webkitfullscreenchange",i.default._onFullscreenChange),(0,u.elemRebind)(document,"MSFullscreenChange",i.default._onFullscreenChange),(0,u.elemRebind)(document,"fullscreenchange",i.default._onFullscreenChange)},i.default._destructors.destroyFullscreenTriggers=function(){(0,u.elemUnbind)(document,"mozfullscreenchange",i.default._onFullscreenChange),(0,u.elemUnbind)(document,"webkitfullscreenchange",i.default._onFullscreenChange),(0,u.elemUnbind)(document,"MSFullscreenChange",i.default._onFullscreenChange),(0,u.elemUnbind)(document,"fullscreenchange",i.default._onFullscreenChange)});const _=b},(t,e,n)=>{n.d(e,{default:()=>h});var i=n(3);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=u(t);if(e){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}(this,n)}}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(d,t);var e,n,u,c=a(d);function d(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return l(s(t=c.call.apply(c,[this].concat(n))),"onPlay",(function(){if(null==t._startedLoadingAt)return t._startedLoadingAt=Date.now(),t.impl.unbind})),l(s(t),"onProgress",(function(){var e=t.impl;if(e.engine.anyBuffered())return t._firstByteReceivedAt=Date.now(),null!=t._startedLoadingAt&&(t._timeToFirstByte=t._firstByteReceivedAt-t._startedLoadingAt),e.unbind})),l(s(t),"onWaiting",(function(e){var n=t.impl,r=n.engine.anyBuffered();!t._noDataFor5Seconds&&e>=5&&!r&&(t._noDataFor5Seconds=!0,i.default.Metrics.videoCount(n,"player/no-data/5-seconds")),!t._noDataFor10Seconds&&e>=10&&!r&&(t._noDataFor10Seconds=!0,i.default.Metrics.videoCount(n,"player/no-data/10-seconds")),!t._noDataFor15Seconds&&e>=15&&!r&&(t._noDataFor15Seconds=!0,i.default.Metrics.videoCount(n,"player/no-data/15-seconds"))})),l(s(t),"onClickedPlayBeforeReady",(function(){i.default.Metrics.videoCount(t.impl,"player/clicked-play-before-ready")})),t}return e=d,(n=[{key:"init",value:function(){var t=this;this.impl.whenVideoElementInDom().then((function(){return t.doInit()}))}},{key:"doInit",value:function(){var t=this.impl;t.engine&&t.engine.getPreload()&&(this._startedLoadingAt=Date.now()),this.unbinds.push(t.on("play",this.onPlay),t.on("progress",this.onProgress),t.on("waiting",this.onWaiting),t.on("clicked-play-before-ready",this.onClickedPlayBeforeReady))}}])&&r(e.prototype,n),u&&r(e,u),Object.defineProperty(e,"prototype",{writable:!1}),d}(n(199).PlayerBehavior);d.handle="metrics";const h=d},(t,e,n)=>{n.d(e,{default:()=>p});var i=n(3),r=n(11),o=n(199);function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,d(i.key),i)}}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var h=(0,r.cachedDetect)(),f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(c,t);var e,n,r,o=u(c);function c(){var t,e,n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c);for(var a=arguments.length,s=new Array(a),u=0;u<a;u++)s[u]=arguments[u];return t=o.call.apply(o,[this].concat(s)),e=l(t),r=function(){var e=t.impl,n=e.getMediaElement();if(n&&n.error&&3===n.error.code&&/native_hls_video/.test(t.impl.bestEngine())){var r=e.lastPlayInfo().isPending;e.commandQueueOpen.clearSynchronized();var o=r?"playing":"not-playing";i.default.Metrics.videoCount(e,"player/rebuild-non-hls-on-error/".concat(o)),t.unbinds.push(e.on("play",(function(){return i.default.Metrics.videoCount(e,"player/rebuild-non-hls-on-error/".concat(o)),e.unbind}))),e.publicApi.fullRebuild({hls:!1,autoPlay:r&&!(h.ios.version&&h.ios.version<10.1)})}},(n=d(n="onError"))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,t}return e=c,(n=[{key:"init",value:function(){this.unbinds.push(this.impl.on("error",this.onError))}}])&&a(e.prototype,n),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),c}(o.PlayerBehavior);f.handle="playbackErrorHandling";const p=f},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=a(t);if(e){var r=a(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,{ProblemMonitoringBehavior:()=>s});var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}(u,t);var e,n,a,s=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return e=u,(n=[{key:"init",value:function(){var t=this;this.unbinds=[this.impl.on("waiting",(function(e){e>=5&&t.impl.trigger("problem",{type:"long-buffer",data:{secondsWaiting:e}})})),this.impl.on("error",(function(e){var n=t.impl.getMediaElement().error;t.impl.trigger("problem",{type:"video-error",errorCode:n&&n.code||n,errorMessage:n&&n.message})}))]}}])&&i(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(199).PlayerBehavior);s.handle="problemMonitoring"},(t,e,n)=>{n.d(e,{default:()=>p});var i=n(3),r=n(52);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,h(i.key),i)}}function a(){return a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},a.apply(this,arguments)}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function u(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var r=c(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return l(t)}(this,n)}}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function d(t,e,n){return(e=h(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(p,t);var e,n,h,f=u(p);function p(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return d(l(t=f.call.apply(f,[this].concat(n))),"maybeFireStateAndTimeEvents",(function(){t.fireStateChangedEventsIfChanged(),t.fireTimeChangedEventsIfChanged()})),d(l(t),"onLookChange",(function(e){t.impl.trigger("lookchange",e)})),d(l(t),"onPause",(function(){t.maybeFireStateAndTimeEvents()})),d(l(t),"onPlaying",(function(){t._beforePlay=!1,t._ended=!1,t.maybeFireStateAndTimeEvents()})),d(l(t),"onEnded",(function(){t.maybeFireStateAndTimeEvents()})),d(l(t),"onAudioStreamChanged",(function(){t.impl.trigger("audiostreamchange")})),d(l(t),"onVolumeChange",(function(){var e=t.impl.isMuted();t.impl.trigger("volumechange",t.impl.volume(),e),t.impl.embedElement.dispatchEvent(new CustomEvent("volumechange",{detail:{volume:t.impl.volume(),muted:e}})),e!==t._isMuted&&(t._isMuted=e,t.impl.embedElement.dispatchEvent(new CustomEvent("mutechange",{detail:{isMuted:e}})),t.impl.trigger("mutechange",e))})),d(l(t),"onRateChange",(function(){t.impl.trigger("playbackratechange",t.impl.playbackRate()),t.impl.embedElement.dispatchEvent(new CustomEvent("ratechange",{detail:{playbackRate:t.impl.playbackRate()}})),r.globalEventLoop.interval("".concat(t.impl.uuid,".events"),t.impl._eventLoopDuration)})),d(l(t),"onProgress",(function(e){t.impl.trigger("progress",e)})),d(l(t),"onError",(function(e){t.impl.trigger("error",e)})),d(l(t),"onHlsLevelSwitched",(function(e){t.impl.trigger("hlslevelswitched",e)})),d(l(t),"onHlsFatalErrorRebuild",(function(e){t.impl.fullRebuild({engine:"engines/manual_quality_video.js"})})),d(l(t),"onSeeking",(function(e){t.impl.trigger("seeking",e),t.impl.embedElement.dispatchEvent(new CustomEvent("seeking"))})),d(l(t),"onSeeked",(function(e){t.impl.trigger("seeked",e),t.impl.embedElement.dispatchEvent(new CustomEvent("seeked"))})),d(l(t),"onCustomWaiting",(function(e){t._waiting=e,t.impl.trigger("waiting",e)})),d(l(t),"onCustomDoneWaiting",(function(e){t._waiting=-1,t.impl.trigger("done-waiting",e)})),d(l(t),"fireTimeChangedEventsIfChanged",(function(){if(!t._destroyed){var e=t.impl,n=!1,i=Date.now(),r=e.time(),o=r!==t._lastTimePosition,a=r-t._lastTimePosition,s=Math.floor(r),u=Math.floor(t._lastTimePosition),l=(i-t._lastClockTime)/1e3,c=e.playbackRate(),d="beforeplay"===e.state()&&r<.3,h=Math.abs(Math.floor(r)-Math.floor(t._lastTimePosition))>1;if(o&&r>=0&&!d){if(t._ended=!1,e.trigger("timechange",r),e.embedElement.dispatchEvent(new CustomEvent("timechange",{detail:{timePosition:r}})),s!==u){if(Math.abs(a/c-l)<.05&&h){n=!0;for(var f=u+1;f<s;f++)e.trigger("secondchange",f),e.embedElement.dispatchEvent(new CustomEvent("secondchange",{detail:{second:f}}))}e.trigger("secondchange",s),e.embedElement.dispatchEvent(new CustomEvent("secondchange",{detail:{second:s}}))}!t._beforePlay&&!t._ended&&!n&&h&&Math.abs(r-t._lastTimePosition)>e._attrs.seekThreshold&&e.trigger("seek",r,t._lastTimePosition),t._lastTimePosition=r}return t._lastClockTime=i,Promise.resolve()}})),t}return e=p,(n=[{key:"init",value:function(){var t=this;this.resetState(),this.impl.whenVideoElementInDom().then((function(){return t.doInit()}))}},{key:"doInit",value:function(){var t=this,e=this.impl,n=e.engine;this.unbinds.push(n.bind("lookchange",this.onLookChange),n.bind("pause",this.onPause),n.bind("playing",this.onPlaying),n.bind("ended",this.onEnded),n.bind("volumechange",this.onVolumeChange),n.bind("audiostreamchange",this.onAudioStreamChanged),n.bind("ratechange",this.onRateChange),n.bind("progress",this.onProgress),n.bind("custom-waiting",this.onCustomWaiting),n.bind("custom-done-waiting",this.onCustomDoneWaiting),n.bind("error",this.onError),n.bind("hlslevelswitched",this.onHlsLevelSwitched),n.bind("fatalerrorrebuild",this.onHlsFatalErrorRebuild),n.bind("seeking",this.onSeeking),n.bind("seeked",this.onSeeked)),r.globalEventLoop.add("".concat(e.uuid,".events"),e._eventLoopDuration,(function(){if(!e.looksDown()){t.fireStateChangedEventsIfChanged(),t.fireTimeChangedEventsIfChanged();var n=e.getVideoQuality();n!==t._lastQuality&&(e.trigger("qualitychange",n),t._lastQuality=n)}}))}},{key:"destroy",value:function(){r.globalEventLoop.remove("".concat(this.impl.uuid,".events")),a(c(p.prototype),"destroy",this).call(this)}},{key:"resetState",value:function(){this._waiting=-1,this._lastTimePosition=-1,this._beforePlay=!0,this._ended=!1,this._isMuted=this.impl.isMuted(),this._hasPlayed=!1}},{key:"fireStateChangedEventsIfChanged",value:function(){if(!this._destroyed){var t=this.impl,e=t.state();e!==this._lastState&&(t.trigger("statechange",e,this._lastState),"playing"===e&&(this._hasPlayed=!0,this._ended=!1,t.trigger("play",t.lastPlayInfo()),t.embedElement.dispatchEvent(new CustomEvent("play",{detail:{lastPlayInfo:t.lastPlayInfo()}}))),"paused"===e&&(t.trigger("pause",t.lastPauseInfo()),t.embedElement.dispatchEvent(new CustomEvent("pause",{detail:{lastPauseInfo:t.lastPauseInfo()}}))),"ended"===e&&(this._ended=!0,t.trigger("end"),t.embedElement.dispatchEvent(new Event("end")),this.triggerAfterendTimeout()),"ended"!==e&&this.mozillaAtEnd()&&(t.engine.pause(),this._ended=!0,t.trigger("end"),t.embedElement.dispatchEvent(new Event("end")),this.triggerAfterendTimeout()),this._lastState=e)}}},{key:"mozillaAtEnd",value:function(){return!this._ended&&i.default.detect.browser.mozilla&&i.default.detect.browser.version<45&&!i.default.detect.edge&&i.default.detect.windows&&this._waiting>=.6&&Math.abs(this.impl.time()-this.impl.duration())<2}},{key:"triggerAfterendTimeout",value:function(){var t=this;setTimeout((function(){t.impl.trigger("afterend")}),0)}}])&&o(e.prototype,n),h&&o(e,h),Object.defineProperty(e,"prototype",{writable:!1}),p}(n(199).PlayerBehavior);f.handle="relayEvents";const p=f},(t,e,n)=>{n.d(e,{default:()=>h});var i=n(74);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,c(i.key),i)}}function o(t,e){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},o(t,e)}function a(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=u(t);if(e){var r=u(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return s(t)}(this,n)}}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function l(t,e,n){return(e=c(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&o(t,e)}(d,t);var e,n,u,c=a(d);function d(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return l(s(t=c.call.apply(c,[this].concat(n))),"onEnd",(function(){(0,i.setLastTime)(t._hashedId,t.impl.time()),t.destroyResumableKey()})),l(s(t),"onSecondChange",(function(){t._hasPlayed&&((0,i.setLastTime)(t._hashedId,t.impl.time()),t.impl.shouldResume()||t.destroyResumableKey(),null===t._resumableKey&&t.setResumableKeyToEventKey())})),t}return e=d,(n=[{key:"init",value:function(){this._hasPlayed=!1,this._hashedId=this.impl.hashedId(),this._unbinds=[],this._resumableKey=(0,i.getResumableKeyForVideo)(this._hashedId)||null,this.setupBindings(),!this.impl.shouldResume()&&this._resumableKey&&this.destroyResumableKey()}},{key:"destroy",value:function(){this._unbinds.forEach((function(t){"function"==typeof t&&t()})),this._unbinds=[]}},{key:"destroyResumableKey",value:function(){(0,i.setResumableKeyForVideo)(this._hashedId,null),this._resumableKey=null}},{key:"lastTime",value:function(){return(0,i.getLastTime)(this._hashedId)}},{key:"resumableKey",value:function(){return this._resumableKey}},{key:"setupBindings",value:function(){var t=this;this._unbinds.push(this.impl.on("play",(function(){return t._hasPlayed=!0})),this.impl.on("end",this.onEnd),this.impl.on("secondchange",this.onSecondChange));var e=this.impl.on("eventkeychange",(function(){t.initResumableKey(),e()}))}},{key:"setResumableKeyToEventKey",value:function(){var t=this.impl.eventKey();t&&(this._resumableKey=t,(0,i.setResumableKeyForVideo)(this._hashedId,this._resumableKey))}},{key:"initResumableKey",value:function(){this._resumableKey||this.setResumableKeyToEventKey()}}])&&r(e.prototype,n),u&&r(e,u),Object.defineProperty(e,"prototype",{writable:!1}),d}(n(199).PlayerBehavior);d.handle="resumable";const h=d},(t,e,n)=>{n.d(e,{default:()=>F});var i=n(3),r=n(59),o=n(20),a=n(2),s=n(40),u=n(160),l=n(11),c=n(30),d=n(6),h=n(5),f=n(41),p=n(199),y=n(208),v=n(211),m=n(212),g=function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(t),e)};function b(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function w(){return w=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},w.apply(this,arguments)}function P(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,A(i.key),i)}}function O(){return O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=T(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},O.apply(this,arguments)}function k(t,e){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},k(t,e)}function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=T(t);if(e){var r=T(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return E(t)}(this,n)}}function E(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}function C(t,e,n){return(e=A(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function A(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var j=(0,l.cachedDetect)(),x=function(t){return"control-bar-left"===t||"control-bar-right"===t||"ellipsis"===t||"playbar"==t},R=["above-control-bar","background","control-bar-left","control-bar-right","ellipsis","foreground","left-flyout","playbar","right-flyout"].reduce((function(t,e){return t[e]=!0,t}),{}),B=function(t){return t.pcfButtonWidth?t.pcfButtonWidth():null!=t.constructor.width?t.constructor.width:40},D=function(t){return t.pcfButtonHeight?t.pcfButtonHeight():null!=t.constructor.height?t.constructor.height:34},M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&k(t,e)}(_,t);var e,n,l,p=S(_);function _(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,_);for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return C(E(t=p.call.apply(p,[this].concat(n))),"onBlurButton",(function(e,n){var i=n.constructor.type;x(i)&&(n.__isFocused=!1,t.render())})),C(E(t),"onFocusButton",(function(e,n){var i=n.constructor.type;x(i)&&(n.__isFocused=!0,t.render())})),C(E(t),"onFocusComplete",(function(){t.impl.trigger("focuscomplete")})),C(E(t),"onFocusIn",(function(e){if(t.isMostRecentFocusViaMouse=(0,s.isMouseDownRecently)(),!(0,s.isMouseDownRecently)()&&!t._isMouseDownFromTouch||e.srcElement!==t.layoutRef){t.updateFocusedControl(e.target),t.impl.enterInputContext("player-focus");var n=t.isKeyboardFocused;t.isKeyboardFocused=!((0,s.isMouseDownRecently)()||t._isMouseDownFromTouch),!n&&t.isKeyboardFocused&&(t.impl.trigger("focusin",e),t.maybeToggleControls())}else e.srcElement.blur()})),C(E(t),"onFocusOut",(function(e){t.updateFocusedControl(null),t.impl.exitInputContext("player-focus"),t.isKeyboardFocused?(0,c.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_blur"),(function(){var n;document.activeElement&&(0,h.elemIsInside)(document.activeElement,t.layoutRef)||(t.isKeyboardFocused=!1,null===(n=t.impl)||void 0===n||n.trigger("focusout",e),t.maybeToggleControls())}),1e3):(0,c.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_blur"),t.maybeToggleControls,50)})),C(E(t),"onKeyDown",(function(e){if(e.target===t.layoutRef){var n=e.keyCode;e.__handledAlready||32!==n&&13!==n||t.togglePlay()}})),C(E(t),"expandClickForSoundBtn",(function(e){var n=t.impl.controls.clickForSoundButton;if(n){var i=n.embedElement.querySelector(".click-for-sound-btn div");if(i)return i.style.maxWidth=e?"1000px":"0px"}})),C(E(t),"onMouseEnter",(function(e){t.impl.trigger("mouseenter",e),t.isHovering=!0,t.maybeToggleControls(),t.expandClickForSoundBtn(!0),t.impl.enterInputContext("player-mouseover")})),C(E(t),"onMouseLeave",(function(e){t.impl.trigger("mouseleave",e),t.isHovering=!1,t.maybeToggleControls(),t.expandClickForSoundBtn(!1),t.impl.exitInputContext("player-mouseover")})),C(E(t),"onMouseMove",(function(e){if(!j.touchScreen&&"beforeplay"!==t.impl.state()){var n=t.lastPageX!==e.pageX||t.lastPageY!==e.pageY;n&&(t.lastMovedMouseAt=Date.now(),t.lastPageX=e.pageX,t.lastPageY=e.pageY),n&&(t.maybeToggleControls(),t.shouldShowControls()&&(clearTimeout(t.maybeToggleControlsTimeout),(0,h.elemIsInside)(e.target,t.backgroundElem)?(t.lastMouseMoveWasFromBackground=!0,t.maybeToggleControlsTimeout=setTimeout(t.maybeToggleControls,t.showControlsTimeout())):(t.lastMouseMoveWasFromBackground=!1,t.maybeToggleControls())))}})),C(E(t),"onClick",(function(e){var n;t.lastMovedMouseAt=Date.now();var r=null===(n=i.default.PopoverV3)||void 0===n?void 0:n._activePopover,o=!(0,s.isMouseDownRecently)();r&&r.setShouldShowFocusOutline(o),t.lastPageX=e.pageX,t.lastPageY=e.pageY,(0,h.elemIsInside)(e.target,t.backgroundElem)?j.touchScreen?(t.isBeforePlayOrReset()?t.impl.play():t.isChromeless()?t.togglePlay():j.ios.version&&j.ios.version<10.1?(t.tappedToHide=!1,t.impl.play()):t._areControlsVisible?t.tappedToHide=!t.tappedToHide:t.tappedToHide=!1,t.maybeToggleControls(),setTimeout(t.maybeToggleControls,t.showControlsTimeout())):e.ctrlKey||(t.togglePlay(),t.impl.isKeyboardFocused(o),t.impl.focus()):"beforeplay"!==t.impl.state()&&(t.tappedToHide=!1,t.maybeToggleControls(),setTimeout(t.maybeToggleControls,t.showControlsTimeout()))})),C(E(t),"onDblClick",(function(e){if(!j.touchScreen&&(0,h.elemIsInside)(e.target,t.backgroundElem)){var n=t.impl;t.impl.isControlEnabled("fullscreenControl")&&(n.inFullscreen()?n.cancelFullscreen():n.requestFullscreen())}})),C(E(t),"onTouchStart",(function(e){e._touchStartFromControlDialog&&(t._touchStartFromControlDialog=!0),t._cancelSwipe=!t.impl.inFullscreen()})),C(E(t),"onSwipe",(function(e,n){if(!t._cancelSwipe){t._swipeCtx=n;var i=t.impl,r=i.height(),o=i.width(),a=n.absYDelta/r,s=n.absXDelta/o;if(n.timeDelta>175&&(a<.02||s>a))return t._cancelSwipe=!0,void(0,h.elemAnimate)(i.chrome,{transform:"translate(0, 0)"},{time:200,callback:function(){(0,h.elemAnimate)(i.chrome,{transform:""})}});if(a>=.02&&a>s){var u=n.yDelta/r;(0,h.elemStyle)(i.chrome,{transform:"translate(0, ".concat(-1*u*r,"px)")})}}})),C(E(t),"onPinch",(function(e,n){if(t.impl.isControlEnabled("fullscreenControl")){t._pinchCtx=n;var i,r,o=t.impl;t.impl.inFullscreen()?(i=.3,r=2.5):(i=.8,r=2.5),n.pinchScale<1?n.pinchScale*=1+.5*(1-n.pinchScale):n.pinchScale*=1+.25*(n.pinchScale-1);var a=Math.max(i,Math.min(r,n.pinchScale));(0,h.elemStyle)(o.chrome,{transform:"scale(".concat(a,")")})}})),C(E(t),"onTouchEnd",(function(){if(t.impl.isControlEnabled("fullscreenControl")){var e=t._pinchCtx,n=t._swipeCtx;t._pinchCtx=null,t._swipeCtx=null;var i=t.impl;if(e)!i.inFullscreen()&&e.pinchScale>1.5?((0,h.elemStyle)(i.chrome,{transform:""}),i.requestFullscreen()):i.inFullscreen()&&e.pinchScale<.7?((0,h.elemStyle)(i.chrome,{transform:""}),i.cancelFullscreen()):(0,h.elemAnimate)(i.chrome,{transform:"scale(1)"},{time:400,callback:function(){(0,h.elemStyle)(i.chrome,{transform:""})}});else if(n){var r=i.height(),o=i.width(),a=n.absYDelta/r,s=n.absXDelta/o,u=function(){(0,h.elemStyle)(i.chrome,{transform:""})};if(a>.16&&a>s&&Date.now()-n.startedAt<500&&!1===t._touchStartFromControlDialog){t._cancelSwipe=!0;var l=n.yDelta>0?-1:1;(0,h.elemAnimate)(i.chrome,{transform:"translate(0, ".concat(l*r,"px)")},{time:200,callback:function(){i.cancelFullscreen(),u()}})}else t._cancelSwipe=!0,(0,h.elemAnimate)(i.chrome,{transform:"translate(0, 0)"},{time:200,callback:u})}t._touchStartFromControlDialog=!1}})),C(E(t),"maybeToggleControls",(function(){if(!t._destroyed){var e=t._shouldShowControls;return t._shouldShowControls=t.shouldShowControls(),e!==t._shouldShowControls?t.lastRenderPromise.then((function(){return t.render()})):Promise.resolve()}})),C(E(t),"mountRefsFn",(function(e){(0,d.assign)(t.mountRefs,e)})),C(E(t),"backgroundRefFn",(function(e){t.backgroundElem=e})),t}return e=_,n=[{key:"init",value:function(){var t=this;this.mountPromises=[],this.controls={},this.controlsByType={},this.dialogs=[],this.mountRefs={},this.buttonMountRefs={},this.lastRenderPromise=Promise.resolve(),this.lastMouseMoveWasFromBackground=!0,this._touchStartFromControlDialog=!1,this._ariaLiveText="",this._previousBorderRadiusOn=!1,(0,f.getDefaultTranslation)().then((function(e){var n=t.impl.publicApi;n&&!n._wasPlayerLanguageSetViaApi&&t.impl.playerLanguage(e.code)})),this.domId||(this.domId=(0,o.seqId)("w-vulcan-v2-"))}},{key:"bigPlayButtonBorderRadius",value:function(){return this.impl._attrs.bigPlayButtonBorderRadius*this.scale()}},{key:"controlBarBorderRadius",value:function(){return this.impl._attrs.controlBarBorderRadius*this.scale()}},{key:"controlBarDistance",value:function(){return this.impl._attrs.controlBarDistance*this.scale()}},{key:"setupBindings",value:function(){var t=this;this._hasSetupBindings=!0;var e=this.impl;this.video=e.video,this.unbinds.push(e.on("play",(function(){t.doneWaitingForPlay=!0,null!=t.tappedToHide&&(t.tappedToHide=!1),t.render(),t.maybeToggleControls(),setTimeout(t.maybeToggleControls,t.showControlsTimeout())})),e.on("pause",(function(){j.touchScreen&&(null!=t.tappedToHide&&(t.tappedToHide=!1),t.maybeToggleControls())})),e.on("playrejected",(function(){t.doneWaitingForPlay=!0,t.showVideoWrapper(),t.render()})),e.on("enter-fullscreen",(function(){t._scale=null,t.cachedVideoHeight=null,t.cachedVideoWidth=null,t.render(),t.lastMouseMoveWasFromBackground=!0,t.maybeToggleControls(),(0,c.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_fullscreen"),t.maybeToggleControls,t.showControlsTimeout())})),e.on("cancel-fullscreen",(function(){t._scale=null,t.cachedVideoHeight=null,t.cachedVideoWidth=null,t.render(),t.lastMouseMoveWasFromBackground=!0,t.maybeToggleControls(),(0,c.doTimeout)("".concat(t.impl.uuid,".maybe_toggle_on_fullscreen"),t.maybeToggleControls,t.showControlsTimeout())})),e.on("up",(function(){t._scale=null,t.cachedVideoHeight=null,t.cachedVideoWidth=null,t.render()})),e.on("playerlanguagechange",(function(){t.render()})),e.on("popoverhide",(function(){t.render()})),e.on("popovershow",(function(){t.render()})),e.on("widthchange",(function(){t._scale=null,t._isShowingMore=null,t.cachedVideoWidth=null,t.render()})),e.on("heightchange",(function(){t._scale=null,t.cachedVideoHeight=null,t.render()})),i.default.on("controldefined",(function(){t.render()})),(0,h.elemBind)(document,"keyup",(function(n){(0,h.formInputIsFocused)()||"player-mouseover"===e.getInputContext()&&!1!==e._opts.hoverHotkeysEnabled&&32===n.keyCode&&t.togglePlay()})),(0,h.elemBind)(window,"mouseout",(function(e){var n=e.relatedTarget||e.toElement;n&&"HTML"!==n.nodeName||(t.isHovering=!1,t.impl.exitInputContext("player-mouseover"))})),(0,h.elemBind)(document,"touchend",(function(){(0,s.isMouseDown)()&&(t._isMouseDownFromTouch=!0),setTimeout((function(){t._isMouseDownFromTouch=!1,t.render()}),50)})),(0,h.elemBind)(window,"languagechange",(function(){(0,f.getDefaultTranslation)().then((function(e){var n=t.impl.publicApi,i=t.impl.playerLanguage().code!==e.code;n&&!n._wasPlayerLanguageSetViaApi&&i&&t.impl.playerLanguage(e.code)}))}))),e.whenVideoElementInDom().then((function(){t.unbinds.push(t.impl.engine.bind("webkitplaybacktargetavailabilitychanged",(function(){setTimeout((function(){t.render()}),0)})))})),e.whenVideoElementInDom().then((function(){t.unbinds.push(t.impl.engine.bind("audiotracksupdated",(function(){setTimeout((function(){t.render()}),0)})))})),e.whenVideoElementInDom().then((function(){t.unbinds.push(t.impl.engine.bind("livestreamready",(function(){t.impl.play()})))}))}},{key:"setupEventListeners",value:function(){var t=this;this._hasSetupEventListeners=!0,this.eventListeners instanceof Map&&(this.eventListeners.set("bigplaybuttonborderradiuschange",(function(){t.resetCssReset(),t.render()})),this.eventListeners.set("controlbarborderradiuschange",(function(){t.resetCssReset(),t.render()})),this.eventListeners.set("playerborderradiuschange",(function(){t.resetCssReset(),t.render()})),this.eventListeners.set("playercolorchange",(function(){return t.render()})),this.eventListeners.forEach((function(e,n){t.embedElement.addEventListener(n,e)})))}},{key:"render",value:function(){var t=this;if(this.isRendering&&this.lastRenderPromise)return this.queuedRenderPromise||(this.queuedRenderPromise=this.lastRenderPromise.then((function(){return t.render().then((function(){t.queuedRenderPromise=void 0}))}))),this.queuedRenderPromise;var e=this.impl;if(this._destroyed||!e.grid)return new Promise((function(){}));if(this._hasSetupBindings||this.setupBindings(),this._hasSetupEventListeners||this.setupEventListeners(),this.cssResetStyle||(this.cssResetStyle=(0,h.addInlineCss)(e.uiContainer,this.cssResetContent())),null==this.doneWaitingForPlay){var n=e._isPlayPending&&"beforeplay"===e.state();this.doneWaitingForPlay=!n}return this.lastRenderPromise=new Promise((function(n){t.isRendering=!0;var i=t.setupControls(),r=i.newControls,o=i.existingControls;t.setControlProps();var s=null!=t._shouldShowControls?t._shouldShowControls:t.shouldShowControls();t._areControlsVisible=t._shouldShowControls,(0,h.elemStyle)(t.impl.chrome,{borderRadius:"".concat(t.playerBorderRadius(),"px")}),(0,a.render)((0,a.h)(m.default,{ariaLiveText:t._ariaLiveText,afterRender:r.length>0?function(){t.afterRender(o,r,n)}:null,allMounted:t.allMounted,backgroundRef:t.backgroundRefFn,bottomBarRightInnerRef:function(e){t.bottomBarRightInnerRef=e},color:e.playerColor(),controlBarHeight:t.controlBarHeight(),controlBarBorderRadius:t.controlBarBorderRadius(),controlsByType:t.controlsByType,domId:t.domId,doneWaitingForPlay:t.doneWaitingForPlay,inFullscreen:e.inFullscreen(),inNativeMode:t.inNativeMode(),isMouseDownFromTouch:t._isMouseDownFromTouch,isShowingMore:t.isShowingMore(),hasClickedToShowMore:null!=t._isShowingMore,layoutRef:function(e){return t.layoutRef=e},leftControlWidth:t.leftControlWidth,mountRefs:t.mountRefsFn,noMixBlendMode:e._opts.noMixBlendMode,onClick:t.onClick,onDblClick:t.onDblClick,onFocusComplete:t.onFocusComplete,onfocusin:t.onFocusIn,onfocusout:t.onFocusOut,onKeyDown:t.onKeyDown,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseMove:t.onMouseMove,onPinch:t.onPinch,onSwipe:t.onSwipe,onTouchEnd:t.onTouchEnd,onTouchStart:t.onTouchStart,controlBarDistance:t.controlBarDistance(),playerBorderRadius:t.playerBorderRadius(),playerLanguage:e.playerLanguage(),rightControlWidth:t.rightControlWidth,scale:t.scale(),shouldShowControls:s,videoHeight:t.videoHeight(),videoState:e.state(),videoWidth:t.videoWidth()}),e.uiContainer),0===r.length&&t.afterRender(o,r,n)})),this.lastRenderPromise}},{key:"afterRender",value:function(t,e,n){var i=this;if(!this._destroyed&&this.impl.grid)try{if(this.runOnControlPropsUpdated(t),this.renderButtons(t),this.mountControls(e),this.didFirstRender)n();else{this.didFirstRender=!0;var r=new Promise((function(t){(0,c.doTimeout)("".concat(i.impl.uuid,".two_seconds_elapsed"),t,2e3)}));this.allMountedPromise=Promise.race([r,Promise.all(this.mountPromises)]).catch((function(t){setTimeout((function(){throw t}),0)})).then((function(){i.allMounted=!0,i.render().then(n)})),0===this.mountPromises.length&&n(),this.doneWaitingForPlay?this.allMountedPromise.then((function(){i.showVideoWrapper()})):((0,c.doTimeout)("".concat(this.impl.uuid,".bail_on_autoplay"),(function(){i.doneWaitingForPlay||(i.doneWaitingForPlay=!0,i.showVideoWrapper(),i.render())}),2e3),this.showVideoWrapperAfterInitialPlay())}}catch(t){setTimeout((function(){throw t}),0)}finally{this.isRendering=!1}else this.isRendering=!1}},{key:"resetCssReset",value:function(){var t=Boolean(this.impl._attrs.controlBarBorderRadius||this.impl._attrs.bigPlayButtonBorderRadius);this.cssResetStyle&&this._previousBorderRadiusOn!==t&&((0,h.elemRemove)(this.cssResetStyle),this.cssResetStyle=null,this._previousBorderRadiusOn=t)}},{key:"setControlProps",value:function(){var t=this,e=this.impl,n=this.anyDialogOpen(),i=this.isChromeless(),r=this.shouldShowControls(),o=this.isHovering,a=this.isMostRecentFocusViaMouse,s=e.playerLanguage(),u=this.scale(),l=this.videoHeight(),c=this.videoWidth(),f=this.vulcOffset=(0,h.elemOffset)(e.grid.center),p=this.bottomBarOffset={left:f.left,top:f.top+this.videoHeight()-this.controlBarHeight()},y=0;this.getControlsByType("control-bar-left").forEach((function(o,d){o.__prevProps=o.props,o.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:t.createFocusNextControlFunction(o),height:Math.round(D(o)*u),isMostRecentFocusViaMouse:a,left:y,isLeftMostControl:0===y,isRightMostControl:e.isControlDisabled("playbar"),playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:Math.round(B(o))*u},y+=o.props.width})),this.leftControlWidth=y;var v=this.getControlsByType("control-bar-right","ellipsis");v.forEach((function(o,d){o.__prevProps=o.props,o.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:t.createFocusNextControlFunction(o),height:Math.round(D(o)*u),isMostRecentFocusViaMouse:a,isLeftMostControl:0===d&&e.isControlDisabled("playbar"),isRightMostControl:d===v.length-1,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:Math.round(B(o))*u},"volumeButton"===o.constructor.handle&&d===v.length-2&&(o.props.isRightMostControl=!0),"volumeSlider"===o.constructor.handle&&d===v.length-1&&(o.props.isRightMostControl=!1)}));var m=0;this.getControlsByType("ellipsis").slice().reverse().forEach((function(t){m+=t.props.width,t.props.left=c-m})),this.ellipsisWidth=m,this.getControlsByType("control-bar-right").slice().reverse().forEach((function(t){m+=t.props.width,t.props.left=c-m})),this.rightControlWidth=m;var g=this.leftControlWidth+(this.ellipsisWidth>0?this.ellipsisWidth:this.rightControlWidth),b=c-g,_=this.getControlsByType("playbar")[0];_&&(_.__prevProps=_.props,_.props={anyDialogOpen:n,chromeless:i,controlsAreVisible:r,focusNextVisibleControl:this.createFocusNextControlFunction(_),height:this.controlBarHeight(),isMostRecentFocusViaMouse:a,left:y,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c,width:b}),this.playbarControlWidth=b;var w=this.controlBarHeight();["background","foreground","left-flyout","above-control-bar","right-flyout"].forEach((function(e){(t.controlsByType[e]||[]).forEach((function(e){e.__prevProps=e.props,e.props={anyDialogOpen:n,chromeless:i,controlBarHeight:w,isFocusable:t.allMounted&&t.doneWaitingForPlay,controlsAreVisible:r,focusNextVisibleControl:t.createFocusNextControlFunction(e),isHoveringOnPlayer:o,isMostRecentFocusViaMouse:a,playerLanguage:s,scale:u,videoHeight:l,videoWidth:c}}))}));var P=p.top;this.eachButtonControl((function(t){t.props.top=P})),_&&(0,d.assign)(_.props,{top:P}),this.eachControl((function(e){e.props.bigPlayButtonBorderRadius=t.bigPlayButtonBorderRadius(),e.props.controlBarBorderRadius=t.controlBarBorderRadius(),e.props.controlBarDistance=t.controlBarDistance(),e.props.leftControlBarWidth=t.leftControlWidth,e.props.playerBorderRadius=t.playerBorderRadius(),e.props.rightControlBarWidth=t.rightControlWidth}))}},{key:"runOnControlPropsUpdated",value:function(t){t.forEach((function(t){if("function"==typeof t.onControlPropsUpdated)try{t.onControlPropsUpdated(t.__prevProps||{})}catch(t){setTimeout((function(){throw t}),0)}t.__prevProps=null}))}},{key:"setupControls",value:function(){var t=this,e=this.impl,n=!1,r=[],o=function(){var i=t.controls[a];if(R[i.constructor.type]){var o=i.constructor.shouldMount;if(e.isControlDisabled(a)||o&&!o(e.publicApi)){if(i.destroy)try{i.destroy()}catch(t){setTimeout((function(){throw t}),1)}i.__destroyed=!0,delete t.mountRefs[a],delete t.buttonMountRefs[a],delete t.controls[L(i)],n=!0,r.push(i),e.trigger("controldestroyed",a)}}};for(var a in this.controls)o();var s=!1,u=[],l=[],c=function(n){var r=i.default._controlDefinitions[n];if(R[r.type]){var o=null!=t.controls[n],a=!e.isControlDisabled(n)&&(null==r.shouldMount||r.shouldMount(e.publicApi));if(a&&o&&l.push(t.controls[n]),!o&&a){try{var c=t.controls[n]=new r(e);c.mounted=new Promise((function(t){c.__didMount=function(){c.mounted.isResolved=!0,e.trigger("controlmounted",n),t()}})),u.push(c)}catch(t){setTimeout((function(){throw t}),1)}s=!0}}};for(var d in i.default._controlDefinitions)c(d);if(s||n){var h={};for(var f in this.eachControl((function(t){var e=t.constructor.type;null==h[e]&&(h[e]=[]),h[e].push(t)})),h)h[f].sort((function(t,e){return(t.constructor.sortValue||0)-(e.constructor.sortValue||0)}));this.controlsByType=h,e.publicApi.controls=e.controls=this.controls}return{newControls:u,existingControls:l,destroyedControls:r}}},{key:"whenControlMounted",value:function(t){var e=this;return new Promise((function(n){var i=e.controls[t];i&&i.mounted?i.mounted.then((function(){n(i)})):e.impl.bind("controlmounted",(function(i){if(i===t)return n(e.controls[t]),e.impl.unbind}))}))}},{key:"mountControls",value:function(t){var e=this;t.forEach((function(t){var n=t.constructor.type,i=L(t),r=e.mountRefs[i];if(t.nextControlOfSameType||(t.nextControlOfSameType=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t;return e.nextControlOfSameType(n)}),t.loading||(t.loading=function(i){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"control-bar-right"===n?e.renderButtonWithDialogLoader(t,i):e.renderHourglassLoader(i,r)}),"control-bar-left"===n||"control-bar-right"===n||"ellipsis"===n)if(t.mountButton){var o=e.renderButtonWithDialog(t);e.mountControl(t,(function(){return t.mountButton(o)}))}else t.mount&&e.mountControl(t,(function(){return t.mount(r)}));else e.mountControl(t,(function(){return t.mount(r)}));t.eventListeners instanceof Map&&t.eventListeners.forEach((function(e,n){t.embedElement.addEventListener(n,e)}))}))}},{key:"mountControl",value:function(t,e){try{var n=L(t),i=e();i&&i.then&&i.catch?(i.handle=n,this.mountPromises.push(i),i.then((function(){t.__didMount()}))):t.__didMount()}catch(t){setTimeout((function(){throw t}),0)}}},{key:"renderButtons",value:function(t){var e=this;t.forEach((function(t){t.mountButton&&e.renderButtonWithDialog(t)}))}},{key:"renderButtonWithDialog",value:function(t){var e=this,n=L(t);if(this.impl){try{t.mountDialog&&!t.dialog&&(t.dialog=new v.default(this,{dialogWillOpen:I(t.controlDialogWillOpen,t),dialogOpened:I(t.controlDialogOpened,t),dialogWillClose:I(t.controlDialogWillClose,t),dialogClosed:I(t.controlDialogClosed,t),control:t}),this.dialogs.push(t.dialog))}catch(t){setTimeout((function(){throw t}),0)}if(t.setButtonLabel||(t.setButtonLabel=function(n){t.__buttonLabel=n,e.renderButtonWithDialog(t)}),this.mountRefs[n]){var i,r=!this.impl.publicApi.popover||this.impl.publicApi.popover.isVisible()?0:-1;return(0,a.render)((0,a.h)(y.default,w({},t.props,{buttonLabel:t.__buttonLabel,buttonRef:function(e){t.buttonElement=e},closeDialogOnFocusOut:this.impl._opts.closeDialogsOnFocusOut,color:this.impl.playerColor(),control:t,key:"".concat(n,"_button_and_dialog"),onBlurButton:this.onBlurButton,onFocusButton:this.onFocusButton,rootRef:function(t){return e.buttonMountRefs[n]=t},stubRef:function(t){return i=t},tabIndex:r,videoState:this.impl.state()})),this.mountRefs[n]),i}}}},{key:"renderButtonWithDialogLoader",value:function(t,e){var n=this;return new Promise((function(i){var r="".concat(n.impl.uuid,".loading_dialog_indicator.").concat((0,o.seqId)());(0,c.doTimeout)(r,(function(){n.setLoadingDialogAndRender(t,!0),j.touchScreen?(0,h.elemBind)(document,"touchstart",(function(){try{n.setLoadingDialogAndRender(t,!1)}catch(t){setTimeout((function(){throw t}),0)}return i(),h.elemUnbind})):(0,h.elemBind)(document,"mousedown",(function(){try{n.setLoadingDialogAndRender(t,!1)}catch(t){setTimeout((function(){throw t}),0)}return i(),h.elemUnbind}))}),300),e.then((function(){(0,c.clearTimeouts)(r),n.setLoadingDialogAndRender(t,!1),i()}))}))}},{key:"setLoadingDialogAndRender",value:function(t,e){t.__isDialogLoading=e,this.renderButtonWithDialog(t)}},{key:"renderHourglassLoader",value:function(t,e){var n=this;return new Promise((function(i){var r="".concat(n.impl.uuid,".loading_indicator.").concat((0,o.seqId)());(0,c.doTimeout)(r,(function(){n.controls.loadingHourglass.show(e),j.touchScreen?(0,h.elemBind)(document,"touchstart",(function(){try{n.controls.loadingHourglass.hide()}catch(t){setTimeout((function(){throw t}),0)}return i(),h.elemUnbind})):(0,h.elemBind)(document,"mousedown",(function(){try{n.controls.loadingHourglass.hide()}catch(t){setTimeout((function(){throw t}),0)}return i(),h.elemUnbind}))}),300),t.then((function(){(0,c.clearTimeouts)(r),n.controls.loadingHourglass.hide(),i()}))}))}},{key:"eachControl",value:function(t){for(var e in this.controls)R[this.controls[e].constructor.type]&&t(this.controls[e])}},{key:"eachButtonControl",value:function(t){this.getControlsByType("control-bar-left","control-bar-right","ellipsis").forEach(t)}},{key:"spaceForPlaybar",value:function(){var t=0;return this.eachButtonControl((function(e){t+=B(e)})),this.videoWidth()-t*this.scale()}},{key:"controlBarHeight",value:function(){var t=this.impl;return this.isBeforePlayOrReset()&&t._attrs.hideControlsOnLoad||this.isChromeless()?0:Math.round(34*this.scale())}},{key:"isBeforePlayOrReset",value:function(){var t=this.impl;return"beforeplay"===t.state()||t._opts&&"reset"===t._attrs.endVideoBehavior&&"ended"===t.state()}},{key:"shouldShowControls",value:function(){var t=this.impl;return!(this.isChromeless()||t.publicApi.popover&&!t.publicApi.popover.isVisible()||(this.isBeforePlayOrReset()&&this.doneWaitingForPlay?!0===t._attrs.hideControlsOnLoad:!this.hasRequestedControlsVisible()&&(j.touchScreen?null==this.tappedToHide||this.tappedToHide||"playing"===t.state()&&!this.anyDialogOpen()&&!(this.lastMovedMouseAt&&Date.now()-this.lastMovedMouseAt<3e3&&this.lastMovedMouseAt>t.lastPlayInfo().issuedAt):!this.anyDialogOpen()&&!this.isKeyboardFocused&&(!t.inFullscreen()&&!this.isHovering||!(this.lastMovedMouseAt&&Date.now()-this.lastMovedMouseAt<3e3)&&this.lastMouseMoveWasFromBackground))))}},{key:"hasRequestedControlsVisible",value:function(){var t=this.impl._visibilityRequests;for(var e in t)if(t[e])return!0;return!1}},{key:"createFocusNextControlFunction",value:function(t){var e=this,n=this.nextVisibleFocusableControl(t);return function(t){var i=n;t&&(i=e.nextVisibleFocusableControl(t));var r=L(i),o=e.mountRefs[r];return e.focusNextVisibleElem(o)}}},{key:"focusNextVisibleElem",value:function(t){for(var e=t||this.impl.uiContainer,n=this.getVisibleFocusableElems(e),i=0,r=0;r<n.length;r++)if(document.activeElement===n[r]){i=r;break}return 0!==n.length&&(i===n.length-1?n[0].focus():n[i+1].focus(),!0)}},{key:"getVisibleFocusableElems",value:function(t){var e=t.querySelectorAll('button, [href], input, select, textarea, [tabindex="0"]');return Array.prototype.slice.call(e).filter((function(t){return!(0,h.elemIsHidden)(t)}))}},{key:"updateFocusedControl",value:function(t){var e=this;this.eachControl((function(n){var i=n.constructor.handle,r=e.mountRefs[i];n.__isFocused=t&&(0,h.elemIsInside)(t,r)})),this.render()}},{key:"showControlsTimeout",value:function(){return this.impl.inFullscreen()||j.touchScreen?3e3:5e3}},{key:"togglePlay",value:function(){var t=this.impl;"playing"===t.state()?t.pause():t.play()}},{key:"showVideoWrapperAfterInitialPlay",value:function(){var t=this;this.impl.ready((function(){var e=[t.impl._playPromise,t.impl._seekPromise].filter((function(t){return null!=t}));return Promise.all(e).then((function(){t.showVideoWrapper()}))}))}},{key:"showVideoWrapper",value:function(){(0,h.elemStyle)(this.impl.videoWrapper,{clip:""})}},{key:"anyDialogOpen",value:function(){for(var t in this.controls){var e=this.controls[t];if(e.dialog&&e.dialog.isOpen())return!0}return!1}},{key:"openDialog",value:function(t){this.dialogs.forEach((function(e){e!==t&&e.close()})),this.render()}},{key:"closeDialog",value:function(t){this.render()}},{key:"resizeDialog",value:function(t){this.render()}},{key:"videoWidth",value:function(){return null!=this.cachedVideoWidth?this.cachedVideoWidth:this.cachedVideoWidth=this.impl.videoWidth()}},{key:"videoHeight",value:function(){return null!=this.cachedVideoHeight?this.cachedVideoHeight:this.cachedVideoHeight=this.impl.videoHeight()}},{key:"scale",value:function(){return null!=this._scale?this._scale:"auto"!==this.impl.controlScaling()?this.impl.controlScaling():this._scale=Math.min(1.3,Math.max(.6,(0,u.controlMultiplierBasedOnVideo)(this.impl)))}},{key:"destroy",value:function(){for(var t in this.buttonMountRefs)g(this.buttonMountRefs,t)&&(0,a.render)((0,a.h)("nothing",null),this.mountRefs[t]);(0,a.render)((0,a.h)("nothing",null),this.impl.uiContainer),this.eachControl((function(t){if(t.destroy)try{t.destroy()}catch(t){setTimeout((function(){throw t}),0)}t.__destroyed=!0})),this.unbinds.forEach((function(t){return t()})),(0,h.elemRemove)(this.cssResetStyle),this.cssResetStyle=null,O(T(_.prototype),"destroy",this).call(this)}},{key:"nextVisibleFocusableControl",value:function(t){var e=this.nextControlOfSameType(t);if(e)return e;for(var n,i=t.constructor.handle,r=Object.keys(this.mountRefs),o=r.indexOf(i)+1,a=r.slice(o),s=0;s<a.length;s++){var u=this.mountRefs[a[s]];if(this.getVisibleFocusableElems(u).length>0){n=a[s];break}}return n||void 0}},{key:"nextControlOfSameType",value:function(t){var e=t.constructor.type,n=this.controlsByType[e],i=n.indexOf(t),r=n[i+1];return"control-bar-left"===e&&(!r&&this.controlsByType.playbar&&(r=this.controlsByType.playbar[0]),!r&&this.controlsByType["control-bar-right"]&&(r=this.controlsByType["control-bar-right"][0]),!r&&this.controlsByType.ellipsis&&(r=this.controlsByType.ellipsis[0])),r}},{key:"hasAnyVideoChromeControls",value:function(){for(var t in this.controls){var e=this.controls[t];if(e.constructor.isVideoChrome||x(e.constructor.type))return!0}return!1}},{key:"hasRequestedChromeless",value:function(){var t=this.impl._visibilityRequests;for(var e in t)if(!1===t[e])return!0;return!1}},{key:"isChromeless",value:function(){return this.inNativeMode()||this.impl._opts.chromeless||this.hasRequestedChromeless()||!this.hasAnyVideoChromeControls()}},{key:"inNativeMode",value:function(){var t=this.impl._opts;return!0===t.nativeMode||j.ipad&&j.ios.version&&j.ios.version<10.1||!1===t.playsinline&&(j.ipad||j.iphone||j.android)&&!/two_stroke/.test(this.impl.bestEngine())}},{key:"cssResetContent",value:function(){var t="#".concat(this.impl.chrome.id," #").concat(this.impl.grid.wrapper.id),e=(0,r.cssResetForSelector)("".concat(t," "),".w-css-reset"),n=(0,r.cssResetForSelector)("".concat(t," .w-css-reset-tree "),""),i=Boolean(this.impl._attrs.controlBarBorderRadius||this.impl._attrs.bigPlayButtonBorderRadius)?"":"border-radius:0!important;";return"\n ".concat(e,"\n ").concat(n,"\n ").concat(t," .w-css-reset-max-width-none-important{max-width:none!important}\n ").concat(t," .w-css-reset-button-important{").concat(i,"color:#fff!important;}\n ")}},{key:"hasRendered",value:function(){return!!this.allMounted}},{key:"shouldShowMoreDefaultValue",value:function(){return(this.rightControlWidth-this.ellipsisWidth)/this.videoWidth()<.35}},{key:"isShowingMore",value:function(){if(this.controlsByType.ellipsis){var t=this.getControlsByType("playbar");return 0===t.length||!(t.filter((function(t){return t.__isFocused})).length>0)&&(!!(this.getControlsByType("control-bar-right").filter((function(t){return t.__isFocused})).length>0)||(null!=this._isShowingMore?this._isShowingMore:this.shouldShowMoreDefaultValue()))}}},{key:"playerBorderRadius",value:function(){return this.impl._attrs.playerBorderRadius*this.scale()}},{key:"showMore",value:function(){return this._isShowingMore=!0,this.render()}},{key:"showLess",value:function(){return this.dialogs.forEach((function(t){return t.close()})),this._isShowingMore=!1,this.render()}},{key:"getControlsByType",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(1===n.length&&this.controlsByType[n[0]])return this.controlsByType[n[0]];var r=[];return n.forEach((function(e){r.push.apply(r,b(t.controlsByType[e]||[]))})),r}},{key:"setAriaLiveText",value:function(t){this._ariaLiveText=t,this.render()}}],n&&P(e.prototype,n),l&&P(e,l),Object.defineProperty(e,"prototype",{writable:!1}),_}(p.PlayerBehavior);M.handle="ui";var I=function(t,e){return t?t.bind(e):null},L=function(t){return t.constructor.handle};const F=M},(t,e,n)=>{n.d(e,{default:()=>y});var i=n(5),r=n(2),o=n(40),a=n(209),s=n(210);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,p(i.key),i)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,n)}}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}const y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(y,t);var e,n,h,p=c(y);function y(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),f(d(t=p.call(this)),"onClickButton",(function(){var e=t.props.control;if(e.buttonElement.focus(),!1!==e.toggleDialogOnClick){var n=e.dialog;n&&(n.isOpen()?n.close():n.open())}e.onClickButton&&e.onClickButton()})),f(d(t),"onKeyboardFocusButton",(function(e){if(e.relatedTarget!==t.dummyElem){var n=t.props,i=n.control,r=n.onFocusButton;r&&r(e,i),i.onFocusInButton&&i.onFocusInButton(e)}})),f(d(t),"onBlurButton",(function(e){var n=t.props,i=n.closeDialogOnFocusOut,r=n.control,o=n.onBlurButton,a=r.dialog;setTimeout((function(){var n=document.activeElement;!1!==i&&!1===t.state.isMouseInDialog&&t.isNewElemOutsideOfBase(n,t.base)&&a&&a.close(),o&&o(e,r),r.onFocusOutButton&&r.onFocusOutButton(e)}),150)})),f(d(t),"onKeyDownButton",(function(e){var n=t.props.control;n.onKeyDownButton&&n.onKeyDownButton(e)})),f(d(t),"onMouseEnterDialog",(function(){t.setState({isMouseInDialog:!0})})),f(d(t),"onMouseLeaveDialog",(function(){t.setState({isMouseInDialog:!1})})),f(d(t),"onMouseEnter",(function(e){t._isHovering=!0;var n=t.props.control;n.onMouseEnter&&n.onMouseEnter(e)})),f(d(t),"onMouseLeave",(function(e){t._isHovering=!1;var n=t.props.control;n.onMouseLeave&&n.onMouseLeave(e)})),f(d(t),"onMouseDown",(function(){t._isMouseDown=!0,t._lastClickedElem=document.activeElement,(0,i.elemBind)(document,"mouseup",t.onMouseUp)})),f(d(t),"onMouseUp",(function(){t._isMouseDown=!1,(0,i.elemUnbind)(document,"mouseup",t.onMouseUp)})),f(d(t),"onFocusOut",(function(){setTimeout((function(){var e,n=t.props.control;!1!==t.props.closeDialogOnFocusOut&&n.dialog&&n.dialog.isOpen()&&(!document.activeElement||t.isNewElemOutsideOfBase(document.activeElement,t.base))&&(document.activeElement&&document.activeElement.tagName.match(/input|button/i)||!0!==t.state.isMouseInDialog||!(0,o.isMouseDownRecently)()&&!t._isMouseDown?n.dialog.close():null===(e=t._lastClickedElem)||void 0===e||e.focus({preventScroll:!0}))}),500)})),f(d(t),"onBeforeDisplayNone",(function(){var e=t.props.control;if(t.dialogElem&&document.activeElement&&(0,i.elemIsInside)(document.activeElement,t.dialogElem)){var n=e.nextControlOfSameType();n&&n.buttonElement?n.buttonElement.focus():e.buttonElement.focus()}})),f(d(t),"dialogRefFn",(function(e){t.dialogElem=e,t.props.dialogRef&&t.props.dialogRef(e)})),t.state={isMouseInDialog:!1},t}return e=y,(n=[{key:"render",value:function(){var t=this.props.control,e=t.mountDialog&&t.dialog&&t.dialog.hasOpened();return(0,r.h)("div",{class:"w-vulcan-button-wrapper w-css-reset",style:this.wrapperStyle(),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onfocusout:this.onFocusOut,ref:this.props.rootRef},this.renderControlBarButton(),e?this.renderControlBarDialog():null)}},{key:"componentDidMount",value:function(){var t=this.props.buttonRef;t&&t(this.buttonElem)}},{key:"componentDidUpdate",value:function(){var t=this.props.buttonRef;t&&t(this.buttonElem)}},{key:"renderControlBarButton",value:function(){var t=this,e=this.props,n=this.props.control,i=n.mountDialog&&n.dialog&&n.dialog.isOpen();return(0,r.h)(s.default,{buttonLabel:this.props.buttonLabel,buttonRef:function(e){return t.buttonElem=e},controlBarBorderRadius:this.props.controlBarBorderRadius,controlsAreVisible:this.props.controlsAreVisible,disabled:n.disabledButton,handle:e.control.constructor.handle,isDialogOpen:i,isLeftMostControl:this.props.isLeftMostControl,isLoading:e.control.__isDialogLoading||!1,isRightMostControl:this.props.isRightMostControl,onBlur:this.onBlurButton,onClick:this.onClickButton,onKeyDownButton:this.onKeyDownButton,onKeyboardFocus:this.onKeyboardFocusButton,scale:e.scale,stubRef:e.stubRef,tabIndex:e.tabIndex,videoState:this.props.videoState})}},{key:"isNewElemOutsideOfBase",value:function(t,e){return!t||"WISTIA-PLAYER"!==t.tagName&&!(0,i.elemIsInside)(t,e)}},{key:"renderControlBarDialog",value:function(){var t=this.props,e=t.control,n=t.videoHeight-34*t.scale;return(0,r.h)(a.default,{canvasHeight:n,canvasWidth:t.videoWidth,controlBarBorderRadius:t.controlBarBorderRadius,dialogRef:this.dialogRefFn,handle:"".concat(e.constructor.handle,"__dialog"),isOpen:e.dialog.isOpen(),left:e.props.left,mount:function(t){return e.mountDialog(t)},newLook:this.props.newLook,onBeforeDisplayNone:this.onBeforeDisplayNone,onMouseEnter:this.onMouseEnterDialog,onMouseLeave:this.onMouseLeaveDialog,controlBarDistance:t.controlBarDistance,resizeRequestedAt:e.dialog._resizeRequestedAt,scale:t.scale,top:e.props.top})}},{key:"wrapperStyle",value:function(){var t=this.props.control;return{display:"inline-block",height:"".concat(t.props.height,"px"),position:"relative",verticalAlign:"top",width:"".concat(t.props.width,"px")}}}])&&u(e.prototype,n),h&&u(e,h),Object.defineProperty(e,"prototype",{writable:!1}),y}(r.Component)},(t,e,n)=>{n.d(e,{default:()=>y});var i=n(5),r=n(2),o=n(52),a=n(20),s=n(62);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,p(i.key),i)}}function l(t,e){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},l(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return d(t)}(this,n)}}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function f(t,e,n){return(e=p(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}const y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}(y,t);var e,n,h,p=c(y);function y(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,y),f(d(e=p.call(this,t)),"dialogRefFn",(function(t){e.dialogElem=t,e.props.dialogRef&&e.props.dialogRef(t)})),f(d(e),"handleTransitionsAfterRender",(function(){var t=e.props,n=e.state;t.isOpen?(n.isDisplayNone||n.isOpaque&&null==n.widthInButtons)&&e.setState({isDisplayNone:!1},(function(){e.measureUserElem(),e.setState({isOpaque:!0})})):!n.isDisplayNone&&n.isOpaque&&e.setState({isOpaque:!1},(function(){clearTimeout(e.displayNoneTimeout),e.displayNoneTimeout=setTimeout((function(){e.setState({isDisplayNone:!0})}),200)}))})),f(d(e),"measureUserElem",(function(){e.stubElem.style.width="";var t=(0,i.elemWidth)(e.stubElem);e.stubElem.style.width="100%";var n=Math.ceil(t/(40*e.props.scale));n===e.state.widthInButtons||isNaN(n)||e.setState({widthInButtons:n})})),f(d(e),"onTouchStart",(function(t){t._touchStartFromControlDialog=!0})),e.uuid=(0,a.seqId)(),e.state={isDisplayNone:!0,isOpaque:!1,widthInButtons:null},e}return e=y,(n=[{key:"componentWillReceiveProps",value:function(t){this.props.resizeRequestedAt!==t.resizeRequestedAt&&this.setState({widthInButtons:null})}},{key:"componentWillUpdate",value:function(t,e){!0===e.isDisplayNone&&!1===this.state.isDisplayNone&&(this.cancelMeasurementLoop(),t.onBeforeDisplayNone&&t.onBeforeDisplayNone()),!1===e.isDisplayNone&&!0===this.state.isDisplayNone&&this.setupMeasurementLoop()}},{key:"render",value:function(){var t=this;return(0,r.h)("div",{class:"w-anchor w-css-reset",style:this.anchorStyle(),onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onTouchStart:this.onTouchStart},(0,r.h)("div",{class:"w-dialog w-css-reset",style:this.dialogStyle(),ref:this.dialogRefFn},(0,r.h)("div",{class:"w-css-reset",style:this.dialogContentWrapperStyle()},(0,r.h)(s.default,{style:this.stubStyle(),stubRef:function(e){return t.stubElem=e},handle:this.props.handle,class:"w-css-reset"}))))}},{key:"componentDidMount",value:function(){var t=this.props.mount(this.stubElem);t&&t.then&&t.catch?this.mountPromise=t:this.mountPromise=Promise.resolve(),this.mountPromise.then(this.handleTransitionsAfterRender)}},{key:"componentDidUpdate",value:function(){this.mountPromise&&this.mountPromise.then(this.handleTransitionsAfterRender)}},{key:"componentWillUnmount",value:function(){this.cancelMeasurementLoop()}},{key:"anchorStyle",value:function(){return{height:0,left:0,position:"absolute",top:0,width:"100%"}}},{key:"dialogContentWrapperStyle",value:function(){var t=this.state.isOpaque,e=t?48:0;return{opacity:t?1:0,transition:"opacity ".concat(100,"ms ease ").concat(e,"ms")}}},{key:"dialogStyle",value:function(){var t=this.props,e=t.canvasHeight,n=t.canvasWidth,i=t.scale,r=t.controlBarBorderRadius,o=t.controlBarDistance,a=this.state,s=a.isDisplayNone,u=a.isOpaque,l=a.widthInButtons,c=0,d=null;if(null!=l){d=40*l*i;var h=this.props.left+d-n;h>0&&(c=-1*h)}var f=u?0:40;return{background:"rgba(0,0,0,0.7)",borderRadius:"".concat(r,"px"),bottom:"".concat(o,"px"),color:"#fff",display:s?"none":"block",left:c,lineHeight:"34px",maxHeight:"".concat(e,"px"),opacity:u?1:0,overflowX:"hidden",overflowY:"auto",position:"absolute",transition:"opacity ".concat(120,"ms ease ").concat(f,"ms, transform ").concat(120,"ms ease ").concat(f,"ms"),transform:"scaleY(".concat(u?1:.6,")"),transformOrigin:"center bottom",width:null!=d?"".concat(d,"px"):null}}},{key:"stubStyle",value:function(){return{boxSizing:"border-box",display:"inline-block",height:"100%",verticalAlign:"bottom",width:"100%"}}},{key:"setupMeasurementLoop",value:function(){o.globalEventLoop.add(this.uuid,500,this.measureUserElem)}},{key:"cancelMeasurementLoop",value:function(){o.globalEventLoop.remove(this.uuid)}}])&&u(e.prototype,n),h&&u(e,h),Object.defineProperty(e,"prototype",{writable:!1}),y}(r.Component)},(t,e,n)=>{n.d(e,{default:()=>b});var i=n(72),r=n(2),o=n(11),a=n(40),s=n(6),u=n(62),l=n(60);function c(){return c=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},c.apply(this,arguments)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,m(i.key),i)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var r=y(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return p(t)}(this,n)}}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function v(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var g=(0,o.cachedDetect)();const b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(m,t);var e,n,o,y=f(m);function m(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),v(p(e=y.call(this,t)),"onFocus",(function(t){e.setState({isKeyboardFocused:!(0,a.isMouseDownRecently)()}),!(0,a.isMouseDownRecently)()&&e.props.onKeyboardFocus&&e.props.onKeyboardFocus(t)})),v(p(e),"onBlur",(function(t){e.setState({isKeyboardFocused:!1}),e.props.onBlur&&e.props.onBlur(t)})),v(p(e),"onMouseDown",(function(){e.setState({justClicked:!0})})),v(p(e),"onMouseUp",(function(){e.setState({justClicked:!1})})),v(p(e),"onMouseEnter",(function(){e.setState({isHovering:!0})})),v(p(e),"onMouseLeave",(function(){e.setState({isHovering:!1})})),e.interval=void 0,e.state={isKeyboardFocused:!1,isHovering:!1,justClicked:!1,opacity:1},e}return e=m,(n=[{key:"render",value:function(){var t=this,e=this.props,n=e.buttonLabel,i={class:"w-vulcan-v2-button w-css-reset w-css-reset-tree w-css-reset-button-important",style:this.buttonStyle(),"aria-label":n,title:n,onClick:function(){e.disabled||e.onClick()},onKeyDown:function(t){e.onKeyDownButton(t)},onMouseDown:!g.touchScreen&&!e.disabled&&this.onMouseDown,onMouseUp:!g.touchScreen&&!e.disabled&&this.onMouseUp,onTouchStart:g.touchScreen&&this.onMouseDown,onTouchEnd:g.touchScreen&&this.onMouseUp,elemRef:function(n){t.buttonElem=n,e.buttonRef&&e.buttonRef(n)},tabIndex:e.tabIndex};return void 0!==e.isDialogOpen&&(i["aria-expanded"]="".concat(e.isDialogOpen)),g.touchScreen||(i.onFocus=this.onFocus,i.onBlur=this.onBlur,i.onMouseEnter=this.onMouseEnter,i.onMouseLeave=this.onMouseLeave),e.disabled&&(i["aria-disabled"]=!0),(0,r.h)(l.default,c({tagName:"button"},i),(0,r.h)(u.default,{class:"w-vulcan-icon-wrapper",style:this.stubStyle(),stubRef:function(e){return t.stubRoot=e},handle:"".concat(this.props.handle,"_icon_wrapper")}))}},{key:"componentDidMount",value:function(){this.props.mount&&this.props.mount(this.stubRoot,this.anchorRoot,this.buttonElem),this.props.stubRef&&this.props.stubRef(this.stubRoot)}},{key:"createLoadingInterval",value:function(){var t=this;this.interval=setInterval((function(){var e=.2===t.state.opacity?.8:.2;t.setState({opacity:e})}),400)}},{key:"clearLoadingInterval",value:function(){clearInterval(this.interval),this.setState({opacity:1})}},{key:"componentWillReceiveProps",value:function(t){!1===this.props.isLoading&&!0===t.isLoading?this.createLoadingInterval():!0===this.props.isLoading&&!1===t.isLoading&&this.clearLoadingInterval()}},{key:"componentDidUpdate",value:function(){(0,s.assign)(this.stubRoot.style,this.stubStyle()),this.props.stubRef&&this.props.stubRef(this.stubRoot)}},{key:"rootStyle",value:function(){return{height:"100%",position:"relative",width:"100%"}}},{key:"buttonStyle",value:function(){var t=this.state,e=t.isHovering,n=t.isKeyboardFocused,r=this.props,o=r.controlBarBorderRadius,a=r.scale,s=new i.default("#000"),u=e&&!this.props.disabled?.2:0;s.alpha(u);var l=this.props.isRightMostControl&&o?3*a:0;return{backgroundColor:s.toRgba(),borderBottomLeftRadius:this.props.isLeftMostControl?"".concat(o,"px"):0,borderBottomRightRadius:this.props.isRightMostControl?"".concat(o,"px"):0,borderTopLeftRadius:this.props.isLeftMostControl?"".concat(o,"px"):0,borderTopRightRadius:this.props.isRightMostControl?"".concat(o,"px"):0,boxShadow:n?"0 0 0 2px #fff inset":"none",cursor:this.props.disabled?"not-allowed":"pointer",height:"100%",position:"relative",transition:"background-color 150ms",width:"calc(100% + ".concat(l,"px)"),paddingRight:"".concat(l,"px")}}},{key:"stubStyle",value:function(){var t=this.state.justClicked;return{boxSizing:"border-box",height:"100%",position:"relative",opacity:this.props.disabled?.5:1,transform:"scale(".concat(t?1.2:1.001,")"),transition:"transform 200ms"}}},{key:"getOpacity",value:function(){return this.props.controlsAreVisible?null!=this.state.opacity?this.state.opacity:1:0}}])&&d(e.prototype,n),o&&d(e,o),Object.defineProperty(e,"prototype",{writable:!1}),m}(r.Component)},(t,e,n)=>{n.d(e,{default:()=>u});var i=n(15);function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,a(i.key),i)}}function o(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var s=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,"dialogWillOpen",(function(){return new Promise((function(t){if(n.config.dialogWillOpen){var e=n.config.dialogWillOpen();if(e&&e.then)return void e.then(t)}t()}))})),o(this,"doOpen",(function(){return new Promise((function(t){n._isOpen?t():(n._isOpen=!0,n._hasOpened=!0,n.ui.openDialog(n),setTimeout(t,170))}))})),o(this,"dialogOpened",(function(){return new Promise((function(t){n.config.dialogOpened&&n.config.dialogOpened(),t()}))})),o(this,"close",(function(){return n.control.mounted.then((function(){return n.isOpen()?n.dialogWillClose().then(n.doClose).then(n.dialogClosed):Promise.resolve()}))})),o(this,"dialogWillClose",(function(){return new Promise((function(t){if(n.config.dialogWillClose){var e=n.config.dialogWillClose();if(e&&e.then)return void e.then(t)}t()}))})),o(this,"doClose",(function(){return new Promise((function(t){n._isOpen?(n._isOpen=!1,n.ui.closeDialog(n),setTimeout(t,200)):t()}))})),o(this,"dialogClosed",(function(){return new Promise((function(t){n.config.dialogClosed&&n.config.dialogClosed(),t()}))})),this.ui=e,this.config=i,this._isOpen=!1,this._hasOpened=!1,this.control=i.control}var e,n,i;return e=t,(n=[{key:"open",value:function(){var t=this;return this.control.mounted.then((function(){return t.isOpen()?Promise.resolve():t.dialogWillOpen().then(t.doOpen).then(t.dialogOpened)}))}},{key:"isOpen",value:function(){return this._isOpen}},{key:"hasOpened",value:function(){return this._hasOpened}},{key:"resize",value:function(){this._resizeRequestedAt=Date.now(),this.ui.resizeDialog(this)}}])&&r(e.prototype,n),i&&r(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();(0,i.bindify)(s.prototype);const u=s},(t,e,n)=>{n.d(e,{default:()=>O});var i=n(72),r=n(2),o=n(11),a=n(6),s=n(5),u=n(40),l=n(60),c=n(62);function d(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?d(Object(n),!0).forEach((function(e){g(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,b(i.key),i)}}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return v(t)}(this,n)}}function v(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function g(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var _=(0,o.cachedDetect)(),w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(d,t);var e,n,o,s=y(d);function d(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),g(v(e=s.call(this,t)),"onFocus",(function(){e.props.isMouseDownFromTouch||(0,u.isMouseDownRecently)()||e.setState({isKeyboardFocused:!0}),e.props.onFocusComplete()})),g(v(e),"onBlur",(function(){e.state.isKeyboardFocused&&e.setState({isKeyboardFocused:!1})})),g(v(e),"onFocusIn",(function(t){e.props.onfocusin&&e.props.onfocusin(t)})),g(v(e),"onFocusOut",(function(t){e.props.onfocusout&&e.props.onfocusout(t)})),g(v(e),"onClick",(function(t){if((0,u.isMouseDownRecently)()&&e.setState({isKeyboardFocused:!1}),P(t)&&t.preventDefault(),e.props.onClick)return e.props.onClick(t)})),g(v(e),"onTouchEnd",(function(t){if(e.props.onTouchEnd)return e.props.onTouchEnd(t)})),e.state={areControlsOpaque:t.shouldShowControls,isKeyboardFocused:!1},e}return e=d,n=[{key:"componentWillReceiveProps",value:function(t){this.handleControlBarAnimation(t)}},{key:"render",value:function(){var t=this;return this.mountRefs={},(0,r.h)(l.default,{class:"w-vulcan-v2 w-css-reset",elemRef:this.props.layoutRef,id:this.props.domId,onBlur:this.onBlur,onClick:this.onClick,onDblClick:this.props.onDblClick,onFocus:this.onFocus,onfocusin:this.props.onfocusin,onfocusout:this.props.onfocusout,onKeyDown:this.props.onKeyDown,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,onMouseMove:this.props.onMouseMove,onPinch:this.props.onPinch,onSwipe:this.props.onSwipe,onTouchEnd:this.onTouchEnd,onTouchMove:this.props.onTouchMove,onTouchStart:this.props.onTouchStart,style:this.wrapperStyle()},(0,r.h)("div",{class:"w-vulcan--background w-css-reset",style:this.backgroundStyle(),ref:this.props.backgroundRef},this.renderControlCells("background")),(0,r.h)("div",{"aria-live":"polite",class:"w-vulcan--aria-live w-css-reset","aria-atomic":"true",style:{position:"absolute",left:"-99999em"}},this.props.ariaLiveText),(0,r.h)("div",{class:"w-vulcan-overlays-table w-css-reset",style:this.layoutTableStyle()},(0,r.h)("div",{class:"w-vulcan-overlays--left w-css-reset",style:this.tdLeftStyle()},(0,r.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("left-flyout",{height:"100%",pointerEvents:"auto"}))),(0,r.h)("div",{class:"w-vulcan-overlays--center w-css-reset",style:this.tdCenterStyle()},(0,r.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("above-control-bar",{pointerEvents:"auto"}))),(0,r.h)("div",{class:"w-vulcan-overlays--right w-css-reset",style:this.tdRightStyle()},(0,r.h)("div",{style:this.tdLayoutInnerStyle(),class:"w-css-reset"},this.renderControlCells("right-flyout",{height:"100%",pointerEvents:"auto"})))),(0,r.h)("div",{class:"w-bottom-bar w-css-reset",style:this.bottomBarStyle(),ref:function(e){return t.bottomBar=e}},(0,r.h)("div",{class:"w-bottom-bar-lower w-css-reset",style:this.bottomBarLowerStyle()},(0,r.h)("div",{style:this.leftBgStyle()},(0,r.h)("div",{style:this.blendStyle()}),(0,r.h)("div",{style:this.bgOverlayStyle()})),(0,r.h)("div",{style:this.rightBgStyle()},(0,r.h)("div",{style:this.blendStyle()}),(0,r.h)("div",{style:this.bgOverlayStyle()})),(0,r.h)("div",{class:"w-bottom-bar-left w-css-reset",style:this.bottomBarLeftStyle()},(0,r.h)("div",{class:"w-bottom-bar-left-inner w-css-reset",style:this.bottomBarLeftInnerStyle()},this.renderControlCells("control-bar-left",{display:"inline-block",verticalAlign:"top"}))),(0,r.h)("div",{class:"w-bottom-bar-middle w-css-reset",style:this.bottomBarMiddleStyle()},(0,r.h)("div",{class:"w-bottom-bar-middle-inner w-css-reset",style:this.bottomBarMiddleInnerStyle()},this.renderControlCells("playbar",this.playbarStyle()))),(0,r.h)("div",{class:"w-bottom-bar-right w-css-reset",style:this.bottomBarRightStyle()},(0,r.h)("div",{class:"w-bottom-bar-right-inner-anchor w-css-reset",style:this.bottomBarRightInnerAnchorStyle()},(0,r.h)("div",{class:"w-bottom-bar-right-inner w-css-reset",style:this.bottomBarRightInnerStyle()},this.renderControlCells("control-bar-right",{display:"inline-block",verticalAlign:"top"}))),(0,r.h)("div",{class:"w-ellipsis w-css-reset",style:this.ellipsisStyle()},this.renderControlCells("ellipsis",{display:"inline-block",verticalAlign:"top"}))))),(0,r.h)("div",{class:"w-foreground w-css-reset",style:this.foregroundStyle()},this.renderControlCells("foreground",{pointerEvents:"auto"})))}},{key:"componentDidMount",value:function(){this.props.mountRefs&&this.props.mountRefs(this.mountRefs),this.props.afterRender&&this.props.afterRender()}},{key:"componentDidUpdate",value:function(){var t=this.props.mountRefs,e=this.mountRefs,n=this.props.afterRender;setTimeout((function(){t&&t(e),n&&n()}),1)}},{key:"wrapperStyle",value:function(){var t=this.props.inFullscreen&&!this.props.shouldShowControls;return{borderRadius:"".concat(this.props.controlBarBorderRadius,"px"),boxSizing:"border-box",cursor:t?"none":"default",direction:"ltr",height:"100%",left:0,pointerEvents:this.props.inNativeMode?"none":"",position:"absolute",visibility:this.props.allMounted&&this.props.doneWaitingForPlay?"visible":"hidden",top:0,width:"100%"}}},{key:"foregroundStyle",value:function(){return{height:"100%",left:0,pointerEvents:"none",position:"absolute",top:0,width:"100%"}}},{key:"backgroundStyle",value:function(){return{height:"100%",left:0,pointerEvents:this.props.inNativeMode?"none":"",position:"absolute",top:0,width:"100%"}}},{key:"layoutTableStyle",value:function(){return{display:"table",pointerEvents:"none",position:"absolute",width:"100%"}}},{key:"tdLeftStyle",value:function(){return this.standardCellStyle(0)}},{key:"tdCenterStyle",value:function(){return this.standardCellStyle("100%")}},{key:"tdRightStyle",value:function(){return this.standardCellStyle(0)}},{key:"tdLayoutInnerStyle",value:function(){return{height:"".concat(this.props.videoHeight-this.props.controlBarHeight,"px")}}},{key:"bottomBarStyle",value:function(){var t=this.state.areControlsOpaque,e=this.props,n=e.videoState,i=e.controlBarBorderRadius,r=e.controlBarDistance,o=t||"beforeplay"!==n?"table":"none",a=r<2?0:r;return{bottom:"".concat(a,"px"),borderRadius:"".concat(i,"px"),borderCollapse:"collapse",display:o,height:"".concat(this.props.controlBarHeight,"px"),pointerEvents:"none",position:"absolute",paddingLeft:"".concat(a,"px"),paddingRight:"".concat(a,"px"),right:i?"50%":0,tableLayout:"auto",transform:i?"translate(50%)":"unset",width:"calc(100% - ".concat(2*a,"px)")}}},{key:"bottomBarLeftStyle",value:function(){return(0,a.assign)(this.standardCellStyle(0),{opacity:this.getOpacity(),transition:this.getTransition()})}},{key:"bottomBarLeftInnerStyle",value:function(){return this.standardInnerStyle()}},{key:"bottomBarMiddleStyle",value:function(){return(0,a.assign)(this.standardCellStyle("100%"),{opacity:this.getOpacity(),transition:this.getTransition()})}},{key:"bottomBarMiddleInnerStyle",value:function(){var t=this.props,e=t.hasClickedToShowMore,n=t.isShowingMore&&this.isEllipsisShowing(),i=e?150:0;return h(h({},this.standardInnerStyle()),{},{opacity:n?0:1,pointerEvents:n?"none":"auto",transform:"translateY(".concat(n?"-25%":0,")"),transition:"opacity ".concat(i,"ms, transform ").concat(i,"ms")})}},{key:"shouldMixBlendMode",value:function(){return!_.edge&&!1===this.props.noMixBlendMode}},{key:"blendStyle",value:function(){var t=this.props.color;return{background:new i.default(t||"#000").alpha(1).toRgba(),display:this.shouldMixBlendMode()?"block":"none",height:"100%",mixBlendMode:"darken",left:0,opacity:this.getOpacity(),position:"absolute",top:0,transition:this.getTransition(),width:"100%"}}},{key:"bgOverlayStyle",value:function(){var t=this.props,e=t.color,n=t.controlBarBorderRadius,r=new i.default(e||"#000").alpha(.7);return this.shouldMixBlendMode()||r.alpha(.85),{background:r.toRgba(),borderRadius:"".concat(n,"px"),height:"100%",opacity:this.getOpacity(),left:0,position:"absolute",top:0,transition:this.getTransition(),width:"100%"}}},{key:"bottomBarRightStyle",value:function(){return(0,a.assign)(this.standardCellStyle(0),{opacity:this.getOpacity(),transition:this.getTransition(),whiteSpace:"nowrap"})}},{key:"bottomBarRightInnerAnchorStyle",value:function(){var t=h(h({},this.standardInnerStyle()),{},{display:"inline-block",position:"relative",right:0,top:0,verticalAlign:"top"});return this.isEllipsisShowing()&&(t.height=0),t}},{key:"bottomBarRightInnerStyle",value:function(){var t=this.props,e=t.hasClickedToShowMore,n=t.isShowingMore,i=t.controlBarBorderRadius,r=t.scale,o=!this.isEllipsisShowing()||n,a=e?150:0;return h(h({},this.standardInnerStyle()),{},{display:"inline-block",opacity:o?1:0,pointerEvents:o?"auto":"none",position:this.isEllipsisShowing()?"absolute":"relative",right:0,top:0,transform:"translateY(".concat(o?0:"25%",")"),transition:"opacity ".concat(a,"ms, transform ").concat(a,"ms"),paddingRight:i>8?"".concat(3*r,"px"):0})}},{key:"ellipsisStyle",value:function(){return h(h({},this.standardInnerStyle()),{},{display:this.props.controlsByType.ellipsis?"inline-block":"none"})}},{key:"standardCellStyle",value:function(t){return{display:"table-cell",verticalAlign:"top",position:"relative",width:t}}},{key:"standardInnerStyle",value:function(){return{height:this.props.controlBarHeight,position:"relative",pointerEvents:this.state.areControlsOpaque?"auto":"none",whiteSpace:"nowrap"}}},{key:"renderControlCells",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(this.props.controlsByType[t]||[]).map((function(t){var i=t.constructor.handle;return(0,r.h)(c.default,{class:"w-css-reset",handle:i,key:i,mount:function(t){return e.mountRefs[i]=t},style:n})}))}},{key:"handleControlBarAnimation",value:function(t){var e=this;t.shouldShowControls&&!this.props.shouldShowControls&&setTimeout((function(){e.setState({areControlsOpaque:!0})}),1),!t.shouldShowControls&&this.props.shouldShowControls&&this.setState({areControlsOpaque:!1})}},{key:"getOpacity",value:function(){return this.state.areControlsOpaque?1:0}},{key:"getTransition",value:function(){return"opacity ".concat("beforeplay"===this.props.videoState?0:.2,"s")}},{key:"playbarStyle",value:function(){return{height:"100%",position:"relative"}}},{key:"leftBgStyle",value:function(){var t=this.props,e=t.controlsByType,n=t.leftControlWidth;return{height:"100%",left:0,position:"absolute",top:0,width:(e.playbar||[]).length>0?"100%":"".concat(n,"px")}}},{key:"rightBgStyle",value:function(){return(this.props.controlsByType.playbar||[]).length>0?{display:"none"}:{height:"100%",position:"absolute",right:0,top:0,width:"".concat(this.props.rightControlWidth,"px")}}},{key:"bottomBarLowerStyle",value:function(){return{position:"relative"}}},{key:"isEllipsisShowing",value:function(){return Boolean(this.props.controlsByType.ellipsis)}}],n&&f(e.prototype,n),o&&f(e,o),Object.defineProperty(e,"prototype",{writable:!1}),d}(r.Component),P=function(t){return t.target&&((0,s.elemHasClass)(t.target,"w-vulcan-v2-button")||(0,s.elemAncestorHasClass)(t.target,"w-vulcan-v2-button"))};const O=w},(t,e,n)=>{function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,(r=i.key,o=void 0,"symbol"==typeof(o=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(r,"string"))?o:String(o)),i)}var r,o}function r(t,e){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},r(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=a(t);if(e){var r=a(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}n.d(e,{PlaySuspendedOffScreenBehavior:()=>s});var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)}(u,t);var e,n,a,s=o(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),s.apply(this,arguments)}return e=u,(n=[{key:"init",value:function(){var t=this,e=this.impl,n=e.publicApi;this.unbinds.push(n.on("enterviewport",(function(){e.inFullscreen()||t._isSuspended&&(t._isSuspended=!1,n._playSuspendedOffScreenEnabled()&&"paused"===e.state()&&e.play())})),n.on("leaveviewport",(function(){e.inFullscreen()||t._isSuspended||n._playSuspendedOffScreenEnabled()&&"playing"===e.state()&&(e.pause(),t._isSuspended=!0)})),e.on("receivepause",(function(){t._isSuspended&&(t._isSuspended=!1)})))}}])&&i(e.prototype,n),a&&i(e,a),Object.defineProperty(e,"prototype",{writable:!1}),u}(n(199).PlayerBehavior);s.handle="playSuspendedOffScreen"},(t,e,n)=>{function i(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.d(e,{getDurationAfterCuts:()=>a});var o=function(t){var e=t.attributes;return null!=e.duration?e.duration:t.video.readyState>=2?t.video.duration:null},a=function(t){var e=u(t),n=o(t);if(e.length<1)return n;var i=n;return e.forEach((function(t){i-=t.end-t.start})),i},s=Object.freeze([]),u=function(t){var e=t.attributes,n=e.cuts,i=e.trimStart,r=e.trimEnd;if(t._cuts&&n===t._rawCuts)return t._cuts;if(!n&&null==i&&null==r)return s;t._rawCuts=n,t._cuts=l(t);var o={start:t.attributes.trimStart,end:t.attributes.trimEnd};return t._cuts=c(t,o,t._cuts),Object.freeze(t._cuts),t._cuts},l=function(t){var e=o(t),n=t.attributes,i=n.cuts,r=n.trimStart,a=n.trimEnd;if(!i)return[];var s=i.map((function(n){var i=null!=n.start?d(t,n.start):0,r=null!=n.end&&-1!==n.end?d(t,n.end):e;return r>i?{start:i,end:r}:null})).filter(Boolean);null!=r&&s.push({start:0,end:r}),null!=a&&s.push({start:a,end:e}),s=s.sort((function(t,e){return t.start-e.start}));var u={start:0,end:0};return s=s.map((function(t){return t.end<u.end?null:(t.start<u.end&&(t.start=u.end),u=t,t)})).filter(Boolean)},c=function(t,e,n){var r=i(n),a=o(t),s=e.start,u=e.end,l=r[0],c=r[r.length-1],d=l&&(0===l.start||l.start<0)?l:void 0,h=c&&(c.end>=a||c.end<0)?c:void 0;if(null!=s)if(s>=0){var f={start:0,end:s};d?r.splice(0,1,f):r.unshift(f)}else d&&r.shift();if(null!=u)if(u>=0){var p={start:u,end:a};h?r.splice(r.length-1,1,p):r.push(p)}else h&&r.pop();return r},d=function(t,e){var n=o(t);return Math.min(n,Math.max(0,e))}},(t,e,n)=>{n.d(e,{allHlsAudioAssets:()=>r,audioTracksForVideo:()=>o});var i=n(33),r=(n(6),n(23),function(t){return(0,i.filter)(t,{type:"mp4_alternate_audio",status:i.READY})}),o=function(t){var e=[{audioCodec:void 0,autoselect:!0,default:!0,forced:!1,groupId:"audio",id:0,lang:void 0,name:"Off",label:"Off",type:"AUDIO",isSelected:!0}];return t.forEach((function(t,n){var i,r;e.push({audioCodec:void 0,autoselect:!1,default:!1,forced:!1,groupId:"audio",id:n+1,lang:void 0,name:(null===(i=t.details)||void 0===i?void 0:i.languageMetadata.name)||"Alt Audio",label:(null===(r=t.details)||void 0===r?void 0:r.languageMetadata.name)||"Alt Audio",type:"AUDIO",isSelected:!1})})),e}},(t,e,n)=>{n.d(e,{PLAYER_VERSION:()=>i});var i=1.14},(t,e,n)=>{var i=n(42),r=n(5),o=n(86),a=n(108),s=n(109),u=n(27),l=n(115),c=n(12);function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o,a,s=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(i=o.call(n)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(t){l=!0,r=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw r}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return h(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){return(e=_(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(){v=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof h?e:h,a=Object.create(o.prototype),s=new E(r||[]);return i(a,"_invoke",{value:P(t,n,s)}),a}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var d={};function h(){}function f(){}function p(){}var y={};u(y,o,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(T([])));g&&g!==e&&n.call(g,o)&&(y=g);var b=p.prototype=h.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,s){var u=c(t[i],t,o);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(d).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return o=o?o.then(i,i):i()}})}function P(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return C()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var u=c(t,e,n);if("normal"===u.type){if(i=n.done?"completed":"suspendedYield",u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i="completed",n.method="throw",n.arg=u.arg)}}}function O(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var r=c(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,d;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function T(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=p,i(b,"constructor",{value:p,configurable:!0}),i(p,"constructor",{value:f,configurable:!0}),f.displayName=u(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,u(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},_(w.prototype),u(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new w(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(b),u(b,s,"Generator"),u(b,o,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;S(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function m(t,e,n,i,r,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(i,r)}function g(t){return function(){var e=this,n=arguments;return new Promise((function(i,r){var o=t.apply(e,n);function a(t){m(o,i,r,a,s,"next",t)}function s(t){m(o,i,r,a,s,"throw",t)}a(void 0)}))}}function b(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,_(i.key),i)}}function _(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function w(t){var e=S();return function(){var n,i=T(t);if(e){var r=T(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return P(t)}(this,n)}}function P(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function O(t){var e="function"==typeof Map?new Map:void 0;return O=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return k(t,arguments,T(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),E(i,t)},O(t)}function k(t,e,n){return k=S()?Reflect.construct.bind():function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&E(r,n.prototype),r},k.apply(null,arguments)}function S(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}function T(t){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},T(t)}function C(t,e){j(t,e),e.add(t)}function A(t,e,n){j(t,e),e.set(t,n)}function j(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function x(t,e,n){return function(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}(t,D(t,e,"set"),n),n}function R(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}function B(t,e){return function(t,e){if(e.get)return e.get.call(t);return e.value}(t,D(t,e,"get"))}function D(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}var M=["media-id"],I=["aspect","autoplay","big-play-button","disable-fullscreen-on-rotate-to-landscape","do-not-track","email","end-video-behavior","fullscreen-control","hide-controls-on-load","hide-copy-link-and-thumbnail","muted","playback-rate-control","play-bar-control","player-color","playlist-links","playlist-loop","play-pause-control","play-pause-notifier","poster","preload","quality-control","quality-max","quality-min","resumable","seo","settings-control","silent-autoplay","transparent-letterbox","volume","volume-control"],L=["big-play-button-border-radius","control-bar-border-radius","embed-host","page-url","player-border-radius","player-force","rounded-player","stats-url","use-web-component"],F=!0,W=!0,H=!0,N="636155",V=!0,U=!0,q=!0,z=!0,K=!0,G=!0,Q=!1,Y="beforeplay",X=!0,$=new WeakMap,Z=new WeakMap,J=new WeakMap,tt=new WeakMap,et=new WeakMap,nt=new WeakSet,it=new WeakSet,rt=new WeakSet,ot=new WeakSet,at=new WeakSet,st=new WeakSet,ut=new WeakSet,lt=new WeakSet,ct=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(j,t);var e,n,s,h,f,y,m,_,O,k,S,T=w(j);function j(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,j),C(P(t=T.call(this)),lt),C(P(t),ut),C(P(t),st),C(P(t),at),C(P(t),ot),C(P(t),rt),C(P(t),it),C(P(t),nt),A(P(t),et,{get:ht,set:void 0}),A(P(t),tt,{get:dt,set:void 0}),A(P(t),$,{writable:!0,value:void 0}),A(P(t),Z,{writable:!0,value:!1}),A(P(t),J,{writable:!0,value:{}}),t.attachShadow({mode:"open"}),t._logger=c.wlog.getPrefixedFunctions("WistiaPlayer"),t}return e=j,n=[{key:"api",get:function(){return B(this,$)}},{key:"aspect",get:function(){var t,e;return this.hasAttribute("aspect")?Number(this.getAttribute("aspect")):null!==(t=null===(e=this.api)||void 0===e?void 0:e.aspect())&&void 0!==t?t:this.offsetWidth/this.offsetHeight},set:function(t){this.setAttribute("aspect",t.toString()),this.api&&(this.api._attrs.aspect=t,this.api.width((0,r.elemWidth)(this),{constrain:!0}))}},{key:"autoplay",get:function(){return R(this,at,mt).call(this,"autoplay")},set:function(t){t?this.setAttribute("autoplay",""):this.removeAttribute("autoplay")}},{key:"bigPlayButton",get:function(){var t,e;return this.hasAttribute("big-play-button")?"false"!==this.getAttribute("big-play-button"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.bigPlayButton)&&void 0!==t?t:F},set:function(t){var e;this.setAttribute("big-play-button",t.toString()),null===(e=this.api)||void 0===e||e._impl.bigPlayButtonEnabled(t)}},{key:"bigPlayButtonBorderRadius",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.bigPlayButtonBorderRadius)&&void 0!==t?t:0},set:function(t){var e;null===(e=this.api)||void 0===e||e._impl.setBigPlayButtonBorderRadius(Number(t))}},{key:"buffered",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._impl.getStandardBuffered())&&void 0!==t?t:{}}},{key:"controlBarBorderRadius",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.controlBarBorderRadius)&&void 0!==t?t:0},set:function(t){var e;null===(e=this.api)||void 0===e||e._impl.setControlBarBorderRadius(Number(t))}},{key:"currentTime",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e.time())&&void 0!==t?t:0},set:function(t){var e;null===(e=B(this,$))||void 0===e||e.time(t)}},{key:"disableFullscreenOnRotateToLandscape",get:function(){return R(this,at,mt).call(this,"disable-fullscreen-on-rotate-to-landscape")},set:function(t){this.setAttribute("disable-fullscreen-on-rotate-to-landscape",t.toString()),this.api&&(this.api._attrs.fullscreenOnRotateToLandscape=!t)}},{key:"doNotTrack",get:function(){return R(this,at,mt).call(this,"do-not-track")},set:function(t){this.setAttribute("do-not-track",t.toString()),this.api&&(this.api._attrs.doNotTrack=t)}},{key:"duration",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._impl.duration())&&void 0!==t?t:0}},{key:"email",get:function(){var t,e,n,i;return null!==(t=null!==(e=null!==(n=this.getAttribute("email"))&&void 0!==n?n:(0,a.extractEmailFromParams)(B(this,et)))&&void 0!==e?e:null===(i=(0,u.getWistiaLocalStorage)()[B(this,et)])||void 0===i?void 0:i.trackEmail)&&void 0!==t?t:void 0},set:function(t){this.email!==t&&(this.setAttribute("email",t),R(this,lt,_t).call(this,t))}},{key:"embedHost",get:function(){var t;return null!==(t=this.getAttribute("embed-host"))&&void 0!==t?t:""},set:function(t){this.setAttribute("embed-host",t)}},{key:"ended",get:function(){var t;return"ended"===(null===(t=this.api)||void 0===t?void 0:t.state())}},{key:"endVideoBehavior",get:function(){var t,e=null!==(t=this.getAttribute("end-video-behavior"))&&void 0!==t?t:"default";return["default","loop","reset"].includes(e)?e:"default"},set:function(t){var e,n;"loop"===t?null===(e=this.api)||void 0===e||e._impl.addLoopBehavior():null===(n=this.api)||void 0===n||n._impl.removeLoopBehavior(),this.setAttribute("end-video-behavior",t.toString()),this.api&&(this.api._attrs.endVideoBehavior=t)}},{key:"eventKey",get:function(){var t;return null===(t=this.api)||void 0===t?void 0:t._impl.eventKey()}},{key:"fullscreenControl",get:function(){var t,e;return this.hasAttribute("fullscreen-control")?"false"!==this.getAttribute("fullscreen-control"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.fullscreenControl)&&void 0!==t?t:W},set:function(t){var e;this.setAttribute("fullscreen-control",t.toString()),null===(e=this.api)||void 0===e||e._impl.fullscreenControlEnabled(t)}},{key:"hideControlsOnLoad",get:function(){var t;return this.hasAttribute("hide-controls-on-load")?"false"!==this.getAttribute("hide-controls-on-load"):!(null!==(t=this.api)&&void 0!==t&&t._attrs.controlsVisibleOnLoad)},set:function(t){this.setAttribute("hide-controls-on-load",t.toString()),this.api&&(this.api._attrs.controlsVisibleOnLoad=!t,this.api._impl.renderUI())}},{key:"hideCopyLinkAndThumbnail",get:function(){var t;return this.hasAttribute("hide-copy-link-and-thumbnail")?"false"!==this.getAttribute("hide-copy-link-and-thumbnail"):!(null!==(t=this.api)&&void 0!==t&&t._attrs.copyLinkAndThumbnailEnabled)},set:function(t){var e=this.getAttribute("hide-copy-link-and-thumbnail");this.api&&(this.api._attrs.copyLinkAndThumbnailEnabled=!t),e!==t.toString()&&this.dispatchEvent(new CustomEvent("hide-copy-link-and-thumbnail-change",{detail:{copyLinkAndThumbnailEnabled:!t}})),this.setAttribute("hide-copy-link-and-thumbnail",t.toString())}},{key:"inFullscreen",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._impl.inFullscreen())&&void 0!==t&&t}},{key:"mediaId",get:function(){var t;return null!==(t=this.getAttribute("media-id"))&&void 0!==t?t:""},set:function(t){var e,n=this.mediaId;this.setAttribute("media-id",t),n!==t&&(null===(e=this.api)||void 0===e||e.replaceWith(t))}},{key:"muted",get:function(){var t;return this.hasAttribute("muted")?"false"!==this.getAttribute("muted"):Boolean(null===(t=B(this,$))||void 0===t?void 0:t._impl.isMuted())},set:function(t){var e,n;t?(null===(e=B(this,$))||void 0===e||e._impl.mute(),this.setAttribute("muted","")):(null===(n=B(this,$))||void 0===n||n._impl.unmute(),this.removeAttribute("muted"))}},{key:"name",get:function(){var t,e,n,i;return null!==(t=null!==(e=B(this,J).name)&&void 0!==e?e:null===(n=this.api)||void 0===n||null===(i=n._mediaData)||void 0===i?void 0:i.name)&&void 0!==t?t:void 0}},{key:"paused",get:function(){var t;return"paused"===(null===(t=this.api)||void 0===t?void 0:t.state())}},{key:"percentWatched",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e.percentWatched())&&void 0!==t?t:0}},{key:"playbackRate",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._impl.playbackRate())&&void 0!==t?t:1},set:function(t){var e;null===(e=this.api)||void 0===e||e._impl.playbackRate(t)}},{key:"playbackRateControl",get:function(){var t,e;return this.hasAttribute("playback-rate-control")?"false"!==this.getAttribute("playback-rate-control"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.playbackRateControl)&&void 0!==t?t:q},set:function(t){var e;this.setAttribute("playback-rate-control",t.toString()),null===(e=this.api)||void 0===e||e._impl.playbackRateControlEnabled(t)}},{key:"playBarControl",get:function(){var t,e;return this.hasAttribute("play-bar-control")?"false"!==this.getAttribute("play-bar-control"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.playBarControl)&&void 0!==t?t:H},set:function(t){var e;this.setAttribute("play-bar-control",t.toString()),null===(e=this.api)||void 0===e||e._impl.playbarControlEnabled(t)}},{key:"playerBorderRadius",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.playerBorderRadius)&&void 0!==t?t:0},set:function(t){var e;null===(e=this.api)||void 0===e||e._impl.setPlayerBorderRadius(Number(t))}},{key:"playerColor",get:function(){var t;return null!==(t=this.getAttribute("player-color"))&&void 0!==t?t:N},set:function(t){this._logger.info("set playerColor",t);var e=this.playerColor,n=(0,l.sanePlayerColor)(t);this.setAttribute("player-color",n),e!==n&&this.dispatchEvent(new CustomEvent("playercolorchange",{detail:{color:n,prevColor:e}}))}},{key:"playerForce",get:function(){var t;return null!==(t=this.getAttribute("player-force"))&&void 0!==t?t:void 0},set:function(t){this.setAttribute("player-force",t)}},{key:"playlistLinks",get:function(){var t;return null!==(t=this.getAttribute("playlist-links"))&&void 0!==t?t:""},set:function(t){this.setAttribute("playlist-links",t.toString()),this.api&&(this.api._attrs.playlistLinks=t)}},{key:"playlistLoop",get:function(){return R(this,at,mt).call(this,"playlist-loop")},set:function(t){this.setAttribute("playlist-loop",t.toString()),this.api&&(this.api._attrs.playlistLoop=t)}},{key:"playPauseControl",get:function(){var t,e;return this.hasAttribute("play-pause-control")?"false"!==this.getAttribute("play-pause-control"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.playPauseControl)&&void 0!==t?t:V},set:function(t){var e;this.setAttribute("play-pause-control",t.toString()),null===(e=this.api)||void 0===e||e._impl.playPauseControlEnabled(t)}},{key:"playPauseNotifier",get:function(){var t,e;return this.hasAttribute("play-pause-notifier")?"false"!==this.getAttribute("play-pause-notifier"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.playPauseNotifier)&&void 0!==t?t:U},set:function(t){var e;this.setAttribute("play-pause-notifier",t.toString()),null===(e=this.api)||void 0===e||e._impl.playPauseNotifierEnabled(t)}},{key:"poster",get:function(){var t,e,n;return null!==(t=null!==(e=this.getAttribute("poster"))&&void 0!==e?e:null===(n=this.api)||void 0===n?void 0:n._attrs.poster)&&void 0!==t?t:""},set:function(t){var e=this.poster;this.setAttribute("poster",t),this.api&&(this.api._attrs.poster=t),e!==t&&this.dispatchEvent(new CustomEvent("thumbnailchange"))}},{key:"preload",get:function(){var t,e,n=null!==(t=this.getAttribute("preload"))&&void 0!==t?t:"";return["auto","metadata","none"].includes(n)?n:null===(e=this.api)||void 0===e?void 0:e._impl.preloadValue()},set:function(t){this.api&&(this.api._attrs.preload=t),this.setAttribute("preload",t.toString())}},{key:"qualityControl",get:function(){var t,e;return this.hasAttribute("quality-control")?"false"!==this.getAttribute("quality-control"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.qualityControl)&&void 0!==t?t:z},set:function(t){var e;this.setAttribute("quality-control",t.toString()),null===(e=this.api)||void 0===e||e._impl.qualityControlEnabled(t)}},{key:"qualityMax",get:function(){var t;return this.hasAttribute("quality-max")?Number(this.getAttribute("quality-max")):null===(t=this.api)||void 0===t?void 0:t._attrs.qualityMax},set:function(t){this.setAttribute("quality-max",t.toString()),this.api&&(this.api._attrs.qualityMax=t,this.api._impl.qualityMax(t))}},{key:"qualityMin",get:function(){var t;return this.hasAttribute("quality-min")?Number(this.getAttribute("quality-min")):null===(t=this.api)||void 0===t?void 0:t._attrs.qualityMin},set:function(t){this.setAttribute("quality-min",t.toString()),this.api&&(this.api._attrs.qualityMin=t,this.api._impl.qualityMin(t))}},{key:"readyState",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._impl.getReadyState())&&void 0!==t?t:0}},{key:"resumable",get:function(){var t=this.getAttribute("resumable");return"true"===t||"false"!==t&&"auto"},set:function(t){this.setAttribute("resumable",t.toString()),this.api&&this.api._impl.setResumable(t)}},{key:"roundedPlayer",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.roundedPlayer)&&void 0!==t?t:0},set:function(t){var e;null===(e=this.api)||void 0===e||e._impl.setRoundedPlayer(Number(t))}},{key:"secondsWatched",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._impl.secondsWatched())&&void 0!==t?t:0}},{key:"secondsWatchedVector",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e._impl.secondsWatchedVector())&&void 0!==t?t:[]}},{key:"seo",get:function(){var t,e;return this.hasAttribute("seo")?"false"!==this.getAttribute("seo"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.seo)&&void 0!==t?t:K},set:function(t){this.setAttribute("seo",t.toString()),this.api&&(this.api._attrs.seo=t)}},{key:"settingsControl",get:function(){var t,e;return this.hasAttribute("settings-control")?"false"!==this.getAttribute("settings-control"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.settingsControl)&&void 0!==t?t:G},set:function(t){var e;this.setAttribute("settings-control",t.toString()),null===(e=this.api)||void 0===e||e._impl.settingsControlEnabled(t)}},{key:"silentAutoplay",get:function(){var t,e;switch(this.getAttribute("silent-autoplay")){case"allow":return"allow";case"false":return!1;case"true":return!0;default:return null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.silentAutoplay)&&void 0!==t?t:Q}},set:function(t){this.api&&(this.api._attrs.silentAutoplay=t),this.setAttribute("silent-autoplay",t.toString())}},{key:"state",get:function(){var t,e;return null!==(t=null===(e=this.api)||void 0===e?void 0:e.state())&&void 0!==t?t:Y}},{key:"statsUrl",get:function(){var t,e;return this.hasAttribute("stats-url")?this.getAttribute("stat-url"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.statsUrl)&&void 0!==t?t:null},set:function(t){this.setAttribute("stats-url",t),this.api&&(this.api._attrs.statsUrl=t)}},{key:"transparentLetterbox",get:function(){return R(this,at,mt).call(this,"transparent-letterbox")},set:function(t){t?this.setAttribute("transparent-letterbox",""):this.removeAttribute("transparent-letterbox"),this.api&&(this.api._attrs.transparentLetterbox=t)}},{key:"useWebComponent",get:function(){return"true"===this.getAttribute("use-web-component")},set:function(t){t?this.setAttribute("use-web-component",String(t)):this.removeAttribute("use-web-component")}},{key:"videoQuality",get:function(){return this.api?this.api._impl.getVideoQuality():"auto"},set:function(t){var e;null===(e=this.api)||void 0===e||e._impl.setVideoQuality(t)}},{key:"volume",get:function(){var t,e;if(this.hasAttribute("volume")){var n=this.getAttribute("volume");return null!==n?Number(n):1}return null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.volume)&&void 0!==t?t:1},set:function(t){var e;this.setAttribute("volume",t.toString()),null===(e=this.api)||void 0===e||e._impl.volume(t)}},{key:"volumeControl",get:function(){var t,e;return this.hasAttribute("volume-control")?"false"!==this.getAttribute("volume-control"):null!==(t=null===(e=this.api)||void 0===e?void 0:e._attrs.volumeControl)&&void 0!==t?t:X},set:function(t){var e;this.setAttribute("volume-control",t.toString()),null===(e=this.api)||void 0===e||e._impl.volumeControlEnabled(t)}},{key:"addToPlaylist",value:(S=g(v().mark((function t(e,n,i){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.api){t.next=3;break}return this.api.addToPlaylist(e,n,i),t.abrupt("return",Promise.resolve());case 3:return t.abrupt("return",Promise.reject(new Error("Playlist cannot be accessed")));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return S.apply(this,arguments)})},{key:"cancelFullscreen",value:(k=g(v().mark((function t(){var e;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null===(e=this.api)||void 0===e?void 0:e._impl.cancelFullscreen());case 1:case"end":return t.stop()}}),t,this)}))),function(){return k.apply(this,arguments)})},{key:"definePlugin",value:(O=g(v().mark((function t(e,n){var i,r=this;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=function(){var t=g(v().mark((function t(){var i,o;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null!==(i=null===(o=r.api)||void 0===o?void 0:o.addPlugin(e,n))&&void 0!==i?i:Promise.reject(new Error("plugin ".concat(e," cannot be defined"))));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),!this.api){t.next=3;break}return t.abrupt("return",i());case 3:return t.abrupt("return",new Promise((function(t,e){r.addEventListener("ready",(function n(){r.removeEventListener("ready",n),i().then((function(e){return t(e)})).catch((function(t){e(t)}))}))})));case 4:case"end":return t.stop()}}),t,this)}))),function(t,e){return O.apply(this,arguments)})},{key:"getPlugin",value:(_=g(v().mark((function t(e){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.api){t.next=2;break}return t.abrupt("return",this.api.plugin(e));case 2:return t.abrupt("return",Promise.reject(new Error("plugin ".concat(e," is not yet defined"))));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return _.apply(this,arguments)})},{key:"importMediaData",value:(m=g(v().mark((function t(e,n){return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,i.dynamicImport)("embed/".concat(String(e),".js"),n));case 1:case"end":return t.stop()}}),t)}))),function(t,e){return m.apply(this,arguments)})},{key:"pause",value:(y=g(v().mark((function t(){var e;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null===(e=this.api)||void 0===e?void 0:e._impl.pause());case 1:case"end":return t.stop()}}),t,this)}))),function(){return y.apply(this,arguments)})},{key:"play",value:(f=g(v().mark((function t(){var e;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null===(e=this.api)||void 0===e?void 0:e._impl.play());case 1:case"end":return t.stop()}}),t,this)}))),function(){return f.apply(this,arguments)})},{key:"requestFullscreen",value:(h=g(v().mark((function t(){var e;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",null===(e=this.api)||void 0===e?void 0:e._impl.requestFullscreen());case 1:case"end":return t.stop()}}),t,this)}))),function(){return h.apply(this,arguments)})},{key:"attributeChangedCallback",value:function(t,e,n){B(this,Z)&&e!==n&&(null===e&&""===n||(this[R(this,st,gt).call(this,t)]=n))}},{key:"connectedCallback",value:function(){var t=this,e=this.getAttribute("media-id");if(null==e)throw new Error("media-id attribute is required");var n={};if(null!==R(this,rt,yt).call(this,"embed-host")&&(n.host=this.embedHost),this.useWebComponent){var i=R(this,it,pt).call(this);R(this,ot,vt).call(this,e,p(p({},i),{},{container:this.id}))}else{R(this,ut,bt).call(this);var r=Object.fromEntries(Object.entries(this.attributes).map((function(e){var n=d(e,2)[1];return[R(t,st,gt).call(t,n.name),n.value]})));(0,o.setEmbedOptionStore)("__".concat(this.id,"_dom_options__"),r),this.importMediaData(e,n).then((function(n){var i=n.mediaData;x(t,J,i),R(t,ot,vt).call(t,e,{mediaData:B(t,tt)})})).catch((function(t){throw new Error(t.message)}))}this.shadowRoot&&this.shadowRoot.appendChild(R(this,nt,ft).call(this).content.cloneNode(!0)),x(this,Z,!0)}}],s=[{key:"observedAttributes",get:function(){return[].concat(M,I,L)}}],n&&b(e.prototype,n),s&&b(e,s),Object.defineProperty(e,"prototype",{writable:!1}),j}(O(HTMLElement));function dt(){var t=p({},B(this,J)),e=p({},R(this,it,pt).call(this)),n=Object.fromEntries(Object.entries(e).filter((function(t){var e=d(t,2);e[0];return!(null===e[1])})));return t.embedOptions=p(p({},t.embedOptions),n),t}function ht(){var t;return null!==(t=this.getAttribute("page-url"))&&void 0!==t?t:(0,s.inferPageUrl)()}function ft(){var t=document.createElement("template");return t.innerHTML="\n <style>\n :host {\n display: block;\n }\n </style>\n ",t}function pt(){var t=this;return ct.observedAttributes.reduce((function(e,n){return e[R(t,st,gt).call(t,n)]=R(t,rt,yt).call(t,n),e.videoFoam=!(t.style.width||t.style.height),e}),{})}function yt(t){return this.hasAttribute(t)?""===this.getAttribute(t)||this.getAttribute(t):null}function vt(t,e){var n,i=this,r=window.Wistia;if(null==r||!r.PublicApi)throw new Error("Wistia.PublicApi is not defined");x(this,$,new r.PublicApi(t,e)),null===(n=this.api)||void 0===n||n.ready((function(){i.dispatchEvent(new CustomEvent("ready",{detail:{mediaId:t,api:B(i,$)}}))}))}function mt(t){return"false"!==R(this,rt,yt).call(this,t)&&null!==R(this,rt,yt).call(this,t)}function gt(t){return t.replace(/-./g,(function(t){return t[1].toUpperCase()}))}function bt(){null!==R(this,rt,yt).call(this,"email")&&R(this,lt,_t).call(this,R(this,rt,yt).call(this,"email"))}function _t(t){var e=this;(0,u.updateWistiaLocalStorage)((function(n){p({},n)[B(e,et)]=p(p({},n[B(e,et)]),{},{trackEmail:t})})),this.dispatchEvent(new CustomEvent("emailchange",{detail:{email:t}}))}void 0===customElements.get("wistia-player")&&customElements.define("wistia-player",ct)}],__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(t,e)=>{for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var __webpack_exports__={};__webpack_require__(81),__webpack_require__(98);